@frames.js/debugger
Version:
Debug your Frames.js applications
10 lines (9 loc) • 672 kB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3269],{83710:function(e,a,i){i.d(a,{d:function(){return el},e:function(){return ec}});var n,o,r=class extends Error{};function t(e){let a=`[@faker-js/faker]: ${e.deprecated} is deprecated`;e.since&&(a+=` since v${e.since}`),e.until&&(a+=` and will be removed in v${e.until}`),e.proposed&&(a+=`. Please use ${e.proposed} instead`),console.warn(`${a}.`)}var s=((n=s||{}).female="female",n.male="male",n),l=((o=l||{}).Female="female",o.Male="male",o);function c(e,a,{generic:i,female:n,male:o}={}){let r;switch(a){case"female":r=n;break;case"male":r=o;break;default:r=i}return null==r&&(r=null!=n&&null!=o?e.helpers.arrayElement([n,o]):i),e.helpers.arrayElement(r)}var p=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(p.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}firstName(e){let{first_name:a,female_first_name:i,male_first_name:n}=this.faker.definitions.name;return c(this.faker,e,{generic:a,female:i,male:n})}lastName(e){let{last_name:a,female_last_name:i,male_last_name:n}=this.faker.definitions.name;return c(this.faker,e,{generic:a,female:i,male:n})}middleName(e){let{middle_name:a,female_middle_name:i,male_middle_name:n}=this.faker.definitions.name;return c(this.faker,e,{generic:a,female:i,male:n})}findName(e,a,i){return t({deprecated:"faker.name.findName()",proposed:"faker.name.fullName()",since:"7.4",until:"8.0"}),this.fullName({firstName:e,lastName:a,sex:i})}fullName(e={}){let{gender:a,sex:i=a||this.faker.helpers.arrayElement(["female","male"]),firstName:n=this.firstName(i),lastName:o=this.lastName(i)}=e;a&&t({deprecated:"faker.name.fullName({ gender: '...' })",proposed:"faker.name.fullName({ sex: '...' })",since:"7.4",until:"8.0"});let r=[],s=this.faker.helpers.maybe(()=>this.prefix(i),{probability:.125});s&&r.push(s),r.push(n),r.push(o);let l=this.faker.helpers.maybe(()=>this.suffix(),{probability:.125});return l&&r.push(l),r.join(" ")}gender(e){return e?(t({deprecated:"faker.name.gender(true)",proposed:"faker.name.sex()",since:"7.5",until:"8.0"}),this.faker.name.sex()):this.faker.helpers.arrayElement(this.faker.definitions.name.gender)}sex(){return this.faker.helpers.arrayElement(this.faker.definitions.name.sex)}sexType(){return this.faker.helpers.objectValue(l)}prefix(e){let{prefix:a,female_prefix:i,male_prefix:n}=this.faker.definitions.name;return c(this.faker,e,{generic:a,female:i,male:n})}suffix(){return this.faker.helpers.arrayElement(this.faker.definitions.name.suffix)}jobTitle(){return`${this.jobDescriptor()} ${this.jobArea()} ${this.jobType()}`}jobDescriptor(){return this.faker.helpers.arrayElement(this.faker.definitions.name.title.descriptor)}jobArea(){return this.faker.helpers.arrayElement(this.faker.definitions.name.title.level)}jobType(){return this.faker.helpers.arrayElement(this.faker.definitions.name.title.job)}},u=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(u.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}zipCode(e){if(null==e){let a=this.faker.definitions.address.postcode;e="string"==typeof a?a:this.faker.helpers.arrayElement(a)}return this.faker.helpers.replaceSymbols(e)}zipCodeByState(e){var a;let i=null==(a=this.faker.definitions.address.postcode_by_state)?void 0:a[e];return i?String(this.faker.datatype.number(i)):this.zipCode()}city(e){null!=e&&t({deprecated:"faker.address.city(format)",proposed:"faker.address.city() or faker.helpers.fake(format)",since:"7.0",until:"8.0"});let a=this.faker.definitions.address.city;return"number"!=typeof e&&(e=this.faker.datatype.number(a.length-1)),this.faker.helpers.fake(a[e])}cityPrefix(){return t({deprecated:"faker.address.cityPrefix()",proposed:"faker.address.city() or faker.fake('{{address.city_prefix}}')",since:"7.2",until:"8.0"}),this.faker.helpers.arrayElement(this.faker.definitions.address.city_prefix)}citySuffix(){return t({deprecated:"faker.address.citySuffix()",proposed:"faker.address.city() or faker.helpers.fake('{{address.city_suffix}}')",since:"7.2",until:"8.0"}),this.faker.helpers.arrayElement(this.faker.definitions.address.city_suffix)}cityName(){return this.faker.helpers.arrayElement(this.faker.definitions.address.city_name)}buildingNumber(){let e=this.faker.helpers.arrayElement(this.faker.definitions.address.building_number);return this.faker.helpers.replaceSymbolWithNumber(e)}street(){let e=this.faker.helpers.arrayElement(this.faker.definitions.address.street);return this.faker.helpers.fake(e)}streetName(){return null==this.faker.definitions.address.street_name?(t({deprecated:"faker.address.streetName() without address.street_name definitions",proposed:"faker.address.street() or provide address.street_name definitions",since:"7.0",until:"8.0"}),this.street()):this.faker.helpers.arrayElement(this.faker.definitions.address.street_name)}streetAddress(e=!1){let a=this.faker.definitions.address.street_address[e?"full":"normal"];return this.faker.helpers.fake(a)}streetSuffix(){return t({deprecated:"faker.address.streetSuffix()",proposed:"faker.address.street()",since:"7.4",until:"8.0"}),this.faker.helpers.arrayElement(this.faker.definitions.address.street_suffix)}streetPrefix(){return t({deprecated:"faker.address.streetPrefix()",proposed:"faker.address.street()",since:"7.4",until:"8.0"}),this.faker.helpers.arrayElement(this.faker.definitions.address.street_prefix)}secondaryAddress(){return this.faker.helpers.replaceSymbolWithNumber(this.faker.helpers.arrayElement(this.faker.definitions.address.secondary_address))}county(){return this.faker.helpers.arrayElement(this.faker.definitions.address.county)}country(){return this.faker.helpers.arrayElement(this.faker.definitions.address.country)}countryCode(e="alpha-2"){return this.faker.helpers.arrayElement(this.faker.definitions.address["alpha-3"===e?"country_code_alpha_3":"country_code"])}state(){return this.faker.helpers.arrayElement(this.faker.definitions.address.state)}stateAbbr(){return this.faker.helpers.arrayElement(this.faker.definitions.address.state_abbr)}latitude(e=90,a=-90,i=4){return this.faker.datatype.number({min:a,max:e,precision:parseFloat(`${0..toPrecision(i)}1`)}).toFixed(i)}longitude(e=180,a=-180,i=4){return this.faker.datatype.number({max:e,min:a,precision:parseFloat(`${0..toPrecision(i)}1`)}).toFixed(i)}direction(e=!1){return e?this.faker.helpers.arrayElement(this.faker.definitions.address.direction_abbr):this.faker.helpers.arrayElement(this.faker.definitions.address.direction)}cardinalDirection(e=!1){return e?this.faker.helpers.arrayElement(this.faker.definitions.address.direction_abbr.slice(0,4)):this.faker.helpers.arrayElement(this.faker.definitions.address.direction.slice(0,4))}ordinalDirection(e=!1){return e?this.faker.helpers.arrayElement(this.faker.definitions.address.direction_abbr.slice(4,8)):this.faker.helpers.arrayElement(this.faker.definitions.address.direction.slice(4,8))}nearbyGPSCoordinate(e,a=10,i=!1){if(void 0===e)return[this.latitude(),this.longitude()];let n=this.faker.datatype.float({min:0,max:2*Math.PI,precision:1e-5}),o=.995*this.faker.datatype.float({min:0,max:i?a:1.60934*a,precision:.001})/(4e4/360),r=[e[0]+Math.sin(n)*o,e[1]+Math.cos(n)*o];return r[0]=r[0]%180,(r[0]<-90||r[0]>90)&&(r[0]=180*Math.sign(r[0])-r[0],r[1]+=180),r[1]=(r[1]%360+540)%360-180,[r[0].toFixed(4),r[1].toFixed(4)]}timeZone(){return this.faker.helpers.arrayElement(this.faker.definitions.address.time_zone)}},d=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(d.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}dog(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.dog)}cat(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.cat)}snake(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.snake)}bear(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.bear)}lion(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.lion)}cetacean(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.cetacean)}horse(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.horse)}bird(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.bird)}cow(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.cow)}fish(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.fish)}crocodilia(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.crocodilia)}insect(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.insect)}rabbit(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.rabbit)}rodent(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.rodent)}type(){return this.faker.helpers.arrayElement(this.faker.definitions.animal.type)}},m=["sRGB","display-p3","rec2020","a98-rgb","prophoto-rgb","rec2020"],h=["rgb","rgba","hsl","hsla","hwb","cmyk","lab","lch","color"];function g(e,a,i="rgb",n="sRGB"){switch(a){case"css":return function(e,a="rgb",i="sRGB"){let n=e=>Math.round(100*e);switch(a){case"rgba":return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`;case"color":return`color(${i} ${e[0]} ${e[1]} ${e[2]})`;case"cmyk":return`cmyk(${n(e[0])}%, ${n(e[1])}%, ${n(e[2])}%, ${n(e[3])}%)`;case"hsl":return`hsl(${e[0]}deg ${n(e[1])}% ${n(e[2])}%)`;case"hsla":return`hsl(${e[0]}deg ${n(e[1])}% ${n(e[2])}% / ${n(e[3])})`;case"hwb":return`hwb(${e[0]} ${n(e[1])}% ${n(e[2])}%)`;case"lab":return`lab(${n(e[0])}% ${e[1]} ${e[2]})`;case"lch":return`lch(${n(e[0])}% ${e[1]} ${e[2]})`;default:return`rgb(${e[0]}, ${e[1]}, ${e[2]})`}}(e,i,n);case"binary":return function e(a){return a.map(a=>{if(a%1!=0){let i=new ArrayBuffer(4);return new DataView(i).setFloat32(0,a),e(Array.from(new Uint8Array(i))).split(" ").join("")}return(a>>>0).toString(2).padStart(8,"0")}).join(" ")}(e);default:return e}}var b=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(b.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}human(){return this.faker.helpers.arrayElement(this.faker.definitions.color.human)}space(){return this.faker.helpers.arrayElement(this.faker.definitions.color.space)}cssSupportedFunction(){return this.faker.helpers.arrayElement(h)}cssSupportedSpace(){return this.faker.helpers.arrayElement(m)}rgb(e){let{format:a="hex",includeAlpha:i=!1,prefix:n="#",casing:o="lower"}=e||{};e={format:a,includeAlpha:i,prefix:n,casing:o};let r,t="rgb";return"hex"===a?r=function(e,a){switch(null==a?void 0:a.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase()}return null!=a&&a.prefix&&(e=a.prefix+e),e}(r=this.faker.datatype.hexadecimal({length:i?8:6,prefix:""}),e):(r=Array.from({length:3}).map(()=>this.faker.datatype.number({min:0,max:255})),i&&(r.push(this.faker.datatype.float({min:0,max:1,precision:.01})),t="rgba"),g(r,a,t))}cmyk(e){return g(Array.from({length:4}).map(()=>this.faker.datatype.float({min:0,max:1,precision:.01})),(null==e?void 0:e.format)||"decimal","cmyk")}hsl(e){let a=[this.faker.datatype.number({min:0,max:360})];for(let i=0;i<(null!=e&&e.includeAlpha?3:2);i++)a.push(this.faker.datatype.float({min:0,max:1,precision:.01}));return g(a,(null==e?void 0:e.format)||"decimal",null!=e&&e.includeAlpha?"hsla":"hsl")}hwb(e){let a=[this.faker.datatype.number({min:0,max:360})];for(let e=0;e<2;e++)a.push(this.faker.datatype.float({min:0,max:1,precision:.01}));return g(a,(null==e?void 0:e.format)||"decimal","hwb")}lab(e){let a=[this.faker.datatype.float({min:0,max:1,precision:1e-6})];for(let e=0;e<2;e++)a.push(this.faker.datatype.float({min:-100,max:100,precision:1e-4}));return g(a,(null==e?void 0:e.format)||"decimal","lab")}lch(e){let a=[this.faker.datatype.float({min:0,max:1,precision:1e-6})];for(let e=0;e<2;e++)a.push(this.faker.datatype.number({min:0,max:230,precision:.1}));return g(a,(null==e?void 0:e.format)||"decimal","lch")}colorByCSSColorSpace(e){return(null==e?void 0:e.format)!=="css"||null!=e&&e.space||(e={...e,space:"sRGB"}),g(Array.from({length:3}).map(()=>this.faker.datatype.float({min:0,max:1,precision:1e-4})),(null==e?void 0:e.format)||"decimal","color",null==e?void 0:e.space)}},y=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(y.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}color(){return t({deprecated:"faker.commerce.color()",proposed:"faker.color.human()",since:"7.0",until:"8.0"}),this.faker.color.human()}department(){return this.faker.helpers.arrayElement(this.faker.definitions.commerce.department)}productName(){return`${this.productAdjective()} ${this.productMaterial()} ${this.product()}`}price(e=1,a=1e3,i=2,n=""){return e<0||a<0?`${n}0`:n+(Math.round(this.faker.datatype.number({max:a,min:e})*Math.pow(10,i))/Math.pow(10,i)).toFixed(i)}productAdjective(){return this.faker.helpers.arrayElement(this.faker.definitions.commerce.product_name.adjective)}productMaterial(){return this.faker.helpers.arrayElement(this.faker.definitions.commerce.product_name.material)}product(){return this.faker.helpers.arrayElement(this.faker.definitions.commerce.product_name.product)}productDescription(){return this.faker.helpers.arrayElement(this.faker.definitions.commerce.product_description)}},f=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(f.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}suffixes(){return this.faker.definitions.company.suffix.slice(0)}name(e){var a;null!=e&&t({deprecated:"faker.company.name(format)",proposed:"faker.company.name() or faker.helpers.fake(format)",since:"7.4",until:"8.0"});let i=null!=(a=this.faker.definitions.company.name_patterns)?a:["{{name.lastName}} {{company.companySuffix}}","{{name.lastName}} - {{name.lastName}}","{{name.lastName}}, {{name.lastName}} and {{name.lastName}}"];return"number"!=typeof e&&(e=this.faker.datatype.number(i.length-1)),this.faker.helpers.fake(i[e])}companyName(e){return t({deprecated:"faker.company.companyName()",proposed:"faker.company.name()",since:"7.4",until:"8.0"}),this.name(e)}companySuffix(){return this.faker.helpers.arrayElement(this.suffixes())}catchPhrase(){return[this.catchPhraseAdjective(),this.catchPhraseDescriptor(),this.catchPhraseNoun()].join(" ")}bs(){return[this.bsBuzz(),this.bsAdjective(),this.bsNoun()].join(" ")}catchPhraseAdjective(){return this.faker.helpers.arrayElement(this.faker.definitions.company.adjective)}catchPhraseDescriptor(){return this.faker.helpers.arrayElement(this.faker.definitions.company.descriptor)}catchPhraseNoun(){return this.faker.helpers.arrayElement(this.faker.definitions.company.noun)}bsAdjective(){return this.faker.helpers.arrayElement(this.faker.definitions.company.bs_adjective)}bsBuzz(){return this.faker.helpers.arrayElement(this.faker.definitions.company.bs_verb)}bsNoun(){return this.faker.helpers.arrayElement(this.faker.definitions.company.bs_noun)}},v=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(v.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}column(){return this.faker.helpers.arrayElement(this.faker.definitions.database.column)}type(){return this.faker.helpers.arrayElement(this.faker.definitions.database.type)}collation(){return this.faker.helpers.arrayElement(this.faker.definitions.database.collation)}engine(){return this.faker.helpers.arrayElement(this.faker.definitions.database.engine)}mongodbObjectId(){return this.faker.datatype.hexadecimal({length:24,case:"lower",prefix:""})}},k=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(k.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}number(e=99999){var a;"number"==typeof e&&(e={max:e});let{min:i=0,precision:n=1}=e,o=null!=(a=e.max)?a:i+99999;if(o===i)return i;if(o<i)throw new r(`Max ${o} should be greater than min ${i}.`);return Math.floor(this.faker.mersenne.rand(o/n+1,i/n))/(1/n)}float(e){"number"==typeof e&&(e={precision:e});let a={};for(let i in e=e||{})a[i]=e[i];return null==a.precision&&(a.precision=.01),this.number(a)}datetime(e={}){let a="number"==typeof e?void 0:e.min,i="number"==typeof e?e:e.max;return(null==a||a<-864e13*1)&&(a=Date.UTC(1990,0)),(null==i||i>864e13)&&(i=Date.UTC(2100,0)),new Date(this.number({min:a,max:i}))}string(e=10){e>=1048576&&(e=1048576);let a={min:33,max:125},i="";for(let n=0;n<e;n++)i+=String.fromCharCode(this.number(a));return i}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let a=this.number({min:0,max:15});return("x"===e?a:3&a|8).toString(16)})}boolean(){return!!this.number(1)}hexadecimal(e={}){"number"==typeof e&&(t({deprecated:"faker.datatype.hexadecimal(length)",proposed:"faker.datatype.hexadecimal({ length })",since:"7.5",until:"8.0"}),e={length:e});let{length:a=1,prefix:i="0x",case:n="mixed"}=e,o="";for(let e=0;e<a;e++)o+=this.faker.helpers.arrayElement(["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"]);return"upper"===n?o=o.toUpperCase():"lower"===n&&(o=o.toLowerCase()),`${i}${o}`}json(){let e={};return["foo","bar","bike","a","b","name","prop"].forEach(a=>{e[a]=this.boolean()?this.string():this.number()}),JSON.stringify(e)}array(e=10){return Array.from({length:e}).map(()=>this.boolean()?this.string():this.number())}bigInt(e){var a,i;let n,o;if("object"==typeof e?(n=BigInt(null!=(a=e.min)?a:0),o=BigInt(null!=(i=e.max)?i:n+BigInt(999999999999999))):(n=BigInt(0),o=BigInt(null!=e?e:999999999999999)),o===n)return n;if(o<n)throw new r(`Max ${o} should be larger then min ${n}.`);let t=o-n;return n+BigInt(this.faker.random.numeric(t.toString(10).length,{allowLeadingZeros:!0}))%(t+BigInt(1))}};function x(e){return isNaN((e=new Date(e)).valueOf())&&(e=new Date),e}var w=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(w.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}past(e,a){let i=x(a),n=i.getTime();return n-=this.faker.datatype.number({min:1e3,max:31536e6*(e||1)}),i.setTime(n),i}future(e,a){let i=x(a),n=i.getTime();return n+=this.faker.datatype.number({min:1e3,max:31536e6*(e||1)}),i.setTime(n),i}between(e,a){let i=x(e).getTime(),n=x(a).getTime(),o=this.faker.datatype.number(n-i);return new Date(i+o)}betweens(e,a,i=3){let n=[];for(;n.length<i;)n.push(this.between(e,a));return n.sort((e,a)=>e.getTime()-a.getTime())}recent(e,a){let i=x(a),n=i.getTime();return n-=this.faker.datatype.number({min:1e3,max:864e5*(e||1)}),i.setTime(n),i}soon(e,a){let i=x(a),n=i.getTime();return n+=this.faker.datatype.number({min:1e3,max:864e5*(e||1)}),i.setTime(n),i}month(e){var a,i;let n=null!=(a=null==e?void 0:e.abbr)&&a,o=null!=(i=null==e?void 0:e.context)&&i,r=this.faker.definitions.date.month,t;return t=n?o&&null!=r.abbr_context?"abbr_context":"abbr":o&&null!=r.wide_context?"wide_context":"wide",this.faker.helpers.arrayElement(r[t])}weekday(e){var a,i;let n=null!=(a=null==e?void 0:e.abbr)&&a,o=null!=(i=null==e?void 0:e.context)&&i,r=this.faker.definitions.date.weekday,t;return t=n?o&&null!=r.abbr_context?"abbr_context":"abbr":o&&null!=r.wide_context?"wide_context":"wide",this.faker.helpers.arrayElement(r[t])}birthdate(e={}){var a,i,n,o;let t="age"===e.mode?"age":"year",s=x(e.refDate),l=s.getUTCFullYear(),c,p;if("age"===t?(c=new Date(s).setUTCFullYear(l-(null!=(a=e.max)?a:80)-1),p=new Date(s).setUTCFullYear(l-(null!=(i=e.min)?i:18))):(c=new Date(Date.UTC(0,0,2)).setUTCFullYear(null!=(n=e.min)?n:l-80),p=new Date(Date.UTC(0,11,30)).setUTCFullYear(null!=(o=e.max)?o:l-18)),p<c)throw new r(`Max ${p} should be larger then min ${c}.`);return new Date(this.faker.datatype.number({min:c,max:p}))}},j=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(j.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}fake(e){return t({deprecated:"faker.fake()",proposed:"faker.helpers.fake()",since:"7.4",until:"8.0"}),this.faker.helpers.fake(e)}},S={alpha:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],formats:[{country:"AL",total:28,bban:[{type:"n",count:8},{type:"c",count:16}],format:"ALkk bbbs sssx cccc cccc cccc cccc"},{country:"AD",total:24,bban:[{type:"n",count:8},{type:"c",count:12}],format:"ADkk bbbb ssss cccc cccc cccc"},{country:"AT",total:20,bban:[{type:"n",count:5},{type:"n",count:11}],format:"ATkk bbbb bccc cccc cccc"},{country:"AZ",total:28,bban:[{type:"a",count:4},{type:"n",count:20}],format:"AZkk bbbb cccc cccc cccc cccc cccc"},{country:"BH",total:22,bban:[{type:"a",count:4},{type:"c",count:14}],format:"BHkk bbbb cccc cccc cccc cc"},{country:"BE",total:16,bban:[{type:"n",count:3},{type:"n",count:9}],format:"BEkk bbbc cccc ccxx"},{country:"BA",total:20,bban:[{type:"n",count:6},{type:"n",count:10}],format:"BAkk bbbs sscc cccc ccxx"},{country:"BR",total:29,bban:[{type:"n",count:13},{type:"n",count:10},{type:"a",count:1},{type:"c",count:1}],format:"BRkk bbbb bbbb ssss sccc cccc ccct n"},{country:"BG",total:22,bban:[{type:"a",count:4},{type:"n",count:6},{type:"c",count:8}],format:"BGkk bbbb ssss ddcc cccc cc"},{country:"CR",total:22,bban:[{type:"n",count:1},{type:"n",count:3},{type:"n",count:14}],format:"CRkk xbbb cccc cccc cccc cc"},{country:"HR",total:21,bban:[{type:"n",count:7},{type:"n",count:10}],format:"HRkk bbbb bbbc cccc cccc c"},{country:"CY",total:28,bban:[{type:"n",count:8},{type:"c",count:16}],format:"CYkk bbbs ssss cccc cccc cccc cccc"},{country:"CZ",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"CZkk bbbb ssss sscc cccc cccc"},{country:"DK",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"DKkk bbbb cccc cccc cc"},{country:"DO",total:28,bban:[{type:"a",count:4},{type:"n",count:20}],format:"DOkk bbbb cccc cccc cccc cccc cccc"},{country:"TL",total:23,bban:[{type:"n",count:3},{type:"n",count:16}],format:"TLkk bbbc cccc cccc cccc cxx"},{country:"EE",total:20,bban:[{type:"n",count:4},{type:"n",count:12}],format:"EEkk bbss cccc cccc cccx"},{country:"FO",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"FOkk bbbb cccc cccc cx"},{country:"FI",total:18,bban:[{type:"n",count:6},{type:"n",count:8}],format:"FIkk bbbb bbcc cccc cx"},{country:"FR",total:27,bban:[{type:"n",count:10},{type:"c",count:11},{type:"n",count:2}],format:"FRkk bbbb bggg ggcc cccc cccc cxx"},{country:"GE",total:22,bban:[{type:"a",count:2},{type:"n",count:16}],format:"GEkk bbcc cccc cccc cccc cc"},{country:"DE",total:22,bban:[{type:"n",count:8},{type:"n",count:10}],format:"DEkk bbbb bbbb cccc cccc cc"},{country:"GI",total:23,bban:[{type:"a",count:4},{type:"c",count:15}],format:"GIkk bbbb cccc cccc cccc ccc"},{country:"GR",total:27,bban:[{type:"n",count:7},{type:"c",count:16}],format:"GRkk bbbs sssc cccc cccc cccc ccc"},{country:"GL",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"GLkk bbbb cccc cccc cc"},{country:"GT",total:28,bban:[{type:"c",count:4},{type:"c",count:4},{type:"c",count:16}],format:"GTkk bbbb mmtt cccc cccc cccc cccc"},{country:"HU",total:28,bban:[{type:"n",count:8},{type:"n",count:16}],format:"HUkk bbbs sssk cccc cccc cccc cccx"},{country:"IS",total:26,bban:[{type:"n",count:6},{type:"n",count:16}],format:"ISkk bbbb sscc cccc iiii iiii ii"},{country:"IE",total:22,bban:[{type:"c",count:4},{type:"n",count:6},{type:"n",count:8}],format:"IEkk aaaa bbbb bbcc cccc cc"},{country:"IL",total:23,bban:[{type:"n",count:6},{type:"n",count:13}],format:"ILkk bbbn nncc cccc cccc ccc"},{country:"IT",total:27,bban:[{type:"a",count:1},{type:"n",count:10},{type:"c",count:12}],format:"ITkk xaaa aabb bbbc cccc cccc ccc"},{country:"JO",total:30,bban:[{type:"a",count:4},{type:"n",count:4},{type:"n",count:18}],format:"JOkk bbbb nnnn cccc cccc cccc cccc cc"},{country:"KZ",total:20,bban:[{type:"n",count:3},{type:"c",count:13}],format:"KZkk bbbc cccc cccc cccc"},{country:"XK",total:20,bban:[{type:"n",count:4},{type:"n",count:12}],format:"XKkk bbbb cccc cccc cccc"},{country:"KW",total:30,bban:[{type:"a",count:4},{type:"c",count:22}],format:"KWkk bbbb cccc cccc cccc cccc cccc cc"},{country:"LV",total:21,bban:[{type:"a",count:4},{type:"c",count:13}],format:"LVkk bbbb cccc cccc cccc c"},{country:"LB",total:28,bban:[{type:"n",count:4},{type:"c",count:20}],format:"LBkk bbbb cccc cccc cccc cccc cccc"},{country:"LI",total:21,bban:[{type:"n",count:5},{type:"c",count:12}],format:"LIkk bbbb bccc cccc cccc c"},{country:"LT",total:20,bban:[{type:"n",count:5},{type:"n",count:11}],format:"LTkk bbbb bccc cccc cccc"},{country:"LU",total:20,bban:[{type:"n",count:3},{type:"c",count:13}],format:"LUkk bbbc cccc cccc cccc"},{country:"MK",total:19,bban:[{type:"n",count:3},{type:"c",count:10},{type:"n",count:2}],format:"MKkk bbbc cccc cccc cxx"},{country:"MT",total:31,bban:[{type:"a",count:4},{type:"n",count:5},{type:"c",count:18}],format:"MTkk bbbb ssss sccc cccc cccc cccc ccc"},{country:"MR",total:27,bban:[{type:"n",count:10},{type:"n",count:13}],format:"MRkk bbbb bsss sscc cccc cccc cxx"},{country:"MU",total:30,bban:[{type:"a",count:4},{type:"n",count:4},{type:"n",count:15},{type:"a",count:3}],format:"MUkk bbbb bbss cccc cccc cccc 000d dd"},{country:"MC",total:27,bban:[{type:"n",count:10},{type:"c",count:11},{type:"n",count:2}],format:"MCkk bbbb bsss sscc cccc cccc cxx"},{country:"MD",total:24,bban:[{type:"c",count:2},{type:"c",count:18}],format:"MDkk bbcc cccc cccc cccc cccc"},{country:"ME",total:22,bban:[{type:"n",count:3},{type:"n",count:15}],format:"MEkk bbbc cccc cccc cccc xx"},{country:"NL",total:18,bban:[{type:"a",count:4},{type:"n",count:10}],format:"NLkk bbbb cccc cccc cc"},{country:"NO",total:15,bban:[{type:"n",count:4},{type:"n",count:7}],format:"NOkk bbbb cccc ccx"},{country:"PK",total:24,bban:[{type:"a",count:4},{type:"n",count:16}],format:"PKkk bbbb cccc cccc cccc cccc"},{country:"PS",total:29,bban:[{type:"c",count:4},{type:"n",count:9},{type:"n",count:12}],format:"PSkk bbbb xxxx xxxx xccc cccc cccc c"},{country:"PL",total:28,bban:[{type:"n",count:8},{type:"n",count:16}],format:"PLkk bbbs sssx cccc cccc cccc cccc"},{country:"PT",total:25,bban:[{type:"n",count:8},{type:"n",count:13}],format:"PTkk bbbb ssss cccc cccc cccx x"},{country:"QA",total:29,bban:[{type:"a",count:4},{type:"c",count:21}],format:"QAkk bbbb cccc cccc cccc cccc cccc c"},{country:"RO",total:24,bban:[{type:"a",count:4},{type:"c",count:16}],format:"ROkk bbbb cccc cccc cccc cccc"},{country:"SM",total:27,bban:[{type:"a",count:1},{type:"n",count:10},{type:"c",count:12}],format:"SMkk xaaa aabb bbbc cccc cccc ccc"},{country:"SA",total:24,bban:[{type:"n",count:2},{type:"c",count:18}],format:"SAkk bbcc cccc cccc cccc cccc"},{country:"RS",total:22,bban:[{type:"n",count:3},{type:"n",count:15}],format:"RSkk bbbc cccc cccc cccc xx"},{country:"SK",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"SKkk bbbb ssss sscc cccc cccc"},{country:"SI",total:19,bban:[{type:"n",count:5},{type:"n",count:10}],format:"SIkk bbss sccc cccc cxx"},{country:"ES",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"ESkk bbbb gggg xxcc cccc cccc"},{country:"SE",total:24,bban:[{type:"n",count:3},{type:"n",count:17}],format:"SEkk bbbc cccc cccc cccc cccc"},{country:"CH",total:21,bban:[{type:"n",count:5},{type:"c",count:12}],format:"CHkk bbbb bccc cccc cccc c"},{country:"TN",total:24,bban:[{type:"n",count:5},{type:"n",count:15}],format:"TNkk bbss sccc cccc cccc cccc"},{country:"TR",total:26,bban:[{type:"n",count:5},{type:"n",count:1},{type:"n",count:16}],format:"TRkk bbbb bxcc cccc cccc cccc cc"},{country:"AE",total:23,bban:[{type:"n",count:3},{type:"n",count:16}],format:"AEkk bbbc cccc cccc cccc ccc"},{country:"GB",total:22,bban:[{type:"a",count:4},{type:"n",count:6},{type:"n",count:8}],format:"GBkk bbbb ssss sscc cccc cc"},{country:"VG",total:24,bban:[{type:"c",count:4},{type:"n",count:16}],format:"VGkk bbbb cccc cccc cccc cccc"}],iso3166:["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],mod97:e=>{let a=0;for(let i=0;i<e.length;i++)a=(10*a+ +e[i])%97;return a},pattern10:["01","02","03","04","05","06","07","08","09"],pattern100:["001","002","003","004","005","006","007","008","009"],toDigitString:e=>e.replace(/[A-Z]/gi,e=>String(e.toUpperCase().charCodeAt(0)-55))},_=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(_.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}account(e){e=e||8;let a="";for(let i=0;i<e;i++)a+="#";return e=null,this.faker.helpers.replaceSymbolWithNumber(a)}accountName(){return[this.faker.helpers.arrayElement(this.faker.definitions.finance.account_type),"Account"].join(" ")}routingNumber(){let e=this.faker.helpers.replaceSymbolWithNumber("########"),a=0;for(let i=0;i<e.length;i+=3)a+=3*Number(e[i])+7*Number(e[i+1])+(Number(e[i+2])||0);return`${e}${10*Math.ceil(a/10)-a}`}mask(e,a,i){e=e||4,a=null==a||a,i=null==i||i;let n="";for(let a=0;a<e;a++)n=`${n}#`;return n=i?["...",n].join(""):n,n=a?["(",n,")"].join(""):n,n=this.faker.helpers.replaceSymbolWithNumber(n)}amount(e=0,a=1e3,i=2,n="",o){let r=this.faker.datatype.number({max:a,min:e,precision:Math.pow(10,-i)});return n+(o?r.toLocaleString(void 0,{minimumFractionDigits:i}):r.toFixed(i))}transactionType(){return this.faker.helpers.arrayElement(this.faker.definitions.finance.transaction_type)}currencyCode(){return this.faker.helpers.objectValue(this.faker.definitions.finance.currency).code}currencyName(){return this.faker.helpers.objectKey(this.faker.definitions.finance.currency)}currencySymbol(){let e;for(;!e;)e=this.faker.helpers.objectValue(this.faker.definitions.finance.currency).symbol;return e}bitcoinAddress(){let e=this.faker.datatype.number({min:25,max:39});return this.faker.helpers.arrayElement(["1","3"])+this.faker.random.alphaNumeric(e,{casing:"mixed",bannedChars:"0OIl"})}litecoinAddress(){let e=this.faker.datatype.number({min:26,max:33}),a=this.faker.helpers.arrayElement(["L","M","3"]);for(let i=0;i<e-1;i++)a+=this.faker.helpers.arrayElement("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".split(""));return a}creditCardNumber(e=""){let a,i=this.faker.definitions.finance.credit_card,n=e.toLowerCase();if(n in i)a=this.faker.helpers.arrayElement(i[n]);else if(e.match(/#/))a=e;else{let e=this.faker.helpers.objectValue(i);a=this.faker.helpers.arrayElement(e)}return a=a.replace(/\//g,""),this.faker.helpers.replaceCreditCardSymbols(a)}creditCardCVV(){let e="";for(let a=0;a<3;a++)e+=this.faker.datatype.number({max:9}).toString();return e}creditCardIssuer(){return this.faker.helpers.objectKey(this.faker.definitions.finance.credit_card)}pin(e=4){if(e<1)throw new r("minimum length is 1");return Array.from({length:e},()=>this.faker.datatype.number(9)).join("")}ethereumAddress(){return this.faker.datatype.hexadecimal({length:40,case:"lower"})}iban(e=!1,a){let i=a?S.formats.find(e=>e.country===a):this.faker.helpers.arrayElement(S.formats);if(!i)throw new r(`Country code ${a} not supported.`);let n="",o=0;for(let e of i.bban){let a=e.count;for(o+=e.count;a>0;)"a"===e.type?n+=this.faker.helpers.arrayElement(S.alpha):"c"===e.type?80>this.faker.datatype.number(100)?n+=this.faker.datatype.number(9):n+=this.faker.helpers.arrayElement(S.alpha):a>=3&&30>this.faker.datatype.number(100)?this.faker.datatype.boolean()?(n+=this.faker.helpers.arrayElement(S.pattern100),a-=2):(n+=this.faker.helpers.arrayElement(S.pattern10),a--):n+=this.faker.datatype.number(9),a--;n=n.substring(0,o)}let t=98-S.mod97(S.toDigitString(`${n}${i.country}00`));t<10&&(t=`0${t}`);let s=`${i.country}${t}${n}`;return e?s.match(/.{1,4}/g).join(" "):s}bic(e={}){let{includeBranchCode:a=this.faker.datatype.boolean()}=e,i=this.faker.random.alpha({count:4,casing:"upper"}),n=this.faker.helpers.arrayElement(S.iso3166),o=this.faker.random.alphaNumeric(2,{casing:"upper"}),r=a?this.faker.datatype.boolean()?this.faker.random.alphaNumeric(3,{casing:"upper"}):"XXX":"";return`${i}${n}${o}${r}`}transactionDescription(){let e=this.amount(),a=this.faker.company.name(),i=this.transactionType(),n=this.account(),o=this.mask(),r=this.currencyCode();return`${i} transaction at ${a} using card ending with ***${o} for ${r} ${e} in account ***${n}`}},C=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(C.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}branch(){let e=this.faker.hacker.noun().replace(" ","-"),a=this.faker.hacker.verb().replace(" ","-");return`${e}-${a}`}commitEntry(e={}){let{merge:a=0===this.faker.datatype.number({min:0,max:4}),eol:i="CRLF"}=e,n=[`commit ${this.faker.git.commitSha()}`];return a&&n.push(`Merge: ${this.shortSha()} ${this.shortSha()}`),n.push(`Author: ${this.faker.name.firstName()} ${this.faker.name.lastName()} <${this.faker.internet.email()}>`,`Date: ${this.faker.date.recent().toString()}`,"",`\xa0\xA0\xa0\xA0${this.commitMessage()}`,""),n.join("CRLF"===i?`\r
`:`
`)}commitMessage(){return`${this.faker.hacker.verb()} ${this.faker.hacker.adjective()} ${this.faker.hacker.noun()}`}commitSha(){return this.faker.datatype.hexadecimal({length:40,case:"lower",prefix:""})}shortSha(){return this.faker.datatype.hexadecimal({length:7,case:"lower",prefix:""})}},A=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(A.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}abbreviation(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.abbreviation)}adjective(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.adjective)}noun(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.noun)}verb(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.verb)}ingverb(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.ingverb)}phrase(){let e={abbreviation:this.abbreviation,adjective:this.adjective,ingverb:this.ingverb,noun:this.noun,verb:this.verb},a=this.faker.helpers.arrayElement(this.faker.definitions.hacker.phrase);return this.faker.helpers.mustache(a,e)}},B={},M=[];function T(e,a){return void 0===e[a]?-1:0}function L(e,a,i,n,o){throw console.error("Error",i),console.log(`Found ${Object.keys(n).length} unique entries before throwing error.
retried: ${o}
total time: ${a-e}ms`),new r(`${i} for uniqueness check.
May not be able to generate any more unique values with current settings.
Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().`)}var R=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(R.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}slugify(e=""){return e.replace(/ /g,"-").replace(/[^\一-龠\ぁ-ゔ\ァ-ヴー\w\.\-]+/g,"")}replaceSymbolWithNumber(e="",a="#"){let i="";for(let n=0;n<e.length;n++)e.charAt(n)===a?i+=this.faker.datatype.number(9):"!"===e.charAt(n)?i+=this.faker.datatype.number({min:2,max:9}):i+=e.charAt(n);return i}replaceSymbols(e=""){let a=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],i="";for(let n=0;n<e.length;n++)"#"===e.charAt(n)?i+=this.faker.datatype.number(9):"?"===e.charAt(n)?i+=this.arrayElement(a):"*"===e.charAt(n)?i+=this.faker.datatype.boolean()?this.arrayElement(a):this.faker.datatype.number(9):i+=e.charAt(n);return i}replaceCreditCardSymbols(e="6453-####-####-####-###L",a="#"){let i;e=this.regexpStyleStringParse(e);let n=0===(i=function(e){e=e.replace(/[\s-]/g,"");let a=0,i=!1;for(let n=e.length-1;n>=0;n--){let o=parseInt(e.substring(n,n+1));i&&(o*=2)>9&&(o=o%10+1),a+=o,i=!i}return a%10}((e=this.replaceSymbolWithNumber(e,a)).replace(/L?$/,"0")))?0:10-i;return e.replace("L",String(n))}repeatString(e="",a=0){return t({deprecated:"faker.helpers.repeatString()",proposed:"String.prototype.repeat()",since:"7.5",until:"8.0"}),e.repeat(a)}regexpStyleStringParse(e=""){let a=/(.)\{(\d+)\,(\d+)\}/,i=/(.)\{(\d+)\}/,n=/\[(\d+)\-(\d+)\]/,o,r,t,s,l=e.match(a);for(;null!=l;)(o=parseInt(l[2]))>(r=parseInt(l[3]))&&(t=r,r=o,o=t),s=this.faker.datatype.number({min:o,max:r}),l=(e=e.slice(0,l.index)+l[1].repeat(s)+e.slice(l.index+l[0].length)).match(a);for(l=e.match(i);null!=l;)s=parseInt(l[2]),l=(e=e.slice(0,l.index)+l[1].repeat(s)+e.slice(l.index+l[0].length)).match(i);for(l=e.match(n);null!=l;)(o=parseInt(l[1]))>(r=parseInt(l[2]))&&(t=r,r=o,o=t),l=(e=e.slice(0,l.index)+this.faker.datatype.number({min:o,max:r}).toString()+e.slice(l.index+l[0].length)).match(n);return e}shuffle(e){if(null==e||0===e.length)return e||[];for(let a=e.length-1;a>0;--a){let i=this.faker.datatype.number(a),n=e[a];e[a]=e[i],e[i]=n}return e}uniqueArray(e,a){if(Array.isArray(e)){let i=Array.from(new Set(e));return this.shuffle(i).splice(0,a)}let i=new Set;try{if("function"==typeof e)for(;i.size<a;)i.add(e())}catch{}return Array.from(i)}mustache(e,a){if(null==e)return"";for(let i in a){let n=RegExp(`{{${i}}}`,"g"),o=a[i];e=e.replace(n,o)}return e}maybe(e,a={}){let{probability:i=.5}=a;if(this.faker.datatype.float({min:0,max:1})<i)return e()}objectKey(e){let a=Object.keys(e);return this.arrayElement(a)}objectValue(e){let a=this.faker.helpers.objectKey(e);return e[a]}arrayElement(e=["a","b","c"]){let a=e.length>1?this.faker.datatype.number({max:e.length-1}):0;return e[a]}arrayElements(e=["a","b","c"],a){"number"!=typeof a?a=0===e.length?0:this.faker.datatype.number({min:1,max:e.length}):a>e.length?a=e.length:a<0&&(a=0);let i=e.slice(0),n=e.length,o=n-a,r,t;for(;n-- >o;)r=i[t=Math.floor((n+1)*this.faker.datatype.float({min:0,max:.99}))],i[t]=i[n],i[n]=r;return i.slice(o)}fake(e){let a,i,n;if("string"!=typeof e||0===e.length)throw new r("string parameter is required!");let o=e.search(/{{[a-z]/),t=e.indexOf("}}",o);if(-1===o||-1===t)return e;let s=e.substring(o+2,t+2).replace("}}","").replace("{{",""),l=/\(([^)]+)\)/,c=l.exec(s),p="";c&&(s=s.replace(l,""),p=c[1]);let u=s.split("."),d=this.faker,m=this.faker.definitions;for(let e of u)d=null==d?void 0:d[e],m=null==m?void 0:m[e];if("function"==typeof d)a=d;else if(Array.isArray(m))a=()=>this.faker.helpers.arrayElement(m);else throw new r(`Invalid module method or definition: ${s}
- faker.${s} is not a function
- faker.definitions.${s} is not an array`);a=a.bind(this);try{i=JSON.parse(p)}catch{i=p}n="string"==typeof i&&0===i.length?String(a()):String(a(i));let h=e.substring(0,o)+n+e.substring(t+2);return""===h?"":this.fake(h)}unique(e,a,i={}){let{maxTime:n=50,maxRetries:o=50}=i;return function e(a,i,n={}){var o;let r=new Date().getTime(),{startTime:t=new Date().getTime(),maxTime:s=50,maxRetries:l=50,compare:c=T,store:p=B}=n,{exclude:u=M}=n;if(n.currentIterations=null!=(o=n.currentIterations)?o:0,Array.isArray(u)||(u=[u]),r-t>=s)return L(t,r,`Exceeded maxTime: ${s}`,p,n.currentIterations);if(n.currentIterations>=l)return L(t,r,`Exceeded maxRetries: ${l}`,p,n.currentIterations);let d=a.apply(this,i);return -1===c(p,d)&&-1===u.indexOf(d)?(p[d]=d,n.currentIterations=0,d):(n.currentIterations++,e(a,i,{...n,startTime:t,maxTime:s,maxRetries:l,compare:c,exclude:u}))}(e,a,{...i,startTime:new Date().getTime(),maxTime:n,maxRetries:o,currentIterations:0})}},z=class{constructor(e){this.faker=e}image(e,a,i,n){return this.imageUrl(e,a,i,n)}imageGrayscale(e,a,i){return this.imageUrl(e,a,i)}imageBlurred(e,a,i){return this.imageUrl(e,a,void 0,i)}imageRandomSeeded(e,a,i,n,o){return this.imageUrl(e,a,i,n,o)}avatar(){return t({deprecated:"faker.image.lorempicsum.avatar()",proposed:"faker.internet.avatar()",since:"7.3",until:"8.0"}),this.faker.internet.avatar()}imageUrl(e,a,i,n,o){e=e||640,a=a||480;let r="https://picsum.photos";return o&&(r+=`/seed/${o}`),r+=`/${e}/${a}`,i&&n?`${r}?grayscale&blur=${n}`:i?`${r}?grayscale`:n?`${r}?blur=${n}`:r}},D=class{constructor(e){this.faker=e}image(e,a,i){return this[this.faker.helpers.arrayElement(["abstract","animals","business","cats","city","food","nightlife","fashion","people","nature","sports","technics","transport"])](e,a,i)}avatar(){return t({deprecated:"faker.image.lorempixel.avatar()",proposed:"faker.internet.avatar()",since:"7.3",until:"8.0"}),this.faker.internet.avatar()}imageUrl(e,a,i,n){e=e||640,a=a||480;let o=`https://lorempixel.com/${e}/${a}`;return null!=i&&(o+=`/${i}`),n&&(o+=`?${this.faker.datatype.number()}`),o}abstract(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"abstract",i)}animals(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"animals",i)}business(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"business",i)}cats(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"cats",i)}city(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"city",i)}food(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"food",i)}nightlife(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"nightlife",i)}fashion(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"fashion",i)}people(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"people",i)}nature(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"nature",i)}sports(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"sports",i)}technics(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"technics",i)}transport(e,a,i){return this.faker.image.lorempixel.imageUrl(e,a,"transport",i)}},P=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(P.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}imageUrl(e,a,i,n,o,r){e=e||640,a=a||e;let t="https://via.placeholder.com";return t+=`/${e}x${a}`,null!=o&&(t+=`/${o.replace("#","").toUpperCase()}`,null!=r&&(t+=`/${r.replace("#","").toUpperCase()}`)),null!=n&&(t+=`.${n}`),null!=i&&(t+=`?${new URLSearchParams({text:i}).toString()}`),t}randomUrl(e,a,i){return this.imageUrl(e,a,this.faker.lorem.word(),i,this.faker.color.rgb({casing:"upper",prefix:""}),this.faker.color.rgb({casing:"upper",prefix:""}))}},G=class{constructor(e){this.faker=e}get categories(){return t({deprecated:"faker.image.unsplash.categories",since:"7.3",until:"8.0"}),["food","nature","people","technology","objects","buildings"]}image(e,a,i){return this.imageUrl(e,a,void 0,i)}avatar(){return t({deprecated:"faker.image.unsplash.avatar()",proposed:"faker.internet.avatar()",since:"7.3",until:"8.0"}),this.faker.internet.avatar()}imageUrl(e,a,i,n){e=e||640,a=a||480;let o="https://source.unsplash.com";return null!=i&&(o+=`/category/${i}`),o+=`/${e}x${a}`,null!=n&&/^([A-Za-z0-9].+,[A-Za-z0-9]+)$|^([A-Za-z0-9]+)$/.test(n)&&(o+=`?${n}`),o}food(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"food",i)}people(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"people",i)}nature(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"nature",i)}technology(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"technology",i)}objects(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"objects",i)}buildings(e,a,i){return this.faker.image.unsplash.imageUrl(e,a,"buildings",i)}},E=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(E.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this));this.lorempixel=new D(this.faker),this.unsplash=new G(this.faker),this.lorempicsum=new z(this.faker),this.placeholder=new P(this.faker)}image(e,a,i){return this[this.faker.helpers.arrayElement(["abstract","animals","business","cats","city","food","nightlife","fashion","people","nature","sports","technics","transport"])](e,a,i)}avatar(){return this.faker.internet.avatar()}imageUrl(e,a,i,n){e=e||640,a=a||480;let o=`https://loremflickr.com/${e}/${a}`;return null!=i&&(o+=`/${i}`),n&&(o+=`?lock=${this.faker.datatype.number()}`),o}abstract(e,a,i){return this.imageUrl(e,a,"abstract",i)}animals(e,a,i){return this.imageUrl(e,a,"animals",i)}business(e,a,i){return this.imageUrl(e,a,"business",i)}cats(e,a,i){return this.imageUrl(e,a,"cats",i)}city(e,a,i){return this.imageUrl(e,a,"city",i)}food(e,a,i){return this.imageUrl(e,a,"food",i)}nightlife(e,a,i){return this.imageUrl(e,a,"nightlife",i)}fashion(e,a,i){return this.imageUrl(e,a,"fashion",i)}people(e,a,i){return this.imageUrl(e,a,"people",i)}nature(e,a,i){return this.imageUrl(e,a,"nature",i)}sports(e,a,i){return this.imageUrl(e,a,"sports",i)}technics(e,a,i){return this.imageUrl(e,a,"technics",i)}transport(e,a,i){return this.imageUrl(e,a,"transport",i)}dataUri(e,a,i="grey"){return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${e}" height="${a}"><rect width="100%" height="100%" fill="${i}"/><text x="${e/2}" y="${a/2}" font-size="20" alignment-baseline="middle" text-anchor="middle" fill="white">${e}x${a}</text></svg>`)}},H=class{constructor(e){for(let a of(this.faker=e,Object.getOwnPropertyNames(H.prototype)))"constructor"===a||"function"!=typeof this[a]||(this[a]=this[a].bind(this))}avatar(){return`https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/${this.faker.datatype.number(1249)}.jpg`}email(e,a,i,n){i=i||this.faker.helpers.arrayElement(this.faker.definitions.internet.free_email);let o=this.faker.helpers.slugify(this.userName(e,a));return null!=n&&n.allowSpecialCharacters&&(o=o.replace(this.faker.helpers.arrayElement("._-".split("")),this.faker.helpers.arrayElement(".!#$%&'*+-/=?^_`{|}~".split("")))),`${o}@${i}`}exampleEmail(e,a,i){let n=this.faker.helpers.arrayElement(this.faker.definitions.internet.example_email);return this.email(e,a,n,i)}userName(e,a){let i;switch(e=e||this.faker.name.firstName(),a=a||this.faker.name.lastName(),this.faker.datatype.number(2)){case 0:i=`${e}${this.faker.datatype.number(99)}`;break;case 1:i=e+this.faker.helpers.arrayElement([".","_"])+a;break;case 2:i=`${e}${this.faker.helpers.arrayElement([".","_"])}${a}${this.faker.datatype.number(99)}`}return(i=i.toString().replace(/'/g,"")).replace(/ /g,"")}protocol(){return this.faker.helpers.arrayElement(["http","https"])}httpMethod(){return this.faker.helpers.arrayElement(["GET","POST","PUT","DELETE","PATCH"])}httpStatusCode(e={}){let{types:a=Object.keys(this.faker.definitions.internet.http_status_code)}=e,i=this.faker.helpers.arrayElement(a);return this.faker.helpers.arrayElement(this.faker.definitions.internet.http_status_code[i])}url(){return`${this.protocol()}://${this.domainName()}`}domainName(){return`${this.domainWord()}.${this.domainSuffix()}`}domainSuffix(){return this.faker.helpers.arrayElement(this.faker.definitions.internet.domain_suffix)}domainWord(){return`${this.faker.word.adjective()}-${this.faker.word.noun()}`.replace(/([\\~#&*{}/:<>?|\"'])/gi,"").replace(/\s/g,"-").replace(/-{2,}/g,"-").toLowerCase()}ip(){return this.ipv4()}ipv4(){let e=()=>this.faker.datatype.number(255).toFixed(0),a=[];for(let i=0;i<4;i++)a[i]=e();return a.join(".")}ipv6(){let e=()=>{let e="";for(let a=0;a<4;a++)e+=this.faker.helpers.arrayElement(["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]);return e},a=[];for(let i=0;i<8;i++)a[i]=e();return a.join(":")}port(){return this.faker.datatype.number({min:0,max:65535})}userAgent(){return function(e){let a,i;let n=a=>{let i=e.datatype.number({min:0,max:100})/100,n=0,o=0,r;for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){if(o=a[e]+n,r=e,i>=n&&i<=o)break;n+=a[e]}return r},o=()=>e.helpers.arrayElement(["AB","AF","AN","AR","AS","AZ","BE","BG","BN","BO","BR","BS","CA","CE","CO","CS","CU","CY","DA","DE","EL","EN","EO","ES","ET","EU","FA","FI","FJ","FO","FR","FY","GA","GD","GL","GV","HE","HI","HR","HT","HU","HY","ID","IS","IT","JA","JV","KA","KG","KO","KU","KW","KY","LA","LB","LI","LN","LT","LV","MG","MK","MN","MO","MS","MT","MY","NB","NE","NL","NN","NO","OC","PL","PT","RM","RO","RU","SC","SE","SK","SL","SO","SQ","SR","SV","SW","TK","TR","TY","UK","UR","UZ","VI","VO","YI","ZH"]),r=a=>{let i={lin:["i686","x86_64"],mac:{Intel:.48,PPC:.01,"U; Intel":.48,"U; PPC":.01},win:["","WOW64","Win64; x64"]}[a];return Array.isArray(i)?e.helpers.arrayElement(i):n(i)},t=a=>{let i="";for(let n=0;n<a;n++)i+=`.${e.datatype.number({min:0,max:9})}`;return i},s={net:()=>[e.datatype.number({min:1,max:4}),e.datatype.number({min:0,max:9}),e.datatype.number({min:1e4,max:99999}),e.datatype.number({min:0,max:9})].join("."),nt:()=>[e.datatype.number({min:5,max:6}),e.datatype.number({min:0,max:3})].join("."),ie:()=>e.datatype.number({min:7,max:11}),trident:()=>[e.datatype.number({min:3,max:7}),e.datatype.number({min:0,max:1})].join("."),osx:a=>[10,e.datatype.number({min:5,max:10}),e.datatype.number({min:0,max:9})].join(a||"."),chrome:()=>[e.datatype.number({min:13,max:39}),0,e.datatype.number({min:800,max:899}),0].join("."),presto:()=>`2.9.${e.datatype.number({min:160,max:190})}`,presto2:()=>`${e.datatype.number({min:10,max:12})}.00`,safari:()=>[e.datatype.number({min:531,max:538}),e.datatype.number({min:0,max:2}),e.datatype.number({min:0,max:2})].join(".")},[l,c]=(a=n({chrome:.4513281056