@rzl-zone/utils-js 3.1.0-beta.2 → 3.1.2-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.
- package/README.md +2 -2
- package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
- package/dist/any-BmdI8UbK.d.ts +56 -56
- package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
- package/dist/assertions/index.cjs +1 -1
- package/dist/assertions/index.d.ts +396 -396
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-26W3VZIK.cjs +1 -0
- package/dist/chunk-2KRCHXFG.cjs +2 -0
- package/dist/{chunk-TQMZ2LPI.js → chunk-33ZLH266.js} +1 -1
- package/dist/{chunk-VQLAPEL3.js → chunk-4L4EJTNZ.js} +1 -1
- package/dist/{chunk-CK3BZGEU.js → chunk-5Q37AP7P.js} +1 -1
- package/dist/chunk-7CHFAMS2.js +1 -0
- package/dist/{chunk-REFMEB4A.js → chunk-7MMJZ6HS.js} +1 -1
- package/dist/chunk-7TC6DE3J.cjs +1 -0
- package/dist/{chunk-K4PLGD7C.js → chunk-7VX33E3V.js} +1 -1
- package/dist/chunk-BEZPD44N.cjs +1 -0
- package/dist/{chunk-2AUUPGMN.js → chunk-BI263OHW.js} +1 -1
- package/dist/{chunk-LVUSFXQS.cjs → chunk-CII6WWLO.cjs} +1 -1
- package/dist/{chunk-OX6RLS2F.cjs → chunk-D5TYPCWU.cjs} +1 -1
- package/dist/{chunk-MWLEM7ED.js → chunk-EEQY5QUG.js} +1 -1
- package/dist/chunk-ESJYBIYH.js +1 -0
- package/dist/{chunk-MJAW5RAK.js → chunk-EWYPSKKM.js} +1 -1
- package/dist/chunk-EXCOQLWX.cjs +1 -0
- package/dist/chunk-FWQVTMYA.cjs +1 -0
- package/dist/{chunk-25G6B35W.js → chunk-G4EWCRKS.js} +1 -1
- package/dist/{chunk-PFLNHD4B.cjs → chunk-G7R5XZRM.cjs} +1 -1
- package/dist/{chunk-EXXLUO7L.cjs → chunk-GGEV7LXX.cjs} +1 -1
- package/dist/{chunk-VTR75UID.cjs → chunk-HJOZOENU.cjs} +1 -1
- package/dist/{chunk-HXTACM3O.cjs → chunk-IRDZVLNZ.cjs} +1 -1
- package/dist/chunk-IW73G523.cjs +1 -0
- package/dist/chunk-IY5OZAB3.cjs +1 -0
- package/dist/{chunk-467VEMJH.js → chunk-J4NCYYGS.js} +1 -1
- package/dist/{chunk-RHIBYOFQ.js → chunk-J7JAZAJD.js} +1 -1
- package/dist/{chunk-JQZUWBIX.js → chunk-JYNSO7ZY.js} +1 -1
- package/dist/{chunk-UUMKL74S.js → chunk-K3UVKYEU.js} +1 -1
- package/dist/{chunk-ME5OV5HN.js → chunk-LQ76EDZG.js} +1 -1
- package/dist/chunk-MROH35V3.cjs +1 -0
- package/dist/chunk-NJSAV73S.js +1 -0
- package/dist/{chunk-HXST7RJB.js → chunk-NR44SNYE.js} +1 -1
- package/dist/{chunk-BLCANGFS.js → chunk-NXMTWY77.js} +1 -1
- package/dist/chunk-OZCQZO2V.cjs +4 -0
- package/dist/chunk-Q3NTKN5I.cjs +1 -0
- package/dist/{chunk-NSVLG7NY.js → chunk-QDNSC57Z.js} +1 -1
- package/dist/{chunk-NUVGETPD.js → chunk-QGXTL5ZH.js} +1 -1
- package/dist/{chunk-D43GV6EF.cjs → chunk-QSQDP7L2.cjs} +1 -1
- package/dist/{chunk-U4TZO7WV.js → chunk-S5M33A4O.js} +1 -1
- package/dist/{chunk-S7GMG4TB.js → chunk-SGTHOQQ2.js} +1 -1
- package/dist/chunk-SL3RQOWA.js +1 -0
- package/dist/{chunk-NUHOOAUN.cjs → chunk-SZPWZZYG.cjs} +1 -1
- package/dist/{chunk-RHE3M2NJ.cjs → chunk-UA4B7JBO.cjs} +1 -1
- package/dist/chunk-UQDJF5RR.cjs +1 -0
- package/dist/chunk-UTQUYABU.cjs +1 -0
- package/dist/{chunk-G72VSVGO.js → chunk-VPW3DRV5.js} +1 -1
- package/dist/{chunk-PSWITZK5.js → chunk-W32WALNU.js} +1 -1
- package/dist/chunk-XGZ6K753.cjs +1 -0
- package/dist/chunk-YFTR64N5.cjs +1 -0
- package/dist/chunk-ZFDS7W6B.cjs +1 -0
- package/dist/chunk-ZQOLZE6Z.cjs +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +1285 -1285
- package/dist/conversions/index.js +1 -1
- package/dist/env/index.d.ts +14 -14
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.d.ts +109 -109
- package/dist/events/index.js +1 -1
- package/dist/extends-Bk_SBGdT.d.ts +330 -330
- package/dist/formatting/index.cjs +1 -1
- package/dist/formatting/index.d.ts +855 -855
- package/dist/formatting/index.js +1 -1
- package/dist/generator/index.cjs +1 -1
- package/dist/generator/index.d.ts +155 -155
- package/dist/generator/index.js +1 -1
- package/dist/if-CvT4R7Kh.d.ts +16 -16
- package/dist/is-array--YjXV-Wx.d.ts +1084 -1084
- package/dist/isPlainObject-BVhBAPHX.d.ts +154 -154
- package/dist/never-BfayMBF9.d.ts +64 -64
- package/dist/next/index.cjs +5 -5
- package/dist/next/index.d.ts +183 -183
- package/dist/next/index.js +1 -1
- package/dist/next/server/index.cjs +1 -1
- package/dist/next/server/index.d.ts +25 -25
- package/dist/next/server/index.js +1 -1
- package/dist/nils-DMz3kU7M.d.ts +155 -155
- package/dist/omit-VvmIsZmX.d.ts +25 -25
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.d.ts +120 -120
- package/dist/operations/index.js +1 -1
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.d.ts +34 -34
- package/dist/parsers/index.js +1 -1
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.d.ts +1674 -1674
- package/dist/predicates/index.js +1 -1
- package/dist/prettify-C4xLcYOP.d.ts +328 -328
- package/dist/promise/index.cjs +1 -1
- package/dist/promise/index.d.ts +29 -29
- package/dist/promise/index.js +1 -1
- package/dist/rzl-utils.global.js +1 -1
- package/dist/string-XA-til3C.d.ts +318 -318
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.d.ts +690 -690
- package/dist/strings/index.js +1 -1
- package/dist/stylings/index.cjs +1 -1
- package/dist/stylings/index.d.ts +35 -35
- package/dist/stylings/index.js +1 -1
- package/dist/type-data-DDs-u2kq.d.ts +241 -241
- package/dist/types/index.d.ts +3264 -3264
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.d.ts +373 -373
- package/dist/urls/index.js +1 -1
- package/package.json +3 -15
- package/dist/chunk-2JQQQ625.js +0 -1
- package/dist/chunk-445TAVT4.cjs +0 -1
- package/dist/chunk-6Q4I2RPC.cjs +0 -1
- package/dist/chunk-6SMJMZ7G.cjs +0 -1
- package/dist/chunk-DFSTVQFI.cjs +0 -1
- package/dist/chunk-DYRDBYPF.cjs +0 -1
- package/dist/chunk-GAJTFCUA.js +0 -1
- package/dist/chunk-GOJNH55O.cjs +0 -1
- package/dist/chunk-IJTZWWRJ.cjs +0 -1
- package/dist/chunk-ISJ33O2J.cjs +0 -1
- package/dist/chunk-JISH2VGG.js +0 -1
- package/dist/chunk-KZQB7H4E.cjs +0 -1
- package/dist/chunk-LUVV5KSD.cjs +0 -2
- package/dist/chunk-MF5Y5K4N.cjs +0 -1
- package/dist/chunk-O5VXBNUQ.cjs +0 -4
- package/dist/chunk-O7SJR4CY.cjs +0 -1
- package/dist/chunk-PYUVKHUF.cjs +0 -1
- package/dist/chunk-XFCJDSB2.cjs +0 -1
- package/dist/chunk-XOYX4PLZ.cjs +0 -1
- package/dist/chunk-Z6FLCEN6.js +0 -1
- package/dist/chunk-ZO5364A6.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-5SZUSNGZ.js';import {h,j,o,a,E,b,l,m,n,q,d,i,k,e}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-5SZUSNGZ.js';import {h,j,o,a,E,b,l,m,n,q,d,i,k,e}from'./chunk-EWYPSKKM.js';function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!h(o.getTime());var v=(o$1,i$1={})=>{j(i$1,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=o(i$1,"pretty")?i$1.pretty:false,b$1=o(i$1,"sortKeys")?i$1.sortKeys:true,S=o(i$1,"sortArray")?i$1.sortArray:false;if(!a(b$1)||!a(S)||!a(y))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${E(b$1)}\`, 'sortArray': \`${E(S)}\`, 'pretty': \`${E(y)}\`]".`);let N=new WeakSet,B=r=>i(r)||!n(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)||l(r))){if(a$1(r))return r.toString();if(m(r)||h(r)||r===1/0||r===-1/0)return null;if(n(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(S){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>k(n)&&k(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m$1=Object.keys(r);b$1&&m$1.sort((e,t)=>{let u=Number(e),n=Number(t);return !h(u)&&!h(n)?u-n:e.localeCompare(t)});let O={};if(e(r))for(let e of m$1){let t=f(r[e]);m(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o$1),null,y?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};export{I as a,$ as b,v as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-7MMJZ6HS.js';var y=(t,o={})=>!a(t,o);var e=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);function p(t){return t!=null&&typeof t=="object"&&e.has(Object.prototype.toString.call(t))}export{y as a,p as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-SL3RQOWA.js';var p=t=>(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()));export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$2}from'./chunk-
|
|
1
|
+
import {d as d$2}from'./chunk-EEQY5QUG.js';import {d as d$1,e}from'./chunk-LQ76EDZG.js';import {a}from'./chunk-SL3RQOWA.js';import {c}from'./chunk-J4NCYYGS.js';import {f,r,n,d as d$3,h,m}from'./chunk-EWYPSKKM.js';var d=n=>{a(n,{message:({currentType:t,validType:i})=>`First parameter (\`values\`) must be of type \`${i}\` (array literal or instance), but received: \`${t}\`.`});let r=[];return n.forEach((t,i)=>{for(let o=i+1;o<n.length;o++)if(d$1(t,n[o])){r.some(c=>d$1(c,t))||r.push(t);break}}),r};var v=(n,r)=>{if(!f(n))return {};a(r,{message:({currentType:i,validType:o})=>`Second parameter (\`keysToOmit\`) must be of type \`${o}\` (array literal or instance), but received: \`${i}\`.`});let t=d(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(n).filter(([i])=>!r.includes(i)))};var G=(n$1,r$1)=>{if(!f(n$1))return {};a(r$1,{message:({currentType:e,validType:a})=>`Second parameter (\`keysToOmit\`) must be of type \`${a}\` (array literal or instance), but received: \`${e}\`.`});let t=d(r$1);if(r(t))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${c(t)}\`.`);let i=(e$1,a)=>{if(!n(e$1))return e$1;let[s,...l]=a;if(e(l))if(d$3(e$1)){let m=parseInt(s);!h(m)&&m in e$1&&e$1.splice(m,1);}else delete e$1[s];else {let m=e$1[s];n(m)&&(e$1[s]=i(m,l));}return e$1},o=e=>d$3(e)?e.map(o).filter(a=>!(n(a)&&Object.keys(a).length===0)):n(e)?Object.fromEntries(Object.entries(e).map(([s,l])=>[s,o(l)]).filter(([,s])=>!m(s)&&!(n(s)&&Object.keys(s).length===0))):e,c$1=d$2(c(n$1));for(let e of r$1){let a=e.split(".");i(c$1,a);}return o(c$1)};export{d as a,v as b,G as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,a}from'./chunk-
|
|
1
|
+
import {b,a}from'./chunk-J4NCYYGS.js';import {n,C,q,d,e,j,o,G,m}from'./chunk-EWYPSKKM.js';var k=r=>r instanceof RegExp;function l(r){return r instanceof ArrayBuffer}function c(r,e,i,s=new WeakMap){if(r===e||r!==r&&e!==e)return true;if(!n(r)||!n(e))return false;if(s.get(r)===e)return true;s.set(r,e);let o=(t,f,n,S,B)=>{if(i){let w=i(t,f,n,S,B,s);if(!m(w))return w}return c(t,f,i,s)};if(b(r)&&b(e))return r.getTime()===e.getTime();if(k(r)&&k(e))return r.source===e.source&&r.flags===e.flags;if(C(r)&&C(e))return r.name===e.name&&r.message===e.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(e)){let t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),f=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(t.length!==f.length)return false;for(let n=0;n<t.length;n++)if(t[n]!==f[n])return false;return true}if(l(r)&&l(e)){if(r.byteLength!==e.byteLength)return false;let t=new Uint8Array(r),f=new Uint8Array(e);for(let n=0;n<t.length;n++)if(t[n]!==f[n])return false;return true}if(a(r)&&a(e)){if(r.size!==e.size)return false;for(let[t,f]of r)if(!e.has(t)||!c(f,e.get(t),i,s))return false;return true}if(q(r)&&q(e)){if(r.size!==e.size)return false;for(let t of r){let f=false;for(let n of e)if(c(t,n,i,s)){f=true;break}if(!f)return false}return true}if(d(r)&&d(e)){if(r.length!==e.length)return false;for(let t=0;t<r.length;t++)if(!o(r[t],e[t],t,r,e))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(e))return false;let m$1=Reflect.ownKeys(r),d$1=Reflect.ownKeys(e);if(m$1.length!==d$1.length)return false;for(let t of m$1){let f=r[t],n=e[t];if(!o(f,n,t,r,e))return false}return true}function D(r,e){return c(r,e,void 0,new WeakMap)}var F=r=>d(r)?r.length===0:true;function Y(r,e$1={}){if(!e(r))return true;j(e$1,{message:({currentType:o,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${o}\`.`});let i=o(e$1,"checkSymbols")?e$1.checkSymbols:false;G(i,{message:({currentType:o,validType:m})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${o}\`.`});let s=Object.keys(r).length===0;return i?s&&Object.getOwnPropertySymbols(r).length===0:s}export{k as a,l as b,c,D as d,F as e,Y as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkUTQUYABU_cjs=require('./chunk-UTQUYABU.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var a=(r,t={withTrim:true,trimOnly:false})=>{if(!chunkCII6WWLO_cjs.p(r))return "";chunkCII6WWLO_cjs.f(t)||(t={});let{trimOnly:n=false,withTrim:o=true}=t;return n?r.trim():(o&&(r=r.trim()),r.replace(/\s+/g," "))},g=r=>chunkCII6WWLO_cjs.p(r)?r.trim():"",d=(r,t={trimOnly:false})=>{if(!chunkCII6WWLO_cjs.p(r))return "";chunkCII6WWLO_cjs.f(t)||(t={});let{trimOnly:n=false}=t;return n?r.trim():r.replace(/\s+/g,"")};function u(r){return chunkCII6WWLO_cjs.g(r)?chunkUTQUYABU_cjs.a(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0}exports.a=a;exports.b=g;exports.c=d;exports.d=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {g,F}from'./chunk-EWYPSKKM.js';var p=(s,t={})=>{if(g(s))return;let n=F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-7CHFAMS2.js';import {p,f,g as g$1}from'./chunk-EWYPSKKM.js';var a=(r,t={withTrim:true,trimOnly:false})=>{if(!p(r))return "";f(t)||(t={});let{trimOnly:n=false,withTrim:o=true}=t;return n?r.trim():(o&&(r=r.trim()),r.replace(/\s+/g," "))},g=r=>p(r)?r.trim():"",d=(r,t={trimOnly:false})=>{if(!p(r))return "";f(t)||(t={});let{trimOnly:n=false}=t;return n?r.trim():r.replace(/\s+/g,"")};function u(r){return g$1(r)?a$1(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0}export{a,g as b,d as c,u as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-J4NCYYGS.js';import {E,i}from'./chunk-EWYPSKKM.js';var v=(r=1e3,e)=>{if(!a(r)||r<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);if(i(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((b,f)=>{let u=setTimeout(()=>{o(),b();},r),o=()=>{clearTimeout(u),e&&e.removeEventListener("abort",t);},t=()=>{o(),f(new DOMException("Function `delay` aborted","AbortError"));};e&&(e.aborted?t():e.addEventListener("abort",t,{once:true}));})};export{v as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use strict';var chunkMROH35V3_cjs=require('./chunk-MROH35V3.cjs'),chunkUTQUYABU_cjs=require('./chunk-UTQUYABU.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var y=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var J=(r,e=null,t={})=>{let o=[];!chunkCII6WWLO_cjs.g(r)&&!chunkCII6WWLO_cjs.d(r)&&o.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${chunkCII6WWLO_cjs.E(r)}\`.`),!chunkCII6WWLO_cjs.g(e)&&!chunkCII6WWLO_cjs.d(e)&&!chunkCII6WWLO_cjs.i(e)&&o.push(`Second parameter (\`base\`) must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCII6WWLO_cjs.E(e)}\`.`),chunkCII6WWLO_cjs.f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${chunkCII6WWLO_cjs.E(t)}\`.`);let{levels:m=1,removeDuplicates:c=true}=t;if((!chunkPUQXRLZH_cjs.a(m)||chunkPUQXRLZH_cjs.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: \`${chunkCII6WWLO_cjs.E(m)}\`, with value: \`${chunk26W3VZIK_cjs.c(m)}\`.`),chunkCII6WWLO_cjs.a(c)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCII6WWLO_cjs.E(c)}\`.`),chunkCII6WWLO_cjs.r(o))throw new TypeError(`Invalid parameter(s) in \`getPrefixPathname\` function:
|
|
2
|
+
- ${o.join(`
|
|
3
|
+
- `)}`);function h(i){return `/${s(i).split("/").filter(Boolean).slice(0,m).join("/")}`}function v(i){if(e){if(i=s(i),chunkCII6WWLO_cjs.d(e)){for(let a of e)if(i.startsWith(s(a)))return h(i)}else if(chunkCII6WWLO_cjs.p(e)&&i.startsWith(s(e)))return h(i);return null}return h(i)}if(chunkCII6WWLO_cjs.d(r)){let i=r.map(v).filter(z=>!chunkCII6WWLO_cjs.i(z)),a=c?[...new Set(i)]:i;return a.length===1?a[0]:a}return v(r)},K=(r,e="/")=>{if(!chunkCII6WWLO_cjs.p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${chunkCII6WWLO_cjs.E(e)}\`, with value: \`${chunk26W3VZIK_cjs.c(e)}\`.`);if(chunkCII6WWLO_cjs.d(r)){if(!r.every(t=>chunkCII6WWLO_cjs.g(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${chunkCII6WWLO_cjs.E(r)}\`, with value: \`${chunk26W3VZIK_cjs.c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(chunkCII6WWLO_cjs.g(r)){let t=s(r);return t!=="/"?t:s(e)}if(!chunkCII6WWLO_cjs.c(r))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, but received: \`${chunkCII6WWLO_cjs.E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!chunkCII6WWLO_cjs.p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty-string, but received: \`${chunkCII6WWLO_cjs.E(e)}\`, with value: \`${chunk26W3VZIK_cjs.c(e)}\`.`);if(!chunkCII6WWLO_cjs.p(r))return e;try{if(r=chunkMROH35V3_cjs.c(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=chunkCII6WWLO_cjs.C(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new y(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var V=(r,e={})=>{if(!chunkCII6WWLO_cjs.p(r))return "";chunkCII6WWLO_cjs.j(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=chunkCII6WWLO_cjs.o(e,"prefixColon")?e.prefixColon:false;if(!chunkCII6WWLO_cjs.a(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCII6WWLO_cjs.E(t)}\`.`);let o=r.replace(/\D+/g,"");return chunkUTQUYABU_cjs.a(o)?"":t?`:${o}`:o};
|
|
4
|
+
exports.a=J;exports.b=K;exports.c=s;exports.d=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function e(i){return chunkCII6WWLO_cjs.k(i)&&Number.isFinite(i)}exports.a=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c as c$2}from'./chunk-
|
|
1
|
+
import {c as c$2}from'./chunk-NR44SNYE.js';import {a as a$2}from'./chunk-7CHFAMS2.js';import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-J4NCYYGS.js';import {g,d,E,i,f,a as a$1,r,p,c as c$1,C,j,o}from'./chunk-EWYPSKKM.js';var y=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var J=(r$1,e=null,t={})=>{let o=[];!g(r$1)&&!d(r$1)&&o.push(`First parameter (\`url\`) must be of type \`string\` or \`array-string\`, but received: \`${E(r$1)}\`.`),!g(e)&&!d(e)&&!i(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\` function:
|
|
2
2
|
- ${o.join(`
|
|
3
3
|
- `)}`);function h(i){return `/${s(i).split("/").filter(Boolean).slice(0,m).join("/")}`}function v(i){if(e){if(i=s(i),d(e)){for(let a of e)if(i.startsWith(s(a)))return h(i)}else if(p(e)&&i.startsWith(s(e)))return h(i);return null}return h(i)}if(d(r$1)){let i$1=r$1.map(v).filter(z=>!i(z)),a=c$1?[...new Set(i$1)]:i$1;return a.length===1?a[0]:a}return v(r$1)},K=(r,e="/")=>{if(!p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not an \`empty-string\`, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);if(d(r)){if(!r.every(t=>g(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(g(r)){let t=s(r);return t!=="/"?t:s(e)}if(!c$1(r))throw new TypeError(`First parameter (\`result\`) must be of type \`string\`, \`array-string\`, \`null\` or \`undefined\`, 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$2(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=C(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new y(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var V=(r,e={})=>{if(!p(r))return "";j(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
4
|
export{J as a,K as b,s as c,V as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a}from'./chunk-NNM7QCNB.js';import {b as b$2}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-NNM7QCNB.js';import {b as b$2}from'./chunk-J7JAZAJD.js';import {d,e,a as a$3,c as c$2}from'./chunk-LQ76EDZG.js';import {a as a$2}from'./chunk-7VX33E3V.js';import {a as a$6}from'./chunk-7CHFAMS2.js';import {a as a$1}from'./chunk-NJSAV73S.js';import {c,b as b$1,a as a$4}from'./chunk-J4NCYYGS.js';import {d as d$1,E,G as G$1,p,j,n,b,g,k,l,q,f,c as c$1,a as a$5,D,h,m,e as e$1,i}from'./chunk-EWYPSKKM.js';var ir=(r,t,e=false)=>{if(!(d$1(r)&&d$1(t)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${E(r)}\`, 'array2': \`${E(t)}\`].`);if(G$1(e,{message:({currentType:o,validType:n})=>`Third parameter \`ignoreOrder\` must be of type \`${n}\`, but received: \`${o}\`.`}),!d(r.length,t.length))return false;let s=o=>d$1(o)?o.map(m=>d$1(m)?s(m):m).sort((m,u)=>{let R=c(m),C=c(u);return R<C?-1:R>C?1:0}):o,i=e?s(r):r,a=e?s(t):t;return d(i.length,a.length)?i.every((o,n)=>c(o)===c(a[n])):false};var fr=(r,t)=>d(r,t);var ur=(r,t)=>{if(!a(r)||!a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname};var yr=(r,t)=>{if(!a(r)||!a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search};var Tr=(r,t,e={})=>{if(!p(r)||!d$1(t))return false;j(e,{message:({currentType:n,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${n}\`.`});let{exactMatch:s=false,flags:i="i"}=e;G$1(s,{message:({currentType:n,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`}),a$1(i,{message:({currentType:n,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`});let a=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(n=>p(n)).map(a);return o.length===0?false:o.every(n=>{let m=s?`(?<!\\S)${n}(?!\\S)`:n;return new RegExp(m,i.includes("u")?i:i+"u").test(r)})};var Pr=(r,t,e={})=>{if(!p(r)||!d$1(t))return false;j(e,{message:({currentType:m,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${m}\`.`});let{exactMatch:s=false,flags:i="i"}=e;G$1(s,{message:({currentType:m,validType:u})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`}),a$1(i,{message:({currentType:m,validType:u})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`});let a=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(m=>p(m)).map(a);if(o.length===0)return false;let n=s?`(?<!\\S)(${o.join("|")})(?!\\S)`:`(${o.join("|")})`;return new RegExp(n,i.includes("u")?i:i+"u").test(r)};function H(r){let t=typeof r;return t==="string"||t==="number"||t==="symbol"}var Z=(r,t)=>{if(!n(r))return false;if(!H(t))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${E(t)}\`.`);return Object.prototype.hasOwnProperty.call(r,t)?true:d$1(r)?r.some(e=>Z(e,t)):Object.values(r).some(e=>n(e)&&Z(e,t))};var Gr=(r,t)=>{if(!d$1(r)||!d$1(t)||e(r)||e(t))return false;let e$1=new Set(r);return t.some(s=>e$1.has(s))};var G=r=>Object.prototype.toString.call(r)==="[object Arguments]";function I(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function nt(r){return !b(r)&&n(r)&&I(r?.length)}function ft(r){return n(r)&&I(r.length)}var lt=r=>g(r)||k(r)?a$2(r.toString())!==0?true:r.toString().trim()==="0":false;var S=(r,t)=>{if(typeof r=="number"&&typeof t=="number"&&Number.isNaN(r)&&Number.isNaN(t)||r===t)return true;if(typeof r!=typeof t)return false;if(b$1(r)&&b$1(t))return r.getTime()===t.getTime();if(a$3(r)&&a$3(t)||l(r)&&l(t))return r.toString()===t.toString();if(q(r)&&q(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let i of r){let a=false;for(let o=0;o<e.length;o++)if(!s.has(o)&&S(i,e[o])){s.add(o),a=true;break}if(!a)return false}return true}if(a$4(r)&&a$4(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let[i,a]of r){let o=false;for(let n=0;n<e.length;n++){if(s.has(n))continue;let[m,u]=e[n];if(S(i,m)&&S(a,u)){s.add(n),o=true;break}}if(!o)return false}return true}if(d$1(r)&&d$1(t))return r.length!==t.length?false:r.every((e,s)=>S(e,t[s]));if(n(r)&&n(t)&&r&&t){if(d$1(r)!==d$1(t))return false;let e=Object.keys(r),s=Object.keys(t);return e.length!==s.length?false:e.every(i=>S(r[i],t[i]))}return false};function Ot(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!f(r)}function vt(r){return c$1(r)||a$5(r)||k(r,{includeNaN:true})||l(r)?true:b(r)?Object.keys(r).length===0:g(r)||d$1(r)||G(r)||b$2(r)?r.length===0:a$4(r)||q(r)?r.size===0:D(r)?r.length===0:f(r)?Object.keys(r).length===0:false}var X=r=>{if(g(r))return a$6(r);if(k(r))return h(r);if(d$1(r))return e(r)||r.every(X);if(n(r)){let t=Object.keys(r),e=Object.getOwnPropertySymbols(r);return t.length===0&&e.length===0?true:[...t,...e].every(s=>X(r[s]))}return !r};function Bt(r,t,e){return c$2(r,t,e,new WeakMap)}function B(r,t,e){return M(r,t,e)}function J(r,t){return r===t||r===0&&t===0||Number.isNaN(r)&&Number.isNaN(t)}function M(r,t,e){if(r===t)return true;if(!n(t))return J(r,t);if(!n(r))return false;let s=Reflect.ownKeys(t).filter(i=>!(d$1(t)&&i==="length"));for(let i of s){if(!(i in r))return false;let a=r[i],o=t[i],n$1=e?.(a,o,i,r,t);if(!m(n$1)){if(!n$1)return false;continue}if(n(a)&&n(o)){if(!B(a,o,e))return false}else if(!J(a,o))return false}return true}function se(r,t){return M(r,t)}var Q=Function.prototype.toString,Y=/\{\s*\[native code\]\s*\}/;function pe(r){if(!b(r))return false;try{let t=Q.call(r);return Y.test(t)}catch{return false}}function ye(r){return !c$1(r)&&(n(r)||b(r))}function be(r){return typeof r=="number"&&Number.isSafeInteger(r)}var de=r=>{if(!p(r))return false;let t;try{t=decodeURIComponent(r);}catch{return false}return !t.startsWith("http://")&&!t.startsWith("https://")?false:new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(t)};function Ae(r){return e$1(r)&&!i(r)&&r instanceof WeakMap}
|
|
2
2
|
export{ir as a,fr as b,ur as c,yr as d,Tr as e,Pr as f,H as g,Z as h,Gr as i,G as j,I as k,nt as l,ft as m,lt as n,S as o,Ot as p,vt as q,X as r,Bt as s,B as t,se as u,pe as v,ye as w,be as x,de as y,Ae as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var h=i=>{if(!chunkCII6WWLO_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 n=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),r=e.slice(t+1);e=n+"."+r;}else if(c>t){let n=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),r=e.slice(c+1);e=n+"."+r;}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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-56QBKKRE.js';import {a as a$1}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-56QBKKRE.js';import {a as a$1}from'./chunk-NJSAV73S.js';import {f,o,p,k}from'./chunk-EWYPSKKM.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")&&k(e.timeout)&&e.timeout>=1?e.timeout:1;r=r>2147483647?2147483647:r,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:t}),r);};export{b as a,h as b,T as c,g as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-NNM7QCNB.js';import {d}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-NNM7QCNB.js';import {d}from'./chunk-W32WALNU.js';import {a as a$3}from'./chunk-7MMJZ6HS.js';import {a as a$2}from'./chunk-SL3RQOWA.js';import {b}from'./chunk-NR44SNYE.js';import {a}from'./chunk-7CHFAMS2.js';import {c}from'./chunk-J4NCYYGS.js';import {g,E,m,p,b as b$1,k,C as C$1}from'./chunk-EWYPSKKM.js';var A=(t,e,o)=>{if(g(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(!m(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(!m(e)&&!b$1(e[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)}\`, with value: \`${c(e)}\`.`);let r=new URL(t);if(!m(e)){let n=Object.fromEntries(e);if(!a$3(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!p(f)&&!k(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)}\`, with value: \`${c(e)}\`.`);i.set(s,String(f));}o?.length&&d(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw C$1(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 {d,F}from'./chunk-EWYPSKKM.js';function u(r,e){if(d(r))return;let t=F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),
|
|
1
|
+
'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function E(e){if(!chunkCII6WWLO_cjs.r(e))return;let n=Math.floor(Math.random()*(e.length||0));return e[n]}var d=(e,n)=>{if(!chunkPUQXRLZH_cjs.a(e)||!chunkPUQXRLZH_cjs.a(n))throw new TypeError(`First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${N(e,n)}value, but received: ['min': \`${chunkCII6WWLO_cjs.E(e)}\` - (with value: \`${chunk26W3VZIK_cjs.c(e)})\`, 'max': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: \`${chunk26W3VZIK_cjs.c(n)}\`)].`);if(e>n)throw new RangeError(`First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${I(e)}, 'max': ${I(n)}].`);return e=Math.max(1,e),n=Math.min(Number.MAX_SAFE_INTEGER,n),Math.floor(Math.random()*(n-e+1))+e},I=e=>chunkCII6WWLO_cjs.k(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${chunkCII6WWLO_cjs.E(e)}\``,N=(...e)=>e.some(n=>chunkCII6WWLO_cjs.k(n,{includeNaN:true})&&n===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var _=e=>{chunkCII6WWLO_cjs.f(e)||(e={});let{minLength:n=1,maxLength:r=16,avoidZero:o=false}=e;if(chunkCII6WWLO_cjs.G(o,{message({currentType:y,validType:c}){return `Parameters \`avoidZero\` must be of type \`${c}\`, but received: \`${y}\`.`}}),!chunkPUQXRLZH_cjs.a(n)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: ${chunk26W3VZIK_cjs.c(n)}), 'maxLength': \`${chunkCII6WWLO_cjs.E(r)}\` - (with value: ${chunk26W3VZIK_cjs.c(r)})].`);if(n<1||r>16||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);let u=n===r?n:d(n,r),s=10**(u-1),l=10**u-1,f=d(s,l);return o&&f===0&&(f=s),f};var Y=e=>{chunkCII6WWLO_cjs.f(e)||(e={});let{minLength:n=40,maxLength:r=40,type:o="string",avoidWhiteSpace:u=true}=e;if(chunkCII6WWLO_cjs.G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${L}\`, but received: \`${m}\`.`}}),!chunkPUQXRLZH_cjs.a(n)||!chunkPUQXRLZH_cjs.a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkCII6WWLO_cjs.E(n)}\` - (with value: ${chunk26W3VZIK_cjs.c(n)}), 'maxLength': \`${chunkCII6WWLO_cjs.E(r)}\` - (with value: ${chunk26W3VZIK_cjs.c(r)})].`);if(n<1||r>5e3||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunkCII6WWLO_cjs.E(o)}\`, with value: ${chunk26W3VZIK_cjs.c(o)}.`);let s=d(n,r),l=m=>u?m.replace(/\s|\n|\t/g,""):m,c=o==="number"?(chunkCII6WWLO_cjs.h(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",g=l(c)+(e.addChar||"");if(!g.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<s;m++)x+=g.charAt(Math.floor(Math.random()*g.length));return x};exports.a=E;exports.b=d;exports.c=_;exports.d=Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZQOLZE6Z_cjs=require('./chunk-ZQOLZE6Z.cjs');var y=(t,o={})=>!chunkZQOLZE6Z_cjs.a(t,o);var e=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);function p(t){return t!=null&&typeof t=="object"&&e.has(Object.prototype.toString.call(t))}exports.a=y;exports.b=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');function u(r,e){if(chunkCII6WWLO_cjs.d(r))return;let t=chunkCII6WWLO_cjs.F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}exports.a=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var r=(n,o={})=>!chunkCII6WWLO_cjs.p(n,o);exports.a=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-
|
|
1
|
+
import {a,b as b$1}from'./chunk-J7JAZAJD.js';import {b}from'./chunk-W32WALNU.js';import {f as f$1,e as e$1,a as a$8}from'./chunk-LQ76EDZG.js';import {a as a$4}from'./chunk-SL3RQOWA.js';import {a as a$6}from'./chunk-ESJYBIYH.js';import {a as a$3}from'./chunk-7CHFAMS2.js';import {a as a$5}from'./chunk-NJSAV73S.js';import {c as c$1,a as a$7,b as b$2}from'./chunk-J4NCYYGS.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {p,j,o,G,d,i,c,g,a as a$2,k,e,f,E,h,m,q,D,b as b$3,n}from'./chunk-EWYPSKKM.js';function ne(e,n={}){j(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$1=Array.from(e,m=>{if(a$1(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):i(m)?null:void 0});return p?b(i$1):i$1}}var Oe=e$1=>c(e$1)?false:g(e$1)?p(e$1):a$2(e$1)?e$1:k(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:g(e$1)?p(e$1):a$2(e$1)?e$1:k(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=o(n,"trimString")?n.trimString:true,m=o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!a$2(p)||!a$2(i)||!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)}\`, 'includeIndeterminate': \`${E(m)}\`].`);if(g(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 k(e)?e===1:a$2(e)?e:false};var _e=e=>c(e)?false:g(e)?!a$3(e):a$2(e)?e:k(e,{includeNaN:true})?e!==0: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(g(e)){let p$1=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n,p$1))return n[p$1];let i=p$1.replace(/,/g,""),m=Number(i);return !h(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$1)=>{if(!n(e))return e;let[p,...i]=n$1;if(d(e))for(let m of e)n(m)&&$(m,n$1);else e$1(i)?f(e)&&delete e[p]:f(e)&&n(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 gr(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$1,deep:r}of n){if(a$5(m$1,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!m(r)&&!a$2(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m$1}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${E(r)}\`.`);let u=m$1.split(".");i=r?$(i,u):W(i,u);}return i}function Qr(e$2,n={}){j(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p$1=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=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(k(r)||p(r)&&!h(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=>!m(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=>!m(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 !m(T)&&!m(B)?[T,B]:void 0}).filter(t=>!m(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(D(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(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=>!m(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=>!m(t));return s&&e$1(o)?void 0:o}if(b$2(r))return h(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});m(T)||(o[t]=T);}return a&&f$1(o)?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p$1,removeEmptyArrays:i,isRoot:true})}function dt(e$2,n={}){j(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=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(k(r)||g(r))return String(r);if(b$2(r))return r.toISOString();if(a$8(r))return r.toString();if(D(r))return Array.from(r).map(o=>String(o)).filter(o=>!m(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=>!m(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=>!m(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=>!m(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])=>!m(t)&&!m(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=>!m(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});m(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,isRoot:true})}export{ne as a,Oe as b,Q as c,Ke as d,_e as e,mr as f,gr as g,Qr as h,dt as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2,e as e$1,d as d$1}from'./chunk-
|
|
1
|
+
import {a as a$2,e as e$1,d as d$1}from'./chunk-LQ76EDZG.js';import {a as a$4}from'./chunk-SL3RQOWA.js';import {a as a$5}from'./chunk-ESJYBIYH.js';import {c,b as b$1,a as a$3}from'./chunk-J4NCYYGS.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {E,h,g,k,a,c as c$1,l,b,d,n,C,q,e,j,o,G,i}from'./chunk-EWYPSKKM.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(h(r))return e$1==="primitives"||e$1==="all"?"NaN":NaN;if(g(r)||k(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(l(r)||b(r))return e$1==="all"?r.toString():r;if(d(r))return r.map(o=>m(o,e$1));if(n(r)){if(b$1(r))return e$1==="all"?r.toISOString():r;if(a$2(r)||C(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 F(r){return c$1(r)?void 0:d(r)?r.reduce((o,t)=>{if(!c$1(t))if(d(t)){let n=F(t);n&&!e$1(n)&&o.push(n);}else o.push(t);return o},[]):[]}var br=(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}\`.`}),j(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((R,O)=>{let S=d(O)?n(O):m(O,t);return p.some(v=>d$1(v,S))||(p.push(S),R.push(S)),R},[])},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={}){j(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=>g(n)||a$5(n)||a(n)||a$1(n)?String(n):i(n)?null:void 0);return o$1?F(t):t}}export{m as a,F as b,br as c,Pr as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkUQDJF5RR_cjs=require('./chunk-UQDJF5RR.cjs'),chunkQ3NTKN5I_cjs=require('./chunk-Q3NTKN5I.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.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: \`${chunkCII6WWLO_cjs.E(e)}\`, with value: \`${chunk26W3VZIK_cjs.c(e)}\`.`);if(chunkCII6WWLO_cjs.h(r))return e==="primitives"||e==="all"?"NaN":NaN;if(chunkCII6WWLO_cjs.g(r)||chunkCII6WWLO_cjs.k(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(chunkCII6WWLO_cjs.a(r)||chunk7YWAQOA4_cjs.a(r)||chunkCII6WWLO_cjs.c(r))return e==="primitives"||e==="all"?String(r):r;if(chunkCII6WWLO_cjs.l(r)||chunkCII6WWLO_cjs.b(r))return e==="all"?r.toString():r;if(chunkCII6WWLO_cjs.d(r))return r.map(o=>m(o,e));if(chunkCII6WWLO_cjs.n(r)){if(chunk26W3VZIK_cjs.b(r))return e==="all"?r.toISOString():r;if(chunkG7R5XZRM_cjs.a(r)||chunkCII6WWLO_cjs.C(r)||r instanceof Promise)return e==="all"?r.toString():r;if(chunkCII6WWLO_cjs.q(r))return e==="all"?[...r].map(t=>m(t,e)):r;if(chunk26W3VZIK_cjs.a(r))return e==="all"?[...r.entries()].map(([t,n])=>[m(t,e),m(n,e)]):r;let o={};if(chunkCII6WWLO_cjs.e(r))for(let t of Object.keys(r))o[t]=m(r[t],e);return o}return r}function F(r){return chunkCII6WWLO_cjs.c(r)?void 0:chunkCII6WWLO_cjs.d(r)?r.reduce((o,t)=>{if(!chunkCII6WWLO_cjs.c(t))if(chunkCII6WWLO_cjs.d(t)){let n=F(t);n&&!chunkG7R5XZRM_cjs.e(n)&&o.push(n);}else o.push(t);return o},[]):[]}var br=(r,e={})=>{chunkUQDJF5RR_cjs.a(r,{message:({currentType:i,validType:p})=>`First parameter (\`inputArray\`) must be of type \`${p}\` (array literal or instance), but received: \`${i}\`.`}),chunkCII6WWLO_cjs.j(e,{message:({currentType:i,validType:p})=>`Second parameter (\`options\`) must be of type \`${p}\`, but received: \`${i}\`.`});let o=chunkCII6WWLO_cjs.o(e,"flatten")?e.flatten:false,t=chunkCII6WWLO_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: \`${chunkCII6WWLO_cjs.E(t)}\`, with value: \`${chunk26W3VZIK_cjs.c(t)}\`.`);chunkCII6WWLO_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((R,O)=>{let S=chunkCII6WWLO_cjs.d(O)?n(O):m(O,t);return p.some(v=>chunkG7R5XZRM_cjs.d(v,S))||(p.push(S),R.push(S)),R},[])},u=i=>chunkCII6WWLO_cjs.d(i)?i.flatMap(u):chunkCII6WWLO_cjs.q(i)?[...i].flatMap(u):chunk26W3VZIK_cjs.a(i)?[...i.values()].flatMap(u):[i];return n(o?u(r):r)};function Pr(r,e={}){chunkCII6WWLO_cjs.j(e,{message:({currentType:t,validType:n})=>`Second parameter (\`options\`) must be of type \`${n}\`, but received: \`${t}\`.`});let o=chunkCII6WWLO_cjs.o(e,"removeInvalidValue")?e.removeInvalidValue:true;if(chunkCII6WWLO_cjs.G(o,{message:({currentType:t,validType:n})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${n}\`, but received: \`${t}\`.`}),chunkCII6WWLO_cjs.d(r)){let t=Array.from(r,n=>chunkCII6WWLO_cjs.g(n)||chunkQ3NTKN5I_cjs.a(n)||chunkCII6WWLO_cjs.a(n)||chunk7YWAQOA4_cjs.a(n)?String(n):chunkCII6WWLO_cjs.i(n)?null:void 0);return o?F(t):t}}exports.a=m;exports.b=F;exports.c=br;exports.d=Pr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkUQDJF5RR_cjs=require('./chunk-UQDJF5RR.cjs');var p=t=>(chunkUQDJF5RR_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 chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunk26W3VZIK_cjs=require('./chunk-26W3VZIK.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var j=e=>{if(!chunkCII6WWLO_cjs.g(e)&&!chunkCII6WWLO_cjs.k(e))return 0;let s=String(e).trim().replace(/[^0-9]/g,"");return Number(s)||0};var A=(e={})=>{chunkCII6WWLO_cjs.j(e,{message:({currentType:U,validType:B})=>`Second parameter (\`options\`) must be of type \`${B}\`, but received: \`${U}\`.`});let s=chunkCII6WWLO_cjs.o(e,"convertBooleans")?e.convertBooleans:false,r=chunkCII6WWLO_cjs.o(e,"convertDates")?e.convertDates:false,n=chunkCII6WWLO_cjs.o(e,"convertNumbers")?e.convertNumbers:false,t=chunkCII6WWLO_cjs.o(e,"loggingOnFail")?e.loggingOnFail:false,a=chunkCII6WWLO_cjs.o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m=chunkCII6WWLO_cjs.o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o=chunkCII6WWLO_cjs.o(e,"removeNulls")?e.removeNulls:false,N=chunkCII6WWLO_cjs.o(e,"removeUndefined")?e.removeUndefined:false,v=chunkCII6WWLO_cjs.o(e,"strictMode")?e.strictMode:false,T=chunkCII6WWLO_cjs.o(e,"checkSymbols")?e.checkSymbols:false,w=chunkCII6WWLO_cjs.o(e,"convertNaN")?e.convertNaN:false,b=chunkCII6WWLO_cjs.o(e,"customDateFormats")?e.customDateFormats:[],y=chunkCII6WWLO_cjs.o(e,"onError")?e.onError:chunkRV2VULM7_cjs.a;if(!(chunkCII6WWLO_cjs.a(s)&&chunkCII6WWLO_cjs.a(r)&&chunkCII6WWLO_cjs.a(n)&&chunkCII6WWLO_cjs.a(w)&&chunkCII6WWLO_cjs.a(T)&&chunkCII6WWLO_cjs.a(t)&&chunkCII6WWLO_cjs.a(a)&&chunkCII6WWLO_cjs.a(m)&&chunkCII6WWLO_cjs.a(o)&&chunkCII6WWLO_cjs.a(N)&&chunkCII6WWLO_cjs.a(v)&&chunkCII6WWLO_cjs.d(b)&&chunkCII6WWLO_cjs.b(y)))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': \`${chunkCII6WWLO_cjs.E(s)}\`, 'convertDates': \`${chunkCII6WWLO_cjs.E(r)}\`, 'convertNumbers': \`${chunkCII6WWLO_cjs.E(n)}\`, 'loggingOnFail': \`${chunkCII6WWLO_cjs.E(t)}\`, 'removeEmptyArrays': \`${chunkCII6WWLO_cjs.E(a)}\`, 'removeEmptyObjects': \`${chunkCII6WWLO_cjs.E(m)}\`, 'removeNulls': \`${chunkCII6WWLO_cjs.E(o)}\`, 'removeUndefined': \`${chunkCII6WWLO_cjs.E(N)}\`, 'strictMode': \`${chunkCII6WWLO_cjs.E(v)}\`, 'customDateFormats': \`${chunkCII6WWLO_cjs.E(b)}\`, 'onError': \`${chunkCII6WWLO_cjs.E(y)}\`].`);return {convertBooleans:s,convertDates:r,convertNumbers:n,convertNaN:w,loggingOnFail:t,removeEmptyArrays:a,removeEmptyObjects:m,removeNulls:o,removeUndefined:N,strictMode:v,customDateFormats:b,onError:y,checkSymbols:T}},P=(e,s={})=>{let r=A(s);if(chunkCII6WWLO_cjs.i(e))return r.removeNulls?void 0:null;if(chunkCII6WWLO_cjs.m(e))return r.removeUndefined,void 0;if(chunkCII6WWLO_cjs.g(e)){let n=e.trim();if(r.convertNaN&&n==="NaN")return NaN;if(r.convertNumbers&&!chunkCII6WWLO_cjs.h(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 a=I(n,t);if(a)return a}}return r.strictMode?void 0:n}if(chunkCII6WWLO_cjs.d(e)){let n=e.map(t=>P(t,r)).filter(t=>!chunkCII6WWLO_cjs.m(t));return r.removeEmptyArrays&&chunkG7R5XZRM_cjs.e(n)?void 0:n}if(chunkCII6WWLO_cjs.e(e)){let n={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let a=P(e[t],r);chunkCII6WWLO_cjs.m(a)||(n[t]=a);}return r.removeEmptyObjects&&chunkG7R5XZRM_cjs.f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e},I=(e,s)=>{if(!chunkCII6WWLO_cjs.p(e)||!chunkCII6WWLO_cjs.p(s))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${chunkCII6WWLO_cjs.E(e)}\` - (current value: \`${chunk26W3VZIK_cjs.c(e)}\`), 'format': \`${chunkCII6WWLO_cjs.E(s)}\` - (current value: \`${chunk26W3VZIK_cjs.c(s)}\`)]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(chunkCII6WWLO_cjs.h))return null;let n,t,a;if(s==="DD/MM/YYYY")[n,t,a]=r;else if(s==="MM/DD/YYYY")[t,n,a]=r;else return null;t-=1;let m=new Date(a,t,n);return m.getFullYear()!==a||m.getMonth()!==t||m.getDate()!==n?null:m};function me(e,s={}){if(chunkCII6WWLO_cjs.i(e))return null;let r=A(s);if(r.convertNaN&&(chunkCII6WWLO_cjs.h(e)||chunkCII6WWLO_cjs.p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!chunkCII6WWLO_cjs.h(Number(e))&&chunkCII6WWLO_cjs.k(j(e)))return Number(e);if(chunkCII6WWLO_cjs.g(e))try{let n=J(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 P(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(chunkCII6WWLO_cjs.C(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function J(e){let s=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,a=false;for(let m=0;m<e.length;m++){let o=e[m];if(a){n?o==="'"?r+="'":s.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':s.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,a=false;continue}if(o==="\\"){a=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=j;exports.b=P;exports.c=I;exports.d=me;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkG7R5XZRM_cjs=require('./chunk-G7R5XZRM.cjs'),chunkUTQUYABU_cjs=require('./chunk-UTQUYABU.cjs'),chunkCII6WWLO_cjs=require('./chunk-CII6WWLO.cjs');var P=(r,t={})=>{chunkCII6WWLO_cjs.j(t,{message:({currentType:o,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${o}\`.`});let m=chunkCII6WWLO_cjs.o(t,"checkSymbols")?t.checkSymbols:false;return chunkCII6WWLO_cjs.G(m,{message:({currentType:o,validType:e})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${e}\`, but received: \`${o}\`.`}),chunkCII6WWLO_cjs.c(r)||r===false||chunkCII6WWLO_cjs.h(r)?true:chunkCII6WWLO_cjs.g(r)?chunkUTQUYABU_cjs.a(r):chunkCII6WWLO_cjs.d(r)?chunkG7R5XZRM_cjs.e(r):chunkCII6WWLO_cjs.e(r)?chunkG7R5XZRM_cjs.f(r,{checkSymbols:m}):false};exports.a=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFWQVTMYA_cjs=require('../chunk-FWQVTMYA.cjs'),chunkZFDS7W6B_cjs=require('../chunk-ZFDS7W6B.cjs');require('../chunk-UA4B7JBO.cjs');var chunkXGZ6K753_cjs=require('../chunk-XGZ6K753.cjs');require('../chunk-ZQOLZE6Z.cjs'),require('../chunk-G7R5XZRM.cjs'),require('../chunk-UQDJF5RR.cjs');var chunkQSQDP7L2_cjs=require('../chunk-QSQDP7L2.cjs');require('../chunk-Q3NTKN5I.cjs'),require('../chunk-RV2VULM7.cjs'),require('../chunk-UTQUYABU.cjs'),require('../chunk-BEZPD44N.cjs');var chunk26W3VZIK_cjs=require('../chunk-26W3VZIK.cjs');require('../chunk-7YWAQOA4.cjs'),require('../chunk-CII6WWLO.cjs');Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkFWQVTMYA_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkZFDS7W6B_cjs.d}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.c}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.b}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.d}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkXGZ6K753_cjs.a}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkQSQDP7L2_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunk26W3VZIK_cjs.c}});
|