@rzl-zone/utils-js 2.0.1 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +26 -0
  2. package/dist/any-BmdI8UbK.d.ts +67 -0
  3. package/dist/array-CIZRbqTF.d.ts +223 -0
  4. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +72 -0
  5. package/dist/assertions/index.cjs +1 -0
  6. package/dist/assertions/index.d.ts +428 -0
  7. package/dist/assertions/index.js +1 -0
  8. package/dist/chunk-2TRAPBZ7.cjs +1 -0
  9. package/dist/chunk-3D74QO5D.cjs +1 -0
  10. package/dist/chunk-4DK3RCC4.js +2 -0
  11. package/dist/chunk-4JOQ45HL.js +1 -0
  12. package/dist/chunk-55CZALRS.js +1 -0
  13. package/dist/chunk-56QBKKRE.js +1 -0
  14. package/dist/chunk-5JFV3GDE.cjs +4 -0
  15. package/dist/chunk-5SZUSNGZ.js +1 -0
  16. package/dist/chunk-62HX5Z45.cjs +1 -0
  17. package/dist/chunk-7NA6DUHR.cjs +2 -0
  18. package/dist/chunk-7YWAQOA4.cjs +1 -0
  19. package/dist/chunk-BVPMMWDL.cjs +1 -0
  20. package/dist/chunk-BYZAD3XN.cjs +1 -0
  21. package/dist/chunk-CEFYHEM4.cjs +1 -0
  22. package/dist/chunk-CN53M4QZ.cjs +1 -0
  23. package/dist/chunk-D47MHBSD.cjs +1 -0
  24. package/dist/chunk-DGH75GJD.js +1 -0
  25. package/dist/chunk-E5NUI7PN.js +1 -0
  26. package/dist/chunk-ELDDNERR.js +1 -0
  27. package/dist/chunk-EXZ47NOW.js +1 -0
  28. package/dist/chunk-FDITZ5C6.cjs +1 -0
  29. package/dist/chunk-FF76ISQ2.js +1 -0
  30. package/dist/chunk-FIEZKTAZ.cjs +1 -0
  31. package/dist/chunk-FSSV24W7.cjs +1 -0
  32. package/dist/chunk-G5LXIEFO.js +0 -0
  33. package/dist/chunk-GCGU2WB7.js +1 -0
  34. package/dist/chunk-GECI2YBP.js +1 -0
  35. package/dist/chunk-GQE4OVHC.cjs +1 -0
  36. package/dist/chunk-GRVZXQXL.cjs +1 -0
  37. package/dist/chunk-I4AVNHPA.cjs +1 -0
  38. package/dist/chunk-JFRL7NKU.js +4 -0
  39. package/dist/chunk-JWHM3WZQ.cjs +1 -0
  40. package/dist/chunk-KCQDDZJE.cjs +1 -0
  41. package/dist/chunk-L54ZPSYJ.js +1 -0
  42. package/dist/chunk-LVKAYEZ4.js +1 -0
  43. package/dist/chunk-MBDWTK54.cjs +1 -0
  44. package/dist/chunk-MMSYCIJ2.cjs +1 -0
  45. package/dist/chunk-MNGGDB2G.js +1 -0
  46. package/dist/chunk-MY7BA4GI.cjs +1 -0
  47. package/dist/chunk-N2IJPIND.cjs +1 -0
  48. package/dist/chunk-NIMNTEGV.js +1 -0
  49. package/dist/chunk-NNM7QCNB.js +1 -0
  50. package/dist/chunk-PUQXRLZH.cjs +1 -0
  51. package/dist/chunk-PVJF2JHM.js +1 -0
  52. package/dist/chunk-QCFXEUKL.js +1 -0
  53. package/dist/chunk-QFCGBBSY.js +1 -0
  54. package/dist/chunk-QQYAUPSK.cjs +1 -0
  55. package/dist/chunk-RN3TP3S3.js +1 -0
  56. package/dist/chunk-RV2VULM7.cjs +1 -0
  57. package/dist/chunk-SW6HYEW7.cjs +1 -0
  58. package/dist/chunk-SYJC7UAW.js +1 -0
  59. package/dist/chunk-TC4VBE4Y.cjs +1 -0
  60. package/dist/chunk-TUXDINHF.cjs +1 -0
  61. package/dist/chunk-U5Y2FXMN.cjs +1 -0
  62. package/dist/chunk-UUPQI6ND.cjs +1 -0
  63. package/dist/chunk-VYCGZ2S6.js +1 -0
  64. package/dist/chunk-W5EDKJK3.js +1 -0
  65. package/dist/chunk-WHAVUFEU.js +1 -0
  66. package/dist/chunk-XCFIOTCV.js +1 -0
  67. package/dist/chunk-XE27XPJR.js +1 -0
  68. package/dist/chunk-XH6MCRLP.js +1 -0
  69. package/dist/chunk-XVB3ZZEB.js +1 -0
  70. package/dist/chunk-ZBSIGJFO.cjs +1 -0
  71. package/dist/chunk-ZYAML74V.js +1 -0
  72. package/dist/conversions/index.cjs +1 -0
  73. package/dist/conversions/index.d.ts +1633 -0
  74. package/dist/conversions/index.js +1 -0
  75. package/dist/env/index.cjs +1 -0
  76. package/dist/env/index.d.ts +19 -0
  77. package/dist/env/index.js +1 -0
  78. package/dist/events/index.cjs +1 -0
  79. package/dist/events/index.d.ts +119 -0
  80. package/dist/events/index.js +1 -0
  81. package/dist/extends-Mp81Hq9-.d.ts +145 -0
  82. package/dist/formatting/index.cjs +1 -0
  83. package/dist/formatting/index.d.ts +912 -0
  84. package/dist/formatting/index.js +1 -0
  85. package/dist/generator/index.cjs +1 -0
  86. package/dist/generator/index.d.ts +163 -0
  87. package/dist/generator/index.js +1 -0
  88. package/dist/if-CvT4R7Kh.d.ts +18 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.d.ts +1 -4313
  91. package/dist/index.js +1 -1
  92. package/dist/is-array-Ckm_47hw.d.ts +1557 -0
  93. package/dist/isPlainObject-BKYaI6a8.d.ts +182 -0
  94. package/dist/never-BfayMBF9.d.ts +75 -0
  95. package/dist/next/index.cjs +8 -1
  96. package/dist/next/index.d.ts +169 -169
  97. package/dist/next/index.js +8 -1
  98. package/dist/next/server/index.cjs +2 -1
  99. package/dist/next/server/index.d.ts +37 -37
  100. package/dist/next/server/index.js +2 -1
  101. package/dist/nils-DMz3kU7M.d.ts +177 -0
  102. package/dist/omit-VvmIsZmX.d.ts +28 -0
  103. package/dist/operations/index.cjs +1 -0
  104. package/dist/operations/index.d.ts +182 -0
  105. package/dist/operations/index.js +1 -0
  106. package/dist/parsers/index.cjs +1 -0
  107. package/dist/parsers/index.d.ts +37 -0
  108. package/dist/parsers/index.js +1 -0
  109. package/dist/predicates/index.cjs +1 -0
  110. package/dist/predicates/index.d.ts +1839 -0
  111. package/dist/predicates/index.js +1 -0
  112. package/dist/prettify-C4xLcYOP.d.ts +353 -0
  113. package/dist/promise/index.cjs +1 -0
  114. package/dist/promise/index.d.ts +40 -0
  115. package/dist/promise/index.js +1 -0
  116. package/dist/rzl-utils.global.js +4 -1
  117. package/dist/strings/index.cjs +1 -0
  118. package/dist/strings/index.d.ts +816 -0
  119. package/dist/strings/index.js +1 -0
  120. package/dist/stylings/index.cjs +1 -0
  121. package/dist/stylings/index.d.ts +49 -0
  122. package/dist/stylings/index.js +1 -0
  123. package/dist/type-data-DDs-u2kq.d.ts +261 -0
  124. package/dist/types/index.d.ts +3589 -2090
  125. package/dist/urls/index.cjs +1 -0
  126. package/dist/urls/index.d.ts +418 -0
  127. package/dist/urls/index.js +1 -0
  128. package/package.json +147 -21
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-NIMNTEGV.js';import {p as p$1,f,h}from'./chunk-XCFIOTCV.js';var a=(r,n={withTrim:true,trimOnly:false})=>{if(!p$1(r))return "";f(n)||(n={});let{trimOnly:t=false,withTrim:l=true}=n;return t?r.trim():(l&&(r=r.trim()),r.replace(/\s+/g," "))},c=r=>p$1(r)?r.trim():"",p=(r,n={trimOnly:false})=>{if(!p$1(r))return "";f(n)||(n={});let{trimOnly:t=false}=n;return t?r.trim():r.replace(/\s+/g,"")},u=r=>h(r)?a$1(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;export{a,c as b,p as c,u as d};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var b=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkBVPMMWDL_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&!t.classList.contains(e)&&t.classList.add(e);},h=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkBVPMMWDL_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&t.classList.contains(e)&&t.classList.remove(e);},T=()=>{if(chunkSW6HYEW7_cjs.a())return;let e=document.activeElement;e instanceof HTMLElement&&e.blur();},g=e=>{if(chunkSW6HYEW7_cjs.a())return;chunkCN53M4QZ_cjs.f(e)||(e={});let t=chunkCN53M4QZ_cjs.o(e,"behavior")&&chunkCN53M4QZ_cjs.p(e.behavior)&&["auto","instant","smooth"].includes(e.behavior.trim())?e.behavior:"smooth",r=chunkCN53M4QZ_cjs.o(e,"timeout")&&chunkCN53M4QZ_cjs.i(e.timeout)&&e.timeout>=1?e.timeout:1;setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:t});},r);};exports.a=b;exports.b=h;exports.c=T;exports.d=g;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var M=e=>{if(!chunkCN53M4QZ_cjs.h(e)&&!chunkCN53M4QZ_cjs.i(e))return 0;let a=String(e).trim().replace(/[^0-9]/g,"");return Number(a)||0};var j=(e={})=>{chunkCN53M4QZ_cjs.m(e,{message:({currentType:A,validType:U})=>`Second parameter (\`options\`) must be of type \`${U}\`, but received: \`${A}\`.`});let a=chunkCN53M4QZ_cjs.o(e,"convertBooleans")?e.convertBooleans:false,r=chunkCN53M4QZ_cjs.o(e,"convertDates")?e.convertDates:false,n=chunkCN53M4QZ_cjs.o(e,"convertNumbers")?e.convertNumbers:false,t=chunkCN53M4QZ_cjs.o(e,"loggingOnFail")?e.loggingOnFail:false,s=chunkCN53M4QZ_cjs.o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m=chunkCN53M4QZ_cjs.o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o=chunkCN53M4QZ_cjs.o(e,"removeNulls")?e.removeNulls:false,g=chunkCN53M4QZ_cjs.o(e,"removeUndefined")?e.removeUndefined:false,N=chunkCN53M4QZ_cjs.o(e,"strictMode")?e.strictMode:false,E=chunkCN53M4QZ_cjs.o(e,"checkSymbols")?e.checkSymbols:false,P=chunkCN53M4QZ_cjs.o(e,"convertNaN")?e.convertNaN:false,v=chunkCN53M4QZ_cjs.o(e,"customDateFormats")?e.customDateFormats:[],b=chunkCN53M4QZ_cjs.o(e,"onError")?e.onError:chunkRV2VULM7_cjs.a;if(!(chunkCN53M4QZ_cjs.a(a)&&chunkCN53M4QZ_cjs.a(r)&&chunkCN53M4QZ_cjs.a(n)&&chunkCN53M4QZ_cjs.a(P)&&chunkCN53M4QZ_cjs.a(E)&&chunkCN53M4QZ_cjs.a(t)&&chunkCN53M4QZ_cjs.a(s)&&chunkCN53M4QZ_cjs.a(m)&&chunkCN53M4QZ_cjs.a(o)&&chunkCN53M4QZ_cjs.a(g)&&chunkCN53M4QZ_cjs.a(N)&&chunkCN53M4QZ_cjs.d(v)&&chunkCN53M4QZ_cjs.b(b)))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': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'convertDates': \`${chunkCN53M4QZ_cjs.E(r)}\`, 'convertNumbers': \`${chunkCN53M4QZ_cjs.E(n)}\`, 'loggingOnFail': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`, 'removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(m)}\`, 'removeNulls': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'removeUndefined': \`${chunkCN53M4QZ_cjs.E(g)}\`, 'strictMode': \`${chunkCN53M4QZ_cjs.E(N)}\`, 'customDateFormats': \`${chunkCN53M4QZ_cjs.E(v)}\`, 'onError': \`${chunkCN53M4QZ_cjs.E(b)}\`].`);return {convertBooleans:a,convertDates:r,convertNumbers:n,convertNaN:P,loggingOnFail:t,removeEmptyArrays:s,removeEmptyObjects:m,removeNulls:o,removeUndefined:g,strictMode:N,customDateFormats:v,onError:b,checkSymbols:E}},O=(e,a={})=>{let r=j(a);if(chunkCN53M4QZ_cjs.g(e))return r.removeNulls?void 0:null;if(chunkCN53M4QZ_cjs.k(e))return r.removeUndefined,void 0;if(chunkCN53M4QZ_cjs.h(e)){let n=e.trim();if(r.convertNaN&&n==="NaN")return NaN;if(r.convertNumbers&&!chunkCN53M4QZ_cjs.n(Number(n)))return Number(n);if(r.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n))return new Date(n);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let s=B(n,t);if(s)return s}}return r.strictMode?void 0:n}if(chunkCN53M4QZ_cjs.d(e)){let n=e.map(t=>O(t,r)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return r.removeEmptyArrays&&chunkKCQDDZJE_cjs.e(n)?void 0:n}if(chunkCN53M4QZ_cjs.e(e)){let n={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let s=O(e[t],r);chunkCN53M4QZ_cjs.k(s)||(n[t]=s);}return r.removeEmptyObjects&&chunkKCQDDZJE_cjs.f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e},B=(e,a)=>{if(!chunkCN53M4QZ_cjs.h(e)||!chunkCN53M4QZ_cjs.h(a))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${chunkCN53M4QZ_cjs.E(e)}\`, 'format': \`${chunkCN53M4QZ_cjs.E(a)}\`]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(chunkCN53M4QZ_cjs.n))return null;let n,t,s;if(a==="DD/MM/YYYY")[n,t,s]=r;else if(a==="MM/DD/YYYY")[t,n,s]=r;else return null;t-=1;let m=new Date(s,t,n);return m.getFullYear()!==s||m.getMonth()!==t||m.getDate()!==n?null:m};function se(e,a={}){if(chunkCN53M4QZ_cjs.g(e))return null;let r=j(a);if(r.convertNaN&&(chunkCN53M4QZ_cjs.n(e)||chunkCN53M4QZ_cjs.p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!chunkCN53M4QZ_cjs.n(Number(e))&&chunkCN53M4QZ_cjs.i(M(e)))return Number(e);if(chunkCN53M4QZ_cjs.h(e))try{let n=I(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return O(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(chunkCN53M4QZ_cjs.D(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function I(e){let a=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,s=false;for(let m=0;m<e.length;m++){let o=e[m];if(s){n?o==="'"?r+="'":a.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':a.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,s=false;continue}if(o==="\\"){s=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}exports.a=M;exports.b=O;exports.c=B;exports.d=se;
@@ -0,0 +1 @@
1
+ 'use strict';var chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var I=(r,s={})=>{if(chunk7YWAQOA4_cjs.a(r))return;let o=chunkCN53M4QZ_cjs.F({value:r,options:s,requiredValidType:"big int"});throw new TypeError(o)};var O=(r,s={})=>{let o=chunkCN53M4QZ_cjs.o(s,"includeNaN")?s.includeNaN:void 0;if(chunkCN53M4QZ_cjs.i(r,{includeNaN:o}))return;let p=chunkCN53M4QZ_cjs.F({value:r,options:s,requiredValidType:"number"});throw new TypeError(p)};exports.a=I;exports.b=O;
@@ -0,0 +1,4 @@
1
+ import {c as c$1}from'./chunk-GECI2YBP.js';import {a as a$2}from'./chunk-NIMNTEGV.js';import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {h as h$1,d,E,g,f,a as a$1,r,p,D,m,o}from'./chunk-XCFIOTCV.js';var h=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var G=(r$1,e=null,t={})=>{let o=[];!h$1(r$1)&&!d(r$1)&&o.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${E(r$1)}\`.`),!h$1(e)&&!d(e)&&!g(e)&&o.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${E(e)}\`.`),f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${E(t)}\`.`);let{levels:m=1,removeDuplicates:c$1=true}=t;if((!a(m)||a(m)&&m<0)&&o.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${E(m)}\`, with value: \`${c(m)}\`.`),a$1(c$1)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${E(c$1)}\`.`),r(o))throw new TypeError(`Invalid parameter(s) in getPrefixPathname:
2
+ - ${o.join(`
3
+ - `)}`);function b(i){return `/${s(i).split("/").filter(Boolean).slice(0,m).join("/")}`}function w(i){if(e){if(i=s(i),d(e)){for(let a of e)if(i.startsWith(s(a)))return b(i)}else if(p(e)&&i.startsWith(s(e)))return b(i);return null}return b(i)}if(d(r$1)){let i=r$1.map(w).filter(z=>!g(z)),a=c$1?[...new Set(i)]:i;return a.length===1?a[0]:a}return w(r$1)},H=(r,e="/")=>{if(!p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);if(d(r)){if(!r.every(t=>h$1(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(h$1(r)){let t=s(r);return t!=="/"?t:s(e)}if(!g(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);if(!p(r))return e;try{if(r=c$1(r,{trimOnly:!0}),r=r.replace(/\s+/g,""),r.startsWith("http://")||r.startsWith("https://")){let t=new URL(r);return `${t.pathname}${t.search}${t.hash}`.replace(/^\/+/,"/")}return "/"+r.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(t){let o=D(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new h(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var _=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=o(e,"prefixColon")?e.prefixColon:false;if(!a$1(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${E(t)}\`.`);let o$1=r.replace(/\D+/g,"");return a$2(o$1)?"":t?`:${o$1}`:o$1};
4
+ export{G as a,H as b,s as c,_ as d};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var h=i=>{if(!chunkCN53M4QZ_cjs.p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let r=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),n=e.slice(t+1);e=r+"."+n;}else if(c>t){let r=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),n=e.slice(c+1);e=r+"."+n;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};exports.a=h;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var b=r=>r instanceof RegExp;function g(r){return r instanceof ArrayBuffer}function c(r,n,s,i=new WeakMap){if(r===n||r!==r&&n!==n)return true;if(!chunkCN53M4QZ_cjs.l(r)||!chunkCN53M4QZ_cjs.l(n))return false;if(i.get(r)===n)return true;i.set(r,n);let w=(t,f,e,B,K)=>{if(s){let l=s(t,f,e,B,K,i);if(!chunkCN53M4QZ_cjs.k(l))return l}return c(t,f,s,i)};if(chunkU5Y2FXMN_cjs.b(r)&&chunkU5Y2FXMN_cjs.b(n))return r.getTime()===n.getTime();if(b(r)&&b(n))return r.source===n.source&&r.flags===n.flags;if(chunkCN53M4QZ_cjs.D(r)&&chunkCN53M4QZ_cjs.D(n))return r.name===n.name&&r.message===n.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(n)){let t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),f=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(t.length!==f.length)return false;for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(g(r)&&g(n)){if(r.byteLength!==n.byteLength)return false;let t=new Uint8Array(r),f=new Uint8Array(n);for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(chunkU5Y2FXMN_cjs.a(r)&&chunkU5Y2FXMN_cjs.a(n)){if(r.size!==n.size)return false;for(let[t,f]of r)if(!n.has(t)||!c(f,n.get(t),s,i))return false;return true}if(chunkCN53M4QZ_cjs.q(r)&&chunkCN53M4QZ_cjs.q(n)){if(r.size!==n.size)return false;for(let t of r){let f=false;for(let e of n)if(c(t,e,s,i)){f=true;break}if(!f)return false}return true}if(chunkCN53M4QZ_cjs.d(r)&&chunkCN53M4QZ_cjs.d(n)){if(r.length!==n.length)return false;for(let t=0;t<r.length;t++)if(!w(r[t],n[t],t,r,n))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(n))return false;let k=Reflect.ownKeys(r),x=Reflect.ownKeys(n);if(k.length!==x.length)return false;for(let t of k){let f=r[t],e=n[t];if(!w(f,e,t,r,n))return false}return true}function W(r,n){return c(r,n,void 0,new WeakMap)}var F=r=>chunkCN53M4QZ_cjs.d(r)?r.length===0:true;function X(r,n={}){if(!chunkCN53M4QZ_cjs.e(r))return true;chunkCN53M4QZ_cjs.f(n)||(n={});let s=chunkCN53M4QZ_cjs.o(n,"checkSymbols")?n.checkSymbols:false,i=Object.keys(r).length===0;return s?i&&Object.getOwnPropertySymbols(r).length===0:i}exports.a=b;exports.b=g;exports.c=c;exports.d=W;exports.e=F;exports.f=X;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-NNM7QCNB.js';import {e}from'./chunk-WHAVUFEU.js';import {a as a$3}from'./chunk-ZYAML74V.js';import {a as a$2}from'./chunk-QFCGBBSY.js';import {b}from'./chunk-GECI2YBP.js';import {a}from'./chunk-NIMNTEGV.js';import {c}from'./chunk-MNGGDB2G.js';import {h,E,k,p,b as b$1,i,D}from'./chunk-XCFIOTCV.js';var A=(t,e$1,o)=>{if(h(t)){if(a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty string.");t=b(t);}else if(!a$1(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${E(t)}\`, with current value: \`${c(t)}\`.`);if(!k(o)&&(a$2(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!k(e$1)&&!b$1(e$1[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e$1)}\`, with value: \`${c(e$1)}\`.`);let r=new URL(t);if(!k(e$1)){let n=Object.fromEntries(e$1);if(!a$3(n)){let i$1=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!p(f)&&!i(f,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e$1)}\`, with value: \`${c(e$1)}\`.`);i$1.set(s,String(f));}o?.length&&e(o).map(s=>{i$1.delete(s);}),r.search=i$1.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw D(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!p(t))return null;let e;try{e=decodeURIComponent(t);}catch{return null}let o=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,r=e.match(o);if(!r)return null;let n=r.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let s=new URL(i);return s.protocol==="http:"||s.protocol==="https:"}catch{return false}});return n.length?n:null};export{A as a,C as b};
@@ -0,0 +1 @@
1
+ import {i,h,E,p}from'./chunk-XCFIOTCV.js';var g=(r,t,o)=>{if(!i(r)||!h(o)||!h(t))throw new TypeError(`First parameter \`index\` must be of type \`number\`, second parameter \`originalString\` and third parameter \`replaceTo\` must be of type \`string\`, but received: "['index': \`${E(r)}\`, 'originalString': \`${E(t)}\`, 'replaceTo': \`${E(o)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return t.slice(0,r)+o+t.slice(r+1)},u=r=>{if(!p(r))return "";r=r.replace(/\s+/g," ").trim();let t=r.split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};export{g as a,u as b};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function ne(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:i,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${i}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeInvalidValueNumber")?n.removeInvalidValueNumber:true;if(chunkCN53M4QZ_cjs.G(p,{message:({currentType:i,validType:m})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${i}\`.`}),chunkCN53M4QZ_cjs.d(e)){let i=Array.from(e,m=>{if(chunk7YWAQOA4_cjs.a(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):chunkCN53M4QZ_cjs.g(m)?null:void 0});return p?chunkTC4VBE4Y_cjs.b(i):i}}var Oe=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?chunkCN53M4QZ_cjs.p(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)||chunkCN53M4QZ_cjs.e(e)?chunkD47MHBSD_cjs.a(e):!!e;var Q=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?chunkCN53M4QZ_cjs.p(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)?e.some(Q):chunkCN53M4QZ_cjs.e(e)?Object.values(e).some(Q):false;var Ke=(e,n={})=>{if(chunkCN53M4QZ_cjs.c(e))return false;chunkCN53M4QZ_cjs.f(n)||(n={});let p=chunkCN53M4QZ_cjs.o(n,"caseInsensitive")?n.caseInsensitive:false,i=chunkCN53M4QZ_cjs.o(n,"trimString")?n.trimString:true,m=chunkCN53M4QZ_cjs.o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!chunkCN53M4QZ_cjs.a(p)||!chunkCN53M4QZ_cjs.a(i)||!chunkCN53M4QZ_cjs.a(m))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'trimString': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'includeIndeterminate': \`${chunkCN53M4QZ_cjs.E(m)}\`].`);if(chunkCN53M4QZ_cjs.h(e)){let r=e;i&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return chunkCN53M4QZ_cjs.i(e)?e===1:chunkCN53M4QZ_cjs.a(e)?e:false};var _e=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?!chunk2TRAPBZ7_cjs.a(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)?e.length>0:!!e;var mr=e=>{let n={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(chunkCN53M4QZ_cjs.h(e)){let p=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n,p))return n[p];let i=p.replace(/,/g,""),m=Number(i);return !chunkCN53M4QZ_cjs.n(m)&&chunkCN53M4QZ_cjs.p(i)?m:e.trim()}return e};var X=e=>{try{if(chunkCN53M4QZ_cjs.b(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))},$=(e,n)=>{if(!chunkCN53M4QZ_cjs.l(e))return e;let[p,...i]=n;if(chunkCN53M4QZ_cjs.d(e))for(let m of e)chunkCN53M4QZ_cjs.l(m)&&$(m,n);else chunkKCQDDZJE_cjs.e(i)?chunkCN53M4QZ_cjs.f(e)&&delete e[p]:chunkCN53M4QZ_cjs.f(e)&&chunkCN53M4QZ_cjs.l(e[p])&&$(e[p],i);return e},W=(e,n)=>{if(!chunkCN53M4QZ_cjs.f(e))return e;let[p,...i]=n;return i.length===0?chunkCN53M4QZ_cjs.f(e)&&delete e[p]:chunkCN53M4QZ_cjs.f(e[p])&&W(e[p],i),e};function Nr(e,n,p=true){if(chunkKCQDDZJE_cjs.f(e,{checkSymbols:true}))return {};if(chunk62HX5Z45_cjs.a(n,{message:({currentType:m,validType:r})=>`Second parameter (\`keysToDelete\`) must be of type \`${r}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${m}\`, with value: ${chunkU5Y2FXMN_cjs.c(n)}.`}),!n.every(m=>chunkCN53M4QZ_cjs.f(m)&&"key"in m))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: ${chunkU5Y2FXMN_cjs.c(n)}.`);let i=p?X(e):e;for(let{key:m,deep:r}of n){if(chunkBVPMMWDL_cjs.a(m,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!chunkCN53M4QZ_cjs.k(r)&&!chunkCN53M4QZ_cjs.a(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);let u=m.split(".");i=r?$(i,u):W(i,u);}return i}function Xr(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=chunkCN53M4QZ_cjs.o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m(r,u){if(chunkCN53M4QZ_cjs.c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k}=u;if(!chunkCN53M4QZ_cjs.a(a)||!chunkCN53M4QZ_cjs.a(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`].`);if(chunkCN53M4QZ_cjs.i(r)||chunkCN53M4QZ_cjs.p(r)&&!chunkCN53M4QZ_cjs.n(Number(r))){let o=Number(r);return chunkFDITZ5C6_cjs.a(o)?o:void 0}if(chunkCN53M4QZ_cjs.d(r)){let o=r.map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.q(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.a(r)){let o=Array.from(r.entries()).map(([t,A])=>{let T=m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),B=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});return !chunkCN53M4QZ_cjs.k(T)&&!chunkCN53M4QZ_cjs.k(B)?[T,B]:void 0}).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&(o=o.filter(t=>!(chunkCN53M4QZ_cjs.d(t)&&t.length===0))),s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.C(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkD47MHBSD_cjs.b(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}else {let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.b(r))return chunkCN53M4QZ_cjs.n(r.getTime())?0:r.getTime();if(chunkCN53M4QZ_cjs.e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});chunkCN53M4QZ_cjs.k(T)||(o[t]=T);}return a&&chunkKCQDDZJE_cjs.f(o)?k?{}:void 0:o}}return m(e,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}function vt(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=chunkCN53M4QZ_cjs.o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m(r,u){if(chunkCN53M4QZ_cjs.c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k}=u;if(!chunkCN53M4QZ_cjs.a(a)||!chunkCN53M4QZ_cjs.a(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`].`);if(chunkCN53M4QZ_cjs.i(r)||chunkCN53M4QZ_cjs.h(r))return String(r);if(chunkU5Y2FXMN_cjs.b(r))return r.toISOString();if(chunkKCQDDZJE_cjs.a(r))return r.toString();if(chunkCN53M4QZ_cjs.C(r))return Array.from(r).map(o=>String(o)).filter(o=>!chunkCN53M4QZ_cjs.k(o));if(chunkD47MHBSD_cjs.b(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}else {let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.q(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.a(r)){let o=Array.from(r.entries()).map(([t,A])=>[m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})]).filter(([t,A])=>!chunkCN53M4QZ_cjs.k(t)&&!chunkCN53M4QZ_cjs.k(A));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.d(r)){let o=r.map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&(o=o.filter(t=>!(chunkCN53M4QZ_cjs.d(t)&&t.length===0))),s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});chunkCN53M4QZ_cjs.k(T)?chunkCN53M4QZ_cjs.d(A)&&!s&&(o[t]=[]):o[t]=T;}return a&&Object.keys(o).length===0?k?{}:void 0:o}}return m(e,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}exports.a=ne;exports.b=Oe;exports.c=Q;exports.d=Ke;exports.e=_e;exports.f=mr;exports.g=Nr;exports.h=Xr;exports.i=vt;
@@ -0,0 +1 @@
1
+ 'use strict';
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-5SZUSNGZ.js';import {n,m,o,a,E,b,j,k,l,q,d,g,i,e}from'./chunk-XCFIOTCV.js';function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!n(o.getTime());var v=(o$1,i$1={})=>{m(i$1,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=o(i$1,"sortKeys")?i$1.sortKeys:true,b$1=o(i$1,"sortArray")?i$1.sortArray:false,S=o(i$1,"pretty")?i$1.pretty:false;if(!a(y)||!a(b$1)||!a(S))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${E(y)}\`, 'sortArray': \`${E(b$1)}\`, 'pretty': \`${E(S)}\`]".`);let N=new WeakSet,B=r=>g(r)||!l(r)&&!b(r),f=r=>{if(r instanceof Number)return Number(r);if(r instanceof String)return String(r);if(r instanceof Boolean)return !!r;if(!(b(r)||j(r))){if(a$1(r))return r.toString();if(k(r)||n(r)||r===1/0||r===-1/0)return null;if(l(r)){if(N.has(r))return "[Circular]";if(N.add(r),$(r))return r.toISOString();if(I(r))return {map:Array.from(r.entries()).map(([e,t])=>[e,f(t)])};if(q(r))return {set:Array.from(r.values()).map(f)};if(d(r)){let e=r.map(f);if(b$1){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>i(n)&&i(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m=Object.keys(r);y&&m.sort((e,t)=>{let u=Number(e),n$1=Number(t);return !n(u)&&!n(n$1)?u-n$1:e.localeCompare(t)});let O={};if(e(r))for(let e of m){let t=f(r[e]);k(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o$1),null,S?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};export{I as a,$ as b,v as c};
@@ -0,0 +1 @@
1
+ 'use strict';var chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs');var p=t=>(chunk62HX5Z45_cjs.a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));exports.a=p;
@@ -0,0 +1 @@
1
+ 'use strict';var chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var a=(r,n={withTrim:true,trimOnly:false})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.f(n)||(n={});let{trimOnly:t=false,withTrim:l=true}=n;return t?r.trim():(l&&(r=r.trim()),r.replace(/\s+/g," "))},c=r=>chunkCN53M4QZ_cjs.p(r)?r.trim():"",p=(r,n={trimOnly:false})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.f(n)||(n={});let{trimOnly:t=false}=n;return t?r.trim():r.replace(/\s+/g,"")},u=r=>chunkCN53M4QZ_cjs.h(r)?chunk2TRAPBZ7_cjs.a(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;exports.a=a;exports.b=c;exports.c=p;exports.d=u;
@@ -0,0 +1 @@
1
+ import {p}from'./chunk-XCFIOTCV.js';var r=(n,o={})=>!p(n,o);export{r as a};
@@ -0,0 +1 @@
1
+ var e=n=>n instanceof URL;export{e as a};
@@ -0,0 +1 @@
1
+ 'use strict';function n(e){return typeof e=="number"&&Number.isInteger(e)}exports.a=n;
@@ -0,0 +1 @@
1
+ import {e,f}from'./chunk-W5EDKJK3.js';import {a}from'./chunk-SYJC7UAW.js';import {h,i,g,k,n,d,e as e$1,E,p,D,m,o,a as a$1,b}from'./chunk-XCFIOTCV.js';var M=e=>{if(!h(e)&&!i(e))return 0;let a=String(e).trim().replace(/[^0-9]/g,"");return Number(a)||0};var j=(e={})=>{m(e,{message:({currentType:A,validType:U})=>`Second parameter (\`options\`) must be of type \`${U}\`, but received: \`${A}\`.`});let a$2=o(e,"convertBooleans")?e.convertBooleans:false,r=o(e,"convertDates")?e.convertDates:false,n=o(e,"convertNumbers")?e.convertNumbers:false,t=o(e,"loggingOnFail")?e.loggingOnFail:false,s=o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m$1=o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o$1=o(e,"removeNulls")?e.removeNulls:false,g=o(e,"removeUndefined")?e.removeUndefined:false,N=o(e,"strictMode")?e.strictMode:false,E$1=o(e,"checkSymbols")?e.checkSymbols:false,P=o(e,"convertNaN")?e.convertNaN:false,v=o(e,"customDateFormats")?e.customDateFormats:[],b$1=o(e,"onError")?e.onError:a;if(!(a$1(a$2)&&a$1(r)&&a$1(n)&&a$1(P)&&a$1(E$1)&&a$1(t)&&a$1(s)&&a$1(m$1)&&a$1(o$1)&&a$1(g)&&a$1(N)&&d(v)&&b(b$1)))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': \`${E(a$2)}\`, 'convertDates': \`${E(r)}\`, 'convertNumbers': \`${E(n)}\`, 'loggingOnFail': \`${E(t)}\`, 'removeEmptyArrays': \`${E(s)}\`, 'removeEmptyObjects': \`${E(m$1)}\`, 'removeNulls': \`${E(o$1)}\`, 'removeUndefined': \`${E(g)}\`, 'strictMode': \`${E(N)}\`, 'customDateFormats': \`${E(v)}\`, 'onError': \`${E(b$1)}\`].`);return {convertBooleans:a$2,convertDates:r,convertNumbers:n,convertNaN:P,loggingOnFail:t,removeEmptyArrays:s,removeEmptyObjects:m$1,removeNulls:o$1,removeUndefined:g,strictMode:N,customDateFormats:v,onError:b$1,checkSymbols:E$1}},O=(e$2,a={})=>{let r=j(a);if(g(e$2))return r.removeNulls?void 0:null;if(k(e$2))return r.removeUndefined,void 0;if(h(e$2)){let n$1=e$2.trim();if(r.convertNaN&&n$1==="NaN")return NaN;if(r.convertNumbers&&!n(Number(n$1)))return Number(n$1);if(r.convertBooleans){if(n$1==="true")return true;if(n$1==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n$1))return new Date(n$1);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let s=B(n$1,t);if(s)return s}}return r.strictMode?void 0:n$1}if(d(e$2)){let n=e$2.map(t=>O(t,r)).filter(t=>!k(t));return r.removeEmptyArrays&&e(n)?void 0:n}if(e$1(e$2)){let n={};for(let t in e$2)if(Object.prototype.hasOwnProperty.call(e$2,t)){let s=O(e$2[t],r);k(s)||(n[t]=s);}return r.removeEmptyObjects&&f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e$2},B=(e,a)=>{if(!h(e)||!h(a))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${E(e)}\`, 'format': \`${E(a)}\`]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(n))return null;let n$1,t,s;if(a==="DD/MM/YYYY")[n$1,t,s]=r;else if(a==="MM/DD/YYYY")[t,n$1,s]=r;else return null;t-=1;let m=new Date(s,t,n$1);return m.getFullYear()!==s||m.getMonth()!==t||m.getDate()!==n$1?null:m};function se(e,a={}){if(g(e))return null;let r=j(a);if(r.convertNaN&&(n(e)||p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!n(Number(e))&&i(M(e)))return Number(e);if(h(e))try{let n=I(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return O(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(D(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function I(e){let a=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,s=false;for(let m=0;m<e.length;m++){let o=e[m];if(s){n?o==="'"?r+="'":a.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':a.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,s=false;continue}if(o==="\\"){s=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}export{M as a,O as b,B as c,se as d};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {r,E,i,f,G,n}from'./chunk-XCFIOTCV.js';function S(e){if(!r(e))return;let r$1=Math.floor(Math.random()*(e.length||0));return e[r$1]}var s=(e,r)=>{if(!a(e)||!a(r))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${I(e,r)}value, but received: ['min': \`${E(e)}\` - (with value: ${c(e)}), 'max': \`${E(r)}\` - (with value: ${c(r)})].`);if(e>r)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${N(e)}', 'max': '${N(r)}'].`);return e=Math.max(1,e),r=Math.min(Number.MAX_SAFE_INTEGER,r),Math.floor(Math.random()*(r-e+1))+e};function N(e){return i(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${E(e)}\``}var I=(...e)=>e.some(r=>i(r,{includeNaN:true})&&r===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var B=e=>{f(e)||(e={});let{minLength:r=1,maxLength:t=16,avoidZero:o=false}=e;if(G(o,{message({currentType:y,validType:g}){return `Parameters \`avoidZero\` must be of type \`${g}\`, but received: \`${y}\`.`}}),!a(r)||!a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E(r)}\` - (with value: ${c(r)}), 'maxLength': \`${E(t)}\` - (with value: ${c(t)})].`);if(r<1||t>16||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);let u=r===t?r:s(r,t),d=10**(u-1),p=10**u-1,f$1=s(d,p);return o&&f$1===0&&(f$1=d),f$1};var Y=e=>{f(e)||(e={});let{minLength:r=40,maxLength:t=40,type:o="string",avoidWhiteSpace:u=true}=e;if(G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${L}\`, but received: \`${m}\`.`}}),!a(r)||!a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E(r)}\` - (with value: ${c(r)}), 'maxLength': \`${E(t)}\` - (with value: ${c(t)})].`);if(r<1||t>5e3||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${E(o)}\`, with value: ${c(o)}.`);let d=s(r,t),p=m=>u?m.replace(/\s|\n|\t/g,""):m,g=o==="number"?(n(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c$1=p(g)+(e.addChar||"");if(!c$1.length){let m=()=>o==="number"?u?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${m()}`)}let x="";for(let m=0;m<d;m++)x+=c$1.charAt(Math.floor(Math.random()*c$1.length));return x};export{S as a,s as b,B as c,Y as d};
@@ -0,0 +1 @@
1
+ import {d,F}from'./chunk-XCFIOTCV.js';function u(r,e){if(d(r))return;let t=F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}export{u as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function S(e){if(!chunkCN53M4QZ_cjs.r(e))return;let r=Math.floor(Math.random()*(e.length||0));return e[r]}var s=(e,r)=>{if(!chunkPUQXRLZH_cjs.a(e)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${I(e,r)}value, but received: ['min': \`${chunkCN53M4QZ_cjs.E(e)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(e)}), 'max': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)})].`);if(e>r)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${N(e)}', 'max': '${N(r)}'].`);return e=Math.max(1,e),r=Math.min(Number.MAX_SAFE_INTEGER,r),Math.floor(Math.random()*(r-e+1))+e};function N(e){return chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${chunkCN53M4QZ_cjs.E(e)}\``}var I=(...e)=>e.some(r=>chunkCN53M4QZ_cjs.i(r,{includeNaN:true})&&r===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var B=e=>{chunkCN53M4QZ_cjs.f(e)||(e={});let{minLength:r=1,maxLength:t=16,avoidZero:o=false}=e;if(chunkCN53M4QZ_cjs.G(o,{message({currentType:y,validType:g}){return `Parameters \`avoidZero\` must be of type \`${g}\`, but received: \`${y}\`.`}}),!chunkPUQXRLZH_cjs.a(r)||!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)}), 'maxLength': \`${chunkCN53M4QZ_cjs.E(t)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(t)})].`);if(r<1||t>16||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);let u=r===t?r:s(r,t),d=10**(u-1),p=10**u-1,f=s(d,p);return o&&f===0&&(f=d),f};var Y=e=>{chunkCN53M4QZ_cjs.f(e)||(e={});let{minLength:r=40,maxLength:t=40,type:o="string",avoidWhiteSpace:u=true}=e;if(chunkCN53M4QZ_cjs.G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${L}\`, but received: \`${m}\`.`}}),!chunkPUQXRLZH_cjs.a(r)||!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCN53M4QZ_cjs.E(r)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(r)}), 'maxLength': \`${chunkCN53M4QZ_cjs.E(t)}\` - (with value: ${chunkU5Y2FXMN_cjs.c(t)})].`);if(r<1||t>5e3||r>t)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${r}\`, 'maxLength': \`${t}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunkCN53M4QZ_cjs.E(o)}\`, with value: ${chunkU5Y2FXMN_cjs.c(o)}.`);let d=s(r,t),p=m=>u?m.replace(/\s|\n|\t/g,""):m,g=o==="number"?(chunkCN53M4QZ_cjs.n(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c=p(g)+(e.addChar||"");if(!c.length){let m=()=>o==="number"?u?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${m()}`)}let x="";for(let m=0;m<d;m++)x+=c.charAt(Math.floor(Math.random()*c.length));return x};exports.a=S;exports.b=s;exports.c=B;exports.d=Y;
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-56QBKKRE.js';import {a as a$1}from'./chunk-XVB3ZZEB.js';import {f,o,p,i}from'./chunk-XCFIOTCV.js';var b=(e="on_processing")=>{if(a())return;a$1(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&!t.classList.contains(e)&&t.classList.add(e);},h=(e="on_processing")=>{if(a())return;a$1(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&t.classList.contains(e)&&t.classList.remove(e);},T=()=>{if(a())return;let e=document.activeElement;e instanceof HTMLElement&&e.blur();},g=e=>{if(a())return;f(e)||(e={});let t=o(e,"behavior")&&p(e.behavior)&&["auto","instant","smooth"].includes(e.behavior.trim())?e.behavior:"smooth",r=o(e,"timeout")&&i(e.timeout)&&e.timeout>=1?e.timeout:1;setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:t});},r);};export{b as a,h as b,T as c,g as d};
@@ -0,0 +1 @@
1
+ 'use strict';var o=()=>{};exports.a=o;
@@ -0,0 +1 @@
1
+ 'use strict';var e=()=>typeof window>"u"||typeof document>"u";exports.a=e;
@@ -0,0 +1 @@
1
+ var o=()=>{};export{o as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function m(r,e){if(!(e===false||e==="stringOrNumber"||e==="primitives"||e==="all"))throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: ${chunkU5Y2FXMN_cjs.c(e)}.`);if(chunkCN53M4QZ_cjs.n(r))return e==="primitives"||e==="all"?"NaN":NaN;if(chunkCN53M4QZ_cjs.h(r)||chunkCN53M4QZ_cjs.i(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(chunkCN53M4QZ_cjs.a(r)||chunk7YWAQOA4_cjs.a(r)||chunkCN53M4QZ_cjs.c(r))return e==="primitives"||e==="all"?String(r):r;if(chunkCN53M4QZ_cjs.j(r)||chunkCN53M4QZ_cjs.b(r))return e==="all"?r.toString():r;if(chunkCN53M4QZ_cjs.d(r))return r.map(o=>m(o,e));if(chunkCN53M4QZ_cjs.l(r)){if(chunkU5Y2FXMN_cjs.b(r))return e==="all"?r.toISOString():r;if(chunkKCQDDZJE_cjs.a(r)||chunkCN53M4QZ_cjs.D(r)||r instanceof Promise)return e==="all"?r.toString():r;if(chunkCN53M4QZ_cjs.q(r))return e==="all"?[...r].map(t=>m(t,e)):r;if(chunkU5Y2FXMN_cjs.a(r))return e==="all"?[...r.entries()].map(([t,n])=>[m(t,e),m(n,e)]):r;let o={};if(chunkCN53M4QZ_cjs.e(r))for(let t of Object.keys(r))o[t]=m(r[t],e);return o}return r}function O(r){return chunkCN53M4QZ_cjs.c(r)?void 0:chunkCN53M4QZ_cjs.d(r)?r.reduce((o,t)=>{if(!chunkCN53M4QZ_cjs.c(t))if(chunkCN53M4QZ_cjs.d(t)){let n=O(t);n&&!chunkKCQDDZJE_cjs.e(n)&&o.push(n);}else o.push(t);return o},[]):[]}var gr=O,Nr=(r,e={})=>{chunk62HX5Z45_cjs.a(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),chunkCN53M4QZ_cjs.m(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o=chunkCN53M4QZ_cjs.o(e,"flatten")?e.flatten:false,t=chunkCN53M4QZ_cjs.o(e,"forceToString")?e.forceToString:false;if(!(t===false||t==="stringOrNumber"||t==="primitives"||t==="all"))throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: ${chunkU5Y2FXMN_cjs.c(t)}.`);chunkCN53M4QZ_cjs.G(o,{message:({currentType:i,validType:p})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${p}\`, but received: \`${i}\`.`});let n=i=>{let p=[];return i.reduce((S,F)=>{let R=chunkCN53M4QZ_cjs.d(F)?n(F):m(F,t);return p.some(v=>chunkKCQDDZJE_cjs.d(v,R))||(p.push(R),S.push(R)),S},[])},u=i=>chunkCN53M4QZ_cjs.d(i)?i.flatMap(u):chunkCN53M4QZ_cjs.q(i)?[...i].flatMap(u):chunkU5Y2FXMN_cjs.a(i)?[...i.values()].flatMap(u):[i];return n(o?u(r):r)};function Pr(r,e={}){chunkCN53M4QZ_cjs.m(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o=chunkCN53M4QZ_cjs.o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(chunkCN53M4QZ_cjs.G(o,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),chunkCN53M4QZ_cjs.d(r)){let t=Array.from(r,n=>chunkCN53M4QZ_cjs.h(n)||chunkFDITZ5C6_cjs.a(n)||chunkCN53M4QZ_cjs.a(n)||chunk7YWAQOA4_cjs.a(n)?String(n):chunkCN53M4QZ_cjs.g(n)?null:void 0);return o?O(t):t}}exports.a=m;exports.b=O;exports.c=gr;exports.d=Nr;exports.e=Pr;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var g=(r,t,o)=>{if(!chunkCN53M4QZ_cjs.i(r)||!chunkCN53M4QZ_cjs.h(o)||!chunkCN53M4QZ_cjs.h(t))throw new TypeError(`First parameter \`index\` must be of type \`number\`, second parameter \`originalString\` and third parameter \`replaceTo\` must be of type \`string\`, but received: "['index': \`${chunkCN53M4QZ_cjs.E(r)}\`, 'originalString': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'replaceTo': \`${chunkCN53M4QZ_cjs.E(o)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return t.slice(0,r)+o+t.slice(r+1)},u=r=>{if(!chunkCN53M4QZ_cjs.p(r))return "";r=r.replace(/\s+/g," ").trim();let t=r.split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};exports.a=g;exports.b=u;
@@ -0,0 +1 @@
1
+ 'use strict';var chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!chunkCN53M4QZ_cjs.n(o.getTime());var v=(o,i={})=>{chunkCN53M4QZ_cjs.m(i,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=chunkCN53M4QZ_cjs.o(i,"sortKeys")?i.sortKeys:true,b=chunkCN53M4QZ_cjs.o(i,"sortArray")?i.sortArray:false,S=chunkCN53M4QZ_cjs.o(i,"pretty")?i.pretty:false;if(!chunkCN53M4QZ_cjs.a(y)||!chunkCN53M4QZ_cjs.a(b)||!chunkCN53M4QZ_cjs.a(S))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${chunkCN53M4QZ_cjs.E(y)}\`, 'sortArray': \`${chunkCN53M4QZ_cjs.E(b)}\`, 'pretty': \`${chunkCN53M4QZ_cjs.E(S)}\`]".`);let N=new WeakSet,B=r=>chunkCN53M4QZ_cjs.g(r)||!chunkCN53M4QZ_cjs.l(r)&&!chunkCN53M4QZ_cjs.b(r),f=r=>{if(r instanceof Number)return Number(r);if(r instanceof String)return String(r);if(r instanceof Boolean)return !!r;if(!(chunkCN53M4QZ_cjs.b(r)||chunkCN53M4QZ_cjs.j(r))){if(chunk7YWAQOA4_cjs.a(r))return r.toString();if(chunkCN53M4QZ_cjs.k(r)||chunkCN53M4QZ_cjs.n(r)||r===1/0||r===-1/0)return null;if(chunkCN53M4QZ_cjs.l(r)){if(N.has(r))return "[Circular]";if(N.add(r),$(r))return r.toISOString();if(I(r))return {map:Array.from(r.entries()).map(([e,t])=>[e,f(t)])};if(chunkCN53M4QZ_cjs.q(r))return {set:Array.from(r.values()).map(f)};if(chunkCN53M4QZ_cjs.d(r)){let e=r.map(f);if(b){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>chunkCN53M4QZ_cjs.i(n)&&chunkCN53M4QZ_cjs.i(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m=Object.keys(r);y&&m.sort((e,t)=>{let u=Number(e),n=Number(t);return !chunkCN53M4QZ_cjs.n(u)&&!chunkCN53M4QZ_cjs.n(n)?u-n:e.localeCompare(t)});let O={};if(chunkCN53M4QZ_cjs.e(r))for(let e of m){let t=f(r[e]);chunkCN53M4QZ_cjs.k(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o),null,S?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};exports.a=I;exports.b=$;exports.c=v;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var g=(r,m={})=>{if(chunkCN53M4QZ_cjs.f(m)||(m={}),chunkCN53M4QZ_cjs.c(r)||r===false||chunkCN53M4QZ_cjs.n(r))return true;if(chunkCN53M4QZ_cjs.h(r))return chunk2TRAPBZ7_cjs.a(r);if(chunkCN53M4QZ_cjs.d(r))return chunkKCQDDZJE_cjs.e(r);if(chunkCN53M4QZ_cjs.e(r)){let b=chunkCN53M4QZ_cjs.o(m,"checkSymbols")?m.checkSymbols:false;return chunkKCQDDZJE_cjs.f(r,{checkSymbols:b})}return false};exports.a=g;
@@ -0,0 +1 @@
1
+ import {a,b as b$1}from'./chunk-DGH75GJD.js';import {b}from'./chunk-WHAVUFEU.js';import {f as f$1,e as e$1,a as a$8}from'./chunk-W5EDKJK3.js';import {a as a$4}from'./chunk-QFCGBBSY.js';import {a as a$6}from'./chunk-4JOQ45HL.js';import {a as a$3}from'./chunk-NIMNTEGV.js';import {a as a$5}from'./chunk-XVB3ZZEB.js';import {c as c$1,a as a$7,b as b$2}from'./chunk-MNGGDB2G.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {p,m,o,G,d,g,c,h,a as a$2,i,e,f,E,n,k,q,C,b as b$3,l}from'./chunk-XCFIOTCV.js';function ne(e,n={}){m(n,{message:({currentType:i,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${i}\`.`});let p=o(n,"removeInvalidValueNumber")?n.removeInvalidValueNumber:true;if(G(p,{message:({currentType:i,validType:m})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${i}\`.`}),d(e)){let i=Array.from(e,m=>{if(a$1(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):g(m)?null:void 0});return p?b(i):i}}var Oe=e$1=>c(e$1)?false:h(e$1)?p(e$1):a$2(e$1)?e$1:i(e$1,{includeNaN:true})?e$1!==0:d(e$1)||e(e$1)?a(e$1):!!e$1;var Q=e$1=>c(e$1)?false:h(e$1)?p(e$1):a$2(e$1)?e$1:i(e$1,{includeNaN:true})?e$1!==0:d(e$1)?e$1.some(Q):e(e$1)?Object.values(e$1).some(Q):false;var Ke=(e,n={})=>{if(c(e))return false;f(n)||(n={});let p=o(n,"caseInsensitive")?n.caseInsensitive:false,i$1=o(n,"trimString")?n.trimString:true,m=o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!a$2(p)||!a$2(i$1)||!a$2(m))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${E(p)}\`, 'trimString': \`${E(i$1)}\`, 'includeIndeterminate': \`${E(m)}\`].`);if(h(e)){let r=e;i$1&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return i(e)?e===1:a$2(e)?e:false};var _e=e=>c(e)?false:h(e)?!a$3(e):a$2(e)?e:i(e,{includeNaN:true})?e!==0:d(e)?e.length>0:!!e;var mr=e=>{let n$1={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(h(e)){let p$1=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n$1,p$1))return n$1[p$1];let i=p$1.replace(/,/g,""),m=Number(i);return !n(m)&&p(i)?m:e.trim()}return e};var X=e=>{try{if(b$3(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))},$=(e,n)=>{if(!l(e))return e;let[p,...i]=n;if(d(e))for(let m of e)l(m)&&$(m,n);else e$1(i)?f(e)&&delete e[p]:f(e)&&l(e[p])&&$(e[p],i);return e},W=(e,n)=>{if(!f(e))return e;let[p,...i]=n;return i.length===0?f(e)&&delete e[p]:f(e[p])&&W(e[p],i),e};function Nr(e,n,p=true){if(f$1(e,{checkSymbols:true}))return {};if(a$4(n,{message:({currentType:m,validType:r})=>`Second parameter (\`keysToDelete\`) must be of type \`${r}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${m}\`, with value: ${c$1(n)}.`}),!n.every(m=>f(m)&&"key"in m))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: ${c$1(n)}.`);let i=p?X(e):e;for(let{key:m,deep:r}of n){if(a$5(m,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!k(r)&&!a$2(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${E(r)}\`.`);let u=m.split(".");i=r?$(i,u):W(i,u);}return i}function Xr(e$2,n$1={}){m(n$1,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p$1=o(n$1,"removeEmptyObjects")?n$1.removeEmptyObjects:false,i$1=o(n$1,"removeEmptyArrays")?n$1.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(i(r)||p(r)&&!n(Number(r))){let o=Number(r);return a$6(o)?o:void 0}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>{let T=m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),B=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});return !k(T)&&!k(B)?[T,B]:void 0}).filter(t=>!k(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(C(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(b$2(r))return n(r.getTime())?0:r.getTime();if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});k(T)||(o[t]=T);}return a&&f$1(o)?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p$1,removeEmptyArrays:i$1,isRoot:true})}function vt(e$2,n={}){m(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i$1=o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(i(r)||h(r))return String(r);if(b$2(r))return r.toISOString();if(a$8(r))return r.toString();if(C(r))return Array.from(r).map(o=>String(o)).filter(o=>!k(o));if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!k(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>[m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})]).filter(([t,A])=>!k(t)&&!k(A));return s&&e$1(o)?void 0:o}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!k(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});k(T)?d(A)&&!s&&(o[t]=[]):o[t]=T;}return a&&Object.keys(o).length===0?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p,removeEmptyArrays:i$1,isRoot:true})}export{ne as a,Oe as b,Q as c,Ke as d,_e as e,mr as f,Nr as g,Xr as h,vt as i};
@@ -0,0 +1 @@
1
+ import {b as b$1,a}from'./chunk-MNGGDB2G.js';import {l,D,q,d,e,f,o,k}from'./chunk-XCFIOTCV.js';var b=r=>r instanceof RegExp;function g(r){return r instanceof ArrayBuffer}function c(r,n,s,i=new WeakMap){if(r===n||r!==r&&n!==n)return true;if(!l(r)||!l(n))return false;if(i.get(r)===n)return true;i.set(r,n);let w=(t,f,e,B,K)=>{if(s){let l=s(t,f,e,B,K,i);if(!k(l))return l}return c(t,f,s,i)};if(b$1(r)&&b$1(n))return r.getTime()===n.getTime();if(b(r)&&b(n))return r.source===n.source&&r.flags===n.flags;if(D(r)&&D(n))return r.name===n.name&&r.message===n.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(n)){let t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),f=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(t.length!==f.length)return false;for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(g(r)&&g(n)){if(r.byteLength!==n.byteLength)return false;let t=new Uint8Array(r),f=new Uint8Array(n);for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(a(r)&&a(n)){if(r.size!==n.size)return false;for(let[t,f]of r)if(!n.has(t)||!c(f,n.get(t),s,i))return false;return true}if(q(r)&&q(n)){if(r.size!==n.size)return false;for(let t of r){let f=false;for(let e of n)if(c(t,e,s,i)){f=true;break}if(!f)return false}return true}if(d(r)&&d(n)){if(r.length!==n.length)return false;for(let t=0;t<r.length;t++)if(!w(r[t],n[t],t,r,n))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(n))return false;let k$1=Reflect.ownKeys(r),x=Reflect.ownKeys(n);if(k$1.length!==x.length)return false;for(let t of k$1){let f=r[t],e=n[t];if(!w(f,e,t,r,n))return false}return true}function W(r,n){return c(r,n,void 0,new WeakMap)}var F=r=>d(r)?r.length===0:true;function X(r,n={}){if(!e(r))return true;f(n)||(n={});let s=o(n,"checkSymbols")?n.checkSymbols:false,i=Object.keys(r).length===0;return s?i&&Object.getOwnPropertySymbols(r).length===0:i}export{b as a,g as b,c,W as d,F as e,X as f};
@@ -0,0 +1 @@
1
+ import {a as a$2,e as e$1,d as d$1}from'./chunk-W5EDKJK3.js';import {a as a$4}from'./chunk-QFCGBBSY.js';import {a as a$5}from'./chunk-4JOQ45HL.js';import {c,b as b$1,a as a$3}from'./chunk-MNGGDB2G.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {E,n,h,i,a,c as c$1,j,b,d,l,D,q,e,m as m$1,o,G,g}from'./chunk-XCFIOTCV.js';function m(r,e$1){if(!(e$1===false||e$1==="stringOrNumber"||e$1==="primitives"||e$1==="all"))throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${E(e$1)}\`, with value: ${c(e$1)}.`);if(n(r))return e$1==="primitives"||e$1==="all"?"NaN":NaN;if(h(r)||i(r))return e$1==="stringOrNumber"||e$1==="primitives"||e$1==="all"?String(r):r;if(a(r)||a$1(r)||c$1(r))return e$1==="primitives"||e$1==="all"?String(r):r;if(j(r)||b(r))return e$1==="all"?r.toString():r;if(d(r))return r.map(o=>m(o,e$1));if(l(r)){if(b$1(r))return e$1==="all"?r.toISOString():r;if(a$2(r)||D(r)||r instanceof Promise)return e$1==="all"?r.toString():r;if(q(r))return e$1==="all"?[...r].map(t=>m(t,e$1)):r;if(a$3(r))return e$1==="all"?[...r.entries()].map(([t,n])=>[m(t,e$1),m(n,e$1)]):r;let o={};if(e(r))for(let t of Object.keys(r))o[t]=m(r[t],e$1);return o}return r}function O(r){return c$1(r)?void 0:d(r)?r.reduce((o,t)=>{if(!c$1(t))if(d(t)){let n=O(t);n&&!e$1(n)&&o.push(n);}else o.push(t);return o},[]):[]}var gr=O,Nr=(r,e={})=>{a$4(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),m$1(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o$1=o(e,"flatten")?e.flatten:false,t=o(e,"forceToString")?e.forceToString:false;if(!(t===false||t==="stringOrNumber"||t==="primitives"||t==="all"))throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${E(t)}\`, with value: ${c(t)}.`);G(o$1,{message:({currentType:i,validType:p})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${p}\`, but received: \`${i}\`.`});let n=i=>{let p=[];return i.reduce((S,F)=>{let R=d(F)?n(F):m(F,t);return p.some(v=>d$1(v,R))||(p.push(R),S.push(R)),S},[])},u=i=>d(i)?i.flatMap(u):q(i)?[...i].flatMap(u):a$3(i)?[...i.values()].flatMap(u):[i];return n(o$1?u(r):r)};function Pr(r,e={}){m$1(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o$1=o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(G(o$1,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),d(r)){let t=Array.from(r,n=>h(n)||a$5(n)||a(n)||a$1(n)?String(n):g(n)?null:void 0);return o$1?O(t):t}}export{m as a,O as b,gr as c,Nr as d,Pr as e};
@@ -0,0 +1 @@
1
+ var N=e=>typeof e=="boolean";var d=e=>typeof e=="function";function D(e){return e==null}function T(e){return Array.isArray(e)}function w(e){return typeof e=="object"&&!D(e)&&!T(e)}function u(e){if(!w(e))return false;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}var j=e=>e===null;var x=e=>typeof e=="string";var A=(e,r={})=>{let t=u(r)&&N(r.includeNaN)?r.includeNaN:false,o=typeof e=="number";return t?o:o&&!Number.isNaN(e)};var E=e=>typeof e=="symbol";var K=e=>typeof e>"u";function k(e){return T(e)||w(e)}var v=(e,r={})=>{if(N(e))return;let t=C({value:e,options:r,requiredValidType:"boolean"});throw new TypeError(t)};function I(e){return typeof e=="number"?Number.isNaN(e):Object.prototype.toString.call(e)==="[object Number]"&&Number.isNaN(e.valueOf())}function U(e,r,t={}){if(!x(e)&&!k(e)&&!d(e))return false;L(t,{message:({currentType:i,validType:c})=>`Third parameter (\`options\`) must be of type \`${c}\`, but received: \`${i}\`.`});let o=t.discardUndefined===void 0?true:t.discardUndefined,n=t.discardNull===void 0?false:t.discardNull;v(o,{message:({currentType:i,validType:c})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`}),v(n,{message:({currentType:i,validType:c})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`});let s=[];if(x(r)&&r.trim().length>0||A(r,{includeNaN:true}))(A(r,{includeNaN:true})?String(r):r).split(".").forEach(c=>{let S=c.match(/^\[(\d+)\]$/),P=c.match(/^Symbol\((.+)\)$/);S?s.push(Number(S[1])):P?s.push(Symbol.for(P[1])):I(Number(c))?s.push(c):s.push(Number(c));});else if(E(r))s.push(r);else return false;let a=x(e)&&e.trim().length>0?Object(e):e;for(let i of s)if(x(i)&&i.trim().length>0||A(i,{includeNaN:true})){if(j(a)||!Object.prototype.hasOwnProperty.call(a,i))return false;a=a[i];}else if(E(i)){if(j(a)||typeof a!="object"&&!d(a))return false;let S=Object.getOwnPropertySymbols(a).find(P=>P===i||P.description===i.description);if(!S)return false;a=a[S];}else return false;return !(o&&K(a)||n&&j(a))}var l=(e,r={})=>x(e)?(u(r)||(r={}),((U(r,"trim")?r.trim:true)?e.trim():e).length>0):false;function H(e){return Object.prototype.toString.call(e)==="[object Set]"||e instanceof Set}function m(e){return Array.isArray(e)&&e.length>0}var Be=(e,r={lowerCaseNextRest:true,trim:false})=>{if(!l(e))return "";u(r)||(r={});let t=r.lowerCaseNextRest!==false;return r.trim===true&&(e=e.trim()),e[0].toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},Ve=(e,r={collapseSpaces:false,trim:false})=>{if(!l(e))return "";let t=e;u(r)||(r={});let o=r.collapseSpaces===true;if(r.trim===true&&(t=t.trim()),o){let s=t.match(/^\s*/)?.[0]??"",a=t.match(/\s*$/)?.[0]??"";t=t.trim().replace(/\s+/g," "),t=`${s}${t}${a}`;}return t.toLowerCase().split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")};var g=e=>{let r="";return T(e)?r=e.map(t=>l(t)?t.trim():"").filter(t=>t.length).join("-"):l(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)};var O=e=>{let r=new Set([]),t=o=>o.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(l(e)){let o=t(e);o&&r.add(o);}return m(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),H(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),r},F=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map((n,s)=>o.has(n)?n:s===0?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},M=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")},B=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},V=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(" ")},h=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("-")},_=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("_")},W=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(".")},$=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(s=>o.has(s)?s:s.toLowerCase()).join("-").replace(/^-+|-+$/g,"")};var G=e=>typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(e);var z=e=>Object.prototype.toString.call(e)==="[object Error]"||e instanceof Error;var b=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),R={string:"String",number:"Number",boolean:"Boolean",bigint:"Big Int",symbol:"Symbol",undefined:"Undefined",null:"Null",regexp:"Reg Exp",reflect:"Reflect",proxy:"Proxy",atomics:"Atomics",object:"Object",array:"Array",arguments:"Arguments",function:"Function",asyncfunction:"Async Function",generatorfunction:"Generator Function",asyncgeneratorfunction:"Async Generator Function",generator:"Generator",promise:"Promise",evalerror:"Eval Error",rangeerror:"Range Error",referenceerror:"Reference Error",syntaxerror:"Syntax Error",typeerror:"Type Error",urierror:"URI Error",aggregateerror:"Aggregate Error",error:"Error",int8array:"Int 8 Array",uint8array:"Uint 8 Array",uint8clampedarray:"Uint 8 Clamped Array",int16array:"Int 16 Array",uint16array:"Uint 16 Array",int32array:"Int 32 Array",uint32array:"Uint 32 Array",float32array:"Float 32 Array",float64array:"Float 64 Array",bigint64array:"Big Int 64 Array",biguint64array:"Big Uint 64 Array",arraybuffer:"Array Buffer",sharedarraybuffer:"Shared Array Buffer",dataview:"Data View",arraybufferview:"Array Buffer View",map:"Map",set:"Set",weakmap:"Weak Map",weakset:"Weak Set",mapiterator:"Map Iterator",setiterator:"Set Iterator",arrayiterator:"Array Iterator",stringiterator:"String Iterator",readablestream:"Readable Stream",writablestream:"Writable Stream",transformstream:"Transform Stream",readablestreamdefaultreader:"Readable Stream Default Reader",writablestreamdefaultwriter:"Writable Stream Default Writer",readablestreamdefaultcontroller:"Readable Stream Default Controller",transformstreamdefaultcontroller:"Transform Stream Default Controller",abortcontroller:"Abort Controller",abortsignal:"Abort Signal",fetch:"fetch",request:"Request",response:"Response",headers:"Headers",formdata:"FormData",blob:"Blob",file:"File",filelist:"FileList",filereader:"FileReader",intl:"Intl",collator:"Intl. Collator",datetimeformat:"Intl. Date Time Format",listformat:"Intl. List Format",numberformat:"Intl. Number Format",pluralrules:"Intl. Plural Rules",relativetimeformat:"Intl. Relative Time Format",segmenter:"Intl. Segmenter",locale:"Intl. Locale",displaynames:"Intl. Display Names",finalizationregistry:"Finalization Registry",weakref:"Weak Ref",structuredclone:"structured Clone",urlpattern:"URL Pattern",performance:"Performance",performanceobserver:"Performance Observer",performanceentry:"Performance Entry",performancemark:"Performance Mark",performancemeasure:"Performance Measure",webassembly:"Web Assembly",wasmmodule:"WebAssembly .Module",wasminstance:"WebAssembly. Instance",wasmmemory:"WebAssembly. Memory",wasmtable:"WebAssembly. Table",buffer:"Buffer",process:"Process",eventemitter:"Event Emitter",stream:"Stream",fs:"fs",path:"path",url:"URL",urlsearchparams:"URL Search Params",node:"Node",element:"Element",htmlelement:"HTML Element",svgelement:"SVG Element",document:"Document",documentfragment:"Document Fragment",shadowroot:"Shadow Root",nodelist:"Node List",htmlcollection:"HTML Collection",mutationobserver:"Mutation Observer",intersectionobserver:"Intersection Observer",resizeobserver:"Resize Observer"};var f=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),y=Object.entries(R).reduce((e,[r,t])=>(e[f(r)]=t,e),{});function X(e){if(typeof e!="object"||e===null)return false;let r=Object.prototype.toString.call(e);if(["[object Array]","[object Date]","[object RegExp]","[object Map]","[object Set]","[object WeakMap]","[object WeakSet]","[object Function]","[object Error]","[object Promise]","[object Generator]","[object GeneratorFunction]","[object AsyncFunction]"].includes(r))return false;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return true}}var p=(e,r)=>r==="toPascalCaseSpace"?M(e,b):r==="slugify"?$(e,b):r==="toCamelCase"?F(e,b):r==="toDotCase"?W(e,b):r==="toKebabCase"?h(e,b):r==="toPascalCase"?B(e,b):r==="toSnakeCase"?_(e,b):V(e,b),q=(e,r={formatCase:"toLowerCase"})=>{u(r)||(r={});let t=r.formatCase;if(j(e))return p(y[f("null")]??"Null",t);if(I(e))return "NaN";if(e===1/0)return "Infinity";if(e===-1/0)return "-Infinity";if(e instanceof Number)return p("Number Constructor",t);if(e instanceof String)return p("String Constructor",t);if(e instanceof Boolean)return p("Boolean Constructor",t);let o=typeof e;if(!k(e)&&!d(e))return p(y[f(o)]??o,t);if(G(e))return p(y[f("buffer")]??"Buffer",t);if(X(e))return p(y[f("proxy")]??"Proxy",t);if(w(e)&&d(e?.next)&&d(e?.throw))return p(y[f("generator")]??"Generator",t);if(z(e)){let i=e.constructor?.name??"Error";return p(y[f(i)]??y[f(i.replace(/\s+/g,""))]??i,t)}if(j(Object.getPrototypeOf(e)))return p(y[f("object")]??"Object",t);let n=Object.prototype.toString.call(e).slice(8,-1)||"Object",s=y[f(n)];if(s)return p(s,t);let a=e?.constructor?.name;return p(a&&a!=="Object"?y[f(a)]??a:n,t)};function C({value:e,options:r,requiredValidType:t}){let{message:o,formatCase:n}=u(r)?r:{},s=h(t),a=q(e,{formatCase:n}),i={currentType:a,validType:s},c=`Parameter input (\`value\`) must be of type \`${s}\`, but received: \`${a}\`.`;return d(o)?l(o(i))?o(i).trim():c:l(o)?o.trim():c}function L(e,r={}){if(u(e))return;let t=C({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}export{W as A,$ as B,G as C,z as D,q as E,C as F,v as G,N as a,d as b,D as c,T as d,w as e,u as f,j as g,x as h,A as i,E as j,K as k,k as l,L as m,I as n,U as o,l as p,H as q,m as r,Be as s,Ve as t,F as u,M as v,B as w,V as x,h as y,_ as z};
@@ -0,0 +1 @@
1
+ import {a as a$3}from'./chunk-XH6MCRLP.js';import {a}from'./chunk-4JOQ45HL.js';import {a as a$6}from'./chunk-GECI2YBP.js';import {a as a$5}from'./chunk-NIMNTEGV.js';import {a as a$4}from'./chunk-XVB3ZZEB.js';import {a as a$2}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {h,E,m,o,a as a$1,f,n,k,b,G,c as c$1,i,p}from'./chunk-XCFIOTCV.js';import {id,enUS}from'date-fns/locale';import {isDate,parse,format}from'date-fns';var le=(r,e={})=>{if(!h(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${E(r)}\`, with value: ${c(r)}.`);m(e,{message:({currentType:a,validType:S})=>`Second parameter (\`options\`) must be of type \`${S}\`, but received: \`${a}\`.`});let t=o(e,"decimal")?e.decimal:false,o$1=o(e,"totalDecimal")?e.totalDecimal:2,i=o(e,"endDecimal")?e.endDecimal:true,d=o(e,"indianFormat")?e.indianFormat:false,p=o(e,"suffixCurrency")?e.suffixCurrency:"",f$1=o(e,"suffixDecimal")?e.suffixDecimal:"",m$1=o(e,"roundedDecimal")?e.roundedDecimal:"round",n$1=o(e,"negativeFormat")?e.negativeFormat:"dash",u=o(e,"separatorDecimals")?e.separatorDecimals:",",y=o(e,"separator")?e.separator:".";if(!h(y)||!h(u)||!h(p)||!h(f$1))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${E(y)}\`, 'separatorDecimals': \`${E(u)}\`, 'suffixCurrency': \`${E(p)}\`, 'suffixDecimal': \`${E(f$1)}\`].`);if(!a$1(t)||!a$1(i)||!a$1(d))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${E(t)}\`, 'endDecimal': \`${E(i)}\`, 'indianFormat': \`${E(d)}\`].`);if(!a$2(o$1))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${E(o$1)}\`, with value: \`${c(length)}\`.`);if(!(m$1===false||m$1==="round"||m$1==="ceil"||m$1==="floor"))throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${E(m$1)}\`, with value: ${c(m$1)}.`);if(!(n$1==="abs"||n$1==="brackets"||n$1==="dash"||f(n$1)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${E(n$1)}\`, with value: ${c(n$1)}.`);let P=h(r)?a$3(r):r;if(n(P))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let h$1=Math.abs(P),w=Math.pow(10,o$1);if(m$1){let a=h$1*w;switch(m$1){case "round":h$1=Math.round(a)/w;break;case "ceil":h$1=Math.ceil(a)/w;break;case "floor":h$1=Math.floor(a)/w;break}}let g="",b$1="";if(m$1){let a=h$1*w;switch(m$1){case "round":h$1=Math.round(a)/w;break;case "ceil":h$1=Math.ceil(a)/w;break;case "floor":h$1=Math.floor(a)/w;break}}if(m$1)[g,b$1]=h$1.toFixed(o$1).split("."),b$1=b$1??"".padEnd(o$1,"0");else {let a=String(h$1).split(".");g=a[0],b$1=(a[1]||"").slice(0,o$1).padEnd(o$1,"0");}let $,x=(a,S)=>{let O=a.slice(-3),C=a.slice(0,-3);return C?C.replace(/\B(?=(\d{2})+(?!\d))/g,S)+S+O:O};if(d?(y=",",u=".",$=(p.trim().length?p:"")+x(g,y)):$=(p.trim().length?p:"")+g.replace(/\B(?=(\d{3})+(?!\d))/g,y),t&&!k(b$1)&&o$1>0){let a=u+b$1;i&&(a+=f$1),$+=a;}if(P<0){if(n$1==="dash")$="-"+$;else if(n$1==="brackets")$="("+$+")";else if(n$1!=="abs"){if(f(n$1))if(o(n$1,"custom")){let a=n$1.custom;if(!b(a))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${E(a)}\`.`);let S=a($);a$4(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${C}\` type value, but received: \`${O}\`.`}),$=S;}else {let a=n$1.style||"dash",S=a$1(n$1.space)?n$1.space:false;if(G(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${C}\`, but received: \`${O}\`.`}),!(a==="abs"||a==="brackets"||a==="dash"))throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${E(a)}\`, with value: ${c(a)}.`);switch(a){case "dash":$="-"+(S?" ":"")+$;break;case "brackets":$=S?`( ${$} )`:`(${$})`;break;}}}}return $};var de=(r,e=",")=>{if(!h(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${E(r)}\`.`);if(!h(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${E(e)}\`.`);e=h(e)?e:",";let t=e==="."?",":".",o=r.toString().trim(),i=o.lastIndexOf("."),d=o.lastIndexOf(","),p="";i>d?p=".":d>i&&(p=",");let f=o,m="";if(p){let u=o.split(p);f=u.slice(0,-1).join(p),m=u.slice(-1)[0];}f=f.replace(/[^\d]/g,"");let n=f.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${n}${t}${m}`:n};function De(r,e={}){if(c$1(r))return "";if(!h(r)&&!i(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${E(r)}\`.`);m(e,{message:({currentType:x,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${x}\`.`});let t=o(e,"separator")?e.separator:" ",o$1=o(e,"takeNumberOnly")?e.takeNumberOnly:false,i$1=o(e,"checkValidOnly")?e.checkValidOnly:false,d=o(e,"plusNumberCountry")?e.plusNumberCountry:"",p=o(e,"openingNumberCountry")?e.openingNumberCountry:"",f=o(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!a$1(o$1)||!a$1(i$1))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${E(o$1)}\`, 'checkValidOnly': \`${E(i$1)}\`].`);if(!h(t)||!h(d)||!h(p)||!h(f))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${E(t)}\`, 'plusNumberCountry': \`${E(d)}\`, 'openingNumberCountry': \`${E(p)}\`, 'closingNumberCountry': \`${E(f)}\`].`);if(h(r)||(r=String(r)),o$1)return r.replace(/\D/g,"");if(i$1)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m$1=d.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m$1)&&(m$1="+"+m$1.replace(/^\++/,""));let n="",u="",y={7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"},P=m$1.replace(/^\+/,"").replace(/[^\d]/g,"");y[P]&&r.startsWith("0")?(n=r.slice(1,4),u=r.slice(4)):(n=r.slice(0,4),u=r.slice(4));let h$1=m$1.trim(),w=p.trim(),g=f.trim(),b="";h$1?w&&g?b=`${w}${h$1}${g} ${n}`:w&&!g?b=`${w}${h$1} ${n}`:!w&&g?b=`${h$1}${g} ${n}`:b=`${h$1} ${n}`:b=`${n}`;let $={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let x=0;x<u.length;x++){let a=x+n.length;b+=($[a]||"")+u[x];}return b}var Ie=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!h(e)||!r||!(isDate(r)||h(r)))return null;try{let t=new Date(r);if(n(t.getTime()))return null;let o=p=>p.toString().padStart(2,"0"),i={YYYY:t.getFullYear().toString(),MM:o(t.getMonth()+1),DD:o(t.getDate()),hh:o(t.getHours()),mm:o(t.getMinutes()),ss:o(t.getSeconds())},d=Object.entries(i).reduce((p,[f,m])=>p.split(f).join(m),e);return d.includes("NaN")?null:d}catch{return null}},Me=(r,e)=>{if(!r||!(isDate(r)||h(r)))return null;let t=new Date(r);if(n(t.getTime()))return null;f(e)||(e={});let{locale:o="en-US",...i}=e;try{return new Intl.DateTimeFormat(o?.toString()?.trim()?.length?o:"en-US",i).format(t)}catch{return null}},Le=(r,e)=>{if(!r||!(isDate(r)||h(r)))return null;f(e)||(e={});let{inputFormat:t,locale:o$1,inputLocale:i,...d}=e,p$1=o(e,"format")&&p(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",f$1;try{if(h(r)&&t&&i){let n=h(i)?i==="id"?id:enUS:i;f$1=parse(r,t,new Date,{locale:n});}else f$1=new Date(r);if(n(f$1.getTime()))return null;let m=h(o$1)?o$1==="id"?id:enUS:o$1;return format(f$1,p$1,{...d,locale:m})}catch{return null}},Ae=r=>{try{if(!r||h(r)&&a$5(r))r=new Date;else if(!(isDate(r)||h(r)))return "0";let e=new Date(r);if(n(e.getTime()))return "0";let t=d=>d.toString().padStart(2,"0"),o=e.getTimezoneOffset(),i=o<0?"+":"-";return o=Math.abs(o),`${i}${t(Math.floor(o/60))}${t(o%60)}`}catch{return "0"}};var Ge=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:g,validType:b})=>`Second parameter (\`options\`) must be of type \`${b}\`, but received: \`${g}\`.`});let t=o(e,"mode")?e.mode:"fixed";if(t!=="random"&&t!=="fixed")throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${E(t)}\`, with value: ${c(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[i,d]=r.split("@"),p$1=d.split(".");if(p$1.length<2)return "";let[f,...m$1]=p$1,n=m$1.join("."),u=t==="fixed"?(()=>{let g=0;for(let b=0;b<r.length;b++)g=(g<<5)-g+r.charCodeAt(b),g|=0;return Math.abs(g)})():void 0,y=(g,b,$)=>{if(g.length<=b)return "*".repeat(g.length);let x=g.split(""),a=Math.max(b,Math.ceil(g.length*$)),S=new Set,O=0;for(;S.size<a;){let C=k(u)?Math.floor(Math.random()*g.length):(u+g.length+O*31)%g.length;S.add(C),O++;}for(let C of S)x[C]="*";return x.join("")},P=y(i,i.length<4?1:2,.6),h=y(f,f.length<4?1:2,.5),w=n.length<=2?n:y(n,1,.4);return `${P}@${h}.${w}`};function tr(r,e,t={}){if(c$1(r)||e<=0)return r;if(a$4(r,{message:({currentType:n,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${n}\`.`}),!a$2(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);m(t,{message:({currentType:n,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let o$1=o(t,"separator")?t.separator:" ",i=o(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(h(o$1)&&a$1(i)))throw new TypeError(`Invalid properties type \`options\` (third parameter), \`separator\` must be of type \`string\`, and \`reCountAfterSpace\` must be of type \`boolean\`, but received: ['separator': \`${E(o$1)}\`, 'reCountAfterSpace': \`${E(i)}\`].`);if(r=a$6(r),!i){let n="",u=0;for(let y=0;y<r.length;y++){let P=r[y];u===e&&(n+=o$1,u=0),n+=P,u++;}return n}let d=r.split(" "),p=[],f=[],m$1=0;for(let n=0;n<d.length;n++){let u=d[n],y="",P=0;for(let h=0;h<u.length;h++)y+=u[h],P++,P===e&&h<u.length-1&&(y+=o$1,P=0);f.push(y),m$1++,(m$1===e||n===d.length-1)&&(p.push(f.join(o$1)),f=[],m$1=0);}return p.join(" ")}var ur=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:n,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let t=o(e,"length")?e.length:10,o$1=o(e,"trim")?e.trim:true,i=o(e,"ending")?e.ending:"...";if(!a$2(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${E(t)}\`, with value: \`${c(t)}\`.`);if(t<1)return "";if(!(h(i)&&a$1(o$1)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${E(i)}\`, 'trim': \`${E(o$1)}\`].`);a$5(i)?i="...":i=i.trim();let d=o$1?r.trim():r;if(d.length<=t)return d;let f=d.slice(0,t);return (o$1?f:f.trimEnd())+i};export{le as a,de as b,De as c,Ie as d,Me as e,Le as f,Ae as g,Ge as h,tr as i,ur as j};
@@ -0,0 +1 @@
1
+ import {p}from'./chunk-XCFIOTCV.js';var h=i=>{if(!p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let r=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),n=e.slice(t+1);e=r+"."+n;}else if(c>t){let r=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),n=e.slice(c+1);e=r+"."+n;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};export{h as a};
@@ -0,0 +1 @@
1
+ import {h,F}from'./chunk-XCFIOTCV.js';var p=(s,t={})=>{if(h(s))return;let n=F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};export{p as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs'),locale=require('date-fns/locale'),dateFns=require('date-fns');var le=(r,e={})=>{if(!chunkCN53M4QZ_cjs.h(r)&&!chunkFDITZ5C6_cjs.a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: ${chunkU5Y2FXMN_cjs.c(r)}.`);chunkCN53M4QZ_cjs.m(e,{message:({currentType:a,validType:S})=>`Second parameter (\`options\`) must be of type \`${S}\`, but received: \`${a}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"decimal")?e.decimal:false,o=chunkCN53M4QZ_cjs.o(e,"totalDecimal")?e.totalDecimal:2,i=chunkCN53M4QZ_cjs.o(e,"endDecimal")?e.endDecimal:true,d=chunkCN53M4QZ_cjs.o(e,"indianFormat")?e.indianFormat:false,p=chunkCN53M4QZ_cjs.o(e,"suffixCurrency")?e.suffixCurrency:"",f=chunkCN53M4QZ_cjs.o(e,"suffixDecimal")?e.suffixDecimal:"",m=chunkCN53M4QZ_cjs.o(e,"roundedDecimal")?e.roundedDecimal:"round",n=chunkCN53M4QZ_cjs.o(e,"negativeFormat")?e.negativeFormat:"dash",u=chunkCN53M4QZ_cjs.o(e,"separatorDecimals")?e.separatorDecimals:",",y=chunkCN53M4QZ_cjs.o(e,"separator")?e.separator:".";if(!chunkCN53M4QZ_cjs.h(y)||!chunkCN53M4QZ_cjs.h(u)||!chunkCN53M4QZ_cjs.h(p)||!chunkCN53M4QZ_cjs.h(f))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(y)}\`, 'separatorDecimals': \`${chunkCN53M4QZ_cjs.E(u)}\`, 'suffixCurrency': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'suffixDecimal': \`${chunkCN53M4QZ_cjs.E(f)}\`].`);if(!chunkCN53M4QZ_cjs.a(t)||!chunkCN53M4QZ_cjs.a(i)||!chunkCN53M4QZ_cjs.a(d))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'endDecimal': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'indianFormat': \`${chunkCN53M4QZ_cjs.E(d)}\`].`);if(!chunkPUQXRLZH_cjs.a(o))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${chunkCN53M4QZ_cjs.E(o)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(length)}\`.`);if(!(m===false||m==="round"||m==="ceil"||m==="floor"))throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${chunkCN53M4QZ_cjs.E(m)}\`, with value: ${chunkU5Y2FXMN_cjs.c(m)}.`);if(!(n==="abs"||n==="brackets"||n==="dash"||chunkCN53M4QZ_cjs.f(n)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${chunkCN53M4QZ_cjs.E(n)}\`, with value: ${chunkU5Y2FXMN_cjs.c(n)}.`);let P=chunkCN53M4QZ_cjs.h(r)?chunkJWHM3WZQ_cjs.a(r):r;if(chunkCN53M4QZ_cjs.n(P))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let h=Math.abs(P),w=Math.pow(10,o);if(m){let a=h*w;switch(m){case "round":h=Math.round(a)/w;break;case "ceil":h=Math.ceil(a)/w;break;case "floor":h=Math.floor(a)/w;break}}let g="",b="";if(m){let a=h*w;switch(m){case "round":h=Math.round(a)/w;break;case "ceil":h=Math.ceil(a)/w;break;case "floor":h=Math.floor(a)/w;break}}if(m)[g,b]=h.toFixed(o).split("."),b=b??"".padEnd(o,"0");else {let a=String(h).split(".");g=a[0],b=(a[1]||"").slice(0,o).padEnd(o,"0");}let $,x=(a,S)=>{let O=a.slice(-3),C=a.slice(0,-3);return C?C.replace(/\B(?=(\d{2})+(?!\d))/g,S)+S+O:O};if(d?(y=",",u=".",$=(p.trim().length?p:"")+x(g,y)):$=(p.trim().length?p:"")+g.replace(/\B(?=(\d{3})+(?!\d))/g,y),t&&!chunkCN53M4QZ_cjs.k(b)&&o>0){let a=u+b;i&&(a+=f),$+=a;}if(P<0){if(n==="dash")$="-"+$;else if(n==="brackets")$="("+$+")";else if(n!=="abs"){if(chunkCN53M4QZ_cjs.f(n))if(chunkCN53M4QZ_cjs.o(n,"custom")){let a=n.custom;if(!chunkCN53M4QZ_cjs.b(a))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${chunkCN53M4QZ_cjs.E(a)}\`.`);let S=a($);chunkBVPMMWDL_cjs.a(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${C}\` type value, but received: \`${O}\`.`}),$=S;}else {let a=n.style||"dash",S=chunkCN53M4QZ_cjs.a(n.space)?n.space:false;if(chunkCN53M4QZ_cjs.G(S,{message:({currentType:O,validType:C})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${C}\`, but received: \`${O}\`.`}),!(a==="abs"||a==="brackets"||a==="dash"))throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${chunkCN53M4QZ_cjs.E(a)}\`, with value: ${chunkU5Y2FXMN_cjs.c(a)}.`);switch(a){case "dash":$="-"+(S?" ":"")+$;break;case "brackets":$=S?`( ${$} )`:`(${$})`;break;}}}}return $};var de=(r,e=",")=>{if(!chunkCN53M4QZ_cjs.h(r)&&!chunkFDITZ5C6_cjs.a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);if(!chunkCN53M4QZ_cjs.h(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`.`);e=chunkCN53M4QZ_cjs.h(e)?e:",";let t=e==="."?",":".",o=r.toString().trim(),i=o.lastIndexOf("."),d=o.lastIndexOf(","),p="";i>d?p=".":d>i&&(p=",");let f=o,m="";if(p){let u=o.split(p);f=u.slice(0,-1).join(p),m=u.slice(-1)[0];}f=f.replace(/[^\d]/g,"");let n=f.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${n}${t}${m}`:n};function De(r,e={}){if(chunkCN53M4QZ_cjs.c(r))return "";if(!chunkCN53M4QZ_cjs.h(r)&&!chunkCN53M4QZ_cjs.i(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);chunkCN53M4QZ_cjs.m(e,{message:({currentType:x,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${x}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"separator")?e.separator:" ",o=chunkCN53M4QZ_cjs.o(e,"takeNumberOnly")?e.takeNumberOnly:false,i=chunkCN53M4QZ_cjs.o(e,"checkValidOnly")?e.checkValidOnly:false,d=chunkCN53M4QZ_cjs.o(e,"plusNumberCountry")?e.plusNumberCountry:"",p=chunkCN53M4QZ_cjs.o(e,"openingNumberCountry")?e.openingNumberCountry:"",f=chunkCN53M4QZ_cjs.o(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!chunkCN53M4QZ_cjs.a(o)||!chunkCN53M4QZ_cjs.a(i))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'checkValidOnly': \`${chunkCN53M4QZ_cjs.E(i)}\`].`);if(!chunkCN53M4QZ_cjs.h(t)||!chunkCN53M4QZ_cjs.h(d)||!chunkCN53M4QZ_cjs.h(p)||!chunkCN53M4QZ_cjs.h(f))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'plusNumberCountry': \`${chunkCN53M4QZ_cjs.E(d)}\`, 'openingNumberCountry': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'closingNumberCountry': \`${chunkCN53M4QZ_cjs.E(f)}\`].`);if(chunkCN53M4QZ_cjs.h(r)||(r=String(r)),o)return r.replace(/\D/g,"");if(i)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m=d.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m)&&(m="+"+m.replace(/^\++/,""));let n="",u="",y={7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"},P=m.replace(/^\+/,"").replace(/[^\d]/g,"");y[P]&&r.startsWith("0")?(n=r.slice(1,4),u=r.slice(4)):(n=r.slice(0,4),u=r.slice(4));let h=m.trim(),w=p.trim(),g=f.trim(),b="";h?w&&g?b=`${w}${h}${g} ${n}`:w&&!g?b=`${w}${h} ${n}`:!w&&g?b=`${h}${g} ${n}`:b=`${h} ${n}`:b=`${n}`;let $={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let x=0;x<u.length;x++){let a=x+n.length;b+=($[a]||"")+u[x];}return b}var Ie=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!chunkCN53M4QZ_cjs.h(e)||!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;try{let t=new Date(r);if(chunkCN53M4QZ_cjs.n(t.getTime()))return null;let o=p=>p.toString().padStart(2,"0"),i={YYYY:t.getFullYear().toString(),MM:o(t.getMonth()+1),DD:o(t.getDate()),hh:o(t.getHours()),mm:o(t.getMinutes()),ss:o(t.getSeconds())},d=Object.entries(i).reduce((p,[f,m])=>p.split(f).join(m),e);return d.includes("NaN")?null:d}catch{return null}},Me=(r,e)=>{if(!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;let t=new Date(r);if(chunkCN53M4QZ_cjs.n(t.getTime()))return null;chunkCN53M4QZ_cjs.f(e)||(e={});let{locale:o="en-US",...i}=e;try{return new Intl.DateTimeFormat(o?.toString()?.trim()?.length?o:"en-US",i).format(t)}catch{return null}},Le=(r,e)=>{if(!r||!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return null;chunkCN53M4QZ_cjs.f(e)||(e={});let{inputFormat:t,locale:o,inputLocale:i,...d}=e,p=chunkCN53M4QZ_cjs.o(e,"format")&&chunkCN53M4QZ_cjs.p(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",f;try{if(chunkCN53M4QZ_cjs.h(r)&&t&&i){let n=chunkCN53M4QZ_cjs.h(i)?i==="id"?locale.id:locale.enUS:i;f=dateFns.parse(r,t,new Date,{locale:n});}else f=new Date(r);if(chunkCN53M4QZ_cjs.n(f.getTime()))return null;let m=chunkCN53M4QZ_cjs.h(o)?o==="id"?locale.id:locale.enUS:o;return dateFns.format(f,p,{...d,locale:m})}catch{return null}},Ae=r=>{try{if(!r||chunkCN53M4QZ_cjs.h(r)&&chunk2TRAPBZ7_cjs.a(r))r=new Date;else if(!(dateFns.isDate(r)||chunkCN53M4QZ_cjs.h(r)))return "0";let e=new Date(r);if(chunkCN53M4QZ_cjs.n(e.getTime()))return "0";let t=d=>d.toString().padStart(2,"0"),o=e.getTimezoneOffset(),i=o<0?"+":"-";return o=Math.abs(o),`${i}${t(Math.floor(o/60))}${t(o%60)}`}catch{return "0"}};var Ge=(r,e={})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:g,validType:b})=>`Second parameter (\`options\`) must be of type \`${b}\`, but received: \`${g}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"mode")?e.mode:"fixed";if(t!=="random"&&t!=="fixed")throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: ${chunkU5Y2FXMN_cjs.c(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[i,d]=r.split("@"),p=d.split(".");if(p.length<2)return "";let[f,...m]=p,n=m.join("."),u=t==="fixed"?(()=>{let g=0;for(let b=0;b<r.length;b++)g=(g<<5)-g+r.charCodeAt(b),g|=0;return Math.abs(g)})():void 0,y=(g,b,$)=>{if(g.length<=b)return "*".repeat(g.length);let x=g.split(""),a=Math.max(b,Math.ceil(g.length*$)),S=new Set,O=0;for(;S.size<a;){let C=chunkCN53M4QZ_cjs.k(u)?Math.floor(Math.random()*g.length):(u+g.length+O*31)%g.length;S.add(C),O++;}for(let C of S)x[C]="*";return x.join("")},P=y(i,i.length<4?1:2,.6),h=y(f,f.length<4?1:2,.5),w=n.length<=2?n:y(n,1,.4);return `${P}@${h}.${w}`};function tr(r,e,t={}){if(chunkCN53M4QZ_cjs.c(r)||e<=0)return r;if(chunkBVPMMWDL_cjs.a(r,{message:({currentType:n,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${n}\`.`}),!chunkPUQXRLZH_cjs.a(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);chunkCN53M4QZ_cjs.m(t,{message:({currentType:n,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let o=chunkCN53M4QZ_cjs.o(t,"separator")?t.separator:" ",i=chunkCN53M4QZ_cjs.o(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(chunkCN53M4QZ_cjs.h(o)&&chunkCN53M4QZ_cjs.a(i)))throw new TypeError(`Invalid properties type \`options\` (third parameter), \`separator\` must be of type \`string\`, and \`reCountAfterSpace\` must be of type \`boolean\`, but received: ['separator': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'reCountAfterSpace': \`${chunkCN53M4QZ_cjs.E(i)}\`].`);if(r=chunkN2IJPIND_cjs.a(r),!i){let n="",u=0;for(let y=0;y<r.length;y++){let P=r[y];u===e&&(n+=o,u=0),n+=P,u++;}return n}let d=r.split(" "),p=[],f=[],m=0;for(let n=0;n<d.length;n++){let u=d[n],y="",P=0;for(let h=0;h<u.length;h++)y+=u[h],P++,P===e&&h<u.length-1&&(y+=o,P=0);f.push(y),m++,(m===e||n===d.length-1)&&(p.push(f.join(o)),f=[],m=0);}return p.join(" ")}var ur=(r,e={})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:n,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${n}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"length")?e.length:10,o=chunkCN53M4QZ_cjs.o(e,"trim")?e.trim:true,i=chunkCN53M4QZ_cjs.o(e,"ending")?e.ending:"...";if(!chunkPUQXRLZH_cjs.a(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);if(t<1)return "";if(!(chunkCN53M4QZ_cjs.h(i)&&chunkCN53M4QZ_cjs.a(o)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'trim': \`${chunkCN53M4QZ_cjs.E(o)}\`].`);chunk2TRAPBZ7_cjs.a(i)?i="...":i=i.trim();let d=o?r.trim():r;if(d.length<=t)return d;let f=d.slice(0,t);return (o?f:f.trimEnd())+i};exports.a=le;exports.b=de;exports.c=De;exports.d=Ie;exports.e=Me;exports.f=Le;exports.g=Ae;exports.h=Ge;exports.i=tr;exports.j=ur;
@@ -0,0 +1 @@
1
+ import {e,f as f$1}from'./chunk-W5EDKJK3.js';import {a}from'./chunk-NIMNTEGV.js';import {f,c,n,h,d,e as e$1,o}from'./chunk-XCFIOTCV.js';var g=(r,m={})=>{if(f(m)||(m={}),c(r)||r===false||n(r))return true;if(h(r))return a(r);if(d(r))return e(r);if(e$1(r)){let b=o(m,"checkSymbols")?m.checkSymbols:false;return f$1(r,{checkSymbols:b})}return false};export{g as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkMBDWTK54_cjs=require('../chunk-MBDWTK54.cjs'),chunkGRVZXQXL_cjs=require('../chunk-GRVZXQXL.cjs');require('../chunk-D47MHBSD.cjs');var chunkTC4VBE4Y_cjs=require('../chunk-TC4VBE4Y.cjs');require('../chunk-UUPQI6ND.cjs'),require('../chunk-KCQDDZJE.cjs'),require('../chunk-62HX5Z45.cjs');var chunkJWHM3WZQ_cjs=require('../chunk-JWHM3WZQ.cjs');require('../chunk-FDITZ5C6.cjs'),require('../chunk-RV2VULM7.cjs'),require('../chunk-2TRAPBZ7.cjs'),require('../chunk-BVPMMWDL.cjs');var chunkU5Y2FXMN_cjs=require('../chunk-U5Y2FXMN.cjs');require('../chunk-7YWAQOA4.cjs'),require('../chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.d}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.d}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.b}});Object.defineProperty(exports,"filterNullArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.c}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.e}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.a}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkJWHM3WZQ_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.c}});