"use strict";var m=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var K=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l(e))!b.call(r,n)&&n!==t&&m(r,n,{get:()=>e[n],enumerable:!(o=f(e,n))||o.enumerable});return r};var g=r=>h(m({},"__esModule",{value:!0}),r);var M={};K(M,{exec:()=>T});module.exports=g(M);var x=require("../../errors/faker-error");function p(r,e){return r[e]===void 0?-1:0}function R(r,e,t,o,n){throw console.error("Error",t),console.log(`Found ${Object.keys(o).length} unique entries before throwing error.
retried: ${n}
total time: ${e-r}ms`),new x.FakerError(`${t} 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().`)}function T(r,e,t={}){const o=Date.now(),{startTime:n=Date.now(),maxTime:i=50,maxRetries:s=50,currentIterations:a=0,compare:y=p,store:d={}}=t;let{exclude:u=[]}=t;if(t.currentIterations=a,Array.isArray(u)||(u=[u]),o-n>=i)return R(n,o,`Exceeded maxTime: ${i}`,d,a);if(a>=s)return R(n,o,`Exceeded maxRetries: ${s}`,d,a);const c=r(...e);return y(d,c)===-1&&!u.includes(c)?(d[c]=c,t.currentIterations=0,c):(t.currentIterations++,T(r,e,{...t,startTime:n,maxTime:i,maxRetries:s,compare:y,exclude:u}))}0&&(module.exports={exec});
