@pagelines/widget 1.0.854 → 1.0.856
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.js +1 -1
- package/package.json +2 -2
package/dist/widget.js
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Wn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,d={...u},p=c.ref;if(c.ref=null,p){i(p);let f=e.seen.get(p),S=f.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(S)):Object.assign(u,S),Object.assign(u,d),s._zod.parent===p)for(let T in u)T==="$ref"||T==="allOf"||T in d||delete u[T];if(S.$ref&&f.def)for(let T in u)T==="$ref"||T==="allOf"||T in f.def&&JSON.stringify(u[T])===JSON.stringify(f.def[T])&&delete u[T]}let m=s._zod.parent;if(m&&m!==p){i(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let S in u)S==="$ref"||S==="allOf"||S in f.def&&JSON.stringify(u[S])===JSON.stringify(f.def[S])&&delete u[S]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:wo(t,"input",e.processors),output:wo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Jt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Jt(i.element,n);if(i.type==="set")return Jt(i.valueType,n);if(i.type==="lazy")return Jt(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Jt(i.innerType,n);if(i.type==="intersection")return Jt(i.left,n)||Jt(i.right,n);if(i.type==="record"||i.type==="map")return Jt(i.keyType,n)||Jt(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Jt(i.in,n)||Jt(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Jt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(Jt(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(Jt(r,n))return!0;return!!(i.rest&&Jt(i.rest,n))}return!1}var ah,wo,La=O(()=>{Ma();ah=(e,t={})=>n=>{let i=Hn({...n,processors:t});return Qe(e,i),Kn(i,e),Wn(i,e)},wo=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Hn({...r??{},target:o,io:t,processors:n});return Qe(e,a),Kn(a,e),Wn(a,e)}});function kc(e,t){if("_idmap"in e){let i=e,r=Hn({...t,processors:yc}),o={};for(let c of i._idmap.entries()){let[u,d]=c;Qe(d,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[u,d]=c;Kn(r,d),a[u]=Wn(r,d)}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=Hn({...t,processors:yc});return Qe(e,n),Kn(n,e),Wn(n,e)}var I4,sh,lh,ch,uh,dh,ph,mh,fh,hh,gh,vh,bh,yh,xh,wh,kh,_h,$h,Sh,Eh,Ih,Th,zh,Nh,Ah,xc,Ch,Oh,Dh,Ph,Rh,Mh,Uh,jh,Lh,Vh,Fh,wc,Bh,yc,Va=O(()=>{La();ve();I4={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sh=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=I4[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},lh=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let p=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";p?f?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d:typeof o=="number"&&(r.minimum=o),m?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(r.multipleOf=c)},ch=(e,t,n,i)=>{n.type="boolean"},uh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},dh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ph=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},mh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},fh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hh=(e,t,n,i)=>{n.not={}},gh=(e,t,n,i)=>{},vh=(e,t,n,i)=>{},bh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},yh=(e,t,n,i)=>{let r=e._zod.def,o=wa(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},xh=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},wh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},kh=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},_h=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(r,o)},$h=(e,t,n,i)=>{n.type="boolean"},Sh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Eh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ih=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Th=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},zh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Nh=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=Qe(o.element,t,{...i,path:[...i.path,"items"]})},Ah=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let u in a)r.properties[u]=Qe(a[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=Qe(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},xc=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>Qe(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},Ch=(e,t,n,i)=>{let r=e._zod.def,o=Qe(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=Qe(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},Oh=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,f)=>Qe(m,t,{...i,path:[...i.path,a,f]})),u=o.rest?Qe(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:c},u&&r.items.anyOf.push(u),r.minItems=c.length,u||(r.maxItems=c.length)):(r.items=c,u&&(r.additionalItems=u));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p)},Dh=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=Qe(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)r.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Qe(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=Qe(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d)}},Ph=(e,t,n,i)=>{let r=e._zod.def,o=Qe(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Rh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Mh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Uh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},jh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Lh=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;Qe(a,t,i);let s=t.seen.get(e);s.ref=a},Vh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Fh=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},wc=(e,t,n,i)=>{let r=e._zod.def;Qe(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Bh=(e,t,n,i)=>{let r=e._zod.innerType;Qe(r,t,i);let o=t.seen.get(e);o.ref=r},yc={string:sh,number:lh,boolean:ch,bigint:uh,symbol:dh,null:ph,undefined:mh,void:fh,never:hh,any:gh,unknown:vh,date:bh,enum:yh,literal:xh,nan:wh,template_literal:kh,file:_h,success:$h,custom:Sh,function:Eh,transform:Ih,map:Th,set:zh,array:Nh,object:Ah,union:xc,intersection:Ch,tuple:Oh,record:Dh,nullable:Ph,nonoptional:Rh,default:Mh,prefault:Uh,catch:jh,pipe:Lh,readonly:Vh,promise:Fh,optional:wc,lazy:Bh}});var _c,Iw=O(()=>{Va();La();_c=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Hn({processors:yc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Qe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Kn(this.ctx,t);let i=Wn(this.ctx,t),{"~standard":r,...o}=i;return o}}});var Tw={};var zw=O(()=>{});var gn={};Nr(gn,{$ZodAny:()=>Pm,$ZodArray:()=>Lm,$ZodAsyncError:()=>Ar,$ZodBase64:()=>Sm,$ZodBase64URL:()=>Em,$ZodBigInt:()=>jl,$ZodBigIntFormat:()=>Am,$ZodBoolean:()=>Ca,$ZodCIDRv4:()=>km,$ZodCIDRv6:()=>_m,$ZodCUID:()=>um,$ZodCUID2:()=>dm,$ZodCatch:()=>of,$ZodCheck:()=>at,$ZodCheckBigIntFormat:()=>Up,$ZodCheckEndsWith:()=>qp,$ZodCheckGreaterThan:()=>Cl,$ZodCheckIncludes:()=>Gp,$ZodCheckLengthEquals:()=>Zp,$ZodCheckLessThan:()=>Al,$ZodCheckLowerCase:()=>Kp,$ZodCheckMaxLength:()=>Fp,$ZodCheckMaxSize:()=>jp,$ZodCheckMimeType:()=>Xp,$ZodCheckMinLength:()=>Bp,$ZodCheckMinSize:()=>Lp,$ZodCheckMultipleOf:()=>Rp,$ZodCheckNumberFormat:()=>Mp,$ZodCheckOverwrite:()=>Qp,$ZodCheckProperty:()=>Yp,$ZodCheckRegex:()=>Hp,$ZodCheckSizeEquals:()=>Vp,$ZodCheckStartsWith:()=>Jp,$ZodCheckStringFormat:()=>oo,$ZodCheckUpperCase:()=>Wp,$ZodCodec:()=>Da,$ZodCustom:()=>mf,$ZodCustomStringFormat:()=>zm,$ZodDate:()=>jm,$ZodDefault:()=>ef,$ZodDiscriminatedUnion:()=>Bm,$ZodE164:()=>Im,$ZodEmail:()=>am,$ZodEmoji:()=>lm,$ZodEncodeError:()=>Un,$ZodEnum:()=>Gm,$ZodError:()=>Ea,$ZodExactOptional:()=>Xm,$ZodFile:()=>qm,$ZodFunction:()=>uf,$ZodGUID:()=>im,$ZodIPv4:()=>ym,$ZodIPv6:()=>xm,$ZodISODate:()=>gm,$ZodISODateTime:()=>hm,$ZodISODuration:()=>bm,$ZodISOTime:()=>vm,$ZodIntersection:()=>Zm,$ZodJWT:()=>Tm,$ZodKSUID:()=>fm,$ZodLazy:()=>pf,$ZodLiteral:()=>Jm,$ZodMAC:()=>wm,$ZodMap:()=>Km,$ZodNaN:()=>af,$ZodNanoID:()=>cm,$ZodNever:()=>Mm,$ZodNonOptional:()=>rf,$ZodNull:()=>Dm,$ZodNullable:()=>Qm,$ZodNumber:()=>Ul,$ZodNumberFormat:()=>Nm,$ZodObject:()=>zy,$ZodObjectJIT:()=>Vm,$ZodOptional:()=>Vl,$ZodPipe:()=>Fl,$ZodPrefault:()=>tf,$ZodPreprocess:()=>sf,$ZodPromise:()=>df,$ZodReadonly:()=>lf,$ZodRealError:()=>or,$ZodRecord:()=>Hm,$ZodRegistry:()=>Kl,$ZodSet:()=>Wm,$ZodString:()=>yi,$ZodStringFormat:()=>nt,$ZodSuccess:()=>nf,$ZodSymbol:()=>Cm,$ZodTemplateLiteral:()=>cf,$ZodTransform:()=>Ym,$ZodTuple:()=>Ll,$ZodType:()=>Ee,$ZodULID:()=>pm,$ZodURL:()=>sm,$ZodUUID:()=>om,$ZodUndefined:()=>Om,$ZodUnion:()=>Oa,$ZodUnknown:()=>Rm,$ZodVoid:()=>Um,$ZodXID:()=>mm,$ZodXor:()=>Fm,$brand:()=>Bd,$constructor:()=>E,$input:()=>xf,$output:()=>yf,Doc:()=>Aa,JSONSchema:()=>Tw,JSONSchemaGenerator:()=>_c,NEVER:()=>Fd,TimePrecision:()=>$f,_any:()=>Hf,_array:()=>Xf,_base64:()=>uc,_base64url:()=>dc,_bigint:()=>Uf,_boolean:()=>Rf,_catch:()=>w4,_check:()=>Sw,_cidrv4:()=>lc,_cidrv6:()=>cc,_coercedBigint:()=>jf,_coercedBoolean:()=>Mf,_coercedDate:()=>qf,_coercedNumber:()=>Nf,_coercedString:()=>kf,_cuid:()=>tc,_cuid2:()=>rc,_custom:()=>eh,_date:()=>Jf,_decode:()=>wl,_decodeAsync:()=>_l,_default:()=>b4,_discriminatedUnion:()=>a4,_e164:()=>pc,_email:()=>Gl,_emoji:()=>Ql,_encode:()=>xl,_encodeAsync:()=>kl,_endsWith:()=>mo,_enum:()=>p4,_file:()=>Qf,_float32:()=>Cf,_float64:()=>Of,_gt:()=>Fr,_gte:()=>Gt,_guid:()=>Ua,_includes:()=>uo,_int:()=>Af,_int32:()=>Df,_int64:()=>Lf,_intersection:()=>s4,_ipv4:()=>ac,_ipv6:()=>sc,_isoDate:()=>Ef,_isoDateTime:()=>Sf,_isoDuration:()=>Tf,_isoTime:()=>If,_jwt:()=>mc,_ksuid:()=>oc,_lazy:()=>S4,_length:()=>ki,_literal:()=>f4,_lowercase:()=>lo,_lt:()=>Vr,_lte:()=>dr,_mac:()=>_f,_map:()=>u4,_max:()=>dr,_maxLength:()=>wi,_maxSize:()=>Zn,_mime:()=>fo,_min:()=>Gt,_minLength:()=>hn,_minSize:()=>Br,_multipleOf:()=>Bn,_nan:()=>Yf,_nanoid:()=>ec,_nativeEnum:()=>m4,_negative:()=>hc,_never:()=>Wf,_nonnegative:()=>vc,_nonoptional:()=>y4,_nonpositive:()=>gc,_normalize:()=>ho,_null:()=>Zf,_nullable:()=>v4,_number:()=>zf,_optional:()=>g4,_overwrite:()=>Cr,_parse:()=>to,_parseAsync:()=>ro,_pipe:()=>k4,_positive:()=>fc,_promise:()=>E4,_property:()=>bc,_readonly:()=>_4,_record:()=>c4,_refine:()=>th,_regex:()=>so,_safeDecode:()=>Sl,_safeDecodeAsync:()=>Il,_safeEncode:()=>$l,_safeEncodeAsync:()=>El,_safeParse:()=>no,_safeParseAsync:()=>io,_set:()=>d4,_size:()=>xi,_slugify:()=>yo,_startsWith:()=>po,_string:()=>wf,_stringFormat:()=>xo,_stringbool:()=>oh,_success:()=>x4,_superRefine:()=>rh,_symbol:()=>Ff,_templateLiteral:()=>$4,_toLowerCase:()=>vo,_toUpperCase:()=>bo,_transform:()=>h4,_trim:()=>go,_tuple:()=>l4,_uint32:()=>Pf,_uint64:()=>Vf,_ulid:()=>nc,_undefined:()=>Bf,_union:()=>i4,_unknown:()=>Kf,_uppercase:()=>co,_url:()=>ja,_uuid:()=>Jl,_uuidv4:()=>ql,_uuidv6:()=>Yl,_uuidv7:()=>Xl,_void:()=>Gf,_xid:()=>ic,_xor:()=>o4,clone:()=>Kt,config:()=>yt,createStandardJSONSchemaMethod:()=>wo,createToJSONSchemaMethod:()=>ah,decode:()=>EI,decodeAsync:()=>TI,describe:()=>nh,encode:()=>SI,encodeAsync:()=>II,extractDefs:()=>Kn,finalize:()=>Wn,flattenError:()=>Ia,formatError:()=>Ta,globalConfig:()=>hi,globalRegistry:()=>Ot,initializeContext:()=>Hn,isValidBase64:()=>$m,isValidBase64URL:()=>Sy,isValidJWT:()=>Ey,locales:()=>Ra,meta:()=>ih,parse:()=>bl,parseAsync:()=>yl,prettifyError:()=>rp,process:()=>Qe,regexes:()=>ur,registry:()=>Wl,safeDecode:()=>NI,safeDecodeAsync:()=>CI,safeEncode:()=>zI,safeEncodeAsync:()=>AI,safeParse:()=>ip,safeParseAsync:()=>op,toDotPath:()=>iy,toJSONSchema:()=>kc,treeifyError:()=>tp,util:()=>Q,version:()=>tm});var pr=O(()=>{gi();ap();np();ff();Ol();rm();ve();Nl();bf();Ma();em();Ew();La();Va();Iw();zw()});var $c={};Nr($c,{endsWith:()=>mo,gt:()=>Fr,gte:()=>Gt,includes:()=>uo,length:()=>ki,lowercase:()=>lo,lt:()=>Vr,lte:()=>dr,maxLength:()=>wi,maxSize:()=>Zn,mime:()=>fo,minLength:()=>hn,minSize:()=>Br,multipleOf:()=>Bn,negative:()=>hc,nonnegative:()=>vc,nonpositive:()=>gc,normalize:()=>ho,overwrite:()=>Cr,positive:()=>fc,property:()=>bc,regex:()=>so,size:()=>xi,slugify:()=>yo,startsWith:()=>po,toLowerCase:()=>vo,toUpperCase:()=>bo,trim:()=>go,uppercase:()=>co});var Sc=O(()=>{pr()});var ko={};Nr(ko,{ZodISODate:()=>Ic,ZodISODateTime:()=>Ec,ZodISODuration:()=>zc,ZodISOTime:()=>Tc,date:()=>Hh,datetime:()=>Zh,duration:()=>Wh,time:()=>Kh});function Zh(e){return Sf(Ec,e)}function Hh(e){return Ef(Ic,e)}function Kh(e){return If(Tc,e)}function Wh(e){return Tf(zc,e)}var Ec,Ic,Tc,zc,Fa=O(()=>{pr();Za();Ec=E("ZodISODateTime",(e,t)=>{hm.init(e,t),it.init(e,t)});Ic=E("ZodISODate",(e,t)=>{gm.init(e,t),it.init(e,t)});Tc=E("ZodISOTime",(e,t)=>{vm.init(e,t),it.init(e,t)});zc=E("ZodISODuration",(e,t)=>{bm.init(e,t),it.init(e,t)})});var Nw,z4,ar,Gh=O(()=>{pr();pr();ve();Nw=(e,t)=>{Ea.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ta(e,n)},flatten:{value:n=>Ia(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Xi,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Xi,2)}},isEmpty:{get(){return e.issues.length===0}}})},z4=E("ZodError",Nw),ar=E("ZodError",Nw,{Parent:Error})});var Jh,qh,Yh,Xh,Qh,eg,tg,rg,ng,ig,og,ag,sg=O(()=>{pr();Gh();Jh=to(ar),qh=ro(ar),Yh=no(ar),Xh=io(ar),Qh=xl(ar),eg=wl(ar),tg=kl(ar),rg=_l(ar),ng=$l(ar),ig=Sl(ar),og=El(ar),ag=Il(ar)});var Ba={};Nr(Ba,{ZodAny:()=>hg,ZodArray:()=>yg,ZodBase64:()=>Hc,ZodBase64URL:()=>Kc,ZodBigInt:()=>zo,ZodBigIntFormat:()=>Jc,ZodBoolean:()=>To,ZodCIDRv4:()=>Bc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Rc,ZodCUID2:()=>Mc,ZodCatch:()=>Vg,ZodCodec:()=>rs,ZodCustom:()=>ns,ZodCustomStringFormat:()=>Eo,ZodDate:()=>Ya,ZodDefault:()=>Pg,ZodDiscriminatedUnion:()=>wg,ZodE164:()=>Wc,ZodEmail:()=>Oc,ZodEmoji:()=>Dc,ZodEnum:()=>$o,ZodExactOptional:()=>Cg,ZodFile:()=>Ng,ZodFunction:()=>Yg,ZodGUID:()=>Ka,ZodIPv4:()=>Vc,ZodIPv6:()=>Fc,ZodIntersection:()=>kg,ZodJWT:()=>Gc,ZodKSUID:()=>Lc,ZodLazy:()=>Gg,ZodLiteral:()=>zg,ZodMAC:()=>lg,ZodMap:()=>Ig,ZodNaN:()=>Bg,ZodNanoID:()=>Pc,ZodNever:()=>vg,ZodNonOptional:()=>tu,ZodNull:()=>mg,ZodNullable:()=>Dg,ZodNumber:()=>Io,ZodNumberFormat:()=>$i,ZodObject:()=>Qa,ZodOptional:()=>eu,ZodPipe:()=>ts,ZodPrefault:()=>Mg,ZodPreprocess:()=>Zg,ZodPromise:()=>qg,ZodReadonly:()=>Hg,ZodRecord:()=>_o,ZodSet:()=>Tg,ZodString:()=>So,ZodStringFormat:()=>it,ZodSuccess:()=>Lg,ZodSymbol:()=>dg,ZodTemplateLiteral:()=>Wg,ZodTransform:()=>Ag,ZodTuple:()=>$g,ZodType:()=>ze,ZodULID:()=>Uc,ZodURL:()=>qa,ZodUUID:()=>Zr,ZodUndefined:()=>pg,ZodUnion:()=>es,ZodUnknown:()=>gg,ZodVoid:()=>bg,ZodXID:()=>jc,ZodXor:()=>xg,_ZodString:()=>Cc,_default:()=>Rg,_function:()=>Uk,any:()=>hk,array:()=>Xa,base64:()=>Xw,base64url:()=>Qw,bigint:()=>uk,boolean:()=>ug,catch:()=>Fg,check:()=>jk,cidrv4:()=>qw,cidrv6:()=>Yw,codec:()=>Dk,cuid:()=>Fw,cuid2:()=>Bw,custom:()=>Lk,date:()=>vk,describe:()=>Vk,discriminatedUnion:()=>_k,e164:()=>ek,email:()=>Cw,emoji:()=>Lw,enum:()=>Xc,exactOptional:()=>Og,file:()=>Nk,float32:()=>ak,float64:()=>sk,function:()=>Uk,guid:()=>Ow,hash:()=>ok,hex:()=>ik,hostname:()=>nk,httpUrl:()=>jw,instanceof:()=>Bk,int:()=>Nc,int32:()=>lk,int64:()=>dk,intersection:()=>_g,invertCodec:()=>Pk,ipv4:()=>Ww,ipv6:()=>Jw,json:()=>Hk,jwt:()=>tk,keyof:()=>bk,ksuid:()=>Kw,lazy:()=>Jg,literal:()=>zk,looseObject:()=>wk,looseRecord:()=>Sk,mac:()=>Gw,map:()=>Ek,meta:()=>Fk,nan:()=>Ok,nanoid:()=>Vw,nativeEnum:()=>Tk,never:()=>qc,nonoptional:()=>jg,null:()=>fg,nullable:()=>Ga,nullish:()=>Ak,number:()=>cg,object:()=>yk,optional:()=>Wa,partialRecord:()=>$k,pipe:()=>Ac,prefault:()=>Ug,preprocess:()=>Kk,promise:()=>Mk,readonly:()=>Kg,record:()=>Eg,refine:()=>Xg,set:()=>Ik,strictObject:()=>xk,string:()=>Ha,stringFormat:()=>rk,stringbool:()=>Zk,success:()=>Ck,superRefine:()=>Qg,symbol:()=>mk,templateLiteral:()=>Rk,transform:()=>Qc,tuple:()=>Sg,uint32:()=>ck,uint64:()=>pk,ulid:()=>Zw,undefined:()=>fk,union:()=>Yc,unknown:()=>_i,url:()=>Uw,uuid:()=>Dw,uuidv4:()=>Pw,uuidv6:()=>Rw,uuidv7:()=>Mw,void:()=>gk,xid:()=>Hw,xor:()=>kk});function Ja(e,t,n){let i=Object.getPrototypeOf(e),r=Aw.get(i);if(r||(r=new Set,Aw.set(i,r)),!r.has(t)){r.add(t);for(let o in n){let a=n[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}function Ha(e){return wf(So,e)}function Cw(e){return Gl(Oc,e)}function Ow(e){return Ua(Ka,e)}function Dw(e){return Jl(Zr,e)}function Pw(e){return ql(Zr,e)}function Rw(e){return Yl(Zr,e)}function Mw(e){return Xl(Zr,e)}function Uw(e){return ja(qa,e)}function jw(e){return ja(qa,{protocol:ur.httpProtocol,hostname:ur.domain,...Q.normalizeParams(e)})}function Lw(e){return Ql(Dc,e)}function Vw(e){return ec(Pc,e)}function Fw(e){return tc(Rc,e)}function Bw(e){return rc(Mc,e)}function Zw(e){return nc(Uc,e)}function Hw(e){return ic(jc,e)}function Kw(e){return oc(Lc,e)}function Ww(e){return ac(Vc,e)}function Gw(e){return _f(lg,e)}function Jw(e){return sc(Fc,e)}function qw(e){return lc(Bc,e)}function Yw(e){return cc(Zc,e)}function Xw(e){return uc(Hc,e)}function Qw(e){return dc(Kc,e)}function ek(e){return pc(Wc,e)}function tk(e){return mc(Gc,e)}function rk(e,t,n={}){return xo(Eo,e,t,n)}function nk(e){return xo(Eo,"hostname",ur.hostname,e)}function ik(e){return xo(Eo,"hex",ur.hex,e)}function ok(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=ur[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return xo(Eo,i,r,t)}function cg(e){return zf(Io,e)}function Nc(e){return Af($i,e)}function ak(e){return Cf($i,e)}function sk(e){return Of($i,e)}function lk(e){return Df($i,e)}function ck(e){return Pf($i,e)}function ug(e){return Rf(To,e)}function uk(e){return Uf(zo,e)}function dk(e){return Lf(Jc,e)}function pk(e){return Vf(Jc,e)}function mk(e){return Ff(dg,e)}function fk(e){return Bf(pg,e)}function fg(e){return Zf(mg,e)}function hk(){return Hf(hg)}function _i(){return Kf(gg)}function qc(e){return Wf(vg,e)}function gk(e){return Gf(bg,e)}function vk(e){return Jf(Ya,e)}function Xa(e,t){return Xf(yg,e,t)}function bk(e){let t=e._zod.def.shape;return Xc(Object.keys(t))}function yk(e,t){let n={type:"object",shape:e??{},...Q.normalizeParams(t)};return new Qa(n)}function xk(e,t){return new Qa({type:"object",shape:e,catchall:qc(),...Q.normalizeParams(t)})}function wk(e,t){return new Qa({type:"object",shape:e,catchall:_i(),...Q.normalizeParams(t)})}function Yc(e,t){return new es({type:"union",options:e,...Q.normalizeParams(t)})}function kk(e,t){return new xg({type:"union",options:e,inclusive:!1,...Q.normalizeParams(t)})}function _k(e,t,n){return new wg({type:"union",options:t,discriminator:e,...Q.normalizeParams(n)})}function _g(e,t){return new kg({type:"intersection",left:e,right:t})}function Sg(e,t,n){let i=t instanceof Ee,r=i?n:t,o=i?t:null;return new $g({type:"tuple",items:e,rest:o,...Q.normalizeParams(r)})}function Eg(e,t,n){return!t||!t._zod?new _o({type:"record",keyType:Ha(),valueType:e,...Q.normalizeParams(t)}):new _o({type:"record",keyType:e,valueType:t,...Q.normalizeParams(n)})}function $k(e,t,n){let i=Kt(e);return i._zod.values=void 0,new _o({type:"record",keyType:i,valueType:t,...Q.normalizeParams(n)})}function Sk(e,t,n){return new _o({type:"record",keyType:e,valueType:t,mode:"loose",...Q.normalizeParams(n)})}function Ek(e,t,n){return new Ig({type:"map",keyType:e,valueType:t,...Q.normalizeParams(n)})}function Ik(e,t){return new Tg({type:"set",valueType:e,...Q.normalizeParams(t)})}function Xc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new $o({type:"enum",entries:n,...Q.normalizeParams(t)})}function Tk(e,t){return new $o({type:"enum",entries:e,...Q.normalizeParams(t)})}function zk(e,t){return new zg({type:"literal",values:Array.isArray(e)?e:[e],...Q.normalizeParams(t)})}function Nk(e){return Qf(Ng,e)}function Qc(e){return new Ag({type:"transform",transform:e})}function Wa(e){return new eu({type:"optional",innerType:e})}function Og(e){return new Cg({type:"optional",innerType:e})}function Ga(e){return new Dg({type:"nullable",innerType:e})}function Ak(e){return Wa(Ga(e))}function Rg(e,t){return new Pg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Q.shallowClone(t)}})}function Ug(e,t){return new Mg({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Q.shallowClone(t)}})}function jg(e,t){return new tu({type:"nonoptional",innerType:e,...Q.normalizeParams(t)})}function Ck(e){return new Lg({type:"success",innerType:e})}function Fg(e,t){return new Vg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function Ok(e){return Yf(Bg,e)}function Ac(e,t){return new ts({type:"pipe",in:e,out:t})}function Dk(e,t,n){return new rs({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Pk(e){let t=e._zod.def;return new rs({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Kg(e){return new Hg({type:"readonly",innerType:e})}function Rk(e,t){return new Wg({type:"template_literal",parts:e,...Q.normalizeParams(t)})}function Jg(e){return new Gg({type:"lazy",getter:e})}function Mk(e){return new qg({type:"promise",innerType:e})}function Uk(e){return new Yg({type:"function",input:Array.isArray(e?.input)?Sg(e?.input):e?.input??Xa(_i()),output:e?.output??_i()})}function jk(e){let t=new at({check:"custom"});return t._zod.check=e,t}function Lk(e,t){return eh(ns,e??(()=>!0),t)}function Xg(e,t={}){return th(ns,e,t)}function Qg(e,t){return rh(e,t)}function Bk(e,t={}){let n=new ns({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...Q.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Hk(e){let t=Jg(()=>Yc([Ha(e),cg(),ug(),fg(),Xa(t),Eg(Ha(),t)]));return t}function Kk(e,t){return new Zg({type:"pipe",in:Qc(e),out:t})}var Aw,ze,Cc,So,it,Oc,Ka,Zr,qa,Dc,Pc,Rc,Mc,Uc,jc,Lc,Vc,lg,Fc,Bc,Zc,Hc,Kc,Wc,Gc,Eo,Io,$i,To,zo,Jc,dg,pg,mg,hg,gg,vg,bg,Ya,yg,Qa,es,xg,wg,kg,$g,_o,Ig,Tg,$o,zg,Ng,Ag,eu,Cg,Dg,Pg,Mg,tu,Lg,Vg,Bg,ts,rs,Zg,Hg,Wg,Gg,qg,Yg,ns,Vk,Fk,Zk,Za=O(()=>{pr();pr();Va();La();Sc();Fa();sg();Aw=new WeakMap;ze=E("ZodType",(e,t)=>(Ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wo(e,"input"),output:wo(e,"output")}}),e.toJSONSchema=ah(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>Jh(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Yh(e,n,i),e.parseAsync=async(n,i)=>qh(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Xh(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Qh(e,n,i),e.decode=(n,i)=>eg(e,n,i),e.encodeAsync=async(n,i)=>tg(e,n,i),e.decodeAsync=async(n,i)=>rg(e,n,i),e.safeEncode=(n,i)=>ng(e,n,i),e.safeDecode=(n,i)=>ig(e,n,i),e.safeEncodeAsync=async(n,i)=>og(e,n,i),e.safeDecodeAsync=async(n,i)=>ag(e,n,i),Ja(e,"ZodType",{check(...n){let i=this.def;return this.clone(Q.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return Kt(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(Xg(n,i))},superRefine(n,i){return this.check(Qg(n,i))},overwrite(n){return this.check(Cr(n))},optional(){return Wa(this)},exactOptional(){return Og(this)},nullable(){return Ga(this)},nullish(){return Wa(Ga(this))},nonoptional(n){return jg(this,n)},array(){return Xa(this)},or(n){return Yc([this,n])},and(n){return _g(this,n)},transform(n){return Ac(this,Qc(n))},default(n){return Rg(this,n)},prefault(n){return Ug(this,n)},catch(n){return Fg(this,n)},pipe(n){return Ac(this,n)},readonly(){return Kg(this)},describe(n){let i=this.clone();return Ot.add(i,{description:n}),i},meta(...n){if(n.length===0)return Ot.get(this);let i=this.clone();return Ot.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Ot.get(e)?.description},configurable:!0}),e)),Cc=E("_ZodString",(e,t)=>{yi.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>sh(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ja(e,"_ZodString",{regex(...i){return this.check(so(...i))},includes(...i){return this.check(uo(...i))},startsWith(...i){return this.check(po(...i))},endsWith(...i){return this.check(mo(...i))},min(...i){return this.check(hn(...i))},max(...i){return this.check(wi(...i))},length(...i){return this.check(ki(...i))},nonempty(...i){return this.check(hn(1,...i))},lowercase(i){return this.check(lo(i))},uppercase(i){return this.check(co(i))},trim(){return this.check(go())},normalize(...i){return this.check(ho(...i))},toLowerCase(){return this.check(vo())},toUpperCase(){return this.check(bo())},slugify(){return this.check(yo())}})}),So=E("ZodString",(e,t)=>{yi.init(e,t),Cc.init(e,t),e.email=n=>e.check(Gl(Oc,n)),e.url=n=>e.check(ja(qa,n)),e.jwt=n=>e.check(mc(Gc,n)),e.emoji=n=>e.check(Ql(Dc,n)),e.guid=n=>e.check(Ua(Ka,n)),e.uuid=n=>e.check(Jl(Zr,n)),e.uuidv4=n=>e.check(ql(Zr,n)),e.uuidv6=n=>e.check(Yl(Zr,n)),e.uuidv7=n=>e.check(Xl(Zr,n)),e.nanoid=n=>e.check(ec(Pc,n)),e.guid=n=>e.check(Ua(Ka,n)),e.cuid=n=>e.check(tc(Rc,n)),e.cuid2=n=>e.check(rc(Mc,n)),e.ulid=n=>e.check(nc(Uc,n)),e.base64=n=>e.check(uc(Hc,n)),e.base64url=n=>e.check(dc(Kc,n)),e.xid=n=>e.check(ic(jc,n)),e.ksuid=n=>e.check(oc(Lc,n)),e.ipv4=n=>e.check(ac(Vc,n)),e.ipv6=n=>e.check(sc(Fc,n)),e.cidrv4=n=>e.check(lc(Bc,n)),e.cidrv6=n=>e.check(cc(Zc,n)),e.e164=n=>e.check(pc(Wc,n)),e.datetime=n=>e.check(Zh(n)),e.date=n=>e.check(Hh(n)),e.time=n=>e.check(Kh(n)),e.duration=n=>e.check(Wh(n))});it=E("ZodStringFormat",(e,t)=>{nt.init(e,t),Cc.init(e,t)}),Oc=E("ZodEmail",(e,t)=>{am.init(e,t),it.init(e,t)});Ka=E("ZodGUID",(e,t)=>{im.init(e,t),it.init(e,t)});Zr=E("ZodUUID",(e,t)=>{om.init(e,t),it.init(e,t)});qa=E("ZodURL",(e,t)=>{sm.init(e,t),it.init(e,t)});Dc=E("ZodEmoji",(e,t)=>{lm.init(e,t),it.init(e,t)});Pc=E("ZodNanoID",(e,t)=>{cm.init(e,t),it.init(e,t)});Rc=E("ZodCUID",(e,t)=>{um.init(e,t),it.init(e,t)});Mc=E("ZodCUID2",(e,t)=>{dm.init(e,t),it.init(e,t)});Uc=E("ZodULID",(e,t)=>{pm.init(e,t),it.init(e,t)});jc=E("ZodXID",(e,t)=>{mm.init(e,t),it.init(e,t)});Lc=E("ZodKSUID",(e,t)=>{fm.init(e,t),it.init(e,t)});Vc=E("ZodIPv4",(e,t)=>{ym.init(e,t),it.init(e,t)});lg=E("ZodMAC",(e,t)=>{wm.init(e,t),it.init(e,t)});Fc=E("ZodIPv6",(e,t)=>{xm.init(e,t),it.init(e,t)});Bc=E("ZodCIDRv4",(e,t)=>{km.init(e,t),it.init(e,t)});Zc=E("ZodCIDRv6",(e,t)=>{_m.init(e,t),it.init(e,t)});Hc=E("ZodBase64",(e,t)=>{Sm.init(e,t),it.init(e,t)});Kc=E("ZodBase64URL",(e,t)=>{Em.init(e,t),it.init(e,t)});Wc=E("ZodE164",(e,t)=>{Im.init(e,t),it.init(e,t)});Gc=E("ZodJWT",(e,t)=>{Tm.init(e,t),it.init(e,t)});Eo=E("ZodCustomStringFormat",(e,t)=>{zm.init(e,t),it.init(e,t)});Io=E("ZodNumber",(e,t)=>{Ul.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>lh(e,i,r,o),Ja(e,"ZodNumber",{gt(i,r){return this.check(Fr(i,r))},gte(i,r){return this.check(Gt(i,r))},min(i,r){return this.check(Gt(i,r))},lt(i,r){return this.check(Vr(i,r))},lte(i,r){return this.check(dr(i,r))},max(i,r){return this.check(dr(i,r))},int(i){return this.check(Nc(i))},safe(i){return this.check(Nc(i))},positive(i){return this.check(Fr(0,i))},nonnegative(i){return this.check(Gt(0,i))},negative(i){return this.check(Vr(0,i))},nonpositive(i){return this.check(dr(0,i))},multipleOf(i,r){return this.check(Bn(i,r))},step(i,r){return this.check(Bn(i,r))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});$i=E("ZodNumberFormat",(e,t)=>{Nm.init(e,t),Io.init(e,t)});To=E("ZodBoolean",(e,t)=>{Ca.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ch(e,n,i,r)});zo=E("ZodBigInt",(e,t)=>{jl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>uh(e,i,r,o),e.gte=(i,r)=>e.check(Gt(i,r)),e.min=(i,r)=>e.check(Gt(i,r)),e.gt=(i,r)=>e.check(Fr(i,r)),e.gte=(i,r)=>e.check(Gt(i,r)),e.min=(i,r)=>e.check(Gt(i,r)),e.lt=(i,r)=>e.check(Vr(i,r)),e.lte=(i,r)=>e.check(dr(i,r)),e.max=(i,r)=>e.check(dr(i,r)),e.positive=i=>e.check(Fr(BigInt(0),i)),e.negative=i=>e.check(Vr(BigInt(0),i)),e.nonpositive=i=>e.check(dr(BigInt(0),i)),e.nonnegative=i=>e.check(Gt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Bn(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});Jc=E("ZodBigIntFormat",(e,t)=>{Am.init(e,t),zo.init(e,t)});dg=E("ZodSymbol",(e,t)=>{Cm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dh(e,n,i,r)});pg=E("ZodUndefined",(e,t)=>{Om.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mh(e,n,i,r)});mg=E("ZodNull",(e,t)=>{Dm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ph(e,n,i,r)});hg=E("ZodAny",(e,t)=>{Pm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gh(e,n,i,r)});gg=E("ZodUnknown",(e,t)=>{Rm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vh(e,n,i,r)});vg=E("ZodNever",(e,t)=>{Mm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hh(e,n,i,r)});bg=E("ZodVoid",(e,t)=>{Um.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fh(e,n,i,r)});Ya=E("ZodDate",(e,t)=>{jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>bh(e,i,r,o),e.min=(i,r)=>e.check(Gt(i,r)),e.max=(i,r)=>e.check(dr(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});yg=E("ZodArray",(e,t)=>{Lm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nh(e,n,i,r),e.element=t.element,Ja(e,"ZodArray",{min(n,i){return this.check(hn(n,i))},nonempty(n){return this.check(hn(1,n))},max(n,i){return this.check(wi(n,i))},length(n,i){return this.check(ki(n,i))},unwrap(){return this.element}})});Qa=E("ZodObject",(e,t)=>{Vm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ah(e,n,i,r),Q.defineLazy(e,"shape",()=>t.shape),Ja(e,"ZodObject",{keyof(){return Xc(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:_i()})},loose(){return this.clone({...this._zod.def,catchall:_i()})},strict(){return this.clone({...this._zod.def,catchall:qc()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Q.extend(this,n)},safeExtend(n){return Q.safeExtend(this,n)},merge(n){return Q.merge(this,n)},pick(n){return Q.pick(this,n)},omit(n){return Q.omit(this,n)},partial(...n){return Q.partial(eu,this,n[0])},required(...n){return Q.required(tu,this,n[0])}})});es=E("ZodUnion",(e,t)=>{Oa.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xc(e,n,i,r),e.options=t.options});xg=E("ZodXor",(e,t)=>{es.init(e,t),Fm.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xc(e,n,i,r),e.options=t.options});wg=E("ZodDiscriminatedUnion",(e,t)=>{es.init(e,t),Bm.init(e,t)});kg=E("ZodIntersection",(e,t)=>{Zm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ch(e,n,i,r)});$g=E("ZodTuple",(e,t)=>{Ll.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oh(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});_o=E("ZodRecord",(e,t)=>{Hm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dh(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});Ig=E("ZodMap",(e,t)=>{Km.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Th(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Br(...n)),e.nonempty=n=>e.check(Br(1,n)),e.max=(...n)=>e.check(Zn(...n)),e.size=(...n)=>e.check(xi(...n))});Tg=E("ZodSet",(e,t)=>{Wm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zh(e,n,i,r),e.min=(...n)=>e.check(Br(...n)),e.nonempty=n=>e.check(Br(1,n)),e.max=(...n)=>e.check(Zn(...n)),e.size=(...n)=>e.check(xi(...n))});$o=E("ZodEnum",(e,t)=>{Gm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>yh(e,i,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new $o({...t,checks:[],...Q.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new $o({...t,checks:[],...Q.normalizeParams(r),entries:o})}});zg=E("ZodLiteral",(e,t)=>{Jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xh(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});Ng=E("ZodFile",(e,t)=>{qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_h(e,n,i,r),e.min=(n,i)=>e.check(Br(n,i)),e.max=(n,i)=>e.check(Zn(n,i)),e.mime=(n,i)=>e.check(fo(Array.isArray(n)?n:[n],i))});Ag=E("ZodTransform",(e,t)=>{Ym.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ih(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Un(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Q.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Q.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});eu=E("ZodOptional",(e,t)=>{Vl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Cg=E("ZodExactOptional",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Dg=E("ZodNullable",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ph(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Pg=E("ZodDefault",(e,t)=>{ef.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});Mg=E("ZodPrefault",(e,t)=>{tf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Uh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});tu=E("ZodNonOptional",(e,t)=>{rf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Lg=E("ZodSuccess",(e,t)=>{nf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$h(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Vg=E("ZodCatch",(e,t)=>{of.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});Bg=E("ZodNaN",(e,t)=>{af.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wh(e,n,i,r)});ts=E("ZodPipe",(e,t)=>{Fl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lh(e,n,i,r),e.in=t.in,e.out=t.out});rs=E("ZodCodec",(e,t)=>{ts.init(e,t),Da.init(e,t)});Zg=E("ZodPreprocess",(e,t)=>{ts.init(e,t),sf.init(e,t)}),Hg=E("ZodReadonly",(e,t)=>{lf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Wg=E("ZodTemplateLiteral",(e,t)=>{cf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kh(e,n,i,r)});Gg=E("ZodLazy",(e,t)=>{pf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bh(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});qg=E("ZodPromise",(e,t)=>{df.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Yg=E("ZodFunction",(e,t)=>{uf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Eh(e,n,i,r)});ns=E("ZodCustom",(e,t)=>{mf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sh(e,n,i,r)});Vk=nh,Fk=ih;Zk=(...e)=>oh({Codec:rs,Boolean:To,String:So},...e)});function C4(e){yt({customError:e})}function O4(){return yt().customError}var A4,ev,Wk=O(()=>{pr();A4={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};ev||(ev={})});function P4(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function R4(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function Gk(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return pe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return pe.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=R4(r,t),a=Lt(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return pe.null();if(r.length===0)return pe.never();if(r.length===1)return pe.literal(r[0]);if(r.every(a=>typeof a=="string"))return pe.enum(r);let o=r.map(a=>pe.literal(a));return o.length<2?o[0]:pe.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return pe.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return Gk(a,t)});return r.length===0?pe.never():r.length===1?r[0]:pe.union(r)}if(!n)return pe.any();let i;switch(n){case"string":{let r=pe.string();if(e.format){let o=e.format;o==="email"?r=r.check(pe.email()):o==="uri"||o==="uri-reference"?r=r.check(pe.url()):o==="uuid"||o==="guid"?r=r.check(pe.uuid()):o==="date-time"?r=r.check(pe.iso.datetime()):o==="date"?r=r.check(pe.iso.date()):o==="time"?r=r.check(pe.iso.time()):o==="duration"?r=r.check(pe.iso.duration()):o==="ipv4"?r=r.check(pe.ipv4()):o==="ipv6"?r=r.check(pe.ipv6()):o==="mac"?r=r.check(pe.mac()):o==="cidr"?r=r.check(pe.cidrv4()):o==="cidr-v6"?r=r.check(pe.cidrv6()):o==="base64"?r=r.check(pe.base64()):o==="base64url"?r=r.check(pe.base64url()):o==="e164"?r=r.check(pe.e164()):o==="jwt"?r=r.check(pe.jwt()):o==="emoji"?r=r.check(pe.emoji()):o==="nanoid"?r=r.check(pe.nanoid()):o==="cuid"?r=r.check(pe.cuid()):o==="cuid2"?r=r.check(pe.cuid2()):o==="ulid"?r=r.check(pe.ulid()):o==="xid"?r=r.check(pe.xid()):o==="ksuid"&&(r=r.check(pe.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?pe.number().int():pe.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=pe.boolean();break}case"null":{i=pe.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let d=Lt(u,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Lt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Lt(e.additionalProperties,t):pe.any();if(Object.keys(r).length===0){i=pe.record(c,u);break}let d=pe.object(r).passthrough(),p=pe.looseRecord(c,u);i=pe.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),d=[];for(let m of u){let f=Lt(c[m],t),S=pe.string().regex(new RegExp(m));d.push(pe.looseRecord(S,f))}let p=[];if(Object.keys(r).length>0&&p.push(pe.object(r).passthrough()),p.push(...d),p.length===0)i=pe.object({}).passthrough();else if(p.length===1)i=p[0];else{let m=pe.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)m=pe.intersection(m,p[f]);i=m}break}let s=pe.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(Lt(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>Lt(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Lt(o,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Lt(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Lt(e.additionalItems,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(o!==void 0){let a=Lt(o,t),s=pe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${n}`)}return i}function Lt(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n=Gk(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Lt(u,t)),c=pe.union(s);n=i?pe.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Lt(u,t)),c=pe.xor(s);n=i?pe.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:pe.any();else{let s=i?n:Lt(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=pe.intersection(s,Lt(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=pe.nullable(n)),e.readOnly===!0&&(n=pe.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))D4.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function Jk(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=P4(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ot};return Lt(n,o)}var pe,D4,qk=O(()=>{Ma();Sc();Fa();Za();pe={...Ba,...$c,iso:ko},D4=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var tv={};Nr(tv,{bigint:()=>L4,boolean:()=>j4,date:()=>V4,number:()=>U4,string:()=>M4});function M4(e){return kf(So,e)}function U4(e){return Nf(Io,e)}function j4(e){return Mf(To,e)}function L4(e){return jf(zo,e)}function V4(e){return qf(Ya,e)}var Yk=O(()=>{pr();Za()});var l={};Nr(l,{$brand:()=>Bd,$input:()=>xf,$output:()=>yf,NEVER:()=>Fd,TimePrecision:()=>$f,ZodAny:()=>hg,ZodArray:()=>yg,ZodBase64:()=>Hc,ZodBase64URL:()=>Kc,ZodBigInt:()=>zo,ZodBigIntFormat:()=>Jc,ZodBoolean:()=>To,ZodCIDRv4:()=>Bc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Rc,ZodCUID2:()=>Mc,ZodCatch:()=>Vg,ZodCodec:()=>rs,ZodCustom:()=>ns,ZodCustomStringFormat:()=>Eo,ZodDate:()=>Ya,ZodDefault:()=>Pg,ZodDiscriminatedUnion:()=>wg,ZodE164:()=>Wc,ZodEmail:()=>Oc,ZodEmoji:()=>Dc,ZodEnum:()=>$o,ZodError:()=>z4,ZodExactOptional:()=>Cg,ZodFile:()=>Ng,ZodFirstPartyTypeKind:()=>ev,ZodFunction:()=>Yg,ZodGUID:()=>Ka,ZodIPv4:()=>Vc,ZodIPv6:()=>Fc,ZodISODate:()=>Ic,ZodISODateTime:()=>Ec,ZodISODuration:()=>zc,ZodISOTime:()=>Tc,ZodIntersection:()=>kg,ZodIssueCode:()=>A4,ZodJWT:()=>Gc,ZodKSUID:()=>Lc,ZodLazy:()=>Gg,ZodLiteral:()=>zg,ZodMAC:()=>lg,ZodMap:()=>Ig,ZodNaN:()=>Bg,ZodNanoID:()=>Pc,ZodNever:()=>vg,ZodNonOptional:()=>tu,ZodNull:()=>mg,ZodNullable:()=>Dg,ZodNumber:()=>Io,ZodNumberFormat:()=>$i,ZodObject:()=>Qa,ZodOptional:()=>eu,ZodPipe:()=>ts,ZodPrefault:()=>Mg,ZodPreprocess:()=>Zg,ZodPromise:()=>qg,ZodReadonly:()=>Hg,ZodRealError:()=>ar,ZodRecord:()=>_o,ZodSet:()=>Tg,ZodString:()=>So,ZodStringFormat:()=>it,ZodSuccess:()=>Lg,ZodSymbol:()=>dg,ZodTemplateLiteral:()=>Wg,ZodTransform:()=>Ag,ZodTuple:()=>$g,ZodType:()=>ze,ZodULID:()=>Uc,ZodURL:()=>qa,ZodUUID:()=>Zr,ZodUndefined:()=>pg,ZodUnion:()=>es,ZodUnknown:()=>gg,ZodVoid:()=>bg,ZodXID:()=>jc,ZodXor:()=>xg,_ZodString:()=>Cc,_default:()=>Rg,_function:()=>Uk,any:()=>hk,array:()=>Xa,base64:()=>Xw,base64url:()=>Qw,bigint:()=>uk,boolean:()=>ug,catch:()=>Fg,check:()=>jk,cidrv4:()=>qw,cidrv6:()=>Yw,clone:()=>Kt,codec:()=>Dk,coerce:()=>tv,config:()=>yt,core:()=>gn,cuid:()=>Fw,cuid2:()=>Bw,custom:()=>Lk,date:()=>vk,decode:()=>eg,decodeAsync:()=>rg,describe:()=>Vk,discriminatedUnion:()=>_k,e164:()=>ek,email:()=>Cw,emoji:()=>Lw,encode:()=>Qh,encodeAsync:()=>tg,endsWith:()=>mo,enum:()=>Xc,exactOptional:()=>Og,file:()=>Nk,flattenError:()=>Ia,float32:()=>ak,float64:()=>sk,formatError:()=>Ta,fromJSONSchema:()=>Jk,function:()=>Uk,getErrorMap:()=>O4,globalRegistry:()=>Ot,gt:()=>Fr,gte:()=>Gt,guid:()=>Ow,hash:()=>ok,hex:()=>ik,hostname:()=>nk,httpUrl:()=>jw,includes:()=>uo,instanceof:()=>Bk,int:()=>Nc,int32:()=>lk,int64:()=>dk,intersection:()=>_g,invertCodec:()=>Pk,ipv4:()=>Ww,ipv6:()=>Jw,iso:()=>ko,json:()=>Hk,jwt:()=>tk,keyof:()=>bk,ksuid:()=>Kw,lazy:()=>Jg,length:()=>ki,literal:()=>zk,locales:()=>Ra,looseObject:()=>wk,looseRecord:()=>Sk,lowercase:()=>lo,lt:()=>Vr,lte:()=>dr,mac:()=>Gw,map:()=>Ek,maxLength:()=>wi,maxSize:()=>Zn,meta:()=>Fk,mime:()=>fo,minLength:()=>hn,minSize:()=>Br,multipleOf:()=>Bn,nan:()=>Ok,nanoid:()=>Vw,nativeEnum:()=>Tk,negative:()=>hc,never:()=>qc,nonnegative:()=>vc,nonoptional:()=>jg,nonpositive:()=>gc,normalize:()=>ho,null:()=>fg,nullable:()=>Ga,nullish:()=>Ak,number:()=>cg,object:()=>yk,optional:()=>Wa,overwrite:()=>Cr,parse:()=>Jh,parseAsync:()=>qh,partialRecord:()=>$k,pipe:()=>Ac,positive:()=>fc,prefault:()=>Ug,preprocess:()=>Kk,prettifyError:()=>rp,promise:()=>Mk,property:()=>bc,readonly:()=>Kg,record:()=>Eg,refine:()=>Xg,regex:()=>so,regexes:()=>ur,registry:()=>Wl,safeDecode:()=>ig,safeDecodeAsync:()=>ag,safeEncode:()=>ng,safeEncodeAsync:()=>og,safeParse:()=>Yh,safeParseAsync:()=>Xh,set:()=>Ik,setErrorMap:()=>C4,size:()=>xi,slugify:()=>yo,startsWith:()=>po,strictObject:()=>xk,string:()=>Ha,stringFormat:()=>rk,stringbool:()=>Zk,success:()=>Ck,superRefine:()=>Qg,symbol:()=>mk,templateLiteral:()=>Rk,toJSONSchema:()=>kc,toLowerCase:()=>vo,toUpperCase:()=>bo,transform:()=>Qc,treeifyError:()=>tp,trim:()=>go,tuple:()=>Sg,uint32:()=>ck,uint64:()=>pk,ulid:()=>Zw,undefined:()=>fk,union:()=>Yc,unknown:()=>_i,uppercase:()=>co,url:()=>Uw,util:()=>Q,uuid:()=>Dw,uuidv4:()=>Pw,uuidv6:()=>Rw,uuidv7:()=>Mw,void:()=>gk,xid:()=>Hw,xor:()=>kk});var rv=O(()=>{pr();Za();Sc();Gh();sg();Wk();pr();hf();pr();Va();qk();bf();Fa();Fa();Yk();yt(Bl())});var Oe=O(()=>{rv();rv()});var F4,vn,ru=O(()=>{"use strict";Oe();F4=l.enum(["briefing","checkin","closeout"]),vn=l.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/)});function Z4(e){let t=e.toLowerCase().replace(/[^a-z0-9]/g,"");if(Xk.includes(t))return!0;let n=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);return Xk.some(i=>n.includes(i))}function t_(e,t=0){if(t>4||!(e instanceof Error))return;let n=e.code;return typeof n=="string"&&H4.has(n)?{code:n,error:e}:t_(e.cause,t+1)}function K4({code:e,error:t}){if(!(!e_.has(e)||!t.message.includes(e)||t.message.length>240))return t.message.match(/(?:localhost|(?:[a-z0-9-]+\.)+[a-z0-9-]+|\d{1,3}(?:\.\d{1,3}){3}|\[[a-f0-9:]+\])(?::\d{1,5})?/iu)?.[0]}function Qk(e){return e?e.split(`
|
|
66
66
|
`).find(n=>(n.includes("/src/")||n.includes("/packages/"))&&!n.includes("node_modules"))?.trim():void 0}function yn(e){return new Co({},e)}var Ao,bn,iu,No,B4,nu,Xk,e_,H4,Co,Or,W4,G4,J4,q4,Y4,nv=O(()=>{"use strict";Ao=globalThis.process,bn=typeof window<"u",iu=typeof Ao<"u"&&!bn,No=bn?typeof window<"u"&&window.location&&!window.location.hostname.includes("localhost"):iu&&typeof Ao<"u"&&Ao.env?.NODE_ENV==="production",B4=!No,nu={error:{priority:50,color:"#FF0000",nodeColor:"\x1B[31m"},warn:{priority:40,color:"#FFA500",nodeColor:"\x1B[33m"},info:{priority:30,color:"#00ABFF",nodeColor:"\x1B[36m"},debug:{priority:20,color:"#00BD0C",nodeColor:"\x1B[32m"},trace:{priority:10,color:"#5233FF",nodeColor:"\x1B[35m"}},Xk=["password","token","secret","apikey","authorization","cookie"];e_=new Set(["CONNECT_TIMEOUT","ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENOTFOUND","EHOSTUNREACH","EPIPE"]),H4=new Set([...e_,"CONNECTION_CLOSED","53300"]);Co=class e{constructor(t={},n){this.enabledInBrowser=!1,this.context=n,this.settings={enabled:t.enabled??!0,minLevel:t.minLevel??this.getDefaultLevel(),timestamps:t.timestamps??!0},bn&&this.initBrowserLogging()}getDefaultLevel(){if(iu&&typeof Ao<"u"&&Ao.env?.LOG_LEVEL)return Ao.env.LOG_LEVEL;if(bn&&typeof localStorage<"u"&&typeof localStorage.getItem=="function"){let t=localStorage.getItem("PAGELINES_LOG_LEVEL");if(t)return t}return"info"}initBrowserLogging(){if(!bn)return;let n=typeof localStorage?.getItem=="function"&&localStorage.getItem("PAGELINES_LOG")==="true",i=window.location?.hostname||"";this.enabledInBrowser=B4||n||i==="localhost"||i.includes("127.0.0.1"),No&&!n&&!e.hasShownHelp&&(console.log("%cPageLines Logger (disabled in production)","color: #888; font-size: 12px"),console.log('%cTo enable: localStorage.setItem("PAGELINES_LOG", "true")',"color: #888; font-size: 11px"),e.hasShownHelp=!0)}shouldLog(t){if(!this.settings.enabled||bn&&!this.enabledInBrowser)return!1;let n=nu[t].priority,i=nu[this.settings.minLevel].priority;return n>=i}formatTimestamp(){return new Date().toLocaleTimeString("en-GB",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}formatISOTimestamp(){return new Date().toISOString()}redactSensitive(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(i=>this.redactSensitive(i));let n={};for(let[i,r]of Object.entries(t))Z4(i)?n[i]="[REDACTED]":typeof r=="object"&&r!==null?n[i]=this.redactSensitive(r):n[i]=r;return n}formatData(t,n=5,i=0){if(i>=n)return"[Max Depth]";if(t==null)return t;if(t instanceof Error){let r=t_(t);if(r){let a={name:t.name,code:r.code},s=K4(r);s&&(a.endpoint=s);let c=Qk(t.stack)??Qk(t.cause?.stack);return c&&(a.at=c),this.redactSensitive(a)}let o={name:t.name,message:t.message,stack:No?t.stack?.split(`
|
|
67
67
|
`).slice(0,3).join(`
|
|
68
|
-
`):t.stack};for(let[a,s]of Object.entries(t))o[a]=this.formatData(s,n,i+1);return"cause"in t&&(o.cause=this.formatData(t.cause,n,i+1)),this.redactSensitive(o)}if(t instanceof Date)return t.toISOString();if(typeof t!="object")return t;if(Array.isArray(t))return t.length>20&&No?`Array(${t.length}) [${t.slice(0,3).map(r=>this.formatData(r,n,i+1)).join(", ")}, ...]`:t.map(r=>this.formatData(r,n,i+1));try{let r={},o=Object.entries(t),a=No?50:200;for(let[s,c]of o.slice(0,a))r[s]=this.formatData(c,n,i+1);return o.length>a&&(r["..."]=`${o.length-a} more properties`),this.redactSensitive(r)}catch{return"[Unserializable]"}}logToBrowser(t){if(!bn||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=nu[n],u=`[${r||this.context||"www"}] ${n.toUpperCase()}:`,d=`color: ${s.color}; font-weight: bold;`;o!==void 0?console[n](`%c${u}`,d,i,this.formatData(o)):console[n](`%c${u}`,d,i),a&&(a instanceof Error?console.error(a):console.error("Error details:",a))}logToNode(t){if(!iu||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=r||this.context||"www";if(No){let c={timestamp:this.formatISOTimestamp(),level:n.toUpperCase(),context:s,msg:i,message:i};o!==void 0&&(c.data=this.formatData(o)),a!==void 0&&(c.error=this.formatData(a));let u=JSON.stringify(c);n==="trace"?console.log(u):console[n](u)}else{let c=nu[n],u=this.formatTimestamp(),d="\x1B[0m",p="\x1B[2m",m=c.nodeColor||"",f=`${p}${u}${d} ${m}${n.toUpperCase()} (${s}):${d} ${i}`;console[n](f),o!==void 0&&console.log(JSON.stringify(this.formatData(o),null,2)),a&&(a instanceof Error?(console.error(`\x1B[31mError:${d}`,a.message),a.stack&&console.error(`\x1B[90m${a.stack}${d}`)):console.error("Error:",a))}}log(t){bn?this.logToBrowser(t):iu&&this.logToNode(t)}error(t,n){this.log({level:"error",description:t,data:n,context:this.context})}warn(t,n){this.log({level:"warn",description:t,data:n,context:this.context})}info(t,n){this.log({level:"info",description:t,data:n,context:this.context})}debug(t,n){this.log({level:"debug",description:t,data:n,context:this.context})}trace(t,n){this.log({level:"trace",description:t,data:n,context:this.context})}isEnabled(){return bn?this.enabledInBrowser:!0}setLevel(t){this.settings.minLevel=t}createContextLogger(t){let n=new e(this.settings,t);return{error:(i,r)=>n.error(i,r),warn:(i,r)=>n.warn(i,r),info:(i,r)=>n.info(i,r),debug:(i,r)=>n.debug(i,r),trace:(i,r)=>n.trace(i,r),isEnabled:()=>n.isEnabled(),setLevel:i=>n.setLevel(i)}}};Co.hasShownHelp=!1;Or=new Co,W4=Or.error.bind(Or),G4=Or.warn.bind(Or),J4=Or.info.bind(Or),q4=Or.debug.bind(Or),Y4=Or.trace.bind(Or)});var Hr,iv=O(()=>{"use strict";nv();Hr=class{constructor(t,n){this.objectName=t,this.settings=n,this.logger=yn(t)}}});function ov(e=8){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function is(e={}){let{prefix:t="id_"}=e,n=t.length>=3?t.substring(0,3):t.padEnd(3,"_"),i=Math.floor(Date.now()/1e3).toString(16).padStart(8,"0"),r="";for(let o=0;o<16;o++)r+=Math.floor(Math.random()*16).toString(16);return n+i+r}var r_=O(()=>{"use strict"});function av(e){return n_[e]||n_.blue}var n_,i_=O(()=>{"use strict";n_={green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"}}});function X4(e){return e?{secure:e.protocol==="https:",domain:void 0,path:"/"}:{path:"/"}}var ou,Gn,o_=O(()=>{"use strict";ou=class{constructor(){this.tokenName="auth-token",this.deviceIdName="pl-device-id",this.tokenMaxAge=3600*24*90,this.fallbackStorageKey="token"}currentCookieOptions(){return X4(typeof window>"u"?void 0:window.location)}getCookie(t){if(typeof document>"u")return null;let n=document.cookie.split(";");for(let i of n){let[r,o]=i.trim().split("=");if(r===t)return decodeURIComponent(o||"")}return null}setCookie(t,n,i={}){if(typeof document>"u")return;let{secure:r=!0,sameSite:o="lax",maxAge:a=3600*24*7,domain:s,path:c="/"}=i,u=`${t}=${encodeURIComponent(n)}`;u+=`; Path=${c}`,u+=`; Max-Age=${a}`,u+=`; SameSite=${o}`,r&&(u+="; Secure"),s&&(u+=`; Domain=${s}`),document.cookie=u}removeCookie(t,n={}){this.setCookie(t,"",{...n,maxAge:0})}isLocalStorageFunctional(){return typeof window<"u"&&typeof window.localStorage?.getItem=="function"&&typeof window.localStorage?.setItem=="function"&&typeof window.localStorage?.removeItem=="function"}getAuthToken(){let t=this.getCookie(this.tokenName);if(t)return t;if(this.isLocalStorageFunctional()){let n=window.localStorage.getItem(this.fallbackStorageKey);if(n)return this.setAuthToken(n),window.localStorage.removeItem(this.fallbackStorageKey),n}return null}setAuthToken(t){let n=this.currentCookieOptions();this.setCookie(this.tokenName,t,{secure:n.secure,sameSite:"lax",maxAge:this.tokenMaxAge,domain:n.domain,path:n.path})}removeAuthToken(){let t=this.currentCookieOptions();this.removeCookie(this.tokenName,{domain:t.domain,path:t.path}),this.removeCookie(this.tokenName,{domain:".pagelines.com",path:"/"}),this.isLocalStorageFunctional()&&window.localStorage.removeItem(this.fallbackStorageKey)}getDeviceId(){return this.getCookie(this.deviceIdName)}},Gn=new ou});function sv(e){if(typeof e!="string"||!e.startsWith("/"))return!1;try{return Q4.every(t=>new URL(e,t).origin===t)}catch{return!1}}var Q4,lv=O(()=>{"use strict";Q4=["https://redirect-a.invalid","https://redirect-b.invalid"]});var a_=O(()=>{"use strict"});var s_=O(()=>{"use strict";iv();nv();r_();i_();o_();lv();a_()});var ez,l_,cv,uv=O(()=>{"use strict";Oe();ez=l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),l_=l.object({platform:ez,handle:l.string(),url:l.string().optional()}),cv=l.preprocess(e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object"&&t.platform&&t.handle):e,l.array(l_))});var c_,Si,u_,au,d_,tz,p_,m_,f_,rz,st,h_,g_,v_,b_,y_,x_,nz,xn=O(()=>{"use strict";Oe();c_=["image","audio","video","document"],Si=l.enum(c_),u_=["avatar","cover","general"],au=l.enum(u_),d_=l.enum(["processing","active","failed","deleted"]),tz=l.enum(["low","standard","high"]),p_=l.enum(["jpg","jpeg","png","gif","webp","svg"]),m_=l.enum(["mp4","webm","ogg","mov","avi"]),f_=l.enum(["mp3","wav","ogg","opus","aac","flac","webm","m4a","mp4"]),rz=l.object({mediaId:l.string(),userId:l.string(),orgId:l.string(),agentId:l.string().nullable().optional(),filename:l.string(),mimeType:l.string(),size:l.number(),src:l.string(),alt:l.string().optional(),context:au.default("general"),status:d_.default("processing"),quality:tz.default("standard"),createdAt:l.string().optional(),updatedAt:l.string().optional()}),st=rz.extend({type:Si.optional(),mediaType:Si.optional(),className:l.string().optional(),width:l.number().optional(),height:l.number().optional(),duration:l.number().optional(),blurhash:l.string().optional()}).partial(),h_=l.object({duration:l.number().optional(),thumbnail:l.string().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),g_=l.object({duration:l.number().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),v_=st.extend({mediaType:l.literal("image"),imageFormat:p_.optional()}),b_=st.extend({mediaType:l.literal("video"),videoFormat:m_.optional(),video:h_.optional()}),y_=st.extend({mediaType:l.literal("audio"),audioFormat:f_.optional(),audio:g_.optional()}),x_=st.extend({mediaType:l.literal("document")}),nz=l.discriminatedUnion("mediaType",[v_,b_,y_,x_])});var su,dv=O(()=>{"use strict";Oe();su=l.enum(["xxs","xs","sm","md","lg","xl"])});var pv,mv,os,iz,fv=O(()=>{"use strict";Oe();xn();dv();pv=l.enum(["primary","default","overlay","red","green","indigo","orange"]),mv=l.enum(["ghost","link","outline","solid"]),os=l.object({key:l.string().optional(),label:l.string().optional(),href:l.string().optional(),size:su.optional(),theme:pv.optional(),design:mv.optional(),icon:l.union([l.string(),st]).optional(),iconAfter:l.union([l.string(),st]).optional(),rounding:l.enum(["full","md","lg"]).optional(),loading:l.boolean().optional(),disabled:l.boolean().optional(),tooltip:l.string().optional(),onClick:l.any().optional(),testId:l.string().optional(),target:l.enum(["_blank","_self"]).optional(),type:l.enum(["button","submit","reset"]).optional()}),iz=l.object({buttons:l.array(os).optional(),size:su.optional(),theme:pv.optional(),design:mv.optional()})});var lu,hv=O(()=>{"use strict";lu="$39/month"});var oz,w_,az,wn,gv,Oo=O(()=>{"use strict";Oe();hv();oz=l.enum(["account","error"]),w_=["billing_no_plan","billing_seat_limit","billing_past_due","billing_runaway_cap","billing_budget_reached","billing_demo_spent","agent_deleted","agent_not_deployed","agent_boot_failed","agent_unreachable","agent_wake_timeout","stream_timeout","stream_disconnect","empty_stream","tool_protocol","rate_limit"],az=l.enum(w_),wn=l.object({bucket:oz,code:az,title:l.string(),help:l.string().optional(),actionLabel:l.string(),actionUrl:l.string()}),gv={billing_no_plan:{bucket:"account",title:"Billing needed",help:`Add a payment method to turn live replies back on. Plans start at ${lu} per active assistant, cancel anytime.`,actionLabel:"Open billing",oneLine:`The workspace needs a payment method before this assistant can reply; plans start at ${lu} per active assistant.`},billing_seat_limit:{bucket:"account",title:"Active assistant limit reached",help:"Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",actionLabel:"Open billing",oneLine:"The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."},billing_past_due:{bucket:"account",title:"Assistants paused",help:"Payment is overdue. Fix it and we\u2019ll bring your assistants back online.",actionLabel:"Fix payment",oneLine:"The workspace payment is overdue; its owner must fix it before assistants come back online."},billing_runaway_cap:{bucket:"account",title:"Usage limit reached",help:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",actionLabel:"Contact support",oneLine:"The workspace reached its usage limit; its owner can review billing or contact support."},billing_budget_reached:{bucket:"account",title:"Not enough credits",help:"Your workspace needs more included credits for another reply. Upgrade an assistant or wait for the next billing period.",actionLabel:"Review billing",oneLine:"The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."},billing_demo_spent:{bucket:"account",title:"Demo used up",help:"Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",actionLabel:"Start free trial",oneLine:"This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."},agent_deleted:{bucket:"error",title:"Assistant deleted",help:"This chat is still here, but the assistant can no longer reply.",actionLabel:"",oneLine:"This assistant was deleted. The chat history remains, but it can no longer reply."},agent_not_deployed:{bucket:"error",title:"Assistant asleep",help:"Open the assistant profile to wake it up before chatting.",actionLabel:"Open assistant",oneLine:"This assistant needs to wake up before it can reply."},agent_boot_failed:{bucket:"error",title:"Couldn't wake up",help:"Open the assistant profile to restart it or check what failed.",actionLabel:"Open assistant",oneLine:"This assistant tried to wake up but hit an error."},agent_unreachable:{bucket:"error",title:"Not responding",help:"Open the assistant profile to check status or restart it.",actionLabel:"Open assistant",oneLine:"This assistant is not responding right now; its owner can check its status."},agent_wake_timeout:{bucket:"error",title:"Still waking",help:"Open the assistant profile to check status, or wait a minute and try again.",actionLabel:"Open assistant",oneLine:"This assistant is taking too long to wake up."},stream_timeout:{bucket:"error",title:"Reply too slow",help:"Your assistant took too long to start replying. Try your message again.",actionLabel:"Try again",oneLine:"This assistant took too long to start replying; try the message again."},stream_disconnect:{bucket:"error",title:"Connection lost",help:"The connection dropped while your assistant was replying. Send your message again to retry.",actionLabel:"Try again",oneLine:"The connection dropped while this assistant was replying; try the message again."},empty_stream:{bucket:"error",title:"Empty reply",help:"Your assistant could not generate a reply. Try your message again.",actionLabel:"Try again",oneLine:"This assistant did not return a reply; try the message again."},tool_protocol:{bucket:"error",title:"Tool call failed",help:"Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",actionLabel:"Try again",oneLine:"This assistant tried to use a tool in a format PageLines could not run; try the message again."},rate_limit:{bucket:"error",title:"Slow down",help:"Too many messages at once. Wait a moment, then send your message again.",actionLabel:"Try again",oneLine:"Too many messages arrived at once; wait a moment and try again."}}});function du(e){if(xv(e.operation))return"changing";if(e.blocker?.bucket==="account"&&e.lifecycle!=="running")return"asleep";if(e.operation?.status==="failed")return"stuck";switch(e.lifecycle){case"running":return"awake";case"stopped":return"asleep";case"starting":case"stopping":return"changing";case"degraded":case"unreachable":case"error":return"stuck";case"unknown":return}}function pu(e,t){let n=e.operation,i=sz[e.lifecycle]??"Unknown",r=yv[e.lifecycle]??"grey",o=n?lz[n.kind]??"Working":void 0,a=o?n?.status==="failed"?`${o} failed`:o:i,s=n?n.status==="failed"?"red":"amber":r,c=`${t} \xB7 ${a}`;return{...e,color:s,label:a,tooltip:c}}function xv(e){return e?.status==="running"||e?.status==="coalesced"}var kn,vv,bv,as,cu,k_,yv,__,uu,sz,lz,$_,Jn=O(()=>{"use strict";Oe();Oo();kn=l.enum(["unknown","stopped","starting","running","degraded","unreachable","stopping","error"]),vv=l.enum(["wake","sleep","restart","rebuild","config_apply","setup"]),bv=l.enum(["running","coalesced","failed"]),as=l.object({kind:vv,status:bv,startedAt:l.string().datetime(),detail:l.string().optional()}).strict(),cu=l.object({lifecycle:kn,changedAt:l.string().datetime().optional(),detail:l.string().optional(),blocker:wn.optional(),operation:as.optional()}).strict(),k_=Object.freeze({lifecycle:"unknown"}),yv={running:"green",starting:"amber",stopping:"amber",degraded:"amber",unreachable:"red",error:"red",stopped:"grey",unknown:"grey"},__=l.enum(["awake","asleep","changing","stuck"]),uu={awake:"Awake",asleep:"Asleep",changing:"Changing",stuck:"Stuck"};sz={running:"Online",starting:"Waking up",stopping:"Stopping",degraded:"Slow",unreachable:"Unreachable",error:"Error",stopped:"Asleep",unknown:"Checking"},lz={wake:"Waking up",sleep:"Stopping",restart:"Restarting",rebuild:"Rebuilding",config_apply:"Applying config",setup:"Setting up"};$_=l.enum(["wake","sleep","restart","rebuild","reset-behavior"])});var S_,cz,E_=O(()=>{"use strict";Oe();Jn();fv();xn();S_=l.object({key:l.string().optional(),id:l.string().optional(),label:l.string().optional(),srLabel:l.string().optional(),subLabel:l.string().optional(),value:l.union([l.string(),l.number()]).optional(),description:l.string().optional(),state:__.optional(),count:l.number().optional(),className:l.string().optional(),media:st.optional(),subMedia:st.optional(),cover:st.optional(),icon:st.optional(),iconAfter:st.optional(),subIcon:l.string().optional(),href:l.string().optional(),target:l.enum(["_self","_blank"]).optional(),onClick:l.any().optional(),theme:l.enum(["primary","default"]).optional(),isActive:l.boolean().optional(),isDisabled:l.boolean().optional(),isHidden:l.boolean().optional(),priority:l.number().optional(),testId:l.string().optional(),items:l.array(l.any()).optional(),badges:l.array(os).optional(),meta:l.array(os).optional(),menuItems:l.array(l.any()).optional()}),cz=l.object({title:l.string().optional(),description:l.string().optional(),items:l.array(S_).optional()})});var I_=O(()=>{"use strict"});function Do(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function we(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=ot(i)?gz(i):we(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(ot(e)||Le(e))return e}function gz(e){let t={};return e.replace(hz,"").split(mz).forEach(n=>{if(n){let i=n.split(fz);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function V(e){let t="";if(ot(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){let i=V(e[n]);i&&(t+=i+" ")}else if(Le(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function Lo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ot(t)&&(e.class=V(t)),n&&(e.style=we(n)),e}function vu(e){return!!e||e===""}function bz(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=ds(e[i],t[i]);return n}function ds(e,t){if(e===t)return!0;let n=T_(e),i=T_(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=sr(e),i=sr(t),n||i)return e===t;if(n=xe(e),i=xe(t),n||i)return n&&i?bz(e,t):!1;if(n=Le(e),i=Le(t),n||i){if(!n||!i)return!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!ds(e[a],t[a]))return!1}}return String(e)===String(t)}var qe,Ei,qt,kv,Po,Ro,ut,ss,uz,Ve,xe,Ii,mu,T_,Se,ot,sr,Le,_v,N_,ls,$v,fu,hu,Mo,gu,dz,Et,pz,Kr,Ti,cs,wr,Uo,jo,us,Sv,z_,qn,mz,fz,hz,A_,C_,vz,O_,ce,D_,wv,ps=O(()=>{/**
|
|
68
|
+
`):t.stack};for(let[a,s]of Object.entries(t))o[a]=this.formatData(s,n,i+1);return"cause"in t&&(o.cause=this.formatData(t.cause,n,i+1)),this.redactSensitive(o)}if(t instanceof Date)return t.toISOString();if(typeof t!="object")return t;if(Array.isArray(t))return t.length>20&&No?`Array(${t.length}) [${t.slice(0,3).map(r=>this.formatData(r,n,i+1)).join(", ")}, ...]`:t.map(r=>this.formatData(r,n,i+1));try{let r={},o=Object.entries(t),a=No?50:200;for(let[s,c]of o.slice(0,a))r[s]=this.formatData(c,n,i+1);return o.length>a&&(r["..."]=`${o.length-a} more properties`),this.redactSensitive(r)}catch{return"[Unserializable]"}}logToBrowser(t){if(!bn||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=nu[n],u=`[${r||this.context||"www"}] ${n.toUpperCase()}:`,d=`color: ${s.color}; font-weight: bold;`;o!==void 0?console[n](`%c${u}`,d,i,this.formatData(o)):console[n](`%c${u}`,d,i),a&&(a instanceof Error?console.error(a):console.error("Error details:",a))}logToNode(t){if(!iu||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=r||this.context||"www";if(No){let c={timestamp:this.formatISOTimestamp(),level:n.toUpperCase(),context:s,msg:i,message:i};o!==void 0&&(c.data=this.formatData(o)),a!==void 0&&(c.error=this.formatData(a));let u=JSON.stringify(c);n==="trace"?console.log(u):console[n](u)}else{let c=nu[n],u=this.formatTimestamp(),d="\x1B[0m",p="\x1B[2m",m=c.nodeColor||"",f=`${p}${u}${d} ${m}${n.toUpperCase()} (${s}):${d} ${i}`;console[n](f),o!==void 0&&console.log(JSON.stringify(this.formatData(o),null,2)),a&&(a instanceof Error?(console.error(`\x1B[31mError:${d}`,a.message),a.stack&&console.error(`\x1B[90m${a.stack}${d}`)):console.error("Error:",a))}}log(t){bn?this.logToBrowser(t):iu&&this.logToNode(t)}error(t,n){this.log({level:"error",description:t,data:n,context:this.context})}warn(t,n){this.log({level:"warn",description:t,data:n,context:this.context})}info(t,n){this.log({level:"info",description:t,data:n,context:this.context})}debug(t,n){this.log({level:"debug",description:t,data:n,context:this.context})}trace(t,n){this.log({level:"trace",description:t,data:n,context:this.context})}isEnabled(){return bn?this.enabledInBrowser:!0}setLevel(t){this.settings.minLevel=t}createContextLogger(t){let n=new e(this.settings,t);return{error:(i,r)=>n.error(i,r),warn:(i,r)=>n.warn(i,r),info:(i,r)=>n.info(i,r),debug:(i,r)=>n.debug(i,r),trace:(i,r)=>n.trace(i,r),isEnabled:()=>n.isEnabled(),setLevel:i=>n.setLevel(i)}}};Co.hasShownHelp=!1;Or=new Co,W4=Or.error.bind(Or),G4=Or.warn.bind(Or),J4=Or.info.bind(Or),q4=Or.debug.bind(Or),Y4=Or.trace.bind(Or)});var Hr,iv=O(()=>{"use strict";nv();Hr=class{constructor(t,n){this.objectName=t,this.settings=n,this.logger=yn(t)}}});function ov(e=8){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function is(e={}){let{prefix:t="id_"}=e,n=t.length>=3?t.substring(0,3):t.padEnd(3,"_"),i=Math.floor(Date.now()/1e3).toString(16).padStart(8,"0"),r="";for(let o=0;o<16;o++)r+=Math.floor(Math.random()*16).toString(16);return n+i+r}var r_=O(()=>{"use strict"});function av(e){return n_[e]||n_.blue}var n_,i_=O(()=>{"use strict";n_={green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"}}});function X4(e){return e?{secure:e.protocol==="https:",domain:void 0,path:"/"}:{path:"/"}}var ou,Gn,o_=O(()=>{"use strict";ou=class{constructor(){this.tokenName="auth-token",this.deviceIdName="pl-device-id",this.tokenMaxAge=3600*24*90,this.fallbackStorageKey="token"}currentCookieOptions(){return X4(typeof window>"u"?void 0:window.location)}getCookie(t){if(typeof document>"u")return null;let n=document.cookie.split(";");for(let i of n){let[r,o]=i.trim().split("=");if(r===t)return decodeURIComponent(o||"")}return null}setCookie(t,n,i={}){if(typeof document>"u")return;let{secure:r=!0,sameSite:o="lax",maxAge:a=3600*24*7,domain:s,path:c="/"}=i,u=`${t}=${encodeURIComponent(n)}`;u+=`; Path=${c}`,u+=`; Max-Age=${a}`,u+=`; SameSite=${o}`,r&&(u+="; Secure"),s&&(u+=`; Domain=${s}`),document.cookie=u}removeCookie(t,n={}){this.setCookie(t,"",{...n,maxAge:0})}isLocalStorageFunctional(){return typeof window<"u"&&typeof window.localStorage?.getItem=="function"&&typeof window.localStorage?.setItem=="function"&&typeof window.localStorage?.removeItem=="function"}getAuthToken(){let t=this.getCookie(this.tokenName);if(t)return t;if(this.isLocalStorageFunctional()){let n=window.localStorage.getItem(this.fallbackStorageKey);if(n)return this.setAuthToken(n),window.localStorage.removeItem(this.fallbackStorageKey),n}return null}setAuthToken(t){let n=this.currentCookieOptions();this.setCookie(this.tokenName,t,{secure:n.secure,sameSite:"lax",maxAge:this.tokenMaxAge,domain:n.domain,path:n.path})}removeAuthToken(){let t=this.currentCookieOptions();this.removeCookie(this.tokenName,{domain:t.domain,path:t.path}),this.removeCookie(this.tokenName,{domain:".pagelines.com",path:"/"}),this.isLocalStorageFunctional()&&window.localStorage.removeItem(this.fallbackStorageKey)}getDeviceId(){return this.getCookie(this.deviceIdName)}},Gn=new ou});function sv(e){if(typeof e!="string"||!e.startsWith("/"))return!1;try{return Q4.every(t=>new URL(e,t).origin===t)}catch{return!1}}var Q4,lv=O(()=>{"use strict";Q4=["https://redirect-a.invalid","https://redirect-b.invalid"]});var a_=O(()=>{"use strict"});var s_=O(()=>{"use strict";iv();nv();r_();i_();o_();lv();a_()});var ez,l_,cv,uv=O(()=>{"use strict";Oe();ez=l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),l_=l.object({platform:ez,handle:l.string(),url:l.string().optional()}),cv=l.preprocess(e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object"&&t.platform&&t.handle):e,l.array(l_))});var c_,Si,u_,au,d_,tz,p_,m_,f_,rz,st,h_,g_,v_,b_,y_,x_,nz,xn=O(()=>{"use strict";Oe();c_=["image","audio","video","document"],Si=l.enum(c_),u_=["avatar","cover","general"],au=l.enum(u_),d_=l.enum(["processing","active","failed","deleted"]),tz=l.enum(["low","standard","high"]),p_=l.enum(["jpg","jpeg","png","gif","webp","svg"]),m_=l.enum(["mp4","webm","ogg","mov","avi"]),f_=l.enum(["mp3","wav","ogg","opus","aac","flac","webm","m4a","mp4"]),rz=l.object({mediaId:l.string(),userId:l.string(),orgId:l.string(),agentId:l.string().nullable().optional(),filename:l.string(),mimeType:l.string(),size:l.number(),src:l.string(),alt:l.string().optional(),context:au.default("general"),status:d_.default("processing"),quality:tz.default("standard"),createdAt:l.string().optional(),updatedAt:l.string().optional()}),st=rz.extend({type:Si.optional(),mediaType:Si.optional(),className:l.string().optional(),width:l.number().optional(),height:l.number().optional(),duration:l.number().optional(),blurhash:l.string().optional()}).partial(),h_=l.object({duration:l.number().optional(),thumbnail:l.string().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),g_=l.object({duration:l.number().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),v_=st.extend({mediaType:l.literal("image"),imageFormat:p_.optional()}),b_=st.extend({mediaType:l.literal("video"),videoFormat:m_.optional(),video:h_.optional()}),y_=st.extend({mediaType:l.literal("audio"),audioFormat:f_.optional(),audio:g_.optional()}),x_=st.extend({mediaType:l.literal("document")}),nz=l.discriminatedUnion("mediaType",[v_,b_,y_,x_])});var su,dv=O(()=>{"use strict";Oe();su=l.enum(["xxs","xs","sm","md","lg","xl"])});var pv,mv,os,iz,fv=O(()=>{"use strict";Oe();xn();dv();pv=l.enum(["primary","default","overlay","red","green","indigo","orange"]),mv=l.enum(["ghost","link","outline","solid"]),os=l.object({key:l.string().optional(),label:l.string().optional(),href:l.string().optional(),size:su.optional(),theme:pv.optional(),design:mv.optional(),icon:l.union([l.string(),st]).optional(),iconAfter:l.union([l.string(),st]).optional(),rounding:l.enum(["full","md","lg"]).optional(),loading:l.boolean().optional(),disabled:l.boolean().optional(),tooltip:l.string().optional(),onClick:l.any().optional(),testId:l.string().optional(),target:l.enum(["_blank","_self"]).optional(),type:l.enum(["button","submit","reset"]).optional()}),iz=l.object({buttons:l.array(os).optional(),size:su.optional(),theme:pv.optional(),design:mv.optional()})});var lu,hv=O(()=>{"use strict";lu="$49/month"});var oz,w_,az,wn,gv,Oo=O(()=>{"use strict";Oe();hv();oz=l.enum(["account","error"]),w_=["billing_no_plan","billing_seat_limit","billing_past_due","billing_runaway_cap","billing_budget_reached","billing_demo_spent","agent_deleted","agent_not_deployed","agent_boot_failed","agent_unreachable","agent_wake_timeout","stream_timeout","stream_disconnect","empty_stream","tool_protocol","rate_limit"],az=l.enum(w_),wn=l.object({bucket:oz,code:az,title:l.string(),help:l.string().optional(),actionLabel:l.string(),actionUrl:l.string()}),gv={billing_no_plan:{bucket:"account",title:"Billing needed",help:`Add a payment method to turn live replies back on. Plans start at ${lu} per active assistant, cancel anytime.`,actionLabel:"Open billing",oneLine:`The workspace needs a payment method before this assistant can reply; plans start at ${lu} per active assistant.`},billing_seat_limit:{bucket:"account",title:"Active assistant limit reached",help:"Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",actionLabel:"Open billing",oneLine:"The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."},billing_past_due:{bucket:"account",title:"Assistants paused",help:"Payment is overdue. Fix it and we\u2019ll bring your assistants back online.",actionLabel:"Fix payment",oneLine:"The workspace payment is overdue; its owner must fix it before assistants come back online."},billing_runaway_cap:{bucket:"account",title:"Usage limit reached",help:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",actionLabel:"Contact support",oneLine:"The workspace reached its usage limit; its owner can review billing or contact support."},billing_budget_reached:{bucket:"account",title:"Not enough credits",help:"Your workspace needs more included credits for another reply. Upgrade an assistant or wait for the next billing period.",actionLabel:"Review billing",oneLine:"The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."},billing_demo_spent:{bucket:"account",title:"Demo used up",help:"Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",actionLabel:"Start free trial",oneLine:"This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."},agent_deleted:{bucket:"error",title:"Assistant deleted",help:"This chat is still here, but the assistant can no longer reply.",actionLabel:"",oneLine:"This assistant was deleted. The chat history remains, but it can no longer reply."},agent_not_deployed:{bucket:"error",title:"Assistant asleep",help:"Open the assistant profile to wake it up before chatting.",actionLabel:"Open assistant",oneLine:"This assistant needs to wake up before it can reply."},agent_boot_failed:{bucket:"error",title:"Couldn't wake up",help:"Open the assistant profile to restart it or check what failed.",actionLabel:"Open assistant",oneLine:"This assistant tried to wake up but hit an error."},agent_unreachable:{bucket:"error",title:"Not responding",help:"Open the assistant profile to check status or restart it.",actionLabel:"Open assistant",oneLine:"This assistant is not responding right now; its owner can check its status."},agent_wake_timeout:{bucket:"error",title:"Still waking",help:"Open the assistant profile to check status, or wait a minute and try again.",actionLabel:"Open assistant",oneLine:"This assistant is taking too long to wake up."},stream_timeout:{bucket:"error",title:"Reply too slow",help:"Your assistant took too long to start replying. Try your message again.",actionLabel:"Try again",oneLine:"This assistant took too long to start replying; try the message again."},stream_disconnect:{bucket:"error",title:"Connection lost",help:"The connection dropped while your assistant was replying. Send your message again to retry.",actionLabel:"Try again",oneLine:"The connection dropped while this assistant was replying; try the message again."},empty_stream:{bucket:"error",title:"Empty reply",help:"Your assistant could not generate a reply. Try your message again.",actionLabel:"Try again",oneLine:"This assistant did not return a reply; try the message again."},tool_protocol:{bucket:"error",title:"Tool call failed",help:"Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",actionLabel:"Try again",oneLine:"This assistant tried to use a tool in a format PageLines could not run; try the message again."},rate_limit:{bucket:"error",title:"Slow down",help:"Too many messages at once. Wait a moment, then send your message again.",actionLabel:"Try again",oneLine:"Too many messages arrived at once; wait a moment and try again."}}});function du(e){if(xv(e.operation))return"changing";if(e.blocker?.bucket==="account"&&e.lifecycle!=="running")return"asleep";if(e.operation?.status==="failed")return"stuck";switch(e.lifecycle){case"running":return"awake";case"stopped":return"asleep";case"starting":case"stopping":return"changing";case"degraded":case"unreachable":case"error":return"stuck";case"unknown":return}}function pu(e,t){let n=e.operation,i=sz[e.lifecycle]??"Unknown",r=yv[e.lifecycle]??"grey",o=n?lz[n.kind]??"Working":void 0,a=o?n?.status==="failed"?`${o} failed`:o:i,s=n?n.status==="failed"?"red":"amber":r,c=`${t} \xB7 ${a}`;return{...e,color:s,label:a,tooltip:c}}function xv(e){return e?.status==="running"||e?.status==="coalesced"}var kn,vv,bv,as,cu,k_,yv,__,uu,sz,lz,$_,Jn=O(()=>{"use strict";Oe();Oo();kn=l.enum(["unknown","stopped","starting","running","degraded","unreachable","stopping","error"]),vv=l.enum(["wake","sleep","restart","rebuild","config_apply","setup"]),bv=l.enum(["running","coalesced","failed"]),as=l.object({kind:vv,status:bv,startedAt:l.string().datetime(),detail:l.string().optional()}).strict(),cu=l.object({lifecycle:kn,changedAt:l.string().datetime().optional(),detail:l.string().optional(),blocker:wn.optional(),operation:as.optional()}).strict(),k_=Object.freeze({lifecycle:"unknown"}),yv={running:"green",starting:"amber",stopping:"amber",degraded:"amber",unreachable:"red",error:"red",stopped:"grey",unknown:"grey"},__=l.enum(["awake","asleep","changing","stuck"]),uu={awake:"Awake",asleep:"Asleep",changing:"Changing",stuck:"Stuck"};sz={running:"Online",starting:"Waking up",stopping:"Stopping",degraded:"Slow",unreachable:"Unreachable",error:"Error",stopped:"Asleep",unknown:"Checking"},lz={wake:"Waking up",sleep:"Stopping",restart:"Restarting",rebuild:"Rebuilding",config_apply:"Applying config",setup:"Setting up"};$_=l.enum(["wake","sleep","restart","rebuild","reset-behavior"])});var S_,cz,E_=O(()=>{"use strict";Oe();Jn();fv();xn();S_=l.object({key:l.string().optional(),id:l.string().optional(),label:l.string().optional(),srLabel:l.string().optional(),subLabel:l.string().optional(),value:l.union([l.string(),l.number()]).optional(),description:l.string().optional(),state:__.optional(),count:l.number().optional(),className:l.string().optional(),media:st.optional(),subMedia:st.optional(),cover:st.optional(),icon:st.optional(),iconAfter:st.optional(),subIcon:l.string().optional(),href:l.string().optional(),target:l.enum(["_self","_blank"]).optional(),onClick:l.any().optional(),theme:l.enum(["primary","default"]).optional(),isActive:l.boolean().optional(),isDisabled:l.boolean().optional(),isHidden:l.boolean().optional(),priority:l.number().optional(),testId:l.string().optional(),items:l.array(l.any()).optional(),badges:l.array(os).optional(),meta:l.array(os).optional(),menuItems:l.array(l.any()).optional()}),cz=l.object({title:l.string().optional(),description:l.string().optional(),items:l.array(S_).optional()})});var I_=O(()=>{"use strict"});function Do(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function we(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=ot(i)?gz(i):we(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(ot(e)||Le(e))return e}function gz(e){let t={};return e.replace(hz,"").split(mz).forEach(n=>{if(n){let i=n.split(fz);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function V(e){let t="";if(ot(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){let i=V(e[n]);i&&(t+=i+" ")}else if(Le(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function Lo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ot(t)&&(e.class=V(t)),n&&(e.style=we(n)),e}function vu(e){return!!e||e===""}function bz(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=ds(e[i],t[i]);return n}function ds(e,t){if(e===t)return!0;let n=T_(e),i=T_(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=sr(e),i=sr(t),n||i)return e===t;if(n=xe(e),i=xe(t),n||i)return n&&i?bz(e,t):!1;if(n=Le(e),i=Le(t),n||i){if(!n||!i)return!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!ds(e[a],t[a]))return!1}}return String(e)===String(t)}var qe,Ei,qt,kv,Po,Ro,ut,ss,uz,Ve,xe,Ii,mu,T_,Se,ot,sr,Le,_v,N_,ls,$v,fu,hu,Mo,gu,dz,Et,pz,Kr,Ti,cs,wr,Uo,jo,us,Sv,z_,qn,mz,fz,hz,A_,C_,vz,O_,ce,D_,wv,ps=O(()=>{/**
|
|
69
69
|
* @vue/shared v3.5.40
|
|
70
70
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
71
71
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagelines/widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.856",
|
|
4
4
|
"description": "Embeddable PageLines agent widget for any website",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/widget.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"vue-tsc": "^3.3.8"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@pagelines/sdk": "1.0.
|
|
48
|
+
"@pagelines/sdk": "1.0.856"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "vite --config vite.config.widget.ts",
|