@rzl-zone/utils-js 3.1.3-beta.0 → 3.2.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +11 -10
  2. package/dist/assertions/index.cjs +1 -1
  3. package/dist/assertions/index.js +1 -1
  4. package/dist/chunk-2HSNUPEO.cjs +1 -0
  5. package/dist/chunk-3YCFMGRB.js +1 -0
  6. package/dist/chunk-4Z75R3IT.cjs +1 -0
  7. package/dist/chunk-5C2SMIGX.cjs +1 -0
  8. package/dist/chunk-5Z2G23WP.js +1 -0
  9. package/dist/chunk-6C3ATUGM.cjs +1 -0
  10. package/dist/chunk-AJ25PWXX.cjs +1 -0
  11. package/dist/chunk-BHIBDDQF.js +1 -0
  12. package/dist/chunk-CE4JI2YB.js +1 -0
  13. package/dist/chunk-CMJ6UYWW.cjs +1 -0
  14. package/dist/chunk-D3VSHABU.cjs +1 -0
  15. package/dist/chunk-DG2GWBTS.cjs +1 -0
  16. package/dist/chunk-DVMHRLKP.cjs +1 -0
  17. package/dist/chunk-ECRNH4FW.js +1 -0
  18. package/dist/chunk-EKS4IZJR.cjs +1 -0
  19. package/dist/chunk-EOZKYR5S.cjs +1 -0
  20. package/dist/chunk-EUANTHVN.js +1 -0
  21. package/dist/chunk-EW3I4O7X.js +1 -0
  22. package/dist/chunk-F3E77L46.js +1 -0
  23. package/dist/chunk-FIAAX3UE.js +1 -0
  24. package/dist/chunk-FV7SEBKD.cjs +1 -0
  25. package/dist/chunk-GGWPB23G.cjs +1 -0
  26. package/dist/chunk-GVWGQNLF.js +1 -0
  27. package/dist/chunk-H3FXL4DU.cjs +1 -0
  28. package/dist/chunk-HHPDLSX2.cjs +1 -0
  29. package/dist/chunk-IMCLPT5V.cjs +1 -0
  30. package/dist/chunk-IRGE5W7L.js +1 -0
  31. package/dist/chunk-J2RGTPGK.cjs +1 -0
  32. package/dist/chunk-JARPXKBM.cjs +1 -0
  33. package/dist/chunk-JFJUPYDT.cjs +1 -0
  34. package/dist/chunk-JLP56WSM.js +1 -0
  35. package/dist/chunk-K3MV4AIN.cjs +1 -0
  36. package/dist/chunk-KHO2SBNA.cjs +1 -0
  37. package/dist/chunk-KOVO72OM.js +1 -0
  38. package/dist/chunk-LJ4M3VGE.js +1 -0
  39. package/dist/chunk-LJVGJLP4.js +1 -0
  40. package/dist/chunk-M47QIBXI.cjs +1 -0
  41. package/dist/chunk-MC3LXMCQ.js +1 -0
  42. package/dist/chunk-MISCBZJC.js +1 -0
  43. package/dist/chunk-MMSYCIJ2.cjs +1 -1
  44. package/dist/chunk-MTUBDVJ2.js +1 -0
  45. package/dist/chunk-O7UT5AN3.cjs +1 -0
  46. package/dist/chunk-OGPPP2S3.js +1 -0
  47. package/dist/chunk-OLPKAX7F.cjs +1 -0
  48. package/dist/chunk-ONZFBJVW.js +1 -0
  49. package/dist/chunk-ORZFHBEY.js +1 -0
  50. package/dist/chunk-OWV2P376.js +1 -0
  51. package/dist/chunk-QNKGP5DY.js +1 -0
  52. package/dist/chunk-RV2WK5E6.js +1 -0
  53. package/dist/chunk-SBF43G3B.cjs +1 -0
  54. package/dist/chunk-T4CIAKEK.js +1 -0
  55. package/dist/chunk-UDA26MCU.cjs +1 -0
  56. package/dist/chunk-VCFXNV3Q.cjs +1 -0
  57. package/dist/chunk-VHAPTHEA.cjs +1 -0
  58. package/dist/chunk-WVSPXFTY.js +1 -0
  59. package/dist/chunk-X74TUJSE.cjs +1 -0
  60. package/dist/chunk-XC3QHAK2.cjs +1 -0
  61. package/dist/chunk-XLDAIZRK.js +1 -0
  62. package/dist/chunk-XZJ7C4N6.js +1 -0
  63. package/dist/chunk-YV3K2EKJ.js +1 -0
  64. package/dist/chunk-ZHV5ZYVN.cjs +1 -0
  65. package/dist/chunk-ZL7J6GTP.js +1 -0
  66. package/dist/chunk-ZTCLKKMB.js +1 -0
  67. package/dist/conversions/index.cjs +1 -1
  68. package/dist/conversions/index.js +1 -1
  69. package/dist/env/index.cjs +1 -1
  70. package/dist/env/index.js +1 -1
  71. package/dist/events/index.cjs +1 -1
  72. package/dist/events/index.js +1 -1
  73. package/dist/formatting/index.cjs +1 -1
  74. package/dist/formatting/index.js +1 -1
  75. package/dist/generator/index.cjs +1 -1
  76. package/dist/generator/index.js +1 -1
  77. package/dist/next/index.cjs +1 -8
  78. package/dist/next/index.js +1 -8
  79. package/dist/next/server/index.cjs +1 -2
  80. package/dist/next/server/index.js +1 -2
  81. package/dist/operations/index.cjs +1 -1
  82. package/dist/operations/index.js +1 -1
  83. package/dist/parsers/index.cjs +1 -1
  84. package/dist/parsers/index.js +1 -1
  85. package/dist/predicates/index.cjs +1 -1
  86. package/dist/predicates/index.js +1 -1
  87. package/dist/promise/index.cjs +1 -1
  88. package/dist/promise/index.js +1 -1
  89. package/dist/rzl-utils.global.js +1 -4
  90. package/dist/strings/index.cjs +1 -1
  91. package/dist/strings/index.js +1 -1
  92. package/dist/tailwind/index.cjs +1 -0
  93. package/dist/tailwind/index.d.ts +565 -0
  94. package/dist/tailwind/index.js +1 -0
  95. package/dist/urls/index.cjs +1 -1
  96. package/dist/urls/index.js +1 -1
  97. package/package.json +22 -9
  98. package/dist/chunk-26W3VZIK.cjs +0 -1
  99. package/dist/chunk-2KRCHXFG.cjs +0 -2
  100. package/dist/chunk-33ZLH266.js +0 -1
  101. package/dist/chunk-4L4EJTNZ.js +0 -1
  102. package/dist/chunk-56QBKKRE.js +0 -1
  103. package/dist/chunk-5Q37AP7P.js +0 -1
  104. package/dist/chunk-5SZUSNGZ.js +0 -1
  105. package/dist/chunk-7CHFAMS2.js +0 -1
  106. package/dist/chunk-7MMJZ6HS.js +0 -1
  107. package/dist/chunk-7TC6DE3J.cjs +0 -1
  108. package/dist/chunk-7VX33E3V.js +0 -1
  109. package/dist/chunk-7YWAQOA4.cjs +0 -1
  110. package/dist/chunk-BEZPD44N.cjs +0 -1
  111. package/dist/chunk-BI263OHW.js +0 -1
  112. package/dist/chunk-CII6WWLO.cjs +0 -1
  113. package/dist/chunk-D5TYPCWU.cjs +0 -1
  114. package/dist/chunk-EEQY5QUG.js +0 -1
  115. package/dist/chunk-ELDDNERR.js +0 -1
  116. package/dist/chunk-ESJYBIYH.js +0 -1
  117. package/dist/chunk-EWYPSKKM.js +0 -1
  118. package/dist/chunk-EXCOQLWX.cjs +0 -1
  119. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  120. package/dist/chunk-FWQVTMYA.cjs +0 -1
  121. package/dist/chunk-G4EWCRKS.js +0 -1
  122. package/dist/chunk-G7R5XZRM.cjs +0 -1
  123. package/dist/chunk-GGEV7LXX.cjs +0 -1
  124. package/dist/chunk-HJOZOENU.cjs +0 -1
  125. package/dist/chunk-IRDZVLNZ.cjs +0 -1
  126. package/dist/chunk-IW73G523.cjs +0 -1
  127. package/dist/chunk-IY5OZAB3.cjs +0 -1
  128. package/dist/chunk-J4NCYYGS.js +0 -1
  129. package/dist/chunk-J7JAZAJD.js +0 -1
  130. package/dist/chunk-JYNSO7ZY.js +0 -1
  131. package/dist/chunk-K3UVKYEU.js +0 -1
  132. package/dist/chunk-LQ76EDZG.js +0 -1
  133. package/dist/chunk-MROH35V3.cjs +0 -1
  134. package/dist/chunk-NJSAV73S.js +0 -1
  135. package/dist/chunk-NNM7QCNB.js +0 -1
  136. package/dist/chunk-NR44SNYE.js +0 -1
  137. package/dist/chunk-NXMTWY77.js +0 -1
  138. package/dist/chunk-OZCQZO2V.cjs +0 -4
  139. package/dist/chunk-PUQXRLZH.cjs +0 -1
  140. package/dist/chunk-Q3NTKN5I.cjs +0 -1
  141. package/dist/chunk-QDNSC57Z.js +0 -4
  142. package/dist/chunk-QGXTL5ZH.js +0 -2
  143. package/dist/chunk-QSQDP7L2.cjs +0 -1
  144. package/dist/chunk-RV2VULM7.cjs +0 -1
  145. package/dist/chunk-S5M33A4O.js +0 -1
  146. package/dist/chunk-SGTHOQQ2.js +0 -1
  147. package/dist/chunk-SL3RQOWA.js +0 -1
  148. package/dist/chunk-SW6HYEW7.cjs +0 -1
  149. package/dist/chunk-SYJC7UAW.js +0 -1
  150. package/dist/chunk-SZPWZZYG.cjs +0 -1
  151. package/dist/chunk-UA4B7JBO.cjs +0 -1
  152. package/dist/chunk-UQDJF5RR.cjs +0 -1
  153. package/dist/chunk-UTQUYABU.cjs +0 -1
  154. package/dist/chunk-VPW3DRV5.js +0 -1
  155. package/dist/chunk-W32WALNU.js +0 -1
  156. package/dist/chunk-XGZ6K753.cjs +0 -1
  157. package/dist/chunk-YFTR64N5.cjs +0 -1
  158. package/dist/chunk-ZFDS7W6B.cjs +0 -1
  159. package/dist/chunk-ZQOLZE6Z.cjs +0 -1
  160. package/dist/stylings/index.cjs +0 -1
  161. package/dist/stylings/index.d.ts +0 -41
  162. package/dist/stylings/index.js +0 -1
@@ -1 +0,0 @@
1
- 'use strict';var e=()=>typeof window>"u"||typeof document>"u";exports.a=e;
@@ -1 +0,0 @@
1
- var o=()=>{};export{o as a};
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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};
@@ -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};
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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}});
@@ -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};
@@ -1 +0,0 @@
1
- export{a as shouldForwardProp}from'../chunk-JYNSO7ZY.js';import'../chunk-SL3RQOWA.js';import'../chunk-EWYPSKKM.js';