@rzl-zone/utils-js 3.0.2-beta.2 → 3.1.1-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 (164) hide show
  1. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
  2. package/dist/any-BmdI8UbK.d.ts +56 -56
  3. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
  4. package/dist/assertions/index.cjs +1 -1
  5. package/dist/assertions/index.d.ts +398 -418
  6. package/dist/assertions/index.js +1 -1
  7. package/dist/chunk-26W3VZIK.cjs +1 -0
  8. package/dist/chunk-2KRCHXFG.cjs +2 -0
  9. package/dist/chunk-33ZLH266.js +1 -0
  10. package/dist/{chunk-EXZ47NOW.js → chunk-4L4EJTNZ.js} +1 -1
  11. package/dist/chunk-5Q37AP7P.js +1 -0
  12. package/dist/chunk-7CHFAMS2.js +1 -0
  13. package/dist/chunk-7MMJZ6HS.js +1 -0
  14. package/dist/chunk-7TC6DE3J.cjs +1 -0
  15. package/dist/{chunk-XH6MCRLP.js → chunk-7VX33E3V.js} +1 -1
  16. package/dist/chunk-BEZPD44N.cjs +1 -0
  17. package/dist/chunk-BI263OHW.js +1 -0
  18. package/dist/chunk-CII6WWLO.cjs +1 -0
  19. package/dist/chunk-D5TYPCWU.cjs +1 -0
  20. package/dist/chunk-EEQY5QUG.js +1 -0
  21. package/dist/chunk-ESJYBIYH.js +1 -0
  22. package/dist/chunk-EWYPSKKM.js +1 -0
  23. package/dist/chunk-EXCOQLWX.cjs +1 -0
  24. package/dist/chunk-FWQVTMYA.cjs +1 -0
  25. package/dist/chunk-G4EWCRKS.js +1 -0
  26. package/dist/chunk-G7R5XZRM.cjs +1 -0
  27. package/dist/chunk-GGEV7LXX.cjs +1 -0
  28. package/dist/chunk-HJOZOENU.cjs +1 -0
  29. package/dist/{chunk-BYZAD3XN.cjs → chunk-IRDZVLNZ.cjs} +1 -1
  30. package/dist/chunk-IW73G523.cjs +1 -0
  31. package/dist/chunk-IY5OZAB3.cjs +1 -0
  32. package/dist/chunk-J4NCYYGS.js +1 -0
  33. package/dist/chunk-J7JAZAJD.js +1 -0
  34. package/dist/{chunk-FF76ISQ2.js → chunk-JYNSO7ZY.js} +1 -1
  35. package/dist/chunk-K3UVKYEU.js +1 -0
  36. package/dist/chunk-LQ76EDZG.js +1 -0
  37. package/dist/chunk-MROH35V3.cjs +1 -0
  38. package/dist/chunk-NJSAV73S.js +1 -0
  39. package/dist/chunk-NR44SNYE.js +1 -0
  40. package/dist/chunk-NXMTWY77.js +1 -0
  41. package/dist/chunk-OZCQZO2V.cjs +4 -0
  42. package/dist/chunk-Q3NTKN5I.cjs +1 -0
  43. package/dist/chunk-QDNSC57Z.js +4 -0
  44. package/dist/chunk-QGXTL5ZH.js +2 -0
  45. package/dist/{chunk-JWHM3WZQ.cjs → chunk-QSQDP7L2.cjs} +1 -1
  46. package/dist/{chunk-RN3TP3S3.js → chunk-S5M33A4O.js} +1 -1
  47. package/dist/chunk-SGTHOQQ2.js +1 -0
  48. package/dist/chunk-SL3RQOWA.js +1 -0
  49. package/dist/chunk-SZPWZZYG.cjs +1 -0
  50. package/dist/chunk-UA4B7JBO.cjs +1 -0
  51. package/dist/chunk-UQDJF5RR.cjs +1 -0
  52. package/dist/chunk-UTQUYABU.cjs +1 -0
  53. package/dist/chunk-VPW3DRV5.js +1 -0
  54. package/dist/chunk-W32WALNU.js +1 -0
  55. package/dist/chunk-XGZ6K753.cjs +1 -0
  56. package/dist/chunk-YFTR64N5.cjs +1 -0
  57. package/dist/chunk-ZFDS7W6B.cjs +1 -0
  58. package/dist/chunk-ZQOLZE6Z.cjs +1 -0
  59. package/dist/conversions/index.cjs +1 -1
  60. package/dist/conversions/index.d.ts +1307 -1504
  61. package/dist/conversions/index.js +1 -1
  62. package/dist/env/index.d.ts +14 -17
  63. package/dist/events/index.cjs +1 -1
  64. package/dist/events/index.d.ts +111 -108
  65. package/dist/events/index.js +1 -1
  66. package/dist/extends-Bk_SBGdT.d.ts +367 -0
  67. package/dist/formatting/index.cjs +1 -1
  68. package/dist/formatting/index.d.ts +878 -840
  69. package/dist/formatting/index.js +1 -1
  70. package/dist/generator/index.cjs +1 -1
  71. package/dist/generator/index.d.ts +173 -150
  72. package/dist/generator/index.js +1 -1
  73. package/dist/if-CvT4R7Kh.d.ts +16 -16
  74. package/dist/index.cjs +1 -1
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/is-array--YjXV-Wx.d.ts +1207 -0
  78. package/dist/isPlainObject-BVhBAPHX.d.ts +169 -0
  79. package/dist/never-BfayMBF9.d.ts +64 -64
  80. package/dist/next/index.cjs +6 -6
  81. package/dist/next/index.d.ts +196 -176
  82. package/dist/next/index.js +5 -5
  83. package/dist/next/server/index.cjs +1 -1
  84. package/dist/next/server/index.d.ts +26 -40
  85. package/dist/next/server/index.js +1 -1
  86. package/dist/nils-DMz3kU7M.d.ts +155 -155
  87. package/dist/omit-VvmIsZmX.d.ts +25 -25
  88. package/dist/operations/index.cjs +1 -1
  89. package/dist/operations/index.d.ts +121 -176
  90. package/dist/operations/index.js +1 -1
  91. package/dist/parsers/index.cjs +1 -1
  92. package/dist/parsers/index.d.ts +35 -36
  93. package/dist/parsers/index.js +1 -1
  94. package/dist/predicates/index.cjs +1 -1
  95. package/dist/predicates/index.d.ts +1701 -1675
  96. package/dist/predicates/index.js +1 -1
  97. package/dist/prettify-C4xLcYOP.d.ts +328 -328
  98. package/dist/promise/index.cjs +1 -1
  99. package/dist/promise/index.d.ts +29 -38
  100. package/dist/promise/index.js +1 -1
  101. package/dist/rzl-utils.global.js +3 -3
  102. package/dist/string-XA-til3C.d.ts +351 -0
  103. package/dist/strings/index.cjs +1 -1
  104. package/dist/strings/index.d.ts +712 -787
  105. package/dist/strings/index.js +1 -1
  106. package/dist/stylings/index.cjs +1 -1
  107. package/dist/stylings/index.d.ts +37 -45
  108. package/dist/stylings/index.js +1 -1
  109. package/dist/type-data-DDs-u2kq.d.ts +241 -241
  110. package/dist/types/index.d.ts +3266 -3266
  111. package/dist/urls/index.cjs +1 -1
  112. package/dist/urls/index.d.ts +384 -409
  113. package/dist/urls/index.js +1 -1
  114. package/package.json +53 -11
  115. package/dist/array-CIZRbqTF.d.ts +0 -223
  116. package/dist/chunk-2TRAPBZ7.cjs +0 -1
  117. package/dist/chunk-3D74QO5D.cjs +0 -1
  118. package/dist/chunk-4DK3RCC4.js +0 -2
  119. package/dist/chunk-4JOQ45HL.js +0 -1
  120. package/dist/chunk-55CZALRS.js +0 -1
  121. package/dist/chunk-5JFV3GDE.cjs +0 -4
  122. package/dist/chunk-62HX5Z45.cjs +0 -1
  123. package/dist/chunk-7NA6DUHR.cjs +0 -2
  124. package/dist/chunk-BVPMMWDL.cjs +0 -1
  125. package/dist/chunk-CEFYHEM4.cjs +0 -1
  126. package/dist/chunk-CN53M4QZ.cjs +0 -1
  127. package/dist/chunk-D47MHBSD.cjs +0 -1
  128. package/dist/chunk-DGH75GJD.js +0 -1
  129. package/dist/chunk-E5NUI7PN.js +0 -1
  130. package/dist/chunk-FDITZ5C6.cjs +0 -1
  131. package/dist/chunk-FSSV24W7.cjs +0 -1
  132. package/dist/chunk-GCGU2WB7.js +0 -1
  133. package/dist/chunk-GECI2YBP.js +0 -1
  134. package/dist/chunk-GQE4OVHC.cjs +0 -1
  135. package/dist/chunk-GRVZXQXL.cjs +0 -1
  136. package/dist/chunk-I4AVNHPA.cjs +0 -1
  137. package/dist/chunk-JFRL7NKU.js +0 -4
  138. package/dist/chunk-KCQDDZJE.cjs +0 -1
  139. package/dist/chunk-L54ZPSYJ.js +0 -1
  140. package/dist/chunk-LVKAYEZ4.js +0 -1
  141. package/dist/chunk-MBDWTK54.cjs +0 -1
  142. package/dist/chunk-MNGGDB2G.js +0 -1
  143. package/dist/chunk-MY7BA4GI.cjs +0 -1
  144. package/dist/chunk-N2IJPIND.cjs +0 -1
  145. package/dist/chunk-NIMNTEGV.js +0 -1
  146. package/dist/chunk-PVJF2JHM.js +0 -1
  147. package/dist/chunk-QCFXEUKL.js +0 -1
  148. package/dist/chunk-QFCGBBSY.js +0 -1
  149. package/dist/chunk-QQYAUPSK.cjs +0 -1
  150. package/dist/chunk-TC4VBE4Y.cjs +0 -1
  151. package/dist/chunk-TUXDINHF.cjs +0 -1
  152. package/dist/chunk-U5Y2FXMN.cjs +0 -1
  153. package/dist/chunk-UUPQI6ND.cjs +0 -1
  154. package/dist/chunk-VYCGZ2S6.js +0 -1
  155. package/dist/chunk-W5EDKJK3.js +0 -1
  156. package/dist/chunk-WHAVUFEU.js +0 -1
  157. package/dist/chunk-XCFIOTCV.js +0 -1
  158. package/dist/chunk-XE27XPJR.js +0 -1
  159. package/dist/chunk-XVB3ZZEB.js +0 -1
  160. package/dist/chunk-ZBSIGJFO.cjs +0 -1
  161. package/dist/chunk-ZYAML74V.js +0 -1
  162. package/dist/extends-Mp81Hq9-.d.ts +0 -145
  163. package/dist/is-array-Ckm_47hw.d.ts +0 -1557
  164. package/dist/isPlainObject-BKYaI6a8.d.ts +0 -182
@@ -1 +0,0 @@
1
- import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {r,E,i,f,G,n}from'./chunk-XCFIOTCV.js';function S(e){if(!r(e))return;let r$1=Math.floor(Math.random()*(e.length||0));return e[r$1]}var s=(e,r)=>{if(!a(e)||!a(r))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${I(e,r)}value, but received: ['min': \`${E(e)}\` - (with value: ${c(e)}), 'max': \`${E(r)}\` - (with value: ${c(r)})].`);if(e>r)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${N(e)}', 'max': '${N(r)}'].`);return e=Math.max(1,e),r=Math.min(Number.MAX_SAFE_INTEGER,r),Math.floor(Math.random()*(r-e+1))+e};function N(e){return i(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${E(e)}\``}var I=(...e)=>e.some(r=>i(r,{includeNaN:true})&&r===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var B=e=>{f(e)||(e={});let{minLength:r=1,maxLength:t=16,avoidZero:o=false}=e;if(G(o,{message({currentType:y,validType:g}){return `Parameters \`avoidZero\` must be of type \`${g}\`, but received: \`${y}\`.`}}),!a(r)||!a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E(r)}\` - (with value: ${c(r)}), 'maxLength': \`${E(t)}\` - (with value: ${c(t)})].`);if(r<1||t>16||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);let u=r===t?r:s(r,t),d=10**(u-1),p=10**u-1,f$1=s(d,p);return o&&f$1===0&&(f$1=d),f$1};var Y=e=>{f(e)||(e={});let{minLength:r=40,maxLength:t=40,type:o="string",avoidWhiteSpace:u=true}=e;if(G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${L}\`, but received: \`${m}\`.`}}),!a(r)||!a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E(r)}\` - (with value: ${c(r)}), 'maxLength': \`${E(t)}\` - (with value: ${c(t)})].`);if(r<1||t>5e3||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${E(o)}\`, with value: ${c(o)}.`);let d=s(r,t),p=m=>u?m.replace(/\s|\n|\t/g,""):m,g=o==="number"?(n(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c$1=p(g)+(e.addChar||"");if(!c$1.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<d;m++)x+=c$1.charAt(Math.floor(Math.random()*c$1.length));return x};export{S as a,s as b,B as c,Y as d};
@@ -1 +0,0 @@
1
- import {d,F}from'./chunk-XCFIOTCV.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};
@@ -1 +0,0 @@
1
- 'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function S(e){if(!chunkCN53M4QZ_cjs.r(e))return;let r=Math.floor(Math.random()*(e.length||0));return e[r]}var s=(e,r)=>{if(!chunkPUQXRLZH_cjs.a(e)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${I(e,r)}value, but received: ['min': \`${chunkCN53M4QZ_cjs.E(e)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(e)}), 'max': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)})].`);if(e>r)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${N(e)}', 'max': '${N(r)}'].`);return e=Math.max(1,e),r=Math.min(Number.MAX_SAFE_INTEGER,r),Math.floor(Math.random()*(r-e+1))+e};function N(e){return chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${chunkCN53M4QZ_cjs.E(e)}\``}var I=(...e)=>e.some(r=>chunkCN53M4QZ_cjs.i(r,{includeNaN:true})&&r===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var B=e=>{chunkCN53M4QZ_cjs.f(e)||(e={});let{minLength:r=1,maxLength:t=16,avoidZero:o=false}=e;if(chunkCN53M4QZ_cjs.G(o,{message({currentType:y,validType:g}){return `Parameters \`avoidZero\` must be of type \`${g}\`, but received: \`${y}\`.`}}),!chunkPUQXRLZH_cjs.a(r)||!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)}), 'maxLength': \`${chunkCN53M4QZ_cjs.E(t)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(t)})].`);if(r<1||t>16||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);let u=r===t?r:s(r,t),d=10**(u-1),p=10**u-1,f=s(d,p);return o&&f===0&&(f=d),f};var Y=e=>{chunkCN53M4QZ_cjs.f(e)||(e={});let{minLength:r=40,maxLength:t=40,type:o="string",avoidWhiteSpace:u=true}=e;if(chunkCN53M4QZ_cjs.G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${L}\`, but received: \`${m}\`.`}}),!chunkPUQXRLZH_cjs.a(r)||!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)}), 'maxLength': \`${chunkCN53M4QZ_cjs.E(t)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(t)})].`);if(r<1||t>5e3||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunkCN53M4QZ_cjs.E(o)}\`, with value: ${chunkU5Y2FXMN_cjs.c(o)}.`);let d=s(r,t),p=m=>u?m.replace(/\s|\n|\t/g,""):m,g=o==="number"?(chunkCN53M4QZ_cjs.n(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c=p(g)+(e.addChar||"");if(!c.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<d;m++)x+=c.charAt(Math.floor(Math.random()*c.length));return x};exports.a=S;exports.b=s;exports.c=B;exports.d=Y;
@@ -1 +0,0 @@
1
- 'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.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: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: ${chunkU5Y2FXMN_cjs.c(e)}.`);if(chunkCN53M4QZ_cjs.n(r))return e==="primitives"||e==="all"?"NaN":NaN;if(chunkCN53M4QZ_cjs.h(r)||chunkCN53M4QZ_cjs.i(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(chunkCN53M4QZ_cjs.a(r)||chunk7YWAQOA4_cjs.a(r)||chunkCN53M4QZ_cjs.c(r))return e==="primitives"||e==="all"?String(r):r;if(chunkCN53M4QZ_cjs.j(r)||chunkCN53M4QZ_cjs.b(r))return e==="all"?r.toString():r;if(chunkCN53M4QZ_cjs.d(r))return r.map(o=>m(o,e));if(chunkCN53M4QZ_cjs.l(r)){if(chunkU5Y2FXMN_cjs.b(r))return e==="all"?r.toISOString():r;if(chunkKCQDDZJE_cjs.a(r)||chunkCN53M4QZ_cjs.D(r)||r instanceof Promise)return e==="all"?r.toString():r;if(chunkCN53M4QZ_cjs.q(r))return e==="all"?[...r].map(t=>m(t,e)):r;if(chunkU5Y2FXMN_cjs.a(r))return e==="all"?[...r.entries()].map(([t,n])=>[m(t,e),m(n,e)]):r;let o={};if(chunkCN53M4QZ_cjs.e(r))for(let t of Object.keys(r))o[t]=m(r[t],e);return o}return r}function O(r){return chunkCN53M4QZ_cjs.c(r)?void 0:chunkCN53M4QZ_cjs.d(r)?r.reduce((o,t)=>{if(!chunkCN53M4QZ_cjs.c(t))if(chunkCN53M4QZ_cjs.d(t)){let n=O(t);n&&!chunkKCQDDZJE_cjs.e(n)&&o.push(n);}else o.push(t);return o},[]):[]}var gr=O,Nr=(r,e={})=>{chunk62HX5Z45_cjs.a(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),chunkCN53M4QZ_cjs.m(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o=chunkCN53M4QZ_cjs.o(e,"flatten")?e.flatten:false,t=chunkCN53M4QZ_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: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: ${chunkU5Y2FXMN_cjs.c(t)}.`);chunkCN53M4QZ_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((S,F)=>{let R=chunkCN53M4QZ_cjs.d(F)?n(F):m(F,t);return p.some(v=>chunkKCQDDZJE_cjs.d(v,R))||(p.push(R),S.push(R)),S},[])},u=i=>chunkCN53M4QZ_cjs.d(i)?i.flatMap(u):chunkCN53M4QZ_cjs.q(i)?[...i].flatMap(u):chunkU5Y2FXMN_cjs.a(i)?[...i.values()].flatMap(u):[i];return n(o?u(r):r)};function Pr(r,e={}){chunkCN53M4QZ_cjs.m(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o=chunkCN53M4QZ_cjs.o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(chunkCN53M4QZ_cjs.G(o,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),chunkCN53M4QZ_cjs.d(r)){let t=Array.from(r,n=>chunkCN53M4QZ_cjs.h(n)||chunkFDITZ5C6_cjs.a(n)||chunkCN53M4QZ_cjs.a(n)||chunk7YWAQOA4_cjs.a(n)?String(n):chunkCN53M4QZ_cjs.g(n)?null:void 0);return o?O(t):t}}exports.a=m;exports.b=O;exports.c=gr;exports.d=Nr;exports.e=Pr;
@@ -1 +0,0 @@
1
- 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var g=(r,t,o)=>{if(!chunkCN53M4QZ_cjs.i(r)||!chunkCN53M4QZ_cjs.h(o)||!chunkCN53M4QZ_cjs.h(t))throw new TypeError(`First parameter \`index\` must be of type \`number\`, second parameter \`originalString\` and third parameter \`replaceTo\` must be of type \`string\`, but received: "['index': \`${chunkCN53M4QZ_cjs.E(r)}\`, 'originalString': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'replaceTo': \`${chunkCN53M4QZ_cjs.E(o)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return t.slice(0,r)+o+t.slice(r+1)},u=r=>{if(!chunkCN53M4QZ_cjs.p(r))return "";r=r.replace(/\s+/g," ").trim();let t=r.split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};exports.a=g;exports.b=u;
@@ -1 +0,0 @@
1
- 'use strict';var chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!chunkCN53M4QZ_cjs.n(o.getTime());var v=(o,i={})=>{chunkCN53M4QZ_cjs.m(i,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=chunkCN53M4QZ_cjs.o(i,"sortKeys")?i.sortKeys:true,b=chunkCN53M4QZ_cjs.o(i,"sortArray")?i.sortArray:false,S=chunkCN53M4QZ_cjs.o(i,"pretty")?i.pretty:false;if(!chunkCN53M4QZ_cjs.a(y)||!chunkCN53M4QZ_cjs.a(b)||!chunkCN53M4QZ_cjs.a(S))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${chunkCN53M4QZ_cjs.E(y)}\`, 'sortArray': \`${chunkCN53M4QZ_cjs.E(b)}\`, 'pretty': \`${chunkCN53M4QZ_cjs.E(S)}\`]".`);let N=new WeakSet,B=r=>chunkCN53M4QZ_cjs.g(r)||!chunkCN53M4QZ_cjs.l(r)&&!chunkCN53M4QZ_cjs.b(r),f=r=>{if(r instanceof Number)return Number(r);if(r instanceof String)return String(r);if(r instanceof Boolean)return !!r;if(!(chunkCN53M4QZ_cjs.b(r)||chunkCN53M4QZ_cjs.j(r))){if(chunk7YWAQOA4_cjs.a(r))return r.toString();if(chunkCN53M4QZ_cjs.k(r)||chunkCN53M4QZ_cjs.n(r)||r===1/0||r===-1/0)return null;if(chunkCN53M4QZ_cjs.l(r)){if(N.has(r))return "[Circular]";if(N.add(r),$(r))return r.toISOString();if(I(r))return {map:Array.from(r.entries()).map(([e,t])=>[e,f(t)])};if(chunkCN53M4QZ_cjs.q(r))return {set:Array.from(r.values()).map(f)};if(chunkCN53M4QZ_cjs.d(r)){let e=r.map(f);if(b){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>chunkCN53M4QZ_cjs.i(n)&&chunkCN53M4QZ_cjs.i(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m=Object.keys(r);y&&m.sort((e,t)=>{let u=Number(e),n=Number(t);return !chunkCN53M4QZ_cjs.n(u)&&!chunkCN53M4QZ_cjs.n(n)?u-n:e.localeCompare(t)});let O={};if(chunkCN53M4QZ_cjs.e(r))for(let e of m){let t=f(r[e]);chunkCN53M4QZ_cjs.k(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o),null,S?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};exports.a=I;exports.b=$;exports.c=v;
@@ -1 +0,0 @@
1
- 'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var g=(r,m={})=>{if(chunkCN53M4QZ_cjs.f(m)||(m={}),chunkCN53M4QZ_cjs.c(r)||r===false||chunkCN53M4QZ_cjs.n(r))return true;if(chunkCN53M4QZ_cjs.h(r))return chunk2TRAPBZ7_cjs.a(r);if(chunkCN53M4QZ_cjs.d(r))return chunkKCQDDZJE_cjs.e(r);if(chunkCN53M4QZ_cjs.e(r)){let b=chunkCN53M4QZ_cjs.o(m,"checkSymbols")?m.checkSymbols:false;return chunkKCQDDZJE_cjs.f(r,{checkSymbols:b})}return false};exports.a=g;
@@ -1 +0,0 @@
1
- import {a,b as b$1}from'./chunk-DGH75GJD.js';import {b}from'./chunk-WHAVUFEU.js';import {f as f$1,e as e$1,a as a$8}from'./chunk-W5EDKJK3.js';import {a as a$4}from'./chunk-QFCGBBSY.js';import {a as a$6}from'./chunk-4JOQ45HL.js';import {a as a$3}from'./chunk-NIMNTEGV.js';import {a as a$5}from'./chunk-XVB3ZZEB.js';import {c as c$1,a as a$7,b as b$2}from'./chunk-MNGGDB2G.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {p,m,o,G,d,g,c,h,a as a$2,i,e,f,E,n,k,q,C,b as b$3,l}from'./chunk-XCFIOTCV.js';function ne(e,n={}){m(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=Array.from(e,m=>{if(a$1(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):g(m)?null:void 0});return p?b(i):i}}var Oe=e$1=>c(e$1)?false:h(e$1)?p(e$1):a$2(e$1)?e$1:i(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:h(e$1)?p(e$1):a$2(e$1)?e$1:i(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$1=o(n,"trimString")?n.trimString:true,m=o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!a$2(p)||!a$2(i$1)||!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$1)}\`, 'includeIndeterminate': \`${E(m)}\`].`);if(h(e)){let r=e;i$1&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return i(e)?e===1:a$2(e)?e:false};var _e=e=>c(e)?false:h(e)?!a$3(e):a$2(e)?e:i(e,{includeNaN:true})?e!==0:d(e)?e.length>0:!!e;var mr=e=>{let n$1={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(h(e)){let p$1=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n$1,p$1))return n$1[p$1];let i=p$1.replace(/,/g,""),m=Number(i);return !n(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)=>{if(!l(e))return e;let[p,...i]=n;if(d(e))for(let m of e)l(m)&&$(m,n);else e$1(i)?f(e)&&delete e[p]:f(e)&&l(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 Nr(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,deep:r}of n){if(a$5(m,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!k(r)&&!a$2(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${E(r)}\`.`);let u=m.split(".");i=r?$(i,u):W(i,u);}return i}function Xr(e$2,n$1={}){m(n$1,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p$1=o(n$1,"removeEmptyObjects")?n$1.removeEmptyObjects:false,i$1=o(n$1,"removeEmptyArrays")?n$1.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(i(r)||p(r)&&!n(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=>!k(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=>!k(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 !k(T)&&!k(B)?[T,B]:void 0}).filter(t=>!k(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(C(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(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=>!k(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=>!k(t));return s&&e$1(o)?void 0:o}if(b$2(r))return n(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});k(T)||(o[t]=T);}return a&&f$1(o)?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p$1,removeEmptyArrays:i$1,isRoot:true})}function vt(e$2,n={}){m(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$1=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(i(r)||h(r))return String(r);if(b$2(r))return r.toISOString();if(a$8(r))return r.toString();if(C(r))return Array.from(r).map(o=>String(o)).filter(o=>!k(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=>!k(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=>!k(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=>!k(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])=>!k(t)&&!k(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=>!k(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});k(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$1,isRoot:true})}export{ne as a,Oe as b,Q as c,Ke as d,_e as e,mr as f,Nr as g,Xr as h,vt as i};
@@ -1 +0,0 @@
1
- import {b as b$1,a}from'./chunk-MNGGDB2G.js';import {l,D,q,d,e,f,o,k}from'./chunk-XCFIOTCV.js';var b=r=>r instanceof RegExp;function g(r){return r instanceof ArrayBuffer}function c(r,n,s,i=new WeakMap){if(r===n||r!==r&&n!==n)return true;if(!l(r)||!l(n))return false;if(i.get(r)===n)return true;i.set(r,n);let w=(t,f,e,B,K)=>{if(s){let l=s(t,f,e,B,K,i);if(!k(l))return l}return c(t,f,s,i)};if(b$1(r)&&b$1(n))return r.getTime()===n.getTime();if(b(r)&&b(n))return r.source===n.source&&r.flags===n.flags;if(D(r)&&D(n))return r.name===n.name&&r.message===n.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(n)){let t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),f=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(t.length!==f.length)return false;for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(g(r)&&g(n)){if(r.byteLength!==n.byteLength)return false;let t=new Uint8Array(r),f=new Uint8Array(n);for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(a(r)&&a(n)){if(r.size!==n.size)return false;for(let[t,f]of r)if(!n.has(t)||!c(f,n.get(t),s,i))return false;return true}if(q(r)&&q(n)){if(r.size!==n.size)return false;for(let t of r){let f=false;for(let e of n)if(c(t,e,s,i)){f=true;break}if(!f)return false}return true}if(d(r)&&d(n)){if(r.length!==n.length)return false;for(let t=0;t<r.length;t++)if(!w(r[t],n[t],t,r,n))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(n))return false;let k$1=Reflect.ownKeys(r),x=Reflect.ownKeys(n);if(k$1.length!==x.length)return false;for(let t of k$1){let f=r[t],e=n[t];if(!w(f,e,t,r,n))return false}return true}function W(r,n){return c(r,n,void 0,new WeakMap)}var F=r=>d(r)?r.length===0:true;function X(r,n={}){if(!e(r))return true;f(n)||(n={});let s=o(n,"checkSymbols")?n.checkSymbols:false,i=Object.keys(r).length===0;return s?i&&Object.getOwnPropertySymbols(r).length===0:i}export{b as a,g as b,c,W as d,F as e,X as f};
@@ -1 +0,0 @@
1
- import {a as a$2,e as e$1,d as d$1}from'./chunk-W5EDKJK3.js';import {a as a$4}from'./chunk-QFCGBBSY.js';import {a as a$5}from'./chunk-4JOQ45HL.js';import {c,b as b$1,a as a$3}from'./chunk-MNGGDB2G.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {E,n,h,i,a,c as c$1,j,b,d,l,D,q,e,m as m$1,o,G,g}from'./chunk-XCFIOTCV.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(n(r))return e$1==="primitives"||e$1==="all"?"NaN":NaN;if(h(r)||i(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(j(r)||b(r))return e$1==="all"?r.toString():r;if(d(r))return r.map(o=>m(o,e$1));if(l(r)){if(b$1(r))return e$1==="all"?r.toISOString():r;if(a$2(r)||D(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 O(r){return c$1(r)?void 0:d(r)?r.reduce((o,t)=>{if(!c$1(t))if(d(t)){let n=O(t);n&&!e$1(n)&&o.push(n);}else o.push(t);return o},[]):[]}var gr=O,Nr=(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}\`.`}),m$1(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((S,F)=>{let R=d(F)?n(F):m(F,t);return p.some(v=>d$1(v,R))||(p.push(R),S.push(R)),S},[])},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={}){m$1(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=>h(n)||a$5(n)||a(n)||a$1(n)?String(n):g(n)?null:void 0);return o$1?O(t):t}}export{m as a,O as b,gr as c,Nr as d,Pr as e};
@@ -1 +0,0 @@
1
- var N=e=>typeof e=="boolean";var d=e=>typeof e=="function";function D(e){return e==null}function T(e){return Array.isArray(e)}function w(e){return typeof e=="object"&&!D(e)&&!T(e)}function u(e){if(!w(e))return false;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}var j=e=>e===null;var x=e=>typeof e=="string";var A=(e,r={})=>{let t=u(r)&&N(r.includeNaN)?r.includeNaN:false,o=typeof e=="number";return t?o:o&&!Number.isNaN(e)};var E=e=>typeof e=="symbol";var K=e=>typeof e>"u";function k(e){return T(e)||w(e)}var v=(e,r={})=>{if(N(e))return;let t=C({value:e,options:r,requiredValidType:"boolean"});throw new TypeError(t)};function I(e){return typeof e=="number"?Number.isNaN(e):Object.prototype.toString.call(e)==="[object Number]"&&Number.isNaN(e.valueOf())}function U(e,r,t={}){if(!x(e)&&!k(e)&&!d(e))return false;L(t,{message:({currentType:i,validType:c})=>`Third parameter (\`options\`) must be of type \`${c}\`, but received: \`${i}\`.`});let o=t.discardUndefined===void 0?true:t.discardUndefined,n=t.discardNull===void 0?false:t.discardNull;v(o,{message:({currentType:i,validType:c})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`}),v(n,{message:({currentType:i,validType:c})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`});let s=[];if(x(r)&&r.trim().length>0||A(r,{includeNaN:true}))(A(r,{includeNaN:true})?String(r):r).split(".").forEach(c=>{let S=c.match(/^\[(\d+)\]$/),P=c.match(/^Symbol\((.+)\)$/);S?s.push(Number(S[1])):P?s.push(Symbol.for(P[1])):I(Number(c))?s.push(c):s.push(Number(c));});else if(E(r))s.push(r);else return false;let a=x(e)&&e.trim().length>0?Object(e):e;for(let i of s)if(x(i)&&i.trim().length>0||A(i,{includeNaN:true})){if(j(a)||!Object.prototype.hasOwnProperty.call(a,i))return false;a=a[i];}else if(E(i)){if(j(a)||typeof a!="object"&&!d(a))return false;let S=Object.getOwnPropertySymbols(a).find(P=>P===i||P.description===i.description);if(!S)return false;a=a[S];}else return false;return !(o&&K(a)||n&&j(a))}var l=(e,r={})=>x(e)?(u(r)||(r={}),((U(r,"trim")?r.trim:true)?e.trim():e).length>0):false;function H(e){return Object.prototype.toString.call(e)==="[object Set]"||e instanceof Set}function m(e){return Array.isArray(e)&&e.length>0}var Be=(e,r={lowerCaseNextRest:true,trim:false})=>{if(!l(e))return "";u(r)||(r={});let t=r.lowerCaseNextRest!==false;return r.trim===true&&(e=e.trim()),e[0].toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},Ve=(e,r={collapseSpaces:false,trim:false})=>{if(!l(e))return "";let t=e;u(r)||(r={});let o=r.collapseSpaces===true;if(r.trim===true&&(t=t.trim()),o){let s=t.match(/^\s*/)?.[0]??"",a=t.match(/\s*$/)?.[0]??"";t=t.trim().replace(/\s+/g," "),t=`${s}${t}${a}`;}return t.toLowerCase().split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")};var g=e=>{let r="";return T(e)?r=e.map(t=>l(t)?t.trim():"").filter(t=>t.length).join("-"):l(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)};var O=e=>{let r=new Set([]),t=o=>o.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(l(e)){let o=t(e);o&&r.add(o);}return m(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),H(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),r},F=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map((n,s)=>o.has(n)?n:s===0?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},M=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")},B=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},V=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(" ")},h=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("-")},_=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("_")},W=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(".")},$=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(s=>o.has(s)?s:s.toLowerCase()).join("-").replace(/^-+|-+$/g,"")};var G=e=>typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(e);var z=e=>Object.prototype.toString.call(e)==="[object Error]"||e instanceof Error;var b=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),R={string:"String",number:"Number",boolean:"Boolean",bigint:"Big Int",symbol:"Symbol",undefined:"Undefined",null:"Null",regexp:"Reg Exp",reflect:"Reflect",proxy:"Proxy",atomics:"Atomics",object:"Object",array:"Array",arguments:"Arguments",function:"Function",asyncfunction:"Async Function",generatorfunction:"Generator Function",asyncgeneratorfunction:"Async Generator Function",generator:"Generator",promise:"Promise",evalerror:"Eval Error",rangeerror:"Range Error",referenceerror:"Reference Error",syntaxerror:"Syntax Error",typeerror:"Type Error",urierror:"URI Error",aggregateerror:"Aggregate Error",error:"Error",int8array:"Int 8 Array",uint8array:"Uint 8 Array",uint8clampedarray:"Uint 8 Clamped Array",int16array:"Int 16 Array",uint16array:"Uint 16 Array",int32array:"Int 32 Array",uint32array:"Uint 32 Array",float32array:"Float 32 Array",float64array:"Float 64 Array",bigint64array:"Big Int 64 Array",biguint64array:"Big Uint 64 Array",arraybuffer:"Array Buffer",sharedarraybuffer:"Shared Array Buffer",dataview:"Data View",arraybufferview:"Array Buffer View",map:"Map",set:"Set",weakmap:"Weak Map",weakset:"Weak Set",mapiterator:"Map Iterator",setiterator:"Set Iterator",arrayiterator:"Array Iterator",stringiterator:"String Iterator",readablestream:"Readable Stream",writablestream:"Writable Stream",transformstream:"Transform Stream",readablestreamdefaultreader:"Readable Stream Default Reader",writablestreamdefaultwriter:"Writable Stream Default Writer",readablestreamdefaultcontroller:"Readable Stream Default Controller",transformstreamdefaultcontroller:"Transform Stream Default Controller",abortcontroller:"Abort Controller",abortsignal:"Abort Signal",fetch:"fetch",request:"Request",response:"Response",headers:"Headers",formdata:"FormData",blob:"Blob",file:"File",filelist:"FileList",filereader:"FileReader",intl:"Intl",collator:"Intl. Collator",datetimeformat:"Intl. Date Time Format",listformat:"Intl. List Format",numberformat:"Intl. Number Format",pluralrules:"Intl. Plural Rules",relativetimeformat:"Intl. Relative Time Format",segmenter:"Intl. Segmenter",locale:"Intl. Locale",displaynames:"Intl. Display Names",finalizationregistry:"Finalization Registry",weakref:"Weak Ref",structuredclone:"structured Clone",urlpattern:"URL Pattern",performance:"Performance",performanceobserver:"Performance Observer",performanceentry:"Performance Entry",performancemark:"Performance Mark",performancemeasure:"Performance Measure",webassembly:"Web Assembly",wasmmodule:"WebAssembly .Module",wasminstance:"WebAssembly. Instance",wasmmemory:"WebAssembly. Memory",wasmtable:"WebAssembly. Table",buffer:"Buffer",process:"Process",eventemitter:"Event Emitter",stream:"Stream",fs:"fs",path:"path",url:"URL",urlsearchparams:"URL Search Params",node:"Node",element:"Element",htmlelement:"HTML Element",svgelement:"SVG Element",document:"Document",documentfragment:"Document Fragment",shadowroot:"Shadow Root",nodelist:"Node List",htmlcollection:"HTML Collection",mutationobserver:"Mutation Observer",intersectionobserver:"Intersection Observer",resizeobserver:"Resize Observer"};var f=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),y=Object.entries(R).reduce((e,[r,t])=>(e[f(r)]=t,e),{});function X(e){if(typeof e!="object"||e===null)return false;let r=Object.prototype.toString.call(e);if(["[object Array]","[object Date]","[object RegExp]","[object Map]","[object Set]","[object WeakMap]","[object WeakSet]","[object Function]","[object Error]","[object Promise]","[object Generator]","[object GeneratorFunction]","[object AsyncFunction]"].includes(r))return false;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return true}}var p=(e,r)=>r==="toPascalCaseSpace"?M(e,b):r==="slugify"?$(e,b):r==="toCamelCase"?F(e,b):r==="toDotCase"?W(e,b):r==="toKebabCase"?h(e,b):r==="toPascalCase"?B(e,b):r==="toSnakeCase"?_(e,b):V(e,b),q=(e,r={formatCase:"toLowerCase"})=>{u(r)||(r={});let t=r.formatCase;if(j(e))return p(y[f("null")]??"Null",t);if(I(e))return "NaN";if(e===1/0)return "Infinity";if(e===-1/0)return "-Infinity";if(e instanceof Number)return p("Number Constructor",t);if(e instanceof String)return p("String Constructor",t);if(e instanceof Boolean)return p("Boolean Constructor",t);let o=typeof e;if(!k(e)&&!d(e))return p(y[f(o)]??o,t);if(G(e))return p(y[f("buffer")]??"Buffer",t);if(X(e))return p(y[f("proxy")]??"Proxy",t);if(w(e)&&d(e?.next)&&d(e?.throw))return p(y[f("generator")]??"Generator",t);if(z(e)){let i=e.constructor?.name??"Error";return p(y[f(i)]??y[f(i.replace(/\s+/g,""))]??i,t)}if(j(Object.getPrototypeOf(e)))return p(y[f("object")]??"Object",t);let n=Object.prototype.toString.call(e).slice(8,-1)||"Object",s=y[f(n)];if(s)return p(s,t);let a=e?.constructor?.name;return p(a&&a!=="Object"?y[f(a)]??a:n,t)};function C({value:e,options:r,requiredValidType:t}){let{message:o,formatCase:n}=u(r)?r:{},s=h(t),a=q(e,{formatCase:n}),i={currentType:a,validType:s},c=`Parameter input (\`value\`) must be of type \`${s}\`, but received: \`${a}\`.`;return d(o)?l(o(i))?o(i).trim():c:l(o)?o.trim():c}function L(e,r={}){if(u(e))return;let t=C({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}export{W as A,$ as B,G as C,z as D,q as E,C as F,v as G,N as a,d as b,D as c,T as d,w as e,u as f,j as g,x as h,A as i,E as j,K as k,k as l,L as m,I as n,U as o,l as p,H as q,m as r,Be as s,Ve as t,F as u,M as v,B as w,V as x,h as y,_ as z};
@@ -1 +0,0 @@
1
- import {a as a$3}from'./chunk-XH6MCRLP.js';import {a}from'./chunk-4JOQ45HL.js';import {a as a$6}from'./chunk-GECI2YBP.js';import {a as a$5}from'./chunk-NIMNTEGV.js';import {a as a$4}from'./chunk-XVB3ZZEB.js';import {a as a$2}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {h,E,m,o,a as a$1,f,n,k,b,G,c as c$1,i,p}from'./chunk-XCFIOTCV.js';import {id,enUS}from'date-fns/locale';import {isDate,parse,format}from'date-fns';var le=(r,e={})=>{if(!h(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${E(r)}\`, with value: ${c(r)}.`);m(e,{message:({currentType:a,validType:S})=>`Second parameter (\`options\`) must be of type \`${S}\`, but received: \`${a}\`.`});let t=o(e,"decimal")?e.decimal:false,o$1=o(e,"totalDecimal")?e.totalDecimal:2,i=o(e,"endDecimal")?e.endDecimal:true,d=o(e,"indianFormat")?e.indianFormat:false,p=o(e,"suffixCurrency")?e.suffixCurrency:"",f$1=o(e,"suffixDecimal")?e.suffixDecimal:"",m$1=o(e,"roundedDecimal")?e.roundedDecimal:"round",n$1=o(e,"negativeFormat")?e.negativeFormat:"dash",u=o(e,"separatorDecimals")?e.separatorDecimals:",",y=o(e,"separator")?e.separator:".";if(!h(y)||!h(u)||!h(p)||!h(f$1))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${E(y)}\`, 'separatorDecimals': \`${E(u)}\`, 'suffixCurrency': \`${E(p)}\`, 'suffixDecimal': \`${E(f$1)}\`].`);if(!a$1(t)||!a$1(i)||!a$1(d))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${E(t)}\`, 'endDecimal': \`${E(i)}\`, 'indianFormat': \`${E(d)}\`].`);if(!a$2(o$1))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${E(o$1)}\`, with value: \`${c(length)}\`.`);if(!(m$1===false||m$1==="round"||m$1==="ceil"||m$1==="floor"))throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${E(m$1)}\`, with value: ${c(m$1)}.`);if(!(n$1==="abs"||n$1==="brackets"||n$1==="dash"||f(n$1)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${E(n$1)}\`, with value: ${c(n$1)}.`);let P=h(r)?a$3(r):r;if(n(P))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let h$1=Math.abs(P),w=Math.pow(10,o$1);if(m$1){let a=h$1*w;switch(m$1){case "round":h$1=Math.round(a)/w;break;case "ceil":h$1=Math.ceil(a)/w;break;case "floor":h$1=Math.floor(a)/w;break}}let g="",b$1="";if(m$1){let a=h$1*w;switch(m$1){case "round":h$1=Math.round(a)/w;break;case "ceil":h$1=Math.ceil(a)/w;break;case "floor":h$1=Math.floor(a)/w;break}}if(m$1)[g,b$1]=h$1.toFixed(o$1).split("."),b$1=b$1??"".padEnd(o$1,"0");else {let a=String(h$1).split(".");g=a[0],b$1=(a[1]||"").slice(0,o$1).padEnd(o$1,"0");}let $,x=(a,S)=>{let O=a.slice(-3),C=a.slice(0,-3);return C?C.replace(/\B(?=(\d{2})+(?!\d))/g,S)+S+O:O};if(d?(y=",",u=".",$=(p.trim().length?p:"")+x(g,y)):$=(p.trim().length?p:"")+g.replace(/\B(?=(\d{3})+(?!\d))/g,y),t&&!k(b$1)&&o$1>0){let a=u+b$1;i&&(a+=f$1),$+=a;}if(P<0){if(n$1==="dash")$="-"+$;else if(n$1==="brackets")$="("+$+")";else if(n$1!=="abs"){if(f(n$1))if(o(n$1,"custom")){let a=n$1.custom;if(!b(a))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${E(a)}\`.`);let S=a($);a$4(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${C}\` type value, but received: \`${O}\`.`}),$=S;}else {let a=n$1.style||"dash",S=a$1(n$1.space)?n$1.space:false;if(G(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${C}\`, but received: \`${O}\`.`}),!(a==="abs"||a==="brackets"||a==="dash"))throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${E(a)}\`, with value: ${c(a)}.`);switch(a){case "dash":$="-"+(S?" ":"")+$;break;case "brackets":$=S?`( ${$} )`:`(${$})`;break;}}}}return $};var de=(r,e=",")=>{if(!h(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${E(r)}\`.`);if(!h(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${E(e)}\`.`);e=h(e)?e:",";let t=e==="."?",":".",o=r.toString().trim(),i=o.lastIndexOf("."),d=o.lastIndexOf(","),p="";i>d?p=".":d>i&&(p=",");let f=o,m="";if(p){let u=o.split(p);f=u.slice(0,-1).join(p),m=u.slice(-1)[0];}f=f.replace(/[^\d]/g,"");let n=f.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${n}${t}${m}`:n};function De(r,e={}){if(c$1(r))return "";if(!h(r)&&!i(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${E(r)}\`.`);m(e,{message:({currentType:x,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${x}\`.`});let t=o(e,"separator")?e.separator:" ",o$1=o(e,"takeNumberOnly")?e.takeNumberOnly:false,i$1=o(e,"checkValidOnly")?e.checkValidOnly:false,d=o(e,"plusNumberCountry")?e.plusNumberCountry:"",p=o(e,"openingNumberCountry")?e.openingNumberCountry:"",f=o(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!a$1(o$1)||!a$1(i$1))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${E(o$1)}\`, 'checkValidOnly': \`${E(i$1)}\`].`);if(!h(t)||!h(d)||!h(p)||!h(f))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${E(t)}\`, 'plusNumberCountry': \`${E(d)}\`, 'openingNumberCountry': \`${E(p)}\`, 'closingNumberCountry': \`${E(f)}\`].`);if(h(r)||(r=String(r)),o$1)return r.replace(/\D/g,"");if(i$1)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m$1=d.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m$1)&&(m$1="+"+m$1.replace(/^\++/,""));let n="",u="",y={7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"},P=m$1.replace(/^\+/,"").replace(/[^\d]/g,"");y[P]&&r.startsWith("0")?(n=r.slice(1,4),u=r.slice(4)):(n=r.slice(0,4),u=r.slice(4));let h$1=m$1.trim(),w=p.trim(),g=f.trim(),b="";h$1?w&&g?b=`${w}${h$1}${g} ${n}`:w&&!g?b=`${w}${h$1} ${n}`:!w&&g?b=`${h$1}${g} ${n}`:b=`${h$1} ${n}`:b=`${n}`;let $={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let x=0;x<u.length;x++){let a=x+n.length;b+=($[a]||"")+u[x];}return b}var Ie=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!h(e)||!r||!(isDate(r)||h(r)))return null;try{let t=new Date(r);if(n(t.getTime()))return null;let o=p=>p.toString().padStart(2,"0"),i={YYYY:t.getFullYear().toString(),MM:o(t.getMonth()+1),DD:o(t.getDate()),hh:o(t.getHours()),mm:o(t.getMinutes()),ss:o(t.getSeconds())},d=Object.entries(i).reduce((p,[f,m])=>p.split(f).join(m),e);return d.includes("NaN")?null:d}catch{return null}},Me=(r,e)=>{if(!r||!(isDate(r)||h(r)))return null;let t=new Date(r);if(n(t.getTime()))return null;f(e)||(e={});let{locale:o="en-US",...i}=e;try{return new Intl.DateTimeFormat(o?.toString()?.trim()?.length?o:"en-US",i).format(t)}catch{return null}},Le=(r,e)=>{if(!r||!(isDate(r)||h(r)))return null;f(e)||(e={});let{inputFormat:t,locale:o$1,inputLocale:i,...d}=e,p$1=o(e,"format")&&p(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",f$1;try{if(h(r)&&t&&i){let n=h(i)?i==="id"?id:enUS:i;f$1=parse(r,t,new Date,{locale:n});}else f$1=new Date(r);if(n(f$1.getTime()))return null;let m=h(o$1)?o$1==="id"?id:enUS:o$1;return format(f$1,p$1,{...d,locale:m})}catch{return null}},Ae=r=>{try{if(!r||h(r)&&a$5(r))r=new Date;else if(!(isDate(r)||h(r)))return "0";let e=new Date(r);if(n(e.getTime()))return "0";let t=d=>d.toString().padStart(2,"0"),o=e.getTimezoneOffset(),i=o<0?"+":"-";return o=Math.abs(o),`${i}${t(Math.floor(o/60))}${t(o%60)}`}catch{return "0"}};var Ge=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:g,validType:b})=>`Second parameter (\`options\`) must be of type \`${b}\`, but received: \`${g}\`.`});let t=o(e,"mode")?e.mode:"fixed";if(t!=="random"&&t!=="fixed")throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${E(t)}\`, with value: ${c(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[i,d]=r.split("@"),p$1=d.split(".");if(p$1.length<2)return "";let[f,...m$1]=p$1,n=m$1.join("."),u=t==="fixed"?(()=>{let g=0;for(let b=0;b<r.length;b++)g=(g<<5)-g+r.charCodeAt(b),g|=0;return Math.abs(g)})():void 0,y=(g,b,$)=>{if(g.length<=b)return "*".repeat(g.length);let x=g.split(""),a=Math.max(b,Math.ceil(g.length*$)),S=new Set,O=0;for(;S.size<a;){let C=k(u)?Math.floor(Math.random()*g.length):(u+g.length+O*31)%g.length;S.add(C),O++;}for(let C of S)x[C]="*";return x.join("")},P=y(i,i.length<4?1:2,.6),h=y(f,f.length<4?1:2,.5),w=n.length<=2?n:y(n,1,.4);return `${P}@${h}.${w}`};function tr(r,e,t={}){if(c$1(r)||e<=0)return r;if(a$4(r,{message:({currentType:n,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${n}\`.`}),!a$2(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);m(t,{message:({currentType:n,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let o$1=o(t,"separator")?t.separator:" ",i=o(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(h(o$1)&&a$1(i)))throw new TypeError(`Invalid properties type \`options\` (third parameter), \`separator\` must be of type \`string\`, and \`reCountAfterSpace\` must be of type \`boolean\`, but received: ['separator': \`${E(o$1)}\`, 'reCountAfterSpace': \`${E(i)}\`].`);if(r=a$6(r),!i){let n="",u=0;for(let y=0;y<r.length;y++){let P=r[y];u===e&&(n+=o$1,u=0),n+=P,u++;}return n}let d=r.split(" "),p=[],f=[],m$1=0;for(let n=0;n<d.length;n++){let u=d[n],y="",P=0;for(let h=0;h<u.length;h++)y+=u[h],P++,P===e&&h<u.length-1&&(y+=o$1,P=0);f.push(y),m$1++,(m$1===e||n===d.length-1)&&(p.push(f.join(o$1)),f=[],m$1=0);}return p.join(" ")}var ur=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:n,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let t=o(e,"length")?e.length:10,o$1=o(e,"trim")?e.trim:true,i=o(e,"ending")?e.ending:"...";if(!a$2(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${E(t)}\`, with value: \`${c(t)}\`.`);if(t<1)return "";if(!(h(i)&&a$1(o$1)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${E(i)}\`, 'trim': \`${E(o$1)}\`].`);a$5(i)?i="...":i=i.trim();let d=o$1?r.trim():r;if(d.length<=t)return d;let f=d.slice(0,t);return (o$1?f:f.trimEnd())+i};export{le as a,de as b,De as c,Ie as d,Me as e,Le as f,Ae as g,Ge as h,tr as i,ur as j};
@@ -1 +0,0 @@
1
- import {h,F}from'./chunk-XCFIOTCV.js';var p=(s,t={})=>{if(h(s))return;let n=F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};export{p as a};
@@ -1 +0,0 @@
1
- 'use strict';var chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs'),locale=require('date-fns/locale'),dateFns=require('date-fns');var le=(r,e={})=>{if(!chunkCN53M4QZ_cjs.h(r)&&!chunkFDITZ5C6_cjs.a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: ${chunkU5Y2FXMN_cjs.c(r)}.`);chunkCN53M4QZ_cjs.m(e,{message:({currentType:a,validType:S})=>`Second parameter (\`options\`) must be of type \`${S}\`, but received: \`${a}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"decimal")?e.decimal:false,o=chunkCN53M4QZ_cjs.o(e,"totalDecimal")?e.totalDecimal:2,i=chunkCN53M4QZ_cjs.o(e,"endDecimal")?e.endDecimal:true,d=chunkCN53M4QZ_cjs.o(e,"indianFormat")?e.indianFormat:false,p=chunkCN53M4QZ_cjs.o(e,"suffixCurrency")?e.suffixCurrency:"",f=chunkCN53M4QZ_cjs.o(e,"suffixDecimal")?e.suffixDecimal:"",m=chunkCN53M4QZ_cjs.o(e,"roundedDecimal")?e.roundedDecimal:"round",n=chunkCN53M4QZ_cjs.o(e,"negativeFormat")?e.negativeFormat:"dash",u=chunkCN53M4QZ_cjs.o(e,"separatorDecimals")?e.separatorDecimals:",",y=chunkCN53M4QZ_cjs.o(e,"separator")?e.separator:".";if(!chunkCN53M4QZ_cjs.h(y)||!chunkCN53M4QZ_cjs.h(u)||!chunkCN53M4QZ_cjs.h(p)||!chunkCN53M4QZ_cjs.h(f))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(y)}\`, 'separatorDecimals': \`${chunkCN53M4QZ_cjs.E(u)}\`, 'suffixCurrency': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'suffixDecimal': \`${chunkCN53M4QZ_cjs.E(f)}\`].`);if(!chunkCN53M4QZ_cjs.a(t)||!chunkCN53M4QZ_cjs.a(i)||!chunkCN53M4QZ_cjs.a(d))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'endDecimal': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'indianFormat': \`${chunkCN53M4QZ_cjs.E(d)}\`].`);if(!chunkPUQXRLZH_cjs.a(o))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${chunkCN53M4QZ_cjs.E(o)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(length)}\`.`);if(!(m===false||m==="round"||m==="ceil"||m==="floor"))throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${chunkCN53M4QZ_cjs.E(m)}\`, with value: ${chunkU5Y2FXMN_cjs.c(m)}.`);if(!(n==="abs"||n==="brackets"||n==="dash"||chunkCN53M4QZ_cjs.f(n)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${chunkCN53M4QZ_cjs.E(n)}\`, with value: ${chunkU5Y2FXMN_cjs.c(n)}.`);let P=chunkCN53M4QZ_cjs.h(r)?chunkJWHM3WZQ_cjs.a(r):r;if(chunkCN53M4QZ_cjs.n(P))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let h=Math.abs(P),w=Math.pow(10,o);if(m){let a=h*w;switch(m){case "round":h=Math.round(a)/w;break;case "ceil":h=Math.ceil(a)/w;break;case "floor":h=Math.floor(a)/w;break}}let g="",b="";if(m){let a=h*w;switch(m){case "round":h=Math.round(a)/w;break;case "ceil":h=Math.ceil(a)/w;break;case "floor":h=Math.floor(a)/w;break}}if(m)[g,b]=h.toFixed(o).split("."),b=b??"".padEnd(o,"0");else {let a=String(h).split(".");g=a[0],b=(a[1]||"").slice(0,o).padEnd(o,"0");}let $,x=(a,S)=>{let O=a.slice(-3),C=a.slice(0,-3);return C?C.replace(/\B(?=(\d{2})+(?!\d))/g,S)+S+O:O};if(d?(y=",",u=".",$=(p.trim().length?p:"")+x(g,y)):$=(p.trim().length?p:"")+g.replace(/\B(?=(\d{3})+(?!\d))/g,y),t&&!chunkCN53M4QZ_cjs.k(b)&&o>0){let a=u+b;i&&(a+=f),$+=a;}if(P<0){if(n==="dash")$="-"+$;else if(n==="brackets")$="("+$+")";else if(n!=="abs"){if(chunkCN53M4QZ_cjs.f(n))if(chunkCN53M4QZ_cjs.o(n,"custom")){let a=n.custom;if(!chunkCN53M4QZ_cjs.b(a))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${chunkCN53M4QZ_cjs.E(a)}\`.`);let S=a($);chunkBVPMMWDL_cjs.a(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${C}\` type value, but received: \`${O}\`.`}),$=S;}else {let a=n.style||"dash",S=chunkCN53M4QZ_cjs.a(n.space)?n.space:false;if(chunkCN53M4QZ_cjs.G(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${C}\`, but received: \`${O}\`.`}),!(a==="abs"||a==="brackets"||a==="dash"))throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${chunkCN53M4QZ_cjs.E(a)}\`, with value: ${chunkU5Y2FXMN_cjs.c(a)}.`);switch(a){case "dash":$="-"+(S?" ":"")+$;break;case "brackets":$=S?`( ${$} )`:`(${$})`;break;}}}}return $};var de=(r,e=",")=>{if(!chunkCN53M4QZ_cjs.h(r)&&!chunkFDITZ5C6_cjs.a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);if(!chunkCN53M4QZ_cjs.h(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`.`);e=chunkCN53M4QZ_cjs.h(e)?e:",";let t=e==="."?",":".",o=r.toString().trim(),i=o.lastIndexOf("."),d=o.lastIndexOf(","),p="";i>d?p=".":d>i&&(p=",");let f=o,m="";if(p){let u=o.split(p);f=u.slice(0,-1).join(p),m=u.slice(-1)[0];}f=f.replace(/[^\d]/g,"");let n=f.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${n}${t}${m}`:n};function De(r,e={}){if(chunkCN53M4QZ_cjs.c(r))return "";if(!chunkCN53M4QZ_cjs.h(r)&&!chunkCN53M4QZ_cjs.i(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);chunkCN53M4QZ_cjs.m(e,{message:({currentType:x,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${x}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"separator")?e.separator:" ",o=chunkCN53M4QZ_cjs.o(e,"takeNumberOnly")?e.takeNumberOnly:false,i=chunkCN53M4QZ_cjs.o(e,"checkValidOnly")?e.checkValidOnly:false,d=chunkCN53M4QZ_cjs.o(e,"plusNumberCountry")?e.plusNumberCountry:"",p=chunkCN53M4QZ_cjs.o(e,"openingNumberCountry")?e.openingNumberCountry:"",f=chunkCN53M4QZ_cjs.o(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!chunkCN53M4QZ_cjs.a(o)||!chunkCN53M4QZ_cjs.a(i))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'checkValidOnly': \`${chunkCN53M4QZ_cjs.E(i)}\`].`);if(!chunkCN53M4QZ_cjs.h(t)||!chunkCN53M4QZ_cjs.h(d)||!chunkCN53M4QZ_cjs.h(p)||!chunkCN53M4QZ_cjs.h(f))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'plusNumberCountry': \`${chunkCN53M4QZ_cjs.E(d)}\`, 'openingNumberCountry': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'closingNumberCountry': \`${chunkCN53M4QZ_cjs.E(f)}\`].`);if(chunkCN53M4QZ_cjs.h(r)||(r=String(r)),o)return r.replace(/\D/g,"");if(i)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m=d.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m)&&(m="+"+m.replace(/^\++/,""));let n="",u="",y={7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"},P=m.replace(/^\+/,"").replace(/[^\d]/g,"");y[P]&&r.startsWith("0")?(n=r.slice(1,4),u=r.slice(4)):(n=r.slice(0,4),u=r.slice(4));let h=m.trim(),w=p.trim(),g=f.trim(),b="";h?w&&g?b=`${w}${h}${g} ${n}`:w&&!g?b=`${w}${h} ${n}`:!w&&g?b=`${h}${g} ${n}`:b=`${h} ${n}`:b=`${n}`;let $={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let x=0;x<u.length;x++){let a=x+n.length;b+=($[a]||"")+u[x];}return b}var Ie=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!chunkCN53M4QZ_cjs.h(e)||!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;try{let t=new Date(r);if(chunkCN53M4QZ_cjs.n(t.getTime()))return null;let o=p=>p.toString().padStart(2,"0"),i={YYYY:t.getFullYear().toString(),MM:o(t.getMonth()+1),DD:o(t.getDate()),hh:o(t.getHours()),mm:o(t.getMinutes()),ss:o(t.getSeconds())},d=Object.entries(i).reduce((p,[f,m])=>p.split(f).join(m),e);return d.includes("NaN")?null:d}catch{return null}},Me=(r,e)=>{if(!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;let t=new Date(r);if(chunkCN53M4QZ_cjs.n(t.getTime()))return null;chunkCN53M4QZ_cjs.f(e)||(e={});let{locale:o="en-US",...i}=e;try{return new Intl.DateTimeFormat(o?.toString()?.trim()?.length?o:"en-US",i).format(t)}catch{return null}},Le=(r,e)=>{if(!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;chunkCN53M4QZ_cjs.f(e)||(e={});let{inputFormat:t,locale:o,inputLocale:i,...d}=e,p=chunkCN53M4QZ_cjs.o(e,"format")&&chunkCN53M4QZ_cjs.p(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",f;try{if(chunkCN53M4QZ_cjs.h(r)&&t&&i){let n=chunkCN53M4QZ_cjs.h(i)?i==="id"?locale.id:locale.enUS:i;f=dateFns.parse(r,t,new Date,{locale:n});}else f=new Date(r);if(chunkCN53M4QZ_cjs.n(f.getTime()))return null;let m=chunkCN53M4QZ_cjs.h(o)?o==="id"?locale.id:locale.enUS:o;return dateFns.format(f,p,{...d,locale:m})}catch{return null}},Ae=r=>{try{if(!r||chunkCN53M4QZ_cjs.h(r)&&chunk2TRAPBZ7_cjs.a(r))r=new Date;else if(!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return "0";let e=new Date(r);if(chunkCN53M4QZ_cjs.n(e.getTime()))return "0";let t=d=>d.toString().padStart(2,"0"),o=e.getTimezoneOffset(),i=o<0?"+":"-";return o=Math.abs(o),`${i}${t(Math.floor(o/60))}${t(o%60)}`}catch{return "0"}};var Ge=(r,e={})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:g,validType:b})=>`Second parameter (\`options\`) must be of type \`${b}\`, but received: \`${g}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"mode")?e.mode:"fixed";if(t!=="random"&&t!=="fixed")throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: ${chunkU5Y2FXMN_cjs.c(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[i,d]=r.split("@"),p=d.split(".");if(p.length<2)return "";let[f,...m]=p,n=m.join("."),u=t==="fixed"?(()=>{let g=0;for(let b=0;b<r.length;b++)g=(g<<5)-g+r.charCodeAt(b),g|=0;return Math.abs(g)})():void 0,y=(g,b,$)=>{if(g.length<=b)return "*".repeat(g.length);let x=g.split(""),a=Math.max(b,Math.ceil(g.length*$)),S=new Set,O=0;for(;S.size<a;){let C=chunkCN53M4QZ_cjs.k(u)?Math.floor(Math.random()*g.length):(u+g.length+O*31)%g.length;S.add(C),O++;}for(let C of S)x[C]="*";return x.join("")},P=y(i,i.length<4?1:2,.6),h=y(f,f.length<4?1:2,.5),w=n.length<=2?n:y(n,1,.4);return `${P}@${h}.${w}`};function tr(r,e,t={}){if(chunkCN53M4QZ_cjs.c(r)||e<=0)return r;if(chunkBVPMMWDL_cjs.a(r,{message:({currentType:n,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${n}\`.`}),!chunkPUQXRLZH_cjs.a(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);chunkCN53M4QZ_cjs.m(t,{message:({currentType:n,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let o=chunkCN53M4QZ_cjs.o(t,"separator")?t.separator:" ",i=chunkCN53M4QZ_cjs.o(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(chunkCN53M4QZ_cjs.h(o)&&chunkCN53M4QZ_cjs.a(i)))throw new TypeError(`Invalid properties type \`options\` (third parameter), \`separator\` must be of type \`string\`, and \`reCountAfterSpace\` must be of type \`boolean\`, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'reCountAfterSpace': \`${chunkCN53M4QZ_cjs.E(i)}\`].`);if(r=chunkN2IJPIND_cjs.a(r),!i){let n="",u=0;for(let y=0;y<r.length;y++){let P=r[y];u===e&&(n+=o,u=0),n+=P,u++;}return n}let d=r.split(" "),p=[],f=[],m=0;for(let n=0;n<d.length;n++){let u=d[n],y="",P=0;for(let h=0;h<u.length;h++)y+=u[h],P++,P===e&&h<u.length-1&&(y+=o,P=0);f.push(y),m++,(m===e||n===d.length-1)&&(p.push(f.join(o)),f=[],m=0);}return p.join(" ")}var ur=(r,e={})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:n,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"length")?e.length:10,o=chunkCN53M4QZ_cjs.o(e,"trim")?e.trim:true,i=chunkCN53M4QZ_cjs.o(e,"ending")?e.ending:"...";if(!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);if(t<1)return "";if(!(chunkCN53M4QZ_cjs.h(i)&&chunkCN53M4QZ_cjs.a(o)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'trim': \`${chunkCN53M4QZ_cjs.E(o)}\`].`);chunk2TRAPBZ7_cjs.a(i)?i="...":i=i.trim();let d=o?r.trim():r;if(d.length<=t)return d;let f=d.slice(0,t);return (o?f:f.trimEnd())+i};exports.a=le;exports.b=de;exports.c=De;exports.d=Ie;exports.e=Me;exports.f=Le;exports.g=Ae;exports.h=Ge;exports.i=tr;exports.j=ur;
@@ -1 +0,0 @@
1
- import {e,f as f$1}from'./chunk-W5EDKJK3.js';import {a}from'./chunk-NIMNTEGV.js';import {f,c,n,h,d,e as e$1,o}from'./chunk-XCFIOTCV.js';var g=(r,m={})=>{if(f(m)||(m={}),c(r)||r===false||n(r))return true;if(h(r))return a(r);if(d(r))return e(r);if(e$1(r)){let b=o(m,"checkSymbols")?m.checkSymbols:false;return f$1(r,{checkSymbols:b})}return false};export{g as a};
@@ -1,145 +0,0 @@
1
- import{I as IsEmptyArray}from'./array-CIZRbqTF.js';import{I as If}from'./if-CvT4R7Kh.js';
2
- /** -------------------------------------------------------
3
- * * ***Not.***
4
- * -------------------------------------------------------
5
- * Accepts a boolean type `T` and returns its negation.
6
- *
7
- * @template T - Boolean type to negate.
8
- *
9
- * @example
10
- * ```ts
11
- * type A = Not<true>; // ➔ false
12
- * type B = Not<false>; // ➔ true
13
- * ```
14
- */
15
- type Not<T extends boolean>=T extends true?false:true;
16
- /** -------------------------------------------------------
17
- * * ***PopOptions.***
18
- * -------------------------------------------------------
19
- *
20
- * Configuration options for the {@link Pop} type utility.
21
- */
22
- type PopOptions={
23
- /**
24
- * If `true`, {@link Pop} will return a tuple `[Rest, Removed]`
25
- * instead of just the remaining array.
26
- *
27
- * Default: `false`.
28
- *
29
- * @example
30
- * ```ts
31
- * type Options = { includeRemoved: true };
32
- * type Result = Pop<[1, 2, 3], Options>; // ➔ [[1, 2], 3]
33
- * ```
34
- */
35
- includeRemoved:boolean;};
36
- /** -------------------------------------------------------
37
- * * ***Pop.***
38
- * -------------------------------------------------------
39
- *
40
- * Removes the last element from a tuple/array type.
41
- *
42
- * If the `includeRemoved` option is `true`, it returns a tuple `[Rest, Removed]`
43
- * where `Rest` is the array without the last element, and `Removed` is the last element.
44
- *
45
- * @template T - The tuple or array to pop from.
46
- * @template Options - Configuration object. Default `{ includeRemoved: false }`.
47
- *
48
- * @example
49
- * ```ts
50
- * // Removes last element
51
- * type Case1 = Pop<[1, 2, 3]>
52
- * // ➔ [1, 2]
53
- *
54
- * // Removes last element and includes the removed value
55
- * type Case2 = Pop<[1, 2, 3], { includeRemoved: true }>
56
- * // ➔ [[1, 2], 3]
57
- *
58
- * // Edge case: empty array
59
- * type Case3 = Pop<[]>
60
- * // ➔ never
61
- * ```
62
- */
63
- type Pop<T extends readonly unknown[],Options extends PopOptions={includeRemoved:false;}>=IsEmptyArray<T>extends true?never:T extends readonly [...infer Rest extends readonly unknown[],infer Removed]?If<Options["includeRemoved"],[Rest,Removed],Rest>:never;
64
- /** -------------------------------------------------------
65
- * * ***Extends.***
66
- * -------------------------------------------------------
67
- * Returns a boolean indicating whether the first argument ***extends*** the second argument.
68
- *
69
- * @template T - The type to check.
70
- * @template Base - The type to compare against.
71
- * @example
72
- * ```ts
73
- * type A = Extends<1, number>; // ➔ true
74
- * type B = Extends<number, 1>; // ➔ false
75
- * ```
76
- */
77
- type Extends<T,Base>=[T] extends [Base]?true:false;
78
- /** -------------------------------------------------------
79
- * * ***NotExtends.***
80
- * -------------------------------------------------------
81
- * Returns a boolean indicating whether the first argument does ***not extend*** the second argument.
82
- *
83
- * @template T - The type to check.
84
- * @template Base - The type to compare against.
85
- * @example
86
- * ```ts
87
- * type A = NotExtends<1, number>; // ➔ false
88
- * type B = NotExtends<number, 1>; // ➔ true
89
- * ```
90
- */
91
- type NotExtends<T,Base>=Not<Extends<T,Base>>;
92
- /** -------------------------------------------------------
93
- * * ***IfExtends.***
94
- * -------------------------------------------------------
95
- * Conditional: returns the third argument if the first argument ***extends*** the second argument, otherwise returns the fourth argument.
96
- * - Defaults: `IfTrue = true`, `IfFalse = false`.
97
- *
98
- * @template T - The type to check.
99
- * @template Base - The type to compare against.
100
- * @template IfTrue - The branch type if condition is met. (default: `true`)
101
- * @template IfFalse - The branch type if condition is not met. (default: `false`)
102
- * @example
103
- * ```ts
104
- * type A = IfExtends<1, number, "valid">;
105
- * // ➔ "valid"
106
- * type B = IfExtends<1, string, "valid", "invalid">;
107
- * // ➔ "invalid"
108
- * ```
109
- */
110
- type IfExtends<T,Base,IfTrue=true,IfFalse=false>=If<Extends<T,Base>,IfTrue,IfFalse>;
111
- /** -------------------------------------------------------
112
- * * ***IfNotExtends.***
113
- * -------------------------------------------------------
114
- * Conditional: returns the third argument if the first argument does ***not extend*** the second argument, otherwise returns the fourth argument.
115
- * - Defaults: `IfTrue = true`, `IfFalse = false`.
116
- *
117
- * @template T - The type to check.
118
- * @template Base - The type to compare against.
119
- * @template IfTrue - The branch type if condition is met. (default: `true`)
120
- * @template IfFalse - The branch type if condition is not met. (default: `false`)
121
- * @example
122
- * ```ts
123
- * type A = IfNotExtends<1, string, "valid">;
124
- * // ➔ "valid"
125
- * type B = IfNotExtends<1, number, "valid", "invalid">;
126
- * // ➔ "invalid"
127
- * ```
128
- */
129
- type IfNotExtends<T,Base,IfTrue=true,IfFalse=false>=If<NotExtends<T,Base>,IfTrue,IfFalse>;
130
- /** -------------------------------------------------------
131
- * * ***ExtendsArr.***
132
- * -------------------------------------------------------
133
- * Returns a boolean indicating whether every element of the first array argument ***extends*** the second argument.
134
- *
135
- * @template T - The array to check.
136
- * @template Base - The type to compare each element against.
137
- * @example
138
- * ```ts
139
- * type A = ExtendsArr<[1, 2, 3], number>;
140
- * // ➔ true
141
- * type B = ExtendsArr<[1, "2", 3], number>;
142
- * // ➔ false
143
- * ```
144
- */
145
- type ExtendsArr<T extends readonly unknown[],Base>=IsEmptyArray<T>extends true?true:Pop<T,{includeRemoved:true;}>extends readonly [infer Rest extends readonly unknown[],infer Removed]?Extends<Removed,Base>extends true?ExtendsArr<Rest,Base>:false:false;export type{Extends as E,IfExtends as I,Not as N,Pop as P,NotExtends as a,ExtendsArr as b,IfNotExtends as c,PopOptions as d};