deverything 0.25.2 → 0.27.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 CHANGED
@@ -30,6 +30,7 @@ Contributions always welcome!
30
30
  - `isPastDate()`
31
31
  - `isStringDate()` also checks if the string passed is a **valid** date
32
32
  - `isKey()` is a real key of an object
33
+ - `isLastIndex()` is the index is the last item of array
33
34
  - `isNumber()` if the arg is number, and also usable (no infinity)
34
35
  - `isInt()`
35
36
  - `isEven()`
@@ -48,6 +49,13 @@ Contributions always welcome!
48
49
  - `isURL()`
49
50
  - `isUUID()`
50
51
 
52
+ ### Math
53
+
54
+ - `average()`
55
+ - `max()`
56
+ - `min()`
57
+ - `sum()`
58
+
51
59
  ### Helpers
52
60
 
53
61
  - `array()` create an arbitrary array based on a function
package/dist/index.d.ts CHANGED
@@ -38,7 +38,7 @@ type Config = {
38
38
  */
39
39
  declare const checkEnvVars: (envVarsMap: Record<string, SimpleValidationRule | EnvValidation | WithEnvValidation>, config?: Config) => void;
40
40
 
41
- declare const array: <U extends (...args: any) => any>(length: number, mapFn: U) => ReturnType<U>[];
41
+ declare const array: <U extends (...args: any) => any>(length: number, mapFn?: U) => ReturnType<U>[];
42
42
 
43
43
  declare const arrayDiff: (arr1: any[], arr2: any[]) => any[];
44
44
 
@@ -73,11 +73,15 @@ type Dimensions = {
73
73
  height: number;
74
74
  };
75
75
 
76
+ type Matrix<T> = T[][];
77
+
76
78
  type Maybe<T> = T | null | undefined;
77
79
  type MaybePromise<T> = Maybe<Promise<T>>;
78
80
  type MaybePromiseOrValue<T> = MaybePromise<T> | T;
79
81
  type MaybePromiseOrValueArray<T> = MaybePromiseOrValue<T>[];
80
82
 
83
+ type NonUndefined<T> = T extends undefined ? never : T;
84
+
81
85
  type ObjectValue<T> = T[keyof T];
82
86
  type ObjectValues<T> = ObjectValue<T>[];
83
87
  type ObjectKey<T> = keyof T;
@@ -94,8 +98,6 @@ type Point = {
94
98
 
95
99
  type PrismaSelect<T> = Record<keyof T, true>;
96
100
 
97
- type NonUndefined<T> = T extends undefined ? never : T;
98
-
99
101
  declare const firstKey: (arg: PlainObject) => string;
100
102
 
101
103
  declare const firstValue: (arg: PlainObject) => any;
@@ -123,12 +125,23 @@ declare const normalizeNumber: ({ value, max, min, }: {
123
125
 
124
126
  declare const objectDiff: (leftObject: PlainObject, rightObject: PlainObject) => PlainObject;
125
127
 
128
+ declare const omit: <T extends PlainObject>(obj: T, keys: (keyof T)[]) => Partial<T>;
129
+
126
130
  declare const parseDate: (arg?: Maybe<DateLike>) => Date | undefined;
127
131
 
128
132
  declare const pretty: (arg?: any) => string;
129
133
 
130
134
  declare const promiseWithTimeout: <T>(promise: () => Promise<T>, timeoutMs: number, error?: Error) => Promise<T>;
131
135
 
136
+ /**
137
+ * Serialize plain object to a deterministic string,
138
+ * for nested objects use [json-stable-stringify](https://www.npmjs.com/package/json-stable-stringify)
139
+ *
140
+ * @example
141
+ * serialize({ b: 1, a: 2 }) // '{"a":1,"b":2}'
142
+ */
143
+ declare const serialize: <T extends PlainObject>(obj: T) => string;
144
+
132
145
  declare const shuffle: <T>(array: T[]) => T[];
133
146
 
134
147
  declare const sleep: (timeMs: number) => Promise<void>;
@@ -146,6 +159,23 @@ declare const truncate: (arg: string, limit: number, ellipsis?: string) => strin
146
159
 
147
160
  declare const uniqueValues: (arr: any[]) => any[];
148
161
 
162
+ /**
163
+ * Calculates the average of a list of numbers.
164
+ * @example
165
+ * average([1, 2, 3, 4, 5]); // 3
166
+ * average(1, 2, 3, 4, 5); // 3
167
+ */
168
+ declare const average: (numbers: number[]) => number;
169
+
170
+ declare const max: (values: number[]) => number;
171
+
172
+ declare const min: (values: number[]) => number;
173
+
174
+ type PropertyAccessor<T> = keyof T | ((item: T) => any);
175
+
176
+ declare const sum: (numbers: number[]) => number;
177
+ declare const sumBy: <T extends PlainObject>(items: T[], prop: PropertyAccessor<T>) => number;
178
+
149
179
  type Address = {
150
180
  city: string;
151
181
  country: string;
@@ -287,20 +317,6 @@ declare const randomUUID: () => string;
287
317
 
288
318
  declare const randomWord: () => string;
289
319
 
290
- declare const randomPlayingCardSuit: () => string;
291
- declare const randomBlackJackCard: () => {
292
- rank: string;
293
- value: number[];
294
- } | {
295
- rank: string;
296
- value: number;
297
- };
298
- declare const randomBlackJackDeck: () => {
299
- rank: string;
300
- value: number | number[];
301
- suit: string;
302
- }[];
303
-
304
320
  declare const isArray: <T>(arg?: any) => arg is T[];
305
321
 
306
322
  declare const isBoolean: (arg: any) => boolean;
@@ -316,7 +332,7 @@ declare const isEmptyString: (arg: string) => boolean;
316
332
  declare const isEmptyArray: (arg: any[]) => boolean;
317
333
  declare const isEmptyObject: (arg: PlainObject) => boolean;
318
334
 
319
- declare const isFunction: (arg: any) => boolean;
335
+ declare const isFunction: (arg: any) => arg is Function;
320
336
 
321
337
  declare const isFutureDate: (arg: DateLike) => boolean;
322
338
 
@@ -324,6 +340,8 @@ declare const isJsDate: (arg: Date) => arg is Date;
324
340
 
325
341
  declare const isKey: <T extends object>(key: string | number | symbol, obj: T) => key is keyof T;
326
342
 
343
+ declare const isLastIndex: (index: number, array: any[]) => boolean;
344
+
327
345
  declare const isInt: (arg: number) => boolean;
328
346
  declare const isEven: (arg: number) => boolean;
329
347
  declare const isOdd: (arg: number) => boolean;
@@ -363,4 +381,4 @@ declare const isUUID: (arg: string) => boolean;
363
381
 
364
382
  declare const isValue: (arg?: Maybe<any>) => boolean;
365
383
 
366
- export { Coords, DateLike, DateRange, Datey, Dimensions, JS_MAX_DIGITS, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainObject, Point, PrismaSelect, array, arrayDiff, arrayIntersection, capitalize, checkEnvVars, clamp, cleanSpaces, first, firstKey, firstValue, getEnumerableOwnPropertySymbols, getKeys, isArray, isBoolean, isBrowser, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFunction, isFutureDate, isInt, isJsDate, isKey, isNegative, isNumber, isNumeric, isNumericId, isObject, isOdd, isPWA, isPastDate, isPositive, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isString, isStringDate, isURL, isUUID, isValue, last, merge, moveToFirst, moveToLast, normalizeNumber, objectDiff, parseDate, pretty, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArrayItem, randomBankAccount, randomBlackJackCard, randomBlackJackDeck, randomBool, 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, randomNumericCode, randomNumericId, randomParagraph, randomPassword, randomPastDate, randomPercentage, randomPlayingCardSuit, randomPositiveInt, randomPositivePercentage, randomUUID, randomWord, shuffle, sleep, toggleArray, toggleArrayValue, truncate, uniqueValues };
384
+ export { Coords, DateLike, DateRange, Datey, Dimensions, JS_MAX_DIGITS, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainObject, Point, PrismaSelect, array, arrayDiff, arrayIntersection, average, capitalize, checkEnvVars, clamp, cleanSpaces, first, firstKey, firstValue, getEnumerableOwnPropertySymbols, getKeys, isArray, isBoolean, isBrowser, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegative, isNumber, isNumeric, isNumericId, isObject, isOdd, isPWA, isPastDate, isPositive, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isString, isStringDate, isURL, isUUID, isValue, last, max, merge, min, moveToFirst, moveToLast, normalizeNumber, objectDiff, omit, parseDate, pretty, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArrayItem, randomBankAccount, randomBool, 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, randomNumericCode, randomNumericId, randomParagraph, randomPassword, randomPastDate, randomPercentage, randomPositiveInt, randomPositivePercentage, randomUUID, randomWord, serialize, shuffle, sleep, sum, sumBy, toggleArray, toggleArrayValue, truncate, uniqueValues };
@@ -1,117 +1,122 @@
1
1
  (function (exports) {
2
2
  'use strict';
3
3
 
4
- var Nt=Object.defineProperty,ht=Object.defineProperties;var Tt=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var F=(t,e,r)=>e in t?Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e)=>{for(var r in e||(e={}))Ct.call(e,r)&&F(t,r,e[r]);if(K)for(var r of K(e))_t.call(e,r)&&F(t,r,e[r]);return t},z=(t,e)=>ht(t,Tt(e));var f=t=>Array.isArray(t);var p=t=>Object.prototype.toString.call(t)==="[object Object]";var Dt=["oneOf","endsWith","startsWith"],fe=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],i=[],l=({envVarKey:c,envVarValue:a,validation:m})=>{m.oneOf&&(a?m.oneOf.includes(a)||o.push(`${c}=${a} is not allowed, use one of: ${m.oneOf.join(", ")}`):o.push(`${c} is missing`)),m.endsWith&&(a?a!=null&&a.endsWith(m.endsWith)||o.push(`${c}=${a} is not allowed, must end in: ${m.endsWith}`):o.push(`${c} is missing`)),m.startsWith&&(a?a!=null&&a.startsWith(m.startsWith)||o.push(`${c}=${a} is not allowed, must start with: ${m.startsWith}`):o.push(`${c} is missing`));},N=({envVarKey:c,envVarValue:a,rule:m})=>{switch(m){case"should":a||i.push(`${c} should be set`);break;case"shouldNot":a&&i.push(`${c} should not be set`);break;case"never":case!1:a&&o.push(`${c} is not allowed`);break;case"always":case!0:default:a||o.push(`${c} is missing`);break}};if(Object.entries(t).forEach(([c,a])=>{let m=process.env[c];p(a)?(Object.entries(a).forEach(([S,A])=>{Dt.includes(S)&&l({envVarValue:m,validation:{[S]:A},envVarKey:c});}),Object.entries(a).forEach(([S,A])=>{process.env[r]===S&&(p(A)?l({envVarValue:m,validation:A,envVarKey:c}):N({envVarValue:m,rule:A,envVarKey:c}));})):f(a)?a.forEach(A=>{process.env[r]===A&&!m&&o.push(`${c} is missing`);}):N({envVarValue:m,rule:a,envVarKey:c});}),i.length&&console.warn("[WARNING] "+i.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var d=(t,e)=>Array.from({length:t},e);var h=t=>[...new Set(t)];var xe=(t,e)=>h(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var Ne=(t,e)=>h(t.filter(r=>e.includes(r)));var G=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var Ce=({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 H=new RegExp(/\p{C}/,"gu");var J=new RegExp("\\p{Zs}","gu");var $=new RegExp("\\p{Zl}","gu");var X=new RegExp("\\p{Zp}","gu");var we=t=>t.replace(H," ").replace(J," ").replace($," ").replace(X," ").trim().replace(/\s{2,}/g," ");var je=t=>t==null?void 0:t[0];var u=t=>Object.keys(t).concat(It(t)),It=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var Fe=t=>u(t)[0];var ze=t=>Object.values(t)[0];var He=t=>t==null?void 0:t[t.length-1];var $e=t=>Object.prototype.toString.call(t)==="[object Boolean]";var q=()=>typeof window=="undefined";var T=()=>!q();var Qe=T;var y=t=>typeof t=="string";var or=t=>y(t)&&/\S+@\S+\.\S+/.test(t);var Y=t=>!!(t===void 0||t===null||Mt(t)||Ot(t)||Rt(t)),Mt=t=>y(t)&&t.trim().length===0,Rt=t=>f(t)&&t.length===0,Ot=t=>p(t)&&Object.keys(t).length===0;var O=t=>Object.prototype.toString.call(t)==="[object Function]";var B=t=>{let e=b(t);return !!e&&e>new Date};var C=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var _=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var D=t=>Number.isInteger(t),fr=t=>D(t)&&!(t%2),br=t=>D(t)&&!!(t%2),V=t=>D(t)&&t>0,Ar=t=>D(t)&&t<0,Z=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Q=t=>t.indexOf(" ")>=0;var tt=t=>Z(t)?!0:!y(t)||Q(t)?!1:!isNaN(parseFloat(t));var hr=t=>/^\d+$/.test(t)&&parseInt(t)>0;var P=t=>{let e=b(t);return !!e&&e<new Date};var Dr=t=>t instanceof Promise;var Rr=()=>T()&&window.matchMedia("(display-mode: standalone)").matches;var Bt=typeof Symbol=="function"&&Symbol.for,Pt=Bt?Symbol.for("react.element"):60103,Br=t=>t.$$typeof===Pt;var Lr=t=>Object.prototype.toString.call(t)==="[object RegExp]";var I=(t,e)=>{if(t===e)return !0;if(f(t)&&f(e))return t.length!==e.length?!1:t.every((r,o)=>I(r,e[o]));if(p(t)&&p(e)){let r=u(t);return r.length!==u(e).length?!1:r.every(o=>I(t[o],e[o]))}return O(t)&&O(e)?t.toString()===e.toString():!1};var vr=t=>{let e=new Date(t);return C(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"),Gr=t=>!!t&&Lt.test(t);var Jr=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 et=t=>t!=null&&!Number.isNaN(t);var L=(t,e)=>{let r={};return u(t).forEach(o=>{r[o]=p(t[o])?L({},t[o]):t[o];}),u(e).forEach(o=>{_(o,t)?r[o]=p(t[o])&&p(e[o])?L(t[o],e[o]):e[o]:r[o]=p(e[o])?L({},e[o]):e[o];}),r};var Zr=(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 to=(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 ro=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var ao=(t,e)=>{var r={};let o=new Set([...u(t),...u(e)]);for(let i of o)I(e[i],t[i])||(r[i]={from:t[i],to:e[i]});return r};var b=t=>{if(Y(t))return;let e=new Date(t);if(C(e))return e};function wt(){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 l=t.indexOf(this);~l?t.splice(l+1):t.push(this),~l?e.splice(l,1/0,o):e.push(o),~t.indexOf(i)&&(i=r.call(this,o,i));}else t.push(i);return i}}var uo=t=>JSON.stringify(t,wt(),2);var fo=(t,e,r)=>{let o,i=new Promise((l,N)=>{o=setTimeout(()=>N(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),i]).finally(()=>{clearTimeout(o);})};var rt=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 yo=t=>new Promise(e=>{setTimeout(e,t);});var kt=(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},Eo=kt;var ho=(t,e,r="...")=>{if(!V(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var jt=[{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"}],Ut=[{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"}],Wt=[{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"}],ot=[...jt,...Ut,...Wt,...Kt];var s=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),_o=(t=100)=>s(1,t),Do=(t=-100)=>s(t,-1),Io=()=>s(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Mo=()=>s(-Number.MAX_VALUE,Number.MAX_VALUE),Ft=({min:t,max:e}={})=>s(t!=null?t:-100,e!=null?e:100),Ro=({min:t,max:e}={})=>s(t!=null?t:1,e!=null?e:100),Oo=()=>Ft()+"%";var n=t=>t[s(0,t.length-1)];var jo=()=>n(ot);var vt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),Fo=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return d(t,()=>n(vt)).join("")};var nt=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var zt=[{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"},{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"}],Gt=[{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"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021"}],Ht=[{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"},{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"}],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"},{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"}],it=[...zt,...Gt,...Ht,...Jt];var Jo=()=>n(it);var qo=()=>!!s(0,1);var Zo=16,w=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return et(r)?parseFloat(o.toFixed(r)):o};var en=()=>({lat:$t(),lng:Xt()}),$t=()=>w(-90,90),Xt=()=>w(-180,180);var j=t=>new Date(new Date().getTime()+t),x=(t,e)=>{let r=b(t),o=b(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let i=r||(o?new Date(o.getTime()-31536e7):j(-31536e7)),l=o||(r?new Date(r.getTime()+31536e7):j(31536e7));return new Date(s(i.getTime(),l.getTime()))},cn=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return x(r,o)},mn=({startDate:t,endDate:e}={})=>{t&&P(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&P(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=b(t)||j(5*6e4);return x(r,e)},pn=({startDate:t,endDate:e}={})=>{t&&B(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&B(e)&&console.warn("randomPastDate: endDate must be in the past");let r=b(e)||new Date;return x(t,r)},un=()=>{let t=x();return {endDate:x(t),startDate:t}};var at=["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"],ct=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],E=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],g=["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"],Vt=["\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"],Zt=["\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"],Qt=["\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"],te=["\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"],ee=["\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"],mt=[...E,...Yt,...Zt,...te],pt=[...g,...Vt,...Qt,...ee];var ut=()=>(n(E)+"."+n(g)).toLowerCase()+s(11,99);var Nn=()=>`${ut()}@${n(at)}`;var lt=["\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}"],dt=["!","@","#","$","%","^","&","*"];var Dn=()=>n(lt);var ft=t=>Object.keys(t).filter(e=>!tt(e));var Pn=t=>{let e=ft(t);return n(e)};var bt=t=>{let e=[];return Object.values(t).forEach(r=>{_(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var Wn=t=>{let e=bt(t);return n(e)};var re=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow","be","go","need","work"],oe=["courage","family","food","friend","fun","hope","justice","life","love","music","smile","time"],ne=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","remarkable","sunny","unforgettable","wonderful","predictable"],ie=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],ae=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var At=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],yt=[...re,...oe,...ne,...ie,...ae];var M=()=>n(yt);var St=()=>G(d(s(8,16),()=>M()).join(" "))+".";var se=["png","jpg","jpeg","gif","svg","webp"],Qn=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(se);return new File([St()],`${t||M()}.${r}`,{type:`image/${r}`})};var R=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var ii=()=>"#"+d(6,()=>n(R)).join("");var mi=()=>n(R);var xt=()=>n(At);var Ai=()=>n(nt);var Ei=()=>d(4,()=>s(0,255).toString()).join(".");var Ti=()=>n([...st,...ct]),Ci=()=>n(mt),_i=()=>n(pt),Di=()=>n(E)+" "+n(g);var Oi=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return d(t,(e,r)=>s(r?0:1,9)).join("")};var ce=1,Et=()=>ce++;var Ui=()=>xt()+n(dt)+s(11,99);var Fi=()=>{let t=Et().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var U=["\u2660","\u2665","\u2666","\u2663"],W=[{rank:"A",value:[1,11]},{rank:"K",value:10},{rank:"Q",value:10},{rank:"J",value:10},{rank:"10",value:10},{rank:"9",value:9},{rank:"8",value:8},{rank:"7",value:7},{rank:"6",value:6},{rank:"5",value:5},{rank:"4",value:4},{rank:"3",value:3},{rank:"2",value:2}],gt=W.reduce((t,e)=>(t.push(...U.map(r=>z(v({},e),{suit:r}))),t),[]);var Xi=()=>n(U),qi=()=>n(W),Yi=()=>rt(gt);
4
+ var f=t=>Array.isArray(t);var p=t=>Object.prototype.toString.call(t)==="[object Object]";var yt=["oneOf","endsWith","startsWith"],ee=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],i=[],l=({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`));},h=({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];p(s)?(Object.entries(s).forEach(([A,y])=>{yt.includes(A)&&l({envVarValue:m,validation:{[A]:y},envVarKey:c});}),Object.entries(s).forEach(([A,y])=>{process.env[r]===A&&(p(y)?l({envVarValue:m,validation:y,envVarKey:c}):h({envVarValue:m,rule:y,envVarKey:c}));})):f(s)?s.forEach(y=>{process.env[r]===y&&!m&&o.push(`${c} is missing`);}):h({envVarValue:m,rule:s,envVarKey:c});}),i.length&&console.warn("[WARNING] "+i.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var d=(t,e=()=>{})=>Array.from({length:t},e);var T=t=>[...new Set(t)];var se=(t,e)=>T(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var me=(t,e)=>T(t.filter(r=>e.includes(r)));var U=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var le=({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 W=new RegExp(/\p{C}/,"gu");var F=new RegExp("\\p{Zs}","gu");var z=new RegExp("\\p{Zl}","gu");var K=new RegExp("\\p{Zp}","gu");var Ne=t=>t.replace(W," ").replace(F," ").replace(z," ").replace(K," ").trim().replace(/\s{2,}/g," ");var Te=t=>t==null?void 0:t[0];var u=t=>Object.keys(t).concat(St(t)),St=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var Me=t=>u(t)[0];var Ie=t=>Object.values(t)[0];var Re=t=>t==null?void 0:t[t.length-1];var we=t=>Object.prototype.toString.call(t)==="[object Boolean]";var H=()=>typeof window=="undefined";var C=()=>!H();var Fe=C;var S=t=>typeof t=="string";var Ge=t=>S(t)&&/\S+@\S+\.\S+/.test(t);var G=t=>!!(t===void 0||t===null||At(t)||gt(t)||xt(t)),At=t=>S(t)&&t.trim().length===0,xt=t=>f(t)&&t.length===0,gt=t=>p(t)&&Object.keys(t).length===0;var x=t=>Object.prototype.toString.call(t)==="[object Function]";var R=t=>{let e=b(t);return !!e&&e>new Date};var _=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var O=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var er=(t,e)=>t===e.length-1;var M=t=>Number.isInteger(t),or=t=>M(t)&&!(t%2),nr=t=>M(t)&&!!(t%2),$=t=>M(t)&&t>0,ir=t=>M(t)&&t<0,J=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var X=t=>t.indexOf(" ")>=0;var v=t=>J(t)?!0:!S(t)||X(t)?!1:!isNaN(parseFloat(t));var lr=t=>/^\d+$/.test(t)&&parseInt(t)>0;var B=t=>{let e=b(t);return !!e&&e<new Date};var yr=t=>t instanceof Promise;var xr=()=>C()&&window.matchMedia("(display-mode: standalone)").matches;var Et=typeof Symbol=="function"&&Symbol.for,Nt=Et?Symbol.for("react.element"):60103,Er=t=>t.$$typeof===Nt;var hr=t=>Object.prototype.toString.call(t)==="[object RegExp]";var P=(t,e)=>{if(t===e)return !0;if(f(t)&&f(e))return t.length!==e.length?!1:t.every((r,o)=>P(r,e[o]));if(p(t)&&p(e)){let r=u(t);return r.length!==u(e).length?!1:r.every(o=>P(t[o],e[o]))}return x(t)&&x(e)?t.toString()===e.toString():!1};var Dr=t=>{let e=new Date(t);return _(e)};var ht=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"),Br=t=>!!t&&ht.test(t);var Lr=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 V=t=>t!=null&&!Number.isNaN(t);var w=(t,e)=>{let r={};return u(t).forEach(o=>{r[o]=p(t[o])?w({},t[o]):t[o];}),u(e).forEach(o=>{O(o,t)?r[o]=p(t[o])&&p(e[o])?w(t[o],e[o]):e[o]:r[o]=p(e[o])?w({},e[o]):e[o];}),r};var zr=(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 Hr=(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 $r=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Vr=(t,e)=>{var r={};let o=new Set([...u(t),...u(e)]);for(let i of o)P(e[i],t[i])||(r[i]={from:t[i],to:e[i]});return r};var Yr=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var b=t=>{if(G(t))return;let e=new Date(t);if(_(e))return e};var q=()=>{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 l=t.indexOf(this);~l?t.splice(l+1):t.push(this),~l?e.splice(l,1/0,o):e.push(o),~t.indexOf(i)&&(i=r.call(this,o,i));}else t.push(i);return i}};var no=t=>JSON.stringify(t,q(),2);var so=(t,e,r)=>{let o,i=new Promise((l,h)=>{o=setTimeout(()=>h(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),i]).finally(()=>{clearTimeout(o);})};var co=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var po=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 lo=t=>new Promise(e=>{setTimeout(e,t);});var Tt=(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},yo=Tt;var xo=(t,e,r="...")=>{if(!$(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var Eo=t=>t.reduce((r,o)=>r+o,0)/t.length;var ho=t=>Math.max(...t);var Co=t=>Math.min(...t);var Y=(t,e)=>x(e)?e(t):t[e];var Do=t=>t.reduce((e,r)=>e+r,0),Ro=(t,e)=>t.reduce((r,o)=>r+Y(o,e),0);var Ct=[{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"}],_t=[{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"}],Ot=[{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"}],Mt=[{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"}],Z=[...Ct,..._t,...Ot,...Mt];var a=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),Lo=(t=100)=>a(1,t),jo=(t=-100)=>a(t,-1),ko=()=>a(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Uo=()=>a(-Number.MAX_VALUE,Number.MAX_VALUE),Pt=({min:t,max:e}={})=>a(t!=null?t:-100,e!=null?e:100),Wo=({min:t,max:e}={})=>a(t!=null?t:1,e!=null?e:100),Fo=()=>Pt()+"%";var n=t=>t[a(0,t.length-1)];var Jo=()=>n(Z);var It="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),qo=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return d(t,()=>n(It)).join("")};var Q=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var Dt=[{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"},{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"}],Rt=[{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"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021"}],Bt=[{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"},{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"}],wt=[{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"},{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"}],tt=[...Dt,...Rt,...Bt,...wt];var en=()=>n(tt);var nn=()=>!!a(0,1);var cn=16,L=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return V(r)?parseFloat(o.toFixed(r)):o};var un=()=>({lat:Lt(),lng:jt()}),Lt=()=>L(-90,90),jt=()=>L(-180,180);var k=t=>new Date(new Date().getTime()+t),g=(t,e)=>{let r=b(t),o=b(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let i=r||(o?new Date(o.getTime()-31536e7):k(-31536e7)),l=o||(r?new Date(r.getTime()+31536e7):k(31536e7));return new Date(a(i.getTime(),l.getTime()))},Sn=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return g(r,o)},An=({startDate:t,endDate:e}={})=>{t&&B(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&B(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=b(t)||k(5*6e4);return g(r,e)},xn=({startDate:t,endDate:e}={})=>{t&&R(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&R(e)&&console.warn("randomPastDate: endDate must be in the past");let r=b(e)||new Date;return g(t,r)},gn=()=>{let t=g();return {endDate:g(t),startDate:t}};var et=["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 rt=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],ot=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],E=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],N=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],Ut=["\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"],Wt=["\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"],Ft=["\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"],zt=["\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"],Kt=["\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"],Ht=["\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"],nt=[...E,...Ut,...Ft,...Kt],it=[...N,...Wt,...zt,...Ht];var st=()=>(n(E)+"."+n(N)).toLowerCase()+a(11,99);var Dn=()=>`${st()}@${n(et)}`;var at=["\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}"],ct=["!","@","#","$","%","^","&","*"];var jn=()=>n(at);var mt=t=>Object.keys(t).filter(e=>!v(e));var Kn=t=>{let e=mt(t);return n(e)};var pt=t=>{let e=[];return Object.values(t).forEach(r=>{O(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var vn=t=>{let e=pt(t);return n(e)};var Gt=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow","be","go","need","work"],$t=["courage","family","food","friend","fun","hope","justice","life","love","music","smile","time"],Jt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","remarkable","sunny","unforgettable","wonderful","predictable"],Xt=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],vt=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var ut=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],lt=[...Gt,...$t,...Jt,...Xt,...vt];var I=()=>n(lt);var dt=()=>U(d(a(8,16),()=>I()).join(" "))+".";var Vt=["png","jpg","jpeg","gif","svg","webp"],ci=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(Vt);return new File([dt()],`${t||I()}.${r}`,{type:`image/${r}`})};var D=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var fi=()=>"#"+d(6,()=>n(D)).join("");var Ai=()=>n(D);var ft=()=>n(ut);var Ci=()=>n(Q);var Pi=()=>d(4,()=>a(0,255).toString()).join(".");var Bi=()=>n([...rt,...ot]),wi=()=>n(nt),Li=()=>n(it),ji=()=>n(E)+" "+n(N);var Fi=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return d(t,(e,r)=>a(r?0:1,9)).join("")};var qt=1,bt=()=>qt++;var Xi=()=>ft()+n(ct)+a(11,99);var qi=()=>{let t=bt().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};
5
5
 
6
- exports.JS_MAX_DIGITS = Zo;
6
+ exports.JS_MAX_DIGITS = cn;
7
7
  exports.array = d;
8
- exports.arrayDiff = xe;
9
- exports.arrayIntersection = Ne;
10
- exports.capitalize = G;
11
- exports.checkEnvVars = fe;
12
- exports.clamp = Ce;
13
- exports.cleanSpaces = we;
14
- exports.first = je;
15
- exports.firstKey = Fe;
16
- exports.firstValue = ze;
17
- exports.getEnumerableOwnPropertySymbols = It;
8
+ exports.arrayDiff = se;
9
+ exports.arrayIntersection = me;
10
+ exports.average = Eo;
11
+ exports.capitalize = U;
12
+ exports.checkEnvVars = ee;
13
+ exports.clamp = le;
14
+ exports.cleanSpaces = Ne;
15
+ exports.first = Te;
16
+ exports.firstKey = Me;
17
+ exports.firstValue = Ie;
18
+ exports.getEnumerableOwnPropertySymbols = St;
18
19
  exports.getKeys = u;
19
20
  exports.isArray = f;
20
- exports.isBoolean = $e;
21
- exports.isBrowser = Qe;
22
- exports.isClient = T;
23
- exports.isEmail = or;
24
- exports.isEmpty = Y;
25
- exports.isEmptyArray = Rt;
26
- exports.isEmptyObject = Ot;
27
- exports.isEmptyString = Mt;
28
- exports.isEven = fr;
29
- exports.isFunction = O;
30
- exports.isFutureDate = B;
31
- exports.isInt = D;
32
- exports.isJsDate = C;
33
- exports.isKey = _;
34
- exports.isNegative = Ar;
35
- exports.isNumber = Z;
36
- exports.isNumeric = tt;
37
- exports.isNumericId = hr;
21
+ exports.isBoolean = we;
22
+ exports.isBrowser = Fe;
23
+ exports.isClient = C;
24
+ exports.isEmail = Ge;
25
+ exports.isEmpty = G;
26
+ exports.isEmptyArray = xt;
27
+ exports.isEmptyObject = gt;
28
+ exports.isEmptyString = At;
29
+ exports.isEven = or;
30
+ exports.isFunction = x;
31
+ exports.isFutureDate = R;
32
+ exports.isInt = M;
33
+ exports.isJsDate = _;
34
+ exports.isKey = O;
35
+ exports.isLastIndex = er;
36
+ exports.isNegative = ir;
37
+ exports.isNumber = J;
38
+ exports.isNumeric = v;
39
+ exports.isNumericId = lr;
38
40
  exports.isObject = p;
39
- exports.isOdd = br;
40
- exports.isPWA = Rr;
41
- exports.isPastDate = P;
42
- exports.isPositive = V;
43
- exports.isPromise = Dr;
44
- exports.isReactElement = Br;
45
- exports.isRegExp = Lr;
46
- exports.isSame = I;
47
- exports.isServer = q;
48
- exports.isSpacedString = Q;
49
- exports.isString = y;
50
- exports.isStringDate = vr;
51
- exports.isURL = Gr;
52
- exports.isUUID = Jr;
53
- exports.isValue = et;
54
- exports.last = He;
55
- exports.merge = L;
56
- exports.moveToFirst = Zr;
57
- exports.moveToLast = to;
58
- exports.normalizeNumber = ro;
59
- exports.objectDiff = ao;
41
+ exports.isOdd = nr;
42
+ exports.isPWA = xr;
43
+ exports.isPastDate = B;
44
+ exports.isPositive = $;
45
+ exports.isPromise = yr;
46
+ exports.isReactElement = Er;
47
+ exports.isRegExp = hr;
48
+ exports.isSame = P;
49
+ exports.isServer = H;
50
+ exports.isSpacedString = X;
51
+ exports.isString = S;
52
+ exports.isStringDate = Dr;
53
+ exports.isURL = Br;
54
+ exports.isUUID = Lr;
55
+ exports.isValue = V;
56
+ exports.last = Re;
57
+ exports.max = ho;
58
+ exports.merge = w;
59
+ exports.min = Co;
60
+ exports.moveToFirst = zr;
61
+ exports.moveToLast = Hr;
62
+ exports.normalizeNumber = $r;
63
+ exports.objectDiff = Vr;
64
+ exports.omit = Yr;
60
65
  exports.parseDate = b;
61
- exports.pretty = uo;
62
- exports.promiseWithTimeout = fo;
63
- exports.randomAddress = jo;
64
- exports.randomAlphaNumericCode = Fo;
66
+ exports.pretty = no;
67
+ exports.promiseWithTimeout = so;
68
+ exports.randomAddress = Jo;
69
+ exports.randomAlphaNumericCode = qo;
65
70
  exports.randomArrayItem = n;
66
- exports.randomBankAccount = Jo;
67
- exports.randomBlackJackCard = qi;
68
- exports.randomBlackJackDeck = Yi;
69
- exports.randomBool = qo;
70
- exports.randomCoords = en;
71
- exports.randomDate = x;
72
- exports.randomDateRange = un;
73
- exports.randomEmail = Nn;
74
- exports.randomEmoji = Dn;
75
- exports.randomEnumKey = Pn;
76
- exports.randomEnumValue = Wn;
77
- exports.randomFile = Qn;
78
- exports.randomFirstName = Ci;
79
- exports.randomFloat = w;
80
- exports.randomFormattedPercentage = Oo;
81
- exports.randomFullName = Di;
82
- exports.randomFutureDate = mn;
83
- exports.randomHandle = ut;
84
- exports.randomHexColor = ii;
85
- exports.randomHexValue = mi;
86
- exports.randomHtmlColorName = xt;
87
- exports.randomIBAN = Ai;
88
- exports.randomIP = Ei;
89
- exports.randomInt = s;
90
- exports.randomLastName = _i;
91
- exports.randomLat = $t;
92
- exports.randomLng = Xt;
93
- exports.randomMaxDate = cn;
94
- exports.randomMaxInt = Mo;
95
- exports.randomMaxSafeInt = Io;
96
- exports.randomName = Ti;
97
- exports.randomNegativeInt = Do;
98
- exports.randomNumericCode = Oi;
99
- exports.randomNumericId = Et;
100
- exports.randomParagraph = St;
101
- exports.randomPassword = Ui;
102
- exports.randomPastDate = pn;
103
- exports.randomPercentage = Ft;
104
- exports.randomPlayingCardSuit = Xi;
105
- exports.randomPositiveInt = _o;
106
- exports.randomPositivePercentage = Ro;
107
- exports.randomUUID = Fi;
108
- exports.randomWord = M;
109
- exports.shuffle = rt;
110
- exports.sleep = yo;
111
- exports.toggleArray = Eo;
112
- exports.toggleArrayValue = kt;
113
- exports.truncate = ho;
114
- exports.uniqueValues = h;
71
+ exports.randomBankAccount = en;
72
+ exports.randomBool = nn;
73
+ exports.randomCoords = un;
74
+ exports.randomDate = g;
75
+ exports.randomDateRange = gn;
76
+ exports.randomEmail = Dn;
77
+ exports.randomEmoji = jn;
78
+ exports.randomEnumKey = Kn;
79
+ exports.randomEnumValue = vn;
80
+ exports.randomFile = ci;
81
+ exports.randomFirstName = wi;
82
+ exports.randomFloat = L;
83
+ exports.randomFormattedPercentage = Fo;
84
+ exports.randomFullName = ji;
85
+ exports.randomFutureDate = An;
86
+ exports.randomHandle = st;
87
+ exports.randomHexColor = fi;
88
+ exports.randomHexValue = Ai;
89
+ exports.randomHtmlColorName = ft;
90
+ exports.randomIBAN = Ci;
91
+ exports.randomIP = Pi;
92
+ exports.randomInt = a;
93
+ exports.randomLastName = Li;
94
+ exports.randomLat = Lt;
95
+ exports.randomLng = jt;
96
+ exports.randomMaxDate = Sn;
97
+ exports.randomMaxInt = Uo;
98
+ exports.randomMaxSafeInt = ko;
99
+ exports.randomName = Bi;
100
+ exports.randomNegativeInt = jo;
101
+ exports.randomNumericCode = Fi;
102
+ exports.randomNumericId = bt;
103
+ exports.randomParagraph = dt;
104
+ exports.randomPassword = Xi;
105
+ exports.randomPastDate = xn;
106
+ exports.randomPercentage = Pt;
107
+ exports.randomPositiveInt = Lo;
108
+ exports.randomPositivePercentage = Wo;
109
+ exports.randomUUID = qi;
110
+ exports.randomWord = I;
111
+ exports.serialize = co;
112
+ exports.shuffle = po;
113
+ exports.sleep = lo;
114
+ exports.sum = Do;
115
+ exports.sumBy = Ro;
116
+ exports.toggleArray = yo;
117
+ exports.toggleArrayValue = Tt;
118
+ exports.truncate = xo;
119
+ exports.uniqueValues = T;
115
120
 
116
121
  return exports;
117
122