@rzl-zone/utils-js 3.1.1-beta.0 → 3.1.1
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/README.md +56 -27
- package/dist/assertions/index.cjs +1 -1
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-26XIKDJI.cjs +1 -0
- package/dist/chunk-2NWHDDM5.js +1 -0
- package/dist/chunk-2UIRWYE3.js +1 -0
- package/dist/chunk-4VCRMMAH.cjs +1 -0
- package/dist/chunk-5C2SMIGX.cjs +1 -0
- package/dist/chunk-5I2B5DOG.js +1 -0
- package/dist/chunk-5Y52H4VH.cjs +1 -0
- package/dist/chunk-7BXIZM57.cjs +1 -0
- package/dist/chunk-7H7IODCQ.cjs +1 -0
- package/dist/chunk-7KJBDGEP.js +1 -0
- package/dist/chunk-7PG6YKIY.cjs +1 -0
- package/dist/chunk-7YVINA3U.cjs +1 -0
- package/dist/chunk-AXWJJXJC.js +1 -0
- package/dist/chunk-CPLBRGST.js +1 -0
- package/dist/chunk-DQFU3KLE.cjs +1 -0
- package/dist/chunk-DUK2K4FB.js +1 -0
- package/dist/chunk-DVMHRLKP.cjs +1 -0
- package/dist/chunk-EBMHQW7X.cjs +1 -0
- package/dist/chunk-EXWCTDC3.cjs +1 -0
- package/dist/chunk-FIAAX3UE.js +1 -0
- package/dist/chunk-G2B35D5W.js +1 -0
- package/dist/chunk-GLUYWYOA.cjs +1 -0
- package/dist/chunk-GRSCNTOK.js +1 -0
- package/dist/chunk-I5X5IN4H.js +1 -0
- package/dist/chunk-I6NOFGAK.cjs +1 -0
- package/dist/chunk-INUFZJLX.cjs +1 -0
- package/dist/chunk-IRBPXCMR.js +1 -0
- package/dist/chunk-J2RGTPGK.cjs +1 -0
- package/dist/chunk-KHO2SBNA.cjs +1 -0
- package/dist/chunk-KXIXXSWX.cjs +1 -0
- package/dist/chunk-L73TOPX5.js +1 -0
- package/dist/chunk-MC3LXMCQ.js +1 -0
- package/dist/chunk-MHXVVDRQ.cjs +1 -0
- package/dist/chunk-MMSYCIJ2.cjs +1 -1
- package/dist/chunk-NHNBV5VS.cjs +1 -0
- package/dist/chunk-NXWPZDDX.js +1 -0
- package/dist/chunk-ODZQXH7E.cjs +1 -0
- package/dist/chunk-ONZFBJVW.js +1 -0
- package/dist/chunk-Q6NHYWVX.js +1 -0
- package/dist/chunk-QNKGP5DY.js +1 -0
- package/dist/chunk-QVRTHAM2.js +1 -0
- package/dist/chunk-RF34NETZ.js +1 -0
- package/dist/chunk-SAW7XS4K.js +1 -0
- package/dist/chunk-TSLYDPBJ.js +1 -0
- package/dist/chunk-UDA26MCU.cjs +1 -0
- package/dist/chunk-UET567YM.cjs +1 -0
- package/dist/chunk-URGK5UQT.js +1 -0
- package/dist/chunk-VEYMQ3UA.js +1 -0
- package/dist/chunk-W2W3L2M5.js +1 -0
- package/dist/chunk-WFPQO7KN.js +1 -0
- package/dist/chunk-WVSPXFTY.js +1 -0
- package/dist/chunk-WZE3XLKY.cjs +1 -0
- package/dist/chunk-X4PD3I5U.js +1 -0
- package/dist/chunk-XC2PYCT4.cjs +1 -0
- package/dist/chunk-XIXA5KDF.cjs +1 -0
- package/dist/chunk-XSFPU3YT.js +1 -0
- package/dist/chunk-XVHPXRUH.cjs +1 -0
- package/dist/chunk-Y44ZD3GG.js +1 -0
- package/dist/chunk-Y4O5KZF6.cjs +1 -0
- package/dist/chunk-YT3MSZKK.cjs +1 -0
- package/dist/chunk-YZR5OGJA.cjs +1 -0
- package/dist/chunk-ZR7GTJQX.cjs +1 -0
- package/dist/chunk-ZXIWDFEQ.js +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +175 -40
- package/dist/conversions/index.js +1 -1
- package/dist/env/index.cjs +1 -1
- package/dist/env/index.js +1 -1
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/formatting/index.cjs +1 -1
- package/dist/formatting/index.js +1 -1
- package/dist/generator/index.cjs +1 -1
- package/dist/generator/index.js +1 -1
- package/dist/{is-array--YjXV-Wx.d.ts → is-array-Cymwrsmm.d.ts} +2 -90
- package/dist/next/index.cjs +1 -8
- package/dist/next/index.js +1 -8
- package/dist/next/server/index.cjs +1 -2
- package/dist/next/server/index.js +1 -2
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.js +1 -1
- package/dist/or-DyZCRvaU.d.ts +89 -0
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.js +1 -1
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.d.ts +111 -17
- package/dist/predicates/index.js +1 -1
- package/dist/promise/index.cjs +1 -1
- package/dist/promise/index.js +1 -1
- package/dist/rzl-utils.global.js +1 -4
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.js +1 -1
- package/dist/tailwind/index.cjs +1 -0
- package/dist/tailwind/index.d.ts +565 -0
- package/dist/tailwind/index.js +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.js +1 -1
- package/package.json +24 -23
- package/dist/chunk-26W3VZIK.cjs +0 -1
- package/dist/chunk-2KRCHXFG.cjs +0 -2
- package/dist/chunk-33ZLH266.js +0 -1
- package/dist/chunk-4L4EJTNZ.js +0 -1
- package/dist/chunk-56QBKKRE.js +0 -1
- package/dist/chunk-5Q37AP7P.js +0 -1
- package/dist/chunk-5SZUSNGZ.js +0 -1
- package/dist/chunk-7CHFAMS2.js +0 -1
- package/dist/chunk-7MMJZ6HS.js +0 -1
- package/dist/chunk-7TC6DE3J.cjs +0 -1
- package/dist/chunk-7VX33E3V.js +0 -1
- package/dist/chunk-7YWAQOA4.cjs +0 -1
- package/dist/chunk-BEZPD44N.cjs +0 -1
- package/dist/chunk-BI263OHW.js +0 -1
- package/dist/chunk-CII6WWLO.cjs +0 -1
- package/dist/chunk-D5TYPCWU.cjs +0 -1
- package/dist/chunk-EEQY5QUG.js +0 -1
- package/dist/chunk-ELDDNERR.js +0 -1
- package/dist/chunk-ESJYBIYH.js +0 -1
- package/dist/chunk-EWYPSKKM.js +0 -1
- package/dist/chunk-EXCOQLWX.cjs +0 -1
- package/dist/chunk-FIEZKTAZ.cjs +0 -1
- package/dist/chunk-FWQVTMYA.cjs +0 -1
- package/dist/chunk-G4EWCRKS.js +0 -1
- package/dist/chunk-G7R5XZRM.cjs +0 -1
- package/dist/chunk-GGEV7LXX.cjs +0 -1
- package/dist/chunk-HJOZOENU.cjs +0 -1
- package/dist/chunk-IRDZVLNZ.cjs +0 -1
- package/dist/chunk-IW73G523.cjs +0 -1
- package/dist/chunk-IY5OZAB3.cjs +0 -1
- package/dist/chunk-J4NCYYGS.js +0 -1
- package/dist/chunk-J7JAZAJD.js +0 -1
- package/dist/chunk-JYNSO7ZY.js +0 -1
- package/dist/chunk-K3UVKYEU.js +0 -1
- package/dist/chunk-LQ76EDZG.js +0 -1
- package/dist/chunk-MROH35V3.cjs +0 -1
- package/dist/chunk-NJSAV73S.js +0 -1
- package/dist/chunk-NNM7QCNB.js +0 -1
- package/dist/chunk-NR44SNYE.js +0 -1
- package/dist/chunk-NXMTWY77.js +0 -1
- package/dist/chunk-OZCQZO2V.cjs +0 -4
- package/dist/chunk-PUQXRLZH.cjs +0 -1
- package/dist/chunk-Q3NTKN5I.cjs +0 -1
- package/dist/chunk-QDNSC57Z.js +0 -4
- package/dist/chunk-QGXTL5ZH.js +0 -2
- package/dist/chunk-QSQDP7L2.cjs +0 -1
- package/dist/chunk-RV2VULM7.cjs +0 -1
- package/dist/chunk-S5M33A4O.js +0 -1
- package/dist/chunk-SGTHOQQ2.js +0 -1
- package/dist/chunk-SL3RQOWA.js +0 -1
- package/dist/chunk-SW6HYEW7.cjs +0 -1
- package/dist/chunk-SYJC7UAW.js +0 -1
- package/dist/chunk-SZPWZZYG.cjs +0 -1
- package/dist/chunk-UA4B7JBO.cjs +0 -1
- package/dist/chunk-UQDJF5RR.cjs +0 -1
- package/dist/chunk-UTQUYABU.cjs +0 -1
- package/dist/chunk-VPW3DRV5.js +0 -1
- package/dist/chunk-W32WALNU.js +0 -1
- package/dist/chunk-XGZ6K753.cjs +0 -1
- package/dist/chunk-YFTR64N5.cjs +0 -1
- package/dist/chunk-ZFDS7W6B.cjs +0 -1
- package/dist/chunk-ZQOLZE6Z.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/stylings/index.cjs +0 -1
- package/dist/stylings/index.d.ts +0 -41
- package/dist/stylings/index.js +0 -1
package/dist/chunk-QSQDP7L2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var h=i=>{if(!chunkCII6WWLO_cjs.p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let n=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),r=e.slice(t+1);e=n+"."+r;}else if(c>t){let n=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),r=e.slice(c+1);e=n+"."+r;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};exports.a=h;
|
package/dist/chunk-RV2VULM7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var o=()=>{};exports.a=o;
|
package/dist/chunk-S5M33A4O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-56QBKKRE.js';import {a as a$1}from'./chunk-NJSAV73S.js';import {f,o,p,k}from'./chunk-EWYPSKKM.js';var b=(e="on_processing")=>{if(a())return;a$1(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&!t.classList.contains(e)&&t.classList.add(e);},h=(e="on_processing")=>{if(a())return;a$1(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&t.classList.contains(e)&&t.classList.remove(e);},T=()=>{if(a())return;let e=document.activeElement;e instanceof HTMLElement&&e.blur();},g=e=>{if(a())return;f(e)||(e={});let t=o(e,"behavior")&&p(e.behavior)&&["auto","instant","smooth"].includes(e.behavior.trim())?e.behavior:"smooth",r=o(e,"timeout")&&k(e.timeout)&&e.timeout>=1?e.timeout:1;r=r>2147483647?2147483647:r,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:t}),r);};export{b as a,h as b,T as c,g as d};
|
package/dist/chunk-SGTHOQQ2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-NNM7QCNB.js';import {d}from'./chunk-W32WALNU.js';import {a as a$3}from'./chunk-7MMJZ6HS.js';import {a as a$2}from'./chunk-SL3RQOWA.js';import {b}from'./chunk-NR44SNYE.js';import {a}from'./chunk-7CHFAMS2.js';import {c}from'./chunk-J4NCYYGS.js';import {g,E,m,p,b as b$1,k,C as C$1}from'./chunk-EWYPSKKM.js';var A=(t,e,o)=>{if(g(t)){if(a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");t=b(t);}else if(!a$1(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${E(t)}\`, with current value: \`${c(t)}\`.`);if(!m(o)&&(a$2(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!m(e)&&!b$1(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);let r=new URL(t);if(!m(e)){let n=Object.fromEntries(e);if(!a$3(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!p(f)&&!k(f,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);i.set(s,String(f));}o?.length&&d(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw C$1(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!p(t))return null;let e;try{e=decodeURIComponent(t);}catch{return null}let o=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,r=e.match(o);if(!r)return null;let n=r.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let s=new URL(i);return s.protocol==="http:"||s.protocol==="https:"}catch{return false}});return n.length?n:null};export{A as a,C as b};
|
package/dist/chunk-SL3RQOWA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d,F}from'./chunk-EWYPSKKM.js';function u(r,e){if(d(r))return;let t=F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}export{u as a};
|
package/dist/chunk-SW6HYEW7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var e=()=>typeof window>"u"||typeof document>"u";exports.a=e;
|
package/dist/chunk-SYJC7UAW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=()=>{};export{o as a};
|
package/dist/chunk-SZPWZZYG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function E(e){if(!chunkCII6WWLO_cjs.r(e))return;let n=Math.floor(Math.random()*(e.length||0));return e[n]}var d=(e,n)=>{if(!chunkPUQXRLZH_cjs.a(e)||!chunkPUQXRLZH_cjs.a(n))throw new TypeError(`First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${N(e,n)}value, but received: ['min': \`${chunkCII6WWLO_cjs.E(e)}\` - (with value: \`${chunk26W3VZIK_cjs.c(e)})\`, 'max': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: \`${chunk26W3VZIK_cjs.c(n)}\`)].`);if(e>n)throw new RangeError(`First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${I(e)}, 'max': ${I(n)}].`);return e=Math.max(1,e),n=Math.min(Number.MAX_SAFE_INTEGER,n),Math.floor(Math.random()*(n-e+1))+e},I=e=>chunkCII6WWLO_cjs.k(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${chunkCII6WWLO_cjs.E(e)}\``,N=(...e)=>e.some(n=>chunkCII6WWLO_cjs.k(n,{includeNaN:true})&&n===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var _=e=>{chunkCII6WWLO_cjs.f(e)||(e={});let{minLength:n=1,maxLength:r=16,avoidZero:o=false}=e;if(chunkCII6WWLO_cjs.G(o,{message({currentType:y,validType:c}){return `Parameters \`avoidZero\` must be of type \`${c}\`, but received: \`${y}\`.`}}),!chunkPUQXRLZH_cjs.a(n)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: ${chunk26W3VZIK_cjs.c(n)}), 'maxLength': \`${chunkCII6WWLO_cjs.E(r)}\` - (with value: ${chunk26W3VZIK_cjs.c(r)})].`);if(n<1||r>16||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);let u=n===r?n:d(n,r),s=10**(u-1),l=10**u-1,f=d(s,l);return o&&f===0&&(f=s),f};var Y=e=>{chunkCII6WWLO_cjs.f(e)||(e={});let{minLength:n=40,maxLength:r=40,type:o="string",avoidWhiteSpace:u=true}=e;if(chunkCII6WWLO_cjs.G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${L}\`, but received: \`${m}\`.`}}),!chunkPUQXRLZH_cjs.a(n)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: ${chunk26W3VZIK_cjs.c(n)}), 'maxLength': \`${chunkCII6WWLO_cjs.E(r)}\` - (with value: ${chunk26W3VZIK_cjs.c(r)})].`);if(n<1||r>5e3||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunkCII6WWLO_cjs.E(o)}\`, with value: ${chunk26W3VZIK_cjs.c(o)}.`);let s=d(n,r),l=m=>u?m.replace(/\s|\n|\t/g,""):m,c=o==="number"?(chunkCII6WWLO_cjs.h(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",g=l(c)+(e.addChar||"");if(!g.length){let m=()=>o==="number"?u?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${m()}`)}let x="";for(let m=0;m<s;m++)x+=g.charAt(Math.floor(Math.random()*g.length));return x};exports.a=E;exports.b=d;exports.c=_;exports.d=Y;
|
package/dist/chunk-UA4B7JBO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkZQOLZE6Z_cjs=require('./chunk-ZQOLZE6Z.cjs');var y=(t,o={})=>!chunkZQOLZE6Z_cjs.a(t,o);var e=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);function p(t){return t!=null&&typeof t=="object"&&e.has(Object.prototype.toString.call(t))}exports.a=y;exports.b=p;
|
package/dist/chunk-UQDJF5RR.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function u(r,e){if(chunkCII6WWLO_cjs.d(r))return;let t=chunkCII6WWLO_cjs.F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}exports.a=u;
|
package/dist/chunk-UTQUYABU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var r=(n,o={})=>!chunkCII6WWLO_cjs.p(n,o);exports.a=r;
|
package/dist/chunk-VPW3DRV5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-J7JAZAJD.js';import {b}from'./chunk-W32WALNU.js';import {f as f$1,e as e$1,a as a$8}from'./chunk-LQ76EDZG.js';import {a as a$4}from'./chunk-SL3RQOWA.js';import {a as a$6}from'./chunk-ESJYBIYH.js';import {a as a$3}from'./chunk-7CHFAMS2.js';import {a as a$5}from'./chunk-NJSAV73S.js';import {c as c$1,a as a$7,b as b$2}from'./chunk-J4NCYYGS.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {p,j,o,G,d,i,c,g,a as a$2,k,e,f,E,h,m,q,D,b as b$3,n}from'./chunk-EWYPSKKM.js';function ne(e,n={}){j(n,{message:({currentType:i,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${i}\`.`});let p=o(n,"removeInvalidValueNumber")?n.removeInvalidValueNumber:true;if(G(p,{message:({currentType:i,validType:m})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${i}\`.`}),d(e)){let i$1=Array.from(e,m=>{if(a$1(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):i(m)?null:void 0});return p?b(i$1):i$1}}var Oe=e$1=>c(e$1)?false:g(e$1)?p(e$1):a$2(e$1)?e$1:k(e$1,{includeNaN:true})?e$1!==0:d(e$1)||e(e$1)?a(e$1):!!e$1;var Q=e$1=>c(e$1)?false:g(e$1)?p(e$1):a$2(e$1)?e$1:k(e$1,{includeNaN:true})?e$1!==0:d(e$1)?e$1.some(Q):e(e$1)?Object.values(e$1).some(Q):false;var Ke=(e,n={})=>{if(c(e))return false;f(n)||(n={});let p=o(n,"caseInsensitive")?n.caseInsensitive:false,i=o(n,"trimString")?n.trimString:true,m=o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!a$2(p)||!a$2(i)||!a$2(m))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${E(p)}\`, 'trimString': \`${E(i)}\`, 'includeIndeterminate': \`${E(m)}\`].`);if(g(e)){let r=e;i&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return k(e)?e===1:a$2(e)?e:false};var _e=e=>c(e)?false:g(e)?!a$3(e):a$2(e)?e:k(e,{includeNaN:true})?e!==0:d(e)?e.length>0:!!e;var mr=e=>{let n={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(g(e)){let p$1=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n,p$1))return n[p$1];let i=p$1.replace(/,/g,""),m=Number(i);return !h(m)&&p(i)?m:e.trim()}return e};var X=e=>{try{if(b$3(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))},$=(e,n$1)=>{if(!n(e))return e;let[p,...i]=n$1;if(d(e))for(let m of e)n(m)&&$(m,n$1);else e$1(i)?f(e)&&delete e[p]:f(e)&&n(e[p])&&$(e[p],i);return e},W=(e,n)=>{if(!f(e))return e;let[p,...i]=n;return i.length===0?f(e)&&delete e[p]:f(e[p])&&W(e[p],i),e};function gr(e,n,p=true){if(f$1(e,{checkSymbols:true}))return {};if(a$4(n,{message:({currentType:m,validType:r})=>`Second parameter (\`keysToDelete\`) must be of type \`${r}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${m}\`, with value: \`${c$1(n)}\`.`}),!n.every(m=>f(m)&&"key"in m))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: \`${c$1(n)}\`.`);let i=p?X(e):e;for(let{key:m$1,deep:r}of n){if(a$5(m$1,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!m(r)&&!a$2(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m$1}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${E(r)}\`.`);let u=m$1.split(".");i=r?$(i,u):W(i,u);}return i}function Qr(e$2,n={}){j(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p$1=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(k(r)||p(r)&&!h(Number(r))){let o=Number(r);return a$6(o)?o:void 0}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>{let T=m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),B=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});return !m(T)&&!m(B)?[T,B]:void 0}).filter(t=>!m(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(D(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(b$2(r))return h(r.getTime())?0:r.getTime();if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});m(T)||(o[t]=T);}return a&&f$1(o)?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p$1,removeEmptyArrays:i,isRoot:true})}function dt(e$2,n={}){j(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(k(r)||g(r))return String(r);if(b$2(r))return r.toISOString();if(a$8(r))return r.toString();if(D(r))return Array.from(r).map(o=>String(o)).filter(o=>!m(o));if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!m(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>[m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})]).filter(([t,A])=>!m(t)&&!m(A));return s&&e$1(o)?void 0:o}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});m(T)?d(A)&&!s&&(o[t]=[]):o[t]=T;}return a&&Object.keys(o).length===0?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}export{ne as a,Oe as b,Q as c,Ke as d,_e as e,mr as f,gr as g,Qr as h,dt as i};
|
package/dist/chunk-W32WALNU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$2,e as e$1,d as d$1}from'./chunk-LQ76EDZG.js';import {a as a$4}from'./chunk-SL3RQOWA.js';import {a as a$5}from'./chunk-ESJYBIYH.js';import {c,b as b$1,a as a$3}from'./chunk-J4NCYYGS.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {E,h,g,k,a,c as c$1,l,b,d,n,C,q,e,j,o,G,i}from'./chunk-EWYPSKKM.js';function m(r,e$1){if(!(e$1===false||e$1==="stringOrNumber"||e$1==="primitives"||e$1==="all"))throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${E(e$1)}\`, with value: \`${c(e$1)}\`.`);if(h(r))return e$1==="primitives"||e$1==="all"?"NaN":NaN;if(g(r)||k(r))return e$1==="stringOrNumber"||e$1==="primitives"||e$1==="all"?String(r):r;if(a(r)||a$1(r)||c$1(r))return e$1==="primitives"||e$1==="all"?String(r):r;if(l(r)||b(r))return e$1==="all"?r.toString():r;if(d(r))return r.map(o=>m(o,e$1));if(n(r)){if(b$1(r))return e$1==="all"?r.toISOString():r;if(a$2(r)||C(r)||r instanceof Promise)return e$1==="all"?r.toString():r;if(q(r))return e$1==="all"?[...r].map(t=>m(t,e$1)):r;if(a$3(r))return e$1==="all"?[...r.entries()].map(([t,n])=>[m(t,e$1),m(n,e$1)]):r;let o={};if(e(r))for(let t of Object.keys(r))o[t]=m(r[t],e$1);return o}return r}function F(r){return c$1(r)?void 0:d(r)?r.reduce((o,t)=>{if(!c$1(t))if(d(t)){let n=F(t);n&&!e$1(n)&&o.push(n);}else o.push(t);return o},[]):[]}var br=(r,e={})=>{a$4(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),j(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o$1=o(e,"flatten")?e.flatten:false,t=o(e,"forceToString")?e.forceToString:false;if(!(t===false||t==="stringOrNumber"||t==="primitives"||t==="all"))throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${E(t)}\`, with value: \`${c(t)}\`.`);G(o$1,{message:({currentType:i,validType:p})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${p}\`, but received: \`${i}\`.`});let n=i=>{let p=[];return i.reduce((R,O)=>{let S=d(O)?n(O):m(O,t);return p.some(v=>d$1(v,S))||(p.push(S),R.push(S)),R},[])},u=i=>d(i)?i.flatMap(u):q(i)?[...i].flatMap(u):a$3(i)?[...i.values()].flatMap(u):[i];return n(o$1?u(r):r)};function Pr(r,e={}){j(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o$1=o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(G(o$1,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),d(r)){let t=Array.from(r,n=>g(n)||a$5(n)||a(n)||a$1(n)?String(n):i(n)?null:void 0);return o$1?F(t):t}}export{m as a,F as b,br as c,Pr as d};
|
package/dist/chunk-XGZ6K753.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkUQDJF5RR_cjs=require('./chunk-UQDJF5RR.cjs'),chunkQ3NTKN5I_cjs=require('./chunk-Q3NTKN5I.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function m(r,e){if(!(e===false||e==="stringOrNumber"||e==="primitives"||e==="all"))throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${chunkCII6WWLO_cjs.E(e)}\`, with value: \`${chunk26W3VZIK_cjs.c(e)}\`.`);if(chunkCII6WWLO_cjs.h(r))return e==="primitives"||e==="all"?"NaN":NaN;if(chunkCII6WWLO_cjs.g(r)||chunkCII6WWLO_cjs.k(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(chunkCII6WWLO_cjs.a(r)||chunk7YWAQOA4_cjs.a(r)||chunkCII6WWLO_cjs.c(r))return e==="primitives"||e==="all"?String(r):r;if(chunkCII6WWLO_cjs.l(r)||chunkCII6WWLO_cjs.b(r))return e==="all"?r.toString():r;if(chunkCII6WWLO_cjs.d(r))return r.map(o=>m(o,e));if(chunkCII6WWLO_cjs.n(r)){if(chunk26W3VZIK_cjs.b(r))return e==="all"?r.toISOString():r;if(chunkG7R5XZRM_cjs.a(r)||chunkCII6WWLO_cjs.C(r)||r instanceof Promise)return e==="all"?r.toString():r;if(chunkCII6WWLO_cjs.q(r))return e==="all"?[...r].map(t=>m(t,e)):r;if(chunk26W3VZIK_cjs.a(r))return e==="all"?[...r.entries()].map(([t,n])=>[m(t,e),m(n,e)]):r;let o={};if(chunkCII6WWLO_cjs.e(r))for(let t of Object.keys(r))o[t]=m(r[t],e);return o}return r}function F(r){return chunkCII6WWLO_cjs.c(r)?void 0:chunkCII6WWLO_cjs.d(r)?r.reduce((o,t)=>{if(!chunkCII6WWLO_cjs.c(t))if(chunkCII6WWLO_cjs.d(t)){let n=F(t);n&&!chunkG7R5XZRM_cjs.e(n)&&o.push(n);}else o.push(t);return o},[]):[]}var br=(r,e={})=>{chunkUQDJF5RR_cjs.a(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),chunkCII6WWLO_cjs.j(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o=chunkCII6WWLO_cjs.o(e,"flatten")?e.flatten:false,t=chunkCII6WWLO_cjs.o(e,"forceToString")?e.forceToString:false;if(!(t===false||t==="stringOrNumber"||t==="primitives"||t==="all"))throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${chunkCII6WWLO_cjs.E(t)}\`, with value: \`${chunk26W3VZIK_cjs.c(t)}\`.`);chunkCII6WWLO_cjs.G(o,{message:({currentType:i,validType:p})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${p}\`, but received: \`${i}\`.`});let n=i=>{let p=[];return i.reduce((R,O)=>{let S=chunkCII6WWLO_cjs.d(O)?n(O):m(O,t);return p.some(v=>chunkG7R5XZRM_cjs.d(v,S))||(p.push(S),R.push(S)),R},[])},u=i=>chunkCII6WWLO_cjs.d(i)?i.flatMap(u):chunkCII6WWLO_cjs.q(i)?[...i].flatMap(u):chunk26W3VZIK_cjs.a(i)?[...i.values()].flatMap(u):[i];return n(o?u(r):r)};function Pr(r,e={}){chunkCII6WWLO_cjs.j(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o=chunkCII6WWLO_cjs.o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(chunkCII6WWLO_cjs.G(o,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),chunkCII6WWLO_cjs.d(r)){let t=Array.from(r,n=>chunkCII6WWLO_cjs.g(n)||chunkQ3NTKN5I_cjs.a(n)||chunkCII6WWLO_cjs.a(n)||chunk7YWAQOA4_cjs.a(n)?String(n):chunkCII6WWLO_cjs.i(n)?null:void 0);return o?F(t):t}}exports.a=m;exports.b=F;exports.c=br;exports.d=Pr;
|
package/dist/chunk-YFTR64N5.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkUQDJF5RR_cjs=require('./chunk-UQDJF5RR.cjs');var p=t=>(chunkUQDJF5RR_cjs.a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));exports.a=p;
|
package/dist/chunk-ZFDS7W6B.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var j=e=>{if(!chunkCII6WWLO_cjs.g(e)&&!chunkCII6WWLO_cjs.k(e))return 0;let s=String(e).trim().replace(/[^0-9]/g,"");return Number(s)||0};var A=(e={})=>{chunkCII6WWLO_cjs.j(e,{message:({currentType:U,validType:B})=>`Second parameter (\`options\`) must be of type \`${B}\`, but received: \`${U}\`.`});let s=chunkCII6WWLO_cjs.o(e,"convertBooleans")?e.convertBooleans:false,r=chunkCII6WWLO_cjs.o(e,"convertDates")?e.convertDates:false,n=chunkCII6WWLO_cjs.o(e,"convertNumbers")?e.convertNumbers:false,t=chunkCII6WWLO_cjs.o(e,"loggingOnFail")?e.loggingOnFail:false,a=chunkCII6WWLO_cjs.o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m=chunkCII6WWLO_cjs.o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o=chunkCII6WWLO_cjs.o(e,"removeNulls")?e.removeNulls:false,N=chunkCII6WWLO_cjs.o(e,"removeUndefined")?e.removeUndefined:false,v=chunkCII6WWLO_cjs.o(e,"strictMode")?e.strictMode:false,T=chunkCII6WWLO_cjs.o(e,"checkSymbols")?e.checkSymbols:false,w=chunkCII6WWLO_cjs.o(e,"convertNaN")?e.convertNaN:false,b=chunkCII6WWLO_cjs.o(e,"customDateFormats")?e.customDateFormats:[],y=chunkCII6WWLO_cjs.o(e,"onError")?e.onError:chunkRV2VULM7_cjs.a;if(!(chunkCII6WWLO_cjs.a(s)&&chunkCII6WWLO_cjs.a(r)&&chunkCII6WWLO_cjs.a(n)&&chunkCII6WWLO_cjs.a(w)&&chunkCII6WWLO_cjs.a(T)&&chunkCII6WWLO_cjs.a(t)&&chunkCII6WWLO_cjs.a(a)&&chunkCII6WWLO_cjs.a(m)&&chunkCII6WWLO_cjs.a(o)&&chunkCII6WWLO_cjs.a(N)&&chunkCII6WWLO_cjs.a(v)&&chunkCII6WWLO_cjs.d(b)&&chunkCII6WWLO_cjs.b(y)))throw new TypeError(`Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${chunkCII6WWLO_cjs.E(s)}\`, 'convertDates': \`${chunkCII6WWLO_cjs.E(r)}\`, 'convertNumbers': \`${chunkCII6WWLO_cjs.E(n)}\`, 'loggingOnFail': \`${chunkCII6WWLO_cjs.E(t)}\`, 'removeEmptyArrays': \`${chunkCII6WWLO_cjs.E(a)}\`, 'removeEmptyObjects': \`${chunkCII6WWLO_cjs.E(m)}\`, 'removeNulls': \`${chunkCII6WWLO_cjs.E(o)}\`, 'removeUndefined': \`${chunkCII6WWLO_cjs.E(N)}\`, 'strictMode': \`${chunkCII6WWLO_cjs.E(v)}\`, 'customDateFormats': \`${chunkCII6WWLO_cjs.E(b)}\`, 'onError': \`${chunkCII6WWLO_cjs.E(y)}\`].`);return {convertBooleans:s,convertDates:r,convertNumbers:n,convertNaN:w,loggingOnFail:t,removeEmptyArrays:a,removeEmptyObjects:m,removeNulls:o,removeUndefined:N,strictMode:v,customDateFormats:b,onError:y,checkSymbols:T}},P=(e,s={})=>{let r=A(s);if(chunkCII6WWLO_cjs.i(e))return r.removeNulls?void 0:null;if(chunkCII6WWLO_cjs.m(e))return r.removeUndefined,void 0;if(chunkCII6WWLO_cjs.g(e)){let n=e.trim();if(r.convertNaN&&n==="NaN")return NaN;if(r.convertNumbers&&!chunkCII6WWLO_cjs.h(Number(n)))return Number(n);if(r.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n))return new Date(n);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let a=I(n,t);if(a)return a}}return r.strictMode?void 0:n}if(chunkCII6WWLO_cjs.d(e)){let n=e.map(t=>P(t,r)).filter(t=>!chunkCII6WWLO_cjs.m(t));return r.removeEmptyArrays&&chunkG7R5XZRM_cjs.e(n)?void 0:n}if(chunkCII6WWLO_cjs.e(e)){let n={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let a=P(e[t],r);chunkCII6WWLO_cjs.m(a)||(n[t]=a);}return r.removeEmptyObjects&&chunkG7R5XZRM_cjs.f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e},I=(e,s)=>{if(!chunkCII6WWLO_cjs.p(e)||!chunkCII6WWLO_cjs.p(s))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${chunkCII6WWLO_cjs.E(e)}\` - (current value: \`${chunk26W3VZIK_cjs.c(e)}\`), 'format': \`${chunkCII6WWLO_cjs.E(s)}\` - (current value: \`${chunk26W3VZIK_cjs.c(s)}\`)]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(chunkCII6WWLO_cjs.h))return null;let n,t,a;if(s==="DD/MM/YYYY")[n,t,a]=r;else if(s==="MM/DD/YYYY")[t,n,a]=r;else return null;t-=1;let m=new Date(a,t,n);return m.getFullYear()!==a||m.getMonth()!==t||m.getDate()!==n?null:m};function me(e,s={}){if(chunkCII6WWLO_cjs.i(e))return null;let r=A(s);if(r.convertNaN&&(chunkCII6WWLO_cjs.h(e)||chunkCII6WWLO_cjs.p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!chunkCII6WWLO_cjs.h(Number(e))&&chunkCII6WWLO_cjs.k(j(e)))return Number(e);if(chunkCII6WWLO_cjs.g(e))try{let n=J(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return P(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(chunkCII6WWLO_cjs.C(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function J(e){let s=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,a=false;for(let m=0;m<e.length;m++){let o=e[m];if(a){n?o==="'"?r+="'":s.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':s.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,a=false;continue}if(o==="\\"){a=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}exports.a=j;exports.b=P;exports.c=I;exports.d=me;
|
package/dist/chunk-ZQOLZE6Z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkUTQUYABU_cjs=require('./chunk-UTQUYABU.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var P=(r,t={})=>{chunkCII6WWLO_cjs.j(t,{message:({currentType:o,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${o}\`.`});let m=chunkCII6WWLO_cjs.o(t,"checkSymbols")?t.checkSymbols:false;return chunkCII6WWLO_cjs.G(m,{message:({currentType:o,validType:e})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${e}\`, but received: \`${o}\`.`}),chunkCII6WWLO_cjs.c(r)||r===false||chunkCII6WWLO_cjs.h(r)?true:chunkCII6WWLO_cjs.g(r)?chunkUTQUYABU_cjs.a(r):chunkCII6WWLO_cjs.d(r)?chunkG7R5XZRM_cjs.e(r):chunkCII6WWLO_cjs.e(r)?chunkG7R5XZRM_cjs.f(r,{checkSymbols:m}):false};exports.a=P;
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkEXCOQLWX_cjs=require('./chunk-EXCOQLWX.cjs'),chunkIRDZVLNZ_cjs=require('./chunk-IRDZVLNZ.cjs'),chunk2KRCHXFG_cjs=require('./chunk-2KRCHXFG.cjs'),chunkD5TYPCWU_cjs=require('./chunk-D5TYPCWU.cjs'),chunkIW73G523_cjs=require('./chunk-IW73G523.cjs'),chunkYFTR64N5_cjs=require('./chunk-YFTR64N5.cjs'),chunk7TC6DE3J_cjs=require('./chunk-7TC6DE3J.cjs'),chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkIY5OZAB3_cjs=require('./chunk-IY5OZAB3.cjs'),chunkFWQVTMYA_cjs=require('./chunk-FWQVTMYA.cjs'),chunkZFDS7W6B_cjs=require('./chunk-ZFDS7W6B.cjs'),chunkUA4B7JBO_cjs=require('./chunk-UA4B7JBO.cjs'),chunkXGZ6K753_cjs=require('./chunk-XGZ6K753.cjs'),chunkZQOLZE6Z_cjs=require('./chunk-ZQOLZE6Z.cjs'),chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkUQDJF5RR_cjs=require('./chunk-UQDJF5RR.cjs');require('./chunk-MMSYCIJ2.cjs');var chunkGGEV7LXX_cjs=require('./chunk-GGEV7LXX.cjs'),chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkHJOZOENU_cjs=require('./chunk-HJOZOENU.cjs'),chunkQSQDP7L2_cjs=require('./chunk-QSQDP7L2.cjs'),chunkQ3NTKN5I_cjs=require('./chunk-Q3NTKN5I.cjs'),chunkSZPWZZYG_cjs=require('./chunk-SZPWZZYG.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkOZCQZO2V_cjs=require('./chunk-OZCQZO2V.cjs'),chunkMROH35V3_cjs=require('./chunk-MROH35V3.cjs'),chunkUTQUYABU_cjs=require('./chunk-UTQUYABU.cjs'),chunkBEZPD44N_cjs=require('./chunk-BEZPD44N.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');Object.defineProperty(exports,"findDuplicates",{enumerable:true,get:function(){return chunkEXCOQLWX_cjs.a}});Object.defineProperty(exports,"omitKeys",{enumerable:true,get:function(){return chunkEXCOQLWX_cjs.b}});Object.defineProperty(exports,"omitKeysDeep",{enumerable:true,get:function(){return chunkEXCOQLWX_cjs.c}});Object.defineProperty(exports,"extractFileName",{enumerable:true,get:function(){return chunkIRDZVLNZ_cjs.a}});Object.defineProperty(exports,"areArraysEqual",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.a}});Object.defineProperty(exports,"areObjectsEqual",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.b}});Object.defineProperty(exports,"areURLsEqualPath",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.c}});Object.defineProperty(exports,"areURLsIdentical",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.d}});Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.i}});Object.defineProperty(exports,"doesKeyExist",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.h}});Object.defineProperty(exports,"isArguments",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.j}});Object.defineProperty(exports,"isArrayLike",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.l}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.m}});Object.defineProperty(exports,"isCurrencyLike",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.n}});Object.defineProperty(exports,"isDeepEqual",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.o}});Object.defineProperty(exports,"isElement",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.p}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.q}});Object.defineProperty(exports,"isEmptyDeep",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.r}});Object.defineProperty(exports,"isEqualWith",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.s}});Object.defineProperty(exports,"isLength",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.k}});Object.defineProperty(exports,"isMatch",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.u}});Object.defineProperty(exports,"isMatchWith",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.t}});Object.defineProperty(exports,"isNative",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.v}});Object.defineProperty(exports,"isObjectLoose",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.w}});Object.defineProperty(exports,"isPropertyKey",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.g}});Object.defineProperty(exports,"isSafeInteger",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.x}});Object.defineProperty(exports,"isValidURL",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.y}});Object.defineProperty(exports,"isWeakMap",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.z}});Object.defineProperty(exports,"textContainsAll",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.e}});Object.defineProperty(exports,"textContainsAny",{enumerable:true,get:function(){return chunk2KRCHXFG_cjs.f}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkD5TYPCWU_cjs.a}});Object.defineProperty(exports,"getInitialsName",{enumerable:true,get:function(){return chunkIW73G523_cjs.b}});Object.defineProperty(exports,"replaceAt",{enumerable:true,get:function(){return chunkIW73G523_cjs.a}});Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkYFTR64N5_cjs.a}});Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunk7TC6DE3J_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunk7TC6DE3J_cjs.b}});Object.defineProperty(exports,"isURL",{enumerable:true,get:function(){return chunkFIEZKTAZ_cjs.a}});Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkIY5OZAB3_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkIY5OZAB3_cjs.b}});Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.d}});Object.defineProperty(exports,"isNonEmptyValue",{enumerable:true,get:function(){return chunkUA4B7JBO_cjs.a}});Object.defineProperty(exports,"isTypedArray",{enumerable:true,get:function(){return chunkUA4B7JBO_cjs.b}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.c}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.b}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.d}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.a}});Object.defineProperty(exports,"isEmptyValue",{enumerable:true,get:function(){return chunkZQOLZE6Z_cjs.a}});Object.defineProperty(exports,"isArrayBuffer",{enumerable:true,get:function(){return chunkG7R5XZRM_cjs.b}});Object.defineProperty(exports,"isEmptyArray",{enumerable:true,get:function(){return chunkG7R5XZRM_cjs.e}});Object.defineProperty(exports,"isEmptyObject",{enumerable:true,get:function(){return chunkG7R5XZRM_cjs.f}});Object.defineProperty(exports,"isEqual",{enumerable:true,get:function(){return chunkG7R5XZRM_cjs.d}});Object.defineProperty(exports,"isRegExp",{enumerable:true,get:function(){return chunkG7R5XZRM_cjs.a}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunkUQDJF5RR_cjs.a}});Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkGGEV7LXX_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkGGEV7LXX_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkGGEV7LXX_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkGGEV7LXX_cjs.d}});Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});Object.defineProperty(exports,"censorEmail",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.h}});Object.defineProperty(exports,"chunkString",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.i}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.a}});Object.defineProperty(exports,"formatDateFns",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.f}});Object.defineProperty(exports,"formatDateIntl",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.e}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.d}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.b}});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.c}});Object.defineProperty(exports,"getGMTOffset",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.g}});Object.defineProperty(exports,"truncateString",{enumerable:true,get:function(){return chunkHJOZOENU_cjs.j}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkQSQDP7L2_cjs.a}});Object.defineProperty(exports,"isFinite",{enumerable:true,get:function(){return chunkQ3NTKN5I_cjs.a}});Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkSZPWZZYG_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkSZPWZZYG_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkSZPWZZYG_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkSZPWZZYG_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunkOZCQZO2V_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunkOZCQZO2V_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunkOZCQZO2V_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunkOZCQZO2V_cjs.c}});Object.defineProperty(exports,"normalizeSpaces",{enumerable:true,get:function(){return chunkMROH35V3_cjs.a}});Object.defineProperty(exports,"normalizeString",{enumerable:true,get:function(){return chunkMROH35V3_cjs.b}});Object.defineProperty(exports,"removeSpaces",{enumerable:true,get:function(){return chunkMROH35V3_cjs.c}});Object.defineProperty(exports,"stripHtmlTags",{enumerable:true,get:function(){return chunkMROH35V3_cjs.d}});Object.defineProperty(exports,"isEmptyString",{enumerable:true,get:function(){return chunkUTQUYABU_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBEZPD44N_cjs.a}});Object.defineProperty(exports,"isInteger",{enumerable:true,get:function(){return chunkPUQXRLZH_cjs.a}});Object.defineProperty(exports,"isDate",{enumerable:true,get:function(){return chunk26W3VZIK_cjs.b}});Object.defineProperty(exports,"isMap",{enumerable:true,get:function(){return chunk26W3VZIK_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunk26W3VZIK_cjs.c}});Object.defineProperty(exports,"isBigInt",{enumerable:true,get:function(){return chunk7YWAQOA4_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.j}});Object.defineProperty(exports,"capitalizeFirst",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.s}});Object.defineProperty(exports,"capitalizeWords",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.t}});Object.defineProperty(exports,"getPreciseType",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.E}});Object.defineProperty(exports,"hasOwnProp",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.o}});Object.defineProperty(exports,"isArray",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.d}});Object.defineProperty(exports,"isBoolean",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.a}});Object.defineProperty(exports,"isBuffer",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.D}});Object.defineProperty(exports,"isError",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.C}});Object.defineProperty(exports,"isFunction",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.b}});Object.defineProperty(exports,"isNaN",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.h}});Object.defineProperty(exports,"isNil",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.c}});Object.defineProperty(exports,"isNonEmptyArray",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.r}});Object.defineProperty(exports,"isNonEmptyString",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.p}});Object.defineProperty(exports,"isNull",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.i}});Object.defineProperty(exports,"isNumber",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.k}});Object.defineProperty(exports,"isObject",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.e}});Object.defineProperty(exports,"isObjectOrArray",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.n}});Object.defineProperty(exports,"isPlainObject",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.f}});Object.defineProperty(exports,"isSet",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.q}});Object.defineProperty(exports,"isString",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.g}});Object.defineProperty(exports,"isSymbol",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.l}});Object.defineProperty(exports,"isUndefined",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.m}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.B}});Object.defineProperty(exports,"toCamelCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.u}});Object.defineProperty(exports,"toDotCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.A}});Object.defineProperty(exports,"toKebabCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.y}});Object.defineProperty(exports,"toLowerCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.x}});Object.defineProperty(exports,"toPascalCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.w}});Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.v}});Object.defineProperty(exports,"toSnakeCase",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.z}});
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{assertIsArray,assertIsBigInt,assertIsBoolean,assertIsNumber,assertIsPlainObject,assertIsString}from'./assertions/index.js';export{cleanParsedData,convertType,dedupeArray,extractDigits,filterNilArray,parseCurrencyString,parseCustomDate,removeObjectPaths,safeJsonParse,safeStableStringify,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringArrayUnRecursive,toStringDeep,toStringDeepForce}from'./conversions/index.js';export{isServer}from'./env/index.js';export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop}from'./events/index.js';export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from'./formatting/index.js';export{getRandomItem,noop,randomInt,randomIntByLength,randomStr}from'./generator/index.js';export{findDuplicates,omitKeys,omitKeysDeep}from'./operations/index.js';export{extractFileName}from'./parsers/index.js';export{IsArrayResult,areArraysEqual,areObjectsEqual,areURLsEqualPath,areURLsIdentical,arrayHasAnyMatch,doesKeyExist,hasOwnProp,isArguments,isArray,isArrayBuffer,isArrayLike,isArrayLikeObject,isBigInt,isBoolean,isBuffer,isCurrencyLike,isDate,isDeepEqual,isElement,isEmpty,isEmptyArray,isEmptyDeep,isEmptyObject,isEmptyString,isEmptyValue,isEqual,isEqualWith,isError,isFinite,isFunction,isInteger,isLength,isMap,isMatch,isMatchWith,isNaN,isNative,isNil,isNonEmptyArray,isNonEmptyString,isNonEmptyValue,isNull,isObject,isObjectLoose,isObjectOrArray,isPropertyKey,isRegExp,isSafeInteger,isSet,isString,isSymbol,isTypedArray,isURL,isUndefined,isValidURL,isWeakMap,textContainsAll,textContainsAny}from'./predicates/index.js';export{G as GetPreciseTypeOptions,I as IsNumberOptions,a as IsPlainObjectResult,g as getPreciseType,i as isNumber,b as isPlainObject}from'./isPlainObject-BVhBAPHX.js';export{delay}from'./promise/index.js';export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase}from'./strings/index.js';export{shouldForwardProp}from'./stylings/index.js';export{QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname}from'./urls/index.js';import'./type-data-DDs-u2kq.js';import'./arrays-normalize-recursive-CnjYJ9xg.js';import'./nils-DMz3kU7M.js';import'./any-BmdI8UbK.js';import'./if-CvT4R7Kh.js';import'./extends-Bk_SBGdT.js';import'./never-BfayMBF9.js';import'./prettify-C4xLcYOP.js';import'./NumberRangeUnion-DC-C3_Kq.js';import'./omit-VvmIsZmX.js';import'date-fns';import'./string-XA-til3C.js';import'./is-array--YjXV-Wx.js';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as findDuplicates,b as omitKeys,c as omitKeysDeep}from'./chunk-K3UVKYEU.js';export{a as extractFileName}from'./chunk-4L4EJTNZ.js';export{a as areArraysEqual,b as areObjectsEqual,c as areURLsEqualPath,d as areURLsIdentical,i as arrayHasAnyMatch,h as doesKeyExist,j as isArguments,l as isArrayLike,m as isArrayLikeObject,n as isCurrencyLike,o as isDeepEqual,p as isElement,q as isEmpty,r as isEmptyDeep,s as isEqualWith,k as isLength,u as isMatch,t as isMatchWith,v as isNative,w as isObjectLoose,g as isPropertyKey,x as isSafeInteger,y as isValidURL,z as isWeakMap,e as textContainsAll,f as textContainsAny}from'./chunk-QGXTL5ZH.js';export{a as delay}from'./chunk-NXMTWY77.js';export{b as getInitialsName,a as replaceAt}from'./chunk-33ZLH266.js';export{a as shouldForwardProp}from'./chunk-JYNSO7ZY.js';export{a as constructURL,b as extractURLs}from'./chunk-SGTHOQQ2.js';export{a as isURL}from'./chunk-NNM7QCNB.js';export{a as assertIsBigInt,b as assertIsNumber}from'./chunk-BI263OHW.js';export{f as convertType,g as removeObjectPaths,b as toBooleanContent,c as toBooleanContentDeep,d as toBooleanExplicit,e as toBooleanLoose,a as toNumberArrayUnRecursive,h as toNumberDeep,i as toStringDeep}from'./chunk-VPW3DRV5.js';export{b as cleanParsedData,a as extractDigits,c as parseCustomDate,d as safeJsonParse}from'./chunk-EEQY5QUG.js';export{a as isNonEmptyValue,b as isTypedArray}from'./chunk-J7JAZAJD.js';export{c as dedupeArray,b as filterNilArray,d as toStringArrayUnRecursive,a as toStringDeepForce}from'./chunk-W32WALNU.js';export{a as isEmptyValue}from'./chunk-7MMJZ6HS.js';export{b as isArrayBuffer,e as isEmptyArray,f as isEmptyObject,d as isEqual,a as isRegExp}from'./chunk-LQ76EDZG.js';export{a as assertIsArray}from'./chunk-SL3RQOWA.js';import'./chunk-G5LXIEFO.js';export{a as disableUserInteraction,b as enableUserInteraction,c as removeElementFocus,d as scrollToTop}from'./chunk-S5M33A4O.js';export{a as isServer}from'./chunk-56QBKKRE.js';export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'./chunk-G4EWCRKS.js';export{a as parseCurrencyString}from'./chunk-7VX33E3V.js';export{a as isFinite}from'./chunk-ESJYBIYH.js';export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'./chunk-5Q37AP7P.js';export{a as noop}from'./chunk-SYJC7UAW.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'./chunk-QDNSC57Z.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'./chunk-NR44SNYE.js';export{a as isEmptyString}from'./chunk-7CHFAMS2.js';export{a as assertIsString}from'./chunk-NJSAV73S.js';export{a as isInteger}from'./chunk-ELDDNERR.js';export{b as isDate,a as isMap,c as safeStableStringify}from'./chunk-J4NCYYGS.js';export{a as isBigInt}from'./chunk-5SZUSNGZ.js';export{G as assertIsBoolean,j as assertIsPlainObject,s as capitalizeFirst,t as capitalizeWords,E as getPreciseType,o as hasOwnProp,d as isArray,a as isBoolean,D as isBuffer,C as isError,b as isFunction,h as isNaN,c as isNil,r as isNonEmptyArray,p as isNonEmptyString,i as isNull,k as isNumber,e as isObject,n as isObjectOrArray,f as isPlainObject,q as isSet,g as isString,l as isSymbol,m as isUndefined,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'./chunk-EWYPSKKM.js';
|
package/dist/stylings/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkYFTR64N5_cjs=require('../chunk-YFTR64N5.cjs');require('../chunk-UQDJF5RR.cjs'),require('../chunk-CII6WWLO.cjs');Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkYFTR64N5_cjs.a}});
|
package/dist/stylings/index.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** Converts a union type into an intersection type.
|
|
2
|
-
*
|
|
3
|
-
* @template U - The union type to be converted.
|
|
4
|
-
*/
|
|
5
|
-
type UnionToIntersectionStrict<U>=(U extends never?never:(arg:U)=>never)extends(arg:infer I)=>void?I:never;
|
|
6
|
-
/** Converts a union type into a tuple type.
|
|
7
|
-
*
|
|
8
|
-
* @template T - The union type to be converted.
|
|
9
|
-
*/
|
|
10
|
-
type UnionToTupleStrict<T>=UnionToIntersectionStrict<T extends never?never:(t:T)=>T>extends(_:never)=>infer W?[...UnionToTupleStrict<Exclude<T,W>>,W]:[];
|
|
11
|
-
/** ----------------------------------------------------------
|
|
12
|
-
* * ***Utility: `shouldForwardProp`.***
|
|
13
|
-
* ----------------------------------------------------------
|
|
14
|
-
* **Creates a helper for styled-components `shouldForwardProp`.**
|
|
15
|
-
* @description
|
|
16
|
-
* This utility returns a predicate function that determines whether a given prop
|
|
17
|
-
* should be forwarded to the DOM, useful for filtering out internal props (e.g.,
|
|
18
|
-
* `$size`, `$active`) so they don't end up as invalid HTML attributes.
|
|
19
|
-
* - **Behavior:**
|
|
20
|
-
* - Accepts a tuple (strict) of prop keys to exclude from forwarding.
|
|
21
|
-
* - Automatically coerces prop names to string for consistent checking.
|
|
22
|
-
* - Supports string, number, or symbol keys (via PropertyKey).
|
|
23
|
-
* - Will throw an error if the provided `props` argument is not an array.
|
|
24
|
-
* @template CustomProps - The type of the component's props.
|
|
25
|
-
* @param {UnionToTupleStrict<keyof CustomProps>} props
|
|
26
|
-
* The list of prop names (keys of `CustomProps`) to exclude from forwarding.
|
|
27
|
-
* @returns {(propName: PropertyKey) => boolean}
|
|
28
|
-
* A function that takes a prop name and returns `true` if it should be forwarded, `false` if it should be blocked.
|
|
29
|
-
* @throws {TypeError} If `props` is not an array.
|
|
30
|
-
* @example
|
|
31
|
-
* type Props = { $size: string; color: string; visible: boolean };
|
|
32
|
-
* const filter = shouldForwardProp<Props>(["$size"]);
|
|
33
|
-
* filter("$size"); // ➔ false (blocked)
|
|
34
|
-
* filter("color"); // ➔ true (forwarded)
|
|
35
|
-
* @example
|
|
36
|
-
* // Using with styled-components:
|
|
37
|
-
* styled.div.withConfig({
|
|
38
|
-
* shouldForwardProp: shouldForwardProp<CustomProps>(["$internal"])
|
|
39
|
-
* })
|
|
40
|
-
*/
|
|
41
|
-
declare const shouldForwardProp:<CustomProps>(props:Partial<UnionToTupleStrict<keyof CustomProps>>)=>((propName:keyof CustomProps)=>boolean);export{shouldForwardProp};
|
package/dist/stylings/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as shouldForwardProp}from'../chunk-JYNSO7ZY.js';import'../chunk-SL3RQOWA.js';import'../chunk-EWYPSKKM.js';
|