PageSourceSearch

https://quemassina.com.br/assets/telemetry-Dk1uc6En.js

js quemassina.com.br collected 2026-10-02 01:18:19 UTC 66,281 bytes, 1 lines download raw bytes

vendor: 17,649 bytes, line 1
1var S;(function(a){a.assertEqual=n=>{};function e(n){}a.assertIs=e;function t(n){throw new Error}a.assertNever=t,a.arrayToEnum=n=>{const r={};for(const i of n)r[i]=i;return r},a.getValidEnumValues=n=>{const r=a.objectKeys(n).filter(c=>typeof n[n[c]]!="number"),i={};for(const c of r)i[c]=n[c];return a.objectValues(i)},a.objectValues=n=>a.objectKeys(n).map(function(r){return n[r]}),a.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const r=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.push(i);return r},a.find=(n,r)=>{for(const i of n)if(r(i))return i},a.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function s(n,r=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(r)}a.joinValues=s,a.jsonStringifyReplacer=(n,r)=>typeof r=="bigint"?r.toString():r})(S||(S={}));var we;(function(a){a.mergeShapes=(e,t)=>({...e,...t})})(we||(we={}));const f=S.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),j=a=>{switch(typeof a){case"undefined":return f.undefined;case"string":return f.string;case"number":return Number.isNaN(a)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(a)?f.array:a===null?f.null:a.then&&typeof a.then=="function"&&a.catch&&typeof a.catch=="function"?f.promise:typeof Map<"u"&&a instanceof Map?f.map:typeof Set<"u"&&a instanceof Set?f.set:typeof Date<"u"&&a instanceof Date?f.date:f.object;default:return f.unknown}},l=S.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class E extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(r){return r.message},s={_errors:[]},n=r=>{for(const i of r.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let c=s,m=0;for(;m<i.path.length;){const h=i.path[m];m===i.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(t(i))):c[h]=c[h]||{_errors:[]},c=c[h],m++}}};return n(this),s}static assert(e){if(!(e instanceof E))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,S.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const n of this.issues)if(n.path.length>0){const r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else s.push(e(n));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}E.create=a=>new E(a);const de=(a,e)=>{let t;switch(a.code){case l.invalid_type:a.received===f.undefined?t="Required":t=`Expected ${a.expected}, received ${a.received}`;break;case l.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(a.expected,S.jsonStringifyReplacer)}`;break;case l.unrecognized_keys:t=`Unrecognized key(s) in object: ${S.joinValues(a.keys,", ")}`;break;case l.invalid_union:t="Invalid input";break;case l.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${S.joinValues(a.options)}`;break;case l.invalid_enum_value:t=`Invalid enum value. Expected ${S.joinValues(a.options)}, received '${a.received}'`;break;case l.invalid_arguments:t="Invalid function arguments";break;case l.invalid_return_type:t="Invalid function return type";break;case l.invalid_date:t="Invalid date";break;case l.invalid_string:typeof a.validation=="object"?"includes"in a.validation?(t=`Invalid input: must include "${a.validation.includes}"`,typeof a.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${a.validation.position}`)):"startsWith"in a.validation?t=`Invalid input: must start with "${a.validation.startsWith}"`:"endsWith"in a.validation?t=`Invalid input: must end with "${a.validation.endsWith}"`:S.assertNever(a.validation):a.validation!=="regex"?t=`Invalid ${a.validation}`:t="Invalid";break;case l.too_small:a.type==="array"?t=`Array must contain ${a.exact?"exactly":a.inclusive?"at least":"more than"} ${a.minimum} element(s)`:a.type==="string"?t=`String must contain ${a.exact?"exactly":a.inclusive?"at least":"over"} ${a.minimum} character(s)`:a.type==="number"?t=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="bigint"?t=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="date"?t=`Date must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(a.minimum))}`:t="Invalid input";break;case l.too_big:a.type==="array"?t=`Array must contain ${a.exact?"exactly":a.inclusive?"at most":"less than"} ${a.maximum} element(s)`:a.type==="string"?t=`String must contain ${a.exact?"exactly":a.inclusive?"at most":"under"} ${a.maximum} character(s)`:a.type==="number"?t=`Number must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="bigint"?t=`BigInt must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="date"?t=`Date must be ${a.exact?"exactly":a.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(a.maximum))}`:t="Invalid input";break;case l.custom:t="Invalid input";break;case l.invalid_intersection_types:t="Intersection results could not be merged";break;case l.not_multiple_of:t=`Number must be a multiple of ${a.multipleOf}`;break;case l.not_finite:t="Number must be finite";break;default:t=e.defaultError,S.assertNever(a)}return{message:t}};let Ge=de;function Ye(){return Ge}const Ke=a=>{const{data:e,path:t,errorMaps:s,issueData:n}=a,r=[...t,...n.path||[]],i={...n,path:r};if(n.message!==void 0)return{...n,path:r,message:n.message};let c="";const m=s.filter(h=>!!h).slice().reverse();for(const h of m)c=h(i,{data:e,defaultError:c}).message;return{...n,path:r,message:c}};function u(a,e){const t=Ye(),s=Ke({issueData:e,data:a.data,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,t,t===de?void 0:de].filter(n=>!!n)});a.common.issues.push(s)}class O{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const n of t){if(n.status==="aborted")return v;n.status==="dirty"&&e.dirty(),s.push(n.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const n of t){const r=await n.key,i=await n.value;s.push({key:r,value:i})}return O.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const n of t){const{key:r,value:i}=n;if(r.status==="aborted"||i.status==="aborted")return v;r.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(s[r.value]=i.value)}return{status:e.value,value:s}}}const v=Object.freeze({status:"aborted"}),W=a=>({status:"dirty",value:a}),N=a=>({status:"valid",value:a}),Te=a=>a.status==="aborted",Ce=a=>a.status==="dirty",P=a=>a.status==="valid",Q=a=>typeof Promise<"u"&&a instanceof Promise;var p;(function(a){a.errToObj=e=>typeof e=="string"?{message:e}:e||{},a.toString=e=>typeof e=="string"?e:e?.message})(p||(p={}));class I{constructor(e,t,s,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ae=(a,e)=>{if(P(e))return{success:!0,data:e.value};if(!a.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new E(a.common.issues);return this._error=t,this._error}}};function y(a){if(!a)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:n}=a;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,c)=>{const{message:m}=a;return i.code==="invalid_enum_value"?{message:m??c.defaultError}:typeof c.data>"u"?{message:m??s??c.defaultError}:i.code!=="invalid_type"?{message:c.defaultError}:{message:m??t??c.defaultError}},description:n}}class k{get description(){return this._def.description}_getType(e){return j(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:j(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new O,ctx:{common:e.parent.common,data:e.data,parsedType:j(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Q(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:j(e)},n=this._parseSync({data:e,path:s.path,parent:s});return Ae(s,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:j(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:t});return P(s)?{value:s.value}:{issues:t.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(s=>P(s)?{value:s.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:j(e)},n=this._parse({data:e,path:s.path,parent:s}),r=await(Q(n)?n:Promise.resolve(n));return Ae(s,r)}refine(e,t){const s=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,r)=>{const i=e(n),c=()=>r.addIssue({code:l.custom,...s(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(m=>m?!0:(c(),!1)):i?!0:(c(),!1)})}refinement(e,t){return this._refinement((s,n)=>e(s)?!0:(n.addIssue(typeof t=="function"?t(s,n):t),!1))}_refinement(e){return new U({schema:this,typeName:g.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return $.create(this,this._def)}nullable(){return q.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return R.create(this)}promise(){return se.create(this,this._def)}or(e){return ee.create([this,e],this._def)}and(e){return te.create(this,e,this._def)}transform(e){return new U({...y(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new _e({...y(this._def),innerType:this,defaultValue:t,typeName:g.ZodDefault})}brand(){return new bt({typeName:g.ZodBranded,type:this,...y(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new ge({...y(this._def),innerType:this,catchValue:t,typeName:g.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return be.create(this,e)}readonly(){return ve.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Qe=/^c[^\s-]{8,}$/i,Xe=/^[0-9a-z]+$/,et=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,at=/^[a-z0-9_-]{21}$/i,st=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,nt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,rt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,it="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oe;const ot=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ct=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,dt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ut=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ht=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Pe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ft=new RegExp(`^${Pe}$`);function Me(a){let e="[0-5]\\d";a.precision?e=`${e}\\.\\d{${a.precision}}`:a.precision==null&&(e=`${e}(\\.\\d+)?`);const t=a.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function mt(a){return new RegExp(`^${Me(a)}$`)}function pt(a){let e=`${Pe}T${Me(a)}`;const t=[];return t.push(a.local?"Z?":"Z"),a.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function _t(a,e){return!!((e==="v4"||!e)&&ot.test(a)||(e==="v6"||!e)&&lt.test(a))}function gt(a,e){if(!st.test(a))return!1;try{const[t]=a.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(s));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function vt(a,e){return!!((e==="v4"||!e)&&ct.test(a)||(e==="v6"||!e)&&dt.test(a))}class Z extends k{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:f.string,received:r.parsedType}),v}const s=new O;let n;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),u(n,{code:l.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),s.dirty());else if(r.kind==="max")e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),u(n,{code:l.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),s.dirty());else if(r.kind==="length"){const i=e.data.length>r.value,c=e.data.length<r.value;
vendor: 6,158 bytes, line 1
1(i||c)&&(n=this._getOrReturnCtx(e,n),i?u(n,{code:l.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):c&&u(n,{code:l.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),s.dirty())}else if(r.kind==="email")rt.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"email",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="emoji")oe||(oe=new RegExp(it,"u")),oe.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"emoji",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="uuid")tt.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"uuid",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="nanoid")at.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"nanoid",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="cuid")Qe.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"cuid",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="cuid2")Xe.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"cuid2",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="ulid")et.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"ulid",code:l.invalid_string,message:r.message}),s.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),u(n,{validation:"url",code:l.invalid_string,message:r.message}),s.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"regex",code:l.invalid_string,message:r.message}),s.dirty())):r.kind==="trim"?e.data=e.data.trim():r.kind==="includes"?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),s.dirty()):r.kind==="toLowerCase"?e.data=e.data.toLowerCase():r.kind==="toUpperCase"?e.data=e.data.toUpperCase():r.kind==="startsWith"?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:{startsWith:r.value},message:r.message}),s.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:{endsWith:r.value},message:r.message}),s.dirty()):r.kind==="datetime"?pt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:"datetime",message:r.message}),s.dirty()):r.kind==="date"?ft.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:"date",message:r.message}),s.dirty()):r.kind==="time"?mt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{code:l.invalid_string,validation:"time",message:r.message}),s.dirty()):r.kind==="duration"?nt.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"duration",code:l.invalid_string,message:r.message}),s.dirty()):r.kind==="ip"?_t(e.data,r.version)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"ip",code:l.invalid_string,message:r.message}),s.dirty()):r.kind==="jwt"?gt(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"jwt",code:l.invalid_string,message:r.message}),s.dirty()):r.kind==="cidr"?vt(e.data,r.version)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"cidr",code:l.invalid_string,message:r.message}),s.dirty()):r.kind==="base64"?ut.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"base64",code:l.invalid_string,message:r.message}),s.dirty()):r.kind==="base64url"?ht.test(e.data)||(n=this._getOrReturnCtx(e,n),u(n,{validation:"base64url",code:l.invalid_string,message:r.message}),s.dirty()):S.assertNever(r);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(n=>e.test(n),{validation:t,code:l.invalid_string,...p.errToObj(s)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...p.errToObj(e)})}url(e){return this._addCheck({kind:"url",...p.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...p.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...p.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...p.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...p.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...p.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...p.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...p.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...p.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...p.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...p.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...p.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...p.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...p.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...p.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...p.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...p.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...p.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...p.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...p.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...p.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...p.errToObj(t)})}nonempty(e){return this.min(1,p.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 16,289 bytes, line 1
1get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Z.create=a=>new Z({checks:[],typeName:g.ZodString,coerce:a?.coerce??!1,...y(a)});function yt(a,e){const t=(a.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,n=t>s?t:s,r=Number.parseInt(a.toFixed(n).replace(".","")),i=Number.parseInt(e.toFixed(n).replace(".",""));return r%i/10**n}class M extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){const r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:f.number,received:r.parsedType}),v}let s;const n=new O;for(const r of this._def.checks)r.kind==="int"?S.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind==="multipleOf"?yt(e.data,r.value)!==0&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.not_finite,message:r.message}),n.dirty()):S.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,p.toString(t))}gt(e,t){return this.setLimit("min",e,!1,p.toString(t))}lte(e,t){return this.setLimit("max",e,!0,p.toString(t))}lt(e,t){return this.setLimit("max",e,!1,p.toString(t))}setLimit(e,t,s,n){return new M({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:p.toString(n)}]})}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:p.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:p.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:p.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:p.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:p.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:p.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:p.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:p.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:p.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&S.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}M.create=a=>new M({checks:[],typeName:g.ZodNumber,coerce:a?.coerce||!1,...y(a)});class J extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==f.bigint)return this._getInvalidInput(e);let s;const n=new O;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):S.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return u(t,{code:l.invalid_type,expected:f.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,p.toString(t))}gt(e,t){return this.setLimit("min",e,!1,p.toString(t))}lte(e,t){return this.setLimit("max",e,!0,p.toString(t))}lt(e,t){return this.setLimit("max",e,!1,p.toString(t))}setLimit(e,t,s,n){return new J({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:p.toString(n)}]})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:p.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:p.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:p.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:p.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:p.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}J.create=a=>new J({checks:[],typeName:g.ZodBigInt,coerce:a?.coerce??!1,...y(a)});class ue extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f.boolean){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.boolean,received:s.parsedType}),v}return N(e.data)}}ue.create=a=>new ue({typeName:g.ZodBoolean,coerce:a?.coerce||!1,...y(a)});class X extends k{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:f.date,received:r.parsedType}),v}if(Number.isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_date}),v}const s=new O;let n;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),u(n,{code:l.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),s.dirty()):r.kind==="max"?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),u(n,{code:l.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),s.dirty()):S.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:p.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:p.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}X.create=a=>new X({checks:[],coerce:a?.coerce||!1,typeName:g.ZodDate,...y(a)});class Oe extends k{_parse(e){if(this._getType(e)!==f.symbol){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.symbol,received:s.parsedType}),v}return N(e.data)}}Oe.create=a=>new Oe({typeName:g.ZodSymbol,...y(a)});class Ne extends k{_parse(e){if(this._getType(e)!==f.undefined){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.undefined,received:s.parsedType}),v}return N(e.data)}}Ne.create=a=>new Ne({typeName:g.ZodUndefined,...y(a)});class he extends k{_parse(e){if(this._getType(e)!==f.null){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.null,received:s.parsedType}),v}return N(e.data)}}he.create=a=>new he({typeName:g.ZodNull,...y(a)});class Re extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return N(e.data)}}Re.create=a=>new Re({typeName:g.ZodAny,...y(a)});class fe extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return N(e.data)}}fe.create=a=>new fe({typeName:g.ZodUnknown,...y(a)});class D extends k{_parse(e){const t=this._getOrReturnCtx(e);return u(t,{code:l.invalid_type,expected:f.never,received:t.parsedType}),v}}D.create=a=>new D({typeName:g.ZodNever,...y(a)});class Ie extends k{_parse(e){if(this._getType(e)!==f.undefined){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.void,received:s.parsedType}),v}return N(e.data)}}Ie.create=a=>new Ie({typeName:g.ZodVoid,...y(a)});class R extends k{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),n=this._def;if(t.parsedType!==f.array)return u(t,{code:l.invalid_type,expected:f.array,received:t.parsedType}),v;if(n.exactLength!==null){const i=t.data.length>n.exactLength.value,c=t.data.length<n.exactLength.value;(i||c)&&(u(t,{code:i?l.too_big:l.too_small,minimum:c?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&(u(t,{code:l.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&(u(t,{code:l.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,c)=>n.type._parseAsync(new I(t,i,t.path,c)))).then(i=>O.mergeArray(s,i));const r=[...t.data].map((i,c)=>n.type._parseSync(new I(t,i,t.path,c)));return O.mergeArray(s,r)}get element(){return this._def.type}min(e,t){return new R({...this._def,minLength:{value:e,message:p.toString(t)}})}max(e,t){return new R({...this._def,maxLength:{value:e,message:p.toString(t)}})}length(e,t){return new R({...this._def,exactLength:{value:e,message:p.toString(t)}})}nonempty(e){return this.min(1,e)}}R.create=(a,e)=>new R({type:a,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...y(e)});function V(a){if(a instanceof C){const e={};for(const t in a.shape){const s=a.shape[t];e[t]=$.create(V(s))}return new C({...a._def,shape:()=>e})}else return a instanceof R?new R({...a._def,type:V(a.element)}):a instanceof $?$.create(V(a.unwrap())):a instanceof q?q.create(V(a.unwrap())):a instanceof L?L.create(a.items.map(e=>V(e))):a}class C extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=S.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==f.object){const h=this._getOrReturnCtx(e);return u(h,{code:l.invalid_type,expected:f.object,received:h.parsedType}),v}const{status:s,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),c=[];if(!(this._def.catchall instanceof D&&this._def.unknownKeys==="strip"))for(const h in n.data)i.includes(h)||c.push(h);const m=[];for(const h of i){const x=r[h],F=n.data[h];m.push({key:{status:"valid",value:h},value:x._parse(new I(n,F,n.path,h)),alwaysSet:h in n.data})}if(this._def.catchall instanceof D){const h=this._def.unknownKeys;if(h==="passthrough")for(const x of c)m.push({key:{status:"valid",value:x},value:{status:"valid",value:n.data[x]}});else if(h==="strict")c.length>0&&(u(n,{code:l.unrecognized_keys,keys:c}),s.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const x of c){const F=n.data[x];m.push({key:{status:"valid",value:x},value:h._parse(new I(n,F,n.path,x)),alwaysSet:x in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const h=[];for(const x of m){const F=await x.key,Je=await x.value;h.push({key:F,value:Je,alwaysSet:x.alwaysSet})}return h}).then(h=>O.mergeObjectSync(s,h)):O.mergeObjectSync(s,m)}get shape(){return this._def.shape()}strict(e){return p.errToObj,new C({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{const n=this._def.errorMap?.(t,s).message??s.defaultError;return t.code==="unrecognized_keys"?{message:p.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new C({...this._def,unknownKeys:"strip"})}passthrough(){return new C({...this._def,unknownKeys:"passthrough"})}extend(e){return new C({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new C({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:g.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new C({...this._def,catchall:e})}pick(e){const t={};for(const s of S.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new C({...this._def,shape:()=>t})}omit(e){const t={};for(const s of S.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new C({...this._def,shape:()=>t})}deepPartial(){return V(this)}partial(e){const t={};for(const s of S.objectKeys(this.shape)){const n=this.shape[s];e&&!e[s]?t[s]=n:t[s]=n.optional()}return new C({...this._def,shape:()=>t})}required(e){const t={};for(const s of S.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let r=this.shape[s];for(;r instanceof $;)r=r._def.innerType;t[s]=r}return new C({...this._def,shape:()=>t})}keyof(){return Be(S.objectKeys(this.shape))}}C.create=(a,e)=>new C({shape:()=>a,unknownKeys:"strip",catchall:D.create(),typeName:g.ZodObject,...y(e)});C.strictCreate=(a,e)=>new C({shape:()=>a,unknownKeys:"strict",catchall:D.create(),typeName:g.ZodObject,...y(e)});C.lazycreate=(a,e)=>new C({shape:a,unknownKeys:"strip",catchall:D.create(),typeName:g.ZodObject,...y(e)});class ee extends k{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function n(r){for(const c of r)if(c.result.status==="valid")return c.result;for(const c of r)if(c.result.status==="dirty")return t.common.issues.push(...c.ctx.common.issues),c.result;const i=r.map(c=>new E(c.ctx.common.issues));return u(t,{code:l.invalid_union,unionErrors:i}),v}if(t.common.async)return Promise.all(s.map(async r=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);{let r;const i=[];for(const m of s){const h={...t,common:{...t.common,issues:[]},parent:null},x=m._parseSync({data:t.data,path:t.path,parent:h});if(x.status==="valid")return x;x.status==="dirty"&&!r&&(r={result:x,ctx:h}),h.common.issues.length&&i.push(h.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const c=i.map(m=>new E(m));return u(t,{code:l.invalid_union,unionErrors:c}),v}}get options(){return this._def.options}}ee.create=(a,e)=>new ee({options:a,typeName:g.ZodUnion,...y(e)});
vendor: 5,515 bytes, line 1
1function me(a,e){const t=j(a),s=j(e);if(a===e)return{valid:!0,data:a};if(t===f.object&&s===f.object){const n=S.objectKeys(e),r=S.objectKeys(a).filter(c=>n.indexOf(c)!==-1),i={...a,...e};for(const c of r){const m=me(a[c],e[c]);if(!m.valid)return{valid:!1};i[c]=m.data}return{valid:!0,data:i}}else if(t===f.array&&s===f.array){if(a.length!==e.length)return{valid:!1};const n=[];for(let r=0;r<a.length;r++){const i=a[r],c=e[r],m=me(i,c);if(!m.valid)return{valid:!1};n.push(m.data)}return{valid:!0,data:n}}else return t===f.date&&s===f.date&&+a==+e?{valid:!0,data:a}:{valid:!1}}class te extends k{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=(r,i)=>{if(Te(r)||Te(i))return v;const c=me(r.value,i.value);return c.valid?((Ce(r)||Ce(i))&&t.dirty(),{status:t.value,value:c.data}):(u(s,{code:l.invalid_intersection_types}),v)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([r,i])=>n(r,i)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}te.create=(a,e,t)=>new te({left:a,right:e,typeName:g.ZodIntersection,...y(t)});class L extends k{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==f.array)return u(s,{code:l.invalid_type,expected:f.array,received:s.parsedType}),v;if(s.data.length<this._def.items.length)return u(s,{code:l.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&s.data.length>this._def.items.length&&(u(s,{code:l.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...s.data].map((i,c)=>{const m=this._def.items[c]||this._def.rest;return m?m._parse(new I(s,i,s.path,c)):null}).filter(i=>!!i);return s.common.async?Promise.all(r).then(i=>O.mergeArray(t,i)):O.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}L.create=(a,e)=>{if(!Array.isArray(a))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:a,typeName:g.ZodTuple,rest:null,...y(e)})};class ae extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==f.object)return u(s,{code:l.invalid_type,expected:f.object,received:s.parsedType}),v;const n=[],r=this._def.keyType,i=this._def.valueType;for(const c in s.data)n.push({key:r._parse(new I(s,c,s.path,c)),value:i._parse(new I(s,s.data[c],s.path,c)),alwaysSet:c in s.data});return s.common.async?O.mergeObjectAsync(t,n):O.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,s){return t instanceof k?new ae({keyType:e,valueType:t,typeName:g.ZodRecord,...y(s)}):new ae({keyType:Z.create(),valueType:e,typeName:g.ZodRecord,...y(t)})}}class Ze extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==f.map)return u(s,{code:l.invalid_type,expected:f.map,received:s.parsedType}),v;const n=this._def.keyType,r=this._def.valueType,i=[...s.data.entries()].map(([c,m],h)=>({key:n._parse(new I(s,c,s.path,[h,"key"])),value:r._parse(new I(s,m,s.path,[h,"value"]))}));if(s.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const m of i){const h=await m.key,x=await m.value;if(h.status==="aborted"||x.status==="aborted")return v;(h.status==="dirty"||x.status==="dirty")&&t.dirty(),c.set(h.value,x.value)}return{status:t.value,value:c}})}else{const c=new Map;for(const m of i){const h=m.key,x=m.value;if(h.status==="aborted"||x.status==="aborted")return v;(h.status==="dirty"||x.status==="dirty")&&t.dirty(),c.set(h.value,x.value)}return{status:t.value,value:c}}}}Ze.create=(a,e,t)=>new Ze({valueType:e,keyType:a,typeName:g.ZodMap,...y(t)});class G extends k{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==f.set)return u(s,{code:l.invalid_type,expected:f.set,received:s.parsedType}),v;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(u(s,{code:l.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(u(s,{code:l.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const r=this._def.valueType;function i(m){const h=new Set;for(const x of m){if(x.status==="aborted")return v;x.status==="dirty"&&t.dirty(),h.add(x.value)}return{status:t.value,value:h}}const c=[...s.data.values()].map((m,h)=>r._parse(new I(s,m,s.path,h)));return s.common.async?Promise.all(c).then(m=>i(m)):i(c)}min(e,t){return new G({...this._def,minSize:{value:e,message:p.toString(t)}})}max(e,t){return new G({...this._def,maxSize:{value:e,message:p.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}G.create=(a,e)=>new G({valueType:a,minSize:null,maxSize:null,typeName:g.ZodSet,...y(e)});class Ee extends k{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ee.create=(a,e)=>new Ee({getter:a,typeName:g.ZodLazy,...y(e)});class pe extends k{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return u(t,{received:t.data,code:l.invalid_literal,expected:this._def.value}),v}
vendor: 4,116 bytes, line 1
1return{status:"valid",value:e.data}}get value(){return this._def.value}}pe.create=(a,e)=>new pe({value:a,typeName:g.ZodLiteral,...y(e)});function Be(a,e){return new B({values:a,typeName:g.ZodEnum,...y(e)})}class B extends k{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return u(t,{expected:S.joinValues(s),received:t.parsedType,code:l.invalid_type}),v}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return u(t,{received:t.data,code:l.invalid_enum_value,options:s}),v}return N(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return B.create(e,{...this._def,...t})}exclude(e,t=this._def){return B.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}B.create=Be;class je extends k{_parse(e){const t=S.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==f.string&&s.parsedType!==f.number){const n=S.objectValues(t);return u(s,{expected:S.joinValues(n),received:s.parsedType,code:l.invalid_type}),v}if(this._cache||(this._cache=new Set(S.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const n=S.objectValues(t);return u(s,{received:s.data,code:l.invalid_enum_value,options:n}),v}return N(e.data)}get enum(){return this._def.values}}je.create=(a,e)=>new je({values:a,typeName:g.ZodNativeEnum,...y(e)});class se extends k{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&t.common.async===!1)return u(t,{code:l.invalid_type,expected:f.promise,received:t.parsedType}),v;const s=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return N(s.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}se.create=(a,e)=>new se({type:a,typeName:g.ZodPromise,...y(e)});class U extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:i=>{u(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(r.addIssue=r.addIssue.bind(r),n.type==="preprocess"){const i=n.transform(s.data,r);if(s.common.async)return Promise.resolve(i).then(async c=>{if(t.value==="aborted")return v;const m=await this._def.schema._parseAsync({data:c,path:s.path,parent:s});return m.status==="aborted"?v:m.status==="dirty"||t.value==="dirty"?W(m.value):m});{if(t.value==="aborted")return v;const c=this._def.schema._parseSync({data:i,path:s.path,parent:s});return c.status==="aborted"?v:c.status==="dirty"||t.value==="dirty"?W(c.value):c}}if(n.type==="refinement"){const i=c=>{const m=n.refinement(c,r);if(s.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(s.common.async===!1){const c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return c.status==="aborted"?v:(c.status==="dirty"&&t.dirty(),i(c.value),{status:t.value,value:c.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>c.status==="aborted"?v:(c.status==="dirty"&&t.dirty(),i(c.value).then(()=>({status:t.value,value:c.value}))))}if(n.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!P(i))return v;const c=n.transform(i.value,r);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>P(i)?Promise.resolve(n.transform(i.value,r)).then(c=>({status:t.value,value:c})):v);S.assertNever(n)}}U.create=(a,e,t)=>
1new U({schema:a,typeName:g.ZodEffects,effect:e,...y(t)});U.createWithPreprocess=(a,e,t)=>new U({schema:e,effect:{type:"preprocess",transform:a},typeName:g.ZodEffects,...y(t)});class $ extends k{_parse(e){return this._getType(e)===f.undefined?N(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$.create=(a,e)=>new $({innerType:a,typeName:g.ZodOptional,...y(e)});class q extends k{_parse(e){return this._getType(e)===f.null?N(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}q.create=(a,e)=>new q({innerType:a,typeName:g.ZodNullable,...y(e)});class _e extends k{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===f.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}_e.create=(a,e)=>new _e({innerType:a,typeName:g.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...y(e)});class ge extends k{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Q(n)?n.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new E(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new E(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ge.create=(a,e)=>new ge({innerType:a,typeName:g.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...y(e)});class $e extends k{_parse(e){if(this._getType(e)!==f.nan){const s=this._getOrReturnCtx(e);return u(s,{code:l.invalid_type,expected:f.nan,received:s.parsedType}),v}return{status:"valid",value:e.data}}}$e.create=a=>new $e({typeName:g.ZodNaN,...y(a)});class bt extends k{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class be extends k{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?v:r.status==="dirty"?(t.dirty(),W(r.value)):this._def.out._parseAsync({data:r.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?v:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(e,t){return new be({in:e,out:t,typeName:g.ZodPipeline})}}class ve extends k{_parse(e){const t=this._def.innerType._parse(e),s=n=>(P(n)&&(n.value=Object.freeze(n.value)),n);return Q(t)?t.then(n=>s(n)):s(t)}unwrap(){return this._def.innerType}}ve.create=(a,e)=>new ve({innerType:a,typeName:g.ZodReadonly,...y(e)});var g;(function(a){a.ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly"})(g||(g={}));const d=Z.create,_=M.create,w=ue.create,xt=he.create,kt=fe.create;D.create;const T=R.create,o=C.create,St=ee.create;te.create;const xe=L.create,Ue=ae.create,wt=pe.create,b=B.create;se.create;$.create;q.create;const ce=o({codigo:d(),descricao:d()}),Tt=o({codigo:d(),descricao:d(),data:d().nullable()}),Ct=o({logradouro:d().nullable(),numero:d().nullable(),complemento:d().nullable(),bairro:d().nullable(),municipio:d().nullable(),uf:d().nullable(),cep:d().nullable()}),At=o({telefone:d().nullable(),email:d().nullable()}),Ot=o({nome:d(),qualificacao:d().nullable(),faixa_etaria:d().nullable(),desde:d().nullable(),documento:d().nullish()}),Nt=b(["MEI","ME","EPP","DEMAIS"]),Rt=o({simples:w().nullable(),mei:w().nullable()}),It=o({municipio:d(),populacao:_(),ano:d(),fonte:wt("IBGE")}),qe=o({cnpj:d().length(14),cnpj_formatado:d(),razao_social:d().min(1),nome_fantasia:d().nullable(),situacao:Tt,natureza_juridica:ce.nullable(),porte:Nt.nullable(),capital_social:_().nullable(),abertura:d().nullable(),cnae_principal:ce.nullable(),cnaes_secundarios:T(ce).nullable(),endereco:Ct,contato:At.nullable(),socios:T(Ot).nullable(),matriz_filial:b(["MATRIZ","FILIAL"]).nullable().default(null),regime:Rt.nullable().default(null),municipio_ibge:d().nullable().default(null),contexto_local:It.nullable().default(null)}),A=o({data_source:d(),legal_basis:d(),fetched_at:d(),cached:w(),stale:w()}),Ba=qe.extend({meta:A});Object.keys(qe.shape).filter(a=>a!=="cnpj"&&a!=="cnpj_formatado");const Zt=o({categoria:d(),total:_(),notas:_().int()}),Et=o({ano:_().int(),total:_(),notas:_().int()}),jt=o({total_recebido:_(),num_notas:_().int(),anos:xe([_().int(),_().int()]),categorias:T(d()),por_categoria:T(Zt).default([]),por_ano:T(Et).default([])}),$t=o({contratos:_().int(),anos:xe([_().int(),_().int()])}),Dt=o({total_global:_(),num_contratos:_().int(),anos:xe([_().int(),_().int()]),esferas:T(b(["federal","estadual","municipal"]))}),Lt=o({ceap:jt.nullable(),licitacoes_camara:$t.nullable(),pncp:Dt.nullable().default(null)});Lt.extend({meta:A});
1const zt=o({descricao:d(),fruicao_vigente:w(),data_inicio:d(),data_fim:d()}),Vt=o({itens:T(zt)}),Pt=o({beneficios_fiscais:Vt.nullable()}),Ua=Pt.extend({meta:A}),Mt=o({tipo_entidade:d(),beneficio:d()}),Bt=o({itens:T(Mt)}),Ut=o({imune_isenta:Bt.nullable()}),qa=Ut.extend({meta:A}),qt=[5,4,3,2,9,8,7,6,5,4,3,2],Ft=[6,5,4,3,2,9,8,7,6,5,4,3,2];function Wt(a){return a.charCodeAt(0)-48}function De(a,e){let t=0;for(let n=0;n<e.length;n++)t+=Wt(a[n])*e[n];const s=t%11;return s<2?0:11-s}function Fa(a){const e=a.toUpperCase().replace(/[\s./-]/g,"");return/^[A-Z0-9]{14}$/.test(e)?e:null}function Ht(a){if(!/^[A-Z0-9]{12}\d{2}$/.test(a)||/^(.)\1{13}$/.test(a))return!1;const e=De(a.slice(0,12),qt),t=De(a.slice(0,13),Ft);return e===Number(a[12])&&t===Number(a[13])}const Jt=b(["fgts","previdenciario","nao_previdenciario"]),Gt=o({valor_total:_(),num_inscricoes:_().int(),ajuizada:w(),tipos:T(Jt)}),Yt=o({divida_ativa:Gt.nullable()}),Wa=Yt.extend({meta:A}),ke=o({nome:d(),valor:_()}),Kt=o({total_pago:_(),num_pagamentos:_().int(),anos:T(_().int()),orgaos:T(ke),amostra:w()}),Qt=o({despesas_federais:Kt.nullable()}),Ha=Qt.extend({meta:A}),Xt=o({valor_total:_(),num_contratos:_().int(),anos:T(_().int()),orgaos:T(ke),amostra:w()}),ea=o({contratos_federais:Xt.nullable()}),Ja=ea.extend({meta:A}),ta=o({orgao_responsavel:d(),situacao:d(),data_inicio:d(),data_fim:d()}),aa=o({total:_().int(),acordos:T(ta)}),sa=o({acordos_leniencia:aa.nullable()}),Ga=sa.extend({meta:A}),na=b(["estabelecimento","numero","logradouro","cep","municipio","aproximada"]),ra=o({acesso:b(["completo","mascarado"]),municipio_ibge:_().int().nullable(),lat:_().nullable(),lon:_().nullable(),precisao:na.nullable(),desvio_m:_().int().nullable(),referencia:_().int()}),ia=o({localizacao:ra.nullable()}),Ya=ia.extend({meta:A}),oa=o({valor_total:_(),num_notas:_().int(),orgaos:T(ke),amostra:w()}),ca=o({notas_fiscais:oa.nullable()}),Ka=ca.extend({meta:A}),la=b(["A","P"]),da=o({numero_processo:d(),data:d().nullable(),tribunal:d().nullable(),orgao:d().nullable(),classe:d().nullable(),tipo:d().nullable(),polo:la.nullable(),link:d().nullable()}),ua=o({classe:d(),processos:_().int()}),ha=o({nome_consultado:d(),total_processos:_().int(),truncado:w(),por_classe:T(ua),publicacoes:T(da),cobertura:d(),aviso:d()});ha.extend({meta:A});const fa=o({descricao:d(),fundamento_legal:d(),valor:_()}),ma=o({total_renunciado:_(),anos:T(_().int()),beneficios:T(fa)}),pa=o({renuncias_fiscais:ma.nullable()}),Qa=pa.extend({meta:A}),ye=o({cnpj:d(),razao_social:d().nullable(),situacao:d().nullable(),qualificacao:d().nullable()}),_a=ye.extend({socios_em_comum:T(d())}),ga=o({controladores:T(ye),participacoes:T(ye),irmas:T(_a),truncado:w()});ga.extend({meta:A});const va=b(["com_registro","sem_registro","indisponivel"]),ya=St([d(),_(),w(),xt()]),ba=o({slug:d(),orgao:d(),rotulo:d(),status:va,registros:T(Ue(d(),ya)),fonte_url:d().nullable(),coletado_em:d()}),xa=o({fontes:T(ba)}),Xa=xa.extend({meta:A}),ka=o({habilitado_licitar:w()}),Sa=o({sicaf:ka.nullable()}),es=Sa.extend({meta:A}),wa=b(["confirmado_rdap","confirmado_autodeclaracao","provavel","sugerido","indeterminado"]);o({dominio:d().nullable(),url:d().nullable(),status:wa,linkedin:d().nullable(),meta:A});const ne=d().uuid(),Ta=["/","/privacidade","/termos","/cnpj","/bem-vindo","/tchau"],Ca=["/blog","/blog/artigo","/blog/categoria","/blog/institucional","/blog/busca"],Le=b([...Ta,...Ca]);o({path:Le}).strict(),o({path:Le,seconds_bucket:b(["0-10","10-30","30-60","60-180","180+"]),max_scroll:b(["25","50","75","100"])}).strict(),o({}).strict(),o({ext_vid:ne}).strict(),o({}).strict(),o({}).strict(),o({input:b(["typed","paste","autofill","history"])}).strict(),o({ms:_().int().min(0).max(6e5),cache:b(["hit","miss","stale"]),has_qsa:w()}).strict(),o({kind:b(["invalid","rate_limited","upstream","network","auth"])}).strict(),o({action:b(["tab_qsa","tab_regime","tab_local","copy_cnpj","copy_dossie","expand_partner","source_link"])}).strict(),o({faixa:b(["0","1-5","6-20","20+"])}).strict(),o({status:b(["confirmado_rdap","confirmado_autodeclaracao","provavel","sugerido","indeterminado"])}).strict(),o({}).strict(),o({}).strict(),o({fontes_com_hit:_().int().min(0).max(50)}).strict(),o({tem_ceap:w(),tem_pncp:w().optional()}).strict(),o({consta:w(),ajuizada:w().optional()}).strict(),o({acesso:b(["completo","mascarado","sem_ponto"]),precisao:b(["estabelecimento","numero","logradouro","cep","municipio","aproximada"]).optional()}).strict(),o({destino:b(["maps","waze"])}).strict(),o({}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({consta:w()}).strict(),o({tem_sancao:w(),tem_divida:w(),tem_leniencia:w()}).strict(),o({fontes_com_dado:_().int().min(0).max(100),fontes_consultadas:_().int().min(0).max(100)}).strict(),o({socios_com_vinculo:_().int().min(0).max(500)}).strict(),o({controladores:_().int().min(0).max(100),participacoes:_().int().min(0).max(100),irmas:_().int().min(0).max(100)}).strict(),o({}).strict(),o({ctx:b(["popup","panel","box"]),trigger:b(["icon","pill","shortcut"]).optional()}).strict(),o({action:b(["open","drag","resize","fullscreen","close"])}).strict(),o({}).strict(),o({}).strict(),o({target:b(["ferramenta","extensao"])}).strict(),o({}).strict(),o({provider:b(["hubspot","zoho"])}).strict(),o({provider:b(["hubspot","zoho"]),created:w()}).strict(),o({kind:b(["reconnect","not_connected","network","error"])}).strict(),o({position:b(["hero","nav","footer","inline","end","home-task"])}).strict(),o({target:b(["chrome-store","edge-store","linkedin","email"])}).strict(),o({reason:b(["limit","insufficient","premium"])}).strict(),o({method:b(["google"])}).strict(),o({}
1).strict(),o({tab:b(["dashboard","consultar","dossies","abordagens","orcamentos","briefings","oportunidades","vigia","inteligencia","perfis","integracoes","configuracoes","metricas","admin"])}).strict(),o({gancho:b(["filial","empresa_nova","empresa_tradicional","capital_expressivo","multiplos_socios","socio_unico","porte_pequeno","setor"])}).strict(),o({channel:b(["whatsapp","email","linkedin","copy"])}).strict(),o({}).strict(),o({}).strict(),o({}).strict(),o({to_stage:b(["prospectar","abordagem","proposta","ganho","perdido"])}).strict(),o({}).strict(),o({}).strict(),o({where:b(["login","consultar"])}).strict(),o({}).strict(),o({}).strict(),o({}).strict(),o({}).strict(),o({}).strict(),o({}).strict();function ts(a){return a==="invalid_cnpj"?"invalid":a==="rate_limited"?"rate_limited":a==="unauthorized"?"auth":a==="network"||a==="extensao_atualizada"?"network":"upstream"}function Aa(a){const e=a.toUpperCase().replace(/[^A-Z0-9]/g,"");if(/\d{11,}/.test(e))return!0;for(let t=0;t<=e.length-14;t++)if(Ht(e.slice(t,t+14)))return!0;return!1}const Fe=a=>!Aa(a),K=d().regex(/^[a-z0-9\-_.]{1,120}$/).refine(Fe,{message:"UTM não pode conter um identificador de documento"}),le=d().regex(/^[\w.\-]{1,200}$/).refine(Fe,{message:"Click ID não pode conter um identificador de documento"}),We=o({utm_source:K.optional().catch(void 0),utm_medium:K.optional().catch(void 0),utm_campaign:K.optional().catch(void 0),utm_content:K.optional().catch(void 0),gclid:le.optional().catch(void 0),fbclid:le.optional().catch(void 0),msclkid:le.optional().catch(void 0)}),Oa=o({event_id:ne,event:d().min(1).max(64),client_ts:d().datetime({offset:!0}).optional(),ctx:b(["popup","panel","box","page"]).optional(),props:Ue(kt()).optional()});o({vid:ne,sid:ne.optional(),surface:b(["site","ext","blog","app"]),app_version:d().regex(/^[\w.\-]{1,20}$/).optional(),token:d().regex(/^qa_[0-9a-f]{64}$/).optional().catch(void 0),attr:We.optional(),referrer:d().max(500).optional().catch(void 0),events:T(Oa).min(1).max(25)});const Na=o({cnpj:d(),razao_social:d().nullable(),qualificacao:d().nullable(),situacao:d().nullable()}),Ra=o({nome:d(),documento:d(),empresas:T(Na)}),Ia=o({socios:T(Ra),truncado:w()}),as=Ia.extend({meta:A}),ze="https://api.quemassina.com.br/v1/events",Za=2160*36e5,Ea=30*6e4,ja=5,$a=1e4;function Y(a){try{return localStorage.getItem(a)}catch{return null}}function re(a,e){try{localStorage.setItem(a,e)}catch{}}function Se(){return crypto.randomUUID()}function Da(){let a=Y("qa_vid");return a||(a=Se(),re("qa_vid",a)),a}function La(){const a=Date.now(),e=Number(Y("qa_sid_at")??0);let t=Y("qa_sid");return(!t||a-e>Ea)&&(t=Se(),re("qa_sid",t)),re("qa_sid_at",String(a)),t}function za(){const a=new URLSearchParams(location.search),e={};for(const t of["utm_source","utm_medium","utm_campaign","utm_content","gclid","fbclid","msclkid"]){const s=a.get(t);s&&(e[t]=s)}if(Object.keys(e).length>0){const t=We.safeParse(e);t.success&&Object.keys(t.data).length>0&&re("qa_attr",JSON.stringify({at:Date.now(),a:t.data}))}}function Va(){try{const a=Y("qa_attr");if(!a)return;const{at:e,a:t}=JSON.parse(a);return!e||Date.now()-e>Za?void 0:t}catch{return}}let H=[],Ve,He="site";function Pa(a){const e=Y("apiKey")??"";return JSON.stringify({vid:Da(),sid:La(),surface:He,...e.startsWith("qa_")?{token:e}:{},attr:Va(),referrer:document.referrer||void 0,events:a})}function ie(){if(H.length===0)return;const a=H.splice(0,25);try{const e=new Blob([Pa(a)],{type:"text/plain"});navigator.sendBeacon?.(ze,e)||fetch(ze,{method:"POST",body:e,keepalive:!0}).catch(()=>{})}catch{}H.length>0&&ie()}function z(a,e){try{if(H.push({event_id:Se(),event:a,client_ts:new Date().toISOString(),ctx:"page",props:e}),H.length>=ja){ie();return}clearTimeout(Ve),Ve=setTimeout(ie,$a)}catch{}}const Ma=[[10,"0-10"],[30,"10-30"],[60,"30-60"],[180,"60-180"]];function ss(a,e="site"){try{He=e,za(),z("page_view",{path:a});let t=0,s=0;const n=()=>{const c=Date.now();if(c-s<500)return;s=c;const m=document.documentElement,h=m.scrollHeight-m.clientHeight,x=h<=0?100:(m.scrollTop+0)/h*100;x>t&&(t=x)};addEventListener("scroll",n,{passive:!0});let r=!1;const i=()=>
1{if(r||document.visibilityState!=="hidden")return;r=!0;const c=performance.now()/1e3,m=Ma.find(([x])=>c<x)?.[1]??"180+",h=t>=100?"100":t>=75?"75":t>=50?"50":"25";z("page_leave",{path:a,seconds_bucket:m,max_scroll:h}),ie()};document.addEventListener("visibilitychange",i),document.addEventListener("click",c=>{const m=c.target.closest?.("a[href]");if(!m)return;const h=m.href;h.startsWith("mailto:")?z("outbound_click",{target:"email"}):h.includes("chromewebstore.google.com")?z("outbound_click",{target:"chrome-store"}):h.includes("microsoftedge.microsoft.com")?z("outbound_click",{target:"edge-store"}):h.includes("linkedin.com")&&z("outbound_click",{target:"linkedin"})})}catch{}}export{Ua as B,Ja as C,Ba as D,qa as I,Ga as L,Ka as N,Qa as R,Xa as S,as as V,Ht as a,Wa as b,Ha as c,Ya as d,ts as e,es as f,ss as i,Fa as n,z as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.