@rzl-zone/utils-js 3.2.6-beta.0 → 3.3.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 (173) hide show
  1. package/README.md +14 -16
  2. package/dist/NumberRangeUnion-B6bhM2s7.d.ts +33 -0
  3. package/dist/{any-BmdI8UbK.d.ts → any-v4TsK9ES.d.ts} +25 -26
  4. package/dist/{arrays-normalize-recursive-CnjYJ9xg.d.ts → arrays-normalize-recursive-BqmVuFlD.d.ts} +20 -20
  5. package/dist/assertions/index.cjs +1 -1
  6. package/dist/assertions/index.d.ts +96 -70
  7. package/dist/assertions/index.js +1 -1
  8. package/dist/chunk-2CQX5CBG.js +1 -0
  9. package/dist/chunk-2IOOEY45.cjs +1 -0
  10. package/dist/chunk-3IBQ5MOM.js +1 -0
  11. package/dist/{chunk-OGPPP2S3.js → chunk-3VA554KW.js} +1 -1
  12. package/dist/{chunk-FV7SEBKD.cjs → chunk-5757UBXJ.cjs} +1 -1
  13. package/dist/{chunk-MTUBDVJ2.js → chunk-5IGC6PBH.js} +1 -1
  14. package/dist/{chunk-O7UT5AN3.cjs → chunk-5KJFVIQT.cjs} +1 -1
  15. package/dist/chunk-6JFCSH7J.js +1 -0
  16. package/dist/{chunk-VHAPTHEA.cjs → chunk-6JFZL7YE.cjs} +1 -1
  17. package/dist/chunk-7ODAAXX5.cjs +1 -0
  18. package/dist/{chunk-6C3ATUGM.cjs → chunk-CAH33WOQ.cjs} +1 -1
  19. package/dist/{chunk-ECRNH4FW.js → chunk-CKTLUNWX.js} +1 -1
  20. package/dist/chunk-CMW2TBOQ.js +1 -0
  21. package/dist/chunk-D3ENH7H6.cjs +1 -0
  22. package/dist/{chunk-3YCFMGRB.js → chunk-DEZZUYE2.js} +1 -1
  23. package/dist/chunk-DWF2R5GD.cjs +1 -0
  24. package/dist/chunk-E55EQK2U.cjs +1 -0
  25. package/dist/chunk-E74U6CYP.cjs +1 -0
  26. package/dist/{chunk-XC3QHAK2.cjs → chunk-EL6A35UR.cjs} +1 -1
  27. package/dist/chunk-F6IPNNSJ.cjs +1 -0
  28. package/dist/chunk-FJZGG54N.cjs +1 -0
  29. package/dist/chunk-FWCKOJZM.js +1 -0
  30. package/dist/{chunk-IMCLPT5V.cjs → chunk-FWHNWL2P.cjs} +1 -1
  31. package/dist/chunk-GGEADHZO.js +1 -0
  32. package/dist/{chunk-IRGE5W7L.js → chunk-GQR4R5WY.js} +1 -1
  33. package/dist/chunk-H66AC7GK.cjs +1 -0
  34. package/dist/{chunk-M47QIBXI.cjs → chunk-HQWOFR56.cjs} +1 -1
  35. package/dist/{chunk-VCFXNV3Q.cjs → chunk-HYRQMTRH.cjs} +1 -1
  36. package/dist/{chunk-EUANTHVN.js → chunk-IRFL4MAX.js} +1 -1
  37. package/dist/{chunk-GGWPB23G.cjs → chunk-IVL7CKVH.cjs} +1 -1
  38. package/dist/chunk-IZPBKKPO.js +1 -0
  39. package/dist/chunk-JBQMXC5I.cjs +1 -0
  40. package/dist/chunk-JEQEF5WD.js +1 -0
  41. package/dist/chunk-JMJQCN74.js +1 -0
  42. package/dist/chunk-JYQTCICM.js +1 -0
  43. package/dist/chunk-KVAL5PAG.cjs +1 -0
  44. package/dist/chunk-LS6U7FAY.cjs +1 -0
  45. package/dist/chunk-NBZWMBO6.js +1 -0
  46. package/dist/chunk-NRF6LWBC.cjs +1 -0
  47. package/dist/chunk-OI5XKNZO.js +1 -0
  48. package/dist/chunk-OYTYSY7G.js +1 -0
  49. package/dist/chunk-PET42Z7W.js +1 -0
  50. package/dist/chunk-PZQ6I4JJ.cjs +1 -0
  51. package/dist/chunk-QBKAEVYG.js +1 -0
  52. package/dist/{chunk-YV3K2EKJ.js → chunk-RIPKY4RU.js} +1 -1
  53. package/dist/chunk-RZW35UN5.cjs +1 -0
  54. package/dist/chunk-SBFNXGTJ.js +1 -0
  55. package/dist/{chunk-T4CIAKEK.js → chunk-SBKGWRS5.js} +1 -1
  56. package/dist/{chunk-5Z2G23WP.js → chunk-SIM77PU4.js} +1 -1
  57. package/dist/chunk-T2T7K3KR.js +1 -0
  58. package/dist/chunk-T7PU2V7X.cjs +1 -0
  59. package/dist/chunk-V45XJKHW.cjs +1 -0
  60. package/dist/chunk-W2WNBUDE.js +1 -0
  61. package/dist/chunk-XABCB3Y7.cjs +1 -0
  62. package/dist/chunk-XEDXFSGI.js +1 -0
  63. package/dist/chunk-YKPSRP5G.js +1 -0
  64. package/dist/chunk-YLA3DURS.cjs +1 -0
  65. package/dist/chunk-ZETAZZLD.cjs +1 -0
  66. package/dist/conversions/index.cjs +1 -1
  67. package/dist/conversions/index.d.ts +515 -321
  68. package/dist/conversions/index.js +1 -1
  69. package/dist/events/index.cjs +1 -1
  70. package/dist/events/index.d.ts +25 -20
  71. package/dist/events/index.js +1 -1
  72. package/dist/{extends-Bk_SBGdT.d.ts → extends-DtdRjDyU.d.ts} +63 -87
  73. package/dist/{formatting → formatters}/index.cjs +1 -1
  74. package/dist/formatters/index.d.ts +2106 -0
  75. package/dist/formatters/index.js +1 -0
  76. package/dist/generators/index.cjs +1 -0
  77. package/dist/{generator → generators}/index.d.ts +57 -59
  78. package/dist/generators/index.js +1 -0
  79. package/dist/{if-CvT4R7Kh.d.ts → if-ChM35c_q.d.ts} +6 -5
  80. package/dist/index.d.ts +14 -0
  81. package/dist/{is-array--YjXV-Wx.d.ts → is-array-BJeHxPM3.d.ts} +287 -542
  82. package/dist/{isPlainObject-BVhBAPHX.d.ts → isPlainObject-DGJkcFYw.d.ts} +6 -6
  83. package/dist/{never-BfayMBF9.d.ts → never-D89PbPh5.d.ts} +10 -19
  84. package/dist/next/index.cjs +1 -1
  85. package/dist/next/index.d.ts +15 -12
  86. package/dist/next/index.js +1 -1
  87. package/dist/next/server/index.cjs +1 -1
  88. package/dist/next/server/index.d.ts +1 -1
  89. package/dist/next/server/index.js +1 -1
  90. package/dist/{nils-DMz3kU7M.d.ts → nils-CO8zLHSB.d.ts} +39 -65
  91. package/dist/operations/index.cjs +1 -1
  92. package/dist/operations/index.d.ts +4 -4
  93. package/dist/operations/index.js +1 -1
  94. package/dist/or-C6qzKt2I.d.ts +82 -0
  95. package/dist/override-CL2olHE5.d.ts +59 -0
  96. package/dist/parsers/index.cjs +1 -1
  97. package/dist/parsers/index.js +1 -1
  98. package/dist/pick-BSMX6Xe2.d.ts +15 -0
  99. package/dist/predicates/index.cjs +1 -1
  100. package/dist/predicates/index.d.ts +425 -106
  101. package/dist/predicates/index.js +1 -1
  102. package/dist/prettify-3o8_Kw6b.d.ts +564 -0
  103. package/dist/promises/index.cjs +1 -0
  104. package/dist/promises/index.d.ts +107 -0
  105. package/dist/promises/index.js +1 -0
  106. package/dist/promises-LU7K00H0.d.ts +72 -0
  107. package/dist/rzl-utils.global.js +1 -1
  108. package/dist/{string-XA-til3C.d.ts → string-B1jlOnws.d.ts} +82 -121
  109. package/dist/strings/index.cjs +1 -1
  110. package/dist/strings/index.d.ts +209 -210
  111. package/dist/strings/index.js +1 -1
  112. package/dist/tailwind/index.cjs +1 -1
  113. package/dist/tailwind/index.d.ts +23 -17
  114. package/dist/tailwind/index.js +1 -1
  115. package/dist/types/index.d.ts +899 -1181
  116. package/dist/urls/index.cjs +1 -1
  117. package/dist/urls/index.d.ts +113 -108
  118. package/dist/urls/index.js +1 -1
  119. package/package.json +33 -40
  120. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +0 -26
  121. package/dist/chunk-2HSNUPEO.cjs +0 -1
  122. package/dist/chunk-4Z75R3IT.cjs +0 -1
  123. package/dist/chunk-AJ25PWXX.cjs +0 -1
  124. package/dist/chunk-BHIBDDQF.js +0 -1
  125. package/dist/chunk-CE4JI2YB.js +0 -1
  126. package/dist/chunk-CMJ6UYWW.cjs +0 -1
  127. package/dist/chunk-D3VSHABU.cjs +0 -1
  128. package/dist/chunk-DG2GWBTS.cjs +0 -1
  129. package/dist/chunk-EKS4IZJR.cjs +0 -1
  130. package/dist/chunk-EOZKYR5S.cjs +0 -1
  131. package/dist/chunk-EW3I4O7X.js +0 -1
  132. package/dist/chunk-F3E77L46.js +0 -1
  133. package/dist/chunk-G5LXIEFO.js +0 -0
  134. package/dist/chunk-GVWGQNLF.js +0 -1
  135. package/dist/chunk-H3FXL4DU.cjs +0 -1
  136. package/dist/chunk-HHPDLSX2.cjs +0 -1
  137. package/dist/chunk-JARPXKBM.cjs +0 -1
  138. package/dist/chunk-JFJUPYDT.cjs +0 -1
  139. package/dist/chunk-JLP56WSM.js +0 -1
  140. package/dist/chunk-K3MV4AIN.cjs +0 -1
  141. package/dist/chunk-KOVO72OM.js +0 -1
  142. package/dist/chunk-LJ4M3VGE.js +0 -1
  143. package/dist/chunk-LJVGJLP4.js +0 -1
  144. package/dist/chunk-MISCBZJC.js +0 -1
  145. package/dist/chunk-MMSYCIJ2.cjs +0 -1
  146. package/dist/chunk-OLPKAX7F.cjs +0 -1
  147. package/dist/chunk-ORZFHBEY.js +0 -1
  148. package/dist/chunk-OWV2P376.js +0 -1
  149. package/dist/chunk-RV2WK5E6.js +0 -1
  150. package/dist/chunk-SBF43G3B.cjs +0 -1
  151. package/dist/chunk-X74TUJSE.cjs +0 -1
  152. package/dist/chunk-XLDAIZRK.js +0 -1
  153. package/dist/chunk-XZJ7C4N6.js +0 -1
  154. package/dist/chunk-ZHV5ZYVN.cjs +0 -1
  155. package/dist/chunk-ZL7J6GTP.js +0 -1
  156. package/dist/chunk-ZTCLKKMB.js +0 -1
  157. package/dist/env/index.cjs +0 -1
  158. package/dist/env/index.d.ts +0 -16
  159. package/dist/env/index.js +0 -1
  160. package/dist/formatting/index.d.ts +0 -950
  161. package/dist/formatting/index.js +0 -1
  162. package/dist/generator/index.cjs +0 -1
  163. package/dist/generator/index.js +0 -1
  164. package/dist/omit-VvmIsZmX.d.ts +0 -28
  165. package/dist/prettify-C4xLcYOP.d.ts +0 -353
  166. package/dist/promise/index.cjs +0 -1
  167. package/dist/promise/index.d.ts +0 -31
  168. package/dist/promise/index.js +0 -1
  169. package/dist/type-data-DDs-u2kq.d.ts +0 -261
  170. /package/dist/{chunk-5C2SMIGX.cjs → chunk-BAV5T2E3.cjs} +0 -0
  171. /package/dist/{chunk-MC3LXMCQ.js → chunk-L5RDAVVH.js} +0 -0
  172. /package/dist/{chunk-J2RGTPGK.cjs → chunk-VJDDGRIK.cjs} +0 -0
  173. /package/dist/{chunk-FIAAX3UE.js → chunk-YWHHVDT4.js} +0 -0
@@ -1 +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};
1
+ "use strict";var e=require("./chunk-DVMHRLKP.cjs"),t=require("./chunk-T7PU2V7X.cjs"),r=require("./chunk-PZQ6I4JJ.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};
@@ -1 +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};
1
+ import{isEmptyValue as t}from"./chunk-GQR4R5WY.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};
@@ -1 +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};
1
+ "use strict";var e=require("./chunk-PZQ6I4JJ.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{isArray as e,isObject as t,assertIsPlainObject as r,hasOwnProp as o,assertIsBoolean as c}from"./chunk-CMW2TBOQ.js";var n=t=>!e(t)||0===t.length;function s(e,n={}){if(!t(e))return!0;r(n,{message:({currentType:e,validType:t})=>`Second parameter (\`options\`) must be of type \`${t}\`, but received: \`${e}\`.`});const s=!!o(n,"checkSymbols")&&n.checkSymbols;c(s,{message:({currentType:e,validType:t})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${t}\`, but received: \`${e}\`.`});const p=0===Object.keys(e).length;return s?p&&0===Object.getOwnPropertySymbols(e).length:p}export{n as isEmptyArray,s as isEmptyObject};
@@ -1 +1 @@
1
- "use strict";var r=require("./chunk-D3VSHABU.cjs");exports.assertIsArray=function(e,s){if(r.isArray(e))return;const o=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"array"});throw new TypeError(o)};
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.assertIsArray=function(e,s){if(r.isArray(e))return;const o=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"array"});throw new TypeError(o)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-KHO2SBNA.cjs"),r=require("./chunk-CAH33WOQ.cjs"),t=require("./chunk-5KJFVIQT.cjs"),s=require("./chunk-E55EQK2U.cjs"),i=require("./chunk-HYRQMTRH.cjs"),n=require("./chunk-JBQMXC5I.cjs"),a=require("./chunk-ZETAZZLD.cjs"),o=require("./chunk-T7PU2V7X.cjs"),u=require("./chunk-PZQ6I4JJ.cjs");function c(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var p=(e,r)=>{if(!u.isObjectOrArray(e))return!1;if(!c(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${u.getPreciseType(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(u.isArray(e)?e.some(e=>p(e,r)):Object.values(e).some(e=>u.isObjectOrArray(e)&&p(e,r)))},y=e=>"[object Arguments]"===Object.prototype.toString.call(e);function f(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}var 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(o.isDate(e)&&o.isDate(r))return e.getTime()===r.getTime();if(n.isRegExp(e)&&n.isRegExp(r))return e.toString()===r.toString();if(u.isSymbol(e)&&u.isSymbol(r))return e.toString()===r.toString();if(u.isSet(e)&&u.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)&&l(r,t[i])){s.add(i),e=!0;break}if(!e)return!1}return!0}if(o.isMap(e)&&o.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(l(r,a)&&l(i,o)){s.add(n),e=!0;break}}if(!e)return!1}return!0}if(u.isArray(e)&&u.isArray(r))return e.length===r.length&&e.every((e,t)=>l(e,r[t]));if(u.isObjectOrArray(e)&&u.isObjectOrArray(r)&&e&&r){if(u.isArray(e)!==u.isArray(r))return!1;const t=Object.keys(e),s=Object.keys(r);return t.length===s.length&&t.every(t=>l(e[t],r[t]))}return!1};var m=e=>{if(u.isString(e))return s.isEmptyString(e);if(u.isNumber(e))return u.isNaN(e);if(u.isArray(e))return a.isEmptyArray(e)||e.every(m);if(u.isObjectOrArray(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>m(e[r]))}return!e};function b(e,r,t){return g(e,r,t)}function h(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(!u.isObjectOrArray(r))return h(e,r);if(!u.isObjectOrArray(e))return!1;const s=Reflect.ownKeys(r).filter(e=>!(u.isArray(r)&&"length"===e));for(const i of s){if(!(i in e))return!1;const s=e[i],n=r[i],a=t?.(s,n,i,e,r);if(u.isUndefined(a)){if(u.isObjectOrArray(s)&&u.isObjectOrArray(n)){if(!b(s,n,t))return!1}else if(!h(s,n))return!1}else if(!a)return!1}return!0}var d=Function.prototype.toString,A=/\{\s*\[native code\]\s*\}/;exports.areArraysEqual=(e,r,t=!1)=>{if(!u.isArray(e)||!u.isArray(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${u.getPreciseType(e)}\`, 'array2': \`${u.getPreciseType(r)}\`].`);if(u.assertIsBoolean(t,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!n.isEqual(e.length,r.length))return!1;const s=e=>{if(!u.isArray(e))return e;return e.map(e=>u.isArray(e)?s(e):e).sort((e,r)=>{const t=o.safeStableStringify(e),s=o.safeStableStringify(r);return t<s?-1:t>s?1:0})},i=t?s(e):e,a=t?s(r):r;return!!n.isEqual(i.length,a.length)&&i.every((e,r)=>o.safeStableStringify(e)===o.safeStableStringify(a[r]))},exports.areObjectsEqual=(e,r)=>n.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(!u.isArray(e)||!u.isArray(r)||a.isEmptyArray(e)||a.isEmptyArray(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},exports.doesKeyExist=p,exports.isArguments=y,exports.isArrayLike=function(e){return!u.isFunction(e)&&u.isObjectOrArray(e)&&f(e?.length)},exports.isArrayLikeObject=function(e){return u.isObjectOrArray(e)&&f(e.length)},exports.isCurrencyLike=e=>{if(!u.isString(e)&&!u.isNumber(e))return!1;return 0!==t.parseCurrencyString(e.toString())||"0"===e.toString().trim()},exports.isDeepEqual=l,exports.isElement=function(e){return!!e&&"object"==typeof e&&1===e?.nodeType&&!u.isPlainObject(e)},exports.isEmpty=function(e){return!!u.isNil(e)||(!!(u.isBoolean(e)||u.isNumber(e,{includeNaN:!0})||u.isSymbol(e))||(u.isFunction(e)?0===Object.keys(e).length:u.isString(e)||u.isArray(e)||y(e)||r.isTypedArray(e)?0===e.length:o.isMap(e)||u.isSet(e)?0===e.size:u.isBuffer(e)?0===e.length:!!u.isPlainObject(e)&&0===Object.keys(e).length))},exports.isEmptyDeep=m,exports.isEqualWith=function(e,r,t){return n.baseDeepEqual(e,r,t,new WeakMap)},exports.isLength=f,exports.isMatch=function(e,r){return g(e,r)},exports.isMatchWith=b,exports.isNative=function(e){if(!u.isFunction(e))return!1;try{const r=d.call(e);return A.test(r)}catch{return!1}},exports.isObjectLoose=function(e){return!u.isNil(e)&&(u.isObjectOrArray(e)||u.isFunction(e))},exports.isPropertyKey=c,exports.isSafeInteger=function(e){return"number"==typeof e&&Number.isSafeInteger(e)},exports.isValidURL=e=>{if(!u.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 u.isObject(e)&&!u.isNull(e)&&e instanceof WeakMap},exports.textContainsAll=(e,r,t={})=>{if(!u.isNonEmptyString(e)||!u.isArray(r))return!1;u.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:s=!1,flags:n="i"}=t;u.assertIsBoolean(s,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),i.assertIsString(n,{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=>u.isNonEmptyString(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==a.length&&a.every(r=>new RegExp(s?`(?<!\\S)${r}(?!\\S)`:r,n.includes("u")?n:n+"u").test(e))},exports.textContainsAny=(e,r,t={})=>{if(!u.isNonEmptyString(e)||!u.isArray(r))return!1;u.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:s=!1,flags:n="i"}=t;u.assertIsBoolean(s,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),i.assertIsString(n,{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=>u.isNonEmptyString(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===a.length)return!1;const o=s?`(?<!\\S)(${a.join("|")})(?!\\S)`:`(${a.join("|")})`;return new RegExp(o,n.includes("u")?n:n+"u").test(e)};
@@ -1 +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))};
1
+ "use strict";var t=require("./chunk-HQWOFR56.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))};
@@ -1 +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};
1
+ import{isArray as r,resolveErrorMessageAssertions as o}from"./chunk-CMW2TBOQ.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
+ 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 a(e)&&"[object Number]"===Object.prototype.toString.call(e)}function c(e){return"number"==typeof e?Number.isNaN(e):s(e)&&Number.isNaN(e.valueOf())}var u=e=>null===e,l=(r,t={})=>{if(e(r))return;const o=W({value:r,options:t,requiredValidType:"boolean"});throw new TypeError(o)},f=(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;l(o,{message:({currentType:e,validType:r})=>`Parameter \`includeNaN\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const a="number"==typeof r;return o?a:a&&!Number.isNaN(r)},m=e=>"symbol"==typeof e,p=e=>void 0===e;function b(e){return o(e)||a(e)}function y(e,t,o={}){if(!i(e)&&!b(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;l(a,{message:({currentType:e,validType:r})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),l(n,{message:({currentType:e,validType:r})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const s=[];if(i(t)&&t.trim().length>0||f(t,{includeNaN:!0})){(f(t,{includeNaN:!0})?String(t):t).split(".").forEach(e=>{const r=e.match(/^\[(\d+)\]$/),t=e.match(/^Symbol\((.+)\)$/);r?s.push(Number(r[1])):t?s.push(Symbol.for(t[1])):c(Number(e))?s.push(e):s.push(Number(e))})}else{if(!m(t))return!1;s.push(t)}let y=i(e)&&e.trim().length>0?Object(e):e;for(const e of s)if(i(e)&&e.trim().length>0||f(e,{includeNaN:!0})){if(u(y)||!Object.prototype.hasOwnProperty.call(y,e))return!1;y=y[e]}else{if(!m(e))return!1;{if(u(y)||"object"!=typeof y&&!r(y))return!1;const t=Object.getOwnPropertySymbols(y).find(r=>r===e||r.description===e.description);if(!t)return!1;y=y[t]}}return(!a||!p(y))&&(!n||!u(y))}var d=(e,r={})=>{if(!i(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;l(t,{message:({currentType:e,validType:r})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});return(t?e.trim():e).length>0},g=e=>"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error,j=e=>"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e);function h(e){return a(e)&&"[object String]"===Object.prototype.toString.call(e)}function S(e){return a(e)&&"[object Boolean]"===Object.prototype.toString.call(e)}function v(e){if("number"==typeof e||s(e)){const r=Number(e);return r===1/0||r===-1/0}return!1}var N=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),C={string:"String",number:"Number",boolean:"Boolean",bigint:"Big Int",symbol:"Symbol",undefined:"Undefined",null:"Null",regexp:"Reg Exp",reflect:"Reflect",proxy:"Proxy",atomics:"Atomics",object:"Object",array:"Array",arguments:"Arguments",function:"Function",asyncfunction:"Async Function",generatorfunction:"Generator Function",asyncgeneratorfunction:"Async Generator Function",generator:"Generator",promise:"Promise",evalerror:"Eval Error",rangeerror:"Range Error",referenceerror:"Reference Error",syntaxerror:"Syntax Error",typeerror:"Type Error",urierror:"URI Error",aggregateerror:"Aggregate Error",error:"Error",int8array:"Int 8 Array",uint8array:"Uint 8 Array",uint8clampedarray:"Uint 8 Clamped Array",int16array:"Int 16 Array",uint16array:"Uint 16 Array",int32array:"Int 32 Array",uint32array:"Uint 32 Array",float32array:"Float 32 Array",float64array:"Float 64 Array",bigint64array:"Big Int 64 Array",biguint64array:"Big Uint 64 Array",arraybuffer:"Array Buffer",sharedarraybuffer:"Shared Array Buffer",dataview:"Data View",arraybufferview:"Array Buffer View",map:"Map",set:"Set",weakmap:"Weak Map",weakset:"Weak Set",mapiterator:"Map Iterator",setiterator:"Set Iterator",arrayiterator:"Array Iterator",stringiterator:"String Iterator",readablestream:"Readable Stream",writablestream:"Writable Stream",transformstream:"Transform Stream",readablestreamdefaultreader:"Readable Stream Default Reader",writablestreamdefaultwriter:"Writable Stream Default Writer",readablestreamdefaultcontroller:"Readable Stream Default Controller",transformstreamdefaultcontroller:"Transform Stream Default Controller",abortcontroller:"Abort Controller",abortsignal:"Abort Signal",fetch:"fetch",request:"Request",response:"Response",headers:"Headers",formdata:"FormData",blob:"Blob",file:"File",filelist:"FileList",filereader:"FileReader",intl:"Intl",collator:"Intl. Collator",datetimeformat:"Intl. Date Time Format",listformat:"Intl. List Format",numberformat:"Intl. Number Format",pluralrules:"Intl. Plural Rules",relativetimeformat:"Intl. Relative Time Format",segmenter:"Intl. Segmenter",locale:"Intl. Locale",displaynames:"Intl. Display Names",finalizationregistry:"Finalization Registry",weakref:"Weak Ref",structuredclone:"structured Clone",urlpattern:"URL Pattern",performance:"Performance",performanceobserver:"Performance Observer",performanceentry:"Performance Entry",performancemark:"Performance Mark",performancemeasure:"Performance Measure",webassembly:"Web Assembly",wasmmodule:"WebAssembly .Module",wasminstance:"WebAssembly. Instance",wasmmemory:"WebAssembly. Memory",wasmtable:"WebAssembly. Table",buffer:"Buffer",process:"Process",eventemitter:"Event Emitter",stream:"Stream",fs:"fs",path:"path",url:"URL",urlsearchparams:"URL Search Params",node:"Node",element:"Element",htmlelement:"HTML Element",svgelement:"SVG Element",document:"Document",documentfragment:"Document Fragment",shadowroot:"Shadow Root",nodelist:"Node List",htmlcollection:"HTML Collection",mutationobserver:"Mutation Observer",intersectionobserver:"Intersection Observer",resizeobserver:"Resize Observer"};function T(e){return Array.isArray(e)&&e.length>0}function A(e){return"[object Set]"===Object.prototype.toString.call(e)||e instanceof Set}var w=e=>{let r="";return o(e)?r=e.map(e=>d(e)?e.trim():"").filter(e=>e.length).join("-"):d(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)},O=e=>{const r=new Set([]),t=e=>e.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(d(e)){const o=t(e);o&&r.add(o)}return T(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),A(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),r},P=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-").replace(/^-+|-+$/g,"")},R=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(".")},E=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map((e,r)=>o.has(e)?e:0===r?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},I=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-")},L=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("_")},B=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(" ")},U=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},F=(e,r)=>{if(!T(e)&&!d(e))return"";const t=w(e),o=O(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},$=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),D=Object.entries(C).reduce((e,[r,t])=>(e[$(r)]=t,e),{});var M=(e,r)=>"toPascalCaseSpace"===r?F(e,N):"slugify"===r?P(e,N):"toCamelCase"===r?E(e,N):"toDotCase"===r?R(e,N):"toKebabCase"===r?I(e,N):"toPascalCase"===r?U(e,N):"toSnakeCase"===r?L(e,N):B(e,N),x=(e,t={formatCase:"toLowerCase"})=>{n(t)||(t={});const o=t.formatCase;if(u(e))return M(D[$("null")]??"Null",o);if(c(e))return"NaN";if(v(e))return String(e);if(s(e))return M("Number Constructor",o);if(h(e))return M("String Constructor",o);if(S(e))return M("Boolean Constructor",o);const i=typeof e;if(!b(e)&&!r(e))return M(D[$(i)]??i,o);if(j(e))return M(D[$("buffer")]??"Buffer",o);if(function(e){if("object"!=typeof e||null===e)return!1;const r=Object.prototype.toString.call(e);if(["[object Array]","[object Date]","[object RegExp]","[object Map]","[object Set]","[object WeakMap]","[object WeakSet]","[object Function]","[object Error]","[object Promise]","[object Generator]","[object GeneratorFunction]","[object AsyncFunction]"].includes(r))return!1;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return!0}}(e))return M(D[$("proxy")]??"Proxy",o);if(a(e)&&r(e?.next)&&r(e?.throw))return M(D[$("generator")]??"Generator",o);if(g(e)){const r=e.constructor?.name??"Error";return M(D[$(r)]??D[$(r.replace(/\s+/g,""))]??r,o)}if(u(Object.getPrototypeOf(e)))return M(D[$("object")]??"Object",o);const l=Object.prototype.toString.call(e).slice(8,-1)||"Object",f=D[$(l)];if(f)return M(f,o);const m=e?.constructor?.name;return M(m&&"Object"!==m?D[$(m)]??m:l,o)};function W(e){const{requiredValidType:t,value:o,options:a}=e||{},{message:i,formatCase:s}=n(a)?a:{},c=I(t),u=x(o,{formatCase:s}),l={currentType:u,validType:c},f=`Parameter input (\`value\`) must be of type \`${c}\`, but received: \`${u}\`.`;return r(i)?d(i(l))?i(l).trim():f:d(i)?i.trim():f}function _(e,r={}){if(n(e))return;const t=W({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}Object.values({...C,plainobject:"Plain Object"});export{C as FIXES_RAW,N as __internalAcronyms__,l as assertIsBoolean,_ as assertIsPlainObject,x as getPreciseType,y as hasOwnProp,o as isArray,e as isBoolean,S as isBooleanObject,j as isBuffer,g as isError,r as isFunction,v as isInfinityNumber,c as isNaN,t as isNil,T as isNonEmptyArray,d as isNonEmptyString,u as isNull,f as isNumber,s as isNumberObject,a as isObject,b as isObjectOrArray,n as isPlainObject,A as isSet,i as isString,h as isStringObject,m as isSymbol,p as isUndefined,W as resolveErrorMessageAssertions,P as slugify,E as toCamelCase,R as toDotCase,I as toKebabCase,B as toLowerCase,U as toPascalCase,F as toPascalCaseSpace,L as toSnakeCase};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-E55EQK2U.cjs"),r=require("./chunk-PZQ6I4JJ.cjs");exports.capitalizeFirst=(e,t={lowerCaseNextRest:!0,trim:!1})=>{if(!r.isNonEmptyString(e))return"";r.isPlainObject(t)||(t={});const i=!1!==t.lowerCaseNextRest;return!0===t.trim&&(e=e.trim()),e[0].toUpperCase()+(i?e.slice(1).toLowerCase():e.slice(1))},exports.capitalizeWords=(e,t={collapseSpaces:!1,trim:!1})=>{if(!r.isNonEmptyString(e))return"";let i=e;r.isPlainObject(t)||(t={});const s=!0===t.collapseSpaces;if(!0===t.trim&&(i=i.trim()),s){const e=i.match(/^\s*/)?.[0]??"",r=i.match(/\s*$/)?.[0]??"";i=i.trim().replace(/\s+/g," "),i=`${e}${i}${r}`}return i.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},exports.getInitialsName=e=>{if(!r.isNonEmptyString(e))return"";const t=(e=e.replace(/\s+/g," ").trim()).split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():e.length>1?e.substring(0,2).toUpperCase():e[0].toUpperCase()},exports.replaceAt=(e,t,i)=>{if(!r.isNumber(e)||!r.isString(i)||!r.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': \`${r.getPreciseType(e)}\`, 'originalString': \`${r.getPreciseType(t)}\`, 'replaceTo': \`${r.getPreciseType(i)}\`]".`);if(e<0||e>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return t.slice(0,e)+i+t.slice(e+1)},exports.stripHtmlTags=function(t){if(!r.isString(t))return;return e.isEmptyString(t)?"":t.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()};
@@ -1 +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};
1
+ import{isInteger as e}from"./chunk-WVSPXFTY.js";import{safeStableStringify as r}from"./chunk-PET42Z7W.js";import{isNonEmptyArray as t,getPreciseType as n,isNumber as a,isPlainObject as m,assertIsBoolean as i,isNaN as h}from"./chunk-CMW2TBOQ.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 e=require("./chunk-KHO2SBNA.cjs"),r=require("./chunk-E74U6CYP.cjs"),t=require("./chunk-NRF6LWBC.cjs"),n=require("./chunk-HQWOFR56.cjs"),i=require("./chunk-DVMHRLKP.cjs"),a=require("./chunk-H66AC7GK.cjs"),s=require("./chunk-E55EQK2U.cjs"),o=require("./chunk-6JFZL7YE.cjs"),u=require("./chunk-T7PU2V7X.cjs"),c=require("./chunk-PZQ6I4JJ.cjs");exports.constructURL=(i,a,m)=>{if(c.isString(i)){if(s.isEmptyString(i))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");i=r.normalizeString(i)}else if(!e.isURL(i))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${c.getPreciseType(i)}\`, with current value: \`${u.safeStableStringify(i)}\`.`);if(!c.isUndefined(m)&&(o.assertIsArray(m,{message:({currentType:e,validType:r})=>`Third parameter (\`removeParams\`) must be of type \`${r} of strings\`, but received: \`${e}\`.`}),!m.every(e=>c.isNonEmptyString(e))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!c.isUndefined(a)&&!c.isFunction(a[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c.getPreciseType(a)}\`, with value: \`${u.safeStableStringify(a)}\`.`);const e=new URL(i);if(!c.isUndefined(a)){const r=Object.fromEntries(a);if(!n.isEmptyValue(r)){const n=new URLSearchParams(e.search);for(const[e,t]of Object.entries(r)){if(!c.isNonEmptyString(t)&&!c.isNumber(t,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c.getPreciseType(a)}\`, with value: \`${u.safeStableStringify(a)}\`.`);n.set(e,String(t))}m?.length&&t.toStringArrayUnRecursive(m).map(e=>{n.delete(e)}),e.search=n.toString()}}return m?.forEach(r=>e.searchParams.delete(r)),e}catch(e){if(c.isError(e))throw e;throw new Error("Failed to construct a valid URL in `constructURL()`, Error:"+e)}},exports.extractURLs=e=>{if(!c.isNonEmptyString(e))return null;let r;try{r=decodeURIComponent(e)}catch{return null}const t=r.match(/https?:\/\/.*?(?=https?:\/\/|\s|$)/g);if(!t)return null;const n=t.map(e=>e.replace(/[.,;:!?)]*$/,"")).filter(e=>{try{const r=new URL(e);return"http:"===r.protocol||"https:"===r.protocol}catch{return!1}});return n.length?n:null},exports.getFirstPrefixPathname=(e,r="/")=>{if(!c.isNonEmptyString(r))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${c.getPreciseType(r)}\`, with value: \`${u.safeStableStringify(r)}\`.`);if(c.isArray(e)){if(!e.every(e=>c.isString(e)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${c.getPreciseType(e)}\`, with value: \`${u.safeStableStringify(e)}\`.`);for(const r of e){const e=a.normalizePathname(r);if("/"!==e)return e}return a.normalizePathname(r)}if(c.isString(e)){const t=a.normalizePathname(e);return"/"!==t?t:a.normalizePathname(r)}if(!c.isNil(e))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${c.getPreciseType(e)}\`.`);return a.normalizePathname(r)},exports.getPrefixPathname=(e,r=null,t={})=>{const n=[];c.isString(e)||c.isArray(e)||n.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${c.getPreciseType(e)}\`.`),c.isString(r)||c.isArray(r)||c.isNull(r)||n.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${c.getPreciseType(r)}\`.`),c.isPlainObject(t)||n.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${c.getPreciseType(t)}\`.`);const{levels:s=1,removeDuplicates:o=!0}=t;if((!i.isInteger(s)||i.isInteger(s)&&s<0)&&n.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${c.getPreciseType(s)}\`, with value: \`${u.safeStableStringify(s)}\`.`),c.isBoolean(o)||n.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${c.getPreciseType(o)}\`.`),c.isNonEmptyArray(n))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:\n- ${n.join("\n- ")}`);function m(e){return`/${a.normalizePathname(e).split("/").filter(Boolean).slice(0,s).join("/")}`}function p(e){if(r){if(e=a.normalizePathname(e),c.isArray(r)){for(const t of r)if(e.startsWith(a.normalizePathname(t)))return m(e)}else if(c.isNonEmptyString(r)&&e.startsWith(a.normalizePathname(r)))return m(e);return null}return m(e)}if(c.isArray(e)){const r=e.map(p).filter(e=>!c.isNull(e)),t=o?[...new Set(r)]:r;return 1===t.length?t[0]:t}return p(e)};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.isEmptyString=(t,i={})=>!r.isNonEmptyString(t,i);
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.normalizeString=i=>r.isNonEmptyString(i)?i.trim():"";
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-J2RGTPGK.cjs"),t=require("./chunk-VCFXNV3Q.cjs"),s=require("./chunk-D3VSHABU.cjs");exports.disableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&!r.classList.contains(s)&&r.classList.add(s)},exports.enableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&r.classList.contains(s)&&r.classList.remove(s)},exports.removeElementFocus=()=>{if(e.isServer())return;const t=document.activeElement;t instanceof HTMLElement&&t.blur()},exports.scrollToTop=t=>{if(e.isServer())return;s.isPlainObject(t)||(t={});const r=s.hasOwnProp(t,"behavior")&&s.isNonEmptyString(t.behavior)&&["auto","instant","smooth"].includes(t.behavior.trim())?t.behavior:"smooth";let i=s.hasOwnProp(t,"timeout")&&s.isNumber(t.timeout)&&t.timeout>=1?t.timeout:1;i=i>2147483647?2147483647:i,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:r}),i)};
1
+ "use strict";var e=require("./chunk-VJDDGRIK.cjs"),t=require("./chunk-HYRQMTRH.cjs"),s=require("./chunk-PZQ6I4JJ.cjs");exports.disableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&!r.classList.contains(s)&&r.classList.add(s)},exports.enableUserInteraction=(s="on_processing")=>{if(e.isServer())return;t.assertIsString(s,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:r}=document;r&&r.classList.contains(s)&&r.classList.remove(s)},exports.removeElementFocus=()=>{if(e.isServer())return;const t=document.activeElement;t instanceof HTMLElement&&t.blur()},exports.scrollToTop=t=>{if(e.isServer())return;s.isPlainObject(t)||(t={});const r=s.hasOwnProp(t,"behavior")&&s.isNonEmptyString(t.behavior)&&["auto","instant","smooth"].includes(t.behavior)?t.behavior:"smooth";let o=s.hasOwnProp(t,"timeout")&&s.isNumber(t.timeout)&&t.timeout>=1?t.timeout:1;o=o>2147483647?2147483647:o,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:r}),o)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-CAH33WOQ.cjs"),r=require("./chunk-NRF6LWBC.cjs"),t=require("./chunk-E55EQK2U.cjs"),i=require("./chunk-HYRQMTRH.cjs"),s=require("./chunk-JBQMXC5I.cjs"),n=require("./chunk-ZETAZZLD.cjs"),o=require("./chunk-6JFZL7YE.cjs"),a=require("./chunk-T7PU2V7X.cjs"),m=require("./chunk-UDA26MCU.cjs"),p=require("./chunk-PZQ6I4JJ.cjs");function y(e,r){if(!1!==r&&"stringOrNumber"!==r&&"primitives"!==r&&"all"!==r)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${p.getPreciseType(r)}\`, with value: \`${a.safeStableStringify(r)}\`.`);if(p.isNaN(e))return"primitives"===r||"all"===r?"NaN":NaN;if(p.isString(e)||p.isNumber(e))return"stringOrNumber"===r||"primitives"===r||"all"===r?String(e):e;if(p.isBoolean(e)||m.isBigInt(e)||p.isNil(e))return"primitives"===r||"all"===r?String(e):e;if(p.isNumberObject(e)||p.isBooleanObject(e)||p.isStringObject(e))return"all"===r?e.valueOf().toString():e;if(p.isSymbol(e))return"all"===r?e.toString():e;if(p.isFunction(e))return"all"===r?e.toString():e;if(p.isArray(e))return e.map(e=>y(e,r));if(p.isObjectOrArray(e)){if(a.isDate(e))return"all"===r?e.toISOString():e;if(s.isRegExp(e))return"all"===r?e.toString():e;if(p.isError(e)||e instanceof Promise)return"all"===r?e.toString():e;if(p.isSet(e))return"all"===r?[...e].map(e=>y(e,r)):e;if(a.isMap(e))return"all"===r?[...e.entries()].map(([e,t])=>[y(e,r),y(t,r)]):e;const t={};if(p.isObject(e))for(const i of Object.keys(e))t[i]=y(e[i],r);return t}return e}var c=e=>!p.isNil(e)&&(p.isString(e)?p.isNonEmptyString(e):p.isBoolean(e)?e:p.isNumber(e,{includeNaN:!0})?0!==e:p.isArray(e)?e.some(c):!!p.isObject(e)&&Object.values(e).some(c)),u=(e,r)=>{if(!p.isObjectOrArray(e))return e;const[t,...i]=r;if(p.isArray(e))for(const t of e)p.isObjectOrArray(t)&&u(t,r);else n.isEmptyArray(i)?p.isPlainObject(e)&&delete e[t]:p.isPlainObject(e)&&p.isObjectOrArray(e[t])&&u(e[t],i);return e},f=(e,r)=>{if(!p.isPlainObject(e))return e;const[t,...i]=r;return 0===i.length?p.isPlainObject(e)&&delete e[t]:p.isPlainObject(e[t])&&f(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(p.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!p.isNaN(s)&&p.isNonEmptyString(i)?s:e.trim()}return e},exports.dedupeArray=(e,r={})=>{o.assertIsArray(e,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),p.assertIsPlainObject(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!!p.hasOwnProp(r,"flatten")&&r.flatten,i=!!p.hasOwnProp(r,"forceToString")&&r.forceToString;if(!1!==i&&"stringOrNumber"!==i&&"primitives"!==i&&"all"!==i)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.getPreciseType(i)}\`, with value: \`${a.safeStableStringify(i)}\`.`);p.assertIsBoolean(t,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const n=e=>{const r=[];return e.reduce((e,t)=>{const o=p.isArray(t)?n(t):y(t,i);return r.some(e=>s.isEqual(e,o))||(r.push(o),e.push(o)),e},[])},m=e=>p.isArray(e)?e.flatMap(m):p.isSet(e)?[...e].flatMap(m):a.isMap(e)?[...e.values()].flatMap(m):[e];return n(t?m(e):e)},exports.removeObjectPaths=function(e,r,t=!0){if(n.isEmptyObject(e,{checkSymbols:!0}))return{};if(o.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=>p.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 s=t?(e=>{try{if(p.isFunction(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))})(e):e;for(const{key:e,deep:t}of r){if(i.assertIsString(e,{message:({currentType:e,validType:r})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${r}\`, but received: \`${e}\`.`}),!p.isUndefined(t)&&!p.isBoolean(t))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) ➔ (key: "${e}", deep: ${t}) must be of type \`boolean\` or \`undefined\`, but received: \`${p.getPreciseType(t)}\`.`);const r=e.split(".");s=t?u(s,r):f(s,r)}return s},exports.toBooleanContent=r=>!p.isNil(r)&&(p.isString(r)?p.isNonEmptyString(r):p.isBoolean(r)?r:p.isNumber(r,{includeNaN:!0})?0!==r:p.isArray(r)||p.isObject(r)?e.isNonEmptyValue(r):Boolean(r)),exports.toBooleanContentDeep=c,exports.toBooleanExplicit=(e,r={})=>{if(p.isNil(e))return!1;p.isPlainObject(r)||(r={});const t=!!p.hasOwnProp(r,"caseInsensitive")&&r.caseInsensitive,i=!p.hasOwnProp(r,"trimString")||r.trimString,s=!!p.hasOwnProp(r,"includeIndeterminate")&&r.includeIndeterminate;if(!p.isBoolean(t)||!p.isBoolean(i)||!p.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': \`${p.getPreciseType(t)}\`, 'trimString': \`${p.getPreciseType(i)}\`, 'includeIndeterminate': \`${p.getPreciseType(s)}\`].`);if(p.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 p.isNumber(e)?1===e:!!p.isBoolean(e)&&e},exports.toBooleanLoose=e=>!p.isNil(e)&&(p.isString(e)?!t.isEmptyString(e):p.isBoolean(e)?e:p.isNumber(e,{includeNaN:!0})?0!==e:p.isArray(e)?e.length>0:Boolean(e)),exports.toNumberArrayUnRecursive=function(e,t={}){p.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!p.hasOwnProp(t,"removeInvalidValueNumber")||t.removeInvalidValueNumber;if(p.assertIsBoolean(i,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),p.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]):p.isNull(e)?null:void 0});return i?r.filterNilArray(t):t}},exports.toNumberDeep=function(r,t={}){return p.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`}),function r(t,i){if(p.isNil(t)||s.isRegExp(t))return;const{removeEmptyArrays:o,removeEmptyObjects:m,isRoot:y}=i;if(!p.isBoolean(m)||!p.isBoolean(o))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p.getPreciseType(m)}\`, 'removeEmptyArrays': \`${p.getPreciseType(o)}\`].`);if(p.isNumber(t)||p.isBoolean(t)||p.isNonEmptyString(t)){const e=Number(t);return p.isInfinityNumber(e)||p.isNaN(e)?void 0:e}if(p.isNumberObject(t)||p.isStringObject(t)||p.isBooleanObject(t)){const e=Number(t.valueOf());return p.isInfinityNumber(e)||p.isNaN(e)?void 0:e}if(a.isDate(t,{skipInvalidDate:!0}))try{return p.isNaN(t.getTime())?0:t.getTime()}catch{return 0}if(p.isBuffer(t)){const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}if(e.isTypedArray(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}{const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}}if(p.isSet(t)){const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}if(a.isMap(t)){let e=Array.from(t.entries()).map(([e,t])=>{const i=r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1}),s=r(t,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1});return p.isUndefined(i)||p.isUndefined(s)?void 0:[i,s]}).filter(e=>!p.isUndefined(e));if(o&&(e=e.filter(e=>!n.isEmptyArray(e))),o&&n.isEmptyArray(e))return;return e}if(p.isArray(t)){const e=t.map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}if(p.isObject(t)){const e={};for(const[i,s]of Object.entries(t)){const t=r(s,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1});p.isUndefined(t)||(e[i]=t)}return m&&n.isEmptyObject(e)?y?{}:void 0:e}}(r,{removeEmptyObjects:!!p.hasOwnProp(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!p.hasOwnProp(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})},exports.toStringDeep=function(r,t={}){return p.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`}),function r(t,i){if(p.isNil(t)||p.isInfinityNumber(t))return;const{removeEmptyArrays:o,removeEmptyObjects:m,isRoot:y}=i;if(!p.isBoolean(m)||!p.isBoolean(o))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p.getPreciseType(m)}\`, 'removeEmptyArrays': \`${p.getPreciseType(o)}\`].`);if(p.isNumber(t)||p.isString(t)||p.isBoolean(t))return String(t);if(p.isNumberObject(t)){const e=t.valueOf();return p.isInfinityNumber(e)||p.isNaN(e)?void 0:e.toString()}if(p.isStringObject(t))return t.valueOf();if(p.isBooleanObject(t))return t.valueOf().toString();if(a.isDate(t,{skipInvalidDate:!0}))try{return t.toISOString()}catch{return t.toString()}if(s.isRegExp(t))return t.toString();if(p.isBuffer(t))return Array.from(t).map(e=>String(e)).filter(e=>!p.isUndefined(e));if(e.isTypedArray(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).map(e=>String(e)).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}{const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).map(e=>String(e)).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}}if(p.isSet(t)){const e=Array.from(t).map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&n.isEmptyArray(e))return;return e}if(a.isMap(t)){const e=Array.from(t.entries()).map(([e,t])=>[r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1}),r(t,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})]).filter(([e,r])=>!p.isUndefined(e)&&!p.isUndefined(r));if(o&&n.isEmptyArray(e))return;return e}if(p.isArray(t)){let e=t.map(e=>r(e,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1})).filter(e=>!p.isUndefined(e));if(o&&(e=e.filter(e=>!(p.isArray(e)&&0===e.length))),o&&n.isEmptyArray(e))return;return e}if(p.isObject(t)){const e={};for(const[i,s]of Object.entries(t)){const t=r(s,{removeEmptyObjects:m,removeEmptyArrays:o,isRoot:!1});p.isUndefined(t)?p.isArray(s)&&!o&&(e[i]=[]):e[i]=t}return m&&0===Object.keys(e).length?y?{}:void 0:e}}(r,{removeEmptyObjects:!!p.hasOwnProp(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!p.hasOwnProp(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})},exports.toStringDeepForce=y;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-ZETAZZLD.cjs"),r=require("./chunk-BAV5T2E3.cjs"),t=require("./chunk-T7PU2V7X.cjs"),o=require("./chunk-PZQ6I4JJ.cjs"),n=(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(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},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,f=o.hasOwnProp(e,"customDateFormats")?e.customDateFormats:[],g=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(f)&&o.isFunction(g)))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(f)}\`, 'onError': \`${o.getPreciseType(g)}\`].`);return{convertBooleans:t,convertDates:n,convertNumbers:s,convertNaN:N,loggingOnFail:i,removeEmptyArrays:a,removeEmptyObjects:c,removeNulls:l,removeUndefined:u,strictMode:m,customDateFormats:f,onError:g,checkSymbols:p}},i=(r,t={})=>{const a=s(t);if(o.isNull(r))return a.removeNulls?void 0:null;if(!o.isUndefined(r)){if(o.isString(r)){const e=r.trim();if(a.convertNaN&&"NaN"===e)return NaN;if(a.convertNumbers&&!isNaN(Number(e)))return Number(e);if(a.convertBooleans){if("true"===e)return!0;if("false"===e)return!1}if(a.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(a.customDateFormats?.length)for(const r of a.customDateFormats){const t=n(e,r);if(t)return t}}return a.strictMode?void 0:e}if(o.isArray(r)){const t=r.map(e=>i(e,a)).filter(e=>!o.isUndefined(e));return a.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],a);o.isUndefined(n)||(t[e]=n)}return a.removeEmptyObjects&&e.isEmptyObject(t,{checkSymbols:a.checkSymbols})?void 0:t}return a.strictMode?void 0:r}a.removeUndefined},a=e=>{if(!o.isString(e)&&!o.isNumber(e))return 0;const r=String(e).trim().replace(/[^0-9]/g,"");return Number(r)||0};exports.cleanParsedData=i,exports.extractDigits=a,exports.parseCustomDate=n,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(a(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{isNonEmptyValue as e,isTypedArray as r}from"./chunk-5IGC6PBH.js";import{filterNilArray as t}from"./chunk-OI5XKNZO.js";import{isEmptyString as o}from"./chunk-W2WNBUDE.js";import{assertIsString as n}from"./chunk-SBKGWRS5.js";import{isRegExp as i,isEqual as m}from"./chunk-NBZWMBO6.js";import{isEmptyObject as s,isEmptyArray as a}from"./chunk-6JFCSH7J.js";import{assertIsArray as p}from"./chunk-CKTLUNWX.js";import{safeStableStringify as u,isDate as c,isMap as f}from"./chunk-PET42Z7W.js";import{isBigInt as y}from"./chunk-QNKGP5DY.js";import{assertIsPlainObject as l,hasOwnProp as v,assertIsBoolean as b,isArray as d,isNull as E,getPreciseType as g,isNaN as O,isString as j,isNumber as h,isBoolean as A,isNil as S,isNumberObject as T,isBooleanObject as $,isStringObject as N,isSymbol as k,isFunction as w,isObjectOrArray as R,isError as I,isSet as P,isObject as B,isNonEmptyString as C,isPlainObject as D,isUndefined as W,isInfinityNumber as M,isBuffer as J}from"./chunk-CMW2TBOQ.js";function K(e,r={}){l(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!v(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(y(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}}function U(e,r){if(!1!==r&&"stringOrNumber"!==r&&"primitives"!==r&&"all"!==r)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${g(r)}\`, with value: \`${u(r)}\`.`);if(O(e))return"primitives"===r||"all"===r?"NaN":NaN;if(j(e)||h(e))return"stringOrNumber"===r||"primitives"===r||"all"===r?String(e):e;if(A(e)||y(e)||S(e))return"primitives"===r||"all"===r?String(e):e;if(T(e)||$(e)||N(e))return"all"===r?e.valueOf().toString():e;if(k(e))return"all"===r?e.toString():e;if(w(e))return"all"===r?e.toString():e;if(d(e))return e.map(e=>U(e,r));if(R(e)){if(c(e))return"all"===r?e.toISOString():e;if(i(e))return"all"===r?e.toString():e;if(I(e)||e instanceof Promise)return"all"===r?e.toString():e;if(P(e))return"all"===r?[...e].map(e=>U(e,r)):e;if(f(e))return"all"===r?[...e.entries()].map(([e,t])=>[U(e,r),U(t,r)]):e;const t={};if(B(e))for(const o of Object.keys(e))t[o]=U(e[o],r);return t}return e}var G=(e,r={})=>{p(e,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),l(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!!v(r,"flatten")&&r.flatten,o=!!v(r,"forceToString")&&r.forceToString;if(!1!==o&&"stringOrNumber"!==o&&"primitives"!==o&&"all"!==o)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: \`${g(o)}\`, with value: \`${u(o)}\`.`);b(t,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const n=e=>{const r=[];return e.reduce((e,t)=>{const i=d(t)?n(t):U(t,o);return r.some(e=>m(e,i))||(r.push(i),e.push(i)),e},[])},i=e=>d(e)?e.flatMap(i):P(e)?[...e].flatMap(i):f(e)?[...e.values()].flatMap(i):[e];return n(t?i(e):e)},L=r=>!S(r)&&(j(r)?C(r):A(r)?r:h(r,{includeNaN:!0})?0!==r:d(r)||B(r)?e(r):Boolean(r)),V=e=>!S(e)&&(j(e)?C(e):A(e)?e:h(e,{includeNaN:!0})?0!==e:d(e)?e.some(V):!!B(e)&&Object.values(e).some(V)),Z=(e,r={})=>{if(S(e))return!1;D(r)||(r={});const t=!!v(r,"caseInsensitive")&&r.caseInsensitive,o=!v(r,"trimString")||r.trimString,n=!!v(r,"includeIndeterminate")&&r.includeIndeterminate;if(!A(t)||!A(o)||!A(n))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${g(t)}\`, 'trimString': \`${g(o)}\`, 'includeIndeterminate': \`${g(n)}\`].`);if(j(e)){let r=e;o&&(r=r.trim()),t&&(r=r.toLowerCase());const i=["true","on","yes","1"];return n&&i.push("indeterminate"),i.includes(r)}return h(e)?1===e:!!A(e)&&e},x=e=>!S(e)&&(j(e)?!o(e):A(e)?e:h(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(j(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!O(n)&&C(o)?n:e.trim()}return e},H=(e,r)=>{if(!R(e))return e;const[t,...o]=r;if(d(e))for(const t of e)R(t)&&H(t,r);else a(o)?D(e)&&delete e[t]:D(e)&&R(e[t])&&H(e[t],o);return e},Q=(e,r)=>{if(!D(e))return e;const[t,...o]=r;return 0===o.length?D(e)&&delete e[t]:D(e[t])&&Q(e[t],o),e};function X(e,r,t=!0){if(s(e,{checkSymbols:!0}))return{};if(p(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: \`${u(r)}\`.`}),!r.every(e=>D(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: \`${u(r)}\`.`);let o=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(n(e,{message:({currentType:e,validType:r})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${r}\`, but received: \`${e}\`.`}),!W(t)&&!A(t))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) ➔ (key: "${e}", deep: ${t}) must be of type \`boolean\` or \`undefined\`, but received: \`${g(t)}\`.`);const r=e.split(".");o=t?H(o,r):Q(o,r)}return o}function Y(e,t={}){l(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});return function e(t,o){if(S(t)||i(t))return;const{removeEmptyArrays:n,removeEmptyObjects:m,isRoot:p}=o;if(!A(m)||!A(n))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${g(m)}\`, 'removeEmptyArrays': \`${g(n)}\`].`);if(h(t)||A(t)||C(t)){const e=Number(t);return M(e)||O(e)?void 0:e}if(T(t)||N(t)||$(t)){const e=Number(t.valueOf());return M(e)||O(e)?void 0:e}if(c(t,{skipInvalidDate:!0}))try{return O(t.getTime())?0:t.getTime()}catch{return 0}if(J(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}if(r(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}{const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}}if(P(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}if(f(t)){let r=Array.from(t.entries()).map(([r,t])=>{const o=e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1}),i=e(t,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1});return W(o)||W(i)?void 0:[o,i]}).filter(e=>!W(e));if(n&&(r=r.filter(e=>!a(e))),n&&a(r))return;return r}if(d(t)){const r=t.map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}if(B(t)){const r={};for(const[o,i]of Object.entries(t)){const t=e(i,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1});W(t)||(r[o]=t)}return m&&s(r)?p?{}:void 0:r}}(e,{removeEmptyObjects:!!v(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!v(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})}function q(e,t={}){l(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});return function e(t,o){if(S(t)||M(t))return;const{removeEmptyArrays:n,removeEmptyObjects:m,isRoot:s}=o;if(!A(m)||!A(n))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${g(m)}\`, 'removeEmptyArrays': \`${g(n)}\`].`);if(h(t)||j(t)||A(t))return String(t);if(T(t)){const e=t.valueOf();return M(e)||O(e)?void 0:e.toString()}if(N(t))return t.valueOf();if($(t))return t.valueOf().toString();if(c(t,{skipInvalidDate:!0}))try{return t.toISOString()}catch{return t.toString()}if(i(t))return t.toString();if(J(t))return Array.from(t).map(e=>String(e)).filter(e=>!W(e));if(r(t)){if(t instanceof BigInt64Array||t instanceof BigUint64Array){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).map(e=>String(e)).filter(e=>!W(e));if(n&&a(r))return;return r}{const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).map(e=>String(e)).filter(e=>!W(e));if(n&&a(r))return;return r}}if(P(t)){const r=Array.from(t).map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&a(r))return;return r}if(f(t)){const r=Array.from(t.entries()).map(([r,t])=>[e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1}),e(t,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})]).filter(([e,r])=>!W(e)&&!W(r));if(n&&a(r))return;return r}if(d(t)){let r=t.map(r=>e(r,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1})).filter(e=>!W(e));if(n&&(r=r.filter(e=>!(d(e)&&0===e.length))),n&&a(r))return;return r}if(B(t)){const r={};for(const[o,i]of Object.entries(t)){const t=e(i,{removeEmptyObjects:m,removeEmptyArrays:n,isRoot:!1});W(t)?d(i)&&!n&&(r[o]=[]):r[o]=t}return m&&0===Object.keys(r).length?s?{}:void 0:r}}(e,{removeEmptyObjects:!!v(t,"removeEmptyObjects")&&t.removeEmptyObjects,removeEmptyArrays:!!v(t,"removeEmptyArrays")&&t.removeEmptyArrays,isRoot:!0})}export{F as convertType,G as dedupeArray,X as removeObjectPaths,L as toBooleanContent,V as toBooleanContentDeep,Z as toBooleanExplicit,x as toBooleanLoose,K as toNumberArrayUnRecursive,Y as toNumberDeep,q as toStringDeep,U as toStringDeepForce};
@@ -1 +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}};
1
+ "use strict";var s=require("./chunk-PZQ6I4JJ.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{removeSpaces as r}from"./chunk-XEDXFSGI.js";import{isEmptyString as e}from"./chunk-W2WNBUDE.js";import{safeStableStringify as t}from"./chunk-PET42Z7W.js";import{isNonEmptyString as o,getPreciseType as a,isError as n,assertIsPlainObject as s,hasOwnProp as i,isBoolean as c,isFunction as m}from"./chunk-CMW2TBOQ.js";var p=class r extends Error{originalError;constructor(e,t){super(e,m(Error)?{cause:t}:void 0),this.name="NormalizePathnameError",this.originalError=t,m(Error.captureStackTrace)?Error.captureStackTrace(this,r):this.stack=new Error(e).stack}toJSON(){return{name:this.name,message:this.message,stack:this.stack,originalError:{name:this.originalError.name,message:this.originalError.message,stack:this.originalError.stack}}}},h=(e,s="/")=>{if(!o(s))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${a(s)}\`, with value: \`${t(s)}\`.`);if(!o(e))return s;try{if((e=(e=r(e,{trimOnly:!0})).replace(/\s+/g,"")).startsWith("http://")||e.startsWith("https://")){const r=new URL(e);return`${r.pathname}${r.search}${r.hash}`.replace(/^\/+/,"/")}return"/"+e.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(r){const e=n(r)?r:new Error("Unknown error from function `normalizePathname()`.");throw new p(`Failed to normalize pathname in function \`normalizePathname()\`: ${e.message}`,e)}},u=(r,t={})=>{if(!o(r))return"";s(t,{message:({currentType:r,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${r}\`.`});const n=!!i(t,"prefixColon")&&t.prefixColon;if(!c(n))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${a(n)}\`.`);const m=r.replace(/\D+/g,"");return e(m)?"":n?`:${m}`:m};export{u as formatEnvPort,h as normalizePathname};
@@ -1 +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};
1
+ import{isEmptyString as e}from"./chunk-W2WNBUDE.js";import{isEmptyArray as r,isEmptyObject as o}from"./chunk-6JFCSH7J.js";import{assertIsPlainObject as t,hasOwnProp as c,assertIsBoolean as m,isNil as s,isNaN as p,isString as a,isArray as n,isObject as y}from"./chunk-CMW2TBOQ.js";var u=(u,i={})=>{t(i,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const b=!!c(i,"checkSymbols")&&i.checkSymbols;return m(b,{message:({currentType:e,validType:r})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),!(!s(u)&&!1!==u&&!p(u))||(a(u)?e(u):n(u)?r(u):!!y(u)&&o(u,{checkSymbols:b}))};export{u as isEmptyValue};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-KVAL5PAG.cjs"),e=require("./chunk-E55EQK2U.cjs"),t=require("./chunk-T7PU2V7X.cjs"),a=require("./chunk-PZQ6I4JJ.cjs"),n=class r extends Error{originalError;constructor(e,t){super(e,a.isFunction(Error)?{cause:t}:void 0),this.name="NormalizePathnameError",this.originalError=t,a.isFunction(Error.captureStackTrace)?Error.captureStackTrace(this,r):this.stack=new Error(e).stack}toJSON(){return{name:this.name,message:this.message,stack:this.stack,originalError:{name:this.originalError.name,message:this.originalError.message,stack:this.originalError.stack}}}};exports.formatEnvPort=(r,t={})=>{if(!a.isNonEmptyString(r))return"";a.assertIsPlainObject(t,{message:({currentType:r,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${r}\`.`});const n=!!a.hasOwnProp(t,"prefixColon")&&t.prefixColon;if(!a.isBoolean(n))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${a.getPreciseType(n)}\`.`);const o=r.replace(/\D+/g,"");return e.isEmptyString(o)?"":n?`:${o}`:o},exports.normalizePathname=(e,o="/")=>{if(!a.isNonEmptyString(o))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${a.getPreciseType(o)}\`, with value: \`${t.safeStableStringify(o)}\`.`);if(!a.isNonEmptyString(e))return o;try{if((e=(e=r.removeSpaces(e,{trimOnly:!0})).replace(/\s+/g,"")).startsWith("http://")||e.startsWith("https://")){const r=new URL(e);return`${r.pathname}${r.search}${r.hash}`.replace(/^\/+/,"/")}return"/"+e.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(r){const e=a.isError(r)?r:new Error("Unknown error from function `normalizePathname()`.");throw new n(`Failed to normalize pathname in function \`normalizePathname()\`: ${e.message}`,e)}};
@@ -1 +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}))};
1
+ "use strict";var e=require("./chunk-E55EQK2U.cjs"),s=require("./chunk-ZETAZZLD.cjs"),r=require("./chunk-PZQ6I4JJ.cjs");exports.isEmptyValue=(t,c={})=>{r.assertIsPlainObject(c,{message:({currentType:e,validType:s})=>`Second parameter (\`options\`) must be of type \`${s}\`, but received: \`${e}\`.`});const i=!!r.hasOwnProp(c,"checkSymbols")&&c.checkSymbols;return r.assertIsBoolean(i,{message:({currentType:e,validType:s})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${s}\`, but received: \`${e}\`.`}),!(!r.isNil(t)&&!1!==t&&!r.isNaN(t))||(r.isString(t)?e.isEmptyString(t):r.isArray(t)?s.isEmptyArray(t):!!r.isObject(t)&&s.isEmptyObject(t,{checkSymbols:i}))};
@@ -1 +1 @@
1
- "use strict";var r=require("./chunk-D3VSHABU.cjs");exports.assertIsString=(e,s={})=>{if(r.isString(e))return;const t=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"string"});throw new TypeError(t)};
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.assertIsString=(e,s={})=>{if(r.isString(e))return;const t=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"string"});throw new TypeError(t)};
@@ -1 +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};
1
+ import{isNonEmptyString as e}from"./chunk-CMW2TBOQ.js";var l=l=>{if(!e(l))return 0;let c=l.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=!1;/^\(.*\)$/.test(c)&&(s=!0,c=c.slice(1,-1).trim()),c=c.replace(/^[-\s]+/,e=>e.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(c)||/^[^\d]*-/.test(c);let r=c.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,"");const t=r.match(/,\d{2}/g);if(t&&t.length>1)r=r.replace(/,/g,"");else{const e=(r.match(/\./g)||[]).length,l=(r.match(/,/g)||[]).length;if(e>1&&0===l)r=r.replace(/\./g,"");else if(l>1&&0===e)r=r.replace(/,/g,"");else{const e=r.lastIndexOf(","),l=r.lastIndexOf(".");if(e>l)r=r.replace(/\./g,"").replace(",",".");else if(l>e)r=r.replace(/,/g,"");else if(e>l){const l=r.slice(0,e).replace(/,/g,"").replace(/\./g,""),c=r.slice(e+1);r=l+"."+c}else if(l>e){const e=r.slice(0,l).replace(/\./g,"").replace(/,/g,""),c=r.slice(l+1);r=e+"."+c}else-1!==e?r=r.replace(/,/g,""):-1!==l&&(r=r.replace(/\./g,""))}}const a=parseFloat(r)||0;return s?-a:a};export{l as parseCurrencyString};
@@ -1 +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)};
1
+ "use strict";var r=require("./chunk-UDA26MCU.cjs"),e=require("./chunk-PZQ6I4JJ.cjs");exports.assertIsBigInt=(s,i={})=>{if(r.isBigInt(s))return;const n=e.resolveErrorMessageAssertions({value:s,options:i,requiredValidType:"big int"});throw new TypeError(n)},exports.assertIsNumber=(r,s={})=>{const i=e.hasOwnProp(s,"includeNaN")?s.includeNaN:void 0;if(e.isNumber(r,{includeNaN:i}))return;const n=e.resolveErrorMessageAssertions({value:r,options:s,requiredValidType:"number"});throw new TypeError(n)};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r}from"./chunk-CMW2TBOQ.js";var m=m=>r(m)?m.trim():"";export{m as normalizeString};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-T7PU2V7X.cjs"),r=require("./chunk-PZQ6I4JJ.cjs"),t=e=>e instanceof RegExp;function n(e){return e instanceof ArrayBuffer}function i(f,s,u,o=new WeakMap){if(f===s)return!0;if(f!=f&&s!=s)return!0;if(!r.isObjectOrArray(f)||!r.isObjectOrArray(s))return!1;if(o.get(f)===s)return!0;o.set(f,s);const a=(e,t,n,f,s)=>{if(u){const i=u(e,t,n,f,s,o);if(!r.isUndefined(i))return i}return i(e,t,u,o)};if(e.isDate(f)&&e.isDate(s))return f.getTime()===s.getTime();if(t(f)&&t(s))return f.source===s.source&&f.flags===s.flags;if(r.isError(f)&&r.isError(s))return f.name===s.name&&f.message===s.message;if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(s)){const e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength),r=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(n(f)&&n(s)){if(f.byteLength!==s.byteLength)return!1;const e=new Uint8Array(f),r=new Uint8Array(s);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(e.isMap(f)&&e.isMap(s)){if(f.size!==s.size)return!1;for(const[e,r]of f){if(!s.has(e))return!1;if(!i(r,s.get(e),u,o))return!1}return!0}if(r.isSet(f)&&r.isSet(s)){if(f.size!==s.size)return!1;for(const e of f){let r=!1;for(const t of s)if(i(e,t,u,o)){r=!0;break}if(!r)return!1}return!0}if(r.isArray(f)&&r.isArray(s)){if(f.length!==s.length)return!1;for(let e=0;e<f.length;e++)if(!a(f[e],s[e],e,f,s))return!1;return!0}if(Object.getPrototypeOf(f)!==Object.getPrototypeOf(s))return!1;const c=Reflect.ownKeys(f),g=Reflect.ownKeys(s);if(c.length!==g.length)return!1;for(const e of c){if(!a(f[e],s[e],e,f,s))return!1}return!0}exports.baseDeepEqual=i,exports.isArrayBuffer=n,exports.isEqual=function(e,r){return i(e,r,void 0,new WeakMap)},exports.isRegExp=t;
@@ -0,0 +1 @@
1
+ import{isEmptyString as e}from"./chunk-W2WNBUDE.js";import{isNonEmptyString as r,isPlainObject as t,isString as i,isNumber as s,getPreciseType as a}from"./chunk-CMW2TBOQ.js";var n=(e,i={lowerCaseNextRest:!0,trim:!1})=>{if(!r(e))return"";t(i)||(i={});const s=!1!==i.lowerCaseNextRest;return!0===i.trim&&(e=e.trim()),e[0].toUpperCase()+(s?e.slice(1).toLowerCase():e.slice(1))},o=(e,i={collapseSpaces:!1,trim:!1})=>{if(!r(e))return"";let s=e;t(i)||(i={});const a=!0===i.collapseSpaces;if(!0===i.trim&&(s=s.trim()),a){const e=s.match(/^\s*/)?.[0]??"",r=s.match(/\s*$/)?.[0]??"";s=s.trim().replace(/\s+/g," "),s=`${e}${s}${r}`}return s.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")};function p(r){if(!i(r))return;if(e(r))return"";return r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()}var c=e=>{if(!r(e))return"";const t=(e=e.replace(/\s+/g," ").trim()).split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():e.length>1?e.substring(0,2).toUpperCase():e[0].toUpperCase()},l=(e,r,t)=>{if(!s(e)||!i(t)||!i(r))throw new TypeError(`First parameter (\`index\`) must be of type \`number\`, second parameter (\`originalString\`) and third parameter (\`replaceTo\`) must be of type \`string\`, but received: "['index': \`${a(e)}\`, 'originalString': \`${a(r)}\`, 'replaceTo': \`${a(t)}\`]".`);if(e<0||e>=r.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return r.slice(0,e)+t+r.slice(e+1)};export{n as capitalizeFirst,o as capitalizeWords,c as getInitialsName,l as replaceAt,p as stripHtmlTags};
@@ -0,0 +1 @@
1
+ import{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-5IGC6PBH.js";import{parseCurrencyString as t}from"./chunk-IRFL4MAX.js";import{isEmptyString as n}from"./chunk-W2WNBUDE.js";import{assertIsString as o}from"./chunk-SBKGWRS5.js";import{isEqual as i,isRegExp as u,baseDeepEqual as a}from"./chunk-NBZWMBO6.js";import{isEmptyArray as s}from"./chunk-6JFCSH7J.js";import{safeStableStringify as f,isDate as c,isMap as p}from"./chunk-PET42Z7W.js";import{isArray as m,getPreciseType as h,assertIsBoolean as y,isNonEmptyString as l,assertIsPlainObject as g,isObjectOrArray as b,isFunction as d,isString as v,isNumber as T,isSymbol as $,isSet as j,isPlainObject as S,isNil as w,isBoolean as N,isBuffer as k,isNaN as O,isUndefined as E,isObject as P,isNull as W}from"./chunk-CMW2TBOQ.js";var A=(e,r,t=!1)=>{if(!m(e)||!m(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${h(e)}\`, 'array2': \`${h(r)}\`].`);if(y(t,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!i(e.length,r.length))return!1;const n=e=>{if(!m(e))return e;return e.map(e=>m(e)?n(e):e).sort((e,r)=>{const t=f(e),n=f(r);return t<n?-1:t>n?1:0})},o=t?n(e):e,u=t?n(r):r;return!!i(o.length,u.length)&&o.every((e,r)=>f(e)===f(u[r]))},M=(e,r)=>i(e,r),R=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname},B=(r,t)=>{if(!e(r)||!e(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search},x=(e,r,t={})=>{if(!l(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:i="i"}=t;y(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),o(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const u=r.filter(e=>l(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==u.length&&u.every(r=>new RegExp(n?`(?<!\\S)${r}(?!\\S)`:r,i.includes("u")?i:i+"u").test(e))},z=(e,r,t={})=>{if(!l(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:i="i"}=t;y(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),o(i,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const u=r.filter(e=>l(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===u.length)return!1;const a=n?`(?<!\\S)(${u.join("|")})(?!\\S)`:`(${u.join("|")})`;return new RegExp(a,i.includes("u")?i:i+"u").test(e)};function I(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var F=(e,r)=>{if(!b(e))return!1;if(!I(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${h(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(m(e)?e.some(e=>F(e,r)):Object.values(e).some(e=>b(e)&&F(e,r)))},Z=(e,r)=>{if(!m(e)||!m(r)||s(e)||s(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},C=e=>"[object Arguments]"===Object.prototype.toString.call(e);function U(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}function G(e){return!d(e)&&b(e)&&U(e?.length)}function J(e){return b(e)&&U(e.length)}var L=e=>{if(!v(e)&&!T(e))return!1;return 0!==t(e.toString())||"0"===e.toString().trim()},_=(e,r)=>{if("number"==typeof e&&"number"==typeof r&&Number.isNaN(e)&&Number.isNaN(r))return!0;if(e===r)return!0;if(typeof e!=typeof r)return!1;if(c(e)&&c(r))return e.getTime()===r.getTime();if(u(e)&&u(r))return e.toString()===r.toString();if($(e)&&$(r))return e.toString()===r.toString();if(j(e)&&j(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const r of e){let e=!1;for(let o=0;o<t.length;o++)if(!n.has(o)&&_(r,t[o])){n.add(o),e=!0;break}if(!e)return!1}return!0}if(p(e)&&p(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const[r,o]of e){let e=!1;for(let i=0;i<t.length;i++){if(n.has(i))continue;const[u,a]=t[i];if(_(r,u)&&_(o,a)){n.add(i),e=!0;break}}if(!e)return!1}return!0}if(m(e)&&m(r))return e.length===r.length&&e.every((e,t)=>_(e,r[t]));if(b(e)&&b(r)&&e&&r){if(m(e)!==m(r))return!1;const t=Object.keys(e),n=Object.keys(r);return t.length===n.length&&t.every(t=>_(e[t],r[t]))}return!1};function H(e){return!!e&&"object"==typeof e&&1===e?.nodeType&&!S(e)}function K(e){return!!w(e)||(!!(N(e)||T(e,{includeNaN:!0})||$(e))||(d(e)?0===Object.keys(e).length:v(e)||m(e)||C(e)||r(e)?0===e.length:p(e)||j(e)?0===e.size:k(e)?0===e.length:!!S(e)&&0===Object.keys(e).length))}var X=e=>{if(v(e))return n(e);if(T(e))return O(e);if(m(e))return s(e)||e.every(X);if(b(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>X(e[r]))}return!e};function D(e,r,t){return a(e,r,t,new WeakMap)}function Q(e,r,t){return q(e,r,t)}function V(e,r){return e===r||0===e&&0===r||Number.isNaN(e)&&Number.isNaN(r)}function q(e,r,t){if(e===r)return!0;if(!b(r))return V(e,r);if(!b(e))return!1;const n=Reflect.ownKeys(r).filter(e=>!(m(r)&&"length"===e));for(const o of n){if(!(o in e))return!1;const n=e[o],i=r[o],u=t?.(n,i,o,e,r);if(E(u)){if(b(n)&&b(i)){if(!Q(n,i,t))return!1}else if(!V(n,i))return!1}else if(!u)return!1}return!0}function Y(e,r){return q(e,r)}var ee=Function.prototype.toString,re=/\{\s*\[native code\]\s*\}/;function te(e){if(!d(e))return!1;try{const r=ee.call(e);return re.test(r)}catch{return!1}}function ne(e){return!w(e)&&(b(e)||d(e))}function oe(e){return"number"==typeof e&&Number.isSafeInteger(e)}var ie=e=>{if(!l(e))return!1;let r;try{r=decodeURIComponent(e)}catch{return!1}if(!r.startsWith("http://")&&!r.startsWith("https://"))return!1;return new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(r)};function ue(e){return P(e)&&!W(e)&&e instanceof WeakMap}export{A as areArraysEqual,M as areObjectsEqual,R as areURLsEqualPath,B as areURLsIdentical,Z as arrayHasAnyMatch,F as doesKeyExist,C as isArguments,G as isArrayLike,J as isArrayLikeObject,L as isCurrencyLike,_ as isDeepEqual,H as isElement,K as isEmpty,X as isEmptyDeep,D as isEqualWith,U as isLength,Y as isMatch,Q as isMatchWith,te as isNative,ne as isObjectLoose,I as isPropertyKey,oe as isSafeInteger,ie as isValidURL,ue as isWeakMap,x as textContainsAll,z as textContainsAny};
@@ -0,0 +1 @@
1
+ import{assertIsArray as e}from"./chunk-CKTLUNWX.js";import{isPlainObject as i,isNumber as r,isNonEmptyString as s,isFunction as o,hasOwnProp as t,isNonEmptyArray as n,getPreciseType as a}from"./chunk-CMW2TBOQ.js";import{getDefaultConfig as c,extendTailwindMerge as f}from"tailwind-merge-v3";import{getDefaultConfig as l,extendTailwindMerge as p}from"tailwind-merge-v4";function d(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=d(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var m=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=d(e))&&(s&&(s+=" "),s+=i);return s},u=e=>{i(e)||(e={});let{config:a,prefix:c,extend:f,override:l,cacheSize:p,experimentalParseClassName:d}=e;i(a)||(a={}),i(f)||(f={}),i(l)||(l={}),r(p)||(p=void 0),s(c)||(c=void 0),o(d)||(d=void 0);return{config:a,override:l,cacheSize:p,prefix:c,experimentalParseClassName:d,theme:t(f,"theme")?f.theme:{},classGroups:t(f,"classGroups")?f.classGroups:{},conflictingClassGroupModifiers:t(f,"conflictingClassGroupModifiers")?f.conflictingClassGroupModifiers:{},conflictingClassGroups:t(f,"conflictingClassGroups")?f.conflictingClassGroups:{},orderSensitiveModifiers:t(f,"orderSensitiveModifiers")&&n(f.orderSensitiveModifiers)?f.orderSensitiveModifiers:[]}},g=c(),x=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,override:a,prefix:c,theme:l,experimentalParseClassName:p}=u(e);return f({prefix:c??o.prefix,cacheSize:r||g.cacheSize,experimentalParseClassName:p,override:a,extend:{conflictingClassGroupModifiers:{...g.conflictingClassGroupModifiers,...t},theme:{...g.theme,...l},conflictingClassGroups:{...g.conflictingClassGroups,...n},classGroups:{...g.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},h=l(),C=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,orderSensitiveModifiers:a,override:c,prefix:f,theme:l,experimentalParseClassName:d}=u(e);return p({prefix:f||o.prefix,cacheSize:r||h.cacheSize,experimentalParseClassName:d,override:c,extend:{conflictingClassGroupModifiers:{...h.conflictingClassGroupModifiers,...t},theme:{...h.theme,...l},conflictingClassGroups:{...h.conflictingClassGroups,...n},orderSensitiveModifiers:[...h.orderSensitiveModifiers,...a],classGroups:{...h.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},G=x(),v=C(),S=(...e)=>G(m(...e)),M=(...e)=>v(m(...e)),y=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},z=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},w=i=>(e(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString()));export{S as cnV3,M as cnV4,y as customCnV3,z as customCnV4,w as shouldForwardProp,x as twMergeDefaultV3,C as twMergeDefaultV4};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-PZQ6I4JJ.cjs");exports.removeSpaces=(e,t={trimOnly:!1})=>{if(!r.isNonEmptyString(e))return"";r.isPlainObject(t)||(t={});const{trimOnly:i=!1}=t;return i?e.trim():e.replace(/\s+/g,"")};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-FJZGG54N.cjs"),r=require("./chunk-JBQMXC5I.cjs"),t=require("./chunk-ZETAZZLD.cjs"),s=require("./chunk-6JFZL7YE.cjs"),i=require("./chunk-T7PU2V7X.cjs"),n=require("./chunk-PZQ6I4JJ.cjs"),a=e=>{s.assertIsArray(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=[];return e.forEach((s,i)=>{for(let n=i+1;n<e.length;n++)if(r.isEqual(s,e[n])){t.some(e=>r.isEqual(e,s))||t.push(s);break}}),t};exports.findDuplicates=a,exports.omitKeys=(e,r)=>{if(!n.isPlainObject(e))return{};s.assertIsArray(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=a(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},exports.omitKeysDeep=(r,c)=>{if(!n.isPlainObject(r))return{};s.assertIsArray(c,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const o=a(c);if(n.isNonEmptyArray(o))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${i.safeStableStringify(o)}\`.`);const u=(e,r)=>{if(!n.isObjectOrArray(e))return e;const[s,...i]=r;if(t.isEmptyArray(i))if(n.isArray(e)){const r=parseInt(s);!n.isNaN(r)&&r in e&&e.splice(r,1)}else delete e[s];else{const r=e[s];n.isObjectOrArray(r)&&(e[s]=u(r,i))}return e},y=e=>{if(n.isArray(e))return e.map(y).filter(e=>!(n.isObjectOrArray(e)&&0===Object.keys(e).length));if(n.isObjectOrArray(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,y(r)]).filter(([,e])=>!(n.isUndefined(e)||n.isObjectOrArray(e)&&0===Object.keys(e).length)))}return e},l=e.safeJsonParse(i.safeStableStringify(r));for(const e of c){const r=e.split(".");u(l,r)}return y(l)};
@@ -0,0 +1 @@
1
+ import{isDate as e,isMap as r}from"./chunk-PET42Z7W.js";import{isObjectOrArray as t,isError as n,isSet as f,isArray as i,isUndefined as u}from"./chunk-CMW2TBOQ.js";var o=e=>e instanceof RegExp;function s(e){return e instanceof ArrayBuffer}function g(a,c,l,y=new WeakMap){if(a===c)return!0;if(a!=a&&c!=c)return!0;if(!t(a)||!t(c))return!1;if(y.get(a)===c)return!0;y.set(a,c);const h=(e,r,t,n,f)=>{if(l){const i=l(e,r,t,n,f,y);if(!u(i))return i}return g(e,r,l,y)};if(e(a)&&e(c))return a.getTime()===c.getTime();if(o(a)&&o(c))return a.source===c.source&&a.flags===c.flags;if(n(a)&&n(c))return a.name===c.name&&a.message===c.message;if(ArrayBuffer.isView(a)&&ArrayBuffer.isView(c)){const e=new Uint8Array(a.buffer,a.byteOffset,a.byteLength),r=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(s(a)&&s(c)){if(a.byteLength!==c.byteLength)return!1;const e=new Uint8Array(a),r=new Uint8Array(c);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(r(a)&&r(c)){if(a.size!==c.size)return!1;for(const[e,r]of a){if(!c.has(e))return!1;if(!g(r,c.get(e),l,y))return!1}return!0}if(f(a)&&f(c)){if(a.size!==c.size)return!1;for(const e of a){let r=!1;for(const t of c)if(g(e,t,l,y)){r=!0;break}if(!r)return!1}return!0}if(i(a)&&i(c)){if(a.length!==c.length)return!1;for(let e=0;e<a.length;e++)if(!h(a[e],c[e],e,a,c))return!1;return!0}if(Object.getPrototypeOf(a)!==Object.getPrototypeOf(c))return!1;const b=Reflect.ownKeys(a),m=Reflect.ownKeys(c);if(b.length!==m.length)return!1;for(const e of b){if(!h(a[e],c[e],e,a,c))return!1}return!0}function a(e,r){return g(e,r,void 0,new WeakMap)}export{g as baseDeepEqual,s as isArrayBuffer,a as isEqual,o as isRegExp};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-V45XJKHW.cjs"),r=require("./chunk-ZETAZZLD.cjs"),i=require("./chunk-UDA26MCU.cjs"),s=require("./chunk-PZQ6I4JJ.cjs");function t(e){if(s.isNil(e))return;if(!s.isArray(e))return[];return e.reduce((e,i)=>{if(!s.isNil(i))if(s.isArray(i)){const s=t(i);s&&!r.isEmptyArray(s)&&e.push(s)}else e.push(i);return e},[])}exports.filterNilArray=t,exports.toStringArrayUnRecursive=function(r,n={}){s.assertIsPlainObject(n,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const u=!s.hasOwnProp(n,"removeInvalidValue")||n.removeInvalidValue;if(s.assertIsBoolean(u,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s.isArray(r)){const n=Array.from(r,r=>s.isString(r)||e.isFinite(r)||s.isBoolean(r)||i.isBigInt(r)?String(r):s.isNull(r)?null:void 0);return u?t(n):n}};
@@ -0,0 +1 @@
1
+ import{isFinite as e}from"./chunk-3IBQ5MOM.js";import{isEmptyArray as r}from"./chunk-6JFCSH7J.js";import{isBigInt as t}from"./chunk-QNKGP5DY.js";import{isNil as o,isArray as n,assertIsPlainObject as u,hasOwnProp as i,assertIsBoolean as m,isString as p,isBoolean as s,isNull as a}from"./chunk-CMW2TBOQ.js";function c(e){if(o(e))return;if(!n(e))return[];return e.reduce((e,t)=>{if(!o(t))if(n(t)){const o=c(t);o&&!r(o)&&e.push(o)}else e.push(t);return e},[])}function f(r,o={}){u(o,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const f=!i(o,"removeInvalidValue")||o.removeInvalidValue;if(m(f,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n(r)){const o=Array.from(r,r=>p(r)||e(r)||s(r)||t(r)?String(r):a(r)?null:void 0);return f?c(o):o}}export{c as filterNilArray,f as toStringArrayUnRecursive};
@@ -0,0 +1 @@
1
+ import{safeJsonParse as e}from"./chunk-2CQX5CBG.js";import{isEqual as r}from"./chunk-NBZWMBO6.js";import{isEmptyArray as t}from"./chunk-6JFCSH7J.js";import{assertIsArray as n}from"./chunk-CKTLUNWX.js";import{safeStableStringify as o}from"./chunk-PET42Z7W.js";import{isPlainObject as s,isNonEmptyArray as i,isObjectOrArray as c,isArray as a,isNaN as u,isUndefined as m}from"./chunk-CMW2TBOQ.js";var f=e=>{n(e,{message:({currentType:e,validType:r})=>`First parameter (\`values\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=[];return e.forEach((n,o)=>{for(let s=o+1;s<e.length;s++)if(r(n,e[s])){t.some(e=>r(e,n))||t.push(n);break}}),t},p=(e,r)=>{if(!s(e))return{};n(r,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const t=f(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e)))},l=(r,p)=>{if(!s(r))return{};n(p,{message:({currentType:e,validType:r})=>`Second parameter (\`keysToOmit\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`});const l=f(p);if(i(l))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${o(l)}\`.`);const y=(e,r)=>{if(!c(e))return e;const[n,...o]=r;if(t(o))if(a(e)){const r=parseInt(n);!u(r)&&r in e&&e.splice(r,1)}else delete e[n];else{const r=e[n];c(r)&&(e[n]=y(r,o))}return e},d=e=>{if(a(e))return e.map(d).filter(e=>!(c(e)&&0===Object.keys(e).length));if(c(e)){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,d(r)]).filter(([,e])=>!(m(e)||c(e)&&0===Object.keys(e).length)))}return e},h=e(o(r));for(const e of p){const r=e.split(".");y(h,r)}return d(h)};export{f as findDuplicates,p as omitKeys,l as omitKeysDeep};
@@ -0,0 +1 @@
1
+ import{isBigInt as e}from"./chunk-QNKGP5DY.js";import{assertIsPlainObject as r,isPlainObject as t,isBoolean as n,isNaN as o,hasOwnProp as s,getPreciseType as i,isUndefined as a,isNumberObject as u,isInfinityNumber as f,isStringObject as p,isBooleanObject as c,isFunction as l,isSymbol as y,isObjectOrArray as d,isSet as m,isArray as b,isNull as v,isNumber as S,isObject as g}from"./chunk-CMW2TBOQ.js";function k(e){return"[object Map]"===Object.prototype.toString.call(e)||e instanceof Map}var h=(e,s={})=>{r(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!(!t(s)||!n(s.skipInvalidDate))&&s.skipInvalidDate,a=e instanceof Date;return i?a:a&&!o(e.getTime())},O=(t,O={})=>{r(O,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const $=!!s(O,"pretty")&&O.pretty,T=!s(O,"sortKeys")||O.sortKeys,A=!!s(O,"sortArray")&&O.sortArray,j=!!s(O,"keepUndefined")&&O.keepUndefined;if(!(n(T)&&n(A)&&n($)&&n(j)))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\`, \`keepUndefined\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${i(T)}\`, 'sortArray': \`${i(A)}\`, 'keepUndefined': \`${i(j)}\`, 'pretty': \`${i($)}\`]".`);if(a(t))return j?"undefined":"null";const K=new WeakSet,w=e=>v(e)||!d(e)&&!l(e),C=r=>{if(u(r)){const e=r.valueOf();return o(e)||f(e)?null:e}if(p(r))return r.valueOf();if(c(r))return r.valueOf();if(!l(r)&&!y(r)){if(e(r))return r.toString();if(o(r)||f(r))return null;if(a(r))return j?void 0:null;if(d(r)){if(K.has(r))return"[Circular]";if(K.add(r),h(r))return r.toISOString();if(k(r))return{map:Array.from(r.entries()).map(([e,r])=>[e,C(r)])};if(m(r))return{set:Array.from(r.values()).map(C)};if(b(r)){const e=r.map(C);if(A){const r=[],t=[];for(const n of e)w(n)?r.push(n):t.push(n);return r.sort((e,r)=>S(e)&&S(r)?e-r:String(e).localeCompare(String(r))),[...r,...t]}return e}const e=Object.keys(r);T&&e.sort((e,r)=>{const t=Number(e),n=Number(r);return o(t)||o(n)?e.localeCompare(r):t-n});const t={};if(g(r))for(const n of e){const e=C(r[n]);a(e)||(t[n]=e)}return t}return r}};try{return JSON.stringify(C(t),null,$?2:0)}catch(e){return console.warn("Error in safeStableStringify:",e),"{}"}};export{h as isDate,k as isMap,O as safeStableStringify};
@@ -0,0 +1 @@
1
+ "use strict";var e=e=>"boolean"==typeof e,r=e=>"function"==typeof e;function t(e){return null==e}function o(e){return Array.isArray(e)}function a(e){return"object"==typeof e&&!t(e)&&!o(e)}function n(e){if(!a(e))return!1;const r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}var s=e=>"string"==typeof e;function i(e){return a(e)&&"[object Number]"===Object.prototype.toString.call(e)}function c(e){return"number"==typeof e?Number.isNaN(e):i(e)&&Number.isNaN(e.valueOf())}var u=e=>null===e,l=(r,t={})=>{if(e(r))return;const o=M({value:r,options:t,requiredValidType:"boolean"});throw new TypeError(o)},p=(r,t={})=>{W(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!(!n(t)||!e(t.includeNaN))&&t.includeNaN;l(o,{message:({currentType:e,validType:r})=>`Parameter \`includeNaN\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const a="number"==typeof r;return o?a:a&&!Number.isNaN(r)},f=e=>"symbol"==typeof e,m=e=>void 0===e;function b(e){return o(e)||a(e)}function y(e,t,o={}){if(!s(e)&&!b(e)&&!r(e))return!1;W(o,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const a=void 0===o.discardUndefined||o.discardUndefined,n=void 0!==o.discardNull&&o.discardNull;l(a,{message:({currentType:e,validType:r})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),l(n,{message:({currentType:e,validType:r})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=[];if(s(t)&&t.trim().length>0||p(t,{includeNaN:!0})){(p(t,{includeNaN:!0})?String(t):t).split(".").forEach(e=>{const r=e.match(/^\[(\d+)\]$/),t=e.match(/^Symbol\((.+)\)$/);r?i.push(Number(r[1])):t?i.push(Symbol.for(t[1])):c(Number(e))?i.push(e):i.push(Number(e))})}else{if(!f(t))return!1;i.push(t)}let y=s(e)&&e.trim().length>0?Object(e):e;for(const e of i)if(s(e)&&e.trim().length>0||p(e,{includeNaN:!0})){if(u(y)||!Object.prototype.hasOwnProperty.call(y,e))return!1;y=y[e]}else{if(!f(e))return!1;{if(u(y)||"object"!=typeof y&&!r(y))return!1;const t=Object.getOwnPropertySymbols(y).find(r=>r===e||r.description===e.description);if(!t)return!1;y=y[t]}}return(!a||!m(y))&&(!n||!u(y))}var d=(e,r={})=>{if(!s(e))return!1;W(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const t=!y(r,"trim")||r.trim;l(t,{message:({currentType:e,validType:r})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});return(t?e.trim():e).length>0},g=e=>"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error,j=e=>"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e);function S(e){return a(e)&&"[object String]"===Object.prototype.toString.call(e)}function h(e){return a(e)&&"[object Boolean]"===Object.prototype.toString.call(e)}function v(e){if("number"==typeof e||i(e)){const r=Number(e);return r===1/0||r===-1/0}return!1}var N=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),x={string:"String",number:"Number",boolean:"Boolean",bigint:"Big Int",symbol:"Symbol",undefined:"Undefined",null:"Null",regexp:"Reg Exp",reflect:"Reflect",proxy:"Proxy",atomics:"Atomics",object:"Object",array:"Array",arguments:"Arguments",function:"Function",asyncfunction:"Async Function",generatorfunction:"Generator Function",asyncgeneratorfunction:"Async Generator Function",generator:"Generator",promise:"Promise",evalerror:"Eval Error",rangeerror:"Range Error",referenceerror:"Reference Error",syntaxerror:"Syntax Error",typeerror:"Type Error",urierror:"URI Error",aggregateerror:"Aggregate Error",error:"Error",int8array:"Int 8 Array",uint8array:"Uint 8 Array",uint8clampedarray:"Uint 8 Clamped Array",int16array:"Int 16 Array",uint16array:"Uint 16 Array",int32array:"Int 32 Array",uint32array:"Uint 32 Array",float32array:"Float 32 Array",float64array:"Float 64 Array",bigint64array:"Big Int 64 Array",biguint64array:"Big Uint 64 Array",arraybuffer:"Array Buffer",sharedarraybuffer:"Shared Array Buffer",dataview:"Data View",arraybufferview:"Array Buffer View",map:"Map",set:"Set",weakmap:"Weak Map",weakset:"Weak Set",mapiterator:"Map Iterator",setiterator:"Set Iterator",arrayiterator:"Array Iterator",stringiterator:"String Iterator",readablestream:"Readable Stream",writablestream:"Writable Stream",transformstream:"Transform Stream",readablestreamdefaultreader:"Readable Stream Default Reader",writablestreamdefaultwriter:"Writable Stream Default Writer",readablestreamdefaultcontroller:"Readable Stream Default Controller",transformstreamdefaultcontroller:"Transform Stream Default Controller",abortcontroller:"Abort Controller",abortsignal:"Abort Signal",fetch:"fetch",request:"Request",response:"Response",headers:"Headers",formdata:"FormData",blob:"Blob",file:"File",filelist:"FileList",filereader:"FileReader",intl:"Intl",collator:"Intl. Collator",datetimeformat:"Intl. Date Time Format",listformat:"Intl. List Format",numberformat:"Intl. Number Format",pluralrules:"Intl. Plural Rules",relativetimeformat:"Intl. Relative Time Format",segmenter:"Intl. Segmenter",locale:"Intl. Locale",displaynames:"Intl. Display Names",finalizationregistry:"Finalization Registry",weakref:"Weak Ref",structuredclone:"structured Clone",urlpattern:"URL Pattern",performance:"Performance",performanceobserver:"Performance Observer",performanceentry:"Performance Entry",performancemark:"Performance Mark",performancemeasure:"Performance Measure",webassembly:"Web Assembly",wasmmodule:"WebAssembly .Module",wasminstance:"WebAssembly. Instance",wasmmemory:"WebAssembly. Memory",wasmtable:"WebAssembly. Table",buffer:"Buffer",process:"Process",eventemitter:"Event Emitter",stream:"Stream",fs:"fs",path:"path",url:"URL",urlsearchparams:"URL Search Params",node:"Node",element:"Element",htmlelement:"HTML Element",svgelement:"SVG Element",document:"Document",documentfragment:"Document Fragment",shadowroot:"Shadow Root",nodelist:"Node List",htmlcollection:"HTML Collection",mutationobserver:"Mutation Observer",intersectionobserver:"Intersection Observer",resizeobserver:"Resize Observer"};function C(e){return Array.isArray(e)&&e.length>0}function A(e){return"[object Set]"===Object.prototype.toString.call(e)||e instanceof Set}var O=e=>{let r="";return o(e)?r=e.map(e=>d(e)?e.trim():"").filter(e=>e.length).join("-"):d(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)},T=e=>{const r=new Set([]),t=e=>e.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(d(e)){const o=t(e);o&&r.add(o)}return C(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),A(e)&&e.forEach(e=>{if(d(e)){const o=t(e);o&&r.add(o)}}),r},w=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-").replace(/^-+|-+$/g,"")},P=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(".")},E=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map((e,r)=>o.has(e)?e:0===r?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},I=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("-")},R=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join("_")},L=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.toLowerCase()).join(" ")},B=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")},F=(e,r)=>{if(!C(e)&&!d(e))return"";const t=O(e),o=T(r);return t.map(e=>o.has(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},U=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),$=Object.entries(x).reduce((e,[r,t])=>(e[U(r)]=t,e),{});var D=(e,r)=>"toPascalCaseSpace"===r?F(e,N):"slugify"===r?w(e,N):"toCamelCase"===r?E(e,N):"toDotCase"===r?P(e,N):"toKebabCase"===r?I(e,N):"toPascalCase"===r?B(e,N):"toSnakeCase"===r?R(e,N):L(e,N),_=(e,t={formatCase:"toLowerCase"})=>{n(t)||(t={});const o=t.formatCase;if(u(e))return D($[U("null")]??"Null",o);if(c(e))return"NaN";if(v(e))return String(e);if(i(e))return D("Number Constructor",o);if(S(e))return D("String Constructor",o);if(h(e))return D("Boolean Constructor",o);const s=typeof e;if(!b(e)&&!r(e))return D($[U(s)]??s,o);if(j(e))return D($[U("buffer")]??"Buffer",o);if(function(e){if("object"!=typeof e||null===e)return!1;const r=Object.prototype.toString.call(e);if(["[object Array]","[object Date]","[object RegExp]","[object Map]","[object Set]","[object WeakMap]","[object WeakSet]","[object Function]","[object Error]","[object Promise]","[object Generator]","[object GeneratorFunction]","[object AsyncFunction]"].includes(r))return!1;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return!0}}(e))return D($[U("proxy")]??"Proxy",o);if(a(e)&&r(e?.next)&&r(e?.throw))return D($[U("generator")]??"Generator",o);if(g(e)){const r=e.constructor?.name??"Error";return D($[U(r)]??$[U(r.replace(/\s+/g,""))]??r,o)}if(u(Object.getPrototypeOf(e)))return D($[U("object")]??"Object",o);const l=Object.prototype.toString.call(e).slice(8,-1)||"Object",p=$[U(l)];if(p)return D(p,o);const f=e?.constructor?.name;return D(f&&"Object"!==f?$[U(f)]??f:l,o)};function M(e){const{requiredValidType:t,value:o,options:a}=e||{},{message:s,formatCase:i}=n(a)?a:{},c=I(t),u=_(o,{formatCase:i}),l={currentType:u,validType:c},p=`Parameter input (\`value\`) must be of type \`${c}\`, but received: \`${u}\`.`;return r(s)?d(s(l))?s(l).trim():p:d(s)?s.trim():p}function W(e,r={}){if(n(e))return;const t=M({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}Object.values({...x,plainobject:"Plain Object"}),exports.FIXES_RAW=x,exports.__internalAcronyms__=N,exports.assertIsBoolean=l,exports.assertIsPlainObject=W,exports.getPreciseType=_,exports.hasOwnProp=y,exports.isArray=o,exports.isBoolean=e,exports.isBooleanObject=h,exports.isBuffer=j,exports.isError=g,exports.isFunction=r,exports.isInfinityNumber=v,exports.isNaN=c,exports.isNil=t,exports.isNonEmptyArray=C,exports.isNonEmptyString=d,exports.isNull=u,exports.isNumber=p,exports.isNumberObject=i,exports.isObject=a,exports.isObjectOrArray=b,exports.isPlainObject=n,exports.isSet=A,exports.isString=s,exports.isStringObject=S,exports.isSymbol=f,exports.isUndefined=m,exports.resolveErrorMessageAssertions=M,exports.slugify=w,exports.toCamelCase=E,exports.toDotCase=P,exports.toKebabCase=I,exports.toLowerCase=L,exports.toPascalCase=B,exports.toPascalCaseSpace=F,exports.toSnakeCase=R;
@@ -0,0 +1 @@
1
+ import{isInteger as r}from"./chunk-WVSPXFTY.js";import{safeStableStringify as e}from"./chunk-PET42Z7W.js";import{getPreciseType as t,isNull as o}from"./chunk-CMW2TBOQ.js";var n=class extends Promise{_value;_error;_finish=[];constructor(r){let e,t;super((r,o)=>{e=r,t=o}),r(r=>{this._value=r,e(r),this._finish.forEach(e=>e(r,void 0))},r=>{this._error=r,t(r),this._finish.forEach(e=>e(void 0,r))}),Object.setPrototypeOf(this,new.target.prototype)}then(r,e){return super.then(r,e)}catch(r){return super.catch(r)}finish(r){return void 0!==this._value||void 0!==this._error?r(this._value,this._error):this._finish.push(r),this}},i=class extends Error{constructor(r="The operation was aborted",e="AbortError"){super(r),this.name=e}},s=(n=1e3,s)=>{if(!r(n)||n<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${t(n)}\`, with value: \`${e(n)}\`.`);if(o(s)||s&&!(s instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((r,e)=>{const t=setTimeout(()=>{o(),r()},n),o=()=>{clearTimeout(t),s&&s.removeEventListener("abort",a)},a=()=>{o(),e(new i("Function `delay` from `@rzl-zone/utils-js` was aborted.","AbortError"))};s&&(s.aborted?a():s.addEventListener("abort",a,{once:!0}))})};export{n as CustomPromise,s as delay};
@@ -1 +1 @@
1
- import{isNonEmptyString as s}from"./chunk-EW3I4O7X.js";var a=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),t=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),r=r=>{if(!s(r))return;let p=r.split("/").pop();if(""===p)return"";if(p){for(const s of t){const a=`.${s}`;if(p.toLowerCase().endsWith(a))return p.slice(0,-a.length)}for(;;){const s=p.lastIndexOf(".");if(-1===s)break;const t=p.slice(s+1).toLowerCase();if(!a.has(t))break;p=p.slice(0,s)}return p}};export{r as extractFileName};
1
+ import{isNonEmptyString as s}from"./chunk-CMW2TBOQ.js";var a=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),t=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),r=r=>{if(!s(r))return;let p=r.split("/").pop();if(""===p)return"";if(p){for(const s of t){const a=`.${s}`;if(p.toLowerCase().endsWith(a))return p.slice(0,-a.length)}for(;;){const s=p.lastIndexOf(".");if(-1===s)break;const t=p.slice(s+1).toLowerCase();if(!a.has(t))break;p=p.slice(0,s)}return p}};export{r as extractFileName};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-DVMHRLKP.cjs"),r=require("./chunk-T7PU2V7X.cjs"),t=require("./chunk-PZQ6I4JJ.cjs"),s=class extends Error{constructor(e="The operation was aborted",r="AbortError"){super(e),this.name=r}};exports.CustomPromise=class extends Promise{_value;_error;_finish=[];constructor(e){let r,t;super((e,s)=>{r=e,t=s}),e(e=>{this._value=e,r(e),this._finish.forEach(r=>r(e,void 0))},e=>{this._error=e,t(e),this._finish.forEach(r=>r(void 0,e))}),Object.setPrototypeOf(this,new.target.prototype)}then(e,r){return super.then(e,r)}catch(e){return super.catch(e)}finish(e){return void 0!==this._value||void 0!==this._error?e(this._value,this._error):this._finish.push(e),this}},exports.delay=(i=1e3,o)=>{if(!e.isInteger(i)||i<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${t.getPreciseType(i)}\`, with value: \`${r.safeStableStringify(i)}\`.`);if(t.isNull(o)||o&&!(o instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((e,r)=>{const t=setTimeout(()=>{n(),e()},i),n=()=>{clearTimeout(t),o&&o.removeEventListener("abort",a)},a=()=>{n(),r(new s("Function `delay` from `@rzl-zone/utils-js` was aborted.","AbortError"))};o&&(o.aborted?a():o.addEventListener("abort",a,{once:!0}))})};
@@ -0,0 +1 @@
1
+ import{isURL as r}from"./chunk-ONZFBJVW.js";import{normalizeString as e}from"./chunk-IZPBKKPO.js";import{toStringArrayUnRecursive as t}from"./chunk-OI5XKNZO.js";import{isEmptyValue as n}from"./chunk-GQR4R5WY.js";import{isInteger as o}from"./chunk-WVSPXFTY.js";import{normalizePathname as a}from"./chunk-GGEADHZO.js";import{isEmptyString as i}from"./chunk-W2WNBUDE.js";import{assertIsArray as s}from"./chunk-CKTLUNWX.js";import{safeStableStringify as u}from"./chunk-PET42Z7W.js";import{isString as m,getPreciseType as c,isUndefined as p,isNonEmptyString as f,isFunction as l,isNumber as h,isError as y,isArray as b,isNil as d,isNull as w,isPlainObject as v,isBoolean as g,isNonEmptyArray as $}from"./chunk-CMW2TBOQ.js";var T=(o,a,b)=>{if(m(o)){if(i(o))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");o=e(o)}else if(!r(o))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${c(o)}\`, with current value: \`${u(o)}\`.`);if(!p(b)&&(s(b,{message:({currentType:r,validType:e})=>`Third parameter (\`removeParams\`) must be of type \`${e} of strings\`, but received: \`${r}\`.`}),!b.every(r=>f(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!p(a)&&!l(a[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(a)}\`, with value: \`${u(a)}\`.`);const r=new URL(o);if(!p(a)){const e=Object.fromEntries(a);if(!n(e)){const n=new URLSearchParams(r.search);for(const[r,t]of Object.entries(e)){if(!f(t)&&!h(t,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${c(a)}\`, with value: \`${u(a)}\`.`);n.set(r,String(t))}b?.length&&t(b).map(r=>{n.delete(r)}),r.search=n.toString()}}return b?.forEach(e=>r.searchParams.delete(e)),r}catch(r){if(y(r))throw r;throw new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}},E=r=>{if(!f(r))return null;let e;try{e=decodeURIComponent(r)}catch{return null}const t=e.match(/https?:\/\/.*?(?=https?:\/\/|\s|$)/g);if(!t)return null;const n=t.map(r=>r.replace(/[.,;:!?)]*$/,"")).filter(r=>{try{const e=new URL(r);return"http:"===e.protocol||"https:"===e.protocol}catch{return!1}});return n.length?n:null},P=(r,e="/")=>{if(!f(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${c(e)}\`, with value: \`${u(e)}\`.`);if(b(r)){if(!r.every(r=>m(r)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${c(r)}\`, with value: \`${u(r)}\`.`);for(const e of r){const r=a(e);if("/"!==r)return r}return a(e)}if(m(r)){const t=a(r);return"/"!==t?t:a(e)}if(!d(r))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${c(r)}\`.`);return a(e)},j=(r,e=null,t={})=>{const n=[];m(r)||b(r)||n.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${c(r)}\`.`),m(e)||b(e)||w(e)||n.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${c(e)}\`.`),v(t)||n.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${c(t)}\`.`);const{levels:i=1,removeDuplicates:s=!0}=t;if((!o(i)||o(i)&&i<0)&&n.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${c(i)}\`, with value: \`${u(i)}\`.`),g(s)||n.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${c(s)}\`.`),$(n))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:\n- ${n.join("\n- ")}`);function p(r){return`/${a(r).split("/").filter(Boolean).slice(0,i).join("/")}`}function l(r){if(e){if(r=a(r),b(e)){for(const t of e)if(r.startsWith(a(t)))return p(r)}else if(f(e)&&r.startsWith(a(e)))return p(r);return null}return p(r)}if(b(r)){const e=r.map(l).filter(r=>!w(r)),t=s?[...new Set(e)]:e;return 1===t.length?t[0]:t}return l(r)};export{T as constructURL,E as extractURLs,P as getFirstPrefixPathname,j as getPrefixPathname};
@@ -1 +1 @@
1
- import{isString as r,resolveErrorMessageAssertions as e}from"./chunk-EW3I4O7X.js";var o=(o,t={})=>{if(r(o))return;const i=e({value:o,options:t,requiredValidType:"string"});throw new TypeError(i)};export{o as assertIsString};
1
+ import{isString as r,resolveErrorMessageAssertions as e}from"./chunk-CMW2TBOQ.js";var o=(o,t={})=>{if(r(o))return;const i=e({value:o,options:t,requiredValidType:"string"});throw new TypeError(i)};export{o as assertIsString};
@@ -1 +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};
1
+ import{isServer as e}from"./chunk-L5RDAVVH.js";import{assertIsString as t}from"./chunk-SBKGWRS5.js";import{isPlainObject as o,hasOwnProp as s,isNonEmptyString as r,isNumber as i}from"./chunk-CMW2TBOQ.js";var n=(o="on_processing")=>{if(e())return;t(o,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:s}=document;s&&!s.classList.contains(o)&&s.classList.add(o)},m=(o="on_processing")=>{if(e())return;t(o,{message:({validType:e,currentType:t})=>`First parameter \`className\` must be of type \`${e}\`, but received: \`${t}\`.`});const{documentElement:s}=document;s&&s.classList.contains(o)&&s.classList.remove(o)},c=()=>{if(e())return;const t=document.activeElement;t instanceof HTMLElement&&t.blur()},a=t=>{if(e())return;o(t)||(t={});const n=s(t,"behavior")&&r(t.behavior)&&["auto","instant","smooth"].includes(t.behavior)?t.behavior:"smooth";let m=s(t,"timeout")&&i(t.timeout)&&t.timeout>=1?t.timeout:1;m=m>2147483647?2147483647:m,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:n}),m)};export{n as disableUserInteraction,m as enableUserInteraction,c as removeElementFocus,a as scrollToTop};
@@ -0,0 +1 @@
1
+ import{isNonEmptyString as r,isPlainObject as t}from"./chunk-CMW2TBOQ.js";var i=(i,m={withTrim:!0,trimOnly:!1})=>{if(!r(i))return"";t(m)||(m={});const{trimOnly:n=!1,withTrim:e=!0}=m;return n?i.trim():(e&&(i=i.trim()),i.replace(/\s+/g," "))};export{i as normalizeSpaces};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-UDA26MCU.cjs"),r=require("./chunk-PZQ6I4JJ.cjs");function t(e){return"[object Map]"===Object.prototype.toString.call(e)||e instanceof Map}var n=(e,t={})=>{r.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!(!r.isPlainObject(t)||!r.isBoolean(t.skipInvalidDate))&&t.skipInvalidDate,i=e instanceof Date;return n?i:i&&!r.isNaN(e.getTime())};exports.isDate=n,exports.isMap=t,exports.safeStableStringify=(i,s={})=>{r.assertIsPlainObject(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!!r.hasOwnProp(s,"pretty")&&s.pretty,a=!r.hasOwnProp(s,"sortKeys")||s.sortKeys,u=!!r.hasOwnProp(s,"sortArray")&&s.sortArray,c=!!r.hasOwnProp(s,"keepUndefined")&&s.keepUndefined;if(!(r.isBoolean(a)&&r.isBoolean(u)&&r.isBoolean(o)&&r.isBoolean(c)))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\`, \`keepUndefined\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${r.getPreciseType(a)}\`, 'sortArray': \`${r.getPreciseType(u)}\`, 'keepUndefined': \`${r.getPreciseType(c)}\`, 'pretty': \`${r.getPreciseType(o)}\`]".`);if(r.isUndefined(i))return c?"undefined":"null";const p=new WeakSet,f=e=>r.isNull(e)||!r.isObjectOrArray(e)&&!r.isFunction(e),l=i=>{if(r.isNumberObject(i)){const e=i.valueOf();return r.isNaN(e)||r.isInfinityNumber(e)?null:e}if(r.isStringObject(i))return i.valueOf();if(r.isBooleanObject(i))return i.valueOf();if(!r.isFunction(i)&&!r.isSymbol(i)){if(e.isBigInt(i))return i.toString();if(r.isNaN(i)||r.isInfinityNumber(i))return null;if(r.isUndefined(i))return c?void 0:null;if(r.isObjectOrArray(i)){if(p.has(i))return"[Circular]";if(p.add(i),n(i))return i.toISOString();if(t(i))return{map:Array.from(i.entries()).map(([e,r])=>[e,l(r)])};if(r.isSet(i))return{set:Array.from(i.values()).map(l)};if(r.isArray(i)){const e=i.map(l);if(u){const t=[],n=[];for(const r of e)f(r)?t.push(r):n.push(r);return t.sort((e,t)=>r.isNumber(e)&&r.isNumber(t)?e-t:String(e).localeCompare(String(t))),[...t,...n]}return e}const e=Object.keys(i);a&&e.sort((e,t)=>{const n=Number(e),i=Number(t);return r.isNaN(n)||r.isNaN(i)?e.localeCompare(t):n-i});const s={};if(r.isObject(i))for(const t of e){const e=l(i[t]);r.isUndefined(e)||(s[t]=e)}return s}return i}};try{return JSON.stringify(l(i),null,o?2:0)}catch(e){return console.warn("Error in safeStableStringify:",e),"{}"}};
@@ -0,0 +1 @@
1
+ "use strict";var i=require("./chunk-PZQ6I4JJ.cjs");exports.isFinite=function(e){return i.isNumber(e)&&Number.isFinite(e)};