UNPKG

chromatic

Version:

Automate visual testing across browsers. Gather UI feedback. Versioned documentation.

578 lines • 893 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3ede1013-5e6b-5dd8-8060-90fd16c7cb53")}catch(e){}}();
const e=require("./rolldown-runtime-DMt3xDJx.cjs"),t=require("./e2ePackage-Osg93awL.cjs"),n=require("./constants-ZEFPKCy1.cjs"),r=require("./icons-Cd4LHEK-.cjs"),i=require("./log-CBUJ6DPe.cjs"),a=require("./setExitCode-BDUkPwrs.cjs");let o=require("fs");o=e.a(o);let s=require("path");s=e.a(s);let c=require("os");c=e.a(c);let l=require("semver");l=e.a(l);function u(e,n){let r=t.wn(),i=t.En();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:t.Jn(),...e},c=a?t._r(()=>a(s,n)):s;c!==null&&(r.emit&&r.emit(`beforeAddBreadcrumb`,c,n),i.addBreadcrumb(c,o))}var d=/* @__PURE__ */ e.t(((e,t,n)=>{(function(n,r){
/* istanbul ignore else */
typeof require==`function`&&typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(function(){return r()}):n.pluralize=r()})(n,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:!e.hasOwnProperty(i)&&l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){typeof e==`string`?n[e.toLowerCase()]=!0:(f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`))},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})),f=/* @__PURE__ */ e.a(r.o()),p=r.a(),m=/* @__PURE__ */ e.a(d());const h=e=>t.St(e.options)?`test suite`:`Storybook`;function g(e){return t.St(e.options)?`test`:`story`}function _(e){return t.St(e.options)?`test suite`:`stories`}const v=e=>e.charAt(0).toUpperCase()+e.slice(1);function y(e,{bailSubreason:n,bailPath:r,additionalTags:i}){return t.jt(e,{tags:{bail_path:r,...n&&{bail_detail:n},...i},...n&&{fingerprint:[n]}})}function b(e){let t=s.default.basename(e);return i.r.find(e=>t===e)}function x(e){if(e instanceof t.ht){let t=b(e.lockfilePath);return{bailSubreason:`lockfileSizeExceeded`,...t&&{lockfileKind:t},lockfileSizeBytes:e.lockfileSizeBytes}}if(e instanceof t.mt){let t=b(e.lockfilePath);return{bailSubreason:`lockfileParseFailed`,...t&&{lockfileKind:t}}}return e instanceof t.ut?{bailSubreason:`baselineCheckoutFailed`}:{}}function S(e){return e instanceof t.lt?{bailSubreason:`ancestorMissing`}:e instanceof t.dt?{bailSubreason:`baselineDirty`}:e instanceof t.gt?{bailSubreason:`networkError`}:e instanceof t._t?{bailSubreason:`replacementFailed`}:e instanceof t.ft?{bailSubreason:`gitCommandFailed`}:{}}function C(e,{traced:n,storybookDirectory:r}){let i=t.m(t.c(e),r);return i&&!(i===`previewConfig`&&n)?{bailSubreason:i}:{bailSubreason:`importsOfPreviewConfig`}}var w=({packageName:e})=>(0,p.dedent)(f.default`
    ${r.i} {bold TurboSnap disabled due to a dependency change}
    Found a change to {bold ${e}}, which renders every snapshot in this build.
    A full build is required because this change cannot be linked to any specific tests.
    ${r.n} Read more at ${t.Tt(`https://www.chromatic.com/docs/turbosnap#how-it-works`)}
  `),T=({turboSnap:e})=>{let{changedPackageFiles:n,changedStaticFiles:a,changedStorybookFiles:o}=e?.bailReason||{},s=n||o||a,c=s?.every(e=>i.l(e)),[l,...u]=s||[],d=n?`package file`:`static file`;c&&(d=`dependency`),o&&(d=`Storybook config`);let m=``;u.length===1&&(m=f.default` or its module sibling {bold ${u[0]}}`),u.length>1&&(m=f.default` or one of its ${u.length} module siblings:\n{dim →} ${u.map(e=>f.default.bold(e)).join(f.default`\n{dim →} `)}`);let h=``,g=e?.bailPath;if(g&&g.length>1){let[e]=g,t=g.map(e=>f.default`{dim →} {bold ${e}}`).join(`
`);h=f.default`\nThis was triggered by a change to {bold ${e}}, which is imported by {bold ${l}}:\n${t}`}return(0,p.dedent)(f.default`
    ${r.i} {bold TurboSnap disabled due to file change}
    Found a ${d} change in {bold ${l}}${m}${h}
    A full build is required because this file cannot be linked to any specific stories.
    ${r.n} Read more at ${t.Tt(`https://www.chromatic.com/docs/turbosnap#how-it-works`)}
  `)};const E=()=>(0,p.dedent)(f.default`
    ${r.t} TurboSnap disabled until base directory is set correctly
    The base directory allows TurboSnap to trace files.
    Set the {bold --storybook-base-dir} option as the relative path from the repository root to the Storybook project root.
    Run {bold @chromatic-com/turbosnap-helper} to get your base directory value.
  `),D=()=>(0,p.dedent)(f.default`
    ${r.t} TurboSnap failed
    Vitest run did not produce source file information for TurboSnap.
    Make sure you've enabled ${f.default.bold(`chromaticPlugin({ turboSnap: true })`)} in your test Vitest configuration before running tests.
    ${r.n} Read more at ${t.Tt(`https://www.chromatic.com/docs/vitest/turbosnap`)}
  `),O={exitCode:a.n.INVALID_OPTIONS,userError:!0};async function k(e,n){let r=await t.K(e);if(!r)throw Error(`Failed to determine repository root`);let{storybookBaseDir:i=s.default.relative(r,``)}=e.options,c=n.modules.filter(e=>!e.name.includes(`node_modules`)&&e.name!==`./storybook-stories.js`&&/\.(js|jsx|ts|tsx)$/.test(e.name));if(e.options.vitest&&c.length===0)throw new a.t(D(),O);let l=t.wt(1e3);try{await Promise.any(c.map(t=>l(()=>{let n=s.default.join(r,i,t.name);return new Promise((t,r)=>o.access(n,i=>{i?(e.log.debug(`Not found:`,n),r()):t(!0)}))})))}catch{throw e.log.debug(`Invalid storybookBaseDir: ${i}`),new a.t(E(),O)}}async function A(e,n){if(n instanceof t.ut)return j(e,n)}async function j(e,n){let{reference:r,fileName:i}=ee(n.pathspec);try{if(!await t.M(e,r))return{baseline_failure_kind:`baselineCommitMissing`};let n=s.default.basename(i);return{baseline_failure_kind:M(await t.z(e,r,`HEAD`,`:(glob,top)**/${n}`),i)}}catch(e){return u({level:`error`,category:`classifyBaselineCheckoutFailure`,message:`Error classifying baseline checkout failure`,data:{name:e.name,message:e.message,stack:e.stack}}),{baseline_failure_kind:`unknownBaselineCheckoutFailure`}}}function M(e,t){return e.some(e=>e.status===`renamed`&&e.path===t)?`baselineManifestMoved`:e.some(e=>e.status===`added`&&e.path===t)?`baselineManifestAdded`:`unknownBaselineCheckoutFailure`}function ee(e){let t=e.indexOf(`:`);return{reference:e.slice(0,t),fileName:e.slice(t+1)}}var te=/* @__PURE__ */ e.t(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),N=/* @__PURE__ */ e.t(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function o(e,t){return function(n){return e(t(n))}}var s=Object.prototype,c=s.hasOwnProperty,l=s.toString,u=s.propertyIsEnumerable,d=o(Object.keys,Object);function f(e,t){var n=C(e)||S(e)?a(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||c.call(e,o))&&(!i||o!=`length`&&!y(o,r))&&n.push(o);return n}var p=_(h),m=v();function h(e,t){return e&&m(e,t,A)}function g(e){if(!b(e))return d(e);var t=[];for(var n in Object(e))c.call(e,n)&&n!=`constructor`&&t.push(n);return t}function _(e,t){return function(n,r){if(n==null)return n;if(!w(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function v(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function y(e,t){return t??=n,!!t&&(typeof e==`number`||r.test(e))&&e>-1&&e%1==0&&e<t}function b(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||s)}function x(e,t){return(C(e)?i:p)(e,typeof t==`function`?t:j)}function S(e){return T(e)&&c.call(e,`callee`)&&(!u.call(e,`callee`)||l.call(e)==`[object Arguments]`)}var C=Array.isArray;function w(e){return e!=null&&D(e.length)&&!E(e)}function T(e){return k(e)&&w(e)}function E(e){var t=O(e)?l.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function D(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function O(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function k(e){return!!e&&typeof e==`object`}function A(e){return w(e)?f(e):g(e)}function j(e){return e}t.exports=x})),ne=/* @__PURE__ */ e.t(((e,t)=>{var n=`[object Map]`,r=`[object Promise]`,i=`[object Set]`,a=`[object WeakMap]`,o=`[object DataView]`,s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=typeof global==`object`&&global&&global.Object===Object&&global,u=typeof self==`object`&&self&&self.Object===Object&&self,d=l||u||Function(`return this`)(),f=typeof e==`object`&&e&&!e.nodeType&&e,p=f&&typeof t==`object`&&t&&!t.nodeType&&t,m=p&&p.exports===f;function h(e,t){return e?.[t]}function g(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function _(e,t){return function(n){return e(t(n))}}var v=Function.prototype,y=Object.prototype,b=d[`__core-js_shared__`],x=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),S=v.toString,C=y.hasOwnProperty,w=y.toString,T=RegExp(`^`+S.call(C).replace(s,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),E=m?d.Buffer:void 0,D=y.propertyIsEnumerable,O=E?E.isBuffer:void 0,k=_(Object.keys,Object),A=z(d,`DataView`),j=z(d,`Map`),M=z(d,`Promise`),ee=z(d,`Set`),te=z(d,`WeakMap`),N=!D.call({valueOf:1},`valueOf`),ne=H(A),re=H(j),P=H(M),F=H(ee),I=H(te);function L(e){return w.call(e)}function R(e){return!de(e)||B(e)?!1:(le(e)||g(e)?T:c).test(H(e))}function z(e,t){var n=h(e,t);return R(n)?n:void 0}var ie=L;(A&&ie(new A(/* @__PURE__ */ new ArrayBuffer(1)))!=o||j&&ie(new j)!=n||M&&ie(M.resolve())!=r||ee&&ie(new ee)!=i||te&&ie(new te)!=a)&&(ie=function(e){var t=w.call(e),s=t==`[object Object]`?e.constructor:void 0,c=s?H(s):void 0;if(c)switch(c){case ne:return o;case re:return n;case P:return r;case F:return i;case I:return a}return t});function B(e){return!!x&&x in e}function V(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||y)}function H(e){if(e!=null){try{return S.call(e)}catch{}try{return e+``}catch{}}return``}function U(e){return se(e)&&C.call(e,`callee`)&&(!D.call(e,`callee`)||w.call(e)==`[object Arguments]`)}var ae=Array.isArray;function oe(e){return e!=null&&ue(e.length)&&!le(e)}function se(e){return fe(e)&&oe(e)}var ce=O||pe;function W(e){if(oe(e)&&(ae(e)||typeof e==`string`||typeof e.splice==`function`||ce(e)||U(e)))return!e.length;var t=ie(e);if(t==n||t==i)return!e.size;if(N||V(e))return!k(e).length;for(var r in e)if(C.call(e,r))return!1;return!0}function le(e){var t=de(e)?w.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function ue(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}function de(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function fe(e){return!!e&&typeof e==`object`}function pe(){return!1}t.exports=W})),re=/* @__PURE__ */ e.t(((e,t)=>{var n=typeof global==`object`&&global&&global.Object===Object&&global,r=typeof self==`object`&&self&&self.Object===Object&&self,i=n||r||Function(`return this`)(),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i.Symbol,l=c?c.toStringTag:void 0;function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:l&&l in Object(e)?d(e):f(e)}function d(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch{}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}function f(e){return s.call(e)}function p(e){if(!m(e))return!1;var t=u(e);return t==`[object Function]`||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function m(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=p})),P=/* @__PURE__ */ e.t(((e,t)=>{function n(e){return e===void 0}t.exports=n})),F=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,M=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,N=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,P={};P[x]=P[S]=P[C]=P[w]=P[T]=P[E]=P[D]=P[O]=P[k]=!0,P[i]=P[a]=P[y]=P[o]=P[b]=P[s]=P[c]=P[l]=P[u]=P[d]=P[f]=P[m]=P[h]=P[g]=P[v]=!1;var F=typeof global==`object`&&global&&global.Object===Object&&global,I=typeof self==`object`&&self&&self.Object===Object&&self,L=F||I||Function(`return this`)(),R=typeof e==`object`&&e&&!e.nodeType&&e,z=R&&typeof t==`object`&&t&&!t.nodeType&&t,ie=z&&z.exports===R&&F.process,B=function(){try{return ie&&ie.binding(`util`)}catch{}}(),V=B&&B.isTypedArray;function H(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ae(e){return function(t){return t?.[e]}}function oe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function se(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ce(e){return function(t){return e(t)}}function W(e,t){return e?.[t]}function le(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ue(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function de(e,t){return function(n){return e(t(n))}}function fe(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var pe=Array.prototype,me=Function.prototype,he=Object.prototype,ge=L[`__core-js_shared__`],_e=function(){var e=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ve=me.toString,G=he.hasOwnProperty,ye=he.toString,be=RegExp(`^`+ve.call(G).replace(te,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),xe=L.Symbol,Se=L.Uint8Array,Ce=he.propertyIsEnumerable,we=pe.splice,K=de(Object.keys,Object),q=Ft(L,`DataView`),Te=Ft(L,`Map`),J=Ft(L,`Promise`),Ee=Ft(L,`Set`),De=Ft(L,`WeakMap`),Oe=Ft(Object,`create`),ke=qt(q),Ae=qt(Te),je=qt(J),Me=qt(Ee),Ne=qt(De),Pe=xe?xe.prototype:void 0,Fe=Pe?Pe.valueOf:void 0,Ie=Pe?Pe.toString:void 0;function Le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(){this.__data__=Oe?Oe(null):{}}function ze(e){return this.has(e)&&delete this.__data__[e]}function Be(e){var t=this.__data__;if(Oe){var r=t[e];return r===n?void 0:r}return G.call(t,e)?t[e]:void 0}function Ve(e){var t=this.__data__;return Oe?t[e]!==void 0:G.call(t,e)}function Y(e,t){var r=this.__data__;return r[e]=Oe&&t===void 0?n:t,this}Le.prototype.clear=Re,Le.prototype.delete=ze,Le.prototype.get=Be,Le.prototype.has=Ve,Le.prototype.set=Y;function X(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(){this.__data__=[]}function Ue(e){var t=this.__data__,n=lt(t,e);return n<0?!1:(n==t.length-1?t.pop():we.call(t,n,1),!0)}function We(e){var t=this.__data__,n=lt(t,e);return n<0?void 0:t[n][1]}function Ge(e){return lt(this.__data__,e)>-1}function Ke(e,t){var n=this.__data__,r=lt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}X.prototype.clear=He,X.prototype.delete=Ue,X.prototype.get=We,X.prototype.has=Ge,X.prototype.set=Ke;function qe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Je(){this.__data__={hash:new Le,map:new(Te||X),string:new Le}}function Ye(e){return Nt(this,e).delete(e)}function Xe(e){return Nt(this,e).get(e)}function Ze(e){return Nt(this,e).has(e)}function Qe(e,t){return Nt(this,e).set(e,t),this}qe.prototype.clear=Je,qe.prototype.delete=Ye,qe.prototype.get=Xe,qe.prototype.has=Ze,qe.prototype.set=Qe;function $e(e){var t=-1,n=e?e.length:0;for(this.__data__=new qe;++t<n;)this.add(e[t])}function et(e){return this.__data__.set(e,n),this}function tt(e){return this.__data__.has(e)}$e.prototype.add=$e.prototype.push=et,$e.prototype.has=tt;function nt(e){this.__data__=new X(e)}function rt(){this.__data__=new X}function it(e){return this.__data__.delete(e)}function at(e){return this.__data__.get(e)}function ot(e){return this.__data__.has(e)}function st(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!Te||r.length<199)return r.push([e,t]),this;n=this.__data__=new qe(r)}return n.set(e,t),this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e,t){var n=Q(e)||Xt(e)?se(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||G.call(e,a))&&(!i||a!=`length`&&!Rt(a,r))&&n.push(a);return n}function lt(e,t){for(var n=e.length;n--;)if(Yt(e[n][0],t))return n;return-1}var ut=Ot(ft),dt=kt();function ft(e,t){return e&&dt(e,t,ln)}function pt(e,t){t=zt(t,e)?[t]:Dt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kt(t[n++])];return n&&n==r?e:void 0}function mt(e){return ye.call(e)}function ht(e,t){return e!=null&&t in Object(e)}function gt(e,t,n,r,i){return e===t?!0:e==null||t==null||!tn(e)&&!nn(t)?e!==e&&t!==t:_t(e,t,gt,n,r,i)}function _t(e,t,n,r,o,s){var c=Q(e),l=Q(t),u=a,d=a;c||(u=It(e),u=u==i?f:u),l||(d=It(t),d=d==i?f:d);var p=u==f&&!le(e),m=d==f&&!le(t),h=u==d;if(h&&!p)return s||=new nt,c||an(e)?At(e,t,n,r,o,s):jt(e,t,u,n,r,o,s);if(!(o&2)){var g=p&&G.call(e,`__wrapped__`),_=m&&G.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new nt,n(v,y,r,o,s)}}return h?(s||=new nt,Mt(e,t,n,r,o,s)):!1}function vt(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new nt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?gt(u,l,r,3,d):f))return!1}}return!0}function yt(e){return!tn(e)||Vt(e)?!1:($t(e)||le(e)?be:ne).test(qt(e))}function bt(e){return nn(e)&&en(e.length)&&!!P[ye.call(e)]}function xt(e){return typeof e==`function`?e:e==null?un:typeof e==`object`?Q(e)?wt(e[0],e[1]):Ct(e):dn(e)}function St(e){if(!Ht(e))return K(e);var t=[];for(var n in Object(e))G.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ct(e){var t=Pt(e);return t.length==1&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||vt(n,e,t)}}function wt(e,t){return zt(e)&&Ut(t)?Wt(Kt(e),t):function(n){var r=sn(n,e);return r===void 0&&r===t?cn(n,e):gt(t,r,void 0,3)}}function Tt(e){return function(t){return pt(t,e)}}function Et(e){if(typeof e==`string`)return e;if(rn(e))return Ie?Ie.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Dt(e){return Q(e)?e:Gt(e)}function Ot(e,t){return function(n,r){if(n==null)return n;if(!Zt(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function kt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function At(e,t,n,r,i,a){var o=i&2,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new $e:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!U(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===m||n(p,m,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function jt(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new Se(e),new Se(t)));case o:case s:case d:return Yt(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=ue;case h:var p=a&2;if(f||=fe,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;a|=1,l.set(e,t);var x=At(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Fe)return Fe.call(e)==Fe.call(t)}return!1}function Mt(e,t,n,r,i,a){var o=i&2,s=ln(e),c=s.length;if(c!=ln(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:G.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function Nt(e,t){var n=e.__data__;return Bt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Pt(e){for(var t=ln(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ut(i)]}return t}function Ft(e,t){var n=W(e,t);return yt(n)?n:void 0}var It=mt;(q&&It(new q(/* @__PURE__ */ new ArrayBuffer(1)))!=b||Te&&It(new Te)!=u||J&&It(J.resolve())!=p||Ee&&It(new Ee)!=h||De&&It(new De)!=v)&&(It=function(e){var t=ye.call(e),n=t==f?e.constructor:void 0,r=n?qt(n):void 0;if(r)switch(r){case ke:return b;case Ae:return u;case je:return p;case Me:return h;case Ne:return v}return t});function Lt(e,t,n){t=zt(t,e)?[t]:Dt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Kt(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&en(a)&&Rt(o,a)&&(Q(e)||Xt(e))}function Rt(e,t){return t??=r,!!t&&(typeof e==`number`||re.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t){if(Q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||rn(e)?!0:j.test(e)||!A.test(e)||t!=null&&e in Object(t)}function Bt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Vt(e){return!!_e&&_e in e}function Ht(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||he)}function Ut(e){return e===e&&!tn(e)}function Wt(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var Gt=Z(function(e){e=on(e);var t=[];return M.test(e)&&t.push(``),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function Kt(e){if(typeof e==`string`||rn(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function qt(e){if(e!=null){try{return ve.call(e)}catch{}try{return e+``}catch{}}return``}function Jt(e,t,n){var r=Q(e)?H:oe,i=arguments.length<3;return r(e,xt(t,4),n,i,ut)}function Z(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Z.Cache||qe),n}Z.Cache=qe;function Yt(e,t){return e===t||e!==e&&t!==t}function Xt(e){return Qt(e)&&G.call(e,`callee`)&&(!Ce.call(e,`callee`)||ye.call(e)==i)}var Q=Array.isArray;function Zt(e){return e!=null&&en(e.length)&&!$t(e)}function Qt(e){return nn(e)&&Zt(e)}function $t(e){var t=tn(e)?ye.call(e):``;return t==l||t==`[object GeneratorFunction]`}function en(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function tn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function nn(e){return!!e&&typeof e==`object`}function rn(e){return typeof e==`symbol`||nn(e)&&ye.call(e)==_}var an=V?ce(V):bt;function on(e){return e==null?``:Et(e)}function sn(e,t,n){var r=e==null?void 0:pt(e,t);return r===void 0?n:r}function cn(e,t){return e!=null&&Lt(e,t,ht)}function ln(e){return Zt(e)?ct(e):St(e)}function un(e){return e}function dn(e){return zt(e)?ae(Kt(e)):Tt(e)}t.exports=Jt})),I=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=1/0,i=9007199254740991,a=`[object Arguments]`,o=`[object Function]`,s=`[object GeneratorFunction]`,c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)();function p(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function m(e,t){return!!(e&&e.length)&&v(e,t,0)>-1}function h(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function g(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function _(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function v(e,t,n){if(t!==t)return _(e,y,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function y(e){return e!==e}function b(e,t){return e.has(t)}function x(e,t){return e?.[t]}function S(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function C(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var w=Array.prototype,T=Function.prototype,E=Object.prototype,D=f[`__core-js_shared__`],O=function(){var e=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),k=T.toString,A=E.hasOwnProperty,j=E.toString,M=RegExp(`^`+k.call(A).replace(c,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ee=f.Symbol,te=E.propertyIsEnumerable,N=w.splice,ne=ee?ee.isConcatSpreadable:void 0,re=Math.max,P=Ce(f,`Map`),F=Ce(f,`Set`),I=Ce(Object,`create`);function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function R(){this.__data__=I?I(null):{}}function z(e){return this.has(e)&&delete this.__data__[e]}function ie(e){var t=this.__data__;if(I){var r=t[e];return r===n?void 0:r}return A.call(t,e)?t[e]:void 0}function B(e){var t=this.__data__;return I?t[e]!==void 0:A.call(t,e)}function V(e,t){var r=this.__data__;return r[e]=I&&t===void 0?n:t,this}L.prototype.clear=R,L.prototype.delete=z,L.prototype.get=ie,L.prototype.has=B,L.prototype.set=V;function H(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function U(){this.__data__=[]}function ae(e){var t=this.__data__,n=_e(t,e);return n<0?!1:(n==t.length-1?t.pop():N.call(t,n,1),!0)}function oe(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]}function se(e){return _e(this.__data__,e)>-1}function ce(e,t){var n=this.__data__,r=_e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}H.prototype.clear=U,H.prototype.delete=ae,H.prototype.get=oe,H.prototype.has=se,H.prototype.set=ce;function W(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(){this.__data__={hash:new L,map:new(P||H),string:new L}}function ue(e){return Se(this,e).delete(e)}function de(e){return Se(this,e).get(e)}function fe(e){return Se(this,e).has(e)}function pe(e,t){return Se(this,e).set(e,t),this}W.prototype.clear=le,W.prototype.delete=ue,W.prototype.get=de,W.prototype.has=fe,W.prototype.set=pe;function me(e){var t=-1,n=e?e.length:0;for(this.__data__=new W;++t<n;)this.add(e[t])}function he(e){return this.__data__.set(e,n),this}function ge(e){return this.__data__.has(e)}me.prototype.add=me.prototype.push=he,me.prototype.has=ge;function _e(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function ve(e,t,n,r,i){var a=-1,o=e.length;for(n||=we,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ve(s,t-1,n,r,i):g(i,s):r||(i[i.length]=s)}return i}function G(e){return!Ne(e)||q(e)?!1:(je(e)||S(e)?M:l).test(Te(e))}function ye(e,t){return t=re(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=re(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=n[r];return o[t]=a,p(e,this,o)}}function be(e,t,n){var r=-1,i=m,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=h;else if(a>=200){var l=t?null:xe(e);if(l)return C(l);o=!1,i=b,c=new me}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var xe=F&&1/C(new F([,-0]))[1]==r?function(e){return new F(e)}:Fe;function Se(e,t){var n=e.__data__;return K(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ce(e,t){var n=x(e,t);return G(n)?n:void 0}function we(e){return Oe(e)||De(e)||!!(ne&&e&&e[ne])}function K(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function q(e){return!!O&&O in e}function Te(e){if(e!=null){try{return k.call(e)}catch{}try{return e+``}catch{}}return``}var J=ye(function(e){return be(ve(e,1,Ae,!0))});function Ee(e,t){return e===t||e!==e&&t!==t}function De(e){return Ae(e)&&A.call(e,`callee`)&&(!te.call(e,`callee`)||j.call(e)==a)}var Oe=Array.isArray;function ke(e){return e!=null&&Me(e.length)&&!je(e)}function Ae(e){return Pe(e)&&ke(e)}function je(e){var t=Ne(e)?j.call(e):``;return t==o||t==s}function Me(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function Ne(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Pe(e){return!!e&&typeof e==`object`}function Fe(){}t.exports=J})),L=/* @__PURE__ */ e.t(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function a(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function o(e,t){return i(t,function(t){return e[t]})}function s(e,t){return function(n){return e(t(n))}}var c=Object.prototype,l=c.hasOwnProperty,u=c.toString,d=c.propertyIsEnumerable,f=s(Object.keys,Object);function p(e,t){var n=v(e)||_(e)?a(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||l.call(e,o))&&(!i||o!=`length`&&!h(o,r))&&n.push(o);return n}function m(e){if(!g(e))return f(e);var t=[];for(var n in Object(e))l.call(e,n)&&n!=`constructor`&&t.push(n);return t}function h(e,t){return t??=n,!!t&&(typeof e==`number`||r.test(e))&&e>-1&&e%1==0&&e<t}function g(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||c)}function _(e){return b(e)&&l.call(e,`callee`)&&(!d.call(e,`callee`)||u.call(e)==`[object Arguments]`)}var v=Array.isArray;function y(e){return e!=null&&S(e.length)&&!x(e)}function b(e){return w(e)&&y(e)}function x(e){var t=C(e)?u.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function S(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function C(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function w(e){return!!e&&typeof e==`object`}function T(e){return y(e)?p(e):m(e)}function E(e){return e?o(e,T(e)):[]}t.exports=E})),R=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;let t=te(),n=N(),r=N(),i=ne(),a=re(),o=P(),s=F(),c=I(),l=L();e.Graph=class e{constructor(e){this._isDirected=e?.directed??!0,this._isMultigraph=e?.multigraph??!1,this._isCompound=e?.compound??!1,this._label=void 0,this._defaultNodeLabelFn=t(void 0),this._defaultEdgeLabelFn=t(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[`\0`]={}),this._preds={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return a(e)||(e=t(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this.nodes().length}nodes(){return Object.keys(this._nodes)}sources(){let e=this;return r(this.nodes(),t=>i(e._preds[t]))}sinks(){let e=this;return r(this.nodes(),t=>i(e._sucs[t]))}setNodes(e,t){let r=arguments,i=this;return n(e,e=>{r.length>1?i.setNode(e,t):i.setNode(e)}),this}setNode(e,t){return e in this._nodes?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=`\0`,this._children[e]={},this._children[`\0`][e]=!0),this._preds[e]={},this._sucs[e]={},this)}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){let t=this;if(e in this._nodes){let r=[];for(let t in this._edgeObjs){let n=this._edgeObjs[t];(n.v===e||n.w===e)&&r.push(n)}delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n(this.children(e),function(e){t.setParent(e)}),delete this._children[e]);for(let e of r)this.removeEdge(e);delete this._preds[e],delete this._sucs[e]}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(o(t))t=`\0`;else{t+=``;for(let n=t;!o(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){let t=this._parent[e];if(t!==`\0`)return t}}children(e){if(o(e)&&(e=`\0`),this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else if(e===`\0`)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){let t=this._preds[e];return t?Object.keys(t):[]}successors(e){let t=this._sucs[e];return t?Object.keys(t):[]}neighbors(e){return c(this.predecessors(e),this.successors(e))}isLeaf(e){let t;return t=this.isDirected()?this.successors(e):this.neighbors(e),t.length===0}filterNodes(t){let r=new e({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());let i=this;n(this._nodes,function(e,n){t(n)&&r.setNode(n,e)}),n(this._edgeObjs,function(e){r.hasNode(e.v)&&r.hasNode(e.w)&&r.setEdge(e,i.edge(e))});let a={};function o(e){let t=i.parent(e);return t===void 0||r.hasNode(t)?(a[e]=t,t):t in a?a[t]:o(t)}return this._isCompound&&n(r.nodes(),function(e){r.setParent(e,o(e))}),r}setDefaultEdgeLabel(e){return a(e)||(e=t(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this.edges().length}edges(){return l(this._edgeObjs)}setPath(e,t){let n=this,r=arguments;return s(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(...e){let t,n,r,i,a=!1,s=arguments[0];typeof s==`object`&&s&&`v`in s?(t=s.v,n=s.w,r=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(t=s,n=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=``+t,n=``+n,o(r)||(r=``+r);let c=f(this._isDirected,t,n,r);if(c in this._edgeLabels)return a&&(this._edgeLabels[c]=i),this;if(!o(r)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(t),this.setNode(n),this._edgeLabels[c]=a?i:this._defaultEdgeLabelFn(t,n,r);let l=p(this._isDirected,t,n,r);return t=l.v,n=l.w,this._edgeObjs[c]=l,u(this._preds[n],t),u(this._sucs[t],n),this}edge(e,t,n){let r=arguments.length===1?m(this._isDirected,arguments[0]):f(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){return(arguments.length===1?m(this._isDirected,arguments[0]):f(this._isDirected,e,t,n))in this._edgeLabels}removeEdge(e,t,n){let r=arguments.length===1?m(this._isDirected,arguments[0]):f(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],d(this._preds[t],e),d(this._sucs[e],t)),this}inEdges(e,t){let n=[];for(let r in this._edgeObjs){let i=this._edgeObjs[r];i.w!==e||t&&i.v!==t||n.push(i)}return n}outEdges(e,t){let n=[];for(let r in this._edgeObjs){let i=this._edgeObjs[r];i.v!==e||t&&i.w!==t||n.push(i)}return n}nodeEdges(e,t){return this.inEdges(e,t).concat(this.outEdges(e,t))}};function u(e,t){e[t]?e[t]++:e[t]=1}function d(e,t){--e[t]||delete e[t]}function f(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}return i+``+a+``+(o(r)?`\0`:r)}function p(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}let o={v:i,w:a};return r&&(o.name=r),o}function m(e,t){return f(e,t.v,t.w,t.name)}})),z=/* @__PURE__ */ e.t(((e,t)=>{var n=`[object Map]`,r=`[object Promise]`,i=`[object Set]`,a=`[object WeakMap]`,o=`[object DataView]`,s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=`\\ud800-\\udfff`,u=`\\u0300-\\u036f\\ufe20-\\ufe23`,d=`\\u20d0-\\u20f0`,f=`\\ufe0e\\ufe0f`,p=`[`+l+`]`,m=`[`+u+d+`]`,h=`\\ud83c[\\udffb-\\udfff]`,g=`(?:`+m+`|`+h+`)`,_=`[^`+l+`]`,v=`(?:\\ud83c[\\udde6-\\uddff]){2}`,y=`[\\ud800-\\udbff][\\udc00-\\udfff]`,b=`\\u200d`,x=g+`?`,S=`[`+f+`]?`,C=`(?:`+b+`(?:`+[_,v,y].join(`|`)+`)`+S+x+`)*`,w=S+x+C,T=`(?:`+[_+m+`?`,m,v,y,p].join(`|`)+`)`,E=RegExp(h+`(?=`+h+`)|`+T+w,`g`),D=RegExp(`[`+b+l+u+d+f+`]`),O=typeof global==`object`&&global&&global.Object===Object&&global,k=typeof self==`object`&&self&&self.Object===Object&&self,A=O||k||Function(`return this`)(),j=M(`length`);function M(e){return function(t){return t?.[e]}}function ee(e,t){return e?.[t]}function te(e){return D.test(e)}function N(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ne(e,t){return function(n){return e(t(n))}}function re(e){return te(e)?P(e):j(e)}function P(e){for(var t=E.lastIndex=0;E.test(e);)t++;return t}var F=Function.prototype,I=Object.prototype,L=A[`__core-js_shared__`],R=function(){var e=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),z=F.toString,ie=I.hasOwnProperty,B=I.toString,V=RegExp(`^`+z.call(ie).replace(s,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),H=ne(Object.keys,Object),U=ge(A,`DataView`),ae=ge(A,`Map`),oe=ge(A,`Promise`),se=ge(A,`Set`),ce=ge(A,`WeakMap`),W=ye(U),le=ye(ae),ue=ye(oe),de=ye(se),fe=ye(ce);function pe(e){return B.call(e)}function me(e){return!K(e)||ve(e)?!1:(Ce(e)||N(e)?V:c).test(ye(e))}function he(e){if(!G(e))return H(e);var t=[];for(var n in Object(e))ie.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ge(e,t){var n=ee(e,t);return me(n)?n:void 0}var _e=pe;(U&&_e(new U(/* @__PURE__ */ new ArrayBuffer(1)))!=o||ae&&_e(new ae)!=n||oe&&_e(oe.resolve())!=r||se&&_e(new se)!=i||ce&&_e(new ce)!=a)&&(_e=function(e){var t=B.call(e),s=t==`[object Object]`?e.constructor:void 0,c=s?ye(s):void 0;if(c)switch(c){case W:return o;case le:return n;case ue:return r;case de:return i;case fe:return a}return t});function ve(e){return!!R&&R in e}function G(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||I)}function ye(e){if(e!=null){try{return z.call(e)}catch{}try{return e+``}catch{}}return``}function be(e){if(e==null)return 0;if(Se(e))return Te(e)?re(e):e.length;var t=_e(e);return t==n||t==i?e.size:he(e).length}var xe=Array.isArray;function Se(e){return e!=null&&we(e.length)&&!Ce(e)}function Ce(e){var t=K(e)?B.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function we(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}function K(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function q(e){return!!e&&typeof e==`object`}function Te(e){return typeof e==`string`||!xe(e)&&q(e)&&B.call(e)==`[object String]`}t.exports=be})),ie=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CycleException=void 0,e.topsort=r;let t=N(),n=z();function r(e){let r={},a={},o=[];function s(n){if(n in a)throw new i;n in r||(a[n]=!0,r[n]=!0,t(e.predecessors(n),s),delete a[n],o.push(n))}if(t(e.sinks(),s),n(r)!==e.nodeCount())throw new i;return o}var i=class extends Error{};e.CycleException=i})),B=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAcyclic=n;let t=ie();function n(e){try{(0,t.topsort)(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0}})),V=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dfs=n;let t=N();function n(e,n,i){Array.isArray(n)||(n=[n]);let a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return t(n,t=>{if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);r(e,t,i===`post`,s,a,o)}),o}function r(e,n,i,a,o,s){n in a||(a[n]=!0,i||s.push(n),t(o(n),function(t){r(e,t,i,a,o,s)}),i&&s.push(n))}})),H=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.postorder=n;let t=V();function n(e,n){return(0,t.dfs)(e,n,`post`)}})),U=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.alg=e.Graph=void 0;var t=R();Object.defineProperty(e,"Graph",{enumerable:!0,get:function(){return t.Graph}});let n=B(),r=H();e.alg={isAcyclic:n.isAcyclic,postorder:r.postorder}})),ae=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomError=void 0,e.CustomError=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}})),oe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=void 0;let t=ae();e.ValidationError=class e extends t.CustomError{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),se=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=void 0;let t=oe();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return t.ValidationError}})})),ce=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateGraph=i;let t=U(),n=se();function r(e,t){if(!e)throw new n.ValidationError(t)}function i(e,n,i,a){r((e.predecessors(n)||[]).length===0,`"${n}" is not really the root`);let o=t.alg.postorder(e,[n]),s=e.nodes();r(JSON.stringify(s.sort())===JSON.stringify(o.sort()),`not all graph nodes are reachable from root`),r(Object.keys(i).filter(e=>!a[e]||a[e].size===0).length===0,`not all pkgs have instance nodes`)}})),W=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M[b]=M[x]=M[S]=M[C]=M[w]=M[T]=M[E]=M[D]=M[O]=!0,M[i]=M[a]=M[v]=M[o]=M[y]=M[s]=M[c]=M[l]=M[u]=M[d]=M[f]=M[m]=M[h]=M[g]=M[_]=!1;var ee=typeof global==`object`&&global&&global.Object===Object&&global,te=typeof self==`object`&&self&&self.Object===Object&&self,N=ee||te||Function(`return this`)(),ne=typeof e==`object`&&e&&!e.nodeType&&e,re=ne&&typeof t==`object`&&t&&!t.nodeType&&t,P=re&&re.exports===ne,F=P&&ee.process,I=function(){try{return F&&F.binding&&F.binding(`util`)}catch{}}(),L=I&&I.isTypedArray;function R(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function z(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function B(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function V(e){return function(t){return e(t)}}function H(e,t){return e.has(t)}function U(e,t){return e?.[t]}function ae(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function oe(e,t){return function(n){return e(t(n))}}function se(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ce=Array.prototype,W=Function.prototype,le=Object.prototype,ue=N[`__core-js_shared__`],de=W.toString,fe=le.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=le.toString,he=RegExp(`^`+de.call(fe).replace(k,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ge=P?N.Buffer:void 0,_e=N.Symbol,ve=N.Uint8Array,G=le.propertyIsEnumerable,ye=ce.splice,be=_e?_e.toStringTag:void 0,xe=Object.getOwnPropertySymbols,Se=ge?ge.isBuffer:void 0,Ce=oe(Object.keys,Object),we=bt(N,`DataView`),K=bt(N,`Map`),q=bt(N,`Promise`),Te=bt(N,`Set`),J=bt(N,`WeakMap`),Ee=bt(Object,`create`),De=kt(we),Oe=kt(K),ke=kt(q),Ae=kt(Te),je=kt(J),Me=_e?_e.prototype:void 0,Ne=Me?Me.valueOf:void 0;function Pe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(){this.__data__=Ee?Ee(null):{},this.size=0}function Ie(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Le(e){var t=this.__data__;if(Ee){var r=t[e];return r===n?void 0:r}return fe.call(t,e)?t[e]:void 0}function Re(e){var t=this.__data__;return Ee?t[e]!==void 0:fe.call(t,e)}function ze(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Ee&&t===void 0?n:t,this}Pe.prototype.clear=Fe,Pe.prototype.delete=Ie,Pe.prototype.get=Le,Pe.prototype.has=Re,Pe.prototype.set=ze;function Be(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ve(){this.__data__=[],this.size=0}function Y(e){var t=this.__data__,n=ot(t,e);return n<0?!1:(n==t.length-1?t.pop():ye.call(t,n,1),--this.size,!0)}function X(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function He(e){return ot(this.__data__,e)>-1}function Ue(e,t){var n=this.__data__,r=ot(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Be.prototype.clear=Ve,Be.prototype.delete=Y,Be.prototype.get=X,Be.prototype.has=He,Be.prototype.set=Ue;function We(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ge(){this.size=0,this.__data__={hash:new Pe,map:new(K||Be),string:new Pe}}function Ke(e){var t=yt(this,e).delete(e);return this.size-=+!!t,t}function qe(e){return yt(this,e).get(e)}function Je(e){return yt(this,e).has(e)}function Ye(e,t){var n=yt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}We.prototype.clear=Ge,We.prototype.delete=Ke,We.prototype.get=qe,We.prototype.has=Je,We.prototype.set=Ye;function Xe(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new We;++t<n;)this.add(e[t])}function Ze(e){return this.__data__.set(e,n),this}function Qe(e){return this.__data__.has(e)}Xe.prototype.add=Xe.prototype.push=Ze,Xe.prototype.has=Qe;function $e(e){var t=this.__data__=new Be(e);this.size=t.size}function et(){this.__data__=new Be,this.size=0}function tt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function nt(e){return this.__data__.get(e)}function rt(e){return this.__data__.has(e)}function it(e,t){var n=this.__data__;if(n instanceof Be){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new We(r)}return n.set(e,t),this.size=n.size,this}$e.prototype.clear=et,$e.prototype.delete=tt,$e.prototype.get=nt,$e.prototype.has=rt,$e.prototype.set=it;function at(e,t){var n=Mt(e),r=!n&&jt(e),i=!n&&!r&&Pt(e),a=!n&&!r&&!i&&Bt(e),o=n||r||i||a,s=o?B(e.length,String):[],c=s.length;for(var l in e)(t||fe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||wt(l,c)))&&s.push(l);return s}function ot(e,t){for(var n=e.length;n--;)if(At(e[n][0],t))return n;return-1}function st(e,t,n){var r=t(e);return Mt(e)?r:z(r,n(e))}function ct(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:be&&be in Object(e)?xt(e):Ot(e)}function lt(e){return zt(e)&&ct(e)==i}function ut(e,t,n,r,i){return e===t?!0:e==null||t==null||!zt(e)&&!zt(t)?e!==e&&t!==t:dt(e,t,n,r,ut,i)}function dt(e,t,n,r,o,s){var c=Mt(e),l=Mt(t),u=c?a:Ct(e),d=l?a:Ct(t);u=u==i?f:u,d=d==i?f:d;var p=u==f,m=d==f,h=u==d;if(h&&Pt(e)){if(!Pt(t))return!1;c=!0,p=!1}if(h&&!p)return s||=new $e,c||Bt(e)?ht(e,t,n,r,o,s):gt(e,t,u,n,r,o,s);if(!(n&1)){var g=p&&fe.call(e,`__wrapped__`),_=m&&fe.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new $e,o(v,y,n,r,s)}}return h?(s||=new $e,_t(e,t,n,r,o,s)):!1}function ft(e){return!Rt(e)||Et(e)?!1:(It(e)?he:A).test(kt(e))}function pt(e){return zt(e)&&Lt(e.length)&&!!M[ct(e)]}function mt(e){if(!Dt(e))return Ce(e);var t=[];for(var n in Object(e))fe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ht(e,t,n,r,i,a){var o=n&1,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=n&2?new Xe:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!ie(t,function(e,t){if(!H(f,t)&&(p===e||i(p,e,n,r,a)))return f.push(t)})){d=!1;break}}else if(!(p===m||i(p,m,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function gt(e,t,n,r,i,a,l){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v:return!(e.byteLength!=t.byteLength||!a(new ve(e),new ve(t)));case o:case s:case d:return At(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=ae;case h:var p=r&1;if(f||=se,e.size!=t.size&&!p)return!1;var _=l.get(e);if(_)return _==t;r|=2,l.set(e,t);var b=ht(f(e),f(t),r,i,a,l);return l.delete(e),b;case`[object Symbol]`:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}function _t(e,t,n,r,i,a){var o=n&1,s=vt(e),c=s.length;if(c!=vt(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:fe.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function vt(e){return st(e,Vt,St)}function yt(e,t){var n=e.__data__;return Tt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function bt(e,t){var n=U(e,t);return ft(n)?n:void 0}function xt(e){var t=fe.call(e,be),n=e[be];try{e[be]=void 0;var r=!0}catch{}var i=me.call(e);return r&&(t?e[be]=n:delete e[be]),i}var St=xe?function(e){return e==null?[]:(e=Object(e),R(xe(e),function(t){return G.call(e,t)}))}:Ht,Ct=ct;(we&&Ct(new we(/* @__PURE__ */ new ArrayBuffer(1)))!=y||K&&Ct(new K)!=u||q&&Ct(q.resolve())!=p||Te&&Ct(new Te)!=h||J&&Ct(new J)!=_)&&(Ct=function(e){var t=ct(e),n=t==f?e.constructor:void 0,r=n?kt(n):``;if(r)switch(r){case De:return y;case Oe:return u;case ke:return p;case Ae:return h;case je:return _}return t});function wt(e,t){return t??=r,!!t&&(typeof e==`number`||j.test(e))&&e>-1&&e%1==0&&e<t}function Tt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Et(e){return!!pe&&pe in e}function Dt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||le)}function Ot(e){return me.call(e)}function kt(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}function At(e,t){return e===t||e!==e&&t!==t}var jt=lt(function(){return arguments}())?lt:function(e){return zt(e)&&fe.call(e,`callee`)&&!G.call(e,`callee`)},Mt=Array.isArray;function Nt(e){return e!=null&&Lt(e.length)&&!It(e)}var Pt=Se||Ut;function Ft(e,t){return ut(e,t)}function It(e){if(!Rt(e))return!1;var t=ct(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function Lt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function Rt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function zt(e){return typeof e==`object`&&!!e}var Bt=L?V(L):pt;function Vt(e){return Nt(e)?at(e):mt(e)}function Ht(){return[]}function Ut(){return!1}t.exports=Ft})),le=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DepGraphImpl=void 0;let t=W(),n=U(),r=ue();var i=class e{static getPkgId(e){return`${e.name}@${e.version||``}`}constructor(e,t,n,r,i){this._graph=e,this._rootNodeId=t,this._pkgs=n,this._pkgNodes=r,this._pkgManager=i,this._countNodePathsToRootCache=/* @__PURE__ */ new Map,this._rootPkgId=e.node(t).pkgId,this._pkgList=Object.values(n),this._depPkgsList=this._pkgList.filter(e=>e!==this.rootPkg)}get pkgManager(){return this._pkgManager}get rootPkg(){return this._pkgs[this._rootPkgId]}get rootNodeId(){return this._rootNodeId}getPkgs(){return this._pkgList}getDepPkgs(){return this._depPkgsList}getPkgNodes(t){let n=e.getPkgId(t),r=[];for(let e of Array.from(this._pkgNodes[n])){let t=this.getGraphNode(e);r.push({info:t.info||{}})}return r}getNode(e){return this.getGraphNode(e).info||{}}getNodePkg(e){return this._pkgs[this.getGraphNode(e).pkgId]}getPkgNodeIds(t){let n=e.getPkgId(t);if(!this._pkgs[n])throw Error(`no such pkg: ${n}`);return Array.from(this._pkgNodes[n])}getNodeDepsNodeIds(e){let t=this._graph.successors(e);if(!t)throw Error(`no such node: ${e}`);return t}getNodeParentsNodeIds(e){let t=this._graph.predecessors(e);if(!t)throw Error(`no such node: ${e}`);return t}hasCycles(){return this._hasCycles===void 0&&(this._hasCycles=!n.alg.isAcyclic(this._graph)),this._hasCycles}pkgPathsToRoot(e,t){let n=[],r=t?.limit;for(let t of this.getPkgNodeIds(e)){let e=this.pathsFromNodeToRoot(t,[],{limit:r});for(let t of e)n.push(t);if(r&&n.length>=r)break}return n.sort((e,t)=>e.length-t.length)}countPathsToRoot(e,t){let n=0,r=t?.limit;for(let t of this.getPkgNodeIds(e))if(n+=this.countNodePathsToRoot(t,r),r&&n>=r)return r;return n}isTransitive(e){let t=new Set(this.getPkgNodeIds(e));for(let e of this.getNodeDepsNodeIds(this.rootNodeId))if(t.has(e))return!1;return!0}equals(t,{compareRoot:n=!0}={}){let i;return i=t instanceof e?t:(0,r.createFromJSON)(t.toJSON()),this.nodeEquals(this,this.rootNodeId,i,i.rootNodeId,n)}directDepsLeadingTo(e){let t=this.getPkgNodeIds(e);return this.getNodeDepsNodeIds(this.rootNodeId).filter(e=>n.alg.postorder(this._graph,[e]).filter(e=>t.includes(e)).length).map(e=>this.getNodePkg(e))}toJSON(){let t=this._graph.nodes().reduce((e,t)=>{let n=(this._graph.successors(t)||[]).map(e=>({nodeId:e})),r=this._graph.node(t),i={nodeId:t,pkgId:r.pkgId,deps:n};return r.info&&Object.keys(r.info).length>0&&(i.info=r.info),e.push(i),e},[]),n=Object.keys(this._pkgs).map(e=>({id:e,info:this._pkgs[e]}));return{schemaVersion:e.SCHEMA_VERSION,pkgManager:this._pkgManager,pkgs:n,graph:{rootNodeId:this._rootNodeId,nodes:t}}}nodeEquals(n,r,i,a,o,s=/* @__PURE__ */ new Set){if(o||r!==n.rootNodeId&&a!==i.rootNodeId){let e=n.getNodePkg(r),o=i.getNodePkg(a);if(!t(e,o))return!1;let s=n.getNode(r),c=i.getNode(a);if(!t(s,c))return!1}let c=n.getNodeDepsNodeIds(r),l=i.getNodeDepsNodeIds(a);if(c.length!==l.length)return!1;let u=t=>(n,r)=>{let i=t.getNodePkg(n),a=t.getNodePkg(r);return e.getPkgId(i).localeCompare(e.getPkgId(a))};c=c.sort(u(n)),l=l.sort(u(i));for(let e=0;e<c.length;e++){let t=`${c[e]}_${l[e]}`;if(!s.has(t)&&(s.add(t),!this.nodeEquals(n,c[e],i,l[e],o,s)))return!1}return!0}getGraphNode(e){let t=this._graph.node(e);if(!t)throw Error(`no such node: ${e}`);return t}pathsFromNodeToRoot(e,t=[],n){let r=this.getNodeParentsNodeIds(e),i=this.getNodePkg(e);if(r.length===0)return[[i]];let a=[];t=t.concat(e);let o=n.limit;for(let e of r){if(t.includes(e))continue;let r=this.pathsFromNodeToRoot(e,t,n);for(let e of r)a.push([i].concat(e));if(o&&a.length>=o)break}return a}countNodePathsToRoot(e,t){if(this._countNodePathsToRootCache.has(e))return this._countNodePathsToRootCache.get(e);let n;return n=e===this._rootNodeId?1:this.hasCycles()?this.countNodePathsToRootBacktracking(e,t):this.countNodePathsToRootMemoized(e,t),t||this._countNodePathsToRootCache.set(e,n),n}countNodePathsToRootMemoized(e,t=0){let n=0;for(let r of this.getNodeParentsNodeIds(e))if(n+=this.countNodePathsToRoot(r,t),t&&n>=t)return t;return n}countNodePathsToRootBacktracking(e,t=0,n=0,r=/* @__PURE__ */ new Set){if(e===this._rootNodeId)return n+1;r.add(e);for(let i of this.getNodeParentsNodeIds(e))if(!r.has(i)&&(n=this.countNodePathsToRootBacktracking(i,t,n,r),t&&n>=t))return r.delete(e),t;return r.delete(e),n}};e.DepGraphImpl=i,i.SCHEMA_VERSION=`1.3.0`})),ue=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_SCHEMA_RANGE=void 0,e.createFromJSON=o;let t=require("semver"),n=U(),r=se(),i=ce(),a=le();e.SUPPORTED_SCHEMA_RANGE=`^1.0.0`;function o(e,t={}){let r=t?.shouldValidate??!0;r&&c(e);let o=new n.Graph({directed:!0,multigraph:!1,compound:!1}),u={},d={};for(let{id:t,info:n}of e.pkgs)r&&l(t,n,u),u[t]=n.version?n:{...n,version:void 0};let f=e.graph.rootNodeId,p;for(let t of e.graph.nodes){r&&(s(!o.hasNode(t.nodeId),`more than one node with same id`),s(!!u[t.pkgId],`some instance nodes belong to non-existing pkgIds`)),t.nodeId===f&&(p=t);let e=t.pkgId;d[e]||(d[e]=/* @__PURE__ */ new Set),d[e].add(t.nodeId),o.setNode(t.nodeId,{pkgId:e,info:t.info})}for(let t of e.graph.nodes)for(let e of t.deps)o.setEdge(t.nodeId,e.nodeId);if(r){s(!!p,`.${f} root graph node is missing`);let t=p.pkgId;s(!!u[t],`.${t} root pkg missing`),(0,i.validateGraph)(o,e.graph.rootNodeId,u,d)}return new a.DepGraphImpl(o,e.graph.rootNodeId,u,d,e.pkgManager)}function s(e,t){if(!e)throw new r.ValidationError(t)}function c({schemaVersion:n,pkgManager:r}){s(!!t.valid(n)&&t.satisfies(n,e.SUPPORTED_SCHEMA_RANGE),`dep-graph schemaVersion not in "${e.SUPPORTED_SCHEMA_RANGE}"`),s(r&&!!r.name,`.pkgManager.name is missing`)}function l(e,t,n){s(!n[e],`more than one pkg with same id`),s(!!t,`.pkgs item missing .info`),s(e===a.DepGraphImpl.getPkgId(t),`pkgs ids should be name@version`),s(!!t.name,`some .pkgs elements have no .name field`)}})),de=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DepGraphBuilder=void 0;let t=U(),n=le();e.DepGraphBuilder=class e{get rootNodeId(){return this._rootNodeId}static _getPkgId(e){return`${e.name}@${e.version||``}`}constructor(n,r,i){this._pkgs={},this._pkgNodes={};let a=new t.Graph({directed:!0,multigraph:!1,compound:!1});r||={name:`_root`,version:`0.0.0`},this._rootNodeId=`root-node`,this._rootPkgId=e._getPkgId(r),this._pkgs[this._rootPkgId]=r,a.setNode(this._rootNodeId,{pkgId:this._rootPkgId,info:i}),this._pkgNodes[this._rootPkgId]=/* @__PURE__ */ new Set([this._rootNodeId]),this._graph=a,this._pkgManager=n}getPkgs(){return Object.values(this._pkgs)}addPkgNode(t,n,r){if(n===this._rootNodeId)throw Error(`DepGraphBuilder.addPkgNode() cant override root node`);let i=e._getPkgId(t);return this._pkgs[i]=t,this._pkgNodes[i]=this._pkgNodes[i]||/* @__PURE__ */ new Set,this._pkgNodes[i].add(n),this._graph.setNode(n,{pkgId:i,info:r}),this}connectDep(e,t){if(!this._graph.hasNode(e))throw Error(`parentNodeId does not exist`);if(!this._graph.hasNode(t))throw Error(`depNodeId does not exist`);return this._graph.setEdge(e,t),this}build(){return new n.DepGraphImpl(this._graph,this._rootNodeId,this._pkgs,this._pkgNodes,this._pkgManager)}}})),fe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EventLoopSpinner=void 0;let t=typeof setImmediate==`function`?setImmediate:e=>e();e.EventLoopSpinner=class{constructor(e=10){this.thresholdMs=e,this.afterLastSpin=Date.now()}reset(){this.afterLastSpin=Date.now()}isStarving(){return Date.now()-this.afterLastSpin>this.thresholdMs}async spin(){return new Promise(e=>t(()=>{this.reset(),e()}))}}})),pe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.eventLoopSpinner=e.EventLoopSpinner=void 0;let t=fe();Object.defineProperty(e,"EventLoopSpinner",{enumerable:!0,get:function(){return t.EventLoopSpinner}}),e.eventLoopSpinner=new t.EventLoopSpinner})),me=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createChangedPackagesGraph=i;let t=le(),n=de(),r=pe();async function i(e,i){let o=i,s=new Set(e.getDepPkgs().map(t.DepGraphImpl.getPkgId)),c=o.getDepPkgs().filter(e=>!s.has(t.DepGraphImpl.getPkgId(e))),l=new n.DepGraphBuilder(o.pkgManager,o.rootPkg),u=[];for(let e of c)for(let t of o.getPkgNodeIds(e)){l.addPkgNode(o.getNodePkg(t),t,a(o,t));for(let e of o.getNodeParentsNodeIds(t))u.push([e,t]),r.eventLoopSpinner.isStarving()&&await r.eventLoopSpinner.spin()}let d=/* @__PURE__ */ new Set([o.rootNodeId]);for(;u.length>0;){let[e,t]=u.pop();if(d.has(e))l.connectDep(e,t);else{d.add(e),l.addPkgNode(o.getNodePkg(e),e,a(o,e)),l.connectDep(e,t);for(let t of o.getNodeParentsNodeIds(e))u.push([t,e]),r.eventLoopSpinner.isStarving()&&await r.eventLoopSpinner.spin()}}return l.build()}function a(e,t){let n=e.getNode(t);if(n&&Object.keys(n).length!==0)return n}})),he=/* @__PURE__ */ e.t(((e,t)=>{var n=require("crypto");e=t.exports=r;function r(e,t){return t=o(e,t),c(e,t)}e.sha1=function(e){return r(e)},e.keys=function(e){return r(e,{excludeValues:!0,algorithm:`sha1`,encoding:`hex`})},e.MD5=function(e){return r(e,{algorithm:`md5`,encoding:`hex`})},e.keysMD5=function(e){return r(e,{algorithm:`md5`,encoding:`hex`,excludeValues:!0})};var i=n.getHashes?n.getHashes().slice():[`sha1`,`md5`];i.push(`passthrough`);var a=[`buffer`,`hex`,`binary`,`base64`];function o(e,t){t||={};var n={};if(n.algorithm=t.algorithm||`sha1`,n.encoding=t.encoding||`hex`,n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=t.ignoreUnknown===!0,n.respectType=t.respectType!==!1,n.respectFunctionNames=t.respectFunctionNames!==!1,n.respectFunctionProperties=t.respectFunctionProperties!==!1,n.unorderedArrays=t.unorderedArrays===!0,n.unorderedSets=t.unorderedSets!==!1,n.unorderedObjects=t.unorderedObjects!==!1,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,e===void 0)throw Error(`Object argument required.`);for(var r=0;r<i.length;++r)i[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=i[r]);if(i.indexOf(n.algorithm)===-1)throw Error(`Algorithm "`+n.algorithm+`"  not supported. supported values: `+i.join(`, `));if(a.indexOf(n.encoding)===-1&&n.algorithm!==`passthrough`)throw Error(`Encoding "`+n.encoding+`"  not supported. supported values: `+a.join(`, `));return n}function s(e){return typeof e==`function`&&/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function c(e,t){var r=t.algorithm===`passthrough`?new u:n.createHash(t.algorithm);if(r.write===void 0&&(r.write=r.update,r.end=r.update),l(t,r).dispatch(e),r.update||r.end(``),r.digest)return r.digest(t.encoding===`buffer`?void 0:t.encoding);var i=r.read();return t.encoding===`buffer`?i:i.toString(t.encoding)}e.writeToStream=function(e,t,n){return n===void 0&&(n=t,t={}),t=o(e,t),l(t,n).dispatch(e)};function l(e,t,n){n||=[];var r=function(e){return t.update?t.update(e,`utf8`):t.write(e,`utf8`)};return{dispatch:function(t){e.replacer&&(t=e.replacer(t));var n=typeof t;return t===null&&(n=`null`),this[`_`+n](t)},_object:function(t){var i=/\[object (.*)\]/i,a=Object.prototype.toString.call(t),o=i.exec(a);o=o?o[1]:`unknown:[`+a+`]`,o=o.toLowerCase();var c=null;if((c=n.indexOf(t))>=0)return this.dispatch(`[CIRCULAR:`+c+`]`);if(n.push(t),typeof Buffer<`u`&&Buffer.isBuffer&&Buffer.isBuffer(t))return r(`buffer:`),r(t);if(o!==`object`&&o!==`function`&&o!==`asyncfunction`){if(this[`_`+o])this[`_`+o](t);else if(e.ignoreUnknown)return r(`[`+o+`]`);else throw Error(`Unknown object type "`+o+`"`)}else{var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),e.respectType!==!1&&!s(t)&&l.splice(0,0,`prototype`,`__proto__`,`constructor`),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),r(`object:`+l.length+`:`);var u=this;return l.forEach(function(n){u.dispatch(n),r(`:`),e.excludeValues||u.dispatch(t[n]),r(`,`)})}},_array:function(t,i){i=i===void 0?e.unorderedArrays!==!1:i;var a=this;if(r(`array:`+t.length+`:`),!i||t.length<=1)return t.forEach(function(e){return a.dispatch(e)});var o=[],s=t.map(function(t){var r=new u,i=n.slice();return l(e,r,i).dispatch(t),o=o.concat(i.slice(n.length)),r.read().toString()});return n=n.concat(o),s.sort(),this._array(s,!1)},_date:function(e){return r(`date:`+e.toJSON())},_symbol:function(e){return r(`symbol:`+e.toString())},_error:function(e){return r(`error:`+e.toString())},_boolean:function(e){return r(`bool:`+e.toString())},_string:function(e){r(`string:`+e.length+`:`),r(e.toString())},_function:function(t){r(`fn:`),s(t)?this.dispatch(`[native]`):this.dispatch(t.toString()),e.respectFunctionNames!==!1&&this.dispatch(`function-name:`+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r(`number:`+e.toString())},_xml:function(e){return r(`xml:`+e.toString())},_null:function(){return r(`Null`)},_undefined:function(){return r(`Undefined`)},_regexp:function(e){return r(`regex:`+e.toString())},_uint8array:function(e){return r(`uint8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r(`uint8clampedarray:`),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r(`int8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r(`uint16array:`),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r(`int16array:`),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r(`uint32array:`),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r(`int32array:`),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r(`float32array:`),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r(`float64array:`),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r(`arraybuffer:`),this.dispatch(new Uint8Array(e))},_url:function(e){return r(`url:`+e.toString(),`utf8`)},_map:function(t){r(`map:`);var n=Array.from(t);return this._array(n,e.unorderedSets!==!1)},_set:function(t){r(`set:`);var n=Array.from(t);return this._array(n,e.unorderedSets!==!1)},_file:function(e){return r(`file:`),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r(`[blob]`);throw Error(`Hashing Blob objects is currently not supported
(see https://github.com/puleos/object-hash/issues/26)
Use "options.replacer" or "options.ignoreUnknown"
`)},_domwindow:function(){return r(`domwindow`)},_bigint:function(e){return r(`bigint:`+e.toString())},_process:function(){return r(`process`)},_timer:function(){return r(`timer`)},_pipe:function(){return r(`pipe`)},_tcp:function(){return r(`tcp`)},_udp:function(){return r(`udp`)},_tty:function(){return r(`tty`)},_statwatcher:function(){return r(`statwatcher`)},_securecontext:function(){return r(`securecontext`)},_connection:function(){return r(`connection`)},_zlib:function(){return r(`zlib`)},_context:function(){return r(`context`)},_nodescript:function(){return r(`nodescript`)},_httpparser:function(){return r(`httpparser`)},_dataview:function(){return r(`dataview`)},_signal:function(){return r(`signal`)},_fsevent:function(){return r(`fsevent`)},_tlswrap:function(){return r(`tlswrap`)}}}function u(){return{buf:``,write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}})),ge=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getCycle=t,e.partitionCycles=n;function t(e,t){return e.includes(t)?e.slice(e.indexOf(t)):null}function n(e,t){let n=[],r=[];for(let i of t)i[0]===e?n.push(i):r.push(i);return{cyclesStartWithThisNode:n,cyclesWithThisNode:r}}})),_e=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=t,e.getMemoizedDepTree=n;function t(e,t,n,r){let{cyclesStartWithThisNode:i,cyclesWithThisNode:a}=r;if(i.length>0){let r=new Set(...i);t.set(e,{depTree:n,cycleNodeIds:r})}else a.length===0&&t.set(e,{depTree:n})}function n(e,t,n){if(!n.has(e))return null;let{depTree:r,cycleNodeIds:i}=n.get(e);return i&&t.some(e=>i.has(e))?null:r}})),ve=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.depTreeToGraph=c,e.graphToDepTree=d;let t=require("crypto"),n=pe(),r=de(),i=he(),a=ge(),o=_e();function s(e,t,n){e.labels||={},e.labels[t]=n}async function c(e,t){let n={name:e.name,version:e.version||void 0};e.purl&&(n.purl=e.purl);let i={name:t},a=e.targetOS;a&&(i.repositories=[{alias:`${a.name}:${a.version}`}]);let o=new r.DepGraphBuilder(i,n);return await l(o,e,e.name,!0),u(await o.build())}async function l(e,r,a,o=!1,s=/* @__PURE__ */ new Map){if(s.has(r))return s.get(r);let c=(e,t,n)=>`${e}@${t||``}|${n}`,u=[],d=t.createHash(`sha1`);r.versionProvenance&&d.update(i(r.versionProvenance)),r.labels&&d.update(i(r.labels));let f=r.dependencies||{},p=Object.keys(f).filter(e=>!!f[e]);for(let t of p.sort()){let n=f[t],r=await l(e,n,t,!1,s),i={name:t,version:n.version};n.purl&&(i.purl=n.purl);let a=c(i.name,i.version,r);u.push(a);let o={};n.versionProvenance&&(o.versionProvenance=n.versionProvenance),n.labels&&(o.labels=n.labels),e.addPkgNode(i,a,o),d.update(a)}let m=d.digest(`hex`),h;if(o)h=e.rootNodeId;else{let t={name:a,version:r.version};h=c(t.name,t.version,m);let n={};r.versionProvenance&&(n.versionProvenance=r.versionProvenance),r.labels&&(n.labels=r.labels),e.addPkgNode(t,h,n)}for(let t of u)e.connectDep(h,t);return u.length>0&&n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin(),s.set(r,m),m}async function u(e){let t=new r.DepGraphBuilder(e.pkgManager,e.rootPkg),i={};for(let r of e.getPkgs()){let a=e.getPkgNodeIds(r);for(let n=0;n<a.length;n++){let o=a[n];if(o===e.rootNodeId)continue;let s=e.getNode(o),c;c=a.length===1?`${h(o,`|`)}`:`${h(o,`|`)}|${n+1}`,i[o]=c,t.addPkgNode(r,c,s)}n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin()}for(let r of e.getPkgs()){for(let n of e.getPkgNodeIds(r))for(let r of e.getNodeDepsNodeIds(n)){let e=i[n]||n,a=i[r]||r;t.connectDep(e,a)}n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin()}return t.build()}async function d(e,t,n={deduplicateWithinTopLevelDeps:!1}){let r=e,[i]=await m(r,r.rootNodeId,n.deduplicateWithinTopLevelDeps?null:!1);i.type=r.pkgManager.name,i.packageFormatVersion=f(t);let a=p(r);return a&&(i.targetOS=a),i}function f(e){return e===`maven`&&(e=`mvn`),`${e}:0.0.1`}function p(e){if([`apk`,`apt`,`deb`,`rpm`,`linux`].indexOf(e.pkgManager.name)===-1)return;if(!e.pkgManager.repositories||!e.pkgManager.repositories.length||!e.pkgManager.repositories[0].alias)throw Error(`Incomplete .pkgManager, could not create .targetOS`);let[t,n]=e.pkgManager.repositories[0].alias.split(`:`);return{name:t,version:n}}async function m(e,t,r=!1,i=[],c=/* @__PURE__ */ new Map){if(!r){let e=(0,o.getMemoizedDepTree)(t,i,c);if(e)return[e,void 0]}let l=t===e.rootNodeId,u=e.getNodePkg(t),d=e.getNode(t),f={};f.name=u.name,f.version=u.version,u.purl&&(f.purl=u.purl),d.versionProvenance&&(f.versionProvenance=d.versionProvenance),d.labels&&(f.labels={...d.labels});let p=e.getNodeDepsNodeIds(t);if(!p||p.length===0)return c.set(t,{depTree:f}),[f,void 0];let h=(0,a.getCycle)(i,t);if(h)return s(f,`pruned`,`cyclic`),[f,[h]];if(r){if(r.has(t))return p.length>0&&s(f,`pruned`,`true`),[f,void 0];r.add(t)}let g=[];for(let n of p){l&&r!==!1&&(r=/* @__PURE__ */ new Set);let[a,o]=await m(e,n,r,i.concat(t),c);if(o)for(let e of o)g.push(e);a&&(f.dependencies||={},f.dependencies[a.name]=a)}n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin();let _=(0,a.partitionCycles)(t,g);return(0,o.memoize)(t,c,f,_),[f,_.cyclesWithThisNode]}function h(e,t){return e.slice(0,e.lastIndexOf(t))}})),G=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.legacy=e.Errors=e.createChangedPackagesGraph=e.DepGraphBuilder=e.createFromJSON=void 0;var t=ue();Object.defineProperty(e,"createFromJSON",{enumerable:!0,get:function(){return t.createFromJSON}});var n=de();Object.defineProperty(e,"DepGraphBuilder",{enumerable:!0,get:function(){return n.DepGraphBuilder}});var r=me();Object.defineProperty(e,"createChangedPackagesGraph",{enumerable:!0,get:function(){return r.createChangedPackagesGraph}}),e.Errors=se(),e.legacy=ve()})),ye=G();const be=async(e,t)=>{let n=/* @__PURE__ */ new Set,r=await(0,ye.createChangedPackagesGraph)(t,e),i=await(0,ye.createChangedPackagesGraph)(e,t);for(let e of r.getDepPkgs())n.add(e.name);for(let e of i.getDepPkgs())n.add(e.name);return n};var xe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidUserInputError=void 0,e.InvalidUserInputError=class e extends Error{code=422;name=`InvalidUserInputError`;constructor(...t){super(...t),Error.captureStackTrace(this,e)}}})),Se=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedRuntimeError=void 0,e.UnsupportedRuntimeError=class e extends Error{name=`UnsupportedRuntimeError`;code=500;constructor(...t){super(...t),Error.captureStackTrace(this,e)}}})),Ce=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfSyncError=e.INSTALL_COMMAND=e.LOCK_FILE_NAME=void 0,e.LOCK_FILE_NAME={npm:`package-lock.json`,npm7:`package-lock.json`,yarn:`yarn.lock`,yarn2:`yarn.lock`,pnpm:`pnpm-lock.yaml`},e.INSTALL_COMMAND={npm:`npm install`,npm7:`npm install`,yarn:`yarn install`,yarn2:`yarn install`,pnpm:`pnpm install`},e.OutOfSyncError=class t extends Error{code=422;name=`OutOfSyncError`;dependencyName;lockFileType;constructor(n,r){super(`Dependency ${n} was not found in ${e.LOCK_FILE_NAME[r]}. Your package.json and ${e.LOCK_FILE_NAME[r]} are probably out of sync. Please run "${e.INSTALL_COMMAND[r]}" and try again.`),this.dependencyName=n,this.lockFileType=r,Error.captureStackTrace(this,t)}}})),we=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TreeSizeLimitError=void 0,e.TreeSizeLimitError=class e extends Error{code=422;name=`TreeSizeLimitError`;currentTreeSize;constructor(){super(`Tree size exceeds the allowed limit.`),Error.captureStackTrace(this,e)}}})),K=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedError=void 0,e.UnsupportedError=class e extends Error{name=`UnsupportedError`;code=500;constructor(...t){super(...t),Error.captureStackTrace(this,e)}}})),q=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedError=e.TreeSizeLimitError=e.OutOfSyncError=e.UnsupportedRuntimeError=e.InvalidUserInputError=void 0;var t=xe();Object.defineProperty(e,"InvalidUserInputError",{enumerable:!0,get:function(){return t.InvalidUserInputError}});var n=Se();Object.defineProperty(e,"UnsupportedRuntimeError",{enumerable:!0,get:function(){return n.UnsupportedRuntimeError}});var r=Ce();Object.defineProperty(e,"OutOfSyncError",{enumerable:!0,get:function(){return r.OutOfSyncError}});var i=we();Object.defineProperty(e,"TreeSizeLimitError",{enumerable:!0,get:function(){return i.TreeSizeLimitError}});var a=K();Object.defineProperty(e,"UnsupportedError",{enumerable:!0,get:function(){return a.UnsupportedError}})})),Te=/* @__PURE__ */ e.t((e=>{
/*! js-yaml 5.4.2 https://github.com/nodeca/js-yaml @license MIT */
Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Symbol(`NOT_RESOLVED`);function n(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function r(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function i(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var a=n(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),o=[``,`~`,`null`,`Null`,`NULL`],s=n(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>o.indexOf(e)===-1?t:null,identify:e=>e===null,represent:()=>`null`}),c=n(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,n)=>e===`null`||n&&e===``?null:t,identify:e=>e===null,represent:()=>`null`}),l=[``,`~`,`null`,`Null`,`NULL`],u=n(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>l.indexOf(e)===-1?t:null,identify:e=>e===null,represent:()=>`null`}),d=[`true`,`True`,`TRUE`],f=[`false`,`False`,`FALSE`],p=n(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>d.indexOf(e)!==-1||f.indexOf(e)===-1&&t,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),m=[`true`],h=[`false`],g=n(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>m.indexOf(e)!==-1||h.indexOf(e)===-1&&t,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),_=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],v=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],y=n(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>_.indexOf(e)!==-1||v.indexOf(e)===-1&&t,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),b=/* @__PURE__ */ RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),x=/* @__PURE__ */ RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function S(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function C(e,n){if(n){if(!x.test(e))return t}else if(!b.test(e))return t;let r=S(e);return Number.isFinite(r)?r:t}var w=n(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:C,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),T=/* @__PURE__ */ RegExp(`^-?(?:0|[1-9][0-9]*)$`),E=/* @__PURE__ */ RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function D(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function O(e,n){if(n){if(!E.test(e))return t}else if(!T.test(e))return t;let r=D(e);return Number.isFinite(r)?r:t}var k=n(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:O,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),A=/* @__PURE__ */ RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function j(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function M(e){if(!A.test(e))return t;let n=j(e);return Number.isFinite(n)?n:t}var ee=n(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:M,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),te=/* @__PURE__ */ RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),N=/* @__PURE__ */ RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ne(e){if(!te.test(e))return t;let n=e.toLowerCase(),r=n[0]===`-`?-1:1;if(`+-`.includes(n[0])&&(n=n.slice(1)),n===`.inf`)return r===1?1/0:-1/0;if(n===`.nan`)return NaN;let i=r*parseFloat(n);return Number.isFinite(i)||N.test(e)?i:t}function re(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var P=n(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:ne,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:re}),F=/* @__PURE__ */ RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),I=/* @__PURE__ */ RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function L(e,n){if(n){if(!I.test(e))return t;let n=e.toLowerCase(),r=n[0]===`-`?-1:1;if(`+-`.includes(n[0])&&(n=n.slice(1)),n===`.inf`)return r===1?1/0:-1/0;if(n===`.nan`)return NaN;let i=r*parseFloat(n);return Number.isFinite(i)?i:t}if(!F.test(e))return t;let r=Number(e);return Number.isFinite(r)?r:t}function R(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var z=n(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:L,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:R}),ie=/* @__PURE__ */ RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),B=/* @__PURE__ */ RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function V(e){if(!ie.test(e))return t;let n=e.toLowerCase().replace(/_/g,``),r=n[0]===`-`?-1:1;if(`+-`.includes(n[0])&&(n=n.slice(1)),n===`.inf`)return r===1?1/0:-1/0;if(n===`.nan`)return NaN;let i=0;if(n.includes(`:`)){for(let e of n.split(`:`))i=i*60+Number(e);i*=r}else i=r*parseFloat(n);return Number.isFinite(i)||B.test(e)?i:t}function H(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var U=n(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:V,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:H}),ae=n(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,n)=>e===`<<`||n&&e===``?`<<`:t,identify:()=>!1}),oe=/^[A-Za-z0-9+/]*={0,2}$/;function se(e){let n=e.replace(/\s/g,``);if(n.length%4!=0||!oe.test(n))return t;let r=atob(n),i=new Uint8Array(r.length);for(let e=0;e<r.length;e++)i[e]=r.charCodeAt(e);return i}function ce(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var W=n(`tag:yaml.org,2002:binary`,{resolve:se,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:ce}),le=/* @__PURE__ */ RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),ue=/* @__PURE__ */ 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 de(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function fe(e){let n=le.exec(e);if(n===null&&(n=ue.exec(e)),n===null)return t;let r=+n[1],i=n[2]-1,a=+n[3];if(!n[4]){let e=de(r,i,a);return e.getUTCFullYear()!==r||e.getUTCMonth()!==i||e.getUTCDate()!==a?t:e}let o=+n[4],s=+n[5],c=+n[6],l=0;if(o>23||s>59||c>59)return t;if(n[7]){let e=n[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=de(r,i,a,o,s,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==i||u.getUTCDate()!==a)return t;if(n[9]){let e=+n[10],r=+(n[11]||0);if(e>23||r>59)return t;let i=(e*60+r)*6e4;u.setTime(u.getTime()-(n[9]===`-`?-i:i))}return u}var pe=n(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:fe,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),me=r(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function he(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ge(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var _e=r(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:/* @__PURE__ */ new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(he(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),ve=r(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),G=i(`tag:yaml.org,2002:map`,{create:()=>({}),identify:he,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),ye=i(`tag:yaml.org,2002:set`,{create:()=>/* @__PURE__ */ new Set,identify:e=>e instanceof Set,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function be(e){"@babel/helpers - typeof";return be=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},be(e)}function xe(e,t){if(be(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(be(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Se(e){var t=xe(e,`string`);return be(t)==`symbol`?t:t+``}function Ce(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?we(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Te(){return{scalar:[],sequence:[],mapping:[]}}function J(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var Ee=class e{constructor(e){Ce(this,`tags`,void 0),Ce(this,`implicitScalarTags`,void 0),Ce(this,`implicitScalarByFirstChar`,void 0),Ce(this,`implicitScalarAnyFirstChar`,void 0),Ce(this,`defaultScalarTag`,void 0),Ce(this,`defaultSequenceTag`,void 0),Ce(this,`defaultMappingTag`,void 0),Ce(this,`exact`,void 0),Ce(this,`prefix`,void 0);let t=J(e),n=[],r=q(),i=Te();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=/* @__PURE__ */ new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=/* @__PURE__ */ new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let n=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let r of n){let n=r.resolve(e,!1,r.tagName);if(n!==t)return{value:n,tag:r}}let r=this.defaultScalarTag;return{value:r.resolve(e,!1,r.tagName),tag:r}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},De=new Ee([a,me,G]),Oe=new Ee([...De.tags,c,g,k,z]),ke=new Ee([...De.tags,s,p,w,P]),Ae=new Ee([...De.tags,u,y,ee,U,pe,ae,W,_e,ve,ye]),je=Ae.withTags(K(K({},ee),{},{resolve:(e,n,r)=>{let i=ee.resolve(e,n,r);return i===t?w.resolve(e,n,r):i}}),K(K({},U),{},{resolve:(e,n,r)=>{let i=U.resolve(e,n,r);return i===t?P.resolve(e,n,r):i}})),Me=i(`tag:yaml.org,2002:map`,{create:()=>/* @__PURE__ */ new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||he(e),represent:e=>{if(e instanceof Map)return e;let t=/* @__PURE__ */ new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function Ne(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}var Pe=i(`tag:yaml.org,2002:map`,{create:()=>({}),identify:he,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Ne(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Ne(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Fe={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Ie(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function Le(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function Re(e,t){if(!e.buffer)return null;let n=K(K({},Fe),t),r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=Ie(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${Le((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=Ie(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${Le((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=Ie(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${Le((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function ze(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var Be=class e extends Error{constructor(e,t){super(),Ce(this,`reason`,void 0),Ce(this,`mark`,void 0),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=ze(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ze(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=Re(s),new e(r,s)}},Ve={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Y={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},X={BLOCK:1,FLOW:2},He={CLIP:1,STRIP:2,KEEP:3},Ue=-1;function We(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return`	`;case 9:return`	`;case 110:return`
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var Ge=Array(256),Ke=Array(256);for(let e=0;e<256;e++)Ge[e]=+!!We(e),Ke[e]=We(e);function qe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Je(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Ye(e){return e===120?2:e===117?4:8}function Xe(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(n===10)r++,t++;else if(n===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(n===32||n===9)t++;else break}return{position:t,breaks:r}}function Ze(e){return e===1?` `:`
`.repeat(e-1)}function Qe(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===10||t===13){r+=e.slice(a,o);let t=Xe(e,i,n);r+=Ze(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,o)}function $e(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===39)r+=e.slice(a,i)+`'`,i+=2,a=o=i;else if(t===10||t===13){r+=e.slice(a,o);let t=Xe(e,i,n);r+=Ze(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function et(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===92){r+=e.slice(a,i),i++;let t=e.charCodeAt(i);if(t===10||t===13)i=Xe(e,i,n).position;else if(t<256&&Ge[t])r+=Ke[t],i++;else{let n=Ye(t),a=0;for(;n>0;n--){i++;let t=Je(e.charCodeAt(i));a=(a<<4)+t}r+=qe(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=Xe(e,i,n);r+=Ze(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function tt(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
`),c=s===``?[]:(s.endsWith(`
`)?s.slice(0,-1):s).split(`
`),l=``,u=!1,d=0,f=!1;for(let e of c){let t=0;for(;t<o&&e.charCodeAt(t)===32;)t++;if(r<0||t>=e.length){d++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(f=!0,l+=`
`.repeat(u?1+d:d)):f?(f=!1,l+=`
`.repeat(d+1)):d===0?u&&(l+=` `):l+=`
`.repeat(d):l+=`
`.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===He.KEEP?l+=`
`.repeat(u?1+d:d):i!==He.STRIP&&u&&(l+=`
`),l}function nt(e,t){if(t.valueStart===Ue)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Y.SINGLE_QUOTED:return $e(e,n,r);case Y.DOUBLE_QUOTED:return et(e,n,r);case Y.LITERAL_BLOCK:return tt(e,n,r,t.indent,t.chomping,!1);case Y.FOLDED_BLOCK:return tt(e,n,r,t.indent,t.chomping,!0);default:return Qe(e,n,r)}}var rt=Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function it(e){return encodeURI(e).replace(/!/g,`%21`)}function at(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??rt[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function ot(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${it(t)}`):t.slice(0,18)===`tag:yaml.org,2002:`?`!!${it(t.slice(18))}`:`!<${it(t)}>`}var st=-1,ct=`tag:yaml.org,2002:merge`,lt={filename:``,schema:ke,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function ut(e){return`tagStart`in e&&e.tagStart!==st?e.tagStart:`anchorStart`in e&&e.anchorStart!==st?e.anchorStart:`valueStart`in e&&e.valueStart!==st?e.valueStart:`start`in e?e.start:0}function dt(e,t){Be.throwAt(e.source,e.position,t,e.filename)}function ft(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Be)throw n;Be.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function pt(e,n){let r=nt(e.source,n),i=n.tagStart===st?``:e.source.slice(n.tagStart,n.tagEnd),a=e.schema.defaultScalarTag;if(i!==``){if(i===`!`)return{value:r,tag:a};let n=at(i,e.tagHandlers),o=e.schema.lookupScalarTag(n);if(o){let i=o.resolve(r,!0,n);return i===t&&dt(e,`cannot resolve a node with !<${n}> explicit tag`),{value:i,tag:o}}let s=e.schema.lookupMappingTag(n)??e.schema.lookupSequenceTag(n);if(s){r!==``&&dt(e,`cannot resolve a node with !<${n}> explicit tag`);let t=s.create(n);return{value:s.carrierIsResult?t:ft(e,e.position,s,t),tag:s}}dt(e,`unknown scalar tag !<${n}>`)}return n.style===Y.PLAIN?e.schema.resolveImplicitScalarTag(r):{value:a.resolve(r,!1,a.tagName),tag:a}}function mt(e,t,n){let r=t.tagStart===st?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:at(r,e.tagHandlers)}function ht(e){return e.nodeKind===`mapping`}function gt(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&dt(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function _t(e,t,n,r){gt(e);for(let i of r.keys(n)){if(gt(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&dt(e,a),t.overridable??=/* @__PURE__ */ new Set,t.overridable.add(i)}}function vt(e,t,n,r){if(e.position=t.keyPosition,ht(r))_t(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&dt(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||dt(e,`cannot merge mappings; the provided source object is unacceptable`),_t(e,t,r,n)}}else dt(e,`cannot merge mappings; the provided source object is unacceptable`)}function yt(e,t,n,r,i){var a;if(e.position=t.keyPosition,t.keyIsMerge){vt(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&dt(e,`duplicated mapping key`);let o=t.tag.addPair(t.value,n,r);o&&dt(e,o),(a=t.overridable)==null||a.delete(n)}function bt(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){ht(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&dt(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,yt(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===ct}function xt(e,t,n,r,i){if(t.anchorStart!==st){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function St(e,t){let n=K(K(K({},lt),t),{},{events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:/* @__PURE__ */ new Map,nodeTags:/* @__PURE__ */ new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0});for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position=ut(e),e.type){case Ve.DOCUMENT:n.anchors=/* @__PURE__ */ new Map,n.nodeTags=/* @__PURE__ */ new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(let t of e.directives)t.kind===`tag`&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:`document`,position:n.position,value:void 0,hasValue:!1});break;case Ve.SCALAR:{let{value:t,tag:r}=pt(n,e);xt(n,e,t,r,!0),bt(n,t,r);break}case Ve.SEQUENCE:{let t=mt(n,e,`tag:yaml.org,2002:seq`),r=n.schema.lookupSequenceTag(t);r||dt(n,`unknown sequence tag !<${t}>`);let i=r.create(t),a=xt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case Ve.MAPPING:{let t=mt(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||dt(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=xt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Ve.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&dt(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||dt(n,`unidentified alias "${t}"`),r.isValueFinal||dt(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),bt(n,r.value,r.tag);break}case Ve.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,dt(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:ft(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),bt(n,t,e.tag)}break}}}return n.documents}var Ct=-1,wt=Object.prototype.hasOwnProperty,Tt=1,Et=2,Dt=3,Ot=4,kt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,At=/[,\[\]{}]/,jt=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Mt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Nt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Pt=RegExp(`^(?:${Mt})*$`),Ft=RegExp(`^(?:${Nt})+$`),It=RegExp(`^(?:!(?:${Mt})*|${Nt}(?:${Mt})*)$`),Lt={filename:``,maxDepth:100};function Rt(e,t,n){e.events.push({type:Ve.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function zt(e,t,n,r,i,a,o){e.events.push({type:Ve.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function Bt(e,t,n,r,i,a,o){e.events.push({type:Ve.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function Vt(e,t){e.events.splice(t.eventsLength,0,{type:Ve.MAPPING,start:t.position,anchorStart:Ct,anchorEnd:Ct,tagStart:Ct,tagEnd:Ct,style:X.FLOW})}function Ht(e,t,n,r,i,a,o,s,c=He.CLIP,l=-1,u=!1){e.events.push({type:Ve.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function Ut(e,t,n){e.events.push({type:Ve.ALIAS,anchorStart:t,anchorEnd:n})}function Wt(e){e.events.push({type:Ve.POP})}function Gt(e){Ht(e,Ct,Ct,Ct,Ct,Ct,Ct,Y.PLAIN)}function Kt(){return{anchorStart:Ct,anchorEnd:Ct,tagStart:Ct,tagEnd:Ct}}function qt(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Jt(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function Z(e,t){Be.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function Yt(e){return e===10||e===13}function Xt(e){return e===9||e===32}function Q(e){return Xt(e)||Yt(e)}function Zt(e){return e===0||Q(e)}function Qt(e){return e===44||e===91||e===93||e===123||e===125}function $t(e){return e>=48&&e<=57?e-48:-1}function en(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function tn(e){return e===120?2:e===117?4:e===85?8:0}function nn(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function rn(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function an(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Q(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Xt(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!Yt(r)&&r!==0);if(!Yt(r))break;for(rn(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function on(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||Q(n)}return!1}function sn(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function cn(e){if(e.position!==e.lineStart)return!1;if(on(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=qt(e);sn(e),an(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&on(e));return Jt(e,t),r}function ln(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Yt(t);)t=e.input.charCodeAt(++e.position)}function un(e,t,n){kt.test(e.input.slice(t,n))&&Z(e,`the stream contains non-printable characters`)}function dn(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Ct&&Z(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&Z(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!Q(s)&&!(n&&Qt(s));)s===33&&(a?Z(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),jt.test(o)||Z(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),At.test(l)&&Z(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?Pt.test(l):Ft.test(l))&&Z(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!wt.call(e.tagHandlers,o)&&Z(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function fn(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Ct&&Z(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Q(e.input.charCodeAt(e.position))&&!Qt(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&Z(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function pn(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Ct||t.tagStart!==Ct)&&Z(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Q(e.input.charCodeAt(e.position))&&!Qt(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&Z(e,`name of an alias node must contain at least one character`),Ut(e,n,e.position),!0}function mn(e,t){an(e,!1),e.lineIndent<t&&Z(e,`deficient indentation`)}function hn(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let t=e.position;return e.position++,Ht(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Y.SINGLE_QUOTED,He.CLIP,-1,i),!0}Yt(a)?(i=!1,mn(e,t)):e.position===e.lineStart&&on(e)?Z(e,`unexpected end of the document within a single quoted scalar`):a!==9&&a<32?Z(e,`expected valid JSON character`):e.position++}Z(e,`unexpected end of the stream within a single quoted scalar`)}function gn(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===34){let t=e.position;return e.position++,Ht(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Y.DOUBLE_QUOTED,He.CLIP,-1,i),!0}if(a===92){i=!1;let n=e.input.charCodeAt(++e.position);if(Yt(n))mn(e,t);else if(nn(n))e.position++;else{let t=tn(n);for(t===0&&Z(e,`unknown escape sequence`);t-->0;)e.position++,en(e.input.charCodeAt(e.position))<0&&Z(e,`expected hexadecimal character`);e.position++}}else Yt(a)?(i=!1,mn(e,t)):e.position===e.lineStart&&on(e)?Z(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?Z(e,`expected valid JSON character`):e.position++}Z(e,`unexpected end of the stream within a double quoted scalar`)}function _n(e,t,n){let r=e.input.charCodeAt(e.position),i=He.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Y.LITERAL_BLOCK:Y.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=$t(n);if(n===43||n===45)i!==He.CLIP&&Z(e,`repeat of a chomping mode identifier`),i=n===43?He.KEEP:He.STRIP,e.position++;else if(r>=0)r===0&&Z(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&Z(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;Xt(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&ln(e),Yt(e.input.charCodeAt(e.position))?rn(e):e.input.charCodeAt(e.position)!==0&&Z(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(cn(e))break;if(!o&&l===-1&&Yt(i)&&(u=Math.max(u,r)),!o&&l===-1&&!Yt(i)&&(i===9&&r<t&&(e.position=n+r,Z(e,`tab characters must not be used in indentation`)),r<u&&(e.position=n+r,Z(e,`bad indentation of a mapping entry`))),l===-1&&i!==0&&!Yt(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!Yt(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!Yt(i)&&r<a){e.lineIndent=r,e.position=n+r;break}ln(e),f=e.position,Yt(e.input.charCodeAt(e.position))&&(rn(e),f=e.position)}return un(e,d,f),Ht(e,d,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,i,l),!0}function vn(e,t){let n=e.input.charCodeAt(e.position),r=t===Tt;if(n===0||Q(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&Qt(n))return!1;if(n===63||n===45){let t=e.input.charCodeAt(e.position+1);if(Zt(t)||r&&Qt(t))return!1}return!0}function yn(e,t,n,r){if(!vn(e,n))return!1;let i=e.position,a=e.position,o=e.input.charCodeAt(e.position),s=n===Tt,c=!1;for(;o!==0&&!cn(e);){if(o===58){let t=e.input.charCodeAt(e.position+1);if(Zt(t)||s&&Qt(t))break}else if(o===35){if(Q(e.input.charCodeAt(e.position-1)))break}else if(s&&Qt(o))break;else if(Yt(o)){let n=e.position,r=e.line,i=e.lineStart,a=e.lineIndent;if(an(e,!1),e.lineIndent>=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}Xt(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(un(e,i,a),Ht(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Y.PLAIN,He.CLIP,-1,!c),!0)}function bn(e,t){let n=e.line;an(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&Z(e,`deficient indentation`)}function xn(e,t,n){let r=e.input.charCodeAt(e.position),i=r===123,a=e.position,o=!0;if(r!==91&&r!==123)return!1;let s=i?125:93;for(i?Bt(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,X.FLOW):zt(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,X.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){bn(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,Wt(e),!0;o?n===44&&Z(e,`expected the node content, but found ','`):Z(e,`missed comma between flow collection entries`);let r=!1,a=!1;n===63&&Q(e.input.charCodeAt(e.position+1))&&(r=a=!0,e.position+=1,bn(e,t));let c=e.line,l=qt(e),u=wn(e,t,Tt,!1,!0);bn(e,t),n=e.input.charCodeAt(e.position),(i||a||e.line===c)&&n===58?(r=!0,e.position++,bn(e,t),i||Vt(e,l),u||Gt(e),wn(e,t,Tt,!1,!0)||Gt(e),bn(e,t),i||Wt(e)):i&&r?(u||Gt(e),Gt(e)):i?Gt(e):r&&(Vt(e,l),u||Gt(e),Gt(e),Wt(e)),n=e.input.charCodeAt(e.position),n===44?(o=!0,e.position++):o=!1}Z(e,`unexpected end of the stream within a flow collection`)}function Sn(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Zt(e.input.charCodeAt(e.position+1)))return!1;for(zt(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,X.BLOCK);e.input.charCodeAt(e.position)===45&&Zt(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,`tab characters must not be used in indentation`));let n=e.line;e.position++;let r=an(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Zt(e.input.charCodeAt(e.position+1))&&Z(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?Gt(e):wn(e,t,Dt,!1,!0),an(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&Z(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&Zt(e.input.charCodeAt(e.position+1))&&Z(e,`bad indentation of a sequence entry`)}return Wt(e),!0}function Cn(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&Zt(l))o||=(Bt(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,X.BLOCK),!0),c===63?(i&&Gt(e),a=!0,i=!0):(i||(Gt(e),a=!0),i=!1),e.position+=1,s=!0;else{i&&=(Gt(e),!1);let t=qt(e);if(!wn(e,n,Et,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);Xt(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),Zt(c)||Z(e,`a whitespace character is expected after the key-value separator within a block mapping`),!o){for(Jt(e,t),Bt(e,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,X.BLOCK),o=!0,wn(e,n,Et,!1,!0),c=e.input.charCodeAt(e.position);Xt(c);)c=e.input.charCodeAt(++e.position);e.position++}a=!0,i=!1,s=!1}else if(a)Z(e,`expected ':' after a mapping key`);else return r.anchorStart!==Ct||r.tagStart!==Ct?(Jt(e,t),!1):!0}else if(a)Z(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Ct||r.tagStart!==Ct?(Jt(e,t),!1):!0}if(wn(e,t,Ot,!0,s)&&(s=!1),i||(s&&=(Gt(e),!1)),an(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)Z(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return a?(i&&Gt(e),o&&Wt(e),!0):!1}function wn(e,t,n,r,i,a=!0){e.depth>=e.maxDepth&&Z(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=Kt(),d=n===Ot||n===Dt,f=d,p=d;if(r&&an(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=qt(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==Ct||u.anchorStart!==Ct)&&(r===33||r===38)){let n=qt(e),r=t+1;if(Cn(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===Ve.MAPPING)return e.depth--,!0;Jt(e,n)}if(s&&(r===33&&u.tagStart!==Ct||r===38&&u.anchorStart!==Ct)||!dn(e,u,n===Tt)&&!fn(e,u))break;l===null&&(l=i),an(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===Ot){let r=n===Tt||n===Et?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Sn(e,i,u)||Cn(e,i,r,u))||xn(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=qt(e),n=l.position-l.lineStart;Jt(e,l),Cn(e,n,r,Kt())&&e.events[t.eventsLength]?.type===Ve.MAPPING?c=!0:Jt(e,t)}!c&&(d&&_n(e,r,u)||hn(e,r,u)||gn(e,r,u)||pn(e,u)||yn(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Sn(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==Ct||u.tagStart!==Ct||d)&&(Ht(e,Ct,Ct,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,Y.PLAIN),c=!0),e.depth--,c||u.anchorStart!==Ct||u.tagStart!==Ct}function Tn(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Q(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&Z(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!Yt(e.input.charCodeAt(e.position));){for(;Xt(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Yt(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Q(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(Yt(e.input.charCodeAt(e.position))&&rn(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&Z(e,`duplication of %YAML directive`),r.length!==1&&Z(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&Z(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&Z(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&Z(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;jt.test(t)||Z(e,`ill-formed tag handle (first argument) of the TAG directive`),wt.call(e.tagHandlers,t)&&Z(e,`there is a previously declared suffix for "${t}" tag handle`),It.test(n)||Z(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function En(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(an(e,!0);Tn(e);)t=!0,an(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Zt(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,an(e,!0),i=e.line>t}else t&&Z(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&on(e)){e.position+=3,an(e,!0);return}if(Rt(e,n,!1),wn(e,e.lineIndent-1,Ot,!1,i,i)||Gt(e),an(e,!0),e.position===e.lineStart&&on(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,an(e,!0),e.line===t&&e.position<e.length&&Z(e,`end of the stream or a document separator is expected`)}let o=e.events[a];o?.type===Ve.DOCUMENT&&(o.explicitEnd=r),Wt(e),!r&&e.position<e.length&&!cn(e)&&Z(e,`end of the stream or a document separator is expected`)}function Dn(e,t){let n=e.length,r=K(K(K({},Lt),t),{},{input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]}),i=e.indexOf(`\0`);for(i!==-1&&Be.throwAt(e,i,`null byte is not allowed in input`,r.filename);r.position<r.length&&(sn(r),an(r,!0),!(r.position>=r.length));){let e=r.position;En(r),r.position===e&&
/* c8 ignore next */
Z(r,`can not read a document`)}return r.events}var On=K(K({},Lt),lt);function kn(e,t={}){let n=K(K({},On),t),r=String(e),i=Object.keys(Lt),a=Object.keys(lt);return St(Dn(r,ge(n,i)),K(K({},ge(n,a)),{},{source:r}))}function An(e,t,n){let r=null;typeof t==`function`?r=t:typeof t==`object`&&t&&(n=t);let i=kn(e,n);if(r===null)return i;for(let e of i)r(e)}function jn(e,t){let n=kn(e,t);if(n.length===0)throw new Be(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Be(`expected a single document in the stream, but found more`)}var Mn=Symbol(`INVALID`);function Nn(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(e=>e!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(e=>!(e.nodeKind===`scalar`&&e.implicit)&&!t.has(e)),i=e.tags.filter(e=>t.has(e));return[...n.map(e=>({tag:e,implicitTag:!0})),...r.map(e=>({tag:e,implicitTag:!1})),...i.map(e=>({tag:e,implicitTag:!0}))]}function Pn(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){let{tag:r,implicitTag:i}=e.representTypes[n];if(r.identify(t)){let e;return e=r.matchByTagPrefix?r.representTagName(t):r.tagName,{tag:r,tagName:e,implicitTag:i}}}return null}function Fn(e,t){if(!e.noRefs&&typeof t==`object`&&t){let n=e.refs.get(t);if(n)return n.anchor===void 0&&(n.anchor=`ref_${e.refCounter++}`),{kind:`alias`,anchor:n.anchor}}let n=Pn(e,t);if(!n){if(t===void 0||e.skipInvalid)return Mn;throw new Be(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:r,tagName:i,implicitTag:a}=n,o=a?i:ot(i);if(r.nodeKind===`scalar`)return{kind:`scalar`,tag:o,tagged:!a,style:Y.PLAIN,value:r.represent(t)};if(r.nodeKind===`sequence`){let n=r.represent(t),i={kind:`sequence`,tag:o,tagged:!a,style:X.BLOCK,items:[]};e.noRefs||e.refs.set(t,i);for(let t=0,r=n.length;t<r;t+=1){let r=Fn(e,n[t]);r===Mn&&n[t]===void 0&&(r=Fn(e,null)),r!==Mn&&i.items.push(r)}return i}let s=r.represent(t),c={kind:`mapping`,tag:o,tagged:!a,style:X.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let[t,n]of s){let r=Fn(e,t);if(r===Mn)continue;let i=Fn(e,n);i!==Mn&&c.items.push({key:r,value:i})}return c}function In(e,t,n={}){let r=Fn({representTypes:Nn(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:/* @__PURE__ */ new Map,refCounter:0},e);return[{contents:r===Mn?null:r,directives:[]}]}var Ln=Symbol(`visit:break`),Rn=Symbol(`visit:skip`);function zn(e,t,n){let r=t(e,n);if(r===Ln)return!0;if(r===Rn)return!1;let i=n.depth+1;switch(e.kind){case`sequence`:for(let n of e.items)if(zn(n,t,{depth:i,parent:e,isKey:!1}))return!0;break;case`mapping`:for(let{key:n,value:r}of e.items)if(zn(n,t,{depth:i,parent:e,isKey:!0})||zn(r,t,{depth:i,parent:e,isKey:!1}))return!0}return!1}function Bn(e,t){for(let n of e)if(n.contents&&zn(n.contents,t,{depth:0,parent:null,isKey:!1}))return}function Vn(e,t){return!!(e&1<<t)}var Hn={applyQuoteFlowKeysOption:Wn,doubleQuoteForInvisibles:Gn,doubleQuoteWhitespaceOnly:Kn,applyForceQuotesOption:qn,tryLongOrMultilineAsBlock:Jn,quoteInvalidPlain:Yn,fallbackToDoubleQuoted:Xn};function Un(e){return e.presenterOptions.quoteStyle===`single`&&Vn(e.allowedStylesMask,Y.SINGLE_QUOTED)?Y.SINGLE_QUOTED:Y.DOUBLE_QUOTED}function Wn(e){e.presenterOptions.quoteFlowKeys&&e.isKey&&e.flowOnly&&e.style===Y.PLAIN&&(e.style=Y.DOUBLE_QUOTED)}function Gn(e){e.style===Y.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=Y.DOUBLE_QUOTED)}function Kn(e){e.style===Y.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=Y.DOUBLE_QUOTED)}function qn(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==Y.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
`)?Y.DOUBLE_QUOTED:Un(e)))}function Jn(e){if(e.style!==Y.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(`
`)!==-1;if(!Vn(e.allowedStylesMask,Y.LITERAL_BLOCK)){n&&(e.style=Y.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=Y.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(`
`,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Y.FOLDED_BLOCK:n&&(e.style=Y.LITERAL_BLOCK)}function Yn(e){e.style===Y.PLAIN&&!Vn(e.allowedStylesMask,Y.PLAIN)&&(e.style=Un(e))}function Xn(e){Vn(e.allowedStylesMask,e.style)||(e.style=Y.DOUBLE_QUOTED)}function Zn(e,t){return e|1<<t}var Qn=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,$n=`[\\n\\r]`,er=`\\uFEFF`,tr=`[ \\t]`,nr=`(?:(?!(?:${$n}|${er}))${Qn})`,rr=`(?:(?!${tr})${nr})`,ir=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,ar=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,$=`[,\\[\\]{}]`,or=rr,sr=`(?:(?!${$})${rr})`,cr=`(?:(?:(?!${ar})${rr})|[?:-](?=${or}))`,lr=`(?:(?:(?!${ar})${rr})|[?:-](?=${sr}))`,ur=`(?:(?:(?![:#])${or})|:(?=${or}))#*`,dr=`(?:(?:(?![:#])${sr})|:(?=${sr}))#*`,fr=`(?:${tr}*${ur})*`,pr=`(?:${tr}*${dr})*`,mr=`${cr}#*${fr}`,hr=`${lr}#*${pr}`,gr=mr,_r=hr,vr=`\\n+${ur}${fr}`,yr=`\\n+${dr}${pr}`,br=`${mr}(?:${vr})*`,xr=`${hr}(?:${yr})*`,Sr=RegExp(`^(?:${br})$`,`u`),Cr=RegExp(`^(?:${xr})$`,`u`),wr=RegExp(`^(?:${gr})$`,`u`),Tr=RegExp(`^(?:${_r})$`,`u`),Er=RegExp(`^(?:${ir})*$`,`u`),Dr=RegExp(`^(?:${ir}|\\n)*$`,`u`),Or=RegExp(`^(?:${nr}|\\n)*$`,`u`),kr=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,Ar=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function jr(e){let t=e.node.value;if(t!==``){if(!(e.isKey?e.flowOnly?Tr:wr:e.flowOnly?Cr:Sr).test(t)||e.shiftOfFirstLine===0&&kr.test(t))return!1;if(e.shiftOfContent===0){let e=t.indexOf(`
`);if(e!==-1){let n=t.slice(e+1);if(Ar.test(n))return!1}}}let n=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&n!==e.node.tag||!e.node.tagged&&t===`=`&&n===e.presenterOptions.schema.defaultScalarTag.tagName)}function Mr(e){let t=e.node.value;if(!(e.isKey?Er:Dr).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){let e=t.indexOf(`
`);if(e!==-1&&Ar.test(t.slice(e+1)))return!1}return!0}function Nr(e){if(e.flowOnly||!Or.test(e.node.value))return!1;let t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&Ar.test(e.node.value))}function Pr(e){let t=Zn(0,Y.DOUBLE_QUOTED);jr(e)&&(t=Zn(t,Y.PLAIN)),Mr(e)&&(t=Zn(t,Y.SINGLE_QUOTED)),Nr(e)&&(t=Zn(Zn(t,Y.LITERAL_BLOCK),Y.FOLDED_BLOCK)),e.allowedStylesMask=t}function Fr(e){switch(e.style){case Y.PLAIN:return Ir(e);case Y.SINGLE_QUOTED:return Lr(e);case Y.LITERAL_BLOCK:return Rr(e);case Y.FOLDED_BLOCK:return zr(e);case Y.DOUBLE_QUOTED:return Br(e)}}function Ir(e){return Vr(e.node.value,e.shiftOfContent)}function Lr(e){return`'${Vr(e.node.value,e.shiftOfContent).replace(/'/g,`''`)}'`}function Rr(e){let t=e.node.value;return`|`+Wr(t,e.shiftOfParent,e.shiftOfContent)+Gr(Hr(t,e.shiftOfContent))}function zr(e){let t=e.node.value,n=e.presenterOptions.lineWidth,r=1/0;return n!==-1&&(r=Math.max(Math.min(n,40),n-e.shiftOfContent)),`>`+Wr(t,e.shiftOfParent,e.shiftOfContent)+Gr(Hr(Jr(t,r),e.shiftOfContent))}function Br(e){return`"${Zr(e.node.value)}"`}function Vr(e,t){let n=e.indexOf(`
`);if(n===-1)return e;let r=` `.repeat(t),i=e.slice(0,n),a=/(\n+)([^\n]*)/g;a.lastIndex=n;let o;for(;o=a.exec(e);){let e=o[1].length,t=o[2];i+=`
`.repeat(e+1)+r+t}return i}function Hr(e,t){let n=` `.repeat(t),r=0,i=``,a=e.length;for(;r<a;){let t,o=e.indexOf(`
`,r);o===-1?(t=e.slice(r),r=a):(t=e.slice(r,o+1),r=o+1),t.length&&t!==`
`&&(i+=n),i+=t}return i}function Ur(e){return/^\n* /.test(e)}function Wr(e,t,n){let r=Ur(e)?String(n-t):``,i=e[e.length-1]===`
`;return`${r}${i&&(e[e.length-2]===`
`||e===`
`)?`+`:i?``:`-`}\n`}function Gr(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function Kr(e){return e===` `||e===`	`}function qr(e,t){if(e===``||Kr(e[0]))return e;let n=/ [^ \t]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`\n${e.slice(i,a)}`,i=a+1),o=s;return c+=`
`,e.length-i>t&&o>i?c+=`${e.slice(i,o)}\n${e.slice(o+1)}`:c+=e.slice(i),c.slice(1)}function Jr(e,t){let n=/(\n+)([^\n]*)/g,r=e.indexOf(`
`);r===-1&&(r=e.length),n.lastIndex=r;let i=qr(e.slice(0,r),t),a=e[0]===`
`||Kr(e[0]),o,s;for(;s=n.exec(e);){let e=s[1],n=s[2];o=n!==``&&Kr(n[0]),i+=e+(!a&&!o&&n!==``?`
`:``)+qr(n,t),a=o}return i}var Yr=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Xr(e){switch(e){case`\0`:return`\\0`;case`\x07`:return`\\a`;case`\b`:return`\\b`;case`	`:return`\\t`;case`
`:return`\\n`;case`\v`:return`\\v`;case`\f`:return`\\f`;case`\r`:return`\\r`;case`\x1B`:return`\\e`;case`"`:return`\\"`;case`\\`:return`\\\\`;case`…`:return`\\N`;case`\xA0`:return`\\_`;case`\u2028`:return`\\L`;case`\u2029`:return`\\P`}let t=e.charCodeAt(0),n=t.toString(16).toUpperCase();return t<=255?`\\x${`0`.repeat(2-n.length)}${n}`:`\\u${`0`.repeat(4-n.length)}${n}`}function Zr(e){return e.replace(Yr,Xr)}var Qr=10,$r={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(Hn).map(e=>Reflect.get(Hn,e)),tagBeforeAnchor:!1};function ei(e){return e.tagged?e.tag:ot(e.tag)}function ti(e){let t=K(K({},$r),e);return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),K(K({},t),{},{defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1})}function ni(e,t){return`\n${` `.repeat(e.indent*t)}`}function ri(e,t,n,r,i,a){return{node:t,parent:n,level:r,isKey:i,flowOnly:a,shiftOfParent:r===0?-1:e.indent*(r-1),shiftOfContent:e.indent*Math.max(1,r),shiftOfFirstLine:r===0?0:e.indent*r,presenterOptions:e,allowedStylesMask:0,style:t.style}}function ii(e,t,n){let r=``;for(let i=0,a=n.items.length;i<a;i+=1){let a=li(e,t,n.items[i],n,{}).text;i>0&&(r+=`,${e.flowSkipCommaSpace?``:` `}`),r+=a}let i=e.flowBracketPadding&&n.items.length>0?` `:``;return`[${i}${r}${i}]`}function ai(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=li(e,t+1,n.items[a],n,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;r&&i===``||(i+=ni(e,t)),o===``||Qr===o.charCodeAt(0)?i+=`-`:i+=`- `,i+=o}return i}function oi(e,t,n){let r=``;for(let{key:i,value:a}of n.items){let o=``;r!==``&&(o+=`,${e.flowSkipCommaSpace?``:` `}`);let s=li(e,t,i,n,{iskey:!0}),c=s.text,l=li(e,t,a,n,{}).text,u=e.flowSkipColonSpace||l===``?``:` `,d=i.kind===`scalar`&&s.noBody&&(i.tagged||i.anchor!==void 0),f=i.kind===`alias`||d?` `:``;o+=`${c}${f}:${u}${l}`,r+=o}let i=e.flowBracketPadding&&r!==``?` `:``;return`{${i}${r}${i}}`}function si(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=``;r&&i===``||(o+=ni(e,t));let{key:s,value:c}=n.items[a],l=(s.kind===`mapping`||s.kind===`sequence`)&&s.style===X.BLOCK&&s.items.length!==0||s.kind===`scalar`&&(s.style===Y.LITERAL_BLOCK||s.style===Y.FOLDED_BLOCK),u=l?li(e,t+1,s,n,{block:!0,compact:!0,isblockseq:!ci(e,s,t+1)}):li(e,t+1,s,n,{block:!0,compact:!0,iskey:!0}),d=u.text,f=s.kind===`scalar`&&s.value.indexOf(`
`)!==-1,p=d.length>1024&&/^[\s\S]{1025}/u.test(d),m=l||f||p;m&&(d&&Qr===d.charCodeAt(0)?o+=`?`:o+=`? `),o+=d,m&&(o+=ni(e,t));let h=li(e,t+1,c,n,{block:!0,compact:m,isblockseq:m&&!ci(e,c,t+1)}).text,g=s.kind===`scalar`&&u.noBody&&(s.tagged||s.anchor!==void 0),_=!m&&(s.kind===`alias`||g)?` `:``;h===``||Qr===h.charCodeAt(0)?o+=`${_}:`:o+=`${_}: `,o+=h,i+=o}return i}function ci(e,t,n){return t.kind===`alias`||t.tagged||t.anchor!==void 0||e.indent<2&&n>0}function li(e,t,n,r,i){if(n.kind===`alias`)return e.openEnded=!1,{text:`*${n.anchor}`,noBody:!1};let{block:a=!1,iskey:o=!1,isblockseq:s=!1}=i,c=i.compact??!1,l=n.anchor!==void 0;ci(e,n,t)&&(c=!1);let u,d=n.tagged,f=a&&(n.kind===`mapping`||n.kind===`sequence`)&&n.style===X.BLOCK&&n.items.length!==0;if(n.kind===`mapping`)u=f?si(e,t,n,c):oi(e,t,n);else if(n.kind===`sequence`)u=f?e.seqNoIndent&&!s&&t>0?ai(e,t-1,n,c):ai(e,t,n,c):ii(e,t,n);else{let i=ri(e,n,r,t,o,!a);Pr(i);for(let t of e.scalarStyleRules)t(i);u=Fr(i),e.openEnded=(i.style===Y.LITERAL_BLOCK||i.style===Y.FOLDED_BLOCK)&&(n.value===`
`||n.value.endsWith(`

`)),d=n.tagged||u===``&&i.flowOnly&&r?.kind===`sequence`&&!l||i.style!==Y.PLAIN&&n.tag!==e.defaultScalarTagName}n.kind!==`mapping`&&n.kind!==`sequence`||f||(e.openEnded=!1),f&&c&&t>0&&e.indent>2&&(u=`${` `.repeat(e.indent-2)}${u}`);let p=u===``,m=u;if(d||l){let t=[],r=d?ei(n):null,i=l?`&${n.anchor}`:null;e.tagBeforeAnchor?(r!==null&&t.push(r),i!==null&&t.push(i)):(i!==null&&t.push(i),r!==null&&t.push(r));let a=u===``||u.charCodeAt(0)===Qr?``:` `;m=`${t.join(` `)}${a}${u}`}return{text:m,noBody:p}}function ui(e){return(e.kind===`sequence`||e.kind===`mapping`)&&e.style===X.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function di(e){let t=``;for(let n of e.directives){if(n.kind===`yaml`){t+=`%YAML ${n.version}\n`;continue}let{handle:e,prefix:r}=n;t+=`%TAG ${e} ${r}\n`}return t}function fi(e,t){let n=ti(t),r=``,i=!1;for(let t=0;t<e.length;t+=1){let a=e[t];n.openEnded=!1;let o=di(a),s=o!==``,c=a.explicitStart||s||t>0&&!i;if(r+=o,a.contents===null)c&&(r+=`---
`);else if(c){let e=li(n,0,a.contents,null,{block:!0,compact:!0}).text,t=e===``?``:s||ui(a.contents)?`
`:` `;r+=`---${t}${e}\n`}else r+=li(n,0,a.contents,null,{block:!0,compact:!0}).text+`
`;i=a.explicitEnd||n.openEnded,i&&(r+=`...
`)}return r}var pi=K(K({},$r),{},{schema:je,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}});function mi(e,t){let n=String(e),r=String(t);return n<r?-1:+(n>r)}function hi(e,t={}){let n=K(K({},pi),t),r=In(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});if(n.flowLevel>=0&&Bn(r,(e,t)=>{if(!(t.depth<n.flowLevel))return(e.kind===`sequence`||e.kind===`mapping`)&&(e.style=X.FLOW),Rn}),n.sortKeys){let e=n.sortKeys===!0?mi:n.sortKeys;Bn(r,t=>{t.kind===`mapping`&&t.items.sort((t,n)=>e(t.key.kind===`scalar`?t.key.value:``,n.key.kind===`scalar`?n.key.value:``))})}return n.transform(r),fi(r,K(K({},ge(n,Object.keys($r))),{},{schema:n.schema}))}var gi=-1;function _i(e){return`tagStart`in e&&e.tagStart!==gi?e.tagStart:`anchorStart`in e&&e.anchorStart!==gi?e.anchorStart:`valueStart`in e&&e.valueStart!==gi?e.valueStart:`start`in e?e.start:0}function vi(e,t){return t.tagStart===gi?``:e.source.slice(t.tagStart,t.tagEnd)}function yi(e,t){return t.anchorStart===gi?void 0:e.source.slice(t.anchorStart,t.anchorEnd)}function bi(e,t){let n=nt(e.source,t),r=vi(e,t),i,a=!1;return r===``?i=t.style===Y.PLAIN?e.schema.resolveImplicitScalarTag(n).tag.tagName:e.schema.defaultScalarTag.tagName:(a=!0,i=r),{kind:`scalar`,tag:i,tagged:a,style:t.style,anchor:yi(e,t),value:n}}function xi(e,t,n){let r=vi(e,t),i,a=!1;return r===``?i=n:(i=r,a=!0),{tag:i,tagged:a,style:t.style,anchor:yi(e,t)}}function Si(e,t){let n=e.frames[e.frames.length-1];n.kind===`document`?n.doc.contents=t:n.kind===`sequence`?n.node.items.push(t):n.key?(n.node.items.push({key:n.key,value:t}),n.key=null):n.key=t}function Ci(e,t){let n={source:t.source,schema:t.schema,eventIndex:0,position:0,frames:[],documents:[]};for(;n.eventIndex<e.length;){let t=e[n.eventIndex++];switch(n.position=_i(t),t.type){case Ve.DOCUMENT:{let e={contents:null,explicitStart:t.explicitStart,explicitEnd:t.explicitEnd,directives:t.directives};n.frames.push({kind:`document`,doc:e});break}case Ve.SCALAR:Si(n,bi(n,t));break;case Ve.SEQUENCE:{let{tag:e,tagged:r,style:i,anchor:a}=xi(n,t,`tag:yaml.org,2002:seq`),o={kind:`sequence`,tag:e,tagged:r,style:i,anchor:a,items:[]};n.frames.push({kind:`sequence`,node:o});break}case Ve.MAPPING:{let{tag:e,tagged:r,style:i,anchor:a}=xi(n,t,`tag:yaml.org,2002:map`),o={kind:`mapping`,tag:e,tagged:r,style:i,anchor:a,items:[]};n.frames.push({kind:`mapping`,node:o,key:null});break}case Ve.ALIAS:Si(n,{kind:`alias`,anchor:n.source.slice(t.anchorStart,t.anchorEnd)});break;case Ve.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.key)throw Error(`incomplete mapping pair in event stream`);e.kind===`document`?n.documents.push(e.doc):Si(n,e.node);break}}}return n.documents}var wi=Ve.DOCUMENT,Ti=Ve.SEQUENCE,Ei=Ve.MAPPING,Di=Ve.SCALAR,Oi=Ve.ALIAS,ki=Ve.POP,Ai=Y.PLAIN,ji=Y.SINGLE_QUOTED,Mi=Y.DOUBLE_QUOTED,Ni=Y.LITERAL_BLOCK,Pi=Y.FOLDED_BLOCK,Fi=X.BLOCK,Ii=X.FLOW,Li=He.CLIP,Ri=He.STRIP,zi=He.KEEP;e.CHOMPING_CLIP=Li,e.CHOMPING_KEEP=zi,e.CHOMPING_MODE=He,e.CHOMPING_STRIP=Ri,e.COLLECTION_STYLE=X,e.COLLECTION_STYLE_BLOCK=Fi,e.COLLECTION_STYLE_FLOW=Ii,e.CORE_SCHEMA=ke,e.DEFAULT_SCALAR_STYLE_RULES=Hn,e.DUMP_SCHEMA=je,e.EVENT_ALIAS=Oi,e.EVENT_DOCUMENT=wi,e.EVENT_ID=Ve,e.EVENT_MAPPING=Ei,e.EVENT_POP=ki,e.EVENT_SCALAR=Di,e.EVENT_SEQUENCE=Ti,e.FAILSAFE_SCHEMA=De,e.JSON_SCHEMA=Oe,e.NOT_RESOLVED=t,e.SCALAR_STYLE=Y,e.SCALAR_STYLE_DOUBLE_QUOTED=Mi,e.SCALAR_STYLE_FOLDED_BLOCK=Pi,e.SCALAR_STYLE_LITERAL_BLOCK=Ni,e.SCALAR_STYLE_PLAIN=Ai,e.SCALAR_STYLE_SINGLE_QUOTED=ji,e.Schema=Ee,e.VISIT_BREAK=Ln,e.VISIT_SKIP=Rn,e.YAML11_SCHEMA=Ae,e.YAMLException=Be,e.binaryTag=W,e.boolCoreTag=p,e.boolJsonTag=g,e.boolYaml11Tag=y,e.constructFromEvents=St,e.defineMappingTag=i,e.defineScalarTag=n,e.defineSequenceTag=r,e.dump=hi,e.eventsToAst=Ci,e.floatCoreTag=P,e.floatJsonTag=z,e.floatYaml11Tag=U,e.getScalarValue=nt,e.intCoreTag=w,e.intJsonTag=k,e.intYaml11Tag=ee,e.jsToAst=In,e.legacyMapTag=Pe,e.load=jn,e.loadAll=An,e.mapTag=G,e.mergeTag=ae,e.nullCoreTag=s,e.nullJsonTag=c,e.nullYaml11Tag=u,e.omapTag=_e,e.pairsTag=ve,e.parseEvents=Dn,e.present=fi,e.realMapTag=Me,e.seqTag=me,e.setTag=ye,e.strTag=a,e.timestampTag=pe,e.visit=Bn})),J=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JsonApi=e.ProblemJson=e.ErrorFormats=e.Classification=void 0;var t;(function(e){e.UNEXPECTED=`UNEXPECTED`,e.ACTIONABLE=`ACTIONABLE`,e.UNSUPPORTED=`UNSUPPORTED`})(t||(e.Classification=t={}));var n;(function(e){e[e.JsonApi=0]=`JsonApi`,e[e.ProblemJson=1]=`ProblemJson`})(n||(e.ErrorFormats=n={})),e.ProblemJson=class{constructor(e){this.payload=e}headers(){return{"Content-Type":`application/problem+json;`}}body(){return this.payload}},e.JsonApi=class{constructor(e){this.payload=e}headers(){return{}}body(){return this.payload}}})),Ee=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`ffffffff-ffff-ffff-ffff-ffffffffffff`})),De=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`00000000-0000-0000-0000-000000000000`})),Oe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i})),ke=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Oe();function n(e){return typeof e==`string`&&t.default.test(e)}e.default=n})),Ae=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);let n;return Uint8Array.of((n=parseInt(e.slice(0,8),16))>>>24,n>>>16&255,n>>>8&255,n&255,(n=parseInt(e.slice(9,13),16))>>>8,n&255,(n=parseInt(e.slice(14,18),16))>>>8,n&255,(n=parseInt(e.slice(19,23),16))>>>8,n&255,(n=parseInt(e.slice(24,36),16))/1099511627776&255,n/4294967296&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255)}e.default=n})),je=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unsafeStringify=void 0;let t=ke(),n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function r(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+`-`+n[e[t+4]]+n[e[t+5]]+`-`+n[e[t+6]]+n[e[t+7]]+`-`+n[e[t+8]]+n[e[t+9]]+`-`+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}e.unsafeStringify=r;function i(e,n=0){let i=r(e,n);if(!(0,t.default)(i))throw TypeError(`Stringified UUID is invalid`);return i}e.default=i})),Me=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto"),n=/* @__PURE__ */ new Uint8Array(256),r=n.length;function i(){return r>n.length-16&&((0,t.randomFillSync)(n),r=0),n.slice(r,r+=16)}e.default=i})),Ne=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV1State=void 0;let t=Me(),n=je(),r={};function i(e,i,s){let c,l=e?._v6??!1;if(e){let t=Object.keys(e);t.length===1&&t[0]===`_v6`&&(e=void 0)}if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.nsecs,e.clockseq,e.node,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.nsecs,l?void 0:r.clockseq,l?void 0:r.node,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}e.updateV1State=a;function o(e,t,n,r,i,a,o=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!a)a=/* @__PURE__ */ new Uint8Array(16),o=0;else if(o<0||o+16>a.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=0xb1d069b5400;let s=((t&268435455)*1e4+n)%4294967296;a[o++]=s>>>24&255,a[o++]=s>>>16&255,a[o++]=s>>>8&255,a[o++]=s&255;let c=t/4294967296*1e4&268435455;a[o++]=c>>>8&255,a[o++]=c&255,a[o++]=c>>>24&15|16,a[o++]=c>>>16&255,a[o++]=r>>>8|128,a[o++]=r&255;for(let e=0;e<6;++e)a[o++]=i[e];return a}e.default=i})),Pe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ae(),n=je();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),Fe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto");function n(e){return Array.isArray(e)?e=Buffer.from(e):typeof e==`string`&&(e=Buffer.from(e,`utf8`)),(0,t.createHash)(`md5`).update(e).digest()}e.default=n})),Ie=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=e.stringToBytes=void 0;let t=Ae(),n=je();function r(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}e.stringToBytes=r,e.DNS=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,e.URL=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function i(e,i,a,o,s,c){let l=typeof a==`string`?r(a):a,u=typeof o==`string`?(0,t.default)(o):o;if(typeof o==`string`&&(o=(0,t.default)(o)),o?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=i(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){c||=0;for(let e=0;e<16;++e)s[c+e]=d[e];return s}return(0,n.unsafeStringify)(d)}e.default=i})),Le=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=Fe(),n=Ie();var r=Ie();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(48,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),Re=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={randomUUID:require("crypto").randomUUID}})),ze=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Re(),n=Me(),r=je();function i(e,i,a){if(t.default.randomUUID&&!i&&!e)return t.default.randomUUID();e||={};let o=e.random??e.rng?.()??(0,n.default)();if(o.length<16)throw Error(`Random bytes length must be >= 16`);if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(a||=0,a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[a+e]=o[e];return i}return(0,r.unsafeStringify)(o)}e.default=i})),Be=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto");function n(e){return Array.isArray(e)?e=Buffer.from(e):typeof e==`string`&&(e=Buffer.from(e,`utf8`)),(0,t.createHash)(`sha1`).update(e).digest()}e.default=n})),Ve=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=Be(),n=Ie();var r=Ie();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(80,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),Y=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=je(),n=Ne(),r=Pe();function i(e,i,a){e??={},a??=0;let o=(0,n.default)({...e,_v6:!0},/* @__PURE__ */ new Uint8Array(16));if(o=(0,r.default)(o),i){for(let e=0;e<16;e++)i[a+e]=o[e];return i}return(0,t.unsafeStringify)(o)}e.default=i})),X=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ae(),n=je();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),He=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV7State=void 0;let t=Me(),n=je(),r={};function i(e,i,s){let c;if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.seq,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.seq,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}e.updateV7State=a;function o(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=/* @__PURE__ */ new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}e.default=i})),Ue=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ke();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}e.default=n})),We=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var t=Ee();Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return t.default}});var n=De();Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return n.default}});var r=Ae();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r.default}});var i=je();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.default}});var a=Ne();Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return a.default}});var o=Pe();Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return o.default}});var s=Le();Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return s.default}});var c=ze();Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return c.default}});var l=Ve();Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}});var u=Y();Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return u.default}});var d=X();Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var f=He();Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return f.default}});var p=ke();Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return p.default}});var m=Ue();Object.defineProperty(e,"version",{enumerable:!0,get:function(){return m.default}})})),Ge=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.instanceToJsonApiSource=void 0;let t=/^\/(query|params|body|headers)\/.*/;e.instanceToJsonApiSource=e=>{let n,i=e.match(t);if(i!==null&&i.length>0)switch(i[1]){case`query`:case`params`:n=r(e);break;case`body`:n=a(e);break;case`headers`:n=s(e)}return n};let n=/^\/(?:params|query)\/(.*)/,r=e=>{let t=``,r=e.match(n);return r!==null&&r.length>0&&(t=r[1]),{parameter:t}},i=/^\/body(\/.*)/,a=e=>{let t=``,n=e.match(i);return n!==null&&n.length>0&&(t=n[1]),{pointer:t}},o=/^\/headers\/(.*)/,s=e=>{let t=``,n=e.match(o);return n!==null&&n.length>0&&(t=n[1]),{header:t}}})),Ke=/* @__PURE__ */ e.t((n=>{Object.defineProperty(n,"__esModule",{value:!0}),(t.D(),e.i(t.O)).__exportStar(Ge(),n)})),qe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ProblemError=void 0;let t=J(),n=We(),r=Ke();e.ProblemError=class e extends Error{constructor(e,t,r,i,a){super(e.title),this.metadata=e,this.detail=t,this.additionalData=r,this.cause=i,this.logs=a,this.isErrorCatalogError=!0,this.id=r&&r.overrideErrorId?r.overrideErrorId:(0,n.v4)()}format(e,n){switch(n){case t.ErrorFormats.JsonApi:return this.toJsonApi(e);case t.ErrorFormats.ProblemJson:return this.toProblemJson(e);default:throw Error(`invalid format type`)}}toProblemJson(e){let n=Object.assign({type:this.metadata.type,title:this.metadata.title,description:this.metadata.description,status:this.metadata.status,errorCode:this.metadata.errorCode,level:this.metadata.level,detail:this.detail,classification:this.metadata.classification,instance:e,logs:this.logs},this.additionalData);return new t.ProblemJson(n)}toJsonApiErrorObject(e){let t,n=e||this.metadata.instance;typeof n==`string`&&(t=(0,r.instanceToJsonApiSource)(n));let i={id:this.id,links:{about:this.metadata.type},status:String(this.metadata.status),code:this.metadata.errorCode,title:this.metadata.title,detail:this.detail,meta:Object.assign(Object.assign({},this.additionalData),{isErrorCatalogError:!0,classification:this.metadata.classification,level:this.metadata.level})};return t&&(i.source=t),this.logs&&(i.meta.logs=this.logs),i}toLegacyError(){let e=`Title: ${this.metadata.title}
Detail: ${this.detail}
Code: ${this.metadata.errorCode}
Status: ${this.metadata.status}
Error docs: ${this.metadata.type}`;return this.additionalData?.links&&(e=e.concat(`\nUseful Links: ${this.additionalData.links.join(` `)}`)),{message:e,userMessage:e}}toJsonApi(e){let n={jsonapi:{version:`1.0`},errors:[this.toJsonApiErrorObject(e)]};return new t.JsonApi(n)}static fromJsonApiErrorObject(t){let n={title:t.title,errorCode:t.code,type:t.links?.about,level:t.meta.level,status:Number(t.status),classification:t.meta.classification},r=Object.assign(Object.assign({},t.meta),{overrideErrorId:t.id}),i=new e(n,t.detail,r,void 0,t.meta.logs);return i.additionalData&&i.additionalData.overrideErrorId&&delete i.additionalData.overrideErrorId,i}static fromJsonApi(e){let t=[];return e.errors.forEach(e=>{t.push(this.fromJsonApiErrorObject(e))}),t}}})),Je=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServerError=e.MaintenanceWindowError=e.RequirementsNotMetError=e.ServiceUnavailableError=e.BadGatewayError=e.TagsForOrganizationWithoutGroupError=e.TestLimitReachedError=e.UnauthorisedError=e.TimeoutError=e.BadRequestError=e.NotImplementedError=e.TooManyRequestsError=void 0;let t=J(),n=qe();e.TooManyRequestsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Service temporarily throttled`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0001`,status:429,description:`The request rate limit has been exceeded. Wait a few minutes, then try again.`,errorCode:`SNYK-0001`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NotImplementedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Server error response`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0002`,status:501,description:`The server doesn't recognize the request method, or it cannot fulfill it. Review the request and try again.`,errorCode:`SNYK-0002`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-api-info`]},n),r,a),this.name=this.constructor.name}},e.BadRequestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Client request cannot be processed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0003`,status:400,description:`The server cannot process the request due to a client error, such as malformed request syntax, size too large, invalid request message framing, or deceptive request routing. Review the request and try again.`,errorCode:`SNYK-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TimeoutError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Server communication error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0004`,status:504,description:`The server timed out during the request. Check Snyk status, then try again.`,errorCode:`SNYK-0004`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.UnauthorisedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Authentication error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0005`,status:401,description:`Authentication credentials not recognized, or user access is not provisioned. Revise credentials and try again, or request access from your Snyk administrator.`,errorCode:`SNYK-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TestLimitReachedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Test limit reached`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0006`,status:429,description:`You have reached the maximum number of tests in your Snyk plan. This causes Snyk tests on PRs and CLI to fail. Deactivate Snyk Test on your Project or upgrade your Snyk plan.`,errorCode:`SNYK-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Rate-limit-hit-while-testing-the-project`,`https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test`,`https://support.snyk.io/s/article/Snyk-Test-of-PR-failing-due-to-test-limit`]},n),r,a),this.name=this.constructor.name}},e.TagsForOrganizationWithoutGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Organization is not part of a group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0007`,status:422,description:`This error occures when trying to add tags to Organizations that that are part of a Group.

Verify with your Group Admin if the Organization should be in a Group.

If you have more than one Organization, you can set the Organization with which new Projects should be associated by running \`snyk config set org=ORG_ID\`.

If you want to override this global configuration for individual runs of snyk monitor, \`run snyk test --org=ORG_ID\` or \`snyk monitor --org=ORG_ID\`.`,errorCode:`SNYK-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-admin/snyk-projects/project-tags`]},n),r,a),this.name=this.constructor.name}},e.BadGatewayError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to fulfill the request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0008`,status:502,description:`Due to a server gateway error, the server cannot process the request. Check Snyk status and try again.`,errorCode:`SNYK-0008`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.ServiceUnavailableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to fulfill the request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0009`,status:503,description:`Due to service availability issues, Snyk cannot process the request. This issue is unexpected, and the service will recover shortly. If the error still occurs, contact Snyk Support.`,errorCode:`SNYK-0009`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.RequirementsNotMetError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing runtime requirements`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0010`,status:0,description:`The environment is missing requirements to execute the application successfully.`,errorCode:`SNYK-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MaintenanceWindowError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unavailable due to maintenance`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0099`,status:503,description:`We are currently unavailable due to a maintenance window. For additional information please visit our status pages. Thank you for your patience.`,errorCode:`SNYK-0099`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.ServerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to process request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-9999`,status:500,description:`The server cannot process the request due to an unexpected error. Check Snyk status, then try again.`,errorCode:`SNYK-9999`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}}})),Ye=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnableToResolveVersionForPropertyError=e.UnableToResolveValueForPropertyError=e.MissingRequirementFromPomError=e.GolangModuleVersionConstraintNotMetError=e.GolangMissingModuleDeclarationError=e.GolangHostKeyVerificationFailedError=e.GolangDialTcpTimeoutError=e.GolangInvalidGoVersionError=e.GolangVersionMismatchError=e.GolangInvalidZipFileError=e.GolangConnectionResetByPeerError=e.GolangNoSecureProtocolFoundError=e.GolangSpaceLimitExceededError=e.ToolchainNotAvailableError=e.UnableToUseCredentialsError=e.UnableToAccessPrivateDepsError=e.UnsupportedExternalFileGenerationSCMError=e.InconsistentVendoringError=e.IncompleteProjectError=e.SsoReAuthRequiredError=e.GoModFileMissingError=e.PrivateModuleError=e.IncompatibleTargetFrameworkError=e.CpmDisabledOrMissingVersionError=e.CpmMissingPackageVersionError=e.CpmVersionOverrideError=e.RestoreFailedError=e.NugetDependenciesSpaceLimitExceededError=e.ProjectSkippedAndNotFoundError=e.OutdatedSDKVersionRequestedError=e.NoTargetFrameworksFoundError=e.MissingMSBuildConditionError=e.FailedToAccessPrivatePackageSourceError=e.PublishFailedError=e.MissingStaticMainFunctionError=e.UnsupportedTargetFrameworkError=e.UnsupportedManifestFileError=e.SnykAppRequiredForBrokeredConnectionError=e.EmptyManifestError=e.UnsupportedPlatformError=e.GitCloneFailedError=e.BrokeredConnectionNotSupportedError=e.MissingEnvironmentVariableError=e.CannotGetFileFromSourceError=e.UnprocessableFileError=e.MissingPayloadError=e.MissingHeaderError=e.UnknownDependencyVersionError=e.UnparseableLockFileError=e.UnparseableManifestError=void 0,e.PythonFailedToWriteTempFilesError=e.PythonRequiredPackagesMissingError=e.PythonDependenciesSpaceLimitExceededError=e.PipenvNoMatchingPythonDistributionError=e.PipenvUnsupportedPythonVersionError=e.InstallationFailureError=e.PipNoMatchingPythonDistributionError=e.PythonVersionConfictError=e.PipUnsupportedPythonVersionError=e.SyntaxIssuesError=e.PythonPackageNotFoundError=e.FailedToApplyDependencyUpdatesError=e.TooManyManifestFilesError=e.UnsupportedRequirementsFileError=e.PermissionDeniedError=e.OutdatedYarnLockFileError=e.UnableToReachRegistryError=e.YarnPackageNotFoundError=e.PnpmUnsupportedLockfileVersionError=e.PnpmOutOfSyncError=e.InvalidConfigurationError=e.MissingSupportedFileError=e.Base64DecodeError=e.Base64EncodeError=e.CouldNotParseJSONFileError=e.NoDependencyUpdatesError=e.NoValidPackageUpgradesError=e.ChildProcessExecutionError=e.NoResultsFromForkerProcessesError=e.UnknownBlobEncodingOnGithubError=e.BadNPMVersionError=e.UnableToReplaceBrokerURLError=e.CouldNotFindBrokerURLError=e.CouldNotParseNPMRegistryURLError=e.NoRepoFoundForTheNPMPackageError=e.FailedToBuildMavenProjectError=e.CannotReachConfiguredRepositoryError=e.TimeoutWhenProcessingTheDepTreeError=e.SourceNotSupportedError=e.NoReleasedVersionForVersionsRangeError=e.CannotCreateGitHostError=e.CannotGetBuildFileFromRepoError=e.CannotResolveTargetPomFromRepoError=e.CannotResolveTargetPomFromXmlError=e.MissingProjectFromPomError=e.PomFileNotFoundError=e.SkippedGroupError=e.InvalidCoordinatesError=e.UnableToParseXMLError=e.CyclicPropertyDetectedInPomFileError=void 0,e.UvNoProjectRootError=e.ReachabilitySettingDisabledError=e.GemVersionConflictError=e.GemNotFoundError=e.CyclicDependencyDetectedError=void 0;let t=J(),n=qe();e.UnparseableManifestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to parse manifest file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0001`,status:400,description:`The provided manifest file could not be parsed as it has invalid syntax or does not match the expected schema. Review the manifest file, then try again.`,errorCode:`SNYK-OS-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnparseableLockFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to parse lock file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0002`,status:400,description:`The provided lock file could not be parsed as it has invalid syntax or does not match the expected schema. Review the lock file, then try again.`,errorCode:`SNYK-OS-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnknownDependencyVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unknown dependency version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0003`,status:404,description:`Dependency version could not be resolved.`,errorCode:`SNYK-OS-0003`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Could-not-determine-version-for-dependencies`]},n),r,a),this.name=this.constructor.name}},e.MissingHeaderError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing required request header`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0004`,status:422,description:`The server encountered a request that is missing a mandatory request header.`,errorCode:`SNYK-OS-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingPayloadError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Payload missing required elements`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0005`,status:422,description:`The server could not process the request.`,errorCode:`SNYK-OS-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnprocessableFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Files cannot be processed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0006`,status:422,description:`The dependency service could not process the files.`,errorCode:`SNYK-OS-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotGetFileFromSourceError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot get file from source`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0007`,status:500,description:`Could not get the file from the source URL.`,errorCode:`SNYK-OS-0007`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingEnvironmentVariableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing environment variable`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0008`,status:500,description:`The server encountered a critical operation that requires a specific environment variable, but the variable is not set or is not accessible within the current environment.`,errorCode:`SNYK-OS-0008`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.BrokeredConnectionNotSupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Brokered connections not currently supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0009`,status:500,description:`The service encountered a permissions or credentials error most likely related to an import through a brokered connection for a scanner that does not yet support that.`,errorCode:`SNYK-OS-0009`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GitCloneFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Snyk failed to clone your repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0010`,status:422,description:`We encountered a fatal error from Git while trying to clone your code using your provided credentials. Please verify that:

* Your provided credentials are correct or not scoped too narrowly.
* The branch you've asked us to clone exists.
* The repository you've provided is accessible from the internet and you are not connected through a broker.

And try the operation again.`,errorCode:`SNYK-OS-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedPlatformError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported platform`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0011`,status:422,description:`The specified platform is not supported.`,errorCode:`SNYK-OS-0011`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.EmptyManifestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Empty manifest file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0012`,status:422,description:`Could not find any packages to analyze in the provided manifest file.
Ensure the manifest file exists and includes valid dependency definitions.`,errorCode:`SNYK-OS-0012`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SnykAppRequiredForBrokeredConnectionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Universal Broker for Snyk Open Source not enabled`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-0013`,status:400,description:`To process brokered repositories and package registries, the brokered SCA Snyk app must be installed.
To do this, navigate to your Group Settings and enable "Universal Broker for Snyk Open Source".`,errorCode:`SNYK-OS-0013`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/platform-administration/snyk-broker/universal-broker/basic-steps-to-install-and-configure-universal-broker#integrate-your-connection-with-an-organization-that-uses-universal-broker`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedManifestFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported manifest file type for remediation`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0001`,status:400,description:`The provided manifest file is not supported by Snyk for .NET.`,errorCode:`SNYK-OS-DOTNET-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedTargetFrameworkError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Target framework not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0002`,status:422,description:"The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.",errorCode:`SNYK-OS-DOTNET-0002`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingStaticMainFunctionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Your C# code is missing a static Main function`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0003`,status:422,description:`This error occurs when no static Main method with a correct signature is found in the code that produces an executable file. 
It also occurs if the entry point function, \`Main\`, is defined with the wrong case, such as lower-case main.

In order to fix this issue, ensure that your program has a .cs file that contains a main function, such as
\`\`\`c#
namespace Example
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hello world");
        }
    }
}
\`\`\``,errorCode:`SNYK-OS-DOTNET-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001`]},n),r,a),this.name=this.constructor.name}},e.PublishFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The dotnet CLI is unable to generate a self-contained binary`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0004`,status:422,description:`This error occurs when running \`dotnet publish --sc --framework <your-target-framework>\` fails to generate a 
self-contained binary. Snyk needs to run this command in order to adequately determine the dependency tree for your project. If this command fails, Snyk cannot continue.

Steps to determine why this happened:

* Checkout a clean version of your project in a temporary folder
* Run \`dotnet publish --sc --framework <your-target-framework> \` on your project, and confirm this step fails.

If this step is successful locally, it is possible that Snyk is running another version of the .NET SDK. To tell Snyk which version of the .NET SDK to use, consider using the [global.json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) solution provided by Microsoft.`,errorCode:`SNYK-OS-DOTNET-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/`,`https://learn.microsoft.com/en-us/dotnet/core/tools/global-json`,`https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L67`]},n),r,a),this.name=this.constructor.name}},e.FailedToAccessPrivatePackageSourceError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The dotnet CLI was unable to restore from private package sources`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0005`,status:401,description:`This error occurs when running \`dotnet restore\` fails to access dependencies stored in a private package source that Snyk does not have access to. 

This means that your \`.csproj\` file or files refer to a dependency hosted on a private package store or Nuget Artifact Registry defined in your \`NuGet.config\` file, such as:

\`\`\`xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="AzureFeed" value="https://pkgs.dev.azure.com/your-org/_packaging/your-repo/nuget/v3/index.json" />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>
\`\`\`

In order to allow Snyk to access your private dependency package source, you must supply Snyk with a valid JSON object as a private registry token in the .NET language settings.

You can set up a connection to your private Nuget repository in your Snyk integration settings.`,errorCode:`SNYK-OS-DOTNET-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://github.com/microsoft/artifacts-credprovider#environment-variables`]},n),r,a),this.name=this.constructor.name}},e.MissingMSBuildConditionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing MSBuild Condition Construct in project file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0006`,status:422,description:`The \`dotnet\` tool was unable to locate the \`.targets\`, \`.csproj\` or \`.props\` file responsible for one or more MSBuild conditions in your project file.

The tool encountered an error like 
\`\`\`
/path/to/file/project.csproj(33,13): error MSB4100: Expected "$(SomeCondition)" to evaluate to a boolean instead of "", in condition "!$(SomeCondition)".
\`\`\`

This means the condition definition is missing in the project file that is currently being restored and in any project linked to it from there.      

Snyk can scan only the project files accessible in the current repository or the private dependencies available to Snyk.

For example, if your code has the following structure:

\`\`\`title=project.targets
<Project>
  <PropertyGroup>
    <SomeCondition Condition="'$(SomeCondition)' == ''">false</SomeCondition>
  </PropertyGroup>
</Project>
\`\`\`

And

\`\`\`title=project.csproj
<Project Sdk='Microsoft.NET.Sdk'>
  <Import Project='..\\external-libraries\\some-library\\project.targets' />
  <PropertyGroup>
    <TargetFrameworks>net8.0</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup Condition='!$(SomeCondition)'>
    <PackageReference Include='Newtonsoft.Json' Version='13.0.3' />
  </ItemGroup>
</Project>
\`\`\`

And \`external-libraries\` is not a part of your repository currently being scanned, Snyk is not able to find it.

This error occurs when your code depends on external libraries that are added to or generated from your source code using external tools unknown to Snyk or as part of a build step in your build or a deployment pipeline.`,errorCode:`SNYK-OS-DOTNET-0006`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-conditional-constructs`]},n),r,a),this.name=this.constructor.name}},e.NoTargetFrameworksFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No target frameworks found in manifest files`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0007`,status:422,description:"Snyk was unable to detect any `<TargetFramework>`s in the supplied manifest files. \n\nIf you are using `Directory.Build.props` files to determine the target framework, ensure that it is named as such. Due to performance considerations on the customer's SCM network, Snyk does not perform case-insensitive searches for `.props` files.",errorCode:`SNYK-OS-DOTNET-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022#directorybuildprops-and-directorybuildtargets`]},n),r,a),this.name=this.constructor.name}},e.OutdatedSDKVersionRequestedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Your global.json is targeting an outdated SDK version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0008`,status:422,description:`Snyk supports the latest channels of .NET which is currently [supported by Microsoft](https://dotnet.microsoft.com/en-us/download/dotnet), but does **not** guarantee to support all SDK versions within each currently supported channel.

Within the supported channels, Snyk aims to support most, if not all, of the SDK versions currently released under the **newest** of the channels.

If the channels currently supported by Microsoft are \`8.0\`, \`7.0\` and \`6.0\`, Snyk **will** support all of the *latest* SDKs released for these channels.

If the SDK versions released under \`8.0.3\` are: \`8.0.203\`, \`8.0.202\` and \`8.0.103\`, Snyk **cannot** guarantee to support *all* of them, but makes an effort to do so. Snyk **will** support the latest of the SDK versions currently released by Microsoft. 

If channel \`8.0\` is the newest channel currently supported, Snyk **cannot** guarantee that multiple, specific SDK versions for older, still supported channels such as .NET 6. 

### Example support matrix

If:

* .NET channels currently supported by Microsoft are \`.NET 8.0\`,  \`.NET 7.0\` and  \`.NET 6.0\`
* Newest SDK version under \`.NET 8.0\` is \`8.0.203\`

Then:

| Channel |              SDK             | End-of-Life |  Supported  |
|:-------:|:----------------------------:|:-----------:|:-----------:|
|   8.0   | 8.0.203  (latest in channel) |      No     |     Yes     |
|   8.0   |            8.0.202           |      No     |     Yes     |
|   8.0   |            8.0.103           |      No     |     Yes     |
|         |             (...)            |             |             |
|   7.0   | 7.0.407  (latest in channel) |      No     |     Yes     |
|   7.0   |            7.0.314           |      No     |      No     |
|         |             (...)            |             |             |
|   6.0   |            6.0.420           |      No     |     Yes     |
|   6.0   |            6.0.128           |      No     |      No     |
|         |             (..)             |             |             |
|   5.0   |  5.0.408 (latest in channel) |     Yes     |      No     |
|   5.0   |            5.0.214           |     Yes     |      No     |
|         |             (..)             |             |             |

### Workarounds

This limitation can lead to scan failures for customers that are pinning SDK versions in their \`global.json\` files without a [rollForward](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json#rollforward) directive, such as:
\`\`\`json
{
  "sdk": {
    "version": "6.0.101"
  }
}
\`\`\`
Since as \`6.0\` is not the newest .NET channel. 

To work around this issue, we recommend that customers employ some flexibility in their \`global.json\` file by employing the \`rollFoward\` directive to be \`latestMajor\`, as such:
\`\`\`json
{
  "sdk": {
    "version": "6.0.101",
    "rollForward": "latestMajor"
  }
}
\`\`\`

Which will allow Snyk to scan your code using a newer version of the SDK, despite your version pinning.`,errorCode:`SNYK-OS-DOTNET-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://versionsof.net/core/`,`https://dotnet.microsoft.com/en-us/download/dotnet`,`https://learn.microsoft.com/en-us/dotnet/core/tools/global-json#rollforward`]},n),r,a),this.name=this.constructor.name}},e.ProjectSkippedAndNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project failed to build due to missing type or namespace references`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0009`,status:422,description:"While attempting to build your solution for scanning, the `dotnet` SDK was unable to restore one or more projects referenced in your manifest files.\n\nPlease note that Snyk runs these builds on a **case-sensitive** filesystem, meaning that `<ProjectReference>../src/NS.Project.csproj</ProjectReference>` and `<ProjectReference>../src/ns.project.csproj</ProjectReference>` are not referring to the same thing.\n\nThis can present itself as a problem for customers that are using Mac or Windows build pipeline where file systems are not case-sensitive. In this case, verify you're referring to the right manifest files and check the Snyk import logs for more details.",errorCode:`SNYK-OS-DOTNET-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/assembly-references#missing-references`]},n),r,a),this.name=this.constructor.name}},e.NugetDependenciesSpaceLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The 10 GB space limit for downloaded Nuget dependencies has been exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0010`,status:422,description:`The total size of the downloaded Nuget dependencies in the manifest files exceeds the 10GB limit.
This often happens due to the large number or the large size of Nuget dependencies. `,errorCode:`SNYK-OS-DOTNET-0010`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages-package-managers-and-frameworks/.net/improved-.net-scanning#limitations-on-improved-.net-scanning-for-scm-integrations`]},n),r,a),this.name=this.constructor.name}},e.RestoreFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The dotnet CLI is unable to download and install all the required dependencies`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0011`,status:422,description:`This error occurs when running \`dotnet restore <path-to-csproj>\` fails to generate a 
manifest of the resolved dependencies. Snyk needs to run this command in order to adequately determine the dependency tree for your project. 
If this command fails, Snyk cannot continue.

Steps to determine why this happened:

* Checkout a clean version of your project in a temporary folder
* Run \`dotnet restore <path-to-csproj> \` on your project, and confirm this step fails.

If this step is successful locally, it is possible that Snyk is running another version of the .NET SDK. To tell Snyk which version of the .NET SDK to use, consider using the [global.json](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) solution provided by Microsoft.`,errorCode:`SNYK-OS-DOTNET-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/`,`https://learn.microsoft.com/en-us/dotnet/core/tools/global-json`,`https://github.com/snyk/snyk-nuget-plugin/blob/885486aa656c28d3db465c8d22710770d5cc6773/lib/nuget-parser/cli/dotnet.ts#L50`]},n),r,a),this.name=this.constructor.name}},e.CpmVersionOverrideError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Package version defined incorrectly`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0012`,status:422,description:"Your `dotnet restore` command failed with NuGet error **NU1008**.\n\nThis occurs because a `PackageReference` in your project file directly defines a package version when Central Package Management (CPM) is enabled. To resolve this, remove the `Version` attribute from the `PackageReference`. Define the package version instead as a `PackageVersion` entry in your `Directory.Packages.props` file. For project-specific exceptions, use `VersionOverride`.",errorCode:`SNYK-OS-DOTNET-0012`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1008`,`https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management`]},n),r,a),this.name=this.constructor.name}},e.CpmMissingPackageVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing package version in CPM`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0013`,status:422,description:'The `dotnet restore` command failed with NuGet error NU1010.\n\nCentral Package Management (CPM) cannot find a matching `PackageVersion` for a `PackageReference` in your `Directory.Packages.props` file. To resolve this, add the necessary `PackageVersion` entry for the package to `Directory.Packages.props`. For example:\n\n```xml\n<PackageVersion Include="Example.Package" Version="1.0.0" />\n```',errorCode:`SNYK-OS-DOTNET-0013`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1010`,`https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management`]},n),r,a),this.name=this.constructor.name}},e.CpmDisabledOrMissingVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing package version in CPM and CPM not active`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0014`,status:422,description:"The `dotnet restore` command failed with NuGet error NU1015.\n\nThis occurs because a `PackageReference` lacks a version and Central Package Management (CPM) is not active.\n\nTo resolve this, perform one of the following actions:\n\n1. Enable Central Package Management: In `Directory.Packages.props`, set `ManagePackageVersionsCentrally` to `true`. Ensure your project can access the file.\n2. Add an explicit `Version` attribute to the `PackageReference` in your project file.",errorCode:`SNYK-OS-DOTNET-0014`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1015`,`https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management`]},n),r,a),this.name=this.constructor.name}},e.IncompatibleTargetFrameworkError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Dependency target framework not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-dotnet-0015`,status:422,description:"Your project failed to restore dependencies with NuGet error NU1202 because a dependency does not support the current `TargetFramework`. This means the dependency lacks assets for your project's framework.\n\nTo resolve this, perform one of the following actions:\n\n1. Change your project's `TargetFramework` to one the dependency supports.\n2. Update the dependency to a version that supports your current `TargetFramework`.\n3. If the dependency is a project reference, add the required `TargetFramework` to that project.",errorCode:`SNYK-OS-DOTNET-0015`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1202`]},n),r,a),this.name=this.constructor.name}},e.PrivateModuleError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to access private module`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0001`,status:400,description:`Snyk could not access the private modules within your go.mod files.`,errorCode:`SNYK-OS-GO-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go`]},n),r,a),this.name=this.constructor.name}},e.GoModFileMissingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Go mod file not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0002`,status:400,description:`A go.mod file was not found in the current directory or any parent directory.`,errorCode:`SNYK-OS-GO-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go`]},n),r,a),this.name=this.constructor.name}},e.SsoReAuthRequiredError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`OAuth re-authorization required`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0003`,status:422,description:`Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.

Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.

The error you're seeing is usually reproducible by attempting to do a \`git clone\` of your repository with incorrectly configured credentials.
Verify your authentication configuration with your Git cloud provider and try again.`,errorCode:`SNYK-OS-GO-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso`]},n),r,a),this.name=this.constructor.name}},e.IncompleteProjectError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Your project repository is missing required files`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0004`,status:422,description:"Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.  \n\nThis error means that you need some cleanup, (such as `go mod tidy`) or your project deployment process contains a code generation step such as `protobuf` or similar that is not currently supported by Snyk. \n\nTo verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails. \n\nIf Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.",errorCode:`SNYK-OS-GO-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli`,`https://github.com/snyk/snyk-go-plugin`,`https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go`]},n),r,a),this.name=this.constructor.name}},e.InconsistentVendoringError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Your project repository has inconsistent vendoring information`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0005`,status:422,description:"Generating the dependency graph requires Snyk to run `go list -deps -json` inside the project. If the operation fails, creating a full dependency graph cannot continue.  \n\nThis error means that there is inconsistency between your `vendor/modules.txt` file and your `go.mod` file. To remediate, you need to:\n\n* `go mod vendor`\n* `go mod tidy`\n\nNext, commit those changes to your repo. Snyk does not manipulate with your code on our end by design, which is why this is not done automatically.\n\nTo verify if this is the case, clone your project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails. \nThen try and run the above mentioned commands and see if your SCM system reports changes in files.",errorCode:`SNYK-OS-GO-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://go.dev/ref/mod#go-mod-vendor`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedExternalFileGenerationSCMError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported external file generation`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0006`,status:422,description:`Snyk currently does not support external file generation in your project. This limitation is due to Snyk's lack of visibility into the third-party generator tools you may be using and the specific commands required to generate these files.

Snyk can only work with the files available in your repository and does not have insight into the generation process for external files.`,errorCode:`SNYK-OS-GO-0006`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToAccessPrivateDepsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to access private dependencies`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0007`,status:422,description:`The Go tool encountered a \`DepsError\` while trying to download a private dependency. Private repositories that are not accessible to the public internet and are not available on the official Go proxy mirror are cloned with a version control system and built on demand. 
This requires the VCS to have the correct access rights to that repository.

Snyk supports private repositories that are hosted in the same Organization and on the same Project that is scanned for vulnerabilities. The authentication to the private repository is the same as the authentication used to integrate that repository with Snyk. 

This error appears when the authorization credentials do not allow access to the requested private dependency. `,errorCode:`SNYK-OS-GO-0007`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://go.dev/ref/mod#vcs`]},n),r,a),this.name=this.constructor.name}},e.UnableToUseCredentialsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to fetch private dependencies`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0008`,status:401,description:`The Go tool encountered a permissions error while fetching one of the private dependencies. Ensure that the integration token you used to sign in to Snyk is properly configured so that Snyk can access the private dependencies.

The Snyk Go integration only supports private dependencies that are used inside the same Organization as the Project you are scanning.

This error appears when Snyk is unable to properly access the authorization credentials for the requested private dependency. `,errorCode:`SNYK-OS-GO-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ToolchainNotAvailableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Toolchain not available`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0009`,status:500,description:`Could not download Go toolchain.`,errorCode:`SNYK-OS-GO-0009`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangSpaceLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The 10 GB space limit for downloaded Golang dependencies has been exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0010`,status:422,description:`The total size of the downloaded Golang dependencies in the manifest file exceeds the 10GB limit.
This often happens due to the large size or large number of Golang dependencies.

Currently this is a product limitation for SCM. As a workaround, use the 'snyk monitor' command via Snyk CLI.`,errorCode:`SNYK-OS-GO-0010`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/monitor`]},n),r,a),this.name=this.constructor.name}},e.GolangNoSecureProtocolFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No secure protocol found for repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0011`,status:422,description:`The Go toolchain could not find a secure protocol (HTTPS) to access the repository.

This error typically occurs when the repository URL is not configured to use a secure protocol, or the necessary credentials for accessing the repository securely are not provided.

Ensure that the repository URL uses a secure protocol (https://) and verify that the necessary authentication credentials (such as HTTPS credentials) are correctly configured and accessible by the Go toolchain.
 
Note: SSH is not supported.`,errorCode:`SNYK-OS-GO-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangConnectionResetByPeerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Connection reset by peer`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0012`,status:500,description:`The Go toolchain encountered a connection reset error while trying to access the repository.

This error typically occurs when the connection to the repository is unexpectedly closed by the remote server. This can be due to network issues, server configuration, or other transient problems.

Try to reimport the project, if that does not work, please reach out to Snyk support.`,errorCode:`SNYK-OS-GO-0012`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangInvalidZipFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid zip file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0013`,status:422,description:`The Go toolchain encountered an error while trying to download and extract a Go package version. The downloaded file is not a valid zip file.

This error typically occurs when there is an issue with the downloaded file, such as corruption or an incomplete download.

If the package that fails is a private package that's hosted in a private network, make sure the network is up and running and retry the import. If the issue persists, verify the integrity of the downloaded file and check for any issues with the source of the download.

If the issue persists, please reach out to Snyk support.`,errorCode:`SNYK-OS-GO-0013`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangVersionMismatchError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Go version mismatch`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0014`,status:422,description:`The Go toolchain encountered a version mismatch error while trying to process the module.

This usually happens when the version of Go that was used in the go.mod file is not yet supported by Snyk.

We usually try and add support for new Golang versions shortly after a new one was released.

If the Go version used in the go.mod file is supported based on our Golang documentation, please reach out to Snyk support.`,errorCode:`SNYK-OS-GO-0014`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages-package-managers-and-frameworks/go/go-for-open-source#go-for-snyk-open-source-support`]},n),r,a),this.name=this.constructor.name}},e.GolangInvalidGoVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid Go version in go.mod`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0015`,status:422,description:`The Go toolchain encountered an error while parsing the go.mod file. The specified Go version '__GOLANG_VERSION__' is invalid and must match the format 1.23.4.

This error typically occurs when the Go version in the go.mod file is not correctly formatted.

Ensure that the Go version specified in the go.mod file matches the required format (e.g., 1.23.4). Update the go.mod file with the correct Go version and try again.`,errorCode:`SNYK-OS-GO-0015`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangDialTcpTimeoutError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Dial TCP timeout`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0016`,status:422,description:`The Go toolchain encountered a timeout error while trying to fetch a module/package.

This error typically occurs when the connection to the server hosting the module/package times out. This can be due to network issues, server configuration, or the server being unreachable.

Ensure that the server hosting the module is reachable and that there are no network issues. If the issue persists, check if there are any restrictions or firewalls blocking access to the server.`,errorCode:`SNYK-OS-GO-0016`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangHostKeyVerificationFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Host key verification failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0017`,status:422,description:`The Go toolchain encountered an error while trying to fetch a module/package. The host key verification failed, which means the key used to connect to the remote repository could not be verified.

This error typically occurs when the key is not recognized or is incorrect. It can also happen if the remote repository's host key has changed.

Ensure that the key used to connect to the remote repository is correct and properly configured. You may need to update the known_hosts file to include the correct host key for the remote repository. Verify your repository access configuration and try again. `,errorCode:`SNYK-OS-GO-0017`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.github.com/en/authentication/troubleshooting-ssh/error-host-key-verification-failed`]},n),r,a),this.name=this.constructor.name}},e.GolangMissingModuleDeclarationError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing module declaration in go.mod`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0018`,status:422,description:`The Go toolchain encountered an error while reading the go.mod file. The error indicates that the module declaration is missing.

This error typically occurs when the go.mod file does not specify the module path. To resolve this issue, you need to add a module declaration to the go.mod file.

To specify the module path, run the following command: go mod edit -module=example.com/mod

Update the go.mod file with the correct module path and try again.`,errorCode:`SNYK-OS-GO-0018`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GolangModuleVersionConstraintNotMetError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Go module version constraint not met`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-go-0019`,status:422,description:`The Go toolchain encountered a version constraint violation while resolving dependencies.

This error typically occurs when a module or dependency specifies a version requirement that is not satisfied by the current Go version in use. For example, a module may require "go >= 1.22.0", but your environment is running "go 1.21.0".

To resolve this, ensure your Go toolchain version meets the module's specified constraint. This might involve upgrading or downgrading your Go version from Settings -> Snyk Open Source -> Edit settings for Go, or finding an alternative version of the module that is compatible with your current Go environment.`,errorCode:`SNYK-OS-GO-0019`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingRequirementFromPomError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing property`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0001`,status:422,description:`The required property is missing from the pom object.`,errorCode:`SNYK-OS-MAVEN-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToResolveValueForPropertyError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to resolve value for property`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0002`,status:422,description:`The targeted property could not be resolved with a valid value.`,errorCode:`SNYK-OS-MAVEN-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToResolveVersionForPropertyError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to resolve version for property`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0003`,status:500,description:`The targeted property could not be resolved with a valid version.`,errorCode:`SNYK-OS-MAVEN-0003`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CyclicPropertyDetectedInPomFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cyclic property detected in POM file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0004`,status:422,description:`There is circular dependency among properties in the Maven project's configuration file (POM), preventing proper resolution and causing an error.`,errorCode:`SNYK-OS-MAVEN-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToParseXMLError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Error parsing the XML file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0005`,status:422,description:`There is an error parsing the XML file. This could be referring to either pom.xml or maven-metadata.xml.`,errorCode:`SNYK-OS-MAVEN-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidCoordinatesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid coordinates provided`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0006`,status:422,description:`The coordinates provided for a project were invalid.`,errorCode:`SNYK-OS-MAVEN-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SkippedGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Skipping group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0007`,status:422,description:`Skipping a specific groupId starting due to remapped coordinates.`,errorCode:`SNYK-OS-MAVEN-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PomFileNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Pom file not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0008`,status:422,description:`The pom file was not found in Maven repository.`,errorCode:`SNYK-OS-MAVEN-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingProjectFromPomError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing project from POM`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0009`,status:422,description:`A project element is missing from POM.`,errorCode:`SNYK-OS-MAVEN-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotResolveTargetPomFromXmlError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot resolve the target POM from the input XML`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0010`,status:422,description:`Cannot resolve the targeted POM from the input XML.`,errorCode:`SNYK-OS-MAVEN-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotResolveTargetPomFromRepoError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot resolve the target POM from the repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0011`,status:404,description:`Cannot resolve the targeted POM from the repository.`,errorCode:`SNYK-OS-MAVEN-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotGetBuildFileFromRepoError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot get the build file repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0012`,status:404,description:`Cannot get the build file repository.`,errorCode:`SNYK-OS-MAVEN-0012`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotCreateGitHostError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to create hosted git info`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0013`,status:500,description:`Cannot create source URL.`,errorCode:`SNYK-OS-MAVEN-0013`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoReleasedVersionForVersionsRangeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No released version for versions range`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0014`,status:422,description:`There was no version released for the specified versions range.`,errorCode:`SNYK-OS-MAVEN-0014`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SourceNotSupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Source is not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0015`,status:422,description:`The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.`,errorCode:`SNYK-OS-MAVEN-0015`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TimeoutWhenProcessingTheDepTreeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Timeout when processing the dependency tree`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0016`,status:422,description:`There was an timeout when processing the dependency tree.`,errorCode:`SNYK-OS-MAVEN-0016`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CannotReachConfiguredRepositoryError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot reach one or more Maven repositories configured under your Snyk organisations language settings`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0017`,status:404,description:`One or more of the Maven repositories configured under your organisations language settings cannot be reached.

This error can happen for a variety of reasons:

* If using broker it could be a misconfiguration in your broker client. Double check the username and password. 
* It could be network connectivity between the broker client and Snyk or between the broker client and the configured repository, check your firewall rules.

In order to solve this issue, refer to the specific details of this error message to identify which repository is causing issues. `,errorCode:`SNYK-OS-MAVEN-0017`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/integrate-with-snyk/package-repository-integrations`]},n),r,a),this.name=this.constructor.name}},e.FailedToBuildMavenProjectError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cannot build Maven dependency tree`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-maven-0018`,status:422,description:`Snyk cannot build the Maven dependency tree because Maven failed to process your pom.xml. 
This often happens due to invalid configurations, unresolved dependencies, or build failures.
Examine your Maven output to identify specific errors and verify your pom.xml for correct configurations.
For common troubleshooting steps, visit Troubleshoot Maven issues.`,errorCode:`SNYK-OS-MAVEN-0018`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages/supported-languages-list/java-and-kotlin/git-repositories-with-maven-and-gradle#maven`]},n),r,a),this.name=this.constructor.name}},e.NoRepoFoundForTheNPMPackageError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No repository found for A NPM package`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0001`,status:422,description:`No repository found for the NPM package.`,errorCode:`SNYK-OS-NODEJS-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CouldNotParseNPMRegistryURLError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Could not parse NPM registry URL`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0002`,status:422,description:`Could not parse NPM registry URL.`,errorCode:`SNYK-OS-NODEJS-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CouldNotFindBrokerURLError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Could not find a broker resolved URL`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0003`,status:422,description:`Could not find a broker resolved URL.`,errorCode:`SNYK-OS-NODEJS-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToReplaceBrokerURLError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to replace broker URL`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0004`,status:422,description:`Unable to replace all broker urls in lock file.`,errorCode:`SNYK-OS-NODEJS-0004`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.BadNPMVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Bad NPM version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0005`,status:422,description:`The NPM version is not supported.`,errorCode:`SNYK-OS-NODEJS-0005`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnknownBlobEncodingOnGithubError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unknown blob encoding on Github`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0006`,status:422,description:`Unknown blob encoding on Github.`,errorCode:`SNYK-OS-NODEJS-0006`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoResultsFromForkerProcessesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No result from forked process`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0007`,status:500,description:`No result from forked process.`,errorCode:`SNYK-OS-NODEJS-0007`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ChildProcessExecutionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Child Process Execution Error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0008`,status:500,description:`The child process encountered an error during execution.`,errorCode:`SNYK-OS-NODEJS-0008`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoValidPackageUpgradesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No valid package upgrades`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0009`,status:422,description:`The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.`,errorCode:`SNYK-OS-NODEJS-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoDependencyUpdatesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No dependency updates`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0010`,status:422,description:`There are no available updates for the dependencies.`,errorCode:`SNYK-OS-NODEJS-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CouldNotParseJSONFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Could not parse JSON file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0011`,status:422,description:`An error occurred while attempting to parse a JSON file.`,errorCode:`SNYK-OS-NODEJS-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.Base64EncodeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Could not Base64 encode`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0012`,status:422,description:`An error occurred while attempting to perform Base64 encoding.`,errorCode:`SNYK-OS-NODEJS-0012`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.Base64DecodeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Could not Base64 decode`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0013`,status:422,description:`An error occurred while attempting to perform Base64 decoding.`,errorCode:`SNYK-OS-NODEJS-0013`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingSupportedFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing supported file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0014`,status:400,description:`Could not find supported file.`,errorCode:`SNYK-OS-NODEJS-0014`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidConfigurationError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid configuration`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0015`,status:400,description:`The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.`,errorCode:`SNYK-OS-NODEJS-0015`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PnpmOutOfSyncError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Out of Sync Error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0016`,status:422,description:`Sometimes a project may become out of sync between the lockfile and the manifest file. This might happen if the package.json is modified or updated but the pnpm-lock.yaml is not. 

This can be resolved by ensuring the lockfile and manifest file are correctly synced, by executing pnpm install.

In some cases, it may be necessary to delete the node_modules folder and the pnpm-lock.yaml and run pnpm install again to force a full reinstall. `,errorCode:`SNYK-OS-NODEJS-0016`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Out-of-sync-manifest--lockfile-in-the-project`]},n),r,a),this.name=this.constructor.name}},e.PnpmUnsupportedLockfileVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported pnpm lockfile version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0017`,status:422,description:`The lockfile version is not supported. Supported lockfile versions for pnpm include v5 and v6.`,errorCode:`SNYK-OS-NODEJS-0017`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.YarnPackageNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Yarn package not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0019`,status:404,description:`Snyk could not find the package in the Yarn registry.`,errorCode:`SNYK-OS-NODEJS-0019`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToReachRegistryError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to reach package registry`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0020`,status:503,description:`Snyk could not reach the node package registry.`,errorCode:`SNYK-OS-NODEJS-0020`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.OutdatedYarnLockFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Lock file is outdated`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0021`,status:409,description:`The lock file is outdated. Update the lock file and try again.`,errorCode:`SNYK-OS-NODEJS-0021`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PermissionDeniedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to read from remote repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-nodejs-0022`,status:401,description:`Snyk does not have sufficient permissions to access the repository, or the repository does not exist.`,errorCode:`SNYK-OS-NODEJS-0022`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedRequirementsFileError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported manifest file type for remediation`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0001`,status:422,description:`The provided requirements file is not supported by Snyk for Python.`,errorCode:`SNYK-OS-PYTHON-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python`]},n),r,a),this.name=this.constructor.name}},e.TooManyManifestFilesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Received more manifests than expected`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0002`,status:422,description:`Too many manifest files were provided in the request body.`,errorCode:`SNYK-OS-PYTHON-0002`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FailedToApplyDependencyUpdatesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to apply dependency updates`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0003`,status:422,description:`An error occurred while updating dependencies.`,errorCode:`SNYK-OS-PYTHON-0003`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PythonPackageNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Python package not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0004`,status:422,description:`A package listed in the manifest file cannot be found in the Python Package Index(PyPI).
Make sure all packages included in the manifest file are public existing ones.`,errorCode:`SNYK-OS-PYTHON-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SyntaxIssuesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Syntax errors found in manifest file`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0005`,status:422,description:`The manifest file has syntax issues like incorrect package names or unsupported characters.
Make sure the manifest file follows the syntax stardards and can be installed locally as well.`,errorCode:`SNYK-OS-PYTHON-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PipUnsupportedPythonVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Python version not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0006`,status:422,description:`At least one of the packages requires a Python version that doesn't match the one used in the project scan.
Make sure to select a suitable Python version from the organization Python language settings.
Alternatively, add a \`.snyk\` file for Python version selection override.`,errorCode:`SNYK-OS-PYTHON-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PythonVersionConfictError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Packages versions caused conflicts`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0007`,status:422,description:`Two or more packages have conflicting version requirements that cannot be resolved.
Make sure no two packages and their requirements cause conflicts and that the manifest file can be installed locally.`,errorCode:`SNYK-OS-PYTHON-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PipNoMatchingPythonDistributionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No matching distribution found for one or more of the packages`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0008`,status:422,description:`At least one of the packages requires a Python version that doesn't match the one used in the project scan.
Make sure to select a suitable Python version from the organization Python language settings.
Alternatively, add a \`.snyk\` file for Python version selection override.`,errorCode:`SNYK-OS-PYTHON-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InstallationFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Packages installation failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0009`,status:422,description:`Some packages failed during installation due to missing system dependencies, compilation errors, or other package-specific issues.`,errorCode:`SNYK-OS-PYTHON-0009`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PipenvUnsupportedPythonVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Python version not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0010`,status:422,description:`At least one of the packages requires a Python version that doesn't match the one used in the project scan.
Make sure to use the correct python version in the requires section of the Pipfile.`,errorCode:`SNYK-OS-PYTHON-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PipenvNoMatchingPythonDistributionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No matching distribution found for one or more of the packages`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0011`,status:422,description:`At least one of the packages requires a Python version that doesn't match the one used in the project scan.
Make sure to use the correct python version in the requires section of the Pipfile.`,errorCode:`SNYK-OS-PYTHON-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PythonDependenciesSpaceLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The 10 GB space limit for downloaded Python dependencies has been exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0012`,status:422,description:`The total size of the downloaded Python dependencies in the manifest file exceeds the 10GB limit.
This often happens due to the large size of some of the Python dependencies and is usually the case for Python packages that require NVIDIA drivers like PyTorch. `,errorCode:`SNYK-OS-PYTHON-0012`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages-package-managers-and-frameworks/python/git-repositories-and-python#pip-and-git-repositories`]},n),r,a),this.name=this.constructor.name}},e.PythonRequiredPackagesMissingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing required packages`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0013`,status:422,description:`One or more required Python packages could not be resolved or were missing during dependency analysis.
Verify that all required dependencies are declared in your manifest file and that they can be installed successfully using your package manager.`,errorCode:`SNYK-OS-PYTHON-0013`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PythonFailedToWriteTempFilesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to write temp files`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-python-0014`,status:500,description:`The plugin failed to create or write temporary files required during dependency analysis.
Ensure the process has permission to write to the system temporary directory and that sufficient disk space is available.`,errorCode:`SNYK-OS-PYTHON-0014`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CyclicDependencyDetectedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Cyclic dependency detected in lockfile`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-ruby-0001`,status:422,description:`Cyclic dependency detected in lockfile.`,errorCode:`SNYK-OS-RUBY-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GemNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Gem not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-ruby-0002`,status:404,description:`A gem listed in the Gemfile cannot be found in the RubyGems repository or locally.
Make sure all gems included in the Gemfile are publicly available or properly configured in your gem sources.
Verify that the gem name and version are correct, and check that you have access to any private gem repositories.`,errorCode:`SNYK-OS-RUBY-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GemVersionConflictError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Gem version conflict`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-ruby-0003`,status:409,description:`Bundler was unable to resolve compatible versions for the gems specified in the Gemfile.
This occurs when multiple gems have conflicting version requirements that cannot be satisfied simultaneously.
Review your Gemfile and Gemfile.lock to identify conflicting dependencies, and consider updating gem versions or constraints to resolve the conflict.`,errorCode:`SNYK-OS-RUBY-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ReachabilitySettingDisabledError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Reachability settings not enabled`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-settings-0001`,status:403,description:`The reachability settings are not enabled for your Organization. You can enable them from the Setttings page or you can switch to an Organization where the reachability settings are already enabled.`,errorCode:`SNYK-OS-SETTINGS-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/manage-risk/prioritize-issues-for-fixing/reachability-analysis`]},n),r,a),this.name=this.constructor.name}},e.UvNoProjectRootError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No root project found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-uv-0001`,status:422,description:`The project being scanned has no root package. To scan workspace members, use the --all-projects flag.`,errorCode:`SNYK-OS-UV-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),Xe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InternalServerError=e.StorageFailureError=e.DataTransformationError=e.InvalidResponseError=e.InvalidRequestError=void 0;let t=J(),n=qe();e.InvalidRequestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospss-1001`,status:400,description:`Check the body of your request and try again.`,errorCode:`SNYK-OSSI-OSPSS-1001`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidResponseError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to return valid API response`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospss-1002`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPSS-1002`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DataTransformationError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to process data`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospss-2001`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPSS-2001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.StorageFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to store snapshot data`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospss-3001`,status:500,description:`Check inputs and then try again. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPSS-3001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InternalServerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Internal server error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospss-4001`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPSS-4001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),Ze=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InternalServerError=e.StorageFailureError=e.DataTransformationError=e.InvalidResponseError=e.InvalidRequestError=void 0;let t=J(),n=qe();e.InvalidRequestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospi-1001`,status:400,description:`Check the body of your request and try again.`,errorCode:`SNYK-OSSI-OSPI-1001`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidResponseError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to return valid API response`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospi-1002`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPI-1002`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DataTransformationError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to process data`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospi-2001`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPI-2001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.StorageFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to store issue data`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospi-3001`,status:500,description:`Check inputs and then try again. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPI-3001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InternalServerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Internal server error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-ospi-4001`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-OSPI-4001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),Qe=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidPolicyApplyError=void 0;let t=J(),n=qe();e.InvalidPolicyApplyError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to apply a policy with an invalid configuration`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-policy-0001`,status:422,description:`Snyk could not apply a policy whilst executing a test because the configuration for the policy was invalid.
You may be able to fix the policy and try again.`,errorCode:`SNYK-POLICY-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/manage-risk/policies`]},n),r,a),this.name=this.constructor.name}}})),$e=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedAlpineDistroError=e.UnsupportedContainerVendorError=e.UndefinedContainerVendorError=e.UnsupportedDebianDistroError=e.UndefinedContainerDistroError=e.TooManyIssuesError=e.TooManyPurlsError=e.InvalidPaginationParametersError=e.InternalServerError=e.VulndbNextError=e.VulnDBInvalidResponseError=e.VulnerabilityServiceUnavailableError=e.PackageNotFoundError=e.ComponentNotSupportedError=e.MissingComponentError=e.UnsupportedEcosystemError=e.NamespaceNotProvidedError=e.InvalidPurlError=e.AuthorizationRequestFailureError=e.OrganizationNotWhitelistedError=void 0;let t=J(),n=qe();e.OrganizationNotWhitelistedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Your Organisation is not authorized to perform this action`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-1040`,status:403,description:`You likely don’t have access to the features in Beta. To get access, you can request access to features in Beta through your account manager or team.`,errorCode:`SNYK-OSSI-1040`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.AuthorizationRequestFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Authorization request failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-1050`,status:500,description:`Unexpected error when authenticating. Try again, and if the error still occurs, contact support.`,errorCode:`SNYK-OSSI-1050`,level:`fatal`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidPurlError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid purl`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2010`,status:400,description:`Make sure that the purl is valid. See the Package URL specification link for further information.`,errorCode:`SNYK-OSSI-2010`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst`]},n),r,a),this.name=this.constructor.name}},e.NamespaceNotProvidedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Namespace not specified`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2011`,status:400,description:`You have requested a package type that requires a namespace (e.g. maven group id). Provide the namespace to retrieve the package.`,errorCode:`SNYK-OSSI-2011`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedEcosystemError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported ecosystem`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2020`,status:400,description:`The package type is not supported. Check the List issues for a package in Snyk API.`,errorCode:`SNYK-OSSI-2020`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingComponentError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Purl components required`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2021`,status:400,description:`A list of components of the purl spec is required. The purl did not specify all the required components. Please add the missing components to the purl and try again.`,errorCode:`SNYK-OSSI-2021`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ComponentNotSupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported purl components`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2022`,status:400,description:`Remove the unsupported component and retry the request.`,errorCode:`SNYK-OSSI-2022`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PackageNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Requested package not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2030`,status:404,description:`The package you specified in the purl cannot be found in the vulnerability database. Check the package name, ecosystem, and version, then try again.`,errorCode:`SNYK-OSSI-2030`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VulnerabilityServiceUnavailableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Vulnerability service not available`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2031`,status:503,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-2031`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VulnDBInvalidResponseError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`This issue is unexpected and the service should recover quickly if not please contact support`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2032`,status:500,description:`An unexpected error occurred. Please try again, and if you continue to experience issues please contact support.`,errorCode:`SNYK-OSSI-2032`,level:`warn`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VulndbNextError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`This issue is unexpected and the service should recover quickly if not please contact support`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2033`,status:500,description:`An unexpected error occurred with the vulnerability service. Please try again, and if you continue to experience issues please contact support.`,errorCode:`SNYK-OSSI-2033`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InternalServerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Request not processed due to unexpected error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2040`,status:500,description:`This issue is unexpected, and the service will recover shortly. If the error still occurs, contact support.`,errorCode:`SNYK-OSSI-2040`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidPaginationParametersError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid pagination parameters`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2041`,status:400,description:`The pagination limit is > 1 and ≤ 1000, and the offset is ≥0.`,errorCode:`SNYK-OSSI-2041`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TooManyPurlsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`purls exceed limit`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2042`,status:400,description:`The number of purls sent in the request exceeds the limit of 1000 set by the service.`,errorCode:`SNYK-OSSI-2042`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TooManyIssuesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Number of issues exceeds limit`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2043`,status:400,description:`The number of issues found for the provided purls exceeds the limit defined by the API. Reduce the number of purls sent in a single request.`,errorCode:`SNYK-OSSI-2043`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UndefinedContainerDistroError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Expected distro to be present`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2044`,status:400,description:`The given Package URL does not have a required distro qualifier.`,errorCode:`SNYK-OSSI-2044`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-containers/how-snyk-container-works/supported-operating-system-distributions#debian`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedDebianDistroError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported Debian distro`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2045`,status:400,description:`This Debian distro is currently not supported.`,errorCode:`SNYK-OSSI-2045`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UndefinedContainerVendorError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Expected namespace to be present`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2046`,status:400,description:`The given Package URL does not have a required namespace.`,errorCode:`SNYK-OSSI-2046`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedContainerVendorError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported vendor`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2047`,status:400,description:`The given Package URL does not contain a supported vendor. Please use one of the listed vendors and try again.`,errorCode:`SNYK-OSSI-2047`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedAlpineDistroError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported Alpine distro`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-ossi-2048`,status:400,description:`This Alpine distro is currently not supported.`,errorCode:`SNYK-OSSI-2048`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),et=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultImageNotFoundError=e.ProjectTooBigError=e.SsoReAuthRequiredError=e.UnsupportedEcosystemError=e.BuildEnvironmentNotFoundError=e.InvalidRequestError=void 0;let t=J(),n=qe();e.InvalidRequestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8001`,status:400,description:`The provided request payload is not valid for the selected ecosystem. Please review the API documentation.`,errorCode:`SNYK-OS-8001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://apidocs.snyk.io/`]},n),r,a),this.name=this.constructor.name}},e.BuildEnvironmentNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Build environment not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8002`,status:404,description:`The build environment for the provided context could not be found. Please ensure you have created the build environment first.`,errorCode:`SNYK-OS-8002`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedEcosystemError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported Ecosystem`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8003`,status:400,description:`The language or package manager is not supported. Please refer to the supported package managers in the links.`,errorCode:`SNYK-OS-8003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source`]},n),r,a),this.name=this.constructor.name}},e.SsoReAuthRequiredError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`OAuth re-authorization required`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8004`,status:422,description:`Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.

Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.

The error you're seeing is usually reproducible by attempting to do a \`git clone\` of your repository with incorrectly configured credentials.
Verify your authentication configuration with your Git cloud provider and try again.`,errorCode:`SNYK-OS-8004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso`]},n),r,a),this.name=this.constructor.name}},e.ProjectTooBigError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project too large to be processed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8005`,status:422,description:`The project cannot be built or processed due to requiring more memory than available. 
For node projects, please try again after removing requirement to generate a lockfile when opening a fix PR.`,errorCode:`SNYK-OS-8005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#howtonotrequestalockfiletobegenerated`]},n),r,a),this.name=this.constructor.name}},e.DefaultImageNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No default image found in repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8006`,status:500,description:`Unable to find the default image. Please try again, and contact Snyk support if the error persists.`,errorCode:`SNYK-OS-8006`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),tt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictError=e.UnsupportedMediaTypeError=e.UnauthorizedError=e.RequestEntityTooLargeError=e.MethodNotAllowedError=e.NotFoundError=e.NotAcceptableError=e.ForbiddenError=e.BadRequestError=void 0;let t=J(),n=qe();e.BadRequestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Bad request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0001`,status:400,description:`The server cannot process the request due to invalid or corrupt data. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0001`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-api-info/getting-started-using-snyk-rest-api `]},n),r,a),this.name=this.constructor.name}},e.ForbiddenError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Forbidden`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0002`,status:403,description:`Access to the requested resource is forbidden. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0002`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NotAcceptableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Not acceptable`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0003`,status:406,description:`The server cannot provide a response that matches the provided accept headers. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0003`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0004`,status:404,description:`The server cannot find the requested resource. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0004`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MethodNotAllowedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Method not allowed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0005`,status:405,description:`The target endpoint does not support your request method. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0005`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.RequestEntityTooLargeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Request entity too large`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0006`,status:413,description:`The request entity exceeds server limitations. Reduce the size of the request entity, then try again.`,errorCode:`SNYK-OPENAPI-0006`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnauthorizedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unauthorized`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0007`,status:401,description:`The request lacks authentication credentials for the requested resource. Ensure you are sending valid credentials, then try again.`,errorCode:`SNYK-OPENAPI-0007`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-api-info/authentication-for-api`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedMediaTypeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported media type`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0008`,status:415,description:`The media format of the request is not supported. Change media format, then try again.`,errorCode:`SNYK-OPENAPI-0008`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ConflictError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Conflict`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-openapi-0009`,status:409,description:`The request could not be completed due to a conflict with the current state of the target resource. Review the request, then try again.`,errorCode:`SNYK-OPENAPI-0009`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),nt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Sha1NotFoundError=e.MavenSearchServiceUnavailableError=void 0;let t=J(),n=qe();e.MavenSearchServiceUnavailableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Maven search service unavailable`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-osjvm-001`,status:503,description:`The upstream Maven search service is not available.`,errorCode:`SNYK-OSJVM-001`,level:`warn`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://search.maven.org`,`https://status.maven.org`]},n),r,a),this.name=this.constructor.name}},e.Sha1NotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SHA1 not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-osjvm-002`,status:404,description:`Unable to find the coordinates for the provided SHA1. Please verify the data you are sending and try again.`,errorCode:`SNYK-OSJVM-002`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/test-for-vulnerabilities/scan-all-unmanaged-jar-files`]},n),r,a),this.name=this.constructor.name}}})),rt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoTestablePackagesError=e.ConversionFailedError=e.FormatNotSupportedError=e.UnprocessableInputError=e.FormatUnknownError=e.PendingTestError=e.FailedTestError=e.NotFoundError=e.OrgIDMismatchError=e.InternalError=void 0;let t=J(),n=qe();e.InternalError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM test error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0001`,status:500,description:`An unexpected error occurred. Review the request, then try again. If the error persists, contact Snyk Support.`,errorCode:`SNYK-SBOM-0001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.OrgIDMismatchError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Organization ID mismatch`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0002`,status:404,description:`The requested organization ID does not match the owner of the SBOM test ID.

This error occurs when the supplied organization ID is different to the one used when creating an SBOM test run.
Ensure the organization ID used to make the request is the same as the the organization ID used to create the SBOM test.`,errorCode:`SNYK-SBOM-0002`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to find SBOM test`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0003`,status:404,description:`Snyk was unable to find the requested SBOM test.`,errorCode:`SNYK-SBOM-0003`,level:`warn`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FailedTestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM test failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0004`,status:404,description:`The SBOM test failed and does not have any results.

This error occurs when results for a failed SBOM test are being requested.`,errorCode:`SNYK-SBOM-0004`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PendingTestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM test results still pending`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0005`,status:404,description:`The SBOM test is still processing and does not have any results yet.

This error occurs when the results for an SBOM test have been requested, but the SBOM test is still being processed.`,errorCode:`SNYK-SBOM-0005`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FormatUnknownError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unknown SBOM format`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0006`,status:422,description:`Snyk does not recognize the SBOM file format.

Provide an SBOM document with a supported format.`,errorCode:`SNYK-SBOM-0006`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/sbom-test`]},n),r,a),this.name=this.constructor.name}},e.UnprocessableInputError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to process SBOM input`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0007`,status:422,description:`Snyk is unable to decode the SBOM file. Provide a valid SBOM document and try again.`,errorCode:`SNYK-SBOM-0007`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/sbom-test`]},n),r,a),this.name=this.constructor.name}},e.FormatNotSupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM format not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0008`,status:422,description:`Provide a supported format of the SBOM document and try again.`,errorCode:`SNYK-SBOM-0008`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/sbom-test`]},n),r,a),this.name=this.constructor.name}},e.ConversionFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM analysis failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0009`,status:422,description:`Snyk was unable to process the provided SBOM input and is unable to scan it for issues.`,errorCode:`SNYK-SBOM-0009`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoTestablePackagesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No testable packages found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0010`,status:422,description:`The SBOM document you provided does not contain any packages supported by Snyk vulnerability analysis, or it does not contain any package.`,errorCode:`SNYK-SBOM-0010`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),it=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidDepGraphError=e.EmptyRequestBodyError=e.MissingAuthTokenError=e.DepGraphResponseError=e.UnsupportedProjectError=e.IaCOrSASTProjectError=e.UnexpectedParseDepGraphError=e.UnexpectedDepGraphResponseError=e.InternalServerError=void 0;let t=J(),n=qe();e.InternalServerError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM generation export server error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9000`,status:500,description:`An unexpected error occurred during the SBOM generation. Review the request, then try again. If the error persists, contact Snyk Support.`,errorCode:`SNYK-OS-9000`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnexpectedDepGraphResponseError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Dependency graph error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9001`,status:500,description:`An unexpected dependency graph error occurred. Review the request, then try again. If the error persists, contact Snyk Support.`,errorCode:`SNYK-OS-9001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnexpectedParseDepGraphError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Error parsing dependency graph`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9002`,status:500,description:`The dependency graph cannot be parsed due to an unexpected error. Review the request, then try again. If the error persists, contact Snyk Support.`,errorCode:`SNYK-OS-9002`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.IaCOrSASTProjectError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM not supported due to project type`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9003`,status:404,description:`Only SBOMs for Snyk Open Source or Snyk Container projects are supported.`,errorCode:`SNYK-OS-9003`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnsupportedProjectError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SBOM not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9004`,status:404,description:`Only SBOMs for open source projects are supported (Snyk Open Source).`,errorCode:`SNYK-OS-9004`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DepGraphResponseError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Dependency graph request cannot be processed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9005`,status:404,description:`The server cannot process the request due to incomplete data. Review the request, then try again.`,errorCode:`SNYK-OS-9005`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MissingAuthTokenError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Authorization failed due to missing API token`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9006`,status:401,description:`The API token is misconfigured or expired. Configure or generate the API token, then try again.`,errorCode:`SNYK-OS-9006`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-api-info/revoking-and-regenerating-snyk-api-tokens`]},n),r,a),this.name=this.constructor.name}},e.EmptyRequestBodyError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Client request cannot be processed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9007`,status:400,description:`The body of the request is empty. Review the request, then try again.`,errorCode:`SNYK-OS-9007`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidDepGraphError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid dependency graph`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9008`,status:422,description:`The supplied dependency graph was not valid. Review the request, then try again.`,errorCode:`SNYK-OS-9008`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),at=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FailedToRenderDefaultTemplateError=e.FailedToLoadCompiledJSONError=e.PRTemplateInvalidPayloadError=e.FailedToDeletePRTemplateError=e.FailedToReadPRTemplateError=e.FailedToCreatePRTemplateError=e.FailedToGenerateHashError=e.FailedToLoadCompiledYamlError=e.FailedToParsePullRequestAttributesError=e.FailedToCompilePrTemplateError=e.PullRequestTemplateNotFoundError=e.FailedToGetPullRequestAttributesError=e.VersionParsingError=e.DowngradeVersionUnsupportedError=e.AlreadyLatestVersionError=e.VersionNotFoundError=e.NoMatureVersionsFoundError=e.MetadataNotFoundError=e.UnsupportedEcosystemError=e.UnauthorisedAccessError=e.SCMRateLimitError=e.FixScenarioNotSupportedError=void 0;let t=J(),n=qe();e.FixScenarioNotSupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Fix scenario not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#pr-failures-0001`,status:422,description:`Snyk failed to open a fix PR as the scenario is not supported.`,errorCode:`PR-FAILURES-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SCMRateLimitError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SCM rate limit`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#pr-failures-0002`,status:429,description:`SCM rate limit exceeded due to too many requests.`,errorCode:`PR-FAILURES-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnauthorisedAccessError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unauthorised access`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#pr-failures-0003`,status:403,description:`Request failed due to unathorised access. Please read documentation around adding users and permitted roles.`,errorCode:`PR-FAILURES-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-admin/groups-and-organizations/organizations/manage-users-in-organizations`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedEcosystemError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unsupported ecosystem`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0001`,status:400,description:`The language or package manager is not supported. Please refer to the supported package managers in the documentation.`,errorCode:`SNYK-PACKAGES-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-with-snyk/pull-requests/snyk-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs-upgrade-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms`]},n),r,a),this.name=this.constructor.name}},e.MetadataNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Metadata not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0003`,status:404,description:`Package metadata not or found or missing.`,errorCode:`SNYK-PACKAGES-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages-package-managers-and-frameworks#package-managers-and-frameworks`]},n),r,a),this.name=this.constructor.name}},e.NoMatureVersionsFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No mature versions found for package`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0005`,status:404,description:`Unable to provide a recommended version as no mature versions were found.`,errorCode:`SNYK-PACKAGES-0005`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VersionNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No recommended version found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0006`,status:404,description:`Unable to provide a recommended version for package using this policy.`,errorCode:`SNYK-PACKAGES-0006`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.AlreadyLatestVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Package is already at latest version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0007`,status:404,description:`No newer version found for this package, as it is already to latest version.`,errorCode:`SNYK-PACKAGES-0007`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DowngradeVersionUnsupportedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Version downgrade is not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0008`,status:400,description:`Unable to suggest a downgrade for a package version.`,errorCode:`SNYK-PACKAGES-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VersionParsingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0009`,status:400,description:`Not a valid version for semver format.`,errorCode:`SNYK-PACKAGES-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://semver.org/`]},n),r,a),this.name=this.constructor.name}},e.FailedToGetPullRequestAttributesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to get pull request attributes`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0001`,status:500,description:`Snyk could not get the custom pull request template attributes, using the given variables and the fetched pr template.`,errorCode:`SNYK-PR-TEMPLATE-0001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.PullRequestTemplateNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0002`,status:404,description:`We could not find your pull request template, have you created one yet? Please check the attached link for instructions on how to setup your pull request template.`,errorCode:`SNYK-PR-TEMPLATE-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToCompilePrTemplateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to compile pull request template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0003`,status:400,description:`Could not compile your customize pull request template. Please check for syntax errors using the Snyk variables inside the template.`,errorCode:`SNYK-PR-TEMPLATE-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToParsePullRequestAttributesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to parse pull request attributes`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0004`,status:500,description:`Snyk could not parse the custom pull request template, using the given variables and assigning them to the fetched pr template.`,errorCode:`SNYK-PR-TEMPLATE-0004`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToLoadCompiledYamlError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to load YAML file after substituting Snyk variables`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0005`,status:500,description:`Could not load YAML file after substituting Snyk variables into the custom PR template.`,errorCode:`SNYK-PR-TEMPLATE-0005`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToGenerateHashError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to generate hash for custom PR template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0006`,status:500,description:`Snyk could not generate hash using the customer PR files and projects vulnIds.`,errorCode:`SNYK-PR-TEMPLATE-0006`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToCreatePRTemplateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to create pull request template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0007`,status:500,description:`Snyk could not create pull request template.`,errorCode:`SNYK-PR-TEMPLATE-0007`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToReadPRTemplateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to get pull request template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0008`,status:500,description:`Snyk could not get pull request template.`,errorCode:`SNYK-PR-TEMPLATE-0008`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToDeletePRTemplateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to delete pull request template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0009`,status:500,description:`Snyk could not delete pull request template.`,errorCode:`SNYK-PR-TEMPLATE-0009`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.PRTemplateInvalidPayloadError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid payload`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0010`,status:500,description:`The pull request template payload is invalid.`,errorCode:`SNYK-PR-TEMPLATE-0010`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FailedToLoadCompiledJSONError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to load JSON file after substituting Snyk variables`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0011`,status:500,description:`Could not load JSON file after substituting Snyk variables into the custom PR template.`,errorCode:`SNYK-PR-TEMPLATE-0011`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}},e.FailedToRenderDefaultTemplateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to render default PR template`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-template-0012`,status:500,description:`Could not render default PR template.`,errorCode:`SNYK-PR-TEMPLATE-0012`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta`]},n),r,a),this.name=this.constructor.name}}})),ot=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TestResultsExpiredError=e.TestIDNotFoundError=e.TestRuleExtensionAlreadyPublishedForGroupError=e.RuleExtensionsLimitReachedError=e.OrgOutsideAdminGroupError=e.GroupAssignmentMustBeForAdminGroupError=e.RuleExtensionAlreadyExistsForGroupError=e.UnsupportedProjectError=e.FeatureIsNotEnabledError=e.AnalysisFileNameLengthLimitExceededError=e.AnalysisTargetSizeLimitExceededError=e.AnalysisResultSizeLimitExceededError=e.AnalysisFileCountLimitExceededError=void 0;let t=J(),n=qe();e.AnalysisFileCountLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Analysis file count limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0001`,status:422,description:`This error occurs when the analysis target has a supported file count that exceeds current system limits.

To reduce the file count, use a \`.snyk\` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.`,errorCode:`SNYK-CODE-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#code-analysis-snyk-code`,`https://docs.snyk.io/scan-applications/start-scanning-using-the-cli-web-ui-or-api/snyk-code-and-your-repositories/excluding-directories-and-files-from-the-import-process`,`https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli`]},n),r,a),this.name=this.constructor.name}},e.AnalysisResultSizeLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Analysis result size limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0002`,status:422,description:`This error occurs when the analysis target generates a result with a byte size that exceeds current system limits.

To reduce the overall result size, use a \`.snyk\` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.`,errorCode:`SNYK-CODE-0002`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-applications/start-scanning-using-the-cli-web-ui-or-api/snyk-code-and-your-repositories/excluding-directories-and-files-from-the-import-process`,`https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli`]},n),r,a),this.name=this.constructor.name}},e.AnalysisTargetSizeLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Analysis target size limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0003`,status:422,description:`This error occurs when the analysis target byte size exceeds current system limits.

To reduce the overall result size, use a \`.snyk\` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.`,errorCode:`SNYK-CODE-0003`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli`]},n),r,a),this.name=this.constructor.name}},e.AnalysisFileNameLengthLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Analysis target includes a file with a name longer than 255 bytes`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0004`,status:422,description:`This error occurs when the analysis target has a file name length that exceeds 255 bytes.

To be able to scan the analysis target, rename the file to a name that is 255 bytes or less.`,errorCode:`SNYK-CODE-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-with-snyk/supported-languages-and-frameworks/introduction-to-snyk-supported-languages-and-frameworks#filename-length-limitation`]},n),r,a),this.name=this.constructor.name}},e.FeatureIsNotEnabledError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Snyk Code is not enabled`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0005`,status:403,description:`This error occurs when Snyk Code is not enabled for the current Organization. Activate Snyk Code and try again..`,errorCode:`SNYK-CODE-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-using-snyk/snyk-code/configure-snyk-code#enable-snyk-code-in-snyk-web-ui`]},n),r,a),this.name=this.constructor.name}},e.UnsupportedProjectError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0006`,status:422,description:`Snyk was unable to find supported files.`,errorCode:`SNYK-CODE-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/getting-started/supported-languages-frameworks-and-feature-availability-overview#code-analysis-snyk-code`]},n),r,a),this.name=this.constructor.name}},e.RuleExtensionAlreadyExistsForGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Rule Extension already exists for the Group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0007`,status:409,description:`A published Rule Extension with the same fully qualified name already exists for the given Group.`,errorCode:`SNYK-CODE-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GroupAssignmentMustBeForAdminGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Group assignment must match the Group in the requested URL`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0009`,status:400,description:`You cannot assign a Snyk Rule Extension to any other Group.

Make sure the Group ID under relationships matches the Group ID in the request path.`,errorCode:`SNYK-CODE-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.OrgOutsideAdminGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Organization outside of the administrating Group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0010`,status:400,description:`You cannot use the Rule Extensions feature with an Org outside of the administrating Group.

Make sure each Org in the request is within the requested Group.`,errorCode:`SNYK-CODE-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.RuleExtensionsLimitReachedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Rule Extension limit reached`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0011`,status:400,description:`You have hit the maximum number of published Snyk Rule Extensions allowed for a Group.

To create a new Rule Extension you will have to remove an existing one.`,errorCode:`SNYK-CODE-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TestRuleExtensionAlreadyPublishedForGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Rule Extension already published for the Group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0012`,status:400,description:`The Rule Extension under test conflicts with an already published Rule Extension.

A test cannot be performed if a Rule Extension with the same fully qualified name
and type is already published for the Group. Either delete the already published Rule Extension
or perform a test with a different fully qualified name or type.`,errorCode:`SNYK-CODE-0012`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TestIDNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Requested test ID not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0013`,status:404,description:`The requested Test ID for testing a Rule Extension was not found.

Make sure to provide a valid Test ID.`,errorCode:`SNYK-CODE-0013`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TestResultsExpiredError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Test results have expired`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-code-0014`,status:404,description:`The results for testing Rule Extensions have expired and are no longer available.

Please trigger a new test.`,errorCode:`SNYK-CODE-0014`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),st=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FailedToGenerateCommitStatusError=e.InvalidThirdPartyCredentialsError=e.FailedToDetectIssuesError=e.MergeConflictError=e.FailedToFetchMergeCommitShaError=e.FailedToCompleteTestError=e.FailedDeterminingProjectTargetError=e.OutOfSyncError=e.ThirdPartyRateLimitError=e.ManifestNotFoundError=e.FailedToReadManifestError=void 0;let t=J(),n=qe();e.FailedToReadManifestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Error reading manifest`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0001`,status:500,description:`Snyk failed to read 1 or more manifest files.
Sometimes things go wrong: a flaky connection, 3rd party services go down and Snyk is unable to read the files needed in order to test your project. 

If this happens, you could try:

- Opening and re-opening your Pull Request / Merge Request, to kick off a new test
- Removing and re-adding the repo to Snyk

Ultimately, you should contact support@snyk.io if the issue persists`,errorCode:`SNYK-PR-CHECK-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Failed-to-read-manifest-file---Commit-Status`]},n),r,a),this.name=this.constructor.name}},e.ManifestNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Manifest not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0002`,status:404,description:`Snyk uses your project manifest file to analyze your projects for vulnerabilities. When you import a project for monitoring, Snyk scans the project to locate the manifest file and then remembers where that file is. 
When a project manifest file is moved or deleted, we still try to look for in it in the last known location in order to run tests on commit statuses. If we can't find the file, this error can occur.

If this happens, you could try the following:
1. Delete the matching project from your account in the Snyk app (UI or CLI).
2. Now import the same project from scratch.

As during the original import, Snyk scans the project and locates the manifest file.`,errorCode:`SNYK-PR-CHECK-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Manifest-not-found`]},n),r,a),this.name=this.constructor.name}},e.ThirdPartyRateLimitError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Rate limit hit while testing project`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0003`,status:429,description:`Snyk makes requests to your SCM when testing a project, in order to analyze your projects for vulnerabilities. If we need to make a lot of requests in a short time period, we may encounter third party rate limits, and this error can occur.

If you receive any of these errors, try re-running the tests, by closing and reopening the pull request.`,errorCode:`SNYK-PR-CHECK-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.OutOfSyncError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Out of Sync Error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0004`,status:422,description:`Sometimes a project may become out of sync between the lockfile and the manifest file. This might happen if the package.json is modified or updated but the lockfile is not. 

This can be resolved by ensuring the lockfile and manifest file are correctly synced, by executing npm install or yarn install.

In some cases, it may be necessary to delete the node_modules folder and the package-lock.json and run npm install again to force a full reinstall. `,errorCode:`SNYK-PR-CHECK-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Out-of-sync-manifest--lockfile-in-the-project`]},n),r,a),this.name=this.constructor.name}},e.FailedDeterminingProjectTargetError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed determining project target`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0005`,status:500,description:`An internal error occurred, whereby Snyk was unable to determine the correct target for a given project in your PR Check.

If you receive this error, try re-running the tests, by closing and reopening the pull request.

Ultimately, you should contact support@snyk.io if the issue persists.`,errorCode:`SNYK-PR-CHECK-0005`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FailedToCompleteTestError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to complete the test`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0006`,status:500,description:`A "Failed to complete testing check status" appears in your commit checks when an unknown error occurs while Snyk was trying to test your projects for vulnerabilities or license issues.

If you receive this error, try re-running the tests, by closing and reopening the pull request.

Ultimately, you should contact support@snyk.io if the issue persists.`,errorCode:`SNYK-PR-CHECK-0006`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Unknown-PR-test-error`]},n),r,a),this.name=this.constructor.name}},e.FailedToFetchMergeCommitShaError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to fetch merge commit SHA`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0007`,status:500,description:`In order for snyk test to run, we need the merge commit SHA from the GitHub. For some reason, we couldn’t get it.

Try closing and then reopening the pull request, or you can Skip the Pull Request Check if it is consistent.`,errorCode:`SNYK-PR-CHECK-0007`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MergeConflictError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Merge conflict error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0008`,status:422,description:`Merge Conflict Error is not a Snyk specific issue but rather some issues on your SCM environment. As an example, merge conflicts could happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file.

To resolve this, you might need to figure out all the merge conflicts on your SCM environment and resolve them to fully remediate these types of errors on Snyk. As a note, this cannot be modified/changed on Snyk's side.`,errorCode:`SNYK-PR-CHECK-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Merge-conflict-error`]},n),r,a),this.name=this.constructor.name}},e.FailedToDetectIssuesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to detect issues`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0009`,status:500,description:`Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.

Occasionally you might see a "Failed to detect issues" commit status which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io`,errorCode:`SNYK-PR-CHECK-0009`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://support.snyk.io/s/article/Failed-to-detect-issues`]},n),r,a),this.name=this.constructor.name}},e.InvalidThirdPartyCredentialsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No valid credentials to process PR check`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0010`,status:401,description:`Snyk uses credentials configured on your integration to test your code and to update your PR Check.

If this error occurs, please ensure your integration and credentials are correctly set up, by following the instructions for your SCM here: https://docs.snyk.io/integrate-with-snyk/git-repository-scm-integrations`,errorCode:`SNYK-PR-CHECK-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FailedToGenerateCommitStatusError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Failed to generate a commit status`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-pr-check-0011`,status:500,description:`Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.

Occasionally you might see a "Failed to generate a commit status" which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io`,errorCode:`SNYK-PR-CHECK-0011`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),ct=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionTimeoutError=e.CommandTimeoutError=e.TerminatedBySignalError=e.DataRenderingError=e.GeneralSecretsFailureError=e.GenericNetworkError=e.ConnectionRefusedError=e.TLSCertificateError=e.NetworkUnreachableError=e.NetworkTimeoutError=e.DNSResolutionError=e.FeatureNotEnabledError=e.CommandIsExperimentalError=e.FeatureUnderDevelopmentError=e.GeneralSASTFailureError=e.GeneralIACFailureError=e.GeneralSCAFailureError=e.ValidationFailureError=e.TooManyVulnerablePathsError=e.NoSupportedFilesFoundError=e.CommandArgsError=e.AuthConfigError=e.GetVulnsFromResourceFailedError=e.InvalidFlagOptionError=e.EmptyFlagOptionError=e.ConfigEnvironmentConsistencyIssueError=e.ConfigEnvironmentFailedError=e.GeneralCLIFailureError=void 0;let t=J(),n=qe();e.GeneralCLIFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unspecified Error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0000`,status:0,description:`The encountered error only provides basic information, please take a look at the given details. If they do not help to resolve the issue, consider debugging or consulting support.`,errorCode:`SNYK-CLI-0000`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands`,`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.ConfigEnvironmentFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to set environment`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0001`,status:0,description:`The specified environment cannot be used. As a result, the configuration remains unchanged. Provide the correct specifications for the environment and try again.`,errorCode:`SNYK-CLI-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/config-environment`]},n),r,a),this.name=this.constructor.name}},e.ConfigEnvironmentConsistencyIssueError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Possible inconsistent configuration`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0002`,status:0,description:`You can configure the CLI in different ways, for example via Environment Variables or configuration file.
If one parameter is configured multiple times, it is probably unintentional and might cause unexpected behavior.
Review configured environment variables and ensure that everything is intentional. If so, you can skip this check by using --no-check.`,errorCode:`SNYK-CLI-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/config-environment`]},n),r,a),this.name=this.constructor.name}},e.EmptyFlagOptionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Empty flag option`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0003`,status:0,description:`A specified flag is missing an option value. Provide a correct option value and try again.`,errorCode:`SNYK-CLI-0003`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/cli-commands-and-options-summary`]},n),r,a),this.name=this.constructor.name}},e.InvalidFlagOptionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid flag option`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0004`,status:0,description:`A specified flag option or combination is invalid. Provide a valid flag option or combination and try again.`,errorCode:`SNYK-CLI-0004`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/cli-commands-and-options-summary`]},n),r,a),this.name=this.constructor.name}},e.GetVulnsFromResourceFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to get vulnerabilities from resource`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0005`,status:0,description:"If you are testing an npm package, check the version and package name and try running `snyk test` again. If you are testing a repository, try testing it at https://snyk.io/test/. For further assistance, run `snyk help` or see the Snyk docs.",errorCode:`SNYK-CLI-0005`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.AuthConfigError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing AUTH token`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0006`,status:0,description:"When running your command, Snyk requires an authenticated account. You must include your API token as an environment value, or use `snyk auth` to authenticate.",errorCode:`SNYK-CLI-0006`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/authenticate-to-use-the-cli`,`https://docs.snyk.io/snyk-cli/configure-the-snyk-cli/environment-variables-for-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.CommandArgsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Incomplete command arguments`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0007`,status:0,description:`The specified CLI command includes missing or misconfigured arguments. Provide the correct arguments and try again.`,errorCode:`SNYK-CLI-0007`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/cli-commands-and-options-summary`]},n),r,a),this.name=this.constructor.name}},e.NoSupportedFilesFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No supported files found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0008`,status:0,description:`Snyk could not detect any supported target files. Ensure the files you are importing are supported, that you are in the right directory, and try again.`,errorCode:`SNYK-CLI-0008`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/supported-languages-package-managers-and-frameworks`]},n),r,a),this.name=this.constructor.name}},e.TooManyVulnerablePathsError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Too many vulnerable paths to Project`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0009`,status:413,description:"There are too many vulnerable paths to process the project. If your command supports it, consider the following: pruning repeated sub-dependencies (`snyk test -p`); excluding directories (`snyk test --all-projects --exclude=dir1,file2`); setting a detection depth (`snyk test --all-projects --detection-depth=3`). If the error still occurs, consider debugging or contact Snyk Support.",errorCode:`SNYK-CLI-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/cli-commands-and-options-summary#options-for-multiple-commands`,`https://docs.snyk.io/snyk-cli/commands/test#prune-repeated-subdependencies-p`,`https://docs.snyk.io/snyk-cli/commands/test#detection-depth-less-than-depth-greater-than`,`https://docs.snyk.io/snyk-cli/commands/test#exclude-less-than-name-greater-than-less-than-name-greater-than-...greater-than`]},n),r,a),this.name=this.constructor.name}},e.ValidationFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`CLI validation failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0010`,status:400,description:`CLI was unable to validate the required parameter. Provide the correct parameter and try again. If the error still occurs, consider debugging or contact Snyk Support.`,errorCode:`SNYK-CLI-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.GeneralSCAFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SCA failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0011`,status:0,description:`CLI was unable to execute your SCA command, please take a look at the given details. If they do not help to resolve the issue, consider debugging or consulting support.`,errorCode:`SNYK-CLI-0011`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/test`]},n),r,a),this.name=this.constructor.name}},e.GeneralIACFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`IAC failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0012`,status:0,description:`CLI was unable to execute your IAC command, please take a look at the given details. If they do not help to resolve the issue, consider debugging or consulting support.`,errorCode:`SNYK-CLI-0012`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/iac`]},n),r,a),this.name=this.constructor.name}},e.GeneralSASTFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SAST failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0013`,status:0,description:`CLI was unable to execute your SAST command, please take a look at the given details. If they do not help to resolve the issue, consider debugging or consulting support.`,errorCode:`SNYK-CLI-0013`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/commands/code`]},n),r,a),this.name=this.constructor.name}},e.FeatureUnderDevelopmentError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Feature under development`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0014`,status:0,description:`This feature is under development and is not yet available for public use.`,errorCode:`SNYK-CLI-0014`,level:`fatal`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.CommandIsExperimentalError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Command is experimental`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0015`,status:0,description:`This CLI command is experimental, which means it is provided "as-is" without warranty of any kind.
You must acknowledge this by specifying the --experimental flag to run the command.`,errorCode:`SNYK-CLI-0015`,level:`fatal`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FeatureNotEnabledError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Feature not enabled`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0016`,status:403,description:`This feature is disabled for your current organization. You can enable it in the settings or switch to an organization where it's already enabled.`,errorCode:`SNYK-CLI-0016`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DNSResolutionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`DNS resolution failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0017`,status:0,description:`Unable to resolve the hostname to an IP address. Troubleshooting steps.
1) Test DNS resolution: nslookup api.<instance>.snyk.io.
2) Try different DNS servers: Change DNS to 8.8.8.8 or 1.1.1.1.
3) Check corporate proxy/firewall DNS blocking.
4) Verify hostname spelling in your Snyk configuration.`,errorCode:`SNYK-CLI-0017`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`,`https://status.snyk.io/`]},n),r,a),this.name=this.constructor.name}},e.NetworkTimeoutError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Network request timeout`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0018`,status:0,description:`The network request timed out. Troubleshooting steps.
1) Test connectivity: ping api.<instance>.snyk.io.
2) Check corporate proxy timeout settings.
3) Try different network: Mobile hotspot or different WiFi.
4) Check if firewall is blocking or throttling connections.`,errorCode:`SNYK-CLI-0018`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`,`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.NetworkUnreachableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Network unreachable`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0019`,status:0,description:`Unable to reach the target network or host. Troubleshooting steps.
1) Test Snyk connectivity: ping api.<instance>.snyk.io.
2) Check corporate firewall blocks Snyk domains.
3) Check if VPN routing is blocking Snyk domains.
4) Try mobile hotspot to isolate network issues.`,errorCode:`SNYK-CLI-0019`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`,`https://status.snyk.io/`]},n),r,a),this.name=this.constructor.name}},e.TLSCertificateError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`TLS certificate error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0020`,status:0,description:`There was an issue with the TLS/SSL certificate during the secure connection. Troubleshooting steps.
1) Check system time: Ensure your system clock is correct (certificates are time-sensitive).
2) Update system certificates: Windows Update or macOS Software Update.
3) Corporate firewall: Check if corporate firewall intercepts SSL traffic.
4) Custom certificates: Set NODE_EXTRA_CA_CERTS environment variable to path of your CA certificate file.`,errorCode:`SNYK-CLI-0020`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`,`https://docs.snyk.io/snyk-cli/configure-the-snyk-cli/environment-variables-for-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.ConnectionRefusedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Connection refused`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0021`,status:0,description:`The connection to the server was refused. Troubleshooting steps.
1) Check Snyk status: Visit status.snyk.io for service outages.
2) Test connectivity: ping api.<instance>.snyk.io.
3) Check corporate proxy blocks HTTPS connections to Snyk.
4) Try mobile hotspot or different network.`,errorCode:`SNYK-CLI-0021`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`,`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.GenericNetworkError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Network communication error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0022`,status:0,description:`An unexpected network error occurred during communication. Troubleshooting steps.
1) Test connectivity: ping api.<instance>.snyk.io.
2) Check proxy settings: HTTP_PROXY and HTTPS_PROXY environment variables.
3) Run with verbose logging: snyk command --debug.
4) Try mobile hotspot to isolate network issues.`,errorCode:`SNYK-CLI-0022`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`,`https://status.snyk.io/`]},n),r,a),this.name=this.constructor.name}},e.GeneralSecretsFailureError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Secrets failure`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0023`,status:0,description:`CLI was unable to execute your Secrets command, please take a look at the given details. If they do not help to resolve the issue, consider debugging or consulting support.`,errorCode:`SNYK-CLI-0023`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.DataRenderingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Data rendering failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0024`,status:0,description:`Rendering the data to at least one of the required outputs failed. Please review the error details provided.
If the details do not help resolve the issue, consider debugging or contacting support.`,errorCode:`SNYK-CLI-0024`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TerminatedBySignalError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Snyk CLI operation interrupted`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0025`,status:0,description:`Snyk CLI stopped before completing the operation. This occurs if you cancel the command with Ctrl+C, your system runs low on memory, or another program terminates Snyk. 
Run the command again. If the problem persists, ensure that your system has enough memory and resources for Snyk CLI operations. 
For additional troubleshooting, refer to Debugging the Snyk CLI.`,errorCode:`SNYK-CLI-0025`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.CommandTimeoutError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Command timed out`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cli-0026`,status:0,description:`The command timed out because it did not complete within the allowed time. This happens with large workloads, slow network connections, or heavy server load. 
To resolve this issue, increase the timeout limit, divide your workload into smaller parts, or run the command again. 
For details on Snyk CLI configuration, see Snyk CLI documentation.`,errorCode:`SNYK-CLI-0026`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-cli/configure-the-snyk-cli/environment-variables-for-snyk-cli`,`https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli`]},n),r,a),this.name=this.constructor.name}},e.ConnectionTimeoutError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Request to Snyk API timeout`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-7001`,status:504,description:`A request to the Snyk API has unexpectedly timeout. Check Snyk status, then try again.`,errorCode:`SNYK-OS-7001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}}})),lt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CreateVersioningSchemaFailError=e.ImageCollectionRetrievalFailedError=e.PropertiesRetrievalFailedError=e.ImageUpdateFailedError=e.ImageDoesNotExistError=e.ImageNotFoundError=e.VersioningSchemaInapplicableError=e.VersioningSchemaMissingError=e.ProjectAlreadyLinkedError=e.UpdateVersioningSchemaFailError=e.UnableToSortByVersionError=e.InvalidPaginationCursorError=e.RequestBodyAttributesMissingError=e.RequestIdsDoNotMatchError=e.ProjectDoesNotBelongToGroupError=e.ProjectIsNotContainerImageError=e.ProjectDoesNotExistError=e.RequiredParameterNotProvidedError=e.VersioningSchemaDoesNotSupportTagError=void 0;let t=J(),n=qe();e.VersioningSchemaDoesNotSupportTagError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Versioning schema does not support tag`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0001`,status:400,description:`The versioning schema used does not support the given tag. Update the versioning schema to include the tag.

Once the tag of the custom base image is correct, the versioning schema must be modified.
You can use a different versioning schema that supports all tags in the repository or you can update the relevant properties of the versioning schema.

For example, if the repository currently uses Semver, and a new tag "1.2.5.7" needs to be added, then you can use a Custom versioning schema.`,errorCode:`SNYK-CBI-0001`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-using-snyk/snyk-container/use-snyk-container-from-the-web-ui/use-custom-base-image-recommendations/versioning-schema-for-custom-base-images`]},n),r,a),this.name=this.constructor.name}},e.RequiredParameterNotProvidedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing required parameter`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0002`,status:400,description:`Provide an ORG ID or GROUP ID.`,errorCode:`SNYK-CBI-0002`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ProjectDoesNotExistError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project does not exist`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0003`,status:404,description:`The project could not be found. Check that the project exists, that you have access to the project, and also check that the ID you have provided is the project ID and not a CBI ID.`,errorCode:`SNYK-CBI-0003`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ProjectIsNotContainerImageError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project is not a container image`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0004`,status:400,description:`The project is not a container image.`,errorCode:`SNYK-CBI-0004`,level:`warn`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scan-using-snyk/snyk-container/use-snyk-container-from-the-web-ui/use-custom-base-image-recommendations`]},n),r,a),this.name=this.constructor.name}},e.ProjectDoesNotBelongToGroupError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to retrieve group`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0005`,status:400,description:`The project's org does not belong to a group. In order to use a Custom Base Image, recreate the project and add it to a group or add a group to the org. Note that the group feature is not available to free users.`,errorCode:`SNYK-CBI-0005`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.RequestIdsDoNotMatchError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The values in the request do not match`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0006`,status:400,description:`The request body ID and the request path ID do not match. Ensure that the values are the same and try again.`,errorCode:`SNYK-CBI-0006`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.RequestBodyAttributesMissingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`The request body cannot be updated`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0007`,status:400,description:`The request body does not contain any attributes that can be updated. Provide the necessary attributes and try again.`,errorCode:`SNYK-CBI-0007`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.InvalidPaginationCursorError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Invalid pagination cursor`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0008`,status:400,description:`The provided pagination cursor is invalid.`,errorCode:`SNYK-CBI-0008`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UnableToSortByVersionError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to sort by version`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0009`,status:400,description:`Snyk was unable to filter by version. Provide a repository filter and try again.`,errorCode:`SNYK-CBI-0009`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UpdateVersioningSchemaFailError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to update versioning schema`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0010`,status:400,description:`The versioning schema could not be applied to all images in the repository. Therefore, no resources have been updated. Update the provided versioning schema so that all tags in the repository fit the new schema.`,errorCode:`SNYK-CBI-0010`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ProjectAlreadyLinkedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Project is already linked to a custom base image`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0011`,status:400,description:`The project ID provided is already linked to another Custom Base Image.`,errorCode:`SNYK-CBI-0011`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VersioningSchemaMissingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No versioning schema for repository`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0012`,status:400,description:`No versioning schema exists for the repository. This image is the first in its repository. Provide a versioning schema that fits the format of current and future images in this repository.`,errorCode:`SNYK-CBI-0012`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.VersioningSchemaInapplicableError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to apply versioning schema`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0013`,status:400,description:`A versioning schema already exists for repository. Remove the "versioning_schema" property or, if you want to update the versioning schema, use the PATCH endpoint.`,errorCode:`SNYK-CBI-0013`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ImageNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to find custom base image`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0014`,status:404,description:`Unable to find the requested custom base image. Try again, and if the error persists, contact Snyk support.`,errorCode:`SNYK-CBI-0014`,level:`warn`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ImageDoesNotExistError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Custom base image does not exist`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0015`,status:404,description:`The requested custom base image does not exist.`,errorCode:`SNYK-CBI-0015`,level:`warn`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.ImageUpdateFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to update custom base image`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0016`,status:500,description:`An internal error occurred while trying to update a custom base image. Try again, and if the error persists, contact Snyk support.`,errorCode:`SNYK-CBI-0016`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.PropertiesRetrievalFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to retrieve project properties`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0017`,status:500,description:`An internal error occurred while trying to retrieve project properties. Try again, and if the error persists, contact Snyk support.`,errorCode:`SNYK-CBI-0017`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.ImageCollectionRetrievalFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to retrieve image collection`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0018`,status:500,description:`An internal error occurred while trying to retrieve the image collection. Try again, and if the error persists, contact Snyk support.`,errorCode:`SNYK-CBI-0018`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[`https://status.snyk.io/`,`https://privatecloudstatus.snyk.io`]},n),r,a),this.name=this.constructor.name}},e.CreateVersioningSchemaFailError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unable to create versioning schema`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-cbi-0019`,status:400,description:`The provided versioning schema is invalid and image could therefor not be created. Provide a properly formatted versioning schema and try again.`,errorCode:`SNYK-CBI-0019`,level:`warn`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),ut=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationNotFoundError=void 0;let t=J(),n=qe();e.IntegrationNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`SCM integration not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-integration-0001`,status:404,description:`Ensure your SCM integration exists and that it is correctly set up.`,errorCode:`SNYK-INTEGRATION-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scm-ide-and-ci-cd-workflow-and-integrations/snyk-scm-integrations`]},n),r,a),this.name=this.constructor.name}}})),dt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoUniqueTargetFoundError=e.TargetNotFoundError=void 0;let t=J(),n=qe();e.TargetNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Target not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-target-0001`,status:404,description:`Snyk was unable to resolve the imported target. Ensure that Snyk created the target and try again.`,errorCode:`SNYK-TARGET-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-admin/snyk-projects#target`]},n),r,a),this.name=this.constructor.name}},e.NoUniqueTargetFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No unique target found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-target-0002`,status:422,description:`Snyk was unable to resolve a single target. Snyk found multiple targets configured for the same integration and repository URL pair. Ensure a unique target exists.`,errorCode:`SNYK-TARGET-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[`https://docs.snyk.io/snyk-admin/snyk-projects#target`]},n),r,a),this.name=this.constructor.name}}})),ft=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceNotFoundError=e.SizeLimitExceededError=e.FilesLimitExceededError=e.IntegrationAuthorizationFailedError=e.IntegrationAuthenticationFailedError=e.RevisionNotResolvedError=e.UnsupportedIntegrationTypeError=void 0;let t=J(),n=qe();e.UnsupportedIntegrationTypeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Integration type not supported`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0001`,status:500,description:`The integration you provided does not support SCM repository access.`,errorCode:`SNYK-SCM-0001`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[`https://docs.snyk.io/scm-ide-and-ci-cd-workflow-and-integrations/snyk-scm-integrations`]},n),r,a),this.name=this.constructor.name}},e.RevisionNotResolvedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Revision cannot be resolved`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0002`,status:422,description:`Snyk was unable to resolve the SCM revision you provided. Provide a valid revision, either a full commit ID or an existing commit reference.`,errorCode:`SNYK-SCM-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.IntegrationAuthenticationFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Integration authentication failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0003`,status:401,description:`Snyk was unable to authenticate with your SCM provider. Ensure you are using valid credentials for the Snyk integration.`,errorCode:`SNYK-SCM-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.IntegrationAuthorizationFailedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Integration authorization failed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0004`,status:401,description:"Snyk was unable to authorize with your SCM provider. If your Organization has SAML SSO enabled or enforced, re-authorize the OAuth Application `Snyk`.",errorCode:`SNYK-SCM-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FilesLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Too many files`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0005`,status:500,description:`Snyk was unable to retrieve the repository because the stored file count exceeds the limit of 4,500,000.`,errorCode:`SNYK-SCM-0005`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.SizeLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Repository size too large`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0006`,status:500,description:`Snyk was unable to retrieve the repository because the stored size exceeds 70 GB.`,errorCode:`SNYK-SCM-0006`,level:`error`,classification:t.Classification.UNSUPPORTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ResourceNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Specified resource cannot be found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-scm-0010`,status:422,description:`Snyk was unable to resolve the SCM resource you provided. Provide a valid resource path and revision.`,errorCode:`SNYK-SCM-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),pt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UploadRevisionUnsealedError=e.MultipartFieldNameMissingError=e.UploadRevisionIdMismatchError=e.TotalUploadRevisionSizeLimitExceededError=e.TotalUploadRevisionFileCountLimitExceededError=e.PopulateRequestLimitExceededError=e.FilePathTooLongError=e.FileCountLimitExceededError=e.TotalFilesSizeLimitExceededError=e.FileTooLargeError=e.UploadRevisionSealedError=e.UploadRevisionNotFoundError=void 0;let t=J(),n=qe();e.UploadRevisionNotFoundError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision not found`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0001`,status:404,description:`The upload revision was not found. The upload revision may have expired or does not exist. Provide a valid upload revision identifier.`,errorCode:`SNYK-UPLOAD-REVISION-0001`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UploadRevisionSealedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision is sealed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0002`,status:400,description:`The upload revision cannot be modified after it has been sealed. Create a new upload revision and retry the operation.`,errorCode:`SNYK-UPLOAD-REVISION-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FileTooLargeError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`File too large`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0003`,status:400,description:`One of the uploaded files exceeds the maximum allowed size. Reduce the file size and try again, or contact support for assistance.`,errorCode:`SNYK-UPLOAD-REVISION-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TotalFilesSizeLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Total files size limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0004`,status:400,description:`The total size of all files uploaded in a single request exceeds the maximum allowed limit. Reduce the total size of files in the request.`,errorCode:`SNYK-UPLOAD-REVISION-0004`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FileCountLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`File count limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0005`,status:400,description:`The request includes more files than the maximum allowed file count. Reduce the number of files in the request.`,errorCode:`SNYK-UPLOAD-REVISION-0005`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.FilePathTooLongError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`File path too long`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0006`,status:400,description:`One or more file paths exceed the maximum allowed length. Reduce the length of the file paths.`,errorCode:`SNYK-UPLOAD-REVISION-0006`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.PopulateRequestLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Populate request limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0007`,status:400,description:`The number of populate requests for this upload revision exceeds the maximum allowed limit. Create a new upload revision and upload a revision using fewer requests.`,errorCode:`SNYK-UPLOAD-REVISION-0007`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TotalUploadRevisionFileCountLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision file count limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0008`,status:400,description:`The number of files exceeds the limit for a single upload revision. Consider splitting the files across multiple upload revisions.`,errorCode:`SNYK-UPLOAD-REVISION-0008`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.TotalUploadRevisionSizeLimitExceededError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision size limit exceeded`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0009`,status:400,description:`The total size of all files uploaded across the entire upload revision exceeds the maximum allowed limit. Consider splitting the files across multiple upload revisions.`,errorCode:`SNYK-UPLOAD-REVISION-0009`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UploadRevisionIdMismatchError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision identifier mismatch`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0010`,status:400,description:`The upload revision identifier in the request body does not match the upload revision identifier in the request path. Ensure both identifiers match and retry the request.`,errorCode:`SNYK-UPLOAD-REVISION-0010`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.MultipartFieldNameMissingError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Missing field name in multipart request`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0011`,status:400,description:`The multipart request has a missing or empty name parameter in the Content-Disposition header. Ensure each part includes a valid field name.`,errorCode:`SNYK-UPLOAD-REVISION-0011`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.UploadRevisionUnsealedError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Upload revision is unsealed`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-upload-revision-0012`,status:400,description:`The upload revision cannot be consumed before it is sealed. Seal the revision or create a new one and retry the operation.`,errorCode:`SNYK-UPLOAD-REVISION-0012`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),mt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoSupportedFilesError=e.ForbiddenError=e.InternalError=void 0;let t=J(),n=qe();e.InternalError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Unexpected error`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-aibom-0001`,status:500,description:"An unexpected error occurred in the AIBOM request. Review the request while providing the debug command flag `-d`. If the error persists, contact Snyk Support.",errorCode:`SNYK-AIBOM-0001`,level:`error`,classification:t.Classification.UNEXPECTED,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.ForbiddenError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`Forbidden`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-aibom-0002`,status:403,description:`You or your Organization do not have permission to use this AIBOM feature. Check your user permissions or contact Snyk support.`,errorCode:`SNYK-AIBOM-0002`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}},e.NoSupportedFilesError=class extends n.ProblemError{constructor(e,n,r,i,a){super({title:`No supported files`,type:`https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-aibom-0003`,status:422,description:`Snyk was unable to find any supported files for the AIBOM command. Ensure the directory you are scanning contains supported files.`,errorCode:`SNYK-AIBOM-0003`,level:`error`,classification:t.Classification.ACTIONABLE,instance:i},e,Object.assign({links:[]},n),r,a),this.name=this.constructor.name}}})),ht=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AiBom=e.UploadRevision=e.SCM=e.Target=e.Integration=e.CustomBaseImages=e.CLI=e.PRChecks=e.Code=e.Fix=e.SbomExport=e.SbomTest=e.OpenSourceUnmanaged=e.OpenAPI=e.IsolatedBuilds=e.PurlVulnerabilityFetching=e.Policies=e.OpenSourceProjectIssues=e.OpenSourceProjectSnapshots=e.OpenSourceEcosystems=e.Snyk=void 0,e.Snyk=Je(),e.OpenSourceEcosystems=Ye(),e.OpenSourceProjectSnapshots=Xe(),e.OpenSourceProjectIssues=Ze(),e.Policies=Qe(),e.PurlVulnerabilityFetching=$e(),e.IsolatedBuilds=et(),e.OpenAPI=tt(),e.OpenSourceUnmanaged=nt(),e.SbomTest=rt(),e.SbomExport=it(),e.Fix=at(),e.Code=ot(),e.PRChecks=st(),e.CLI=ct(),e.CustomBaseImages=lt(),e.Integration=ut(),e.Target=dt(),e.SCM=ft(),e.UploadRevision=pt(),e.AiBom=mt()})),gt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeError=void 0;let t=J();e.CompositeError=class extends Error{constructor(e){super(`CompositeError`),this.errors=e}toJsonApi(e){let n={jsonapi:{version:`1.0`},errors:this.errors.map(t=>t.toJsonApiErrorObject(e))};return new t.JsonApi(n)}}})),_t=/* @__PURE__ */ e.t((n=>{Object.defineProperty(n,"__esModule",{value:!0});let r=(t.D(),e.i(t.O));r.__exportStar(qe(),n),r.__exportStar(ht(),n),r.__exportStar(gt(),n)})),vt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getLockfileVersionFromFile=e.NodeLockfileVersion=void 0,e.extractPnpmMainDocument=o,e.getPnpmLockfileVersion=s,e.getYarnLockfileVersion=c,e.getNpmLockfileVersion=l,e.parseJsonFile=u,e.describeLikelyJsonCause=d,e.loadYamlOrNull=p,e.loadYamlMappingOrThrow=m;let t=require("fs"),n=Te(),r=q(),i=_t();var a;(function(e){e.NpmLockV1=`NPM_LOCK_V1`,e.NpmLockV2=`NPM_LOCK_V2`,e.NpmLockV3=`NPM_LOCK_V3`,e.YarnLockV1=`YARN_LOCK_V1`,e.YarnLockV2=`YARN_LOCK_V2`,e.PnpmLockV5=`PNPM_LOCK_V5`,e.PnpmLockV6=`PNPM_LOCK_V6`,e.PnpmLockV9=`PNPM_LOCK_V9`})(a||(e.NodeLockfileVersion=a={})),e.getLockfileVersionFromFile=e=>{let n=(0,t.readFileSync)(e,`utf-8`);if(e.endsWith(`package-lock.json`))return l(n);if(e.endsWith(`yarn.lock`))return c(n);if(e.endsWith(`pnpm-lock.yaml`))return s(n);throw new r.InvalidUserInputError(`Unknown lockfile ${e}. Please provide either package-lock.json, yarn.lock or pnpm-lock.yaml`)};function o(e){let t=e.replace(/\r\n/g,`
`),n=t.charCodeAt(0)===65279?t.slice(1):t;if(!n.startsWith(`---
`))return t;let r=n.indexOf(`
---
`,4);return r===-1?t:n.slice(r+5)}function s(e){let t=o(e);if(!t&&e)return a.PnpmLockV9;let{lockfileVersion:n}=m(t,`pnpm-lock.yaml`),r=typeof n==`string`?n:``;if(r.startsWith(`5`))return a.PnpmLockV5;if(r.startsWith(`6`))return a.PnpmLockV6;if(r.startsWith(`9`))return a.PnpmLockV9;throw new i.OpenSourceEcosystems.PnpmUnsupportedLockfileVersionError(`The pnpm-lock.yaml lockfile version ${n} is not supported`)}function c(e){return e.includes(`__metadata`)?a.YarnLockV2:a.YarnLockV1}function l(e){let t=u(e,`package-lock.json`).lockfileVersion||null;switch(t){case null:case 1:return a.NpmLockV1;case 2:return a.NpmLockV2;case 3:return a.NpmLockV3;default:throw new r.InvalidUserInputError(`Unsupported npm lockfile version "${t}" in package-lock.json. Please provide a package-lock.json with lockfileVersion 1, 2 or 3`)}}function u(e,t){try{return JSON.parse(e)}catch(n){throw new r.InvalidUserInputError(`${t} parsing failed with error ${n.message}`+d(e))}}function d(e){return e?e.charCodeAt(0)===65279?` The file begins with a byte-order mark (BOM); re-save it as UTF-8 without a BOM.`:e.includes(`\0`)?` The file contains NUL bytes; it may be UTF-16/UTF-32 encoded. Re-save it as UTF-8.`:/^(<{7}|={7}|>{7})( |$)/m.test(e)?` The file appears to contain unresolved git merge-conflict markers.`:``:` The file is empty.`}let f={json:!0,schema:n.FAILSAFE_SCHEMA};function p(e){try{return(0,n.load)(e,f)}catch(t){try{if((0,n.loadAll)(e,f).length===0)return null}catch{}throw t}}function m(e,t){let n=p(e);if(!n||typeof n!=`object`)throw new r.InvalidUserInputError(`${t} parsing failed: the file is empty or does not contain a YAML mapping`);return n}})),yt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LockfileType=e.Scope=void 0,e.parseManifestFile=a,e.getTopLevelDeps=o,e.createDepTreeDepFromDep=s,e.getYarnWorkspaces=c,e.getPnpmWorkspaces=l;let t=q(),n=vt();var r;(function(e){e.prod=`prod`,e.dev=`dev`})(r||(e.Scope=r={}));var i;(function(e){e.npm=`npm`,e.npm7=`npm7`,e.yarn=`yarn`,e.yarn2=`yarn2`,e.pnpm=`pnpm`})(i||(e.LockfileType=i={}));function a(e){return(0,n.parseJsonFile)(e,`package.json`)}function o({targetFile:e,includeDev:t,includePeerDeps:n=!1,applyYarn2Resolutions:r=!1}){let i=[],a=Object.entries({...e.dependencies,...t?e.devDependencies:null,...e.optionalDependencies||{}});for(let[n,r]of a)i.push({dev:t&&e.devDependencies?!!e.devDependencies[n]:!1,name:n,version:r});if(n&&e.peerDependencies)for(let[t,n]of Object.entries(e.peerDependencies))e?.peerDependenciesMeta?.[t]?.optional||i.push({name:t,version:n});if(r&&e.resolutions){let t=new Map(Object.entries(e.resolutions).map(([t,n])=>{let r=t.replace(`${e.name}/`,``),i=r.match(/^(.+)@npm:[^/]+$/);return i&&(r=i[1]),[r,n]}));i=i.map(e=>t.has(e.name)?{...e,version:t.get(e.name)}:e)}return i}function s(e,t){return{labels:{scope:e.dev?r.dev:r.prod,...t&&{"npm:scope":e.dev?r.dev:r.prod}},name:e.name,version:e.version}}function c(e){try{let t=a(e);if(t.workspaces&&t.private){if(Array.isArray(t.workspaces))return t.workspaces;if(`packages`in t.workspaces&&Array.isArray(t.workspaces.packages))return t.workspaces.packages}return!1}catch(e){throw new t.InvalidUserInputError(`package.json parsing failed with error ${e.message}`)}}function l(e){try{let t=(0,n.loadYamlOrNull)(e);return t&&t.packages&&Array.isArray(t.packages)?t.packages:[`*`]}catch(e){throw new t.InvalidUserInputError(`pnpm-workspace.yaml parsing failed with error ${e.message}`)}}})),bt=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object GeneratorFunction]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object Promise]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object WeakMap]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=`[object Float32Array]`,C=`[object Float64Array]`,w=`[object Int8Array]`,T=`[object Int16Array]`,E=`[object Int32Array]`,D=`[object Uint8Array]`,O=`[object Uint8ClampedArray]`,k=`[object Uint16Array]`,A=`[object Uint32Array]`,j=/[\\^$.*+?()[\]{}|]/g,M=/\w*$/,ee=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,N={};N[i]=N[a]=N[b]=N[x]=N[o]=N[s]=N[S]=N[C]=N[w]=N[T]=N[E]=N[d]=N[f]=N[p]=N[h]=N[g]=N[_]=N[v]=N[D]=N[O]=N[k]=N[A]=!0,N[c]=N[l]=N[y]=!1;var ne=typeof global==`object`&&global&&global.Object===Object&&global,re=typeof self==`object`&&self&&self.Object===Object&&self,P=ne||re||Function(`return this`)(),F=typeof e==`object`&&e&&!e.nodeType&&e,I=F&&typeof t==`object`&&t&&!t.nodeType&&t,L=I&&I.exports===F;function R(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function ie(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function B(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function V(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function H(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function U(e,t){return e?.[t]}function ae(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function oe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function se(e,t){return function(n){return e(t(n))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W=Array.prototype,le=Function.prototype,ue=Object.prototype,de=P[`__core-js_shared__`],fe=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),pe=le.toString,me=ue.hasOwnProperty,he=ue.toString,ge=RegExp(`^`+pe.call(me).replace(j,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),_e=L?P.Buffer:void 0,ve=P.Symbol,G=P.Uint8Array,ye=se(Object.getPrototypeOf,Object),be=Object.create,xe=ue.propertyIsEnumerable,Se=W.splice,Ce=Object.getOwnPropertySymbols,we=_e?_e.isBuffer:void 0,K=se(Object.keys,Object),q=Dt(P,`DataView`),Te=Dt(P,`Map`),J=Dt(P,`Promise`),Ee=Dt(P,`Set`),De=Dt(P,`WeakMap`),Oe=Dt(Object,`create`),ke=Lt(q),Ae=Lt(Te),je=Lt(J),Me=Lt(Ee),Ne=Lt(De),Pe=ve?ve.prototype:void 0,Fe=Pe?Pe.valueOf:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(){this.__data__=Oe?Oe(null):{}}function Re(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(Oe){var r=t[e];return r===n?void 0:r}return me.call(t,e)?t[e]:void 0}function Be(e){var t=this.__data__;return Oe?t[e]!==void 0:me.call(t,e)}function Ve(e,t){var r=this.__data__;return r[e]=Oe&&t===void 0?n:t,this}Ie.prototype.clear=Le,Ie.prototype.delete=Re,Ie.prototype.get=ze,Ie.prototype.has=Be,Ie.prototype.set=Ve;function Y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(){this.__data__=[]}function He(e){var t=this.__data__,n=ot(t,e);return n<0?!1:(n==t.length-1?t.pop():Se.call(t,n,1),!0)}function Ue(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function We(e){return ot(this.__data__,e)>-1}function Ge(e,t){var n=this.__data__,r=ot(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Y.prototype.clear=X,Y.prototype.delete=He,Y.prototype.get=Ue,Y.prototype.has=We,Y.prototype.set=Ge;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__={hash:new Ie,map:new(Te||Y),string:new Ie}}function Je(e){return Et(this,e).delete(e)}function Ye(e){return Et(this,e).get(e)}function Xe(e){return Et(this,e).has(e)}function Ze(e,t){return Et(this,e).set(e,t),this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){this.__data__=new Y(e)}function $e(){this.__data__=new Y}function et(e){return this.__data__.delete(e)}function tt(e){return this.__data__.get(e)}function nt(e){return this.__data__.has(e)}function rt(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!Te||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ke(r)}return n.set(e,t),this}Qe.prototype.clear=$e,Qe.prototype.delete=et,Qe.prototype.get=tt,Qe.prototype.has=nt,Qe.prototype.set=rt;function it(e,t){var n=Vt(e)||Bt(e)?H(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||me.call(e,a))&&(!i||a!=`length`&&!Nt(a,r))&&n.push(a);return n}function at(e,t,n){var r=e[t];(!(me.call(e,t)&&zt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ot(e,t){for(var n=e.length;n--;)if(zt(e[n][0],t))return n;return-1}function st(e,t){return e&&Ct(t,Z(t),e)}function ct(e,t,n,r,a,o,s){var c;if(r&&(c=o?r(e,a,o,s):r(e)),c!==void 0)return c;if(!qt(e))return e;var d=Vt(e);if(d){if(c=At(e),!t)return St(e,c)}else{var f=kt(e),m=f==l||f==u;if(Wt(e))return mt(e,t);if(f==p||f==i||m&&!o){if(ae(e))return o?e:{};if(c=jt(m?{}:e),!t)return wt(e,st(c,e))}else{if(!N[f])return o?e:{};c=Mt(e,f,ct,t)}}s||=new Qe;var h=s.get(e);if(h)return h;if(s.set(e,c),!d)var g=n?Tt(e):Z(e);return ie(g||e,function(i,a){g&&(a=i,i=e[a]),at(c,a,ct(i,t,n,r,a,e,s))}),c}function lt(e){return qt(e)?be(e):{}}function ut(e,t,n){var r=t(e);return Vt(e)?r:B(r,n(e))}function dt(e){return he.call(e)}function ft(e){return!qt(e)||Ft(e)?!1:(Gt(e)||ae(e)?ge:ee).test(Lt(e))}function pt(e){if(!It(e))return K(e);var t=[];for(var n in Object(e))me.call(e,n)&&n!=`constructor`&&t.push(n);return t}function mt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function ht(e){var t=new e.constructor(e.byteLength);return new G(t).set(new G(e)),t}function gt(e,t){var n=t?ht(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function _t(e,t,n){return V(t?n(oe(e),!0):oe(e),R,new e.constructor)}function vt(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}function yt(e,t,n){return V(t?n(ce(e),!0):ce(e),z,new e.constructor)}function bt(e){return Fe?Object(Fe.call(e)):{}}function xt(e,t){var n=t?ht(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function St(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Ct(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;at(n,o,s===void 0?e[o]:s)}return n}function wt(e,t){return Ct(e,Ot(e),t)}function Tt(e){return ut(e,Z,Ot)}function Et(e,t){var n=e.__data__;return Pt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Dt(e,t){var n=U(e,t);return ft(n)?n:void 0}var Ot=Ce?se(Ce,Object):Yt,kt=dt;(q&&kt(new q(/* @__PURE__ */ new ArrayBuffer(1)))!=x||Te&&kt(new Te)!=d||J&&kt(J.resolve())!=m||Ee&&kt(new Ee)!=g||De&&kt(new De)!=y)&&(kt=function(e){var t=he.call(e),n=t==p?e.constructor:void 0,r=n?Lt(n):void 0;if(r)switch(r){case ke:return x;case Ae:return d;case je:return m;case Me:return g;case Ne:return y}return t});function At(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&me.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function jt(e){return typeof e.constructor==`function`&&!It(e)?lt(ye(e)):{}}function Mt(e,t,n,r){var i=e.constructor;switch(t){case b:return ht(e);case o:case s:return new i(+e);case x:return gt(e,r);case S:case C:case w:case T:case E:case D:case O:case k:case A:return xt(e,r);case d:return _t(e,r,n);case f:case _:return new i(e);case h:return vt(e);case g:return yt(e,r,n);case v:return bt(e)}}function Nt(e,t){return t??=r,!!t&&(typeof e==`number`||te.test(e))&&e>-1&&e%1==0&&e<t}function Pt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ft(e){return!!fe&&fe in e}function It(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ue)}function Lt(e){if(e!=null){try{return pe.call(e)}catch{}try{return e+``}catch{}}return``}function Rt(e){return ct(e,!0,!0)}function zt(e,t){return e===t||e!==e&&t!==t}function Bt(e){return Ut(e)&&me.call(e,`callee`)&&(!xe.call(e,`callee`)||he.call(e)==i)}var Vt=Array.isArray;function Ht(e){return e!=null&&Kt(e.length)&&!Gt(e)}function Ut(e){return Jt(e)&&Ht(e)}var Wt=we||Xt;function Gt(e){var t=qt(e)?he.call(e):``;return t==l||t==u}function Kt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function qt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Jt(e){return!!e&&typeof e==`object`}function Z(e){return Ht(e)?it(e):pt(e)}function Yt(){return[]}function Xt(){return!1}t.exports=Rt})),xt=/* @__PURE__ */ e.t(((e,t)=>{var n=9007199254740991,r=`[object Map]`,i=`[object Promise]`,a=`[object Set]`,o=`[object WeakMap]`,s=`[object DataView]`,c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,d=typeof global==`object`&&global&&global.Object===Object&&global,f=typeof self==`object`&&self&&self.Object===Object&&self,p=d||f||Function(`return this`)();function m(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function h(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function g(e,t){return m(t,function(t){return[t,e[t]]})}function _(e,t){return e?.[t]}function v(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function b(e,t){return function(n){return e(t(n))}}function x(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}var S=Function.prototype,C=Object.prototype,w=p[`__core-js_shared__`],T=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),E=S.toString,D=C.hasOwnProperty,O=C.toString,k=RegExp(`^`+E.call(D).replace(c,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),A=C.propertyIsEnumerable,j=b(Object.keys,Object),M=H(p,`DataView`),ee=H(p,`Map`),te=H(p,`Promise`),N=H(p,`Set`),ne=H(p,`WeakMap`),re=ce(M),P=ce(ee),F=ce(te),I=ce(N),L=ce(ne);function R(e,t){var n=le(e)||W(e)?h(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||D.call(e,a))&&(!i||a!=`length`&&!ae(a,r))&&n.push(a);return n}function z(e){return O.call(e)}function ie(e){return!me(e)||oe(e)?!1:(fe(e)||v(e)?k:l).test(ce(e))}function B(e){if(!se(e))return j(e);var t=[];for(var n in Object(e))D.call(e,n)&&n!=`constructor`&&t.push(n);return t}function V(e){return function(t){var n=U(t);return n==r?y(t):n==a?x(t):g(t,e(t))}}function H(e,t){var n=_(e,t);return ie(n)?n:void 0}var U=z;(M&&U(new M(/* @__PURE__ */ new ArrayBuffer(1)))!=s||ee&&U(new ee)!=r||te&&U(te.resolve())!=i||N&&U(new N)!=a||ne&&U(new ne)!=o)&&(U=function(e){var t=O.call(e),n=t==`[object Object]`?e.constructor:void 0,c=n?ce(n):void 0;if(c)switch(c){case re:return s;case P:return r;case F:return i;case I:return a;case L:return o}return t});function ae(e,t){return t??=n,!!t&&(typeof e==`number`||u.test(e))&&e>-1&&e%1==0&&e<t}function oe(e){return!!T&&T in e}function se(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||C)}function ce(e){if(e!=null){try{return E.call(e)}catch{}try{return e+``}catch{}}return``}function W(e){return de(e)&&D.call(e,`callee`)&&(!A.call(e,`callee`)||O.call(e)==`[object Arguments]`)}var le=Array.isArray;function ue(e){return e!=null&&pe(e.length)&&!fe(e)}function de(e){return he(e)&&ue(e)}function fe(e){var t=me(e)?O.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function pe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function me(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function he(e){return!!e&&typeof e==`object`}function ge(e){return ue(e)?R(e):B(e)}t.exports=V(ge)})),St=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object GeneratorFunction]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object Promise]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object WeakMap]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=`[object Float32Array]`,C=`[object Float64Array]`,w=`[object Int8Array]`,T=`[object Int16Array]`,E=`[object Int32Array]`,D=`[object Uint8Array]`,O=`[object Uint8ClampedArray]`,k=`[object Uint16Array]`,A=`[object Uint32Array]`,j=/[\\^$.*+?()[\]{}|]/g,M=/\w*$/,ee=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,N={};N[i]=N[a]=N[b]=N[x]=N[o]=N[s]=N[S]=N[C]=N[w]=N[T]=N[E]=N[d]=N[f]=N[p]=N[h]=N[g]=N[_]=N[v]=N[D]=N[O]=N[k]=N[A]=!0,N[c]=N[l]=N[y]=!1;var ne=typeof global==`object`&&global&&global.Object===Object&&global,re=typeof self==`object`&&self&&self.Object===Object&&self,P=ne||re||Function(`return this`)(),F=typeof e==`object`&&e&&!e.nodeType&&e,I=F&&typeof t==`object`&&t&&!t.nodeType&&t,L=I&&I.exports===F;function R(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function ie(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function B(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function V(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function H(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function U(e,t){return e?.[t]}function ae(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function oe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function se(e,t){return function(n){return e(t(n))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W=Array.prototype,le=Function.prototype,ue=Object.prototype,de=P[`__core-js_shared__`],fe=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),pe=le.toString,me=ue.hasOwnProperty,he=ue.toString,ge=RegExp(`^`+pe.call(me).replace(j,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),_e=L?P.Buffer:void 0,ve=P.Symbol,G=P.Uint8Array,ye=se(Object.getPrototypeOf,Object),be=Object.create,xe=ue.propertyIsEnumerable,Se=W.splice,Ce=Object.getOwnPropertySymbols,we=_e?_e.isBuffer:void 0,K=se(Object.keys,Object),q=Dt(P,`DataView`),Te=Dt(P,`Map`),J=Dt(P,`Promise`),Ee=Dt(P,`Set`),De=Dt(P,`WeakMap`),Oe=Dt(Object,`create`),ke=Lt(q),Ae=Lt(Te),je=Lt(J),Me=Lt(Ee),Ne=Lt(De),Pe=ve?ve.prototype:void 0,Fe=Pe?Pe.valueOf:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(){this.__data__=Oe?Oe(null):{}}function Re(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(Oe){var r=t[e];return r===n?void 0:r}return me.call(t,e)?t[e]:void 0}function Be(e){var t=this.__data__;return Oe?t[e]!==void 0:me.call(t,e)}function Ve(e,t){var r=this.__data__;return r[e]=Oe&&t===void 0?n:t,this}Ie.prototype.clear=Le,Ie.prototype.delete=Re,Ie.prototype.get=ze,Ie.prototype.has=Be,Ie.prototype.set=Ve;function Y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(){this.__data__=[]}function He(e){var t=this.__data__,n=ot(t,e);return n<0?!1:(n==t.length-1?t.pop():Se.call(t,n,1),!0)}function Ue(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function We(e){return ot(this.__data__,e)>-1}function Ge(e,t){var n=this.__data__,r=ot(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Y.prototype.clear=X,Y.prototype.delete=He,Y.prototype.get=Ue,Y.prototype.has=We,Y.prototype.set=Ge;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__={hash:new Ie,map:new(Te||Y),string:new Ie}}function Je(e){return Et(this,e).delete(e)}function Ye(e){return Et(this,e).get(e)}function Xe(e){return Et(this,e).has(e)}function Ze(e,t){return Et(this,e).set(e,t),this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){this.__data__=new Y(e)}function $e(){this.__data__=new Y}function et(e){return this.__data__.delete(e)}function tt(e){return this.__data__.get(e)}function nt(e){return this.__data__.has(e)}function rt(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!Te||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ke(r)}return n.set(e,t),this}Qe.prototype.clear=$e,Qe.prototype.delete=et,Qe.prototype.get=tt,Qe.prototype.has=nt,Qe.prototype.set=rt;function it(e,t){var n=Vt(e)||Bt(e)?H(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||me.call(e,a))&&(!i||a!=`length`&&!Nt(a,r))&&n.push(a);return n}function at(e,t,n){var r=e[t];(!(me.call(e,t)&&zt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ot(e,t){for(var n=e.length;n--;)if(zt(e[n][0],t))return n;return-1}function st(e,t){return e&&Ct(t,Z(t),e)}function ct(e,t,n,r,a,o,s){var c;if(r&&(c=o?r(e,a,o,s):r(e)),c!==void 0)return c;if(!qt(e))return e;var d=Vt(e);if(d){if(c=At(e),!t)return St(e,c)}else{var f=kt(e),m=f==l||f==u;if(Wt(e))return mt(e,t);if(f==p||f==i||m&&!o){if(ae(e))return o?e:{};if(c=jt(m?{}:e),!t)return wt(e,st(c,e))}else{if(!N[f])return o?e:{};c=Mt(e,f,ct,t)}}s||=new Qe;var h=s.get(e);if(h)return h;if(s.set(e,c),!d)var g=n?Tt(e):Z(e);return ie(g||e,function(i,a){g&&(a=i,i=e[a]),at(c,a,ct(i,t,n,r,a,e,s))}),c}function lt(e){return qt(e)?be(e):{}}function ut(e,t,n){var r=t(e);return Vt(e)?r:B(r,n(e))}function dt(e){return he.call(e)}function ft(e){return!qt(e)||Ft(e)?!1:(Gt(e)||ae(e)?ge:ee).test(Lt(e))}function pt(e){if(!It(e))return K(e);var t=[];for(var n in Object(e))me.call(e,n)&&n!=`constructor`&&t.push(n);return t}function mt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function ht(e){var t=new e.constructor(e.byteLength);return new G(t).set(new G(e)),t}function gt(e,t){var n=t?ht(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function _t(e,t,n){return V(t?n(oe(e),!0):oe(e),R,new e.constructor)}function vt(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}function yt(e,t,n){return V(t?n(ce(e),!0):ce(e),z,new e.constructor)}function bt(e){return Fe?Object(Fe.call(e)):{}}function xt(e,t){var n=t?ht(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function St(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Ct(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;at(n,o,s===void 0?e[o]:s)}return n}function wt(e,t){return Ct(e,Ot(e),t)}function Tt(e){return ut(e,Z,Ot)}function Et(e,t){var n=e.__data__;return Pt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Dt(e,t){var n=U(e,t);return ft(n)?n:void 0}var Ot=Ce?se(Ce,Object):Yt,kt=dt;(q&&kt(new q(/* @__PURE__ */ new ArrayBuffer(1)))!=x||Te&&kt(new Te)!=d||J&&kt(J.resolve())!=m||Ee&&kt(new Ee)!=g||De&&kt(new De)!=y)&&(kt=function(e){var t=he.call(e),n=t==p?e.constructor:void 0,r=n?Lt(n):void 0;if(r)switch(r){case ke:return x;case Ae:return d;case je:return m;case Me:return g;case Ne:return y}return t});function At(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&me.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function jt(e){return typeof e.constructor==`function`&&!It(e)?lt(ye(e)):{}}function Mt(e,t,n,r){var i=e.constructor;switch(t){case b:return ht(e);case o:case s:return new i(+e);case x:return gt(e,r);case S:case C:case w:case T:case E:case D:case O:case k:case A:return xt(e,r);case d:return _t(e,r,n);case f:case _:return new i(e);case h:return vt(e);case g:return yt(e,r,n);case v:return bt(e)}}function Nt(e,t){return t??=r,!!t&&(typeof e==`number`||te.test(e))&&e>-1&&e%1==0&&e<t}function Pt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ft(e){return!!fe&&fe in e}function It(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ue)}function Lt(e){if(e!=null){try{return pe.call(e)}catch{}try{return e+``}catch{}}return``}function Rt(e){return ct(e,!1,!0)}function zt(e,t){return e===t||e!==e&&t!==t}function Bt(e){return Ut(e)&&me.call(e,`callee`)&&(!xe.call(e,`callee`)||he.call(e)==i)}var Vt=Array.isArray;function Ht(e){return e!=null&&Kt(e.length)&&!Gt(e)}function Ut(e){return Jt(e)&&Ht(e)}var Wt=we||Xt;function Gt(e){var t=qt(e)?he.call(e):``;return t==l||t==u}function Kt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function qt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Jt(e){return!!e&&typeof e==`object`}function Z(e){return Ht(e)?it(e):pt(e)}function Yt(){return[]}function Xt(){return!1}t.exports=Rt})),Ct=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,M=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,N=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,P={};P[x]=P[S]=P[C]=P[w]=P[T]=P[E]=P[D]=P[O]=P[k]=!0,P[i]=P[a]=P[y]=P[o]=P[b]=P[s]=P[c]=P[l]=P[u]=P[d]=P[f]=P[m]=P[h]=P[g]=P[v]=!1;var F=typeof global==`object`&&global&&global.Object===Object&&global,I=typeof self==`object`&&self&&self.Object===Object&&self,L=F||I||Function(`return this`)(),R=typeof e==`object`&&e&&!e.nodeType&&e,z=R&&typeof t==`object`&&t&&!t.nodeType&&t,ie=z&&z.exports===R&&F.process,B=function(){try{return ie&&ie.binding(`util`)}catch{}}(),V=B&&B.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ae(e){return function(t){return t?.[e]}}function oe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function se(e){return function(t){return e(t)}}function ce(e,t){return e?.[t]}function W(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=L[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_e=pe.toString,ve=me.hasOwnProperty,G=me.toString,ye=RegExp(`^`+_e.call(ve).replace(te,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=L.Symbol,xe=L.Uint8Array,Se=me.propertyIsEnumerable,Ce=fe.splice,we=ue(Object.keys,Object),K=Ft(L,`DataView`),q=Ft(L,`Map`),Te=Ft(L,`Promise`),J=Ft(L,`Set`),Ee=Ft(L,`WeakMap`),De=Ft(Object,`create`),Oe=qt(K),ke=qt(q),Ae=qt(Te),je=qt(J),Me=qt(Ee),Ne=be?be.prototype:void 0,Pe=Ne?Ne.valueOf:void 0,Fe=Ne?Ne.toString:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(){this.__data__=De?De(null):{}}function Re(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(De){var r=t[e];return r===n?void 0:r}return ve.call(t,e)?t[e]:void 0}function Be(e){var t=this.__data__;return De?t[e]!==void 0:ve.call(t,e)}function Ve(e,t){var r=this.__data__;return r[e]=De&&t===void 0?n:t,this}Ie.prototype.clear=Le,Ie.prototype.delete=Re,Ie.prototype.get=ze,Ie.prototype.has=Be,Ie.prototype.set=Ve;function Y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(){this.__data__=[]}function He(e){var t=this.__data__,n=ct(t,e);return n<0?!1:(n==t.length-1?t.pop():Ce.call(t,n,1),!0)}function Ue(e){var t=this.__data__,n=ct(t,e);return n<0?void 0:t[n][1]}function We(e){return ct(this.__data__,e)>-1}function Ge(e,t){var n=this.__data__,r=ct(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Y.prototype.clear=X,Y.prototype.delete=He,Y.prototype.get=Ue,Y.prototype.has=We,Y.prototype.set=Ge;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__={hash:new Ie,map:new(q||Y),string:new Ie}}function Je(e){return Nt(this,e).delete(e)}function Ye(e){return Nt(this,e).get(e)}function Xe(e){return Nt(this,e).has(e)}function Ze(e,t){return Nt(this,e).set(e,t),this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function $e(e){return this.__data__.set(e,n),this}function et(e){return this.__data__.has(e)}Qe.prototype.add=Qe.prototype.push=$e,Qe.prototype.has=et;function tt(e){this.__data__=new Y(e)}function nt(){this.__data__=new Y}function rt(e){return this.__data__.delete(e)}function it(e){return this.__data__.get(e)}function at(e){return this.__data__.has(e)}function ot(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ke(r)}return n.set(e,t),this}tt.prototype.clear=nt,tt.prototype.delete=rt,tt.prototype.get=it,tt.prototype.has=at,tt.prototype.set=ot;function st(e,t){var n=Q(e)||Xt(e)?oe(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||ve.call(e,a))&&(!i||a!=`length`&&!Rt(a,r))&&n.push(a);return n}function ct(e,t){for(var n=e.length;n--;)if(Yt(e[n][0],t))return n;return-1}var lt=Ot(ft);function ut(e,t){var n=[];return lt(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var dt=kt();function ft(e,t){return e&&dt(e,t,ln)}function pt(e,t){t=zt(t,e)?[t]:Dt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kt(t[n++])];return n&&n==r?e:void 0}function mt(e){return G.call(e)}function ht(e,t){return e!=null&&t in Object(e)}function gt(e,t,n,r,i){return e===t?!0:e==null||t==null||!tn(e)&&!nn(t)?e!==e&&t!==t:_t(e,t,gt,n,r,i)}function _t(e,t,n,r,o,s){var c=Q(e),l=Q(t),u=a,d=a;c||(u=It(e),u=u==i?f:u),l||(d=It(t),d=d==i?f:d);var p=u==f&&!W(e),m=d==f&&!W(t),h=u==d;if(h&&!p)return s||=new tt,c||an(e)?At(e,t,n,r,o,s):jt(e,t,u,n,r,o,s);if(!(o&2)){var g=p&&ve.call(e,`__wrapped__`),_=m&&ve.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new tt,n(v,y,r,o,s)}}return h?(s||=new tt,Mt(e,t,n,r,o,s)):!1}function vt(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new tt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?gt(u,l,r,3,d):f))return!1}}return!0}function yt(e){return!tn(e)||Vt(e)?!1:($t(e)||W(e)?ye:ne).test(qt(e))}function bt(e){return nn(e)&&en(e.length)&&!!P[G.call(e)]}function xt(e){return typeof e==`function`?e:e==null?un:typeof e==`object`?Q(e)?wt(e[0],e[1]):Ct(e):dn(e)}function St(e){if(!Ht(e))return we(e);var t=[];for(var n in Object(e))ve.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ct(e){var t=Pt(e);return t.length==1&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||vt(n,e,t)}}function wt(e,t){return zt(e)&&Ut(t)?Wt(Kt(e),t):function(n){var r=sn(n,e);return r===void 0&&r===t?cn(n,e):gt(t,r,void 0,3)}}function Tt(e){return function(t){return pt(t,e)}}function Et(e){if(typeof e==`string`)return e;if(rn(e))return Fe?Fe.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Dt(e){return Q(e)?e:Gt(e)}function Ot(e,t){return function(n,r){if(n==null)return n;if(!Zt(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function kt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function At(e,t,n,r,i,a){var o=i&2,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new Qe:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!U(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===m||n(p,m,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function jt(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new xe(e),new xe(t)));case o:case s:case d:return Yt(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=le;case h:var p=a&2;if(f||=de,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;a|=1,l.set(e,t);var x=At(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Pe)return Pe.call(e)==Pe.call(t)}return!1}function Mt(e,t,n,r,i,a){var o=i&2,s=ln(e),c=s.length;if(c!=ln(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ve.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function Nt(e,t){var n=e.__data__;return Bt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Pt(e){for(var t=ln(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ut(i)]}return t}function Ft(e,t){var n=ce(e,t);return yt(n)?n:void 0}var It=mt;(K&&It(new K(/* @__PURE__ */ new ArrayBuffer(1)))!=b||q&&It(new q)!=u||Te&&It(Te.resolve())!=p||J&&It(new J)!=h||Ee&&It(new Ee)!=v)&&(It=function(e){var t=G.call(e),n=t==f?e.constructor:void 0,r=n?qt(n):void 0;if(r)switch(r){case Oe:return b;case ke:return u;case Ae:return p;case je:return h;case Me:return v}return t});function Lt(e,t,n){t=zt(t,e)?[t]:Dt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Kt(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&en(a)&&Rt(o,a)&&(Q(e)||Xt(e))}function Rt(e,t){return t??=r,!!t&&(typeof e==`number`||re.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t){if(Q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||rn(e)?!0:j.test(e)||!A.test(e)||t!=null&&e in Object(t)}function Bt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Vt(e){return!!ge&&ge in e}function Ht(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function Ut(e){return e===e&&!tn(e)}function Wt(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var Gt=Z(function(e){e=on(e);var t=[];return M.test(e)&&t.push(``),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function Kt(e){if(typeof e==`string`||rn(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function qt(e){if(e!=null){try{return _e.call(e)}catch{}try{return e+``}catch{}}return``}function Jt(e,t){return(Q(e)?H:ut)(e,xt(t,3))}function Z(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Z.Cache||Ke),n}Z.Cache=Ke;function Yt(e,t){return e===t||e!==e&&t!==t}function Xt(e){return Qt(e)&&ve.call(e,`callee`)&&(!Se.call(e,`callee`)||G.call(e)==i)}var Q=Array.isArray;function Zt(e){return e!=null&&en(e.length)&&!$t(e)}function Qt(e){return nn(e)&&Zt(e)}function $t(e){var t=tn(e)?G.call(e):``;return t==l||t==`[object GeneratorFunction]`}function en(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function tn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function nn(e){return!!e&&typeof e==`object`}function rn(e){return typeof e==`symbol`||nn(e)&&G.call(e)==_}var an=V?se(V):bt;function on(e){return e==null?``:Et(e)}function sn(e,t,n){var r=e==null?void 0:pt(e,t);return r===void 0?n:r}function cn(e,t){return e!=null&&Lt(e,t,ht)}function ln(e){return Zt(e)?st(e):St(e)}function un(e){return e}function dn(e){return zt(e)?ae(Kt(e)):Tt(e)}t.exports=Jt})),wt=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/[\\^$.*+?()[\]{}|]/g,l=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,f=typeof global==`object`&&global&&global.Object===Object&&global,p=typeof self==`object`&&self&&self.Object===Object&&self,m=f||p||Function(`return this`)();function h(e,t){return e?.[t]}function g(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}var _=Array.prototype,v=Function.prototype,y=Object.prototype,b=m[`__core-js_shared__`],x=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),S=v.toString,C=y.hasOwnProperty,w=y.toString,T=RegExp(`^`+S.call(C).replace(c,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),E=m.Symbol,D=y.propertyIsEnumerable,O=_.splice,k=fe(m,`Map`),A=fe(Object,`create`),j=E?E.prototype:void 0,M=j?j.toString:void 0;function ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function te(){this.__data__=A?A(null):{}}function N(e){return this.has(e)&&delete this.__data__[e]}function ne(e){var t=this.__data__;if(A){var r=t[e];return r===n?void 0:r}return C.call(t,e)?t[e]:void 0}function re(e){var t=this.__data__;return A?t[e]!==void 0:C.call(t,e)}function P(e,t){var r=this.__data__;return r[e]=A&&t===void 0?n:t,this}ee.prototype.clear=te,ee.prototype.delete=N,ee.prototype.get=ne,ee.prototype.has=re,ee.prototype.set=P;function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(){this.__data__=[]}function L(e){var t=this.__data__,n=se(t,e);return n<0?!1:(n==t.length-1?t.pop():O.call(t,n,1),!0)}function R(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]}function z(e){return se(this.__data__,e)>-1}function ie(e,t){var n=this.__data__,r=se(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}F.prototype.clear=I,F.prototype.delete=L,F.prototype.get=R,F.prototype.has=z,F.prototype.set=ie;function B(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function V(){this.__data__={hash:new ee,map:new(k||F),string:new ee}}function H(e){return de(this,e).delete(e)}function U(e){return de(this,e).get(e)}function ae(e){return de(this,e).has(e)}function oe(e,t){return de(this,e).set(e,t),this}B.prototype.clear=V,B.prototype.delete=H,B.prototype.get=U,B.prototype.has=ae,B.prototype.set=oe;function se(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function ce(e,t){return e!=null&&C.call(e,t)}function W(e){return!J(e)||_e(e)?!1:(q(e)||g(e)?T:u).test(ye(e))}function le(e){if(typeof e==`string`)return e;if(De(e))return M?M.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ue(e){return Ce(e)?e:ve(e)}function de(e,t){var n=e.__data__;return ge(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function fe(e,t){var n=h(e,t);return W(n)?n:void 0}function pe(e,t,n){t=he(t,e)?[t]:ue(t);for(var r,i=-1,a=t.length;++i<a;){var o=G(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&Te(a)&&me(o,a)&&(Ce(e)||Se(e))}function me(e,t){return t??=r,!!t&&(typeof e==`number`||d.test(e))&&e>-1&&e%1==0&&e<t}function he(e,t){if(Ce(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||De(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}function ge(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function _e(e){return!!x&&x in e}var ve=be(function(e){e=Oe(e);var t=[];return o.test(e)&&t.push(``),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,`$1`):n||e)}),t});function G(e){if(typeof e==`string`||De(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ye(e){if(e!=null){try{return S.call(e)}catch{}try{return e+``}catch{}}return``}function be(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(be.Cache||B),n}be.Cache=B;function xe(e,t){return e===t||e!==e&&t!==t}function Se(e){return K(e)&&C.call(e,`callee`)&&(!D.call(e,`callee`)||w.call(e)==`[object Arguments]`)}var Ce=Array.isArray;function we(e){return e!=null&&Te(e.length)&&!q(e)}function K(e){return Ee(e)&&we(e)}function q(e){var t=J(e)?w.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function Te(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function J(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ee(e){return!!e&&typeof e==`object`}function De(e){return typeof e==`symbol`||Ee(e)&&w.call(e)==`[object Symbol]`}function Oe(e){return e==null?``:le(e)}function ke(e,t){return e!=null&&pe(e,t,ce)}t.exports=ke})),Tt=/* @__PURE__ */ e.t(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function a(e,t){return function(n){return e(t(n))}}var o=Object.prototype,s=o.hasOwnProperty,c=o.toString,l=o.propertyIsEnumerable,u=a(Object.keys,Object);function d(e,t){var n=g(e)||h(e)?i(e.length,String):[],r=n.length,a=!!r;for(var o in e)(t||s.call(e,o))&&(!a||o!=`length`&&!p(o,r))&&n.push(o);return n}function f(e){if(!m(e))return u(e);var t=[];for(var n in Object(e))s.call(e,n)&&n!=`constructor`&&t.push(n);return t}function p(e,t){return t??=n,!!t&&(typeof e==`number`||r.test(e))&&e>-1&&e%1==0&&e<t}function m(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||o)}function h(e){return v(e)&&s.call(e,`callee`)&&(!l.call(e,`callee`)||c.call(e)==`[object Arguments]`)}var g=Array.isArray;function _(e){return e!=null&&b(e.length)&&!y(e)}function v(e){return S(e)&&_(e)}function y(e){var t=x(e)?c.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function b(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function x(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function S(e){return!!e&&typeof e==`object`}function C(e){return _(e)?d(e):f(e)}t.exports=C})),Et=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,M=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,N=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,P={};P[x]=P[S]=P[C]=P[w]=P[T]=P[E]=P[D]=P[O]=P[k]=!0,P[i]=P[a]=P[y]=P[o]=P[b]=P[s]=P[c]=P[l]=P[u]=P[d]=P[f]=P[m]=P[h]=P[g]=P[v]=!1;var F=typeof global==`object`&&global&&global.Object===Object&&global,I=typeof self==`object`&&self&&self.Object===Object&&self,L=F||I||Function(`return this`)(),R=typeof e==`object`&&e&&!e.nodeType&&e,z=R&&typeof t==`object`&&t&&!t.nodeType&&t,ie=z&&z.exports===R&&F.process,B=function(){try{return ie&&ie.binding(`util`)}catch{}}(),V=B&&B.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ae(e){return function(t){return t?.[e]}}function oe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function se(e){return function(t){return e(t)}}function ce(e,t){return e?.[t]}function W(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=L[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_e=pe.toString,ve=me.hasOwnProperty,G=me.toString,ye=RegExp(`^`+_e.call(ve).replace(te,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=L.Symbol,xe=L.Uint8Array,Se=me.propertyIsEnumerable,Ce=fe.splice,we=ue(Object.keys,Object),K=Ft(L,`DataView`),q=Ft(L,`Map`),Te=Ft(L,`Promise`),J=Ft(L,`Set`),Ee=Ft(L,`WeakMap`),De=Ft(Object,`create`),Oe=qt(K),ke=qt(q),Ae=qt(Te),je=qt(J),Me=qt(Ee),Ne=be?be.prototype:void 0,Pe=Ne?Ne.valueOf:void 0,Fe=Ne?Ne.toString:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(){this.__data__=De?De(null):{}}function Re(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(De){var r=t[e];return r===n?void 0:r}return ve.call(t,e)?t[e]:void 0}function Be(e){var t=this.__data__;return De?t[e]!==void 0:ve.call(t,e)}function Ve(e,t){var r=this.__data__;return r[e]=De&&t===void 0?n:t,this}Ie.prototype.clear=Le,Ie.prototype.delete=Re,Ie.prototype.get=ze,Ie.prototype.has=Be,Ie.prototype.set=Ve;function Y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(){this.__data__=[]}function He(e){var t=this.__data__,n=ct(t,e);return n<0?!1:(n==t.length-1?t.pop():Ce.call(t,n,1),!0)}function Ue(e){var t=this.__data__,n=ct(t,e);return n<0?void 0:t[n][1]}function We(e){return ct(this.__data__,e)>-1}function Ge(e,t){var n=this.__data__,r=ct(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Y.prototype.clear=X,Y.prototype.delete=He,Y.prototype.get=Ue,Y.prototype.has=We,Y.prototype.set=Ge;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__={hash:new Ie,map:new(q||Y),string:new Ie}}function Je(e){return Nt(this,e).delete(e)}function Ye(e){return Nt(this,e).get(e)}function Xe(e){return Nt(this,e).has(e)}function Ze(e,t){return Nt(this,e).set(e,t),this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function $e(e){return this.__data__.set(e,n),this}function et(e){return this.__data__.has(e)}Qe.prototype.add=Qe.prototype.push=$e,Qe.prototype.has=et;function tt(e){this.__data__=new Y(e)}function nt(){this.__data__=new Y}function rt(e){return this.__data__.delete(e)}function it(e){return this.__data__.get(e)}function at(e){return this.__data__.has(e)}function ot(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ke(r)}return n.set(e,t),this}tt.prototype.clear=nt,tt.prototype.delete=rt,tt.prototype.get=it,tt.prototype.has=at,tt.prototype.set=ot;function st(e,t){var n=Q(e)||Xt(e)?oe(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||ve.call(e,a))&&(!i||a!=`length`&&!Rt(a,r))&&n.push(a);return n}function ct(e,t){for(var n=e.length;n--;)if(Yt(e[n][0],t))return n;return-1}var lt=Ot(dt),ut=kt();function dt(e,t){return e&&ut(e,t,ln)}function ft(e,t){t=zt(t,e)?[t]:Dt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kt(t[n++])];return n&&n==r?e:void 0}function pt(e){return G.call(e)}function mt(e,t){return e!=null&&t in Object(e)}function ht(e,t,n,r,i){return e===t?!0:e==null||t==null||!tn(e)&&!nn(t)?e!==e&&t!==t:gt(e,t,ht,n,r,i)}function gt(e,t,n,r,o,s){var c=Q(e),l=Q(t),u=a,d=a;c||(u=It(e),u=u==i?f:u),l||(d=It(t),d=d==i?f:d);var p=u==f&&!W(e),m=d==f&&!W(t),h=u==d;if(h&&!p)return s||=new tt,c||an(e)?At(e,t,n,r,o,s):jt(e,t,u,n,r,o,s);if(!(o&2)){var g=p&&ve.call(e,`__wrapped__`),_=m&&ve.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new tt,n(v,y,r,o,s)}}return h?(s||=new tt,Mt(e,t,n,r,o,s)):!1}function _t(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new tt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?ht(u,l,r,3,d):f))return!1}}return!0}function vt(e){return!tn(e)||Vt(e)?!1:($t(e)||W(e)?ye:ne).test(qt(e))}function yt(e){return nn(e)&&en(e.length)&&!!P[G.call(e)]}function bt(e){return typeof e==`function`?e:e==null?un:typeof e==`object`?Q(e)?wt(e[0],e[1]):Ct(e):dn(e)}function xt(e){if(!Ht(e))return we(e);var t=[];for(var n in Object(e))ve.call(e,n)&&n!=`constructor`&&t.push(n);return t}function St(e,t){var n=-1,r=Zt(e)?Array(e.length):[];return lt(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Ct(e){var t=Pt(e);return t.length==1&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||_t(n,e,t)}}function wt(e,t){return zt(e)&&Ut(t)?Wt(Kt(e),t):function(n){var r=sn(n,e);return r===void 0&&r===t?cn(n,e):ht(t,r,void 0,3)}}function Tt(e){return function(t){return ft(t,e)}}function Et(e){if(typeof e==`string`)return e;if(rn(e))return Fe?Fe.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Dt(e){return Q(e)?e:Gt(e)}function Ot(e,t){return function(n,r){if(n==null)return n;if(!Zt(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function kt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function At(e,t,n,r,i,a){var o=i&2,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new Qe:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!U(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===m||n(p,m,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function jt(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new xe(e),new xe(t)));case o:case s:case d:return Yt(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=le;case h:var p=a&2;if(f||=de,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;a|=1,l.set(e,t);var x=At(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Pe)return Pe.call(e)==Pe.call(t)}return!1}function Mt(e,t,n,r,i,a){var o=i&2,s=ln(e),c=s.length;if(c!=ln(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ve.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function Nt(e,t){var n=e.__data__;return Bt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Pt(e){for(var t=ln(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ut(i)]}return t}function Ft(e,t){var n=ce(e,t);return vt(n)?n:void 0}var It=pt;(K&&It(new K(/* @__PURE__ */ new ArrayBuffer(1)))!=b||q&&It(new q)!=u||Te&&It(Te.resolve())!=p||J&&It(new J)!=h||Ee&&It(new Ee)!=v)&&(It=function(e){var t=G.call(e),n=t==f?e.constructor:void 0,r=n?qt(n):void 0;if(r)switch(r){case Oe:return b;case ke:return u;case Ae:return p;case je:return h;case Me:return v}return t});function Lt(e,t,n){t=zt(t,e)?[t]:Dt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Kt(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&en(a)&&Rt(o,a)&&(Q(e)||Xt(e))}function Rt(e,t){return t??=r,!!t&&(typeof e==`number`||re.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t){if(Q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||rn(e)?!0:j.test(e)||!A.test(e)||t!=null&&e in Object(t)}function Bt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Vt(e){return!!ge&&ge in e}function Ht(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function Ut(e){return e===e&&!tn(e)}function Wt(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var Gt=Z(function(e){e=on(e);var t=[];return M.test(e)&&t.push(``),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function Kt(e){if(typeof e==`string`||rn(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function qt(e){if(e!=null){try{return _e.call(e)}catch{}try{return e+``}catch{}}return``}function Jt(e,t){return(Q(e)?H:St)(e,bt(t,3))}function Z(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Z.Cache||Ke),n}Z.Cache=Ke;function Yt(e,t){return e===t||e!==e&&t!==t}function Xt(e){return Qt(e)&&ve.call(e,`callee`)&&(!Se.call(e,`callee`)||G.call(e)==i)}var Q=Array.isArray;function Zt(e){return e!=null&&en(e.length)&&!$t(e)}function Qt(e){return nn(e)&&Zt(e)}function $t(e){var t=tn(e)?G.call(e):``;return t==l||t==`[object GeneratorFunction]`}function en(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function tn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function nn(e){return!!e&&typeof e==`object`}function rn(e){return typeof e==`symbol`||nn(e)&&G.call(e)==_}var an=V?se(V):yt;function on(e){return e==null?``:Et(e)}function sn(e,t,n){var r=e==null?void 0:ft(e,t);return r===void 0?n:r}function cn(e,t){return e!=null&&Lt(e,t,mt)}function ln(e){return Zt(e)?st(e):xt(e)}function un(e){return e}function dn(e){return zt(e)?ae(Kt(e)):Tt(e)}t.exports=Jt})),Dt=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,M=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,N=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,P={};P[x]=P[S]=P[C]=P[w]=P[T]=P[E]=P[D]=P[O]=P[k]=!0,P[i]=P[a]=P[y]=P[o]=P[b]=P[s]=P[c]=P[l]=P[u]=P[d]=P[f]=P[m]=P[h]=P[g]=P[v]=!1;var F=typeof global==`object`&&global&&global.Object===Object&&global,I=typeof self==`object`&&self&&self.Object===Object&&self,L=F||I||Function(`return this`)(),R=typeof e==`object`&&e&&!e.nodeType&&e,z=R&&typeof t==`object`&&t&&!t.nodeType&&t,ie=z&&z.exports===R&&F.process,B=function(){try{return ie&&ie.binding(`util`)}catch{}}(),V=B&&B.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ae(e){return function(t){return t?.[e]}}function oe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function se(e){return function(t){return e(t)}}function ce(e,t){return e?.[t]}function W(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=L[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_e=pe.toString,ve=me.hasOwnProperty,G=me.toString,ye=RegExp(`^`+_e.call(ve).replace(te,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=L.Symbol,xe=L.Uint8Array,Se=ue(Object.getPrototypeOf,Object),Ce=Object.create,we=me.propertyIsEnumerable,K=fe.splice,q=ue(Object.keys,Object),Te=Ft(L,`DataView`),J=Ft(L,`Map`),Ee=Ft(L,`Promise`),De=Ft(L,`Set`),Oe=Ft(L,`WeakMap`),ke=Ft(Object,`create`),Ae=qt(Te),je=qt(J),Me=qt(Ee),Ne=qt(De),Pe=qt(Oe),Fe=be?be.prototype:void 0,Ie=Fe?Fe.valueOf:void 0,Le=Fe?Fe.toString:void 0;function Re(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ze(){this.__data__=ke?ke(null):{}}function Be(e){return this.has(e)&&delete this.__data__[e]}function Ve(e){var t=this.__data__;if(ke){var r=t[e];return r===n?void 0:r}return ve.call(t,e)?t[e]:void 0}function Y(e){var t=this.__data__;return ke?t[e]!==void 0:ve.call(t,e)}function X(e,t){var r=this.__data__;return r[e]=ke&&t===void 0?n:t,this}Re.prototype.clear=ze,Re.prototype.delete=Be,Re.prototype.get=Ve,Re.prototype.has=Y,Re.prototype.set=X;function He(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(){this.__data__=[]}function We(e){var t=this.__data__,n=ut(t,e);return n<0?!1:(n==t.length-1?t.pop():K.call(t,n,1),!0)}function Ge(e){var t=this.__data__,n=ut(t,e);return n<0?void 0:t[n][1]}function Ke(e){return ut(this.__data__,e)>-1}function qe(e,t){var n=this.__data__,r=ut(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}He.prototype.clear=Ue,He.prototype.delete=We,He.prototype.get=Ge,He.prototype.has=Ke,He.prototype.set=qe;function Je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ye(){this.__data__={hash:new Re,map:new(J||He),string:new Re}}function Xe(e){return Nt(this,e).delete(e)}function Ze(e){return Nt(this,e).get(e)}function Qe(e){return Nt(this,e).has(e)}function $e(e,t){return Nt(this,e).set(e,t),this}Je.prototype.clear=Ye,Je.prototype.delete=Xe,Je.prototype.get=Ze,Je.prototype.has=Qe,Je.prototype.set=$e;function et(e){var t=-1,n=e?e.length:0;for(this.__data__=new Je;++t<n;)this.add(e[t])}function tt(e){return this.__data__.set(e,n),this}function nt(e){return this.__data__.has(e)}et.prototype.add=et.prototype.push=tt,et.prototype.has=nt;function rt(e){this.__data__=new He(e)}function it(){this.__data__=new He}function at(e){return this.__data__.delete(e)}function ot(e){return this.__data__.get(e)}function st(e){return this.__data__.has(e)}function ct(e,t){var n=this.__data__;if(n instanceof He){var r=n.__data__;if(!J||r.length<199)return r.push([e,t]),this;n=this.__data__=new Je(r)}return n.set(e,t),this}rt.prototype.clear=it,rt.prototype.delete=at,rt.prototype.get=ot,rt.prototype.has=st,rt.prototype.set=ct;function lt(e,t){var n=Xt(e)||Yt(e)?oe(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||ve.call(e,a))&&(!i||a!=`length`&&!Rt(a,r))&&n.push(a);return n}function ut(e,t){for(var n=e.length;n--;)if(Z(e[n][0],t))return n;return-1}function dt(e){return en(e)?Ce(e):{}}var ft=kt();function pt(e,t){return e&&ft(e,t,cn)}function mt(e,t){t=zt(t,e)?[t]:Ot(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kt(t[n++])];return n&&n==r?e:void 0}function ht(e){return G.call(e)}function gt(e,t){return e!=null&&t in Object(e)}function _t(e,t,n,r,i){return e===t?!0:e==null||t==null||!en(e)&&!tn(t)?e!==e&&t!==t:vt(e,t,_t,n,r,i)}function vt(e,t,n,r,o,s){var c=Xt(e),l=Xt(t),u=a,d=a;c||(u=It(e),u=u==i?f:u),l||(d=It(t),d=d==i?f:d);var p=u==f&&!W(e),m=d==f&&!W(t),h=u==d;if(h&&!p)return s||=new rt,c||rn(e)?At(e,t,n,r,o,s):jt(e,t,u,n,r,o,s);if(!(o&2)){var g=p&&ve.call(e,`__wrapped__`),_=m&&ve.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new rt,n(v,y,r,o,s)}}return h?(s||=new rt,Mt(e,t,n,r,o,s)):!1}function yt(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new rt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?_t(u,l,r,3,d):f))return!1}}return!0}function bt(e){return!en(e)||Vt(e)?!1:(Qt(e)||W(e)?ye:ne).test(qt(e))}function xt(e){return tn(e)&&$t(e.length)&&!!P[G.call(e)]}function St(e){return typeof e==`function`?e:e==null?un:typeof e==`object`?Xt(e)?Tt(e[0],e[1]):wt(e):dn(e)}function Ct(e){if(!Ht(e))return q(e);var t=[];for(var n in Object(e))ve.call(e,n)&&n!=`constructor`&&t.push(n);return t}function wt(e){var t=Pt(e);return t.length==1&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||yt(n,e,t)}}function Tt(e,t){return zt(e)&&Ut(t)?Wt(Kt(e),t):function(n){var r=on(n,e);return r===void 0&&r===t?sn(n,e):_t(t,r,void 0,3)}}function Et(e){return function(t){return mt(t,e)}}function Dt(e){if(typeof e==`string`)return e;if(nn(e))return Le?Le.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ot(e){return Xt(e)?e:Gt(e)}function kt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function At(e,t,n,r,i,a){var o=i&2,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new et:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!U(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===m||n(p,m,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function jt(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new xe(e),new xe(t)));case o:case s:case d:return Z(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=le;case h:var p=a&2;if(f||=de,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;a|=1,l.set(e,t);var x=At(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Ie)return Ie.call(e)==Ie.call(t)}return!1}function Mt(e,t,n,r,i,a){var o=i&2,s=cn(e),c=s.length;if(c!=cn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ve.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function Nt(e,t){var n=e.__data__;return Bt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Pt(e){for(var t=cn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ut(i)]}return t}function Ft(e,t){var n=ce(e,t);return bt(n)?n:void 0}var It=ht;(Te&&It(new Te(/* @__PURE__ */ new ArrayBuffer(1)))!=b||J&&It(new J)!=u||Ee&&It(Ee.resolve())!=p||De&&It(new De)!=h||Oe&&It(new Oe)!=v)&&(It=function(e){var t=G.call(e),n=t==f?e.constructor:void 0,r=n?qt(n):void 0;if(r)switch(r){case Ae:return b;case je:return u;case Me:return p;case Ne:return h;case Pe:return v}return t});function Lt(e,t,n){t=zt(t,e)?[t]:Ot(t);for(var r,i=-1,a=t.length;++i<a;){var o=Kt(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&$t(a)&&Rt(o,a)&&(Xt(e)||Yt(e))}function Rt(e,t){return t??=r,!!t&&(typeof e==`number`||re.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t){if(Xt(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||nn(e)?!0:j.test(e)||!A.test(e)||t!=null&&e in Object(t)}function Bt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Vt(e){return!!ge&&ge in e}function Ht(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function Ut(e){return e===e&&!en(e)}function Wt(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var Gt=Jt(function(e){e=an(e);var t=[];return M.test(e)&&t.push(``),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function Kt(e){if(typeof e==`string`||nn(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function qt(e){if(e!=null){try{return _e.call(e)}catch{}try{return e+``}catch{}}return``}function Jt(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Jt.Cache||Je),n}Jt.Cache=Je;function Z(e,t){return e===t||e!==e&&t!==t}function Yt(e){return Zt(e)&&ve.call(e,`callee`)&&(!we.call(e,`callee`)||G.call(e)==i)}var Xt=Array.isArray;function Q(e){return e!=null&&$t(e.length)&&!Qt(e)}function Zt(e){return tn(e)&&Q(e)}function Qt(e){var t=en(e)?G.call(e):``;return t==l||t==`[object GeneratorFunction]`}function $t(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function en(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function tn(e){return!!e&&typeof e==`object`}function nn(e){return typeof e==`symbol`||tn(e)&&G.call(e)==_}var rn=V?se(V):xt;function an(e){return e==null?``:Dt(e)}function on(e,t,n){var r=e==null?void 0:mt(e,t);return r===void 0?n:r}function sn(e,t){return e!=null&&Lt(e,t,gt)}function cn(e){return Q(e)?lt(e):Ct(e)}function ln(e,t,n){var r=Xt(e)||rn(e);if(t=St(t,4),n==null){if(r||en(e)){var i=e.constructor;n=r?Xt(e)?new i:[]:Qt(i)?dt(Se(e)):{}}else n={}}return(r?H:pt)(e,function(e,r,i){return t(n,e,r,i)}),n}function un(e){return e}function dn(e){return zt(e)?ae(Kt(e)):Et(e)}t.exports=ln})),Ot=/* @__PURE__ */ e.t(((e,t)=>{var n;if(typeof require==`function`)try{n={clone:St(),constant:te(),each:N(),filter:Ct(),has:wt(),isArray:Array.isArray,isEmpty:ne(),isFunction:re(),isUndefined:P(),keys:Tt(),map:Et(),reduce:F(),size:z(),transform:Dt(),union:I(),values:L()}}catch{}n||=window._,t.exports=n})),kt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=o;var r=`\0`,i=`\0`,a=``;function o(e){this._isDirected=!n.has(e,`directed`)||e.directed,this._isMultigraph=n.has(e,`multigraph`)?e.multigraph:!1,this._isCompound=n.has(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return n.keys(this._nodes)},o.prototype.sources=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._in[t])})},o.prototype.sinks=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._out[t])})},o.prototype.setNodes=function(e,t){var r=arguments,i=this;return n.each(e,function(e){r.length>1?i.setNode(e,t):i.setNode(e)}),this},o.prototype.setNode=function(e,t){return n.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return n.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(n.has(this._nodes,e)){var r=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),n.each(n.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],n.each(n.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(n.isUndefined(t))t=i;else{t+=``;for(var r=t;!n.isUndefined(r);r=this.parent(r))if(r===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},o.prototype.children=function(e){if(n.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else if(e===i)return this.nodes();else if(this.hasNode(e))return[]},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return n.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return n.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return n.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;n.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),n.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var i={};function a(e){var n=r.parent(e);return n===void 0||t.hasNode(n)?(i[e]=n,n):n in i?i[n]:a(n)}return this._isCompound&&n.each(t.nodes(),function(e){t.setParent(e,a(e))}),t},o.prototype.setDefaultEdgeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return n.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var r=this,i=arguments;return n.reduce(e,function(e,n){return i.length>1?r.setEdge(e,n,t):r.setEdge(e,n),n}),this},o.prototype.setEdge=function(){var e,t,r,i,a=!1,o=arguments[0];typeof o==`object`&&o&&`v`in o?(e=o.v,t=o.w,r=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=``+e,t=``+t,n.isUndefined(r)||(r=``+r);var c=l(this._isDirected,e,t,r);if(n.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=i),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[c]=a?i:this._defaultEdgeLabelFn(e,t,r);var d=u(this._isDirected,e,t,r);return e=d.v,t=d.w,Object.freeze(d),this._edgeObjs[c]=d,s(this._preds[t],e),s(this._sucs[e],t),this._in[t][c]=d,this._out[e][c]=d,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,r){var i=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,r);return n.has(this._edgeLabels,i)},o.prototype.removeEdge=function(e,t,n){var r=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var r=this._in[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.v===t}):i}},o.prototype.outEdges=function(e,t){var r=this._out[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.w===t}):i}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))};function s(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function l(e,t,i,o){var s=``+t,c=``+i;if(!e&&s>c){var l=s;s=c,c=l}return s+a+c+a+(n.isUndefined(o)?r:o)}function u(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function d(e,t){return l(e,t.v,t.w,t.name)}})),At=/* @__PURE__ */ e.t(((e,t)=>{t.exports=`2.1.9-patch.3`})),jt=/* @__PURE__ */ e.t(((e,t)=>{t.exports={Graph:kt(),version:At()}})),Mt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot(),r=kt();t.exports={write:i,read:s};function i(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:o(e)};return n.isUndefined(e.graph())||(t.value=n.clone(e.graph())),t}function a(e){return n.map(e.nodes(),function(t){var r=e.node(t),i=e.parent(t),a={v:t};return n.isUndefined(r)||(a.value=r),n.isUndefined(i)||(a.parent=i),a})}function o(e){return n.map(e.edges(),function(t){var r=e.edge(t),i={v:t.v,w:t.w};return n.isUndefined(t.name)||(i.name=t.name),n.isUndefined(r)||(i.value=r),i})}function s(e){var t=new r(e.options).setGraph(e.value);return n.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),n.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}})),Nt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=r;function r(e){var t={},r=[],i;function a(r){n.has(t,r)||(t[r]=!0,i.push(r),n.each(e.successors(r),a),n.each(e.predecessors(r),a))}return n.each(e.nodes(),function(e){i=[],a(e),i.length&&r.push(i)}),r}})),Pt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=r;function r(){this._arr=[],this._keyIndices={}}r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(e){return e.key})},r.prototype.has=function(e){return n.has(this._keyIndices,e)},r.prototype.priority=function(e){var t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority},r.prototype.min=function(){if(this.size()===0)throw Error(`Queue underflow`);return this._arr[0].key},r.prototype.add=function(e,t){var r=this._keyIndices;if(e=String(e),!n.has(r,e)){var i=this._arr,a=i.length;return r[e]=a,i.push({key:e,priority:t}),this._decrease(a),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},r.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error(`New priority is greater than current priority. Key: `+e+` Old: `+this._arr[n].priority+` New: `+t);this._arr[n].priority=t,this._decrease(n)},r.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},r.prototype._decrease=function(e){for(var t=this._arr,n=t[e].priority,r;e!==0&&(r=e>>1,!(t[r].priority<n));)this._swap(e,r),e=r},r.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],a=n[t];n[e]=a,n[t]=i,r[a.key]=e,r[i.key]=t}})),Ft=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot(),r=Pt();t.exports=a;var i=n.constant(1);function a(e,t,n,r){return o(e,String(t),n||i,r||function(t){return e.outEdges(t)})}function o(e,t,n,i){var a={},o=new r,s,c,l=function(e){var t=e.v===s?e.w:e.v,r=a[t],i=n(e),l=c.distance+i;if(i<0)throw Error(`dijkstra does not allow negative edge weights. Bad edge: `+e+` Weight: `+i);l<r.distance&&(r.distance=l,r.predecessor=s,o.decrease(t,l))};for(e.nodes().forEach(function(e){var n=e===t?0:1/0;a[e]={distance:n},o.add(e,n)});o.size()>0&&(s=o.removeMin(),c=a[s],c.distance!==1/0);)i(s).forEach(l);return a}})),It=/* @__PURE__ */ e.t(((e,t)=>{var n=Ft(),r=Ot();t.exports=i;function i(e,t,i){return r.transform(e.nodes(),function(r,a){r[a]=n(e,a,t,i)},{})}})),Lt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=r;function r(e){var t=0,r=[],i={},a=[];function o(s){var c=i[s]={onStack:!0,lowlink:t,index:t++};if(r.push(s),e.successors(s).forEach(function(e){n.has(i,e)?i[e].onStack&&(c.lowlink=Math.min(c.lowlink,i[e].index)):(o(e),c.lowlink=Math.min(c.lowlink,i[e].lowlink))}),c.lowlink===c.index){var l=[],u;do u=r.pop(),i[u].onStack=!1,l.push(u);while(s!==u);a.push(l)}}return e.nodes().forEach(function(e){n.has(i,e)||o(e)}),a}})),Rt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot(),r=Lt();t.exports=i;function i(e){return n.filter(r(e),function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}})),zt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=i;var r=n.constant(1);function i(e,t,n){return a(e,t||r,n||function(t){return e.outEdges(t)})}function a(e,t,n){var r={},i=e.nodes();return i.forEach(function(e){r[e]={},r[e][e]={distance:0},i.forEach(function(t){e!==t&&(r[e][t]={distance:1/0})}),n(e).forEach(function(n){var i=n.v===e?n.w:n.v,a=t(n);r[e][i]={distance:a,predecessor:e}})}),i.forEach(function(e){var t=r[e];i.forEach(function(n){var a=r[n];i.forEach(function(n){var r=a[e],i=t[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)})})}),r}})),Bt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=r,r.CycleException=i;function r(e){var t={},r={},a=[];function o(s){if(n.has(r,s))throw new i;n.has(t,s)||(r[s]=!0,t[s]=!0,n.each(e.predecessors(s),o),delete r[s],a.push(s))}if(n.each(e.sinks(),o),n.size(t)!==e.nodeCount())throw new i;return a}function i(){}i.prototype=/* @__PURE__ */ Error()})),Vt=/* @__PURE__ */ e.t(((e,t)=>{var n=Bt();t.exports=r;function r(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}})),Ht=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot();t.exports=r;function r(e,t,r){n.isArray(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return n.each(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);i(e,t,r===`post`,s,a,o)}),o}function i(e,t,r,a,o,s){n.has(a,t)||(a[t]=!0,r||s.push(t),n.each(o(t),function(t){i(e,t,r,a,o,s)}),r&&s.push(t))}})),Ut=/* @__PURE__ */ e.t(((e,t)=>{var n=Ht();t.exports=r;function r(e,t){return n(e,t,`post`)}})),Wt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ht();t.exports=r;function r(e,t){return n(e,t,`pre`)}})),Gt=/* @__PURE__ */ e.t(((e,t)=>{var n=Ot(),r=kt(),i=Pt();t.exports=a;function a(e,t){var a=new r,o={},s=new i,c;function l(e){var n=e.v===c?e.w:e.v,r=s.priority(n);if(r!==void 0){var i=t(e);i<r&&(o[n]=c,s.decrease(n,i))}}if(e.nodeCount()===0)return a;n.each(e.nodes(),function(e){s.add(e,1/0),a.setNode(e)}),s.decrease(e.nodes()[0],0);for(var u=!1;s.size()>0;){if(c=s.removeMin(),n.has(o,c))a.setEdge(c,o[c]);else if(u)throw Error(`Input graph is not connected: `+e);else u=!0;e.nodeEdges(c).forEach(l)}return a}})),Kt=/* @__PURE__ */ e.t(((e,t)=>{t.exports={components:Nt(),dijkstra:Ft(),dijkstraAll:It(),findCycles:Rt(),floydWarshall:zt(),isAcyclic:Vt(),postorder:Ut(),preorder:Wt(),prim:Gt(),tarjan:Lt(),topsort:Bt()}})),qt=/* @__PURE__ */ e.t(((e,t)=>{var n=jt();t.exports={Graph:n.Graph,json:Mt(),alg:Kt(),version:n.version}})),Jt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`ffffffff-ffff-ffff-ffff-ffffffffffff`})),Z=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`00000000-0000-0000-0000-000000000000`})),Yt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i})),Xt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Yt();function n(e){return typeof e==`string`&&t.default.test(e)}e.default=n})),Q=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Xt();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);let n;return Uint8Array.of((n=parseInt(e.slice(0,8),16))>>>24,n>>>16&255,n>>>8&255,n&255,(n=parseInt(e.slice(9,13),16))>>>8,n&255,(n=parseInt(e.slice(14,18),16))>>>8,n&255,(n=parseInt(e.slice(19,23),16))>>>8,n&255,(n=parseInt(e.slice(24,36),16))/1099511627776&255,n/4294967296&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255)}e.default=n})),Zt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unsafeStringify=void 0;let t=Xt(),n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function r(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+`-`+n[e[t+4]]+n[e[t+5]]+`-`+n[e[t+6]]+n[e[t+7]]+`-`+n[e[t+8]]+n[e[t+9]]+`-`+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}e.unsafeStringify=r;function i(e,n=0){let i=r(e,n);if(!(0,t.default)(i))throw TypeError(`Stringified UUID is invalid`);return i}e.default=i})),Qt=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto"),n=/* @__PURE__ */ new Uint8Array(256),r=n.length;function i(){return r>n.length-16&&((0,t.randomFillSync)(n),r=0),n.slice(r,r+=16)}e.default=i})),$t=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV1State=void 0;let t=Qt(),n=Zt(),r={};function i(e,i,s){let c,l=e?._v6??!1;if(e){let t=Object.keys(e);t.length===1&&t[0]===`_v6`&&(e=void 0)}if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.nsecs,e.clockseq,e.node,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.nsecs,l?void 0:r.clockseq,l?void 0:r.node,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}e.updateV1State=a;function o(e,t,n,r,i,a,o=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!a)a=/* @__PURE__ */ new Uint8Array(16),o=0;else if(o<0||o+16>a.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=0xb1d069b5400;let s=((t&268435455)*1e4+n)%4294967296;a[o++]=s>>>24&255,a[o++]=s>>>16&255,a[o++]=s>>>8&255,a[o++]=s&255;let c=t/4294967296*1e4&268435455;a[o++]=c>>>8&255,a[o++]=c&255,a[o++]=c>>>24&15|16,a[o++]=c>>>16&255,a[o++]=r>>>8|128,a[o++]=r&255;for(let e=0;e<6;++e)a[o++]=i[e];return a}e.default=i})),en=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Q(),n=Zt();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),tn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto");function n(e){return Array.isArray(e)?e=Buffer.from(e):typeof e==`string`&&(e=Buffer.from(e,`utf8`)),(0,t.createHash)(`md5`).update(e).digest()}e.default=n})),nn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=e.stringToBytes=void 0;let t=Q(),n=Zt();function r(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}e.stringToBytes=r,e.DNS=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,e.URL=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function i(e,i,a,o,s,c){let l=typeof a==`string`?r(a):a,u=typeof o==`string`?(0,t.default)(o):o;if(typeof o==`string`&&(o=(0,t.default)(o)),o?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=i(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return(0,n.unsafeStringify)(d)}e.default=i})),rn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=tn(),n=nn();var r=nn();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(48,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),an=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={randomUUID:require("crypto").randomUUID}})),on=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=an(),n=Qt(),r=Zt();function i(e,i,a){if(t.default.randomUUID&&!i&&!e)return t.default.randomUUID();e||={};let o=e.random??e.rng?.()??(0,n.default)();if(o.length<16)throw Error(`Random bytes length must be >= 16`);if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(a||=0,a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[a+e]=o[e];return i}return(0,r.unsafeStringify)(o)}e.default=i})),sn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require("crypto");function n(e){return Array.isArray(e)?e=Buffer.from(e):typeof e==`string`&&(e=Buffer.from(e,`utf8`)),(0,t.createHash)(`sha1`).update(e).digest()}e.default=n})),cn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=sn(),n=nn();var r=nn();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(80,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),ln=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Zt(),n=$t(),r=en();function i(e,i,a){e??={},a??=0;let o=(0,n.default)({...e,_v6:!0},/* @__PURE__ */ new Uint8Array(16));if(o=(0,r.default)(o),i){if(a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;e++)i[a+e]=o[e];return i}return(0,t.unsafeStringify)(o)}e.default=i})),un=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Q(),n=Zt();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),dn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV7State=void 0;let t=Qt(),n=Zt(),r={};function i(e,i,s){let c;if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.seq,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.seq,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}e.updateV7State=a;function o(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=/* @__PURE__ */ new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}e.default=i})),fn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Xt();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}e.default=n})),pn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var t=Jt();Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return t.default}});var n=Z();Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return n.default}});var r=Q();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r.default}});var i=Zt();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.default}});var a=$t();Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return a.default}});var o=en();Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return o.default}});var s=rn();Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return s.default}});var c=on();Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return c.default}});var l=cn();Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}});var u=ln();Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return u.default}});var d=un();Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var f=dn();Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return f.default}});var p=Xt();Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return p.default}});var m=fn();Object.defineProperty(e,"version",{enumerable:!0,get:function(){return m.default}})})),mn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extractCorrectIdentifierBySemver=e.extractNameAndIdentifier=void 0;let t=require("semver");e.extractNameAndIdentifier=e=>{let t,n;if(e.includes(`@`)){let r=e.indexOf(`@`,1);t=e.slice(0,r),n=e.slice(r+1)}else t=e,n=`unknown`;return{name:t,identifier:n}},e.extractCorrectIdentifierBySemver=(n,r)=>{let{name:i,identifier:a}=(0,e.extractNameAndIdentifier)(r);return isNaN(parseInt(a[0]))?n.filter(e=>e.startsWith(i)).filter(n=>t.satisfies((0,e.extractNameAndIdentifier)(n).identifier,a)).map(t=>({name:t,identifier:(0,e.extractNameAndIdentifier)(t).identifier})).reduce((e,n)=>t.gt(n.identifier,e.identifier)?n:e).name:r}})),hn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LockParserBase=void 0;let t=bt(),r=ne(),i=xt(),a=qt(),o=pn(),s=pe(),c=n.n(),l=mn(),u=yt(),d=q(),f=c(`snyk-nodejs-parser`);e.LockParserBase=class{type;treeSizeLimit;pathDelimiter=`|`;constructor(e,t){this.type=e,this.treeSizeLimit=t}async getDependencyTree(e,n,i=!1,o=!0,c,l){if(n.type!==this.type)throw new d.InvalidUserInputError("Unsupported lockfile provided. Please provide `package-lock.json`.");let f=n,p={dependencies:{},hasDevDependencies:!r(e.devDependencies),name:e.name,size:1,version:e.version||``,...c&&{labels:{"npm:scope":`unknown`}}},m=e?.engines?.node;if(m&&(p.meta||={},p.meta.nodeVersion=m),r(e.dependencies)&&!i)return p;let h=this.getDepMap(f,e.resolutions,c,l),g=this.createGraphOfDependencies(h,o),_={};if(!a.alg.isAcyclic(g)){let e=a.alg.findCycles(g);for(let t of e)_={..._,...this.removeCycle(t,h,g)}}let{depTrees:v,depTreesSizes:y}=await this.createDepTrees(h,g,c),b=(0,u.getTopLevelDeps)({targetFile:e,includeDev:i,includePeerDeps:n.type===u.LockfileType.npm7,applyYarn2Resolutions:n.type===u.LockfileType.yarn2});for(let t of Object.keys(e.aliases??[])){let n=e.aliases[t];v[n.aliasName]={...v[n.aliasName],name:n.aliasTargetDepName,labels:{...v[n.aliasName].labels,alias:n}}}let x=1;for(let e of b){if(x>this.treeSizeLimit)throw new d.TreeSizeLimitError;let n=this.getDepTreeKey(e),r=_[n]||n;if(v[r])p.dependencies[e.name]=e.dev?this.setDevDepRec(t(v[r])):v[r],x+=y[r],s.eventLoopSpinner.isStarving()&&await s.eventLoopSpinner.spin();else if(/^file:/.test(e.version))p.dependencies[e.name]=(0,u.createDepTreeDepFromDep)(e,c),x++;else{if(o)throw new d.OutOfSyncError(e.name,this.type);p.dependencies[e.name]=(0,u.createDepTreeDepFromDep)(e,c),p.dependencies[e.name].labels||(p.dependencies[e.name].labels={}),p.dependencies[e.name].labels.missingLockFileEntry=`true`,x++}}return p.size=x,p}setDevDepRec(e,t){for(let[n,r]of i(e.dependencies))e.dependencies[n]=this.setDevDepRec(r,t);return e.labels={...e.labels,scope:u.Scope.dev,...t&&{"npm:scope":u.Scope.dev}},e}removeCycle(e,t,n){let r=(i,a,o,s)=>{let c=n.inEdges(i).filter(e=>o.includes(e.v));for(let l of c){let c=l.v,u=this.cloneNodeWithoutEdges(c,t,n);n.setEdge(u,s),a.includes(c)?(t[u].labels||(t[u].labels={}),t[u].labels.pruned=`cyclic`):(r(c,[...a,i],o,u),this.cloneAcyclicNodeEdges(c,u,e,n,{inEdges:!0,outEdges:!1}))}},i={};for(let a of e){let o=this.cloneNodeWithoutEdges(a,t,n);i[a]=o,r(a,[],e,o),this.cloneAcyclicNodeEdges(a,o,e,n,{inEdges:!0,outEdges:!0})}for(let t of e)n.removeNode(t);return i}cloneAcyclicNodeEdges(e,t,n,r,{inEdges:i,outEdges:a}){let o=r.nodeEdges(e);if(a){let e=o.filter(e=>!n.includes(e.w));for(let n of e){let e=n.w;r.setEdge(t,e)}}if(i){let e=o.filter(e=>!n.includes(e.v));for(let n of e){let e=n.v;r.setEdge(e,t)}}}cloneNodeWithoutEdges(e,n,r){let i=e+(0,o.v4)();return n[i]=t(n[e]),r.setNode(i),i}createGraphOfDependencies(e,t=!0){let n=new a.Graph;for(let t of Object.keys(e))n.setNode(t);for(let[r,i]of Object.entries(e))for(let a of i.requires){let i=this.findDepsPath(r,a,e,t);n.setEdge(i,r)}return n}findDepsPath(e,t,n,r=!0){let i=e.split(this.pathDelimiter);for(;i.length;){let e=i.concat(t).join(this.pathDelimiter);if(n[e])return e;i.pop()}if(!n[t]&&(f(`Dependency ${t} not found`),r))throw new d.OutOfSyncError(t,this.type);return t}async createDepTrees(e,t,n){if(!a.alg.isAcyclic(t))throw Error(`Cycles were not removed from graph.`);let r={},i={},o=a.alg.topsort(t);for(;o.length;){let a=o.shift(),c=e[a],u=1;if(!c){f(`Missing entry for ${a}`);continue}for(let e of t.predecessors(a)){let t=r[e];if(c.dependencies||={},t)u+=i[e];else{f(`Missing entry for ${e}`);let{name:r,identifier:i}=(0,l.extractNameAndIdentifier)(e);t={name:r,version:i,dependencies:{},labels:{missingLockFileEntry:`true`,...c.labels?.scope&&{scope:c.labels.scope},...n&&c.labels?.scope&&{"npm:scope":c.labels.scope}}},u+=1}c.dependencies[t.name]=t}let d={labels:c.labels,name:c.name,version:c.version};c.dependencies&&(d.dependencies=c.dependencies),r[a]=d,i[a]=u,s.eventLoopSpinner.isStarving()&&await s.eventLoopSpinner.spin()}return{depTrees:r,depTreesSizes:i}}getDepMap(e,t,n,r){throw Error(`Not implemented`)}getDepTreeKey(e){throw Error(`Not implemented`)}}})),gn=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object WeakMap]`,_=`[object ArrayBuffer]`,v=`[object DataView]`,y=`[object Float32Array]`,b=`[object Float64Array]`,x=`[object Int8Array]`,S=`[object Int16Array]`,C=`[object Int32Array]`,w=`[object Uint8Array]`,T=`[object Uint8ClampedArray]`,E=`[object Uint16Array]`,D=`[object Uint32Array]`,O=/[\\^$.*+?()[\]{}|]/g,k=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,j={};j[y]=j[b]=j[x]=j[S]=j[C]=j[w]=j[T]=j[E]=j[D]=!0,j[i]=j[a]=j[_]=j[o]=j[v]=j[s]=j[c]=j[l]=j[u]=j[d]=j[f]=j[p]=j[m]=j[h]=j[g]=!1;var M=typeof global==`object`&&global&&global.Object===Object&&global,ee=typeof self==`object`&&self&&self.Object===Object&&self,te=M||ee||Function(`return this`)(),N=typeof e==`object`&&e&&!e.nodeType&&e,ne=N&&typeof t==`object`&&t&&!t.nodeType&&t,re=ne&&ne.exports===N,P=re&&M.process,F=function(){try{return ne&&ne.require&&ne.require(`util`).types||P&&P.binding&&P.binding(`util`)}catch{}}(),I=F&&F.isTypedArray;function L(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function R(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function z(e){return function(t){return e(t)}}function ie(e,t){return e?.[t]}function B(e,t){return function(n){return e(t(n))}}var V=Array.prototype,H=Function.prototype,U=Object.prototype,ae=te[`__core-js_shared__`],oe=H.toString,se=U.hasOwnProperty,ce=function(){var e=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),W=U.toString,le=oe.call(Object),ue=RegExp(`^`+oe.call(se).replace(O,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),de=re?te.Buffer:void 0,fe=te.Symbol,pe=te.Uint8Array,me=de?de.allocUnsafe:void 0,he=B(Object.getPrototypeOf,Object),ge=Object.create,_e=U.propertyIsEnumerable,ve=V.splice,G=fe?fe.toStringTag:void 0,ye=function(){try{var e=mt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),be=de?de.isBuffer:void 0,xe=Math.max,Se=Date.now,Ce=mt(te,`Map`),we=mt(Object,`create`),K=function(){function e(){}return function(t){if(!Lt(t))return{};if(ge)return ge(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(){this.__data__=we?we(null):{},this.size=0}function J(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Ee(e){var t=this.__data__;if(we){var r=t[e];return r===n?void 0:r}return se.call(t,e)?t[e]:void 0}function De(e){var t=this.__data__;return we?t[e]!==void 0:se.call(t,e)}function Oe(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=we&&t===void 0?n:t,this}q.prototype.clear=Te,q.prototype.delete=J,q.prototype.get=Ee,q.prototype.has=De,q.prototype.set=Oe;function ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(){this.__data__=[],this.size=0}function je(e){var t=this.__data__,n=Je(t,e);return n<0?!1:(n==t.length-1?t.pop():ve.call(t,n,1),--this.size,!0)}function Me(e){var t=this.__data__,n=Je(t,e);return n<0?void 0:t[n][1]}function Ne(e){return Je(this.__data__,e)>-1}function Pe(e,t){var n=this.__data__,r=Je(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}ke.prototype.clear=Ae,ke.prototype.delete=je,ke.prototype.get=Me,ke.prototype.has=Ne,ke.prototype.set=Pe;function Fe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(){this.size=0,this.__data__={hash:new q,map:new(Ce||ke),string:new q}}function Le(e){var t=pt(this,e).delete(e);return this.size-=+!!t,t}function Re(e){return pt(this,e).get(e)}function ze(e){return pt(this,e).has(e)}function Be(e,t){var n=pt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Fe.prototype.clear=Ie,Fe.prototype.delete=Le,Fe.prototype.get=Re,Fe.prototype.has=ze,Fe.prototype.set=Be;function Ve(e){var t=this.__data__=new ke(e);this.size=t.size}function Y(){this.__data__=new ke,this.size=0}function X(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function He(e){return this.__data__.get(e)}function Ue(e){return this.__data__.has(e)}function We(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!Ce||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fe(r)}return n.set(e,t),this.size=n.size,this}Ve.prototype.clear=Y,Ve.prototype.delete=X,Ve.prototype.get=He,Ve.prototype.has=Ue,Ve.prototype.set=We;function Ge(e,t){var n=jt(e),r=!n&&At(e),i=!n&&!r&&Pt(e),a=!n&&!r&&!i&&Bt(e),o=n||r||i||a,s=o?R(e.length,String):[],c=s.length;for(var l in e)(t||se.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||_t(l,c)))&&s.push(l);return s}function Ke(e,t,n){(n!==void 0&&!kt(e[t],n)||n===void 0&&!(t in e))&&Ye(e,t,n)}function qe(e,t,n){var r=e[t];(!(se.call(e,t)&&kt(r,n))||n===void 0&&!(t in e))&&Ye(e,t,n)}function Je(e,t){for(var n=e.length;n--;)if(kt(e[n][0],t))return n;return-1}function Ye(e,t,n){t==`__proto__`&&ye?ye(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Xe=ft();function Ze(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:G&&G in Object(e)?ht(e):Ct(e)}function Qe(e){return Rt(e)&&Ze(e)==i}function $e(e){return!Lt(e)||bt(e)?!1:(Ft(e)?ue:k).test(Ot(e))}function et(e){return Rt(e)&&It(e.length)&&!!j[Ze(e)]}function tt(e){if(!Lt(e))return St(e);var t=xt(e),n=[];for(var r in e)(r!=`constructor`||!t&&se.call(e,r))&&n.push(r);return n}function nt(e,t,n,r,i){e!==t&&Xe(t,function(a,o){if(i||=new Ve,Lt(a))rt(e,t,o,n,nt,r,i);else{var s=r?r(Tt(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Ke(e,o,s)}},Ht)}function rt(e,t,n,r,i,a,o){var s=Tt(e,n),c=Tt(t,n),l=o.get(c);if(l)Ke(e,n,l);else{var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=jt(c),p=!f&&Pt(c),m=!f&&!p&&Bt(c);u=c,f||p||m?jt(s)?u=s:Nt(s)?u=lt(s):p?(d=!1,u=ot(c,!0)):m?(d=!1,u=ct(c,!0)):u=[]:zt(c)||At(c)?(u=s,At(s)?u=Vt(s):(!Lt(s)||Ft(s))&&(u=gt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Ke(e,n,u)}}function it(e,t){return Et(wt(e,t,Gt),e+``)}var at=ye?function(e,t){return ye(e,`toString`,{configurable:!0,enumerable:!1,value:Wt(t),writable:!0})}:Gt;function ot(e,t){if(t)return e.slice();var n=e.length,r=me?me(n):new e.constructor(n);return e.copy(r),r}function st(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function ct(e,t){var n=t?st(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function lt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function ut(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Ye(n,s,c):qe(n,s,c)}return n}function dt(e){return it(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&vt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function ft(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function pt(e,t){var n=e.__data__;return yt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function mt(e,t){var n=ie(e,t);return $e(n)?n:void 0}function ht(e){var t=se.call(e,G),n=e[G];try{e[G]=void 0;var r=!0}catch{}var i=W.call(e);return r&&(t?e[G]=n:delete e[G]),i}function gt(e){return typeof e.constructor==`function`&&!xt(e)?K(he(e)):{}}function _t(e,t){var n=typeof e;return t??=r,!!t&&(n==`number`||n!=`symbol`&&A.test(e))&&e>-1&&e%1==0&&e<t}function vt(e,t,n){if(!Lt(n))return!1;var r=typeof t;return(r==`number`?Mt(n)&&_t(t,n.length):r==`string`&&t in n)?kt(n[t],e):!1}function yt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function bt(e){return!!ce&&ce in e}function xt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||U)}function St(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Ct(e){return W.call(e)}function wt(e,t,n){return t=xe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=xe(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),L(e,this,s)}}function Tt(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var Et=Dt(at);function Dt(e){var t=0,n=0;return function(){var r=Se(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ot(e){if(e!=null){try{return oe.call(e)}catch{}try{return e+``}catch{}}return``}function kt(e,t){return e===t||e!==e&&t!==t}var At=Qe(function(){return arguments}())?Qe:function(e){return Rt(e)&&se.call(e,`callee`)&&!_e.call(e,`callee`)},jt=Array.isArray;function Mt(e){return e!=null&&It(e.length)&&!Ft(e)}function Nt(e){return Rt(e)&&Mt(e)}var Pt=be||Kt;function Ft(e){if(!Lt(e))return!1;var t=Ze(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function It(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function Lt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Rt(e){return typeof e==`object`&&!!e}function zt(e){if(!Rt(e)||Ze(e)!=f)return!1;var t=he(e);if(t===null)return!0;var n=se.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&oe.call(n)==le}var Bt=I?z(I):et;function Vt(e){return ut(e,Ht(e))}function Ht(e){return Mt(e)?Ge(e,!0):tt(e)}var Ut=dt(function(e,t,n){nt(e,t,n)});function Wt(e){return function(){return e}}function Gt(e){return e}function Kt(){return!1}t.exports=Ut})),_n=/* @__PURE__ */ e.t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.async={}))})(n,(function(e){"use strict";function t(e,...t){return(...n)=>e(...t,...n)}function n(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}
/* istanbul ignore file */
var r=typeof queueMicrotask==`function`&&queueMicrotask,i=typeof setImmediate==`function`&&setImmediate,a=typeof process==`object`&&typeof process.nextTick==`function`;function o(e){setTimeout(e,0)}function s(e){return(t,...n)=>e(()=>t(...n))}var c=s(r?queueMicrotask:i?setImmediate:a?process.nextTick:o);function l(e){return f(e)?function(...t){let n=t.pop();return u(e.apply(this,t),n)}:n(function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&typeof r.then==`function`)return u(r,n);n(null,r)})}function u(e,t){return e.then(e=>{d(t,null,e)},e=>{d(t,e&&(e instanceof Error||e.message)?e:Error(e))})}function d(e,t,n){try{e(t,n)}catch(e){c(e=>{throw e},e)}}function f(e){return e[Symbol.toStringTag]===`AsyncFunction`}function p(e){return e[Symbol.toStringTag]===`AsyncGenerator`}function m(e){return typeof e[Symbol.asyncIterator]==`function`}function h(e){if(typeof e!=`function`)throw Error(`expected a function`);return f(e)?l(e):e}function g(e,t){if(t||=e.length,!t)throw Error(`arity is undefined`);function n(...n){return typeof n[t-1]==`function`?e.apply(this,n):new Promise((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}return n}function _(e){return function(t,...n){return g(function(r){var i=this;return e(t,(e,t)=>{h(e).apply(i,n.concat(t))},r)})}}function v(e,t,n,r){t||=[];var i=[],a=0,o=h(n);return e(t,(e,t,n)=>{var r=a++;o(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function y(e){return e&&typeof e.length==`number`&&e.length>=0&&e.length%1==0}let b={};function x(e){function t(...t){if(e!==null){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function S(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function C(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}function w(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}function T(e){var t=e?Object.keys(e):[],n=-1,r=t.length;return function i(){var a=t[++n];return a===`__proto__`?i():n<r?{value:e[a],key:a}:null}}function E(e){if(y(e))return C(e);var t=S(e);return t?w(t):T(e)}function D(e){return function(...t){if(e===null)throw Error(`Callback was already called.`);var n=e;e=null,n.apply(this,t)}}function O(e,t,n,r){let i=!1,a=!1,o=!1,s=0,c=0;function l(){s>=t||o||i||(o=!0,e.next().then(({value:e,done:t})=>{a||i||(o=!1,t?(i=!0,s<=0&&r(null)):(s++,n(e,c,u),c++,l()))}).catch(d))}function u(e,t){if(--s,!a){if(e)return d(e);if(e===!1)i=!0,a=!0;else{if(t===b||i&&s<=0)return i=!0,r(null);l()}}}function d(e){a||(o=!1,i=!0,r(e))}l()}var k=e=>(t,n,r)=>{if(r=x(r),e<=0)throw RangeError(`concurrency limit cannot be less than 1`);if(!t)return r(null);if(p(t))return O(t,e,n,r);if(m(t))return O(t[Symbol.asyncIterator](),e,n,r);var i=E(t),a=!1,o=!1,s=0,c=!1;function l(e,t){if(!o){if(--s,e)a=!0,r(e);else if(e===!1)a=!0,o=!0;else if(t===b||a&&s<=0)return a=!0,r(null);else c||u()}}function u(){for(c=!0;s<e&&!a;){var t=i();if(t===null){a=!0,s<=0&&r(null);return}s+=1,n(t.value,t.key,D(l))}c=!1}u()};function A(e,t,n,r){return k(t)(e,h(n),r)}var j=g(A,4);function M(e,t,n){n=x(n);var r=0,i=0,{length:a}=e,o=!1;a===0&&n(null);function s(e,t){e===!1&&(o=!0),o!==!0&&(e?n(e):(++i===a||t===b)&&n(null))}for(;r<a;r++)t(e[r],r,D(s))}function ee(e,t,n){return j(e,1/0,t,n)}function te(e,t,n){return(y(e)?M:ee)(e,h(t),n)}var N=g(te,3);function ne(e,t,n){return v(N,e,t,n)}var re=g(ne,3),P=_(re);function F(e,t,n){return j(e,1,t,n)}var I=g(F,3);function L(e,t,n){return v(I,e,t,n)}var R=g(L,3),z=_(R);let ie=Symbol(`promiseCallback`);function B(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[ie]=new Promise((n,r)=>{e=n,t=r}),n}function V(e,t,n){typeof t!=`number`&&(n=t,t=null),n=x(n||B());var r=Object.keys(e).length;if(!r)return n(null);t||=r;var i={},a=0,o=!1,s=!1,c=Object.create(null),l=[],u=[],d={};Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))f(t,[n]),u.push(t);else{var r=n.slice(0,n.length-1),i=r.length;i===0?(f(t,n),u.push(t)):(d[t]=i,r.forEach(a=>{if(!e[a])throw Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+r.join(`, `));m(a,()=>{i--,i===0&&f(t,n)})}))}}),v(),p();function f(e,t){l.push(()=>_(e,t))}function p(){if(!o){if(l.length===0&&a===0)return n(null,i);for(;l.length&&a<t;)l.shift()()}}function m(e,t){var n=c[e];n||=c[e]=[],n.push(t)}function g(e){(c[e]||[]).forEach(e=>e()),p()}function _(e,t){if(!s){var r=D((t,...r)=>{if(a--,t===!1)o=!0;else if(r.length<2&&([r]=r),t){var l={};if(Object.keys(i).forEach(e=>{l[e]=i[e]}),l[e]=r,s=!0,c=Object.create(null),o)return;n(t,l)}else i[e]=r,g(e)});a++;var l=h(t[t.length-1]);t.length>1?l(i,r):l(r)}}function v(){for(var e,t=0;u.length;)e=u.pop(),t++,y(e).forEach(e=>{--d[e]===0&&u.push(e)});if(t!==r)throw Error(`async.auto cannot execute tasks due to a recursive dependency`)}function y(t){var n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return n[ie]}var H=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,U=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,ae=/,/,oe=/(=.+)?(\s*)$/;function se(e){let t=``,n=0,r=e.indexOf(`*/`);for(;n<e.length;)if(e[n]===`/`&&e[n+1]===`/`){let t=e.indexOf(`
`,n);n=t===-1?e.length:t}else if(r!==-1&&e[n]===`/`&&e[n+1]===`*`){let i=e.indexOf(`*/`,n);i===-1?(t+=e[n],n++):(n=i+2,r=e.indexOf(`*/`,n))}else t+=e[n],n++;return t}function ce(e){let t=se(e.toString()),n=t.match(H);if(n||=t.match(U),!n)throw Error(`could not parse args in autoInject
Source:
`+t);let[,r]=n;return r.replace(/\s/g,``).split(ae).map(e=>e.replace(oe,``).trim())}function W(e,t){var n={};return Object.keys(e).forEach(t=>{var r=e[t],i,a=f(r),o=!a&&r.length===1||a&&r.length===0;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?s:r);else if(o)n[t]=r;else{if(i=ce(r),r.length===0&&!a&&i.length===0)throw Error(`autoInject task functions require explicit parameters.`);a||i.pop(),n[t]=i.concat(s)}function s(e,t){var n=i.map(t=>e[t]);n.push(t),h(r)(...n)}}),V(n,t)}class le{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,--this.length,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):ue(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):ue(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function ue(e,t){e.length=1,e.head=e.tail=t}function de(e,t,n){if(t==null)t=1;else if(t===0)throw RangeError(`Concurrency must not be zero`);var r=h(e),i=0,a=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){o[e].push(t)}function l(e,t){let n=(...r)=>{u(e,n),t(...r)};o[e].push(n)}function u(e,t){if(!e)return Object.keys(o).forEach(e=>o[e]=[]);if(!t)return o[e]=[];o[e]=o[e].filter(e=>e!==t)}function d(e,...t){o[e].forEach(e=>e(...t))}var f=!1;function p(e,t,n,r){if(r!=null&&typeof r!=`function`)throw Error(`task callback must be a function`);y.started=!0;var i,a;function o(e,...t){if(e)return n?a(e):i();if(t.length<=1)return i(t[0]);i(t)}var s=y._createTaskItem(e,n?o:r||o);if(t?y._tasks.unshift(s):y._tasks.push(s),f||(f=!0,c(()=>{f=!1,y.process()})),n||!r)return new Promise((e,t)=>{i=e,a=t})}function m(e){return function(t,...n){--i;for(var r=0,o=e.length;r<o;r++){var s=e[r],c=a.indexOf(s);c===0?a.shift():c>0&&a.splice(c,1),s.callback(t,...n),t!=null&&d(`error`,t,s.data)}i<=y.concurrency-y.buffer&&d(`unsaturated`),y.idle()&&d(`drain`),y.process()}}function g(e){return e.length===0&&y.idle()?(c(()=>d(`drain`)),!0):!1}let _=e=>t=>{if(!t)return new Promise((t,n)=>{l(e,(e,r)=>{if(e)return n(e);t(r)})});u(e),s(e,t)};var v=!1,y={_tasks:new le,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!1,t)):p(e,!1,!1,t)},pushAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!0,t)):p(e,!1,!0,t)},kill(){u(),y._tasks.empty()},unshift(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!1,t)):p(e,!0,!1,t)},unshiftAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!0,t)):p(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!v){for(v=!0;!y.paused&&i<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var s=y._tasks.shift();e.push(s),a.push(s),t.push(s.data)}i+=1,y._tasks.length===0&&d(`empty`),i===y.concurrency&&d(`saturated`),r(t,D(m(e)))}v=!1}},length(){return y._tasks.length},running(){return i},workersList(){return a},idle(){return y._tasks.length+i===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,c(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:_(`saturated`)},unsaturated:{writable:!1,value:_(`unsaturated`)},empty:{writable:!1,value:_(`empty`)},drain:{writable:!1,value:_(`drain`)},error:{writable:!1,value:_(`error`)}}),y}function fe(e,t){return de(e,1,t)}function pe(e,t,n){return de(e,t,n)}function me(e,t,n,r){r=x(r);var i=h(n);return I(e,(e,n,r)=>{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}var he=g(me,4);function ge(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return typeof r==`function`?e.pop():r=B(),he(t,e,(e,t,r)=>{t.apply(n,e.concat((e,...t)=>{r(e,t)}))},(e,t)=>r(e,...t)),r[ie]}}function _e(...e){return ge(...e.reverse())}function ve(e,t,n,r){return v(k(t),e,n,r)}var G=g(ve,4);function ye(e,t,n,r){var i=h(n);return G(e,t,(e,t)=>{i(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)})}var be=g(ye,4);function xe(e,t,n){return be(e,1/0,t,n)}var Se=g(xe,3);function Ce(e,t,n){return be(e,1,t,n)}var we=g(Ce,3);function K(...e){return function(...t){return t.pop()(null,...e)}}function q(e,t){return(n,r,i,a)=>{var o=!1,s;let c=h(i);n(r,(n,r,i)=>{c(n,(r,a)=>{if(r||r===!1)return i(r);if(e(a)&&!s)return o=!0,s=t(!0,n),i(null,b);i()})},e=>{if(e)return a(e);a(null,o?s:t(!1))})}}function Te(e,t,n){return q(e=>e,(e,t)=>t)(N,e,t,n)}var J=g(Te,3);function Ee(e,t,n,r){return q(e=>e,(e,t)=>t)(k(t),e,n,r)}var De=g(Ee,4);function Oe(e,t,n){return q(e=>e,(e,t)=>t)(k(1),e,t,n)}var ke=g(Oe,3);function Ae(e){return(t,...n)=>h(t)(...n,(t,...n)=>{
/* istanbul ignore else */
typeof console==`object`&&
/* istanbul ignore else */
(t?
/* istanbul ignore else */
console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var je=Ae(`dir`);function Me(e,t,n){n=D(n);var r=h(e),i=h(t),a;function o(e,...t){if(e)return n(e);e!==!1&&(a=t,i(...t,s))}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return s(null,!0)}var Ne=g(Me,3);function Pe(e,t,n){let r=h(t);return Ne(e,(...e)=>{let t=e.pop();r(...e,(e,n)=>t(e,!n))},n)}function Fe(e){return(t,n,r)=>e(t,r)}function Ie(e,t,n){return N(e,Fe(h(t)),n)}var Le=g(Ie,3);function Re(e,t,n,r){return k(t)(e,Fe(h(n)),r)}var ze=g(Re,4);function Be(e,t,n){return ze(e,1,t,n)}var Ve=g(Be,3);function Y(e){return f(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...e)=>{r?c(()=>n(...e)):n(...e)}),e.apply(this,t),r=!1}}function X(e,t,n){return q(e=>!e,e=>!e)(N,e,t,n)}var He=g(X,3);function Ue(e,t,n,r){return q(e=>!e,e=>!e)(k(t),e,n,r)}var We=g(Ue,4);function Ge(e,t,n){return q(e=>!e,e=>!e)(I,e,t,n)}var Ke=g(Ge,3);function qe(e,t,n,r){var i=Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],a=0;a<t.length;a++)i[a]&&n.push(t[a]);r(null,n)})}function Je(e,t,n,r){var i=[];e(t,(e,t,r)=>{n(e,(n,a)=>{if(n)return r(n);a&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function Ye(e,t,n,r){return(y(t)?qe:Je)(e,t,h(n),r)}function Xe(e,t,n){return Ye(N,e,t,n)}var Ze=g(Xe,3);function Qe(e,t,n,r){return Ye(k(t),e,n,r)}var $e=g(Qe,4);function et(e,t,n){return Ye(I,e,t,n)}var tt=g(et,3);function nt(e,t){var n=D(t),r=h(Y(e));function i(e){if(e)return n(e);e!==!1&&r(i)}return i()}var rt=g(nt,2);function it(e,t,n,r){var i=h(n);return G(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,a=0;a<t.length;a++)if(t[a]){var{key:o}=t[a],{val:s}=t[a];i.call(n,o)?n[o].push(s):n[o]=[s]}return r(e,n)})}var at=g(it,4);function ot(e,t,n){return at(e,1/0,t,n)}function st(e,t,n){return at(e,1,t,n)}var ct=Ae(`log`);function lt(e,t,n,r){r=x(r);var i={},a=h(n);return k(t)(e,(e,t,n)=>{a(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}var ut=g(lt,4);function dt(e,t,n){return ut(e,1/0,t,n)}function ft(e,t,n){return ut(e,1,t,n)}function pt(e,t=e=>e){var r=Object.create(null),i=Object.create(null),a=h(e),o=n((e,n)=>{var o=t(...e);o in r?c(()=>n(null,...r[o])):o in i?i[o].push(n):(i[o]=[n],a(...e,(e,...t)=>{e||(r[o]=t);var n=i[o];delete i[o];for(var a=0,s=n.length;a<s;a++)n[a](e,...t)}))});return o.memo=r,o.unmemoized=e,o}
/* istanbul ignore file */
var mt=s(a?process.nextTick:i?setImmediate:o),ht=g((e,t,n)=>{var r=y(t)?[]:{};e(t,(e,t,n)=>{h(e)((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)})},e=>n(e,r))},3);function gt(e,t){return ht(N,e,t)}function _t(e,t,n){return ht(k(t),e,n)}function vt(e,t){var n=h(e);return de((e,t)=>{n(e[0],t)},t,1)}class yt{constructor(){this.heap=[],this.pushCount=-(2**53-1)}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&St(this.heap[e],this.heap[t=xt(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=bt(e))<this.heap.length&&(t+1<this.heap.length&&St(this.heap[t+1],this.heap[t])&&(t+=1),!St(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=xt(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function bt(e){return(e<<1)+1}function xt(e){return(e+1>>1)-1}function St(e,t){return e.priority===t.priority?e.pushCount<t.pushCount:e.priority<t.priority}function Ct(e,t){var n=vt(e,t),{push:r,pushAsync:i}=n;n._tasks=new yt,n._createTaskItem=({data:e,priority:t},n)=>({data:e,priority:t,callback:n});function a(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n.push=function(e,t=0,n){return r(a(e,t),n)},n.pushAsync=function(e,t=0,n){return i(a(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}function wt(e,t){if(t=x(t),!Array.isArray(e))return t(/* @__PURE__ */ TypeError(`First argument to race must be an array of functions`));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)h(e[n])(t)}var Tt=g(wt,2);function Et(e,t,n,r){return he([...e].reverse(),t,n,r)}function Dt(e){var t=h(e);return n(function(e,n){return e.push((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)}),t.apply(this,e)})}function Ot(e){var t;return Array.isArray(e)?t=e.map(Dt):(t={},Object.keys(e).forEach(n=>{t[n]=Dt.call(this,e[n])})),t}function kt(e,t,n,r){let i=h(n);return Ye(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}function At(e,t,n){return kt(N,e,t,n)}var jt=g(At,3);function Mt(e,t,n,r){return kt(k(t),e,n,r)}var Nt=g(Mt,4);function Pt(e,t,n){return kt(I,e,t,n)}var Ft=g(Pt,3);function It(e){return function(){return e}}function Lt(e,t,n){var r={times:5,intervalFunc:It(0)};if(arguments.length<3&&typeof e==`function`?(n=t||B(),t=e):(Rt(r,e),n||=B()),typeof t!=`function`)throw Error(`Invalid arguments for async.retry`);var i=h(t),a=1;function o(){i((e,...t)=>{e!==!1&&(e&&a++<r.times&&(typeof r.errorFilter!=`function`||r.errorFilter(e))?setTimeout(o,r.intervalFunc(a-1)):n(e,...t))})}return o(),n[ie]}function Rt(e,t){if(typeof t==`object`)e.times=+t.times||5,e.intervalFunc=typeof t.interval==`function`?t.interval:It(+t.interval||0),e.errorFilter=t.errorFilter;else if(typeof t==`number`||typeof t==`string`)e.times=+t||5;else throw Error(`Invalid arguments for async.retry`)}function zt(e,t){t||(t=e,e=null);let r=e&&e.arity||t.length;f(t)&&(r+=1);var i=h(t);return n((t,n)=>{(t.length<r-1||n==null)&&(t.push(n),n=B());function a(e){i(...t,e)}return e?Lt(e,a,n):Lt(a,n),n[ie]})}function Bt(e,t){return ht(I,e,t)}function Vt(e,t,n){return q(Boolean,e=>e)(N,e,t,n)}var Ht=g(Vt,3);function Ut(e,t,n,r){return q(Boolean,e=>e)(k(t),e,n,r)}var Wt=g(Ut,4);function Gt(e,t,n){return q(Boolean,e=>e)(I,e,t,n)}var Kt=g(Gt,3);function qt(e,t,n){var r=h(t);return re(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:+(n>r)}}var Jt=g(qt,3);function Z(e,t,r){var i=h(e);return n((n,a)=>{var o=!1,s;function c(){var t=e.name||`anonymous`,n=/* @__PURE__ */ Error(`Callback function "`+t+`" timed out.`);n.code=`ETIMEDOUT`,r&&(n.info=r),o=!0,a(n)}n.push((...e)=>{o||(a(...e),clearTimeout(s))}),s=setTimeout(c,t),i(...n)})}function Yt(e){for(var t=Array(e);e--;)t[e]=e;return t}function Xt(e,t,n,r){var i=h(n);return G(Yt(e),t,i,r)}function Q(e,t,n){return Xt(e,1/0,t,n)}function Zt(e,t,n){return Xt(e,1,t,n)}function Qt(e,t,n,r){arguments.length<=3&&typeof t==`function`&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=x(r||B());var i=h(n);return N(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[ie]}function $t(e,t){var n=null,r;return Ve(e,(e,t)=>{h(e)((e,...i)=>{if(e===!1)return t(e);i.length<2?[r]=i:r=i,n=e,t(e?null:{})})},()=>t(n,r))}var en=g($t);function tn(e){return(...t)=>(e.unmemoized||e)(...t)}function nn(e,t,n){n=D(n);var r=h(t),i=h(e),a=[];function o(e,...t){if(e)return n(e);a=t,e!==!1&&i(s)}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return i(s)}var rn=g(nn,3);function an(e,t,n){let r=h(e);return rn(e=>r((t,n)=>e(t,!n)),t,n)}function on(e,t){if(t=x(t),!Array.isArray(e))return t(/* @__PURE__ */ Error(`First argument to waterfall must be an array of functions`));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,D(i))}function i(i,...a){if(i!==!1){if(i||n===e.length)return t(i,...a);r(a)}}r([])}var sn=g(on),cn={apply:t,applyEach:P,applyEachSeries:z,asyncify:l,auto:V,autoInject:W,cargo:fe,cargoQueue:pe,compose:_e,concat:Se,concatLimit:be,concatSeries:we,constant:K,detect:J,detectLimit:De,detectSeries:ke,dir:je,doUntil:Pe,doWhilst:Ne,each:Le,eachLimit:ze,eachOf:N,eachOfLimit:j,eachOfSeries:I,eachSeries:Ve,ensureAsync:Y,every:He,everyLimit:We,everySeries:Ke,filter:Ze,filterLimit:$e,filterSeries:tt,forever:rt,groupBy:ot,groupByLimit:at,groupBySeries:st,log:ct,map:re,mapLimit:G,mapSeries:R,mapValues:dt,mapValuesLimit:ut,mapValuesSeries:ft,memoize:pt,nextTick:mt,parallel:gt,parallelLimit:_t,priorityQueue:Ct,queue:vt,race:Tt,reduce:he,reduceRight:Et,reflect:Dt,reflectAll:Ot,reject:jt,rejectLimit:Nt,rejectSeries:Ft,retry:Lt,retryable:zt,seq:ge,series:Bt,setImmediate:c,some:Ht,someLimit:Wt,someSeries:Kt,sortBy:Jt,timeout:Z,times:Q,timesLimit:Xt,timesSeries:Zt,transform:Qt,tryEach:en,unmemoize:tn,until:an,waterfall:sn,whilst:rn,all:He,allLimit:We,allSeries:Ke,any:Ht,anyLimit:Wt,anySeries:Kt,find:J,findLimit:De,findSeries:ke,flatMap:Se,flatMapLimit:be,flatMapSeries:we,forEach:Le,forEachSeries:Ve,forEachLimit:ze,forEachOf:N,forEachOfSeries:I,forEachOfLimit:j,inject:he,foldl:he,foldr:Et,select:Ze,selectLimit:$e,selectSeries:tt,wrapSync:l,during:rn,doDuring:Ne};e.all=He,e.allLimit=We,e.allSeries=Ke,e.any=Ht,e.anyLimit=Wt,e.anySeries=Kt,e.apply=t,e.applyEach=P,e.applyEachSeries=z,e.asyncify=l,e.auto=V,e.autoInject=W,e.cargo=fe,e.cargoQueue=pe,e.compose=_e,e.concat=Se,e.concatLimit=be,e.concatSeries=we,e.constant=K,e.default=cn,e.detect=J,e.detectLimit=De,e.detectSeries=ke,e.dir=je,e.doDuring=Ne,e.doUntil=Pe,e.doWhilst=Ne,e.during=rn,e.each=Le,e.eachLimit=ze,e.eachOf=N,e.eachOfLimit=j,e.eachOfSeries=I,e.eachSeries=Ve,e.ensureAsync=Y,e.every=He,e.everyLimit=We,e.everySeries=Ke,e.filter=Ze,e.filterLimit=$e,e.filterSeries=tt,e.find=J,e.findLimit=De,e.findSeries=ke,e.flatMap=Se,e.flatMapLimit=be,e.flatMapSeries=we,e.foldl=he,e.foldr=Et,e.forEach=Le,e.forEachLimit=ze,e.forEachOf=N,e.forEachOfLimit=j,e.forEachOfSeries=I,e.forEachSeries=Ve,e.forever=rt,e.groupBy=ot,e.groupByLimit=at,e.groupBySeries=st,e.inject=he,e.log=ct,e.map=re,e.mapLimit=G,e.mapSeries=R,e.mapValues=dt,e.mapValuesLimit=ut,e.mapValuesSeries=ft,e.memoize=pt,e.nextTick=mt,e.parallel=gt,e.parallelLimit=_t,e.priorityQueue=Ct,e.queue=vt,e.race=Tt,e.reduce=he,e.reduceRight=Et,e.reflect=Dt,e.reflectAll=Ot,e.reject=jt,e.rejectLimit=Nt,e.rejectSeries=Ft,e.retry=Lt,e.retryable=zt,e.select=Ze,e.selectLimit=$e,e.selectSeries=tt,e.seq=ge,e.series=Bt,e.setImmediate=c,e.some=Ht,e.someLimit=Wt,e.someSeries=Kt,e.sortBy=Jt,e.timeout=Z,e.times=Q,e.timesLimit=Xt,e.timesSeries=Zt,e.transform=Qt,e.tryEach=en,e.unmemoize=tn,e.until=an,e.waterfall=sn,e.whilst=rn,e.wrapSync=l,Object.defineProperty(e,"__esModule",{value:!0})}))})),vn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.json=void 0,e.json={stringify:function(e,t,n){return JSON.stringify(e,t||null,n||2)},parse:JSON.parse}})),yn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Memory=void 0;let t=bn();e.Memory=function(e={}){e||={},this.type=`memory`,this.store={},this.mtimes={},this.readOnly=!1,this.loadFrom=e.loadFrom||null,this.logicalSeparator=e.logicalSeparator||`:`,this.parseValues=e.parseValues||!1,this.loadFrom&&(this.store=t.loadFilesSync(this.loadFrom))},e.Memory.prototype.get=function(e){let n=this.store,r=t.path(e,this.logicalSeparator);for(;r.length>0;)if(e=r.shift(),n&&typeof n!=`string`&&n.hasOwnProperty(e))n=n[e];else return;return n},e.Memory.prototype.set=function(e,n){if(this.readOnly)return!1;let r=this.store,i=t.path(e,this.logicalSeparator);if(i.length===0)return!n||typeof n!=`object`?!1:(this.reset(),this.store=n,!0);for(this.mtimes[e]=Date.now();i.length>1;)e=i.shift(),r[e]&&typeof r[e]==`object`||(r[e]={}),r=r[e];return e=i.shift(),this.parseValues&&(n=t.parseValues.call(t,n)),r[e]=n,!0},e.Memory.prototype.clear=function(e){if(this.readOnly)return!1;let n=this.store,r=n,i=t.path(e,this.logicalSeparator);delete this.mtimes[e];for(var a=0;a<i.length-1;a++){if(e=i[a],r=n[e],typeof r!=`function`&&typeof r!=`object`)return!1;n=r}return e=i[a],delete n[e],!0},e.Memory.prototype.merge=function(e,n){if(this.readOnly)return!1;if(typeof n!=`object`||Array.isArray(n)||n===null)return this.set(e,n);let r=this,i=this.store,a=t.path(e,this.logicalSeparator),o=e;for(this.mtimes[e]=Date.now();a.length>1;)e=a.shift(),i[e]||(i[e]={}),i=i[e];return e=a.shift(),typeof i[e]!=`object`||Array.isArray(i[e])?(i[e]=n,!0):Object.keys(n).every(function(e){return r.merge(t.keyed(r.logicalSeparator,o,e),n[e])})},e.Memory.prototype.reset=function(){return!this.readOnly&&(this.mtimes={},this.store={},!0)},e.Memory.prototype.loadSync=function(){return this.store||{}}})),bn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.transform=e.parseValues=e.capitalize=e.merge=e.loadFilesSync=e.loadFiles=e.keyed=e.key=e.path=void 0;let t=require("fs"),n=_n(),r=vn(),i=yn();function a(e,t){return t||=`:`,e==null?[]:e.split(t)}e.path=a;function o(...e){return Array.prototype.slice.call(e).join(`:`)}e.key=o;function s(...e){return Array.prototype.slice.call(e,1).join(e[0])}e.keyed=s;function c(e,i){if(!e)return i(null,{});let a=Array.isArray(e)?{files:e}:e;a.format=a.format||r.json;function o(e,n){t.readFile(e,function(e,t){return e?n(e):n(null,a.format.parse(t.toString()))})}n.map(a.files,o,function(e,t){return e?i(e):i(null,u(t))})}e.loadFiles=c;function l(e){if(!e)return;let n=Array.isArray(e)?{files:e}:e;return n.format=n.format||r.json,u(n.files.map(function(e){return n.format.parse(t.readFileSync(e,`utf8`))}))}e.loadFilesSync=l;function u(e){let t=new i.Memory;return e.forEach(function(e){Object.keys(e).forEach(function(n){t.merge(n,e[n])})}),t.store}e.merge=u;function d(e){return e&&e[0].toUpperCase()+e.slice(1)}e.capitalize=d;function f(e){let t=e;try{t=JSON.parse(e)}catch{e===`undefined`&&(t=void 0)}return t}e.parseValues=f;function p(e,t){return Object.keys(e).map(function(n){let r={key:n,value:e[n]},i=t.call(null,r);if(!i)return null;if(i.key)return i;let a=/* @__PURE__ */ Error(`Transform function passed to store returned an invalid format: `+JSON.stringify(i));throw a.name=`RuntimeError`,a}).filter(function(e){return e!==null}).reduce(function(e,t){return e[t.key]=t.value,e},{})}e.transform=p})),xn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Provider=void 0;let t=_n(),n=bn();e.Provider=function(e={}){e||={},this.stores={},this.sources=[],this.init(e)},[`argv`,`env`].forEach(function(t){e.Provider.prototype[t]=function(){let e=[t].concat(Array.prototype.slice.call(arguments));return this.add.apply(this,e)}}),e.Provider.prototype.file=function(e,t){return arguments.length==1?(t=typeof e==`string`?{file:e}:e,e=`file`):t=typeof t==`string`?{file:t}:t,t.type=`file`,this.add(e,t)},[`defaults`,`overrides`].forEach(function(t){e.Provider.prototype[t]=function(e){return e||={},e.type||(e.type=`literal`),this.add(t,e)}}),e.Provider.prototype.use=function(e,t){t||={};function n(e){return Object.keys(t).every(function(n){return t[n]===e[n]})}let r=this.stores[e],i=r&&!n(r);return(!r||i)&&(i&&this.remove(e),this.add(e,t)),this},e.Provider.prototype.add=function(e,t,r){t||={};let i=t.type||e;if(!Dn().default[n.capitalize(i)])throw Error(`Cannot add store with unknown type: `+i);return this.stores[e]=this.create(i,t,r),this.stores[e].loadSync&&this.stores[e].loadSync(),this},e.Provider.prototype.remove=function(e){return delete this.stores[e],this},e.Provider.prototype.create=function(e,t,r){return new(Dn()).default[n.capitalize(e.toLowerCase())](t,r)},e.Provider.prototype.init=function(e){let t=this;e.type?this.add(e.type,e):e.store?this.add(e.store.name||e.store.type,e.store):e.stores&&Object.keys(e.stores).forEach(function(n){let r=e.stores[n];t.add(r.name||n||r.type,r)}),e.source?this.sources.push(this.create(e.source.type||e.source.name,e.source)):e.sources&&Object.keys(e.sources).forEach(function(n){let r=e.sources[n];t.sources.push(t.create(r.type||r.name||n,r))})},e.Provider.prototype.get=function(e,r){if(typeof e==`function`&&(r=e,e=null),!r)return this._execute(`get`,1,e,r);let i=0,a=Object.keys(this.stores),o=this,s,c=[];t.whilst(function(){return s===void 0&&i<a.length},function(t){let n=o.stores[a[i]];if(i++,n.get.length>=2)return n.get(e,function(e,n){if(e)return t(e);s=n,s&&typeof s==`object`&&!Array.isArray(s)&&(c.push(s),s=void 0),t()});s=n.get(e),s&&typeof s==`object`&&!Array.isArray(s)&&(c.push(s),s=void 0),t()},function(e){return!e&&c.length&&(s=n.merge(c.reverse())),e?r(e):r(null,s)})},e.Provider.prototype.any=function(e,n){if(Array.isArray(e)||(e=Array.prototype.slice.call(arguments),n=e.length>0&&typeof e[e.length-1]==`function`?e.pop():null),!n){let t;for(let r=0;r<e.length;++r)if(t=this._execute(`get`,1,e[r],n),t)return t;return null}let r=0,i,a=this;t.whilst(function(){return!i&&r<e.length},function(t){let n=e[r];r++,a.get(n,function(e,n){e?t(e):(i=n,t())})},function(e){return e?n(e):n(null,i)})},e.Provider.prototype.set=function(e,t,n){return this._execute(`set`,2,e,t,n)},e.Provider.prototype.required=function(e){if(!Array.isArray(e))throw Error(`Incorrect parameter, array expected`);let t=[];if(e.forEach(function(e){this.get(e)===void 0&&t.push(e)},this),t.length)throw Error(`Missing required keys: `+t.join(`, `));return this},e.Provider.prototype.reset=function(e){return this._execute(`reset`,0,e)},e.Provider.prototype.clear=function(e,t){return this._execute(`clear`,1,e,t)},e.Provider.prototype.merge=function(){let e=this,n=Array.prototype.slice.call(arguments),i=typeof n[n.length-1]==`function`&&n.pop(),a=n.pop(),o=n.pop();function s(t,n){return e._execute(`merge`,2,t,a[t],n)}return o?this._execute(`merge`,2,o,a,i):Array.isArray(a)||typeof a!=`object`?r(/* @__PURE__ */ Error(`Cannot merge non-Object into top-level.`),i):t.forEach(Object.keys(a),s,i||function(){})},e.Provider.prototype.load=function(e){let r=this;function i(){let e=Object.keys(r.stores);return e.reverse(),e.map(function(e){return r.stores[e]})}function a(e){if(!e.loadSync)throw Error(`nconf store `+e.type+` has no loadSync() method`);return e.loadSync()}function o(e,t){return!e.load&&!e.loadSync?t(/* @__PURE__ */ Error(`nconf store `+e.type+` has no load() method`)):e.loadSync?t(null,e.loadSync()):e.load(t)}function s(e,r){if(!r)return n.merge(e.map(a));t.map(e,o,function(e,t){return e?r(e):r(null,n.merge(t))})}function c(e){e&&typeof e==`object`&&r.use(`sources`,{type:`literal`,store:e})}function l(){let t=r.sources.splice(0);if(t.reverse(),!e)return c(s(t)),s(i());s(t,function(t,n){return t?e(t):(c(n),s(i(),e))})}return r.sources.length?l():s(i(),e)},e.Provider.prototype.save=function(e,r){!r&&typeof e==`function`&&(r=e,e=null);let i=this,a=Object.keys(this.stores);function o(e,t){let n=i.stores[t];if(n.saveSync){let t=n.saveSync();typeof t==`object`&&t&&e.push(t)}return e}function s(t,n,r){let a=i.stores[n];if(a.save)return a.save(e,function(e,n){if(e)return r(e);typeof n==`object`&&n&&t.push(n),r(null,t)});a.saveSync&&t.push(a.saveSync()),r(null,t)}if(!r)return n.merge(a.reduce(o,[]));t.reduce(a,[],s,function(e,t){return e?r(e):r(null,n.merge(t))})},e.Provider.prototype._execute=function(e,r){let i=Array.prototype.slice.call(arguments,2),a=typeof i[i.length-1]==`function`&&i.pop(),o=[`set`,`clear`,`merge`,`reset`].indexOf(e)!==-1,s=this,c,l=[],u=Object.keys(this.stores);function d(t,n){let a=s.stores[t];return o&&a.readOnly?n():a[e].length>r?a[e].apply(a,i.concat(n)):n(null,a[e].apply(a,i))}return a?t.forEach(u,d,function(e){return e?a(e):a()}):(u.forEach(function(t){if(c===void 0){let n=s.stores[t];if(o&&n.readOnly)return;c=n[e].apply(n,i),c&&e===`get`&&typeof c==`object`&&!Array.isArray(c)&&(l.push(c),c=void 0)}}),l.length&&(c=n.merge(l.reverse())),c)};function r(e,t){if(t)return t(e);throw e}})),Sn=/* @__PURE__ */ e.t(((e,t)=>{function n(e,t){var n=e;return t.slice(0,-1).forEach(function(e){n=n[e]||{}}),t[t.length-1]in n}function r(e){return typeof e==`number`||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function i(e,t){return t===`constructor`&&typeof e[t]==`function`||t===`__proto__`}t.exports=function(e,t){t||={};var a={bools:{},strings:{},unknownFn:null};typeof t.unknown==`function`&&(a.unknownFn=t.unknown),typeof t.boolean==`boolean`&&t.boolean?a.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){a.bools[e]=!0});var o={};function s(e){return o[e].some(function(e){return a.bools[e]})}Object.keys(t.alias||{}).forEach(function(e){o[e]=[].concat(t.alias[e]),o[e].forEach(function(t){o[t]=[e].concat(o[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){a.strings[e]=!0,o[e]&&[].concat(o[e]).forEach(function(e){a.strings[e]=!0})});var c=t.default||{},l={_:[]};function u(e,t){return a.allBools&&/^--[^=]+$/.test(t)||a.strings[e]||a.bools[e]||o[e]}function d(e,t,n){for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(i(r,s))return;r[s]===void 0&&(r[s]={}),(r[s]===Object.prototype||r[s]===Number.prototype||r[s]===String.prototype)&&(r[s]={}),r[s]===Array.prototype&&(r[s]=[]),r=r[s]}var c=t[t.length-1];i(r,c)||((r===Object.prototype||r===Number.prototype||r===String.prototype)&&(r={}),r===Array.prototype&&(r=[]),r[c]===void 0||a.bools[c]||typeof r[c]==`boolean`?r[c]=n:Array.isArray(r[c])?r[c].push(n):r[c]=[r[c],n])}function f(e,t,n){if(!(n&&a.unknownFn&&!u(e,n)&&a.unknownFn(n)===!1)){var i=!a.strings[e]&&r(t)?Number(t):t;d(l,e.split(`.`),i),(o[e]||[]).forEach(function(e){d(l,e.split(`.`),i)})}}Object.keys(a.bools).forEach(function(e){f(e,c[e]!==void 0&&c[e])});var p=[];e.indexOf(`--`)!==-1&&(p=e.slice(e.indexOf(`--`)+1),e=e.slice(0,e.indexOf(`--`)));for(var m=0;m<e.length;m++){var h=e[m],g,_;if(/^--.+=/.test(h)){var v=h.match(/^--([^=]+)=([\s\S]*)$/);g=v[1];var y=v[2];a.bools[g]&&(y=y!==`false`),f(g,y,h)}else if(/^--no-.+/.test(h))g=h.match(/^--no-(.+)/)[1],f(g,!1,h);else if(/^--.+/.test(h))g=h.match(/^--(.+)/)[1],_=e[m+1],_!==void 0&&!/^(-|--)[^-]/.test(_)&&!a.bools[g]&&!a.allBools&&(!o[g]||!s(g))?(f(g,_,h),m+=1):/^(true|false)$/.test(_)?(f(g,_===`true`,h),m+=1):f(g,!a.strings[g]||``,h);else if(/^-[^-]+/.test(h)){for(var b=h.slice(1,-1).split(``),x=!1,S=0;S<b.length;S++)if(_=h.slice(S+2),_===`-`)f(b[S],_,h);else{if(/[A-Za-z]/.test(b[S])&&_[0]===`=`){f(b[S],_.slice(1),h),x=!0;break}if(/[A-Za-z]/.test(b[S])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(_)){f(b[S],_,h),x=!0;break}if(b[S+1]&&b[S+1].match(/\W/)){f(b[S],h.slice(S+2),h),x=!0;break}f(b[S],!a.strings[b[S]]||``,h)}g=h.slice(-1)[0],!x&&g!==`-`&&(e[m+1]&&!/^(-|--)[^-]/.test(e[m+1])&&!a.bools[g]&&(!o[g]||!s(g))?(f(g,e[m+1],h),m+=1):e[m+1]&&/^(true|false)$/.test(e[m+1])?(f(g,e[m+1]===`true`,h),m+=1):f(g,!a.strings[g]||``,h))}else if(a.unknownFn&&a.unknownFn(h)===!1||l._.push(a.strings._||!r(h)?h:Number(h)),t.stopEarly){l._.push.apply(l._,e.slice(m+1));break}}return Object.keys(c).forEach(function(e){n(l,e.split(`.`))||(d(l,e.split(`.`),c[e]),(o[e]||[]).forEach(function(t){d(l,t.split(`.`),c[e])}))}),t[`--`]?l[`--`]=p.slice():p.forEach(function(e){l._.push(e)}),l}})),Cn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Argv=void 0;let t=require("path"),n=require("util"),r=bn(),i=yn(),a=Sn();e.Argv=function(e,t){i.Memory.call(this,e),e||={},this.type=`argv`,this.readOnly=e.readOnly===void 0||e.readOnly,this.options=e,this.usage=t,typeof e.readOnly==`boolean`?(this.readOnly=e.readOnly,delete e.readOnly):this.readOnly=!0,typeof e.parseValues==`boolean`?(this.parseValues=e.parseValues,delete e.parseValues):this.parseValues=!1,typeof e.transform==`function`?(this.transform=e.transform,delete e.transform):this.transform=!1,typeof e.separator==`string`||e.separator instanceof RegExp?(this.separator=e.separator,delete e.separator):this.separator=``},n.inherits(e.Argv,i.Memory),e.Argv.prototype.loadSync=function(){return this.loadArgv(),this.store},e.Argv.prototype.loadArgv=function(){let e=this,n,i;i=/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])?process.argv.slice(1,2):process.argv.slice(0,1);let o=i.map(e=>{let n=t.relative(process.cwd(),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&n.length<e.length?n:e}).join(` `).trim();if(n={...a(process.argv.slice(2)),$0:o},!n)return;this.transform&&(n=r.transform(n,this.transform));let s=!1;return this.readOnly&&(this.readOnly=!1,s=!0),Object.keys(n).forEach(function(t){let i=n[t];i!==void 0&&(e.parseValues&&(i=r.parseValues(i)),e.separator?e.set(r.key.apply(r,t.split(e.separator)),i):e.set(t,i))}),s&&(this.readOnly=!0),this.store}})),wn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Env=void 0;let t=require("util"),n=bn(),r=yn();e.Env=function(e){r.Memory.call(this,e),e||={},this.type=`env`,this.readOnly=e.readOnly===void 0||e.readOnly,this.whitelist=e.whitelist||[],this.separator=e.separator||``,this.lowerCase=e.lowerCase||!1,this.parseValues=e.parseValues||!1,this.transform=e.transform||!1,{}.toString.call(e.match)===`[object RegExp]`&&typeof e!=`string`&&(this.match=e.match),e instanceof Array&&(this.whitelist=e),(typeof e==`string`||e instanceof RegExp)&&(this.separator=e)},t.inherits(e.Env,r.Memory),e.Env.prototype.loadSync=function(){return this.loadEnv(),this.store},e.Env.prototype.loadEnv=function(){let e=this,t=process.env;this.lowerCase&&(t={},Object.keys(process.env).forEach(function(e){t[e.toLowerCase()]=process.env[e]})),this.transform&&(t=n.transform(t,this.transform));let r=!1;return this.readOnly&&(this.readOnly=!1,r=!0),Object.keys(t).filter(function(t){return e.match&&e.whitelist.length?t.match(e.match)||e.whitelist.indexOf(t)!==-1:e.match?t.match(e.match):!e.whitelist.length||e.whitelist.indexOf(t)!==-1}).forEach(function(r){let i=t[r];i===`TRUE`||i===`true`?i=!0:(i===`FALSE`||i===`false`)&&(i=!1),e.parseValues&&(i=n.parseValues(i)),e.separator?e.set(n.key.apply(n,r.split(e.separator)),i):e.set(r,i)}),r&&(this.readOnly=!0),this.store}})),Tn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.File=void 0;let t=require("fs"),n=require("path"),r=require("util"),i=require("crypto"),a=vn(),o=yn(),s=t.exists,c=t.existsSync;e.File=function(e){if(!e||!e.file)throw Error("Missing required option `file`");if(o.Memory.call(this,e),this.type=`file`,this.file=e.file,this.dir=e.dir||process.cwd(),this.format=e.format||a.json,this.secure=e.secure,this.spacing=e.json_spacing||e.spacing||2,this.secure&&(this.secure=Buffer.isBuffer(this.secure)||typeof this.secure==`string`?{secret:this.secure.toString()}:this.secure,this.secure.alg=this.secure.alg||`aes-256-ctr`,this.secure.secretPath&&(this.secure.secret=t.readFileSync(this.secure.secretPath,`utf8`)),!this.secure.secret))throw Error(`secure.secret option is required`);e.search&&this.search(this.dir)},r.inherits(e.File,o.Memory),e.File.prototype.save=function(e,t){this.saveToFile(this.file,e,t)},e.File.prototype.saveToFile=function(e,n,r){r||(r=n,n=this.format),t.writeFile(e,this.stringify(n),r)},e.File.prototype.saveSync=function(){return t.writeFileSync(this.file,this.stringify()),this.store},e.File.prototype.load=function(e){let n=this;s(n.file,function(r){if(!r)return e(null,{});t.readFile(n.file,function(t,r){if(t)return e(t);try{let e=r.toString();e.charAt(0)===``&&(e=e.substr(1)),n.store=n.parse(e)}catch(t){return e(/* @__PURE__ */ Error(`Error parsing your configuration file: [`+n.file+`]: `+t.message))}e(null,n.store)})})},e.File.prototype.loadSync=function(){if(!c(this.file))return this.store={},this.store;try{let e=t.readFileSync(this.file,`utf8`);e.charAt(0)===``&&(e=e.substr(1)),this.store=this.parse(e)}catch(e){throw Error(`Error parsing your configuration file: [`+this.file+`]: `+e.message)}return this.store},e.File.prototype.stringify=function(e){let t=this.store;if(e||=this.format,this.secure){let n=this;t=Object.keys(t).reduce(function(r,a){let o=e.stringify(t[a]),s=i.randomBytes(16),c=i.createCipheriv(n.secure.alg,n.secure.secret,s),l=c.update(o,`utf8`,`hex`);return l+=c.final(`hex`),r[a]={alg:n.secure.alg,value:l,iv:s.toString(`hex`)},r},{})}return e.stringify(t,null,this.spacing)},e.File.prototype.parse=function(e){let t=this.format.parse(e);if(this.secure){let e=this,n=!1;t=Object.keys(t).reduce(function(r,a){let o=t[a],s=i.createDecipher(o.alg,e.secure.secret);o.iv?s=i.createDecipheriv(o.alg,e.secure.secret,Buffer.from(o.iv,`hex`)):n=!0;let c=s.update(o.value,`hex`,`utf8`);return c+=s.final(`utf8`),r[a]=e.format.parse(c),r},{}),n&&console.warn(`Your encrypted file is outdated (encrypted without iv). Please re-encrypt your file.`)}return t},e.File.prototype.search=function(e){let r=!0,i,a,o;if(e||=process.cwd(),this.file[0]===`/`)try{o=t.statSync(t.realpathSync(this.file)),o.isFile()&&(i=this.file,r=!1)}catch{}if(r&&e)try{r=t.statSync(t.realpathSync(e)).isDirectory()}catch{return!1}for(;r;)try{o=t.statSync(t.realpathSync(i=n.join(e,this.file))),r=o.isDirectory()}catch{if(a=e,e=n.dirname(e),a===e){try{o=t.statSync(t.realpathSync(i=n.join(this.dir,this.file))),o.isDirectory()&&(i=void 0)}catch{}r=!1}}return this.file=i||this.file,i}})),En=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Literal=void 0;let t=require("util"),n=yn();e.Literal=function(e){n.Memory.call(this,e),e||={},this.type=`literal`,this.readOnly=!0,this.store=e.store||e},t.inherits(e.Literal,n.Memory),e.Literal.prototype.loadSync=function(){return this.store}})),Dn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=bn(),n=xn(),r=vn(),i=Cn(),a=wn(),o=Tn(),s=En(),c=yn(),l=new n.Provider;l.Argv=i.Argv,l.Env=a.Env,l.File=o.File,l.Literal=s.Literal,l.Memory=c.Memory,l.key=t.key,l.path=t.path,l.loadFiles=t.loadFiles,l.loadFilesSync=t.loadFilesSync,l.formats=r,l.Provider=n.Provider,e.default=l})),On=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.loadConfig=void 0;let t=n.n(),r=require("path"),i=gn(),a=Dn(),o=t(`snyk:config`);function s(e,t){e||=``,t||={};let n=t.secretConfig||process.env.CONFIG_SECRET_FILE||r.resolve(e,`config.secret.json`),s=l(t);if(!r.isAbsolute(e))throw Error(`config requires absolute path to read from`);let u=process.env.SERVICE_ENV||`local`,d=r.resolve(e,`config.${u}.json`);o(`dir: %s, local: %s, secret: %s`,e,d,n);let f=/^SNYK_.*$/;a.default.env({parseValues:s,separator:`__`,match:f,whitelist:[`NODE_ENV`,`PORT`]}),a.default.argv(),a.default.file(`secret`,{file:r.resolve(n)}),a.default.file(`local`,{file:d}),a.default.file(`default`,{file:r.resolve(e,`config.default.json`)});let p=a.default.get();return Object.keys(p).forEach(function(e){if(e.match(f)){let t=e.replace(/^SNYK_/,``);typeof p[t]==`object`&&typeof p[e]==`object`?p[t]=i(p[t],p[e]):p[t]=p[e],delete p[e]}}),c(p),o(`loading from %s`,e,JSON.stringify(p,null,2)),p}e.loadConfig=s;function c(e){Object.keys(e).forEach(function(t){if(typeof e[t]==`object`)return c(e[t]);typeof e[t]==`string`&&(e[t]=e[t].replace(/(\${.*?})/g,function(n,r){let i=r.slice(2,-1);if(process.env[i]===void 0)throw Error(`Missing env var to substitute `+i+` in '`+t+`: "`+e[t]+`"'`);return process.env[i]}))})}function l(e){if(e.parseEnvValues!==void 0){if(typeof e.parseEnvValues!=`boolean`)throw Error(`options.parseEnvValues must be a boolean`);return e.parseEnvValues}let t=process.env.CONFIG_PARSE_ENV_VALUES;if(t!==void 0&&t!==``&&t!==`undefined`){let e;try{e=JSON.parse(t.toLowerCase())}catch{throw Error(`CONFIG_PARSE_ENV_VALUES must be a boolean`)}if(typeof e!=`boolean`)throw Error(`CONFIG_PARSE_ENV_VALUES must be a boolean`);return e}return!1}})),kn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.config=(0,On().loadConfig)(__dirname+`../..`)})),An=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hashLabelsFromIntegrity=a,e.distributionUrlLabel=o,e.hashLabelFromResolvedFragment=s,e.getComponentMetadataLabels=c;let t=n.n()(`snyk-nodejs-lockfile-parser:component-metadata`),r={md5:`hash:md5`,sha1:`hash:sha-1`,sha256:`hash:sha-256`,sha384:`hash:sha-384`,sha512:`hash:sha-512`},i={md5:16,sha1:20,sha256:32,sha384:48,sha512:64};function a(e,n){if(!e)return t(`No integrity for ${n}; skipping hash labels`),{};let a={};for(let o of e.trim().split(/\s+/)){let e=o.indexOf(`-`);if(e===-1){t(`Unrecognised integrity "${o}" for ${n}; skipping`);continue}let s=o.slice(0,e).toLowerCase(),c=o.slice(e+1).split(`?`)[0],l=r[s];if(!l||!c){t(`Unrecognised integrity "${o}" for ${n}; skipping`);continue}let u=Buffer.from(c,`base64`);u.length===i[s]?a[l]=u.toString(`hex`):t(`Integrity "${o}" for ${n} decoded to ${u.length} bytes, expected ${i[s]} for ${s}; skipping`)}return a}function o(e,n){if(!e)return t(`No resolved URL for ${n}; skipping distribution:url label`),{};let r;try{r=new URL(e)}catch{return t(`resolved "${e}" for ${n} is not a parseable URL; skipping distribution:url label`),{}}return r.protocol!==`http:`&&r.protocol!==`https:`?(t(`resolved "${e}" for ${n} is not an http(s) URL; skipping distribution:url label`),{}):((r.username||r.password)&&(r.password=``,r.username=``,t(`Stripped credentials from resolved URL for ${n}`)),r.hash&&(r.hash=``),{"distribution:url":r.toString()})}function s(e,n){if(!e)return{};let r;try{r=new URL(e)}catch{return{}}if(r.protocol!==`http:`&&r.protocol!==`https:`)return{};let i=r.hash.replace(/^#/,``);return/^[0-9a-f]{40}$/i.test(i)?{"hash:sha-1":i.toLowerCase()}:(i&&t(`resolved fragment "${i}" for ${n} is not a sha1 shasum; skipping`),{})}function c(e){return{...o(e.resolved,e.id),...s(e.resolved,e.id),...a(e.integrity,e.id)}}})),jn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PackageLockParser=void 0;let t=yt(),n=hn(),r=kn(),i=vt(),a=An();e.PackageLockParser=class extends n.LockParserBase{constructor(){super(t.LockfileType.npm,r.config.NPM_TREE_SIZE_LIMIT)}parseLockFile(e){let n=(0,i.parseJsonFile)(e,`package-lock.json`);return n.type=n.lockfileVersion===1?t.LockfileType.npm:t.LockfileType.npm7,this.type=n.type,n}async getDependencyTree(e,t,n=!1,r=!0,i,a){let o=await super.getDependencyTree(e,t,n,r,i,a),s={lockfileVersion:t.lockfileVersion,packageManager:`npm`};return{...o,meta:{...o.meta,...s}}}getDepMap(e,n,r,i){let o=e,s={},c=(e,n)=>{for(let[o,l]of Object.entries(e)){let e={labels:{scope:l.dev?t.Scope.dev:t.Scope.prod,...r&&{"npm:scope":l.dev?t.Scope.dev:t.Scope.prod},...i&&(0,a.getComponentMetadataLabels)({id:`${o}@${l.version}`,integrity:l.integrity,resolved:l.resolved})},name:o,requires:[],version:l.version};l.requires&&(e.requires=Object.keys(l.requires));let u=[...n,o],d=u.join(this.pathDelimiter);s[d]=e,l.dependencies&&c(l.dependencies,u)}};return c(o.dependencies||{},[]),s}getDepTreeKey(e){return e.name}}})),Mn=/* @__PURE__ */ e.t(((e,t)=>{t.exports=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=14)})([(function(e,t){e.exports=require("path")}),(function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(173));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(){var t=e.apply(this,arguments);return new r.default(function(e,n){function i(a,o){try{var s=t[a](o),c=s.value}catch(e){n(e);return}if(s.done)e(c);else return r.default.resolve(c).then(function(e){i(`next`,e)},function(e){i(`throw`,e)})}return i(`next`)})}}}),(function(e,t){e.exports=require("util")}),(function(e,t){e.exports=require("fs")}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(e),this.code=t}}t.MessageError=r;class i extends r{constructor(e,t,n){super(e,t),this.process=n}}t.ProcessSpawnError=i;class a extends r{}t.SecurityError=a;class o extends r{}t.ProcessTermError=o;class s extends Error{constructor(e,t){super(e),this.responseCode=t}}t.ResponseError=s}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var r;function i(){return r=j(n(1))}let a=(()=>{var e=(0,(r||i()).default)(function*(e,t,n,a){let o=(()=>{var o=(0,(r||i()).default)(function*(r){let i=r.src,o=r.dest,l=r.type,u=r.onFresh||U,d=r.onDone||U;if(c.has(o.toLowerCase())?a.verbose(`The case-insensitive file ${o} shouldn't be copied twice in one bulk copy`):c.add(o.toLowerCase()),l===`symlink`){yield I((v||y()).default.dirname(o)),u(),p.symlink.push({dest:o,linkname:i}),d();return}if(t.ignoreBasenames.indexOf((v||y()).default.basename(i))>=0)return;let f=yield R(i),m;f.isDirectory()&&(m=yield P(i));let h;try{h=yield R(o)}catch(e){if(e.code!==`ENOENT`)throw e}if(h){let e=f.isSymbolicLink()&&h.isSymbolicLink(),t=f.isDirectory()&&h.isDirectory(),r=f.isFile()&&h.isFile();if(r&&s.has(o)){d(),a.verbose(a.lang(`verboseFileSkipArtifact`,i));return}if(r&&f.size===h.size&&(0,(O||k()).fileDatesEqual)(f.mtime,h.mtime)){d(),a.verbose(a.lang(`verboseFileSkip`,i,o,f.size,+f.mtime));return}if(e){let e=yield ne(i);if(e===(yield ne(o))){d(),a.verbose(a.lang(`verboseFileSkipSymlink`,i,o,e));return}}if(t){let e=yield P(o);V(m,`src files not initialised`);for(var g=e,_=Array.isArray(g),b=0,g=_?g:g[Symbol.iterator]();;){var x;if(_){if(b>=g.length)break;x=g[b++]}else{if(b=g.next(),b.done)break;x=b.value}let e=x;if(m.indexOf(e)<0){let t=(v||y()).default.join(o,e);if(n.add(t),(yield R(t)).isDirectory())for(var S=yield P(t),C=Array.isArray(S),w=0,S=C?S:S[Symbol.iterator]();;){var T;if(C){if(w>=S.length)break;T=S[w++]}else{if(w=S.next(),w.done)break;T=w.value}let e=T;n.add((v||y()).default.join(t,e))}}}}}if(h&&h.isSymbolicLink()&&(yield(0,(O||k()).unlink)(o),h=null),f.isSymbolicLink()){u();let e=yield ne(i);p.symlink.push({dest:o,linkname:e}),d()}else if(f.isDirectory()){h||(a.verbose(a.lang(`verboseFileFolder`,o)),yield I(o));let t=o.split((v||y()).default.sep);for(;t.length;)c.add(t.join((v||y()).default.sep).toLowerCase()),t.pop();V(m,`src files not initialised`);let n=m.length;n||d();for(var E=m,D=Array.isArray(E),A=0,E=D?E:E[Symbol.iterator]();;){var j;if(D){if(A>=E.length)break;j=E[A++]}else{if(A=E.next(),A.done)break;j=A.value}let t=j;e.push({dest:(v||y()).default.join(o,t),onFresh:u,onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){--n===0&&d()}),src:(v||y()).default.join(i,t)})}}else if(f.isFile())u(),p.file.push({src:i,dest:o,atime:f.atime,mtime:f.mtime,mode:f.mode}),d();else throw Error(`unsure how to copy this: ${i}`)});return function(e){return o.apply(this,arguments)}})(),s=new Set(t.artifactFiles||[]),c=/* @__PURE__ */ new Set;for(var l=e,u=Array.isArray(l),d=0,l=u?l:l[Symbol.iterator]();;){var f;if(u){if(d>=l.length)break;f=l[d++]}else{if(d=l.next(),d.done)break;f=d.value}let e=f,n=e.onDone;e.onDone=function(){t.onProgress(e.dest),n&&n()}}t.onStart(e.length);let p={file:[],symlink:[],link:[]};for(;e.length;){let t=e.splice(0,ie);yield Promise.all(t.map(o))}for(var m=s,h=Array.isArray(m),g=0,m=h?m:m[Symbol.iterator]();;){var _;if(h){if(g>=m.length)break;_=m[g++]}else{if(g=m.next(),g.done)break;_=g.value}let e=_;n.has(e)&&(a.verbose(a.lang(`verboseFilePhantomExtraneous`,e)),n.delete(e))}for(var b=n,x=Array.isArray(b),S=0,b=x?b:b[Symbol.iterator]();;){var C;if(x){if(S>=b.length)break;C=b[S++]}else{if(S=b.next(),S.done)break;C=S.value}let e=C;c.has(e.toLowerCase())&&n.delete(e)}return p});return function(t,n,r,i){return e.apply(this,arguments)}})(),o=(()=>{var e=(0,(r||i()).default)(function*(e,t,n,a){let o=(()=>{var o=(0,(r||i()).default)(function*(r){let i=r.src,o=r.dest,l=r.onFresh||U,u=r.onDone||U;if(c.has(o.toLowerCase())){u();return}if(c.add(o.toLowerCase()),t.ignoreBasenames.indexOf((v||y()).default.basename(i))>=0)return;let d=yield R(i),f;d.isDirectory()&&(f=yield P(i));let m=yield L(o);if(m){let e=yield R(o),t=d.isSymbolicLink()&&e.isSymbolicLink(),r=d.isDirectory()&&e.isDirectory(),c=d.isFile()&&e.isFile();if(d.mode!==e.mode)try{yield F(o,d.mode)}catch(e){a.verbose(e)}if(c&&s.has(o)){u(),a.verbose(a.lang(`verboseFileSkipArtifact`,i));return}if(c&&d.ino!==null&&d.ino===e.ino){u(),a.verbose(a.lang(`verboseFileSkip`,i,o,d.ino));return}if(t){let e=yield ne(i);if(e===(yield ne(o))){u(),a.verbose(a.lang(`verboseFileSkipSymlink`,i,o,e));return}}if(r){let e=yield P(o);V(f,`src files not initialised`);for(var h=e,g=Array.isArray(h),_=0,h=g?h:h[Symbol.iterator]();;){var b;if(g){if(_>=h.length)break;b=h[_++]}else{if(_=h.next(),_.done)break;b=_.value}let e=b;if(f.indexOf(e)<0){let t=(v||y()).default.join(o,e);if(n.add(t),(yield R(t)).isDirectory())for(var x=yield P(t),S=Array.isArray(x),C=0,x=S?x:x[Symbol.iterator]();;){var w;if(S){if(C>=x.length)break;w=x[C++]}else{if(C=x.next(),C.done)break;w=C.value}let e=w;n.add((v||y()).default.join(t,e))}}}}}if(d.isSymbolicLink()){l();let e=yield ne(i);p.symlink.push({dest:o,linkname:e}),u()}else if(d.isDirectory()){a.verbose(a.lang(`verboseFileFolder`,o)),yield I(o);let t=o.split((v||y()).default.sep);for(;t.length;)c.add(t.join((v||y()).default.sep).toLowerCase()),t.pop();V(f,`src files not initialised`);let n=f.length;n||u();for(var T=f,E=Array.isArray(T),D=0,T=E?T:T[Symbol.iterator]();;){var O;if(E){if(D>=T.length)break;O=T[D++]}else{if(D=T.next(),D.done)break;O=D.value}let t=O;e.push({onFresh:l,src:(v||y()).default.join(i,t),dest:(v||y()).default.join(o,t),onDone:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){--n===0&&u()})})}}else if(d.isFile())l(),p.link.push({src:i,dest:o,removeDest:m}),u();else throw Error(`unsure how to copy this: ${i}`)});return function(e){return o.apply(this,arguments)}})(),s=new Set(t.artifactFiles||[]),c=/* @__PURE__ */ new Set;for(var l=e,u=Array.isArray(l),d=0,l=u?l:l[Symbol.iterator]();;){var f;if(u){if(d>=l.length)break;f=l[d++]}else{if(d=l.next(),d.done)break;f=d.value}let e=f,n=e.onDone||U;e.onDone=function(){t.onProgress(e.dest),n()}}t.onStart(e.length);let p={file:[],symlink:[],link:[]};for(;e.length;){let t=e.splice(0,ie);yield Promise.all(t.map(o))}for(var m=s,h=Array.isArray(m),g=0,m=h?m:m[Symbol.iterator]();;){var _;if(h){if(g>=m.length)break;_=m[g++]}else{if(g=m.next(),g.done)break;_=g.value}let e=_;n.has(e)&&(a.verbose(a.lang(`verboseFilePhantomExtraneous`,e)),n.delete(e))}for(var b=n,x=Array.isArray(b),S=0,b=x?b:b[Symbol.iterator]();;){var C;if(x){if(S>=b.length)break;C=b[S++]}else{if(S=b.next(),S.done)break;C=S.value}let e=C;c.has(e.toLowerCase())&&n.delete(e)}return p});return function(t,n,r,i){return e.apply(this,arguments)}})(),s=t.copyBulk=(()=>{var e=(0,(r||i()).default)(function*(e,t,n){let o={onStart:n&&n.onStart||U,onProgress:n&&n.onProgress||U,possibleExtraneous:n?n.possibleExtraneous:/* @__PURE__ */ new Set,ignoreBasenames:n&&n.ignoreBasenames||[],artifactFiles:n&&n.artifactFiles||[]},s=yield a(e,o,o.possibleExtraneous,t);o.onStart(s.file.length+s.symlink.length+s.link.length);let c=s.file,u=/* @__PURE__ */ new Map;yield(S||C()).queue(c,(()=>{var e=(0,(r||i()).default)(function*(e){let n;for(;n=u.get(e.dest);)yield n;t.verbose(t.lang(`verboseFileCopy`,e.src,e.dest));let r=(0,(O||k()).copyFile)(e,function(){return u.delete(e.dest)});return u.set(e.dest,r),o.onProgress(e.dest),r});return function(t){return e.apply(this,arguments)}})(),ie);let d=s.symlink;yield(S||C()).queue(d,function(e){let n=(v||y()).default.resolve((v||y()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang(`verboseFileSymlink`,e.dest,n)),l(n,e.dest)})});return function(t,n,r){return e.apply(this,arguments)}})();t.hardlinkBulk=(()=>{var e=(0,(r||i()).default)(function*(e,t,n){let a={onStart:n&&n.onStart||U,onProgress:n&&n.onProgress||U,possibleExtraneous:n?n.possibleExtraneous:/* @__PURE__ */ new Set,artifactFiles:n&&n.artifactFiles||[],ignoreBasenames:[]},s=yield o(e,a,a.possibleExtraneous,t);a.onStart(s.file.length+s.symlink.length+s.link.length);let c=s.link;yield(S||C()).queue(c,(()=>{var e=(0,(r||i()).default)(function*(e){t.verbose(t.lang(`verboseFileLink`,e.src,e.dest)),e.removeDest&&(yield(0,(O||k()).unlink)(e.dest)),yield z(e.src,e.dest)});return function(t){return e.apply(this,arguments)}})(),ie);let u=s.symlink;yield(S||C()).queue(u,function(e){let n=(v||y()).default.resolve((v||y()).default.dirname(e.dest),e.linkname);return t.verbose(t.lang(`verboseFileSymlink`,e.dest,n)),l(n,e.dest)})});return function(t,n,r){return e.apply(this,arguments)}})(),t.readFileAny=(()=>{var e=(0,(r||i()).default)(function*(e){for(var t=e,n=Array.isArray(t),r=0,t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}let e=i;if(yield L(e))return se(e)}return null});return function(t){return e.apply(this,arguments)}})(),t.readJson=(()=>{var e=(0,(r||i()).default)(function*(e){return(yield c(e)).object});return function(t){return e.apply(this,arguments)}})();let c=t.readJsonAndFile=(()=>{var e=(0,(r||i()).default)(function*(e){let t=yield se(e);try{return{object:(0,(E||D()).default)(JSON.parse(H(t))),content:t}}catch(t){throw t.message=`${e}: ${t.message}`,t}});return function(t){return e.apply(this,arguments)}})();t.find=(()=>{var e=(0,(r||i()).default)(function*(e,t){let n=t.split((v||y()).default.sep);for(;n.length;){let t=n.concat(e).join((v||y()).default.sep);if(yield L(t))return t;n.pop()}return!1});return function(t,n){return e.apply(this,arguments)}})();let l=t.symlink=(()=>{var e=(0,(r||i()).default)(function*(e,t){try{if((yield R(t)).isSymbolicLink()&&(yield re(t))===e)return}catch(e){if(e.code!==`ENOENT`)throw e}if(yield(0,(O||k()).unlink)(t),process.platform===`win32`)yield B(e,t,`junction`);else{let n;try{n=(v||y()).default.relative((f||p()).default.realpathSync((v||y()).default.dirname(t)),(f||p()).default.realpathSync(e))}catch(r){if(r.code!==`ENOENT`)throw r;n=(v||y()).default.relative((v||y()).default.dirname(t),e)}yield B(n||`.`,t)}});return function(t,n){return e.apply(this,arguments)}})(),u=t.walk=(()=>{var e=(0,(r||i()).default)(function*(e,t,n=/* @__PURE__ */ new Set){let r=[],i=yield P(e);n.size&&(i=i.filter(function(e){return!n.has(e)}));for(var a=i,o=Array.isArray(a),s=0,a=o?a:a[Symbol.iterator]();;){var c;if(o){if(s>=a.length)break;c=a[s++]}else{if(s=a.next(),s.done)break;c=s.value}let i=c,l=t?(v||y()).default.join(t,i):i,d=(v||y()).default.join(e,i),f=yield R(d);r.push({relative:l,basename:i,absolute:d,mtime:+f.mtime}),f.isDirectory()&&(r=r.concat(yield u(d,l,n)))}return r});return function(t,n){return e.apply(this,arguments)}})();t.getFileSizeOnDisk=(()=>{var e=(0,(r||i()).default)(function*(e){let t=yield R(e),n=t.size,r=t.blksize;return Math.ceil(n/r)*r});return function(t){return e.apply(this,arguments)}})();let d=(()=>{var e=(0,(r||i()).default)(function*(e){if(!(yield L(e)))return;let t=yield ee(e);for(let e=0;e<t.length;++e){if(t[e]===le)return`\r
`;if(t[e]===ue)return`
`}});return function(t){return e.apply(this,arguments)}})();t.writeFilePreservingEol=(()=>{var e=(0,(r||i()).default)(function*(e,t){let n=(yield d(e))||(g||_()).default.EOL;n!==`
`&&(t=t.replace(/\n/g,n)),yield N(e,t)});return function(t,n){return e.apply(this,arguments)}})(),t.hardlinksWork=(()=>{var e=(0,(r||i()).default)(function*(e){let t=`test-file`+Math.random(),n=(v||y()).default.join(e,t),r=(v||y()).default.join(e,t+`-link`);try{yield N(n,`test`),yield z(n,r)}catch{return!1}finally{yield(0,(O||k()).unlink)(n),yield(0,(O||k()).unlink)(r)}return!0});return function(t){return e.apply(this,arguments)}})(),t.makeTempDir=(()=>{var e=(0,(r||i()).default)(function*(e){let t=(v||y()).default.join((g||_()).default.tmpdir(),`yarn-${e||``}-${Date.now()}-${Math.random()}`);return yield(0,(O||k()).unlink)(t),yield I(t),t});return function(t){return e.apply(this,arguments)}})(),t.readFirstAvailableStream=(()=>{var e=(0,(r||i()).default)(function*(e){for(var t=e,n=Array.isArray(t),r=0,t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}let e=i;try{let t=yield te(e,`r`);return(f||p()).default.createReadStream(e,{fd:t})}catch{}}return null});return function(t){return e.apply(this,arguments)}})(),t.getFirstSuitableFolder=(()=>{var e=(0,(r||i()).default)(function*(e,t=M.W_OK|M.X_OK){let n={skipped:[],folder:null};for(var r=e,i=Array.isArray(r),a=0,r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if(a=r.next(),a.done)break;o=a.value}let e=o;try{return yield I(e),yield F(e,t),n.folder=e,n}catch(t){n.skipped.push({error:t,folder:e})}}return n});return function(t){return e.apply(this,arguments)}})(),t.copy=ae,t.readFile=se,t.readFileRaw=ce,t.normalizeOS=W;var f;function p(){return f=j(n(3))}var m;function h(){return m=j(n(75))}var g;function _(){return g=j(n(36))}var v;function y(){return v=j(n(0))}var b;function x(){return b=j(n(84))}var S;function C(){return S=A(n(40))}var w;function T(){return w=n(40)}var E;function D(){return E=j(n(20))}var O;function k(){return O=n(164)}function A(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}let M=t.constants=(f||p()).default.constants===void 0?{R_OK:(f||p()).default.R_OK,W_OK:(f||p()).default.W_OK,X_OK:(f||p()).default.X_OK}:(f||p()).default.constants;t.lockQueue=new(b||(x())).default(`fs lock`);let ee=t.readFileBuffer=(0,(w||T()).promisify)((f||p()).default.readFile),te=t.open=(0,(w||T()).promisify)((f||p()).default.open),N=t.writeFile=(0,(w||T()).promisify)((f||p()).default.writeFile),ne=t.readlink=(0,(w||T()).promisify)((f||p()).default.readlink),re=t.realpath=(0,(w||T()).promisify)((f||p()).default.realpath),P=t.readdir=(0,(w||T()).promisify)((f||p()).default.readdir);t.rename=(0,(w||T()).promisify)((f||p()).default.rename);let F=t.access=(0,(w||T()).promisify)((f||p()).default.access);t.stat=(0,(w||T()).promisify)((f||p()).default.stat);let I=t.mkdirp=(0,(w||T()).promisify)(n(116)),L=t.exists=(0,(w||T()).promisify)((f||p()).default.exists,!0),R=t.lstat=(0,(w||T()).promisify)((f||p()).default.lstat);t.chmod=(0,(w||T()).promisify)((f||p()).default.chmod);let z=t.link=(0,(w||T()).promisify)((f||p()).default.link);t.glob=(0,(w||T()).promisify)((m||h()).default),t.unlink=(O||k()).unlink;let ie=(f||p()).default.copyFile?128:4,B=(0,(w||T()).promisify)((f||p()).default.symlink),V=n(7),H=n(122),U=()=>{};function ae(e,t,n){return s([{src:e,dest:t}],n)}function oe(e,t){return new Promise((n,r)=>{(f||p()).default.readFile(e,t,function(e,t){e?r(e):n(t)})})}function se(e){return oe(e,`utf8`).then(W)}function ce(e){return oe(e,`binary`)}function W(e){return e.replace(/\r\n/g,`
`)}let le=13,ue=10}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=h;let r=n(36),i=n(0),a=n(45).default;var o=n(171);let s=o.getCacheDir,c=o.getConfigDir,l=o.getDataDir,u=n(227),d=t.DEPENDENCY_TYPES=[`devDependencies`,`dependencies`,`optionalDependencies`,`peerDependencies`];t.MANIFEST_FIELDS=[t.RESOLUTIONS=`resolutions`,...d],t.SUPPORTED_NODE_VERSIONS=`^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0`,t.YARN_REGISTRY=`https://registry.yarnpkg.com`,t.YARN_DOCS=`https://yarnpkg.com/en/docs/cli/`,t.YARN_INSTALLER_SH=`https://yarnpkg.com/install.sh`,t.YARN_INSTALLER_MSI=`https://yarnpkg.com/latest.msi`,t.SELF_UPDATE_VERSION_URL=`https://yarnpkg.com/latest-version`,t.CACHE_VERSION=2,t.LOCKFILE_VERSION=1,t.NETWORK_CONCURRENCY=8,t.NETWORK_TIMEOUT=3e4,t.CHILD_CONCURRENCY=5,t.REQUIRED_PACKAGE_KEYS=[`name`,`version`,`_uid`];function f(){let e=[s()];return process.getuid&&e.push(i.join(r.tmpdir(),`.yarn-cache-${process.getuid()}`)),e.push(i.join(r.tmpdir(),`.yarn-cache`)),e}t.PREFERRED_MODULE_CACHE_DIRECTORIES=f(),t.CONFIG_DIRECTORY=c();let p=t.DATA_DIRECTORY=l();t.LINK_REGISTRY_DIRECTORY=i.join(p,`link`),t.GLOBAL_MODULE_DIRECTORY=i.join(p,`global`),t.NODE_BIN_PATH=process.execPath,t.YARN_BIN_PATH=m();function m(){return u?__filename:i.join(__dirname,`..`,`bin`,`yarn.js`)}t.NODE_MODULES_FOLDER=`node_modules`,t.NODE_PACKAGE_JSON=`package.json`,t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||``}/usr/local`,t.FALLBACK_GLOBAL_PREFIX=i.join(a,`.yarn`),t.META_FOLDER=`.yarn-meta`,t.INTEGRITY_FILENAME=`.yarn-integrity`,t.LOCKFILE_FILENAME=`yarn.lock`,t.METADATA_FILENAME=`.yarn-metadata.json`,t.TARBALL_FILENAME=`.yarn-tarball.tgz`,t.CLEAN_FILENAME=`.yarnclean`,t.NPM_LOCK_FILENAME=`package-lock.json`,t.NPM_SHRINKWRAP_FILENAME=`npm-shrinkwrap.json`,t.DEFAULT_INDENT=`  `,t.SINGLE_INSTANCE_PORT=31997,t.SINGLE_INSTANCE_FILENAME=`.yarn-single-instance`,t.ENV_PATH_KEY=h(process.platform,process.env);function h(e,t){let n=`PATH`;if(e===`win32`){n=`Path`;for(let e in t)e.toLowerCase()===`path`&&(n=e)}return n}t.VERSION_COLOR_SCHEME={major:`red`,premajor:`red`,minor:`yellow`,preminor:`yellow`,patch:`green`,prepatch:`green`,prerelease:`red`,unchanged:`white`,unknown:`red`}}),(function(e,t,n){"use strict";var r=process.env.NODE_ENV;e.exports=function(e,t,n,i,a,o,s,c){if(r!==`production`&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){var l;if(t===void 0)l=/* @__PURE__ */ Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var u=[n,i,a,o,s,c],d=0;l=Error(t.replace(/%s/g,function(){return u[d++]})),l.name=`Invariant Violation`}throw l.framesToPop=1,l}}}),,(function(e,t){e.exports=require("crypto")}),,(function(e,t){var n=e.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=n)}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=a,t.removePrefix=o,t.removeSuffix=s,t.addSuffix=c,t.hyphenate=l,t.camelCase=u,t.compareSortedArrays=d,t.sleep=f;let r=n(176);function i(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.charCodeAt(r),i=t.charCodeAt(r);if(n!==i)return n-i}return e.length-t.length}function a(e){let t=[];if(e)for(let n in e)t.push([n,e[n]]);return t}function o(e,t){return e.startsWith(t)&&(e=e.slice(t.length)),e}function s(e,t){return e.endsWith(t)?e.slice(0,-t.length):e}function c(e,t){return e.endsWith(t)?e:e+t}function l(e){return e.replace(/[A-Z]/g,e=>`-`+e.charAt(0).toLowerCase())}function u(e){return/[A-Z]/.test(e)?null:r(e)}function d(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function f(e){return new Promise(t=>{setTimeout(t,e)})}}),(function(e,t,n){var r=n(107)(`wks`),i=n(111),a=n(11).Symbol,o=typeof a==`function`,s=e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)(`Symbol.`+e))};s.store=r}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var r;function i(){return r=b(n(1))}var a;function o(){return a=n(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return b(a||o()).default}});var s;function c(){return s=n(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return b(s||c()).default}}),t.implodeEntry=O,t.explodeEntry=k;var l;function u(){return l=n(12)}var d;function f(){return d=n(29)}var p;function m(){return p=b(n(81))}var h;function g(){return h=n(6)}var _;function v(){return _=y(n(5))}function y(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}let x=n(7),S=n(0),C=n(55);function w(e){return(0,(d||f()).normalizePattern)(e).name}function T(e){return e&&Object.keys(e).length?e:void 0}function E(e){return e.resolved||(e.reference&&e.hash?`${e.reference}#${e.hash}`:null)}function D(e){return e.toString().split(` `).sort().join(` `)}function O(e,t){let n=w(e),r=t.integrity?D(t.integrity):``,i={name:n===t.name?void 0:t.name,version:t.version,uid:t.uid===t.version?void 0:t.uid,resolved:t.resolved,registry:t.registry===`npm`?void 0:t.registry,dependencies:T(t.dependencies),optionalDependencies:T(t.optionalDependencies),permissions:T(t.permissions),prebuiltVariants:T(t.prebuiltVariants)};return r&&(i.integrity=r),i}function k(e,t){t.optionalDependencies=t.optionalDependencies||{},t.dependencies=t.dependencies||{},t.uid=t.uid||t.version,t.permissions=t.permissions||{},t.registry=t.registry||`npm`,t.name=t.name||w(e);let n=t.integrity;return n&&n.isIntegrity&&(t.integrity=C.parse(n)),t}class A{constructor({cache:e,source:t,parseResultType:n}={}){this.source=t||``,this.cache=e,this.parseResultType=n}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let e in this.cache)if(!/^.*@(file:|http)/.test(e)&&this.cache[e]&&!this.cache[e].integrity)return!0;return!1}static fromDirectory(e,t){return(0,(r||i()).default)(function*(){let n=S.join(e,(h||g()).LOCKFILE_FILENAME),r,i=``,a;return(yield(_||v()).exists(n))?(i=yield(_||v()).readFile(n),a=(0,(p||m()).default)(i,n),t&&(a.type===`merge`?t.info(t.lang(`lockfileMerged`)):a.type===`conflict`&&t.warn(t.lang(`lockfileConflict`))),r=a.object):t&&t.info(t.lang(`noLockfileFound`)),new A({cache:r,source:i,parseResultType:a&&a.type})})()}getLocked(e){let t=this.cache;if(!t)return;let n=e in t&&t[e];if(typeof n==`string`)return this.getLocked(n);if(n)return k(e,n),n}removePattern(e){let t=this.cache;t&&delete t[e]}getLockfile(e){let t={},n=/* @__PURE__ */ new Map;for(var r=Object.keys(e).sort((l||u()).sortAlpha),i=Array.isArray(r),a=0,r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if(a=r.next(),a.done)break;o=a.value}let s=o,c=e[s],l=c._remote,u=c._reference;x(u,`Package is missing a reference`),x(l,`Package is missing a remote`);let d=E(l),f=d&&n.get(d);if(f){t[s]=f,!f.name&&w(s)!==c.name&&(f.name=c.name);continue}let p=O(s,{name:c.name,version:c.version,uid:c._uid,resolved:l.resolved,integrity:l.integrity,registry:l.registry,dependencies:c.dependencies,peerDependencies:c.peerDependencies,optionalDependencies:c.optionalDependencies,permissions:u.permissions,prebuiltVariants:c.prebuiltVariants});t[s]=p,d&&n.set(d,p)}return t}}t.default=A}),,,(function(e,t){e.exports=require("stream")}),,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(e={}){if(Array.isArray(e))for(var t=e,n=Array.isArray(t),i=0,t=n?t:t[Symbol.iterator]();;){var a;if(n){if(i>=t.length)break;a=t[i++]}else{if(i=t.next(),i.done)break;a=i.value}r(a)}else if((typeof e==`object`&&e||typeof e==`function`)&&(Object.setPrototypeOf(e,null),typeof e==`object`))for(let t in e)r(e[t]);return e}}),,(function(e,t){e.exports=require("assert")}),(function(e,t){var n=e.exports={version:`2.5.7`};typeof __e==`number`&&(__e=n)}),,,,(function(e,t,n){var r=n(34);e.exports=function(e){if(!r(e))throw TypeError(e+` is not an object!`);return e}}),,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=r;function r(e){let t=!1,n=`latest`,r=e,i=!1;r[0]===`@`&&(i=!0,r=r.slice(1));let a=r.split(`@`);return a.length>1&&(r=a.shift(),n=a.join(`@`),n?t=!0:n=`*`),i&&(r=`@${r}`),{name:r,range:n,hasVersion:t}}}),,(function(e,t,n){var r=n(50),i=n(106);e.exports=n(33)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}}),(function(e,t,n){var r=n(63),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o);function o(e,t,n){return i(e,t,n)}a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}}),(function(e,t,n){e.exports=!n(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})}),(function(e,t){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),(function(e,t){e.exports={}}),(function(e,t){e.exports=require("os")}),,,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=r,t.promisify=i,t.queue=a;function r(e){return new Promise(t=>{setTimeout(t,e)})}function i(e,t){return function(...n){return new Promise(function(r,i){n.push(function(e,...n){let a=n;n.length<=1&&(a=n[0]),t&&(a=e,e=null),e?i(e):r(a)}),e.apply(null,n)})}}function a(e,t,n=1/0){n=Math.min(n,e.length),e=e.slice();let r=[],i=e.length;return i?new Promise((a,o)=>{for(let e=0;e<n;e++)s();function s(){t(e.shift()).then(function(t){r.push(t),i--,i===0?a(r):e.length&&s()},o)}}):Promise.resolve(r)}}),(function(e,t,n){var r=n(11),i=n(23),a=n(48),o=n(31),s=n(49),c=`prototype`,l=function(e,t,n){var u=e&l.F,d=e&l.G,f=e&l.S,p=e&l.P,m=e&l.B,h=e&l.W,g=d?i:i[t]||(i[t]={}),_=g[c],v=d?r:f?r[t]:(r[t]||{})[c],y,b,x;for(y in d&&(n=t),n)b=!u&&v&&v[y]!==void 0,b&&s(g,y)||(x=b?v[y]:n[y],g[y]=d&&typeof v[y]!=`function`?n[y]:m&&b?a(x,r):h&&v[y]==x?(function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t})(x):p&&typeof x==`function`?a(Function.call,x):x,p&&((g.virtual||={})[y]=x,e&l.R&&_&&!_[y]&&o(_,y,x)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l}),(function(e,t,n){try{var r=n(2);if(typeof r.inherits!=`function`)throw``;e.exports=r.inherits}catch{e.exports=n(224)}}),,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var r;function i(){return r=a(n(169))}function a(e){return e&&e.__esModule?e:{default:e}}let o=n(0),s=t.home=n(36).homedir();t.default=(r||i()).default?o.resolve(`/usr/local/share`):s}),(function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e}}),(function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}),(function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),(function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}}),(function(e,t,n){var r=n(27),i=n(184),a=n(201),o=Object.defineProperty;t.f=n(33)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported!`);return`value`in n&&(e[t]=n.value),e}}),,,,(function(e,t){e.exports=require("events")}),(function(e,t,n){"use strict";let r=n(32).Buffer,i=n(9),a=n(17).Transform,o=[`sha256`,`sha384`,`sha512`],s=/^[a-z0-9+/]+(?:=?=?)$/i,c=/^([^-]+)-([^?]+)([?\S*]*)$/,l=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,u=/^[\x21-\x7E]+$/;class d{get isHash(){return!0}constructor(e,t){let n=!!(t&&t.strict);this.source=e.trim();let r=this.source.match(n?l:c);if(!r||n&&!o.some(e=>e===r[1]))return;this.algorithm=r[1],this.digest=r[2];let i=r[3];this.options=i?i.slice(1).split(`?`):[]}hexDigest(){return this.digest&&r.from(this.digest,`base64`).toString(`hex`)}toJSON(){return this.toString()}toString(e){if(e&&e.strict&&!(o.some(e=>e===this.algorithm)&&this.digest.match(s)&&(this.options||[]).every(e=>e.match(u))))return``;let t=this.options&&this.options.length?`?${this.options.join(`?`)}`:``;return`${this.algorithm}-${this.digest}${t}`}}class f{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(e){e||={};let t=e.sep||` `;return e.strict&&(t=t.replace(/\S+/g,` `)),Object.keys(this).map(n=>this[n].map(t=>d.prototype.toString.call(t,e)).filter(e=>e.length).join(t)).filter(e=>e.length).join(t)}concat(e,t){let n=typeof e==`string`?e:h(e,t);return p(`${this.toString(t)} ${n}`,t)}hexDigest(){return p(this,{single:!0}).hexDigest()}match(e,t){let n=p(e,t),r=n.pickAlgorithm(t);return this[r]&&n[r]&&this[r].find(e=>n[r].find(t=>e.digest===t.digest))||!1}pickAlgorithm(e){let t=e&&e.pickAlgorithm||T,n=Object.keys(this);if(!n.length)throw Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return n.reduce((e,n)=>t(e,n)||e)}}e.exports.parse=p;function p(e,t){if(t||={},typeof e==`string`)return m(e,t);if(e.algorithm&&e.digest){let n=new f;return n[e.algorithm]=[e],m(h(n,t),t)}return m(h(e,t),t)}function m(e,t){return t.single?new d(e,t):e.trim().split(/\s+/).reduce((e,n)=>{let r=new d(n,t);if(r.algorithm&&r.digest){let t=r.algorithm;e[t]||(e[t]=[]),e[t].push(r)}return e},new f)}e.exports.stringify=h;function h(e,t){return e.algorithm&&e.digest?d.prototype.toString.call(e,t):typeof e==`string`?h(p(e,t),t):f.prototype.toString.call(e,t)}e.exports.fromHex=g;function g(e,t,n){let i=n&&n.options&&n.options.length?`?${n.options.join(`?`)}`:``;return p(`${t}-${r.from(e,`hex`).toString(`base64`)}${i}`,n)}e.exports.fromData=_;function _(e,t){t||={};let n=t.algorithms||[`sha512`],r=t.options&&t.options.length?`?${t.options.join(`?`)}`:``;return n.reduce((n,a)=>{let o=i.createHash(a).update(e).digest(`base64`),s=new d(`${a}-${o}${r}`,t);if(s.algorithm&&s.digest){let e=s.algorithm;n[e]||(n[e]=[]),n[e].push(s)}return n},new f)}e.exports.fromStream=v;function v(e,t){t||={};let n=t.Promise||Promise,r=x(t);return new n((t,n)=>{e.pipe(r),e.on(`error`,n),r.on(`error`,n);let i;r.on(`integrity`,e=>{i=e}),r.on(`end`,()=>t(i)),r.on(`data`,()=>{})})}e.exports.checkData=y;function y(e,t,n){if(n||={},t=p(t,n),!Object.keys(t).length){if(n.error)throw Object.assign(/* @__PURE__ */ Error(`No valid integrity hashes to check against`),{code:`EINTEGRITY`});return!1}let r=t.pickAlgorithm(n),a=p({algorithm:r,digest:i.createHash(r).update(e).digest(`base64`)}),o=a.match(t,n);if(o||!n.error)return o;if(typeof n.size==`number`&&e.length!==n.size){let r=/* @__PURE__ */ Error(`data size mismatch when checking ${t}.\n  Wanted: ${n.size}\n  Found: ${e.length}`);throw r.code=`EBADSIZE`,r.found=e.length,r.expected=n.size,r.sri=t,r}{let n=/* @__PURE__ */ Error(`Integrity checksum failed when using ${r}: Wanted ${t}, but got ${a}. (${e.length} bytes)`);throw n.code=`EINTEGRITY`,n.found=a,n.expected=t,n.algorithm=r,n.sri=t,n}}e.exports.checkStream=b;function b(e,t,n){n||={};let r=n.Promise||Promise,i=x(Object.assign({},n,{integrity:t}));return new r((t,n)=>{e.pipe(i),e.on(`error`,n),i.on(`error`,n);let r;i.on(`verified`,e=>{r=e}),i.on(`end`,()=>t(r)),i.on(`data`,()=>{})})}e.exports.integrityStream=x;function x(e){e||={};let t=e.integrity&&p(e.integrity,e),n=t&&Object.keys(t).length,r=n&&t.pickAlgorithm(e),o=n&&t[r],s=Array.from(new Set((e.algorithms||[`sha512`]).concat(r?[r]:[]))),c=s.map(i.createHash),l=0,u=new a({transform(e,t,n){l+=e.length,c.forEach(n=>n.update(e,t)),n(null,e,t)}}).on(`end`,()=>{let i=e.options&&e.options.length?`?${e.options.join(`?`)}`:``,a=p(c.map((e,t)=>`${s[t]}-${e.digest(`base64`)}${i}`).join(` `),e),d=n&&a.match(t,e);if(typeof e.size==`number`&&l!==e.size){let n=/* @__PURE__ */ Error(`stream size mismatch when checking ${t}.\n  Wanted: ${e.size}\n  Found: ${l}`);n.code=`EBADSIZE`,n.found=l,n.expected=e.size,n.sri=t,u.emit(`error`,n)}else if(e.integrity&&!d){let e=/* @__PURE__ */ Error(`${t} integrity checksum failed when using ${r}: wanted ${o} but got ${a}. (${l} bytes)`);e.code=`EINTEGRITY`,e.found=a,e.expected=o,e.algorithm=r,e.sri=t,u.emit(`error`,e)}else u.emit(`size`,l),u.emit(`integrity`,a),d&&u.emit(`verified`,d)});return u}e.exports.create=S;function S(e){e||={};let t=e.algorithms||[`sha512`],n=e.options&&e.options.length?`?${e.options.join(`?`)}`:``,r=t.map(i.createHash);return{update:function(e,t){return r.forEach(n=>n.update(e,t)),this},digest:function(i){return t.reduce((t,i)=>{let a=r.shift().digest(`base64`),o=new d(`${i}-${a}${n}`,e);if(o.algorithm&&o.digest){let e=o.algorithm;t[e]||(t[e]=[]),t[e].push(o)}return t},new f)}}}let C=new Set(i.getHashes()),w=[`md5`,`whirlpool`,`sha1`,`sha224`,`sha256`,`sha384`,`sha512`,`sha3`,`sha3-256`,`sha3-384`,`sha3-512`,`sha3_256`,`sha3_384`,`sha3_512`].filter(e=>C.has(e));function T(e,t){return w.indexOf(e.toLowerCase())>=w.indexOf(t.toLowerCase())?e:t}}),,,,,(function(e,t,n){e.exports=g,g.Minimatch=_;var r={sep:`/`};try{r=n(0)}catch{}var i=g.GLOBSTAR=_.GLOBSTAR={},a=n(175),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=s+`*?`,l=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,u=`(?:(?!(?:\\/|^)\\.).)*?`,d=f(`().*{}+?[]^$\\!`);function f(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var p=/\/+/;g.filter=m;function m(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function h(e,t){e||={},t||={};var n={};return Object.keys(t).forEach(function(e){n[e]=t[e]}),Object.keys(e).forEach(function(t){n[t]=e[t]}),n}g.defaults=function(e){if(!e||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t.minimatch(n,r,h(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,h(e,r))},n},_.defaults=function(e){return!e||!Object.keys(e).length?_:g.defaults(e).Minimatch};function g(e,t,n){if(typeof t!=`string`)throw TypeError(`glob pattern string required`);return n||={},!n.nocomment&&t.charAt(0)===`#`?!1:t.trim()===``?e===``:new _(t,n).match(e)}function _(e,t){if(!(this instanceof _))return new _(e,t);if(typeof e!=`string`)throw TypeError(`glob pattern string required`);t||={},e=e.trim(),r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}_.prototype.debug=function(){},_.prototype.make=v;function v(){if(!this._made){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`)this.comment=!0;else if(!e)this.empty=!0;else{this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(p)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}}}_.prototype.parseNegate=y;function y(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)===`!`;i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}g.braceExpand=function(e,t){return b(e,t)},_.prototype.braceExpand=b;function b(e,t){if(t||=this instanceof _?this.options:{},e=e===void 0?this.pattern:e,e===void 0)throw TypeError(`undefined pattern`);return t.nobrace||!e.match(/\{.*\}/)?[e]:a(e)}_.prototype.parse=S;var x={};function S(e,t){if(e.length>65536)throw TypeError(`pattern is too long`);var n=this.options;if(!n.noglobstar&&e===`**`)return i;if(e===``)return``;var r=``,a=!!n.nocase,l=!1,u=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+p}v.debug(`clearStateChar %j %j`,p,r),p=!1}}for(var b=0,S=e.length,C;b<S&&(C=e.charAt(b));b++)if(this.debug(`%s	%s %s %j`,e,b,r,C),l&&d[C])r+=`\\`+C,l=!1;else switch(C){case`/`:return!1;case`\\`:y(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s	%s %s %j <-- stateChar`,e,b,r,C),m){this.debug(`  in class`),C===`!`&&b===g+1&&(C=`^`),r+=C;continue}v.debug(`call clearStateChar %j`,p),y(),p=C,n.noext&&y();continue;case`(`:if(m){r+=`(`;continue}if(!p){r+=`\\(`;continue}u.push({type:p,start:b-1,reStart:r.length,open:o[p].open,close:o[p].close}),r+=p===`!`?`(?:(?!(?:`:`(?:`,this.debug(`plType %j %j`,p,r),p=!1;continue;case`)`:if(m||!u.length){r+=`\\)`;continue}y(),a=!0;var w=u.pop();r+=w.close,w.type===`!`&&f.push(w),w.reEnd=r.length;continue;case`|`:if(m||!u.length||l){r+=`\\|`,l=!1;continue}y(),r+=`|`;continue;case`[`:if(y(),m){r+=`\\`+C;continue}m=!0,g=b,h=r.length,r+=C;continue;case`]`:if(b===g+1||!m){r+=`\\`+C,l=!1;continue}if(m){var E=e.substring(g+1,b);try{RegExp(`[`+E+`]`)}catch{var D=this.parse(E,x);r=r.substr(0,h)+`\\[`+D[0]+`\\]`,a||=D[1],m=!1;continue}}a=!0,m=!1,r+=C;continue;default:y(),l?l=!1:d[C]&&!(C===`^`&&m)&&(r+=`\\`),r+=C}for(m&&(E=e.substr(g+1),D=this.parse(E,x),r=r.substr(0,h)+`\\[`+D[0],a||=D[1]),w=u.pop();w;w=u.pop()){var O=r.slice(w.reStart+w.open.length);this.debug(`setting tail`,r,w),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){return n||=`\\`,t+t+n+`|`}),this.debug(`tail=%j
   %s`,O,O,w,r);var k=w.type===`*`?c:w.type===`?`?s:`\\`+w.type;a=!0,r=r.slice(0,w.reStart)+k+`\\(`+O}y(),l&&(r+=`\\\\`);var A=!1;switch(r.charAt(0)){case`.`:case`[`:case`(`:A=!0}for(var j=f.length-1;j>-1;j--){var M=f[j],ee=r.slice(0,M.reStart),te=r.slice(M.reStart,M.reEnd-8),N=r.slice(M.reEnd-8,M.reEnd),ne=r.slice(M.reEnd);N+=ne;var re=ee.split(`(`).length-1,P=ne;for(b=0;b<re;b++)P=P.replace(/\)[+*?]?/,``);ne=P;var F=``;ne===``&&t!==x&&(F=`$`),r=ee+te+ne+F+N}if(r!==``&&a&&(r=`(?=.)`+r),A&&(r=_+r),t===x)return[r,a];if(!a)return T(e);var I=n.nocase?`i`:``;try{var L=RegExp(`^`+r+`$`,I)}catch{return/* @__PURE__ */ RegExp(`$.`)}return L._glob=e,L._src=r,L}g.makeRe=function(e,t){return new _(e,t||{}).makeRe()},_.prototype.makeRe=C;function C(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?c:t.dot?l:u,r=t.nocase?`i`:``,a=e.map(function(e){return e.map(function(e){return e===i?n:typeof e==`string`?E(e):e._src}).join(`\\/`)}).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,r)}catch{this.regexp=!1}return this.regexp}g.match=function(e,t,n){n||={};var r=new _(t,n);return e=e.filter(function(e){return r.match(e)}),r.options.nonull&&!e.length&&e.push(t),e},_.prototype.match=w;function w(e,t){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;var n=this.options;r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),e=e.split(p),this.debug(this.pattern,`split`,e);var i=this.set;this.debug(this.pattern,`set`,i);for(var a,o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],c=e;if(n.matchBase&&s.length===1&&(c=[a]),this.matchOne(c,s,t))return n.flipNegate?!0:!this.negate}return!n.flipNegate&&this.negate}_.prototype.matchOne=function(e,t,n){var r=this.options;this.debug(`matchOne`,{this:this,file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===i){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!r.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
globstar while`,e,d,t,f,p),this.matchOne(e.slice(d),t.slice(f),n))return this.debug(`globstar found match!`,d,s,p),!0;if(p===`.`||p===`..`||!r.dot&&p.charAt(0)===`.`){this.debug(`dot detected!`,e,d,t,f);break}this.debug(`globstar swallow a segment, and continue`),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,t,f),d===s))}var m;if(typeof l==`string`?(m=r.nocase?u.toLowerCase()===l.toLowerCase():u===l,this.debug(`string match`,l,u,m)):(m=u.match(l),this.debug(`pattern match`,l,u,m)),!m)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)};function T(e){return e.replace(/\\(.)/g,`$1`)}function E(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}}),(function(e,t,n){var r=n(123);e.exports=r(i),e.exports.strict=r(a),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return a(this)},configurable:!0})});function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function a(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}}),,(function(e,t){e.exports=require("buffer")}),,,,(function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on  `+e);return e}}),(function(e,t,n){var r=n(34),i=n(11).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}}),(function(e,t){e.exports=!0}),(function(e,t,n){"use strict";var r=n(46);function i(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}}),(function(e,t,n){var r=n(50).f,i=n(49),a=n(13)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),(function(e,t,n){var r=n(107)(`keys`),i=n(111);e.exports=function(e){return r[e]||(r[e]=i(e))}}),(function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}}),(function(e,t,n){var r=n(131),i=n(67);e.exports=function(e){return r(i(e))}}),(function(e,t,n){e.exports=y;var r=n(3),i=n(114),a=n(60);a.Minimatch;var o=n(42),s=n(54).EventEmitter,c=n(0),l=n(22),u=n(76),d=n(218),f=n(115);f.alphasort,f.alphasorti;var p=f.setopts,m=f.ownProp,h=n(223);n(2);var g=f.childrenIgnored,_=f.isIgnored,v=n(61);function y(e,t,n){if(typeof t==`function`&&(n=t,t={}),t||={},t.sync){if(n)throw TypeError(`callback provided to sync glob`);return d(e,t)}return new S(e,t,n)}y.sync=d;var b=y.GlobSync=d.GlobSync;y.glob=y;function x(e,t){if(typeof t!=`object`||!t)return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}y.hasMagic=function(e,t){var n=x({},t);n.noprocess=!0;var r=new S(e,n).minimatch.set;if(!e)return!1;if(r.length>1)return!0;for(var i=0;i<r[0].length;i++)if(typeof r[0][i]!=`string`)return!0;return!1},y.Glob=S,o(S,s);function S(e,t,n){if(typeof t==`function`&&(n=t,t=null),t&&t.sync){if(n)throw TypeError(`callback provided to sync glob`);return new b(e,t)}if(!(this instanceof S))return new S(e,t,n);p(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=Array(r),typeof n==`function`&&(n=v(n),this.on(`error`,n),this.on(`end`,function(e){n(null,e)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(r===0)return s();for(var a=!0,o=0;o<r;o++)this._process(this.minimatch.set[o],o,!1,s);a=!1;function s(){--i._processing,i._processing<=0&&(a?process.nextTick(function(){i._finish()}):i._finish())}}S.prototype._finish=function(){if(l(this instanceof S),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();f.finish(this),this.emit(`end`,this.found)}},S.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r);function r(){--e===0&&t._finish()}},S.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var r=Object.keys(n),a=this,o=r.length;if(o===0)return t();var s=this.matches[e]=Object.create(null);r.forEach(function(n,r){n=a._makeAbs(n),i.realpath(n,a.realpathCache,function(r,i){r?r.syscall===`stat`?s[n]=!0:a.emit(`error`,r):s[i]=!0,--o===0&&(a.matches[e]=s,t())})})},S.prototype._mark=function(e){return f.mark(this,e)},S.prototype._makeAbs=function(e){return f.makeAbs(this,e)},S.prototype.abort=function(){this.aborted=!0,this.emit(`abort`)},S.prototype.pause=function(){this.paused||(this.paused=!0,this.emit(`pause`))},S.prototype.resume=function(){if(this.paused){if(this.emit(`resume`),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<r.length;t++){var i=r[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},S.prototype._process=function(e,t,n,r){if(l(this instanceof S),l(typeof r==`function`),!this.aborted){if(this._processing++,this.paused)this._processQueue.push([e,t,n,r]);else{for(var i=0;typeof e[i]==`string`;)i++;var o;switch(i){case e.length:this._processSimple(e.join(`/`),t,r);return;case 0:o=null;break;default:o=e.slice(0,i).join(`/`)}var s=e.slice(i),c;o===null?c=`.`:((u(o)||u(e.join(`/`)))&&(o&&u(o)||(o=`/`+o)),c=o);var d=this._makeAbs(c);if(g(this,c))return r();s[0]===a.GLOBSTAR?this._processGlobStar(o,c,d,s,t,n,r):this._processReaddir(o,c,d,s,t,n,r)}}},S.prototype._processReaddir=function(e,t,n,r,i,a,o){var s=this;this._readdir(n,a,function(c,l){return s._processReaddir2(e,t,n,r,i,a,l,o)})},S.prototype._processReaddir2=function(e,t,n,r,i,a,o,s){if(!o)return s();for(var l=r[0],u=!!this.minimatch.negate,d=l._glob,f=this.dot||d.charAt(0)===`.`,p=[],m=0;m<o.length;m++){var h=o[m];(h.charAt(0)!==`.`||f)&&(u&&!e?!h.match(l):h.match(l))&&p.push(h)}var g=p.length;if(g===0)return s();if(r.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var m=0;m<g;m++){var h=p[m];e&&(h=e===`/`?e+h:e+`/`+h),h.charAt(0)===`/`&&!this.nomount&&(h=c.join(this.root,h)),this._emitMatch(i,h)}return s()}r.shift();for(var m=0;m<g;m++){var h=p[m];e&&(h=e===`/`?e+h:e+`/`+h),this._process([h].concat(r),i,a,s)}s()},S.prototype._emitMatch=function(e,t){if(!this.aborted&&!_(this,t)){if(this.paused)this._emitQueue.push([e,t]);else{var n=u(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if(r===`DIR`||Array.isArray(r))return}this.matches[e][t]=!0;var i=this.statCache[n];i&&this.emit(`stat`,t,i),this.emit(`match`,t)}}}},S.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var n=`lstat\0`+e,i=this,a=h(n,o);a&&r.lstat(e,a);function o(n,r){if(n&&n.code===`ENOENT`)return t();var a=r&&r.isSymbolicLink();i.symlinks[e]=a,!a&&r&&!r.isDirectory()?(i.cache[e]=`FILE`,t()):i._readdir(e,!1,t)}},S.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=h(`readdir\0`+e+`\0`+t,n),n)){if(t&&!m(this.symlinks,e))return this._readdirInGlobStar(e,n);if(m(this.cache,e)){var i=this.cache[e];if(!i||i===`FILE`)return n();if(Array.isArray(i))return n(null,i)}r.readdir(e,C(this,e,n))}};function C(e,t,n){return function(r,i){r?e._readdirError(t,r,n):e._readdirEntries(t,i,n)}}S.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];i=e===`/`?e+i:e+`/`+i,this.cache[i]=!0}return this.cache[e]=t,n(null,t)}},S.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case`ENOTSUP`:case`ENOTDIR`:var r=this._makeAbs(e);if(this.cache[r]=`FILE`,r===this.cwdAbs){var i=/* @__PURE__ */ Error(t.code+` invalid cwd `+this.cwd);i.path=this.cwd,i.code=t.code,this.emit(`error`,i),this.abort()}break;case`ENOENT`:case`ELOOP`:case`ENAMETOOLONG`:case`UNKNOWN`:this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit(`error`,t),this.abort()),this.silent||console.error(`glob error`,t)}return n()}},S.prototype._processGlobStar=function(e,t,n,r,i,a,o){var s=this;this._readdir(n,a,function(c,l){s._processGlobStar2(e,t,n,r,i,a,l,o)})},S.prototype._processGlobStar2=function(e,t,n,r,i,a,o,s){if(!o)return s();var c=r.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,i,!1,s);var d=this.symlinks[n],f=o.length;if(d&&a)return s();for(var p=0;p<f;p++)if(o[p].charAt(0)!==`.`||this.dot){var m=l.concat(o[p],c);this._process(m,i,!0,s);var h=l.concat(o[p],r);this._process(h,i,!0,s)}s()},S.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,function(i,a){r._processSimple2(e,t,i,a,n)})},S.prototype._processSimple2=function(e,t,n,r,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!r)return i();if(e&&u(e)&&!this.nomount){var a=/[\/\\]$/.test(e);e.charAt(0)===`/`?e=c.join(this.root,e):(e=c.resolve(this.root,e),a&&(e+=`/`))}process.platform===`win32`&&(e=e.replace(/\\/g,`/`)),this._emitMatch(t,e),i()},S.prototype._stat=function(e,t){var n=this._makeAbs(e),i=e.slice(-1)===`/`;if(e.length>this.maxLength)return t();if(!this.stat&&m(this.cache,n)){var a=this.cache[n];if(Array.isArray(a)&&(a=`DIR`),!i||a===`DIR`)return t(null,a);if(i&&a===`FILE`)return t()}var o=this.statCache[n];if(o!==void 0){if(o===!1)return t(null,o);var s=o.isDirectory()?`DIR`:`FILE`;return i&&s===`FILE`?t():t(null,s,o)}var c=this,l=h(`stat\0`+n,u);l&&r.lstat(n,l);function u(i,a){if(a&&a.isSymbolicLink())return r.stat(n,function(r,i){r?c._stat2(e,n,null,a,t):c._stat2(e,n,r,i,t)});c._stat2(e,n,i,a,t)}},S.prototype._stat2=function(e,t,n,r,i){if(n&&(n.code===`ENOENT`||n.code===`ENOTDIR`))return this.statCache[t]=!1,i();var a=e.slice(-1)===`/`;if(this.statCache[t]=r,t.slice(-1)===`/`&&r&&!r.isDirectory())return i(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?`DIR`:`FILE`),this.cache[t]=this.cache[t]||o,a&&o===`FILE`?i():i(null,o,r)}}),(function(e,t,n){"use strict";function r(e){return e.charAt(0)===`/`}function i(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||``,r=!!(n&&n.charAt(1)!==`:`);return!!(t[2]||r)}e.exports=process.platform===`win32`?i:r,e.exports.posix=r,e.exports.win32=i}),,,(function(e,t){e.exports=require("tty")}),,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=`lockfile`){return e=(0,(s||c()).default)(e),E(e)?O(e,t):{type:`success`,object:D(e,t)}};var r;function i(){return r=h(n(2))}var a;function o(){return a=h(n(7))}var s;function c(){return s=h(n(122))}var l;function u(){return l=n(6)}var d;function f(){return d=n(4)}var p;function m(){return p=h(n(20))}function h(e){return e&&e.__esModule?e:{default:e}}let g=/^yarn lockfile v(\d+)$/,_={boolean:`BOOLEAN`,string:`STRING`,identifier:`IDENTIFIER`,eof:`EOF`,colon:`COLON`,newline:`NEWLINE`,comment:`COMMENT`,indent:`INDENT`,invalid:`INVALID`,number:`NUMBER`,comma:`COMMA`},v=[_.boolean,_.string,_.number];function y(e){return v.indexOf(e.type)>=0}function*b(e){let t=!1,n=1,r=0;function i(e,t){return{line:n,col:r,type:e,value:t}}for(;e.length;){let a=0;if(e[0]===`
`||e[0]===`\r`)a++,e[1]===`
`&&a++,n++,r=0,yield i(_.newline);else if(e[0]===`#`){a++;let t=``;for(;e[a]!==`
`;)t+=e[a],a++;yield i(_.comment,t)}else if(e[0]===` `){if(t){let t=``;for(let n=0;e[n]===` `;n++)t+=e[n];if(t.length%2)throw TypeError(`Invalid number of spaces`);a=t.length,yield i(_.indent,t.length/2)}else a++}else if(e[0]===`"`){let t=``;for(let n=0;;n++){let r=e[n];if(t+=r,n>0&&r===`"`&&(e[n-1]!==`\\`||e[n-2]===`\\`))break}a=t.length;try{yield i(_.string,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)yield i(_.invalid);else throw e}}else if(/^[0-9]/.test(e)){let t=``;for(let n=0;/^[0-9]$/.test(e[n]);n++)t+=e[n];a=t.length,yield i(_.number,+t)}else if(/^true/.test(e))yield i(_.boolean,!0),a=4;else if(/^false/.test(e))yield i(_.boolean,!1),a=5;else if(e[0]===`:`)yield i(_.colon),a++;else if(e[0]===`,`)yield i(_.comma),a++;else if(/^[a-zA-Z\/-]/g.test(e)){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`:`||r===` `||r===`
`||r===`\r`||r===`,`)break;t+=r}a=t.length,yield i(_.string,t)}else yield i(_.invalid);a||(yield i(_.invalid)),r+=a,t=e[0]===`
`||e[0]===`\r`&&e[1]===`
`,e=e.slice(a)}yield i(_.eof)}class x{constructor(e,t=`lockfile`){this.comments=[],this.tokens=b(e),this.fileLoc=t}onComment(e){let t=e.value;(0,(a||o()).default)(typeof t==`string`,`expected token value to be a string`);let n=t.trim(),r=n.match(g);if(r){let e=+r[1];if(e>(l||u()).LOCKFILE_VERSION)throw new(d||(f())).MessageError(`Can't install from a lockfile of version ${e} as you're on an old yarn version that only supports versions up to ${(l||u()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(n)}next(){let e=this.tokens.next();(0,(a||o()).default)(e,`expected a token`);let t=e.done,n=e.value;if(t||!n)throw Error(`No more tokens`);return n.type===_.comment?(this.onComment(n),this.next()):this.token=n}unexpected(e=`Unexpected token`){throw SyntaxError(`${e} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(e){this.token.type===e?this.next():this.unexpected()}eat(e){return this.token.type===e&&(this.next(),!0)}parse(e=0){let t=(0,(p||m()).default)();for(;;){let p=this.token;if(p.type===_.newline){let t=this.next();if(!e)continue;if(t.type!==_.indent)break;if(t.value===e)this.next();else break}else if(p.type===_.indent){if(p.value===e)this.next();else break}else if(p.type===_.eof)break;else if(p.type===_.string){let r=p.value;(0,(a||o()).default)(r,`Expected a key`);let i=[r];for(this.next();this.token.type===_.comma;){this.next();let e=this.token;e.type!==_.string&&this.unexpected(`Expected string`);let t=e.value;(0,(a||o()).default)(t,`Expected a key`),i.push(t),this.next()}let m=this.token;if(m.type===_.colon){this.next();let r=this.parse(e+1);for(var n=i,s=Array.isArray(n),c=0,n=s?n:n[Symbol.iterator]();;){var l;if(s){if(c>=n.length)break;l=n[c++]}else{if(c=n.next(),c.done)break;l=c.value}let e=l;t[e]=r}if(e&&this.token.type!==_.indent)break}else if(y(m)){for(var u=i,d=Array.isArray(u),f=0,u=d?u:u[Symbol.iterator]();;){var h;if(d){if(f>=u.length)break;h=u[f++]}else{if(f=u.next(),f.done)break;h=f.value}let e=h;t[e]=m.value}this.next()}else this.unexpected(`Invalid value type`)}else this.unexpected(`Unknown token: ${(r||i()).default.inspect(p)}`)}return t}}let S=`>>>>>>>`,C=`=======`,w=`<<<<<<<`;function T(e){let t=[[],[]],n=e.split(/\r?\n/g),r=!1;for(;n.length;){let e=n.shift();if(e.startsWith(w)){for(;n.length;){let e=n.shift();if(e===C){r=!1;break}r||e.startsWith(`|||||||`)?r=!0:t[0].push(e)}for(;n.length;){let e=n.shift();if(e.startsWith(S))break;t[1].push(e)}}else t[0].push(e),t[1].push(e)}return[t[0].join(`
`),t[1].join(`
`)]}function E(e){return e.includes(w)&&e.includes(C)&&e.includes(S)}function D(e,t){let n=new x(e,t);return n.next(),n.parse()}function O(e,t){let n=T(e);try{return{type:`merge`,object:Object.assign({},D(n[0],t),D(n[1],t))}}catch(e){if(e instanceof SyntaxError)return{type:`conflict`,object:{}};throw e}}}),,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r;function i(){return r=a(n(20))}function a(e){return e&&e.__esModule?e:{default:e}}let o=n(212)(`yarn`);class s{constructor(e,t=1/0){this.concurrencyQueue=[],this.maxConcurrency=t,this.runningCount=0,this.warnedStuck=!1,this.alias=e,this.first=!0,this.running=(0,(r||i()).default)(),this.queue=(0,(r||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(e,t){return this.first?this.first=!1:this.stillActive(),new Promise((n,r)=>{(this.queue[e]=this.queue[e]||[]).push({factory:t,resolve:n,reject:r}),this.running[e]||this.shift(e)})}shift(e){this.running[e]&&(delete this.running[e],this.runningCount--,this.stuckTimer&&=(clearTimeout(this.stuckTimer),null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let t=this.queue[e];if(!t)return;var n=t.shift();let r=n.resolve,i=n.reject,a=n.factory;t.length||delete this.queue[e];let s=()=>{this.shift(e),this.shiftConcurrencyQueue()};this.maybePushConcurrencyQueue(()=>{this.running[e]=!0,this.runningCount++,a().then(function(e){return r(e),s(),null}).catch(function(e){i(e),s()})})}maybePushConcurrencyQueue(e){this.runningCount<this.maxConcurrency?e():this.concurrencyQueue.push(e)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let e=this.concurrencyQueue.shift();e&&e()}}}t.default=s}),(function(e,t){e.exports=function(e){try{return!!e()}catch{return!0}}}),,,,,,,,,,,,,,,(function(e,t,n){var r=n(47),i=n(13)(`toStringTag`),a=r(function(){return arguments}())==`Arguments`,o=function(e,t){try{return e[t]}catch{}};e.exports=function(e){var t,n,s;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=o(t=Object(e),i))==`string`?n:a?r(t):(s=r(t))==`Object`&&typeof t.callee==`function`?`Arguments`:s}}),(function(e,t){e.exports=`constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf`.split(`,`)}),(function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement}),(function(e,t,n){"use strict";var r=n(69),i=n(41),a=n(197),o=n(31),s=n(35),c=n(188),l=n(71),u=n(194),d=n(13)(`iterator`),f=!([].keys&&`next`in[].keys()),p=`@@iterator`,m=`keys`,h=`values`,g=function(){return this};e.exports=function(e,t,n,_,v,y,b){c(n,t,_);var x=function(e){if(!f&&e in T)return T[e];switch(e){case m:return function(){return new n(this,e)};case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+` Iterator`,C=v==h,w=!1,T=e.prototype,E=T[d]||T[p]||v&&T[v],D=E||x(v),O=v?C?x(`entries`):D:void 0,k=t==`Array`&&T.entries||E,A,j,M;if(k&&(M=u(k.call(new e)),M!==Object.prototype&&M.next&&(l(M,S,!0),!r&&typeof M[d]!=`function`&&o(M,d,g))),C&&E&&E.name!==h&&(w=!0,D=function(){return E.call(this)}),r&&!b||!f&&!w&&T[d]||o(T,d,D),s[t]=D,s[S]=g,v){if(A={values:C?D:x(h),keys:y?D:x(m),entries:O},b)for(j in A)j in T||a(T,j,A[j]);else i(i.P+i.F*(f||w),t,A)}return A}}),(function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}}),(function(e,t,n){var r=n(27),i=n(34),a=n(70);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}}),(function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),(function(e,t,n){var r=n(23),i=n(11),a=`__core-js_shared__`,o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=t===void 0?{}:t)})(`versions`,[]).push({version:r.version,mode:n(69)?`pure`:`global`,copyright:`© 2018 Denis Pushkarev (zloirock.ru)`})}),(function(e,t,n){var r=n(27),i=n(46),a=n(13)(`species`);e.exports=function(e,t){var n=r(e).constructor,o;return n===void 0||(o=r(n)[a])==null?t:i(o)}}),(function(e,t,n){var r=n(48),i=n(185),a=n(102),o=n(68),s=n(11),c=s.process,l=s.setImmediate,u=s.clearImmediate,d=s.MessageChannel,f=s.Dispatch,p=0,m={},h=`onreadystatechange`,g,_,v,y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){y.call(e.data)};l&&u||(l=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++p]=function(){i(typeof e==`function`?e:Function(e),t)},g(p),p},u=function(e){delete m[e]},n(47)(c)==`process`?g=function(e){c.nextTick(r(y,e,1))}:f&&f.now?g=function(e){f.now(r(y,e,1))}:d?(_=new d,v=_.port2,_.port1.onmessage=b,g=r(v.postMessage,v,1)):s.addEventListener&&typeof postMessage==`function`&&!s.importScripts?(g=function(e){s.postMessage(e+``,`*`)},s.addEventListener(`message`,b,!1)):g=h in o(`script`)?function(e){a.appendChild(o(`script`))[h]=function(){a.removeChild(this),y.call(e)}}:function(e){setTimeout(r(y,e,1),0)}),e.exports={set:l,clear:u}}),(function(e,t,n){var r=n(73),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),(function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(`.concat(e===void 0?``:e,`)_`,(++n+r).toString(36))}}),(function(e,t,n){t=e.exports=i.debug=i.default=i,t.coerce=l,t.disable=s,t.enable=o,t.enabled=c,t.humanize=n(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(e){var n=0,r;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}function i(e){var n;function i(){if(i.enabled){var e=i,r=+/* @__PURE__ */ new Date;e.diff=r-(n||r),e.prev=n,e.curr=r,n=r;for(var a=Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];a[0]=t.coerce(a[0]),typeof a[0]!=`string`&&a.unshift(`%O`);var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if(n===`%%`)return n;s++;var i=t.formatters[r];if(typeof i==`function`){var o=a[s];n=i.call(e,o),a.splice(s,1),s--}return n}),t.formatArgs.call(e,a),(i.log||t.log||console.log.bind(console)).apply(e,a)}}return i.namespace=e,i.enabled=t.enabled(e),i.useColors=t.useColors(),i.color=r(e),i.destroy=a,typeof t.init==`function`&&t.init(i),t.instances.push(i),i}function a(){var e=t.instances.indexOf(this);return e!==-1&&(t.instances.splice(e,1),!0)}function o(e){t.save(e),t.names=[],t.skips=[];var n,r=(typeof e==`string`?e:``).split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&(e=r[n].replace(/\*/g,`.*?`),e[0]===`-`?t.skips.push(RegExp(`^`+e.substr(1)+`$`)):t.names.push(RegExp(`^`+e+`$`)));for(n=0;n<t.instances.length;n++){var a=t.instances[n];a.enabled=t.enabled(a.namespace)}}function s(){t.enable(``)}function c(e){if(e[e.length-1]===`*`)return!0;for(var n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}}),,(function(e,t,n){e.exports=u,u.realpath=u,u.sync=d,u.realpathSync=d,u.monkeypatch=f,u.unmonkeypatch=p;var r=n(3),i=r.realpath,a=r.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),c=n(217);function l(e){return e&&e.syscall===`realpath`&&(e.code===`ELOOP`||e.code===`ENOMEM`||e.code===`ENAMETOOLONG`)}function u(e,t,n){if(s)return i(e,t,n);typeof t==`function`&&(n=t,t=null),i(e,t,function(r,i){l(r)?c.realpath(e,t,n):n(r,i)})}function d(e,t){if(s)return a(e,t);try{return a(e,t)}catch(n){if(l(n))return c.realpathSync(e,t);throw n}}function f(){r.realpath=u,r.realpathSync=d}function p(){r.realpath=i,r.realpathSync=a}}),(function(e,t,n){t.alphasort=l,t.alphasorti=c,t.setopts=f,t.ownProp=r,t.makeAbs=h,t.finish=p,t.mark=m,t.isIgnored=g,t.childrenIgnored=_;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=n(0),a=n(60),o=n(76),s=a.Minimatch;function c(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function l(e,t){return e.localeCompare(t)}function u(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(d))}function d(e){var t=null;return e.slice(-3)===`/**`&&(t=new s(e.replace(/(\/\*\*)+$/,``),{dot:!0})),{matcher:new s(e,{dot:!0}),gmatcher:t}}function f(e,t,n){if(n||={},n.matchBase&&t.indexOf(`/`)===-1){if(n.noglobstar)throw Error(`base matching requires globstar`);t=`**/`+t}e.silent=!!n.silent,e.pattern=t,e.strict=n.strict!==!1,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),u(e,n),e.changedCwd=!1;var a=process.cwd();r(n,`cwd`)?(e.cwd=i.resolve(n.cwd),e.changedCwd=e.cwd!==a):e.cwd=a,e.root=n.root||i.resolve(e.cwd,`/`),e.root=i.resolve(e.root),process.platform===`win32`&&(e.root=e.root.replace(/\\/g,`/`)),e.cwdAbs=o(e.cwd)?e.cwd:h(e,e.cwd),process.platform===`win32`&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,`/`)),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new s(t,n),e.options=e.minimatch.options}function p(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,i=e.matches.length;r<i;r++){var a=e.matches[r];if(!a||Object.keys(a).length===0){if(e.nonull){var o=e.minimatch.globSet[r];t?n.push(o):n[o]=!0}}else{var s=Object.keys(a);t?n.push.apply(n,s):s.forEach(function(e){n[e]=!0})}}if(t||(n=Object.keys(n)),e.nosort||(n=n.sort(e.nocase?c:l)),e.mark){for(var r=0;r<n.length;r++)n[r]=e._mark(n[r]);e.nodir&&(n=n.filter(function(t){var n=!/\/$/.test(t),r=e.cache[t]||e.cache[h(e,t)];return n&&r&&(n=r!==`DIR`&&!Array.isArray(r)),n}))}e.ignore.length&&(n=n.filter(function(t){return!g(e,t)})),e.found=n}function m(e,t){var n=h(e,t),r=e.cache[n],i=t;if(r){var a=r===`DIR`||Array.isArray(r),o=t.slice(-1)===`/`;if(a&&!o?i+=`/`:!a&&o&&(i=i.slice(0,-1)),i!==t){var s=h(e,i);e.statCache[s]=e.statCache[n],e.cache[s]=e.cache[n]}}return i}function h(e,t){var n=t;return n=t.charAt(0)===`/`?i.join(e.root,t):o(t)||t===``?t:e.changedCwd?i.resolve(e.cwd,t):i.resolve(t),process.platform===`win32`&&(n=n.replace(/\\/g,`/`)),n}function g(e,t){return e.ignore.length?e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}):!1}function _(e,t){return e.ignore.length?e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}):!1}}),(function(e,t,n){var r=n(0),i=n(3),a=511;e.exports=o.mkdirp=o.mkdirP=o;function o(e,t,n,s){typeof t==`function`?(n=t,t={}):t&&typeof t==`object`||(t={mode:t});var c=t.mode,l=t.fs||i;c===void 0&&(c=a&~process.umask()),s||=null;var u=n||function(){};e=r.resolve(e),l.mkdir(e,c,function(n){if(!n)return s||=e,u(null,s);switch(n.code){case`ENOENT`:o(r.dirname(e),t,function(n,r){n?u(n,r):o(e,t,u,r)});break;default:l.stat(e,function(e,t){e||!t.isDirectory()?u(n,s):u(null,s)})}})}o.sync=function e(t,n,o){n&&typeof n==`object`||(n={mode:n});var s=n.mode,c=n.fs||i;s===void 0&&(s=a&~process.umask()),o||=null,t=r.resolve(t);try{c.mkdirSync(t,s),o||=t}catch(i){switch(i.code){case`ENOENT`:o=e(r.dirname(t),n,o),e(t,n,o);break;default:var l;try{l=c.statSync(t)}catch{throw i}if(!l.isDirectory())throw i}}return o}}),,,,,,(function(e,t,n){"use strict";e.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string, got `+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}}),(function(e,t){e.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}}),,,,,,,,(function(e,t,n){var r=n(47);e.exports=Object(`z`).propertyIsEnumerable(0)?Object:function(e){return r(e)==`String`?e.split(``):Object(e)}}),(function(e,t,n){var r=n(195),i=n(101);e.exports=Object.keys||function(e){return r(e,i)}}),(function(e,t,n){var r=n(67);e.exports=function(e){return Object(r(e))}}),,,,,,,,,,,,(function(e,t){e.exports={name:`yarn`,installationMethod:`unknown`,version:`1.10.0-0`,license:`BSD-2-Clause`,preferGlobal:!0,description:`📦🐈 Fast, reliable, and secure dependency management.`,dependencies:{"@zkochan/cmd-shim":`^2.2.4`,"babel-runtime":`^6.26.0`,bytes:`^3.0.0`,camelcase:`^4.0.0`,chalk:`^2.1.0`,commander:`^2.9.0`,death:`^1.0.0`,debug:`^3.0.0`,"deep-equal":`^1.0.1`,"detect-indent":`^5.0.0`,dnscache:`^1.0.1`,glob:`^7.1.1`,"gunzip-maybe":`^1.4.0`,"hash-for-dep":`^1.2.3`,"imports-loader":`^0.8.0`,ini:`^1.3.4`,inquirer:`^3.0.1`,invariant:`^2.2.0`,"is-builtin-module":`^2.0.0`,"is-ci":`^1.0.10`,"is-webpack-bundle":`^1.0.0`,leven:`^2.0.0`,"loud-rejection":`^1.2.0`,micromatch:`^2.3.11`,mkdirp:`^0.5.1`,"node-emoji":`^1.6.1`,"normalize-url":`^2.0.0`,"npm-logical-tree":`^1.2.1`,"object-path":`^0.11.2`,"proper-lockfile":`^2.0.0`,puka:`^1.0.0`,read:`^1.0.7`,request:`^2.87.0`,"request-capture-har":`^1.2.2`,rimraf:`^2.5.0`,semver:`^5.1.0`,ssri:`^5.3.0`,"strip-ansi":`^4.0.0`,"strip-bom":`^3.0.0`,"tar-fs":`^1.16.0`,"tar-stream":`^1.6.1`,uuid:`^3.0.1`,"v8-compile-cache":`^2.0.0`,"validate-npm-package-license":`^3.0.3`,yn:`^2.0.0`},devDependencies:{"babel-core":`^6.26.0`,"babel-eslint":`^7.2.3`,"babel-loader":`^6.2.5`,"babel-plugin-array-includes":`^2.0.3`,"babel-plugin-transform-builtin-extend":`^1.1.2`,"babel-plugin-transform-inline-imports-commonjs":`^1.0.0`,"babel-plugin-transform-runtime":`^6.4.3`,"babel-preset-env":`^1.6.0`,"babel-preset-flow":`^6.23.0`,"babel-preset-stage-0":`^6.0.0`,babylon:`^6.5.0`,commitizen:`^2.9.6`,"cz-conventional-changelog":`^2.0.0`,eslint:`^4.3.0`,"eslint-config-fb-strict":`^22.0.0`,"eslint-plugin-babel":`^5.0.0`,"eslint-plugin-flowtype":`^2.35.0`,"eslint-plugin-jasmine":`^2.6.2`,"eslint-plugin-jest":`^21.0.0`,"eslint-plugin-jsx-a11y":`^6.0.2`,"eslint-plugin-prefer-object-spread":`^1.2.1`,"eslint-plugin-prettier":`^2.1.2`,"eslint-plugin-react":`^7.1.0`,"eslint-plugin-relay":`^0.0.24`,"eslint-plugin-yarn-internal":`file:scripts/eslint-rules`,execa:`^0.10.0`,"flow-bin":`^0.66.0`,"git-release-notes":`^3.0.0`,gulp:`^3.9.0`,"gulp-babel":`^7.0.0`,"gulp-if":`^2.0.1`,"gulp-newer":`^1.0.0`,"gulp-plumber":`^1.0.1`,"gulp-sourcemaps":`^2.2.0`,"gulp-util":`^3.0.7`,"gulp-watch":`^5.0.0`,jest:`^22.4.4`,jsinspect:`^0.12.6`,minimatch:`^3.0.4`,"mock-stdin":`^0.3.0`,prettier:`^1.5.2`,temp:`^0.8.3`,webpack:`^2.1.0-beta.25`,yargs:`^6.3.0`},resolutions:{sshpk:`^1.14.2`},engines:{node:`>=4.0.0`},repository:`yarnpkg/yarn`,bin:{yarn:`./bin/yarn.js`,yarnpkg:`./bin/yarn.js`},scripts:{build:`gulp build`,"build-bundle":`node ./scripts/build-webpack.js`,"build-chocolatey":`powershell ./scripts/build-chocolatey.ps1`,"build-deb":`./scripts/build-deb.sh`,"build-dist":`bash ./scripts/build-dist.sh`,"build-win-installer":`scripts\\build-windows-installer.bat`,changelog:`git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md`,"dupe-check":`yarn jsinspect ./src`,lint:`eslint . && flow check`,"pkg-tests":`yarn --cwd packages/pkg-tests jest yarn.test.js`,prettier:`eslint src __tests__ --fix`,"release-branch":`./scripts/release-branch.sh`,test:`yarn lint && yarn test-only`,"test-only":`node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose`,"test-only-debug":`node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose`,"test-coverage":`node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose`,watch:`gulp watch`,commit:`git-cz`},jest:{collectCoverageFrom:[`src/**/*.js`],testEnvironment:`node`,modulePathIgnorePatterns:[`__tests__/fixtures/`,`packages/pkg-tests/pkg-tests-fixtures`,`dist/`],testPathIgnorePatterns:[`__tests__/(fixtures|__mocks__)/`,`updates/`,`_(temp|mock|install|init|helpers).js$`,`packages/pkg-tests`]},config:{commitizen:{path:`./node_modules/cz-conventional-changelog`}}}}),,,,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r;function i(){return r=n(12)}var a;function o(){return a=n(6)}var s;function c(){return s=n(145)}let l=process.version;function u(e){return e.indexOf(`true`)===0||e.indexOf(`false`)===0||/[:\s\n\\",\[\]]/g.test(e)||/^[0-9]/g.test(e)||!/^[a-zA-Z]/g.test(e)}function d(e){return typeof e==`boolean`||typeof e==`number`||u(e)?JSON.stringify(e):e}let f={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function p(e,t){return f[e]||f[t]?(f[e]||100)>(f[t]||100)?1:-1:(0,(r||i()).sortAlpha)(e,t)}function m(e,t){if(typeof e!=`object`)throw TypeError();let n=t.indent,a=[],o=Object.keys(e).sort(p),s=[];for(let c=0;c<o.length;c++){let l=o[c],u=e[l];if(u==null||s.indexOf(l)>=0)continue;let f=[l];if(typeof u==`object`)for(let t=c+1;t<o.length;t++){let n=o[t];u===e[n]&&f.push(n)}let p=f.sort((r||i()).sortAlpha).map(d).join(`, `);if(typeof u==`string`||typeof u==`boolean`||typeof u==`number`)a.push(`${p} ${d(u)}`);else if(typeof u==`object`)a.push(`${p}:\n${m(u,{indent:n+`  `})}`+(t.topLevel?`
`:``));else throw TypeError();s=s.concat(f)}return n+a.join(`\n${n}`)}function h(e,t,n){let r=m(e,{indent:``,topLevel:!0});if(t)return r;let i=[];return i.push(`# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.`),i.push(`# yarn lockfile v${(a||o()).LOCKFILE_VERSION}`),n&&(i.push(`# yarn v${(s||c()).version}`),i.push(`# node ${l}`)),i.push(`
`),i.push(r),i.join(`
`)}}),,,,,,,,,,,,,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var r;function i(){return r=u(n(1))}let a=(()=>{var e=(0,(r||i()).default)(function*(e,t,n){let r=e===void 0,i=e||-1;if(d===void 0){let e=yield m(t);d=x(e.mtime,n.mtime)}if(!d){if(r)try{i=yield h(t,`a`,n.mode)}catch{try{i=yield h(t,`r`,n.mode)}catch{return}}try{i&&(yield g(i,n.atime,n.mtime))}catch{}finally{r&&i&&(yield p(i))}}});return function(t,n,r){return e.apply(this,arguments)}})();var o;function s(){return o=u(n(3))}var c;function l(){return c=n(40)}function u(e){return e&&e.__esModule?e:{default:e}}let d,f=(0,(c||l()).promisify)((o||s()).default.readFile),p=(0,(c||l()).promisify)((o||s()).default.close),m=(0,(c||l()).promisify)((o||s()).default.lstat),h=(0,(c||l()).promisify)((o||s()).default.open),g=(0,(c||l()).promisify)((o||s()).default.futimes),_=(0,(c||l()).promisify)((o||s()).default.write),v=t.unlink=(0,(c||l()).promisify)(n(233));t.copyFile=(()=>{var e=(0,(r||i()).default)(function*(e,t){try{yield v(e.dest),yield y(e.src,e.dest,0,e)}finally{t&&t()}});return function(t,n){return e.apply(this,arguments)}})();let y=(e,t,n,r)=>(o||s()).default.copyFile?new Promise((i,c)=>(o||s()).default.copyFile(e,t,n,e=>{e?c(e):a(void 0,t,r).then(()=>i()).catch(e=>c(e))})):b(e,t,n,r),b=(()=>{var e=(0,(r||i()).default)(function*(e,t,n,r){let i=yield h(t,`w`,r.mode);try{let n=yield f(e);yield _(i,n,0,n.length),yield a(i,t,r)}finally{yield p(i)}});return function(t,n,r,i){return e.apply(this,arguments)}})(),x=t.fileDatesEqual=(e,t)=>{let n=e.getTime(),r=t.getTime();if(process.platform!==`win32`)return n===r;if(Math.abs(n-r)<=1)return!0;let i=Math.floor(n/1e3),a=Math.floor(r/1e3);return n-i*1e3==0||r-a*1e3==0?i===a:n===r}}),,,,,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=a;function r(){return process.platform!==`win32`&&process.getuid?process.getuid():null}t.default=a(r())&&!i();function i(){return!!process.env.FAKEROOTKEY}function a(e){return e===0}}),,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=s,t.getCacheDir=c,t.getConfigDir=l;let r=n(0),i=n(45).default,a=r.join(i,`.config`,`yarn`),o=r.join(i,`.cache`,`yarn`);function s(){if(process.platform===`win32`){let e=u();return e==null?a:r.join(e,`Data`)}return process.env.XDG_DATA_HOME?r.join(process.env.XDG_DATA_HOME,`yarn`):a}function c(){return process.platform===`win32`?r.join(u()||r.join(i,`AppData`,`Local`,`Yarn`),`Cache`):process.env.XDG_CACHE_HOME?r.join(process.env.XDG_CACHE_HOME,`yarn`):process.platform===`darwin`?r.join(i,`Library`,`Caches`,`Yarn`):o}function l(){if(process.platform===`win32`){let e=u();return e==null?a:r.join(e,`Config`)}return process.env.XDG_CONFIG_HOME?r.join(process.env.XDG_CONFIG_HOME,`yarn`):a}function u(){return process.env.LOCALAPPDATA?r.join(process.env.LOCALAPPDATA,`Yarn`):null}}),,(function(e,t,n){e.exports={default:n(179),__esModule:!0}}),(function(e,t,n){"use strict";e.exports=r;function r(e,t,n){e instanceof RegExp&&(e=i(e,n)),t instanceof RegExp&&(t=i(t,n));var r=a(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function i(e,t){var n=t.match(e);return n?n[0]:null}r.range=a;function a(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}}),(function(e,t,n){var r=n(178),i=n(174);e.exports=m;var a=`\0SLASH`+Math.random()+`\0`,o=`\0OPEN`+Math.random()+`\0`,s=`\0CLOSE`+Math.random()+`\0`,c=`\0COMMA`+Math.random()+`\0`,l=`\0PERIOD`+Math.random()+`\0`;function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(`\\\\`).join(a).split(`\\{`).join(o).split(`\\}`).join(s).split(`\\,`).join(c).split(`\\.`).join(l)}function f(e){return e.split(a).join(`\\`).split(o).join(`{`).split(s).join(`}`).split(c).join(`,`).split(l).join(`.`)}function p(e){if(!e)return[``];var t=[],n=i(`{`,`}`,e);if(!n)return e.split(`,`);var r=n.pre,a=n.body,o=n.post,s=r.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=p(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function m(e){return e?(e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),y(d(e),!0).map(f)):[]}function h(e){return`{`+e+`}`}function g(e){return/^-?0\d/.test(e)}function _(e,t){return e<=t}function v(e,t){return e>=t}function y(e,t){var n=[],a=i(`{`,`}`,e);if(!a||/\$$/.test(a.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),l=o||c,d=a.body.indexOf(`,`)>=0;if(!l&&!d)return a.post.match(/,.*\}/)?(e=a.pre+`{`+a.body+s+a.post,y(e)):[e];var f;if(l)f=a.body.split(/\.\./);else if(f=p(a.body),f.length===1&&(f=y(f[0],!1).map(h),f.length===1)){var m=a.post.length?y(a.post,!1):[``];return m.map(function(e){return a.pre+f[0]+e})}var b=a.pre,m=a.post.length?y(a.post,!1):[``],x;if(l){var S=u(f[0]),C=u(f[1]),w=Math.max(f[0].length,f[1].length),T=f.length==3?Math.abs(u(f[2])):1,E=_;C<S&&(T*=-1,E=v);var D=f.some(g);x=[];for(var O=S;E(O,C);O+=T){var k;if(c)k=String.fromCharCode(O),k===`\\`&&(k=``);else if(k=String(O),D){var A=w-k.length;if(A>0){var j=Array(A+1).join(`0`);k=O<0?`-`+j+k.slice(1):j+k}}x.push(k)}}else x=r(f,function(e){return y(e,!1)});for(var M=0;M<x.length;M++)for(var ee=0;ee<m.length;ee++){var te=b+x[M]+m[ee];(!t||l||te)&&n.push(te)}return n}}),(function(e,t,n){"use strict";function r(e){let t=!1,n=!1,r=!1;for(let i=0;i<e.length;i++){let a=e[i];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.substr(0,i)+`-`+e.substr(i),t=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.substr(0,i-1)+`-`+e.substr(i-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a,r=n,n=a.toUpperCase()===a)}return e}e.exports=function(e){return e=arguments.length>1?Array.from(arguments).map(e=>e.trim()).filter(e=>e.length).join(`-`):e.trim(),e.length===0?``:e.length===1?e.toLowerCase():/^[a-z0-9]+$/.test(e)?e:(e!==e.toLowerCase()&&(e=r(e)),e.replace(/^[_.\- ]+/,``).toLowerCase().replace(/[_.\- ]+(\w|$)/g,(e,t)=>t.toUpperCase()))}}),,(function(e,t){e.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var a=t(e[i],i);n(a)?r.push.apply(r,a):r.push(a)}return r};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`}}),(function(e,t,n){n(205),n(207),n(210),n(206),n(208),n(209),e.exports=n(23).Promise}),(function(e,t){e.exports=function(){}}),(function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||r!==void 0&&r in e)throw TypeError(n+`: incorrect invocation!`);return e}}),(function(e,t,n){var r=n(74),i=n(110),a=n(200);e.exports=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}}}),(function(e,t,n){var r=n(48),i=n(187),a=n(186),o=n(27),s=n(110),c=n(203),l={},u={},t=e.exports=function(e,t,n,d,f){var p=f?function(){return e}:c(e),m=r(n,d,t?2:1),h=0,g,_,v,y;if(typeof p!=`function`)throw TypeError(e+` is not iterable!`);if(a(p)){for(g=s(e.length);g>h;h++)if(y=t?m(o(_=e[h])[0],_[1]):m(e[h]),y===l||y===u)return y}else for(v=p.call(e);!(_=v.next()).done;)if(y=i(v,m,_.value,t),y===l||y===u)return y};t.BREAK=l,t.RETURN=u}),(function(e,t,n){e.exports=!n(33)&&!n(85)(function(){return Object.defineProperty(n(68)(`div`),"a",{get:function(){return 7}}).a!=7})}),(function(e,t){e.exports=function(e,t,n){var r=n===void 0;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}}),(function(e,t,n){var r=n(35),i=n(13)(`iterator`),a=Array.prototype;e.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}}),(function(e,t,n){var r=n(27);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw a!==void 0&&r(a.call(e)),t}}}),(function(e,t,n){"use strict";var r=n(192),i=n(106),a=n(71),o={};n(31)(o,n(13)(`iterator`),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+` Iterator`)}}),(function(e,t,n){var r=n(13)(`iterator`),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch{}return n}}),(function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}}),(function(e,t,n){var r=n(11),i=n(109).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,c=n(47)(o)==`process`;e.exports=function(){var e,t,n,l=function(){var r,i;for(c&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){o.nextTick(l)};else if(a&&!(r.navigator&&r.navigator.standalone)){var u=!0,d=document.createTextNode(``);new a(l).observe(d,{characterData:!0}),n=function(){d.data=u=!u}}else if(s&&s.resolve){var f=s.resolve(void 0);n=function(){f.then(l)}}else n=function(){i.call(r,l)};return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}}),(function(e,t,n){var r=n(27),i=n(193),a=n(101),o=n(72)(`IE_PROTO`),s=function(){},c=`prototype`,l=function(){var e=n(68)(`iframe`),t=a.length,r=`<`,i=`>`,o;for(e.style.display=`none`,n(102).appendChild(e),e.src=`javascript:`,o=e.contentWindow.document,o.open(),o.write(r+`script`+i+`document.F=Object`+r+`/script`+i),o.close(),l=o.F;t--;)delete l[c][a[t]];return l()};e.exports=Object.create||function(e,t){var n;return e===null?n=l():(s[c]=r(e),n=new s,s[c]=null,n[o]=e),t===void 0?n:i(n,t)}}),(function(e,t,n){var r=n(50),i=n(27),a=n(132);e.exports=n(33)?Object.defineProperties:function(e,t){i(e);for(var n=a(t),o=n.length,s=0,c;o>s;)r.f(e,c=n[s++],t[c]);return e}}),(function(e,t,n){var r=n(49),i=n(133),a=n(72)(`IE_PROTO`),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}}),(function(e,t,n){var r=n(49),i=n(74),a=n(182)(!1),o=n(72)(`IE_PROTO`);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)l!=o&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),(function(e,t,n){var r=n(31);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}}),(function(e,t,n){e.exports=n(31)}),(function(e,t,n){"use strict";var r=n(11),i=n(23),a=n(50),o=n(33),s=n(13)(`species`);e.exports=function(e){var t=typeof i[e]==`function`?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}}),(function(e,t,n){var r=n(73),i=n(67);e.exports=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}}}),(function(e,t,n){var r=n(73),i=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):a(e,t)}}),(function(e,t,n){var r=n(34);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),(function(e,t,n){var r=n(11).navigator;e.exports=r&&r.userAgent||``}),(function(e,t,n){var r=n(100),i=n(13)(`iterator`),a=n(35);e.exports=n(23).getIteratorMethod=function(e){if(e!=null)return e[i]||e[`@@iterator`]||a[r(e)]}}),(function(e,t,n){"use strict";var r=n(180),i=n(190),a=n(35),o=n(74);e.exports=n(103)(Array,`Array`,function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):t==`keys`?i(0,n):t==`values`?i(0,e[n]):i(0,[n,e[n]])},`values`),a.Arguments=a.Array,r(`keys`),r(`values`),r(`entries`)}),(function(e,t){}),(function(e,t,n){"use strict";var r=n(69),i=n(11),a=n(48),o=n(100),s=n(41),c=n(34),l=n(46),u=n(181),d=n(183),f=n(108),p=n(109).set,m=n(191)(),h=n(70),g=n(104),_=n(202),v=n(105),y=`Promise`,b=i.TypeError,x=i.process,S=x&&x.versions,C=S&&S.v8||``,w=i[y],T=o(x)==`process`,E=function(){},D,O,k,A,j=O=h.f,M=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(13)(`species`)]=function(e){e(E,E)};return(T||typeof PromiseRejectionEvent==`function`)&&e.then(E)instanceof t&&C.indexOf(`6.6`)!==0&&_.indexOf(`Chrome/66`)===-1}catch{}}(),ee=function(e){var t;return c(e)&&typeof(t=e.then)==`function`?t:!1},te=function(e,t){if(!e._n){e._n=!0;var n=e._c;m(function(){for(var r=e._v,i=e._s==1,a=0,o=function(t){var n=i?t.ok:t.fail,a=t.resolve,o=t.reject,s=t.domain,c,l,u;try{n?(i||(e._h==2&&re(e),e._h=1),n===!0?c=r:(s&&s.enter(),c=n(r),s&&(s.exit(),u=!0)),c===t.promise?o(b(`Promise-chain cycle`)):(l=ee(c))?l.call(c,a,o):a(c)):o(r)}catch(e){s&&!u&&s.exit(),o(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){p.call(i,function(){var t=e._v,n=ne(e),r,a,o;if(n&&(r=g(function(){T?x.emit(`unhandledRejection`,t,e):(a=i.onunhandledrejection)?a({promise:e,reason:t}):(o=i.console)&&o.error&&o.error(`Unhandled promise rejection`,t)}),e._h=T||ne(e)?2:1),e._a=void 0,n&&r.e)throw r.v})},ne=function(e){return e._h!==1&&(e._a||e._c).length===0},re=function(e){p.call(i,function(){var t;T?x.emit(`rejectionHandled`,e):(t=i.onrejectionhandled)&&t({promise:e,reason:e._v})})},P=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),te(t,!0))},F=function(e){var t=this,n;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw b(`Promise can't be resolved itself`);(n=ee(e))?m(function(){var r={_w:t,_d:!1};try{n.call(e,a(F,r,1),a(P,r,1))}catch(e){P.call(r,e)}}):(t._v=e,t._s=1,te(t,!1))}catch(e){P.call({_w:t,_d:!1},e)}}};M||(w=function(e){u(this,w,y,`_h`),l(e),D.call(this);try{e(a(F,this,1),a(P,this,1))}catch(e){P.call(this,e)}},D=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},D.prototype=n(196)(w.prototype,{then:function(e,t){var n=j(f(this,w));return n.ok=typeof e!=`function`||e,n.fail=typeof t==`function`&&t,n.domain=T?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&te(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),k=function(){var e=new D;this.promise=e,this.resolve=a(F,e,1),this.reject=a(P,e,1)},h.f=j=function(e){return e===w||e===A?new k(e):O(e)}),s(s.G+s.W+s.F*!M,{Promise:w}),n(71)(w,y),n(198)(y),A=n(23)[y],s(s.S+s.F*!M,y,{reject:function(e){var t=j(this),n=t.reject;return n(e),t.promise}}),s(s.S+s.F*(r||!M),y,{resolve:function(e){return v(r&&this===A?w:this,e)}}),s(s.S+s.F*!(M&&n(189)(function(e){w.all(e).catch(E)})),y,{all:function(e){var t=this,n=j(t),r=n.resolve,i=n.reject,a=g(function(){var n=[],a=0,o=1;d(e,!1,function(e){var s=a++,c=!1;n.push(void 0),o++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,i=g(function(){d(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})}),(function(e,t,n){"use strict";var r=n(199)(!0);n(103)(String,`String`,function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i,n;return t>=e.length?{value:void 0,done:!0}:(n=r(e,t),this._i+=n.length,{value:n,done:!1})})}),(function(e,t,n){"use strict";var r=n(41),i=n(23),a=n(11),o=n(108),s=n(105);r(r.P+r.R,`Promise`,{finally:function(e){var t=o(this,i.Promise||a.Promise),n=typeof e==`function`;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})}),(function(e,t,n){"use strict";var r=n(41),i=n(70),a=n(104);r(r.S,`Promise`,{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})}),(function(e,t,n){n(204);for(var r=n(11),i=n(31),a=n(35),o=n(13)(`toStringTag`),s=`CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList`.split(`,`),c=0;c<s.length;c++){var l=s[c],u=r[l],d=u&&u.prototype;d&&!d[o]&&i(d,o,l),a[l]=a.Array}}),(function(e,t,n){t=e.exports=n(112),t.log=a,t.formatArgs=i,t.save=o,t.load=s,t.useColors=r,t.storage=typeof chrome<`u`&&chrome.storage!==void 0?chrome.storage.local:c(),t.colors=/* @__PURE__ */ `#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`.split(`.`);function r(){return typeof window<`u`&&window.process&&window.process.type===`renderer`?!0:typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}};function i(e){var n=this.useColors;if(e[0]=(n?`%c`:``)+this.namespace+(n?` %c`:` `)+e[0]+(n?`%c `:` `)+`+`+t.humanize(this.diff),n){var r=`color: `+this.color;e.splice(1,0,r,`color: inherit`);var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){e!==`%%`&&(i++,e===`%c`&&(a=i))}),e.splice(a,0,r)}}function a(){return typeof console==`object`&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{e==null?t.storage.removeItem(`debug`):t.storage.debug=e}catch{}}function s(){var e;try{e=t.storage.debug}catch{}return!e&&typeof process<`u`&&`env`in process&&(e=process.env.DEBUG),e}t.enable(s());function c(){try{return window.localStorage}catch{}}}),(function(e,t,n){e.exports=typeof process>`u`||process.type===`renderer`?n(211):n(213)}),(function(e,t,n){var r=n(79),i=n(2);t=e.exports=n(112),t.init=f,t.log=l,t.formatArgs=s,t.save=u,t.load=d,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var a=n(239);a&&a.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function o(){return`colors`in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
`).map(function(e){return e.trim()}).join(` `)},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)};function s(e){var n=this.namespace;if(this.useColors){var r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=`  `+i+`;1m`+n+` \x1B[0m`;e[0]=a+e[0].split(`
`).join(`
`+a),e.push(i+`m+`+t.humanize(this.diff)+`\x1B[0m`)}else e[0]=c()+n+` `+e[0]}function c(){return t.inspectOpts.hideDate?``:(/* @__PURE__ */ new Date()).toISOString()+` `}function l(){return process.stderr.write(i.format.apply(i,arguments)+`
`)}function u(e){e==null?delete process.env.DEBUG:process.env.DEBUG=e}function d(){return process.env.DEBUG}function f(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]}t.enable(d())}),,,,(function(e,t,n){var r=n(0),i=process.platform===`win32`,a=n(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(){var e;if(o){var t=/* @__PURE__ */ Error();e=n}else e=r;return e;function n(e){e&&(t.message=e.message,e=t,r(e))}function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t=`fs: missing callback `+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}function c(e){return typeof e==`function`?e:s()}if(r.normalize,i)var l=/(.*?)(?:[\/\\]+|$)/g;else var l=/(.*?)(?:[\/]+|$)/g;if(i)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var u=/^[\/]*/;t.realpathSync=function(e,t){if(e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n=e,o={},s={},c,d,f,p;m();function m(){var t=u.exec(e);c=t[0].length,d=t[0],f=t[0],p=``,i&&!s[f]&&(a.lstatSync(f),s[f]=!0)}for(;c<e.length;){l.lastIndex=c;var h=l.exec(e);if(p=d,d+=h[0],f=p+h[1],c=l.lastIndex,!(s[f]||t&&t[f]===f)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,f))g=t[f];else{var _=a.lstatSync(f);if(!_.isSymbolicLink()){s[f]=!0,t&&(t[f]=f);continue}var v=null;if(!i){var y=_.dev.toString(32)+`:`+_.ino.toString(32);o.hasOwnProperty(y)&&(v=o[y])}v===null&&(a.statSync(f),v=a.readlinkSync(f)),g=r.resolve(p,v),t&&(t[f]=g),i||(o[y]=v)}e=r.resolve(g,e.slice(c)),m()}}return t&&(t[n]=e),e},t.realpath=function(e,t,n){if(typeof n!=`function`&&(n=c(t),t=null),e=r.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(n.bind(null,null,t[e]));var o=e,s={},d={},f,p,m,h;g();function g(){var t=u.exec(e);f=t[0].length,p=t[0],m=t[0],h=``,i&&!d[m]?a.lstat(m,function(e){if(e)return n(e);d[m]=!0,_()}):process.nextTick(_)}function _(){if(f>=e.length)return t&&(t[o]=e),n(null,e);l.lastIndex=f;var r=l.exec(e);return h=p,p+=r[0],m=h+r[1],f=l.lastIndex,d[m]||t&&t[m]===m?process.nextTick(_):t&&Object.prototype.hasOwnProperty.call(t,m)?b(t[m]):a.lstat(m,v)}function v(e,r){if(e)return n(e);if(!r.isSymbolicLink())return d[m]=!0,t&&(t[m]=m),process.nextTick(_);if(!i){var o=r.dev.toString(32)+`:`+r.ino.toString(32);if(s.hasOwnProperty(o))return y(null,s[o],m)}a.stat(m,function(e){if(e)return n(e);a.readlink(m,function(e,t){i||(s[o]=t),y(e,t)})})}function y(e,i,a){if(e)return n(e);var o=r.resolve(h,i);t&&(t[a]=o),b(o)}function b(t){e=r.resolve(t,e.slice(f)),g()}}}),(function(e,t,n){e.exports=m,m.GlobSync=h;var r=n(3),i=n(114),a=n(60);a.Minimatch,n(75).Glob,n(2);var o=n(0),s=n(22),c=n(76),l=n(115);l.alphasort,l.alphasorti;var u=l.setopts,d=l.ownProp,f=l.childrenIgnored,p=l.isIgnored;function m(e,t){if(typeof t==`function`||arguments.length===3)throw TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new h(e,t).found}function h(e,t){if(!e)throw Error(`must provide pattern`);if(typeof t==`function`||arguments.length===3)throw TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof h))return new h(e,t);if(u(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}h.prototype._finish=function(){if(s(this instanceof h),this.realpath){var e=this;this.matches.forEach(function(t,n){var r=e.matches[n]=Object.create(null);for(var a in t)try{a=e._makeAbs(a);var o=i.realpathSync(a,e.realpathCache);r[o]=!0}catch(t){if(t.syscall===`stat`)r[e._makeAbs(a)]=!0;else throw t}})}l.finish(this)},h.prototype._process=function(e,t,n){s(this instanceof h);for(var r=0;typeof e[r]==`string`;)r++;var i;switch(r){case e.length:this._processSimple(e.join(`/`),t);return;case 0:i=null;break;default:i=e.slice(0,r).join(`/`)}var o=e.slice(r),l;i===null?l=`.`:((c(i)||c(e.join(`/`)))&&(i&&c(i)||(i=`/`+i)),l=i);var u=this._makeAbs(l);f(this,l)||(o[0]===a.GLOBSTAR?this._processGlobStar(i,l,u,o,t,n):this._processReaddir(i,l,u,o,t,n))},h.prototype._processReaddir=function(e,t,n,r,i,a){var s=this._readdir(n,a);if(s){for(var c=r[0],l=!!this.minimatch.negate,u=c._glob,d=this.dot||u.charAt(0)===`.`,f=[],p=0;p<s.length;p++){var m=s[p];(m.charAt(0)!==`.`||d)&&(l&&!e?!m.match(c):m.match(c))&&f.push(m)}var h=f.length;if(h!==0){if(r.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var p=0;p<h;p++){var m=f[p];e&&(m=e.slice(-1)===`/`?e+m:e+`/`+m),m.charAt(0)===`/`&&!this.nomount&&(m=o.join(this.root,m)),this._emitMatch(i,m)}}else{r.shift();for(var p=0;p<h;p++){var m=f[p],g=e?[e,m]:[m];this._process(g.concat(r),i,a)}}}}},h.prototype._emitMatch=function(e,t){if(!p(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if(r===`DIR`||Array.isArray(r))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=r.lstatSync(e)}catch(e){if(e.code===`ENOENT`)return null}var i=n&&n.isSymbolicLink();return this.symlinks[e]=i,!i&&n&&!n.isDirectory()?this.cache[e]=`FILE`:t=this._readdir(e,!1),t},h.prototype._readdir=function(e,t){if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var n=this.cache[e];if(!n||n===`FILE`)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,r.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var r=t[n];r=e===`/`?e+r:e+`/`+r,this.cache[r]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case`ENOTSUP`:case`ENOTDIR`:var n=this._makeAbs(e);if(this.cache[n]=`FILE`,n===this.cwdAbs){var r=/* @__PURE__ */ Error(t.code+` invalid cwd `+this.cwd);throw r.path=this.cwd,r.code=t.code,r}break;case`ENOENT`:case`ELOOP`:case`ENAMETOOLONG`:case`UNKNOWN`:this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error(`glob error`,t)}},h.prototype._processGlobStar=function(e,t,n,r,i,a){var o=this._readdir(n,a);if(o){var s=r.slice(1),c=e?[e]:[],l=c.concat(s);this._process(l,i,!1);var u=o.length;if(!(this.symlinks[n]&&a)){for(var d=0;d<u;d++)if(o[d].charAt(0)!==`.`||this.dot){var f=c.concat(o[d],s);this._process(f,i,!0);var p=c.concat(o[d],r);this._process(p,i,!0)}}}},h.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&c(e)&&!this.nomount){var r=/[\/\\]$/.test(e);e.charAt(0)===`/`?e=o.join(this.root,e):(e=o.resolve(this.root,e),r&&(e+=`/`))}process.platform===`win32`&&(e=e.replace(/\\/g,`/`)),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),n=e.slice(-1)===`/`;if(e.length>this.maxLength)return!1;if(!this.stat&&d(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i=`DIR`),!n||i===`DIR`)return i;if(n&&i===`FILE`)return!1}var a=this.statCache[t];if(!a){var o;try{o=r.lstatSync(t)}catch(e){if(e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{a=r.statSync(t)}catch{a=o}else a=o}this.statCache[t]=a;var i=!0;return a&&(i=a.isDirectory()?`DIR`:`FILE`),this.cache[t]=this.cache[t]||i,n&&i===`FILE`?!1:i},h.prototype._mark=function(e){return l.mark(this,e)},h.prototype._makeAbs=function(e){return l.makeAbs(this,e)}}),,,(function(e,t,n){"use strict";e.exports=function(e,t){t||=process.argv;var n=t.indexOf(`--`),r=/^--/.test(e)?``:`--`,i=t.indexOf(r+e);return i!==-1&&(n===-1||i<n)}}),,(function(e,t,n){var r=n(123),i=Object.create(null),a=n(61);e.exports=r(o);function o(e,t){return i[e]?(i[e].push(t),null):(i[e]=[t],s(e))}function s(e){return a(function t(){var n=i[e],r=n.length,a=c(arguments);try{for(var o=0;o<r;o++)n[o].apply(null,a)}finally{n.length>r?(n.splice(0,r),process.nextTick(function(){t.apply(null,a)})):delete i[e]}})}function c(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r]=e[r];return n}}),(function(e,t){e.exports=typeof Object.create==`function`?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),,,(function(e,t,n){e.exports=n!==void 0}),,(function(e,t){var n=1e3,r=n*60,i=r*60,a=i*24,o=a*365.25;e.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return s(e);if(n===`number`&&isNaN(e)===!1)return t.long?l(e):c(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function s(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return s*o;case`days`:case`day`:case`d`:return s*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return s*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return s*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return s*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return s;default:return}}}}function c(e){return e>=a?Math.round(e/a)+`d`:e>=i?Math.round(e/i)+`h`:e>=r?Math.round(e/r)+`m`:e>=n?Math.round(e/n)+`s`:e+`ms`}function l(e){return u(e,a,`day`)||u(e,i,`hour`)||u(e,r,`minute`)||u(e,n,`second`)||e+` ms`}function u(e,t,n){if(!(e<t))return e<t*1.5?Math.floor(e/t)+` `+n:Math.ceil(e/t)+` `+n+`s`}}),,,,(function(e,t,n){e.exports=f,f.sync=v;var r=n(22),i=n(0),a=n(3),o=n(75),s=438,c={nosort:!0,silent:!0},l=0,u=process.platform===`win32`;function d(e){[`unlink`,`chmod`,`stat`,`lstat`,`rmdir`,`readdir`].forEach(function(t){e[t]=e[t]||a[t],t+=`Sync`,e[t]=e[t]||a[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,e.glob===!1&&(e.disableGlob=!0),e.disableGlob=e.disableGlob||!1,e.glob=e.glob||c}function f(e,t,n){typeof t==`function`&&(n=t,t={}),r(e,`rimraf: missing path`),r.equal(typeof e,`string`,`rimraf: path should be a string`),r.equal(typeof n,`function`,`rimraf: callback function required`),r(t,`rimraf: invalid options argument provided`),r.equal(typeof t,`object`,`rimraf: options should be object`),d(t);var i=0,a=null,s=0;if(t.disableGlob||!o.hasMagic(e))return u(null,[e]);t.lstat(e,function(n,r){if(!n)return u(null,[e]);o(e,t.glob,u)});function c(e){a||=e,--s===0&&n(a)}function u(e,r){if(e)return n(e);if(s=r.length,s===0)return n();r.forEach(function(e){p(e,t,function n(r){if(r){if((r.code===`EBUSY`||r.code===`ENOTEMPTY`||r.code===`EPERM`)&&i<t.maxBusyTries){i++;var a=i*100;return setTimeout(function(){p(e,t,n)},a)}if(r.code===`EMFILE`&&l<t.emfileWait)return setTimeout(function(){p(e,t,n)},l++);r.code===`ENOENT`&&(r=null)}l=0,c(r)})})}}function p(e,t,n){r(e),r(t),r(typeof n==`function`),t.lstat(e,function(r,i){if(r&&r.code===`ENOENT`)return n(null);if(r&&r.code===`EPERM`&&u&&m(e,t,r,n),i&&i.isDirectory())return g(e,t,r,n);t.unlink(e,function(r){if(r){if(r.code===`ENOENT`)return n(null);if(r.code===`EPERM`)return u?m(e,t,r,n):g(e,t,r,n);if(r.code===`EISDIR`)return g(e,t,r,n)}return n(r)})})}function m(e,t,n,i){r(e),r(t),r(typeof i==`function`),n&&r(n instanceof Error),t.chmod(e,s,function(r){r?i(r.code===`ENOENT`?null:n):t.stat(e,function(r,a){r?i(r.code===`ENOENT`?null:n):a.isDirectory()?g(e,t,n,i):t.unlink(e,i)})})}function h(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.chmodSync(e,s)}catch(e){if(e.code===`ENOENT`)return;throw n}try{var i=t.statSync(e)}catch(e){if(e.code===`ENOENT`)return;throw n}i.isDirectory()?y(e,t,n):t.unlinkSync(e)}function g(e,t,n,i){r(e),r(t),n&&r(n instanceof Error),r(typeof i==`function`),t.rmdir(e,function(r){r&&(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)?_(e,t,i):r&&r.code===`ENOTDIR`?i(n):i(r)})}function _(e,t,n){r(e),r(t),r(typeof n==`function`),t.readdir(e,function(r,a){if(r)return n(r);var o=a.length;if(o===0)return t.rmdir(e,n);var s;a.forEach(function(r){f(i.join(e,r),t,function(r){if(!s){if(r)return n(s=r);--o===0&&t.rmdir(e,n)}})})})}function v(e,t){t||={},d(t),r(e,`rimraf: missing path`),r.equal(typeof e,`string`,`rimraf: path should be a string`),r(t,`rimraf: missing options`),r.equal(typeof t,`object`,`rimraf: options should be object`);var n;if(t.disableGlob||!o.hasMagic(e))n=[e];else try{t.lstatSync(e),n=[e]}catch{n=o.sync(e,t.glob)}if(n.length)for(var i=0;i<n.length;i++){var e=n[i];try{var a=t.lstatSync(e)}catch(n){if(n.code===`ENOENT`)return;n.code===`EPERM`&&u&&h(e,t,n)}try{a&&a.isDirectory()?y(e,t,null):t.unlinkSync(e)}catch(n){if(n.code===`ENOENT`)return;if(n.code===`EPERM`)return u?h(e,t,n):y(e,t,n);if(n.code!==`EISDIR`)throw n;y(e,t,n)}}}function y(e,t,n){r(e),r(t),n&&r(n instanceof Error);try{t.rmdirSync(e)}catch(r){if(r.code===`ENOENT`)return;if(r.code===`ENOTDIR`)throw n;(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)&&b(e,t)}}function b(e,t){r(e),r(t),t.readdirSync(e).forEach(function(n){v(i.join(e,n),t)});var n=u?100:1,a=0;do{var o=!0;try{var s=t.rmdirSync(e,t);return o=!1,s}finally{if(++a<n&&o)continue}}while(1)}}),,,,,,(function(e,t,n){"use strict";var r=n(221),i=function(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}},a=(function(){return r(`no-color`)||r(`no-colors`)||r(`color=false`)?0:r(`color=16m`)||r(`color=full`)||r(`color=truecolor`)?3:r(`color=256`)?2:r(`color`)||r(`colors`)||r(`color=true`)||r(`color=always`)?1:process.stdout&&!process.stdout.isTTY?0:process.platform===`win32`?1:`CI`in process.env?+(`TRAVIS`in process.env||process.env.CI===`Travis`):`TEAMCITY_VERSION`in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||`COLORTERM`in process.env?1:(process.env.TERM,0)})();a===0&&`FORCE_COLOR`in process.env&&(a=1),e.exports=process&&i(a)})])})),Nn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.YarnLockParser=void 0;let t=Mn(),n=yt(),r=q(),i=hn(),a=kn(),o=An();e.YarnLockParser=class extends i.LockParserBase{constructor(){super(n.LockfileType.yarn,a.config.YARN_TREE_SIZE_LIMIT)}parseLockFile(e){try{let n=t.parse(e);return n.dependencies=n.object,n.type=this.type,n}catch(e){throw new r.InvalidUserInputError(`yarn.lock parsing failed with an error: ${e.message}`)}}async getDependencyTree(e,t,n=!1,r=!0,i,a){let o=await super.getDependencyTree(e,t,n,r,i,a),s={lockfileVersion:1,packageManager:`yarn`};return{...o,meta:{...o.meta,...s}}}getDepMap(e,t,r,i){let a=e,c={};for(let[e,t]of Object.entries(a.object)){let a=Object.entries({...t.dependencies||{},...t.optionalDependencies||{}}),l=s(e);c[e]={labels:{scope:n.Scope.prod,...r&&{"npm:scope":n.Scope.prod},...i&&(0,o.getComponentMetadataLabels)({id:`${l}@${t.version}`,integrity:t.integrity,resolved:t.resolved})},name:l,requires:a.map(([e,t])=>`${e}@${t}`),version:t.version}}return c}getDepTreeKey(e){return`${e.name}@${e.version}`}};function s(e){return e.slice(0,e.indexOf(`@`,1))}})),Pn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseDescriptor=i,e.parseRange=o,e.stringifyIdent=s;let t=require("querystring"),n=/^(?:@([^/]+?)\/)?([^@/]+?)(?:@(.+))?$/,r=`unknown`;function i(e){let t=e.match(n);if(!t)throw Error(`Invalid descriptor (${e})`);let[,i,a,o]=t;if(o===r)throw Error(`Invalid range (${e})`);let s=i===void 0?null:i;if(s?.startsWith(`@`))throw Error(`Invalid scope: don't prefix it with '@'`);return{scope:s,name:a,range:o===void 0?r:o}}let a=/^([^#:]*:)?((?:(?!::)[^#])*)(?:#((?:(?!::).)*))?(?:::(.*))?$/;function o(e){let n=e.match(a);if(n===null)throw Error(`Invalid range (${e})`);return{protocol:n[1]===void 0?null:n[1],source:n[3]===void 0?null:decodeURIComponent(n[2]),selector:n[3]===void 0?decodeURIComponent(n[2]):decodeURIComponent(n[3]),params:n[4]===void 0?null:t.parse(n[4])}}function s(e){return e.scope?`@${e.scope}/${e.name}`:`${e.name}`}})),Fn=/* @__PURE__ */ e.t(((e,t)=>{var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,M=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,N=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,P={};P[x]=P[S]=P[C]=P[w]=P[T]=P[E]=P[D]=P[O]=P[k]=!0,P[i]=P[a]=P[y]=P[o]=P[b]=P[s]=P[c]=P[l]=P[u]=P[d]=P[f]=P[m]=P[h]=P[g]=P[v]=!1;var F=typeof global==`object`&&global&&global.Object===Object&&global,I=typeof self==`object`&&self&&self.Object===Object&&self,L=F||I||Function(`return this`)(),R=typeof e==`object`&&e&&!e.nodeType&&e,z=R&&typeof t==`object`&&t&&!t.nodeType&&t,ie=z&&z.exports===R&&F.process,B=function(){try{return ie&&ie.binding(`util`)}catch{}}(),V=B&&B.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function U(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ae(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function oe(e){return function(t){return t?.[e]}}function se(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ce(e){return function(t){return e(t)}}function W(e,t){return e?.[t]}function le(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ue(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function de(e,t){return function(n){return e(t(n))}}function fe(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var pe=Array.prototype,me=Function.prototype,he=Object.prototype,ge=L[`__core-js_shared__`],_e=function(){var e=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ve=me.toString,G=he.hasOwnProperty,ye=he.toString,be=RegExp(`^`+ve.call(G).replace(te,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),xe=L.Symbol,Se=L.Uint8Array,Ce=he.propertyIsEnumerable,we=pe.splice,K=xe?xe.isConcatSpreadable:void 0,q=de(Object.keys,Object),Te=Rt(L,`DataView`),J=Rt(L,`Map`),Ee=Rt(L,`Promise`),De=Rt(L,`Set`),Oe=Rt(L,`WeakMap`),ke=Rt(Object,`create`),Ae=Xt(Te),je=Xt(J),Me=Xt(Ee),Ne=Xt(De),Pe=Xt(Oe),Fe=xe?xe.prototype:void 0,Ie=Fe?Fe.valueOf:void 0,Le=Fe?Fe.toString:void 0;function Re(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ze(){this.__data__=ke?ke(null):{}}function Be(e){return this.has(e)&&delete this.__data__[e]}function Ve(e){var t=this.__data__;if(ke){var r=t[e];return r===n?void 0:r}return G.call(t,e)?t[e]:void 0}function Y(e){var t=this.__data__;return ke?t[e]!==void 0:G.call(t,e)}function X(e,t){var r=this.__data__;return r[e]=ke&&t===void 0?n:t,this}Re.prototype.clear=ze,Re.prototype.delete=Be,Re.prototype.get=Ve,Re.prototype.has=Y,Re.prototype.set=X;function He(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(){this.__data__=[]}function We(e){var t=this.__data__,n=ut(t,e);return n<0?!1:(n==t.length-1?t.pop():we.call(t,n,1),!0)}function Ge(e){var t=this.__data__,n=ut(t,e);return n<0?void 0:t[n][1]}function Ke(e){return ut(this.__data__,e)>-1}function qe(e,t){var n=this.__data__,r=ut(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}He.prototype.clear=Ue,He.prototype.delete=We,He.prototype.get=Ge,He.prototype.has=Ke,He.prototype.set=qe;function Je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ye(){this.__data__={hash:new Re,map:new(J||He),string:new Re}}function Xe(e){return It(this,e).delete(e)}function Ze(e){return It(this,e).get(e)}function Qe(e){return It(this,e).has(e)}function $e(e,t){return It(this,e).set(e,t),this}Je.prototype.clear=Ye,Je.prototype.delete=Xe,Je.prototype.get=Ze,Je.prototype.has=Qe,Je.prototype.set=$e;function et(e){var t=-1,n=e?e.length:0;for(this.__data__=new Je;++t<n;)this.add(e[t])}function tt(e){return this.__data__.set(e,n),this}function nt(e){return this.__data__.has(e)}et.prototype.add=et.prototype.push=tt,et.prototype.has=nt;function rt(e){this.__data__=new He(e)}function it(){this.__data__=new He}function at(e){return this.__data__.delete(e)}function ot(e){return this.__data__.get(e)}function st(e){return this.__data__.has(e)}function ct(e,t){var n=this.__data__;if(n instanceof He){var r=n.__data__;if(!J||r.length<199)return r.push([e,t]),this;n=this.__data__=new Je(r)}return n.set(e,t),this}rt.prototype.clear=it,rt.prototype.delete=at,rt.prototype.get=ot,rt.prototype.has=st,rt.prototype.set=ct;function lt(e,t){var n=tn(e)||en(e)?se(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||G.call(e,a))&&(!i||a!=`length`&&!Ht(a,r))&&n.push(a);return n}function ut(e,t){for(var n=e.length;n--;)if($t(e[n][0],t))return n;return-1}var dt=jt(mt);function ft(e,t,n,r,i){var a=-1,o=e.length;for(n||=Vt,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ft(s,t-1,n,r,i):U(i,s):r||(i[i.length]=s)}return i}var pt=Mt();function mt(e,t){return e&&pt(e,t,mn)}function ht(e,t){t=Ut(t,e)?[t]:At(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Yt(t[n++])];return n&&n==r?e:void 0}function gt(e){return ye.call(e)}function _t(e,t){return e!=null&&t in Object(e)}function vt(e,t,n,r,i){return e===t?!0:e==null||t==null||!sn(e)&&!cn(t)?e!==e&&t!==t:yt(e,t,vt,n,r,i)}function yt(e,t,n,r,o,s){var c=tn(e),l=tn(t),u=a,d=a;c||(u=zt(e),u=u==i?f:u),l||(d=zt(t),d=d==i?f:d);var p=u==f&&!le(e),m=d==f&&!le(t),h=u==d;if(h&&!p)return s||=new rt,c||un(e)?Nt(e,t,n,r,o,s):Pt(e,t,u,n,r,o,s);if(!(o&2)){var g=p&&G.call(e,`__wrapped__`),_=m&&G.call(t,`__wrapped__`);if(g||_){var v=g?e.value():e,y=_?t.value():t;return s||=new rt,n(v,y,r,o,s)}}return h?(s||=new rt,Ft(e,t,n,r,o,s)):!1}function bt(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new rt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?vt(u,l,r,3,d):f))return!1}}return!0}function xt(e){return!sn(e)||Gt(e)?!1:(an(e)||le(e)?be:ne).test(Xt(e))}function St(e){return cn(e)&&on(e.length)&&!!P[ye.call(e)]}function Ct(e){return typeof e==`function`?e:e==null?hn:typeof e==`object`?tn(e)?Dt(e[0],e[1]):Et(e):gn(e)}function wt(e){if(!Kt(e))return q(e);var t=[];for(var n in Object(e))G.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Tt(e,t){var n=-1,r=nn(e)?Array(e.length):[];return dt(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Et(e){var t=Lt(e);return t.length==1&&t[0][2]?Jt(t[0][0],t[0][1]):function(n){return n===e||bt(n,e,t)}}function Dt(e,t){return Ut(e)&&qt(t)?Jt(Yt(e),t):function(n){var r=fn(n,e);return r===void 0&&r===t?pn(n,e):vt(t,r,void 0,3)}}function Ot(e){return function(t){return ht(t,e)}}function kt(e){if(typeof e==`string`)return e;if(ln(e))return Le?Le.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function At(e){return tn(e)?e:Z(e)}function jt(e,t){return function(n,r){if(n==null)return n;if(!nn(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Mt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Nt(e,t,n,r,i,a){var o=i&2,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new et:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!ae(t,function(e,t){if(!f.has(t)&&(p===e||n(p,e,r,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===m||n(p,m,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function Pt(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new Se(e),new Se(t)));case o:case s:case d:return $t(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=ue;case h:var p=a&2;if(f||=fe,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;a|=1,l.set(e,t);var x=Nt(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Ie)return Ie.call(e)==Ie.call(t)}return!1}function Ft(e,t,n,r,i,a){var o=i&2,s=mn(e),c=s.length;if(c!=mn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:G.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){u=s[l];var m=e[u],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||n(m,h,r,i,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_!=v&&`constructor`in e&&`constructor`in t&&!(typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}function It(e,t){var n=e.__data__;return Wt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Lt(e){for(var t=mn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,qt(i)]}return t}function Rt(e,t){var n=W(e,t);return xt(n)?n:void 0}var zt=gt;(Te&&zt(new Te(/* @__PURE__ */ new ArrayBuffer(1)))!=b||J&&zt(new J)!=u||Ee&&zt(Ee.resolve())!=p||De&&zt(new De)!=h||Oe&&zt(new Oe)!=v)&&(zt=function(e){var t=ye.call(e),n=t==f?e.constructor:void 0,r=n?Xt(n):void 0;if(r)switch(r){case Ae:return b;case je:return u;case Me:return p;case Ne:return h;case Pe:return v}return t});function Bt(e,t,n){t=Ut(t,e)?[t]:At(t);for(var r,i=-1,a=t.length;++i<a;){var o=Yt(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&on(a)&&Ht(o,a)&&(tn(e)||en(e))}function Vt(e){return tn(e)||en(e)||!!(K&&e&&e[K])}function Ht(e,t){return t??=r,!!t&&(typeof e==`number`||re.test(e))&&e>-1&&e%1==0&&e<t}function Ut(e,t){if(tn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ln(e)?!0:j.test(e)||!A.test(e)||t!=null&&e in Object(t)}function Wt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Gt(e){return!!_e&&_e in e}function Kt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||he)}function qt(e){return e===e&&!sn(e)}function Jt(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var Z=Qt(function(e){e=dn(e);var t=[];return M.test(e)&&t.push(``),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(N,`$1`):n||e)}),t});function Yt(e){if(typeof e==`string`||ln(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Xt(e){if(e!=null){try{return ve.call(e)}catch{}try{return e+``}catch{}}return``}function Q(e,t){return ft(Zt(e,t),1)}function Zt(e,t){return(tn(e)?H:Tt)(e,Ct(t,3))}function Qt(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(`Expected a function`);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Qt.Cache||Je),n}Qt.Cache=Je;function $t(e,t){return e===t||e!==e&&t!==t}function en(e){return rn(e)&&G.call(e,`callee`)&&(!Ce.call(e,`callee`)||ye.call(e)==i)}var tn=Array.isArray;function nn(e){return e!=null&&on(e.length)&&!an(e)}function rn(e){return cn(e)&&nn(e)}function an(e){var t=sn(e)?ye.call(e):``;return t==l||t==`[object GeneratorFunction]`}function on(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function sn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function cn(e){return!!e&&typeof e==`object`}function ln(e){return typeof e==`symbol`||cn(e)&&ye.call(e)==_}var un=V?ce(V):St;function dn(e){return e==null?``:kt(e)}function fn(e,t,n){var r=e==null?void 0:ht(e,t);return r===void 0?n:r}function pn(e,t){return e!=null&&Bt(e,t,_t)}function mn(e){return nn(e)?lt(e):wt(e)}function hn(e){return e}function gn(e){return Ut(e)?oe(Yt(e)):Ot(e)}t.exports=Q})),In=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.yarnLockFileKeyNormalizer=void 0;let t=Fn(),n=/ *, */g,r=(e,t)=>n=>{let r=[n],i=e(n),a=`${i.scope?`@`+i.scope+`/`:``}${i.name}`,o=t(i.range),s=o.protocol;switch(s){case`npm:`:case`file:`:r.push(`${a}@${o.selector}`),r.push(`${a}@${s}${o.selector}`);break;case`git:`:case`git+ssh:`:case`git+http:`:case`git+https:`:case`github:`:o.source?r.push(`${a}@${s}${o.source}${o.selector?`#`+o.selector:``}`):r.push(`${a}@${s}${o.selector}`);break;case`patch:`:o.source&&o.selector.indexOf(`builtin`)===0?r.push(o.source):r.push(`${a}@${s}${o.source}${o.selector?`#`+o.selector:``}`);break;case null:case void 0:o.source?r.push(`${a}@${o.source}#${o.selector}`):r.push(`${a}@${o.selector}`);break;default:r.push(`${a}@${s}${o.selector}`)}return r};e.yarnLockFileKeyNormalizer=(e,i)=>a=>{let o=a.split(n).map(r(e,i));return new Set(t(o))}})),Ln=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Yarn2LockParser=void 0;let t=Pn(),r=n.n(),i=hn(),a=yt(),o=kn(),s=q(),c=In(),l=vt(),u=r(`snyk-nodejs-lockfile-parser:component-metadata`);e.Yarn2LockParser=class extends i.LockParserBase{constructor(){super(a.LockfileType.yarn2,o.config.YARN_TREE_SIZE_LIMIT)}parseLockFile(e){try{let n=(0,l.loadYamlOrNull)(e);if(!n||typeof n!=`object`)throw Error(`the file is empty or does not contain a YAML mapping`);delete n.__metadata;let r={},i=(0,c.yarnLockFileKeyNormalizer)(t.parseDescriptor,t.parseRange);return Object.entries(n).forEach(([e,t])=>{i(e).forEach(e=>{r[e]=t})}),{dependencies:r,lockfileType:a.LockfileType.yarn2,object:r,type:a.LockfileType.yarn2}}catch(e){throw new s.InvalidUserInputError(`yarn.lock parsing failed with an error: ${e.message}`)}}async getDependencyTree(e,t,n=!1,r=!0,i,a){a&&u(`includeComponentMetadata is not yet supported for yarn berry (v2-4) lockfiles; no hash:* / distribution:url labels will be emitted`);let o=await super.getDependencyTree(e,t,n,r,i),s={lockfileVersion:2,packageManager:`yarn`};return{...o,meta:{...o.meta,...s}}}getDepMap(e,t,n){let r=e,i={},o=e.dependencies||{};for(let[e,s]of Object.entries(r.object)){if(e.endsWith(`@workspace:.`))continue;let r=Object.entries({...s.dependencies||{},...s.optionalDependencies||{}}).map(([n,r])=>f(o,e,n,t)||`${n}@${r}`);i[e]={labels:{scope:a.Scope.prod,...n&&{"npm:scope":a.Scope.prod}},name:d(e),requires:r,version:s.version}}return i}getDepTreeKey(e){return`${e.name}@${e.version}`}};function d(e){return e.slice(0,e.indexOf(`@`,1))}function f(e,t,n,r){if(!r)return;let i=Object.keys(r),a=t.indexOf(`@`,1),o=t.slice(0,a),s=t.slice(a+1),c=i.find(t=>{if(!t.endsWith(n))return!1;let r=t.split(n)[0].slice(0,-1),i=!r,a=r===o,c=r.includes(o)&&r.includes(e[`${o}@${s}`].version);return i||a||c});if(i&&c)return`${n}@${r[c]}`}})),Rn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseYarnInfoOutput=void 0,e.parseYarnInfoOutput=e=>{let t=e.split(`
`).filter(Boolean).map(e=>JSON.parse(e)).reduce((e,{value:t,children:n})=>{let r=n.Dependencies?.map(e=>e.locator.replace(/@virtual:.*#/,`@`))||[];return e.set(t,r)},/* @__PURE__ */ new Map),n=[...t.keys()].find(e=>e.includes(`@workspace:.`)),r=t.get(n)||[];return t.delete(n),{topLevelDeps:r,dependencies:t}}})),zn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseYarnListOutput=void 0;let t=mn();e.parseYarnListOutput=(e,r)=>{let i=JSON.parse(e).data.trees,a=i.map(e=>e.name),o=i.reduce((e,n)=>{let r=n.children.map(e=>(0,t.extractCorrectIdentifierBySemver)(a,e.name));return e.set(n.name,r)},/* @__PURE__ */ new Map);return{topLevelDeps:n(o,r),dependencies:o}};let n=(e,n)=>{let r=[...e.keys()];return Object.entries(n).map(([e,n])=>(0,t.extractCorrectIdentifierBySemver)(r,`${e}@${n}`))}})),Bn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphFromCliOutput=void 0;let t=G(),n=qr(),r=yt(),i=mn(),a=Rn(),o=zn();e.buildDepGraphFromCliOutput=(e,s,c)=>{let l=JSON.parse(c).dependencies||{},u=(0,n.getYarnLockfileType)(s),{name:d,version:f}=JSON.parse(c),p=u===r.LockfileType.yarn?`1`:`2`,m=p===`1`?(0,o.parseYarnListOutput)(e,l):(0,a.parseYarnInfoOutput)(e),h=d?{name:d,...f&&{version:f}}:void 0,g={name:`yarn`,version:p},_=new t.DepGraphBuilder(g,h),{topLevelDeps:v,dependencies:y}=m;[...y.keys()].forEach(e=>{let{name:t,identifier:n}=(0,i.extractNameAndIdentifier)(e);_.addPkgNode({name:t,version:n.split(`:`).pop()},e)});let b=_.rootNodeId;return v.forEach(e=>_.connectDep(b,e)),[...y.entries()].forEach(([e,t])=>{t.forEach(t=>{_.connectDep(e,t)})}),_.build()}})),Vn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rewriteAliasesInOverrides=e.rewriteAliases=e.rewriteAliasesPkgJson=e.parseNpmAlias=void 0;let t=Hn();e.parseNpmAlias=e=>{if(!e.startsWith(`npm:`))return null;let t=e.substring(4);if(t.startsWith(`@`)){let e=t.indexOf(`/`);if(e===-1)return null;let n=t.indexOf(`@`,e);return n===-1?{packageName:t,version:``}:{packageName:t.substring(0,n),version:t.substring(n+1)}}{let e=t.lastIndexOf(`@`);return e===-1?{packageName:t,version:``}:e===0?null:{packageName:t.substring(0,e),version:t.substring(e+1)}}};let n=(e,t,n,r)=>{e.aliases||={},e.aliases[t]={aliasName:t,aliasTargetDepName:n,semver:r,version:null}};e.rewriteAliasesPkgJson=n=>{let r=(0,t.parsePkgJson)(n);return r.dependencies=(0,e.rewriteAliases)(r,r.dependencies),r.devDependencies=(0,e.rewriteAliases)(r,r.devDependencies),r.optionalDependencies=(0,e.rewriteAliases)(r,r.optionalDependencies),r.peerDependencies=(0,e.rewriteAliases)(r,r.peerDependencies),r.overrides&&(0,e.rewriteAliasesInOverrides)(r,r.overrides),r.resolutions&&(0,e.rewriteAliasesInOverrides)(r,r.resolutions),JSON.stringify(r)},e.rewriteAliases=(t,r)=>{if(!r)return;let i={};for(let a in r){let o=r[a],s=(0,e.parseNpmAlias)(o);s&&n(t,a,s.packageName,s.version),i[a]=o}return i},e.rewriteAliasesInOverrides=(t,r)=>{if(typeof r!=`string`)for(let i in r){let a=r[i];if(typeof a==`string`){let r=(0,e.parseNpmAlias)(a);r&&n(t,i,r.packageName,r.version)}else typeof a==`object`&&(0,e.rewriteAliasesInOverrides)(t,a)}}})),Hn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getChildNode=e.getGraphDependencies=e.getTopLevelDeps=e.addPkgNodeToGraph=e.createNodeInfo=void 0,e.parsePkgJson=s;let t=q(),n=vt(),r=yt(),i=Vn(),a=An();e.createNodeInfo=(e,t=`unknown`)=>{if(e.showNpmScope)return{labels:{"npm:scope":t}}},e.addPkgNodeToGraph=(e,t,n)=>e.addPkgNode({name:t.name,version:t.version},t.id,{labels:{scope:t.isDev?`dev`:`prod`,...n.showNpmScope&&{"npm:scope":t.isDev?`dev`:`prod`},...n.isCyclic&&{pruned:`cyclic`},...n.isWorkspacePkg&&{pruned:`true`},...t.missingLockFileEntry&&{missingLockFileEntry:`true`},...t.alias&&{alias:`${t.alias.aliasName}=>${t.alias.aliasTargetDepName}@${t.version}`},...n.includeComponentMetadata&&(0,a.getComponentMetadataLabels)(t)}}),e.getTopLevelDeps=(t,n)=>{let r=(0,e.getGraphDependencies)(t.dependencies||{},{isDev:!1}),i=(0,e.getGraphDependencies)(t.devDependencies||{},{isDev:!0}),a=n.includeOptionalDeps?(0,e.getGraphDependencies)(t.optionalDependencies||{},{isDev:!1,isOptional:!0}):{},o=n.includePeerDeps?(0,e.getGraphDependencies)(t.peerDependencies||{},{isDev:!1}):{},s={...r,...a,...o};if(t.aliases)for(let e of Object.keys(t.aliases))s[e]&&(s[e]={...s[e],alias:{...t.aliases[e]}});return n.includeDevDeps?{...s,...i}:Object.keys(s).filter(e=>!i.hasOwnProperty(e)).reduce((e,t)=>(e[t]=s[t],e),{})};function o(e){if(!e||e.trim()===``)return!1;if(e.startsWith(`@`)){let t=e.indexOf(`/`);if(t!==-1){let n=e.substring(t+1);if(!n||n.trim()===``)return!1}}return!0}e.getGraphDependencies=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(o(n)&&(e[n]={version:r,isDev:t.isDev,isOptional:t.isOptional||!1}),e),{});function s(e){let t=(0,n.parseJsonFile)(e,`package.json`);return t.name||=`package.json`,t}e.getChildNode=(n,a,o,s,c)=>{let l=`${n}@${a.version}`,u,d=a.alias;if(!d&&o[l]){for(let e in o)if(e.startsWith(`${n}@npm:`)&&o[e].version===o[l].version){let t=e.substring(n.length+1),r=(0,i.parseNpmAlias)(t);if(r){let e=r.packageName;e!==n&&(d={aliasName:n,aliasTargetDepName:e,semver:r.version,version:r.version});break}}}if(o[l]){let t=o[l],r=(0,e.getGraphDependencies)(t.dependencies||{},{isDev:a.isDev}),i=c?(0,e.getGraphDependencies)(t.optionalDependencies||{},{isDev:a.isDev,isOptional:!0}):{};u={id:`${n}@${t.version}`,name:d?.aliasTargetDepName??n,version:t.version,dependencies:{...r,...i},isDev:a.isDev,alias:d,integrity:t.integrity,resolved:t.resolved}}else if(a.isOptional)u={id:l,name:d?.aliasTargetDepName??n,version:a.version,dependencies:{},isDev:a.isDev,missingLockFileEntry:!0,alias:d};else if(s&&!/^file:/.test(a.version))throw new t.OutOfSyncError(l,r.LockfileType.yarn);else u={id:l,name:d?.aliasTargetDepName??n,version:a.version,dependencies:{},isDev:a.isDev,missingLockFileEntry:!0,alias:d};return u}})),Un=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV1SimpleCyclesPruned=void 0;let t=G(),n=Hn(),r=pe();var i;(function(e){e[e.GRAY=0]=`GRAY`,e[e.BLACK=1]=`BLACK`})(i||={}),e.buildDepGraphYarnLockV1SimpleCyclesPruned=async(e,r,i)=>{let{includeDevDeps:o,strictOutOfSync:s,includeOptionalDeps:c,showNpmScope:l,includeComponentMetadata:u}=i,d=new t.DepGraphBuilder({name:`yarn`},{name:r.name,version:r.version},(0,n.createNodeInfo)(i)),f={},p=(0,n.getTopLevelDeps)(r,{includeDevDeps:o}),m={id:`root-node`,name:r.name,version:r.version,dependencies:p,isDev:!1};return await a(d,m,f,e,s,c,l,u),d.build()};let a=async(e,t,o,s,c,l,u,d)=>{o[t.id]=i.GRAY;for(let[f,p]of Object.entries(t.dependencies||{})){r.eventLoopSpinner.isStarving()&&await r.eventLoopSpinner.spin();let m=(0,n.getChildNode)(f,p,s,c,l);o.hasOwnProperty(m.id)?o[m.id]===i.GRAY&&(m.id=`${m.id}:pruned`,(0,n.addPkgNodeToGraph)(e,m,{isCyclic:!0,showNpmScope:u,includeComponentMetadata:d})):((0,n.addPkgNodeToGraph)(e,m,{showNpmScope:u,includeComponentMetadata:d}),await a(e,m,o,s,c,l,u,d)),e.connectDep(t.id,m.id)}o[t.id]=i.BLACK}})),Wn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV1Simple=void 0;let t=G(),n=Hn(),r=pe(),i=Vn(),a=An();e.buildDepGraphYarnLockV1Simple=async(e,r,i)=>{let{includeDevDeps:a,includeOptionalDeps:s,includePeerDeps:c,strictOutOfSync:l,pruneWithinTopLevelDeps:u,showNpmScope:d,includeComponentMetadata:f}=i,p=new t.DepGraphBuilder({name:`yarn`},{name:r.name,version:r.version},(0,n.createNodeInfo)(i)),m=(0,n.getTopLevelDeps)(r,{includeDevDeps:a,includePeerDeps:c,includeOptionalDeps:s}),h={id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1};return await o(p,h,e,l,s,u,void 0,d,f),p.build()};let o=async(e,t,s,c,l,u,d,f,p)=>{for(let[m,h]of Object.entries(t.dependencies||{})){let g=Object.assign({},h);r.eventLoopSpinner.isStarving()&&await r.eventLoopSpinner.spin();let _=d||/* @__PURE__ */ new Set;if(h.version.startsWith(`npm:`)){let e=(0,i.parseNpmAlias)(h.version);e&&e.packageName&&(g={...g,alias:{aliasName:m,aliasTargetDepName:e.packageName,semver:e.version,version:null}})}let v=(0,n.getChildNode)(m,g,s,c,l);if(_.has(v.id)){if(u){let n=`${v.id}:pruned`;e.addPkgNode({name:v.name,version:v.version},n,{labels:{scope:t.isDev?`dev`:`prod`,...f&&{"npm:scope":t.isDev?`dev`:`prod`},pruned:`true`,...t.missingLockFileEntry&&{missingLockFileEntry:`true`},...v.alias&&{alias:`${v.alias.aliasName}=>${v.alias.aliasTargetDepName}@${v.version}`},...p&&(0,a.getComponentMetadataLabels)(v)}}),e.connectDep(t.id,n)}else e.connectDep(t.id,v.id)}else e.addPkgNode({name:v.name,version:v.version},v.id,{labels:{scope:t.isDev?`dev`:`prod`,...f&&{"npm:scope":t.isDev?`dev`:`prod`},...t.missingLockFileEntry&&{missingLockFileEntry:`true`},...v.alias&&{alias:`${v.alias.aliasName}=>${v.alias.aliasTargetDepName}@${v.version}`},...p&&(0,a.getComponentMetadataLabels)(v)}}),e.connectDep(t.id,v.id),_.add(v.id),await o(e,v,s,c,l,u,_,f,p)}}})),Gn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getChildNodeYarnLockV1Workspace=void 0;let t=q(),n=yt(),r=Hn();e.getChildNodeYarnLockV1Workspace=(e,i,a,o,s,c)=>{let l;if(a[e]){let r=a[e];if(s)throw new t.OutOfSyncError(`${e}@${r}`,n.LockfileType.yarn);l={id:`${e}@${r}`,name:e,version:r,dependencies:{},isDev:i.isDev}}else l=(0,r.getChildNode)(e,i,o,s,c);return l}})),Kn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=void 0;let t=G(),n=Hn(),r=Gn(),i=pe();var a;(function(e){e[e.GRAY=0]=`GRAY`,e[e.BLACK=1]=`BLACK`})(a||={}),e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=async(e,r,i,a)=>{let{includeDevDeps:s,strictOutOfSync:c,includeOptionalDeps:l,showNpmScope:u,includeComponentMetadata:d}=a,f=new t.DepGraphBuilder({name:`yarn`},{name:r.name,version:r.version},(0,n.createNodeInfo)(a)),p={},m=(0,n.getTopLevelDeps)(r,{includeDevDeps:s}),h={id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1};return await o(f,h,p,e,i,c,l,u,d),f.build()};let o=async(e,t,s,c,l,u,d,f,p)=>{s[t.id]=a.GRAY;for(let[m,h]of Object.entries(t.dependencies||{})){i.eventLoopSpinner.isStarving()&&await i.eventLoopSpinner.spin();let g=!!l[m],_=(0,r.getChildNodeYarnLockV1Workspace)(m,h,l,c,u,d);s.hasOwnProperty(_.id)?s[_.id]===a.GRAY&&(_.id=`${_.id}|1`,(0,n.addPkgNodeToGraph)(e,_,{isCyclic:!0,isWorkspacePkg:g,showNpmScope:f,includeComponentMetadata:p})):((0,n.addPkgNodeToGraph)(e,_,{isCyclic:!1,isWorkspacePkg:g,showNpmScope:f,includeComponentMetadata:p}),g?s[_.id]=a.BLACK:await o(e,_,s,c,l,u,d,f,p)),e.connectDep(t.id,_.id)}s[t.id]=a.BLACK}})),qn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV1Workspace=void 0;let t=G(),n=Hn(),r=Gn(),i=pe();e.buildDepGraphYarnLockV1Workspace=async(e,r,i,o)=>{let{includeDevDeps:s,strictOutOfSync:c,includeOptionalDeps:l,showNpmScope:u,includeComponentMetadata:d}=o,f=new t.DepGraphBuilder({name:`yarn`},{name:r.name,version:r.version},(0,n.createNodeInfo)(o)),p=/* @__PURE__ */ new Set,m=(0,n.getTopLevelDeps)(r,{includeDevDeps:s}),h={id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1};return await a(f,h,p,e,i,c,l,u,d),f.build()};let a=async(e,t,o,s,c,l,u,d,f)=>{o.add(t.id);for(let[p,m]of Object.entries(t.dependencies||{})){i.eventLoopSpinner.isStarving()&&await i.eventLoopSpinner.spin();let h=!!c[p],g=(0,r.getChildNodeYarnLockV1Workspace)(p,m,c,s,l,u);o.has(g.id)||((0,n.addPkgNodeToGraph)(e,g,{isCyclic:!1,isWorkspacePkg:h,showNpmScope:d,includeComponentMetadata:f}),h||await a(e,g,o,s,c,l,u,d,f)),e.connectDep(t.id,g.id)}}})),Jn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extractPkgsFromYarnLockV1=void 0;let t=Mn();e.extractPkgsFromYarnLockV1=e=>t.parse(e).object})),Yn=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseYarnLockV1Project=void 0;let t=nr(),n=Vn(),r=Hn(),i=Un(),a=Jn();e.parseYarnLockV1Project=async(e,o,s)=>{let{includeDevDeps:c,includeOptionalDeps:l,includePeerDeps:u,pruneLevel:d,strictOutOfSync:f,honorAliases:p,showNpmScope:m,includeComponentMetadata:h}=s,g=(0,a.extractPkgsFromYarnLockV1)(o),_=(0,r.parsePkgJson)(p?(0,n.rewriteAliasesPkgJson)(e):e);return d===`cycles`?await(0,i.buildDepGraphYarnLockV1SimpleCyclesPruned)(g,_,{includeDevDeps:c,strictOutOfSync:f,includeOptionalDeps:l,showNpmScope:m,includeComponentMetadata:h}):await(0,t.buildDepGraphYarnLockV1Simple)(g,_,{includeDevDeps:c,includeOptionalDeps:l,includePeerDeps:u,strictOutOfSync:f,pruneWithinTopLevelDeps:d===`withinTopLevelDeps`,showNpmScope:m,includeComponentMetadata:h})}})),Xn=/* @__PURE__ */ e.t(((e,t)=>{t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}})),Zn=/* @__PURE__ */ e.t(((e,t)=>{let n=require("os"),r=/\s+at.*(?:\(|\s)(.*)\)?/,i=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,a=n.homedir===void 0?``:n.homedir();t.exports=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,`/`).split(`
`).filter(e=>{let t=e.match(r);if(t===null||!t[1])return!0;let n=t[1];return n.includes(`.app/Contents/Resources/electron.asar`)||n.includes(`.app/Contents/Resources/default_app.asar`)?!1:!i.test(n)}).filter(e=>e.trim()!==``).map(e=>t.pretty?e.replace(r,(e,t)=>e.replace(t,t.replace(a,`~`))):e).join(`
`))})),Qn=/* @__PURE__ */ e.t(((e,t)=>{let n=Xn(),r=Zn(),i=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,``);t.exports=class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);e=[...e].map(e=>e instanceof Error?e:typeof e==`object`&&e?Object.assign(Error(e.message),e):Error(e));let t=e.map(e=>typeof e.stack==`string`?i(r(e.stack)):String(e)).join(`
`);t=`
`+n(t,4),super(t),this.name=`AggregateError`,Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(let e of this._errors)yield e}}})),$n=/* @__PURE__ */ e.t(((e,t)=>{let n=Qn();t.exports=async(e,t,{concurrency:r=1/0,stopOnError:i=!0}={})=>new Promise((a,o)=>{if(typeof t!=`function`)throw TypeError(`Mapper function is required`);if(!((Number.isSafeInteger(r)||r===1/0)&&r>=1))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let s=[],c=[],l=e[Symbol.iterator](),u=!1,d=!1,f=0,p=0,m=()=>{if(u)return;let e=l.next(),r=p;p++,e.done?(d=!0,f===0&&(!i&&c.length!==0?o(new n(c)):a(s))):(f++,(async()=>{try{let n=await e.value;s[r]=await t(n,r),f--,m()}catch(e){i?(u=!0,o(e)):(c.push(e),f--,m())}})())};for(let e=0;e<r&&(m(),!d);e++);})})),er=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cMap=r;let t=$n(),n=pe();async function r(e,r,i){let a=i?.concurrency??6;return await t(e,async e=>(n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin(),await r(e)),{concurrency:a})}})),tr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseYarnLockV1WorkspaceProject=void 0;let t=Kn(),n=qn(),r=Jn(),i=Hn(),a=er();e.parseYarnLockV1WorkspaceProject=async(e,o,s)=>{let{includeDevDeps:c,includeOptionalDeps:l,pruneCycles:u,strictOutOfSync:d,includeComponentMetadata:f}=s,p=(0,r.extractPkgsFromYarnLockV1)(e),m={},h=o.map(e=>{let t=(0,i.parsePkgJson)(e);return m[t.name]=t.version,t});return(0,a.cMap)(h,async e=>u?await(0,t.buildDepGraphYarnLockV1WorkspaceCyclesPruned)(p,e,m,{includeDevDeps:c,strictOutOfSync:d,includeOptionalDeps:l,includeComponentMetadata:f}):await(0,n.buildDepGraphYarnLockV1Workspace)(p,e,m,{includeDevDeps:c,strictOutOfSync:d,includeOptionalDeps:l,includeComponentMetadata:f}))}})),nr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV1Simple=e.buildDepGraphYarnLockV1SimpleCyclesPruned=e.buildDepGraphYarnLockV1Workspace=e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=e.extractPkgsFromYarnLockV1=e.parseYarnLockV1Project=e.parseYarnLockV1WorkspaceProject=void 0;let t=Un();Object.defineProperty(e,"buildDepGraphYarnLockV1SimpleCyclesPruned",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1SimpleCyclesPruned}});let n=Wn();Object.defineProperty(e,"buildDepGraphYarnLockV1Simple",{enumerable:!0,get:function(){return n.buildDepGraphYarnLockV1Simple}});let r=Kn();Object.defineProperty(e,"buildDepGraphYarnLockV1WorkspaceCyclesPruned",{enumerable:!0,get:function(){return r.buildDepGraphYarnLockV1WorkspaceCyclesPruned}});let i=qn();Object.defineProperty(e,"buildDepGraphYarnLockV1Workspace",{enumerable:!0,get:function(){return i.buildDepGraphYarnLockV1Workspace}});let a=Jn();Object.defineProperty(e,"extractPkgsFromYarnLockV1",{enumerable:!0,get:function(){return a.extractPkgsFromYarnLockV1}});let o=Yn();Object.defineProperty(e,"parseYarnLockV1Project",{enumerable:!0,get:function(){return o.parseYarnLockV1Project}});let s=tr();Object.defineProperty(e,"parseYarnLockV1WorkspaceProject",{enumerable:!0,get:function(){return s.parseYarnLockV1WorkspaceProject}})})),rr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getYarnLockV2ChildNode=e.yarnLockFileKeyNormalizer=void 0;let t=Pn(),r=Fn(),i=q(),a=yt(),o=Hn(),s=require("semver"),c=n.n()(`snyk-nodejs-plugin`),l=/ *, */g,u=(e,t)=>n=>{let r=[n],i=e(n),a=`${i.scope?`@`+i.scope+`/`:``}${i.name}`,o=t(i.range),s=o.protocol;switch(s){case`npm:`:case`file:`:r.push(`${a}@${o.selector}`),r.push(`${a}@${s}${o.selector}`);break;case`git:`:case`git+ssh:`:case`git+http:`:case`git+https:`:case`github:`:o.source?r.push(`${a}@${s}${o.source}${o.selector?`#`+o.selector:``}`):r.push(`${a}@${s}${o.selector}`);break;case`patch:`:o.source&&o.selector.indexOf(`builtin`)===0?r.push(o.source):r.push(`${a}@${s}${o.source}${o.selector?`#`+o.selector:``}`);break;case null:case void 0:o.source?r.push(`${a}@${o.source}#${o.selector}`):r.push(`${a}@${o.selector}`);break;default:r.push(`${a}@${s}${o.selector}`)}return r};e.yarnLockFileKeyNormalizer=(e,t)=>n=>{let i=n.split(l).map(u(e,t));return new Set(r(i))};let d=(e,t)=>{let n=/* @__PURE__ */ new Set([...Object.keys(t.dependencies||{}),...Object.keys(t.optionalDependencies||{}),...Object.keys(t.peerDependencies||{})]),r=new Set(Object.keys(t.devDependencies||{}));return Object.entries(e).reduce((e,[t,i])=>(r.has(t)&&!n.has(t)||(e[t]=i),e),{})};e.getYarnLockV2ChildNode=(e,n,r,l,u,f,p,m=!1,h)=>{let g=(()=>{let r=`${p.name}/${e}`;if(f[r])return f[r];let i=`/${e}`;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){if(!e.endsWith(i))continue;let n=e.substring(0,e.length-i.length);if(!n.includes(`@`)||n===p.name)continue;try{let r=t.parseDescriptor(n);if(t.stringifyIdent(r)!==p.name)continue;if(r.range&&r.range!==`unknown`){let e=r.range.replace(/^[a-z]+:/,``);if(p.version!==e&&!(s.valid(p.version)&&s.validRange(e)&&s.satisfies(p.version,e)))continue}return f[e]}catch(t){c(`Error parsing scoped-versioned resolution key(${e}): ${t}`)}}for(let r in f)if(Object.prototype.hasOwnProperty.call(f,r))try{let i=t.parseDescriptor(r);if(t.stringifyIdent(i)===e&&i.range&&i.range!==`unknown`){let e=n.version.replace(/^[a-z]+:/,``),t=i.range.replace(/^[a-z]+:/,``);if(e===t||s.valid(e)&&s.satisfies(e,t))return f[r]}}catch(e){c(`Error parsing resolution key(${r}): ${e}$`)}return f[e]?f[e]:``})();if(g){let t=decodeURIComponent(g),s=`${e}@${t}`;if(!r[s]){if(l&&!/^file:/.test(t))throw new i.OutOfSyncError(s,a.LockfileType.yarn2);return{id:s,name:n.alias?n.alias.aliasTargetDepName:e,version:t,dependencies:{},isDev:n.isDev,missingLockFileEntry:!0,...n.alias?{alias:{...n.alias,version:t}}:{}}}let c=r[s],{version:f,dependencies:p,optionalDependencies:_}=c,v=(0,o.getGraphDependencies)(p||{},{isDev:n.isDev}),y=u?(0,o.getGraphDependencies)(_||{},{isDev:n.isDev,isOptional:!0}):{},b=h?.[n.alias?n.alias.aliasTargetDepName:e];return!m&&b&&c.resolution?.includes(`@workspace:`)&&(v=d(v,b)),{id:`${e}@${f}`,name:n.alias?n.alias.aliasTargetDepName:e,version:f,dependencies:{...y,...v},isDev:n.isDev,...n.alias?{alias:{...n.alias,version:f}}:{}}}let _=`${e}@${n.version}`;if(r[_]){let t=r[_],i=(0,o.getGraphDependencies)(t.dependencies||{},{isDev:n.isDev}),a=u?(0,o.getGraphDependencies)(t.optionalDependencies||{},{isDev:n.isDev,isOptional:!0}):{},s=h?.[n.alias?n.alias.aliasTargetDepName:e];return!m&&s&&t.resolution?.includes(`@workspace:`)&&(i=d(i,s)),{id:`${e}@${t.version}`,name:n.alias?n.alias.aliasTargetDepName:e,version:t.version,dependencies:{...i,...a},isDev:n.isDev,...n.alias?{alias:{...n.alias,version:t.version}}:{}}}if(l&&!/^file:/.test(n.version))throw new i.OutOfSyncError(_,a.LockfileType.yarn2);return{id:_,name:n.alias?n.alias.aliasTargetDepName:e,version:n.version,dependencies:{},isDev:n.isDev,missingLockFileEntry:!0,...n.alias?{alias:{...n.alias,version:n.version}}:{}}}})),ir=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphYarnLockV2Simple=void 0;let t=G(),n=Hn(),r=rr(),i=pe(),a=Vn();e.buildDepGraphYarnLockV2Simple=async(e,r,i,a)=>{let{includeDevDeps:s,strictOutOfSync:c,includeOptionalDeps:l,pruneWithinTopLevelDeps:u,showNpmScope:d}=i,f=new t.DepGraphBuilder({name:`yarn`},{name:r.name,version:r.version},(0,n.createNodeInfo)(i)),p=(0,n.getTopLevelDeps)(r,{includeDevDeps:s}),m={id:`root-node`,name:r.name,version:r.version,dependencies:p,isDev:!1};return await o(f,m,e,c,l,a?.rootResolutions||r.resolutions||{},u,void 0,d,s,a?.workspacePackages),f.build()};let o=async(e,t,n,s,c,l,u,d,f,p=!1,m)=>{for(let[h,g]of Object.entries(t.dependencies||{})){let _=g;if(i.eventLoopSpinner.isStarving()&&await i.eventLoopSpinner.spin(),g.version.startsWith(`npm:`)&&g.version.indexOf(`@`)>-1){let e=(0,a.parseNpmAlias)(g.version);e&&e.packageName&&(_={..._,alias:{aliasName:h,aliasTargetDepName:e.packageName,semver:e.version,version:null}})}let v=d||/* @__PURE__ */ new Set,y=(0,r.getYarnLockV2ChildNode)(h,_,n,s,c,l,t,p,m);if(v.has(y.id)){if(u){let n=`${y.id}:pruned`;e.addPkgNode({name:y.alias?y.alias.aliasName:y.name,version:y.version},n,{labels:{scope:t.isDev?`dev`:`prod`,...f&&{"npm:scope":t.isDev?`dev`:`prod`},pruned:`true`,...t.missingLockFileEntry&&{missingLockFileEntry:`true`},...y.alias&&{alias:`${y.alias.aliasName}=>${y.alias.aliasTargetDepName}@${y.version}`}}}),e.connectDep(t.id,n)}else e.connectDep(t.id,y.id)}else e.addPkgNode({name:y.alias?y.alias.aliasName:y.name,version:y.version},y.id,{labels:{scope:t.isDev?`dev`:`prod`,...f&&{"npm:scope":t.isDev?`dev`:`prod`},...t.missingLockFileEntry&&{missingLockFileEntry:`true`},...y.alias&&{alias:`${y.alias.aliasName}=>${y.alias.aliasTargetDepName}@${y.version}`}}}),e.connectDep(t.id,y.id),v.add(y.id),await o(e,y,n,s,c,l,u,v,f,p,m)}}})),ar=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extractPkgsFromYarnLockV2=void 0;let t=Pn(),n=rr(),r=vt(),i=(0,n.yarnLockFileKeyNormalizer)(t.parseDescriptor,t.parseRange);e.extractPkgsFromYarnLockV2=e=>{let t=(0,r.loadYamlMappingOrThrow)(e,`yarn.lock`);delete t.__metadata;let n={};return Object.entries(t).forEach(([e,t])=>{i(e).forEach(e=>{n[e]=t})}),n}})),$=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseYarnLockV2Project=void 0;let t=ar(),r=Hn(),i=ir(),a=Vn(),o=n.n()(`snyk-nodejs-lockfile-parser:component-metadata`);e.parseYarnLockV2Project=async(e,n,s,c)=>{let{includeDevDeps:l,includeOptionalDeps:u,strictOutOfSync:d,pruneWithinTopLevelDeps:f,honorAliases:p,showNpmScope:m,includeComponentMetadata:h}=s;h&&o(`includeComponentMetadata is set but component-metadata labels are not yet produced for yarn berry (v2-4) lockfiles; skipping`);let g=(0,t.extractPkgsFromYarnLockV2)(n),_=(0,r.parsePkgJson)(p?(0,a.rewriteAliasesPkgJson)(e):e);return await(0,i.buildDepGraphYarnLockV2Simple)(g,_,{includeDevDeps:l,strictOutOfSync:d,includeOptionalDeps:u,pruneWithinTopLevelDeps:f,showNpmScope:m},c)}})),or=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extractPkgsFromYarnLockV2=e.buildDepGraphYarnLockV2Simple=e.parseYarnLockV2Project=void 0;let t=ir();Object.defineProperty(e,"buildDepGraphYarnLockV2Simple",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV2Simple}});let n=ar();Object.defineProperty(e,"extractPkgsFromYarnLockV2",{enumerable:!0,get:function(){return n.extractPkgsFromYarnLockV2}});let r=$();Object.defineProperty(e,"parseYarnLockV2Project",{enumerable:!0,get:function(){return r.parseYarnLockV2Project}})})),sr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extractPkgsFromNpmLockV2=void 0;let t=vt();e.extractPkgsFromNpmLockV2=e=>(0,t.parseJsonFile)(e,`package-lock.json`).packages})),cr=/* @__PURE__ */ e.t((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,r=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(r)>=i,e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type===`open`||r.type===`close`)&&r.escaped!==!0&&(r.value=`\\`+r.value,r.escaped=!0)},e.encloseBrace=e=>e.type===`brace`?e.commas>>0+e.ranges|0?!1:(e.invalid=!0,!0):!1,e.isInvalidBrace=e=>e.type===`brace`?e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges|0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1:!1,e.isOpenOrClose=e=>e.type===`open`||e.type===`close`||e.open===!0||e.close===!0,e.reduce=e=>e.reduce((e,t)=>(t.type===`text`&&e.push(t.value),t.type===`range`&&(t.type=`text`),e),[]),e.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?n(i):i!==void 0&&t.push(i)}return t};return n(e),t}})),lr=/* @__PURE__ */ e.t(((e,t)=>{let n=cr();t.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),o=e.invalid===!0&&t.escapeInvalid===!0,s=``;if(e.value)return(a||o)&&n.isOpenOrClose(e)?`\\`+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=r(t);return s};return r(e)}})),ur=/* @__PURE__ */ e.t(((e,t)=>{
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),dr=/* @__PURE__ */ e.t(((e,t)=>{
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/
let n=ur(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the first argument to be a number`);if(t===void 0||e===t)return String(e);if(n(t)===!1)throw TypeError(`toRegexRange: expected the second argument to be a number.`);let o={relaxZeros:!0,...a};typeof o.strictZeros==`boolean`&&(o.relaxZeros=o.strictZeros===!1);let c=String(o.relaxZeros),l=String(o.shorthand),u=String(o.capture),d=String(o.wrap),f=e+`:`+t+`=`+c+l+u+d;if(r.cache.hasOwnProperty(f))return r.cache[f].result;let p=Math.min(e,t),m=Math.max(e,t);if(Math.abs(p-m)===1){let n=e+`|`+t;return o.capture?`(${n})`:o.wrap===!1?n:`(?:${n})`}let h=g(e)||g(t),_={min:e,max:t,a:p,b:m},v=[],y=[];return h&&(_.isPadded=h,_.maxLen=String(_.max).length),p<0&&(y=s(m<0?Math.abs(m):1,Math.abs(p),_,o),p=_.a=0),m>=0&&(v=s(p,m,_,o)),_.negatives=y,_.positives=v,_.result=i(y,v,o),o.capture===!0?_.result=`(${_.result})`:o.wrap!==!1&&v.length+y.length>1&&(_.result=`(?:${_.result})`),r.cache[f]=_,_.result};function i(e,t,n){let r=c(e,t,`-`,!1,n)||[],i=c(t,e,``,!1,n)||[],a=c(e,t,`-?`,!0,n)||[];return r.concat(a).concat(i).join(`|`)}function a(e,t){let n=1,r=1,i=f(e,n),a=/* @__PURE__ */ new Set([t]);for(;e<=i&&i<=t;)a.add(i),n+=1,i=f(e,n);for(i=p(t+1,r)-1;e<i&&i<=t;)a.add(i),r+=1,i=p(t+1,r)-1;return a=[...a],a.sort(u),a}function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=l(e,t),i=r.length,a=``,o=0;for(let e=0;e<i;e++){let[t,i]=r[e];t===i?a+=t:t!==`0`||i!==`9`?a+=h(t,i,n):o++}return o&&(a+=n.shorthand===!0?`\\d`:`[0-9]`),{pattern:a,count:[o],digits:i}}function s(e,t,n,r){let i=a(e,t),s=[],c=e,l;for(let e=0;e<i.length;e++){let t=i[e],a=o(String(c),String(t),r),u=``;!n.isPadded&&l&&l.pattern===a.pattern?(l.count.length>1&&l.count.pop(),l.count.push(a.count[0]),l.string=l.pattern+m(l.count),c=t+1):(n.isPadded&&(u=_(t,n,r)),a.string=u+a.pattern+m(a.count),s.push(a),c=t+1,l=a)}return s}function c(e,t,n,r,i){let a=[];for(let i of e){let{string:e}=i;!r&&!d(t,`string`,e)&&a.push(n+e),r&&d(t,`string`,e)&&a.push(n+e)}return a}function l(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function u(e,t){return e>t?1:t>e?-1:0}function d(e,t,n){return e.some(e=>e[t]===n)}function f(e,t){return Number(String(e).slice(0,-t)+`9`.repeat(t))}function p(e,t){return e-e%10**t}function m(e){let[t=0,n=``]=e;return n||t>1?`{${t+(n?`,`+n:``)}}`:``}function h(e,t,n){return`[${e}${t-e===1?``:`-`}${t}]`}function g(e){return/^-?(0+)\d/.test(e)}function _(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return``;case 1:return i?`0?`:`0`;case 2:return i?`0{0,2}`:`00`;default:return i?`0{0,${r}}`:`0{${r}}`}}r.cache={},r.clearCache=()=>r.cache={},t.exports=r})),fr=/* @__PURE__ */ e.t(((e,t)=>{
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/
let n=require("util"),r=dr(),i=e=>typeof e==`object`&&!!e&&!Array.isArray(e),a=e=>t=>e===!0?Number(t):String(t),o=e=>typeof e==`number`||typeof e==`string`&&e!==``,s=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},l=(e,t,n)=>typeof e==`string`||typeof t==`string`||n.stringify===!0,u=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},d=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length<t;)e=`0`+e;return n?`-`+e:e},f=(e,t,n)=>{e.negatives.sort((e,t)=>e<t?-1:+(e>t)),e.positives.sort((e,t)=>e<t?-1:+(e>t));let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>d(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>d(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},p=(e,t,n,i)=>{if(n)return r(e,t,{wrap:!1,...i});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},m=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===!0,r=n.capture?``:`?:`;return t?`(${r}${e.join(`|`)})`:e.join(`|`)}return r(e,t,n)},h=(...e)=>/* @__PURE__ */ RangeError(`Invalid range arguments: `+n.inspect(...e)),g=(e,t,n)=>{if(n.strictRanges===!0)throw h([e,t]);return[]},_=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},v=(e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===!0)throw h([e,t]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,g=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=c(g)||c(_)||c(v),b=y?Math.max(g.length,_.length,v.length):0,x=y===!1&&l(e,t,r)===!1,S=r.transform||a(x);if(r.toRegex&&n===1)return p(d(e,b),d(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=o:i<=o;)r.toRegex===!0&&n>1?w(i):T.push(u(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?f(C,r,b):m(T,null,{wrap:!1,...r}):T},y=(e,t,n=1,r={})=>{if(!s(e)&&e.length>1||!s(t)&&t.length>1)return g(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),c=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return p(l,u,!1,r);let d=[],f=0;for(;c?a>=o:a<=o;)d.push(i(a,f)),a=c?a-n:a+n,f++;return r.toRegex===!0?m(d,null,{wrap:!1,options:r}):d},b=(e,t,n,r={})=>{if(t==null&&o(e))return[e];if(!o(e)||!o(t))return g(e,t,r);if(typeof n==`function`)return b(e,t,1,{transform:n});if(i(n))return b(e,t,0,n);let a={...r};return a.capture===!0&&(a.wrap=!0),n=n||a.step||1,s(n)?s(e)&&s(t)?v(e,t,n,a):y(e,t,Math.max(Math.abs(n),1),a):n!=null&&!i(n)?_(n,a):b(e,t,1,n)};t.exports=b})),pr=/* @__PURE__ */ e.t(((e,t)=>{let n=fr(),r=cr();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a),s=e.invalid===!0&&t.escapeInvalid===!0,c=o===!0||s===!0,l=t.escapeInvalid===!0?`\\`:``,u=``;if(e.isOpen===!0)return l+e.value;if(e.isClose===!0)return console.log(`node.isClose`,l,e.value),l+e.value;if(e.type===`open`)return c?l+e.value:`(`;if(e.type===`close`)return c?l+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:c?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=i(t,e);return u};return i(e)}})),mr=/* @__PURE__ */ e.t(((e,t)=>{let n=fr(),r=lr(),i=cr(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];n.type===`comma`&&e.type===`brace`?(t===1&&f.push(``),f.push(``)):n.type===`close`?u.push(a(u.pop(),f,d)):n.value&&n.type!==`open`?f.push(a(f.pop(),n.value)):n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),hr=/* @__PURE__ */ e.t(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:`
`,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:`	`,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),gr=/* @__PURE__ */ e.t(((e,t)=>{let n=lr(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=hr();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`)C.value+=e.value;else return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E<T;)if(S=x[x.length-1],O=k(),O!==_&&O!==g){if(O===i)A({type:`text`,value:(t.keepEscaping?O:``)+k()});else if(O===p)A({type:`text`,value:`\\`+O});else if(O===f){w++;let e;for(;E<T&&(e=k());)if(O+=e,e===f)w++;else if(e===i)O+=k();else if(e===p&&(w--,w===0))break;A({type:`text`,value:O})}else if(O===c)S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});else if(O===l){if(S.type!==`paren`){A({type:`text`,value:O});continue}S=x.pop(),A({type:`text`,value:O}),S=x[x.length-1]}else if(O===m||O===h||O===a){let e=O,n;for(t.keepQuotes!==!0&&(O=``);E<T&&(n=k());)if(n===i)O+=n+k();else{if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O})}else if(O===u)D++,S=A({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]}),x.push(S),A({type:`open`,value:O});else if(O===d){if(S.type!==`brace`){A({type:`text`,value:O});continue}S=x.pop(),S.close=!0,A({type:`close`,value:O}),D--,S=x[x.length-1]}else if(O===o&&D>0){if(S.ranges>0){S.ranges=0;let e=S.nodes.shift();S.nodes=[e,{type:`text`,value:n(S)}]}A({type:`comma`,value:O}),S.commas++}else if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O})}else A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),_r=/* @__PURE__ */ e.t(((e,t)=>{let n=lr(),r=pr(),i=mr(),a=gr(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),vr=/* @__PURE__ */ e.t(((e,t)=>{let n=require("path"),r=`[^\\\\/]`,i=`[^/]`,a=`(?:\\/|$)`,o=`(?:^|\\/)`,s=`\\.{1,2}${a}`,c={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:i,END_ANCHOR:a,DOTS_SLASH:s,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${o}${s})`,NO_DOT_SLASH:`(?!\\.{0,1}${a})`,NO_DOTS_SLASH:`(?!${s})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${i}*?`,START_ANCHOR:o},l={...c,SLASH_LITERAL:`[\\\\/]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?l:c}}})),yr=/* @__PURE__ */ e.t((e=>{let t=require("path"),n=process.platform===`win32`,{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:o}=vr();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>a.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(o,`\\$1`),e.toPosixSlashes=e=>e.replace(r,`/`),e.removeBackslashes=e=>e.replace(i,e=>e===`\\`?``:e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(`.`).map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10},e.isWindows=e=>e&&typeof e.windows==`boolean`?e.windows:n===!0||t.sep===`\\`,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r}})),br=/* @__PURE__ */ e.t(((e,t)=>{let n=yr(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=vr(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,ee=!1,te=!1,N=!1,ne=!1,re=!1,P=!1,F=!1,I=0,L,R,z={value:``,depth:0,isGlob:!1},ie=()=>D>=x,B=()=>E.charCodeAt(D+1),V=()=>(L=R,E.charCodeAt(++D));for(;D<x;){R=V();let e;if(R===a)ne=z.backslashes=!0,R=V(),R===u&&(N=!0);else{if(N===!0||R===u){for(I++;ie()!==!0&&(R=V());)if(R===a)ne=z.backslashes=!0,V();else if(R===u)I++;else{if(N!==!0&&R===s&&(R=V())===s||N!==!0&&R===o){if(A=z.isBrace=!0,M=z.isGlob=!0,F=!0,S===!0)continue;break}if(R===h&&(I--,I===0)){N=!1,A=z.isBrace=!0,F=!0;break}}if(S===!0)continue;break}if(R===l){if(C.push(D),w.push(z),z={value:``,depth:0,isGlob:!1},F===!0)continue;if(L===s&&D===O+1){O+=2;continue}k=D+1}else{if(b.noext!==!0&&(R===p||R===i||R===r||R===m||R===c)&&B()===d){if(M=z.isGlob=!0,ee=z.isExtglob=!0,F=!0,R===c&&D===O&&(P=!0),S===!0){for(;ie()!==!0&&(R=V());)if(R===a)ne=z.backslashes=!0,R=V();else if(R===g){M=z.isGlob=!0,F=!0;break}continue}break}if(R===r){if(L===r&&(te=z.isGlobstar=!0),M=z.isGlob=!0,F=!0,S===!0)continue;break}if(R===m){if(M=z.isGlob=!0,F=!0,S===!0)continue;break}if(R===f){for(;ie()!==!0&&(e=V());)if(e===a)ne=z.backslashes=!0,V();else if(e===_){j=z.isBracket=!0,M=z.isGlob=!0,F=!0;break}if(S===!0)continue;break}if(b.nonegate!==!0&&R===c&&D===O)re=z.negated=!0,O++;else{if(b.noparen!==!0&&R===d){if(M=z.isGlob=!0,S===!0){for(;ie()!==!0&&(R=V());)if(R===d)ne=z.backslashes=!0,R=V();else if(R===g){F=!0;break}continue}break}if(M===!0){if(F=!0,S===!0)continue;break}}}}}b.noext===!0&&(ee=!1,M=!1);let H=E,U=``,ae=``;O>0&&(U=E.slice(0,O),E=E.slice(O),k-=O),H&&M===!0&&k>0?(H=E.slice(0,k),ae=E.slice(k)):M===!0?(H=``,ae=E):H=E,H&&H!==``&&H!==`/`&&H!==E&&v(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),b.unescape===!0&&(ae&&=n.removeBackslashes(ae),H&&ne===!0&&(H=n.removeBackslashes(H)));let oe={prefix:U,input:e,start:O,base:H,glob:ae,isBrace:A,isBracket:j,isGlob:M,isExtglob:ee,isGlobstar:te,negated:re,negatedExtglob:P};if(b.tokens===!0&&(oe.maxDepth=0,v(R)||w.push(z),oe.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=U):w[n].value=a,y(w[n]),oe.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),oe.maxDepth+=w[w.length-1].depth)}oe.slashes=C,oe.parts=T}return oe}})),xr=/* @__PURE__ */ e.t(((e,t)=>{let n=vr(),r=yr(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e)if(o===!0)a+=s,o=!1;else if(s===`\\`)a+=s,o=!0;else if(s===`"`)i=i===1?0:1,a+=s;else{if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e)if(t===!0)t=!1;else if(n===`\\`)t=!0;else if(/[?*+@!()[\]{}]/.test(n))return!1;return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(a&&r===a.repeat(r.length)&&i===a.repeat(i.length)&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0)a=!1;else if(s===`\\`)a=!0;else if(s===`"`)i=i===1?0:1;else if(i!==1){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(!(n>0)){if(s===`(`)r++;else if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=r.isWindows(t),b=n.globChars(_),x=n.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:w,ONE_CHAR:T,DOTS_SLASH:E,NO_DOT:D,NO_DOT_SLASH:O,NO_DOTS_SLASH:k,QMARK:A,QMARK_NO_DOT:j,STAR:M,START_ANCHOR:ee}=b,te=e=>`(${g}(?:(?!${ee}${e.dot?E:S}).)*?)`,N=d.dot?``:D,ne=d.dot?A:j,re=d.bash===!0?te(d):M;d.capture&&(re=`(${re})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let P={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,P),p=e.length;let F=[],I=[],L=[],R=m,z,ie=()=>P.index===p-1,B=P.peek=(t=1)=>e[P.index+t],V=P.advance=()=>e[++P.index]||``,H=()=>e.slice(P.index+1),U=(e=``,t=0)=>{P.consumed+=e,P.index+=t},ae=e=>{P.output+=e.output==null?e.value:e.output,U(e.value)},oe=()=>{let e=1;for(;B()===`!`&&(B(2)!==`(`||B(3)===`?`);)V(),P.start++,e++;return e%2!=0&&(P.negated=!0,P.start++,!0)},se=e=>{P[e]++,L.push(e)},ce=e=>{P[e]--,L.pop()},W=e=>{if(R.type===`globstar`){let t=P.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||F.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(P.output=P.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=re,P.output+=R.output)}F.length&&e.type!==`paren`&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&ae(e),R&&R.type===`text`&&e.type===`text`?(R.value+=e.value,R.output=(R.output||``)+e.value):(e.prev=R,h.push(e),R=e)},le=(e,t)=>{let n={...x[t],conditions:1,inner:``};n.prev=R,n.parens=P.parens,n.output=P.output,n.startIndex=P.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;se(`parens`),W({type:e,value:t,output:P.output?``:T}),W({type:`paren`,extglob:!0,value:V(),output:r}),F.push(n)},ue=n=>{let i=e.slice(n.startIndex,P.index+1),a=e.slice(n.startIndex+2,P.index),o=v(a,d);if((n.type===`plus`||n.type===`star`)&&o.risky){let e=o.safeOutput?(n.output?``:T)+(d.capture?`(${o.safeOutput})`:o.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;P.output=n.output+t.output,P.backtrack=!0,W({type:`paren`,extglob:!0,value:z,output:``}),ce(`parens`);return}let s=n.close+(d.capture?`)`:``),c;if(n.type===`negate`){let e=re;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=te(d)),(e!==re||ie()||/^\)+$/.test(H()))&&(s=n.close=`)$))${e}`),n.inner.includes(`*`)&&(c=H())&&/^\.[^\\/.]+$/.test(c)&&(s=n.close=`)${y(c,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(P.negatedExtglob=!0)}W({type:`paren`,extglob:!0,value:z,output:s}),ce(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?A.repeat(a.length):``):o===0?ne+(a?A.repeat(a.length):``):A.repeat(r.length):i===`.`?S.repeat(r.length):i===`*`?t?t+i+(a?re:``):re:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(P.output=e,P):(P.output=r.wrapOutput(i,P,t),P)}for(;!ie();){if(z=V(),z===`\0`)continue;if(z===`\\`){let e=B();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){z+=`\\`,W({type:`text`,value:z});continue}let t=/^\\+/.exec(H()),n=0;if(t&&t[0].length>2&&(n=t[0].length,P.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=V():z+=V(),P.brackets===0){W({type:`text`,value:z});continue}}if(P.brackets>0&&(z!==`]`||R.value===`[`||R.value===`[^`)){if(d.posix!==!1&&z===`:`){let e=R.value.slice(1);if(e.includes(`[`)&&(R.posix=!0,e.includes(`:`))){let e=R.value.lastIndexOf(`[`),t=R.value.slice(0,e),n=R.value.slice(e+2),r=a[n];if(r){R.value=t+r,P.backtrack=!0,V(),!m.output&&h.indexOf(R)===1&&(m.output=T);continue}}}(z===`[`&&B()!==`:`||z===`-`&&B()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,ae({value:z});continue}if(P.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,ae({value:z});continue}if(z===`"`){P.quotes=P.quotes===1?0:1,d.keepQuotes===!0&&W({type:`text`,value:z});continue}if(z===`(`){se(`parens`),W({type:`paren`,value:z});continue}if(z===`)`){if(P.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=F[F.length-1];if(e&&P.parens===e.parens+1){ue(F.pop());continue}W({type:`paren`,value:z,output:P.parens?`)`:`\\)`}),ce(`parens`);continue}if(z===`[`){if(d.nobracket===!0||!H().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));z=`\\${z}`}else se(`brackets`);W({type:`bracket`,value:z});continue}if(z===`]`){if(d.nobracket===!0||R&&R.type===`bracket`&&R.value.length===1){W({type:`text`,value:z,output:`\\${z}`});continue}if(P.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));W({type:`text`,value:z,output:`\\${z}`});continue}ce(`brackets`);let e=R.value.slice(1);if(R.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(z=`/${z}`),R.value+=z,ae({value:z}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(R.value);if(P.output=P.output.slice(0,-R.value.length),d.literalBrackets===!0){P.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,P.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){se(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:P.output.length,tokensIndex:P.tokens.length};I.push(e),W(e);continue}if(z===`}`){let e=I[I.length-1];if(d.nobrace===!0||!e){W({type:`text`,value:z,output:z});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),P.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=P.output.slice(0,e.outputIndex),r=P.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,P.output=n;for(let e of r)P.output+=e.output||e.value}W({type:`brace`,value:z,output:t}),ce(`braces`),I.pop();continue}if(z===`|`){F.length>0&&F[F.length-1].conditions++,W({type:`text`,value:z});continue}if(z===`,`){let e=z,t=I[I.length-1];t&&L[L.length-1]===`braces`&&(t.comma=!0,e=`|`),W({type:`comma`,value:z,output:e});continue}if(z===`/`){if(R.type===`dot`&&P.index===P.start+1){P.start=P.index+1,P.consumed=``,P.output=``,h.pop(),R=m;continue}W({type:`slash`,value:z,output:w});continue}if(z===`.`){if(P.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=S);let e=I[I.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(P.braces+P.parens===0&&R.type!==`bos`&&R.type!==`slash`){W({type:`text`,value:z,output:S});continue}W({type:`dot`,value:z,output:S});continue}if(z===`?`){if(!(R&&R.value===`(`)&&d.noextglob!==!0&&B()===`(`&&B(2)!==`?`){le(`qmark`,z);continue}if(R&&R.type===`paren`){let e=B(),t=z;if(e===`<`&&!r.supportsLookbehinds())throw Error(`Node.js v10 or higher is required for regex lookbehinds`);(R.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(H()))&&(t=`\\${z}`),W({type:`text`,value:z,output:t});continue}if(d.dot!==!0&&(R.type===`slash`||R.type===`bos`)){W({type:`qmark`,value:z,output:j});continue}W({type:`qmark`,value:z,output:A});continue}if(z===`!`){if(d.noextglob!==!0&&B()===`(`&&(B(2)!==`?`||!/[!=<:]/.test(B(3)))){le(`negate`,z);continue}if(d.nonegate!==!0&&P.index===0){oe();continue}}if(z===`+`){if(d.noextglob!==!0&&B()===`(`&&B(2)!==`?`){le(`plus`,z);continue}if(R&&R.value===`(`||d.regex===!1){W({type:`plus`,value:z,output:C});continue}if(R&&(R.type===`bracket`||R.type===`paren`||R.type===`brace`)||P.parens>0){W({type:`plus`,value:z});continue}W({type:`plus`,value:C});continue}if(z===`@`){if(d.noextglob!==!0&&B()===`(`&&B(2)!==`?`){W({type:`at`,extglob:!0,value:z,output:``});continue}W({type:`text`,value:z});continue}if(z!==`*`){(z===`$`||z===`^`)&&(z=`\\${z}`);let e=o.exec(H());e&&(z+=e[0],P.index+=e[0].length),W({type:`text`,value:z});continue}if(R&&(R.type===`globstar`||R.star===!0)){R.type=`star`,R.star=!0,R.value+=z,R.output=re,P.backtrack=!0,P.globstar=!0,U(z);continue}let t=H();if(d.noextglob!==!0&&/^\([^?]/.test(t)){le(`star`,z);continue}if(R.type===`star`){if(d.noglobstar===!0){U(z);continue}let n=R.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){W({type:`star`,value:z,output:``});continue}let o=P.braces>0&&(n.type===`comma`||n.type===`brace`),s=F.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){W({type:`star`,value:z,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[P.index+4];if(n&&n!==`/`)break;t=t.slice(3),U(`/**`,3)}if(n.type===`bos`&&ie()){R.type=`globstar`,R.value+=z,R.output=te(d),P.output=R.output,P.globstar=!0,U(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&ie()){P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=te(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,P.globstar=!0,P.output+=n.output+R.output,U(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;P.output=P.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=`${te(d)}${w}|${w}${e})`,R.value+=z,P.output+=n.output+R.output,P.globstar=!0,U(z+V()),W({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${w}|${te(d)}${w})`,P.output=R.output,P.globstar=!0,U(z+V()),W({type:`slash`,value:`/`,output:``});continue}P.output=P.output.slice(0,-R.output.length),R.type=`globstar`,R.output=te(d),R.value+=z,P.output+=R.output,P.globstar=!0,U(z);continue}let n={type:`star`,value:z,output:re};d.bash===!0?(n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=N+n.output),W(n)):R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0?(n.output=z,W(n)):((P.index===P.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(P.output+=O,R.output+=O):d.dot===!0?(P.output+=k,R.output+=k):(P.output+=N,R.output+=N),B()!==`*`&&(P.output+=T,R.output+=T)),W(n))}for(;P.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));P.output=r.escapeLast(P.output,`[`),ce(`brackets`)}for(;P.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));P.output=r.escapeLast(P.output,`(`),ce(`parens`)}for(;P.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));P.output=r.escapeLast(P.output,`{`),ce(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&W({type:`maybe_slash`,value:``,output:`${w}?`}),P.backtrack===!0){P.output=``;for(let e of P.tokens)P.output+=e.output==null?e.value:e.output,e.suffix&&(P.output+=e.suffix)}return P};y.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let l=r.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:_,START_ANCHOR:v}=n.globChars(l),y=a.dot?h:m,b=a.dot?g:m,x=a.capture?``:`?:`,S={negated:!1,prefix:``},C=a.bash===!0?`.*?`:_;a.capture&&(C=`(${C})`);let w=e=>e.noglobstar===!0?C:`(${x}(?:(?!${v}${e.dot?p:u}).)*?)`,T=e=>{switch(e){case`*`:return`${y}${f}${C}`;case`.*`:return`${u}${f}${C}`;case`*.*`:return`${y}${C}${u}${f}${C}`;case`*/*`:return`${y}${C}${d}${f}${b}${C}`;case`**`:return y+w(a);case`**/*`:return`(?:${y}${w(a)}${d})?${b}${f}${C}`;case`**/*.*`:return`(?:${y}${w(a)}${d})?${b}${C}${u}${f}${C}`;case`**/.*`:return`(?:${y}${w(a)}${d})?${u}${f}${C}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=T(t[1]);return n?n+u+t[2]:void 0}}},E=T(r.removePrefix(e,S));return E&&a.strictSlashes!==!0&&(E+=`${d}?`),E},t.exports=y})),Sr=/* @__PURE__ */ e.t(((e,t)=>{let n=require("path"),r=br(),i=xr(),a=yr(),o=vr(),s=e=>e&&typeof e==`object`&&!Array.isArray(e),c=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>c(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=s(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},o=a.isWindows(t),l=r?c.compileRe(e,t):c.makeRe(e,t,!1,!0),u=l.state;delete l.state;let d=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};d=c(i.ignore,e,n)}let f=(n,r=!1)=>{let{isMatch:a,match:s,output:f}=c.test(n,l,t,{glob:e,posix:o}),p={glob:e,state:u,regex:l,posix:o,input:n,output:f,match:s,isMatch:a};return typeof i.onResult==`function`&&i.onResult(p),a===!1?(p.isMatch=!1,r?p:!1):d(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),!r||p)};return n&&(f.state=u),f};c.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},s=o.format||(i?a.toPosixSlashes:null),l=e===r,u=l&&s?s(e):e;return l===!1&&(u=s?s(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?c.matchBase(e,t,n,i):t.exec(u)),{isMatch:!!l,match:l,output:u}},c.matchBase=(e,t,r,i=a.isWindows(r))=>(t instanceof RegExp?t:c.makeRe(t,r)).test(n.basename(e)),c.isMatch=(e,t,n)=>c(t,n)(e),c.parse=(e,t)=>Array.isArray(e)?e.map(e=>c.parse(e,t)):i(e,{...t,fastpaths:!1}),c.scan=(e,t)=>r(e,t),c.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let l=c.toRegex(s,t);return r===!0&&(l.state=e),l},c.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=i.fastpaths(e,t)),a.output||(a=i(e,t)),c.compileRe(a,t,n,r)},c.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},c.constants=o,t.exports=c})),Cr=/* @__PURE__ */ e.t(((e,t)=>{t.exports=Sr()})),wr=/* @__PURE__ */ e.t(((e,t)=>{let n=require("util"),r=_r(),i=Cr(),a=yr(),o=e=>e===``||e===`./`,s=e=>{let t=e.indexOf(`{`);return t>-1&&e.indexOf(`}`,t)>-1},c=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set,o=/* @__PURE__ */ new Set,s=0,c=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o<t.length;o++){let l=i(String(t[o]),{...n,onResult:c},!0),u=l.state.negated||l.state.negatedExtglob;u&&s++;for(let t of e){let e=l(t,!0);(u?!e.isMatch:e.isMatch)&&(u?r.add(e.output):(r.delete(e.output),a.add(e.output)))}}let l=(s===t.length?[...o]:[...a]).filter(e=>!r.has(e));if(n&&l.length===0){if(n.failglob===!0)throw Error(`No matches found for "${t.join(`, `)}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(e=>e.replace(/\\/g,``)):t}return l};c.match=c,c.matcher=(e,t)=>i(e,t),c.isMatch=(e,t,n)=>i(t,n)(e),c.any=c.isMatch,c.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=/* @__PURE__ */ new Set,i=[],a=e=>{n.onResult&&n.onResult(e),i.push(e.output)},o=new Set(c(e,t,{...n,onResult:a}));for(let e of i)o.has(e)||r.add(e);return[...r]},c.contains=(e,t,r)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>c.contains(e,t,r));if(typeof t==`string`){if(o(e)||o(t))return!1;if(e.includes(t)||e.startsWith(`./`)&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...r,contains:!0})},c.matchKeys=(e,t,n)=>{if(!a.isObject(e))throw TypeError(`Expected the first argument to be an object`);let r=c(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},c.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(r.some(e=>t(e)))return!0}return!1},c.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),n);if(!r.every(e=>t(e)))return!1}return!0},c.all=(e,t,r)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(t).every(t=>i(t,r)(e))},c.capture=(e,t,n)=>{let r=a.isWindows(n),o=i.makeRe(String(e),{...n,capture:!0}).exec(r?a.toPosixSlashes(t):t);if(o)return o.slice(1).map(e=>e===void 0?``:e)},c.makeRe=(...e)=>i.makeRe(...e),c.scan=(...e)=>i.scan(...e),c.parse=(e,t)=>{let n=[];for(let a of[].concat(e||[]))for(let e of r(String(a),t))n.push(i.parse(e,t));return n},c.braces=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return t&&t.nobrace===!0||!s(e)?[e]:r(e,t)},c.braceExpand=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return c.braces(e,{...t,expand:!0})},c.hasBraces=s,t.exports=c})),Tr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.matchOverrideKey=e.getChildNodeKey=e.buildDepGraphNpmLockV2=e.parseNpmLockV2Project=e.extractPkgsFromNpmLockV2=void 0;let t=sr();Object.defineProperty(e,"extractPkgsFromNpmLockV2",{enumerable:!0,get:function(){return t.extractPkgsFromNpmLockV2}});let n=G(),r=Hn(),i=q(),a=yt(),o=Vn(),s=require("semver"),c=wr(),l=require("path"),u=pe(),d=Vn();e.parseNpmLockV2Project=async(n,i,a)=>{let{includeDevDeps:o,strictOutOfSync:s,includeOptionalDeps:c,pruneNpmStrictOutOfSync:l,showNpmScope:u,includeComponentMetadata:f}=a,p=(0,r.parsePkgJson)(a.honorAliases?(0,d.rewriteAliasesPkgJson)(n):n),m=(0,t.extractPkgsFromNpmLockV2)(i);return await(0,e.buildDepGraphNpmLockV2)(m,p,{includeDevDeps:o,includeOptionalDeps:c,strictOutOfSync:s,pruneNpmStrictOutOfSync:l,showNpmScope:u,includeComponentMetadata:f})},e.buildDepGraphNpmLockV2=async(e,t,i)=>{let{includeDevDeps:a,strictOutOfSync:o,includeOptionalDeps:s,pruneNpmStrictOutOfSync:c,showNpmScope:l,includeComponentMetadata:u}=i,d=new n.DepGraphBuilder({name:`npm`},{name:t.name,version:t.version},(0,r.createNodeInfo)(i)),p=(0,r.getTopLevelDeps)(t,{includeDevDeps:a,includeOptionalDeps:s,includePeerDeps:!0}),m={id:`root-node`,name:t.name,version:t.version,dependencies:p,isDev:!1,inBundle:!1,key:``},h=Object.keys(e).reduce((t,n)=>{let r=n.replace(/.*node_modules\//,``);if(!r)return t;t.has(r)||t.set(r,[]),t.get(r).push(n);let i=e[n].name;return i&&i!==r&&(t.has(i)||t.set(i,[]),t.get(i).push(n)),t},/* @__PURE__ */ new Map);return await f(d,m,/* @__PURE__ */ new Set,e,o,a,s,[],h,t.overrides,c,l,u),d.build()};let f=async(e,t,n,i,a,o,s,c,l,d,m,h,g)=>{n.add(t.id);for(let[_,v]of Object.entries(t.dependencies||{})){u.eventLoopSpinner.isStarving()&&await u.eventLoopSpinner.spin();let y=p(_,v,i,a,o,s,[...c,{id:t.id,name:t.name,version:t.version,key:t.key||``,inBundle:t.inBundle||!1}],l,d,m);n.has(y.id)||((0,r.addPkgNodeToGraph)(e,y,{showNpmScope:h,includeComponentMetadata:g}),await f(e,y,n,i,a,o,s,[...c,{id:t.id,name:t.name,version:t.version,key:t.key,inBundle:t.inBundle||!1}],l,d,void 0,h,g)),e.connectDep(t.id,y.id)}},p=(t,n,s,u,d,f,p,g,_,v)=>{let y=n.version,b=n.alias,x=_&&h([...p,{name:t,version:y}],_);if(x){y=x;let e=(0,o.parseNpmAlias)(y);e&&(b={aliasName:t,aliasTargetDepName:e.packageName,semver:e.version,version:e.version},y=e.version)}else if(y.startsWith(`npm:`)){let e=(0,o.parseNpmAlias)(y);e?(b={aliasName:t,aliasTargetDepName:e.packageName,semver:e.version,version:e.version},y=e.version):y=y.split(`@`).pop()||y}let S=(0,e.getChildNodeKey)(b?b.aliasName:t,y,p,s,g,v);if(!S){if(n.isOptional)return{id:`${t}@${n.version}`,name:t,version:n.version,dependencies:{},isDev:n.isDev,missingLockFileEntry:!0,key:``};let e=p[p.length-1];if(e&&e.key){let r=s[e.key];if(r&&m(t,r))return{id:`${t}@${n.version}`,name:t,version:``,dependencies:{},isDev:n.isDev,inBundle:!0,key:``}}if(u)throw new i.OutOfSyncError(`${t}@${n.version}`,a.LockfileType.npm);return{id:`${t}@${n.version}`,name:t,version:n.version,dependencies:{},isDev:n.isDev,missingLockFileEntry:!0,key:``}}let C=s[S];C.link&&(()=>{if(s[``].workspaces===void 0)return!1;let e=Array.isArray(s[``].workspaces.packages)?s[``].workspaces.packages:s[``].workspaces||[],t=(C.resolved||``).replace(/\\/g,`/`),n=e.map(e=>l.normalize(e).replace(/\\/g,`/`));return c.isMatch(t,n)})()&&(S=C.resolved,C=s[C.resolved]);let w=(0,r.getGraphDependencies)(C.dependencies||{},{isDev:n.isDev}),T=d?(0,r.getGraphDependencies)(C.devDependencies||{},{isDev:n.isDev}):{},E=f?(0,r.getGraphDependencies)(C.optionalDependencies||{},{isDev:n.isDev,isOptional:!0}):{},D=C.name??b?.aliasTargetDepName??t;return{id:`${D}@${C.version}`,name:D,version:C.version,dependencies:{...w,...T,...E},isDev:n.isDev,inBundle:C.inBundle,key:S,integrity:C.integrity,resolved:C.resolved,...b?{alias:{...b,version:C.version}}:{}}};function m(e,t){let n=t.bundleDependencies||t.bundledDependencies;return!n||!Array.isArray(n)?!1:n.includes(e)}e.getChildNodeKey=(e,t,n,r,i,a)=>{let o=i.get(e);if(!o)return;if(o.length===1)return s.validRange(t)&&r[o[0]].version&&!s.satisfies(r[o[0]].version,t)&&a?void 0:o[0];let c=n[n.length-1].inBundle,l=n.slice(1),u;if(c){let e=n.findIndex(e=>e.inBundle===!0);if(e>0){let t=n[e-1];if(t&&t.key){let e=r[t.key];e&&(e.bundledDependencies||e.bundleDependencies)&&(u=t.name)}}}let d=o.filter(n=>{let i=n.startsWith(`node_modules/`)?n.replace(`node_modules/`,``).split(`/node_modules/`):n.split(`/node_modules/`),a=i.map((e,t)=>{let n=i.slice(0,t+1),a=`node_modules/`+n.join(`/node_modules/`);if(r[a])return r[a].name||e;let o=n.join(`/node_modules/`);return r[o]&&r[o].name||e}),o=r[n],d=o&&o.name?o.name:e,f=[...l,{id:`${e}@${t}`,name:d,version:t}];if(a.every(e=>f.find(t=>t.name==e))===!1||c&&u&&!a.includes(u))return!1;if(s.validRange(t)){let e=r[n].version;return s.satisfies(e,t)}return!0});if(d.length===1)return d[0];let f=n.map(e=>e.name).concat(e);for(;f.length>0;){let e=`node_modules/${f.join(`/node_modules/`)}`;if(d.includes(e))return e;f.shift()}let p=n.reverse();for(let e=0;e<p.length;e++){let t=p[e].name,n=d.filter(e=>e.includes(t));if(n.length===1)return n[0];n.length!==0&&(d=n)}return d.length>1?(d.sort((e,t)=>{let n=e.split(`/node_modules/`).length;return t.split(`/node_modules/`).length-n}),d[0]):d.length===1?d[0]:void 0};let h=(t,n)=>{let r=t.slice(1);for(let[t,i]of r.entries()){let a=(0,e.matchOverrideKey)(n,i);if(!a)continue;if(t+1===r.length&&typeof a==`string`)return a;if(t+1===r.length&&a[`.`])return a[`.`];let o=h(r,a);if(o)return o}};e.matchOverrideKey=(e,t)=>{if(e[t.name])return e[t.name];let n=Object.keys(e).reduce((e,t)=>{let n=t.lastIndexOf(`@`),r=t.substring(0,n),i=t.substring(n+1);return e[r]||(e[r]=[]),e[r].push(i),e},{})[t.name];if(n){for(let r of n)if(s.subset(t.version,s.validRange(r)))return e[`${t.name}@${r}`]}return null}})),Er=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UNDEFINED_VERSION=void 0,e.UNDEFINED_VERSION=`undefined`})),Dr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getPnpmChildNode=void 0,e.getFileContents=d;let t=require("path"),r=require("fs"),i=qr(),a=Hn(),o=_t(),s=Ce(),c=n.n(),l=Er(),u=c(`snyk-pnpm-workspaces`);e.getPnpmChildNode=(e,t,n,r,c,d,f)=>{let p=f.excludeTransPeerDepsVersions(t.version),m=`${e}@${p}`;if(f.resolvedPackages[p]&&(m=f.resolvedPackages[p]),f.resolvedPackages[m]&&(m=f.resolvedPackages[m]),n[m]){let e=n[m],r=(0,a.getGraphDependencies)(e.dependencies||{},{isDev:t.isDev}),i=d?(0,a.getGraphDependencies)(e.devDependencies||{},{isDev:!0}):{},o=c?(0,a.getGraphDependencies)(e.optionalDependencies||{},{isDev:t.isDev,isOptional:!0}):{};return{id:`${e.name}@${e.version}`,name:e.name,version:e.version||l.UNDEFINED_VERSION,dependencies:{...r,...o,...i},isDev:t.isDev}}if(r&&!/^file:/.test(t.version)){let e=`Dependency ${m} was not found in ${s.LOCK_FILE_NAME[i.LockfileType.pnpm]}. Your package.json and ${s.LOCK_FILE_NAME[i.LockfileType.pnpm]} are probably out of sync. Please run "${s.INSTALL_COMMAND[i.LockfileType.pnpm]}" and try again.`;throw u(e),new o.OpenSourceEcosystems.PnpmOutOfSyncError(e)}return{id:m,name:e,version:p||l.UNDEFINED_VERSION,dependencies:{},isDev:t.isDev,missingLockFileEntry:!0}};function d(e,n){let i=t.resolve(e,n);if(!r.existsSync(i))throw Error(`Manifest `+n+` not found at location: `+n);return{content:r.readFileSync(i,`utf-8`),fileName:n}}})),Or=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraphPnpm=void 0;let t=G(),r=Hn(),i=Dr(),a=pe(),o=_t(),s=Ce(),c=qr(),l=n.n(),u=Er(),d=l(`snyk-pnpm-workspaces`);e.buildDepGraphPnpm=async(e,n,i,a)=>{let{strictOutOfSync:l,includeOptionalDeps:p,includeDevDeps:m,pruneWithinTopLevelDeps:h,showNpmScope:g}=i,_=new t.DepGraphBuilder({name:`pnpm`},{name:n.name,version:n.version||u.UNDEFINED_VERSION},(0,r.createNodeInfo)(i));e.extractedPackages=e.extractPackages();let v=e.extractedPackages,y=(0,r.getTopLevelDeps)(n,i),b=e.extractTopLevelDependencies(i,a)||{};for(let e of Object.keys(y)){if(!b[e]){if(!l)continue;let t=`Dependency ${e} was not found in ${s.LOCK_FILE_NAME[c.LockfileType.pnpm]}. Your package.json and ${s.LOCK_FILE_NAME[c.LockfileType.pnpm]} are probably out of sync. Please run "${s.INSTALL_COMMAND[c.LockfileType.pnpm]}" and try again.`;throw d(t),new o.OpenSourceEcosystems.PnpmOutOfSyncError(t)}y[e].version=b[e].version}let x={id:`root-node`,name:n.name,version:n.version,dependencies:y,isDev:!1},S=`${n.name}@${n.version}`;return await f(_,S,x,v,l,p,m,n.pnpm?.overrides||{},h,e,void 0,g),_.build()};let f=async(e,t,n,r,o,s,c,l,u,d,p,m)=>{for(let[h,g]of Object.entries(n.dependencies||{})){a.eventLoopSpinner.isStarving()&&await a.eventLoopSpinner.spin();let _=p||/* @__PURE__ */ new Set,v=(0,i.getPnpmChildNode)(h,g,r,o,s,c,d);if(_.has(v.id)||v.id==t){if(u){let t=`${v.id}:pruned`;e.addPkgNode({name:v.name,version:v.version},t,{labels:{scope:v.isDev?`dev`:`prod`,...m&&{"npm:scope":v.isDev?`dev`:`prod`},pruned:`true`,...n.missingLockFileEntry&&{missingLockFileEntry:`true`}}}),e.connectDep(n.id,t)}else e.connectDep(n.id,v.id)}else e.addPkgNode({name:v.name,version:v.version},v.id,{labels:{scope:v.isDev?`dev`:`prod`,...m&&{"npm:scope":v.isDev?`dev`:`prod`},...n.missingLockFileEntry&&{missingLockFileEntry:`true`}}}),e.connectDep(n.id,v.id),_.add(v.id),await f(e,t,v,r,o,s,c,l,u,d,_,m)}}})),kr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PnpmLockfileParser=void 0;let t=require("semver"),r=require("path"),i=ne(),a=n.n(),o=Er(),s=a(`snyk-pnpm-workspaces`);e.PnpmLockfileParser=class{lockFileVersion;rawPnpmLock;packages;extractedPackages;importers;workspaceArgs;resolvedPackages;constructor(e,t){this.rawPnpmLock=e,this.lockFileVersion=e.lockfileVersion,this.workspaceArgs=t,this.packages=e.packages||{},this.extractedPackages={},this.resolvedPackages={},this.importers=this.normaliseImporters(e)}isWorkspaceLockfile(){return this.workspaceArgs?.isWorkspace}extractPackages(){if(Object.keys(this.extractedPackages).length>0)return this.extractedPackages;let e={};return Object.entries(this.packages).forEach(([t,n])=>{let{name:r,version:i}=n,a={};t=this.excludeTransPeerDepsVersions(t),i&&r||(a=this.parseDepPath(t));let o={id:t,name:r||a.name,version:i||a.version||t,isDev:n.dev==`true`,dependencies:n.dependencies||{},devDependencies:n.devDependencies||{},optionalDependencies:n.optionalDependencies||{}};e[`${o.name}@${o.version}`]=o,this.resolvedPackages[t]=`${o.name}@${o.version}`}),e}extractTopLevelDependencies(e,t){let n=this.rawPnpmLock;if(t){let{name:e,version:r}=this.workspaceArgs?.projectsVersionMap[t];if(this.extractedPackages[`${e}@${r}`]&&this.extractedPackages[`${e}@${r}`].localWorkspacePackage&&!i(this.extractedPackages[`${e}@${r}`].dependencies))return this.normalizedPkgToTopLevel(this.extractedPackages[`${e}@${r}`]);n=this.rawPnpmLock.importers[t]}let r=this.normalizeTopLevelDeps(n.dependencies||{},!1,t),a=e.includeDevDeps?this.normalizeTopLevelDeps(n.devDependencies||{},!0,t):{},o=e.includeOptionalDeps?this.normalizeTopLevelDeps(n.optionalDependencies||{},!1,t):{},s=e.includePeerDeps?this.normalizeTopLevelDeps(n.peerDependencies||{},!1,t):{};if(t){let{name:e,version:n}=this.workspaceArgs?.projectsVersionMap[t];this.extractedPackages[`${e}@${n}`]={id:`${e}@${n}`,name:e,version:n,dependencies:this.topLevelDepsToNormalizedPkgs(r),devDependencies:this.topLevelDepsToNormalizedPkgs(a),optionalDependencies:this.topLevelDepsToNormalizedPkgs(o),isDev:!1,localWorkspacePackage:!0}}return{...r,...a,...o,...s}}normalizedPkgToTopLevel(e){let t={};return Object.keys(e.dependencies).forEach(n=>t[n]={name:n,version:e.dependencies[n],isDev:!1}),Object.keys(e.devDependencies).forEach(n=>t[n]={name:n,version:e.devDependencies[n],isDev:!0}),t}topLevelDepsToNormalizedPkgs(e){let t={};return Object.values(e).forEach(e=>t[e.name]=e.version),t}normalizeVersion(e,n,r,i){if(this.isWorkspaceLockfile()&&(n=this.resolveWorkspacesCrossReference(e,n,r,i)),!(0,t.valid)(n)&&(n=this.excludeTransPeerDepsVersions(n),!(0,t.valid)(n))){if(this.packages[n])return this.packages[n].version||n;if(this.packages[`${e}@${n}`])return this.packages[`${e}@${n}`].version||n}return n}resolveWorkspacesCrossReference(e,t,n,i){if(!this.workspaceArgs)return t;if(t.startsWith(`link:`)){let a=t.split(`link:`)[1],c=r.join(i||`.`,a).replace(/\\/g,`/`),l=this.workspaceArgs.projectsVersionMap[c];if(l?t=l.version:(s(`Importer ${c} discovered as a dependency of ${i} was not found in the lockfile`),t=o.UNDEFINED_VERSION),t||=o.UNDEFINED_VERSION,this.extractedPackages[`${e}@${t}`])return t;this.extractedPackages[`${e}@${t}`]={name:e,version:t,id:`${e}@${t}`,isDev:n,dependencies:{},devDependencies:{},localWorkspacePackage:!0};let u=this.rawPnpmLock.importers[c]||{dependencies:{},devDependencies:{},optionalDependencies:{}},d=this.normalizePackagesDeps(u.dependencies||{},n,c),f=this.normalizePackagesDeps(u.devDependencies||{},!0,c),p=this.normalizePackagesDeps(u.optionalDependencies||{},!0,c);this.extractedPackages[`${e}@${t}`]={name:e,version:t,id:`${e}@${t}`,isDev:n,dependencies:d,devDependencies:f,optionalDependencies:p,localWorkspacePackage:!0}}return t}}})),Ar=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LockfileV6Parser=void 0;let t=kr();e.LockfileV6Parser=class e extends t.PnpmLockfileParser{settings;constructor(e,t){super(e,t),this.settings=e.settings}parseDepPath(t){if(t=e.isAbsoluteDepenencyPath(t)?t:t.substring(1),t.startsWith(`@`)){let e=t.lastIndexOf(`@`);return e===-1?{}:{name:t.substring(0,e),version:t.substring(e+1)}}let[n,r]=t.split(`@`);return{name:n,version:r}}normalizeTopLevelDeps(e,t,n){return Object.entries(e).reduce((e,[r,i])=>(e[r]={name:r,version:this.normalizeVersion(r,i.version,t,n),isDev:t},e),{})}normalizePackagesDeps(e,t,n){return Object.entries(e).reduce((e,[r,i])=>(e[r]=this.normalizeVersion(r,i.version,t,n),e),{})}excludeTransPeerDepsVersions(e){return e.split(`(`)[0]}static isAbsoluteDepenencyPath(e){return e[0]!==`/`}normaliseImporters(e){if(!(`importers`in e)){let t=e.dependencies?.[`.`];if(t&&typeof t==`object`&&`dependencies`in t)e.importers={".":t},delete e.dependencies[`.`];else return{}}let t=e.importers;return Object.entries(t).reduce((e,[t,n])=>{if(!(`dependencies`in n))return{...e,[t]:{}};let r=n.dependencies,i=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t.version]));return{...e,[t]:i}},{})}}})),jr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t={chars:`0123456789ABCDEF`,bits:4},n={chars:`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,bits:5},r={chars:`0123456789ABCDEFGHIJKLMNOPQRSTUV`,bits:5},i={chars:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,bits:6},a={chars:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,bits:6},o={parse:function(e,n){return f(e.toUpperCase(),t,n)},stringify:function(e,n){return p(e,t,n)}},s={parse:function(e,t){return t===void 0&&(t={}),f(t.loose?e.toUpperCase().replace(/0/g,`O`).replace(/1/g,`L`).replace(/8/g,`B`):e,n,t)},stringify:function(e,t){return p(e,n,t)}},c={parse:function(e,t){return f(e,r,t)},stringify:function(e,t){return p(e,r,t)}},l={parse:function(e,t){return f(e,i,t)},stringify:function(e,t){return p(e,i,t)}},u={parse:function(e,t){return f(e,a,t)},stringify:function(e,t){return p(e,a,t)}},d={parse:f,stringify:p};function f(e,t,n){if(n===void 0&&(n={}),!t.codes){t.codes={};for(var r=0;r<t.chars.length;++r)t.codes[t.chars[r]]=r}if(!n.loose&&e.length*t.bits&7)throw SyntaxError(`Invalid padding`);for(var i=e.length;e[i-1]===`=`;)if(--i,!n.loose&&!((e.length-i)*t.bits&7))throw SyntaxError(`Invalid padding`);for(var a=new(n.out??Uint8Array)(i*t.bits/8|0),o=0,s=0,c=0,l=0;l<i;++l){var u=t.codes[e[l]];if(u===void 0)throw SyntaxError(`Invalid character `+e[l]);s=s<<t.bits|u,o+=t.bits,o>=8&&(o-=8,a[c++]=255&s>>o)}if(o>=t.bits||255&s<<8-o)throw SyntaxError(`Unexpected end of data`);return a}function p(e,t,n){n===void 0&&(n={});for(var r=n.pad,i=r===void 0||r,a=(1<<t.bits)-1,o=``,s=0,c=0,l=0;l<e.length;++l)for(c=c<<8|255&e[l],s+=8;s>t.bits;)s-=t.bits,o+=t.chars[a&c>>s];if(s&&(o+=t.chars[a&c<<t.bits-s]),i)for(;o.length*t.bits&7;)o+=`=`;return o}e.base16=o,e.base32=s,e.base32hex=c,e.base64=l,e.base64url=u,e.codec=d})),Mr=/* @__PURE__ */ e.t(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.createBase32HashFromFile=e.createBase32Hash=void 0;let i=r(require("crypto")),a=r(require("fs")),o=jr();function s(e){return o.base32.stringify(i.default.createHash(`md5`).update(e).digest()).replace(/(=+)$/,``).toLowerCase()}e.createBase32Hash=s;async function c(e){return s((await a.default.promises.readFile(e,`utf8`)).split(`\r
`).join(`
`))}e.createBase32HashFromFile=c})),Nr=/* @__PURE__ */ e.t(((e,t)=>{let n=(e,t,n,i)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let a=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);(r(a,o)||!i)&&Object.defineProperty(e,n,o)},r=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},i=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},a=(e,t)=>`/* Wrapped ${e}*/\n${t}`,o=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),s=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),c=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=a.bind(null,r,t.toString());Object.defineProperty(i,"name",s),Object.defineProperty(e,"toString",{...o,value:i})};t.exports=(e,t,{ignoreNonConfigurable:r=!1}={})=>{let{name:a}=e;for(let i of Reflect.ownKeys(t))n(e,t,i,r);return i(e,t),c(e,t,a),e}})),Pr=/* @__PURE__ */ e.t(((e,t)=>{t.exports=()=>{let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}})),Fr=/* @__PURE__ */ e.t(((e,t,n)=>{var r=n&&n.__awaiter||function(e,t,n,r){return new(n||=Promise)(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}c((r=r.apply(e,t||[])).next())})},i=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let a=i(Pr());function o(e,t=`maxAge`){let n,i,o,s=()=>r(this,void 0,void 0,function*(){if(n!==void 0)return;let s=s=>r(this,void 0,void 0,function*(){o=a.default();let r=s[1][t]-Date.now();if(r<=0)e.delete(s[0]),o.resolve();else return n=s[0],i=setTimeout(()=>{e.delete(s[0]),o&&o.resolve()},r),typeof i.unref==`function`&&i.unref(),o.promise});try{for(let t of e)yield s(t)}catch{}n=void 0}),c=()=>{n=void 0,i!==void 0&&(clearTimeout(i),i=void 0),o!==void 0&&(o.reject(void 0),o=void 0)},l=e.set.bind(e);return e.set=(t,r)=>{e.has(t)&&e.delete(t);let i=l(t,r);return n&&n===t&&c(),s(),i},s(),e}e.default=o,t.exports=o,t.exports.default=o})),Ir=/* @__PURE__ */ e.t(((e,t)=>{let n=Nr(),r=Fr(),i=/* @__PURE__ */ new WeakMap,a=/* @__PURE__ */ new WeakMap,o=(e,{cacheKey:t,cache:i=/* @__PURE__ */ new Map,maxAge:o}={})=>{typeof o==`number`&&r(i);let s=function(...n){let r=t?t(n):n[0],a=i.get(r);if(a)return a.data;let s=e.apply(this,n);return i.set(r,{data:s,maxAge:o?Date.now()+o:1/0}),s};return n(s,e,{ignoreNonConfigurable:!0}),a.set(s,i),s};o.decorator=(e={})=>(t,n,r)=>{let a=t[n];if(typeof a!=`function`)throw TypeError(`The decorated value must be a function`);delete r.value,delete r.writable,r.get=function(){if(!i.has(this)){let t=o(a,e);return i.set(this,t),t}return i.get(this)}},o.clear=e=>{let t=a.get(e);if(!t)throw TypeError(`Can't clear a function that was not memoized!`);if(typeof t.clear!=`function`)throw TypeError(`The cache Map can't be cleared!`);t.clear()},t.exports=o})),Lr=/* @__PURE__ */ e.t(((e,t)=>{let n=require("assert"),{URL:r}=require("url");t.exports=Ir()(i);function i(e){return n(e,"`registry` is required"),n(typeof e==`string`,"`registry` should be a string"),a(o(e))}function a(e){return e.replace(`:`,`+`)}function o(e){let t;try{t=new r(e)}catch(t){throw Error(`Failed to parse registry URL "${e}": ${t.message}`)}if(!t||!t.host)throw Error(`Couldn't get host from ${e}`);return t.host}})),Rr=/* @__PURE__ */ e.t(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.createPeersFolderSuffix=e.depPathToFilename=e.parse=e.refToRelative=e.relative=e.getRegistryByPackageName=e.refToAbsolute=e.tryGetPackageId=e.resolve=e.isAbsolute=void 0;let i=Mr(),a=r(Lr()),o=r(require("semver"));function s(e){return e[0]!==`/`}e.isAbsolute=s;function c(e,t){if(!s(t)){let n;if(t[1]===`@`){let r=t.indexOf(`/`,1);n=e[t.slice(1,r===-1?0:r)]||e.default}else n=e.default;return`${(0,a.default)(n)}${t}`}return t}e.resolve=c;function l(e,t){if(t[0]!==`/`)return null;let n=t.indexOf(`_`,t.lastIndexOf(`/`));return n===-1?c(e,t):c(e,t.slice(0,n))}e.tryGetPackageId=l;function u(e,t,n){return e.startsWith(`link:`)?null:e.includes(`/`)?e[0]===`/`?`${(0,a.default)(d(n,t))}${e}`:e:`${(0,a.default)(d(n,t))}/${t}/${e}`}e.refToAbsolute=u;function d(e,t){return t[0]===`@`&&e[t.substring(0,t.indexOf(`/`))]||e.default}e.getRegistryByPackageName=d;function f(e,t,n){let r=(0,a.default)(d(e,t));return n.startsWith(`${r}/`)?n.slice(n.indexOf(`/`)):n}e.relative=f;function p(e,t){return e.startsWith(`link:`)?null:e.startsWith(`file:`)||e.includes(`/`)?e:`/${t}/${e}`}e.refToRelative=p;function m(e){if(typeof e!=`string`)throw TypeError(`Expected \`dependencyPath\` to be of type \`string\`, got \`${e===null?`null`:typeof e}\``);let t=s(e),n=e.split(`/`);t||n.shift();let r=t?n.shift():void 0,i=n[0].startsWith(`@`)?`${n.shift()}/${n.shift()}`:n.shift(),a=n.shift();if(a){let e=a.indexOf(`_`),n;if(e!==-1&&(n=a.substring(e+1),a=a.substring(0,e)),o.default.valid(a))return{host:r,isAbsolute:t,name:i,peersSuffix:n,version:a}}if(!t)throw Error(`${e} is an invalid relative dependency path`);return{host:r,isAbsolute:t}}e.parse=m;function h(e){let t=g(e).replace(/[\\/:*?"<>|]/g,`+`);return t.length>120||t!==t.toLowerCase()&&!t.startsWith(`file+`)?`${t.substring(0,50)}_${(0,i.createBase32Hash)(t)}`:t}e.depPathToFilename=h;function g(e){if(e.indexOf(`file:`)!==0){e.startsWith(`/`)&&(e=e.substring(1));let t=e.lastIndexOf(`/`);return`${e.substring(0,t)}@${e.slice(t+1)}`}return e.replace(`:`,`+`)}function _(e){let t=e.map(({name:e,version:t})=>`${e.replace(`/`,`+`)}@${t}`).sort().join(`+`);return t.length>26?`_${(0,i.createBase32Hash)(t)}`:`_${t}`}e.createPeersFolderSuffix=_})),zr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LockfileV5Parser=void 0;let t=Rr(),n=kr();e.LockfileV5Parser=class extends n.PnpmLockfileParser{constructor(e,t){e||={lockfileVersion:`5`},super(e,t)}parseDepPath(e){let{name:n,version:r}=(0,t.parse)(e);return r?{name:n,version:this.excludeTransPeerDepsVersions(r)}:{name:n}}normalizeTopLevelDeps(e,t,n){return Object.entries(e).reduce((e,[r,i])=>(i=this.normalizeVersion(r,i,t,n),e[r]={name:r,version:i,isDev:t},e),{})}normalizePackagesDeps(e,t,n){return Object.entries(e).reduce((e,[r,i])=>(i=this.normalizeVersion(r,i,t,n),e[r]=i,e),{})}excludeTransPeerDepsVersions(e){if(!e.includes(`/`))return e.split(`_`)[0];let t=e.split(`/`),n=t[t.length-1];return`${e.split(n)[0]}${n.split(`_`)[0]}`}normaliseImporters(e){if(!(`importers`in e))return{};let t=e.importers;return Object.entries(t).reduce((e,[t,n])=>{if(!(`dependencies`in n))return{...e,[t]:{}};let r=n.dependencies,i=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t]));return{...e,[t]:i}},{})}}})),Br=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LockfileV9Parser=void 0;let t=Ar(),n={isWorkspace:!0,projectsVersionMap:{}};e.LockfileV9Parser=class extends t.LockfileV6Parser{settings;snapshots;constructor(e,t=n){super(e,t),this.settings=e.settings,this.packages={},this.snapshots=e.snapshots||{},Object.entries(this.snapshots).forEach(([t,n])=>{let r=this.excludeTransPeerDepsVersions(t);this.packages[r]={...e.packages[r],...n}})}}})),Vr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getPnpmLockfileParser=o;let t=Ar(),n=zr(),r=Br(),i=_t(),a=vt();function o(e,o,s){if(!e)return new n.LockfileV5Parser(e,s);let c=(0,a.extractPnpmMainDocument)(e);if(!c)return new n.LockfileV5Parser(void 0,s);let l=(0,a.loadYamlMappingOrThrow)(c,`pnpm-lock.yaml`),u=l.lockfileVersion,d=typeof u==`string`?u:``;if(o===a.NodeLockfileVersion.PnpmLockV5||d.startsWith(`5`))return new n.LockfileV5Parser(l,s);if(o===a.NodeLockfileVersion.PnpmLockV6||d.startsWith(`6`))return new t.LockfileV6Parser(l,s);if(o===a.NodeLockfileVersion.PnpmLockV9||d.startsWith(`9`))return new r.LockfileV9Parser(l,s);throw new i.OpenSourceEcosystems.PnpmUnsupportedLockfileVersionError(`The pnpm-lock.yaml lockfile version ${o??u} is not supported`)}})),Hr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePnpmProject=void 0;let t=Hn(),n=Or(),r=Vr();e.parsePnpmProject=async(e,i,a,o)=>{let{includeDevDeps:s,includePeerDeps:c,includeOptionalDeps:l,strictOutOfSync:u,pruneWithinTopLevelDeps:d,showNpmScope:f}=a,p=``,m=(0,t.parsePkgJson)(e),h=(0,r.getPnpmLockfileParser)(i,o);return h.rawPnpmLock.importers?.[`.`]&&(p=`.`,h.workspaceArgs={projectsVersionMap:{".":{name:m.name,version:m.version}},isWorkspace:!0}),await(0,n.buildDepGraphPnpm)(h,m,{includeDevDeps:s,strictOutOfSync:u,includePeerDeps:c,includeOptionalDeps:l,pruneWithinTopLevelDeps:d,showNpmScope:f},p)}})),Ur=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePnpmWorkspace=void 0;let t=n.n(),r=require("path"),i=vt(),a=Hn(),o=Or(),s=Er(),c=Vr(),l=Dr(),u=t(`snyk-pnpm-workspaces`);function d(e,t){let n={};for(let i of t){let t=r.join(e,i),o=r.join(t,`package.json`),c=(0,l.getFileContents)(e,o);try{let e=(0,a.parsePkgJson)(c.content);n[i]={version:e.version||s.UNDEFINED_VERSION,name:e.name}}catch(e){u(`Error getting version for project: ${o}. ERROR: ${e}`);continue}}return n}e.parsePnpmWorkspace=async(e,t,n)=>{let s=[],{includeDevDeps:f,includePeerDeps:p,includeOptionalDeps:m,strictOutOfSync:h,pruneWithinTopLevelDeps:g,exclude:_,showNpmScope:v}=n,y=(0,l.getFileContents)(e,r.join(t,`pnpm-lock.yaml`)).content,b=(0,i.getPnpmLockfileVersion)(y),x=(0,c.getPnpmLockfileParser)(y,b),S=d(t,Object.keys(x.importers)),C=_?_.split(`,`).map(e=>e.trim()):[];for(let n of Object.keys(x.importers)){if(C.length>0){let e=n.split(`/`);if(C.some(t=>e.includes(t))){u(`Skipping excluded importer: ${n}`);continue}}let i=r.join(t,n),c=r.join(i,`package.json`);u(`Processing project ${c} as part of a pnpm workspace`);let d=(0,l.getFileContents)(e,c),_=(0,a.parsePkgJson)(d.content);x.workspaceArgs={isWorkspace:!0,projectsVersionMap:S};try{let t=await(0,o.buildDepGraphPnpm)(x,_,{includeDevDeps:f,includePeerDeps:p,strictOutOfSync:h,includeOptionalDeps:m,pruneWithinTopLevelDeps:g,showNpmScope:v},n),i={packageManager:`pnpm`,targetFile:r.relative(e,d.fileName),depGraph:t,plugin:{name:`snyk-nodejs-lockfile-parser`,runtime:process.version}};s.push(i)}catch(e){u(`Error process workspace: ${d.fileName}. ERROR: ${e}`)}}return s}})),Wr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePnpmWorkspaceProject=void 0;let t=Hn(),n=Or(),r=Vr(),i=Er();e.parsePnpmWorkspaceProject=async(e,a,o,s,c)=>{let{includeDevDeps:l,includePeerDeps:u,includeOptionalDeps:d,strictOutOfSync:f,pruneWithinTopLevelDeps:p,showNpmScope:m}=o,h=(0,r.getPnpmLockfileParser)(a,c),g=(0,t.parsePkgJson)(e);return h.workspaceArgs={isWorkspace:!0,projectsVersionMap:{[s]:{name:g.name,version:g.version||i.UNDEFINED_VERSION}}},await(0,n.buildDepGraphPnpm)(h,g,{includeDevDeps:l,includePeerDeps:u,strictOutOfSync:f,includeOptionalDeps:d,pruneWithinTopLevelDeps:p,showNpmScope:m},s)}})),Gr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePnpmWorkspaceProject=e.parsePnpmWorkspace=e.parsePnpmProject=void 0;let t=Hr();Object.defineProperty(e,"parsePnpmProject",{enumerable:!0,get:function(){return t.parsePnpmProject}});let n=Ur();Object.defineProperty(e,"parsePnpmWorkspace",{enumerable:!0,get:function(){return n.parsePnpmWorkspace}});let r=Wr();Object.defineProperty(e,"parsePnpmWorkspaceProject",{enumerable:!0,get:function(){return r.parsePnpmWorkspaceProject}})})),Kr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePkgJson=e.parsePnpmWorkspaceProject=e.parsePnpmWorkspace=e.parsePnpmProject=e.extractPkgsFromYarnLockV2=e.parseYarnLockV2Project=e.buildDepGraphYarnLockV2Simple=e.extractPkgsFromYarnLockV1=e.parseYarnLockV1WorkspaceProject=e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=e.buildDepGraphYarnLockV1Simple=e.buildDepGraphYarnLockV1SimpleCyclesPruned=e.buildDepGraphYarnLockV1Workspace=e.parseYarnLockV1Project=e.parseNpmLockV2Project=void 0;let t=nr();Object.defineProperty(e,"parseYarnLockV1Project",{enumerable:!0,get:function(){return t.parseYarnLockV1Project}}),Object.defineProperty(e,"parseYarnLockV1WorkspaceProject",{enumerable:!0,get:function(){return t.parseYarnLockV1WorkspaceProject}}),Object.defineProperty(e,"buildDepGraphYarnLockV1SimpleCyclesPruned",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1SimpleCyclesPruned}}),Object.defineProperty(e,"buildDepGraphYarnLockV1Simple",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1Simple}}),Object.defineProperty(e,"buildDepGraphYarnLockV1WorkspaceCyclesPruned",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1WorkspaceCyclesPruned}}),Object.defineProperty(e,"buildDepGraphYarnLockV1Workspace",{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1Workspace}}),Object.defineProperty(e,"extractPkgsFromYarnLockV1",{enumerable:!0,get:function(){return t.extractPkgsFromYarnLockV1}});let n=or();Object.defineProperty(e,"buildDepGraphYarnLockV2Simple",{enumerable:!0,get:function(){return n.buildDepGraphYarnLockV2Simple}}),Object.defineProperty(e,"parseYarnLockV2Project",{enumerable:!0,get:function(){return n.parseYarnLockV2Project}}),Object.defineProperty(e,"extractPkgsFromYarnLockV2",{enumerable:!0,get:function(){return n.extractPkgsFromYarnLockV2}});let r=Tr();Object.defineProperty(e,"parseNpmLockV2Project",{enumerable:!0,get:function(){return r.parseNpmLockV2Project}});let i=Gr();Object.defineProperty(e,"parsePnpmProject",{enumerable:!0,get:function(){return i.parsePnpmProject}}),Object.defineProperty(e,"parsePnpmWorkspace",{enumerable:!0,get:function(){return i.parsePnpmWorkspace}}),Object.defineProperty(e,"parsePnpmWorkspaceProject",{enumerable:!0,get:function(){return i.parsePnpmWorkspaceProject}});let a=Hn();Object.defineProperty(e,"parsePkgJson",{enumerable:!0,get:function(){return a.parsePkgJson}})})),qr=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeLockfileVersion=e.getPnpmLockfileVersion=e.getYarnLockfileVersion=e.getNpmLockfileVersion=e.getLockfileVersionFromFile=e.parsePkgJson=e.parsePnpmWorkspaceProject=e.parsePnpmWorkspace=e.parsePnpmProject=e.getPnpmLockfileParser=e.buildDepGraphYarnLockV2Simple=e.parseYarnLockV2Project=e.extractPkgsFromYarnLockV2=e.buildDepGraphYarnLockV1Workspace=e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=e.buildDepGraphYarnLockV1Simple=e.buildDepGraphYarnLockV1SimpleCyclesPruned=e.parseYarnLockV1WorkspaceProject=e.parseYarnLockV1Project=e.extractPkgsFromYarnLockV1=e.parseNpmLockV2Project=e.OutOfSyncError=e.InvalidUserInputError=e.UnsupportedRuntimeError=e.LockfileType=e.Scope=e.getPnpmWorkspaces=e.getYarnWorkspaces=e.buildDepGraphFromCliOutput=void 0,e.buildDepTree=p,e.buildDepTreeFromFiles=m,e.getYarnWorkspacesFromFiles=h,e.getYarnLockfileType=g;let t=require("fs"),n=require("path"),r=yt();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"LockfileType",{enumerable:!0,get:function(){return r.LockfileType}}),Object.defineProperty(e,"getYarnWorkspaces",{enumerable:!0,get:function(){return r.getYarnWorkspaces}}),Object.defineProperty(e,"getPnpmWorkspaces",{enumerable:!0,get:function(){return r.getPnpmWorkspaces}});let i=jn(),a=Nn(),o=Ln(),s=q();Object.defineProperty(e,"UnsupportedRuntimeError",{enumerable:!0,get:function(){return s.UnsupportedRuntimeError}}),Object.defineProperty(e,"InvalidUserInputError",{enumerable:!0,get:function(){return s.InvalidUserInputError}}),Object.defineProperty(e,"OutOfSyncError",{enumerable:!0,get:function(){return s.OutOfSyncError}});let c=Bn();Object.defineProperty(e,"buildDepGraphFromCliOutput",{enumerable:!0,get:function(){return c.buildDepGraphFromCliOutput}});let l=Kr();Object.defineProperty(e,"parseNpmLockV2Project",{enumerable:!0,get:function(){return l.parseNpmLockV2Project}}),Object.defineProperty(e,"extractPkgsFromYarnLockV1",{enumerable:!0,get:function(){return l.extractPkgsFromYarnLockV1}}),Object.defineProperty(e,"parseYarnLockV1Project",{enumerable:!0,get:function(){return l.parseYarnLockV1Project}}),Object.defineProperty(e,"parseYarnLockV1WorkspaceProject",{enumerable:!0,get:function(){return l.parseYarnLockV1WorkspaceProject}}),Object.defineProperty(e,"buildDepGraphYarnLockV1SimpleCyclesPruned",{enumerable:!0,get:function(){return l.buildDepGraphYarnLockV1SimpleCyclesPruned}}),Object.defineProperty(e,"buildDepGraphYarnLockV1Simple",{enumerable:!0,get:function(){return l.buildDepGraphYarnLockV1Simple}}),Object.defineProperty(e,"buildDepGraphYarnLockV1WorkspaceCyclesPruned",{enumerable:!0,get:function(){return l.buildDepGraphYarnLockV1WorkspaceCyclesPruned}}),Object.defineProperty(e,"buildDepGraphYarnLockV1Workspace",{enumerable:!0,get:function(){return l.buildDepGraphYarnLockV1Workspace}}),Object.defineProperty(e,"extractPkgsFromYarnLockV2",{enumerable:!0,get:function(){return l.extractPkgsFromYarnLockV2}}),Object.defineProperty(e,"parseYarnLockV2Project",{enumerable:!0,get:function(){return l.parseYarnLockV2Project}}),Object.defineProperty(e,"buildDepGraphYarnLockV2Simple",{enumerable:!0,get:function(){return l.buildDepGraphYarnLockV2Simple}}),Object.defineProperty(e,"parsePnpmProject",{enumerable:!0,get:function(){return l.parsePnpmProject}}),Object.defineProperty(e,"parsePnpmWorkspace",{enumerable:!0,get:function(){return l.parsePnpmWorkspace}}),Object.defineProperty(e,"parsePnpmWorkspaceProject",{enumerable:!0,get:function(){return l.parsePnpmWorkspaceProject}}),Object.defineProperty(e,"parsePkgJson",{enumerable:!0,get:function(){return l.parsePkgJson}});let u=Vr();Object.defineProperty(e,"getPnpmLockfileParser",{enumerable:!0,get:function(){return u.getPnpmLockfileParser}});let d=vt();Object.defineProperty(e,"getLockfileVersionFromFile",{enumerable:!0,get:function(){return d.getLockfileVersionFromFile}}),Object.defineProperty(e,"getNpmLockfileVersion",{enumerable:!0,get:function(){return d.getNpmLockfileVersion}}),Object.defineProperty(e,"getYarnLockfileVersion",{enumerable:!0,get:function(){return d.getYarnLockfileVersion}}),Object.defineProperty(e,"getPnpmLockfileVersion",{enumerable:!0,get:function(){return d.getPnpmLockfileVersion}}),Object.defineProperty(e,"NodeLockfileVersion",{enumerable:!0,get:function(){return d.NodeLockfileVersion}});let f=Vn();async function p(e,t,c=!1,l,u=!0,d=`package.json`,f,p){l?l===r.LockfileType.yarn&&(l=g(t)):l=r.LockfileType.npm;let m;switch(l){case r.LockfileType.npm:m=new i.PackageLockParser;break;case r.LockfileType.yarn:m=new a.YarnLockParser;break;case r.LockfileType.yarn2:m=new o.Yarn2LockParser;break;default:throw new s.InvalidUserInputError(`Unsupported lockfile type ${l} provided. Only 'npm' or 'yarn' is currently supported.`)}let h=(0,r.parseManifestFile)(e);h.name||=n.isAbsolute(d)?n.basename(d):d;let _=m.parseLockFile(t);return m.getDependencyTree(h,_,c,u,f,p)}async function m(e,i,a,o=!1,c=!0,l,u,d){if(!e||!i||!a)throw Error(`Missing required parameters for buildDepTreeFromFiles()`);let m=n.resolve(e,i),h=n.resolve(e,a);if(!t.existsSync(m))throw new s.InvalidUserInputError(`Target file package.json not found at location: ${m}`);if(!t.existsSync(h))throw new s.InvalidUserInputError(`Lockfile not found at location: `+h);let _=t.readFileSync(m,`utf-8`),v=t.readFileSync(h,`utf-8`),y;if(a.endsWith(`package-lock.json`))y=r.LockfileType.npm;else if(a.endsWith(`yarn.lock`))y=g(v,e,a);else throw new s.InvalidUserInputError(`Unknown lockfile ${a}. Please provide either package-lock.json or yarn.lock.`);return await p(l?(0,f.rewriteAliasesPkgJson)(_):_,v,o,y,c,i,u,d)}function h(e,i){if(!e||!i)throw Error(`Missing required parameters for getYarnWorkspacesFromFiles()`);let a=n.resolve(e,i);if(!t.existsSync(a))throw new s.InvalidUserInputError(`Target file package.json not found at location: ${a}`);let o=t.readFileSync(a,`utf-8`);return(0,r.getYarnWorkspaces)(o)}function g(e,i,a){return e.includes(`__metadata`)||i&&a&&t.existsSync(n.resolve(i,a.replace(`yarn.lock`,`.yarnrc.yml`)))?r.LockfileType.yarn2:r.LockfileType.yarn}})),Jr=/* @__PURE__ */ e.t(((e,t)=>{function n(e,t){let r=null,i=`unknown`;t.devDependencies&&t.devDependencies[e]&&(r=n.DEV,i=t.devDependencies[e]),t.optionalDependencies&&t.optionalDependencies[e]&&(r=n.OPTIONAL,i=t.optionalDependencies[e]),t.dependencies&&t.dependencies[e]&&(r=n.PROD,i=t.dependencies[e]);let a=!!(t.bundleDependencies&&t.bundleDependencies[e]);return{type:r,from:i,bundled:a}}n.EXTRANEOUS=`extraneous`,n.OPTIONAL=`optional`,n.PROD=`prod`,n.DEV=`dev`,t.exports=n})),Yr=/* @__PURE__ */ e.t(((e,t)=>{var n,r=typeof setImmediate==`function`;t.exports=i;function i(e){a.length||(u(),o=!0),a[a.length]=e}var a=[],o=!1,s=0,c=1024;function l(){for(;s<a.length;){var e=s;if(s+=1,a[e].call(),s>c){for(var t=0,n=a.length-s;t<n;t++)a[t]=a[t+s];a.length-=s,s=0}}a.length=0,s=0,o=!1}i.requestFlush=u;function u(){var e=process.domain;e&&(n||=require("domain"),n.active=process.domain=null),o&&r?setImmediate(l):process.nextTick(l),e&&(n.active=process.domain=e)}})),Xr=/* @__PURE__ */ e.t(((e,t)=>{var n=Yr();function r(){}var i=null,a={};function o(e){try{return e.then}catch(e){return i=e,a}}function s(e,t){try{return e(t)}catch(e){return i=e,a}}function c(e,t,n){try{e(t,n)}catch(e){return i=e,a}}t.exports=l;function l(e){if(typeof this!=`object`)throw TypeError(`Promises must be constructed via new`);if(typeof e!=`function`)throw TypeError(`Promise constructor's argument is not a function`);this._40=0,this._65=0,this._55=null,this._72=null,e!==r&&_(e,this)}l._37=null,l._87=null,l._61=r,l.prototype.then=function(e,t){if(this.constructor!==l)return u(this,e,t);var n=new l(r);return d(this,new g(e,t,n)),n};function u(e,t,n){return new e.constructor(function(i,a){var o=new l(r);o.then(i,a),d(e,new g(t,n,o))})}function d(e,t){for(;e._65===3;)e=e._55;if(l._37&&l._37(e),e._65===0){if(e._40===0){e._40=1,e._72=t;return}if(e._40===1){e._40=2,e._72=[e._72,t];return}e._72.push(t)}else f(e,t)}function f(e,t){n(function(){var n=e._65===1?t.onFulfilled:t.onRejected;if(n===null)e._65===1?p(t.promise,e._55):m(t.promise,e._55);else{var r=s(n,e._55);r===a?m(t.promise,i):p(t.promise,r)}})}function p(e,t){if(t===e)return m(e,/* @__PURE__ */ TypeError(`A promise cannot be resolved with itself.`));if(t&&(typeof t==`object`||typeof t==`function`)){var n=o(t);if(n===a)return m(e,i);if(n===e.then&&t instanceof l){e._65=3,e._55=t,h(e);return}if(typeof n==`function`){_(n.bind(t),e);return}}e._65=1,e._55=t,h(e)}function m(e,t){e._65=2,e._55=t,l._87&&l._87(e,t),h(e)}function h(e){if(e._40===1&&(d(e,e._72),e._72=null),e._40===2){for(var t=0;t<e._72.length;t++)d(e,e._72[t]);e._72=null}}function g(e,t,n){this.onFulfilled=typeof e==`function`?e:null,this.onRejected=typeof t==`function`?t:null,this.promise=n}function _(e,t){var n=!1,r=c(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,m(t,e))});!n&&r===a&&(n=!0,m(t,i))}})),Zr=/* @__PURE__ */ e.t(((e,t)=>{var n=Xr();t.exports=n,n.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,function(e){setTimeout(function(){throw e},0)})}})),Qr=/* @__PURE__ */ e.t(((e,t)=>{var n=Xr();t.exports=n,n.prototype.finally=function(e){return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})})}})),$r=/* @__PURE__ */ e.t(((e,t)=>{var n=Xr();t.exports=n;var r=l(!0),i=l(!1),a=l(null),o=l(void 0),s=l(0),c=l(``);function l(e){var t=new n(n._61);return t._65=1,t._55=e,t}n.resolve=function(e){if(e instanceof n)return e;if(e===null)return a;if(e===void 0)return o;if(e===!0)return r;if(e===!1)return i;if(e===0)return s;if(e===``)return c;if(typeof e==`object`||typeof e==`function`)try{var t=e.then;if(typeof t==`function`)return new n(t.bind(e))}catch(e){return new n(function(t,n){n(e)})}return l(e)},n.all=function(e){var t=Array.prototype.slice.call(e);return new n(function(e,r){if(t.length===0)return e([]);var i=t.length;function a(o,s){if(s&&(typeof s==`object`||typeof s==`function`)){if(s instanceof n&&s.then===n.prototype.then){for(;s._65===3;)s=s._55;if(s._65===1)return a(o,s._55);s._65===2&&r(s._55),s.then(function(e){a(o,e)},r);return}var c=s.then;if(typeof c==`function`){new n(c.bind(s)).then(function(e){a(o,e)},r);return}}t[o]=s,--i===0&&e(t)}for(var o=0;o<t.length;o++)a(o,t[o])})},n.reject=function(e){return new n(function(t,n){n(e)})},n.race=function(e){return new n(function(t,r){e.forEach(function(e){n.resolve(e).then(t,r)})})},n.prototype.catch=function(e){return this.then(null,e)}})),ei=/* @__PURE__ */ e.t(((e,t)=>{var n=Yr(),r=[];t.exports=i;function i(e){var t=r.length?r.pop():new a;t.task=e,t.domain=process.domain,n(t)}function a(){this.task=null,this.domain=null}a.prototype.call=function(){this.domain&&this.domain.enter();var e=!0;try{this.task.call(),e=!1,this.domain&&this.domain.exit()}finally{e&&n.requestFlush(),this.task=null,this.domain=null,r.push(this)}}})),ti=/* @__PURE__ */ e.t(((e,t)=>{var n=Xr(),r=ei();t.exports=n,n.denodeify=function(e,t){return typeof t==`number`&&t!==1/0?a(e,t):o(e)};var i=`function (err, res) {if (err) { rj(err); } else { rs(res); }}`;function a(e,t){for(var r=[],a=0;a<t;a++)r.push(`a`+a);var o=[`return function (`+r.join(`,`)+`) {`,`var self = this;`,`return new Promise(function (rs, rj) {`,`var res = fn.call(`,[`self`].concat(r,[i]).join(`,`),`);`,`if (res &&`,`(typeof res === "object" || typeof res === "function") &&`,`typeof res.then === "function"`,`) {rs(res);}`,`});`,`};`].join(``);return Function([`Promise`,`fn`],o)(n,e)}function o(e){for(var t=Math.max(e.length-1,3),r=[],a=0;a<t;a++)r.push(`a`+a);var o=[`return function (`+r.join(`,`)+`) {`,`var self = this;`,`var args;`,`var argLength = arguments.length;`,`if (arguments.length > `+t+`) {`,`args = new Array(arguments.length + 1);`,`for (var i = 0; i < arguments.length; i++) {`,`args[i] = arguments[i];`,`}`,`}`,`return new Promise(function (rs, rj) {`,`var cb = `+i+`;`,`var res;`,`switch (argLength) {`,r.concat([`extra`]).map(function(e,t){return`case `+t+`:res = fn.call(`+[`self`].concat(r.slice(0,t),`cb`).join(`,`)+`);break;`}).join(``),`default:`,`args[argLength] = cb;`,`res = fn.apply(self, args);`,`}`,`if (res &&`,`(typeof res === "object" || typeof res === "function") &&`,`typeof res.then === "function"`,`) {rs(res);}`,`});`,`};`].join(``);return Function([`Promise`,`fn`],o)(n,e)}n.nodeify=function(e){return function(){var t=Array.prototype.slice.call(arguments),i=typeof t[t.length-1]==`function`?t.pop():null,a=this;try{return e.apply(this,arguments).nodeify(i,a)}catch(e){if(i==null)return new n(function(t,n){n(e)});r(function(){i.call(a,e)})}}},n.prototype.nodeify=function(e,t){if(typeof e!=`function`)return this;this.then(function(n){r(function(){e.call(t,null,n)})},function(n){r(function(){e.call(t,n)})})}})),ni=/* @__PURE__ */ e.t(((e,t)=>{var n=Xr();t.exports=n,n.enableSynchronous=function(){n.prototype.isPending=function(){return this.getState()==0},n.prototype.isFulfilled=function(){return this.getState()==1},n.prototype.isRejected=function(){return this.getState()==2},n.prototype.getValue=function(){if(this._65===3)return this._55.getValue();if(!this.isFulfilled())throw Error(`Cannot get a value of an unfulfilled promise.`);return this._55},n.prototype.getReason=function(){if(this._65===3)return this._55.getReason();if(!this.isRejected())throw Error(`Cannot get a rejection reason of a non-rejected promise.`);return this._55},n.prototype.getState=function(){return this._65===3?this._55.getState():this._65===-1||this._65===-2?0:this._65}},n.disableSynchronous=function(){n.prototype.isPending=void 0,n.prototype.isFulfilled=void 0,n.prototype.isRejected=void 0,n.prototype.getValue=void 0,n.prototype.getReason=void 0,n.prototype.getState=void 0}})),ri=/* @__PURE__ */ e.t(((e,t)=>{t.exports=Xr(),Zr(),Qr(),$r(),ti(),ni()})),ii=/* @__PURE__ */ e.t(((e,t)=>{t.exports=ri()})),ai=/* @__PURE__ */ e.t(((e,t)=>{var n=Object.create(require("fs")),r=ii();for(var i in t.exports=e=n,n)typeof n[i]!=`function`||i.match(/Sync$/)||i.match(/^[A-Z]/)||i.match(/^create/)||i.match(/^(un)?watch/)||a(i);function a(e){var t=n[e];n[e]=e===`exists`?function(){var e=[].slice.call(arguments);return new r(function(n,r){e.push(n),t.apply(null,e)})}:r.denodeify(t)}})),oi=/* @__PURE__ */ e.t(((e,t,n)=>{
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,T=`[object AsyncFunction]`,E=`[object Boolean]`,D=`[object Date]`,O=`[object DOMException]`,k=`[object Error]`,A=`[object Function]`,j=`[object GeneratorFunction]`,M=`[object Map]`,ee=`[object Number]`,te=`[object Null]`,N=`[object Object]`,ne=`[object Promise]`,re=`[object Proxy]`,P=`[object RegExp]`,F=`[object Set]`,I=`[object String]`,L=`[object Symbol]`,R=`[object Undefined]`,z=`[object WeakMap]`,ie=`[object WeakSet]`,B=`[object ArrayBuffer]`,V=`[object DataView]`,H=`[object Float32Array]`,U=`[object Float64Array]`,ae=`[object Int8Array]`,oe=`[object Int16Array]`,se=`[object Int32Array]`,ce=`[object Uint8Array]`,W=`[object Uint8ClampedArray]`,le=`[object Uint16Array]`,ue=`[object Uint32Array]`,de=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ge=RegExp(me.source),_e=RegExp(he.source),ve=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,ye=/<%=([\s\S]+?)%>/g,be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,we=RegExp(Ce.source),K=/^\s+/,q=/\s/,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Oe=/[()=,{}\[\]\/\s]/,ke=/\\(\\)?/g,Ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,je=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,Pe=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Ie=/^(?:0|[1-9]\d*)$/,Le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Re=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,Be=`\\ud800-\\udfff`,Ve=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Y=`\\u2700-\\u27bf`,X=`a-z\\xdf-\\xf6\\xf8-\\xff`,He=`\\xac\\xb1\\xd7\\xf7`,Ue=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,We=`\\u2000-\\u206f`,Ge=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Ke=`A-Z\\xc0-\\xd6\\xd8-\\xde`,qe=`\\ufe0e\\ufe0f`,Je=He+Ue+We+Ge,Ye=`['’]`,Xe=`[`+Be+`]`,Ze=`[`+Je+`]`,Qe=`[`+Ve+`]`,$e=`\\d+`,et=`[`+Y+`]`,tt=`[`+X+`]`,nt=`[^`+Be+Je+$e+Y+X+Ke+`]`,rt=`\\ud83c[\\udffb-\\udfff]`,it=`(?:`+Qe+`|`+rt+`)`,at=`[^`+Be+`]`,ot=`(?:\\ud83c[\\udde6-\\uddff]){2}`,st=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ct=`[`+Ke+`]`,lt=`\\u200d`,ut=`(?:`+tt+`|`+nt+`)`,dt=`(?:`+ct+`|`+nt+`)`,ft=`(?:`+Ye+`(?:d|ll|m|re|s|t|ve))?`,pt=`(?:`+Ye+`(?:D|LL|M|RE|S|T|VE))?`,mt=it+`?`,ht=`[`+qe+`]?`,gt=`(?:`+lt+`(?:`+[at,ot,st].join(`|`)+`)`+ht+mt+`)*`,_t=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,vt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,yt=ht+mt+gt,bt=`(?:`+[et,ot,st].join(`|`)+`)`+yt,xt=`(?:`+[at+Qe+`?`,Qe,ot,st,Xe].join(`|`)+`)`,St=RegExp(Ye,`g`),Ct=RegExp(Qe,`g`),wt=RegExp(rt+`(?=`+rt+`)|`+xt+yt,`g`),Tt=RegExp([ct+`?`+tt+`+`+ft+`(?=`+[Ze,ct,`$`].join(`|`)+`)`,dt+`+`+pt+`(?=`+[Ze,ct+ut,`$`].join(`|`)+`)`,ct+`?`+ut+`+`+ft,ct+`+`+pt,vt,_t,$e,bt].join(`|`),`g`),Et=RegExp(`[`+lt+Be+Ve+qe+`]`),Dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=/* @__PURE__ */ `Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),kt=-1,At={};At[H]=At[U]=At[ae]=At[oe]=At[se]=At[ce]=At[W]=At[le]=At[ue]=!0,At[C]=At[w]=At[B]=At[E]=At[V]=At[D]=At[k]=At[A]=At[M]=At[ee]=At[N]=At[P]=At[F]=At[I]=At[z]=!1;var jt={};jt[C]=jt[w]=jt[B]=jt[V]=jt[E]=jt[D]=jt[H]=jt[U]=jt[ae]=jt[oe]=jt[se]=jt[M]=jt[ee]=jt[N]=jt[P]=jt[F]=jt[I]=jt[L]=jt[ce]=jt[W]=jt[le]=jt[ue]=!0,jt[k]=jt[A]=jt[z]=!1;var Mt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Nt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Pt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Ft={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},It=parseFloat,Lt=parseInt,Rt=typeof global==`object`&&global&&global.Object===Object&&global,zt=typeof self==`object`&&self&&self.Object===Object&&self,Bt=Rt||zt||Function(`return this`)(),Vt=typeof e==`object`&&e&&!e.nodeType&&e,Ht=Vt&&typeof t==`object`&&t&&!t.nodeType&&t,Ut=Ht&&Ht.exports===Vt,Wt=Ut&&Rt.process,Gt=function(){try{return Ht&&Ht.require&&Ht.require(`util`).types||Wt&&Wt.binding&&Wt.binding(`util`)}catch{}}(),Kt=Gt&&Gt.isArrayBuffer,qt=Gt&&Gt.isDate,Jt=Gt&&Gt.isMap,Z=Gt&&Gt.isRegExp,Yt=Gt&&Gt.isSet,Xt=Gt&&Gt.isTypedArray;function Q(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Zt(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Qt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function $t(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function en(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function tn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function nn(e,t){return!!(e!=null&&e.length)&&hn(e,t,0)>-1}function rn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function an(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function on(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function sn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function cn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function ln(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var un=yn(`length`);function dn(e){return e.split(``)}function fn(e){return e.match(De)||[]}function pn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function mn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function hn(e,t,n){return t===t?Gn(e,t,n):mn(e,_n,n)}function gn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function _n(e){return e!==e}function vn(e,t){var n=e==null?0:e.length;return n?Cn(e,t)/n:v}function yn(e){return function(t){return t==null?n:t[e]}}function bn(e){return function(t){return e==null?n:e[t]}}function xn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Sn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Cn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function wn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Tn(e,t){return an(t,function(t){return[t,e[t]]})}function En(e){return e&&e.slice(0,Yn(e)+1).replace(K,``)}function Dn(e){return function(t){return e(t)}}function On(e,t){return an(t,function(t){return e[t]})}function kn(e,t){return e.has(t)}function An(e,t){for(var n=-1,r=e.length;++n<r&&hn(t,e[n],0)>-1;);return n}function jn(e,t){for(var n=e.length;n--&&hn(t,e[n],0)>-1;);return n}function Mn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nn=bn(Mt),Pn=bn(Nt);function Fn(e){return`\\`+Ft[e]}function In(e,t){return e==null?n:e[t]}function Ln(e){return Et.test(e)}function Rn(e){return Dt.test(e)}function zn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Bn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Vn(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Gn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Kn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function qn(e){return Ln(e)?Zn(e):un(e)}function Jn(e){return Ln(e)?Qn(e):dn(e)}function Yn(e){for(var t=e.length;t--&&q.test(e.charAt(t)););return t}var Xn=bn(Pt);function Zn(e){for(var t=wt.lastIndex=0;wt.test(e);)++t;return t}function Qn(e){return e.match(wt)||[]}function $n(e){return e.match(Tt)||[]}var er=(function e(t){t=t==null?Bt:er.defaults(Bt.Object(),t,er.pick(Bt,Ot));var q=t.Array,De=t.Date,Be=t.Error,Ve=t.Function,Y=t.Math,X=t.Object,He=t.RegExp,Ue=t.String,We=t.TypeError,Ge=q.prototype,Ke=Ve.prototype,qe=X.prototype,Je=t[`__core-js_shared__`],Ye=Ke.toString,Xe=qe.hasOwnProperty,Ze=0,Qe=function(){var e=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),$e=qe.toString,et=Ye.call(X),tt=Bt._,nt=He(`^`+Ye.call(Xe).replace(Ce,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),rt=Ut?t.Buffer:n,it=t.Symbol,at=t.Uint8Array,ot=rt?rt.allocUnsafe:n,st=Vn(X.getPrototypeOf,X),ct=X.create,lt=qe.propertyIsEnumerable,ut=Ge.splice,dt=it?it.isConcatSpreadable:n,ft=it?it.iterator:n,pt=it?it.toStringTag:n,mt=function(){try{var e=ko(X,`defineProperty`);return e({},``,{}),e}catch{}}(),ht=t.clearTimeout!==Bt.clearTimeout&&t.clearTimeout,gt=De&&De.now!==Bt.Date.now&&De.now,_t=t.setTimeout!==Bt.setTimeout&&t.setTimeout,vt=Y.ceil,yt=Y.floor,bt=X.getOwnPropertySymbols,xt=rt?rt.isBuffer:n,wt=t.isFinite,Tt=Ge.join,Et=Vn(X.keys,X),Dt=Y.max,Mt=Y.min,Nt=De.now,Pt=t.parseInt,Ft=Y.random,Rt=Ge.reverse,zt=ko(t,`DataView`),Vt=ko(t,`Map`),Ht=ko(t,`Promise`),Wt=ko(t,`Set`),Gt=ko(t,`WeakMap`),un=ko(X,`create`),dn=Gt&&new Gt,bn={},Gn=ms(zt),Zn=ms(Vt),Qn=ms(Ht),tr=ms(Wt),nr=ms(Gt),rr=it?it.prototype:n,ir=rr?rr.valueOf:n,ar=rr?rr.toString:n;function $(e){if(su(e)&&!Wl(e)&&!(e instanceof lr)){if(e instanceof cr)return e;if(Xe.call(e,`__wrapped__`))return gs(e)}return new cr(e)}var or=function(){function e(){}return function(t){if(!ou(t))return{};if(ct)return ct(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function sr(){}function cr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}$.templateSettings={escape:ve,evaluate:G,interpolate:ye,variable:``,imports:{_:$}},$.prototype=sr.prototype,$.prototype.constructor=$,cr.prototype=or(sr.prototype),cr.prototype.constructor=cr;function lr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function ur(){var e=new lr(this.__wrapped__);return e.__actions__=za(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=za(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=za(this.__views__),e}function dr(){if(this.__filtered__){var e=new lr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function fr(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wl(e),r=t<0,i=n?e.length:0,a=Po(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Mt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return ba(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}lr.prototype=or(sr.prototype),lr.prototype.constructor=lr;function pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mr(){this.__data__=un?un(null):{},this.size=0}function hr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function gr(e){var t=this.__data__;if(un){var r=t[e];return r===i?n:r}return Xe.call(t,e)?t[e]:n}function _r(e){var t=this.__data__;return un?t[e]!==n:Xe.call(t,e)}function vr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=un&&t===n?i:t,this}pr.prototype.clear=mr,pr.prototype.delete=hr,pr.prototype.get=gr,pr.prototype.has=_r,pr.prototype.set=vr;function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function br(){this.__data__=[],this.size=0}function xr(e){var t=this.__data__,n=Kr(t,e);return n<0?!1:(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,!0)}function Sr(e){var t=this.__data__,r=Kr(t,e);return r<0?n:t[r][1]}function Cr(e){return Kr(this.__data__,e)>-1}function wr(e,t){var n=this.__data__,r=Kr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}yr.prototype.clear=br,yr.prototype.delete=xr,yr.prototype.get=Sr,yr.prototype.has=Cr,yr.prototype.set=wr;function Tr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Er(){this.size=0,this.__data__={hash:new pr,map:new(Vt||yr),string:new pr}}function Dr(e){var t=Do(this,e).delete(e);return this.size-=+!!t,t}function Or(e){return Do(this,e).get(e)}function kr(e){return Do(this,e).has(e)}function Ar(e,t){var n=Do(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Tr.prototype.clear=Er,Tr.prototype.delete=Dr,Tr.prototype.get=Or,Tr.prototype.has=kr,Tr.prototype.set=Ar;function jr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Tr;++t<n;)this.add(e[t])}function Mr(e){return this.__data__.set(e,i),this}function Nr(e){return this.__data__.has(e)}jr.prototype.add=jr.prototype.push=Mr,jr.prototype.has=Nr;function Pr(e){var t=this.__data__=new yr(e);this.size=t.size}function Fr(){this.__data__=new yr,this.size=0}function Ir(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Lr(e){return this.__data__.get(e)}function Rr(e){return this.__data__.has(e)}function zr(e,t){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!Vt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tr(r)}return n.set(e,t),this.size=n.size,this}Pr.prototype.clear=Fr,Pr.prototype.delete=Ir,Pr.prototype.get=Lr,Pr.prototype.has=Rr,Pr.prototype.set=zr;function Br(e,t){var n=Wl(e),r=!n&&Ul(e),i=!n&&!r&&Yl(e),a=!n&&!r&&!i&&Su(e),o=n||r||i||a,s=o?wn(e.length,Ue):[],c=s.length;for(var l in e)(t||Xe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ho(l,c)))&&s.push(l);return s}function Vr(e){var t=e.length;return t?e[$i(0,t-1)]:n}function Hr(e,t){return ds(za(e),Qr(t,0,e.length))}function Ur(e){return ds(za(e))}function Wr(e,t,r){(r!==n&&!Bl(e[t],r)||r===n&&!(t in e))&&Xr(e,t,r)}function Gr(e,t,r){var i=e[t];(!(Xe.call(e,t)&&Bl(i,r))||r===n&&!(t in e))&&Xr(e,t,r)}function Kr(e,t){for(var n=e.length;n--;)if(Bl(e[n][0],t))return n;return-1}function qr(e,t,n,r){return ii(e,function(e,i,a){t(r,e,n(e),a)}),r}function Jr(e,t){return e&&Ba(t,id(t),e)}function Yr(e,t){return e&&Ba(t,ad(t),e)}function Xr(e,t,n){t==`__proto__`&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Zr(e,t){for(var r=-1,i=t.length,a=q(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function Qr(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function $r(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!ou(e))return e;var d=Wl(e);if(d){if(s=Lo(e),!c)return za(e,s)}else{var f=No(e),p=f==A||f==j;if(Yl(e))return ka(e,c);if(f==N||f==C||p&&!a){if(s=l||p?{}:Ro(e),!c)return l?Ha(e,Yr(s,e)):Va(e,Jr(s,e))}else{if(!jt[f])return a?e:{};s=zo(e,f,c)}}o||=new Pr;var m=o.get(e);if(m)return m;o.set(e,s),yu(e)?e.forEach(function(n){s.add($r(n,t,r,n,e,o))}):cu(e)&&e.forEach(function(n,i){s.set(i,$r(n,t,r,i,e,o))});var h=d?n:(u?l?So:xo:l?ad:id)(e);return Qt(h||e,function(n,i){h&&(i=n,n=e[i]),Gr(s,i,$r(n,t,r,i,e,o))}),s}function ei(e){var t=id(e);return function(n){return ti(n,e,t)}}function ti(e,t,r){var i=r.length;if(e==null)return!i;for(e=X(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ni(e,t,i){if(typeof e!=`function`)throw new We(r);return ss(function(){e.apply(n,i)},t)}function ri(e,t,n,r){var i=-1,a=nn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=an(t,Dn(n))),r?(a=rn,o=!1):t.length>=200&&(a=kn,o=!1,t=new jr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var ii=Ga(pi),ai=Ga(mi,!0);function oi(e,t){var n=!0;return ii(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function si(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!xu(s):r(s,c)))var c=s,l=o}return l}function ci(e,t,r,i){var a=e.length;for(r=Au(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Au(i),i<0&&(i+=a),i=r>i?0:ju(i);r<i;)e[r++]=t;return e}function li(e,t){var n=[];return ii(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function ui(e,t,n,r,i){var a=-1,o=e.length;for(n||=Vo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ui(s,t-1,n,r,i):on(i,s):r||(i[i.length]=s)}return i}var di=Ka(),fi=Ka(!0);function pi(e,t){return e&&di(e,t,id)}function mi(e,t){return e&&fi(e,t,id)}function hi(e,t){return tn(t,function(t){return ru(e[t])})}function gi(e,t){t=Ta(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[ps(t[r++])];return r&&r==i?e:n}function _i(e,t,n){var r=t(e);return Wl(e)?r:on(r,n(e))}function vi(e){return e==null?e===n?R:te:pt&&pt in X(e)?Ao(e):ts(e)}function yi(e,t){return e>t}function bi(e,t){return e!=null&&Xe.call(e,t)}function xi(e,t){return e!=null&&t in X(e)}function Si(e,t,n){return e>=Mt(t,n)&&e<Dt(t,n)}function Ci(e,t,r){for(var i=r?rn:nn,a=e[0].length,o=e.length,s=o,c=q(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=an(d,Dn(t))),l=Mt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new jr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?kn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?kn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function wi(e,t,n,r){return pi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Ti(e,t,r){t=Ta(t,e),e=rs(e,t);var i=e==null?e:e[ps(Vs(t))];return i==null?n:Q(i,e,r)}function Ei(e){return su(e)&&vi(e)==C}function Di(e){return su(e)&&vi(e)==B}function Oi(e){return su(e)&&vi(e)==D}function ki(e,t,n,r,i){return e===t?!0:e==null||t==null||!su(e)&&!su(t)?e!==e&&t!==t:Ai(e,t,n,r,ki,i)}function Ai(e,t,n,r,i,a){var o=Wl(e),s=Wl(t),c=o?w:No(e),l=s?w:No(t);c=c==C?N:c,l=l==C?N:l;var u=c==N,d=l==N,f=c==l;if(f&&Yl(e)){if(!Yl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Pr,o||Su(e)?_o(e,t,n,r,i,a):vo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&Xe.call(e,`__wrapped__`),m=d&&Xe.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Pr,i(h,g,n,r,a)}}return f?(a||=new Pr,yo(e,t,n,r,i,a)):!1}function ji(e){return su(e)&&No(e)==M}function Mi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=X(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Pr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?ki(d,u,3,i,f):p))return!1}}return!0}function Ni(e){return!ou(e)||qo(e)?!1:(ru(e)?nt:Pe).test(ms(e))}function Pi(e){return su(e)&&vi(e)==P}function Fi(e){return su(e)&&No(e)==F}function Ii(e){return su(e)&&au(e.length)&&!!At[vi(e)]}function Li(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Wl(e)?Ui(e[0],e[1]):Hi(e):Ef(e)}function Ri(e){if(!Yo(e))return Et(e);var t=[];for(var n in X(e))Xe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function zi(e){if(!ou(e))return es(e);var t=Yo(e),n=[];for(var r in e)(r!=`constructor`||!t&&Xe.call(e,r))&&n.push(r);return n}function Bi(e,t){return e<t}function Vi(e,t){var n=-1,r=Kl(e)?q(e.length):[];return ii(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Hi(e){var t=Oo(e);return t.length==1&&t[0][2]?Zo(t[0][0],t[0][1]):function(n){return n===e||Mi(n,e,t)}}function Ui(e,t){return Wo(e)&&Xo(t)?Zo(ps(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):ki(t,i,3)}}function Wi(e,t,r,i,a){e!==t&&di(t,function(o,s){if(a||=new Pr,ou(o))Gi(e,t,s,r,Wi,i,a);else{var c=i?i(as(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Wr(e,s,c)}},ad)}function Gi(e,t,r,i,a,o,s){var c=as(e,r),l=as(t,r),u=s.get(l);if(u)Wr(e,r,u);else{var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Wl(l),m=!p&&Yl(l),h=!p&&!m&&Su(l);d=l,p||m||h?Wl(c)?d=c:ql(c)?d=za(c):m?(f=!1,d=ka(l,!0)):h?(f=!1,d=Pa(l,!0)):d=[]:gu(l)||Ul(l)?(d=c,Ul(c)?d=Nu(c):(!ou(c)||ru(c))&&(d=Ro(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Wr(e,r,d)}}function Ki(e,t){var r=e.length;if(r)return t+=t<0?r:0,Ho(t,r)?e[t]:n}function qi(e,t,n){t=t.length?an(t,function(e){return Wl(e)?function(t){return gi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=an(t,Dn(Eo())),Sn(Vi(e,function(e,n,i){return{criteria:an(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ia(e,t,n)})}function Ji(e,t){return Yi(e,t,function(t,n){return ed(e,n)})}function Yi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=gi(e,o);n(s,o)&&aa(a,Ta(o,e),s)}return a}function Xi(e){return function(t){return gi(t,e)}}function Zi(e,t,n,r){var i=r?gn:hn,a=-1,o=t.length,s=e;for(e===t&&(t=za(t)),n&&(s=an(e,Dn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&ut.call(s,c,1),ut.call(e,c,1);return e}function Qi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Ho(i)?ut.call(e,i,1):_a(e,i)}}return e}function $i(e,t){return e+yt(Ft()*(t-e+1))}function ea(e,t,n,r){for(var i=-1,a=Dt(vt((t-e)/(n||1)),0),o=q(a);a--;)o[r?a:++i]=e,e+=n;return o}function ta(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=yt(t/2),t&&(e+=e);while(t);return n}function na(e,t){return cs(ns(e,t,pf),e+``)}function ra(e){return Vr(Cd(e))}function ia(e,t){var n=Cd(e);return ds(n,Qr(t,0,n.length))}function aa(e,t,r,i){if(!ou(e))return e;t=Ta(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ps(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=ou(d)?d:Ho(t[a+1])?[]:{})}Gr(c,l,u),c=c[l]}return e}var oa=dn?function(e,t){return dn.set(e,t),e}:pf,sa=mt?function(e,t){return mt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function ca(e){return ds(Cd(e))}function la(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=q(i);++r<i;)a[r]=e[r+t];return a}function ua(e,t){var n;return ii(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function da(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!xu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return fa(e,t,pf,n)}function fa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=xu(t),u=t===n;a<o;){var d=yt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=xu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Mt(o,b)}function pa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Bl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function ma(e){return typeof e==`number`?e:xu(e)?v:+e}function ha(e){if(typeof e==`string`)return e;if(Wl(e))return an(e,ha)+``;if(xu(e))return ar?ar.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ga(e,t,n){var r=-1,i=nn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=rn;else if(a>=200){var l=t?null:uo(e);if(l)return Un(l);o=!1,i=kn,c=new jr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function _a(e,t){t=Ta(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=ps(t[n]);if(i===`__proto__`&&!Xe.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=rs(e,t);return a==null||delete a[ps(Vs(t))]}function va(e,t,n,r){return aa(e,t,n(gi(e,t)),r)}function ya(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?la(e,r?0:a,r?a+1:i):la(e,r?a+1:0,r?i:a)}function ba(e,t){var n=e;return n instanceof lr&&(n=n.value()),sn(t,function(e,t){return t.func.apply(t.thisArg,on([e],t.args))},n)}function xa(e,t,n){var r=e.length;if(r<2)return r?ga(e[0]):[];for(var i=-1,a=q(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=ri(a[i]||o,e[s],t,n));return ga(ui(a,1),t,n)}function Sa(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ca(e){return ql(e)?e:[]}function wa(e){return typeof e==`function`?e:pf}function Ta(e,t){return Wl(e)?e:Wo(e,t)?[e]:fs(Fu(e))}var Ea=na;function Da(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:la(e,t,r)}var Oa=ht||function(e){return Bt.clearTimeout(e)};function ka(e,t){if(t)return e.slice();var n=e.length,r=ot?ot(n):new e.constructor(n);return e.copy(r),r}function Aa(e){var t=new e.constructor(e.byteLength);return new at(t).set(new at(e)),t}function ja(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ma(e){var t=new e.constructor(e.source,je.exec(e));return t.lastIndex=e.lastIndex,t}function Na(e){return ir?X(ir.call(e)):{}}function Pa(e,t){var n=t?Aa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Fa(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=xu(e),s=t!==n,c=t===null,l=t===t,u=xu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ia(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Fa(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function La(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Dt(a-o,0),u=q(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ra(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Dt(a-s,0),d=q(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function za(e,t){var n=-1,r=e.length;for(t||=q(r);++n<r;)t[n]=e[n];return t}function Ba(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?Xr(r,c,l):Gr(r,c,l)}return r}function Va(e,t){return Ba(e,jo(e),t)}function Ha(e,t){return Ba(e,Mo(e),t)}function Ua(e,t){return function(n,r){var i=Wl(n)?Zt:qr,a=t?t():{};return i(n,e,Eo(r,2),a)}}function Wa(e){return na(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Uo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=X(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ga(e,t){return function(n,r){if(n==null)return n;if(!Kl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=X(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Ka(e){return function(t,n,r){for(var i=-1,a=X(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function qa(e,t,n){var r=t&o,i=Xa(e);function a(){return(this&&this!==Bt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Ja(e){return function(t){t=Fu(t);var r=Ln(t)?Jn(t):n,i=r?r[0]:t.charAt(0),a=r?Da(r,1).join(``):t.slice(1);return i[e]()+a}}function Ya(e){return function(t){return sn(rf(Ad(t).replace(St,``)),e,``)}}function Xa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=or(e.prototype),r=e.apply(n,t);return ou(r)?r:n}}function Za(e,t,r){var i=Xa(e);function a(){for(var o=arguments.length,s=q(o),c=o,l=To(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Hn(s,l);return o-=u.length,o<r?co(e,t,eo,a.placeholder,n,s,u,n,n,r-o):Q(this&&this!==Bt&&this instanceof a?i:e,this,s)}return a}function Qa(e){return function(t,r,i){var a=X(t);if(!Kl(t)){var o=Eo(r,3);t=id(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function $a(e){return bo(function(t){var i=t.length,a=i,o=cr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new We(r);if(o&&!l&&wo(s)==`wrapper`)var l=new cr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=wo(s),m=d==`wrapper`?Co(s):n;l=m&&Ko(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[wo(m[0])].apply(l,m[3]):s.length==1&&Ko(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Wl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function eo(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:Xa(e);function C(){for(var n=arguments.length,o=q(n),s=n;s--;)o[s]=arguments[s];if(b)var c=To(C),l=Mn(o,c);if(i&&(o=La(o,i,a,b)),u&&(o=Ra(o,u,d,b)),n-=l,b&&n<g){var f=Hn(o,c);return co(e,t,eo,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=is(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Bt&&this instanceof C&&(w=S||Xa(w)),w.apply(m,o)}return C}function to(e,t){return function(n,r){return wi(n,e,t(r),{})}}function no(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=ha(r),i=ha(i)):(r=ma(r),i=ma(i)),a=e(r,i)}return a}}function ro(e){return bo(function(t){return t=an(t,Dn(Eo())),na(function(n){var r=this;return e(t,function(e){return Q(e,r,n)})})})}function io(e,t){t=t===n?` `:ha(t);var r=t.length;if(r<2)return r?ta(t,e):t;var i=ta(t,vt(e/qn(t)));return Ln(t)?Da(Jn(i),0,e).join(``):i.slice(0,e)}function ao(e,t,n,r){var i=t&o,a=Xa(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=q(l+o),d=this&&this!==Bt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return Q(d,i?n:this,u)}return s}function oo(e){return function(t,r,i){return i&&typeof i!=`number`&&Uo(t,r,i)&&(r=i=n),t=ku(t),r===n?(r=t,t=0):r=ku(r),i=i===n?t<r?1:-1:ku(i),ea(t,r,i,e)}}function so(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Mu(t),n=Mu(n)),e(t,n)}}function co(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Ko(e)&&os(S,x),S.placeholder=i,ls(S,e,t)}function lo(e){var t=Y[e];return function(e,n){if(e=Mu(e),n=n==null?0:Mt(Au(n),292),n&&wt(e)){var r=(Fu(e)+`e`).split(`e`);return r=(Fu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var uo=Wt&&1/Un(new Wt([,-0]))[1]==h?function(e){return new Wt(e)}:xf;function fo(e){return function(t){var n=No(t);return n==M?Bn(t):n==F?Wn(t):Tn(t,e(t))}}function po(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new We(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Dt(Au(m),0),h=h===n?h:Au(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Co(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&$o(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Dt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=qa(e,t,i);else S=t==c||t==l?Za(e,t,h):(t==u||t==(o|u))&&!f.length?ao(e,t,i,a):eo.apply(n,x);return ls((b?oa:os)(S,x),e,t)}function mo(e,t,r,i){return e===n||Bl(e,qe[r])&&!Xe.call(i,r)?t:e}function ho(e,t,r,i,a,o){return ou(e)&&ou(t)&&(o.set(t,e),Wi(e,t,n,ho,o),o.delete(t)),e}function go(e){return gu(e)?n:e}function _o(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new jr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!ln(t,function(e,t){if(!kn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function vo(e,t,n,r,i,a,o){switch(n){case V:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!a(new at(e),new at(t)));case E:case D:case ee:return Bl(+e,+t);case k:return e.name==t.name&&e.message==t.message;case P:case I:return e==t+``;case M:var s=Bn;case F:var c=r&1;if(s||=Un,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=_o(s(e),s(t),r,i,a,o);return o.delete(e),u;case L:if(ir)return ir.call(e)==ir.call(t)}return!1}function yo(e,t,r,i,a,o){var s=r&1,c=xo(e),l=c.length;if(l!=xo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Xe.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function bo(e){return cs(ns(e,n,As),e+``)}function xo(e){return _i(e,id,jo)}function So(e){return _i(e,ad,Mo)}var Co=dn?function(e){return dn.get(e)}:xf;function wo(e){for(var t=e.name+``,n=bn[t],r=Xe.call(bn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function To(e){return(Xe.call($,`placeholder`)?$:e).placeholder}function Eo(){var e=$.iteratee||mf;return e=e===mf?Li:e,arguments.length?e(arguments[0],arguments[1]):e}function Do(e,t){var n=e.__data__;return Go(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Oo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Xo(i)]}return t}function ko(e,t){var r=In(e,t);return Ni(r)?r:n}function Ao(e){var t=Xe.call(e,pt),r=e[pt];try{e[pt]=n;var i=!0}catch{}var a=$e.call(e);return i&&(t?e[pt]=r:delete e[pt]),a}var jo=bt?function(e){return e==null?[]:(e=X(e),tn(bt(e),function(t){return lt.call(e,t)}))}:Af,Mo=bt?function(e){for(var t=[];e;)on(t,jo(e)),e=st(e);return t}:Af,No=vi;(zt&&No(new zt(/* @__PURE__ */ new ArrayBuffer(1)))!=V||Vt&&No(new Vt)!=M||Ht&&No(Ht.resolve())!=ne||Wt&&No(new Wt)!=F||Gt&&No(new Gt)!=z)&&(No=function(e){var t=vi(e),r=t==N?e.constructor:n,i=r?ms(r):``;if(i)switch(i){case Gn:return V;case Zn:return M;case Qn:return ne;case tr:return F;case nr:return z}return t});function Po(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Mt(t,e+o);break;case`takeRight`:e=Dt(e,t-o)}}return{start:e,end:t}}function Fo(e){var t=e.match(J);return t?t[1].split(Ee):[]}function Io(e,t,n){t=Ta(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ps(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&au(i)&&Ho(o,i)&&(Wl(e)||Ul(e)))}function Lo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Xe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Ro(e){return typeof e.constructor==`function`&&!Yo(e)?or(st(e)):{}}function zo(e,t,n){var r=e.constructor;switch(t){case B:return Aa(e);case E:case D:return new r(+e);case V:return ja(e,n);case H:case U:case ae:case oe:case se:case ce:case W:case le:case ue:return Pa(e,n);case M:return new r;case ee:case I:return new r(e);case P:return Ma(e);case F:return new r;case L:return Na(e)}}function Bo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Te,`{
/* [wrapped with `+t+`] */
`)}function Vo(e){return Wl(e)||Ul(e)||!!(dt&&e&&e[dt])}function Ho(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Ie.test(e))&&e>-1&&e%1==0&&e<t}function Uo(e,t,n){if(!ou(n))return!1;var r=typeof t;return(r==`number`?Kl(n)&&Ho(t,n.length):r==`string`&&t in n)?Bl(n[t],e):!1}function Wo(e,t){if(Wl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||xu(e)?!0:xe.test(e)||!be.test(e)||t!=null&&e in X(t)}function Go(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ko(e){var t=wo(e),n=$[t];if(typeof n!=`function`||!(t in lr.prototype))return!1;if(e===n)return!0;var r=Co(n);return!!r&&e===r[0]}function qo(e){return!!Qe&&Qe in e}var Jo=Je?ru:jf;function Yo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||qe)}function Xo(e){return e===e&&!ou(e)}function Zo(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in X(r))}}function Qo(e){var t=Sl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function $o(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?La(m,d,t[4]):d,e[4]=m?Hn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ra(m,d,t[6]):d,e[6]=m?Hn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Mt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function es(e){var t=[];if(e!=null)for(var n in X(e))t.push(n);return t}function ts(e){return $e.call(e)}function ns(e,t,r){return t=Dt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Dt(n.length-t,0),o=q(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=q(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Q(e,this,s)}}function rs(e,t){return t.length<2?e:gi(e,la(t,0,-1))}function is(e,t){for(var r=e.length,i=Mt(t.length,r),a=za(e);i--;){var o=t[i];e[i]=Ho(o,r)?a[o]:n}return e}function as(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var os=us(oa),ss=_t||function(e,t){return Bt.setTimeout(e,t)},cs=us(sa);function ls(e,t,n){var r=t+``;return cs(e,Bo(r,hs(Fo(r),n)))}function us(e){var t=0,r=0;return function(){var i=Nt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ds(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=$i(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var fs=Qo(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Se,function(e,n,r,i){t.push(r?i.replace(ke,`$1`):n||e)}),t});function ps(e){if(typeof e==`string`||xu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ms(e){if(e!=null){try{return Ye.call(e)}catch{}try{return e+``}catch{}}return``}function hs(e,t){return Qt(S,function(n){var r=`_.`+n[0];t&n[1]&&!nn(e,r)&&e.push(r)}),e.sort()}function gs(e){if(e instanceof lr)return e.clone();var t=new cr(e.__wrapped__,e.__chain__);return t.__actions__=za(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function _s(e,t,r){t=(r?Uo(e,t,r):t===n)?1:Dt(Au(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=q(vt(i/t));a<i;)s[o++]=la(e,a,a+=t);return s}function vs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function ys(){var e=arguments.length;if(!e)return[];for(var t=q(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return on(Wl(n)?za(n):[n],ui(t,1))}var bs=na(function(e,t){return ql(e)?ri(e,ui(t,1,ql,!0)):[]}),xs=na(function(e,t){var r=Vs(t);return ql(r)&&(r=n),ql(e)?ri(e,ui(t,1,ql,!0),Eo(r,2)):[]}),Ss=na(function(e,t){var r=Vs(t);return ql(r)&&(r=n),ql(e)?ri(e,ui(t,1,ql,!0),n,r):[]});function Cs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),la(e,t<0?0:t,i)):[]}function ws(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),t=i-t,la(e,0,t<0?0:t)):[]}function Ts(e,t){return e&&e.length?ya(e,Eo(t,3),!0,!0):[]}function Es(e,t){return e&&e.length?ya(e,Eo(t,3),!0):[]}function Ds(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Uo(e,t,n)&&(n=0,r=i),ci(e,t,n,r)):[]}function Os(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Au(n);return i<0&&(i=Dt(r+i,0)),mn(e,Eo(t,3),i)}function ks(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Au(r),a=r<0?Dt(i+a,0):Mt(a,i-1)),mn(e,Eo(t,3),a,!0)}function As(e){return e!=null&&e.length?ui(e,1):[]}function js(e){return e!=null&&e.length?ui(e,h):[]}function Ms(e,t){return e!=null&&e.length?(t=t===n?1:Au(t),ui(e,t)):[]}function Ns(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Xr(r,i[0],i[1])}return r}function Ps(e){return e&&e.length?e[0]:n}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Au(n);return i<0&&(i=Dt(r+i,0)),hn(e,t,i)}function Is(e){return e!=null&&e.length?la(e,0,-1):[]}var Ls=na(function(e){var t=an(e,Ca);return t.length&&t[0]===e[0]?Ci(t):[]}),Rs=na(function(e){var t=Vs(e),r=an(e,Ca);return t===Vs(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ci(r,Eo(t,2)):[]}),zs=na(function(e){var t=Vs(e),r=an(e,Ca);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ci(r,n,t):[]});function Bs(e,t){return e==null?``:Tt.call(e,t)}function Vs(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Hs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Au(r),a=a<0?Dt(i+a,0):Mt(a,i-1)),t===t?Kn(e,t,a):mn(e,_n,a,!0)}function Us(e,t){return e&&e.length?Ki(e,Au(t)):n}var Ws=na(Gs);function Gs(e,t){return e&&e.length&&t&&t.length?Zi(e,t):e}function Ks(e,t,n){return e&&e.length&&t&&t.length?Zi(e,t,Eo(n,2)):e}function qs(e,t,r){return e&&e.length&&t&&t.length?Zi(e,t,n,r):e}var Js=bo(function(e,t){var n=e==null?0:e.length,r=Zr(e,t);return Qi(e,an(t,function(e){return Ho(e,n)?+e:e}).sort(Fa)),r});function Ys(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=Eo(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Qi(e,i),n}function Xs(e){return e==null?e:Rt.call(e)}function Zs(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Uo(e,t,r)?(t=0,r=i):(t=t==null?0:Au(t),r=r===n?i:Au(r)),la(e,t,r)):[]}function Qs(e,t){return da(e,t)}function $s(e,t,n){return fa(e,t,Eo(n,2))}function ec(e,t){var n=e==null?0:e.length;if(n){var r=da(e,t);if(r<n&&Bl(e[r],t))return r}return-1}function tc(e,t){return da(e,t,!0)}function nc(e,t,n){return fa(e,t,Eo(n,2),!0)}function rc(e,t){if(e!=null&&e.length){var n=da(e,t,!0)-1;if(Bl(e[n],t))return n}return-1}function ic(e){return e&&e.length?pa(e):[]}function ac(e,t){return e&&e.length?pa(e,Eo(t,2)):[]}function oc(e){var t=e==null?0:e.length;return t?la(e,1,t):[]}function sc(e,t,r){return e&&e.length?(t=r||t===n?1:Au(t),la(e,0,t<0?0:t)):[]}function cc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),t=i-t,la(e,t<0?0:t,i)):[]}function lc(e,t){return e&&e.length?ya(e,Eo(t,3),!1,!0):[]}function uc(e,t){return e&&e.length?ya(e,Eo(t,3)):[]}var dc=na(function(e){return ga(ui(e,1,ql,!0))}),fc=na(function(e){var t=Vs(e);return ql(t)&&(t=n),ga(ui(e,1,ql,!0),Eo(t,2))}),pc=na(function(e){var t=Vs(e);return t=typeof t==`function`?t:n,ga(ui(e,1,ql,!0),n,t)});function mc(e){return e&&e.length?ga(e):[]}function hc(e,t){return e&&e.length?ga(e,Eo(t,2)):[]}function gc(e,t){return t=typeof t==`function`?t:n,e&&e.length?ga(e,n,t):[]}function _c(e){if(!(e&&e.length))return[];var t=0;return e=tn(e,function(e){if(ql(e))return t=Dt(e.length,t),!0}),wn(t,function(t){return an(e,yn(t))})}function vc(e,t){if(!(e&&e.length))return[];var r=_c(e);return t==null?r:an(r,function(e){return Q(t,n,e)})}var yc=na(function(e,t){return ql(e)?ri(e,t):[]}),bc=na(function(e){return xa(tn(e,ql))}),xc=na(function(e){var t=Vs(e);return ql(t)&&(t=n),xa(tn(e,ql),Eo(t,2))}),Sc=na(function(e){var t=Vs(e);return t=typeof t==`function`?t:n,xa(tn(e,ql),n,t)}),Cc=na(_c);function wc(e,t){return Sa(e||[],t||[],Gr)}function Tc(e,t){return Sa(e||[],t||[],aa)}var Ec=na(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,vc(e,r)});function Dc(e){var t=$(e);return t.__chain__=!0,t}function Oc(e,t){return t(e),e}function kc(e,t){return t(e)}var Ac=bo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return Zr(t,e)};return t>1||this.__actions__.length||!(i instanceof lr)||!Ho(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:kc,args:[a],thisArg:n}),new cr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function jc(){return Dc(this)}function Mc(){return new cr(this.value(),this.__chain__)}function Nc(){this.__values__===n&&(this.__values__=Ou(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Pc(){return this}function Fc(e){for(var t,r=this;r instanceof sr;){var i=gs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Ic(){var e=this.__wrapped__;if(e instanceof lr){var t=e;return this.__actions__.length&&(t=new lr(this)),t=t.reverse(),t.__actions__.push({func:kc,args:[Xs],thisArg:n}),new cr(t,this.__chain__)}return this.thru(Xs)}function Lc(){return ba(this.__wrapped__,this.__actions__)}var Rc=Ua(function(e,t,n){Xe.call(e,n)?++e[n]:Xr(e,n,1)});function zc(e,t,r){var i=Wl(e)?en:oi;return r&&Uo(e,t,r)&&(t=n),i(e,Eo(t,3))}function Bc(e,t){return(Wl(e)?tn:li)(e,Eo(t,3))}var Vc=Qa(Os),Hc=Qa(ks);function Uc(e,t){return ui(Qc(e,t),1)}function Wc(e,t){return ui(Qc(e,t),h)}function Gc(e,t,r){return r=r===n?1:Au(r),ui(Qc(e,t),r)}function Kc(e,t){return(Wl(e)?Qt:ii)(e,Eo(t,3))}function qc(e,t){return(Wl(e)?$t:ai)(e,Eo(t,3))}var Jc=Ua(function(e,t,n){Xe.call(e,n)?e[n].push(t):Xr(e,n,[t])});function Yc(e,t,n,r){e=Kl(e)?e:Cd(e),n=n&&!r?Au(n):0;var i=e.length;return n<0&&(n=Dt(i+n,0)),bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&hn(e,t,n)>-1}var Xc=na(function(e,t,n){var r=-1,i=typeof t==`function`,a=Kl(e)?q(e.length):[];return ii(e,function(e){a[++r]=i?Q(t,e,n):Ti(e,t,n)}),a}),Zc=Ua(function(e,t,n){Xr(e,n,t)});function Qc(e,t){return(Wl(e)?an:Vi)(e,Eo(t,3))}function $c(e,t,r,i){return e==null?[]:(Wl(t)||(t=t==null?[]:[t]),r=i?n:r,Wl(r)||(r=r==null?[]:[r]),qi(e,t,r))}var el=Ua(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function tl(e,t,n){var r=Wl(e)?sn:xn,i=arguments.length<3;return r(e,Eo(t,4),n,i,ii)}function nl(e,t,n){var r=Wl(e)?cn:xn,i=arguments.length<3;return r(e,Eo(t,4),n,i,ai)}function rl(e,t){return(Wl(e)?tn:li)(e,Cl(Eo(t,3)))}function il(e){return(Wl(e)?Vr:ra)(e)}function al(e,t,r){return t=(r?Uo(e,t,r):t===n)?1:Au(t),(Wl(e)?Hr:ia)(e,t)}function ol(e){return(Wl(e)?Ur:ca)(e)}function sl(e){if(e==null)return 0;if(Kl(e))return bu(e)?qn(e):e.length;var t=No(e);return t==M||t==F?e.size:Ri(e).length}function cl(e,t,r){var i=Wl(e)?ln:ua;return r&&Uo(e,t,r)&&(t=n),i(e,Eo(t,3))}var ll=na(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Uo(e,t[0],t[1])?t=[]:n>2&&Uo(t[0],t[1],t[2])&&(t=[t[0]]),qi(e,ui(t,1),[])}),ul=gt||function(){return Bt.Date.now()};function dl(e,t){if(typeof t!=`function`)throw new We(r);return e=Au(e),function(){if(--e<1)return t.apply(this,arguments)}}function fl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,po(e,f,n,n,n,n,t)}function pl(e,t){var i;if(typeof t!=`function`)throw new We(r);return e=Au(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ml=na(function(e,t,n){var r=o;if(n.length){var i=Hn(n,To(ml));r|=u}return po(e,r,t,n,i)}),hl=na(function(e,t,n){var r=o|s;if(n.length){var i=Hn(n,To(hl));r|=u}return po(t,r,e,n,i)});function gl(e,t,r){t=r?n:t;var i=po(e,c,n,n,n,n,n,t);return i.placeholder=gl.placeholder,i}function _l(e,t,r){t=r?n:t;var i=po(e,l,n,n,n,n,n,t);return i.placeholder=_l.placeholder,i}function vl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new We(r);t=Mu(t)||0,ou(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?Dt(Mu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ss(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Mt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=ul();if(v(e))return b(e);l=ss(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Oa(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(ul())}function C(){var e=ul(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Oa(l),l=ss(y,t),h(u)}return l===n&&(l=ss(y,t)),c}return C.cancel=x,C.flush=S,C}var yl=na(function(e,t){return ni(e,1,t)}),bl=na(function(e,t,n){return ni(e,Mu(t)||0,n)});function xl(e){return po(e,m)}function Sl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new We(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Sl.Cache||Tr),n}Sl.Cache=Tr;function Cl(e){if(typeof e!=`function`)throw new We(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function wl(e){return pl(2,e)}var Tl=Ea(function(e,t){t=t.length==1&&Wl(t[0])?an(t[0],Dn(Eo())):an(ui(t,1),Dn(Eo()));var n=t.length;return na(function(r){for(var i=-1,a=Mt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Q(e,this,r)})}),El=na(function(e,t){return po(e,u,n,t,Hn(t,To(El)))}),Dl=na(function(e,t){return po(e,d,n,t,Hn(t,To(Dl)))}),Ol=bo(function(e,t){return po(e,p,n,n,n,t)});function kl(e,t){if(typeof e!=`function`)throw new We(r);return t=t===n?t:Au(t),na(e,t)}function Al(e,t){if(typeof e!=`function`)throw new We(r);return t=t==null?0:Dt(Au(t),0),na(function(n){var r=n[t],i=Da(n,0,t);return r&&on(i,r),Q(e,this,i)})}function jl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new We(r);return ou(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),vl(e,t,{leading:i,maxWait:t,trailing:a})}function Ml(e){return fl(e,1)}function Nl(e,t){return El(wa(t),e)}function Pl(){if(!arguments.length)return[];var e=arguments[0];return Wl(e)?e:[e]}function Fl(e){return $r(e,4)}function Il(e,t){return t=typeof t==`function`?t:n,$r(e,4,t)}function Ll(e){return $r(e,5)}function Rl(e,t){return t=typeof t==`function`?t:n,$r(e,5,t)}function zl(e,t){return t==null||ti(e,t,id(t))}function Bl(e,t){return e===t||e!==e&&t!==t}var Vl=so(yi),Hl=so(function(e,t){return e>=t}),Ul=Ei(function(){return arguments}())?Ei:function(e){return su(e)&&Xe.call(e,`callee`)&&!lt.call(e,`callee`)},Wl=q.isArray,Gl=Kt?Dn(Kt):Di;function Kl(e){return e!=null&&au(e.length)&&!ru(e)}function ql(e){return su(e)&&Kl(e)}function Jl(e){return e===!0||e===!1||su(e)&&vi(e)==E}var Yl=xt||jf,Xl=qt?Dn(qt):Oi;function Zl(e){return su(e)&&e.nodeType===1&&!gu(e)}function Ql(e){if(e==null)return!0;if(Kl(e)&&(Wl(e)||typeof e==`string`||typeof e.splice==`function`||Yl(e)||Su(e)||Ul(e)))return!e.length;var t=No(e);if(t==M||t==F)return!e.size;if(Yo(e))return!Ri(e).length;for(var n in e)if(Xe.call(e,n))return!1;return!0}function $l(e,t){return ki(e,t)}function eu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?ki(e,t,n,r):!!i}function tu(e){if(!su(e))return!1;var t=vi(e);return t==k||t==O||typeof e.message==`string`&&typeof e.name==`string`&&!gu(e)}function nu(e){return typeof e==`number`&&wt(e)}function ru(e){if(!ou(e))return!1;var t=vi(e);return t==A||t==j||t==T||t==re}function iu(e){return typeof e==`number`&&e==Au(e)}function au(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function ou(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function su(e){return typeof e==`object`&&!!e}var cu=Jt?Dn(Jt):ji;function lu(e,t){return e===t||Mi(e,t,Oo(t))}function uu(e,t,r){return r=typeof r==`function`?r:n,Mi(e,t,Oo(t),r)}function du(e){return hu(e)&&e!=+e}function fu(e){if(Jo(e))throw new Be(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ni(e)}function pu(e){return e===null}function mu(e){return e==null}function hu(e){return typeof e==`number`||su(e)&&vi(e)==ee}function gu(e){if(!su(e)||vi(e)!=N)return!1;var t=st(e);if(t===null)return!0;var n=Xe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Ye.call(n)==et}var _u=Z?Dn(Z):Pi;function vu(e){return iu(e)&&e>=-g&&e<=g}var yu=Yt?Dn(Yt):Fi;function bu(e){return typeof e==`string`||!Wl(e)&&su(e)&&vi(e)==I}function xu(e){return typeof e==`symbol`||su(e)&&vi(e)==L}var Su=Xt?Dn(Xt):Ii;function Cu(e){return e===n}function wu(e){return su(e)&&No(e)==z}function Tu(e){return su(e)&&vi(e)==ie}var Eu=so(Bi),Du=so(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(Kl(e))return bu(e)?Jn(e):za(e);if(ft&&e[ft])return zn(e[ft]());var t=No(e);return(t==M?Bn:t==F?Un:Cd)(e)}function ku(e){return e?(e=Mu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Au(e){var t=ku(e),n=t%1;return t===t?n?t-n:t:0}function ju(e){return e?Qr(Au(e),0,y):0}function Mu(e){if(typeof e==`number`)return e;if(xu(e))return v;if(ou(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ou(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=En(e);var n=Ne.test(e);return n||Fe.test(e)?Lt(e.slice(2),n?2:8):Me.test(e)?v:+e}function Nu(e){return Ba(e,ad(e))}function Pu(e){return e?Qr(Au(e),-g,g):e===0?e:0}function Fu(e){return e==null?``:ha(e)}var Iu=Wa(function(e,t){if(Yo(t)||Kl(t))Ba(t,id(t),e);else for(var n in t)Xe.call(t,n)&&Gr(e,n,t[n])}),Lu=Wa(function(e,t){Ba(t,ad(t),e)}),Ru=Wa(function(e,t,n,r){Ba(t,ad(t),e,r)}),zu=Wa(function(e,t,n,r){Ba(t,id(t),e,r)}),Bu=bo(Zr);function Vu(e,t){var n=or(e);return t==null?n:Jr(n,t)}var Hu=na(function(e,t){e=X(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Uo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Bl(d,qe[u])&&!Xe.call(e,u))&&(e[u]=o[u])}return e}),Uu=na(function(e){return e.push(n,ho),Q(ld,n,e)});function Wu(e,t){return pn(e,Eo(t,3),pi)}function Gu(e,t){return pn(e,Eo(t,3),mi)}function Ku(e,t){return e==null?e:di(e,Eo(t,3),ad)}function qu(e,t){return e==null?e:fi(e,Eo(t,3),ad)}function Ju(e,t){return e&&pi(e,Eo(t,3))}function Yu(e,t){return e&&mi(e,Eo(t,3))}function Xu(e){return e==null?[]:hi(e,id(e))}function Zu(e){return e==null?[]:hi(e,ad(e))}function Qu(e,t,r){var i=e==null?n:gi(e,t);return i===n?r:i}function $u(e,t){return e!=null&&Io(e,t,bi)}function ed(e,t){return e!=null&&Io(e,t,xi)}var td=to(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=$e.call(t)),e[t]=n},lf(pf)),nd=to(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=$e.call(t)),Xe.call(e,t)?e[t].push(n):e[t]=[n]},Eo),rd=na(Ti);function id(e){return Kl(e)?Br(e):Ri(e)}function ad(e){return Kl(e)?Br(e,!0):zi(e)}function od(e,t){var n={};return t=Eo(t,3),pi(e,function(e,r,i){Xr(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=Eo(t,3),pi(e,function(e,r,i){Xr(n,r,t(e,r,i))}),n}var cd=Wa(function(e,t,n){Wi(e,t,n)}),ld=Wa(function(e,t,n,r){Wi(e,t,n,r)}),ud=bo(function(e,t){var n={};if(e==null)return n;var r=!1;t=an(t,function(t){return t=Ta(t,e),r||=t.length>1,t}),Ba(e,So(e),n),r&&(n=$r(n,7,go));for(var i=t.length;i--;)_a(n,t[i]);return n});function dd(e,t){return pd(e,Cl(Eo(t)))}var fd=bo(function(e,t){return e==null?{}:Ji(e,t)});function pd(e,t){if(e==null)return{};var n=an(So(e),function(e){return[e]});return t=Eo(t),Yi(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Ta(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[ps(t[i])];o===n&&(i=a,o=r),e=ru(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:aa(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:aa(e,t,r,i)}var _d=fo(id),vd=fo(ad);function yd(e,t,n){var r=Wl(e),i=r||Yl(e)||Su(e);if(t=Eo(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:ou(e)&&ru(a)?or(st(e)):{}}return(i?Qt:pi)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||_a(e,t)}function xd(e,t,n){return e==null?e:va(e,t,wa(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:va(e,t,wa(r),i)}function Cd(e){return e==null?[]:On(e,id(e))}function wd(e){return e==null?[]:On(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Mu(r),r=r===r?r:0),t!==n&&(t=Mu(t),t=t===t?t:0),Qr(Mu(e),t,r)}function Ed(e,t,r){return t=ku(t),r===n?(r=t,t=0):r=ku(r),e=Mu(e),Si(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Uo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ku(e),t===n?(t=e,e=0):t=ku(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Ft();return Mt(e+a*(t-e+It(`1e-`+((a+``).length-1))),t)}return $i(e,t)}var Od=Ya(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Fu(e).toLowerCase())}function Ad(e){return e=Fu(e),e&&e.replace(Le,Nn).replace(Ct,``)}function jd(e,t,r){e=Fu(e),t=ha(t);var i=e.length;r=r===n?i:Qr(Au(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Fu(e),e&&_e.test(e)?e.replace(he,Pn):e}function Nd(e){return e=Fu(e),e&&we.test(e)?e.replace(Ce,`\\$&`):e}var Pd=Ya(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=Ya(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=Ja(`toLowerCase`);function Ld(e,t,n){e=Fu(e),t=Au(t);var r=t?qn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return io(yt(i),n)+e+io(vt(i),n)}function Rd(e,t,n){e=Fu(e),t=Au(t);var r=t?qn(e):0;return t&&r<t?e+io(t-r,n):e}function zd(e,t,n){e=Fu(e),t=Au(t);var r=t?qn(e):0;return t&&r<t?io(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Pt(Fu(e).replace(K,``),t||0)}function Vd(e,t,r){return t=(r?Uo(e,t,r):t===n)?1:Au(t),ta(Fu(e),t)}function Hd(){var e=arguments,t=Fu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=Ya(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Uo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Fu(e),e&&(typeof t==`string`||t!=null&&!_u(t))&&(t=ha(t),!t&&Ln(e))?Da(Jn(e),0,r):e.split(t,r)):[]}var Gd=Ya(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Fu(e),n=n==null?0:Qr(Au(n),0,e.length),t=ha(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=$.templateSettings;r&&Uo(e,t,r)&&(t=n),e=Fu(e),t=zu({},t,i,mo);var a=zu({},t.imports,i.imports,mo),o=id(a),s=On(a,o);Qt(o,function(e){if(Oe.test(e))throw new Be("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||Re,f=`__p += '`,p=He((t.escape||Re).source+`|`+d.source+`|`+(d===ye?Ae:Re).source+`|`+(t.evaluate||Re).source+`|$`,`g`),m=`//# sourceURL=`+(Xe.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++kt+`]`)+`
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(ze,Fn),n&&(c=!0,f+=`' +
__e(`+n+`) +
'`),a&&(l=!0,f+=`';
`+a+`;
__p += '`),r&&(f+=`' +
((__t = (`+r+`)) == null ? '' : __t) +
'`),u=o+t.length,t}),f+=`';
`;var h=Xe.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
`+f+`
}
`;else if(Oe.test(h))throw new Be("Invalid `variable` option passed into `_.template`");f=(l?f.replace(de,``):f).replace(fe,`$1`).replace(pe,`$1;`),f=`function(`+(h||`obj`)+`) {
`+(h?``:`obj || (obj = {});
`)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+f+`return __p
}`;var g=af(function(){return Ve(o,m+`return `+f).apply(n,s)});if(g.source=f,tu(g))throw g;return g}function Jd(e){return Fu(e).toLowerCase()}function Yd(e){return Fu(e).toUpperCase()}function Xd(e,t,r){if(e=Fu(e),e&&(r||t===n))return En(e);if(!e||!(t=ha(t)))return e;var i=Jn(e),a=Jn(t);return Da(i,An(i,a),jn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.slice(0,Yn(e)+1);if(!e||!(t=ha(t)))return e;var i=Jn(e);return Da(i,0,jn(i,Jn(t))+1).join(``)}function Qd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.replace(K,``);if(!e||!(t=ha(t)))return e;var i=Jn(e);return Da(i,An(i,Jn(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(ou(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Au(t.length):r,i=`omission`in t?ha(t.omission):i}e=Fu(e);var o=e.length;if(Ln(e)){var s=Jn(e);o=s.length}if(r>=o)return e;var c=r-qn(i);if(c<1)return i;var l=s?Da(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),_u(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=He(a.source,Fu(je.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ha(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Fu(e),e&&ge.test(e)?e.replace(me,Xn):e}var tf=Ya(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=Ja(`toUpperCase`);function rf(e,t,r){return e=Fu(e),t=r?n:t,t===n?Rn(e)?$n(e):fn(e):e.match(t)||[]}var af=na(function(e,t){try{return Q(e,n,t)}catch(e){return tu(e)?e:new Be(e)}}),of=bo(function(e,t){return Qt(t,function(t){t=ps(t),Xr(e,t,ml(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=Eo();return e=t?an(e,function(e){if(typeof e[1]!=`function`)throw new We(r);return[n(e[0]),e[1]]}):[],na(function(n){for(var r=-1;++r<t;){var i=e[r];if(Q(i[0],this,n))return Q(i[1],this,n)}})}function cf(e){return ei($r(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=$a(),ff=$a(!0);function pf(e){return e}function mf(e){return Li(typeof e==`function`?e:$r(e,1))}function hf(e){return Hi($r(e,1))}function gf(e,t){return Ui(e,$r(t,1))}var _f=na(function(e,t){return function(n){return Ti(n,e,t)}}),vf=na(function(e,t){return function(n){return Ti(e,n,t)}});function yf(e,t,n){var r=id(t),i=hi(t,r);n==null&&(!ou(t)||!i.length&&r.length)&&(n=t,t=e,e=this,i=hi(t,id(t)));var a=!(ou(n)&&`chain`in n)||!!n.chain,o=ru(e);return Qt(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=za(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,on([this.value()],arguments))})}),e}function bf(){return Bt._===this&&(Bt._=tt),this}function xf(){}function Sf(e){return e=Au(e),na(function(t){return Ki(t,e)})}var Cf=ro(an),wf=ro(en),Tf=ro(ln);function Ef(e){return Wo(e)?yn(ps(e)):Xi(e)}function Df(e){return function(t){return e==null?n:gi(e,t)}}var Of=oo(),kf=oo(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Au(e),e<1||e>g)return[];var n=y,r=Mt(e,y);t=Eo(t),e-=y;for(var i=wn(r,t);++n<e;)t(n);return i}function If(e){return Wl(e)?an(e,ps):xu(e)?[e]:za(fs(Fu(e)))}function Lf(e){var t=++Ze;return Fu(e)+t}var Rf=no(function(e,t){return e+t},0),zf=lo(`ceil`),Bf=no(function(e,t){return e/t},1),Vf=lo(`floor`);function Hf(e){return e&&e.length?si(e,pf,yi):n}function Uf(e,t){return e&&e.length?si(e,Eo(t,2),yi):n}function Wf(e){return vn(e,pf)}function Gf(e,t){return vn(e,Eo(t,2))}function Kf(e){return e&&e.length?si(e,pf,Bi):n}function qf(e,t){return e&&e.length?si(e,Eo(t,2),Bi):n}var Jf=no(function(e,t){return e*t},1),Yf=lo(`round`),Xf=no(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Cn(e,pf):0}function Qf(e,t){return e&&e.length?Cn(e,Eo(t,2)):0}return $.after=dl,$.ary=fl,$.assign=Iu,$.assignIn=Lu,$.assignInWith=Ru,$.assignWith=zu,$.at=Bu,$.before=pl,$.bind=ml,$.bindAll=of,$.bindKey=hl,$.castArray=Pl,$.chain=Dc,$.chunk=_s,$.compact=vs,$.concat=ys,$.cond=sf,$.conforms=cf,$.constant=lf,$.countBy=Rc,$.create=Vu,$.curry=gl,$.curryRight=_l,$.debounce=vl,$.defaults=Hu,$.defaultsDeep=Uu,$.defer=yl,$.delay=bl,$.difference=bs,$.differenceBy=xs,$.differenceWith=Ss,$.drop=Cs,$.dropRight=ws,$.dropRightWhile=Ts,$.dropWhile=Es,$.fill=Ds,$.filter=Bc,$.flatMap=Uc,$.flatMapDeep=Wc,$.flatMapDepth=Gc,$.flatten=As,$.flattenDeep=js,$.flattenDepth=Ms,$.flip=xl,$.flow=df,$.flowRight=ff,$.fromPairs=Ns,$.functions=Xu,$.functionsIn=Zu,$.groupBy=Jc,$.initial=Is,$.intersection=Ls,$.intersectionBy=Rs,$.intersectionWith=zs,$.invert=td,$.invertBy=nd,$.invokeMap=Xc,$.iteratee=mf,$.keyBy=Zc,$.keys=id,$.keysIn=ad,$.map=Qc,$.mapKeys=od,$.mapValues=sd,$.matches=hf,$.matchesProperty=gf,$.memoize=Sl,$.merge=cd,$.mergeWith=ld,$.method=_f,$.methodOf=vf,$.mixin=yf,$.negate=Cl,$.nthArg=Sf,$.omit=ud,$.omitBy=dd,$.once=wl,$.orderBy=$c,$.over=Cf,$.overArgs=Tl,$.overEvery=wf,$.overSome=Tf,$.partial=El,$.partialRight=Dl,$.partition=el,$.pick=fd,$.pickBy=pd,$.property=Ef,$.propertyOf=Df,$.pull=Ws,$.pullAll=Gs,$.pullAllBy=Ks,$.pullAllWith=qs,$.pullAt=Js,$.range=Of,$.rangeRight=kf,$.rearg=Ol,$.reject=rl,$.remove=Ys,$.rest=kl,$.reverse=Xs,$.sampleSize=al,$.set=hd,$.setWith=gd,$.shuffle=ol,$.slice=Zs,$.sortBy=ll,$.sortedUniq=ic,$.sortedUniqBy=ac,$.split=Wd,$.spread=Al,$.tail=oc,$.take=sc,$.takeRight=cc,$.takeRightWhile=lc,$.takeWhile=uc,$.tap=Oc,$.throttle=jl,$.thru=kc,$.toArray=Ou,$.toPairs=_d,$.toPairsIn=vd,$.toPath=If,$.toPlainObject=Nu,$.transform=yd,$.unary=Ml,$.union=dc,$.unionBy=fc,$.unionWith=pc,$.uniq=mc,$.uniqBy=hc,$.uniqWith=gc,$.unset=bd,$.unzip=_c,$.unzipWith=vc,$.update=xd,$.updateWith=Sd,$.values=Cd,$.valuesIn=wd,$.without=yc,$.words=rf,$.wrap=Nl,$.xor=bc,$.xorBy=xc,$.xorWith=Sc,$.zip=Cc,$.zipObject=wc,$.zipObjectDeep=Tc,$.zipWith=Ec,$.entries=_d,$.entriesIn=vd,$.extend=Lu,$.extendWith=Ru,yf($,$),$.add=Rf,$.attempt=af,$.camelCase=Od,$.capitalize=kd,$.ceil=zf,$.clamp=Td,$.clone=Fl,$.cloneDeep=Ll,$.cloneDeepWith=Rl,$.cloneWith=Il,$.conformsTo=zl,$.deburr=Ad,$.defaultTo=uf,$.divide=Bf,$.endsWith=jd,$.eq=Bl,$.escape=Md,$.escapeRegExp=Nd,$.every=zc,$.find=Vc,$.findIndex=Os,$.findKey=Wu,$.findLast=Hc,$.findLastIndex=ks,$.findLastKey=Gu,$.floor=Vf,$.forEach=Kc,$.forEachRight=qc,$.forIn=Ku,$.forInRight=qu,$.forOwn=Ju,$.forOwnRight=Yu,$.get=Qu,$.gt=Vl,$.gte=Hl,$.has=$u,$.hasIn=ed,$.head=Ps,$.identity=pf,$.includes=Yc,$.indexOf=Fs,$.inRange=Ed,$.invoke=rd,$.isArguments=Ul,$.isArray=Wl,$.isArrayBuffer=Gl,$.isArrayLike=Kl,$.isArrayLikeObject=ql,$.isBoolean=Jl,$.isBuffer=Yl,$.isDate=Xl,$.isElement=Zl,$.isEmpty=Ql,$.isEqual=$l,$.isEqualWith=eu,$.isError=tu,$.isFinite=nu,$.isFunction=ru,$.isInteger=iu,$.isLength=au,$.isMap=cu,$.isMatch=lu,$.isMatchWith=uu,$.isNaN=du,$.isNative=fu,$.isNil=mu,$.isNull=pu,$.isNumber=hu,$.isObject=ou,$.isObjectLike=su,$.isPlainObject=gu,$.isRegExp=_u,$.isSafeInteger=vu,$.isSet=yu,$.isString=bu,$.isSymbol=xu,$.isTypedArray=Su,$.isUndefined=Cu,$.isWeakMap=wu,$.isWeakSet=Tu,$.join=Bs,$.kebabCase=Pd,$.last=Vs,$.lastIndexOf=Hs,$.lowerCase=Fd,$.lowerFirst=Id,$.lt=Eu,$.lte=Du,$.max=Hf,$.maxBy=Uf,$.mean=Wf,$.meanBy=Gf,$.min=Kf,$.minBy=qf,$.stubArray=Af,$.stubFalse=jf,$.stubObject=Mf,$.stubString=Nf,$.stubTrue=Pf,$.multiply=Jf,$.nth=Us,$.noConflict=bf,$.noop=xf,$.now=ul,$.pad=Ld,$.padEnd=Rd,$.padStart=zd,$.parseInt=Bd,$.random=Dd,$.reduce=tl,$.reduceRight=nl,$.repeat=Vd,$.replace=Hd,$.result=md,$.round=Yf,$.runInContext=e,$.sample=il,$.size=sl,$.snakeCase=Ud,$.some=cl,$.sortedIndex=Qs,$.sortedIndexBy=$s,$.sortedIndexOf=ec,$.sortedLastIndex=tc,$.sortedLastIndexBy=nc,$.sortedLastIndexOf=rc,$.startCase=Gd,$.startsWith=Kd,$.subtract=Xf,$.sum=Zf,$.sumBy=Qf,$.template=qd,$.times=Ff,$.toFinite=ku,$.toInteger=Au,$.toLength=ju,$.toLower=Jd,$.toNumber=Mu,$.toSafeInteger=Pu,$.toString=Fu,$.toUpper=Yd,$.trim=Xd,$.trimEnd=Zd,$.trimStart=Qd,$.truncate=$d,$.unescape=ef,$.uniqueId=Lf,$.upperCase=tf,$.upperFirst=nf,$.each=Kc,$.eachRight=qc,$.first=Ps,yf($,function(){var e={};return pi($,function(t,n){Xe.call($.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),$.VERSION=`4.18.1`,Qt([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){$[e].placeholder=$}),Qt([`drop`,`take`],function(e,t){lr.prototype[e]=function(r){r=r===n?1:Dt(Au(r),0);var i=this.__filtered__&&!t?new lr(this):this.clone();return i.__filtered__?i.__takeCount__=Mt(r,i.__takeCount__):i.__views__.push({size:Mt(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},lr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Qt([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;lr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Eo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Qt([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);lr.prototype[e]=function(){return this[n](1).value()[0]}}),Qt([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);lr.prototype[e]=function(){return this.__filtered__?new lr(this):this[n](1)}}),lr.prototype.compact=function(){return this.filter(pf)},lr.prototype.find=function(e){return this.filter(e).head()},lr.prototype.findLast=function(e){return this.reverse().find(e)},lr.prototype.invokeMap=na(function(e,t){return typeof e==`function`?new lr(this):this.map(function(n){return Ti(n,e,t)})}),lr.prototype.reject=function(e){return this.filter(Cl(Eo(e)))},lr.prototype.slice=function(e,t){e=Au(e);var r=this;return r.__filtered__&&(e>0||t<0)?new lr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Au(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},lr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lr.prototype.toArray=function(){return this.take(y)},pi(lr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=$[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&($.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof lr,l=s[0],u=c||Wl(t),d=function(e){var t=a.apply($,on([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new lr(this);var g=e.apply(t,s);return g.__actions__.push({func:kc,args:[d],thisArg:n}),new cr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Qt([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Ge[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);$.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wl(i)?i:[],e)}return this[n](function(n){return t.apply(Wl(n)?n:[],e)})}}),pi(lr.prototype,function(e,t){var n=$[t];if(n){var r=n.name+``;Xe.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}}),bn[eo(n,s).name]=[{name:`wrapper`,func:n}],lr.prototype.clone=ur,lr.prototype.reverse=dr,lr.prototype.value=fr,$.prototype.at=Ac,$.prototype.chain=jc,$.prototype.commit=Mc,$.prototype.next=Nc,$.prototype.plant=Fc,$.prototype.reverse=Ic,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=Lc,$.prototype.first=$.prototype.head,ft&&($.prototype[ft]=Pc),$})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Bt._=er,define(function(){return er})):Ht?((Ht.exports=er)._=er,Vt._=er):Bt._=er}).call(n)})),si=/* @__PURE__ */ e.t(((e,t)=>{let n=Object.keys,r=e=>Object.prototype.toString.call(e),i=e=>r(e).slice(8,-1).toLowerCase(),a=e=>typeof e==`string`||i(e)===`string`;function o(e){if(i(e)!==`object`)return!1;let t=Object.getPrototypeOf(e);return t==null||(t.constructor&&t.constructor.toString())===Object.toString()}function s(e,t,n=null){for(let[r,i]of e.entries())if(t.call(n,i,r,e)===!1)return!1;return!0}function c(e,t){let r={};for(let i of n(e)){let n=e[i];r[i]=t(n,i,e)}return r}t.exports={isArrayOf:s,getType:i,isString:a,isPlainObject:o,map:c}})),ci=/* @__PURE__ */ e.t(((e,t)=>{let{isString:n,getType:r,isPlainObject:i,isArrayOf:a,map:o}=si(),s=Array.isArray,c=e=>!/.+(Sync|Stream|Promise)$/.test(e);function l(e,t=null){if(typeof e!=`function`)throw TypeError(`Expected target function. Received ${r(e)}`);return function(...n){return t||=this,new Promise((r,i)=>{let a=(e,t)=>e?i(e):r(t);e.call(t,...n,a)})}}function u(e,t){if(!i(e))throw TypeError(`Expected a plain object as targets. Received ${r(e)}`);return o(e,(e,n)=>c(n)?l(e,t):e)}function d(e,t,u){if(!i(e))throw TypeError(`Expected a plain object as targets. Received ${r(e)}`);if(!s(t))throw TypeError(`Expected list as an array. Received ${r(t)}`);if(!a(t,n))throw TypeError(`Each element in the list should be a string.`);return o(e,(e,n)=>c(n)&&t.includes(n)?l(e,u):e)}function f(e,t,u){if(!i(e))throw TypeError(`Expected a plain object as targets. Received ${r(e)}`);if(!s(t))throw TypeError(`Expected list as an array. Received ${r(t)}`);if(!a(t,n))throw TypeError(`Each element in the list should be a string.`);return o(e,(e,n)=>c(n)&&!t.includes(n)?l(e,u):e)}t.exports=l,t.exports.default=l,t.exports.all=u,t.exports.some=d,t.exports.except=f})),li=/* @__PURE__ */ e.t(((e,t)=>{let n=require("fs"),r=ci(),i=e=>typeof e==`function`,a=r.some(n,(/* @__PURE__ */ `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`.split(`.`)).filter(e=>i(n[e])));t.exports=a,t.exports.default=a})),ui=/* @__PURE__ */ e.t(((e,t)=>{t.exports=o,t.exports.sync=s;var r=li(),i=require("path"),a=n.n()(`snyk:resolve`);function o(e,t){t||=process.cwd();var n=i.resolve(t,`node_modules`,e,`package.json`);return a(`%s: %s`,e,n),r.stat(n).then(function(e){if(e.isFile())return i.dirname(n)}).catch(function(n){if(a(`%s: not found on %s (root? %s)`,e,t,c(t)),c(t))throw a(`at root`),n=/* @__PURE__ */ Error(`package not found `+e),n.code=`NO_PACKAGE_FOUND`,n}).then(function(n){return n?(a(`%s: FOUND AT %s`,e,n),n):(a(`%s: cycling down`,e),o(e,i.resolve(t,`..`)))})}function s(e,t){t||=process.cwd();var n=i.resolve(t,`node_modules`,e,`package.json`);if(a(`%s: %s`,e,n),function(e){var t;try{t=r.statSync(e)}catch(e){if(e&&e.code===`ENOENT`)return!1}return t.isFile()||t.isFIFO()}(n))return a(`%s: FOUND AT %s`,e,n),i.dirname(n);if(c(t)){a(`%s: not found on %s (now at root)`,e,n);var o=/* @__PURE__ */ Error(`package not found `+e);throw o.code=`NO_PACKAGE_FOUND`,o}return a(`%s: cycling down`,e),s(e,i.resolve(t,`..`))}function c(e){var t=l(e);return t.root===t.dir&&!t.base}function l(e){
/* istanbul ignore else  */
if(i.parse)return i.parse(e);var t=e.split(i.sep),n=t[0]+i.sep;return{base:t[1],root:n,dir:e}}})),di=/* @__PURE__ */ e.t(((e,t)=>{t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}})),fi=/* @__PURE__ */ e.t(((e,t)=>{t.exports=n,n.Node=o,n.create=n;function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}n.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.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||=e,this.length++}},n.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||=e,this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.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}},n.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}},n.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},n.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},n.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},n.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},n.prototype.map=function(e,t){t||=this;for(var r=new n,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t||=this;for(var r=new n,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t){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 a=[],n=0;i&&n<t;n++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=2;n<arguments.length;n++)i=r(this,i,arguments[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function r(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function i(e,t){e.tail=new o(t,e.tail,null,e),e.head||=e.tail,e.length++}function a(e,t){e.head=new o(t,null,e.head,e),e.tail||=e.head,e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{di()(n)}catch{}})),pi=/* @__PURE__ */ e.t(((e,t)=>{let n=fi(),r=Symbol(`max`),i=Symbol(`length`),a=Symbol(`lengthCalculator`),o=Symbol(`allowStale`),s=Symbol(`maxAge`),c=Symbol(`dispose`),l=Symbol(`noDisposeOnSet`),u=Symbol(`lruList`),d=Symbol(`cache`),f=Symbol(`updateAgeOnGet`),p=()=>1;var m=class{constructor(e){if(typeof e==`number`&&(e={max:e}),e||={},e.max&&(typeof e.max!=`number`||e.max<0))throw TypeError(`max must be a non-negative number`);this[r]=e.max||1/0;let t=e.length||p;if(this[a]=typeof t==`function`?t:p,this[o]=e.stale||!1,e.maxAge&&typeof e.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[s]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[r]=e||1/0,_(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[s]=e,_(this)}get maxAge(){return this[s]}set lengthCalculator(e){typeof e!=`function`&&(e=p),e!==this[a]&&(this[a]=e,this[i]=0,this[u].forEach(e=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),_(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t||=this;for(let n=this[u].tail;n!==null;){let r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t||=this;for(let n=this[u].head;n!==null;){let r=n.next;b(this,e,n,t),n=r}}keys(){return this[u].toArray().map(e=>e.key)}values(){return this[u].toArray().map(e=>e.value)}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach(e=>this[c](e.key,e.value)),this[d]=/* @__PURE__ */ new Map,this[u]=new n,this[i]=0}dump(){return this[u].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[u]}set(e,t,n){if(n||=this[s],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);let o=n?Date.now():0,f=this[a](t,e);if(this[d].has(e)){if(f>this[r])return v(this,this[d].get(e)),!1;let a=this[d].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=o,a.maxAge=n,a.value=t,this[i]+=f-a.length,a.length=f,this.get(e),_(this),!0}let p=new y(e,t,f,o,n);return p.length>this[r]?(this[c]&&this[c](e,t),!1):(this[i]+=p.length,this[u].unshift(p),this[d].set(e,this[u].head),_(this),!0)}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!g(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>h(this,t,!1))}};let h=(e,t,n)=>{let r=e[d].get(t);if(r){let t=r.value;if(g(e,t)){if(v(e,r),!e[o])return}else n&&(e[f]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},_=e=>{if(e[i]>e[r])for(let t=e[u].tail;e[i]>e[r]&&t!==null;){let n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){let n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[d].delete(n.key),e[u].removeNode(t)}};var y=class{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}};let b=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};t.exports=m})),mi=/* @__PURE__ */ e.t(((e,t)=>{t.exports=u;let r=require("fs"),i=require("util"),a=require("path"),o=n.n()(`snyk:resolve:try-require`),s=bt(),c=new(pi())({max:100,maxAge:36e5}),l={readFile:i.promisify(r.readFile),stat:i.promisify(r.stat)};t.exports.cache=c;function u(e){let t=c.get(e);if(t){let e=s(t);return process.env.TAP&&(e.__cached=!0),Promise.resolve(e)}return l.readFile(e,`utf8`).then(function(e){let t=``;e&&e[0]===``&&(e=e.slice(1),t=``);let n=JSON.parse(e);return n.leading=t+e.match(/^(\s*){/)[1],n.trailing=e.match(/}(\s*)$/)[1],n}).catch(function(e){return o(`tryRequire silently failing on %s`,e.message),null}).then(function(t){if(!t)return t;t.devDependencies||={},t.dependencies||={},t.name||=a.basename(a.dirname(e)),t.__filename=e;let n=a.dirname(e),r=[l.stat(a.resolve(n,`.snyk`)).catch(d),l.stat(a.resolve(n,`npm-shrinkwrap.json`)).catch(d)];return Promise.all(r).then(function(e){return t.snyk||=e[0].isFile(),t.snyk&&=n,e[1].isFile()&&(t.shrinkwrap=!0),t})}).then(function(t){return c.set(e,t),s(t)})}let d=function(){return{isFile:function(){return!1}}}})),hi=/* @__PURE__ */ e.t(((e,t,r)=>{var i=r&&r.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};let a=Jr(),o=ai(),s=oi(),c=oi(),l=oi(),u=oi(),d=oi(),f=n.n(),p=require("path"),m=require("semver"),h=ui(),g=mi(),_=f(`snyk:resolve:deps`);function v(e,t,n){n&&n.length&&n.forEach(function(n){(0,c.set)(t,n,(0,s.get)(e,n)||null)})}function y(e,t,n){return i(this,void 0,void 0,function*(){g.cache.reset();let r=(0,l.clone)(n||{}),i=e;if(r.file){let e=p.parse(r.file);i=p.resolve(i,e.dir),r.file=e.base}let o=yield b(i,t||null,null,r),s=[];return o.__dependencies&&Object.keys(o.__dependencies).forEach(function(e){o.dependencies[e]||s.push(h(e,i).then(function(t){return b(t,a.PROD,{__from:[o.name+`@`+o.version,e]})}).catch(function(e){if(e.code===`NO_PACKAGE_FOUND`)return!1}))}),s.length?Promise.all(s).then(function(e){return e.filter(Boolean).forEach(function(e){e.dep=o.__dependencies[e.name],o.dependencies[e.name]=e}),o}):o})}function b(e,t,n,r){if(r||={},t||=a.EXTRANEOUS,typeof e!=`string`)return Promise.reject(/* @__PURE__ */ Error(`module path must be a string`));let i={},s=p.resolve(e,r.file||`package.json`);return g(s).then(function(c){if(c){let e=c.name+`@`+(c.version||`0.0.0`);i={},v(c,i,r.extraFields),(0,u.assign)(i,{name:c.name,version:c.version||null,license:c.license||`none`,depType:t,hasDevDependencies:!!c.devDependencies,full:e,__from:(n||{__from:[]}).__from,__devDependencies:c.devDependencies,__dependencies:c.dependencies,__optionalDependencies:c.optionalDependencies,__bundleDependencies:c.bundleDependencies,__filename:c.__filename}),c.__from=i.__from.concat(e),c.full=i.full,!c.shrinkwrap&&n&&n.shrinkwrap?c.shrinkwrap=n.shrinkwrap:c.shrinkwrap&&=c.full,i.__from.length===0&&i.__from.push(e)}else throw Error(s+` is not a node project`);return i.dependencies={},o.readdir(p.resolve(e,`node_modules`)).then(function(n){let s=n.map(function(t){return[`.bin`,`.DS_Store`,`~`].indexOf(t)>=0?null:t.indexOf(`@`)===0?(_(`scoped reset on %s`,t),t=p.resolve(e,`node_modules`,t),o.readdir(t).then(function(e){return Promise.all(e.map(function(e){return g(p.resolve(t,e,`package.json`))}))})):(t=p.resolve(e,`node_modules`,t),o.realpath(t).then(function(n){return n===e?null:g(p.resolve(t,`package.json`))}))});return Promise.all(s).then(function(e){return e=(0,d.flatten)(e).filter(Boolean),e.reduce(function(e,n){let i,o=n.license||n.licenses;i=Array.isArray(o)?o.reduce(function(e,t){return e.push((t||{}).type||t),e},[]).join(`/`):(o||{}).type||o;let s=a(n.name,c),l=s.type||t,d=s.from,f=!1;d&&(f=m.satisfies(n.version,d));let p=n.name+`@`+(n.version||`0.0.0`);return e[n.name]={},v(n,e[n.name],r.extraFields),(0,u.assign)(e[n.name],{name:n.name,version:n.version||null,full:p,valid:f,depType:l,snyk:n.snyk,license:i||`none`,dep:d||null,__from:c.__from.concat(p),__devDependencies:n.devDependencies,__dependencies:n.dependencies,__optionalDependencies:n.optionalDependencies,__bundleDependencies:n.bundleDependencies,__filename:n.__filename}),s.bundled&&(e[n.name].bundled=e[n.name].__from.slice(0)),c.shrinkwrap&&(e[n.name].shrinkwrap=c.shrinkwrap),e},i.dependencies),i})}).then(function(e){let t=Object.keys(e.dependencies).map(function(t){let n=e.dependencies[t].depType;return b(p.dirname(e.dependencies[t].__filename),n,c)});return Promise.all(t).then(function(t){return t.forEach(function(t){e.dependencies[t.name].dependencies=t.dependencies}),e})}).catch(function(e){
/* istanbul ignore else  */
if(e.code===`ENOENT`)return i.dependencies={},i;
/* istanbul ignore next */
throw e})})}t.exports=y})),gi=/* @__PURE__ */ e.t(((e,t)=>{let n=(...e)=>e.every(e=>e)?e.join(``):``,r=e=>e?encodeURIComponent(e):``,i={sshtemplate:({domain:e,user:t,project:r,committish:i})=>`git@${e}:${t}/${r}.git${n(`#`,i)}`,sshurltemplate:({domain:e,user:t,project:r,committish:i})=>`git+ssh://git@${e}/${t}/${r}.git${n(`#`,i)}`,browsetemplate:({domain:e,user:t,project:i,committish:a,treepath:o})=>`https://${e}/${t}/${i}${n(`/`,o,`/`,r(a))}`,browsefiletemplate:({domain:e,user:t,project:i,committish:a,treepath:o,path:s,fragment:c,hashformat:l})=>`https://${e}/${t}/${i}/${o}/${r(a||`master`)}/${s}${n(`#`,l(c||``))}`,docstemplate:({domain:e,user:t,project:i,treepath:a,committish:o})=>`https://${e}/${t}/${i}${n(`/`,a,`/`,r(o))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:i,committish:a})=>`git+https://${n(e,`@`)}${t}/${r}/${i}.git${n(`#`,a)}`,filetemplate:({domain:e,user:t,project:n,committish:i,path:a})=>`https://${e}/${t}/${n}/raw/${r(i)||`master`}/${a}`,shortcuttemplate:({type:e,user:t,project:r,committish:i})=>`${e}:${t}/${r}${n(`#`,i)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${n(`#`,r)}`,bugstemplate:({domain:e,user:t,project:n})=>`https://${e}/${t}/${n}/issues`,hashformat:s},a={};a.github=Object.assign({},i,{protocols:[`git:`,`http:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`github.com`,treepath:`tree`,filetemplate:({auth:e,user:t,project:i,committish:a,path:o})=>`https://${n(e,`@`)}raw.githubusercontent.com/${t}/${i}/${r(a)||`master`}/${o}`,gittemplate:({auth:e,domain:t,user:r,project:i,committish:a})=>`git://${n(e,`@`)}${t}/${r}/${i}.git${n(`#`,a)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://codeload.${e}/${t}/${n}/tar.gz/${r(i)||`master`}`,extract:e=>{let[,t,n,r,i]=e.pathname.split(`/`,5);if(!(r&&r!==`tree`)&&(r||(i=e.hash.slice(1)),n&&n.endsWith(`.git`)&&(n=n.slice(0,-4)),t&&n))return{user:t,project:n,committish:i}}}),a.bitbucket=Object.assign({},i,{protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`bitbucket.org`,treepath:`src`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/get/${r(i)||`master`}.tar.gz`,extract:e=>{let[,t,n,r]=e.pathname.split(`/`,4);if(![`get`].includes(r)&&(n&&n.endsWith(`.git`)&&(n=n.slice(0,-4)),t&&n))return{user:t,project:n,committish:e.hash.slice(1)}}}),a.gitlab=Object.assign({},i,{protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gitlab.com`,treepath:`tree`,httpstemplate:({auth:e,domain:t,user:r,project:i,committish:a})=>`git+https://${n(e,`@`)}${t}/${r}/${i}.git${n(`#`,a)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/repository/archive.tar.gz?ref=${r(i)||`master`}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes(`/-/`)||t.includes(`/archive.tar.gz`))return;let n=t.split(`/`),r=n.pop();r.endsWith(`.git`)&&(r=r.slice(0,-4));let i=n.join(`/`);if(i&&r)return{user:i,project:r,committish:e.hash.slice(1)}}}),a.gist=Object.assign({},i,{protocols:[`git:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gist.github.com`,sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${n(`#`,r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${n(`#`,r)}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${n(`/`,r(i))}`,browsefiletemplate:({domain:e,project:t,committish:i,path:a,hashformat:o})=>`https://${e}/${t}${n(`/`,r(i))}${n(`#`,o(a))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${n(`/`,r(i))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${n(`#`,r)}`,filetemplate:({user:e,project:t,committish:i,path:a})=>`https://gist.githubusercontent.com/${e}/${t}/raw${n(`/`,r(i))}/${a}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${n(`#`,r)}`,pathtemplate:({project:e,committish:t})=>`${e}${n(`#`,t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${n(`#`,r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${r(t)||`master`}`,extract:e=>{let[,t,n,r]=e.pathname.split(`/`,4);if(r!==`raw`){if(!n){if(!t)return;n=t,t=null}return n.endsWith(`.git`)&&(n=n.slice(0,-4)),{user:t,project:n,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&`file-`+s(e)}}),a.sourcehut=Object.assign({},i,{protocols:[`git+ssh:`,`https:`],domain:`git.sr.ht`,treepath:`tree`,browsefiletemplate:({domain:e,user:t,project:i,committish:a,treepath:o,path:s,fragment:c,hashformat:l})=>`https://${e}/${t}/${i}/${o}/${r(a||`main`)}/${s}${n(`#`,l(c||``))}`,filetemplate:({domain:e,user:t,project:n,committish:i,path:a})=>`https://${e}/${t}/${n}/blob/${r(i)||`main`}/${a}`,httpstemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}.git${n(`#`,i)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/archive/${r(i)||`main`}.tar.gz`,bugstemplate:({domain:e,user:t,project:n})=>`https://todo.sr.ht/${t}/${n}`,docstemplate:({domain:e,user:t,project:i,treepath:a,committish:o})=>`https://${e}/${t}/${i}${n(`/`,a,`/`,r(o))}#readme`,extract:e=>{let[,t,n,r]=e.pathname.split(`/`,4);if(![`archive`].includes(r)&&(n&&n.endsWith(`.git`)&&(n=n.slice(0,-4)),t&&n))return{user:t,project:n,committish:e.hash.slice(1)}}});let o=Object.keys(a);a.byShortcut={},a.byDomain={};for(let e of o)a.byShortcut[`${e}:`]=e,a.byDomain[a[e].domain]=e;function s(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,``).replace(/\W+/g,`-`)}t.exports=a})),_i=/* @__PURE__ */ e.t(((e,t)=>{let n=gi();t.exports=class{constructor(e,t,r,i,a,o,s={}){Object.assign(this,n[e]),this.type=e,this.user=t,this.auth=r,this.project=i,this.committish=a,this.default=o,this.opts=s}hash(){return this.committish?`#${this.committish}`:``}ssh(e){return this._fill(this.sshtemplate,e)}_fill(e,t){if(typeof e==`function`){let n={...this,...this.opts,...t};n.path||=``,n.path.startsWith(`/`)&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let r=e(n);return n.noGitPlus&&r.startsWith(`git+`)?r.slice(4):r}return null}sshurl(e){return this._fill(this.sshurltemplate,e)}browse(e,t,n){return typeof e==`string`?(typeof t!=`string`&&(n=t,t=null),this._fill(this.browsefiletemplate,{...n,fragment:t,path:e})):this._fill(this.browsetemplate,e)}docs(e){return this._fill(this.docstemplate,e)}bugs(e){return this._fill(this.bugstemplate,e)}https(e){return this._fill(this.httpstemplate,e)}git(e){return this._fill(this.gittemplate,e)}shortcut(e){return this._fill(this.shortcuttemplate,e)}path(e){return this._fill(this.pathtemplate,e)}tarball(e){return this._fill(this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return this._fill(this.filetemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]==`function`?this[this.default](e):this.sshurl(e)}}})),vi=/* @__PURE__ */ e.t(((e,t)=>{t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}})),yi=/* @__PURE__ */ e.t(((e,t)=>{t.exports=n,n.Node=o,n.create=n;function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}n.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.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||=e,this.length++}},n.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||=e,this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.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}},n.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}},n.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},n.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},n.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},n.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},n.prototype.map=function(e,t){t||=this;for(var r=new n,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t||=this;for(var r=new n,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(var o=[],i=0;a&&i<t;i++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var i=0;i<n.length;i++)a=r(this,a,n[i]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function r(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function i(e,t){e.tail=new o(t,e.tail,null,e),e.head||=e.tail,e.length++}function a(e,t){e.head=new o(t,null,e.head,e),e.tail||=e.head,e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{vi()(n)}catch{}})),bi=/* @__PURE__ */ e.t(((e,t)=>{let n=yi(),r=Symbol(`max`),i=Symbol(`length`),a=Symbol(`lengthCalculator`),o=Symbol(`allowStale`),s=Symbol(`maxAge`),c=Symbol(`dispose`),l=Symbol(`noDisposeOnSet`),u=Symbol(`lruList`),d=Symbol(`cache`),f=Symbol(`updateAgeOnGet`),p=()=>1;var m=class{constructor(e){if(typeof e==`number`&&(e={max:e}),e||={},e.max&&(typeof e.max!=`number`||e.max<0))throw TypeError(`max must be a non-negative number`);this[r]=e.max||1/0;let t=e.length||p;if(this[a]=typeof t==`function`?t:p,this[o]=e.stale||!1,e.maxAge&&typeof e.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[s]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[r]=e||1/0,_(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[s]=e,_(this)}get maxAge(){return this[s]}set lengthCalculator(e){typeof e!=`function`&&(e=p),e!==this[a]&&(this[a]=e,this[i]=0,this[u].forEach(e=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),_(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t||=this;for(let n=this[u].tail;n!==null;){let r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t||=this;for(let n=this[u].head;n!==null;){let r=n.next;b(this,e,n,t),n=r}}keys(){return this[u].toArray().map(e=>e.key)}values(){return this[u].toArray().map(e=>e.value)}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach(e=>this[c](e.key,e.value)),this[d]=/* @__PURE__ */ new Map,this[u]=new n,this[i]=0}dump(){return this[u].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[u]}set(e,t,n){if(n||=this[s],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);let o=n?Date.now():0,f=this[a](t,e);if(this[d].has(e)){if(f>this[r])return v(this,this[d].get(e)),!1;let a=this[d].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=o,a.maxAge=n,a.value=t,this[i]+=f-a.length,a.length=f,this.get(e),_(this),!0}let p=new y(e,t,f,o,n);return p.length>this[r]?(this[c]&&this[c](e,t),!1):(this[i]+=p.length,this[u].unshift(p),this[d].set(e,this[u].head),_(this),!0)}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!g(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>h(this,t,!1))}};let h=(e,t,n)=>{let r=e[d].get(t);if(r){let t=r.value;if(g(e,t)){if(v(e,r),!e[o])return}else n&&(e[f]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},_=e=>{if(e[i]>e[r])for(let t=e[u].tail;e[i]>e[r]&&t!==null;){let n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){let n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[d].delete(n.key),e[u].removeNode(t)}};var y=class{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}};let b=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};t.exports=m})),xi=/* @__PURE__ */ e.t(((e,t)=>{let n=require("url"),r=gi(),i=t.exports=_i(),a=new(bi())({max:1e3}),o={"git+ssh:":`sshurl`,"git+https:":`https`,"ssh:":`sshurl`,"git:":`git`};function s(e){return o[e]||e.slice(0,-1)}let c={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},l=Object.keys(r.byShortcut).concat([`http:`,`https:`,`git:`,`git+ssh:`,`git+https:`,`ssh:`]);t.exports.fromUrl=function(e,t){if(typeof e!=`string`)return;let n=e+JSON.stringify(t||{});return a.has(n)||a.set(n,u(e,t)),a.get(n)};function u(e,t){if(!e)return;let n=f(e)?`github:`+e:d(e),a=m(n);if(!a)return a;let o=r.byShortcut[a.protocol],l=r.byDomain[a.hostname.startsWith(`www.`)?a.hostname.slice(4):a.hostname],u=o||l;if(!u)return;let p=r[o||l],h=null;c[a.protocol]&&(a.username||a.password)&&(h=`${a.username}${a.password?`:`+a.password:``}`);let g=null,_=null,v=null,y=null;try{if(o){let e=a.pathname.startsWith(`/`)?a.pathname.slice(1):a.pathname,t=e.indexOf(`@`);t>-1&&(e=e.slice(t+1));let n=e.lastIndexOf(`/`);n>-1?(_=decodeURIComponent(e.slice(0,n)),_||=null,v=decodeURIComponent(e.slice(n+1))):v=decodeURIComponent(e),v.endsWith(`.git`)&&(v=v.slice(0,-4)),a.hash&&(g=decodeURIComponent(a.hash.slice(1))),y=`shortcut`}else{if(!p.protocols.includes(a.protocol))return;let e=p.extract(a);if(!e)return;_=e.user&&decodeURIComponent(e.user),v=decodeURIComponent(e.project),g=decodeURIComponent(e.committish),y=s(a.protocol)}}catch(e){
/* istanbul ignore else */
if(e instanceof URIError)return;throw e}return new i(u,_,h,v,g,y,t)}let d=e=>{let t=e.indexOf(`:`),n=e.slice(0,t+1);if(l.includes(n))return e;let r=e.indexOf(`@`);return r>-1?r>t?`git+ssh://${e}`:e:e.indexOf(`//`)===t+1?e:e.slice(0,t+1)+`//`+e.slice(t+1)},f=e=>{let t=e.indexOf(`#`),n=e.indexOf(`/`),r=e.indexOf(`/`,n+1),i=e.indexOf(`:`),a=/\s/.exec(e),o=e.indexOf(`@`),s=!a||t>-1&&a.index>t,c=o===-1||t>-1&&o>t,l=i===-1||t>-1&&i>t,u=r===-1||t>-1&&r>t,d=n>0,f=t>-1?e[t-1]!==`/`:!e.endsWith(`/`),p=!e.startsWith(`.`);return s&&d&&f&&p&&c&&l&&u},p=e=>{let t=e.indexOf(`@`),n=e.lastIndexOf(`#`),r=e.indexOf(`:`),i=e.lastIndexOf(`:`,n>-1?n:1/0),a;return i>t&&(a=e.slice(0,i)+`/`+e.slice(i+1),r=a.indexOf(`:`),i=a.lastIndexOf(`:`)),r===-1&&e.indexOf(`//`)===-1&&(a=`git+ssh://${a}`),a},m=e=>{let t;try{t=new n.URL(e)}catch{}if(t)return t;let r=p(e);try{t=new n.URL(r)}catch{}return t}})),Si=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encode=e.parsePackageString=void 0;let t=n.n()(`snyk:module`),r=xi();t.log=console.error.bind(console),e.default=i;function i(e,n,r){if(!e)throw Error(`requires string to parse into module`);let i;n&&!r&&typeof n==`object`?r=n:i=n;let s=e;if(!i&&/^(?:(?:[a-z-]+)|(?:@[a-z-]+\/[a-z-]+)|(?:[a-z-]+\.[.a-z-]+:[a-z-]+))$/.test(s))return c(s,{name:s,version:`*`},r);i&&s.lastIndexOf(`@`)<1&&(t(`appending version onto string`),s+=`@`+i);let l=a(s);if(l)return c(s,o(l),r);let u=s.split(`@`);s.indexOf(`@`)===0&&(u=u.slice(1),u[0]=`@`+u[0]);let d=u[1]&&a(u[1]);if(d)return c(s,o(d),r);u.length===1&&u.push(`*`);let f={name:u[0],version:u.slice(1).join(`@`)};return c(s,f,r)}e.parsePackageString=i;function a(e){if(e.slice(-1)===`/`&&(e=e.slice(0,-1)),e.toLowerCase().indexOf(`://github.com/`)!==-1&&e.indexOf(`http`)===0){let t=e.replace(/https?:\/\/github.com\//,``).split(`/`);e=t.shift()+`/`+t.shift(),t.length&&(e+=`#`+t.pop())}return r.fromUrl(e)}function o(e){
/* istanbul ignore if */
if(!e.project||!e.user){let e=/* @__PURE__ */ Error(`not supported: failed to fully parse`);throw e.code=501,e}let t={name:e.project,version:e.user+`/`+e.project};return e.committish&&(t.version+=`#`+e.committish),t}function s(e){return e[0]+encodeURIComponent(e.slice(1))}e.encode=s;function c(e,n,r){if(r||={},r.packageManager===`maven`){if(e.indexOf(`:`)===-1)throw Error(`invalid Maven package name: `+e);return n}return(n.version.match(/^(https?:)|(git[:+])/i)||n.name.indexOf(`://`)!==-1)&&(t(`not supported %s@%s (ext)`,n.name,n.version),r.loose?delete n.version:t(`external module: `+l(n))),n.version!==`latest`&&n.version||(n.version=`*`),t(`%s => { name: "%s", version: "%s" }`,e,n.name,n.version),n}function l(e){return e.name+`@`+e.version}})),Ci=/* @__PURE__ */ e.t(((e,t)=>{let r=require("semver"),i=Si(),a=n.n()(`snyk:resolve:pluck`),o={loose:!0};function s(e,t,n,r){r===`latest`&&(r=`*`);let s=t.slice(0);if((0,i.parsePackageString)(s.shift(),o).name!==e.name)return!1;s.length!==0&&(0,i.parsePackageString)(s.slice(-1).pop(),o).name===n&&s.pop(),s.push(n+`@`+r),a(`using forward search %s@%s in %s`,s.join(` > `));let l=e,u=[];for(;s.length;){let e=(0,i.parsePackageString)(s[0],o),t=c(l,e.name,e.version);if(t)s.shift(),u.push(l),l=t;else{let e=u.pop();if(!e)return!1;l=e}}return l.name===n&&l}function c(e,t,n){let i=e.dependencies&&e.dependencies[t];if(!i)return!1;let o=i.version;a(`pluck match on name...checking version: %s ~= %s`,o,n);let s=r.validRange(n)&&r.valid(o)&&r.satisfies(o,n),c=!r.validRange(n)&&n.indexOf(`:/`)!==-1;return s||c?(a(`pluck match`),i.dep||=n,i):!1}t.exports=s})),wi=/* @__PURE__ */ e.t(((e,t)=>{function n(e,t){if(!e)return[];let r=e.dependencies?e.dependencies:e;Object.keys(r).forEach(function(e){!t(r[e],e,r)&&r[e]&&r[e].dep&&n(r[e].dependencies,t)})}t.exports=n})),Ti=/* @__PURE__ */ e.t(((e,t)=>{let n=wi();function r(e){let t=i(e);return t.dependencies={},n(e,function(e){let n=i(e);t.dependencies[e.name+`@`+e.version]=n}),t}function i(e){return Object.keys(e).filter(function(e){return e.toLowerCase().indexOf(`dependencies`)===-1}).reduce(function(t,n){return t[n]=e[n],t},{})}t.exports=r})),Ei=/* @__PURE__ */ e.t(((e,t)=>{var n={white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97},r={bgBlack:40,bgRed:41,bgGreen:42,bgYellow:43,bgBlue:44,bgMagenta:45,bgCyan:46,bgWhite:47,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107},i={},a={},o={};Object.keys(n).forEach(function(e){var t=i[e]=`\x1B[`+n[e]+`m`,r=a[e]=`\x1B[39m`;o[e]=function(e){return t+e+r}}),Object.keys(r).forEach(function(e){var t=i[e]=`\x1B[`+r[e]+`m`,n=a[e]=`\x1B[49m`;o[e]=function(e){return t+e+n}}),t.exports=o,o.open=i,o.close=a})),Di=/* @__PURE__ */ e.t(((e,t)=>{let n=Ci(),r=wi(),i=Ti(),a=oi(),o=require("path"),s=Jr(),c=Ei(),l=Si(),u=require("util").format,d=c.bgBlack(c.green(`extraneous`));function f(e,t){t||={};let a=[],c=h(e,e.__from);c.dependencies=m(e,e,void 0,a);let l=[];return t.dev||Object.keys(e.dependencies).forEach(function(t){let n=e.dependencies[t];n.depType===s.DEV&&(l.push(n.__from),delete c.dependencies[n.name])}),c.numFileDependencies=0,r(e.dependencies,function(t){if(c.numFileDependencies++,!t.__used){let n=t.__from.slice(0,-1).toString();if(l.filter(function(e){return n.indexOf(e)===0}).length)return!1;let i=h(t),f=u(`%s: %s@%s (from %s) > %s`,d,i.name,i.version,i.dep,o.relative(`.`,i.__filename));i.problems=[f],a.push(f),i.extraneous=!0,i.depType=s.EXTRANEOUS,i.dependencies=m(e,t,void 0,a),r(i.dependencies,function(e){e.extraneous=!0,e.depType=s.EXTRANEOUS}),p(c,i,t.__from)}}),c.numDependencies=Object.keys(i(c).dependencies).length,c.pluck=n.bind(null,e),c.unique=i.bind(null,c),c.problems=a.slice(0),t.noFromArrays&&(c=g(c)),c}function p(e,t,n){let r=(n||[]).slice(1,-1).map(function(e){return(0,l.parsePackageString)(e).name}),i=e.dependencies;for(let e=0;e<r.length;e++)i[r[e]]&&(i=i[r[e]].dependencies);i[t.name]=t}function m(e,t,r,i){let o=r||t.__from,c=(0,a.assignIn)({},t.__dependencies,t.__from&&o.length===1?t.__devDependencies:{});return c=(0,a.assignIn)(c,t.__optionalDependencies),Object.keys(c).reduce(function(r,a){if(t.__from.indexOf(a)===-1){let l=c[a],d=n(e,t.__from,a,l);if(!d)return i.push(u(`missing: %s@%s, required by %s`,a,l,o.join(` > `))),r;if(o.indexOf(d.full)===-1){let n=r[d.name]=h(d,o.concat(d.full));d.__used=!0;let a=s(d.name,{dependencies:t.__dependencies,devDependencies:t.__devDependencies,bundleDependencies:t.__bundleDependencies,optionalDependencies:t.__optionalDependencies});n.depType=a.type,n.dep=a.from,t.bundled&&(d.bundled=n.bundled=t.bundled),n.dependencies=m(e,d,n.from,i)}}return r},{})}function h(e,t){t||=e.__from;let n=Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&n.indexOf(`__`)!==0&&n!==`dependencies`&&(t[n]=e[n]),t},{});return n.from=t.slice(0),n.__filename=e.__filename,n}function g(e){delete e.from;let t=e.dependencies;return Object.keys(t).forEach(function(e){g(t[e])}),e}t.exports=f})),Oi=/* @__PURE__ */ e.t(((e,t)=>{function n(e,t){let r=t(e);r||(e.dependencies={});let i=Object.keys(e.dependencies||{});return i.length&&(r=i.filter(function(r){return!n(e.dependencies[r],t)||(delete e.dependencies[r],!1)}).length,r=r===0),r}t.exports=n})),ki=/* @__PURE__ */ e.t(((e,t)=>{let n=hi(),r=Di(),i=wi(),a=Oi(),o=Ci(),s=Ti();function c(e,t){return n(e,null,t).then(e=>r(e,t))}c.physicalTree=n,c.logicalTree=r,c.walk=i,c.prune=a,c.pluck=o,c.unique=s,t.exports=c})),Ai=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getFileContents=r,e.fileExists=i,e.isResDepGraph=a,e.normalizeFilePath=o,e.isSubpath=s;let t=require("fs"),n=require("path");function r(e,r){let i=n.resolve(e,r);if(!t.existsSync(i))throw Error(`Manifest `+r+` not found at location: `+r);return{content:t.readFileSync(i,`utf-8`),fileName:r}}function i(e,r){let i=n.resolve(e,r);return t.existsSync(i)}function a(e){return`rootPkg`in e}function o(e){return n.normalize(e).replace(/\\/g,`/`)}function s(e,t){let n=o(e),r=o(t);return n==r||n.startsWith(`${r}/`)}})),ji=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parse=l;let t=require("path"),r=require("fs"),i=ki(),a=n.n(),o=oi(),s=Ai(),c=a(`snyk-nodejs-plugin`);function l(e,n,a){a.includeComponentMetadata&&c(`includeComponentMetadata is set but resolving via node_modules (no lockfile); package hash / distribution URL labels are only reported from lockfiles, skipping`),n.endsWith(`yarn.lock`)&&(a.file=a.file&&a.file.replace(`yarn.lock`,`package.json`)),n.endsWith(`pnpm-lock.yaml`)&&(a.file=a.file&&a.file.replace(`pnpm-lock.yaml`,`package.json`)),n.endsWith(`package-lock.json`)&&(a.file=a.file&&a.file.replace(`package-lock.json`,`package.json`));let l=t.resolve(e,a.file),u=a.packageManager||`npm`;try{let t=JSON.parse((0,s.getFileContents)(e,l).content),n=t.dependencies;if(a.dev&&(n={...n,...t.devDependencies}),(0,o.isEmpty)(n))return new Promise(e=>e({name:t.name||`package.json`,dependencies:{},version:t.version}))}catch(e){throw c(`Failed to read ${l}: Error: ${e}`),Error(`Failed to read ${l}. Error: ${e.message}`)}let d=t.join(t.dirname(t.resolve(e,n)),`node_modules`);if(!r.existsSync(d))throw Error(`Missing node_modules folder: we can't test without dependencies.\nPlease run '${u} install' first.`);return i(e,Object.assign({},a,{noFromArrays:!0}))}})),Mi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.buildDepGraph=s;let t=require("path"),r=require("fs"),i=qr(),a=qr(),o=n.n()(`snyk-nodejs-plugin`);async function s(e,n,s,c,l){let u=t.resolve(e,n),d=t.resolve(e,s);if(!r.existsSync(u))throw new a.InvalidUserInputError(`Target file package.json not found at location: ${u}`);if(!r.existsSync(d))throw new a.InvalidUserInputError(`Lockfile not found at location: `+d);let f=r.readFileSync(u,`utf-8`),p=r.readFileSync(d,`utf-8`),m=t.parse(d).dir,h=t.resolve(m,`pnpm-workspace.yaml`);switch(l.includeComponentMetadata&&c!==a.NodeLockfileVersion.NpmLockV2&&c!==a.NodeLockfileVersion.NpmLockV3&&c!==a.NodeLockfileVersion.YarnLockV1&&o(`includeComponentMetadata is set but component-metadata labels (package hashes / distribution URLs) are not yet produced for lockfile version ${c}; only npm package-lock v2/v3 and yarn.lock v1 are supported (yarn berry is deferred)`),c){case a.NodeLockfileVersion.PnpmLockV5:case a.NodeLockfileVersion.PnpmLockV6:case a.NodeLockfileVersion.PnpmLockV9:if(r.existsSync(h))throw new a.InvalidUserInputError("Both `pnpm-lock.yaml` and `pnpm-workspace.yaml` were found in "+m+".\nPlease run your command again specifying `--all-projects` flag.");return await i.parsePnpmProject(f,p,{includeDevDeps:l.includeDevDeps,includeOptionalDeps:l.includeOptionalDeps||!0,includePeerDeps:!0,pruneWithinTopLevelDeps:!0,strictOutOfSync:l.strictOutOfSync},c);case a.NodeLockfileVersion.YarnLockV1:return await i.parseYarnLockV1Project(f,p,{includeDevDeps:l.includeDevDeps,includeOptionalDeps:l.includeOptionalDeps,includePeerDeps:l.includePeerDeps||!1,pruneLevel:`withinTopLevelDeps`,strictOutOfSync:l.strictOutOfSync,includeComponentMetadata:l.includeComponentMetadata||!1});case a.NodeLockfileVersion.YarnLockV2:return await i.parseYarnLockV2Project(f,p,{includeDevDeps:l.includeDevDeps,includeOptionalDeps:l.includeOptionalDeps,pruneWithinTopLevelDeps:!0,strictOutOfSync:l.strictOutOfSync,includeComponentMetadata:l.includeComponentMetadata||!1});case a.NodeLockfileVersion.NpmLockV2:case a.NodeLockfileVersion.NpmLockV3:return await i.parseNpmLockV2Project(f,p,l);default:throw Error(`Failed to build dep graph from current project`)}}})),Ni=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parse=o;let t=require("path"),n=require("fs"),r=Mi(),i=qr(),a=qr();async function o(e,o,s){let c=t.resolve(e,o);if(!n.existsSync(c))throw Error(`Lockfile `+o+` not found at location: `+c);let l=t.parse(c),u=t.resolve(l.dir,`package.json`),d=t.resolve(l.dir,`npm-shrinkwrap.json`);if(!n.existsSync(u))throw Error(`Could not find package.json at ${u} (lockfile found at ${o})`);if(n.existsSync(d))throw Error("Both `npm-shrinkwrap.json` and `package-lock.json` were found in "+l.dir+".\nPlease run your command again specifying `--file=package.json` flag.");let f=s.strictOutOfSync!==!1,p=i.getLockfileVersionFromFile(c);return p===a.NodeLockfileVersion.YarnLockV1||p===a.NodeLockfileVersion.YarnLockV2||p===a.NodeLockfileVersion.NpmLockV2||p===a.NodeLockfileVersion.NpmLockV3||p===a.NodeLockfileVersion.PnpmLockV5||p===a.NodeLockfileVersion.PnpmLockV6||p===a.NodeLockfileVersion.PnpmLockV9?await(0,r.buildDepGraph)(e,u,c,p,{includeDevDeps:s.dev||!1,includeOptionalDeps:!0,strictOutOfSync:f,pruneCycles:!0,includeComponentMetadata:s.includeComponentMetadata||!1}):i.buildDepTreeFromFiles(e,u,c,s.dev,f,void 0,void 0,s.includeComponentMetadata||!1)}})),Pi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomError=void 0,e.MissingTargetFileError=n,e.NoSupportedManifestsFoundError=r;var t=class extends Error{constructor(e){super(e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=void 0,this.strCode=void 0,this.innerError=void 0,this.userMessage=void 0}};e.CustomError=t;function n(e){let n=`Not a recognised option did you mean --file=${e}? Check other options by running snyk --help`,r=new t(n);return r.code=422,r.userMessage=n,r}function r(e){let n=`Could not detect supported target files in `+e.join(`, `)+`.
Please see our documentation for supported languages and target files: https://snyk.co/udVgQ and make sure you are in the right directory.`,r=new t(n);return r.code=422,r.userMessage=n,r}})),Fi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inspect=a;let t=ji(),n=Ni(),r=Pi(),i=Ai();async function a(e,a,o={}){if(!a)throw(0,r.MissingTargetFileError)(e);let s=(a.endsWith(`package-lock.json`)||a.endsWith(`yarn.lock`)||a.endsWith(`pnpm-lock.yaml`))&&!o.traverseNodeModules?await n.parse(e,a,o):await t.parse(e,a,o),c=[];return c=(0,i.isResDepGraph)(s)?[{depGraph:s}]:[{depTree:s}],{plugin:{name:`snyk-nodejs-lockfile-parser`,runtime:process.version},scannedProjects:c}}})),Ii=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d,e.processNpmWorkspaces=f;let t=n.n(),r=require("path"),i=oi(),a=wr(),o=t(`snyk-npm-workspaces`),s=qr(),c=Ai(),l=Pi();function u(e){let t={};if(!e)return t;try{let n=JSON.parse(e.content).workspaces||!1;n&&n.length&&(t[e.fileName]={workspaces:n})}catch(e){o(`Failed to process a workspace`,e.message)}return t}function d(e,t,n){let i=r.dirname(n.replace(/\\/g,`/`)),o=(t[n].workspaces||[]).map(e=>r.join(i,e));return a.isMatch(e.replace(/\\/g,`/`),o.map(e=>r.normalize(r.join(e,`package.json`)).replace(/\\/g,`/`)))}async function f(e,t,n){let a=n.map(e=>({path:e,...r.parse(e)})).filter(e=>[`package.json`,`package-lock.json`].includes(e.base)),f=(0,i.sortBy)(a,`dir`),p=(0,i.groupBy)(f,`dir`);if(o(`Processing potential Npm workspaces (${n.length})`),t.yarnWorkspaces&&Object.keys(p).length===0)throw(0,l.NoSupportedManifestsFoundError)([e]);let m={},h={},g={plugin:{name:`snyk-nodejs-npm-workspaces`,runtime:process.version},scannedProjects:[]};for(let n of Object.keys(p)){o(`Processing ${n} as a potential npm workspace`);let i=!1,a=!1,l=r.join(n,`package.json`),f=(0,c.getFileContents)(e,l);m={...m,...u(f)};for(let e of Object.keys(m))d(l,m,e)&&(o(`${l} matches an existing workspace pattern`),h[l]={root:e},i=!0),l===e&&(a=!0);if(!(i||a))o(`${l} is not part of any detected workspace, skipping`);else try{let n=i?r.dirname(h[l].root):r.dirname(l),a=r.join(n,`package-lock.json`),o=(0,c.getFileContents)(e,a),u=await s.parseNpmLockV2Project(f.content,o.content,{includeDevDeps:t.dev||!1,strictOutOfSync:t.strictOutOfSync||!1,includeOptionalDeps:!1,pruneCycles:!0,showNpmScope:t.showNpmScope,includeComponentMetadata:t.includeComponentMetadata||!1}),d={packageManager:`npm`,targetFile:r.relative(e,f.fileName),depGraph:u,plugin:{name:`snyk-nodejs-lockfile-parser`,runtime:process.version}};g.scannedProjects.push(d)}catch(e){if(t.yarnWorkspaces)throw e;o(`Error process workspace: ${l}. ERROR: ${e}`)}}return g.scannedProjects.length||o(`No npm workspaces detected in any of the ${n.length} target files.`),g}})),Li=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sortTargetFiles=l,e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d;let t=n.n(),r=require("path"),i=qr(),a=wr(),o=oi(),s=Ai(),c=t(`snyk-workspaces`);function l(e,t){let n=e.map(e=>({path:e,...r.parse(e)})).filter(e=>t.includes(e.base)),i=(0,o.sortBy)(n,`dir`);return(0,o.groupBy)(i,`dir`)}function u(e,t,n){let a={},o=r.join(t,`pnpm-workspace.yaml`);if(!(0,s.fileExists)(e,o))return a;let l=(0,s.getFileContents)(e,o);if(!l)return a;try{let e=i.getPnpmWorkspaces(l.content);e&&e.length&&(a[n.fileName]={workspaces:e})}catch(e){c(`Failed to process a workspace`,e.message)}return a}function d(e,t,n){let i=r.dirname((0,s.normalizeFilePath)(n)),o=(t[n].workspaces||[]).map(e=>r.join(i,e));return a.isMatch((0,s.normalizeFilePath)(e),o.map(e=>(0,s.normalizeFilePath)(r.join(e,`**`))))}})),Ri=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.processPnpmWorkspaces=c;let t=n.n(),r=require("fs"),i=require("path"),a=qr(),o=Li(),s=t(`snyk-pnpm-workspaces`);async function c(e,t,n){let c=(0,o.sortTargetFiles)(n,[`pnpm-lock.yaml`]);s(`Processing potential Pnpm workspaces (${n.length})`);let l={plugin:{name:`snyk-nodejs-pnpm-workspaces`,runtime:process.version},scannedProjects:[]};for(let n of Object.keys(c)){s(`Processing ${n} as a potential Pnpm workspace`);let o=i.join(n,`pnpm-workspace.yaml`);if(!r.existsSync(o)){s(`Workspace file not found at ${n}. Can't be a pnpm workspace root.`);continue}let c=await a.parsePnpmWorkspace(e,n,{includeDevDeps:t.dev||!1,includeOptionalDeps:t.optional||!0,includePeerDeps:!0,pruneWithinTopLevelDeps:!0,strictOutOfSync:t.strictOutOfSync===void 0||t.strictOutOfSync,exclude:t.exclude,showNpmScope:t.showNpmScope});l.scannedProjects=l.scannedProjects.concat(c)}return l.scannedProjects.length||s(`No pnpm workspaces detected in any of the ${n.length} target files.`),l}})),zi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d,e.processYarnWorkspaces=f;let t=n.n(),r=require("path"),i=oi(),a=wr(),o=t(`snyk-yarn-workspaces`),s=qr(),c=Ai(),l=Pi();function u(e){let t={};if(!e)return t;try{let n=s.getYarnWorkspaces(e.content);n&&n.length&&(t[e.fileName]={workspaces:n})}catch(e){o(`Failed to process a workspace`,e.message)}return t}function d(e,t,n){let i=r.dirname(n.replace(/\\/g,`/`)),o=(t[n].workspaces||[]).map(e=>r.join(i,e));return a.isMatch(e.replace(/\\/g,`/`),o.map(e=>r.normalize(r.join(e,`**`)).replace(/\\/g,`/`)))}async function f(e,t,n){let a=n.map(e=>({path:e,...r.parse(e)})).filter(e=>[`package.json`,`yarn.lock`].includes(e.base)),f=(0,i.sortBy)(a,`dir`),p=(0,i.groupBy)(f,`dir`);if(o(`Processing potential Yarn workspaces (${n.length})`),t.yarnWorkspaces&&Object.keys(p).length===0)throw(0,l.NoSupportedManifestsFoundError)([e]);let m={},h={},g={plugin:{name:`snyk-nodejs-yarn-workspaces`,runtime:process.version},scannedProjects:[]},_={};for(let n of Object.keys(p)){o(`Processing ${n} as a potential Yarn workspace`);let i=!1,a=!1,l=r.join(n,`package.json`),f=(0,c.getFileContents)(e,l);m={...m,...u(f)};for(let e of Object.keys(m))d(l,m,e)&&(o(`${l} matches an existing workspace pattern`),h[l]={root:e},i=!0),l===e&&(a=!0,_=JSON.parse(f.content));if(!(i||a))o(`${l} is not part of any detected workspace, skipping`);else try{let n=i?r.dirname(h[l].root):r.dirname(l),o=r.join(n,`yarn.lock`),u=(0,c.getFileContents)(e,o),d=s.getYarnLockfileVersion(u.content),p;switch(d){case s.NodeLockfileVersion.YarnLockV1:p=await s.parseYarnLockV1Project(f.content,u.content,{includeDevDeps:t.dev||!1,includeOptionalDeps:!1,includePeerDeps:!1,pruneLevel:`withinTopLevelDeps`,strictOutOfSync:t.strictOutOfSync===void 0||t.strictOutOfSync,showNpmScope:t.showNpmScope,includeComponentMetadata:t.includeComponentMetadata||!1});break;case s.NodeLockfileVersion.YarnLockV2:p=await s.parseYarnLockV2Project(f.content,u.content,{includeDevDeps:t.dev||!1,includeOptionalDeps:!1,pruneWithinTopLevelDeps:!0,strictOutOfSync:t.strictOutOfSync===void 0||t.strictOutOfSync,showNpmScope:t.showNpmScope,includeComponentMetadata:t.includeComponentMetadata||!1},{isWorkspacePkg:!0,isRoot:a,rootResolutions:_?.resolutions||{}});break;default:throw Error(`Failed to build dep graph from current project`)}let m={packageManager:`yarn`,targetFile:r.relative(e,f.fileName),depGraph:p,plugin:{name:`snyk-nodejs-lockfile-parser`,runtime:process.version}};g.scannedProjects.push(m)}catch(e){if(t.yarnWorkspaces)throw e;o(`Error process workspace: ${l}. ERROR: ${e}`)}}return g.scannedProjects.length||o(`No yarn workspaces detected in any of the ${n.length} target files.`),g}})),Bi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.processYarnWorkspaces=e.processPnpmWorkspaces=e.processNpmWorkspaces=void 0;let t=Ii();Object.defineProperty(e,"processNpmWorkspaces",{enumerable:!0,get:function(){return t.processNpmWorkspaces}});let n=Ri();Object.defineProperty(e,"processPnpmWorkspaces",{enumerable:!0,get:function(){return n.processPnpmWorkspaces}});let r=zi();Object.defineProperty(e,"processYarnWorkspaces",{enumerable:!0,get:function(){return r.processYarnWorkspaces}})})),Vi=/* @__PURE__ */ e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.processYarnWorkspaces=e.processPnpmWorkspaces=e.processNpmWorkspaces=e.inspect=void 0;let t=Fi();Object.defineProperty(e,"inspect",{enumerable:!0,get:function(){return t.inspect}});let n=Bi();Object.defineProperty(e,"processNpmWorkspaces",{enumerable:!0,get:function(){return n.processNpmWorkspaces}}),Object.defineProperty(e,"processPnpmWorkspaces",{enumerable:!0,get:function(){return n.processPnpmWorkspaces}}),Object.defineProperty(e,"processYarnWorkspaces",{enumerable:!0,get:function(){return n.processYarnWorkspaces}})})),Hi=qr(),Ui=Vi();const Wi={includeDevDeps:!0,includeOptionalDeps:!0,includePeerDeps:!0,pruneWithinTopLevelDeps:!0,strictOutOfSync:!1},Gi=async(e,{rootPath:t,manifestPath:n,lockfilePath:r})=>{let i=s.default.resolve(t,r),a=s.default.resolve(t,n);Xi(e,i);try{return s.default.basename(i)===`pnpm-lock.yaml`?await qi(a,i):await Yi(a,i)}catch(i){throw e.log.debug({rootPath:t,manifestPath:n,lockfilePath:r},`Failed to get dependencies`),i}};function Ki(e){return typeof e.name==`string`&&e.name?e.name:void 0}async function qi(e,n){let r=Ji(e,n);try{let t=(0,o.readFileSync)(e,`utf8`),i=(0,o.readFileSync)(n,`utf8`);return Object.hasOwn((0,Hi.getPnpmLockfileParser)(i).importers,r)?await(0,Hi.parsePnpmWorkspaceProject)(t,i,Wi,r):await(0,Hi.parsePnpmProject)(t,i,Wi)}catch(e){throw new t.mt(n,{cause:e})}}const Ji=(e,n)=>t.d(s.default.relative(s.default.dirname(n),s.default.dirname(e)))||`.`;async function Yi(e,n){let r=(0,o.mkdtempSync)(s.default.join(c.default.tmpdir(),`chromatic`)),i;try{let t=s.default.join(r,s.default.basename(n));(0,o.copyFileSync)(e,s.default.join(r,s.default.basename(e))),(0,o.copyFileSync)(n,t),i=await(0,Ui.inspect)(r,t,{dev:!0,strictOutOfSync:!1})}catch(e){throw new t.mt(n,{cause:e})}finally{(0,o.rmSync)(r,{recursive:!0,force:!0})}if(i.scannedProjects.length!==1||!i.scannedProjects[0].depGraph)throw new t.mt(n);return i.scannedProjects[0].depGraph}function Xi(e,n){let r=Number.parseInt(process.env.MAX_LOCK_FILE_SIZE??``)||10485760,i=(0,o.statSync)(n);if(i.size>r)throw e.log.warn({fullPath:n},`Lock file too large to parse, skipping`),new t.ht(n,i.size)}const Zi=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.vue`,`.svelte`,`.mdx`]),Qi=e=>{let n=t.a(e)?t.r(`/${e}`):void 0,r=`node_modules/${n}/`,i=n?e.lastIndexOf(r):-1;return n&&i!==-1?{packageName:n,directory:e.slice(0,i+r.length)}:void 0};function $i(e,{rootPath:n,projectRoot:r,manifestPaths:i}){let a=new Map(i.map(e=>[s.default.posix.dirname(e),e])),c={loadedManifestPaths:/* @__PURE__ */ new Set,importersByPackage:/* @__PURE__ */ new Map,unattributedPackages:/* @__PURE__ */ new Set},l=e=>{for(let t=s.default.posix.dirname(e);;t=s.default.posix.dirname(t)){let e=a.get(t);if(e||t===`.`)return e}},u=/* @__PURE__ */ new Map,d=e=>{let i=t.s(e,n,r),a=!t.a(i)&&!s.default.isAbsolute(i)&&!i.startsWith(`../`)&&!i.split(`/`).includes(`.yarn`)&&o.default.existsSync(s.default.join(n,i))?l(i):void 0;return{filePath:i,workspace:a,voucher:!e.includes(`!`)&&Zi.has(s.default.posix.extname(i))?a:void 0,installed:Qi(i)}},f=e=>{let t=u.get(e);return t||(t=d(e),u.set(e,t)),t},p=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Set,h=new Map(e.modules.map(e=>[e.name,t.o(e)[0]])),g=e=>{let n=t.o(e).map(e=>f(e)),r=(e.reasons||[]).flatMap(({moduleName:e})=>e?f(e.includes(`!`)?e:h.get(e)??e):[]);for(let{workspace:e}of[...n,...r])e&&c.loadedManifestPaths.add(e);let i=[.../* @__PURE__ */ new Set([...r,...n])],a=new Map(n.flatMap(({installed:e})=>e?[[e.directory,e.packageName]]:[]));for(let[e,n]of a){p.set(e,n);let r=i.filter(({filePath:n})=>!n.startsWith(e)||t.a(n.slice(e.length)));if(r.length!==0){m.add(e);for(let{voucher:e}of r){if(!e){c.unattributedPackages.add(n);continue}let t=c.importersByPackage.get(n)??/* @__PURE__ */ new Set;t.add(e),c.importersByPackage.set(n,t)}}}};for(let t of e.modules)g(t);for(let[e,t]of p)m.has(e)||c.unattributedPackages.add(t);return c}const ea=`package.json`,ta=async(e,n)=>{let{packageMetadataChanges:r}=e.git,{untraced:a=[]}=e.options;if(r?.length===0)return e.log.debug(`No package metadata changed found`),[];e.log.debug({packageMetadataChanges:r},`Finding changed dependencies for ${r?.length} baselines`);let o=await t.K(e)||``,c=await t.F(e,o,...[ea,...i.r].flatMap(e=>[e,`**/${e}`]))||[],l,u=[],d=/* @__PURE__ */ new Map;for(let e of c){let t=s.default.posix.dirname(e);e===ea?l=e:s.default.posix.basename(e)===ea?u.push(e):d.has(t)||d.set(t,e)}let f=d.get(`.`);l&&f||e.log.debug({rootPath:o,rootManifestPath:l,rootLockfilePath:f},`No manifest or lockfile found at the root of the repository`),e.log.debug({rootPath:o,rootManifestPath:l,rootLockfilePath:f},`Found manifest and lockfile`),e.log.debug({nestedManifestPaths:u.length},`Found nested manifest paths`);let p=e=>{let t=s.default.posix.dirname(e);for(;!d.has(t)&&t!==`.`;)t=s.default.posix.dirname(t);return d.get(t)},m=u.map(e=>[e,p(e)]);if(l&&f)m.unshift([l,f]);else if(m.length===0)throw Error(`Could not find any pairs of ${ea} + ${i.r.join(` / `)}`);e.log.debug({pathPairs:m},`Found ${m.length} manifest/lockfile pairs to check`);let h=m.map(([e,t])=>{let n=r?.filter(({changedFiles:n})=>n.some(n=>n===t||n===e)).map(({commit:e})=>e);return[e,t,[...new Set(n)]]}).filter(([e,,t])=>!a.some(t=>i.f(t,e))&&t.length>0);if(e.log.debug({filteredPathPairs:h},`Found ${h.length} manifest/lockfile pairs to diff`),h.length===0)return[];let g=/* @__PURE__ */ new Map,_=/* @__PURE__ */ new Map,v=e.env.CHROMATIC_TURBOSNAP_PACKAGE_CONCURRENCY,y=t.wt(v),b=t.wt(v);await Promise.all(h.map(([n,r,i])=>y(async()=>{if(!r)throw new t.pt(n);let a=await Gi(e,{rootPath:o,manifestPath:n,lockfilePath:r});e.log.debug({manifestPath:n,lockfilePath:r},`Found HEAD dependencies`),_.set(n,a),await Promise.all(i.map(t=>b(async()=>{let i=await ra(e,{rootPath:o,reference:t,manifestPath:n,lockfilePath:r,headDependencies:a}),s=g.get(n)??/* @__PURE__ */ new Set;for(let e of i)s.add(e);g.set(n,s)})))})));let x=new Map(m.map(([e,t])=>[e,t]));return na(e,{stats:n,rootPath:o,manifestPaths:[...x.keys()],changesByManifest:g,getHeadGraph:n=>_.get(n)??y(()=>{let r=x.get(n);if(!r)throw new t.pt(n);return Gi(e,{rootPath:o,manifestPath:n,lockfilePath:r})})})};async function na(e,{stats:n,rootPath:r,manifestPaths:a,changesByManifest:o,getHeadGraph:s}){let{untraced:c=[]}=e.options,l=$i(n,{rootPath:r,projectRoot:t.i(e),manifestPaths:a}),u=new Map([...l.loadedManifestPaths].filter(e=>!c.some(t=>i.f(t,e))).map(e=>[e,new Set(oa(r,e))])),d=new Set([...u.values()].flatMap(e=>[...e])),f=e=>d.has(e)&&!l.unattributedPackages.has(e)&&[...l.importersByPackage.get(e)??[]].every(t=>u.get(t)?.has(e)),p=new Set([...o].filter(([e])=>!l.loadedManifestPaths.has(e)).flatMap(([,e])=>[...e].filter(e=>f(e)))),m=/* @__PURE__ */ new Map;for(let[e,t]of u){let n=[...p].filter(e=>t.has(e));if(n.length===0)continue;let r=await Promise.resolve(s(e)).catch(()=>void 0);m.set(e,new Set(r?n.filter(e=>ia(r,e)):[]))}let h=e=>p.has(e)&&[...u].filter(([,t])=>t.has(e)).every(([t])=>m.get(t)?.has(e)),g=new Set([...o.values()].flatMap(e=>[...e])),_=new Set([...o].flatMap(([e,t])=>[...t].filter(t=>l.loadedManifestPaths.has(e)||!h(t))));return e.log.debug({scopedManifestPaths:[...l.loadedManifestPaths],ignoredDependencyNames:[...g].filter(e=>!_.has(e))},`Ignoring changes by other workspaces to dependencies the Storybook declares`),[..._]}async function ra(e,{rootPath:n,reference:r,manifestPath:i,lockfilePath:a,headDependencies:l}){let u=o.default.mkdtempSync(s.default.join(c.default.tmpdir(),`chromatic`));try{let[o,c]=await Promise.allSettled([t.A(e,r,i,u),t.A(e,r,a,u)]);if(o.status===`rejected`){let{reason:a}=o;if(!(a instanceof t.ut&&a.fileMissing)||c.status===`rejected`||await t.at(e,r,s.default.posix.dirname(i)).catch(()=>!0))throw a;e.log.debug({reference:r,manifestPath:i},`Workspace was added since the baseline`);let u=Ki(aa(n,i));return/* @__PURE__ */ new Set([...u?[u]:[],...l.getDepPkgs().map(({name:e})=>e)])}if(c.status===`rejected`)throw c.reason;let d=await Gi(e,{rootPath:u,manifestPath:i,lockfilePath:a});return e.log.debug({reference:r},`Found baseline dependencies`),await be(l,d)}finally{o.default.rmSync(u,{recursive:!0,force:!0})}}const ia=(e,t)=>{let n=e.getDepPkgs().filter(e=>e.name===t);return n.length>0&&n.every(e=>l.default.valid(e.version))};function aa(e,t){try{return JSON.parse(o.default.readFileSync(s.default.join(e,t),`utf8`))}catch{return{}}}function oa(e,t){let n=aa(e,t);return[`dependencies`,`devDependencies`,`optionalDependencies`].flatMap(e=>Object.keys(n[e]??{}))}const sa=(e={},t={})=>{if(typeof e!=typeof t)return!1;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return e===t;let n=Object.entries(e).sort((e,t)=>e[0].localeCompare(t[0])),r=Object.entries(t).sort((e,t)=>e[0].localeCompare(t[0]));if(n.length!==r.length)return!1;for(let[e,[t,i]]of n.entries()){let[n,a]=r[e];if(t!==n||!sa(i,a))return!1}return!0},ca=[`dependencies`,`devDependencies`,`peerDependencies`,`dependenciesMeta`,`peerDependenciesMeta`,`overrides`,`optionalDependencies`,`resolutions`,`pnpm`],la=(e,t)=>ca.every(n=>sa(e[n],t[n])),ua=async(e,n,r,i=`HEAD`)=>{let a=`${i}:${r}`;if(n.has(a))return n.get(a);let o=await t.ot(e,`git show ${a}`);return o&&n.set(a,o),o},da=async(e,t,n,r)=>(await Promise.all(n.map(async n=>{try{let i=await ua(e,t,n,r),a=await ua(e,t,n);if(!i||!a)throw Error(`Failed to read git file`);return la(JSON.parse(i),JSON.parse(a))?[]:[n]}catch{return[n]}}))).flat(),fa=async(e,t)=>{let n=/* @__PURE__ */ new Map,r=await Promise.all(t.map(({changedFiles:t,commit:r})=>{let a=t.filter(e=>i.u(e));return a.length===0?[]:da(e,n,a,r)}));return[...new Set(r.flat())]};var pa=({statsPath:e,storybookDir:n,storybookBuildDir:i,entryFile:a})=>{if(a){let o=i?f.default`Configure {bold --storybook-config-dir} with the value for {bold --config-dir} or {bold -c} from your build-storybook script.`:f.default`Configure {bold --build-script-name} to point at the {bold build-storybook} script which has {bold --config-dir} or {bold -c} set.`;return(0,p.dedent)(f.default`
      ${r.t} Did not find any CSF globs in {bold ${e}}
      Found an entry file at {bold ${a}} but expected it at {bold ${n}/generated-stories-entry.js}.
      ${o}
      ${r.n} Read more at ${t.Tt(`https://www.chromatic.com/docs/turbosnap`)}
    `)}return(0,p.dedent)(f.default`
    ${r.t} Did not find any CSF globs in {bold ${e}}
    Check your stories configuration in {bold ${n}/main.js}
    ${r.n} Read more at ${t.Tt(`https://storybook.js.org/docs/configure`)}
  `)};const ma=(e,t,n)=>(t===`.`?e:e.replace(`${t}/`,f.default.dim(`${t}/`))).split(`/`).map((e,t,r)=>{if(t<r.length-1)return e;let[,i,a=``]=e.match(/^(.+?)( \+ \d+ modules)?$/)||[];return f.default.bold(i)+(n?f.default.magenta(a):f.default.dim(a))}).join(`/`);var ha=(e,{changedFiles:t,affectedModules:n,modulesByName:a,normalize:o})=>{let s=e.log===console?`--mode (-m)`:`--trace-changed`,c=e.options.storybookBaseDir||`.`,l=e.options.storybookConfigDir||`.storybook`,u=e.options.traceChanged===`expanded`,d=e=>ma(e,c,u),p=(0,m.default)(`changed files`,t.length,!0),h=(0,m.default)(`potentially affected ${g(e)} files`,Object.keys(n).length,!0),_;if(u){let t=e.turboSnap?.bailReason?`${_a(e.turboSnap.bailReason)}\n\n`:``;_=`${`${f.default.magenta(`The root directory of your project:`)} ${e.turboSnap?.rootPath}\n\n`}${`${f.default.magenta(`The base directory (The relative path from the root to the storybook config root):`)} ${c}\n\n`}${`${f.default.magenta(`The storybook directory (The directory can either be at the root or in a sub-directory):`)} ${l}\n\n`}${t}${e.untracedFiles&&e.untracedFiles.length>0?`${f.default.magenta(`We detected some untraced files, this may affect your traced changes as 
    the untraced flag instructs TurboSnap to not trace dependencies for the files:`)} \n${i.o(e.untracedFiles)}\n\n\n`:``}If you are having trouble with tracing, please check the following:

  1. Make sure you have the correct root path, base path, and storybook path.

  2. Make sure you have the correct storybook config file.

  3. Make sure you have the correct storybook config file path.
You can either set the flags storybook-base-dir or storybook-config-dir to help TurboSnap find the correct storybook config file.

`}let v=f.default`${e.options.traceChanged===`expanded`?_:``}${r.n} Traced {bold ${p}} to {bold ${h}}`;if(e.options.traceChanged===`compact`){let e=!1;return`${v}:\n${Object.values(n).map(([t,...n])=>n.length===0?t:(e=!0,`${t} + ${n.length} modules`)).map(e=>f.default`— ${d(e)}`).join(`
`)}${e?f.default`\nSet {bold ${s}} to {bold 'expanded'} to reveal underlying modules.`:f.default`\nSet {bold ${s}} to reveal how these files are potentially affected.`}`}let y=(e,t=``)=>{if(!u)return``;let{modules:n}=a[e]||{};if(!n)return``;let r=``;for(let e of n)r+=f.default`\n${t}  ⎸  {dim ${o(e.name)}}`;return r},b=/* @__PURE__ */ new Set,x=[...e.turboSnap?.tracedPaths||[]].map(t=>{let n=t.split(`
`),r=``;for(let[e,t]of n.entries()){if(e===0){r=f.default`— ${d(t)} {cyan [changed]}${y(t)}`;continue}let i=``;e===n.length-1&&(b.has(t)?i=f.default` {yellow [duplicate]}`:b.add(t));let a=`  `.repeat(e);r=f.default`${u?`File Path: ${t}\n\nBase Directory: ${c}\n\n`:``}${r}\n${a}∟ ${d(t)}${i}${y(t,a)}`}return r+f.default`\n${`  `.repeat(n.length)}∟ {cyan [${g(e)} index]}`}),S=f.default`\n\nSet {bold ${s}} to {bold 'expanded'} to reveal underlying modules.`;return`${v}:\n\n${x.join(`

`)}${u?``:S}`};const ga=(e,t)=>f.default`{bold ${e}}\n`+t.map(e=>`  - ${e}`).join(`
`);function _a(e){if(!e)return``;let t=[];return e.changedPackageFiles&&t.push(ga(`Changed Package Files`,e.changedPackageFiles)),e.changedStorybookFiles&&t.push(ga(`Changed Storybook Files`,e.changedStorybookFiles)),e.changedExternalFiles&&t.push(ga(`Changed External Files`,e.changedExternalFiles)),e.changedStaticFiles&&t.push(ga(`Changed Static Files`,e.changedStaticFiles)),t.join(`
`)}const va=[/\/webpack\/runtime\//,/^\(webpack\)/],ya=e=>e.id!==void 0&&e.id!==null&&!va.some(t=>t.test(e.name||e.moduleName||``)),ba=e=>(/^\0|\?| \+ /.test(e)?0:2)+ +!!e.startsWith(`./`);async function xa(e,n,r,a,o=[]){let{rootPath:c}=e.git||{};if(!c)throw Error(`Failed to determine repository root`);let l=t.i(e),u=e.storybook?.configDir??s.default.resolve(l,`.storybook`),d=e.storybook?.staticDirs??[],f=t.u(c,l),{storybookBuildDir:p,untraced:m=[]}=e.options,h=e=>t.s(e,c,l),g=t.u(c,u),_=d.map(e=>t.u(c,e));e.log.debug(`BASE Directory:`,f),e.log.debug(`Storybook CONFIG Directory:`,g);let v=[s.default.join(u,`generated-stories-entry.js`),`./generated-stories-entry.js`,`./generated-stories-entry.cjs`,`./storybook-stories.js`,`/virtual:/@storybook/builder-vite/vite-app.js`,`virtual:@storybook/builder-vite/vite-app.js`,`./node_modules/.cache/storybook/default/dev-server/storybook-stories.js`,`./node_modules/.cache/storybook-rsbuild-builder/storybook-stories.js`,`./node_modules/.cache/storybook/storybook-rsbuild-builder/storybook-config-entry.js`,`./node_modules/.cache/storybook-rsbuild-builder/storybook-config-entry.js`,`./storybook-config-entry.js`].map(e=>h(e)),y=[`/virtual:/@storybook/builder-vite/project-annotations.js`,`virtual:@storybook/builder-vite/project-annotations.js`].map(e=>h(e)),b=e=>y.some(t=>e.startsWith(t)),x=/* @__PURE__ */ new Map,S=/* @__PURE__ */ new Map,w=/* @__PURE__ */ new Map,E=/* @__PURE__ */ new Map,D=/* @__PURE__ */ new Set,O=/* @__PURE__ */ new Set,k=e=>e&&e.startsWith(`${g}/`)&&!v.includes(e)&&!i.s(e),A=e=>!!t.m(t.c(e),g),j=e=>m.some(n=>i.f(n,t.c(e))),M=/* @__PURE__ */ new Map;for(let e of n.modules){if(!ya(e))continue;let t=h(e.name),n=M.get(t);n?n.push(e):M.set(t,[e])}for(let[e,n]of M){let r=n[0];for(let e of n)ba(e.name)>=ba(r.name)&&(r=e);let i=[...new Set(n.flatMap(e=>(e.reasons||[]).map(e=>e.moduleName).filter(e=>typeof e==`string`).map(e=>h(e))).filter(t=>t&&t!==e))];x.set(e,r),w.set(r.id,e),E.set(r.id,i);for(let e of n.flatMap(e=>e.modules||[])){let t=h(e.name);M.has(t)||x.set(t,r)}for(let r of new Set(n.map(e=>t.r(e.name))))r&&(S.has(r)||S.set(r,[]),S.get(r)?.push(e));let a=i.some(e=>v.some(t=>e.startsWith(t))),o=[e,...n.flatMap(e=>e.modules??[]).map(e=>h(e.name))].some(e=>k(e)&&!j(e));(i.some(e=>b(e))||(a||i.length===0)&&o)&&O.add(e),!k(e)&&!b(e)&&a&&D.add(e)}if(D.size===0){let t=/^(.+\/)?generated-stories-entry\.js$/,i=n.modules.find(e=>t.test(e.name)&&!v.includes(h(e.name))),a=i&&h(i.name);throw e.log.error(pa({statsPath:r,storybookDir:g,storybookBuildDir:p,entryFile:a})),Error(`Did not find any CSF globs in preview-stats.json`)}let ee=e=>D.has(e),te=e=>_.some(t=>e&&e.startsWith(`${t}/`)),N=[];function ne(e){e=e.replace(/\s\+\s\d+\smodules?$/,``);let t=m.find(t=>i.f(t,e));return!t||(N.push({filepath:e,glob:t}),!1)}function re(e){let t=x.get(e);return t?t.modules?.length?t.modules.map(e=>h(e.name)):[h(t.name)]:[e]}let P=[...o.flatMap(e=>S.get(e)||[]),...a].filter(e=>ne(e)),F=/* @__PURE__ */ new Set,I=/* @__PURE__ */ new Set,L={},R=[],z={rootPath:c,baseDir:f,storybookDir:g,staticDirs:_,globs:[...D],modules:[...x.keys()],tracedFiles:P,tracedPaths:F,affectedModuleIds:I,bailReason:void 0},ie=P.filter(e=>i.c(e));S.size===0&&o.length>0&&(z.bailReason={changedPackageFiles:[...e.git.changedFiles?.filter(e=>i.l(e))||[],...ie],bailSubreason:`nodeModulesMissingInStats`});function B(e,t){return[...t.flatMap(e=>w.get(e)??[]),e]}function V(e,t=[],n=t.length>0){return te(e)?(z.bailReason={changedStaticFiles:re(e)},z.bailPath=B(e,t),!0):re(e).some(e=>A(e)&&!j(e))||O.has(e)?(z.bailReason={changedStorybookFiles:re(e),...C(e,{traced:n,storybookDirectory:g})},z.bailPath=B(e,t),!0):!1}function H(e,n=[]){if(z.bailReason||ee(e)||V(e,n))return;let{id:r}=x.get(e)||{},i=w.get(r||null);if(!i)return;let a=t.c(i)!==t.c(e);V(i,n,n.length>0||a)||r&&E.get(r)&&!L[r]&&(R.push([r,[...n,r.toString()]]),E.get(r)?.some(e=>ee(e))&&(I.add(r),F.add([...n,r].map(e=>w.get(e)).join(`
`))))}for(e.options.traceChanged&&(e.log.debug(`Traced files...`),e.log.debug(P)),P.map(e=>H(e));R.length>0;){let[t,n]=R.pop();Array.isArray(t)?e.log.debug(`Trace ID is an unexpected value, skipping`):Array.isArray(n)?(L[t]=!0,E.get(t)?.filter(e=>ne(e)).map(e=>H(e,n))):e.log.debug(`Trace path is an unexpected value, skipping`)}let U=Object.fromEntries([...I].map(e=>[String(e),re(w.get(e)||``)]));return e.options.traceChanged&&(e.log.debug(`Potentially affected modules...`),e.log.debug(U)),e.options.traceChanged&&(e.log.info(ha({...e,turboSnap:z,untracedFiles:N},{changedFiles:a,affectedModules:U,modulesByName:Object.fromEntries(x),normalize:h})),e.log.info(``)),z.bailReason?(e.log.warn(T({turboSnap:z})),{status:`bailed`,turboSnap:z}):{status:`traced`,onlyStoryFiles:U,turboSnap:z,untracedFiles:N}}async function Sa(e,n){let{rootPath:r}=e.git;if(!r)return;let i=t.i(e),a=e.storybook.configDir;if(!await t.v(a,t.g).catch(()=>void 0))return;let o=t.u(r,a),s=e=>t.p(t.c(t.s(e,r,i)),o);return n.modules.some(e=>t.o(e).some(e=>s(e))||(e.reasons??[]).some(({moduleName:e})=>!!e&&s(e)))}async function Ca(e,n,r){let{changedFiles:i=[],packageMetadataChanges:a}=e.git,o=await Sa(e,n),s,c,l;if(a?.length){if(s=await ta(e,n).catch(t=>{c=t,l=x(t);let{name:n,message:r,stack:i,code:a}=t;e.log.debug({name:n,message:r,stack:i,code:a})}),s){if(!e.options.interactive){let t=s.length>0?`:\n${s.map(e=>`  ${e}`).join(`
`)}`:``;e.log.info(`Found ${s.length} changed dependencies${t}`)}let n=t.t(e.options);if(n&&s.includes(n)){let t={...e.turboSnap,bailReason:{changedPackageFiles:[...new Set(a.flatMap(({changedFiles:e})=>e))]},previewConfigInStats:o};return e.log.warn(w({packageName:n})),{status:`bailed`,turboSnap:t}}}else{e.log.warn(`Could not retrieve dependency changes from lockfiles; checking package.json`);let t=await fa(e,a);if(t.length>0){l&&c&&(l.sentryEventId=y(c,{bailSubreason:l.bailSubreason,bailPath:`findChangedDependencies`,additionalTags:await A(e,c)}));let n={...e.turboSnap,bailReason:{changedPackageFiles:t,...l},previewConfigInStats:o};return e.log.warn(T({turboSnap:n})),{status:`bailed`,turboSnap:n}}}}await k(e,n);let u=await xa(e,n,r,i,s||[]),d={...u.turboSnap,previewConfigInStats:o};return u.status===`bailed`?{...u,turboSnap:d}:{...u,turboSnap:d,changedDependencyNames:s}}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return d}});
//# sourceMappingURL=v1-DYg5fzlf.cjs.map
//# debugId=3ede1013-5e6b-5dd8-8060-90fd16c7cb53