var Ql=Object.defineProperty;var ec=(e,t,n)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var me=(e,t,n)=>ec(e,typeof t!="symbol"?t+"":t,n);import{bE as tc,b4 as nc,_ as rc,be as ve,f as ic,c as ae,g as Ie,j as he,w as _e,a as te,h as ce,k as mn,af as Rr,n as Et,t as be,F as ft,p as Dn,bx as sc,az as oc,D as ac,bc as lc,bd as cc,b7 as uc,bD as fc,a$ as dc,b8 as hc,X as pc,bF as mc,aY as gc,b6 as vc,bb as _c,bG as yc,V as wc,N as bc,aB as Ec,aC as kc,bH as _s,aL as Ac,aE as Ic,aH as ys,b as Fr,Y as dt,ai as Tc,bI as ws,ah as rt,aM as Pn,aN as Vt,Q as Sc,o as ee,i as Se,l as Cc}from"./Co0rzPff.js";import{a as Wo}from"./Dv8m3Ifq.js";import{A as Oc}from"./CCBW7oxg.js";import{B as $c}from"./Du-ui3YH.js";import{C as Lc}from"./B1zKQxf0.js";import{C as xc}from"./BYJQ8xM9.js";import{M as Nc}from"./D8azl7O2.js";import{_ as Rc}from"./D4_3Zti7.js";import{e as Fc,a as Dc}from"./z-xUYPp7.js";import{s as Pc}from"./C0vv9eT9.js";import{A as Bc}from"./DcnV1fqM.js";import{B as jc}from"./CR1BVrCp.js";import{F as Uc}from"./zytbOkTZ.js";import{M as Mc}from"./q_nL87ua.js";import{C as zc}from"./BB5xSxcZ.js";import{u as Vc}from"./DBNWUgTg.js";import{a as Wc}from"./DAU1O6t8.js";import{r as Gc}from"./BeVU9OG3.js";import{d as Hc}from"./BfaRX-7s.js";import{u as Yc}from"./L_4X0bf_.js";import{u as Zc}from"./DN-g_sLF.js";import"./3GiTAe2n.js";import"./C3q4b65f.js";import"./yQWqYLws.js";import"./B9e2zZjP.js";import"./LOpRUKsC.js";import"./DXpa0SRI.js";import"./CdDJKVfF.js";const qc="1.38.0",ie=SyntaxError,Le=RangeError,ue=TypeError,Ne=Error,Be=void 0,wt=typeof BigInt>"u"?Be:BigInt,Di=RegExp,Pi=WeakMap,Go=WeakMap.prototype.get,Ho=WeakMap.prototype.set,Ze=Object.create,Qt=Number.isSafeInteger,pt=Object.getOwnPropertyNames,Ge=Object.freeze,Yo=Object.prototype.isPrototypeOf,We=Object.seal?Object.preventExtensions(Object.create(null)):null,on=Function.prototype.bind,bs=RegExp.prototype.test,Es=RegExp.prototype.exec,Bi=Reflect.apply,ii=Proxy,ks=typeof Symbol>"u"?Be:Symbol.toStringTag,Zo=Object.defineProperty,St=Object.assign,ji=Object,Xc=Math.floor,Pt=Array.isArray,an=1/0,Ui=String.fromCharCode,Kn=Array,Bn=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,$t=Function.prototype.apply;var qo=As.call.bind(As),At=ji.hasOwn||function(){return Bn.bind?Bn.call.bind(Bn):function(t,n){return Bn.call(t,n)}}(),Xo=ji.create;function Is(e){var t=Xo(We);return At(e,"value")&&(t.value=e.value),At(e,"writable")&&(t.writable=e.writable),At(e,"get")&&(t.get=e.get),At(e,"set")&&(t.set=e.set),At(e,"enumerable")&&(t.enumerable=e.enumerable),At(e,"configurable")&&(t.configurable=e.configurable),t}const Kc=function(t,n){if(!n&&typeof t!="function"&&(n=t,t=Ze(We)),St)St(t,n);else for(var r in n)At(n,r)&&(t[r]=n[r]);if(t.default=t,typeof t=="function")t.prototype&&Ge(t.prototype);else if(ks){var s=Ze(We);s.value="Module",Zo(t,ks,s)}return Ge(t)};/*!@preserve@license * 模块名称:j-regexp * 模块功能:可读性更好的正则表达式创建方式。从属于“简计划”。      More readable way for creating RegExp. Belong to "Plan J". * 模块版本:8.2.0 * 许可条款:LGPL-3.0 * 所属作者:龙腾道 (www.LongTengDao.com) * 问题反馈:https://GitHub.com/LongTengDao/j-regexp/issues * 项目主页:https://GitHub.com/LongTengDao/j-regexp/ */var Ko=on?on.bind(bs):function(e){return function(t){return bs.call(e,t)}},Jo=on?on.bind(Es):function(e){return function(t){return Es.call(e,t)}};function Jc(e){var t=e.test=Ko(e),n=e.exec=Jo(e),r=t.source=n.source=e.source;return t.unicode=n.unicode=e.unicode,t.ignoreCase=n.ignoreCase=e.ignoreCase,t.multiline=n.multiline=r.indexOf("^")<0&&r.indexOf("$")<0?null:e.multiline,t.dotAll=n.dotAll=r.indexOf(".")<0?null:e.dotAll,e}function ge(e){return Jc(e)}var Ts=/[\n\t]+/g,Qc=/\\./g;function eu(e){return e==="\\`"?"`":e}var st="".includes?function(e,t){return e.includes(t)}:function(e,t){return e.indexOf(t)>-1};function qt(e){for(var t=this.U,n=this.I,r=this.M,s=this.S,a=e.raw,i=a[0].replace(Ts,""),l=1,o=arguments.length;l!==o;){var c=arguments[l];if(typeof c=="string")i+=c;else{var p=c.source;if(typeof p!="string")throw ue("source");if(c.unicode===t)throw ie("unicode");if(c.ignoreCase===n)throw ie("ignoreCase");if(c.multiline===r&&(st(p,"^")||st(p,"$")))throw ie("multiline");if(c.dotAll===s&&st(p,"."))throw ie("dotAll");i+=p}i+=a[l++].replace(Ts,"")}var h=Di(t?i=i.replace(Qc,eu):i,this.flags),m=h.test=Ko(h),v=h.exec=Jo(h);return m.source=v.source=i,m.unicode=v.unicode=!t,m.ignoreCase=v.ignoreCase=!n,m.multiline=v.multiline=st(i,"^")||st(i,"$")?!r:null,m.dotAll=v.dotAll=st(i,".")?!s:null,h}var tu=on&&on.bind(qt);function si(e){return{U:!st(e,"u"),I:!st(e,"i"),M:!st(e,"m"),S:!st(e,"s"),flags:e}}var Ss=si(""),we=ii?new ii(qt,{apply:function(e,t,n){return Bi(e,Ss,n)},get:function(e,t){return tu(si(t))},defineProperty:function(){return!1},preventExtensions:function(){return!1}}):function(){qt.apply=qt.apply;for(var e=function(){return qt.apply(Ss,arguments)},t=1,n=t*2,r=n*2,s=r*2,a=r*2,i=a*2,l=i*2,o=l*2-1;o--;)(function(c){e[c.flags]=function(){return qt.apply(c,arguments)}})(si((o&t?"":"d")+(o&n?"":"g")+(o&r?"":"i")+(o&s?"":"m")+(o&a?"":"s")+(o&i?"":"u")+(o&l?"":"y")));return Ge?Ge(e):e}(),nu="$_"in Di?function(){var e=/^/;return e.test=e.test,function(n){return e.test(""),n}}():function(t){return t},Qo=nu,ru=/^[$()*+\-.?[\\\]^{|]/,iu=Ze(We);function su(e,t,n){for(var r=Ze(We),s=ea,a=e.length,i=0;i (www.LongTengDao.com) * 问题反馈:https://GitHub.com/LongTengDao/j-orderify/issues * 项目主页:https://GitHub.com/LongTengDao/j-orderify/ */const sa=()=>[],Mi=()=>{const e=new Pi;return e.has=e.has,e.get=e.get,e.set=e.set,e},Yn=Mi(),oa=Mi(),Os=Mi(),uu=St(Ze(We),{defineProperty:(e,t,n)=>{if(At(e,t))return Cs(e,t,St(Ze(We),n));if(Cs(e,t,St(Ze(We),n))){const r=Yn.get(e);return r[r.length]=t,!0}return!1},deleteProperty:(e,t)=>{if(cu(e,t)){const n=Yn.get(e),r=n.indexOf(t);return r<0||--n.copyWithin(r,r+1).length,!0}return!1},ownKeys:e=>Yn.get(e),construct:(e,t,n)=>$s(lu(e,t,n)),apply:(e,t,n)=>$s(Bi(e,t,n))}),aa=(e,t)=>{Yn.set(e,t);const n=new ii(e,uu);return oa.set(n,e),n},$s=e=>{if(oa.has(e))return e;let t=Os.get(e);return t||(t=aa(e,St(sa(),ia(e))),Os.set(e,t),t)},fu=function(){function e(){throw ue("Super constructor Null cannot be invoked with 'new'")}function t(){throw ue("Super constructor Null cannot be invoked without 'new'")}const n=s=>(delete s.prototype.constructor,Ge(s.prototype),s);function r(s){return new.target?new.target===r?e():aa(this,sa()):typeof s=="function"?n(s):t()}return r.prototype=null,Zo(r,"name",St(Ze(We),{value:"",configurable:!1})),Ge(r),r}(),du=WeakMap.prototype.has,hu=WeakMap.prototype.delete,yr=new Pi,zi=new Mt,la=hu.bind(yr),ca=na.bind(zi),Vi=du.bind(yr),pu=Go.bind(yr),vt=Ho.bind(yr),mu=(e,t,n)=>{if(Pt(e)){if(n)t=3;else if(t===Be)t=3;else if(t!==0&&t!==1&&t!==2&&t!==3)throw typeof t=="number"?Le(`array inline mode must be 0 | 1 | 2 | 3, not including ${t}`):ue(`array inline mode must be "number" type, not including ${t===null?'"null"':typeof t}`);vt(e,t)}else vt(e,!0),ca(e);return e},gu=e=>(vt(e,!1),ca(e),e),vu=e=>(la(e),e),yn=un.bind(zi),wr=zt.bind(zi),_u=e=>{if(Pt(e))throw ue("array can not be section, maybe you want to use it on the tables in it");return wr(e),la(e),e},yu=!0,ua=new Mt,fa=zt.bind(ua),da=un.bind(ua),ha=new Mt,pa=zt.bind(ha),wu=na.bind(ha),bu=e=>wu(e)?(wr(e),!0):!1,ai=!0,Qn=!1,ma=new Mt,ga=zt.bind(ma),va=un.bind(ma),Ls=!0,xs=qe(class extends qe{constructor(t,n){return super(),fa(this),t?n?vt(this,!0):wr(this):(n?ga:pa)(this),this}}),Eu=qe(class extends fu{constructor(t,n){return super(),fa(this),t?n?vt(this,!0):wr(this):(n?ga:pa)(this),this}}),Wi=[];let er="",_t=Wi,Gi=-1,yt=-1;const J=e=>{throw e},ku=/\r?\n/,Au=(e,t)=>{if(typeof t!="string")throw ue("TOML.parse({ path })");er=t,_t=e.split(ku),Gi=_t.length-1,yt=-1},Iu=()=>_t[++yt],Tu=()=>yt!==Gi;class br{constructor(t,n){me(this,"lineIndex",yt);me(this,"type");me(this,"restColumn");return this.type=t,this.restColumn=n,this}must(){return yt===Gi&&J(ie(`${this.type} is not close until the end of the file`+Q(", which started from ",this.lineIndex,_t[this.lineIndex].length-this.restColumn+1))),_t[++yt]}nowrap(t){throw J(Ne(`TOML.parse(${t?`${t}multilineStringJoiner`:",{ joiner }"}) must be passed, while the source including multi-line string`+Q(", which started from ",this.lineIndex,_t[this.lineIndex].length-this.restColumn+1)))}}const Q=(e,t=yt,n=0)=>_t===Wi?"":er?` at (${er}:${t+1}:${n})`:`${e}line ${t+1}: ${_t[t]}`,Su=()=>{er="",_t=Wi},Je=/[ \t]/,Me=we` ^${Je}+`.valueOf(),{exec:_a}=we.s` ^ ( (?:\d\d\d\d-\d\d-\d\d \d)? [\w\-+.:]+ ) ${Je}* (.*) $`.valueOf(),{exec:Cu}=we.s` ^ '([^']*)' ${Je}* (.*)`.valueOf(),{exec:Ou}=we.s` ^ (.*?) '''('{0,2}) ${Je}* (.*)`.valueOf(),{exec:Zn}=we.s` ^ (.*?) '''() ${Je}* (.*)`.valueOf();let Ft=Zn;const at=we.s` ^ . ${Je}*`.valueOf(),Hi=/[^\x00-\x1F"#'()<>[\\\]`{}\x7F]+/,{exec:$u}=we.s` ^ ${Je}* = ${Je}* (?: <(${Hi})> ${Je}* )? (.*) $`.valueOf(),{exec:Lu}=we.s` ^ <(${Hi})> ${Je}* (.*) $`.valueOf(),{exec:xu}=we.s` ^ <(${Hi})> ${Je}* (.*) $`.valueOf(),Ns=ge(/[^\\"]+|\\.?|"(?!"")"?/sy),Dr=e=>{let t=0;for(;Ns.test(e);)t=Ns.lastIndex;return t},ya=/[^\\\x00-\x08\x0B-\x1F\x7F]+|\\(?:[btnfr"\\]|[\t ]*\n[\t\n ]*|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/g,Nu=/[^\\\x00-\x09\x0B-\x1F\x7F]+|\\(?:[btnfr"\\]|[\t ]*\n[\t\n ]*|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/g,Ru=/[^\\\x00-\x09\x0B-\x1F]+|\\(?:[btnfr"\\]|[\t ]*\n[\t\n ]*|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/g,Fu=/[^\\\x00-\x09\x0B-\x1F]+|\\(?:[btnfr"\\/]|[\t ]*\n[\t\n ]*|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/g;let wn=ya;const gn=e=>!e.replace(wn,""),Du=ge(/[^\\"\x00-\x08\x0B-\x1F\x7F]+|\\(?:[btnfr"\\]|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/y),Pu=ge(/[^\\"\x00-\x08\x0B-\x1F\x7F]+|\\(?:[btnfr"\\]|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/y),Bu=ge(/[^\\"\x00-\x08\x0B-\x1F]+|\\(?:[btnfr"\\]|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/y),wa=ge(/[^\\"\x00-\x08\x0B-\x1F]+|\\(?:[btnfr"\\/]|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/y);let Dt=wa;const ba=e=>{let t=Dt.lastIndex=1;for(;Dt.test(e);)t=Dt.lastIndex;return t!==e.length&&e[t]==='"'||J(ie("Bad basic string"+Q(" at "))),t},{test:ju}=ge(/^[ \t]*\./),Uu=/^[ \t]*\.[ \t]*/,{exec:Pr}=ge(/^[\w-]+/),{exec:Ea}=ge(/^[^ \t#=[\]'".]+(?:[ \t]+[^ \t#=[\]'".]+)*/);let bn=Ea;const{exec:Rs}=ge(/^'[^'\x00-\x08\x0B-\x1F\x7F]*'/),{exec:li}=ge(/^'[^'\x00-\x08\x0B-\x1F]*'/);let En=li,kn=!0;const Mu=(e,t)=>{const n=e[1]==="[";n?(kn||J(ie("Array of Tables is not allowed before TOML v0.2"+Q(", which at "))),e=e.slice(2)):e=e.slice(1),e=e.replace(Me,"");const{leadingKeys:r,finalKey:s}={lineRest:e}=t(e);e=e.replace(Me,""),e&&e[0]==="]"||J(ie("Table header is not closed"+Q(", which is found at "))),(e.length>1?e[1]==="]"===n:!n)||J(ie("Square brackets of Table definition statement not match"+Q(" at "))),e=e.slice(n?2:1).replace(Me,"");let a;return e&&e[0]==="<"?{1:a,2:e}=xu(e)||J(ie("Bad tag"+Q(" at "))):a="",{leadingKeys:r,finalKey:s,asArrayItem:n,tag:a,lineRest:e}},zu=({leadingKeys:e,finalKey:t,lineRest:n})=>{const{1:r=""}={2:n}=$u(n)||J(ie("Keys must equal something"+Q(", but missing at ")));return r||n&&n[0]!=="#"||J(ie("Value can not be missing after euqal sign"+Q(", which is found at "))),{leadingKeys:e,finalKey:t,tag:r,lineRest:n}},{test:ci}=ge(/[\x00-\x08\x0B-\x1F\x7F]/),{test:Fs}=ge(/[\x00-\x08\x0B-\x1F]/);let en=ci;const Vu=e=>{switch(e){case 1:Ft=Ou,En=Rs,en=ci,wn=ya,Dt=Du,bn=Pr,kn=!0;break;case .5:Ft=Zn,En=Rs,en=ci,wn=Nu,Dt=Pu,bn=Pr,kn=!0;break;case .4:Ft=Zn,En=li,en=Fs,wn=Ru,Dt=Bu,bn=Pr,kn=!0;break;default:Ft=Zn,En=li,en=Fs,wn=Fu,Dt=wa,bn=Ea,kn=!1}},Ds=we` (?: 0 (?: b[01][_01]* | o[0-7][_0-7]* | x[\dA-Fa-f][_\dA-Fa-f]* | (?:\.\d[_\d]*)?(?:[Ee]-?\d[_\d]*)? ) | [1-9][_\d]* (?:\.\d[_\d]*)?(?:[Ee]-?\d[_\d]*)? | inf | nan ) `.valueOf(),{test:Wu}=we` ^(?: -?${Ds} (?:-${Ds})* | true | false )$ `.valueOf(),{test:Gu}=we`_(?![\dA-Fa-f])`.valueOf(),ka=e=>Wu(e)&&!Gu(e);let ot=!0,Ce="",Ct=null,tn=!0,ui=0,fi=0;const Yi={test:()=>!0},Aa=class extends Di{constructor(t){super(`^${su(t)}$`);let n=-1;for(let r=t.length;r;){const{length:s}=t[--r];s>n&&(n=s)}return this.lastIndex=n+1,this}test(t){return t.length{const e=t=>{const n=Yu(t);return n?n===e||J(ue("Types in Array must be same"+Q(". Check "))):Zu(t,e),t};return e},qu={asNulls:Ke(),asStrings:Ke(),asTables:Ke(),asArrays:Ke(),asBooleans:Ke(),asFloats:Ke(),asIntegers:Ke(),asOffsetDateTimes:Ke(),asLocalDateTimes:Ke(),asLocalDates:Ke(),asLocalTimes:Ke()},Xu=e=>e;let hi,ir,pi,mi,sr,gi,vi,_i,yi,wi,bi,Zi=null,sn=null;const Ku=(e,t,n,r)=>{const s=Ze(We);s._linked=sn,s.tag=e,n&&(s.table=n,s.key=r),t&&(s.array=t,s.index=t.length),sn=s},Ei=()=>{throw J(ie("xOptions.tag is not enabled, but found tag syntax"+Q(" at ")))};let Bt=Ei;const Ju=()=>{if(sn){const e=Zi;let t=sn;return sn=null,()=>{const n=e;let r=t;t=null;do n(r);while(r=r._linked)}}return null},Qu=()=>{Sn=Yi,Ct=Zi=sn=null,It=!1},ef=(e,t,n,r,s,a)=>{Ce=a;let i;switch(e){case 1:ot=i=Ye=Rt=Tt=!0,It=Nt=!1;break;case .5:ot=Ye=Rt=Tt=!0,i=It=Nt=!1;break;case .4:ot=Nt=Tt=!0,i=It=Ye=Rt=!1;break;case .3:ot=Nt=!0,i=It=Ye=Rt=Tt=!1;break;case .2:It=Nt=!0,ot=i=Ye=Rt=Tt=!1;break;case .1:It=Nt=!0,ot=i=Ye=Rt=Tt=!1;break;default:throw Le("TOML.parse(,specificationVersion)")}if(Vu(e),typeof t=="string")Ct=t;else if(t===Be)Ct=null;else throw ue(`TOML.parse(${Ce?`${Ce}multilineStringJoiner`:",{ joiner }"})`);if(n===Be||n===!0)tn=!0;else if(n===!1)tn=!1;else{if(typeof n!="number")throw ue(`TOML.parse(${Ce?`${Ce},useBigInt`:",{ bigint }"})`);if(!Qt(n))throw Le(`TOML.parse(${Ce?`${Ce},useBigInt`:",{ bigint }"})`);tn=null,n>=0?ui=-(fi=n):fi=-(ui=n)-1}if(!wt&&tn!==!1)throw Ne(`Can't work without TOML.parse(${Ce?`${Ce},useBigInt`:",{ bigint }"}) being set to false, because the host doesn't have BigInt support`);if(r==null)Sn=Yi;else{if(!Hu(r))throw ue("TOML.parse(,{ keys })");Sn=r}if(s==null)ct=xs,tr=nr=Cn=di=!1,Bt=Ei;else{if(typeof s!="object")throw ue(`TOML.parse(${Ce?`${Ce},,xOptions`:",{ x }"})`);{const{order:l,longer:o,exact:c,null:p,multi:h,comment:m,string:v,literal:u,tag:w,...g}=s,y=pt(g);if(y.length)throw ue(`TOML.parse(${Ce?`${Ce},,{ ${y.join(", ")} }`:`,{ x: { ${y.join(", ")} } }`})`);if(ct=l?Eu:xs,nr=!o,tr=!!c,Cn=!!p,di=!!h,rr=!!m,Ia=!!v,Ve=!!u,w){if(typeof w!="function")throw ue(`TOML.parse(${Ce?`${Ce},,{ tag }`:",{ x: { tag } }"})`);if(!i)throw ue(`TOML.parse(${Ce?`${Ce},,xOptions`:",{ x }"}) xOptions.tag needs at least TOML 1.0 to support mixed type array`);Zi=w,Bt=Ku}else Bt=Ei}}i?hi=ir=pi=mi=sr=gi=vi=_i=yi=wi=bi=Xu:{asNulls:hi,asStrings:ir,asTables:pi,asArrays:mi,asBooleans:sr,asFloats:gi,asIntegers:vi,asOffsetDateTimes:_i,asLocalDateTimes:yi,asLocalDates:wi,asLocalTimes:bi}=qu},tf=ArrayBuffer.isView,nf=function(){if(typeof ArrayBuffer=="function"){var e=$t.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get);return function(n){try{e(n)}catch{return!1}return!0}}return function(){return!1}}(),rf=TextDecoder,Fe=Symbol,Br=Fe("previous"),Sa=e=>{let t=e,n=t.next();if(!n.done)for(n.value[Br]=t,n=(t=n.value).next();;)if(n.done){if(t===e)break;t=t[Br],n=t.next(n.value)}else n.value[Br]=t,n=(t=n.value).next();return n.value},ki=Fe("_literal"),$e=(e,t)=>{const n=ji(t);return n[ki]=e,n},Ca=new Mt,sf=zt.bind(Ca),Oa=un.bind(Ca),of=!1,af=!0,$a=new Mt,lf=zt.bind($a),La=un.bind($a),xa=e=>{const t=[];return sf(t),e&&lf(t),t},or=Date,cf=Date.parse,uf=Object.preventExtensions,ff=Object.getOwnPropertyDescriptors,df=function(t,n){for(var r=Ze(We),s=ra(n),a=s.length,i=0;i(Ge(Ge(e).prototype),e),hf=/(?:0[1-9]|1\d|2\d)/,Ps=/(?:0[1-9]|[12]\d|30)/,Bs=/(?:0[1-9]|[12]\d|3[01])/,Na=/(?:[01]\d|2[0-3])/,Ai=/[0-5]\d/,kr=we` \d\d\d\d- (?: 0 (?: [13578]-${Bs} | [469]-${Ps} | 2-${hf} ) | 1 (?: [02]-${Bs} | 1-${Ps} ) ) `.valueOf(),Ar=we` ${Na}:${Ai}:${Ai} `.valueOf(),pf=/(?:[Zz]|[+-]\d\d:\d\d)$/,{exec:mf}=ge(/(([+-])\d\d):(\d\d)$/),{exec:gf}=we` ^ ${kr} [Tt ] ${Ar} (?:\.\d{1,3}(\d*?)0*)? (?:[Zz]|[+-]${Na}:${Ai}) $`.valueOf(),{exec:vf}=we` ^ ${kr} [Tt ] ${Ar} () [Zz] $`.valueOf(),{test:_f}=we` ^ ${kr} [Tt ] ${Ar} (?:\.\d+)? $`.valueOf(),{test:yf}=we` ^ ${kr} $`.valueOf(),{test:wf}=we` ^ ${Ar} (?:\.\d+)? $`.valueOf(),Ra=/[ t]/,bf=/[-T:.]/g,Fa=/\.?0+$/,Ef=/\.(\d*?)0+$/,kf=(e,t)=>t,Ir=(()=>{const e=function(){return this},t=qe(null);{const n=qe(null);for(const r of ia(or.prototype))r==="constructor"||r==="toJSON"||(t[r]=n)}return e.prototype=uf(Ze(or.prototype,t)),Ge(e)})(),Lt=e=>e.replace(Ef,kf).replace(bf,""),js=/./gs,Us=e=>"          "[e],Af=(e,t)=>e<0?(""+(e+6216730554e4)).replace(js,Us).padStart(14," ")+t.replace(js,Us)+e:t?(e+".").padStart(16,"0")+t:(""+e).padStart(15,"0"),qi=e=>{if(e.startsWith("02-29",5)){const t=+e.slice(0,4);return t&3?!1:t%100?!0:t%400?!1:!!(t%3200)}return!0},{test:If}=we.s`^.....(?:06.30|12.31).23:59:59`.valueOf(),ar=df(new or(0),ff(or.prototype)),jn=Fe("OffsetDateTime_ISOString"),An=Fe("OffsetDateTime_value"),kt=(e,t=0)=>(ar.setTime(+e[An]+t),ar);var Do,Po;const Xi=Er(class extends Ir{constructor(n){qi(n)||J(ie(`Invalid Offset Date-Time ${n}`+Q(" at ")));const r=n.startsWith("60",17);let s=r?n.slice(0,17)+"59"+n.slice(19):n;const{1:a=""}=(It?vf(s):gf(s))||J(ie(`Invalid Offset Date-Time ${n}`+Q(" at "))),i=cf(s=s.replace(Ra,"T").replace("z","Z"));r&&(ar.setTime(i),If(ar.toISOString())||J(ie(`Invalid Offset Date-Time ${n}`+Q(" at "))));super();me(this,Po);me(this,Do);return this[jn]=s,this[An]=Af(i,a),this}get[(Po=jn,Do=An,Fe.toStringTag)](){return"OffsetDateTime"}valueOf(){return this[An]}toISOString(){return this[jn]}getUTCFullYear(){return kt(this).getUTCFullYear()}getUTCMonth(){return kt(this).getUTCMonth()}getUTCDate(){return kt(this).getUTCDate()}getUTCHours(){return kt(this).getUTCHours()}getUTCMinutes(){return kt(this).getUTCMinutes()}getUTCSeconds(){return kt(this).getUTCSeconds()}getUTCMilliseconds(){return kt(this).getUTCMilliseconds()}getUTCDay(){return kt(this).getUTCDay()}getTimezoneOffset(){const n=mf(this[jn]);return n?+n[1]*60+ +(n[2]+n[3]):0}getTime(){return Xc(+this[An])}}),mt=Fe("LocalDateTime_ISOString"),Xt=Fe("LocalDateTime_value"),Wt=(e,t,n)=>+e[mt].slice(t,n),Gt=(e,t,n,r)=>{const s=""+r,a=n-t;if(s.length>a)throw Le();e[Xt]=Lt(e[mt]=e[mt].slice(0,t)+s.padStart(a,"0")+e[mt].slice(n))};var Bo,jo;const Ki=Er(class extends Ir{constructor(n){_f(n)&&qi(n)||J(ie(`Invalid Local Date-Time ${n}`+Q(" at ")));super();me(this,jo);me(this,Bo);return this[Xt]=Lt(this[mt]=n.replace(Ra,"T")),this}get[(jo=mt,Bo=Xt,Fe.toStringTag)](){return"LocalDateTime"}valueOf(){return this[Xt]}toISOString(){return this[mt]}getFullYear(){return Wt(this,0,4)}setFullYear(n){Gt(this,0,4,n)}getMonth(){return Wt(this,5,7)-1}setMonth(n){Gt(this,5,7,n+1)}getDate(){return Wt(this,8,10)}setDate(n){Gt(this,8,10,n)}getHours(){return Wt(this,11,13)}setHours(n){Gt(this,11,13,n)}getMinutes(){return Wt(this,14,16)}setMinutes(n){Gt(this,14,16,n)}getSeconds(){return Wt(this,17,19)}setSeconds(n){Gt(this,17,19,n)}getMilliseconds(){return+this[Xt].slice(14,17).padEnd(3,"0")}setMilliseconds(n){this[Xt]=Lt(this[mt]=this[mt].slice(0,19)+(n?("."+(""+n).padStart(3,"0")).replace(Fa,""):""))}}),jt=Fe("LocalDate_ISOString"),qn=Fe("LocalDate_value"),jr=(e,t,n)=>+e[jt].slice(t,n),Ur=(e,t,n,r)=>{const s=""+r,a=n-t;if(s.length>a)throw Le();e[qn]=Lt(e[jt]=e[jt].slice(0,t)+s.padStart(a,"0")+e[jt].slice(n))};var Uo,Mo;const Ji=Er(class extends Ir{constructor(n){yf(n)&&qi(n)||J(ie(`Invalid Local Date ${n}`+Q(" at ")));super();me(this,Mo);me(this,Uo);return this[qn]=Lt(this[jt]=n),this}get[(Mo=jt,Uo=qn,Fe.toStringTag)](){return"LocalDate"}valueOf(){return this[qn]}toISOString(){return this[jt]}getFullYear(){return jr(this,0,4)}setFullYear(n){Ur(this,0,4,n)}getMonth(){return jr(this,5,7)-1}setMonth(n){Ur(this,5,7,n+1)}getDate(){return jr(this,8,10)}setDate(n){Ur(this,8,10,n)}}),gt=Fe("LocalTime_ISOString"),Kt=Fe("LocalTime_value"),Mr=(e,t,n)=>+e[gt].slice(t,n),zr=(e,t,n,r)=>{const s=""+r,a=n-t;if(s.length>a)throw Le();e[Kt]=Lt(e[gt]=e[gt].slice(0,t)+s.padStart(2,"0")+e[gt].slice(n))};var zo,Vo;const Qi=Er(class extends Ir{constructor(n){wf(n)||J(ie(`Invalid Local Time ${n}`+Q(" at ")));super();me(this,Vo);me(this,zo);return this[Kt]=Lt(this[gt]=n),this}get[(Vo=gt,zo=Kt,Fe.toStringTag)](){return"LocalTime"}valueOf(){return this[Kt]}toISOString(){return this[gt]}getHours(){return Mr(this,0,2)}setHours(n){zr(this,0,2,n)}getMinutes(){return Mr(this,3,5)}setMinutes(n){zr(this,3,5,n)}getSeconds(){return Mr(this,6,8)}setSeconds(n){zr(this,6,8,n)}getMilliseconds(){return+this[Kt].slice(6,9).padEnd(3,"0")}setMilliseconds(n){this[Kt]=Lt(this[gt]=this[gt].slice(0,8)+(n?("."+(""+n).padStart(3,"0")).replace(Fa,""):""))}}),ln=parseInt,Da=String.fromCodePoint,Tf=/[^\\]+|\\(?:[\\"btnfr/]|u.{4}|U.{8})/gs,Sf=/[^\n\\]+|\n|\\(?:[\t ]*\n[\t\n ]*|[\\"btnfr/]|u.{4}|U.{8})/gs,Ii=e=>{if(!e)return"";const t=e.match(Tf),{length:n}=t;let r=0;do{const s=t[r];if(s[0]==="\\")switch(s[1]){case"\\":t[r]="\\";break;case'"':t[r]='"';break;case"b":t[r]="\b";break;case"t":t[r]=" ";break;case"n":t[r]=` `;break;case"f":t[r]="\f";break;case"r":t[r]="\r";break;case"u":const a=ln(s.slice(2),16);ot&&55295{if(!e)return"";const r=e.match(Sf),{length:s}=r;let a=0;do{const i=r[a];if(i===` `)++n,r[a]=t;else if(i[0]==="\\")switch(i[1]){case` `:case" ":case" ":for(let c=0;c=i.indexOf(` `,c)+1;)++n;r[a]="";break;case"\\":r[a]="\\";break;case'"':r[a]='"';break;case"b":r[a]="\b";break;case"t":r[a]=" ";break;case"n":r[a]=` `;break;case"f":r[a]="\f";break;case"r":r[a]="\r";break;case"u":const l=ln(i.slice(2),16);ot&&55295(Of(e)||$f(e))&&!Lf(e),ja=wt&&-wt("0x8000000000000000"),Ua=wt&&wt("0x7FFFFFFFFFFFFFFF"),xf=e=>{es(e)||J(ie(`Invalid Integer ${e}`+Q(" at ")));const t=e[0]==="-"?-wt(e.replace(lr,"")):wt(e.replace(lr,""));return nr||ja<=t&&t<=Ua||J(Le(`Integer expect 64 bit range (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807), not includes ${e}`+Q(" meet at "))),t},Nf=e=>{es(e)||J(ie(`Invalid Integer ${e}`+Q(" at ")));const t=ln(e.replace(Ba,""));return Qt(t)||J(Le(`Integer did not use BitInt must fit Number.isSafeInteger, not includes ${e}`+Q(" meet at "))),t},cr=e=>{if(tn===!0)return xf(e);if(tn===!1)return Nf(e);es(e)||J(ie(`Invalid Integer ${e}`+Q(" at ")));const t=ln(e.replace(Ba,""));if(ui<=t&&t<=fi)return t;const n=e[0]==="-"?-wt(e.replace(lr,"")):wt(e.replace(lr,""));return nr||ja<=n&&n<=Ua||J(Le(`Integer expect 64 bit range (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807), not includes ${e}`+Q(" meet at "))),n},Rf=isFinite,Tr=NaN,Ff=-Tr,zs=-an,{test:Df}=we` ^ ${Pa} (?: \.\d[_\d]* (?:[eE][-+]?\d[_\d]*)? | [eE][-+]?\d[_\d]* ) $`.valueOf(),Pf=/_/g,{test:Bf}=ge(/^[-+]?0(?:\.0+)?(?:[eE][-+]?0+)?$/),{exec:jf}=ge(/^[-0]?(\d*)(?:\.(\d+))?(?:e\+?(-?\d+))?$/),{exec:Uf}=ge(/^[-+]?0?(\d*)(?:\.(\d*?)0*)?(?:[eE]\+?(-?\d+))?$/),ur=e=>{if(!Df(e)||Cf(e)){if(Rt){if(e==="inf"||e==="+inf")return an;if(e==="-inf")return zs;if(e==="nan"||e==="+nan")return Tr;if(e==="-nan")return Ff}else if(!tr){if(e==="inf"||e==="+inf")return an;if(e==="-inf")return zs}throw J(ie(`Invalid Float ${e}`+Q(" at ")))}const t=e.replace(Pf,""),n=+t;if(tr){Rf(n)||J(Le(`Float ${e} has been as big as inf`+Q(" at "))),n||Bf(t)||J(Le(`Float ${e} has been as little as ${e[0]==="-"?"-":""}0`+Q(" at ")));const{1:r,2:s="",3:a=""}=jf(n),{1:i,2:l="",3:o=""}=Uf(t);i+l===r+s&&o-l.length===a-s.length||J(Le(`Float ${e} has lost its exact and been ${n}`+Q(" at ")))}return n},Mf=(e,t)=>{const{length:n}=t;let r=0;for(;r{let s;if(n){let a;t in e?Oa(a=e[t])&&!La(a)||J(Ne("Trying to push Table to non-ArrayOfTables value"+Q(" at "))):a=e[t]=xa(of),r&&Bt(r,a,e,t),a[a.length]=s=new ct(ai)}else t in e?(s=e[t],va(s)&&J(Ne("A table defined implicitly via key/value pair can not be accessed to via []"+Q(", which at "))),bu(s)||J(Ne("Duplicate Table definition"+Q(" at ")))):e[t]=s=new ct(ai),r&&Bt(r,null,e,t);return s},Vf=(e,t)=>{const{length:n}=t;let r=0;for(;r(en(e)&&J(ie("Control characters other than Tab are not permitted in a Literal String"+Q(", which was found at "))),e),Ma=(e,t,n)=>{if(!n.startsWith("'''")){const i=Cu(n)||J(ie("Bad literal string"+Q(" at "))),l=Ht(i[1]);return e[t]=Ve?$e(n.slice(0,l.length+2),l):l,i[2]}const r=Ft(n.slice(3));if(r){const i=Ht(r[1])+r[2];return e[t]=Ve?$e(n.slice(0,i.length+6),i):i,r[3]}const s=new br("Multi-line Literal String",n.length),a=!(n=n.slice(3));if(a){n=s.must();const i=Ft(n);if(i){const l=Ht(i[1])+i[2];return e[t]=Ve?$e(["'''",n.slice(0,l.length+3)],l):l,i[3]}}Ct===null&&s.nowrap(Ce);for(const i=[Ht(n)];;){const l=s.must(),o=Ft(l);if(o){i[i.length]=Ht(o[1])+o[2];const c=i.join(Ct);return Ve?(i[i.length-1]+="'''",a?i.unshift("'''"):i[0]=`'''${n}`,e[t]=$e(i,c)):e[t]=c,o[3]}i[i.length]=Ht(l)}},za=(e,t,n)=>{if(!n.startsWith('"""')){const i=ba(n),l=Ii(n.slice(1,i));return e[t]=Ve?$e(n.slice(0,i+1),l):l,n.slice(i+1).replace(Me,"")}let r=3+Dr(n.slice(3));if(n.length!==r){const i=n.slice(3,r);gn(i)||J(ie("Bad multi-line basic string"+Q(" at ")));const l=Ii(i)+(n.startsWith('"',r+=3)?n.startsWith('"',++r)?(++r,'""'):'"':"");return e[t]=Ve?$e(n.slice(0,r),l):l,n.slice(r).replace(Me,"")}const s=new br("Multi-line Basic String",r),a=(n=n.slice(3))?0:1;if(a){n=s.must();let i=Dr(n);if(n.length!==i){const l=n.slice(0,i);gn(l)||J(ie("Bad multi-line basic string"+Q(" at ")));const o=Ms(l,Ct,a)+(n.startsWith('"',i+=3)?n.startsWith('"',++i)?(++i,'""'):'"':"");return e[t]=Ve?$e(['"""',n.slice(0,i)],o):o,n.slice(i).replace(Me,"")}}Ct===null&&s.nowrap(Ce),gn(n+` `)||J(ie("Bad multi-line basic string"+Q(" at ")));for(const i=[n];;){const l=s.must();let o=Dr(l);if(l.length!==o){const c=l.slice(0,o);gn(c)||J(ie("Bad multi-line basic string"+Q(" at ")));const p=Ms(i.join(` `)+` `+c,Ct,a)+(l.startsWith('"',o+=3)?l.startsWith('"',++o)?(++o,'""'):'"':"");return Ve?(a?i.unshift('"""'):i[0]=`"""${n}`,i[i.length]=`${c}"""`,e[t]=$e(i,p)):e[t]=p,l.slice(o).replace(Me,"")}gn(l+` `)||J(ie("Bad multi-line basic string"+Q(" at "))),i[i.length]=l}},fr=qe(null),dr=e=>fr[e]||(fr[e]=Fe(e)),Tn=Fe("this"),{test:Wf}=ge(/\r?\n/g),Xn=(e,t)=>{if(t in e){const n=e[t];if(typeof n!="string")throw ue(`the value of comment must be a string, while "${n===null?"null":typeof n}" type is found`);if(Wf(n))throw ie("the value of comment must be a string and can not include newline");return` #${n}`}return""},vn=(e,t)=>t in fr?Xn(e,fr[t]):"",{test:Va}=ge(pf),{test:Gf}=ge(/^\[[\t ]*]/),Wa=e=>{let t=e;const n=[];let r=-1;for(;;){if(t||J(ie("Empty bare key"+Q(" at "))),t[0]==='"'){const a=ba(t);Sn.test(n[++r]=Ii(t.slice(1,a)))||J(Ne("Key not allowed"+Q(" at "))),t=t.slice(a+1)}else{const a=t[0]==="'",i=((a?En:bn)(t)||J(ie(`Bad ${a?"literal string":"bare"} key`+Q(" at "))))[0];t=t.slice(i.length),Sn.test(n[++r]=a?i.slice(1,-1):i)||J(Ne("Key not allowed"+Q(" at ")))}if(ju(t))t=t.replace(Uu,"");else break}if(Ia){const a=e.slice(0,-t.length);(ka(a)||Cn&&a==="null")&&J(ie("Bad bare key disabled by xOptions.string"+Q(" at ")))}if(Nt){let a=r;do n[a]||J(ie("Empty key is not allowed before TOML v0.5"+Q(", which at ")));while(a--)}const s=n[r];return n.length=r,{leadingKeys:n,finalKey:s,lineRest:t}},Hf=(e,t)=>{if(t[0]==="<"){const{1:r}={2:t}=Lu(t)||J(ie("Bad tag "+Q(" at ")));switch(Bt(r,e,null),t&&t[0]){case",":case"]":case"":case"#":return e[e.length]=Be,t}}switch(t[0]){case"'":return Ma(ir(e),e.length,t);case'"':return za(ir(e),e.length,t);case"{":return Tt||J(ie("Inline Table is not allowed before TOML v0.4"+Q(", which at "))),Ha(pi(e),e.length,t);case"[":return Ga(mi(e),e.length,t)}const{1:n}={2:t}=_a(t)||J(ie("Bad atom value"+Q(" at ")));return n==="true"?sr(e)[e.length]=!0:n==="false"?sr(e)[e.length]=!1:Cn&&n==="null"?hi(e)[e.length]=null:n.includes(":")?n.includes("-")?Va(n)?_i(e)[e.length]=new Xi(n):(Ye||J(ie("Local Date-Time is not allowed before TOML v0.5"+Q(", which at "))),yi(e)[e.length]=new Ki(n)):(Ye||J(ie("Local Time is not allowed before TOML v0.5"+Q(", which at "))),bi(e)[e.length]=new Qi(n)):n.indexOf("-")!==n.lastIndexOf("-")&&n[0]!=="-"?(Ye||J(ie("Local Date is not allowed before TOML v0.5"+Q(", which at "))),wi(e)[e.length]=new Ji(n)):n.includes(".")||n.includes("n")||(n.includes("e")||n.includes("E"))&&!n.startsWith("0x")?gi(e)[e.length]=Ve?$e(n,ur(n)):ur(n):vi(e)[e.length]=Ve?$e(n,cr(n)):cr(n),t},Ga=function*(e,t,n){const r=e[t]=xa(af);if(Gf(n))return vt(r,n[1]==="]"?0:3),n.slice(n.indexOf("]")).replace(at,"");const s=new br("Static Array",n.length);let a=n.startsWith("[ ")||n.startsWith("[ ")?3:0;for(n=n.replace(at,"");!n||n[0]==="#";)a=null,n=s.must().replace(Me,"");if(n[0]==="]")return a===null||vt(r,a),n.replace(at,"");for(;;){const i=Hf(r,n);for(n=typeof i=="string"?i:yield i;!n||n[0]==="#";)a=null,n=s.must().replace(Me,"");if(n[0]===","){for(n=n.replace(at,"");!n||n[0]==="#";)a=null,n=s.must().replace(Me,"");if(n[0]==="]")break}else{if(n[0]==="]")break;throw J(ie("Unexpect character in static array item value"+Q(", which is found at ")))}}return a===null||vt(r,a),n.replace(at,"")},Ha=function*(e,t,n){const r=e[t]=new ct(ai,yu);if(di){const s=new br("Inline Table",n.length);n=n.replace(at,"");let a=!0;for(;;){for(;!n||n[0]==="#";)a=!1,n=s.must().replace(Me,"");if(n[0]==="}")break;const i=Ti(r,n),l=Si(i);if(n=typeof l=="string"?l:yield l,n){if(n[0]==="#"){rr&&(i.table[dr(i.finalKey)]=n.slice(1)),a=!1;do n=s.must().replace(Me,"");while(!n||n[0]==="#")}}else{a=!1;do n=s.must().replace(Me,"");while(!n||n[0]==="#")}n[0]===","&&(n=n.replace(at,""))}a||vt(r,!1)}else if(n=n.replace(at,"")||J(ie("Inline Table is intended to appear on a single line"+Q(", which broken at "))),n[0]!=="}")for(;;){n[0]==="#"&&J(ie("Inline Table is intended to appear on a single line"+Q(", which broken at ")));const s=Si(Ti(r,n));if(n=(typeof s=="string"?s:yield s)||J(ie("Inline Table is intended to appear on a single line"+Q(", which broken at "))),n[0]==="}")break;n[0]===","&&(n=n.replace(at,"")||J(ie("Inline Table is intended to appear on a single line"+Q(", which broken at "))),n[0]==="}"&&J(ie("The last property of an Inline Table can not have a trailing comma"+Q(", which was found at "))))}return n.replace(at,"")},Ti=(e,t)=>{const{leadingKeys:n,finalKey:r,tag:s}={lineRest:t}=zu(Wa(t));return{table:Vf(e,n),finalKey:r,tag:s,lineRest:t}},Si=({finalKey:e,tag:t,lineRest:n,table:r})=>{if(e in r&&J(Ne("Duplicate property definition"+Q(" at "))),t)switch(Bt(t,null,r,e),n&&n[0]){case",":case"}":case"":case"#":return r[e]=Be,n}switch(n&&n[0]){case"'":return Ma(r,e,n);case'"':return za(r,e,n);case"{":return Tt||J(ie("Inline Table is not allowed before TOML v0.4"+Q(", which at "))),Ha(r,e,n);case"[":return Ga(r,e,n)}const{1:s}={2:n}=_a(n)||J(ie("Bad atom value"+Q(" at ")));return s==="true"?r[e]=!0:s==="false"?r[e]=!1:Cn&&s==="null"?r[e]=null:s.includes(":")?s.includes("-")?Va(s)?r[e]=new Xi(s):(Ye||J(ie("Local Date-Time is not allowed before TOML v0.5"+Q(", which at "))),r[e]=new Ki(s)):(Ye||J(ie("Local Time is not allowed before TOML v0.5"+Q(", which at "))),r[e]=new Qi(s)):s.indexOf("-")!==s.lastIndexOf("-")&&s[0]!=="-"?(Ye||J(ie("Local Date is not allowed before TOML v0.5"+Q(", which at "))),r[e]=new Ji(s)):r[e]=s.includes(".")||s.includes("n")||(s.includes("e")||s.includes("E"))&&!s.startsWith("0x")?Ve?$e(s,ur(s)):ur(s):Ve?$e(s,cr(s)):cr(s),n},Yf=()=>{const e=new ct;let t=e;for(;Tu();){const n=Iu().replace(Me,"");if(n)if(n[0]==="["){const{leadingKeys:r,finalKey:s,asArrayItem:a,tag:i,lineRest:l}=Mu(n,Wa),o=Mf(e,r);l&&(l[0]==="#"||J(ie("Unexpect charachtor after table header"+Q(" at ")))),t=zf(o,s,a,i),rr&&l&&(t[Tn]=a?l.slice(1):o[dr(s)]=l.slice(1))}else if(n[0]==="#")en(n)&&J(ie("Control characters other than Tab are not permitted in comments"+Q(", which was found at ")));else{const r=Ti(t,n);let s=Si(r);typeof s=="string"||(s=Sa(s)),s&&(s[0]==="#"||J(ie("Unexpect charachtor after key/value pair"+Q(" at "))),rr&&(r.table[dr(r.finalKey)]=s.slice(1)))}}return e},Zf=Number.MAX_SAFE_INTEGER,qf=Date.prototype,Vs=String.prototype.valueOf,Xf=function(){if($t.bind){var e=$t.bind(Vs);return function(n){try{e(n)}catch{return!1}return!0}}return function(n){try{Vs.apply(n)}catch{return!1}return!0}}(),Ws=Number.prototype.valueOf,Kf=function(){if($t.bind){var e=$t.bind(Ws);return function(n){try{e(n)}catch{return!1}return!0}}return function(n){try{Ws.apply(n)}catch{return!1}return!0}}(),Jf=function(){if(typeof BigInt=="function"){var e=$t.bind(BigInt.prototype.valueOf);return function(n){try{e(n)}catch{return!1}return!0}}return function(){return!1}}(),Gs=BigInt.prototype.valueOf,Qf=function(){if($t.bind){var e=$t.bind(Gs);return function(n){try{e(n)}catch{return!1}return!0}}return function(n){try{Gs.apply(n)}catch{return!1}return!0}}(),ts=qe({...au([...Kn(32)].map((e,t)=>[Ui(t),"\\u"+t.toString(16).toUpperCase().padStart(4,"0")])),"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"','"""':'""\\"',"\\":"\\\\","":"\\u007F"}),{test:ed}=ge(/[\x00-\x08\x0A-\x1F'\x7F]/),Ya=/[^\x00-\x08\x0A-\x1F"\\\x7F]+|./gs,{test:Za}=ge(/^[\x00-\x08\x0A-\x1F"\\\x7F]/),qa=e=>{if(ed(e)){const t=e.match(Ya);let n=t.length;do Za(t[--n])&&(t[n]=ts[t[n]]);while(n);return`"${t.join("")}"`}return`'${e}'`},td=e=>{if(e){const t=e.match(Ya);let n=t.length;do Za(t[--n])&&(t[n]=ts[t[n]]);while(n);return`"${t.join("")}"`}return'""'},{test:nd}=ge(/[\x00-\x08\x0A-\x1F\x7F]|'''/),{test:rd}=ge(/[\x00-\x08\x0B-\x1F\x7F]|'''/),{test:id}=ge(/[\x00-\x08\x0A-\x1F\\\x7F]|"""/),sd=/[^\x00-\x08\x0A-\x1F"\\\x7F]+|"""|./gs,{test:od}=ge(/^(?:[\x00-\x08\x0A-\x1F\\\x7F]|""")/),hr=(e,t)=>{const n=e[t];if(id(n)){const r=n.match(sd);let s=r.length;do od(r[--s])&&(r[s]=ts[r[s]]);while(s);e[t]=r.join("")}},Hs=e=>(e=["",...e]).length===1?["",""]:e,ad=e=>{const t=e.length-1;let n=t;do if(nd(e[n]))break;while(--n);if(n)for(n=t,hr(e,n),e[n]+=e[0]='"""';--n;)hr(e,n);else e[t]+=e[0]="'''";return e},Vr=e=>{let t=e.length-1;for(hr(e,t),e[t]+=e[0]='"""';--t;)hr(e,t);return e},ld=e=>(e[e.length-1]+=e[0]="'''",e),Xa=Float64Array,Ka=Uint8Array,Ys=-an,{test:cd}=ge(/^-?\d+$/),Zs=e=>cd(e)?e+".0":e,Ja=new Xa([Tr]),Qa=new Ka(Ja.buffer),qs=Qa[7],ud=qs===new Ka(new Xa([-Tr]).buffer)[7]?e=>e?e===an?"inf":e===Ys?"-inf":Zs(""+e):e===e?oi(e,0)?"0.0":"-0.0":"nan":e=>e?e===an?"inf":e===Ys?"-inf":Zs(""+e):e===e?oi(e,0)?"0.0":"-0.0":(Ja[0]=e,Qa[7]===qs?"nan":"-nan"),fd=Yo.bind(qf),{test:dd}=ge(/^[\w-]+$/),Wr=e=>dd(e)?e:qa(e),hd=/[^.]+/,pd=e=>`'${e}'`,Gr=e=>ka(e)?e.replace(hd,pd):e==="null"?"'null'":e;class Xs extends Kn{constructor(n){super();me(this,"document");return this.document=n,this}[Fe.toPrimitive](){return this.join(this.document.newline)}appendNewline(){this[this.length]=""}set appendLine(n){this[this.length]=n}set appendInline(n){this[this.length-1]+=n}set appendInlineIf(n){n&&(this[this.length-1]+=n)}*assignBlock(n,r,s,a){const{document:i}=this,{newlineUnderHeader:l,newlineUnderSectionButPair:o}=i,c=r?i.newlineUnderPairButDotted:!1,p=r?i.newlineUnderDotted:i.newlineUnderPair;for(const h of a){const m=s[h],v=Wr(h),u=n+v;if(Pt(m)){const{length:y}=m;if(y){let _=m[0];if(yn(_)){const b=`[[${u}]]`,C=u+".";let A=0,I=_;for(;;){const D=i.appendSection();if(D[0]=b+Xn(I,Tn),l?(D[1]="",yield D.assignBlock(C,"",I,pt(I)),o&&D.length!==2&&D.appendNewline()):(yield D.assignBlock(C,"",I,pt(I)),o&&D.appendNewline()),++A===y)break;if(I=m[A],!yn(I))throw ue("the first table item marked by Section() means the parent array is an array of tables, which can not include other types or table not marked by Section() any more in the rest items")}continue}else{let b=1;for(;b!==y;)if(yn(m[b++]))throw ue("if an array is not array of tables, it can not include any table that marked by Section()")}}}else if(yn(m)){const y=i.appendSection();y[0]=`[${u}]${i.preferCommentForThis?Xn(m,Tn)||vn(s,h):vn(s,h)||Xn(m,Tn)}`,l?(y[1]="",yield y.assignBlock(u+".","",m,pt(m)),o&&y.length!==2&&y.appendNewline()):(yield y.assignBlock(u+".","",m,pt(m)),o&&y.appendNewline());continue}const w=r+v;this.appendLine=Gr(w)+" = ";const g=this.value("",m,!0);g?(--this.length,yield this.assignBlock(u+".",w+".",m,g),c&&this.appendNewline()):(this.appendInlineIf=vn(s,h),p&&this.appendNewline())}}value(n,r,s){switch(typeof r){case"object":if(r===null){if(this.document.nullDisabled)throw ue('toml can not stringify "null" type value without truthy options.xNull');this.appendInline="null";break}const a=pu(r);if(Pt(r)){if(a===Be)this.staticArray(n,r);else{const{$singlelineArray:i=a}=this.document;this.singlelineArray(n,r,i)}break}if(a!==Be){a||this.document.multilineTableDisabled?this.inlineTable(n,r):this.multilineTable(n,r,this.document.multilineTableComma);break}if(fd(r)){this.appendInline=r.toISOString().replace("T",this.document.T).replace("Z",this.document.Z);break}if(ki in r){const i=r[ki];if(typeof i=="string")this.appendInline=i;else if(Pt(i)){const{length:l}=i;if(l){this.appendInline=i[0];let o=1;for(;o!==l;)this.appendLine=i[o++]}else throw ue("literal value is broken")}else throw ue("literal value is broken");break}if(Xf(r))throw ue("TOML.stringify refuse to handle [object String]");if(Kf(r))throw ue("TOML.stringify refuse to handle [object Number]");if(Jf(r))throw ue("TOML.stringify refuse to handle [object BigInt]");if(Qf(r))throw ue("TOML.stringify refuse to handle [object Boolean]");if(s){const i=pt(r);if(i.length)return i;this.appendInline="{ }"}else this.inlineTable(n,r);break;case"bigint":this.appendInline=""+r;break;case"number":this.appendInline=this.document.asInteger(r)?oi(r,-0)?"-0":""+r:ud(r);break;case"string":this.appendInline=qa(r);break;case"boolean":this.appendInline=r?"true":"false";break;default:throw ue(`toml can not stringify "${typeof r}" type value`)}return null}singlelineArray(n,r,s){const{length:a}=r;if(a){this.appendInline=s&2?"[ ":"[",this.value(n,r[0],!1);let i=1;for(;i!==a;)this.appendInline=", ",this.value(n,r[i++],!1);this.appendInline=s&2?" ]":"]"}else this.appendInline=s&1?"[ ]":"[]"}staticArray(n,r){this.appendInline="[";const s=n+this.document.indent,{length:a}=r;let i=0;for(;i!==a;)this.appendLine=s,this.value(s,r[i++],!1),this.appendInline=",";this.appendLine=n+"]"}inlineTable(n,r){const s=pt(r);s.length?(this.appendInline="{ ",this.assignInline(n,r,"",s),this[this.length-1]=this[this.length-1].slice(0,-2)+" }"):this.appendInline="{ }"}multilineTable(n,r,s){this.appendInline="{",this.assignMultiline(n,r,"",pt(r),s),this.appendLine=n+"}"}assignInline(n,r,s,a){for(const i of a){const l=r[i],o=s+Wr(i),c=this.appendInline=Gr(o)+" = ",p=this.value(n,l,!0);p?(this[this.length-1]=this[this.length-1].slice(0,-c.length),this.assignInline(n,l,o+".",p)):this.appendInline=", "}}assignMultiline(n,r,s,a,i){const l=n+this.document.indent;for(const o of a){const c=r[o],p=s+Wr(o);this.appendLine=l+Gr(p)+" = ";const h=this.value(l,c,!0);h?(--this.length,this.assignMultiline(n,c,p+".",h,i)):i?this.appendInline=","+vn(r,o):this.appendInlineIf=vn(r,o)}}}const Ks=qe({document:0,section:1,header:2,pairs:3,pair:4}),{test:md}=ge(/^[\t ]*$/),gd=()=>!1;class vd extends Kn{constructor(n){super();me(this,0,new Xs(this));me(this,"asInteger",gd);me(this,"newline","");me(this,"newlineUnderSection",!0);me(this,"newlineUnderSectionButPair",!0);me(this,"newlineUnderHeader",!0);me(this,"newlineUnderPair",!1);me(this,"newlineUnderPairButDotted",!1);me(this,"newlineUnderDotted",!1);me(this,"indent"," ");me(this,"T","T");me(this,"Z","Z");me(this,"nullDisabled",!0);me(this,"multilineTableDisabled",!0);me(this,"multilineTableComma");me(this,"preferCommentForThis",!1);me(this,"$singlelineArray");if(n==null)return this;const{integer:r}=n;if(r!==void 0)if(r===Zf)this.asInteger=Qt;else if(typeof r=="number"){if(!Qt(r))throw Le("TOML.stringify(,{integer}) can only be a safe integer");const m=r>=0?r:-r-1,v=r>=0?-r:r;this.asInteger=u=>Qt(u)&&v<=u&&u<=m}else throw ue("TOML.stringify(,{integer}) can only be number");const{newline:s}=n;if(s!==void 0)if(s===` `||s===`\r `)this.newline=s;else throw typeof s=="string"?ie("TOML.stringify(,{newline}) can only be valid TOML newline"):ue("TOML.stringify(,{newline}) can only be string");const{preferCommentFor:a}=n;if(a!==void 0)if(a==="this"||a==="key")this.preferCommentForThis=a==="this";else throw ue("TOML.stringify(,{preferCommentFor) can only be 'key' or 'this'");const{[n.newlineAround||"header"]:i=Ks.header}=Ks;this.newlineUnderSection=i>0,this.newlineUnderSectionButPair=i===1||i===2,this.newlineUnderHeader=i>1,this.newlineUnderPair=i>2,this.newlineUnderPairButDotted=i===3,this.newlineUnderDotted=i>3;const{indent:l}=n;if(l!==void 0)if(typeof l=="string"){if(!md(l))throw ie("TOML.stringify(,{indent}) can only include Tab or Space");this.indent=l}else if(typeof l=="number"){if(!Qt(l))throw Le(`TOML.stringify(,{indent:${l}}) is out of range`);this.indent=" ".repeat(l)}else throw ue(`TOML.stringify(,{indent}) can not be "${typeof l}" type`);const{T:o}=n;if(o!==void 0)if(o===" "||o==="t"||o==="T")this.T=o;else throw ue('TOML.stringify(,{T}) can only be "T" or " " or "t"');const{Z:c}=n;if(c!==void 0)if(c==="z"||c==="Z")this.Z=c;else throw ue('TOML.stringify(,{Z}) can only be "Z" or "z"');n.xNull&&(this.nullDisabled=!1);const{xBeforeNewlineInMultilineTable:p}=n;if(p!==void 0)if(p===""||p===",")this.multilineTableDisabled=!1,this.multilineTableComma=!!p;else throw ue('TOML.stringify(,{xBeforeNewlineInMultilineTable}) can only be "" or ","');const h=n.forceInlineArraySpacing;switch(h){case void 0:break;case 0:case 1:case 2:case 3:this.$singlelineArray=h;break;default:throw typeof h=="number"?Le(`array inline mode must be 0 | 1 | 2 | 3, not including ${h}`):ue(`array inline mode must be "number" type, not including ${h===null?'"null"':typeof h}`)}return this}get["constructor"](){return Kn}appendSection(){return this[this.length]=new Xs(this)}}const el=new Mt,_d=zt.bind(el),yd=un.bind(el),wd=(e,t)=>{const n=new vd(t),r=n[0];if(r[0]="",Sa(r.assignBlock("","",e,pt(e))),n.newlineUnderSectionButPair&&r.length!==1&&r.appendNewline(),n.newlineUnderSection||n[n.length-1].appendNewline(),n.newline)return n.join(n.newline);const s=n.flat();return _d(s),s},bd=(()=>{const e=(t,n)=>typeof t=="string"?$e((rd(t)?Vr:ld)((` `+t).split(` `)),t):Pt(t)?$e(ad(Hs(t)),typeof n=="string"?n:qe(null)):gu(t);return e.basic=(t,n)=>typeof t=="string"?$e(Vr((` `+t).split(` `)),t):$e(Vr(Hs(t)),typeof n=="string"?n:qe(null)),e.array=vu,Ge(e),e})(),Ed=e=>$e(td(e),e),kd=(e,...t)=>{if(typeof e=="string"){if(t.length===1)return $e(e.includes(` `)?e.split(` `):e,t[0])}else{let n=t.length;if(n){const{raw:r}=e;for(e=r[n];n;)t[--n]+=r[n];e=t.join("")+e}else e=e.raw[0]}return $e(e.includes(` `)?e.split(` `):e,qe(null))},Ad=new rf("utf-8",qe({fatal:!0,ignoreBOM:!1})),Un=e=>{if(tf(e)?e.length!==e.byteLength:!nf(e))throw ue("only Uint8Array or ArrayBuffer is acceptable");try{return Ad.decode(e)}catch{throw Ne("A TOML doc must be a (ful-scalar) valid UTF-8 file, without any unknown code point.")}},Mn=e=>"byteLength"in e,{test:Id}=ge(/[\uD800-\uDFFF]/u),Hr=e=>{if(Qo(Id(e)))throw Ne("A TOML doc must be a (ful-scalar) valid UTF-8 file, without any uncoupled UCS-4 character code.")};let Yr=!1;const ht=(e,t,n,r,s,a)=>{let i="";if(typeof e=="object"&&e){if(Pt(e))throw ue(yd(e)?"TOML.parse(array from TOML.stringify(,{newline?}))":"TOML.parse(array)");if(Mn(e))e=Un(e);else{if(i=e.path,typeof i!="string")throw ue("TOML.parse(source.path)");const{data:h,require:m=typeof require=="function"?require:Be}=e;if(m){const{resolve:v}=m;if(v!=null){const{paths:u}=v;if(u!=null){const w=Bi(u,v,[""]);if(w!=null){const g=w[0];if(g!=null){const y=g.replace(/node_modules$/,"");if(y&&(i=m("path").resolve(y,i),typeof i!="string"))throw ue("TOML.parse(source.require('path').resolve)")}}}}if(h===Be){const u=m("fs").readFileSync(i);if(typeof u=="object"&&u&&Mn(u))e=Un(u);else throw ue("TOML.parse(source.require('fs').readFileSync)")}else if(typeof h=="string")Hr(e=h);else if(typeof h=="object"&&h&&Mn(h))e=Un(h);else throw ue("TOML.parse(source.data)")}else{if(h===Be)throw ue("TOML.parse(source.data|source.require)");if(typeof h=="string")Hr(e=h);else if(typeof h=="object"&&h&&Mn(h))e=Un(h);else throw ue("TOML.parse(source.data)")}}}else if(typeof e=="string")Hr(e);else throw ue("TOML.parse(source)");let l,o;if(typeof n=="object"&&n){if(r!==Be||s!==Be)throw ue("options mode ? args mode");l=n.joiner,r=n.bigint,o=n.keys,s=n.x,a=""}else l=n;let c,p;if(Yr)throw Ne("parsing during parsing.");Yr=!0;try{ef(t,l,r,o,s,a),Au(e,i),e&&e[0]==="\uFEFF"&&J(ue("TOML content (string) should not start with BOM (U+FEFF)"+Q(" at "))),c=Yf(),p=Ju()}finally{Su(),Qu(),Yr=!1,Qo()}return p&&p(),c},Ci=St((e,t,n,r,s)=>typeof t=="number"?ht(e,t,n,r,s,",,"):ht(e,1,t,n,r,","),{"1.0":(e,t,n,r)=>ht(e,.1,t,n,r,","),1:(e,t,n,r)=>ht(e,1,t,n,r,","),.5:(e,t,n,r)=>ht(e,.5,t,n,r,","),.4:(e,t,n,r)=>ht(e,.4,t,n,r,","),.3:(e,t,n,r)=>ht(e,.3,t,n,r,","),.2:(e,t,n,r)=>ht(e,.2,t,n,r,","),.1:(e,t,n,r)=>ht(e,.1,t,n,r,",")}),Js=Kc({version:qc,parse:Ci,stringify:wd,Section:_u,inline:mu,multiline:bd,basic:Ed,literal:kd,commentFor:dr,commentForThis:Tn,OffsetDateTime:Xi,LocalDateTime:Ki,LocalDate:Ji,LocalTime:Qi,isInline:Vi,isSection:yn,Keys:Aa});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function tl(e){return typeof e>"u"||e===null}function Td(e){return typeof e=="object"&&e!==null}function Sd(e){return Array.isArray(e)?e:tl(e)?[]:[e]}function Cd(e,t){var n,r,s,a;if(t)for(a=Object.keys(t),n=0,r=a.length;nl&&(a=" ... ",t=r-l+a.length),n-r>l&&(i=" ...",n=r+l-i.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+a.length}}function qr(e,t){return Oe.repeat(" ",t-e.length)+e}function Pd(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,r=[0],s=[],a,i=-1;a=n.exec(e.buffer);)s.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&i<0&&(i=r.length-2);i<0&&(i=r.length-1);var l="",o,c,p=Math.min(e.line+t.linesAfter,s.length).toString().length,h=t.maxLength-(t.indent+p+3);for(o=1;o<=t.linesBefore&&!(i-o<0);o++)c=Zr(e.buffer,r[i-o],s[i-o],e.position-(r[i]-r[i-o]),h),l=Oe.repeat(" ",t.indent)+qr((e.line-o+1).toString(),p)+" | "+c.str+` `+l;for(c=Zr(e.buffer,r[i],s[i],e.position,h),l+=Oe.repeat(" ",t.indent)+qr((e.line+1).toString(),p)+" | "+c.str+` `,l+=Oe.repeat("-",t.indent+p+3+c.pos)+`^ `,o=1;o<=t.linesAfter&&!(i+o>=s.length);o++)c=Zr(e.buffer,r[i+o],s[i+o],e.position-(r[i]-r[i+o]),h),l+=Oe.repeat(" ",t.indent)+qr((e.line+o+1).toString(),p)+" | "+c.str+` `;return l.replace(/\n$/,"")}var Bd=Pd,jd=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ud=["scalar","sequence","mapping"];function Md(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function zd(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(jd.indexOf(n)===-1)throw new je('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=Md(t.styleAliases||null),Ud.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Re=zd;function Qs(e,t){var n=[];return e[t].forEach(function(r){var s=n.length;n.forEach(function(a,i){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(s=i)}),n[s]=r}),n}function Vd(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,n=arguments.length;t=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"]}}),nh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function rh(e){return!(e===null||!nh.test(e)||e[e.length-1]==="_")}function ih(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 sh=/^[-+]?[0-9]+e/;function oh(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(Oe.isNegativeZero(e))return"-0.0";return n=e.toString(10),sh.test(n)?n.replace("e",".e"):n}function ah(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Oe.isNegativeZero(e))}var fl=new Re("tag:yaml.org,2002:float",{kind:"scalar",resolve:rh,construct:ih,predicate:ah,represent:oh,defaultStyle:"lowercase"}),dl=al.extend({implicit:[ll,cl,ul,fl]}),hl=dl,pl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ml=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 lh(e){return e===null?!1:pl.exec(e)!==null||ml.exec(e)!==null}function ch(e){var t,n,r,s,a,i,l,o=0,c=null,p,h,m;if(t=pl.exec(e),t===null&&(t=ml.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,r,s));if(a=+t[4],i=+t[5],l=+t[6],t[7]){for(o=t[7].slice(0,3);o.length<3;)o+="0";o=+o}return t[9]&&(p=+t[10],h=+(t[11]||0),c=(p*60+h)*6e4,t[9]==="-"&&(c=-c)),m=new Date(Date.UTC(n,r,s,a,i,l,o)),c&&m.setTime(m.getTime()-c),m}function uh(e){return e.toISOString()}var gl=new Re("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lh,construct:ch,instanceOf:Date,represent:uh});function fh(e){return e==="<<"||e===null}var vl=new Re("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fh}),ns=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function dh(e){if(e===null)return!1;var t,n,r=0,s=e.length,a=ns;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function hh(e){var t,n,r=e.replace(/[\r\n=]/g,""),s=r.length,a=ns,i=0,l=[];for(t=0;t>16&255),l.push(i>>8&255),l.push(i&255)),i=i<<6|a.indexOf(r.charAt(t));return n=s%4*6,n===0?(l.push(i>>16&255),l.push(i>>8&255),l.push(i&255)):n===18?(l.push(i>>10&255),l.push(i>>2&255)):n===12&&l.push(i>>4&255),new Uint8Array(l)}function ph(e){var t="",n=0,r,s,a=e.length,i=ns;for(r=0;r>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[r];return s=a%3,s===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):s===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):s===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function mh(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var _l=new Re("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dh,construct:hh,predicate:mh,represent:ph}),gh=Object.prototype.hasOwnProperty,vh=Object.prototype.toString;function _h(e){if(e===null)return!0;var t=[],n,r,s,a,i,l=e;for(n=0,r=l.length;n>10)+55296,(e-65536&1023)+56320)}var Tl=new Array(256),Sl=new Array(256);for(var Yt=0;Yt<256;Yt++)Tl[Yt]=no(Yt)?1:0,Sl[Yt]=no(Yt);function Rh(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||rs,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 Cl(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=Bd(n),new je(t,n)}function se(e,t){throw Cl(e,t)}function gr(e,t){e.onWarning&&e.onWarning.call(null,Cl(e,t))}var ro={YAML:function(t,n,r){var s,a,i;t.version!==null&&se(t,"duplication of %YAML directive"),r.length!==1&&se(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),s===null&&se(t,"ill-formed argument of the YAML directive"),a=parseInt(s[1],10),i=parseInt(s[2],10),a!==1&&se(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,i!==1&&i!==2&&gr(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var s,a;r.length!==2&&se(t,"TAG directive accepts exactly two arguments"),s=r[0],a=r[1],Al.test(s)||se(t,"ill-formed tag handle (first argument) of the TAG directive"),xt.call(t.tagMap,s)&&se(t,'there is a previously declared suffix for "'+s+'" tag handle'),Il.test(a)||se(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{se(t,"tag prefix is malformed: "+a)}t.tagMap[s]=a}};function Ot(e,t,n,r){var s,a,i,l;if(t1&&(e.result+=Oe.repeat(` `,t-1))}function Fh(e,t,n){var r,s,a,i,l,o,c,p,h=e.kind,m=e.result,v;if(v=e.input.charCodeAt(e.position),ze(v)||nn(v)||v===35||v===38||v===42||v===33||v===124||v===62||v===39||v===34||v===37||v===64||v===96||(v===63||v===45)&&(s=e.input.charCodeAt(e.position+1),ze(s)||n&&nn(s)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,l=!1;v!==0;){if(v===58){if(s=e.input.charCodeAt(e.position+1),ze(s)||n&&nn(s))break}else if(v===35){if(r=e.input.charCodeAt(e.position-1),ze(r))break}else{if(e.position===e.lineStart&&Sr(e)||n&&nn(v))break;if(lt(v))if(o=e.line,c=e.lineStart,p=e.lineIndent,Te(e,!1,-1),e.lineIndent>=t){l=!0,v=e.input.charCodeAt(e.position);continue}else{e.position=i,e.line=o,e.lineStart=c,e.lineIndent=p;break}}l&&(Ot(e,a,i,!1),ss(e,e.line-o),a=i=e.position,l=!1),Ut(v)||(i=e.position+1),v=e.input.charCodeAt(++e.position)}return Ot(e,a,i,!1),e.result?!0:(e.kind=h,e.result=m,!1)}function Dh(e,t){var n,r,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ot(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,s=e.position;else return!0;else lt(n)?(Ot(e,r,s,!0),ss(e,Te(e,!1,t)),r=s=e.position):e.position===e.lineStart&&Sr(e)?se(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);se(e,"unexpected end of the stream within a single quoted scalar")}function Ph(e,t){var n,r,s,a,i,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Ot(e,n,e.position,!0),e.position++,!0;if(l===92){if(Ot(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),lt(l))Te(e,!1,t);else if(l<256&&Tl[l])e.result+=Sl[l],e.position++;else if((i=Lh(l))>0){for(s=i,a=0;s>0;s--)l=e.input.charCodeAt(++e.position),(i=$h(l))>=0?a=(a<<4)+i:se(e,"expected hexadecimal character");e.result+=Nh(a),e.position++}else se(e,"unknown escape sequence");n=r=e.position}else lt(l)?(Ot(e,n,r,!0),ss(e,Te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Sr(e)?se(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}se(e,"unexpected end of the stream within a double quoted scalar")}function Bh(e,t){var n=!0,r,s,a,i=e.tag,l,o=e.anchor,c,p,h,m,v,u=Object.create(null),w,g,y,_;if(_=e.input.charCodeAt(e.position),_===91)p=93,v=!1,l=[];else if(_===123)p=125,v=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(++e.position);_!==0;){if(Te(e,!0,t),_=e.input.charCodeAt(e.position),_===p)return e.position++,e.tag=i,e.anchor=o,e.kind=v?"mapping":"sequence",e.result=l,!0;n?_===44&&se(e,"expected the node content, but found ','"):se(e,"missed comma between flow collection entries"),g=w=y=null,h=m=!1,_===63&&(c=e.input.charCodeAt(e.position+1),ze(c)&&(h=m=!0,e.position++,Te(e,!0,t))),r=e.line,s=e.lineStart,a=e.position,cn(e,t,pr,!1,!0),g=e.tag,w=e.result,Te(e,!0,t),_=e.input.charCodeAt(e.position),(m||e.line===r)&&_===58&&(h=!0,_=e.input.charCodeAt(++e.position),Te(e,!0,t),cn(e,t,pr,!1,!0),y=e.result),v?rn(e,l,u,g,w,y,r,s,a):h?l.push(rn(e,null,u,g,w,y,r,s,a)):l.push(w),Te(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(n=!0,_=e.input.charCodeAt(++e.position)):n=!1}se(e,"unexpected end of the stream within a flow collection")}function jh(e,t){var n,r,s=Xr,a=!1,i=!1,l=t,o=0,c=!1,p,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Xr===s?s=h===43?eo:Th:se(e,"repeat of a chomping mode identifier");else if((p=xh(h))>=0)p===0?se(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?se(e,"repeat of an indentation width identifier"):(l=t+p-1,i=!0);else break;if(Ut(h)){do h=e.input.charCodeAt(++e.position);while(Ut(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!lt(h)&&h!==0)}for(;h!==0;){for(is(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!i||e.lineIndentl&&(l=e.lineIndent),lt(h)){o++;continue}if(e.lineIndentt)&&o!==0)se(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(g&&(i=e.line,l=e.lineStart,o=e.position),cn(e,t,mr,!0,s)&&(g?u=e.result:w=e.result),g||(rn(e,h,m,v,u,w,i,l,o),v=u=w=null),Te(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&_!==0)se(e,"bad indentation of a mapping entry");else if(e.lineIndentt?o=1:e.lineIndent===t?o=0:e.lineIndentt?o=1:e.lineIndent===t?o=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),h=0,m=e.implicitTypes.length;h"),e.result!==null&&u.kind!==e.kind&&se(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):se(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Wh(e){var t=e.position,n,r,s,a=!1,i;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(i=e.input.charCodeAt(e.position))!==0&&(Te(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||i!==37));){for(a=!0,i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!ze(i);)i=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),s=[],r.length<1&&se(e,"directive name must not be less than one character in length");i!==0;){for(;Ut(i);)i=e.input.charCodeAt(++e.position);if(i===35){do i=e.input.charCodeAt(++e.position);while(i!==0&&!lt(i));break}if(lt(i))break;for(n=e.position;i!==0&&!ze(i);)i=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}i!==0&&is(e),xt.call(ro,r)?ro[r](e,r,s):gr(e,'unknown document directive "'+r+'"')}if(Te(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,Te(e,!0,-1)):a&&se(e,"directives end mark is expected"),cn(e,e.lineIndent-1,mr,!1,!0),Te(e,!0,-1),e.checkLineBreaks&&Ch.test(e.input.slice(t,e.position))&&gr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Sr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Te(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Ol(e,n);if(typeof t!="function")return r;for(var s=0,a=r.length;s=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Bl(e){var t=/^\n* /;return t.test(e)}var jl=1,xi=2,Ul=3,Ml=4,Jt=5;function wp(e,t,n,r,s,a,i,l){var o,c=0,p=null,h=!1,m=!1,v=r!==-1,u=-1,w=_p(In(e,0))&&yp(In(e,e.length-1));if(t||i)for(o=0;o=65536?o+=2:o++){if(c=In(e,o),!xn(c))return Jt;w=w&&lo(c,p,l),p=c}else{for(o=0;o=65536?o+=2:o++){if(c=In(e,o),c===$n)h=!0,v&&(m=m||o-u-1>r&&e[u+1]!==" ",u=o);else if(!xn(c))return Jt;w=w&&lo(c,p,l),p=c}m=m||v&&o-u-1>r&&e[u+1]!==" "}return!h&&!m?w&&!i&&!s(e)?jl:a===Ln?Jt:xi:n>9&&Bl(e)?Jt:i?a===Ln?Jt:xi:m?Ml:Ul}function bp(e,t,n,r,s){e.dump=function(){if(t.length===0)return e.quotingType===Ln?'""':"''";if(!e.noCompatMode&&(fp.indexOf(t)!==-1||dp.test(t)))return e.quotingType===Ln?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=r||e.flowLevel>-1&&n>=e.flowLevel;function o(c){return vp(e,c)}switch(wp(t,l,e.indent,i,o,e.quotingType,e.forceQuotes&&!r,s)){case jl:return t;case xi:return"'"+t.replace(/'/g,"''")+"'";case Ul:return"|"+co(t,e.indent)+uo(oo(t,a));case Ml:return">"+co(t,e.indent)+uo(oo(Ep(t,i),a));case Jt:return'"'+kp(t)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function co(e,t){var n=Bl(e)?String(t):"",r=e[e.length-1]===` `,s=r&&(e[e.length-2]===` `||e===` `),a=s?"+":r?"":"-";return n+a+` `}function uo(e){return e[e.length-1]===` `?e.slice(0,-1):e}function Ep(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=e.indexOf(` `);return c=c!==-1?c:e.length,n.lastIndex=c,fo(e.slice(0,c),t)}(),s=e[0]===` `||e[0]===" ",a,i;i=n.exec(e);){var l=i[1],o=i[2];a=o[0]===" ",r+=l+(!s&&!a&&o!==""?` `:"")+fo(o,t),s=a}return r}function fo(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,s=0,a,i=0,l=0,o="";r=n.exec(e);)l=r.index,l-s>t&&(a=i>s?i:l,o+=` `+e.slice(s,a),s=a+1),i=l;return o+=` `,e.length-s>t&&i>s?o+=e.slice(s,i)+` `+e.slice(i+1):o+=e.slice(s),o.slice(1)}function kp(e){for(var t="",n=0,r,s=0;s=65536?s+=2:s++)n=In(e,s),r=Pe[n],!r&&xn(n)?(t+=e[s],n>=65536&&(t+=e[s+1])):t+=r||pp(n);return t}function Ap(e,t,n){var r="",s=e.tag,a,i,l;for(a=0,i=n.length;a"u"&&bt(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=s,e.dump="["+r+"]"}function ho(e,t,n,r){var s="",a=e.tag,i,l,o;for(i=0,l=n.length;i"u"&&bt(e,t+1,null,!0,!0,!1,!0))&&((!r||s!=="")&&(s+=Li(e,t)),e.dump&&$n===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}function Ip(e,t,n){var r="",s=e.tag,a=Object.keys(n),i,l,o,c,p;for(i=0,l=a.length;i1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bt(e,t,c,!1,!1)&&(p+=e.dump,r+=p));e.tag=s,e.dump="{"+r+"}"}function Tp(e,t,n,r){var s="",a=e.tag,i=Object.keys(n),l,o,c,p,h,m;if(e.sortKeys===!0)i.sort();else if(typeof e.sortKeys=="function")i.sort(e.sortKeys);else if(e.sortKeys)throw new je("sortKeys must be a boolean or a function");for(l=0,o=i.length;l1024,h&&(e.dump&&$n===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,h&&(m+=Li(e,t)),bt(e,t+1,p,!0,h)&&(e.dump&&$n===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,s+=m));e.tag=a,e.dump=s||"{}"}function po(e,t,n){var r,s,a,i,l,o;for(s=n?e.explicitTypes:e.implicitTypes,a=0,i=s.length;a tag resolver accepts not "'+o+'" style');e.dump=r}return!0}return!1}function bt(e,t,n,r,s,a,i){e.tag=null,e.dump=n,po(e,n,!1)||po(e,n,!0);var l=Ll.call(e.dump),o=r,c;r&&(r=e.flowLevel<0||e.flowLevel>t);var p=l==="[object Object]"||l==="[object Array]",h,m;if(p&&(h=e.duplicates.indexOf(n),m=h!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(s=!1),m&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(p&&m&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(Tp(e,t,e.dump,s),m&&(e.dump="&ref_"+h+e.dump)):(Ip(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!i&&t>0?ho(e,t-1,e.dump,s):ho(e,t,e.dump,s),m&&(e.dump="&ref_"+h+e.dump)):(Ap(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&bp(e,e.dump,t,a,o);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new je("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Sp(e,t){var n=[],r=[],s,a;for(Ni(e,n,r),s=0,a=r.length;s (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(r){e.exports=r()})(function(){return function r(s,a,i){function l(p,h){if(!a[p]){if(!s[p]){var m=typeof zn=="function"&&zn;if(!h&&m)return m(p,!0);if(o)return o(p,!0);var v=new Error("Cannot find module '"+p+"'");throw v.code="MODULE_NOT_FOUND",v}var u=a[p]={exports:{}};s[p][0].call(u.exports,function(w){var g=s[p][1][w];return l(g||w)},u,u.exports,r,s,a,i)}return a[p].exports}for(var o=typeof zn=="function"&&zn,c=0;c>2,u=(3&p)<<4|h>>4,w=1>6:64,g=2>4,h=(15&v)<<4|(u=o.indexOf(c.charAt(g++)))>>2,m=(3&u)<<6|(w=o.indexOf(c.charAt(g++))),b[y++]=p,u!==64&&(b[y++]=h),w!==64&&(b[y++]=m);return b}},{"./support":30,"./utils":32}],2:[function(r,s,a){var i=r("./external"),l=r("./stream/DataWorker"),o=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function p(h,m,v,u,w){this.compressedSize=h,this.uncompressedSize=m,this.crc32=v,this.compression=u,this.compressedContent=w}p.prototype={getContentWorker:function(){var h=new l(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),m=this;return h.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new l(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(h,m,v){return h.pipe(new o).pipe(new c("uncompressedSize")).pipe(m.compressWorker(v)).pipe(new c("compressedSize")).withStreamInfo("compression",m)},s.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,s,a){var i=r("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},a.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,s,a){var i=r("./utils"),l=function(){for(var o,c=[],p=0;p<256;p++){o=p;for(var h=0;h<8;h++)o=1&o?3988292384^o>>>1:o>>>1;c[p]=o}return c}();s.exports=function(o,c){return o!==void 0&&o.length?i.getTypeOf(o)!=="string"?function(p,h,m,v){var u=l,w=v+m;p^=-1;for(var g=v;g>>8^u[255&(p^h[g])];return-1^p}(0|c,o,o.length,0):function(p,h,m,v){var u=l,w=v+m;p^=-1;for(var g=v;g>>8^u[255&(p^h.charCodeAt(g))];return-1^p}(0|c,o,o.length,0):0}},{"./utils":32}],5:[function(r,s,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(r,s,a){var i=null;i=typeof Promise<"u"?Promise:r("lie"),s.exports={Promise:i}},{lie:37}],7:[function(r,s,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),o=r("./utils"),c=r("./stream/GenericWorker"),p=i?"uint8array":"array";function h(m,v){c.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=v,this.meta={}}a.magic="\b\0",o.inherits(h,c),h.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(p,m.data),!1)},h.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(v){m.push({data:v,meta:m.meta})}},a.compressWorker=function(m){return new h("Deflate",m)},a.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,s,a){function i(u,w){var g,y="";for(g=0;g>>=8;return y}function l(u,w,g,y,_,b){var C,A,I=u.file,D=u.compression,R=b!==p.utf8encode,z=o.transformTo("string",b(I.name)),U=o.transformTo("string",p.utf8encode(I.name)),H=I.comment,oe=o.transformTo("string",b(H)),T=o.transformTo("string",p.utf8encode(H)),O=U.length!==I.name.length,f=T.length!==H.length,N="",W="",B="",S=I.dir,P=I.date,q={crc32:0,compressedSize:0,uncompressedSize:0};w&&!g||(q.crc32=u.crc32,q.compressedSize=u.compressedSize,q.uncompressedSize=u.uncompressedSize);var L=0;w&&(L|=8),R||!O&&!f||(L|=2048);var x=0,re=0;S&&(x|=16),_==="UNIX"?(re=798,x|=function(X,Ee){var De=X;return X||(De=Ee?16893:33204),(65535&De)<<16}(I.unixPermissions,S)):(re=20,x|=function(X){return 63&(X||0)}(I.dosPermissions)),C=P.getUTCHours(),C<<=6,C|=P.getUTCMinutes(),C<<=5,C|=P.getUTCSeconds()/2,A=P.getUTCFullYear()-1980,A<<=4,A|=P.getUTCMonth()+1,A<<=5,A|=P.getUTCDate(),O&&(W=i(1,1)+i(h(z),4)+U,N+="up"+i(W.length,2)+W),f&&(B=i(1,1)+i(h(oe),4)+T,N+="uc"+i(B.length,2)+B);var Y="";return Y+=` \0`,Y+=i(L,2),Y+=D.magic,Y+=i(C,2),Y+=i(A,2),Y+=i(q.crc32,4),Y+=i(q.compressedSize,4),Y+=i(q.uncompressedSize,4),Y+=i(z.length,2),Y+=i(N.length,2),{fileRecord:m.LOCAL_FILE_HEADER+Y+z+N,dirRecord:m.CENTRAL_FILE_HEADER+i(re,2)+Y+i(oe.length,2)+"\0\0\0\0"+i(x,4)+i(y,4)+z+N+oe}}var o=r("../utils"),c=r("../stream/GenericWorker"),p=r("../utf8"),h=r("../crc32"),m=r("../signature");function v(u,w,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(v,c),v.prototype.push=function(u){var w=u.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,c.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:g?(w+100*(g-y-1))/g:100}}))},v.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var w=this.streamFiles&&!u.file.dir;if(w){var g=l(u,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(u){this.accumulate=!1;var w=this.streamFiles&&!u.file.dir,g=l(u,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),w)this.push({data:function(y){return m.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var u=this.bytesWritten,w=0;w=this.index;c--)p=(p<<8)+this.byteAt(c);return this.index+=o,p},readString:function(o){return i.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},s.exports=l},{"../utils":32}],19:[function(r,s,a){var i=r("./Uint8ArrayReader");function l(o){i.call(this,o)}r("../utils").inherits(l,i),l.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},s.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,s,a){var i=r("./DataReader");function l(o){i.call(this,o)}r("../utils").inherits(l,i),l.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},l.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},l.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},l.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},s.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,s,a){var i=r("./ArrayReader");function l(o){i.call(this,o)}r("../utils").inherits(l,i),l.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},s.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,s,a){var i=r("../utils"),l=r("../support"),o=r("./ArrayReader"),c=r("./StringReader"),p=r("./NodeBufferReader"),h=r("./Uint8ArrayReader");s.exports=function(m){var v=i.getTypeOf(m);return i.checkSupport(v),v!=="string"||l.uint8array?v==="nodebuffer"?new p(m):l.uint8array?new h(i.transformTo("uint8array",m)):new o(i.transformTo("array",m)):new c(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,s,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,s,a){var i=r("./GenericWorker"),l=r("../utils");function o(c){i.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(o,i),o.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},s.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(r,s,a){var i=r("./GenericWorker"),l=r("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(o,i),o.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},s.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,s,a){var i=r("../utils"),l=r("./GenericWorker");function o(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(o,l),o.prototype.processChunk=function(c){if(c){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+c.data.length}l.prototype.processChunk.call(this,c)},s.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(r,s,a){var i=r("../utils"),l=r("./GenericWorker");function o(c){l.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(h){p.dataIsReady=!0,p.data=h,p.max=h&&h.length||0,p.type=i.getTypeOf(h),p.isPaused||p._tickAndRepeat()},function(h){p.error(h)})}i.inherits(o,l),o.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,p);break;case"uint8array":c=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":c=this.data.slice(this.index,p)}return this.index=p,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(r,s,a){function i(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,o){return this._listeners[l].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,o){if(this._listeners[l])for(var c=0;c "+l:l}},s.exports=i},{}],29:[function(r,s,a){var i=r("../utils"),l=r("./ConvertWorker"),o=r("./GenericWorker"),c=r("../base64"),p=r("../support"),h=r("../external"),m=null;if(p.nodestream)try{m=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(w,g){return new h.Promise(function(y,_){var b=[],C=w._internalType,A=w._outputType,I=w._mimeType;w.on("data",function(D,R){b.push(D),g&&g(R)}).on("error",function(D){b=[],_(D)}).on("end",function(){try{var D=function(R,z,U){switch(R){case"blob":return i.newBlob(i.transformTo("arraybuffer",z),U);case"base64":return c.encode(z);default:return i.transformTo(R,z)}}(A,function(R,z){var U,H=0,oe=null,T=0;for(U=0;U"u")a.blob=!1;else{var i=new ArrayBuffer(0);try{a.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(i),a.blob=l.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!r("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(r,s,a){for(var i=r("./utils"),l=r("./support"),o=r("./nodejsUtils"),c=r("./stream/GenericWorker"),p=new Array(256),h=0;h<256;h++)p[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;p[254]=p[254]=1;function m(){c.call(this,"utf-8 decode"),this.leftOver=null}function v(){c.call(this,"utf-8 encode")}a.utf8encode=function(u){return l.nodebuffer?o.newBufferFrom(u,"utf-8"):function(w){var g,y,_,b,C,A=w.length,I=0;for(b=0;b>>6:(y<65536?g[C++]=224|y>>>12:(g[C++]=240|y>>>18,g[C++]=128|y>>>12&63),g[C++]=128|y>>>6&63),g[C++]=128|63&y);return g}(u)},a.utf8decode=function(u){return l.nodebuffer?i.transformTo("nodebuffer",u).toString("utf-8"):function(w){var g,y,_,b,C=w.length,A=new Array(2*C);for(g=y=0;g>10&1023,A[y++]=56320|1023&_)}return A.length!==y&&(A.subarray?A=A.subarray(0,y):A.length=y),i.applyFromCharCode(A)}(u=i.transformTo(l.uint8array?"uint8array":"array",u))},i.inherits(m,c),m.prototype.processChunk=function(u){var w=i.transformTo(l.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var g=w;(w=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),w.set(g,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var y=function(b,C){var A;for((C=C||b.length)>b.length&&(C=b.length),A=C-1;0<=A&&(192&b[A])==128;)A--;return A<0||A===0?C:A+p[b[A]]>C?A:C}(w),_=w;y!==w.length&&(l.uint8array?(_=w.subarray(0,y),this.leftOver=w.subarray(y,w.length)):(_=w.slice(0,y),this.leftOver=w.slice(y,w.length))),this.push({data:a.utf8decode(_),meta:u.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=m,i.inherits(v,c),v.prototype.processChunk=function(u){this.push({data:a.utf8encode(u.data),meta:u.meta})},a.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,s,a){var i=r("./support"),l=r("./base64"),o=r("./nodejsUtils"),c=r("./external");function p(g){return g}function h(g,y){for(var _=0;_>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=i(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var w,g,y,_=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4<_;)w=u.readInt(2),g=u.readInt(2),y=u.readData(g),this.extraFields[w]={id:w,length:g,value:y};u.setIndex(_)},handleUTF8:function(){var u=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var g=l.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var _=l.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(_)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var w=i(u.value);return w.readInt(1)!==1||c(this.fileName)!==w.readInt(4)?null:p.utf8decode(w.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var w=i(u.value);return w.readInt(1)!==1||c(this.fileComment)!==w.readInt(4)?null:p.utf8decode(w.readData(u.length-5))}return null}},s.exports=v},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,s,a){function i(w,g,y){this.name=w,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=g,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var l=r("./stream/StreamHelper"),o=r("./stream/DataWorker"),c=r("./utf8"),p=r("./compressedObject"),h=r("./stream/GenericWorker");i.prototype={internalStream:function(w){var g=null,y="string";try{if(!w)throw new Error("No output type specified.");var _=(y=w.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),g=this._decompressWorker();var b=!this._dataBinary;b&&!_&&(g=g.pipe(new c.Utf8EncodeWorker)),!b&&_&&(g=g.pipe(new c.Utf8DecodeWorker))}catch(C){(g=new h("error")).error(C)}return new l(g,y,"")},async:function(w,g){return this.internalStream(w).accumulate(g)},nodeStream:function(w,g){return this.internalStream(w||"nodebuffer").toNodejsStream(g)},_compressWorker:function(w,g){if(this._data instanceof p&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),p.createWorkerFrom(y,w,g)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof h?this._data:new o(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],v=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u>>6:(u<65536?v[y++]=224|u>>>12:(v[y++]=240|u>>>18,v[y++]=128|u>>>12&63),v[y++]=128|u>>>6&63),v[y++]=128|63&u);return v},a.buf2binstring=function(m){return h(m,m.length)},a.binstring2buf=function(m){for(var v=new i.Buf8(m.length),u=0,w=v.length;u>10&1023,b[w++]=56320|1023&g)}return h(b,w)},a.utf8border=function(m,v){var u;for((v=v||m.length)>m.length&&(v=m.length),u=v-1;0<=u&&(192&m[u])==128;)u--;return u<0||u===0?v:u+c[m[u]]>v?u:v}},{"./common":41}],43:[function(r,s,a){s.exports=function(i,l,o,c){for(var p=65535&i|0,h=i>>>16&65535|0,m=0;o!==0;){for(o-=m=2e3>>1:l>>>1;o[c]=l}return o}();s.exports=function(l,o,c,p){var h=i,m=p+c;l^=-1;for(var v=p;v>>8^h[255&(l^o[v])];return-1^l}},{}],46:[function(r,s,a){var i,l=r("../utils/common"),o=r("./trees"),c=r("./adler32"),p=r("./crc32"),h=r("./messages"),m=0,v=4,u=0,w=-2,g=-1,y=4,_=2,b=8,C=9,A=286,I=30,D=19,R=2*A+1,z=15,U=3,H=258,oe=H+U+1,T=42,O=113,f=1,N=2,W=3,B=4;function S(d,M){return d.msg=h[M],M}function P(d){return(d<<1)-(4d.avail_out&&(j=d.avail_out),j!==0&&(l.arraySet(d.output,M.pending_buf,M.pending_out,j,d.next_out),d.next_out+=j,M.pending_out+=j,d.total_out+=j,d.avail_out-=j,M.pending-=j,M.pending===0&&(M.pending_out=0))}function x(d,M){o._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,M),d.block_start=d.strstart,L(d.strm)}function re(d,M){d.pending_buf[d.pending++]=M}function Y(d,M){d.pending_buf[d.pending++]=M>>>8&255,d.pending_buf[d.pending++]=255&M}function X(d,M){var j,k,E=d.max_chain_length,$=d.strstart,V=d.prev_length,G=d.nice_match,F=d.strstart>d.w_size-oe?d.strstart-(d.w_size-oe):0,Z=d.window,ne=d.w_mask,K=d.prev,le=d.strstart+H,ye=Z[$+V-1],de=Z[$+V];d.prev_length>=d.good_match&&(E>>=2),G>d.lookahead&&(G=d.lookahead);do if(Z[(j=M)+V]===de&&Z[j+V-1]===ye&&Z[j]===Z[$]&&Z[++j]===Z[$+1]){$+=2,j++;do;while(Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&Z[++$]===Z[++j]&&$F&&--E!=0);return V<=d.lookahead?V:d.lookahead}function Ee(d){var M,j,k,E,$,V,G,F,Z,ne,K=d.w_size;do{if(E=d.window_size-d.lookahead-d.strstart,d.strstart>=K+(K-oe)){for(l.arraySet(d.window,d.window,K,K,0),d.match_start-=K,d.strstart-=K,d.block_start-=K,M=j=d.hash_size;k=d.head[--M],d.head[M]=K<=k?k-K:0,--j;);for(M=j=K;k=d.prev[--M],d.prev[M]=K<=k?k-K:0,--j;);E+=K}if(d.strm.avail_in===0)break;if(V=d.strm,G=d.window,F=d.strstart+d.lookahead,Z=E,ne=void 0,ne=V.avail_in,Z=U)for($=d.strstart-d.insert,d.ins_h=d.window[$],d.ins_h=(d.ins_h<=U&&(d.ins_h=(d.ins_h<=U)if(k=o._tr_tally(d,d.strstart-d.match_start,d.match_length-U),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=U){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<=U&&(d.ins_h=(d.ins_h<=U&&d.match_length<=d.prev_length){for(E=d.strstart+d.lookahead-U,k=o._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-U),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=E&&(d.ins_h=(d.ins_h<d.pending_buf_size-5&&(j=d.pending_buf_size-5);;){if(d.lookahead<=1){if(Ee(d),d.lookahead===0&&M===m)return f;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var k=d.block_start+j;if((d.strstart===0||d.strstart>=k)&&(d.lookahead=d.strstart-k,d.strstart=k,x(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-oe&&(x(d,!1),d.strm.avail_out===0))return f}return d.insert=0,M===v?(x(d,!0),d.strm.avail_out===0?W:B):(d.strstart>d.block_start&&(x(d,!1),d.strm.avail_out),f)}),new pe(4,4,8,4,De),new pe(4,5,16,8,De),new pe(4,6,32,32,De),new pe(4,4,16,16,fe),new pe(8,16,32,32,fe),new pe(8,16,128,128,fe),new pe(8,32,128,256,fe),new pe(32,128,258,1024,fe),new pe(32,258,258,4096,fe)],a.deflateInit=function(d,M){return Xe(d,M,b,15,8,0)},a.deflateInit2=Xe,a.deflateReset=tt,a.deflateResetKeep=ke,a.deflateSetHeader=function(d,M){return d&&d.state?d.state.wrap!==2?w:(d.state.gzhead=M,u):w},a.deflate=function(d,M){var j,k,E,$;if(!d||!d.state||5>8&255),re(k,k.gzhead.time>>16&255),re(k,k.gzhead.time>>24&255),re(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),re(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(re(k,255&k.gzhead.extra.length),re(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(d.adler=p(d.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(re(k,0),re(k,0),re(k,0),re(k,0),re(k,0),re(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),re(k,3),k.status=O);else{var V=b+(k.w_bits-8<<4)<<8;V|=(2<=k.strategy||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6,k.strstart!==0&&(V|=32),V+=31-V%31,k.status=O,Y(k,V),k.strstart!==0&&(Y(k,d.adler>>>16),Y(k,65535&d.adler)),d.adler=1}if(k.status===69)if(k.gzhead.extra){for(E=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>E&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),L(d),E=k.pending,k.pending!==k.pending_buf_size));)re(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>E&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){E=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>E&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),L(d),E=k.pending,k.pending===k.pending_buf_size)){$=1;break}$=k.gzindexE&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),$===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===91)if(k.gzhead.comment){E=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>E&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),L(d),E=k.pending,k.pending===k.pending_buf_size)){$=1;break}$=k.gzindexE&&(d.adler=p(d.adler,k.pending_buf,k.pending-E,E)),$===0&&(k.status=103)}else k.status=103;if(k.status===103&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&L(d),k.pending+2<=k.pending_buf_size&&(re(k,255&d.adler),re(k,d.adler>>8&255),d.adler=0,k.status=O)):k.status=O),k.pending!==0){if(L(d),d.avail_out===0)return k.last_flush=-1,u}else if(d.avail_in===0&&P(M)<=P(j)&&M!==v)return S(d,-5);if(k.status===666&&d.avail_in!==0)return S(d,-5);if(d.avail_in!==0||k.lookahead!==0||M!==m&&k.status!==666){var G=k.strategy===2?function(F,Z){for(var ne;;){if(F.lookahead===0&&(Ee(F),F.lookahead===0)){if(Z===m)return f;break}if(F.match_length=0,ne=o._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,ne&&(x(F,!1),F.strm.avail_out===0))return f}return F.insert=0,Z===v?(x(F,!0),F.strm.avail_out===0?W:B):F.last_lit&&(x(F,!1),F.strm.avail_out===0)?f:N}(k,M):k.strategy===3?function(F,Z){for(var ne,K,le,ye,de=F.window;;){if(F.lookahead<=H){if(Ee(F),F.lookahead<=H&&Z===m)return f;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=U&&0F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=U?(ne=o._tr_tally(F,1,F.match_length-U),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(ne=o._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),ne&&(x(F,!1),F.strm.avail_out===0))return f}return F.insert=0,Z===v?(x(F,!0),F.strm.avail_out===0?W:B):F.last_lit&&(x(F,!1),F.strm.avail_out===0)?f:N}(k,M):i[k.level].func(k,M);if(G!==W&&G!==B||(k.status=666),G===f||G===W)return d.avail_out===0&&(k.last_flush=-1),u;if(G===N&&(M===1?o._tr_align(k):M!==5&&(o._tr_stored_block(k,0,0,!1),M===3&&(q(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),L(d),d.avail_out===0))return k.last_flush=-1,u}return M!==v?u:k.wrap<=0?1:(k.wrap===2?(re(k,255&d.adler),re(k,d.adler>>8&255),re(k,d.adler>>16&255),re(k,d.adler>>24&255),re(k,255&d.total_in),re(k,d.total_in>>8&255),re(k,d.total_in>>16&255),re(k,d.total_in>>24&255)):(Y(k,d.adler>>>16),Y(k,65535&d.adler)),L(d),0=j.w_size&&($===0&&(q(j.head),j.strstart=0,j.block_start=0,j.insert=0),Z=new l.Buf8(j.w_size),l.arraySet(Z,M,ne-j.w_size,j.w_size,0),M=Z,ne=j.w_size),V=d.avail_in,G=d.next_in,F=d.input,d.avail_in=ne,d.next_in=0,d.input=M,Ee(j);j.lookahead>=U;){for(k=j.strstart,E=j.lookahead-(U-1);j.ins_h=(j.ins_h<>>=U=z>>>24,C-=U,(U=z>>>16&255)===0)N[h++]=65535&z;else{if(!(16&U)){if(!(64&U)){z=A[(65535&z)+(b&(1<>>=U,C-=U),C<15&&(b+=f[c++]<>>=U=z>>>24,C-=U,!(16&(U=z>>>16&255))){if(!(64&U)){z=I[(65535&z)+(b&(1<>>=U,C-=U,(U=h-m)>3,b&=(1<<(C-=H<<3))-1,i.next_in=c,i.next_out=h,i.avail_in=c>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(T){var O;return T&&T.state?(O=T.state,T.total_in=T.total_out=O.total=0,T.msg="",O.wrap&&(T.adler=1&O.wrap),O.mode=w,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new i.Buf32(g),O.distcode=O.distdyn=new i.Buf32(y),O.sane=1,O.back=-1,v):u}function A(T){var O;return T&&T.state?((O=T.state).wsize=0,O.whave=0,O.wnext=0,C(T)):u}function I(T,O){var f,N;return T&&T.state?(N=T.state,O<0?(f=0,O=-O):(f=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15=B.wsize?(i.arraySet(B.window,O,f-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(N<(W=B.wsize-B.wnext)&&(W=N),i.arraySet(B.window,O,f-N,W,B.wnext),(N-=W)?(i.arraySet(B.window,O,f-N,N,0),B.wnext=N,B.whave=B.wsize):(B.wnext+=W,B.wnext===B.wsize&&(B.wnext=0),B.whave>>8&255,f.check=o(f.check,$,2,0),x=L=0,f.mode=2;break}if(f.flags=0,f.head&&(f.head.done=!1),!(1&f.wrap)||(((255&L)<<8)+(L>>8))%31){T.msg="incorrect header check",f.mode=30;break}if((15&L)!=8){T.msg="unknown compression method",f.mode=30;break}if(x-=4,d=8+(15&(L>>>=4)),f.wbits===0)f.wbits=d;else if(d>f.wbits){T.msg="invalid window size",f.mode=30;break}f.dmax=1<>8&1),512&f.flags&&($[0]=255&L,$[1]=L>>>8&255,f.check=o(f.check,$,2,0)),x=L=0,f.mode=3;case 3:for(;x<32;){if(P===0)break e;P--,L+=N[B++]<>>8&255,$[2]=L>>>16&255,$[3]=L>>>24&255,f.check=o(f.check,$,4,0)),x=L=0,f.mode=4;case 4:for(;x<16;){if(P===0)break e;P--,L+=N[B++]<>8),512&f.flags&&($[0]=255&L,$[1]=L>>>8&255,f.check=o(f.check,$,2,0)),x=L=0,f.mode=5;case 5:if(1024&f.flags){for(;x<16;){if(P===0)break e;P--,L+=N[B++]<>>8&255,f.check=o(f.check,$,2,0)),x=L=0}else f.head&&(f.head.extra=null);f.mode=6;case 6:if(1024&f.flags&&(P<(X=f.length)&&(X=P),X&&(f.head&&(d=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),i.arraySet(f.head.extra,N,B,X,d)),512&f.flags&&(f.check=o(f.check,N,X,B)),P-=X,B+=X,f.length-=X),f.length))break e;f.length=0,f.mode=7;case 7:if(2048&f.flags){if(P===0)break e;for(X=0;d=N[B+X++],f.head&&d&&f.length<65536&&(f.head.name+=String.fromCharCode(d)),d&&X>9&1,f.head.done=!0),T.adler=f.check=0,f.mode=12;break;case 10:for(;x<32;){if(P===0)break e;P--,L+=N[B++]<>>=7&x,x-=7&x,f.mode=27;break}for(;x<3;){if(P===0)break e;P--,L+=N[B++]<>>=1)){case 0:f.mode=14;break;case 1:if(H(f),f.mode=20,O!==6)break;L>>>=2,x-=2;break e;case 2:f.mode=17;break;case 3:T.msg="invalid block type",f.mode=30}L>>>=2,x-=2;break;case 14:for(L>>>=7&x,x-=7&x;x<32;){if(P===0)break e;P--,L+=N[B++]<>>16^65535)){T.msg="invalid stored block lengths",f.mode=30;break}if(f.length=65535&L,x=L=0,f.mode=15,O===6)break e;case 15:f.mode=16;case 16:if(X=f.length){if(P>>=5,x-=5,f.ndist=1+(31&L),L>>>=5,x-=5,f.ncode=4+(15&L),L>>>=4,x-=4,286>>=3,x-=3}for(;f.have<19;)f.lens[V[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,j={bits:f.lenbits},M=p(0,f.lens,0,19,f.lencode,0,f.work,j),f.lenbits=j.bits,M){T.msg="invalid code lengths set",f.mode=30;break}f.have=0,f.mode=19;case 19:for(;f.have>>16&255,xe=65535&E,!((fe=E>>>24)<=x);){if(P===0)break e;P--,L+=N[B++]<>>=fe,x-=fe,f.lens[f.have++]=xe;else{if(xe===16){for(k=fe+2;x>>=fe,x-=fe,f.have===0){T.msg="invalid bit length repeat",f.mode=30;break}d=f.lens[f.have-1],X=3+(3&L),L>>>=2,x-=2}else if(xe===17){for(k=fe+3;x>>=fe)),L>>>=3,x-=3}else{for(k=fe+7;x>>=fe)),L>>>=7,x-=7}if(f.have+X>f.nlen+f.ndist){T.msg="invalid bit length repeat",f.mode=30;break}for(;X--;)f.lens[f.have++]=d}}if(f.mode===30)break;if(f.lens[256]===0){T.msg="invalid code -- missing end-of-block",f.mode=30;break}if(f.lenbits=9,j={bits:f.lenbits},M=p(h,f.lens,0,f.nlen,f.lencode,0,f.work,j),f.lenbits=j.bits,M){T.msg="invalid literal/lengths set",f.mode=30;break}if(f.distbits=6,f.distcode=f.distdyn,j={bits:f.distbits},M=p(m,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,j),f.distbits=j.bits,M){T.msg="invalid distances set",f.mode=30;break}if(f.mode=20,O===6)break e;case 20:f.mode=21;case 21:if(6<=P&&258<=q){T.next_out=S,T.avail_out=q,T.next_in=B,T.avail_in=P,f.hold=L,f.bits=x,c(T,Y),S=T.next_out,W=T.output,q=T.avail_out,B=T.next_in,N=T.input,P=T.avail_in,L=f.hold,x=f.bits,f.mode===12&&(f.back=-1);break}for(f.back=0;pe=(E=f.lencode[L&(1<>>16&255,xe=65535&E,!((fe=E>>>24)<=x);){if(P===0)break e;P--,L+=N[B++]<>ke)])>>>16&255,xe=65535&E,!(ke+(fe=E>>>24)<=x);){if(P===0)break e;P--,L+=N[B++]<>>=ke,x-=ke,f.back+=ke}if(L>>>=fe,x-=fe,f.back+=fe,f.length=xe,pe===0){f.mode=26;break}if(32&pe){f.back=-1,f.mode=12;break}if(64&pe){T.msg="invalid literal/length code",f.mode=30;break}f.extra=15&pe,f.mode=22;case 22:if(f.extra){for(k=f.extra;x>>=f.extra,x-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=23;case 23:for(;pe=(E=f.distcode[L&(1<>>16&255,xe=65535&E,!((fe=E>>>24)<=x);){if(P===0)break e;P--,L+=N[B++]<>ke)])>>>16&255,xe=65535&E,!(ke+(fe=E>>>24)<=x);){if(P===0)break e;P--,L+=N[B++]<>>=ke,x-=ke,f.back+=ke}if(L>>>=fe,x-=fe,f.back+=fe,64&pe){T.msg="invalid distance code",f.mode=30;break}f.offset=xe,f.extra=15&pe,f.mode=24;case 24:if(f.extra){for(k=f.extra;x>>=f.extra,x-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){T.msg="invalid distance too far back",f.mode=30;break}f.mode=25;case 25:if(q===0)break e;if(X=Y-q,f.offset>X){if((X=f.offset-X)>f.whave&&f.sane){T.msg="invalid distance too far back",f.mode=30;break}Ee=X>f.wnext?(X-=f.wnext,f.wsize-X):f.wnext-X,X>f.length&&(X=f.length),De=f.window}else De=W,Ee=S-f.offset,X=f.length;for(qR?(U=Ee[De+y[O]],x[re+y[O]]):(U=96,0),b=1<>S)+(C-=b)]=z<<24|U<<16|H|0,C!==0;);for(b=1<>=1;if(b!==0?(L&=b-1,L+=b):L=0,O++,--Y[T]==0){if(T===N)break;T=m[v+y[O]]}if(W>>7)]}function re(E,$){E.pending_buf[E.pending++]=255&$,E.pending_buf[E.pending++]=$>>>8&255}function Y(E,$,V){E.bi_valid>_-V?(E.bi_buf|=$<>_-E.bi_valid,E.bi_valid+=V-_):(E.bi_buf|=$<>>=1,V<<=1,0<--$;);return V>>>1}function De(E,$,V){var G,F,Z=new Array(y+1),ne=0;for(G=1;G<=y;G++)Z[G]=ne=ne+V[G-1]<<1;for(F=0;F<=$;F++){var K=E[2*F+1];K!==0&&(E[2*F]=Ee(Z[K]++,K))}}function fe(E){var $;for($=0;$>1;1<=V;V--)ke(E,Z,V);for(F=le;V=E.heap[1],E.heap[1]=E.heap[E.heap_len--],ke(E,Z,1),G=E.heap[1],E.heap[--E.heap_max]=V,E.heap[--E.heap_max]=G,Z[2*F]=Z[2*V]+Z[2*G],E.depth[F]=(E.depth[V]>=E.depth[G]?E.depth[V]:E.depth[G])+1,Z[2*V+1]=Z[2*G+1]=F,E.heap[1]=F++,ke(E,Z,1),2<=E.heap_len;);E.heap[--E.heap_max]=E.heap[1],function(de,He){var dn,nt,hn,Ae,Rn,Nr,ut=He.dyn_tree,gs=He.max_code,Xl=He.stat_desc.static_tree,Kl=He.stat_desc.has_stree,Jl=He.stat_desc.extra_bits,vs=He.stat_desc.extra_base,pn=He.stat_desc.max_length,Fn=0;for(Ae=0;Ae<=y;Ae++)de.bl_count[Ae]=0;for(ut[2*de.heap[de.heap_max]+1]=0,dn=de.heap_max+1;dn>=7;F>>=1)if(1&ye&&K.dyn_ltree[2*le]!==0)return l;if(K.dyn_ltree[18]!==0||K.dyn_ltree[20]!==0||K.dyn_ltree[26]!==0)return o;for(le=32;le>>3,(Z=E.static_len+3+7>>>3)<=F&&(F=Z)):F=Z=V+5,V+4<=F&&$!==-1?k(E,$,V,G):E.strategy===4||Z===F?(Y(E,2+(G?1:0),3),tt(E,oe,T)):(Y(E,4+(G?1:0),3),function(K,le,ye,de){var He;for(Y(K,le-257,5),Y(K,ye-1,5),Y(K,de-4,4),He=0;He>>8&255,E.pending_buf[E.d_buf+2*E.last_lit+1]=255&$,E.pending_buf[E.l_buf+E.last_lit]=255&V,E.last_lit++,$===0?E.dyn_ltree[2*V]++:(E.matches++,$--,E.dyn_ltree[2*(f[V]+m+1)]++,E.dyn_dtree[2*x($)]++),E.last_lit===E.lit_bufsize-1},a._tr_align=function(E){Y(E,2,3),X(E,C,oe),function($){$.bi_valid===16?(re($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(E)}},{"../utils/common":41}],53:[function(r,s,a){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,s,a){(function(i){(function(l,o){if(!l.setImmediate){var c,p,h,m,v=1,u={},w=!1,g=l.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(l);y=y&&y.setTimeout?y:l,c={}.toString.call(l.process)==="[object process]"?function(A){process.nextTick(function(){b(A)})}:function(){if(l.postMessage&&!l.importScripts){var A=!0,I=l.onmessage;return l.onmessage=function(){A=!1},l.postMessage("","*"),l.onmessage=I,A}}()?(m="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",C,!1):l.attachEvent("onmessage",C),function(A){l.postMessage(m+A,"*")}):l.MessageChannel?((h=new MessageChannel).port1.onmessage=function(A){b(A.data)},function(A){h.port2.postMessage(A)}):g&&"onreadystatechange"in g.createElement("script")?(p=g.documentElement,function(A){var I=g.createElement("script");I.onreadystatechange=function(){b(A),I.onreadystatechange=null,p.removeChild(I),I=null},p.appendChild(I)}):function(A){setTimeout(b,0,A)},y.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var I=new Array(arguments.length-1),D=0;D"u"?i===void 0?this:i:self)}).call(this,typeof n<"u"?n:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(zl);var Gp=zl.exports;const Ri=tc(Gp);var Fi={exports:{}};const Hp="2.0.0",Vl=256,Yp=Number.MAX_SAFE_INTEGER||9007199254740991,Zp=16,qp=Vl-6,Xp=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Cr={MAX_LENGTH:Vl,MAX_SAFE_COMPONENT_LENGTH:Zp,MAX_SAFE_BUILD_LENGTH:qp,MAX_SAFE_INTEGER:Yp,RELEASE_TYPES:Xp,SEMVER_SPEC_VERSION:Hp,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Jr={};const Kp=typeof process=="object"&&Jr&&Jr.NODE_DEBUG&&/\bsemver\b/i.test(Jr.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Or=Kp;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:s}=Cr,a=Or;t=e.exports={};const i=t.re=[],l=t.safeRe=[],o=t.src=[],c=t.t={};let p=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,r]],v=w=>{for(const[g,y]of m)w=w.split(`${g}*`).join(`${g}{0,${y}}`).split(`${g}+`).join(`${g}{1,${y}}`);return w},u=(w,g,y)=>{const _=v(g),b=p++;a(w,b,g),c[w]=b,o[b]=g,i[b]=new RegExp(g,y?"g":void 0),l[b]=new RegExp(_,y?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),u("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${o[c.NUMERICIDENTIFIER]}|${o[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NUMERICIDENTIFIERLOOSE]}|${o[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${h}+`),u("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`),u("FULL",`^${o[c.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`),u("LOOSE",`^${o[c.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?)?)?`),u("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`),u("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),u("COERCE",`${o[c.COERCEPLAIN]}(?:$|[^\\d])`),u("COERCEFULL",o[c.COERCEPLAIN]+`(?:${o[c.PRERELEASE]})?(?:${o[c.BUILD]})?(?:$|[^\\d])`),u("COERCERTL",o[c.COERCE],!0),u("COERCERTLFULL",o[c.COERCEFULL],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})\\s+-\\s+(${o[c.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[c.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Fi,Fi.exports);var Nn=Fi.exports;const Jp=Object.freeze({loose:!0}),Qp=Object.freeze({}),em=e=>e?typeof e!="object"?Jp:e:Qp;var ls=em;const mo=/^[0-9]+$/,Wl=(e,t)=>{const n=mo.test(e),r=mo.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eWl(t,e);var Gl={compareIdentifiers:Wl,rcompareIdentifiers:tm};const Vn=Or,{MAX_LENGTH:go,MAX_SAFE_INTEGER:Wn}=Cr,{safeRe:vo,t:_o}=Nn,nm=ls,{compareIdentifiers:Zt}=Gl;let rm=class it{constructor(t,n){if(n=nm(n),t instanceof it){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>go)throw new TypeError(`version is longer than ${go} characters`);Vn("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?vo[_o.LOOSE]:vo[_o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Wn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Wn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Wn||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const a=+s;if(a>=0&&a=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let a=[n,s];r===!1&&(a=[n]),Zt(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Ue=rm;const yo=Ue,im=(e,t,n=!1)=>{if(e instanceof yo)return e;try{return new yo(e,t)}catch(r){if(!n)return null;throw r}};var fn=im;const sm=fn,om=(e,t)=>{const n=sm(e,t);return n?n.version:null};var am=om;const lm=fn,cm=(e,t)=>{const n=lm(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var um=cm;const wo=Ue,fm=(e,t,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new wo(e instanceof wo?e.version:e,n).inc(t,r,s).version}catch{return null}};var dm=fm;const bo=fn,hm=(e,t)=>{const n=bo(e,null,!0),r=bo(t,null,!0),s=n.compare(r);if(s===0)return null;const a=s>0,i=a?n:r,l=a?r:n,o=!!i.prerelease.length;if(!!l.prerelease.length&&!o)return!l.patch&&!l.minor?"major":i.patch?"patch":i.minor?"minor":"major";const p=o?"pre":"";return n.major!==r.major?p+"major":n.minor!==r.minor?p+"minor":n.patch!==r.patch?p+"patch":"prerelease"};var pm=hm;const mm=Ue,gm=(e,t)=>new mm(e,t).major;var vm=gm;const _m=Ue,ym=(e,t)=>new _m(e,t).minor;var wm=ym;const bm=Ue,Em=(e,t)=>new bm(e,t).patch;var km=Em;const Am=fn,Im=(e,t)=>{const n=Am(e,t);return n&&n.prerelease.length?n.prerelease:null};var Tm=Im;const Eo=Ue,Sm=(e,t,n)=>new Eo(e,n).compare(new Eo(t,n));var Qe=Sm;const Cm=Qe,Om=(e,t,n)=>Cm(t,e,n);var $m=Om;const Lm=Qe,xm=(e,t)=>Lm(e,t,!0);var Nm=xm;const ko=Ue,Rm=(e,t,n)=>{const r=new ko(e,n),s=new ko(t,n);return r.compare(s)||r.compareBuild(s)};var cs=Rm;const Fm=cs,Dm=(e,t)=>e.sort((n,r)=>Fm(n,r,t));var Pm=Dm;const Bm=cs,jm=(e,t)=>e.sort((n,r)=>Bm(r,n,t));var Um=jm;const Mm=Qe,zm=(e,t,n)=>Mm(e,t,n)>0;var $r=zm;const Vm=Qe,Wm=(e,t,n)=>Vm(e,t,n)<0;var us=Wm;const Gm=Qe,Hm=(e,t,n)=>Gm(e,t,n)===0;var Hl=Hm;const Ym=Qe,Zm=(e,t,n)=>Ym(e,t,n)!==0;var Yl=Zm;const qm=Qe,Xm=(e,t,n)=>qm(e,t,n)>=0;var fs=Xm;const Km=Qe,Jm=(e,t,n)=>Km(e,t,n)<=0;var ds=Jm;const Qm=Hl,eg=Yl,tg=$r,ng=fs,rg=us,ig=ds,sg=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Qm(e,n,r);case"!=":return eg(e,n,r);case">":return tg(e,n,r);case">=":return ng(e,n,r);case"<":return rg(e,n,r);case"<=":return ig(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var Zl=sg;const og=Ue,ag=fn,{safeRe:Gn,t:Hn}=Nn,lg=(e,t)=>{if(e instanceof og)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?Gn[Hn.COERCEFULL]:Gn[Hn.COERCE]);else{const o=t.includePrerelease?Gn[Hn.COERCERTLFULL]:Gn[Hn.COERCERTL];let c;for(;(c=o.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||c.index+c[0].length!==n.index+n[0].length)&&(n=c),o.lastIndex=c.index+c[1].length+c[2].length;o.lastIndex=-1}if(n===null)return null;const r=n[2],s=n[3]||"0",a=n[4]||"0",i=t.includePrerelease&&n[5]?`-${n[5]}`:"",l=t.includePrerelease&&n[6]?`+${n[6]}`:"";return ag(`${r}.${s}.${a}${i}${l}`,t)};var cg=lg;class ug{constructor(){this.max=1e3,this.map=new Map}get(t){const n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(t,n)}return this}}var fg=ug,Qr,Ao;function et(){if(Ao)return Qr;Ao=1;const e=/\s+/g;class t{constructor(f,N){if(N=s(N),f instanceof t)return f.loose===!!N.loose&&f.includePrerelease===!!N.includePrerelease?f:new t(f.raw,N);if(f instanceof a)return this.raw=f.value,this.set=[[f]],this.formatted=void 0,this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=f.trim().replace(e," "),this.set=this.raw.split("||").map(W=>this.parseRange(W.trim())).filter(W=>W.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const W=this.set[0];if(this.set=this.set.filter(B=>!w(B[0])),this.set.length===0)this.set=[W];else if(this.set.length>1){for(const B of this.set)if(B.length===1&&g(B[0])){this.set=[B];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let f=0;f0&&(this.formatted+="||");const N=this.set[f];for(let W=0;W0&&(this.formatted+=" "),this.formatted+=N[W].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(f){const W=((this.options.includePrerelease&&v)|(this.options.loose&&u))+":"+f,B=r.get(W);if(B)return B;const S=this.options.loose,P=S?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];f=f.replace(P,oe(this.options.includePrerelease)),i("hyphen replace",f),f=f.replace(o[c.COMPARATORTRIM],p),i("comparator trim",f),f=f.replace(o[c.TILDETRIM],h),i("tilde trim",f),f=f.replace(o[c.CARETTRIM],m),i("caret trim",f);let q=f.split(" ").map(Y=>_(Y,this.options)).join(" ").split(/\s+/).map(Y=>H(Y,this.options));S&&(q=q.filter(Y=>(i("loose invalid filter",Y,this.options),!!Y.match(o[c.COMPARATORLOOSE])))),i("range list",q);const L=new Map,x=q.map(Y=>new a(Y,this.options));for(const Y of x){if(w(Y))return[Y];L.set(Y.value,Y)}L.size>1&&L.has("")&&L.delete("");const re=[...L.values()];return r.set(W,re),re}intersects(f,N){if(!(f instanceof t))throw new TypeError("a Range is required");return this.set.some(W=>y(W,N)&&f.set.some(B=>y(B,N)&&W.every(S=>B.every(P=>S.intersects(P,N)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new l(f,this.options)}catch{return!1}for(let N=0;NO.value==="<0.0.0-0",g=O=>O.value==="",y=(O,f)=>{let N=!0;const W=O.slice();let B=W.pop();for(;N&&W.length;)N=W.every(S=>B.intersects(S,f)),B=W.pop();return N},_=(O,f)=>(i("comp",O,f),O=I(O,f),i("caret",O),O=C(O,f),i("tildes",O),O=R(O,f),i("xrange",O),O=U(O,f),i("stars",O),O),b=O=>!O||O.toLowerCase()==="x"||O==="*",C=(O,f)=>O.trim().split(/\s+/).map(N=>A(N,f)).join(" "),A=(O,f)=>{const N=f.loose?o[c.TILDELOOSE]:o[c.TILDE];return O.replace(N,(W,B,S,P,q)=>{i("tilde",O,W,B,S,P,q);let L;return b(B)?L="":b(S)?L=`>=${B}.0.0 <${+B+1}.0.0-0`:b(P)?L=`>=${B}.${S}.0 <${B}.${+S+1}.0-0`:q?(i("replaceTilde pr",q),L=`>=${B}.${S}.${P}-${q} <${B}.${+S+1}.0-0`):L=`>=${B}.${S}.${P} <${B}.${+S+1}.0-0`,i("tilde return",L),L})},I=(O,f)=>O.trim().split(/\s+/).map(N=>D(N,f)).join(" "),D=(O,f)=>{i("caret",O,f);const N=f.loose?o[c.CARETLOOSE]:o[c.CARET],W=f.includePrerelease?"-0":"";return O.replace(N,(B,S,P,q,L)=>{i("caret",O,B,S,P,q,L);let x;return b(S)?x="":b(P)?x=`>=${S}.0.0${W} <${+S+1}.0.0-0`:b(q)?S==="0"?x=`>=${S}.${P}.0${W} <${S}.${+P+1}.0-0`:x=`>=${S}.${P}.0${W} <${+S+1}.0.0-0`:L?(i("replaceCaret pr",L),S==="0"?P==="0"?x=`>=${S}.${P}.${q}-${L} <${S}.${P}.${+q+1}-0`:x=`>=${S}.${P}.${q}-${L} <${S}.${+P+1}.0-0`:x=`>=${S}.${P}.${q}-${L} <${+S+1}.0.0-0`):(i("no pr"),S==="0"?P==="0"?x=`>=${S}.${P}.${q}${W} <${S}.${P}.${+q+1}-0`:x=`>=${S}.${P}.${q}${W} <${S}.${+P+1}.0-0`:x=`>=${S}.${P}.${q} <${+S+1}.0.0-0`),i("caret return",x),x})},R=(O,f)=>(i("replaceXRanges",O,f),O.split(/\s+/).map(N=>z(N,f)).join(" ")),z=(O,f)=>{O=O.trim();const N=f.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return O.replace(N,(W,B,S,P,q,L)=>{i("xRange",O,W,B,S,P,q,L);const x=b(S),re=x||b(P),Y=re||b(q),X=Y;return B==="="&&X&&(B=""),L=f.includePrerelease?"-0":"",x?B===">"||B==="<"?W="<0.0.0-0":W="*":B&&X?(re&&(P=0),q=0,B===">"?(B=">=",re?(S=+S+1,P=0,q=0):(P=+P+1,q=0)):B==="<="&&(B="<",re?S=+S+1:P=+P+1),B==="<"&&(L="-0"),W=`${B+S}.${P}.${q}${L}`):re?W=`>=${S}.0.0${L} <${+S+1}.0.0-0`:Y&&(W=`>=${S}.${P}.0${L} <${S}.${+P+1}.0-0`),i("xRange return",W),W})},U=(O,f)=>(i("replaceStars",O,f),O.trim().replace(o[c.STAR],"")),H=(O,f)=>(i("replaceGTE0",O,f),O.trim().replace(o[f.includePrerelease?c.GTE0PRE:c.GTE0],"")),oe=O=>(f,N,W,B,S,P,q,L,x,re,Y,X)=>(b(W)?N="":b(B)?N=`>=${W}.0.0${O?"-0":""}`:b(S)?N=`>=${W}.${B}.0${O?"-0":""}`:P?N=`>=${N}`:N=`>=${N}${O?"-0":""}`,b(x)?L="":b(re)?L=`<${+x+1}.0.0-0`:b(Y)?L=`<${x}.${+re+1}.0-0`:X?L=`<=${x}.${re}.${Y}-${X}`:O?L=`<${x}.${re}.${+Y+1}-0`:L=`<=${L}`,`${N} ${L}`.trim()),T=(O,f,N)=>{for(let W=0;W0){const B=O[W].semver;if(B.major===f.major&&B.minor===f.minor&&B.patch===f.patch)return!0}return!1}return!0};return Qr}var ei,Io;function Lr(){if(Io)return ei;Io=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(p,h){if(h=n(h),p instanceof t){if(p.loose===!!h.loose)return p;p=p.value}p=p.trim().split(/\s+/).join(" "),i("comparator",p,h),this.options=h,this.loose=!!h.loose,this.parse(p),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(p){const h=this.options.loose?r[s.COMPARATORLOOSE]:r[s.COMPARATOR],m=p.match(h);if(!m)throw new TypeError(`Invalid comparator: ${p}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new l(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(p){if(i("Comparator.test",p,this.options.loose),this.semver===e||p===e)return!0;if(typeof p=="string")try{p=new l(p,this.options)}catch{return!1}return a(p,this.operator,this.semver,this.options)}intersects(p,h){if(!(p instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(p.value,h).test(this.value):p.operator===""?p.value===""?!0:new o(this.value,h).test(p.semver):(h=n(h),h.includePrerelease&&(this.value==="<0.0.0-0"||p.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||p.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&p.operator.startsWith(">")||this.operator.startsWith("<")&&p.operator.startsWith("<")||this.semver.version===p.semver.version&&this.operator.includes("=")&&p.operator.includes("=")||a(this.semver,"<",p.semver,h)&&this.operator.startsWith(">")&&p.operator.startsWith("<")||a(this.semver,">",p.semver,h)&&this.operator.startsWith("<")&&p.operator.startsWith(">")))}}ei=t;const n=ls,{safeRe:r,t:s}=Nn,a=Zl,i=Or,l=Ue,o=et();return ei}const dg=et(),hg=(e,t,n)=>{try{t=new dg(t,n)}catch{return!1}return t.test(e)};var xr=hg;const pg=et(),mg=(e,t)=>new pg(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var gg=mg;const vg=Ue,_g=et(),yg=(e,t,n)=>{let r=null,s=null,a=null;try{a=new _g(t,n)}catch{return null}return e.forEach(i=>{a.test(i)&&(!r||s.compare(i)===-1)&&(r=i,s=new vg(r,n))}),r};var wg=yg;const bg=Ue,Eg=et(),kg=(e,t,n)=>{let r=null,s=null,a=null;try{a=new Eg(t,n)}catch{return null}return e.forEach(i=>{a.test(i)&&(!r||s.compare(i)===1)&&(r=i,s=new bg(r,n))}),r};var Ag=kg;const ti=Ue,Ig=et(),To=$r,Tg=(e,t)=>{e=new Ig(e,t);let n=new ti("0.0.0");if(e.test(n)||(n=new ti("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r{const l=new ti(i.semver.version);switch(i.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!a||To(l,a))&&(a=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),a&&(!n||To(n,a))&&(n=a)}return n&&e.test(n)?n:null};var Sg=Tg;const Cg=et(),Og=(e,t)=>{try{return new Cg(e,t).range||"*"}catch{return null}};var $g=Og;const Lg=Ue,ql=Lr(),{ANY:xg}=ql,Ng=et(),Rg=xr,So=$r,Co=us,Fg=ds,Dg=fs,Pg=(e,t,n,r)=>{e=new Lg(e,r),t=new Ng(t,r);let s,a,i,l,o;switch(n){case">":s=So,a=Fg,i=Co,l=">",o=">=";break;case"<":s=Co,a=Dg,i=So,l="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Rg(e,t,r))return!1;for(let c=0;c{v.semver===xg&&(v=new ql(">=0.0.0")),h=h||v,m=m||v,s(v.semver,h.semver,r)?h=v:i(v.semver,m.semver,r)&&(m=v)}),h.operator===l||h.operator===o||(!m.operator||m.operator===l)&&a(e,m.semver))return!1;if(m.operator===o&&i(e,m.semver))return!1}return!0};var hs=Pg;const Bg=hs,jg=(e,t,n)=>Bg(e,t,">",n);var Ug=jg;const Mg=hs,zg=(e,t,n)=>Mg(e,t,"<",n);var Vg=zg;const Oo=et(),Wg=(e,t,n)=>(e=new Oo(e,n),t=new Oo(t,n),e.intersects(t,n));var Gg=Wg;const Hg=xr,Yg=Qe;var Zg=(e,t,n)=>{const r=[];let s=null,a=null;const i=e.sort((p,h)=>Yg(p,h,n));for(const p of i)Hg(p,t,n)?(a=p,s||(s=p)):(a&&r.push([s,a]),a=null,s=null);s&&r.push([s,null]);const l=[];for(const[p,h]of r)p===h?l.push(p):!h&&p===i[0]?l.push("*"):h?p===i[0]?l.push(`<=${h}`):l.push(`${p} - ${h}`):l.push(`>=${p}`);const o=l.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return o.length{if(e===t)return!0;e=new $o(e,n),t=new $o(t,n);let r=!1;e:for(const s of e.set){for(const a of t.set){const i=Kg(s,a,n);if(r=r||i!==null,i)continue e}if(r)return!1}return!0},Xg=[new ps(">=0.0.0-0")],Lo=[new ps(">=0.0.0")],Kg=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ni){if(t.length===1&&t[0].semver===ni)return!0;n.includePrerelease?e=Xg:e=Lo}if(t.length===1&&t[0].semver===ni){if(n.includePrerelease)return!0;t=Lo}const r=new Set;let s,a;for(const v of e)v.operator===">"||v.operator===">="?s=xo(s,v,n):v.operator==="<"||v.operator==="<="?a=No(a,v,n):r.add(v.semver);if(r.size>1)return null;let i;if(s&&a){if(i=ms(s.semver,a.semver,n),i>0)return null;if(i===0&&(s.operator!==">="||a.operator!=="<="))return null}for(const v of r){if(s&&!_n(v,String(s),n)||a&&!_n(v,String(a),n))return null;for(const u of t)if(!_n(v,String(u),n))return!1;return!0}let l,o,c,p,h=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,m=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&a.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(const v of t){if(p=p||v.operator===">"||v.operator===">=",c=c||v.operator==="<"||v.operator==="<=",s){if(m&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===m.major&&v.semver.minor===m.minor&&v.semver.patch===m.patch&&(m=!1),v.operator===">"||v.operator===">="){if(l=xo(s,v,n),l===v&&l!==s)return!1}else if(s.operator===">="&&!_n(s.semver,String(v),n))return!1}if(a){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator==="<"||v.operator==="<="){if(o=No(a,v,n),o===v&&o!==a)return!1}else if(a.operator==="<="&&!_n(a.semver,String(v),n))return!1}if(!v.operator&&(a||s)&&i!==0)return!1}return!(s&&c&&!a&&i!==0||a&&p&&!s&&i!==0||m||h)},xo=(e,t,n)=>{if(!e)return t;const r=ms(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},No=(e,t,n)=>{if(!e)return t;const r=ms(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var Jg=qg;const ri=Nn,Ro=Cr,Qg=Ue,Fo=Gl,e0=fn,t0=am,n0=um,r0=dm,i0=pm,s0=vm,o0=wm,a0=km,l0=Tm,c0=Qe,u0=$m,f0=Nm,d0=cs,h0=Pm,p0=Um,m0=$r,g0=us,v0=Hl,_0=Yl,y0=fs,w0=ds,b0=Zl,E0=cg,k0=Lr(),A0=et(),I0=xr,T0=gg,S0=wg,C0=Ag,O0=Sg,$0=$g,L0=hs,x0=Ug,N0=Vg,R0=Gg,F0=Zg,D0=Jg;var P0={parse:e0,valid:t0,clean:n0,inc:r0,diff:i0,major:s0,minor:o0,patch:a0,prerelease:l0,compare:c0,rcompare:u0,compareLoose:f0,compareBuild:d0,sort:h0,rsort:p0,gt:m0,lt:g0,eq:v0,neq:_0,gte:y0,lte:w0,cmp:b0,coerce:E0,Comparator:k0,Range:A0,satisfies:I0,toComparators:T0,maxSatisfying:S0,minSatisfying:C0,minVersion:O0,validRange:$0,outside:L0,gtr:x0,ltr:N0,intersects:R0,simplifyRange:F0,subset:D0,SemVer:Qg,re:ri.re,src:ri.src,tokens:ri.t,SEMVER_SPEC_VERSION:Ro.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ro.RELEASE_TYPES,compareIdentifiers:Fo.compareIdentifiers,rcompareIdentifiers:Fo.rcompareIdentifiers};const B0=async function(e,t,n){function r(p){return p.includes("alpha")?"alpha":p.includes("beta")||p.match(/[^A-z](rc)[^A-z]/)||p.match(/[^A-z](pre)[^A-z]/)?"beta":"release"}function s(p,h){if(!p)return[];const m=Array.isArray(p)?p:[p];return h.filter(v=>{const u=v.split(".").length===2?`${v}.0`:v;return m.some(w=>P0.satisfies(u,w))})}function a(p,h){if(!p)return[];const m=[];for(;p.startsWith("[")||p.startsWith("(");){let D=p.indexOf(")");const R=p.indexOf("]");if((D===-1||R!==-1&&R=${R[1]}`):(R=D.match(y))?I.push(`>${R[1]}`):(R=D.match(_))?I.push(`>${R[1]} <${R[2]}`):(R=D.match(b))?I.push(`>=${R[1]} <=${R[2]}`):(R=D.match(C))?I.push(`>${R[1]} <=${R[2]}`):(R=D.match(A))&&I.push(`>=${R[1]} <${R[2]}`)}return s(I,h)}const i=n.filter(p=>p.version_type==="release").map(p=>p.version),l={"META-INF/neoforge.mods.toml":p=>{const h=Ci(p,{joiner:` `});if(!h.mods||h.mods.length===0)return{};const m=Object.values(h.dependencies).flat().find(g=>g.modId==="neoforge");if(!m)return{};const v=m.versionRange.replace("-beta","").replace(/(\d+)(?:\.(\d+))?(?:\.(\d+)?)?/g,(g,y,_)=>`1.${y}${_?"."+_:""}`),u=a(v,i),w=h.mods[0].version;return{name:`${t.title} ${w}`,version_number:w,loaders:["neoforge"],version_type:r(w),game_versions:u}},"META-INF/mods.toml":async(p,h)=>{const m=Ci(p,{joiner:` `});if(m.mods&&m.mods.length>0){let v=m.mods[0].version;const u=h.file("META-INF/MANIFEST.MF");if(m.mods[0].version.includes("${file.jarVersion}")&&u!==null){const y=await u.async("text"),_=/Implementation-Version: (.*)$/m,b=y.match(_);b&&(v=v.replace("${file.jarVersion}",b[1]))}let w=[];const g=Object.values(m.dependencies).flat().filter(y=>y.modId==="minecraft");return g.length>0&&(w=a(g[0].versionRange,i)),{name:`${t.title} ${v}`,version_number:v,version_type:r(v),loaders:["forge"],game_versions:w}}else return{}},"mcmod.info":p=>{const h=JSON.parse(p);return{name:h.version?`${t.title} ${h.version}`:"",version_number:h.version,version_type:r(h.version),loaders:["forge"],game_versions:i.filter(m=>m.startsWith(h.mcversion))}},"fabric.mod.json":p=>{const h=JSON.parse(p);return{name:`${t.title} ${h.version}`,version_number:h.version,loaders:["fabric"],version_type:r(h.version),game_versions:h.depends?s(h.depends.minecraft,i):[]}},"quilt.mod.json":p=>{const h=JSON.parse(p);return{name:`${t.title} ${h.quilt_loader.version}`,version_number:h.quilt_loader.version,loaders:["quilt"],version_type:r(h.quilt_loader.version),game_versions:h.quilt_loader.depends?s(h.quilt_loader.depends.find(m=>m.id==="minecraft")?h.quilt_loader.depends.find(m=>m.id==="minecraft").versions:[],i):[]}},"plugin.yml":p=>{const h=Kr.load(p);return{name:`${t.title} ${h.version}`,version_number:h.version,version_type:r(h.version),loaders:[],game_versions:n.filter(m=>m.version.startsWith(h["api-version"])&&m.version_type==="release").map(m=>m.version)}},"paper-plugin.yml":p=>{const h=Kr.load(p);return{name:`${t.title} ${h.version}`,version_number:h.version,version_type:r(h.version),loaders:["paper"],game_versions:n.filter(m=>m.version.startsWith(h["api-version"])&&m.version_type==="release").map(m=>m.version)}},"bungee.yml":p=>{const h=Kr.load(p);return{name:`${t.title} ${h.version}`,version_number:h.version,version_type:r(h.version),loaders:["bungeecord"]}},"velocity-plugin.json":p=>{const h=JSON.parse(p);return{name:`${t.title} ${h.version}`,version_number:h.version,version_type:r(h.version),loaders:["velocity"]}},"modrinth.index.json":p=>{const h=JSON.parse(p),m=[];return"forge"in h.dependencies&&m.push("forge"),"neoforge"in h.dependencies&&m.push("neoforge"),"fabric-loader"in h.dependencies&&m.push("fabric"),"quilt-loader"in h.dependencies&&m.push("quilt"),{name:`${t.title} ${h.versionId}`,version_number:h.versionId,version_type:r(h.versionId),loaders:m,game_versions:n.filter(v=>v.version===h.dependencies.minecraft).map(v=>v.version)}},"pack.mcmeta":p=>{const h=JSON.parse(p);function m(w,g){const y=n.findIndex(A=>A.version===w),_=n.findIndex(A=>A.version===g),b=[],C=n[y].version_type==="release";for(let A=y;A>=_;A--)(n[A].version_type==="release"||!C)&&b.push(n[A].version);return b}const v=[];let u=[];if(t.actualProjectType==="mod")switch(v.push("datapack"),h.pack.pack_format){case 4:u=m("1.13","1.14.4");break;case 5:u=m("1.15","1.16.1");break;case 6:u=m("1.16.2","1.16.5");break;case 7:u=m("1.17","1.17.1");break;case 8:u=m("1.18","1.18.1");break;case 9:u.push("1.18.2");break;case 10:u=m("1.19","1.19.3");break;case 11:u=m("23w03a","23w05a");break;case 12:u.push("1.19.4");break}if(t.actualProjectType==="resourcepack")switch(v.push("minecraft"),h.pack.pack_format){case 1:u=m("1.6.1","1.8.9");break;case 2:u=m("1.9","1.10.2");break;case 3:u=m("1.11","1.12.2");break;case 4:u=m("1.13","1.14.4");break;case 5:u=m("1.15","1.16.1");break;case 6:u=m("1.16.2","1.16.5");break;case 7:u=m("1.17","1.17.1");break;case 8:u=m("1.18","1.18.2");break;case 9:u=m("1.19","1.19.2");break;case 11:u=m("22w42a","22w44a");break;case 12:u.push("1.19.3");break;case 13:u.push("1.19.4");break;case 14:u=m("23w14a","23w16a");break;case 15:u=m("1.20","1.20.1");break;case 16:u.push("23w31a");break;case 17:u=m("23w32a","1.20.2-pre1");break;case 18:u.push("1.20.2");break;case 19:u.push("23w42a");break;case 20:u=m("23w43a","23w44a");break;case 21:u=m("23w45a","23w46a");break;case 22:u=m("1.20.3","1.20.4");break;case 24:u=m("24w03a","24w04a");break;case 25:u=m("24w05a","24w05b");break;case 26:u=m("24w06a","24w07a");break;case 28:u=m("24w09a","24w10a");break;case 29:u.push("24w11a");break;case 30:u.push("24w12a");break;case 31:u=m("24w13a","1.20.5-pre3");break;case 32:u=m("1.20.5","1.20.6");break;case 33:u=m("24w18a","24w20a");break;case 34:u=m("1.21","1.21.1");break;case 35:u.push("24w33a");break;case 36:u=m("24w34a","24w35a");break;case 37:u.push("24w36a");break;case 38:u.push("24w37a");break;case 39:u=m("24w38a","24w39a");break;case 40:u.push("24w40a");break;case 41:u=m("1.21.2-pre1","1.21.2-pre2");break;case 42:u=m("1.21.2","1.21.3");break;case 43:u.push("24w44a");break;case 44:u.push("24w45a");break;case 45:u.push("24w46a");break;case 46:u.push("1.21.4");break}return{loaders:v,game_versions:u}}},c=await new Ri().loadAsync(e);for(const p in l){const h=c.file(p);if(h!==null){const m=await h.async("text");return l[p](m,c)}}},j0=async function(e,t,n,r,s,a){const i=t.version_number.match(/^\d/)?t.version_number:`1-${t.version_number}`,l=`mr_${e.slug.replace("-","_").replace(/\W/g,"")}`.substring(0,63),o=`${e.slug}_pack.png`,c=nc(),p={schemaVersion:1,id:l,version:i,name:e.title,description:e.description,authors:r.map(A=>A.name),contact:{homepage:`${c.public.siteUrl}/${e.project_type}/${e.slug??e.id}`},license:e.license.id,icon:o,environment:"*",depends:{"fabric-resource-loader-v0":"*"}},h={schema_version:1,quilt_loader:{group:"com.modrinth",id:l,version:i,metadata:{name:e.title,description:e.description,contributors:r.reduce((A,I)=>({...A,[I.name]:I.role}),{}),contact:{homepage:`${c.public.siteUrl}/${e.project_type}/${e.slug??e.id}`},icon:o},intermediate_mappings:"net.fabricmc:intermediary",depends:[{id:"quilt_resource_loader",versions:"*",unless:"fabric-resource-loader-v0"}]}},m=s.findIndex(A=>A.version==="1.18.2");let v=Number.MIN_VALUE;for(const A of t.game_versions){const I=s.findIndex(D=>D.version===A);I>v&&(v=I)}const u=vA.name).join(", "),displayURL:`${c.public.siteUrl}/${e.project_type}/${e.slug??e.id}`}]};e.source_url&&(h.quilt_loader.metadata.contact.sources=e.source_url,p.contact.sources=e.source_url),e.issues_url&&(h.quilt_loader.metadata.contact.issues=e.issues_url,p.contact.issues=e.issues_url,w.issueTrackerURL=e.issues_url);const g={...w,modLoader:"javafml",loaderVersion:"[1,)",mods:w.mods.map(A=>({...A,updateJSONURL:A.updateJSONURL+"?neoforge=only"}))},y=await(await fetch(n.url)).blob(),_=new Ri;if(await _.loadAsync(y),a.includes("fabric")&&_.file("fabric.mod.json",JSON.stringify(p)),a.includes("quilt")&&_.file("quilt.mod.json",JSON.stringify(h)),a.includes("forge")&&_.file("META-INF/mods.toml",Js.stringify(w,{newline:` `})),a.includes("neoforge")&&_.file("META-INF/neoforge.mods.toml",Js.stringify(g,{newline:` `})),!u&&a.includes("forge")){const A=new Uint8Array(await(await fetch("https://cdn.modrinth.com/wrapper/ModrinthWrapperRestiched.class")).arrayBuffer());let I="";for(let z=0;zA.file_type==="required-resource-pack"),C=b?await(await fetch(b.url)).blob():null;if(C){const A=new Ri;await A.loadAsync(C);for(const[I,D]of Object.entries(A.files))!_.file(I)&&!I.includes(".mcassetsroot")&&_.file(I,await D.async("uint8array"))}return _.file("pack.png")&&_.file(o,await _.file("pack.png").async("uint8array")),await _.generateAsync({type:"blob",mimeType:"application/java-archive"})},U0=Hc({components:{MarkdownEditor:Nc,Modal:Mc,FileInput:Uc,Checkbox:Lc,ChevronRightIcon:oc,Categories:zc,DownloadIcon:ac,EditIcon:lc,TrashIcon:cc,StarIcon:uc,FileIcon:fc,ReportIcon:dc,SaveIcon:hc,XIcon:pc,HashIcon:mc,PlusIcon:gc,TransferIcon:vc,UploadIcon:_c,Avatar:Oc,Badge:$c,Breadcrumbs:jc,CopyCode:xc,Multiselect:Pc,BoxIcon:yc,RightArrowIcon:wc,ConfirmModal:Rc,ButtonStyled:bc,AdPlaceholder:Bc},props:{project:{type:Object,default(){return{}}},versions:{type:Array,default(){return[]}},members:{type:Array,default(){return[{}]}},currentMember:{type:Object,default(){return null}},dependencies:{type:Object,default(){return{}}},resetProject:{type:Function,required:!0,default:()=>{}}},async setup(e){let t,n;const r=Ec(),s=kc(),a=([t,n]=_s(()=>Ac()),t=await t,n(),t),i=Ic(),l=Yc(),o=s.name.split("-"),c=o[o.length-1],p=[{display:"Required resource pack",value:"required-resource-pack"},{display:"Optional resource pack",value:"optional-resource-pack"}];let h=[],m=!1,v=!1,u={},w={},g={},y=null;if(c==="edit"&&(v=!0),s.params.version==="create"){if(m=!0,v=!0,u={id:"none",project_id:e.project.id,author_id:e.currentMember.user.id,name:"",version_number:"",changelog:"",date_published:Date.now(),downloads:0,version_type:"release",files:[],dependencies:[],game_versions:[],loaders:[],featured:!1},history.state&&history.state.newPrimaryFile){y=history.state.newPrimaryFile;try{const A=([t,n]=_s(()=>B0(y,e.project,i.value.gameVersions)),t=await t,n(),t);u={...u,...A}}catch(A){console.error("Error parsing version file data",A)}}}else if(s.params.version==="latest"){let A=e.versions;if(s.query.loader&&(A=A.filter(I=>I.loaders.includes(s.query.loader))),s.query.version&&(A=A.filter(I=>I.game_versions.includes(s.query.version))),A.length===0)throw ys({fatal:!0,statusCode:404,message:"No version matches the filters"});u=A.reduce((I,D)=>I.date_published>D.date_published?I:D)}else u=e.versions.find(A=>A.id===s.params.version),u||(u=e.versions.find(A=>A.displayUrlEnding===s.params.version));if(!u)throw ys({fatal:!0,statusCode:404,message:"Version not found"});u=JSON.parse(JSON.stringify(u)),w=u.files.find(A=>A.primary)??u.files[0],g=u.files.find(A=>A.file_type&&A.file_type.includes("resource-pack"));for(const A of u.dependencies)A.version=e.dependencies.versions.find(I=>I.id===A.version_id),A.version&&(A.project=e.dependencies.projects.find(I=>I.id===A.version.project_id)),A.project||(A.project=e.dependencies.projects.find(I=>I.id===A.project_id)),A.link=A.project?`/${A.project.project_type}/${A.project.slug??A.project.id}${A.version?`/version/${encodeURI(A.version.version_number)}`:""}`:"";h=u.files.map(A=>p.find(I=>I.value===A.file_type));const _=Fr(()=>`${m?"Create Version":u.name} - ${e.project.title}`),b=Fr(()=>`Download ${e.project.title} ${u.version_number} on Modrinth. Supports ${r.$formatVersion(u.game_versions)} ${u.loaders.map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" & ")}. Published on ${r.$dayjs(u.date_published).format("MMM D, YYYY")}. ${u.downloads} downloads.`),C=Fr(()=>e.versions.some(A=>A.featured));return Zc({title:_,description:b,ogTitle:_,ogDescription:b}),{auth:a,tags:i,flags:l,usesFeaturedVersions:C,fileTypes:dt(p),oldFileTypes:dt(h),isCreating:dt(m),isEditing:dt(v),version:dt(u),primaryFile:dt(w),alternateFile:dt(g),replaceFile:dt(y),uploadedImageIds:dt([])}},data(){return{dependencyAddMode:"project",newDependencyType:"required",newDependencyId:"",showSnapshots:!1,newFiles:[],deleteFiles:[],replaceFile:null,newFileTypes:[],packageLoaders:["forge","fabric","quilt","neoforge"],showKnownErrors:!1,shouldPreventActions:!1}},created(){const{addNotification:e}=Tc();this.addNotification=e},computed:{fieldErrors(){return this.version.version_number===""||this.version.game_versions.length===0||this.version.loaders.length===0&&this.project.project_type!=="resourcepack"||this.newFiles.length===0&&this.version.files.length===0&&!this.replaceFile},deps(){const e=["required","optional","incompatible","embedded"];return[...this.version.dependencies].sort((t,n)=>e.indexOf(t.dependency_type)-e.indexOf(n.dependency_type))}},watch:{"$route.path"(){const e=(this._.provides[ws]||this.$route).name.split("-"),t=e[e.length-1];this.isEditing=t==="edit"||(this._.provides[ws]||this.$route).params.version==="create"}},methods:{formatBytes:Fc,formatCategory:Dc,async onImageUpload(e){const t=await Vc(e,{context:"version"});return this.uploadedImageIds.push(t.id),this.uploadedImageIds=this.uploadedImageIds.slice(-10),t.url},getPreviousLink(){return this.$router.options.history.state.back&&this.$router.options.history.state.back.includes("/versions")?this.$router.options.history.state.back:`/${this.project.project_type}/${this.project.slug?this.project.slug:this.project.id}/versions`},getPreviousLabel(){return this.$router.options.history.state.back&&this.$router.options.history.state.back.endsWith("/versions")?"Back to versions":"All versions"},acceptFileFromProjectType:Wc,renderHighlightedString:Gc,async addDependency(e,t,n,r){try{if(e==="project"){const s=await rt(`project/${t}`);this.version.dependencies.some(a=>s.id===a.project_id)?this.addNotification({title:"Dependency already added",text:"You cannot add the same dependency twice.",type:"error"}):(this.version.dependencies.push({project:s,project_id:s.id,dependency_type:n,link:`/${s.project_type}/${s.slug??s.id}`}),this.$emit("update:dependencies",{projects:this.dependencies.projects.concat([s]),versions:this.dependencies.versions}))}else if(e==="version"){const s=await rt(`version/${this.newDependencyId}`),a=await rt(`project/${s.project_id}`);this.version.dependencies.some(i=>s.id===i.version_id)?this.addNotification({title:"Dependency already added",text:"You cannot add the same dependency twice.",type:"error"}):(this.version.dependencies.push({version:s,project:a,version_id:s.id,project_id:a.id,dependency_type:this.newDependencyType,link:`/${a.project_type}/${a.slug??a.id}/version/${encodeURI(s.version_number)}`}),this.$emit("update:dependencies",{projects:this.dependencies.projects.concat([a]),versions:this.dependencies.versions.concat([s])}))}this.newDependencyId=""}catch{r||this.addNotification({title:"Invalid Dependency",text:"The specified dependency could not be found",type:"error"})}},async saveEditedVersion(){if(Pn(),this.fieldErrors){this.showKnownErrors=!0,Vt();return}try{if(this.newFiles.length>0){const t=new FormData,n=this.newFiles.map((r,s)=>`${r.name}-${s}`);t.append("data",JSON.stringify({file_types:this.newFileTypes.reduce((r,s,a)=>({...r,[n[a]]:s?s.value:null}),{})}));for(let r=0;r({algorithm:"sha1",hash:this.version.files[n].hashes.sha1,file_type:t?t.value:null}))};this.project.project_type==="modpack"&&delete e.dependencies,await rt(`version/${this.version.id}`,{method:"PATCH",body:e});for(const t of this.deleteFiles)await rt(`version_file/${t}?version_id=${this.version.id}`,{method:"DELETE"});await this.resetProjectVersions(),await this.$router.replace(`/${this.project.project_type}/${this.project.slug?this.project.slug:this.project.id}/version/${encodeURI(this.versions.find(t=>t.id===this.version.id).displayUrlEnding)}`)}catch(e){this.addNotification({title:"An error occurred",text:e.data?e.data.description:e,type:"error"}),window.scrollTo({top:0,behavior:"smooth"})}Vt()},reportVersion:Wo,async createVersion(){if(this.shouldPreventActions=!0,Pn(),this.fieldErrors){this.showKnownErrors=!0,this.shouldPreventActions=!1,Vt();return}try{await this.createVersionRaw(this.version)}catch(e){this.addNotification({title:"An error occurred",text:e.data?e.data.description:e,type:"error"}),window.scrollTo({top:0,behavior:"smooth"})}Vt(),this.shouldPreventActions=!1},async createVersionRaw(e){const t=new FormData,n=this.newFiles.map((a,i)=>`${a.name}-${i}`);this.replaceFile&&n.unshift(this.replaceFile.name.concat("-primary")),this.project.project_type==="resourcepack"&&(e.loaders=["minecraft"]);const r={project_id:e.project_id,file_parts:n,version_number:e.version_number,version_title:e.name||e.version_number,version_body:e.changelog,dependencies:e.dependencies,game_versions:e.game_versions,loaders:e.loaders,release_channel:e.version_type,featured:e.featured,file_types:this.newFileTypes.reduce((a,i,l)=>({...a,[n[this.replaceFile?l+1:l]]:i?i.value:null}),{})};t.append("data",JSON.stringify(r)),this.replaceFile&&t.append(this.replaceFile.name.concat("-primary"),new Blob([this.replaceFile]),this.replaceFile.name);for(let a=0;ae.deleteVersion())},null,512)):he("",!0),e.auth.user&&e.currentMember?(ee(),Ie(h,{key:1,ref:"modal_package_mod",header:"Package data pack"},{default:_e(()=>[te("div",z0,[t[28]||(t[28]=te("div",{class:"markdown-body"},[te("p",null," Package your data pack as a mod. This will create a new version with support for the selected mod loaders. You will be redirected to the new version and can edit it to your liking. ")],-1)),t[29]||(t[29]=te("label",{for:"package-mod-loaders"},[te("span",{class:"label__title"},"Mod loaders"),te("span",{class:"label__description"}," The mod loaders you would like to package your data pack for. ")],-1)),ce(l,{id:"package-mod-loaders",modelValue:e.packageLoaders,"onUpdate:modelValue":t[1]||(t[1]=S=>e.packageLoaders=S),options:["fabric","forge","quilt","neoforge"],"custom-label":S=>S.charAt(0).toUpperCase()+S.slice(1),multiple:!0,searchable:!1,"show-no-results":!1,"show-labels":!1,placeholder:"Choose loaders...","open-direction":"top"},null,8,["modelValue","custom-label"]),te("div",V0,[ce(c,null,{default:_e(()=>[te("button",{onClick:t[2]||(t[2]=S=>e.$refs.modal_package_mod.hide())},[ce(o,{"aria-hidden":"true"}),t[26]||(t[26]=Se(" Cancel "))])]),_:1}),ce(c,{color:"brand"},{default:_e(()=>[te("button",{onClick:t[3]||(t[3]=(...S)=>e.createDataPackVersion&&e.createDataPackVersion(...S))},[ce(p,{"aria-hidden":"true"}),t[27]||(t[27]=Se(" Begin packaging data pack "))])]),_:1})])])]),_:1},512)):he("",!0),te("div",W0,[ce(m,{"current-title":e.version.name,"link-stack":[{href:e.getPreviousLink(),label:e.getPreviousLabel()}]},null,8,["current-title","link-stack"]),te("div",G0,[e.isEditing?mn((ee(),ae("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=S=>e.version.name=S),type:"text",placeholder:"Enter a version title...",maxlength:"256"},null,512)),[[Rr,e.version.name]]):he("",!0),te("h2",{class:Et({"sr-only":e.isEditing})},be(e.version.name),3)]),e.fieldErrors&&e.showKnownErrors?(ee(),ae("div",H0,[te("ul",null,[e.version.version_number===""?(ee(),ae("li",Y0,"Your version must have a version number.")):he("",!0),e.version.game_versions.length===0?(ee(),ae("li",Z0," Your version must have the supported Minecraft versions selected. ")):he("",!0),e.newFiles.length===0&&e.version.files.length===0&&!e.replaceFile?(ee(),ae("li",q0," Your version must have a file uploaded. ")):he("",!0),e.version.loaders.length===0&&e.project.project_type!=="resourcepack"?(ee(),ae("li",X0," Your version must have the supported mod loaders selected. ")):he("",!0)])])):he("",!0),e.isCreating?(ee(),ae("div",K0,[ce(c,{color:"brand"},{default:_e(()=>[te("button",{disabled:e.shouldPreventActions,onClick:t[5]||(t[5]=(...S)=>e.createVersion&&e.createVersion(...S))},[ce(v,{"aria-hidden":"true"}),t[30]||(t[30]=Se(" Create "))],8,J0)]),_:1}),ce(c,null,{default:_e(()=>[e.auth.user?(ee(),Ie(u,{key:0,to:`/${e.project.project_type}/${e.project.slug?e.project.slug:e.project.id}/versions`},{default:_e(()=>[ce(o,{"aria-hidden":"true"}),t[31]||(t[31]=Se(" Cancel "))]),_:1},8,["to"])):he("",!0)]),_:1})])):e.isEditing?(ee(),ae("div",Q0,[ce(c,{color:"brand"},{default:_e(()=>[te("button",{disabled:e.shouldPreventActions,onClick:t[6]||(t[6]=(...S)=>e.saveEditedVersion&&e.saveEditedVersion(...S))},[ce(w,{"aria-hidden":"true"}),t[32]||(t[32]=Se(" Save "))],8,e1)]),_:1}),e.usesFeaturedVersions?(ee(),Ie(c,{key:0},{default:_e(()=>[mn((ee(),ae("button",{onClick:t[7]||(t[7]=S=>e.version.featured=!e.version.featured)},[ce(g,{"aria-hidden":"true"}),e.version.featured?(ee(),ae(ft,{key:1},[Se(" Unfeature version (deprecated)")],64)):(ee(),ae(ft,{key:0},[Se(" Feature version (deprecated)")],64))])),[[B,"Featured versions are being phased out. If you're still using this for something in the API, seek an alternative soon."]])]),_:1})):he("",!0),ce(c,null,{default:_e(()=>[e.currentMember?(ee(),Ie(u,{key:0,class:"action",to:`/${e.project.project_type}/${e.project.slug?e.project.slug:e.project.id}/version/${encodeURI(e.version.displayUrlEnding)}`},{default:_e(()=>[ce(o,{"aria-hidden":"true"}),t[33]||(t[33]=Se(" Discard changes "))]),_:1},8,["to"])):he("",!0)]),_:1})])):(ee(),ae("div",t1,[e.primaryFile?(ee(),Ie(c,{key:0,color:"brand"},{default:_e(()=>[mn((ee(),ae("a",{href:e.primaryFile.url,onClick:t[8]||(t[8]=S=>e.emit("onDownload"))},[ce(y,{"aria-hidden":"true"}),t[34]||(t[34]=Se(" Download "))],8,n1)),[[B,e.primaryFile.filename+" ("+e.formatBytes(e.primaryFile.size)+")"]])]),_:1})):he("",!0),e.auth.user?e.currentMember?he("",!0):(ee(),Ie(c,{key:2},{default:_e(()=>[te("button",{onClick:t[9]||(t[9]=()=>("reportVersion"in e?e.reportVersion:Cc(Wo))(e.version.id))},[ce(_,{"aria-hidden":"true"}),t[36]||(t[36]=Se(" Report "))])]),_:1})):(ee(),Ie(c,{key:1},{default:_e(()=>[ce(u,{to:"/auth/sign-in"},{default:_e(()=>[ce(_,{"aria-hidden":"true"}),t[35]||(t[35]=Se(" Report "))]),_:1})]),_:1})),ce(c,null,{default:_e(()=>[e.currentMember?(ee(),Ie(u,{key:0,class:"action",to:`/${e.project.project_type}/${e.project.slug?e.project.slug:e.project.id}/version/${encodeURI(e.version.displayUrlEnding)}/edit`},{default:_e(()=>[ce(b,{"aria-hidden":"true"}),t[37]||(t[37]=Se(" Edit "))]),_:1},8,["to"])):he("",!0)]),_:1}),ce(c,null,{default:_e(()=>[e.currentMember&&e.version.loaders.some(S=>e.tags.loaderData.dataPackLoaders.includes(S))?(ee(),ae("button",{key:0,onClick:t[10]||(t[10]=S=>e.$refs.modal_package_mod.show())},[ce(C,{"aria-hidden":"true"}),t[38]||(t[38]=Se(" Package as mod "))])):he("",!0)]),_:1}),ce(c,null,{default:_e(()=>[e.currentMember?(ee(),ae("button",{key:0,onClick:t[11]||(t[11]=S=>e.$refs.modal_confirm.show())},[ce(A,{"aria-hidden":"true"}),t[39]||(t[39]=Se(" Delete "))])):he("",!0)]),_:1})]))]),te("div",r1,[t[40]||(t[40]=te("h3",null,"Changelog",-1)),e.isEditing?(ee(),ae("div",i1,[ce(I,{modelValue:e.version.changelog,"onUpdate:modelValue":t[12]||(t[12]=S=>e.version.changelog=S),"on-image-upload":e.onImageUpload},null,8,["modelValue","on-image-upload"])])):(ee(),ae("div",{key:1,class:"markdown-body",innerHTML:e.version.changelog?e.renderHighlightedString(e.version.changelog):"No changelog specified."},null,8,s1))]),e.deps.length>0||e.isEditing&&e.project.project_type!=="modpack"?(ee(),ae("div",o1,[t[44]||(t[44]=te("h3",null,"Dependencies",-1)),(ee(!0),ae(ft,null,Dn(e.deps.filter(S=>!S.file_name),(S,P)=>(ee(),ae("div",{key:P,class:Et(["dependency",{"button-transparent":!e.isEditing}]),onClick:q=>e.isEditing?{}:e.$router.push(S.link)},[ce(D,{src:S.project?S.project.icon_url:null,alt:"dependency-icon",size:"sm"},null,8,["src"]),e.isEditing?(ee(),ae("div",c1,[te("span",u1,be(S.project?S.project.title:"Unknown Project"),1),S.version?(ee(),ae("span",{key:0,class:Et(["dep-type",S.dependency_type])}," Version "+be(S.version.version_number)+" is "+be(S.dependency_type),3)):(ee(),ae("span",{key:1,class:Et(["dep-type",S.dependency_type])},be(S.dependency_type),3))])):(ee(),Ie(u,{key:0,to:S.link,class:"info"},{default:_e(()=>[te("span",l1,be(S.project?S.project.title:"Unknown Project"),1),S.version?(ee(),ae("span",{key:0,class:Et(["dep-type",S.dependency_type])}," Version "+be(S.version.version_number)+" is "+be(S.dependency_type),3)):(ee(),ae("span",{key:1,class:Et(["dep-type",S.dependency_type])},be(S.dependency_type),3))]),_:2},1032,["to"])),e.isEditing&&e.project.project_type!=="modpack"?(ee(),Ie(c,{key:2},{default:_e(()=>[te("button",{onClick:q=>e.version.dependencies.splice(P,1)},[ce(A,{"aria-hidden":"true"}),t[41]||(t[41]=Se(" Remove "))],8,f1)]),_:2},1024)):he("",!0)],10,a1))),128)),(ee(!0),ae(ft,null,Dn(e.deps.filter(S=>S.file_name),(S,P)=>(ee(),ae("div",{key:P,class:"dependency"},[ce(D,{src:null,alt:"dependency-icon",size:"sm"}),te("div",d1,[te("span",h1,be(S.file_name),1),te("span",{class:Et(["dep-type",S.dependency_type])},"Added via overrides",2)])]))),128)),e.isEditing&&e.project.project_type!=="modpack"?(ee(),ae("div",p1,[t[43]||(t[43]=te("h4",null,"Add dependency",-1)),te("div",m1,[ce(R,{modelValue:e.dependencyAddMode,"onUpdate:modelValue":t[13]||(t[13]=S=>e.dependencyAddMode=S),class:"input",options:["project","version"],"custom-label":S=>S.charAt(0).toUpperCase()+S.slice(1),searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!1},null,8,["modelValue","custom-label"]),mn(te("input",{"onUpdate:modelValue":t[14]||(t[14]=S=>e.newDependencyId=S),type:"text",placeholder:`Enter the ${e.dependencyAddMode} ID${e.dependencyAddMode==="project"?"/slug":""}`,onKeyup:t[15]||(t[15]=sc(S=>e.addDependency(e.dependencyAddMode,e.newDependencyId,e.newDependencyType),["enter"]))},null,40,g1),[[Rr,e.newDependencyId]]),ce(R,{modelValue:e.newDependencyType,"onUpdate:modelValue":t[16]||(t[16]=S=>e.newDependencyType=S),class:"input",options:["required","optional","incompatible","embedded"],"custom-label":S=>S.charAt(0).toUpperCase()+S.slice(1),searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!0},null,8,["modelValue","custom-label"])]),te("div",v1,[ce(c,{color:"brand"},{default:_e(()=>[te("button",{onClick:t[17]||(t[17]=S=>e.addDependency(e.dependencyAddMode,e.newDependencyId,e.newDependencyType))},[ce(v,{"aria-hidden":"true"}),t[42]||(t[42]=Se(" Add dependency "))])]),_:1})])])):he("",!0)])):he("",!0),te("div",_1,[t[49]||(t[49]=te("h3",null,"Files",-1)),e.isEditing&&e.replaceFile?(ee(),ae("div",y1,[ce(z,{"aria-hidden":"true"}),te("span",w1,[te("strong",null,be(e.replaceFile.name),1),te("span",b1,"("+be(e.formatBytes(e.replaceFile.size))+")",1)]),ce(H,{class:"iconified-button raised-button",prompt:"Replace","aria-label":"Replace",accept:e.acceptFileFromProjectType(e.project.project_type),"max-size":524288e3,"should-always-reset":"",onChange:t[18]||(t[18]=S=>e.replaceFile=S[0])},{default:_e(()=>[ce(U,{"aria-hidden":"true"})]),_:1},8,["accept"])])):he("",!0),(ee(!0),ae(ft,null,Dn(e.version.files,(S,P)=>(ee(),ae("div",{key:S.hashes.sha1,class:Et({file:!0,primary:e.primaryFile.hashes.sha1===S.hashes.sha1})},[ce(z,{"aria-hidden":"true"}),te("span",E1,[te("strong",null,be(S.filename),1),te("span",k1,"("+be(e.formatBytes(S.size))+")",1),e.primaryFile.hashes.sha1===S.hashes.sha1?(ee(),ae("span",A1," Primary ")):S.file_type==="required-resource-pack"&&!e.isEditing?(ee(),ae("span",I1," Required resource pack ")):S.file_type==="optional-resource-pack"&&!e.isEditing?(ee(),ae("span",T1," Optional resource pack ")):he("",!0)]),e.version.loaders.some(q=>e.tags.loaderData.dataPackLoaders.includes(q))&&e.isEditing&&e.primaryFile.hashes.sha1!==S.hashes.sha1?(ee(),Ie(l,{key:0,modelValue:e.oldFileTypes[P],"onUpdate:modelValue":q=>e.oldFileTypes[P]=q,class:"raised-multiselect",placeholder:"Select file type",options:e.fileTypes,"track-by":"value",label:"display",searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!1},null,8,["modelValue","onUpdate:modelValue","options"])):he("",!0),e.isEditing?(ee(),Ie(c,{key:1},{default:_e(()=>[te("button",{class:"raised-button",disabled:e.primaryFile.hashes.sha1===S.hashes.sha1,onClick:()=>{e.deleteFiles.push(S.hashes.sha1),e.version.files.splice(P,1),e.oldFileTypes.splice(P,1)}},[ce(A,{"aria-hidden":"true"}),t[45]||(t[45]=Se(" Remove "))],8,S1)]),_:2},1024)):(ee(),Ie(c,{key:2},{default:_e(()=>[te("a",{href:S.url,class:"raised-button",title:`Download ${S.filename}`,tabindex:"0"},[ce(y,{"aria-hidden":"true"}),t[46]||(t[46]=Se(" Download "))],8,C1)]),_:2},1024))],2))),128)),e.isEditing?(ee(),ae(ft,{key:1},[(ee(!0),ae(ft,null,Dn(e.newFiles,(S,P)=>(ee(),ae("div",{key:P,class:"file"},[ce(z,{"aria-hidden":"true"}),te("span",O1,[te("strong",null,be(S.name),1),te("span",$1,"("+be(e.formatBytes(S.size))+")",1)]),e.version.loaders.some(q=>e.tags.loaderData.dataPackLoaders.includes(q))?(ee(),Ie(l,{key:0,modelValue:e.newFileTypes[P],"onUpdate:modelValue":q=>e.newFileTypes[P]=q,class:"raised-multiselect",placeholder:"Select file type",options:e.fileTypes,"track-by":"value",label:"display",searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!1},null,8,["modelValue","onUpdate:modelValue","options"])):he("",!0),ce(c,null,{default:_e(()=>[te("button",{class:"raised-button",onClick:()=>{e.newFiles.splice(P,1),e.newFileTypes.splice(P,1)}},[ce(A,{"aria-hidden":"true"}),t[47]||(t[47]=Se(" Remove "))],8,L1)]),_:2},1024)]))),128)),te("div",x1,[t[48]||(t[48]=te("h4",null,"Upload additional files",-1)),e.version.loaders.some(S=>e.tags.loaderData.dataPackLoaders.includes(S))?(ee(),ae("span",N1," Used for additional files such as required/optional resource packs ")):(ee(),ae("span",R1,"Used for files such as sources or Javadocs.")),ce(H,{prompt:"Drag and drop to upload or click to select","aria-label":"Upload additional file",multiple:"","long-style":"",accept:e.acceptFileFromProjectType(e.project.project_type),"max-size":524288e3,onChange:t[19]||(t[19]=S=>S.forEach(P=>{e.newFiles.push(P),e.newFileTypes.push(null)}))},{default:_e(()=>[ce(oe,{"aria-hidden":"true"})]),_:1},8,["accept"])])],64)):he("",!0)]),te("div",F1,[te("div",D1,[t[60]||(t[60]=te("h3",null,"Metadata",-1)),te("div",null,[t[50]||(t[50]=te("h4",null,"Release channel",-1)),e.isEditing?(ee(),Ie(R,{key:0,modelValue:e.version.version_type,"onUpdate:modelValue":t[20]||(t[20]=S=>e.version.version_type=S),class:"input",placeholder:"Select one",options:["release","beta","alpha"],"custom-label":S=>S.charAt(0).toUpperCase()+S.slice(1),searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!1},null,8,["modelValue","custom-label"])):(ee(),ae(ft,{key:1},[e.version.version_type==="release"?(ee(),Ie(T,{key:0,class:"value",type:"release",color:"green"})):e.version.version_type==="beta"?(ee(),Ie(T,{key:1,class:"value",type:"beta",color:"orange"})):e.version.version_type==="alpha"?(ee(),Ie(T,{key:2,class:"value",type:"alpha",color:"red"})):he("",!0)],64))]),te("div",null,[t[52]||(t[52]=te("h4",null,"Version number",-1)),e.isEditing?(ee(),ae("div",P1,[t[51]||(t[51]=te("label",{class:"hidden",for:"version-number"},"Version number",-1)),ce(O,{"aria-hidden":"true"}),mn(te("input",{id:"version-number","onUpdate:modelValue":t[21]||(t[21]=S=>e.version.version_number=S),type:"text",autocomplete:"off",maxlength:"32"},null,512),[[Rr,e.version.version_number]])])):(ee(),ae("span",B1,be(e.version.version_number),1))]),e.project.project_type!=="resourcepack"?(ee(),ae("div",j1,[t[53]||(t[53]=te("h4",null,"Loaders",-1)),e.isEditing?(ee(),Ie(R,{key:0,modelValue:e.version.loaders,"onUpdate:modelValue":t[22]||(t[22]=S=>e.version.loaders=S),options:e.tags.loaders.filter(S=>S.supported_project_types.includes(e.project.actualProjectType.toLowerCase())).map(S=>S.name),"custom-label":e.formatCategory,loading:e.tags.loaders.length===0,multiple:!0,searchable:!0,"show-no-results":!1,"close-on-select":!1,"clear-on-select":!1,"show-labels":!1,"hide-selected":!0,placeholder:"Choose loaders..."},null,8,["modelValue","options","custom-label","loading"])):(ee(),Ie(f,{key:1,categories:e.version.loaders,type:e.project.actualProjectType},null,8,["categories","type"]))])):he("",!0),te("div",null,[t[54]||(t[54]=te("h4",null,"Game versions",-1)),e.isEditing?(ee(),ae(ft,{key:0},[ce(l,{modelValue:e.version.game_versions,"onUpdate:modelValue":t[23]||(t[23]=S=>e.version.game_versions=S),options:e.showSnapshots?e.tags.gameVersions.map(S=>S.version):e.tags.gameVersions.filter(S=>S.version_type==="release").map(S=>S.version),loading:e.tags.gameVersions.length===0,multiple:!0,searchable:!0,"show-no-results":!1,"close-on-select":!1,"clear-on-select":!1,"show-labels":!1,"hide-selected":!0,"custom-label":S=>S,placeholder:"Choose versions..."},null,8,["modelValue","options","loading","custom-label"]),ce(N,{modelValue:e.showSnapshots,"onUpdate:modelValue":t[24]||(t[24]=S=>e.showSnapshots=S),label:"Show all versions",description:"Show all versions",style:{"margin-top":"0.5rem"},border:!1},null,8,["modelValue"])],64)):(ee(),ae("span",U1,be(e.$formatVersion(e.version.game_versions)),1))]),e.isEditing?he("",!0):(ee(),ae("div",M1,[t[55]||(t[55]=te("h4",null,"Downloads",-1)),te("span",null,be(e.version.downloads),1)])),e.isEditing?he("",!0):(ee(),ae("div",z1,[t[56]||(t[56]=te("h4",null,"Publication date",-1)),te("span",null,be(e.$dayjs(e.version.date_published).format("MMMM D, YYYY [at] h:mm A")),1)])),!e.isEditing&&e.version.author?(ee(),ae("div",V1,[t[57]||(t[57]=te("h4",null,"Publisher",-1)),te("div",{class:"team-member columns button-transparent",onClick:t[25]||(t[25]=S=>e.$router.push("/user/"+e.version.author.user.username))},[ce(D,{src:e.version.author.avatar_url,alt:e.version.author.user.username,size:"sm",circle:""},null,8,["src","alt"]),te("div",W1,[ce(u,{to:"/user/"+e.version.author.user.username,class:"name"},{default:_e(()=>[te("p",null,be(e.version.author.name),1)]),_:1},8,["to"]),e.version.author.role?(ee(),ae("p",G1,be(e.version.author.role),1)):e.version.author_id==="GVFjtWTf"?(ee(),ae("p",H1,"Archivist")):he("",!0)])])])):he("",!0),e.isEditing?he("",!0):(ee(),ae("div",Y1,[t[58]||(t[58]=te("h4",null,"Version ID",-1)),ce(W,{text:e.version.id},null,8,["text"])])),!e.isEditing&&e.flags.developerMode?(ee(),ae("div",Z1,[t[59]||(t[59]=te("h4",null,"Maven coordinates",-1)),te("div",q1,[ce(W,{text:`maven.modrinth:${e.project.id}:${e.version.id}`},null,8,["text"])])])):he("",!0)])])])):he("",!0)}const Nv=rc(U0,[["render",X1],["__scopeId","data-v-7a9bd08b"]]);export{Nv as default};