@rzl-zone/utils-js 3.0.1-beta.0 → 3.0.2-beta.2

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.
@@ -0,0 +1 @@
1
+ 'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var A=(t,e,o)=>{if(chunkCN53M4QZ_cjs.h(t)){if(chunk2TRAPBZ7_cjs.a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty string.");t=chunkN2IJPIND_cjs.b(t);}else if(!chunkFIEZKTAZ_cjs.a(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with current value: \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);if(!chunkCN53M4QZ_cjs.k(o)&&(chunk62HX5Z45_cjs.a(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>chunkCN53M4QZ_cjs.p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!chunkCN53M4QZ_cjs.k(e)&&!chunkCN53M4QZ_cjs.b(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);let r=new URL(t);if(!chunkCN53M4QZ_cjs.k(e)){let n=Object.fromEntries(e);if(!chunkUUPQI6ND_cjs.a(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!chunkCN53M4QZ_cjs.p(f)&&!chunkCN53M4QZ_cjs.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: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);i.set(s,String(f));}o?.length&&chunkTC4VBE4Y_cjs.e(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw chunkCN53M4QZ_cjs.D(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!chunkCN53M4QZ_cjs.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};exports.a=A;exports.b=C;
@@ -0,0 +1,4 @@
1
+ 'use strict';var chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');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,e=null,t={})=>{let o=[];!chunkCN53M4QZ_cjs.h(r)&&!chunkCN53M4QZ_cjs.d(r)&&o.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`),!chunkCN53M4QZ_cjs.h(e)&&!chunkCN53M4QZ_cjs.d(e)&&!chunkCN53M4QZ_cjs.g(e)&&o.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`.`),chunkCN53M4QZ_cjs.f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${chunkCN53M4QZ_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: \`${chunkCN53M4QZ_cjs.E(m)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(m)}\`.`),chunkCN53M4QZ_cjs.a(c)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(c)}\`.`),chunkCN53M4QZ_cjs.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),chunkCN53M4QZ_cjs.d(e)){for(let a of e)if(i.startsWith(s(a)))return b(i)}else if(chunkCN53M4QZ_cjs.p(e)&&i.startsWith(s(e)))return b(i);return null}return b(i)}if(chunkCN53M4QZ_cjs.d(r)){let i=r.map(w).filter(z=>!chunkCN53M4QZ_cjs.g(z)),a=c?[...new Set(i)]:i;return a.length===1?a[0]:a}return w(r)},H=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(chunkCN53M4QZ_cjs.d(r)){if(!r.every(t=>chunkCN53M4QZ_cjs.h(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(chunkCN53M4QZ_cjs.h(r)){let t=s(r);return t!=="/"?t:s(e)}if(!chunkCN53M4QZ_cjs.g(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(!chunkCN53M4QZ_cjs.p(r))return e;try{if(r=chunkN2IJPIND_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=chunkCN53M4QZ_cjs.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(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"prefixColon")?e.prefixColon:false;if(!chunkCN53M4QZ_cjs.a(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`.`);let o=r.replace(/\D+/g,"");return chunk2TRAPBZ7_cjs.a(o)?"":t?`:${o}`:o};
4
+ exports.a=G;exports.b=H;exports.c=s;exports.d=_;
@@ -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
+ 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};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkFSSV24W7_cjs=require('./chunk-FSSV24W7.cjs'),chunkBYZAD3XN_cjs=require('./chunk-BYZAD3XN.cjs'),chunk7NA6DUHR_cjs=require('./chunk-7NA6DUHR.cjs'),chunkCEFYHEM4_cjs=require('./chunk-CEFYHEM4.cjs'),chunkTUXDINHF_cjs=require('./chunk-TUXDINHF.cjs'),chunkMY7BA4GI_cjs=require('./chunk-MY7BA4GI.cjs'),chunkKBKYG3IY_cjs=require('./chunk-KBKYG3IY.cjs'),chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkI4AVNHPA_cjs=require('./chunk-I4AVNHPA.cjs'),chunkMBDWTK54_cjs=require('./chunk-MBDWTK54.cjs'),chunkGRVZXQXL_cjs=require('./chunk-GRVZXQXL.cjs'),chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs');require('./chunk-MMSYCIJ2.cjs');var chunkGQE4OVHC_cjs=require('./chunk-GQE4OVHC.cjs'),chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkZBSIGJFO_cjs=require('./chunk-ZBSIGJFO.cjs'),chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkQQYAUPSK_cjs=require('./chunk-QQYAUPSK.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkX3GTRVVK_cjs=require('./chunk-X3GTRVVK.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'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"findDuplicates",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.a}});Object.defineProperty(exports,"omitKeys",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.b}});Object.defineProperty(exports,"omitKeysDeep",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.c}});Object.defineProperty(exports,"omitProps",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.d}});Object.defineProperty(exports,"extractFileName",{enumerable:true,get:function(){return chunkBYZAD3XN_cjs.a}});Object.defineProperty(exports,"areArraysEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.a}});Object.defineProperty(exports,"areObjectsEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.b}});Object.defineProperty(exports,"areURLsEqualPath",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.c}});Object.defineProperty(exports,"areURLsIdentical",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.d}});Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.h}});Object.defineProperty(exports,"doesKeyExist",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.g}});Object.defineProperty(exports,"isArguments",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.i}});Object.defineProperty(exports,"isArrayLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.k}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.l}});Object.defineProperty(exports,"isCurrencyLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.m}});Object.defineProperty(exports,"isDeepEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.n}});Object.defineProperty(exports,"isElement",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.o}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.p}});Object.defineProperty(exports,"isEmptyDeep",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.q}});Object.defineProperty(exports,"isEqualWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.r}});Object.defineProperty(exports,"isLength",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.j}});Object.defineProperty(exports,"isMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.t}});Object.defineProperty(exports,"isMatchWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.s}});Object.defineProperty(exports,"isNative",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.u}});Object.defineProperty(exports,"isObjectLoose",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.v}});Object.defineProperty(exports,"isSafeInteger",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.w}});Object.defineProperty(exports,"isValidURL",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.x}});Object.defineProperty(exports,"isWeakMap",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.y}});Object.defineProperty(exports,"textContainsAll",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.e}});Object.defineProperty(exports,"textContainsAny",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.f}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkCEFYHEM4_cjs.a}});Object.defineProperty(exports,"getInitialsName",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.b}});Object.defineProperty(exports,"replaceAt",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.a}});Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkMY7BA4GI_cjs.a}});Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.b}});Object.defineProperty(exports,"isURL",{enumerable:true,get:function(){return chunkFIEZKTAZ_cjs.a}});Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.b}});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,"isNonEmptyValue",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.a}});Object.defineProperty(exports,"isTypedArray",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.b}});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,"isEmptyValue",{enumerable:true,get:function(){return chunkUUPQI6ND_cjs.a}});Object.defineProperty(exports,"isArrayBuffer",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.b}});Object.defineProperty(exports,"isEmptyArray",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.e}});Object.defineProperty(exports,"isEmptyObject",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.f}});Object.defineProperty(exports,"isEqual",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.d}});Object.defineProperty(exports,"isRegExp",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.a}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunk62HX5Z45_cjs.a}});Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.d}});Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});Object.defineProperty(exports,"censorEmail",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.h}});Object.defineProperty(exports,"chunkString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.i}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.a}});Object.defineProperty(exports,"formatDateFns",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.f}});Object.defineProperty(exports,"formatDateIntl",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.e}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.d}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.b}});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.c}});Object.defineProperty(exports,"getGMTOffset",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.g}});Object.defineProperty(exports,"truncateString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.j}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkJWHM3WZQ_cjs.a}});Object.defineProperty(exports,"isFinite",{enumerable:true,get:function(){return chunkFDITZ5C6_cjs.a}});Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.c}});Object.defineProperty(exports,"normalizeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.a}});Object.defineProperty(exports,"normalizeString",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.b}});Object.defineProperty(exports,"removeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.c}});Object.defineProperty(exports,"stripHtmlTags",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.d}});Object.defineProperty(exports,"isEmptyString",{enumerable:true,get:function(){return chunk2TRAPBZ7_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBVPMMWDL_cjs.a}});Object.defineProperty(exports,"isInteger",{enumerable:true,get:function(){return chunkPUQXRLZH_cjs.a}});Object.defineProperty(exports,"isDate",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.b}});Object.defineProperty(exports,"isMap",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.c}});Object.defineProperty(exports,"isBigInt",{enumerable:true,get:function(){return chunk7YWAQOA4_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.m}});Object.defineProperty(exports,"capitalizeFirst",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.s}});Object.defineProperty(exports,"capitalizeWords",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.t}});Object.defineProperty(exports,"getPreciseType",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.E}});Object.defineProperty(exports,"hasOwnProp",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.o}});Object.defineProperty(exports,"isArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.d}});Object.defineProperty(exports,"isBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.a}});Object.defineProperty(exports,"isBuffer",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.C}});Object.defineProperty(exports,"isError",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.D}});Object.defineProperty(exports,"isFunction",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.b}});Object.defineProperty(exports,"isNaN",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.n}});Object.defineProperty(exports,"isNil",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.c}});Object.defineProperty(exports,"isNonEmptyArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.r}});Object.defineProperty(exports,"isNonEmptyString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.p}});Object.defineProperty(exports,"isNull",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.g}});Object.defineProperty(exports,"isNumber",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.i}});Object.defineProperty(exports,"isObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.e}});Object.defineProperty(exports,"isObjectOrArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.l}});Object.defineProperty(exports,"isPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.f}});Object.defineProperty(exports,"isSet",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.q}});Object.defineProperty(exports,"isString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.h}});Object.defineProperty(exports,"isSymbol",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.j}});Object.defineProperty(exports,"isUndefined",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.k}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.B}});Object.defineProperty(exports,"toCamelCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.u}});Object.defineProperty(exports,"toDotCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.A}});Object.defineProperty(exports,"toKebabCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.y}});Object.defineProperty(exports,"toLowerCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.x}});Object.defineProperty(exports,"toPascalCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.w}});Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.v}});Object.defineProperty(exports,"toSnakeCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.z}});
1
+ 'use strict';var chunkFSSV24W7_cjs=require('./chunk-FSSV24W7.cjs'),chunkBYZAD3XN_cjs=require('./chunk-BYZAD3XN.cjs'),chunk7NA6DUHR_cjs=require('./chunk-7NA6DUHR.cjs'),chunkCEFYHEM4_cjs=require('./chunk-CEFYHEM4.cjs'),chunkTUXDINHF_cjs=require('./chunk-TUXDINHF.cjs'),chunkMY7BA4GI_cjs=require('./chunk-MY7BA4GI.cjs'),chunk3D74QO5D_cjs=require('./chunk-3D74QO5D.cjs'),chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkI4AVNHPA_cjs=require('./chunk-I4AVNHPA.cjs'),chunkMBDWTK54_cjs=require('./chunk-MBDWTK54.cjs'),chunkGRVZXQXL_cjs=require('./chunk-GRVZXQXL.cjs'),chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs');require('./chunk-MMSYCIJ2.cjs');var chunkGQE4OVHC_cjs=require('./chunk-GQE4OVHC.cjs'),chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkZBSIGJFO_cjs=require('./chunk-ZBSIGJFO.cjs'),chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkQQYAUPSK_cjs=require('./chunk-QQYAUPSK.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunk5JFV3GDE_cjs=require('./chunk-5JFV3GDE.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'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"findDuplicates",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.a}});Object.defineProperty(exports,"omitKeys",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.b}});Object.defineProperty(exports,"omitKeysDeep",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.c}});Object.defineProperty(exports,"omitProps",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.d}});Object.defineProperty(exports,"extractFileName",{enumerable:true,get:function(){return chunkBYZAD3XN_cjs.a}});Object.defineProperty(exports,"areArraysEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.a}});Object.defineProperty(exports,"areObjectsEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.b}});Object.defineProperty(exports,"areURLsEqualPath",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.c}});Object.defineProperty(exports,"areURLsIdentical",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.d}});Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.h}});Object.defineProperty(exports,"doesKeyExist",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.g}});Object.defineProperty(exports,"isArguments",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.i}});Object.defineProperty(exports,"isArrayLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.k}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.l}});Object.defineProperty(exports,"isCurrencyLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.m}});Object.defineProperty(exports,"isDeepEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.n}});Object.defineProperty(exports,"isElement",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.o}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.p}});Object.defineProperty(exports,"isEmptyDeep",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.q}});Object.defineProperty(exports,"isEqualWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.r}});Object.defineProperty(exports,"isLength",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.j}});Object.defineProperty(exports,"isMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.t}});Object.defineProperty(exports,"isMatchWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.s}});Object.defineProperty(exports,"isNative",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.u}});Object.defineProperty(exports,"isObjectLoose",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.v}});Object.defineProperty(exports,"isSafeInteger",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.w}});Object.defineProperty(exports,"isValidURL",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.x}});Object.defineProperty(exports,"isWeakMap",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.y}});Object.defineProperty(exports,"textContainsAll",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.e}});Object.defineProperty(exports,"textContainsAny",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.f}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkCEFYHEM4_cjs.a}});Object.defineProperty(exports,"getInitialsName",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.b}});Object.defineProperty(exports,"replaceAt",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.a}});Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkMY7BA4GI_cjs.a}});Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunk3D74QO5D_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunk3D74QO5D_cjs.b}});Object.defineProperty(exports,"isURL",{enumerable:true,get:function(){return chunkFIEZKTAZ_cjs.a}});Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.b}});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,"isNonEmptyValue",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.a}});Object.defineProperty(exports,"isTypedArray",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.b}});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,"isEmptyValue",{enumerable:true,get:function(){return chunkUUPQI6ND_cjs.a}});Object.defineProperty(exports,"isArrayBuffer",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.b}});Object.defineProperty(exports,"isEmptyArray",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.e}});Object.defineProperty(exports,"isEmptyObject",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.f}});Object.defineProperty(exports,"isEqual",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.d}});Object.defineProperty(exports,"isRegExp",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.a}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunk62HX5Z45_cjs.a}});Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.d}});Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});Object.defineProperty(exports,"censorEmail",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.h}});Object.defineProperty(exports,"chunkString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.i}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.a}});Object.defineProperty(exports,"formatDateFns",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.f}});Object.defineProperty(exports,"formatDateIntl",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.e}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.d}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.b}});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.c}});Object.defineProperty(exports,"getGMTOffset",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.g}});Object.defineProperty(exports,"truncateString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.j}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkJWHM3WZQ_cjs.a}});Object.defineProperty(exports,"isFinite",{enumerable:true,get:function(){return chunkFDITZ5C6_cjs.a}});Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.c}});Object.defineProperty(exports,"normalizeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.a}});Object.defineProperty(exports,"normalizeString",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.b}});Object.defineProperty(exports,"removeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.c}});Object.defineProperty(exports,"stripHtmlTags",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.d}});Object.defineProperty(exports,"isEmptyString",{enumerable:true,get:function(){return chunk2TRAPBZ7_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBVPMMWDL_cjs.a}});Object.defineProperty(exports,"isInteger",{enumerable:true,get:function(){return chunkPUQXRLZH_cjs.a}});Object.defineProperty(exports,"isDate",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.b}});Object.defineProperty(exports,"isMap",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.c}});Object.defineProperty(exports,"isBigInt",{enumerable:true,get:function(){return chunk7YWAQOA4_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.m}});Object.defineProperty(exports,"capitalizeFirst",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.s}});Object.defineProperty(exports,"capitalizeWords",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.t}});Object.defineProperty(exports,"getPreciseType",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.E}});Object.defineProperty(exports,"hasOwnProp",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.o}});Object.defineProperty(exports,"isArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.d}});Object.defineProperty(exports,"isBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.a}});Object.defineProperty(exports,"isBuffer",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.C}});Object.defineProperty(exports,"isError",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.D}});Object.defineProperty(exports,"isFunction",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.b}});Object.defineProperty(exports,"isNaN",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.n}});Object.defineProperty(exports,"isNil",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.c}});Object.defineProperty(exports,"isNonEmptyArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.r}});Object.defineProperty(exports,"isNonEmptyString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.p}});Object.defineProperty(exports,"isNull",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.g}});Object.defineProperty(exports,"isNumber",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.i}});Object.defineProperty(exports,"isObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.e}});Object.defineProperty(exports,"isObjectOrArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.l}});Object.defineProperty(exports,"isPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.f}});Object.defineProperty(exports,"isSet",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.q}});Object.defineProperty(exports,"isString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.h}});Object.defineProperty(exports,"isSymbol",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.j}});Object.defineProperty(exports,"isUndefined",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.k}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.B}});Object.defineProperty(exports,"toCamelCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.u}});Object.defineProperty(exports,"toDotCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.A}});Object.defineProperty(exports,"toKebabCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.y}});Object.defineProperty(exports,"toLowerCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.x}});Object.defineProperty(exports,"toPascalCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.w}});Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.v}});Object.defineProperty(exports,"toSnakeCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.z}});
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{a as findDuplicates,b as omitKeys,c as omitKeysDeep,d as omitProps}from'./chunk-GCGU2WB7.js';export{a as extractFileName}from'./chunk-EXZ47NOW.js';export{a as areArraysEqual,b as areObjectsEqual,c as areURLsEqualPath,d as areURLsIdentical,h as arrayHasAnyMatch,g as doesKeyExist,i as isArguments,k as isArrayLike,l as isArrayLikeObject,m as isCurrencyLike,n as isDeepEqual,o as isElement,p as isEmpty,q as isEmptyDeep,r as isEqualWith,j as isLength,t as isMatch,s as isMatchWith,u as isNative,v as isObjectLoose,w as isSafeInteger,x as isValidURL,y as isWeakMap,e as textContainsAll,f as textContainsAny}from'./chunk-4DK3RCC4.js';export{a as delay}from'./chunk-E5NUI7PN.js';export{b as getInitialsName,a as replaceAt}from'./chunk-LVKAYEZ4.js';export{a as shouldForwardProp}from'./chunk-FF76ISQ2.js';export{a as constructURL,b as extractURLs}from'./chunk-POCPQYZS.js';export{a as isURL}from'./chunk-NNM7QCNB.js';export{a as assertIsBigInt,b as assertIsNumber}from'./chunk-55CZALRS.js';export{f as convertType,g as removeObjectPaths,b as toBooleanContent,c as toBooleanContentDeep,d as toBooleanExplicit,e as toBooleanLoose,a as toNumberArrayUnRecursive,h as toNumberDeep,i as toStringDeep}from'./chunk-VYCGZ2S6.js';export{b as cleanParsedData,a as extractDigits,c as parseCustomDate,d as safeJsonParse}from'./chunk-PVJF2JHM.js';export{a as isNonEmptyValue,b as isTypedArray}from'./chunk-DGH75GJD.js';export{d as dedupeArray,b as filterNilArray,c as filterNullArray,e as toStringArrayUnRecursive,a as toStringDeepForce}from'./chunk-WHAVUFEU.js';export{a as isEmptyValue}from'./chunk-ZYAML74V.js';export{b as isArrayBuffer,e as isEmptyArray,f as isEmptyObject,d as isEqual,a as isRegExp}from'./chunk-W5EDKJK3.js';export{a as assertIsArray}from'./chunk-QFCGBBSY.js';import'./chunk-G5LXIEFO.js';export{a as disableUserInteraction,b as enableUserInteraction,c as removeElementFocus,d as scrollToTop}from'./chunk-RN3TP3S3.js';export{a as isServer}from'./chunk-56QBKKRE.js';export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'./chunk-XE27XPJR.js';export{a as parseCurrencyString}from'./chunk-XH6MCRLP.js';export{a as isFinite}from'./chunk-4JOQ45HL.js';export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'./chunk-QCFXEUKL.js';export{a as noop}from'./chunk-SYJC7UAW.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'./chunk-YEERJDOF.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'./chunk-GECI2YBP.js';export{a as isEmptyString}from'./chunk-NIMNTEGV.js';export{a as assertIsString}from'./chunk-XVB3ZZEB.js';export{a as isInteger}from'./chunk-ELDDNERR.js';export{b as isDate,a as isMap,c as safeStableStringify}from'./chunk-MNGGDB2G.js';export{a as isBigInt}from'./chunk-5SZUSNGZ.js';export{G as assertIsBoolean,m as assertIsPlainObject,s as capitalizeFirst,t as capitalizeWords,E as getPreciseType,o as hasOwnProp,d as isArray,a as isBoolean,C as isBuffer,D as isError,b as isFunction,n as isNaN,c as isNil,r as isNonEmptyArray,p as isNonEmptyString,g as isNull,i as isNumber,e as isObject,l as isObjectOrArray,f as isPlainObject,q as isSet,h as isString,j as isSymbol,k as isUndefined,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'./chunk-XCFIOTCV.js';
1
+ export{a as findDuplicates,b as omitKeys,c as omitKeysDeep,d as omitProps}from'./chunk-GCGU2WB7.js';export{a as extractFileName}from'./chunk-EXZ47NOW.js';export{a as areArraysEqual,b as areObjectsEqual,c as areURLsEqualPath,d as areURLsIdentical,h as arrayHasAnyMatch,g as doesKeyExist,i as isArguments,k as isArrayLike,l as isArrayLikeObject,m as isCurrencyLike,n as isDeepEqual,o as isElement,p as isEmpty,q as isEmptyDeep,r as isEqualWith,j as isLength,t as isMatch,s as isMatchWith,u as isNative,v as isObjectLoose,w as isSafeInteger,x as isValidURL,y as isWeakMap,e as textContainsAll,f as textContainsAny}from'./chunk-4DK3RCC4.js';export{a as delay}from'./chunk-E5NUI7PN.js';export{b as getInitialsName,a as replaceAt}from'./chunk-LVKAYEZ4.js';export{a as shouldForwardProp}from'./chunk-FF76ISQ2.js';export{a as constructURL,b as extractURLs}from'./chunk-L54ZPSYJ.js';export{a as isURL}from'./chunk-NNM7QCNB.js';export{a as assertIsBigInt,b as assertIsNumber}from'./chunk-55CZALRS.js';export{f as convertType,g as removeObjectPaths,b as toBooleanContent,c as toBooleanContentDeep,d as toBooleanExplicit,e as toBooleanLoose,a as toNumberArrayUnRecursive,h as toNumberDeep,i as toStringDeep}from'./chunk-VYCGZ2S6.js';export{b as cleanParsedData,a as extractDigits,c as parseCustomDate,d as safeJsonParse}from'./chunk-PVJF2JHM.js';export{a as isNonEmptyValue,b as isTypedArray}from'./chunk-DGH75GJD.js';export{d as dedupeArray,b as filterNilArray,c as filterNullArray,e as toStringArrayUnRecursive,a as toStringDeepForce}from'./chunk-WHAVUFEU.js';export{a as isEmptyValue}from'./chunk-ZYAML74V.js';export{b as isArrayBuffer,e as isEmptyArray,f as isEmptyObject,d as isEqual,a as isRegExp}from'./chunk-W5EDKJK3.js';export{a as assertIsArray}from'./chunk-QFCGBBSY.js';import'./chunk-G5LXIEFO.js';export{a as disableUserInteraction,b as enableUserInteraction,c as removeElementFocus,d as scrollToTop}from'./chunk-RN3TP3S3.js';export{a as isServer}from'./chunk-56QBKKRE.js';export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'./chunk-XE27XPJR.js';export{a as parseCurrencyString}from'./chunk-XH6MCRLP.js';export{a as isFinite}from'./chunk-4JOQ45HL.js';export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'./chunk-QCFXEUKL.js';export{a as noop}from'./chunk-SYJC7UAW.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'./chunk-JFRL7NKU.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'./chunk-GECI2YBP.js';export{a as isEmptyString}from'./chunk-NIMNTEGV.js';export{a as assertIsString}from'./chunk-XVB3ZZEB.js';export{a as isInteger}from'./chunk-ELDDNERR.js';export{b as isDate,a as isMap,c as safeStableStringify}from'./chunk-MNGGDB2G.js';export{a as isBigInt}from'./chunk-5SZUSNGZ.js';export{G as assertIsBoolean,m as assertIsPlainObject,s as capitalizeFirst,t as capitalizeWords,E as getPreciseType,o as hasOwnProp,d as isArray,a as isBoolean,C as isBuffer,D as isError,b as isFunction,n as isNaN,c as isNil,r as isNonEmptyArray,p as isNonEmptyString,g as isNull,i as isNumber,e as isObject,l as isObjectOrArray,f as isPlainObject,q as isSet,h as isString,j as isSymbol,k as isUndefined,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'./chunk-XCFIOTCV.js';
@@ -1,8 +1,8 @@
1
- 'use strict';var chunkX3GTRVVK_cjs=require('../chunk-X3GTRVVK.cjs'),chunkN2IJPIND_cjs=require('../chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('../chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('../chunk-BVPMMWDL.cjs');require('../chunk-PUQXRLZH.cjs');var chunkU5Y2FXMN_cjs=require('../chunk-U5Y2FXMN.cjs');require('../chunk-7YWAQOA4.cjs');var chunkCN53M4QZ_cjs=require('../chunk-CN53M4QZ.cjs');function C(e,t){if(!chunkCN53M4QZ_cjs.h(e)||chunk2TRAPBZ7_cjs.a(e))throw new TypeError(`\u274C 'generateRoute' Failed:
1
+ 'use strict';var chunk5JFV3GDE_cjs=require('../chunk-5JFV3GDE.cjs'),chunkN2IJPIND_cjs=require('../chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('../chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('../chunk-BVPMMWDL.cjs');require('../chunk-PUQXRLZH.cjs');var chunkU5Y2FXMN_cjs=require('../chunk-U5Y2FXMN.cjs');require('../chunk-7YWAQOA4.cjs');var chunkCN53M4QZ_cjs=require('../chunk-CN53M4QZ.cjs');function C(e,t){if(!chunkCN53M4QZ_cjs.h(e)||chunk2TRAPBZ7_cjs.a(e))throw new TypeError(`\u274C 'generateRoute' Failed:
2
2
  - Invalid 'route' value.
3
3
  - Must be of type \`string\` and non-empty string, but received: "${chunkCN53M4QZ_cjs.E(e)}": \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(chunkCN53M4QZ_cjs.m(t,{message:({validType:o})=>`\u274C 'generateRoute' Failed cause in route "${e}":
4
4
  - Missing or invalid parameters \`${o}\` for route: "${e}", must be of type \`${o}\` mapping parameters.`}),chunkCN53M4QZ_cjs.c(t))throw new TypeError(`\u274C 'generateRoute' Failed cause in route "${e}":
5
5
  - Missing parameters \`plain-object\` for route: "${e}".`);let n=["?","&","#","=","/","'",'"',"(",")","+",";","%","@",":"],r=[],s=Array.from(e.matchAll(/\[(\w+)\]/g)).map(o=>o[1]);for(let o of s){let i=t[o];if(!chunkCN53M4QZ_cjs.h(i)){r.push(`- Invalid parameter: "${o}" must be of type \`string\`, but received: \`${chunkCN53M4QZ_cjs.E(i)}\`.`);continue}if(chunk2TRAPBZ7_cjs.a(i)){r.push(`- Parameter "${o}" cannot be empty string.`);continue}let p=n.filter(g=>i.includes(g));if(/\s/.test(i)&&p.push("white-space(s)"),p.length>0){let g=p.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);n.includes("white-space(s)")||n.push("white-space(s)");let c=n.map(a=>a==="`"?"backtick - (`)":`\`${a}\``);r.push(`- Parameter "${o}" contains invalid characters (${g.join(", ")}). These characters are not allowed because they could cause issues in URL structure. The following characters are forbidden in route parameters: (${c.join(", ")}).`);}}if(chunkCN53M4QZ_cjs.r(r))throw new Error(`\u274C 'generateRoute' Failed cause in route "${e}":
6
6
  ${r.join(`
7
- `)}.`);return e.replace(/\[(\w+)\]/g,(o,i)=>(chunkCN53M4QZ_cjs.p(t[i])?t[i]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")}var M=(e="",t)=>{try{let p=function(c,a){return `${c.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`};var n=p;chunkBVPMMWDL_cjs.a(e,{message({currentType:c,validType:a}){return `First parameter \`pathname\` must be of type \`${a}\`, but received: \`${c}\`.`}}),chunkCN53M4QZ_cjs.f(t)||(t={});let{prefix:r="/api",withOrigin:s=!0}=t;if(!chunkCN53M4QZ_cjs.k(r)&&!chunkCN53M4QZ_cjs.h(r))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ${chunkCN53M4QZ_cjs.E(r)}.`);chunkCN53M4QZ_cjs.G(s,{message:({currentType:c,validType:a})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${c}\`.`}),e=chunkX3GTRVVK_cjs.c(e),r=chunkX3GTRVVK_cjs.c(r);let o=r.endsWith("/")?r:r+"/";(e===r||e===r+"/"||e.startsWith(o))&&(e=e.slice(r.length),e=chunkX3GTRVVK_cjs.c(e));let i=U({suffix:r});return p(s?i:new URL(i).pathname,e).replace(/\/+$/,"")}catch(r){throw new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error:"+r)}};var U=({suffix:e="/"}={})=>{chunkBVPMMWDL_cjs.a(e,{message({currentType:t,validType:n}){return `Parameter \`suffix\` property of the first parameter must be of type \`${n}\`, but received: \`${t}\`.`}});try{let t=process.env.NEXT_PUBLIC_BACKEND_API_URL?.trim();if(t){t=chunkN2IJPIND_cjs.c(t);let s=new URL(t);!!!s.port&&process.env.NEXT_PUBLIC_PORT_BE&&(t=s.origin+chunkX3GTRVVK_cjs.d(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}));}else t="http://localhost"+chunkX3GTRVVK_cjs.d(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});e=chunkN2IJPIND_cjs.c(e).length?chunkN2IJPIND_cjs.c(e):"/";let n=new URL(t.replace(/\/+$/,"")).origin,r=e==="/"?"/":`${e.startsWith("/")?"":"/"}${e.replace(/\/+$/,"")}`;return `${n}${r}`}catch(t){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+t)}};var Z=()=>{try{let e=process.env.NEXT_PUBLIC_BASE_URL?.trim(),t=process.env.NEXT_PUBLIC_PORT_FE?.trim(),n=e||"http://localhost";n=chunkN2IJPIND_cjs.c(n).replace(/\/+$/,"");let r=/:\/\/[^/]+:\d+/.test(n);!r&&t?n+=chunkX3GTRVVK_cjs.d(t,{prefixColon:!0}):!r&&!e&&(n+=":3000");let s=new URL(n);return `${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}};
7
+ `)}.`);return e.replace(/\[(\w+)\]/g,(o,i)=>(chunkCN53M4QZ_cjs.p(t[i])?t[i]:"").trim().replace(/^\/+|\/+$/g,"")).replace(/\/+/g,"/")}var M=(e="",t)=>{try{let p=function(c,a){return `${c.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`};var n=p;chunkBVPMMWDL_cjs.a(e,{message({currentType:c,validType:a}){return `First parameter \`pathname\` must be of type \`${a}\`, but received: \`${c}\`.`}}),chunkCN53M4QZ_cjs.f(t)||(t={});let{prefix:r="/api",withOrigin:s=!0}=t;if(!chunkCN53M4QZ_cjs.k(r)&&!chunkCN53M4QZ_cjs.h(r))throw new TypeError(`Parameter \`prefix\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ${chunkCN53M4QZ_cjs.E(r)}.`);chunkCN53M4QZ_cjs.G(s,{message:({currentType:c,validType:a})=>`Parameter \`withOrigin\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${c}\`.`}),e=chunk5JFV3GDE_cjs.c(e),r=chunk5JFV3GDE_cjs.c(r);let o=r.endsWith("/")?r:r+"/";(e===r||e===r+"/"||e.startsWith(o))&&(e=e.slice(r.length),e=chunk5JFV3GDE_cjs.c(e));let i=U({suffix:r});return p(s?i:new URL(i).pathname,e).replace(/\/+$/,"")}catch(r){throw new Error("Failed to generate backend API URL in `createBeApiUrl()`, Error:"+r)}};var U=({suffix:e="/"}={})=>{chunkBVPMMWDL_cjs.a(e,{message({currentType:t,validType:n}){return `Parameter \`suffix\` property of the first parameter must be of type \`${n}\`, but received: \`${t}\`.`}});try{let t=process.env.NEXT_PUBLIC_BACKEND_API_URL?.trim();if(t){t=chunkN2IJPIND_cjs.c(t);let s=new URL(t);!!!s.port&&process.env.NEXT_PUBLIC_PORT_BE&&(t=s.origin+chunk5JFV3GDE_cjs.d(process.env.NEXT_PUBLIC_PORT_BE,{prefixColon:!0}));}else t="http://localhost"+chunk5JFV3GDE_cjs.d(process.env.NEXT_PUBLIC_PORT_BE||"8000",{prefixColon:!0});e=chunkN2IJPIND_cjs.c(e).length?chunkN2IJPIND_cjs.c(e):"/";let n=new URL(t.replace(/\/+$/,"")).origin,r=e==="/"?"/":`${e.startsWith("/")?"":"/"}${e.replace(/\/+$/,"")}`;return `${n}${r}`}catch(t){throw new Error("Invalid `NEXT_PUBLIC_BACKEND_API_URL`, failed to generate from `getBeApiUrl()`, Error:"+t)}};var Z=()=>{try{let e=process.env.NEXT_PUBLIC_BASE_URL?.trim(),t=process.env.NEXT_PUBLIC_PORT_FE?.trim(),n=e||"http://localhost";n=chunkN2IJPIND_cjs.c(n).replace(/\/+$/,"");let r=/:\/\/[^/]+:\d+/.test(n);!r&&t?n+=chunk5JFV3GDE_cjs.d(t,{prefixColon:!0}):!r&&!e&&(n+=":3000");let s=new URL(n);return `${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}`}catch(e){throw new Error("Invalid `NEXT_PUBLIC_BASE_URL`, failed to generate from `getBaseUrl()`, Error:"+e)}};
8
8
  exports.createBeApiUrl=M;exports.generateRoute=C;exports.getBaseUrl=Z;exports.getBeApiUrl=U;
@@ -1,4 +1,4 @@
1
- import {c as c$2,d}from'../chunk-YEERJDOF.js';import {c as c$3}from'../chunk-GECI2YBP.js';import {a}from'../chunk-NIMNTEGV.js';import {a as a$1}from'../chunk-XVB3ZZEB.js';import'../chunk-ELDDNERR.js';import {c}from'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import {h,E,m,c as c$1,r,p,f,k,G}from'../chunk-XCFIOTCV.js';function C(e,t){if(!h(e)||a(e))throw new TypeError(`\u274C 'generateRoute' Failed:
1
+ import {c as c$2,d}from'../chunk-JFRL7NKU.js';import {c as c$3}from'../chunk-GECI2YBP.js';import {a}from'../chunk-NIMNTEGV.js';import {a as a$1}from'../chunk-XVB3ZZEB.js';import'../chunk-ELDDNERR.js';import {c}from'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import {h,E,m,c as c$1,r,p,f,k,G}from'../chunk-XCFIOTCV.js';function C(e,t){if(!h(e)||a(e))throw new TypeError(`\u274C 'generateRoute' Failed:
2
2
  - Invalid 'route' value.
3
3
  - Must be of type \`string\` and non-empty string, but received: "${E(e)}": \`${c(e)}\`.`);if(!/[\\[\]]/.test(e))return e;if(m(t,{message:({validType:o})=>`\u274C 'generateRoute' Failed cause in route "${e}":
4
4
  - Missing or invalid parameters \`${o}\` for route: "${e}", must be of type \`${o}\` mapping parameters.`}),c$1(t))throw new TypeError(`\u274C 'generateRoute' Failed cause in route "${e}":
@@ -1,4 +1,4 @@
1
- var RzlUtilsJs=(function(exports){'use strict';var w=r=>typeof r=="boolean";var W=r=>typeof r=="function";function U(r){return r==null}function d(r){return Array.isArray(r)}function H(r){return typeof r=="object"&&!U(r)&&!d(r)}function O(r){if(!H(r))return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}var _=r=>r===null;var l=r=>typeof r=="string";var P=(r,e={})=>{let t=O(e)&&w(e.includeNaN)?e.includeNaN:false,n=typeof r=="number";return t?n:n&&!Number.isNaN(r)};var ee=r=>typeof r=="symbol";var N=r=>typeof r>"u";function A(r){return d(r)||H(r)}function F(r,e={}){if(O(r))return;let t=me({value:r,options:e,requiredValidType:"plain object"});throw new TypeError(t)}function I(r){return typeof r=="number"?Number.isNaN(r):Object.prototype.toString.call(r)==="[object Number]"&&Number.isNaN(r.valueOf())}function y(r,e,t={}){if(!l(r)&&!A(r)&&!W(r))return false;F(t,{message:({currentType:s,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${s}\`.`});let n=t.discardUndefined===void 0?true:t.discardUndefined,o=t.discardNull===void 0?false:t.discardNull;q(n,{message:({currentType:s,validType:m})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`}),q(o,{message:({currentType:s,validType:m})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`});let i=[];if(l(e)&&e.trim().length>0||P(e,{includeNaN:true}))(P(e,{includeNaN:true})?String(e):e).split(".").forEach(m=>{let c=m.match(/^\[(\d+)\]$/),u=m.match(/^Symbol\((.+)\)$/);c?i.push(Number(c[1])):u?i.push(Symbol.for(u[1])):I(Number(m))?i.push(m):i.push(Number(m));});else if(ee(e))i.push(e);else return false;let a=l(r)&&r.trim().length>0?Object(r):r;for(let s of i)if(l(s)&&s.trim().length>0||P(s,{includeNaN:true})){if(_(a)||!Object.prototype.hasOwnProperty.call(a,s))return false;a=a[s];}else if(ee(s)){if(_(a)||typeof a!="object"&&!W(a))return false;let c=Object.getOwnPropertySymbols(a).find(u=>u===s||u.description===s.description);if(!c)return false;a=a[c];}else return false;return !(n&&N(a)||o&&_(a))}var b=(r,e={})=>l(r)?(O(e)||(e={}),((y(e,"trim")?e.trim:true)?r.trim():r).length>0):false;function z(r){return Object.prototype.toString.call(r)==="[object Set]"||r instanceof Set}function Q(r){return Array.isArray(r)&&r.length>0}var Ri=(r,e={lowerCaseNextRest:true,trim:false})=>{if(!b(r))return "";O(e)||(e={});let t=e.lowerCaseNextRest!==false;return e.trim===true&&(r=r.trim()),r[0].toUpperCase()+(t?r.slice(1).toLowerCase():r.slice(1))},Ii=(r,e={collapseSpaces:false,trim:false})=>{if(!b(r))return "";let t=r;O(e)||(e={});let n=e.collapseSpaces===true;if(e.trim===true&&(t=t.trim()),n){let i=t.match(/^\s*/)?.[0]??"",a=t.match(/\s*$/)?.[0]??"";t=t.trim().replace(/\s+/g," "),t=`${i}${t}${a}`;}return t.toLowerCase().split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")};var ke=r=>{let e="";return d(r)?e=r.map(t=>b(t)?t.trim():"").filter(t=>t.length).join("-"):b(r)&&(e=r.trim()),e.split(/[^\p{L}\p{N}]+/u).filter(Boolean)};var Pe=r=>{let e=new Set([]),t=n=>n.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(b(r)){let n=t(r);n&&e.add(n);}return Q(r)&&r.forEach(n=>{if(b(n)){let o=t(n);o&&e.add(o);}}),z(r)&&r.forEach(n=>{if(b(n)){let o=t(n);o&&e.add(o);}}),e},et=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map((o,i)=>n.has(o)?o:i===0?o.toLowerCase():o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")},rt=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join(" ")},tt=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")},nt=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join(" ")},Ge=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join("-")},ot=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join("_")},it=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join(".")},st=(r,e)=>{if(!Q(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(i=>n.has(i)?i:i.toLowerCase()).join("-").replace(/^-+|-+$/g,"")};var Ne=r=>typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(r);var oe=r=>Object.prototype.toString.call(r)==="[object Error]"||r instanceof Error;var xe=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),Qe={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 de=r=>r.replace(/[\s_\-]+/g,"").toLowerCase(),be=Object.entries(Qe).reduce((r,[e,t])=>(r[de(e)]=t,r),{});function sn(r){if(typeof r!="object"||r===null)return false;let e=Object.prototype.toString.call(r);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(e))return false;try{return Reflect.defineProperty(r,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(r,"__proxy_detect__"),!1}catch{return true}}var ie=(r,e)=>e==="toPascalCaseSpace"?rt(r,xe):e==="slugify"?st(r,xe):e==="toCamelCase"?et(r,xe):e==="toDotCase"?it(r,xe):e==="toKebabCase"?Ge(r,xe):e==="toPascalCase"?tt(r,xe):e==="toSnakeCase"?ot(r,xe):nt(r,xe),p=(r,e={formatCase:"toLowerCase"})=>{O(e)||(e={});let t=e.formatCase;if(_(r))return ie(be[de("null")]??"Null",t);if(I(r))return "NaN";if(r===1/0)return "Infinity";if(r===-1/0)return "-Infinity";if(r instanceof Number)return ie("Number Constructor",t);if(r instanceof String)return ie("String Constructor",t);if(r instanceof Boolean)return ie("Boolean Constructor",t);let n=typeof r;if(!A(r)&&!W(r))return ie(be[de(n)]??n,t);if(Ne(r))return ie(be[de("buffer")]??"Buffer",t);if(sn(r))return ie(be[de("proxy")]??"Proxy",t);if(H(r)&&W(r?.next)&&W(r?.throw))return ie(be[de("generator")]??"Generator",t);if(oe(r)){let s=r.constructor?.name??"Error";return ie(be[de(s)]??be[de(s.replace(/\s+/g,""))]??s,t)}if(_(Object.getPrototypeOf(r)))return ie(be[de("object")]??"Object",t);let o=Object.prototype.toString.call(r).slice(8,-1)||"Object",i=be[de(o)];if(i)return ie(i,t);let a=r?.constructor?.name;return ie(a&&a!=="Object"?be[de(a)]??a:o,t)};function me({value:r,options:e,requiredValidType:t}){let{message:n,formatCase:o}=O(e)?e:{},i=Ge(t),a=p(r,{formatCase:o}),s={currentType:a,validType:i},m=`Parameter input (\`value\`) must be of type \`${i}\`, but received: \`${a}\`.`;return W(n)?b(n(s))?n(s).trim():m:b(n)?n.trim():m}var q=(r,e={})=>{if(w(r))return;let t=me({value:r,options:e,requiredValidType:"boolean"});throw new TypeError(t)};var ge=r=>typeof r=="bigint";var ms=(r,e={})=>{if(ge(r))return;let t=me({value:r,options:e,requiredValidType:"big int"});throw new TypeError(t)};var ls=(r,e={})=>{let t=y(e,"includeNaN")?e.includeNaN:void 0;if(P(r,{includeNaN:t}))return;let n=me({value:r,options:e,requiredValidType:"number"});throw new TypeError(n)};function Z(r,e){if(d(r))return;let t=me({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}var se=(r,e={})=>{if(l(r))return;let t=me({value:r,options:e,requiredValidType:"string"});throw new TypeError(t)};function X(r){return Object.prototype.toString.call(r)==="[object Map]"||r instanceof Map}var re=r=>r instanceof Date&&!I(r.getTime());var he=r=>r instanceof RegExp;function zr(r){return r instanceof ArrayBuffer}function Re(r,e,t,n=new WeakMap){if(r===e||r!==r&&e!==e)return true;if(!A(r)||!A(e))return false;if(n.get(r)===e)return true;n.set(r,e);let o=(s,m,c,u,f)=>{if(t){let g=t(s,m,c,u,f,n);if(!N(g))return g}return Re(s,m,t,n)};if(re(r)&&re(e))return r.getTime()===e.getTime();if(he(r)&&he(e))return r.source===e.source&&r.flags===e.flags;if(oe(r)&&oe(e))return r.name===e.name&&r.message===e.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(e)){let s=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),m=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(s.length!==m.length)return false;for(let c=0;c<s.length;c++)if(s[c]!==m[c])return false;return true}if(zr(r)&&zr(e)){if(r.byteLength!==e.byteLength)return false;let s=new Uint8Array(r),m=new Uint8Array(e);for(let c=0;c<s.length;c++)if(s[c]!==m[c])return false;return true}if(X(r)&&X(e)){if(r.size!==e.size)return false;for(let[s,m]of r)if(!e.has(s)||!Re(m,e.get(s),t,n))return false;return true}if(z(r)&&z(e)){if(r.size!==e.size)return false;for(let s of r){let m=false;for(let c of e)if(Re(s,c,t,n)){m=true;break}if(!m)return false}return true}if(d(r)&&d(e)){if(r.length!==e.length)return false;for(let s=0;s<r.length;s++)if(!o(r[s],e[s],s,r,e))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(e))return false;let i=Reflect.ownKeys(r),a=Reflect.ownKeys(e);if(i.length!==a.length)return false;for(let s of i){let m=r[s],c=e[s];if(!o(m,c,s,r,e))return false}return true}function we(r,e){return Re(r,e,void 0,new WeakMap)}var B=r=>d(r)?r.length===0:true;var k=(r,e={})=>{F(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=y(e,"sortKeys")?e.sortKeys:true,n=y(e,"sortArray")?e.sortArray:false,o=y(e,"pretty")?e.pretty:false;if(!w(t)||!w(n)||!w(o))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${p(t)}\`, 'sortArray': \`${p(n)}\`, 'pretty': \`${p(o)}\`]".`);let i=new WeakSet,a=m=>_(m)||!A(m)&&!W(m),s=m=>{if(m instanceof Number)return Number(m);if(m instanceof String)return String(m);if(m instanceof Boolean)return !!m;if(!(W(m)||ee(m))){if(ge(m))return m.toString();if(N(m)||I(m)||m===1/0||m===-1/0)return null;if(A(m)){if(i.has(m))return "[Circular]";if(i.add(m),re(m))return m.toISOString();if(X(m))return {map:Array.from(m.entries()).map(([f,g])=>[f,s(g)])};if(z(m))return {set:Array.from(m.values()).map(s)};if(d(m)){let f=m.map(s);if(n){let g=[],T=[];for(let S of f)a(S)?g.push(S):T.push(S);return g.sort((S,j)=>P(S)&&P(j)?S-j:String(S).localeCompare(String(j))),[...g,...T]}return f}let c=Object.keys(m);t&&c.sort((f,g)=>{let T=Number(f),S=Number(g);return !I(T)&&!I(S)?T-S:f.localeCompare(g)});let u={};if(H(m))for(let f of c){let g=s(m[f]);N(g)||(u[f]=g);}return u}return m}};try{return JSON.stringify(s(r),null,o?2:0)}catch(m){return console.warn("Error in safeStableStringify:",m),"{}"}};function Ie(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: \`${p(e)}\`, with value: ${k(e)}.`);if(I(r))return e==="primitives"||e==="all"?"NaN":NaN;if(l(r)||P(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(w(r)||ge(r)||U(r))return e==="primitives"||e==="all"?String(r):r;if(ee(r)||W(r))return e==="all"?r.toString():r;if(d(r))return r.map(t=>Ie(t,e));if(A(r)){if(re(r))return e==="all"?r.toISOString():r;if(he(r)||oe(r)||r instanceof Promise)return e==="all"?r.toString():r;if(z(r))return e==="all"?[...r].map(n=>Ie(n,e)):r;if(X(r))return e==="all"?[...r.entries()].map(([n,o])=>[Ie(n,e),Ie(o,e)]):r;let t={};if(H(r))for(let n of Object.keys(r))t[n]=Ie(r[n],e);return t}return r}function $e(r){return U(r)?void 0:d(r)?r.reduce((t,n)=>{if(!U(n))if(d(n)){let o=$e(n);o&&!B(o)&&t.push(o);}else t.push(n);return t},[]):[]}var $a=$e,Fa=(r,e={})=>{Z(r,{message:({currentType:a,validType:s})=>`First parameter (\`inputArray\`) must be of type \`${s}\` (array literal or instance), but received: \`${a}\`.`}),F(e,{message:({currentType:a,validType:s})=>`Second parameter (\`options\`) must be of type \`${s}\`, but received: \`${a}\`.`});let t=y(e,"flatten")?e.flatten:false,n=y(e,"forceToString")?e.forceToString:false;if(!(n===false||n==="stringOrNumber"||n==="primitives"||n==="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: \`${p(n)}\`, with value: ${k(n)}.`);q(t,{message:({currentType:a,validType:s})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${s}\`, but received: \`${a}\`.`});let o=a=>{let s=[];return a.reduce((m,c)=>{let u=d(c)?o(c):Ie(c,n);return s.some(f=>we(f,u))||(s.push(u),m.push(u)),m},[])},i=a=>d(a)?a.flatMap(i):z(a)?[...a].flatMap(i):X(a)?[...a.values()].flatMap(i):[a];return o(t?i(r):r)};function qa(r,e={}){F(e,{message:({currentType:n,validType:o})=>`Second parameter (\`options\`) must be of type \`${o}\`, but received: \`${n}\`.`});let t=y(e,"removeInvalidValueNumber")?e.removeInvalidValueNumber:true;if(q(t,{message:({currentType:n,validType:o})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${o}\`, but received: \`${n}\`.`}),d(r)){let n=Array.from(r,o=>{if(ge(o))return Number(o);let a=String(o).trim().match(/-?\d+(\.\d+)?/);return a?Number(a[0]):_(o)?null:void 0});return t?$e(n):n}}function ve(r){return P(r)&&Number.isFinite(r)}function at(r,e={}){F(e,{message:({currentType:n,validType:o})=>`Second parameter (\`options\`) must be of type \`${o}\`, but received: \`${n}\`.`});let t=y(e,"removeInvalidValue")?e.removeInvalidValue:true;if(q(t,{message:({currentType:n,validType:o})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${o}\`, but received: \`${n}\`.`}),d(r)){let n=Array.from(r,o=>l(o)||ve(o)||w(o)||ge(o)?String(o):_(o)?null:void 0);return t?$e(n):n}}function Ee(r,e={}){if(!H(r))return true;O(e)||(e={});let t=y(e,"checkSymbols")?e.checkSymbols:false,n=Object.keys(r).length===0;return t?n&&Object.getOwnPropertySymbols(r).length===0:n}var J=(r,e={})=>!b(r,e);var Xe=(r,e={})=>{if(O(e)||(e={}),U(r)||r===false||I(r))return true;if(l(r))return J(r);if(d(r))return B(r);if(H(r)){let t=y(e,"checkSymbols")?e.checkSymbols:false;return Ee(r,{checkSymbols:t})}return false};var mt=(r,e={})=>!Xe(r,e);var Mm=r=>U(r)?false:l(r)?b(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)||H(r)?mt(r):!!r;var ut=r=>U(r)?false:l(r)?b(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)?r.some(ut):H(r)?Object.values(r).some(ut):false;var Xm=(r,e={})=>{if(U(r))return false;O(e)||(e={});let t=y(e,"caseInsensitive")?e.caseInsensitive:false,n=y(e,"trimString")?e.trimString:true,o=y(e,"includeIndeterminate")?e.includeIndeterminate:false;if(!w(t)||!w(n)||!w(o))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${p(t)}\`, 'trimString': \`${p(n)}\`, 'includeIndeterminate': \`${p(o)}\`].`);if(l(r)){let i=r;n&&(i=i.trim()),t&&(i=i.toLowerCase());let a=["true","on","yes","1"];return o&&a.push("indeterminate"),a.includes(i)}return P(r)?r===1:w(r)?r:false};var iu=r=>U(r)?false:l(r)?!J(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)?r.length>0:!!r;var Je=r=>{if(!b(r))return 0;let e=r.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),t=false;/^\(.*\)$/.test(e)&&(t=true,e=e.slice(1,-1).trim()),e=e.replace(/^[-\s]+/,m=>m.includes("-")?"-":"").replace(/[\s.,-]+$/,""),t=t||/^-/.test(e)||/^[^\d]*-/.test(e);let o=e.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),i=o.match(/,\d{2}/g);if(i&&i.length>1)o=o.replace(/,/g,"");else {let m=(o.match(/\./g)||[]).length,c=(o.match(/,/g)||[]).length;if(m>1&&c===0)o=o.replace(/\./g,"");else if(c>1&&m===0)o=o.replace(/,/g,"");else {let u=o.lastIndexOf(","),f=o.lastIndexOf(".");if(u>f)o=o.replace(/\./g,"").replace(",",".");else if(f>u)o=o.replace(/,/g,"");else if(u>f){let g=o.slice(0,u).replace(/,/g,"").replace(/\./g,""),T=o.slice(u+1);o=g+"."+T;}else if(f>u){let g=o.slice(0,f).replace(/\./g,"").replace(/,/g,""),T=o.slice(f+1);o=g+"."+T;}else u!==-1?o=o.replace(/,/g,""):f!==-1&&(o=o.replace(/\./g,""));}}let s=parseFloat(o)||0;return t?-s:s};var pu=r=>{let e={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(l(r)){let t=r.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=t.replace(/,/g,""),o=Number(n);return !I(o)&&b(n)?o:r.trim()}return r};var ct=()=>{};var ft=r=>{if(!l(r)&&!P(r))return 0;let e=String(r).trim().replace(/[^0-9]/g,"");return Number(e)||0};var pt=(r={})=>{F(r,{message:({currentType:S,validType:j})=>`Second parameter (\`options\`) must be of type \`${j}\`, but received: \`${S}\`.`});let e=y(r,"convertBooleans")?r.convertBooleans:false,t=y(r,"convertDates")?r.convertDates:false,n=y(r,"convertNumbers")?r.convertNumbers:false,o=y(r,"loggingOnFail")?r.loggingOnFail:false,i=y(r,"removeEmptyArrays")?r.removeEmptyArrays:false,a=y(r,"removeEmptyObjects")?r.removeEmptyObjects:false,s=y(r,"removeNulls")?r.removeNulls:false,m=y(r,"removeUndefined")?r.removeUndefined:false,c=y(r,"strictMode")?r.strictMode:false,u=y(r,"checkSymbols")?r.checkSymbols:false,f=y(r,"convertNaN")?r.convertNaN:false,g=y(r,"customDateFormats")?r.customDateFormats:[],T=y(r,"onError")?r.onError:ct;if(!(w(e)&&w(t)&&w(n)&&w(f)&&w(u)&&w(o)&&w(i)&&w(a)&&w(s)&&w(m)&&w(c)&&d(g)&&W(T)))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': \`${p(e)}\`, 'convertDates': \`${p(t)}\`, 'convertNumbers': \`${p(n)}\`, 'loggingOnFail': \`${p(o)}\`, 'removeEmptyArrays': \`${p(i)}\`, 'removeEmptyObjects': \`${p(a)}\`, 'removeNulls': \`${p(s)}\`, 'removeUndefined': \`${p(m)}\`, 'strictMode': \`${p(c)}\`, 'customDateFormats': \`${p(g)}\`, 'onError': \`${p(T)}\`].`);return {convertBooleans:e,convertDates:t,convertNumbers:n,convertNaN:f,loggingOnFail:o,removeEmptyArrays:i,removeEmptyObjects:a,removeNulls:s,removeUndefined:m,strictMode:c,customDateFormats:g,onError:T,checkSymbols:u}},Vr=(r,e={})=>{let t=pt(e);if(_(r))return t.removeNulls?void 0:null;if(N(r))return t.removeUndefined,void 0;if(l(r)){let n=r.trim();if(t.convertNaN&&n==="NaN")return NaN;if(t.convertNumbers&&!I(Number(n)))return Number(n);if(t.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(t.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(t.customDateFormats?.length)for(let o of t.customDateFormats){let i=an(n,o);if(i)return i}}return t.strictMode?void 0:n}if(d(r)){let n=r.map(o=>Vr(o,t)).filter(o=>!N(o));return t.removeEmptyArrays&&B(n)?void 0:n}if(H(r)){let n={};for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let i=Vr(r[o],t);N(i)||(n[o]=i);}return t.removeEmptyObjects&&Ee(n,{checkSymbols:t.checkSymbols})?void 0:n}return t.strictMode?void 0:r},an=(r,e)=>{if(!l(r)||!l(e))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${p(r)}\`, 'format': \`${p(e)}\`]".`);let t=r.split(/[-/]/).map(Number);if(t.length!==3||t.some(I))return null;let n,o,i;if(e==="DD/MM/YYYY")[n,o,i]=t;else if(e==="MM/DD/YYYY")[o,n,i]=t;else return null;o-=1;let a=new Date(i,o,n);return a.getFullYear()!==i||a.getMonth()!==o||a.getDate()!==n?null:a};function lt(r,e={}){if(_(r))return null;let t=pt(e);if(t.convertNaN&&(I(r)||b(r)&&r==="NaN"))return NaN;if(t.convertNumbers&&!I(Number(r))&&P(ft(r)))return Number(r);if(l(r))try{let n=mn(r);t.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),t.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 o=JSON.parse(n);return Vr(o,t)}catch(n){t.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),t.onError(oe(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function mn(r){let e=new Set(["\\",'"',"/","b","f","n","r","t","u"]),t="",n=false,o=false,i=false;for(let a=0;a<r.length;a++){let s=r[a];if(i){n?s==="'"?t+="'":e.has(s)?s==="\\"?t+="\\\\":s==='"'?t+='\\"':t+="\\"+s:t+="\\\\"+s:o?s==='"'?t+='\\"':e.has(s)?t+="\\"+s:t+="\\\\"+s:t+="\\"+s,i=false;continue}if(s==="\\"){i=true;continue}if(!n&&!o){if(s==="'"){t+='"',n=true;continue}if(s==='"'){t+='"',o=true;continue}}else if(n){if(s==="'"){t+='"',n=false;continue}}else if(o&&s==='"'){t+='"',o=false;continue}t+=s;}return t}var un=r=>{try{if(W(structuredClone))return structuredClone(r)}catch{}return JSON.parse(JSON.stringify(r))},Gr=(r,e)=>{if(!A(r))return r;let[t,...n]=e;if(d(r))for(let o of r)A(o)&&Gr(o,e);else B(n)?O(r)&&delete r[t]:O(r)&&A(r[t])&&Gr(r[t],n);return r},dt=(r,e)=>{if(!O(r))return r;let[t,...n]=e;return n.length===0?O(r)&&delete r[t]:O(r[t])&&dt(r[t],n),r};function Gu(r,e,t=true){if(Ee(r,{checkSymbols:true}))return {};if(Z(e,{message:({currentType:o,validType:i})=>`Second parameter (\`keysToDelete\`) must be of type \`${i}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${o}\`, with value: ${k(e)}.`}),!e.every(o=>O(o)&&"key"in o))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: ${k(e)}.`);let n=t?un(r):r;for(let{key:o,deep:i}of e){if(se(o,{message:({currentType:s,validType:m})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${m}\`, but received: \`${s}\`.`}),!N(i)&&!w(i))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${o}", deep: ${i}) must be of type \`boolean\` or \`undefined\`, but received: \`${p(i)}\`.`);let a=o.split(".");n=i?Gr(n,a):dt(n,a);}return n}function Fe(r){return r!=null&&typeof r=="object"&&cn.has(Object.prototype.toString.call(r))}var cn=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 gc(r,e={}){F(e,{message:({currentType:i,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${i}\`.`});let t=y(e,"removeEmptyObjects")?e.removeEmptyObjects:false,n=y(e,"removeEmptyArrays")?e.removeEmptyArrays:false;function o(i,a){if(U(i))return;let{removeEmptyArrays:s,removeEmptyObjects:m,isRoot:c}=a;if(!w(m)||!w(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p(m)}\`, 'removeEmptyArrays': \`${p(s)}\`].`);if(P(i)||b(i)&&!I(Number(i))){let u=Number(i);return ve(u)?u:void 0}if(d(i)){let u=i.map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(z(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(X(i)){let u=Array.from(i.entries()).map(([f,g])=>{let T=o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false}),S=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});return !N(T)&&!N(S)?[T,S]:void 0}).filter(f=>!N(f));return s&&(u=u.filter(f=>!(d(f)&&f.length===0))),s&&B(u)?void 0:u}if(Ne(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(Fe(i))if(i instanceof BigInt64Array||i instanceof BigUint64Array){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}else {let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(re(i))return I(i.getTime())?0:i.getTime();if(H(i)){let u={};for(let[f,g]of Object.entries(i)){let T=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});N(T)||(u[f]=T);}return m&&Ee(u)?c?{}:void 0:u}}return o(r,{removeEmptyObjects:t,removeEmptyArrays:n,isRoot:true})}function $c(r,e={}){F(e,{message:({currentType:i,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${i}\`.`});let t=y(e,"removeEmptyObjects")?e.removeEmptyObjects:false,n=y(e,"removeEmptyArrays")?e.removeEmptyArrays:false;function o(i,a){if(U(i))return;let{removeEmptyArrays:s,removeEmptyObjects:m,isRoot:c}=a;if(!w(m)||!w(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p(m)}\`, 'removeEmptyArrays': \`${p(s)}\`].`);if(P(i)||l(i))return String(i);if(re(i))return i.toISOString();if(he(i))return i.toString();if(Ne(i))return Array.from(i).map(u=>String(u)).filter(u=>!N(u));if(Fe(i))if(i instanceof BigInt64Array||i instanceof BigUint64Array){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).map(f=>String(f)).filter(f=>!N(f));return s&&B(u)?void 0:u}else {let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).map(f=>String(f)).filter(f=>!N(f));return s&&B(u)?void 0:u}if(z(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(X(i)){let u=Array.from(i.entries()).map(([f,g])=>[o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false}),o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})]).filter(([f,g])=>!N(f)&&!N(g));return s&&B(u)?void 0:u}if(d(i)){let u=i.map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&(u=u.filter(f=>!(d(f)&&f.length===0))),s&&B(u)?void 0:u}if(H(i)){let u={};for(let[f,g]of Object.entries(i)){let T=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});N(T)?d(g)&&!s&&(u[f]=[]):u[f]=T;}return m&&Object.keys(u).length===0?c?{}:void 0:u}}return o(r,{removeEmptyObjects:t,removeEmptyArrays:n,isRoot:true})}var _e=()=>typeof window>"u"||typeof document>"u";var Kc=(r="on_processing")=>{if(_e())return;se(r,{message({validType:t,currentType:n}){return `First parameter \`className\` must be of type \`${t}\`, but received: \`${n}\`.`}});let{documentElement:e}=document;e&&!e.classList.contains(r)&&e.classList.add(r);},qc=(r="on_processing")=>{if(_e())return;se(r,{message({validType:t,currentType:n}){return `First parameter \`className\` must be of type \`${t}\`, but received: \`${n}\`.`}});let{documentElement:e}=document;e&&e.classList.contains(r)&&e.classList.remove(r);},zc=()=>{if(_e())return;let r=document.activeElement;r instanceof HTMLElement&&r.blur();},Vc=r=>{if(_e())return;O(r)||(r={});let e=y(r,"behavior")&&b(r.behavior)&&["auto","instant","smooth"].includes(r.behavior.trim())?r.behavior:"smooth",t=y(r,"timeout")&&P(r.timeout)&&r.timeout>=1?r.timeout:1;setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:e});},t);};function V(r){return typeof r=="number"&&Number.isInteger(r)}var lf=(r,e={})=>{if(!l(r)&&!ve(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${p(r)}\`, with value: ${k(r)}.`);F(e,{message:({currentType:D,validType:G})=>`Second parameter (\`options\`) must be of type \`${G}\`, but received: \`${D}\`.`});let t=y(e,"decimal")?e.decimal:false,n=y(e,"totalDecimal")?e.totalDecimal:2,o=y(e,"endDecimal")?e.endDecimal:true,i=y(e,"indianFormat")?e.indianFormat:false,a=y(e,"suffixCurrency")?e.suffixCurrency:"",s=y(e,"suffixDecimal")?e.suffixDecimal:"",m=y(e,"roundedDecimal")?e.roundedDecimal:"round",c=y(e,"negativeFormat")?e.negativeFormat:"dash",u=y(e,"separatorDecimals")?e.separatorDecimals:",",f=y(e,"separator")?e.separator:".";if(!l(f)||!l(u)||!l(a)||!l(s))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${p(f)}\`, 'separatorDecimals': \`${p(u)}\`, 'suffixCurrency': \`${p(a)}\`, 'suffixDecimal': \`${p(s)}\`].`);if(!w(t)||!w(o)||!w(i))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${p(t)}\`, 'endDecimal': \`${p(o)}\`, 'indianFormat': \`${p(i)}\`].`);if(!V(n))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${p(n)}\`, with value: \`${k(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: \`${p(m)}\`, with value: ${k(m)}.`);if(!(c==="abs"||c==="brackets"||c==="dash"||O(c)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${p(c)}\`, with value: ${k(c)}.`);let g=l(r)?Je(r):r;if(I(g))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let T=Math.abs(g),S=Math.pow(10,n);if(m){let D=T*S;switch(m){case "round":T=Math.round(D)/S;break;case "ceil":T=Math.ceil(D)/S;break;case "floor":T=Math.floor(D)/S;break}}let j="",x="";if(m){let D=T*S;switch(m){case "round":T=Math.round(D)/S;break;case "ceil":T=Math.ceil(D)/S;break;case "floor":T=Math.floor(D)/S;break}}if(m)[j,x]=T.toFixed(n).split("."),x=x??"".padEnd(n,"0");else {let D=String(T).split(".");j=D[0],x=(D[1]||"").slice(0,n).padEnd(n,"0");}let v,K=(D,G)=>{let ae=D.slice(-3),ne=D.slice(0,-3);return ne?ne.replace(/\B(?=(\d{2})+(?!\d))/g,G)+G+ae:ae};if(i?(f=",",u=".",v=(a.trim().length?a:"")+K(j,f)):v=(a.trim().length?a:"")+j.replace(/\B(?=(\d{3})+(?!\d))/g,f),t&&!N(x)&&n>0){let D=u+x;o&&(D+=s),v+=D;}if(g<0){if(c==="dash")v="-"+v;else if(c==="brackets")v="("+v+")";else if(c!=="abs"){if(O(c))if(y(c,"custom")){let D=c.custom;if(!W(D))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${p(D)}\`.`);let G=D(v);se(G,{message:({currentType:ae,validType:ne})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${ne}\` type value, but received: \`${ae}\`.`}),v=G;}else {let D=c.style||"dash",G=w(c.space)?c.space:false;if(q(G,{message:({currentType:ae,validType:ne})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${ne}\`, but received: \`${ae}\`.`}),!(D==="abs"||D==="brackets"||D==="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: \`${p(D)}\`, with value: ${k(D)}.`);switch(D){case "dash":v="-"+(G?" ":"")+v;break;case "brackets":v=G?`( ${v} )`:`(${v})`;break;}}}}return v};var hf=(r,e=",")=>{if(!l(r)&&!ve(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${p(r)}\`.`);if(!l(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${p(e)}\`.`);e=l(e)?e:",";let t=e==="."?",":".",n=r.toString().trim(),o=n.lastIndexOf("."),i=n.lastIndexOf(","),a="";o>i?a=".":i>o&&(a=",");let s=n,m="";if(a){let u=n.split(a);s=u.slice(0,-1).join(a),m=u.slice(-1)[0];}s=s.replace(/[^\d]/g,"");let c=s.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${c}${t}${m}`:c};function Ef(r,e={}){if(U(r))return "";if(!l(r)&&!P(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${p(r)}\`.`);F(e,{message:({currentType:K,validType:D})=>`Second parameter (\`options\`) must be of type \`${D}\`, but received: \`${K}\`.`});let t=y(e,"separator")?e.separator:" ",n=y(e,"takeNumberOnly")?e.takeNumberOnly:false,o=y(e,"checkValidOnly")?e.checkValidOnly:false,i=y(e,"plusNumberCountry")?e.plusNumberCountry:"",a=y(e,"openingNumberCountry")?e.openingNumberCountry:"",s=y(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!w(n)||!w(o))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': \`${p(n)}\`, 'checkValidOnly': \`${p(o)}\`].`);if(!l(t)||!l(i)||!l(a)||!l(s))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${p(t)}\`, 'plusNumberCountry': \`${p(i)}\`, 'openingNumberCountry': \`${p(a)}\`, 'closingNumberCountry': \`${p(s)}\`].`);if(l(r)||(r=String(r)),n)return r.replace(/\D/g,"");if(o)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m=i.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m)&&(m="+"+m.replace(/^\++/,""));let c="",u="",f={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"},g=m.replace(/^\+/,"").replace(/[^\d]/g,"");f[g]&&r.startsWith("0")?(c=r.slice(1,4),u=r.slice(4)):(c=r.slice(0,4),u=r.slice(4));let T=m.trim(),S=a.trim(),j=s.trim(),x="";T?S&&j?x=`${S}${T}${j} ${c}`:S&&!j?x=`${S}${T} ${c}`:!S&&j?x=`${T}${j} ${c}`:x=`${T} ${c}`:x=`${c}`;let v={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let K=0;K<u.length;K++){let D=K+c.length;x+=(v[D]||"")+u[K];}return x}function Ae(r){return (e={})=>{let t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}function ue(r){return (e,t)=>{let n=t?.context?String(t.context):"standalone",o;if(n==="formatting"&&r.formattingValues){let a=r.defaultFormattingWidth||r.defaultWidth,s=t?.width?String(t.width):a;o=r.formattingValues[s]||r.formattingValues[a];}else {let a=r.defaultWidth,s=t?.width?String(t.width):r.defaultWidth;o=r.values[s]||r.values[a];}let i=r.argumentCallback?r.argumentCallback(e):e;return o[i]}}function ce(r){return (e,t={})=>{let n=t.width,o=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],i=e.match(o);if(!i)return null;let a=i[0],s=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],m=Array.isArray(s)?pn(s,f=>f.test(a)):fn(s,f=>f.test(a)),c;c=r.valueCallback?r.valueCallback(m):m,c=t.valueCallback?t.valueCallback(c):c;let u=e.slice(a.length);return {value:c,rest:u}}}function fn(r,e){for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function pn(r,e){for(let t=0;t<r.length;t++)if(e(r[t]))return t}function Ze(r){return (e,t={})=>{let n=e.match(r.matchPattern);if(!n)return null;let o=n[0],i=e.match(r.parsePattern);if(!i)return null;let a=r.valueCallback?r.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;let s=e.slice(o.length);return {value:a,rest:s}}}var er=6048e5,yt=864e5,bt=6e4,gt=36e5,ht=1e3;var Qr=Symbol.for("constructDateFrom");function $(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&Qr in r?r[Qr](e):r instanceof Date?new r.constructor(e):new Date(e)}function xt(r,...e){let t=$.bind(null,e.find(n=>typeof n=="object"));return e.map(t)}var gn={};function fe(){return gn}function R(r,e){return $(e||r,r)}function te(r,e){let t=fe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,o=R(r,e?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}var hn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ot=(r,e,t)=>{let n,o=hn[r];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};var wn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tt=(r,e,t,n)=>wn[r];var xn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},On={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Tn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vn=(r,e)=>{let t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},kt={ordinalNumber:vn,era:ue({values:xn,defaultWidth:"wide"}),quarter:ue({values:On,defaultWidth:"wide",argumentCallback:r=>r-1}),month:ue({values:Tn,defaultWidth:"wide"}),day:ue({values:kn,defaultWidth:"wide"}),dayPeriod:ue({values:Pn,defaultWidth:"wide",formattingValues:Nn,defaultFormattingWidth:"wide"})};var En=/^(\d+)(th|st|nd|rd)?/i,An=/\d+/i,Sn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dn={any:[/^b/i,/^(a|c)/i]},Rn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},In={any:[/1/i,/2/i,/3/i,/4/i]},jn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$n={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ln={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pt={ordinalNumber:Ze({matchPattern:En,parsePattern:An,valueCallback:r=>parseInt(r,10)}),era:ce({matchPatterns:Sn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),quarter:ce({matchPatterns:Rn,defaultMatchWidth:"wide",parsePatterns:In,defaultParseWidth:"any",valueCallback:r=>r+1}),month:ce({matchPatterns:jn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),day:ce({matchPatterns:Cn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),dayPeriod:ce({matchPatterns:Fn,defaultMatchWidth:"any",parsePatterns:Ln,defaultParseWidth:"any"})};var Wn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Un={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nt={date:Ae({formats:Wn,defaultWidth:"full"}),time:Ae({formats:Un,defaultWidth:"full"}),dateTime:Ae({formats:Yn,defaultWidth:"full"})};var Se={code:"en-US",formatDistance:Ot,formatLong:Nt,formatRelative:Tt,localize:kt,match:Pt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Bn={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},vt=(r,e,t)=>{let n,o=Bn[r];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"dalam waktu "+n:n+" yang lalu":n};var Hn={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},_n={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Kn={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Et={date:Ae({formats:Hn,defaultWidth:"full"}),time:Ae({formats:_n,defaultWidth:"full"}),dateTime:Ae({formats:Kn,defaultWidth:"full"})};var qn={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},At=(r,e,t,n)=>qn[r];var zn={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},Vn={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},Gn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},Qn={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Xn={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Jn={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Zn=(r,e)=>"ke-"+Number(r),St={ordinalNumber:Zn,era:ue({values:zn,defaultWidth:"wide"}),quarter:ue({values:Vn,defaultWidth:"wide",argumentCallback:r=>r-1}),month:ue({values:Gn,defaultWidth:"wide"}),day:ue({values:Qn,defaultWidth:"wide"}),dayPeriod:ue({values:Xn,defaultWidth:"wide",formattingValues:Jn,defaultFormattingWidth:"wide"})};var eo=/^ke-(\d+)?/i,ro=/\d+/i,to={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},no={any:[/^s/i,/^(m|e)/i]},oo={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},io={any:[/1/i,/2/i,/3/i,/4/i]},so={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},ao={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},mo={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},uo={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},co={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},fo={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Dt={ordinalNumber:Ze({matchPattern:eo,parsePattern:ro,valueCallback:r=>parseInt(r,10)}),era:ce({matchPatterns:to,defaultMatchWidth:"wide",parsePatterns:no,defaultParseWidth:"any"}),quarter:ce({matchPatterns:oo,defaultMatchWidth:"wide",parsePatterns:io,defaultParseWidth:"any",valueCallback:r=>r+1}),month:ce({matchPatterns:so,defaultMatchWidth:"wide",parsePatterns:ao,defaultParseWidth:"any"}),day:ce({matchPatterns:mo,defaultMatchWidth:"wide",parsePatterns:uo,defaultParseWidth:"any"}),dayPeriod:ce({matchPatterns:co,defaultMatchWidth:"any",parsePatterns:fo,defaultParseWidth:"any"})};var Xr={code:"id",formatDistance:vt,formatLong:Et,formatRelative:At,localize:St,match:Dt,options:{weekStartsOn:1,firstWeekContainsDate:1}};function rr(r,e,t){let n=R(r,t?.in);return isNaN(e)?$(t?.in||r,NaN):(e&&n.setDate(n.getDate()+e),n)}function ye(r,e){return te(r,{...e,weekStartsOn:1})}function tr(r,e){let t=R(r,e?.in),n=t.getFullYear(),o=$(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=ye(o),a=$(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let s=ye(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function je(r){let e=R(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function Jr(r,e){let t=R(r,e?.in);return t.setHours(0,0,0,0),t}function Rt(r,e,t){let[n,o]=xt(t?.in,r,e),i=Jr(n),a=Jr(o),s=+i-je(i),m=+a-je(a);return Math.round((s-m)/yt)}function It(r,e){let t=tr(r,e),n=$(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ye(n)}function Me(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function jt(r){return !(!Me(r)&&typeof r!="number"||isNaN(+R(r)))}function Mt(r,e){let t=R(r,e?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Ct(r,e){let t=R(r,e?.in);return Rt(t,Mt(t))+1}function nr(r,e){let t=R(r,e?.in),n=+ye(t)-+It(t);return Math.round(n/er)+1}function Le(r,e){let t=R(r,e?.in),n=t.getFullYear(),o=fe(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=$(e?.in||r,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);let s=te(a,e),m=$(e?.in||r,0);m.setFullYear(n,0,i),m.setHours(0,0,0,0);let c=te(m,e);return +t>=+s?n+1:+t>=+c?n:n-1}function $t(r,e){let t=fe(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,o=Le(r,e),i=$(e?.in||r,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),te(i,e)}function or(r,e){let t=R(r,e?.in),n=+te(t,e)-+$t(t,e);return Math.round(n/er)+1}function L(r,e){let t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}var Oe={y(r,e){let t=r.getFullYear(),n=t>0?t:1-t;return L(e==="yy"?n%100:n,e.length)},M(r,e){let t=r.getMonth();return e==="M"?String(t+1):L(t+1,2)},d(r,e){return L(r.getDate(),e.length)},a(r,e){let t=r.getHours()/12>=1?"pm":"am";switch(e){case "a":case "aa":return t.toUpperCase();case "aaa":return t;case "aaaaa":return t[0];case "aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return L(r.getHours()%12||12,e.length)},H(r,e){return L(r.getHours(),e.length)},m(r,e){return L(r.getMinutes(),e.length)},s(r,e){return L(r.getSeconds(),e.length)},S(r,e){let t=e.length,n=r.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return L(o,e.length)}};var We={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zr={G:function(r,e,t){let n=r.getFullYear()>0?1:0;switch(e){case "G":case "GG":case "GGG":return t.era(n,{width:"abbreviated"});case "GGGGG":return t.era(n,{width:"narrow"});case "GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){let n=r.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Oe.y(r,e)},Y:function(r,e,t,n){let o=Le(r,n),i=o>0?o:1-o;if(e==="YY"){let a=i%100;return L(a,2)}return e==="Yo"?t.ordinalNumber(i,{unit:"year"}):L(i,e.length)},R:function(r,e){let t=tr(r);return L(t,e.length)},u:function(r,e){let t=r.getFullYear();return L(t,e.length)},Q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case "Q":return String(n);case "QQ":return L(n,2);case "Qo":return t.ordinalNumber(n,{unit:"quarter"});case "QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case "QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case "QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case "q":return String(n);case "qq":return L(n,2);case "qo":return t.ordinalNumber(n,{unit:"quarter"});case "qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case "qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case "qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){let n=r.getMonth();switch(e){case "M":case "MM":return Oe.M(r,e);case "Mo":return t.ordinalNumber(n+1,{unit:"month"});case "MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case "MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case "MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){let n=r.getMonth();switch(e){case "L":return String(n+1);case "LL":return L(n+1,2);case "Lo":return t.ordinalNumber(n+1,{unit:"month"});case "LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case "LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case "LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){let o=or(r,n);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):L(o,e.length)},I:function(r,e,t){let n=nr(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):L(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):Oe.d(r,e)},D:function(r,e,t){let n=Ct(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):L(n,e.length)},E:function(r,e,t){let n=r.getDay();switch(e){case "E":case "EE":case "EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case "EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case "EEEEEE":return t.day(n,{width:"short",context:"formatting"});case "EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){let o=r.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(e){case "e":return String(i);case "ee":return L(i,2);case "eo":return t.ordinalNumber(i,{unit:"day"});case "eee":return t.day(o,{width:"abbreviated",context:"formatting"});case "eeeee":return t.day(o,{width:"narrow",context:"formatting"});case "eeeeee":return t.day(o,{width:"short",context:"formatting"});case "eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){let o=r.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(e){case "c":return String(i);case "cc":return L(i,e.length);case "co":return t.ordinalNumber(i,{unit:"day"});case "ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case "ccccc":return t.day(o,{width:"narrow",context:"standalone"});case "cccccc":return t.day(o,{width:"short",context:"standalone"});case "cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(r,e,t){let n=r.getDay(),o=n===0?7:n;switch(e){case "i":return String(o);case "ii":return L(o,e.length);case "io":return t.ordinalNumber(o,{unit:"day"});case "iii":return t.day(n,{width:"abbreviated",context:"formatting"});case "iiiii":return t.day(n,{width:"narrow",context:"formatting"});case "iiiiii":return t.day(n,{width:"short",context:"formatting"});case "iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){let o=r.getHours()/12>=1?"pm":"am";switch(e){case "a":case "aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case "aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(r,e,t){let n=r.getHours(),o;switch(n===12?o=We.noon:n===0?o=We.midnight:o=n/12>=1?"pm":"am",e){case "b":case "bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case "bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(r,e,t){let n=r.getHours(),o;switch(n>=17?o=We.evening:n>=12?o=We.afternoon:n>=4?o=We.morning:o=We.night,e){case "B":case "BB":case "BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Oe.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):Oe.H(r,e)},K:function(r,e,t){let n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):L(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):L(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):Oe.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):Oe.s(r,e)},S:function(r,e){return Oe.S(r,e)},X:function(r,e,t){let n=r.getTimezoneOffset();if(n===0)return "Z";switch(e){case "X":return Lt(n);case "XXXX":case "XX":return Ce(n);case "XXXXX":case "XXX":default:return Ce(n,":")}},x:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "x":return Lt(n);case "xxxx":case "xx":return Ce(n);case "xxxxx":case "xxx":default:return Ce(n,":")}},O:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "O":case "OO":case "OOO":return "GMT"+Ft(n,":");case "OOOO":default:return "GMT"+Ce(n,":")}},z:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "z":case "zz":case "zzz":return "GMT"+Ft(n,":");case "zzzz":default:return "GMT"+Ce(n,":")}},t:function(r,e,t){let n=Math.trunc(+r/1e3);return L(n,e.length)},T:function(r,e,t){return L(+r,e.length)}};function Ft(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),o=Math.trunc(n/60),i=n%60;return i===0?t+String(o):t+String(o)+e+L(i,2)}function Lt(r,e){return r%60===0?(r>0?"-":"+")+L(Math.abs(r)/60,2):Ce(r,e)}function Ce(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),o=L(Math.trunc(n/60),2),i=L(n%60,2);return t+o+e+i}var Wt=(r,e)=>{switch(r){case "P":return e.date({width:"short"});case "PP":return e.date({width:"medium"});case "PPP":return e.date({width:"long"});case "PPPP":default:return e.date({width:"full"})}},Ut=(r,e)=>{switch(r){case "p":return e.time({width:"short"});case "pp":return e.time({width:"medium"});case "ppp":return e.time({width:"long"});case "pppp":default:return e.time({width:"full"})}},po=(r,e)=>{let t=r.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return Wt(r,e);let i;switch(n){case "P":i=e.dateTime({width:"short"});break;case "PP":i=e.dateTime({width:"medium"});break;case "PPP":i=e.dateTime({width:"long"});break;case "PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Wt(n,e)).replace("{{time}}",Ut(o,e))},Ke={p:Ut,P:po};var lo=/^D+$/,yo=/^Y+$/,bo=["D","DD","YY","YYYY"];function ir(r){return lo.test(r)}function sr(r){return yo.test(r)}function qe(r,e,t){let n=go(r,e,t);if(console.warn(n),bo.includes(r))throw new RangeError(n)}function go(r,e,t){let n=r[0]==="Y"?"years":"days of the month";return `Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var ho=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xo=/^'([^]*?)'?$/,Oo=/''/g,To=/[a-zA-Z]/;function Yt(r,e,t){let n=fe(),o=t?.locale??n.locale??Se,i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=R(r,t?.in);if(!jt(s))throw new RangeError("Invalid time value");let m=e.match(wo).map(u=>{let f=u[0];if(f==="p"||f==="P"){let g=Ke[f];return g(u,o.formatLong)}return u}).join("").match(ho).map(u=>{if(u==="''")return {isToken:false,value:"'"};let f=u[0];if(f==="'")return {isToken:false,value:ko(u)};if(Zr[f])return {isToken:true,value:u};if(f.match(To))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return {isToken:false,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));let c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return m.map(u=>{if(!u.isToken)return u.value;let f=u.value;(!t?.useAdditionalWeekYearTokens&&sr(f)||!t?.useAdditionalDayOfYearTokens&&ir(f))&&qe(f,e,String(r));let g=Zr[f[0]];return g(s,f,o.localize,c)}).join("")}function ko(r){let e=r.match(xo);return e?e[1].replace(Oo,"'"):r}function Bt(){return Object.assign({},fe())}function Ht(r,e){let t=R(r,e?.in).getDay();return t===0?7:t}function _t(r,e){let t=Po(e)?new e(0):$(e,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function Po(r){return typeof r=="function"&&r.prototype?.constructor===r}var No=10,ar=class{subPriority=0;validate(e,t){return true}},mr=class extends ar{constructor(e,t,n,o,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=o,i&&(this.subPriority=i);}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},ur=class extends ar{priority=No;subPriority=-1;constructor(e,t){super(),this.context=e||(n=>$(t,n));}set(e,t){return t.timestampIsSet?e:$(e,_t(e,this.context))}};var h=class{run(e,t,n,o){let i=this.parse(e,t,n,o);return i?{setter:new mr(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return true}};var cr=class extends h{priority=140;parse(e,t,n){switch(t){case "G":case "GG":case "GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case "GGGGG":return n.era(e,{width:"narrow"});case "GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var C={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},pe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Y(r,e){return r&&{value:e(r.value),rest:r.rest}}function M(r,e){let t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function le(r,e){let t=e.match(r);if(!t)return null;if(t[0]==="Z")return {value:0,rest:e.slice(1)};let n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return {value:n*(o*gt+i*bt+a*ht),rest:e.slice(t[0].length)}}function fr(r){return M(C.anyDigitsSigned,r)}function E(r,e){switch(r){case 1:return M(C.singleDigit,e);case 2:return M(C.twoDigits,e);case 3:return M(C.threeDigits,e);case 4:return M(C.fourDigits,e);default:return M(new RegExp("^\\d{1,"+r+"}"),e)}}function Ue(r,e){switch(r){case 1:return M(C.singleDigitSigned,e);case 2:return M(C.twoDigitsSigned,e);case 3:return M(C.threeDigitsSigned,e);case 4:return M(C.fourDigitsSigned,e);default:return M(new RegExp("^-?\\d{1,"+r+"}"),e)}}function Ye(r){switch(r){case "morning":return 4;case "evening":return 17;case "pm":case "noon":case "afternoon":return 12;case "am":case "midnight":case "night":default:return 0}}function pr(r,e){let t=e>0,n=t?e:1-e,o;if(n<=50)o=r||100;else {let i=n+50,a=Math.trunc(i/100)*100,s=r>=i%100;o=r+a-(s?100:0);}return t?o:1-o}function lr(r){return r%400===0||r%4===0&&r%100!==0}var dr=class extends h{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){let o=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case "y":return Y(E(4,e),o);case "yo":return Y(n.ordinalNumber(e,{unit:"year"}),o);default:return Y(E(t.length,e),o)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let o=e.getFullYear();if(n.isTwoDigitYear){let a=pr(n.year,o);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let i=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};var yr=class extends h{priority=130;parse(e,t,n){let o=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case "Y":return Y(E(4,e),o);case "Yo":return Y(n.ordinalNumber(e,{unit:"year"}),o);default:return Y(E(t.length,e),o)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,o){let i=Le(e,o);if(n.isTwoDigitYear){let s=pr(n.year,i);return e.setFullYear(s,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),te(e,o)}let a=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),te(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var br=class extends h{priority=130;parse(e,t){return t==="R"?Ue(4,e):Ue(t.length,e)}set(e,t,n){let o=$(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),ye(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var gr=class extends h{priority=130;parse(e,t){return t==="u"?Ue(4,e):Ue(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var hr=class extends h{priority=120;parse(e,t,n){switch(t){case "Q":case "QQ":return E(t.length,e);case "Qo":return n.ordinalNumber(e,{unit:"quarter"});case "QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case "QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case "QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var wr=class extends h{priority=120;parse(e,t,n){switch(t){case "q":case "qq":return E(t.length,e);case "qo":return n.ordinalNumber(e,{unit:"quarter"});case "qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case "qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case "qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var xr=class extends h{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){let o=i=>i-1;switch(t){case "M":return Y(M(C.month,e),o);case "MM":return Y(E(2,e),o);case "Mo":return Y(n.ordinalNumber(e,{unit:"month"}),o);case "MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case "MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case "MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var Or=class extends h{priority=110;parse(e,t,n){let o=i=>i-1;switch(t){case "L":return Y(M(C.month,e),o);case "LL":return Y(E(2,e),o);case "Lo":return Y(n.ordinalNumber(e,{unit:"month"}),o);case "LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case "LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case "LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Kt(r,e,t){let n=R(r,t?.in),o=or(n,t)-e;return n.setDate(n.getDate()-o*7),R(n,t?.in)}var Tr=class extends h{priority=100;parse(e,t,n){switch(t){case "w":return M(C.week,e);case "wo":return n.ordinalNumber(e,{unit:"week"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,o){return te(Kt(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function qt(r,e,t){let n=R(r,t?.in),o=nr(n,t)-e;return n.setDate(n.getDate()-o*7),n}var kr=class extends h{priority=100;parse(e,t,n){switch(t){case "I":return M(C.week,e);case "Io":return n.ordinalNumber(e,{unit:"week"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ye(qt(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var vo=[31,28,31,30,31,30,31,31,30,31,30,31],Eo=[31,29,31,30,31,30,31,31,30,31,30,31],Pr=class extends h{priority=90;subPriority=1;parse(e,t,n){switch(t){case "d":return M(C.date,e);case "do":return n.ordinalNumber(e,{unit:"date"});default:return E(t.length,e)}}validate(e,t){let n=e.getFullYear(),o=lr(n),i=e.getMonth();return o?t>=1&&t<=Eo[i]:t>=1&&t<=vo[i]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Nr=class extends h{priority=90;subpriority=1;parse(e,t,n){switch(t){case "D":case "DD":return M(C.dayOfYear,e);case "Do":return n.ordinalNumber(e,{unit:"date"});default:return E(t.length,e)}}validate(e,t){let n=e.getFullYear();return lr(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function Be(r,e,t){let n=fe(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=R(r,t?.in),a=i.getDay(),m=(e%7+7)%7,c=7-o,u=e<0||e>6?e-(a+c)%7:(m+c)%7-(a+c)%7;return rr(i,u,t)}var vr=class extends h{priority=90;parse(e,t,n){switch(t){case "E":case "EE":case "EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case "EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Er=class extends h{priority=90;parse(e,t,n,o){let i=a=>{let s=Math.floor((a-1)/7)*7;return (a+o.weekStartsOn+6)%7+s};switch(t){case "e":case "ee":return Y(E(t.length,e),i);case "eo":return Y(n.ordinalNumber(e,{unit:"day"}),i);case "eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "eeeee":return n.day(e,{width:"narrow",context:"formatting"});case "eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ar=class extends h{priority=90;parse(e,t,n,o){let i=a=>{let s=Math.floor((a-1)/7)*7;return (a+o.weekStartsOn+6)%7+s};switch(t){case "c":case "cc":return Y(E(t.length,e),i);case "co":return Y(n.ordinalNumber(e,{unit:"day"}),i);case "ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case "ccccc":return n.day(e,{width:"narrow",context:"standalone"});case "cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case "cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function zt(r,e,t){let n=R(r,t?.in),o=Ht(n,t),i=e-o;return rr(n,i,t)}var Sr=class extends h{priority=90;parse(e,t,n){let o=i=>i===0?7:i;switch(t){case "i":case "ii":return E(t.length,e);case "io":return n.ordinalNumber(e,{unit:"day"});case "iii":return Y(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case "iiiii":return Y(n.day(e,{width:"narrow",context:"formatting"}),o);case "iiiiii":return Y(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case "iiii":default:return Y(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=zt(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Dr=class extends h{priority=80;parse(e,t,n){switch(t){case "a":case "aa":case "aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var Rr=class extends h{priority=80;parse(e,t,n){switch(t){case "b":case "bb":case "bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Ir=class extends h{priority=80;parse(e,t,n){switch(t){case "B":case "BB":case "BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var jr=class extends h{priority=70;parse(e,t,n){switch(t){case "h":return M(C.hour12h,e);case "ho":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let o=e.getHours()>=12;return o&&n<12?e.setHours(n+12,0,0,0):!o&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Mr=class extends h{priority=70;parse(e,t,n){switch(t){case "H":return M(C.hour23h,e);case "Ho":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Cr=class extends h{priority=70;parse(e,t,n){switch(t){case "K":return M(C.hour11h,e);case "Ko":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var $r=class extends h{priority=70;parse(e,t,n){switch(t){case "k":return M(C.hour24h,e);case "ko":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let o=n<=24?n%24:n;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var Fr=class extends h{priority=60;parse(e,t,n){switch(t){case "m":return M(C.minute,e);case "mo":return n.ordinalNumber(e,{unit:"minute"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var Lr=class extends h{priority=50;parse(e,t,n){switch(t){case "s":return M(C.second,e);case "so":return n.ordinalNumber(e,{unit:"second"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var Wr=class extends h{priority=30;parse(e,t){let n=o=>Math.trunc(o*Math.pow(10,-t.length+3));return Y(E(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var Ur=class extends h{priority=10;parse(e,t){switch(t){case "X":return le(pe.basicOptionalMinutes,e);case "XX":return le(pe.basic,e);case "XXXX":return le(pe.basicOptionalSeconds,e);case "XXXXX":return le(pe.extendedOptionalSeconds,e);case "XXX":default:return le(pe.extended,e)}}set(e,t,n){return t.timestampIsSet?e:$(e,e.getTime()-je(e)-n)}incompatibleTokens=["t","T","x"]};var Yr=class extends h{priority=10;parse(e,t){switch(t){case "x":return le(pe.basicOptionalMinutes,e);case "xx":return le(pe.basic,e);case "xxxx":return le(pe.basicOptionalSeconds,e);case "xxxxx":return le(pe.extendedOptionalSeconds,e);case "xxx":default:return le(pe.extended,e)}}set(e,t,n){return t.timestampIsSet?e:$(e,e.getTime()-je(e)-n)}incompatibleTokens=["t","T","X"]};var Br=class extends h{priority=40;parse(e){return fr(e)}set(e,t,n){return [$(e,n*1e3),{timestampIsSet:true}]}incompatibleTokens="*"};var Hr=class extends h{priority=20;parse(e){return fr(e)}set(e,t,n){return [$(e,n),{timestampIsSet:true}]}incompatibleTokens="*"};var Vt={G:new cr,y:new dr,Y:new yr,R:new br,u:new gr,Q:new hr,q:new wr,M:new xr,L:new Or,w:new Tr,I:new kr,d:new Pr,D:new Nr,E:new vr,e:new Er,c:new Ar,i:new Sr,a:new Dr,b:new Rr,B:new Ir,h:new jr,H:new Mr,K:new Cr,k:new $r,m:new Fr,s:new Lr,S:new Wr,X:new Ur,x:new Yr,t:new Br,T:new Hr};var Ao=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,So=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Do=/^'([^]*?)'?$/,Ro=/''/g,Io=/\S/,jo=/[a-zA-Z]/;function Gt(r,e,t,n){let o=()=>$(n?.in||t,NaN),i=Bt(),a=n?.locale??i.locale??Se,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,m=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return r?o():R(t,n?.in);let c={firstWeekContainsDate:s,weekStartsOn:m,locale:a},u=[new ur(n?.in,t)],f=e.match(So).map(x=>{let v=x[0];if(v in Ke){let K=Ke[v];return K(x,a.formatLong)}return x}).join("").match(Ao),g=[];for(let x of f){!n?.useAdditionalWeekYearTokens&&sr(x)&&qe(x,e,r),!n?.useAdditionalDayOfYearTokens&&ir(x)&&qe(x,e,r);let v=x[0],K=Vt[v];if(K){let{incompatibleTokens:D}=K;if(Array.isArray(D)){let ae=g.find(ne=>D.includes(ne.token)||ne.token===v);if(ae)throw new RangeError(`The format string mustn't contain \`${ae.fullToken}\` and \`${x}\` at the same time`)}else if(K.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);g.push({token:v,fullToken:x});let G=K.run(r,x,a.match,c);if(!G)return o();u.push(G.setter),r=G.rest;}else {if(v.match(jo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(x==="''"?x="'":v==="'"&&(x=Mo(x)),r.indexOf(x)===0)r=r.slice(x.length);else return o()}}if(r.length>0&&Io.test(r))return o();let T=u.map(x=>x.priority).sort((x,v)=>v-x).filter((x,v,K)=>K.indexOf(x)===v).map(x=>u.filter(v=>v.priority===x).sort((v,K)=>K.subPriority-v.subPriority)).map(x=>x[0]),S=R(t,n?.in);if(isNaN(+S))return o();let j={};for(let x of T){if(!x.validate(S,c))return o();let v=x.set(S,j,c);Array.isArray(v)?(S=v[0],Object.assign(j,v[1])):S=v;}return S}function Mo(r){return r.match(Do)[1].replace(Ro,"'")}var Sg=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!l(e)||!r||!(Me(r)||l(r)))return null;try{let t=new Date(r);if(I(t.getTime()))return null;let n=a=>a.toString().padStart(2,"0"),o={YYYY:t.getFullYear().toString(),MM:n(t.getMonth()+1),DD:n(t.getDate()),hh:n(t.getHours()),mm:n(t.getMinutes()),ss:n(t.getSeconds())},i=Object.entries(o).reduce((a,[s,m])=>a.split(s).join(m),e);return i.includes("NaN")?null:i}catch{return null}},Dg=(r,e)=>{if(!r||!(Me(r)||l(r)))return null;let t=new Date(r);if(I(t.getTime()))return null;O(e)||(e={});let{locale:n="en-US",...o}=e;try{return new Intl.DateTimeFormat(n?.toString()?.trim()?.length?n:"en-US",o).format(t)}catch{return null}},Rg=(r,e)=>{if(!r||!(Me(r)||l(r)))return null;O(e)||(e={});let{inputFormat:t,locale:n,inputLocale:o,...i}=e,a=y(e,"format")&&b(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",s;try{if(l(r)&&t&&o){let c=l(o)?o==="id"?Xr:Se:o;s=Gt(r,t,new Date,{locale:c});}else s=new Date(r);if(I(s.getTime()))return null;let m=l(n)?n==="id"?Xr:Se:n;return Yt(s,a,{...i,locale:m})}catch{return null}},Ig=r=>{try{if(!r||l(r)&&J(r))r=new Date;else if(!(Me(r)||l(r)))return "0";let e=new Date(r);if(I(e.getTime()))return "0";let t=i=>i.toString().padStart(2,"0"),n=e.getTimezoneOffset(),o=n<0?"+":"-";return n=Math.abs(n),`${o}${t(Math.floor(n/60))}${t(n%60)}`}catch{return "0"}};var Ug=(r,e={})=>{if(!b(r))return "";F(e,{message:({currentType:j,validType:x})=>`Second parameter (\`options\`) must be of type \`${x}\`, but received: \`${j}\`.`});let t=y(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: \`${p(t)}\`, with value: ${k(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[o,i]=r.split("@"),a=i.split(".");if(a.length<2)return "";let[s,...m]=a,c=m.join("."),u=t==="fixed"?(()=>{let j=0;for(let x=0;x<r.length;x++)j=(j<<5)-j+r.charCodeAt(x),j|=0;return Math.abs(j)})():void 0,f=(j,x,v)=>{if(j.length<=x)return "*".repeat(j.length);let K=j.split(""),D=Math.max(x,Math.ceil(j.length*v)),G=new Set,ae=0;for(;G.size<D;){let ne=N(u)?Math.floor(Math.random()*j.length):(u+j.length+ae*31)%j.length;G.add(ne),ae++;}for(let ne of G)K[ne]="*";return K.join("")},g=f(o,o.length<4?1:2,.6),T=f(s,s.length<4?1:2,.5),S=c.length<=2?c:f(c,1,.4);return `${g}@${T}.${S}`};var Qt=(r,e={withTrim:true,trimOnly:false})=>{if(!b(r))return "";O(e)||(e={});let{trimOnly:t=false,withTrim:n=true}=e;return t?r.trim():(n&&(r=r.trim()),r.replace(/\s+/g," "))},Xt=r=>b(r)?r.trim():"",Jt=(r,e={trimOnly:false})=>{if(!b(r))return "";O(e)||(e={});let{trimOnly:t=false}=e;return t?r.trim():r.replace(/\s+/g,"")},qg=r=>l(r)?J(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;function oh(r,e,t={}){if(U(r)||e<=0)return r;if(se(r,{message:({currentType:c,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${c}\`.`}),!V(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);F(t,{message:({currentType:c,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${c}\`.`});let n=y(t,"separator")?t.separator:" ",o=y(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(l(n)&&w(o)))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': \`${p(n)}\`, 'reCountAfterSpace': \`${p(o)}\`].`);if(r=Qt(r),!o){let c="",u=0;for(let f=0;f<r.length;f++){let g=r[f];u===e&&(c+=n,u=0),c+=g,u++;}return c}let i=r.split(" "),a=[],s=[],m=0;for(let c=0;c<i.length;c++){let u=i[c],f="",g=0;for(let T=0;T<u.length;T++)f+=u[T],g++,g===e&&T<u.length-1&&(f+=n,g=0);s.push(f),m++,(m===e||c===i.length-1)&&(a.push(s.join(n)),s=[],m=0);}return a.join(" ")}var yh=(r,e={})=>{if(!b(r))return "";F(e,{message:({currentType:c,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${c}\`.`});let t=y(e,"length")?e.length:10,n=y(e,"trim")?e.trim:true,o=y(e,"ending")?e.ending:"...";if(!V(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${p(t)}\`, with value: \`${k(t)}\`.`);if(t<1)return "";if(!(l(o)&&w(n)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${p(o)}\`, 'trim': \`${p(n)}\`].`);J(o)?o="...":o=o.trim();let i=n?r.trim():r;if(i.length<=t)return i;let s=i.slice(0,t);return (n?s:s.trimEnd())+o};function hh(r){if(!Q(r))return;let e=Math.floor(Math.random()*(r.length||0));return r[e]}var ze=(r,e)=>{if(!V(r)||!V(e))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${Co(r,e)}value, but received: ['min': \`${p(r)}\` - (with value: ${k(r)}), 'max': \`${p(e)}\` - (with value: ${k(e)})].`);if(r>e)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${Zt(r)}', 'max': '${Zt(e)}'].`);return r=Math.max(1,r),e=Math.min(Number.MAX_SAFE_INTEGER,e),Math.floor(Math.random()*(e-r+1))+r};function Zt(r){return P(r,{includeNaN:true})?r===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${r}`:`\`${p(r)}\``}var Co=(...r)=>r.some(e=>P(e,{includeNaN:true})&&e===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var Rh=r=>{O(r)||(r={});let{minLength:e=1,maxLength:t=16,avoidZero:n=false}=r;if(q(n,{message({currentType:m,validType:c}){return `Parameters \`avoidZero\` must be of type \`${c}\`, but received: \`${m}\`.`}}),!V(e)||!V(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${p(e)}\` - (with value: ${k(e)}), 'maxLength': \`${p(t)}\` - (with value: ${k(t)})].`);if(e<1||t>16||e>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': \`${e}\`, 'maxLength': \`${t}\`].`);let o=e===t?e:ze(e,t),i=10**(o-1),a=10**o-1,s=ze(i,a);return n&&s===0&&(s=i),s};var Uh=r=>{O(r)||(r={});let{minLength:e=40,maxLength:t=40,type:n="string",avoidWhiteSpace:o=true}=r;if(q(o,{message({currentType:g,validType:T}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${T}\`, but received: \`${g}\`.`}}),!V(e)||!V(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${p(e)}\` - (with value: ${k(e)}), 'maxLength': \`${p(t)}\` - (with value: ${k(t)})].`);if(e<1||t>5e3||e>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': \`${e}\`, 'maxLength': \`${t}\`].`);if(n!=="string"&&n!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${p(n)}\`, with value: ${k(n)}.`);let i=ze(e,t),a=g=>o?g.replace(/\s|\n|\t/g,""):g,c=n==="number"?(I(Number(r.replaceGenInt))?void 0:r.replaceGenInt)??"0123456789":(r.replaceGenStr?r.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",u=a(c)+(r.addChar||"");if(!u.length){let g=()=>n==="number"?o?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${g()}`)}let f="";for(let g=0;g<i;g++)f+=u.charAt(Math.floor(Math.random()*u.length));return f};var He=r=>{Z(r,{message:({currentType:t,validType:n})=>`First parameter (\`values\`) must be of type \`${n}\` (array literal or instance), but received: \`${t}\`.`});let e=[];return r.forEach((t,n)=>{for(let o=n+1;o<r.length;o++)if(we(t,r[o])){e.some(i=>we(i,t))||e.push(t);break}}),e};var Vh=(r,e)=>{if(!O(r))return {};Z(e,{message:({currentType:n,validType:o})=>`Second parameter (\`keysToOmit\`) must be of type \`${o}\` (array literal or instance), but received: \`${n}\`.`});let t=He(e);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(r).filter(([n])=>!e.includes(n)))};var aw=(r,e)=>{if(!O(r))return {};Z(e,{message:({currentType:a,validType:s})=>`Second parameter (\`keysToOmit\`) must be of type \`${s}\` (array literal or instance), but received: \`${a}\`.`});let t=He(e);if(Q(t))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${k(t)}\`.`);let n=(a,s)=>{if(!A(a))return a;let[m,...c]=s;if(B(c))if(d(a)){let u=parseInt(m);!I(u)&&u in a&&a.splice(u,1);}else delete a[m];else {let u=a[m];A(u)&&(a[m]=n(u,c));}return a},o=a=>d(a)?a.map(o).filter(s=>!(A(s)&&Object.keys(s).length===0)):A(a)?Object.fromEntries(Object.entries(a).map(([m,c])=>[m,o(c)]).filter(([,m])=>!N(m)&&!(A(m)&&Object.keys(m).length===0))):a,i=lt(k(r));for(let a of e){let s=a.split(".");n(i,s);}return o(i)};var lw=(r,e)=>{Z(e,{message:({currentType:n,validType:o})=>`Second parameter (\`arrayExcept\`) must be of type \`${o}\` (array literal or instance), but received: \`${n}\`.`});let t=He(e);if(Q(t))throw new Error(`Function omitProps error, cause duplicate of arrayExcept: ${k(t)}.`);if(r){let n=Object.entries(r).filter(([o])=>!e.includes(o));return Object.fromEntries(n)}};var $o=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),Fo=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),bw=r=>{if(!b(r))return;let e=r.split("/").pop();if(e==="")return "";if(e){for(let t of Fo){let n=`.${t}`;if(e.toLowerCase().endsWith(n))return e.slice(0,-n.length)}for(;;){let t=e.lastIndexOf(".");if(t===-1)break;let n=e.slice(t+1).toLowerCase();if($o.has(n))e=e.slice(0,t);else break}return e}};var kw=(r,e,t=false)=>{if(!(d(r)&&d(e)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${p(r)}\`, 'array2': \`${p(e)}\`].`);if(q(t,{message:({currentType:a,validType:s})=>`Third parameter \`ignoreOrder\` must be of type \`${s}\`, but received: \`${a}\`.`}),!we(r.length,e.length))return false;let n=a=>d(a)?a.map(m=>d(m)?n(m):m).sort((m,c)=>{let u=k(m),f=k(c);return u<f?-1:u>f?1:0}):a,o=t?n(r):r,i=t?n(e):e;return we(o.length,i.length)?o.every((a,s)=>k(a)===k(i[s])):false};var vw=(r,e)=>we(r,e);var De=r=>r instanceof URL;var Dw=(r,e)=>{if(!De(r)||!De(e))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname==e.protocol+"//"+e.host+e.pathname};var jw=(r,e)=>{if(!De(r)||!De(e))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==e.protocol+"//"+e.host+e.pathname+e.search};var Yw=(r,e,t={})=>{if(J(r)||!d(e))return false;F(t,{message:({currentType:s,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${s}\`.`});let{exactMatch:n=false,flags:o="i"}=t;q(n,{message:({currentType:s,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`}),se(o,{message:({currentType:s,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`});let i=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.filter(s=>b(s)).map(i);return a.length===0?false:a.every(s=>{let m=n?`(?<!\\S)${s}(?!\\S)`:s;return new RegExp(m,o.includes("u")?o:o+"u").test(r)})};var Gw=(r,e,t)=>{if(J(r)||!d(e))return false;F(t,{message:({currentType:m,validType:c})=>`Third parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let{exactMatch:n=false,flags:o="i"}=t||{};q(n,{message:({currentType:m,validType:c})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${m}\`.`}),se(o,{message:({currentType:m,validType:c})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${m}\`.`});let i=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.filter(m=>b(m)).map(i);if(a.length===0)return false;let s=n?`(?<!\\S)(${a.join("|")})(?!\\S)`:`(${a.join("|")})`;return new RegExp(s,o.includes("u")?o:o+"u").test(r)};var en=(r,e)=>{if(!A(r))return false;if(!(l(e)||P(e)||ee(e)))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${p(e)}\`.`);return Object.prototype.hasOwnProperty.call(r,e)?true:d(r)?r.some(t=>en(t,e)):Object.values(r).some(t=>A(t)&&en(t,e))};var sx=(r,e)=>{if(!d(r)||!d(e)||B(r)||B(e))return false;let t=new Set(r);return e.some(n=>t.has(n))};var rn=r=>Object.prototype.toString.call(r)==="[object Arguments]";function _r(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function lx(r){return !W(r)&&A(r)&&_r(r?.length)}function gx(r){return A(r)&&_r(r.length)}var Tx=r=>l(r)||P(r)?Je(r.toString())!==0?true:r.toString().trim()==="0":false;var Ve=(r,e)=>{if(typeof r=="number"&&typeof e=="number"&&Number.isNaN(r)&&Number.isNaN(e)||r===e)return true;if(typeof r!=typeof e)return false;if(re(r)&&re(e))return r.getTime()===e.getTime();if(he(r)&&he(e)||ee(r)&&ee(e))return r.toString()===e.toString();if(z(r)&&z(e)){if(r.size!==e.size)return false;let t=Array.from(e),n=new Set;for(let o of r){let i=false;for(let a=0;a<t.length;a++)if(!n.has(a)&&Ve(o,t[a])){n.add(a),i=true;break}if(!i)return false}return true}if(X(r)&&X(e)){if(r.size!==e.size)return false;let t=Array.from(e),n=new Set;for(let[o,i]of r){let a=false;for(let s=0;s<t.length;s++){if(n.has(s))continue;let[m,c]=t[s];if(Ve(o,m)&&Ve(i,c)){n.add(s),a=true;break}}if(!a)return false}return true}if(d(r)&&d(e))return r.length!==e.length?false:r.every((t,n)=>Ve(t,e[n]));if(A(r)&&A(e)&&r&&e){if(d(r)!==d(e))return false;let t=Object.keys(r),n=Object.keys(e);return t.length!==n.length?false:t.every(o=>Ve(r[o],e[o]))}return false};function jx(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!O(r)}function Vx(r){return U(r)||w(r)||P(r,{includeNaN:true})||ee(r)?true:W(r)?Object.keys(r).length===0:l(r)||d(r)||rn(r)||Fe(r)?r.length===0:X(r)||z(r)?r.size===0:Ne(r)?r.length===0:O(r)?Object.keys(r).length===0:false}var tn=r=>{if(l(r))return J(r);if(P(r))return I(r);if(d(r))return B(r)||r.every(tn);if(A(r)){let e=Object.keys(r),t=Object.getOwnPropertySymbols(r);return e.length===0&&t.length===0?true:[...e,...t].every(n=>tn(r[n]))}return !r};function iO(r,e,t){return Re(r,e,t,new WeakMap)}function nn(r,e,t){return Kr(r,e,t)}function on(r,e){return r===e||r===0&&e===0||Number.isNaN(r)&&Number.isNaN(e)}function Kr(r,e,t){if(r===e)return true;if(!A(e))return on(r,e);if(!A(r))return false;let n=Reflect.ownKeys(e).filter(o=>!(d(e)&&o==="length"));for(let o of n){if(!(o in r))return false;let i=r[o],a=e[o],s=t?.(i,a,o,r,e);if(!N(s)){if(!s)return false;continue}if(A(i)&&A(a)){if(!nn(i,a,t))return false}else if(!on(i,a))return false}return true}function yO(r,e){return Kr(r,e)}var Lo=Function.prototype.toString,Wo=/\{\s*\[native code\]\s*\}/;function hO(r){if(!W(r))return false;try{let e=Lo.call(r);return Wo.test(e)}catch{return false}}function kO(r){return !U(r)&&(A(r)||W(r))}function NO(r){return typeof r=="number"&&Number.isSafeInteger(r)}var AO=r=>{if(!b(r))return false;let e;try{e=decodeURIComponent(r);}catch{return false}return !e.startsWith("http://")&&!e.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(e)};function IO(r){return H(r)&&!_(r)&&r instanceof WeakMap}var LO=(r=1e3,e)=>{if(!V(r)||r<=0)throw new TypeError(`First parameter \`milliSeconds\` must be a number, non-zero, non-NaN, non-negative, and integer-number, but received: \`${p(r)}\`, with value: \`${k(r)}\`.`);if(_(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter `signal` must be an instance of AbortSignal if provided.");return new Promise((t,n)=>{let o=setTimeout(()=>{i(),t();},r),i=()=>{clearTimeout(o),e&&e.removeEventListener("abort",a);},a=()=>{i(),n(new DOMException("Delay aborted","AbortError"));};e&&(e.aborted?a():e.addEventListener("abort",a,{once:true}));})};var _O=(r,e,t)=>{if(!P(r)||!l(t)||!l(e))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': \`${p(r)}\`, 'originalString': \`${p(e)}\`, 'replaceTo': \`${p(t)}\`]".`);if(r<0||r>=e.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return e.slice(0,r)+t+e.slice(r+1)},KO=r=>{if(!b(r))return "";r=r.replace(/\s+/g," ").trim();let e=r.split(" ");return e.length>1?e[0][0]+e[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};var VO=r=>(Z(r,{message:({currentType:e,validType:t})=>`First parameter (\`props\`) must be of type \`${t}\`, but received: \`${e}\`.`}),e=>!r.map(t=>t.toString()).includes(e.toString()));var cT=(r,e,t)=>{if(l(r)){if(J(r))throw new TypeError("First parameter `baseUrl` cannot be an empty string.");r=Xt(r);}else if(!De(r))throw new TypeError(`First parameter \`baseUrl\` must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${p(r)}\`, with current value: \`${k(r)}\`.`);if(!N(t)&&(Z(t,{message:({currentType:n,validType:o})=>`Third parameter (\`removeParams\`) must be of type \`${o} of strings\`, but received: \`${n}\`.`}),!t.every(n=>b(n))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!N(e)&&!W(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);let n=new URL(r);if(!N(e)){let o=Object.fromEntries(e);if(!Xe(o)){let i=new URLSearchParams(n.search);for(let[a,s]of Object.entries(o)){if(!b(s)&&!P(s,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);i.set(a,String(s));}t?.length&&at(t).map(a=>{i.delete(a);}),n.search=i.toString();}}return t?.forEach(o=>n.searchParams.delete(o)),n}catch(n){throw oe(n)?n:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+n)}};var lT=r=>{if(!b(r))return null;let e;try{e=decodeURIComponent(r);}catch{return null}let t=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,n=e.match(t);if(!n)return null;let o=n.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let a=new URL(i);return a.protocol==="http:"||a.protocol==="https:"}catch{return false}});return o.length?o:null};var qr=class r extends Error{constructor(t,n){super(t);this.originalError=n;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var ST=(r,e=null,t={})=>{let n=[];!l(r)&&!d(r)&&n.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${p(r)}\`.`),!l(e)&&!d(e)&&!_(e)&&n.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${p(e)}\`.`),O(t)||n.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${p(t)}\`.`);let{levels:o=1,removeDuplicates:i=true}=t;if((!V(o)||V(o)&&o<0)&&n.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${p(o)}\`, with value: \`${k(o)}\`.`),w(i)||n.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${p(i)}\`.`),Q(n))throw new TypeError(`Invalid parameter(s) in getPrefixPathname:
1
+ var RzlUtilsJs=(function(exports){'use strict';var w=r=>typeof r=="boolean";var W=r=>typeof r=="function";function U(r){return r==null}function d(r){return Array.isArray(r)}function H(r){return typeof r=="object"&&!U(r)&&!d(r)}function O(r){if(!H(r))return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}var _=r=>r===null;var l=r=>typeof r=="string";var P=(r,e={})=>{let t=O(e)&&w(e.includeNaN)?e.includeNaN:false,n=typeof r=="number";return t?n:n&&!Number.isNaN(r)};var ee=r=>typeof r=="symbol";var N=r=>typeof r>"u";function A(r){return d(r)||H(r)}function F(r,e={}){if(O(r))return;let t=me({value:r,options:e,requiredValidType:"plain object"});throw new TypeError(t)}function I(r){return typeof r=="number"?Number.isNaN(r):Object.prototype.toString.call(r)==="[object Number]"&&Number.isNaN(r.valueOf())}function y(r,e,t={}){if(!l(r)&&!A(r)&&!W(r))return false;F(t,{message:({currentType:s,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${s}\`.`});let n=t.discardUndefined===void 0?true:t.discardUndefined,o=t.discardNull===void 0?false:t.discardNull;q(n,{message:({currentType:s,validType:m})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`}),q(o,{message:({currentType:s,validType:m})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`});let i=[];if(l(e)&&e.trim().length>0||P(e,{includeNaN:true}))(P(e,{includeNaN:true})?String(e):e).split(".").forEach(m=>{let c=m.match(/^\[(\d+)\]$/),u=m.match(/^Symbol\((.+)\)$/);c?i.push(Number(c[1])):u?i.push(Symbol.for(u[1])):I(Number(m))?i.push(m):i.push(Number(m));});else if(ee(e))i.push(e);else return false;let a=l(r)&&r.trim().length>0?Object(r):r;for(let s of i)if(l(s)&&s.trim().length>0||P(s,{includeNaN:true})){if(_(a)||!Object.prototype.hasOwnProperty.call(a,s))return false;a=a[s];}else if(ee(s)){if(_(a)||typeof a!="object"&&!W(a))return false;let c=Object.getOwnPropertySymbols(a).find(u=>u===s||u.description===s.description);if(!c)return false;a=a[c];}else return false;return !(n&&N(a)||o&&_(a))}var b=(r,e={})=>l(r)?(O(e)||(e={}),((y(e,"trim")?e.trim:true)?r.trim():r).length>0):false;function z(r){return Object.prototype.toString.call(r)==="[object Set]"||r instanceof Set}function X(r){return Array.isArray(r)&&r.length>0}var Ri=(r,e={lowerCaseNextRest:true,trim:false})=>{if(!b(r))return "";O(e)||(e={});let t=e.lowerCaseNextRest!==false;return e.trim===true&&(r=r.trim()),r[0].toUpperCase()+(t?r.slice(1).toLowerCase():r.slice(1))},Ii=(r,e={collapseSpaces:false,trim:false})=>{if(!b(r))return "";let t=r;O(e)||(e={});let n=e.collapseSpaces===true;if(e.trim===true&&(t=t.trim()),n){let i=t.match(/^\s*/)?.[0]??"",a=t.match(/\s*$/)?.[0]??"";t=t.trim().replace(/\s+/g," "),t=`${i}${t}${a}`;}return t.toLowerCase().split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")};var ke=r=>{let e="";return d(r)?e=r.map(t=>b(t)?t.trim():"").filter(t=>t.length).join("-"):b(r)&&(e=r.trim()),e.split(/[^\p{L}\p{N}]+/u).filter(Boolean)};var Pe=r=>{let e=new Set([]),t=n=>n.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(b(r)){let n=t(r);n&&e.add(n);}return X(r)&&r.forEach(n=>{if(b(n)){let o=t(n);o&&e.add(o);}}),z(r)&&r.forEach(n=>{if(b(n)){let o=t(n);o&&e.add(o);}}),e},et=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map((o,i)=>n.has(o)?o:i===0?o.toLowerCase():o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")},rt=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join(" ")},tt=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")},nt=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join(" ")},Ge=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join("-")},ot=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join("_")},it=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(o=>n.has(o)?o:o.toLowerCase()).join(".")},st=(r,e)=>{if(!X(r)&&!b(r))return "";let t=ke(r),n=Pe(e);return t.map(i=>n.has(i)?i:i.toLowerCase()).join("-").replace(/^-+|-+$/g,"")};var Ne=r=>typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(r);var oe=r=>Object.prototype.toString.call(r)==="[object Error]"||r instanceof Error;var xe=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),Qe={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 de=r=>r.replace(/[\s_\-]+/g,"").toLowerCase(),be=Object.entries(Qe).reduce((r,[e,t])=>(r[de(e)]=t,r),{});function sn(r){if(typeof r!="object"||r===null)return false;let e=Object.prototype.toString.call(r);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(e))return false;try{return Reflect.defineProperty(r,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(r,"__proxy_detect__"),!1}catch{return true}}var ie=(r,e)=>e==="toPascalCaseSpace"?rt(r,xe):e==="slugify"?st(r,xe):e==="toCamelCase"?et(r,xe):e==="toDotCase"?it(r,xe):e==="toKebabCase"?Ge(r,xe):e==="toPascalCase"?tt(r,xe):e==="toSnakeCase"?ot(r,xe):nt(r,xe),p=(r,e={formatCase:"toLowerCase"})=>{O(e)||(e={});let t=e.formatCase;if(_(r))return ie(be[de("null")]??"Null",t);if(I(r))return "NaN";if(r===1/0)return "Infinity";if(r===-1/0)return "-Infinity";if(r instanceof Number)return ie("Number Constructor",t);if(r instanceof String)return ie("String Constructor",t);if(r instanceof Boolean)return ie("Boolean Constructor",t);let n=typeof r;if(!A(r)&&!W(r))return ie(be[de(n)]??n,t);if(Ne(r))return ie(be[de("buffer")]??"Buffer",t);if(sn(r))return ie(be[de("proxy")]??"Proxy",t);if(H(r)&&W(r?.next)&&W(r?.throw))return ie(be[de("generator")]??"Generator",t);if(oe(r)){let s=r.constructor?.name??"Error";return ie(be[de(s)]??be[de(s.replace(/\s+/g,""))]??s,t)}if(_(Object.getPrototypeOf(r)))return ie(be[de("object")]??"Object",t);let o=Object.prototype.toString.call(r).slice(8,-1)||"Object",i=be[de(o)];if(i)return ie(i,t);let a=r?.constructor?.name;return ie(a&&a!=="Object"?be[de(a)]??a:o,t)};function me({value:r,options:e,requiredValidType:t}){let{message:n,formatCase:o}=O(e)?e:{},i=Ge(t),a=p(r,{formatCase:o}),s={currentType:a,validType:i},m=`Parameter input (\`value\`) must be of type \`${i}\`, but received: \`${a}\`.`;return W(n)?b(n(s))?n(s).trim():m:b(n)?n.trim():m}var q=(r,e={})=>{if(w(r))return;let t=me({value:r,options:e,requiredValidType:"boolean"});throw new TypeError(t)};var ge=r=>typeof r=="bigint";var ms=(r,e={})=>{if(ge(r))return;let t=me({value:r,options:e,requiredValidType:"big int"});throw new TypeError(t)};var ls=(r,e={})=>{let t=y(e,"includeNaN")?e.includeNaN:void 0;if(P(r,{includeNaN:t}))return;let n=me({value:r,options:e,requiredValidType:"number"});throw new TypeError(n)};function Z(r,e){if(d(r))return;let t=me({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}var se=(r,e={})=>{if(l(r))return;let t=me({value:r,options:e,requiredValidType:"string"});throw new TypeError(t)};function J(r){return Object.prototype.toString.call(r)==="[object Map]"||r instanceof Map}var re=r=>r instanceof Date&&!I(r.getTime());var he=r=>r instanceof RegExp;function zr(r){return r instanceof ArrayBuffer}function Re(r,e,t,n=new WeakMap){if(r===e||r!==r&&e!==e)return true;if(!A(r)||!A(e))return false;if(n.get(r)===e)return true;n.set(r,e);let o=(s,m,c,u,f)=>{if(t){let g=t(s,m,c,u,f,n);if(!N(g))return g}return Re(s,m,t,n)};if(re(r)&&re(e))return r.getTime()===e.getTime();if(he(r)&&he(e))return r.source===e.source&&r.flags===e.flags;if(oe(r)&&oe(e))return r.name===e.name&&r.message===e.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(e)){let s=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),m=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);if(s.length!==m.length)return false;for(let c=0;c<s.length;c++)if(s[c]!==m[c])return false;return true}if(zr(r)&&zr(e)){if(r.byteLength!==e.byteLength)return false;let s=new Uint8Array(r),m=new Uint8Array(e);for(let c=0;c<s.length;c++)if(s[c]!==m[c])return false;return true}if(J(r)&&J(e)){if(r.size!==e.size)return false;for(let[s,m]of r)if(!e.has(s)||!Re(m,e.get(s),t,n))return false;return true}if(z(r)&&z(e)){if(r.size!==e.size)return false;for(let s of r){let m=false;for(let c of e)if(Re(s,c,t,n)){m=true;break}if(!m)return false}return true}if(d(r)&&d(e)){if(r.length!==e.length)return false;for(let s=0;s<r.length;s++)if(!o(r[s],e[s],s,r,e))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(e))return false;let i=Reflect.ownKeys(r),a=Reflect.ownKeys(e);if(i.length!==a.length)return false;for(let s of i){let m=r[s],c=e[s];if(!o(m,c,s,r,e))return false}return true}function we(r,e){return Re(r,e,void 0,new WeakMap)}var B=r=>d(r)?r.length===0:true;var k=(r,e={})=>{F(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=y(e,"sortKeys")?e.sortKeys:true,n=y(e,"sortArray")?e.sortArray:false,o=y(e,"pretty")?e.pretty:false;if(!w(t)||!w(n)||!w(o))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${p(t)}\`, 'sortArray': \`${p(n)}\`, 'pretty': \`${p(o)}\`]".`);let i=new WeakSet,a=m=>_(m)||!A(m)&&!W(m),s=m=>{if(m instanceof Number)return Number(m);if(m instanceof String)return String(m);if(m instanceof Boolean)return !!m;if(!(W(m)||ee(m))){if(ge(m))return m.toString();if(N(m)||I(m)||m===1/0||m===-1/0)return null;if(A(m)){if(i.has(m))return "[Circular]";if(i.add(m),re(m))return m.toISOString();if(J(m))return {map:Array.from(m.entries()).map(([f,g])=>[f,s(g)])};if(z(m))return {set:Array.from(m.values()).map(s)};if(d(m)){let f=m.map(s);if(n){let g=[],T=[];for(let S of f)a(S)?g.push(S):T.push(S);return g.sort((S,j)=>P(S)&&P(j)?S-j:String(S).localeCompare(String(j))),[...g,...T]}return f}let c=Object.keys(m);t&&c.sort((f,g)=>{let T=Number(f),S=Number(g);return !I(T)&&!I(S)?T-S:f.localeCompare(g)});let u={};if(H(m))for(let f of c){let g=s(m[f]);N(g)||(u[f]=g);}return u}return m}};try{return JSON.stringify(s(r),null,o?2:0)}catch(m){return console.warn("Error in safeStableStringify:",m),"{}"}};function Ie(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: \`${p(e)}\`, with value: ${k(e)}.`);if(I(r))return e==="primitives"||e==="all"?"NaN":NaN;if(l(r)||P(r))return e==="stringOrNumber"||e==="primitives"||e==="all"?String(r):r;if(w(r)||ge(r)||U(r))return e==="primitives"||e==="all"?String(r):r;if(ee(r)||W(r))return e==="all"?r.toString():r;if(d(r))return r.map(t=>Ie(t,e));if(A(r)){if(re(r))return e==="all"?r.toISOString():r;if(he(r)||oe(r)||r instanceof Promise)return e==="all"?r.toString():r;if(z(r))return e==="all"?[...r].map(n=>Ie(n,e)):r;if(J(r))return e==="all"?[...r.entries()].map(([n,o])=>[Ie(n,e),Ie(o,e)]):r;let t={};if(H(r))for(let n of Object.keys(r))t[n]=Ie(r[n],e);return t}return r}function $e(r){return U(r)?void 0:d(r)?r.reduce((t,n)=>{if(!U(n))if(d(n)){let o=$e(n);o&&!B(o)&&t.push(o);}else t.push(n);return t},[]):[]}var $a=$e,Fa=(r,e={})=>{Z(r,{message:({currentType:a,validType:s})=>`First parameter (\`inputArray\`) must be of type \`${s}\` (array literal or instance), but received: \`${a}\`.`}),F(e,{message:({currentType:a,validType:s})=>`Second parameter (\`options\`) must be of type \`${s}\`, but received: \`${a}\`.`});let t=y(e,"flatten")?e.flatten:false,n=y(e,"forceToString")?e.forceToString:false;if(!(n===false||n==="stringOrNumber"||n==="primitives"||n==="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: \`${p(n)}\`, with value: ${k(n)}.`);q(t,{message:({currentType:a,validType:s})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${s}\`, but received: \`${a}\`.`});let o=a=>{let s=[];return a.reduce((m,c)=>{let u=d(c)?o(c):Ie(c,n);return s.some(f=>we(f,u))||(s.push(u),m.push(u)),m},[])},i=a=>d(a)?a.flatMap(i):z(a)?[...a].flatMap(i):J(a)?[...a.values()].flatMap(i):[a];return o(t?i(r):r)};function qa(r,e={}){F(e,{message:({currentType:n,validType:o})=>`Second parameter (\`options\`) must be of type \`${o}\`, but received: \`${n}\`.`});let t=y(e,"removeInvalidValueNumber")?e.removeInvalidValueNumber:true;if(q(t,{message:({currentType:n,validType:o})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${o}\`, but received: \`${n}\`.`}),d(r)){let n=Array.from(r,o=>{if(ge(o))return Number(o);let a=String(o).trim().match(/-?\d+(\.\d+)?/);return a?Number(a[0]):_(o)?null:void 0});return t?$e(n):n}}function ve(r){return P(r)&&Number.isFinite(r)}function at(r,e={}){F(e,{message:({currentType:n,validType:o})=>`Second parameter (\`options\`) must be of type \`${o}\`, but received: \`${n}\`.`});let t=y(e,"removeInvalidValue")?e.removeInvalidValue:true;if(q(t,{message:({currentType:n,validType:o})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${o}\`, but received: \`${n}\`.`}),d(r)){let n=Array.from(r,o=>l(o)||ve(o)||w(o)||ge(o)?String(o):_(o)?null:void 0);return t?$e(n):n}}function Ee(r,e={}){if(!H(r))return true;O(e)||(e={});let t=y(e,"checkSymbols")?e.checkSymbols:false,n=Object.keys(r).length===0;return t?n&&Object.getOwnPropertySymbols(r).length===0:n}var V=(r,e={})=>!b(r,e);var Xe=(r,e={})=>{if(O(e)||(e={}),U(r)||r===false||I(r))return true;if(l(r))return V(r);if(d(r))return B(r);if(H(r)){let t=y(e,"checkSymbols")?e.checkSymbols:false;return Ee(r,{checkSymbols:t})}return false};var mt=(r,e={})=>!Xe(r,e);var Mm=r=>U(r)?false:l(r)?b(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)||H(r)?mt(r):!!r;var ut=r=>U(r)?false:l(r)?b(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)?r.some(ut):H(r)?Object.values(r).some(ut):false;var Xm=(r,e={})=>{if(U(r))return false;O(e)||(e={});let t=y(e,"caseInsensitive")?e.caseInsensitive:false,n=y(e,"trimString")?e.trimString:true,o=y(e,"includeIndeterminate")?e.includeIndeterminate:false;if(!w(t)||!w(n)||!w(o))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${p(t)}\`, 'trimString': \`${p(n)}\`, 'includeIndeterminate': \`${p(o)}\`].`);if(l(r)){let i=r;n&&(i=i.trim()),t&&(i=i.toLowerCase());let a=["true","on","yes","1"];return o&&a.push("indeterminate"),a.includes(i)}return P(r)?r===1:w(r)?r:false};var iu=r=>U(r)?false:l(r)?!V(r):w(r)?r:P(r,{includeNaN:true})?r!==0:d(r)?r.length>0:!!r;var Je=r=>{if(!b(r))return 0;let e=r.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),t=false;/^\(.*\)$/.test(e)&&(t=true,e=e.slice(1,-1).trim()),e=e.replace(/^[-\s]+/,m=>m.includes("-")?"-":"").replace(/[\s.,-]+$/,""),t=t||/^-/.test(e)||/^[^\d]*-/.test(e);let o=e.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),i=o.match(/,\d{2}/g);if(i&&i.length>1)o=o.replace(/,/g,"");else {let m=(o.match(/\./g)||[]).length,c=(o.match(/,/g)||[]).length;if(m>1&&c===0)o=o.replace(/\./g,"");else if(c>1&&m===0)o=o.replace(/,/g,"");else {let u=o.lastIndexOf(","),f=o.lastIndexOf(".");if(u>f)o=o.replace(/\./g,"").replace(",",".");else if(f>u)o=o.replace(/,/g,"");else if(u>f){let g=o.slice(0,u).replace(/,/g,"").replace(/\./g,""),T=o.slice(u+1);o=g+"."+T;}else if(f>u){let g=o.slice(0,f).replace(/\./g,"").replace(/,/g,""),T=o.slice(f+1);o=g+"."+T;}else u!==-1?o=o.replace(/,/g,""):f!==-1&&(o=o.replace(/\./g,""));}}let s=parseFloat(o)||0;return t?-s:s};var pu=r=>{let e={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(l(r)){let t=r.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=t.replace(/,/g,""),o=Number(n);return !I(o)&&b(n)?o:r.trim()}return r};var ct=()=>{};var ft=r=>{if(!l(r)&&!P(r))return 0;let e=String(r).trim().replace(/[^0-9]/g,"");return Number(e)||0};var pt=(r={})=>{F(r,{message:({currentType:S,validType:j})=>`Second parameter (\`options\`) must be of type \`${j}\`, but received: \`${S}\`.`});let e=y(r,"convertBooleans")?r.convertBooleans:false,t=y(r,"convertDates")?r.convertDates:false,n=y(r,"convertNumbers")?r.convertNumbers:false,o=y(r,"loggingOnFail")?r.loggingOnFail:false,i=y(r,"removeEmptyArrays")?r.removeEmptyArrays:false,a=y(r,"removeEmptyObjects")?r.removeEmptyObjects:false,s=y(r,"removeNulls")?r.removeNulls:false,m=y(r,"removeUndefined")?r.removeUndefined:false,c=y(r,"strictMode")?r.strictMode:false,u=y(r,"checkSymbols")?r.checkSymbols:false,f=y(r,"convertNaN")?r.convertNaN:false,g=y(r,"customDateFormats")?r.customDateFormats:[],T=y(r,"onError")?r.onError:ct;if(!(w(e)&&w(t)&&w(n)&&w(f)&&w(u)&&w(o)&&w(i)&&w(a)&&w(s)&&w(m)&&w(c)&&d(g)&&W(T)))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': \`${p(e)}\`, 'convertDates': \`${p(t)}\`, 'convertNumbers': \`${p(n)}\`, 'loggingOnFail': \`${p(o)}\`, 'removeEmptyArrays': \`${p(i)}\`, 'removeEmptyObjects': \`${p(a)}\`, 'removeNulls': \`${p(s)}\`, 'removeUndefined': \`${p(m)}\`, 'strictMode': \`${p(c)}\`, 'customDateFormats': \`${p(g)}\`, 'onError': \`${p(T)}\`].`);return {convertBooleans:e,convertDates:t,convertNumbers:n,convertNaN:f,loggingOnFail:o,removeEmptyArrays:i,removeEmptyObjects:a,removeNulls:s,removeUndefined:m,strictMode:c,customDateFormats:g,onError:T,checkSymbols:u}},Vr=(r,e={})=>{let t=pt(e);if(_(r))return t.removeNulls?void 0:null;if(N(r))return t.removeUndefined,void 0;if(l(r)){let n=r.trim();if(t.convertNaN&&n==="NaN")return NaN;if(t.convertNumbers&&!I(Number(n)))return Number(n);if(t.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(t.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(t.customDateFormats?.length)for(let o of t.customDateFormats){let i=an(n,o);if(i)return i}}return t.strictMode?void 0:n}if(d(r)){let n=r.map(o=>Vr(o,t)).filter(o=>!N(o));return t.removeEmptyArrays&&B(n)?void 0:n}if(H(r)){let n={};for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let i=Vr(r[o],t);N(i)||(n[o]=i);}return t.removeEmptyObjects&&Ee(n,{checkSymbols:t.checkSymbols})?void 0:n}return t.strictMode?void 0:r},an=(r,e)=>{if(!l(r)||!l(e))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${p(r)}\`, 'format': \`${p(e)}\`]".`);let t=r.split(/[-/]/).map(Number);if(t.length!==3||t.some(I))return null;let n,o,i;if(e==="DD/MM/YYYY")[n,o,i]=t;else if(e==="MM/DD/YYYY")[o,n,i]=t;else return null;o-=1;let a=new Date(i,o,n);return a.getFullYear()!==i||a.getMonth()!==o||a.getDate()!==n?null:a};function lt(r,e={}){if(_(r))return null;let t=pt(e);if(t.convertNaN&&(I(r)||b(r)&&r==="NaN"))return NaN;if(t.convertNumbers&&!I(Number(r))&&P(ft(r)))return Number(r);if(l(r))try{let n=mn(r);t.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),t.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 o=JSON.parse(n);return Vr(o,t)}catch(n){t.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),t.onError(oe(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function mn(r){let e=new Set(["\\",'"',"/","b","f","n","r","t","u"]),t="",n=false,o=false,i=false;for(let a=0;a<r.length;a++){let s=r[a];if(i){n?s==="'"?t+="'":e.has(s)?s==="\\"?t+="\\\\":s==='"'?t+='\\"':t+="\\"+s:t+="\\\\"+s:o?s==='"'?t+='\\"':e.has(s)?t+="\\"+s:t+="\\\\"+s:t+="\\"+s,i=false;continue}if(s==="\\"){i=true;continue}if(!n&&!o){if(s==="'"){t+='"',n=true;continue}if(s==='"'){t+='"',o=true;continue}}else if(n){if(s==="'"){t+='"',n=false;continue}}else if(o&&s==='"'){t+='"',o=false;continue}t+=s;}return t}var un=r=>{try{if(W(structuredClone))return structuredClone(r)}catch{}return JSON.parse(JSON.stringify(r))},Gr=(r,e)=>{if(!A(r))return r;let[t,...n]=e;if(d(r))for(let o of r)A(o)&&Gr(o,e);else B(n)?O(r)&&delete r[t]:O(r)&&A(r[t])&&Gr(r[t],n);return r},dt=(r,e)=>{if(!O(r))return r;let[t,...n]=e;return n.length===0?O(r)&&delete r[t]:O(r[t])&&dt(r[t],n),r};function Gu(r,e,t=true){if(Ee(r,{checkSymbols:true}))return {};if(Z(e,{message:({currentType:o,validType:i})=>`Second parameter (\`keysToDelete\`) must be of type \`${i}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${o}\`, with value: ${k(e)}.`}),!e.every(o=>O(o)&&"key"in o))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: ${k(e)}.`);let n=t?un(r):r;for(let{key:o,deep:i}of e){if(se(o,{message:({currentType:s,validType:m})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${m}\`, but received: \`${s}\`.`}),!N(i)&&!w(i))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${o}", deep: ${i}) must be of type \`boolean\` or \`undefined\`, but received: \`${p(i)}\`.`);let a=o.split(".");n=i?Gr(n,a):dt(n,a);}return n}function Fe(r){return r!=null&&typeof r=="object"&&cn.has(Object.prototype.toString.call(r))}var cn=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 gc(r,e={}){F(e,{message:({currentType:i,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${i}\`.`});let t=y(e,"removeEmptyObjects")?e.removeEmptyObjects:false,n=y(e,"removeEmptyArrays")?e.removeEmptyArrays:false;function o(i,a){if(U(i))return;let{removeEmptyArrays:s,removeEmptyObjects:m,isRoot:c}=a;if(!w(m)||!w(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p(m)}\`, 'removeEmptyArrays': \`${p(s)}\`].`);if(P(i)||b(i)&&!I(Number(i))){let u=Number(i);return ve(u)?u:void 0}if(d(i)){let u=i.map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(z(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(J(i)){let u=Array.from(i.entries()).map(([f,g])=>{let T=o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false}),S=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});return !N(T)&&!N(S)?[T,S]:void 0}).filter(f=>!N(f));return s&&(u=u.filter(f=>!(d(f)&&f.length===0))),s&&B(u)?void 0:u}if(Ne(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(Fe(i))if(i instanceof BigInt64Array||i instanceof BigUint64Array){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}else {let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(re(i))return I(i.getTime())?0:i.getTime();if(H(i)){let u={};for(let[f,g]of Object.entries(i)){let T=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});N(T)||(u[f]=T);}return m&&Ee(u)?c?{}:void 0:u}}return o(r,{removeEmptyObjects:t,removeEmptyArrays:n,isRoot:true})}function $c(r,e={}){F(e,{message:({currentType:i,validType:a})=>`Second parameter (\`options\`) must be of type \`${a}\`, but received: \`${i}\`.`});let t=y(e,"removeEmptyObjects")?e.removeEmptyObjects:false,n=y(e,"removeEmptyArrays")?e.removeEmptyArrays:false;function o(i,a){if(U(i))return;let{removeEmptyArrays:s,removeEmptyObjects:m,isRoot:c}=a;if(!w(m)||!w(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${p(m)}\`, 'removeEmptyArrays': \`${p(s)}\`].`);if(P(i)||l(i))return String(i);if(re(i))return i.toISOString();if(he(i))return i.toString();if(Ne(i))return Array.from(i).map(u=>String(u)).filter(u=>!N(u));if(Fe(i))if(i instanceof BigInt64Array||i instanceof BigUint64Array){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).map(f=>String(f)).filter(f=>!N(f));return s&&B(u)?void 0:u}else {let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).map(f=>String(f)).filter(f=>!N(f));return s&&B(u)?void 0:u}if(z(i)){let u=Array.from(i).map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&B(u)?void 0:u}if(J(i)){let u=Array.from(i.entries()).map(([f,g])=>[o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false}),o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})]).filter(([f,g])=>!N(f)&&!N(g));return s&&B(u)?void 0:u}if(d(i)){let u=i.map(f=>o(f,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false})).filter(f=>!N(f));return s&&(u=u.filter(f=>!(d(f)&&f.length===0))),s&&B(u)?void 0:u}if(H(i)){let u={};for(let[f,g]of Object.entries(i)){let T=o(g,{removeEmptyObjects:m,removeEmptyArrays:s,isRoot:false});N(T)?d(g)&&!s&&(u[f]=[]):u[f]=T;}return m&&Object.keys(u).length===0?c?{}:void 0:u}}return o(r,{removeEmptyObjects:t,removeEmptyArrays:n,isRoot:true})}var _e=()=>typeof window>"u"||typeof document>"u";var Kc=(r="on_processing")=>{if(_e())return;se(r,{message({validType:t,currentType:n}){return `First parameter \`className\` must be of type \`${t}\`, but received: \`${n}\`.`}});let{documentElement:e}=document;e&&!e.classList.contains(r)&&e.classList.add(r);},qc=(r="on_processing")=>{if(_e())return;se(r,{message({validType:t,currentType:n}){return `First parameter \`className\` must be of type \`${t}\`, but received: \`${n}\`.`}});let{documentElement:e}=document;e&&e.classList.contains(r)&&e.classList.remove(r);},zc=()=>{if(_e())return;let r=document.activeElement;r instanceof HTMLElement&&r.blur();},Vc=r=>{if(_e())return;O(r)||(r={});let e=y(r,"behavior")&&b(r.behavior)&&["auto","instant","smooth"].includes(r.behavior.trim())?r.behavior:"smooth",t=y(r,"timeout")&&P(r.timeout)&&r.timeout>=1?r.timeout:1;setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:e});},t);};function G(r){return typeof r=="number"&&Number.isInteger(r)}var lf=(r,e={})=>{if(!l(r)&&!ve(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${p(r)}\`, with value: ${k(r)}.`);F(e,{message:({currentType:D,validType:Q})=>`Second parameter (\`options\`) must be of type \`${Q}\`, but received: \`${D}\`.`});let t=y(e,"decimal")?e.decimal:false,n=y(e,"totalDecimal")?e.totalDecimal:2,o=y(e,"endDecimal")?e.endDecimal:true,i=y(e,"indianFormat")?e.indianFormat:false,a=y(e,"suffixCurrency")?e.suffixCurrency:"",s=y(e,"suffixDecimal")?e.suffixDecimal:"",m=y(e,"roundedDecimal")?e.roundedDecimal:"round",c=y(e,"negativeFormat")?e.negativeFormat:"dash",u=y(e,"separatorDecimals")?e.separatorDecimals:",",f=y(e,"separator")?e.separator:".";if(!l(f)||!l(u)||!l(a)||!l(s))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${p(f)}\`, 'separatorDecimals': \`${p(u)}\`, 'suffixCurrency': \`${p(a)}\`, 'suffixDecimal': \`${p(s)}\`].`);if(!w(t)||!w(o)||!w(i))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${p(t)}\`, 'endDecimal': \`${p(o)}\`, 'indianFormat': \`${p(i)}\`].`);if(!G(n))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${p(n)}\`, with value: \`${k(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: \`${p(m)}\`, with value: ${k(m)}.`);if(!(c==="abs"||c==="brackets"||c==="dash"||O(c)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${p(c)}\`, with value: ${k(c)}.`);let g=l(r)?Je(r):r;if(I(g))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let T=Math.abs(g),S=Math.pow(10,n);if(m){let D=T*S;switch(m){case "round":T=Math.round(D)/S;break;case "ceil":T=Math.ceil(D)/S;break;case "floor":T=Math.floor(D)/S;break}}let j="",x="";if(m){let D=T*S;switch(m){case "round":T=Math.round(D)/S;break;case "ceil":T=Math.ceil(D)/S;break;case "floor":T=Math.floor(D)/S;break}}if(m)[j,x]=T.toFixed(n).split("."),x=x??"".padEnd(n,"0");else {let D=String(T).split(".");j=D[0],x=(D[1]||"").slice(0,n).padEnd(n,"0");}let v,K=(D,Q)=>{let ae=D.slice(-3),ne=D.slice(0,-3);return ne?ne.replace(/\B(?=(\d{2})+(?!\d))/g,Q)+Q+ae:ae};if(i?(f=",",u=".",v=(a.trim().length?a:"")+K(j,f)):v=(a.trim().length?a:"")+j.replace(/\B(?=(\d{3})+(?!\d))/g,f),t&&!N(x)&&n>0){let D=u+x;o&&(D+=s),v+=D;}if(g<0){if(c==="dash")v="-"+v;else if(c==="brackets")v="("+v+")";else if(c!=="abs"){if(O(c))if(y(c,"custom")){let D=c.custom;if(!W(D))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${p(D)}\`.`);let Q=D(v);se(Q,{message:({currentType:ae,validType:ne})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${ne}\` type value, but received: \`${ae}\`.`}),v=Q;}else {let D=c.style||"dash",Q=w(c.space)?c.space:false;if(q(Q,{message:({currentType:ae,validType:ne})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${ne}\`, but received: \`${ae}\`.`}),!(D==="abs"||D==="brackets"||D==="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: \`${p(D)}\`, with value: ${k(D)}.`);switch(D){case "dash":v="-"+(Q?" ":"")+v;break;case "brackets":v=Q?`( ${v} )`:`(${v})`;break;}}}}return v};var hf=(r,e=",")=>{if(!l(r)&&!ve(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${p(r)}\`.`);if(!l(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${p(e)}\`.`);e=l(e)?e:",";let t=e==="."?",":".",n=r.toString().trim(),o=n.lastIndexOf("."),i=n.lastIndexOf(","),a="";o>i?a=".":i>o&&(a=",");let s=n,m="";if(a){let u=n.split(a);s=u.slice(0,-1).join(a),m=u.slice(-1)[0];}s=s.replace(/[^\d]/g,"");let c=s.replace(/\B(?=(\d{3})+(?!\d))/g,e);return m?`${c}${t}${m}`:c};function Ef(r,e={}){if(U(r))return "";if(!l(r)&&!P(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${p(r)}\`.`);F(e,{message:({currentType:K,validType:D})=>`Second parameter (\`options\`) must be of type \`${D}\`, but received: \`${K}\`.`});let t=y(e,"separator")?e.separator:" ",n=y(e,"takeNumberOnly")?e.takeNumberOnly:false,o=y(e,"checkValidOnly")?e.checkValidOnly:false,i=y(e,"plusNumberCountry")?e.plusNumberCountry:"",a=y(e,"openingNumberCountry")?e.openingNumberCountry:"",s=y(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!w(n)||!w(o))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': \`${p(n)}\`, 'checkValidOnly': \`${p(o)}\`].`);if(!l(t)||!l(i)||!l(a)||!l(s))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${p(t)}\`, 'plusNumberCountry': \`${p(i)}\`, 'openingNumberCountry': \`${p(a)}\`, 'closingNumberCountry': \`${p(s)}\`].`);if(l(r)||(r=String(r)),n)return r.replace(/\D/g,"");if(o)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let m=i.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(m)&&(m="+"+m.replace(/^\++/,""));let c="",u="",f={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"},g=m.replace(/^\+/,"").replace(/[^\d]/g,"");f[g]&&r.startsWith("0")?(c=r.slice(1,4),u=r.slice(4)):(c=r.slice(0,4),u=r.slice(4));let T=m.trim(),S=a.trim(),j=s.trim(),x="";T?S&&j?x=`${S}${T}${j} ${c}`:S&&!j?x=`${S}${T} ${c}`:!S&&j?x=`${T}${j} ${c}`:x=`${T} ${c}`:x=`${c}`;let v={0:t,4:t,8:t,12:t,16:t,20:t,24:t};for(let K=0;K<u.length;K++){let D=K+c.length;x+=(v[D]||"")+u[K];}return x}function Ae(r){return (e={})=>{let t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}function ue(r){return (e,t)=>{let n=t?.context?String(t.context):"standalone",o;if(n==="formatting"&&r.formattingValues){let a=r.defaultFormattingWidth||r.defaultWidth,s=t?.width?String(t.width):a;o=r.formattingValues[s]||r.formattingValues[a];}else {let a=r.defaultWidth,s=t?.width?String(t.width):r.defaultWidth;o=r.values[s]||r.values[a];}let i=r.argumentCallback?r.argumentCallback(e):e;return o[i]}}function ce(r){return (e,t={})=>{let n=t.width,o=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],i=e.match(o);if(!i)return null;let a=i[0],s=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],m=Array.isArray(s)?pn(s,f=>f.test(a)):fn(s,f=>f.test(a)),c;c=r.valueCallback?r.valueCallback(m):m,c=t.valueCallback?t.valueCallback(c):c;let u=e.slice(a.length);return {value:c,rest:u}}}function fn(r,e){for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function pn(r,e){for(let t=0;t<r.length;t++)if(e(r[t]))return t}function Ze(r){return (e,t={})=>{let n=e.match(r.matchPattern);if(!n)return null;let o=n[0],i=e.match(r.parsePattern);if(!i)return null;let a=r.valueCallback?r.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;let s=e.slice(o.length);return {value:a,rest:s}}}var er=6048e5,yt=864e5,bt=6e4,gt=36e5,ht=1e3;var Qr=Symbol.for("constructDateFrom");function $(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&Qr in r?r[Qr](e):r instanceof Date?new r.constructor(e):new Date(e)}function xt(r,...e){let t=$.bind(null,e.find(n=>typeof n=="object"));return e.map(t)}var gn={};function fe(){return gn}function R(r,e){return $(e||r,r)}function te(r,e){let t=fe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,o=R(r,e?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}var hn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ot=(r,e,t)=>{let n,o=hn[r];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};var wn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tt=(r,e,t,n)=>wn[r];var xn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},On={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Tn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vn=(r,e)=>{let t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},kt={ordinalNumber:vn,era:ue({values:xn,defaultWidth:"wide"}),quarter:ue({values:On,defaultWidth:"wide",argumentCallback:r=>r-1}),month:ue({values:Tn,defaultWidth:"wide"}),day:ue({values:kn,defaultWidth:"wide"}),dayPeriod:ue({values:Pn,defaultWidth:"wide",formattingValues:Nn,defaultFormattingWidth:"wide"})};var En=/^(\d+)(th|st|nd|rd)?/i,An=/\d+/i,Sn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dn={any:[/^b/i,/^(a|c)/i]},Rn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},In={any:[/1/i,/2/i,/3/i,/4/i]},jn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$n={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ln={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pt={ordinalNumber:Ze({matchPattern:En,parsePattern:An,valueCallback:r=>parseInt(r,10)}),era:ce({matchPatterns:Sn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),quarter:ce({matchPatterns:Rn,defaultMatchWidth:"wide",parsePatterns:In,defaultParseWidth:"any",valueCallback:r=>r+1}),month:ce({matchPatterns:jn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),day:ce({matchPatterns:Cn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),dayPeriod:ce({matchPatterns:Fn,defaultMatchWidth:"any",parsePatterns:Ln,defaultParseWidth:"any"})};var Wn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Un={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nt={date:Ae({formats:Wn,defaultWidth:"full"}),time:Ae({formats:Un,defaultWidth:"full"}),dateTime:Ae({formats:Yn,defaultWidth:"full"})};var Se={code:"en-US",formatDistance:Ot,formatLong:Nt,formatRelative:Tt,localize:kt,match:Pt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Bn={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},vt=(r,e,t)=>{let n,o=Bn[r];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"dalam waktu "+n:n+" yang lalu":n};var Hn={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},_n={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Kn={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Et={date:Ae({formats:Hn,defaultWidth:"full"}),time:Ae({formats:_n,defaultWidth:"full"}),dateTime:Ae({formats:Kn,defaultWidth:"full"})};var qn={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},At=(r,e,t,n)=>qn[r];var zn={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},Vn={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},Gn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},Qn={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Xn={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Jn={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Zn=(r,e)=>"ke-"+Number(r),St={ordinalNumber:Zn,era:ue({values:zn,defaultWidth:"wide"}),quarter:ue({values:Vn,defaultWidth:"wide",argumentCallback:r=>r-1}),month:ue({values:Gn,defaultWidth:"wide"}),day:ue({values:Qn,defaultWidth:"wide"}),dayPeriod:ue({values:Xn,defaultWidth:"wide",formattingValues:Jn,defaultFormattingWidth:"wide"})};var eo=/^ke-(\d+)?/i,ro=/\d+/i,to={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},no={any:[/^s/i,/^(m|e)/i]},oo={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},io={any:[/1/i,/2/i,/3/i,/4/i]},so={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},ao={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},mo={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},uo={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},co={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},fo={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Dt={ordinalNumber:Ze({matchPattern:eo,parsePattern:ro,valueCallback:r=>parseInt(r,10)}),era:ce({matchPatterns:to,defaultMatchWidth:"wide",parsePatterns:no,defaultParseWidth:"any"}),quarter:ce({matchPatterns:oo,defaultMatchWidth:"wide",parsePatterns:io,defaultParseWidth:"any",valueCallback:r=>r+1}),month:ce({matchPatterns:so,defaultMatchWidth:"wide",parsePatterns:ao,defaultParseWidth:"any"}),day:ce({matchPatterns:mo,defaultMatchWidth:"wide",parsePatterns:uo,defaultParseWidth:"any"}),dayPeriod:ce({matchPatterns:co,defaultMatchWidth:"any",parsePatterns:fo,defaultParseWidth:"any"})};var Xr={code:"id",formatDistance:vt,formatLong:Et,formatRelative:At,localize:St,match:Dt,options:{weekStartsOn:1,firstWeekContainsDate:1}};function rr(r,e,t){let n=R(r,t?.in);return isNaN(e)?$(t?.in||r,NaN):(e&&n.setDate(n.getDate()+e),n)}function ye(r,e){return te(r,{...e,weekStartsOn:1})}function tr(r,e){let t=R(r,e?.in),n=t.getFullYear(),o=$(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=ye(o),a=$(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let s=ye(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function je(r){let e=R(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function Jr(r,e){let t=R(r,e?.in);return t.setHours(0,0,0,0),t}function Rt(r,e,t){let[n,o]=xt(t?.in,r,e),i=Jr(n),a=Jr(o),s=+i-je(i),m=+a-je(a);return Math.round((s-m)/yt)}function It(r,e){let t=tr(r,e),n=$(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ye(n)}function Me(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function jt(r){return !(!Me(r)&&typeof r!="number"||isNaN(+R(r)))}function Mt(r,e){let t=R(r,e?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Ct(r,e){let t=R(r,e?.in);return Rt(t,Mt(t))+1}function nr(r,e){let t=R(r,e?.in),n=+ye(t)-+It(t);return Math.round(n/er)+1}function Le(r,e){let t=R(r,e?.in),n=t.getFullYear(),o=fe(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=$(e?.in||r,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);let s=te(a,e),m=$(e?.in||r,0);m.setFullYear(n,0,i),m.setHours(0,0,0,0);let c=te(m,e);return +t>=+s?n+1:+t>=+c?n:n-1}function $t(r,e){let t=fe(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,o=Le(r,e),i=$(e?.in||r,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),te(i,e)}function or(r,e){let t=R(r,e?.in),n=+te(t,e)-+$t(t,e);return Math.round(n/er)+1}function L(r,e){let t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}var Oe={y(r,e){let t=r.getFullYear(),n=t>0?t:1-t;return L(e==="yy"?n%100:n,e.length)},M(r,e){let t=r.getMonth();return e==="M"?String(t+1):L(t+1,2)},d(r,e){return L(r.getDate(),e.length)},a(r,e){let t=r.getHours()/12>=1?"pm":"am";switch(e){case "a":case "aa":return t.toUpperCase();case "aaa":return t;case "aaaaa":return t[0];case "aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return L(r.getHours()%12||12,e.length)},H(r,e){return L(r.getHours(),e.length)},m(r,e){return L(r.getMinutes(),e.length)},s(r,e){return L(r.getSeconds(),e.length)},S(r,e){let t=e.length,n=r.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return L(o,e.length)}};var We={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zr={G:function(r,e,t){let n=r.getFullYear()>0?1:0;switch(e){case "G":case "GG":case "GGG":return t.era(n,{width:"abbreviated"});case "GGGGG":return t.era(n,{width:"narrow"});case "GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){let n=r.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Oe.y(r,e)},Y:function(r,e,t,n){let o=Le(r,n),i=o>0?o:1-o;if(e==="YY"){let a=i%100;return L(a,2)}return e==="Yo"?t.ordinalNumber(i,{unit:"year"}):L(i,e.length)},R:function(r,e){let t=tr(r);return L(t,e.length)},u:function(r,e){let t=r.getFullYear();return L(t,e.length)},Q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case "Q":return String(n);case "QQ":return L(n,2);case "Qo":return t.ordinalNumber(n,{unit:"quarter"});case "QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case "QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case "QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case "q":return String(n);case "qq":return L(n,2);case "qo":return t.ordinalNumber(n,{unit:"quarter"});case "qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case "qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case "qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){let n=r.getMonth();switch(e){case "M":case "MM":return Oe.M(r,e);case "Mo":return t.ordinalNumber(n+1,{unit:"month"});case "MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case "MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case "MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){let n=r.getMonth();switch(e){case "L":return String(n+1);case "LL":return L(n+1,2);case "Lo":return t.ordinalNumber(n+1,{unit:"month"});case "LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case "LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case "LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){let o=or(r,n);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):L(o,e.length)},I:function(r,e,t){let n=nr(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):L(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):Oe.d(r,e)},D:function(r,e,t){let n=Ct(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):L(n,e.length)},E:function(r,e,t){let n=r.getDay();switch(e){case "E":case "EE":case "EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case "EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case "EEEEEE":return t.day(n,{width:"short",context:"formatting"});case "EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){let o=r.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(e){case "e":return String(i);case "ee":return L(i,2);case "eo":return t.ordinalNumber(i,{unit:"day"});case "eee":return t.day(o,{width:"abbreviated",context:"formatting"});case "eeeee":return t.day(o,{width:"narrow",context:"formatting"});case "eeeeee":return t.day(o,{width:"short",context:"formatting"});case "eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){let o=r.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(e){case "c":return String(i);case "cc":return L(i,e.length);case "co":return t.ordinalNumber(i,{unit:"day"});case "ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case "ccccc":return t.day(o,{width:"narrow",context:"standalone"});case "cccccc":return t.day(o,{width:"short",context:"standalone"});case "cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(r,e,t){let n=r.getDay(),o=n===0?7:n;switch(e){case "i":return String(o);case "ii":return L(o,e.length);case "io":return t.ordinalNumber(o,{unit:"day"});case "iii":return t.day(n,{width:"abbreviated",context:"formatting"});case "iiiii":return t.day(n,{width:"narrow",context:"formatting"});case "iiiiii":return t.day(n,{width:"short",context:"formatting"});case "iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){let o=r.getHours()/12>=1?"pm":"am";switch(e){case "a":case "aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case "aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(r,e,t){let n=r.getHours(),o;switch(n===12?o=We.noon:n===0?o=We.midnight:o=n/12>=1?"pm":"am",e){case "b":case "bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case "bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(r,e,t){let n=r.getHours(),o;switch(n>=17?o=We.evening:n>=12?o=We.afternoon:n>=4?o=We.morning:o=We.night,e){case "B":case "BB":case "BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case "BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case "BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Oe.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):Oe.H(r,e)},K:function(r,e,t){let n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):L(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):L(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):Oe.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):Oe.s(r,e)},S:function(r,e){return Oe.S(r,e)},X:function(r,e,t){let n=r.getTimezoneOffset();if(n===0)return "Z";switch(e){case "X":return Lt(n);case "XXXX":case "XX":return Ce(n);case "XXXXX":case "XXX":default:return Ce(n,":")}},x:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "x":return Lt(n);case "xxxx":case "xx":return Ce(n);case "xxxxx":case "xxx":default:return Ce(n,":")}},O:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "O":case "OO":case "OOO":return "GMT"+Ft(n,":");case "OOOO":default:return "GMT"+Ce(n,":")}},z:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case "z":case "zz":case "zzz":return "GMT"+Ft(n,":");case "zzzz":default:return "GMT"+Ce(n,":")}},t:function(r,e,t){let n=Math.trunc(+r/1e3);return L(n,e.length)},T:function(r,e,t){return L(+r,e.length)}};function Ft(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),o=Math.trunc(n/60),i=n%60;return i===0?t+String(o):t+String(o)+e+L(i,2)}function Lt(r,e){return r%60===0?(r>0?"-":"+")+L(Math.abs(r)/60,2):Ce(r,e)}function Ce(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),o=L(Math.trunc(n/60),2),i=L(n%60,2);return t+o+e+i}var Wt=(r,e)=>{switch(r){case "P":return e.date({width:"short"});case "PP":return e.date({width:"medium"});case "PPP":return e.date({width:"long"});case "PPPP":default:return e.date({width:"full"})}},Ut=(r,e)=>{switch(r){case "p":return e.time({width:"short"});case "pp":return e.time({width:"medium"});case "ppp":return e.time({width:"long"});case "pppp":default:return e.time({width:"full"})}},po=(r,e)=>{let t=r.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return Wt(r,e);let i;switch(n){case "P":i=e.dateTime({width:"short"});break;case "PP":i=e.dateTime({width:"medium"});break;case "PPP":i=e.dateTime({width:"long"});break;case "PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Wt(n,e)).replace("{{time}}",Ut(o,e))},Ke={p:Ut,P:po};var lo=/^D+$/,yo=/^Y+$/,bo=["D","DD","YY","YYYY"];function ir(r){return lo.test(r)}function sr(r){return yo.test(r)}function qe(r,e,t){let n=go(r,e,t);if(console.warn(n),bo.includes(r))throw new RangeError(n)}function go(r,e,t){let n=r[0]==="Y"?"years":"days of the month";return `Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var ho=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xo=/^'([^]*?)'?$/,Oo=/''/g,To=/[a-zA-Z]/;function Yt(r,e,t){let n=fe(),o=t?.locale??n.locale??Se,i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=R(r,t?.in);if(!jt(s))throw new RangeError("Invalid time value");let m=e.match(wo).map(u=>{let f=u[0];if(f==="p"||f==="P"){let g=Ke[f];return g(u,o.formatLong)}return u}).join("").match(ho).map(u=>{if(u==="''")return {isToken:false,value:"'"};let f=u[0];if(f==="'")return {isToken:false,value:ko(u)};if(Zr[f])return {isToken:true,value:u};if(f.match(To))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return {isToken:false,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));let c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return m.map(u=>{if(!u.isToken)return u.value;let f=u.value;(!t?.useAdditionalWeekYearTokens&&sr(f)||!t?.useAdditionalDayOfYearTokens&&ir(f))&&qe(f,e,String(r));let g=Zr[f[0]];return g(s,f,o.localize,c)}).join("")}function ko(r){let e=r.match(xo);return e?e[1].replace(Oo,"'"):r}function Bt(){return Object.assign({},fe())}function Ht(r,e){let t=R(r,e?.in).getDay();return t===0?7:t}function _t(r,e){let t=Po(e)?new e(0):$(e,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function Po(r){return typeof r=="function"&&r.prototype?.constructor===r}var No=10,ar=class{subPriority=0;validate(e,t){return true}},mr=class extends ar{constructor(e,t,n,o,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=o,i&&(this.subPriority=i);}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},ur=class extends ar{priority=No;subPriority=-1;constructor(e,t){super(),this.context=e||(n=>$(t,n));}set(e,t){return t.timestampIsSet?e:$(e,_t(e,this.context))}};var h=class{run(e,t,n,o){let i=this.parse(e,t,n,o);return i?{setter:new mr(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return true}};var cr=class extends h{priority=140;parse(e,t,n){switch(t){case "G":case "GG":case "GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case "GGGGG":return n.era(e,{width:"narrow"});case "GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var C={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},pe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Y(r,e){return r&&{value:e(r.value),rest:r.rest}}function M(r,e){let t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function le(r,e){let t=e.match(r);if(!t)return null;if(t[0]==="Z")return {value:0,rest:e.slice(1)};let n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return {value:n*(o*gt+i*bt+a*ht),rest:e.slice(t[0].length)}}function fr(r){return M(C.anyDigitsSigned,r)}function E(r,e){switch(r){case 1:return M(C.singleDigit,e);case 2:return M(C.twoDigits,e);case 3:return M(C.threeDigits,e);case 4:return M(C.fourDigits,e);default:return M(new RegExp("^\\d{1,"+r+"}"),e)}}function Ue(r,e){switch(r){case 1:return M(C.singleDigitSigned,e);case 2:return M(C.twoDigitsSigned,e);case 3:return M(C.threeDigitsSigned,e);case 4:return M(C.fourDigitsSigned,e);default:return M(new RegExp("^-?\\d{1,"+r+"}"),e)}}function Ye(r){switch(r){case "morning":return 4;case "evening":return 17;case "pm":case "noon":case "afternoon":return 12;case "am":case "midnight":case "night":default:return 0}}function pr(r,e){let t=e>0,n=t?e:1-e,o;if(n<=50)o=r||100;else {let i=n+50,a=Math.trunc(i/100)*100,s=r>=i%100;o=r+a-(s?100:0);}return t?o:1-o}function lr(r){return r%400===0||r%4===0&&r%100!==0}var dr=class extends h{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){let o=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case "y":return Y(E(4,e),o);case "yo":return Y(n.ordinalNumber(e,{unit:"year"}),o);default:return Y(E(t.length,e),o)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let o=e.getFullYear();if(n.isTwoDigitYear){let a=pr(n.year,o);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let i=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};var yr=class extends h{priority=130;parse(e,t,n){let o=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case "Y":return Y(E(4,e),o);case "Yo":return Y(n.ordinalNumber(e,{unit:"year"}),o);default:return Y(E(t.length,e),o)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,o){let i=Le(e,o);if(n.isTwoDigitYear){let s=pr(n.year,i);return e.setFullYear(s,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),te(e,o)}let a=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),te(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var br=class extends h{priority=130;parse(e,t){return t==="R"?Ue(4,e):Ue(t.length,e)}set(e,t,n){let o=$(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),ye(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var gr=class extends h{priority=130;parse(e,t){return t==="u"?Ue(4,e):Ue(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var hr=class extends h{priority=120;parse(e,t,n){switch(t){case "Q":case "QQ":return E(t.length,e);case "Qo":return n.ordinalNumber(e,{unit:"quarter"});case "QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case "QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case "QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var wr=class extends h{priority=120;parse(e,t,n){switch(t){case "q":case "qq":return E(t.length,e);case "qo":return n.ordinalNumber(e,{unit:"quarter"});case "qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case "qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case "qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var xr=class extends h{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){let o=i=>i-1;switch(t){case "M":return Y(M(C.month,e),o);case "MM":return Y(E(2,e),o);case "Mo":return Y(n.ordinalNumber(e,{unit:"month"}),o);case "MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case "MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case "MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var Or=class extends h{priority=110;parse(e,t,n){let o=i=>i-1;switch(t){case "L":return Y(M(C.month,e),o);case "LL":return Y(E(2,e),o);case "Lo":return Y(n.ordinalNumber(e,{unit:"month"}),o);case "LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case "LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case "LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Kt(r,e,t){let n=R(r,t?.in),o=or(n,t)-e;return n.setDate(n.getDate()-o*7),R(n,t?.in)}var Tr=class extends h{priority=100;parse(e,t,n){switch(t){case "w":return M(C.week,e);case "wo":return n.ordinalNumber(e,{unit:"week"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,o){return te(Kt(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function qt(r,e,t){let n=R(r,t?.in),o=nr(n,t)-e;return n.setDate(n.getDate()-o*7),n}var kr=class extends h{priority=100;parse(e,t,n){switch(t){case "I":return M(C.week,e);case "Io":return n.ordinalNumber(e,{unit:"week"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ye(qt(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var vo=[31,28,31,30,31,30,31,31,30,31,30,31],Eo=[31,29,31,30,31,30,31,31,30,31,30,31],Pr=class extends h{priority=90;subPriority=1;parse(e,t,n){switch(t){case "d":return M(C.date,e);case "do":return n.ordinalNumber(e,{unit:"date"});default:return E(t.length,e)}}validate(e,t){let n=e.getFullYear(),o=lr(n),i=e.getMonth();return o?t>=1&&t<=Eo[i]:t>=1&&t<=vo[i]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Nr=class extends h{priority=90;subpriority=1;parse(e,t,n){switch(t){case "D":case "DD":return M(C.dayOfYear,e);case "Do":return n.ordinalNumber(e,{unit:"date"});default:return E(t.length,e)}}validate(e,t){let n=e.getFullYear();return lr(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function Be(r,e,t){let n=fe(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=R(r,t?.in),a=i.getDay(),m=(e%7+7)%7,c=7-o,u=e<0||e>6?e-(a+c)%7:(m+c)%7-(a+c)%7;return rr(i,u,t)}var vr=class extends h{priority=90;parse(e,t,n){switch(t){case "E":case "EE":case "EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case "EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Er=class extends h{priority=90;parse(e,t,n,o){let i=a=>{let s=Math.floor((a-1)/7)*7;return (a+o.weekStartsOn+6)%7+s};switch(t){case "e":case "ee":return Y(E(t.length,e),i);case "eo":return Y(n.ordinalNumber(e,{unit:"day"}),i);case "eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "eeeee":return n.day(e,{width:"narrow",context:"formatting"});case "eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case "eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ar=class extends h{priority=90;parse(e,t,n,o){let i=a=>{let s=Math.floor((a-1)/7)*7;return (a+o.weekStartsOn+6)%7+s};switch(t){case "c":case "cc":return Y(E(t.length,e),i);case "co":return Y(n.ordinalNumber(e,{unit:"day"}),i);case "ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case "ccccc":return n.day(e,{width:"narrow",context:"standalone"});case "cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case "cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return e=Be(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function zt(r,e,t){let n=R(r,t?.in),o=Ht(n,t),i=e-o;return rr(n,i,t)}var Sr=class extends h{priority=90;parse(e,t,n){let o=i=>i===0?7:i;switch(t){case "i":case "ii":return E(t.length,e);case "io":return n.ordinalNumber(e,{unit:"day"});case "iii":return Y(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case "iiiii":return Y(n.day(e,{width:"narrow",context:"formatting"}),o);case "iiiiii":return Y(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case "iiii":default:return Y(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=zt(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Dr=class extends h{priority=80;parse(e,t,n){switch(t){case "a":case "aa":case "aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var Rr=class extends h{priority=80;parse(e,t,n){switch(t){case "b":case "bb":case "bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Ir=class extends h{priority=80;parse(e,t,n){switch(t){case "B":case "BB":case "BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case "BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case "BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Ye(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var jr=class extends h{priority=70;parse(e,t,n){switch(t){case "h":return M(C.hour12h,e);case "ho":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let o=e.getHours()>=12;return o&&n<12?e.setHours(n+12,0,0,0):!o&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Mr=class extends h{priority=70;parse(e,t,n){switch(t){case "H":return M(C.hour23h,e);case "Ho":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Cr=class extends h{priority=70;parse(e,t,n){switch(t){case "K":return M(C.hour11h,e);case "Ko":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var $r=class extends h{priority=70;parse(e,t,n){switch(t){case "k":return M(C.hour24h,e);case "ko":return n.ordinalNumber(e,{unit:"hour"});default:return E(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let o=n<=24?n%24:n;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var Fr=class extends h{priority=60;parse(e,t,n){switch(t){case "m":return M(C.minute,e);case "mo":return n.ordinalNumber(e,{unit:"minute"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var Lr=class extends h{priority=50;parse(e,t,n){switch(t){case "s":return M(C.second,e);case "so":return n.ordinalNumber(e,{unit:"second"});default:return E(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var Wr=class extends h{priority=30;parse(e,t){let n=o=>Math.trunc(o*Math.pow(10,-t.length+3));return Y(E(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var Ur=class extends h{priority=10;parse(e,t){switch(t){case "X":return le(pe.basicOptionalMinutes,e);case "XX":return le(pe.basic,e);case "XXXX":return le(pe.basicOptionalSeconds,e);case "XXXXX":return le(pe.extendedOptionalSeconds,e);case "XXX":default:return le(pe.extended,e)}}set(e,t,n){return t.timestampIsSet?e:$(e,e.getTime()-je(e)-n)}incompatibleTokens=["t","T","x"]};var Yr=class extends h{priority=10;parse(e,t){switch(t){case "x":return le(pe.basicOptionalMinutes,e);case "xx":return le(pe.basic,e);case "xxxx":return le(pe.basicOptionalSeconds,e);case "xxxxx":return le(pe.extendedOptionalSeconds,e);case "xxx":default:return le(pe.extended,e)}}set(e,t,n){return t.timestampIsSet?e:$(e,e.getTime()-je(e)-n)}incompatibleTokens=["t","T","X"]};var Br=class extends h{priority=40;parse(e){return fr(e)}set(e,t,n){return [$(e,n*1e3),{timestampIsSet:true}]}incompatibleTokens="*"};var Hr=class extends h{priority=20;parse(e){return fr(e)}set(e,t,n){return [$(e,n),{timestampIsSet:true}]}incompatibleTokens="*"};var Vt={G:new cr,y:new dr,Y:new yr,R:new br,u:new gr,Q:new hr,q:new wr,M:new xr,L:new Or,w:new Tr,I:new kr,d:new Pr,D:new Nr,E:new vr,e:new Er,c:new Ar,i:new Sr,a:new Dr,b:new Rr,B:new Ir,h:new jr,H:new Mr,K:new Cr,k:new $r,m:new Fr,s:new Lr,S:new Wr,X:new Ur,x:new Yr,t:new Br,T:new Hr};var Ao=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,So=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Do=/^'([^]*?)'?$/,Ro=/''/g,Io=/\S/,jo=/[a-zA-Z]/;function Gt(r,e,t,n){let o=()=>$(n?.in||t,NaN),i=Bt(),a=n?.locale??i.locale??Se,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,m=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return r?o():R(t,n?.in);let c={firstWeekContainsDate:s,weekStartsOn:m,locale:a},u=[new ur(n?.in,t)],f=e.match(So).map(x=>{let v=x[0];if(v in Ke){let K=Ke[v];return K(x,a.formatLong)}return x}).join("").match(Ao),g=[];for(let x of f){!n?.useAdditionalWeekYearTokens&&sr(x)&&qe(x,e,r),!n?.useAdditionalDayOfYearTokens&&ir(x)&&qe(x,e,r);let v=x[0],K=Vt[v];if(K){let{incompatibleTokens:D}=K;if(Array.isArray(D)){let ae=g.find(ne=>D.includes(ne.token)||ne.token===v);if(ae)throw new RangeError(`The format string mustn't contain \`${ae.fullToken}\` and \`${x}\` at the same time`)}else if(K.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);g.push({token:v,fullToken:x});let Q=K.run(r,x,a.match,c);if(!Q)return o();u.push(Q.setter),r=Q.rest;}else {if(v.match(jo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(x==="''"?x="'":v==="'"&&(x=Mo(x)),r.indexOf(x)===0)r=r.slice(x.length);else return o()}}if(r.length>0&&Io.test(r))return o();let T=u.map(x=>x.priority).sort((x,v)=>v-x).filter((x,v,K)=>K.indexOf(x)===v).map(x=>u.filter(v=>v.priority===x).sort((v,K)=>K.subPriority-v.subPriority)).map(x=>x[0]),S=R(t,n?.in);if(isNaN(+S))return o();let j={};for(let x of T){if(!x.validate(S,c))return o();let v=x.set(S,j,c);Array.isArray(v)?(S=v[0],Object.assign(j,v[1])):S=v;}return S}function Mo(r){return r.match(Do)[1].replace(Ro,"'")}var Sg=(r,e="YYYY-MM-DD hh:mm:ss")=>{if(!l(e)||!r||!(Me(r)||l(r)))return null;try{let t=new Date(r);if(I(t.getTime()))return null;let n=a=>a.toString().padStart(2,"0"),o={YYYY:t.getFullYear().toString(),MM:n(t.getMonth()+1),DD:n(t.getDate()),hh:n(t.getHours()),mm:n(t.getMinutes()),ss:n(t.getSeconds())},i=Object.entries(o).reduce((a,[s,m])=>a.split(s).join(m),e);return i.includes("NaN")?null:i}catch{return null}},Dg=(r,e)=>{if(!r||!(Me(r)||l(r)))return null;let t=new Date(r);if(I(t.getTime()))return null;O(e)||(e={});let{locale:n="en-US",...o}=e;try{return new Intl.DateTimeFormat(n?.toString()?.trim()?.length?n:"en-US",o).format(t)}catch{return null}},Rg=(r,e)=>{if(!r||!(Me(r)||l(r)))return null;O(e)||(e={});let{inputFormat:t,locale:n,inputLocale:o,...i}=e,a=y(e,"format")&&b(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",s;try{if(l(r)&&t&&o){let c=l(o)?o==="id"?Xr:Se:o;s=Gt(r,t,new Date,{locale:c});}else s=new Date(r);if(I(s.getTime()))return null;let m=l(n)?n==="id"?Xr:Se:n;return Yt(s,a,{...i,locale:m})}catch{return null}},Ig=r=>{try{if(!r||l(r)&&V(r))r=new Date;else if(!(Me(r)||l(r)))return "0";let e=new Date(r);if(I(e.getTime()))return "0";let t=i=>i.toString().padStart(2,"0"),n=e.getTimezoneOffset(),o=n<0?"+":"-";return n=Math.abs(n),`${o}${t(Math.floor(n/60))}${t(n%60)}`}catch{return "0"}};var Ug=(r,e={})=>{if(!b(r))return "";F(e,{message:({currentType:j,validType:x})=>`Second parameter (\`options\`) must be of type \`${x}\`, but received: \`${j}\`.`});let t=y(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: \`${p(t)}\`, with value: ${k(t)}.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[o,i]=r.split("@"),a=i.split(".");if(a.length<2)return "";let[s,...m]=a,c=m.join("."),u=t==="fixed"?(()=>{let j=0;for(let x=0;x<r.length;x++)j=(j<<5)-j+r.charCodeAt(x),j|=0;return Math.abs(j)})():void 0,f=(j,x,v)=>{if(j.length<=x)return "*".repeat(j.length);let K=j.split(""),D=Math.max(x,Math.ceil(j.length*v)),Q=new Set,ae=0;for(;Q.size<D;){let ne=N(u)?Math.floor(Math.random()*j.length):(u+j.length+ae*31)%j.length;Q.add(ne),ae++;}for(let ne of Q)K[ne]="*";return K.join("")},g=f(o,o.length<4?1:2,.6),T=f(s,s.length<4?1:2,.5),S=c.length<=2?c:f(c,1,.4);return `${g}@${T}.${S}`};var Qt=(r,e={withTrim:true,trimOnly:false})=>{if(!b(r))return "";O(e)||(e={});let{trimOnly:t=false,withTrim:n=true}=e;return t?r.trim():(n&&(r=r.trim()),r.replace(/\s+/g," "))},Xt=r=>b(r)?r.trim():"",Jt=(r,e={trimOnly:false})=>{if(!b(r))return "";O(e)||(e={});let{trimOnly:t=false}=e;return t?r.trim():r.replace(/\s+/g,"")},qg=r=>l(r)?V(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;function oh(r,e,t={}){if(U(r)||e<=0)return r;if(se(r,{message:({currentType:c,validType:u})=>`First parameter (\`subject\`) must be of type \`${u}\`, but received: \`${c}\`.`}),!G(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);F(t,{message:({currentType:c,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${c}\`.`});let n=y(t,"separator")?t.separator:" ",o=y(t,"reCountAfterSpace")?t.reCountAfterSpace:false;if(!(l(n)&&w(o)))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': \`${p(n)}\`, 'reCountAfterSpace': \`${p(o)}\`].`);if(r=Qt(r),!o){let c="",u=0;for(let f=0;f<r.length;f++){let g=r[f];u===e&&(c+=n,u=0),c+=g,u++;}return c}let i=r.split(" "),a=[],s=[],m=0;for(let c=0;c<i.length;c++){let u=i[c],f="",g=0;for(let T=0;T<u.length;T++)f+=u[T],g++,g===e&&T<u.length-1&&(f+=n,g=0);s.push(f),m++,(m===e||c===i.length-1)&&(a.push(s.join(n)),s=[],m=0);}return a.join(" ")}var yh=(r,e={})=>{if(!b(r))return "";F(e,{message:({currentType:c,validType:u})=>`Seconds parameter (\`options\`) must be of type \`${u}\`, but received: \`${c}\`.`});let t=y(e,"length")?e.length:10,n=y(e,"trim")?e.trim:true,o=y(e,"ending")?e.ending:"...";if(!G(t))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`length\` must be of type \`integer number\`, but received: \`${p(t)}\`, with value: \`${k(t)}\`.`);if(t<1)return "";if(!(l(o)&&w(n)))throw new TypeError(`Invalid \`options\` (third parameter) properties: \`ending\` must be a string, and \`trim\` must be a boolean. Received types: ['ending': \`${p(o)}\`, 'trim': \`${p(n)}\`].`);V(o)?o="...":o=o.trim();let i=n?r.trim():r;if(i.length<=t)return i;let s=i.slice(0,t);return (n?s:s.trimEnd())+o};function hh(r){if(!X(r))return;let e=Math.floor(Math.random()*(r.length||0));return r[e]}var ze=(r,e)=>{if(!G(r)||!G(e))throw new TypeError(`Parameters \`min\` and \`max\` must be of type \`integer-number\`${Co(r,e)}value, but received: ['min': \`${p(r)}\` - (with value: ${k(r)}), 'max': \`${p(e)}\` - (with value: ${k(e)})].`);if(r>e)throw new RangeError(`Parameters \`min\` must be less than or equal to \`max\`, but received: ['min': '${Zt(r)}', 'max': '${Zt(e)}'].`);return r=Math.max(1,r),e=Math.min(Number.MAX_SAFE_INTEGER,e),Math.floor(Math.random()*(e-r+1))+r};function Zt(r){return P(r,{includeNaN:true})?r===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${r}`:`\`${p(r)}\``}var Co=(...r)=>r.some(e=>P(e,{includeNaN:true})&&e===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var Rh=r=>{O(r)||(r={});let{minLength:e=1,maxLength:t=16,avoidZero:n=false}=r;if(q(n,{message({currentType:m,validType:c}){return `Parameters \`avoidZero\` must be of type \`${c}\`, but received: \`${m}\`.`}}),!G(e)||!G(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${p(e)}\` - (with value: ${k(e)}), 'maxLength': \`${p(t)}\` - (with value: ${k(t)})].`);if(e<1||t>16||e>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': \`${e}\`, 'maxLength': \`${t}\`].`);let o=e===t?e:ze(e,t),i=10**(o-1),a=10**o-1,s=ze(i,a);return n&&s===0&&(s=i),s};var Uh=r=>{O(r)||(r={});let{minLength:e=40,maxLength:t=40,type:n="string",avoidWhiteSpace:o=true}=r;if(q(o,{message({currentType:g,validType:T}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` must be of type \`${T}\`, but received: \`${g}\`.`}}),!G(e)||!G(t))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${p(e)}\` - (with value: ${k(e)}), 'maxLength': \`${p(t)}\` - (with value: ${k(t)})].`);if(e<1||t>5e3||e>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': \`${e}\`, 'maxLength': \`${t}\`].`);if(n!=="string"&&n!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${p(n)}\`, with value: ${k(n)}.`);let i=ze(e,t),a=g=>o?g.replace(/\s|\n|\t/g,""):g,c=n==="number"?(I(Number(r.replaceGenInt))?void 0:r.replaceGenInt)??"0123456789":(r.replaceGenStr?r.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",u=a(c)+(r.addChar||"");if(!u.length){let g=()=>n==="number"?o?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${g()}`)}let f="";for(let g=0;g<i;g++)f+=u.charAt(Math.floor(Math.random()*u.length));return f};var He=r=>{Z(r,{message:({currentType:t,validType:n})=>`First parameter (\`values\`) must be of type \`${n}\` (array literal or instance), but received: \`${t}\`.`});let e=[];return r.forEach((t,n)=>{for(let o=n+1;o<r.length;o++)if(we(t,r[o])){e.some(i=>we(i,t))||e.push(t);break}}),e};var Vh=(r,e)=>{if(!O(r))return {};Z(e,{message:({currentType:n,validType:o})=>`Second parameter (\`keysToOmit\`) must be of type \`${o}\` (array literal or instance), but received: \`${n}\`.`});let t=He(e);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(r).filter(([n])=>!e.includes(n)))};var aw=(r,e)=>{if(!O(r))return {};Z(e,{message:({currentType:a,validType:s})=>`Second parameter (\`keysToOmit\`) must be of type \`${s}\` (array literal or instance), but received: \`${a}\`.`});let t=He(e);if(X(t))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${k(t)}\`.`);let n=(a,s)=>{if(!A(a))return a;let[m,...c]=s;if(B(c))if(d(a)){let u=parseInt(m);!I(u)&&u in a&&a.splice(u,1);}else delete a[m];else {let u=a[m];A(u)&&(a[m]=n(u,c));}return a},o=a=>d(a)?a.map(o).filter(s=>!(A(s)&&Object.keys(s).length===0)):A(a)?Object.fromEntries(Object.entries(a).map(([m,c])=>[m,o(c)]).filter(([,m])=>!N(m)&&!(A(m)&&Object.keys(m).length===0))):a,i=lt(k(r));for(let a of e){let s=a.split(".");n(i,s);}return o(i)};var lw=(r,e)=>{Z(e,{message:({currentType:n,validType:o})=>`Second parameter (\`arrayExcept\`) must be of type \`${o}\` (array literal or instance), but received: \`${n}\`.`});let t=He(e);if(X(t))throw new Error(`Function omitProps error, cause duplicate of arrayExcept: ${k(t)}.`);if(r){let n=Object.entries(r).filter(([o])=>!e.includes(o));return Object.fromEntries(n)}};var $o=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),Fo=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),bw=r=>{if(!b(r))return;let e=r.split("/").pop();if(e==="")return "";if(e){for(let t of Fo){let n=`.${t}`;if(e.toLowerCase().endsWith(n))return e.slice(0,-n.length)}for(;;){let t=e.lastIndexOf(".");if(t===-1)break;let n=e.slice(t+1).toLowerCase();if($o.has(n))e=e.slice(0,t);else break}return e}};var kw=(r,e,t=false)=>{if(!(d(r)&&d(e)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${p(r)}\`, 'array2': \`${p(e)}\`].`);if(q(t,{message:({currentType:a,validType:s})=>`Third parameter \`ignoreOrder\` must be of type \`${s}\`, but received: \`${a}\`.`}),!we(r.length,e.length))return false;let n=a=>d(a)?a.map(m=>d(m)?n(m):m).sort((m,c)=>{let u=k(m),f=k(c);return u<f?-1:u>f?1:0}):a,o=t?n(r):r,i=t?n(e):e;return we(o.length,i.length)?o.every((a,s)=>k(a)===k(i[s])):false};var vw=(r,e)=>we(r,e);var De=r=>r instanceof URL;var Dw=(r,e)=>{if(!De(r)||!De(e))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname==e.protocol+"//"+e.host+e.pathname};var jw=(r,e)=>{if(!De(r)||!De(e))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==e.protocol+"//"+e.host+e.pathname+e.search};var Yw=(r,e,t={})=>{if(V(r)||!d(e))return false;F(t,{message:({currentType:s,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${s}\`.`});let{exactMatch:n=false,flags:o="i"}=t;q(n,{message:({currentType:s,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`}),se(o,{message:({currentType:s,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${s}\`.`});let i=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.filter(s=>b(s)).map(i);return a.length===0?false:a.every(s=>{let m=n?`(?<!\\S)${s}(?!\\S)`:s;return new RegExp(m,o.includes("u")?o:o+"u").test(r)})};var Gw=(r,e,t)=>{if(V(r)||!d(e))return false;F(t,{message:({currentType:m,validType:c})=>`Third parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let{exactMatch:n=false,flags:o="i"}=t||{};q(n,{message:({currentType:m,validType:c})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${m}\`.`}),se(o,{message:({currentType:m,validType:c})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${m}\`.`});let i=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.filter(m=>b(m)).map(i);if(a.length===0)return false;let s=n?`(?<!\\S)(${a.join("|")})(?!\\S)`:`(${a.join("|")})`;return new RegExp(s,o.includes("u")?o:o+"u").test(r)};var en=(r,e)=>{if(!A(r))return false;if(!(l(e)||P(e)||ee(e)))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${p(e)}\`.`);return Object.prototype.hasOwnProperty.call(r,e)?true:d(r)?r.some(t=>en(t,e)):Object.values(r).some(t=>A(t)&&en(t,e))};var sx=(r,e)=>{if(!d(r)||!d(e)||B(r)||B(e))return false;let t=new Set(r);return e.some(n=>t.has(n))};var rn=r=>Object.prototype.toString.call(r)==="[object Arguments]";function _r(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function lx(r){return !W(r)&&A(r)&&_r(r?.length)}function gx(r){return A(r)&&_r(r.length)}var Tx=r=>l(r)||P(r)?Je(r.toString())!==0?true:r.toString().trim()==="0":false;var Ve=(r,e)=>{if(typeof r=="number"&&typeof e=="number"&&Number.isNaN(r)&&Number.isNaN(e)||r===e)return true;if(typeof r!=typeof e)return false;if(re(r)&&re(e))return r.getTime()===e.getTime();if(he(r)&&he(e)||ee(r)&&ee(e))return r.toString()===e.toString();if(z(r)&&z(e)){if(r.size!==e.size)return false;let t=Array.from(e),n=new Set;for(let o of r){let i=false;for(let a=0;a<t.length;a++)if(!n.has(a)&&Ve(o,t[a])){n.add(a),i=true;break}if(!i)return false}return true}if(J(r)&&J(e)){if(r.size!==e.size)return false;let t=Array.from(e),n=new Set;for(let[o,i]of r){let a=false;for(let s=0;s<t.length;s++){if(n.has(s))continue;let[m,c]=t[s];if(Ve(o,m)&&Ve(i,c)){n.add(s),a=true;break}}if(!a)return false}return true}if(d(r)&&d(e))return r.length!==e.length?false:r.every((t,n)=>Ve(t,e[n]));if(A(r)&&A(e)&&r&&e){if(d(r)!==d(e))return false;let t=Object.keys(r),n=Object.keys(e);return t.length!==n.length?false:t.every(o=>Ve(r[o],e[o]))}return false};function jx(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!O(r)}function Vx(r){return U(r)||w(r)||P(r,{includeNaN:true})||ee(r)?true:W(r)?Object.keys(r).length===0:l(r)||d(r)||rn(r)||Fe(r)?r.length===0:J(r)||z(r)?r.size===0:Ne(r)?r.length===0:O(r)?Object.keys(r).length===0:false}var tn=r=>{if(l(r))return V(r);if(P(r))return I(r);if(d(r))return B(r)||r.every(tn);if(A(r)){let e=Object.keys(r),t=Object.getOwnPropertySymbols(r);return e.length===0&&t.length===0?true:[...e,...t].every(n=>tn(r[n]))}return !r};function iO(r,e,t){return Re(r,e,t,new WeakMap)}function nn(r,e,t){return Kr(r,e,t)}function on(r,e){return r===e||r===0&&e===0||Number.isNaN(r)&&Number.isNaN(e)}function Kr(r,e,t){if(r===e)return true;if(!A(e))return on(r,e);if(!A(r))return false;let n=Reflect.ownKeys(e).filter(o=>!(d(e)&&o==="length"));for(let o of n){if(!(o in r))return false;let i=r[o],a=e[o],s=t?.(i,a,o,r,e);if(!N(s)){if(!s)return false;continue}if(A(i)&&A(a)){if(!nn(i,a,t))return false}else if(!on(i,a))return false}return true}function yO(r,e){return Kr(r,e)}var Lo=Function.prototype.toString,Wo=/\{\s*\[native code\]\s*\}/;function hO(r){if(!W(r))return false;try{let e=Lo.call(r);return Wo.test(e)}catch{return false}}function kO(r){return !U(r)&&(A(r)||W(r))}function NO(r){return typeof r=="number"&&Number.isSafeInteger(r)}var AO=r=>{if(!b(r))return false;let e;try{e=decodeURIComponent(r);}catch{return false}return !e.startsWith("http://")&&!e.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(e)};function IO(r){return H(r)&&!_(r)&&r instanceof WeakMap}var LO=(r=1e3,e)=>{if(!G(r)||r<=0)throw new TypeError(`First parameter \`milliSeconds\` must be a number, non-zero, non-NaN, non-negative, and integer-number, but received: \`${p(r)}\`, with value: \`${k(r)}\`.`);if(_(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter `signal` must be an instance of AbortSignal if provided.");return new Promise((t,n)=>{let o=setTimeout(()=>{i(),t();},r),i=()=>{clearTimeout(o),e&&e.removeEventListener("abort",a);},a=()=>{i(),n(new DOMException("Delay aborted","AbortError"));};e&&(e.aborted?a():e.addEventListener("abort",a,{once:true}));})};var _O=(r,e,t)=>{if(!P(r)||!l(t)||!l(e))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': \`${p(r)}\`, 'originalString': \`${p(e)}\`, 'replaceTo': \`${p(t)}\`]".`);if(r<0||r>=e.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return e.slice(0,r)+t+e.slice(r+1)},KO=r=>{if(!b(r))return "";r=r.replace(/\s+/g," ").trim();let e=r.split(" ");return e.length>1?e[0][0]+e[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};var VO=r=>(Z(r,{message:({currentType:e,validType:t})=>`First parameter (\`props\`) must be of type \`${t}\`, but received: \`${e}\`.`}),e=>!r.map(t=>t.toString()).includes(e.toString()));var cT=(r,e,t)=>{if(l(r)){if(V(r))throw new TypeError("First parameter (`baseUrl`) cannot be an empty string.");r=Xt(r);}else if(!De(r))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${p(r)}\`, with current value: \`${k(r)}\`.`);if(!N(t)&&(Z(t,{message:({currentType:n,validType:o})=>`Third parameter (\`removeParams\`) must be of type \`${o} of strings\`, but received: \`${n}\`.`}),!t.every(n=>b(n))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!N(e)&&!W(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);let n=new URL(r);if(!N(e)){let o=Object.fromEntries(e);if(!Xe(o)){let i=new URLSearchParams(n.search);for(let[a,s]of Object.entries(o)){if(!b(s)&&!P(s,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);i.set(a,String(s));}t?.length&&at(t).map(a=>{i.delete(a);}),n.search=i.toString();}}return t?.forEach(o=>n.searchParams.delete(o)),n}catch(n){throw oe(n)?n:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+n)}};var lT=r=>{if(!b(r))return null;let e;try{e=decodeURIComponent(r);}catch{return null}let t=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,n=e.match(t);if(!n)return null;let o=n.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let a=new URL(i);return a.protocol==="http:"||a.protocol==="https:"}catch{return false}});return o.length?o:null};var qr=class r extends Error{constructor(t,n){super(t);this.originalError=n;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var ST=(r,e=null,t={})=>{let n=[];!l(r)&&!d(r)&&n.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${p(r)}\`.`),!l(e)&&!d(e)&&!_(e)&&n.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${p(e)}\`.`),O(t)||n.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${p(t)}\`.`);let{levels:o=1,removeDuplicates:i=true}=t;if((!G(o)||G(o)&&o<0)&&n.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${p(o)}\`, with value: \`${k(o)}\`.`),w(i)||n.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${p(i)}\`.`),X(n))throw new TypeError(`Invalid parameter(s) in getPrefixPathname:
2
2
  - ${n.join(`
3
- - `)}`);function a(m){return `/${Te(m).split("/").filter(Boolean).slice(0,o).join("/")}`}function s(m){if(e){if(m=Te(m),d(e)){for(let c of e)if(m.startsWith(Te(c)))return a(m)}else if(b(e)&&m.startsWith(Te(e)))return a(m);return null}return a(m)}if(d(r)){let m=r.map(s).filter(u=>!_(u)),c=i?[...new Set(m)]:m;return c.length===1?c[0]:c}return s(r)},DT=(r,e="/")=>{if(!b(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);if(d(r)){if(!r.every(t=>l(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`string array\`, but received: \`${p(r)}\`, with value: \`${k(r)}\`.`);for(let t of r){let n=Te(t);if(n!=="/")return n}return Te(e)}if(l(r)){let t=Te(r);return t!=="/"?t:Te(e)}if(!_(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${p(r)}\`.`);return Te(e)},Te=(r,e="/")=>{if(!b(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);if(!b(r))return e;try{if(r=Jt(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 n=oe(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new qr(`Failed to normalize pathname in function \`normalizePathname()\`: ${n.message}`,n)}};var FT=(r,e)=>{if(!b(r))return "";if(!N(e)&&(F(e,{message:({currentType:o,validType:i})=>`Second parameter (\`options\`) must be of type \`${i}\`, but received: \`${o}\`.`}),"prefixColon"in e&&!w(e.prefixColon)))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type\`boolean\`, but received: \`${p(e.prefixColon)}\`.`);let t=r.replace(/\D+/g,"");return t?e?.prefixColon??false?`:${t}`:t:""};
4
- exports.areArraysEqual=kw;exports.areObjectsEqual=vw;exports.areURLsEqualPath=Dw;exports.areURLsIdentical=jw;exports.arrayHasAnyMatch=sx;exports.assertIsArray=Z;exports.assertIsBigInt=ms;exports.assertIsBoolean=q;exports.assertIsNumber=ls;exports.assertIsPlainObject=F;exports.assertIsString=se;exports.capitalizeFirst=Ri;exports.capitalizeWords=Ii;exports.censorEmail=Ug;exports.chunkString=oh;exports.cleanParsedData=Vr;exports.constructURL=cT;exports.convertType=pu;exports.dedupeArray=Fa;exports.delay=LO;exports.disableUserInteraction=Kc;exports.doesKeyExist=en;exports.enableUserInteraction=qc;exports.extractDigits=ft;exports.extractFileName=bw;exports.extractURLs=lT;exports.filterNilArray=$e;exports.filterNullArray=$a;exports.findDuplicates=He;exports.formatCurrency=lf;exports.formatDateFns=Rg;exports.formatDateIntl=Dg;exports.formatDateTime=Sg;exports.formatEnvPort=FT;exports.formatNumber=hf;exports.formatPhoneNumber=Ef;exports.getFirstPrefixPathname=DT;exports.getGMTOffset=Ig;exports.getInitialsName=KO;exports.getPreciseType=p;exports.getPrefixPathname=ST;exports.getRandomItem=hh;exports.hasOwnProp=y;exports.isArguments=rn;exports.isArray=d;exports.isArrayBuffer=zr;exports.isArrayLike=lx;exports.isArrayLikeObject=gx;exports.isBigInt=ge;exports.isBoolean=w;exports.isBuffer=Ne;exports.isCurrencyLike=Tx;exports.isDate=re;exports.isDeepEqual=Ve;exports.isElement=jx;exports.isEmpty=Vx;exports.isEmptyArray=B;exports.isEmptyDeep=tn;exports.isEmptyObject=Ee;exports.isEmptyString=J;exports.isEmptyValue=Xe;exports.isEqual=we;exports.isEqualWith=iO;exports.isError=oe;exports.isFinite=ve;exports.isFunction=W;exports.isInteger=V;exports.isLength=_r;exports.isMap=X;exports.isMatch=yO;exports.isMatchWith=nn;exports.isNaN=I;exports.isNative=hO;exports.isNil=U;exports.isNonEmptyArray=Q;exports.isNonEmptyString=b;exports.isNonEmptyValue=mt;exports.isNull=_;exports.isNumber=P;exports.isObject=H;exports.isObjectLoose=kO;exports.isObjectOrArray=A;exports.isPlainObject=O;exports.isRegExp=he;exports.isSafeInteger=NO;exports.isServer=_e;exports.isSet=z;exports.isString=l;exports.isSymbol=ee;exports.isTypedArray=Fe;exports.isURL=De;exports.isUndefined=N;exports.isValidURL=AO;exports.isWeakMap=IO;exports.noop=ct;exports.normalizePathname=Te;exports.normalizeSpaces=Qt;exports.normalizeString=Xt;exports.omitKeys=Vh;exports.omitKeysDeep=aw;exports.omitProps=lw;exports.parseCurrencyString=Je;exports.parseCustomDate=an;exports.randomInt=ze;exports.randomIntByLength=Rh;exports.randomStr=Uh;exports.removeElementFocus=zc;exports.removeObjectPaths=Gu;exports.removeSpaces=Jt;exports.replaceAt=_O;exports.safeJsonParse=lt;exports.safeStableStringify=k;exports.scrollToTop=Vc;exports.shouldForwardProp=VO;exports.slugify=st;exports.stripHtmlTags=qg;exports.textContainsAll=Yw;exports.textContainsAny=Gw;exports.toBooleanContent=Mm;exports.toBooleanContentDeep=ut;exports.toBooleanExplicit=Xm;exports.toBooleanLoose=iu;exports.toCamelCase=et;exports.toDotCase=it;exports.toKebabCase=Ge;exports.toLowerCase=nt;exports.toNumberArrayUnRecursive=qa;exports.toNumberDeep=gc;exports.toPascalCase=tt;exports.toPascalCaseSpace=rt;exports.toSnakeCase=ot;exports.toStringArrayUnRecursive=at;exports.toStringDeep=$c;exports.toStringDeepForce=Ie;exports.truncateString=yh;return exports;})({});
3
+ - `)}`);function a(m){return `/${Te(m).split("/").filter(Boolean).slice(0,o).join("/")}`}function s(m){if(e){if(m=Te(m),d(e)){for(let c of e)if(m.startsWith(Te(c)))return a(m)}else if(b(e)&&m.startsWith(Te(e)))return a(m);return null}return a(m)}if(d(r)){let m=r.map(s).filter(u=>!_(u)),c=i?[...new Set(m)]:m;return c.length===1?c[0]:c}return s(r)},DT=(r,e="/")=>{if(!b(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);if(d(r)){if(!r.every(t=>l(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${p(r)}\`, with value: \`${k(r)}\`.`);for(let t of r){let n=Te(t);if(n!=="/")return n}return Te(e)}if(l(r)){let t=Te(r);return t!=="/"?t:Te(e)}if(!_(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${p(r)}\`.`);return Te(e)},Te=(r,e="/")=>{if(!b(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${p(e)}\`, with value: \`${k(e)}\`.`);if(!b(r))return e;try{if(r=Jt(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 n=oe(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new qr(`Failed to normalize pathname in function \`normalizePathname()\`: ${n.message}`,n)}};var LT=(r,e={})=>{if(!b(r))return "";F(e,{message:({currentType:o,validType:i})=>`Second parameter (\`options\`) must be of type \`${i}\`, but received: \`${o}\`.`});let t=y(e,"prefixColon")?e.prefixColon:false;if(!w(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${p(t)}\`.`);let n=r.replace(/\D+/g,"");return V(n)?"":t?`:${n}`:n};
4
+ exports.areArraysEqual=kw;exports.areObjectsEqual=vw;exports.areURLsEqualPath=Dw;exports.areURLsIdentical=jw;exports.arrayHasAnyMatch=sx;exports.assertIsArray=Z;exports.assertIsBigInt=ms;exports.assertIsBoolean=q;exports.assertIsNumber=ls;exports.assertIsPlainObject=F;exports.assertIsString=se;exports.capitalizeFirst=Ri;exports.capitalizeWords=Ii;exports.censorEmail=Ug;exports.chunkString=oh;exports.cleanParsedData=Vr;exports.constructURL=cT;exports.convertType=pu;exports.dedupeArray=Fa;exports.delay=LO;exports.disableUserInteraction=Kc;exports.doesKeyExist=en;exports.enableUserInteraction=qc;exports.extractDigits=ft;exports.extractFileName=bw;exports.extractURLs=lT;exports.filterNilArray=$e;exports.filterNullArray=$a;exports.findDuplicates=He;exports.formatCurrency=lf;exports.formatDateFns=Rg;exports.formatDateIntl=Dg;exports.formatDateTime=Sg;exports.formatEnvPort=LT;exports.formatNumber=hf;exports.formatPhoneNumber=Ef;exports.getFirstPrefixPathname=DT;exports.getGMTOffset=Ig;exports.getInitialsName=KO;exports.getPreciseType=p;exports.getPrefixPathname=ST;exports.getRandomItem=hh;exports.hasOwnProp=y;exports.isArguments=rn;exports.isArray=d;exports.isArrayBuffer=zr;exports.isArrayLike=lx;exports.isArrayLikeObject=gx;exports.isBigInt=ge;exports.isBoolean=w;exports.isBuffer=Ne;exports.isCurrencyLike=Tx;exports.isDate=re;exports.isDeepEqual=Ve;exports.isElement=jx;exports.isEmpty=Vx;exports.isEmptyArray=B;exports.isEmptyDeep=tn;exports.isEmptyObject=Ee;exports.isEmptyString=V;exports.isEmptyValue=Xe;exports.isEqual=we;exports.isEqualWith=iO;exports.isError=oe;exports.isFinite=ve;exports.isFunction=W;exports.isInteger=G;exports.isLength=_r;exports.isMap=J;exports.isMatch=yO;exports.isMatchWith=nn;exports.isNaN=I;exports.isNative=hO;exports.isNil=U;exports.isNonEmptyArray=X;exports.isNonEmptyString=b;exports.isNonEmptyValue=mt;exports.isNull=_;exports.isNumber=P;exports.isObject=H;exports.isObjectLoose=kO;exports.isObjectOrArray=A;exports.isPlainObject=O;exports.isRegExp=he;exports.isSafeInteger=NO;exports.isServer=_e;exports.isSet=z;exports.isString=l;exports.isSymbol=ee;exports.isTypedArray=Fe;exports.isURL=De;exports.isUndefined=N;exports.isValidURL=AO;exports.isWeakMap=IO;exports.noop=ct;exports.normalizePathname=Te;exports.normalizeSpaces=Qt;exports.normalizeString=Xt;exports.omitKeys=Vh;exports.omitKeysDeep=aw;exports.omitProps=lw;exports.parseCurrencyString=Je;exports.parseCustomDate=an;exports.randomInt=ze;exports.randomIntByLength=Rh;exports.randomStr=Uh;exports.removeElementFocus=zc;exports.removeObjectPaths=Gu;exports.removeSpaces=Jt;exports.replaceAt=_O;exports.safeJsonParse=lt;exports.safeStableStringify=k;exports.scrollToTop=Vc;exports.shouldForwardProp=VO;exports.slugify=st;exports.stripHtmlTags=qg;exports.textContainsAll=Yw;exports.textContainsAny=Gw;exports.toBooleanContent=Mm;exports.toBooleanContentDeep=ut;exports.toBooleanExplicit=Xm;exports.toBooleanLoose=iu;exports.toCamelCase=et;exports.toDotCase=it;exports.toKebabCase=Ge;exports.toLowerCase=nt;exports.toNumberArrayUnRecursive=qa;exports.toNumberDeep=gc;exports.toPascalCase=tt;exports.toPascalCaseSpace=rt;exports.toSnakeCase=ot;exports.toStringArrayUnRecursive=at;exports.toStringDeep=$c;exports.toStringDeepForce=Ie;exports.truncateString=yh;return exports;})({});
@@ -1 +1 @@
1
- 'use strict';var chunkKBKYG3IY_cjs=require('../chunk-KBKYG3IY.cjs');require('../chunk-FIEZKTAZ.cjs'),require('../chunk-TC4VBE4Y.cjs'),require('../chunk-UUPQI6ND.cjs'),require('../chunk-KCQDDZJE.cjs'),require('../chunk-62HX5Z45.cjs'),require('../chunk-FDITZ5C6.cjs');var chunkX3GTRVVK_cjs=require('../chunk-X3GTRVVK.cjs');require('../chunk-N2IJPIND.cjs'),require('../chunk-2TRAPBZ7.cjs'),require('../chunk-PUQXRLZH.cjs'),require('../chunk-U5Y2FXMN.cjs'),require('../chunk-7YWAQOA4.cjs'),require('../chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.b}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.c}});
1
+ 'use strict';var chunk3D74QO5D_cjs=require('../chunk-3D74QO5D.cjs');require('../chunk-FIEZKTAZ.cjs'),require('../chunk-TC4VBE4Y.cjs'),require('../chunk-UUPQI6ND.cjs'),require('../chunk-KCQDDZJE.cjs'),require('../chunk-62HX5Z45.cjs'),require('../chunk-FDITZ5C6.cjs');var chunk5JFV3GDE_cjs=require('../chunk-5JFV3GDE.cjs');require('../chunk-N2IJPIND.cjs'),require('../chunk-2TRAPBZ7.cjs'),require('../chunk-PUQXRLZH.cjs'),require('../chunk-U5Y2FXMN.cjs'),require('../chunk-7YWAQOA4.cjs'),require('../chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunk3D74QO5D_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunk3D74QO5D_cjs.b}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunk5JFV3GDE_cjs.c}});
@@ -51,12 +51,13 @@ type QueryParamPairs=[[string,string|number],...[string,string|number][]];
51
51
  * or if `queryParams` is not iterable, or if `removeParams` is not an array of strings.
52
52
  *
53
53
  * @example
54
- * // Basic usage
54
+ * // BASIC USAGE:
55
+ *
55
56
  * constructURL("https://example.com/path", new URLSearchParams({ a: "1", b: "2" }).entries());
56
57
  * // ➔ URL { href: "https://example.com/path?a=1&b=2", ... }
57
58
  *
58
59
  * @example
59
- * // Remove parameters from base and added
60
+ * // REMOVE PARAMETERS FROM BASE AND ADDED:
60
61
  *
61
62
  * // with new URLSearchParams({ ... }).entries();
62
63
  * constructURL("https://example.com/path?foo=1&bar=2", new URLSearchParams({ bar: "ignored", baz: "3" }).entries(), ["bar"]);
@@ -154,7 +155,7 @@ declare const extractURLs:(url?:string|null)=>string[]|null;
154
155
  *
155
156
  * ---
156
157
  *
157
- * ### **🔹 Usage Examples**
158
+ * #### **🔹 Usage Examples**
158
159
  *
159
160
  * #### ✅ **Correct Usage (With an Array of URLs and Base)**
160
161
  * ```ts
@@ -238,7 +239,7 @@ removeDuplicates?:boolean;})=>string|string[]|null;
238
239
  * * ***Extract First Valid Prefix from Path Array or String.***
239
240
  * --------------------------------------------------------
240
241
  *
241
- * ### 🚀 **Main Purpose:**
242
+ * #### 🚀 **Main Purpose:**
242
243
  * This function helps extract the first valid URL prefix from various possible inputs.
243
244
  * It is especially useful in routing systems, middleware, or frontend apps that
244
245
  * need to decide layout, active navigation, or permissions based on the first
@@ -252,7 +253,7 @@ removeDuplicates?:boolean;})=>string|string[]|null;
252
253
  *
253
254
  * ---
254
255
  *
255
- * ### 🔍 Behavior:
256
+ * #### 🔍 Behavior:
256
257
  * It works as follows:
257
258
  * - If `result` is an array of strings, it normalizes each element and returns
258
259
  * the first non-root path (i.e., not just `"/"`). If all items normalize to `"/"`,
@@ -263,7 +264,7 @@ removeDuplicates?:boolean;})=>string|string[]|null;
263
264
  *
264
265
  * ---
265
266
  *
266
- * ### 🔍 Validation & Errors:
267
+ * #### 🔍 Validation & Errors:
267
268
  *
268
269
  * - Throws a `TypeError` if:
269
270
  * - `defaultValue` is not a non-empty string.
@@ -272,7 +273,7 @@ removeDuplicates?:boolean;})=>string|string[]|null;
272
273
  *
273
274
  * ---
274
275
  *
275
- * ### 🛠 Usage Examples:
276
+ * #### 🛠 Usage Examples:
276
277
  *
277
278
  * 1. #### For React: *Determining layout*
278
279
  * ```ts
@@ -326,14 +327,15 @@ removeDuplicates?:boolean;})=>string|string[]|null;
326
327
  * ---
327
328
  *
328
329
  * @param {string | string[] | null} result
329
- * The pathname(s) to process. Can be:
330
+ * The pathname(s) to process, can be:
330
331
  * - A string path (e.g. `"/profile"`),
331
332
  * - An array of string paths (e.g. `[" ", "/dashboard"]`),
332
333
  * - Or `null`.
333
334
  *
334
335
  * @param {string} [defaultValue="/"]
335
336
  * A custom default path to use if `result` is null or no valid prefix is found.
336
- * Must be a non-empty string. Defaults to `"/"`.
337
+ * - Must be a non-empty string.
338
+ * - Defaults to `"/"`.
337
339
  *
338
340
  * @returns {string}
339
341
  * The first valid normalized pathname, or the normalized default.
@@ -383,7 +385,7 @@ declare const getFirstPrefixPathname:(result?:string|string[]|null,defaultValue?
383
385
  * // ➔ "/home"
384
386
  * normalizePathname("/double//slashes");
385
387
  * // ➔ "/double/slashes"
386
- *` normalizePathname(" nested / path / 🚀 ");
388
+ * normalizePathname(" nested / path / 🚀 ");
387
389
  * // ➔ "/nested/path/🚀"
388
390
  */
389
391
  declare const normalizePathname:(pathname?:string|null,defaultPath?:string)=>string;
@@ -394,7 +396,7 @@ declare const normalizePathname:(pathname?:string|null,defaultPath?:string)=>str
394
396
  * - Extracts only digits from the input.
395
397
  * - If no digits found, returns an empty string.
396
398
  * - By default does NOT prefix with a colon.
397
- * Use `{ prefixColon: true }` to prefix with a colon.
399
+ * - Use `{ prefixColon: true }` to prefix with a colon.
398
400
  *
399
401
  * @param envVar The environment variable string.
400
402
  * @param options Optional object: `{ prefixColon?: boolean }`.
@@ -1 +1 @@
1
- export{a as constructURL,b as extractURLs}from'../chunk-POCPQYZS.js';import'../chunk-NNM7QCNB.js';import'../chunk-WHAVUFEU.js';import'../chunk-ZYAML74V.js';import'../chunk-W5EDKJK3.js';import'../chunk-QFCGBBSY.js';import'../chunk-4JOQ45HL.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'../chunk-YEERJDOF.js';import'../chunk-GECI2YBP.js';import'../chunk-NIMNTEGV.js';import'../chunk-ELDDNERR.js';import'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import'../chunk-XCFIOTCV.js';
1
+ export{a as constructURL,b as extractURLs}from'../chunk-L54ZPSYJ.js';import'../chunk-NNM7QCNB.js';import'../chunk-WHAVUFEU.js';import'../chunk-ZYAML74V.js';import'../chunk-W5EDKJK3.js';import'../chunk-QFCGBBSY.js';import'../chunk-4JOQ45HL.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'../chunk-JFRL7NKU.js';import'../chunk-GECI2YBP.js';import'../chunk-NIMNTEGV.js';import'../chunk-ELDDNERR.js';import'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import'../chunk-XCFIOTCV.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rzl-zone/utils-js",
3
- "version": "3.0.1-beta.0",
3
+ "version": "3.0.2-beta.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engineStrict": true,
@@ -1 +0,0 @@
1
- 'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var A=(t,e,o)=>{if(chunkCN53M4QZ_cjs.h(t)){if(chunk2TRAPBZ7_cjs.a(t))throw new TypeError("First parameter `baseUrl` cannot be an empty string.");t=chunkN2IJPIND_cjs.b(t);}else if(!chunkFIEZKTAZ_cjs.a(t))throw new TypeError(`First parameter \`baseUrl\` must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with current value: \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);if(!chunkCN53M4QZ_cjs.k(o)&&(chunk62HX5Z45_cjs.a(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>chunkCN53M4QZ_cjs.p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!chunkCN53M4QZ_cjs.k(e)&&!chunkCN53M4QZ_cjs.b(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);let r=new URL(t);if(!chunkCN53M4QZ_cjs.k(e)){let n=Object.fromEntries(e);if(!chunkUUPQI6ND_cjs.a(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!chunkCN53M4QZ_cjs.p(f)&&!chunkCN53M4QZ_cjs.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: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);i.set(s,String(f));}o?.length&&chunkTC4VBE4Y_cjs.e(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw chunkCN53M4QZ_cjs.D(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!chunkCN53M4QZ_cjs.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};exports.a=A;exports.b=C;
@@ -1 +0,0 @@
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};
@@ -1,4 +0,0 @@
1
- 'use strict';var chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var h=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var q=(r,e=null,t={})=>{let o=[];!chunkCN53M4QZ_cjs.h(r)&&!chunkCN53M4QZ_cjs.d(r)&&o.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`),!chunkCN53M4QZ_cjs.h(e)&&!chunkCN53M4QZ_cjs.d(e)&&!chunkCN53M4QZ_cjs.g(e)&&o.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`.`),chunkCN53M4QZ_cjs.f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${chunkCN53M4QZ_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: \`${chunkCN53M4QZ_cjs.E(m)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(m)}\`.`),chunkCN53M4QZ_cjs.a(c)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(c)}\`.`),chunkCN53M4QZ_cjs.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 d(i){if(e){if(i=s(i),chunkCN53M4QZ_cjs.d(e)){for(let a of e)if(i.startsWith(s(a)))return b(i)}else if(chunkCN53M4QZ_cjs.p(e)&&i.startsWith(s(e)))return b(i);return null}return b(i)}if(chunkCN53M4QZ_cjs.d(r)){let i=r.map(d).filter(T=>!chunkCN53M4QZ_cjs.g(T)),a=c?[...new Set(i)]:i;return a.length===1?a[0]:a}return d(r)},G=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(chunkCN53M4QZ_cjs.d(r)){if(!r.every(t=>chunkCN53M4QZ_cjs.h(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`string array\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(chunkCN53M4QZ_cjs.h(r)){let t=s(r);return t!=="/"?t:s(e)}if(!chunkCN53M4QZ_cjs.g(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(!chunkCN53M4QZ_cjs.p(r))return e;try{if(r=chunkN2IJPIND_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=chunkCN53M4QZ_cjs.D(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new h(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var Y=(r,e)=>{if(!chunkCN53M4QZ_cjs.p(r))return "";if(!chunkCN53M4QZ_cjs.k(e)&&(chunkCN53M4QZ_cjs.m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`}),"prefixColon"in e&&!chunkCN53M4QZ_cjs.a(e.prefixColon)))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type\`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(e.prefixColon)}\`.`);let t=r.replace(/\D+/g,"");return t?e?.prefixColon??false?`:${t}`:t:""};
4
- exports.a=q;exports.b=G;exports.c=s;exports.d=Y;
@@ -1,4 +0,0 @@
1
- import {c as c$1}from'./chunk-GECI2YBP.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,k,m}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 q=(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 d$1(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(d$1).filter(T=>!g(T)),a=c$1?[...new Set(i)]:i;return a.length===1?a[0]:a}return d$1(r$1)},G=(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 \`string array\`, 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 Y=(r,e)=>{if(!p(r))return "";if(!k(e)&&(m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`}),"prefixColon"in e&&!a$1(e.prefixColon)))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type\`boolean\`, but received: \`${E(e.prefixColon)}\`.`);let t=r.replace(/\D+/g,"");return t?e?.prefixColon??false?`:${t}`:t:""};
4
- export{q as a,G as b,s as c,Y as d};