@rzl-zone/utils-js 3.1.2-beta.0 → 3.2.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 (210) hide show
  1. package/README.md +59 -32
  2. package/dist/NumberRangeUnion-B6bhM2s7.d.ts +33 -0
  3. package/dist/{any-BmdI8UbK.d.ts → any-v4TsK9ES.d.ts} +25 -26
  4. package/dist/{arrays-normalize-recursive-CnjYJ9xg.d.ts → arrays-normalize-recursive-BqmVuFlD.d.ts} +20 -20
  5. package/dist/assertions/index.cjs +1 -1
  6. package/dist/assertions/index.d.ts +96 -70
  7. package/dist/assertions/index.js +1 -1
  8. package/dist/chunk-2CQX5CBG.js +1 -0
  9. package/dist/chunk-2IOOEY45.cjs +1 -0
  10. package/dist/chunk-3IBQ5MOM.js +1 -0
  11. package/dist/chunk-3VA554KW.js +1 -0
  12. package/dist/chunk-5757UBXJ.cjs +1 -0
  13. package/dist/chunk-5IGC6PBH.js +1 -0
  14. package/dist/chunk-5KJFVIQT.cjs +1 -0
  15. package/dist/chunk-6JFCSH7J.js +1 -0
  16. package/dist/chunk-6JFZL7YE.cjs +1 -0
  17. package/dist/chunk-7ODAAXX5.cjs +1 -0
  18. package/dist/chunk-BAV5T2E3.cjs +1 -0
  19. package/dist/chunk-CAH33WOQ.cjs +1 -0
  20. package/dist/chunk-CKTLUNWX.js +1 -0
  21. package/dist/chunk-CMW2TBOQ.js +1 -0
  22. package/dist/chunk-D3ENH7H6.cjs +1 -0
  23. package/dist/chunk-DEZZUYE2.js +1 -0
  24. package/dist/chunk-DVMHRLKP.cjs +1 -0
  25. package/dist/chunk-DWF2R5GD.cjs +1 -0
  26. package/dist/chunk-E55EQK2U.cjs +1 -0
  27. package/dist/chunk-E74U6CYP.cjs +1 -0
  28. package/dist/chunk-EL6A35UR.cjs +1 -0
  29. package/dist/chunk-F6IPNNSJ.cjs +1 -0
  30. package/dist/chunk-FJZGG54N.cjs +1 -0
  31. package/dist/chunk-FWCKOJZM.js +1 -0
  32. package/dist/chunk-FWHNWL2P.cjs +1 -0
  33. package/dist/chunk-GGEADHZO.js +1 -0
  34. package/dist/chunk-GQR4R5WY.js +1 -0
  35. package/dist/chunk-H66AC7GK.cjs +1 -0
  36. package/dist/chunk-HQWOFR56.cjs +1 -0
  37. package/dist/chunk-HYRQMTRH.cjs +1 -0
  38. package/dist/chunk-IRFL4MAX.js +1 -0
  39. package/dist/chunk-IVL7CKVH.cjs +1 -0
  40. package/dist/chunk-IZPBKKPO.js +1 -0
  41. package/dist/chunk-JBQMXC5I.cjs +1 -0
  42. package/dist/chunk-JEQEF5WD.js +1 -0
  43. package/dist/chunk-JMJQCN74.js +1 -0
  44. package/dist/chunk-JYQTCICM.js +1 -0
  45. package/dist/chunk-KHO2SBNA.cjs +1 -0
  46. package/dist/chunk-KVAL5PAG.cjs +1 -0
  47. package/dist/chunk-L5RDAVVH.js +1 -0
  48. package/dist/chunk-LS6U7FAY.cjs +1 -0
  49. package/dist/chunk-NBZWMBO6.js +1 -0
  50. package/dist/chunk-NRF6LWBC.cjs +1 -0
  51. package/dist/chunk-OI5XKNZO.js +1 -0
  52. package/dist/chunk-ONZFBJVW.js +1 -0
  53. package/dist/chunk-OYTYSY7G.js +1 -0
  54. package/dist/chunk-PET42Z7W.js +1 -0
  55. package/dist/chunk-PZQ6I4JJ.cjs +1 -0
  56. package/dist/chunk-QBKAEVYG.js +1 -0
  57. package/dist/chunk-QNKGP5DY.js +1 -0
  58. package/dist/chunk-RIPKY4RU.js +1 -0
  59. package/dist/chunk-RZW35UN5.cjs +1 -0
  60. package/dist/chunk-SBFNXGTJ.js +1 -0
  61. package/dist/chunk-SBKGWRS5.js +1 -0
  62. package/dist/chunk-SIM77PU4.js +1 -0
  63. package/dist/chunk-T2T7K3KR.js +1 -0
  64. package/dist/chunk-T7PU2V7X.cjs +1 -0
  65. package/dist/chunk-UDA26MCU.cjs +1 -0
  66. package/dist/chunk-V45XJKHW.cjs +1 -0
  67. package/dist/chunk-VJDDGRIK.cjs +1 -0
  68. package/dist/chunk-W2WNBUDE.js +1 -0
  69. package/dist/chunk-WVSPXFTY.js +1 -0
  70. package/dist/chunk-XABCB3Y7.cjs +1 -0
  71. package/dist/chunk-XEDXFSGI.js +1 -0
  72. package/dist/chunk-YKPSRP5G.js +1 -0
  73. package/dist/chunk-YLA3DURS.cjs +1 -0
  74. package/dist/chunk-YWHHVDT4.js +1 -0
  75. package/dist/chunk-ZETAZZLD.cjs +1 -0
  76. package/dist/conversions/index.cjs +1 -1
  77. package/dist/conversions/index.d.ts +515 -321
  78. package/dist/conversions/index.js +1 -1
  79. package/dist/events/index.cjs +1 -1
  80. package/dist/events/index.d.ts +25 -20
  81. package/dist/events/index.js +1 -1
  82. package/dist/{extends-Bk_SBGdT.d.ts → extends-DtdRjDyU.d.ts} +63 -87
  83. package/dist/formatters/index.cjs +1 -0
  84. package/dist/formatters/index.d.ts +2106 -0
  85. package/dist/formatters/index.js +1 -0
  86. package/dist/generators/index.cjs +1 -0
  87. package/dist/{generator → generators}/index.d.ts +57 -59
  88. package/dist/generators/index.js +1 -0
  89. package/dist/{if-CvT4R7Kh.d.ts → if-ChM35c_q.d.ts} +6 -5
  90. package/dist/{is-array--YjXV-Wx.d.ts → is-array-BJeHxPM3.d.ts} +287 -542
  91. package/dist/{isPlainObject-BVhBAPHX.d.ts → isPlainObject-DGJkcFYw.d.ts} +6 -6
  92. package/dist/{never-BfayMBF9.d.ts → never-D89PbPh5.d.ts} +10 -19
  93. package/dist/next/index.cjs +1 -8
  94. package/dist/next/index.d.ts +15 -12
  95. package/dist/next/index.js +1 -8
  96. package/dist/next/server/index.cjs +1 -2
  97. package/dist/next/server/index.d.ts +1 -1
  98. package/dist/next/server/index.js +1 -2
  99. package/dist/{nils-DMz3kU7M.d.ts → nils-CO8zLHSB.d.ts} +39 -65
  100. package/dist/operations/index.cjs +1 -1
  101. package/dist/operations/index.d.ts +4 -4
  102. package/dist/operations/index.js +1 -1
  103. package/dist/or-C6qzKt2I.d.ts +82 -0
  104. package/dist/override-CL2olHE5.d.ts +59 -0
  105. package/dist/parsers/index.cjs +1 -1
  106. package/dist/parsers/index.js +1 -1
  107. package/dist/pick-BSMX6Xe2.d.ts +15 -0
  108. package/dist/predicates/index.cjs +1 -1
  109. package/dist/predicates/index.d.ts +425 -106
  110. package/dist/predicates/index.js +1 -1
  111. package/dist/prettify-3o8_Kw6b.d.ts +564 -0
  112. package/dist/promises/index.cjs +1 -0
  113. package/dist/promises/index.d.ts +107 -0
  114. package/dist/promises/index.js +1 -0
  115. package/dist/promises-LU7K00H0.d.ts +72 -0
  116. package/dist/rzl-utils.global.js +1 -4
  117. package/dist/{string-XA-til3C.d.ts → string-B1jlOnws.d.ts} +82 -121
  118. package/dist/strings/index.cjs +1 -1
  119. package/dist/strings/index.d.ts +209 -210
  120. package/dist/strings/index.js +1 -1
  121. package/dist/tailwind/index.cjs +1 -0
  122. package/dist/tailwind/index.d.ts +571 -0
  123. package/dist/tailwind/index.js +1 -0
  124. package/dist/types/index.d.ts +899 -1181
  125. package/dist/urls/index.cjs +1 -1
  126. package/dist/urls/index.d.ts +113 -108
  127. package/dist/urls/index.js +1 -1
  128. package/package.json +45 -47
  129. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +0 -26
  130. package/dist/chunk-26W3VZIK.cjs +0 -1
  131. package/dist/chunk-2KRCHXFG.cjs +0 -2
  132. package/dist/chunk-33ZLH266.js +0 -1
  133. package/dist/chunk-4L4EJTNZ.js +0 -1
  134. package/dist/chunk-56QBKKRE.js +0 -1
  135. package/dist/chunk-5Q37AP7P.js +0 -1
  136. package/dist/chunk-5SZUSNGZ.js +0 -1
  137. package/dist/chunk-7CHFAMS2.js +0 -1
  138. package/dist/chunk-7MMJZ6HS.js +0 -1
  139. package/dist/chunk-7TC6DE3J.cjs +0 -1
  140. package/dist/chunk-7VX33E3V.js +0 -1
  141. package/dist/chunk-7YWAQOA4.cjs +0 -1
  142. package/dist/chunk-BEZPD44N.cjs +0 -1
  143. package/dist/chunk-BI263OHW.js +0 -1
  144. package/dist/chunk-CII6WWLO.cjs +0 -1
  145. package/dist/chunk-D5TYPCWU.cjs +0 -1
  146. package/dist/chunk-EEQY5QUG.js +0 -1
  147. package/dist/chunk-ELDDNERR.js +0 -1
  148. package/dist/chunk-ESJYBIYH.js +0 -1
  149. package/dist/chunk-EWYPSKKM.js +0 -1
  150. package/dist/chunk-EXCOQLWX.cjs +0 -1
  151. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  152. package/dist/chunk-FWQVTMYA.cjs +0 -1
  153. package/dist/chunk-G4EWCRKS.js +0 -1
  154. package/dist/chunk-G5LXIEFO.js +0 -0
  155. package/dist/chunk-G7R5XZRM.cjs +0 -1
  156. package/dist/chunk-GGEV7LXX.cjs +0 -1
  157. package/dist/chunk-HJOZOENU.cjs +0 -1
  158. package/dist/chunk-IRDZVLNZ.cjs +0 -1
  159. package/dist/chunk-IW73G523.cjs +0 -1
  160. package/dist/chunk-IY5OZAB3.cjs +0 -1
  161. package/dist/chunk-J4NCYYGS.js +0 -1
  162. package/dist/chunk-J7JAZAJD.js +0 -1
  163. package/dist/chunk-JYNSO7ZY.js +0 -1
  164. package/dist/chunk-K3UVKYEU.js +0 -1
  165. package/dist/chunk-LQ76EDZG.js +0 -1
  166. package/dist/chunk-MMSYCIJ2.cjs +0 -1
  167. package/dist/chunk-MROH35V3.cjs +0 -1
  168. package/dist/chunk-NJSAV73S.js +0 -1
  169. package/dist/chunk-NNM7QCNB.js +0 -1
  170. package/dist/chunk-NR44SNYE.js +0 -1
  171. package/dist/chunk-NXMTWY77.js +0 -1
  172. package/dist/chunk-OZCQZO2V.cjs +0 -4
  173. package/dist/chunk-PUQXRLZH.cjs +0 -1
  174. package/dist/chunk-Q3NTKN5I.cjs +0 -1
  175. package/dist/chunk-QDNSC57Z.js +0 -4
  176. package/dist/chunk-QGXTL5ZH.js +0 -2
  177. package/dist/chunk-QSQDP7L2.cjs +0 -1
  178. package/dist/chunk-RV2VULM7.cjs +0 -1
  179. package/dist/chunk-S5M33A4O.js +0 -1
  180. package/dist/chunk-SGTHOQQ2.js +0 -1
  181. package/dist/chunk-SL3RQOWA.js +0 -1
  182. package/dist/chunk-SW6HYEW7.cjs +0 -1
  183. package/dist/chunk-SYJC7UAW.js +0 -1
  184. package/dist/chunk-SZPWZZYG.cjs +0 -1
  185. package/dist/chunk-UA4B7JBO.cjs +0 -1
  186. package/dist/chunk-UQDJF5RR.cjs +0 -1
  187. package/dist/chunk-UTQUYABU.cjs +0 -1
  188. package/dist/chunk-VPW3DRV5.js +0 -1
  189. package/dist/chunk-W32WALNU.js +0 -1
  190. package/dist/chunk-XGZ6K753.cjs +0 -1
  191. package/dist/chunk-YFTR64N5.cjs +0 -1
  192. package/dist/chunk-ZFDS7W6B.cjs +0 -1
  193. package/dist/chunk-ZQOLZE6Z.cjs +0 -1
  194. package/dist/env/index.cjs +0 -1
  195. package/dist/env/index.d.ts +0 -16
  196. package/dist/env/index.js +0 -1
  197. package/dist/formatting/index.cjs +0 -1
  198. package/dist/formatting/index.d.ts +0 -950
  199. package/dist/formatting/index.js +0 -1
  200. package/dist/generator/index.cjs +0 -1
  201. package/dist/generator/index.js +0 -1
  202. package/dist/omit-VvmIsZmX.d.ts +0 -28
  203. package/dist/prettify-C4xLcYOP.d.ts +0 -353
  204. package/dist/promise/index.cjs +0 -1
  205. package/dist/promise/index.d.ts +0 -31
  206. package/dist/promise/index.js +0 -1
  207. package/dist/stylings/index.cjs +0 -1
  208. package/dist/stylings/index.d.ts +0 -41
  209. package/dist/stylings/index.js +0 -1
  210. package/dist/type-data-DDs-u2kq.d.ts +0 -261
@@ -0,0 +1 @@
1
+ import{isEmptyString as e}from"./chunk-W2WNBUDE.js";import{isEmptyArray as r,isEmptyObject as o}from"./chunk-6JFCSH7J.js";import{assertIsPlainObject as t,hasOwnProp as c,assertIsBoolean as m,isNil as s,isNaN as p,isString as a,isArray as n,isObject as y}from"./chunk-CMW2TBOQ.js";var u=(u,i={})=>{t(i,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const b=!!c(i,"checkSymbols")&&i.checkSymbols;return m(b,{message:({currentType:e,validType:r})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),!(!s(u)&&!1!==u&&!p(u))||(a(u)?e(u):n(u)?r(u):!!y(u)&&o(u,{checkSymbols:b}))};export{u as isEmptyValue};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-KVAL5PAG.cjs"),e=require("./chunk-E55EQK2U.cjs"),t=require("./chunk-T7PU2V7X.cjs"),a=require("./chunk-PZQ6I4JJ.cjs"),n=class r extends Error{originalError;constructor(e,t){super(e,a.isFunction(Error)?{cause:t}:void 0),this.name="NormalizePathnameError",this.originalError=t,a.isFunction(Error.captureStackTrace)?Error.captureStackTrace(this,r):this.stack=new Error(e).stack}toJSON(){return{name:this.name,message:this.message,stack:this.stack,originalError:{name:this.originalError.name,message:this.originalError.message,stack:this.originalError.stack}}}};exports.formatEnvPort=(r,t={})=>{if(!a.isNonEmptyString(r))return"";a.assertIsPlainObject(t,{message:({currentType:r,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${r}\`.`});const n=!!a.hasOwnProp(t,"prefixColon")&&t.prefixColon;if(!a.isBoolean(n))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${a.getPreciseType(n)}\`.`);const o=r.replace(/\D+/g,"");return e.isEmptyString(o)?"":n?`:${o}`:o},exports.normalizePathname=(e,o="/")=>{if(!a.isNonEmptyString(o))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${a.getPreciseType(o)}\`, with value: \`${t.safeStableStringify(o)}\`.`);if(!a.isNonEmptyString(e))return o;try{if((e=(e=r.removeSpaces(e,{trimOnly:!0})).replace(/\s+/g,"")).startsWith("http://")||e.startsWith("https://")){const r=new URL(e);return`${r.pathname}${r.search}${r.hash}`.replace(/^\/+/,"/")}return"/"+e.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(r){const e=a.isError(r)?r:new Error("Unknown error from function `normalizePathname()`.");throw new n(`Failed to normalize pathname in function \`normalizePathname()\`: ${e.message}`,e)}};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-E55EQK2U.cjs"),s=require("./chunk-ZETAZZLD.cjs"),r=require("./chunk-PZQ6I4JJ.cjs");exports.isEmptyValue=(t,c={})=>{r.assertIsPlainObject(c,{message:({currentType:e,validType:s})=>`Second parameter (\`options\`) must be of type \`${s}\`, but received: \`${e}\`.`});const i=!!r.hasOwnProp(c,"checkSymbols")&&c.checkSymbols;return r.assertIsBoolean(i,{message:({currentType:e,validType:s})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${s}\`, but received: \`${e}\`.`}),!(!r.isNil(t)&&!1!==t&&!r.isNaN(t))||(r.isString(t)?e.isEmptyString(t):r.isArray(t)?s.isEmptyArray(t):!!r.isObject(t)&&s.isEmptyObject(t,{checkSymbols:i}))};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.assertIsString=(e,s={})=>{if(r.isString(e))return;const t=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"string"});throw new TypeError(t)};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as e}from"./chunk-CMW2TBOQ.js";var l=l=>{if(!e(l))return 0;let c=l.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=!1;/^\(.*\)$/.test(c)&&(s=!0,c=c.slice(1,-1).trim()),c=c.replace(/^[-\s]+/,e=>e.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(c)||/^[^\d]*-/.test(c);let r=c.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,"");const t=r.match(/,\d{2}/g);if(t&&t.length>1)r=r.replace(/,/g,"");else{const e=(r.match(/\./g)||[]).length,l=(r.match(/,/g)||[]).length;if(e>1&&0===l)r=r.replace(/\./g,"");else if(l>1&&0===e)r=r.replace(/,/g,"");else{const e=r.lastIndexOf(","),l=r.lastIndexOf(".");if(e>l)r=r.replace(/\./g,"").replace(",",".");else if(l>e)r=r.replace(/,/g,"");else if(e>l){const l=r.slice(0,e).replace(/,/g,"").replace(/\./g,""),c=r.slice(e+1);r=l+"."+c}else if(l>e){const e=r.slice(0,l).replace(/\./g,"").replace(/,/g,""),c=r.slice(l+1);r=e+"."+c}else-1!==e?r=r.replace(/,/g,""):-1!==l&&(r=r.replace(/\./g,""))}}const a=parseFloat(r)||0;return s?-a:a};export{l as parseCurrencyString};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-UDA26MCU.cjs"),e=require("./chunk-PZQ6I4JJ.cjs");exports.assertIsBigInt=(s,i={})=>{if(r.isBigInt(s))return;const n=e.resolveErrorMessageAssertions({value:s,options:i,requiredValidType:"big int"});throw new TypeError(n)},exports.assertIsNumber=(r,s={})=>{const i=e.hasOwnProp(s,"includeNaN")?s.includeNaN:void 0;if(e.isNumber(r,{includeNaN:i}))return;const n=e.resolveErrorMessageAssertions({value:r,options:s,requiredValidType:"number"});throw new TypeError(n)};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r}from"./chunk-CMW2TBOQ.js";var m=m=>r(m)?m.trim():"";export{m as normalizeString};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-T7PU2V7X.cjs"),r=require("./chunk-PZQ6I4JJ.cjs"),t=e=>e instanceof RegExp;function n(e){return e instanceof ArrayBuffer}function i(f,s,u,o=new WeakMap){if(f===s)return!0;if(f!=f&&s!=s)return!0;if(!r.isObjectOrArray(f)||!r.isObjectOrArray(s))return!1;if(o.get(f)===s)return!0;o.set(f,s);const a=(e,t,n,f,s)=>{if(u){const i=u(e,t,n,f,s,o);if(!r.isUndefined(i))return i}return i(e,t,u,o)};if(e.isDate(f)&&e.isDate(s))return f.getTime()===s.getTime();if(t(f)&&t(s))return f.source===s.source&&f.flags===s.flags;if(r.isError(f)&&r.isError(s))return f.name===s.name&&f.message===s.message;if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(s)){const e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength),r=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(n(f)&&n(s)){if(f.byteLength!==s.byteLength)return!1;const e=new Uint8Array(f),r=new Uint8Array(s);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(e.isMap(f)&&e.isMap(s)){if(f.size!==s.size)return!1;for(const[e,r]of f){if(!s.has(e))return!1;if(!i(r,s.get(e),u,o))return!1}return!0}if(r.isSet(f)&&r.isSet(s)){if(f.size!==s.size)return!1;for(const e of f){let r=!1;for(const t of s)if(i(e,t,u,o)){r=!0;break}if(!r)return!1}return!0}if(r.isArray(f)&&r.isArray(s)){if(f.length!==s.length)return!1;for(let e=0;e<f.length;e++)if(!a(f[e],s[e],e,f,s))return!1;return!0}if(Object.getPrototypeOf(f)!==Object.getPrototypeOf(s))return!1;const c=Reflect.ownKeys(f),g=Reflect.ownKeys(s);if(c.length!==g.length)return!1;for(const e of c){if(!a(f[e],s[e],e,f,s))return!1}return!0}exports.baseDeepEqual=i,exports.isArrayBuffer=n,exports.isEqual=function(e,r){return i(e,r,void 0,new WeakMap)},exports.isRegExp=t;
@@ -0,0 +1 @@
1
+ import{isEmptyString as e}from"./chunk-W2WNBUDE.js";import{isNonEmptyString as r,isPlainObject as t,isString as i,isNumber as s,getPreciseType as a}from"./chunk-CMW2TBOQ.js";var n=(e,i={lowerCaseNextRest:!0,trim:!1})=>{if(!r(e))return"";t(i)||(i={});const s=!1!==i.lowerCaseNextRest;return!0===i.trim&&(e=e.trim()),e[0].toUpperCase()+(s?e.slice(1).toLowerCase():e.slice(1))},o=(e,i={collapseSpaces:!1,trim:!1})=>{if(!r(e))return"";let s=e;t(i)||(i={});const a=!0===i.collapseSpaces;if(!0===i.trim&&(s=s.trim()),a){const e=s.match(/^\s*/)?.[0]??"",r=s.match(/\s*$/)?.[0]??"";s=s.trim().replace(/\s+/g," "),s=`${e}${s}${r}`}return s.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")};function p(r){if(!i(r))return;if(e(r))return"";return r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()}var c=e=>{if(!r(e))return"";const t=(e=e.replace(/\s+/g," ").trim()).split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():e.length>1?e.substring(0,2).toUpperCase():e[0].toUpperCase()},l=(e,r,t)=>{if(!s(e)||!i(t)||!i(r))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': \`${a(e)}\`, 'originalString': \`${a(r)}\`, 'replaceTo': \`${a(t)}\`]".`);if(e<0||e>=r.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return r.slice(0,e)+t+r.slice(e+1)};export{n as capitalizeFirst,o as capitalizeWords,c as getInitialsName,l as replaceAt,p as stripHtmlTags};
@@ -0,0 +1 @@
1
+ import{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-5IGC6PBH.js";import{parseCurrencyString as t}from"./chunk-IRFL4MAX.js";import{isEmptyString as n}from"./chunk-W2WNBUDE.js";import{assertIsString as o}from"./chunk-SBKGWRS5.js";import{isEqual as i,isRegExp as u,baseDeepEqual as a}from"./chunk-NBZWMBO6.js";import{isEmptyArray as s}from"./chunk-6JFCSH7J.js";import{safeStableStringify as f,isDate as c,isMap as p}from"./chunk-PET42Z7W.js";import{isArray as m,getPreciseType as h,assertIsBoolean as y,isNonEmptyString as l,assertIsPlainObject as g,isObjectOrArray as b,isFunction as d,isString as v,isNumber as T,isSymbol as $,isSet as j,isPlainObject as S,isNil as w,isBoolean as N,isBuffer as k,isNaN as O,isUndefined as E,isObject as P,isNull as W}from"./chunk-CMW2TBOQ.js";var A=(e,r,t=!1)=>{if(!m(e)||!m(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${h(e)}\`, 'array2': \`${h(r)}\`].`);if(y(t,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!i(e.length,r.length))return!1;const n=e=>{if(!m(e))return e;return e.map(e=>m(e)?n(e):e).sort((e,r)=>{const t=f(e),n=f(r);return t<n?-1:t>n?1:0})},o=t?n(e):e,u=t?n(r):r;return!!i(o.length,u.length)&&o.every((e,r)=>f(e)===f(u[r]))},M=(e,r)=>i(e,r),R=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname},B=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search},x=(e,r,t={})=>{if(!l(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:i="i"}=t;y(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),o(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const u=r.filter(e=>l(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==u.length&&u.every(r=>new RegExp(n?`(?<!\\S)${r}(?!\\S)`:r,i.includes("u")?i:i+"u").test(e))},z=(e,r,t={})=>{if(!l(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:i="i"}=t;y(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),o(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const u=r.filter(e=>l(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===u.length)return!1;const a=n?`(?<!\\S)(${u.join("|")})(?!\\S)`:`(${u.join("|")})`;return new RegExp(a,i.includes("u")?i:i+"u").test(e)};function I(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var F=(e,r)=>{if(!b(e))return!1;if(!I(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${h(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(m(e)?e.some(e=>F(e,r)):Object.values(e).some(e=>b(e)&&F(e,r)))},Z=(e,r)=>{if(!m(e)||!m(r)||s(e)||s(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},C=e=>"[object Arguments]"===Object.prototype.toString.call(e);function U(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}function G(e){return!d(e)&&b(e)&&U(e?.length)}function J(e){return b(e)&&U(e.length)}var L=e=>{if(!v(e)&&!T(e))return!1;return 0!==t(e.toString())||"0"===e.toString().trim()},_=(e,r)=>{if("number"==typeof e&&"number"==typeof r&&Number.isNaN(e)&&Number.isNaN(r))return!0;if(e===r)return!0;if(typeof e!=typeof r)return!1;if(c(e)&&c(r))return e.getTime()===r.getTime();if(u(e)&&u(r))return e.toString()===r.toString();if($(e)&&$(r))return e.toString()===r.toString();if(j(e)&&j(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const r of e){let e=!1;for(let o=0;o<t.length;o++)if(!n.has(o)&&_(r,t[o])){n.add(o),e=!0;break}if(!e)return!1}return!0}if(p(e)&&p(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const[r,o]of e){let e=!1;for(let i=0;i<t.length;i++){if(n.has(i))continue;const[u,a]=t[i];if(_(r,u)&&_(o,a)){n.add(i),e=!0;break}}if(!e)return!1}return!0}if(m(e)&&m(r))return e.length===r.length&&e.every((e,t)=>_(e,r[t]));if(b(e)&&b(r)&&e&&r){if(m(e)!==m(r))return!1;const t=Object.keys(e),n=Object.keys(r);return t.length===n.length&&t.every(t=>_(e[t],r[t]))}return!1};function H(e){return!!e&&"object"==typeof e&&1===e?.nodeType&&!S(e)}function K(e){return!!w(e)||(!!(N(e)||T(e,{includeNaN:!0})||$(e))||(d(e)?0===Object.keys(e).length:v(e)||m(e)||C(e)||r(e)?0===e.length:p(e)||j(e)?0===e.size:k(e)?0===e.length:!!S(e)&&0===Object.keys(e).length))}var X=e=>{if(v(e))return n(e);if(T(e))return O(e);if(m(e))return s(e)||e.every(X);if(b(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>X(e[r]))}return!e};function D(e,r,t){return a(e,r,t,new WeakMap)}function Q(e,r,t){return q(e,r,t)}function V(e,r){return e===r||0===e&&0===r||Number.isNaN(e)&&Number.isNaN(r)}function q(e,r,t){if(e===r)return!0;if(!b(r))return V(e,r);if(!b(e))return!1;const n=Reflect.ownKeys(r).filter(e=>!(m(r)&&"length"===e));for(const o of n){if(!(o in e))return!1;const n=e[o],i=r[o],u=t?.(n,i,o,e,r);if(E(u)){if(b(n)&&b(i)){if(!Q(n,i,t))return!1}else if(!V(n,i))return!1}else if(!u)return!1}return!0}function Y(e,r){return q(e,r)}var ee=Function.prototype.toString,re=/\{\s*\[native code\]\s*\}/;function te(e){if(!d(e))return!1;try{const r=ee.call(e);return re.test(r)}catch{return!1}}function ne(e){return!w(e)&&(b(e)||d(e))}function oe(e){return"number"==typeof e&&Number.isSafeInteger(e)}var ie=e=>{if(!l(e))return!1;let r;try{r=decodeURIComponent(e)}catch{return!1}if(!r.startsWith("http://")&&!r.startsWith("https://"))return!1;return new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(r)};function ue(e){return P(e)&&!W(e)&&e instanceof WeakMap}export{A as areArraysEqual,M as areObjectsEqual,R as areURLsEqualPath,B as areURLsIdentical,Z as arrayHasAnyMatch,F as doesKeyExist,C as isArguments,G as isArrayLike,J as isArrayLikeObject,L as isCurrencyLike,_ as isDeepEqual,H as isElement,K as isEmpty,X as isEmptyDeep,D as isEqualWith,U as isLength,Y as isMatch,Q as isMatchWith,te as isNative,ne as isObjectLoose,I as isPropertyKey,oe as isSafeInteger,ie as isValidURL,ue as isWeakMap,x as textContainsAll,z as textContainsAny};
@@ -0,0 +1 @@
1
+ import{assertIsArray as e}from"./chunk-CKTLUNWX.js";import{isPlainObject as i,isNumber as r,isNonEmptyString as s,isFunction as o,hasOwnProp as t,isNonEmptyArray as n,getPreciseType as a}from"./chunk-CMW2TBOQ.js";import{getDefaultConfig as c,extendTailwindMerge as f}from"tailwind-merge-v3";import{getDefaultConfig as l,extendTailwindMerge as p}from"tailwind-merge-v4";function d(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=d(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var m=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=d(e))&&(s&&(s+=" "),s+=i);return s},u=e=>{i(e)||(e={});let{config:a,prefix:c,extend:f,override:l,cacheSize:p,experimentalParseClassName:d}=e;i(a)||(a={}),i(f)||(f={}),i(l)||(l={}),r(p)||(p=void 0),s(c)||(c=void 0),o(d)||(d=void 0);return{config:a,override:l,cacheSize:p,prefix:c,experimentalParseClassName:d,theme:t(f,"theme")?f.theme:{},classGroups:t(f,"classGroups")?f.classGroups:{},conflictingClassGroupModifiers:t(f,"conflictingClassGroupModifiers")?f.conflictingClassGroupModifiers:{},conflictingClassGroups:t(f,"conflictingClassGroups")?f.conflictingClassGroups:{},orderSensitiveModifiers:t(f,"orderSensitiveModifiers")&&n(f.orderSensitiveModifiers)?f.orderSensitiveModifiers:[]}},g=c(),x=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,override:a,prefix:c,theme:l,experimentalParseClassName:p}=u(e);return f({prefix:c??o.prefix,cacheSize:r||g.cacheSize,experimentalParseClassName:p,override:a,extend:{conflictingClassGroupModifiers:{...g.conflictingClassGroupModifiers,...t},theme:{...g.theme,...l},conflictingClassGroups:{...g.conflictingClassGroups,...n},classGroups:{...g.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},h=l(),C=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,orderSensitiveModifiers:a,override:c,prefix:f,theme:l,experimentalParseClassName:d}=u(e);return p({prefix:f||o.prefix,cacheSize:r||h.cacheSize,experimentalParseClassName:d,override:c,extend:{conflictingClassGroupModifiers:{...h.conflictingClassGroupModifiers,...t},theme:{...h.theme,...l},conflictingClassGroups:{...h.conflictingClassGroups,...n},orderSensitiveModifiers:[...h.orderSensitiveModifiers,...a],classGroups:{...h.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},G=x(),v=C(),S=(...e)=>G(m(...e)),M=(...e)=>v(m(...e)),y=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},z=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},w=i=>(e(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString()));export{S as cnV3,M as cnV4,y as customCnV3,z as customCnV4,w as shouldForwardProp,x as twMergeDefaultV3,C as twMergeDefaultV4};
@@ -0,0 +1 @@
1
+ "use strict";exports.isURL=s=>s instanceof URL;
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.removeSpaces=(e,t={trimOnly:!1})=>{if(!r.isNonEmptyString(e))return"";r.isPlainObject(t)||(t={});const{trimOnly:i=!1}=t;return i?e.trim():e.replace(/\s+/g,"")};
@@ -0,0 +1 @@
1
+ var e=()=>"undefined"==typeof window||"undefined"==typeof document;export{e as isServer};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-FJZGG54N.cjs"),r=require("./chunk-JBQMXC5I.cjs"),t=require("./chunk-ZETAZZLD.cjs"),s=require("./chunk-6JFZL7YE.cjs"),i=require("./chunk-T7PU2V7X.cjs"),n=require("./chunk-PZQ6I4JJ.cjs"),a=e=>{s.assertIsArray(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=[];return e.forEach((s,i)=>{for(let n=i+1;n<e.length;n++)if(r.isEqual(s,e[n])){t.some(e=>r.isEqual(e,s))||t.push(s);break}}),t};exports.findDuplicates=a,exports.omitKeys=(e,r)=>{if(!n.isPlainObject(e))return{};s.assertIsArray(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=a(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},exports.omitKeysDeep=(r,c)=>{if(!n.isPlainObject(r))return{};s.assertIsArray(c,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const o=a(c);if(n.isNonEmptyArray(o))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${i.safeStableStringify(o)}\`.`);const u=(e,r)=>{if(!n.isObjectOrArray(e))return e;const[s,...i]=r;if(t.isEmptyArray(i))if(n.isArray(e)){const r=parseInt(s);!n.isNaN(r)&&r in e&&e.splice(r,1)}else delete e[s];else{const r=e[s];n.isObjectOrArray(r)&&(e[s]=u(r,i))}return e},y=e=>{if(n.isArray(e))return e.map(y).filter(e=>!(n.isObjectOrArray(e)&&0===Object.keys(e).length));if(n.isObjectOrArray(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,y(r)]).filter(([,e])=>!(n.isUndefined(e)||n.isObjectOrArray(e)&&0===Object.keys(e).length)))}return e},l=e.safeJsonParse(i.safeStableStringify(r));for(const e of c){const r=e.split(".");u(l,r)}return y(l)};
@@ -0,0 +1 @@
1
+ import{isDate as e,isMap as r}from"./chunk-PET42Z7W.js";import{isObjectOrArray as t,isError as n,isSet as f,isArray as i,isUndefined as u}from"./chunk-CMW2TBOQ.js";var o=e=>e instanceof RegExp;function s(e){return e instanceof ArrayBuffer}function g(a,c,l,y=new WeakMap){if(a===c)return!0;if(a!=a&&c!=c)return!0;if(!t(a)||!t(c))return!1;if(y.get(a)===c)return!0;y.set(a,c);const h=(e,r,t,n,f)=>{if(l){const i=l(e,r,t,n,f,y);if(!u(i))return i}return g(e,r,l,y)};if(e(a)&&e(c))return a.getTime()===c.getTime();if(o(a)&&o(c))return a.source===c.source&&a.flags===c.flags;if(n(a)&&n(c))return a.name===c.name&&a.message===c.message;if(ArrayBuffer.isView(a)&&ArrayBuffer.isView(c)){const e=new Uint8Array(a.buffer,a.byteOffset,a.byteLength),r=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(s(a)&&s(c)){if(a.byteLength!==c.byteLength)return!1;const e=new Uint8Array(a),r=new Uint8Array(c);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(r(a)&&r(c)){if(a.size!==c.size)return!1;for(const[e,r]of a){if(!c.has(e))return!1;if(!g(r,c.get(e),l,y))return!1}return!0}if(f(a)&&f(c)){if(a.size!==c.size)return!1;for(const e of a){let r=!1;for(const t of c)if(g(e,t,l,y)){r=!0;break}if(!r)return!1}return!0}if(i(a)&&i(c)){if(a.length!==c.length)return!1;for(let e=0;e<a.length;e++)if(!h(a[e],c[e],e,a,c))return!1;return!0}if(Object.getPrototypeOf(a)!==Object.getPrototypeOf(c))return!1;const b=Reflect.ownKeys(a),m=Reflect.ownKeys(c);if(b.length!==m.length)return!1;for(const e of b){if(!h(a[e],c[e],e,a,c))return!1}return!0}function a(e,r){return g(e,r,void 0,new WeakMap)}export{g as baseDeepEqual,s as isArrayBuffer,a as isEqual,o as isRegExp};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-V45XJKHW.cjs"),r=require("./chunk-ZETAZZLD.cjs"),i=require("./chunk-UDA26MCU.cjs"),s=require("./chunk-PZQ6I4JJ.cjs");function t(e){if(s.isNil(e))return;if(!s.isArray(e))return[];return e.reduce((e,i)=>{if(!s.isNil(i))if(s.isArray(i)){const s=t(i);s&&!r.isEmptyArray(s)&&e.push(s)}else e.push(i);return e},[])}exports.filterNilArray=t,exports.toStringArrayUnRecursive=function(r,n={}){s.assertIsPlainObject(n,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const u=!s.hasOwnProp(n,"removeInvalidValue")||n.removeInvalidValue;if(s.assertIsBoolean(u,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s.isArray(r)){const n=Array.from(r,r=>s.isString(r)||e.isFinite(r)||s.isBoolean(r)||i.isBigInt(r)?String(r):s.isNull(r)?null:void 0);return u?t(n):n}};
@@ -0,0 +1 @@
1
+ import{isFinite as e}from"./chunk-3IBQ5MOM.js";import{isEmptyArray as r}from"./chunk-6JFCSH7J.js";import{isBigInt as t}from"./chunk-QNKGP5DY.js";import{isNil as o,isArray as n,assertIsPlainObject as u,hasOwnProp as i,assertIsBoolean as m,isString as p,isBoolean as s,isNull as a}from"./chunk-CMW2TBOQ.js";function c(e){if(o(e))return;if(!n(e))return[];return e.reduce((e,t)=>{if(!o(t))if(n(t)){const o=c(t);o&&!r(o)&&e.push(o)}else e.push(t);return e},[])}function f(r,o={}){u(o,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const f=!i(o,"removeInvalidValue")||o.removeInvalidValue;if(m(f,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n(r)){const o=Array.from(r,r=>p(r)||e(r)||s(r)||t(r)?String(r):a(r)?null:void 0);return f?c(o):o}}export{c as filterNilArray,f as toStringArrayUnRecursive};
@@ -0,0 +1 @@
1
+ var a=a=>a instanceof URL;export{a as isURL};
@@ -0,0 +1 @@
1
+ import{safeJsonParse as e}from"./chunk-2CQX5CBG.js";import{isEqual as r}from"./chunk-NBZWMBO6.js";import{isEmptyArray as t}from"./chunk-6JFCSH7J.js";import{assertIsArray as n}from"./chunk-CKTLUNWX.js";import{safeStableStringify as o}from"./chunk-PET42Z7W.js";import{isPlainObject as s,isNonEmptyArray as i,isObjectOrArray as c,isArray as a,isNaN as u,isUndefined as m}from"./chunk-CMW2TBOQ.js";var f=e=>{n(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=[];return e.forEach((n,o)=>{for(let s=o+1;s<e.length;s++)if(r(n,e[s])){t.some(e=>r(e,n))||t.push(n);break}}),t},p=(e,r)=>{if(!s(e))return{};n(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=f(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},l=(r,p)=>{if(!s(r))return{};n(p,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const l=f(p);if(i(l))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${o(l)}\`.`);const y=(e,r)=>{if(!c(e))return e;const[n,...o]=r;if(t(o))if(a(e)){const r=parseInt(n);!u(r)&&r in e&&e.splice(r,1)}else delete e[n];else{const r=e[n];c(r)&&(e[n]=y(r,o))}return e},d=e=>{if(a(e))return e.map(d).filter(e=>!(c(e)&&0===Object.keys(e).length));if(c(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,d(r)]).filter(([,e])=>!(m(e)||c(e)&&0===Object.keys(e).length)))}return e},h=e(o(r));for(const e of p){const r=e.split(".");y(h,r)}return d(h)};export{f as findDuplicates,p as omitKeys,l as omitKeysDeep};
@@ -0,0 +1 @@
1
+ import{isBigInt as e}from"./chunk-QNKGP5DY.js";import{assertIsPlainObject as r,isPlainObject as t,isBoolean as n,isNaN as o,hasOwnProp as s,getPreciseType as i,isUndefined as a,isNumberObject as u,isInfinityNumber as f,isStringObject as p,isBooleanObject as c,isFunction as l,isSymbol as y,isObjectOrArray as d,isSet as m,isArray as b,isNull as v,isNumber as S,isObject as g}from"./chunk-CMW2TBOQ.js";function k(e){return"[object Map]"===Object.prototype.toString.call(e)||e instanceof Map}var h=(e,s={})=>{r(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!(!t(s)||!n(s.skipInvalidDate))&&s.skipInvalidDate,a=e instanceof Date;return i?a:a&&!o(e.getTime())},O=(t,O={})=>{r(O,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const $=!!s(O,"pretty")&&O.pretty,T=!s(O,"sortKeys")||O.sortKeys,A=!!s(O,"sortArray")&&O.sortArray,j=!!s(O,"keepUndefined")&&O.keepUndefined;if(!(n(T)&&n(A)&&n($)&&n(j)))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\`, \`keepUndefined\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${i(T)}\`, 'sortArray': \`${i(A)}\`, 'keepUndefined': \`${i(j)}\`, 'pretty': \`${i($)}\`]".`);if(a(t))return j?"undefined":"null";const K=new WeakSet,w=e=>v(e)||!d(e)&&!l(e),C=r=>{if(u(r)){const e=r.valueOf();return o(e)||f(e)?null:e}if(p(r))return r.valueOf();if(c(r))return r.valueOf();if(!l(r)&&!y(r)){if(e(r))return r.toString();if(o(r)||f(r))return null;if(a(r))return j?void 0:null;if(d(r)){if(K.has(r))return"[Circular]";if(K.add(r),h(r))return r.toISOString();if(k(r))return{map:Array.from(r.entries()).map(([e,r])=>[e,C(r)])};if(m(r))return{set:Array.from(r.values()).map(C)};if(b(r)){const e=r.map(C);if(A){const r=[],t=[];for(const n of e)w(n)?r.push(n):t.push(n);return r.sort((e,r)=>S(e)&&S(r)?e-r:String(e).localeCompare(String(r))),[...r,...t]}return e}const e=Object.keys(r);T&&e.sort((e,r)=>{const t=Number(e),n=Number(r);return o(t)||o(n)?e.localeCompare(r):t-n});const t={};if(g(r))for(const n of e){const e=C(r[n]);a(e)||(t[n]=e)}return t}return r}};try{return JSON.stringify(C(t),null,$?2:0)}catch(e){return console.warn("Error in safeStableStringify:",e),"{}"}};export{h as isDate,k as isMap,O as safeStableStringify};
@@ -0,0 +1 @@
1
+ "use strict";var e=e=>"boolean"==typeof e,r=e=>"function"==typeof e;function t(e){return null==e}function o(e){return Array.isArray(e)}function a(e){return"object"==typeof e&&!t(e)&&!o(e)}function n(e){if(!a(e))return!1;const r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}var s=e=>"string"==typeof e;function i(e){return a(e)&&"[object Number]"===Object.prototype.toString.call(e)}function c(e){return"number"==typeof e?Number.isNaN(e):i(e)&&Number.isNaN(e.valueOf())}var u=e=>null===e,l=(r,t={})=>{if(e(r))return;const o=M({value:r,options:t,requiredValidType:"boolean"});throw new TypeError(o)},p=(r,t={})=>{W(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!(!n(t)||!e(t.includeNaN))&&t.includeNaN;l(o,{message:({currentType:e,validType:r})=>`Parameter \`includeNaN\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const a="number"==typeof r;return o?a:a&&!Number.isNaN(r)},f=e=>"symbol"==typeof e,m=e=>void 0===e;function b(e){return o(e)||a(e)}function y(e,t,o={}){if(!s(e)&&!b(e)&&!r(e))return!1;W(o,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const a=void 0===o.discardUndefined||o.discardUndefined,n=void 0!==o.discardNull&&o.discardNull;l(a,{message:({currentType:e,validType:r})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),l(n,{message:({currentType:e,validType:r})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=[];if(s(t)&&t.trim().length>0||p(t,{includeNaN:!0})){(p(t,{includeNaN:!0})?String(t):t).split(".").forEach(e=>{const r=e.match(/^\[(\d+)\]$/),t=e.match(/^Symbol\((.+)\)$/);r?i.push(Number(r[1])):t?i.push(Symbol.for(t[1])):c(Number(e))?i.push(e):i.push(Number(e))})}else{if(!f(t))return!1;i.push(t)}let y=s(e)&&e.trim().length>0?Object(e):e;for(const e of i)if(s(e)&&e.trim().length>0||p(e,{includeNaN:!0})){if(u(y)||!Object.prototype.hasOwnProperty.call(y,e))return!1;y=y[e]}else{if(!f(e))return!1;{if(u(y)||"object"!=typeof y&&!r(y))return!1;const t=Object.getOwnPropertySymbols(y).find(r=>r===e||r.description===e.description);if(!t)return!1;y=y[t]}}return(!a||!m(y))&&(!n||!u(y))}var d=(e,r={})=>{if(!s(e))return!1;W(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!y(r,"trim")||r.trim;l(t,{message:({currentType:e,validType:r})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});return(t?e.trim():e).length>0},g=e=>"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error,j=e=>"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e);function S(e){return a(e)&&"[object String]"===Object.prototype.toString.call(e)}function h(e){return a(e)&&"[object Boolean]"===Object.prototype.toString.call(e)}function v(e){if("number"==typeof e||i(e)){const r=Number(e);return r===1/0||r===-1/0}return!1}var N=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),x={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"};function C(e){return Array.isArray(e)&&e.length>0}function A(e){return"[object Set]"===Object.prototype.toString.call(e)||e instanceof Set}var O=e=>{let r="";return o(e)?r=e.map(e=>d(e)?e.trim():"").filter(e=>e.length).join("-"):d(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)},T=e=>{const r=new Set([]),t=e=>e.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(d(e)){const o=t(e);o&&r.add(o)}return C(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),A(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),r},w=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-").replace(/^-+|-+$/g,"")},P=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(".")},E=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map((e,r)=>o.has(e)?e:0===r?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},I=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-")},R=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("_")},L=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(" ")},B=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},F=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},U=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),$=Object.entries(x).reduce((e,[r,t])=>(e[U(r)]=t,e),{});var D=(e,r)=>"toPascalCaseSpace"===r?F(e,N):"slugify"===r?w(e,N):"toCamelCase"===r?E(e,N):"toDotCase"===r?P(e,N):"toKebabCase"===r?I(e,N):"toPascalCase"===r?B(e,N):"toSnakeCase"===r?R(e,N):L(e,N),_=(e,t={formatCase:"toLowerCase"})=>{n(t)||(t={});const o=t.formatCase;if(u(e))return D($[U("null")]??"Null",o);if(c(e))return"NaN";if(v(e))return String(e);if(i(e))return D("Number Constructor",o);if(S(e))return D("String Constructor",o);if(h(e))return D("Boolean Constructor",o);const s=typeof e;if(!b(e)&&!r(e))return D($[U(s)]??s,o);if(j(e))return D($[U("buffer")]??"Buffer",o);if(function(e){if("object"!=typeof e||null===e)return!1;const 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!1;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return!0}}(e))return D($[U("proxy")]??"Proxy",o);if(a(e)&&r(e?.next)&&r(e?.throw))return D($[U("generator")]??"Generator",o);if(g(e)){const r=e.constructor?.name??"Error";return D($[U(r)]??$[U(r.replace(/\s+/g,""))]??r,o)}if(u(Object.getPrototypeOf(e)))return D($[U("object")]??"Object",o);const l=Object.prototype.toString.call(e).slice(8,-1)||"Object",p=$[U(l)];if(p)return D(p,o);const f=e?.constructor?.name;return D(f&&"Object"!==f?$[U(f)]??f:l,o)};function M(e){const{requiredValidType:t,value:o,options:a}=e||{},{message:s,formatCase:i}=n(a)?a:{},c=I(t),u=_(o,{formatCase:i}),l={currentType:u,validType:c},p=`Parameter input (\`value\`) must be of type \`${c}\`, but received: \`${u}\`.`;return r(s)?d(s(l))?s(l).trim():p:d(s)?s.trim():p}function W(e,r={}){if(n(e))return;const t=M({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}Object.values({...x,plainobject:"Plain Object"}),exports.FIXES_RAW=x,exports.__internalAcronyms__=N,exports.assertIsBoolean=l,exports.assertIsPlainObject=W,exports.getPreciseType=_,exports.hasOwnProp=y,exports.isArray=o,exports.isBoolean=e,exports.isBooleanObject=h,exports.isBuffer=j,exports.isError=g,exports.isFunction=r,exports.isInfinityNumber=v,exports.isNaN=c,exports.isNil=t,exports.isNonEmptyArray=C,exports.isNonEmptyString=d,exports.isNull=u,exports.isNumber=p,exports.isNumberObject=i,exports.isObject=a,exports.isObjectOrArray=b,exports.isPlainObject=n,exports.isSet=A,exports.isString=s,exports.isStringObject=S,exports.isSymbol=f,exports.isUndefined=m,exports.resolveErrorMessageAssertions=M,exports.slugify=w,exports.toCamelCase=E,exports.toDotCase=P,exports.toKebabCase=I,exports.toLowerCase=L,exports.toPascalCase=B,exports.toPascalCaseSpace=F,exports.toSnakeCase=R;
@@ -0,0 +1 @@
1
+ import{isInteger as r}from"./chunk-WVSPXFTY.js";import{safeStableStringify as e}from"./chunk-PET42Z7W.js";import{getPreciseType as t,isNull as o}from"./chunk-CMW2TBOQ.js";var n=class extends Promise{_value;_error;_finish=[];constructor(r){let e,t;super((r,o)=>{e=r,t=o}),r(r=>{this._value=r,e(r),this._finish.forEach(e=>e(r,void 0))},r=>{this._error=r,t(r),this._finish.forEach(e=>e(void 0,r))}),Object.setPrototypeOf(this,new.target.prototype)}then(r,e){return super.then(r,e)}catch(r){return super.catch(r)}finish(r){return void 0!==this._value||void 0!==this._error?r(this._value,this._error):this._finish.push(r),this}},i=class extends Error{constructor(r="The operation was aborted",e="AbortError"){super(r),this.name=e}},s=(n=1e3,s)=>{if(!r(n)||n<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${t(n)}\`, with value: \`${e(n)}\`.`);if(o(s)||s&&!(s instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((r,e)=>{const t=setTimeout(()=>{o(),r()},n),o=()=>{clearTimeout(t),s&&s.removeEventListener("abort",a)},a=()=>{o(),e(new i("Function `delay` from `@rzl-zone/utils-js` was aborted.","AbortError"))};s&&(s.aborted?a():s.addEventListener("abort",a,{once:!0}))})};export{n as CustomPromise,s as delay};
@@ -0,0 +1 @@
1
+ var t=t=>"bigint"==typeof t;export{t as isBigInt};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as s}from"./chunk-CMW2TBOQ.js";var a=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),t=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),r=r=>{if(!s(r))return;let p=r.split("/").pop();if(""===p)return"";if(p){for(const s of t){const a=`.${s}`;if(p.toLowerCase().endsWith(a))return p.slice(0,-a.length)}for(;;){const s=p.lastIndexOf(".");if(-1===s)break;const t=p.slice(s+1).toLowerCase();if(!a.has(t))break;p=p.slice(0,s)}return p}};export{r as extractFileName};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-DVMHRLKP.cjs"),r=require("./chunk-T7PU2V7X.cjs"),t=require("./chunk-PZQ6I4JJ.cjs"),s=class extends Error{constructor(e="The operation was aborted",r="AbortError"){super(e),this.name=r}};exports.CustomPromise=class extends Promise{_value;_error;_finish=[];constructor(e){let r,t;super((e,s)=>{r=e,t=s}),e(e=>{this._value=e,r(e),this._finish.forEach(r=>r(e,void 0))},e=>{this._error=e,t(e),this._finish.forEach(r=>r(void 0,e))}),Object.setPrototypeOf(this,new.target.prototype)}then(e,r){return super.then(e,r)}catch(e){return super.catch(e)}finish(e){return void 0!==this._value||void 0!==this._error?e(this._value,this._error):this._finish.push(e),this}},exports.delay=(i=1e3,o)=>{if(!e.isInteger(i)||i<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${t.getPreciseType(i)}\`, with value: \`${r.safeStableStringify(i)}\`.`);if(t.isNull(o)||o&&!(o instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((e,r)=>{const t=setTimeout(()=>{n(),e()},i),n=()=>{clearTimeout(t),o&&o.removeEventListener("abort",a)},a=()=>{n(),r(new s("Function `delay` from `@rzl-zone/utils-js` was aborted.","AbortError"))};o&&(o.aborted?a():o.addEventListener("abort",a,{once:!0}))})};
@@ -0,0 +1 @@
1
+ import{isURL as r}from"./chunk-ONZFBJVW.js";import{normalizeString as e}from"./chunk-IZPBKKPO.js";import{toStringArrayUnRecursive as t}from"./chunk-OI5XKNZO.js";import{isEmptyValue as n}from"./chunk-GQR4R5WY.js";import{isInteger as o}from"./chunk-WVSPXFTY.js";import{normalizePathname as a}from"./chunk-GGEADHZO.js";import{isEmptyString as i}from"./chunk-W2WNBUDE.js";import{assertIsArray as s}from"./chunk-CKTLUNWX.js";import{safeStableStringify as u}from"./chunk-PET42Z7W.js";import{isString as m,getPreciseType as c,isUndefined as p,isNonEmptyString as f,isFunction as l,isNumber as h,isError as y,isArray as b,isNil as d,isNull as w,isPlainObject as v,isBoolean as g,isNonEmptyArray as $}from"./chunk-CMW2TBOQ.js";var T=(o,a,b)=>{if(m(o)){if(i(o))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");o=e(o)}else if(!r(o))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${c(o)}\`, with current value: \`${u(o)}\`.`);if(!p(b)&&(s(b,{message:({currentType:r,validType:e})=>`Third parameter (\`removeParams\`) must be of type \`${e} of strings\`, but received: \`${r}\`.`}),!b.every(r=>f(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!p(a)&&!l(a[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(a)}\`, with value: \`${u(a)}\`.`);const r=new URL(o);if(!p(a)){const e=Object.fromEntries(a);if(!n(e)){const n=new URLSearchParams(r.search);for(const[r,t]of Object.entries(e)){if(!f(t)&&!h(t,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(a)}\`, with value: \`${u(a)}\`.`);n.set(r,String(t))}b?.length&&t(b).map(r=>{n.delete(r)}),r.search=n.toString()}}return b?.forEach(e=>r.searchParams.delete(e)),r}catch(r){if(y(r))throw r;throw new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}},E=r=>{if(!f(r))return null;let e;try{e=decodeURIComponent(r)}catch{return null}const t=e.match(/https?:\/\/.*?(?=https?:\/\/|\s|$)/g);if(!t)return null;const n=t.map(r=>r.replace(/[.,;:!?)]*$/,"")).filter(r=>{try{const e=new URL(r);return"http:"===e.protocol||"https:"===e.protocol}catch{return!1}});return n.length?n:null},P=(r,e="/")=>{if(!f(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${c(e)}\`, with value: \`${u(e)}\`.`);if(b(r)){if(!r.every(r=>m(r)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${c(r)}\`, with value: \`${u(r)}\`.`);for(const e of r){const r=a(e);if("/"!==r)return r}return a(e)}if(m(r)){const t=a(r);return"/"!==t?t:a(e)}if(!d(r))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${c(r)}\`.`);return a(e)},j=(r,e=null,t={})=>{const n=[];m(r)||b(r)||n.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${c(r)}\`.`),m(e)||b(e)||w(e)||n.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${c(e)}\`.`),v(t)||n.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${c(t)}\`.`);const{levels:i=1,removeDuplicates:s=!0}=t;if((!o(i)||o(i)&&i<0)&&n.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${c(i)}\`, with value: \`${u(i)}\`.`),g(s)||n.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${c(s)}\`.`),$(n))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:\n- ${n.join("\n- ")}`);function p(r){return`/${a(r).split("/").filter(Boolean).slice(0,i).join("/")}`}function l(r){if(e){if(r=a(r),b(e)){for(const t of e)if(r.startsWith(a(t)))return p(r)}else if(f(e)&&r.startsWith(a(e)))return p(r);return null}return p(r)}if(b(r)){const e=r.map(l).filter(r=>!w(r)),t=s?[...new Set(e)]:e;return 1===t.length?t[0]:t}return l(r)};export{T as constructURL,E as extractURLs,P as getFirstPrefixPathname,j as getPrefixPathname};
@@ -0,0 +1 @@
1
+ import{isString as r,resolveErrorMessageAssertions as e}from"./chunk-CMW2TBOQ.js";var o=(o,t={})=>{if(r(o))return;const i=e({value:o,options:t,requiredValidType:"string"});throw new TypeError(i)};export{o as assertIsString};
@@ -0,0 +1 @@
1
+ import{isServer as e}from"./chunk-L5RDAVVH.js";import{assertIsString as t}from"./chunk-SBKGWRS5.js";import{isPlainObject as o,hasOwnProp as s,isNonEmptyString as r,isNumber as i}from"./chunk-CMW2TBOQ.js";var n=(o="on_processing")=>{if(e())return;t(o,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:s}=document;s&&!s.classList.contains(o)&&s.classList.add(o)},m=(o="on_processing")=>{if(e())return;t(o,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:s}=document;s&&s.classList.contains(o)&&s.classList.remove(o)},c=()=>{if(e())return;const t=document.activeElement;t instanceof HTMLElement&&t.blur()},a=t=>{if(e())return;o(t)||(t={});const n=s(t,"behavior")&&r(t.behavior)&&["auto","instant","smooth"].includes(t.behavior)?t.behavior:"smooth";let m=s(t,"timeout")&&i(t.timeout)&&t.timeout>=1?t.timeout:1;m=m>2147483647?2147483647:m,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:n}),m)};export{n as disableUserInteraction,m as enableUserInteraction,c as removeElementFocus,a as scrollToTop};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r,isPlainObject as t}from"./chunk-CMW2TBOQ.js";var i=(i,m={withTrim:!0,trimOnly:!1})=>{if(!r(i))return"";t(m)||(m={});const{trimOnly:n=!1,withTrim:e=!0}=m;return n?i.trim():(e&&(i=i.trim()),i.replace(/\s+/g," "))};export{i as normalizeSpaces};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-UDA26MCU.cjs"),r=require("./chunk-PZQ6I4JJ.cjs");function t(e){return"[object Map]"===Object.prototype.toString.call(e)||e instanceof Map}var n=(e,t={})=>{r.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!(!r.isPlainObject(t)||!r.isBoolean(t.skipInvalidDate))&&t.skipInvalidDate,i=e instanceof Date;return n?i:i&&!r.isNaN(e.getTime())};exports.isDate=n,exports.isMap=t,exports.safeStableStringify=(i,s={})=>{r.assertIsPlainObject(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!!r.hasOwnProp(s,"pretty")&&s.pretty,a=!r.hasOwnProp(s,"sortKeys")||s.sortKeys,u=!!r.hasOwnProp(s,"sortArray")&&s.sortArray,c=!!r.hasOwnProp(s,"keepUndefined")&&s.keepUndefined;if(!(r.isBoolean(a)&&r.isBoolean(u)&&r.isBoolean(o)&&r.isBoolean(c)))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\`, \`keepUndefined\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${r.getPreciseType(a)}\`, 'sortArray': \`${r.getPreciseType(u)}\`, 'keepUndefined': \`${r.getPreciseType(c)}\`, 'pretty': \`${r.getPreciseType(o)}\`]".`);if(r.isUndefined(i))return c?"undefined":"null";const p=new WeakSet,f=e=>r.isNull(e)||!r.isObjectOrArray(e)&&!r.isFunction(e),l=i=>{if(r.isNumberObject(i)){const e=i.valueOf();return r.isNaN(e)||r.isInfinityNumber(e)?null:e}if(r.isStringObject(i))return i.valueOf();if(r.isBooleanObject(i))return i.valueOf();if(!r.isFunction(i)&&!r.isSymbol(i)){if(e.isBigInt(i))return i.toString();if(r.isNaN(i)||r.isInfinityNumber(i))return null;if(r.isUndefined(i))return c?void 0:null;if(r.isObjectOrArray(i)){if(p.has(i))return"[Circular]";if(p.add(i),n(i))return i.toISOString();if(t(i))return{map:Array.from(i.entries()).map(([e,r])=>[e,l(r)])};if(r.isSet(i))return{set:Array.from(i.values()).map(l)};if(r.isArray(i)){const e=i.map(l);if(u){const t=[],n=[];for(const r of e)f(r)?t.push(r):n.push(r);return t.sort((e,t)=>r.isNumber(e)&&r.isNumber(t)?e-t:String(e).localeCompare(String(t))),[...t,...n]}return e}const e=Object.keys(i);a&&e.sort((e,t)=>{const n=Number(e),i=Number(t);return r.isNaN(n)||r.isNaN(i)?e.localeCompare(t):n-i});const s={};if(r.isObject(i))for(const t of e){const e=l(i[t]);r.isUndefined(e)||(s[t]=e)}return s}return i}};try{return JSON.stringify(l(i),null,o?2:0)}catch(e){return console.warn("Error in safeStableStringify:",e),"{}"}};
@@ -0,0 +1 @@
1
+ "use strict";exports.isBigInt=t=>"bigint"==typeof t;
@@ -0,0 +1 @@
1
+ "use strict";var i=require("./chunk-PZQ6I4JJ.cjs");exports.isFinite=function(e){return i.isNumber(e)&&Number.isFinite(e)};
@@ -0,0 +1 @@
1
+ "use strict";exports.isServer=()=>"undefined"==typeof window||"undefined"==typeof document;
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r}from"./chunk-CMW2TBOQ.js";var o=(o,m={})=>!r(o,m);export{o as isEmptyString};
@@ -0,0 +1 @@
1
+ function e(e){return"number"==typeof e&&Number.isInteger(e)}export{e as isInteger};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-2IOOEY45.cjs"),t=require("./chunk-5KJFVIQT.cjs"),r=require("./chunk-V45XJKHW.cjs"),n=require("./chunk-DVMHRLKP.cjs"),i=require("./chunk-E55EQK2U.cjs"),s=require("./chunk-HYRQMTRH.cjs"),a=require("./chunk-T7PU2V7X.cjs"),o=require("./chunk-PZQ6I4JJ.cjs"),p=require("libphonenumber-js/max"),u=require("date-fns/locale"),c=require("date-fns");var l=(e,t,r,n)=>{if(e.length<=t)return"*".repeat(e.length);const i=e.split(""),s=Math.max(t,Math.ceil(e.length*r)),a=new Set;let p=0;for(;a.size<s;){const t=o.isUndefined(n)?Math.floor(Math.random()*e.length):(n+e.length+31*p)%e.length;a.add(t),p++}for(const e of a)i[e]="*";return i.join("")};exports.censorEmail=(e,t={})=>{if(!o.isNonEmptyString(e))return"";o.assertIsPlainObject(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=o.hasOwnProp(t,"mode")?t.mode:"fixed";if("random"!==r&&"fixed"!==r)throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${o.getPreciseType(r)}\`, with value: \`${a.safeStableStringify(r)}\`.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return"";const[n,i]=e.split("@"),s=i.split(".");if(s.length<2)return"";const[p,...u]=s,c=u.join("."),m=((e,t)=>"fixed"===e?(()=>{let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return Math.abs(e)})():void 0)(r,e),f=n.length<4?1:2,d=p.length<4?1:2;return`${l(n,f,.6,m)}@${l(p,d,.5,m)}.${c.length<=2?c:l(c,1,.4,m)}`},exports.chunkString=function(t,r,i={}){if(o.isNil(t)||r<=0)return t;if(s.assertIsString(t,{message:({currentType:e,validType:t})=>`First parameter (\`subject\`) must be of type \`${t}\`, but received: \`${e}\`.`}),!n.isInteger(r))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${o.getPreciseType(r)}\`, with value: \`${a.safeStableStringify(r)}\`.`);o.assertIsPlainObject(i,{message:({currentType:e,validType:t})=>`Third parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const p=o.hasOwnProp(i,"separator")?i.separator:" ",u=!!o.hasOwnProp(i,"reCountAfterSpace")&&i.reCountAfterSpace;if(s.assertIsString(p,{message:({currentType:e,validType:t})=>`Parameter \`separator\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),o.assertIsBoolean(u,{message:({currentType:e,validType:t})=>`Parameter \`reCountAfterSpace\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),t=e.normalizeSpaces(t),!u){let e="",n=0;for(let i=0;i<t.length;i++){n===r&&(e+=p,n=0),e+=t[i],n++}return e}const c=t.split(" "),l=[];let m=[],f=0;for(let e=0;e<c.length;e++){const t=c[e];let n="",i=0;for(let e=0;e<t.length;e++)n+=t[e],i++,i===r&&e<t.length-1&&(n+=p,i=0);m.push(n),f++,f!==r&&e!==c.length-1||(l.push(m.join(p)),m=[],f=0)}return l.join(" ")},exports.formatCurrency=(e,i={})=>{if(!o.isString(e)&&!r.isFinite(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${o.getPreciseType(e)}\`, with value: \`${a.safeStableStringify(e)}\`.`);o.assertIsPlainObject(i,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const p=!!o.hasOwnProp(i,"decimal")&&i.decimal,u=o.hasOwnProp(i,"totalDecimal")?i.totalDecimal:2,c=!o.hasOwnProp(i,"endDecimal")||i.endDecimal,l=!!o.hasOwnProp(i,"indianFormat")&&i.indianFormat,m=o.hasOwnProp(i,"suffixCurrency")?i.suffixCurrency:"",f=o.hasOwnProp(i,"suffixDecimal")?i.suffixDecimal:"",d=o.hasOwnProp(i,"roundedDecimal")?i.roundedDecimal:"round",y=o.hasOwnProp(i,"negativeFormat")?i.negativeFormat:"dash";let g=o.hasOwnProp(i,"separatorDecimals")?i.separatorDecimals:",",h=o.hasOwnProp(i,"separator")?i.separator:".";if(!(o.isString(h)&&o.isString(g)&&o.isString(m)&&o.isString(f)))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${o.getPreciseType(h)}\`, 'separatorDecimals': \`${o.getPreciseType(g)}\`, 'suffixCurrency': \`${o.getPreciseType(m)}\`, 'suffixDecimal': \`${o.getPreciseType(f)}\`].`);if(!o.isBoolean(p)||!o.isBoolean(c)||!o.isBoolean(l))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${o.getPreciseType(p)}\`, 'endDecimal': \`${o.getPreciseType(c)}\`, 'indianFormat': \`${o.getPreciseType(l)}\`].`);if(!n.isInteger(u))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${o.getPreciseType(u)}\`, with value: \`${a.safeStableStringify(length)}\`.`);if(!1!==d&&"round"!==d&&"ceil"!==d&&"floor"!==d)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: \`${o.getPreciseType(d)}\`, with value: \`${a.safeStableStringify(d)}\`.`);if("abs"!==y&&"brackets"!==y&&"dash"!==y&&!o.isPlainObject(y))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: \`${o.getPreciseType(y)}\`, with value: \`${a.safeStableStringify(y)}\`.`);const b=o.isString(e)?t.parseCurrencyString(e):e;if(o.isNaN(b))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let T="",P="",w=Math.abs(b);const S=Math.pow(10,u);if(d){const e=w*S;switch(d){case"round":w=Math.round(e)/S;break;case"ceil":w=Math.ceil(e)/S;break;case"floor":w=Math.floor(e)/S}}if(d)[T,P]=w.toFixed(u).split("."),P=P??"".padEnd(u,"0");else{const e=String(w).split(".");T=e[0],P=(e[1]||"").slice(0,u).padEnd(u,"0")}let $;if(l?(h=",",g=".",$=(m.trim().length?m:"")+((e,t)=>{const r=e.slice(-3),n=e.slice(0,-3);return n?n.replace(/\B(?=(\d{2})+(?!\d))/g,t)+t+r:r})(T,h)):$=(m.trim().length?m:"")+T.replace(/\B(?=(\d{3})+(?!\d))/g,h),p&&!o.isUndefined(P)&&u>0){let e=g+P;c&&(e+=f),$+=e}if(b<0)if("dash"===y)$="-"+$;else if("brackets"===y)$="("+$+")";else if("abs"===y);else if(o.isPlainObject(y))if(o.hasOwnProp(y,"custom")){const e=y.custom;if(!o.isFunction(e))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${o.getPreciseType(e)}\`.`);const t=e($);s.assertIsString(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${t}\` type value, but received: \`${e}\`.`}),$=t}else{const e=y.style||"dash",t=!o.isUndefined(y.space)&&y.space;if(o.assertIsBoolean(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${t} or undefined\`, but received: \`${e}\`.`}),"abs"!==e&&"brackets"!==e&&"dash"!==e)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: \`${o.getPreciseType(e)}\`, with value: \`${a.safeStableStringify(e)}\`.`);switch(e){case"dash":$="-"+(t?" ":"")+$;break;case"brackets":$=t?`( ${$} )`:`(${$})`}}return $},exports.formatDateFns=(e,t={})=>{if(o.isNil(e)||!a.isDate(e)&&!o.isNonEmptyString(e))return null;o.isPlainObject(t)||(t={});const{inputFormat:r,locale:n="en",inputLocale:i="en",...s}=t,p=o.hasOwnProp(t,"format")&&o.isNonEmptyString(t.format)?t.format:"dd MMM yyyy - HH:mm:ss";let l;try{if(o.isNonEmptyString(e)&&r&&i){const t=o.isNonEmptyString(i)?"id"===i?u.id:u.enUS:i;l=c.parse(e,r,new Date,{locale:t})}else l=new Date(e);if(o.isNaN(l.getTime()))return null;const t=o.isNonEmptyString(n)?"id"===n?u.id:u.enUS:n;return c.format(l,p,{...s,locale:t})}catch{return null}},exports.formatDateIntl=(e,t)=>{if(o.isNil(e)||!a.isDate(e)&&!o.isNonEmptyString(e))return null;const r=new Date(e);if(o.isNaN(r.getTime()))return null;o.isPlainObject(t)||(t={});const{locale:n="en-US",...i}=t;try{return new Intl.DateTimeFormat(o.isNonEmptyString(n)?n.trim():"en-US",i).format(r)}catch{return null}},exports.formatDateTime=(e,t)=>{if(o.isNil(t)&&(t="YYYY-MM-DD hh:mm:ss"),!o.isString(t))return null;if(o.isNil(e)||!a.isDate(e)&&!o.isNonEmptyString(e))return null;try{const r=new Date(e);if(o.isNaN(r.getTime()))return null;const n=e=>e.toString().padStart(2,"0"),i={YYYY:r.getFullYear().toString(),MM:n(r.getMonth()+1),DD:n(r.getDate()),hh:n(r.getHours()),mm:n(r.getMinutes()),ss:n(r.getSeconds())},s=Object.entries(i).reduce((e,[t,r])=>e.split(t).join(r),t);return s.includes("NaN")?null:s}catch{return null}},exports.formatNumber=(e,t=",")=>{if(!o.isString(e)&&!r.isFinite(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${o.getPreciseType(e)}\`.`);if(!o.isString(t))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${o.getPreciseType(t)}\`.`);const n="."===(t=o.isString(t)?t:",")?",":".",i=e.toString().trim(),s=i.lastIndexOf("."),a=i.lastIndexOf(",");let p="";s>a?p=".":a>s&&(p=",");let u=i,c="";if(p){const e=i.split(p);u=e.slice(0,-1).join(p),c=e.slice(-1)[0]}u=u.replace(/[^\d]/g,"");const l=u.replace(/\B(?=(\d{3})+(?!\d))/g,t);return c?`${l}${n}${c}`:l},exports.formatPhoneNumber=function(e,t={}){if(o.isNil(e))return"";if(!o.isString(e)&&!o.isNumber(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${o.getPreciseType(e)}\`.`);o.assertIsPlainObject(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=!!o.hasOwnProp(t,"takeNumberOnly")&&t.takeNumberOnly,n=!!o.hasOwnProp(t,"checkValidOnly")&&t.checkValidOnly,i=o.hasOwnProp(t,"defaultCountry")?t.defaultCountry:void 0,s=o.hasOwnProp(t,"separator")?t.separator:" ",u=!o.hasOwnProp(t,"prependPlusCountryCode")||t.prependPlusCountryCode,c=o.hasOwnProp(t,"outputFormat")?t.outputFormat:"INTERNATIONAL",l=o.hasOwnProp(t,"openingNumberCountry")?t.openingNumberCountry:"",m=o.hasOwnProp(t,"closingNumberCountry")?t.closingNumberCountry:"";if(!o.isBoolean(r)||!o.isBoolean(n)||!o.isBoolean(u))throw new TypeError(`Parameter \`takeNumberOnly\`, \`checkValidOnly\` and \`prependPlusCountryCode\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${o.getPreciseType(r)}\`, 'checkValidOnly': \`${o.getPreciseType(n)}\`, 'prependPlusCountryCode': \`${o.getPreciseType(u)}\`].`);if(!o.isUndefined(i)&&!p.isSupportedCountry(i))throw new TypeError(`Parameter \`defaultCountry\` property of the \`options\` (second parameter) must be of type \`string\` as \`CountryCode\` (ISO-3166-1 alpha-2) or unset as \`undefined\` value, but received: \`${o.getPreciseType(i)}\`, with value: \`${a.safeStableStringify(i,{keepUndefined:!0})}\`.\n\nSee: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements, for all ISO 3166-1 alpha-2 code.`);if(!["INTERNATIONAL","NATIONAL","RFC3966","E.164"].includes(c))throw new TypeError(`Parameter \`outputFormat\` property of the \`options\` (second parameter) must be of type \`string\` as \`OutputFormat\` ("NATIONAL" | "INTERNATIONAL" | "E.164" | "RFC3966") or unset as \`undefined\` (default value to: \`INTERNATIONAL\`) value, but received: \`${o.getPreciseType(c)}\`, with value: ${a.safeStableStringify(c,{keepUndefined:!0})}.`);if(!o.isString(s)||!o.isString(l)||!o.isString(m))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': \`${o.getPreciseType(s)}\`,'openingNumberCountry': \`${o.getPreciseType(l)}\`, 'closingNumberCountry': \`${o.getPreciseType(m)}\`].`);o.isString(e)||(e=String(e));const f=((e,t)=>{let r;try{return r=new p.AsYouType(t),r.input(e),r}catch{return void r?.reset()}})(e,i),d=(y=f,!!y?.isValid()&&!!y.getNumber());var y;if(n)return d;if(!d)return"";if(r)return f.getNumber().formatNational().replace(/\D/g,"");const g=f.getNumber().format(c);if("INTERNATIONAL"===c){const[e,...t]=g.split(" "),r=u?e:e.replace(/^\++/,""),n=t.join(s);return o.isNonEmptyString(l)&&o.isNonEmptyString(m)?`${l}${r}${m} ${n}`:`${r} ${n}`}if("NATIONAL"===c){return`${g.split(" ").join(s)}`}return g},exports.getGMTOffset=e=>{try{if(o.isNil(e)||o.isString(e)&&i.isEmptyString(e))e=new Date;else if(!a.isDate(e)&&!o.isNonEmptyString(e))return"0";const t=new Date(e);if(o.isNaN(t.getTime()))return"0";const r=e=>e.toString().padStart(2,"0");let n=t.getTimezoneOffset();const s=n<0?"+":"-";return n=Math.abs(n),`${s}${r(Math.floor(n/60))}${r(n%60)}`}catch{return"0"}},exports.truncateString=(e,t={})=>{if(!o.isNonEmptyString(e))return"";o.assertIsPlainObject(t,{message:({currentType:e,validType:t})=>`Seconds parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=!o.hasOwnProp(t,"trim")||t.trim,p=o.hasOwnProp(t,"length")?t.length:10;let u=o.hasOwnProp(t,"ending")?t.ending:"...";if(!n.isInteger(p))throw new TypeError(`Parameter \`length\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${o.getPreciseType(p)}\`, with value: \`${a.safeStableStringify(p)}\`.`);if(p<1)return"";s.assertIsString(u,{message:({currentType:e,validType:t})=>`Parameter \`ending\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),o.assertIsBoolean(r,{message:({currentType:e,validType:t})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),u=i.isEmptyString(u)?"...":u.trim();const c=r?e.trim():e;if(c.length<=p)return c;const l=c.slice(0,p);return(r?l:l.trimEnd())+u};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r,isPlainObject as t}from"./chunk-CMW2TBOQ.js";var n=(n,e={trimOnly:!1})=>{if(!r(n))return"";t(e)||(e={});const{trimOnly:i=!1}=e;return i?n.trim():n.replace(/\s+/g,"")};export{n as removeSpaces};
@@ -0,0 +1 @@
1
+ import{normalizeSpaces as e}from"./chunk-T2T7K3KR.js";import{parseCurrencyString as t}from"./chunk-IRFL4MAX.js";import{isFinite as r}from"./chunk-3IBQ5MOM.js";import{isInteger as o}from"./chunk-WVSPXFTY.js";import{isEmptyString as n}from"./chunk-W2WNBUDE.js";import{assertIsString as a}from"./chunk-SBKGWRS5.js";import{safeStableStringify as i,isDate as s}from"./chunk-PET42Z7W.js";import{isString as u,getPreciseType as p,assertIsPlainObject as l,hasOwnProp as m,isBoolean as c,isPlainObject as d,isNaN as f,isUndefined as y,isFunction as h,assertIsBoolean as b,isNil as g,isNumber as $,isNonEmptyString as v}from"./chunk-CMW2TBOQ.js";import{isSupportedCountry as T,AsYouType as w}from"libphonenumber-js/max";import{id as N,enUS as C}from"date-fns/locale";import{parse as D,format as E}from"date-fns";var k=(e,n={})=>{if(!u(e)&&!r(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${p(e)}\`, with value: \`${i(e)}\`.`);l(n,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const s=!!m(n,"decimal")&&n.decimal,g=m(n,"totalDecimal")?n.totalDecimal:2,$=!m(n,"endDecimal")||n.endDecimal,v=!!m(n,"indianFormat")&&n.indianFormat,T=m(n,"suffixCurrency")?n.suffixCurrency:"",w=m(n,"suffixDecimal")?n.suffixDecimal:"",N=m(n,"roundedDecimal")?n.roundedDecimal:"round",C=m(n,"negativeFormat")?n.negativeFormat:"dash";let D=m(n,"separatorDecimals")?n.separatorDecimals:",",E=m(n,"separator")?n.separator:".";if(!(u(E)&&u(D)&&u(T)&&u(w)))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${p(E)}\`, 'separatorDecimals': \`${p(D)}\`, 'suffixCurrency': \`${p(T)}\`, 'suffixDecimal': \`${p(w)}\`].`);if(!c(s)||!c($)||!c(v))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${p(s)}\`, 'endDecimal': \`${p($)}\`, 'indianFormat': \`${p(v)}\`].`);if(!o(g))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${p(g)}\`, with value: \`${i(length)}\`.`);if(!1!==N&&"round"!==N&&"ceil"!==N&&"floor"!==N)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: \`${p(N)}\`, with value: \`${i(N)}\`.`);if("abs"!==C&&"brackets"!==C&&"dash"!==C&&!d(C))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: \`${p(C)}\`, with value: \`${i(C)}\`.`);const k=u(e)?t(e):e;if(f(k))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let F="",S="",O=Math.abs(k);const M=Math.pow(10,g);if(N){const e=O*M;switch(N){case"round":O=Math.round(e)/M;break;case"ceil":O=Math.ceil(e)/M;break;case"floor":O=Math.floor(e)/M}}if(N)[F,S]=O.toFixed(g).split("."),S=S??"".padEnd(g,"0");else{const e=String(O).split(".");F=e[0],S=(e[1]||"").slice(0,g).padEnd(g,"0")}let P;if(v?(E=",",D=".",P=(T.trim().length?T:"")+((e,t)=>{const r=e.slice(-3),o=e.slice(0,-3);return o?o.replace(/\B(?=(\d{2})+(?!\d))/g,t)+t+r:r})(F,E)):P=(T.trim().length?T:"")+F.replace(/\B(?=(\d{3})+(?!\d))/g,E),s&&!y(S)&&g>0){let e=D+S;$&&(e+=w),P+=e}if(k<0)if("dash"===C)P="-"+P;else if("brackets"===C)P="("+P+")";else if("abs"===C);else if(d(C))if(m(C,"custom")){const e=C.custom;if(!h(e))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${p(e)}\`.`);const t=e(P);a(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${t}\` type value, but received: \`${e}\`.`}),P=t}else{const e=C.style||"dash",t=!y(C.space)&&C.space;if(b(t,{message:({currentType:e,validType:t})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${t} or undefined\`, but received: \`${e}\`.`}),"abs"!==e&&"brackets"!==e&&"dash"!==e)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: \`${p(e)}\`, with value: \`${i(e)}\`.`);switch(e){case"dash":P="-"+(t?" ":"")+P;break;case"brackets":P=t?`( ${P} )`:`(${P})`}}return P},F=(e,t=",")=>{if(!u(e)&&!r(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${p(e)}\`.`);if(!u(t))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${p(t)}\`.`);const o="."===(t=u(t)?t:",")?",":".",n=e.toString().trim(),a=n.lastIndexOf("."),i=n.lastIndexOf(",");let s="";a>i?s=".":i>a&&(s=",");let l=n,m="";if(s){const e=n.split(s);l=e.slice(0,-1).join(s),m=e.slice(-1)[0]}l=l.replace(/[^\d]/g,"");const c=l.replace(/\B(?=(\d{3})+(?!\d))/g,t);return m?`${c}${o}${m}`:c};function S(e,t={}){if(g(e))return"";if(!u(e)&&!$(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${p(e)}\`.`);l(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=!!m(t,"takeNumberOnly")&&t.takeNumberOnly,o=!!m(t,"checkValidOnly")&&t.checkValidOnly,n=m(t,"defaultCountry")?t.defaultCountry:void 0,a=m(t,"separator")?t.separator:" ",s=!m(t,"prependPlusCountryCode")||t.prependPlusCountryCode,d=m(t,"outputFormat")?t.outputFormat:"INTERNATIONAL",f=m(t,"openingNumberCountry")?t.openingNumberCountry:"",h=m(t,"closingNumberCountry")?t.closingNumberCountry:"";if(!c(r)||!c(o)||!c(s))throw new TypeError(`Parameter \`takeNumberOnly\`, \`checkValidOnly\` and \`prependPlusCountryCode\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${p(r)}\`, 'checkValidOnly': \`${p(o)}\`, 'prependPlusCountryCode': \`${p(s)}\`].`);if(!y(n)&&!T(n))throw new TypeError(`Parameter \`defaultCountry\` property of the \`options\` (second parameter) must be of type \`string\` as \`CountryCode\` (ISO-3166-1 alpha-2) or unset as \`undefined\` value, but received: \`${p(n)}\`, with value: \`${i(n,{keepUndefined:!0})}\`.\n\nSee: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements, for all ISO 3166-1 alpha-2 code.`);if(!["INTERNATIONAL","NATIONAL","RFC3966","E.164"].includes(d))throw new TypeError(`Parameter \`outputFormat\` property of the \`options\` (second parameter) must be of type \`string\` as \`OutputFormat\` ("NATIONAL" | "INTERNATIONAL" | "E.164" | "RFC3966") or unset as \`undefined\` (default value to: \`INTERNATIONAL\`) value, but received: \`${p(d)}\`, with value: ${i(d,{keepUndefined:!0})}.`);if(!u(a)||!u(f)||!u(h))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': \`${p(a)}\`,'openingNumberCountry': \`${p(f)}\`, 'closingNumberCountry': \`${p(h)}\`].`);u(e)||(e=String(e));const b=((e,t)=>{let r;try{return r=new w(t),r.input(e),r}catch{return void r?.reset()}})(e,n),N=(C=b,!!C?.isValid()&&!!C.getNumber());var C;if(o)return N;if(!N)return"";if(r)return b.getNumber().formatNational().replace(/\D/g,"");const D=b.getNumber().format(d);if("INTERNATIONAL"===d){const[e,...t]=D.split(" "),r=s?e:e.replace(/^\++/,""),o=t.join(a);return v(f)&&v(h)?`${f}${r}${h} ${o}`:`${r} ${o}`}if("NATIONAL"===d){return`${D.split(" ").join(a)}`}return D}var O=(e,t,r,o)=>{if(e.length<=t)return"*".repeat(e.length);const n=e.split(""),a=Math.max(t,Math.ceil(e.length*r)),i=new Set;let s=0;for(;i.size<a;){const t=y(o)?Math.floor(Math.random()*e.length):(o+e.length+31*s)%e.length;i.add(t),s++}for(const e of i)n[e]="*";return n.join("")},M=(e,t={})=>{if(!v(e))return"";l(t,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=m(t,"mode")?t.mode:"fixed";if("random"!==r&&"fixed"!==r)throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${p(r)}\`, with value: \`${i(r)}\`.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return"";const[o,n]=e.split("@"),a=n.split(".");if(a.length<2)return"";const[s,...u]=a,c=u.join("."),d=((e,t)=>"fixed"===e?(()=>{let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return Math.abs(e)})():void 0)(r,e),f=o.length<4?1:2,y=s.length<4?1:2;return`${O(o,f,.6,d)}@${O(s,y,.5,d)}.${c.length<=2?c:O(c,1,.4,d)}`};function P(t,r,n={}){if(g(t)||r<=0)return t;if(a(t,{message:({currentType:e,validType:t})=>`First parameter (\`subject\`) must be of type \`${t}\`, but received: \`${e}\`.`}),!o(r))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${p(r)}\`, with value: \`${i(r)}\`.`);l(n,{message:({currentType:e,validType:t})=>`Third parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const s=m(n,"separator")?n.separator:" ",u=!!m(n,"reCountAfterSpace")&&n.reCountAfterSpace;if(a(s,{message:({currentType:e,validType:t})=>`Parameter \`separator\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),b(u,{message:({currentType:e,validType:t})=>`Parameter \`reCountAfterSpace\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),t=e(t),!u){let e="",o=0;for(let n=0;n<t.length;n++){o===r&&(e+=s,o=0),e+=t[n],o++}return e}const c=t.split(" "),d=[];let f=[],y=0;for(let e=0;e<c.length;e++){const t=c[e];let o="",n=0;for(let e=0;e<t.length;e++)o+=t[e],n++,n===r&&e<t.length-1&&(o+=s,n=0);f.push(o),y++,y!==r&&e!==c.length-1||(d.push(f.join(s)),f=[],y=0)}return d.join(" ")}var A=(e,t={})=>{if(!v(e))return"";l(t,{message:({currentType:e,validType:t})=>`Seconds parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const r=!m(t,"trim")||t.trim,s=m(t,"length")?t.length:10;let u=m(t,"ending")?t.ending:"...";if(!o(s))throw new TypeError(`Parameter \`length\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${p(s)}\`, with value: \`${i(s)}\`.`);if(s<1)return"";a(u,{message:({currentType:e,validType:t})=>`Parameter \`ending\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),b(r,{message:({currentType:e,validType:t})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),u=n(u)?"...":u.trim();const c=r?e.trim():e;if(c.length<=s)return c;const d=c.slice(0,s);return(r?d:d.trimEnd())+u},I=(e,t={})=>{if(g(e)||!s(e)&&!v(e))return null;d(t)||(t={});const{inputFormat:r,locale:o="en",inputLocale:n="en",...a}=t,i=m(t,"format")&&v(t.format)?t.format:"dd MMM yyyy - HH:mm:ss";let u;try{if(v(e)&&r&&n){const t=v(n)?"id"===n?N:C:n;u=D(e,r,new Date,{locale:t})}else u=new Date(e);if(f(u.getTime()))return null;const t=v(o)?"id"===o?N:C:o;return E(u,i,{...a,locale:t})}catch{return null}},j=(e,t)=>{if(g(e)||!s(e)&&!v(e))return null;const r=new Date(e);if(f(r.getTime()))return null;d(t)||(t={});const{locale:o="en-US",...n}=t;try{return new Intl.DateTimeFormat(v(o)?o.trim():"en-US",n).format(r)}catch{return null}},x=(e,t)=>{if(g(t)&&(t="YYYY-MM-DD hh:mm:ss"),!u(t))return null;if(g(e)||!s(e)&&!v(e))return null;try{const r=new Date(e);if(f(r.getTime()))return null;const o=e=>e.toString().padStart(2,"0"),n={YYYY:r.getFullYear().toString(),MM:o(r.getMonth()+1),DD:o(r.getDate()),hh:o(r.getHours()),mm:o(r.getMinutes()),ss:o(r.getSeconds())},a=Object.entries(n).reduce((e,[t,r])=>e.split(t).join(r),t);return a.includes("NaN")?null:a}catch{return null}},L=e=>{try{if(g(e)||u(e)&&n(e))e=new Date;else if(!s(e)&&!v(e))return"0";const t=new Date(e);if(f(t.getTime()))return"0";const r=e=>e.toString().padStart(2,"0");let o=t.getTimezoneOffset();const a=o<0?"+":"-";return o=Math.abs(o),`${a}${r(Math.floor(o/60))}${r(o%60)}`}catch{return"0"}};export{M as censorEmail,P as chunkString,k as formatCurrency,I as formatDateFns,j as formatDateIntl,x as formatDateTime,F as formatNumber,S as formatPhoneNumber,L as getGMTOffset,A as truncateString};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-6JFZL7YE.cjs"),i=require("./chunk-PZQ6I4JJ.cjs"),r=require("tailwind-merge-v3"),s=require("tailwind-merge-v4");function t(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=t(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var o=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=t(e))&&(s&&(s+=" "),s+=i);return s},n=e=>{i.isPlainObject(e)||(e={});let{config:r,prefix:s,extend:t,override:o,cacheSize:n,experimentalParseClassName:a}=e;i.isPlainObject(r)||(r={}),i.isPlainObject(t)||(t={}),i.isPlainObject(o)||(o={}),i.isNumber(n)||(n=void 0),i.isNonEmptyString(s)||(s=void 0),i.isFunction(a)||(a=void 0);return{config:r,override:o,cacheSize:n,prefix:s,experimentalParseClassName:a,theme:i.hasOwnProp(t,"theme")?t.theme:{},classGroups:i.hasOwnProp(t,"classGroups")?t.classGroups:{},conflictingClassGroupModifiers:i.hasOwnProp(t,"conflictingClassGroupModifiers")?t.conflictingClassGroupModifiers:{},conflictingClassGroups:i.hasOwnProp(t,"conflictingClassGroups")?t.conflictingClassGroups:{},orderSensitiveModifiers:i.hasOwnProp(t,"orderSensitiveModifiers")&&i.isNonEmptyArray(t.orderSensitiveModifiers)?t.orderSensitiveModifiers:[]}},a=r.getDefaultConfig(),c=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:s,classGroups:t,config:o,conflictingClassGroupModifiers:c,conflictingClassGroups:l,override:f,prefix:p,theme:u,experimentalParseClassName:d}=n(e);return r.extendTailwindMerge({prefix:p??o.prefix,cacheSize:s||a.cacheSize,experimentalParseClassName:d,override:f,extend:{conflictingClassGroupModifiers:{...a.conflictingClassGroupModifiers,...c},theme:{...a.theme,...u},conflictingClassGroups:{...a.conflictingClassGroups,...l},classGroups:{...a.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},l=s.getDefaultConfig(),f=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:r,classGroups:t,config:o,conflictingClassGroupModifiers:a,conflictingClassGroups:c,orderSensitiveModifiers:f,override:p,prefix:u,theme:d,experimentalParseClassName:m}=n(e);return s.extendTailwindMerge({prefix:u||o.prefix,cacheSize:r||l.cacheSize,experimentalParseClassName:m,override:p,extend:{conflictingClassGroupModifiers:{...l.conflictingClassGroupModifiers,...a},theme:{...l.theme,...d},conflictingClassGroups:{...l.conflictingClassGroups,...c},orderSensitiveModifiers:[...l.orderSensitiveModifiers,...f],classGroups:{...l.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},p=c(),u=f();exports.cnV3=(...e)=>p(o(...e)),exports.cnV4=(...e)=>u(o(...e)),exports.customCnV3=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.customCnV4=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.shouldForwardProp=i=>(e.assertIsArray(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString())),exports.twMergeDefaultV3=c,exports.twMergeDefaultV4=f;
@@ -0,0 +1 @@
1
+ var r=()=>{};export{r as noop};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-PZQ6I4JJ.cjs");exports.isEmptyArray=t=>!e.isArray(t)||0===t.length,exports.isEmptyObject=function(t,r={}){if(!e.isObject(t))return!0;e.assertIsPlainObject(r,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const s=!!e.hasOwnProp(r,"checkSymbols")&&r.checkSymbols;e.assertIsBoolean(s,{message:({currentType:e,validType:t})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`});const c=0===Object.keys(t).length;return s?c&&0===Object.getOwnPropertySymbols(t).length:c};
@@ -1 +1 @@
1
- 'use strict';var chunkFWQVTMYA_cjs=require('../chunk-FWQVTMYA.cjs'),chunkZFDS7W6B_cjs=require('../chunk-ZFDS7W6B.cjs');require('../chunk-UA4B7JBO.cjs');var chunkXGZ6K753_cjs=require('../chunk-XGZ6K753.cjs');require('../chunk-ZQOLZE6Z.cjs'),require('../chunk-G7R5XZRM.cjs'),require('../chunk-UQDJF5RR.cjs');var chunkQSQDP7L2_cjs=require('../chunk-QSQDP7L2.cjs');require('../chunk-Q3NTKN5I.cjs'),require('../chunk-RV2VULM7.cjs'),require('../chunk-UTQUYABU.cjs'),require('../chunk-BEZPD44N.cjs');var chunk26W3VZIK_cjs=require('../chunk-26W3VZIK.cjs');require('../chunk-7YWAQOA4.cjs'),require('../chunk-CII6WWLO.cjs');Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.d}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.c}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.b}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.d}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.a}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkQSQDP7L2_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunk26W3VZIK_cjs.c}});
1
+ "use strict";var e=require("../chunk-F6IPNNSJ.cjs");require("../chunk-CAH33WOQ.cjs");var r=require("../chunk-NRF6LWBC.cjs");require("../chunk-HQWOFR56.cjs");var t=require("../chunk-5KJFVIQT.cjs");require("../chunk-V45XJKHW.cjs"),require("../chunk-E55EQK2U.cjs"),require("../chunk-HYRQMTRH.cjs");var n=require("../chunk-FJZGG54N.cjs");require("../chunk-JBQMXC5I.cjs"),require("../chunk-ZETAZZLD.cjs"),require("../chunk-6JFZL7YE.cjs"),require("../chunk-BAV5T2E3.cjs");var o=require("../chunk-T7PU2V7X.cjs");require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"convertType",{enumerable:!0,get:function(){return e.convertType}}),Object.defineProperty(exports,"dedupeArray",{enumerable:!0,get:function(){return e.dedupeArray}}),Object.defineProperty(exports,"removeObjectPaths",{enumerable:!0,get:function(){return e.removeObjectPaths}}),Object.defineProperty(exports,"toBooleanContent",{enumerable:!0,get:function(){return e.toBooleanContent}}),Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:!0,get:function(){return e.toBooleanContentDeep}}),Object.defineProperty(exports,"toBooleanExplicit",{enumerable:!0,get:function(){return e.toBooleanExplicit}}),Object.defineProperty(exports,"toBooleanLoose",{enumerable:!0,get:function(){return e.toBooleanLoose}}),Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:!0,get:function(){return e.toNumberArrayUnRecursive}}),Object.defineProperty(exports,"toNumberDeep",{enumerable:!0,get:function(){return e.toNumberDeep}}),Object.defineProperty(exports,"toStringDeep",{enumerable:!0,get:function(){return e.toStringDeep}}),Object.defineProperty(exports,"toStringDeepForce",{enumerable:!0,get:function(){return e.toStringDeepForce}}),Object.defineProperty(exports,"filterNilArray",{enumerable:!0,get:function(){return r.filterNilArray}}),Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:!0,get:function(){return r.toStringArrayUnRecursive}}),Object.defineProperty(exports,"parseCurrencyString",{enumerable:!0,get:function(){return t.parseCurrencyString}}),Object.defineProperty(exports,"cleanParsedData",{enumerable:!0,get:function(){return n.cleanParsedData}}),Object.defineProperty(exports,"extractDigits",{enumerable:!0,get:function(){return n.extractDigits}}),Object.defineProperty(exports,"parseCustomDate",{enumerable:!0,get:function(){return n.parseCustomDate}}),Object.defineProperty(exports,"safeJsonParse",{enumerable:!0,get:function(){return n.safeJsonParse}}),Object.defineProperty(exports,"safeStableStringify",{enumerable:!0,get:function(){return o.safeStableStringify}});