@proofkit/cli 1.0.0-beta.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +148 -148
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node --no-warnings
|
|
2
|
-
import{a as br}from"./chunk-4LISTI44.js";import*as
|
|
2
|
+
import{a as br}from"./chunk-4LISTI44.js";import*as mm from"@clack/prompts";import wO from"chalk";import{Command as SO}from"commander";import e_ from"path";import*as qo from"@clack/prompts";import{Command as $3}from"commander";import{execa as k3}from"execa";import t_ from"fs-extra";import ym from"path";import{fileURLToPath as O_}from"url";import Dm from"path";import hm from"fs-extra";var Mt=()=>{let e=Dm.join(Oe,"package.json");return hm.readJSONSync(e).version??"1.0.0"},gm=()=>{let e=Dm.join(Oe,"..","fmdapi","package.json");return hm.readJSONSync(e).version??"1.0.0"},vm=()=>{let e="22";try{return process.versions.node.split(".")[0]??e}catch{return e}};var B_=O_(import.meta.url),T_=ym.dirname(B_),Oe=ym.join(T_,"../"),_m="proofkit",Un="@proofkit/cli",cs="https://proofkit.dev",Em=Mt(),N_=Em.length,Fm=`
|
|
3
3
|
_______ ___ ___ ____ _ _
|
|
4
4
|
|_ __ \\ .' ..]|_ ||_ _| (_) / |_
|
|
5
5
|
| |__) |_ .--. .--. .--. _| |_ | |_/ / __ \`| |-'
|
|
6
6
|
| ___/[ \`/'\`\\]/ .'\`\\ \\/ .'\`\\ \\'-| |-' | __'. [ | | |
|
|
7
7
|
_| |_ | | | \\__. || \\__. | | | _| | \\ \\_ | | | |,
|
|
8
8
|
|_____| [___] '.__.' '.__.' [___] |____||____|[___]\\__/
|
|
9
|
-
${" ".repeat(61-
|
|
10
|
-
`,qo="my-proofkit-app";import{readFileSync as AP,writeFileSync as wP}from"fs";import SP from"path";import{glob as $P}from"glob";import wC from"chalk";import{execa as yh}from"execa";import _h from"ora";var X={};br(X,{$brand:()=>Yo,$input:()=>El,$output:()=>_l,NEVER:()=>vC,ZodAny:()=>ND,ZodArray:()=>LD,ZodBase64:()=>Bf,ZodBase64URL:()=>Tf,ZodBigInt:()=>lo,ZodBigIntFormat:()=>jf,ZodBoolean:()=>co,ZodCIDRv4:()=>Pf,ZodCIDRv6:()=>Of,ZodCUID:()=>Af,ZodCUID2:()=>wf,ZodCatch:()=>oh,ZodCustom:()=>Xu,ZodDate:()=>qu,ZodDefault:()=>QD,ZodDiscriminatedUnion:()=>zD,ZodE164:()=>Nf,ZodEmail:()=>Ef,ZodEmoji:()=>Cf,ZodEnum:()=>ao,ZodError:()=>pf,ZodFile:()=>YD,ZodGUID:()=>Mu,ZodIPv4:()=>If,ZodIPv6:()=>xf,ZodISODate:()=>ju,ZodISODateTime:()=>Ru,ZodISODuration:()=>zu,ZodISOTime:()=>Lu,ZodIntersection:()=>UD,ZodIssueCode:()=>hC,ZodJWT:()=>Rf,ZodKSUID:()=>kf,ZodLazy:()=>fh,ZodLiteral:()=>HD,ZodMap:()=>GD,ZodNaN:()=>ah,ZodNanoID:()=>bf,ZodNever:()=>RD,ZodNonOptional:()=>Gf,ZodNull:()=>BD,ZodNullable:()=>XD,ZodNumber:()=>so,ZodNumberFormat:()=>Yn,ZodObject:()=>Yu,ZodOptional:()=>Zf,ZodPipe:()=>Wf,ZodPrefault:()=>th,ZodPromise:()=>ph,ZodReadonly:()=>sh,ZodRealError:()=>qn,ZodRecord:()=>Mf,ZodSet:()=>WD,ZodString:()=>Ku,ZodStringFormat:()=>we,ZodSuccess:()=>ih,ZodSymbol:()=>PD,ZodTemplateLiteral:()=>lh,ZodTransform:()=>JD,ZodTuple:()=>VD,ZodType:()=>de,ZodULID:()=>Sf,ZodURL:()=>Ff,ZodUUID:()=>sr,ZodUndefined:()=>OD,ZodUnion:()=>Uf,ZodUnknown:()=>Lf,ZodVoid:()=>jD,ZodXID:()=>$f,_ZodString:()=>_f,_default:()=>eh,any:()=>WF,array:()=>zf,base64:()=>OF,base64url:()=>BF,bigint:()=>UF,boolean:()=>xD,catch:()=>uh,check:()=>mh,cidrv4:()=>xF,cidrv6:()=>PF,clone:()=>Et,coerce:()=>Kf,config:()=>ze,core:()=>ar,cuid:()=>bF,cuid2:()=>AF,custom:()=>fC,date:()=>HF,discriminatedUnion:()=>QF,e164:()=>TF,email:()=>DF,emoji:()=>FF,endsWith:()=>Qi,enum:()=>KD,file:()=>oC,flattenError:()=>ji,float32:()=>RF,float64:()=>jF,formatError:()=>Li,function:()=>af,getErrorMap:()=>_C,globalRegistry:()=>Zt,gt:()=>or,gte:()=>mt,guid:()=>hF,includes:()=>Ji,instanceof:()=>dC,int:()=>yf,int32:()=>LF,int64:()=>MF,intersection:()=>MD,ipv4:()=>kF,ipv6:()=>IF,iso:()=>Uu,json:()=>mC,jwt:()=>NF,keyof:()=>qF,ksuid:()=>$F,lazy:()=>dh,length:()=>Hn,literal:()=>qD,locales:()=>Gi,looseObject:()=>XF,lowercase:()=>qi,lt:()=>ir,lte:()=>At,map:()=>rC,maxLength:()=>Kn,maxSize:()=>Wn,mime:()=>eo,minLength:()=>Sr,minSize:()=>ln,multipleOf:()=>cn,nan:()=>sC,nanoid:()=>CF,nativeEnum:()=>iC,negative:()=>Jl,never:()=>Hu,nonnegative:()=>Ql,nonoptional:()=>nh,nonpositive:()=>Xl,normalize:()=>to,null:()=>TD,nullable:()=>Gu,nullish:()=>uC,number:()=>ID,object:()=>YF,optional:()=>Zu,overwrite:()=>ur,parse:()=>mf,parseAsync:()=>Df,partialRecord:()=>tC,pipe:()=>Wu,positive:()=>Yl,prefault:()=>rh,preprocess:()=>DC,prettifyError:()=>_s,promise:()=>lC,property:()=>ef,readonly:()=>ch,record:()=>ZD,refine:()=>Dh,regex:()=>Hi,regexes:()=>an,registry:()=>mu,safeParse:()=>hf,safeParseAsync:()=>gf,set:()=>nC,setErrorMap:()=>yC,size:()=>Ki,startsWith:()=>Xi,strictObject:()=>JF,string:()=>vf,stringbool:()=>pC,success:()=>aC,superRefine:()=>hh,symbol:()=>ZF,templateLiteral:()=>cC,toJSONSchema:()=>sf,toLowerCase:()=>no,toUpperCase:()=>io,transform:()=>Vf,treeifyError:()=>ys,trim:()=>ro,tuple:()=>eC,uint32:()=>zF,uint64:()=>VF,ulid:()=>wF,undefined:()=>GF,union:()=>Ju,unknown:()=>Vu,uppercase:()=>Yi,url:()=>EF,uuid:()=>gF,uuidv4:()=>vF,uuidv6:()=>yF,uuidv7:()=>_F,void:()=>KF,xid:()=>SF});var ar={};br(ar,{$ZodAny:()=>Kc,$ZodArray:()=>Vi,$ZodAsyncError:()=>Vt,$ZodBase64:()=>jc,$ZodBase64URL:()=>Lc,$ZodBigInt:()=>fu,$ZodBigIntFormat:()=>Vc,$ZodBoolean:()=>Mi,$ZodCIDRv4:()=>Tc,$ZodCIDRv6:()=>Nc,$ZodCUID:()=>bc,$ZodCUID2:()=>Ac,$ZodCatch:()=>pl,$ZodCheck:()=>Be,$ZodCheckBigIntFormat:()=>ec,$ZodCheckEndsWith:()=>dc,$ZodCheckGreaterThan:()=>au,$ZodCheckIncludes:()=>lc,$ZodCheckLengthEquals:()=>uc,$ZodCheckLessThan:()=>uu,$ZodCheckLowerCase:()=>sc,$ZodCheckMaxLength:()=>ic,$ZodCheckMaxSize:()=>tc,$ZodCheckMimeType:()=>mc,$ZodCheckMinLength:()=>oc,$ZodCheckMinSize:()=>rc,$ZodCheckMultipleOf:()=>Xs,$ZodCheckNumberFormat:()=>Qs,$ZodCheckOverwrite:()=>Dc,$ZodCheckProperty:()=>pc,$ZodCheckRegex:()=>ac,$ZodCheckSizeEquals:()=>nc,$ZodCheckStartsWith:()=>fc,$ZodCheckStringFormat:()=>Vn,$ZodCheckUpperCase:()=>cc,$ZodCustom:()=>yl,$ZodDate:()=>Yc,$ZodDefault:()=>cl,$ZodDiscriminatedUnion:()=>Xc,$ZodE164:()=>zc,$ZodEmail:()=>_c,$ZodEmoji:()=>Fc,$ZodEnum:()=>nl,$ZodError:()=>Ri,$ZodFile:()=>ol,$ZodFunction:()=>Nu,$ZodGUID:()=>vc,$ZodIPv4:()=>Oc,$ZodIPv6:()=>Bc,$ZodISODate:()=>Ic,$ZodISODateTime:()=>kc,$ZodISODuration:()=>Pc,$ZodISOTime:()=>xc,$ZodIntersection:()=>Qc,$ZodJWT:()=>Uc,$ZodKSUID:()=>$c,$ZodLazy:()=>vl,$ZodLiteral:()=>il,$ZodMap:()=>tl,$ZodNaN:()=>ml,$ZodNanoID:()=>Cc,$ZodNever:()=>Hc,$ZodNonOptional:()=>fl,$ZodNull:()=>Wc,$ZodNullable:()=>sl,$ZodNumber:()=>lu,$ZodNumberFormat:()=>Mc,$ZodObject:()=>Jc,$ZodOptional:()=>al,$ZodPipe:()=>Zi,$ZodPrefault:()=>ll,$ZodPromise:()=>gl,$ZodReadonly:()=>Dl,$ZodRealError:()=>Mn,$ZodRecord:()=>el,$ZodRegistry:()=>Zn,$ZodSet:()=>rl,$ZodString:()=>Ui,$ZodStringFormat:()=>Ae,$ZodSuccess:()=>dl,$ZodSymbol:()=>Zc,$ZodTemplateLiteral:()=>hl,$ZodTransform:()=>ul,$ZodTuple:()=>sn,$ZodType:()=>oe,$ZodULID:()=>wc,$ZodURL:()=>Ec,$ZodUUID:()=>yc,$ZodUndefined:()=>Gc,$ZodUnion:()=>du,$ZodUnknown:()=>wr,$ZodVoid:()=>qc,$ZodXID:()=>Sc,$brand:()=>Yo,$constructor:()=>O,$input:()=>El,$output:()=>_l,Doc:()=>zi,JSONSchema:()=>SD,JSONSchemaGenerator:()=>uo,_any:()=>Zl,_array:()=>oo,_base64:()=>Pu,_base64url:()=>Ou,_bigint:()=>Rl,_boolean:()=>Tl,_catch:()=>aF,_cidrv4:()=>Iu,_cidrv6:()=>xu,_coercedBigint:()=>jl,_coercedBoolean:()=>Nl,_coercedDate:()=>Hl,_coercedNumber:()=>kl,_coercedString:()=>Cl,_cuid:()=>Cu,_cuid2:()=>bu,_custom:()=>nf,_date:()=>Kl,_default:()=>iF,_discriminatedUnion:()=>KE,_e164:()=>Bu,_email:()=>Du,_emoji:()=>Eu,_endsWith:()=>Qi,_enum:()=>XE,_file:()=>rf,_float32:()=>xl,_float64:()=>Pl,_gt:()=>or,_gte:()=>mt,_guid:()=>Wi,_includes:()=>Ji,_int:()=>Il,_int32:()=>Ol,_int64:()=>Ll,_intersection:()=>HE,_ipv4:()=>$u,_ipv6:()=>ku,_isoDate:()=>Al,_isoDateTime:()=>bl,_isoDuration:()=>Sl,_isoTime:()=>wl,_jwt:()=>Tu,_ksuid:()=>Su,_lazy:()=>fF,_length:()=>Hn,_literal:()=>eF,_lowercase:()=>qi,_lt:()=>ir,_lte:()=>At,_map:()=>YE,_max:()=>At,_maxLength:()=>Kn,_maxSize:()=>Wn,_mime:()=>eo,_min:()=>mt,_minLength:()=>Sr,_minSize:()=>ln,_multipleOf:()=>cn,_nan:()=>ql,_nanoid:()=>Fu,_nativeEnum:()=>QE,_negative:()=>Jl,_never:()=>Gl,_nonnegative:()=>Ql,_nonoptional:()=>oF,_nonpositive:()=>Xl,_normalize:()=>to,_null:()=>Vl,_nullable:()=>nF,_number:()=>$l,_optional:()=>rF,_overwrite:()=>ur,_parse:()=>Qo,_parseAsync:()=>tu,_pipe:()=>sF,_positive:()=>Yl,_promise:()=>dF,_property:()=>ef,_readonly:()=>cF,_record:()=>qE,_refine:()=>of,_regex:()=>Hi,_safeParse:()=>nu,_safeParseAsync:()=>iu,_set:()=>JE,_size:()=>Ki,_startsWith:()=>Xi,_string:()=>Fl,_stringbool:()=>uf,_success:()=>uF,_symbol:()=>Ul,_templateLiteral:()=>lF,_toLowerCase:()=>no,_toUpperCase:()=>io,_transform:()=>tF,_trim:()=>ro,_tuple:()=>tf,_uint32:()=>Bl,_uint64:()=>zl,_ulid:()=>Au,_undefined:()=>Ml,_union:()=>WE,_unknown:()=>Gn,_uppercase:()=>Yi,_url:()=>_u,_uuid:()=>hu,_uuidv4:()=>gu,_uuidv6:()=>vu,_uuidv7:()=>yu,_void:()=>Wl,_xid:()=>wu,clone:()=>Et,config:()=>ze,flattenError:()=>ji,formatError:()=>Li,function:()=>af,globalConfig:()=>$i,globalRegistry:()=>Zt,isValidBase64:()=>Rc,isValidBase64URL:()=>zm,isValidJWT:()=>Um,locales:()=>Gi,parse:()=>eu,parseAsync:()=>ru,prettifyError:()=>_s,regexes:()=>an,registry:()=>mu,safeParse:()=>Es,safeParseAsync:()=>Fs,toDotPath:()=>Fm,toJSONSchema:()=>sf,treeifyError:()=>ys,util:()=>J,version:()=>hc});function O(e,t,n){function i(a,s){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,s);for(let l in u.prototype)l in a||Object.defineProperty(a,l,{value:u.prototype[l].bind(a)});a._zod.constr=u,a._zod.def=s}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function u(a){var s;let c=n?.Parent?new o:this;i(c,a),(s=c._zod).deferred??(s.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}var Yo=Symbol("zod_brand"),Vt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$i={};function ze(e){return e&&Object.assign($i,e),$i}var J={};br(J,{BIGINT_FORMAT_RANGES:()=>gs,Class:()=>cs,NUMBER_FORMAT_RANGES:()=>hs,aborted:()=>on,allowsEval:()=>ps,assert:()=>j_,assertEqual:()=>B_,assertIs:()=>N_,assertNever:()=>R_,assertNotEqual:()=>T_,assignProp:()=>ds,cached:()=>xi,cleanEnum:()=>Y_,cleanRegex:()=>Pi,clone:()=>Et,createTransparentProxy:()=>V_,defineLazy:()=>_e,esc:()=>nn,escapeRegex:()=>nr,extend:()=>W_,finalizeIssue:()=>Ft,floatSafeRemainder:()=>fs,getElementAtPath:()=>L_,getEnumValues:()=>Ii,getLengthableOrigin:()=>Ni,getParsedType:()=>M_,getSizableOrigin:()=>Ti,isObject:()=>Xo,isPlainObject:()=>Oi,issue:()=>vs,joinValues:()=>U,jsonStringifyReplacer:()=>ls,merge:()=>K_,normalizeParams:()=>H,nullish:()=>Ar,numKeys:()=>U_,omit:()=>G_,optionalKeys:()=>Ds,partial:()=>H_,pick:()=>Z_,prefixIssues:()=>pt,primitiveTypes:()=>ms,promiseAllObject:()=>z_,propertyKeyTypes:()=>Bi,randomString:()=>Jo,required:()=>q_,stringifyPrimitive:()=>ee,unwrapMessage:()=>ki});function B_(e){return e}function T_(e){return e}function N_(e){}function R_(e){throw new Error}function j_(e){}function Ii(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function U(e,t="|"){return e.map(n=>ee(n)).join(t)}function ls(e,t){return typeof t=="bigint"?t.toString():t}function xi(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ar(e){return e==null}function Pi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fs(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),u=Number.parseInt(t.toFixed(r).replace(".",""));return o%u/10**r}function _e(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function ds(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function L_(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function z_(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function Jo(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function nn(e){return JSON.stringify(e)}function Xo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ps=xi(()=>{try{let e=Function;return new e(""),!0}catch{return!1}});function Oi(e){return typeof e=="object"&&e!==null&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function U_(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var M_=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Bi=new Set(["string","number","symbol"]),ms=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Et(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function H(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function V_(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function ee(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ds(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var hs={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},gs={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Z_(e,t){let n={},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(n[r]=i.shape[r])}return Et(e,{...e._zod.def,shape:n,checks:[]})}function G_(e,t){let n={...e._zod.def.shape},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete n[r]}return Et(e,{...e._zod.def,shape:n,checks:[]})}function W_(e,t){let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return ds(this,"shape",i),i},checks:[]};return Et(e,n)}function K_(e,t){return Et(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ds(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function H_(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)r[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return Et(t,{...t._zod.def,shape:r,checks:[]})}function q_(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)r[o]=new e({type:"nonoptional",innerType:i[o]});return Et(t,{...t._zod.def,shape:r,checks:[]})}function on(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n].continue!==!0)return!0;return!1}function pt(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function ki(e){return typeof e=="string"?e:e?.message}function Ft(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=ki(e.inst?._zod.def?.error?.(e))??ki(t?.error?.(e))??ki(n.customError?.(e))??ki(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Ti(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ni(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vs(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Y_(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var cs=class{constructor(...t){}};var Em=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,ls,2)},enumerable:!0})},Ri=O("$ZodError",Em),Mn=O("$ZodError",Em,{Parent:Error});function ji(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Li(e,t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(a=>r({issues:a}));else if(u.code==="invalid_key")r({issues:u.issues});else if(u.code==="invalid_element")r({issues:u.issues});else if(u.path.length===0)i._errors.push(n(u));else{let a=i,s=0;for(;s<u.path.length;){let c=u.path[s];s===u.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(u))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return r(e),i}function ys(e,t){let n=t||function(o){return o.message},i={errors:[]},r=(o,u=[])=>{var a,s;for(let c of o.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l},c.path));else if(c.code==="invalid_key")r({issues:c.issues},c.path);else if(c.code==="invalid_element")r({issues:c.issues},c.path);else{let l=[...u,...c.path];if(l.length===0){i.errors.push(n(c));continue}let f=i,d=0;for(;d<l.length;){let p=l[d],m=d===l.length-1;typeof p=="string"?(f.properties??(f.properties={}),(a=f.properties)[p]??(a[p]={errors:[]}),f=f.properties[p]):(f.items??(f.items=[]),(s=f.items)[p]??(s[p]={errors:[]}),f=f.items[p]),m&&f.errors.push(n(c)),d++}}};return r(e),i}function Fm(e){let t=[];for(let n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function _s(e){let t=[],n=[...e.issues].sort((i,r)=>i.path.length-r.path.length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Fm(i.path)}`);return t.join(`
|
|
11
|
-
`)}var Qo=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},o);if(u instanceof Promise)throw new Vt;if(u.issues.length){let a=new(r?.Err??e)(u.issues.map(s=>Ft(s,o,ze())));throw Error.captureStackTrace(a,r?.callee),a}return u.value},eu=Qo(Mn),tu=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},u=t._zod.run({value:n,issues:[]},o);if(u instanceof Promise&&(u=await u),u.issues.length){let a=new(r?.Err??e)(u.issues.map(s=>Ft(s,o,ze())));throw Error.captureStackTrace(a,r?.callee),a}return u.value},ru=tu(Mn),nu=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Vt;return o.issues.length?{success:!1,error:new(e??Ri)(o.issues.map(u=>Ft(u,r,ze())))}:{success:!0,data:o.value}},Es=nu(Mn),iu=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(u=>Ft(u,r,ze())))}:{success:!0,data:o.value}},Fs=iu(Mn);var an={};br(an,{_emoji:()=>Cm,base64:()=>Rs,base64url:()=>ou,bigint:()=>Zs,boolean:()=>Ks,browserEmail:()=>oE,cidrv4:()=>Ts,cidrv6:()=>Ns,cuid:()=>Cs,cuid2:()=>bs,date:()=>zs,datetime:()=>Ms,domain:()=>uE,duration:()=>ks,e164:()=>Ls,email:()=>xs,emoji:()=>Ps,extendedDuration:()=>X_,guid:()=>Is,hostname:()=>js,html5Email:()=>rE,integer:()=>Gs,ipv4:()=>Os,ipv6:()=>Bs,ksuid:()=>Ss,lowercase:()=>Ys,nanoid:()=>$s,null:()=>Hs,number:()=>Ws,rfc5322Email:()=>nE,string:()=>Vs,time:()=>Us,ulid:()=>As,undefined:()=>qs,unicodeEmail:()=>iE,uppercase:()=>Js,uuid:()=>un,uuid4:()=>Q_,uuid6:()=>eE,uuid7:()=>tE,xid:()=>ws});var Cs=/^[cC][^\s-]{8,}$/,bs=/^[0-9a-z]+$/,As=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ws=/^[0-9a-vA-V]{20}$/,Ss=/^[A-Za-z0-9]{27}$/,$s=/^[a-zA-Z0-9_-]{21}$/,ks=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,X_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Is=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,un=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Q_=un(4),eE=un(6),tE=un(7),xs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nE=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,iE=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,oE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Cm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ps(){return new RegExp(Cm,"u")}var Os=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Bs=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Ts=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ns=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ou=/^[A-Za-z0-9_-]*$/,js=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,uE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ls=/^\+(?:[0-9]){6,14}[0-9]$/,bm="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zs=new RegExp(`^${bm}$`);function Am(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Us(e){return new RegExp(`^${Am(e)}$`)}function Ms(e){let t=`${bm}T${Am(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}var Vs=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Zs=/^\d+n?$/,Gs=/^\d+$/,Ws=/^-?\d+(?:\.\d+)?/i,Ks=/true|false/i,Hs=/null/i;var qs=/undefined/i;var Ys=/^[^A-Z]*$/,Js=/^[^a-z]*$/;var Be=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Sm={number:"number",bigint:"bigint",object:"date"},uu=O("$ZodCheckLessThan",(e,t)=>{Be.init(e,t);let n=Sm[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),au=O("$ZodCheckGreaterThan",(e,t)=>{Be.init(e,t);let n=Sm[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xs=O("$ZodCheckMultipleOf",(e,t)=>{Be.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):fs(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Qs=O("$ZodCheckNumberFormat",(e,t)=>{Be.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=hs[t.format];e._zod.onattach.push(u=>{let a=u._zod.bag;a.format=t.format,a.minimum=r,a.maximum=o,n&&(a.pattern=Gs)}),e._zod.check=u=>{let a=u.value;if(n){if(!Number.isInteger(a)){u.issues.push({expected:i,format:t.format,code:"invalid_type",input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?u.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):u.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}a<r&&u.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>o&&u.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inst:e})}}),ec=O("$ZodCheckBigIntFormat",(e,t)=>{Be.init(e,t);let[n,i]=gs[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),tc=O("$ZodCheckMaxSize",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:Ti(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),rc=O("$ZodCheckMinSize",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;i.size>=t.minimum||n.issues.push({origin:Ti(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),nc=O("$ZodCheckSizeEquals",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,r=i.size;if(r===t.size)return;let o=r>t.size;n.issues.push({origin:Ti(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},input:n.value,inst:e,continue:!t.abort})}}),ic=O("$ZodCheckMaxLength",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=Ni(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),oc=O("$ZodCheckMinLength",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let o=Ni(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),uc=O("$ZodCheckLengthEquals",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,r=i.length;if(r===t.length)return;let o=Ni(i),u=r>t.length;n.issues.push({origin:o,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:n.value,inst:e,continue:!t.abort})}}),Vn=O("$ZodCheckStringFormat",(e,t)=>{var n;Be.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),(n=e._zod).check??(n.check=i=>{if(!t.pattern)throw new Error("Not implemented.");t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})})}),ac=O("$ZodCheckRegex",(e,t)=>{Vn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),sc=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ys),Vn.init(e,t)}),cc=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Js),Vn.init(e,t)}),lc=O("$ZodCheckIncludes",(e,t)=>{Be.init(e,t);let n=nr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),fc=O("$ZodCheckStartsWith",(e,t)=>{Be.init(e,t);let n=new RegExp(`^${nr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),dc=O("$ZodCheckEndsWith",(e,t)=>{Be.init(e,t);let n=new RegExp(`.*${nr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function wm(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues))}var pc=O("$ZodCheckProperty",(e,t)=>{Be.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>wm(r,n,t.property));wm(i,n,t.property)}}),mc=O("$ZodCheckMimeType",(e,t)=>{Be.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,path:["type"],inst:e})}}),Dc=O("$ZodCheckOverwrite",(e,t)=>{Be.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var zi=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
9
|
+
${" ".repeat(61-N_)}v${Em}
|
|
10
|
+
`,Xo="my-proofkit-app";import{readFileSync as kP,writeFileSync as IP}from"fs";import xP from"path";import{glob as PP}from"glob";import IC from"chalk";import{execa as Fh}from"execa";import Ch from"ora";var X={};br(X,{$brand:()=>Qo,$input:()=>Fl,$output:()=>El,NEVER:()=>FC,TimePrecision:()=>Al,ZodAny:()=>LD,ZodArray:()=>VD,ZodBase64:()=>Nf,ZodBase64URL:()=>Rf,ZodBigInt:()=>mo,ZodBigIntFormat:()=>zf,ZodBoolean:()=>po,ZodCIDRv4:()=>Bf,ZodCIDRv6:()=>Tf,ZodCUID:()=>Sf,ZodCUID2:()=>$f,ZodCatch:()=>sh,ZodCustom:()=>ea,ZodDate:()=>Ju,ZodDefault:()=>rh,ZodDiscriminatedUnion:()=>ZD,ZodE164:()=>jf,ZodEmail:()=>Cf,ZodEmoji:()=>Af,ZodEnum:()=>co,ZodError:()=>Df,ZodFile:()=>eh,ZodGUID:()=>Gu,ZodIPv4:()=>Pf,ZodIPv6:()=>Of,ZodISODate:()=>Uu,ZodISODateTime:()=>zu,ZodISODuration:()=>Vu,ZodISOTime:()=>Mu,ZodIntersection:()=>GD,ZodIssueCode:()=>_C,ZodJWT:()=>Lf,ZodKSUID:()=>xf,ZodLazy:()=>mh,ZodLiteral:()=>XD,ZodMap:()=>qD,ZodNaN:()=>lh,ZodNanoID:()=>wf,ZodNever:()=>UD,ZodNonOptional:()=>Kf,ZodNull:()=>RD,ZodNullable:()=>th,ZodNumber:()=>fo,ZodNumberFormat:()=>Xn,ZodObject:()=>Xu,ZodOptional:()=>Wf,ZodPipe:()=>Hf,ZodPrefault:()=>ih,ZodPromise:()=>hh,ZodReadonly:()=>fh,ZodRealError:()=>Jn,ZodRecord:()=>Vf,ZodSet:()=>YD,ZodString:()=>lo,ZodStringFormat:()=>we,ZodSuccess:()=>ah,ZodSymbol:()=>TD,ZodTemplateLiteral:()=>ph,ZodTransform:()=>Zf,ZodTuple:()=>KD,ZodType:()=>de,ZodULID:()=>kf,ZodURL:()=>bf,ZodUUID:()=>sr,ZodUndefined:()=>ND,ZodUnion:()=>Mf,ZodUnknown:()=>zD,ZodVoid:()=>MD,ZodXID:()=>If,_ZodString:()=>Ff,_default:()=>nh,any:()=>YF,array:()=>Uf,base64:()=>RF,base64url:()=>jF,bigint:()=>GF,boolean:()=>BD,catch:()=>ch,check:()=>gh,cidrv4:()=>TF,cidrv6:()=>NF,clone:()=>Et,coerce:()=>qf,config:()=>ze,core:()=>ar,cuid:()=>$F,cuid2:()=>kF,custom:()=>DC,date:()=>XF,discriminatedUnion:()=>nC,e164:()=>LF,email:()=>yF,emoji:()=>wF,endsWith:()=>to,enum:()=>JD,file:()=>cC,flattenError:()=>zi,float32:()=>UF,float64:()=>MF,formatError:()=>Ui,function:()=>cf,getErrorMap:()=>bC,globalRegistry:()=>Zt,gt:()=>or,gte:()=>mt,guid:()=>_F,includes:()=>Qi,instanceof:()=>hC,int:()=>Ef,int32:()=>VF,int64:()=>WF,intersection:()=>WD,ipv4:()=>OF,ipv6:()=>BF,iso:()=>Zu,json:()=>vC,jwt:()=>zF,keyof:()=>QF,ksuid:()=>PF,lazy:()=>Dh,length:()=>Yn,literal:()=>QD,locales:()=>Ki,looseObject:()=>rC,lowercase:()=>Ji,lt:()=>ir,lte:()=>At,map:()=>uC,maxLength:()=>qn,maxSize:()=>Hn,mime:()=>ro,minLength:()=>wr,minSize:()=>ln,multipleOf:()=>cn,nan:()=>dC,nanoid:()=>SF,nativeEnum:()=>sC,negative:()=>Ql,never:()=>Yu,nonnegative:()=>tf,nonoptional:()=>uh,nonpositive:()=>ef,normalize:()=>no,null:()=>jD,nullable:()=>Hu,nullish:()=>lC,number:()=>OD,object:()=>eC,optional:()=>Ku,overwrite:()=>ur,parse:()=>hf,parseAsync:()=>gf,partialRecord:()=>oC,pipe:()=>qu,positive:()=>Xl,prefault:()=>oh,preprocess:()=>yC,prettifyError:()=>Fs,promise:()=>mC,property:()=>rf,readonly:()=>dh,record:()=>HD,refine:()=>vh,regex:()=>Yi,regexes:()=>un,registry:()=>gu,safeParse:()=>vf,safeParseAsync:()=>yf,set:()=>aC,setErrorMap:()=>CC,size:()=>qi,startsWith:()=>eo,strictObject:()=>tC,string:()=>_f,stringbool:()=>gC,success:()=>fC,superRefine:()=>yh,symbol:()=>HF,templateLiteral:()=>pC,toJSONSchema:()=>lf,toLowerCase:()=>oo,toUpperCase:()=>uo,transform:()=>Gf,treeifyError:()=>Es,trim:()=>io,tuple:()=>iC,uint32:()=>ZF,uint64:()=>KF,ulid:()=>IF,undefined:()=>qF,union:()=>Qu,unknown:()=>Wu,uppercase:()=>Xi,url:()=>AF,uuid:()=>EF,uuidv4:()=>FF,uuidv6:()=>CF,uuidv7:()=>bF,void:()=>JF,xid:()=>xF});var ar={};br(ar,{$ZodAny:()=>qc,$ZodArray:()=>Zi,$ZodAsyncError:()=>Vt,$ZodBase64:()=>zc,$ZodBase64URL:()=>Uc,$ZodBigInt:()=>mu,$ZodBigIntFormat:()=>Gc,$ZodBoolean:()=>Vi,$ZodCIDRv4:()=>Rc,$ZodCIDRv6:()=>jc,$ZodCUID:()=>wc,$ZodCUID2:()=>Sc,$ZodCatch:()=>ml,$ZodCheck:()=>Be,$ZodCheckBigIntFormat:()=>rc,$ZodCheckEndsWith:()=>mc,$ZodCheckGreaterThan:()=>lu,$ZodCheckIncludes:()=>dc,$ZodCheckLengthEquals:()=>sc,$ZodCheckLessThan:()=>cu,$ZodCheckLowerCase:()=>lc,$ZodCheckMaxLength:()=>uc,$ZodCheckMaxSize:()=>nc,$ZodCheckMimeType:()=>hc,$ZodCheckMinLength:()=>ac,$ZodCheckMinSize:()=>ic,$ZodCheckMultipleOf:()=>ec,$ZodCheckNumberFormat:()=>tc,$ZodCheckOverwrite:()=>gc,$ZodCheckProperty:()=>Dc,$ZodCheckRegex:()=>cc,$ZodCheckSizeEquals:()=>oc,$ZodCheckStartsWith:()=>pc,$ZodCheckStringFormat:()=>Zn,$ZodCheckUpperCase:()=>fc,$ZodCustom:()=>_l,$ZodDate:()=>Xc,$ZodDefault:()=>ll,$ZodDiscriminatedUnion:()=>el,$ZodE164:()=>Mc,$ZodEmail:()=>Fc,$ZodEmoji:()=>bc,$ZodEnum:()=>ol,$ZodError:()=>Li,$ZodFile:()=>al,$ZodFunction:()=>Lu,$ZodGUID:()=>_c,$ZodIPv4:()=>Tc,$ZodIPv6:()=>Nc,$ZodISODate:()=>Pc,$ZodISODateTime:()=>xc,$ZodISODuration:()=>Bc,$ZodISOTime:()=>Oc,$ZodIntersection:()=>tl,$ZodJWT:()=>Vc,$ZodKSUID:()=>Ic,$ZodLazy:()=>yl,$ZodLiteral:()=>ul,$ZodMap:()=>nl,$ZodNaN:()=>Dl,$ZodNanoID:()=>Ac,$ZodNever:()=>Yc,$ZodNonOptional:()=>dl,$ZodNull:()=>Hc,$ZodNullable:()=>cl,$ZodNumber:()=>pu,$ZodNumberFormat:()=>Zc,$ZodObject:()=>Qc,$ZodOptional:()=>sl,$ZodPipe:()=>Wi,$ZodPrefault:()=>fl,$ZodPromise:()=>vl,$ZodReadonly:()=>hl,$ZodRealError:()=>Vn,$ZodRecord:()=>rl,$ZodRegistry:()=>Wn,$ZodSet:()=>il,$ZodString:()=>an,$ZodStringFormat:()=>Ae,$ZodSuccess:()=>pl,$ZodSymbol:()=>Wc,$ZodTemplateLiteral:()=>gl,$ZodTransform:()=>Gi,$ZodTuple:()=>sn,$ZodType:()=>oe,$ZodULID:()=>$c,$ZodURL:()=>Cc,$ZodUUID:()=>Ec,$ZodUndefined:()=>Kc,$ZodUnion:()=>Du,$ZodUnknown:()=>Gn,$ZodVoid:()=>Jc,$ZodXID:()=>kc,$brand:()=>Qo,$constructor:()=>O,$input:()=>Fl,$output:()=>El,Doc:()=>Mi,JSONSchema:()=>ID,JSONSchemaGenerator:()=>so,TimePrecision:()=>Al,_any:()=>Wl,_array:()=>ao,_base64:()=>Tu,_base64url:()=>Nu,_bigint:()=>Ll,_boolean:()=>Rl,_catch:()=>fF,_cidrv4:()=>Ou,_cidrv6:()=>Bu,_coercedBigint:()=>zl,_coercedBoolean:()=>jl,_coercedDate:()=>Yl,_coercedNumber:()=>xl,_coercedString:()=>bl,_cuid:()=>wu,_cuid2:()=>Su,_custom:()=>uf,_date:()=>ql,_default:()=>sF,_discriminatedUnion:()=>JE,_e164:()=>Ru,_email:()=>vu,_emoji:()=>bu,_endsWith:()=>to,_enum:()=>rF,_file:()=>of,_float32:()=>Ol,_float64:()=>Bl,_gt:()=>or,_gte:()=>mt,_guid:()=>Hi,_includes:()=>Qi,_int:()=>Pl,_int32:()=>Tl,_int64:()=>Ul,_intersection:()=>XE,_ipv4:()=>xu,_ipv6:()=>Pu,_isoDate:()=>Sl,_isoDateTime:()=>wl,_isoDuration:()=>kl,_isoTime:()=>$l,_jwt:()=>ju,_ksuid:()=>Iu,_lazy:()=>DF,_length:()=>Yn,_literal:()=>iF,_lowercase:()=>Ji,_lt:()=>ir,_lte:()=>At,_map:()=>eF,_max:()=>At,_maxLength:()=>qn,_maxSize:()=>Hn,_mime:()=>ro,_min:()=>mt,_minLength:()=>wr,_minSize:()=>ln,_multipleOf:()=>cn,_nan:()=>Jl,_nanoid:()=>Au,_nativeEnum:()=>nF,_negative:()=>Ql,_never:()=>Kl,_nonnegative:()=>tf,_nonoptional:()=>cF,_nonpositive:()=>ef,_normalize:()=>no,_null:()=>Gl,_nullable:()=>aF,_number:()=>Il,_optional:()=>uF,_overwrite:()=>ur,_parse:()=>ru,_parseAsync:()=>iu,_pipe:()=>dF,_positive:()=>Xl,_promise:()=>hF,_property:()=>rf,_readonly:()=>pF,_record:()=>QE,_refine:()=>af,_regex:()=>Yi,_safeParse:()=>uu,_safeParseAsync:()=>au,_set:()=>tF,_size:()=>qi,_startsWith:()=>eo,_string:()=>Cl,_stringbool:()=>sf,_success:()=>lF,_symbol:()=>Vl,_templateLiteral:()=>mF,_toLowerCase:()=>oo,_toUpperCase:()=>uo,_transform:()=>oF,_trim:()=>io,_tuple:()=>nf,_uint32:()=>Nl,_uint64:()=>Ml,_ulid:()=>$u,_undefined:()=>Zl,_union:()=>YE,_unknown:()=>Kn,_uppercase:()=>Xi,_url:()=>Cu,_uuid:()=>yu,_uuidv4:()=>_u,_uuidv6:()=>Eu,_uuidv7:()=>Fu,_void:()=>Hl,_xid:()=>ku,clone:()=>Et,config:()=>ze,flattenError:()=>zi,formatError:()=>Ui,function:()=>cf,globalConfig:()=>Ii,globalRegistry:()=>Zt,isValidBase64:()=>Lc,isValidBase64URL:()=>Mm,isValidJWT:()=>Vm,locales:()=>Ki,parse:()=>nu,parseAsync:()=>ou,prettifyError:()=>Fs,regexes:()=>un,registry:()=>gu,safeParse:()=>Cs,safeParseAsync:()=>bs,toDotPath:()=>bm,toJSONSchema:()=>lf,treeifyError:()=>Es,util:()=>J,version:()=>vc});function O(e,t,n){function i(a,s){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,s);for(let l in u.prototype)l in a||Object.defineProperty(a,l,{value:u.prototype[l].bind(a)});a._zod.constr=u,a._zod.def=s}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function u(a){var s;let c=n?.Parent?new o:this;i(c,a),(s=c._zod).deferred??(s.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}var Qo=Symbol("zod_brand"),Vt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ii={};function ze(e){return e&&Object.assign(Ii,e),Ii}var J={};br(J,{BIGINT_FORMAT_RANGES:()=>ys,Class:()=>fs,NUMBER_FORMAT_RANGES:()=>vs,aborted:()=>nn,allowsEval:()=>Ds,assert:()=>U_,assertEqual:()=>R_,assertIs:()=>L_,assertNever:()=>z_,assertNotEqual:()=>j_,assignProp:()=>ms,cached:()=>Oi,captureStackTrace:()=>tu,cleanEnum:()=>Q_,cleanRegex:()=>Bi,clone:()=>Et,createTransparentProxy:()=>W_,defineLazy:()=>ye,esc:()=>rn,escapeRegex:()=>nr,extend:()=>q_,finalizeIssue:()=>Ft,floatSafeRemainder:()=>ps,getElementAtPath:()=>M_,getEnumValues:()=>Pi,getLengthableOrigin:()=>ji,getParsedType:()=>G_,getSizableOrigin:()=>Ri,isObject:()=>Mn,isPlainObject:()=>Ti,issue:()=>_s,joinValues:()=>U,jsonStringifyReplacer:()=>ds,merge:()=>Y_,normalizeParams:()=>H,nullish:()=>Ar,numKeys:()=>Z_,omit:()=>H_,optionalKeys:()=>gs,partial:()=>J_,pick:()=>K_,prefixIssues:()=>pt,primitiveTypes:()=>hs,promiseAllObject:()=>V_,propertyKeyTypes:()=>Ni,randomString:()=>eu,required:()=>X_,stringifyPrimitive:()=>ee,unwrapMessage:()=>xi});function R_(e){return e}function j_(e){return e}function L_(e){}function z_(e){throw new Error}function U_(e){}function Pi(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function U(e,t="|"){return e.map(n=>ee(n)).join(t)}function ds(e,t){return typeof t=="bigint"?t.toString():t}function Oi(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ar(e){return e==null}function Bi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ps(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),u=Number.parseInt(t.toFixed(r).replace(".",""));return o%u/10**r}function ye(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function ms(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function M_(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function V_(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function eu(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function rn(e){return JSON.stringify(e)}var tu=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Mn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ds=Oi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ti(e){if(Mn(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(Mn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Z_(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var G_=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Ni=new Set(["string","number","symbol"]),hs=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Et(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function H(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function W_(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function ee(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function gs(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var vs={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ys={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function K_(e,t){let n={},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(n[r]=i.shape[r])}return Et(e,{...e._zod.def,shape:n,checks:[]})}function H_(e,t){let n={...e._zod.def.shape},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete n[r]}return Et(e,{...e._zod.def,shape:n,checks:[]})}function q_(e,t){let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return ms(this,"shape",i),i},checks:[]};return Et(e,n)}function Y_(e,t){return Et(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ms(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function J_(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)r[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return Et(t,{...t._zod.def,shape:r,checks:[]})}function X_(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)r[o]=new e({type:"nonoptional",innerType:i[o]});return Et(t,{...t._zod.def,shape:r,checks:[]})}function nn(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n].continue!==!0)return!0;return!1}function pt(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function xi(e){return typeof e=="string"?e:e?.message}function Ft(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=xi(e.inst?._zod.def?.error?.(e))??xi(t?.error?.(e))??xi(n.customError?.(e))??xi(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Ri(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ji(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _s(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Q_(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var fs=class{constructor(...t){}};var Cm=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,ds,2)},enumerable:!0})},Li=O("$ZodError",Cm),Vn=O("$ZodError",Cm,{Parent:Error});function zi(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Ui(e,t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(a=>r({issues:a}));else if(u.code==="invalid_key")r({issues:u.issues});else if(u.code==="invalid_element")r({issues:u.issues});else if(u.path.length===0)i._errors.push(n(u));else{let a=i,s=0;for(;s<u.path.length;){let c=u.path[s];s===u.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(u))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return r(e),i}function Es(e,t){let n=t||function(o){return o.message},i={errors:[]},r=(o,u=[])=>{var a,s;for(let c of o.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l},c.path));else if(c.code==="invalid_key")r({issues:c.issues},c.path);else if(c.code==="invalid_element")r({issues:c.issues},c.path);else{let l=[...u,...c.path];if(l.length===0){i.errors.push(n(c));continue}let f=i,p=0;for(;p<l.length;){let m=l[p],d=p===l.length-1;typeof m=="string"?(f.properties??(f.properties={}),(a=f.properties)[m]??(a[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(s=f.items)[m]??(s[m]={errors:[]}),f=f.items[m]),d&&f.errors.push(n(c)),p++}}};return r(e),i}function bm(e){let t=[];for(let n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Fs(e){let t=[],n=[...e.issues].sort((i,r)=>i.path.length-r.path.length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${bm(i.path)}`);return t.join(`
|
|
11
|
+
`)}var ru=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},o);if(u instanceof Promise)throw new Vt;if(u.issues.length){let a=new(r?.Err??e)(u.issues.map(s=>Ft(s,o,ze())));throw tu(a,r?.callee),a}return u.value},nu=ru(Vn),iu=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},u=t._zod.run({value:n,issues:[]},o);if(u instanceof Promise&&(u=await u),u.issues.length){let a=new(r?.Err??e)(u.issues.map(s=>Ft(s,o,ze())));throw tu(a,r?.callee),a}return u.value},ou=iu(Vn),uu=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Vt;return o.issues.length?{success:!1,error:new(e??Li)(o.issues.map(u=>Ft(u,r,ze())))}:{success:!0,data:o.value}},Cs=uu(Vn),au=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(u=>Ft(u,r,ze())))}:{success:!0,data:o.value}},bs=au(Vn);var un={};br(un,{_emoji:()=>Am,base64:()=>Ls,base64url:()=>su,bigint:()=>Ws,boolean:()=>qs,browserEmail:()=>sE,cidrv4:()=>Rs,cidrv6:()=>js,cuid:()=>As,cuid2:()=>ws,date:()=>Ms,datetime:()=>Zs,domain:()=>cE,duration:()=>xs,e164:()=>Us,email:()=>Os,emoji:()=>Bs,extendedDuration:()=>tE,guid:()=>Ps,hostname:()=>zs,html5Email:()=>oE,integer:()=>Ks,ipv4:()=>Ts,ipv6:()=>Ns,ksuid:()=>ks,lowercase:()=>Xs,nanoid:()=>Is,null:()=>Ys,number:()=>Hs,rfc5322Email:()=>uE,string:()=>Gs,time:()=>Vs,ulid:()=>Ss,undefined:()=>Js,unicodeEmail:()=>aE,uppercase:()=>Qs,uuid:()=>on,uuid4:()=>rE,uuid6:()=>nE,uuid7:()=>iE,xid:()=>$s});var As=/^[cC][^\s-]{8,}$/,ws=/^[0-9a-z]+$/,Ss=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$s=/^[0-9a-vA-V]{20}$/,ks=/^[A-Za-z0-9]{27}$/,Is=/^[a-zA-Z0-9_-]{21}$/,xs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ps=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,on=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,rE=on(4),nE=on(6),iE=on(7),Os=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,oE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uE=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,aE=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,sE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Am="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Bs(){return new RegExp(Am,"u")}var Ts=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ns=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Rs=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,js=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ls=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,su=/^[A-Za-z0-9_-]*$/,zs=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,cE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Us=/^\+(?:[0-9]){6,14}[0-9]$/,wm="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ms=new RegExp(`^${wm}$`);function Sm(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vs(e){return new RegExp(`^${Sm(e)}$`)}function Zs(e){let t=Sm({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${wm}T(?:${i})$`)}var Gs=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ws=/^\d+n?$/,Ks=/^\d+$/,Hs=/^-?\d+(?:\.\d+)?/i,qs=/true|false/i,Ys=/null/i;var Js=/undefined/i;var Xs=/^[^A-Z]*$/,Qs=/^[^a-z]*$/;var Be=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),km={number:"number",bigint:"bigint",object:"date"},cu=O("$ZodCheckLessThan",(e,t)=>{Be.init(e,t);let n=km[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),lu=O("$ZodCheckGreaterThan",(e,t)=>{Be.init(e,t);let n=km[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ec=O("$ZodCheckMultipleOf",(e,t)=>{Be.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ps(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tc=O("$ZodCheckNumberFormat",(e,t)=>{Be.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=vs[t.format];e._zod.onattach.push(u=>{let a=u._zod.bag;a.format=t.format,a.minimum=r,a.maximum=o,n&&(a.pattern=Ks)}),e._zod.check=u=>{let a=u.value;if(n){if(!Number.isInteger(a)){u.issues.push({expected:i,format:t.format,code:"invalid_type",input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?u.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):u.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}a<r&&u.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>o&&u.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inst:e})}}),rc=O("$ZodCheckBigIntFormat",(e,t)=>{Be.init(e,t);let[n,i]=ys[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),nc=O("$ZodCheckMaxSize",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:Ri(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),ic=O("$ZodCheckMinSize",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;i.size>=t.minimum||n.issues.push({origin:Ri(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),oc=O("$ZodCheckSizeEquals",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,r=i.size;if(r===t.size)return;let o=r>t.size;n.issues.push({origin:Ri(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},input:n.value,inst:e,continue:!t.abort})}}),uc=O("$ZodCheckMaxLength",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=ji(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),ac=O("$ZodCheckMinLength",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let o=ji(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),sc=O("$ZodCheckLengthEquals",(e,t)=>{Be.init(e,t),e._zod.when=n=>{let i=n.value;return!Ar(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,r=i.length;if(r===t.length)return;let o=ji(i),u=r>t.length;n.issues.push({origin:o,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:n.value,inst:e,continue:!t.abort})}}),Zn=O("$ZodCheckStringFormat",(e,t)=>{var n;Be.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),(n=e._zod).check??(n.check=i=>{if(!t.pattern)throw new Error("Not implemented.");t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})})}),cc=O("$ZodCheckRegex",(e,t)=>{Zn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),lc=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Xs),Zn.init(e,t)}),fc=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Qs),Zn.init(e,t)}),dc=O("$ZodCheckIncludes",(e,t)=>{Be.init(e,t);let n=nr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),pc=O("$ZodCheckStartsWith",(e,t)=>{Be.init(e,t);let n=new RegExp(`^${nr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),mc=O("$ZodCheckEndsWith",(e,t)=>{Be.init(e,t);let n=new RegExp(`.*${nr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function $m(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues))}var Dc=O("$ZodCheckProperty",(e,t)=>{Be.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>$m(r,n,t.property));$m(i,n,t.property)}}),hc=O("$ZodCheckMimeType",(e,t)=>{Be.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e})}}),gc=O("$ZodCheckOverwrite",(e,t)=>{Be.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Mi=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
12
12
|
`).filter(u=>u),r=Math.min(...i.map(u=>u.length-u.trimStart().length)),o=i.map(u=>u.slice(r)).map(u=>" ".repeat(this.indent*2)+u);for(let u of o)this.content.push(u)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
13
|
-
`))}};var
|
|
13
|
+
`))}};var vc={major:4,minor:0,patch:0};var oe=O("$ZodType",(e,t)=>{var n;e??(e={}),ye(e._zod,"id",()=>t.type+"_"+eu(10)),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(o,u,a)=>{let s=nn(o),c;for(let l of u){if(l._zod.when){if(!l._zod.when(o))continue}else if(s)continue;let f=o.issues.length,p=l._zod.check(o);if(p instanceof Promise&&a?.async===!1)throw new Vt;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,o.issues.length!==f&&(s||(s=nn(o,f)))});else{if(o.issues.length===f)continue;s||(s=nn(o,f))}}return c?c.then(()=>o):o};e._zod.run=(o,u)=>{let a=e._zod.parse(o,u);if(a instanceof Promise){if(u.async===!1)throw new Vt;return a.then(s=>r(s,i,u))}return r(a,i,u)}}e["~standard"]={validate:r=>{try{let o=Cs(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return bs(e,r).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),an=O("$ZodString",(e,t)=>{oe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gs(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ae=O("$ZodStringFormat",(e,t)=>{Zn.init(e,t),an.init(e,t)}),_c=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ps),Ae.init(e,t)}),Ec=O("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=on(i))}else t.pattern??(t.pattern=on());Ae.init(e,t)}),Fc=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Os),Ae.init(e,t)}),Cc=O("$ZodURL",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{try{let i=new URL(n.value);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:zs.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}));return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),bc=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Bs()),Ae.init(e,t)}),Ac=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Is),Ae.init(e,t)}),wc=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=As),Ae.init(e,t)}),Sc=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ws),Ae.init(e,t)}),$c=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ss),Ae.init(e,t)}),kc=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$s),Ae.init(e,t)}),Ic=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ks),Ae.init(e,t)}),xc=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Zs(t)),Ae.init(e,t);let n=e._zod.check}),Pc=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ms),Ae.init(e,t)}),Oc=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vs(t)),Ae.init(e,t);let n=e._zod.check}),Bc=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=xs),Ae.init(e,t)}),Tc=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ts),Ae.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv4"})}),Nc=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ns),Ae.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Rc=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Rs),Ae.init(e,t)}),jc=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=js),Ae.init(e,t),e._zod.check=n=>{let[i,r]=n.value.split("/");try{if(!r)throw new Error;let o=Number(r);if(`${o}`!==r)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Lc(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var zc=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ls),Ae.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Lc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Mm(e){if(!su.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Lc(n)}var Uc=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=su),Ae.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Mm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Mc=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Us),Ae.init(e,t)});function Vm(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n,r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Vc=O("$ZodJWT",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{Vm(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),pu=O("$ZodNumber",(e,t)=>{oe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Hs,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),Zc=O("$ZodNumber",(e,t)=>{tc.init(e,t),pu.init(e,t)}),Vi=O("$ZodBoolean",(e,t)=>{oe.init(e,t),e._zod.pattern=qs,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),mu=O("$ZodBigInt",(e,t)=>{oe.init(e,t),e._zod.pattern=Ws,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}let{value:r}=n;return typeof r=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:r,inst:e}),n}}),Gc=O("$ZodBigInt",(e,t)=>{rc.init(e,t),mu.init(e,t)}),Wc=O("$ZodSymbol",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Kc=O("$ZodUndefined",(e,t)=>{oe.init(e,t),e._zod.pattern=Js,e._zod.values=new Set([void 0]),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Hc=O("$ZodNull",(e,t)=>{oe.init(e,t),e._zod.pattern=Ys,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let{value:r}=n;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),qc=O("$ZodAny",(e,t)=>{oe.init(e,t),e._zod.parse=n=>n}),Gn=O("$ZodUnknown",(e,t)=>{oe.init(e,t),e._zod.parse=n=>n}),Yc=O("$ZodNever",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Jc=O("$ZodVoid",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Xc=O("$ZodDate",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function xm(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues)),t.value[n]=e.value}var Zi=O("$ZodArray",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let u=0;u<r.length;u++){let a=r[u],s=t.element._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>xm(c,n,u))):xm(s,n,u)}return o.length?Promise.all(o).then(()=>n):n}});function fu(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues)),t.value[n]=e.value}function Pm(e,t,n,i){e.issues.length?i[n]===void 0?n in i?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...pt(n,e.issues)):e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}var Qc=O("$ZodObject",(e,t)=>{oe.init(e,t);let n=Oi(()=>{let f=Object.keys(t.shape);for(let m of f)if(!(t.shape[m]instanceof oe))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);let p=gs(t.shape);return{shape:t.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(p)}});ye(e._zod,"propValues",()=>{let f=t.shape,p={};for(let m in f){let d=f[m]._zod;if(d.values){p[m]??(p[m]=new Set);for(let D of d.values)p[m].add(D)}}return p});let i=f=>{let p=new Mi(["shape","payload","ctx"]),{keys:m,optionalKeys:d}=n.value,D=g=>{let v=rn(g);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};p.write("const input = payload.value;");let h=Object.create(null);for(let g of m)h[g]=eu(15);p.write("const newResult = {}");for(let g of m)if(d.has(g)){let v=h[g];p.write(`const ${v} = ${D(g)};`);let C=rn(g);p.write(`
|
|
14
14
|
if (${v}.issues.length) {
|
|
15
15
|
if (input[${C}] === undefined) {
|
|
16
16
|
if (${C} in input) {
|
|
@@ -29,26 +29,26 @@ ${" ".repeat(61-O_)}v${ym}
|
|
|
29
29
|
} else {
|
|
30
30
|
newResult[${C}] = ${v}.value;
|
|
31
31
|
}
|
|
32
|
-
`)}else{let v=h[g];
|
|
32
|
+
`)}else{let v=h[g];p.write(`const ${v} = ${D(g)};`),p.write(`
|
|
33
33
|
if (${v}.issues.length) payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
|
|
34
34
|
...iss,
|
|
35
|
-
path: iss.path ? [${
|
|
36
|
-
})));`),d.write(`newResult[${nn(g)}] = ${v}.value`)}d.write("payload.value = newResult;"),d.write("return payload;");let _=d.compile();return(g,v)=>_(f,g,v)},r,o=Xo,u=!$i.jitless,s=u&&ps.value,{catchall:c}=t,l;e._zod.parse=(f,d)=>{l??(l=n.value);let p=f.value;if(!o(p))return f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f;let m=[];if(u&&s&&d?.async===!1&&d.jitless!==!0)r||(r=i(t.shape)),f=r(f,d);else{f.value={};let v=l.shape;for(let C of l.keys){let y=v[C],b=y._zod.run({value:p[C],issues:[]},d),k=y._zod.optin==="optional"&&y._zod.optout==="optional";b instanceof Promise?m.push(b.then(F=>k?Im(F,f,C,p):su(F,f,C))):k?Im(b,f,C,p):su(b,f,C)}}if(!c)return m.length?Promise.all(m).then(()=>f):f;let D=[],h=l.keySet,_=c._zod,g=_.def.type;for(let v of Object.keys(p)){if(h.has(v))continue;if(g==="never"){D.push(v);continue}let C=_.run({value:p[v],issues:[]},d);C instanceof Promise?m.push(C.then(y=>su(y,f,v))):su(C,f,v)}return D.length&&f.issues.push({code:"unrecognized_keys",keys:D,input:p,inst:e}),m.length?Promise.all(m).then(()=>f):f}});function xm(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(o=>Ft(o,i,ze())))}),t}var du=O("$ZodUnion",(e,t)=>{oe.init(e,t),_e(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),_e(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Pi(i.source)).join("|")})$`)}}),e._zod.parse=(n,i)=>{let r=!1,o=[];for(let u of t.options){let a=u._zod.run({value:n.value,issues:[]},i);if(a instanceof Promise)o.push(a),r=!0;else{if(a.issues.length===0)return a;o.push(a)}}return r?Promise.all(o).then(u=>xm(u,n,e,i)):xm(o,n,e,i)}}),Xc=O("$ZodDiscriminatedUnion",(e,t)=>{du.init(e,t);let n=e._zod.parse;_e(e._zod,"propValues",()=>{let r={};for(let o of t.options){let u=o._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,s]of Object.entries(u)){r[a]||(r[a]=new Set);for(let c of s)r[a].add(c)}}return r});let i=xi(()=>{let r=t.options,o=new Map;for(let u of r){let a=u._zod.propValues[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let s of a){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,u)}}return o});e._zod.parse=(r,o)=>{let u=r.value;if(!Xo(u))return r.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),r;let a=i.value.get(u?.[t.discriminator]);return a?a._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:u,path:[t.discriminator],inst:e}),r)}}),Qc=O("$ZodIntersection",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n,o=t.left._zod.run({value:r,issues:[]},i),u=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||u instanceof Promise?Promise.all([o,u]).then(([s,c])=>Pm(n,s,c)):Pm(n,o,u)}});function gc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Oi(e)&&Oi(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let u=gc(e[o],t[o]);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};r[o]=u.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],u=gc(r,o);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pm(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),on(e))return e;let i=gc(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var sn=O("$ZodTuple",(e,t)=>{oe.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let u=r.value;if(!Array.isArray(u))return r.issues.push({input:u,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[];if(!t.rest){let c=u.length>n.length,l=u.length<i-1;if(c||l)return r.issues.push({input:u,inst:e,origin:"array",...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),r}let s=-1;for(let c of n){if(s++,s>=u.length&&s>=i)continue;let l=c._zod.run({value:u[s],issues:[]},o);l instanceof Promise?a.push(l.then(f=>cu(f,r,s))):cu(l,r,s)}if(t.rest){let c=u.slice(n.length);for(let l of c){s++;let f=t.rest._zod.run({value:l,issues:[]},o);f instanceof Promise?a.push(f.then(d=>cu(d,r,s))):cu(f,r,s)}}return a.length?Promise.all(a).then(()=>r):r}});function cu(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues)),t.value[n]=e.value}var el=O("$ZodRecord",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Oi(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let s of u)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){let c=t.valueType._zod.run({value:r[s],issues:[]},i);c instanceof Promise?o.push(c.then(l=>{l.issues.length&&n.issues.push(...pt(s,l.issues)),n.value[s]=l.value})):(c.issues.length&&n.issues.push(...pt(s,c.issues)),n.value[s]=c.value)}let a;for(let s in r)u.has(s)||(a=a??[],a.push(s));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:a})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let a=t.keyType._zod.run({value:u,issues:[]},i);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(c=>Ft(c,i,ze())),input:u,path:[u],inst:e}),n.value[a.value]=a.value;continue}let s=t.valueType._zod.run({value:r[u],issues:[]},i);s instanceof Promise?o.push(s.then(c=>{c.issues.length&&n.issues.push(...pt(u,c.issues)),n.value[a.value]=c.value})):(s.issues.length&&n.issues.push(...pt(u,s.issues)),n.value[a.value]=s.value)}}return o.length?Promise.all(o).then(()=>n):n}}),tl=O("$ZodMap",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[u,a]of r){let s=t.keyType._zod.run({value:u,issues:[]},i),c=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise||c instanceof Promise?o.push(Promise.all([s,c]).then(([l,f])=>{Om(l,f,n,u,r,e,i)})):Om(s,c,n,u,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function Om(e,t,n,i,r,o,u){e.issues.length&&(Bi.has(typeof i)?n.issues.push(...pt(i,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(a=>Ft(a,u,ze()))})),t.issues.length&&(Bi.has(typeof i)?n.issues.push(...pt(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(a=>Ft(a,u,ze()))})),n.value.set(e.value,t.value)}var rl=O("$ZodSet",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let u of r){let a=t.valueType._zod.run({value:u,issues:[]},i);a instanceof Promise?o.push(a.then(s=>Bm(s,n))):Bm(a,n)}return o.length?Promise.all(o).then(()=>n):n}});function Bm(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var nl=O("$ZodEnum",(e,t)=>{oe.init(e,t);let n=Ii(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=>Bi.has(typeof i)).map(i=>typeof i=="string"?nr(i):i.toString()).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),il=O("$ZodLiteral",(e,t)=>{oe.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?nr(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),ol=O("$ZodFile",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),ul=O("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(u=>(n.value=u,n));if(r instanceof Promise)throw new Vt;return n.value=r,n}}),al=O("$ZodOptional",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_e(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_e(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pi(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>n.value===void 0?n:t.innerType._zod.run(n,i)}),sl=O("$ZodNullable",(e,t)=>{oe.init(e,t),_e(e._zod,"optin",()=>t.innerType._zod.optin),_e(e._zod,"optout",()=>t.innerType._zod.optout),_e(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pi(n.source)}|null)$`):void 0}),_e(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),cl=O("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Tm(o,t)):Tm(r,t)}});function Tm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ll=O("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),fl=O("$ZodNonOptional",(e,t)=>{oe.init(e,t),_e(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Nm(o,e)):Nm(r,e)}});function Nm(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var dl=O("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),pl=O("$ZodCatch",(e,t)=>{oe.init(e,t),_e(e._zod,"optin",()=>t.innerType._zod.optin),_e(e._zod,"optout",()=>t.innerType._zod.optout),_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(u=>Ft(u,i,ze()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>Ft(o,i,ze()))},input:n.value}),n.issues=[]),n)}}),ml=O("$ZodNaN",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Zi=O("$ZodPipe",(e,t)=>{oe.init(e,t),_e(e._zod,"values",()=>t.in._zod.values),_e(e._zod,"optin",()=>t.in._zod.optin),_e(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,i)=>{let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Rm(o,t,i)):Rm(r,t,i)}});function Rm(e,t,n){return on(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var Dl=O("$ZodReadonly",(e,t)=>{oe.init(e,t),_e(e._zod,"propValues",()=>t.innerType._zod.propValues),_e(e._zod,"optin",()=>t.innerType._zod.optin),_e(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(jm):jm(r)}});function jm(e){return e.value=Object.freeze(e.value),e}var hl=O("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let n=[];for(let i of t.parts)if(i instanceof oe){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,u=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,u))}else if(i===null||ms.has(typeof i))n.push(nr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),i)}),gl=O("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),vl=O("$ZodLazy",(e,t)=>{oe.init(e,t),_e(e._zod,"innerType",()=>t.getter()),_e(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),_e(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),_e(e._zod,"optin",()=>e._zod.innerType._zod.optin),_e(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),yl=O("$ZodCustom",(e,t)=>{Be.init(e,t),oe.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Lm(o,n,i,e));Lm(r,n,i,e)}});function Lm(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(vs(r))}}var Gi={};br(Gi,{ar:()=>Vm,az:()=>Zm,be:()=>Wm,ca:()=>Km,cs:()=>Hm,de:()=>qm,en:()=>pu,es:()=>Ym,fa:()=>Jm,fi:()=>Xm,fr:()=>Qm,frCA:()=>eD,he:()=>tD,hu:()=>rD,id:()=>nD,it:()=>iD,ja:()=>oD,kh:()=>uD,ko:()=>aD,mk:()=>sD,ms:()=>cD,nl:()=>lD,no:()=>fD,ota:()=>dD,pl:()=>pD,pt:()=>mD,ru:()=>hD,sl:()=>gD,sv:()=>vD,ta:()=>yD,th:()=>_D,tr:()=>ED,ua:()=>FD,ur:()=>CD,vi:()=>bD,zhCN:()=>AD,zhTW:()=>wD});var aE=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return r=>{switch(r.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ee(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${u.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${i[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${U(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Vm(){return{localeError:aE()}}var sE=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ee(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${u.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${u.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Zm(){return{localeError:sE()}}function Gm(e,t,n,i){let r=Math.abs(e),o=r%10,u=r%100;return u>=11&&u<=19?i:o===1?t:o>=2&&o<=4?n:i}var cE=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ee(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);if(u){let a=Number(r.maximum),s=Gm(a,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);if(u){let a=Number(r.minimum),s=Gm(a,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Wm(){return{localeError:cE()}}var lE=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${ee(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${U(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",u=t(r.origin);return u?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${u.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",u=t(r.origin);return u?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${u.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function Km(){return{localeError:lE()}}var fE=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ee(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${i[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${U(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Hm(){return{localeError:fE()}}var dE=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ee(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${u.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${u.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function qm(){return{localeError:dE()}}var pE=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},mE=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${pE(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${ee(i.values[0])}`:`Invalid option: expected one of ${U(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function pu(){return{localeError:mE()}}var DE=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${ee(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${u.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${u.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function Ym(){return{localeError:DE()}}var hE=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ee(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${U(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${u.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${U(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Jm(){return{localeError:hE()}}var gE=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ee(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Liian suuri: ${u.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${u.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Liian pieni: ${u.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${u.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${U(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Xm(){return{localeError:gE()}}var vE=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${n(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${ee(r.values[0])} attendu`:`Option invalide : une valeur parmi ${U(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Trop grand : ${r.origin??"valeur"} doit ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Trop petit : ${r.origin} doit ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${U(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Qm(){return{localeError:vE()}}var yE=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${ee(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",u=t(r.origin);return u?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${u.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",u=t(r.origin);return u?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${u.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${U(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function eD(){return{localeError:yE()}}var _E=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${ee(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${u.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${u.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function tD(){return{localeError:_E()}}var EE=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ee(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${u.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${u.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function rD(){return{localeError:EE()}}var FE=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${ee(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${u.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function nD(){return{localeError:FE()}}var CE=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${ee(r.values[0])}`:`Opzione non valida: atteso uno tra ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${u.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${u.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${U(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function iD(){return{localeError:CE()}}var bE=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ee(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${U(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${u.unit??"\u8981\u7D20"}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${u.unit}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${U(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function oD(){return{localeError:bE()}}var AE=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return r=>{switch(r.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ee(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${u.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${u.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${U(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function uD(){return{localeError:AE()}}var wE=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ee(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${U(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",u=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),s=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${u}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${u}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",u=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),s=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${u}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${u}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${U(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function aD(){return{localeError:wE()}}var SE=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${ee(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${u.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function sD(){return{localeError:SE()}}var $E=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${ee(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Terlalu besar: dijangka ${r.origin??"nilai"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Terlalu kecil: dijangka ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${U(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function cD(){return{localeError:$E()}}var kE=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${ee(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${u.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${u.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function lD(){return{localeError:kE()}}var IE=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${ee(r.values[0])}`:`Ugyldig valg: forventet en av ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${u.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${u.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function fD(){return{localeError:IE()}}var xE=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${ee(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${u.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${u.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function dD(){return{localeError:xE()}}var PE=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ee(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function pD(){return{localeError:PE()}}var OE=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${ee(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${u.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${u.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${i[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function mD(){return{localeError:OE()}}function DD(e,t,n,i){let r=Math.abs(e),o=r%10,u=r%100;return u>=11&&u<=19?i:o===1?t:o>=2&&o<=4?n:i}var BE=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ee(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);if(u){let a=Number(r.maximum),s=DD(a,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);if(u){let a=Number(r.minimum),s=DD(a,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function hD(){return{localeError:BE()}}var TE=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ee(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${u.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${u.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${U(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function gD(){return{localeError:TE()}}var NE=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ee(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${u.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${u.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function vD(){return{localeError:NE()}}var RE=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ee(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${U(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${u.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${u.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function yD(){return{localeError:RE()}}var jE=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return r=>{switch(r.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ee(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",u=t(r.origin);return u?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${u.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",u=t(r.origin);return u?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${u.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${U(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function _D(){return{localeError:jE()}}var LE=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},zE=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${LE(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ee(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${U(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function ED(){return{localeError:zE()}}var UE=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ee(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function FD(){return{localeError:UE()}}var ME=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ee(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${U(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${u.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${U(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function CD(){return{localeError:ME()}}var VE=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ee(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${i[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${U(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function bD(){return{localeError:VE()}}var ZE=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ee(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${u.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${u.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${i[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function AD(){return{localeError:ZE()}}var GE=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ee(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${u.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${u.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${U(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function wD(){return{localeError:GE()}}var _l=Symbol("ZodOutput"),El=Symbol("ZodInput"),Zn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function mu(){return new Zn}var Zt=mu();function Fl(e,t){return new e({type:"string",...H(t)})}function Cl(e,t){return new e({type:"string",coerce:!0,...H(t)})}function Du(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...H(t)})}function Wi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...H(t)})}function hu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...H(t)})}function gu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...H(t)})}function vu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...H(t)})}function yu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...H(t)})}function _u(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...H(t)})}function Eu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...H(t)})}function Fu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...H(t)})}function Cu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...H(t)})}function bu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...H(t)})}function Au(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...H(t)})}function wu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...H(t)})}function Su(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...H(t)})}function $u(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...H(t)})}function ku(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...H(t)})}function Iu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...H(t)})}function xu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...H(t)})}function Pu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...H(t)})}function Ou(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...H(t)})}function Bu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...H(t)})}function Tu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...H(t)})}function bl(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...H(t)})}function Al(e,t){return new e({type:"string",format:"date",check:"string_format",...H(t)})}function wl(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...H(t)})}function Sl(e,t){return new e({type:"string",format:"duration",check:"string_format",...H(t)})}function $l(e,t){return new e({type:"number",checks:[],...H(t)})}function kl(e,t){return new e({type:"number",coerce:!0,checks:[],...H(t)})}function Il(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...H(t)})}function xl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...H(t)})}function Pl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...H(t)})}function Ol(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...H(t)})}function Bl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...H(t)})}function Tl(e,t){return new e({type:"boolean",...H(t)})}function Nl(e,t){return new e({type:"boolean",coerce:!0,...H(t)})}function Rl(e,t){return new e({type:"bigint",...H(t)})}function jl(e,t){return new e({type:"bigint",coerce:!0,...H(t)})}function Ll(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...H(t)})}function zl(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...H(t)})}function Ul(e,t){return new e({type:"symbol",...H(t)})}function Ml(e,t){return new e({type:"undefined",...H(t)})}function Vl(e,t){return new e({type:"null",...H(t)})}function Zl(e){return new e({type:"any"})}function Gn(e){return new e({type:"unknown"})}function Gl(e,t){return new e({type:"never",...H(t)})}function Wl(e,t){return new e({type:"void",...H(t)})}function Kl(e,t){return new e({type:"date",...H(t)})}function Hl(e,t){return new e({type:"date",coerce:!0,...H(t)})}function ql(e,t){return new e({type:"nan",...H(t)})}function ir(e,t){return new uu({check:"less_than",...H(t),value:e,inclusive:!1})}function At(e,t){return new uu({check:"less_than",...H(t),value:e,inclusive:!0})}function or(e,t){return new au({check:"greater_than",...H(t),value:e,inclusive:!1})}function mt(e,t){return new au({check:"greater_than",...H(t),value:e,inclusive:!0})}function Yl(e){return or(0,e)}function Jl(e){return ir(0,e)}function Xl(e){return At(0,e)}function Ql(e){return mt(0,e)}function cn(e,t){return new Xs({check:"multiple_of",...H(t),value:e})}function Wn(e,t){return new tc({check:"max_size",...H(t),maximum:e})}function ln(e,t){return new rc({check:"min_size",...H(t),minimum:e})}function Ki(e,t){return new nc({check:"size_equals",...H(t),size:e})}function Kn(e,t){return new ic({check:"max_length",...H(t),maximum:e})}function Sr(e,t){return new oc({check:"min_length",...H(t),minimum:e})}function Hn(e,t){return new uc({check:"length_equals",...H(t),length:e})}function Hi(e,t){return new ac({check:"string_format",format:"regex",...H(t),pattern:e})}function qi(e){return new sc({check:"string_format",format:"lowercase",...H(e)})}function Yi(e){return new cc({check:"string_format",format:"uppercase",...H(e)})}function Ji(e,t){return new lc({check:"string_format",format:"includes",...H(t),includes:e})}function Xi(e,t){return new fc({check:"string_format",format:"starts_with",...H(t),prefix:e})}function Qi(e,t){return new dc({check:"string_format",format:"ends_with",...H(t),suffix:e})}function ef(e,t,n){return new pc({check:"property",property:e,schema:t,...H(n)})}function eo(e,t){return new mc({check:"mime_type",mime:e,...H(t)})}function ur(e){return new Dc({check:"overwrite",tx:e})}function to(e){return ur(t=>t.normalize(e))}function ro(){return ur(e=>e.trim())}function no(){return ur(e=>e.toLowerCase())}function io(){return ur(e=>e.toUpperCase())}function oo(e,t,n){return new e({type:"array",element:t,...H(n)})}function WE(e,t,n){return new e({type:"union",options:t,...H(n)})}function KE(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...H(i)})}function HE(e,t,n){return new e({type:"intersection",left:t,right:n})}function tf(e,t,n,i){let r=n instanceof oe,o=r?i:n,u=r?n:null;return new e({type:"tuple",items:t,rest:u,...H(o)})}function qE(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...H(i)})}function YE(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...H(i)})}function JE(e,t,n){return new e({type:"set",valueType:t,...H(n)})}function XE(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...H(n)})}function QE(e,t,n){return new e({type:"enum",entries:t,...H(n)})}function eF(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...H(n)})}function rf(e,t){return new e({type:"file",...H(t)})}function tF(e,t){return new e({type:"transform",transform:t})}function rF(e,t){return new e({type:"optional",innerType:t})}function nF(e,t){return new e({type:"nullable",innerType:t})}function iF(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function oF(e,t,n){return new e({type:"nonoptional",innerType:t,...H(n)})}function uF(e,t){return new e({type:"success",innerType:t})}function aF(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function sF(e,t,n){return new e({type:"pipe",in:t,out:n})}function cF(e,t){return new e({type:"readonly",innerType:t})}function lF(e,t,n){return new e({type:"template_literal",parts:t,...H(n)})}function fF(e,t){return new e({type:"lazy",getter:t})}function dF(e,t){return new e({type:"promise",innerType:t})}function nf(e,t,n){let i=H(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function of(e,t,n){return new e({type:"custom",check:"custom",fn:t,...H(n)})}function uf(e,t){let{case:n,error:i,truthy:r,falsy:o}=H(t),u=new Set(r??["true","1","yes","on","y","enabled"]),a=new Set(o??["false","0","no","off","n","disabled"]),s=e.Pipe??Zi,c=e.Boolean??Mi,l=e.Unknown??wr,f=new l({type:"unknown",checks:[{_zod:{check:d=>{if(typeof d.value=="string"){let p=d.value;n!=="sensitive"&&(p=p.toLowerCase()),u.has(p)?d.value=!0:a.has(p)?d.value=!1:d.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...a],input:d.value,inst:f})}else d.issues.push({code:"invalid_type",expected:"string",input:d.value})},def:{check:"custom"},onattach:[]}}],error:i});return new s({type:"pipe",in:f,out:new c({type:"boolean",error:i}),error:i})}var Nu=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=(...i)=>{let r=this._def.input?eu(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?eu(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=async(...i)=>{let r=this._def.input?await ru(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?ru(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){let n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new sn({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){let n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}};function af(e){return new Nu({type:"function",input:Array.isArray(e?.input)?tf(sn,e?.input):e?.input??oo(Vi,Gn(wr)),output:e?.output??Gn(wr)})}var uo=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Zt,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var i;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(t);if(u)return u.count++,n.schemaPath.includes(t)&&(u.cycle=n.path),u.schema;let a={schema:{},count:1,cycle:void 0};this.seen.set(t,a),t._zod.toJSONSchema&&(a.schema=t._zod.toJSONSchema());let s={...n,schemaPath:[...n.schemaPath,t],path:n.path},c=t._zod.parent;if(c)a.ref=c,this.process(c,s),this.seen.get(c).isParent=!0;else{let d=a.schema;switch(r.type){case"string":{let p=d;p.type="string";let{minimum:m,maximum:D,format:h,patterns:_,contentEncoding:g}=t._zod.bag;if(typeof m=="number"&&(p.minLength=m),typeof D=="number"&&(p.maxLength=D),h&&(p.format=o[h]??h,p.format===""&&delete p.format),g&&(p.contentEncoding=g),_&&_.size>0){let v=[..._];v.length===1?p.pattern=v[0].source:v.length>1&&(a.schema.allOf=[...v.map(C=>({...this.target==="draft-7"?{type:"string"}:{},pattern:C.source}))])}break}case"number":{let p=d,{minimum:m,maximum:D,format:h,multipleOf:_,exclusiveMaximum:g,exclusiveMinimum:v}=t._zod.bag;typeof h=="string"&&h.includes("int")?p.type="integer":p.type="number",typeof v=="number"&&(p.exclusiveMinimum=v),typeof m=="number"&&(p.minimum=m,typeof v=="number"&&(v>=m?delete p.minimum:delete p.exclusiveMinimum)),typeof g=="number"&&(p.exclusiveMaximum=g),typeof D=="number"&&(p.maximum=D,typeof g=="number"&&(g<=D?delete p.maximum:delete p.exclusiveMaximum)),typeof _=="number"&&(p.multipleOf=_);break}case"boolean":{let p=d;p.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"undefined":{let p=d;p.type="null";break}case"null":{d.type="null";break}case"any":break;case"unknown":break;case"never":{d.not={};break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let p=d,{minimum:m,maximum:D}=t._zod.bag;typeof m=="number"&&(p.minItems=m),typeof D=="number"&&(p.maxItems=D),p.type="array",p.items=this.process(r.element,{...s,path:[...s.path,"items"]});break}case"object":{let p=d;p.type="object",p.properties={};let m=r.shape;for(let _ in m)p.properties[_]=this.process(m[_],{...s,path:[...s.path,"properties",_]});let D=new Set(Object.keys(m)),h=new Set([...D].filter(_=>{let g=r.shape[_]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>0&&(p.required=Array.from(h)),r.catchall?._zod.def.type==="never"?p.additionalProperties=!1:r.catchall?r.catchall&&(p.additionalProperties=this.process(r.catchall,{...s,path:[...s.path,"additionalProperties"]})):this.io==="output"&&(p.additionalProperties=!1);break}case"union":{let p=d;p.anyOf=r.options.map((m,D)=>this.process(m,{...s,path:[...s.path,"anyOf",D]}));break}case"intersection":{let p=d,m=this.process(r.left,{...s,path:[...s.path,"allOf",0]}),D=this.process(r.right,{...s,path:[...s.path,"allOf",1]}),h=g=>"allOf"in g&&Object.keys(g).length===1,_=[...h(m)?m.allOf:[m],...h(D)?D.allOf:[D]];p.allOf=_;break}case"tuple":{let p=d;p.type="array";let m=r.items.map((_,g)=>this.process(_,{...s,path:[...s.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?p.prefixItems=m:p.items=m,r.rest){let _=this.process(r.rest,{...s,path:[...s.path,"items"]});this.target==="draft-2020-12"?p.items=_:p.additionalItems=_}r.rest&&(p.items=this.process(r.rest,{...s,path:[...s.path,"items"]}));let{minimum:D,maximum:h}=t._zod.bag;typeof D=="number"&&(p.minItems=D),typeof h=="number"&&(p.maxItems=h);break}case"record":{let p=d;p.type="object",p.propertyNames=this.process(r.keyType,{...s,path:[...s.path,"propertyNames"]}),p.additionalProperties=this.process(r.valueType,{...s,path:[...s.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let p=d,m=Ii(r.entries);m.every(D=>typeof D=="number")&&(p.type="number"),m.every(D=>typeof D=="string")&&(p.type="string"),p.enum=m;break}case"literal":{let p=d,m=[];for(let D of r.values)if(D===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof D=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");m.push(Number(D))}else m.push(D);if(m.length!==0)if(m.length===1){let D=m[0];p.type=D===null?"null":typeof D,p.const=D}else m.every(D=>typeof D=="number")&&(p.type="number"),m.every(D=>typeof D=="string")&&(p.type="string"),m.every(D=>typeof D=="boolean")&&(p.type="string"),m.every(D=>D===null)&&(p.type="null"),p.enum=m;break}case"file":{let p=d,m={type:"string",format:"binary",contentEncoding:"binary"},{minimum:D,maximum:h,mime:_}=t._zod.bag;D!==void 0&&(m.minLength=D),h!==void 0&&(m.maxLength=h),_?_.length===1?(m.contentMediaType=_[0],Object.assign(p,m)):p.anyOf=_.map(g=>({...m,contentMediaType:g})):Object.assign(p,m);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let p=this.process(r.innerType,s);d.anyOf=[p,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,s),a.ref=r.innerType;break}case"success":{let p=d;p.type="boolean";break}case"default":{this.process(r.innerType,s),a.ref=r.innerType,d.default=r.defaultValue;break}case"prefault":{this.process(r.innerType,s),a.ref=r.innerType,this.io==="input"&&(d._prefault=r.defaultValue);break}case"catch":{this.process(r.innerType,s),a.ref=r.innerType;let p;try{p=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}d.default=p;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let p=d,m=t._zod.pattern;if(!m)throw new Error("Pattern not found in template literal");p.type="string",p.pattern=m.source;break}case"pipe":{let p=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(p,s),a.ref=p;break}case"readonly":{this.process(r.innerType,s),a.ref=r.innerType,d.readOnly=!0;break}case"promise":{this.process(r.innerType,s),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,s),a.ref=r.innerType;break}case"lazy":{let p=t._zod.innerType;this.process(p,s),a.ref=p;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}let l=this.metadataRegistry.get(t);return l&&Object.assign(a.schema,l),this.io==="input"&&We(t)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(t).schema}emit(t,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let f=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let D=i.external.registry.get(l[0])?.id;if(D)return{ref:i.external.uri(D)};let h=l[1].defId??l[1].schema.id??`schema${this.counter++}`;return l[1].defId=h,{defId:h,ref:`${i.external.uri("__shared")}#/${f}/${h}`}}if(l[1]===r)return{ref:"#"};let p=`#/${f}/`,m=l[1].schema.id??`__schema${this.counter++}`;return{defId:m,ref:p+m}},u=l=>{if(l[1].schema.$ref)return;let f=l[1],{ref:d,defId:p}=o(l);f.def={...f.schema},p&&(f.defId=p);let m=f.schema;for(let D in m)delete m[D];m.$ref=d};for(let l of this.seen.entries()){let f=l[1];if(t===l[0]){u(l);continue}if(i.external){let p=i.external.registry.get(l[0])?.id;if(t!==l[0]&&p){u(l);continue}}if(this.metadataRegistry.get(l[0])?.id){u(l);continue}if(f.cycle){if(i.cycles==="throw")throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
|
|
35
|
+
path: iss.path ? [${rn(g)}, ...iss.path] : [${rn(g)}]
|
|
36
|
+
})));`),p.write(`newResult[${rn(g)}] = ${v}.value`)}p.write("payload.value = newResult;"),p.write("return payload;");let y=p.compile();return(g,v)=>y(f,g,v)},r,o=Mn,u=!Ii.jitless,s=u&&Ds.value,{catchall:c}=t,l;e._zod.parse=(f,p)=>{l??(l=n.value);let m=f.value;if(!o(m))return f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f;let d=[];if(u&&s&&p?.async===!1&&p.jitless!==!0)r||(r=i(t.shape)),f=r(f,p);else{f.value={};let v=l.shape;for(let C of l.keys){let _=v[C],b=_._zod.run({value:m[C],issues:[]},p),k=_._zod.optin==="optional"&&_._zod.optout==="optional";b instanceof Promise?d.push(b.then(F=>k?Pm(F,f,C,m):fu(F,f,C))):k?Pm(b,f,C,m):fu(b,f,C)}}if(!c)return d.length?Promise.all(d).then(()=>f):f;let D=[],h=l.keySet,y=c._zod,g=y.def.type;for(let v of Object.keys(m)){if(h.has(v))continue;if(g==="never"){D.push(v);continue}let C=y.run({value:m[v],issues:[]},p);C instanceof Promise?d.push(C.then(_=>fu(_,f,v))):fu(C,f,v)}return D.length&&f.issues.push({code:"unrecognized_keys",keys:D,input:m,inst:e}),d.length?Promise.all(d).then(()=>f):f}});function Om(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(o=>Ft(o,i,ze())))}),t}var Du=O("$ZodUnion",(e,t)=>{oe.init(e,t),ye(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ye(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Bi(i.source)).join("|")})$`)}}),e._zod.parse=(n,i)=>{let r=!1,o=[];for(let u of t.options){let a=u._zod.run({value:n.value,issues:[]},i);if(a instanceof Promise)o.push(a),r=!0;else{if(a.issues.length===0)return a;o.push(a)}}return r?Promise.all(o).then(u=>Om(u,n,e,i)):Om(o,n,e,i)}}),el=O("$ZodDiscriminatedUnion",(e,t)=>{Du.init(e,t);let n=e._zod.parse;ye(e._zod,"propValues",()=>{let r={};for(let o of t.options){let u=o._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,s]of Object.entries(u)){r[a]||(r[a]=new Set);for(let c of s)r[a].add(c)}}return r});let i=Oi(()=>{let r=t.options,o=new Map;for(let u of r){let a=u._zod.propValues[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let s of a){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,u)}}return o});e._zod.parse=(r,o)=>{let u=r.value;if(!Mn(u))return r.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),r;let a=i.value.get(u?.[t.discriminator]);return a?a._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:u,path:[t.discriminator],inst:e}),r)}}),tl=O("$ZodIntersection",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n,o=t.left._zod.run({value:r,issues:[]},i),u=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||u instanceof Promise?Promise.all([o,u]).then(([s,c])=>Bm(n,s,c)):Bm(n,o,u)}});function yc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ti(e)&&Ti(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let u=yc(e[o],t[o]);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};r[o]=u.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],u=yc(r,o);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Bm(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),nn(e))return e;let i=yc(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var sn=O("$ZodTuple",(e,t)=>{oe.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let u=r.value;if(!Array.isArray(u))return r.issues.push({input:u,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[];if(!t.rest){let c=u.length>n.length,l=u.length<i-1;if(c||l)return r.issues.push({input:u,inst:e,origin:"array",...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),r}let s=-1;for(let c of n){if(s++,s>=u.length&&s>=i)continue;let l=c._zod.run({value:u[s],issues:[]},o);l instanceof Promise?a.push(l.then(f=>du(f,r,s))):du(l,r,s)}if(t.rest){let c=u.slice(n.length);for(let l of c){s++;let f=t.rest._zod.run({value:l,issues:[]},o);f instanceof Promise?a.push(f.then(p=>du(p,r,s))):du(f,r,s)}}return a.length?Promise.all(a).then(()=>r):r}});function du(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues)),t.value[n]=e.value}var rl=O("$ZodRecord",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Ti(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let s of u)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){let c=t.valueType._zod.run({value:r[s],issues:[]},i);c instanceof Promise?o.push(c.then(l=>{l.issues.length&&n.issues.push(...pt(s,l.issues)),n.value[s]=l.value})):(c.issues.length&&n.issues.push(...pt(s,c.issues)),n.value[s]=c.value)}let a;for(let s in r)u.has(s)||(a=a??[],a.push(s));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:a})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let a=t.keyType._zod.run({value:u,issues:[]},i);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(c=>Ft(c,i,ze())),input:u,path:[u],inst:e}),n.value[a.value]=a.value;continue}let s=t.valueType._zod.run({value:r[u],issues:[]},i);s instanceof Promise?o.push(s.then(c=>{c.issues.length&&n.issues.push(...pt(u,c.issues)),n.value[a.value]=c.value})):(s.issues.length&&n.issues.push(...pt(u,s.issues)),n.value[a.value]=s.value)}}return o.length?Promise.all(o).then(()=>n):n}}),nl=O("$ZodMap",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[u,a]of r){let s=t.keyType._zod.run({value:u,issues:[]},i),c=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise||c instanceof Promise?o.push(Promise.all([s,c]).then(([l,f])=>{Tm(l,f,n,u,r,e,i)})):Tm(s,c,n,u,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function Tm(e,t,n,i,r,o,u){e.issues.length&&(Ni.has(typeof i)?n.issues.push(...pt(i,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(a=>Ft(a,u,ze()))})),t.issues.length&&(Ni.has(typeof i)?n.issues.push(...pt(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(a=>Ft(a,u,ze()))})),n.value.set(e.value,t.value)}var il=O("$ZodSet",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let u of r){let a=t.valueType._zod.run({value:u,issues:[]},i);a instanceof Promise?o.push(a.then(s=>Nm(s,n))):Nm(a,n)}return o.length?Promise.all(o).then(()=>n):n}});function Nm(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var ol=O("$ZodEnum",(e,t)=>{oe.init(e,t);let n=Pi(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=>Ni.has(typeof i)).map(i=>typeof i=="string"?nr(i):i.toString()).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),ul=O("$ZodLiteral",(e,t)=>{oe.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?nr(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),al=O("$ZodFile",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Gi=O("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(u=>(n.value=u,n));if(r instanceof Promise)throw new Vt;return n.value=r,n}}),sl=O("$ZodOptional",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ye(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bi(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>n.value===void 0?n:t.innerType._zod.run(n,i)}),cl=O("$ZodNullable",(e,t)=>{oe.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bi(n.source)}|null)$`):void 0}),ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),ll=O("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Rm(o,t)):Rm(r,t)}});function Rm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var fl=O("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),dl=O("$ZodNonOptional",(e,t)=>{oe.init(e,t),ye(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>jm(o,e)):jm(r,e)}});function jm(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var pl=O("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),ml=O("$ZodCatch",(e,t)=>{oe.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(u=>Ft(u,i,ze()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>Ft(o,i,ze()))},input:n.value}),n.issues=[]),n)}}),Dl=O("$ZodNaN",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Wi=O("$ZodPipe",(e,t)=>{oe.init(e,t),ye(e._zod,"values",()=>t.in._zod.values),ye(e._zod,"optin",()=>t.in._zod.optin),ye(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,i)=>{let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Lm(o,t,i)):Lm(r,t,i)}});function Lm(e,t,n){return nn(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var hl=O("$ZodReadonly",(e,t)=>{oe.init(e,t),ye(e._zod,"propValues",()=>t.innerType._zod.propValues),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(zm):zm(r)}});function zm(e){return e.value=Object.freeze(e.value),e}var gl=O("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let n=[];for(let i of t.parts)if(i instanceof oe){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,u=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,u))}else if(i===null||hs.has(typeof i))n.push(nr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),i)}),vl=O("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),yl=O("$ZodLazy",(e,t)=>{oe.init(e,t),ye(e._zod,"innerType",()=>t.getter()),ye(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ye(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ye(e._zod,"optin",()=>e._zod.innerType._zod.optin),ye(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),_l=O("$ZodCustom",(e,t)=>{Be.init(e,t),oe.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Um(o,n,i,e));Um(r,n,i,e)}});function Um(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(_s(r))}}var Ki={};br(Ki,{ar:()=>Gm,az:()=>Wm,be:()=>Hm,ca:()=>qm,cs:()=>Ym,de:()=>Jm,en:()=>hu,es:()=>Xm,fa:()=>Qm,fi:()=>eD,fr:()=>tD,frCA:()=>rD,he:()=>nD,hu:()=>iD,id:()=>oD,it:()=>uD,ja:()=>aD,kh:()=>sD,ko:()=>cD,mk:()=>lD,ms:()=>fD,nl:()=>dD,no:()=>pD,ota:()=>mD,pl:()=>hD,ps:()=>DD,pt:()=>gD,ru:()=>yD,sl:()=>_D,sv:()=>ED,ta:()=>FD,th:()=>CD,tr:()=>bD,ua:()=>AD,ur:()=>wD,vi:()=>SD,zhCN:()=>$D,zhTW:()=>kD});var lE=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return r=>{switch(r.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ee(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${u.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${i[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${U(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Gm(){return{localeError:lE()}}var fE=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ee(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${u.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${u.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Wm(){return{localeError:fE()}}function Km(e,t,n,i){let r=Math.abs(e),o=r%10,u=r%100;return u>=11&&u<=19?i:o===1?t:o>=2&&o<=4?n:i}var dE=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ee(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);if(u){let a=Number(r.maximum),s=Km(a,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);if(u){let a=Number(r.minimum),s=Km(a,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Hm(){return{localeError:dE()}}var pE=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${ee(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${U(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",u=t(r.origin);return u?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${u.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",u=t(r.origin);return u?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${u.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function qm(){return{localeError:pE()}}var mE=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ee(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${i[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${U(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Ym(){return{localeError:mE()}}var DE=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ee(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${u.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${u.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Jm(){return{localeError:DE()}}var hE=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},gE=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${hE(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${ee(i.values[0])}`:`Invalid option: expected one of ${U(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function hu(){return{localeError:gE()}}var vE=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${ee(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${u.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${u.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function Xm(){return{localeError:vE()}}var yE=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ee(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${U(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${u.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${U(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Qm(){return{localeError:yE()}}var _E=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ee(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Liian suuri: ${u.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${u.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Liian pieni: ${u.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${u.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${U(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function eD(){return{localeError:_E()}}var EE=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${n(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${ee(r.values[0])} attendu`:`Option invalide : une valeur parmi ${U(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Trop grand : ${r.origin??"valeur"} doit ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Trop petit : ${r.origin} doit ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${U(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function tD(){return{localeError:EE()}}var FE=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${ee(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",u=t(r.origin);return u?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${u.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",u=t(r.origin);return u?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${u.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${U(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function rD(){return{localeError:FE()}}var CE=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${ee(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${u.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${u.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function nD(){return{localeError:CE()}}var bE=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ee(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${u.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${u.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function iD(){return{localeError:bE()}}var AE=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${ee(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${u.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function oD(){return{localeError:AE()}}var wE=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${ee(r.values[0])}`:`Opzione non valida: atteso uno tra ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${u.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${u.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${U(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function uD(){return{localeError:wE()}}var SE=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ee(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${U(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",u=t(r.origin);return u?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${u.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",u=t(r.origin);return u?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${u.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${U(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function aD(){return{localeError:SE()}}var $E=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return r=>{switch(r.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ee(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${u.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${u.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${U(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function sD(){return{localeError:$E()}}var kE=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ee(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${U(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",u=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),s=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${u}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${u}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",u=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),s=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${u}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${u}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${U(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function cD(){return{localeError:kE()}}var IE=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${ee(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${u.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function lD(){return{localeError:IE()}}var xE=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${ee(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Terlalu besar: dijangka ${r.origin??"nilai"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Terlalu kecil: dijangka ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${U(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function fD(){return{localeError:xE()}}var PE=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${ee(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${u.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${u.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function dD(){return{localeError:PE()}}var OE=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${ee(r.values[0])}`:`Ugyldig valg: forventet en av ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${u.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${u.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function pD(){return{localeError:OE()}}var BE=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${ee(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${u.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${u.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function mD(){return{localeError:BE()}}var TE=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0627\u0631\u06D0";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return r=>{switch(r.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${n(r.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ee(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${U(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${u.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${U(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function DD(){return{localeError:TE()}}var NE=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ee(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function hD(){return{localeError:NE()}}var RE=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${ee(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${u.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${u.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${i[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${U(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function gD(){return{localeError:RE()}}function vD(e,t,n,i){let r=Math.abs(e),o=r%10,u=r%100;return u>=11&&u<=19?i:o===1?t:o>=2&&o<=4?n:i}var jE=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ee(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);if(u){let a=Number(r.maximum),s=vD(a,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);if(u){let a=Number(r.minimum),s=vD(a,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function yD(){return{localeError:jE()}}var LE=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ee(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${u.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${u.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${U(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function _D(){return{localeError:LE()}}var zE=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ee(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${u.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${u.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${U(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function ED(){return{localeError:zE()}}var UE=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ee(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${U(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${u.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${u.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function FD(){return{localeError:UE()}}var ME=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return r=>{switch(r.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ee(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",u=t(r.origin);return u?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${u.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",u=t(r.origin);return u?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${u.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${U(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function CD(){return{localeError:ME()}}var VE=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},ZE=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${VE(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ee(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${U(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function bD(){return{localeError:ZE()}}var GE=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ee(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${U(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function AD(){return{localeError:GE()}}var WE=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ee(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${U(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${u.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${u.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${U(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function wD(){return{localeError:WE()}}var KE=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ee(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${u.verb} ${o}${r.maximum.toString()} ${u.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${u.verb} ${o}${r.minimum.toString()} ${u.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${i[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${U(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function SD(){return{localeError:KE()}}var HE=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ee(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${u.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${u.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${i[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${U(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function $D(){return{localeError:HE()}}var qE=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ee(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${U(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",u=t(r.origin);return u?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${u.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",u=t(r.origin);return u?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${u.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${U(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function kD(){return{localeError:qE()}}var El=Symbol("ZodOutput"),Fl=Symbol("ZodInput"),Wn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function gu(){return new Wn}var Zt=gu();function Cl(e,t){return new e({type:"string",...H(t)})}function bl(e,t){return new e({type:"string",coerce:!0,...H(t)})}function vu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...H(t)})}function Hi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...H(t)})}function yu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...H(t)})}function _u(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...H(t)})}function Eu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...H(t)})}function Fu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...H(t)})}function Cu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...H(t)})}function bu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...H(t)})}function Au(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...H(t)})}function wu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...H(t)})}function Su(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...H(t)})}function $u(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...H(t)})}function ku(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...H(t)})}function Iu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...H(t)})}function xu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...H(t)})}function Pu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...H(t)})}function Ou(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...H(t)})}function Bu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...H(t)})}function Tu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...H(t)})}function Nu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...H(t)})}function Ru(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...H(t)})}function ju(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...H(t)})}var Al={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wl(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...H(t)})}function Sl(e,t){return new e({type:"string",format:"date",check:"string_format",...H(t)})}function $l(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...H(t)})}function kl(e,t){return new e({type:"string",format:"duration",check:"string_format",...H(t)})}function Il(e,t){return new e({type:"number",checks:[],...H(t)})}function xl(e,t){return new e({type:"number",coerce:!0,checks:[],...H(t)})}function Pl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...H(t)})}function Ol(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...H(t)})}function Bl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...H(t)})}function Tl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...H(t)})}function Nl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...H(t)})}function Rl(e,t){return new e({type:"boolean",...H(t)})}function jl(e,t){return new e({type:"boolean",coerce:!0,...H(t)})}function Ll(e,t){return new e({type:"bigint",...H(t)})}function zl(e,t){return new e({type:"bigint",coerce:!0,...H(t)})}function Ul(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...H(t)})}function Ml(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...H(t)})}function Vl(e,t){return new e({type:"symbol",...H(t)})}function Zl(e,t){return new e({type:"undefined",...H(t)})}function Gl(e,t){return new e({type:"null",...H(t)})}function Wl(e){return new e({type:"any"})}function Kn(e){return new e({type:"unknown"})}function Kl(e,t){return new e({type:"never",...H(t)})}function Hl(e,t){return new e({type:"void",...H(t)})}function ql(e,t){return new e({type:"date",...H(t)})}function Yl(e,t){return new e({type:"date",coerce:!0,...H(t)})}function Jl(e,t){return new e({type:"nan",...H(t)})}function ir(e,t){return new cu({check:"less_than",...H(t),value:e,inclusive:!1})}function At(e,t){return new cu({check:"less_than",...H(t),value:e,inclusive:!0})}function or(e,t){return new lu({check:"greater_than",...H(t),value:e,inclusive:!1})}function mt(e,t){return new lu({check:"greater_than",...H(t),value:e,inclusive:!0})}function Xl(e){return or(0,e)}function Ql(e){return ir(0,e)}function ef(e){return At(0,e)}function tf(e){return mt(0,e)}function cn(e,t){return new ec({check:"multiple_of",...H(t),value:e})}function Hn(e,t){return new nc({check:"max_size",...H(t),maximum:e})}function ln(e,t){return new ic({check:"min_size",...H(t),minimum:e})}function qi(e,t){return new oc({check:"size_equals",...H(t),size:e})}function qn(e,t){return new uc({check:"max_length",...H(t),maximum:e})}function wr(e,t){return new ac({check:"min_length",...H(t),minimum:e})}function Yn(e,t){return new sc({check:"length_equals",...H(t),length:e})}function Yi(e,t){return new cc({check:"string_format",format:"regex",...H(t),pattern:e})}function Ji(e){return new lc({check:"string_format",format:"lowercase",...H(e)})}function Xi(e){return new fc({check:"string_format",format:"uppercase",...H(e)})}function Qi(e,t){return new dc({check:"string_format",format:"includes",...H(t),includes:e})}function eo(e,t){return new pc({check:"string_format",format:"starts_with",...H(t),prefix:e})}function to(e,t){return new mc({check:"string_format",format:"ends_with",...H(t),suffix:e})}function rf(e,t,n){return new Dc({check:"property",property:e,schema:t,...H(n)})}function ro(e,t){return new hc({check:"mime_type",mime:e,...H(t)})}function ur(e){return new gc({check:"overwrite",tx:e})}function no(e){return ur(t=>t.normalize(e))}function io(){return ur(e=>e.trim())}function oo(){return ur(e=>e.toLowerCase())}function uo(){return ur(e=>e.toUpperCase())}function ao(e,t,n){return new e({type:"array",element:t,...H(n)})}function YE(e,t,n){return new e({type:"union",options:t,...H(n)})}function JE(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...H(i)})}function XE(e,t,n){return new e({type:"intersection",left:t,right:n})}function nf(e,t,n,i){let r=n instanceof oe,o=r?i:n,u=r?n:null;return new e({type:"tuple",items:t,rest:u,...H(o)})}function QE(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...H(i)})}function eF(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...H(i)})}function tF(e,t,n){return new e({type:"set",valueType:t,...H(n)})}function rF(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...H(n)})}function nF(e,t,n){return new e({type:"enum",entries:t,...H(n)})}function iF(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...H(n)})}function of(e,t){return new e({type:"file",...H(t)})}function oF(e,t){return new e({type:"transform",transform:t})}function uF(e,t){return new e({type:"optional",innerType:t})}function aF(e,t){return new e({type:"nullable",innerType:t})}function sF(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function cF(e,t,n){return new e({type:"nonoptional",innerType:t,...H(n)})}function lF(e,t){return new e({type:"success",innerType:t})}function fF(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function dF(e,t,n){return new e({type:"pipe",in:t,out:n})}function pF(e,t){return new e({type:"readonly",innerType:t})}function mF(e,t,n){return new e({type:"template_literal",parts:t,...H(n)})}function DF(e,t){return new e({type:"lazy",getter:t})}function hF(e,t){return new e({type:"promise",innerType:t})}function uf(e,t,n){let i=H(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function af(e,t,n){return new e({type:"custom",check:"custom",fn:t,...H(n)})}function sf(e,t){let{case:n,error:i,truthy:r,falsy:o}=H(t),u=r??["true","1","yes","on","y","enabled"],a=o??["false","0","no","off","n","disabled"];n!=="sensitive"&&(u=u.map(y=>typeof y=="string"?y.toLowerCase():y),a=a.map(y=>typeof y=="string"?y.toLowerCase():y));let s=new Set(u),c=new Set(a),l=e.Pipe??Wi,f=e.Boolean??Vi,p=e.String??an,m=e.Transform??Gi,d=new m({type:"transform",transform:(y,g)=>{let v=y;return n!=="sensitive"&&(v=v.toLowerCase()),s.has(v)?!0:c.has(v)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...c],input:g.value,inst:d}),{})},error:i}),D=new l({type:"pipe",in:new p({type:"string",error:i}),out:d,error:i});return new l({type:"pipe",in:D,out:new f({type:"boolean",error:i}),error:i})}var Lu=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=(...i)=>{let r=this._def.input?nu(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?nu(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=async(...i)=>{let r=this._def.input?await ou(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?ou(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){let n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new sn({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){let n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}};function cf(e){return new Lu({type:"function",input:Array.isArray(e?.input)?nf(sn,e?.input):e?.input??ao(Zi,Kn(Gn)),output:e?.output??Kn(Gn)})}var so=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Zt,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var i;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(t);if(u)return u.count++,n.schemaPath.includes(t)&&(u.cycle=n.path),u.schema;let a={schema:{},count:1,cycle:void 0};this.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let f={...n,schemaPath:[...n.schemaPath,t],path:n.path},p=t._zod.parent;if(p)a.ref=p,this.process(p,f),this.seen.get(p).isParent=!0;else{let m=a.schema;switch(r.type){case"string":{let d=m;d.type="string";let{minimum:D,maximum:h,format:y,patterns:g,contentEncoding:v}=t._zod.bag;if(typeof D=="number"&&(d.minLength=D),typeof h=="number"&&(d.maxLength=h),y&&(d.format=o[y]??y,d.format===""&&delete d.format),v&&(d.contentEncoding=v),g&&g.size>0){let C=[...g];C.length===1?d.pattern=C[0].source:C.length>1&&(a.schema.allOf=[...C.map(_=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_.source}))])}break}case"number":{let d=m,{minimum:D,maximum:h,format:y,multipleOf:g,exclusiveMaximum:v,exclusiveMinimum:C}=t._zod.bag;typeof y=="string"&&y.includes("int")?d.type="integer":d.type="number",typeof C=="number"&&(d.exclusiveMinimum=C),typeof D=="number"&&(d.minimum=D,typeof C=="number"&&(C>=D?delete d.minimum:delete d.exclusiveMinimum)),typeof v=="number"&&(d.exclusiveMaximum=v),typeof h=="number"&&(d.maximum=h,typeof v=="number"&&(v<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof g=="number"&&(d.multipleOf=g);break}case"boolean":{let d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"undefined":{let d=m;d.type="null";break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"never":{m.not={};break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let d=m,{minimum:D,maximum:h}=t._zod.bag;typeof D=="number"&&(d.minItems=D),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(r.element,{...f,path:[...f.path,"items"]});break}case"object":{let d=m;d.type="object",d.properties={};let D=r.shape;for(let g in D)d.properties[g]=this.process(D[g],{...f,path:[...f.path,"properties",g]});let h=new Set(Object.keys(D)),y=new Set([...h].filter(g=>{let v=r.shape[g]._zod;return this.io==="input"?v.optin===void 0:v.optout===void 0}));y.size>0&&(d.required=Array.from(y)),r.catchall?._zod.def.type==="never"?d.additionalProperties=!1:r.catchall?r.catchall&&(d.additionalProperties=this.process(r.catchall,{...f,path:[...f.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{let d=m;d.anyOf=r.options.map((D,h)=>this.process(D,{...f,path:[...f.path,"anyOf",h]}));break}case"intersection":{let d=m,D=this.process(r.left,{...f,path:[...f.path,"allOf",0]}),h=this.process(r.right,{...f,path:[...f.path,"allOf",1]}),y=v=>"allOf"in v&&Object.keys(v).length===1,g=[...y(D)?D.allOf:[D],...y(h)?h.allOf:[h]];d.allOf=g;break}case"tuple":{let d=m;d.type="array";let D=r.items.map((g,v)=>this.process(g,{...f,path:[...f.path,"prefixItems",v]}));if(this.target==="draft-2020-12"?d.prefixItems=D:d.items=D,r.rest){let g=this.process(r.rest,{...f,path:[...f.path,"items"]});this.target==="draft-2020-12"?d.items=g:d.additionalItems=g}r.rest&&(d.items=this.process(r.rest,{...f,path:[...f.path,"items"]}));let{minimum:h,maximum:y}=t._zod.bag;typeof h=="number"&&(d.minItems=h),typeof y=="number"&&(d.maxItems=y);break}case"record":{let d=m;d.type="object",d.propertyNames=this.process(r.keyType,{...f,path:[...f.path,"propertyNames"]}),d.additionalProperties=this.process(r.valueType,{...f,path:[...f.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let d=m,D=Pi(r.entries);D.every(h=>typeof h=="number")&&(d.type="number"),D.every(h=>typeof h=="string")&&(d.type="string"),d.enum=D;break}case"literal":{let d=m,D=[];for(let h of r.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");D.push(Number(h))}else D.push(h);if(D.length!==0)if(D.length===1){let h=D[0];d.type=h===null?"null":typeof h,d.const=h}else D.every(h=>typeof h=="number")&&(d.type="number"),D.every(h=>typeof h=="string")&&(d.type="string"),D.every(h=>typeof h=="boolean")&&(d.type="string"),D.every(h=>h===null)&&(d.type="null"),d.enum=D;break}case"file":{let d=m,D={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:y,mime:g}=t._zod.bag;h!==void 0&&(D.minLength=h),y!==void 0&&(D.maxLength=y),g?g.length===1?(D.contentMediaType=g[0],Object.assign(d,D)):d.anyOf=g.map(v=>({...D,contentMediaType:v})):Object.assign(d,D);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let d=this.process(r.innerType,f);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,f),a.ref=r.innerType;break}case"success":{let d=m;d.type="boolean";break}case"default":{this.process(r.innerType,f),a.ref=r.innerType,m.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,f),a.ref=r.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,f),a.ref=r.innerType;let d;try{d=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let d=m,D=t._zod.pattern;if(!D)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=D.source;break}case"pipe":{let d=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(d,f),a.ref=d;break}case"readonly":{this.process(r.innerType,f),a.ref=r.innerType,m.readOnly=!0;break}case"promise":{this.process(r.innerType,f),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,f),a.ref=r.innerType;break}case"lazy":{let d=t._zod.innerType;this.process(d,f),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let c=this.metadataRegistry.get(t);return c&&Object.assign(a.schema,c),this.io==="input"&&We(t)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(t).schema}emit(t,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let f=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let D=i.external.registry.get(l[0])?.id;if(D)return{ref:i.external.uri(D)};let h=l[1].defId??l[1].schema.id??`schema${this.counter++}`;return l[1].defId=h,{defId:h,ref:`${i.external.uri("__shared")}#/${f}/${h}`}}if(l[1]===r)return{ref:"#"};let m=`#/${f}/`,d=l[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},u=l=>{if(l[1].schema.$ref)return;let f=l[1],{ref:p,defId:m}=o(l);f.def={...f.schema},m&&(f.defId=m);let d=f.schema;for(let D in d)delete d[D];d.$ref=p};for(let l of this.seen.entries()){let f=l[1];if(t===l[0]){u(l);continue}if(i.external){let m=i.external.registry.get(l[0])?.id;if(t!==l[0]&&m){u(l);continue}}if(this.metadataRegistry.get(l[0])?.id){u(l);continue}if(f.cycle){if(i.cycles==="throw")throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
|
|
37
37
|
|
|
38
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);i.cycles==="ref"&&u(l);continue}if(f.count>1&&i.reused==="ref"){u(l);continue}}let a=(l,f)=>{let d=this.seen.get(l),p=d.def??d.schema,m={...p};if(d.ref===null)return;let D=d.ref;if(d.ref=null,D){a(D,f);let h=this.seen.get(D).schema;h.$ref&&f.target==="draft-7"?(p.allOf=p.allOf??[],p.allOf.push(h)):(Object.assign(p,h),Object.assign(p,m))}d.isParent||this.override({zodSchema:l,jsonSchema:p})};for(let l of[...this.seen.entries()].reverse())a(l[0],{target:this.target});let s={};this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),Object.assign(s,r.def);let c=i.external?.defs??{};for(let l of this.seen.entries()){let f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}!i.external&&Object.keys(c).length>0&&(this.target==="draft-2020-12"?s.$defs=c:s.definitions=c);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}};function sf(e,t){if(e instanceof Zn){let i=new uo(t),r={};for(let a of e._idmap.entries()){let[s,c]=a;i.process(c)}let o={},u={registry:e,uri:t?.uri||(a=>a),defs:r};for(let a of e._idmap.entries()){let[s,c]=a;o[s]=i.emit(c,{...t,external:u})}if(Object.keys(r).length>0){let a=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[a]:r}}return{schemas:o}}let n=new uo(t);return n.process(e),n.emit(e,t)}function We(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return We(r.element,n);case"object":{for(let o in r.shape)if(We(r.shape[o],n))return!0;return!1}case"union":{for(let o of r.options)if(We(o,n))return!0;return!1}case"intersection":return We(r.left,n)||We(r.right,n);case"tuple":{for(let o of r.items)if(We(o,n))return!0;return!!(r.rest&&We(r.rest,n))}case"record":return We(r.keyType,n)||We(r.valueType,n);case"map":return We(r.keyType,n)||We(r.valueType,n);case"set":return We(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return We(r.innerType,n);case"lazy":return We(r.getter(),n);case"default":return We(r.innerType,n);case"prefault":return We(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return We(r.in,n)||We(r.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var SD={};var Uu={};br(Uu,{ZodISODate:()=>ju,ZodISODateTime:()=>Ru,ZodISODuration:()=>zu,ZodISOTime:()=>Lu,date:()=>lf,datetime:()=>cf,duration:()=>df,time:()=>ff});var Ru=O("ZodISODateTime",(e,t)=>{kc.init(e,t),we.init(e,t)});function cf(e){return bl(Ru,e)}var ju=O("ZodISODate",(e,t)=>{Ic.init(e,t),we.init(e,t)});function lf(e){return Al(ju,e)}var Lu=O("ZodISOTime",(e,t)=>{xc.init(e,t),we.init(e,t)});function ff(e){return wl(Lu,e)}var zu=O("ZodISODuration",(e,t)=>{Pc.init(e,t),we.init(e,t)});function df(e){return Sl(zu,e)}var kD=(e,t)=>{Ri.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Li(e,n)},flatten:{value:n=>ji(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},pf=O("ZodError",kD),qn=O("ZodError",kD,{Parent:Error});var mf=Qo(qn),Df=tu(qn),hf=nu(qn),gf=iu(qn);var de=O("ZodType",(e,t)=>(oe.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>Et(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>mf(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>hf(e,n,i),e.parseAsync=async(n,i)=>Df(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>gf(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=>e.check(Dh(n,i)),e.superRefine=n=>e.check(hh(n)),e.overwrite=n=>e.check(ur(n)),e.optional=()=>Zu(e),e.nullable=()=>Gu(e),e.nullish=()=>Zu(Gu(e)),e.nonoptional=n=>nh(e,n),e.array=()=>zf(e),e.or=n=>Ju([e,n]),e.and=n=>MD(e,n),e.transform=n=>Wu(e,Vf(n)),e.default=n=>eh(e,n),e.prefault=n=>rh(e,n),e.catch=n=>uh(e,n),e.pipe=n=>Wu(e,n),e.readonly=()=>ch(e),e.describe=n=>{let i=e.clone();return Zt.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Zt.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Zt.get(e);let i=e.clone();return Zt.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),_f=O("_ZodString",(e,t)=>{Ui.init(e,t),de.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Hi(...i)),e.includes=(...i)=>e.check(Ji(...i)),e.startsWith=(...i)=>e.check(Xi(...i)),e.endsWith=(...i)=>e.check(Qi(...i)),e.min=(...i)=>e.check(Sr(...i)),e.max=(...i)=>e.check(Kn(...i)),e.length=(...i)=>e.check(Hn(...i)),e.nonempty=(...i)=>e.check(Sr(1,...i)),e.lowercase=i=>e.check(qi(i)),e.uppercase=i=>e.check(Yi(i)),e.trim=()=>e.check(ro()),e.normalize=(...i)=>e.check(to(...i)),e.toLowerCase=()=>e.check(no()),e.toUpperCase=()=>e.check(io())}),Ku=O("ZodString",(e,t)=>{Ui.init(e,t),_f.init(e,t),e.email=n=>e.check(Du(Ef,n)),e.url=n=>e.check(_u(Ff,n)),e.jwt=n=>e.check(Tu(Rf,n)),e.emoji=n=>e.check(Eu(Cf,n)),e.guid=n=>e.check(Wi(Mu,n)),e.uuid=n=>e.check(hu(sr,n)),e.uuidv4=n=>e.check(gu(sr,n)),e.uuidv6=n=>e.check(vu(sr,n)),e.uuidv7=n=>e.check(yu(sr,n)),e.nanoid=n=>e.check(Fu(bf,n)),e.guid=n=>e.check(Wi(Mu,n)),e.cuid=n=>e.check(Cu(Af,n)),e.cuid2=n=>e.check(bu(wf,n)),e.ulid=n=>e.check(Au(Sf,n)),e.base64=n=>e.check(Pu(Bf,n)),e.base64url=n=>e.check(Ou(Tf,n)),e.xid=n=>e.check(wu($f,n)),e.ksuid=n=>e.check(Su(kf,n)),e.ipv4=n=>e.check($u(If,n)),e.ipv6=n=>e.check(ku(xf,n)),e.cidrv4=n=>e.check(Iu(Pf,n)),e.cidrv6=n=>e.check(xu(Of,n)),e.e164=n=>e.check(Bu(Nf,n)),e.datetime=n=>e.check(cf(n)),e.date=n=>e.check(lf(n)),e.time=n=>e.check(ff(n)),e.duration=n=>e.check(df(n))});function vf(e){return Fl(Ku,e)}var we=O("ZodStringFormat",(e,t)=>{Ae.init(e,t),_f.init(e,t)}),Ef=O("ZodEmail",(e,t)=>{_c.init(e,t),we.init(e,t)});function DF(e){return Du(Ef,e)}var Mu=O("ZodGUID",(e,t)=>{vc.init(e,t),we.init(e,t)});function hF(e){return Wi(Mu,e)}var sr=O("ZodUUID",(e,t)=>{yc.init(e,t),we.init(e,t)});function gF(e){return hu(sr,e)}function vF(e){return gu(sr,e)}function yF(e){return vu(sr,e)}function _F(e){return yu(sr,e)}var Ff=O("ZodURL",(e,t)=>{Ec.init(e,t),we.init(e,t)});function EF(e){return _u(Ff,e)}var Cf=O("ZodEmoji",(e,t)=>{Fc.init(e,t),we.init(e,t)});function FF(e){return Eu(Cf,e)}var bf=O("ZodNanoID",(e,t)=>{Cc.init(e,t),we.init(e,t)});function CF(e){return Fu(bf,e)}var Af=O("ZodCUID",(e,t)=>{bc.init(e,t),we.init(e,t)});function bF(e){return Cu(Af,e)}var wf=O("ZodCUID2",(e,t)=>{Ac.init(e,t),we.init(e,t)});function AF(e){return bu(wf,e)}var Sf=O("ZodULID",(e,t)=>{wc.init(e,t),we.init(e,t)});function wF(e){return Au(Sf,e)}var $f=O("ZodXID",(e,t)=>{Sc.init(e,t),we.init(e,t)});function SF(e){return wu($f,e)}var kf=O("ZodKSUID",(e,t)=>{$c.init(e,t),we.init(e,t)});function $F(e){return Su(kf,e)}var If=O("ZodIPv4",(e,t)=>{Oc.init(e,t),we.init(e,t)});function kF(e){return $u(If,e)}var xf=O("ZodIPv6",(e,t)=>{Bc.init(e,t),we.init(e,t)});function IF(e){return ku(xf,e)}var Pf=O("ZodCIDRv4",(e,t)=>{Tc.init(e,t),we.init(e,t)});function xF(e){return Iu(Pf,e)}var Of=O("ZodCIDRv6",(e,t)=>{Nc.init(e,t),we.init(e,t)});function PF(e){return xu(Of,e)}var Bf=O("ZodBase64",(e,t)=>{jc.init(e,t),we.init(e,t)});function OF(e){return Pu(Bf,e)}var Tf=O("ZodBase64URL",(e,t)=>{Lc.init(e,t),we.init(e,t)});function BF(e){return Ou(Tf,e)}var Nf=O("ZodE164",(e,t)=>{zc.init(e,t),we.init(e,t)});function TF(e){return Bu(Nf,e)}var Rf=O("ZodJWT",(e,t)=>{Uc.init(e,t),we.init(e,t)});function NF(e){return Tu(Rf,e)}var so=O("ZodNumber",(e,t)=>{lu.init(e,t),de.init(e,t),e.gt=(i,r)=>e.check(or(i,r)),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.lt=(i,r)=>e.check(ir(i,r)),e.lte=(i,r)=>e.check(At(i,r)),e.max=(i,r)=>e.check(At(i,r)),e.int=i=>e.check(yf(i)),e.safe=i=>e.check(yf(i)),e.positive=i=>e.check(or(0,i)),e.nonnegative=i=>e.check(mt(0,i)),e.negative=i=>e.check(ir(0,i)),e.nonpositive=i=>e.check(At(0,i)),e.multipleOf=(i,r)=>e.check(cn(i,r)),e.step=(i,r)=>e.check(cn(i,r)),e.finite=()=>e;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});function ID(e){return $l(so,e)}var Yn=O("ZodNumberFormat",(e,t)=>{Mc.init(e,t),so.init(e,t)});function yf(e){return Il(Yn,e)}function RF(e){return xl(Yn,e)}function jF(e){return Pl(Yn,e)}function LF(e){return Ol(Yn,e)}function zF(e){return Bl(Yn,e)}var co=O("ZodBoolean",(e,t)=>{Mi.init(e,t),de.init(e,t)});function xD(e){return Tl(co,e)}var lo=O("ZodBigInt",(e,t)=>{fu.init(e,t),de.init(e,t),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.gt=(i,r)=>e.check(or(i,r)),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.lt=(i,r)=>e.check(ir(i,r)),e.lte=(i,r)=>e.check(At(i,r)),e.max=(i,r)=>e.check(At(i,r)),e.positive=i=>e.check(or(BigInt(0),i)),e.negative=i=>e.check(ir(BigInt(0),i)),e.nonpositive=i=>e.check(At(BigInt(0),i)),e.nonnegative=i=>e.check(mt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(cn(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function UF(e){return Rl(lo,e)}var jf=O("ZodBigIntFormat",(e,t)=>{Vc.init(e,t),lo.init(e,t)});function MF(e){return Ll(jf,e)}function VF(e){return zl(jf,e)}var PD=O("ZodSymbol",(e,t)=>{Zc.init(e,t),de.init(e,t)});function ZF(e){return Ul(PD,e)}var OD=O("ZodUndefined",(e,t)=>{Gc.init(e,t),de.init(e,t)});function GF(e){return Ml(OD,e)}var BD=O("ZodNull",(e,t)=>{Wc.init(e,t),de.init(e,t)});function TD(e){return Vl(BD,e)}var ND=O("ZodAny",(e,t)=>{Kc.init(e,t),de.init(e,t)});function WF(){return Zl(ND)}var Lf=O("ZodUnknown",(e,t)=>{wr.init(e,t),de.init(e,t)});function Vu(){return Gn(Lf)}var RD=O("ZodNever",(e,t)=>{Hc.init(e,t),de.init(e,t)});function Hu(e){return Gl(RD,e)}var jD=O("ZodVoid",(e,t)=>{qc.init(e,t),de.init(e,t)});function KF(e){return Wl(jD,e)}var qu=O("ZodDate",(e,t)=>{Yc.init(e,t),de.init(e,t),e.min=(i,r)=>e.check(mt(i,r)),e.max=(i,r)=>e.check(At(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});function HF(e){return Kl(qu,e)}var LD=O("ZodArray",(e,t)=>{Vi.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(Sr(n,i)),e.nonempty=n=>e.check(Sr(1,n)),e.max=(n,i)=>e.check(Kn(n,i)),e.length=(n,i)=>e.check(Hn(n,i)),e.unwrap=()=>e.element});function zf(e,t){return oo(LD,e,t)}function qF(e){let t=e._zod.def.shape;return qD(Object.keys(t))}var Yu=O("ZodObject",(e,t)=>{Jc.init(e,t),de.init(e,t),J.defineLazy(e,"shape",()=>Object.fromEntries(Object.entries(e._zod.def.shape))),e.keyof=()=>KD(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Vu()}),e.loose=()=>e.clone({...e._zod.def,catchall:Vu()}),e.strict=()=>e.clone({...e._zod.def,catchall:Hu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>J.extend(e,n),e.merge=n=>J.merge(e,n),e.pick=n=>J.pick(e,n),e.omit=n=>J.omit(e,n),e.partial=(...n)=>J.partial(Zf,e,n[0]),e.required=(...n)=>J.required(Gf,e,n[0])});function YF(e,t){let n={type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},...J.normalizeParams(t)};return new Yu(n)}function JF(e,t){return new Yu({type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},catchall:Hu(),...J.normalizeParams(t)})}function XF(e,t){return new Yu({type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},catchall:Vu(),...J.normalizeParams(t)})}var Uf=O("ZodUnion",(e,t)=>{du.init(e,t),de.init(e,t),e.options=t.options});function Ju(e,t){return new Uf({type:"union",options:e,...J.normalizeParams(t)})}var zD=O("ZodDiscriminatedUnion",(e,t)=>{Uf.init(e,t),Xc.init(e,t)});function QF(e,t,n){return new zD({type:"union",options:t,discriminator:e,...J.normalizeParams(n)})}var UD=O("ZodIntersection",(e,t)=>{Qc.init(e,t),de.init(e,t)});function MD(e,t){return new UD({type:"intersection",left:e,right:t})}var VD=O("ZodTuple",(e,t)=>{sn.init(e,t),de.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function eC(e,t,n){let i=t instanceof oe,r=i?n:t,o=i?t:null;return new VD({type:"tuple",items:e,rest:o,...J.normalizeParams(r)})}var Mf=O("ZodRecord",(e,t)=>{el.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function ZD(e,t,n){return new Mf({type:"record",keyType:e,valueType:t,...J.normalizeParams(n)})}function tC(e,t,n){return new Mf({type:"record",keyType:Ju([e,Hu()]),valueType:t,...J.normalizeParams(n)})}var GD=O("ZodMap",(e,t)=>{tl.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function rC(e,t,n){return new GD({type:"map",keyType:e,valueType:t,...J.normalizeParams(n)})}var WD=O("ZodSet",(e,t)=>{rl.init(e,t),de.init(e,t),e.min=(...n)=>e.check(ln(...n)),e.nonempty=n=>e.check(ln(1,n)),e.max=(...n)=>e.check(Wn(...n)),e.size=(...n)=>e.check(Ki(...n))});function nC(e,t){return new WD({type:"set",valueType:e,...J.normalizeParams(t)})}var ao=O("ZodEnum",(e,t)=>{nl.init(e,t),de.init(e,t),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 u of i)if(n.has(u))o[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new ao({...t,checks:[],...J.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let u of i)if(n.has(u))delete o[u];else throw new Error(`Key ${u} not found in enum`);return new ao({...t,checks:[],...J.normalizeParams(r),entries:o})}});function KD(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ao({type:"enum",entries:n,...J.normalizeParams(t)})}function iC(e,t){return new ao({type:"enum",entries:e,...J.normalizeParams(t)})}var HD=O("ZodLiteral",(e,t)=>{il.init(e,t),de.init(e,t),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]}})});function qD(e,t){return new HD({type:"literal",values:Array.isArray(e)?e:[e],...J.normalizeParams(t)})}var YD=O("ZodFile",(e,t)=>{ol.init(e,t),de.init(e,t),e.min=(n,i)=>e.check(ln(n,i)),e.max=(n,i)=>e.check(Wn(n,i)),e.mime=(n,i)=>e.check(eo(Array.isArray(n)?n:[n],i))});function oC(e){return rf(YD,e)}var JD=O("ZodTransform",(e,t)=>{ul.init(e,t),de.init(e,t),e._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(J.issue(o,n.value,t));else{let u=o;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),u.continue??(u.continue=!0),n.issues.push(J.issue(u))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Vf(e){return new JD({type:"transform",transform:e})}var Zf=O("ZodOptional",(e,t)=>{al.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zu(e){return new Zf({type:"optional",innerType:e})}var XD=O("ZodNullable",(e,t)=>{sl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gu(e){return new XD({type:"nullable",innerType:e})}function uC(e){return Zu(Gu(e))}var QD=O("ZodDefault",(e,t)=>{cl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function eh(e,t){return new QD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var th=O("ZodPrefault",(e,t)=>{ll.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function rh(e,t){return new th({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var Gf=O("ZodNonOptional",(e,t)=>{fl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nh(e,t){return new Gf({type:"nonoptional",innerType:e,...J.normalizeParams(t)})}var ih=O("ZodSuccess",(e,t)=>{dl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function aC(e){return new ih({type:"success",innerType:e})}var oh=O("ZodCatch",(e,t)=>{pl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uh(e,t){return new oh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var ah=O("ZodNaN",(e,t)=>{ml.init(e,t),de.init(e,t)});function sC(e){return ql(ah,e)}var Wf=O("ZodPipe",(e,t)=>{Zi.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Wu(e,t){return new Wf({type:"pipe",in:e,out:t})}var sh=O("ZodReadonly",(e,t)=>{Dl.init(e,t),de.init(e,t)});function ch(e){return new sh({type:"readonly",innerType:e})}var lh=O("ZodTemplateLiteral",(e,t)=>{hl.init(e,t),de.init(e,t)});function cC(e,t){return new lh({type:"template_literal",parts:e,...J.normalizeParams(t)})}var fh=O("ZodLazy",(e,t)=>{vl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.getter()});function dh(e){return new fh({type:"lazy",getter:e})}var ph=O("ZodPromise",(e,t)=>{gl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function lC(e){return new ph({type:"promise",innerType:e})}var Xu=O("ZodCustom",(e,t)=>{yl.init(e,t),de.init(e,t)});function mh(e,t){let n=new Be({check:"custom",...J.normalizeParams(t)});return n._zod.check=e,n}function fC(e,t){return nf(Xu,e??(()=>!0),t)}function Dh(e,t={}){return of(Xu,e,t)}function hh(e,t){let n=mh(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(J.issue(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(J.issue(o))}},e(i.value,i)),t);return n}function dC(e,t={error:`Input not instance of ${e.name}`}){let n=new Xu({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...J.normalizeParams(t)});return n._zod.bag.Class=e,n}var pC=(...e)=>uf({Pipe:Wf,Boolean:co,Unknown:Lf},...e);function mC(e){let t=dh(()=>Ju([vf(e),ID(),xD(),TD(),zf(t),ZD(vf(),t)]));return t}function DC(e,t){return Wu(Vf(e),t)}var hC={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"},gC=Object.freeze({status:"aborted"}),vC=gC;function yC(e){ze({customError:e})}function _C(){return ze().customError}var Kf={};br(Kf,{bigint:()=>bC,boolean:()=>CC,date:()=>AC,number:()=>FC,string:()=>EC});function EC(e){return Cl(Ku,e)}function FC(e){return kl(so,e)}function CC(e){return Nl(co,e)}function bC(e){return jl(lo,e)}function AC(e){return Hl(qu,e)}ze(pu());var gh=X;var me=gh;var vh=X.object({ci:X.boolean().default(!1),debug:X.boolean().default(!1),localBuild:X.boolean().default(!1),baseCommand:X.enum(["add","init","deploy","upgrade","remove"]).optional().catch(void 0),appType:X.enum(["browser","webviewer"]).optional().catch(void 0),projectDir:X.string().default(process.cwd()),authType:X.enum(["clerk","fmaddon"]).optional(),emailProvider:X.enum(["plunk","resend","none"]).optional(),dataSource:X.enum(["filemaker","none"]).optional()}).passthrough(),L=vh.parse({});function Se(e){let t=vh.safeParse(e);t.success&&(L={...L,...t.data})}var Ue=()=>{let e=process.env.npm_config_user_agent;return e?e.startsWith("yarn")?"yarn":e.startsWith("pnpm")?"pnpm":e.startsWith("bun")?"bun":"npm":"pnpm"};import fo from"chalk";var ue={error(...e){console.log(fo.red(...e))},warn(...e){console.log(fo.yellow(...e))},info(...e){console.log(fo.cyan(...e))},success(...e){console.log(fo.green(...e))},dim(...e){console.log(fo.dim(...e))}};var Hf=async(e,t,n)=>{let{onDataHandle:i,args:r=["install"],stdout:o="pipe"}=n;process.env.PROOFKIT_ENV==="development"&&r.push("--prefer-offline");let u=_h(`Running ${t} ${r.join(" ")} ...`).start(),a=yh(t,r,{cwd:e,stdout:o});return await new Promise((s,c)=>{i&&a.stdout?.on("data",i(u)),a.on("error",l=>c(l)),a.on("close",()=>s())}),u},SC=async(e,t)=>{switch(e){case"npm":return await yh(e,["install"],{cwd:t,stderr:"inherit"}),null;case"pnpm":return Hf(t,e,{onDataHandle:n=>i=>{let r=i.toString();r.includes("Progress")&&(n.text=r.includes("|")?r.split(" | ")[1]??"":r)}});case"yarn":return Hf(t,e,{onDataHandle:n=>i=>{n.text=i.toString()}});case"bun":return Hf(t,e,{stdout:"ignore"})}},$r=async e=>{let{projectDir:t=L.projectDir}=e??{};ue.info("Installing dependencies...");let n=Ue();(await SC(n,t)??_h()).succeed(wC.green(`Successfully installed dependencies!
|
|
39
|
-
`))};import Lt from"path";import
|
|
40
|
-
Expected it to be 'string' or 'object'.`;if(pn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=
|
|
41
|
-
Expected it to be ${i}.`}var
|
|
42
|
-
`)):n)}function
|
|
38
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);i.cycles==="ref"&&u(l);continue}if(f.count>1&&i.reused==="ref"){u(l);continue}}let a=(l,f)=>{let p=this.seen.get(l),m=p.def??p.schema,d={...m};if(p.ref===null)return;let D=p.ref;if(p.ref=null,D){a(D,f);let h=this.seen.get(D).schema;h.$ref&&f.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}p.isParent||this.override({zodSchema:l,jsonSchema:m})};for(let l of[...this.seen.entries()].reverse())a(l[0],{target:this.target});let s={};this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),Object.assign(s,r.def);let c=i.external?.defs??{};for(let l of this.seen.entries()){let f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}!i.external&&Object.keys(c).length>0&&(this.target==="draft-2020-12"?s.$defs=c:s.definitions=c);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}};function lf(e,t){if(e instanceof Wn){let i=new so(t),r={};for(let a of e._idmap.entries()){let[s,c]=a;i.process(c)}let o={},u={registry:e,uri:t?.uri||(a=>a),defs:r};for(let a of e._idmap.entries()){let[s,c]=a;o[s]=i.emit(c,{...t,external:u})}if(Object.keys(r).length>0){let a=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[a]:r}}return{schemas:o}}let n=new so(t);return n.process(e),n.emit(e,t)}function We(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return We(r.element,n);case"object":{for(let o in r.shape)if(We(r.shape[o],n))return!0;return!1}case"union":{for(let o of r.options)if(We(o,n))return!0;return!1}case"intersection":return We(r.left,n)||We(r.right,n);case"tuple":{for(let o of r.items)if(We(o,n))return!0;return!!(r.rest&&We(r.rest,n))}case"record":return We(r.keyType,n)||We(r.valueType,n);case"map":return We(r.keyType,n)||We(r.valueType,n);case"set":return We(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return We(r.innerType,n);case"lazy":return We(r.getter(),n);case"default":return We(r.innerType,n);case"prefault":return We(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return We(r.in,n)||We(r.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var ID={};var Zu={};br(Zu,{ZodISODate:()=>Uu,ZodISODateTime:()=>zu,ZodISODuration:()=>Vu,ZodISOTime:()=>Mu,date:()=>df,datetime:()=>ff,duration:()=>mf,time:()=>pf});var zu=O("ZodISODateTime",(e,t)=>{xc.init(e,t),we.init(e,t)});function ff(e){return wl(zu,e)}var Uu=O("ZodISODate",(e,t)=>{Pc.init(e,t),we.init(e,t)});function df(e){return Sl(Uu,e)}var Mu=O("ZodISOTime",(e,t)=>{Oc.init(e,t),we.init(e,t)});function pf(e){return $l(Mu,e)}var Vu=O("ZodISODuration",(e,t)=>{Bc.init(e,t),we.init(e,t)});function mf(e){return kl(Vu,e)}var PD=(e,t)=>{Li.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ui(e,n)},flatten:{value:n=>zi(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Df=O("ZodError",PD),Jn=O("ZodError",PD,{Parent:Error});var hf=ru(Jn),gf=iu(Jn),vf=uu(Jn),yf=au(Jn);var de=O("ZodType",(e,t)=>(oe.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>Et(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>hf(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>vf(e,n,i),e.parseAsync=async(n,i)=>gf(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>yf(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=>e.check(vh(n,i)),e.superRefine=n=>e.check(yh(n)),e.overwrite=n=>e.check(ur(n)),e.optional=()=>Ku(e),e.nullable=()=>Hu(e),e.nullish=()=>Ku(Hu(e)),e.nonoptional=n=>uh(e,n),e.array=()=>Uf(e),e.or=n=>Qu([e,n]),e.and=n=>WD(e,n),e.transform=n=>qu(e,Gf(n)),e.default=n=>nh(e,n),e.prefault=n=>oh(e,n),e.catch=n=>ch(e,n),e.pipe=n=>qu(e,n),e.readonly=()=>dh(e),e.describe=n=>{let i=e.clone();return Zt.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Zt.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Zt.get(e);let i=e.clone();return Zt.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ff=O("_ZodString",(e,t)=>{an.init(e,t),de.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Yi(...i)),e.includes=(...i)=>e.check(Qi(...i)),e.startsWith=(...i)=>e.check(eo(...i)),e.endsWith=(...i)=>e.check(to(...i)),e.min=(...i)=>e.check(wr(...i)),e.max=(...i)=>e.check(qn(...i)),e.length=(...i)=>e.check(Yn(...i)),e.nonempty=(...i)=>e.check(wr(1,...i)),e.lowercase=i=>e.check(Ji(i)),e.uppercase=i=>e.check(Xi(i)),e.trim=()=>e.check(io()),e.normalize=(...i)=>e.check(no(...i)),e.toLowerCase=()=>e.check(oo()),e.toUpperCase=()=>e.check(uo())}),lo=O("ZodString",(e,t)=>{an.init(e,t),Ff.init(e,t),e.email=n=>e.check(vu(Cf,n)),e.url=n=>e.check(Cu(bf,n)),e.jwt=n=>e.check(ju(Lf,n)),e.emoji=n=>e.check(bu(Af,n)),e.guid=n=>e.check(Hi(Gu,n)),e.uuid=n=>e.check(yu(sr,n)),e.uuidv4=n=>e.check(_u(sr,n)),e.uuidv6=n=>e.check(Eu(sr,n)),e.uuidv7=n=>e.check(Fu(sr,n)),e.nanoid=n=>e.check(Au(wf,n)),e.guid=n=>e.check(Hi(Gu,n)),e.cuid=n=>e.check(wu(Sf,n)),e.cuid2=n=>e.check(Su($f,n)),e.ulid=n=>e.check($u(kf,n)),e.base64=n=>e.check(Tu(Nf,n)),e.base64url=n=>e.check(Nu(Rf,n)),e.xid=n=>e.check(ku(If,n)),e.ksuid=n=>e.check(Iu(xf,n)),e.ipv4=n=>e.check(xu(Pf,n)),e.ipv6=n=>e.check(Pu(Of,n)),e.cidrv4=n=>e.check(Ou(Bf,n)),e.cidrv6=n=>e.check(Bu(Tf,n)),e.e164=n=>e.check(Ru(jf,n)),e.datetime=n=>e.check(ff(n)),e.date=n=>e.check(df(n)),e.time=n=>e.check(pf(n)),e.duration=n=>e.check(mf(n))});function _f(e){return Cl(lo,e)}var we=O("ZodStringFormat",(e,t)=>{Ae.init(e,t),Ff.init(e,t)}),Cf=O("ZodEmail",(e,t)=>{Fc.init(e,t),we.init(e,t)});function yF(e){return vu(Cf,e)}var Gu=O("ZodGUID",(e,t)=>{_c.init(e,t),we.init(e,t)});function _F(e){return Hi(Gu,e)}var sr=O("ZodUUID",(e,t)=>{Ec.init(e,t),we.init(e,t)});function EF(e){return yu(sr,e)}function FF(e){return _u(sr,e)}function CF(e){return Eu(sr,e)}function bF(e){return Fu(sr,e)}var bf=O("ZodURL",(e,t)=>{Cc.init(e,t),we.init(e,t)});function AF(e){return Cu(bf,e)}var Af=O("ZodEmoji",(e,t)=>{bc.init(e,t),we.init(e,t)});function wF(e){return bu(Af,e)}var wf=O("ZodNanoID",(e,t)=>{Ac.init(e,t),we.init(e,t)});function SF(e){return Au(wf,e)}var Sf=O("ZodCUID",(e,t)=>{wc.init(e,t),we.init(e,t)});function $F(e){return wu(Sf,e)}var $f=O("ZodCUID2",(e,t)=>{Sc.init(e,t),we.init(e,t)});function kF(e){return Su($f,e)}var kf=O("ZodULID",(e,t)=>{$c.init(e,t),we.init(e,t)});function IF(e){return $u(kf,e)}var If=O("ZodXID",(e,t)=>{kc.init(e,t),we.init(e,t)});function xF(e){return ku(If,e)}var xf=O("ZodKSUID",(e,t)=>{Ic.init(e,t),we.init(e,t)});function PF(e){return Iu(xf,e)}var Pf=O("ZodIPv4",(e,t)=>{Tc.init(e,t),we.init(e,t)});function OF(e){return xu(Pf,e)}var Of=O("ZodIPv6",(e,t)=>{Nc.init(e,t),we.init(e,t)});function BF(e){return Pu(Of,e)}var Bf=O("ZodCIDRv4",(e,t)=>{Rc.init(e,t),we.init(e,t)});function TF(e){return Ou(Bf,e)}var Tf=O("ZodCIDRv6",(e,t)=>{jc.init(e,t),we.init(e,t)});function NF(e){return Bu(Tf,e)}var Nf=O("ZodBase64",(e,t)=>{zc.init(e,t),we.init(e,t)});function RF(e){return Tu(Nf,e)}var Rf=O("ZodBase64URL",(e,t)=>{Uc.init(e,t),we.init(e,t)});function jF(e){return Nu(Rf,e)}var jf=O("ZodE164",(e,t)=>{Mc.init(e,t),we.init(e,t)});function LF(e){return Ru(jf,e)}var Lf=O("ZodJWT",(e,t)=>{Vc.init(e,t),we.init(e,t)});function zF(e){return ju(Lf,e)}var fo=O("ZodNumber",(e,t)=>{pu.init(e,t),de.init(e,t),e.gt=(i,r)=>e.check(or(i,r)),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.lt=(i,r)=>e.check(ir(i,r)),e.lte=(i,r)=>e.check(At(i,r)),e.max=(i,r)=>e.check(At(i,r)),e.int=i=>e.check(Ef(i)),e.safe=i=>e.check(Ef(i)),e.positive=i=>e.check(or(0,i)),e.nonnegative=i=>e.check(mt(0,i)),e.negative=i=>e.check(ir(0,i)),e.nonpositive=i=>e.check(At(0,i)),e.multipleOf=(i,r)=>e.check(cn(i,r)),e.step=(i,r)=>e.check(cn(i,r)),e.finite=()=>e;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});function OD(e){return Il(fo,e)}var Xn=O("ZodNumberFormat",(e,t)=>{Zc.init(e,t),fo.init(e,t)});function Ef(e){return Pl(Xn,e)}function UF(e){return Ol(Xn,e)}function MF(e){return Bl(Xn,e)}function VF(e){return Tl(Xn,e)}function ZF(e){return Nl(Xn,e)}var po=O("ZodBoolean",(e,t)=>{Vi.init(e,t),de.init(e,t)});function BD(e){return Rl(po,e)}var mo=O("ZodBigInt",(e,t)=>{mu.init(e,t),de.init(e,t),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.gt=(i,r)=>e.check(or(i,r)),e.gte=(i,r)=>e.check(mt(i,r)),e.min=(i,r)=>e.check(mt(i,r)),e.lt=(i,r)=>e.check(ir(i,r)),e.lte=(i,r)=>e.check(At(i,r)),e.max=(i,r)=>e.check(At(i,r)),e.positive=i=>e.check(or(BigInt(0),i)),e.negative=i=>e.check(ir(BigInt(0),i)),e.nonpositive=i=>e.check(At(BigInt(0),i)),e.nonnegative=i=>e.check(mt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(cn(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function GF(e){return Ll(mo,e)}var zf=O("ZodBigIntFormat",(e,t)=>{Gc.init(e,t),mo.init(e,t)});function WF(e){return Ul(zf,e)}function KF(e){return Ml(zf,e)}var TD=O("ZodSymbol",(e,t)=>{Wc.init(e,t),de.init(e,t)});function HF(e){return Vl(TD,e)}var ND=O("ZodUndefined",(e,t)=>{Kc.init(e,t),de.init(e,t)});function qF(e){return Zl(ND,e)}var RD=O("ZodNull",(e,t)=>{Hc.init(e,t),de.init(e,t)});function jD(e){return Gl(RD,e)}var LD=O("ZodAny",(e,t)=>{qc.init(e,t),de.init(e,t)});function YF(){return Wl(LD)}var zD=O("ZodUnknown",(e,t)=>{Gn.init(e,t),de.init(e,t)});function Wu(){return Kn(zD)}var UD=O("ZodNever",(e,t)=>{Yc.init(e,t),de.init(e,t)});function Yu(e){return Kl(UD,e)}var MD=O("ZodVoid",(e,t)=>{Jc.init(e,t),de.init(e,t)});function JF(e){return Hl(MD,e)}var Ju=O("ZodDate",(e,t)=>{Xc.init(e,t),de.init(e,t),e.min=(i,r)=>e.check(mt(i,r)),e.max=(i,r)=>e.check(At(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});function XF(e){return ql(Ju,e)}var VD=O("ZodArray",(e,t)=>{Zi.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(wr(n,i)),e.nonempty=n=>e.check(wr(1,n)),e.max=(n,i)=>e.check(qn(n,i)),e.length=(n,i)=>e.check(Yn(n,i)),e.unwrap=()=>e.element});function Uf(e,t){return ao(VD,e,t)}function QF(e){let t=e._zod.def.shape;return QD(Object.keys(t))}var Xu=O("ZodObject",(e,t)=>{Qc.init(e,t),de.init(e,t),J.defineLazy(e,"shape",()=>Object.fromEntries(Object.entries(e._zod.def.shape))),e.keyof=()=>JD(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Wu()}),e.loose=()=>e.clone({...e._zod.def,catchall:Wu()}),e.strict=()=>e.clone({...e._zod.def,catchall:Yu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>J.extend(e,n),e.merge=n=>J.merge(e,n),e.pick=n=>J.pick(e,n),e.omit=n=>J.omit(e,n),e.partial=(...n)=>J.partial(Wf,e,n[0]),e.required=(...n)=>J.required(Kf,e,n[0])});function eC(e,t){let n={type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},...J.normalizeParams(t)};return new Xu(n)}function tC(e,t){return new Xu({type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},catchall:Yu(),...J.normalizeParams(t)})}function rC(e,t){return new Xu({type:"object",get shape(){return J.assignProp(this,"shape",{...e}),this.shape},catchall:Wu(),...J.normalizeParams(t)})}var Mf=O("ZodUnion",(e,t)=>{Du.init(e,t),de.init(e,t),e.options=t.options});function Qu(e,t){return new Mf({type:"union",options:e,...J.normalizeParams(t)})}var ZD=O("ZodDiscriminatedUnion",(e,t)=>{Mf.init(e,t),el.init(e,t)});function nC(e,t,n){return new ZD({type:"union",options:t,discriminator:e,...J.normalizeParams(n)})}var GD=O("ZodIntersection",(e,t)=>{tl.init(e,t),de.init(e,t)});function WD(e,t){return new GD({type:"intersection",left:e,right:t})}var KD=O("ZodTuple",(e,t)=>{sn.init(e,t),de.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function iC(e,t,n){let i=t instanceof oe,r=i?n:t,o=i?t:null;return new KD({type:"tuple",items:e,rest:o,...J.normalizeParams(r)})}var Vf=O("ZodRecord",(e,t)=>{rl.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function HD(e,t,n){return new Vf({type:"record",keyType:e,valueType:t,...J.normalizeParams(n)})}function oC(e,t,n){return new Vf({type:"record",keyType:Qu([e,Yu()]),valueType:t,...J.normalizeParams(n)})}var qD=O("ZodMap",(e,t)=>{nl.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function uC(e,t,n){return new qD({type:"map",keyType:e,valueType:t,...J.normalizeParams(n)})}var YD=O("ZodSet",(e,t)=>{il.init(e,t),de.init(e,t),e.min=(...n)=>e.check(ln(...n)),e.nonempty=n=>e.check(ln(1,n)),e.max=(...n)=>e.check(Hn(...n)),e.size=(...n)=>e.check(qi(...n))});function aC(e,t){return new YD({type:"set",valueType:e,...J.normalizeParams(t)})}var co=O("ZodEnum",(e,t)=>{ol.init(e,t),de.init(e,t),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 u of i)if(n.has(u))o[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new co({...t,checks:[],...J.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let u of i)if(n.has(u))delete o[u];else throw new Error(`Key ${u} not found in enum`);return new co({...t,checks:[],...J.normalizeParams(r),entries:o})}});function JD(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new co({type:"enum",entries:n,...J.normalizeParams(t)})}function sC(e,t){return new co({type:"enum",entries:e,...J.normalizeParams(t)})}var XD=O("ZodLiteral",(e,t)=>{ul.init(e,t),de.init(e,t),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]}})});function QD(e,t){return new XD({type:"literal",values:Array.isArray(e)?e:[e],...J.normalizeParams(t)})}var eh=O("ZodFile",(e,t)=>{al.init(e,t),de.init(e,t),e.min=(n,i)=>e.check(ln(n,i)),e.max=(n,i)=>e.check(Hn(n,i)),e.mime=(n,i)=>e.check(ro(Array.isArray(n)?n:[n],i))});function cC(e){return of(eh,e)}var Zf=O("ZodTransform",(e,t)=>{Gi.init(e,t),de.init(e,t),e._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(J.issue(o,n.value,t));else{let u=o;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),u.continue??(u.continue=!0),n.issues.push(J.issue(u))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Gf(e){return new Zf({type:"transform",transform:e})}var Wf=O("ZodOptional",(e,t)=>{sl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ku(e){return new Wf({type:"optional",innerType:e})}var th=O("ZodNullable",(e,t)=>{cl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new th({type:"nullable",innerType:e})}function lC(e){return Ku(Hu(e))}var rh=O("ZodDefault",(e,t)=>{ll.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nh(e,t){return new rh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var ih=O("ZodPrefault",(e,t)=>{fl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oh(e,t){return new ih({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var Kf=O("ZodNonOptional",(e,t)=>{dl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uh(e,t){return new Kf({type:"nonoptional",innerType:e,...J.normalizeParams(t)})}var ah=O("ZodSuccess",(e,t)=>{pl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function fC(e){return new ah({type:"success",innerType:e})}var sh=O("ZodCatch",(e,t)=>{ml.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ch(e,t){return new sh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var lh=O("ZodNaN",(e,t)=>{Dl.init(e,t),de.init(e,t)});function dC(e){return Jl(lh,e)}var Hf=O("ZodPipe",(e,t)=>{Wi.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function qu(e,t){return new Hf({type:"pipe",in:e,out:t})}var fh=O("ZodReadonly",(e,t)=>{hl.init(e,t),de.init(e,t)});function dh(e){return new fh({type:"readonly",innerType:e})}var ph=O("ZodTemplateLiteral",(e,t)=>{gl.init(e,t),de.init(e,t)});function pC(e,t){return new ph({type:"template_literal",parts:e,...J.normalizeParams(t)})}var mh=O("ZodLazy",(e,t)=>{yl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Dh(e){return new mh({type:"lazy",getter:e})}var hh=O("ZodPromise",(e,t)=>{vl.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mC(e){return new hh({type:"promise",innerType:e})}var ea=O("ZodCustom",(e,t)=>{_l.init(e,t),de.init(e,t)});function gh(e,t){let n=new Be({check:"custom",...J.normalizeParams(t)});return n._zod.check=e,n}function DC(e,t){return uf(ea,e??(()=>!0),t)}function vh(e,t={}){return af(ea,e,t)}function yh(e,t){let n=gh(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(J.issue(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(J.issue(o))}},e(i.value,i)),t);return n}function hC(e,t={error:`Input not instance of ${e.name}`}){let n=new ea({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...J.normalizeParams(t)});return n._zod.bag.Class=e,n}var gC=(...e)=>sf({Pipe:Hf,Boolean:po,String:lo,Transform:Zf},...e);function vC(e){let t=Dh(()=>Qu([_f(e),OD(),BD(),jD(),Uf(t),HD(_f(),t)]));return t}function yC(e,t){return qu(Gf(e),t)}var _C={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"},EC=Object.freeze({status:"aborted"}),FC=EC;function CC(e){ze({customError:e})}function bC(){return ze().customError}var qf={};br(qf,{bigint:()=>$C,boolean:()=>SC,date:()=>kC,number:()=>wC,string:()=>AC});function AC(e){return bl(lo,e)}function wC(e){return xl(fo,e)}function SC(e){return jl(po,e)}function $C(e){return zl(mo,e)}function kC(e){return Yl(Ju,e)}ze(hu());var _h=X;var me=_h;var Eh=X.object({ci:X.boolean().default(!1),debug:X.boolean().default(!1),localBuild:X.boolean().default(!1),baseCommand:X.enum(["add","init","deploy","upgrade","remove"]).optional().catch(void 0),appType:X.enum(["browser","webviewer"]).optional().catch(void 0),projectDir:X.string().default(process.cwd()),authType:X.enum(["clerk","fmaddon"]).optional(),emailProvider:X.enum(["plunk","resend","none"]).optional(),dataSource:X.enum(["filemaker","none"]).optional()}).passthrough(),L=Eh.parse({});function Se(e){let t=Eh.safeParse(e);t.success&&(L={...L,...t.data})}var Ue=()=>{let e=process.env.npm_config_user_agent;return e?e.startsWith("yarn")?"yarn":e.startsWith("pnpm")?"pnpm":e.startsWith("bun")?"bun":"npm":"pnpm"};import Do from"chalk";var ue={error(...e){console.log(Do.red(...e))},warn(...e){console.log(Do.yellow(...e))},info(...e){console.log(Do.cyan(...e))},success(...e){console.log(Do.green(...e))},dim(...e){console.log(Do.dim(...e))}};var Yf=async(e,t,n)=>{let{onDataHandle:i,args:r=["install"],stdout:o="pipe"}=n;process.env.PROOFKIT_ENV==="development"&&r.push("--prefer-offline");let u=Ch(`Running ${t} ${r.join(" ")} ...`).start(),a=Fh(t,r,{cwd:e,stdout:o});return await new Promise((s,c)=>{i&&a.stdout?.on("data",i(u)),a.on("error",l=>c(l)),a.on("close",()=>s())}),u},xC=async(e,t)=>{switch(e){case"npm":return await Fh(e,["install"],{cwd:t,stderr:"inherit"}),null;case"pnpm":return Yf(t,e,{onDataHandle:n=>i=>{let r=i.toString();r.includes("Progress")&&(n.text=r.includes("|")?r.split(" | ")[1]??"":r)}});case"yarn":return Yf(t,e,{onDataHandle:n=>i=>{n.text=i.toString()}});case"bun":return Yf(t,e,{stdout:"ignore"})}},Sr=async e=>{let{projectDir:t=L.projectDir}=e??{};ue.info("Installing dependencies...");let n=Ue();(await xC(n,t)??Ch()).succeed(IC.green(`Successfully installed dependencies!
|
|
39
|
+
`))};import Lt from"path";import Xv from"chalk";import Wa from"fs-extra";import{SyntaxKind as Op}from"ts-morph";import Ah from"path";import wh from"fs-extra";import PC from"sort-package-json";var bh={"next-auth":"beta","next-auth-adapter-filemaker":"beta","@auth/prisma-adapter":"^1.6.0","@auth/drizzle-adapter":"^1.1.0",prisma:"^5.14.0","@prisma/client":"^5.14.0","@prisma/adapter-planetscale":"^5.14.0","drizzle-orm":"^0.30.10","drizzle-kit":"^0.21.4","eslint-plugin-drizzle":"^0.2.3",mysql2:"^3.9.7","@planetscale/database":"^1.18.0",postgres:"^3.4.4","@libsql/client":"^0.6.0",tailwindcss:"^3.4.3",postcss:"^8.4.39",prettier:"^3.3.2","prettier-plugin-tailwindcss":"^0.6.5","@trpc/client":"^11.0.0-rc.446","@trpc/server":"^11.0.0-rc.446","@trpc/react-query":"^11.0.0-rc.446","@trpc/next":"^11.0.0-rc.446",superjson:"^2.2.1","server-only":"^0.0.1","@clerk/nextjs":"^6.3.1","@clerk/themes":"^2.1.33","@proofkit/fmdapi":`^${gm()}`,"@proofkit/cli":`^${Mt()}`,"@tanstack/react-query":"^5.59.0","@tanstack/react-query-devtools":"^5.59.0","@tanstack/eslint-plugin-query":"^5.59.1","@node-rs/argon2":"^2.0.2","@oslojs/binary":"^1.0.0","@oslojs/crypto":"^1.0.1","@oslojs/encoding":"^1.1.0","js-cookie":"^3.0.5","@types/js-cookie":"^3.0.6","@react-email/components":"^0.0.28","@react-email/render":"1.0.2","@plunk/node":"^3.0.3","react-email":"^3.0.2",resend:"^4.0.0","@sendgrid/mail":"^8.1.4","@types/node":`^${vm()}`};var Xe=e=>{let{dependencies:t,devMode:n,projectDir:i}=e,r=wh.readJSONSync(Ah.join(i,"package.json"));t.forEach(u=>{let a=bh[u];n&&r.devDependencies?r.devDependencies[u]=a:r.dependencies&&(r.dependencies[u]=a)});let o=PC(r);wh.writeJSONSync(Ah.join(i,"package.json"),o,{spaces:2})};import Yv from"path";import Jv from"fs-extra";import{SyntaxKind as $n}from"ts-morph";import tP from"path";import{createRequire as $b}from"module";import{fileURLToPath as kb}from"url";import{dirname as Ib}from"path";import ip from"process";import kA from"os";import Qh from"tty";import Ur from"path";import{fileURLToPath as Dw}from"url";import x0 from"path";import*as P0 from"path";import Dg from"fs/promises";import Cw from"path";import*as vi from"path";import up from"path";import jw from"fs/promises";import gg from"fs/promises";import{pathToFileURL as Vw}from"url";import f$ from"fs/promises";import _$ from"path";import{pathToFileURL as E$}from"url";import nv from"assert";import{statSync as iv,realpathSync as F$}from"fs";import Fn from"process";import{URL as Te,fileURLToPath as Fe,pathToFileURL as Dp}from"url";import ov from"path";import{builtinModules as hp}from"module";import{fileURLToPath as C$}from"url";import b$ from"fs";import A$ from"path";import{fileURLToPath as zd}from"url";import w$ from"v8";import Cn from"assert";import{format as S$,inspect as Ud}from"util";import{createRequire as Ek}from"module";import ga from"path";import zk from"url";import Zg from"fs";import Jg from"assert";import _x from"assert";import u0 from"path";import{pathToFileURL as a0}from"url";import p6 from"path";var od={};br(od,{builders:()=>Lh,default:()=>Sb,printer:()=>zh,utils:()=>Uh});var OC=Object.defineProperty,BC=(e,t)=>{for(var n in t)OC(e,n,{get:t[n],enumerable:!0})},Ih={};BC(Ih,{builders:()=>Lh,printer:()=>zh,utils:()=>Uh});var fn="string",cr="array",dn="cursor",kr="indent",Ir="align",xr="trim",wt="group",Pr="fill",Bt="if-break",Or="indent-if-break",Br="line-suffix",Tr="line-suffix-boundary",at="line",Nr="label",Kt="break-parent",xh=new Set([dn,kr,Ir,xr,wt,Pr,Bt,Or,Br,Tr,at,Nr,Kt]),TC=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},$r=TC;function NC(e){if(typeof e=="string")return fn;if(Array.isArray(e))return cr;if(!e)return;let{type:t}=e;if(xh.has(t))return t}var pn=NC,RC=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function jC(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
40
|
+
Expected it to be 'string' or 'object'.`;if(pn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=RC([...xh].map(r=>`'${r}'`));return`Unexpected doc.type '${e.type}'.
|
|
41
|
+
Expected it to be ${i}.`}var LC=class extends Error{name="InvalidDocError";constructor(e){super(jC(e)),this.doc=e}},ei=LC,Sh={};function zC(e,t,n,i){let r=[e];for(;r.length>0;){let o=r.pop();if(o===Sh){n(r.pop());continue}n&&r.push(o,Sh);let u=pn(o);if(!u)throw new ei(o);if(t?.(o)!==!1)switch(u){case cr:case Pr:{let a=u===cr?o:o.parts;for(let s=a.length,c=s-1;c>=0;--c)r.push(a[c]);break}case Bt:r.push(o.flatContents,o.breakContents);break;case wt:if(i&&o.expandedStates)for(let a=o.expandedStates.length,s=a-1;s>=0;--s)r.push(o.expandedStates[s]);else r.push(o.contents);break;case Ir:case kr:case Or:case Nr:case Br:r.push(o.contents);break;case fn:case dn:case xr:case Tr:case at:case Kt:break;default:throw new ei(o)}}}var ed=zC;function na(e,t){if(typeof e=="string")return t(e);let n=new Map;return i(e);function i(o){if(n.has(o))return n.get(o);let u=r(o);return n.set(o,u),u}function r(o){switch(pn(o)){case cr:return t(o.map(i));case Pr:return t({...o,parts:o.parts.map(i)});case Bt:return t({...o,breakContents:i(o.breakContents),flatContents:i(o.flatContents)});case wt:{let{expandedStates:u,contents:a}=o;return u?(u=u.map(i),a=u[0]):a=i(a),t({...o,contents:a,expandedStates:u})}case Ir:case kr:case Or:case Nr:case Br:return t({...o,contents:i(o.contents)});case fn:case dn:case xr:case Tr:case at:case Kt:return t(o);default:throw new ei(o)}}}function td(e,t,n){let i=n,r=!1;function o(u){if(r)return!1;let a=t(u);a!==void 0&&(r=!0,i=a)}return ed(e,o),i}function UC(e){if(e.type===wt&&e.break||e.type===at&&e.hard||e.type===Kt)return!0}function MC(e){return td(e,UC,!1)}function $h(e){if(e.length>0){let t=$r(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function VC(e){let t=new Set,n=[];function i(o){if(o.type===Kt&&$h(n),o.type===wt){if(n.push(o),t.has(o))return!1;t.add(o)}}function r(o){o.type===wt&&n.pop().break&&$h(n)}ed(e,i,r,!0)}function ZC(e){return e.type===at&&!e.hard?e.soft?"":" ":e.type===Bt?e.flatContents:e}function GC(e){return na(e,ZC)}function kh(e){for(e=[...e];e.length>=2&&$r(!1,e,-2).type===at&&$r(!1,e,-1).type===Kt;)e.length-=2;if(e.length>0){let t=ho($r(!1,e,-1));e[e.length-1]=t}return e}function ho(e){switch(pn(e)){case kr:case Or:case wt:case Br:case Nr:{let t=ho(e.contents);return{...e,contents:t}}case Bt:return{...e,breakContents:ho(e.breakContents),flatContents:ho(e.flatContents)};case Pr:return{...e,parts:kh(e.parts)};case cr:return kh(e);case fn:return e.replace(/[\n\r]*$/u,"");case Ir:case dn:case xr:case Tr:case at:case Kt:break;default:throw new ei(e)}return e}function WC(e){return ho(HC(e))}function KC(e){switch(pn(e)){case Pr:if(e.parts.every(t=>t===""))return"";break;case wt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===wt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ir:case kr:case Or:case Br:if(!e.contents)return"";break;case Bt:if(!e.flatContents&&!e.breakContents)return"";break;case cr:{let t=[];for(let n of e){if(!n)continue;let[i,...r]=Array.isArray(n)?n:[n];typeof i=="string"&&typeof $r(!1,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...r)}return t.length===0?"":t.length===1?t[0]:t}case fn:case dn:case xr:case Tr:case at:case Nr:case Kt:break;default:throw new ei(e)}return e}function HC(e){return na(e,t=>KC(t))}function qC(e,t=Th){return na(e,n=>typeof n=="string"?Nh(t,n.split(`
|
|
42
|
+
`)):n)}function YC(e){if(e.type===at)return!0}function JC(e){return td(e,YC,!1)}var rd=()=>{},Wt=rd,Ph=rd,XC=rd;function ra(e){return Wt(e),{type:kr,contents:e}}function ti(e,t){return Wt(t),{type:Ir,contents:t,n:e}}function Oh(e,t={}){return Wt(e),Ph(t.expandedStates,!0),{type:wt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function QC(e){return ti(Number.NEGATIVE_INFINITY,e)}function eb(e){return ti({type:"root"},e)}function tb(e){return ti(-1,e)}function rb(e,t){return Oh(e[0],{...t,expandedStates:e})}function nb(e){return XC(e),{type:Pr,parts:e}}function ib(e,t="",n={}){return Wt(e),t!==""&&Wt(t),{type:Bt,breakContents:e,flatContents:t,groupId:n.groupId}}function ob(e,t){return Wt(e),{type:Or,contents:e,groupId:t.groupId,negate:t.negate}}function ub(e){return Wt(e),{type:Br,contents:e}}var ab={type:Tr},nd={type:Kt},sb={type:xr},id={type:at,hard:!0},Bh={type:at,hard:!0,literal:!0},cb={type:at},lb={type:at,soft:!0},fb=[id,nd],Th=[Bh,nd],db={type:dn};function Nh(e,t){Wt(e),Ph(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function pb(e,t,n){Wt(e);let i=e;if(t>0){for(let r=0;r<Math.floor(t/n);++r)i=ra(i);i=ti(t%n,i),i=ti(Number.NEGATIVE_INFINITY,i)}return i}function mb(e,t){return Wt(t),e?{type:Nr,label:e,contents:t}:t}var Db=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},hb=Db;function gb(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
43
43
|
`;default:return`
|
|
44
|
-
`}}var mb=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Db(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function hb(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var gb=e=>!(Db(e)||hb(e)),vb=/[^\x20-\x7F]/u;function yb(e){if(!e)return 0;if(!vb.test(e))return e.length;e=e.replace(mb()," ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||(t+=gb(i)?1:2)}return t}var Bh=yb,Dt=Symbol("MODE_BREAK"),Gt=Symbol("MODE_FLAT"),Jn=Symbol("cursor"),qf=Symbol("DOC_FILL_PRINTED_LENGTH");function Th(){return{value:"",length:0,queue:[]}}function _b(e,t){return Yf(e,{type:"indent"},t)}function Eb(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Th():t<0?Yf(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Yf(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Yf(e,t,n){let i=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,u=0,a=0;for(let m of i)switch(m.type){case"indent":l(),n.useTabs?s(1):c(n.tabWidth);break;case"stringAlign":l(),r+=m.n,o+=m.n.length;break;case"numberAlign":u+=1,a+=m.n;break;default:throw new Error(`Unexpected type '${m.type}'`)}return d(),{...e,value:r,length:o,queue:i};function s(m){r+=" ".repeat(m),o+=n.tabWidth*m}function c(m){r+=" ".repeat(m),o+=m}function l(){n.useTabs?f():d()}function f(){u>0&&s(u),p()}function d(){a>0&&c(a),p()}function p(){u=0,a=0}}function Jf(e){let t=0,n=0,i=e.length;e:for(;i--;){let r=e[i];if(r===Jn){n++;continue}for(let o=r.length-1;o>=0;o--){let u=r[o];if(u===" "||u===" ")t++;else{e[i]=r.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=i+1;n-- >0;)e.push(Jn);return t}function Qu(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,a=[e],s=[];for(;n>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:l}=a.pop(),f=pn(l);switch(f){case fn:s.push(l),n-=Bh(l);break;case cr:case Or:{let d=f===cr?l:l.parts,p=l[qf]??0;for(let m=d.length-1;m>=p;m--)a.push({mode:c,doc:d[m]});break}case Ir:case xr:case Br:case Rr:a.push({mode:c,doc:l.contents});break;case Pr:n+=Jf(s);break;case wt:{if(o&&l.break)return!1;let d=l.break?Dt:c,p=l.expandedStates&&d===Dt?kr(!1,l.expandedStates,-1):l.contents;a.push({mode:d,doc:p});break}case Bt:{let p=(l.groupId?r[l.groupId]||Gt:c)===Dt?l.breakContents:l.flatContents;p&&a.push({mode:c,doc:p});break}case at:if(c===Dt||l.hard)return!0;l.soft||(s.push(" "),n--);break;case Tr:i=!0;break;case Nr:if(i)return!1;break}}return!1}function Fb(e,t){let n={},i=t.printWidth,r=pb(t.endOfLine),o=0,u=[{ind:Th(),mode:Dt,doc:e}],a=[],s=!1,c=[],l=0;for(LC(e);u.length>0;){let{ind:d,mode:p,doc:m}=u.pop();switch(pn(m)){case fn:{let D=r!==`
|
|
45
|
-
`?
|
|
46
|
-
`,r):m;a.push(D),u.length>0&&(o+=Bh(D));break}case cr:for(let D=m.length-1;D>=0;D--)u.push({ind:d,mode:p,doc:m[D]});break;case dn:if(l>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Jn),l++;break;case Ir:u.push({ind:_b(d,t),mode:p,doc:m.contents});break;case xr:u.push({ind:Eb(d,m.n,t),mode:p,doc:m.contents});break;case Pr:o-=Jf(a);break;case wt:switch(p){case Gt:if(!s){u.push({ind:d,mode:m.break?Dt:Gt,doc:m.contents});break}case Dt:{s=!1;let D={ind:d,mode:Gt,doc:m.contents},h=i-o,_=c.length>0;if(!m.break&&Qu(D,u,h,_,n))u.push(D);else if(m.expandedStates){let g=kr(!1,m.expandedStates,-1);if(m.break){u.push({ind:d,mode:Dt,doc:g});break}else for(let v=1;v<m.expandedStates.length+1;v++)if(v>=m.expandedStates.length){u.push({ind:d,mode:Dt,doc:g});break}else{let C=m.expandedStates[v],y={ind:d,mode:Gt,doc:C};if(Qu(y,u,h,_,n)){u.push(y);break}}}else u.push({ind:d,mode:Dt,doc:m.contents});break}}m.id&&(n[m.id]=kr(!1,u,-1).mode);break;case Or:{let D=i-o,h=m[qf]??0,{parts:_}=m,g=_.length-h;if(g===0)break;let v=_[h+0],C=_[h+1],y={ind:d,mode:Gt,doc:v},b={ind:d,mode:Dt,doc:v},k=Qu(y,[],D,c.length>0,n,!0);if(g===1){k?u.push(y):u.push(b);break}let F={ind:d,mode:Gt,doc:C},w={ind:d,mode:Dt,doc:C};if(g===2){k?u.push(F,y):u.push(w,b);break}let T=_[h+2],$={ind:d,mode:p,doc:{...m,[qf]:h+2}};Qu({ind:d,mode:Gt,doc:[v,C,T]},[],D,c.length>0,n,!0)?u.push($,F,y):k?u.push($,w,y):u.push($,w,b);break}case Bt:case Br:{let D=m.groupId?n[m.groupId]:p;if(D===Dt){let h=m.type===Bt?m.breakContents:m.negate?m.contents:ea(m.contents);h&&u.push({ind:d,mode:p,doc:h})}if(D===Gt){let h=m.type===Bt?m.flatContents:m.negate?ea(m.contents):m.contents;h&&u.push({ind:d,mode:p,doc:h})}break}case Tr:c.push({ind:d,mode:p,doc:m.contents});break;case Nr:c.length>0&&u.push({ind:d,mode:p,doc:rd});break;case at:switch(p){case Gt:if(m.hard)s=!0;else{m.soft||(a.push(" "),o+=1);break}case Dt:if(c.length>0){u.push({ind:d,mode:p,doc:m},...c.reverse()),c.length=0;break}m.literal?d.root?(a.push(r,d.root.value),o=d.root.length):(a.push(r),o=0):(o-=Jf(a),a.push(r+d.value),o=d.length);break}break;case Rr:u.push({ind:d,mode:p,doc:m.contents});break;case Kt:break;default:throw new Xn(m)}u.length===0&&c.length>0&&(u.push(...c.reverse()),c.length=0)}let f=a.indexOf(Jn);if(f!==-1){let d=a.indexOf(Jn,f+1);if(d===-1)return{formatted:a.filter(h=>h!==Jn).join("")};let p=a.slice(0,f).join(""),m=a.slice(f+1,d).join(""),D=a.slice(d+1).join("");return{formatted:p+m+D,cursorNodeStart:p.length,cursorNodeText:m}}return{formatted:a.join("")}}var Nh={join:Oh,line:ob,softline:ub,hardline:ab,literalline:Ph,group:Ih,conditionalGroup:XC,fill:QC,lineSuffix:rb,lineSuffixBoundary:nb,cursor:sb,breakParent:td,ifBreak:eb,trim:ib,indent:ea,indentIfBreak:tb,align:Qn,addAlignmentToDoc:cb,markAsRoot:YC,dedentToRoot:qC,dedent:JC,hardlineWithoutBreakParent:rd,literallineWithoutBreakParent:xh,label:lb,concat:e=>e},Rh={printDocToString:Fb},jh={willBreak:jC,traverseDoc:Xf,findInDoc:Qf,mapDoc:ta,removeLines:UC,stripTrailingHardline:MC,replaceEndOfLine:GC,canBreak:KC},Cb=Sh;var ei=bb(import.meta.url),Sb=Ab(import.meta.url),vT=wb(Sb),$b=Object.create,Pa=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,u0=Object.getOwnPropertyNames,Ib=Object.getPrototypeOf,xb=Object.prototype.hasOwnProperty,a0=e=>{throw TypeError(e)},Pb=(e,t,n)=>t in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e=>typeof ei<"u"?ei:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof ei<"u"?ei:t)[n]}):e)(function(e){if(typeof ei<"u")return ei.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),G=(e,t)=>function(){return t||(0,e[u0(e)[0]])((t={exports:{}}).exports,t),t.exports},ko=(e,t)=>{for(var n in t)Pa(e,n,{get:t[n],enumerable:!0})},Ob=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of u0(t))!xb.call(e,r)&&r!==n&&Pa(e,r,{get:()=>t[r],enumerable:!(i=kb(t,r))||i.enumerable});return e},Wr=(e,t,n)=>(n=e!=null?$b(Ib(e)):{},Ob(t||!e||!e.__esModule?Pa(n,"default",{value:e,enumerable:!0}):n,e)),ra=(e,t,n)=>Pb(e,typeof t!="symbol"?t+"":t,n),Hd=(e,t,n)=>t.has(e)||a0("Cannot "+n),xe=(e,t,n)=>(Hd(e,t,"read from private field"),n?n.call(e):t.get(e)),Jt=(e,t,n)=>t.has(e)?a0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),vt=(e,t,n,i)=>(Hd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ti=(e,t,n)=>(Hd(e,t,"access private method"),n),Bb=G({"node_modules/fast-glob/out/utils/array.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((r,o)=>[].concat(r,o),[])}e.flatten=t;function n(i,r){let o=[[]],u=0;for(let a of i)r(a)?(u++,o[u]=[]):o[u].push(a);return o}e.splitWhen=n}}),Tb=G({"node_modules/fast-glob/out/utils/errno.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(n){return n.code==="ENOENT"}e.isEnoentCodeError=t}}),Nb=G({"node_modules/fast-glob/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,r){this.name=i,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function n(i,r){return new t(i,r)}e.createDirentFromStats=n}}),Rb=G({"node_modules/fast-glob/out/utils/path.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=Ee("os"),n=Ee("path"),i=t.platform()==="win32",r=2,o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,s=/\\(?![!()+@[\]{}])/g;function c(h){return h.replace(/\\/g,"/")}e.unixify=c;function l(h,_){return n.resolve(h,_)}e.makeAbsolute=l;function f(h){if(h.charAt(0)==="."){let _=h.charAt(1);if(_==="/"||_==="\\")return h.slice(r)}return h}e.removeLeadingDotSegment=f,e.escape=i?d:p;function d(h){return h.replace(u,"\\$2")}e.escapeWindowsPath=d;function p(h){return h.replace(o,"\\$2")}e.escapePosixPath=p,e.convertPathToPattern=i?m:D;function m(h){return d(h).replace(a,"//$1").replace(s,"/")}e.convertWindowsPathToPattern=m;function D(h){return p(h)}e.convertPosixPathToPattern=D}}),jb=G({"node_modules/is-extglob/index.js"(e,t){t.exports=function(i){if(typeof i!="string"||i==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(i);){if(r[2])return!0;i=i.slice(r.index+r[0].length)}return!1}}}),Lb=G({"node_modules/is-glob/index.js"(e,t){var n=jb(),i={"{":"}","(":")","[":"]"},r=function(u){if(u[0]==="!")return!0;for(var a=0,s=-2,c=-2,l=-2,f=-2,d=-2;a<u.length;){if(u[a]==="*"||u[a+1]==="?"&&/[\].+)]/.test(u[a])||c!==-1&&u[a]==="["&&u[a+1]!=="]"&&(c<a&&(c=u.indexOf("]",a)),c>a&&(d===-1||d>c||(d=u.indexOf("\\",a),d===-1||d>c)))||l!==-1&&u[a]==="{"&&u[a+1]!=="}"&&(l=u.indexOf("}",a),l>a&&(d=u.indexOf("\\",a),d===-1||d>l))||f!==-1&&u[a]==="("&&u[a+1]==="?"&&/[:!=]/.test(u[a+2])&&u[a+3]!==")"&&(f=u.indexOf(")",a),f>a&&(d=u.indexOf("\\",a),d===-1||d>f))||s!==-1&&u[a]==="("&&u[a+1]!=="|"&&(s<a&&(s=u.indexOf("|",a)),s!==-1&&u[s+1]!==")"&&(f=u.indexOf(")",s),f>s&&(d=u.indexOf("\\",s),d===-1||d>f))))return!0;if(u[a]==="\\"){var p=u[a+1];a+=2;var m=i[p];if(m){var D=u.indexOf(m,a);D!==-1&&(a=D+1)}if(u[a]==="!")return!0}else a++}return!1},o=function(u){if(u[0]==="!")return!0;for(var a=0;a<u.length;){if(/[*?{}()[\]]/.test(u[a]))return!0;if(u[a]==="\\"){var s=u[a+1];a+=2;var c=i[s];if(c){var l=u.indexOf(c,a);l!==-1&&(a=l+1)}if(u[a]==="!")return!0}else a++}return!1};t.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(n(a))return!0;var c=r;return s&&s.strict===!1&&(c=o),c(a)}}}),zb=G({"node_modules/glob-parent/index.js"(e,t){"use strict";var n=Lb(),i=Ee("path").posix.dirname,r=Ee("os").platform()==="win32",o="/",u=/\\/g,a=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,d){var p=Object.assign({flipBackslashes:!0},d);p.flipBackslashes&&r&&f.indexOf(o)<0&&(f=f.replace(u,o)),a.test(f)&&(f+=o),f+="a";do f=i(f);while(n(f)||s.test(f));return f.replace(c,"$1")}}}),qd=G({"node_modules/braces/lib/utils.js"(e){"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,n)=>t.nodes.find(i=>i.type===n),e.exceedsLimit=(t,n,i=1,r)=>r===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=r,e.escapeNode=(t,n=0,i)=>{let r=t.nodes[n];r&&(i&&r.type===i||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0),e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]),e.flatten=(...t)=>{let n=[],i=r=>{for(let o=0;o<r.length;o++){let u=r[o];if(Array.isArray(u)){i(u);continue}u!==void 0&&n.push(u)}return n};return i(t),n}}}),Yd=G({"node_modules/braces/lib/stringify.js"(e,t){"use strict";var n=qd();t.exports=(i,r={})=>{let o=(u,a={})=>{let s=r.escapeInvalid&&n.isInvalidBrace(a),c=u.invalid===!0&&r.escapeInvalid===!0,l="";if(u.value)return(s||c)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let f of u.nodes)l+=o(f);return l};return o(i)}}}),Ub=G({"node_modules/is-number/index.js"(e,t){"use strict";t.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}}),Mb=G({"node_modules/to-regex-range/index.js"(e,t){"use strict";var n=Ub(),i=(g,v,C)=>{if(n(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||g===v)return String(g);if(n(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let y={relaxZeros:!0,...C};typeof y.strictZeros=="boolean"&&(y.relaxZeros=y.strictZeros===!1);let b=String(y.relaxZeros),k=String(y.shorthand),F=String(y.capture),w=String(y.wrap),T=g+":"+v+"="+b+k+F+w;if(i.cache.hasOwnProperty(T))return i.cache[T].result;let $=Math.min(g,v),P=Math.max(g,v);if(Math.abs($-P)===1){let j=g+"|"+v;return y.capture?`(${j})`:y.wrap===!1?j:`(?:${j})`}let E=h(g)||h(v),A={min:g,max:v,a:$,b:P},S=[],I=[];if(E&&(A.isPadded=E,A.maxLen=String(A.max).length),$<0){let j=P<0?Math.abs(P):1;I=a(j,Math.abs($),A,y),$=A.a=0}return P>=0&&(S=a($,P,A,y)),A.negatives=I,A.positives=S,A.result=r(I,S,y),y.capture===!0?A.result=`(${A.result})`:y.wrap!==!1&&S.length+I.length>1&&(A.result=`(?:${A.result})`),i.cache[T]=A,A.result};function r(g,v,C){let y=s(g,v,"-",!1,C)||[],b=s(v,g,"",!1,C)||[],k=s(g,v,"-?",!0,C)||[];return y.concat(k).concat(b).join("|")}function o(g,v){let C=1,y=1,b=d(g,C),k=new Set([v]);for(;g<=b&&b<=v;)k.add(b),C+=1,b=d(g,C);for(b=p(v+1,y)-1;g<b&&b<=v;)k.add(b),y+=1,b=p(v+1,y)-1;return k=[...k],k.sort(l),k}function u(g,v,C){if(g===v)return{pattern:g,count:[],digits:0};let y=c(g,v),b=y.length,k="",F=0;for(let w=0;w<b;w++){let[T,$]=y[w];T===$?k+=T:T!=="0"||$!=="9"?k+=D(T,$,C):F++}return F&&(k+=C.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[F],digits:b}}function a(g,v,C,y){let b=o(g,v),k=[],F=g,w;for(let T=0;T<b.length;T++){let $=b[T],P=u(String(F),String($),y),E="";if(!C.isPadded&&w&&w.pattern===P.pattern){w.count.length>1&&w.count.pop(),w.count.push(P.count[0]),w.string=w.pattern+m(w.count),F=$+1;continue}C.isPadded&&(E=_($,C,y)),P.string=E+P.pattern+m(P.count),k.push(P),F=$+1,w=P}return k}function s(g,v,C,y,b){let k=[];for(let F of g){let{string:w}=F;!y&&!f(v,"string",w)&&k.push(C+w),y&&f(v,"string",w)&&k.push(C+w)}return k}function c(g,v){let C=[];for(let y=0;y<g.length;y++)C.push([g[y],v[y]]);return C}function l(g,v){return g>v?1:v>g?-1:0}function f(g,v,C){return g.some(y=>y[v]===C)}function d(g,v){return Number(String(g).slice(0,-v)+"9".repeat(v))}function p(g,v){return g-g%Math.pow(10,v)}function m(g){let[v=0,C=""]=g;return C||v>1?`{${v+(C?","+C:"")}}`:""}function D(g,v,C){return`[${g}${v-g===1?"":"-"}${v}]`}function h(g){return/^-?(0+)\d/.test(g)}function _(g,v,C){if(!v.isPadded)return g;let y=Math.abs(v.maxLen-String(g).length),b=C.relaxZeros!==!1;switch(y){case 0:return"";case 1:return b?"0?":"0";case 2:return b?"0{0,2}":"00";default:return b?`0{0,${y}}`:`0{${y}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}}),s0=G({"node_modules/fill-range/index.js"(e,t){"use strict";var n=Ee("util"),i=Mb(),r=y=>y!==null&&typeof y=="object"&&!Array.isArray(y),o=y=>b=>y===!0?Number(b):String(b),u=y=>typeof y=="number"||typeof y=="string"&&y!=="",a=y=>Number.isInteger(+y),s=y=>{let b=`${y}`,k=-1;if(b[0]==="-"&&(b=b.slice(1)),b==="0")return!1;for(;b[++k]==="0";);return k>0},c=(y,b,k)=>typeof y=="string"||typeof b=="string"?!0:k.stringify===!0,l=(y,b,k)=>{if(b>0){let F=y[0]==="-"?"-":"";F&&(y=y.slice(1)),y=F+y.padStart(F?b-1:b,"0")}return k===!1?String(y):y},f=(y,b)=>{let k=y[0]==="-"?"-":"";for(k&&(y=y.slice(1),b--);y.length<b;)y="0"+y;return k?"-"+y:y},d=(y,b,k)=>{y.negatives.sort((P,E)=>P<E?-1:P>E?1:0),y.positives.sort((P,E)=>P<E?-1:P>E?1:0);let F=b.capture?"":"?:",w="",T="",$;return y.positives.length&&(w=y.positives.map(P=>f(String(P),k)).join("|")),y.negatives.length&&(T=`-(${F}${y.negatives.map(P=>f(String(P),k)).join("|")})`),w&&T?$=`${w}|${T}`:$=w||T,b.wrap?`(${F}${$})`:$},p=(y,b,k,F)=>{if(k)return i(y,b,{wrap:!1,...F});let w=String.fromCharCode(y);if(y===b)return w;let T=String.fromCharCode(b);return`[${w}-${T}]`},m=(y,b,k)=>{if(Array.isArray(y)){let F=k.wrap===!0,w=k.capture?"":"?:";return F?`(${w}${y.join("|")})`:y.join("|")}return i(y,b,k)},D=(...y)=>new RangeError("Invalid range arguments: "+n.inspect(...y)),h=(y,b,k)=>{if(k.strictRanges===!0)throw D([y,b]);return[]},_=(y,b)=>{if(b.strictRanges===!0)throw new TypeError(`Expected step "${y}" to be a number`);return[]},g=(y,b,k=1,F={})=>{let w=Number(y),T=Number(b);if(!Number.isInteger(w)||!Number.isInteger(T)){if(F.strictRanges===!0)throw D([y,b]);return[]}w===0&&(w=0),T===0&&(T=0);let $=w>T,P=String(y),E=String(b),A=String(k);k=Math.max(Math.abs(k),1);let S=s(P)||s(E)||s(A),I=S?Math.max(P.length,E.length,A.length):0,j=S===!1&&c(y,b,F)===!1,W=F.transform||o(j);if(F.toRegex&&k===1)return p(f(y,I),f(b,I),!0,F);let V={negatives:[],positives:[]},Z=B=>V[B<0?"negatives":"positives"].push(Math.abs(B)),z=[],Y=0;for(;$?w>=T:w<=T;)F.toRegex===!0&&k>1?Z(w):z.push(l(W(w,Y),I,j)),w=$?w-k:w+k,Y++;return F.toRegex===!0?k>1?d(V,F,I):m(z,null,{wrap:!1,...F}):z},v=(y,b,k=1,F={})=>{if(!a(y)&&y.length>1||!a(b)&&b.length>1)return h(y,b,F);let w=F.transform||(j=>String.fromCharCode(j)),T=`${y}`.charCodeAt(0),$=`${b}`.charCodeAt(0),P=T>$,E=Math.min(T,$),A=Math.max(T,$);if(F.toRegex&&k===1)return p(E,A,!1,F);let S=[],I=0;for(;P?T>=$:T<=$;)S.push(w(T,I)),T=P?T-k:T+k,I++;return F.toRegex===!0?m(S,null,{wrap:!1,options:F}):S},C=(y,b,k,F={})=>{if(b==null&&u(y))return[y];if(!u(y)||!u(b))return h(y,b,F);if(typeof k=="function")return C(y,b,1,{transform:k});if(r(k))return C(y,b,0,k);let w={...F};return w.capture===!0&&(w.wrap=!0),k=k||w.step||1,a(k)?a(y)&&a(b)?g(y,b,k,w):v(y,b,Math.max(Math.abs(k),1),w):k!=null&&!r(k)?_(k,w):C(y,b,1,k)};t.exports=C}}),Vb=G({"node_modules/braces/lib/compile.js"(e,t){"use strict";var n=s0(),i=qd(),r=(o,u={})=>{let a=(s,c={})=>{let l=i.isInvalidBrace(c),f=s.invalid===!0&&u.escapeInvalid===!0,d=l===!0||f===!0,p=u.escapeInvalid===!0?"\\":"",m="";if(s.isOpen===!0)return p+s.value;if(s.isClose===!0)return console.log("node.isClose",p,s.value),p+s.value;if(s.type==="open")return d?p+s.value:"(";if(s.type==="close")return d?p+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":d?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let D=i.reduce(s.nodes),h=n(...D,{...u,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return D.length>1&&h.length>1?`(${h})`:h}if(s.nodes)for(let D of s.nodes)m+=a(D,s);return m};return a(o)};t.exports=r}}),Zb=G({"node_modules/braces/lib/expand.js"(e,t){"use strict";var n=s0(),i=Yd(),r=qd(),o=(a="",s="",c=!1)=>{let l=[];if(a=[].concat(a),s=[].concat(s),!s.length)return a;if(!a.length)return c?r.flatten(s).map(f=>`{${f}}`):s;for(let f of a)if(Array.isArray(f))for(let d of f)l.push(o(d,s,c));else for(let d of s)c===!0&&typeof d=="string"&&(d=`{${d}}`),l.push(Array.isArray(d)?o(f,d,c):f+d);return r.flatten(l)},u=(a,s={})=>{let c=s.rangeLimit===void 0?1e3:s.rangeLimit,l=(f,d={})=>{f.queue=[];let p=d,m=d.queue;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,m=p.queue;if(f.invalid||f.dollar){m.push(o(m.pop(),i(f,s)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){m.push(o(m.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){let g=r.reduce(f.nodes);if(r.exceedsLimit(...g,s.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=n(...g,s);v.length===0&&(v=i(f,s)),m.push(o(m.pop(),v)),f.nodes=[];return}let D=r.encloseBrace(f),h=f.queue,_=f;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,h=_.queue;for(let g=0;g<f.nodes.length;g++){let v=f.nodes[g];if(v.type==="comma"&&f.type==="brace"){g===1&&h.push(""),h.push("");continue}if(v.type==="close"){m.push(o(m.pop(),h,D));continue}if(v.value&&v.type!=="open"){h.push(o(h.pop(),v.value));continue}v.nodes&&l(v,f)}return h};return r.flatten(l(a))};t.exports=u}}),Gb=G({"node_modules/braces/lib/constants.js"(e,t){"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
47
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),Wb=G({"node_modules/braces/lib/parse.js"(e,t){"use strict";var n=Yd(),{MAX_LENGTH:i,CHAR_BACKSLASH:r,CHAR_BACKTICK:o,CHAR_COMMA:u,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:h,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Gb(),g=(v,C={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let y=C||{},b=typeof y.maxLength=="number"?Math.min(i,y.maxLength):i;if(v.length>b)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${b})`);let k={type:"root",input:v,nodes:[]},F=[k],w=k,T=k,$=0,P=v.length,E=0,A=0,S,I=()=>v[E++],j=W=>{if(W.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&W.type==="text"){T.value+=W.value;return}return w.nodes.push(W),W.parent=w,W.prev=T,T=W,W};for(j({type:"bos"});E<P;)if(w=F[F.length-1],S=I(),!(S===_||S===h)){if(S===r){j({type:"text",value:(C.keepEscaping?S:"")+I()});continue}if(S===p){j({type:"text",value:"\\"+S});continue}if(S===d){$++;let W;for(;E<P&&(W=I());){if(S+=W,W===d){$++;continue}if(W===r){S+=I();continue}if(W===p&&($--,$===0))break}j({type:"text",value:S});continue}if(S===s){w=j({type:"paren",nodes:[]}),F.push(w),j({type:"text",value:S});continue}if(S===c){if(w.type!=="paren"){j({type:"text",value:S});continue}w=F.pop(),j({type:"text",value:S}),w=F[F.length-1];continue}if(S===m||S===D||S===o){let W=S,V;for(C.keepQuotes!==!0&&(S="");E<P&&(V=I());){if(V===r){S+=V+I();continue}if(V===W){C.keepQuotes===!0&&(S+=V);break}S+=V}j({type:"text",value:S});continue}if(S===l){A++;let V={type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||w.dollar===!0,depth:A,commas:0,ranges:0,nodes:[]};w=j(V),F.push(w),j({type:"open",value:S});continue}if(S===f){if(w.type!=="brace"){j({type:"text",value:S});continue}let W="close";w=F.pop(),w.close=!0,j({type:W,value:S}),A--,w=F[F.length-1];continue}if(S===u&&A>0){if(w.ranges>0){w.ranges=0;let W=w.nodes.shift();w.nodes=[W,{type:"text",value:n(w)}]}j({type:"comma",value:S}),w.commas++;continue}if(S===a&&A>0&&w.commas===0){let W=w.nodes;if(A===0||W.length===0){j({type:"text",value:S});continue}if(T.type==="dot"){if(w.range=[],T.value+=S,T.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,T.type="text";continue}w.ranges++,w.args=[];continue}if(T.type==="range"){W.pop();let V=W[W.length-1];V.value+=T.value+S,T=V,w.ranges--;continue}j({type:"dot",value:S});continue}j({type:"text",value:S})}do if(w=F.pop(),w.type!=="root"){w.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let W=F[F.length-1],V=W.nodes.indexOf(w);W.nodes.splice(V,1,...w.nodes)}while(F.length>0);return j({type:"eos"}),k};t.exports=g}}),Kb=G({"node_modules/braces/index.js"(e,t){"use strict";var n=Yd(),i=Vb(),r=Zb(),o=Wb(),u=(a,s={})=>{let c=[];if(Array.isArray(a))for(let l of a){let f=u.create(l,s);Array.isArray(f)?c.push(...f):c.push(f)}else c=[].concat(u.create(a,s));return s&&s.expand===!0&&s.nodupes===!0&&(c=[...new Set(c)]),c};u.parse=(a,s={})=>o(a,s),u.stringify=(a,s={})=>n(typeof a=="string"?u.parse(a,s):a,s),u.compile=(a,s={})=>(typeof a=="string"&&(a=u.parse(a,s)),i(a,s)),u.expand=(a,s={})=>{typeof a=="string"&&(a=u.parse(a,s));let c=r(a,s);return s.noempty===!0&&(c=c.filter(Boolean)),s.nodupes===!0&&(c=[...new Set(c)]),c},u.create=(a,s={})=>a===""||a.length<3?[a]:s.expand!==!0?u.compile(a,s):u.expand(a,s),t.exports=u}}),Oa=G({"node_modules/micromatch/node_modules/picomatch/lib/constants.js"(e,t){"use strict";var n=Ee("path"),i="\\\\/",r=`[^${i}]`,o="\\.",u="\\+",a="\\?",s="\\/",c="(?=.)",l="[^/]",f=`(?:${s}|$)`,d=`(?:^|${s})`,p=`${o}{1,2}${f}`,m=`(?!${o})`,D=`(?!${d}${p})`,h=`(?!${o}{0,1}${f})`,_=`(?!${p})`,g=`[^.${s}]`,v=`${l}*?`,C={DOT_LITERAL:o,PLUS_LITERAL:u,QMARK_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:c,QMARK:l,END_ANCHOR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:D,NO_DOT_SLASH:h,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:v,START_ANCHOR:d},y={...C,SLASH_LITERAL:`[${i}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},b={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:b,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?y:C}}}}),Ba=G({"node_modules/micromatch/node_modules/picomatch/lib/utils.js"(e){"use strict";var t=Ee("path"),n=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:u}=Oa();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>o.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(u,"\\$1"),e.toPosixSlashes=a=>a.replace(i,"/"),e.removeBackslashes=a=>a.replace(r,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:n===!0||t.sep==="\\",e.escapeLast=(a,s,c)=>{let l=a.lastIndexOf(s,c);return l===-1?a:a[l-1]==="\\"?e.escapeLast(a,s,l-1):`${a.slice(0,l)}\\${a.slice(l)}`},e.removePrefix=(a,s={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),s.prefix="./"),c},e.wrapOutput=(a,s={},c={})=>{let l=c.contains?"":"^",f=c.contains?"":"$",d=`${l}(?:${a})${f}`;return s.negated===!0&&(d=`(?:^(?!${d}).*$)`),d}}}),Hb=G({"node_modules/micromatch/node_modules/picomatch/lib/scan.js"(e,t){"use strict";var n=Ba(),{CHAR_ASTERISK:i,CHAR_AT:r,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:u,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:h,CHAR_RIGHT_SQUARE_BRACKET:_}=Oa(),g=y=>y===c||y===o,v=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)},C=(y,b)=>{let k=b||{},F=y.length-1,w=k.parts===!0||k.scanToEnd===!0,T=[],$=[],P=[],E=y,A=-1,S=0,I=0,j=!1,W=!1,V=!1,Z=!1,z=!1,Y=!1,B=!1,se=!1,N=!1,K=!1,x=0,R,q,re={value:"",depth:0,isGlob:!1},Ne=()=>A>=F,be=()=>E.charCodeAt(A+1),ge=()=>(R=q,E.charCodeAt(++A));for(;A<F;){q=ge();let ie;if(q===o){B=re.backslashes=!0,q=ge(),q===l&&(Y=!0);continue}if(Y===!0||q===l){for(x++;Ne()!==!0&&(q=ge());){if(q===o){B=re.backslashes=!0,ge();continue}if(q===l){x++;continue}if(Y!==!0&&q===a&&(q=ge())===a){if(j=re.isBrace=!0,V=re.isGlob=!0,K=!0,w===!0)continue;break}if(Y!==!0&&q===u){if(j=re.isBrace=!0,V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===D&&(x--,x===0)){Y=!1,j=re.isBrace=!0,K=!0;break}}if(w===!0)continue;break}if(q===c){if(T.push(A),$.push(re),re={value:"",depth:0,isGlob:!1},K===!0)continue;if(R===a&&A===S+1){S+=2;continue}I=A+1;continue}if(k.noext!==!0&&(q===p||q===r||q===i||q===m||q===s)===!0&&be()===f){if(V=re.isGlob=!0,Z=re.isExtglob=!0,K=!0,q===s&&A===S&&(N=!0),w===!0){for(;Ne()!==!0&&(q=ge());){if(q===o){B=re.backslashes=!0,q=ge();continue}if(q===h){V=re.isGlob=!0,K=!0;break}}continue}break}if(q===i){if(R===i&&(z=re.isGlobstar=!0),V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===m){if(V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===d){for(;Ne()!==!0&&(ie=ge());){if(ie===o){B=re.backslashes=!0,ge();continue}if(ie===_){W=re.isBracket=!0,V=re.isGlob=!0,K=!0;break}}if(w===!0)continue;break}if(k.nonegate!==!0&&q===s&&A===S){se=re.negated=!0,S++;continue}if(k.noparen!==!0&&q===f){if(V=re.isGlob=!0,w===!0){for(;Ne()!==!0&&(q=ge());){if(q===f){B=re.backslashes=!0,q=ge();continue}if(q===h){K=!0;break}}continue}break}if(V===!0){if(K=!0,w===!0)continue;break}}k.noext===!0&&(Z=!1,V=!1);let Ce=E,et="",ot="";S>0&&(et=E.slice(0,S),E=E.slice(S),I-=S),Ce&&V===!0&&I>0?(Ce=E.slice(0,I),ot=E.slice(I)):V===!0?(Ce="",ot=E):Ce=E,Ce&&Ce!==""&&Ce!=="/"&&Ce!==E&&g(Ce.charCodeAt(Ce.length-1))&&(Ce=Ce.slice(0,-1)),k.unescape===!0&&(ot&&(ot=n.removeBackslashes(ot)),Ce&&B===!0&&(Ce=n.removeBackslashes(Ce)));let Ze={prefix:et,input:y,start:S,base:Ce,glob:ot,isBrace:j,isBracket:W,isGlob:V,isExtglob:Z,isGlobstar:z,negated:se,negatedExtglob:N};if(k.tokens===!0&&(Ze.maxDepth=0,g(q)||$.push(re),Ze.tokens=$),k.parts===!0||k.tokens===!0){let ie;for(let Re=0;Re<T.length;Re++){let rn=ie?ie+1:S,te=T[Re],ye=y.slice(rn,te);k.tokens&&(Re===0&&S!==0?($[Re].isPrefix=!0,$[Re].value=et):$[Re].value=ye,v($[Re]),Ze.maxDepth+=$[Re].depth),(Re!==0||ye!=="")&&P.push(ye),ie=te}if(ie&&ie+1<y.length){let Re=y.slice(ie+1);P.push(Re),k.tokens&&($[$.length-1].value=Re,v($[$.length-1]),Ze.maxDepth+=$[$.length-1].depth)}Ze.slashes=T,Ze.parts=P}return Ze};t.exports=C}}),qb=G({"node_modules/micromatch/node_modules/picomatch/lib/parse.js"(e,t){"use strict";var n=Oa(),i=Ba(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:s}=n,c=(d,p)=>{if(typeof p.expandRange=="function")return p.expandRange(...d,p);d.sort();let m=`[${d.join("-")}]`;try{new RegExp(m)}catch{return d.map(h=>i.escapeRegex(h)).join("..")}return m},l=(d,p)=>`Missing ${d}: "${p}" - use "\\\\${p}" to match literal characters`,f=(d,p)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=s[d]||d;let m={...p},D=typeof m.maxLength=="number"?Math.min(r,m.maxLength):r,h=d.length;if(h>D)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${D}`);let _={type:"bos",value:"",output:m.prepend||""},g=[_],v=m.capture?"":"?:",C=i.isWindows(p),y=n.globChars(C),b=n.extglobChars(y),{DOT_LITERAL:k,PLUS_LITERAL:F,SLASH_LITERAL:w,ONE_CHAR:T,DOTS_SLASH:$,NO_DOT:P,NO_DOT_SLASH:E,NO_DOTS_SLASH:A,QMARK:S,QMARK_NO_DOT:I,STAR:j,START_ANCHOR:W}=y,V=te=>`(${v}(?:(?!${W}${te.dot?$:k}).)*?)`,Z=m.dot?"":P,z=m.dot?S:I,Y=m.bash===!0?V(m):j;m.capture&&(Y=`(${Y})`),typeof m.noext=="boolean"&&(m.noextglob=m.noext);let B={input:d,index:-1,start:0,dot:m.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};d=i.removePrefix(d,B),h=d.length;let se=[],N=[],K=[],x=_,R,q=()=>B.index===h-1,re=B.peek=(te=1)=>d[B.index+te],Ne=B.advance=()=>d[++B.index]||"",be=()=>d.slice(B.index+1),ge=(te="",ye=0)=>{B.consumed+=te,B.index+=ye},Ce=te=>{B.output+=te.output!=null?te.output:te.value,ge(te.value)},et=()=>{let te=1;for(;re()==="!"&&(re(2)!=="("||re(3)==="?");)Ne(),B.start++,te++;return te%2===0?!1:(B.negated=!0,B.start++,!0)},ot=te=>{B[te]++,K.push(te)},Ze=te=>{B[te]--,K.pop()},ie=te=>{if(x.type==="globstar"){let ye=B.braces>0&&(te.type==="comma"||te.type==="brace"),Q=te.extglob===!0||se.length&&(te.type==="pipe"||te.type==="paren");te.type!=="slash"&&te.type!=="paren"&&!ye&&!Q&&(B.output=B.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=Y,B.output+=x.output)}if(se.length&&te.type!=="paren"&&(se[se.length-1].inner+=te.value),(te.value||te.output)&&Ce(te),x&&x.type==="text"&&te.type==="text"){x.value+=te.value,x.output=(x.output||"")+te.value;return}te.prev=x,g.push(te),x=te},Re=(te,ye)=>{let Q={...b[ye],conditions:1,inner:""};Q.prev=x,Q.parens=B.parens,Q.output=B.output;let pe=(m.capture?"(":"")+Q.open;ot("parens"),ie({type:te,value:ye,output:B.output?"":T}),ie({type:"paren",extglob:!0,value:Ne(),output:pe}),se.push(Q)},rn=te=>{let ye=te.close+(m.capture?")":""),Q;if(te.type==="negate"){let pe=Y;if(te.inner&&te.inner.length>1&&te.inner.includes("/")&&(pe=V(m)),(pe!==Y||q()||/^\)+$/.test(be()))&&(ye=te.close=`)$))${pe}`),te.inner.includes("*")&&(Q=be())&&/^\.[^\\/.]+$/.test(Q)){let Pe=f(Q,{...p,fastpaths:!1}).output;ye=te.close=`)${Pe})${pe})`}te.prev.type==="bos"&&(B.negatedExtglob=!0)}ie({type:"paren",extglob:!0,value:R,output:ye}),Ze("parens")};if(m.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let te=!1,ye=d.replace(a,(Q,pe,Pe,ut,Ge,us)=>ut==="\\"?(te=!0,Q):ut==="?"?pe?pe+ut+(Ge?S.repeat(Ge.length):""):us===0?z+(Ge?S.repeat(Ge.length):""):S.repeat(Pe.length):ut==="."?k.repeat(Pe.length):ut==="*"?pe?pe+ut+(Ge?Y:""):Y:pe?Q:`\\${Q}`);return te===!0&&(m.unescape===!0?ye=ye.replace(/\\/g,""):ye=ye.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),ye===d&&m.contains===!0?(B.output=d,B):(B.output=i.wrapOutput(ye,B,p),B)}for(;!q();){if(R=Ne(),R==="\0")continue;if(R==="\\"){let Q=re();if(Q==="/"&&m.bash!==!0||Q==="."||Q===";")continue;if(!Q){R+="\\",ie({type:"text",value:R});continue}let pe=/^\\+/.exec(be()),Pe=0;if(pe&&pe[0].length>2&&(Pe=pe[0].length,B.index+=Pe,Pe%2!==0&&(R+="\\")),m.unescape===!0?R=Ne():R+=Ne(),B.brackets===0){ie({type:"text",value:R});continue}}if(B.brackets>0&&(R!=="]"||x.value==="["||x.value==="[^")){if(m.posix!==!1&&R===":"){let Q=x.value.slice(1);if(Q.includes("[")&&(x.posix=!0,Q.includes(":"))){let pe=x.value.lastIndexOf("["),Pe=x.value.slice(0,pe),ut=x.value.slice(pe+2),Ge=o[ut];if(Ge){x.value=Pe+Ge,B.backtrack=!0,Ne(),!_.output&&g.indexOf(x)===1&&(_.output=T);continue}}}(R==="["&&re()!==":"||R==="-"&&re()==="]")&&(R=`\\${R}`),R==="]"&&(x.value==="["||x.value==="[^")&&(R=`\\${R}`),m.posix===!0&&R==="!"&&x.value==="["&&(R="^"),x.value+=R,Ce({value:R});continue}if(B.quotes===1&&R!=='"'){R=i.escapeRegex(R),x.value+=R,Ce({value:R});continue}if(R==='"'){B.quotes=B.quotes===1?0:1,m.keepQuotes===!0&&ie({type:"text",value:R});continue}if(R==="("){ot("parens"),ie({type:"paren",value:R});continue}if(R===")"){if(B.parens===0&&m.strictBrackets===!0)throw new SyntaxError(l("opening","("));let Q=se[se.length-1];if(Q&&B.parens===Q.parens+1){rn(se.pop());continue}ie({type:"paren",value:R,output:B.parens?")":"\\)"}),Ze("parens");continue}if(R==="["){if(m.nobracket===!0||!be().includes("]")){if(m.nobracket!==!0&&m.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R=`\\${R}`}else ot("brackets");ie({type:"bracket",value:R});continue}if(R==="]"){if(m.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){ie({type:"text",value:R,output:`\\${R}`});continue}if(B.brackets===0){if(m.strictBrackets===!0)throw new SyntaxError(l("opening","["));ie({type:"text",value:R,output:`\\${R}`});continue}Ze("brackets");let Q=x.value.slice(1);if(x.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(R=`/${R}`),x.value+=R,Ce({value:R}),m.literalBrackets===!1||i.hasRegexChars(Q))continue;let pe=i.escapeRegex(x.value);if(B.output=B.output.slice(0,-x.value.length),m.literalBrackets===!0){B.output+=pe,x.value=pe;continue}x.value=`(${v}${pe}|${x.value})`,B.output+=x.value;continue}if(R==="{"&&m.nobrace!==!0){ot("braces");let Q={type:"brace",value:R,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};N.push(Q),ie(Q);continue}if(R==="}"){let Q=N[N.length-1];if(m.nobrace===!0||!Q){ie({type:"text",value:R,output:R});continue}let pe=")";if(Q.dots===!0){let Pe=g.slice(),ut=[];for(let Ge=Pe.length-1;Ge>=0&&(g.pop(),Pe[Ge].type!=="brace");Ge--)Pe[Ge].type!=="dots"&&ut.unshift(Pe[Ge].value);pe=c(ut,m),B.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){let Pe=B.output.slice(0,Q.outputIndex),ut=B.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",R=pe="\\}",B.output=Pe;for(let Ge of ut)B.output+=Ge.output||Ge.value}ie({type:"brace",value:R,output:pe}),Ze("braces"),N.pop();continue}if(R==="|"){se.length>0&&se[se.length-1].conditions++,ie({type:"text",value:R});continue}if(R===","){let Q=R,pe=N[N.length-1];pe&&K[K.length-1]==="braces"&&(pe.comma=!0,Q="|"),ie({type:"comma",value:R,output:Q});continue}if(R==="/"){if(x.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",g.pop(),x=_;continue}ie({type:"slash",value:R,output:w});continue}if(R==="."){if(B.braces>0&&x.type==="dot"){x.value==="."&&(x.output=k);let Q=N[N.length-1];x.type="dots",x.output+=R,x.value+=R,Q.dots=!0;continue}if(B.braces+B.parens===0&&x.type!=="bos"&&x.type!=="slash"){ie({type:"text",value:R,output:k});continue}ie({type:"dot",value:R,output:k});continue}if(R==="?"){if(!(x&&x.value==="(")&&m.noextglob!==!0&&re()==="("&&re(2)!=="?"){Re("qmark",R);continue}if(x&&x.type==="paren"){let pe=re(),Pe=R;if(pe==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(pe)||pe==="<"&&!/<([!=]|\w+>)/.test(be()))&&(Pe=`\\${R}`),ie({type:"text",value:R,output:Pe});continue}if(m.dot!==!0&&(x.type==="slash"||x.type==="bos")){ie({type:"qmark",value:R,output:I});continue}ie({type:"qmark",value:R,output:S});continue}if(R==="!"){if(m.noextglob!==!0&&re()==="("&&(re(2)!=="?"||!/[!=<:]/.test(re(3)))){Re("negate",R);continue}if(m.nonegate!==!0&&B.index===0){et();continue}}if(R==="+"){if(m.noextglob!==!0&&re()==="("&&re(2)!=="?"){Re("plus",R);continue}if(x&&x.value==="("||m.regex===!1){ie({type:"plus",value:R,output:F});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||B.parens>0){ie({type:"plus",value:R});continue}ie({type:"plus",value:F});continue}if(R==="@"){if(m.noextglob!==!0&&re()==="("&&re(2)!=="?"){ie({type:"at",extglob:!0,value:R,output:""});continue}ie({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let Q=u.exec(be());Q&&(R+=Q[0],B.index+=Q[0].length),ie({type:"text",value:R});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=R,x.output=Y,B.backtrack=!0,B.globstar=!0,ge(R);continue}let te=be();if(m.noextglob!==!0&&/^\([^?]/.test(te)){Re("star",R);continue}if(x.type==="star"){if(m.noglobstar===!0){ge(R);continue}let Q=x.prev,pe=Q.prev,Pe=Q.type==="slash"||Q.type==="bos",ut=pe&&(pe.type==="star"||pe.type==="globstar");if(m.bash===!0&&(!Pe||te[0]&&te[0]!=="/")){ie({type:"star",value:R,output:""});continue}let Ge=B.braces>0&&(Q.type==="comma"||Q.type==="brace"),us=se.length&&(Q.type==="pipe"||Q.type==="paren");if(!Pe&&Q.type!=="paren"&&!Ge&&!us){ie({type:"star",value:R,output:""});continue}for(;te.slice(0,3)==="/**";){let Ho=d[B.index+4];if(Ho&&Ho!=="/")break;te=te.slice(3),ge("/**",3)}if(Q.type==="bos"&&q()){x.type="globstar",x.value+=R,x.output=V(m),B.output=x.output,B.globstar=!0,ge(R);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!ut&&q()){B.output=B.output.slice(0,-(Q.output+x.output).length),Q.output=`(?:${Q.output}`,x.type="globstar",x.output=V(m)+(m.strictSlashes?")":"|$)"),x.value+=R,B.globstar=!0,B.output+=Q.output+x.output,ge(R);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&te[0]==="/"){let Ho=te[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(Q.output+x.output).length),Q.output=`(?:${Q.output}`,x.type="globstar",x.output=`${V(m)}${w}|${w}${Ho})`,x.value+=R,B.output+=Q.output+x.output,B.globstar=!0,ge(R+Ne()),ie({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&te[0]==="/"){x.type="globstar",x.value+=R,x.output=`(?:^|${w}|${V(m)}${w})`,B.output=x.output,B.globstar=!0,ge(R+Ne()),ie({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-x.output.length),x.type="globstar",x.output=V(m),x.value+=R,B.output+=x.output,B.globstar=!0,ge(R);continue}let ye={type:"star",value:R,output:Y};if(m.bash===!0){ye.output=".*?",(x.type==="bos"||x.type==="slash")&&(ye.output=Z+ye.output),ie(ye);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&m.regex===!0){ye.output=R,ie(ye);continue}(B.index===B.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(B.output+=E,x.output+=E):m.dot===!0?(B.output+=A,x.output+=A):(B.output+=Z,x.output+=Z),re()!=="*"&&(B.output+=T,x.output+=T)),ie(ye)}for(;B.brackets>0;){if(m.strictBrackets===!0)throw new SyntaxError(l("closing","]"));B.output=i.escapeLast(B.output,"["),Ze("brackets")}for(;B.parens>0;){if(m.strictBrackets===!0)throw new SyntaxError(l("closing",")"));B.output=i.escapeLast(B.output,"("),Ze("parens")}for(;B.braces>0;){if(m.strictBrackets===!0)throw new SyntaxError(l("closing","}"));B.output=i.escapeLast(B.output,"{"),Ze("braces")}if(m.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&ie({type:"maybe_slash",value:"",output:`${w}?`}),B.backtrack===!0){B.output="";for(let te of B.tokens)B.output+=te.output!=null?te.output:te.value,te.suffix&&(B.output+=te.suffix)}return B};f.fastpaths=(d,p)=>{let m={...p},D=typeof m.maxLength=="number"?Math.min(r,m.maxLength):r,h=d.length;if(h>D)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${D}`);d=s[d]||d;let _=i.isWindows(p),{DOT_LITERAL:g,SLASH_LITERAL:v,ONE_CHAR:C,DOTS_SLASH:y,NO_DOT:b,NO_DOTS:k,NO_DOTS_SLASH:F,STAR:w,START_ANCHOR:T}=n.globChars(_),$=m.dot?k:b,P=m.dot?F:b,E=m.capture?"":"?:",A={negated:!1,prefix:""},S=m.bash===!0?".*?":w;m.capture&&(S=`(${S})`);let I=Z=>Z.noglobstar===!0?S:`(${E}(?:(?!${T}${Z.dot?y:g}).)*?)`,j=Z=>{switch(Z){case"*":return`${$}${C}${S}`;case".*":return`${g}${C}${S}`;case"*.*":return`${$}${S}${g}${C}${S}`;case"*/*":return`${$}${S}${v}${C}${P}${S}`;case"**":return $+I(m);case"**/*":return`(?:${$}${I(m)}${v})?${P}${C}${S}`;case"**/*.*":return`(?:${$}${I(m)}${v})?${P}${S}${g}${C}${S}`;case"**/.*":return`(?:${$}${I(m)}${v})?${g}${C}${S}`;default:{let z=/^(.*?)\.(\w+)$/.exec(Z);if(!z)return;let Y=j(z[1]);return Y?Y+g+z[2]:void 0}}},W=i.removePrefix(d,A),V=j(W);return V&&m.strictSlashes!==!0&&(V+=`${v}?`),V},t.exports=f}}),Yb=G({"node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(e,t){"use strict";var n=Ee("path"),i=Hb(),r=qb(),o=Ba(),u=Oa(),a=c=>c&&typeof c=="object"&&!Array.isArray(c),s=(c,l,f=!1)=>{if(Array.isArray(c)){let v=c.map(y=>s(y,l,f));return y=>{for(let b of v){let k=b(y);if(k)return k}return!1}}let d=a(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!d)throw new TypeError("Expected pattern to be a non-empty string");let p=l||{},m=o.isWindows(l),D=d?s.compileRe(c,l):s.makeRe(c,l,!1,!0),h=D.state;delete D.state;let _=()=>!1;if(p.ignore){let v={...l,ignore:null,onMatch:null,onResult:null};_=s(p.ignore,v,f)}let g=(v,C=!1)=>{let{isMatch:y,match:b,output:k}=s.test(v,D,l,{glob:c,posix:m}),F={glob:c,state:h,regex:D,posix:m,input:v,output:k,match:b,isMatch:y};return typeof p.onResult=="function"&&p.onResult(F),y===!1?(F.isMatch=!1,C?F:!1):_(v)?(typeof p.onIgnore=="function"&&p.onIgnore(F),F.isMatch=!1,C?F:!1):(typeof p.onMatch=="function"&&p.onMatch(F),C?F:!0)};return f&&(g.state=h),g};s.test=(c,l,f,{glob:d,posix:p}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let m=f||{},D=m.format||(p?o.toPosixSlashes:null),h=c===d,_=h&&D?D(c):c;return h===!1&&(_=D?D(c):c,h=_===d),(h===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?h=s.matchBase(c,l,f,p):h=l.exec(_)),{isMatch:!!h,match:h,output:_}},s.matchBase=(c,l,f,d=o.isWindows(f))=>(l instanceof RegExp?l:s.makeRe(l,f)).test(n.basename(c)),s.isMatch=(c,l,f)=>s(l,f)(c),s.parse=(c,l)=>Array.isArray(c)?c.map(f=>s.parse(f,l)):r(c,{...l,fastpaths:!1}),s.scan=(c,l)=>i(c,l),s.compileRe=(c,l,f=!1,d=!1)=>{if(f===!0)return c.output;let p=l||{},m=p.contains?"":"^",D=p.contains?"":"$",h=`${m}(?:${c.output})${D}`;c&&c.negated===!0&&(h=`^(?!${h}).*$`);let _=s.toRegex(h,l);return d===!0&&(_.state=c),_},s.makeRe=(c,l={},f=!1,d=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let p={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(p.output=r.fastpaths(c,l)),p.output||(p=r(c,l)),s.compileRe(p,l,f,d)},s.toRegex=(c,l)=>{try{let f=l||{};return new RegExp(c,f.flags||(f.nocase?"i":""))}catch(f){if(l&&l.debug===!0)throw f;return/$^/}},s.constants=u,t.exports=s}}),Jb=G({"node_modules/micromatch/node_modules/picomatch/index.js"(e,t){"use strict";t.exports=Yb()}}),c0=G({"node_modules/micromatch/index.js"(e,t){"use strict";var n=Ee("util"),i=Kb(),r=Jb(),o=Ba(),u=c=>c===""||c==="./",a=c=>{let l=c.indexOf("{");return l>-1&&c.indexOf("}",l)>-1},s=(c,l,f)=>{l=[].concat(l),c=[].concat(c);let d=new Set,p=new Set,m=new Set,D=0,h=v=>{m.add(v.output),f&&f.onResult&&f.onResult(v)};for(let v=0;v<l.length;v++){let C=r(String(l[v]),{...f,onResult:h},!0),y=C.state.negated||C.state.negatedExtglob;y&&D++;for(let b of c){let k=C(b,!0);(y?!k.isMatch:k.isMatch)&&(y?d.add(k.output):(d.delete(k.output),p.add(k.output)))}}let g=(D===l.length?[...m]:[...p]).filter(v=>!d.has(v));if(f&&g.length===0){if(f.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(f.nonull===!0||f.nullglob===!0)return f.unescape?l.map(v=>v.replace(/\\/g,"")):l}return g};s.match=s,s.matcher=(c,l)=>r(c,l),s.isMatch=(c,l,f)=>r(l,f)(c),s.any=s.isMatch,s.not=(c,l,f={})=>{l=[].concat(l).map(String);let d=new Set,p=[],m=h=>{f.onResult&&f.onResult(h),p.push(h.output)},D=new Set(s(c,l,{...f,onResult:m}));for(let h of p)D.has(h)||d.add(h);return[...d]},s.contains=(c,l,f)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${n.inspect(c)}"`);if(Array.isArray(l))return l.some(d=>s.contains(c,d,f));if(typeof l=="string"){if(u(c)||u(l))return!1;if(c.includes(l)||c.startsWith("./")&&c.slice(2).includes(l))return!0}return s.isMatch(c,l,{...f,contains:!0})},s.matchKeys=(c,l,f)=>{if(!o.isObject(c))throw new TypeError("Expected the first argument to be an object");let d=s(Object.keys(c),l,f),p={};for(let m of d)p[m]=c[m];return p},s.some=(c,l,f)=>{let d=[].concat(c);for(let p of[].concat(l)){let m=r(String(p),f);if(d.some(D=>m(D)))return!0}return!1},s.every=(c,l,f)=>{let d=[].concat(c);for(let p of[].concat(l)){let m=r(String(p),f);if(!d.every(D=>m(D)))return!1}return!0},s.all=(c,l,f)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${n.inspect(c)}"`);return[].concat(l).every(d=>r(d,f)(c))},s.capture=(c,l,f)=>{let d=o.isWindows(f),m=r.makeRe(String(c),{...f,capture:!0}).exec(d?o.toPosixSlashes(l):l);if(m)return m.slice(1).map(D=>D===void 0?"":D)},s.makeRe=(...c)=>r.makeRe(...c),s.scan=(...c)=>r.scan(...c),s.parse=(c,l)=>{let f=[];for(let d of[].concat(c||[]))for(let p of i(String(d),l))f.push(r.parse(p,l));return f},s.braces=(c,l)=>{if(typeof c!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!a(c)?[c]:i(c,l)},s.braceExpand=(c,l)=>{if(typeof c!="string")throw new TypeError("Expected a string");return s.braces(c,{...l,expand:!0})},s.hasBraces=a,t.exports=s}}),Xb=G({"node_modules/fast-glob/out/utils/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=Ee("path"),n=zb(),i=c0(),r="**",o="\\",u=/[*?]|^!/,a=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,l=/,|\.\./,f=/(?!^)\/{2,}/g;function d(z,Y={}){return!p(z,Y)}e.isStaticPattern=d;function p(z,Y={}){return z===""?!1:!!(Y.caseSensitiveMatch===!1||z.includes(o)||u.test(z)||a.test(z)||s.test(z)||Y.extglob!==!1&&c.test(z)||Y.braceExpansion!==!1&&m(z))}e.isDynamicPattern=p;function m(z){let Y=z.indexOf("{");if(Y===-1)return!1;let B=z.indexOf("}",Y+1);if(B===-1)return!1;let se=z.slice(Y,B);return l.test(se)}function D(z){return _(z)?z.slice(1):z}e.convertToPositivePattern=D;function h(z){return"!"+z}e.convertToNegativePattern=h;function _(z){return z.startsWith("!")&&z[1]!=="("}e.isNegativePattern=_;function g(z){return!_(z)}e.isPositivePattern=g;function v(z){return z.filter(_)}e.getNegativePatterns=v;function C(z){return z.filter(g)}e.getPositivePatterns=C;function y(z){return z.filter(Y=>!k(Y))}e.getPatternsInsideCurrentDirectory=y;function b(z){return z.filter(k)}e.getPatternsOutsideCurrentDirectory=b;function k(z){return z.startsWith("..")||z.startsWith("./..")}e.isPatternRelatedToParentDirectory=k;function F(z){return n(z,{flipBackslashes:!1})}e.getBaseDirectory=F;function w(z){return z.includes(r)}e.hasGlobStar=w;function T(z){return z.endsWith("/"+r)}e.endsWithSlashGlobStar=T;function $(z){let Y=t.basename(z);return T(z)||d(Y)}e.isAffectDepthOfReadingPattern=$;function P(z){return z.reduce((Y,B)=>Y.concat(E(B)),[])}e.expandPatternsWithBraceExpansion=P;function E(z){let Y=i.braces(z,{expand:!0,nodupes:!0,keepEscaping:!0});return Y.sort((B,se)=>B.length-se.length),Y.filter(B=>B!=="")}e.expandBraceExpansion=E;function A(z,Y){let{parts:B}=i.scan(z,Object.assign(Object.assign({},Y),{parts:!0}));return B.length===0&&(B=[z]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=A;function S(z,Y){return i.makeRe(z,Y)}e.makeRe=S;function I(z,Y){return z.map(B=>S(B,Y))}e.convertPatternsToRe=I;function j(z,Y){return Y.some(B=>B.test(z))}e.matchAny=j;function W(z){return z.replace(f,"/")}e.removeDuplicateSlashes=W;function V(z){let Y=[],B=[];for(let se of z)Z(se)?Y.push(se):B.push(se);return[Y,B]}e.partitionAbsoluteAndRelative=V;function Z(z){return t.isAbsolute(z)}e.isAbsolute=Z}}),Qb=G({"node_modules/merge2/index.js"(e,t){"use strict";var n=Ee("stream"),i=n.PassThrough,r=Array.prototype.slice;t.exports=o;function o(){let a=[],s=r.call(arguments),c=!1,l=s[s.length-1];l&&!Array.isArray(l)&&l.pipe==null?s.pop():l={};let f=l.end!==!1,d=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let p=i(l);function m(){for(let _=0,g=arguments.length;_<g;_++)a.push(u(arguments[_],l));return D(),this}function D(){if(c)return;c=!0;let _=a.shift();if(!_){process.nextTick(h);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function v(){--g>0||(c=!1,D())}function C(y){function b(){y.removeListener("merge2UnpipeEnd",b),y.removeListener("end",b),d&&y.removeListener("error",k),v()}function k(F){p.emit("error",F)}if(y._readableState.endEmitted)return v();y.on("merge2UnpipeEnd",b),y.on("end",b),d&&y.on("error",k),y.pipe(p,{end:!1}),y.resume()}for(let y=0;y<_.length;y++)C(_[y]);v()}function h(){c=!1,p.emit("queueDrain"),f&&p.end()}return p.setMaxListeners(0),p.add=m,p.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),s.length&&m.apply(null,s),p}function u(a,s){if(Array.isArray(a))for(let c=0,l=a.length;c<l;c++)a[c]=u(a[c],s);else{if(!a._readableState&&a.pipe&&(a=a.pipe(i(s))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),e1=G({"node_modules/fast-glob/out/utils/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=Qb();function n(r){let o=t(r);return r.forEach(u=>{u.once("error",a=>o.emit("error",a))}),o.once("close",()=>i(r)),o.once("end",()=>i(r)),o}e.merge=n;function i(r){r.forEach(o=>o.emit("close"))}}}),t1=G({"node_modules/fast-glob/out/utils/string.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function n(i){return i===""}e.isEmpty=n}}),Kr=G({"node_modules/fast-glob/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=Bb();e.array=t;var n=Tb();e.errno=n;var i=Nb();e.fs=i;var r=Rb();e.path=r;var o=Xb();e.pattern=o;var u=e1();e.stream=u;var a=t1();e.string=a}}),r1=G({"node_modules/fast-glob/out/managers/tasks.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Kr();function n(l,f){let d=i(l,f),p=i(f.ignore,f),m=o(d),D=u(d,p),h=m.filter(C=>t.pattern.isStaticPattern(C,f)),_=m.filter(C=>t.pattern.isDynamicPattern(C,f)),g=r(h,D,!1),v=r(_,D,!0);return g.concat(v)}e.generate=n;function i(l,f){let d=l;return f.braceExpansion&&(d=t.pattern.expandPatternsWithBraceExpansion(d)),f.baseNameMatch&&(d=d.map(p=>p.includes("/")?p:`**/${p}`)),d.map(p=>t.pattern.removeDuplicateSlashes(p))}function r(l,f,d){let p=[],m=t.pattern.getPatternsOutsideCurrentDirectory(l),D=t.pattern.getPatternsInsideCurrentDirectory(l),h=a(m),_=a(D);return p.push(...s(h,f,d)),"."in _?p.push(c(".",D,f,d)):p.push(...s(_,f,d)),p}e.convertPatternsToTasks=r;function o(l){return t.pattern.getPositivePatterns(l)}e.getPositivePatterns=o;function u(l,f){return t.pattern.getNegativePatterns(l).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function a(l){let f={};return l.reduce((d,p)=>{let m=t.pattern.getBaseDirectory(p);return m in d?d[m].push(p):d[m]=[p],d},f)}e.groupPatternsByBaseDirectory=a;function s(l,f,d){return Object.keys(l).map(p=>c(p,l[p],f,d))}e.convertPatternGroupsToTasks=s;function c(l,f,d,p){return{dynamic:p,positive:f,negative:d,base:l,patterns:[].concat(f,d.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=c}}),n1=G({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,o,u){o.fs.lstat(r,(a,s)=>{if(a!==null){n(u,a);return}if(!s.isSymbolicLink()||!o.followSymbolicLink){i(u,s);return}o.fs.stat(r,(c,l)=>{if(c!==null){if(o.throwErrorOnBrokenSymbolicLink){n(u,c);return}i(u,s);return}o.markSymbolicLink&&(l.isSymbolicLink=()=>!0),i(u,l)})})}e.read=t;function n(r,o){r(o)}function i(r,o){r(null,o)}}}),i1=G({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,i){let r=i.fs.lstatSync(n);if(!r.isSymbolicLink()||!i.followSymbolicLink)return r;try{let o=i.fs.statSync(n);return i.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!i.throwErrorOnBrokenSymbolicLink)return r;throw o}}e.read=t}}),o1=G({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}}),u1=G({"node_modules/@nodelib/fs.stat/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=o1(),n=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,r){return i??r}};e.default=n}}),mi=G({"node_modules/@nodelib/fs.stat/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=n1(),n=i1(),i=u1();e.Settings=i.default;function r(a,s,c){if(typeof s=="function"){t.read(a,u(),s);return}t.read(a,u(s),c)}e.stat=r;function o(a,s){let c=u(s);return n.read(a,c)}e.statSync=o;function u(a={}){return a instanceof i.default?a:new i.default(a)}}}),a1=G({"node_modules/queue-microtask/index.js"(e,t){var n;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(n||(n=Promise.resolve())).then(i).catch(r=>setTimeout(()=>{throw r},0))}}),s1=G({"node_modules/run-parallel/index.js"(e,t){t.exports=i;var n=a1();function i(r,o){let u,a,s,c=!0;Array.isArray(r)?(u=[],a=r.length):(s=Object.keys(r),u={},a=s.length);function l(d){function p(){o&&o(d,u),o=null}c?n(p):p()}function f(d,p,m){u[d]=m,(--a===0||p)&&l(p)}a?s?s.forEach(function(d){r[d](function(p,m){f(d,p,m)})}):r.forEach(function(d,p){d(function(m,D){f(p,m,D)})}):l(null),c=!1}}}),l0=G({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),r=10,o=10,u=n>r,a=n===r&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||a}}),c1=G({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,r){this.name=i,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function n(i,r){return new t(i,r)}e.createDirentFromStats=n}}),f0=G({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=c1();e.fs=t}}),d0=G({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(n,i,r){return n.endsWith(r)?n+i:n+r+i}e.joinPathSegments=t}}),l1=G({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=mi(),n=s1(),i=l0(),r=f0(),o=d0();function u(d,p,m){if(!p.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(d,p,m);return}c(d,p,m)}e.read=u;function a(d,p,m){p.fs.readdir(d,{withFileTypes:!0},(D,h)=>{if(D!==null){l(m,D);return}let _=h.map(v=>({dirent:v,name:v.name,path:o.joinPathSegments(d,v.name,p.pathSegmentSeparator)}));if(!p.followSymbolicLinks){f(m,_);return}let g=_.map(v=>s(v,p));n(g,(v,C)=>{if(v!==null){l(m,v);return}f(m,C)})})}e.readdirWithFileTypes=a;function s(d,p){return m=>{if(!d.dirent.isSymbolicLink()){m(null,d);return}p.fs.stat(d.path,(D,h)=>{if(D!==null){if(p.throwErrorOnBrokenSymbolicLink){m(D);return}m(null,d);return}d.dirent=r.fs.createDirentFromStats(d.name,h),m(null,d)})}}function c(d,p,m){p.fs.readdir(d,(D,h)=>{if(D!==null){l(m,D);return}let _=h.map(g=>{let v=o.joinPathSegments(d,g,p.pathSegmentSeparator);return C=>{t.stat(v,p.fsStatSettings,(y,b)=>{if(y!==null){C(y);return}let k={name:g,path:v,dirent:r.fs.createDirentFromStats(g,b)};p.stats&&(k.stats=b),C(null,k)})}});n(_,(g,v)=>{if(g!==null){l(m,g);return}f(m,v)})})}e.readdir=c;function l(d,p){d(p)}function f(d,p){d(null,p)}}}),f1=G({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=mi(),n=l0(),i=f0(),r=d0();function o(s,c){return!c.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(s,c):a(s,c)}e.read=o;function u(s,c){return c.fs.readdirSync(s,{withFileTypes:!0}).map(f=>{let d={dirent:f,name:f.name,path:r.joinPathSegments(s,f.name,c.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let p=c.fs.statSync(d.path);d.dirent=i.fs.createDirentFromStats(d.name,p)}catch(p){if(c.throwErrorOnBrokenSymbolicLink)throw p}return d})}e.readdirWithFileTypes=u;function a(s,c){return c.fs.readdirSync(s).map(f=>{let d=r.joinPathSegments(s,f,c.pathSegmentSeparator),p=t.statSync(d,c.fsStatSettings),m={name:f,path:d,dirent:i.fs.createDirentFromStats(f,p)};return c.stats&&(m.stats=p),m})}e.readdir=a}}),d1=G({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}}),p1=G({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=mi(),i=d1(),r=class{constructor(o={}){this._options=o,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(o,u){return o??u}};e.default=r}}),Jd=G({"node_modules/@nodelib/fs.scandir/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=l1(),n=f1(),i=p1();e.Settings=i.default;function r(a,s,c){if(typeof s=="function"){t.read(a,u(),s);return}t.read(a,u(s),c)}e.scandir=r;function o(a,s){let c=u(s);return n.read(a,c)}e.scandirSync=o;function u(a={}){return a instanceof i.default?a:new i.default(a)}}}),m1=G({"node_modules/reusify/reusify.js"(e,t){"use strict";function n(i){var r=new i,o=r;function u(){var s=r;return s.next?r=s.next:(r=new i,o=r),s.next=null,s}function a(s){o.next=s,o=s}return{get:u,release:a}}t.exports=n}}),D1=G({"node_modules/fastq/queue.js"(e,t){"use strict";var n=m1();function i(a,s,c){if(typeof a=="function"&&(c=s,s=a,a=null),!(c>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=n(o),f=null,d=null,p=0,m=null,D={push:b,drain:r,saturated:r,pause:_,paused:!1,get concurrency(){return c},set concurrency(P){if(!(P>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(c=P,!D.paused)for(;f&&p<c;)p++,F()},running:h,resume:C,idle:y,length:g,getQueue:v,unshift:k,empty:r,kill:w,killAndDrain:T,error:$};return D;function h(){return p}function _(){D.paused=!0}function g(){for(var P=f,E=0;P;)P=P.next,E++;return E}function v(){for(var P=f,E=[];P;)E.push(P.value),P=P.next;return E}function C(){if(D.paused){if(D.paused=!1,f===null){p++,F();return}for(;f&&p<c;)p++,F()}}function y(){return p===0&&D.length()===0}function b(P,E){var A=l.get();A.context=a,A.release=F,A.value=P,A.callback=E||r,A.errorHandler=m,p>=c||D.paused?d?(d.next=A,d=A):(f=A,d=A,D.saturated()):(p++,s.call(a,A.value,A.worked))}function k(P,E){var A=l.get();A.context=a,A.release=F,A.value=P,A.callback=E||r,A.errorHandler=m,p>=c||D.paused?f?(A.next=f,f=A):(f=A,d=A,D.saturated()):(p++,s.call(a,A.value,A.worked))}function F(P){P&&l.release(P);var E=f;E&&p<=c?D.paused?p--:(d===f&&(d=null),f=E.next,E.next=null,s.call(a,E.value,E.worked),d===null&&D.empty()):--p===0&&D.drain()}function w(){f=null,d=null,D.drain=r}function T(){f=null,d=null,D.drain(),D.drain=r}function $(P){m=P}}function r(){}function o(){this.value=null,this.callback=r,this.next=null,this.release=r,this.context=null,this.errorHandler=null;var a=this;this.worked=function(c,l){var f=a.callback,d=a.errorHandler,p=a.value;a.value=null,a.callback=r,a.errorHandler&&d(c,p),f.call(a.context,c,l),a.release(a)}}function u(a,s,c){typeof a=="function"&&(c=s,s=a,a=null);function l(_,g){s.call(this,_).then(function(v){g(null,v)},g)}var f=i(a,l,c),d=f.push,p=f.unshift;return f.push=m,f.unshift=D,f.drained=h,f;function m(_){var g=new Promise(function(v,C){d(_,function(y,b){if(y){C(y);return}v(b)})});return g.catch(r),g}function D(_){var g=new Promise(function(v,C){p(_,function(y,b){if(y){C(y);return}v(b)})});return g.catch(r),g}function h(){var _=new Promise(function(g){process.nextTick(function(){if(f.idle())g();else{var v=f.drain;f.drain=function(){typeof v=="function"&&v(),g(),f.drain=v}}})});return _}}t.exports=i,t.exports.promise=u}}),Xd=G({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(o,u){return o.errorFilter===null?!0:!o.errorFilter(u)}e.isFatalError=t;function n(o,u){return o===null||o(u)}e.isAppliedFilter=n;function i(o,u){return o.split(/[/\\]/).join(u)}e.replacePathSegmentSeparator=i;function r(o,u,a){return o===""?u:o.endsWith(a)?o+u:o+a+u}e.joinPathSegments=r}}),p0=G({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Xd(),n=class{constructor(i,r){this._root=i,this._settings=r,this._root=t.replacePathSegmentSeparator(i,r.pathSegmentSeparator)}};e.default=n}}),m0=G({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("events"),n=Jd(),i=D1(),r=Xd(),o=p0(),u=class extends o.default{constructor(a,s){super(a,s),this._settings=s,this._scandir=n.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,s){let c={directory:a,base:s};this._queue.push(c,l=>{l!==null&&this._handleError(l)})}_worker(a,s){this._scandir(a.directory,this._settings.fsScandirSettings,(c,l)=>{if(c!==null){s(c,void 0);return}for(let f of l)this._handleEntry(f,a.base);s(null,void 0)})}_handleError(a){this._isDestroyed||!r.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,s){if(this._isDestroyed||this._isFatalError)return;let c=a.path;s!==void 0&&(a.path=r.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,s===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=u}}),h1=G({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=m0(),n=class{constructor(o,u){this._root=o,this._settings=u,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(o){this._reader.onError(u=>{i(o,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{r(o,this._storage)}),this._reader.read()}};e.default=n;function i(o,u){o(u)}function r(o,u){o(null,u)}}}),g1=G({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=m0(),i=class{constructor(r,o){this._root=r,this._settings=o,this._reader=new n.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}}),v1=G({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Jd(),n=Xd(),i=p0(),r=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(o,u){this._queue.add({directory:o,base:u})}_handleQueue(){for(let o of this._queue.values())this._handleDirectory(o.directory,o.base)}_handleDirectory(o,u){try{let a=this._scandir(o,this._settings.fsScandirSettings);for(let s of a)this._handleEntry(s,u)}catch(a){this._handleError(a)}}_handleError(o){if(n.isFatalError(this._settings,o))throw o}_handleEntry(o,u){let a=o.path;u!==void 0&&(o.path=n.joinPathSegments(u,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._pushToStorage(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(a,u===void 0?void 0:o.path)}_pushToStorage(o){this._storage.push(o)}};e.default=r}}),y1=G({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=v1(),n=class{constructor(i,r){this._root=i,this._settings=r,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=n}}),_1=G({"node_modules/@nodelib/fs.walk/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=Jd(),i=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,o){return r??o}};e.default=i}}),Qd=G({"node_modules/@nodelib/fs.walk/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=h1(),n=g1(),i=y1(),r=_1();e.Settings=r.default;function o(c,l,f){if(typeof l=="function"){new t.default(c,s()).read(l);return}new t.default(c,s(l)).read(f)}e.walk=o;function u(c,l){let f=s(l);return new i.default(c,f).read()}e.walkSync=u;function a(c,l){let f=s(l);return new n.default(c,f).read()}e.walkStream=a;function s(c={}){return c instanceof r.default?c:new r.default(c)}}}),ep=G({"node_modules/fast-glob/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=mi(),i=Kr(),r=class{constructor(o){this._settings=o,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(o){return t.resolve(this._settings.cwd,o)}_makeEntry(o,u){let a={name:u,path:u,dirent:i.fs.createDirentFromStats(u,o)};return this._settings.stats&&(a.stats=o),a}_isFatalError(o){return!i.errno.isEnoentCodeError(o)&&!this._settings.suppressErrors}};e.default=r}}),D0=G({"node_modules/fast-glob/out/readers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=mi(),i=Qd(),r=ep(),o=class extends r.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=n.stat}dynamic(u,a){return this._walkStream(u,a)}static(u,a){let s=u.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(l,f,d)=>this._getEntry(s[l],u[l],a).then(p=>{p!==null&&a.entryFilter(p)&&c.push(p),l===s.length-1&&c.end(),d()}).catch(d);for(let l=0;l<s.length;l++)c.write(l);return c}_getEntry(u,a,s){return this._getStat(u).then(c=>this._makeEntry(c,a)).catch(c=>{if(s.errorFilter(c))return null;throw c})}_getStat(u){return new Promise((a,s)=>{this._stat(u,this._fsStatSettings,(c,l)=>c===null?a(l):s(c))})}};e.default=o}}),E1=G({"node_modules/fast-glob/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Qd(),n=ep(),i=D0(),r=class extends n.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(o,u){return new Promise((a,s)=>{this._walkAsync(o,u,(c,l)=>{c===null?a(l):s(c)})})}async static(o,u){let a=[],s=this._readerStream.static(o,u);return new Promise((c,l)=>{s.once("error",l),s.on("data",f=>a.push(f)),s.once("end",()=>c(a))})}};e.default=r}}),F1=G({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Kr(),n=class{constructor(i,r,o){this._patterns=i,this._settings=r,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let i of this._patterns){let r=this._getPatternSegments(i),o=this._splitSegmentsIntoSections(r);this._storage.push({complete:o.length<=1,pattern:i,segments:r,sections:o})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(o=>t.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:t.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,r=>r.dynamic&&t.pattern.hasGlobStar(r.pattern))}};e.default=n}}),C1=G({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=F1(),n=class extends t.default{match(i){let r=i.split("/"),o=r.length,u=this._storage.filter(a=>!a.complete||a.segments.length>o);for(let a of u){let s=a.sections[0];if(!a.complete&&o>s.length||r.every((l,f)=>{let d=a.segments[f];return!!(d.dynamic&&d.patternRe.test(l)||!d.dynamic&&d.pattern===l)}))return!0}return!1}};e.default=n}}),b1=G({"node_modules/fast-glob/out/providers/filters/deep.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Kr(),n=C1(),i=class{constructor(r,o){this._settings=r,this._micromatchOptions=o}getFilter(r,o,u){let a=this._getMatcher(o),s=this._getNegativePatternsRe(u);return c=>this._filter(r,c,a,s)}_getMatcher(r){return new n.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let o=r.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(o,this._micromatchOptions)}_filter(r,o,u,a){if(this._isSkippedByDeep(r,o.path)||this._isSkippedSymbolicLink(o))return!1;let s=t.path.removeLeadingDotSegment(o.path);return this._isSkippedByPositivePatterns(s,u)?!1:this._isSkippedByNegativePatterns(s,a)}_isSkippedByDeep(r,o){return this._settings.deep===1/0?!1:this._getEntryLevel(r,o)>=this._settings.deep}_getEntryLevel(r,o){let u=o.split("/").length;if(r==="")return u;let a=r.split("/").length;return u-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,o){return!this._settings.baseNameMatch&&!o.match(r)}_isSkippedByNegativePatterns(r,o){return!t.pattern.matchAny(r,o)}};e.default=i}}),A1=G({"node_modules/fast-glob/out/providers/filters/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Kr(),n=class{constructor(i,r){this._settings=i,this._micromatchOptions=r,this.index=new Map}getFilter(i,r){let[o,u]=t.pattern.partitionAbsoluteAndRelative(r),a={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(u,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,a)}_filter(i,r){let o=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;let u=this._isMatchToPatternsSet(o,r,i.dirent.isDirectory());return this._settings.unique&&u&&this._createIndexRecord(o),u}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,r,o){return!(!this._isMatchToPatterns(i,r.positive.all,o)||this._isMatchToPatterns(i,r.negative.relative,o)||this._isMatchToAbsoluteNegative(i,r.negative.absolute,o))}_isMatchToAbsoluteNegative(i,r,o){if(r.length===0)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(u,r,o)}_isMatchToPatterns(i,r,o){if(r.length===0)return!1;let u=t.pattern.matchAny(i,r);return!u&&o?t.pattern.matchAny(i+"/",r):u}};e.default=n}}),w1=G({"node_modules/fast-glob/out/providers/filters/error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Kr(),n=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=n}}),S1=G({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Kr(),n=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let r=i.path;return this._settings.absolute&&(r=t.path.makeAbsolute(this._settings.cwd,r),r=t.path.unixify(r)),this._settings.markDirectories&&i.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:r}):r}};e.default=n}}),tp=G({"node_modules/fast-glob/out/providers/provider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=b1(),i=A1(),r=w1(),o=S1(),u=class{constructor(a){this._settings=a,this.errorFilter=new r.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let s=a.base==="."?"":a.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=u}}),$1=G({"node_modules/fast-glob/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=E1(),n=tp(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(r){let o=this._getRootDirectory(r),u=this._getReaderOptions(r);return(await this.api(o,r,u)).map(s=>u.transform(s))}api(r,o,u){return o.dynamic?this._reader.dynamic(r,u):this._reader.static(o.patterns,u)}};e.default=i}}),k1=G({"node_modules/fast-glob/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=D0(),i=tp(),r=class extends i.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(o){let u=this._getRootDirectory(o),a=this._getReaderOptions(o),s=this.api(u,o,a),c=new t.Readable({objectMode:!0,read:()=>{}});return s.once("error",l=>c.emit("error",l)).on("data",l=>c.emit("data",a.transform(l))).once("end",()=>c.emit("end")),c.once("close",()=>s.destroy()),c}api(o,u,a){return u.dynamic?this._reader.dynamic(o,a):this._reader.static(u.patterns,a)}};e.default=r}}),I1=G({"node_modules/fast-glob/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=mi(),n=Qd(),i=ep(),r=class extends i.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=t.statSync}dynamic(o,u){return this._walkSync(o,u)}static(o,u){let a=[];for(let s of o){let c=this._getFullEntryPath(s),l=this._getEntry(c,s,u);l===null||!u.entryFilter(l)||a.push(l)}return a}_getEntry(o,u,a){try{let s=this._getStat(o);return this._makeEntry(s,u)}catch(s){if(a.errorFilter(s))return null;throw s}}_getStat(o){return this._statSync(o,this._fsStatSettings)}};e.default=r}}),x1=G({"node_modules/fast-glob/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=I1(),n=tp(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(r){let o=this._getRootDirectory(r),u=this._getReaderOptions(r);return this.api(o,r,u).map(u.transform)}api(r,o,u){return o.dynamic?this._reader.dynamic(r,u):this._reader.static(o.patterns,u)}};e.default=i}}),P1=G({"node_modules/fast-glob/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs"),n=Ee("os"),i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var r=class{constructor(o={}){this._options=o,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(o,u){return o===void 0?u:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),o)}};e.default=r}}),O1=G({"node_modules/fast-glob/out/index.js"(e,t){"use strict";var n=r1(),i=$1(),r=k1(),o=x1(),u=P1(),a=Kr();async function s(f,d){l(f);let p=c(f,i.default,d),m=await Promise.all(p);return a.array.flatten(m)}(function(f){f.glob=f,f.globSync=d,f.globStream=p,f.async=f;function d(C,y){l(C);let b=c(C,o.default,y);return a.array.flatten(b)}f.sync=d;function p(C,y){l(C);let b=c(C,r.default,y);return a.stream.merge(b)}f.stream=p;function m(C,y){l(C);let b=[].concat(C),k=new u.default(y);return n.generate(b,k)}f.generateTasks=m;function D(C,y){l(C);let b=new u.default(y);return a.pattern.isDynamicPattern(C,b)}f.isDynamicPattern=D;function h(C){return l(C),a.path.escape(C)}f.escapePath=h;function _(C){return l(C),a.path.convertPathToPattern(C)}f.convertPathToPattern=_;let g;(function(C){function y(k){return l(k),a.path.escapePosixPath(k)}C.escapePath=y;function b(k){return l(k),a.path.convertPosixPathToPattern(k)}C.convertPathToPattern=b})(g=f.posix||(f.posix={}));let v;(function(C){function y(k){return l(k),a.path.escapeWindowsPath(k)}C.escapePath=y;function b(k){return l(k),a.path.convertWindowsPathToPattern(k)}C.convertPathToPattern=b})(v=f.win32||(f.win32={}))})(s||(s={}));function c(f,d,p){let m=[].concat(f),D=new u.default(p),h=n.generate(m,D),_=new d(D);return h.map(_.read,_)}function l(f){if(![].concat(f).every(m=>a.string.isString(m)&&!a.string.isEmpty(m)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=s}}),h0=G({"node_modules/semver/internal/debug.js"(e,t){var n=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};t.exports=n}}),g0=G({"node_modules/semver/internal/constants.js"(e,t){var n="2.0.0",i=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,u=i-6,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:r,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),B1=G({"node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:r}=g0(),o=h0();e=t.exports={};var u=e.re=[],a=e.safeRe=[],s=e.src=[],c=e.safeSrc=[],l=e.t={},f=0,d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",r],[d,i]],m=h=>{for(let[_,g]of p)h=h.split(`${_}*`).join(`${_}{0,${g}}`).split(`${_}+`).join(`${_}{1,${g}}`);return h},D=(h,_,g)=>{let v=m(_),C=f++;o(h,C,_),l[h]=C,s[C]=_,c[C]=v,u[C]=new RegExp(_,g?"g":void 0),a[C]=new RegExp(v,g?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","\\d+"),D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),D("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),D("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASEIDENTIFIER",`(?:${s[l.NUMERICIDENTIFIER]}|${s[l.NONNUMERICIDENTIFIER]})`),D("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NUMERICIDENTIFIERLOOSE]}|${s[l.NONNUMERICIDENTIFIER]})`),D("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),D("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),D("BUILDIDENTIFIER",`${d}+`),D("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),D("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),D("FULL",`^${s[l.FULLPLAIN]}$`),D("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),D("LOOSE",`^${s[l.LOOSEPLAIN]}$`),D("GTLT","((?:<|>)?=?)"),D("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),D("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),D("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),D("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),D("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),D("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),D("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),D("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),D("COERCERTL",s[l.COERCE],!0),D("COERCERTLFULL",s[l.COERCEFULL],!0),D("LONETILDE","(?:~>?)"),D("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",D("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),D("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),D("LONECARET","(?:\\^)"),D("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",D("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),D("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),D("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),D("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),D("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",D("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),D("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),D("STAR","(<|>)?=?\\s*\\*"),D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),T1=G({"node_modules/semver/internal/parse-options.js"(e,t){var n=Object.freeze({loose:!0}),i=Object.freeze({}),r=o=>o?typeof o!="object"?n:o:i;t.exports=r}}),N1=G({"node_modules/semver/internal/identifiers.js"(e,t){var n=/^[0-9]+$/,i=(o,u)=>{let a=n.test(o),s=n.test(u);return a&&s&&(o=+o,u=+u),o===u?0:a&&!s?-1:s&&!a?1:o<u?-1:1},r=(o,u)=>i(u,o);t.exports={compareIdentifiers:i,rcompareIdentifiers:r}}}),R1=G({"node_modules/semver/classes/semver.js"(e,t){var n=h0(),{MAX_LENGTH:i,MAX_SAFE_INTEGER:r}=g0(),{safeRe:o,safeSrc:u,t:a}=B1(),s=T1(),{compareIdentifiers:c}=N1(),l=class Ht{constructor(d,p){if(p=s(p),d instanceof Ht){if(d.loose===!!p.loose&&d.includePrerelease===!!p.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",d,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;let m=d.trim().match(p.loose?o[a.LOOSE]:o[a.FULL]);if(!m)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(D=>{if(/^[0-9]+$/.test(D)){let h=+D;if(h>=0&&h<r)return h}return D}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(n("SemVer.compare",this.version,this.options,d),!(d instanceof Ht)){if(typeof d=="string"&&d===this.version)return 0;d=new Ht(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof Ht||(d=new Ht(d,this.options)),c(this.major,d.major)||c(this.minor,d.minor)||c(this.patch,d.patch)}comparePre(d){if(d instanceof Ht||(d=new Ht(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let p=0;do{let m=this.prerelease[p],D=d.prerelease[p];if(n("prerelease compare",p,m,D),m===void 0&&D===void 0)return 0;if(D===void 0)return 1;if(m===void 0)return-1;if(m===D)continue;return c(m,D)}while(++p)}compareBuild(d){d instanceof Ht||(d=new Ht(d,this.options));let p=0;do{let m=this.build[p],D=d.build[p];if(n("build compare",p,m,D),m===void 0&&D===void 0)return 0;if(D===void 0)return 1;if(m===void 0)return-1;if(m===D)continue;return c(m,D)}while(++p)}inc(d,p,m){if(d.startsWith("pre")){if(!p&&m===!1)throw new Error("invalid increment argument: identifier is empty");if(p){let D=new RegExp(`^${this.options.loose?u[a.PRERELEASELOOSE]:u[a.PRERELEASE]}$`),h=`-${p}`.match(D);if(!h||h[1]!==p)throw new Error(`invalid identifier: ${p}`)}}switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,m);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,m);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,m),this.inc("pre",p,m);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,m),this.inc("pre",p,m);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let D=Number(m)?1:0;if(this.prerelease.length===0)this.prerelease=[D];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(p===this.prerelease.join(".")&&m===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(D)}}if(p){let h=[p,D];m===!1&&(h=[p]),c(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),j1=G({"node_modules/semver/functions/compare.js"(e,t){var n=R1(),i=(r,o,u)=>new n(r,u).compare(new n(o,u));t.exports=i}}),L1=G({"node_modules/semver/functions/gte.js"(e,t){var n=j1(),i=(r,o,u)=>n(r,o,u)>=0;t.exports=i}}),z1=G({"node_modules/pseudomap/pseudomap.js"(e,t){var n=Object.prototype.hasOwnProperty;t.exports=i;function i(s){if(!(this instanceof i))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),s)if(s instanceof i||typeof Map=="function"&&s instanceof Map)s.forEach(function(c,l){this.set(l,c)},this);else if(Array.isArray(s))s.forEach(function(c){this.set(c[0],c[1])},this);else throw new TypeError("invalid argument")}i.prototype.forEach=function(s,c){c=c||this,Object.keys(this._data).forEach(function(l){l!=="size"&&s.call(c,this._data[l].value,this._data[l].key)},this)},i.prototype.has=function(s){return!!u(this._data,s)},i.prototype.get=function(s){var c=u(this._data,s);return c&&c.value},i.prototype.set=function(s,c){a(this._data,s,c)},i.prototype.delete=function(s){var c=u(this._data,s);c&&(delete this._data[c._index],this._data.size--)},i.prototype.clear=function(){var s=Object.create(null);s.size=0,Object.defineProperty(this,"_data",{value:s,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(i.prototype,"size",{get:function(){return this._data.size},set:function(s){},enumerable:!0,configurable:!0}),i.prototype.values=i.prototype.keys=i.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function r(s,c){return s===c||s!==s&&c!==c}function o(s,c,l){this.key=s,this.value=c,this._index=l}function u(s,c){for(var l=0,f="_"+c,d=f;n.call(s,d);d=f+l++)if(r(s[d].key,c))return s[d]}function a(s,c,l){for(var f=0,d="_"+c,p=d;n.call(s,p);p=d+f++)if(r(s[p].key,c)){s[p].value=l;return}s.size++,s[p]=new o(c,l,p)}}}),U1=G({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=z1()}}),M1=G({"node_modules/yallist/yallist.js"(e,t){t.exports=n,n.Node=o,n.create=n;function n(u){var a=this;if(a instanceof n||(a=new n),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(l){a.push(l)});else if(arguments.length>0)for(var s=0,c=arguments.length;s<c;s++)a.push(arguments[s]);return a}n.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,s=u.prev;a&&(a.prev=s),s&&(s.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=s),u.list.length--,u.next=null,u.prev=null,u.list=null},n.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},n.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},n.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)i(this,arguments[u]);return this.length},n.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)r(this,arguments[u]);return this.length},n.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},n.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},n.prototype.forEach=function(u,a){a=a||this;for(var s=this.head,c=0;s!==null;c++)u.call(a,s.value,c,this),s=s.next},n.prototype.forEachReverse=function(u,a){a=a||this;for(var s=this.tail,c=this.length-1;s!==null;c--)u.call(a,s.value,c,this),s=s.prev},n.prototype.get=function(u){for(var a=0,s=this.head;s!==null&&a<u;a++)s=s.next;if(a===u&&s!==null)return s.value},n.prototype.getReverse=function(u){for(var a=0,s=this.tail;s!==null&&a<u;a++)s=s.prev;if(a===u&&s!==null)return s.value},n.prototype.map=function(u,a){a=a||this;for(var s=new n,c=this.head;c!==null;)s.push(u.call(a,c.value,this)),c=c.next;return s},n.prototype.mapReverse=function(u,a){a=a||this;for(var s=new n,c=this.tail;c!==null;)s.push(u.call(a,c.value,this)),c=c.prev;return s},n.prototype.reduce=function(u,a){var s,c=this.head;if(arguments.length>1)s=a;else if(this.head)c=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;c!==null;l++)s=u(s,c.value,l),c=c.next;return s},n.prototype.reduceReverse=function(u,a){var s,c=this.tail;if(arguments.length>1)s=a;else if(this.tail)c=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;c!==null;l--)s=u(s,c.value,l),c=c.prev;return s},n.prototype.toArray=function(){for(var u=new Array(this.length),a=0,s=this.head;s!==null;a++)u[a]=s.value,s=s.next;return u},n.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,s=this.tail;s!==null;a++)u[a]=s.value,s=s.prev;return u},n.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var s=new n;if(a<u||a<0)return s;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,l=this.head;l!==null&&c<u;c++)l=l.next;for(;l!==null&&c<a;c++,l=l.next)s.push(l.value);return s},n.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var s=new n;if(a<u||a<0)return s;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,l=this.tail;l!==null&&c>a;c--)l=l.prev;for(;l!==null&&c>u;c--,l=l.prev)s.push(l.value);return s},n.prototype.reverse=function(){for(var u=this.head,a=this.tail,s=u;s!==null;s=s.prev){var c=s.prev;s.prev=s.next,s.next=c}return this.head=a,this.tail=u,this};function i(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function r(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,s,c){if(!(this instanceof o))return new o(u,a,s,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}}}),V1=G({"node_modules/editorconfig/node_modules/lru-cache/index.js"(e,t){"use strict";t.exports=_;var n=U1(),i=Ee("util"),r=M1(),o=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",u;o?u=function(F){return Symbol(F)}:u=function(F){return"_"+F};var a=u("max"),s=u("length"),c=u("lengthCalculator"),l=u("allowStale"),f=u("maxAge"),d=u("dispose"),p=u("noDisposeOnSet"),m=u("lruList"),D=u("cache");function h(){return 1}function _(F){if(!(this instanceof _))return new _(F);typeof F=="number"&&(F={max:F}),F||(F={});var w=this[a]=F.max;(!w||typeof w!="number"||w<=0)&&(this[a]=1/0);var T=F.length||h;typeof T!="function"&&(T=h),this[c]=T,this[l]=F.stale||!1,this[f]=F.maxAge||0,this[d]=F.dispose,this[p]=F.noDisposeOnSet||!1,this.reset()}Object.defineProperty(_.prototype,"max",{set:function(F){(!F||typeof F!="number"||F<=0)&&(F=1/0),this[a]=F,y(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(_.prototype,"allowStale",{set:function(F){this[l]=!!F},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(_.prototype,"maxAge",{set:function(F){(!F||typeof F!="number"||F<0)&&(F=0),this[f]=F,y(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(_.prototype,"lengthCalculator",{set:function(F){typeof F!="function"&&(F=h),F!==this[c]&&(this[c]=F,this[s]=0,this[m].forEach(function(w){w.length=this[c](w.value,w.key),this[s]+=w.length},this)),y(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(_.prototype,"length",{get:function(){return this[s]},enumerable:!0}),Object.defineProperty(_.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),_.prototype.rforEach=function(F,w){w=w||this;for(var T=this[m].tail;T!==null;){var $=T.prev;g(this,F,T,w),T=$}};function g(F,w,T,$){var P=T.value;C(F,P)&&(b(F,T),F[l]||(P=void 0)),P&&w.call($,P.value,P.key,F)}_.prototype.forEach=function(F,w){w=w||this;for(var T=this[m].head;T!==null;){var $=T.next;g(this,F,T,w),T=$}},_.prototype.keys=function(){return this[m].toArray().map(function(F){return F.key},this)},_.prototype.values=function(){return this[m].toArray().map(function(F){return F.value},this)},_.prototype.reset=function(){this[d]&&this[m]&&this[m].length&&this[m].forEach(function(F){this[d](F.key,F.value)},this),this[D]=new n,this[m]=new r,this[s]=0},_.prototype.dump=function(){return this[m].map(function(F){if(!C(this,F))return{k:F.key,v:F.value,e:F.now+(F.maxAge||0)}},this).toArray().filter(function(F){return F})},_.prototype.dumpLru=function(){return this[m]},_.prototype.inspect=function(F,w){var T="LRUCache {",$=!1,P=this[l];P&&(T+=`
|
|
44
|
+
`}}var vb=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function yb(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function _b(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Eb=e=>!(yb(e)||_b(e)),Fb=/[^\x20-\x7F]/u;function Cb(e){if(!e)return 0;if(!Fb.test(e))return e.length;e=e.replace(vb()," ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||(t+=Eb(i)?1:2)}return t}var Rh=Cb,Dt=Symbol("MODE_BREAK"),Gt=Symbol("MODE_FLAT"),Qn=Symbol("cursor"),Jf=Symbol("DOC_FILL_PRINTED_LENGTH");function jh(){return{value:"",length:0,queue:[]}}function bb(e,t){return Xf(e,{type:"indent"},t)}function Ab(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||jh():t<0?Xf(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Xf(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Xf(e,t,n){let i=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,u=0,a=0;for(let d of i)switch(d.type){case"indent":l(),n.useTabs?s(1):c(n.tabWidth);break;case"stringAlign":l(),r+=d.n,o+=d.n.length;break;case"numberAlign":u+=1,a+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:r,length:o,queue:i};function s(d){r+=" ".repeat(d),o+=n.tabWidth*d}function c(d){r+=" ".repeat(d),o+=d}function l(){n.useTabs?f():p()}function f(){u>0&&s(u),m()}function p(){a>0&&c(a),m()}function m(){u=0,a=0}}function Qf(e){let t=0,n=0,i=e.length;e:for(;i--;){let r=e[i];if(r===Qn){n++;continue}for(let o=r.length-1;o>=0;o--){let u=r[o];if(u===" "||u===" ")t++;else{e[i]=r.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=i+1;n-- >0;)e.push(Qn);return t}function ta(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,a=[e],s=[];for(;n>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:l}=a.pop(),f=pn(l);switch(f){case fn:s.push(l),n-=Rh(l);break;case cr:case Pr:{let p=f===cr?l:l.parts,m=l[Jf]??0;for(let d=p.length-1;d>=m;d--)a.push({mode:c,doc:p[d]});break}case kr:case Ir:case Or:case Nr:a.push({mode:c,doc:l.contents});break;case xr:n+=Qf(s);break;case wt:{if(o&&l.break)return!1;let p=l.break?Dt:c,m=l.expandedStates&&p===Dt?$r(!1,l.expandedStates,-1):l.contents;a.push({mode:p,doc:m});break}case Bt:{let m=(l.groupId?r[l.groupId]||Gt:c)===Dt?l.breakContents:l.flatContents;m&&a.push({mode:c,doc:m});break}case at:if(c===Dt||l.hard)return!0;l.soft||(s.push(" "),n--);break;case Br:i=!0;break;case Tr:if(i)return!1;break}}return!1}function wb(e,t){let n={},i=t.printWidth,r=gb(t.endOfLine),o=0,u=[{ind:jh(),mode:Dt,doc:e}],a=[],s=!1,c=[],l=0;for(VC(e);u.length>0;){let{ind:p,mode:m,doc:d}=u.pop();switch(pn(d)){case fn:{let D=r!==`
|
|
45
|
+
`?hb(!1,d,`
|
|
46
|
+
`,r):d;a.push(D),u.length>0&&(o+=Rh(D));break}case cr:for(let D=d.length-1;D>=0;D--)u.push({ind:p,mode:m,doc:d[D]});break;case dn:if(l>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Qn),l++;break;case kr:u.push({ind:bb(p,t),mode:m,doc:d.contents});break;case Ir:u.push({ind:Ab(p,d.n,t),mode:m,doc:d.contents});break;case xr:o-=Qf(a);break;case wt:switch(m){case Gt:if(!s){u.push({ind:p,mode:d.break?Dt:Gt,doc:d.contents});break}case Dt:{s=!1;let D={ind:p,mode:Gt,doc:d.contents},h=i-o,y=c.length>0;if(!d.break&&ta(D,u,h,y,n))u.push(D);else if(d.expandedStates){let g=$r(!1,d.expandedStates,-1);if(d.break){u.push({ind:p,mode:Dt,doc:g});break}else for(let v=1;v<d.expandedStates.length+1;v++)if(v>=d.expandedStates.length){u.push({ind:p,mode:Dt,doc:g});break}else{let C=d.expandedStates[v],_={ind:p,mode:Gt,doc:C};if(ta(_,u,h,y,n)){u.push(_);break}}}else u.push({ind:p,mode:Dt,doc:d.contents});break}}d.id&&(n[d.id]=$r(!1,u,-1).mode);break;case Pr:{let D=i-o,h=d[Jf]??0,{parts:y}=d,g=y.length-h;if(g===0)break;let v=y[h+0],C=y[h+1],_={ind:p,mode:Gt,doc:v},b={ind:p,mode:Dt,doc:v},k=ta(_,[],D,c.length>0,n,!0);if(g===1){k?u.push(_):u.push(b);break}let F={ind:p,mode:Gt,doc:C},w={ind:p,mode:Dt,doc:C};if(g===2){k?u.push(F,_):u.push(w,b);break}let T=y[h+2],$={ind:p,mode:m,doc:{...d,[Jf]:h+2}};ta({ind:p,mode:Gt,doc:[v,C,T]},[],D,c.length>0,n,!0)?u.push($,F,_):k?u.push($,w,_):u.push($,w,b);break}case Bt:case Or:{let D=d.groupId?n[d.groupId]:m;if(D===Dt){let h=d.type===Bt?d.breakContents:d.negate?d.contents:ra(d.contents);h&&u.push({ind:p,mode:m,doc:h})}if(D===Gt){let h=d.type===Bt?d.flatContents:d.negate?ra(d.contents):d.contents;h&&u.push({ind:p,mode:m,doc:h})}break}case Br:c.push({ind:p,mode:m,doc:d.contents});break;case Tr:c.length>0&&u.push({ind:p,mode:m,doc:id});break;case at:switch(m){case Gt:if(d.hard)s=!0;else{d.soft||(a.push(" "),o+=1);break}case Dt:if(c.length>0){u.push({ind:p,mode:m,doc:d},...c.reverse()),c.length=0;break}d.literal?p.root?(a.push(r,p.root.value),o=p.root.length):(a.push(r),o=0):(o-=Qf(a),a.push(r+p.value),o=p.length);break}break;case Nr:u.push({ind:p,mode:m,doc:d.contents});break;case Kt:break;default:throw new ei(d)}u.length===0&&c.length>0&&(u.push(...c.reverse()),c.length=0)}let f=a.indexOf(Qn);if(f!==-1){let p=a.indexOf(Qn,f+1);if(p===-1)return{formatted:a.filter(h=>h!==Qn).join("")};let m=a.slice(0,f).join(""),d=a.slice(f+1,p).join(""),D=a.slice(p+1).join("");return{formatted:m+d+D,cursorNodeStart:m.length,cursorNodeText:d}}return{formatted:a.join("")}}var Lh={join:Nh,line:cb,softline:lb,hardline:fb,literalline:Th,group:Oh,conditionalGroup:rb,fill:nb,lineSuffix:ub,lineSuffixBoundary:ab,cursor:db,breakParent:nd,ifBreak:ib,trim:sb,indent:ra,indentIfBreak:ob,align:ti,addAlignmentToDoc:pb,markAsRoot:eb,dedentToRoot:QC,dedent:tb,hardlineWithoutBreakParent:id,literallineWithoutBreakParent:Bh,label:mb,concat:e=>e},zh={printDocToString:wb},Uh={willBreak:MC,traverseDoc:ed,findInDoc:td,mapDoc:na,removeLines:GC,stripTrailingHardline:WC,replaceEndOfLine:qC,canBreak:JC},Sb=Ih;var ri=$b(import.meta.url),xb=kb(import.meta.url),bT=Ib(xb),Pb=Object.create,Ba=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,c0=Object.getOwnPropertyNames,Bb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty,l0=e=>{throw TypeError(e)},Nb=(e,t,n)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e=>typeof ri<"u"?ri:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof ri<"u"?ri:t)[n]}):e)(function(e){if(typeof ri<"u")return ri.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),G=(e,t)=>function(){return t||(0,e[c0(e)[0]])((t={exports:{}}).exports,t),t.exports},Po=(e,t)=>{for(var n in t)Ba(e,n,{get:t[n],enumerable:!0})},Rb=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c0(t))!Tb.call(e,r)&&r!==n&&Ba(e,r,{get:()=>t[r],enumerable:!(i=Ob(t,r))||i.enumerable});return e},Gr=(e,t,n)=>(n=e!=null?Pb(Bb(e)):{},Rb(t||!e||!e.__esModule?Ba(n,"default",{value:e,enumerable:!0}):n,e)),ia=(e,t,n)=>Nb(e,typeof t!="symbol"?t+"":t,n),Yd=(e,t,n)=>t.has(e)||l0("Cannot "+n),xe=(e,t,n)=>(Yd(e,t,"read from private field"),n?n.call(e):t.get(e)),Jt=(e,t,n)=>t.has(e)?l0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),vt=(e,t,n,i)=>(Yd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ni=(e,t,n)=>(Yd(e,t,"access private method"),n),jb=G({"node_modules/fast-glob/out/utils/array.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((r,o)=>[].concat(r,o),[])}e.flatten=t;function n(i,r){let o=[[]],u=0;for(let a of i)r(a)?(u++,o[u]=[]):o[u].push(a);return o}e.splitWhen=n}}),Lb=G({"node_modules/fast-glob/out/utils/errno.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(n){return n.code==="ENOENT"}e.isEnoentCodeError=t}}),zb=G({"node_modules/fast-glob/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,r){this.name=i,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function n(i,r){return new t(i,r)}e.createDirentFromStats=n}}),Ub=G({"node_modules/fast-glob/out/utils/path.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=Ee("os"),n=Ee("path"),i=t.platform()==="win32",r=2,o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,s=/\\(?![!()+@[\]{}])/g;function c(h){return h.replace(/\\/g,"/")}e.unixify=c;function l(h,y){return n.resolve(h,y)}e.makeAbsolute=l;function f(h){if(h.charAt(0)==="."){let y=h.charAt(1);if(y==="/"||y==="\\")return h.slice(r)}return h}e.removeLeadingDotSegment=f,e.escape=i?p:m;function p(h){return h.replace(u,"\\$2")}e.escapeWindowsPath=p;function m(h){return h.replace(o,"\\$2")}e.escapePosixPath=m,e.convertPathToPattern=i?d:D;function d(h){return p(h).replace(a,"//$1").replace(s,"/")}e.convertWindowsPathToPattern=d;function D(h){return m(h)}e.convertPosixPathToPattern=D}}),Mb=G({"node_modules/is-extglob/index.js"(e,t){t.exports=function(i){if(typeof i!="string"||i==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(i);){if(r[2])return!0;i=i.slice(r.index+r[0].length)}return!1}}}),Vb=G({"node_modules/is-glob/index.js"(e,t){var n=Mb(),i={"{":"}","(":")","[":"]"},r=function(u){if(u[0]==="!")return!0;for(var a=0,s=-2,c=-2,l=-2,f=-2,p=-2;a<u.length;){if(u[a]==="*"||u[a+1]==="?"&&/[\].+)]/.test(u[a])||c!==-1&&u[a]==="["&&u[a+1]!=="]"&&(c<a&&(c=u.indexOf("]",a)),c>a&&(p===-1||p>c||(p=u.indexOf("\\",a),p===-1||p>c)))||l!==-1&&u[a]==="{"&&u[a+1]!=="}"&&(l=u.indexOf("}",a),l>a&&(p=u.indexOf("\\",a),p===-1||p>l))||f!==-1&&u[a]==="("&&u[a+1]==="?"&&/[:!=]/.test(u[a+2])&&u[a+3]!==")"&&(f=u.indexOf(")",a),f>a&&(p=u.indexOf("\\",a),p===-1||p>f))||s!==-1&&u[a]==="("&&u[a+1]!=="|"&&(s<a&&(s=u.indexOf("|",a)),s!==-1&&u[s+1]!==")"&&(f=u.indexOf(")",s),f>s&&(p=u.indexOf("\\",s),p===-1||p>f))))return!0;if(u[a]==="\\"){var m=u[a+1];a+=2;var d=i[m];if(d){var D=u.indexOf(d,a);D!==-1&&(a=D+1)}if(u[a]==="!")return!0}else a++}return!1},o=function(u){if(u[0]==="!")return!0;for(var a=0;a<u.length;){if(/[*?{}()[\]]/.test(u[a]))return!0;if(u[a]==="\\"){var s=u[a+1];a+=2;var c=i[s];if(c){var l=u.indexOf(c,a);l!==-1&&(a=l+1)}if(u[a]==="!")return!0}else a++}return!1};t.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(n(a))return!0;var c=r;return s&&s.strict===!1&&(c=o),c(a)}}}),Zb=G({"node_modules/glob-parent/index.js"(e,t){"use strict";var n=Vb(),i=Ee("path").posix.dirname,r=Ee("os").platform()==="win32",o="/",u=/\\/g,a=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,p){var m=Object.assign({flipBackslashes:!0},p);m.flipBackslashes&&r&&f.indexOf(o)<0&&(f=f.replace(u,o)),a.test(f)&&(f+=o),f+="a";do f=i(f);while(n(f)||s.test(f));return f.replace(c,"$1")}}}),Jd=G({"node_modules/braces/lib/utils.js"(e){"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,n)=>t.nodes.find(i=>i.type===n),e.exceedsLimit=(t,n,i=1,r)=>r===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(i)>=r,e.escapeNode=(t,n=0,i)=>{let r=t.nodes[n];r&&(i&&r.type===i||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0),e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((n,i)=>(i.type==="text"&&n.push(i.value),i.type==="range"&&(i.type="text"),n),[]),e.flatten=(...t)=>{let n=[],i=r=>{for(let o=0;o<r.length;o++){let u=r[o];if(Array.isArray(u)){i(u);continue}u!==void 0&&n.push(u)}return n};return i(t),n}}}),Xd=G({"node_modules/braces/lib/stringify.js"(e,t){"use strict";var n=Jd();t.exports=(i,r={})=>{let o=(u,a={})=>{let s=r.escapeInvalid&&n.isInvalidBrace(a),c=u.invalid===!0&&r.escapeInvalid===!0,l="";if(u.value)return(s||c)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let f of u.nodes)l+=o(f);return l};return o(i)}}}),Gb=G({"node_modules/is-number/index.js"(e,t){"use strict";t.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}}),Wb=G({"node_modules/to-regex-range/index.js"(e,t){"use strict";var n=Gb(),i=(g,v,C)=>{if(n(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(v===void 0||g===v)return String(g);if(n(v)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let _={relaxZeros:!0,...C};typeof _.strictZeros=="boolean"&&(_.relaxZeros=_.strictZeros===!1);let b=String(_.relaxZeros),k=String(_.shorthand),F=String(_.capture),w=String(_.wrap),T=g+":"+v+"="+b+k+F+w;if(i.cache.hasOwnProperty(T))return i.cache[T].result;let $=Math.min(g,v),P=Math.max(g,v);if(Math.abs($-P)===1){let j=g+"|"+v;return _.capture?`(${j})`:_.wrap===!1?j:`(?:${j})`}let E=h(g)||h(v),A={min:g,max:v,a:$,b:P},S=[],I=[];if(E&&(A.isPadded=E,A.maxLen=String(A.max).length),$<0){let j=P<0?Math.abs(P):1;I=a(j,Math.abs($),A,_),$=A.a=0}return P>=0&&(S=a($,P,A,_)),A.negatives=I,A.positives=S,A.result=r(I,S,_),_.capture===!0?A.result=`(${A.result})`:_.wrap!==!1&&S.length+I.length>1&&(A.result=`(?:${A.result})`),i.cache[T]=A,A.result};function r(g,v,C){let _=s(g,v,"-",!1,C)||[],b=s(v,g,"",!1,C)||[],k=s(g,v,"-?",!0,C)||[];return _.concat(k).concat(b).join("|")}function o(g,v){let C=1,_=1,b=p(g,C),k=new Set([v]);for(;g<=b&&b<=v;)k.add(b),C+=1,b=p(g,C);for(b=m(v+1,_)-1;g<b&&b<=v;)k.add(b),_+=1,b=m(v+1,_)-1;return k=[...k],k.sort(l),k}function u(g,v,C){if(g===v)return{pattern:g,count:[],digits:0};let _=c(g,v),b=_.length,k="",F=0;for(let w=0;w<b;w++){let[T,$]=_[w];T===$?k+=T:T!=="0"||$!=="9"?k+=D(T,$,C):F++}return F&&(k+=C.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[F],digits:b}}function a(g,v,C,_){let b=o(g,v),k=[],F=g,w;for(let T=0;T<b.length;T++){let $=b[T],P=u(String(F),String($),_),E="";if(!C.isPadded&&w&&w.pattern===P.pattern){w.count.length>1&&w.count.pop(),w.count.push(P.count[0]),w.string=w.pattern+d(w.count),F=$+1;continue}C.isPadded&&(E=y($,C,_)),P.string=E+P.pattern+d(P.count),k.push(P),F=$+1,w=P}return k}function s(g,v,C,_,b){let k=[];for(let F of g){let{string:w}=F;!_&&!f(v,"string",w)&&k.push(C+w),_&&f(v,"string",w)&&k.push(C+w)}return k}function c(g,v){let C=[];for(let _=0;_<g.length;_++)C.push([g[_],v[_]]);return C}function l(g,v){return g>v?1:v>g?-1:0}function f(g,v,C){return g.some(_=>_[v]===C)}function p(g,v){return Number(String(g).slice(0,-v)+"9".repeat(v))}function m(g,v){return g-g%Math.pow(10,v)}function d(g){let[v=0,C=""]=g;return C||v>1?`{${v+(C?","+C:"")}}`:""}function D(g,v,C){return`[${g}${v-g===1?"":"-"}${v}]`}function h(g){return/^-?(0+)\d/.test(g)}function y(g,v,C){if(!v.isPadded)return g;let _=Math.abs(v.maxLen-String(g).length),b=C.relaxZeros!==!1;switch(_){case 0:return"";case 1:return b?"0?":"0";case 2:return b?"0{0,2}":"00";default:return b?`0{0,${_}}`:`0{${_}}`}}i.cache={},i.clearCache=()=>i.cache={},t.exports=i}}),f0=G({"node_modules/fill-range/index.js"(e,t){"use strict";var n=Ee("util"),i=Wb(),r=_=>_!==null&&typeof _=="object"&&!Array.isArray(_),o=_=>b=>_===!0?Number(b):String(b),u=_=>typeof _=="number"||typeof _=="string"&&_!=="",a=_=>Number.isInteger(+_),s=_=>{let b=`${_}`,k=-1;if(b[0]==="-"&&(b=b.slice(1)),b==="0")return!1;for(;b[++k]==="0";);return k>0},c=(_,b,k)=>typeof _=="string"||typeof b=="string"?!0:k.stringify===!0,l=(_,b,k)=>{if(b>0){let F=_[0]==="-"?"-":"";F&&(_=_.slice(1)),_=F+_.padStart(F?b-1:b,"0")}return k===!1?String(_):_},f=(_,b)=>{let k=_[0]==="-"?"-":"";for(k&&(_=_.slice(1),b--);_.length<b;)_="0"+_;return k?"-"+_:_},p=(_,b,k)=>{_.negatives.sort((P,E)=>P<E?-1:P>E?1:0),_.positives.sort((P,E)=>P<E?-1:P>E?1:0);let F=b.capture?"":"?:",w="",T="",$;return _.positives.length&&(w=_.positives.map(P=>f(String(P),k)).join("|")),_.negatives.length&&(T=`-(${F}${_.negatives.map(P=>f(String(P),k)).join("|")})`),w&&T?$=`${w}|${T}`:$=w||T,b.wrap?`(${F}${$})`:$},m=(_,b,k,F)=>{if(k)return i(_,b,{wrap:!1,...F});let w=String.fromCharCode(_);if(_===b)return w;let T=String.fromCharCode(b);return`[${w}-${T}]`},d=(_,b,k)=>{if(Array.isArray(_)){let F=k.wrap===!0,w=k.capture?"":"?:";return F?`(${w}${_.join("|")})`:_.join("|")}return i(_,b,k)},D=(..._)=>new RangeError("Invalid range arguments: "+n.inspect(..._)),h=(_,b,k)=>{if(k.strictRanges===!0)throw D([_,b]);return[]},y=(_,b)=>{if(b.strictRanges===!0)throw new TypeError(`Expected step "${_}" to be a number`);return[]},g=(_,b,k=1,F={})=>{let w=Number(_),T=Number(b);if(!Number.isInteger(w)||!Number.isInteger(T)){if(F.strictRanges===!0)throw D([_,b]);return[]}w===0&&(w=0),T===0&&(T=0);let $=w>T,P=String(_),E=String(b),A=String(k);k=Math.max(Math.abs(k),1);let S=s(P)||s(E)||s(A),I=S?Math.max(P.length,E.length,A.length):0,j=S===!1&&c(_,b,F)===!1,W=F.transform||o(j);if(F.toRegex&&k===1)return m(f(_,I),f(b,I),!0,F);let V={negatives:[],positives:[]},Z=B=>V[B<0?"negatives":"positives"].push(Math.abs(B)),z=[],Y=0;for(;$?w>=T:w<=T;)F.toRegex===!0&&k>1?Z(w):z.push(l(W(w,Y),I,j)),w=$?w-k:w+k,Y++;return F.toRegex===!0?k>1?p(V,F,I):d(z,null,{wrap:!1,...F}):z},v=(_,b,k=1,F={})=>{if(!a(_)&&_.length>1||!a(b)&&b.length>1)return h(_,b,F);let w=F.transform||(j=>String.fromCharCode(j)),T=`${_}`.charCodeAt(0),$=`${b}`.charCodeAt(0),P=T>$,E=Math.min(T,$),A=Math.max(T,$);if(F.toRegex&&k===1)return m(E,A,!1,F);let S=[],I=0;for(;P?T>=$:T<=$;)S.push(w(T,I)),T=P?T-k:T+k,I++;return F.toRegex===!0?d(S,null,{wrap:!1,options:F}):S},C=(_,b,k,F={})=>{if(b==null&&u(_))return[_];if(!u(_)||!u(b))return h(_,b,F);if(typeof k=="function")return C(_,b,1,{transform:k});if(r(k))return C(_,b,0,k);let w={...F};return w.capture===!0&&(w.wrap=!0),k=k||w.step||1,a(k)?a(_)&&a(b)?g(_,b,k,w):v(_,b,Math.max(Math.abs(k),1),w):k!=null&&!r(k)?y(k,w):C(_,b,1,k)};t.exports=C}}),Kb=G({"node_modules/braces/lib/compile.js"(e,t){"use strict";var n=f0(),i=Jd(),r=(o,u={})=>{let a=(s,c={})=>{let l=i.isInvalidBrace(c),f=s.invalid===!0&&u.escapeInvalid===!0,p=l===!0||f===!0,m=u.escapeInvalid===!0?"\\":"",d="";if(s.isOpen===!0)return m+s.value;if(s.isClose===!0)return console.log("node.isClose",m,s.value),m+s.value;if(s.type==="open")return p?m+s.value:"(";if(s.type==="close")return p?m+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":p?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let D=i.reduce(s.nodes),h=n(...D,{...u,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return D.length>1&&h.length>1?`(${h})`:h}if(s.nodes)for(let D of s.nodes)d+=a(D,s);return d};return a(o)};t.exports=r}}),Hb=G({"node_modules/braces/lib/expand.js"(e,t){"use strict";var n=f0(),i=Xd(),r=Jd(),o=(a="",s="",c=!1)=>{let l=[];if(a=[].concat(a),s=[].concat(s),!s.length)return a;if(!a.length)return c?r.flatten(s).map(f=>`{${f}}`):s;for(let f of a)if(Array.isArray(f))for(let p of f)l.push(o(p,s,c));else for(let p of s)c===!0&&typeof p=="string"&&(p=`{${p}}`),l.push(Array.isArray(p)?o(f,p,c):f+p);return r.flatten(l)},u=(a,s={})=>{let c=s.rangeLimit===void 0?1e3:s.rangeLimit,l=(f,p={})=>{f.queue=[];let m=p,d=p.queue;for(;m.type!=="brace"&&m.type!=="root"&&m.parent;)m=m.parent,d=m.queue;if(f.invalid||f.dollar){d.push(o(d.pop(),i(f,s)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){d.push(o(d.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){let g=r.reduce(f.nodes);if(r.exceedsLimit(...g,s.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=n(...g,s);v.length===0&&(v=i(f,s)),d.push(o(d.pop(),v)),f.nodes=[];return}let D=r.encloseBrace(f),h=f.queue,y=f;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,h=y.queue;for(let g=0;g<f.nodes.length;g++){let v=f.nodes[g];if(v.type==="comma"&&f.type==="brace"){g===1&&h.push(""),h.push("");continue}if(v.type==="close"){d.push(o(d.pop(),h,D));continue}if(v.value&&v.type!=="open"){h.push(o(h.pop(),v.value));continue}v.nodes&&l(v,f)}return h};return r.flatten(l(a))};t.exports=u}}),qb=G({"node_modules/braces/lib/constants.js"(e,t){"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
47
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),Yb=G({"node_modules/braces/lib/parse.js"(e,t){"use strict";var n=Xd(),{MAX_LENGTH:i,CHAR_BACKSLASH:r,CHAR_BACKTICK:o,CHAR_COMMA:u,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:m,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:h,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=qb(),g=(v,C={})=>{if(typeof v!="string")throw new TypeError("Expected a string");let _=C||{},b=typeof _.maxLength=="number"?Math.min(i,_.maxLength):i;if(v.length>b)throw new SyntaxError(`Input length (${v.length}), exceeds max characters (${b})`);let k={type:"root",input:v,nodes:[]},F=[k],w=k,T=k,$=0,P=v.length,E=0,A=0,S,I=()=>v[E++],j=W=>{if(W.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&W.type==="text"){T.value+=W.value;return}return w.nodes.push(W),W.parent=w,W.prev=T,T=W,W};for(j({type:"bos"});E<P;)if(w=F[F.length-1],S=I(),!(S===y||S===h)){if(S===r){j({type:"text",value:(C.keepEscaping?S:"")+I()});continue}if(S===m){j({type:"text",value:"\\"+S});continue}if(S===p){$++;let W;for(;E<P&&(W=I());){if(S+=W,W===p){$++;continue}if(W===r){S+=I();continue}if(W===m&&($--,$===0))break}j({type:"text",value:S});continue}if(S===s){w=j({type:"paren",nodes:[]}),F.push(w),j({type:"text",value:S});continue}if(S===c){if(w.type!=="paren"){j({type:"text",value:S});continue}w=F.pop(),j({type:"text",value:S}),w=F[F.length-1];continue}if(S===d||S===D||S===o){let W=S,V;for(C.keepQuotes!==!0&&(S="");E<P&&(V=I());){if(V===r){S+=V+I();continue}if(V===W){C.keepQuotes===!0&&(S+=V);break}S+=V}j({type:"text",value:S});continue}if(S===l){A++;let V={type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||w.dollar===!0,depth:A,commas:0,ranges:0,nodes:[]};w=j(V),F.push(w),j({type:"open",value:S});continue}if(S===f){if(w.type!=="brace"){j({type:"text",value:S});continue}let W="close";w=F.pop(),w.close=!0,j({type:W,value:S}),A--,w=F[F.length-1];continue}if(S===u&&A>0){if(w.ranges>0){w.ranges=0;let W=w.nodes.shift();w.nodes=[W,{type:"text",value:n(w)}]}j({type:"comma",value:S}),w.commas++;continue}if(S===a&&A>0&&w.commas===0){let W=w.nodes;if(A===0||W.length===0){j({type:"text",value:S});continue}if(T.type==="dot"){if(w.range=[],T.value+=S,T.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,T.type="text";continue}w.ranges++,w.args=[];continue}if(T.type==="range"){W.pop();let V=W[W.length-1];V.value+=T.value+S,T=V,w.ranges--;continue}j({type:"dot",value:S});continue}j({type:"text",value:S})}do if(w=F.pop(),w.type!=="root"){w.nodes.forEach(Z=>{Z.nodes||(Z.type==="open"&&(Z.isOpen=!0),Z.type==="close"&&(Z.isClose=!0),Z.nodes||(Z.type="text"),Z.invalid=!0)});let W=F[F.length-1],V=W.nodes.indexOf(w);W.nodes.splice(V,1,...w.nodes)}while(F.length>0);return j({type:"eos"}),k};t.exports=g}}),Jb=G({"node_modules/braces/index.js"(e,t){"use strict";var n=Xd(),i=Kb(),r=Hb(),o=Yb(),u=(a,s={})=>{let c=[];if(Array.isArray(a))for(let l of a){let f=u.create(l,s);Array.isArray(f)?c.push(...f):c.push(f)}else c=[].concat(u.create(a,s));return s&&s.expand===!0&&s.nodupes===!0&&(c=[...new Set(c)]),c};u.parse=(a,s={})=>o(a,s),u.stringify=(a,s={})=>n(typeof a=="string"?u.parse(a,s):a,s),u.compile=(a,s={})=>(typeof a=="string"&&(a=u.parse(a,s)),i(a,s)),u.expand=(a,s={})=>{typeof a=="string"&&(a=u.parse(a,s));let c=r(a,s);return s.noempty===!0&&(c=c.filter(Boolean)),s.nodupes===!0&&(c=[...new Set(c)]),c},u.create=(a,s={})=>a===""||a.length<3?[a]:s.expand!==!0?u.compile(a,s):u.expand(a,s),t.exports=u}}),Ta=G({"node_modules/micromatch/node_modules/picomatch/lib/constants.js"(e,t){"use strict";var n=Ee("path"),i="\\\\/",r=`[^${i}]`,o="\\.",u="\\+",a="\\?",s="\\/",c="(?=.)",l="[^/]",f=`(?:${s}|$)`,p=`(?:^|${s})`,m=`${o}{1,2}${f}`,d=`(?!${o})`,D=`(?!${p}${m})`,h=`(?!${o}{0,1}${f})`,y=`(?!${m})`,g=`[^.${s}]`,v=`${l}*?`,C={DOT_LITERAL:o,PLUS_LITERAL:u,QMARK_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:c,QMARK:l,END_ANCHOR:f,DOTS_SLASH:m,NO_DOT:d,NO_DOTS:D,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK_NO_DOT:g,STAR:v,START_ANCHOR:p},_={...C,SLASH_LITERAL:`[${i}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},b={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:b,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?_:C}}}}),Na=G({"node_modules/micromatch/node_modules/picomatch/lib/utils.js"(e){"use strict";var t=Ee("path"),n=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:u}=Ta();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>o.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(u,"\\$1"),e.toPosixSlashes=a=>a.replace(i,"/"),e.removeBackslashes=a=>a.replace(r,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:n===!0||t.sep==="\\",e.escapeLast=(a,s,c)=>{let l=a.lastIndexOf(s,c);return l===-1?a:a[l-1]==="\\"?e.escapeLast(a,s,l-1):`${a.slice(0,l)}\\${a.slice(l)}`},e.removePrefix=(a,s={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),s.prefix="./"),c},e.wrapOutput=(a,s={},c={})=>{let l=c.contains?"":"^",f=c.contains?"":"$",p=`${l}(?:${a})${f}`;return s.negated===!0&&(p=`(?:^(?!${p}).*$)`),p}}}),Xb=G({"node_modules/micromatch/node_modules/picomatch/lib/scan.js"(e,t){"use strict";var n=Na(),{CHAR_ASTERISK:i,CHAR_AT:r,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:u,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:m,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:h,CHAR_RIGHT_SQUARE_BRACKET:y}=Ta(),g=_=>_===c||_===o,v=_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)},C=(_,b)=>{let k=b||{},F=_.length-1,w=k.parts===!0||k.scanToEnd===!0,T=[],$=[],P=[],E=_,A=-1,S=0,I=0,j=!1,W=!1,V=!1,Z=!1,z=!1,Y=!1,B=!1,se=!1,N=!1,K=!1,x=0,R,q,re={value:"",depth:0,isGlob:!1},Ne=()=>A>=F,be=()=>E.charCodeAt(A+1),ge=()=>(R=q,E.charCodeAt(++A));for(;A<F;){q=ge();let ie;if(q===o){B=re.backslashes=!0,q=ge(),q===l&&(Y=!0);continue}if(Y===!0||q===l){for(x++;Ne()!==!0&&(q=ge());){if(q===o){B=re.backslashes=!0,ge();continue}if(q===l){x++;continue}if(Y!==!0&&q===a&&(q=ge())===a){if(j=re.isBrace=!0,V=re.isGlob=!0,K=!0,w===!0)continue;break}if(Y!==!0&&q===u){if(j=re.isBrace=!0,V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===D&&(x--,x===0)){Y=!1,j=re.isBrace=!0,K=!0;break}}if(w===!0)continue;break}if(q===c){if(T.push(A),$.push(re),re={value:"",depth:0,isGlob:!1},K===!0)continue;if(R===a&&A===S+1){S+=2;continue}I=A+1;continue}if(k.noext!==!0&&(q===m||q===r||q===i||q===d||q===s)===!0&&be()===f){if(V=re.isGlob=!0,Z=re.isExtglob=!0,K=!0,q===s&&A===S&&(N=!0),w===!0){for(;Ne()!==!0&&(q=ge());){if(q===o){B=re.backslashes=!0,q=ge();continue}if(q===h){V=re.isGlob=!0,K=!0;break}}continue}break}if(q===i){if(R===i&&(z=re.isGlobstar=!0),V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===d){if(V=re.isGlob=!0,K=!0,w===!0)continue;break}if(q===p){for(;Ne()!==!0&&(ie=ge());){if(ie===o){B=re.backslashes=!0,ge();continue}if(ie===y){W=re.isBracket=!0,V=re.isGlob=!0,K=!0;break}}if(w===!0)continue;break}if(k.nonegate!==!0&&q===s&&A===S){se=re.negated=!0,S++;continue}if(k.noparen!==!0&&q===f){if(V=re.isGlob=!0,w===!0){for(;Ne()!==!0&&(q=ge());){if(q===f){B=re.backslashes=!0,q=ge();continue}if(q===h){K=!0;break}}continue}break}if(V===!0){if(K=!0,w===!0)continue;break}}k.noext===!0&&(Z=!1,V=!1);let Ce=E,et="",ot="";S>0&&(et=E.slice(0,S),E=E.slice(S),I-=S),Ce&&V===!0&&I>0?(Ce=E.slice(0,I),ot=E.slice(I)):V===!0?(Ce="",ot=E):Ce=E,Ce&&Ce!==""&&Ce!=="/"&&Ce!==E&&g(Ce.charCodeAt(Ce.length-1))&&(Ce=Ce.slice(0,-1)),k.unescape===!0&&(ot&&(ot=n.removeBackslashes(ot)),Ce&&B===!0&&(Ce=n.removeBackslashes(Ce)));let Ze={prefix:et,input:_,start:S,base:Ce,glob:ot,isBrace:j,isBracket:W,isGlob:V,isExtglob:Z,isGlobstar:z,negated:se,negatedExtglob:N};if(k.tokens===!0&&(Ze.maxDepth=0,g(q)||$.push(re),Ze.tokens=$),k.parts===!0||k.tokens===!0){let ie;for(let Re=0;Re<T.length;Re++){let tn=ie?ie+1:S,te=T[Re],_e=_.slice(tn,te);k.tokens&&(Re===0&&S!==0?($[Re].isPrefix=!0,$[Re].value=et):$[Re].value=_e,v($[Re]),Ze.maxDepth+=$[Re].depth),(Re!==0||_e!=="")&&P.push(_e),ie=te}if(ie&&ie+1<_.length){let Re=_.slice(ie+1);P.push(Re),k.tokens&&($[$.length-1].value=Re,v($[$.length-1]),Ze.maxDepth+=$[$.length-1].depth)}Ze.slashes=T,Ze.parts=P}return Ze};t.exports=C}}),Qb=G({"node_modules/micromatch/node_modules/picomatch/lib/parse.js"(e,t){"use strict";var n=Ta(),i=Na(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:s}=n,c=(p,m)=>{if(typeof m.expandRange=="function")return m.expandRange(...p,m);p.sort();let d=`[${p.join("-")}]`;try{new RegExp(d)}catch{return p.map(h=>i.escapeRegex(h)).join("..")}return d},l=(p,m)=>`Missing ${p}: "${m}" - use "\\\\${m}" to match literal characters`,f=(p,m)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=s[p]||p;let d={...m},D=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,h=p.length;if(h>D)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${D}`);let y={type:"bos",value:"",output:d.prepend||""},g=[y],v=d.capture?"":"?:",C=i.isWindows(m),_=n.globChars(C),b=n.extglobChars(_),{DOT_LITERAL:k,PLUS_LITERAL:F,SLASH_LITERAL:w,ONE_CHAR:T,DOTS_SLASH:$,NO_DOT:P,NO_DOT_SLASH:E,NO_DOTS_SLASH:A,QMARK:S,QMARK_NO_DOT:I,STAR:j,START_ANCHOR:W}=_,V=te=>`(${v}(?:(?!${W}${te.dot?$:k}).)*?)`,Z=d.dot?"":P,z=d.dot?S:I,Y=d.bash===!0?V(d):j;d.capture&&(Y=`(${Y})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);let B={input:p,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};p=i.removePrefix(p,B),h=p.length;let se=[],N=[],K=[],x=y,R,q=()=>B.index===h-1,re=B.peek=(te=1)=>p[B.index+te],Ne=B.advance=()=>p[++B.index]||"",be=()=>p.slice(B.index+1),ge=(te="",_e=0)=>{B.consumed+=te,B.index+=_e},Ce=te=>{B.output+=te.output!=null?te.output:te.value,ge(te.value)},et=()=>{let te=1;for(;re()==="!"&&(re(2)!=="("||re(3)==="?");)Ne(),B.start++,te++;return te%2===0?!1:(B.negated=!0,B.start++,!0)},ot=te=>{B[te]++,K.push(te)},Ze=te=>{B[te]--,K.pop()},ie=te=>{if(x.type==="globstar"){let _e=B.braces>0&&(te.type==="comma"||te.type==="brace"),Q=te.extglob===!0||se.length&&(te.type==="pipe"||te.type==="paren");te.type!=="slash"&&te.type!=="paren"&&!_e&&!Q&&(B.output=B.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=Y,B.output+=x.output)}if(se.length&&te.type!=="paren"&&(se[se.length-1].inner+=te.value),(te.value||te.output)&&Ce(te),x&&x.type==="text"&&te.type==="text"){x.value+=te.value,x.output=(x.output||"")+te.value;return}te.prev=x,g.push(te),x=te},Re=(te,_e)=>{let Q={...b[_e],conditions:1,inner:""};Q.prev=x,Q.parens=B.parens,Q.output=B.output;let pe=(d.capture?"(":"")+Q.open;ot("parens"),ie({type:te,value:_e,output:B.output?"":T}),ie({type:"paren",extglob:!0,value:Ne(),output:pe}),se.push(Q)},tn=te=>{let _e=te.close+(d.capture?")":""),Q;if(te.type==="negate"){let pe=Y;if(te.inner&&te.inner.length>1&&te.inner.includes("/")&&(pe=V(d)),(pe!==Y||q()||/^\)+$/.test(be()))&&(_e=te.close=`)$))${pe}`),te.inner.includes("*")&&(Q=be())&&/^\.[^\\/.]+$/.test(Q)){let Pe=f(Q,{...m,fastpaths:!1}).output;_e=te.close=`)${Pe})${pe})`}te.prev.type==="bos"&&(B.negatedExtglob=!0)}ie({type:"paren",extglob:!0,value:R,output:_e}),Ze("parens")};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let te=!1,_e=p.replace(a,(Q,pe,Pe,ut,Ge,ss)=>ut==="\\"?(te=!0,Q):ut==="?"?pe?pe+ut+(Ge?S.repeat(Ge.length):""):ss===0?z+(Ge?S.repeat(Ge.length):""):S.repeat(Pe.length):ut==="."?k.repeat(Pe.length):ut==="*"?pe?pe+ut+(Ge?Y:""):Y:pe?Q:`\\${Q}`);return te===!0&&(d.unescape===!0?_e=_e.replace(/\\/g,""):_e=_e.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),_e===p&&d.contains===!0?(B.output=p,B):(B.output=i.wrapOutput(_e,B,m),B)}for(;!q();){if(R=Ne(),R==="\0")continue;if(R==="\\"){let Q=re();if(Q==="/"&&d.bash!==!0||Q==="."||Q===";")continue;if(!Q){R+="\\",ie({type:"text",value:R});continue}let pe=/^\\+/.exec(be()),Pe=0;if(pe&&pe[0].length>2&&(Pe=pe[0].length,B.index+=Pe,Pe%2!==0&&(R+="\\")),d.unescape===!0?R=Ne():R+=Ne(),B.brackets===0){ie({type:"text",value:R});continue}}if(B.brackets>0&&(R!=="]"||x.value==="["||x.value==="[^")){if(d.posix!==!1&&R===":"){let Q=x.value.slice(1);if(Q.includes("[")&&(x.posix=!0,Q.includes(":"))){let pe=x.value.lastIndexOf("["),Pe=x.value.slice(0,pe),ut=x.value.slice(pe+2),Ge=o[ut];if(Ge){x.value=Pe+Ge,B.backtrack=!0,Ne(),!y.output&&g.indexOf(x)===1&&(y.output=T);continue}}}(R==="["&&re()!==":"||R==="-"&&re()==="]")&&(R=`\\${R}`),R==="]"&&(x.value==="["||x.value==="[^")&&(R=`\\${R}`),d.posix===!0&&R==="!"&&x.value==="["&&(R="^"),x.value+=R,Ce({value:R});continue}if(B.quotes===1&&R!=='"'){R=i.escapeRegex(R),x.value+=R,Ce({value:R});continue}if(R==='"'){B.quotes=B.quotes===1?0:1,d.keepQuotes===!0&&ie({type:"text",value:R});continue}if(R==="("){ot("parens"),ie({type:"paren",value:R});continue}if(R===")"){if(B.parens===0&&d.strictBrackets===!0)throw new SyntaxError(l("opening","("));let Q=se[se.length-1];if(Q&&B.parens===Q.parens+1){tn(se.pop());continue}ie({type:"paren",value:R,output:B.parens?")":"\\)"}),Ze("parens");continue}if(R==="["){if(d.nobracket===!0||!be().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R=`\\${R}`}else ot("brackets");ie({type:"bracket",value:R});continue}if(R==="]"){if(d.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){ie({type:"text",value:R,output:`\\${R}`});continue}if(B.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(l("opening","["));ie({type:"text",value:R,output:`\\${R}`});continue}Ze("brackets");let Q=x.value.slice(1);if(x.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(R=`/${R}`),x.value+=R,Ce({value:R}),d.literalBrackets===!1||i.hasRegexChars(Q))continue;let pe=i.escapeRegex(x.value);if(B.output=B.output.slice(0,-x.value.length),d.literalBrackets===!0){B.output+=pe,x.value=pe;continue}x.value=`(${v}${pe}|${x.value})`,B.output+=x.value;continue}if(R==="{"&&d.nobrace!==!0){ot("braces");let Q={type:"brace",value:R,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};N.push(Q),ie(Q);continue}if(R==="}"){let Q=N[N.length-1];if(d.nobrace===!0||!Q){ie({type:"text",value:R,output:R});continue}let pe=")";if(Q.dots===!0){let Pe=g.slice(),ut=[];for(let Ge=Pe.length-1;Ge>=0&&(g.pop(),Pe[Ge].type!=="brace");Ge--)Pe[Ge].type!=="dots"&&ut.unshift(Pe[Ge].value);pe=c(ut,d),B.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){let Pe=B.output.slice(0,Q.outputIndex),ut=B.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",R=pe="\\}",B.output=Pe;for(let Ge of ut)B.output+=Ge.output||Ge.value}ie({type:"brace",value:R,output:pe}),Ze("braces"),N.pop();continue}if(R==="|"){se.length>0&&se[se.length-1].conditions++,ie({type:"text",value:R});continue}if(R===","){let Q=R,pe=N[N.length-1];pe&&K[K.length-1]==="braces"&&(pe.comma=!0,Q="|"),ie({type:"comma",value:R,output:Q});continue}if(R==="/"){if(x.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",g.pop(),x=y;continue}ie({type:"slash",value:R,output:w});continue}if(R==="."){if(B.braces>0&&x.type==="dot"){x.value==="."&&(x.output=k);let Q=N[N.length-1];x.type="dots",x.output+=R,x.value+=R,Q.dots=!0;continue}if(B.braces+B.parens===0&&x.type!=="bos"&&x.type!=="slash"){ie({type:"text",value:R,output:k});continue}ie({type:"dot",value:R,output:k});continue}if(R==="?"){if(!(x&&x.value==="(")&&d.noextglob!==!0&&re()==="("&&re(2)!=="?"){Re("qmark",R);continue}if(x&&x.type==="paren"){let pe=re(),Pe=R;if(pe==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(pe)||pe==="<"&&!/<([!=]|\w+>)/.test(be()))&&(Pe=`\\${R}`),ie({type:"text",value:R,output:Pe});continue}if(d.dot!==!0&&(x.type==="slash"||x.type==="bos")){ie({type:"qmark",value:R,output:I});continue}ie({type:"qmark",value:R,output:S});continue}if(R==="!"){if(d.noextglob!==!0&&re()==="("&&(re(2)!=="?"||!/[!=<:]/.test(re(3)))){Re("negate",R);continue}if(d.nonegate!==!0&&B.index===0){et();continue}}if(R==="+"){if(d.noextglob!==!0&&re()==="("&&re(2)!=="?"){Re("plus",R);continue}if(x&&x.value==="("||d.regex===!1){ie({type:"plus",value:R,output:F});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||B.parens>0){ie({type:"plus",value:R});continue}ie({type:"plus",value:F});continue}if(R==="@"){if(d.noextglob!==!0&&re()==="("&&re(2)!=="?"){ie({type:"at",extglob:!0,value:R,output:""});continue}ie({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let Q=u.exec(be());Q&&(R+=Q[0],B.index+=Q[0].length),ie({type:"text",value:R});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=R,x.output=Y,B.backtrack=!0,B.globstar=!0,ge(R);continue}let te=be();if(d.noextglob!==!0&&/^\([^?]/.test(te)){Re("star",R);continue}if(x.type==="star"){if(d.noglobstar===!0){ge(R);continue}let Q=x.prev,pe=Q.prev,Pe=Q.type==="slash"||Q.type==="bos",ut=pe&&(pe.type==="star"||pe.type==="globstar");if(d.bash===!0&&(!Pe||te[0]&&te[0]!=="/")){ie({type:"star",value:R,output:""});continue}let Ge=B.braces>0&&(Q.type==="comma"||Q.type==="brace"),ss=se.length&&(Q.type==="pipe"||Q.type==="paren");if(!Pe&&Q.type!=="paren"&&!Ge&&!ss){ie({type:"star",value:R,output:""});continue}for(;te.slice(0,3)==="/**";){let Jo=p[B.index+4];if(Jo&&Jo!=="/")break;te=te.slice(3),ge("/**",3)}if(Q.type==="bos"&&q()){x.type="globstar",x.value+=R,x.output=V(d),B.output=x.output,B.globstar=!0,ge(R);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!ut&&q()){B.output=B.output.slice(0,-(Q.output+x.output).length),Q.output=`(?:${Q.output}`,x.type="globstar",x.output=V(d)+(d.strictSlashes?")":"|$)"),x.value+=R,B.globstar=!0,B.output+=Q.output+x.output,ge(R);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&te[0]==="/"){let Jo=te[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(Q.output+x.output).length),Q.output=`(?:${Q.output}`,x.type="globstar",x.output=`${V(d)}${w}|${w}${Jo})`,x.value+=R,B.output+=Q.output+x.output,B.globstar=!0,ge(R+Ne()),ie({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&te[0]==="/"){x.type="globstar",x.value+=R,x.output=`(?:^|${w}|${V(d)}${w})`,B.output=x.output,B.globstar=!0,ge(R+Ne()),ie({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-x.output.length),x.type="globstar",x.output=V(d),x.value+=R,B.output+=x.output,B.globstar=!0,ge(R);continue}let _e={type:"star",value:R,output:Y};if(d.bash===!0){_e.output=".*?",(x.type==="bos"||x.type==="slash")&&(_e.output=Z+_e.output),ie(_e);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&d.regex===!0){_e.output=R,ie(_e);continue}(B.index===B.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(B.output+=E,x.output+=E):d.dot===!0?(B.output+=A,x.output+=A):(B.output+=Z,x.output+=Z),re()!=="*"&&(B.output+=T,x.output+=T)),ie(_e)}for(;B.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing","]"));B.output=i.escapeLast(B.output,"["),Ze("brackets")}for(;B.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing",")"));B.output=i.escapeLast(B.output,"("),Ze("parens")}for(;B.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(l("closing","}"));B.output=i.escapeLast(B.output,"{"),Ze("braces")}if(d.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&ie({type:"maybe_slash",value:"",output:`${w}?`}),B.backtrack===!0){B.output="";for(let te of B.tokens)B.output+=te.output!=null?te.output:te.value,te.suffix&&(B.output+=te.suffix)}return B};f.fastpaths=(p,m)=>{let d={...m},D=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,h=p.length;if(h>D)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${D}`);p=s[p]||p;let y=i.isWindows(m),{DOT_LITERAL:g,SLASH_LITERAL:v,ONE_CHAR:C,DOTS_SLASH:_,NO_DOT:b,NO_DOTS:k,NO_DOTS_SLASH:F,STAR:w,START_ANCHOR:T}=n.globChars(y),$=d.dot?k:b,P=d.dot?F:b,E=d.capture?"":"?:",A={negated:!1,prefix:""},S=d.bash===!0?".*?":w;d.capture&&(S=`(${S})`);let I=Z=>Z.noglobstar===!0?S:`(${E}(?:(?!${T}${Z.dot?_:g}).)*?)`,j=Z=>{switch(Z){case"*":return`${$}${C}${S}`;case".*":return`${g}${C}${S}`;case"*.*":return`${$}${S}${g}${C}${S}`;case"*/*":return`${$}${S}${v}${C}${P}${S}`;case"**":return $+I(d);case"**/*":return`(?:${$}${I(d)}${v})?${P}${C}${S}`;case"**/*.*":return`(?:${$}${I(d)}${v})?${P}${S}${g}${C}${S}`;case"**/.*":return`(?:${$}${I(d)}${v})?${g}${C}${S}`;default:{let z=/^(.*?)\.(\w+)$/.exec(Z);if(!z)return;let Y=j(z[1]);return Y?Y+g+z[2]:void 0}}},W=i.removePrefix(p,A),V=j(W);return V&&d.strictSlashes!==!0&&(V+=`${v}?`),V},t.exports=f}}),e1=G({"node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(e,t){"use strict";var n=Ee("path"),i=Xb(),r=Qb(),o=Na(),u=Ta(),a=c=>c&&typeof c=="object"&&!Array.isArray(c),s=(c,l,f=!1)=>{if(Array.isArray(c)){let v=c.map(_=>s(_,l,f));return _=>{for(let b of v){let k=b(_);if(k)return k}return!1}}let p=a(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");let m=l||{},d=o.isWindows(l),D=p?s.compileRe(c,l):s.makeRe(c,l,!1,!0),h=D.state;delete D.state;let y=()=>!1;if(m.ignore){let v={...l,ignore:null,onMatch:null,onResult:null};y=s(m.ignore,v,f)}let g=(v,C=!1)=>{let{isMatch:_,match:b,output:k}=s.test(v,D,l,{glob:c,posix:d}),F={glob:c,state:h,regex:D,posix:d,input:v,output:k,match:b,isMatch:_};return typeof m.onResult=="function"&&m.onResult(F),_===!1?(F.isMatch=!1,C?F:!1):y(v)?(typeof m.onIgnore=="function"&&m.onIgnore(F),F.isMatch=!1,C?F:!1):(typeof m.onMatch=="function"&&m.onMatch(F),C?F:!0)};return f&&(g.state=h),g};s.test=(c,l,f,{glob:p,posix:m}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let d=f||{},D=d.format||(m?o.toPosixSlashes:null),h=c===p,y=h&&D?D(c):c;return h===!1&&(y=D?D(c):c,h=y===p),(h===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?h=s.matchBase(c,l,f,m):h=l.exec(y)),{isMatch:!!h,match:h,output:y}},s.matchBase=(c,l,f,p=o.isWindows(f))=>(l instanceof RegExp?l:s.makeRe(l,f)).test(n.basename(c)),s.isMatch=(c,l,f)=>s(l,f)(c),s.parse=(c,l)=>Array.isArray(c)?c.map(f=>s.parse(f,l)):r(c,{...l,fastpaths:!1}),s.scan=(c,l)=>i(c,l),s.compileRe=(c,l,f=!1,p=!1)=>{if(f===!0)return c.output;let m=l||{},d=m.contains?"":"^",D=m.contains?"":"$",h=`${d}(?:${c.output})${D}`;c&&c.negated===!0&&(h=`^(?!${h}).*$`);let y=s.toRegex(h,l);return p===!0&&(y.state=c),y},s.makeRe=(c,l={},f=!1,p=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let m={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(m.output=r.fastpaths(c,l)),m.output||(m=r(c,l)),s.compileRe(m,l,f,p)},s.toRegex=(c,l)=>{try{let f=l||{};return new RegExp(c,f.flags||(f.nocase?"i":""))}catch(f){if(l&&l.debug===!0)throw f;return/$^/}},s.constants=u,t.exports=s}}),t1=G({"node_modules/micromatch/node_modules/picomatch/index.js"(e,t){"use strict";t.exports=e1()}}),d0=G({"node_modules/micromatch/index.js"(e,t){"use strict";var n=Ee("util"),i=Jb(),r=t1(),o=Na(),u=c=>c===""||c==="./",a=c=>{let l=c.indexOf("{");return l>-1&&c.indexOf("}",l)>-1},s=(c,l,f)=>{l=[].concat(l),c=[].concat(c);let p=new Set,m=new Set,d=new Set,D=0,h=v=>{d.add(v.output),f&&f.onResult&&f.onResult(v)};for(let v=0;v<l.length;v++){let C=r(String(l[v]),{...f,onResult:h},!0),_=C.state.negated||C.state.negatedExtglob;_&&D++;for(let b of c){let k=C(b,!0);(_?!k.isMatch:k.isMatch)&&(_?p.add(k.output):(p.delete(k.output),m.add(k.output)))}}let g=(D===l.length?[...d]:[...m]).filter(v=>!p.has(v));if(f&&g.length===0){if(f.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(f.nonull===!0||f.nullglob===!0)return f.unescape?l.map(v=>v.replace(/\\/g,"")):l}return g};s.match=s,s.matcher=(c,l)=>r(c,l),s.isMatch=(c,l,f)=>r(l,f)(c),s.any=s.isMatch,s.not=(c,l,f={})=>{l=[].concat(l).map(String);let p=new Set,m=[],d=h=>{f.onResult&&f.onResult(h),m.push(h.output)},D=new Set(s(c,l,{...f,onResult:d}));for(let h of m)D.has(h)||p.add(h);return[...p]},s.contains=(c,l,f)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${n.inspect(c)}"`);if(Array.isArray(l))return l.some(p=>s.contains(c,p,f));if(typeof l=="string"){if(u(c)||u(l))return!1;if(c.includes(l)||c.startsWith("./")&&c.slice(2).includes(l))return!0}return s.isMatch(c,l,{...f,contains:!0})},s.matchKeys=(c,l,f)=>{if(!o.isObject(c))throw new TypeError("Expected the first argument to be an object");let p=s(Object.keys(c),l,f),m={};for(let d of p)m[d]=c[d];return m},s.some=(c,l,f)=>{let p=[].concat(c);for(let m of[].concat(l)){let d=r(String(m),f);if(p.some(D=>d(D)))return!0}return!1},s.every=(c,l,f)=>{let p=[].concat(c);for(let m of[].concat(l)){let d=r(String(m),f);if(!p.every(D=>d(D)))return!1}return!0},s.all=(c,l,f)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${n.inspect(c)}"`);return[].concat(l).every(p=>r(p,f)(c))},s.capture=(c,l,f)=>{let p=o.isWindows(f),d=r.makeRe(String(c),{...f,capture:!0}).exec(p?o.toPosixSlashes(l):l);if(d)return d.slice(1).map(D=>D===void 0?"":D)},s.makeRe=(...c)=>r.makeRe(...c),s.scan=(...c)=>r.scan(...c),s.parse=(c,l)=>{let f=[];for(let p of[].concat(c||[]))for(let m of i(String(p),l))f.push(r.parse(m,l));return f},s.braces=(c,l)=>{if(typeof c!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!a(c)?[c]:i(c,l)},s.braceExpand=(c,l)=>{if(typeof c!="string")throw new TypeError("Expected a string");return s.braces(c,{...l,expand:!0})},s.hasBraces=a,t.exports=s}}),r1=G({"node_modules/fast-glob/out/utils/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=Ee("path"),n=Zb(),i=d0(),r="**",o="\\",u=/[*?]|^!/,a=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,l=/,|\.\./,f=/(?!^)\/{2,}/g;function p(z,Y={}){return!m(z,Y)}e.isStaticPattern=p;function m(z,Y={}){return z===""?!1:!!(Y.caseSensitiveMatch===!1||z.includes(o)||u.test(z)||a.test(z)||s.test(z)||Y.extglob!==!1&&c.test(z)||Y.braceExpansion!==!1&&d(z))}e.isDynamicPattern=m;function d(z){let Y=z.indexOf("{");if(Y===-1)return!1;let B=z.indexOf("}",Y+1);if(B===-1)return!1;let se=z.slice(Y,B);return l.test(se)}function D(z){return y(z)?z.slice(1):z}e.convertToPositivePattern=D;function h(z){return"!"+z}e.convertToNegativePattern=h;function y(z){return z.startsWith("!")&&z[1]!=="("}e.isNegativePattern=y;function g(z){return!y(z)}e.isPositivePattern=g;function v(z){return z.filter(y)}e.getNegativePatterns=v;function C(z){return z.filter(g)}e.getPositivePatterns=C;function _(z){return z.filter(Y=>!k(Y))}e.getPatternsInsideCurrentDirectory=_;function b(z){return z.filter(k)}e.getPatternsOutsideCurrentDirectory=b;function k(z){return z.startsWith("..")||z.startsWith("./..")}e.isPatternRelatedToParentDirectory=k;function F(z){return n(z,{flipBackslashes:!1})}e.getBaseDirectory=F;function w(z){return z.includes(r)}e.hasGlobStar=w;function T(z){return z.endsWith("/"+r)}e.endsWithSlashGlobStar=T;function $(z){let Y=t.basename(z);return T(z)||p(Y)}e.isAffectDepthOfReadingPattern=$;function P(z){return z.reduce((Y,B)=>Y.concat(E(B)),[])}e.expandPatternsWithBraceExpansion=P;function E(z){let Y=i.braces(z,{expand:!0,nodupes:!0,keepEscaping:!0});return Y.sort((B,se)=>B.length-se.length),Y.filter(B=>B!=="")}e.expandBraceExpansion=E;function A(z,Y){let{parts:B}=i.scan(z,Object.assign(Object.assign({},Y),{parts:!0}));return B.length===0&&(B=[z]),B[0].startsWith("/")&&(B[0]=B[0].slice(1),B.unshift("")),B}e.getPatternParts=A;function S(z,Y){return i.makeRe(z,Y)}e.makeRe=S;function I(z,Y){return z.map(B=>S(B,Y))}e.convertPatternsToRe=I;function j(z,Y){return Y.some(B=>B.test(z))}e.matchAny=j;function W(z){return z.replace(f,"/")}e.removeDuplicateSlashes=W;function V(z){let Y=[],B=[];for(let se of z)Z(se)?Y.push(se):B.push(se);return[Y,B]}e.partitionAbsoluteAndRelative=V;function Z(z){return t.isAbsolute(z)}e.isAbsolute=Z}}),n1=G({"node_modules/merge2/index.js"(e,t){"use strict";var n=Ee("stream"),i=n.PassThrough,r=Array.prototype.slice;t.exports=o;function o(){let a=[],s=r.call(arguments),c=!1,l=s[s.length-1];l&&!Array.isArray(l)&&l.pipe==null?s.pop():l={};let f=l.end!==!1,p=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let m=i(l);function d(){for(let y=0,g=arguments.length;y<g;y++)a.push(u(arguments[y],l));return D(),this}function D(){if(c)return;c=!0;let y=a.shift();if(!y){process.nextTick(h);return}Array.isArray(y)||(y=[y]);let g=y.length+1;function v(){--g>0||(c=!1,D())}function C(_){function b(){_.removeListener("merge2UnpipeEnd",b),_.removeListener("end",b),p&&_.removeListener("error",k),v()}function k(F){m.emit("error",F)}if(_._readableState.endEmitted)return v();_.on("merge2UnpipeEnd",b),_.on("end",b),p&&_.on("error",k),_.pipe(m,{end:!1}),_.resume()}for(let _=0;_<y.length;_++)C(y[_]);v()}function h(){c=!1,m.emit("queueDrain"),f&&m.end()}return m.setMaxListeners(0),m.add=d,m.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),s.length&&d.apply(null,s),m}function u(a,s){if(Array.isArray(a))for(let c=0,l=a.length;c<l;c++)a[c]=u(a[c],s);else{if(!a._readableState&&a.pipe&&(a=a.pipe(i(s))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),i1=G({"node_modules/fast-glob/out/utils/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=n1();function n(r){let o=t(r);return r.forEach(u=>{u.once("error",a=>o.emit("error",a))}),o.once("close",()=>i(r)),o.once("end",()=>i(r)),o}e.merge=n;function i(r){r.forEach(o=>o.emit("close"))}}}),o1=G({"node_modules/fast-glob/out/utils/string.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}e.isString=t;function n(i){return i===""}e.isEmpty=n}}),Wr=G({"node_modules/fast-glob/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=jb();e.array=t;var n=Lb();e.errno=n;var i=zb();e.fs=i;var r=Ub();e.path=r;var o=r1();e.pattern=o;var u=i1();e.stream=u;var a=o1();e.string=a}}),u1=G({"node_modules/fast-glob/out/managers/tasks.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Wr();function n(l,f){let p=i(l,f),m=i(f.ignore,f),d=o(p),D=u(p,m),h=d.filter(C=>t.pattern.isStaticPattern(C,f)),y=d.filter(C=>t.pattern.isDynamicPattern(C,f)),g=r(h,D,!1),v=r(y,D,!0);return g.concat(v)}e.generate=n;function i(l,f){let p=l;return f.braceExpansion&&(p=t.pattern.expandPatternsWithBraceExpansion(p)),f.baseNameMatch&&(p=p.map(m=>m.includes("/")?m:`**/${m}`)),p.map(m=>t.pattern.removeDuplicateSlashes(m))}function r(l,f,p){let m=[],d=t.pattern.getPatternsOutsideCurrentDirectory(l),D=t.pattern.getPatternsInsideCurrentDirectory(l),h=a(d),y=a(D);return m.push(...s(h,f,p)),"."in y?m.push(c(".",D,f,p)):m.push(...s(y,f,p)),m}e.convertPatternsToTasks=r;function o(l){return t.pattern.getPositivePatterns(l)}e.getPositivePatterns=o;function u(l,f){return t.pattern.getNegativePatterns(l).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function a(l){let f={};return l.reduce((p,m)=>{let d=t.pattern.getBaseDirectory(m);return d in p?p[d].push(m):p[d]=[m],p},f)}e.groupPatternsByBaseDirectory=a;function s(l,f,p){return Object.keys(l).map(m=>c(m,l[m],f,p))}e.convertPatternGroupsToTasks=s;function c(l,f,p,m){return{dynamic:m,positive:f,negative:p,base:l,patterns:[].concat(f,p.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=c}}),a1=G({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,o,u){o.fs.lstat(r,(a,s)=>{if(a!==null){n(u,a);return}if(!s.isSymbolicLink()||!o.followSymbolicLink){i(u,s);return}o.fs.stat(r,(c,l)=>{if(c!==null){if(o.throwErrorOnBrokenSymbolicLink){n(u,c);return}i(u,s);return}o.markSymbolicLink&&(l.isSymbolicLink=()=>!0),i(u,l)})})}e.read=t;function n(r,o){r(o)}function i(r,o){r(null,o)}}}),s1=G({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(n,i){let r=i.fs.lstatSync(n);if(!r.isSymbolicLink()||!i.followSymbolicLink)return r;try{let o=i.fs.statSync(n);return i.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!i.throwErrorOnBrokenSymbolicLink)return r;throw o}}e.read=t}}),c1=G({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}}),l1=G({"node_modules/@nodelib/fs.stat/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=c1(),n=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,r){return i??r}};e.default=n}}),hi=G({"node_modules/@nodelib/fs.stat/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=a1(),n=s1(),i=l1();e.Settings=i.default;function r(a,s,c){if(typeof s=="function"){t.read(a,u(),s);return}t.read(a,u(s),c)}e.stat=r;function o(a,s){let c=u(s);return n.read(a,c)}e.statSync=o;function u(a={}){return a instanceof i.default?a:new i.default(a)}}}),f1=G({"node_modules/queue-microtask/index.js"(e,t){var n;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(n||(n=Promise.resolve())).then(i).catch(r=>setTimeout(()=>{throw r},0))}}),d1=G({"node_modules/run-parallel/index.js"(e,t){t.exports=i;var n=f1();function i(r,o){let u,a,s,c=!0;Array.isArray(r)?(u=[],a=r.length):(s=Object.keys(r),u={},a=s.length);function l(p){function m(){o&&o(p,u),o=null}c?n(m):m()}function f(p,m,d){u[p]=d,(--a===0||m)&&l(m)}a?s?s.forEach(function(p){r[p](function(m,d){f(p,m,d)})}):r.forEach(function(p,m){p(function(d,D){f(m,d,D)})}):l(null),c=!1}}}),p0=G({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),r=10,o=10,u=n>r,a=n===r&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||a}}),p1=G({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(i,r){this.name=i,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function n(i,r){return new t(i,r)}e.createDirentFromStats=n}}),m0=G({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=p1();e.fs=t}}),D0=G({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(n,i,r){return n.endsWith(r)?n+i:n+r+i}e.joinPathSegments=t}}),m1=G({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=hi(),n=d1(),i=p0(),r=m0(),o=D0();function u(p,m,d){if(!m.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(p,m,d);return}c(p,m,d)}e.read=u;function a(p,m,d){m.fs.readdir(p,{withFileTypes:!0},(D,h)=>{if(D!==null){l(d,D);return}let y=h.map(v=>({dirent:v,name:v.name,path:o.joinPathSegments(p,v.name,m.pathSegmentSeparator)}));if(!m.followSymbolicLinks){f(d,y);return}let g=y.map(v=>s(v,m));n(g,(v,C)=>{if(v!==null){l(d,v);return}f(d,C)})})}e.readdirWithFileTypes=a;function s(p,m){return d=>{if(!p.dirent.isSymbolicLink()){d(null,p);return}m.fs.stat(p.path,(D,h)=>{if(D!==null){if(m.throwErrorOnBrokenSymbolicLink){d(D);return}d(null,p);return}p.dirent=r.fs.createDirentFromStats(p.name,h),d(null,p)})}}function c(p,m,d){m.fs.readdir(p,(D,h)=>{if(D!==null){l(d,D);return}let y=h.map(g=>{let v=o.joinPathSegments(p,g,m.pathSegmentSeparator);return C=>{t.stat(v,m.fsStatSettings,(_,b)=>{if(_!==null){C(_);return}let k={name:g,path:v,dirent:r.fs.createDirentFromStats(g,b)};m.stats&&(k.stats=b),C(null,k)})}});n(y,(g,v)=>{if(g!==null){l(d,g);return}f(d,v)})})}e.readdir=c;function l(p,m){p(m)}function f(p,m){p(null,m)}}}),D1=G({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=hi(),n=p0(),i=m0(),r=D0();function o(s,c){return!c.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(s,c):a(s,c)}e.read=o;function u(s,c){return c.fs.readdirSync(s,{withFileTypes:!0}).map(f=>{let p={dirent:f,name:f.name,path:r.joinPathSegments(s,f.name,c.pathSegmentSeparator)};if(p.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let m=c.fs.statSync(p.path);p.dirent=i.fs.createDirentFromStats(p.name,m)}catch(m){if(c.throwErrorOnBrokenSymbolicLink)throw m}return p})}e.readdirWithFileTypes=u;function a(s,c){return c.fs.readdirSync(s).map(f=>{let p=r.joinPathSegments(s,f,c.pathSegmentSeparator),m=t.statSync(p,c.fsStatSettings),d={name:f,path:p,dirent:i.fs.createDirentFromStats(f,m)};return c.stats&&(d.stats=m),d})}e.readdir=a}}),h1=G({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function n(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}e.createFileSystemAdapter=n}}),g1=G({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=hi(),i=h1(),r=class{constructor(o={}){this._options=o,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(o,u){return o??u}};e.default=r}}),Qd=G({"node_modules/@nodelib/fs.scandir/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=m1(),n=D1(),i=g1();e.Settings=i.default;function r(a,s,c){if(typeof s=="function"){t.read(a,u(),s);return}t.read(a,u(s),c)}e.scandir=r;function o(a,s){let c=u(s);return n.read(a,c)}e.scandirSync=o;function u(a={}){return a instanceof i.default?a:new i.default(a)}}}),v1=G({"node_modules/reusify/reusify.js"(e,t){"use strict";function n(i){var r=new i,o=r;function u(){var s=r;return s.next?r=s.next:(r=new i,o=r),s.next=null,s}function a(s){o.next=s,o=s}return{get:u,release:a}}t.exports=n}}),y1=G({"node_modules/fastq/queue.js"(e,t){"use strict";var n=v1();function i(a,s,c){if(typeof a=="function"&&(c=s,s=a,a=null),!(c>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=n(o),f=null,p=null,m=0,d=null,D={push:b,drain:r,saturated:r,pause:y,paused:!1,get concurrency(){return c},set concurrency(P){if(!(P>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(c=P,!D.paused)for(;f&&m<c;)m++,F()},running:h,resume:C,idle:_,length:g,getQueue:v,unshift:k,empty:r,kill:w,killAndDrain:T,error:$};return D;function h(){return m}function y(){D.paused=!0}function g(){for(var P=f,E=0;P;)P=P.next,E++;return E}function v(){for(var P=f,E=[];P;)E.push(P.value),P=P.next;return E}function C(){if(D.paused){if(D.paused=!1,f===null){m++,F();return}for(;f&&m<c;)m++,F()}}function _(){return m===0&&D.length()===0}function b(P,E){var A=l.get();A.context=a,A.release=F,A.value=P,A.callback=E||r,A.errorHandler=d,m>=c||D.paused?p?(p.next=A,p=A):(f=A,p=A,D.saturated()):(m++,s.call(a,A.value,A.worked))}function k(P,E){var A=l.get();A.context=a,A.release=F,A.value=P,A.callback=E||r,A.errorHandler=d,m>=c||D.paused?f?(A.next=f,f=A):(f=A,p=A,D.saturated()):(m++,s.call(a,A.value,A.worked))}function F(P){P&&l.release(P);var E=f;E&&m<=c?D.paused?m--:(p===f&&(p=null),f=E.next,E.next=null,s.call(a,E.value,E.worked),p===null&&D.empty()):--m===0&&D.drain()}function w(){f=null,p=null,D.drain=r}function T(){f=null,p=null,D.drain(),D.drain=r}function $(P){d=P}}function r(){}function o(){this.value=null,this.callback=r,this.next=null,this.release=r,this.context=null,this.errorHandler=null;var a=this;this.worked=function(c,l){var f=a.callback,p=a.errorHandler,m=a.value;a.value=null,a.callback=r,a.errorHandler&&p(c,m),f.call(a.context,c,l),a.release(a)}}function u(a,s,c){typeof a=="function"&&(c=s,s=a,a=null);function l(y,g){s.call(this,y).then(function(v){g(null,v)},g)}var f=i(a,l,c),p=f.push,m=f.unshift;return f.push=d,f.unshift=D,f.drained=h,f;function d(y){var g=new Promise(function(v,C){p(y,function(_,b){if(_){C(_);return}v(b)})});return g.catch(r),g}function D(y){var g=new Promise(function(v,C){m(y,function(_,b){if(_){C(_);return}v(b)})});return g.catch(r),g}function h(){var y=new Promise(function(g){process.nextTick(function(){if(f.idle())g();else{var v=f.drain;f.drain=function(){typeof v=="function"&&v(),g(),f.drain=v}}})});return y}}t.exports=i,t.exports.promise=u}}),ep=G({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(o,u){return o.errorFilter===null?!0:!o.errorFilter(u)}e.isFatalError=t;function n(o,u){return o===null||o(u)}e.isAppliedFilter=n;function i(o,u){return o.split(/[/\\]/).join(u)}e.replacePathSegmentSeparator=i;function r(o,u,a){return o===""?u:o.endsWith(a)?o+u:o+a+u}e.joinPathSegments=r}}),h0=G({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=ep(),n=class{constructor(i,r){this._root=i,this._settings=r,this._root=t.replacePathSegmentSeparator(i,r.pathSegmentSeparator)}};e.default=n}}),g0=G({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("events"),n=Qd(),i=y1(),r=ep(),o=h0(),u=class extends o.default{constructor(a,s){super(a,s),this._settings=s,this._scandir=n.scandir,this._emitter=new t.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,s){let c={directory:a,base:s};this._queue.push(c,l=>{l!==null&&this._handleError(l)})}_worker(a,s){this._scandir(a.directory,this._settings.fsScandirSettings,(c,l)=>{if(c!==null){s(c,void 0);return}for(let f of l)this._handleEntry(f,a.base);s(null,void 0)})}_handleError(a){this._isDestroyed||!r.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,s){if(this._isDestroyed||this._isFatalError)return;let c=a.path;s!==void 0&&(a.path=r.joinPathSegments(s,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,s===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=u}}),_1=G({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=g0(),n=class{constructor(o,u){this._root=o,this._settings=u,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(o){this._reader.onError(u=>{i(o,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{r(o,this._storage)}),this._reader.read()}};e.default=n;function i(o,u){o(u)}function r(o,u){o(null,u)}}}),E1=G({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=g0(),i=class{constructor(r,o){this._root=r,this._settings=o,this._reader=new n.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}}),F1=G({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Qd(),n=ep(),i=h0(),r=class extends i.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(o,u){this._queue.add({directory:o,base:u})}_handleQueue(){for(let o of this._queue.values())this._handleDirectory(o.directory,o.base)}_handleDirectory(o,u){try{let a=this._scandir(o,this._settings.fsScandirSettings);for(let s of a)this._handleEntry(s,u)}catch(a){this._handleError(a)}}_handleError(o){if(n.isFatalError(this._settings,o))throw o}_handleEntry(o,u){let a=o.path;u!==void 0&&(o.path=n.joinPathSegments(u,o.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,o)&&this._pushToStorage(o),o.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(a,u===void 0?void 0:o.path)}_pushToStorage(o){this._storage.push(o)}};e.default=r}}),C1=G({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=F1(),n=class{constructor(i,r){this._root=i,this._settings=r,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=n}}),b1=G({"node_modules/@nodelib/fs.walk/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=Qd(),i=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,o){return r??o}};e.default=i}}),tp=G({"node_modules/@nodelib/fs.walk/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=_1(),n=E1(),i=C1(),r=b1();e.Settings=r.default;function o(c,l,f){if(typeof l=="function"){new t.default(c,s()).read(l);return}new t.default(c,s(l)).read(f)}e.walk=o;function u(c,l){let f=s(l);return new i.default(c,f).read()}e.walkSync=u;function a(c,l){let f=s(l);return new n.default(c,f).read()}e.walkStream=a;function s(c={}){return c instanceof r.default?c:new r.default(c)}}}),rp=G({"node_modules/fast-glob/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=hi(),i=Wr(),r=class{constructor(o){this._settings=o,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(o){return t.resolve(this._settings.cwd,o)}_makeEntry(o,u){let a={name:u,path:u,dirent:i.fs.createDirentFromStats(u,o)};return this._settings.stats&&(a.stats=o),a}_isFatalError(o){return!i.errno.isEnoentCodeError(o)&&!this._settings.suppressErrors}};e.default=r}}),v0=G({"node_modules/fast-glob/out/readers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=hi(),i=tp(),r=rp(),o=class extends r.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=n.stat}dynamic(u,a){return this._walkStream(u,a)}static(u,a){let s=u.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(l,f,p)=>this._getEntry(s[l],u[l],a).then(m=>{m!==null&&a.entryFilter(m)&&c.push(m),l===s.length-1&&c.end(),p()}).catch(p);for(let l=0;l<s.length;l++)c.write(l);return c}_getEntry(u,a,s){return this._getStat(u).then(c=>this._makeEntry(c,a)).catch(c=>{if(s.errorFilter(c))return null;throw c})}_getStat(u){return new Promise((a,s)=>{this._stat(u,this._fsStatSettings,(c,l)=>c===null?a(l):s(c))})}};e.default=o}}),A1=G({"node_modules/fast-glob/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=tp(),n=rp(),i=v0(),r=class extends n.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(o,u){return new Promise((a,s)=>{this._walkAsync(o,u,(c,l)=>{c===null?a(l):s(c)})})}async static(o,u){let a=[],s=this._readerStream.static(o,u);return new Promise((c,l)=>{s.once("error",l),s.on("data",f=>a.push(f)),s.once("end",()=>c(a))})}};e.default=r}}),w1=G({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Wr(),n=class{constructor(i,r,o){this._patterns=i,this._settings=r,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let i of this._patterns){let r=this._getPatternSegments(i),o=this._splitSegmentsIntoSections(r);this._storage.push({complete:o.length<=1,pattern:i,segments:r,sections:o})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(o=>t.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:t.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,r=>r.dynamic&&t.pattern.hasGlobStar(r.pattern))}};e.default=n}}),S1=G({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=w1(),n=class extends t.default{match(i){let r=i.split("/"),o=r.length,u=this._storage.filter(a=>!a.complete||a.segments.length>o);for(let a of u){let s=a.sections[0];if(!a.complete&&o>s.length||r.every((l,f)=>{let p=a.segments[f];return!!(p.dynamic&&p.patternRe.test(l)||!p.dynamic&&p.pattern===l)}))return!0}return!1}};e.default=n}}),$1=G({"node_modules/fast-glob/out/providers/filters/deep.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Wr(),n=S1(),i=class{constructor(r,o){this._settings=r,this._micromatchOptions=o}getFilter(r,o,u){let a=this._getMatcher(o),s=this._getNegativePatternsRe(u);return c=>this._filter(r,c,a,s)}_getMatcher(r){return new n.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let o=r.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(o,this._micromatchOptions)}_filter(r,o,u,a){if(this._isSkippedByDeep(r,o.path)||this._isSkippedSymbolicLink(o))return!1;let s=t.path.removeLeadingDotSegment(o.path);return this._isSkippedByPositivePatterns(s,u)?!1:this._isSkippedByNegativePatterns(s,a)}_isSkippedByDeep(r,o){return this._settings.deep===1/0?!1:this._getEntryLevel(r,o)>=this._settings.deep}_getEntryLevel(r,o){let u=o.split("/").length;if(r==="")return u;let a=r.split("/").length;return u-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,o){return!this._settings.baseNameMatch&&!o.match(r)}_isSkippedByNegativePatterns(r,o){return!t.pattern.matchAny(r,o)}};e.default=i}}),k1=G({"node_modules/fast-glob/out/providers/filters/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Wr(),n=class{constructor(i,r){this._settings=i,this._micromatchOptions=r,this.index=new Map}getFilter(i,r){let[o,u]=t.pattern.partitionAbsoluteAndRelative(r),a={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(u,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,a)}_filter(i,r){let o=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;let u=this._isMatchToPatternsSet(o,r,i.dirent.isDirectory());return this._settings.unique&&u&&this._createIndexRecord(o),u}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,r,o){return!(!this._isMatchToPatterns(i,r.positive.all,o)||this._isMatchToPatterns(i,r.negative.relative,o)||this._isMatchToAbsoluteNegative(i,r.negative.absolute,o))}_isMatchToAbsoluteNegative(i,r,o){if(r.length===0)return!1;let u=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(u,r,o)}_isMatchToPatterns(i,r,o){if(r.length===0)return!1;let u=t.pattern.matchAny(i,r);return!u&&o?t.pattern.matchAny(i+"/",r):u}};e.default=n}}),I1=G({"node_modules/fast-glob/out/providers/filters/error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Wr(),n=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=n}}),x1=G({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Wr(),n=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let r=i.path;return this._settings.absolute&&(r=t.path.makeAbsolute(this._settings.cwd,r),r=t.path.unixify(r)),this._settings.markDirectories&&i.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:r}):r}};e.default=n}}),np=G({"node_modules/fast-glob/out/providers/provider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("path"),n=$1(),i=k1(),r=I1(),o=x1(),u=class{constructor(a){this._settings=a,this.errorFilter=new r.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let s=a.base==="."?"":a.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=u}}),P1=G({"node_modules/fast-glob/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=A1(),n=np(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(r){let o=this._getRootDirectory(r),u=this._getReaderOptions(r);return(await this.api(o,r,u)).map(s=>u.transform(s))}api(r,o,u){return o.dynamic?this._reader.dynamic(r,u):this._reader.static(o.patterns,u)}};e.default=i}}),O1=G({"node_modules/fast-glob/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ee("stream"),n=v0(),i=np(),r=class extends i.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(o){let u=this._getRootDirectory(o),a=this._getReaderOptions(o),s=this.api(u,o,a),c=new t.Readable({objectMode:!0,read:()=>{}});return s.once("error",l=>c.emit("error",l)).on("data",l=>c.emit("data",a.transform(l))).once("end",()=>c.emit("end")),c.once("close",()=>s.destroy()),c}api(o,u,a){return u.dynamic?this._reader.dynamic(o,a):this._reader.static(u.patterns,a)}};e.default=r}}),B1=G({"node_modules/fast-glob/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=hi(),n=tp(),i=rp(),r=class extends i.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=t.statSync}dynamic(o,u){return this._walkSync(o,u)}static(o,u){let a=[];for(let s of o){let c=this._getFullEntryPath(s),l=this._getEntry(c,s,u);l===null||!u.entryFilter(l)||a.push(l)}return a}_getEntry(o,u,a){try{let s=this._getStat(o);return this._makeEntry(s,u)}catch(s){if(a.errorFilter(s))return null;throw s}}_getStat(o){return this._statSync(o,this._fsStatSettings)}};e.default=r}}),T1=G({"node_modules/fast-glob/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=B1(),n=np(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(r){let o=this._getRootDirectory(r),u=this._getReaderOptions(r);return this.api(o,r,u).map(u.transform)}api(r,o,u){return o.dynamic?this._reader.dynamic(r,u):this._reader.static(o.patterns,u)}};e.default=i}}),N1=G({"node_modules/fast-glob/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=Ee("fs"),n=Ee("os"),i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var r=class{constructor(o={}){this._options=o,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(o,u){return o===void 0?u:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),o)}};e.default=r}}),R1=G({"node_modules/fast-glob/out/index.js"(e,t){"use strict";var n=u1(),i=P1(),r=O1(),o=T1(),u=N1(),a=Wr();async function s(f,p){l(f);let m=c(f,i.default,p),d=await Promise.all(m);return a.array.flatten(d)}(function(f){f.glob=f,f.globSync=p,f.globStream=m,f.async=f;function p(C,_){l(C);let b=c(C,o.default,_);return a.array.flatten(b)}f.sync=p;function m(C,_){l(C);let b=c(C,r.default,_);return a.stream.merge(b)}f.stream=m;function d(C,_){l(C);let b=[].concat(C),k=new u.default(_);return n.generate(b,k)}f.generateTasks=d;function D(C,_){l(C);let b=new u.default(_);return a.pattern.isDynamicPattern(C,b)}f.isDynamicPattern=D;function h(C){return l(C),a.path.escape(C)}f.escapePath=h;function y(C){return l(C),a.path.convertPathToPattern(C)}f.convertPathToPattern=y;let g;(function(C){function _(k){return l(k),a.path.escapePosixPath(k)}C.escapePath=_;function b(k){return l(k),a.path.convertPosixPathToPattern(k)}C.convertPathToPattern=b})(g=f.posix||(f.posix={}));let v;(function(C){function _(k){return l(k),a.path.escapeWindowsPath(k)}C.escapePath=_;function b(k){return l(k),a.path.convertWindowsPathToPattern(k)}C.convertPathToPattern=b})(v=f.win32||(f.win32={}))})(s||(s={}));function c(f,p,m){let d=[].concat(f),D=new u.default(m),h=n.generate(d,D),y=new p(D);return h.map(y.read,y)}function l(f){if(![].concat(f).every(d=>a.string.isString(d)&&!a.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=s}}),y0=G({"node_modules/semver/internal/debug.js"(e,t){var n=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};t.exports=n}}),_0=G({"node_modules/semver/internal/constants.js"(e,t){var n="2.0.0",i=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,u=i-6,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:r,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),j1=G({"node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:r}=_0(),o=y0();e=t.exports={};var u=e.re=[],a=e.safeRe=[],s=e.src=[],c=e.safeSrc=[],l=e.t={},f=0,p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",r],[p,i]],d=h=>{for(let[y,g]of m)h=h.split(`${y}*`).join(`${y}{0,${g}}`).split(`${y}+`).join(`${y}{1,${g}}`);return h},D=(h,y,g)=>{let v=d(y),C=f++;o(h,C,y),l[h]=C,s[C]=y,c[C]=v,u[C]=new RegExp(y,g?"g":void 0),a[C]=new RegExp(v,g?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","\\d+"),D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),D("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),D("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASEIDENTIFIER",`(?:${s[l.NUMERICIDENTIFIER]}|${s[l.NONNUMERICIDENTIFIER]})`),D("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NUMERICIDENTIFIERLOOSE]}|${s[l.NONNUMERICIDENTIFIER]})`),D("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),D("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),D("BUILDIDENTIFIER",`${p}+`),D("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),D("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),D("FULL",`^${s[l.FULLPLAIN]}$`),D("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),D("LOOSE",`^${s[l.LOOSEPLAIN]}$`),D("GTLT","((?:<|>)?=?)"),D("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),D("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),D("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),D("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),D("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),D("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),D("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),D("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),D("COERCERTL",s[l.COERCE],!0),D("COERCERTLFULL",s[l.COERCEFULL],!0),D("LONETILDE","(?:~>?)"),D("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",D("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),D("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),D("LONECARET","(?:\\^)"),D("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",D("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),D("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),D("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),D("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),D("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",D("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),D("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),D("STAR","(<|>)?=?\\s*\\*"),D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),L1=G({"node_modules/semver/internal/parse-options.js"(e,t){var n=Object.freeze({loose:!0}),i=Object.freeze({}),r=o=>o?typeof o!="object"?n:o:i;t.exports=r}}),z1=G({"node_modules/semver/internal/identifiers.js"(e,t){var n=/^[0-9]+$/,i=(o,u)=>{let a=n.test(o),s=n.test(u);return a&&s&&(o=+o,u=+u),o===u?0:a&&!s?-1:s&&!a?1:o<u?-1:1},r=(o,u)=>i(u,o);t.exports={compareIdentifiers:i,rcompareIdentifiers:r}}}),U1=G({"node_modules/semver/classes/semver.js"(e,t){var n=y0(),{MAX_LENGTH:i,MAX_SAFE_INTEGER:r}=_0(),{safeRe:o,safeSrc:u,t:a}=j1(),s=L1(),{compareIdentifiers:c}=z1(),l=class Ht{constructor(p,m){if(m=s(m),p instanceof Ht){if(p.loose===!!m.loose&&p.includePrerelease===!!m.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",p,m),this.options=m,this.loose=!!m.loose,this.includePrerelease=!!m.includePrerelease;let d=p.trim().match(m.loose?o[a.LOOSE]:o[a.FULL]);if(!d)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(D=>{if(/^[0-9]+$/.test(D)){let h=+D;if(h>=0&&h<r)return h}return D}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(p){if(n("SemVer.compare",this.version,this.options,p),!(p instanceof Ht)){if(typeof p=="string"&&p===this.version)return 0;p=new Ht(p,this.options)}return p.version===this.version?0:this.compareMain(p)||this.comparePre(p)}compareMain(p){return p instanceof Ht||(p=new Ht(p,this.options)),c(this.major,p.major)||c(this.minor,p.minor)||c(this.patch,p.patch)}comparePre(p){if(p instanceof Ht||(p=new Ht(p,this.options)),this.prerelease.length&&!p.prerelease.length)return-1;if(!this.prerelease.length&&p.prerelease.length)return 1;if(!this.prerelease.length&&!p.prerelease.length)return 0;let m=0;do{let d=this.prerelease[m],D=p.prerelease[m];if(n("prerelease compare",m,d,D),d===void 0&&D===void 0)return 0;if(D===void 0)return 1;if(d===void 0)return-1;if(d===D)continue;return c(d,D)}while(++m)}compareBuild(p){p instanceof Ht||(p=new Ht(p,this.options));let m=0;do{let d=this.build[m],D=p.build[m];if(n("build compare",m,d,D),d===void 0&&D===void 0)return 0;if(D===void 0)return 1;if(d===void 0)return-1;if(d===D)continue;return c(d,D)}while(++m)}inc(p,m,d){if(p.startsWith("pre")){if(!m&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(m){let D=new RegExp(`^${this.options.loose?u[a.PRERELEASELOOSE]:u[a.PRERELEASE]}$`),h=`-${m}`.match(D);if(!h||h[1]!==m)throw new Error(`invalid identifier: ${m}`)}}switch(p){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",m,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",m,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",m,d),this.inc("pre",m,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",m,d),this.inc("pre",m,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let D=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[D];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(m===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(D)}}if(m){let h=[m,D];d===!1&&(h=[m]),c(this.prerelease[0],m)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),M1=G({"node_modules/semver/functions/compare.js"(e,t){var n=U1(),i=(r,o,u)=>new n(r,u).compare(new n(o,u));t.exports=i}}),V1=G({"node_modules/semver/functions/gte.js"(e,t){var n=M1(),i=(r,o,u)=>n(r,o,u)>=0;t.exports=i}}),Z1=G({"node_modules/pseudomap/pseudomap.js"(e,t){var n=Object.prototype.hasOwnProperty;t.exports=i;function i(s){if(!(this instanceof i))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),s)if(s instanceof i||typeof Map=="function"&&s instanceof Map)s.forEach(function(c,l){this.set(l,c)},this);else if(Array.isArray(s))s.forEach(function(c){this.set(c[0],c[1])},this);else throw new TypeError("invalid argument")}i.prototype.forEach=function(s,c){c=c||this,Object.keys(this._data).forEach(function(l){l!=="size"&&s.call(c,this._data[l].value,this._data[l].key)},this)},i.prototype.has=function(s){return!!u(this._data,s)},i.prototype.get=function(s){var c=u(this._data,s);return c&&c.value},i.prototype.set=function(s,c){a(this._data,s,c)},i.prototype.delete=function(s){var c=u(this._data,s);c&&(delete this._data[c._index],this._data.size--)},i.prototype.clear=function(){var s=Object.create(null);s.size=0,Object.defineProperty(this,"_data",{value:s,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(i.prototype,"size",{get:function(){return this._data.size},set:function(s){},enumerable:!0,configurable:!0}),i.prototype.values=i.prototype.keys=i.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function r(s,c){return s===c||s!==s&&c!==c}function o(s,c,l){this.key=s,this.value=c,this._index=l}function u(s,c){for(var l=0,f="_"+c,p=f;n.call(s,p);p=f+l++)if(r(s[p].key,c))return s[p]}function a(s,c,l){for(var f=0,p="_"+c,m=p;n.call(s,m);m=p+f++)if(r(s[m].key,c)){s[m].value=l;return}s.size++,s[m]=new o(c,l,m)}}}),G1=G({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=Z1()}}),W1=G({"node_modules/yallist/yallist.js"(e,t){t.exports=n,n.Node=o,n.create=n;function n(u){var a=this;if(a instanceof n||(a=new n),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(l){a.push(l)});else if(arguments.length>0)for(var s=0,c=arguments.length;s<c;s++)a.push(arguments[s]);return a}n.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,s=u.prev;a&&(a.prev=s),s&&(s.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=s),u.list.length--,u.next=null,u.prev=null,u.list=null},n.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},n.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},n.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)i(this,arguments[u]);return this.length},n.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)r(this,arguments[u]);return this.length},n.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},n.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},n.prototype.forEach=function(u,a){a=a||this;for(var s=this.head,c=0;s!==null;c++)u.call(a,s.value,c,this),s=s.next},n.prototype.forEachReverse=function(u,a){a=a||this;for(var s=this.tail,c=this.length-1;s!==null;c--)u.call(a,s.value,c,this),s=s.prev},n.prototype.get=function(u){for(var a=0,s=this.head;s!==null&&a<u;a++)s=s.next;if(a===u&&s!==null)return s.value},n.prototype.getReverse=function(u){for(var a=0,s=this.tail;s!==null&&a<u;a++)s=s.prev;if(a===u&&s!==null)return s.value},n.prototype.map=function(u,a){a=a||this;for(var s=new n,c=this.head;c!==null;)s.push(u.call(a,c.value,this)),c=c.next;return s},n.prototype.mapReverse=function(u,a){a=a||this;for(var s=new n,c=this.tail;c!==null;)s.push(u.call(a,c.value,this)),c=c.prev;return s},n.prototype.reduce=function(u,a){var s,c=this.head;if(arguments.length>1)s=a;else if(this.head)c=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;c!==null;l++)s=u(s,c.value,l),c=c.next;return s},n.prototype.reduceReverse=function(u,a){var s,c=this.tail;if(arguments.length>1)s=a;else if(this.tail)c=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;c!==null;l--)s=u(s,c.value,l),c=c.prev;return s},n.prototype.toArray=function(){for(var u=new Array(this.length),a=0,s=this.head;s!==null;a++)u[a]=s.value,s=s.next;return u},n.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,s=this.tail;s!==null;a++)u[a]=s.value,s=s.prev;return u},n.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var s=new n;if(a<u||a<0)return s;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,l=this.head;l!==null&&c<u;c++)l=l.next;for(;l!==null&&c<a;c++,l=l.next)s.push(l.value);return s},n.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var s=new n;if(a<u||a<0)return s;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,l=this.tail;l!==null&&c>a;c--)l=l.prev;for(;l!==null&&c>u;c--,l=l.prev)s.push(l.value);return s},n.prototype.reverse=function(){for(var u=this.head,a=this.tail,s=u;s!==null;s=s.prev){var c=s.prev;s.prev=s.next,s.next=c}return this.head=a,this.tail=u,this};function i(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function r(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,s,c){if(!(this instanceof o))return new o(u,a,s,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}}}),K1=G({"node_modules/editorconfig/node_modules/lru-cache/index.js"(e,t){"use strict";t.exports=y;var n=G1(),i=Ee("util"),r=W1(),o=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",u;o?u=function(F){return Symbol(F)}:u=function(F){return"_"+F};var a=u("max"),s=u("length"),c=u("lengthCalculator"),l=u("allowStale"),f=u("maxAge"),p=u("dispose"),m=u("noDisposeOnSet"),d=u("lruList"),D=u("cache");function h(){return 1}function y(F){if(!(this instanceof y))return new y(F);typeof F=="number"&&(F={max:F}),F||(F={});var w=this[a]=F.max;(!w||typeof w!="number"||w<=0)&&(this[a]=1/0);var T=F.length||h;typeof T!="function"&&(T=h),this[c]=T,this[l]=F.stale||!1,this[f]=F.maxAge||0,this[p]=F.dispose,this[m]=F.noDisposeOnSet||!1,this.reset()}Object.defineProperty(y.prototype,"max",{set:function(F){(!F||typeof F!="number"||F<=0)&&(F=1/0),this[a]=F,_(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(F){this[l]=!!F},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(F){(!F||typeof F!="number"||F<0)&&(F=0),this[f]=F,_(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(F){typeof F!="function"&&(F=h),F!==this[c]&&(this[c]=F,this[s]=0,this[d].forEach(function(w){w.length=this[c](w.value,w.key),this[s]+=w.length},this)),_(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[s]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),y.prototype.rforEach=function(F,w){w=w||this;for(var T=this[d].tail;T!==null;){var $=T.prev;g(this,F,T,w),T=$}};function g(F,w,T,$){var P=T.value;C(F,P)&&(b(F,T),F[l]||(P=void 0)),P&&w.call($,P.value,P.key,F)}y.prototype.forEach=function(F,w){w=w||this;for(var T=this[d].head;T!==null;){var $=T.next;g(this,F,T,w),T=$}},y.prototype.keys=function(){return this[d].toArray().map(function(F){return F.key},this)},y.prototype.values=function(){return this[d].toArray().map(function(F){return F.value},this)},y.prototype.reset=function(){this[p]&&this[d]&&this[d].length&&this[d].forEach(function(F){this[p](F.key,F.value)},this),this[D]=new n,this[d]=new r,this[s]=0},y.prototype.dump=function(){return this[d].map(function(F){if(!C(this,F))return{k:F.key,v:F.value,e:F.now+(F.maxAge||0)}},this).toArray().filter(function(F){return F})},y.prototype.dumpLru=function(){return this[d]},y.prototype.inspect=function(F,w){var T="LRUCache {",$=!1,P=this[l];P&&(T+=`
|
|
48
48
|
allowStale: true`,$=!0);var E=this[a];E&&E!==1/0&&($&&(T+=","),T+=`
|
|
49
49
|
max: `+i.inspect(E,w),$=!0);var A=this[f];A&&($&&(T+=","),T+=`
|
|
50
50
|
maxAge: `+i.inspect(A,w),$=!0);var S=this[c];S&&S!==h&&($&&(T+=","),T+=`
|
|
51
|
-
length: `+i.inspect(this[s],w),$=!0);var I=!1;return this[
|
|
51
|
+
length: `+i.inspect(this[s],w),$=!0);var I=!1;return this[d].forEach(function(j){I?T+=`,
|
|
52
52
|
`:($&&(T+=`,
|
|
53
53
|
`),I=!0,T+=`
|
|
54
54
|
`);var W=i.inspect(j.key).split(`
|
|
@@ -56,129 +56,129 @@ Expected it to be ${i}.`}var TC=class extends Error{name="InvalidDocError";const
|
|
|
56
56
|
`),V={value:j.value};j.maxAge!==A&&(V.maxAge=j.maxAge),S!==h&&(V.length=j.length),C(this,j)&&(V.stale=!0),V=i.inspect(V,w).split(`
|
|
57
57
|
`).join(`
|
|
58
58
|
`),T+=W+" => "+V}),(I||$)&&(T+=`
|
|
59
|
-
`),T+="}",T},
|
|
60
|
-
`+u(A),I=g.cache.get(S);if(I)return I;g.cache.set(S,this),this.options=A,this.set=[],this.pattern=E,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}v.prototype.make=C;function C(){if(!this._made){var E=this.pattern,A=this.options;if(!A.nocomment&&E.charAt(0)==="#"){this.comment=!0;return}if(!E){this.empty=!0;return}this.parseNegate();var S=this.globSet=this.braceExpand();A.debug&&console.error(this.pattern,S),S=this.globParts=S.map(function(I){return I.split(
|
|
61
|
-
globstar while`,E,B,A,se,N),this.matchOne(E.slice(B),A.slice(se),S))return I.debug&&console.error("globstar found match!",B,V,N),!0;if(N==="."||N===".."||!I.dot&&N.charAt(0)==="."){I.debug&&console.error("dot detected!",E,B,A,se);break e}I.debug&&console.error("globstar swallow a segment, and continue"),B++}return!!(S&&B===V)}var K;if(typeof z=="string"?(I.nocase?K=Y.toLowerCase()===z.toLowerCase():K=Y===z,I.debug&&console.error("string match",z,Y,K)):(K=Y.match(z),I.debug&&console.error("pattern match",z,Y,K)),!K)return!1}if(j===V&&W===Z)return!0;if(j===V)return S;if(W===Z){var x=j===V-1&&E[j]==="";return x}throw new Error("wtf?")};function $(E){return E.replace(/\\(.)/g,"$1")}function P(E){return E.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),W1=G({"node_modules/editorconfig/src/lib/ini.js"(e){"use strict";var t=e&&e.__awaiter||function(c,l,f,d){return new(f||(f=Promise))(function(p,m){function D(g){try{_(d.next(g))}catch(v){m(v)}}function h(g){try{_(d.throw(g))}catch(v){m(v)}}function _(g){g.done?p(g.value):new f(function(v){v(g.value)}).then(D,h)}_((d=d.apply(c,l||[])).next())})},n=e&&e.__generator||function(c,l){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,p,m,D;return D={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function h(g){return function(v){return _([g,v])}}function _(g){if(d)throw new TypeError("Generator is already executing.");for(;f;)try{if(d=1,p&&(m=g[0]&2?p.return:g[0]?p.throw||((m=p.return)&&m.call(p),0):p.next)&&!(m=m.call(p,g[1])).done)return m;switch(p=0,m&&(g=[g[0]&2,m.value]),g[0]){case 0:case 1:m=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,p=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(g[0]===6||g[0]===2)){f=0;continue}if(g[0]===3&&(!m||g[1]>m[0]&&g[1]<m[3])){f.label=g[1];break}if(g[0]===6&&f.label<m[1]){f.label=m[1],m=g;break}if(m&&f.label<m[2]){f.label=m[2],f.ops.push(g);break}m[2]&&f.ops.pop(),f.trys.pop();continue}g=l.call(c,f)}catch(v){g=[6,v],p=0}finally{d=m=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},i=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var f in c)Object.hasOwnProperty.call(c,f)&&(l[f]=c[f]);return l.default=c,l};Object.defineProperty(e,"__esModule",{value:!0});var r=i(Ee("fs")),o={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function u(c){return t(this,void 0,void 0,function(){return n(this,function(l){return[2,new Promise(function(f,d){r.readFile(c,"utf8",function(p,m){if(p){d(p);return}f(s(m))})})]})})}e.parse=u;function a(c){return s(r.readFileSync(c,"utf8"))}e.parseSync=a;function s(c){var l={},f=null,d=[[f,l]],p=c.split(/\r\n|\r|\n/);return p.forEach(function(m){var D;o.comment.test(m)||(o.param.test(m)?(D=m.match(o.param),l[D[1]]=D[2]):o.section.test(m)&&(D=m.match(o.section),f=D[1],l={},d.push([f,l])))}),d}e.parseString=s}}),K1=G({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),H1=G({"node_modules/editorconfig/src/index.js"(e){"use strict";var t=e&&e.__awaiter||function($,P,E,A){return new(E||(E=Promise))(function(S,I){function j(Z){try{V(A.next(Z))}catch(z){I(z)}}function W(Z){try{V(A.throw(Z))}catch(z){I(z)}}function V(Z){Z.done?S(Z.value):new E(function(z){z(Z.value)}).then(j,W)}V((A=A.apply($,P||[])).next())})},n=e&&e.__generator||function($,P){var E={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},A,S,I,j;return j={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function W(Z){return function(z){return V([Z,z])}}function V(Z){if(A)throw new TypeError("Generator is already executing.");for(;E;)try{if(A=1,S&&(I=Z[0]&2?S.return:Z[0]?S.throw||((I=S.return)&&I.call(S),0):S.next)&&!(I=I.call(S,Z[1])).done)return I;switch(S=0,I&&(Z=[Z[0]&2,I.value]),Z[0]){case 0:case 1:I=Z;break;case 4:return E.label++,{value:Z[1],done:!1};case 5:E.label++,S=Z[1],Z=[0];continue;case 7:Z=E.ops.pop(),E.trys.pop();continue;default:if(I=E.trys,!(I=I.length>0&&I[I.length-1])&&(Z[0]===6||Z[0]===2)){E=0;continue}if(Z[0]===3&&(!I||Z[1]>I[0]&&Z[1]<I[3])){E.label=Z[1];break}if(Z[0]===6&&E.label<I[1]){E.label=I[1],I=Z;break}if(I&&E.label<I[2]){E.label=I[2],E.ops.push(Z);break}I[2]&&E.ops.pop(),E.trys.pop();continue}Z=P.call($,E)}catch(z){Z=[6,z],S=0}finally{A=I=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},i=e&&e.__importStar||function($){if($&&$.__esModule)return $;var P={};if($!=null)for(var E in $)Object.hasOwnProperty.call($,E)&&(P[E]=$[E]);return P.default=$,P},r=e&&e.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(Ee("fs")),u=i(Ee("path")),a={gte:L1()},s=r(G1()),c=W1();e.parseString=c.parseString;var l=r(K1()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function d($,P){var E={matchBase:!0,dot:!0,noext:!0};return P=P.replace(/\*\*/g,"{*,**/**/**}"),s.default($,P,E)}function p($,P){var E=[];do $=u.dirname($),E.push(u.join($,P.config));while($!==P.root);return E}function m($,P){return"indent_style"in $&&$.indent_style==="tab"&&!("indent_size"in $)&&a.gte(P,"0.10.0")&&($.indent_size="tab"),"indent_size"in $&&!("tab_width"in $)&&$.indent_size!=="tab"&&($.tab_width=$.indent_size),"indent_size"in $&&"tab_width"in $&&$.indent_size==="tab"&&($.indent_size=$.tab_width),$}function D($,P){return $===void 0&&($={}),{config:$.config||".editorconfig",version:$.version||l.default.version,root:u.resolve($.root||u.parse(P).root)}}function h($,P){switch(P.indexOf("/")){case-1:P="**/"+P;break;case 0:P=P.substring(1);break;default:break}return u.join($,P)}function _($,P){$===void 0&&($={}),P===void 0&&(P={});for(var E in P)if(P.hasOwnProperty(E)){var A=P[E],S=E.toLowerCase(),I=A;f[S]&&(I=A.toLowerCase());try{I=JSON.parse(A)}catch{}(typeof A>"u"||A===null)&&(I=String(A)),$[S]=I}return $}function g($,P,E){return m($.reverse().reduce(function(A,S){var I=u.dirname(S.name);return S.contents.forEach(function(j){var W=j[0],V=j[1];if(W){var Z=h(I,W);d(P,Z)&&(A=_(A,V))}}),A},{}),E.version)}function v($){var P=[];for(var E in $)if($.hasOwnProperty(E)){var A=$[E],S=c.parseString(A.contents);if(P.push({name:A.name,contents:S}),(S[0][1].root||"").toLowerCase()==="true")break}return P}function C($){return t(this,void 0,void 0,function(){return n(this,function(P){return[2,Promise.all($.map(function(E){return new Promise(function(A){o.readFile(E,"utf8",function(S,I){A({name:E,contents:S?"":I})})})}))]})})}function y($){var P=[],E;return $.forEach(function(A){try{E=o.readFileSync(A,"utf8")}catch{E=""}P.push({name:A,contents:E})}),P}function b($,P){P===void 0&&(P={});var E=u.resolve($);return[E,D(P,E)]}function k($,P,E){return E===void 0&&(E={}),t(this,void 0,void 0,function(){var A,S,I;return n(this,function(j){return A=b($,E),S=A[0],I=A[1],[2,P.then(v).then(function(W){return g(W,S,I)})]})})}e.parseFromFiles=k;function F($,P,E){E===void 0&&(E={});var A=b($,E),S=A[0],I=A[1];return g(v(P),S,I)}e.parseFromFilesSync=F;function w($,P){return P===void 0&&(P={}),t(this,void 0,void 0,function(){var E,A,S,I;return n(this,function(j){return E=b($,P),A=E[0],S=E[1],I=p(A,S),[2,C(I).then(v).then(function(W){return g(W,A,S)})]})})}e.parse=w;function T($,P){P===void 0&&(P={});var E=b($,P),A=E[0],S=E[1],I=p(A,S),j=y(I);return g(v(j),A,S)}e.parseSync=T}}),q1=G({"node_modules/ci-info/vendors.json"(e,t){t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]}}),Y1=G({"node_modules/ci-info/index.js"(e){"use strict";var t=q1(),n=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(o){return o.constant})}),e.name=null,e.isPR=null,e.id=null,t.forEach(function(o){let a=(Array.isArray(o.env)?o.env:[o.env]).every(function(s){return i(s)});e[o.constant]=a,a&&(e.name=o.name,e.isPR=r(o),e.id=o.constant)}),e.isCI=!!(n.CI!=="false"&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.name));function i(o){return typeof o=="string"?!!n[o]:"env"in o?n[o.env]&&n[o.env].includes(o.includes):"any"in o?o.any.some(function(u){return!!n[u]}):Object.keys(o).every(function(u){return n[u]===o[u]})}function r(o){switch(typeof o.pr){case"string":return!!n[o.pr];case"object":return"env"in o.pr?"any"in o.pr?o.pr.any.some(function(u){return n[o.pr.env]===u}):o.pr.env in n&&n[o.pr.env]!==o.pr.ne:"any"in o.pr?o.pr.any.some(function(u){return!!n[u]}):i(o.pr);default:return null}}}}),J1=G({"node_modules/picocolors/picocolors.js"(e,t){var n=process||{},i=n.argv||[],r=n.env||{},o=!(r.NO_COLOR||i.includes("--no-color"))&&(!!r.FORCE_COLOR||i.includes("--color")||n.platform==="win32"||(n.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),u=(c,l,f=c)=>d=>{let p=""+d,m=p.indexOf(l,c.length);return~m?c+a(p,l,f,m)+l:c+p+l},a=(c,l,f,d)=>{let p="",m=0;do p+=c.substring(m,d)+f,m=d+l.length,d=c.indexOf(l,m);while(~d);return p+c.substring(m)},s=(c=o)=>{let l=c?u:()=>String;return{isColorSupported:c,reset:l("\x1B[0m","\x1B[0m"),bold:l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:l("\x1B[3m","\x1B[23m"),underline:l("\x1B[4m","\x1B[24m"),inverse:l("\x1B[7m","\x1B[27m"),hidden:l("\x1B[8m","\x1B[28m"),strikethrough:l("\x1B[9m","\x1B[29m"),black:l("\x1B[30m","\x1B[39m"),red:l("\x1B[31m","\x1B[39m"),green:l("\x1B[32m","\x1B[39m"),yellow:l("\x1B[33m","\x1B[39m"),blue:l("\x1B[34m","\x1B[39m"),magenta:l("\x1B[35m","\x1B[39m"),cyan:l("\x1B[36m","\x1B[39m"),white:l("\x1B[37m","\x1B[39m"),gray:l("\x1B[90m","\x1B[39m"),bgBlack:l("\x1B[40m","\x1B[49m"),bgRed:l("\x1B[41m","\x1B[49m"),bgGreen:l("\x1B[42m","\x1B[49m"),bgYellow:l("\x1B[43m","\x1B[49m"),bgBlue:l("\x1B[44m","\x1B[49m"),bgMagenta:l("\x1B[45m","\x1B[49m"),bgCyan:l("\x1B[46m","\x1B[49m"),bgWhite:l("\x1B[47m","\x1B[49m"),blackBright:l("\x1B[90m","\x1B[39m"),redBright:l("\x1B[91m","\x1B[39m"),greenBright:l("\x1B[92m","\x1B[39m"),yellowBright:l("\x1B[93m","\x1B[39m"),blueBright:l("\x1B[94m","\x1B[39m"),magentaBright:l("\x1B[95m","\x1B[39m"),cyanBright:l("\x1B[96m","\x1B[39m"),whiteBright:l("\x1B[97m","\x1B[39m"),bgBlackBright:l("\x1B[100m","\x1B[49m"),bgRedBright:l("\x1B[101m","\x1B[49m"),bgGreenBright:l("\x1B[102m","\x1B[49m"),bgYellowBright:l("\x1B[103m","\x1B[49m"),bgBlueBright:l("\x1B[104m","\x1B[49m"),bgMagentaBright:l("\x1B[105m","\x1B[49m"),bgCyanBright:l("\x1B[106m","\x1B[49m"),bgWhiteBright:l("\x1B[107m","\x1B[49m")}};t.exports=s(),t.exports.createColors=s}}),X1=G({"node_modules/js-tokens/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var n={type:"invalid",value:t[0],closed:void 0};return t[1]?(n.type="string",n.closed=!!(t[3]||t[4])):t[5]?n.type="comment":t[6]?(n.type="comment",n.closed=!!t[7]):t[8]?n.type="regex":t[9]?n.type="number":t[10]?n.type="name":t[11]?n.type="punctuator":t[12]&&(n.type="whitespace"),n}}}),Q1=G({"node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=c,e.isIdentifierName=l,e.isIdentifierStart=s;var t="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",n="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",i=new RegExp("["+t+"]"),r=new RegExp("["+t+n+"]");t=n=null;var o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function a(f,d){let p=65536;for(let m=0,D=d.length;m<D;m+=2){if(p+=d[m],p>f)return!1;if(p+=d[m+1],p>=f)return!0}return!1}function s(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):a(f,o)}function c(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):a(f,o)||a(f,u)}function l(f){let d=!0;for(let p=0;p<f.length;p++){let m=f.charCodeAt(p);if((m&64512)===55296&&p+1<f.length){let D=f.charCodeAt(++p);(D&64512)===56320&&(m=65536+((m&1023)<<10)+(D&1023))}if(d){if(d=!1,!s(m))return!1}else if(!c(m))return!1}return!d}}}),eA=G({"node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=c,e.isReservedWord=o,e.isStrictBindOnlyReservedWord=a,e.isStrictBindReservedWord=s,e.isStrictReservedWord=u;var t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},n=new Set(t.keyword),i=new Set(t.strict),r=new Set(t.strictBind);function o(l,f){return f&&l==="await"||l==="enum"}function u(l,f){return o(l,f)||i.has(l)}function a(l){return r.has(l)}function s(l,f){return u(l,f)||a(l)}function c(l){return n.has(l)}}}),tA=G({"node_modules/@babel/helper-validator-identifier/lib/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=Q1(),n=eA()}}),v0=G({"node_modules/@babel/code-frame/lib/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=J1(),n=X1(),i=tA();function r(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}var o=(C,y)=>b=>C(y(b));function u(C){return{keyword:C.cyan,capitalized:C.yellow,jsxIdentifier:C.yellow,punctuator:C.yellow,number:C.magenta,string:C.green,regex:C.magenta,comment:C.gray,invalid:o(o(C.white,C.bgRed),C.bold),gutter:C.gray,marker:o(C.red,C.bold),message:o(C.red,C.bold),reset:C.reset}}var a=u(t.createColors(!0)),s=u(t.createColors(!1));function c(C){return C?a:s}var l=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/,p;{let C=/^[a-z][\w-]*$/i,y=function(b,k,F){if(b.type==="name"){if(i.isKeyword(b.value)||i.isStrictReservedWord(b.value,!0)||l.has(b.value))return"keyword";if(C.test(b.value)&&(F[k-1]==="<"||F.slice(k-2,k)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&d.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};p=function*(b){let k;for(;k=n.default.exec(b);){let F=n.matchToToken(k);yield{type:y(F,k.index,b),value:F.value}}}}function m(C){if(C==="")return"";let y=c(!0),b="";for(let{type:k,value:F}of p(C))k in y?b+=F.split(f).map(w=>y[k](w)).join(`
|
|
62
|
-
`):b+=F;return b}var D=!1,h=/\r\n|[\n\r\u2028\u2029]/;function
|
|
59
|
+
`),T+="}",T},y.prototype.set=function(F,w,T){T=T||this[f];var $=T?Date.now():0,P=this[c](w,F);if(this[D].has(F)){if(P>this[a])return b(this,this[D].get(F)),!1;var E=this[D].get(F),A=E.value;return this[p]&&(this[m]||this[p](F,A.value)),A.now=$,A.maxAge=T,A.value=w,this[s]+=P-A.length,A.length=P,this.get(F),_(this),!0}var S=new k(F,w,P,$,T);return S.length>this[a]?(this[p]&&this[p](F,w),!1):(this[s]+=S.length,this[d].unshift(S),this[D].set(F,this[d].head),_(this),!0)},y.prototype.has=function(F){if(!this[D].has(F))return!1;var w=this[D].get(F).value;return!C(this,w)},y.prototype.get=function(F){return v(this,F,!0)},y.prototype.peek=function(F){return v(this,F,!1)},y.prototype.pop=function(){var F=this[d].tail;return F?(b(this,F),F.value):null},y.prototype.del=function(F){b(this,this[D].get(F))},y.prototype.load=function(F){this.reset();for(var w=Date.now(),T=F.length-1;T>=0;T--){var $=F[T],P=$.e||0;if(P===0)this.set($.k,$.v);else{var E=P-w;E>0&&this.set($.k,$.v,E)}}},y.prototype.prune=function(){var F=this;this[D].forEach(function(w,T){v(F,T,!1)})};function v(F,w,T){var $=F[D].get(w);if($){var P=$.value;C(F,P)?(b(F,$),F[l]||(P=void 0)):T&&F[d].unshiftNode($),P&&(P=P.value)}return P}function C(F,w){if(!w||!w.maxAge&&!F[f])return!1;var T=!1,$=Date.now()-w.now;return w.maxAge?T=$>w.maxAge:T=F[f]&&$>F[f],T}function _(F){if(F[s]>F[a])for(var w=F[d].tail;F[s]>F[a]&&w!==null;){var T=w.prev;b(F,w),w=T}}function b(F,w){if(w){var T=w.value;F[p]&&F[p](T.key,T.value),F[s]-=T.length,F[D].delete(T.key),F[d].removeNode(w)}}function k(F,w,T,$,P){this.key=F,this.value=w,this.length=T,this.now=$,this.maxAge=P||0}}}),H1=G({"node_modules/sigmund/sigmund.js"(e,t){t.exports=n;function n(i,r){r=r||10;var o=[],u="",a=RegExp;function s(c,l){if(!(l>r)&&!(typeof c=="function"||typeof c>"u")){if(typeof c!="object"||!c||c instanceof a){u+=c;return}o.indexOf(c)!==-1||l===r||(o.push(c),u+="{",Object.keys(c).forEach(function(f,p,m){if(f.charAt(0)!=="_"){var d=typeof c[f];d==="function"||d==="undefined"||(u+=f,s(c[f],l+1))}}))}}return s(i,0),u}}}),q1=G({"node_modules/editorconfig/src/lib/fnmatch.js"(e,t){var n=typeof process=="object"?process.platform:"win32";t?t.exports=g:e.minimatch=g,g.Minimatch=v;var i=K1(),r=g.cache=new i({max:100}),o=g.GLOBSTAR=v.GLOBSTAR={},u=H1(),a=Ee("path"),s="[^/]",c=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",p=m("().*{}+?[]^$\\!");function m(E){return E.split("").reduce(function(A,S){return A[S]=!0,A},{})}var d=/\/+/;g.monkeyPatch=D;function D(){var E=Object.getOwnPropertyDescriptor(String.prototype,"match"),A=E.value;E.value=function(S){return S instanceof v?S.match(this):A.call(this,S)},Object.defineProperty(String.prototype,E)}g.filter=h;function h(E,A){return A=A||{},function(S,I,j){return g(S,E,A)}}function y(E,A){E=E||{},A=A||{};var S={};return Object.keys(A).forEach(function(I){S[I]=A[I]}),Object.keys(E).forEach(function(I){S[I]=E[I]}),S}g.defaults=function(E){if(!E||!Object.keys(E).length)return g;var A=g,S=function(j,W,V){return A.minimatch(j,W,y(E,V))};return S.Minimatch=function(j,W){return new A.Minimatch(j,y(E,W))},S},v.defaults=function(E){return!E||!Object.keys(E).length?v:g.defaults(E).Minimatch};function g(E,A,S){if(typeof A!="string")throw new TypeError("glob pattern string required");return S||(S={}),!S.nocomment&&A.charAt(0)==="#"?!1:A.trim()===""?E==="":new v(A,S).match(E)}function v(E,A){if(!(this instanceof v))return new v(E,A,r);if(typeof E!="string")throw new TypeError("glob pattern string required");A||(A={}),n==="win32"&&(E=E.split("\\").join("/"));var S=E+`
|
|
60
|
+
`+u(A),I=g.cache.get(S);if(I)return I;g.cache.set(S,this),this.options=A,this.set=[],this.pattern=E,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}v.prototype.make=C;function C(){if(!this._made){var E=this.pattern,A=this.options;if(!A.nocomment&&E.charAt(0)==="#"){this.comment=!0;return}if(!E){this.empty=!0;return}this.parseNegate();var S=this.globSet=this.braceExpand();A.debug&&console.error(this.pattern,S),S=this.globParts=S.map(function(I){return I.split(d)}),A.debug&&console.error(this.pattern,S),S=S.map(function(I,j,W){return I.map(this.parse,this)},this),A.debug&&console.error(this.pattern,S),S=S.filter(function(I){return I.indexOf(!1)===-1}),A.debug&&console.error(this.pattern,S),this.set=S}}v.prototype.parseNegate=_;function _(){var E=this.pattern,A=!1,S=this.options,I=0;if(!S.nonegate){for(var j=0,W=E.length;j<W&&E.charAt(j)==="!";j++)A=!A,I++;I&&(this.pattern=E.substr(I)),this.negate=A}}g.braceExpand=function(E,A){return new v(E,A).braceExpand()},v.prototype.braceExpand=b;function b(E,A){if(A=A||this.options,E=typeof E>"u"?this.pattern:E,typeof E>"u")throw new Error("undefined pattern");if(A.nobrace||!E.match(/\{.*\}/))return[E];var re=!1;if(E.charAt(0)!=="{"){for(var S=null,N=0,I=E.length;N<I;N++){var j=E.charAt(N);if(j==="\\")re=!re;else if(j==="{"&&!re){S=E.substr(0,N);break}}if(S===null)return[E];var W=b(E.substr(N),A);return W.map(function(et){return S+et})}var V=E.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if(V){for(var be=b(E.substr(V[0].length),A),Z=+V[1],z=+V[2],Y=Z>z?-1:1,x=[],N=Z;N!=z+Y;N+=Y)for(var B=0,se=be.length;B<se;B++)x.push(N+be[B]);return x}var N=1,K=1,x=[],R="",q=!1,re=!1;function Ne(){x.push(R),R=""}e:for(N=1,I=E.length;N<I;N++){var j=E.charAt(N);if(re)re=!1,R+="\\"+j;else switch(j){case"\\":re=!0;continue;case"{":K++,R+="{";continue;case"}":if(K--,K===0){Ne(),N++;break e}else{R+=j;continue}case",":K===1?Ne():R+=j;continue;default:R+=j;continue}}if(K!==0)return b("\\"+E,A);var be=b(E.substr(N),A),ge=x.length===1;x=x.map(function(et){return b(et,A)}),x=x.reduce(function(et,ot){return et.concat(ot)}),ge&&(x=x.map(function(et){return"{"+et+"}"}));for(var Ce=[],N=0,I=x.length;N<I;N++)for(var B=0,se=be.length;B<se;B++)Ce.push(x[N]+be[B]);return Ce}v.prototype.parse=F;var k={};function F(E,A){var S=this.options;if(!S.noglobstar&&E==="**")return o;if(E==="")return"";var I="",j=!!S.nocase,W=!1,V=[],Z,z,Y=!1,B=-1,se=-1,N=E.charAt(0)==="."?"":S.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function K(){if(z){switch(z){case"*":I+=c,j=!0;break;case"?":I+=s,j=!0;break;default:I+="\\"+z;break}z=!1}}for(var x=0,R=E.length,q;x<R&&(q=E.charAt(x));x++){if(S.debug&&console.error("%s %s %s %j",E,x,I,q),W&&p[q]){I+="\\"+q,W=!1;continue}e:switch(q){case"/":return!1;case"\\":K(),W=!0;continue;case"?":case"*":case"+":case"@":case"!":if(S.debug&&console.error("%s %s %s %j <-- stateChar",E,x,I,q),Y){q==="!"&&x===se+1&&(q="^"),I+=q;continue}K(),z=q,S.noext&&K();continue;case"(":if(Y){I+="(";continue}if(!z){I+="\\(";continue}Z=z,V.push({type:Z,start:x-1,reStart:I.length}),I+=z==="!"?"(?:(?!":"(?:",z=!1;continue;case")":if(Y||!V.length){I+="\\)";continue}switch(j=!0,I+=")",Z=V.pop().type,Z){case"!":I+="[^/]*?)";break;case"?":case"+":case"*":I+=Z;case"@":break}continue;case"|":if(Y||!V.length||W){I+="\\|",W=!1;continue}I+="|";continue;case"[":if(K(),Y){I+="\\"+q;continue}Y=!0,se=x,B=I.length,I+=q;continue;case"]":if(x===se+1||!Y){I+="\\"+q,W=!1;continue}j=!0,Y=!1,I+=q;continue;default:K(),W?W=!1:p[q]&&!(q==="^"&&Y)&&(I+="\\"),I+=q}}if(Y){var re=E.substr(se+1),Ne=this.parse(re,k);I=I.substr(0,B)+"\\["+Ne[0],j=j||Ne[1]}for(var be;be=V.pop();){var ge=I.slice(be.reStart+3);ge=ge.replace(/((?:\\{2})*)(\\?)\|/g,function(ie,Re,tn){return tn||(tn="\\"),Re+Re+tn+"|"});var Ce=be.type==="*"?c:be.type==="?"?s:"\\"+be.type;j=!0,I=I.slice(0,be.reStart)+Ce+"\\("+ge}K(),W&&(I+="\\\\");var et=!1;switch(I.charAt(0)){case".":case"[":case"(":et=!0}if(I!==""&&j&&(I="(?=.)"+I),et&&(I=N+I),A===k)return[I,j];if(!j)return $(E);var ot=S.nocase?"i":"",Ze=new RegExp("^"+I+"$",ot);return Ze._glob=E,Ze._src=I,Ze}g.makeRe=function(E,A){return new v(E,A||{}).makeRe()},v.prototype.makeRe=w;function w(){if(this.regexp||this.regexp===!1)return this.regexp;var E=this.set;if(!E.length)return this.regexp=!1;var A=this.options,S=A.noglobstar?c:A.dot?l:f,I=A.nocase?"i":"",j=E.map(function(W){return W.map(function(V){return V===o?S:typeof V=="string"?P(V):V._src}).join("\\/")}).join("|");j="^(?:"+j+")$",this.negate&&(j="^(?!"+j+").*$");try{return this.regexp=new RegExp(j,I)}catch{return this.regexp=!1}}g.match=function(E,A,S){var I=new v(A,S);return E=E.filter(function(j){return I.match(j)}),S.nonull&&!E.length&&E.push(A),E},v.prototype.match=T;function T(E,A){if(this.comment)return!1;if(this.empty)return E==="";if(E==="/"&&A)return!0;var S=this.options;n==="win32"&&(E=E.split("\\").join("/")),E=E.split(d),S.debug&&console.error(this.pattern,"split",E);for(var I=this.set,j=0,W=I.length;j<W;j++){var V=I[j],Z=this.matchOne(E,V,A);if(Z)return S.flipNegate?!0:!this.negate}return S.flipNegate?!1:this.negate}v.prototype.matchOne=function(E,A,S){var I=this.options;I.debug&&console.error("matchOne",{this:this,file:E,pattern:A}),I.matchBase&&A.length===1&&(E=a.basename(E.join("/")).split("/")),I.debug&&console.error("matchOne",E.length,A.length);for(var j=0,W=0,V=E.length,Z=A.length;j<V&&W<Z;j++,W++){I.debug&&console.error("matchOne loop");var z=A[W],Y=E[j];if(I.debug&&console.error(A,z,Y),z===!1)return!1;if(z===o){I.debug&&console.error("GLOBSTAR",[A,z,Y]);var B=j,se=W+1;if(se===Z){for(I.debug&&console.error("** at the end");j<V;j++)if(E[j]==="."||E[j]===".."||!I.dot&&E[j].charAt(0)===".")return!1;return!0}e:for(;B<V;){var N=E[B];if(I.debug&&console.error(`
|
|
61
|
+
globstar while`,E,B,A,se,N),this.matchOne(E.slice(B),A.slice(se),S))return I.debug&&console.error("globstar found match!",B,V,N),!0;if(N==="."||N===".."||!I.dot&&N.charAt(0)==="."){I.debug&&console.error("dot detected!",E,B,A,se);break e}I.debug&&console.error("globstar swallow a segment, and continue"),B++}return!!(S&&B===V)}var K;if(typeof z=="string"?(I.nocase?K=Y.toLowerCase()===z.toLowerCase():K=Y===z,I.debug&&console.error("string match",z,Y,K)):(K=Y.match(z),I.debug&&console.error("pattern match",z,Y,K)),!K)return!1}if(j===V&&W===Z)return!0;if(j===V)return S;if(W===Z){var x=j===V-1&&E[j]==="";return x}throw new Error("wtf?")};function $(E){return E.replace(/\\(.)/g,"$1")}function P(E){return E.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),Y1=G({"node_modules/editorconfig/src/lib/ini.js"(e){"use strict";var t=e&&e.__awaiter||function(c,l,f,p){return new(f||(f=Promise))(function(m,d){function D(g){try{y(p.next(g))}catch(v){d(v)}}function h(g){try{y(p.throw(g))}catch(v){d(v)}}function y(g){g.done?m(g.value):new f(function(v){v(g.value)}).then(D,h)}y((p=p.apply(c,l||[])).next())})},n=e&&e.__generator||function(c,l){var f={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},p,m,d,D;return D={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function h(g){return function(v){return y([g,v])}}function y(g){if(p)throw new TypeError("Generator is already executing.");for(;f;)try{if(p=1,m&&(d=g[0]&2?m.return:g[0]?m.throw||((d=m.return)&&d.call(m),0):m.next)&&!(d=d.call(m,g[1])).done)return d;switch(m=0,d&&(g=[g[0]&2,d.value]),g[0]){case 0:case 1:d=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,m=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(d=f.trys,!(d=d.length>0&&d[d.length-1])&&(g[0]===6||g[0]===2)){f=0;continue}if(g[0]===3&&(!d||g[1]>d[0]&&g[1]<d[3])){f.label=g[1];break}if(g[0]===6&&f.label<d[1]){f.label=d[1],d=g;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(g);break}d[2]&&f.ops.pop(),f.trys.pop();continue}g=l.call(c,f)}catch(v){g=[6,v],m=0}finally{p=d=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},i=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var f in c)Object.hasOwnProperty.call(c,f)&&(l[f]=c[f]);return l.default=c,l};Object.defineProperty(e,"__esModule",{value:!0});var r=i(Ee("fs")),o={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function u(c){return t(this,void 0,void 0,function(){return n(this,function(l){return[2,new Promise(function(f,p){r.readFile(c,"utf8",function(m,d){if(m){p(m);return}f(s(d))})})]})})}e.parse=u;function a(c){return s(r.readFileSync(c,"utf8"))}e.parseSync=a;function s(c){var l={},f=null,p=[[f,l]],m=c.split(/\r\n|\r|\n/);return m.forEach(function(d){var D;o.comment.test(d)||(o.param.test(d)?(D=d.match(o.param),l[D[1]]=D[2]):o.section.test(d)&&(D=d.match(o.section),f=D[1],l={},p.push([f,l])))}),p}e.parseString=s}}),J1=G({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),X1=G({"node_modules/editorconfig/src/index.js"(e){"use strict";var t=e&&e.__awaiter||function($,P,E,A){return new(E||(E=Promise))(function(S,I){function j(Z){try{V(A.next(Z))}catch(z){I(z)}}function W(Z){try{V(A.throw(Z))}catch(z){I(z)}}function V(Z){Z.done?S(Z.value):new E(function(z){z(Z.value)}).then(j,W)}V((A=A.apply($,P||[])).next())})},n=e&&e.__generator||function($,P){var E={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},A,S,I,j;return j={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function W(Z){return function(z){return V([Z,z])}}function V(Z){if(A)throw new TypeError("Generator is already executing.");for(;E;)try{if(A=1,S&&(I=Z[0]&2?S.return:Z[0]?S.throw||((I=S.return)&&I.call(S),0):S.next)&&!(I=I.call(S,Z[1])).done)return I;switch(S=0,I&&(Z=[Z[0]&2,I.value]),Z[0]){case 0:case 1:I=Z;break;case 4:return E.label++,{value:Z[1],done:!1};case 5:E.label++,S=Z[1],Z=[0];continue;case 7:Z=E.ops.pop(),E.trys.pop();continue;default:if(I=E.trys,!(I=I.length>0&&I[I.length-1])&&(Z[0]===6||Z[0]===2)){E=0;continue}if(Z[0]===3&&(!I||Z[1]>I[0]&&Z[1]<I[3])){E.label=Z[1];break}if(Z[0]===6&&E.label<I[1]){E.label=I[1],I=Z;break}if(I&&E.label<I[2]){E.label=I[2],E.ops.push(Z);break}I[2]&&E.ops.pop(),E.trys.pop();continue}Z=P.call($,E)}catch(z){Z=[6,z],S=0}finally{A=I=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},i=e&&e.__importStar||function($){if($&&$.__esModule)return $;var P={};if($!=null)for(var E in $)Object.hasOwnProperty.call($,E)&&(P[E]=$[E]);return P.default=$,P},r=e&&e.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(Ee("fs")),u=i(Ee("path")),a={gte:V1()},s=r(q1()),c=Y1();e.parseString=c.parseString;var l=r(J1()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function p($,P){var E={matchBase:!0,dot:!0,noext:!0};return P=P.replace(/\*\*/g,"{*,**/**/**}"),s.default($,P,E)}function m($,P){var E=[];do $=u.dirname($),E.push(u.join($,P.config));while($!==P.root);return E}function d($,P){return"indent_style"in $&&$.indent_style==="tab"&&!("indent_size"in $)&&a.gte(P,"0.10.0")&&($.indent_size="tab"),"indent_size"in $&&!("tab_width"in $)&&$.indent_size!=="tab"&&($.tab_width=$.indent_size),"indent_size"in $&&"tab_width"in $&&$.indent_size==="tab"&&($.indent_size=$.tab_width),$}function D($,P){return $===void 0&&($={}),{config:$.config||".editorconfig",version:$.version||l.default.version,root:u.resolve($.root||u.parse(P).root)}}function h($,P){switch(P.indexOf("/")){case-1:P="**/"+P;break;case 0:P=P.substring(1);break;default:break}return u.join($,P)}function y($,P){$===void 0&&($={}),P===void 0&&(P={});for(var E in P)if(P.hasOwnProperty(E)){var A=P[E],S=E.toLowerCase(),I=A;f[S]&&(I=A.toLowerCase());try{I=JSON.parse(A)}catch{}(typeof A>"u"||A===null)&&(I=String(A)),$[S]=I}return $}function g($,P,E){return d($.reverse().reduce(function(A,S){var I=u.dirname(S.name);return S.contents.forEach(function(j){var W=j[0],V=j[1];if(W){var Z=h(I,W);p(P,Z)&&(A=y(A,V))}}),A},{}),E.version)}function v($){var P=[];for(var E in $)if($.hasOwnProperty(E)){var A=$[E],S=c.parseString(A.contents);if(P.push({name:A.name,contents:S}),(S[0][1].root||"").toLowerCase()==="true")break}return P}function C($){return t(this,void 0,void 0,function(){return n(this,function(P){return[2,Promise.all($.map(function(E){return new Promise(function(A){o.readFile(E,"utf8",function(S,I){A({name:E,contents:S?"":I})})})}))]})})}function _($){var P=[],E;return $.forEach(function(A){try{E=o.readFileSync(A,"utf8")}catch{E=""}P.push({name:A,contents:E})}),P}function b($,P){P===void 0&&(P={});var E=u.resolve($);return[E,D(P,E)]}function k($,P,E){return E===void 0&&(E={}),t(this,void 0,void 0,function(){var A,S,I;return n(this,function(j){return A=b($,E),S=A[0],I=A[1],[2,P.then(v).then(function(W){return g(W,S,I)})]})})}e.parseFromFiles=k;function F($,P,E){E===void 0&&(E={});var A=b($,E),S=A[0],I=A[1];return g(v(P),S,I)}e.parseFromFilesSync=F;function w($,P){return P===void 0&&(P={}),t(this,void 0,void 0,function(){var E,A,S,I;return n(this,function(j){return E=b($,P),A=E[0],S=E[1],I=m(A,S),[2,C(I).then(v).then(function(W){return g(W,A,S)})]})})}e.parse=w;function T($,P){P===void 0&&(P={});var E=b($,P),A=E[0],S=E[1],I=m(A,S),j=_(I);return g(v(j),A,S)}e.parseSync=T}}),Q1=G({"node_modules/ci-info/vendors.json"(e,t){t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]}}),eA=G({"node_modules/ci-info/index.js"(e){"use strict";var t=Q1(),n=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(o){return o.constant})}),e.name=null,e.isPR=null,e.id=null,t.forEach(function(o){let a=(Array.isArray(o.env)?o.env:[o.env]).every(function(s){return i(s)});e[o.constant]=a,a&&(e.name=o.name,e.isPR=r(o),e.id=o.constant)}),e.isCI=!!(n.CI!=="false"&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.name));function i(o){return typeof o=="string"?!!n[o]:"env"in o?n[o.env]&&n[o.env].includes(o.includes):"any"in o?o.any.some(function(u){return!!n[u]}):Object.keys(o).every(function(u){return n[u]===o[u]})}function r(o){switch(typeof o.pr){case"string":return!!n[o.pr];case"object":return"env"in o.pr?"any"in o.pr?o.pr.any.some(function(u){return n[o.pr.env]===u}):o.pr.env in n&&n[o.pr.env]!==o.pr.ne:"any"in o.pr?o.pr.any.some(function(u){return!!n[u]}):i(o.pr);default:return null}}}}),tA=G({"node_modules/picocolors/picocolors.js"(e,t){var n=process||{},i=n.argv||[],r=n.env||{},o=!(r.NO_COLOR||i.includes("--no-color"))&&(!!r.FORCE_COLOR||i.includes("--color")||n.platform==="win32"||(n.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),u=(c,l,f=c)=>p=>{let m=""+p,d=m.indexOf(l,c.length);return~d?c+a(m,l,f,d)+l:c+m+l},a=(c,l,f,p)=>{let m="",d=0;do m+=c.substring(d,p)+f,d=p+l.length,p=c.indexOf(l,d);while(~p);return m+c.substring(d)},s=(c=o)=>{let l=c?u:()=>String;return{isColorSupported:c,reset:l("\x1B[0m","\x1B[0m"),bold:l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:l("\x1B[3m","\x1B[23m"),underline:l("\x1B[4m","\x1B[24m"),inverse:l("\x1B[7m","\x1B[27m"),hidden:l("\x1B[8m","\x1B[28m"),strikethrough:l("\x1B[9m","\x1B[29m"),black:l("\x1B[30m","\x1B[39m"),red:l("\x1B[31m","\x1B[39m"),green:l("\x1B[32m","\x1B[39m"),yellow:l("\x1B[33m","\x1B[39m"),blue:l("\x1B[34m","\x1B[39m"),magenta:l("\x1B[35m","\x1B[39m"),cyan:l("\x1B[36m","\x1B[39m"),white:l("\x1B[37m","\x1B[39m"),gray:l("\x1B[90m","\x1B[39m"),bgBlack:l("\x1B[40m","\x1B[49m"),bgRed:l("\x1B[41m","\x1B[49m"),bgGreen:l("\x1B[42m","\x1B[49m"),bgYellow:l("\x1B[43m","\x1B[49m"),bgBlue:l("\x1B[44m","\x1B[49m"),bgMagenta:l("\x1B[45m","\x1B[49m"),bgCyan:l("\x1B[46m","\x1B[49m"),bgWhite:l("\x1B[47m","\x1B[49m"),blackBright:l("\x1B[90m","\x1B[39m"),redBright:l("\x1B[91m","\x1B[39m"),greenBright:l("\x1B[92m","\x1B[39m"),yellowBright:l("\x1B[93m","\x1B[39m"),blueBright:l("\x1B[94m","\x1B[39m"),magentaBright:l("\x1B[95m","\x1B[39m"),cyanBright:l("\x1B[96m","\x1B[39m"),whiteBright:l("\x1B[97m","\x1B[39m"),bgBlackBright:l("\x1B[100m","\x1B[49m"),bgRedBright:l("\x1B[101m","\x1B[49m"),bgGreenBright:l("\x1B[102m","\x1B[49m"),bgYellowBright:l("\x1B[103m","\x1B[49m"),bgBlueBright:l("\x1B[104m","\x1B[49m"),bgMagentaBright:l("\x1B[105m","\x1B[49m"),bgCyanBright:l("\x1B[106m","\x1B[49m"),bgWhiteBright:l("\x1B[107m","\x1B[49m")}};t.exports=s(),t.exports.createColors=s}}),rA=G({"node_modules/js-tokens/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var n={type:"invalid",value:t[0],closed:void 0};return t[1]?(n.type="string",n.closed=!!(t[3]||t[4])):t[5]?n.type="comment":t[6]?(n.type="comment",n.closed=!!t[7]):t[8]?n.type="regex":t[9]?n.type="number":t[10]?n.type="name":t[11]?n.type="punctuator":t[12]&&(n.type="whitespace"),n}}}),nA=G({"node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=c,e.isIdentifierName=l,e.isIdentifierStart=s;var t="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",n="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",i=new RegExp("["+t+"]"),r=new RegExp("["+t+n+"]");t=n=null;var o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function a(f,p){let m=65536;for(let d=0,D=p.length;d<D;d+=2){if(m+=p[d],m>f)return!1;if(m+=p[d+1],m>=f)return!0}return!1}function s(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):a(f,o)}function c(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):a(f,o)||a(f,u)}function l(f){let p=!0;for(let m=0;m<f.length;m++){let d=f.charCodeAt(m);if((d&64512)===55296&&m+1<f.length){let D=f.charCodeAt(++m);(D&64512)===56320&&(d=65536+((d&1023)<<10)+(D&1023))}if(p){if(p=!1,!s(d))return!1}else if(!c(d))return!1}return!p}}}),iA=G({"node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=c,e.isReservedWord=o,e.isStrictBindOnlyReservedWord=a,e.isStrictBindReservedWord=s,e.isStrictReservedWord=u;var t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},n=new Set(t.keyword),i=new Set(t.strict),r=new Set(t.strictBind);function o(l,f){return f&&l==="await"||l==="enum"}function u(l,f){return o(l,f)||i.has(l)}function a(l){return r.has(l)}function s(l,f){return u(l,f)||a(l)}function c(l){return n.has(l)}}}),oA=G({"node_modules/@babel/helper-validator-identifier/lib/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=nA(),n=iA()}}),E0=G({"node_modules/@babel/code-frame/lib/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=tA(),n=rA(),i=oA();function r(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}var o=(C,_)=>b=>C(_(b));function u(C){return{keyword:C.cyan,capitalized:C.yellow,jsxIdentifier:C.yellow,punctuator:C.yellow,number:C.magenta,string:C.green,regex:C.magenta,comment:C.gray,invalid:o(o(C.white,C.bgRed),C.bold),gutter:C.gray,marker:o(C.red,C.bold),message:o(C.red,C.bold),reset:C.reset}}var a=u(t.createColors(!0)),s=u(t.createColors(!1));function c(C){return C?a:s}var l=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,p=/^[()[\]{}]$/,m;{let C=/^[a-z][\w-]*$/i,_=function(b,k,F){if(b.type==="name"){if(i.isKeyword(b.value)||i.isStrictReservedWord(b.value,!0)||l.has(b.value))return"keyword";if(C.test(b.value)&&(F[k-1]==="<"||F.slice(k-2,k)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&p.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};m=function*(b){let k;for(;k=n.default.exec(b);){let F=n.matchToToken(k);yield{type:_(F,k.index,b),value:F.value}}}}function d(C){if(C==="")return"";let _=c(!0),b="";for(let{type:k,value:F}of m(C))k in _?b+=F.split(f).map(w=>_[k](w)).join(`
|
|
62
|
+
`):b+=F;return b}var D=!1,h=/\r\n|[\n\r\u2028\u2029]/;function y(C,_,b){let k=Object.assign({column:0,line:-1},C.start),F=Object.assign({},k,C.end),{linesAbove:w=2,linesBelow:T=3}=b||{},$=k.line,P=k.column,E=F.line,A=F.column,S=Math.max($-(w+1),0),I=Math.min(_.length,E+T);$===-1&&(S=0),E===-1&&(I=_.length);let j=E-$,W={};if(j)for(let V=0;V<=j;V++){let Z=V+$;if(!P)W[Z]=!0;else if(V===0){let z=_[Z-1].length;W[Z]=[P,z-P+1]}else if(V===j)W[Z]=[0,A];else{let z=_[Z-V].length;W[Z]=[0,z]}}else P===A?P?W[$]=[P,0]:W[$]=!0:W[$]=[P,A-P];return{start:S,end:I,markerLines:W}}function g(C,_,b={}){let k=b.forceColor||r()&&b.highlightCode,F=c(k),w=C.split(h),{start:T,end:$,markerLines:P}=y(_,w,b),E=_.start&&typeof _.start.column=="number",A=String($).length,I=(k?d(C):C).split(h,$).slice(T,$).map((j,W)=>{let V=T+1+W,z=` ${` ${V}`.slice(-A)} |`,Y=P[V],B=!P[V+1];if(Y){let se="";if(Array.isArray(Y)){let N=j.slice(0,Math.max(Y[0]-1,0)).replace(/[^\t]/g," "),K=Y[1]||1;se=[`
|
|
63
63
|
`,F.gutter(z.replace(/\d/g," "))," ",N,F.marker("^").repeat(K)].join(""),B&&b.message&&(se+=" "+F.message(b.message))}return[F.marker(">"),F.gutter(z),j.length>0?` ${j}`:"",se].join("")}else return` ${F.gutter(z)}${j.length>0?` ${j}`:""}`}).join(`
|
|
64
64
|
`);return b.message&&!E&&(I=`${" ".repeat(A+1)}${b.message}
|
|
65
|
-
${I}`),k?F.reset(I):I}function v(C,y,b,k={}){if(!D){D=!0;let w="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(w,"DeprecationWarning");else{let T=new Error(w);T.name="DeprecationWarning",console.warn(new Error(w))}}return b=Math.max(b,0),g(C,{start:{column:b,line:y}},k)}e.codeFrameColumns=g,e.default=v,e.highlight=m}}),rA=G({"node_modules/ignore/index.js"(e,t){function n(N){return Array.isArray(N)?N:[N]}var i=void 0,r="",o=" ",u="\\",a=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,f=/\r?\n/g,d=/^\.*\/|^\.+$/,p=/\/$/,m="/",D="node-ignore";typeof Symbol<"u"&&(D=Symbol.for("node-ignore"));var h=D,_=(N,K,x)=>(Object.defineProperty(N,K,{value:x}),x),g=/([0-z])-([0-z])/g,v=()=>!1,C=N=>N.replace(g,(K,x,R)=>x.charCodeAt(0)<=R.charCodeAt(0)?K:r),y=N=>{let{length:K}=N;return N.slice(0,K-K%2)},b=[[/^\uFEFF/,()=>r],[/((?:\\\\)*?)(\\?\s+)$/,(N,K,x)=>K+(x.indexOf("\\")===0?o:r)],[/(\\+?)\s/g,(N,K)=>{let{length:x}=K;return K.slice(0,x-x%2)+o}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,K,x)=>K+6<x.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,K,x)=>{let R=x.replace(/\\\*/g,"[^\\/]*");return K+R}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,K,x,R,q)=>K===u?`\\[${x}${y(R)}${q}`:q==="]"&&R.length%2===0?`[${C(x)}${R}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],k=/(^|\\\/)?\\\*$/,F="regex",w="checkRegex",T="_",$={[F](N,K){return`${K?`${K}[^/]+`:"[^/]*"}(?=$|\\/$)`},[w](N,K){return`${K?`${K}[^/]*`:"[^/]*"}(?=$|\\/$)`}},P=N=>b.reduce((K,[x,R])=>K.replace(x,R.bind(N)),N),E=N=>typeof N=="string",A=N=>N&&E(N)&&!a.test(N)&&!s.test(N)&&N.indexOf("#")!==0,S=N=>N.split(f).filter(Boolean),I=class{constructor(N,K,x,R,q,re){this.pattern=N,this.mark=K,this.negative=q,_(this,"body",x),_(this,"ignoreCase",R),_(this,"regexPrefix",re)}get regex(){let N=T+F;return this[N]?this[N]:this._make(F,N)}get checkRegex(){let N=T+w;return this[N]?this[N]:this._make(w,N)}_make(N,K){let x=this.regexPrefix.replace(k,$[N]),R=this.ignoreCase?new RegExp(x,"i"):new RegExp(x);return _(this,K,R)}},j=({pattern:N,mark:K},x)=>{let R=!1,q=N;q.indexOf("!")===0&&(R=!0,q=q.substr(1)),q=q.replace(c,"!").replace(l,"#");let re=P(q);return new I(N,K,q,x,R,re)},W=class{constructor(N){this._ignoreCase=N,this._rules=[]}_add(N){if(N&&N[h]){this._rules=this._rules.concat(N._rules._rules),this._added=!0;return}if(E(N)&&(N={pattern:N}),A(N.pattern)){let K=j(N,this._ignoreCase);this._added=!0,this._rules.push(K)}}add(N){return this._added=!1,n(E(N)?S(N):N).forEach(this._add,this),this._added}test(N,K,x){let R=!1,q=!1,re;this._rules.forEach(be=>{let{negative:ge}=be;q===ge&&R!==q||ge&&!R&&!q&&!K||!be[x].test(N)||(R=!ge,q=ge,re=ge?i:be)});let Ne={ignored:R,unignored:q};return re&&(Ne.rule=re),Ne}},V=(N,K)=>{throw new K(N)},Z=(N,K,x)=>E(N)?N?Z.isNotRelative(N)?x(`path should be a \`path.relative()\`d string, but got "${K}"`,RangeError):!0:x("path must not be empty",TypeError):x(`path must be a string, but got \`${K}\``,TypeError),z=N=>d.test(N);Z.isNotRelative=z,Z.convert=N=>N;var Y=class{constructor({ignorecase:N=!0,ignoreCase:K=N,allowRelativePaths:x=!1}={}){_(this,h,!0),this._rules=new W(K),this._strictPathCheck=!x,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(N){return this._rules.add(N)&&this._initCache(),this}addPattern(N){return this.add(N)}_test(N,K,x,R){let q=N&&Z.convert(N);return Z(q,N,this._strictPathCheck?V:v),this._t(q,K,x,R)}checkIgnore(N){if(!p.test(N))return this.test(N);let K=N.split(m).filter(Boolean);if(K.pop(),K.length){let x=this._t(K.join(m)+m,this._testCache,!0,K);if(x.ignored)return x}return this._rules.test(N,!1,w)}_t(N,K,x,R){if(N in K)return K[N];if(R||(R=N.split(m).filter(Boolean)),R.pop(),!R.length)return K[N]=this._rules.test(N,x,F);let q=this._t(R.join(m)+m,K,x,R);return K[N]=q.ignored?q:this._rules.test(N,x,F)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return n(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}},B=N=>new Y(N),se=N=>Z(N&&Z.convert(N),N,v);if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let N=x=>/^\\\\\?\\/.test(x)||/["<>|\u0000-\u001F]+/u.test(x)?x:x.replace(/\\/g,"/");Z.convert=N;let K=/^[a-z]:\//i;Z.isNotRelative=x=>K.test(x)||z(x)}t.exports=B,B.default=B,t.exports.isPathValid=se}}),nA=G({"node_modules/n-readlines/readlines.js"(e,t){"use strict";var n=Ee("fs"),i=class{constructor(r,o){o=o||{},o.readChunk||(o.readChunk=1024),o.newLineCharacter?o.newLineCharacter=o.newLineCharacter.charCodeAt(0):o.newLineCharacter=10,typeof r=="number"?this.fd=r:this.fd=n.openSync(r,"r"),this.options=o,this.newLineCharacter=o.newLineCharacter,this.reset()}_searchInBuffer(r,o){let u=-1;for(let a=0;a<=r.length;a++)if(r[a]===o){u=a;break}return u}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){n.closeSync(this.fd),this.fd=null}_extractLines(r){let o,u=[],a=0,s=0;for(;;){let l=r[a++];if(l===this.newLineCharacter)o=r.slice(s,a),u.push(o),s=a;else if(l===void 0)break}let c=r.slice(s,a);return c.length&&u.push(c),u}_readChunk(r){let o=0,u,a=[];do{let c=Buffer.alloc(this.options.readChunk);u=n.readSync(this.fd,c,0,this.options.readChunk,this.fdPosition),o=o+u,this.fdPosition=this.fdPosition+u,a.push(c)}while(u&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);let s=Buffer.concat(a);return u<this.options.readChunk&&(this.eofReached=!0,s=s.slice(0,o)),o&&(this.linesCache=this._extractLines(s),r&&(this.linesCache[0]=Buffer.concat([r,this.linesCache[0]]))),o}next(){if(!this.fd)return!1;let r=!1;if(this.eofReached&&this.linesCache.length===0)return r;let o;return this.linesCache.length||(o=this._readChunk()),this.linesCache.length&&(r=this.linesCache.shift(),r[r.length-1]!==this.newLineCharacter&&(o=this._readChunk(r),o&&(r=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),r&&r[r.length-1]===this.newLineCharacter&&(r=r.slice(0,r.length-1)),r}};t.exports=i}}),iA={};ko(iA,{__debug:()=>Y6,__internal:()=>q6,check:()=>W6,clearConfigCache:()=>K6,doc:()=>nd,format:()=>Ma,formatWithCursor:()=>Zv,getFileInfo:()=>Ip,getSupportInfo:()=>H6,resolveConfig:()=>mv,resolveConfigFile:()=>xk,util:()=>Vv,version:()=>_6});function jt(){}jt.prototype={diff:function(t,n){var i,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.callback;typeof r=="function"&&(o=r,r={});var u=this;function a(C){return C=u.postProcess(C,r),o?(setTimeout(function(){o(C)},0),!0):C}t=this.castInput(t,r),n=this.castInput(n,r),t=this.removeEmpty(this.tokenize(t,r)),n=this.removeEmpty(this.tokenize(n,r));var s=n.length,c=t.length,l=1,f=s+c;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));var d=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(m[0],n,t,0,r);if(m[0].oldPos+1>=c&&D+1>=s)return a(Lh(u,m[0].lastComponent,n,t,u.useLongestToken));var h=-1/0,_=1/0;function g(){for(var C=Math.max(h,-l);C<=Math.min(_,l);C+=2){var y=void 0,b=m[C-1],k=m[C+1];b&&(m[C-1]=void 0);var F=!1;if(k){var w=k.oldPos-C;F=k&&0<=w&&w<s}var T=b&&b.oldPos+1<c;if(!F&&!T){m[C]=void 0;continue}if(!T||F&&b.oldPos<k.oldPos?y=u.addToPath(k,!0,!1,0,r):y=u.addToPath(b,!1,!0,1,r),D=u.extractCommon(y,n,t,C,r),y.oldPos+1>=c&&D+1>=s)return a(Lh(u,y.lastComponent,n,t,u.useLongestToken));m[C]=y,y.oldPos+1>=c&&(_=Math.min(_,C-1)),D+1>=s&&(h=Math.max(h,C+1))}l++}if(o)(function C(){setTimeout(function(){if(l>f||Date.now()>p)return o();g()||C()},0)})();else for(;l<=f&&Date.now()<=p;){var v=g();if(v)return v}},addToPath:function(t,n,i,r,o){var u=t.lastComponent;return u&&!o.oneChangePerToken&&u.added===n&&u.removed===i?{oldPos:t.oldPos+r,lastComponent:{count:u.count+1,added:n,removed:i,previousComponent:u.previousComponent}}:{oldPos:t.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:u}}},extractCommon:function(t,n,i,r,o){for(var u=n.length,a=i.length,s=t.oldPos,c=s-r,l=0;c+1<u&&s+1<a&&this.equals(i[s+1],n[c+1],o);)c++,s++,l++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return l&&!o.oneChangePerToken&&(t.lastComponent={count:l,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=s,c},equals:function(t,n,i){return i.comparator?i.comparator(t,n):t===n||i.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n},castInput:function(t){return t},tokenize:function(t){return Array.from(t)},join:function(t){return t.join("")},postProcess:function(t){return t}};function Lh(e,t,n,i,r){for(var o=[],u;t;)o.push(t),u=t.previousComponent,delete t.previousComponent,t=u;o.reverse();for(var a=0,s=o.length,c=0,l=0;a<s;a++){var f=o[a];if(f.removed)f.value=e.join(i.slice(l,l+f.count)),l+=f.count;else{if(!f.added&&r){var d=n.slice(c,c+f.count);d=d.map(function(p,m){var D=i[l+m];return D.length>p.length?D:p}),f.value=e.join(d)}else f.value=e.join(n.slice(c,c+f.count));c+=f.count,f.added||(l+=f.count)}}return o}var yT=new jt;function zh(e,t){var n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Uh(e,t){var n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Ed(e,t,n){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return n+e.slice(t.length)}function Fd(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+n}function mo(e,t){return Ed(e,t,"")}function na(e,t){return Fd(e,t,"")}function Mh(e,t){return t.slice(0,oA(e,t))}function oA(e,t){var n=0;e.length>t.length&&(n=e.length-t.length);var i=t.length;e.length<t.length&&(i=e.length);var r=Array(i),o=0;r[0]=0;for(var u=1;u<i;u++){for(t[u]==t[o]?r[u]=r[o]:r[u]=o;o>0&&t[u]!=t[o];)o=r[o];t[u]==t[o]&&o++}o=0;for(var a=n;a<e.length;a++){for(;o>0&&e[a]!=t[o];)o=r[o];e[a]==t[o]&&o++}return o}var ya="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",uA=new RegExp("[".concat(ya,"]+|\\s+|[^").concat(ya,"]"),"ug"),Ta=new jt;Ta.equals=function(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()};Ta.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(t.intlSegmenter.segment(e),function(o){return o.segment})}else n=e.match(uA)||[];var i=[],r=null;return n.forEach(function(o){/\s/.test(o)?r==null?i.push(o):i.push(i.pop()+o):/\s/.test(r)?i[i.length-1]==r?i.push(i.pop()+o):i.push(r+o):i.push(o),r=o}),i};Ta.join=function(e){return e.map(function(t,n){return n==0?t:t.replace(/^\s+/,"")}).join("")};Ta.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var n=null,i=null,r=null;return e.forEach(function(o){o.added?i=o:o.removed?r=o:((i||r)&&Vh(n,r,i,o),n=o,i=null,r=null)}),(i||r)&&Vh(n,r,i,null),e};function Vh(e,t,n,i){if(t&&n){var r=t.value.match(/^\s*/)[0],o=t.value.match(/\s*$/)[0],u=n.value.match(/^\s*/)[0],a=n.value.match(/\s*$/)[0];if(e){var s=zh(r,u);e.value=Fd(e.value,u,s),t.value=mo(t.value,s),n.value=mo(n.value,s)}if(i){var c=Uh(o,a);i.value=Ed(i.value,a,c),t.value=na(t.value,c),n.value=na(n.value,c)}}else if(n)e&&(n.value=n.value.replace(/^\s*/,"")),i&&(i.value=i.value.replace(/^\s*/,""));else if(e&&i){var l=i.value.match(/^\s*/)[0],f=t.value.match(/^\s*/)[0],d=t.value.match(/\s*$/)[0],p=zh(l,f);t.value=mo(t.value,p);var m=Uh(mo(l,p),d);t.value=na(t.value,m),i.value=Ed(i.value,l,m),e.value=Fd(e.value,l,l.slice(0,l.length-m.length))}else if(i){var D=i.value.match(/^\s*/)[0],h=t.value.match(/\s*$/)[0],_=Mh(h,D);t.value=na(t.value,_)}else if(e){var g=e.value.match(/\s*$/)[0],v=t.value.match(/^\s*/)[0],C=Mh(g,v);t.value=mo(t.value,C)}}var aA=new jt;aA.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(ya,"]+|[^\\S\\n\\r]+|[^").concat(ya,"]"),"ug");return e.match(t)||[]};var Na=new jt;Na.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
66
|
-
`));var n=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(var r=0;r<i.length;r++){var o=i[r];r%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n};
|
|
65
|
+
${I}`),k?F.reset(I):I}function v(C,_,b,k={}){if(!D){D=!0;let w="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(w,"DeprecationWarning");else{let T=new Error(w);T.name="DeprecationWarning",console.warn(new Error(w))}}return b=Math.max(b,0),g(C,{start:{column:b,line:_}},k)}e.codeFrameColumns=g,e.default=v,e.highlight=d}}),uA=G({"node_modules/ignore/index.js"(e,t){function n(N){return Array.isArray(N)?N:[N]}var i=void 0,r="",o=" ",u="\\",a=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,f=/\r?\n/g,p=/^\.*\/|^\.+$/,m=/\/$/,d="/",D="node-ignore";typeof Symbol<"u"&&(D=Symbol.for("node-ignore"));var h=D,y=(N,K,x)=>(Object.defineProperty(N,K,{value:x}),x),g=/([0-z])-([0-z])/g,v=()=>!1,C=N=>N.replace(g,(K,x,R)=>x.charCodeAt(0)<=R.charCodeAt(0)?K:r),_=N=>{let{length:K}=N;return N.slice(0,K-K%2)},b=[[/^\uFEFF/,()=>r],[/((?:\\\\)*?)(\\?\s+)$/,(N,K,x)=>K+(x.indexOf("\\")===0?o:r)],[/(\\+?)\s/g,(N,K)=>{let{length:x}=K;return K.slice(0,x-x%2)+o}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,K,x)=>K+6<x.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,K,x)=>{let R=x.replace(/\\\*/g,"[^\\/]*");return K+R}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,K,x,R,q)=>K===u?`\\[${x}${_(R)}${q}`:q==="]"&&R.length%2===0?`[${C(x)}${R}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],k=/(^|\\\/)?\\\*$/,F="regex",w="checkRegex",T="_",$={[F](N,K){return`${K?`${K}[^/]+`:"[^/]*"}(?=$|\\/$)`},[w](N,K){return`${K?`${K}[^/]*`:"[^/]*"}(?=$|\\/$)`}},P=N=>b.reduce((K,[x,R])=>K.replace(x,R.bind(N)),N),E=N=>typeof N=="string",A=N=>N&&E(N)&&!a.test(N)&&!s.test(N)&&N.indexOf("#")!==0,S=N=>N.split(f).filter(Boolean),I=class{constructor(N,K,x,R,q,re){this.pattern=N,this.mark=K,this.negative=q,y(this,"body",x),y(this,"ignoreCase",R),y(this,"regexPrefix",re)}get regex(){let N=T+F;return this[N]?this[N]:this._make(F,N)}get checkRegex(){let N=T+w;return this[N]?this[N]:this._make(w,N)}_make(N,K){let x=this.regexPrefix.replace(k,$[N]),R=this.ignoreCase?new RegExp(x,"i"):new RegExp(x);return y(this,K,R)}},j=({pattern:N,mark:K},x)=>{let R=!1,q=N;q.indexOf("!")===0&&(R=!0,q=q.substr(1)),q=q.replace(c,"!").replace(l,"#");let re=P(q);return new I(N,K,q,x,R,re)},W=class{constructor(N){this._ignoreCase=N,this._rules=[]}_add(N){if(N&&N[h]){this._rules=this._rules.concat(N._rules._rules),this._added=!0;return}if(E(N)&&(N={pattern:N}),A(N.pattern)){let K=j(N,this._ignoreCase);this._added=!0,this._rules.push(K)}}add(N){return this._added=!1,n(E(N)?S(N):N).forEach(this._add,this),this._added}test(N,K,x){let R=!1,q=!1,re;this._rules.forEach(be=>{let{negative:ge}=be;q===ge&&R!==q||ge&&!R&&!q&&!K||!be[x].test(N)||(R=!ge,q=ge,re=ge?i:be)});let Ne={ignored:R,unignored:q};return re&&(Ne.rule=re),Ne}},V=(N,K)=>{throw new K(N)},Z=(N,K,x)=>E(N)?N?Z.isNotRelative(N)?x(`path should be a \`path.relative()\`d string, but got "${K}"`,RangeError):!0:x("path must not be empty",TypeError):x(`path must be a string, but got \`${K}\``,TypeError),z=N=>p.test(N);Z.isNotRelative=z,Z.convert=N=>N;var Y=class{constructor({ignorecase:N=!0,ignoreCase:K=N,allowRelativePaths:x=!1}={}){y(this,h,!0),this._rules=new W(K),this._strictPathCheck=!x,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(N){return this._rules.add(N)&&this._initCache(),this}addPattern(N){return this.add(N)}_test(N,K,x,R){let q=N&&Z.convert(N);return Z(q,N,this._strictPathCheck?V:v),this._t(q,K,x,R)}checkIgnore(N){if(!m.test(N))return this.test(N);let K=N.split(d).filter(Boolean);if(K.pop(),K.length){let x=this._t(K.join(d)+d,this._testCache,!0,K);if(x.ignored)return x}return this._rules.test(N,!1,w)}_t(N,K,x,R){if(N in K)return K[N];if(R||(R=N.split(d).filter(Boolean)),R.pop(),!R.length)return K[N]=this._rules.test(N,x,F);let q=this._t(R.join(d)+d,K,x,R);return K[N]=q.ignored?q:this._rules.test(N,x,F)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return n(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}},B=N=>new Y(N),se=N=>Z(N&&Z.convert(N),N,v);if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let N=x=>/^\\\\\?\\/.test(x)||/["<>|\u0000-\u001F]+/u.test(x)?x:x.replace(/\\/g,"/");Z.convert=N;let K=/^[a-z]:\//i;Z.isNotRelative=x=>K.test(x)||z(x)}t.exports=B,B.default=B,t.exports.isPathValid=se}}),aA=G({"node_modules/n-readlines/readlines.js"(e,t){"use strict";var n=Ee("fs"),i=class{constructor(r,o){o=o||{},o.readChunk||(o.readChunk=1024),o.newLineCharacter?o.newLineCharacter=o.newLineCharacter.charCodeAt(0):o.newLineCharacter=10,typeof r=="number"?this.fd=r:this.fd=n.openSync(r,"r"),this.options=o,this.newLineCharacter=o.newLineCharacter,this.reset()}_searchInBuffer(r,o){let u=-1;for(let a=0;a<=r.length;a++)if(r[a]===o){u=a;break}return u}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){n.closeSync(this.fd),this.fd=null}_extractLines(r){let o,u=[],a=0,s=0;for(;;){let l=r[a++];if(l===this.newLineCharacter)o=r.slice(s,a),u.push(o),s=a;else if(l===void 0)break}let c=r.slice(s,a);return c.length&&u.push(c),u}_readChunk(r){let o=0,u,a=[];do{let c=Buffer.alloc(this.options.readChunk);u=n.readSync(this.fd,c,0,this.options.readChunk,this.fdPosition),o=o+u,this.fdPosition=this.fdPosition+u,a.push(c)}while(u&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);let s=Buffer.concat(a);return u<this.options.readChunk&&(this.eofReached=!0,s=s.slice(0,o)),o&&(this.linesCache=this._extractLines(s),r&&(this.linesCache[0]=Buffer.concat([r,this.linesCache[0]]))),o}next(){if(!this.fd)return!1;let r=!1;if(this.eofReached&&this.linesCache.length===0)return r;let o;return this.linesCache.length||(o=this._readChunk()),this.linesCache.length&&(r=this.linesCache.shift(),r[r.length-1]!==this.newLineCharacter&&(o=this._readChunk(r),o&&(r=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),r&&r[r.length-1]===this.newLineCharacter&&(r=r.slice(0,r.length-1)),r}};t.exports=i}}),sA={};Po(sA,{__debug:()=>eP,__internal:()=>Q6,check:()=>Y6,clearConfigCache:()=>J6,doc:()=>od,format:()=>Za,formatWithCursor:()=>Kv,getFileInfo:()=>Pp,getSupportInfo:()=>X6,resolveConfig:()=>gv,resolveConfigFile:()=>Tk,util:()=>Wv,version:()=>b6});function jt(){}jt.prototype={diff:function(t,n){var i,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.callback;typeof r=="function"&&(o=r,r={});var u=this;function a(C){return C=u.postProcess(C,r),o?(setTimeout(function(){o(C)},0),!0):C}t=this.castInput(t,r),n=this.castInput(n,r),t=this.removeEmpty(this.tokenize(t,r)),n=this.removeEmpty(this.tokenize(n,r));var s=n.length,c=t.length,l=1,f=s+c;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));var p=(i=r.timeout)!==null&&i!==void 0?i:1/0,m=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(d[0],n,t,0,r);if(d[0].oldPos+1>=c&&D+1>=s)return a(Mh(u,d[0].lastComponent,n,t,u.useLongestToken));var h=-1/0,y=1/0;function g(){for(var C=Math.max(h,-l);C<=Math.min(y,l);C+=2){var _=void 0,b=d[C-1],k=d[C+1];b&&(d[C-1]=void 0);var F=!1;if(k){var w=k.oldPos-C;F=k&&0<=w&&w<s}var T=b&&b.oldPos+1<c;if(!F&&!T){d[C]=void 0;continue}if(!T||F&&b.oldPos<k.oldPos?_=u.addToPath(k,!0,!1,0,r):_=u.addToPath(b,!1,!0,1,r),D=u.extractCommon(_,n,t,C,r),_.oldPos+1>=c&&D+1>=s)return a(Mh(u,_.lastComponent,n,t,u.useLongestToken));d[C]=_,_.oldPos+1>=c&&(y=Math.min(y,C-1)),D+1>=s&&(h=Math.max(h,C+1))}l++}if(o)(function C(){setTimeout(function(){if(l>f||Date.now()>m)return o();g()||C()},0)})();else for(;l<=f&&Date.now()<=m;){var v=g();if(v)return v}},addToPath:function(t,n,i,r,o){var u=t.lastComponent;return u&&!o.oneChangePerToken&&u.added===n&&u.removed===i?{oldPos:t.oldPos+r,lastComponent:{count:u.count+1,added:n,removed:i,previousComponent:u.previousComponent}}:{oldPos:t.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:u}}},extractCommon:function(t,n,i,r,o){for(var u=n.length,a=i.length,s=t.oldPos,c=s-r,l=0;c+1<u&&s+1<a&&this.equals(i[s+1],n[c+1],o);)c++,s++,l++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return l&&!o.oneChangePerToken&&(t.lastComponent={count:l,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=s,c},equals:function(t,n,i){return i.comparator?i.comparator(t,n):t===n||i.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n},castInput:function(t){return t},tokenize:function(t){return Array.from(t)},join:function(t){return t.join("")},postProcess:function(t){return t}};function Mh(e,t,n,i,r){for(var o=[],u;t;)o.push(t),u=t.previousComponent,delete t.previousComponent,t=u;o.reverse();for(var a=0,s=o.length,c=0,l=0;a<s;a++){var f=o[a];if(f.removed)f.value=e.join(i.slice(l,l+f.count)),l+=f.count;else{if(!f.added&&r){var p=n.slice(c,c+f.count);p=p.map(function(m,d){var D=i[l+d];return D.length>m.length?D:m}),f.value=e.join(p)}else f.value=e.join(n.slice(c,c+f.count));c+=f.count,f.added||(l+=f.count)}}return o}var AT=new jt;function Vh(e,t){var n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Zh(e,t){var n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Cd(e,t,n){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return n+e.slice(t.length)}function bd(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+n}function go(e,t){return Cd(e,t,"")}function oa(e,t){return bd(e,t,"")}function Gh(e,t){return t.slice(0,cA(e,t))}function cA(e,t){var n=0;e.length>t.length&&(n=e.length-t.length);var i=t.length;e.length<t.length&&(i=e.length);var r=Array(i),o=0;r[0]=0;for(var u=1;u<i;u++){for(t[u]==t[o]?r[u]=r[o]:r[u]=o;o>0&&t[u]!=t[o];)o=r[o];t[u]==t[o]&&o++}o=0;for(var a=n;a<e.length;a++){for(;o>0&&e[a]!=t[o];)o=r[o];e[a]==t[o]&&o++}return o}var Ea="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",lA=new RegExp("[".concat(Ea,"]+|\\s+|[^").concat(Ea,"]"),"ug"),Ra=new jt;Ra.equals=function(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()};Ra.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(t.intlSegmenter.segment(e),function(o){return o.segment})}else n=e.match(lA)||[];var i=[],r=null;return n.forEach(function(o){/\s/.test(o)?r==null?i.push(o):i.push(i.pop()+o):/\s/.test(r)?i[i.length-1]==r?i.push(i.pop()+o):i.push(r+o):i.push(o),r=o}),i};Ra.join=function(e){return e.map(function(t,n){return n==0?t:t.replace(/^\s+/,"")}).join("")};Ra.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var n=null,i=null,r=null;return e.forEach(function(o){o.added?i=o:o.removed?r=o:((i||r)&&Wh(n,r,i,o),n=o,i=null,r=null)}),(i||r)&&Wh(n,r,i,null),e};function Wh(e,t,n,i){if(t&&n){var r=t.value.match(/^\s*/)[0],o=t.value.match(/\s*$/)[0],u=n.value.match(/^\s*/)[0],a=n.value.match(/\s*$/)[0];if(e){var s=Vh(r,u);e.value=bd(e.value,u,s),t.value=go(t.value,s),n.value=go(n.value,s)}if(i){var c=Zh(o,a);i.value=Cd(i.value,a,c),t.value=oa(t.value,c),n.value=oa(n.value,c)}}else if(n)e&&(n.value=n.value.replace(/^\s*/,"")),i&&(i.value=i.value.replace(/^\s*/,""));else if(e&&i){var l=i.value.match(/^\s*/)[0],f=t.value.match(/^\s*/)[0],p=t.value.match(/\s*$/)[0],m=Vh(l,f);t.value=go(t.value,m);var d=Zh(go(l,m),p);t.value=oa(t.value,d),i.value=Cd(i.value,l,d),e.value=bd(e.value,l,l.slice(0,l.length-d.length))}else if(i){var D=i.value.match(/^\s*/)[0],h=t.value.match(/\s*$/)[0],y=Gh(h,D);t.value=oa(t.value,y)}else if(e){var g=e.value.match(/\s*$/)[0],v=t.value.match(/^\s*/)[0],C=Gh(g,v);t.value=go(t.value,C)}}var fA=new jt;fA.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(Ea,"]+|[^\\S\\n\\r]+|[^").concat(Ea,"]"),"ug");return e.match(t)||[]};var ja=new jt;ja.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
66
|
+
`));var n=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(var r=0;r<i.length;r++){var o=i[r];r%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n};ja.equals=function(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
67
67
|
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
68
68
|
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
69
69
|
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
70
|
-
`)&&(t=t.slice(0,-1))),jt.prototype.equals.call(this,e,t,n)};function
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
72
|
-
`)?b.lines[k]=b.lines[k].slice(0,-1):(b.lines.splice(k+1,0,"\"),k++);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:o,hunks:
|
|
70
|
+
`)&&(t=t.slice(0,-1))),jt.prototype.equals.call(this,e,t,n)};function Kh(e,t,n){return ja.diff(e,t,n)}var dA=new jt;dA.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var pA=new jt;pA.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(n),!0).forEach(function(i){hA(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function mA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DA(e){var t=mA(e,"string");return typeof t=="symbol"?t:t+""}function Ad(e){"@babel/helpers - typeof";return Ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ad(e)}function hA(e,t,n){return t=DA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ud(e){return gA(e)||vA(e)||yA(e)||_A()}function gA(e){if(Array.isArray(e))return wd(e)}function vA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yA(e,t){if(e){if(typeof e=="string")return wd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wd(e,t)}}function wd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
71
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $o=new jt;$o.useLongestToken=!0;$o.tokenize=ja.tokenize;$o.castInput=function(e,t){var n=t.undefinedReplacement,i=t.stringifyReplacer,r=i===void 0?function(o,u){return typeof u>"u"?n:u}:i;return typeof e=="string"?e:JSON.stringify(Sd(e,null,null,r),r," ")};$o.equals=function(e,t,n){return jt.prototype.equals.call($o,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)};function Sd(e,t,n,i,r){t=t||[],n=n||[],i&&(e=i(r,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(Object.prototype.toString.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=Sd(e[o],t,n,i,r);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ad(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var a=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&a.push(s);for(a.sort(),o=0;o<a.length;o+=1)s=a[o],u[s]=Sd(e[s],t,n,i,s);t.pop(),n.pop()}else u=e;return u}var Ca=new jt;Ca.tokenize=function(e){return e.slice()};Ca.join=Ca.removeEmpty=function(e){return e};function EA(e,t,n){return Ca.diff(e,t,n)}function qh(e,t,n,i,r,o,u){if(u||(u={}),typeof u=="function"&&(u={callback:u}),typeof u.context>"u"&&(u.context=4),u.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(u.callback){var a=u,s=a.callback;Kh(n,i,Fa(Fa({},u),{},{callback:function(f){var p=c(f);s(p)}}))}else return c(Kh(n,i,u));function c(l){if(!l)return;l.push({value:"",lines:[]});function f(F){return F.map(function(w){return" "+w})}for(var p=[],m=0,d=0,D=[],h=1,y=1,g=function(){var w=l[v],T=w.lines||CA(w.value);if(w.lines=T,w.added||w.removed){var $;if(!m){var P=l[v-1];m=h,d=y,P&&(D=u.context>0?f(P.lines.slice(-u.context)):[],m-=D.length,d-=D.length)}($=D).push.apply($,ud(T.map(function(j){return(w.added?"+":"-")+j}))),w.added?y+=T.length:h+=T.length}else{if(m)if(T.length<=u.context*2&&v<l.length-2){var E;(E=D).push.apply(E,ud(f(T)))}else{var A,S=Math.min(T.length,u.context);(A=D).push.apply(A,ud(f(T.slice(0,S))));var I={oldStart:m,oldLines:h-m+S,newStart:d,newLines:y-d+S,lines:D};p.push(I),m=0,d=0,D=[]}h+=T.length,y+=T.length}},v=0;v<l.length;v++)g();for(var C=0,_=p;C<_.length;C++)for(var b=_[C],k=0;k<b.lines.length;k++)b.lines[k].endsWith(`
|
|
72
|
+
`)?b.lines[k]=b.lines[k].slice(0,-1):(b.lines.splice(k+1,0,"\"),k++);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:o,hunks:p}}}function $d(e){if(Array.isArray(e))return e.map($d).join(`
|
|
73
73
|
`);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var n=0;n<e.hunks.length;n++){var i=e.hunks[n];i.oldLines===0&&(i.oldStart-=1),i.newLines===0&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),t.push.apply(t,i.lines)}return t.join(`
|
|
74
74
|
`)+`
|
|
75
|
-
`}function
|
|
75
|
+
`}function FA(e,t,n,i,r,o,u){var a;if(typeof u=="function"&&(u={callback:u}),(a=u)!==null&&a!==void 0&&a.callback){var c=u,l=c.callback;qh(e,t,n,i,r,o,Fa(Fa({},u),{},{callback:function(p){p?l($d(p)):l()}}))}else{var s=qh(e,t,n,i,r,o,u);return s?$d(s):void 0}}function CA(e){var t=e.endsWith(`
|
|
76
76
|
`),n=e.split(`
|
|
77
77
|
`).map(function(i){return i+`
|
|
78
|
-
`});return t?n.pop():n.push(n.pop().slice(0,-1)),n}var
|
|
78
|
+
`});return t?n.pop():n.push(n.pop().slice(0,-1)),n}var bA=Gr(R1(),1),_n={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>_n.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${_n.key(n)}: ${_n.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>_n.value({[e]:t})},ad=10,Yh=(e=0)=>t=>`\x1B[${t+e}m`,Jh=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Xh=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,Ie={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},wT=Object.keys(Ie.modifier),AA=Object.keys(Ie.color),wA=Object.keys(Ie.bgColor),ST=[...AA,...wA];function SA(){let e=new Map;for(let[t,n]of Object.entries(Ie)){for(let[i,r]of Object.entries(n))Ie[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=Ie[i],e.set(r[0],r[1]);Object.defineProperty(Ie,t,{value:n,enumerable:!1})}return Object.defineProperty(Ie,"codes",{value:e,enumerable:!1}),Ie.color.close="\x1B[39m",Ie.bgColor.close="\x1B[49m",Ie.color.ansi=Yh(),Ie.color.ansi256=Jh(),Ie.color.ansi16m=Xh(),Ie.bgColor.ansi=Yh(ad),Ie.bgColor.ansi256=Jh(ad),Ie.bgColor.ansi16m=Xh(ad),Object.defineProperties(Ie,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));let r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>Ie.rgbToAnsi256(...Ie.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,i=Math.floor(a/6)/5,r=a%6/5}let o=Math.max(n,i,r)*2;if(o===0)return 30;let u=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(u+=60),u},enumerable:!1},rgbToAnsi:{value:(t,n,i)=>Ie.ansi256ToAnsi(Ie.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>Ie.ansi256ToAnsi(Ie.hexToAnsi256(t)),enumerable:!1}}),Ie}var $A=SA(),Yt=$A;function St(e,t=globalThis.Deno?globalThis.Deno.args:ip.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(n+e),r=t.indexOf("--");return i!==-1&&(r===-1||i<r)}var{env:je}=ip,ba;St("no-color")||St("no-colors")||St("color=false")||St("color=never")?ba=0:(St("color")||St("colors")||St("color=true")||St("color=always"))&&(ba=1);function IA(){if("FORCE_COLOR"in je)return je.FORCE_COLOR==="true"?1:je.FORCE_COLOR==="false"?0:je.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(je.FORCE_COLOR,10),3)}function xA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function PA(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=IA();i!==void 0&&(ba=i);let r=n?ba:i;if(r===0)return 0;if(n){if(St("color=16m")||St("color=full")||St("color=truecolor"))return 3;if(St("color=256"))return 2}if("TF_BUILD"in je&&"AGENT_NAME"in je)return 1;if(e&&!t&&r===void 0)return 0;let o=r||0;if(je.TERM==="dumb")return o;if(ip.platform==="win32"){let u=kA.release().split(".");return Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in je)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(u=>u in je)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(u=>u in je)||je.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in je)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(je.TEAMCITY_VERSION)?1:0;if(je.COLORTERM==="truecolor"||je.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in je){let u=Number.parseInt((je.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(je.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(je.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(je.TERM)||"COLORTERM"in je?1:o}function eg(e,t={}){let n=PA(e,{streamIsTTY:e&&e.isTTY,...t});return xA(n)}var OA={stdout:eg({isTTY:Qh.isatty(1)}),stderr:eg({isTTY:Qh.isatty(2)})},BA=OA;function TA(e,t,n){let i=e.indexOf(t);if(i===-1)return e;let r=t.length,o=0,u="";do u+=e.slice(o,i)+t+n,o=i+r,i=e.indexOf(t,o);while(i!==-1);return u+=e.slice(o),u}function NA(e,t,n,i){let r=0,o="";do{let u=e[i-1]==="\r";o+=e.slice(r,u?i-1:i)+t+(u?`\r
|
|
79
79
|
`:`
|
|
80
80
|
`)+n,r=i+1,i=e.indexOf(`
|
|
81
|
-
`,r)}while(i!==-1);return o+=e.slice(r),o}var{stdout:
|
|
82
|
-
`);return o!==-1&&(t=
|
|
83
|
-
`)),
|
|
84
|
-
`)),
|
|
85
|
-
`,1)[0].length);return r>t&&r>o?i:n}var ud=[],ng=[];function UA(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let i=e.length,r=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-r);)i--,r--;let o=0;for(;o<i&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(i-=o,r-=o,i===0)return r;let u,a,s,c,l=0,f=0;for(;l<i;)ng[l]=e.charCodeAt(o+l),ud[l]=++l;for(;f<r;)for(u=t.charCodeAt(o+f),s=f++,a=f,l=0;l<i;l++)c=u===ng[l]?s:s+1,s=ud[l],a=ud[l]=s>a?c>a?a+1:c:c>s?s+1:c;return a}var F0=(e,t,{descriptor:n,logger:i,schemas:r})=>{let o=[`Ignored unknown option ${Xt.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(r).sort().find(a=>UA(e,a)<3);u&&o.push(`Did you mean ${Xt.blue(n.key(u))}?`),i.warn(o.join(" "))},MA=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function VA(e,t){let n=new e(t),i=Object.create(n);for(let r of MA)r in t&&(i[r]=ZA(t[r],n,Hr.prototype[r].length));return i}var Hr=class{static create(e){return VA(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return ca}};function ZA(e,t,n){return typeof e=="function"?(...i)=>e(...i.slice(0,n-1),t,...i.slice(n-1)):()=>e}var GA=class extends Hr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},WA=class extends Hr{expected(){return"anything"}validate(){return!0}},KA=class extends Hr{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let i of e){let r=t.normalizeValidateResult(this._valueSchema.validate(i,t),i);r!==!0&&n.push(r.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let i of e){let r=t.normalizeDeprecatedResult(this._valueSchema.deprecated(i,t),i);r!==!1&&n.push(...r.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let i of e){let r=t.normalizeForwardResult(this._valueSchema.forward(i,t),i);n.push(...r.map(ig))}return n}redirect(e,t){let n=[],i=[];for(let r of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(r,t),r);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(ig))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(e,t){return e.concat(t)}};function ig({from:e,to:t}){return{from:[e],to:t}}var HA=class extends Hr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function qA(e,t){let n=Object.create(null);for(let i of e){let r=i[t];if(n[r])throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n[r]=i}return n}function YA(e,t){let n=new Map;for(let i of e){let r=i[t];if(n.has(r))throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n.set(r,i)}return n}function JA(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function XA(e,t){let n=[],i=[];for(let r of e)t(r)?n.push(r):i.push(r);return[n,i]}function QA(e){return e===Math.floor(e)}function ew(e,t){if(e===t)return 0;let n=typeof e,i=typeof t,r=["undefined","object","boolean","number","string"];return n!==i?r.indexOf(n)-r.indexOf(i):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function tw(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function og(e){return e===void 0?{}:e}function C0(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return rw((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(C0)}}:{text:t}}function ug(e,t){return e===!0?!0:e===!1?{value:t}:e}function ag(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function sg(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Id(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>sg(n,t)):[sg(e,t)]}function cg(e,t){let n=Id(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function rw(e,t){if(!e)throw new Error(t)}var b0=class extends Hr{constructor(e){super(e),this._choices=YA(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(ew).map(e.value),n=t.slice(0,-2),i=t.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},nw=class extends Hr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},iw=class extends nw{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&QA(e)}},lg=class extends Hr{expected(){return"a string"}validate(e){return typeof e=="string"}},ow=_n,uw=F0,aw=zA,sw=LA,cw=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:i=80,descriptor:r=ow,unknown:o=uw,invalid:u=aw,deprecated:a=sw,missing:s=()=>!1,required:c=()=>!1,preprocess:l=d=>d,postprocess:f=()=>ca}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:qA(e,"name"),normalizeDefaultResult:og,normalizeExpectedResult:C0,normalizeDeprecatedResult:ag,normalizeForwardResult:Id,normalizeRedirectResult:cg,normalizeValidateResult:ug},this._unknownHandler=o,this._invalidHandler=tw(u),this._deprecatedHandler=a,this._identifyMissing=(d,p)=>!(d in p)||s(d,p),this._identifyRequired=c,this._preprocess=l,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=JA()}normalize(e){let t={},i=[this._preprocess(e,this._utils)],r=()=>{for(;i.length!==0;){let o=i.shift(),u=this._applyNormalization(o,t);i.push(...u)}};r();for(let o of Object.keys(this._utils.schemas)){let u=this._utils.schemas[o];if(!(o in t)){let a=og(u.default(this._utils));"value"in a&&i.push({[o]:a.value})}}r();for(let o of Object.keys(this._utils.schemas)){if(!(o in t))continue;let u=this._utils.schemas[o],a=t[o],s=u.postprocess(a,this._utils);s!==ca&&(this._applyValidation(s,o,u),t[o]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:i,unknownKeys:r}=this._partitionOptionKeys(e);for(let o of i){let u=this._utils.schemas[o],a=u.preprocess(e[o],this._utils);this._applyValidation(a,o,u);let s=({from:d,to:p})=>{n.push(typeof p=="string"?{[p]:d}:{[p.key]:p.value})},c=({value:d,redirectTo:p})=>{let m=ag(u.deprecated(d,this._utils),a,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,p,this._utils));else for(let{value:D}of m){let h={key:o,value:D};if(!this._hasDeprecationWarned(h)){let _=typeof p=="string"?{key:p,value:D}:p;this._utils.logger.warn(this._deprecatedHandler(h,_,this._utils))}}};Id(u.forward(a,this._utils),a).forEach(s);let f=cg(u.redirect(a,this._utils),a);if(f.redirect.forEach(s),"remain"in f){let d=f.remain;t[o]=o in t?u.overlap(t[o],d,this._utils):d,c({value:d})}for(let{from:d,to:p}of f.redirect)c({value:d,redirectTo:p})}for(let o of r){let u=e[o];this._applyUnknownHandler(o,u,t,(a,s)=>{n.push({[a]:s})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,y0,this._utils)}_partitionOptionKeys(e){let[t,n]=XA(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let i=ug(n.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(t,i.value,this._utils)}_applyUnknownHandler(e,t,n,i){let r=this._unknownHandler(e,t,this._utils);if(r)for(let o of Object.keys(r)){if(this._identifyMissing(o,r))continue;let u=r[o];o in this._utils.schemas?i(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ca){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(t.override);for(let r of n){let o=t.override[r];this._applyValidation(o,r,this._utils.schemas[r]),e[r]=o}for(let r of i){let o=t.override[r];this._applyUnknownHandler(r,o,e,(u,a)=>{let s=this._utils.schemas[u];this._applyValidation(a,u,s),e[u]=a})}}}}},A0={};ko(A0,{ArgExpansionBailout:()=>lw,ConfigError:()=>np,UndefinedParserError:()=>xd});var np=class extends Error{name="ConfigError"},xd=class extends Error{name="UndefinedParserError"},lw=class extends Error{name="ArgExpansionBailout"},fg=Wr(c0(),1),dw="file:",pw=e=>e instanceof URL,w0=e=>typeof e=="string"&&e.startsWith(dw),S0=e=>pw(e)||w0(e),Di=e=>S0(e)?fw(e):e;function mw(e,t){let n=[[],[]];for(let i of e)n[t(i)?0:1].push(i);return n}var Dw=mw,hw=Wr(H1(),1);async function gw(e,t){let n=t?.allowSymlinks??!0,i;try{i=await(n?dg.stat:dg.lstat)(Di(e))}catch{return!1}return i.isDirectory()}var vw=gw,pg=e=>hi.resolve(Di(e));function*_w(e,t){e=pg(e);let{root:n}=hi.parse(e);if(t=t?pg(t):n,!(e!==t&&!e.startsWith(t))){for(let i=e;i!==t;i=hi.dirname(i))yield i;yield t}}var Ew=_w,ba,Aa,la,_o,Pd,I0,Fw=class{constructor({names:e,filter:t,stopDirectory:n}){Jt(this,Pd),Jt(this,ba),Jt(this,Aa),Jt(this,la),Jt(this,_o,new Map),vt(this,ba,e),vt(this,Aa,t),vt(this,la,n)}async search(e,{shouldCache:t}){let n=xe(this,_o);if(t&&n.has(e))return n.get(e);let i=[],r;for(let o of Ew(e,xe(this,la)))if(i.push(o),r=await ti(this,Pd,I0).call(this,o,t),r)break;for(let o of i)n.set(o,r);return r}clearCache(){xe(this,_o).clear()}};ba=new WeakMap;Aa=new WeakMap;la=new WeakMap;_o=new WeakMap;Pd=new WeakSet;I0=async function(e,t){let n=xe(this,_o);if(t&&n.has(e))return n.get(e);for(let i of xe(this,ba)){let r=yw.join(e,i);if(await xe(this,Aa).call(this,{name:i,path:r}))return r}};var x0=Fw,Cw=[".git",".hg"],Eo,bw={names:Cw,filter:({path:e})=>vw(e,{allowSymlinks:!1})};async function Aw(e,t){Eo??(Eo=new x0(bw));let n=await Eo.search(e,t);return n?k0.dirname(n):void 0}function ww(){Eo?.clearCache()}function Sw(e){let t={},n=Object.keys(e);for(let i=0;i<n.length;i++){let r=n[i];e[r]!=="unset"&&(t[r]=e[r])}return t}function $w(e){if(!e||(e=Sw(e),Object.keys(e).length===0))return null;let t={};return e.indent_style&&(t.useTabs=e.indent_style==="tab"),e.indent_size==="tab"&&(t.useTabs=!0),t.useTabs&&e.tab_width?t.tabWidth=e.tab_width:e.indent_style==="space"&&e.indent_size&&e.indent_size!=="tab"?t.tabWidth=e.indent_size:e.tab_width!==void 0&&(t.tabWidth=e.tab_width),e.max_line_length&&(e.max_line_length==="off"?t.printWidth=Number.POSITIVE_INFINITY:t.printWidth=e.max_line_length),e.quote_type==="single"?t.singleQuote=!0:e.quote_type==="double"&&(t.singleQuote=!1),["cr","crlf","lf"].includes(e.end_of_line)&&(t.endOfLine=e.end_of_line),t}var kw=$w,fa=new Map;function Iw(){ww(),fa.clear()}async function xw(e,{shouldCache:t}){let n=$0.dirname(e),i=await Aw(n,{shouldCache:t}),r=await hw.default.parse(e,{root:i});return kw(r)}function Pw(e,{shouldCache:t}){return e=$0.resolve(e),(!t||!fa.has(e))&&fa.set(e,xw(e,{shouldCache:t})),fa.get(e)}var Ow=Wr(Y1(),1),{stdin:Fo}=process;async function P0(){let e="";if(Fo.isTTY)return e;Fo.setEncoding("utf8");for await(let t of Fo)e+=t;return e}P0.buffer=async()=>{let e=[],t=0;if(Fo.isTTY)return Buffer.concat([]);for await(let n of Fo)e.push(n),t+=n.length;return Buffer.concat(e,t)};function Tw(e,t){return Bw.writeFile(e,t)}var Nw={getPrettierConfigSearchStopDirectory:()=>{},getStdin:P0,isCI:()=>Ow.isCI,writeFormattedFile:Tw},op=Nw;async function Rw(e,t){let n=t?.allowSymlinks??!0,i;try{i=await(n?mg.stat:mg.lstat)(Di(e))}catch{return!1}return i.isFile()}var jw=Rw;function O0(e){return typeof e>"u"||e===null}function zw(e){return typeof e=="object"&&e!==null}function Uw(e){return Array.isArray(e)?e:O0(e)?[]:[e]}function Mw(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function Vw(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function Zw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Gw=O0,Ww=zw,Kw=Uw,Hw=Vw,qw=Zw,Yw=Mw,st={isNothing:Gw,isObject:Ww,toArray:Kw,repeat:Hw,isNegativeZero:qw,extend:Yw};function B0(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
81
|
+
`,r)}while(i!==-1);return o+=e.slice(r),o}var{stdout:tg,stderr:rg}=BA,kd=Symbol("GENERATOR"),fi=Symbol("STYLER"),ko=Symbol("IS_EMPTY"),ng=["ansi","ansi","ansi256","ansi16m"],di=Object.create(null),RA=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=tg?tg.level:0;e.level=t.level===void 0?n:t.level},jA=e=>{let t=(...n)=>n.join(" ");return RA(t,e),Object.setPrototypeOf(t,Oo.prototype),t};function Oo(e){return jA(e)}Object.setPrototypeOf(Oo.prototype,Function.prototype);for(let[e,t]of Object.entries(Yt))di[e]={get(){let n=Aa(this,xd(t.open,t.close,this[fi]),this[ko]);return Object.defineProperty(this,e,{value:n}),n}};di.visible={get(){let e=Aa(this,this[fi],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Id=(e,t,n,...i)=>e==="rgb"?t==="ansi16m"?Yt[n].ansi16m(...i):t==="ansi256"?Yt[n].ansi256(Yt.rgbToAnsi256(...i)):Yt[n].ansi(Yt.rgbToAnsi(...i)):e==="hex"?Id("rgb",t,n,...Yt.hexToRgb(...i)):Yt[n][e](...i),LA=["rgb","hex","ansi256"];for(let e of LA){di[e]={get(){let{level:n}=this;return function(...i){let r=xd(Id(e,ng[n],"color",...i),Yt.color.close,this[fi]);return Aa(this,r,this[ko])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);di[t]={get(){let{level:n}=this;return function(...i){let r=xd(Id(e,ng[n],"bgColor",...i),Yt.bgColor.close,this[fi]);return Aa(this,r,this[ko])}}}}var zA=Object.defineProperties(()=>{},{...di,level:{enumerable:!0,get(){return this[kd].level},set(e){this[kd].level=e}}}),xd=(e,t,n)=>{let i,r;return n===void 0?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},Aa=(e,t,n)=>{let i=(...r)=>UA(i,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(i,zA),i[kd]=e,i[fi]=t,i[ko]=n,i},UA=(e,t)=>{if(e.level<=0||!t)return e[ko]?"":t;let n=e[fi];if(n===void 0)return t;let{openAll:i,closeAll:r}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=TA(t,n.close,n.open),n=n.parent;let o=t.indexOf(`
|
|
82
|
+
`);return o!==-1&&(t=NA(t,r,i,o)),i+t+r};Object.defineProperties(Oo.prototype,di);var MA=Oo(),xT=Oo({level:rg?rg.level:0}),Xt=MA,VA=(e,t,{descriptor:n})=>{let i=[`${Xt.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&i.push(`we now treat it as ${Xt.blue(typeof t=="string"?n.key(t):n.pair(t))}`),i.join("; ")+"."},F0=Symbol.for("vnopts.VALUE_NOT_EXIST"),fa=Symbol.for("vnopts.VALUE_UNCHANGED"),ig=" ".repeat(2),ZA=(e,t,n)=>{let{text:i,list:r}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return i&&o.push(og(e,t,i,n.descriptor)),r&&o.push([og(e,t,r.title,n.descriptor)].concat(r.values.map(u=>C0(u,n.loggerPrintWidth))).join(`
|
|
83
|
+
`)),b0(o,n.loggerPrintWidth)};function og(e,t,n,i){return[`Invalid ${Xt.red(i.key(e))} value.`,`Expected ${Xt.blue(n)},`,`but received ${t===F0?Xt.gray("nothing"):Xt.red(i.value(t))}.`].join(" ")}function C0({text:e,list:t},n){let i=[];return e&&i.push(`- ${Xt.blue(e)}`),t&&i.push([`- ${Xt.blue(t.title)}:`].concat(t.values.map(r=>C0(r,n-ig.length).replace(/^|\n/g,`$&${ig}`))).join(`
|
|
84
|
+
`)),b0(i,n)}function b0(e,t){if(e.length===1)return e[0];let[n,i]=e,[r,o]=e.map(u=>u.split(`
|
|
85
|
+
`,1)[0].length);return r>t&&r>o?i:n}var sd=[],ug=[];function GA(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let i=e.length,r=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-r);)i--,r--;let o=0;for(;o<i&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(i-=o,r-=o,i===0)return r;let u,a,s,c,l=0,f=0;for(;l<i;)ug[l]=e.charCodeAt(o+l),sd[l]=++l;for(;f<r;)for(u=t.charCodeAt(o+f),s=f++,a=f,l=0;l<i;l++)c=u===ug[l]?s:s+1,s=sd[l],a=sd[l]=s>a?c>a?a+1:c:c>s?s+1:c;return a}var A0=(e,t,{descriptor:n,logger:i,schemas:r})=>{let o=[`Ignored unknown option ${Xt.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(r).sort().find(a=>GA(e,a)<3);u&&o.push(`Did you mean ${Xt.blue(n.key(u))}?`),i.warn(o.join(" "))},WA=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function KA(e,t){let n=new e(t),i=Object.create(n);for(let r of WA)r in t&&(i[r]=HA(t[r],n,Kr.prototype[r].length));return i}var Kr=class{static create(e){return KA(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return fa}};function HA(e,t,n){return typeof e=="function"?(...i)=>e(...i.slice(0,n-1),t,...i.slice(n-1)):()=>e}var qA=class extends Kr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},YA=class extends Kr{expected(){return"anything"}validate(){return!0}},JA=class extends Kr{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let i of e){let r=t.normalizeValidateResult(this._valueSchema.validate(i,t),i);r!==!0&&n.push(r.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let i of e){let r=t.normalizeDeprecatedResult(this._valueSchema.deprecated(i,t),i);r!==!1&&n.push(...r.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let i of e){let r=t.normalizeForwardResult(this._valueSchema.forward(i,t),i);n.push(...r.map(ag))}return n}redirect(e,t){let n=[],i=[];for(let r of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(r,t),r);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(ag))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(e,t){return e.concat(t)}};function ag({from:e,to:t}){return{from:[e],to:t}}var XA=class extends Kr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function QA(e,t){let n=Object.create(null);for(let i of e){let r=i[t];if(n[r])throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n[r]=i}return n}function ew(e,t){let n=new Map;for(let i of e){let r=i[t];if(n.has(r))throw new Error(`Duplicate ${t} ${JSON.stringify(r)}`);n.set(r,i)}return n}function tw(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function rw(e,t){let n=[],i=[];for(let r of e)t(r)?n.push(r):i.push(r);return[n,i]}function nw(e){return e===Math.floor(e)}function iw(e,t){if(e===t)return 0;let n=typeof e,i=typeof t,r=["undefined","object","boolean","number","string"];return n!==i?r.indexOf(n)-r.indexOf(i):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function ow(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function sg(e){return e===void 0?{}:e}function w0(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return uw((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(w0)}}:{text:t}}function cg(e,t){return e===!0?!0:e===!1?{value:t}:e}function lg(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fg(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Pd(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>fg(n,t)):[fg(e,t)]}function dg(e,t){let n=Pd(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function uw(e,t){if(!e)throw new Error(t)}var S0=class extends Kr{constructor(e){super(e),this._choices=ew(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(iw).map(e.value),n=t.slice(0,-2),i=t.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},aw=class extends Kr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},sw=class extends aw{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&nw(e)}},pg=class extends Kr{expected(){return"a string"}validate(e){return typeof e=="string"}},cw=_n,lw=A0,fw=ZA,dw=VA,pw=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:i=80,descriptor:r=cw,unknown:o=lw,invalid:u=fw,deprecated:a=dw,missing:s=()=>!1,required:c=()=>!1,preprocess:l=p=>p,postprocess:f=()=>fa}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:QA(e,"name"),normalizeDefaultResult:sg,normalizeExpectedResult:w0,normalizeDeprecatedResult:lg,normalizeForwardResult:Pd,normalizeRedirectResult:dg,normalizeValidateResult:cg},this._unknownHandler=o,this._invalidHandler=ow(u),this._deprecatedHandler=a,this._identifyMissing=(p,m)=>!(p in m)||s(p,m),this._identifyRequired=c,this._preprocess=l,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=tw()}normalize(e){let t={},i=[this._preprocess(e,this._utils)],r=()=>{for(;i.length!==0;){let o=i.shift(),u=this._applyNormalization(o,t);i.push(...u)}};r();for(let o of Object.keys(this._utils.schemas)){let u=this._utils.schemas[o];if(!(o in t)){let a=sg(u.default(this._utils));"value"in a&&i.push({[o]:a.value})}}r();for(let o of Object.keys(this._utils.schemas)){if(!(o in t))continue;let u=this._utils.schemas[o],a=t[o],s=u.postprocess(a,this._utils);s!==fa&&(this._applyValidation(s,o,u),t[o]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:i,unknownKeys:r}=this._partitionOptionKeys(e);for(let o of i){let u=this._utils.schemas[o],a=u.preprocess(e[o],this._utils);this._applyValidation(a,o,u);let s=({from:p,to:m})=>{n.push(typeof m=="string"?{[m]:p}:{[m.key]:m.value})},c=({value:p,redirectTo:m})=>{let d=lg(u.deprecated(p,this._utils),a,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,m,this._utils));else for(let{value:D}of d){let h={key:o,value:D};if(!this._hasDeprecationWarned(h)){let y=typeof m=="string"?{key:m,value:D}:m;this._utils.logger.warn(this._deprecatedHandler(h,y,this._utils))}}};Pd(u.forward(a,this._utils),a).forEach(s);let f=dg(u.redirect(a,this._utils),a);if(f.redirect.forEach(s),"remain"in f){let p=f.remain;t[o]=o in t?u.overlap(t[o],p,this._utils):p,c({value:p})}for(let{from:p,to:m}of f.redirect)c({value:p,redirectTo:m})}for(let o of r){let u=e[o];this._applyUnknownHandler(o,u,t,(a,s)=>{n.push({[a]:s})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,F0,this._utils)}_partitionOptionKeys(e){let[t,n]=rw(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let i=cg(n.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(t,i.value,this._utils)}_applyUnknownHandler(e,t,n,i){let r=this._unknownHandler(e,t,this._utils);if(r)for(let o of Object.keys(r)){if(this._identifyMissing(o,r))continue;let u=r[o];o in this._utils.schemas?i(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==fa){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(t.override);for(let r of n){let o=t.override[r];this._applyValidation(o,r,this._utils.schemas[r]),e[r]=o}for(let r of i){let o=t.override[r];this._applyUnknownHandler(r,o,e,(u,a)=>{let s=this._utils.schemas[u];this._applyValidation(a,u,s),e[u]=a})}}}}},$0={};Po($0,{ArgExpansionBailout:()=>mw,ConfigError:()=>op,UndefinedParserError:()=>Od});var op=class extends Error{name="ConfigError"},Od=class extends Error{name="UndefinedParserError"},mw=class extends Error{name="ArgExpansionBailout"},mg=Gr(d0(),1),hw="file:",gw=e=>e instanceof URL,k0=e=>typeof e=="string"&&e.startsWith(hw),I0=e=>gw(e)||k0(e),gi=e=>I0(e)?Dw(e):e;function vw(e,t){let n=[[],[]];for(let i of e)n[t(i)?0:1].push(i);return n}var yw=vw,_w=Gr(X1(),1);async function Ew(e,t){let n=t?.allowSymlinks??!0,i;try{i=await(n?Dg.stat:Dg.lstat)(gi(e))}catch{return!1}return i.isDirectory()}var Fw=Ew,hg=e=>vi.resolve(gi(e));function*bw(e,t){e=hg(e);let{root:n}=vi.parse(e);if(t=t?hg(t):n,!(e!==t&&!e.startsWith(t))){for(let i=e;i!==t;i=vi.dirname(i))yield i;yield t}}var Aw=bw,wa,Sa,da,Co,Bd,O0,ww=class{constructor({names:e,filter:t,stopDirectory:n}){Jt(this,Bd),Jt(this,wa),Jt(this,Sa),Jt(this,da),Jt(this,Co,new Map),vt(this,wa,e),vt(this,Sa,t),vt(this,da,n)}async search(e,{shouldCache:t}){let n=xe(this,Co);if(t&&n.has(e))return n.get(e);let i=[],r;for(let o of Aw(e,xe(this,da)))if(i.push(o),r=await ni(this,Bd,O0).call(this,o,t),r)break;for(let o of i)n.set(o,r);return r}clearCache(){xe(this,Co).clear()}};wa=new WeakMap;Sa=new WeakMap;da=new WeakMap;Co=new WeakMap;Bd=new WeakSet;O0=async function(e,t){let n=xe(this,Co);if(t&&n.has(e))return n.get(e);for(let i of xe(this,wa)){let r=Cw.join(e,i);if(await xe(this,Sa).call(this,{name:i,path:r}))return r}};var B0=ww,Sw=[".git",".hg"],bo,$w={names:Sw,filter:({path:e})=>Fw(e,{allowSymlinks:!1})};async function kw(e,t){bo??(bo=new B0($w));let n=await bo.search(e,t);return n?P0.dirname(n):void 0}function Iw(){bo?.clearCache()}function xw(e){let t={},n=Object.keys(e);for(let i=0;i<n.length;i++){let r=n[i];e[r]!=="unset"&&(t[r]=e[r])}return t}function Pw(e){if(!e||(e=xw(e),Object.keys(e).length===0))return null;let t={};return e.indent_style&&(t.useTabs=e.indent_style==="tab"),e.indent_size==="tab"&&(t.useTabs=!0),t.useTabs&&e.tab_width?t.tabWidth=e.tab_width:e.indent_style==="space"&&e.indent_size&&e.indent_size!=="tab"?t.tabWidth=e.indent_size:e.tab_width!==void 0&&(t.tabWidth=e.tab_width),e.max_line_length&&(e.max_line_length==="off"?t.printWidth=Number.POSITIVE_INFINITY:t.printWidth=e.max_line_length),e.quote_type==="single"?t.singleQuote=!0:e.quote_type==="double"&&(t.singleQuote=!1),["cr","crlf","lf"].includes(e.end_of_line)&&(t.endOfLine=e.end_of_line),t}var Ow=Pw,pa=new Map;function Bw(){Iw(),pa.clear()}async function Tw(e,{shouldCache:t}){let n=x0.dirname(e),i=await kw(n,{shouldCache:t}),r=await _w.default.parse(e,{root:i});return Ow(r)}function Nw(e,{shouldCache:t}){return e=x0.resolve(e),(!t||!pa.has(e))&&pa.set(e,Tw(e,{shouldCache:t})),pa.get(e)}var Rw=Gr(eA(),1),{stdin:Ao}=process;async function T0(){let e="";if(Ao.isTTY)return e;Ao.setEncoding("utf8");for await(let t of Ao)e+=t;return e}T0.buffer=async()=>{let e=[],t=0;if(Ao.isTTY)return Buffer.concat([]);for await(let n of Ao)e.push(n),t+=n.length;return Buffer.concat(e,t)};function Lw(e,t){return jw.writeFile(e,t)}var zw={getPrettierConfigSearchStopDirectory:()=>{},getStdin:T0,isCI:()=>Rw.isCI,writeFormattedFile:Lw},ap=zw;async function Uw(e,t){let n=t?.allowSymlinks??!0,i;try{i=await(n?gg.stat:gg.lstat)(gi(e))}catch{return!1}return i.isFile()}var Mw=Uw;function N0(e){return typeof e>"u"||e===null}function Zw(e){return typeof e=="object"&&e!==null}function Gw(e){return Array.isArray(e)?e:N0(e)?[]:[e]}function Ww(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function Kw(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function Hw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var qw=N0,Yw=Zw,Jw=Gw,Xw=Kw,Qw=Hw,eS=Ww,st={isNothing:qw,isObject:Yw,toArray:Jw,repeat:Xw,isNegativeZero:Qw,extend:eS};function R0(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
86
86
|
|
|
87
|
-
`+e.mark.snippet),i+" "+n):i}function
|
|
88
|
-
`+a;for(c=
|
|
87
|
+
`+e.mark.snippet),i+" "+n):i}function Io(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=R0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Io.prototype=Object.create(Error.prototype);Io.prototype.constructor=Io;Io.prototype.toString=function(t){return this.name+": "+R0(this,t)};var mr=Io;function cd(e,t,n,i,r){var o="",u="",a=Math.floor(r/2)-1;return i-t>a&&(o=" ... ",t=i-a+o.length),n-i>a&&(u=" ...",n=i+a-u.length),{str:o+e.slice(t,n).replace(/\t/g,"\u2192")+u,pos:i-t+o.length}}function ld(e,t){return st.repeat(" ",t-e.length)+e}function tS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o,u=-1;o=n.exec(e.buffer);)r.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&u<0&&(u=i.length-2);u<0&&(u=i.length-1);var a="",s,c,l=Math.min(e.line+t.linesAfter,r.length).toString().length,f=t.maxLength-(t.indent+l+3);for(s=1;s<=t.linesBefore&&!(u-s<0);s++)c=cd(e.buffer,i[u-s],r[u-s],e.position-(i[u]-i[u-s]),f),a=st.repeat(" ",t.indent)+ld((e.line-s+1).toString(),l)+" | "+c.str+`
|
|
88
|
+
`+a;for(c=cd(e.buffer,i[u],r[u],e.position,f),a+=st.repeat(" ",t.indent)+ld((e.line+1).toString(),l)+" | "+c.str+`
|
|
89
89
|
`,a+=st.repeat("-",t.indent+l+3+c.pos)+`^
|
|
90
|
-
`,s=1;s<=t.linesAfter&&!(u+s>=r.length);s++)c=
|
|
91
|
-
`;return a.replace(/\n$/,"")}var
|
|
92
|
-
\r`;function
|
|
93
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
94
|
-
`,t-1))}function
|
|
95
|
-
`,o?1+s:s):r===
|
|
90
|
+
`,s=1;s<=t.linesAfter&&!(u+s>=r.length);s++)c=cd(e.buffer,i[u+s],r[u+s],e.position-(i[u]-i[u+s]),f),a+=st.repeat(" ",t.indent)+ld((e.line+s+1).toString(),l)+" | "+c.str+`
|
|
91
|
+
`;return a.replace(/\n$/,"")}var rS=tS,nS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iS=["scalar","sequence","mapping"];function oS(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function uS(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(nS.indexOf(n)===-1)throw new mr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=oS(t.styleAliases||null),iS.indexOf(this.kind)===-1)throw new mr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var tt=uS;function vg(e,t){var n=[];return e[t].forEach(function(i){var r=n.length;n.forEach(function(o,u){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(r=u)}),n[r]=i}),n}function aS(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function Td(e){return this.extend(e)}Td.prototype.extend=function(t){var n=[],i=[];if(t instanceof tt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new mr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof tt))throw new mr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new mr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new mr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof tt))throw new mr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Td.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=vg(r,"implicit"),r.compiledExplicit=vg(r,"explicit"),r.compiledTypeMap=aS(r.compiledImplicit,r.compiledExplicit),r};var sS=Td,cS=new tt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),lS=new tt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),fS=new tt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),dS=new sS({explicit:[cS,lS,fS]});function pS(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function mS(){return null}function DS(e){return e===null}var hS=new tt("tag:yaml.org,2002:null",{kind:"scalar",resolve:pS,construct:mS,predicate:DS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function gS(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function vS(e){return e==="true"||e==="True"||e==="TRUE"}function yS(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var _S=new tt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gS,construct:vS,predicate:yS,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ES(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function FS(e){return 48<=e&&e<=55}function CS(e){return 48<=e&&e<=57}function bS(e){if(e===null)return!1;var t=e.length,n=0,i=!1,r;if(!t)return!1;if(r=e[n],(r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!ES(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!FS(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<t;n++)if(r=e[n],r!=="_"){if(!CS(e.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function AS(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function wS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!st.isNegativeZero(e)}var SS=new tt("tag:yaml.org,2002:int",{kind:"scalar",resolve:bS,construct:AS,predicate:wS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),$S=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kS(e){return!(e===null||!$S.test(e)||e[e.length-1]==="_")}function IS(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var xS=/^[-+]?[0-9]+e/;function PS(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(st.isNegativeZero(e))return"-0.0";return n=e.toString(10),xS.test(n)?n.replace("e",".e"):n}function OS(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||st.isNegativeZero(e))}var BS=new tt("tag:yaml.org,2002:float",{kind:"scalar",resolve:kS,construct:IS,predicate:OS,represent:PS,defaultStyle:"lowercase"}),TS=dS.extend({implicit:[hS,_S,SS,BS]}),NS=TS,j0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),L0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function RS(e){return e===null?!1:j0.exec(e)!==null||L0.exec(e)!==null}function jS(e){var t,n,i,r,o,u,a,s=0,c=null,l,f,p;if(t=j0.exec(e),t===null&&(t=L0.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],u=+t[5],a=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(n,i,r,o,u,a,s)),c&&p.setTime(p.getTime()-c),p}function LS(e){return e.toISOString()}var zS=new tt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:RS,construct:jS,instanceOf:Date,represent:LS});function US(e){return e==="<<"||e===null}var MS=new tt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:US}),sp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
92
|
+
\r`;function VS(e){if(e===null)return!1;var t,n,i=0,r=e.length,o=sp;for(n=0;n<r;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function ZS(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=sp,u=0,a=[];for(t=0;t<r;t++)t%4===0&&t&&(a.push(u>>16&255),a.push(u>>8&255),a.push(u&255)),u=u<<6|o.indexOf(i.charAt(t));return n=r%4*6,n===0?(a.push(u>>16&255),a.push(u>>8&255),a.push(u&255)):n===18?(a.push(u>>10&255),a.push(u>>2&255)):n===12&&a.push(u>>4&255),new Uint8Array(a)}function GS(e){var t="",n=0,i,r,o=e.length,u=sp;for(i=0;i<o;i++)i%3===0&&i&&(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]),n=(n<<8)+e[i];return r=o%3,r===0?(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]):r===2?(t+=u[n>>10&63],t+=u[n>>4&63],t+=u[n<<2&63],t+=u[64]):r===1&&(t+=u[n>>2&63],t+=u[n<<4&63],t+=u[64],t+=u[64]),t}function WS(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var KS=new tt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:VS,construct:ZS,predicate:WS,represent:GS}),HS=Object.prototype.hasOwnProperty,qS=Object.prototype.toString;function YS(e){if(e===null)return!0;var t=[],n,i,r,o,u,a=e;for(n=0,i=a.length;n<i;n+=1){if(r=a[n],u=!1,qS.call(r)!=="[object Object]")return!1;for(o in r)if(HS.call(r,o))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function JS(e){return e!==null?e:[]}var XS=new tt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:YS,construct:JS}),QS=Object.prototype.toString;function e2(e){if(e===null)return!0;var t,n,i,r,o,u=e;for(o=new Array(u.length),t=0,n=u.length;t<n;t+=1){if(i=u[t],QS.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;o[t]=[r[0],i[r[0]]]}return!0}function t2(e){if(e===null)return[];var t,n,i,r,o,u=e;for(o=new Array(u.length),t=0,n=u.length;t<n;t+=1)i=u[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var r2=new tt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:e2,construct:t2}),n2=Object.prototype.hasOwnProperty;function i2(e){if(e===null)return!0;var t,n=e;for(t in n)if(n2.call(n,t)&&n[t]!==null)return!1;return!0}function o2(e){return e!==null?e:{}}var u2=new tt("tag:yaml.org,2002:set",{kind:"mapping",resolve:i2,construct:o2}),a2=NS.extend({implicit:[zS,MS],explicit:[KS,XS,r2,u2]}),Mr=Object.prototype.hasOwnProperty,$a=1,z0=2,U0=3,ka=4,fd=1,s2=2,yg=3,c2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l2=/[\x85\u2028\u2029]/,f2=/[,\[\]\{\}]/,M0=/^(?:!|!!|![a-z\-]+!)$/i,V0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _g(e){return Object.prototype.toString.call(e)}function Qt(e){return e===10||e===13}function En(e){return e===9||e===32}function _t(e){return e===9||e===32||e===10||e===13}function ii(e){return e===44||e===91||e===93||e===123||e===125}function d2(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function p2(e){return e===120?2:e===117?4:e===85?8:0}function m2(e){return 48<=e&&e<=57?e-48:-1}function Eg(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
93
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function D2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Z0=new Array(256),G0=new Array(256);for(mn=0;mn<256;mn++)Z0[mn]=Eg(mn)?1:0,G0[mn]=Eg(mn);var mn;function h2(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a2,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function W0(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=rS(n),new mr(t,n)}function ne(e,t){throw W0(e,t)}function Ia(e,t){e.onWarning&&e.onWarning.call(null,W0(e,t))}var Fg={YAML:function(t,n,i){var r,o,u;t.version!==null&&ne(t,"duplication of %YAML directive"),i.length!==1&&ne(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&ne(t,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),u=parseInt(r[2],10),o!==1&&ne(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&Ia(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var r,o;i.length!==2&&ne(t,"TAG directive accepts exactly two arguments"),r=i[0],o=i[1],M0.test(r)||ne(t,"ill-formed tag handle (first argument) of the TAG directive"),Mr.call(t.tagMap,r)&&ne(t,'there is a previously declared suffix for "'+r+'" tag handle'),V0.test(o)||ne(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ne(t,"tag prefix is malformed: "+o)}t.tagMap[r]=o}};function Lr(e,t,n,i){var r,o,u,a;if(t<n){if(a=e.input.slice(t,n),i)for(r=0,o=a.length;r<o;r+=1)u=a.charCodeAt(r),u===9||32<=u&&u<=1114111||ne(e,"expected valid JSON character");else c2.test(a)&&ne(e,"the stream contains non-printable characters");e.result+=a}}function Cg(e,t,n,i){var r,o,u,a;for(st.isObject(n)||ne(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),u=0,a=r.length;u<a;u+=1)o=r[u],Mr.call(t,o)||(t[o]=n[o],i[o]=!0)}function oi(e,t,n,i,r,o,u,a,s){var c,l;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,l=r.length;c<l;c+=1)Array.isArray(r[c])&&ne(e,"nested arrays are not supported inside keys"),typeof r=="object"&&_g(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&_g(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Cg(e,t,o[c],n);else Cg(e,t,o,n);else!e.json&&!Mr.call(n,r)&&Mr.call(t,r)&&(e.line=u||e.line,e.lineStart=a||e.lineStart,e.position=s||e.position,ne(e,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[r]=o,delete n[r];return t}function cp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ne(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Me(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);r!==0;){for(;En(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(Qt(r))for(cp(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Ia(e,"deficient indentation"),i}function La(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||_t(n)))}function lp(e,t){t===1?e.result+=" ":t>1&&(e.result+=st.repeat(`
|
|
94
|
+
`,t-1))}function g2(e,t,n){var i,r,o,u,a,s,c,l,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),_t(m)||ii(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(r=e.input.charCodeAt(e.position+1),_t(r)||n&&ii(r)))return!1;for(e.kind="scalar",e.result="",o=u=e.position,a=!1;m!==0;){if(m===58){if(r=e.input.charCodeAt(e.position+1),_t(r)||n&&ii(r))break}else if(m===35){if(i=e.input.charCodeAt(e.position-1),_t(i))break}else{if(e.position===e.lineStart&&La(e)||n&&ii(m))break;if(Qt(m))if(s=e.line,c=e.lineStart,l=e.lineIndent,Me(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(Lr(e,o,u,!1),lp(e,e.line-s),o=u=e.position,a=!1),En(m)||(u=e.position+1),m=e.input.charCodeAt(++e.position)}return Lr(e,o,u,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function v2(e,t){var n,i,r;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Lr(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,r=e.position;else return!0;else Qt(n)?(Lr(e,i,r,!0),lp(e,Me(e,!1,t)),i=r=e.position):e.position===e.lineStart&&La(e)?ne(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);ne(e,"unexpected end of the stream within a single quoted scalar")}function y2(e,t){var n,i,r,o,u,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Lr(e,n,e.position,!0),e.position++,!0;if(a===92){if(Lr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),Qt(a))Me(e,!1,t);else if(a<256&&Z0[a])e.result+=G0[a],e.position++;else if((u=p2(a))>0){for(r=u,o=0;r>0;r--)a=e.input.charCodeAt(++e.position),(u=d2(a))>=0?o=(o<<4)+u:ne(e,"expected hexadecimal character");e.result+=D2(o),e.position++}else ne(e,"unknown escape sequence");n=i=e.position}else Qt(a)?(Lr(e,n,i,!0),lp(e,Me(e,!1,t)),n=i=e.position):e.position===e.lineStart&&La(e)?ne(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ne(e,"unexpected end of the stream within a double quoted scalar")}function _2(e,t){var n=!0,i,r,o,u=e.tag,a,s=e.anchor,c,l,f,p,m,d=Object.create(null),D,h,y,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,m=!1,a=[];else if(g===123)l=125,m=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),g=e.input.charCodeAt(++e.position);g!==0;){if(Me(e,!0,t),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=u,e.anchor=s,e.kind=m?"mapping":"sequence",e.result=a,!0;n?g===44&&ne(e,"expected the node content, but found ','"):ne(e,"missed comma between flow collection entries"),h=D=y=null,f=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),_t(c)&&(f=p=!0,e.position++,Me(e,!0,t))),i=e.line,r=e.lineStart,o=e.position,pi(e,t,$a,!1,!0),h=e.tag,D=e.result,Me(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===i)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),Me(e,!0,t),pi(e,t,$a,!1,!0),y=e.result),m?oi(e,a,d,h,D,y,i,r,o):f?a.push(oi(e,null,d,h,D,y,i,r,o)):a.push(D),Me(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}ne(e,"unexpected end of the stream within a flow collection")}function E2(e,t){var n,i,r=fd,o=!1,u=!1,a=t,s=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)fd===r?r=f===43?yg:s2:ne(e,"repeat of a chomping mode identifier");else if((l=m2(f))>=0)l===0?ne(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ne(e,"repeat of an indentation width identifier"):(a=t+l-1,u=!0);else break;if(En(f)){do f=e.input.charCodeAt(++e.position);while(En(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Qt(f)&&f!==0)}for(;f!==0;){for(cp(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!u||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>a&&(a=e.lineIndent),Qt(f)){s++;continue}if(e.lineIndent<a){r===yg?e.result+=st.repeat(`
|
|
95
|
+
`,o?1+s:s):r===fd&&o&&(e.result+=`
|
|
96
96
|
`);break}for(i?En(f)?(c=!0,e.result+=st.repeat(`
|
|
97
97
|
`,o?1+s:s)):c?(c=!1,e.result+=st.repeat(`
|
|
98
98
|
`,s+1)):s===0?o&&(e.result+=" "):e.result+=st.repeat(`
|
|
99
99
|
`,s):e.result+=st.repeat(`
|
|
100
|
-
`,o?1+s:s),o=!0,u=!0,s=0,n=e.position;!Qt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);
|
|
101
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new d2(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,ne(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)F2(n);return n.documents}function C2(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var i=Z0(e,n);if(typeof t!="function")return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])}function b2(e,t){var n=Z0(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new mr("expected a single document in the stream, but found more")}}var A2=C2,w2=b2,G0={loadAll:A2,load:w2},lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";function cp(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var S2=G0.load,NT=G0.loadAll,RT=cp("safeLoad","load"),jT=cp("safeLoadAll","loadAll"),LT=cp("safeDump","dump"),$2=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,k2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,I2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,ld={Space_Separator:$2,ID_Start:k2,ID_Continue:I2},Ke={isSpaceSeparator(e){return typeof e=="string"&&ld.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||ld.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||ld.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Bd,ct,Dr,ka,Zr,Tt,He,lp,Co,x2=function(t,n){Bd=String(t),ct="start",Dr=[],ka=0,Zr=1,Tt=0,He=void 0,lp=void 0,Co=void 0;do He=P2(),T2[ct]();while(He.type!=="eof");return typeof n=="function"?Td({"":Co},"",n):Co};function Td(e,t,n){let i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=String(r),u=Td(i,o,n);u===void 0?delete i[o]:Object.defineProperty(i,o,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let r in i){let o=Td(i,r,n);o===void 0?delete i[r]:Object.defineProperty(i,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,i)}var le,ce,ho,lr,he;function P2(){for(le="default",ce="",ho=!1,lr=1;;){he=hr();let e=W0[le]();if(e)return e}}function hr(){if(Bd[ka])return String.fromCodePoint(Bd.codePointAt(ka))}function M(){let e=hr();return e===`
|
|
102
|
-
`?(
|
|
103
|
-
`:case"\r":case"\u2028":case"\u2029":M();return;case"/":M(),le="comment";return;case void 0:return M(),$e("eof")}if(Ke.isSpaceSeparator(he)){M();return}return
|
|
104
|
-
`:case"\r":case"\u2028":case"\u2029":M(),le="default";return;case void 0:return M(),$e("eof")}M()},value(){switch(he){case"{":case"[":return $e("punctuator",M());case"n":return M(),Dn("ull"),$e("null",null);case"t":return M(),Dn("rue"),$e("boolean",!0);case"f":return M(),Dn("alse"),$e("boolean",!1);case"-":case"+":M()==="-"&&(lr=-1),le="sign";return;case".":ce=M(),le="decimalPointLeading";return;case"0":ce=M(),le="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ce=M(),le="decimalInteger";return;case"I":return M(),Dn("nfinity"),$e("numeric",1/0);case"N":return M(),Dn("aN"),$e("numeric",NaN);case'"':case"'":
|
|
105
|
-
`:case"\r":throw ke(M());case"\u2028":case"\u2029":
|
|
106
|
-
`;case"r":return M(),"\r";case"t":return M()," ";case"v":return M(),"\v";case"0":if(M(),Ke.isDigit(hr()))throw ke(M());return"\0";case"x":return M(),
|
|
100
|
+
`,o?1+s:s),o=!0,u=!0,s=0,n=e.position;!Qt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Lr(e,n,e.position,!1)}return!0}function bg(e,t){var n,i=e.tag,r=e.anchor,o=[],u,a=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ne(e,"tab characters must not be used in indentation")),!(s!==45||(u=e.input.charCodeAt(e.position+1),!_t(u))));){if(a=!0,e.position++,Me(e,!0,-1)&&e.lineIndent<=t){o.push(null),s=e.input.charCodeAt(e.position);continue}if(n=e.line,pi(e,t,U0,!1,!0),o.push(e.result),Me(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&s!==0)ne(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=i,e.anchor=r,e.kind="sequence",e.result=o,!0):!1}function F2(e,t,n){var i,r,o,u,a,s,c=e.tag,l=e.anchor,f={},p=Object.create(null),m=null,d=null,D=null,h=!1,y=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0;){if(!h&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ne(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(g===63||g===58)&&_t(i))g===63?(h&&(oi(e,f,p,m,d,null,u,a,s),m=d=D=null),y=!0,h=!0,r=!0):h?(h=!1,r=!0):ne(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=i;else{if(u=e.line,a=e.lineStart,s=e.position,!pi(e,n,z0,!1,!0))break;if(e.line===o){for(g=e.input.charCodeAt(e.position);En(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),_t(g)||ne(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(oi(e,f,p,m,d,null,u,a,s),m=d=D=null),y=!0,h=!1,r=!1,m=e.tag,d=e.result;else if(y)ne(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(y)ne(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===o||e.lineIndent>t)&&(h&&(u=e.line,a=e.lineStart,s=e.position),pi(e,t,ka,!0,r)&&(h?d=e.result:D=e.result),h||(oi(e,f,p,m,d,D,u,a,s),m=d=D=null),Me(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&g!==0)ne(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&oi(e,f,p,m,d,null,u,a,s),y&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),y}function C2(e){var t,n=!1,i=!1,r,o,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&ne(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(n=!0,u=e.input.charCodeAt(++e.position)):u===33?(i=!0,r="!!",u=e.input.charCodeAt(++e.position)):r="!",t=e.position,n){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(o=e.input.slice(t,e.position),u=e.input.charCodeAt(++e.position)):ne(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!_t(u);)u===33&&(i?ne(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),M0.test(r)||ne(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),u=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),f2.test(o)&&ne(e,"tag suffix cannot contain flow indicator characters")}o&&!V0.test(o)&&ne(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ne(e,"tag name is malformed: "+o)}return n?e.tag=o:Mr.call(e.tagMap,r)?e.tag=e.tagMap[r]+o:r==="!"?e.tag="!"+o:r==="!!"?e.tag="tag:yaml.org,2002:"+o:ne(e,'undeclared tag handle "'+r+'"'),!0}function b2(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ne(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!_t(n)&&!ii(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ne(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function A2(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!_t(i)&&!ii(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ne(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Mr.call(e.anchorMap,n)||ne(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Me(e,!0,-1),!0}function pi(e,t,n,i,r){var o,u,a,s=1,c=!1,l=!1,f,p,m,d,D,h;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=u=a=ka===n||U0===n,i&&Me(e,!0,-1)&&(c=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:e.lineIndent<t&&(s=-1)),s===1)for(;C2(e)||b2(e);)Me(e,!0,-1)?(c=!0,a=o,e.lineIndent>t?s=1:e.lineIndent===t?s=0:e.lineIndent<t&&(s=-1)):a=!1;if(a&&(a=c||r),(s===1||ka===n)&&($a===n||z0===n?D=t:D=t+1,h=e.position-e.lineStart,s===1?a&&(bg(e,h)||F2(e,h,D))||_2(e,D)?l=!0:(u&&E2(e,D)||v2(e,D)||y2(e,D)?l=!0:A2(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&ne(e,"alias node should not have any properties")):g2(e,D,$a===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(l=a&&bg(e,h))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ne(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(d=e.implicitTypes[f],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Mr.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,m=e.typeMap.multi[e.kind||"fallback"],f=0,p=m.length;f<p;f+=1)if(e.tag.slice(0,m[f].tag.length)===m[f].tag){d=m[f];break}d||ne(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&ne(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ne(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function w2(e){var t=e.position,n,i,r,o=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(Me(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(o=!0,u=e.input.charCodeAt(++e.position),n=e.position;u!==0&&!_t(u);)u=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),r=[],i.length<1&&ne(e,"directive name must not be less than one character in length");u!==0;){for(;En(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!Qt(u));break}if(Qt(u))break;for(n=e.position;u!==0&&!_t(u);)u=e.input.charCodeAt(++e.position);r.push(e.input.slice(n,e.position))}u!==0&&cp(e),Mr.call(Fg,i)?Fg[i](e,i,r):Ia(e,'unknown document directive "'+i+'"')}if(Me(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Me(e,!0,-1)):o&&ne(e,"directives end mark is expected"),pi(e,e.lineIndent-1,ka,!1,!0),Me(e,!0,-1),e.checkLineBreaks&&l2.test(e.input.slice(t,e.position))&&Ia(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&La(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Me(e,!0,-1));return}if(e.position<e.length-1)ne(e,"end of the stream or a document separator is expected");else return}function K0(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
101
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new h2(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,ne(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)w2(n);return n.documents}function S2(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var i=K0(e,n);if(typeof t!="function")return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])}function $2(e,t){var n=K0(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new mr("expected a single document in the stream, but found more")}}var k2=S2,I2=$2,H0={loadAll:k2,load:I2},lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";function fp(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var x2=H0.load,MT=H0.loadAll,VT=fp("safeLoad","load"),ZT=fp("safeLoadAll","loadAll"),GT=fp("safeDump","dump"),P2=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,O2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,B2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,dd={Space_Separator:P2,ID_Start:O2,ID_Continue:B2},Ke={isSpaceSeparator(e){return typeof e=="string"&&dd.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||dd.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||dd.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Nd,ct,Dr,xa,Vr,Tt,He,dp,wo,T2=function(t,n){Nd=String(t),ct="start",Dr=[],xa=0,Vr=1,Tt=0,He=void 0,dp=void 0,wo=void 0;do He=N2(),L2[ct]();while(He.type!=="eof");return typeof n=="function"?Rd({"":wo},"",n):wo};function Rd(e,t,n){let i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=String(r),u=Rd(i,o,n);u===void 0?delete i[o]:Object.defineProperty(i,o,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let r in i){let o=Rd(i,r,n);o===void 0?delete i[r]:Object.defineProperty(i,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,i)}var le,ce,yo,lr,he;function N2(){for(le="default",ce="",yo=!1,lr=1;;){he=hr();let e=q0[le]();if(e)return e}}function hr(){if(Nd[xa])return String.fromCodePoint(Nd.codePointAt(xa))}function M(){let e=hr();return e===`
|
|
102
|
+
`?(Vr++,Tt=0):e?Tt+=e.length:Tt++,e&&(xa+=e.length),e}var q0={default(){switch(he){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
103
|
+
`:case"\r":case"\u2028":case"\u2029":M();return;case"/":M(),le="comment";return;case void 0:return M(),$e("eof")}if(Ke.isSpaceSeparator(he)){M();return}return q0[ct]()},comment(){switch(he){case"*":M(),le="multiLineComment";return;case"/":M(),le="singleLineComment";return}throw ke(M())},multiLineComment(){switch(he){case"*":M(),le="multiLineCommentAsterisk";return;case void 0:throw ke(M())}M()},multiLineCommentAsterisk(){switch(he){case"*":M();return;case"/":M(),le="default";return;case void 0:throw ke(M())}M(),le="multiLineComment"},singleLineComment(){switch(he){case`
|
|
104
|
+
`:case"\r":case"\u2028":case"\u2029":M(),le="default";return;case void 0:return M(),$e("eof")}M()},value(){switch(he){case"{":case"[":return $e("punctuator",M());case"n":return M(),Dn("ull"),$e("null",null);case"t":return M(),Dn("rue"),$e("boolean",!0);case"f":return M(),Dn("alse"),$e("boolean",!1);case"-":case"+":M()==="-"&&(lr=-1),le="sign";return;case".":ce=M(),le="decimalPointLeading";return;case"0":ce=M(),le="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ce=M(),le="decimalInteger";return;case"I":return M(),Dn("nfinity"),$e("numeric",1/0);case"N":return M(),Dn("aN"),$e("numeric",NaN);case'"':case"'":yo=M()==='"',ce="",le="string";return}throw ke(M())},identifierNameStartEscape(){if(he!=="u")throw ke(M());M();let e=jd();switch(e){case"$":case"_":break;default:if(!Ke.isIdStartChar(e))throw Ag();break}ce+=e,le="identifierName"},identifierName(){switch(he){case"$":case"_":case"\u200C":case"\u200D":ce+=M();return;case"\\":M(),le="identifierNameEscape";return}if(Ke.isIdContinueChar(he)){ce+=M();return}return $e("identifier",ce)},identifierNameEscape(){if(he!=="u")throw ke(M());M();let e=jd();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ke.isIdContinueChar(e))throw Ag();break}ce+=e,le="identifierName"},sign(){switch(he){case".":ce=M(),le="decimalPointLeading";return;case"0":ce=M(),le="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ce=M(),le="decimalInteger";return;case"I":return M(),Dn("nfinity"),$e("numeric",lr*(1/0));case"N":return M(),Dn("aN"),$e("numeric",NaN)}throw ke(M())},zero(){switch(he){case".":ce+=M(),le="decimalPoint";return;case"e":case"E":ce+=M(),le="decimalExponent";return;case"x":case"X":ce+=M(),le="hexadecimal";return}return $e("numeric",lr*0)},decimalInteger(){switch(he){case".":ce+=M(),le="decimalPoint";return;case"e":case"E":ce+=M(),le="decimalExponent";return}if(Ke.isDigit(he)){ce+=M();return}return $e("numeric",lr*Number(ce))},decimalPointLeading(){if(Ke.isDigit(he)){ce+=M(),le="decimalFraction";return}throw ke(M())},decimalPoint(){switch(he){case"e":case"E":ce+=M(),le="decimalExponent";return}if(Ke.isDigit(he)){ce+=M(),le="decimalFraction";return}return $e("numeric",lr*Number(ce))},decimalFraction(){switch(he){case"e":case"E":ce+=M(),le="decimalExponent";return}if(Ke.isDigit(he)){ce+=M();return}return $e("numeric",lr*Number(ce))},decimalExponent(){switch(he){case"+":case"-":ce+=M(),le="decimalExponentSign";return}if(Ke.isDigit(he)){ce+=M(),le="decimalExponentInteger";return}throw ke(M())},decimalExponentSign(){if(Ke.isDigit(he)){ce+=M(),le="decimalExponentInteger";return}throw ke(M())},decimalExponentInteger(){if(Ke.isDigit(he)){ce+=M();return}return $e("numeric",lr*Number(ce))},hexadecimal(){if(Ke.isHexDigit(he)){ce+=M(),le="hexadecimalInteger";return}throw ke(M())},hexadecimalInteger(){if(Ke.isHexDigit(he)){ce+=M();return}return $e("numeric",lr*Number(ce))},string(){switch(he){case"\\":M(),ce+=R2();return;case'"':if(yo)return M(),$e("string",ce);ce+=M();return;case"'":if(!yo)return M(),$e("string",ce);ce+=M();return;case`
|
|
105
|
+
`:case"\r":throw ke(M());case"\u2028":case"\u2029":z2(he);break;case void 0:throw ke(M())}ce+=M()},start(){switch(he){case"{":case"[":return $e("punctuator",M())}le="value"},beforePropertyName(){switch(he){case"$":case"_":ce=M(),le="identifierName";return;case"\\":M(),le="identifierNameStartEscape";return;case"}":return $e("punctuator",M());case'"':case"'":yo=M()==='"',le="string";return}if(Ke.isIdStartChar(he)){ce+=M(),le="identifierName";return}throw ke(M())},afterPropertyName(){if(he===":")return $e("punctuator",M());throw ke(M())},beforePropertyValue(){le="value"},afterPropertyValue(){switch(he){case",":case"}":return $e("punctuator",M())}throw ke(M())},beforeArrayValue(){if(he==="]")return $e("punctuator",M());le="value"},afterArrayValue(){switch(he){case",":case"]":return $e("punctuator",M())}throw ke(M())},end(){throw ke(M())}};function $e(e,t){return{type:e,value:t,line:Vr,column:Tt}}function Dn(e){for(let t of e){if(hr()!==t)throw ke(M());M()}}function R2(){switch(hr()){case"b":return M(),"\b";case"f":return M(),"\f";case"n":return M(),`
|
|
106
|
+
`;case"r":return M(),"\r";case"t":return M()," ";case"v":return M(),"\v";case"0":if(M(),Ke.isDigit(hr()))throw ke(M());return"\0";case"x":return M(),j2();case"u":return M(),jd();case`
|
|
107
107
|
`:case"\u2028":case"\u2029":return M(),"";case"\r":return M(),hr()===`
|
|
108
|
-
`&&M(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ke(M());case void 0:throw ke(M())}return M()}function
|
|
109
|
-
`,t-1),i=t-n-1,r=0;for(let o=n;o>=0;o=
|
|
110
|
-
`,o-1))r++;return{line:r,column:i}}function
|
|
108
|
+
`&&M(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ke(M());case void 0:throw ke(M())}return M()}function j2(){let e="",t=hr();if(!Ke.isHexDigit(t)||(e+=M(),t=hr(),!Ke.isHexDigit(t)))throw ke(M());return e+=M(),String.fromCodePoint(parseInt(e,16))}function jd(){let e="",t=4;for(;t-- >0;){let n=hr();if(!Ke.isHexDigit(n))throw ke(M());e+=M()}return String.fromCodePoint(parseInt(e,16))}var L2={start(){if(He.type==="eof")throw hn();pd()},beforePropertyName(){switch(He.type){case"identifier":case"string":dp=He.value,ct="afterPropertyName";return;case"punctuator":ua();return;case"eof":throw hn()}},afterPropertyName(){if(He.type==="eof")throw hn();ct="beforePropertyValue"},beforePropertyValue(){if(He.type==="eof")throw hn();pd()},beforeArrayValue(){if(He.type==="eof")throw hn();if(He.type==="punctuator"&&He.value==="]"){ua();return}pd()},afterPropertyValue(){if(He.type==="eof")throw hn();switch(He.value){case",":ct="beforePropertyName";return;case"}":ua()}},afterArrayValue(){if(He.type==="eof")throw hn();switch(He.value){case",":ct="beforeArrayValue";return;case"]":ua()}},end(){}};function pd(){let e;switch(He.type){case"punctuator":switch(He.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=He.value;break}if(wo===void 0)wo=e;else{let t=Dr[Dr.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,dp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Dr.push(e),Array.isArray(e)?ct="beforeArrayValue":ct="beforePropertyName";else{let t=Dr[Dr.length-1];t==null?ct="end":Array.isArray(t)?ct="afterArrayValue":ct="afterPropertyValue"}}function ua(){Dr.pop();let e=Dr[Dr.length-1];e==null?ct="end":Array.isArray(e)?ct="afterArrayValue":ct="afterPropertyValue"}function ke(e){return Pa(e===void 0?`JSON5: invalid end of input at ${Vr}:${Tt}`:`JSON5: invalid character '${Y0(e)}' at ${Vr}:${Tt}`)}function hn(){return Pa(`JSON5: invalid end of input at ${Vr}:${Tt}`)}function Ag(){return Tt-=5,Pa(`JSON5: invalid identifier character at ${Vr}:${Tt}`)}function z2(e){console.warn(`JSON5: '${Y0(e)}' in strings is not valid ECMAScript; consider escaping`)}function Y0(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Pa(e){let t=new SyntaxError(e);return t.lineNumber=Vr,t.columnNumber=Tt,t}var U2={parse:T2},M2=Gr(E0(),1),wg=(e,t,n)=>n<0?-1:e.lastIndexOf(t,n);function V2(e,t){let n=wg(e,`
|
|
109
|
+
`,t-1),i=t-n-1,r=0;for(let o=n;o>=0;o=wg(e,`
|
|
110
|
+
`,o-1))r++;return{line:r,column:i}}function Sg(e,t,{oneBased:n=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let i=V2(e,t);return n?{line:i.line+1,column:i.column+1}:i}var Z2=e=>`\\u{${e.codePointAt(0).toString(16)}}`,_o,G2=class J0 extends Error{constructor(t){var n;super(),ia(this,"name","JSONError"),ia(this,"fileName"),ia(this,"codeFrame"),ia(this,"rawCodeFrame"),Jt(this,_o),vt(this,_o,t),(n=Error.captureStackTrace)==null||n.call(Error,this,J0)}get message(){let{fileName:t,codeFrame:n}=this;return`${xe(this,_o)}${t?` in ${t}`:""}${n?`
|
|
111
111
|
|
|
112
112
|
${n}
|
|
113
|
-
`:""}`}set message(t){vt(this,
|
|
113
|
+
`:""}`}set message(t){vt(this,_o,t)}};_o=new WeakMap;var W2=G2,$g=(e,t,n=!0)=>(0,M2.codeFrameColumns)(e,{start:t},{highlightCode:n}),K2=(e,t)=>{let n=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!n)return;let{index:i,line:r,column:o}=n.groups;if(r&&o)return{line:Number(r),column:Number(o)};if(i=Number(i),i===e.length){let{line:u,column:a}=Sg(e,e.length-1,{oneBased:!0});return{line:u,column:a+1}}return Sg(e,i,{oneBased:!0})},H2=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,n,i)=>`"${i}"(${Z2(i)})`);function q2(e,t,n){typeof t=="string"&&(n=t,t=void 0);let i;try{return JSON.parse(e,t)}catch(u){i=u.message}let r;e?(r=K2(e,i),i=H2(i)):i+=" while parsing empty string";let o=new W2(i);throw o.fileName=n,r&&(o.codeFrame=$g(e,r),o.rawCodeFrame=$g(e,r,!1)),o}function Y2(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function J2(e,t,n){let i=e.split(/\r\n|\n|\r/g),r="",o=(Math.log10(t+1)|0)+1;for(let u=t-1;u<=t+1;u++){let a=i[u-1];a&&(r+=u.toString().padEnd(o," "),r+=": ",r+=a,r+=`
|
|
114
114
|
`,u===t&&(r+=" ".repeat(o+n+2),r+=`^
|
|
115
|
-
`))}return r}var De=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=
|
|
115
|
+
`))}return r}var De=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=Y2(t.toml,t.ptr),r=J2(t.toml,n,i);super(`Invalid TOML document: ${e}
|
|
116
116
|
|
|
117
|
-
${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function
|
|
118
|
-
`,t);return e[i-1]==="\r"&&i--,i<=n?i:-1}function
|
|
117
|
+
${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function Oa(e,t=0,n=e.length){let i=e.indexOf(`
|
|
118
|
+
`,t);return e[i-1]==="\r"&&i--,i<=n?i:-1}function pp(e,t){for(let n=t;n<e.length;n++){let i=e[n];if(i===`
|
|
119
119
|
`)return n;if(i==="\r"&&e[n+1]===`
|
|
120
120
|
`)return n+1;if(i<" "&&i!==" "||i==="\x7F")throw new De("control characters are not allowed in comments",{toml:e,ptr:t})}return e.length}function gr(e,t,n,i){let r;for(;(r=e[t])===" "||r===" "||!n&&(r===`
|
|
121
121
|
`||r==="\r"&&e[t+1]===`
|
|
122
|
-
`);)t++;return i||r!=="#"?t:gr(e,
|
|
122
|
+
`);)t++;return i||r!=="#"?t:gr(e,pp(e,t),n)}function kg(e,t,n,i,r=!1){if(!i)return t=Oa(e,t),t<0?e.length:t;for(let o=t;o<e.length;o++){let u=e[o];if(u==="#")o=Oa(e,o);else{if(u===n)return o+1;if(u===i)return o;if(r&&(u===`
|
|
123
123
|
`||u==="\r"&&e[o+1]===`
|
|
124
|
-
`))return o}}throw new De("cannot find end of structure",{toml:e,ptr:t})}function
|
|
125
|
-
`,f:"\f",r:"\r",'"':'"',"\\":"\\"};function
|
|
124
|
+
`))return o}}throw new De("cannot find end of structure",{toml:e,ptr:t})}function X0(e,t){let n=e[t],i=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=i.length-1;do t=e.indexOf(i,++t);while(t>-1&&n!=="'"&&e[t-1]==="\\"&&e[t-2]!=="\\");return t>-1&&(t+=i.length,i.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}var X2=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i,fr,dr,ht,Q2=class Eo extends Date{constructor(t){let n=!0,i=!0,r="Z";if(typeof t=="string"){let o=t.match(X2);o?(o[1]||(n=!1,t=`0000-01-01T${t}`),i=!!o[2],o[2]&&+o[2]>23?t="":(r=o[3]||null,t=t.toUpperCase(),!r&&i&&(t+="Z"))):t=""}super(t),Jt(this,fr,!1),Jt(this,dr,!1),Jt(this,ht,null),isNaN(this.getTime())||(vt(this,fr,n),vt(this,dr,i),vt(this,ht,r))}isDateTime(){return xe(this,fr)&&xe(this,dr)}isLocal(){return!xe(this,fr)||!xe(this,dr)||!xe(this,ht)}isDate(){return xe(this,fr)&&!xe(this,dr)}isTime(){return xe(this,dr)&&!xe(this,fr)}isValid(){return xe(this,fr)||xe(this,dr)}toISOString(){let t=super.toISOString();if(this.isDate())return t.slice(0,10);if(this.isTime())return t.slice(11,23);if(xe(this,ht)===null)return t.slice(0,-1);if(xe(this,ht)==="Z")return t;let n=+xe(this,ht).slice(1,3)*60+ +xe(this,ht).slice(4,6);return n=xe(this,ht)[0]==="-"?n:-n,new Date(this.getTime()-n*6e4).toISOString().slice(0,-1)+xe(this,ht)}static wrapAsOffsetDateTime(t,n="Z"){let i=new Eo(t);return vt(i,ht,n),i}static wrapAsLocalDateTime(t){let n=new Eo(t);return vt(n,ht,null),n}static wrapAsLocalDate(t){let n=new Eo(t);return vt(n,dr,!1),vt(n,ht,null),n}static wrapAsLocalTime(t){let n=new Eo(t);return vt(n,fr,!1),vt(n,ht,null),n}};fr=new WeakMap;dr=new WeakMap;ht=new WeakMap;var e$=Q2,t$=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,r$=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,n$=/^[+-]?0[0-9_]/,i$=/^[0-9a-f]{4,8}$/i,Ig={b:"\b",t:" ",n:`
|
|
125
|
+
`,f:"\f",r:"\r",'"':'"',"\\":"\\"};function Q0(e,t=0,n=e.length){let i=e[t]==="'",r=e[t++]===e[t]&&e[t]===e[t+1];r&&(n-=2,e[t+=2]==="\r"&&t++,e[t]===`
|
|
126
126
|
`&&t++);let o=0,u,a="",s=t;for(;t<n-1;){let c=e[t++];if(c===`
|
|
127
127
|
`||c==="\r"&&e[t]===`
|
|
128
|
-
`){if(!r)throw new De("newlines are not allowed in strings",{toml:e,ptr:t-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new De("control characters are not allowed in strings",{toml:e,ptr:t-1});if(u){if(u=!1,c==="u"||c==="U"){let l=e.slice(t,t+=c==="u"?4:8);if(!
|
|
128
|
+
`){if(!r)throw new De("newlines are not allowed in strings",{toml:e,ptr:t-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new De("control characters are not allowed in strings",{toml:e,ptr:t-1});if(u){if(u=!1,c==="u"||c==="U"){let l=e.slice(t,t+=c==="u"?4:8);if(!i$.test(l))throw new De("invalid unicode escape",{toml:e,ptr:o});try{a+=String.fromCodePoint(parseInt(l,16))}catch{throw new De("invalid unicode escape",{toml:e,ptr:o})}}else if(r&&(c===`
|
|
129
129
|
`||c===" "||c===" "||c==="\r")){if(t=gr(e,t-1,!0),e[t]!==`
|
|
130
|
-
`&&e[t]!=="\r")throw new De("invalid escape: only line-ending whitespace may be escaped",{toml:e,ptr:o});t=gr(e,t)}else if(c in
|
|
131
|
-
`,u.length);if(a>-1)throw new De("newlines are not allowed in inline tables",{toml:e,ptr:t+a})}return[u,o]}function
|
|
132
|
-
`&&e[o]!=="\r")throw new De("unexpected character encountered",{toml:e,ptr:o});o+=+(e[o]===",")}return[a,o]}o=
|
|
133
|
-
`)throw new De("newlines are not allowed in inline tables",{toml:e,ptr:t-1});if(o==="#")throw new De("inline tables cannot contain comments",{toml:e,ptr:t-1});if(o===",")throw new De("expected key-value, found comma",{toml:e,ptr:t-1});if(o!==" "&&o!==" "){let a,s=i,c=!1,[l,f]=
|
|
134
|
-
`&&r!=="\r"){let o=
|
|
135
|
-
`&&e[a]!=="\r")throw new De("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:a});a=gr(e,a)}return i}async function
|
|
136
|
-
${n.message}`,n}}async function gn(e){return(await import(
|
|
137
|
-
${n.message}`,n}}var
|
|
138
|
-
${n.message}`,n}},async".json5"(e){let t=await
|
|
139
|
-
${n.message}`,n}},".json":
|
|
130
|
+
`&&e[t]!=="\r")throw new De("invalid escape: only line-ending whitespace may be escaped",{toml:e,ptr:o});t=gr(e,t)}else if(c in Ig)a+=Ig[c];else throw new De("unrecognized escape sequence",{toml:e,ptr:o});s=t}else!i&&c==="\\"&&(o=t-1,u=!0,a+=e.slice(s,o))}return a+e.slice(s,n-1)}function o$(e,t,n){if(e==="true")return!0;if(e==="false")return!1;if(e==="-inf")return-1/0;if(e==="inf"||e==="+inf")return 1/0;if(e==="nan"||e==="+nan"||e==="-nan")return NaN;if(e==="-0")return 0;let i;if((i=t$.test(e))||r$.test(e)){if(n$.test(e))throw new De("leading zeroes are not allowed",{toml:t,ptr:n});let o=+e.replace(/_/g,"");if(isNaN(o))throw new De("invalid number",{toml:t,ptr:n});if(i&&!Number.isSafeInteger(o))throw new De("integer value cannot be represented losslessly",{toml:t,ptr:n});return o}let r=new e$(e);if(!r.isValid())throw new De("invalid value",{toml:t,ptr:n});return r}function u$(e,t,n,i){let r=e.slice(t,n),o=r.indexOf("#");o>-1&&(pp(e,o),r=r.slice(0,o));let u=r.trimEnd();if(!i){let a=r.indexOf(`
|
|
131
|
+
`,u.length);if(a>-1)throw new De("newlines are not allowed in inline tables",{toml:e,ptr:t+a})}return[u,o]}function mp(e,t,n,i){if(i===0)throw new De("document contains excessively nested structures. aborting.",{toml:e,ptr:t});let r=e[t];if(r==="["||r==="{"){let[a,s]=r==="["?c$(e,t,i):s$(e,t,i),c=kg(e,s,",",n);if(n==="}"){let l=Oa(e,s,c);if(l>-1)throw new De("newlines are not allowed in inline tables",{toml:e,ptr:l})}return[a,c]}let o;if(r==='"'||r==="'"){o=X0(e,t);let a=Q0(e,t,o);if(n){if(o=gr(e,o,n!=="]"),e[o]&&e[o]!==","&&e[o]!==n&&e[o]!==`
|
|
132
|
+
`&&e[o]!=="\r")throw new De("unexpected character encountered",{toml:e,ptr:o});o+=+(e[o]===",")}return[a,o]}o=kg(e,t,",",n);let u=u$(e,t,o-+(e[o-1]===","),n==="]");if(!u[0])throw new De("incomplete key-value declaration: no value specified",{toml:e,ptr:t});return n&&u[1]>-1&&(o=gr(e,t+u[1]),o+=+(e[o]===",")),[o$(u[0],e,t),o]}var a$=/^[a-zA-Z0-9-_]+[ \t]*$/;function Ld(e,t,n="="){let i=t-1,r=[],o=e.indexOf(n,t);if(o<0)throw new De("incomplete key-value: cannot find end of key",{toml:e,ptr:t});do{let u=e[t=++i];if(u!==" "&&u!==" ")if(u==='"'||u==="'"){if(u===e[t+1]&&u===e[t+2])throw new De("multiline strings are not allowed in keys",{toml:e,ptr:t});let a=X0(e,t);if(a<0)throw new De("unfinished string encountered",{toml:e,ptr:t});i=e.indexOf(".",a);let s=e.slice(a,i<0||i>o?o:i),c=Oa(s);if(c>-1)throw new De("newlines are not allowed in keys",{toml:e,ptr:t+i+c});if(s.trimStart())throw new De("found extra tokens after the string part",{toml:e,ptr:a});if(o<a&&(o=e.indexOf(n,a),o<0))throw new De("incomplete key-value: cannot find end of key",{toml:e,ptr:t});r.push(Q0(e,t,a))}else{i=e.indexOf(".",t);let a=e.slice(t,i<0||i>o?o:i);if(!a$.test(a))throw new De("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:t});r.push(a.trimEnd())}}while(i+1&&i<o);return[r,gr(e,o+1,!0,!0)]}function s$(e,t,n){let i={},r=new Set,o,u=0;for(t++;(o=e[t++])!=="}"&&o;){if(o===`
|
|
133
|
+
`)throw new De("newlines are not allowed in inline tables",{toml:e,ptr:t-1});if(o==="#")throw new De("inline tables cannot contain comments",{toml:e,ptr:t-1});if(o===",")throw new De("expected key-value, found comma",{toml:e,ptr:t-1});if(o!==" "&&o!==" "){let a,s=i,c=!1,[l,f]=Ld(e,t-1);for(let d=0;d<l.length;d++){if(d&&(s=c?s[a]:s[a]={}),a=l[d],(c=Object.hasOwn(s,a))&&(typeof s[a]!="object"||r.has(s[a])))throw new De("trying to redefine an already defined value",{toml:e,ptr:t});!c&&a==="__proto__"&&Object.defineProperty(s,a,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new De("trying to redefine an already defined value",{toml:e,ptr:t});let[p,m]=mp(e,f,"}",n-1);r.add(p),s[a]=p,t=m,u=e[t-1]===","?t-1:0}}if(u)throw new De("trailing commas are not allowed in inline tables",{toml:e,ptr:u});if(!o)throw new De("unfinished table encountered",{toml:e,ptr:t});return[i,t]}function c$(e,t,n){let i=[],r;for(t++;(r=e[t++])!=="]"&&r;){if(r===",")throw new De("expected value, found comma",{toml:e,ptr:t-1});if(r==="#")t=pp(e,t);else if(r!==" "&&r!==" "&&r!==`
|
|
134
|
+
`&&r!=="\r"){let o=mp(e,t-1,"]",n-1);i.push(o[0]),t=o[1]}}if(!r)throw new De("unfinished array encountered",{toml:e,ptr:t});return[i,t]}function xg(e,t,n,i){var r,o;let u=t,a=n,s,c=!1,l;for(let f=0;f<e.length;f++){if(f){if(u=c?u[s]:u[s]={},a=(l=a[s]).c,i===0&&(l.t===1||l.t===2))return null;if(l.t===2){let p=u.length-1;u=u[p],a=a[p].c}}if(s=e[f],(c=Object.hasOwn(u,s))&&((r=a[s])==null?void 0:r.t)===0&&((o=a[s])!=null&&o.d))return null;c||(s==="__proto__"&&(Object.defineProperty(u,s,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,s,{enumerable:!0,configurable:!0,writable:!0})),a[s]={t:f<e.length-1&&i===2?3:i,d:!1,i:0,c:{}})}if(l=a[s],l.t!==i&&!(i===1&&l.t===3)||(i===2&&(l.d||(l.d=!0,u[s]=[]),u[s].push(u={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,i===1)u=c?u[s]:u[s]={};else if(i===0&&c)return null;return[s,u,l.c]}function l$(e,t){let n=t?.maxDepth??1e3,i={},r={},o=i,u=r;for(let a=gr(e,0);a<e.length;){if(e[a]==="["){let s=e[++a]==="[",c=Ld(e,a+=+s,"]");if(s){if(e[c[1]-1]!=="]")throw new De("expected end of table declaration",{toml:e,ptr:c[1]-1});c[1]++}let l=xg(c[0],i,r,s?2:1);if(!l)throw new De("trying to redefine an already defined table or value",{toml:e,ptr:a});u=l[2],o=l[1],a=c[1]}else{let s=Ld(e,a),c=xg(s[0],o,u,0);if(!c)throw new De("trying to redefine an already defined table or value",{toml:e,ptr:a});let l=mp(e,s[1],void 0,n);c[1][c[0]]=l[0],a=l[1]}if(a=gr(e,a,!0),e[a]&&e[a]!==`
|
|
135
|
+
`&&e[a]!=="\r")throw new De("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:a});a=gr(e,a)}return i}async function d$(e){k0(e)&&(e=new URL(e));try{return await f$.readFile(e,"utf8")}catch(t){if(t.code==="ENOENT")return;throw new Error(`Unable to read '${e}': ${t.message}`)}}var xo=d$;async function ev(e){let t=await xo(e);try{return q2(t)}catch(n){throw n.message=`JSON Error in ${e}:
|
|
136
|
+
${n.message}`,n}}async function gn(e){return(await import(Vw(e).href)).default}async function p$(e){try{return await ev(e)}catch(t){if(process.versions.bun)try{return await gn(e)}catch{}throw t}}async function tv(e){let{prettier:t}=await p$(e);return t}async function rv(e){let{prettier:t}=await ma(e);return t}async function ma(e){let t=await xo(e);try{return x2(t)}catch(n){throw n.message=`YAML Error in ${e}:
|
|
137
|
+
${n.message}`,n}}var m$={async".toml"(e){let t=await xo(e);try{return l$(t)}catch(n){throw n.message=`TOML Error in ${e}:
|
|
138
|
+
${n.message}`,n}},async".json5"(e){let t=await xo(e);try{return U2.parse(t)}catch(n){throw n.message=`JSON5 Error in ${e}:
|
|
139
|
+
${n.message}`,n}},".json":ev,".js":gn,".mjs":gn,".cjs":gn,".ts":gn,".mts":gn,".cts":gn,".yaml":ma,".yml":ma,"":ma},D$=m$,h$=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];async function g$({name:e,path:t}){if(!await Mw(t))return!1;if(e==="package.json")try{return!!await tv(t)}catch{return!1}if(e==="package.yaml")try{return!!await rv(t)}catch{return!1}return!0}function v$(e){return new B0({names:h$,filter:g$,stopDirectory:e})}var y$=v$,$$={}.hasOwnProperty,k$=/^([A-Z][a-z\d]*)+$/,I$=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Qe={};function md(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var uv=new Map,x$="__node_internal_",Pg;Qe.ERR_INVALID_ARG_TYPE=It("ERR_INVALID_ARG_TYPE",(e,t,n)=>{Cn(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{let a=e.includes(".")?"property":"argument";i+=`"${e}" ${a} `}i+="must be ";let r=[],o=[],u=[];for(let a of t)Cn(typeof a=="string","All expected entries have to be of type string"),I$.has(a)?r.push(a.toLowerCase()):k$.exec(a)===null?(Cn(a!=="object",'The value "object" should be written as "Object"'),u.push(a)):o.push(a);if(o.length>0){let a=r.indexOf("object");a!==-1&&(r.slice(a,1),o.push("Object"))}return r.length>0&&(i+=`${r.length>1?"one of type":"of type"} ${md(r,"or")}`,(o.length>0||u.length>0)&&(i+=" or ")),o.length>0&&(i+=`an instance of ${md(o,"or")}`,u.length>0&&(i+=" or ")),u.length>0&&(u.length>1?i+=`one of ${md(u,"or")}`:(u[0].toLowerCase()!==u[0]&&(i+="an "),i+=`${u[0]}`)),i+=`. Received ${N$(n)}`,i},TypeError);Qe.ERR_INVALID_MODULE_SPECIFIER=It("ERR_INVALID_MODULE_SPECIFIER",(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:""}`,TypeError);Qe.ERR_INVALID_PACKAGE_CONFIG=It("ERR_INVALID_PACKAGE_CONFIG",(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${n?`. ${n}`:""}`,Error);Qe.ERR_INVALID_PACKAGE_TARGET=It("ERR_INVALID_PACKAGE_TARGET",(e,t,n,i=!1,r=void 0)=>{let o=typeof n=="string"&&!i&&n.length>0&&!n.startsWith("./");return t==="."?(Cn(i===!1),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`):`Invalid "${i?"imports":"exports"}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`},Error);Qe.ERR_MODULE_NOT_FOUND=It("ERR_MODULE_NOT_FOUND",(e,t,n=!1)=>`Cannot find ${n?"module":"package"} '${e}' imported from ${t}`,Error);Qe.ERR_NETWORK_IMPORT_DISALLOWED=It("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Qe.ERR_PACKAGE_IMPORT_NOT_DEFINED=It("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${n}`,TypeError);Qe.ERR_PACKAGE_PATH_NOT_EXPORTED=It("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,n=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:""}`,Error);Qe.ERR_UNSUPPORTED_DIR_IMPORT=It("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Qe.ERR_UNSUPPORTED_RESOLVE_REQUEST=It("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Qe.ERR_UNKNOWN_FILE_EXTENSION=It("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);Qe.ERR_INVALID_ARG_VALUE=It("ERR_INVALID_ARG_VALUE",(e,t,n="is invalid")=>{let i=Ud(t);return i.length>128&&(i=`${i.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${i}`},TypeError);function It(e,t,n){return uv.set(e,t),P$(n,e)}function P$(e,t){return n;function n(...i){let r=Error.stackTraceLimit;Md()&&(Error.stackTraceLimit=0);let o=new e;Md()&&(Error.stackTraceLimit=r);let u=T$(t,i,o);return Object.defineProperties(o,{message:{value:u,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),B$(o),o.code=t,o}}function Md(){try{if(w$.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):$$.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function O$(e){let t=x$+e.name;return Object.defineProperty(e,"name",{value:t}),e}var B$=O$(function(e){let t=Md();return t&&(Pg=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Pg),e});function T$(e,t,n){let i=uv.get(e);if(Cn(i!==void 0,"expected `message` to be found"),typeof i=="function")return Cn(i.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i.length}).`),Reflect.apply(i,n,t);let r=/%[dfijoOs]/g,o=0;for(;r.exec(i)!==null;)o++;return Cn(o===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${o}).`),t.length===0?i:(t.unshift(i),Reflect.apply(S$,null,t))}function N$(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${Ud(e,{depth:-1})}`;let t=Ud(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var vo={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:R$}=Qe,Og=new Map;function av(e,{base:t,specifier:n}){let i=Og.get(e);if(i)return i;let r;try{r=b$.readFileSync(A$.toNamespacedPath(e),"utf8")}catch(u){let a=u;if(a.code!=="ENOENT")throw a}let o={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(r!==void 0){let u;try{u=JSON.parse(r)}catch(a){let s=a,c=new R$(e,(t?`"${n}" from `:"")+zd(t||n),s.message);throw c.cause=s,c}o.exists=!0,vo.call(u,"name")&&typeof u.name=="string"&&(o.name=u.name),vo.call(u,"main")&&typeof u.main=="string"&&(o.main=u.main),vo.call(u,"exports")&&(o.exports=u.exports),vo.call(u,"imports")&&(o.imports=u.imports),vo.call(u,"type")&&(u.type==="commonjs"||u.type==="module")&&(o.type=u.type)}return Og.set(e,o),o}function gp(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let r=av(zd(t),{specifier:e});if(r.exists)return r;let o=t;if(t=new URL("../package.json",t),t.pathname===o.pathname)break}return{pjsonPath:zd(t),exists:!1,type:"none"}}function Bg(e){return gp(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:j$}=Qe,L$={}.hasOwnProperty,z$={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function U$(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var Tg={__proto__:null,"data:":M$,"file:":Z$,"http:":Ng,"https:":Ng,"node:"(){return"builtin"}};function M$(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return U$(t)}function V$(e){let t=e.pathname,n=t.length;for(;n--;){let i=t.codePointAt(n);if(i===47)return"";if(i===46)return t.codePointAt(n-1)===47?"":t.slice(n)}return""}function Z$(e,t,n){let i=V$(e);if(i===".js"){let u=Bg(e);return u!=="none"?u:"commonjs"}if(i===""){let u=Bg(e);return u==="none"||u==="commonjs"?"commonjs":"module"}let r=z$[i];if(r)return r;if(n)return;let o=C$(e);throw new j$(i,o)}function Ng(){}function sv(e,t){let n=e.protocol;return L$.call(Tg,n)&&Tg[n](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:G$}=Qe,cv=Object.freeze(["node","import"]),W$=new Set(cv);function K$(){return cv}function H$(){return W$}function q$(e){if(e!==void 0&&e!==K$()){if(!Array.isArray(e))throw new G$("conditions",e,"expected an array");return new Set(e)}return H$()}var aa=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Dd,ERR_INVALID_MODULE_SPECIFIER:za,ERR_INVALID_PACKAGE_CONFIG:lv,ERR_INVALID_PACKAGE_TARGET:Y$,ERR_MODULE_NOT_FOUND:vp,ERR_PACKAGE_IMPORT_NOT_DEFINED:J$,ERR_PACKAGE_PATH_NOT_EXPORTED:X$,ERR_UNSUPPORTED_DIR_IMPORT:Q$,ERR_UNSUPPORTED_RESOLVE_REQUEST:Rg}=Qe,fv={}.hasOwnProperty,jg=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Lg=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,ek=/^\.|%|\\/,sa=/\*/g,tk=/%2f|%5c/i,zg=new Set,rk=/[/\\]{2}/;function Ug(e,t,n,i,r,o,u){if(Fn.noDeprecation)return;let a=Fe(i),s=rk.exec(u?e:t)!==null;Fn.emitWarning(`Use of deprecated ${s?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===n?"":`matched to "${n}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${a}${o?` imported from ${Fe(o)}`:""}.`,"DeprecationWarning","DEP0166")}function Mg(e,t,n,i){if(Fn.noDeprecation||sv(e,{parentURL:n.href})!=="module")return;let o=Fe(e.href),u=Fe(new Te(".",t)),a=Fe(n);i?ov.resolve(u,i)!==o&&Fn.emitWarning(`Package ${u} has a "main" field set to "${i}", excluding the full filename and extension to the resolved file at "${o.slice(u.length)}", imported from ${a}.
|
|
140
140
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Fn.emitWarning(`No "main" or "exports" field defined in the package.json for ${u} resolving the main entry point "${o.slice(u.length)}", imported from ${a}.
|
|
141
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function cv(e){try{return tv(e)}catch{}}function md(e){let t=tv(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n??!1}function Q$(e,t,n){let i;if(t.main!==void 0){if(i=new Te(t.main,e),md(i))return i;let u=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<u.length&&(i=new Te(u[a],e),!md(i));)i=void 0;if(i)return Lg(i,e,n,t.main),i}let r=["./index.js","./index.json","./index.node"],o=-1;for(;++o<r.length&&(i=new Te(r[o],e),!md(i));)i=void 0;if(i)return Lg(i,e,n,t.main),i;throw new hp(Fe(new Te(".",e)),Fe(n))}function ek(e,t,n){if(J$.exec(e.pathname)!==null)throw new ja(e.pathname,'must not include encoded "/" or "\\" characters',Fe(t));let i;try{i=Fe(e)}catch(o){let u=o;throw Object.defineProperty(u,"input",{value:String(e)}),Object.defineProperty(u,"module",{value:String(t)}),u}let r=cv(i.endsWith("/")?i.slice(-1):i);if(r&&r.isDirectory()){let o=new q$(i,Fe(t));throw o.url=String(e),o}if(!r||!r.isFile()){let o=new hp(i||e.pathname,t&&Fe(t),!0);throw o.url=String(e),o}if(!n){let o=v$(i),{search:u,hash:a}=e;e=pp(o+(i.endsWith(rv.sep)?"/":"")),e.search=u,e.hash=a}return e}function tk(e,t,n){return new K$(e,t&&Fe(new Te(".",t)),Fe(n))}function Dd(e,t,n){return new H$(Fe(new Te(".",t)),e,n&&Fe(n))}function rk(e,t,n,i,r){let o=`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${Fe(n)}`;throw new ja(e,o,r&&Fe(r))}function yo(e,t,n,i,r){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new W$(Fe(new Te(".",n)),e,t,i,r&&Fe(r))}function nk(e,t,n,i,r,o,u,a,s){if(t!==""&&!o&&e[e.length-1]!=="/")throw yo(n,e,i,u,r);if(!e.startsWith("./")){if(u&&!e.startsWith("../")&&!e.startsWith("/")){let d=!1;try{new Te(e),d=!0}catch{}if(!d){let p=o?oa.call(ua,e,()=>t):e+t;return fv(p,i,s)}}throw yo(n,e,i,u,r)}if(Tg.exec(e.slice(2))!==null)if(Ng.exec(e.slice(2))===null){if(!a){let d=o?n.replace("*",()=>t):n+t,p=o?oa.call(ua,e,()=>t):e;jg(p,d,n,i,u,r,!0)}}else throw yo(n,e,i,u,r);let c=new Te(e,i),l=c.pathname,f=new Te(".",i).pathname;if(!l.startsWith(f))throw yo(n,e,i,u,r);if(t==="")return c;if(Tg.exec(t)!==null){let d=o?n.replace("*",()=>t):n+t;if(Ng.exec(t)===null){if(!a){let p=o?oa.call(ua,e,()=>t):e;jg(p,d,n,i,u,r,!1)}}else rk(d,n,i,u,r)}return o?new Te(oa.call(ua,c.href,()=>t)):new Te(t,c)}function ik(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function di(e,t,n,i,r,o,u,a,s){if(typeof t=="string")return nk(t,n,i,e,r,o,u,a,s);if(Array.isArray(t)){let c=t;if(c.length===0)return null;let l,f=-1;for(;++f<c.length;){let d=c[f],p;try{p=di(e,d,n,i,r,o,u,a,s)}catch(m){let D=m;if(l=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw m}if(p!==void 0){if(p===null){l=null;continue}return p}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let c=Object.getOwnPropertyNames(t),l=-1;for(;++l<c.length;){let f=c[l];if(ik(f))throw new av(Fe(e),r,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<c.length;){let f=c[l];if(f==="default"||s&&s.has(f)){let d=t[f],p=di(e,d,n,i,r,o,u,a,s);if(p===void 0)continue;return p}}return null}if(t===null)return null;throw yo(i,t,e,u,r)}function ok(e,t,n){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let i=Object.getOwnPropertyNames(e),r=!1,o=0,u=-1;for(;++u<i.length;){let a=i[u],s=a===""||a[0]!==".";if(o++===0)r=s;else if(r!==s)throw new av(Fe(t),n,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return r}function uk(e,t,n){if(Fn.noDeprecation)return;let i=Fe(t);Rg.has(i+"|"+e)||(Rg.add(i+"|"+e),Fn.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${n?` imported from ${Fe(n)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function zg(e,t,n,i,r){let o=n.exports;if(ok(o,e,i)&&(o={".":o}),sv.call(o,t)&&!t.includes("*")&&!t.endsWith("/")){let l=o[t],f=di(e,l,"",t,i,!1,!1,!1,r);if(f==null)throw Dd(t,e,i);return f}let u="",a="",s=Object.getOwnPropertyNames(o),c=-1;for(;++c<s.length;){let l=s[c],f=l.indexOf("*");if(f!==-1&&t.startsWith(l.slice(0,f))){t.endsWith("/")&&uk(t,e,i);let d=l.slice(f+1);t.length>=l.length&&t.endsWith(d)&&lv(u,l)===1&&l.lastIndexOf("*")===f&&(u=l,a=t.slice(f,t.length-d.length))}}if(u){let l=o[u],f=di(e,l,a,u,i,!0,!1,t.endsWith("/"),r);if(f==null)throw Dd(t,e,i);return f}throw Dd(t,e,i)}function lv(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),r=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return r>o?-1:o>r||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function ak(e,t,n){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let o="is not a valid internal imports specifier name";throw new ja(e,o,Fe(t))}let i,r=Dp(t);if(r.exists){i=pp(r.pjsonPath);let o=r.imports;if(o)if(sv.call(o,e)&&!e.includes("*")){let u=di(i,o[e],"",e,t,!1,!0,!1,n);if(u!=null)return u}else{let u="",a="",s=Object.getOwnPropertyNames(o),c=-1;for(;++c<s.length;){let l=s[c],f=l.indexOf("*");if(f!==-1&&e.startsWith(l.slice(0,-1))){let d=l.slice(f+1);e.length>=l.length&&e.endsWith(d)&&lv(u,l)===1&&l.lastIndexOf("*")===f&&(u=l,a=e.slice(f,e.length-d.length))}}if(u){let l=o[u],f=di(i,l,a,u,t,!0,!0,!1,n);if(f!=null)return f}}}throw tk(e,i,t)}function sk(e,t){let n=e.indexOf("/"),i=!0,r=!1;e[0]==="@"&&(r=!0,n===-1||e.length===0?i=!1:n=e.indexOf("/",n+1));let o=n===-1?e:e.slice(0,n);if(Y$.exec(o)!==null&&(i=!1),!i)throw new ja(e,"is not a valid package name",Fe(t));let u="."+(n===-1?"":e.slice(n));return{packageName:o,packageSubpath:u,isScoped:r}}function fv(e,t,n){if(mp.includes(e))return new Te("node:"+e);let{packageName:i,packageSubpath:r,isScoped:o}=sk(e,t),u=Dp(t);if(u.exists){let l=pp(u.pjsonPath);if(u.name===i&&u.exports!==void 0&&u.exports!==null)return zg(l,r,u,t,n)}let a=new Te("./node_modules/"+i+"/package.json",t),s=Fe(a),c;do{let l=cv(s.slice(0,-13));if(!l||!l.isDirectory()){c=s,a=new Te((o?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",a),s=Fe(a);continue}let f=iv(s,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?zg(a,r,f,t,n):r==="."?Q$(a,f,t):new Te(r,a)}while(s.length!==c.length);throw new hp(i,Fe(t),!1)}function ck(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function gp(e){return e===""?!1:e[0]==="/"?!0:ck(e)}function lk(e,t,n,i){let r=t.protocol,u=r==="data:"||r==="http:"||r==="https:",a;if(gp(e))try{a=new Te(e,t)}catch(s){let c=new Bg(e,t);throw c.cause=s,c}else if(r==="file:"&&e[0]==="#")a=ak(e,t,n);else try{a=new Te(e)}catch(s){if(u&&!mp.includes(e)){let c=new Bg(e,t);throw c.cause=s,c}a=fv(e,t,n)}return ev(a!==void 0,"expected to be defined"),a.protocol!=="file:"?a:ek(a,t,i)}function fk(e,t,n){if(n){let i=n.protocol;if(i==="http:"||i==="https:"){if(gp(e)){let r=t?.protocol;if(r&&r!=="https:"&&r!=="http:")throw new pd(e,n,"remote imports cannot import from a local location.");return{url:t?.href||""}}throw mp.includes(e)?new pd(e,n,"remote imports cannot import from a local location."):new pd(e,n,"only relative and absolute specifiers are supported.")}}}function dk(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function pk(e){if(e!==void 0&&typeof e!="string"&&!dk(e))throw new Qe.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function mk(e,t={}){let{parentURL:n}=t;ev(n!==void 0,"expected `parentURL` to be defined"),pk(n);let i;if(n)try{i=new Te(n)}catch{}let r,o;try{if(r=gp(e)?new Te(e,i):new Te(e),o=r.protocol,o==="data:")return{url:r.href,format:null}}catch{}let u=fk(e,r,i);if(u)return u;if(o===void 0&&r&&(o=r.protocol),o==="node:")return{url:e};if(r&&r.protocol==="node:")return{url:e};let a=G$(t.conditions),s=lk(e,new Te(n),a,!1);return{url:s.href,format:ov(s,{parentURL:n})}}function Dk(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return mk(e,{parentURL:t}).url}catch(n){let i=n;if((i.code==="ERR_UNSUPPORTED_DIR_IMPORT"||i.code==="ERR_MODULE_NOT_FOUND")&&typeof i.url=="string")return i.url;throw n}}function hk(e,t){return import(Dk(e,g$(t).href))}var dv=hk;function vk(e,t){return gk(t)(e)}var yk=vk,_k=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);async function Ek(e,t){try{let i=yk(e,t);return process.features.require_module&&i.__esModule?i.default:i}catch(i){if(!_k.has(i?.code))throw i}return(await dv(e,t)).default}var Fk=Ek;async function Ck(e){let{base:t,ext:n}=h$.parse(e),i=t==="package.json"?X0:t==="package.yaml"?Q0:f$[n];if(!i)throw new Error(`No loader specified for extension "${n||"noExt"}"`);let r=await i(e);if(r){if(typeof r=="string"&&(r=await Fk(r,e)),typeof r!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof r} in "${e}"`);return delete r.$schema,r}}var bk=Ck,pa=new Map,ma=new Map;function Ak(){pa.clear(),ma.clear()}function wk(e,{shouldCache:t}){return e=ip.resolve(e),(!t||!pa.has(e))&&pa.set(e,bk(e)),pa.get(e)}function Sk(e){if(e=e?ip.resolve(e):void 0,!ma.has(e)){let t=D$(e),n=t.search.bind(t);ma.set(e,n)}return ma.get(e)}function pv(e,t={}){e=e?ip.resolve(e):process.cwd();let n=op.getPrettierConfigSearchStopDirectory();return Sk(n)(e,{shouldCache:t.shouldCache})}function $k(){Ak(),Iw()}function kk(e,t){if(!e||!t.editorconfig)return;let n=t.useCache;return Pw(e,{shouldCache:n})}async function Ik(e,t){let n=t.useCache,i=t.config;if(!i){let o=e?Mr.dirname(Mr.resolve(e)):void 0;i=await pv(o,{shouldCache:n})}return i?{config:await wk(i,{shouldCache:n}),configFile:i}:void 0}async function mv(e,t){t={useCache:!0,...t};let n=Di(e),[i,r]=await Promise.all([Ik(n,t),kk(n,t)]);if(!i&&!r)return null;let o={...r,...Pk(i,n)};return Array.isArray(o.plugins)&&(o.plugins=o.plugins.map(u=>typeof u=="string"&&u.startsWith(".")?Mr.resolve(Mr.dirname(i.configFile),u):u)),o}async function xk(e){let t=e?Mr.dirname(Mr.resolve(Di(e))):void 0;return await pv(t,{shouldCache:!1})??null}function Pk(e,t){let{config:n,configFile:i}=e||{},{overrides:r,...o}=n||{};if(t&&r){let u=Mr.relative(Mr.dirname(i),t);for(let a of r)Ok(u,a.files,a.excludeFiles)&&Object.assign(o,a.options)}return o}function Ok(e,t,n){let i=Array.isArray(t)?t:[t],[r,o]=Dw(i,u=>u.includes("/"));return fg.default.isMatch(e,o,{ignore:n,basename:!0,dot:!0})||fg.default.isMatch(e,r,{ignore:n,basename:!1,dot:!0})}var Bk=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},xo=Bk,Tk=Wr(rA(),1),Rk=Da.sep==="\\"?e=>xo(!1,e,"\\","/"):e=>e;function jk(e,t){let n=Di(t),i=S0(e)?Nk.fileURLToPath(e):Da.resolve(e);return Da.relative(n?Da.dirname(n):process.cwd(),i)}async function Lk(e,t){let n="";if(e&&(n+=await $o(e)??""),t||(n+=`
|
|
142
|
-
node_modules`),!n)return;let i=(0,
|
|
143
|
-
`?"crlf":"cr":"lf"}function
|
|
141
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function dv(e){try{return iv(e)}catch{}}function hd(e){let t=iv(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n??!1}function nk(e,t,n){let i;if(t.main!==void 0){if(i=new Te(t.main,e),hd(i))return i;let u=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<u.length&&(i=new Te(u[a],e),!hd(i));)i=void 0;if(i)return Mg(i,e,n,t.main),i}let r=["./index.js","./index.json","./index.node"],o=-1;for(;++o<r.length&&(i=new Te(r[o],e),!hd(i));)i=void 0;if(i)return Mg(i,e,n,t.main),i;throw new vp(Fe(new Te(".",e)),Fe(n))}function ik(e,t,n){if(tk.exec(e.pathname)!==null)throw new za(e.pathname,'must not include encoded "/" or "\\" characters',Fe(t));let i;try{i=Fe(e)}catch(o){let u=o;throw Object.defineProperty(u,"input",{value:String(e)}),Object.defineProperty(u,"module",{value:String(t)}),u}let r=dv(i.endsWith("/")?i.slice(-1):i);if(r&&r.isDirectory()){let o=new Q$(i,Fe(t));throw o.url=String(e),o}if(!r||!r.isFile()){let o=new vp(i||e.pathname,t&&Fe(t),!0);throw o.url=String(e),o}if(!n){let o=F$(i),{search:u,hash:a}=e;e=Dp(o+(i.endsWith(ov.sep)?"/":"")),e.search=u,e.hash=a}return e}function ok(e,t,n){return new J$(e,t&&Fe(new Te(".",t)),Fe(n))}function gd(e,t,n){return new X$(Fe(new Te(".",t)),e,n&&Fe(n))}function uk(e,t,n,i,r){let o=`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${Fe(n)}`;throw new za(e,o,r&&Fe(r))}function Fo(e,t,n,i,r){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new Y$(Fe(new Te(".",n)),e,t,i,r&&Fe(r))}function ak(e,t,n,i,r,o,u,a,s){if(t!==""&&!o&&e[e.length-1]!=="/")throw Fo(n,e,i,u,r);if(!e.startsWith("./")){if(u&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new Te(e),p=!0}catch{}if(!p){let m=o?aa.call(sa,e,()=>t):e+t;return mv(m,i,s)}}throw Fo(n,e,i,u,r)}if(jg.exec(e.slice(2))!==null)if(Lg.exec(e.slice(2))===null){if(!a){let p=o?n.replace("*",()=>t):n+t,m=o?aa.call(sa,e,()=>t):e;Ug(m,p,n,i,u,r,!0)}}else throw Fo(n,e,i,u,r);let c=new Te(e,i),l=c.pathname,f=new Te(".",i).pathname;if(!l.startsWith(f))throw Fo(n,e,i,u,r);if(t==="")return c;if(jg.exec(t)!==null){let p=o?n.replace("*",()=>t):n+t;if(Lg.exec(t)===null){if(!a){let m=o?aa.call(sa,e,()=>t):e;Ug(m,p,n,i,u,r,!1)}}else uk(p,n,i,u,r)}return o?new Te(aa.call(sa,c.href,()=>t)):new Te(t,c)}function sk(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function mi(e,t,n,i,r,o,u,a,s){if(typeof t=="string")return ak(t,n,i,e,r,o,u,a,s);if(Array.isArray(t)){let c=t;if(c.length===0)return null;let l,f=-1;for(;++f<c.length;){let p=c[f],m;try{m=mi(e,p,n,i,r,o,u,a,s)}catch(d){let D=d;if(l=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw d}if(m!==void 0){if(m===null){l=null;continue}return m}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let c=Object.getOwnPropertyNames(t),l=-1;for(;++l<c.length;){let f=c[l];if(sk(f))throw new lv(Fe(e),r,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<c.length;){let f=c[l];if(f==="default"||s&&s.has(f)){let p=t[f],m=mi(e,p,n,i,r,o,u,a,s);if(m===void 0)continue;return m}}return null}if(t===null)return null;throw Fo(i,t,e,u,r)}function ck(e,t,n){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let i=Object.getOwnPropertyNames(e),r=!1,o=0,u=-1;for(;++u<i.length;){let a=i[u],s=a===""||a[0]!==".";if(o++===0)r=s;else if(r!==s)throw new lv(Fe(t),n,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return r}function lk(e,t,n){if(Fn.noDeprecation)return;let i=Fe(t);zg.has(i+"|"+e)||(zg.add(i+"|"+e),Fn.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${n?` imported from ${Fe(n)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Vg(e,t,n,i,r){let o=n.exports;if(ck(o,e,i)&&(o={".":o}),fv.call(o,t)&&!t.includes("*")&&!t.endsWith("/")){let l=o[t],f=mi(e,l,"",t,i,!1,!1,!1,r);if(f==null)throw gd(t,e,i);return f}let u="",a="",s=Object.getOwnPropertyNames(o),c=-1;for(;++c<s.length;){let l=s[c],f=l.indexOf("*");if(f!==-1&&t.startsWith(l.slice(0,f))){t.endsWith("/")&&lk(t,e,i);let p=l.slice(f+1);t.length>=l.length&&t.endsWith(p)&&pv(u,l)===1&&l.lastIndexOf("*")===f&&(u=l,a=t.slice(f,t.length-p.length))}}if(u){let l=o[u],f=mi(e,l,a,u,i,!0,!1,t.endsWith("/"),r);if(f==null)throw gd(t,e,i);return f}throw gd(t,e,i)}function pv(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),r=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return r>o?-1:o>r||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function fk(e,t,n){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let o="is not a valid internal imports specifier name";throw new za(e,o,Fe(t))}let i,r=gp(t);if(r.exists){i=Dp(r.pjsonPath);let o=r.imports;if(o)if(fv.call(o,e)&&!e.includes("*")){let u=mi(i,o[e],"",e,t,!1,!0,!1,n);if(u!=null)return u}else{let u="",a="",s=Object.getOwnPropertyNames(o),c=-1;for(;++c<s.length;){let l=s[c],f=l.indexOf("*");if(f!==-1&&e.startsWith(l.slice(0,-1))){let p=l.slice(f+1);e.length>=l.length&&e.endsWith(p)&&pv(u,l)===1&&l.lastIndexOf("*")===f&&(u=l,a=e.slice(f,e.length-p.length))}}if(u){let l=o[u],f=mi(i,l,a,u,t,!0,!0,!1,n);if(f!=null)return f}}}throw ok(e,i,t)}function dk(e,t){let n=e.indexOf("/"),i=!0,r=!1;e[0]==="@"&&(r=!0,n===-1||e.length===0?i=!1:n=e.indexOf("/",n+1));let o=n===-1?e:e.slice(0,n);if(ek.exec(o)!==null&&(i=!1),!i)throw new za(e,"is not a valid package name",Fe(t));let u="."+(n===-1?"":e.slice(n));return{packageName:o,packageSubpath:u,isScoped:r}}function mv(e,t,n){if(hp.includes(e))return new Te("node:"+e);let{packageName:i,packageSubpath:r,isScoped:o}=dk(e,t),u=gp(t);if(u.exists){let l=Dp(u.pjsonPath);if(u.name===i&&u.exports!==void 0&&u.exports!==null)return Vg(l,r,u,t,n)}let a=new Te("./node_modules/"+i+"/package.json",t),s=Fe(a),c;do{let l=dv(s.slice(0,-13));if(!l||!l.isDirectory()){c=s,a=new Te((o?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",a),s=Fe(a);continue}let f=av(s,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?Vg(a,r,f,t,n):r==="."?nk(a,f,t):new Te(r,a)}while(s.length!==c.length);throw new vp(i,Fe(t),!1)}function pk(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function yp(e){return e===""?!1:e[0]==="/"?!0:pk(e)}function mk(e,t,n,i){let r=t.protocol,u=r==="data:"||r==="http:"||r==="https:",a;if(yp(e))try{a=new Te(e,t)}catch(s){let c=new Rg(e,t);throw c.cause=s,c}else if(r==="file:"&&e[0]==="#")a=fk(e,t,n);else try{a=new Te(e)}catch(s){if(u&&!hp.includes(e)){let c=new Rg(e,t);throw c.cause=s,c}a=mv(e,t,n)}return nv(a!==void 0,"expected to be defined"),a.protocol!=="file:"?a:ik(a,t,i)}function Dk(e,t,n){if(n){let i=n.protocol;if(i==="http:"||i==="https:"){if(yp(e)){let r=t?.protocol;if(r&&r!=="https:"&&r!=="http:")throw new Dd(e,n,"remote imports cannot import from a local location.");return{url:t?.href||""}}throw hp.includes(e)?new Dd(e,n,"remote imports cannot import from a local location."):new Dd(e,n,"only relative and absolute specifiers are supported.")}}}function hk(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function gk(e){if(e!==void 0&&typeof e!="string"&&!hk(e))throw new Qe.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function vk(e,t={}){let{parentURL:n}=t;nv(n!==void 0,"expected `parentURL` to be defined"),gk(n);let i;if(n)try{i=new Te(n)}catch{}let r,o;try{if(r=yp(e)?new Te(e,i):new Te(e),o=r.protocol,o==="data:")return{url:r.href,format:null}}catch{}let u=Dk(e,r,i);if(u)return u;if(o===void 0&&r&&(o=r.protocol),o==="node:")return{url:e};if(r&&r.protocol==="node:")return{url:e};let a=q$(t.conditions),s=mk(e,new Te(n),a,!1);return{url:s.href,format:sv(s,{parentURL:n})}}function yk(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return vk(e,{parentURL:t}).url}catch(n){let i=n;if((i.code==="ERR_UNSUPPORTED_DIR_IMPORT"||i.code==="ERR_MODULE_NOT_FOUND")&&typeof i.url=="string")return i.url;throw n}}function _k(e,t){return import(yk(e,E$(t).href))}var Dv=_k;function Fk(e,t){return Ek(t)(e)}var Ck=Fk,bk=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);async function Ak(e,t){try{let i=Ck(e,t);return process.features.require_module&&i.__esModule?i.default:i}catch(i){if(!bk.has(i?.code))throw i}return(await Dv(e,t)).default}var wk=Ak;async function Sk(e){let{base:t,ext:n}=_$.parse(e),i=t==="package.json"?tv:t==="package.yaml"?rv:D$[n];if(!i)throw new Error(`No loader specified for extension "${n||"noExt"}"`);let r=await i(e);if(r){if(typeof r=="string"&&(r=await wk(r,e)),typeof r!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof r} in "${e}"`);return delete r.$schema,r}}var $k=Sk,Da=new Map,ha=new Map;function kk(){Da.clear(),ha.clear()}function Ik(e,{shouldCache:t}){return e=up.resolve(e),(!t||!Da.has(e))&&Da.set(e,$k(e)),Da.get(e)}function xk(e){if(e=e?up.resolve(e):void 0,!ha.has(e)){let t=y$(e),n=t.search.bind(t);ha.set(e,n)}return ha.get(e)}function hv(e,t={}){e=e?up.resolve(e):process.cwd();let n=ap.getPrettierConfigSearchStopDirectory();return xk(n)(e,{shouldCache:t.shouldCache})}function Pk(){kk(),Bw()}function Ok(e,t){if(!e||!t.editorconfig)return;let n=t.useCache;return Nw(e,{shouldCache:n})}async function Bk(e,t){let n=t.useCache,i=t.config;if(!i){let o=e?Ur.dirname(Ur.resolve(e)):void 0;i=await hv(o,{shouldCache:n})}return i?{config:await Ik(i,{shouldCache:n}),configFile:i}:void 0}async function gv(e,t){t={useCache:!0,...t};let n=gi(e),[i,r]=await Promise.all([Bk(n,t),Ok(n,t)]);if(!i&&!r)return null;let o={...r,...Nk(i,n)};return Array.isArray(o.plugins)&&(o.plugins=o.plugins.map(u=>typeof u=="string"&&u.startsWith(".")?Ur.resolve(Ur.dirname(i.configFile),u):u)),o}async function Tk(e){let t=e?Ur.dirname(Ur.resolve(gi(e))):void 0;return await hv(t,{shouldCache:!1})??null}function Nk(e,t){let{config:n,configFile:i}=e||{},{overrides:r,...o}=n||{};if(t&&r){let u=Ur.relative(Ur.dirname(i),t);for(let a of r)Rk(u,a.files,a.excludeFiles)&&Object.assign(o,a.options)}return o}function Rk(e,t,n){let i=Array.isArray(t)?t:[t],[r,o]=yw(i,u=>u.includes("/"));return mg.default.isMatch(e,o,{ignore:n,basename:!0,dot:!0})||mg.default.isMatch(e,r,{ignore:n,basename:!1,dot:!0})}var jk=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},Bo=jk,Lk=Gr(uA(),1),Uk=ga.sep==="\\"?e=>Bo(!1,e,"\\","/"):e=>e;function Mk(e,t){let n=gi(t),i=I0(e)?zk.fileURLToPath(e):ga.resolve(e);return ga.relative(n?ga.dirname(n):process.cwd(),i)}async function Vk(e,t){let n="";if(e&&(n+=await xo(e)??""),t||(n+=`
|
|
142
|
+
node_modules`),!n)return;let i=(0,Lk.default)({allowRelativePaths:!0}).add(n);return r=>i.checkIgnore(Uk(Mk(r,e))).ignored}async function vv(e,t){e.length===0&&!t&&(e=[void 0]);let n=(await Promise.all(e.map(i=>Vk(i,t)))).filter(Boolean);return i=>n.some(r=>r(i))}async function Zk(e,t){let{ignorePath:n,withNodeModules:i}=t;return(await vv(n,i))(e)}var Gk=Gr(aA(),1);function Wk(e){let t;try{t=Zg.openSync(e,"r")}catch{return}try{let i=new Gk.default(t).next().toString("utf8"),r=i.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/u);if(r)return r[1];let o=i.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/u);if(o)return o[1]}finally{try{Zg.closeSync(t)}catch{}}}var Kk=Wk,yv=e=>String(e).split(/[/\\]/u).pop();function Gg(e,t){if(!t)return;let n=yv(t).toLowerCase();return e.find(({filenames:i})=>i?.some(r=>r.toLowerCase()===n))??e.find(({extensions:i})=>i?.some(r=>n.endsWith(r)))}function Hk(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n?.includes(t))??e.find(({extensions:n})=>n?.includes(`.${t}`))}function qk(e,t){if(!t||yv(t).includes("."))return;let n=Kk(t);if(n)return e.find(({interpreters:i})=>i?.includes(n))}function Yk(e,t){let n=e.plugins.flatMap(r=>r.languages??[]),i=Hk(n,t.language)??Gg(n,t.physicalFile)??Gg(n,t.file)??qk(n,t.physicalFile);return i?.parsers[0]}var _v=Yk;async function Jk(e,t){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:n,withNodeModules:i}=t;Array.isArray(n)||(n=[n]);let r=await Zk(e,{ignorePath:n,withNodeModules:i}),o;return r||(o=await Xk(e,t)),{ignored:r,inferredParser:o??null}}async function Xk(e,t){let n;return t.resolveConfig!==!1&&(n=await gv(e)),n?.parser??_v(t,{physicalFile:e})}var Qk=Jk;function eI(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
143
|
+
`?"crlf":"cr":"lf"}function _p(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
144
144
|
`;default:return`
|
|
145
|
-
`}}function
|
|
145
|
+
`}}function Ev(e,t){let n;switch(t){case`
|
|
146
146
|
`:n=/\n/gu;break;case"\r":n=/\r/gu;break;case`\r
|
|
147
|
-
`:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let i=e.match(n);return i?i.length:0}function
|
|
148
|
-
`)}var An="string",vr="array",wn="cursor",yr="indent",_r="align",
|
|
149
|
-
Expected it to be 'string' or 'object'.`;if(Sn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=
|
|
150
|
-
Expected it to be ${i}.`}var rI=class extends Error{name="InvalidDocError";constructor(e){super(tI(e)),this.doc=e}},pi=rI,Vg={};function nI(e,t,n,i){let r=[e];for(;r.length>0;){let o=r.pop();if(o===Vg){n(r.pop());continue}n&&r.push(o,Vg);let u=Sn(o);if(!u)throw new pi(o);if(t?.(o)!==!1)switch(u){case vr:case Er:{let a=u===vr?o:o.parts;for(let s=a.length,c=s-1;c>=0;--c)r.push(a[c]);break}case Nt:r.push(o.flatContents,o.breakContents);break;case $t:if(i&&o.expandedStates)for(let a=o.expandedStates.length,s=a-1;s>=0;--s)r.push(o.expandedStates[s]);else r.push(o.contents);break;case _r:case yr:case Yr:case Cr:case Fr:r.push(o.contents);break;case An:case wn:case qr:case Jr:case kt:case Rt:break;default:throw new pi(o)}}}var iI=nI;function oI(e,t){if(typeof e=="string")return t(e);let n=new Map;return i(e);function i(o){if(n.has(o))return n.get(o);let u=r(o);return n.set(o,u),u}function r(o){switch(Sn(o)){case vr:return t(o.map(i));case Er:return t({...o,parts:o.parts.map(i)});case Nt:return t({...o,breakContents:i(o.breakContents),flatContents:i(o.flatContents)});case $t:{let{expandedStates:u,contents:a}=o;return u?(u=u.map(i),a=u[0]):a=i(a),t({...o,contents:a,expandedStates:u})}case _r:case yr:case Yr:case Cr:case Fr:return t({...o,contents:i(o.contents)});case An:case wn:case qr:case Jr:case kt:case Rt:return t(o);default:throw new pi(o)}}}function Zg(e){if(e.length>0){let t=qe(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function uI(e){let t=new Set,n=[];function i(o){if(o.type===Rt&&Zg(n),o.type===$t){if(n.push(o),t.has(o))return!1;t.add(o)}}function r(o){o.type===$t&&n.pop().break&&Zg(n)}iI(e,i,r,!0)}function Gg(e){for(e=[...e];e.length>=2&&qe(!1,e,-2).type===kt&&qe(!1,e,-1).type===Rt;)e.length-=2;if(e.length>0){let t=bo(qe(!1,e,-1));e[e.length-1]=t}return e}function bo(e){switch(Sn(e)){case yr:case Yr:case $t:case Fr:case Cr:{let t=bo(e.contents);return{...e,contents:t}}case Nt:return{...e,breakContents:bo(e.breakContents),flatContents:bo(e.flatContents)};case Er:return{...e,parts:Gg(e.parts)};case vr:return Gg(e);case An:return e.replace(/[\n\r]*$/u,"");case _r:case wn:case qr:case Jr:case kt:case Rt:break;default:throw new pi(e)}return e}function aI(e){return bo(cI(e))}function sI(e){switch(Sn(e)){case Er:if(e.parts.every(t=>t===""))return"";break;case $t:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===$t&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case _r:case yr:case Yr:case Fr:if(!e.contents)return"";break;case Nt:if(!e.flatContents&&!e.breakContents)return"";break;case vr:{let t=[];for(let n of e){if(!n)continue;let[i,...r]=Array.isArray(n)?n:[n];typeof i=="string"&&typeof qe(!1,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...r)}return t.length===0?"":t.length===1?t[0]:t}case An:case wn:case qr:case Jr:case kt:case Cr:case Rt:break;default:throw new pi(e)}return e}function cI(e){return oI(e,t=>sI(t))}function ha(e,t){return e.type===Cr?{...e,contents:t(e.contents)}:t(e)}var lI=()=>{},La=lI;function Ud(e){return La(e),{type:yr,contents:e}}function Wg(e,t){return La(t),{type:_r,contents:t,n:e}}function Kg(e){return La(e),{type:Fr,contents:e}}var _v={type:Rt},Ev={type:kt,hard:!0},fI={type:kt},si=[Ev,_v],ii={type:wn};function dI(e,t,n){La(e);let i=e;if(t>0){for(let r=0;r<Math.floor(t/n);++r)i=Ud(i);i=Wg(t%n,i),i=Wg(Number.NEGATIVE_INFINITY,i)}return i}function pr(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let i of e)if(Array.isArray(i))n.push(...pr(i));else{let r=pr(i);r!==""&&n.push(r)}return n}return e.type===Nt?{...e,breakContents:pr(e.breakContents),flatContents:pr(e.flatContents)}:e.type===$t?{...e,contents:pr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(pr)}:e.type===Er?{type:"fill",parts:e.parts.map(pr)}:e.contents?{...e,contents:pr(e.contents)}:e}function pI(e){let t=Object.create(null),n=new Set;return i(pr(e));function i(o,u,a){var s,c;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let l=o.map(i).filter(Boolean);return l.length===1?l[0]:`[${l.join(", ")}]`}if(o.type===kt){let l=((s=a?.[u+1])==null?void 0:s.type)===Rt;return o.literal?l?"literalline":"literallineWithoutBreakParent":o.hard?l?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Rt)return((c=a?.[u-1])==null?void 0:c.type)===kt&&a[u-1].hard?void 0:"breakParent";if(o.type===qr)return"trim";if(o.type===yr)return"indent("+i(o.contents)+")";if(o.type===_r)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+i(o.contents)+")":o.n<0?"dedent("+i(o.contents)+")":o.n.type==="root"?"markAsRoot("+i(o.contents)+")":"align("+JSON.stringify(o.n)+", "+i(o.contents)+")";if(o.type===Nt)return"ifBreak("+i(o.breakContents)+(o.flatContents?", "+i(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${r(o.groupId)} }`:"")+")";if(o.type===Yr){let l=[];o.negate&&l.push("negate: true"),o.groupId&&l.push(`groupId: ${r(o.groupId)}`);let f=l.length>0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${i(o.contents)}${f})`}if(o.type===$t){let l=[];o.break&&o.break!=="propagated"&&l.push("shouldBreak: true"),o.id&&l.push(`id: ${r(o.id)}`);let f=l.length>0?`, { ${l.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(d=>i(d)).join(",")}]${f})`:`group(${i(o.contents)}${f})`}if(o.type===Er)return`fill([${o.parts.map(l=>i(l)).join(", ")}])`;if(o.type===Fr)return"lineSuffix("+i(o.contents)+")";if(o.type===Jr)return"lineSuffixBoundary";if(o.type===Cr)return`label(${JSON.stringify(o.label)}, ${i(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function r(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let a=0;;a++){let s=u+(a>0?` #${a}`:"");if(!n.has(s))return n.add(s),t[o]=`Symbol.for(${JSON.stringify(s)})`}}}var mI=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function DI(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function hI(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var gI=e=>!(DI(e)||hI(e)),vI=/[^\x20-\x7F]/u;function yI(e){if(!e)return 0;if(!vI.test(e))return e.length;e=e.replace(mI()," ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||(t+=gI(i)?1:2)}return t}var yp=yI,gt=Symbol("MODE_BREAK"),qt=Symbol("MODE_FLAT"),oi=Symbol("cursor"),Md=Symbol("DOC_FILL_PRINTED_LENGTH");function Fv(){return{value:"",length:0,queue:[]}}function _I(e,t){return Vd(e,{type:"indent"},t)}function EI(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Fv():t<0?Vd(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Vd(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Vd(e,t,n){let i=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,u=0,a=0;for(let m of i)switch(m.type){case"indent":l(),n.useTabs?s(1):c(n.tabWidth);break;case"stringAlign":l(),r+=m.n,o+=m.n.length;break;case"numberAlign":u+=1,a+=m.n;break;default:throw new Error(`Unexpected type '${m.type}'`)}return d(),{...e,value:r,length:o,queue:i};function s(m){r+=" ".repeat(m),o+=n.tabWidth*m}function c(m){r+=" ".repeat(m),o+=m}function l(){n.useTabs?f():d()}function f(){u>0&&s(u),p()}function d(){a>0&&c(a),p()}function p(){u=0,a=0}}function Zd(e){let t=0,n=0,i=e.length;e:for(;i--;){let r=e[i];if(r===oi){n++;continue}for(let o=r.length-1;o>=0;o--){let u=r[o];if(u===" "||u===" ")t++;else{e[i]=r.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=i+1;n-- >0;)e.push(oi);return t}function aa(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,a=[e],s=[];for(;n>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:l}=a.pop(),f=Sn(l);switch(f){case An:s.push(l),n-=yp(l);break;case vr:case Er:{let d=f===vr?l:l.parts,p=l[Md]??0;for(let m=d.length-1;m>=p;m--)a.push({mode:c,doc:d[m]});break}case yr:case _r:case Yr:case Cr:a.push({mode:c,doc:l.contents});break;case qr:n+=Zd(s);break;case $t:{if(o&&l.break)return!1;let d=l.break?gt:c,p=l.expandedStates&&d===gt?qe(!1,l.expandedStates,-1):l.contents;a.push({mode:d,doc:p});break}case Nt:{let p=(l.groupId?r[l.groupId]||qt:c)===gt?l.breakContents:l.flatContents;p&&a.push({mode:c,doc:p});break}case kt:if(c===gt||l.hard)return!0;l.soft||(s.push(" "),n--);break;case Fr:i=!0;break;case Jr:if(i)return!1;break}}return!1}function _p(e,t){let n={},i=t.printWidth,r=vp(t.endOfLine),o=0,u=[{ind:Fv(),mode:gt,doc:e}],a=[],s=!1,c=[],l=0;for(uI(e);u.length>0;){let{ind:d,mode:p,doc:m}=u.pop();switch(Sn(m)){case An:{let D=r!==`
|
|
151
|
-
`?
|
|
152
|
-
`,r):
|
|
147
|
+
`:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let i=e.match(n);return i?i.length:0}function tI(e){return Bo(!1,e,/\r\n?/gu,`
|
|
148
|
+
`)}var An="string",vr="array",wn="cursor",yr="indent",_r="align",Hr="trim",$t="group",Er="fill",Nt="if-break",qr="indent-if-break",Fr="line-suffix",Yr="line-suffix-boundary",kt="line",Cr="label",Rt="break-parent",Fv=new Set([wn,yr,_r,Hr,$t,Er,Nt,qr,Fr,Yr,kt,Cr,Rt]),rI=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},qe=rI;function nI(e){if(typeof e=="string")return An;if(Array.isArray(e))return vr;if(!e)return;let{type:t}=e;if(Fv.has(t))return t}var Sn=nI,iI=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function oI(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
149
|
+
Expected it to be 'string' or 'object'.`;if(Sn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let i=iI([...Fv].map(r=>`'${r}'`));return`Unexpected doc.type '${e.type}'.
|
|
150
|
+
Expected it to be ${i}.`}var uI=class extends Error{name="InvalidDocError";constructor(e){super(oI(e)),this.doc=e}},Di=uI,Wg={};function aI(e,t,n,i){let r=[e];for(;r.length>0;){let o=r.pop();if(o===Wg){n(r.pop());continue}n&&r.push(o,Wg);let u=Sn(o);if(!u)throw new Di(o);if(t?.(o)!==!1)switch(u){case vr:case Er:{let a=u===vr?o:o.parts;for(let s=a.length,c=s-1;c>=0;--c)r.push(a[c]);break}case Nt:r.push(o.flatContents,o.breakContents);break;case $t:if(i&&o.expandedStates)for(let a=o.expandedStates.length,s=a-1;s>=0;--s)r.push(o.expandedStates[s]);else r.push(o.contents);break;case _r:case yr:case qr:case Cr:case Fr:r.push(o.contents);break;case An:case wn:case Hr:case Yr:case kt:case Rt:break;default:throw new Di(o)}}}var sI=aI;function cI(e,t){if(typeof e=="string")return t(e);let n=new Map;return i(e);function i(o){if(n.has(o))return n.get(o);let u=r(o);return n.set(o,u),u}function r(o){switch(Sn(o)){case vr:return t(o.map(i));case Er:return t({...o,parts:o.parts.map(i)});case Nt:return t({...o,breakContents:i(o.breakContents),flatContents:i(o.flatContents)});case $t:{let{expandedStates:u,contents:a}=o;return u?(u=u.map(i),a=u[0]):a=i(a),t({...o,contents:a,expandedStates:u})}case _r:case yr:case qr:case Cr:case Fr:return t({...o,contents:i(o.contents)});case An:case wn:case Hr:case Yr:case kt:case Rt:return t(o);default:throw new Di(o)}}}function Kg(e){if(e.length>0){let t=qe(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function lI(e){let t=new Set,n=[];function i(o){if(o.type===Rt&&Kg(n),o.type===$t){if(n.push(o),t.has(o))return!1;t.add(o)}}function r(o){o.type===$t&&n.pop().break&&Kg(n)}sI(e,i,r,!0)}function Hg(e){for(e=[...e];e.length>=2&&qe(!1,e,-2).type===kt&&qe(!1,e,-1).type===Rt;)e.length-=2;if(e.length>0){let t=So(qe(!1,e,-1));e[e.length-1]=t}return e}function So(e){switch(Sn(e)){case yr:case qr:case $t:case Fr:case Cr:{let t=So(e.contents);return{...e,contents:t}}case Nt:return{...e,breakContents:So(e.breakContents),flatContents:So(e.flatContents)};case Er:return{...e,parts:Hg(e.parts)};case vr:return Hg(e);case An:return e.replace(/[\n\r]*$/u,"");case _r:case wn:case Hr:case Yr:case kt:case Rt:break;default:throw new Di(e)}return e}function fI(e){return So(pI(e))}function dI(e){switch(Sn(e)){case Er:if(e.parts.every(t=>t===""))return"";break;case $t:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===$t&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case _r:case yr:case qr:case Fr:if(!e.contents)return"";break;case Nt:if(!e.flatContents&&!e.breakContents)return"";break;case vr:{let t=[];for(let n of e){if(!n)continue;let[i,...r]=Array.isArray(n)?n:[n];typeof i=="string"&&typeof qe(!1,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...r)}return t.length===0?"":t.length===1?t[0]:t}case An:case wn:case Hr:case Yr:case kt:case Cr:case Rt:break;default:throw new Di(e)}return e}function pI(e){return cI(e,t=>dI(t))}function va(e,t){return e.type===Cr?{...e,contents:t(e.contents)}:t(e)}var mI=()=>{},Ua=mI;function Vd(e){return Ua(e),{type:yr,contents:e}}function qg(e,t){return Ua(t),{type:_r,contents:t,n:e}}function Yg(e){return Ua(e),{type:Fr,contents:e}}var Cv={type:Rt},bv={type:kt,hard:!0},DI={type:kt},li=[bv,Cv],ui={type:wn};function hI(e,t,n){Ua(e);let i=e;if(t>0){for(let r=0;r<Math.floor(t/n);++r)i=Vd(i);i=qg(t%n,i),i=qg(Number.NEGATIVE_INFINITY,i)}return i}function pr(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let i of e)if(Array.isArray(i))n.push(...pr(i));else{let r=pr(i);r!==""&&n.push(r)}return n}return e.type===Nt?{...e,breakContents:pr(e.breakContents),flatContents:pr(e.flatContents)}:e.type===$t?{...e,contents:pr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(pr)}:e.type===Er?{type:"fill",parts:e.parts.map(pr)}:e.contents?{...e,contents:pr(e.contents)}:e}function gI(e){let t=Object.create(null),n=new Set;return i(pr(e));function i(o,u,a){var s,c;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let l=o.map(i).filter(Boolean);return l.length===1?l[0]:`[${l.join(", ")}]`}if(o.type===kt){let l=((s=a?.[u+1])==null?void 0:s.type)===Rt;return o.literal?l?"literalline":"literallineWithoutBreakParent":o.hard?l?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Rt)return((c=a?.[u-1])==null?void 0:c.type)===kt&&a[u-1].hard?void 0:"breakParent";if(o.type===Hr)return"trim";if(o.type===yr)return"indent("+i(o.contents)+")";if(o.type===_r)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+i(o.contents)+")":o.n<0?"dedent("+i(o.contents)+")":o.n.type==="root"?"markAsRoot("+i(o.contents)+")":"align("+JSON.stringify(o.n)+", "+i(o.contents)+")";if(o.type===Nt)return"ifBreak("+i(o.breakContents)+(o.flatContents?", "+i(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${r(o.groupId)} }`:"")+")";if(o.type===qr){let l=[];o.negate&&l.push("negate: true"),o.groupId&&l.push(`groupId: ${r(o.groupId)}`);let f=l.length>0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${i(o.contents)}${f})`}if(o.type===$t){let l=[];o.break&&o.break!=="propagated"&&l.push("shouldBreak: true"),o.id&&l.push(`id: ${r(o.id)}`);let f=l.length>0?`, { ${l.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(p=>i(p)).join(",")}]${f})`:`group(${i(o.contents)}${f})`}if(o.type===Er)return`fill([${o.parts.map(l=>i(l)).join(", ")}])`;if(o.type===Fr)return"lineSuffix("+i(o.contents)+")";if(o.type===Yr)return"lineSuffixBoundary";if(o.type===Cr)return`label(${JSON.stringify(o.label)}, ${i(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function r(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let a=0;;a++){let s=u+(a>0?` #${a}`:"");if(!n.has(s))return n.add(s),t[o]=`Symbol.for(${JSON.stringify(s)})`}}}var vI=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function yI(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function _I(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var EI=e=>!(yI(e)||_I(e)),FI=/[^\x20-\x7F]/u;function CI(e){if(!e)return 0;if(!FI.test(e))return e.length;e=e.replace(vI()," ");let t=0;for(let n of e){let i=n.codePointAt(0);i<=31||i>=127&&i<=159||i>=768&&i<=879||(t+=EI(i)?1:2)}return t}var Ep=CI,gt=Symbol("MODE_BREAK"),qt=Symbol("MODE_FLAT"),ai=Symbol("cursor"),Zd=Symbol("DOC_FILL_PRINTED_LENGTH");function Av(){return{value:"",length:0,queue:[]}}function bI(e,t){return Gd(e,{type:"indent"},t)}function AI(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Av():t<0?Gd(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Gd(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Gd(e,t,n){let i=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],r="",o=0,u=0,a=0;for(let d of i)switch(d.type){case"indent":l(),n.useTabs?s(1):c(n.tabWidth);break;case"stringAlign":l(),r+=d.n,o+=d.n.length;break;case"numberAlign":u+=1,a+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:r,length:o,queue:i};function s(d){r+=" ".repeat(d),o+=n.tabWidth*d}function c(d){r+=" ".repeat(d),o+=d}function l(){n.useTabs?f():p()}function f(){u>0&&s(u),m()}function p(){a>0&&c(a),m()}function m(){u=0,a=0}}function Wd(e){let t=0,n=0,i=e.length;e:for(;i--;){let r=e[i];if(r===ai){n++;continue}for(let o=r.length-1;o>=0;o--){let u=r[o];if(u===" "||u===" ")t++;else{e[i]=r.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=i+1;n-- >0;)e.push(ai);return t}function ca(e,t,n,i,r,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,a=[e],s=[];for(;n>=0;){if(a.length===0){if(u===0)return!0;a.push(t[--u]);continue}let{mode:c,doc:l}=a.pop(),f=Sn(l);switch(f){case An:s.push(l),n-=Ep(l);break;case vr:case Er:{let p=f===vr?l:l.parts,m=l[Zd]??0;for(let d=p.length-1;d>=m;d--)a.push({mode:c,doc:p[d]});break}case yr:case _r:case qr:case Cr:a.push({mode:c,doc:l.contents});break;case Hr:n+=Wd(s);break;case $t:{if(o&&l.break)return!1;let p=l.break?gt:c,m=l.expandedStates&&p===gt?qe(!1,l.expandedStates,-1):l.contents;a.push({mode:p,doc:m});break}case Nt:{let m=(l.groupId?r[l.groupId]||qt:c)===gt?l.breakContents:l.flatContents;m&&a.push({mode:c,doc:m});break}case kt:if(c===gt||l.hard)return!0;l.soft||(s.push(" "),n--);break;case Fr:i=!0;break;case Yr:if(i)return!1;break}}return!1}function Fp(e,t){let n={},i=t.printWidth,r=_p(t.endOfLine),o=0,u=[{ind:Av(),mode:gt,doc:e}],a=[],s=!1,c=[],l=0;for(lI(e);u.length>0;){let{ind:p,mode:m,doc:d}=u.pop();switch(Sn(d)){case An:{let D=r!==`
|
|
151
|
+
`?Bo(!1,d,`
|
|
152
|
+
`,r):d;a.push(D),u.length>0&&(o+=Ep(D));break}case vr:for(let D=d.length-1;D>=0;D--)u.push({ind:p,mode:m,doc:d[D]});break;case wn:if(l>=2)throw new Error("There are too many 'cursor' in doc.");a.push(ai),l++;break;case yr:u.push({ind:bI(p,t),mode:m,doc:d.contents});break;case _r:u.push({ind:AI(p,d.n,t),mode:m,doc:d.contents});break;case Hr:o-=Wd(a);break;case $t:switch(m){case qt:if(!s){u.push({ind:p,mode:d.break?gt:qt,doc:d.contents});break}case gt:{s=!1;let D={ind:p,mode:qt,doc:d.contents},h=i-o,y=c.length>0;if(!d.break&&ca(D,u,h,y,n))u.push(D);else if(d.expandedStates){let g=qe(!1,d.expandedStates,-1);if(d.break){u.push({ind:p,mode:gt,doc:g});break}else for(let v=1;v<d.expandedStates.length+1;v++)if(v>=d.expandedStates.length){u.push({ind:p,mode:gt,doc:g});break}else{let C=d.expandedStates[v],_={ind:p,mode:qt,doc:C};if(ca(_,u,h,y,n)){u.push(_);break}}}else u.push({ind:p,mode:gt,doc:d.contents});break}}d.id&&(n[d.id]=qe(!1,u,-1).mode);break;case Er:{let D=i-o,h=d[Zd]??0,{parts:y}=d,g=y.length-h;if(g===0)break;let v=y[h+0],C=y[h+1],_={ind:p,mode:qt,doc:v},b={ind:p,mode:gt,doc:v},k=ca(_,[],D,c.length>0,n,!0);if(g===1){k?u.push(_):u.push(b);break}let F={ind:p,mode:qt,doc:C},w={ind:p,mode:gt,doc:C};if(g===2){k?u.push(F,_):u.push(w,b);break}let T=y[h+2],$={ind:p,mode:m,doc:{...d,[Zd]:h+2}};ca({ind:p,mode:qt,doc:[v,C,T]},[],D,c.length>0,n,!0)?u.push($,F,_):k?u.push($,w,_):u.push($,w,b);break}case Nt:case qr:{let D=d.groupId?n[d.groupId]:m;if(D===gt){let h=d.type===Nt?d.breakContents:d.negate?d.contents:Vd(d.contents);h&&u.push({ind:p,mode:m,doc:h})}if(D===qt){let h=d.type===Nt?d.flatContents:d.negate?Vd(d.contents):d.contents;h&&u.push({ind:p,mode:m,doc:h})}break}case Fr:c.push({ind:p,mode:m,doc:d.contents});break;case Yr:c.length>0&&u.push({ind:p,mode:m,doc:bv});break;case kt:switch(m){case qt:if(d.hard)s=!0;else{d.soft||(a.push(" "),o+=1);break}case gt:if(c.length>0){u.push({ind:p,mode:m,doc:d},...c.reverse()),c.length=0;break}d.literal?p.root?(a.push(r,p.root.value),o=p.root.length):(a.push(r),o=0):(o-=Wd(a),a.push(r+p.value),o=p.length);break}break;case Cr:u.push({ind:p,mode:m,doc:d.contents});break;case Rt:break;default:throw new Di(d)}u.length===0&&c.length>0&&(u.push(...c.reverse()),c.length=0)}let f=a.indexOf(ai);if(f!==-1){let p=a.indexOf(ai,f+1);if(p===-1)return{formatted:a.filter(h=>h!==ai).join("")};let m=a.slice(0,f).join(""),d=a.slice(f+1,p).join(""),D=a.slice(p+1).join("");return{formatted:m+d+D,cursorNodeStart:m.length,cursorNodeText:d}}return{formatted:a.join("")}}function wI(e,t,n=0){let i=0;for(let r=n;r<e.length;++r)e[r]===" "?i=i+t-i%t:i++;return i}var Cp=wI,vn,Kd,ya,SI=class{constructor(e){Jt(this,vn),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return qe(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:qe(!1,this.stack,-2)}get node(){return qe(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=qe(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ni(this,vn,ya).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?qe(!1,e,-2):null}getValue(){return qe(!1,this.stack,-1)}getNode(e=0){let t=ni(this,vn,Kd).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:i}=n,r=qe(!1,n,-1);for(let o of t)r=r[o],n.push(o,r);try{return e(this)}finally{n.length=i}}callParent(e,t=0){let n=ni(this,vn,Kd).call(this,t+1),i=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...i)}}each(e,...t){let{stack:n}=this,{length:i}=n,r=qe(!1,n,-1);for(let o of t)r=r[o],n.push(o,r);try{for(let o=0;o<r.length;++o)n.push(o,r[o]),e(this,o,r),n.length-=2}finally{n.length=i}}map(e,...t){let n=[];return this.each((i,r,o)=>{n[r]=e(i,r,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,i=this.stack[t--];for(let r of e){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],i=this.stack[t--]),r&&!r(i,n,o))return!1;n=this.stack[t--],i=this.stack[t--]}return!0}findAncestor(e){for(let t of ni(this,vn,ya).call(this))if(e(t))return t}hasAncestor(e){for(let t of ni(this,vn,ya).call(this))if(e(t))return!0;return!1}};vn=new WeakSet;Kd=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1};ya=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var $I=SI;function kI(e){return e!==null&&typeof e=="object"}var II=kI;function*Ma(e,t){let{getVisitorKeys:n,filter:i=()=>!0}=t,r=o=>II(o)&&i(o);for(let o of n(e)){let u=e[o];if(Array.isArray(u))for(let a of u)r(a)&&(yield a);else r(u)&&(yield u)}}function*xI(e,t){let n=[e];for(let i=0;i<n.length;i++){let r=n[i];for(let o of Ma(r,t))yield o,n.push(o)}}function PI(e,t){return Ma(e,t).next().done}function To(e){return(t,n,i)=>{let r=!!i?.backwards;if(n===!1)return!1;let{length:o}=t,u=n;for(;u>=0&&u<o;){let a=t.charAt(u);if(e instanceof RegExp){if(!e.test(a))return u}else if(!e.includes(a))return u;r?u--:u++}return u===-1||u===o?u:!1}}var OI=To(/\s/u),Zr=To(" "),wv=To(",; "),Sv=To(/[^\n\r]/u);function BI(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
|
|
153
153
|
`)return t-2;if(r===`
|
|
154
154
|
`||r==="\r"||r==="\u2028"||r==="\u2029")return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
|
|
155
155
|
`)return t+2;if(r===`
|
|
156
|
-
`||r==="\r"||r==="\u2028"||r==="\u2029")return t+1}return t}var bn=
|
|
156
|
+
`||r==="\r"||r==="\u2028"||r==="\u2029")return t+1}return t}var bn=BI;function TI(e,t,n={}){let i=Zr(e,n.backwards?t-1:t,n),r=bn(e,i,n);return i!==r}var zr=TI;function NI(e){return Array.isArray(e)&&e.length>0}var RI=NI,$v=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),jI=e=>Object.keys(e).filter(t=>!$v.has(t));function LI(e){return e?t=>e(t,$v):jI}var No=LI;function zI(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}function bp(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=zI(e)}function si(e,t){t.leading=!0,t.trailing=!1,bp(e,t)}function yn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),bp(e,t)}function ci(e,t){t.leading=!1,t.trailing=!0,bp(e,t)}var vd=new WeakMap;function Ap(e,t){if(vd.has(e))return vd.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:i,getVisitorKeys:r},locStart:o,locEnd:u}=t;if(!i)return[];let a=(n?.(e,t)??[...Ma(e,{getVisitorKeys:No(r)})]).flatMap(s=>i(s)?[s]:Ap(s,t));return a.sort((s,c)=>o(s)-o(c)||u(s)-u(c)),vd.set(e,a),a}function kv(e,t,n,i){let{locStart:r,locEnd:o}=n,u=r(t),a=o(t),s=Ap(e,n),c,l,f=0,p=s.length;for(;f<p;){let m=f+p>>1,d=s[m],D=r(d),h=o(d);if(D<=u&&a<=h)return kv(d,t,n,d);if(h<=u){c=d,f=m+1;continue}if(a<=D){l=d,p=m;continue}throw new Error("Comment location overlaps with node location")}if(i?.type==="TemplateLiteral"){let{quasis:m}=i,d=_d(m,t,n);c&&_d(m,c,n)!==d&&(c=null),l&&_d(m,l,n)!==d&&(l=null)}return{enclosingNode:i,precedingNode:c,followingNode:l}}var yd=()=>!1;function UI(e,t){let{comments:n}=e;if(delete e.comments,!RI(n)||!t.printer.canAttachComment)return;let i=[],{locStart:r,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:a={}},originalText:s}=t,{ownLine:c=yd,endOfLine:l=yd,remaining:f=yd}=a,p=n.map((m,d)=>({...kv(e,m,t),comment:m,text:s,options:t,ast:e,isLastComment:n.length-1===d}));for(let[m,d]of p.entries()){let{comment:D,precedingNode:h,enclosingNode:y,followingNode:g,text:v,options:C,ast:_,isLastComment:b}=d;if(C.parser==="json"||C.parser==="json5"||C.parser==="jsonc"||C.parser==="__js_expression"||C.parser==="__ts_expression"||C.parser==="__vue_expression"||C.parser==="__vue_ts_expression"){if(r(D)-r(_)<=0){si(_,D);continue}if(o(D)-o(_)>=0){ci(_,D);continue}}let k;if(u?k=[d]:(D.enclosingNode=y,D.precedingNode=h,D.followingNode=g,k=[D,v,C,_,b]),MI(v,C,p,m))D.placement="ownLine",c(...k)||(g?si(g,D):h?ci(h,D):yn(y||_,D));else if(VI(v,C,p,m))D.placement="endOfLine",l(...k)||(h?ci(h,D):g?si(g,D):yn(y||_,D));else if(D.placement="remaining",!f(...k))if(h&&g){let F=i.length;F>0&&i[F-1].followingNode!==g&&Xg(i,C),i.push(d)}else h?ci(h,D):g?si(g,D):yn(y||_,D)}if(Xg(i,t),!u)for(let m of n)delete m.precedingNode,delete m.enclosingNode,delete m.followingNode}var Iv=e=>!/[\S\n\u2028\u2029]/u.test(e);function MI(e,t,n,i){let{comment:r,precedingNode:o}=n[i],{locStart:u,locEnd:a}=t,s=u(r);if(o)for(let c=i-1;c>=0;c--){let{comment:l,precedingNode:f}=n[c];if(f!==o||!Iv(e.slice(a(l),s)))break;s=u(l)}return zr(e,s,{backwards:!0})}function VI(e,t,n,i){let{comment:r,followingNode:o}=n[i],{locStart:u,locEnd:a}=t,s=a(r);if(o)for(let c=i+1;c<n.length;c++){let{comment:l,followingNode:f}=n[c];if(f!==o||!Iv(e.slice(s,u(l))))break;s=a(l)}return zr(e,s)}function Xg(e,t){var n,i;let r=e.length;if(r===0)return;let{precedingNode:o,followingNode:u}=e[0],a=t.locStart(u),s;for(s=r;s>0;--s){let{comment:c,precedingNode:l,followingNode:f}=e[s-1];Jg.strictEqual(l,o),Jg.strictEqual(f,u);let p=t.originalText.slice(t.locEnd(c),a);if(((i=(n=t.printer).isGap)==null?void 0:i.call(n,p,t))??/^[\s(]*$/u.test(p))a=t.locStart(c);else break}for(let[c,{comment:l}]of e.entries())c<s?ci(o,l):si(u,l);for(let c of[o,u])c.comments&&c.comments.length>1&&c.comments.sort((l,f)=>t.locStart(l)-t.locStart(f));e.length=0}function _d(e,t,n){let i=n.locStart(t)-1;for(let r=1;r<e.length;++r)if(i<n.locStart(e[r]))return r-1;return 0}function ZI(e,t){let n=t-1;n=Zr(e,n,{backwards:!0}),n=bn(e,n,{backwards:!0}),n=Zr(e,n,{backwards:!0});let i=bn(e,n,{backwards:!0});return n!==i}var wp=ZI;function xv(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function GI(e,t){var n;let i=e.node,r=[xv(e,t)],{printer:o,originalText:u,locStart:a,locEnd:s}=t;if((n=o.isBlockComment)==null?void 0:n.call(o,i)){let f=zr(u,s(i))?zr(u,a(i),{backwards:!0})?li:DI:" ";r.push(f)}else r.push(li);let l=bn(u,Zr(u,s(i)));return l!==!1&&zr(u,l)&&r.push(li),r}function WI(e,t,n){var i;let r=e.node,o=xv(e,t),{printer:u,originalText:a,locStart:s}=t,c=(i=u.isBlockComment)==null?void 0:i.call(u,r);if(n?.hasLineSuffix&&!n?.isBlock||zr(a,s(r),{backwards:!0})){let l=wp(a,s(r));return{doc:Yg([li,l?li:"",o]),isBlock:c,hasLineSuffix:!0}}return!c||n?.hasLineSuffix?{doc:[Yg([" ",o]),Cv],isBlock:c,hasLineSuffix:!0}:{doc:[" ",o],isBlock:c,hasLineSuffix:!1}}function KI(e,t){let n=e.node;if(!n)return{};let i=t[Symbol.for("printedComments")];if((n.comments||[]).filter(s=>!i.has(s)).length===0)return{leading:"",trailing:""};let o=[],u=[],a;return e.each(()=>{let s=e.node;if(i?.has(s))return;let{leading:c,trailing:l}=s;c?o.push(GI(e,t)):l&&(a=WI(e,t,a),u.push(a.doc))},"comments"),{leading:o,trailing:u}}function HI(e,t,n){let{leading:i,trailing:r}=KI(e,n);return!i&&!r?t:va(t,o=>[i,o,r])}function qI(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let i of t){if(!i.printed&&!n.has(i))throw new Error('Comment "'+i.value.trim()+'" was not printed. Please report this error!');delete i.printed}}function YI(e){return()=>{}}var JI=YI,XI={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
157
157
|
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
158
158
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
159
159
|
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
160
|
-
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function
|
|
161
|
-
`+i,e.codeFrame=i,e}throw e}var
|
|
162
|
-
`,r)+1),s=i.slice(a,r).match(/^\s*/u)[0],c=
|
|
163
|
-
`&&(
|
|
164
|
-
`)),
|
|
165
|
-
`,
|
|
166
|
-
`);n-=a(n),i-=a(i),r-=a(r),e=Jk(e)}return{hasBOM:u,text:e,options:e0(e,{...t,cursorOffset:n,rangeStart:i,rangeEnd:r,endOfLine:o})}}async function t0(e,t){let n=await Ov(t);return!n.hasPragma||n.hasPragma(e)}async function zv(e,t){let{hasBOM:n,text:i,options:r}=Lv(e,await gi(t));if(r.rangeStart>=r.rangeEnd&&i!==""||r.requirePragma&&!await t0(i,r))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return r.rangeStart>0||r.rangeEnd<i.length?o=await Cx(i,r):(!r.requirePragma&&r.insertPragma&&r.printer.insertPragma&&!await t0(i,r)&&(i=r.printer.insertPragma(i)),o=await jv(i,r)),n&&(o.formatted=Rv+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function bx(e,t,n){let{text:i,options:r}=Lv(e,await gi(t)),o=await Bo(i,r);return n&&(n.preprocessForPrint&&(o.ast=await Tv(o.ast,r)),n.massage&&(o.ast=px(o.ast,r))),o}async function Ax(e,t){t=await gi(t);let n=await Ua(e,t);return _p(n,t)}async function wx(e,t){let n=pI(e),{formatted:i}=await zv(n,{...t,parser:"__js_expression"});return i}async function Sx(e,t){t=await gi(t);let{ast:n}=await Bo(e,t);return Ua(n,t)}async function $x(e,t){return _p(e,await gi(t))}var Uv={};ko(Uv,{CATEGORY_CONFIG:()=>kx,CATEGORY_EDITOR:()=>Ix,CATEGORY_FORMAT:()=>xx,CATEGORY_GLOBAL:()=>Bx,CATEGORY_OTHER:()=>Px,CATEGORY_OUTPUT:()=>Ox,CATEGORY_SPECIAL:()=>Tx});var kx="Config",Ix="Editor",xx="Format",Px="Other",Ox="Output",Bx="Global",Tx="Special",Mv={};ko(Mv,{languages:()=>i6,options:()=>n6,parsers:()=>o6,printers:()=>u6});var Nx=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],yt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Rx={singleQuote:yt.singleQuote},jx=Rx,Lx=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],zx={bracketSpacing:yt.bracketSpacing},Ux=zx,Mx=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],Vx=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],r0="HTML",Zx={bracketSameLine:yt.bracketSameLine,htmlWhitespaceSensitivity:{category:r0,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:yt.singleAttributePerLine,vueIndentScriptAndStyle:{category:r0,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Gx=Zx,Wx=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],jr="JavaScript",Kx={arrowParens:{category:jr,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:yt.bracketSameLine,objectWrap:yt.objectWrap,bracketSpacing:yt.bracketSpacing,jsxBracketSameLine:{category:jr,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:jr,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:jr,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:jr,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:yt.singleQuote,jsxSingleQuote:{category:jr,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:jr,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:jr,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:yt.singleAttributePerLine},Hx=Kx,qx=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],Yx=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],Jx={proseWrap:yt.proseWrap,singleQuote:yt.singleQuote},Xx=Jx,Qx=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],e6={bracketSpacing:yt.bracketSpacing,singleQuote:yt.singleQuote,proseWrap:yt.proseWrap},t6=e6;function r6(e){let t=Object.create(null),n=Object.create(null);for(let{importPlugin:i,parsers:r=[],printers:o=[]}of e){let u=async()=>{let a=await i();return Object.assign(t,a.parsers),Object.assign(n,a.printers),a};for(let a of r)t[a]=async()=>(await u()).parsers[a];for(let a of o)n[a]=async()=>(await u()).printers[a]}return{parsers:t,printers:n}}var n6={...jx,...Ux,...Gx,...Hx,...Xx,...t6},i6=[...Nx,...Lx,...Mx,...Vx,...Wx,...qx,...Yx,...Qx],{parsers:o6,printers:u6}=r6([{importPlugin:()=>import("./acorn-AKFTBDM6.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./angular-BOQ6FHSU.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./babel-ZTOORN7K.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./estree-KOJPX4S6.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./flow-RCI44GYZ.js"),parsers:["flow"]},{importPlugin:()=>import("./glimmer-GV5EF5E4.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./graphql-YXQNPQWM.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./html-ZAJTRROK.js"),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>import("./markdown-Q75DTQI7.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./meriyah-32K7GBV5.js"),parsers:["meriyah"]},{importPlugin:()=>import("./postcss-WWYO4PGL.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./typescript-M6N7JDNQ.js"),parsers:["typescript"]},{importPlugin:()=>import("./yaml-LY7PNAYV.js"),parsers:["yaml"],printers:["yaml"]}]);function a6(){return[Mv]}var s6=a6;function l6(e,t){return dv(e,c6.join(t,"noop.js"))}var f6=l6;async function d6(e,t){if(n0.isAbsolute(e))return import(i0(e).href);try{return await import(i0(n0.resolve(e)).href)}catch{return f6(e,t)}}async function p6(e,t){let n=await d6(e,t);return{name:e,...n.default??n}}var va=new Map;function m6(e){if(typeof e!="string")return e;let t=process.cwd(),n=JSON.stringify({name:e,cwd:t});return va.has(n)||va.set(n,p6(e,t)),va.get(n)}function D6(){va.clear()}function h6(e=[]){return Promise.all(e.map(t=>m6(t)))}var g6=h6;function v6(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([n])=>!t.has(n)))}var y6=v6,_6="3.5.3",Vv={};ko(Vv,{addDanglingComment:()=>yn,addLeadingComment:()=>ui,addTrailingComment:()=>ai,getAlignmentSize:()=>Ep,getIndentSize:()=>w6,getMaxContinuousCount:()=>k6,getNextNonSpaceNonCommentCharacter:()=>x6,getNextNonSpaceNonCommentCharacterIndex:()=>U6,getPreferredQuote:()=>O6,getStringWidth:()=>yp,hasNewline:()=>Ur,hasNewlineInRange:()=>T6,hasSpaces:()=>R6,isNextLineEmpty:()=>G6,isNextLineEmptyAfterIndex:()=>kp,isPreviousLineEmpty:()=>V6,makeString:()=>L6,skip:()=>Po,skipEverythingButNewLine:()=>bv,skipInlineComment:()=>wp,skipNewline:()=>bn,skipSpaces:()=>Gr,skipToLineEnd:()=>Cv,skipTrailingComment:()=>Sp,skipWhitespace:()=>kI});function E6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var wp=E6;function F6(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?bv(e,t):t}var Sp=F6;function C6(e,t){let n=null,i=t;for(;i!==n;)n=i,i=Gr(e,i),i=wp(e,i),i=Sp(e,i),i=bn(e,i);return i}var $p=C6;function b6(e,t){let n=null,i=t;for(;i!==n;)n=i,i=Cv(e,i),i=wp(e,i),i=Gr(e,i);return i=Sp(e,i),i=bn(e,i),i!==!1&&Ur(e,i)}var kp=b6;function A6(e,t){let n=e.lastIndexOf(`
|
|
167
|
-
`);return n===-1?0:
|
|
168
|
-
`)return!0;return!1}var
|
|
169
|
-
`),D=
|
|
160
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Sp({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(r=>r.languages??[]),i=[];for(let r of Pv(Object.assign({},...e.map(({options:o})=>o),XI)))!t&&r.deprecated||(Array.isArray(r.choices)&&(t||(r.choices=r.choices.filter(o=>!o.deprecated)),r.name==="parser"&&(r.choices=[...r.choices,...QI(r.choices,n,e)])),r.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[r.name])!==void 0}).map(o=>[o.name,o.defaultOptions[r.name]])),i.push(r));return{languages:n,options:i}}function*QI(e,t,n){let i=new Set(e.map(r=>r.value));for(let r of t)if(r.parsers){for(let o of r.parsers)if(!i.has(o)){i.add(o);let u=n.find(s=>s.parsers&&Object.prototype.hasOwnProperty.call(s.parsers,o)),a=r.name;u?.name&&(a+=` (plugin: ${u.name})`),yield{value:o,description:a}}}}function Pv(e){let t=[];for(let[n,i]of Object.entries(e)){let r={name:n,...i};Array.isArray(r.default)&&(r.default=qe(!1,r.default,-1).value),t.push(r)}return t}var Ed;function ex(e,t,{logger:n=!1,isCLI:i=!1,passThrough:r=!1,FlagSchema:o,descriptor:u}={}){if(i){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=_n;let a=r?Array.isArray(r)?(p,m)=>r.includes(p)?{[p]:m}:void 0:(p,m)=>({[p]:m}):(p,m,d)=>{let{_:D,...h}=d.schemas;return A0(p,m,{...d,schemas:h})},s=tx(t,{isCLI:i,FlagSchema:o}),c=new pw(s,{logger:n,unknown:a,descriptor:u}),l=n!==!1;l&&Ed&&(c._hasDeprecationWarned=Ed);let f=c.normalize(e);return l&&(Ed=c._hasDeprecationWarned),f}function tx(e,{isCLI:t,FlagSchema:n}){let i=[];t&&i.push(YA.create({name:"_"}));for(let r of e)i.push(rx(r,{isCLI:t,optionInfos:e,FlagSchema:n})),r.alias&&t&&i.push(qA.create({name:r.alias,sourceName:r.name}));return i}function rx(e,{isCLI:t,optionInfos:n,FlagSchema:i}){let{name:r}=e,o={name:r},u,a={};switch(e.type){case"int":u=sw,t&&(o.preprocess=Number);break;case"string":u=pg;break;case"choice":u=S0,o.choices=e.choices.map(s=>s?.redirect?{...s,redirect:{to:{key:e.name,value:s.redirect}}}:s);break;case"boolean":u=XA;break;case"flag":u=i,o.flags=n.flatMap(s=>[s.alias,s.description&&s.name,s.oppositeDescription&&`no-${s.name}`].filter(Boolean));break;case"path":u=pg;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(s,c,l)=>e.exception(s)||c.validate(s,l):o.validate=(s,c,l)=>s===void 0||c.validate(s,l),e.redirect&&(a.redirect=s=>s?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let s=o.preprocess||(c=>c);o.preprocess=(c,l,f)=>l.preprocess(s(Array.isArray(c)?qe(!1,c,-1):c),f)}return e.array?JA.create({...t?{preprocess:s=>Array.isArray(s)?s:[s]}:{},...a,valueSchema:u.create(o)}):u.create({...o,...a})}var Ov=ex,nx=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let i=t.length-1;i>=0;i--){let r=t[i];if(n(r,i,t))return r}}},Bv=nx;function Tv(e,t){if(!t)throw new Error("parserName is required.");let n=Bv(!1,e,r=>r.parsers&&Object.prototype.hasOwnProperty.call(r.parsers,t));if(n)return n;let i=`Couldn't resolve parser "${t}".`;throw new op(i)}function ix(e,t){if(!t)throw new Error("astFormat is required.");let n=Bv(!1,e,r=>r.printers&&Object.prototype.hasOwnProperty.call(r.printers,t));if(n)return n;let i=`Couldn't find plugin for AST format "${t}".`;throw new op(i)}function Nv({plugins:e,parser:t}){let n=Tv(e,t);return Rv(n,t)}function Rv(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function ox(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var Hd={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function ux(e,t={}){var n;let i={...e};if(!i.parser)if(i.filepath){if(i.parser=_v(i,{physicalFile:i.filepath}),!i.parser)throw new Od(`No parser could be inferred for file "${i.filepath}".`)}else throw new Od("No parser and no file path given, couldn't infer a parser.");let r=Sp({plugins:e.plugins,showDeprecated:!0}).options,o={...Hd,...Object.fromEntries(r.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},u=Tv(i.plugins,i.parser),a=await Rv(u,i.parser);i.astFormat=a.astFormat,i.locEnd=a.locEnd,i.locStart=a.locStart;let s=(n=u.printers)!=null&&n[a.astFormat]?u:ix(i.plugins,a.astFormat),c=await ox(s,a.astFormat);i.printer=c;let l=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,p])=>p!==void 0)):{},f={...o,...l};for(let[p,m]of Object.entries(f))(i[p]===null||i[p]===void 0)&&(i[p]=m);return i.parser==="json"&&(i.trailingComma="none"),Ov(i,r,{passThrough:Object.keys(Hd),...t})}var yi=ux,ax=Gr(E0(),1);async function sx(e,t){let n=await Nv(t),i=n.preprocess?n.preprocess(e,t):e;t.originalText=i;let r;try{r=await n.parse(i,t,t)}catch(o){cx(o,e)}return{text:i,ast:r}}function cx(e,t){let{loc:n}=e;if(n){let i=(0,ax.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
161
|
+
`+i,e.codeFrame=i,e}throw e}var Ro=sx;async function lx(e,t,n,i,r){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:a=()=>!1,getVisitorKeys:s}}=n;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let c=No(u.getVisitorKeys??s),l=[];m();let f=e.stack;for(let{print:d,node:D,pathStack:h}of l)try{e.stack=h;let y=await d(p,t,e,n);y&&r.set(D,y)}catch(y){if(process.env.PRETTIER_DEBUG)throw y}e.stack=f;function p(d,D){return fx(d,D,n,i)}function m(){let{node:d}=e;if(d===null||typeof d!="object"||a(e))return;for(let h of c(d))Array.isArray(d[h])?e.each(m,h):e.call(m,h);let D=u(e,n);if(D){if(typeof D=="function"){l.push({print:D,node:d,pathStack:[...e.stack]});return}r.set(d,D)}}}async function fx(e,t,n,i){let r=await yi({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await Ro(e,r),u=await i(o,r);return fI(u)}function dx(e,t){let{originalText:n,[Symbol.for("comments")]:i,locStart:r,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:a}=e,s=r(a),c=o(a);for(let l of i)r(l)>=s&&o(l)<=c&&u.add(l);return n.slice(s,c)}var px=dx;async function Va(e,t){({ast:e}=await jv(e,t));let n=new Map,i=new $I(e),r=JI(t),o=new Map;await lx(i,a,t,Va,o);let u=await Qg(i,t,a,void 0,o);if(qI(t),t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ui,u];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[u,ui];return u;function a(c,l){return c===void 0||c===i?s(l):Array.isArray(c)?i.call(()=>s(l),...c):i.call(()=>s(l),c)}function s(c){r(i);let l=i.node;if(l==null)return"";let f=l&&typeof l=="object"&&c===void 0;if(f&&n.has(l))return n.get(l);let p=Qg(i,t,a,c,o);return f&&n.set(l,p),p}}function Qg(e,t,n,i,r){var o;let{node:u}=e,{printer:a}=t,s;switch((o=a.hasPrettierIgnore)!=null&&o.call(a,e)?s=px(e,t):r.has(u)?s=r.get(u):s=a.print(e,t,n,i),u){case t.cursorNode:s=va(s,c=>[ui,c,ui]);break;case t.nodeBeforeCursor:s=va(s,c=>[c,ui]);break;case t.nodeAfterCursor:s=va(s,c=>[ui,c]);break}return a.printComment&&(!a.willPrintOwnComments||!a.willPrintOwnComments(e,t))&&(s=HI(e,s,t)),s}async function jv(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,UI(e,t);let{printer:{preprocess:i}}=t;return e=i?await i(e,t):e,{ast:e,comments:n}}function mx(e,t){let{cursorOffset:n,locStart:i,locEnd:r}=t,o=No(t.printer.getVisitorKeys),u=m=>i(m)<=n&&r(m)>=n,a=e,s=[e];for(let m of xI(e,{getVisitorKeys:o,filter:u}))s.push(m),a=m;if(PI(a,{getVisitorKeys:o}))return{cursorNode:a};let c,l,f=-1,p=Number.POSITIVE_INFINITY;for(;s.length>0&&(c===void 0||l===void 0);){a=s.pop();let m=c!==void 0,d=l!==void 0;for(let D of Ma(a,{getVisitorKeys:o})){if(!m){let h=r(D);h<=n&&h>f&&(c=D,f=h)}if(!d){let h=i(D);h>=n&&h<p&&(l=D,p=h)}}}return{nodeBeforeCursor:c,nodeAfterCursor:l}}var Dx=mx;function hx(e,t){let{printer:{massageAstNode:n,getVisitorKeys:i}}=t;if(!n)return e;let r=No(i),o=n.ignoredProperties??new Set;return u(e);function u(a,s){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a))return a.map(p=>u(p,s)).filter(Boolean);let c={},l=new Set(r(a));for(let p in a)!Object.prototype.hasOwnProperty.call(a,p)||o.has(p)||(l.has(p)?c[p]=u(a[p],a):c[p]=a[p]);let f=n(a,c,s);if(f!==null)return f??c}}var gx=hx,vx=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let i=t.length-1;i>=0;i--){let r=t[i];if(n(r,i,t))return i}return-1}},yx=vx,Ex=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function Fx(e,t){let n=[e.node,...e.parentNodes],i=new Set([t.node,...t.parentNodes]);return n.find(r=>Lv.has(r.type)&&i.has(r))}function e0(e){let t=yx(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function Cx(e,t,{locStart:n,locEnd:i}){let r=e.node,o=t.node;if(r===o)return{startNode:r,endNode:o};let u=n(e.node);for(let s of e0(t.parentNodes))if(n(s)>=u)o=s;else break;let a=i(t.node);for(let s of e0(e.parentNodes)){if(i(s)<=a)r=s;else break;if(r===o)break}return{startNode:r,endNode:o}}function qd(e,t,n,i,r=[],o){let{locStart:u,locEnd:a}=n,s=u(e),c=a(e);if(!(t>c||t<s||o==="rangeEnd"&&t===s||o==="rangeStart"&&t===c)){for(let l of Ap(e,n)){let f=qd(l,t,n,i,[e,...r],o);if(f)return f}if(!i||i(e,r[0]))return{node:e,parentNodes:r}}}function bx(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Lv=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Ax=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function t0(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return bx(t.type,n?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Lv.has(t.type);case"graphql":return Ax.has(t.kind);case"vue":return t.tag!=="root"}return!1}function wx(e,t,n){let{rangeStart:i,rangeEnd:r,locStart:o,locEnd:u}=t;_x.ok(r>i);let a=e.slice(i,r).search(/\S/u),s=a===-1;if(!s)for(i+=a;r>i&&!/\S/u.test(e[r-1]);--r);let c=qd(n,i,t,(m,d)=>t0(t,m,d),[],"rangeStart"),l=s?c:qd(n,r,t,m=>t0(t,m),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};let f,p;if(Ex(t)){let m=Fx(c,l);f=m,p=m}else({startNode:f,endNode:p}=Cx(c,l,t));return{rangeStart:Math.min(o(f),o(p)),rangeEnd:Math.max(u(f),u(p))}}var zv="\uFEFF",r0=Symbol("cursor");async function Uv(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:i,text:r}=await Ro(e,t);t.cursorOffset>=0&&(t={...t,...Dx(i,t)});let o=await Va(i,t,n);n>0&&(o=hI([li,o],n,t.tabWidth));let u=Fp(o,t);if(n>0){let s=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(s),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>s.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=s+_p(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let s,c,l,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&u.cursorNodeText)if(l=u.cursorNodeStart,f=u.cursorNodeText,t.cursorNode)s=t.locStart(t.cursorNode),c=r.slice(s,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");s=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let y=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):r.length;c=r.slice(s,y)}else s=0,c=r,l=0,f=u.formatted;let p=t.cursorOffset-s;if(c===f)return{formatted:u.formatted,cursorOffset:l+p,comments:a};let m=c.split("");m.splice(p,0,r0);let d=f.split(""),D=EA(m,d),h=l;for(let y of D)if(y.removed){if(y.value.includes(r0))break}else h+=y.count;return{formatted:u.formatted,cursorOffset:h,comments:a}}return{formatted:u.formatted,cursorOffset:-1,comments:a}}async function Sx(e,t){let{ast:n,text:i}=await Ro(e,t),{rangeStart:r,rangeEnd:o}=wx(i,t,n),u=i.slice(r,o),a=Math.min(r,i.lastIndexOf(`
|
|
162
|
+
`,r)+1),s=i.slice(a,r).match(/^\s*/u)[0],c=Cp(s,t.tabWidth),l=await Uv(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>r&&t.cursorOffset<=o?t.cursorOffset-r:-1,endOfLine:"lf"},c),f=l.formatted.trimEnd(),{cursorOffset:p}=t;p>o?p+=f.length-u.length:l.cursorOffset>=0&&(p=l.cursorOffset+r);let m=i.slice(0,r)+f+i.slice(o);if(t.endOfLine!=="lf"){let d=_p(t.endOfLine);p>=0&&d===`\r
|
|
163
|
+
`&&(p+=Ev(m.slice(0,p),`
|
|
164
|
+
`)),m=Bo(!1,m,`
|
|
165
|
+
`,d)}return{formatted:m,cursorOffset:p,comments:l.comments}}function Fd(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function n0(e,t){let{cursorOffset:n,rangeStart:i,rangeEnd:r}=t;return n=Fd(e,n,-1),i=Fd(e,i,0),r=Fd(e,r,e.length),{...t,cursorOffset:n,rangeStart:i,rangeEnd:r}}function Mv(e,t){let{cursorOffset:n,rangeStart:i,rangeEnd:r,endOfLine:o}=n0(e,t),u=e.charAt(0)===zv;if(u&&(e=e.slice(1),n--,i--,r--),o==="auto"&&(o=eI(e)),e.includes("\r")){let a=s=>Ev(e.slice(0,Math.max(s,0)),`\r
|
|
166
|
+
`);n-=a(n),i-=a(i),r-=a(r),e=tI(e)}return{hasBOM:u,text:e,options:n0(e,{...t,cursorOffset:n,rangeStart:i,rangeEnd:r,endOfLine:o})}}async function i0(e,t){let n=await Nv(t);return!n.hasPragma||n.hasPragma(e)}async function Vv(e,t){let{hasBOM:n,text:i,options:r}=Mv(e,await yi(t));if(r.rangeStart>=r.rangeEnd&&i!==""||r.requirePragma&&!await i0(i,r))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return r.rangeStart>0||r.rangeEnd<i.length?o=await Sx(i,r):(!r.requirePragma&&r.insertPragma&&r.printer.insertPragma&&!await i0(i,r)&&(i=r.printer.insertPragma(i)),o=await Uv(i,r)),n&&(o.formatted=zv+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function $x(e,t,n){let{text:i,options:r}=Mv(e,await yi(t)),o=await Ro(i,r);return n&&(n.preprocessForPrint&&(o.ast=await jv(o.ast,r)),n.massage&&(o.ast=gx(o.ast,r))),o}async function kx(e,t){t=await yi(t);let n=await Va(e,t);return Fp(n,t)}async function Ix(e,t){let n=gI(e),{formatted:i}=await Vv(n,{...t,parser:"__js_expression"});return i}async function xx(e,t){t=await yi(t);let{ast:n}=await Ro(e,t);return Va(n,t)}async function Px(e,t){return Fp(e,await yi(t))}var Zv={};Po(Zv,{CATEGORY_CONFIG:()=>Ox,CATEGORY_EDITOR:()=>Bx,CATEGORY_FORMAT:()=>Tx,CATEGORY_GLOBAL:()=>jx,CATEGORY_OTHER:()=>Nx,CATEGORY_OUTPUT:()=>Rx,CATEGORY_SPECIAL:()=>Lx});var Ox="Config",Bx="Editor",Tx="Format",Nx="Other",Rx="Output",jx="Global",Lx="Special",Gv={};Po(Gv,{languages:()=>s6,options:()=>a6,parsers:()=>c6,printers:()=>l6});var zx=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],yt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ux={singleQuote:yt.singleQuote},Mx=Ux,Vx=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],Zx={bracketSpacing:yt.bracketSpacing},Gx=Zx,Wx=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],Kx=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],o0="HTML",Hx={bracketSameLine:yt.bracketSameLine,htmlWhitespaceSensitivity:{category:o0,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:yt.singleAttributePerLine,vueIndentScriptAndStyle:{category:o0,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},qx=Hx,Yx=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],Rr="JavaScript",Jx={arrowParens:{category:Rr,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:yt.bracketSameLine,objectWrap:yt.objectWrap,bracketSpacing:yt.bracketSpacing,jsxBracketSameLine:{category:Rr,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Rr,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Rr,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Rr,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:yt.singleQuote,jsxSingleQuote:{category:Rr,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Rr,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Rr,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:yt.singleAttributePerLine},Xx=Jx,Qx=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],e6=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],t6={proseWrap:yt.proseWrap,singleQuote:yt.singleQuote},r6=t6,n6=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],i6={bracketSpacing:yt.bracketSpacing,singleQuote:yt.singleQuote,proseWrap:yt.proseWrap},o6=i6;function u6(e){let t=Object.create(null),n=Object.create(null);for(let{importPlugin:i,parsers:r=[],printers:o=[]}of e){let u=async()=>{let a=await i();return Object.assign(t,a.parsers),Object.assign(n,a.printers),a};for(let a of r)t[a]=async()=>(await u()).parsers[a];for(let a of o)n[a]=async()=>(await u()).printers[a]}return{parsers:t,printers:n}}var a6={...Mx,...Gx,...qx,...Xx,...r6,...o6},s6=[...zx,...Vx,...Wx,...Kx,...Yx,...Qx,...e6,...n6],{parsers:c6,printers:l6}=u6([{importPlugin:()=>import("./acorn-AKFTBDM6.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./angular-BOQ6FHSU.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./babel-ZTOORN7K.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./estree-KOJPX4S6.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./flow-RCI44GYZ.js"),parsers:["flow"]},{importPlugin:()=>import("./glimmer-GV5EF5E4.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./graphql-YXQNPQWM.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./html-ZAJTRROK.js"),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>import("./markdown-Q75DTQI7.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./meriyah-32K7GBV5.js"),parsers:["meriyah"]},{importPlugin:()=>import("./postcss-WWYO4PGL.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./typescript-M6N7JDNQ.js"),parsers:["typescript"]},{importPlugin:()=>import("./yaml-LY7PNAYV.js"),parsers:["yaml"],printers:["yaml"]}]);function f6(){return[Gv]}var d6=f6;function m6(e,t){return Dv(e,p6.join(t,"noop.js"))}var D6=m6;async function h6(e,t){if(u0.isAbsolute(e))return import(a0(e).href);try{return await import(a0(u0.resolve(e)).href)}catch{return D6(e,t)}}async function g6(e,t){let n=await h6(e,t);return{name:e,...n.default??n}}var _a=new Map;function v6(e){if(typeof e!="string")return e;let t=process.cwd(),n=JSON.stringify({name:e,cwd:t});return _a.has(n)||_a.set(n,g6(e,t)),_a.get(n)}function y6(){_a.clear()}function _6(e=[]){return Promise.all(e.map(t=>v6(t)))}var E6=_6;function F6(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([n])=>!t.has(n)))}var C6=F6,b6="3.5.3",Wv={};Po(Wv,{addDanglingComment:()=>yn,addLeadingComment:()=>si,addTrailingComment:()=>ci,getAlignmentSize:()=>Cp,getIndentSize:()=>I6,getMaxContinuousCount:()=>O6,getNextNonSpaceNonCommentCharacter:()=>T6,getNextNonSpaceNonCommentCharacterIndex:()=>G6,getPreferredQuote:()=>R6,getStringWidth:()=>Ep,hasNewline:()=>zr,hasNewlineInRange:()=>L6,hasSpaces:()=>U6,isNextLineEmpty:()=>q6,isNextLineEmptyAfterIndex:()=>xp,isPreviousLineEmpty:()=>K6,makeString:()=>V6,skip:()=>To,skipEverythingButNewLine:()=>Sv,skipInlineComment:()=>$p,skipNewline:()=>bn,skipSpaces:()=>Zr,skipToLineEnd:()=>wv,skipTrailingComment:()=>kp,skipWhitespace:()=>OI});function A6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var $p=A6;function w6(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Sv(e,t):t}var kp=w6;function S6(e,t){let n=null,i=t;for(;i!==n;)n=i,i=Zr(e,i),i=$p(e,i),i=kp(e,i),i=bn(e,i);return i}var Ip=S6;function $6(e,t){let n=null,i=t;for(;i!==n;)n=i,i=wv(e,i),i=$p(e,i),i=Zr(e,i);return i=kp(e,i),i=bn(e,i),i!==!1&&zr(e,i)}var xp=$6;function k6(e,t){let n=e.lastIndexOf(`
|
|
167
|
+
`);return n===-1?0:Cp(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var I6=k6;function x6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function P6(e,t){let n=e.match(new RegExp(`(${x6(t)})+`,"gu"));return n===null?0:n.reduce((i,r)=>Math.max(i,r.length/t.length),0)}var O6=P6;function B6(e,t){let n=Ip(e,t);return n===!1?"":e.charAt(n)}var T6=B6,la="'",s0='"';function N6(e,t){let n=t===!0||t===la?la:s0,i=n===la?s0:la,r=0,o=0;for(let u of e)u===n?r++:u===i&&o++;return r>o?i:n}var R6=N6;function j6(e,t,n){for(let i=t;i<n;++i)if(e.charAt(i)===`
|
|
168
|
+
`)return!0;return!1}var L6=j6;function z6(e,t,n={}){return Zr(e,n.backwards?t-1:t,n)!==t}var U6=z6;function M6(e,t,n){let i=t==='"'?"'":'"',o=Bo(!1,e,/\\(.)|(["'])/gsu,(u,a,s)=>a===i?a:s===t?"\\"+s:s||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+o+t}var V6=M6;function Z6(e,t,n){return Ip(e,n(t))}function G6(e,t){return arguments.length===2||typeof t=="number"?Ip(e,t):Z6(...arguments)}function W6(e,t,n){return wp(e,n(t))}function K6(e,t){return arguments.length===2||typeof t=="number"?wp(e,t):W6(...arguments)}function H6(e,t,n){return xp(e,n(t))}function q6(e,t){return arguments.length===2||typeof t=="number"?xp(e,t):H6(...arguments)}function jr(e,t=1){return async(...n)=>{let i=n[t]??{},{plugins:r=[]}=i;return n[t]={...i,plugins:(await Promise.all([d6(),E6(r)])).flat()},e(...n)}}var Kv=jr(Vv);async function Za(e,t){let{formatted:n}=await Kv(e,{...t,cursorOffset:-1});return n}async function Y6(e,t){return await Za(e,t)===e}async function J6(){Pk(),y6()}var Pp=jr(Qk),X6=jr(Sp,0),Q6={errors:$0,optionCategories:Zv,createIsIgnoredFunction:vv,formatOptionsHiddenDefaults:Hd,normalizeOptions:Ov,getSupportInfoWithoutPlugins:Sp,normalizeOptionSettings:Pv,vnopts:{ChoiceSchema:S0,apiDescriptor:_n},fastGlob:bA.default,createTwoFilesPatch:FA,utils:{omit:C6},mockable:ap},eP={parse:jr($x),formatAST:jr(kx),formatDoc:jr(Ix),printToDoc:jr(xx),printDocToString:jr(Px),mockable:ap};import{Project as rP,SyntaxKind as Hv}from"ts-morph";function qv(e){let t=e?.getExpressionIfKind(Hv.ParenthesizedExpression)?.getExpression()??e?.getExpression();return t?.isKind(Hv.JsxFragment)||e?.replaceWithText(`return <>${t}</>;`),e}function Ye(e){return new rP({tsConfigFilePath:tP.join(e??process.cwd(),"tsconfig.json")})}async function Je(e){let t=e.getSourceFiles();for await(let n of t){let i=n.getFilePath();if((await Pp(i)).ignored)continue;let o=await Za(n.getFullText(),{filepath:i});n.replaceWithText(o)}await e.save()}async function kn({projectDir:e,envs:t,envFileDescription:n,...i}){let r=Yv.join(e,"src/config/env.ts"),o=i.project??Ye(e),u=o.addSourceFileAtPath(r);if(!u)throw new Error("Schema file not found");let s=u.getDescendantsOfKind($n.CallExpression).find(y=>y.getExpression().getText()==="createEnv")?.getArguments()[0],c=s?.getDescendantsOfKind($n.PropertyAssignment).find(y=>y.getName()==="server")?.getFirstDescendantByKind($n.ObjectLiteralExpression),l=s?.getDescendantsOfKind($n.PropertyAssignment).find(y=>y.getName()==="client")?.getFirstDescendantByKind($n.ObjectLiteralExpression),f=s?.getDescendantsOfKind($n.PropertyAssignment).find(y=>y.getName()==="experimental__runtimeEnv")?.getFirstDescendantByKind($n.ObjectLiteralExpression),p=t.filter(y=>y.type==="server"),m=t.filter(y=>y.type==="client");for(let y of p)c?.addPropertyAssignment({name:y.name,initializer:y.zodValue});for(let y of m)l?.addPropertyAssignment({name:y.name,initializer:y.zodValue}),f?.addPropertyAssignment({name:y.name,initializer:`process.env.${y.name}`});let d=t.filter(y=>y.addToRuntimeEnv??!0).map(y=>`${y.name}=${y.defaultValue??""}`).join(`
|
|
169
|
+
`),D=Yv.join(e,".env"),h=Jv.readFileSync(D,"utf-8");return Jv.writeFileSync(D,`${h}
|
|
170
170
|
${n?`# ${n}
|
|
171
|
-
${
|
|
172
|
-
`),i.project||await Je(o),u}import{SyntaxKind as
|
|
171
|
+
${d}`:d}
|
|
172
|
+
`),i.project||await Je(o),u}import{SyntaxKind as Ga}from"ts-morph";function jo(e,t){e.addImportDeclaration({defaultImport:"UserMenu",moduleSpecifier:t});let n=e.getImportDeclaration(o=>o.getModuleSpecifierValue()==="@mantine/core");n?n.getNamedImports().find(u=>u.getName()==="Group")||n.addNamedImport({name:"Group"}):e.addImportDeclaration({namedImports:[{name:"Group"}],moduleSpecifier:"@mantine/core"});let i=qv(e.getFunction(o=>o.isDefaultExport())?.getBody()?.getFirstDescendantByKind(Ga.ReturnStatement)),r=i?.getFirstDescendantByKind(Ga.JsxOpeningFragment)?.getParentIfKind(Ga.JsxFragment)?.getFirstDescendantByKind(Ga.SyntaxList)?.getText();if(!r){console.log(`Failed to inject into header slot at ${e.getFilePath()}`);return}i?.replaceWithText(`return (<><Group>${r}<UserMenu /></Group></>)`),i?.formatText(),e.saveSync()}var Qv=async({projectDir:e})=>{Xe({projectDir:e,dependencies:["@clerk/nextjs","@clerk/themes"],devMode:!1});let t=Lt.join(Oe,"template/extras"),n=Lt.join(e,"src/middleware.ts");if(Wa.existsSync(n))console.log(Xv.yellow("Middleware already exists. To require auth for your app, be sure to follow the guide to setup Clerk middleware. https://clerk.com/docs/references/nextjs/clerk-middleware#clerk-middleware-next-js"));else{let o=Lt.join(t,"src/middleware/clerk.ts");Wa.copySync(o,n)}Wa.copySync(Lt.join(t,"src/app/clerk-auth"),Lt.join(e,"src/app/auth")),Wa.copySync(Lt.join(t,"src/components/clerk-auth"),Lt.join(e,"src/components/clerk-auth"));let i=Lt.join(e,"src/app/layout.tsx"),r=Ye(e);nP(r.addSourceFileAtPath(i)),jo(r.addSourceFileAtPath(Lt.join(e,"src/components/AppShell/slot-header-right.tsx")),"@/components/clerk-auth/user-menu"),jo(r.addSourceFileAtPath(Lt.join(e,"src/components/AppShell/slot-header-mobile-content.tsx")),"@/components/clerk-auth/user-menu-mobile"),iP(r.addSourceFileAtPathIfExists(Lt.join(e,"src/server/safe-action.ts"))),await kn({projectDir:e,project:r,envs:[{name:"NEXT_PUBLIC_CLERK_SIGN_IN_URL",zodValue:"z.string()",defaultValue:"/auth/signin",type:"client"},{name:"NEXT_PUBLIC_CLERK_SIGN_UP_URL",zodValue:"z.string()",defaultValue:"/auth/signup",type:"client"},{name:"CLERK_SECRET_KEY",zodValue:`z.string().startsWith('sk_').min(1, {
|
|
173
173
|
message:
|
|
174
174
|
"No Clerk Secret Key found. Did you create your Clerk app and copy the environment variables to you .env file?",
|
|
175
175
|
})`,type:"server"},{name:"NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",zodValue:`z.string().startsWith('pk_').min(1, {
|
|
176
176
|
message:
|
|
177
177
|
"No Clerk Public Key found. Did you create your Clerk app and copy the environment variables to you .env file?",
|
|
178
|
-
})`,type:"client"}],envFileDescription:"Hosted auth with Clerk. Set up a new app at https://dashboard.clerk.com/apps/new to get these values."}),await Je(r)};function
|
|
178
|
+
})`,type:"client"}],envFileDescription:"Hosted auth with Clerk. Set up a new app at https://dashboard.clerk.com/apps/new to get these values."}),await Je(r)};function nP(e){e.addImportDeclaration({namedImports:[{name:"ClerkAuthProvider"}],moduleSpecifier:"@/components/clerk-auth/clerk-provider"});let n=e.getFunction(r=>r.isDefaultExport())?.getBody()?.getFirstDescendantByKind(Op.ReturnStatement)?.getDescendantsOfKind(Op.JsxOpeningElement).find(r=>r.getTagNameNode().getText()==="MantineProvider")?.getParentIfKind(Op.JsxElement),i=n?.getJsxChildren().map(r=>r.getText()).filter(Boolean).join(`
|
|
179
179
|
`);n?.getChildSyntaxList()?.replaceWithText(`<ClerkAuthProvider>
|
|
180
180
|
${i}
|
|
181
|
-
</ClerkAuthProvider>`)}function
|
|
181
|
+
</ClerkAuthProvider>`)}function iP(e){if(!e){console.log(Xv.yellow("Failed to inject into safe-action-client. Did you move the safe-action.ts file?"));return}e.addImportDeclaration({namedImports:[{name:"auth",alias:"getAuth"}],moduleSpecifier:"@clerk/nextjs/server"}),e.addStatements(t=>t.writeLine(`export const authedActionClient = actionClient.use(async ({ next, ctx }) => {
|
|
182
182
|
const auth = getAuth();
|
|
183
183
|
if (!auth.userId) {
|
|
184
184
|
throw new Error("Unauthorized");
|
|
@@ -186,16 +186,16 @@ ${m}`:m}
|
|
|
186
186
|
return next({ ctx: { ...ctx, auth } });
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
`))}import
|
|
190
|
-
Please run " ${Un} init" first, or try this command again when inside a ProofKit project.`)),process.exit(1));try{return fe()}catch(n){console.log(
|
|
191
|
-
`}}),r=
|
|
189
|
+
`))}import Ci from"path";import*as hy from"@clack/prompts";import FP from"chalk";import CP from"dotenv";import bP from"fs-extra";import AP from"ora";import{SyntaxKind as Dy}from"ts-morph";import oP,{OttoAdapter as uP}from"@proofkit/fmdapi";async function _i({dataApiKey:e,fmFile:t,server:n}){let r=await oP({adapter:new uP({auth:{apiKey:e},db:t,server:n}),layout:""}).layouts();return aP(r.layouts)}function ey(e){return"isFolder"in e?(e.folderLayoutNames??[]).flatMap(ey):[e.name]}var Ka=["API_","API ","dapi_","dapi"];function aP(e){return e.flatMap(ey).sort((i,r)=>{let o=Ka.find(a=>i.startsWith(a)),u=Ka.find(a=>r.startsWith(a));return o&&u?i.localeCompare(r):o?-1:u?1:i.localeCompare(r)})}import dP from"path";import{isCancel as pP}from"@clack/core";import{cancel as mP}from"@clack/prompts";import iy from"chalk";import DP from"fs-extra";import ty from"path";import ry from"fs-extra";var sP=X.discriminatedUnion("type",[X.object({type:X.literal("clerk")}),X.object({type:X.literal("next-auth")}),X.object({type:X.literal("proofkit").transform(()=>"fmaddon")}),X.object({type:X.literal("fmaddon")}),X.object({type:X.literal("none")})]).default({type:"none"}),cP=X.object({database:X.string().default("FM_DATABASE"),server:X.string().default("FM_SERVER"),apiKey:X.string().default("OTTO_API_KEY")}),lP=X.discriminatedUnion("type",[X.object({type:X.literal("fm"),name:X.string(),envNames:cP}),X.object({type:X.literal("supabase"),name:X.string()})]),fP=["browser","webviewer"],ny=X.object({appType:X.enum(fP).default("browser"),auth:sP,envFile:X.string().default(".env"),dataSources:X.array(lP).default([]),tanstackQuery:X.boolean().catch(!1),replacedMainPage:X.boolean().catch(!1)}),LR=ny.parse({auth:{type:"none"}}),Ei,fe=()=>{if(Ei)return Ei;let e=ry.readJSONSync(ty.join(L.projectDir,"proofkit.json")),t=ny.parse(e);return Ei=t,L.appType=t.appType,Ei};function Lo(e){let t=fe();In({...t,...e})}function In(e){return ry.writeJSONSync(ty.join(L.projectDir,"proofkit.json"),e,{spaces:2}),Ei=e,Ei}var Le=({commandName:e})=>{DP.existsSync(dP.join(process.cwd(),"proofkit.json"))||(console.log(iy.yellow(`The "${e}" command requires an existing ProofKit project.
|
|
190
|
+
Please run " ${Un} init" first, or try this command again when inside a ProofKit project.`)),process.exit(1));try{return fe()}catch(n){console.log(iy.red("Error parsing ProofKit settings file:")),n instanceof Df?console.log(me.prettifyError(n)):console.log(n),process.exit(1)}},zt=class extends Error{};function ae(e){if(pP(e))throw mP(),new zt;return e}import Jr from"path";import{execa as hP}from"execa";import xt from"fs-extra";import{applyEdits as gP,modify as vP,parse as Bp}from"jsonc-parser";async function zo(e){if(!xt.existsSync(e))return null;try{let t=await xt.readFile(e,"utf8");return Bp(t)}catch(t){return console.error(`Error reading or parsing JSONC config at ${e}:`,t),{$schema:"https://proofkit.dev/typegen-config-schema.json",config:[]}}}async function Uo(e,t){if(xt.existsSync(e)){let n=await xt.readFile(e,"utf8"),i=vP(n,["config"],t.config,{formattingOptions:{tabSize:2,insertSpaces:!0,eol:`
|
|
191
|
+
`}}),r=gP(n,i);await xt.writeFile(e,r,"utf8")}else await xt.writeJson(e,t,{spaces:2})}async function oy({projectDir:e=process.cwd(),schemas:t,runCodegen:n=!0,dataSourceName:i}){let r=Jr.join(e,"proofkit-typegen.config.jsonc"),o=await zo(r);o||(o={$schema:"https://proofkit.dev/typegen-config-schema.json",config:[]});let u=o.config,a;Array.isArray(u)?a=u:(a=[u],o.config=a);let s=t.map(l=>({layoutName:l.layoutName,schemaName:l.schemaName,valueLists:l.valueLists,generateClient:l.generateClient,strictNumbers:l.strictNumbers})),c=a.find(l=>l.path?.endsWith(i)||l.path?.endsWith(i+"/")||l.path===i);c?c.layouts=c.layouts||[]:(c={layouts:[],path:`./src/config/schemas/${i}`},a.push(c)),c.layouts.push(...s),await Uo(r,o),n&&await Ut()}async function uy({config:e,projectDir:t,runCodegen:n=!0}){let i=Jr.join(t,"proofkit-typegen.config.jsonc"),r=await zo(i),o=Array.isArray(e)?e:[e];r?Array.isArray(r.config)?r.config.push(...o):r.config=[r.config,...o]:r={$schema:"https://proofkit.dev/typegen-config-schema.json",config:o},await Uo(i,r),n&&await Ut()}async function Ut(){let e=L.projectDir,t=fe();if(t.dataSources.length===0){console.log("no data sources found, skipping typegen");return}let n=Ue();if(t.dataSources.some(r=>r.type==="fm")){let{failed:r}=await hP(n==="npm"?"npx":n==="pnpm"?"pnpm":n==="bun"?"bunx":n,n==="pnpm"?["dlx","@proofkit/typegen@latest",`--env-path=${t.envFile}`]:["@proofkit/typegen@latest",`--env-path=${t.envFile}`],{cwd:e,stderr:"inherit",stdout:"inherit"});if(r)throw new Error("Failed to run codegen command")}}function ay({projectDir:e=process.cwd(),dataSourceName:t}){let n=Jr.join(e,"proofkit-typegen.config.jsonc");if(!xt.existsSync(n))return"Client";try{let i=xt.readFileSync(n,"utf8"),r=Bp(i),o;return o=(Array.isArray(r.config)?r.config:[r.config]).find(a=>a.path?.endsWith(t)||a.path?.endsWith(t+"/")||a.path===t),o?.clientSuffix??"Client"}catch(i){return console.error(`Error reading or parsing JSONC config for getClientSuffix: ${n}`,i),"Client"}}function Fi({projectDir:e=process.cwd(),dataSourceName:t}){let n=Jr.join(e,"proofkit-typegen.config.jsonc");if(!xt.existsSync(n))return[];try{let i=xt.readFileSync(n,"utf8"),r=Bp(i),o;return o=(Array.isArray(r.config)?r.config:[r.config]).find(a=>a.path?.endsWith(t)||a.path?.endsWith(t+"/")||a.path===t),o?.layouts?o.layouts.map(a=>({layout:a.layoutName,schemaName:a.schemaName})):[]}catch(i){return console.error(`Error reading or parsing JSONC config for getExistingSchemas: ${n}`,i),[]}}async function sy({dataSourceName:e,envNames:t}){let n=L.projectDir,i=Jr.join(n,"proofkit-typegen.config.jsonc"),r=await zo(i),o={layouts:[],path:`./src/config/schemas/${e}`,clearOldFiles:!0,clientSuffix:"Layout"};if(t&&(o.envNames={server:t.server,db:t.database,auth:{apiKey:t.apiKey}}),L.appType==="webviewer"&&(o.webviewerScriptName="ExecuteDataApi"),!r)r={$schema:"https://proofkit.dev/typegen-config-schema.json",config:[o]};else{let u;Array.isArray(r.config)?u=r.config:(u=[r.config],r.config=u);let a=u.findIndex(s=>s.path===o.path);a===-1?u.push(o):u[a]={...u[a],...o,layouts:o.layouts.length>0?o.layouts:u[a]?.layouts||[]}}await Uo(i,r)}function cy({schemaName:e,dataSourceName:t}){return console.warn("getFieldNamesForSchema currently relies on ts-morph. Refactoring needed if ts-morph is fully removed."),[]}async function ly({dataSourceName:e}){let t=L.projectDir,n=Jr.join(t,"proofkit-typegen.config.jsonc"),i=await zo(n);if(!i)return;let r=`./src/config/schemas/${e}`;Array.isArray(i.config)?i.config=i.config.filter(o=>o.path!==r):i.config.path===r&&(i.config=[]),await Uo(n,i)}async function fy({projectDir:e=L.projectDir,schemaName:t,dataSourceName:n,runCodegen:i=!0}){let r=Jr.join(e,"proofkit-typegen.config.jsonc"),o=await zo(r);if(!o)throw new Error("proofkit-typegen.config.jsonc not found, cannot remove layout.");let u=!1,a=`./src/config/schemas/${n}`,s;Array.isArray(o.config)?s=o.config:(s=[o.config],o.config=s);let c=s.find(f=>f.path===a);if(c?.layouts){let f=c.layouts.length;c.layouts=c.layouts.filter(p=>p.schemaName!==t),c.layouts.length<f&&(u=!0)}u&&await Uo(r,o);let l=Jr.join(e,"src","config","schemas",n,`${t}.ts`);xt.existsSync(l)&&xt.removeSync(l),i&&u&&await Ut()}import Xr from"path";import Tp from"fs-extra";import{SyntaxKind as Ha}from"ts-morph";async function Qr(e){let t=L.projectDir,n=fe();if(n.tanstackQuery)return!1;Xe({projectDir:t,dependencies:["@tanstack/react-query"],devMode:!1}),Xe({projectDir:t,dependencies:["@tanstack/react-query-devtools","@tanstack/eslint-plugin-query"],devMode:!0});let i=Xr.join(Oe,"template","extras");L.appType==="browser"?(Tp.copySync(Xr.join(i,"config","get-query-client.ts"),Xr.join(t,"src/config/get-query-client.ts")),Tp.copySync(Xr.join(i,"config","query-provider.tsx"),Xr.join(t,"src/config/query-provider.tsx"))):L.appType==="webviewer"&&Tp.copySync(Xr.join(i,"config","query-provider-vite.tsx"),Xr.join(t,"src/config/query-provider.tsx"));let r=e?.project??Ye(t),o=r.addSourceFileAtPath(Xr.join(t,L.appType==="browser"?"src/app/layout.tsx":"src/main.tsx"));if(o.addImportDeclaration({moduleSpecifier:"@/config/query-provider",defaultImport:"QueryProvider"}),L.appType==="browser"){let a=o.getFunction(c=>c.isDefaultExport())?.getBody()?.getFirstDescendantByKind(Ha.ReturnStatement)?.getDescendantsOfKind(Ha.JsxOpeningElement).find(c=>c.getTagNameNode().getText()==="body")?.getParentIfKind(Ha.JsxElement),s=a?.getJsxChildren().map(c=>c.getText()).filter(Boolean).join(`
|
|
192
192
|
`);a?.getChildSyntaxList()?.replaceWithText(`<QueryProvider>
|
|
193
193
|
${s}
|
|
194
|
-
</QueryProvider>`)}else if(L.appType==="webviewer"){let u=o.getDescendantsOfKind(
|
|
194
|
+
</QueryProvider>`)}else if(L.appType==="webviewer"){let u=o.getDescendantsOfKind(Ha.JsxElement).find(a=>a.getOpeningElement().getTagNameNode().getText()==="MantineProvider");u?.replaceWithText(`<QueryProvider>
|
|
195
195
|
${u.getText()}
|
|
196
|
-
</QueryProvider>`)}return e?.project||await Je(r),In({...n,tanstackQuery:!0}),!0}import
|
|
197
|
-
${
|
|
198
|
-
${
|
|
196
|
+
</QueryProvider>`)}return e?.project||await Je(r),In({...n,tanstackQuery:!0}),!0}import dy from"os";import qa from"path";import Mo from"chalk";import yP from"fs-extra";async function Ya({addonName:e}){let t=e==="auth"?"FM Auth Add-on":"ProofKit WebViewer",n=null;if(process.platform==="win32"?n=qa.join(dy.homedir(),"AppData","Local","FileMaker","Extensions","AddonModules"):process.platform==="darwin"&&(n=qa.join(dy.homedir(),"Library","Application Support","FileMaker","Extensions","AddonModules")),!n){ue.warn(`Could not install the ${t} addon. You will need to do this manually.`);return}let i=e==="auth"?"ProofKitAuth":"ProofKitWV";await yP.copy(qa.join(Oe,`template/fm-addon/${i}`),qa.join(n,i),{overwrite:!0}),console.log(""),console.log(Mo.bgYellow(" ACTION REQUIRED: ")),console.log(e==="auth"?`${Mo.yellowBright("You must install the FM Auth addon in your FileMaker file to continue.")} ${Mo.dim("(Learn more: https://proofkit.dev/auth/fm-addon)")}`:`${Mo.yellowBright("You must install the ProofKit WebViewer addon in your FileMaker file to continue.")} ${Mo.dim("(Learn more: https://proofkit.dev/webviewer)")}`),["Restart FileMaker Pro (if it's currently running)",`Open your FileMaker file, go to layout mode, and install the ${t} addon to the file`,"Come back here to continue the installation"].forEach((o,u)=>{console.log(`${u+1}. ${o}`)})}import Pt from"path";import*as Np from"@clack/prompts";import py from"chalk";import xn from"fs-extra";async function my({...e}){let t=L.projectDir;Xe({dependencies:["@react-email/components","@react-email/render"],devMode:!1,projectDir:t}),Xe({dependencies:["react-email"],devMode:!0,projectDir:t});let n=xn.readJSONSync(Pt.join(t,"package.json"));n.scripts["email:preview"]="email dev --port 3010 --dir=src/emails",xn.writeJSONSync(Pt.join(t,"package.json"),n,{spaces:2});let i=e.project??Ye(t),r=L.emailProvider;r==="plunk"?await _P({project:i}):r==="resend"?await EP({project:i}):await xn.copy(Pt.join(Oe,"template/extras/emailProviders/none/email.tsx"),Pt.join(t,"src/server/auth/email.tsx")),e.project||await Je(i)}async function _P({project:e}){let t=L.projectDir;Xe({dependencies:["@plunk/node"],devMode:!1,projectDir:t});let n=typeof L.apiKey=="string"?L.apiKey:L.ci?"":ae(await Np.text({message:`Enter your Plunk API key
|
|
197
|
+
${py.dim("Enter your Secret API Key from https://app.useplunk.com/settings/api")}`,placeholder:"...or leave blank to do this later"}));n||ue.warn("You will need to add your Plunk API key to the .env file manually for your app to run."),console.log(""),await kn({projectDir:t,project:e,envs:[{name:"PLUNK_API_KEY",zodValue:'z.string().startsWith("sk_")',type:"server",defaultValue:n}]}),await xn.copy(Pt.join(Oe,"template/extras/emailProviders/plunk/service.ts"),Pt.join(t,"src/server/services/plunk.ts")),await xn.copy(Pt.join(Oe,"template/extras/emailProviders/plunk/email.tsx"),Pt.join(t,"src/server/auth/email.tsx"))}async function EP({project:e}){let t=L.projectDir;Xe({dependencies:["resend"],devMode:!1,projectDir:t});let n=typeof L.apiKey=="string"?L.apiKey:L.ci?"":ae(await Np.text({message:`Enter your Resend API key
|
|
198
|
+
${py.dim('Only "Sending Access" permission required: https://resend.com/api-keys')}`,placeholder:"...or leave blank to do this later"}));n||ue.warn("You will need to add your Resend API key to the .env file manually for your app to run."),console.log(""),await kn({projectDir:t,project:e,envs:[{name:"RESEND_API_KEY",zodValue:'z.string().startsWith("re_")',type:"server",defaultValue:n}]}),await xn.copy(Pt.join(Oe,"template/extras/emailProviders/resend/service.ts"),Pt.join(t,"src/server/services/resend.ts")),await xn.copy(Pt.join(Oe,"template/extras/emailProviders/resend/email.tsx"),Pt.join(t,"src/server/auth/email.tsx"))}var gy=async()=>{let e=AP("Installing files for auth...").start(),t=L.projectDir;Xe({projectDir:t,dependencies:["@node-rs/argon2","@oslojs/binary","@oslojs/crypto","@oslojs/encoding","js-cookie"],devMode:!1}),Xe({projectDir:t,dependencies:["@types/js-cookie"],devMode:!0}),await bP.copy(Ci.join(Oe,"template/extras/fmaddon-auth"),Ci.join(t,"src"));let n=Ye(t);await Qr({project:n}),jo(n.addSourceFileAtPath(Ci.join(t,"src/components/AppShell/slot-header-right.tsx")),"@/components/auth/user-menu"),wP(n.addSourceFileAtPathIfExists(Ci.join(t,"src/server/safe-action.ts"))),await uy({project:n,config:{clientSuffix:"Layout",layouts:[{layoutName:"proofkit_auth_sessions",schemaName:"sessions",strictNumbers:!0},{layoutName:"proofkit_auth_users",schemaName:"users",strictNumbers:!0},{layoutName:"proofkit_auth_email_verification",schemaName:"emailVerification",strictNumbers:!0},{layoutName:"proofkit_auth_password_reset",schemaName:"passwordReset",strictNumbers:!0}],clearOldFiles:!0,validator:!1,path:"./src/server/auth/db"},projectDir:t,runCodegen:!1}),await my({project:n}),SP(n.addSourceFileAtPath(Ci.join(t,"src/app/(main)/layout.tsx"))),await Je(n);let i=!1;for(;!i;)if(i=await $P(t,e),i)e.text="Successfully detected all required layouts in your FileMaker file.";else if(!ae(await hy.confirm({message:"I have followed the above instructions, continue installing",initialValue:!0,active:"Continue",inactive:"Abort"})))throw new zt;await Ut(),e.succeed("Auth installed successfully")};function wP(e){if(!e){console.log(FP.yellow("Failed to inject into safe-action-client. Did you move the safe-action.ts file?"));return}e.addImportDeclaration({namedImports:[{name:"getCurrentSession"}],moduleSpecifier:"./auth/utils/session"}),e.addStatements(t=>t.writeLine(`export const authedActionClient = actionClient.use(async ({ next, ctx }) => {
|
|
199
199
|
const { session, user } = await getCurrentSession();
|
|
200
200
|
if (session === null) {
|
|
201
201
|
throw new Error("Unauthorized");
|
|
@@ -203,78 +203,78 @@ ${ly.dim('Only "Sending Access" permission required: https://resend.com/api-keys
|
|
|
203
203
|
|
|
204
204
|
return next({ ctx: { ...ctx, session, user } });
|
|
205
205
|
});
|
|
206
|
-
`))}function
|
|
206
|
+
`))}function SP(e){e.addImportDeclaration({defaultImport:"Protect",moduleSpecifier:"@/components/auth/protect"});let n=e.getFunction(i=>i.isDefaultExport())?.getBody()?.getFirstDescendantByKind(Dy.ReturnStatement)?.getFirstDescendantByKind(Dy.JsxElement);n?.replaceWithText(`<Protect>
|
|
207
207
|
${n?.getText()}
|
|
208
|
-
</Protect>`)}async function
|
|
208
|
+
</Protect>`)}async function $P(e,t){let n=fe(),i=n.dataSources.filter(l=>l.type==="fm").find(l=>l.name==="filemaker");if(!i)return!1;n.envFile&&CP.config({path:Ci.join(e,n.envFile)});let r=process.env[i.envNames.apiKey],o=process.env[i.envNames.database],u=process.env[i.envNames.server],a=await _i({dataApiKey:r,fmFile:o,server:u});return["proofkit_auth_sessions","proofkit_auth_users","proofkit_auth_email_verification","proofkit_auth_password_reset"].every(l=>a.some(f=>f===l))?!0:(t.warn("Required layouts not found"),await Ya({addonName:"auth"}),!1)}async function bi({options:e,noInstall:t=!1,projectDir:n=process.cwd()}){let i=fe();if(i.auth.type!=="none")throw new Error("Auth already exists");if(!i.dataSources.some(r=>r.type==="fm")&&e.type==="fmaddon")throw new Error("A FileMaker data source is required to use the FM Add-on Auth");e.type==="clerk"?await OP({projectDir:n}):e.type==="fmaddon"&&await BP(),await TP(),t||await Sr({projectDir:n})}async function OP({projectDir:e=process.cwd()}){await Qv({projectDir:e}),Lo({auth:{type:"clerk"}})}async function BP(){await gy(),Lo({auth:{type:"fmaddon"}})}async function TP(){let e=L.projectDir,t=await PP("src/app/(main)/**/actions.ts",{cwd:e});for(let n of t){let i=xP.join(e,n),o=kP(i,"utf-8").replace(/actionClient/g,"authedActionClient");IP(i,o)}}import{Option as vy}from"commander";var Ve=new vy("--ci","Run in CI mode").default(!1),rt=new vy("--debug","Run in debug mode").default(!1);import jP from"path";var yy=e=>{let{packages:t}=e;ue.info("Adding boilerplate...");for(let[n,i]of Object.entries(t))i.inUse&&i.installer(e);ue.info("")};import Rp from"path";import*as Ja from"@clack/prompts";import Pn from"chalk";import Zo from"fs-extra";import NP from"ora";import Ai from"path";import Vo from"fs-extra";var wi=()=>{let e=L.projectDir,t=Ai.join(Oe,"template/extras"),n=Ai.join(t,"_cursor/rules"),i=Ai.join(e,".cursor/rules");if(!Vo.existsSync(n))return;let r=Ue();Vo.ensureDirSync(i),Vo.copySync(n,i);let o=Ai.join(t,"_cursor/conditional-rules"),a={pnpm:"pnpm.mdc",npm:"npm.mdc",yarn:"yarn.mdc"}[r];if(a){let s=Ai.join(o,a),c=Ai.join(i,"package-manager.mdc");Vo.existsSync(s)&&Vo.copySync(s,c,{overwrite:!0})}};var _y=async({projectName:e,pkgManager:t,noInstall:n})=>{let i=L.projectDir,r=Rp.join(Oe,L.appType==="browser"?"template/nextjs":"template/vite-wv");n?ue.info(""):ue.info(`
|
|
209
209
|
Using: ${Pn.cyan.bold(t)}
|
|
210
|
-
`);let o=
|
|
211
|
-
`).start();if(
|
|
212
|
-
`);else{o.stopAndPersist();let a=await
|
|
213
|
-
`),
|
|
214
|
-
`)};import
|
|
215
|
-
`).start(),n=
|
|
216
|
-
`)}catch{t.fail(`${
|
|
217
|
-
`)}};import
|
|
210
|
+
`);let o=NP(`Scaffolding in: ${i}...
|
|
211
|
+
`).start();if(Zo.existsSync(i))if(Zo.readdirSync(i).length===0)e!=="."&&o.info(`${Pn.cyan.bold(e)} exists but is empty, continuing...
|
|
212
|
+
`);else{o.stopAndPersist();let a=await Ja.select({message:`${Pn.redBright.bold("Warning:")} ${Pn.cyan.bold(e)} already exists and isn't empty. How would you like to proceed?`,options:[{label:"Abort installation (recommended)",value:"abort"},{label:"Clear the directory and continue installation",value:"clear"},{label:"Continue installation and overwrite conflicting files",value:"overwrite"}],initialValue:"abort"});a==="abort"&&(o.fail("Aborting installation..."),process.exit(1)),await Ja.confirm({message:`Are you sure you want to ${a==="clear"?"clear the directory":"overwrite conflicting files"}?`,initialValue:!1})||(o.fail("Aborting installation..."),process.exit(1)),a==="clear"&&(o.info(`Emptying ${Pn.cyan.bold(e)} and creating new ProofKit app..
|
|
213
|
+
`),Zo.emptyDirSync(i))}o.start(),Zo.copySync(r,i),wi(),Zo.renameSync(Rp.join(i,"_gitignore"),Rp.join(i,".gitignore"));let u=e==="."?"App":Pn.cyan.bold(e);o.succeed(`${u} ${Pn.green("scaffolded successfully!")}
|
|
214
|
+
`)};import Xa from"fs";import RP from"path";function Go(e,t,n){Xa.readdirSync(e).forEach(r=>{let o=RP.join(e,r);if(Xa.statSync(o).isDirectory())Go(o,t,n);else{let a=Xa.readFileSync(o,"utf8").replace(new RegExp(t,"g"),n);Xa.writeFileSync(o,a,"utf8")}})}var Ey=async({projectName:e,scopedAppName:t,packages:n,noInstall:i})=>{let r=Ue();return L.projectDir=jP.resolve(process.cwd(),e),await _y({projectName:e,pkgManager:r,scopedAppName:t,noInstall:i}),yy({projectName:e,scopedAppName:t,pkgManager:r,packages:n,noInstall:i}),Go(L.projectDir,"__PNPM_COMMAND__",r==="pnpm"?"pnpm":r==="bun"?"bun":r==="yarn"?"yarn":"npm run"),L.projectDir};import{execSync as zp}from"child_process";import jp from"path";import*as Lp from"@clack/prompts";import Wo from"chalk";import{execa as Si}from"execa";import Fy from"fs-extra";import LP from"ora";var zP=e=>{try{return zp("git --version",{cwd:e}),!0}catch{return!1}},UP=e=>Fy.existsSync(jp.join(e,".git")),MP=async e=>{try{return await Si("git",["rev-parse","--is-inside-work-tree"],{cwd:e,stdout:"ignore"}),!0}catch{return!1}},VP=()=>{let t=zp("git --version").toString().trim().split(" ")[2],n=t?.split(".")[0],i=t?.split(".")[1];return{major:Number(n),minor:Number(i)}},ZP=()=>zp("git config --global init.defaultBranch || echo main").toString().trim(),Cy=async e=>{if(ue.info("Initializing Git..."),!zP(e)){ue.warn("Git is not installed. Skipping Git initialization.");return}let t=LP(`Creating a new git repo...
|
|
215
|
+
`).start(),n=UP(e),i=await MP(e),r=jp.parse(e).name;if(i&&n){if(t.stop(),!await Lp.confirm({message:`${Wo.redBright.bold("Warning:")} Git is already initialized in "${r}". Initializing a new git repository would delete the previous history. Would you like to continue anyways?`,initialValue:!1})){t.info("Skipping Git initialization.");return}Fy.removeSync(jp.join(e,".git"))}else if(i&&!n&&(t.stop(),!await Lp.confirm({message:`${Wo.redBright.bold("Warning:")} "${r}" is already in a git worktree. Would you still like to initialize a new git repository in this directory?`,initialValue:!1}))){t.info("Skipping Git initialization.");return}try{let o=ZP(),{major:u,minor:a}=VP();u<2||u==2&&a<28?(await Si("git",["init"],{cwd:e}),await Si("git",["symbolic-ref","HEAD",`refs/heads/${o}`],{cwd:e})):await Si("git",["init",`--initial-branch=${o}`],{cwd:e}),await Si("git",["add","."],{cwd:e}),await Si("git",["commit","-m","Initial commit"],{cwd:e}),t.succeed(`${Wo.green("Successfully initialized and staged")} ${Wo.green.bold("git")}
|
|
216
|
+
`)}catch{t.fail(`${Wo.bold.red("Failed:")} could not initialize git. Update git to the latest version!
|
|
217
|
+
`)}};import GP from"chalk";var by=({projectName:e=Xo,noInstall:t})=>{let n=Ue();ue.info(GP.bold("Next steps:")),ue.dim(`
|
|
218
218
|
Navigate to the project directory:`),e!=="."&&ue.info(` cd ${e}`),ue.dim("(or open in your code editor, and run the rest of these commands from there)"),t&&(ue.dim(`
|
|
219
219
|
Install dependencies:`),n==="yarn"?ue.info(` ${n}`):ue.info(` ${n} install`)),ue.dim(`
|
|
220
220
|
Start the dev server to view your app in a browser:`),["npm","bun"].includes(n)?ue.info(` ${n} run dev`):ue.info(` ${n} dev`),ue.dim(`
|
|
221
|
-
Or, run the ProofKit command again to add more to your project:`),["npm","bun"].includes(n)?ue.info(` ${n} run proofkit`):ue.info(` ${n} proofkit`),ue.dim("(Must be inside the project directory)")};var
|
|
221
|
+
Or, run the ProofKit command again to add more to your project:`),["npm","bun"].includes(n)?ue.info(` ${n} run proofkit`):ue.info(` ${n} proofkit`),ue.dim("(Must be inside the project directory)")};var Ay=(e,t)=>{let n=t.replace(/\*/g,"").replace(/[^\/]$/,"$&/");Go(e,"~/",n)};import WP from"path";import KP from"fs-extra";var wy=()=>{let e=`
|
|
222
222
|
# When adding additional environment variables, the schema in "/src/config/env.ts"
|
|
223
223
|
# should be updated accordingly.
|
|
224
224
|
|
|
225
225
|
`.trim().concat(`
|
|
226
|
-
`),t=
|
|
227
|
-
`),t=
|
|
226
|
+
`),t=WP.join(L.projectDir,".env");KP.writeFileSync(t,e,"utf-8")};import HP from"path";import qP from"fs-extra";var Sy={parser:"@typescript-eslint/parser",parserOptions:{project:!0},plugins:["@typescript-eslint"],extends:["next/core-web-vitals","plugin:@typescript-eslint/recommended-type-checked","plugin:@typescript-eslint/stylistic-type-checked"],rules:{"@typescript-eslint/array-type":"off","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",fixStyle:"inline-type-imports"}],"@typescript-eslint/no-unused-vars":["warn",{argsIgnorePattern:"^_"}],"@typescript-eslint/require-await":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{attributes:!1}}],"@typescript-eslint/no-floating-promises":"warn"}};var $y=()=>{let e=['/** @type {import("eslint").Linter.Config} */',`const config = ${JSON.stringify(Sy,null,2)}`,"module.exports = config;"].join(`
|
|
227
|
+
`),t=HP.join(L.projectDir,".eslintrc.cjs");qP.writeFileSync(t,e,"utf-8")};var ky=()=>({envVariables:{inUse:!0,installer:wy},eslint:{inUse:!0,installer:$y}});import YP from"path";import*as Iy from"@clack/prompts";import JP from"chalk";import XP from"dotenv";async function QP(){let e=fe(),t=e.dataSources.filter(s=>s.type==="fm").find(s=>s.name==="filemaker");if(!t)return!1;e.envFile&&XP.config({path:YP.join(L.projectDir,e.envFile)});let n=process.env[t.envNames.apiKey],i=process.env[t.envNames.database],r=process.env[t.envNames.server],o=await _i({dataApiKey:n,fmFile:i,server:r});return["ProofKitWV"].every(s=>o.some(c=>c===s))?(console.log(JP.green("Successfully detected all required layouts for ProofKit WebViewer in your FileMaker file.")),!0):(await Ya({addonName:"wv"}),!1)}async function xy(){let e=!1;for(;!e;)if(e=await QP(),!e&&!ae(await Iy.confirm({message:"I have followed the above instructions, continue installing",initialValue:!0,active:"Continue",inactive:"Abort"})))throw new zt}import Py from"path";var Qa=e=>(e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e);var Oy=e=>{let n=Qa(e).split("/"),i=n[n.length-1];if(i==="."){let u=Py.resolve(process.cwd());i=Py.basename(u)}let r=n.findIndex(u=>u.startsWith("@"));n.findIndex(u=>u.startsWith("@"))!==-1&&(i=n.slice(r).join("/"));let o=n.filter(u=>!u.startsWith("@")).join("/");return[i,o]};var e3=/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/,es=e=>{let t=Qa(e),n=t.split("/"),i=n.findIndex(o=>o.startsWith("@")),r=n[n.length-1];if(n.findIndex(o=>o.startsWith("@"))!==-1&&(r=n.slice(i).join("/")),!(t==="."||e3.test(r??"")))return"Name must consist of only lowercase alphanumeric characters, '-', and '_'"};import*as it from"@clack/prompts";import rs from"chalk";import{SemVer as Xp}from"semver";import*as Ct from"@clack/prompts";import On,{AxiosError as t3}from"axios";import er from"chalk";import r3 from"open";import n3 from"randomstring";async function By({url:e}){let t=n3.generate({length:18,charset:"alphanumeric"}),n=new URL(`/otto/wizard/${t}`,e.origin),i=n.toString();Ct.log.info(`${er.bold("If the browser window didn't open automatically, please open the following link to login into your OttoFMS server:")}
|
|
228
228
|
|
|
229
|
-
${er.cyan(i)}`),
|
|
229
|
+
${er.cyan(i)}`),r3(n.toString());let r=Ct.spinner();r.start("Waiting for you to log in using the link above");let o=await new Promise(u=>{let a=setInterval(()=>{On.get(`${e.origin}/otto/api/cli/checkHash/${t}`,{headers:{"Accept-Encoding":"deflate"}}).then(c=>{u(c.data.response),clearTimeout(s),clearInterval(a),On.delete(`${e.origin}/otto/api/cli/checkHash/${t}`,{headers:{"Accept-Encoding":"deflate"}})}).catch(()=>{})},500),s=setTimeout(()=>{clearInterval(a),r.stop("Login timed out. No worries - it happens to the best of us.")},18e4)});return r.stop("Login complete."),o}async function Ty({url:e,token:t}){return(await On.get(`${e.origin}/otto/fmi/admin/api/v2/databases`,{headers:{Authorization:`Bearer ${t}`}})).data.response.databases}async function Ny({url:e,token:t}){return(await On.get(`${e.origin}/otto/api/api-key`,{headers:{Authorization:`Bearer ${t}`}})).data.response["api-keys"]}async function Ry({url:e,filename:t}){for(Ct.log.info(`${er.cyan("Creating a Data API Key")}
|
|
230
230
|
Enter FileMaker credentials for ${er.bold(t)}.
|
|
231
|
-
${er.dim("The account must have the fmrest extended privilege enabled.")}`);;){let n=ae(await Ct.text({message:`Enter the account name for ${er.bold(t)}`})),i=ae(await Ct.password({message:`Enter the password for ${er.bold(n)}`}));try{return await
|
|
231
|
+
${er.dim("The account must have the fmrest extended privilege enabled.")}`);;){let n=ae(await Ct.text({message:`Enter the account name for ${er.bold(t)}`})),i=ae(await Ct.password({message:`Enter the password for ${er.bold(n)}`}));try{return await Up({url:e,filename:t,username:n,password:i})}catch(r){if(!(r instanceof t3))Ct.log.error(`${er.red("Error creating Data API key:")} Unknown error`);else{let u=r.response?.data&&"messages"in r.response.data?r.response.data.messages?.[0]?.text:void 0;Ct.log.error(`${er.red("Error creating Data API key:")} ${u??`Error code ${r.response?.status}`}
|
|
232
232
|
${er.dim(r.response?.status===400&&`Common reasons this might happen:
|
|
233
233
|
- The provided credentials are incorrect.
|
|
234
234
|
- The account does not have the fmrest extended privilege enabled.
|
|
235
235
|
|
|
236
236
|
You may also want to try to create an API directly in the OttoFMS dashboard:
|
|
237
237
|
${e.origin}/otto/app/api-keys`)}
|
|
238
|
-
`)}if(!ae(await Ct.confirm({message:"Do you want to try and enter credentials again?",active:"Yes, try again",inactive:"No, abort"})))throw new Error("User cancelled")}}}async function
|
|
238
|
+
`)}if(!ae(await Ct.confirm({message:"Do you want to try and enter credentials again?",active:"Yes, try again",inactive:"No, abort"})))throw new Error("User cancelled")}}}async function Up({url:e,filename:t,username:n,password:i}){return{apiKey:(await On.post(`${e.origin}/otto/api/api-key/create-only`,{database:t,label:"For FM Web App",user:n,pass:i})).data.response.key}}async function jy({payload:e,url:t,token:n}){let i=X.object({response:X.object({started:X.boolean(),batchId:X.number(),subDeploymentIds:X.array(X.number())}),messages:X.array(X.object({code:X.number(),text:X.string()}))}),r=await On.post(`${t.origin}/otto/api/deployment`,e,{headers:{Authorization:`Bearer ${n}`}});return i.parse(r.data)}async function Ly({url:e,token:t,deploymentId:n}){let i=X.object({response:X.object({id:X.number(),status:X.enum(["queued","running","scheduled","complete","aborted","unknown"]),running:X.coerce.boolean(),created_at:X.string(),started_at:X.string(),updated_at:X.string()}),messages:X.array(X.object({code:X.number(),text:X.string()}))}),r=await On.get(`${e.origin}/otto/api/deployment/${n}`,{headers:{Authorization:`Bearer ${t}`}});return i.parse(r.data)}import D3 from"https";var i3=()=>{};function zy(e,t,n){return new Proxy(i3,{get(i,r){if(!(typeof r!="string"||r==="then"))return zy(e,[...t,r])},apply(i,r,o){let u=t[t.length-1],a={args:o,path:t};return u==="call"?a={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:u==="apply"&&(a={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),e(a)}})}var Uy=e=>zy(e,[]);var P8=Symbol("unsetMarker");function ts(e,...t){let n=Object.assign(Object.create(null),e);for(let i of t)for(let r in i){if(r in n&&n[r]!==i[r])throw new Error(`Duplicate key ${r}`);n[r]=i[r]}return n}function Bn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function My(e){return typeof e=="function"}function Mp(e){return Object.assign(Object.create(null),e)}var Vp=class extends Error{};function o3(e){if(e instanceof Error)return e;let t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(Bn(e)){let n=new Vp;for(let i in e)n[i]=e[i];return n}}}function $i(e){if(e instanceof bt||e instanceof Error&&e.name==="TRPCError")return e;let t=new bt({code:"INTERNAL_SERVER_ERROR",cause:e});return e instanceof Error&&e.stack&&(t.stack=e.stack),t}var bt=class extends Error{constructor(t){let n=o3(t.cause),i=t.message??n?.message??t.code;super(i,{cause:n}),this.code=t.code,this.name="TRPCError",this.cause||(this.cause=n)}};var rL=Symbol("SSEMessageEnvelope");function Vy(e){return"input"in e?e:{input:e,output:e}}var Tn={input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}};var Nn=({shape:e})=>e;var Zp="middlewareMarker";function Zy(){function e(n){return{_middlewares:n,unstable_pipe(i){let r="_middlewares"in i?i._middlewares:[i];return e([...n,...r])}}}function t(n){return e([n])}return t}function Gy(e){let t=async function(i){let r,o=await i.getRawInput();try{r=await e(o)}catch(a){throw new bt({code:"BAD_REQUEST",cause:a})}let u=Bn(i.input)&&Bn(r)?{...i.input,...r}:r;return i.next({input:u})};return t._type="input",t}function Wy(e){let t=async function({next:i}){let r=await i();if(!r.ok)return r;try{let o=await e(r.data);return{...r,data:o}}catch(o){throw new bt({message:"Output validation failed",code:"INTERNAL_SERVER_ERROR",cause:o})}};return t._type="output",t}function Gp(e){let t=e;if(typeof t=="function")return t;if(typeof t.parseAsync=="function")return t.parseAsync.bind(t);if(typeof t.parse=="function")return t.parse.bind(t);if(typeof t.validateSync=="function")return t.validateSync.bind(t);if(typeof t.create=="function")return t.create.bind(t);if(typeof t.assert=="function")return n=>(t.assert(n),n);throw new Error("Could not find a validator fn")}function Rn(e,t){let{middlewares:n=[],inputs:i,meta:r,...o}=t;return Kp({...ts(e,o),inputs:[...e.inputs,...i??[]],middlewares:[...e.middlewares,...n],meta:e.meta&&r?{...e.meta,...r}:r??e.meta})}function Kp(e={}){let t={procedure:!0,inputs:[],middlewares:[],...e};return{_def:t,input(i){let r=Gp(i);return Rn(t,{inputs:[i],middlewares:[Gy(r)]})},output(i){let r=Gp(i);return Rn(t,{output:i,middlewares:[Wy(r)]})},meta(i){return Rn(t,{meta:i})},use(i){let r="_middlewares"in i?i._middlewares:[i];return Rn(t,{middlewares:r})},unstable_concat(i){return Rn(t,i._def)},query(i){return Wp({...t,type:"query"},i)},mutation(i){return Wp({...t,type:"mutation"},i)},subscription(i){return Wp({...t,type:"subscription"},i)},experimental_caller(i){return Rn(t,{caller:i})}}}function Wp(e,t){let n=Rn(e,{resolver:t,middlewares:[async function(s){let c=await t(s);return{marker:Zp,ok:!0,data:c,ctx:s.ctx}}]}),i={...n._def,type:e.type,experimental_caller:!!n._def.caller,meta:n._def.meta,$types:null},r=a3(n._def),o=n._def.caller;if(!o)return r;let u=async(...a)=>await o({args:a,invoke:r,_def:i});return u._def=i,u}var u3=`
|
|
239
239
|
This is a client-only function.
|
|
240
240
|
If you want to call this function on the server, see https://trpc.io/docs/v11/server/server-side-calls
|
|
241
|
-
`.trim();function
|
|
242
|
-
`),"Detected existing layouts in your project"),f.push("-");let
|
|
243
|
-
${
|
|
244
|
-
${
|
|
245
|
-
${
|
|
241
|
+
`.trim();function a3(e){async function t(n){if(!n||!("getRawInput"in n))throw new Error(u3);async function i(o={index:0,ctx:n.ctx}){try{let u=e.middlewares[o.index];return await u({ctx:o.ctx,type:n.type,path:n.path,getRawInput:o.getRawInput??n.getRawInput,meta:e.meta,input:o.input,next(s){let c=s;return i({index:o.index+1,ctx:c&&"ctx"in c?{...o.ctx,...c.ctx}:o.ctx,input:c&&"input"in c?c.input:o.input,getRawInput:c&&"getRawInput"in c?c.getRawInput:o.getRawInput})}})}catch(u){return{ok:!1,error:$i(u),marker:Zp}}}let r=await i();if(!r)throw new bt({code:"INTERNAL_SERVER_ERROR",message:"No result from middlewares - did you forget to `return next()`?"});if(!r.ok)throw r.error;return r.data}return t._def=e,t}var Hp=typeof window>"u"||"Deno"in window||globalThis.process?.env?.NODE_ENV==="test"||!!globalThis.process?.env?.JEST_WORKER_ID||!!globalThis.process?.env?.VITEST_WORKER_ID;function s3(e){return e._def&&"router"in e._def}var c3={_ctx:null,_errorShape:null,_meta:null,queries:{},mutations:{},subscriptions:{},errorFormatter:Nn,transformer:Tn},l3=["then","call","apply"];function qp(e){function t(n){let i=new Set(Object.keys(n).filter(s=>l3.includes(s)));if(i.size>0)throw new Error("Reserved words used in `router({})` call: "+Array.from(i).join(", "));let r=Mp({});function o(s,c=[]){let l=Mp({});for(let[f,p]of Object.entries(s??{})){if(s3(p)){l[f]=o(p._def.record,[...c,f]);continue}if(!f3(p)){l[f]=o(p,[...c,f]);continue}let m=[...c,f].join(".");if(r[m])throw new Error(`Duplicate key: ${m}`);r[m]=p,l[f]=p}return l}let u=o(n),a={_config:e,router:!0,procedures:r,...c3,record:u};return{...u,_def:a,createCaller:Yp()({_def:a})}}return t}function f3(e){return typeof e=="function"}function Yp(){return function(t){let n=t._def;return function(r,o){return Uy(async({path:u,args:a})=>{let s=u.join(".");if(u.length===1&&u[0]==="_def")return n;let c=n.procedures[s],l;try{return l=My(r)?await Promise.resolve(r()):r,await c({path:s,getRawInput:async()=>a[0],ctx:l,type:c._def.type})}catch(f){throw o?.onError?.({ctx:l,error:$i(f),input:a[0],path:s,type:c._def.type}),f}})}}}function Ky(...e){let t=ts({},...e.map(o=>o._def.record)),n=e.reduce((o,u)=>{if(u._def._config.errorFormatter&&u._def._config.errorFormatter!==Nn){if(o!==Nn&&o!==u._def._config.errorFormatter)throw new Error("You seem to have several error formatters");return u._def._config.errorFormatter}return o},Nn),i=e.reduce((o,u)=>{if(u._def._config.transformer&&u._def._config.transformer!==Tn){if(o!==Tn&&o!==u._def._config.transformer)throw new Error("You seem to have several transformers");return u._def._config.transformer}return o},Tn);return qp({errorFormatter:n,transformer:i,isDev:e.every(o=>o._def._config.isDev),allowOutsideOfServer:e.every(o=>o._def._config.allowOutsideOfServer),isServer:e.every(o=>o._def._config.isServer),$types:e[0]?._def._config.$types})(t)}var ki=class{context(){return new ki}meta(){return new ki}create(t){let n={transformer:Vy(t?.transformer??Tn),isDev:t?.isDev??globalThis.process?.env.NODE_ENV!=="production",allowOutsideOfServer:t?.allowOutsideOfServer??!1,errorFormatter:t?.errorFormatter??Nn,isServer:t?.isServer??Hp,$types:null,experimental:t?.experimental??{}};if(!(t?.isServer??Hp)&&t?.allowOutsideOfServer!==!0)throw new Error("You're trying to use @trpc/server in a non-server environment. This is not supported by default.");return{_config:n,procedure:Kp({meta:t?.defaultMeta}),middleware:Zy(),router:qp(n),mergeRouters:Ky,createCallerFactory:Yp()}}},d3=new ki;import h3 from"axios";async function Hy({url:e,ottoPort:t=3030}){let n=await v3(e),i=await _3({url:e,ottoPort:t});return{fmsInfo:n,ottoInfo:i}}var g3=me.object({data:me.object({APIVersion:me.number().optional(),AcceptEARPassword:me.boolean().optional(),AcceptEncrypted:me.boolean().optional(),AcceptUnencrypted:me.boolean().optional(),AdminLocalAuth:me.string().optional(),AllowChangeUploadDBFolder:me.boolean().optional(),AutoOpenForUpload:me.boolean().optional(),DenyGuestAndAutoLogin:me.string().optional(),Hostname:me.string().optional(),IsAppleInternal:me.boolean().optional(),IsETS:me.boolean().optional(),PremisesType:me.string().optional(),ProductVersion:me.string().optional(),PublicKey:me.string().optional(),RequiresDBPasswords:me.boolean().optional(),ServerID:me.string().optional(),ServerVersion:me.string()}),result:me.number()});async function v3(e){let t=new URL(e);t.pathname="/fmws/serverinfo";let n=await Jp(t.toString()).then(i=>g3.safeParse(i.data));if(!n.success)throw console.error("fmsInfoResult.error",n.error.issues),new bt({code:"BAD_REQUEST",message:"Invalid FileMaker Server URL"});return n.data.data}var qy=me.object({Otto:me.object({version:me.string(),serverNickname:me.string().default(""),isLicenseValid:me.boolean().optional()}),migratorVersion:me.string().optional(),FileMakerServer:me.object({version:me.object({long:me.string(),short:me.string()}),running:me.boolean().optional()}),isMac:me.boolean().optional(),platform:me.string().optional(),host:me.string().optional()}),y3=me.object({response:qy});async function _3({url:e,ottoPort:t=3030}){let n=await E3(e);return n||(n=await F3(e,t)),n}async function E3(e){try{let t=new URL(e);return t.pathname="/otto/api/info",await Jp(t.toString()).then(i=>y3.parse(i.data).response)}catch{return console.log("unable to fetch otto4 info, trying otto3"),null}}async function F3(e,t){try{let n=new URL(e);return n.port=t?t.toString():"3030",n.pathname="/api/otto/info",await Jp(n.toString()).then(r=>qy.parse(r.data))}catch(n){return n instanceof Error&&console.error("otto3 fetch error",n.message),null}}async function Jp(e){let t=new D3.Agent({rejectUnauthorized:!1});return await h3.get(e,{validateStatus:null,headers:{Connection:"close"},httpsAgent:t,timeout:1e4})}import C3 from"path";import*as nt from"@clack/prompts";import Yy from"chalk";import{Command as b3}from"commander";import A3 from"dotenv";var Ko=async e=>{let t=fe(),n=L.projectDir,i=e?.sourceName;if(i)i=e?.sourceName;else if(t.dataSources.filter(v=>v.type==="fm").length>1){let v=await nt.select({message:"Which FileMaker data source do you want to add a layout to?",options:t.dataSources.filter(C=>C.type==="fm").map(C=>({label:C.name,value:C.name}))});nt.isCancel(v)&&(nt.cancel(),process.exit(0)),i=X.string().parse(v)}i||(i="filemaker");let r=t.dataSources.filter(v=>v.type==="fm").find(v=>v.name===i);if(!r)throw new Error(`FileMaker data source ${i} not found in your ProofKit config`);let o=nt.spinner();o.start("Loading layouts from your FileMaker file..."),t.envFile&&A3.config({path:C3.join(n,t.envFile)});let u=process.env[r.envNames.apiKey],a=process.env[r.envNames.database],s=process.env[r.envNames.server],c=await _i({dataApiKey:u,fmFile:a,server:s}),l=Fi({projectDir:n,dataSourceName:i}),f=l.map(v=>v.layout).filter(Boolean),p=l.map(v=>v.schemaName).filter(Boolean);o.stop("Loaded layouts from your FileMaker file"),f.length>0&&nt.note(f.join(`
|
|
242
|
+
`),"Detected existing layouts in your project"),f.push("-");let m=e?.layoutName;(m===""||!c.includes(m??""))&&(m=void 0);let d=m??ae(await nt.select({message:"Select a new layout to read data from",maxItems:10,options:c.filter(v=>!f.includes(v)).map(v=>({label:v,value:v}))})),D=w3(d),h=e?.schemaName||ae(await nt.text({message:`Enter a friendly name for the new schema.
|
|
243
|
+
${Yy.dim("This will the name by which you refer to this layout in your codebase")}`,defaultValue:D,placeholder:D,validate:v=>{if(v!==""){if(!/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(v))return"Name must consist of only alphanumeric characters, '_', and must not start with a number";if(p.includes(v))return"Schema name must be unique"}}})).toString(),y=e?.valueLists??await nt.select({message:`Should we use value lists on this layout?
|
|
244
|
+
${Yy.dim("This will allow fields that contain a value list to be auto-completed in typescript and also validated to prevent incorrect values")}`,options:[{label:"Yes, but allow empty fields",value:"allowEmpty",hint:"Empty fields or values that don't match the value list will be converted to an empty string"},{label:"Yes; empty values should fail validation",value:"strict",hint:"Empty fields or values that don't match the value list will cause validation to fail"},{label:"No, ignore value lists",value:"ignore",hint:"Fields will just be typed as strings"}]}),g=X.enum(["ignore","allowEmpty","strict"]).catch("ignore").parse(y);await oy({runCodegen:!0,projectDir:n,dataSourceName:i,schemas:[{layoutName:d,schemaName:h,valueLists:g}]}),nt.outro(`Layout "${d}" added to your project as "${h}"`)},Jy=()=>new b3("layout").alias("schema").description("Add a new layout to your fmschema file").action(async t=>{let n=t.settings;await Ko({settings:n})});function w3(e){let t=e.replace(/[-\s]/g,"_");for(let n of Ka)t.startsWith(n)&&(t=t.replace(n,""));return t}import*as Xy from"@clack/prompts";var Ho="ProofKitDemo.fmp12";async function Qy({url:e,token:t,operation:n}){let i={scheduled:!1,label:"Install ProofKit Demo",deployments:[{name:"Install ProofKit Demo",source:{type:"url",url:"https://proofkit.dev/proofkit-demo/manifest.json"},fileOperations:[{target:{fileName:Ho},operation:n,source:{fileName:"ProofKitDemo.fmp12"},location:{folder:"default",subFolder:""}}],concurrency:1,options:{closeFilesAfterBuild:!1,keepFilesClosedAfterComplete:!1,transferContainerData:!1}}],abortRemaining:!1},r=Xy.spinner();r.start("Deploying ProofKit Demo file...");let{response:{subDeploymentIds:o}}=await jy({payload:i,url:e,token:t}),u=o[0];for(;;){await new Promise(l=>setTimeout(l,2500));let{response:{status:s,running:c}}=await Ly({url:e,token:t,deploymentId:u});if(!c){if(s!=="complete")throw new Error("Deployment didn't complete");break}}let{apiKey:a}=await Up({filename:Ho,username:"admin",password:"admin",url:e});return r.stop(),{apiKey:a}}async function ns({projectDir:e,...t}){let n=fe(),i=n.dataSources.filter(h=>h.type==="fm").map(h=>h.name),r=await S3(t.server);if(!(r.ottoVersion&&r.ottoVersion.compare(new Xp("4.7.0"))>0)&&!t.adminApiKey)return it.cancel("OttoFMS 4.7.0 or later is required to auto-login with this CLI. Please install/upgrade OttoFMS on your server, or pass an Admin API key with the --adminApiKey flag then try again");let u=t.adminApiKey||(await By({url:r.url})).token,a=await Ty({url:r.url,token:u}),s=a.map(h=>h.filename.replace(".fmp12","")).includes(Ho.replace(".fmp12","")),c=t.fileName;for(;c=t.fileName||ae(await it.select({message:`Which file would you like to connect to? ${rs.dim("(TIP: Select the file where your data is stored)")}`,maxItems:10,options:[{value:"$deployDemoFile",label:"Deploy NEW ProofKit Demo File",hint:"Use OttoFMS to deploy a new file for testing"},...a.sort((h,y)=>h.filename.localeCompare(y.filename)).map(h=>({value:h.filename,label:h.filename}))]})),c==="$deployDemoFile";)if(s){if(ae(await it.confirm({message:"The demo file already exists, do you want to replace it with a fresh copy?",active:"Yes, replace",inactive:"No, select another file",initialValue:!1})))break}else break;if(!c)throw new Error("No file selected");let l=t.dataApiKey;if(c==="$deployDemoFile"){let{apiKey:h}=await Qy({url:r.url,token:u,operation:s?"replace":"install"});l=h,c=Ho,t.layoutName=t.layoutName??"API_Contacts",t.schemaName=t.schemaName??"Contacts"}else{let y=(await Ny({url:r.url,token:u})).filter(g=>g.database===c);if(!l&&y.length>0){let g=ae(await it.select({message:`Which OttoFMS Data API key would you like to use? ${rs.dim("(This determines the access that you'll have to the data in this file)")}`,options:[...y.map(v=>({value:v.key,label:`${rs.bold(v.label)} - ${v.user}`,hint:`${v.key.slice(0,5)}...${v.key.slice(-4)}`})),{value:"create",label:"Create a new API key",hint:"Requires FileMaker credentials for this file"}]}));if(typeof g!="string")throw new Error("Invalid key");g!=="create"&&(l=g)}l||(l=(await Ry({filename:c,url:r.url})).apiKey)}if(!l)throw new Error("No API key");let f=i.length===0?"filemaker":t.name??ae(await it.text({message:"What do you want to call this data source?",validate:h=>h==="filemaker"?"That name is reserved":i?.includes(h)?"That name is already in use in this project, pick something unique":es(h)})),p={type:"fm",name:f,envNames:f==="filemaker"?{database:"FM_DATABASE",server:"FM_SERVER",apiKey:"OTTO_API_KEY"}:{database:`${f.toUpperCase()}_FM_DATABASE`,server:`${f.toUpperCase()}_FM_SERVER`,apiKey:`${f.toUpperCase()}_OTTO_API_KEY`}},m=Ye(e),d=await kn({projectDir:e,project:m,envs:[{name:p.envNames.database,zodValue:'z.string().endsWith(".fmp12")',defaultValue:c,type:"server"},{name:p.envNames.server,zodValue:"z.string().url()",type:"server",defaultValue:r.url.origin},{name:p.envNames.apiKey,zodValue:'z.string().startsWith("dk_") as z.ZodType<OttoAPIKey>',type:"server",defaultValue:l}]}),D=d.getImportDeclaration(h=>h.getModuleSpecifierValue()==="@proofkit/fmdapi");D?(D.getNamedImports().find(h=>h.getName()==="OttoAPIKey")?.remove(),D.addNamedImport({name:"OttoAPIKey",isTypeOnly:!0})):d.addImportDeclaration({namedImports:[{name:"OttoAPIKey",isTypeOnly:!0}],moduleSpecifier:"@proofkit/fmdapi"}),Xe({projectDir:e,dependencies:["@proofkit/fmdapi"],devMode:!1}),n.dataSources.push(p),In(n),sy({dataSourceName:f,project:m,envNames:f==="filemaker"?void 0:p.envNames}),await Je(m),await Ko({settings:n,sourceName:f,projectDir:e,layoutName:t.layoutName,schemaName:t.schemaName,valueLists:"allowEmpty"})}async function S3(e){let t=it.spinner(),n=null,i=null,r=null;for(;i===null;){let o=e??ae(await it.text({message:`What is the URL of your FileMaker Server?
|
|
245
|
+
${rs.cyan("TIP: You can copy any valid path on the server and paste it here.")}`,validate:s=>{try{s.startsWith("https://")||(s.startsWith("http://")?s=s.replace("http://","https://"):s=`https://${s}`),new URL(s);return}catch{return"Please enter a valid URL"}}}));try{n=new URL(o)}catch{it.log.error(`Invalid URL: ${o.toString()}`);continue}t.start("Validating Server URL...");let{fmsInfo:u,ottoInfo:a}=await Hy({url:n.origin});t.stop(),i=new Xp(u.ServerVersion.split(" ")[0])??null,r=new Xp(a?.Otto.version??"")??null,e=void 0}if(n===null)throw new Error("Unable to get FileMaker Server URL");return it.note(`\u{1F389} FileMaker Server version ${i} detected
|
|
246
246
|
|
|
247
|
-
${r?`\u{1F389} OttoFMS version ${r} detected`:"\u274C OttoFMS not detected"}`),{url:n,ottoVersion:r,fmsVersion:i}}var
|
|
248
|
-
${
|
|
247
|
+
${r?`\u{1F389} OttoFMS version ${r} detected`:"\u274C OttoFMS not detected"}`),{url:n,ottoVersion:r,fmsVersion:i}}var I3={noGit:!1,noInstall:!1,default:!1,CI:!1,tailwind:!1,trpc:!1,prisma:!1,drizzle:!1,importAlias:"~/",appRouter:!1,auth:"none",server:void 0,fileName:"",layoutName:"",schemaName:"",dataApiKey:"",fmServerURL:"",dataSource:void 0},r_=()=>{let e=new $3("init").description("Create a new project with ProofKit").argument("[dir]","The name of the application, as well as the name of the directory to create").option("--appType [type]","The type of app to create",void 0).option("--server [url]","The URL of your FileMaker Server",void 0).option("--adminApiKey [key]","Admin API key for OttoFMS. If provided, will skip login prompt",void 0).option("--fileName [name]","The name of the FileMaker file to use for the web app",void 0).option("--layoutName [name]","The name of the FileMaker layout to use for the web app",void 0).option("--schemaName [name]","The name for the generated layout client in your schemas",void 0).option("--dataApiKey [key]","The API key to use for the FileMaker Data API",void 0).option("--auth [type]","The authentication provider to use for the web app",void 0).option("--dataSource [type]","The data source to use for the web app (filemaker or none)",void 0).option("--noGit","Explicitly tell the CLI to not initialize a new git repo in the project",!1).option("--noInstall","Explicitly tell the CLI to not run the package manager's install command",!1).addOption(Ve).addOption(rt).action(Qp);return e.hook("preAction",t=>{Se(t.opts()),L.baseCommand="init"}),e};async function x3({projectDir:e}){let t="none";t==="clerk"?await bi({options:{type:"clerk"},projectDir:e,noInstall:!0}):t==="fmaddon"&&await bi({options:{type:"fmaddon"},projectDir:e,noInstall:!0})}var Qp=async(e,t)=>{let n=Ue(),i=t??I3,r=e||ae(await qo.text({message:"What will your project be called?",defaultValue:Xo,validate:es})).toString();L.appType||(L.appType=L.ci?"browser":ae(await qo.select({message:"What kind of app do you want to build?",options:[{value:"browser",label:"Web App for Browsers",hint:"Uses Next.js, will require hosting"},{value:"webviewer",label:"FileMaker Web Viewer (beta)",hint:"Uses Vite, can be embedded in FileMaker or hosted"}]})));let o=ky(),[u,a]=Oy(r),s=await Ey({projectName:a,scopedAppName:u,packages:o,noInstall:i.noInstall,appRouter:i.appRouter});Ay(s,"@/"),Xe({dependencies:["@proofkit/cli","@types/node"],devMode:!0,projectDir:s});let c=t_.readJSONSync(e_.join(s,"package.json"));if(c.name=u,c.proofkitMetadata={initVersion:Mt()},n!=="bun"){let{stdout:f}=await k3(n,["-v"],{cwd:s});c.packageManager=`${n}@${f.trim()}`}t_.writeJSONSync(e_.join(s,"package.json"),c,{spaces:2});let l=L.appType==="webviewer"?"filemaker":i.dataSource;l||(l=ae(await qo.select({message:"Do you want to connect to a FileMaker Database now?",options:[{value:"filemaker",label:"Yes",hint:"Requires OttoFMS and Admin Server credentials"},{value:"none",label:"No",hint:"You'll be able to add a new data source later"}]}))),l==="filemaker"&&(await ns({projectDir:s,name:"filemaker",adminApiKey:i.adminApiKey,dataApiKey:i.dataApiKey,server:i.server,fileName:i.fileName,layoutName:i.layoutName,schemaName:i.schemaName}),L.appType==="webviewer"&&await xy()),await x3({projectDir:s}),i.noInstall||(await Sr({projectDir:s}),await Ut()),i.noGit||await Cy(s),by({projectName:a,noInstall:i.noInstall})};import P3 from"gradient-string";var O3={purple:"#89216B",lightPurple:"#D15ABB",orange:"#FF595E"},is=P3(Object.values(O3)),n_=()=>{let e=Ue();(e==="yarn"||e==="pnpm")&&console.log(""),console.log(is.multiline(Fm))};import*as h_ from"@clack/prompts";import{Command as H3}from"commander";import*as i_ from"@clack/prompts";import{Command as J7}from"commander";var o_=async()=>{let e=i_.spinner();e.start("Adding Tanstack Query"),await Qr(),e.stop("Tanstack Query added")};import*as Yo from"@clack/prompts";import B3 from"chalk";import{Command as T3}from"commander";async function em(){if(fe().appType!=="browser")return Yo.cancel("Auth is not supported for your app type.");let t=L.authType??ae(await Yo.select({message:"What auth provider do you want to use?",options:[{value:"fmaddon",label:"FM Add-on Auth",hint:"Self-hosted auth with email/password"},{value:"clerk",label:"Clerk",hint:"Hosted auth service with many providers"}]})),n=X.enum(["clerk","fmaddon"]).parse(t);if(L.authType=n,n==="fmaddon"){let i=(L.emailProvider?L.emailProvider:L.ci?"none":void 0)??ae(await Yo.select({message:`What email provider do you want to use?
|
|
248
|
+
${B3.dim("Used to send email verification codes. If you skip this, the codes will be displayed here in your terminal.")}`,options:[{label:"Resend",value:"resend",hint:"Great dev experience"},{label:"Plunk",value:"plunk",hint:"Cheapest for <20k emails/mo, self-hostable"},{label:"Other / I'll do it myself later",value:"none"}]})),r=X.enum(["plunk","resend","none"]).parse(i);L.emailProvider=r,await bi({options:{type:n,emailProvider:r==="none"?void 0:r}})}else await bi({options:{type:n}})}var u_=()=>{let e=new T3("auth").description("Add authentication to your project").option("--authType <authType>","Type of auth provider to use").option("--emailProvider <emailProvider>","Email provider to use (only for FM Add-on Auth)").option("--apiKey <apiKey>","API key to use for the email provider (only for FM Add-on Auth)").addOption(Ve).addOption(rt).action(async()=>{if(fe().auth.type!=="none")throw new Error("Auth already exists");await em()});return e.hook("preAction",t=>{Se(t.opts())}),e};import*as a_ from"@clack/prompts";import{Command as N3}from"commander";var R3=X.enum(["fm","supabase"]),s_=async()=>{let e=R3.parse(await a_.select({message:"Which data souce do you want to add?",options:[{label:"FileMaker",value:"fm"},{label:"Supabase",value:"supabase"}]}));if(e==="supabase")throw new Error("Not implemented");if(e==="fm")await ns({projectDir:process.cwd()});else throw new Error("Invalid data source")},c_=()=>{let e=new N3("data");return e.description("Add a new data source to your project"),e.hook("preAction",(t,n)=>{let i=Le({commandName:"add"});n.setOptionValue("settings",i)}),e};import nm from"path";import*as ft from"@clack/prompts";import m_ from"chalk";import{Command as Z3}from"commander";import{capitalize as G3}from"es-toolkit";import W3 from"fs-extra";import l_ from"path";import tm from"fs-extra";import{SyntaxKind as j3}from"ts-morph";var jn=async({projectDir:e,pageDir:t,dataSource:n,schemaName:i})=>{if(n)if(i){if(n.type!=="fm")throw new Error("FileMaker DataSource is required for table page")}else throw new Error("SchemaName is required for table page");else throw new Error("DataSource is required for table page");let r=ay({projectDir:e,dataSourceName:n.name}),o=cy({schemaName:i,dataSourceName:n.name}),{auth:u}=fe(),a={__SOURCE_NAME__:n.name,__TYPE_NAME__:`T${i}`,__ZOD_TYPE_NAME__:`Z${i}`,__CLIENT_NAME__:`${i}${r}`,__SCHEMA_NAME__:i,__ACTION_CLIENT__:u.type==="none"?"actionClient":"authedActionClient",__FIRST_FIELD_NAME__:o[0]??"NO_FIELDS_ON_YOUR_LAYOUT"},s=await tm.readdir(t);for await(let m of s){let d=l_.join(t,m),D=await tm.readFile(d,"utf8");Object.entries(a).forEach(([h,y])=>{D=D.replace(new RegExp(h,"g"),y)}),await tm.writeFile(d,D,"utf8")}let c=Ye(e),f=c.addSourceFileAtPath(l_.join(t,L.appType==="browser"?"table.tsx":"index.tsx")).getVariableDeclaration("columns")?.getInitializerIfKind(j3.ArrayLiteralExpression),p=U3(o.filter(Boolean));for await(let m of p)f?.addElement(d=>d.inlineBlock(()=>{L3(m)?d.write(`accessorFn: (row) => row["${m}"],`):d.write(`accessorFn: (row) => row.${m},`),d.write(`header: "${m}",`)}).write(",").newLine());L.appType==="webviewer"&&await Qr({project:c})&&await Sr(),await Je(c)};function L3(e){return!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)}var z3=["id","pk","createdat","updatedat","primarykey","createdby","modifiedby","creationtimestamp","modificationtimestamp"];function U3(e){return e.filter(t=>!z3.includes(t.toLowerCase())||t.startsWith("_"))}var rm=async e=>{await jn(e),await Qr()&&await Sr()};var f_={blank:{requireData:!1,label:"Blank",templatePath:"nextjs/blank"},table:{requireData:!0,label:"Basic Table",hint:"Use to load and show multiple records",templatePath:"nextjs/table",postIntallFn:jn},tableEdit:{requireData:!0,label:"Basic Table (editable)",hint:"Use to load and show multiple records with inline edit functionality",templatePath:"nextjs/table-edit",postIntallFn:jn},tableInfinite:{requireData:!0,label:"Infinite Table",hint:"Automatically load more records when the user scrolls to the bottom",templatePath:"nextjs/table-infinite",postIntallFn:rm},tableInfiniteEdit:{requireData:!0,label:"Infinite Table (editable)",hint:"Automatically load more records when the user scrolls to the bottom with inline edit functionality",templatePath:"nextjs/table-infinite-edit",postIntallFn:rm}},d_={blank:{requireData:!1,label:"Blank",templatePath:"vite-wv/blank"},table:{requireData:!0,label:"Basic Table",hint:"Use to load and show multiple records",templatePath:"vite-wv/table",postIntallFn:jn},tableEdit:{requireData:!0,label:"Basic Table (editable)",hint:"Use to load and show multiple records with inline edit functionality",templatePath:"vite-wv/table-edit",postIntallFn:jn}};import M3 from"path";import{SyntaxKind as V3}from"ts-morph";async function p_({projectDir:e,navType:t,...n}){let i=Ye(e);i.addSourceFileAtPath(M3.join(e,"src/app/navigation.tsx")).getVariableDeclaration(t==="primary"?"primaryRoutes":"secondaryRoutes")?.getInitializerIfKind(V3.ArrayLiteralExpression)?.addElement(o=>o.block(()=>{o.write(`
|
|
249
249
|
label: "${n.label}",
|
|
250
250
|
type: "link",
|
|
251
|
-
href: "${n.href}",`)}).write(",")),await Je(i)}var
|
|
252
|
-
${
|
|
253
|
-
To preview this page, restart your dev server using the ${
|
|
254
|
-
`)},
|
|
255
|
-
Debug: No Vercel project configuration found`),!1}}async function
|
|
251
|
+
href: "${n.href}",`)}).write(",")),await Je(i)}var im=async e=>{let t=L.projectDir,n=fe(),i=L.appType==="browser"?Object.entries(f_):Object.entries(d_);if(i.length===0)return ft.cancel("No templates found for your app type. Check back soon!");let r=e?.routeName,o=n.replacedMainPage;if(L.appType==="webviewer"&&!o&&!L.ci&&!r){let D=ae(await ft.select({message:"Do you want to replace the default page?",options:[{label:"Yes",value:"yes"},{label:"No, maybe later",value:"no"},{label:"No, don't ask again",value:"never"}]}));(D==="never"||D==="yes")&&(o=!0),D==="yes"&&(r="/")}r||(r=ae(await ft.text({message:"Enter the URL PATH for your new page",placeholder:"/my-page",validate:D=>{if(D.length===0)return"URL path is required"}}))),r.startsWith("/")||(r=`/${r}`);let u=G3(r.replace("/","").trim()),a=e?.template??ae(await ft.select({message:"What template should be used for this page?",options:i.map(([D,h])=>({value:D,label:`${h.label}`,hint:h.hint}))})),s=i.find(([D])=>D===a)?.[1];if(!s)return ft.cancel(`Page template ${a} not found`);let c,l;if(s.requireData){if(n.dataSources.length===0)return ft.cancel("This template requires a data source, but you don't have any. Add a data source first, or choose another page template");let D=e?.dataSourceName??(n.dataSources.length>1?ae(await ft.select({message:"Which data source should be used for this page?",options:n.dataSources.map(h=>({value:h.name,label:h.name}))})):n.dataSources[0]?.name);if(c=n.dataSources.find(h=>h.name===D),!c)return ft.cancel(`Data source ${D} not found`);l=await K3({projectDir:t,dataSource:c})}let f=ft.spinner();f.start("Adding page from template");let p=nm.join(Oe,"template/pages",s.templatePath),m=L.appType==="browser"?nm.join(t,"src/app/(main)",r):nm.join(t,"src/routes",r);await W3.copy(p,m),L.appType==="browser"?u&&u!==""&&await p_({projectDir:process.cwd(),navType:"primary",label:u,href:r}):L.appType,await s.postIntallFn?.({projectDir:t,pageDir:m,dataSource:c,schemaName:l}),o!==n.replacedMainPage&&Lo({replacedMainPage:o}),f.stop("Added page!");let d=Ue();console.log(`
|
|
252
|
+
${m_.green("Next steps:")}
|
|
253
|
+
To preview this page, restart your dev server using the ${m_.cyan(`${d==="npm"?"npm run":d} dev`)} command
|
|
254
|
+
`)},D_=()=>{let e=new Z3("page").description("Add a new page to your project").action(async()=>{await im()});return e.addOption(Ve),e.addOption(rt),e.hook("preAction",()=>{Se(e.opts()),L.baseCommand="add",Le({commandName:"add"})}),e};async function K3({projectDir:e=process.cwd(),dataSource:t}){if(t.type==="supabase")throw new Error("Not implemented");{let n=Fi({projectDir:e,dataSourceName:t.name}).map(r=>r.schemaName).filter(Boolean);if(n.length===0){ft.cancel("This data source doesn't have any schemas to load data from");return}return n.length===1?n[0]:ae(await ft.select({message:"Which schema should this page load data from?",options:n.map(r=>({label:r,value:r??""}))}))}}var om=async e=>{let t=fe();if(e==="tanstack-query")return await o_();let n=ae(await h_.select({message:"What do you want to add to your project?",options:[{label:"Page",value:"page"},{label:"Schema",value:"schema",hint:"load data from a new table or layout from an existing data source"},...t.appType==="browser"?[{label:"Data Source",value:"data",hint:"to connect to a new database or FileMaker file"}]:[],...t.auth.type==="none"&&t.appType==="browser"?[{label:"Auth",value:"auth"}]:[]]}));n==="auth"?await em():n==="data"?await s_():n==="page"?await im():n==="schema"&&await Ko()},g_=()=>{let e=new H3("add").description("Add a new component to your project").argument("[name]","Type of component to add").addOption(Ve).addOption(rt).action(om);return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="add",Le({commandName:"add"})}),e.hook("preSubcommand",(t,n)=>{Se(n.opts()),L.baseCommand="add",Le({commandName:"add"})}),e.addCommand(u_()),e.addCommand(D_()),e.addCommand(Jy()),e.addCommand(c_()),e};import q3 from"path";import*as en from"@clack/prompts";import ve from"chalk";import{Command as Y3,Option as J3}from"commander";import{execa as Ot}from"execa";import Ln from"fs-extra";async function X3(){try{return await Ot("vercel",["--version"]),!0}catch{return!1}}async function Q3(){let e=Ue(),t=en.spinner();t.start("Installing Vercel CLI...");try{return await Ot(e,[e==="npm"?"install":"add","-g","vercel"]),t.stop("Vercel CLI installed successfully"),!0}catch(n){return t.stop("Failed to install Vercel CLI"),console.error(ve.red("Error installing Vercel CLI:"),n),!1}}async function eO(){try{return!!(await Ln.readJSON(".vercel/project.json")).projectId}catch{return L.debug&&console.log(`
|
|
255
|
+
Debug: No Vercel project configuration found`),!1}}async function tO(){try{L.debug&&console.log(`
|
|
256
256
|
Debug: Running vercel teams list command...`);let e=await Ot("vercel",["teams","list"],{all:!0});L.debug&&console.log(`
|
|
257
257
|
Debug: Command output:`,e.all);let t=(e.all??"").split(`
|
|
258
258
|
`).filter(Boolean),n=t.findIndex(o=>o.includes("id"));if(n===-1)return[];let i=t.slice(n+1);L.debug&&(console.log(`
|
|
259
259
|
Debug: Team lines:`),i.forEach(o=>console.log(`"${o}"`)));let r=i.map(o=>{let u=o.replace(/^[✔\s]+/,"").trim(),[a,...s]=u.split(/\s{2,}/);return!a||s.length===0?null:{slug:a,name:s.join(" ").trim()}}).filter(o=>o!==null);return L.debug&&console.log(`
|
|
260
|
-
Debug: Parsed teams:`,r),r}catch(e){return L.debug&&console.error("Error getting Vercel teams:",e),[]}}async function
|
|
261
|
-
Operation cancelled`)),!1;o&&typeof o=="string"&&(r=`--scope=${o}`)}return e.start("Creating Vercel project..."),await Ot("vercel",["link","--yes",...r?[r]:[]],{env:{VERCEL_PROJECT_NAME:n}}),e.message("Pulling project settings..."),await Ot("vercel",["pull","--yes"],{stdio:"inherit"}),e.stop("Vercel project created successfully"),!0}catch(t){return e.stop("Failed to set up Vercel project"),console.error(ve.red("Error setting up Vercel project:"),t),!1}}async function
|
|
260
|
+
Debug: Parsed teams:`,r),r}catch(e){return L.debug&&console.error("Error getting Vercel teams:",e),[]}}async function rO(){let e=en.spinner();try{let n=(await Ln.readJSON("package.json")).name,i=await tO(),r="";if(i.length>1){let o=await en.select({message:"Select a team to deploy under:",options:[...i.map(u=>({value:u.slug,label:u.name}))]});if(en.isCancel(o))return console.log(ve.yellow(`
|
|
261
|
+
Operation cancelled`)),!1;o&&typeof o=="string"&&(r=`--scope=${o}`)}return e.start("Creating Vercel project..."),await Ot("vercel",["link","--yes",...r?[r]:[]],{env:{VERCEL_PROJECT_NAME:n}}),e.message("Pulling project settings..."),await Ot("vercel",["pull","--yes"],{stdio:"inherit"}),e.stop("Vercel project created successfully"),!0}catch(t){return e.stop("Failed to set up Vercel project"),console.error(ve.red("Error setting up Vercel project:"),t),!1}}async function nO(){let e=en.spinner();e.start("Pushing environment variables to Vercel...");try{let t=fe(),n=q3.join(process.cwd(),t.envFile);if(!Ln.existsSync(n))return e.stop("No environment file found"),!0;let r=(await Ln.readFile(n,"utf-8")).split(`
|
|
262
262
|
`).filter(a=>a.trim()&&!a.startsWith("#")).map(a=>{let[s,...c]=a.split("=");if(!s)return null;let l=c.join("=");return{key:s.trim(),value:l.trim()}}).filter(a=>a!==null);L.debug&&(e.stop(),console.log(`
|
|
263
263
|
Debug: Parsed environment variables:`),r.forEach(({key:a,value:s})=>{console.log(` ${a}=${s.substring(0,3)}...`)}),e.start("Pushing environment variables to Vercel..."));let o=0,u=r.length;for(let a=0;a<u;a++){let{key:s,value:c}=r[a];e.message(`Pushing environment variables to Vercel... (${a+1}/${u})`);try{L.debug&&console.log(`
|
|
264
264
|
Debug: Attempting to add ${s} to Vercel...`);let l=await Ot("vercel",["env","add",s,"production"],{input:c,stdio:"pipe",reject:!1});if(L.debug&&(console.log(`Debug: Command exit code: ${l.exitCode}`),l.stdout&&console.log("Debug: stdout:",l.stdout),l.stderr&&console.log("Debug: stderr:",l.stderr)),l.exitCode!==0)throw new Error(`Command failed with exit code ${l.exitCode}`)}catch(l){o++,L.debug&&(console.error(ve.yellow(`
|
|
265
265
|
Debug: Failed to add ${s}`)),console.error("Debug: Full error:",l))}}return o>0?e.stop(ve.yellow(`Environment variables pushed with ${o} failures`)):e.stop("Environment variables pushed successfully"),o<u}catch(t){return e.stop("Failed to push environment variables"),L.debug&&(console.error(`
|
|
266
|
-
Debug: Top-level error in pushEnvironmentVariables:`),console.error(t)),!1}}async function
|
|
267
|
-
Debug: Vercel whoami result:`,e),e.exitCode===0}catch(e){return L.debug&&console.error("Debug: Error checking Vercel login status:",e),!1}}async function
|
|
266
|
+
Debug: Top-level error in pushEnvironmentVariables:`),console.error(t)),!1}}async function iO(){let t=process.version.replace(/^v/,"").split(".")[0];try{let n=".vercel/project.json";if(!Ln.existsSync(n))return L.debug&&console.log("Debug: No project.json found"),!1;let i=await Ln.readJSON(n);return L.debug&&console.log("Debug: Current project config:",i),i.settings={...i.settings,nodeVersion:`${t}.x`},await Ln.writeJSON(n,i,{spaces:2}),L.debug&&console.log(`Debug: Updated Node.js version to ${t}.x`),!0}catch(n){return L.debug&&console.error("Debug: Failed to update Node.js version:",n),!1}}async function oO(){try{let e=await Ot("vercel",["whoami"],{stdio:"pipe",reject:!1});return L.debug&&console.log(`
|
|
267
|
+
Debug: Vercel whoami result:`,e),e.exitCode===0}catch(e){return L.debug&&console.error("Debug: Error checking Vercel login status:",e),!1}}async function uO(){console.log(ve.blue(`
|
|
268
268
|
You need to log in to Vercel first.`));try{return await Ot("vercel",["login"],{stdio:"inherit"}),!0}catch(e){return console.error(ve.red(`
|
|
269
|
-
Failed to log in to Vercel:`),e),!1}}async function
|
|
269
|
+
Failed to log in to Vercel:`),e),!1}}async function um(){if(L.debug&&console.log("Running deploy..."),!await X3()&&!await Q3()){console.log(ve.red(`
|
|
270
270
|
Failed to install Vercel CLI. Please install it manually using:`)),console.log(ve.blue(`
|
|
271
|
-
npm install -g vercel`));return}if(!await
|
|
272
|
-
Failed to log in to Vercel. Please try again.`));return}if(!await
|
|
273
|
-
Setting up new Vercel project...`)),!await
|
|
274
|
-
Failed to set up Vercel project automatically.`));return}if(!await
|
|
271
|
+
npm install -g vercel`));return}if(!await oO()&&!await uO()){console.log(ve.red(`
|
|
272
|
+
Failed to log in to Vercel. Please try again.`));return}if(!await eO()){if(console.log(ve.blue(`
|
|
273
|
+
Setting up new Vercel project...`)),!await rO()){console.log(ve.red(`
|
|
274
|
+
Failed to set up Vercel project automatically.`));return}if(!await nO()){console.log(ve.red(`
|
|
275
275
|
Failed to push environment variables. Aborting deployment.`));return}}console.log(ve.blue(`
|
|
276
276
|
Pulling latest project settings...`));try{await Ot("vercel",["pull","--yes"],{stdio:"inherit"})}catch(i){console.error(ve.red(`
|
|
277
|
-
Failed to pull project settings:`),i);return}if(await
|
|
277
|
+
Failed to pull project settings:`),i);return}if(await iO()||console.error(ve.red(`
|
|
278
278
|
Failed to set Node.js version. Continuing anyway...`)),L.localBuild){console.log(ve.blue(`
|
|
279
279
|
Preparing local build for Vercel...`));try{if((await Ot("vercel",["build"],{stdio:"inherit",reject:!1})).exitCode===0)console.log(ve.green(`
|
|
280
280
|
\u2713 Local build successful!`));else{console.error(ve.red(`
|
|
@@ -285,16 +285,16 @@ Deploying to Vercel...`)),(await Ot("vercel",["deploy","--prebuilt","--yes"],{st
|
|
|
285
285
|
Deploying to Vercel...`));try{if((await Ot("vercel",["deploy","--yes"],{stdio:"inherit",reject:!1})).exitCode===0)console.log(ve.green(`
|
|
286
286
|
\u2713 Deployment successful!`));else{let r=Ue(),o=r==="npm"?"npm run":r;console.error(ve.red(`
|
|
287
287
|
\u2716 Deployment failed`)),console.log(ve.yellow(`
|
|
288
|
-
Troubleshooting Tips:`)),console.log(ve.dim("You can check for most errors before deploying for a faster iteration cycle")),console.log(ve.dim("Run")+` ${o} tsc `+ve.dim("to check for TypeScript errors (most common build errors)")),console.log(ve.dim("Run")+` ${o} build `+ve.dim("to run the full production build locally"))}}catch{return}}}var
|
|
288
|
+
Troubleshooting Tips:`)),console.log(ve.dim("You can check for most errors before deploying for a faster iteration cycle")),console.log(ve.dim("Run")+` ${o} tsc `+ve.dim("to check for TypeScript errors (most common build errors)")),console.log(ve.dim("Run")+` ${o} build `+ve.dim("to run the full production build locally"))}}catch{return}}}var v_=()=>{let e=new Y3("deploy").description("Deploy your ProofKit application to Vercel").addOption(Ve).addOption(rt).addOption(new J3("--local-build","Build locally before deploying")).action(um);return e.hook("preAction",t=>{Se(t.opts()),L.baseCommand="deploy",Le({commandName:"deploy"})}),e};import*as as from"@clack/prompts";import vO from"chalk";import yO from"open";import*as b_ from"@clack/prompts";import{Command as mO}from"commander";import y_ from"path";import*as tr from"@clack/prompts";import{Command as aO}from"commander";import sO from"dotenv";import am from"fs-extra";function cO(e){if(e.type!=="fm")return e.type;let t=y_.join(L.projectDir,".env");am.existsSync(t)&&sO.config({path:t});let n=process.env[e.envNames.server]||"unknown server",i=process.env[e.envNames.database]||"unknown database";try{return`${new URL(n).hostname}/${i}`}catch(r){return L.debug&&console.error("Error parsing server URL:",r),`${n}/${i}`}}var sm=async e=>{let t=fe();if(t.dataSources.length===0){tr.note("No data sources found in your project.");return}let n=e;if(!n)n=ae(await tr.select({message:"Which data source do you want to remove?",options:t.dataSources.map(o=>{let u="";try{u=cO(o)}catch(a){L.debug&&console.error("Error getting data source info:",a),u="unknown connection"}return{label:`${o.name} (${u})`,value:o.name}})}));else if(!t.dataSources.some(u=>u.name===n))throw new Error(`Data source "${n}" not found in your project.`);let i=!0;if(!L.ci&&(i=ae(await tr.confirm({message:`Are you sure you want to remove the data source "${n}"? This will only remove it from your configuration, not replace any possible usage, which may cause TypeScript errors.`})),!i))throw new zt;let r=t.dataSources.find(o=>o.name===n);if(t.dataSources=t.dataSources.filter(o=>o.name!==n),In(t),r?.type==="fm"){ly({dataSourceName:n}),L.debug&&tr.note("Removed schemas from fmschema.config.mjs");let o=y_.join(L.projectDir,"src","config","schemas",n);am.existsSync(o)&&(am.removeSync(o),L.debug&&tr.note(`Removed schema folder at ${o}`)),await Ut(),L.debug&&tr.note("Successfully regenerated types")}tr.note(`Successfully removed data source "${n}"`)},__=()=>{let e=new aO("data").description("Remove a data source from your project").option("--name <name>","Name of the data source to remove").addOption(Ve).addOption(rt).action(async t=>{let i=X.object({name:X.string().optional()}).parse(t);await sm(i.name)});return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="remove",Le({commandName:"remove"})}),e};import os from"path";import*as zn from"@clack/prompts";import{Command as lO}from"commander";import E_ from"fs-extra";import{Node as rr,SyntaxKind as us}from"ts-morph";var fO=e=>{let t=e.addSourceFileAtPath(os.join(L.projectDir,"src/app/navigation.tsx")),n=[];return t.getVariableDeclaration("primaryRoutes")?.getInitializerIfKind(us.ArrayLiteralExpression)?.getElements()?.forEach(o=>{if(rr.isObjectLiteralExpression(o)){let u=o.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="label"),a=o.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="href"),s=u?.getInitializer()?.getText().replace(/['"]/g,""),c=a?.getInitializer()?.getText().replace(/['"]/g,"");s&&c&&n.push({label:s,href:c})}}),t.getVariableDeclaration("secondaryRoutes")?.getInitializerIfKind(us.ArrayLiteralExpression)?.getElements()?.forEach(o=>{if(rr.isObjectLiteralExpression(o)){let u=o.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="label"),a=o.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="href"),s=u?.getInitializer()?.getText().replace(/['"]/g,""),c=a?.getInitializer()?.getText().replace(/['"]/g,"");s&&c&&n.push({label:s,href:c})}}),n},dO=async(e,t)=>{let n=e.addSourceFileAtPath(os.join(L.projectDir,"src/app/navigation.tsx")),i=n.getVariableDeclaration("primaryRoutes")?.getInitializerIfKind(us.ArrayLiteralExpression);if(i){let o=i.getElements();for(let u=o.length-1;u>=0;u--){let a=o[u];rr.isObjectLiteralExpression(a)&&a.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="href")?.getInitializer()?.getText().replace(/['"]/g,"")===t&&i.removeElement(u)}}let r=n.getVariableDeclaration("secondaryRoutes")?.getInitializerIfKind(us.ArrayLiteralExpression);if(r){let o=r.getElements();for(let u=o.length-1;u>=0;u--){let a=o[u];rr.isObjectLiteralExpression(a)&&a.getProperties().find(l=>rr.isPropertyAssignment(l)&&l.getName()==="href")?.getInitializer()?.getText().replace(/['"]/g,"")===t&&r.removeElement(u)}}await Je(e)},cm=async e=>{let t=fe(),n=L.projectDir,i=Ye(n),r=fO(i);if(r.length===0)return zn.cancel("No pages found in the navigation.");e||(e=ae(await zn.select({message:"Select the page to remove",options:r.map(a=>({label:`${a.label} (${a.href})`,value:a.href}))}))),e.startsWith("/")||(e=`/${e}`);let o=L.appType==="browser"?os.join(n,"src/app/(main)",e):os.join(n,"src/routes",e),u=zn.spinner();u.start("Removing page");try{if(!E_.existsSync(o))return u.stop("Page not found!"),zn.cancel(`Page at ${e} does not exist`);await dO(i,e),await E_.remove(o),u.stop("Page removed successfully!")}catch(a){u.stop("Failed to remove page!"),console.error("Error removing page:",a),process.exit(1)}},F_=()=>{let e=new lO("page").description("Remove a page from your project").argument("[route]","The route of the page to remove").addOption(Ve).addOption(rt).action(async t=>{await cm(t)});return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="remove",Le({commandName:"remove"})}),e};import*as dt from"@clack/prompts";import{Command as pO}from"commander";var lm=async e=>{let t=e?.settings??fe(),n=e?.projectDir??L.projectDir,i=e?.sourceName;if(!i&&t.dataSources.filter(s=>s.type==="fm").length>1){let s=await dt.select({message:"Which FileMaker data source do you want to remove a layout from?",options:t.dataSources.filter(c=>c.type==="fm").map(c=>({label:c.name,value:c.name}))});dt.isCancel(s)&&(dt.cancel(),process.exit(0)),i=X.string().parse(s)}if(i||(i="filemaker"),!t.dataSources.filter(s=>s.type==="fm").find(s=>s.name===i))throw new Error(`FileMaker data source ${i} not found in your ProofKit config`);let o=Fi({projectDir:n,dataSourceName:i});if(o.length===0){dt.note(`No layouts found in data source "${i}"`,"Nothing to remove");return}let u=e?.schemaName??ae(await dt.select({message:"Select a layout to remove",options:o.map(s=>({label:`${s.layout} (${s.schemaName})`,value:s.schemaName??""})).filter(s=>s.value!=="")})),a=await dt.confirm({message:`Are you sure you want to remove the layout "${u}"?`,initialValue:!1});(dt.isCancel(a)||!a)&&(dt.cancel("Operation cancelled"),process.exit(0)),await fy({projectDir:n,dataSourceName:i,schemaName:u,runCodegen:!0}),dt.outro(`Layout "${u}" has been removed from your project`)},C_=()=>new pO("layout").alias("schema").description("Remove a layout from your fmschema file").action(async t=>{let n=t.settings;await lm({settings:n})});var fm=async e=>{let t=fe(),n=ae(await b_.select({message:"What do you want to remove from your project?",options:[{label:"Page",value:"page"},{label:"Schema",value:"schema",hint:"remove a table or layout schema"},...t.appType==="browser"?[{label:"Data Source",value:"data",hint:"remove a database or FileMaker connection"}]:[]]}));n==="data"?await sm():n==="page"?await cm():n==="schema"&&await lm()};function A_(){let e=new mO("remove").description("Remove a component from your project").argument("[name]","Type of component to remove").addOption(Ve).addOption(rt).action(fm);return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="remove",Le({commandName:"remove"})}),e.hook("preSubcommand",(t,n)=>{Se(n.opts()),L.baseCommand="remove",Le({commandName:"remove"})}),e.addCommand(__()),e.addCommand(F_()),e.addCommand(C_()),e}import{Command as DO}from"commander";async function dm(e){let t=e.settings.dataSources,n=!1;for await(let i of t){if(i.type==="supabase")throw new Error("Supabase is not supported yet");if(i.type==="fm")console.log(`Detected FileMaker database, generating types for ${i.name}...`),n=!0;else throw new Error("Unable to generate types for unknown database type")}n&&await Ut()}var w_=()=>{let e=new DO("typegen").description("Generate types for your project").action(dm);return e.hook("preAction",(t,n)=>{let i=Le({commandName:"typegen"});n.setOptionValue("settings",i)}),e};import hO from"chalk";import{Command as gO}from"commander";var pm=async()=>{Se({}),L.baseCommand="upgrade",Le({commandName:"upgrade"}),ue.info(`
|
|
289
289
|
Upgrading ProofKit components...
|
|
290
290
|
`);try{ue.info(`
|
|
291
291
|
Upgrading cursor rules...
|
|
292
|
-
`),
|
|
293
|
-
`))}catch(e){ue.error("Failed to upgrade components:",e),process.exit(1)}},
|
|
292
|
+
`),wi(),ue.info(hO.green(`\u2714 Successfully upgraded cursor rules
|
|
293
|
+
`))}catch(e){ue.error("Failed to upgrade components:",e),process.exit(1)}},fU=new gO().name("upgrade").description("Upgrade ProofKit components in your project").action(pm);var S_=async()=>{let e=fe();switch(ae(await as.select({message:"What would you like to do?",options:[{label:"Add Components",value:"add",hint:"Add new pages, schemas, data sources, etc."},{label:"Remove Components",value:"remove",hint:"Remove pages, schemas, data sources, etc."},{label:"Generate Types",value:"typegen",hint:"Update field definitions from your data sources"},{label:"Deploy",value:"deploy",hint:"Deploy your app to Vercel"},{label:"Upgrade Components",value:"upgrade",hint:"Update ProofKit components to latest version"},{label:"View Documentation",value:"docs",hint:"Open ProofKit documentation"}]}))){case"add":await om(void 0);break;case"remove":await fm(void 0);break;case"docs":as.log.info(`Opening ${vO.cyan(cs)} in your browser...`),await yO(cs);break;case"typegen":await dm({settings:e});break;case"deploy":await um();break;case"upgrade":await pm();break}};import $_ from"chalk";import{Command as _O}from"commander";import EO from"ora";var k_=()=>{let e=new _O("upgrade").description("Upgrade ProofKit components in your project").addOption(Ve).action(async t=>{Se(t),ue.info(`
|
|
294
294
|
Upgrading ProofKit components...
|
|
295
|
-
`);let n=
|
|
295
|
+
`);let n=EO("Updating cursor rules...").start();try{wi(),n.succeed($_.green("Successfully updated cursor rules"))}catch(i){n.fail($_.red("Failed to update cursor rules")),ue.error("Error:",i),process.exit(1)}ue.info(`
|
|
296
296
|
Upgrade completed successfully!
|
|
297
|
-
`)});return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="upgrade",Le({commandName:"upgrade"})}),e};import{execSync as
|
|
298
|
-
Run ${
|
|
299
|
-
The ProofKit CLI was inspired by the ${
|
|
300
|
-
`),e.addCommand(
|
|
297
|
+
`)});return e.hook("preAction",(t,n)=>{Se(n.opts()),L.baseCommand="upgrade",Le({commandName:"upgrade"})}),e};import{execSync as FO}from"child_process";import CO from"https";import*as x_ from"@clack/prompts";import I_ from"chalk";function bO(){return new Promise((e,t)=>{CO.get("https://registry.npmjs.org/-/package/@proofkit/cli/dist-tags",n=>{if(n.statusCode===200){let i="";n.on("data",r=>i+=r),n.on("end",()=>{e(JSON.parse(i).latest)})}else t()}).on("error",()=>{t()})})}var AO=async()=>bO().catch(()=>{try{return FO("npm view proofkit version").toString().trim()}catch{return null}}),P_=async()=>{let e=await AO(),t=Mt();if(t!==e){let n=Ue();x_.log.warn(`${I_.yellow(`You are using an outdated version of ${_m}.`)} Your version: ${t}. Latest version: ${e}.
|
|
298
|
+
Run ${I_.magenta.bold(`${n} install ${Un}@latest`)} to get the latest updates.`)}return{npmVersion:e,currentVersion:t}};var $O=Mt(),kO=async()=>{let e=new SO;n_(),await P_(),e.name(Un).version($O).command("default",{hidden:!0,isDefault:!0}).addOption(Ve).action(async t=>{Se(t);let n;try{n=fe()}catch{}L.ci&&ue.warn("Running in CI mode"),n?(mm.intro(`Found ${is("ProofKit")} project`),await S_()):(mm.intro(`No ${is("ProofKit")} project found, running \`init\``),await Qp())}).addHelpText("afterAll",`
|
|
299
|
+
The ProofKit CLI was inspired by the ${wO.hex("#E8DCFF").bold("t3 stack")}
|
|
300
|
+
`),e.addCommand(r_()),e.addCommand(g_()),e.addCommand(A_()),e.addCommand(w_()),e.addCommand(v_()),e.addCommand(k_()),await e.parseAsync(process.argv),process.exit(0)};kO().catch(e=>{e instanceof zt?process.exit(0):e instanceof Error?(ue.error("Aborting installation..."),ue.error(e)):(ue.error("An unknown error has occurred. Please open an issue on github with the below:"),console.log(e)),process.exit(1)});
|