Files
2026-04-07 14:50:23 +09:00

47 lines
121 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
exports.id = 284;
exports.ids = [284];
exports.modules = {
/***/ 13284:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oa=__webpack_require__(57310),Ee=__webpack_require__(57147),Zr=__webpack_require__(71017),_a=__webpack_require__(73837);function Ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=Ta(Zr);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yr={exports:{}},_r,Xn;function Ra(){if(Xn)return _r;Xn=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;_r=function(f,h){h=h||{};var m=typeof f;if(m==="string"&&f.length>0)return o(f);if(m==="number"&&isFinite(f))return h.long?a(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function o(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var m=parseFloat(h[1]),d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*i;case"days":case"day":case"d":return m*n;case"hours":case"hour":case"hrs":case"hr":case"h":return m*r;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(f){var h=Math.abs(f);return h>=n?Math.round(f/n)+"d":h>=r?Math.round(f/r)+"h":h>=t?Math.round(f/t)+"m":h>=e?Math.round(f/e)+"s":f+"ms"}function a(f){var h=Math.abs(f);return h>=n?u(f,h,n,"day"):h>=r?u(f,h,r,"hour"):h>=t?u(f,h,t,"minute"):h>=e?u(f,h,e,"second"):f+" ms"}function u(f,h,m,d){var v=h>=m*1.5;return Math.round(f/m)+" "+d+(v?"s":"")}return _r}function Ia(e){r.debug=r,r.default=r,r.coerce=a,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Ra(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,m=null,d,v;function _(...A){if(!_.enabled)return;const M=_,te=Number(new Date),j=te-(h||te);M.diff=j,M.prev=h,M.curr=te,h=te,A[0]=r.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let oe=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(ae,Ue)=>{if(ae==="%%")return"%";oe++;const we=r.formatters[Ue];if(typeof we=="function"){const Ge=A[oe];ae=we.call(M,Ge),A.splice(oe,1),oe--}return ae}),r.formatArgs.call(M,A),(M.log||r.log).apply(M,A)}return _.namespace=f,_.useColors=r.useColors(),_.color=r.selectColor(f),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==r.namespaces&&(d=r.namespaces,v=r.enabled(f)),v),set:A=>{m=A}}),typeof r.init=="function"&&r.init(_),_}function n(f,h){const m=r(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h;const m=(typeof f=="string"?f:"").split(/[\s,]+/),d=m.length;for(h=0;h<d;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function s(){const f=[...r.names.map(c),...r.skips.map(c).map(h=>"-"+h)].join(",");return r.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(f))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(f))return!0;return!1}function c(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function a(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var Fa=Ia;(function(e,t){t.formatArgs=n,t.save=i,t.load=s,t.useColors=r,t.storage=o(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;a.splice(1,0,u,"color: inherit");let f=0,h=0;a[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(h=f))}),a.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function i(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function s(){let a;try{a=t.storage.getItem("debug")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function o(){try{return localStorage}catch{}}e.exports=Fa(t);const{formatters:c}=e.exports;c.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(Yr,Yr.exports);var or=Yr.exports;const Ce=sr(or);var Vr={exports:{}};const Na="2.0.0",zi=256,La=Number.MAX_SAFE_INTEGER||9007199254740991,ja=16,Da=zi-6,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ar={MAX_LENGTH:zi,MAX_SAFE_COMPONENT_LENGTH:ja,MAX_SAFE_BUILD_LENGTH:Da,MAX_SAFE_INTEGER:La,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:Na,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Ma=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var lr=Ma;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=ar,s=lr;t=e.exports={};const o=t.re=[],c=t.safeRe=[],a=t.src=[],u=t.t={};let f=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[h,n]],d=_=>{for(const[A,M]of m)_=_.split(`${A}*`).join(`${A}{0,${M}}`).split(`${A}+`).join(`${A}{1,${M}}`);return _},v=(_,A,M)=>{const te=d(A),j=f++;s(_,j,A),u[_]=j,a[j]=A,o[j]=new RegExp(A,M?"g":void 0),c[j]=new RegExp(te,M?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),v("MAINVERSION",`(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[u.NUMERICIDENTIFIER]}|${a[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[u.NUMERICIDENTIFIERLOOSE]}|${a[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${a[u.PRERELEASEIDENTIFIER]}(?:\\.${a[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${h}+`),v("BUILD",`(?:\\+(${a[u.BUILDIDENTIFIER]}(?:\\.${a[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[u.MAINVERSION]}${a[u.PRERELEASE]}?${a[u.BUILD]}?`),v("FULL",`^${a[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[u.MAINVERSIONLOOSE]}${a[u.PRERELEASELOOSE]}?${a[u.BUILD]}?`),v("LOOSE",`^${a[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:${a[u.PRERELEASE]})?${a[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:${a[u.PRERELEASELOOSE]})?${a[u.BUILD]}?)?)?`),v("XRANGE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${a[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[u.COERCEPLAIN]+`(?:${a[u.PRERELEASE]})?(?:${a[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[u.COERCE],!0),v("COERCERTLFULL",a[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[u.LONECARET]}${a[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[u.LONECARET]}${a[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[u.GTLT]}\\s*(${a[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]}|${a[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[u.XRANGEPLAIN]})\\s+-\\s+(${a[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Vr,Vr.exports);var bt=Vr.exports;const ka=Object.freeze({loose:!0}),Ua=Object.freeze({}),Ga=e=>e?typeof e!="object"?ka:e:Ua;var Qr=Ga;const Wn=/^[0-9]+$/,Ji=(e,t)=>{const r=Wn.test(e),n=Wn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Ha=(e,t)=>Ji(t,e);var Zi={compareIdentifiers:Ji,rcompareIdentifiers:Ha};const Bt=lr,{MAX_LENGTH:Kn,MAX_SAFE_INTEGER:Yt}=ar,{safeRe:zn,t:Jn}=bt,Ba=Qr,{compareIdentifiers:qe}=Zi;let Ya=class le{constructor(t,r){if(r=Ba(r),t instanceof le){if(t.loose===!!r.loose&&t.includePrerelease===!!r.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>Kn)throw new TypeError(`version is longer than ${Kn} characters`);Bt("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?zn[Jn.LOOSE]:zn[Jn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Yt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Yt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Yt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<Yt)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Bt("SemVer.compare",this.version,this.options,t),!(t instanceof le)){if(typeof t=="string"&&t===this.version)return 0;t=new le(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof le||(t=new le(t,this.options)),qe(this.major,t.major)||qe(this.minor,t.minor)||qe(this.patch,t.patch)}comparePre(t){if(t instanceof le||(t=new le(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(Bt("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}compareBuild(t){t instanceof le||(t=new le(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Bt("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),qe(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var X=Ya;const Zn=X,Va=(e,t,r=!1)=>{if(e instanceof Zn)return e;try{return new Zn(e,t)}catch(n){if(!r)return null;throw n}};var at=Va;const qa=at,Xa=(e,t)=>{const r=qa(e,t);return r?r.version:null};var Wa=Xa;const Ka=at,za=(e,t)=>{const r=Ka(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Ja=za;const Qn=X,Za=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Qn(e instanceof Qn?e.version:e,r).inc(t,n,i).version}catch{return null}};var Qa=Za;const ei=at,el=(e,t)=>{const r=ei(e,null,!0),n=ei(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,c=s?n:r,a=!!o.prerelease.length;if(!!c.prerelease.length&&!a)return!c.patch&&!c.minor?"major":o.patch?"patch":o.minor?"minor":"major";const f=a?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var tl=el;const rl=X,nl=(e,t)=>new rl(e,t).major;var il=nl;const sl=X,ol=(e,t)=>new sl(e,t).minor;var al=ol;const ll=X,cl=(e,t)=>new ll(e,t).patch;var ul=cl;const fl=at,hl=(e,t)=>{const r=fl(e,t);return r&&r.prerelease.length?r.prerelease:null};var pl=hl;const ti=X,dl=(e,t,r)=>new ti(e,r).compare(new ti(t,r));var ie=dl;const ml=ie,gl=(e,t,r)=>ml(t,e,r);var vl=gl;const yl=ie,El=(e,t)=>yl(e,t,!0);var xl=El;const ri=X,$l=(e,t,r)=>{const n=new ri(e,r),i=new ri(t,r);return n.compare(i)||n.compareBuild(i)};var en=$l;const Al=en,bl=(e,t)=>e.sort((r,n)=>Al(r,n,t));var Cl=bl;const wl=en,Sl=(e,t)=>e.sort((r,n)=>wl(n,r,t));var Ol=Sl;const _l=ie,Tl=(e,t,r)=>_l(e,t,r)>0;var cr=Tl;const Rl=ie,Il=(e,t,r)=>Rl(e,t,r)<0;var tn=Il;const Fl=ie,Nl=(e,t,r)=>Fl(e,t,r)===0;var Qi=Nl;const Ll=ie,jl=(e,t,r)=>Ll(e,t,r)!==0;var es=jl;const Dl=ie,Pl=(e,t,r)=>Dl(e,t,r)>=0;var rn=Pl;const Ml=ie,kl=(e,t,r)=>Ml(e,t,r)<=0;var nn=kl;const Ul=Qi,Gl=es,Hl=cr,Bl=rn,Yl=tn,Vl=nn,ql=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Ul(e,r,n);case"!=":return Gl(e,r,n);case">":return Hl(e,r,n);case">=":return Bl(e,r,n);case"<":return Yl(e,r,n);case"<=":return Vl(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var ts=ql;const Xl=X,Wl=at,{safeRe:Vt,t:qt}=bt,Kl=(e,t)=>{if(e instanceof Xl)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Vt[qt.COERCEFULL]:Vt[qt.COERCE]);else{const a=t.includePrerelease?Vt[qt.COERCERTLFULL]:Vt[qt.COERCERTL];let u;for(;(u=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),a.lastIndex=u.index+u[1].length+u[2].length;a.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",c=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Wl(`${n}.${i}.${s}${o}${c}`,t)};var zl=Kl;let Jl=class{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};var Zl=Jl,Tr,ni;function se(){if(ni)return Tr;ni=1;const e=/\s+/g;class t{constructor(y,S){if(S=i(S),y instanceof t)return y.loose===!!S.loose&&y.includePrerelease===!!S.includePrerelease?y:new t(y.raw,S);if(y instanceof s)return this.raw=y.value,this.set=[[y]],this.formatted=void 0,this;if(this.options=S,this.loose=!!S.loose,this.includePrerelease=!!S.includePrerelease,this.raw=y.trim().replace(e," "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(O=>!_(O[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const O of this.set)if(O.length===1&&A(O[0])){this.set=[O];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let y=0;y<this.set.length;y++){y>0&&(this.formatted+="||");const S=this.set[y];for(let b=0;b<S.length;b++)b>0&&(this.formatted+=" "),this.formatted+=S[b].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(y){const b=((this.options.includePrerelease&&d)|(this.options.loose&&v))+":"+y,O=n.get(b);if(O)return O;const C=this.options.loose,E=C?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];y=y.replace(E,Lt(this.options.includePrerelease)),o("hyphen replace",y),y=y.replace(a[u.COMPARATORTRIM],f),o("comparator trim",y),y=y.replace(a[u.TILDETRIM],h),o("tilde trim",y),y=y.replace(a[u.CARETTRIM],m),o("caret trim",y);let N=y.split(" ").map(D=>te(D,this.options)).join(" ").split(/\s+/).map(D=>Nt(D,this.options));C&&(N=N.filter(D=>(o("loose invalid filter",D,this.options),!!D.match(a[u.COMPARATORLOOSE])))),o("range list",N);const T=new Map,R=N.map(D=>new s(D,this.options));for(const D of R){if(_(D))return[D];T.set(D.value,D)}T.size>1&&T.has("")&&T.delete("");const V=[...T.values()];return n.set(b,V),V}intersects(y,S){if(!(y instanceof t))throw new TypeError("a Range is required");return this.set.some(b=>M(b,S)&&y.set.some(O=>M(O,S)&&b.every(C=>O.every(E=>C.intersects(E,S)))))}test(y){if(!y)return!1;if(typeof y=="string")try{y=new c(y,this.options)}catch{return!1}for(let S=0;S<this.set.length;S++)if(jt(this.set[S],y,this.options))return!0;return!1}}Tr=t;const r=Zl,n=new r,i=Qr,s=ur(),o=lr,c=X,{safeRe:a,t:u,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:m}=bt,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:v}=ar,_=x=>x.value==="<0.0.0-0",A=x=>x.value==="",M=(x,y)=>{let S=!0;const b=x.slice();let O=b.pop();for(;S&&b.length;)S=b.every(C=>O.intersects(C,y)),O=b.pop();return S},te=(x,y)=>(o("comp",x,y),x=ae(x,y),o("caret",x),x=oe(x,y),o("tildes",x),x=we(x,y),o("xrange",x),x=Ft(x,y),o("stars",x),x),j=x=>!x||x.toLowerCase()==="x"||x==="*",oe=(x,y)=>x.trim().split(/\s+/).map(S=>ut(S,y)).join(" "),ut=(x,y)=>{const S=y.loose?a[u.TILDELOOSE]:a[u.TILDE];return x.replace(S,(b,O,C,E,N)=>{o("tilde",x,b,O,C,E,N);let T;return j(O)?T="":j(C)?T=`>=${O}.0.0 <${+O+1}.0.0-0`:j(E)?T=`>=${O}.${C}.0 <${O}.${+C+1}.0-0`:N?(o("replaceTilde pr",N),T=`>=${O}.${C}.${E}-${N} <${O}.${+C+1}.0-0`):T=`>=${O}.${C}.${E} <${O}.${+C+1}.0-0`,o("tilde return",T),T})},ae=(x,y)=>x.trim().split(/\s+/).map(S=>Ue(S,y)).join(" "),Ue=(x,y)=>{o("caret",x,y);const S=y.loose?a[u.CARETLOOSE]:a[u.CARET],b=y.includePrerelease?"-0":"";return x.replace(S,(O,C,E,N,T)=>{o("caret",x,O,C,E,N,T);let R;return j(C)?R="":j(E)?R=`>=${C}.0.0${b} <${+C+1}.0.0-0`:j(N)?C==="0"?R=`>=${C}.${E}.0${b} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.0${b} <${+C+1}.0.0-0`:T?(o("replaceCaret pr",T),C==="0"?E==="0"?R=`>=${C}.${E}.${N}-${T} <${C}.${E}.${+N+1}-0`:R=`>=${C}.${E}.${N}-${T} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${N}-${T} <${+C+1}.0.0-0`):(o("no pr"),C==="0"?E==="0"?R=`>=${C}.${E}.${N}${b} <${C}.${E}.${+N+1}-0`:R=`>=${C}.${E}.${N}${b} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${N} <${+C+1}.0.0-0`),o("caret return",R),R})},we=(x,y)=>(o("replaceXRanges",x,y),x.split(/\s+/).map(S=>Ge(S,y)).join(" ")),Ge=(x,y)=>{x=x.trim();const S=y.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return x.replace(S,(b,O,C,E,N,T)=>{o("xRange",x,b,O,C,E,N,T);const R=j(C),V=R||j(E),D=V||j(N),Se=D;return O==="="&&Se&&(O=""),T=y.includePrerelease?"-0":"",R?O===">"||O==="<"?b="<0.0.0-0":b="*":O&&Se?(V&&(E=0),N=0,O===">"?(O=">=",V?(C=+C+1,E=0,N=0):(E=+E+1,N=0)):O==="<="&&(O="<",V?C=+C+1:E=+E+1),O==="<"&&(T="-0"),b=`${O+C}.${E}.${N}${T}`):V?b=`>=${C}.0.0${T} <${+C+1}.0.0-0`:D&&(b=`>=${C}.${E}.0${T} <${C}.${+E+1}.0-0`),o("xRange return",b),b})},Ft=(x,y)=>(o("replaceStars",x,y),x.trim().replace(a[u.STAR],"")),Nt=(x,y)=>(o("replaceGTE0",x,y),x.trim().replace(a[y.includePrerelease?u.GTE0PRE:u.GTE0],"")),Lt=x=>(y,S,b,O,C,E,N,T,R,V,D,Se)=>(j(b)?S="":j(O)?S=`>=${b}.0.0${x?"-0":""}`:j(C)?S=`>=${b}.${O}.0${x?"-0":""}`:E?S=`>=${S}`:S=`>=${S}${x?"-0":""}`,j(R)?T="":j(V)?T=`<${+R+1}.0.0-0`:j(D)?T=`<${R}.${+V+1}.0-0`:Se?T=`<=${R}.${V}.${D}-${Se}`:x?T=`<${R}.${V}.${+D+1}-0`:T=`<=${T}`,`${S} ${T}`.trim()),jt=(x,y,S)=>{for(let b=0;b<x.length;b++)if(!x[b].test(y))return!1;if(y.prerelease.length&&!S.includePrerelease){for(let b=0;b<x.length;b++)if(o(x[b].semver),x[b].semver!==s.ANY&&x[b].semver.prerelease.length>0){const O=x[b].semver;if(O.major===y.major&&O.minor===y.minor&&O.patch===y.patch)return!0}return!1}return!0};return Tr}var Rr,ii;function ur(){if(ii)return Rr;ii=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,h){if(h=r(h),f instanceof t){if(f.loose===!!h.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),o("comparator",f,h),this.options=h,this.loose=!!h.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(f){const h=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],m=f.match(h);if(!m)throw new TypeError(`Invalid comparator: ${f}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new c(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(o("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new c(f,this.options)}catch{return!1}return s(f,this.operator,this.semver,this.options)}intersects(f,h){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(f.value,h).test(this.value):f.operator===""?f.value===""?!0:new a(this.value,h).test(f.semver):(h=r(h),h.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||s(this.semver,"<",f.semver,h)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||s(this.semver,">",f.semver,h)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}Rr=t;const r=Qr,{safeRe:n,t:i}=bt,s=ts,o=lr,c=X,a=se();return Rr}const Ql=se(),ec=(e,t,r)=>{try{t=new Ql(t,r)}catch{return!1}return t.test(e)};var fr=ec;const tc=se(),rc=(e,t)=>new tc(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var nc=rc;const ic=X,sc=se(),oc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new ic(n,r))}),n};var ac=oc;const lc=X,cc=se(),uc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new cc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new lc(n,r))}),n};var fc=uc;const Ir=X,hc=se(),si=cr,pc=(e,t)=>{e=new hc(e,t);let r=new Ir("0.0.0");if(e.test(r)||(r=new Ir("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new Ir(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||si(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||si(r,s))&&(r=s)}return r&&e.test(r)?r:null};var dc=pc;const mc=se(),gc=(e,t)=>{try{return new mc(e,t).range||"*"}catch{return null}};var vc=gc;const yc=X,rs=ur(),{ANY:Ec}=rs,xc=se(),$c=fr,oi=cr,ai=tn,Ac=nn,bc=rn,Cc=(e,t,r,n)=>{e=new yc(e,n),t=new xc(t,n);let i,s,o,c,a;switch(r){case">":i=oi,s=Ac,o=ai,c=">",a=">=";break;case"<":i=ai,s=bc,o=oi,c="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($c(e,t,n))return!1;for(let u=0;u<t.set.length;++u){const f=t.set[u];let h=null,m=null;if(f.forEach(d=>{d.semver===Ec&&(d=new rs(">=0.0.0")),h=h||d,m=m||d,i(d.semver,h.semver,n)?h=d:o(d.semver,m.semver,n)&&(m=d)}),h.operator===c||h.operator===a||(!m.operator||m.operator===c)&&s(e,m.semver))return!1;if(m.operator===a&&o(e,m.semver))return!1}return!0};var sn=Cc;const wc=sn,Sc=(e,t,r)=>wc(e,t,">",r);var Oc=Sc;const _c=sn,Tc=(e,t,r)=>_c(e,t,"<",r);var Rc=Tc;const li=se(),Ic=(e,t,r)=>(e=new li(e,r),t=new li(t,r),e.intersects(t,r));var Fc=Ic;const Nc=fr,Lc=ie;var jc=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((f,h)=>Lc(f,h,r));for(const f of o)Nc(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[f,h]of n)f===h?c.push(f):!h&&f===o[0]?c.push("*"):h?f===o[0]?c.push(`<=${h}`):c.push(`${f} - ${h}`):c.push(`>=${f}`);const a=c.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return a.length<u.length?a:t};const ci=se(),on=ur(),{ANY:Fr}=on,pt=fr,an=ie,Dc=(e,t,r={})=>{if(e===t)return!0;e=new ci(e,r),t=new ci(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=Mc(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Pc=[new on(">=0.0.0-0")],ui=[new on(">=0.0.0")],Mc=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Fr){if(t.length===1&&t[0].semver===Fr)return!0;r.includePrerelease?e=Pc:e=ui}if(t.length===1&&t[0].semver===Fr){if(r.includePrerelease)return!0;t=ui}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=fi(i,d,r):d.operator==="<"||d.operator==="<="?s=hi(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=an(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!pt(d,String(i),r)||s&&!pt(d,String(s),r))return null;for(const v of t)if(!pt(d,String(v),r))return!1;return!0}let c,a,u,f,h=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;h&&h.prerelease.length===1&&s.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",i){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(c=fi(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!pt(i.semver,String(d),r))return!1}if(s){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator==="<"||d.operator==="<="){if(a=hi(s,d,r),a===d&&a!==s)return!1}else if(s.operator==="<="&&!pt(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||m||h)},fi=(e,t,r)=>{if(!e)return t;const n=an(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},hi=(e,t,r)=>{if(!e)return t;const n=an(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var kc=Dc;const Nr=bt,pi=ar,Uc=X,di=Zi,Gc=at,Hc=Wa,Bc=Ja,Yc=Qa,Vc=tl,qc=il,Xc=al,Wc=ul,Kc=pl,zc=ie,Jc=vl,Zc=xl,Qc=en,eu=Cl,tu=Ol,ru=cr,nu=tn,iu=Qi,su=es,ou=rn,au=nn,lu=ts,cu=zl,uu=ur(),fu=se(),hu=fr,pu=nc,du=ac,mu=fc,gu=dc,vu=vc,yu=sn,Eu=Oc,xu=Rc,$u=Fc,Au=jc,bu=kc;var qr={parse:Gc,valid:Hc,clean:Bc,inc:Yc,diff:Vc,major:qc,minor:Xc,patch:Wc,prerelease:Kc,compare:zc,rcompare:Jc,compareLoose:Zc,compareBuild:Qc,sort:eu,rsort:tu,gt:ru,lt:nu,eq:iu,neq:su,gte:ou,lte:au,cmp:lu,coerce:cu,Comparator:uu,Range:fu,satisfies:hu,toComparators:pu,maxSatisfying:du,minSatisfying:mu,minVersion:gu,validRange:vu,outside:yu,gtr:Eu,ltr:xu,intersects:$u,simplifyRange:Au,subset:bu,SemVer:Uc,re:Nr.re,src:Nr.src,tokens:Nr.t,SEMVER_SPEC_VERSION:pi.SEMVER_SPEC_VERSION,RELEASE_TYPES:pi.RELEASE_TYPES,compareIdentifiers:di.compareIdentifiers,rcompareIdentifiers:di.rcompareIdentifiers},nt={},ln={exports:{}};const L=(...e)=>e.every(t=>t)?e.join(""):"",Y=e=>e?encodeURIComponent(e):"",Ct={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${L("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${L("#",n)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${L("/",i,"/",Y(n))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:c})=>`https://${e}/${t}/${r}/${i}/${Y(n||"master")}/${s}${L("#",c(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${L("/",n,"/",Y(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Y(n)||"master"}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${L("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${L("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:ns},Q={};Q.github=Object.assign({},Ct,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${L(e,"@")}raw.githubusercontent.com/${t}/${r}/${Y(n)||"master"}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Y(n)||"master"}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}});Q.bitbucket=Object.assign({},Ct,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Y(n)||"master"}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});Q.gitlab=Object.assign({},Ct,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Y(n)||"master"}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;const r=t.split("/");let n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));const i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}});Q.gist=Object.assign({},Ct,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${L("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${L("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${L("/",Y(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${L("/",Y(r))}${L("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${L("/",Y(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${L("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${L("/",Y(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${L("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${L("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${L("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Y(t)||"master"}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+ns(e)}});Q.sourcehut=Object.assign({},Ct,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:c})=>`https://${e}/${t}/${r}/${i}/${Y(n||"main")}/${s}${L("#",c(o||""))}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Y(n)||"main"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${L("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Y(n)||"main"}.tar.gz`,bugstemplate:({domain:e,user:t,project:r})=>`https://todo.sr.ht/${t}/${r}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${L("/",n,"/",Y(i))}#readme`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});const Cu=Object.keys(Q);Q.byShortcut={};Q.byDomain={};for(const e of Cu)Q.byShortcut[`${e}:`]=e,Q.byDomain[Q[e].domain]=e;function ns(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var is=Q;const wu=is;let Su=class{constructor(t,r,n,i,s,o,c={}){Object.assign(this,wu[t]),this.type=t,this.user=r,this.auth=n,this.project=i,this.committish=s,this.default=o,this.opts=c}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this._fill(this.sshtemplate,t)}_fill(t,r){if(typeof t=="function"){const n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);const i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}return null}sshurl(t){return this._fill(this.sshurltemplate,t)}browse(t,r,n){return typeof t!="string"?this._fill(this.browsetemplate,t):(typeof r!="string"&&(n=r,r=null),this._fill(this.browsefiletemplate,{...n,fragment:r,path:t}))}docs(t){return this._fill(this.docstemplate,t)}bugs(t){return this._fill(this.bugstemplate,t)}https(t){return this._fill(this.httpstemplate,t)}git(t){return this._fill(this.gittemplate,t)}shortcut(t){return this._fill(this.shortcuttemplate,t)}path(t){return this._fill(this.pathtemplate,t)}tarball(t){return this._fill(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this._fill(this.filetemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};var Ou=Su,Lr,mi;function _u(){return mi||(mi=1,Lr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Lr}var Tu=I;I.Node=Pe;I.create=I;function I(e){var t=this;if(t instanceof I||(t=new I),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}I.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};I.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};I.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};I.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Iu(this,arguments[e]);return this.length};I.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Fu(this,arguments[e]);return this.length};I.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};I.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};I.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};I.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};I.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};I.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};I.prototype.map=function(e,t){t=t||this;for(var r=new I,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};I.prototype.mapReverse=function(e,t){t=t||this;for(var r=new I,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};I.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};I.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};I.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};I.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};I.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};I.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};I.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=Ru(this,i,r[n]);return s};I.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function Ru(e,t,r){var n=t===e.head?new Pe(r,null,t,e):new Pe(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Iu(e,t){e.tail=new Pe(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Fu(e,t){e.head=new Pe(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Pe(e,t,r,n){if(!(this instanceof Pe))return new Pe(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{_u()(I)}catch{}const Nu=Tu,Ie=Symbol("max"),me=Symbol("length"),Xe=Symbol("lengthCalculator"),yt=Symbol("allowStale"),Ne=Symbol("maxAge"),pe=Symbol("dispose"),gi=Symbol("noDisposeOnSet"),U=Symbol("lruList"),re=Symbol("cache"),ss=Symbol("updateAgeOnGet"),jr=()=>1;let Lu=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Ie]=t.max||1/0;const r=t.length||jr;if(this[Xe]=typeof r!="function"?jr:r,this[yt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ne]=t.maxAge||0,this[pe]=t.dispose,this[gi]=t.noDisposeOnSet||!1,this[ss]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Ie]=t||1/0,dt(this)}get max(){return this[Ie]}set allowStale(t){this[yt]=!!t}get allowStale(){return this[yt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Ne]=t,dt(this)}get maxAge(){return this[Ne]}set lengthCalculator(t){typeof t!="function"&&(t=jr),t!==this[Xe]&&(this[Xe]=t,this[me]=0,this[U].forEach(r=>{r.length=this[Xe](r.value,r.key),this[me]+=r.length})),dt(this)}get lengthCalculator(){return this[Xe]}get length(){return this[me]}get itemCount(){return this[U].length}rforEach(t,r){r=r||this;for(let n=this[U].tail;n!==null;){const i=n.prev;vi(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[U].head;n!==null;){const i=n.next;vi(this,t,n,r),n=i}}keys(){return this[U].toArray().map(t=>t.key)}values(){return this[U].toArray().map(t=>t.value)}reset(){this[pe]&&this[U]&&this[U].length&&this[U].forEach(t=>this[pe](t.key,t.value)),this[re]=new Map,this[U]=new Nu,this[me]=0}dump(){return this[U].map(t=>Zt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[U]}set(t,r,n){if(n=n||this[Ne],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Xe](r,t);if(this[re].has(t)){if(s>this[Ie])return tt(this,this[re].get(t)),!1;const a=this[re].get(t).value;return this[pe]&&(this[gi]||this[pe](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[me]+=s-a.length,a.length=s,this.get(t),dt(this),!0}const o=new ju(t,r,s,i,n);return o.length>this[Ie]?(this[pe]&&this[pe](t,r),!1):(this[me]+=o.length,this[U].unshift(o),this[re].set(t,this[U].head),dt(this),!0)}has(t){if(!this[re].has(t))return!1;const r=this[re].get(t).value;return!Zt(this,r)}get(t){return Dr(this,t,!0)}peek(t){return Dr(this,t,!1)}pop(){const t=this[U].tail;return t?(tt(this,t),t.value):null}del(t){tt(this,this[re].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[re].forEach((t,r)=>Dr(this,r,!1))}};const Dr=(e,t,r)=>{const n=e[re].get(t);if(n){const i=n.value;if(Zt(e,i)){if(tt(e,n),!e[yt])return}else r&&(e[ss]&&(n.value.now=Date.now()),e[U].unshiftNode(n));return i.value}},Zt=(e,t)=>{if(!t||!t.maxAge&&!e[Ne])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Ne]&&r>e[Ne]},dt=e=>{if(e[me]>e[Ie])for(let t=e[U].tail;e[me]>e[Ie]&&t!==null;){const r=t.prev;tt(e,t),t=r}},tt=(e,t)=>{if(t){const r=t.value;e[pe]&&e[pe](r.key,r.value),e[me]-=r.length,e[re].delete(r.key),e[U].removeNode(t)}};let ju=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}};const vi=(e,t,r,n)=>{let i=r.value;Zt(e,i)&&(tt(e,r),e[yt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Du=Lu;const yi=Oa,Wt=is,Pu=ln.exports=Ou,Mu=Du,Pr=new Mu({max:1e3}),ku={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Uu(e){return ku[e]||e.slice(0,-1)}const Gu={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Hu=Object.keys(Wt.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);ln.exports.fromUrl=function(e,t){if(typeof e!="string")return;const r=e+JSON.stringify(t||{});return Pr.has(r)||Pr.set(r,Bu(e,t)),Pr.get(r)};function Bu(e,t){if(!e)return;const r=Vu(e)?"github:"+e:Yu(e),n=Xu(r);if(!n)return n;const i=Wt.byShortcut[n.protocol],s=Wt.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],o=i||s;if(!o)return;const c=Wt[i||s];let a=null;Gu[n.protocol]&&(n.username||n.password)&&(a=`${n.username}${n.password?":"+n.password:""}`);let u=null,f=null,h=null,m=null;try{if(i){let d=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const v=d.indexOf("@");v>-1&&(d=d.slice(v+1));const _=d.lastIndexOf("/");_>-1?(f=decodeURIComponent(d.slice(0,_)),f||(f=null),h=decodeURIComponent(d.slice(_+1))):h=decodeURIComponent(d),h.endsWith(".git")&&(h=h.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),m="shortcut"}else{if(!c.protocols.includes(n.protocol))return;const d=c.extract(n);if(!d)return;f=d.user&&decodeURIComponent(d.user),h=decodeURIComponent(d.project),u=decodeURIComponent(d.committish),m=Uu(n.protocol)}}catch(d){if(d instanceof URIError)return;throw d}return new Pu(o,f,a,h,u,m,t)}const Yu=e=>{const t=e.indexOf(":"),r=e.slice(0,t+1);if(Hu.includes(r))return e;const n=e.indexOf("@");return n>-1?n>t?`git+ssh://${e}`:e:e.indexOf("//")===t+1?e:e.slice(0,t+1)+"//"+e.slice(t+1)},Vu=e=>{const t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),c=!s||t>-1&&s.index>t,a=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,h=r>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return c&&h&&m&&d&&a&&u&&f},qu=e=>{const t=e.indexOf("@"),r=e.lastIndexOf("#");let n=e.indexOf(":"),i=e.lastIndexOf(":",r>-1?r:1/0),s;return i>t&&(s=e.slice(0,i)+"/"+e.slice(i+1),n=s.indexOf(":"),i=s.lastIndexOf(":")),n===-1&&e.indexOf("//")===-1&&(s=`git+ssh://${s}`),s},Xu=e=>{let t;try{t=new yi.URL(e)}catch{}if(t)return t;const r=qu(e);try{t=new yi.URL(r)}catch{}return t};var Wu=ln.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.encode=Je=nt.parsePackageString=void 0;const Et=or("snyk:module"),Ku=Wu;Et.log=console.error.bind(console);nt.default=os;function os(e,t,r){if(!e)throw new Error("requires string to parse into module");let n;t&&!r&&typeof t=="object"?r=t:n=t;let i=e;if(!n&&/^(?:(?:[a-z-]+)|(?:@[a-z-]+\/[a-z-]+)|(?:[a-z-]+\.[.a-z-]+:[a-z-]+))$/.test(i))return Xt(i,{name:i,version:"*"},r);n&&i.lastIndexOf("@")<1&&(Et("appending version onto string"),i+="@"+n);const s=Ei(i);if(s)return Xt(i,xi(s),r);let o=i.split("@");i.indexOf("@")===0&&(o=o.slice(1),o[0]="@"+o[0]);const c=o[1]&&Ei(o[1]);if(c)return Xt(i,xi(c),r);o.length===1&&o.push("*");const a={name:o[0],version:o.slice(1).join("@")};return Xt(i,a,r)}var Je=nt.parsePackageString=os;function Ei(e){if(e.slice(-1)==="/"&&(e=e.slice(0,-1)),e.toLowerCase().indexOf("://github.com/")!==-1&&e.indexOf("http")===0){const r=e.replace(/https?:\/\/github.com\//,"").split("/");e=r.shift()+"/"+r.shift(),r.length&&(e+="#"+r.pop())}return Ku.fromUrl(e)}function xi(e){if(!e.project||!e.user){const r=new Error("not supported: failed to fully parse");throw r.code=501,r}const t={name:e.project,version:e.user+"/"+e.project};return e.committish&&(t.version+="#"+e.committish),t}function zu(e){return e[0]+encodeURIComponent(e.slice(1))}nt.encode=zu;function Xt(e,t,r){if(r||(r={}),r.packageManager==="maven"){if(e.indexOf(":")===-1)throw new Error("invalid Maven package name: "+e);return t}return(t.version.match(/^(https?:)|(git[:+])/i)||t.name.indexOf("://")!==-1)&&(Et("not supported %s@%s (ext)",t.name,t.version),r.loose?delete t.version:Et("external module: "+Ju(t))),(t.version==="latest"||!t.version)&&(t.version="*"),Et('%s => { name: "%s", version: "%s" }',e,t.name,t.version),t}function Ju(e){return e.name+"@"+e.version}const as=Ce("snyk:policy");as.log=console.error.bind(console);const z=Ce("snyk:protect");z.log=console.error.bind(console);function Zu(e,t){const r=t.split(" > ");z("checking path: %s vs. %s",t,e);let n=0;const i=r.every((s,o)=>{z("for %s...(against %s)",s,e[o+n]);let c=e[o+n]?Je(e[o+n]):{};if(s==="*"){if(z("star rule"),!r[o+1])return!0;const f=Je(r[o+1]);if(f){z("next",f);for(let h=o;o<r.length;h++){if(!e[o+n])return!1;if(c=Je(e[o+n]),z("fromPkg",c,f),f.name===c.name){n--,z("next has a match");break}z("pushing offset"),n++}}return!0}if(z("next test",s,c),s===e[o+n])return z("exact match"),!0;const a=Je(s);let u=a.version;if(u==="*"&&(u=c.version),a.name===c.name){if(c.version===u)return z("exact version match"),!0;if(qr.valid(c.version)&&qr.satisfies(c.version,u))return z("semver match"),!0}return z("failed match"),!1});return z("result of path test %s: %s",t,i),i}function wt(e,t,r="packageManager"){return Object.keys(t).some(n=>Qu(e,n,r))}function Qu(e,t,r){if(r==="exact")return ef(e,t);let n=!1;const i=e.from.slice(1);return t.indexOf(i.join(" > "))!==-1?(as("%s exact match from %s",e.id,i),n=!0):Zu(i,t)&&(n=!0),n}function ef(e,t){const r=t.split(" > ");if(r[r.length-1]==="*"){const n=e.from.length-r.length;for(let i=0;i<n;i++)r.push("*")}if(r.length!==e.from.length)return!1;for(let n=0;n<r.length;n++)if(r[n]!==e.from[n]&&r[n]!=="*")return!1;return!0}function tf(e,t){let r=null;if(!e||!t)return r;for(const n of["ignore","patch"])Object.keys(e[n]||[]).forEach(i=>{if(i===t.id){for(const s of e[n][i])if(wt(t,s)){const o=Object.keys(s).pop();r={type:n,id:t.id,rule:t.from,...s[o]}}}});return r}var P={},St={},ee={};function ls(e){return typeof e>"u"||e===null}function rf(e){return typeof e=="object"&&e!==null}function nf(e){return Array.isArray(e)?e:ls(e)?[]:[e]}function sf(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function of(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function af(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ee.isNothing=ls;ee.isObject=rf;ee.toArray=nf;ee.repeat=of;ee.isNegativeZero=af;ee.extend=sf;function $t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}$t.prototype=Object.create(Error.prototype);$t.prototype.constructor=$t;$t.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};var Ot=$t,$i=ee;function cn(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}cn.prototype.getSnippet=function(t,r){var n,i,s,o,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
…\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
…\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return c=this.buffer.slice(i,o),$i.repeat(" ",t)+n+c+s+`
`+$i.repeat(" ",t+this.position-i+n.length)+"^"};cn.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
`+r)),n};var lf=cn,Ai=Ot,cf=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],uf=["scalar","sequence","mapping"];function ff(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function hf(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(cf.indexOf(r)===-1)throw new Ai('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=ff(t.styleAliases||null),uf.indexOf(this.kind)===-1)throw new Ai('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var H=hf,bi=ee,Kt=Ot,pf=H;function Xr(e,t,r){var n=[];return e.include.forEach(function(i){r=Xr(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&n.push(o)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}function df(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Ze(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Kt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Xr(this,"implicit",[]),this.compiledExplicit=Xr(this,"explicit",[]),this.compiledTypeMap=df(this.compiledImplicit,this.compiledExplicit)}Ze.DEFAULT=null;Ze.create=function(){var t,r;switch(arguments.length){case 1:t=Ze.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Kt("Wrong number of arguments for Schema.create function")}if(t=bi.toArray(t),r=bi.toArray(r),!t.every(function(n){return n instanceof Ze}))throw new Kt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof pf}))throw new Kt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ze({include:t,explicit:r})};var lt=Ze,mf=H,gf=new mf("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),vf=H,yf=new vf("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ef=H,xf=new Ef("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),$f=lt,un=new $f({explicit:[gf,yf,xf]}),Af=H;function bf(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Cf(){return null}function wf(e){return e===null}var Sf=new Af("tag:yaml.org,2002:null",{kind:"scalar",resolve:bf,construct:Cf,predicate:wf,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Of=H;function _f(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Tf(e){return e==="true"||e==="True"||e==="TRUE"}function Rf(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var If=new Of("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_f,construct:Tf,predicate:Rf,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),Ff=ee,Nf=H;function Lf(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function jf(e){return 48<=e&&e<=55}function Df(e){return 48<=e&&e<=57}function Pf(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Lf(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!jf(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!Df(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function Mf(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(o){s.unshift(parseInt(o,10))}),t=0,i=1,s.forEach(function(o){t+=o*i,i*=60}),r*t):r*parseInt(t,10)}function kf(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ff.isNegativeZero(e)}var Uf=new Nf("tag:yaml.org,2002:int",{kind:"scalar",resolve:Pf,construct:Mf,predicate:kf,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+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"]}}),cs=ee,Gf=H,Hf=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bf(e){return!(e===null||!Hf.test(e)||e[e.length-1]==="_")}function Yf(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}var Vf=/^[-+]?[0-9]+e/;function qf(e,t){var r;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(cs.isNegativeZero(e))return"-0.0";return r=e.toString(10),Vf.test(r)?r.replace("e",".e"):r}function Xf(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||cs.isNegativeZero(e))}var Wf=new Gf("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bf,construct:Yf,predicate:Xf,represent:qf,defaultStyle:"lowercase"}),Kf=lt,us=new Kf({include:[un],implicit:[Sf,If,Uf,Wf]}),zf=lt,fs=new zf({include:[us]}),Jf=H,hs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ps=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 Zf(e){return e===null?!1:hs.exec(e)!==null||ps.exec(e)!==null}function Qf(e){var t,r,n,i,s,o,c,a=0,u=null,f,h,m;if(t=hs.exec(e),t===null&&(t=ps.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],c=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(f=+t[10],h=+(t[11]||0),u=(f*60+h)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,n,i,s,o,c,a)),u&&m.setTime(m.getTime()-u),m}function eh(e){return e.toISOString()}var th=new Jf("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zf,construct:Qf,instanceOf:Date,represent:eh}),rh=H;function nh(e){return e==="<<"||e===null}var ih=new rh("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nh});function ds(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Le;try{var sh=ds;Le=sh("buffer").Buffer}catch{}var oh=H,fn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function ah(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=fn;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function lh(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=fn,o=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):r===18?(c.push(o>>10&255),c.push(o>>2&255)):r===12&&c.push(o>>4&255),Le?Le.from?Le.from(c):new Le(c):c}function ch(e){var t="",r=0,n,i,s=e.length,o=fn;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function uh(e){return Le&&Le.isBuffer(e)}var fh=new oh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ah,construct:lh,predicate:uh,represent:ch}),hh=H,ph=Object.prototype.hasOwnProperty,dh=Object.prototype.toString;function mh(e){if(e===null)return!0;var t=[],r,n,i,s,o,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],o=!1,dh.call(i)!=="[object Object]")return!1;for(s in i)if(ph.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function gh(e){return e!==null?e:[]}var vh=new hh("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mh,construct:gh}),yh=H,Eh=Object.prototype.toString;function xh(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],Eh.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function $h(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Ah=new yh("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:xh,construct:$h}),bh=H,Ch=Object.prototype.hasOwnProperty;function wh(e){if(e===null)return!0;var t,r=e;for(t in r)if(Ch.call(r,t)&&r[t]!==null)return!1;return!0}function Sh(e){return e!==null?e:{}}var Oh=new bh("tag:yaml.org,2002:set",{kind:"mapping",resolve:wh,construct:Sh}),_h=lt,_t=new _h({include:[fs],implicit:[th,ih],explicit:[fh,vh,Ah,Oh]}),Th=H;function Rh(){return!0}function Ih(){}function Fh(){return""}function Nh(e){return typeof e>"u"}var Lh=new Th("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Rh,construct:Ih,predicate:Nh,represent:Fh}),jh=H;function Dh(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function Ph(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function Mh(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function kh(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Uh=new jh("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Dh,construct:Ph,predicate:kh,represent:Mh}),Qt;try{var Gh=ds;Qt=Gh("esprima")}catch{typeof window<"u"&&(Qt=window.esprima)}var Hh=H;function Bh(e){if(e===null)return!1;try{var t="("+e+")",r=Qt.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Yh(e){var t="("+e+")",r=Qt.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function Vh(e){return e.toString()}function qh(e){return Object.prototype.toString.call(e)==="[object Function]"}var Xh=new Hh("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Bh,construct:Yh,predicate:qh,represent:Vh}),Ci=lt,hr=Ci.DEFAULT=new Ci({include:[_t],explicit:[Lh,Uh,Xh]}),ve=ee,ms=Ot,Wh=lf,gs=_t,Kh=hr,be=Object.prototype.hasOwnProperty,er=1,vs=2,ys=3,tr=4,Mr=1,zh=2,wi=3,Jh=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zh=/[\x85\u2028\u2029]/,Qh=/[,\[\]\{\}]/,Es=/^(?:!|!!|![a-z\-]+!)$/i,xs=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Si(e){return Object.prototype.toString.call(e)}function ue(e){return e===10||e===13}function De(e){return e===9||e===32}function J(e){return e===9||e===32||e===10||e===13}function Qe(e){return e===44||e===91||e===93||e===123||e===125}function ep(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function tp(e){return e===120?2:e===117?4:e===85?8:0}function rp(e){return 48<=e&&e<=57?e-48:-1}function Oi(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function np(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var $s=new Array(256),As=new Array(256);for(var We=0;We<256;We++)$s[We]=Oi(We)?1:0,As[We]=Oi(We);function ip(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Kh,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.documents=[]}function bs(e,t){return new ms(t,new Wh(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function w(e,t){throw bs(e,t)}function rr(e,t){e.onWarning&&e.onWarning.call(null,bs(e,t))}var _i={YAML:function(t,r,n){var i,s,o;t.version!==null&&w(t,"duplication of %YAML directive"),n.length!==1&&w(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&w(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&w(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&rr(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&w(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Es.test(i)||w(t,"ill-formed tag handle (first argument) of the TAG directive"),be.call(t.tagMap,i)&&w(t,'there is a previously declared suffix for "'+i+'" tag handle'),xs.test(s)||w(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s}};function Ae(e,t,r,n){var i,s,o,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)o=c.charCodeAt(i),o===9||32<=o&&o<=1114111||w(e,"expected valid JSON character");else Jh.test(c)&&w(e,"the stream contains non-printable characters");e.result+=c}}function Ti(e,t,r,n){var i,s,o,c;for(ve.isObject(r)||w(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,c=i.length;o<c;o+=1)s=i[o],be.call(t,s)||(t[s]=r[s],n[s]=!0)}function et(e,t,r,n,i,s,o,c){var a,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),a=0,u=i.length;a<u;a+=1)Array.isArray(i[a])&&w(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Si(i[a])==="[object Object]"&&(i[a]="[object Object]");if(typeof i=="object"&&Si(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(a=0,u=s.length;a<u;a+=1)Ti(e,t,s[a],r);else Ti(e,t,s,r);else!e.json&&!be.call(r,i)&&be.call(t,i)&&(e.line=o||e.line,e.position=c||e.position,w(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}function hn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):w(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function k(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;De(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ue(i))for(hn(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&rr(e,"deficient indentation"),n}function pr(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||J(r)))}function pn(e,t){t===1?e.result+=" ":t>1&&(e.result+=ve.repeat(`
`,t-1))}function sp(e,t,r){var n,i,s,o,c,a,u,f,h=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),J(d)||Qe(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),J(i)||r&&Qe(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),J(i)||r&&Qe(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),J(n))break}else{if(e.position===e.lineStart&&pr(e)||r&&Qe(d))break;if(ue(d))if(a=e.line,u=e.lineStart,f=e.lineIndent,k(e,!1,-1),e.lineIndent>=t){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=u,e.lineIndent=f;break}}c&&(Ae(e,s,o,!1),pn(e,e.line-a),s=o=e.position,c=!1),De(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ae(e,s,o,!1),e.result?!0:(e.kind=h,e.result=m,!1)}function op(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ae(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else ue(r)?(Ae(e,n,i,!0),pn(e,k(e,!1,t)),n=i=e.position):e.position===e.lineStart&&pr(e)?w(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);w(e,"unexpected end of the stream within a single quoted scalar")}function ap(e,t){var r,n,i,s,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ae(e,r,e.position,!0),e.position++,!0;if(c===92){if(Ae(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),ue(c))k(e,!1,t);else if(c<256&&$s[c])e.result+=As[c],e.position++;else if((o=tp(c))>0){for(i=o,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(o=ep(c))>=0?s=(s<<4)+o:w(e,"expected hexadecimal character");e.result+=np(s),e.position++}else w(e,"unknown escape sequence");r=n=e.position}else ue(c)?(Ae(e,r,n,!0),pn(e,k(e,!1,t)),r=n=e.position):e.position===e.lineStart&&pr(e)?w(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}w(e,"unexpected end of the stream within a double quoted scalar")}function lp(e,t){var r=!0,n,i=e.tag,s,o=e.anchor,c,a,u,f,h,m={},d,v,_,A;if(A=e.input.charCodeAt(e.position),A===91)a=93,h=!1,s=[];else if(A===123)a=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),A=e.input.charCodeAt(++e.position);A!==0;){if(k(e,!0,t),A=e.input.charCodeAt(e.position),A===a)return e.position++,e.tag=i,e.anchor=o,e.kind=h?"mapping":"sequence",e.result=s,!0;r||w(e,"missed comma between flow collection entries"),v=d=_=null,u=f=!1,A===63&&(c=e.input.charCodeAt(e.position+1),J(c)&&(u=f=!0,e.position++,k(e,!0,t))),n=e.line,it(e,t,er,!1,!0),v=e.tag,d=e.result,k(e,!0,t),A=e.input.charCodeAt(e.position),(f||e.line===n)&&A===58&&(u=!0,A=e.input.charCodeAt(++e.position),k(e,!0,t),it(e,t,er,!1,!0),_=e.result),h?et(e,s,m,v,d,_):u?s.push(et(e,null,m,v,d,_)):s.push(d),k(e,!0,t),A=e.input.charCodeAt(e.position),A===44?(r=!0,A=e.input.charCodeAt(++e.position)):r=!1}w(e,"unexpected end of the stream within a flow collection")}function cp(e,t){var r,n,i=Mr,s=!1,o=!1,c=t,a=0,u=!1,f,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Mr===i?i=h===43?wi:zh:w(e,"repeat of a chomping mode identifier");else if((f=rp(h))>=0)f===0?w(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?w(e,"repeat of an indentation width identifier"):(c=t+f-1,o=!0);else break;if(De(h)){do h=e.input.charCodeAt(++e.position);while(De(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!ue(h)&&h!==0)}for(;h!==0;){for(hn(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),ue(h)){a++;continue}if(e.lineIndent<c){i===wi?e.result+=ve.repeat(`
`,s?1+a:a):i===Mr&&s&&(e.result+=`
`);break}for(n?De(h)?(u=!0,e.result+=ve.repeat(`
`,s?1+a:a)):u?(u=!1,e.result+=ve.repeat(`
`,a+1)):a===0?s&&(e.result+=" "):e.result+=ve.repeat(`
`,a):e.result+=ve.repeat(`
`,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!ue(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Ae(e,r,e.position,!1)}return!0}function Ri(e,t){var r,n=e.tag,i=e.anchor,s=[],o,c=!1,a;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);a!==0&&!(a!==45||(o=e.input.charCodeAt(e.position+1),!J(o)));){if(c=!0,e.position++,k(e,!0,-1)&&e.lineIndent<=t){s.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,it(e,t,ys,!1,!0),s.push(e.result),k(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)w(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function up(e,t,r){var n,i,s,o,c=e.tag,a=e.anchor,u={},f={},h=null,m=null,d=null,v=!1,_=!1,A;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),A=e.input.charCodeAt(e.position);A!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(A===63||A===58)&&J(n))A===63?(v&&(et(e,u,f,h,m,null),h=m=d=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):w(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=n;else if(it(e,r,vs,!1,!0))if(e.line===s){for(A=e.input.charCodeAt(e.position);De(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),J(A)||w(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(et(e,u,f,h,m,null),h=m=d=null),_=!0,v=!1,i=!1,h=e.tag,m=e.result;else if(_)w(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=a,!0}else if(_)w(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=a,!0;else break;if((e.line===s||e.lineIndent>t)&&(it(e,t,tr,!0,i)&&(v?m=e.result:d=e.result),v||(et(e,u,f,h,m,d,s,o),h=m=d=null),k(e,!0,-1),A=e.input.charCodeAt(e.position)),e.lineIndent>t&&A!==0)w(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&et(e,u,f,h,m,null),_&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=u),_}function fp(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&w(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):w(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!J(o);)o===33&&(n?w(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Es.test(i)||w(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Qh.test(s)&&w(e,"tag suffix cannot contain flow indicator characters")}return s&&!xs.test(s)&&w(e,"tag name cannot contain such characters: "+s),r?e.tag=s:be.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:w(e,'undeclared tag handle "'+i+'"'),!0}function hp(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&w(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!J(r)&&!Qe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function pp(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!J(n)&&!Qe(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),be.call(e.anchorMap,r)||w(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],k(e,!0,-1),!0}function it(e,t,r,n,i){var s,o,c,a=1,u=!1,f=!1,h,m,d,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=c=tr===r||ys===r,n&&k(e,!0,-1)&&(u=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;fp(e)||hp(e);)k(e,!0,-1)?(u=!0,c=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):c=!1;if(c&&(c=u||i),(a===1||tr===r)&&(er===r||vs===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?c&&(Ri(e,_)||up(e,_,v))||lp(e,v)?f=!0:(o&&cp(e,v)||op(e,v)||ap(e,v)?f=!0:pp(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&w(e,"alias node should not have any properties")):sp(e,v,er===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(f=c&&Ri(e,_))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&w(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,m=e.implicitTypes.length;h<m;h+=1)if(d=e.implicitTypes[h],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else be.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&w(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):w(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):w(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function dp(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(k(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!J(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&w(e,"directive name must not be less than one character in length");o!==0;){for(;De(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ue(o));break}if(ue(o))break;for(r=e.position;o!==0&&!J(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&hn(e),be.call(_i,n)?_i[n](e,n,i):rr(e,'unknown document directive "'+n+'"')}if(k(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,k(e,!0,-1)):s&&w(e,"directives end mark is expected"),it(e,e.lineIndent-1,tr,!1,!0),k(e,!0,-1),e.checkLineBreaks&&Zh.test(e.input.slice(t,e.position))&&rr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,k(e,!0,-1));return}if(e.position<e.length-1)w(e,"end of the stream or a document separator is expected");else return}function Cs(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new ip(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,w(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dp(r);return r.documents}function ws(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Cs(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Ss(e,t){var r=Cs(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ms("expected a single document in the stream, but found more")}}function mp(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),ws(e,t,ve.extend({schema:gs},r))}function gp(e,t){return Ss(e,ve.extend({schema:gs},t))}St.loadAll=ws;St.load=Ss;St.safeLoadAll=mp;St.safeLoad=gp;var dn={},Tt=ee,Rt=Ot,vp=hr,yp=_t,Os=Object.prototype.toString,_s=Object.prototype.hasOwnProperty,Ep=9,At=10,xp=13,$p=32,Ap=33,bp=34,Ts=35,Cp=37,wp=38,Sp=39,Op=42,Rs=44,_p=45,Is=58,Tp=61,Rp=62,Ip=63,Fp=64,Fs=91,Ns=93,Np=96,Ls=123,Lp=124,js=125,q={};q[0]="\\0";q[7]="\\a";q[8]="\\b";q[9]="\\t";q[10]="\\n";q[11]="\\v";q[12]="\\f";q[13]="\\r";q[27]="\\e";q[34]='\\"';q[92]="\\\\";q[133]="\\N";q[160]="\\_";q[8232]="\\L";q[8233]="\\P";var jp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Dp(e,t){var r,n,i,s,o,c,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],c=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&_s.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c;return r}function Ii(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Rt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Tt.repeat("0",n-t.length)+t}function Pp(e){this.schema=e.schema||vp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Dp(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Fi(e,t){for(var r=Tt.repeat(" ",t),n=0,i=-1,s="",o,c=e.length;n<c;)i=e.indexOf(`
`,n),i===-1?(o=e.slice(n),n=c):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function Wr(e,t){return`
`+Tt.repeat(" ",e.indent*t)}function Mp(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function mn(e){return e===$p||e===Ep}function st(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function kp(e){return st(e)&&!mn(e)&&e!==65279&&e!==xp&&e!==At}function Ni(e,t){return st(e)&&e!==65279&&e!==Rs&&e!==Fs&&e!==Ns&&e!==Ls&&e!==js&&e!==Is&&(e!==Ts||t&&kp(t))}function Up(e){return st(e)&&e!==65279&&!mn(e)&&e!==_p&&e!==Ip&&e!==Is&&e!==Rs&&e!==Fs&&e!==Ns&&e!==Ls&&e!==js&&e!==Ts&&e!==wp&&e!==Op&&e!==Ap&&e!==Lp&&e!==Tp&&e!==Rp&&e!==Sp&&e!==bp&&e!==Cp&&e!==Fp&&e!==Np}function Ds(e){var t=/^\n* /;return t.test(e)}var Ps=1,Ms=2,ks=3,Us=4,zt=5;function Gp(e,t,r,n,i){var s,o,c,a=!1,u=!1,f=n!==-1,h=-1,m=Up(e.charCodeAt(0))&&!mn(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!st(o))return zt;c=s>0?e.charCodeAt(s-1):null,m=m&&Ni(o,c)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===At)a=!0,f&&(u=u||s-h-1>n&&e[h+1]!==" ",h=s);else if(!st(o))return zt;c=s>0?e.charCodeAt(s-1):null,m=m&&Ni(o,c)}u=u||f&&s-h-1>n&&e[h+1]!==" "}return!a&&!u?m&&!i(e)?Ps:Ms:r>9&&Ds(e)?zt:u?Us:ks}function Hp(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&jp.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=n||e.flowLevel>-1&&r>=e.flowLevel;function c(a){return Mp(e,a)}switch(Gp(t,o,e.indent,s,c)){case Ps:return t;case Ms:return"'"+t.replace(/'/g,"''")+"'";case ks:return"|"+Li(t,e.indent)+ji(Fi(t,i));case Us:return">"+Li(t,e.indent)+ji(Fi(Bp(t,s),i));case zt:return'"'+Yp(t)+'"';default:throw new Rt("impossible error: invalid scalar style")}}()}function Li(e,t){var r=Ds(e)?String(t):"",n=e[e.length-1]===`
`,i=n&&(e[e.length-2]===`
`||e===`
`),s=i?"+":n?"":"-";return r+s+`
`}function ji(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function Bp(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
`);return u=u!==-1?u:e.length,r.lastIndex=u,Di(e.slice(0,u),t)}(),i=e[0]===`
`||e[0]===" ",s,o;o=r.exec(e);){var c=o[1],a=o[2];s=a[0]===" ",n+=c+(!i&&!s&&a!==""?`
`:"")+Di(a,t),i=s}return n}function Di(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,c=0,a="";n=r.exec(e);)c=n.index,c-i>t&&(s=o>i?o:c,a+=`
`+e.slice(i,s),i=s+1),o=c;return a+=`
`,e.length-i>t&&o>i?a+=e.slice(i,o)+`
`+e.slice(o+1):a+=e.slice(i),a.slice(1)}function Yp(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=Ii((r-55296)*1024+n-56320+65536),s++;continue}i=q[r],t+=!i&&st(r)?e[s]:i||Ii(r)}return t}function Vp(e,t,r){var n="",i=e.tag,s,o;for(s=0,o=r.length;s<o;s+=1)Me(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function qp(e,t,r,n){var i="",s=e.tag,o,c;for(o=0,c=r.length;o<c;o+=1)Me(e,t+1,r[o],!0,!0)&&((!n||o!==0)&&(i+=Wr(e,t)),e.dump&&At===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Xp(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,c,a,u,f;for(o=0,c=s.length;o<c;o+=1)f="",o!==0&&(f+=", "),e.condenseFlow&&(f+='"'),a=s[o],u=r[a],Me(e,t,a,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Me(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function Wp(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),c,a,u,f,h,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Rt("sortKeys must be a boolean or a function");for(c=0,a=o.length;c<a;c+=1)m="",(!n||c!==0)&&(m+=Wr(e,t)),u=o[c],f=r[u],Me(e,t+1,u,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&At===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,h&&(m+=Wr(e,t)),Me(e,t+1,f,!0,h)&&(e.dump&&At===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function Pi(e,t,r){var n,i,s,o,c,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,Os.call(c.represent)==="[object Function]")n=c.represent(t,a);else if(_s.call(c.represent,a))n=c.represent[a](t,a);else throw new Rt("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function Me(e,t,r,n,i,s){e.tag=null,e.dump=r,Pi(e,r,!1)||Pi(e,r,!0);var o=Os.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",a,u;if(c&&(a=e.duplicates.indexOf(r),u=a!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(c&&u&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(Wp(e,t,e.dump,i),u&&(e.dump="&ref_"+a+e.dump)):(Xp(e,t,e.dump),u&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(qp(e,f,e.dump,i),u&&(e.dump="&ref_"+a+e.dump)):(Vp(e,f,e.dump),u&&(e.dump="&ref_"+a+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&Hp(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Rt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Kp(e,t){var r=[],n=[],i,s;for(Kr(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Kr(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Kr(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Kr(e[n[i]],t,r)}function Gs(e,t){t=t||{};var r=new Pp(t);return r.noRefs||Kp(e,r),Me(r,0,e,!0,!0)?r.dump+`
`:""}function zp(e,t){return Gs(e,Tt.extend({schema:yp},t))}dn.dump=Gs;dn.safeDump=zp;var dr=St,Hs=dn;function mr(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}P.Type=H;P.Schema=lt;P.FAILSAFE_SCHEMA=un;P.JSON_SCHEMA=us;P.CORE_SCHEMA=fs;P.DEFAULT_SAFE_SCHEMA=_t;P.DEFAULT_FULL_SCHEMA=hr;P.load=dr.load;P.loadAll=dr.loadAll;P.safeLoad=dr.safeLoad;P.safeLoadAll=dr.safeLoadAll;P.dump=Hs.dump;P.safeDump=Hs.safeDump;P.YAMLException=Ot;P.MINIMAL_SCHEMA=un;P.SAFE_SCHEMA=_t;P.DEFAULT_SCHEMA=hr;P.scan=mr("scan");P.parse=mr("parse");P.compose=mr("compose");P.addConstructor=mr("addConstructor");var Jp=P,Bs=Jp,nr={exports:{}};nr.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",c="[object Boolean]",a="[object Date]",u="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",d="[object Number]",v="[object Object]",_="[object Promise]",A="[object RegExp]",M="[object Set]",te="[object String]",j="[object Symbol]",oe="[object WeakMap]",ut="[object ArrayBuffer]",ae="[object DataView]",Ue="[object Float32Array]",we="[object Float64Array]",Ge="[object Int8Array]",Ft="[object Int16Array]",Nt="[object Int32Array]",Lt="[object Uint8Array]",jt="[object Uint8ClampedArray]",x="[object Uint16Array]",y="[object Uint32Array]",S=/[\\^$.*+?()[\]{}|]/g,b=/\w*$/,O=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,E={};E[s]=E[o]=E[ut]=E[ae]=E[c]=E[a]=E[Ue]=E[we]=E[Ge]=E[Ft]=E[Nt]=E[m]=E[d]=E[v]=E[A]=E[M]=E[te]=E[j]=E[Lt]=E[jt]=E[x]=E[y]=!0,E[u]=E[f]=E[oe]=!1;var N=typeof Ht=="object"&&Ht&&Ht.Object===Object&&Ht,T=typeof self=="object"&&self&&self.Object===Object&&self,R=N||T||Function("return this")(),V=t&&!t.nodeType&&t,D=V&&!0&&e&&!e.nodeType&&e,Se=D&&D.exports===V;function co(l,p){return l.set(p[0],p[1]),l}function uo(l,p){return l.add(p),l}function fo(l,p){for(var g=-1,$=l?l.length:0;++g<$&&p(l[g],g,l)!==!1;);return l}function ho(l,p){for(var g=-1,$=p.length,B=l.length;++g<$;)l[B+g]=p[g];return l}function Cn(l,p,g,$){for(var B=-1,W=l?l.length:0;++B<W;)g=p(g,l[B],B,l);return g}function po(l,p){for(var g=-1,$=Array(l);++g<l;)$[g]=p(g);return $}function mo(l,p){return l==null?void 0:l[p]}function wn(l){var p=!1;if(l!=null&&typeof l.toString!="function")try{p=!!(l+"")}catch{}return p}function Sn(l){var p=-1,g=Array(l.size);return l.forEach(function($,B){g[++p]=[B,$]}),g}function vr(l,p){return function(g){return l(p(g))}}function On(l){var p=-1,g=Array(l.size);return l.forEach(function($){g[++p]=$}),g}var go=Array.prototype,vo=Function.prototype,Dt=Object.prototype,yr=R["__core-js_shared__"],_n=function(){var l=/[^.]+$/.exec(yr&&yr.keys&&yr.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Tn=vo.toString,xe=Dt.hasOwnProperty,Pt=Dt.toString,yo=RegExp("^"+Tn.call(xe).replace(S,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rn=Se?R.Buffer:void 0,In=R.Symbol,Fn=R.Uint8Array,Eo=vr(Object.getPrototypeOf,Object),xo=Object.create,$o=Dt.propertyIsEnumerable,Ao=go.splice,Nn=Object.getOwnPropertySymbols,bo=Rn?Rn.isBuffer:void 0,Co=vr(Object.keys,Object),Er=Ye(R,"DataView"),ft=Ye(R,"Map"),xr=Ye(R,"Promise"),$r=Ye(R,"Set"),Ar=Ye(R,"WeakMap"),ht=Ye(Object,"create"),wo=Te(Er),So=Te(ft),Oo=Te(xr),_o=Te($r),To=Te(Ar),Ln=In?In.prototype:void 0,jn=Ln?Ln.valueOf:void 0;function Oe(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Ro(){this.__data__=ht?ht(null):{}}function Io(l){return this.has(l)&&delete this.__data__[l]}function Fo(l){var p=this.__data__;if(ht){var g=p[l];return g===n?void 0:g}return xe.call(p,l)?p[l]:void 0}function No(l){var p=this.__data__;return ht?p[l]!==void 0:xe.call(p,l)}function Lo(l,p){var g=this.__data__;return g[l]=ht&&p===void 0?n:p,this}Oe.prototype.clear=Ro,Oe.prototype.delete=Io,Oe.prototype.get=Fo,Oe.prototype.has=No,Oe.prototype.set=Lo;function fe(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function jo(){this.__data__=[]}function Do(l){var p=this.__data__,g=Mt(p,l);if(g<0)return!1;var $=p.length-1;return g==$?p.pop():Ao.call(p,g,1),!0}function Po(l){var p=this.__data__,g=Mt(p,l);return g<0?void 0:p[g][1]}function Mo(l){return Mt(this.__data__,l)>-1}function ko(l,p){var g=this.__data__,$=Mt(g,l);return $<0?g.push([l,p]):g[$][1]=p,this}fe.prototype.clear=jo,fe.prototype.delete=Do,fe.prototype.get=Po,fe.prototype.has=Mo,fe.prototype.set=ko;function He(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Uo(){this.__data__={hash:new Oe,map:new(ft||fe),string:new Oe}}function Go(l){return kt(this,l).delete(l)}function Ho(l){return kt(this,l).get(l)}function Bo(l){return kt(this,l).has(l)}function Yo(l,p){return kt(this,l).set(l,p),this}He.prototype.clear=Uo,He.prototype.delete=Go,He.prototype.get=Ho,He.prototype.has=Bo,He.prototype.set=Yo;function Be(l){this.__data__=new fe(l)}function Vo(){this.__data__=new fe}function qo(l){return this.__data__.delete(l)}function Xo(l){return this.__data__.get(l)}function Wo(l){return this.__data__.has(l)}function Ko(l,p){var g=this.__data__;if(g instanceof fe){var $=g.__data__;if(!ft||$.length<r-1)return $.push([l,p]),this;g=this.__data__=new He($)}return g.set(l,p),this}Be.prototype.clear=Vo,Be.prototype.delete=qo,Be.prototype.get=Xo,Be.prototype.has=Wo,Be.prototype.set=Ko;function zo(l,p){var g=wr(l)||xa(l)?po(l.length,String):[],$=g.length,B=!!$;for(var W in l)xe.call(l,W)&&!(B&&(W=="length"||ga(W,$)))&&g.push(W);return g}function Dn(l,p,g){var $=l[p];(!(xe.call(l,p)&&Un($,g))||g===void 0&&!(p in l))&&(l[p]=g)}function Mt(l,p){for(var g=l.length;g--;)if(Un(l[g][0],p))return g;return-1}function Jo(l,p){return l&&Pn(p,Sr(p),l)}function br(l,p,g,$,B,W,he){var K;if($&&(K=W?$(l,B,W,he):$(l)),K!==void 0)return K;if(!Ut(l))return l;var Bn=wr(l);if(Bn){if(K=pa(l),!p)return ua(l,K)}else{var Ve=_e(l),Yn=Ve==f||Ve==h;if(Aa(l))return na(l,p);if(Ve==v||Ve==s||Yn&&!W){if(wn(l))return W?l:{};if(K=da(Yn?{}:l),!p)return fa(l,Jo(K,l))}else{if(!E[Ve])return W?l:{};K=ma(l,Ve,br,p)}}he||(he=new Be);var Vn=he.get(l);if(Vn)return Vn;if(he.set(l,K),!Bn)var qn=g?ha(l):Sr(l);return fo(qn||l,function(Or,Gt){qn&&(Gt=Or,Or=l[Gt]),Dn(K,Gt,br(Or,p,g,$,Gt,l,he))}),K}function Zo(l){return Ut(l)?xo(l):{}}function Qo(l,p,g){var $=p(l);return wr(l)?$:ho($,g(l))}function ea(l){return Pt.call(l)}function ta(l){if(!Ut(l)||ya(l))return!1;var p=Hn(l)||wn(l)?yo:O;return p.test(Te(l))}function ra(l){if(!kn(l))return Co(l);var p=[];for(var g in Object(l))xe.call(l,g)&&g!="constructor"&&p.push(g);return p}function na(l,p){if(p)return l.slice();var g=new l.constructor(l.length);return l.copy(g),g}function Cr(l){var p=new l.constructor(l.byteLength);return new Fn(p).set(new Fn(l)),p}function ia(l,p){var g=p?Cr(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function sa(l,p,g){var $=p?g(Sn(l),!0):Sn(l);return Cn($,co,new l.constructor)}function oa(l){var p=new l.constructor(l.source,b.exec(l));return p.lastIndex=l.lastIndex,p}function aa(l,p,g){var $=p?g(On(l),!0):On(l);return Cn($,uo,new l.constructor)}function la(l){return jn?Object(jn.call(l)):{}}function ca(l,p){var g=p?Cr(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function ua(l,p){var g=-1,$=l.length;for(p||(p=Array($));++g<$;)p[g]=l[g];return p}function Pn(l,p,g,$){g||(g={});for(var B=-1,W=p.length;++B<W;){var he=p[B],K=void 0;Dn(g,he,K===void 0?l[he]:K)}return g}function fa(l,p){return Pn(l,Mn(l),p)}function ha(l){return Qo(l,Sr,Mn)}function kt(l,p){var g=l.__data__;return va(p)?g[typeof p=="string"?"string":"hash"]:g.map}function Ye(l,p){var g=mo(l,p);return ta(g)?g:void 0}var Mn=Nn?vr(Nn,Object):wa,_e=ea;(Er&&_e(new Er(new ArrayBuffer(1)))!=ae||ft&&_e(new ft)!=m||xr&&_e(xr.resolve())!=_||$r&&_e(new $r)!=M||Ar&&_e(new Ar)!=oe)&&(_e=function(l){var p=Pt.call(l),g=p==v?l.constructor:void 0,$=g?Te(g):void 0;if($)switch($){case wo:return ae;case So:return m;case Oo:return _;case _o:return M;case To:return oe}return p});function pa(l){var p=l.length,g=l.constructor(p);return p&&typeof l[0]=="string"&&xe.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function da(l){return typeof l.constructor=="function"&&!kn(l)?Zo(Eo(l)):{}}function ma(l,p,g,$){var B=l.constructor;switch(p){case ut:return Cr(l);case c:case a:return new B(+l);case ae:return ia(l,$);case Ue:case we:case Ge:case Ft:case Nt:case Lt:case jt:case x:case y:return ca(l,$);case m:return sa(l,$,g);case d:case te:return new B(l);case A:return oa(l);case M:return aa(l,$,g);case j:return la(l)}}function ga(l,p){return p=p??i,!!p&&(typeof l=="number"||C.test(l))&&l>-1&&l%1==0&&l<p}function va(l){var p=typeof l;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?l!=="__proto__":l===null}function ya(l){return!!_n&&_n in l}function kn(l){var p=l&&l.constructor,g=typeof p=="function"&&p.prototype||Dt;return l===g}function Te(l){if(l!=null){try{return Tn.call(l)}catch{}try{return l+""}catch{}}return""}function Ea(l){return br(l,!0,!0)}function Un(l,p){return l===p||l!==l&&p!==p}function xa(l){return $a(l)&&xe.call(l,"callee")&&(!$o.call(l,"callee")||Pt.call(l)==s)}var wr=Array.isArray;function Gn(l){return l!=null&&ba(l.length)&&!Hn(l)}function $a(l){return Ca(l)&&Gn(l)}var Aa=bo||Sa;function Hn(l){var p=Ut(l)?Pt.call(l):"";return p==f||p==h}function ba(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=i}function Ut(l){var p=typeof l;return!!l&&(p=="object"||p=="function")}function Ca(l){return!!l&&typeof l=="object"}function Sr(l){return Gn(l)?zo(l):ra(l)}function wa(){return[]}function Sa(){return!1}e.exports=Ea})(nr,nr.exports);var Ys=nr.exports;const gn=sr(Ys);var vn={exports:{}},kr,Mi;function Zp(){return Mi||(Mi=1,kr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),kr}var Qp=F;F.Node=ke;F.create=F;function F(e){var t=this;if(t instanceof F||(t=new F),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}F.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};F.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};F.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};F.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)td(this,arguments[e]);return this.length};F.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)rd(this,arguments[e]);return this.length};F.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};F.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};F.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};F.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};F.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};F.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};F.prototype.map=function(e,t){t=t||this;for(var r=new F,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};F.prototype.mapReverse=function(e,t){t=t||this;for(var r=new F,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};F.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};F.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};F.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};F.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};F.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new F;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};F.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new F;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};F.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;n!==null&&r<e;r++)n=n.next;for(var i=[],r=0;n&&r<t;r++)i.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var r=2;r<arguments.length;r++)n=ed(this,n,arguments[r]);return i};F.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function ed(e,t,r){var n=t===e.head?new ke(r,null,t,e):new ke(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function td(e,t){e.tail=new ke(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function rd(e,t){e.head=new ke(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function ke(e,t,r,n){if(!(this instanceof ke))return new ke(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Zp()(F)}catch{}const nd=Qp,Fe=Symbol("max"),ge=Symbol("length"),Ke=Symbol("lengthCalculator"),xt=Symbol("allowStale"),je=Symbol("maxAge"),de=Symbol("dispose"),ki=Symbol("noDisposeOnSet"),G=Symbol("lruList"),ne=Symbol("cache"),Vs=Symbol("updateAgeOnGet"),Ur=()=>1;class id{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Fe]=t.max||1/0;const r=t.length||Ur;if(this[Ke]=typeof r!="function"?Ur:r,this[xt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[je]=t.maxAge||0,this[de]=t.dispose,this[ki]=t.noDisposeOnSet||!1,this[Vs]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Fe]=t||1/0,mt(this)}get max(){return this[Fe]}set allowStale(t){this[xt]=!!t}get allowStale(){return this[xt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[je]=t,mt(this)}get maxAge(){return this[je]}set lengthCalculator(t){typeof t!="function"&&(t=Ur),t!==this[Ke]&&(this[Ke]=t,this[ge]=0,this[G].forEach(r=>{r.length=this[Ke](r.value,r.key),this[ge]+=r.length})),mt(this)}get lengthCalculator(){return this[Ke]}get length(){return this[ge]}get itemCount(){return this[G].length}rforEach(t,r){r=r||this;for(let n=this[G].tail;n!==null;){const i=n.prev;Ui(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[G].head;n!==null;){const i=n.next;Ui(this,t,n,r),n=i}}keys(){return this[G].toArray().map(t=>t.key)}values(){return this[G].toArray().map(t=>t.value)}reset(){this[de]&&this[G]&&this[G].length&&this[G].forEach(t=>this[de](t.key,t.value)),this[ne]=new Map,this[G]=new nd,this[ge]=0}dump(){return this[G].map(t=>ir(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[G]}set(t,r,n){if(n=n||this[je],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Ke](r,t);if(this[ne].has(t)){if(s>this[Fe])return rt(this,this[ne].get(t)),!1;const a=this[ne].get(t).value;return this[de]&&(this[ki]||this[de](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[ge]+=s-a.length,a.length=s,this.get(t),mt(this),!0}const o=new sd(t,r,s,i,n);return o.length>this[Fe]?(this[de]&&this[de](t,r),!1):(this[ge]+=o.length,this[G].unshift(o),this[ne].set(t,this[G].head),mt(this),!0)}has(t){if(!this[ne].has(t))return!1;const r=this[ne].get(t).value;return!ir(this,r)}get(t){return Gr(this,t,!0)}peek(t){return Gr(this,t,!1)}pop(){const t=this[G].tail;return t?(rt(this,t),t.value):null}del(t){rt(this,this[ne].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[ne].forEach((t,r)=>Gr(this,r,!1))}}const Gr=(e,t,r)=>{const n=e[ne].get(t);if(n){const i=n.value;if(ir(e,i)){if(rt(e,n),!e[xt])return}else r&&(e[Vs]&&(n.value.now=Date.now()),e[G].unshiftNode(n));return i.value}},ir=(e,t)=>{if(!t||!t.maxAge&&!e[je])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[je]&&r>e[je]},mt=e=>{if(e[ge]>e[Fe])for(let t=e[G].tail;e[ge]>e[Fe]&&t!==null;){const r=t.prev;rt(e,t),t=r}},rt=(e,t)=>{if(t){const r=t.value;e[de]&&e[de](r.key,r.value),e[ge]-=r.length,e[ne].delete(r.key),e[G].removeNode(t)}};class sd{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Ui=(e,t,r,n)=>{let i=r.value;ir(e,i)&&(rt(e,r),e[xt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var od=id;vn.exports=ud;const Gi=Ee,Hi=_a,gt=Zr,ad=or("snyk:resolve:try-require"),Bi=Ys,ld=od,cd={max:100,maxAge:1e3*60*60},zr=new ld(cd),Hr={readFile:Hi.promisify(Gi.readFile),stat:Hi.promisify(Gi.stat)};vn.exports.cache=zr;function ud(e){const t=zr.get(e);if(t){const r=Bi(t);return process.env.TAP&&(r.__cached=!0),Promise.resolve(r)}return Hr.readFile(e,"utf8").then(function(r){let n="";r&&r[0]==="\uFEFF"&&(r=r.slice(1),n="\uFEFF");const i=JSON.parse(r);return i.leading=n+r.match(/^(\s*){/)[1],i.trailing=r.match(/}(\s*)$/)[1],i}).catch(function(r){return ad("tryRequire silently failing on %s",r.message),null}).then(function(r){if(!r)return r;r.devDependencies||(r.devDependencies={}),r.dependencies||(r.dependencies={}),r.name||(r.name=gt.basename(gt.dirname(e))),r.__filename=e;const n=gt.dirname(e),i=[Hr.stat(gt.resolve(n,".snyk")).catch(Yi),Hr.stat(gt.resolve(n,"npm-shrinkwrap.json")).catch(Yi)];return Promise.all(i).then(function(s){return r.snyk||(r.snyk=s[0].isFile()),r.snyk&&(r.snyk=n),s[1].isFile()&&(r.shrinkwrap=!0),r})}).then(function(r){return zr.set(e,r),Bi(r)})}const Yi=function(){return{isFile:function(){return!1}}};var fd=vn.exports;const hd=sr(fd);var pd=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,dd=function(e){if(!e||e.length>254)return!1;var t=pd.test(e);if(!t)return!1;var r=e.split("@");if(r[0].length>64)return!1;var n=r[1].split(".");return!n.some(function(i){return i.length>63})};const md=["not-vulnerable","wont-fix","temporary-ignore"];function Br(e,t,r){if(t!=="ignore"&&t!=="patch")throw new Error('policy.add: unknown type "'+t+'" to add to');if(!r||!r.id||!r.path)throw new Error("policy.add: required option props { id, path }");const n=r.id,i=r.path;if(r.reasonType&&md.indexOf(r.reasonType)===-1)throw new Error("invalid reasonType "+r.reasonType);if(r.ignoredBy){if(typeof r.ignoredBy!="object")throw new Error("ignoredBy must be an object");if(!dd(r.ignoredBy.email))throw new Error("ignoredBy.email must be a valid email address")}const s={...r};e[t][n]||(e[t][n]=[]);const o={};return o[i]=s,e[t][n].push(o),e}function gd(e,t,r="global",n={}){if(!vd(r))throw new Error("invalid file pattern-group");e.exclude=e.exclude??{};let i=e.exclude[r]??[];i=i.filter(o=>typeof o=="string"?o!==t:!o[t]),n.created=new Date;const s=!n.expires&&!n.reason?t:{[t]:n};e.exclude[r]=[...i,s]}function vd(e){return["global","code","iac-drift"].includes(e)}const $e=Ce("snyk:policy");$e.log=console.error.bind(console);function yd(e,t,r=[],n="packageManager"){return e?($e("filtering ignored"),new Date().toJSON(),t.map(i=>{const s=Ed(i),o=$d(i.id,e);if(!e[o]&&!s)return i;$e("%s has rules",i.id);let c=[];if(s){const a=i.securityPolicyMetaData.ignore,{created:u,disregardIfFixable:f,ignoredBy:h,path:m,reason:d="",reasonType:v,source:_}=a;c=[{[m[0]]:{reason:d,reasonType:v,source:_,ignoredBy:h,created:u,disregardIfFixable:f}}]}else c=e[o].filter(a=>{const u=Object.keys(a)[0];if(!wt(i,a,n))return!1;const h=a[u].expires;return h&&!Ad(h,i.id)?!1:a[u].disregardIfFixable&&(i.isUpgradable||i.isPatchable)?($e("%s vuln is fixable and rule is set to disregard if fixable",i.id),!1):($e.enabled&&$e("ignoring based on path match: %s ~= %s",u,i.from.slice(1).join(" > ")),!0)});return c.length&&(i.filtered={ignored:c.map(a=>{const u=Object.keys(a)[0],f=gn(a[u]);return f.path=u.split(" > "),f})},r.push(i)),c.length?null:i}).filter(xd)):t}const Ed=e=>!!(e.securityPolicyMetaData&&e.securityPolicyMetaData.ignore),xd=e=>e!==null;function $d(e,t){const r=Object.keys(t).find(n=>n.toUpperCase()===e.toUpperCase());return r||e}function Ad(e,t){return typeof e=="string"&&(e=new Date(e)),isNaN(e.getTime())?($e("%s vuln rule has invalid expiry date (%s)",t,e),!1):e<new Date?($e("%s vuln rule has expired (%s)",t,e),!1):!0}const Re=Ce("snyk:policy");Re.log=console.error.bind(console);function bd(e,t){if(!e)return t;Re("attaching notes");const r=new Date().toJSON();return t.map(n=>(e[n.id]&&(Re("%s has rules",n.id),e[n.id].forEach(i=>{var a,u,f;const s=Object.keys(i)[0];let o=i[s].expires;const c=wt(n,i);if(o&&o instanceof Date&&(o=o.toJSON()),c&&o&&o<r)return Re("%s vuln rule has expired (%s)",n.id,o),!1;if(c&&i[s].disregardIfFixable&&((a=n.upgradePath)!=null&&a.length||(u=n.patches)!=null&&u.length))return Re("%s vuln is fixable and rule is set to disregard if fixable",n.id),!1;if(c){const h=(f=i[s].reason)==null?void 0:f.replace("/[\0--Ÿ]/u","");Re.enabled&&Re("adding note based on path match: %s ~= %s",s,n.from.slice(1).join(" > ")),n.note="Snyk policy in "+i[s].from+" suggests ignoring this issue, with reason: "+h}return!1})),n))}var yn={exports:{}},En={exports:{}},ct={exports:{}};const Cd=Object.keys,wd=e=>Object.prototype.toString.call(e),xn=e=>wd(e).slice(8,-1).toLowerCase(),Sd=e=>typeof e=="string"||xn(e)==="string";function Od(e){if(xn(e)!=="object")return!1;const t=Object.getPrototypeOf(e);return t==null?!0:(t.constructor&&t.constructor.toString())===Object.toString()}function _d(e,t,r=null){for(const[n,i]of e.entries())if(t.call(r,i,n,e)===!1)return!1;return!0}function Td(e,t){const r={};for(const n of Cd(e)){const i=e[n];r[n]=t(i,n,e)}return r}var Rd={isArrayOf:_d,getType:xn,isString:Sd,isPlainObject:Od,map:Td};const{isString:qs,getType:ot,isPlainObject:$n,isArrayOf:Xs,map:An}=Rd,Ws=Array.isArray,bn=e=>!/.+(Sync|Stream|Promise)$/.test(e);function It(e,t=null){if(typeof e!="function")throw TypeError(`Expected target function. Received ${ot(e)}`);return function(...r){return t||(t=this),new Promise((n,i)=>{const s=(o,c)=>o?i(o):n(c);e.call(t,...r,s)})}}function Id(e,t){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);return An(e,(r,n)=>bn(n)?It(r,t):r)}function Fd(e,t,r){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);if(!Ws(t))throw new TypeError(`Expected list as an array. Received ${ot(t)}`);if(!Xs(t,qs))throw new TypeError("Each element in the list should be a string.");return An(e,(n,i)=>bn(i)&&t.includes(i)?It(n,r):n)}function Nd(e,t,r){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);if(!Ws(t))throw new TypeError(`Expected list as an array. Received ${ot(t)}`);if(!Xs(t,qs))throw new TypeError("Each element in the list should be a string.");return An(e,(n,i)=>bn(i)&&!t.includes(i)?It(n,r):n)}ct.exports=It;ct.exports.default=It;ct.exports.all=Id;ct.exports.some=Fd;ct.exports.except=Nd;var Ld=ct.exports;const Vi=Ee,jd=Ld,Dd=e=>typeof e=="function",Pd=["access","readFile","writeFile","copyFile","close","open","read","write","rename","rmdir","mkdir","readdir","stat","lstat","fstat","appendFile","realpath","link","unlink","readlink","chmod","fchmod","chown","fchown","lchown","fsync","utimes","futimes","ftruncate"],Ks=jd.some(Vi,Pd.filter(e=>Dd(Vi[e])));En.exports=Ks;En.exports.default=Ks;var Md=En.exports;yn.exports=Js;yn.exports.sync=Zs;var zs=Md,ce=Zr,ye=or("snyk:resolve");function Js(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");return ye("%s: %s",e,r),zs.stat(r).then(function(n){if(n.isFile())return ce.dirname(r)}).catch(function(n){if(ye("%s: not found on %s (root? %s)",e,t,Jr(t)),Jr(t))throw ye("at root"),n=new Error("package not found "+e),n.code="NO_PACKAGE_FOUND",n}).then(function(n){return n?(ye("%s: FOUND AT %s",e,n),n):(ye("%s: cycling down",e),Js(e,ce.resolve(t,"..")))})}function Zs(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");ye("%s: %s",e,r);var n=function(s){var o;try{o=zs.statSync(s)}catch(c){if(c&&c.code==="ENOENT")return!1}return o.isFile()||o.isFIFO()};if(n(r))return ye("%s: FOUND AT %s",e,r),ce.dirname(r);if(Jr(t)){ye("%s: not found on %s (now at root)",e,r);var i=new Error("package not found "+e);throw i.code="NO_PACKAGE_FOUND",i}return ye("%s: cycling down",e),Zs(e,ce.resolve(t,".."))}function Jr(e){var t=kd(e);return t.root===t.dir&&!t.base}function kd(e){if(ce.parse)return ce.parse(e);var t=e.split(ce.sep),r=t[0]+ce.sep;return{base:t[1],root:r,dir:e}}var Ud=yn.exports;const Gd=sr(Ud),Qs=Ce("snyk:policy");Qs.log=console.error.bind(console);function Hd(e,t,r){var o;const n=e.from.slice(1).map(c=>Je(c).name),i=Z.resolve(t||process.cwd(),"node_modules",n.join("/node_modules/"));let s=e.__filename?Z.dirname(e.__filename):i;try{Ee.statSync(s)}catch{try{s=Gd.sync((o=n.slice(-1))==null?void 0:o.pop(),i)}catch(a){throw a}Qs("found better source for package: %s",s)}return s}const vt=Ce("snyk:policy");vt.log=console.error.bind(console);function Bd(e,t,r,n,i=[]){return e?(vt("filtering patched"),t.map(s=>{if(!e[s.id])return s;vt("%s has rules",s.id);const c=e[s.id].map(a=>{if(wt(s,a)){const f=Object.keys(a)[0];return vt("(patch) ignoring based on path match: %s ~= %s",f,s.from.slice(1).join(" > ")),a}return null}).filter(qi).filter(()=>{if(n)return!0;const a=Hd(s,r),u=s.id.replace(/:/g,"-"),f=Z.resolve(a,".snyk-"+u+".flag"),h=Z.resolve(a,".snyk-"+s.id+".flag");let m=!1;try{m=Ee.statSync(f)}catch{try{m=Ee.statSync(h)}catch{}}return vt("flag found for %s? %s",s.id),!!m});return c.length&&(s.filtered={patches:c.map(a=>{const u=Object.keys(a)[0],f=gn(a[u])||{};return f.path=u.split(" > "),f})},i.push(s)),c.length?null:s}).filter(qi)):t}const qi=e=>e!==null,eo=Ce("snyk:policy");eo.log=console.error.bind(console);function Yd(e,t,r,n="packageManager"){r||(r=process.cwd());const i=e;if(e.ok)return i;const s={ignore:[],patch:[]};if(i.vulnerabilities=yd(t.ignore,i.vulnerabilities,s.ignore,n),i.vulnerabilities=Bd(t.patch,i.vulnerabilities,r,!!t.skipVerifyPatch,s.patch),t.suggest&&(i.vulnerabilities=bd(t.suggest,i.vulnerabilities)),i.vulnerabilities.length===0&&(i.ok=!0,i.vulnerabilities=[]),i.filtered=s,eo("> has threshold? %s",t.failThreshold),t.failThreshold&&e.ok===!1){const o={critical:4,high:3,medium:2,low:1},c=o[t.failThreshold];i.ok=!0,i.vulnerabilities.some(a=>a.severity&&o[a.severity]>=c?(i.ok=!1,!0):!1)}return i}class gr extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,gr.prototype),this.code=r}}function to(e){return Object.prototype.toString.call(e)==="[object Object]"}function ro(e){return e instanceof Error}const ze=Ce("snyk:policy");ze.log=console.error.bind(console);const Vd=()=>"v1.25.1",qd=()=>io("");function Xd(){return Z.resolve(process.cwd(),".snyk")}function no(e){return e.filter=(t,r,n="packageManager")=>Yd(t,e,r||Z.dirname(e.__filename),n),e.save=(t,r)=>oo(e,t,r),e.toString=()=>lo(e),e.demunge=t=>ao(e,t),e.add=(t,r)=>Br(e,t,r),e.addIgnore=t=>Br(e,"ignore",t),e.addPatch=t=>Br(e,"patch",t),e.addExclude=(t,r,n)=>gd(e,t,r,n),e}async function io(e=""){const t=await Jt(e),r=Date.now();return t.__filename="",t.__modified=r,t.__created=r,no(t)}function so(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=void 0),e||(e=process.cwd()),t||(t={});const r=!!t["ignore-policy"];let n="";Array.isArray(e)?n=e[0]:(e.indexOf(".snyk")===-1&&(e=Z.resolve(e,".snyk")),n=e),n.indexOf(".snyk")===-1&&(n=Z.resolve(n,".snyk"));try{Ee.lstatSync(n).isDirectory()&&(n=Z.join(n,"/.snyk"))}catch(o){if(ro(o)&&o.code==="ENOENT")ze("ENOENT on file, while checking if directory");else throw o}const s=[new Promise(o=>{if(r)return o(Jt());if(!r&&Array.isArray(e))return o(Wd(e,t).then(c=>(ze.enabled&&(ze("final policy:"),ze(JSON.stringify(c,null,2))),c)));o(Ee.promises.readFile(n,"utf8").then(Jt))}),Ee.promises.stat(n).catch(()=>({}))];return Promise.all(s).catch(o=>{if(t!=null&&t.loose&&o.code==="ENOENT")return ze("ENOENT on file, but running loose"),[Jt(),{}];throw o}).then(o=>{const c=o[0];return c.__modified=o[1].mtime,c.__created=o[1].birthtime||o[1].ctime,t!=null&&t.loose&&!c.__modified?c.__filename=null:c.__filename=Z.relative(process.cwd(),n),c}).then(no)}async function Wd(e,t){const r=t&&t["trust-policies"]?"ignore":"suggest",[n,...i]=await Promise.all(e.map(s=>so(s,t)));return await Promise.all(i.filter(s=>s.__filename).map(async s=>{const o=Z.dirname(s.__filename)+"/package.json",c=await hd(o),a=c.name+"@"+c.version;Xi("ignore",r,a,n,s),Xi("patch","patch",a,n,s)})),n}function Xi(e,t,r,n,i){n[t]||(n[t]={}),Object.keys(i[e]).forEach(s=>{if(i[e][s]=i[e][s].map(o=>{const c=Object.keys(o).pop(),a={};return a[r+" > "+c]=o[c],o[c]=o[c]||{},o[c].from=r,a}),!n[t][s]){n[t][s]=i[e][s];return}n[t][s]=n[t][s].concat(i[e][s])})}async function oo(e,t,r){const n=t?Z.resolve(t,".snyk"):Xd(),i="Saving .snyk policy file...";if(!r){const o=c=>Promise.resolve(c);o.clear=o,r=o}await r(i);const s=await lo(e);return await Ee.promises.writeFile(n,s),r.clear(i)}const Kd="# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.",Wi={ignore:"# ignores vulnerabilities until expiry date; change duration by modifying expiry date",patch:"# patches apply the minimum changes required to fix a vulnerability"};function zd(e){const t=e.split(`
`);t.unshift(Kd);for(const r in Wi){const n=r,i=t.indexOf(n+":");i!==-1&&t.splice(i,0,Wi[n])}return t.join(`
`)}function Jd(e){if(e.ignore||(e.ignore={}),e.patch||(e.patch={}),(r=>Object.prototype.toString.call(r)==="[object Object]")(e.patch))for(const r in e.patch)Array.isArray(e.patch[r])||delete e.patch[r];return Zd(e.ignore),Ki(e.ignore),Ki(e.patch),e.failThreshold=e0(e),e.failThreshold||delete e.failThreshold,e}function Zd(e){if(t0(e)){for(const t in e)if(e[t]&&!Array.isArray(e[t])){const r=new Error("old, unsupported .snyk format detected");throw r.code="OLD_DOTFILE_FORMAT",r}}}function Ki(e){for(const[r,n]of Object.entries(e)){e[r]=n??[];for(const i of e[r])for(const s in i)i[s]=i[s]??{}}const t=Qd(e);t&&t.forEach(r=>{const n={};n[r.key]=r.rule,e[r.id].push(n)})}function Qd(e){const t=[];for(const r in e)for(const n of e[r]){const i=Object.keys(n);if(i.shift(),i===0)return;i.forEach(s=>{t.push({id:r,key:s,rule:n[s]}),delete n[s]})}return t.length?t:!1}function e0(e){const t=["failThreshold","fail_threshold","failthreshold","threshold","fail_threshhold"].map(n=>e[n]).find(n=>n);if(!t||typeof t!="string")return null;const r=t.toLowerCase().trim();if(!r0(r))throw new gr('unknown threshold value "'+r+'"',"POLICY_BAD_THRESHOLD");return r}const t0=e=>Object.prototype.toString.call(e)==="[object Object]";function r0(e){return["high","medium","low"].indexOf(e)>-1}function ao(e,t){const r=["ignore","patch","exclude"].reduce((n,i)=>{const s=e[i];return n[i]=s?Object.keys(s).map(o=>{const c=s[o].map(a=>{if(i==="exclude"&&typeof a=="string")return{path:a};const u=a,f=Object.keys(u).pop(),h={path:f};if(i==="ignore"||i==="exclude"){const m=u[f].expires;h.reason=u[f].reason,h.expires=m?new Date(m):void 0,h.disregardIfFixable=u[f].disregardIfFixable}return h});return{id:o,url:n0(o,t)+"/vuln/"+o,paths:c}}):[],n},{});return r.version=e.version,r}function n0(e,t){return t==null?"":typeof t=="function"?t(e):t}const i0="v1",s0={v1:Jd};function Jt(e=""){const t=Bs.load(e),r=to(t)?t:{};let i=(o=>typeof o.version=="string")(r)?r.version:i0;i==="v1"&&(i="v1.0.0"),r.version=i;const s=s0["v"+qr.major(i.substr(1))];if(!s)throw new Error("unsupported version: "+r.version);return s(r)}function lo(e){const t=gn(e);for(const r in t){const n=r;n.indexOf("__")===0&&delete t[n],t[n]==null&&delete t[n],typeof t[n]=="function"&&delete t[n]}return t.version=Vd(),zd(Bs.dump(t))}exports.PolicyError=gr;exports.create=qd;exports.demunge=ao;exports.getByVuln=tf;exports.isNodeError=ro;exports.isObject=to;exports.load=so;exports.loadFromText=io;exports.matchToRule=wt;exports.save=oo;
/***/ })
};
;
//# sourceMappingURL=284.index.js.map