deverything 1.0.0 → 1.1.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 +3 -7
- package/dist/index.d.ts +33 -5
- package/dist/index.global.js +134 -132
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +134 -132
- 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
|
@@ -81,10 +81,11 @@ Contributions always welcome!
|
|
|
81
81
|
- `arrayDiff()` get the difference of two arrays
|
|
82
82
|
- `arrayIntersection()` get the intersection of two arrays
|
|
83
83
|
- `capitalize()` word => Word
|
|
84
|
-
- `cleanSpaces()` trims and turns double spaces into single space
|
|
85
84
|
- `clamp()` clamp number in a range
|
|
85
|
+
- `cleanSpaces()` trims and turns double spaces into single space
|
|
86
86
|
- `enumKeys()` enum FRUIT { APPLE, PEAR } => ["APPLE", "PEAR"]
|
|
87
87
|
- `enumValues()` enum FRUIT { APPLE = 1, PEAR = 3 } => [1, 3]
|
|
88
|
+
- `filterAlphanumeric()` remove non-alphanumeric characters
|
|
88
89
|
- `first()` get the first element of an array
|
|
89
90
|
- `firstKey()` get the first key of an object
|
|
90
91
|
- `firstValue()` get the first value of an object
|
|
@@ -116,6 +117,7 @@ Contributions always welcome!
|
|
|
116
117
|
### Formatters
|
|
117
118
|
|
|
118
119
|
- `formatCamelCase()`
|
|
120
|
+
- `formatCookies()` { cookie1: "1", cookie2: "2" } => "cookie1=1; cookie2=2"
|
|
119
121
|
- `formatNumber()` 1000 => "1,000" or "1K" or 0.112 => "11.2%"
|
|
120
122
|
- `formatPercentage()` 0.11 => "11%"
|
|
121
123
|
- `formatProgress()` => "[2/10]"
|
|
@@ -173,12 +175,6 @@ These functions are optimized for low entropy random data generation useful for
|
|
|
173
175
|
- `randomValue()`
|
|
174
176
|
- `randomWord()`
|
|
175
177
|
|
|
176
|
-
### Checks
|
|
177
|
-
|
|
178
|
-
Checks are functions that throw an error, if the validation fails
|
|
179
|
-
|
|
180
|
-
- ⭐ `checkEnvVars()` Make sure env vars are set per-environment
|
|
181
|
-
|
|
182
178
|
### TypeScript Helpers & Generics
|
|
183
179
|
|
|
184
180
|
- `Coords`
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,18 @@ type Coords = {
|
|
|
5
5
|
|
|
6
6
|
type DateLike = Date | string | number;
|
|
7
7
|
type Datey = Date | string;
|
|
8
|
+
/**
|
|
9
|
+
* @example "2021-01-01T00:00:00.000Z"
|
|
10
|
+
*/
|
|
8
11
|
type ISODate = string;
|
|
12
|
+
/**
|
|
13
|
+
* @example "2021-01-01"
|
|
14
|
+
*/
|
|
15
|
+
type ISODay = string;
|
|
16
|
+
/**
|
|
17
|
+
* @example "America/New_York"
|
|
18
|
+
*/
|
|
19
|
+
type Timezone = string;
|
|
9
20
|
type DateRange = {
|
|
10
21
|
startDate: DateLike;
|
|
11
22
|
endDate: DateLike;
|
|
@@ -80,6 +91,13 @@ declare const startOfTomorrow: () => Date;
|
|
|
80
91
|
|
|
81
92
|
declare const formatCamelCase: (str: string) => string;
|
|
82
93
|
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @example formatCookies({}) => ""
|
|
97
|
+
* @example formatCookies({ session: "123", _ga: 123 }) => "session=123; _ga=123"
|
|
98
|
+
*/
|
|
99
|
+
declare const formatCookies: (object: PlainObject) => string;
|
|
100
|
+
|
|
83
101
|
/**
|
|
84
102
|
*
|
|
85
103
|
* @example formatNumber(1000, { compact: true }) // 1K
|
|
@@ -160,6 +178,12 @@ declare const enumKeys: <T extends object>(arg: T) => ObjectKeys<T>;
|
|
|
160
178
|
|
|
161
179
|
declare const enumValues: <T extends object>(enumObject: T) => ObjectValues<T>;
|
|
162
180
|
|
|
181
|
+
/**
|
|
182
|
+
* @returns a string with only alphanumeric characters
|
|
183
|
+
* @example filterAlphanumeric("!abc()") // returns "abc"
|
|
184
|
+
*/
|
|
185
|
+
declare const filterAlphanumeric: (string: string) => string;
|
|
186
|
+
|
|
163
187
|
declare const first: <T>(arr?: T[] | undefined) => T | undefined;
|
|
164
188
|
|
|
165
189
|
declare const firstKey: <T extends PlainObject<any>>(arg: T) => keyof T;
|
|
@@ -244,12 +268,13 @@ declare const serialize: <T extends PlainObject<any>>(obj: T) => string;
|
|
|
244
268
|
* @description Run a series of (async) functions in order and return the results
|
|
245
269
|
* @example
|
|
246
270
|
* const results = await seriesAll([
|
|
247
|
-
*
|
|
248
|
-
*
|
|
271
|
+
* Promise.resolve(1),
|
|
272
|
+
* sleep(100).then(() => 2),
|
|
249
273
|
* () => Promise.resolve(3),
|
|
250
|
-
*
|
|
274
|
+
* async () => 4,
|
|
275
|
+
* ]); => [1, 2, 3, 4]
|
|
251
276
|
*/
|
|
252
|
-
declare const seriesAll: <T>(series:
|
|
277
|
+
declare const seriesAll: <T>(series: (Promise<T> | (() => Promise<T>))[]) => Promise<T[]>;
|
|
253
278
|
|
|
254
279
|
/**
|
|
255
280
|
* Sets a value in an object using a dot-separated path.
|
|
@@ -543,6 +568,9 @@ declare const isEmptyObject: (arg: PlainObject) => boolean;
|
|
|
543
568
|
|
|
544
569
|
declare const isFile: (arg?: any) => arg is File;
|
|
545
570
|
|
|
571
|
+
/**
|
|
572
|
+
* @returns true if the argument can be called like a function -> fn() or await fn()
|
|
573
|
+
*/
|
|
546
574
|
declare const isFunction: (arg: any) => arg is Function;
|
|
547
575
|
|
|
548
576
|
declare const isFutureDate: (arg: DateLike) => boolean;
|
|
@@ -609,4 +637,4 @@ declare const isUUID: (arg: string) => boolean;
|
|
|
609
637
|
|
|
610
638
|
declare const isValue: (arg?: Maybe<any>) => boolean;
|
|
611
639
|
|
|
612
|
-
export { BoolMap, Coords, DateLike, DateRange, Datey, Dimensions, HashMap, ISODate, JS_MAX_DIGITS, Key, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectEntry, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainKey, PlainObject, Point, PrismaSelect, Serialized, StringMap, TrueMap, WithDatey, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkedAll, chunkedAsync, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, first, firstKey, firstValue, formatCamelCase, formatNumber, formatPercentage, formatProgress, formatTrpcInputQueryString, getCookieByName, getEnumerableOwnPropertySymbols, getKeys, getUrlSearchParam, getUrlSearchParams, incrementalId, isArray, isArrayIncluded, isBetween, 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, isOutside, isOver18, isPWA, isPastDate, isPositive, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, normaliseArray, normaliseNumber, 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, randomPhoneNumber, randomPositiveInt, randomString, randomUUID, randomVerb, randomWord, scrambleText, serialize, seriesAll, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, stringToCSSUnicode, stringToUnicode, sum, toggleArray, toggleArrayValue, truncate, uniqueValues };
|
|
640
|
+
export { BoolMap, Coords, DateLike, DateRange, Datey, Dimensions, HashMap, ISODate, ISODay, JS_MAX_DIGITS, Key, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectEntry, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainKey, PlainObject, Point, PrismaSelect, Serialized, StringMap, Timezone, TrueMap, WithDatey, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkedAll, chunkedAsync, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatNumber, formatPercentage, formatProgress, formatTrpcInputQueryString, getCookieByName, getEnumerableOwnPropertySymbols, getKeys, getUrlSearchParam, getUrlSearchParams, incrementalId, isArray, isArrayIncluded, isBetween, 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, isOutside, isOver18, isPWA, isPastDate, isPositive, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, normaliseArray, normaliseNumber, 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, randomPhoneNumber, randomPositiveInt, randomString, randomUUID, randomVerb, randomWord, scrambleText, serialize, seriesAll, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, stringToCSSUnicode, stringToUnicode, sum, toggleArray, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.global.js
CHANGED
|
@@ -1,172 +1,174 @@
|
|
|
1
1
|
(function (exports) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var b=(t,e,r)=>new Promise((o,n)=>{var i=m=>{try{d(r.next(m));}catch(B){n(B);}},p=m=>{try{d(r.throw(m));}catch(B){n(B);}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(i,p);d((r=r.apply(t,e)).next());});var c=(t,e=()=>{})=>Array.from({length:t},e);var C=t=>[...new Set(t)];var ye=(t,e)=>C(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var ge=(t,e)=>C(t.filter(r=>e.includes(r)));var z=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var O=(t,e)=>{let r=[];for(let o=0;o<t.length;o+=e)r.push(t.slice(o,o+e));return r};var Ne=(t,e,r)=>b(void 0,null,function*(){let o=O(t,e);return yield Promise.all(o.map(r))});var Pe=(t,e,r)=>b(void 0,null,function*(){let o=[],n=O(t,e);for(let[i,p]of n.entries()){let d=yield r(p,i,n);o.push(d);}return o});var P=({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 G=new RegExp(/\p{C}/,"gu");var J=new RegExp("\\p{Zs}","gu");var v=new RegExp("\\p{Zl}","gu");var X=new RegExp("\\p{Zp}","gu");var Fe=t=>t.replace(G," ").replace(J," ").replace(v," ").replace(X," ").trim().replace(/\s{2,}/g," ");var Ke=(t,e)=>t[e%t.length];var We=(t,e=5)=>{console.dir(t,{depth:e});};var x=t=>Number.isInteger(t),Ge=t=>x(t)&&!(t%2),Je=t=>x(t)&&!!(t%2),ve=t=>x(t)&&t>0,$=t=>x(t)&&t>0,Xe=t=>x(t)&&t<0,$e=t=>x(t)&&t<0,M=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Y=t=>t.indexOf(" ")>=0;var f=t=>typeof t=="string";var q=t=>M(t)?!0:!f(t)||Y(t)?!1:!isNaN(parseFloat(t));var Z=t=>Object.keys(t).filter(e=>!q(e));var D=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var Q=t=>{let e=[];return Object.values(t).forEach(r=>{D(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var mr=t=>t==null?void 0:t[0];var ur=t=>Object.keys(t)[0];var lr=t=>Object.values(t)[0];var fr=t=>{if(typeof document=="undefined")return;let e=document.cookie.split(";");for(let r of e){let[o,n]=r.trim().split("=");if(o===t)return decodeURIComponent(n)}};var br=t=>Object.keys(t).concat(It(t)),It=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var tt=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var Ar=(t,e)=>tt(t)[e];var _t=1,et=()=>_t++;var Nr=t=>Object.keys(t).length;var g=t=>t.length-1;var rt=t=>t[g(t)];var y=t=>Array.isArray(t);var Dr=(t,e)=>t.every(r=>e.includes(r));var _r=t=>Object.prototype.toString.call(t)==="[object Boolean]";var ot=()=>typeof window=="undefined";var I=()=>!ot();var Lr=I;var A=t=>Object.prototype.toString.call(t)==="[object Function]";var h=t=>t!=null&&!Number.isNaN(t);var Wr=t=>h(t)&&h(t.constructor)&&A(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var Jr=t=>f(t)&&/\S+@\S+\.\S+/.test(t);var l=t=>Object.prototype.toString.call(t)==="[object Object]";var nt=t=>!!(t===void 0||t===null||Rt(t)||jt(t)||wt(t)),Rt=t=>f(t)&&t.trim().length===0,wt=t=>y(t)&&t.length===0,jt=t=>l(t)&&Object.keys(t).length===0;var Qr=t=>Object.prototype.toString.call(t)==="[object File]";var k=t=>{let e=u(t);return !!e&&e>new Date};var _=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var ao=(t,e)=>t===g(e);var mo=t=>f(t)&&t.trim().length>0;var uo=t=>/^\d+$/.test(t)&&parseInt(t)>0;var L=t=>{let e=u(t);return !!e&&e<new Date};var yo=t=>t instanceof Promise;var go=()=>I()&&window.matchMedia("(display-mode: standalone)").matches;var Bt=typeof Symbol=="function"&&Symbol.for,kt=Bt?Symbol.for("react.element"):60103,Ao=t=>t.$$typeof===kt;var To=t=>Object.prototype.toString.call(t)==="[object RegExp]";var R=(t,e)=>{if(t===e)return !0;if(y(t)&&y(e))return t.length!==e.length?!1:t.every((r,o)=>R(r,e[o]));if(l(t)&&l(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?!1:r.every(o=>R(t[o],e[o]))}return A(t)&&A(e)?t.toString()===e.toString():!1};var Do=t=>{let e=new Date(t);return _(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"),_o=t=>!!t&&Lt.test(t);var wo=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 U=(t,e)=>{let r={};return Object.keys(t).forEach(o=>{r[o]=l(t[o])?U({},t[o]):t[o];}),Object.keys(e).forEach(o=>{D(o,t)?r[o]=l(t[o])&&l(e[o])?U(t[o],e[o]):e[o]:r[o]=l(e[o])?U({},e[o]):e[o];}),r};var Lo=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Fo=(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 Ko=(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 Wo=({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([...Object.keys(t),...Object.keys(e)]);for(let n of o)R(e[n],t[n])||(r[n]={from:t[n],to:e[n]});return r};var Xo=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var u=t=>{if(nt(t))return;let e=new Date(t);if(_(e))return e};var Qo=(t,e)=>{let r={};for(let o in t)e.includes(o)&&(r[o]=t[o]);return r};var en=(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,n){return t[0]===n?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(n)).join(".")+"]"};return function(o,n){if(t.length>0){let i=t.indexOf(this);~i?t.splice(i+1):t.push(this),~i?e.splice(i,1/0,o):e.push(o),~t.indexOf(n)&&(n=r.call(this,o,n));}else t.push(n);return n}};var an=t=>JSON.stringify(t,at(),2);var mn=(t,e,r)=>{let o,n=new Promise((i,p)=>{o=setTimeout(()=>p(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),n]).finally(()=>{clearTimeout(o);})};var s=({min:t=-100,max:e=100}={})=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),un=({min:t=1,max:e=100}={})=>s({min:t,max:e}),pn=({min:t=-100,max:e=-1}={})=>s({min:t,max:e}),ln=()=>s({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),dn=()=>s({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),fn=()=>s()+"%";var w=()=>String.fromCharCode(s({min:97,max:122}));var it=new RegExp(/\p{L}/,"gu");var hn=t=>t.replace(it,()=>w());var Nn=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var Cn=t=>b(void 0,null,function*(){let e=[];for(let r of t)e.push(yield r());return e});var Dn=(t,e,r)=>{let o=e.split("."),n=(i,p,d)=>{let m=p[0];if(p.length===1){i[m]=d;return}(!i[m]||!l(i[m]))&&(i[m]={}),n(i[m],p.slice(1),d);};n(t,o,r);};var _n=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([n,i])=>{i!=null&&o.searchParams.set(n,i.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var wn=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(!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},Un=Ut;var Kn=(t,e,{ellipsis:r,position:o}={})=>{if(r||(r="..."),o||(o="end"),!$(e))return t;let n=[...t],i=r.length;if(n.length<=e)return t;switch(o){case"start":let p=e-i;return r+n.slice(-p).join("");case"middle":{let d=Math.ceil((e-i)/2),m=n.length-Math.floor((e-i)/2);return n.slice(0,d).join("")+r+n.slice(m).join("")}case"end":default:return n.slice(0,e-i).join("")+r}};var zn=t=>{let e=new Date,r=u(t);if(!r)return !1;let o=e.getFullYear()-r.getFullYear();if(o>18)return !0;if(o<18)return !1;if(o===18){if(e.getMonth()>r.getMonth())return !0;if(e.getMonth()<r.getMonth())return !1;if(e.getMonth()===r.getMonth()){if(e.getDate()>=r.getDate())return !0;if(e.getDate()<r.getDate())return !1}}return !1};var Jn=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth()+1,1)};var Xn=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+7-t.getDay())};var Yn=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay())};var st=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate());var ta=()=>st(new Date);var ra=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1)};var na=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n});var sa=(t,{compact:e,maxDigits:r,percentage:o}={})=>o?`${((M(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var ua=(t,{digits:e}={})=>`${P({number:t*100,min:0,max:100}).toFixed(e||0)}%`;var da=({index:t,total:e})=>`[${P({number:t+1,min:1,max:e})}/${e}]`;var ya=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var xa=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var Sa=t=>t.reduce((r,o)=>r+o,0)/t.length;var ha=(t,e,r)=>t>=e&&t<=r;var Na=(t,e,r)=>t<e||t>r;var Ca=(t,e,r)=>t>e&&t<r;var mt=t=>Math.max(...t);var ct=t=>Math.min(...t);var Da=t=>t.reduce((e,r)=>e*r,1);var ut=(t,e,r)=>(t-e)/(r-e);var Ba=t=>{let e=ct(t),r=mt(t);return t.map(o=>ut(o,e,r))};var La=(t,e)=>{if(t<0||e<0||e===0&&t===0)return 0;if(e===0&&t!==0)return -1;if(e!==0&&t===0)return 1;let r=(e-t)/t;return parseFloat(r.toFixed(4))};var pt=t=>t.reduce((e,r)=>e+r,0);var Ka=({startDate:t,endDate:e})=>{let r=u(t),o=u(e);if(!r||!o)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:o}};var Ft=[{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"}],Vt=[{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"}],Kt=[{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"}],Ht=[{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=[...Ft,...Vt,...Kt,...Ht];var a=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=pt(e),o=Math.random()*r;for(let n=0;n<e.length;n++)if(o-=e[n],o<=0)return t[n];return rt(t)}return t[s({min:0,max:g(t)})]};var qa=()=>a(lt);var Wt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),ei=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return c(t,()=>a(Wt)).join("")};var dt=["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",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"}],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",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"}],Jt=[{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"}],vt=[{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=[...zt,...Gt,...Jt,...vt];var ii=()=>a(ft);var ci=()=>a([!0,!1]);var yt=["IE1234567T","GB123456789","XI123456789"],bt=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var yi=()=>({name:a(bt),vatRegNumber:a(yt)});var gi=16,F=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return h(r)?parseFloat(o.toFixed(r)):o};var hi=()=>({lat:Xt(),lng:$t()}),Xt=()=>F(-90,90),$t=()=>F(-180,180);var Zt=(t=new Date)=>V(t,31536e7),Qt=(t=new Date)=>V(t,-31536e7),V=(t,e)=>new Date(t.getTime()+e),T=({startDate:t,endDate:e}={})=>{let r=u(t),o=u(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let n=r||Qt(o),i=o||Zt(r);return new Date(s({min:n.getTime(),max:i.getTime()}))},Pi=({startDate:t,endDate:e})=>(t=t||new Date(-864e13),e=e||new Date(864e13),T({startDate:t,endDate:e})),Mi=({startDate:t,endDate:e}={})=>{t&&L(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&L(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=u(t)||V(new Date,5*6e4);return T({startDate:r,endDate:e})},Di=({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=u(e)||new Date;return T({startDate:t,endDate:r})},Ii=()=>{let t=T();return {endDate:T({startDate: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 gt=["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"],N=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],E=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],te=["\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"],ee=["\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"],re=["\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"],oe=["\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"],ne=["\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"],ae=["\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=[...N,...te,...re,...ne],ht=[...E,...ee,...oe,...ae];var Tt=({suffix:t}={})=>(a(N)+"."+a(E)).toLowerCase()+et()+(t||"");var Ki=({handle:t,handleSuffix:e}={})=>`${t||Tt({suffix:e})}@${a(xt)}`;var Nt=["\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}"],Et=["!","@","#","$","%","^","&","*"];var Ji=()=>a(Nt);var Yi=t=>{let e=Z(t);return a(e)};var ts=t=>{let e=Q(t);return a(e)};var K=["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"],H=["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"],me=["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=[...K,...H,...ie,...se,...me];var S=()=>a(Ot),as=()=>a(H),is=()=>a(K);var Pt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>z(c(s({min:e,max:r}),()=>S()).join(" ").slice(0,t-1)+".");var ce=["png","jpg","jpeg","gif","svg","webp"],bs=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||a(ce);return new File([Pt()],`${t||S()}.${r}`,{type:`image/${r}`})};var j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Ts=()=>"#"+c(6,()=>a(j)).join("");var Os=()=>a(j);var Is=()=>a(Ct);var js=()=>a(dt);var Us=()=>c(4,()=>s({min:0,max:255}).toString()).join(".");var Hs=()=>a([...gt,...St]),Ws=()=>a(At),zs=()=>a(ht),Gs=()=>a(N)+" "+a(E);var $s=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return c(t,(e,r)=>s({min:r?0:1,max:9})).join("")};var ue=1,Mt=()=>ue++;var W=({length:t=10}={})=>c(t,()=>w()).join("");var am=({minChars:t=9,maxChars:e=32}={})=>W({length:1}).toUpperCase()+W({length:s({min:t,max:e})-3})+a(Et)+s({min:1,max:9});var cm=({depth:t=3}={})=>c(t,S).join("/");var Dt=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var fm=()=>a(Dt);var xm=()=>{let t=Mt().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Sm=t=>new URLSearchParams({input:JSON.stringify(t)});
|
|
4
|
+
var x=(t,e,r)=>new Promise((o,n)=>{var a=m=>{try{d(r.next(m));}catch(B){n(B);}},p=m=>{try{d(r.throw(m));}catch(B){n(B);}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(a,p);d((r=r.apply(t,e)).next());});var c=(t,e=()=>{})=>Array.from({length:t},e);var C=t=>[...new Set(t)];var be=(t,e)=>C(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var Se=(t,e)=>C(t.filter(r=>e.includes(r)));var z=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var O=(t,e)=>{let r=[];for(let o=0;o<t.length;o+=e)r.push(t.slice(o,o+e));return r};var Ee=(t,e,r)=>x(void 0,null,function*(){let o=O(t,e);return yield Promise.all(o.map(r))});var Me=(t,e,r)=>x(void 0,null,function*(){let o=[],n=O(t,e);for(let[a,p]of n.entries()){let d=yield r(p,a,n);o.push(d);}return o});var P=({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 G=new RegExp(/\p{C}/,"gu");var v=new RegExp("\\p{Zs}","gu");var J=new RegExp("\\p{Zl}","gu");var X=new RegExp("\\p{Zp}","gu");var Ve=t=>t.replace(G," ").replace(v," ").replace(J," ").replace(X," ").trim().replace(/\s{2,}/g," ");var He=(t,e)=>t[e%t.length];var ze=(t,e=5)=>{console.dir(t,{depth:e});};var g=t=>Number.isInteger(t),ve=t=>g(t)&&!(t%2),Je=t=>g(t)&&!!(t%2),Xe=t=>g(t)&&t>0,$=t=>g(t)&&t>0,$e=t=>g(t)&&t<0,Ye=t=>g(t)&&t<0,M=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Y=t=>t.indexOf(" ")>=0;var f=t=>typeof t=="string";var q=t=>M(t)?!0:!f(t)||Y(t)?!1:!isNaN(parseFloat(t));var Z=t=>Object.keys(t).filter(e=>!q(e));var D=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var Q=t=>{let e=[];return Object.values(t).forEach(r=>{D(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var cr=t=>t.replace(/[^a-zA-Z0-9]/g,"");var pr=t=>t==null?void 0:t[0];var dr=t=>Object.keys(t)[0];var yr=t=>Object.values(t)[0];var xr=t=>{if(typeof document=="undefined")return;let e=document.cookie.split(";");for(let r of e){let[o,n]=r.trim().split("=");if(o===t)return decodeURIComponent(n)}};var Sr=t=>Object.keys(t).concat(_t(t)),_t=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var tt=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var Nr=(t,e)=>tt(t)[e];var Rt=1,et=()=>Rt++;var Or=t=>Object.keys(t).length;var S=t=>t.length-1;var rt=t=>t[S(t)];var y=t=>Array.isArray(t);var Rr=(t,e)=>t.every(r=>e.includes(r));var wr=t=>Object.prototype.toString.call(t)==="[object Boolean]";var ot=()=>typeof window=="undefined";var I=()=>!ot();var Vr=I;var b=t=>{let e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"};var h=t=>t!=null&&!Number.isNaN(t);var vr=t=>h(t)&&h(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var $r=t=>f(t)&&/\S+@\S+\.\S+/.test(t);var l=t=>Object.prototype.toString.call(t)==="[object Object]";var nt=t=>!!(t===void 0||t===null||jt(t)||Bt(t)||wt(t)),jt=t=>f(t)&&t.trim().length===0,wt=t=>y(t)&&t.length===0,Bt=t=>l(t)&&Object.keys(t).length===0;var ro=t=>Object.prototype.toString.call(t)==="[object File]";var k=t=>{let e=u(t);return !!e&&e>new Date};var _=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var mo=(t,e)=>t===S(e);var po=t=>f(t)&&t.trim().length>0;var fo=t=>/^\d+$/.test(t)&&parseInt(t)>0;var L=t=>{let e=u(t);return !!e&&e<new Date};var it=t=>t instanceof Promise;var Ao=()=>I()&&window.matchMedia("(display-mode: standalone)").matches;var kt=typeof Symbol=="function"&&Symbol.for,Lt=kt?Symbol.for("react.element"):60103,To=t=>t.$$typeof===Lt;var Eo=t=>Object.prototype.toString.call(t)==="[object RegExp]";var R=(t,e)=>{if(t===e)return !0;if(y(t)&&y(e))return t.length!==e.length?!1:t.every((r,o)=>R(r,e[o]));if(l(t)&&l(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?!1:r.every(o=>R(t[o],e[o]))}return b(t)&&b(e)?t.toString()===e.toString():!1};var _o=t=>{let e=new Date(t);return _(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"),jo=t=>!!t&&Ut.test(t);var Bo=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 U=(t,e)=>{let r={};return Object.keys(t).forEach(o=>{r[o]=l(t[o])?U({},t[o]):t[o];}),Object.keys(e).forEach(o=>{D(o,t)?r[o]=l(t[o])&&l(e[o])?U(t[o],e[o]):e[o]:r[o]=l(e[o])?U({},e[o]):e[o];}),r};var Fo=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Ko=(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 Wo=(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 Go=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Xo=(t,e)=>{var r={};let o=new Set([...Object.keys(t),...Object.keys(e)]);for(let n of o)R(e[n],t[n])||(r[n]={from:t[n],to:e[n]});return r};var Yo=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var u=t=>{if(nt(t))return;let e=new Date(t);if(_(e))return e};var en=(t,e)=>{let r={};for(let o in t)e.includes(o)&&(r[o]=t[o]);return r};var on=(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,n){return t[0]===n?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(n)).join(".")+"]"};return function(o,n){if(t.length>0){let a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?e.splice(a,1/0,o):e.push(o),~t.indexOf(n)&&(n=r.call(this,o,n));}else t.push(n);return n}};var mn=t=>JSON.stringify(t,at(),2);var un=(t,e,r)=>{let o,n=new Promise((a,p)=>{o=setTimeout(()=>p(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),n]).finally(()=>{clearTimeout(o);})};var s=({min:t=-100,max:e=100}={})=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),ln=({min:t=1,max:e}={})=>s({min:t,max:e}),dn=({min:t,max:e=-1}={})=>s({min:t,max:e}),fn=()=>s({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),yn=()=>s({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),bn=()=>s()+"%";var j=()=>String.fromCharCode(s({min:97,max:122}));var st=new RegExp(/\p{L}/,"gu");var Nn=t=>t.replace(st,()=>j());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 Mn=t=>x(void 0,null,function*(){let e=[];for(let r of t)if(it(r))e.push(yield r);else if(b(r))e.push(yield r());else throw new Error("seriesAll: invalid type");return e});var Rn=(t,e,r)=>{let o=e.split("."),n=(a,p,d)=>{let m=p[0];if(p.length===1){a[m]=d;return}(!a[m]||!l(a[m]))&&(a[m]={}),n(a[m],p.slice(1),d);};n(t,o,r);};var wn=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([n,a])=>{a!=null&&o.searchParams.set(n,a.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var kn=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 Un=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},Kn=Ft;var zn=(t,e,{ellipsis:r,position:o}={})=>{if(r||(r="..."),o||(o="end"),!$(e))return t;let n=[...t],a=r.length;if(n.length<=e)return t;switch(o){case"start":let p=e-a;return r+n.slice(-p).join("");case"middle":{let d=Math.ceil((e-a)/2),m=n.length-Math.floor((e-a)/2);return n.slice(0,d).join("")+r+n.slice(m).join("")}case"end":default:return n.slice(0,e-a).join("")+r}};var Jn=t=>{let e=new Date,r=u(t);if(!r)return !1;let o=e.getFullYear()-r.getFullYear();if(o>18)return !0;if(o<18)return !1;if(o===18){if(e.getMonth()>r.getMonth())return !0;if(e.getMonth()<r.getMonth())return !1;if(e.getMonth()===r.getMonth()){if(e.getDate()>=r.getDate())return !0;if(e.getDate()<r.getDate())return !1}}return !1};var $n=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth()+1,1)};var qn=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+7-t.getDay())};var Qn=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay())};var mt=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate());var oi=()=>mt(new Date);var ii=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1)};var si=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n});var ci=t=>Object.entries(t).map(([e,r])=>`${e}=${r}`).join("; ");var li=(t,{compact:e,maxDigits:r,percentage:o}={})=>o?`${((M(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var yi=(t,{digits:e}={})=>`${P({number:t*100,min:0,max:100}).toFixed(e||0)}%`;var gi=({index:t,total:e})=>`[${P({number:t+1,min:1,max:e})}/${e}]`;var Ai=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Ti=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var Ei=t=>t.reduce((r,o)=>r+o,0)/t.length;var Oi=(t,e,r)=>t>=e&&t<=r;var Mi=(t,e,r)=>t<e||t>r;var Ii=(t,e,r)=>t>e&&t<r;var ct=t=>Math.max(...t);var ut=t=>Math.min(...t);var wi=t=>t.reduce((e,r)=>e*r,1);var pt=(t,e,r)=>(t-e)/(r-e);var Vi=t=>{let e=ut(t),r=ct(t);return t.map(o=>pt(o,e,r))};var Hi=(t,e)=>{if(t<0||e<0||e===0&&t===0)return 0;if(e===0&&t!==0)return -1;if(e!==0&&t===0)return 1;let r=(e-t)/t;return parseFloat(r.toFixed(4))};var lt=t=>t.reduce((e,r)=>e+r,0);var vi=({startDate:t,endDate:e})=>{let r=u(t),o=u(e);if(!r||!o)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:o}};var Vt=[{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"}],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"}],Wt=[{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"}],dt=[...Vt,...Kt,...Ht,...Wt];var i=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=lt(e),o=Math.random()*r;for(let n=0;n<e.length;n++)if(o-=e[n],o<=0)return t[n];return rt(t)}return t[s({min:0,max:S(t)})]};var ra=()=>i(dt);var zt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),aa=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return c(t,()=>i(zt)).join("")};var ft=["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"}],vt=[{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"}],Jt=[{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"}],yt=[...Gt,...vt,...Jt,...Xt];var pa=()=>i(yt);var fa=()=>i([!0,!1]);var bt=["IE1234567T","GB123456789","XI123456789"],xt=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Aa=()=>({name:i(xt),vatRegNumber:i(bt)});var Na=16,F=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return h(r)?parseFloat(o.toFixed(r)):o};var Oa=()=>({lat:$t(),lng:Yt()}),$t=()=>F(-90,90),Yt=()=>F(-180,180);var Qt=(t=new Date)=>V(t,31536e7),te=(t=new Date)=>V(t,-31536e7),V=(t,e)=>new Date(t.getTime()+e),T=({startDate:t,endDate:e}={})=>{let r=u(t),o=u(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let n=r||te(o),a=o||Qt(r);return new Date(s({min:n.getTime(),max:a.getTime()}))},Ra=({startDate:t,endDate:e})=>(t=t||new Date(-864e13),e=e||new Date(864e13),T({startDate:t,endDate:e})),ja=({startDate:t,endDate:e}={})=>{t&&L(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&L(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=u(t)||V(new Date,5*6e4);return T({startDate:r,endDate:e})},wa=({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=u(e)||new Date;return T({startDate:t,endDate:r})},Ba=()=>{let t=T();return {endDate:T({startDate:t}),startDate:t}};var gt=["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"],At=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],N=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],E=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],ee=["\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"],re=["\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"],oe=["\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"],ne=["\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"],ie=["\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"],ae=["\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"],ht=[...N,...ee,...oe,...ie],Tt=[...E,...re,...ne,...ae];var Nt=({suffix:t}={})=>(i(N)+"."+i(E)).toLowerCase()+et()+(t||"");var va=({handle:t,handleSuffix:e}={})=>`${t||Nt({suffix:e})}@${i(gt)}`;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}"],Ct=["!","@","#","$","%","^","&","*"];var qa=()=>i(Et);var es=t=>{let e=Z(t);return i(e)};var is=t=>{let e=Q(t);return i(e)};var K=["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"],H=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],se=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],me=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],ce=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Ot=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Pt=[...K,...H,...se,...me,...ce];var A=()=>i(Pt),us=()=>i(H),ps=()=>i(K);var Mt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>z(c(s({min:e,max:r}),()=>A()).join(" ").slice(0,t-1)+".");var ue=["png","jpg","jpeg","gif","svg","webp"],hs=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||i(ue);return new File([Mt()],`${t||A()}.${r}`,{type:`image/${r}`})};var w=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Ps=()=>"#"+c(6,()=>i(w)).join("");var _s=()=>i(w);var Bs=()=>i(Ot);var Fs=()=>i(ft);var Ws=()=>c(4,()=>s({min:0,max:255}).toString()).join(".");var Js=()=>i([...St,...At]),Xs=()=>i(ht),$s=()=>i(Tt),Ys=()=>i(N)+" "+i(E);var tm=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return c(t,(e,r)=>s({min:r?0:1,max:9})).join("")};var pe=1,Dt=()=>pe++;var W=({length:t=10}={})=>c(t,()=>j()).join("");var um=({minChars:t=9,maxChars:e=32}={})=>W({length:1}).toUpperCase()+W({length:s({min:t,max:e})-3})+i(Ct)+s({min:1,max:9});var fm=({depth:t=3}={})=>c(t,A).join("/");var It=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Sm=()=>i(It);var Tm=()=>{let t=Dt().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Em=t=>new URLSearchParams({input:JSON.stringify(t)});
|
|
5
5
|
|
|
6
|
-
exports.JS_MAX_DIGITS =
|
|
6
|
+
exports.JS_MAX_DIGITS = Na;
|
|
7
7
|
exports.array = c;
|
|
8
|
-
exports.arrayDiff =
|
|
9
|
-
exports.arrayIntersection =
|
|
10
|
-
exports.average =
|
|
8
|
+
exports.arrayDiff = be;
|
|
9
|
+
exports.arrayIntersection = Se;
|
|
10
|
+
exports.average = Ei;
|
|
11
11
|
exports.capitalize = z;
|
|
12
12
|
exports.chunkArray = O;
|
|
13
|
-
exports.chunkedAll =
|
|
14
|
-
exports.chunkedAsync =
|
|
13
|
+
exports.chunkedAll = Ee;
|
|
14
|
+
exports.chunkedAsync = Me;
|
|
15
15
|
exports.clamp = P;
|
|
16
|
-
exports.cleanSpaces =
|
|
17
|
-
exports.cyclicalItem =
|
|
18
|
-
exports.dir =
|
|
16
|
+
exports.cleanSpaces = Ve;
|
|
17
|
+
exports.cyclicalItem = He;
|
|
18
|
+
exports.dir = ze;
|
|
19
19
|
exports.enumKeys = Z;
|
|
20
20
|
exports.enumValues = Q;
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
21
|
+
exports.filterAlphanumeric = cr;
|
|
22
|
+
exports.first = pr;
|
|
23
|
+
exports.firstKey = dr;
|
|
24
|
+
exports.firstValue = yr;
|
|
25
|
+
exports.formatCamelCase = si;
|
|
26
|
+
exports.formatCookies = ci;
|
|
27
|
+
exports.formatNumber = li;
|
|
28
|
+
exports.formatPercentage = yi;
|
|
29
|
+
exports.formatProgress = gi;
|
|
30
|
+
exports.formatTrpcInputQueryString = Em;
|
|
31
|
+
exports.getCookieByName = xr;
|
|
32
|
+
exports.getEnumerableOwnPropertySymbols = _t;
|
|
33
|
+
exports.getKeys = Sr;
|
|
34
|
+
exports.getUrlSearchParam = Nr;
|
|
33
35
|
exports.getUrlSearchParams = tt;
|
|
34
36
|
exports.incrementalId = et;
|
|
35
37
|
exports.isArray = y;
|
|
36
|
-
exports.isArrayIncluded =
|
|
37
|
-
exports.isBetween =
|
|
38
|
-
exports.isBoolean =
|
|
39
|
-
exports.isBrowser =
|
|
40
|
-
exports.isBuffer =
|
|
38
|
+
exports.isArrayIncluded = Rr;
|
|
39
|
+
exports.isBetween = Oi;
|
|
40
|
+
exports.isBoolean = wr;
|
|
41
|
+
exports.isBrowser = Vr;
|
|
42
|
+
exports.isBuffer = vr;
|
|
41
43
|
exports.isClient = I;
|
|
42
|
-
exports.isEmail =
|
|
44
|
+
exports.isEmail = $r;
|
|
43
45
|
exports.isEmpty = nt;
|
|
44
46
|
exports.isEmptyArray = wt;
|
|
45
|
-
exports.isEmptyObject =
|
|
46
|
-
exports.isEmptyString =
|
|
47
|
-
exports.isEven =
|
|
48
|
-
exports.isFile =
|
|
49
|
-
exports.isFunction =
|
|
47
|
+
exports.isEmptyObject = Bt;
|
|
48
|
+
exports.isEmptyString = jt;
|
|
49
|
+
exports.isEven = ve;
|
|
50
|
+
exports.isFile = ro;
|
|
51
|
+
exports.isFunction = b;
|
|
50
52
|
exports.isFutureDate = k;
|
|
51
|
-
exports.isInt =
|
|
53
|
+
exports.isInt = g;
|
|
52
54
|
exports.isJsDate = _;
|
|
53
55
|
exports.isKey = D;
|
|
54
|
-
exports.isLastIndex =
|
|
55
|
-
exports.isNegative =
|
|
56
|
-
exports.isNegativeInt =
|
|
57
|
-
exports.isNotEmptyString =
|
|
56
|
+
exports.isLastIndex = mo;
|
|
57
|
+
exports.isNegative = $e;
|
|
58
|
+
exports.isNegativeInt = Ye;
|
|
59
|
+
exports.isNotEmptyString = po;
|
|
58
60
|
exports.isNumber = M;
|
|
59
61
|
exports.isNumeric = q;
|
|
60
|
-
exports.isNumericId =
|
|
62
|
+
exports.isNumericId = fo;
|
|
61
63
|
exports.isObject = l;
|
|
62
64
|
exports.isOdd = Je;
|
|
63
|
-
exports.isOutside =
|
|
64
|
-
exports.isOver18 =
|
|
65
|
-
exports.isPWA =
|
|
65
|
+
exports.isOutside = Mi;
|
|
66
|
+
exports.isOver18 = Jn;
|
|
67
|
+
exports.isPWA = Ao;
|
|
66
68
|
exports.isPastDate = L;
|
|
67
|
-
exports.isPositive =
|
|
69
|
+
exports.isPositive = Xe;
|
|
68
70
|
exports.isPositiveInt = $;
|
|
69
|
-
exports.isPromise =
|
|
70
|
-
exports.isReactElement =
|
|
71
|
-
exports.isRegExp =
|
|
71
|
+
exports.isPromise = it;
|
|
72
|
+
exports.isReactElement = To;
|
|
73
|
+
exports.isRegExp = Eo;
|
|
72
74
|
exports.isSame = R;
|
|
73
75
|
exports.isServer = ot;
|
|
74
76
|
exports.isSpacedString = Y;
|
|
75
|
-
exports.isStrictlyBetween =
|
|
77
|
+
exports.isStrictlyBetween = Ii;
|
|
76
78
|
exports.isString = f;
|
|
77
|
-
exports.isStringDate =
|
|
78
|
-
exports.isURL =
|
|
79
|
-
exports.isUUID =
|
|
79
|
+
exports.isStringDate = _o;
|
|
80
|
+
exports.isURL = jo;
|
|
81
|
+
exports.isUUID = Bo;
|
|
80
82
|
exports.isValue = h;
|
|
81
|
-
exports.keysLength =
|
|
83
|
+
exports.keysLength = Or;
|
|
82
84
|
exports.last = rt;
|
|
83
|
-
exports.lastIndex =
|
|
84
|
-
exports.max =
|
|
85
|
+
exports.lastIndex = S;
|
|
86
|
+
exports.max = ct;
|
|
85
87
|
exports.merge = U;
|
|
86
|
-
exports.mergeArrays =
|
|
87
|
-
exports.min =
|
|
88
|
-
exports.moveToFirst =
|
|
89
|
-
exports.moveToLast =
|
|
90
|
-
exports.multiply =
|
|
91
|
-
exports.normaliseArray =
|
|
92
|
-
exports.normaliseNumber =
|
|
93
|
-
exports.normalizeNumber =
|
|
94
|
-
exports.objectDiff =
|
|
95
|
-
exports.omit =
|
|
88
|
+
exports.mergeArrays = Fo;
|
|
89
|
+
exports.min = ut;
|
|
90
|
+
exports.moveToFirst = Ko;
|
|
91
|
+
exports.moveToLast = Wo;
|
|
92
|
+
exports.multiply = wi;
|
|
93
|
+
exports.normaliseArray = Vi;
|
|
94
|
+
exports.normaliseNumber = pt;
|
|
95
|
+
exports.normalizeNumber = Go;
|
|
96
|
+
exports.objectDiff = Xo;
|
|
97
|
+
exports.omit = Yo;
|
|
96
98
|
exports.parseDate = u;
|
|
97
|
-
exports.percentageChange =
|
|
98
|
-
exports.pickObjectKeys =
|
|
99
|
-
exports.pickObjectValues =
|
|
100
|
-
exports.pretty =
|
|
101
|
-
exports.prismaDateRange =
|
|
102
|
-
exports.promiseWithTimeout =
|
|
103
|
-
exports.randomAddress =
|
|
104
|
-
exports.randomAlphaNumericCode =
|
|
105
|
-
exports.randomArrayItem =
|
|
106
|
-
exports.randomBankAccount =
|
|
107
|
-
exports.randomBool =
|
|
108
|
-
exports.randomChar =
|
|
109
|
-
exports.randomCompany =
|
|
110
|
-
exports.randomCoords =
|
|
99
|
+
exports.percentageChange = Hi;
|
|
100
|
+
exports.pickObjectKeys = en;
|
|
101
|
+
exports.pickObjectValues = on;
|
|
102
|
+
exports.pretty = mn;
|
|
103
|
+
exports.prismaDateRange = vi;
|
|
104
|
+
exports.promiseWithTimeout = un;
|
|
105
|
+
exports.randomAddress = ra;
|
|
106
|
+
exports.randomAlphaNumericCode = aa;
|
|
107
|
+
exports.randomArrayItem = i;
|
|
108
|
+
exports.randomBankAccount = pa;
|
|
109
|
+
exports.randomBool = fa;
|
|
110
|
+
exports.randomChar = j;
|
|
111
|
+
exports.randomCompany = Aa;
|
|
112
|
+
exports.randomCoords = Oa;
|
|
111
113
|
exports.randomDate = T;
|
|
112
|
-
exports.randomDateRange =
|
|
113
|
-
exports.randomEmail =
|
|
114
|
-
exports.randomEmoji =
|
|
115
|
-
exports.randomEnumKey =
|
|
116
|
-
exports.randomEnumValue =
|
|
117
|
-
exports.randomFile =
|
|
118
|
-
exports.randomFirstName =
|
|
114
|
+
exports.randomDateRange = Ba;
|
|
115
|
+
exports.randomEmail = va;
|
|
116
|
+
exports.randomEmoji = qa;
|
|
117
|
+
exports.randomEnumKey = es;
|
|
118
|
+
exports.randomEnumValue = is;
|
|
119
|
+
exports.randomFile = hs;
|
|
120
|
+
exports.randomFirstName = Xs;
|
|
119
121
|
exports.randomFloat = F;
|
|
120
|
-
exports.randomFormattedPercentage =
|
|
121
|
-
exports.randomFullName =
|
|
122
|
-
exports.randomFutureDate =
|
|
123
|
-
exports.randomHandle =
|
|
124
|
-
exports.randomHexColor =
|
|
125
|
-
exports.randomHexValue =
|
|
126
|
-
exports.randomHtmlColorName =
|
|
127
|
-
exports.randomIBAN =
|
|
128
|
-
exports.randomIP =
|
|
122
|
+
exports.randomFormattedPercentage = bn;
|
|
123
|
+
exports.randomFullName = Ys;
|
|
124
|
+
exports.randomFutureDate = ja;
|
|
125
|
+
exports.randomHandle = Nt;
|
|
126
|
+
exports.randomHexColor = Ps;
|
|
127
|
+
exports.randomHexValue = _s;
|
|
128
|
+
exports.randomHtmlColorName = Bs;
|
|
129
|
+
exports.randomIBAN = Fs;
|
|
130
|
+
exports.randomIP = Ws;
|
|
129
131
|
exports.randomInt = s;
|
|
130
|
-
exports.randomLastName =
|
|
131
|
-
exports.randomLat =
|
|
132
|
-
exports.randomLng =
|
|
133
|
-
exports.randomMaxDate =
|
|
134
|
-
exports.randomMaxInt =
|
|
135
|
-
exports.randomMaxSafeInt =
|
|
136
|
-
exports.randomName =
|
|
137
|
-
exports.randomNegativeInt =
|
|
138
|
-
exports.randomNoun =
|
|
139
|
-
exports.randomNumericCode =
|
|
140
|
-
exports.randomNumericId =
|
|
141
|
-
exports.randomParagraph =
|
|
142
|
-
exports.randomPassword =
|
|
143
|
-
exports.randomPastDate =
|
|
144
|
-
exports.randomPath =
|
|
145
|
-
exports.randomPhoneNumber =
|
|
146
|
-
exports.randomPositiveInt =
|
|
132
|
+
exports.randomLastName = $s;
|
|
133
|
+
exports.randomLat = $t;
|
|
134
|
+
exports.randomLng = Yt;
|
|
135
|
+
exports.randomMaxDate = Ra;
|
|
136
|
+
exports.randomMaxInt = yn;
|
|
137
|
+
exports.randomMaxSafeInt = fn;
|
|
138
|
+
exports.randomName = Js;
|
|
139
|
+
exports.randomNegativeInt = dn;
|
|
140
|
+
exports.randomNoun = us;
|
|
141
|
+
exports.randomNumericCode = tm;
|
|
142
|
+
exports.randomNumericId = Dt;
|
|
143
|
+
exports.randomParagraph = Mt;
|
|
144
|
+
exports.randomPassword = um;
|
|
145
|
+
exports.randomPastDate = wa;
|
|
146
|
+
exports.randomPath = fm;
|
|
147
|
+
exports.randomPhoneNumber = Sm;
|
|
148
|
+
exports.randomPositiveInt = ln;
|
|
147
149
|
exports.randomString = W;
|
|
148
|
-
exports.randomUUID =
|
|
149
|
-
exports.randomVerb =
|
|
150
|
-
exports.randomWord =
|
|
151
|
-
exports.scrambleText =
|
|
152
|
-
exports.serialize =
|
|
153
|
-
exports.seriesAll =
|
|
154
|
-
exports.setObjectPath =
|
|
155
|
-
exports.setUrlSearchParams =
|
|
156
|
-
exports.shuffle =
|
|
157
|
-
exports.sleep =
|
|
158
|
-
exports.startOfDay =
|
|
159
|
-
exports.startOfNextMonth =
|
|
160
|
-
exports.startOfNextWeek =
|
|
161
|
-
exports.startOfThisWeek =
|
|
162
|
-
exports.startOfToday =
|
|
163
|
-
exports.startOfTomorrow =
|
|
164
|
-
exports.stringToCSSUnicode =
|
|
165
|
-
exports.stringToUnicode =
|
|
166
|
-
exports.sum =
|
|
167
|
-
exports.toggleArray =
|
|
168
|
-
exports.toggleArrayValue =
|
|
169
|
-
exports.truncate =
|
|
150
|
+
exports.randomUUID = Tm;
|
|
151
|
+
exports.randomVerb = ps;
|
|
152
|
+
exports.randomWord = A;
|
|
153
|
+
exports.scrambleText = Nn;
|
|
154
|
+
exports.serialize = Cn;
|
|
155
|
+
exports.seriesAll = Mn;
|
|
156
|
+
exports.setObjectPath = Rn;
|
|
157
|
+
exports.setUrlSearchParams = wn;
|
|
158
|
+
exports.shuffle = kn;
|
|
159
|
+
exports.sleep = Un;
|
|
160
|
+
exports.startOfDay = mt;
|
|
161
|
+
exports.startOfNextMonth = $n;
|
|
162
|
+
exports.startOfNextWeek = qn;
|
|
163
|
+
exports.startOfThisWeek = Qn;
|
|
164
|
+
exports.startOfToday = oi;
|
|
165
|
+
exports.startOfTomorrow = ii;
|
|
166
|
+
exports.stringToCSSUnicode = Ai;
|
|
167
|
+
exports.stringToUnicode = Ti;
|
|
168
|
+
exports.sum = lt;
|
|
169
|
+
exports.toggleArray = Kn;
|
|
170
|
+
exports.toggleArrayValue = Ft;
|
|
171
|
+
exports.truncate = zn;
|
|
170
172
|
exports.uniqueValues = C;
|
|
171
173
|
|
|
172
174
|
return exports;
|