deverything 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/index.d.ts +42 -3
- package/dist/index.global.js +151 -146
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +151 -146
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
The promise:
|
|
6
6
|
|
|
7
|
-
- **✅ 1 package**: say goodbye to lodash, faker,
|
|
7
|
+
- **✅ 1 package**: say goodbye to lodash, faker, and the other package you don't recall the name of.
|
|
8
8
|
- **⭕ 0 dependencies**: keep it simple and lightweight.
|
|
9
|
-
- **🏆 Pick the best**: the code is minimal and uses the best
|
|
9
|
+
- **🏆 Pick the best**: the code is minimal and uses the best practices for max performance.
|
|
10
10
|
- **👪🏼 Typescript**: use it, support it and export it.
|
|
11
|
-
- **🌊 Intuitive**: favour always the most intuitive API and common usage, _never_ throw
|
|
11
|
+
- **🌊 Intuitive**: favour always the most intuitive API and common usage, _never_ throw error unless asked to.
|
|
12
12
|
- **🙈 Semantic**: use simple function names that are easy to remember, no complicated options.
|
|
13
13
|
|
|
14
14
|
Contributions always welcome!
|
|
@@ -19,7 +19,7 @@ Contributions always welcome!
|
|
|
19
19
|
- `isBoolean()`
|
|
20
20
|
- `isBrowser()` to detect if you are on the browser
|
|
21
21
|
- `isBuffer()`
|
|
22
|
-
- `isClient()`
|
|
22
|
+
- `isClient()` same as isBrowser
|
|
23
23
|
- `isEmail()` this is a relaxed check, use your own validation if you need to be strict
|
|
24
24
|
- ⭐ `isEmpty()` to check for empty object, empty array, empty string, null or undefined
|
|
25
25
|
- `isEmptyString()` trims the string and checks if something is left
|
|
@@ -40,7 +40,7 @@ Contributions always welcome!
|
|
|
40
40
|
- `isOdd()`
|
|
41
41
|
- `isPositiveInt()`
|
|
42
42
|
- `isNegativeInt()`
|
|
43
|
-
- `isNumeric()`
|
|
43
|
+
- `isNumeric()` if string is representing a number
|
|
44
44
|
- ⭐ `isObject()` if it's a js plain Object
|
|
45
45
|
- `isPromise()`
|
|
46
46
|
- `isPWA()`
|
|
@@ -54,11 +54,12 @@ Contributions always welcome!
|
|
|
54
54
|
|
|
55
55
|
### Math
|
|
56
56
|
|
|
57
|
-
- `average()`
|
|
58
|
-
- `max()`
|
|
59
|
-
- `min()`
|
|
60
|
-
- `multiply()`
|
|
61
|
-
- `
|
|
57
|
+
- `average()`
|
|
58
|
+
- `max()`
|
|
59
|
+
- `min()`
|
|
60
|
+
- `multiply()`
|
|
61
|
+
- `percentageChange()`
|
|
62
|
+
- `sum()`
|
|
62
63
|
|
|
63
64
|
### Helpers
|
|
64
65
|
|
|
@@ -73,7 +74,6 @@ Contributions always welcome!
|
|
|
73
74
|
- `first()` get the first element of an array
|
|
74
75
|
- `firstKey()`
|
|
75
76
|
- `firstValue()`
|
|
76
|
-
- `getKeys()` get the keys of an object, includes symbols
|
|
77
77
|
- `getUrlSearchParam()`
|
|
78
78
|
- `getUrlSearchParams()`
|
|
79
79
|
- `incrementalId()` autoincremental SQL-like, process-unique numeric id
|
|
@@ -102,8 +102,10 @@ Contributions always welcome!
|
|
|
102
102
|
|
|
103
103
|
- `formatCamelCase()`
|
|
104
104
|
- `formatNumber()` 1000 => "1,000" or "1K" or 0.112 => "11.2%"
|
|
105
|
-
- `
|
|
105
|
+
- `formatPercentage()` 0.11 => "11%"
|
|
106
|
+
- `formatProgress()` => "[2/10]"
|
|
106
107
|
- `stringToCSSUnicode()` "hello" => "\000068\000065\00006c\00006c\00006f" use this for CSS
|
|
108
|
+
- `stringToUnicode()` "hello" => "\u0068\u0065\u006c\u006c\u006f"
|
|
107
109
|
|
|
108
110
|
### Random data generators
|
|
109
111
|
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,26 @@ declare const formatNumber: (value: number, { compact, maxDigits, percentage, }?
|
|
|
53
53
|
percentage?: boolean | undefined;
|
|
54
54
|
}) => string;
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @example formatPercentage(1) => 100%
|
|
59
|
+
* @example formatPercentage(0, { digits: 2 }) => 0.00%
|
|
60
|
+
*/
|
|
61
|
+
declare const formatPercentage: (value: number, { digits, }?: {
|
|
62
|
+
digits?: number | undefined;
|
|
63
|
+
}) => string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @example formatProgress({ index: -1, total: 10 }) => [1/10] capped
|
|
68
|
+
* @example formatProgress({ index: 1, total: 10 }) => [2/10]
|
|
69
|
+
* @example formatProgress({ index: 11, total: 10 }) => [10/10] capped
|
|
70
|
+
*/
|
|
71
|
+
declare const formatProgress: ({ index, total, }: {
|
|
72
|
+
index: number;
|
|
73
|
+
total: number;
|
|
74
|
+
}) => string;
|
|
75
|
+
|
|
56
76
|
declare const stringToCSSUnicode: (text: string) => string;
|
|
57
77
|
|
|
58
78
|
declare const stringToUnicode: (text: string) => string;
|
|
@@ -65,6 +85,19 @@ declare const arrayIntersection: <T>(arr1: T[], arr2: T[]) => T[];
|
|
|
65
85
|
|
|
66
86
|
declare const capitalize: (string: string) => string;
|
|
67
87
|
|
|
88
|
+
declare const chunkArray: <T>(array: T[], size: number) => T[][];
|
|
89
|
+
|
|
90
|
+
declare const chunkedAll: <T>(array: T[], chunkSize: number, fn: (chunk: T[]) => Promise<any>) => Promise<any[]>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @description Run a series of (async) functions in order and return the results
|
|
94
|
+
* @param array
|
|
95
|
+
* @param chunkSize
|
|
96
|
+
* @param fn
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
declare const chunkedAsync: <T>(array: T[], chunkSize: number, fn: (chunk: T[]) => Promise<any>) => Promise<any[]>;
|
|
100
|
+
|
|
68
101
|
declare const clamp: ({ number, min, max, }: {
|
|
69
102
|
number: number;
|
|
70
103
|
min: number;
|
|
@@ -224,8 +257,7 @@ declare const serialize: <T extends PlainObject<any>>(obj: T) => string;
|
|
|
224
257
|
* () => Promise.resolve(1),
|
|
225
258
|
* () => sleep(100).then(() => 2),
|
|
226
259
|
* () => Promise.resolve(3),
|
|
227
|
-
* ]);
|
|
228
|
-
* @returns [1, 2, 3]
|
|
260
|
+
* ]); => [1, 2, 3]
|
|
229
261
|
*/
|
|
230
262
|
declare const seriesAll: <T>(series: Function[]) => Promise<T[]>;
|
|
231
263
|
|
|
@@ -514,6 +546,13 @@ declare const isNegative: (arg: any) => boolean;
|
|
|
514
546
|
declare const isNegativeInt: (arg: any) => boolean;
|
|
515
547
|
declare const isNumber: (arg: any) => arg is number;
|
|
516
548
|
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @example isNumeric(1) => true
|
|
552
|
+
* @example isNumeric('1') => true
|
|
553
|
+
* @example isNumeric('1.1') => true
|
|
554
|
+
* @example isNumeric('1.1.1') => false
|
|
555
|
+
*/
|
|
517
556
|
declare const isNumeric: (arg: number | string) => boolean;
|
|
518
557
|
|
|
519
558
|
declare const isNumericId: (id: string) => boolean;
|
|
@@ -546,4 +585,4 @@ declare const isUUID: (arg: string) => boolean;
|
|
|
546
585
|
|
|
547
586
|
declare const isValue: (arg?: Maybe<any>) => boolean;
|
|
548
587
|
|
|
549
|
-
export { BoolMap, Coords, DateLike, DateRange, Datey, Dimensions, HashMap, JS_MAX_DIGITS, Key, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectEntry, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainObject, Point, PrismaSelect, StringMap, TrueMap, array, arrayDiff, arrayIntersection, average, capitalize, checkEnvVars, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, first, firstKey, firstValue, formatCamelCase, formatNumber, formatTrpcInputQueryString, getEnumerableOwnPropertySymbols, getKeys, getUrlSearchParam, getUrlSearchParams, incrementalId, isArray, isArrayIncluded, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegative, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isPWA, isPastDate, isPositive, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pretty, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArrayItem, randomBankAccount, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomNumericId, randomParagraph, randomPassword, randomPastDate, randomPath, randomPercentage, randomPhoneNumber, randomPositiveInt, randomPositivePercentage, randomString, randomUUID, randomVerb, randomWord, scrambleText, serialize, seriesAll, setUrlSearchParams, shuffle, sleep, stringToCSSUnicode, stringToUnicode, sum, toggleArray, toggleArrayValue, truncate, uniqueValues };
|
|
588
|
+
export { BoolMap, Coords, DateLike, DateRange, Datey, Dimensions, HashMap, JS_MAX_DIGITS, Key, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectEntry, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainObject, Point, PrismaSelect, StringMap, TrueMap, array, arrayDiff, arrayIntersection, average, capitalize, checkEnvVars, chunkArray, chunkedAll, chunkedAsync, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, first, firstKey, firstValue, formatCamelCase, formatNumber, formatPercentage, formatProgress, formatTrpcInputQueryString, getEnumerableOwnPropertySymbols, getKeys, getUrlSearchParam, getUrlSearchParams, incrementalId, isArray, isArrayIncluded, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegative, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isPWA, isPastDate, isPositive, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pretty, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArrayItem, randomBankAccount, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomNumericId, randomParagraph, randomPassword, randomPastDate, randomPath, randomPercentage, randomPhoneNumber, randomPositiveInt, randomPositivePercentage, randomString, randomUUID, randomVerb, randomWord, scrambleText, serialize, seriesAll, setUrlSearchParams, shuffle, sleep, stringToCSSUnicode, stringToUnicode, sum, toggleArray, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.global.js
CHANGED
|
@@ -1,157 +1,162 @@
|
|
|
1
1
|
(function (exports) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var v=(t,e,r)=>new Promise((o,i)=>{var p=s=>{try{c(r.next(s));}catch(m){i(m);}},b=s=>{try{c(r.throw(s));}catch(m){i(m);}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(p,b);c((r=r.apply(t,e)).next());});var f=t=>Array.isArray(t);var l=t=>Object.prototype.toString.call(t)==="[object Object]";var Rt=["oneOf","endsWith","startsWith"],de=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],i=[],p=({envVarKey:c,envVarValue:s,validation:m})=>{m.oneOf&&(s?m.oneOf.includes(s)||o.push(`${c}=${s} is not allowed, use one of: ${m.oneOf.join(", ")}`):o.push(`${c} is missing`)),m.endsWith&&(s?s!=null&&s.endsWith(m.endsWith)||o.push(`${c}=${s} is not allowed, must end in: ${m.endsWith}`):o.push(`${c} is missing`)),m.startsWith&&(s?s!=null&&s.startsWith(m.startsWith)||o.push(`${c}=${s} is not allowed, must start with: ${m.startsWith}`):o.push(`${c} is missing`));},b=({envVarKey:c,envVarValue:s,rule:m})=>{switch(m){case"should":s||i.push(`${c} should be set`);break;case"shouldNot":s&&i.push(`${c} should not be set`);break;case"never":case!1:s&&o.push(`${c} is not allowed`);break;case"always":case!0:default:s||o.push(`${c} is missing`);break}};if(Object.entries(t).forEach(([c,s])=>{let m=process.env[c];l(s)?(Object.entries(s).forEach(([T,S])=>{Rt.includes(T)&&p({envVarValue:m,validation:{[T]:S},envVarKey:c});}),Object.entries(s).forEach(([T,S])=>{process.env[r]===T&&(l(S)?p({envVarValue:m,validation:S,envVarKey:c}):b({envVarValue:m,rule:S,envVarKey:c}));})):f(s)?s.forEach(S=>{process.env[r]===S&&!m&&o.push(`${c} is missing`);}):b({envVarValue:m,rule:s,envVarKey:c});}),i.length&&console.warn("[WARNING] "+i.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var ye=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,i){return o.toUpperCase()+i});var x=t=>Number.isInteger(t),Se=t=>x(t)&&!(t%2),xe=t=>x(t)&&!!(t%2),ge=t=>x(t)&&t>0,E=t=>x(t)&&t>0,Ae=t=>x(t)&&t<0,he=t=>x(t)&&t<0,_=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Ne=(t,{compact:e,maxDigits:r,percentage:o}={})=>o?`${((_(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var Oe=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Re=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var u=(t,e=()=>{})=>Array.from({length:t},e);var I=t=>[...new Set(t)];var je=(t,e)=>I(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var Le=(t,e)=>I(t.filter(r=>e.includes(r)));var J=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var We=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var V=new RegExp(/\p{C}/,"gu");var X=new RegExp("\\p{Zs}","gu");var q=new RegExp("\\p{Zl}","gu");var Y=new RegExp("\\p{Zp}","gu");var Xe=t=>t.replace(V," ").replace(X," ").replace(q," ").replace(Y," ").trim().replace(/\s{2,}/g," ");var Ye=(t,e)=>t[e%t.length];var Qe=(t,e=5)=>{console.dir(t,{depth:e});};var Z=t=>t.indexOf(" ")>=0;var y=t=>typeof t=="string";var Q=t=>_(t)?!0:!y(t)||Z(t)?!1:!isNaN(parseFloat(t));var tt=t=>Object.keys(t).filter(e=>!Q(e));var M=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var et=t=>{let e=[];return Object.values(t).forEach(r=>{M(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var lr=t=>t==null?void 0:t[0];var fr=t=>Object.keys(t)[0];var br=t=>Object.values(t)[0];var g=t=>Object.keys(t).concat(_t(t)),_t=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var rt=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var hr=(t,e)=>rt(t)[e];var It=1,ot=()=>It++;var Nr=t=>Object.keys(t).length;var A=t=>t.length-1;var nt=t=>t[A(t)];var _r=(t,e)=>t.every(r=>e.includes(r));var Mr=t=>Object.prototype.toString.call(t)==="[object Boolean]";var it=()=>typeof window=="undefined";var D=()=>!it();var kr=D;var N=t=>Object.prototype.toString.call(t)==="[object Function]";var C=t=>t!=null&&!Number.isNaN(t);var zr=t=>C(t)&&C(t.constructor)&&N(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var vr=t=>y(t)&&/\S+@\S+\.\S+/.test(t);var st=t=>!!(t===void 0||t===null||Mt(t)||jt(t)||Dt(t)),Mt=t=>y(t)&&t.trim().length===0,Dt=t=>f(t)&&t.length===0,jt=t=>l(t)&&Object.keys(t).length===0;var Zr=t=>Object.prototype.toString.call(t)==="[object File]";var k=t=>{let e=d(t);return !!e&&e>new Date};var j=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var no=(t,e)=>t===A(e);var ao=t=>y(t)&&t.trim().length>0;var mo=t=>/^\d+$/.test(t)&&parseInt(t)>0;var U=t=>{let e=d(t);return !!e&&e<new Date};var fo=t=>t instanceof Promise;var So=()=>D()&&window.matchMedia("(display-mode: standalone)").matches;var Bt=typeof Symbol=="function"&&Symbol.for,wt=Bt?Symbol.for("react.element"):60103,go=t=>t.$$typeof===wt;var ho=t=>Object.prototype.toString.call(t)==="[object RegExp]";var B=(t,e)=>{if(t===e)return !0;if(f(t)&&f(e))return t.length!==e.length?!1:t.every((r,o)=>B(r,e[o]));if(l(t)&&l(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?!1:r.every(o=>B(t[o],e[o]))}return N(t)&&N(e)?t.toString()===e.toString():!1};var Ro=t=>{let e=new Date(t);return j(e)};var Lt=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),Io=t=>!!t&&Lt.test(t);var Do=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var W=(t,e)=>{let r={};return g(t).forEach(o=>{r[o]=l(t[o])?W({},t[o]):t[o];}),g(e).forEach(o=>{M(o,t)?r[o]=l(t[o])&&l(e[o])?W(t[o],e[o]):e[o]:r[o]=l(e[o])?W({},e[o]):e[o];}),r};var ko=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Wo=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1);r.unshift(i[0]);break}return r};var Ho=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1)[0];r.push(i);break}return r};var zo=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Jo=(t,e)=>{var r={};let o=new Set([...g(t),...g(e)]);for(let i of o)B(e[i],t[i])||(r[i]={from:t[i],to:e[i]});return r};var Xo=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var d=t=>{if(st(t))return;let e=new Date(t);if(j(e))return e};var tn=(t,e)=>{let r={};for(let o in t)e.includes(o)&&(r[o]=t[o]);return r};var rn=(t,e)=>{let r={};for(let o in t)e.includes(t[o])&&(r[o]=t[o]);return r};var at=()=>{let t=[],e=[],r=function(o,i){return t[0]===i?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(i)).join(".")+"]"};return function(o,i){if(t.length>0){let p=t.indexOf(this);~p?t.splice(p+1):t.push(this),~p?e.splice(p,1/0,o):e.push(o),~t.indexOf(i)&&(i=r.call(this,o,i));}else t.push(i);return i}};var an=t=>JSON.stringify(t,at(),2);var mn=(t,e,r)=>{let o,i=new Promise((p,b)=>{o=setTimeout(()=>b(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),i]).finally(()=>{clearTimeout(o);})};var a=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),un=(t=100)=>a(1,t),ln=(t=-100)=>a(t,-1),dn=()=>a(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),fn=()=>a(-Number.MAX_VALUE,Number.MAX_VALUE),kt=({min:t,max:e}={})=>a(t!=null?t:-100,e!=null?e:100),yn=({min:t,max:e}={})=>a(t!=null?t:1,e!=null?e:100),bn=()=>kt()+"%";var w=()=>String.fromCharCode(a(97,122));var ct=new RegExp(/\p{L}/,"gu");var En=t=>t.replace(ct,()=>w());var Cn=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var Pn=t=>v(void 0,null,function*(){let e=[];for(let r of t)e.push(yield r());return e});var In=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([i,p])=>{o.searchParams.set(i,p.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var Dn=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let o=Math.floor(Math.random()*(r+1));[e[r],e[o]]=[e[o],e[r]];}return e};var Bn=t=>new Promise(e=>{setTimeout(e,t);});var Ut=(t,e)=>{if(!f(t))return t;let r=t.reduce((o,i)=>(i!==e&&o.push(i),o),[]);return r.length===t.length&&r.push(e),r},kn=Ut;var Fn=(t,e,r="...")=>{if(!E(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var Kn=t=>t.reduce((r,o)=>r+o,0)/t.length;var Gn=t=>Math.max(...t);var vn=t=>Math.min(...t);var Vn=t=>t.reduce((e,r)=>e*r,1);var Yn=({previous:t,current:e})=>{if(!E(t)||!E(e)||e===0&&t===0)return 0;if(e===0&&t!==0)return -100;if(e!==0&&t===0)return 100;let r=(e-t)*100/t;return parseFloat(r.toFixed(2))};var mt=t=>t.reduce((e,r)=>e+r,0);var ei=({startDate:t,endDate:e})=>{let r=d(t),o=d(e);if(!r||!o)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:o}};var Wt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],Ft=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],Ht=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],Kt=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],pt=[...Wt,...Ft,...Ht,...Kt];var n=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=mt(e),o=Math.random()*r;for(let i=0;i<e.length;i++)if(o-=e[i],o<=0)return t[i];return nt(t)}return t[a(0,A(t))]};var ui=()=>n(pt);var zt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),yi=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return u(t,()=>n(zt)).join("")};var ut=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var Gt=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],$t=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],vt=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],Jt=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],lt=[...Gt,...$t,...vt,...Jt];var Ai=()=>n(lt);var Ei=()=>!!a(0,1);var dt=["IE1234567T","GB123456789","XI123456789"],ft=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var _i=()=>({name:n(ft),vatRegNumber:n(dt)});var Di=16,F=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return C(r)?parseFloat(o.toFixed(r)):o};var wi=()=>({lat:Vt(),lng:Xt()}),Vt=()=>F(-90,90),Xt=()=>F(-180,180);var K=t=>new Date(new Date().getTime()+t),O=(t,e)=>{let r=d(t),o=d(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let i=r||(o?new Date(o.getTime()-31536e7):K(-31536e7)),p=o||(r?new Date(r.getTime()+31536e7):K(31536e7));return new Date(a(i.getTime(),p.getTime()))},Hi=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return O(r,o)},Ki=({startDate:t,endDate:e}={})=>{t&&U(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&U(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=d(t)||K(5*6e4);return O(r,e)},zi=({startDate:t,endDate:e}={})=>{t&&k(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&k(e)&&console.warn("randomPastDate: endDate must be in the past");let r=d(e)||new Date;return O(t,r)},Gi=()=>{let t=O();return {endDate:O(t),startDate:t}};var yt=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var bt=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],St=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],P=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],R=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],Yt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],Zt=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],Qt=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],te=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],ee=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],re=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],xt=[...P,...Yt,...Qt,...ee],gt=[...R,...Zt,...te,...re];var At=({suffix:t}={})=>(n(P)+"."+n(R)).toLowerCase()+ot()+(t||"");var es=({handle:t,handleSuffix:e}={})=>`${t||At({suffix:e})}@${n(yt)}`;var ht=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],Tt=["!","@","#","$","%","^","&","*"];var ss=()=>n(ht);var ps=t=>{let e=tt(t);return n(e)};var fs=t=>{let e=et(t);return n(e)};var z=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],G=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],oe=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],ne=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],ie=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Et=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Nt=[...z,...G,...oe,...ne,...ie];var h=()=>n(Nt),gs=()=>n(G),As=()=>n(z);var Ct=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>J(u(a(e,r),()=>h()).join(" ").slice(0,t-1)+".");var se=["png","jpg","jpeg","gif","svg","webp"],Is=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(se);return new File([Ct()],`${t||h()}.${r}`,{type:`image/${r}`})};var L=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Ls=()=>"#"+u(6,()=>n(L)).join("");var Fs=()=>n(L);var Gs=()=>n(Et);var Vs=()=>n(ut);var Zs=()=>u(4,()=>a(0,255).toString()).join(".");var ra=()=>n([...bt,...St]),oa=()=>n(xt),na=()=>n(gt),ia=()=>n(P)+" "+n(R);var ma=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return u(t,(e,r)=>a(r?0:1,9)).join("")};var ae=1,Ot=()=>ae++;var $=({length:t=10}={})=>u(t,()=>w()).join("");var ga=({minChars:t=9,maxChars:e=32}={})=>$({length:1}).toUpperCase()+$({length:a(t,e)-3})+n(Tt)+a(1,9);var Ea=({depth:t=3}={})=>u(t,h).join("/");var Pt=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Ra=()=>n(Pt);var Ma=()=>{let t=Ot().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var ja=t=>new URLSearchParams({input:JSON.stringify(t)});
|
|
4
|
+
var S=(t,e,r)=>new Promise((o,n)=>{var p=s=>{try{c(r.next(s));}catch(m){n(m);}},f=s=>{try{c(r.throw(s));}catch(m){n(m);}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(p,f);c((r=r.apply(t,e)).next());});var y=t=>Array.isArray(t);var l=t=>Object.prototype.toString.call(t)==="[object Object]";var It=["oneOf","endsWith","startsWith"],ye=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],n=[],p=({envVarKey:c,envVarValue:s,validation:m})=>{m.oneOf&&(s?m.oneOf.includes(s)||o.push(`${c}=${s} is not allowed, use one of: ${m.oneOf.join(", ")}`):o.push(`${c} is missing`)),m.endsWith&&(s?s!=null&&s.endsWith(m.endsWith)||o.push(`${c}=${s} is not allowed, must end in: ${m.endsWith}`):o.push(`${c} is missing`)),m.startsWith&&(s?s!=null&&s.startsWith(m.startsWith)||o.push(`${c}=${s} is not allowed, must start with: ${m.startsWith}`):o.push(`${c} is missing`));},f=({envVarKey:c,envVarValue:s,rule:m})=>{switch(m){case"should":s||n.push(`${c} should be set`);break;case"shouldNot":s&&n.push(`${c} should not be set`);break;case"never":case!1:s&&o.push(`${c} is not allowed`);break;case"always":case!0:default:s||o.push(`${c} is missing`);break}};if(Object.entries(t).forEach(([c,s])=>{let m=process.env[c];l(s)?(Object.entries(s).forEach(([E,x])=>{It.includes(E)&&p({envVarValue:m,validation:{[E]:x},envVarKey:c});}),Object.entries(s).forEach(([E,x])=>{process.env[r]===E&&(l(x)?p({envVarValue:m,validation:x,envVarKey:c}):f({envVarValue:m,rule:x,envVarKey:c}));})):y(s)?s.forEach(x=>{process.env[r]===x&&!m&&o.push(`${c} is missing`);}):f({envVarValue:m,rule:s,envVarKey:c});}),n.length&&console.warn("[WARNING] "+n.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var xe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n});var g=t=>Number.isInteger(t),ge=t=>g(t)&&!(t%2),Ae=t=>g(t)&&!!(t%2),he=t=>g(t)&&t>0,N=t=>g(t)&&t>0,Te=t=>g(t)&&t<0,Ee=t=>g(t)&&t<0,I=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Oe=(t,{compact:e,maxDigits:r,percentage:o}={})=>o?`${((I(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var u=(t,e=()=>{})=>Array.from({length:t},e);var M=t=>[...new Set(t)];var Me=(t,e)=>M(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var we=(t,e)=>M(t.filter(r=>e.includes(r)));var X=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var D=(t,e)=>{let r=[];for(let o=0;o<t.length;o+=e)r.push(t.slice(o,o+e));return r};var We=(t,e,r)=>S(void 0,null,function*(){let o=D(t,e);return yield Promise.all(o.map(r))});var ze=(t,e,r)=>S(void 0,null,function*(){let o=[],n=D(t,e);for(let p of n){let f=yield r(p);o.push(f);}return o});var j=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var q=new RegExp(/\p{C}/,"gu");var Y=new RegExp("\\p{Zs}","gu");var Z=new RegExp("\\p{Zl}","gu");var Q=new RegExp("\\p{Zp}","gu");var er=t=>t.replace(q," ").replace(Y," ").replace(Z," ").replace(Q," ").trim().replace(/\s{2,}/g," ");var or=(t,e)=>t[e%t.length];var ir=(t,e=5)=>{console.dir(t,{depth:e});};var tt=t=>t.indexOf(" ")>=0;var b=t=>typeof t=="string";var et=t=>I(t)?!0:!b(t)||tt(t)?!1:!isNaN(parseFloat(t));var rt=t=>Object.keys(t).filter(e=>!et(e));var w=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var ot=t=>{let e=[];return Object.values(t).forEach(r=>{w(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var Sr=t=>t==null?void 0:t[0];var Ar=t=>Object.keys(t)[0];var Tr=t=>Object.values(t)[0];var A=t=>Object.keys(t).concat(Mt(t)),Mt=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var nt=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var Pr=(t,e)=>nt(t)[e];var Dt=1,it=()=>Dt++;var Ir=t=>Object.keys(t).length;var h=t=>t.length-1;var st=t=>t[h(t)];var Br=(t,e)=>t.every(r=>e.includes(r));var kr=t=>Object.prototype.toString.call(t)==="[object Boolean]";var at=()=>typeof window=="undefined";var B=()=>!at();var zr=B;var C=t=>Object.prototype.toString.call(t)==="[object Function]";var O=t=>t!=null&&!Number.isNaN(t);var Xr=t=>O(t)&&O(t.constructor)&&C(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var Zr=t=>b(t)&&/\S+@\S+\.\S+/.test(t);var ct=t=>!!(t===void 0||t===null||jt(t)||Bt(t)||wt(t)),jt=t=>b(t)&&t.trim().length===0,wt=t=>y(t)&&t.length===0,Bt=t=>l(t)&&Object.keys(t).length===0;var no=t=>Object.prototype.toString.call(t)==="[object File]";var F=t=>{let e=d(t);return !!e&&e>new Date};var L=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var po=(t,e)=>t===h(e);var fo=t=>b(t)&&t.trim().length>0;var bo=t=>/^\d+$/.test(t)&&parseInt(t)>0;var H=t=>{let e=d(t);return !!e&&e<new Date};var Ao=t=>t instanceof Promise;var Eo=()=>B()&&window.matchMedia("(display-mode: standalone)").matches;var Lt=typeof Symbol=="function"&&Symbol.for,kt=Lt?Symbol.for("react.element"):60103,Co=t=>t.$$typeof===kt;var Po=t=>Object.prototype.toString.call(t)==="[object RegExp]";var k=(t,e)=>{if(t===e)return !0;if(y(t)&&y(e))return t.length!==e.length?!1:t.every((r,o)=>k(r,e[o]));if(l(t)&&l(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?!1:r.every(o=>k(t[o],e[o]))}return C(t)&&C(e)?t.toString()===e.toString():!1};var wo=t=>{let e=new Date(t);return L(e)};var Ut=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),Lo=t=>!!t&&Ut.test(t);var Uo=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var K=(t,e)=>{let r={};return A(t).forEach(o=>{r[o]=l(t[o])?K({},t[o]):t[o];}),A(e).forEach(o=>{w(o,t)?r[o]=l(t[o])&&l(e[o])?K(t[o],e[o]):e[o]:r[o]=l(e[o])?K({},e[o]):e[o];}),r};var zo=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Go=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let n=r.splice(o,1);r.unshift(n[0]);break}return r};var Jo=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let n=r.splice(o,1)[0];r.push(n);break}return r};var Xo=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Qo=(t,e)=>{var r={};let o=new Set([...A(t),...A(e)]);for(let n of o)k(e[n],t[n])||(r[n]={from:t[n],to:e[n]});return r};var en=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var d=t=>{if(ct(t))return;let e=new Date(t);if(L(e))return e};var an=(t,e)=>{let r={};for(let o in t)e.includes(o)&&(r[o]=t[o]);return r};var mn=(t,e)=>{let r={};for(let o in t)e.includes(t[o])&&(r[o]=t[o]);return r};var mt=()=>{let t=[],e=[],r=function(o,n){return t[0]===n?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(n)).join(".")+"]"};return function(o,n){if(t.length>0){let p=t.indexOf(this);~p?t.splice(p+1):t.push(this),~p?e.splice(p,1/0,o):e.push(o),~t.indexOf(n)&&(n=r.call(this,o,n));}else t.push(n);return n}};var dn=t=>JSON.stringify(t,mt(),2);var yn=(t,e,r)=>{let o,n=new Promise((p,f)=>{o=setTimeout(()=>f(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),n]).finally(()=>{clearTimeout(o);})};var a=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),xn=(t=100)=>a(1,t),Sn=(t=-100)=>a(t,-1),gn=()=>a(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),An=()=>a(-Number.MAX_VALUE,Number.MAX_VALUE),Wt=({min:t,max:e}={})=>a(t!=null?t:-100,e!=null?e:100),hn=({min:t,max:e}={})=>a(t!=null?t:1,e!=null?e:100),Tn=()=>Wt()+"%";var U=()=>String.fromCharCode(a(97,122));var pt=new RegExp(/\p{L}/,"gu");var _n=t=>t.replace(pt,()=>U());var Mn=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var jn=t=>S(void 0,null,function*(){let e=[];for(let r of t)e.push(yield r());return e});var Ln=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([n,p])=>{o.searchParams.set(n,p.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var Un=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let o=Math.floor(Math.random()*(r+1));[e[r],e[o]]=[e[o],e[r]];}return e};var Fn=t=>new Promise(e=>{setTimeout(e,t);});var Ft=(t,e)=>{if(!y(t))return t;let r=t.reduce((o,n)=>(n!==e&&o.push(n),o),[]);return r.length===t.length&&r.push(e),r},zn=Ft;var vn=(t,e,r="...")=>{if(!N(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var Xn=(t,{digits:e}={})=>`${j({number:t*100,min:0,max:100}).toFixed(e||0)}%`;var Zn=({index:t,total:e})=>`[${j({number:t+1,min:1,max:e})}/${e}]`;var ti=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var ri=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var ni=t=>t.reduce((r,o)=>r+o,0)/t.length;var si=t=>Math.max(...t);var ci=t=>Math.min(...t);var pi=t=>t.reduce((e,r)=>e*r,1);var di=({previous:t,current:e})=>{if(!N(t)||!N(e)||e===0&&t===0)return 0;if(e===0&&t!==0)return -100;if(e!==0&&t===0)return 100;let r=(e-t)*100/t;return parseFloat(r.toFixed(2))};var ut=t=>t.reduce((e,r)=>e+r,0);var xi=({startDate:t,endDate:e})=>{let r=d(t),o=d(e);if(!r||!o)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:o}};var Ht=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],Kt=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],zt=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],$t=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],lt=[...Ht,...Kt,...zt,...$t];var i=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=ut(e),o=Math.random()*r;for(let n=0;n<e.length;n++)if(o-=e[n],o<=0)return t[n];return st(t)}return t[a(0,h(t))]};var Pi=()=>i(lt);var Gt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),Mi=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return u(t,()=>i(Gt)).join("")};var dt=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var vt=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],Jt=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],Vt=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],Xt=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],ft=[...vt,...Jt,...Vt,...Xt];var Li=()=>i(ft);var Wi=()=>!!a(0,1);var yt=["IE1234567T","GB123456789","XI123456789"],bt=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Gi=()=>({name:i(bt),vatRegNumber:i(yt)});var Vi=16,z=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return O(r)?parseFloat(o.toFixed(r)):o};var Yi=()=>({lat:qt(),lng:Yt()}),qt=()=>z(-90,90),Yt=()=>z(-180,180);var G=t=>new Date(new Date().getTime()+t),P=(t,e)=>{let r=d(t),o=d(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let n=r||(o?new Date(o.getTime()-31536e7):G(-31536e7)),p=o||(r?new Date(r.getTime()+31536e7):G(31536e7));return new Date(a(n.getTime(),p.getTime()))},os=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return P(r,o)},ns=({startDate:t,endDate:e}={})=>{t&&H(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&H(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=d(t)||G(5*6e4);return P(r,e)},is=({startDate:t,endDate:e}={})=>{t&&F(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&F(e)&&console.warn("randomPastDate: endDate must be in the past");let r=d(e)||new Date;return P(t,r)},ss=()=>{let t=P();return {endDate:P(t),startDate:t}};var xt=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var St=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],gt=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],R=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],_=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],Qt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],te=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],ee=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],re=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],oe=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],ne=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],At=[...R,...Qt,...ee,...oe],ht=[..._,...te,...re,...ne];var Tt=({suffix:t}={})=>(i(R)+"."+i(_)).toLowerCase()+it()+(t||"");var xs=({handle:t,handleSuffix:e}={})=>`${t||Tt({suffix:e})}@${i(xt)}`;var Et=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],Nt=["!","@","#","$","%","^","&","*"];var Ts=()=>i(Et);var Os=t=>{let e=rt(t);return i(e)};var Is=t=>{let e=ot(t);return i(e)};var v=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],J=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],ie=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],se=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],ae=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Ct=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Ot=[...v,...J,...ie,...se,...ae];var T=()=>i(Ot),Bs=()=>i(J),Ls=()=>i(v);var Pt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>X(u(a(e,r),()=>T()).join(" ").slice(0,t-1)+".");var ce=["png","jpg","jpeg","gif","svg","webp"],vs=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||i(ce);return new File([Pt()],`${t||T()}.${r}`,{type:`image/${r}`})};var W=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Zs=()=>"#"+u(6,()=>i(W)).join("");var ra=()=>i(W);var sa=()=>i(Ct);var pa=()=>i(dt);var fa=()=>u(4,()=>a(0,255).toString()).join(".");var Sa=()=>i([...St,...gt]),ga=()=>i(At),Aa=()=>i(ht),ha=()=>i(R)+" "+i(_);var Ca=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return u(t,(e,r)=>a(r?0:1,9)).join("")};var me=1,Rt=()=>me++;var V=({length:t=10}={})=>u(t,()=>U()).join("");var Ba=({minChars:t=9,maxChars:e=32}={})=>V({length:1}).toUpperCase()+V({length:a(t,e)-3})+i(Nt)+a(1,9);var Wa=({depth:t=3}={})=>u(t,T).join("/");var _t=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var $a=()=>i(_t);var Ja=()=>{let t=Rt().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Xa=t=>new URLSearchParams({input:JSON.stringify(t)});
|
|
5
5
|
|
|
6
|
-
exports.JS_MAX_DIGITS =
|
|
6
|
+
exports.JS_MAX_DIGITS = Vi;
|
|
7
7
|
exports.array = u;
|
|
8
|
-
exports.arrayDiff =
|
|
9
|
-
exports.arrayIntersection =
|
|
10
|
-
exports.average =
|
|
11
|
-
exports.capitalize =
|
|
12
|
-
exports.checkEnvVars =
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
8
|
+
exports.arrayDiff = Me;
|
|
9
|
+
exports.arrayIntersection = we;
|
|
10
|
+
exports.average = ni;
|
|
11
|
+
exports.capitalize = X;
|
|
12
|
+
exports.checkEnvVars = ye;
|
|
13
|
+
exports.chunkArray = D;
|
|
14
|
+
exports.chunkedAll = We;
|
|
15
|
+
exports.chunkedAsync = ze;
|
|
16
|
+
exports.clamp = j;
|
|
17
|
+
exports.cleanSpaces = er;
|
|
18
|
+
exports.cyclicalItem = or;
|
|
19
|
+
exports.dir = ir;
|
|
20
|
+
exports.enumKeys = rt;
|
|
21
|
+
exports.enumValues = ot;
|
|
22
|
+
exports.first = Sr;
|
|
23
|
+
exports.firstKey = Ar;
|
|
24
|
+
exports.firstValue = Tr;
|
|
25
|
+
exports.formatCamelCase = xe;
|
|
26
|
+
exports.formatNumber = Oe;
|
|
27
|
+
exports.formatPercentage = Xn;
|
|
28
|
+
exports.formatProgress = Zn;
|
|
29
|
+
exports.formatTrpcInputQueryString = Xa;
|
|
30
|
+
exports.getEnumerableOwnPropertySymbols = Mt;
|
|
31
|
+
exports.getKeys = A;
|
|
32
|
+
exports.getUrlSearchParam = Pr;
|
|
33
|
+
exports.getUrlSearchParams = nt;
|
|
34
|
+
exports.incrementalId = it;
|
|
35
|
+
exports.isArray = y;
|
|
36
|
+
exports.isArrayIncluded = Br;
|
|
37
|
+
exports.isBoolean = kr;
|
|
38
|
+
exports.isBrowser = zr;
|
|
39
|
+
exports.isBuffer = Xr;
|
|
40
|
+
exports.isClient = B;
|
|
41
|
+
exports.isEmail = Zr;
|
|
42
|
+
exports.isEmpty = ct;
|
|
43
|
+
exports.isEmptyArray = wt;
|
|
44
|
+
exports.isEmptyObject = Bt;
|
|
45
|
+
exports.isEmptyString = jt;
|
|
46
|
+
exports.isEven = ge;
|
|
47
|
+
exports.isFile = no;
|
|
48
|
+
exports.isFunction = C;
|
|
49
|
+
exports.isFutureDate = F;
|
|
50
|
+
exports.isInt = g;
|
|
51
|
+
exports.isJsDate = L;
|
|
52
|
+
exports.isKey = w;
|
|
53
|
+
exports.isLastIndex = po;
|
|
54
|
+
exports.isNegative = Te;
|
|
55
|
+
exports.isNegativeInt = Ee;
|
|
56
|
+
exports.isNotEmptyString = fo;
|
|
57
|
+
exports.isNumber = I;
|
|
58
|
+
exports.isNumeric = et;
|
|
59
|
+
exports.isNumericId = bo;
|
|
55
60
|
exports.isObject = l;
|
|
56
|
-
exports.isOdd =
|
|
57
|
-
exports.isPWA =
|
|
58
|
-
exports.isPastDate =
|
|
59
|
-
exports.isPositive =
|
|
60
|
-
exports.isPositiveInt =
|
|
61
|
-
exports.isPromise =
|
|
62
|
-
exports.isReactElement =
|
|
63
|
-
exports.isRegExp =
|
|
64
|
-
exports.isSame =
|
|
65
|
-
exports.isServer =
|
|
66
|
-
exports.isSpacedString =
|
|
67
|
-
exports.isString =
|
|
68
|
-
exports.isStringDate =
|
|
69
|
-
exports.isURL =
|
|
70
|
-
exports.isUUID =
|
|
71
|
-
exports.isValue =
|
|
72
|
-
exports.keysLength =
|
|
73
|
-
exports.last =
|
|
74
|
-
exports.lastIndex =
|
|
75
|
-
exports.max =
|
|
76
|
-
exports.merge =
|
|
77
|
-
exports.mergeArrays =
|
|
78
|
-
exports.min =
|
|
79
|
-
exports.moveToFirst =
|
|
80
|
-
exports.moveToLast =
|
|
81
|
-
exports.multiply =
|
|
82
|
-
exports.normalizeNumber =
|
|
83
|
-
exports.objectDiff =
|
|
84
|
-
exports.omit =
|
|
61
|
+
exports.isOdd = Ae;
|
|
62
|
+
exports.isPWA = Eo;
|
|
63
|
+
exports.isPastDate = H;
|
|
64
|
+
exports.isPositive = he;
|
|
65
|
+
exports.isPositiveInt = N;
|
|
66
|
+
exports.isPromise = Ao;
|
|
67
|
+
exports.isReactElement = Co;
|
|
68
|
+
exports.isRegExp = Po;
|
|
69
|
+
exports.isSame = k;
|
|
70
|
+
exports.isServer = at;
|
|
71
|
+
exports.isSpacedString = tt;
|
|
72
|
+
exports.isString = b;
|
|
73
|
+
exports.isStringDate = wo;
|
|
74
|
+
exports.isURL = Lo;
|
|
75
|
+
exports.isUUID = Uo;
|
|
76
|
+
exports.isValue = O;
|
|
77
|
+
exports.keysLength = Ir;
|
|
78
|
+
exports.last = st;
|
|
79
|
+
exports.lastIndex = h;
|
|
80
|
+
exports.max = si;
|
|
81
|
+
exports.merge = K;
|
|
82
|
+
exports.mergeArrays = zo;
|
|
83
|
+
exports.min = ci;
|
|
84
|
+
exports.moveToFirst = Go;
|
|
85
|
+
exports.moveToLast = Jo;
|
|
86
|
+
exports.multiply = pi;
|
|
87
|
+
exports.normalizeNumber = Xo;
|
|
88
|
+
exports.objectDiff = Qo;
|
|
89
|
+
exports.omit = en;
|
|
85
90
|
exports.parseDate = d;
|
|
86
|
-
exports.percentageChange =
|
|
87
|
-
exports.pickObjectKeys =
|
|
88
|
-
exports.pickObjectValues =
|
|
89
|
-
exports.pretty =
|
|
90
|
-
exports.prismaDateRange =
|
|
91
|
-
exports.promiseWithTimeout =
|
|
92
|
-
exports.randomAddress =
|
|
93
|
-
exports.randomAlphaNumericCode =
|
|
94
|
-
exports.randomArrayItem =
|
|
95
|
-
exports.randomBankAccount =
|
|
96
|
-
exports.randomBool =
|
|
97
|
-
exports.randomChar =
|
|
98
|
-
exports.randomCompany =
|
|
99
|
-
exports.randomCoords =
|
|
100
|
-
exports.randomDate =
|
|
101
|
-
exports.randomDateRange =
|
|
102
|
-
exports.randomEmail =
|
|
103
|
-
exports.randomEmoji =
|
|
104
|
-
exports.randomEnumKey =
|
|
105
|
-
exports.randomEnumValue =
|
|
106
|
-
exports.randomFile =
|
|
107
|
-
exports.randomFirstName =
|
|
108
|
-
exports.randomFloat =
|
|
109
|
-
exports.randomFormattedPercentage =
|
|
110
|
-
exports.randomFullName =
|
|
111
|
-
exports.randomFutureDate =
|
|
112
|
-
exports.randomHandle =
|
|
113
|
-
exports.randomHexColor =
|
|
114
|
-
exports.randomHexValue =
|
|
115
|
-
exports.randomHtmlColorName =
|
|
116
|
-
exports.randomIBAN =
|
|
117
|
-
exports.randomIP =
|
|
91
|
+
exports.percentageChange = di;
|
|
92
|
+
exports.pickObjectKeys = an;
|
|
93
|
+
exports.pickObjectValues = mn;
|
|
94
|
+
exports.pretty = dn;
|
|
95
|
+
exports.prismaDateRange = xi;
|
|
96
|
+
exports.promiseWithTimeout = yn;
|
|
97
|
+
exports.randomAddress = Pi;
|
|
98
|
+
exports.randomAlphaNumericCode = Mi;
|
|
99
|
+
exports.randomArrayItem = i;
|
|
100
|
+
exports.randomBankAccount = Li;
|
|
101
|
+
exports.randomBool = Wi;
|
|
102
|
+
exports.randomChar = U;
|
|
103
|
+
exports.randomCompany = Gi;
|
|
104
|
+
exports.randomCoords = Yi;
|
|
105
|
+
exports.randomDate = P;
|
|
106
|
+
exports.randomDateRange = ss;
|
|
107
|
+
exports.randomEmail = xs;
|
|
108
|
+
exports.randomEmoji = Ts;
|
|
109
|
+
exports.randomEnumKey = Os;
|
|
110
|
+
exports.randomEnumValue = Is;
|
|
111
|
+
exports.randomFile = vs;
|
|
112
|
+
exports.randomFirstName = ga;
|
|
113
|
+
exports.randomFloat = z;
|
|
114
|
+
exports.randomFormattedPercentage = Tn;
|
|
115
|
+
exports.randomFullName = ha;
|
|
116
|
+
exports.randomFutureDate = ns;
|
|
117
|
+
exports.randomHandle = Tt;
|
|
118
|
+
exports.randomHexColor = Zs;
|
|
119
|
+
exports.randomHexValue = ra;
|
|
120
|
+
exports.randomHtmlColorName = sa;
|
|
121
|
+
exports.randomIBAN = pa;
|
|
122
|
+
exports.randomIP = fa;
|
|
118
123
|
exports.randomInt = a;
|
|
119
|
-
exports.randomLastName =
|
|
120
|
-
exports.randomLat =
|
|
121
|
-
exports.randomLng =
|
|
122
|
-
exports.randomMaxDate =
|
|
123
|
-
exports.randomMaxInt =
|
|
124
|
-
exports.randomMaxSafeInt =
|
|
125
|
-
exports.randomName =
|
|
126
|
-
exports.randomNegativeInt =
|
|
127
|
-
exports.randomNoun =
|
|
128
|
-
exports.randomNumericCode =
|
|
129
|
-
exports.randomNumericId =
|
|
130
|
-
exports.randomParagraph =
|
|
131
|
-
exports.randomPassword =
|
|
132
|
-
exports.randomPastDate =
|
|
133
|
-
exports.randomPath =
|
|
134
|
-
exports.randomPercentage =
|
|
135
|
-
exports.randomPhoneNumber =
|
|
136
|
-
exports.randomPositiveInt =
|
|
137
|
-
exports.randomPositivePercentage =
|
|
138
|
-
exports.randomString =
|
|
139
|
-
exports.randomUUID =
|
|
140
|
-
exports.randomVerb =
|
|
141
|
-
exports.randomWord =
|
|
142
|
-
exports.scrambleText =
|
|
143
|
-
exports.serialize =
|
|
144
|
-
exports.seriesAll =
|
|
145
|
-
exports.setUrlSearchParams =
|
|
146
|
-
exports.shuffle =
|
|
147
|
-
exports.sleep =
|
|
148
|
-
exports.stringToCSSUnicode =
|
|
149
|
-
exports.stringToUnicode =
|
|
150
|
-
exports.sum =
|
|
151
|
-
exports.toggleArray =
|
|
152
|
-
exports.toggleArrayValue =
|
|
153
|
-
exports.truncate =
|
|
154
|
-
exports.uniqueValues =
|
|
124
|
+
exports.randomLastName = Aa;
|
|
125
|
+
exports.randomLat = qt;
|
|
126
|
+
exports.randomLng = Yt;
|
|
127
|
+
exports.randomMaxDate = os;
|
|
128
|
+
exports.randomMaxInt = An;
|
|
129
|
+
exports.randomMaxSafeInt = gn;
|
|
130
|
+
exports.randomName = Sa;
|
|
131
|
+
exports.randomNegativeInt = Sn;
|
|
132
|
+
exports.randomNoun = Bs;
|
|
133
|
+
exports.randomNumericCode = Ca;
|
|
134
|
+
exports.randomNumericId = Rt;
|
|
135
|
+
exports.randomParagraph = Pt;
|
|
136
|
+
exports.randomPassword = Ba;
|
|
137
|
+
exports.randomPastDate = is;
|
|
138
|
+
exports.randomPath = Wa;
|
|
139
|
+
exports.randomPercentage = Wt;
|
|
140
|
+
exports.randomPhoneNumber = $a;
|
|
141
|
+
exports.randomPositiveInt = xn;
|
|
142
|
+
exports.randomPositivePercentage = hn;
|
|
143
|
+
exports.randomString = V;
|
|
144
|
+
exports.randomUUID = Ja;
|
|
145
|
+
exports.randomVerb = Ls;
|
|
146
|
+
exports.randomWord = T;
|
|
147
|
+
exports.scrambleText = _n;
|
|
148
|
+
exports.serialize = Mn;
|
|
149
|
+
exports.seriesAll = jn;
|
|
150
|
+
exports.setUrlSearchParams = Ln;
|
|
151
|
+
exports.shuffle = Un;
|
|
152
|
+
exports.sleep = Fn;
|
|
153
|
+
exports.stringToCSSUnicode = ti;
|
|
154
|
+
exports.stringToUnicode = ri;
|
|
155
|
+
exports.sum = ut;
|
|
156
|
+
exports.toggleArray = zn;
|
|
157
|
+
exports.toggleArrayValue = Ft;
|
|
158
|
+
exports.truncate = vn;
|
|
159
|
+
exports.uniqueValues = M;
|
|
155
160
|
|
|
156
161
|
return exports;
|
|
157
162
|
|