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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +11 -10
  2. package/dist/assertions/index.cjs +1 -1
  3. package/dist/assertions/index.js +1 -1
  4. package/dist/chunk-2HSNUPEO.cjs +1 -0
  5. package/dist/chunk-3YCFMGRB.js +1 -0
  6. package/dist/chunk-4Z75R3IT.cjs +1 -0
  7. package/dist/chunk-5C2SMIGX.cjs +1 -0
  8. package/dist/chunk-5Z2G23WP.js +1 -0
  9. package/dist/chunk-6C3ATUGM.cjs +1 -0
  10. package/dist/chunk-AJ25PWXX.cjs +1 -0
  11. package/dist/chunk-BHIBDDQF.js +1 -0
  12. package/dist/chunk-CE4JI2YB.js +1 -0
  13. package/dist/chunk-CMJ6UYWW.cjs +1 -0
  14. package/dist/chunk-D3VSHABU.cjs +1 -0
  15. package/dist/chunk-DG2GWBTS.cjs +1 -0
  16. package/dist/chunk-DVMHRLKP.cjs +1 -0
  17. package/dist/chunk-ECRNH4FW.js +1 -0
  18. package/dist/chunk-EKS4IZJR.cjs +1 -0
  19. package/dist/chunk-EOZKYR5S.cjs +1 -0
  20. package/dist/chunk-EUANTHVN.js +1 -0
  21. package/dist/chunk-EW3I4O7X.js +1 -0
  22. package/dist/chunk-F3E77L46.js +1 -0
  23. package/dist/chunk-FIAAX3UE.js +1 -0
  24. package/dist/chunk-FV7SEBKD.cjs +1 -0
  25. package/dist/chunk-GGWPB23G.cjs +1 -0
  26. package/dist/chunk-GVWGQNLF.js +1 -0
  27. package/dist/chunk-H3FXL4DU.cjs +1 -0
  28. package/dist/chunk-HHPDLSX2.cjs +1 -0
  29. package/dist/chunk-IMCLPT5V.cjs +1 -0
  30. package/dist/chunk-IRGE5W7L.js +1 -0
  31. package/dist/chunk-J2RGTPGK.cjs +1 -0
  32. package/dist/chunk-JARPXKBM.cjs +1 -0
  33. package/dist/chunk-JFJUPYDT.cjs +1 -0
  34. package/dist/chunk-JLP56WSM.js +1 -0
  35. package/dist/chunk-K3MV4AIN.cjs +1 -0
  36. package/dist/chunk-KHO2SBNA.cjs +1 -0
  37. package/dist/chunk-KOVO72OM.js +1 -0
  38. package/dist/chunk-LJ4M3VGE.js +1 -0
  39. package/dist/chunk-LJVGJLP4.js +1 -0
  40. package/dist/chunk-M47QIBXI.cjs +1 -0
  41. package/dist/chunk-MC3LXMCQ.js +1 -0
  42. package/dist/chunk-MISCBZJC.js +1 -0
  43. package/dist/chunk-MMSYCIJ2.cjs +1 -1
  44. package/dist/chunk-MTUBDVJ2.js +1 -0
  45. package/dist/chunk-O7UT5AN3.cjs +1 -0
  46. package/dist/chunk-OGPPP2S3.js +1 -0
  47. package/dist/chunk-OLPKAX7F.cjs +1 -0
  48. package/dist/chunk-ONZFBJVW.js +1 -0
  49. package/dist/chunk-ORZFHBEY.js +1 -0
  50. package/dist/chunk-OWV2P376.js +1 -0
  51. package/dist/chunk-QNKGP5DY.js +1 -0
  52. package/dist/chunk-RV2WK5E6.js +1 -0
  53. package/dist/chunk-SBF43G3B.cjs +1 -0
  54. package/dist/chunk-T4CIAKEK.js +1 -0
  55. package/dist/chunk-UDA26MCU.cjs +1 -0
  56. package/dist/chunk-VCFXNV3Q.cjs +1 -0
  57. package/dist/chunk-VHAPTHEA.cjs +1 -0
  58. package/dist/chunk-WVSPXFTY.js +1 -0
  59. package/dist/chunk-X74TUJSE.cjs +1 -0
  60. package/dist/chunk-XC3QHAK2.cjs +1 -0
  61. package/dist/chunk-XLDAIZRK.js +1 -0
  62. package/dist/chunk-XZJ7C4N6.js +1 -0
  63. package/dist/chunk-YV3K2EKJ.js +1 -0
  64. package/dist/chunk-ZHV5ZYVN.cjs +1 -0
  65. package/dist/chunk-ZL7J6GTP.js +1 -0
  66. package/dist/chunk-ZTCLKKMB.js +1 -0
  67. package/dist/conversions/index.cjs +1 -1
  68. package/dist/conversions/index.js +1 -1
  69. package/dist/env/index.cjs +1 -1
  70. package/dist/env/index.js +1 -1
  71. package/dist/events/index.cjs +1 -1
  72. package/dist/events/index.js +1 -1
  73. package/dist/formatting/index.cjs +1 -1
  74. package/dist/formatting/index.js +1 -1
  75. package/dist/generator/index.cjs +1 -1
  76. package/dist/generator/index.js +1 -1
  77. package/dist/next/index.cjs +1 -8
  78. package/dist/next/index.js +1 -8
  79. package/dist/next/server/index.cjs +1 -2
  80. package/dist/next/server/index.js +1 -2
  81. package/dist/operations/index.cjs +1 -1
  82. package/dist/operations/index.js +1 -1
  83. package/dist/parsers/index.cjs +1 -1
  84. package/dist/parsers/index.js +1 -1
  85. package/dist/predicates/index.cjs +1 -1
  86. package/dist/predicates/index.js +1 -1
  87. package/dist/promise/index.cjs +1 -1
  88. package/dist/promise/index.js +1 -1
  89. package/dist/rzl-utils.global.js +1 -4
  90. package/dist/strings/index.cjs +1 -1
  91. package/dist/strings/index.js +1 -1
  92. package/dist/tailwind/index.cjs +1 -0
  93. package/dist/tailwind/index.d.ts +565 -0
  94. package/dist/tailwind/index.js +1 -0
  95. package/dist/urls/index.cjs +1 -1
  96. package/dist/urls/index.js +1 -1
  97. package/package.json +22 -9
  98. package/dist/chunk-26W3VZIK.cjs +0 -1
  99. package/dist/chunk-2KRCHXFG.cjs +0 -2
  100. package/dist/chunk-33ZLH266.js +0 -1
  101. package/dist/chunk-4L4EJTNZ.js +0 -1
  102. package/dist/chunk-56QBKKRE.js +0 -1
  103. package/dist/chunk-5Q37AP7P.js +0 -1
  104. package/dist/chunk-5SZUSNGZ.js +0 -1
  105. package/dist/chunk-7CHFAMS2.js +0 -1
  106. package/dist/chunk-7MMJZ6HS.js +0 -1
  107. package/dist/chunk-7TC6DE3J.cjs +0 -1
  108. package/dist/chunk-7VX33E3V.js +0 -1
  109. package/dist/chunk-7YWAQOA4.cjs +0 -1
  110. package/dist/chunk-BEZPD44N.cjs +0 -1
  111. package/dist/chunk-BI263OHW.js +0 -1
  112. package/dist/chunk-CII6WWLO.cjs +0 -1
  113. package/dist/chunk-D5TYPCWU.cjs +0 -1
  114. package/dist/chunk-EEQY5QUG.js +0 -1
  115. package/dist/chunk-ELDDNERR.js +0 -1
  116. package/dist/chunk-ESJYBIYH.js +0 -1
  117. package/dist/chunk-EWYPSKKM.js +0 -1
  118. package/dist/chunk-EXCOQLWX.cjs +0 -1
  119. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  120. package/dist/chunk-FWQVTMYA.cjs +0 -1
  121. package/dist/chunk-G4EWCRKS.js +0 -1
  122. package/dist/chunk-G7R5XZRM.cjs +0 -1
  123. package/dist/chunk-GGEV7LXX.cjs +0 -1
  124. package/dist/chunk-HJOZOENU.cjs +0 -1
  125. package/dist/chunk-IRDZVLNZ.cjs +0 -1
  126. package/dist/chunk-IW73G523.cjs +0 -1
  127. package/dist/chunk-IY5OZAB3.cjs +0 -1
  128. package/dist/chunk-J4NCYYGS.js +0 -1
  129. package/dist/chunk-J7JAZAJD.js +0 -1
  130. package/dist/chunk-JYNSO7ZY.js +0 -1
  131. package/dist/chunk-K3UVKYEU.js +0 -1
  132. package/dist/chunk-LQ76EDZG.js +0 -1
  133. package/dist/chunk-MROH35V3.cjs +0 -1
  134. package/dist/chunk-NJSAV73S.js +0 -1
  135. package/dist/chunk-NNM7QCNB.js +0 -1
  136. package/dist/chunk-NR44SNYE.js +0 -1
  137. package/dist/chunk-NXMTWY77.js +0 -1
  138. package/dist/chunk-OZCQZO2V.cjs +0 -4
  139. package/dist/chunk-PUQXRLZH.cjs +0 -1
  140. package/dist/chunk-Q3NTKN5I.cjs +0 -1
  141. package/dist/chunk-QDNSC57Z.js +0 -4
  142. package/dist/chunk-QGXTL5ZH.js +0 -2
  143. package/dist/chunk-QSQDP7L2.cjs +0 -1
  144. package/dist/chunk-RV2VULM7.cjs +0 -1
  145. package/dist/chunk-S5M33A4O.js +0 -1
  146. package/dist/chunk-SGTHOQQ2.js +0 -1
  147. package/dist/chunk-SL3RQOWA.js +0 -1
  148. package/dist/chunk-SW6HYEW7.cjs +0 -1
  149. package/dist/chunk-SYJC7UAW.js +0 -1
  150. package/dist/chunk-SZPWZZYG.cjs +0 -1
  151. package/dist/chunk-UA4B7JBO.cjs +0 -1
  152. package/dist/chunk-UQDJF5RR.cjs +0 -1
  153. package/dist/chunk-UTQUYABU.cjs +0 -1
  154. package/dist/chunk-VPW3DRV5.js +0 -1
  155. package/dist/chunk-W32WALNU.js +0 -1
  156. package/dist/chunk-XGZ6K753.cjs +0 -1
  157. package/dist/chunk-YFTR64N5.cjs +0 -1
  158. package/dist/chunk-ZFDS7W6B.cjs +0 -1
  159. package/dist/chunk-ZQOLZE6Z.cjs +0 -1
  160. package/dist/stylings/index.cjs +0 -1
  161. package/dist/stylings/index.d.ts +0 -41
  162. package/dist/stylings/index.js +0 -1
package/README.md CHANGED
@@ -13,7 +13,7 @@ Provides reusable helpers to simplify your JavaScript / TypeScript projects.<br/
13
13
 
14
14
  [![Latest Version on NPM](https://img.shields.io/npm/v/@rzl-zone/utils-js?color=blue&style=flat-rounded)](https://npmjs.com/package/@rzl-zone/utils-js)
15
15
  [![downloads](https://img.shields.io/npm/dt/@rzl-zone/utils-js?style=flat-rounded)](https://npmjs.com/package/@rzl-zone/utils-js)
16
- [![Node.js](https://img.shields.io/badge/node-%3E%3D16.0.0%20%7C%20%3E%3D18.17.0-blue.svg?logo=node.js&style=flat-rounded)](https://nodejs.org/en/)
16
+ [![Node.js](https://img.shields.io/badge/node-≥16.0.0%20%7C%20≥18.17.0-blue.svg?logo=node.js&style=flat-rounded)](https://nodejs.org/en/)
17
17
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/rzl-zone/utils-js/blob/main/CONTRIBUTING.md)
18
18
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rzl-zone/utils-js/blob/main/LICENSE.md)
19
19
  [![GitHub](https://img.shields.io/badge/GitHub-rzl--zone%2Futils--js-181717?logo=github)](https://github.com/rzl-zone/utils-js)
@@ -42,12 +42,13 @@ Provides reusable helpers to simplify your JavaScript / TypeScript projects.<br/
42
42
 
43
43
  <h2 id="requirements">💻 Requirements</h2>
44
44
 
45
- - **Node.js >= 16.0.0 or >=18.17.0**
46
- This package leverages modern JavaScript & TypeScript features that require Node.js version 16.0.0 if not using nextjs and 18.17.0 or higher for nextjs.
45
+ - **Node.js `≥ 16.0.0` or `≥ 18.17.0`**
46
+ This package leverages modern JavaScript & TypeScript features that require Node.js version 16.0.0 if not using Next.js, and for Next.js it must follow the official minimum Node.js version requirement depending on the version you use.
47
+ - 🔗 See official Next.js documentation: [NextJS Installation Requirements](https://nextjs.org/docs/getting-started/installation#system-requirements).
47
48
 
48
49
  - Works with:
49
50
  - ✅ Node.js (16.0.0+) - Without NextJS
50
- - ✅ Node.js (18.17.0+) - With NextJS
51
+ - ✅ Node.js (18.17.0, or higher depending on NextJS version) - With NextJS
51
52
  - ✅ Modern browsers (via bundlers like Webpack / Vite)
52
53
 
53
54
  ---
@@ -109,8 +110,8 @@ This package also provides utilities specially built for Next.js environments, n
109
110
 
110
111
  <h2 id="detailed-features">💎 Detailed Features</h2>
111
112
 
112
- ### Full documentation coming soon.
113
- #### For now, explore the examples or dive into the source — all utilities are documented via **JSDoc** and typed properly.
113
+ ### Full documentation [Rzl UtilsJS](https://docs-rzl-utils-js.vercel.app/) is **currently under construction** 🏗️.
114
+ #### For now, explore the examples or dive into the source — all utilities are documented via **TSDoc** and typed properly.
114
115
 
115
116
  ```ts
116
117
  import { | } from "@rzl-zone/utils-js/assertions";
@@ -132,7 +133,7 @@ This package also provides utilities specially built for Next.js environments, n
132
133
 
133
134
  import type { | } from "@rzl-zone/utils-js/types";
134
135
  ```
135
- #### Just place your cursor right inside `{ }` or from after import from `"@rzl-zone/utils-js/"` like the pipe ("|") above then ctrl + space, there are many functions or types and then hover to each function is complete with how to use it because I have added jsDoc.
136
+ #### Just place your cursor right inside `{ }` or from after import from `"@rzl-zone/utils-js/"` like the pipe ("|") above then ctrl + space, there are many functions or types and then hover to each function is complete with how to use it because I have added tsDoc.
136
137
 
137
138
  <!-- - <h4 id="detailed-features--assertions">
138
139
  Assertions -
@@ -159,9 +160,9 @@ This package also provides utilities specially built for Next.js environments, n
159
160
 
160
161
  <h2 id="usage">🔥 Usage</h2>
161
162
 
162
- #### Easy to use, just import on your code base.
163
+ ### Easy to use, just import on your code base.
163
164
 
164
- ##### Example Function Import:
165
+ #### Example Function Import:
165
166
 
166
167
  ```ts
167
168
  import { isServer } from "@rzl-zone/utils-js/env";
@@ -170,7 +171,7 @@ console.log(isServer());
170
171
  // true if running on Node.js, false if browser
171
172
  ```
172
173
 
173
- ##### Example TypeScript Helper Import:
174
+ #### Example Types Helper Import:
174
175
 
175
176
  ```ts
176
177
  import type { OmitStrict } from "@rzl-zone/utils-js/types";
@@ -1 +1 @@
1
- 'use strict';var chunkIY5OZAB3_cjs=require('../chunk-IY5OZAB3.cjs'),chunkUQDJF5RR_cjs=require('../chunk-UQDJF5RR.cjs'),chunkBEZPD44N_cjs=require('../chunk-BEZPD44N.cjs');require('../chunk-7YWAQOA4.cjs');var chunkCII6WWLO_cjs=require('../chunk-CII6WWLO.cjs');Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkIY5OZAB3_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkIY5OZAB3_cjs.b}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunkUQDJF5RR_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBEZPD44N_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCII6WWLO_cjs.j}});
1
+ "use strict";var e=require("../chunk-GGWPB23G.cjs"),r=require("../chunk-VHAPTHEA.cjs"),t=require("../chunk-VCFXNV3Q.cjs");require("../chunk-UDA26MCU.cjs");var s=require("../chunk-D3VSHABU.cjs");Object.defineProperty(exports,"assertIsBigInt",{enumerable:!0,get:function(){return e.assertIsBigInt}}),Object.defineProperty(exports,"assertIsNumber",{enumerable:!0,get:function(){return e.assertIsNumber}}),Object.defineProperty(exports,"assertIsArray",{enumerable:!0,get:function(){return r.assertIsArray}}),Object.defineProperty(exports,"assertIsString",{enumerable:!0,get:function(){return t.assertIsString}}),Object.defineProperty(exports,"assertIsBoolean",{enumerable:!0,get:function(){return s.assertIsBoolean}}),Object.defineProperty(exports,"assertIsPlainObject",{enumerable:!0,get:function(){return s.assertIsPlainObject}});
@@ -1 +1 @@
1
- export{a as assertIsBigInt,b as assertIsNumber}from'../chunk-BI263OHW.js';export{a as assertIsArray}from'../chunk-SL3RQOWA.js';export{a as assertIsString}from'../chunk-NJSAV73S.js';import'../chunk-5SZUSNGZ.js';export{G as assertIsBoolean,j as assertIsPlainObject}from'../chunk-EWYPSKKM.js';
1
+ export{assertIsBigInt,assertIsNumber}from"../chunk-OGPPP2S3.js";export{assertIsArray}from"../chunk-ECRNH4FW.js";export{assertIsString}from"../chunk-T4CIAKEK.js";import"../chunk-QNKGP5DY.js";export{assertIsBoolean,assertIsPlainObject}from"../chunk-EW3I4O7X.js";
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-4Z75R3IT.cjs"),t=require("./chunk-D3VSHABU.cjs");exports.normalizeSpaces=(r,i={withTrim:!0,trimOnly:!1})=>{if(!t.isNonEmptyString(r))return"";t.isPlainObject(i)||(i={});const{trimOnly:e=!1,withTrim:n=!0}=i;return e?r.trim():(n&&(r=r.trim()),r.replace(/\s+/g," "))},exports.normalizeString=r=>t.isNonEmptyString(r)?r.trim():"",exports.removeSpaces=(r,i={trimOnly:!1})=>{if(!t.isNonEmptyString(r))return"";t.isPlainObject(i)||(i={});const{trimOnly:e=!1}=i;return e?r.trim():r.replace(/\s+/g,"")},exports.stripHtmlTags=function(i){if(!t.isString(i))return;return r.isEmptyString(i)?"":i.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()};
@@ -0,0 +1 @@
1
+ import{isInteger as e}from"./chunk-WVSPXFTY.js";import{safeStableStringify as r}from"./chunk-BHIBDDQF.js";import{isNonEmptyArray as t,getPreciseType as n,isNumber as a,isPlainObject as m,assertIsBoolean as i,isNaN as h}from"./chunk-EW3I4O7X.js";function o(e){if(!t(e))return;return e[Math.floor(Math.random()*(e.length||0))]}var u=(t,a)=>{if(!e(t)||!e(a))throw new TypeError(`First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${c(t,a)}value, but received: ['min': \`${n(t)}\` - (with value: \`${r(t)})\`, 'max': \`${n(a)}\` - (with value: \`${r(a)}\`)].`);if(t>a)throw new RangeError(`First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${s(t)}, 'max': ${s(a)}].`);return t=Math.max(1,t),a=Math.min(Number.MAX_SAFE_INTEGER,a),Math.floor(Math.random()*(a-t+1))+t},s=e=>a(e,{includeNaN:!0})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${n(e)}\``,c=(...e)=>e.some(e=>a(e,{includeNaN:!0})&&e===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ",g=t=>{m(t)||(t={});const{minLength:a=1,maxLength:h=16,avoidZero:o=!1}=t;if(i(o,{message:({currentType:e,validType:r})=>`Parameters \`avoidZero\` must be of type \`${r}\`, but received: \`${e}\`.`}),!e(a)||!e(h))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${n(a)}\` - (with value: ${r(a)}), 'maxLength': \`${n(h)}\` - (with value: ${r(h)})].`);if(a<1||h>16||a>h)throw new RangeError(`Invalid range at parameters \`minLength\` must be ≥ 1, \`maxLength\` must be ≤ 16, and \`minLength\` ≤ \`maxLength\`, but received: ['minLength': \`${a}\`, 'maxLength': \`${h}\`].`);const s=a===h?a:u(a,h),c=10**(s-1);let g=u(c,10**s-1);return o&&0===g&&(g=c),g},p=t=>{m(t)||(t={});const{minLength:a=40,maxLength:o=40,type:s="string",avoidWhiteSpace:c=!0}=t;if(i(c,{message:({currentType:e,validType:r})=>`Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),!e(a)||!e(o))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${n(a)}\` - (with value: ${r(a)}), 'maxLength': \`${n(o)}\` - (with value: ${r(o)})].`);if(a<1||o>5e3||a>o)throw new RangeError(`Invalid range at parameters \`minLength\` must be ≥ 1, \`maxLength\` must be ≤ 5000, and \`minLength\` ≤ \`maxLength\`, but received: ['minLength': \`${a}\`, 'maxLength': \`${o}\`].`);if("string"!==s&&"number"!==s)throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${n(s)}\`, with value: ${r(s)}.`);const g=u(a,o),p="number"===s?(h(Number(t.replaceGenInt))?void 0:t.replaceGenInt)??"0123456789":(t.replaceGenStr?t.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",d=(l=p,(c?l.replace(/\s|\n|\t/g,""):l)+(t.addChar||""));var l;if(!d.length){throw new Error(`Character set is empty. ${(()=>"number"===s?c?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.")()}`)}let b="";for(let e=0;e<g;e++)b+=d.charAt(Math.floor(Math.random()*d.length));return b};export{o as getRandomItem,u as randomInt,g as randomIntByLength,p as randomStr};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-D3VSHABU.cjs");exports.isEmptyString=(t,i={})=>!r.isNonEmptyString(t,i);
@@ -0,0 +1 @@
1
+ "use strict";exports.noop=()=>{};
@@ -0,0 +1 @@
1
+ import{isServer as e}from"./chunk-MC3LXMCQ.js";import{assertIsString as t}from"./chunk-T4CIAKEK.js";import{isPlainObject as o,hasOwnProp as s,isNonEmptyString as r,isNumber as i}from"./chunk-EW3I4O7X.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.trim())?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
+ "use strict";var t=require("./chunk-M47QIBXI.cjs"),r=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);exports.isNonEmptyValue=(r,e={})=>!t.isEmptyValue(r,e),exports.isTypedArray=function(t){return null!=t&&"object"==typeof t&&r.has(Object.prototype.toString.call(t))};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-D3VSHABU.cjs");exports.getInitialsName=r=>{if(!e.isNonEmptyString(r))return"";const t=(r=r.replace(/\s+/g," ").trim()).split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()},exports.replaceAt=(r,t,i)=>{if(!e.isNumber(r)||!e.isString(i)||!e.isString(t))throw new TypeError(`First parameter (\`index\`) must be of type \`number\`, second parameter (\`originalString\`) and third parameter (\`replaceTo\`) must be of type \`string\`, but received: "['index': \`${e.getPreciseType(r)}\`, 'originalString': \`${e.getPreciseType(t)}\`, 'replaceTo': \`${e.getPreciseType(i)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return t.slice(0,r)+i+t.slice(r+1)};
@@ -0,0 +1 @@
1
+ import{isBigInt as r}from"./chunk-QNKGP5DY.js";import{isNaN as t,assertIsPlainObject as e,hasOwnProp as o,isBoolean as n,getPreciseType as s,isFunction as a,isSymbol as i,isUndefined as f,isObjectOrArray as u,isSet as c,isArray as p,isNull as y,isNumber as m,isObject as l}from"./chunk-EW3I4O7X.js";function b(r){return"[object Map]"===Object.prototype.toString.call(r)||r instanceof Map}var S=r=>r instanceof Date&&!t(r.getTime()),g=(g,d={})=>{e(d,{message:({currentType:r,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${r}\`.`});const h=!!o(d,"pretty")&&d.pretty,A=!o(d,"sortKeys")||d.sortKeys,N=!!o(d,"sortArray")&&d.sortArray;if(!n(A)||!n(N)||!n(h))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${s(A)}\`, 'sortArray': \`${s(N)}\`, 'pretty': \`${s(h)}\`]".`);const j=new WeakSet,v=r=>y(r)||!u(r)&&!a(r),K=e=>{if(e instanceof Number)return Number(e);if(e instanceof String)return String(e);if(e instanceof Boolean)return Boolean(e);if(!a(e)&&!i(e)){if(r(e))return e.toString();if(f(e)||t(e)||e===1/0||e===-1/0)return null;if(u(e)){if(j.has(e))return"[Circular]";if(j.add(e),S(e))return e.toISOString();if(b(e))return{map:Array.from(e.entries()).map(([r,t])=>[r,K(t)])};if(c(e))return{set:Array.from(e.values()).map(K)};if(p(e)){const r=e.map(K);if(N){const t=[],e=[];for(const o of r)v(o)?t.push(o):e.push(o);return t.sort((r,t)=>m(r)&&m(t)?r-t:String(r).localeCompare(String(t))),[...t,...e]}return r}const r=Object.keys(e);A&&r.sort((r,e)=>{const o=Number(r),n=Number(e);return t(o)||t(n)?r.localeCompare(e):o-n});const o={};if(l(e))for(const t of r){const r=K(e[t]);f(r)||(o[t]=r)}return o}return e}};try{return JSON.stringify(K(g),null,h?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};export{S as isDate,b as isMap,g as safeStableStringify};
@@ -0,0 +1 @@
1
+ import{safeJsonParse as e}from"./chunk-XLDAIZRK.js";import{isEqual as r,isEmptyArray as t}from"./chunk-ZTCLKKMB.js";import{assertIsArray as n}from"./chunk-ECRNH4FW.js";import{safeStableStringify as s}from"./chunk-BHIBDDQF.js";import{isPlainObject as i,isNonEmptyArray as o,isObjectOrArray as c,isArray as a,isNaN as u,isUndefined as m}from"./chunk-EW3I4O7X.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,s)=>{for(let i=s+1;i<e.length;i++)if(r(n,e[i])){t.some(e=>r(e,n))||t.push(n);break}}),t},p=(e,r)=>{if(!i(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(!i(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(o(l))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${s(l)}\`.`);const y=(e,r)=>{if(!c(e))return e;const[n,...s]=r;if(t(s))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,s))}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},b=e(s(r));for(const e of p){const r=e.split(".");y(b,r)}return d(b)};export{f as findDuplicates,p as omitKeys,l as omitKeysDeep};
@@ -0,0 +1 @@
1
+ "use strict";var i=require("./chunk-D3VSHABU.cjs");exports.isFinite=function(e){return i.isNumber(e)&&Number.isFinite(e)};
@@ -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"number"==typeof e?Number.isNaN(e):"[object Number]"===Object.prototype.toString.call(e)&&Number.isNaN(Number(e).valueOf())}var l=e=>null===e,c=(r,t={})=>{if(e(r))return;const o=U({value:r,options:t,requiredValidType:"boolean"});throw new TypeError(o)},u=(r,t={})=>{$(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;c(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)},p=e=>"symbol"==typeof e,f=e=>void 0===e;function m(e){return o(e)||a(e)}function y(e,t,o={}){if(!s(e)&&!m(e)&&!r(e))return!1;$(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;c(a,{message:({currentType:e,validType:r})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),c(n,{message:({currentType:e,validType:r})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const y=[];if(s(t)&&t.trim().length>0||u(t,{includeNaN:!0})){(u(t,{includeNaN:!0})?String(t):t).split(".").forEach(e=>{const r=e.match(/^\[(\d+)\]$/),t=e.match(/^Symbol\((.+)\)$/);r?y.push(Number(r[1])):t?y.push(Symbol.for(t[1])):i(Number(e))?y.push(e):y.push(Number(e))})}else{if(!p(t))return!1;y.push(t)}let b=s(e)&&e.trim().length>0?Object(e):e;for(const e of y)if(s(e)&&e.trim().length>0||u(e,{includeNaN:!0})){if(l(b)||!Object.prototype.hasOwnProperty.call(b,e))return!1;b=b[e]}else{if(!p(e))return!1;{if(l(b)||"object"!=typeof b&&!r(b))return!1;const t=Object.getOwnPropertySymbols(b).find(r=>r===e||r.description===e.description);if(!t)return!1;b=b[t]}}return(!a||!f(b))&&(!n||!l(b))}var b=(e,r={})=>{if(!s(e))return!1;$(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!y(r,"trim")||r.trim;c(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};function d(e){return"[object Set]"===Object.prototype.toString.call(e)||e instanceof Set}function g(e){return Array.isArray(e)&&e.length>0}var v=e=>{let r="";return o(e)?r=e.map(e=>b(e)?e.trim():"").filter(e=>e.length).join("-"):b(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)},h=e=>{const r=new Set([]),t=e=>e.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(b(e)){const o=t(e);o&&r.add(o)}return g(e)&&e.forEach(e=>{if(b(e)){const o=t(e);o&&r.add(o)}}),d(e)&&e.forEach(e=>{if(b(e)){const o=t(e);o&&r.add(o)}}),r},S=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map((e,r)=>o.has(e)?e:0===r?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},j=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},C=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},N=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(" ")},x=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-")},w=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("_")},A=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(".")},T=(e,r)=>{if(!g(e)&&!b(e))return"";const t=v(e),o=h(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-").replace(/^-+|-+$/g,"")},P=e=>"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error,O=e=>"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e),E=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),I=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),R=Object.entries({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"}).reduce((e,[r,t])=>(e[I(r)]=t,e),{});var L=(e,r)=>"toPascalCaseSpace"===r?j(e,E):"slugify"===r?T(e,E):"toCamelCase"===r?S(e,E):"toDotCase"===r?A(e,E):"toKebabCase"===r?x(e,E):"toPascalCase"===r?C(e,E):"toSnakeCase"===r?w(e,E):N(e,E),B=(e,t={formatCase:"toLowerCase"})=>{var o,s;n(t)||(t={});const c=t.formatCase;if(l(e))return L(R[I("null")]??"Null",c);if(i(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(e instanceof Number)return L("Number Constructor",c);if(e instanceof String)return L("String Constructor",c);if(e instanceof Boolean)return L("Boolean Constructor",c);const u=typeof e;if(!m(e)&&!r(e))return L(R[I(u)]??u,c);if(O(e))return L(R[I("buffer")]??"Buffer",c);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 L(R[I("proxy")]??"Proxy",c);if(a(e)&&r(null==e?void 0:e.next)&&r(null==e?void 0:e.throw))return L(R[I("generator")]??"Generator",c);if(P(e)){const r=(null==(o=e.constructor)?void 0:o.name)??"Error";return L(R[I(r)]??R[I(r.replace(/\s+/g,""))]??r,c)}if(l(Object.getPrototypeOf(e)))return L(R[I("object")]??"Object",c);const p=Object.prototype.toString.call(e).slice(8,-1)||"Object",f=R[I(p)];if(f)return L(f,c);const y=null==(s=null==e?void 0:e.constructor)?void 0:s.name;return L(y&&"Object"!==y?R[I(y)]??y:p,c)};function U(e){const{requiredValidType:t,value:o,options:a}=e||{},{message:s,formatCase:i}=n(a)?a:{},l=x(t),c=B(o,{formatCase:i}),u={currentType:c,validType:l},p=`Parameter input (\`value\`) must be of type \`${l}\`, but received: \`${c}\`.`;return r(s)?b(s(u))?s(u).trim():p:b(s)?s.trim():p}function $(e,r={}){if(n(e))return;const t=U({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}exports.assertIsBoolean=c,exports.assertIsPlainObject=$,exports.capitalizeFirst=(e,r={lowerCaseNextRest:!0,trim:!1})=>{if(!b(e))return"";n(r)||(r={});const t=!1!==r.lowerCaseNextRest;return!0===r.trim&&(e=e.trim()),e[0].toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},exports.capitalizeWords=(e,r={collapseSpaces:!1,trim:!1})=>{var t,o;if(!b(e))return"";let a=e;n(r)||(r={});const s=!0===r.collapseSpaces;if(!0===r.trim&&(a=a.trim()),s){const e=(null==(t=a.match(/^\s*/))?void 0:t[0])??"",r=(null==(o=a.match(/\s*$/))?void 0:o[0])??"";a=a.trim().replace(/\s+/g," "),a=`${e}${a}${r}`}return a.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},exports.getPreciseType=B,exports.hasOwnProp=y,exports.isArray=o,exports.isBoolean=e,exports.isBuffer=O,exports.isError=P,exports.isFunction=r,exports.isNaN=i,exports.isNil=t,exports.isNonEmptyArray=g,exports.isNonEmptyString=b,exports.isNull=l,exports.isNumber=u,exports.isObject=a,exports.isObjectOrArray=m,exports.isPlainObject=n,exports.isSet=d,exports.isString=s,exports.isSymbol=p,exports.isUndefined=f,exports.resolveErrorMessageAssertions=U,exports.slugify=T,exports.toCamelCase=S,exports.toDotCase=A,exports.toKebabCase=x,exports.toLowerCase=N,exports.toPascalCase=C,exports.toPascalCaseSpace=j,exports.toSnakeCase=w;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-6C3ATUGM.cjs"),r=require("./chunk-H3FXL4DU.cjs"),t=require("./chunk-JARPXKBM.cjs"),i=require("./chunk-VHAPTHEA.cjs"),s=require("./chunk-CMJ6UYWW.cjs"),n=require("./chunk-4Z75R3IT.cjs"),o=require("./chunk-VCFXNV3Q.cjs"),a=require("./chunk-ZHV5ZYVN.cjs"),m=require("./chunk-UDA26MCU.cjs"),y=require("./chunk-D3VSHABU.cjs");var p=e=>!y.isNil(e)&&(y.isString(e)?y.isNonEmptyString(e):y.isBoolean(e)?e:y.isNumber(e,{includeNaN:!0})?0!==e:y.isArray(e)?e.some(p):!!y.isObject(e)&&Object.values(e).some(p)),c=(e,r)=>{if(!y.isObjectOrArray(e))return e;const[i,...s]=r;if(y.isArray(e))for(const t of e)y.isObjectOrArray(t)&&c(t,r);else t.isEmptyArray(s)?y.isPlainObject(e)&&delete e[i]:y.isPlainObject(e)&&y.isObjectOrArray(e[i])&&c(e[i],s);return e},u=(e,r)=>{if(!y.isPlainObject(e))return e;const[t,...i]=r;return 0===i.length?y.isPlainObject(e)&&delete e[t]:y.isPlainObject(e[t])&&u(e[t],i),e};exports.convertType=e=>{const r={undefined:void 0,null:null,nan:NaN,true:!0,false:!1,yes:!0,no:!1};if(y.isString(e)){const t=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(r,t))return r[t];const i=t.replace(/,/g,""),s=Number(i);return!y.isNaN(s)&&y.isNonEmptyString(i)?s:e.trim()}return e},exports.removeObjectPaths=function(e,r,s=!0){if(t.isEmptyObject(e,{checkSymbols:!0}))return{};if(i.assertIsArray(r,{message:({currentType:e,validType:t})=>`Second parameter (\`keysToDelete\`) must be of type \`${t}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${e}\`, with value: \`${a.safeStableStringify(r)}\`.`}),!r.every(e=>y.isPlainObject(e)&&"key"in e))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: \`${a.safeStableStringify(r)}\`.`);let n=s?(e=>{try{if(y.isFunction(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))})(e):e;for(const{key:e,deep:t}of r){if(o.assertIsString(e,{message:({currentType:e,validType:r})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${r}\`, but received: \`${e}\`.`}),!y.isUndefined(t)&&!y.isBoolean(t))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) ➔ (key: "${e}", deep: ${t}) must be of type \`boolean\` or \`undefined\`, but received: \`${y.getPreciseType(t)}\`.`);const r=e.split(".");n=t?c(n,r):u(n,r)}return n},exports.toBooleanContent=r=>!y.isNil(r)&&(y.isString(r)?y.isNonEmptyString(r):y.isBoolean(r)?r:y.isNumber(r,{includeNaN:!0})?0!==r:y.isArray(r)||y.isObject(r)?e.isNonEmptyValue(r):Boolean(r)),exports.toBooleanContentDeep=p,exports.toBooleanExplicit=(e,r={})=>{if(y.isNil(e))return!1;y.isPlainObject(r)||(r={});const t=!!y.hasOwnProp(r,"caseInsensitive")&&r.caseInsensitive,i=!y.hasOwnProp(r,"trimString")||r.trimString,s=!!y.hasOwnProp(r,"includeIndeterminate")&&r.includeIndeterminate;if(!y.isBoolean(t)||!y.isBoolean(i)||!y.isBoolean(s))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${y.getPreciseType(t)}\`, 'trimString': \`${y.getPreciseType(i)}\`, 'includeIndeterminate': \`${y.getPreciseType(s)}\`].`);if(y.isString(e)){let r=e;i&&(r=r.trim()),t&&(r=r.toLowerCase());const n=["true","on","yes","1"];return s&&n.push("indeterminate"),n.includes(r)}return y.isNumber(e)?1===e:!!y.isBoolean(e)&&e},exports.toBooleanLoose=e=>!y.isNil(e)&&(y.isString(e)?!n.isEmptyString(e):y.isBoolean(e)?e:y.isNumber(e,{includeNaN:!0})?0!==e:y.isArray(e)?e.length>0:Boolean(e)),exports.toNumberArrayUnRecursive=function(e,t={}){y.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!y.hasOwnProp(t,"removeInvalidValueNumber")||t.removeInvalidValueNumber;if(y.assertIsBoolean(i,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),y.isArray(e)){const t=Array.from(e,e=>{if(m.isBigInt(e))return Number(e);const r=String(e).trim().match(/-?\d+(\.\d+)?/);return r?Number(r[0]):y.isNull(e)?null:void 0});return i?r.filterNilArray(t):t}},exports.toNumberDeep=function(r,i={}){return y.assertIsPlainObject(i,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`}),function r(i,n){if(y.isNil(i))return;const{removeEmptyArrays:o,removeEmptyObjects:m,isRoot:p}=n;if(!y.isBoolean(m)||!y.isBoolean(o))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${y.getPreciseType(m)}\`, 'removeEmptyArrays': \`${y.getPreciseType(o)}\`].`);if(y.isNumber(i)||y.isNonEmptyString(i)&&!y.isNaN(Number(i))){const e=Number(i);return s.isFinite(e)?e:void 0}if(y.isArray(i)){const e=i.map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!y.isUndefined(e));if(o&&t.isEmptyArray(e))return;return e}if(y.isSet(i)){const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!y.isUndefined(e));if(o&&t.isEmptyArray(e))return;return e}if(a.isMap(i)){let e=Array.from(i.entries()).map(([e,t])=>{const i=r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1}),s=r(t,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1});return y.isUndefined(i)||y.isUndefined(s)?void 0:[i,s]}).filter(e=>!y.isUndefined(e));if(o&&(e=e.filter(e=>!(y.isArray(e)&&0===e.length))),o&&t.isEmptyArray(e))return;return e}if(y.isBuffer(i)){const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!y.isUndefined(e));if(o&&t.isEmptyArray(e))return;return e}if(e.isTypedArray(i)){if(i instanceof BigInt64Array||i instanceof BigUint64Array){const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!y.isUndefined(e));if(o&&t.isEmptyArray(e))return;return e}{const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!y.isUndefined(e));if(o&&t.isEmptyArray(e))return;return e}}if(a.isDate(i))return y.isNaN(i.getTime())?0:i.getTime();if(y.isObject(i)){const e={};for(const[t,s]of Object.entries(i)){const i=r(s,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1});y.isUndefined(i)||(e[t]=i)}return m&&t.isEmptyObject(e)?p?{}:void 0:e}}(r,{removeEmptyObjects:!!y.hasOwnProp(i,"removeEmptyObjects")&&i.removeEmptyObjects,removeEmptyArrays:!!y.hasOwnProp(i,"removeEmptyArrays")&&i.removeEmptyArrays,isRoot:!0})},exports.toStringDeep=function(r,i={}){return y.assertIsPlainObject(i,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`}),function r(i,s){if(y.isNil(i))return;const{removeEmptyArrays:n,removeEmptyObjects:o,isRoot:m}=s;if(!y.isBoolean(o)||!y.isBoolean(n))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${y.getPreciseType(o)}\`, 'removeEmptyArrays': \`${y.getPreciseType(n)}\`].`);if(y.isNumber(i)||y.isString(i))return String(i);if(a.isDate(i))return i.toISOString();if(t.isRegExp(i))return i.toString();if(y.isBuffer(i))return Array.from(i).map(e=>String(e)).filter(e=>!y.isUndefined(e));if(e.isTypedArray(i)){if(i instanceof BigInt64Array||i instanceof BigUint64Array){const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1})).map(e=>String(e)).filter(e=>!y.isUndefined(e));if(n&&t.isEmptyArray(e))return;return e}{const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1})).map(e=>String(e)).filter(e=>!y.isUndefined(e));if(n&&t.isEmptyArray(e))return;return e}}if(y.isSet(i)){const e=Array.from(i).map(e=>r(e,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1})).filter(e=>!y.isUndefined(e));if(n&&t.isEmptyArray(e))return;return e}if(a.isMap(i)){const e=Array.from(i.entries()).map(([e,t])=>[r(e,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1}),r(t,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1})]).filter(([e,r])=>!y.isUndefined(e)&&!y.isUndefined(r));if(n&&t.isEmptyArray(e))return;return e}if(y.isArray(i)){let e=i.map(e=>r(e,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1})).filter(e=>!y.isUndefined(e));if(n&&(e=e.filter(e=>!(y.isArray(e)&&0===e.length))),n&&t.isEmptyArray(e))return;return e}if(y.isObject(i)){const e={};for(const[t,s]of Object.entries(i)){const i=r(s,{removeEmptyObjects:o,removeEmptyArrays:n,isRoot:!1});y.isUndefined(i)?y.isArray(s)&&!n&&(e[t]=[]):e[t]=i}return o&&0===Object.keys(e).length?m?{}:void 0:e}}(r,{removeEmptyObjects:!!y.hasOwnProp(i,"removeEmptyObjects")&&i.removeEmptyObjects,removeEmptyArrays:!!y.hasOwnProp(i,"removeEmptyArrays")&&i.removeEmptyArrays,isRoot:!0})};
@@ -0,0 +1 @@
1
+ "use strict";exports.isInteger=function(e){return"number"==typeof e&&Number.isInteger(e)};
@@ -0,0 +1 @@
1
+ import{isArray as r,resolveErrorMessageAssertions as o}from"./chunk-EW3I4O7X.js";function e(e,n){if(r(e))return;const t=o({value:e,options:n,requiredValidType:"array"});throw new TypeError(t)}export{e as assertIsArray};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-EOZKYR5S.cjs"),r=require("./chunk-JARPXKBM.cjs"),t=require("./chunk-VHAPTHEA.cjs"),s=require("./chunk-ZHV5ZYVN.cjs"),i=require("./chunk-D3VSHABU.cjs"),n=e=>{t.assertIsArray(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const s=[];return e.forEach((t,i)=>{for(let n=i+1;n<e.length;n++)if(r.isEqual(t,e[n])){s.some(e=>r.isEqual(e,t))||s.push(t);break}}),s};exports.findDuplicates=n,exports.omitKeys=(e,r)=>{if(!i.isPlainObject(e))return{};t.assertIsArray(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const s=n(r);if(s.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${s}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},exports.omitKeysDeep=(a,c)=>{if(!i.isPlainObject(a))return{};t.assertIsArray(c,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const o=n(c);if(i.isNonEmptyArray(o))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${s.safeStableStringify(o)}\`.`);const u=(e,t)=>{if(!i.isObjectOrArray(e))return e;const[s,...n]=t;if(r.isEmptyArray(n))if(i.isArray(e)){const r=parseInt(s);!i.isNaN(r)&&r in e&&e.splice(r,1)}else delete e[s];else{const r=e[s];i.isObjectOrArray(r)&&(e[s]=u(r,n))}return e},y=e=>{if(i.isArray(e))return e.map(y).filter(e=>!(i.isObjectOrArray(e)&&0===Object.keys(e).length));if(i.isObjectOrArray(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,y(r)]).filter(([,e])=>!(i.isUndefined(e)||i.isObjectOrArray(e)&&0===Object.keys(e).length)))}return e},l=e.safeJsonParse(s.safeStableStringify(a));for(const e of c){const r=e.split(".");u(l,r)}return y(l)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-JARPXKBM.cjs"),r=require("./chunk-5C2SMIGX.cjs"),t=require("./chunk-ZHV5ZYVN.cjs"),o=require("./chunk-D3VSHABU.cjs"),n=e=>{if(!o.isString(e)&&!o.isNumber(e))return 0;const r=String(e).trim().replace(/[^0-9]/g,"");return Number(r)||0},s=(e={})=>{o.assertIsPlainObject(e,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!!o.hasOwnProp(e,"convertBooleans")&&e.convertBooleans,n=!!o.hasOwnProp(e,"convertDates")&&e.convertDates,s=!!o.hasOwnProp(e,"convertNumbers")&&e.convertNumbers,i=!!o.hasOwnProp(e,"loggingOnFail")&&e.loggingOnFail,a=!!o.hasOwnProp(e,"removeEmptyArrays")&&e.removeEmptyArrays,c=!!o.hasOwnProp(e,"removeEmptyObjects")&&e.removeEmptyObjects,l=!!o.hasOwnProp(e,"removeNulls")&&e.removeNulls,u=!!o.hasOwnProp(e,"removeUndefined")&&e.removeUndefined,m=!!o.hasOwnProp(e,"strictMode")&&e.strictMode,p=!!o.hasOwnProp(e,"checkSymbols")&&e.checkSymbols,N=!!o.hasOwnProp(e,"convertNaN")&&e.convertNaN,v=o.hasOwnProp(e,"customDateFormats")?e.customDateFormats:[],d=o.hasOwnProp(e,"onError")?e.onError:r.noop;if(!(o.isBoolean(t)&&o.isBoolean(n)&&o.isBoolean(s)&&o.isBoolean(N)&&o.isBoolean(p)&&o.isBoolean(i)&&o.isBoolean(a)&&o.isBoolean(c)&&o.isBoolean(l)&&o.isBoolean(u)&&o.isBoolean(m)&&o.isArray(v)&&o.isFunction(d)))throw new TypeError(`Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${o.getPreciseType(t)}\`, 'convertDates': \`${o.getPreciseType(n)}\`, 'convertNumbers': \`${o.getPreciseType(s)}\`, 'loggingOnFail': \`${o.getPreciseType(i)}\`, 'removeEmptyArrays': \`${o.getPreciseType(a)}\`, 'removeEmptyObjects': \`${o.getPreciseType(c)}\`, 'removeNulls': \`${o.getPreciseType(l)}\`, 'removeUndefined': \`${o.getPreciseType(u)}\`, 'strictMode': \`${o.getPreciseType(m)}\`, 'customDateFormats': \`${o.getPreciseType(v)}\`, 'onError': \`${o.getPreciseType(d)}\`].`);return{convertBooleans:t,convertDates:n,convertNumbers:s,convertNaN:N,loggingOnFail:i,removeEmptyArrays:a,removeEmptyObjects:c,removeNulls:l,removeUndefined:u,strictMode:m,customDateFormats:v,onError:d,checkSymbols:p}},i=(r,t={})=>{var n;const c=s(t);if(o.isNull(r))return c.removeNulls?void 0:null;if(!o.isUndefined(r)){if(o.isString(r)){const e=r.trim();if(c.convertNaN&&"NaN"===e)return NaN;if(c.convertNumbers&&!o.isNaN(Number(e)))return Number(e);if(c.convertBooleans){if("true"===e)return!0;if("false"===e)return!1}if(c.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(e))return new Date(e);if(null==(n=c.customDateFormats)?void 0:n.length)for(const r of c.customDateFormats){const t=a(e,r);if(t)return t}}return c.strictMode?void 0:e}if(o.isArray(r)){const t=r.map(e=>i(e,c)).filter(e=>!o.isUndefined(e));return c.removeEmptyArrays&&e.isEmptyArray(t)?void 0:t}if(o.isObject(r)){const t={};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const n=i(r[e],c);o.isUndefined(n)||(t[e]=n)}return c.removeEmptyObjects&&e.isEmptyObject(t,{checkSymbols:c.checkSymbols})?void 0:t}return c.strictMode?void 0:r}c.removeUndefined},a=(e,r)=>{if(!o.isNonEmptyString(e)||!o.isNonEmptyString(r))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${o.getPreciseType(e)}\` - (current value: \`${t.safeStableStringify(e)}\`), 'format': \`${o.getPreciseType(r)}\` - (current value: \`${t.safeStableStringify(r)}\`)]".`);const n=e.split(/[-/]/).map(Number);if(3!==n.length||n.some(o.isNaN))return null;let s,i,a;if("DD/MM/YYYY"===r)[s,i,a]=n;else{if("MM/DD/YYYY"!==r)return null;[i,s,a]=n}i-=1;const c=new Date(a,i,s);return c.getFullYear()!==a||c.getMonth()!==i||c.getDate()!==s?null:c};exports.cleanParsedData=i,exports.extractDigits=n,exports.parseCustomDate=a,exports.safeJsonParse=function(e,r={}){if(o.isNull(e))return null;const t=s(r);if(t.convertNaN&&(o.isNaN(e)||o.isNonEmptyString(e)&&"NaN"===e))return NaN;if(t.convertNumbers&&!o.isNaN(Number(e))&&o.isNumber(n(e)))return Number(e);if(o.isString(e))try{let r=function(e){const r=new Set(["\\",'"',"/","b","f","n","r","t","u"]);let t="",o=!1,n=!1,s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(s)o?"'"===a?t+="'":r.has(a)?t+="\\"===a?"\\\\":'"'===a?'\\"':"\\"+a:t+="\\\\"+a:n?'"'===a?t+='\\"':r.has(a)?t+="\\"+a:t+="\\\\"+a:t+="\\"+a,s=!1;else if("\\"!==a){if(o||n){if(o){if("'"===a){t+='"',o=!1;continue}}else if(n&&'"'===a){t+='"',n=!1;continue}}else{if("'"===a){t+='"',o=!0;continue}if('"'===a){t+='"',n=!0;continue}}t+=a}else s=!0}return t}(e);r=t.removeUndefined?r.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):r.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r=t.convertNaN?r.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):r.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),r=r.replace(/,(\s*[}\]])/g,"$1");const o=JSON.parse(r);return i(o,t)}catch(e){return t.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",e),void t.onError(o.isError(e)?new Error(e.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(e)))}};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as e}from"./chunk-EW3I4O7X.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
+ 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 i=e=>"string"==typeof e;function s(e){return"number"==typeof e?Number.isNaN(e):"[object Number]"===Object.prototype.toString.call(e)&&Number.isNaN(Number(e).valueOf())}var l=e=>null===e,c=(r,t={})=>{if(e(r))return;const o=D({value:r,options:t,requiredValidType:"boolean"});throw new TypeError(o)},u=(r,t={})=>{x(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;c(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 p(e){return o(e)||a(e)}function y(e,t,o={}){if(!i(e)&&!p(e)&&!r(e))return!1;x(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;c(a,{message:({currentType:e,validType:r})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),c(n,{message:({currentType:e,validType:r})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const y=[];if(i(t)&&t.trim().length>0||u(t,{includeNaN:!0})){(u(t,{includeNaN:!0})?String(t):t).split(".").forEach(e=>{const r=e.match(/^\[(\d+)\]$/),t=e.match(/^Symbol\((.+)\)$/);r?y.push(Number(r[1])):t?y.push(Symbol.for(t[1])):s(Number(e))?y.push(e):y.push(Number(e))})}else{if(!f(t))return!1;y.push(t)}let b=i(e)&&e.trim().length>0?Object(e):e;for(const e of y)if(i(e)&&e.trim().length>0||u(e,{includeNaN:!0})){if(l(b)||!Object.prototype.hasOwnProperty.call(b,e))return!1;b=b[e]}else{if(!f(e))return!1;{if(l(b)||"object"!=typeof b&&!r(b))return!1;const t=Object.getOwnPropertySymbols(b).find(r=>r===e||r.description===e.description);if(!t)return!1;b=b[t]}}return(!a||!m(b))&&(!n||!l(b))}var b=(e,r={})=>{if(!i(e))return!1;x(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!y(r,"trim")||r.trim;c(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};function d(e){return"[object Set]"===Object.prototype.toString.call(e)||e instanceof Set}function g(e){return Array.isArray(e)&&e.length>0}var v=(e,r={lowerCaseNextRest:!0,trim:!1})=>{if(!b(e))return"";n(r)||(r={});const t=!1!==r.lowerCaseNextRest;return!0===r.trim&&(e=e.trim()),e[0].toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},h=(e,r={collapseSpaces:!1,trim:!1})=>{var t,o;if(!b(e))return"";let a=e;n(r)||(r={});const i=!0===r.collapseSpaces;if(!0===r.trim&&(a=a.trim()),i){const e=(null==(t=a.match(/^\s*/))?void 0:t[0])??"",r=(null==(o=a.match(/\s*$/))?void 0:o[0])??"";a=a.trim().replace(/\s+/g," "),a=`${e}${a}${r}`}return a.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},j=e=>{let r="";return o(e)?r=e.map(e=>b(e)?e.trim():"").filter(e=>e.length).join("-"):b(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)},S=e=>{const r=new Set([]),t=e=>e.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(b(e)){const o=t(e);o&&r.add(o)}return g(e)&&e.forEach(e=>{if(b(e)){const o=t(e);o&&r.add(o)}}),d(e)&&e.forEach(e=>{if(b(e)){const o=t(e);o&&r.add(o)}}),r},C=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map((e,r)=>o.has(e)?e:0===r?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},N=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},w=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},T=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(" ")},A=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-")},P=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("_")},R=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(".")},I=(e,r)=>{if(!g(e)&&!b(e))return"";const t=j(e),o=S(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-").replace(/^-+|-+$/g,"")},L=e=>"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error,O=e=>"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e),E=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),$=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),U=Object.entries({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"}).reduce((e,[r,t])=>(e[$(r)]=t,e),{});var B=(e,r)=>"toPascalCaseSpace"===r?N(e,E):"slugify"===r?I(e,E):"toCamelCase"===r?C(e,E):"toDotCase"===r?R(e,E):"toKebabCase"===r?A(e,E):"toPascalCase"===r?w(e,E):"toSnakeCase"===r?P(e,E):T(e,E),F=(e,t={formatCase:"toLowerCase"})=>{var o,i;n(t)||(t={});const c=t.formatCase;if(l(e))return B(U[$("null")]??"Null",c);if(s(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(e instanceof Number)return B("Number Constructor",c);if(e instanceof String)return B("String Constructor",c);if(e instanceof Boolean)return B("Boolean Constructor",c);const u=typeof e;if(!p(e)&&!r(e))return B(U[$(u)]??u,c);if(O(e))return B(U[$("buffer")]??"Buffer",c);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 B(U[$("proxy")]??"Proxy",c);if(a(e)&&r(null==e?void 0:e.next)&&r(null==e?void 0:e.throw))return B(U[$("generator")]??"Generator",c);if(L(e)){const r=(null==(o=e.constructor)?void 0:o.name)??"Error";return B(U[$(r)]??U[$(r.replace(/\s+/g,""))]??r,c)}if(l(Object.getPrototypeOf(e)))return B(U[$("object")]??"Object",c);const f=Object.prototype.toString.call(e).slice(8,-1)||"Object",m=U[$(f)];if(m)return B(m,c);const y=null==(i=null==e?void 0:e.constructor)?void 0:i.name;return B(y&&"Object"!==y?U[$(y)]??y:f,c)};function D(e){const{requiredValidType:t,value:o,options:a}=e||{},{message:i,formatCase:s}=n(a)?a:{},l=A(t),c=F(o,{formatCase:s}),u={currentType:c,validType:l},f=`Parameter input (\`value\`) must be of type \`${l}\`, but received: \`${c}\`.`;return r(i)?b(i(u))?i(u).trim():f:b(i)?i.trim():f}function x(e,r={}){if(n(e))return;const t=D({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}export{c as assertIsBoolean,x as assertIsPlainObject,v as capitalizeFirst,h as capitalizeWords,F as getPreciseType,y as hasOwnProp,o as isArray,e as isBoolean,O as isBuffer,L as isError,r as isFunction,s as isNaN,t as isNil,g as isNonEmptyArray,b as isNonEmptyString,l as isNull,u as isNumber,a as isObject,p as isObjectOrArray,n as isPlainObject,d as isSet,i as isString,f as isSymbol,m as isUndefined,D as resolveErrorMessageAssertions,I as slugify,C as toCamelCase,R as toDotCase,A as toKebabCase,T as toLowerCase,w as toPascalCase,N as toPascalCaseSpace,P as toSnakeCase};
@@ -0,0 +1 @@
1
+ import{assertIsArray as e}from"./chunk-ECRNH4FW.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-EW3I4O7X.js";import{getDefaultConfig as l,extendTailwindMerge as c}from"tailwind-merge-v3";import{getDefaultConfig as f,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 u=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},m=e=>{i(e)||(e={});let{config:a,prefix:l,extend:c,override:f,cacheSize:p,experimentalParseClassName:d}=e;i(a)||(a={}),i(c)||(c={}),i(f)||(f={}),r(p)||(p=void 0),s(l)||(l=void 0),o(d)||(d=void 0);return{config:a,override:f,cacheSize:p,prefix:l,experimentalParseClassName:d,theme:t(c,"theme")?c.theme:{},classGroups:t(c,"classGroups")?c.classGroups:{},conflictingClassGroupModifiers:t(c,"conflictingClassGroupModifiers")?c.conflictingClassGroupModifiers:{},conflictingClassGroups:t(c,"conflictingClassGroups")?c.conflictingClassGroups:{},orderSensitiveModifiers:t(c,"orderSensitiveModifiers")&&n(c.orderSensitiveModifiers)?c.orderSensitiveModifiers:[]}},g=l(),v=(e={})=>{var r,s,o;i(e)||(e={});const{cacheSize:t,classGroups:n,config:a,conflictingClassGroupModifiers:l,conflictingClassGroups:f,override:p,prefix:d,theme:u,experimentalParseClassName:v}=m(e);return c({prefix:d??a.prefix,cacheSize:t||g.cacheSize,experimentalParseClassName:v,override:p,extend:{conflictingClassGroupModifiers:{...g.conflictingClassGroupModifiers,...l},theme:{...g.theme,...u},conflictingClassGroups:{...g.conflictingClassGroups,...f},classGroups:{...g.classGroups,...n,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...(null==(r=a.theme)?void 0:r.fontSize)||{},...(null==(o=null==(s=a.theme)?void 0:s.extend)?void 0:o.fontSize)||{}}).map(e=>`text-${e}`)}}})},x=f(),h=(e={})=>{var r,s,o;i(e)||(e={});const{cacheSize:t,classGroups:n,config:a,conflictingClassGroupModifiers:l,conflictingClassGroups:c,orderSensitiveModifiers:f,override:d,prefix:u,theme:g,experimentalParseClassName:v}=m(e);return p({prefix:u||a.prefix,cacheSize:t||x.cacheSize,experimentalParseClassName:v,override:d,extend:{conflictingClassGroupModifiers:{...x.conflictingClassGroupModifiers,...l},theme:{...x.theme,...g},conflictingClassGroups:{...x.conflictingClassGroups,...c},orderSensitiveModifiers:[...x.orderSensitiveModifiers,...f],classGroups:{...x.classGroups,...n,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...(null==(r=a.theme)?void 0:r.fontSize)||{},...(null==(o=null==(s=a.theme)?void 0:s.extend)?void 0:o.fontSize)||{}}).map(e=>`text-${e}`)}}})},G=v(),C=h(),S=(...e)=>G(u(...e)),M=(...e)=>C(u(...e)),y=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(u(...i))},z=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(u(...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,v as twMergeDefaultV3,h as twMergeDefaultV4};
@@ -0,0 +1 @@
1
+ var r=()=>{};export{r as noop};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-DVMHRLKP.cjs"),t=require("./chunk-ZHV5ZYVN.cjs"),r=require("./chunk-D3VSHABU.cjs");var n=(n,s)=>{if(!e.isInteger(n)||!e.isInteger(s))throw new TypeError(`First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${i(n,s)}value, but received: ['min': \`${r.getPreciseType(n)}\` - (with value: \`${t.safeStableStringify(n)})\`, 'max': \`${r.getPreciseType(s)}\` - (with value: \`${t.safeStableStringify(s)}\`)].`);if(n>s)throw new RangeError(`First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${a(n)}, 'max': ${a(s)}].`);return n=Math.max(1,n),s=Math.min(Number.MAX_SAFE_INTEGER,s),Math.floor(Math.random()*(s-n+1))+n},a=e=>r.isNumber(e,{includeNaN:!0})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${r.getPreciseType(e)}\``,i=(...e)=>e.some(e=>r.isNumber(e,{includeNaN:!0})&&e===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";exports.getRandomItem=function(e){if(!r.isNonEmptyArray(e))return;return e[Math.floor(Math.random()*(e.length||0))]},exports.randomInt=n,exports.randomIntByLength=a=>{r.isPlainObject(a)||(a={});const{minLength:i=1,maxLength:s=16,avoidZero:m=!1}=a;if(r.assertIsBoolean(m,{message:({currentType:e,validType:t})=>`Parameters \`avoidZero\` must be of type \`${t}\`, but received: \`${e}\`.`}),!e.isInteger(i)||!e.isInteger(s))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${r.getPreciseType(i)}\` - (with value: ${t.safeStableStringify(i)}), 'maxLength': \`${r.getPreciseType(s)}\` - (with value: ${t.safeStableStringify(s)})].`);if(i<1||s>16||i>s)throw new RangeError(`Invalid range at parameters \`minLength\` must be ≥ 1, \`maxLength\` must be ≤ 16, and \`minLength\` ≤ \`maxLength\`, but received: ['minLength': \`${i}\`, 'maxLength': \`${s}\`].`);const o=i===s?i:n(i,s),h=10**(o-1);let u=n(h,10**o-1);return m&&0===u&&(u=h),u},exports.randomStr=a=>{r.isPlainObject(a)||(a={});const{minLength:i=40,maxLength:s=40,type:m="string",avoidWhiteSpace:o=!0}=a;if(r.assertIsBoolean(o,{message:({currentType:e,validType:t})=>`Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),!e.isInteger(i)||!e.isInteger(s))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${r.getPreciseType(i)}\` - (with value: ${t.safeStableStringify(i)}), 'maxLength': \`${r.getPreciseType(s)}\` - (with value: ${t.safeStableStringify(s)})].`);if(i<1||s>5e3||i>s)throw new RangeError(`Invalid range at parameters \`minLength\` must be ≥ 1, \`maxLength\` must be ≤ 5000, and \`minLength\` ≤ \`maxLength\`, but received: ['minLength': \`${i}\`, 'maxLength': \`${s}\`].`);if("string"!==m&&"number"!==m)throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${r.getPreciseType(m)}\`, with value: ${t.safeStableStringify(m)}.`);const h=n(i,s),u="number"===m?(r.isNaN(Number(a.replaceGenInt))?void 0:a.replaceGenInt)??"0123456789":(a.replaceGenStr?a.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",g=(c=u,(o?c.replace(/\s|\n|\t/g,""):c)+(a.addChar||""));var c;if(!g.length){throw new Error(`Character set is empty. ${(()=>"number"===m?o?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.")()}`)}let p="";for(let e=0;e<h;e++)p+=g.charAt(Math.floor(Math.random()*g.length));return p};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-UDA26MCU.cjs"),e=require("./chunk-D3VSHABU.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{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-MTUBDVJ2.js";import{isEqual as t,isEmptyArray as n,isRegExp as o,baseDeepEqual as i}from"./chunk-ZTCLKKMB.js";import{parseCurrencyString as u}from"./chunk-EUANTHVN.js";import{isEmptyString as a}from"./chunk-KOVO72OM.js";import{assertIsString as s}from"./chunk-T4CIAKEK.js";import{safeStableStringify as f,isDate as c,isMap as p}from"./chunk-BHIBDDQF.js";import{isArray as m,getPreciseType as l,assertIsBoolean as h,isNonEmptyString as y,assertIsPlainObject as g,isObjectOrArray as b,isFunction as d,isString as v,isNumber as T,isSymbol as $,isSet as j,isPlainObject as w,isNil as N,isBoolean as S,isBuffer as k,isNaN as O,isUndefined as E,isObject as A,isNull as M}from"./chunk-EW3I4O7X.js";var P=(e,r,n=!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': \`${l(e)}\`, 'array2': \`${l(r)}\`].`);if(h(n,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!t(e.length,r.length))return!1;const o=e=>{if(!m(e))return e;return e.map(e=>m(e)?o(e):e).sort((e,r)=>{const t=f(e),n=f(r);return t<n?-1:t>n?1:0})},i=n?o(e):e,u=n?o(r):r;return!!t(i.length,u.length)&&i.every((e,r)=>f(e)===f(u[r]))},x=(e,r)=>t(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},z=(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},B=(e,r,t={})=>{if(!y(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:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==i.length&&i.every(r=>new RegExp(n?`(?<!\\S)${r}(?!\\S)`:r,o.includes("u")?o:o+"u").test(e))},I=(e,r,t={})=>{if(!y(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:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===i.length)return!1;const u=n?`(?<!\\S)(${i.join("|")})(?!\\S)`:`(${i.join("|")})`;return new RegExp(u,o.includes("u")?o:o+"u").test(e)};function K(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var W=(e,r)=>{if(!b(e))return!1;if(!K(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${l(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(m(e)?e.some(e=>W(e,r)):Object.values(e).some(e=>b(e)&&W(e,r)))},U=(e,r)=>{if(!m(e)||!m(r)||n(e)||n(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},F=e=>"[object Arguments]"===Object.prototype.toString.call(e);function V(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}function Z(e){return!d(e)&&b(e)&&V(null==e?void 0:e.length)}function C(e){return b(e)&&V(e.length)}var D=e=>{if(!v(e)&&!T(e))return!1;return 0!==u(e.toString())||"0"===e.toString().trim()},L=(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(o(e)&&o(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)&&L(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(L(r,u)&&L(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)=>L(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=>L(e[t],r[t]))}return!1};function _(e){return!!e&&"object"==typeof e&&1===(null==e?void 0:e.nodeType)&&!w(e)}function H(e){return!!N(e)||(!!(S(e)||T(e,{includeNaN:!0})||$(e))||(d(e)?0===Object.keys(e).length:v(e)||m(e)||F(e)||r(e)?0===e.length:p(e)||j(e)?0===e.size:k(e)?0===e.length:!!w(e)&&0===Object.keys(e).length))}var J=e=>{if(v(e))return a(e);if(T(e))return O(e);if(m(e))return n(e)||e.every(J);if(b(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>J(e[r]))}return!e};function X(e,r,t){return i(e,r,t,new WeakMap)}function G(e,r,t){return q(e,r,t)}function Q(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 Q(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=null==t?void 0:t(n,i,o,e,r);if(E(u)){if(b(n)&&b(i)){if(!G(n,i,t))return!1}else if(!Q(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!N(e)&&(b(e)||d(e))}function oe(e){return"number"==typeof e&&Number.isSafeInteger(e)}var ie=e=>{if(!y(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 A(e)&&!M(e)&&e instanceof WeakMap}export{P as areArraysEqual,x as areObjectsEqual,R as areURLsEqualPath,z as areURLsIdentical,U as arrayHasAnyMatch,W as doesKeyExist,F as isArguments,Z as isArrayLike,C as isArrayLikeObject,D as isCurrencyLike,L as isDeepEqual,_ as isElement,H as isEmpty,J as isEmptyDeep,X as isEqualWith,V as isLength,Y as isMatch,G as isMatchWith,te as isNative,ne as isObjectLoose,K as isPropertyKey,oe as isSafeInteger,ie as isValidURL,ue as isWeakMap,B as textContainsAll,I as textContainsAny};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-JARPXKBM.cjs"),r=require("./chunk-VHAPTHEA.cjs"),t=require("./chunk-CMJ6UYWW.cjs"),i=require("./chunk-ZHV5ZYVN.cjs"),s=require("./chunk-UDA26MCU.cjs"),n=require("./chunk-D3VSHABU.cjs");function a(r,t){if(!1!==t&&"stringOrNumber"!==t&&"primitives"!==t&&"all"!==t)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${n.getPreciseType(t)}\`, with value: \`${i.safeStableStringify(t)}\`.`);if(n.isNaN(r))return"primitives"===t||"all"===t?"NaN":NaN;if(n.isString(r)||n.isNumber(r))return"stringOrNumber"===t||"primitives"===t||"all"===t?String(r):r;if(n.isBoolean(r)||s.isBigInt(r)||n.isNil(r))return"primitives"===t||"all"===t?String(r):r;if(n.isSymbol(r))return"all"===t?r.toString():r;if(n.isFunction(r))return"all"===t?r.toString():r;if(n.isArray(r))return r.map(e=>a(e,t));if(n.isObjectOrArray(r)){if(i.isDate(r))return"all"===t?r.toISOString():r;if(e.isRegExp(r))return"all"===t?r.toString():r;if(n.isError(r)||r instanceof Promise)return"all"===t?r.toString():r;if(n.isSet(r))return"all"===t?[...r].map(e=>a(e,t)):r;if(i.isMap(r))return"all"===t?[...r.entries()].map(([e,r])=>[a(e,t),a(r,t)]):r;const s={};if(n.isObject(r))for(const e of Object.keys(r))s[e]=a(r[e],t);return s}return r}function o(r){if(n.isNil(r))return;if(!n.isArray(r))return[];return r.reduce((r,t)=>{if(!n.isNil(t))if(n.isArray(t)){const i=o(t);i&&!e.isEmptyArray(i)&&r.push(i)}else r.push(t);return r},[])}exports.dedupeArray=(t,s={})=>{r.assertIsArray(t,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),n.assertIsPlainObject(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!!n.hasOwnProp(s,"flatten")&&s.flatten,u=!!n.hasOwnProp(s,"forceToString")&&s.forceToString;if(!1!==u&&"stringOrNumber"!==u&&"primitives"!==u&&"all"!==u)throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${n.getPreciseType(u)}\`, with value: \`${i.safeStableStringify(u)}\`.`);n.assertIsBoolean(o,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const l=r=>{const t=[];return r.reduce((r,i)=>{const s=n.isArray(i)?l(i):a(i,u);return t.some(r=>e.isEqual(r,s))||(t.push(s),r.push(s)),r},[])},p=e=>n.isArray(e)?e.flatMap(p):n.isSet(e)?[...e].flatMap(p):i.isMap(e)?[...e.values()].flatMap(p):[e];return l(o?p(t):t)},exports.filterNilArray=o,exports.toStringArrayUnRecursive=function(e,r={}){n.assertIsPlainObject(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!n.hasOwnProp(r,"removeInvalidValue")||r.removeInvalidValue;if(n.assertIsBoolean(i,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n.isArray(e)){const r=Array.from(e,e=>n.isString(e)||t.isFinite(e)||n.isBoolean(e)||s.isBigInt(e)?String(e):n.isNull(e)?null:void 0);return i?o(r):r}},exports.toStringDeepForce=a;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-O7UT5AN3.cjs"),t=require("./chunk-CMJ6UYWW.cjs"),r=require("./chunk-2HSNUPEO.cjs"),n=require("./chunk-4Z75R3IT.cjs"),i=require("./chunk-VCFXNV3Q.cjs"),a=require("./chunk-DVMHRLKP.cjs"),s=require("./chunk-ZHV5ZYVN.cjs"),o=require("./chunk-D3VSHABU.cjs"),p=require("date-fns/locale"),c=require("date-fns"),l=(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};var u=(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,m=(e,t,r,n)=>{if(e.length<=t)return"*".repeat(e.length);const i=e.split(""),a=Math.max(t,Math.ceil(e.length*r)),s=new Set;let p=0;for(;s.size<a;){const t=o.isUndefined(n)?Math.floor(Math.random()*e.length):(n+e.length+31*p)%e.length;s.add(t),p++}for(const e of s)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: \`${s.safeStableStringify(r)}\`.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return"";const[n,i]=e.split("@"),a=i.split(".");if(a.length<2)return"";const[p,...c]=a,l=c.join("."),f=u(r,e),d=n.length<4?1:2,g=p.length<4?1:2;return`${m(n,d,.6,f)}@${m(p,g,.5,f)}.${l.length<=2?l:m(l,1,.4,f)}`},exports.chunkString=function(e,t,n={}){if(o.isNil(e)||t<=0)return e;if(i.assertIsString(e,{message:({currentType:e,validType:t})=>`First parameter (\`subject\`) must be of type \`${t}\`, but received: \`${e}\`.`}),!a.isInteger(t))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${o.getPreciseType(t)}\`, with value: \`${s.safeStableStringify(t)}\`.`);o.assertIsPlainObject(n,{message:({currentType:e,validType:t})=>`Third parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const p=o.hasOwnProp(n,"separator")?n.separator:" ",c=!!o.hasOwnProp(n,"reCountAfterSpace")&&n.reCountAfterSpace;if(i.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(c,{message:({currentType:e,validType:t})=>`Parameter \`reCountAfterSpace\` property of the \`options\` (third parameter) must be of type \`${t}\`, but received: \`${e}\`.`}),e=r.normalizeSpaces(e),!c){let r="",n=0;for(let i=0;i<e.length;i++){n===t&&(r+=p,n=0),r+=e[i],n++}return r}const l=e.split(" "),u=[];let m=[],f=0;for(let e=0;e<l.length;e++){const r=l[e];let n="",i=0;for(let e=0;e<r.length;e++)n+=r[e],i++,i===t&&e<r.length-1&&(n+=p,i=0);m.push(n),f++,f!==t&&e!==l.length-1||(u.push(m.join(p)),m=[],f=0)}return u.join(" ")},exports.formatCurrency=(r,n={})=>{if(!o.isString(r)&&!t.isFinite(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${o.getPreciseType(r)}\`, with value: \`${s.safeStableStringify(r)}\`.`);o.assertIsPlainObject(n,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const p=!!o.hasOwnProp(n,"decimal")&&n.decimal,c=o.hasOwnProp(n,"totalDecimal")?n.totalDecimal:2,u=!o.hasOwnProp(n,"endDecimal")||n.endDecimal,m=!!o.hasOwnProp(n,"indianFormat")&&n.indianFormat,f=o.hasOwnProp(n,"suffixCurrency")?n.suffixCurrency:"",d=o.hasOwnProp(n,"suffixDecimal")?n.suffixDecimal:"",g=o.hasOwnProp(n,"roundedDecimal")?n.roundedDecimal:"round",y=o.hasOwnProp(n,"negativeFormat")?n.negativeFormat:"dash";let h=o.hasOwnProp(n,"separatorDecimals")?n.separatorDecimals:",",b=o.hasOwnProp(n,"separator")?n.separator:".";if(!(o.isString(b)&&o.isString(h)&&o.isString(f)&&o.isString(d)))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(b)}\`, 'separatorDecimals': \`${o.getPreciseType(h)}\`, 'suffixCurrency': \`${o.getPreciseType(f)}\`, 'suffixDecimal': \`${o.getPreciseType(d)}\`].`);if(!o.isBoolean(p)||!o.isBoolean(u)||!o.isBoolean(m))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(u)}\`, 'indianFormat': \`${o.getPreciseType(m)}\`].`);if(!a.isInteger(c))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${o.getPreciseType(c)}\`, with value: \`${s.safeStableStringify(length)}\`.`);if(!1!==g&&"round"!==g&&"ceil"!==g&&"floor"!==g)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(g)}\`, with value: \`${s.safeStableStringify(g)}\`.`);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: \`${s.safeStableStringify(y)}\`.`);const S=o.isString(r)?e.parseCurrencyString(r):r;if(o.isNaN(S))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let $="",P="",w=Math.abs(S);const T=Math.pow(10,c);if(g){const e=w*T;switch(g){case"round":w=Math.round(e)/T;break;case"ceil":w=Math.ceil(e)/T;break;case"floor":w=Math.floor(e)/T}}if(g)[$,P]=w.toFixed(c).split("."),P=P??"".padEnd(c,"0");else{const e=String(w).split(".");$=e[0],P=(e[1]||"").slice(0,c).padEnd(c,"0")}let v;if(m?(b=",",h=".",v=(f.trim().length?f:"")+l($,b)):v=(f.trim().length?f:"")+$.replace(/\B(?=(\d{3})+(?!\d))/g,b),p&&!o.isUndefined(P)&&c>0){let e=h+P;u&&(e+=d),v+=e}if(S<0)if("dash"===y)v="-"+v;else if("brackets"===y)v="("+v+")";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(v);i.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}\`.`}),v=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: \`${s.safeStableStringify(e)}\`.`);switch(e){case"dash":v="-"+(t?" ":"")+v;break;case"brackets":v=t?`( ${v} )`:`(${v})`}}return v},exports.formatDateFns=(e,t={})=>{if(o.isNil(e)||!c.isDate(e)&&!o.isNonEmptyString(e))return null;o.isPlainObject(t)||(t={});const{inputFormat:r,locale:n="en",inputLocale:i="en",...a}=t,s=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?p.id:p.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?p.id:p.enUS:n;return c.format(l,s,{...a,locale:t})}catch{return null}},exports.formatDateIntl=(e,t)=>{if(o.isNil(e)||!c.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)||!c.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())},a=Object.entries(i).reduce((e,[t,r])=>e.split(t).join(r),t);return a.includes("NaN")?null:a}catch{return null}},exports.formatNumber=(e,r=",")=>{if(!o.isString(e)&&!t.isFinite(e))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${o.getPreciseType(e)}\`.`);if(!o.isString(r))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${o.getPreciseType(r)}\`.`);const n="."===(r=o.isString(r)?r:",")?",":".",i=e.toString().trim(),a=i.lastIndexOf("."),s=i.lastIndexOf(",");let p="";a>s?p=".":s>a&&(p=",");let c=i,l="";if(p){const e=i.split(p);c=e.slice(0,-1).join(p),l=e.slice(-1)[0]}c=c.replace(/[^\d]/g,"");const u=c.replace(/\B(?=(\d{3})+(?!\d))/g,r);return l?`${u}${n}${l}`:u},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,"separator")?t.separator:" ",n=!!o.hasOwnProp(t,"takeNumberOnly")&&t.takeNumberOnly,i=!!o.hasOwnProp(t,"checkValidOnly")&&t.checkValidOnly,a=o.hasOwnProp(t,"plusNumberCountry")?t.plusNumberCountry:"",s=o.hasOwnProp(t,"openingNumberCountry")?t.openingNumberCountry:"",p=o.hasOwnProp(t,"closingNumberCountry")?t.closingNumberCountry:"";if(!o.isBoolean(n)||!o.isBoolean(i))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${o.getPreciseType(n)}\`, 'checkValidOnly': \`${o.getPreciseType(i)}\`].`);if(!(o.isString(r)&&o.isString(a)&&o.isString(s)&&o.isString(p)))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(r)}\`, 'plusNumberCountry': \`${o.getPreciseType(a)}\`, 'openingNumberCountry': \`${o.getPreciseType(s)}\`, 'closingNumberCountry': \`${o.getPreciseType(p)}\`].`);if(o.isString(e)||(e=String(e)),n)return e.replace(/\D/g,"");if(i)return/^(\+)?[0-9\s().-]+$/.test(e)&&e.replace(/\D/g,"").length<24;e=e.replace(/\D/g,"");let c=a.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(c)&&(c="+"+c.replace(/^\++/,""));let l="",u="";({7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"})[c.replace(/^\+/,"").replace(/[^\d]/g,"")]&&e.startsWith("0")?(l=e.slice(1,4),u=e.slice(4)):(l=e.slice(0,4),u=e.slice(4));const m=c.trim(),f=s.trim(),d=p.trim();let g="";g=m?f&&d?`${f}${m}${d} ${l}`:f&&!d?`${f}${m} ${l}`:!f&&d?`${m}${d} ${l}`:`${m} ${l}`:`${l}`;const y={0:r,4:r,8:r,12:r,16:r,20:r,24:r};for(let e=0;e<u.length;e++){g+=(y[e+l.length]||"")+u[e]}return g},exports.getGMTOffset=e=>{try{if(o.isNil(e)||o.isString(e)&&n.isEmptyString(e))e=new Date;else if(!c.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 i=t.getTimezoneOffset();const a=i<0?"+":"-";return i=Math.abs(i),`${a}${r(Math.floor(i/60))}${r(i%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 c=o.hasOwnProp(t,"ending")?t.ending:"...";if(!a.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: \`${s.safeStableStringify(p)}\`.`);if(p<1)return"";i.assertIsString(c,{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}\`.`}),c=n.isEmptyString(c)?"...":c.trim();const l=r?e.trim():e;if(l.length<=p)return l;const u=l.slice(0,p);return(r?u:u.trimEnd())+c};
@@ -0,0 +1 @@
1
+ "use strict";var s=require("./chunk-D3VSHABU.cjs"),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"]);exports.extractFileName=r=>{if(!s.isNonEmptyString(r))return;let e=r.split("/").pop();if(""===e)return"";if(e){for(const s of t){const a=`.${s}`;if(e.toLowerCase().endsWith(a))return e.slice(0,-a.length)}for(;;){const s=e.lastIndexOf(".");if(-1===s)break;const t=e.slice(s+1).toLowerCase();if(!a.has(t))break;e=e.slice(0,s)}return e}};
@@ -0,0 +1 @@
1
+ import{isEmptyArray as e,isEmptyObject as r}from"./chunk-ZTCLKKMB.js";import{isEmptyString as o}from"./chunk-KOVO72OM.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-EW3I4O7X.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)?o(u):n(u)?e(u):!!y(u)&&r(u,{checkSymbols:b}))};export{u as isEmptyValue};
@@ -0,0 +1 @@
1
+ "use strict";exports.isServer=()=>"undefined"==typeof window||"undefined"==typeof document;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-ZHV5ZYVN.cjs"),r=require("./chunk-D3VSHABU.cjs"),t=e=>e instanceof RegExp;function n(e){return e instanceof ArrayBuffer}function s(i,f,o,u=new WeakMap){if(i===f)return!0;if(i!=i&&f!=f)return!0;if(!r.isObjectOrArray(i)||!r.isObjectOrArray(f))return!1;if(u.get(i)===f)return!0;u.set(i,f);const a=(e,t,n,i,f)=>{if(o){const s=o(e,t,n,i,f,u);if(!r.isUndefined(s))return s}return s(e,t,o,u)};if(e.isDate(i)&&e.isDate(f))return i.getTime()===f.getTime();if(t(i)&&t(f))return i.source===f.source&&i.flags===f.flags;if(r.isError(i)&&r.isError(f))return i.name===f.name&&i.message===f.message;if(ArrayBuffer.isView(i)&&ArrayBuffer.isView(f)){const e=new Uint8Array(i.buffer,i.byteOffset,i.byteLength),r=new Uint8Array(f.buffer,f.byteOffset,f.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(i)&&n(f)){if(i.byteLength!==f.byteLength)return!1;const e=new Uint8Array(i),r=new Uint8Array(f);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(e.isMap(i)&&e.isMap(f)){if(i.size!==f.size)return!1;for(const[e,r]of i){if(!f.has(e))return!1;if(!s(r,f.get(e),o,u))return!1}return!0}if(r.isSet(i)&&r.isSet(f)){if(i.size!==f.size)return!1;for(const e of i){let r=!1;for(const t of f)if(s(e,t,o,u)){r=!0;break}if(!r)return!1}return!0}if(r.isArray(i)&&r.isArray(f)){if(i.length!==f.length)return!1;for(let e=0;e<i.length;e++)if(!a(i[e],f[e],e,i,f))return!1;return!0}if(Object.getPrototypeOf(i)!==Object.getPrototypeOf(f))return!1;const c=Reflect.ownKeys(i),y=Reflect.ownKeys(f);if(c.length!==y.length)return!1;for(const e of c){if(!a(i[e],f[e],e,i,f))return!1}return!0}exports.baseDeepEqual=s,exports.isArrayBuffer=n,exports.isEmptyArray=e=>!r.isArray(e)||0===e.length,exports.isEmptyObject=function(e,t={}){if(!r.isObject(e))return!0;r.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!!r.hasOwnProp(t,"checkSymbols")&&t.checkSymbols;r.assertIsBoolean(n,{message:({currentType:e,validType:r})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const s=0===Object.keys(e).length;return n?s&&0===Object.getOwnPropertySymbols(e).length:s},exports.isEqual=function(e,r){return s(e,r,void 0,new WeakMap)},exports.isRegExp=t;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-DVMHRLKP.cjs"),r=require("./chunk-ZHV5ZYVN.cjs"),n=require("./chunk-D3VSHABU.cjs");exports.delay=(t=1e3,i)=>{if(!e.isInteger(t)||t<=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: \`${n.getPreciseType(t)}\`, with value: \`${r.safeStableStringify(t)}\`.`);if(n.isNull(i)||i&&!(i instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((e,r)=>{const n=setTimeout(()=>{o(),e()},t),o=()=>{clearTimeout(n),i&&i.removeEventListener("abort",a)},a=()=>{o(),r(new DOMException("Function `delay` aborted","AbortError"))};i&&(i.aborted?a():i.addEventListener("abort",a,{once:!0}))})};
@@ -0,0 +1 @@
1
+ import{isURL as r}from"./chunk-ONZFBJVW.js";import{toStringArrayUnRecursive as e}from"./chunk-ORZFHBEY.js";import{isEmptyValue as t}from"./chunk-IRGE5W7L.js";import{assertIsArray as n}from"./chunk-ECRNH4FW.js";import{normalizeString as o}from"./chunk-MISCBZJC.js";import{isEmptyString as a}from"./chunk-KOVO72OM.js";import{safeStableStringify as s}from"./chunk-BHIBDDQF.js";import{isString as i,getPreciseType as c,isUndefined as m,isNonEmptyString as u,isFunction as p,isNumber as h,isError as l}from"./chunk-EW3I4O7X.js";var f=(f,y,d)=>{if(i(f)){if(a(f))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");f=o(f)}else if(!r(f))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${c(f)}\`, with current value: \`${s(f)}\`.`);if(!m(d)&&(n(d,{message:({currentType:r,validType:e})=>`Third parameter (\`removeParams\`) must be of type \`${e} of strings\`, but received: \`${r}\`.`}),!d.every(r=>u(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!m(y)&&!p(y[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(y)}\`, with value: \`${s(y)}\`.`);const r=new URL(f);if(!m(y)){const n=Object.fromEntries(y);if(!t(n)){const t=new URLSearchParams(r.search);for(const[r,e]of Object.entries(n)){if(!u(e)&&!h(e,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(y)}\`, with value: \`${s(y)}\`.`);t.set(r,String(e))}(null==d?void 0:d.length)&&e(d).map(r=>{t.delete(r)}),r.search=t.toString()}}return null==d||d.forEach(e=>r.searchParams.delete(e)),r}catch(r){if(l(r))throw r;throw new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}},y=r=>{if(!u(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};export{f as constructURL,y as extractURLs};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-KHO2SBNA.cjs"),e=require("./chunk-H3FXL4DU.cjs"),t=require("./chunk-M47QIBXI.cjs"),n=require("./chunk-VHAPTHEA.cjs"),i=require("./chunk-2HSNUPEO.cjs"),s=require("./chunk-4Z75R3IT.cjs"),a=require("./chunk-ZHV5ZYVN.cjs"),o=require("./chunk-D3VSHABU.cjs");exports.constructURL=(c,u,l)=>{if(o.isString(c)){if(s.isEmptyString(c))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");c=i.normalizeString(c)}else if(!r.isURL(c))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${o.getPreciseType(c)}\`, with current value: \`${a.safeStableStringify(c)}\`.`);if(!o.isUndefined(l)&&(n.assertIsArray(l,{message:({currentType:r,validType:e})=>`Third parameter (\`removeParams\`) must be of type \`${e} of strings\`, but received: \`${r}\`.`}),!l.every(r=>o.isNonEmptyString(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!o.isUndefined(u)&&!o.isFunction(u[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${o.getPreciseType(u)}\`, with value: \`${a.safeStableStringify(u)}\`.`);const r=new URL(c);if(!o.isUndefined(u)){const n=Object.fromEntries(u);if(!t.isEmptyValue(n)){const t=new URLSearchParams(r.search);for(const[r,e]of Object.entries(n)){if(!o.isNonEmptyString(e)&&!o.isNumber(e,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${o.getPreciseType(u)}\`, with value: \`${a.safeStableStringify(u)}\`.`);t.set(r,String(e))}(null==l?void 0:l.length)&&e.toStringArrayUnRecursive(l).map(r=>{t.delete(r)}),r.search=t.toString()}}return null==l||l.forEach(e=>r.searchParams.delete(e)),r}catch(r){if(o.isError(r))throw r;throw new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}},exports.extractURLs=r=>{if(!o.isNonEmptyString(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};
@@ -0,0 +1 @@
1
+ "use strict";exports.isURL=s=>s instanceof URL;
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r}from"./chunk-EW3I4O7X.js";var o=(o,m={})=>!r(o,m);export{o as isEmptyString};
@@ -0,0 +1 @@
1
+ import{isNonEmptyValue as e,isTypedArray as r}from"./chunk-MTUBDVJ2.js";import{filterNilArray as t}from"./chunk-ORZFHBEY.js";import{isEmptyObject as o,isEmptyArray as n,isRegExp as m}from"./chunk-ZTCLKKMB.js";import{assertIsArray as i}from"./chunk-ECRNH4FW.js";import{isFinite as s}from"./chunk-OWV2P376.js";import{isEmptyString as a}from"./chunk-KOVO72OM.js";import{assertIsString as y}from"./chunk-T4CIAKEK.js";import{safeStableStringify as p,isMap as c,isDate as u}from"./chunk-BHIBDDQF.js";import{isBigInt as f}from"./chunk-QNKGP5DY.js";import{assertIsPlainObject as v,hasOwnProp as l,assertIsBoolean as b,isArray as d,isNull as E,isNil as j,isString as A,isNonEmptyString as O,isBoolean as h,isNumber as g,isObject as T,isPlainObject as $,getPreciseType as k,isNaN as S,isUndefined as R,isSet as N,isBuffer as I,isFunction as w,isObjectOrArray as P}from"./chunk-EW3I4O7X.js";function B(e,r={}){v(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!l(r,"removeInvalidValueNumber")||r.removeInvalidValueNumber;if(b(o,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),d(e)){const r=Array.from(e,e=>{if(f(e))return Number(e);const r=String(e).trim().match(/-?\d+(\.\d+)?/);return r?Number(r[0]):E(e)?null:void 0});return o?t(r):r}}var D=r=>!j(r)&&(A(r)?O(r):h(r)?r:g(r,{includeNaN:!0})?0!==r:d(r)||T(r)?e(r):Boolean(r)),C=e=>!j(e)&&(A(e)?O(e):h(e)?e:g(e,{includeNaN:!0})?0!==e:d(e)?e.some(C):!!T(e)&&Object.values(e).some(C)),K=(e,r={})=>{if(j(e))return!1;$(r)||(r={});const t=!!l(r,"caseInsensitive")&&r.caseInsensitive,o=!l(r,"trimString")||r.trimString,n=!!l(r,"includeIndeterminate")&&r.includeIndeterminate;if(!h(t)||!h(o)||!h(n))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${k(t)}\`, 'trimString': \`${k(o)}\`, 'includeIndeterminate': \`${k(n)}\`].`);if(A(e)){let r=e;o&&(r=r.trim()),t&&(r=r.toLowerCase());const m=["true","on","yes","1"];return n&&m.push("indeterminate"),m.includes(r)}return g(e)?1===e:!!h(e)&&e},V=e=>!j(e)&&(A(e)?!a(e):h(e)?e:g(e,{includeNaN:!0})?0!==e:d(e)?e.length>0:Boolean(e)),F=e=>{const r={undefined:void 0,null:null,nan:NaN,true:!0,false:!1,yes:!0,no:!1};if(A(e)){const t=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(r,t))return r[t];const o=t.replace(/,/g,""),n=Number(o);return!S(n)&&O(o)?n:e.trim()}return e},H=(e,r)=>{if(!P(e))return e;const[t,...o]=r;if(d(e))for(const t of e)P(t)&&H(t,r);else n(o)?$(e)&&delete e[t]:$(e)&&P(e[t])&&H(e[t],o);return e},J=(e,r)=>{if(!$(e))return e;const[t,...o]=r;return 0===o.length?$(e)&&delete e[t]:$(e[t])&&J(e[t],o),e};function L(e,r,t=!0){if(o(e,{checkSymbols:!0}))return{};if(i(r,{message:({currentType:e,validType:t})=>`Second parameter (\`keysToDelete\`) must be of type \`${t}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${e}\`, with value: \`${p(r)}\`.`}),!r.every(e=>$(e)&&"key"in e))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: \`${p(r)}\`.`);let n=t?(e=>{try{if(w(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))})(e):e;for(const{key:e,deep:t}of r){if(y(e,{message:({currentType:e,validType:r})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${r}\`, but received: \`${e}\`.`}),!R(t)&&!h(t))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) ➔ (key: "${e}", deep: ${t}) must be of type \`boolean\` or \`undefined\`, but received: \`${k(t)}\`.`);const r=e.split(".");n=t?H(n,r):J(n,r)}return n}function M(e,t={}){v(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});return function e(t,m){if(j(t))return;const{removeEmptyArrays:i,removeEmptyObjects:a,isRoot:y}=m;if(!h(a)||!h(i))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${k(a)}\`, 'removeEmptyArrays': \`${k(i)}\`].`);if(g(t)||O(t)&&!S(Number(t))){const e=Number(t);return s(e)?e:void 0}if(d(t)){const r=t.map(r=>e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}if(N(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}if(c(t)){let r=Array.from(t.entries()).map(([r,t])=>{const o=e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1}),n=e(t,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1});return R(o)||R(n)?void 0:[o,n]}).filter(e=>!R(e));if(i&&(r=r.filter(e=>!(d(e)&&0===e.length))),i&&n(r))return;return r}if(I(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}if(r(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}{const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}}if(u(t))return S(t.getTime())?0:t.getTime();if(T(t)){const r={};for(const[o,n]of Object.entries(t)){const t=e(n,{removeEmptyObjects:a,removeEmptyArrays:i,isRoot:!1});R(t)||(r[o]=t)}return a&&o(r)?y?{}:void 0:r}}(e,{removeEmptyObjects:!!l(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!l(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})}function U(e,t={}){v(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});return function e(t,o){if(j(t))return;const{removeEmptyArrays:i,removeEmptyObjects:s,isRoot:a}=o;if(!h(s)||!h(i))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${k(s)}\`, 'removeEmptyArrays': \`${k(i)}\`].`);if(g(t)||A(t))return String(t);if(u(t))return t.toISOString();if(m(t))return t.toString();if(I(t))return Array.from(t).map(e=>String(e)).filter(e=>!R(e));if(r(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1})).map(e=>String(e)).filter(e=>!R(e));if(i&&n(r))return;return r}{const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1})).map(e=>String(e)).filter(e=>!R(e));if(i&&n(r))return;return r}}if(N(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&n(r))return;return r}if(c(t)){const r=Array.from(t.entries()).map(([r,t])=>[e(r,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1}),e(t,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1})]).filter(([e,r])=>!R(e)&&!R(r));if(i&&n(r))return;return r}if(d(t)){let r=t.map(r=>e(r,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1})).filter(e=>!R(e));if(i&&(r=r.filter(e=>!(d(e)&&0===e.length))),i&&n(r))return;return r}if(T(t)){const r={};for(const[o,n]of Object.entries(t)){const t=e(n,{removeEmptyObjects:s,removeEmptyArrays:i,isRoot:!1});R(t)?d(n)&&!i&&(r[o]=[]):r[o]=t}return s&&0===Object.keys(r).length?a?{}:void 0:r}}(e,{removeEmptyObjects:!!l(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!l(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})}export{F as convertType,L as removeObjectPaths,D as toBooleanContent,C as toBooleanContentDeep,K as toBooleanExplicit,V as toBooleanLoose,B as toNumberArrayUnRecursive,M as toNumberDeep,U as toStringDeep};
@@ -0,0 +1 @@
1
+ import{removeSpaces as e}from"./chunk-MISCBZJC.js";import{isEmptyString as r}from"./chunk-KOVO72OM.js";import{isInteger as t}from"./chunk-WVSPXFTY.js";import{safeStableStringify as n}from"./chunk-BHIBDDQF.js";import{isString as o,isArray as a,getPreciseType as i,isNull as s,isPlainObject as u,isBoolean as p,isNonEmptyArray as c,isNonEmptyString as m,isNil as f,isError as l,assertIsPlainObject as h,hasOwnProp as y}from"./chunk-EW3I4O7X.js";var d=class e extends Error{constructor(r,t){super(r),this.originalError=t,this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},b=(e,r=null,f={})=>{const l=[];o(e)||a(e)||l.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${i(e)}\`.`),o(r)||a(r)||s(r)||l.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${i(r)}\`.`),u(f)||l.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${i(f)}\`.`);const{levels:h=1,removeDuplicates:y=!0}=f;if((!t(h)||t(h)&&h<0)&&l.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${i(h)}\`, with value: \`${n(h)}\`.`),p(y)||l.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${i(y)}\`.`),c(l))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:\n- ${l.join("\n- ")}`);function d(e){return`/${$(e).split("/").filter(Boolean).slice(0,h).join("/")}`}function b(e){if(r){if(e=$(e),a(r)){for(const t of r)if(e.startsWith($(t)))return d(e)}else if(m(r)&&e.startsWith($(r)))return d(e);return null}return d(e)}if(a(e)){const r=e.map(b).filter(e=>!s(e)),t=y?[...new Set(r)]:r;return 1===t.length?t[0]:t}return b(e)},v=(e,r="/")=>{if(!m(r))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${i(r)}\`, with value: \`${n(r)}\`.`);if(a(e)){if(!e.every(e=>o(e)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${i(e)}\`, with value: \`${n(e)}\`.`);for(const r of e){const e=$(r);if("/"!==e)return e}return $(r)}if(o(e)){const t=$(e);return"/"!==t?t:$(r)}if(!f(e))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${i(e)}\`.`);return $(r)},$=(r,t="/")=>{if(!m(t))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${i(t)}\`, with value: \`${n(t)}\`.`);if(!m(r))return t;try{if((r=(r=e(r,{trimOnly:!0})).replace(/\s+/g,"")).startsWith("http://")||r.startsWith("https://")){const e=new URL(r);return`${e.pathname}${e.search}${e.hash}`.replace(/^\/+/,"/")}return"/"+r.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(e){const r=l(e)?e:new Error("Unknown error from function `normalizePathname()`.");throw new d(`Failed to normalize pathname in function \`normalizePathname()\`: ${r.message}`,r)}},w=(e,t={})=>{if(!m(e))return"";h(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!!y(t,"prefixColon")&&t.prefixColon;if(!p(n))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${i(n)}\`.`);const o=e.replace(/\D+/g,"");return r(o)?"":n?`:${o}`:o};export{w as formatEnvPort,v as getFirstPrefixPathname,b as getPrefixPathname,$ as normalizePathname};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-JARPXKBM.cjs"),s=require("./chunk-4Z75R3IT.cjs"),r=require("./chunk-D3VSHABU.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)?s.isEmptyString(t):r.isArray(t)?e.isEmptyArray(t):!!r.isObject(t)&&e.isEmptyObject(t,{checkSymbols:i}))};
@@ -0,0 +1 @@
1
+ var e=()=>"undefined"==typeof window||"undefined"==typeof document;export{e as isServer};
@@ -0,0 +1 @@
1
+ import{isEmptyString as r}from"./chunk-KOVO72OM.js";import{isNonEmptyString as t,isPlainObject as i,isString as n}from"./chunk-EW3I4O7X.js";var e=(r,n={withTrim:!0,trimOnly:!1})=>{if(!t(r))return"";i(n)||(n={});const{trimOnly:e=!1,withTrim:m=!0}=n;return e?r.trim():(m&&(r=r.trim()),r.replace(/\s+/g," "))},m=r=>t(r)?r.trim():"",u=(r,n={trimOnly:!1})=>{if(!t(r))return"";i(n)||(n={});const{trimOnly:e=!1}=n;return e?r.trim():r.replace(/\s+/g,"")};function c(t){if(!n(t))return;if(r(t))return"";return t.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()}export{e as normalizeSpaces,m as normalizeString,u as removeSpaces,c as stripHtmlTags};
@@ -1 +1 @@
1
- 'use strict';
1
+ "use strict";
@@ -0,0 +1 @@
1
+ import{isEmptyValue as t}from"./chunk-IRGE5W7L.js";var r=(r,o={})=>!t(r,o),o=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);function e(t){return null!=t&&"object"==typeof t&&o.has(Object.prototype.toString.call(t))}export{r as isNonEmptyValue,e as isTypedArray};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-D3VSHABU.cjs");exports.parseCurrencyString=l=>{if(!e.isNonEmptyString(l))return 0;let c=l.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),r=!1;/^\(.*\)$/.test(c)&&(r=!0,c=c.slice(1,-1).trim()),c=c.replace(/^[-\s]+/,e=>e.includes("-")?"-":"").replace(/[\s.,-]+$/,""),r=r||/^-/.test(c)||/^[^\d]*-/.test(c);let s=c.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,"");const t=s.match(/,\d{2}/g);if(t&&t.length>1)s=s.replace(/,/g,"");else{const e=(s.match(/\./g)||[]).length,l=(s.match(/,/g)||[]).length;if(e>1&&0===l)s=s.replace(/\./g,"");else if(l>1&&0===e)s=s.replace(/,/g,"");else{const e=s.lastIndexOf(","),l=s.lastIndexOf(".");if(e>l)s=s.replace(/\./g,"").replace(",",".");else if(l>e)s=s.replace(/,/g,"");else if(e>l){const l=s.slice(0,e).replace(/,/g,"").replace(/\./g,""),c=s.slice(e+1);s=l+"."+c}else if(l>e){const e=s.slice(0,l).replace(/\./g,"").replace(/,/g,""),c=s.slice(l+1);s=e+"."+c}else-1!==e?s=s.replace(/,/g,""):-1!==l&&(s=s.replace(/\./g,""))}}const a=parseFloat(s)||0;return r?-a:a};
@@ -0,0 +1 @@
1
+ import{isBigInt as r}from"./chunk-QNKGP5DY.js";import{resolveErrorMessageAssertions as e,hasOwnProp as o,isNumber as i}from"./chunk-EW3I4O7X.js";var n=(o,i={})=>{if(r(o))return;const n=e({value:o,options:i,requiredValidType:"big int"});throw new TypeError(n)},t=(r,n={})=>{const t=o(n,"includeNaN")?n.includeNaN:void 0;if(i(r,{includeNaN:t}))return;const u=e({value:r,options:n,requiredValidType:"number"});throw new TypeError(u)};export{n as assertIsBigInt,t as assertIsNumber};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-KHO2SBNA.cjs"),r=require("./chunk-6C3ATUGM.cjs"),t=require("./chunk-JARPXKBM.cjs"),s=require("./chunk-O7UT5AN3.cjs"),i=require("./chunk-4Z75R3IT.cjs"),n=require("./chunk-VCFXNV3Q.cjs"),a=require("./chunk-ZHV5ZYVN.cjs"),o=require("./chunk-D3VSHABU.cjs");function u(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var c=(e,r)=>{if(!o.isObjectOrArray(e))return!1;if(!u(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${o.getPreciseType(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(o.isArray(e)?e.some(e=>c(e,r)):Object.values(e).some(e=>o.isObjectOrArray(e)&&c(e,r)))},p=e=>"[object Arguments]"===Object.prototype.toString.call(e);function y(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}var f=(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(a.isDate(e)&&a.isDate(r))return e.getTime()===r.getTime();if(t.isRegExp(e)&&t.isRegExp(r))return e.toString()===r.toString();if(o.isSymbol(e)&&o.isSymbol(r))return e.toString()===r.toString();if(o.isSet(e)&&o.isSet(r)){if(e.size!==r.size)return!1;const t=Array.from(r),s=new Set;for(const r of e){let e=!1;for(let i=0;i<t.length;i++)if(!s.has(i)&&f(r,t[i])){s.add(i),e=!0;break}if(!e)return!1}return!0}if(a.isMap(e)&&a.isMap(r)){if(e.size!==r.size)return!1;const t=Array.from(r),s=new Set;for(const[r,i]of e){let e=!1;for(let n=0;n<t.length;n++){if(s.has(n))continue;const[a,o]=t[n];if(f(r,a)&&f(i,o)){s.add(n),e=!0;break}}if(!e)return!1}return!0}if(o.isArray(e)&&o.isArray(r))return e.length===r.length&&e.every((e,t)=>f(e,r[t]));if(o.isObjectOrArray(e)&&o.isObjectOrArray(r)&&e&&r){if(o.isArray(e)!==o.isArray(r))return!1;const t=Object.keys(e),s=Object.keys(r);return t.length===s.length&&t.every(t=>f(e[t],r[t]))}return!1};var l=e=>{if(o.isString(e))return i.isEmptyString(e);if(o.isNumber(e))return o.isNaN(e);if(o.isArray(e))return t.isEmptyArray(e)||e.every(l);if(o.isObjectOrArray(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>l(e[r]))}return!e};function m(e,r,t){return g(e,r,t)}function b(e,r){return e===r||0===e&&0===r||Number.isNaN(e)&&Number.isNaN(r)}function g(e,r,t){if(e===r)return!0;if(!o.isObjectOrArray(r))return b(e,r);if(!o.isObjectOrArray(e))return!1;const s=Reflect.ownKeys(r).filter(e=>!(o.isArray(r)&&"length"===e));for(const i of s){if(!(i in e))return!1;const s=e[i],n=r[i],a=null==t?void 0:t(s,n,i,e,r);if(o.isUndefined(a)){if(o.isObjectOrArray(s)&&o.isObjectOrArray(n)){if(!m(s,n,t))return!1}else if(!b(s,n))return!1}else if(!a)return!1}return!0}var h=Function.prototype.toString,d=/\{\s*\[native code\]\s*\}/;exports.areArraysEqual=(e,r,s=!1)=>{if(!o.isArray(e)||!o.isArray(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${o.getPreciseType(e)}\`, 'array2': \`${o.getPreciseType(r)}\`].`);if(o.assertIsBoolean(s,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!t.isEqual(e.length,r.length))return!1;const i=e=>{if(!o.isArray(e))return e;return e.map(e=>o.isArray(e)?i(e):e).sort((e,r)=>{const t=a.safeStableStringify(e),s=a.safeStableStringify(r);return t<s?-1:t>s?1:0})},n=s?i(e):e,u=s?i(r):r;return!!t.isEqual(n.length,u.length)&&n.every((e,r)=>a.safeStableStringify(e)===a.safeStableStringify(u[r]))},exports.areObjectsEqual=(e,r)=>t.isEqual(e,r),exports.areURLsEqualPath=(r,t)=>{if(!e.isURL(r)||!e.isURL(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},exports.areURLsIdentical=(r,t)=>{if(!e.isURL(r)||!e.isURL(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},exports.arrayHasAnyMatch=(e,r)=>{if(!o.isArray(e)||!o.isArray(r)||t.isEmptyArray(e)||t.isEmptyArray(r))return!1;const s=new Set(e);return r.some(e=>s.has(e))},exports.doesKeyExist=c,exports.isArguments=p,exports.isArrayLike=function(e){return!o.isFunction(e)&&o.isObjectOrArray(e)&&y(null==e?void 0:e.length)},exports.isArrayLikeObject=function(e){return o.isObjectOrArray(e)&&y(e.length)},exports.isCurrencyLike=e=>{if(!o.isString(e)&&!o.isNumber(e))return!1;return 0!==s.parseCurrencyString(e.toString())||"0"===e.toString().trim()},exports.isDeepEqual=f,exports.isElement=function(e){return!!e&&"object"==typeof e&&1===(null==e?void 0:e.nodeType)&&!o.isPlainObject(e)},exports.isEmpty=function(e){return!!o.isNil(e)||(!!(o.isBoolean(e)||o.isNumber(e,{includeNaN:!0})||o.isSymbol(e))||(o.isFunction(e)?0===Object.keys(e).length:o.isString(e)||o.isArray(e)||p(e)||r.isTypedArray(e)?0===e.length:a.isMap(e)||o.isSet(e)?0===e.size:o.isBuffer(e)?0===e.length:!!o.isPlainObject(e)&&0===Object.keys(e).length))},exports.isEmptyDeep=l,exports.isEqualWith=function(e,r,s){return t.baseDeepEqual(e,r,s,new WeakMap)},exports.isLength=y,exports.isMatch=function(e,r){return g(e,r)},exports.isMatchWith=m,exports.isNative=function(e){if(!o.isFunction(e))return!1;try{const r=h.call(e);return d.test(r)}catch{return!1}},exports.isObjectLoose=function(e){return!o.isNil(e)&&(o.isObjectOrArray(e)||o.isFunction(e))},exports.isPropertyKey=u,exports.isSafeInteger=function(e){return"number"==typeof e&&Number.isSafeInteger(e)},exports.isValidURL=e=>{if(!o.isNonEmptyString(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)},exports.isWeakMap=function(e){return o.isObject(e)&&!o.isNull(e)&&e instanceof WeakMap},exports.textContainsAll=(e,r,t={})=>{if(!o.isNonEmptyString(e)||!o.isArray(r))return!1;o.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:s=!1,flags:i="i"}=t;o.assertIsBoolean(s,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n.assertIsString(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const a=r.filter(e=>o.isNonEmptyString(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==a.length&&a.every(r=>new RegExp(s?`(?<!\\S)${r}(?!\\S)`:r,i.includes("u")?i:i+"u").test(e))},exports.textContainsAny=(e,r,t={})=>{if(!o.isNonEmptyString(e)||!o.isArray(r))return!1;o.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:s=!1,flags:i="i"}=t;o.assertIsBoolean(s,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n.assertIsString(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const a=r.filter(e=>o.isNonEmptyString(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===a.length)return!1;const u=s?`(?<!\\S)(${a.join("|")})(?!\\S)`:`(${a.join("|")})`;return new RegExp(u,i.includes("u")?i:i+"u").test(e)};
@@ -0,0 +1 @@
1
+ var a=a=>a instanceof URL;export{a as isURL};
@@ -0,0 +1 @@
1
+ import{isRegExp as e,isEmptyArray as r,isEqual as t}from"./chunk-ZTCLKKMB.js";import{assertIsArray as i}from"./chunk-ECRNH4FW.js";import{isFinite as n}from"./chunk-OWV2P376.js";import{safeStableStringify as o,isDate as a,isMap as u}from"./chunk-BHIBDDQF.js";import{isBigInt as s}from"./chunk-QNKGP5DY.js";import{getPreciseType as p,isNaN as f,isString as l,isNumber as m,isBoolean as c,isNil as v,isSymbol as y,isFunction as d,isArray as g,isObjectOrArray as b,isError as h,isSet as T,isObject as S,assertIsPlainObject as $,hasOwnProp as N,assertIsBoolean as O,isNull as w}from"./chunk-EW3I4O7X.js";function j(r,t){if(!1!==t&&"stringOrNumber"!==t&&"primitives"!==t&&"all"!==t)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${p(t)}\`, with value: \`${o(t)}\`.`);if(f(r))return"primitives"===t||"all"===t?"NaN":NaN;if(l(r)||m(r))return"stringOrNumber"===t||"primitives"===t||"all"===t?String(r):r;if(c(r)||s(r)||v(r))return"primitives"===t||"all"===t?String(r):r;if(y(r))return"all"===t?r.toString():r;if(d(r))return"all"===t?r.toString():r;if(g(r))return r.map(e=>j(e,t));if(b(r)){if(a(r))return"all"===t?r.toISOString():r;if(e(r))return"all"===t?r.toString():r;if(h(r)||r instanceof Promise)return"all"===t?r.toString():r;if(T(r))return"all"===t?[...r].map(e=>j(e,t)):r;if(u(r))return"all"===t?[...r.entries()].map(([e,r])=>[j(e,t),j(r,t)]):r;const i={};if(S(r))for(const e of Object.keys(r))i[e]=j(r[e],t);return i}return r}function k(e){if(v(e))return;if(!g(e))return[];return e.reduce((e,t)=>{if(!v(t))if(g(t)){const i=k(t);i&&!r(i)&&e.push(i)}else e.push(t);return e},[])}var I=(e,r={})=>{i(e,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),$(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!!N(r,"flatten")&&r.flatten,a=!!N(r,"forceToString")&&r.forceToString;if(!1!==a&&"stringOrNumber"!==a&&"primitives"!==a&&"all"!==a)throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${p(a)}\`, with value: \`${o(a)}\`.`);O(n,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const s=e=>{const r=[];return e.reduce((e,i)=>{const n=g(i)?s(i):j(i,a);return r.some(e=>t(e,n))||(r.push(n),e.push(n)),e},[])},f=e=>g(e)?e.flatMap(f):T(e)?[...e].flatMap(f):u(e)?[...e.values()].flatMap(f):[e];return s(n?f(e):e)};function P(e,r={}){$(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!N(r,"removeInvalidValue")||r.removeInvalidValue;if(O(t,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),g(e)){const r=Array.from(e,e=>l(e)||n(e)||c(e)||s(e)?String(e):w(e)?null:void 0);return t?k(r):r}}export{I as dedupeArray,k as filterNilArray,P as toStringArrayUnRecursive,j as toStringDeepForce};
@@ -0,0 +1 @@
1
+ import{isNumber as r}from"./chunk-EW3I4O7X.js";function i(i){return r(i)&&Number.isFinite(i)}export{i as isFinite};
@@ -0,0 +1 @@
1
+ var t=t=>"bigint"==typeof t;export{t as isBigInt};
@@ -0,0 +1 @@
1
+ import{isNumber as r,isString as e,getPreciseType as t,isNonEmptyString as i}from"./chunk-EW3I4O7X.js";var n=(i,n,a)=>{if(!r(i)||!e(a)||!e(n))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': \`${t(i)}\`, 'originalString': \`${t(n)}\`, 'replaceTo': \`${t(a)}\`]".`);if(i<0||i>=n.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return n.slice(0,i)+a+n.slice(i+1)},a=r=>{if(!i(r))return"";const e=(r=r.replace(/\s+/g," ").trim()).split(" ");return e.length>1?e[0][0]+e[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};export{a as getInitialsName,n as replaceAt};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-2HSNUPEO.cjs"),r=require("./chunk-4Z75R3IT.cjs"),t=require("./chunk-DVMHRLKP.cjs"),i=require("./chunk-ZHV5ZYVN.cjs"),n=require("./chunk-D3VSHABU.cjs"),s=class e extends Error{constructor(r,t){super(r),this.originalError=t,this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},a=(r,t="/")=>{if(!n.isNonEmptyString(t))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${n.getPreciseType(t)}\`, with value: \`${i.safeStableStringify(t)}\`.`);if(!n.isNonEmptyString(r))return t;try{if((r=(r=e.removeSpaces(r,{trimOnly:!0})).replace(/\s+/g,"")).startsWith("http://")||r.startsWith("https://")){const e=new URL(r);return`${e.pathname}${e.search}${e.hash}`.replace(/^\/+/,"/")}return"/"+r.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(e){const r=n.isError(e)?e:new Error("Unknown error from function `normalizePathname()`.");throw new s(`Failed to normalize pathname in function \`normalizePathname()\`: ${r.message}`,r)}};exports.formatEnvPort=(e,t={})=>{if(!n.isNonEmptyString(e))return"";n.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!!n.hasOwnProp(t,"prefixColon")&&t.prefixColon;if(!n.isBoolean(i))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${n.getPreciseType(i)}\`.`);const s=e.replace(/\D+/g,"");return r.isEmptyString(s)?"":i?`:${s}`:s},exports.getFirstPrefixPathname=(e,r="/")=>{if(!n.isNonEmptyString(r))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${n.getPreciseType(r)}\`, with value: \`${i.safeStableStringify(r)}\`.`);if(n.isArray(e)){if(!e.every(e=>n.isString(e)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${n.getPreciseType(e)}\`, with value: \`${i.safeStableStringify(e)}\`.`);for(const r of e){const e=a(r);if("/"!==e)return e}return a(r)}if(n.isString(e)){const t=a(e);return"/"!==t?t:a(r)}if(!n.isNil(e))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${n.getPreciseType(e)}\`.`);return a(r)},exports.getPrefixPathname=(e,r=null,s={})=>{const o=[];n.isString(e)||n.isArray(e)||o.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${n.getPreciseType(e)}\`.`),n.isString(r)||n.isArray(r)||n.isNull(r)||o.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${n.getPreciseType(r)}\`.`),n.isPlainObject(s)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${n.getPreciseType(s)}\`.`);const{levels:p=1,removeDuplicates:u=!0}=s;if((!t.isInteger(p)||t.isInteger(p)&&p<0)&&o.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${n.getPreciseType(p)}\`, with value: \`${i.safeStableStringify(p)}\`.`),n.isBoolean(u)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${n.getPreciseType(u)}\`.`),n.isNonEmptyArray(o))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:\n- ${o.join("\n- ")}`);function c(e){return`/${a(e).split("/").filter(Boolean).slice(0,p).join("/")}`}function l(e){if(r){if(e=a(e),n.isArray(r)){for(const t of r)if(e.startsWith(a(t)))return c(e)}else if(n.isNonEmptyString(r)&&e.startsWith(a(r)))return c(e);return null}return c(e)}if(n.isArray(e)){const r=e.map(l).filter(e=>!n.isNull(e)),t=u?[...new Set(r)]:r;return 1===t.length?t[0]:t}return l(e)},exports.normalizePathname=a;