chromatic
Version:
Automate visual testing across browsers. Gather UI feedback. Versioned documentation.
520 lines • 904 kB
JavaScript
!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]="f2a5dac5-cac6-5902-8981-3c5a9d0b70e0")}catch(e){}}();
const e=require(`./chunk-gGpyby2o.cjs`),t=require(`./src-Cs-FRDH1.cjs`),n=require(`./meow-BcLCtnkU.cjs`),r=require(`./getStorybookProjectRoot-B4JmLKmL.cjs`);let i=require(`fs`);i=e.a(i);let a=require(`path`);a=e.a(a);let o=require(`os`);o=e.a(o);const s=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,c=`8.55.1`,l=globalThis;function u(e,t,n){let r=n||l,i=r.__SENTRY__=r.__SENTRY__||{},a=i[c]=i[`8.55.1`]||{};return a[e]||(a[e]=t())}const d=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,f=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],p={};function m(e){if(!(`console`in l))return e();let t=l.console,n={},r=Object.keys(p);r.forEach(e=>{let r=p[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function h(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return d?f.forEach(n=>{t[n]=(...t)=>{e&&m(()=>{l.console[n](`Sentry Logger [${n}]:`,...t)})}}):f.forEach(e=>{t[e]=()=>void 0}),t}const g=u(`logger`,h),_=/\(error: (.*)\)/,v=/captureMessage|captureException/;function y(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
`);for(let e=n;e<a.length;e++){let n=a[e];if(n.length>1024)continue;let o=_.test(n)?n.replace(_,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=50+r)break}}return x(i.slice(r))}}function b(e){return Array.isArray(e)?y(...e):e}function x(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(S(t).function||``)&&t.pop(),t.reverse(),v.test(S(t).function||``)&&(t.pop(),v.test(S(t).function||``)&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||S(t).filename,function:e.function||`?`}))}function S(e){return e[e.length-1]||{}}const C=`<anonymous>`;function w(e){try{return!e||typeof e!=`function`?C:e.name||C}catch{return C}}function T(){return E(l),l}function E(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`8.55.1`,t[c]=t[`8.55.1`]||{}}const D=Object.prototype.toString;function O(e){switch(D.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return re(e,Error)}}function k(e,t){return D.call(e)===`[object ${t}]`}function A(e){return k(e,`ErrorEvent`)}function j(e){return k(e,`String`)}function M(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function ee(e){return e===null||M(e)||typeof e!=`object`&&typeof e!=`function`}function te(e){return k(e,`Object`)}function N(e){return typeof Event<`u`&&re(e,Event)}function P(e){return typeof Element<`u`&&re(e,Element)}function ne(e){return k(e,`RegExp`)}function F(e){return!!(e&&e.then&&typeof e.then==`function`)}function I(e){return te(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function re(e,t){try{return e instanceof t}catch{return!1}}function L(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}const R=l;function z(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<5&&(o=B(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function B(e,t){let n=e,r=[];if(!n||!n.tagName)return``;if(R.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i&&i.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&j(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function V(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ie(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function H(e,t,n=!1){return j(e)?ne(t)?t.test(e):j(t)?n?e===t:e.includes(t):!1:!1}function U(e,t=[],n=!1){return t.some(t=>H(e,t,n))}function ae(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&se(i,r);try{e[t]=i}catch{d&&g.log(`Failed to replace method "${t}" in object`,e)}}function oe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{d&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function se(e,t){try{e.prototype=t.prototype=t.prototype||{},oe(e,`__sentry_original__`,t)}catch{}}function ce(e){return e.__sentry_original__}function W(e){if(O(e))return{message:e.message,name:e.name,stack:e.stack,...ue(e)};if(N(e)){let t={type:e.type,target:le(e.target),currentTarget:le(e.currentTarget),...ue(e)};return typeof CustomEvent<`u`&&re(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function le(e){try{return P(e)?z(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function ue(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function de(e,t=40){let n=Object.keys(W(e));n.sort();let r=n[0];if(!r)return`[object has no keys]`;if(r.length>=t)return V(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:V(r,t)}return``}function fe(e){return pe(e,new Map)}function pe(e,t){if(me(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.getOwnPropertyNames(e))e[n]!==void 0&&(r[n]=pe(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(pe(e,t))}),r}return e}function me(e){if(!te(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}const he=1e3;function ge(){return Date.now()/he}function _e(){let{performance:e}=l;if(!e||!e.now)return ge;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/he}const ve=_e();(()=>{let{performance:e}=l;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o==`number`?Math.abs(o+n-r):t;return a||s<t?i<=s?e.timeOrigin:o:r})();function ye(){let e=l,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,``);t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(n()&15)>>e/4).toString(16))}function be(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function xe(e){let{message:t,event_id:n}=e;if(t)return t;let r=be(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Se(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Ce(e,t){let n=be(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}const G=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function K(e){return parseInt(e||``,10)}function q(e){let t=e.match(G)||[],n=K(t[1]),r=K(t[2]),i=K(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function we(e){if(Te(e))return!0;try{oe(e,`__sentry_captured__`,!0)}catch{}return!1}function Te(e){try{return e.__sentry_captured__}catch{}}var Ee;(function(e){e[e.PENDING=0]=`PENDING`,e[e.RESOLVED=1]=`RESOLVED`,e[e.REJECTED=2]=`REJECTED`})(Ee||={});function De(e){return new ke(t=>{t(e)})}function Oe(e){return new ke((t,n)=>{n(e)})}var ke=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Ee.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=e=>{this._setResult(Ee.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ee.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Ee.PENDING){if(F(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ee.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Ee.RESOLVED&&e[1](this._value),this._state===Ee.REJECTED&&e[2](this._value),!0)})}}};function Ae(e){let t=ve(),n={sid:ye(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Ne(n)};return e&&je(n,e),n}function je(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ve(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ye()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Me(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),je(e,n)}function Ne(e){return fe({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function Pe(){return ye()}function Fe(){return ye().substring(16)}function Ie(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Ie(r[e],t[e],n-1));return r}const Le=`_sentrySpan`;function Re(e,t){t?oe(e,Le,t):delete e[Le]}function ze(e){return e[Le]}const Be=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Pe(),spanId:Fe()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Re(t,ze(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&je(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t=typeof e==`function`?e(this):e,[n,r]=t instanceof Be?[t.getScopeData(),t.getRequestSession()]:te(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Re(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Pe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:100;if(n<=0)return this;let r={timestamp:ge(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ze(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Ie(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Fe(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:ye();if(!this._client)return g.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:ye();if(!this._client)return g.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:ye();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(g.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Ve(){return u(`defaultCurrentScope`,()=>new Be)}function J(){return u(`defaultIsolationScope`,()=>new Be)}var Y=class{constructor(e,t){let n;n=e||new Be;let r;r=t||new Be,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return F(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function X(){let e=E(T());return e.stack=e.stack||new Y(Ve(),J())}function He(e){return X().withScope(e)}function Ue(e,t){let n=X();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function We(e){return X().withScope(()=>e(X().getIsolationScope()))}function Ge(){return{withIsolationScope:We,withScope:He,withSetScope:Ue,withSetIsolationScope:(e,t)=>We(t),getCurrentScope:()=>X().getScope(),getIsolationScope:()=>X().getIsolationScope()}}function Ke(e){let t=E(T());t.acs=e}function qe(e){let t=E(e);return t.acs?t.acs:Ge()}function Je(){return qe(T()).getCurrentScope()}function Ye(){return qe(T()).getIsolationScope()}function Xe(){return u(`globalScope`,()=>new Be)}function Ze(...e){let t=qe(T());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Qe(...e){let t=qe(T());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function $e(){return Je().getClient()}function et(e){let{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return fe({trace_id:t,span_id:n,parent_span_id:r})}function tt(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(fe(r));return n}const nt=`sentry.source`,rt=`sentry.sample_rate`,it=`sentry.op`,at=`sentry.origin`;function ot(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`unknown_error`}}const st=`sentry-`,ct=/^sentry-/;function lt(e){let t=dt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(ct)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function ut(e){if(e)return pt(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${st}${t}`]=n),e),{}))}function dt(e){if(!(!e||!j(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=ft(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ft(e)}function ft(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function pt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(d&&g.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}const mt=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function ht(e){if(!e)return;let t=e.match(mt);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function gt(e,t){let n=ht(e),r=lt(t);if(!n||!n.traceId)return{traceId:Pe(),spanId:Fe()};let{traceId:i,parentSpanId:a,parentSampled:o}=n;return{traceId:i,parentSpanId:a,spanId:Fe(),sampled:o,dsc:r||{}}}function _t(e=Pe(),t=Fe(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}let vt=!1;function yt(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=wt(e);return fe({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function bt(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext();return fe({parent_span_id:r?t:wt(e).parent_span_id,span_id:r?Fe():t,trace_id:n})}function xt(e){let{traceId:t,spanId:n}=e.spanContext();return _t(t,n,Dt(e))}function St(e){return typeof e==`number`?Ct(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ct(e.getTime()):ve()}function Ct(e){return e>9999999999?e/1e3:e}function wt(e){if(Et(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(Tt(e)){let{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return fe({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:St(i),timestamp:St(o)||void 0,status:Ot(c),op:r[it],origin:r[at],_metrics_summary:tt(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Tt(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Et(e){return typeof e.getSpanJSON==`function`}function Dt(e){let{traceFlags:t}=e.spanContext();return t===1}function Ot(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}const kt=`_sentryChildSpans`,At=`_sentryRootSpan`;function jt(e,t){oe(t,At,e[At]||e),e[kt]?e[kt].add(t):oe(e,kt,new Set([t]))}function Mt(e){let t=new Set;function n(e){if(!t.has(e)&&Dt(e)){t.add(e);let r=e[kt]?Array.from(e[kt]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function Nt(e){return e[At]||e}function Pt(){let e=qe(T());return e.getActiveSpan?e.getActiveSpan():ze(Je())}function Ft(){vt||=(m(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),!0)}function It(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=$e(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||`tracesSampleRate`in n||`tracesSampler`in n)}const Lt=`_frozenDsc`;function Rt(e,t){oe(e,Lt,t)}function zt(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=fe({environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e});return t.emit(`createDsc`,i),i}function Bt(e,t){let n=t.getPropagationContext();return n.dsc||zt(n.traceId,e)}function Vt(e){let t=$e();if(!t)return{};let n=Nt(e),r=n[Lt];if(r)return r;let i=n.spanContext().traceState,a=i&&i.get(`sentry.dsc`),o=a&<(a);if(o)return o;let s=zt(e.spanContext().traceId,t),c=wt(n),l=c.data||{},u=l[rt];u!=null&&(s.sample_rate=`${u}`);let d=l[nt],f=c.description;return d!==`url`&&f&&(s.transaction=f),It()&&(s.sampled=String(Dt(n))),t.emit(`createDsc`,s,n),s}function Ht(){let e=typeof WeakSet==`function`,t=e?new WeakSet:[];function n(n){if(e)return t.has(n)?!0:(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1}function r(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}return[n,r]}function Ut(e,t=100,n=1/0){try{return Gt(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Wt(e,t=3,n=100*1024){let r=Ut(e,t);return Z(r)>n?Wt(e,t-1,n):r}function Gt(e,t,n=1/0,r=1/0,i=Ht()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Kt(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Gt(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=W(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Gt(e,t,c-1,r,i),d++}return o(t),u}function Kt(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(L(t))return`[VueViewModel]`;if(I(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${w(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=qt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function qt(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:`null prototype`}function Jt(e){return~-encodeURI(e).split(/%..|./).length}function Z(e){return Jt(JSON.stringify(e))}function Q(e,t,n,r=0){return new ke((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let c=o({...t},n);s&&o.id&&c===null&&g.log(`Event processor "${o.id}" dropped event`),F(c)?c.then(t=>Q(e,t,n,r+1).then(i)).then(null,a):Q(e,c,n,r+1).then(i).then(null,a)}})}let Yt,Xt,Zt;function Qt(e){let t=l._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return Zt&&n.length===Xt?Zt:(Xt=n.length,Zt=n.reduce((n,r)=>{Yt||={};let i=Yt[r];if(i)n[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let a=i[e],o=a&&a.filename,s=t[r];if(o&&s){n[o]=s,Yt[r]=[o,s];break}}}return n},{}),Zt)}function $t(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;nn(e,t),r&&on(e,r),sn(e,n),rn(e,i),an(e,a)}function en(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;tn(e,`extra`,n),tn(e,`tags`,r),tn(e,`user`,i),tn(e,`contexts`,a),e.sdkProcessingMetadata=Ie(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function tn(e,t,n){e[t]=Ie(e[t],n,1)}function nn(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=fe(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=fe(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let u=fe(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=fe(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function rn(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function an(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function on(e,t){e.contexts={trace:bt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Vt(t),...e.sdkProcessingMetadata};let n=wt(Nt(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function sn(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function cn(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ye(),timestamp:t.timestamp||ge()},l=n.integrations||e.integrations.map(e=>e.name);ln(c,e),fn(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&un(c,e.stackParser);let u=mn(r,n.captureContext);n.mechanism&&Ce(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Xe().getScopeData();a&&en(f,a.getScopeData()),u&&en(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),$t(c,f),Q([...d,...f.eventProcessors],c,n).then(e=>(e&&dn(e),typeof o==`number`&&o>0?pn(e,o,s):e))}function ln(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&=V(e.message,a);let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=V(o.value,a));let s=e.request;s&&s.url&&(s.url=V(s.url,a))}function un(e,t){let n=Qt(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch{}}function dn(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function fn(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function pn(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ut(e.data,t,n)}}))},...e.user&&{user:Ut(e.user,t,n)},...e.contexts&&{contexts:Ut(e.contexts,t,n)},...e.extra&&{extra:Ut(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ut(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Ut(e.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Ut(e.contexts.flags,3,n)),r}function mn(e,t){if(!t)return e;let n=e?e.clone():new Be;return n.update(t),n}function hn(e){if(e)return gn(e)||vn(e)?{captureContext:e}:e}function gn(e){return e instanceof Be||typeof e==`function`}const _n=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`requestSession`,`propagationContext`];function vn(e){return Object.keys(e).some(e=>_n.includes(e))}function yn(e,t){return Je().captureException(e,hn(t))}function bn(e,t){return Je().captureEvent(e,t)}function xn(e,t){Ye().setContext(e,t)}function Sn(e,t){Ye().setTag(e,t)}async function Cn(e){let t=$e();return t?t.flush(e):(s&&g.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}function wn(){let e=$e();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Tn(e){let t=$e(),n=Ye(),r=Je(),{release:i,environment:a=`production`}=t&&t.getOptions()||{},{userAgent:o}=l.navigator||{},s=Ae({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status===`ok`&&je(c,{status:`exited`}),En(),n.setSession(s),r.setSession(s),s}function En(){let e=Ye(),t=Je(),n=t.getSession()||e.getSession();n&&Me(n),Dn(),e.setSession(),t.setSession()}function Dn(){let e=Ye(),t=Je(),n=$e(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function On(e,t){let n=$e(),r=Ye();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let o={timestamp:ge(),...e},s=i?m(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var kn=e.a(n.u()),An=n.l(),jn=e.a(r.ot());function Mn(e){return e.playwright||e.cypress||e.vitest}const Nn={OK:0,UNKNOWN_ERROR:255,BUILD_HAS_CHANGES:1,BUILD_HAS_ERRORS:2,BUILD_FAILED:3,BUILD_NO_STORIES:4,BUILD_WAS_LIMITED:5,BUILD_WAS_CANCELED:6,ACCOUNT_QUOTA_REACHED:11,ACCOUNT_PAYMENT_REQUIRED:12,STORYBOOK_BUILD_FAILED:21,STORYBOOK_START_FAILED:22,STORYBOOK_BROKEN:23,E2E_BUILD_FAILED:51,GIT_NOT_CLEAN:101,GIT_OUT_OF_DATE:102,GIT_NO_MERGE_BASE:103,NPM_INSTALL_FAILED:104,NPM_BUILD_STORYBOOK_FAILED:105,FETCH_ERROR:201,GRAPHQL_ERROR:202,MISSING_DEPENDENCY:210,VERIFICATION_TIMEOUT:220,INVALID_OPTIONS:254},Pn=(e,t,n=!1)=>{let[r]=Object.entries(Nn).find(([e,n])=>n===t)||[];if(!r)throw Error(`Invalid exitCode: ${t}`);e.exitCode=t,e.exitCodeKey=r,e.userError=n};var Fn=class extends Error{constructor(e,t){super(e),this.name=`TaskFailure`,this.exitCode=t.exitCode,this.userError=t.userError??!1}},In=e.t(((e,t)=>{(function(n,r){typeof require==`function`&&typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(function(){return r()}):n.pluralize=r()})(e,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)?!1: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){if(typeof e==`string`){n[e.toLowerCase()]=!0;return}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})})),Ln=e.t(((e,t)=>{(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={}))})(e,(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)}}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})=>{if(!(a||i)){if(o=!1,t){i=!0,s<=0&&r(null);return}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;return}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 P(e,t,n){return v(N,e,t,n)}var ne=g(P,3),F=_(ne);function I(e,t,n){return j(e,1,t,n)}var re=g(I,3);function L(e,t,n){return v(re,e,t,n)}var R=g(L,3),z=_(R);let B=Symbol(`promiseCallback`);function V(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[B]=new Promise((n,r)=>{e=n,t=r}),n}function ie(e,t,n){typeof t!=`number`&&(n=t,t=null),n=x(n||V());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);return}var r=n.slice(0,n.length-1),i=r.length;if(i===0){f(t,n),u.push(t);return}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;return}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[B]}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)}}),ie(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 re(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=V(),he(t,e,(e,t,r)=>{t.apply(n,e.concat((e,...t)=>{r(e,t)}))},(e,t)=>r(e,...t)),r[B]}}function _e(...e){return ge(...e.reverse())}function ve(e,t,n,r){return v(k(t),e,n,r)}var ye=g(ve,4);function be(e,t,n,r){var i=h(n);return ye(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 xe=g(be,4);function Se(e,t,n){return xe(e,1/0,t,n)}var Ce=g(Se,3);function G(e,t,n){return xe(e,1,t,n)}var K=g(G,3);function q(...e){return function(...t){return t.pop()(null,...e)}}function we(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 we(e=>e,(e,t)=>t)(N,e,t,n)}var Ee=g(Te,3);function De(e,t,n,r){return we(e=>e,(e,t)=>t)(k(t),e,n,r)}var Oe=g(De,4);function ke(e,t,n){return we(e=>e,(e,t)=>t)(k(1),e,t,n)}var Ae=g(ke,3);function je(e){return(t,...n)=>h(t)(...n,(t,...n)=>{typeof console==`object`&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var Me=je(`dir`);function Ne(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 Pe=g(Ne,3);function Fe(e,t,n){let r=h(t);return Pe(e,(...e)=>{let t=e.pop();r(...e,(e,n)=>t(e,!n))},n)}function Ie(e){return(t,n,r)=>e(t,r)}function Le(e,t,n){return N(e,Ie(h(t)),n)}var Re=g(Le,3);function ze(e,t,n,r){return k(t)(e,Ie(h(n)),r)}var Be=g(ze,4);function Ve(e,t,n){return Be(e,1,t,n)}var J=g(Ve,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 we(e=>!e,e=>!e)(N,e,t,n)}var He=g(X,3);function Ue(e,t,n,r){return we(e=>!e,e=>!e)(k(t),e,n,r)}var We=g(Ue,4);function Ge(e,t,n){return we(e=>!e,e=>!e)(re,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(re,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 ye(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=je(`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}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(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(re,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||V(),t=e):(Rt(r,e),n||=V()),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[B]}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=V());function a(e){i(...t,e)}return e?Lt(e,a,n):Lt(a,n),n[B]})}function Bt(e,t){return ht(re,e,t)}function Vt(e,t,n){return we(Boolean,e=>e)(N,e,t,n)}var Ht=g(Vt,3);function Ut(e,t,n,r){return we(Boolean,e=>e)(k(t),e,n,r)}var Wt=g(Ut,4);function Gt(e,t,n){return we(Boolean,e=>e)(re,e,t,n)}var Kt=g(Gt,3);function qt(e,t,n){var r=h(t);return ne(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=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 Q(e){for(var t=Array(e);e--;)t[e]=e;return t}function Yt(e,t,n,r){var i=h(n);return ye(Q(e),t,i,r)}function Xt(e,t,n){return Yt(e,1/0,t,n)}function Zt(e,t,n){return Yt(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||V());var i=h(n);return N(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[B]}function $t(e,t){var n=null,r;return J(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(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:F,applyEachSeries:z,asyncify:l,auto:ie,autoInject:W,cargo:fe,cargoQueue:pe,compose:_e,concat:Ce,concatLimit:xe,concatSeries:K,constant:q,detect:Ee,detectLimit:Oe,detectSeries:Ae,dir:Me,doUntil:Fe,doWhilst:Pe,each:Re,eachLimit:Be,eachOf:N,eachOfLimit:j,eachOfSeries:re,eachSeries:J,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:ne,mapLimit:ye,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:Xt,timesLimit:Yt,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:Ee,findLimit:Oe,findSeries:Ae,flatMap:Ce,flatMapLimit:xe,flatMapSeries:K,forEach:Re,forEachSeries:J,forEachLimit:Be,forEachOf:N,forEachOfSeries:re,forEachOfLimit:j,inject:he,foldl:he,foldr:Et,select:Ze,selectLimit:$e,selectSeries:tt,wrapSync:l,during:rn,doDuring:Pe};e.all=He,e.allLimit=We,e.allSeries=Ke,e.any=Ht,e.anyLimit=Wt,e.anySeries=Kt,e.apply=t,e.applyEach=F,e.applyEachSeries=z,e.asyncify=l,e.auto=ie,e.autoInject=W,e.cargo=fe,e.cargoQueue=pe,e.compose=_e,e.concat=Ce,e.concatLimit=xe,e.concatSeries=K,e.constant=q,e.default=cn,e.detect=Ee,e.detectLimit=Oe,e.detectSeries=Ae,e.dir=Me,e.doDuring=Pe,e.doUntil=Fe,e.doWhilst=Pe,e.during=rn,e.each=Re,e.eachLimit=Be,e.eachOf=N,e.eachOfLimit=j,e.eachOfSeries=re,e.eachSeries=J,e.ensureAsync=Y,e.every=He,e.everyLimit=We,e.everySeries=Ke,e.filter=Ze,e.filterLimit=$e,e.filterSeries=tt,e.find=Ee,e.findLimit=Oe,e.findSeries=Ae,e.flatMap=Ce,e.flatMapLimit=xe,e.flatMapSeries=K,e.foldl=he,e.foldr=Et,e.forEach=Re,e.forEachLimit=Be,e.forEachOf=N,e.forEachOfLimit=j,e.forEachOfSeries=re,e.forEachSeries=J,e.forever=rt,e.groupBy=ot,e.groupByLimit=at,e.groupBySeries=st,e.inject=he,e.log=ct,e.map=ne,e.mapLimit=ye,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=Xt,e.timesLimit=Yt,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})}))})),Rn=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=1/0,a=9007199254740991,o=`[object Arguments]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,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,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 h(e,t){return!!(e&&e.length)&&y(e,t,0)>-1}function g(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function _(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){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 y(e,t,n){if(t!==t)return v(e,b,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function b(e){return e!==e}function x(e,t){return e.has(t)}function S(e,t){return e?.[t]}function C(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function w(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var T=Array.prototype,E=Function.prototype,D=Object.prototype,O=p[`__core-js_shared__`],k=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),A=E.toString,j=D.hasOwnProperty,M=D.toString,ee=RegExp(`^`+A.call(j).replace(l,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),te=p.Symbol,N=D.propertyIsEnumerable,P=T.splice,ne=te?te.isConcatSpreadable:void 0,F=Math.max,I=K(p,`Map`),re=K(p,`Set`),L=K(Object,`create`);function R(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 z(){this.__data__=L?L(null):{}}function B(e){return this.has(e)&&delete this.__data__[e]}function V(e){var t=this.__data__;if(L){var n=t[e];return n===r?void 0:n}return j.call(t,e)?t[e]:void 0}function ie(e){var t=this.__data__;return L?t[e]!==void 0:j.call(t,e)}function H(e,t){var n=this.__data__;return n[e]=L&&t===void 0?r:t,this}R.prototype.clear=z,R.prototype.delete=B,R.prototype.get=V,R.prototype.has=ie,R.prototype.set=H;function U(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 ae(){this.__data__=[]}function oe(e){var t=this.__data__,n=ve(t,e);return n<0?!1:(n==t.length-1?t.pop():P.call(t,n,1),!0)}function se(e){var t=this.__data__,n=ve(t,e);return n<0?void 0:t[n][1]}function ce(e){return ve(this.__data__,e)>-1}function W(e,t){var n=this.__data__,r=ve(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}U.prototype.clear=ae,U.prototype.delete=oe,U.prototype.get=se,U.prototype.has=ce,U.prototype.set=W;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 ue(){this.__data__={hash:new R,map:new(I||U),string:new R}}function de(e){return G(this,e).delete(e)}function fe(e){return G(this,e).get(e)}function pe(e){return G(this,e).has(e)}function me(e,t){return G(this,e).set(e,t),this}le.prototype.clear=ue,le.prototype.delete=de,le.prototype.get=fe,le.prototype.has=pe,le.prototype.set=me;function he(e){var t=-1,n=e?e.length:0;for(this.__data__=new le;++t<n;)this.add(e[t])}function ge(e){return this.__data__.set(e,r),this}function _e(e){return this.__data__.has(e)}he.prototype.add=he.prototype.push=ge,he.prototype.has=_e;function ve(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function ye(e,t,n,r,i){var a=-1,o=e.length;for(n||=q,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ye(s,t-1,n,r,i):_(i,s):r||(i[i.length]=s)}return i}function be(e){return!Fe(e)||Te(e)?!1:(Ne(e)||C(e)?ee:u).test(Ee(e))}function xe(e,t){return t=F(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=F(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,m(e,this,o)}}function Se(e,t,r){var i=-1,a=h,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=g;else if(o>=n){var u=t?null:Ce(e);if(u)return w(u);s=!1,a=x,l=new he}else l=t?[]:c;outer:for(;++i<o;){var d=e[i],f=t?t(d):d;if(d=r||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,r)||(l!==c&&l.push(f),c.push(d))}return c}var Ce=re&&1/w(new re([,-0]))[1]==i?function(e){return new re(e)}:Le;function G(e,t){var n=e.__data__;return we(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function K(e,t){var n=S(e,t);return be(n)?n:void 0}function q(e){return Ae(e)||ke(e)||!!(ne&&e&&e[ne])}function we(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Te(e){return!!k&&k in e}function Ee(e){if(e!=null){try{return A.call(e)}catch{}try{return e+``}catch{}}return``}var De=xe(function(e){return Se(ye(e,1,Me,!0))});function Oe(e,t){return e===t||e!==e&&t!==t}function ke(e){return Me(e)&&j.call(e,`callee`)&&(!N.call(e,`callee`)||M.call(e)==o)}var Ae=Array.isArray;function je(e){return e!=null&&Pe(e.length)&&!Ne(e)}function Me(e){return Ie(e)&&je(e)}function Ne(e){var t=Fe(e)?M.call(e):``;return t==s||t==c}function Pe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=a}function Fe(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ie(e){return!!e&&typeof e==`object`}function Le(){}t.exports=De})),zn=e.a(In());const Bn=e=>Mn(e.options)?`test suite`:`Storybook`;function Vn(e){return Mn(e.options)?`test`:`story`}function Hn(e){return Mn(e.options)?`test suite`:`stories`}const Un=e=>e.charAt(0).toUpperCase()+e.slice(1);function Wn(e,{bailSubreason:t,bailPath:n,additionalTags:r}){return yn(e,{tags:{bail_path:n,...t&&{bail_detail:t},...r},...t&&{fingerprint:[t]}})}function Gn(e){let t=a.default.basename(e);return r.a.find(e=>t===e)}function Kn(e){if(e instanceof r.nt){let t=Gn(e.lockfilePath);return{bailSubreason:`lockfileSizeExceeded`,...t&&{lockfileKind:t},lockfileSizeBytes:e.lockfileSizeBytes}}if(e instanceof r.tt){let t=Gn(e.lockfilePath);return{bailSubreason:`lockfileParseFailed`,...t&&{lockfileKind:t}}}return e instanceof r.Q?{bailSubreason:`baselineCheckoutFailed`}:{}}function qn(e){return e instanceof r.Z?{bailSubreason:`ancestorMissing`}:e instanceof r.$?{bailSubreason:`baselineDirty`}:e instanceof r.rt?{bailSubreason:`networkError`}:e instanceof r.it?{bailSubreason:`replacementFailed`}:e instanceof r.et?{bailSubreason:`gitCommandFailed`}:{}}var Jn=({turboSnap:e})=>{let{changedPackageFiles:t,changedStaticFiles:i,changedStorybookFiles:a}=e?.bailReason||{},o=t||a||i,s=o?.every(e=>r.u(e)),[c,...l]=o||[],u=t?`package file`:`static file`;s&&(u=`dependency`),a&&(u=`Storybook config`);let d=``;l.length===1&&(d=kn.default` or its module sibling {bold ${l[0]}}`),l.length>1&&(d=kn.default` or one of its ${l.length} module siblings:\n{dim →} ${l.map(e=>kn.default.bold(e)).join(kn.default`\n{dim →} `)}`);let f=``,p=e?.bailPath;if(p&&p.length>1){let[e]=p;f=kn.default`\nThis was triggered by a change to {bold ${e}}, which is imported by {bold ${c}}:\n${p.map(e=>kn.default`{dim →} {bold ${e}}`).join(`
`)}`}return(0,An.dedent)(kn.default`
${n.c} {bold TurboSnap disabled due to file change}
Found a ${u} change in {bold ${c}}${d}${f}
A full build is required because this file cannot be linked to any specific stories.
${n.o} Read more at ${r.st(`https://www.chromatic.com/docs/turbosnap#how-it-works`)}
`)};const Yn=()=>(0,An.dedent)(kn.default`
${n.a} 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.
`),Xn=()=>(0,An.dedent)(kn.default`
${n.a} TurboSnap failed
Vitest run did not produce source file information for TurboSnap.
Make sure you've enabled ${kn.default.bold(`chromaticPlugin({ turboSnap: true })`)} in your test Vitest configuration before running tests.
${n.o} Read more at ${r.st(`https://www.chromatic.com/docs/vitest/turbosnap`)}
`);async function Zn(e,t){let n=await r.L(e);if(!n)throw Error(`Failed to determine repository root`);let{storybookBaseDir:o=a.default.relative(n,``)}=e.options,s=t.modules.filter(e=>!e.name.includes(`node_modules`)&&e.name!==`./storybook-stories.js`&&/\.(js|jsx|ts|tsx)$/.test(e.name));if(e.options.vitest&&s.length===0)throw Pn(e,Nn.INVALID_OPTIONS,!0),Error(Xn());let c=(0,jn.default)(1e3);try{await Promise.any(s.map(t=>c(()=>{let r=a.default.join(n,o,t.name);return new Promise((t,n)=>i.access(r,i=>{i?(e.log.debug(`Not found:`,r),n()):t(!0)}))})))}catch{throw e.log.debug(`Invalid storybookBaseDir: ${o}`),Pn(e,Nn.INVALID_OPTIONS,!0),Error(Yn())}}async function Qn(e,t){if(t instanceof r.Q)return $n(e,t)}async function $n(e,t){let{reference:n,fileName:i}=tr(t.pathspec);try{return await r.C(e,n)?{baseline_failure_kind:er(await r.k(e,n,`HEAD`,`:(glob,top)**/${a.default.basename(i)}`),i)}:{baseline_failure_kind:`baselineCommitMissing`}}catch(e){return On({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 er(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 tr(e){let t=e.indexOf(`:`);return{reference:e.slice(0,t),fileName:e.slice(t+1)}}var nr=e.t(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),rr=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=/^(?:0|[1-9]\d*)$/;function s(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function c(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function l(e,t){return function(n){return e(t(n))}}var u=Object.prototype,d=u.hasOwnProperty,f=u.toString,p=u.propertyIsEnumerable,m=l(Object.keys,Object);function h(e,t){var n=E(e)||T(e)?c(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||d.call(e,a))&&!(i&&(a==`length`||S(a,r)))&&n.push(a);return n}var g=b(v),_=x();function v(e,t){return e&&_(e,t,ee)}function y(e){if(!C(e))return m(e);var t=[];for(var n in Object(e))d.call(e,n)&&n!=`constructor`&&t.push(n);return t}function b(e,t){return function(n,r){if(n==null)return n;if(!D(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 x(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 S(e,t){return t??=n,!!t&&(typeof e==`number`||o.test(e))&&e>-1&&e%1==0&&e<t}function C(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||u)}function w(e,t){return(E(e)?s:g)(e,typeof t==`function`?t:te)}function T(e){return O(e)&&d.call(e,`callee`)&&(!p.call(e,`callee`)||f.call(e)==r)}var E=Array.isArray;function D(e){return e!=null&&A(e.length)&&!k(e)}function O(e){return M(e)&&D(e)}function k(e){var t=j(e)?f.call(e):``;return t==i||t==a}function A(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function j(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function M(e){return!!e&&typeof e==`object`}function ee(e){return D(e)?h(e):y(e)}function te(e){return e}t.exports=w})),ir=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=`[object Map]`,s=`[object Object]`,c=`[object Promise]`,l=`[object Set]`,u=`[object WeakMap]`,d=`[object DataView]`,f=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,m=typeof global==`object`&&global&&global.Object===Object&&global,h=typeof self==`object`&&self&&self.Object===Object&&self,g=m||h||Function(`return this`)(),_=typeof e==`object`&&e&&!e.nodeType&&e,v=_&&typeof t==`object`&&t&&!t.nodeType&&t,y=v&&v.exports===_;function b(e,t){return e?.[t]}function x(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function S(e,t){return function(n){return e(t(n))}}var C=Function.prototype,w=Object.prototype,T=g[`__core-js_shared__`],E=function(){var e=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),D=C.toString,O=w.hasOwnProperty,k=w.toString,A=RegExp(`^`+D.call(O).replace(f,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),j=y?g.Buffer:void 0,M=w.propertyIsEnumerable,ee=j?j.isBuffer:void 0,te=S(Object.keys,Object),N=U(g,`DataView`),P=U(g,`Map`),ne=U(g,`Promise`),F=U(g,`Set`),I=U(g,`WeakMap`),re=!M.call({valueOf:1},`valueOf`),L=ce(N),R=ce(P),z=ce(ne),B=ce(F),V=ce(I);function ie(e){return k.call(e)}function H(e){return!ge(e)||oe(e)?!1:(me(e)||x(e)?A:p).test(ce(e))}function U(e,t){var n=b(e,t);return H(n)?n:void 0}var ae=ie;(N&&ae(new N(new ArrayBuffer(1)))!=d||P&&ae(new P)!=o||ne&&ae(ne.resolve())!=c||F&&ae(new F)!=l||I&&ae(new I)!=u)&&(ae=function(e){var t=k.call(e),n=t==s?e.constructor:void 0,r=n?ce(n):void 0;if(r)switch(r){case L:return d;case R:return o;case z:return c;case B:return l;case V:return u}return t});function oe(e){return!!E&&E in e}function se(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||w)}function ce(e){if(e!=null){try{return D.call(e)}catch{}try{return e+``}catch{}}return``}function W(e){return de(e)&&O.call(e,`callee`)&&(!M.call(e,`callee`)||k.call(e)==r)}var le=Array.isArray;function ue(e){return e!=null&&he(e.length)&&!me(e)}function de(e){return _e(e)&&ue(e)}var fe=ee||ve;function pe(e){if(ue(e)&&(le(e)||typeof e==`string`||typeof e.splice==`function`||fe(e)||W(e)))return!e.length;var t=ae(e);if(t==o||t==l)return!e.size;if(re||se(e))return!te(e).length;for(var n in e)if(O.call(e,n))return!1;return!0}function me(e){var t=ge(e)?k.call(e):``;return t==i||t==a}function he(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function ge(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _e(e){return!!e&&typeof e==`object`}function ve(){return!1}t.exports=pe})),ar=e.t(((e,t)=>{var n=`[object AsyncFunction]`,r=`[object Function]`,i=`[object GeneratorFunction]`,a=`[object Null]`,o=`[object Proxy]`,s=`[object Undefined]`,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype,f=d.hasOwnProperty,p=d.toString,m=u.Symbol,h=m?m.toStringTag:void 0;function g(e){return e==null?e===void 0?s:a:h&&h in Object(e)?_(e):v(e)}function _(e){var t=f.call(e,h),n=e[h];try{e[h]=void 0;var r=!0}catch{}var i=p.call(e);return r&&(t?e[h]=n:delete e[h]),i}function v(e){return p.call(e)}function y(e){if(!b(e))return!1;var t=g(e);return t==r||t==i||t==n||t==o}function b(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=y})),or=e.t(((e,t)=>{function n(e){return e===void 0}t.exports=n})),sr=e.t(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,F=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,B={};B[D]=B[O]=B[k]=B[A]=B[j]=B[M]=B[ee]=B[te]=B[N]=!0,B[l]=B[u]=B[T]=B[d]=B[E]=B[f]=B[p]=B[m]=B[g]=B[_]=B[v]=B[b]=B[x]=B[S]=B[w]=!1;var V=typeof global==`object`&&global&&global.Object===Object&&global,ie=typeof self==`object`&&self&&self.Object===Object&&self,H=V||ie||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ae=U&&typeof t==`object`&&t&&!t.nodeType&&t,oe=ae&&ae.exports===U&&V.process,se=function(){try{return oe&&oe.binding(`util`)}catch{}}(),ce=se&&se.isTypedArray;function W(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 le(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ue(e){return function(t){return t?.[e]}}function de(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function fe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function pe(e){return function(t){return e(t)}}function me(e,t){return e?.[t]}function he(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ge(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function _e(e,t){return function(n){return e(t(n))}}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ye=Array.prototype,be=Function.prototype,xe=Object.prototype,Se=H[`__core-js_shared__`],Ce=function(){var e=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),G=be.toString,K=xe.hasOwnProperty,q=xe.toString,we=RegExp(`^`+G.call(K).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Te=H.Symbol,Ee=H.Uint8Array,De=xe.propertyIsEnumerable,Oe=ye.splice,ke=_e(Object.keys,Object),Ae=Vt(H,`DataView`),je=Vt(H,`Map`),Me=Vt(H,`Promise`),Ne=Vt(H,`Set`),Pe=Vt(H,`WeakMap`),Fe=Vt(Object,`create`),Ie=Zt(Ae),Le=Zt(je),Re=Zt(Me),ze=Zt(Ne),Be=Zt(Pe),Ve=Te?Te.prototype:void 0,J=Ve?Ve.valueOf:void 0,Y=Ve?Ve.toString:void 0;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__=Fe?Fe(null):{}}function Ue(e){return this.has(e)&&delete this.__data__[e]}function We(e){var t=this.__data__;if(Fe){var n=t[e];return n===i?void 0:n}return K.call(t,e)?t[e]:void 0}function Ge(e){var t=this.__data__;return Fe?t[e]!==void 0:K.call(t,e)}function Ke(e,t){var n=this.__data__;return n[e]=Fe&&t===void 0?i: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__=[]}function Ye(e){var t=this.__data__,n=ht(t,e);return n<0?!1:(n==t.length-1?t.pop():Oe.call(t,n,1),!0)}function Xe(e){var t=this.__data__,n=ht(t,e);return n<0?void 0:t[n][1]}function Ze(e){return ht(this.__data__,e)>-1}function Qe(e,t){var n=this.__data__,r=ht(n,e);return r<0?n.push([e,t]):n[r][1]=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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function et(){this.__data__={hash:new X,map:new(je||qe),string:new X}}function tt(e){return zt(this,e).delete(e)}function nt(e){return zt(this,e).get(e)}function rt(e){return zt(this,e).has(e)}function it(e,t){return zt(this,e).set(e,t),this}$e.prototype.clear=et,$e.prototype.delete=tt,$e.prototype.get=nt,$e.prototype.has=rt,$e.prototype.set=it;function at(e){var t=-1,n=e?e.length:0;for(this.__data__=new $e;++t<n;)this.add(e[t])}function ot(e){return this.__data__.set(e,i),this}function st(e){return this.__data__.has(e)}at.prototype.add=at.prototype.push=ot,at.prototype.has=st;function ct(e){this.__data__=new qe(e)}function lt(){this.__data__=new qe}function ut(e){return this.__data__.delete(e)}function dt(e){return this.__data__.get(e)}function ft(e){return this.__data__.has(e)}function pt(e,t){var r=this.__data__;if(r instanceof qe){var i=r.__data__;if(!je||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new $e(i)}return r.set(e,t),this}ct.prototype.clear=lt,ct.prototype.delete=ut,ct.prototype.get=dt,ct.prototype.has=ft,ct.prototype.set=pt;function mt(e,t){var n=nn(e)||tn(e)?fe(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||K.call(e,a))&&!(i&&(a==`length`||Wt(a,r)))&&n.push(a);return n}function ht(e,t){for(var n=e.length;n--;)if(en(e[n][0],t))return n;return-1}var gt=Pt(vt),_t=Ft();function vt(e,t){return e&&_t(e,t,hn)}function yt(e,t){t=Gt(t,e)?[t]:Nt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xt(t[n++])];return n&&n==r?e:void 0}function bt(e){return q.call(e)}function xt(e,t){return e!=null&&t in Object(e)}function St(e,t,n,r,i){return e===t?!0:e==null||t==null||!cn(e)&&!ln(t)?e!==e&&t!==t:Ct(e,t,St,n,r,i)}function Ct(e,t,n,r,i,a){var s=nn(e),c=nn(t),d=u,f=u;s||(d=Ht(e),d=d==l?v:d),c||(f=Ht(t),f=f==l?v:f);var p=d==v&&!he(e),m=f==v&&!he(t),h=d==f;if(h&&!p)return a||=new ct,s||dn(e)?It(e,t,n,r,i,a):Lt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&K.call(e,`__wrapped__`),_=m&&K.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new ct,n(y,b,r,i,a)}}return h?(a||=new ct,Rt(e,t,n,r,i,a)):!1}function wt(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new ct;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?St(f,d,r,a|o,p):m))return!1}}return!0}function Tt(e){return!cn(e)||qt(e)?!1:(on(e)||he(e)?we:R).test(Zt(e))}function Et(e){return ln(e)&&sn(e.length)&&!!B[q.call(e)]}function Dt(e){return typeof e==`function`?e:e==null?gn:typeof e==`object`?nn(e)?At(e[0],e[1]):kt(e):_n(e)}function Ot(e){if(!Jt(e))return ke(e);var t=[];for(var n in Object(e))K.call(e,n)&&n!=`constructor`&&t.push(n);return t}function kt(e){var t=Bt(e);return t.length==1&&t[0][2]?Q(t[0][0],t[0][1]):function(n){return n===e||wt(n,e,t)}}function At(e,t){return Gt(e)&&Z(t)?Q(Xt(e),t):function(n){var r=pn(n,e);return r===void 0&&r===t?mn(n,e):St(t,r,void 0,a|o)}}function jt(e){return function(t){return yt(t,e)}}function Mt(e){if(typeof e==`string`)return e;if(un(e))return Y?Y.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Nt(e){return nn(e)?e:Yt(e)}function Pt(e,t){return function(n,r){if(n==null)return n;if(!rn(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 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 It(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new at:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!le(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Lt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Ee(e),new Ee(t)));case d:case f:case _:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=ge;case x:var u=s&o;if(l||=ve,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=It(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(J)return J.call(e)==J.call(t)}return!1}function Rt(e,t,n,r,i,a){var s=i&o,c=hn(e),l=c.length;if(l!=hn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:K.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function zt(e,t){var n=e.__data__;return Kt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Bt(e){for(var t=hn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Z(i)]}return t}function Vt(e,t){var n=me(e,t);return Tt(n)?n:void 0}var Ht=bt;(Ae&&Ht(new Ae(new ArrayBuffer(1)))!=E||je&&Ht(new je)!=g||Me&&Ht(Me.resolve())!=y||Ne&&Ht(new Ne)!=x||Pe&&Ht(new Pe)!=w)&&(Ht=function(e){var t=q.call(e),n=t==v?e.constructor:void 0,r=n?Zt(n):void 0;if(r)switch(r){case Ie:return E;case Le:return g;case Re:return y;case ze:return x;case Be:return w}return t});function Ut(e,t,n){t=Gt(t,e)?[t]:Nt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Xt(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&&sn(a)&&Wt(o,a)&&(nn(e)||tn(e))}function Wt(e,t){return t??=c,!!t&&(typeof e==`number`||z.test(e))&&e>-1&&e%1==0&&e<t}function Gt(e,t){if(nn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||un(e)?!0:ne.test(e)||!P.test(e)||t!=null&&e in Object(t)}function Kt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function qt(e){return!!Ce&&Ce in e}function Jt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xe)}function Z(e){return e===e&&!cn(e)}function Q(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Yt=$t(function(e){e=fn(e);var t=[];return F.test(e)&&t.push(``),e.replace(I,function(e,n,r,i){t.push(r?i.replace(L,`$1`):n||e)}),t});function Xt(e){if(typeof e==`string`||un(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Zt(e){if(e!=null){try{return G.call(e)}catch{}try{return e+``}catch{}}return``}function Qt(e,t,n){var r=nn(e)?W:de,i=arguments.length<3;return r(e,Dt(t,4),n,i,gt)}function $t(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(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),o};return n.cache=new($t.Cache||$e),n}$t.Cache=$e;function en(e,t){return e===t||e!==e&&t!==t}function tn(e){return an(e)&&K.call(e,`callee`)&&(!De.call(e,`callee`)||q.call(e)==l)}var nn=Array.isArray;function rn(e){return e!=null&&sn(e.length)&&!on(e)}function an(e){return ln(e)&&rn(e)}function on(e){var t=cn(e)?q.call(e):``;return t==m||t==h}function sn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function cn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ln(e){return!!e&&typeof e==`object`}function un(e){return typeof e==`symbol`||ln(e)&&q.call(e)==C}var dn=ce?pe(ce):Et;function fn(e){return e==null?``:Mt(e)}function pn(e,t,n){var r=e==null?void 0:yt(e,t);return r===void 0?n:r}function mn(e,t){return e!=null&&Ut(e,t,xt)}function hn(e){return rn(e)?mt(e):Ot(e)}function gn(e){return e}function _n(e){return Gt(e)?ue(Xt(e)):jt(e)}t.exports=Qt})),cr=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=/^(?:0|[1-9]\d*)$/;function s(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 c(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function l(e,t){return s(t,function(t){return e[t]})}function u(e,t){return function(n){return e(t(n))}}var d=Object.prototype,f=d.hasOwnProperty,p=d.toString,m=d.propertyIsEnumerable,h=u(Object.keys,Object);function g(e,t){var n=x(e)||b(e)?c(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||f.call(e,a))&&!(i&&(a==`length`||v(a,r)))&&n.push(a);return n}function _(e){if(!y(e))return h(e);var t=[];for(var n in Object(e))f.call(e,n)&&n!=`constructor`&&t.push(n);return t}function v(e,t){return t??=n,!!t&&(typeof e==`number`||o.test(e))&&e>-1&&e%1==0&&e<t}function y(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||d)}function b(e){return C(e)&&f.call(e,`callee`)&&(!m.call(e,`callee`)||p.call(e)==r)}var x=Array.isArray;function S(e){return e!=null&&T(e.length)&&!w(e)}function C(e){return D(e)&&S(e)}function w(e){var t=E(e)?p.call(e):``;return t==i||t==a}function T(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function E(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function D(e){return!!e&&typeof e==`object`}function O(e){return S(e)?g(e):_(e)}function k(e){return e?l(e,O(e)):[]}t.exports=k})),lr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Graph=void 0;let t=nr(),n=rr(),r=rr(),i=ir(),a=ar(),o=or(),s=sr(),c=Rn(),l=cr();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)}})),ur=e.t(((e,t)=>{var n=9007199254740991,r=`[object Function]`,i=`[object GeneratorFunction]`,a=`[object Map]`,o=`[object Object]`,s=`[object Promise]`,c=`[object Set]`,l=`[object String]`,u=`[object WeakMap]`,d=`[object DataView]`,f=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,m=`\\ud800-\\udfff`,h=`\\u0300-\\u036f\\ufe20-\\ufe23`,g=`\\u20d0-\\u20f0`,_=`\\ufe0e\\ufe0f`,v=`[`+m+`]`,y=`[`+h+g+`]`,b=`\\ud83c[\\udffb-\\udfff]`,x=`(?:`+y+`|`+b+`)`,S=`[^`+m+`]`,C=`(?:\\ud83c[\\udde6-\\uddff]){2}`,w=`[\\ud800-\\udbff][\\udc00-\\udfff]`,T=`\\u200d`,E=x+`?`,D=`[`+_+`]?`,O=`(?:`+T+`(?:`+[S,C,w].join(`|`)+`)`+D+E+`)*`,k=D+E+O,A=`(?:`+[S+y+`?`,y,C,w,v].join(`|`)+`)`,j=RegExp(b+`(?=`+b+`)|`+A+k,`g`),M=RegExp(`[`+T+m+h+g+_+`]`),ee=typeof global==`object`&&global&&global.Object===Object&&global,te=typeof self==`object`&&self&&self.Object===Object&&self,N=ee||te||Function(`return this`)(),P=ne(`length`);function ne(e){return function(t){return t?.[e]}}function F(e,t){return e?.[t]}function I(e){return M.test(e)}function re(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function L(e,t){return function(n){return e(t(n))}}function R(e){return I(e)?z(e):P(e)}function z(e){for(var t=j.lastIndex=0;j.test(e);)t++;return t}var B=Function.prototype,V=Object.prototype,ie=N[`__core-js_shared__`],H=function(){var e=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),U=B.toString,ae=V.hasOwnProperty,oe=V.toString,se=RegExp(`^`+U.call(ae).replace(f,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ce=L(Object.keys,Object),W=xe(N,`DataView`),le=xe(N,`Map`),ue=xe(N,`Promise`),de=xe(N,`Set`),fe=xe(N,`WeakMap`),pe=K(W),me=K(le),he=K(ue),ge=K(de),_e=K(fe);function ve(e){return oe.call(e)}function ye(e){return!Oe(e)||Ce(e)?!1:(Ee(e)||re(e)?se:p).test(K(e))}function be(e){if(!G(e))return ce(e);var t=[];for(var n in Object(e))ae.call(e,n)&&n!=`constructor`&&t.push(n);return t}function xe(e,t){var n=F(e,t);return ye(n)?n:void 0}var Se=ve;(W&&Se(new W(new ArrayBuffer(1)))!=d||le&&Se(new le)!=a||ue&&Se(ue.resolve())!=s||de&&Se(new de)!=c||fe&&Se(new fe)!=u)&&(Se=function(e){var t=oe.call(e),n=t==o?e.constructor:void 0,r=n?K(n):void 0;if(r)switch(r){case pe:return d;case me:return a;case he:return s;case ge:return c;case _e:return u}return t});function Ce(e){return!!H&&H in e}function G(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||V)}function K(e){if(e!=null){try{return U.call(e)}catch{}try{return e+``}catch{}}return``}function q(e){if(e==null)return 0;if(Te(e))return Ae(e)?R(e):e.length;var t=Se(e);return t==a||t==c?e.size:be(e).length}var we=Array.isArray;function Te(e){return e!=null&&De(e.length)&&!Ee(e)}function Ee(e){var t=Oe(e)?oe.call(e):``;return t==r||t==i}function De(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function Oe(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ke(e){return!!e&&typeof e==`object`}function Ae(e){return typeof e==`string`||!we(e)&&ke(e)&&oe.call(e)==l}t.exports=q})),dr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CycleException=void 0,e.topsort=r;let t=rr(),n=ur();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})),fr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAcyclic=n;let t=dr();function n(e){try{(0,t.topsort)(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0}})),pr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dfs=n;let t=rr();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))}})),mr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.postorder=n;let t=pr();function n(e,n){return(0,t.dfs)(e,n,`post`)}})),hr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.alg=e.Graph=void 0;var t=lr();Object.defineProperty(e,`Graph`,{enumerable:!0,get:function(){return t.Graph}});let n=fr(),r=mr();e.alg={isAcyclic:n.isAcyclic,postorder:r.postorder}})),gr=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}}})),_r=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValidationError=void 0;let t=gr();e.ValidationError=class e extends t.CustomError{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),vr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValidationError=void 0;let t=_r();Object.defineProperty(e,`ValidationError`,{enumerable:!0,get:function(){return t.ValidationError}})})),yr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateGraph=i;let t=hr(),n=vr();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`)}})),br=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=1,a=2,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Promise]`,b=`[object Proxy]`,x=`[object RegExp]`,S=`[object Set]`,C=`[object String]`,w=`[object Symbol]`,T=`[object Undefined]`,E=`[object WeakMap]`,D=`[object ArrayBuffer]`,O=`[object DataView]`,k=`[object Float32Array]`,A=`[object Float64Array]`,j=`[object Int8Array]`,M=`[object Int16Array]`,ee=`[object Int32Array]`,te=`[object Uint8Array]`,N=`[object Uint8ClampedArray]`,P=`[object Uint16Array]`,ne=`[object Uint32Array]`,F=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,L={};L[k]=L[A]=L[j]=L[M]=L[ee]=L[te]=L[N]=L[P]=L[ne]=!0,L[s]=L[c]=L[D]=L[u]=L[O]=L[d]=L[f]=L[p]=L[h]=L[g]=L[v]=L[x]=L[S]=L[C]=L[E]=!1;var R=typeof global==`object`&&global&&global.Object===Object&&global,z=typeof self==`object`&&self&&self.Object===Object&&self,B=R||z||Function(`return this`)(),V=typeof e==`object`&&e&&!e.nodeType&&e,ie=V&&typeof t==`object`&&t&&!t.nodeType&&t,H=ie&&ie.exports===V,U=H&&R.process,ae=function(){try{return U&&U.binding&&U.binding(`util`)}catch{}}(),oe=ae&&ae.isTypedArray;function se(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 ce(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function W(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 le(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ue(e){return function(t){return e(t)}}function de(e,t){return e.has(t)}function fe(e,t){return e?.[t]}function pe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function me(e,t){return function(n){return e(t(n))}}function he(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ge=Array.prototype,_e=Function.prototype,ve=Object.prototype,ye=B[`__core-js_shared__`],be=_e.toString,xe=ve.hasOwnProperty,Se=function(){var e=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ce=ve.toString,G=RegExp(`^`+be.call(xe).replace(F,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),K=H?B.Buffer:void 0,q=B.Symbol,we=B.Uint8Array,Te=ve.propertyIsEnumerable,Ee=ge.splice,De=q?q.toStringTag:void 0,Oe=Object.getOwnPropertySymbols,ke=K?K.isBuffer:void 0,Ae=me(Object.keys,Object),je=kt(B,`DataView`),Me=kt(B,`Map`),Ne=kt(B,`Promise`),Pe=kt(B,`Set`),Fe=kt(B,`WeakMap`),Ie=kt(Object,`create`),Le=Rt(je),Re=Rt(Me),ze=Rt(Ne),Be=Rt(Pe),Ve=Rt(Fe),J=q?q.prototype:void 0,Y=J?J.valueOf:void 0;function X(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 He(){this.__data__=Ie?Ie(null):{},this.size=0}function Ue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function We(e){var t=this.__data__;if(Ie){var n=t[e];return n===r?void 0:n}return xe.call(t,e)?t[e]:void 0}function Ge(e){var t=this.__data__;return Ie?t[e]!==void 0:xe.call(t,e)}function Ke(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Ie&&t===void 0?r: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==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Je(){this.__data__=[],this.size=0}function Ye(e){var t=this.__data__,n=ht(t,e);return n<0?!1:(n==t.length-1?t.pop():Ee.call(t,n,1),--this.size,!0)}function Xe(e){var t=this.__data__,n=ht(t,e);return n<0?void 0:t[n][1]}function Ze(e){return ht(this.__data__,e)>-1}function Qe(e,t){var n=this.__data__,r=ht(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=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==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function et(){this.size=0,this.__data__={hash:new X,map:new(Me||qe),string:new X}}function tt(e){var t=Ot(this,e).delete(e);return this.size-=+!!t,t}function nt(e){return Ot(this,e).get(e)}function rt(e){return Ot(this,e).has(e)}function it(e,t){var n=Ot(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}$e.prototype.clear=et,$e.prototype.delete=tt,$e.prototype.get=nt,$e.prototype.has=rt,$e.prototype.set=it;function at(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $e;++t<n;)this.add(e[t])}function ot(e){return this.__data__.set(e,r),this}function st(e){return this.__data__.has(e)}at.prototype.add=at.prototype.push=ot,at.prototype.has=st;function ct(e){var t=this.__data__=new qe(e);this.size=t.size}function lt(){this.__data__=new qe,this.size=0}function ut(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function dt(e){return this.__data__.get(e)}function ft(e){return this.__data__.has(e)}function pt(e,t){var r=this.__data__;if(r instanceof qe){var i=r.__data__;if(!Me||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new $e(i)}return r.set(e,t),this.size=r.size,this}ct.prototype.clear=lt,ct.prototype.delete=ut,ct.prototype.get=dt,ct.prototype.has=ft,ct.prototype.set=pt;function mt(e,t){var n=Vt(e),r=!n&&Bt(e),i=!n&&!r&&Ut(e),a=!n&&!r&&!i&&Z(e),o=n||r||i||a,s=o?le(e.length,String):[],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`)||Nt(l,c)))&&s.push(l);return s}function ht(e,t){for(var n=e.length;n--;)if(zt(e[n][0],t))return n;return-1}function gt(e,t,n){var r=t(e);return Vt(e)?r:ce(r,n(e))}function _t(e){return e==null?e===void 0?T:_:De&&De in Object(e)?At(e):Lt(e)}function vt(e){return Jt(e)&&_t(e)==s}function yt(e,t,n,r,i){return e===t?!0:e==null||t==null||!Jt(e)&&!Jt(t)?e!==e&&t!==t:bt(e,t,n,r,yt,i)}function bt(e,t,n,r,a,o){var l=Vt(e),u=Vt(t),d=l?c:Mt(e),f=u?c:Mt(t);d=d==s?v:d,f=f==s?v:f;var p=d==v,m=f==v,h=d==f;if(h&&Ut(e)){if(!Ut(t))return!1;l=!0,p=!1}if(h&&!p)return o||=new ct,l||Z(e)?wt(e,t,n,r,a,o):Tt(e,t,d,n,r,a,o);if(!(n&i)){var g=p&&xe.call(e,`__wrapped__`),_=m&&xe.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return o||=new ct,a(y,b,n,r,o)}}return h?(o||=new ct,Et(e,t,n,r,a,o)):!1}function xt(e){return!qt(e)||Ft(e)?!1:(Gt(e)?G:I).test(Rt(e))}function St(e){return Jt(e)&&Kt(e.length)&&!!L[_t(e)]}function Ct(e){if(!It(e))return Ae(e);var t=[];for(var n in Object(e))xe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function wt(e,t,n,r,o,s){var c=n&i,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=n&a?new at:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!W(t,function(e,t){if(!de(m,t)&&(h===e||o(h,e,n,r,s)))return m.push(t)})){p=!1;break}}else if(!(h===g||o(h,g,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Tt(e,t,n,r,o,s,c){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!s(new we(e),new we(t)));case u:case d:case g:return zt(+e,+t);case f:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+``;case h:var l=pe;case S:var p=r&i;if(l||=he,e.size!=t.size&&!p)return!1;var m=c.get(e);if(m)return m==t;r|=a,c.set(e,t);var _=wt(l(e),l(t),r,o,s,c);return c.delete(e),_;case w:if(Y)return Y.call(e)==Y.call(t)}return!1}function Et(e,t,n,r,a,o){var s=n&i,c=Dt(e),l=c.length;if(l!=Dt(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);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(!(_===void 0?h===g||a(h,g,n,r,o):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p}function Dt(e){return gt(e,Q,jt)}function Ot(e,t){var n=e.__data__;return Pt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function kt(e,t){var n=fe(e,t);return xt(n)?n:void 0}function At(e){var t=xe.call(e,De),n=e[De];try{e[De]=void 0;var r=!0}catch{}var i=Ce.call(e);return r&&(t?e[De]=n:delete e[De]),i}var jt=Oe?function(e){return e==null?[]:(e=Object(e),se(Oe(e),function(t){return Te.call(e,t)}))}:Yt,Mt=_t;(je&&Mt(new je(new ArrayBuffer(1)))!=O||Me&&Mt(new Me)!=h||Ne&&Mt(Ne.resolve())!=y||Pe&&Mt(new Pe)!=S||Fe&&Mt(new Fe)!=E)&&(Mt=function(e){var t=_t(e),n=t==v?e.constructor:void 0,r=n?Rt(n):``;if(r)switch(r){case Le:return O;case Re:return h;case ze:return y;case Be:return S;case Ve:return E}return t});function Nt(e,t){return t??=o,!!t&&(typeof e==`number`||re.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!!Se&&Se in e}function It(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ve)}function Lt(e){return Ce.call(e)}function Rt(e){if(e!=null){try{return be.call(e)}catch{}try{return e+``}catch{}}return``}function zt(e,t){return e===t||e!==e&&t!==t}var Bt=vt(function(){return arguments}())?vt:function(e){return Jt(e)&&xe.call(e,`callee`)&&!Te.call(e,`callee`)},Vt=Array.isArray;function Ht(e){return e!=null&&Kt(e.length)&&!Gt(e)}var Ut=ke||Xt;function Wt(e,t){return yt(e,t)}function Gt(e){if(!qt(e))return!1;var t=_t(e);return t==p||t==m||t==l||t==b}function Kt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function qt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Jt(e){return typeof e==`object`&&!!e}var Z=oe?ue(oe):St;function Q(e){return Ht(e)?mt(e):Ct(e)}function Yt(){return[]}function Xt(){return!1}t.exports=Wt})),xr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DepGraphImpl=void 0;let t=br(),n=hr(),r=Sr();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=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=new Set){if((o||r!==n.rootNodeId&&a!==i.rootNodeId)&&(!t(n.getNodePkg(r),i.getNodePkg(a))||!t(n.getNode(r),i.getNode(a))))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=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`})),Sr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SUPPORTED_SCHEMA_RANGE=void 0,e.createFromJSON=o;let t=require(`semver`),n=hr(),r=vr(),i=yr(),a=xr();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]=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`)}})),Cr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DepGraphBuilder=void 0;let t=hr(),n=xr();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]=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]||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)}}})),wr=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()}))}}})),$=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.eventLoopSpinner=e.EventLoopSpinner=void 0;let t=wr();Object.defineProperty(e,`EventLoopSpinner`,{enumerable:!0,get:function(){return t.EventLoopSpinner}}),e.eventLoopSpinner=new t.EventLoopSpinner})),Tr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createChangedPackagesGraph=i;let t=xr(),n=Cr(),r=$();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=new Set([o.rootNodeId]);for(;u.length>0;){let[e,t]=u.pop();if(d.has(e)){l.connectDep(e,t);continue}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}})),Er=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:!1}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}}}})),Dr=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}}})),Or=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}})),kr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.depTreeToGraph=c,e.graphToDepTree=d;let t=require(`crypto`),n=$(),r=Cr(),i=Er(),a=Dr(),o=Or();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=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=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=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))}})),Ar=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacy=e.Errors=e.createChangedPackagesGraph=e.DepGraphBuilder=e.createFromJSON=void 0;var t=Sr();Object.defineProperty(e,`createFromJSON`,{enumerable:!0,get:function(){return t.createFromJSON}});var n=Cr();Object.defineProperty(e,`DepGraphBuilder`,{enumerable:!0,get:function(){return n.DepGraphBuilder}});var r=Tr();Object.defineProperty(e,`createChangedPackagesGraph`,{enumerable:!0,get:function(){return r.createChangedPackagesGraph}}),e.Errors=vr(),e.legacy=kr()})),jr=Ar();const Mr=async(e,t)=>{let n=new Set,r=await(0,jr.createChangedPackagesGraph)(t,e),i=await(0,jr.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 Nr=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)}}})),Pr=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)}}})),Fr=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)}}})),Ir=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)}}})),Lr=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)}}})),Rr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsupportedError=e.TreeSizeLimitError=e.OutOfSyncError=e.UnsupportedRuntimeError=e.InvalidUserInputError=void 0;var t=Nr();Object.defineProperty(e,`InvalidUserInputError`,{enumerable:!0,get:function(){return t.InvalidUserInputError}});var n=Pr();Object.defineProperty(e,`UnsupportedRuntimeError`,{enumerable:!0,get:function(){return n.UnsupportedRuntimeError}});var r=Fr();Object.defineProperty(e,`OutOfSyncError`,{enumerable:!0,get:function(){return r.OutOfSyncError}});var i=Ir();Object.defineProperty(e,`TreeSizeLimitError`,{enumerable:!0,get:function(){return i.TreeSizeLimitError}});var a=Lr();Object.defineProperty(e,`UnsupportedError`,{enumerable:!0,get:function(){return a.UnsupportedError}})})),zr=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:!1:!0,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:!1:!0,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:!1:!0,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),b=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),x=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=RegExp(`^-?(?:0|[1-9][0-9]*)$`),E=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=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=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),N=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function P(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 ne(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 F=n(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:P,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:ne}),I=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),re=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(!re.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(!I.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}),B=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))$`),V=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ie(e){if(!B.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)||V.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:ie,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=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),ue=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: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}),ye=i(`tag:yaml.org,2002:map`,{create:()=>({}),identify:he,represent:e=>{let t=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}}),be=i(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=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 xe(e){"@babel/helpers - typeof";return xe=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},xe(e)}function Se(e,t){if(xe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ce(e){var t=Se(e,`string`);return xe(t)==`symbol`?t:t+``}function G(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Te(){return{scalar:[],sequence:[],mapping:[]}}function Ee(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 De=class e{constructor(e){G(this,`tags`,void 0),G(this,`implicitScalarTags`,void 0),G(this,`implicitScalarByFirstChar`,void 0),G(this,`implicitScalarAnyFirstChar`,void 0),G(this,`defaultScalarTag`,void 0),G(this,`defaultSequenceTag`,void 0),G(this,`defaultMappingTag`,void 0),G(this,`exact`,void 0),G(this,`prefix`,void 0);let t=Ee(e),n=[],r=we(),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;break}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=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])}},Oe=new De([a,me,ye]),ke=new De([...Oe.tags,c,g,k,z]),Ae=new De([...Oe.tags,s,p,w,F]),je=new De([...Oe.tags,u,y,ee,U,pe,ae,W,_e,ve,be]),Me=je.withTags(q(q({},ee),{},{resolve:(e,n,r)=>{let i=ee.resolve(e,n,r);return i===t?w.resolve(e,n,r):i}}),q(q({},U),{},{resolve:(e,n,r)=>{let i=U.resolve(e,n,r);return i===t?F.resolve(e,n,r):i}})),Ne=i(`tag:yaml.org,2002:map`,{create:()=>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=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function Pe(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 Fe=i(`tag:yaml.org,2002:map`,{create:()=>({}),identify:he,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Pe(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=Pe(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}}),Ie={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Le(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 Re(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function ze(e,t){if(!e.buffer)return null;let n=q(q({},Ie),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=Le(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${Re((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=Le(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${Re((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=Le(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${Re((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function Be(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 Ve=class e extends Error{constructor(e,t){super(),G(this,`reason`,void 0),G(this,`mark`,void 0),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Be(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Be(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=ze(s),new e(r,s)}},J={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:Ae,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){Ve.throwAt(e.source,e.position,t,e.filename)}function ft(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Ve)throw n;Ve.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??=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=q(q(q({},lt),t),{},{events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags: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 J.DOCUMENT:n.anchors=new Map,n.nodeTags=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 J.SCALAR:{let{value:t,tag:r}=pt(n,e);xt(n,e,t,r,!0),bt(n,t,r);break}case J.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 J.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 J.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 J.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:J.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function zt(e,t,n,r,i,a,o){e.events.push({type:J.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:J.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function Vt(e,t){e.events.splice(t.eventsLength,0,{type:J.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:J.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:J.ALIAS,anchorStart:t,anchorEnd:n})}function Wt(e){e.events.push({type:J.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){Ve.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function Q(e){return e===10||e===13}function Yt(e){return e===9||e===32}function Xt(e){return Yt(e)||Q(e)}function Zt(e){return e===0||Xt(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||Xt(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Yt(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(!Q(r)&&r!==0);if(!Q(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||Xt(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&&!Q(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&&!Xt(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&&!Xt(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&&!Xt(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}Q(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(Q(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 Q(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(;Yt(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&ln(e),Q(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&&Q(i)&&(u=Math.max(u,r)),!o&&l===-1&&!Q(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&&!Q(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!Q(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!Q(i)&&r<a){e.lineIndent=r,e.position=n+r;break}ln(e),f=e.position,Q(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||Xt(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(Xt(e.input.charCodeAt(e.position-1)))break}else if(s&&Qt(o))break;else if(Q(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}Yt(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a===i?!1:(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&&Xt(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?i=!1:(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);Yt(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);Yt(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===J.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===J.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&&!Xt(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&&!Q(e.input.charCodeAt(e.position));){for(;Yt(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Q(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Xt(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(Q(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===J.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=q(q(q({},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&&Ve.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&&Z(r,`can not read a document`)}return r.events}var On=q(q({},Lt),lt);function kn(e,t={}){let n=q(q({},On),t),r=String(e),i=Object.keys(Lt),a=Object.keys(lt);return St(Dn(r,ge(n,i)),q(q({},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 Ve(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Ve(`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 Ve(`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: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;break}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)!=0}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=`[,\\[\\]{}]`,sr=rr,cr=`(?:(?!${or})${rr})`,lr=`(?:(?:(?!${ar})${rr})|[?:-](?=${sr}))`,ur=`(?:(?:(?!${ar})${rr})|[?:-](?=${cr}))`,dr=`(?:(?:(?![:#])${sr})|:(?=${sr}))#*`,fr=`(?:(?:(?![:#])${cr})|:(?=${cr}))#*`,pr=`(?:${tr}*${dr})*`,mr=`(?:${tr}*${fr})*`,hr=`${lr}#*${pr}`,gr=`${ur}#*${mr}`,_r=hr,vr=gr,yr=`\\n+${dr}${pr}`,br=`\\n+${fr}${mr}`,xr=`${hr}(?:${yr})*`,Sr=`${gr}(?:${br})*`,Cr=RegExp(`^(?:${xr})$`,`u`),wr=RegExp(`^(?:${Sr})$`,`u`),$=RegExp(`^(?:${_r})$`,`u`),Tr=RegExp(`^(?:${vr})$`,`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:$:e.flowOnly?wr:Cr).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=q(q({},$r),e);return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),q(q({},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`?!0: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=q(q({},$r),{},{schema:Me,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=q(q({},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,q(q({},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 J.DOCUMENT:{let e={contents:null,explicitStart:t.explicitStart,explicitEnd:t.explicitEnd,directives:t.directives};n.frames.push({kind:`document`,doc:e});break}case J.SCALAR:Si(n,bi(n,t));break;case J.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 J.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 J.ALIAS:Si(n,{kind:`alias`,anchor:n.source.slice(t.anchorStart,t.anchorEnd)});break;case J.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=J.DOCUMENT,Ti=J.SEQUENCE,Ei=J.MAPPING,Di=J.SCALAR,Oi=J.ALIAS,ki=J.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=Ae,e.DEFAULT_SCALAR_STYLE_RULES=Hn,e.DUMP_SCHEMA=Me,e.EVENT_ALIAS=Oi,e.EVENT_DOCUMENT=wi,e.EVENT_ID=J,e.EVENT_MAPPING=Ei,e.EVENT_POP=ki,e.EVENT_SCALAR=Di,e.EVENT_SEQUENCE=Ti,e.FAILSAFE_SCHEMA=Oe,e.JSON_SCHEMA=ke,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=De,e.VISIT_BREAK=Ln,e.VISIT_SKIP=Rn,e.YAML11_SCHEMA=je,e.YAMLException=Ve,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=F,e.floatJsonTag=z,e.floatYaml11Tag=U,e.getScalarValue=nt,e.intCoreTag=w,e.intJsonTag=k,e.intYaml11Tag=ee,e.jsToAst=In,e.legacyMapTag=Fe,e.load=jn,e.loadAll=An,e.mapTag=ye,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=Ne,e.seqTag=me,e.setTag=be,e.strTag=a,e.timestampTag=pe,e.visit=Bn})),Br=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}}})),Vr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=`ffffffff-ffff-ffff-ffff-ffffffffffff`})),Hr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=`00000000-0000-0000-0000-000000000000`})),Ur=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})),Wr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Ur();function n(e){return typeof e==`string`&&t.default.test(e)}e.default=n})),Gr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Wr();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})),Kr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unsafeStringify=void 0;let t=Wr(),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})),qr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=require(`crypto`),n=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})),Jr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateV1State=void 0;let t=qr(),n=Kr(),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=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})),Yr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Gr(),n=Kr();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])}})),Xr=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})),Zr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=e.stringToBytes=void 0;let t=Gr(),n=Kr();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})),Qr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=void 0;let t=Xr(),n=Zr();var r=Zr();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})),$r=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={randomUUID:require(`crypto`).randomUUID}})),ei=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=$r(),n=qr(),r=Kr();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})),ti=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})),ni=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=void 0;let t=ti(),n=Zr();var r=Zr();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})),ri=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Kr(),n=Jr(),r=Yr();function i(e,i,a){e??={},a??=0;let o=(0,n.default)({...e,_v6:!0},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})),ii=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Gr(),n=Kr();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])}})),ai=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateV7State=void 0;let t=qr(),n=Kr(),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=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})),oi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Wr();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}e.default=n})),si=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=Vr();Object.defineProperty(e,`MAX`,{enumerable:!0,get:function(){return t.default}});var n=Hr();Object.defineProperty(e,`NIL`,{enumerable:!0,get:function(){return n.default}});var r=Gr();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.default}});var i=Kr();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.default}});var a=Jr();Object.defineProperty(e,`v1`,{enumerable:!0,get:function(){return a.default}});var o=Yr();Object.defineProperty(e,`v1ToV6`,{enumerable:!0,get:function(){return o.default}});var s=Qr();Object.defineProperty(e,`v3`,{enumerable:!0,get:function(){return s.default}});var c=ei();Object.defineProperty(e,`v4`,{enumerable:!0,get:function(){return c.default}});var l=ni();Object.defineProperty(e,`v5`,{enumerable:!0,get:function(){return l.default}});var u=ri();Object.defineProperty(e,`v6`,{enumerable:!0,get:function(){return u.default}});var d=ii();Object.defineProperty(e,`v6ToV1`,{enumerable:!0,get:function(){return d.default}});var f=ai();Object.defineProperty(e,`v7`,{enumerable:!0,get:function(){return f.default}});var p=Wr();Object.defineProperty(e,`validate`,{enumerable:!0,get:function(){return p.default}});var m=oi();Object.defineProperty(e,`version`,{enumerable:!0,get:function(){return m.default}})})),ci=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);break}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}}})),li=e.t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),(r._(),e.i(r.v)).__exportStar(ci(),t)})),ui=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProblemError=void 0;let t=Br(),n=si(),r=li();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,r&&r.overrideErrorId?this.id=r.overrideErrorId:this.id=(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}}})),di=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=Br(),n=ui();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}}})),fi=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=Br(),n=ui();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}}})),pi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalServerError=e.StorageFailureError=e.DataTransformationError=e.InvalidResponseError=e.InvalidRequestError=void 0;let t=Br(),n=ui();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}}})),mi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalServerError=e.StorageFailureError=e.DataTransformationError=e.InvalidResponseError=e.InvalidRequestError=void 0;let t=Br(),n=ui();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}}})),hi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidPolicyApplyError=void 0;let t=Br(),n=ui();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}}})),gi=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=Br(),n=ui();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}}})),_i=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=Br(),n=ui();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}}})),vi=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=Br(),n=ui();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}}})),yi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Sha1NotFoundError=e.MavenSearchServiceUnavailableError=void 0;let t=Br(),n=ui();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}}})),bi=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=Br(),n=ui();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}}})),xi=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=Br(),n=ui();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}}})),Si=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=Br(),n=ui();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}}})),Ci=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=Br(),n=ui();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}}})),wi=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=Br(),n=ui();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}}})),Ti=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=Br(),n=ui();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}}})),Ei=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=Br(),n=ui();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}}})),Di=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.IntegrationNotFoundError=void 0;let t=Br(),n=ui();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}}})),Oi=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoUniqueTargetFoundError=e.TargetNotFoundError=void 0;let t=Br(),n=ui();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}}})),ki=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=Br(),n=ui();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}}})),Ai=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=Br(),n=ui();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}}})),ji=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoSupportedFilesError=e.ForbiddenError=e.InternalError=void 0;let t=Br(),n=ui();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}}})),Mi=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=di(),e.OpenSourceEcosystems=fi(),e.OpenSourceProjectSnapshots=pi(),e.OpenSourceProjectIssues=mi(),e.Policies=hi(),e.PurlVulnerabilityFetching=gi(),e.IsolatedBuilds=_i(),e.OpenAPI=vi(),e.OpenSourceUnmanaged=yi(),e.SbomTest=bi(),e.SbomExport=xi(),e.Fix=Si(),e.Code=Ci(),e.PRChecks=wi(),e.CLI=Ti(),e.CustomBaseImages=Ei(),e.Integration=Di(),e.Target=Oi(),e.SCM=ki(),e.UploadRevision=Ai(),e.AiBom=ji()})),Ni=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CompositeError=void 0;let t=Br();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)}}})),Pi=e.t((t=>{Object.defineProperty(t,`__esModule`,{value:!0});let n=(r._(),e.i(r.v));n.__exportStar(ui(),t),n.__exportStar(Mi(),t),n.__exportStar(Ni(),t)})),Fi=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=zr(),r=Rr(),i=Pi();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}})),Ii=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=Rr(),n=Fi();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}`)}}})),Li=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object GeneratorFunction]`,f=`[object Map]`,p=`[object Number]`,m=`[object Object]`,h=`[object Promise]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object Symbol]`,b=`[object WeakMap]`,x=`[object ArrayBuffer]`,S=`[object DataView]`,C=`[object Float32Array]`,w=`[object Float64Array]`,T=`[object Int8Array]`,E=`[object Int16Array]`,D=`[object Int32Array]`,O=`[object Uint8Array]`,k=`[object Uint8ClampedArray]`,A=`[object Uint16Array]`,j=`[object Uint32Array]`,M=/[\\^$.*+?()[\]{}|]/g,ee=/\w*$/,te=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,P={};P[a]=P[o]=P[x]=P[S]=P[s]=P[c]=P[C]=P[w]=P[T]=P[E]=P[D]=P[f]=P[p]=P[m]=P[g]=P[_]=P[v]=P[y]=P[O]=P[k]=P[A]=P[j]=!0,P[l]=P[u]=P[b]=!1;var ne=typeof global==`object`&&global&&global.Object===Object&&global,F=typeof self==`object`&&self&&self.Object===Object&&self,I=ne||F||Function(`return this`)(),re=typeof e==`object`&&e&&!e.nodeType&&e,L=re&&typeof t==`object`&&t&&!t.nodeType&&t,R=L&&L.exports===re;function z(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function V(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function ie(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}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=Array(e);++n<e;)r[n]=t(n);return r}function ae(e,t){return e?.[t]}function oe(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function se(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ce(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var le=Array.prototype,ue=Function.prototype,de=Object.prototype,fe=I[`__core-js_shared__`],pe=function(){var e=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=ue.toString,he=de.hasOwnProperty,ge=de.toString,_e=RegExp(`^`+me.call(he).replace(M,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ve=R?I.Buffer:void 0,ye=I.Symbol,be=I.Uint8Array,xe=ce(Object.getPrototypeOf,Object),Se=Object.create,Ce=de.propertyIsEnumerable,G=le.splice,K=Object.getOwnPropertySymbols,q=ve?ve.isBuffer:void 0,we=ce(Object.keys,Object),Te=Ot(I,`DataView`),Ee=Ot(I,`Map`),De=Ot(I,`Promise`),Oe=Ot(I,`Set`),ke=Ot(I,`WeakMap`),Ae=Ot(Object,`create`),je=Rt(Te),Me=Rt(Ee),Ne=Rt(De),Pe=Rt(Oe),Fe=Rt(ke),Ie=ye?ye.prototype:void 0,Le=Ie?Ie.valueOf: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__=Ae?Ae(null):{}}function Be(e){return this.has(e)&&delete this.__data__[e]}function Ve(e){var t=this.__data__;if(Ae){var n=t[e];return n===r?void 0:n}return he.call(t,e)?t[e]:void 0}function J(e){var t=this.__data__;return Ae?t[e]!==void 0:he.call(t,e)}function Y(e,t){var n=this.__data__;return n[e]=Ae&&t===void 0?r:t,this}Re.prototype.clear=ze,Re.prototype.delete=Be,Re.prototype.get=Ve,Re.prototype.has=J,Re.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=st(t,e);return n<0?!1:(n==t.length-1?t.pop():G.call(t,n,1),!0)}function We(e){var t=this.__data__,n=st(t,e);return n<0?void 0:t[n][1]}function Ge(e){return st(this.__data__,e)>-1}function Ke(e,t){var n=this.__data__,r=st(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 Re,map:new(Ee||X),string:new Re}}function Ye(e){return Dt(this,e).delete(e)}function Xe(e){return Dt(this,e).get(e)}function Ze(e){return Dt(this,e).has(e)}function Qe(e,t){return Dt(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){this.__data__=new X(e)}function et(){this.__data__=new X}function tt(e){return this.__data__.delete(e)}function nt(e){return this.__data__.get(e)}function rt(e){return this.__data__.has(e)}function it(e,t){var r=this.__data__;if(r instanceof X){var i=r.__data__;if(!Ee||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new qe(i)}return r.set(e,t),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=Ht(e)||Vt(e)?U(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||he.call(e,a))&&!(i&&(a==`length`||Pt(a,r)))&&n.push(a);return n}function ot(e,t,n){var r=e[t];(!(he.call(e,t)&&Bt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function st(e,t){for(var n=e.length;n--;)if(Bt(e[n][0],t))return n;return-1}function ct(e,t){return e&&wt(t,Q(t),e)}function lt(e,t,n,r,i,o,s){var c;if(r&&(c=o?r(e,i,o,s):r(e)),c!==void 0)return c;if(!Jt(e))return e;var l=Ht(e);if(l){if(c=jt(e),!t)return Ct(e,c)}else{var f=At(e),p=f==u||f==d;if(Gt(e))return ht(e,t);if(f==m||f==a||p&&!o){if(oe(e))return o?e:{};if(c=Mt(p?{}:e),!t)return Tt(e,ct(c,e))}else{if(!P[f])return o?e:{};c=Nt(e,f,lt,t)}}s||=new $e;var h=s.get(e);if(h)return h;if(s.set(e,c),!l)var g=n?Et(e):Q(e);return V(g||e,function(i,a){g&&(a=i,i=e[a]),ot(c,a,lt(i,t,n,r,a,e,s))}),c}function ut(e){return Jt(e)?Se(e):{}}function dt(e,t,n){var r=t(e);return Ht(e)?r:ie(r,n(e))}function ft(e){return ge.call(e)}function pt(e){return!Jt(e)||It(e)?!1:(Kt(e)||oe(e)?_e:te).test(Rt(e))}function mt(e){if(!Lt(e))return we(e);var t=[];for(var n in Object(e))he.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ht(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function gt(e){var t=new e.constructor(e.byteLength);return new be(t).set(new be(e)),t}function _t(e,t){var n=t?gt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function vt(e,t,n){return H(t?n(se(e),!0):se(e),z,new e.constructor)}function yt(e){var t=new e.constructor(e.source,ee.exec(e));return t.lastIndex=e.lastIndex,t}function bt(e,t,n){return H(t?n(W(e),!0):W(e),B,new e.constructor)}function xt(e){return Le?Object(Le.call(e)):{}}function St(e,t){var n=t?gt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ct(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function wt(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;ot(n,o,s===void 0?e[o]:s)}return n}function Tt(e,t){return wt(e,kt(e),t)}function Et(e){return dt(e,Q,kt)}function Dt(e,t){var n=e.__data__;return Ft(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ot(e,t){var n=ae(e,t);return pt(n)?n:void 0}var kt=K?ce(K,Object):Yt,At=ft;(Te&&At(new Te(new ArrayBuffer(1)))!=S||Ee&&At(new Ee)!=f||De&&At(De.resolve())!=h||Oe&&At(new Oe)!=_||ke&&At(new ke)!=b)&&(At=function(e){var t=ge.call(e),n=t==m?e.constructor:void 0,r=n?Rt(n):void 0;if(r)switch(r){case je:return S;case Me:return f;case Ne:return h;case Pe:return _;case Fe:return b}return t});function jt(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&he.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Mt(e){return typeof e.constructor==`function`&&!Lt(e)?ut(xe(e)):{}}function Nt(e,t,n,r){var i=e.constructor;switch(t){case x:return gt(e);case s:case c:return new i(+e);case S:return _t(e,r);case C:case w:case T:case E:case D:case O:case k:case A:case j:return St(e,r);case f:return vt(e,r,n);case p:case v:return new i(e);case g:return yt(e);case _:return bt(e,r,n);case y:return xt(e)}}function Pt(e,t){return t??=i,!!t&&(typeof e==`number`||N.test(e))&&e>-1&&e%1==0&&e<t}function Ft(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function It(e){return!!pe&&pe in e}function Lt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||de)}function Rt(e){if(e!=null){try{return me.call(e)}catch{}try{return e+``}catch{}}return``}function zt(e){return lt(e,!0,!0)}function Bt(e,t){return e===t||e!==e&&t!==t}function Vt(e){return Wt(e)&&he.call(e,`callee`)&&(!Ce.call(e,`callee`)||ge.call(e)==a)}var Ht=Array.isArray;function Ut(e){return e!=null&&qt(e.length)&&!Kt(e)}function Wt(e){return Z(e)&&Ut(e)}var Gt=q||Xt;function Kt(e){var t=Jt(e)?ge.call(e):``;return t==u||t==d}function qt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function Jt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Z(e){return!!e&&typeof e==`object`}function Q(e){return Ut(e)?at(e):mt(e)}function Yt(){return[]}function Xt(){return!1}t.exports=zt})),Ri=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=`[object Map]`,s=`[object Object]`,c=`[object Promise]`,l=`[object Set]`,u=`[object WeakMap]`,d=`[object DataView]`,f=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,h=typeof global==`object`&&global&&global.Object===Object&&global,g=typeof self==`object`&&self&&self.Object===Object&&self,_=h||g||Function(`return this`)();function v(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 y(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function b(e,t){return v(t,function(t){return[t,e[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,r){n[++t]=[r,e]}),n}function w(e,t){return function(n){return e(t(n))}}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}var E=Function.prototype,D=Object.prototype,O=_[`__core-js_shared__`],k=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),A=E.toString,j=D.hasOwnProperty,M=D.toString,ee=RegExp(`^`+A.call(j).replace(f,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),te=D.propertyIsEnumerable,N=w(Object.keys,Object),P=se(_,`DataView`),ne=se(_,`Map`),F=se(_,`Promise`),I=se(_,`Set`),re=se(_,`WeakMap`),L=de(P),R=de(ne),z=de(F),B=de(I),V=de(re);function ie(e,t){var n=pe(e)||fe(e)?y(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||j.call(e,a))&&!(i&&(a==`length`||W(a,r)))&&n.push(a);return n}function H(e){return M.call(e)}function U(e){return!ve(e)||le(e)?!1:(ge(e)||S(e)?ee:p).test(de(e))}function ae(e){if(!ue(e))return N(e);var t=[];for(var n in Object(e))j.call(e,n)&&n!=`constructor`&&t.push(n);return t}function oe(e){return function(t){var n=ce(t);return n==o?C(t):n==l?T(t):b(t,e(t))}}function se(e,t){var n=x(e,t);return U(n)?n:void 0}var ce=H;(P&&ce(new P(new ArrayBuffer(1)))!=d||ne&&ce(new ne)!=o||F&&ce(F.resolve())!=c||I&&ce(new I)!=l||re&&ce(new re)!=u)&&(ce=function(e){var t=M.call(e),n=t==s?e.constructor:void 0,r=n?de(n):void 0;if(r)switch(r){case L:return d;case R:return o;case z:return c;case B:return l;case V:return u}return t});function W(e,t){return t??=n,!!t&&(typeof e==`number`||m.test(e))&&e>-1&&e%1==0&&e<t}function le(e){return!!k&&k in e}function ue(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||D)}function de(e){if(e!=null){try{return A.call(e)}catch{}try{return e+``}catch{}}return``}function fe(e){return he(e)&&j.call(e,`callee`)&&(!te.call(e,`callee`)||M.call(e)==r)}var pe=Array.isArray;function me(e){return e!=null&&_e(e.length)&&!ge(e)}function he(e){return ye(e)&&me(e)}function ge(e){var t=ve(e)?M.call(e):``;return t==i||t==a}function _e(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function ve(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ye(e){return!!e&&typeof e==`object`}function be(e){return me(e)?ie(e):ae(e)}t.exports=oe(be)})),zi=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object GeneratorFunction]`,f=`[object Map]`,p=`[object Number]`,m=`[object Object]`,h=`[object Promise]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object Symbol]`,b=`[object WeakMap]`,x=`[object ArrayBuffer]`,S=`[object DataView]`,C=`[object Float32Array]`,w=`[object Float64Array]`,T=`[object Int8Array]`,E=`[object Int16Array]`,D=`[object Int32Array]`,O=`[object Uint8Array]`,k=`[object Uint8ClampedArray]`,A=`[object Uint16Array]`,j=`[object Uint32Array]`,M=/[\\^$.*+?()[\]{}|]/g,ee=/\w*$/,te=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,P={};P[a]=P[o]=P[x]=P[S]=P[s]=P[c]=P[C]=P[w]=P[T]=P[E]=P[D]=P[f]=P[p]=P[m]=P[g]=P[_]=P[v]=P[y]=P[O]=P[k]=P[A]=P[j]=!0,P[l]=P[u]=P[b]=!1;var ne=typeof global==`object`&&global&&global.Object===Object&&global,F=typeof self==`object`&&self&&self.Object===Object&&self,I=ne||F||Function(`return this`)(),re=typeof e==`object`&&e&&!e.nodeType&&e,L=re&&typeof t==`object`&&t&&!t.nodeType&&t,R=L&&L.exports===re;function z(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function V(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function ie(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}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=Array(e);++n<e;)r[n]=t(n);return r}function ae(e,t){return e?.[t]}function oe(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function se(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ce(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var le=Array.prototype,ue=Function.prototype,de=Object.prototype,fe=I[`__core-js_shared__`],pe=function(){var e=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=ue.toString,he=de.hasOwnProperty,ge=de.toString,_e=RegExp(`^`+me.call(he).replace(M,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ve=R?I.Buffer:void 0,ye=I.Symbol,be=I.Uint8Array,xe=ce(Object.getPrototypeOf,Object),Se=Object.create,Ce=de.propertyIsEnumerable,G=le.splice,K=Object.getOwnPropertySymbols,q=ve?ve.isBuffer:void 0,we=ce(Object.keys,Object),Te=Ot(I,`DataView`),Ee=Ot(I,`Map`),De=Ot(I,`Promise`),Oe=Ot(I,`Set`),ke=Ot(I,`WeakMap`),Ae=Ot(Object,`create`),je=Rt(Te),Me=Rt(Ee),Ne=Rt(De),Pe=Rt(Oe),Fe=Rt(ke),Ie=ye?ye.prototype:void 0,Le=Ie?Ie.valueOf: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__=Ae?Ae(null):{}}function Be(e){return this.has(e)&&delete this.__data__[e]}function Ve(e){var t=this.__data__;if(Ae){var n=t[e];return n===r?void 0:n}return he.call(t,e)?t[e]:void 0}function J(e){var t=this.__data__;return Ae?t[e]!==void 0:he.call(t,e)}function Y(e,t){var n=this.__data__;return n[e]=Ae&&t===void 0?r:t,this}Re.prototype.clear=ze,Re.prototype.delete=Be,Re.prototype.get=Ve,Re.prototype.has=J,Re.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=st(t,e);return n<0?!1:(n==t.length-1?t.pop():G.call(t,n,1),!0)}function We(e){var t=this.__data__,n=st(t,e);return n<0?void 0:t[n][1]}function Ge(e){return st(this.__data__,e)>-1}function Ke(e,t){var n=this.__data__,r=st(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 Re,map:new(Ee||X),string:new Re}}function Ye(e){return Dt(this,e).delete(e)}function Xe(e){return Dt(this,e).get(e)}function Ze(e){return Dt(this,e).has(e)}function Qe(e,t){return Dt(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){this.__data__=new X(e)}function et(){this.__data__=new X}function tt(e){return this.__data__.delete(e)}function nt(e){return this.__data__.get(e)}function rt(e){return this.__data__.has(e)}function it(e,t){var r=this.__data__;if(r instanceof X){var i=r.__data__;if(!Ee||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new qe(i)}return r.set(e,t),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=Ht(e)||Vt(e)?U(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||he.call(e,a))&&!(i&&(a==`length`||Pt(a,r)))&&n.push(a);return n}function ot(e,t,n){var r=e[t];(!(he.call(e,t)&&Bt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function st(e,t){for(var n=e.length;n--;)if(Bt(e[n][0],t))return n;return-1}function ct(e,t){return e&&wt(t,Q(t),e)}function lt(e,t,n,r,i,o,s){var c;if(r&&(c=o?r(e,i,o,s):r(e)),c!==void 0)return c;if(!Jt(e))return e;var l=Ht(e);if(l){if(c=jt(e),!t)return Ct(e,c)}else{var f=At(e),p=f==u||f==d;if(Gt(e))return ht(e,t);if(f==m||f==a||p&&!o){if(oe(e))return o?e:{};if(c=Mt(p?{}:e),!t)return Tt(e,ct(c,e))}else{if(!P[f])return o?e:{};c=Nt(e,f,lt,t)}}s||=new $e;var h=s.get(e);if(h)return h;if(s.set(e,c),!l)var g=n?Et(e):Q(e);return V(g||e,function(i,a){g&&(a=i,i=e[a]),ot(c,a,lt(i,t,n,r,a,e,s))}),c}function ut(e){return Jt(e)?Se(e):{}}function dt(e,t,n){var r=t(e);return Ht(e)?r:ie(r,n(e))}function ft(e){return ge.call(e)}function pt(e){return!Jt(e)||It(e)?!1:(Kt(e)||oe(e)?_e:te).test(Rt(e))}function mt(e){if(!Lt(e))return we(e);var t=[];for(var n in Object(e))he.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ht(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function gt(e){var t=new e.constructor(e.byteLength);return new be(t).set(new be(e)),t}function _t(e,t){var n=t?gt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function vt(e,t,n){return H(t?n(se(e),!0):se(e),z,new e.constructor)}function yt(e){var t=new e.constructor(e.source,ee.exec(e));return t.lastIndex=e.lastIndex,t}function bt(e,t,n){return H(t?n(W(e),!0):W(e),B,new e.constructor)}function xt(e){return Le?Object(Le.call(e)):{}}function St(e,t){var n=t?gt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ct(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function wt(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;ot(n,o,s===void 0?e[o]:s)}return n}function Tt(e,t){return wt(e,kt(e),t)}function Et(e){return dt(e,Q,kt)}function Dt(e,t){var n=e.__data__;return Ft(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ot(e,t){var n=ae(e,t);return pt(n)?n:void 0}var kt=K?ce(K,Object):Yt,At=ft;(Te&&At(new Te(new ArrayBuffer(1)))!=S||Ee&&At(new Ee)!=f||De&&At(De.resolve())!=h||Oe&&At(new Oe)!=_||ke&&At(new ke)!=b)&&(At=function(e){var t=ge.call(e),n=t==m?e.constructor:void 0,r=n?Rt(n):void 0;if(r)switch(r){case je:return S;case Me:return f;case Ne:return h;case Pe:return _;case Fe:return b}return t});function jt(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&he.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Mt(e){return typeof e.constructor==`function`&&!Lt(e)?ut(xe(e)):{}}function Nt(e,t,n,r){var i=e.constructor;switch(t){case x:return gt(e);case s:case c:return new i(+e);case S:return _t(e,r);case C:case w:case T:case E:case D:case O:case k:case A:case j:return St(e,r);case f:return vt(e,r,n);case p:case v:return new i(e);case g:return yt(e);case _:return bt(e,r,n);case y:return xt(e)}}function Pt(e,t){return t??=i,!!t&&(typeof e==`number`||N.test(e))&&e>-1&&e%1==0&&e<t}function Ft(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function It(e){return!!pe&&pe in e}function Lt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||de)}function Rt(e){if(e!=null){try{return me.call(e)}catch{}try{return e+``}catch{}}return``}function zt(e){return lt(e,!1,!0)}function Bt(e,t){return e===t||e!==e&&t!==t}function Vt(e){return Wt(e)&&he.call(e,`callee`)&&(!Ce.call(e,`callee`)||ge.call(e)==a)}var Ht=Array.isArray;function Ut(e){return e!=null&&qt(e.length)&&!Kt(e)}function Wt(e){return Z(e)&&Ut(e)}var Gt=q||Xt;function Kt(e){var t=Jt(e)?ge.call(e):``;return t==u||t==d}function qt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function Jt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Z(e){return!!e&&typeof e==`object`}function Q(e){return Ut(e)?at(e):mt(e)}function Yt(){return[]}function Xt(){return!1}t.exports=zt})),Bi=e.t(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,F=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,B={};B[D]=B[O]=B[k]=B[A]=B[j]=B[M]=B[ee]=B[te]=B[N]=!0,B[l]=B[u]=B[T]=B[d]=B[E]=B[f]=B[p]=B[m]=B[g]=B[_]=B[v]=B[b]=B[x]=B[S]=B[w]=!1;var V=typeof global==`object`&&global&&global.Object===Object&&global,ie=typeof self==`object`&&self&&self.Object===Object&&self,H=V||ie||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ae=U&&typeof t==`object`&&t&&!t.nodeType&&t,oe=ae&&ae.exports===U&&V.process,se=function(){try{return oe&&oe.binding(`util`)}catch{}}(),ce=se&&se.isTypedArray;function W(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 le(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ue(e){return function(t){return t?.[e]}}function de(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function fe(e){return function(t){return e(t)}}function pe(e,t){return e?.[t]}function me(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function he(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ge(e,t){return function(n){return e(t(n))}}function _e(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ve=Array.prototype,ye=Function.prototype,be=Object.prototype,xe=H[`__core-js_shared__`],Se=function(){var e=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ce=ye.toString,G=be.hasOwnProperty,K=be.toString,q=RegExp(`^`+Ce.call(G).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),we=H.Symbol,Te=H.Uint8Array,Ee=be.propertyIsEnumerable,De=ve.splice,Oe=ge(Object.keys,Object),ke=Vt(H,`DataView`),Ae=Vt(H,`Map`),je=Vt(H,`Promise`),Me=Vt(H,`Set`),Ne=Vt(H,`WeakMap`),Pe=Vt(Object,`create`),Fe=Zt(ke),Ie=Zt(Ae),Le=Zt(je),Re=Zt(Me),ze=Zt(Ne),Be=we?we.prototype:void 0,Ve=Be?Be.valueOf:void 0,J=Be?Be.toString:void 0;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__=Pe?Pe(null):{}}function He(e){return this.has(e)&&delete this.__data__[e]}function Ue(e){var t=this.__data__;if(Pe){var n=t[e];return n===i?void 0:n}return G.call(t,e)?t[e]:void 0}function We(e){var t=this.__data__;return Pe?t[e]!==void 0:G.call(t,e)}function Ge(e,t){var n=this.__data__;return n[e]=Pe&&t===void 0?i: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__=[]}function Je(e){var t=this.__data__,n=mt(t,e);return n<0?!1:(n==t.length-1?t.pop():De.call(t,n,1),!0)}function Ye(e){var t=this.__data__,n=mt(t,e);return n<0?void 0:t[n][1]}function Xe(e){return mt(this.__data__,e)>-1}function Ze(e,t){var n=this.__data__,r=mt(n,e);return r<0?n.push([e,t]):n[r][1]=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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.__data__={hash:new Y,map:new(Ae||Ke),string:new Y}}function et(e){return zt(this,e).delete(e)}function tt(e){return zt(this,e).get(e)}function nt(e){return zt(this,e).has(e)}function rt(e,t){return zt(this,e).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){var t=-1,n=e?e.length:0;for(this.__data__=new Qe;++t<n;)this.add(e[t])}function at(e){return this.__data__.set(e,i),this}function ot(e){return this.__data__.has(e)}it.prototype.add=it.prototype.push=at,it.prototype.has=ot;function st(e){this.__data__=new Ke(e)}function ct(){this.__data__=new Ke}function lt(e){return this.__data__.delete(e)}function ut(e){return this.__data__.get(e)}function dt(e){return this.__data__.has(e)}function ft(e,t){var r=this.__data__;if(r instanceof Ke){var i=r.__data__;if(!Ae||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new Qe(i)}return r.set(e,t),this}st.prototype.clear=ct,st.prototype.delete=lt,st.prototype.get=ut,st.prototype.has=dt,st.prototype.set=ft;function pt(e,t){var n=nn(e)||tn(e)?de(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||G.call(e,a))&&!(i&&(a==`length`||Wt(a,r)))&&n.push(a);return n}function mt(e,t){for(var n=e.length;n--;)if(en(e[n][0],t))return n;return-1}var ht=Pt(vt);function gt(e,t){var n=[];return ht(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var _t=Ft();function vt(e,t){return e&&_t(e,t,hn)}function yt(e,t){t=Gt(t,e)?[t]:Nt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xt(t[n++])];return n&&n==r?e:void 0}function bt(e){return K.call(e)}function xt(e,t){return e!=null&&t in Object(e)}function St(e,t,n,r,i){return e===t?!0:e==null||t==null||!cn(e)&&!ln(t)?e!==e&&t!==t:Ct(e,t,St,n,r,i)}function Ct(e,t,n,r,i,a){var s=nn(e),c=nn(t),d=u,f=u;s||(d=Ht(e),d=d==l?v:d),c||(f=Ht(t),f=f==l?v:f);var p=d==v&&!me(e),m=f==v&&!me(t),h=d==f;if(h&&!p)return a||=new st,s||dn(e)?It(e,t,n,r,i,a):Lt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&G.call(e,`__wrapped__`),_=m&&G.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new st,n(y,b,r,i,a)}}return h?(a||=new st,Rt(e,t,n,r,i,a)):!1}function wt(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new st;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?St(f,d,r,a|o,p):m))return!1}}return!0}function Tt(e){return!cn(e)||qt(e)?!1:(on(e)||me(e)?q:R).test(Zt(e))}function Et(e){return ln(e)&&sn(e.length)&&!!B[K.call(e)]}function Dt(e){return typeof e==`function`?e:e==null?gn:typeof e==`object`?nn(e)?At(e[0],e[1]):kt(e):_n(e)}function Ot(e){if(!Jt(e))return Oe(e);var t=[];for(var n in Object(e))G.call(e,n)&&n!=`constructor`&&t.push(n);return t}function kt(e){var t=Bt(e);return t.length==1&&t[0][2]?Q(t[0][0],t[0][1]):function(n){return n===e||wt(n,e,t)}}function At(e,t){return Gt(e)&&Z(t)?Q(Xt(e),t):function(n){var r=pn(n,e);return r===void 0&&r===t?mn(n,e):St(t,r,void 0,a|o)}}function jt(e){return function(t){return yt(t,e)}}function Mt(e){if(typeof e==`string`)return e;if(un(e))return J?J.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Nt(e){return nn(e)?e:Yt(e)}function Pt(e,t){return function(n,r){if(n==null)return n;if(!rn(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 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 It(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new it:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!le(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Lt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Te(e),new Te(t)));case d:case f:case _:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=he;case x:var u=s&o;if(l||=_e,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=It(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(Ve)return Ve.call(e)==Ve.call(t)}return!1}function Rt(e,t,n,r,i,a){var s=i&o,c=hn(e),l=c.length;if(l!=hn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:G.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function zt(e,t){var n=e.__data__;return Kt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Bt(e){for(var t=hn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Z(i)]}return t}function Vt(e,t){var n=pe(e,t);return Tt(n)?n:void 0}var Ht=bt;(ke&&Ht(new ke(new ArrayBuffer(1)))!=E||Ae&&Ht(new Ae)!=g||je&&Ht(je.resolve())!=y||Me&&Ht(new Me)!=x||Ne&&Ht(new Ne)!=w)&&(Ht=function(e){var t=K.call(e),n=t==v?e.constructor:void 0,r=n?Zt(n):void 0;if(r)switch(r){case Fe:return E;case Ie:return g;case Le:return y;case Re:return x;case ze:return w}return t});function Ut(e,t,n){t=Gt(t,e)?[t]:Nt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Xt(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&&sn(a)&&Wt(o,a)&&(nn(e)||tn(e))}function Wt(e,t){return t??=c,!!t&&(typeof e==`number`||z.test(e))&&e>-1&&e%1==0&&e<t}function Gt(e,t){if(nn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||un(e)?!0:ne.test(e)||!P.test(e)||t!=null&&e in Object(t)}function Kt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function qt(e){return!!Se&&Se in e}function Jt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||be)}function Z(e){return e===e&&!cn(e)}function Q(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Yt=$t(function(e){e=fn(e);var t=[];return F.test(e)&&t.push(``),e.replace(I,function(e,n,r,i){t.push(r?i.replace(L,`$1`):n||e)}),t});function Xt(e){if(typeof e==`string`||un(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Zt(e){if(e!=null){try{return Ce.call(e)}catch{}try{return e+``}catch{}}return``}function Qt(e,t){return(nn(e)?W:gt)(e,Dt(t,3))}function $t(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(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),o};return n.cache=new($t.Cache||Qe),n}$t.Cache=Qe;function en(e,t){return e===t||e!==e&&t!==t}function tn(e){return an(e)&&G.call(e,`callee`)&&(!Ee.call(e,`callee`)||K.call(e)==l)}var nn=Array.isArray;function rn(e){return e!=null&&sn(e.length)&&!on(e)}function an(e){return ln(e)&&rn(e)}function on(e){var t=cn(e)?K.call(e):``;return t==m||t==h}function sn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function cn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ln(e){return!!e&&typeof e==`object`}function un(e){return typeof e==`symbol`||ln(e)&&K.call(e)==C}var dn=ce?fe(ce):Et;function fn(e){return e==null?``:Mt(e)}function pn(e,t,n){var r=e==null?void 0:yt(e,t);return r===void 0?n:r}function mn(e,t){return e!=null&&Ut(e,t,xt)}function hn(e){return rn(e)?pt(e):Ot(e)}function gn(e){return e}function _n(e){return Gt(e)?ue(Xt(e)):jt(e)}t.exports=Qt})),Vi=e.t(((e,t)=>{var n=`Expected a function`,r=`__lodash_hash_undefined__`,i=1/0,a=9007199254740991,o=`[object Arguments]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Symbol]`,u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/[\\^$.*+?()[\]{}|]/g,h=/\\(\\)?/g,g=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,v=typeof global==`object`&&global&&global.Object===Object&&global,y=typeof self==`object`&&self&&self.Object===Object&&self,b=v||y||Function(`return this`)();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}var C=Array.prototype,w=Function.prototype,T=Object.prototype,E=b[`__core-js_shared__`],D=function(){var e=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),O=w.toString,k=T.hasOwnProperty,A=T.toString,j=RegExp(`^`+O.call(k).replace(m,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),M=b.Symbol,ee=T.propertyIsEnumerable,te=C.splice,N=ve(b,`Map`),P=ve(Object,`create`),ne=M?M.prototype:void 0,F=ne?ne.toString:void 0;function I(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__=P?P(null):{}}function L(e){return this.has(e)&&delete this.__data__[e]}function R(e){var t=this.__data__;if(P){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0}function z(e){var t=this.__data__;return P?t[e]!==void 0:k.call(t,e)}function B(e,t){var n=this.__data__;return n[e]=P&&t===void 0?r:t,this}I.prototype.clear=re,I.prototype.delete=L,I.prototype.get=R,I.prototype.has=z,I.prototype.set=B;function V(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 ie(){this.__data__=[]}function H(e){var t=this.__data__,n=fe(t,e);return n<0?!1:(n==t.length-1?t.pop():te.call(t,n,1),!0)}function U(e){var t=this.__data__,n=fe(t,e);return n<0?void 0:t[n][1]}function ae(e){return fe(this.__data__,e)>-1}function oe(e,t){var n=this.__data__,r=fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}V.prototype.clear=ie,V.prototype.delete=H,V.prototype.get=U,V.prototype.has=ae,V.prototype.set=oe;function se(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 ce(){this.__data__={hash:new I,map:new(N||V),string:new I}}function W(e){return _e(this,e).delete(e)}function le(e){return _e(this,e).get(e)}function ue(e){return _e(this,e).has(e)}function de(e,t){return _e(this,e).set(e,t),this}se.prototype.clear=ce,se.prototype.delete=W,se.prototype.get=le,se.prototype.has=ue,se.prototype.set=de;function fe(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function pe(e,t){return e!=null&&k.call(e,t)}function me(e){return!Me(e)||Ce(e)?!1:(Ae(e)||S(e)?j:g).test(q(e))}function he(e){if(typeof e==`string`)return e;if(Pe(e))return F?F.call(e):``;var t=e+``;return t==`0`&&1/e==-i?`-0`:t}function ge(e){return De(e)?e:G(e)}function _e(e,t){var n=e.__data__;return Se(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ve(e,t){var n=x(e,t);return me(n)?n:void 0}function ye(e,t,n){t=xe(t,e)?[t]:ge(t);for(var r,i=-1,a=t.length;++i<a;){var o=K(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&&je(a)&&be(o,a)&&(De(e)||Ee(e))}function be(e,t){return t??=a,!!t&&(typeof e==`number`||_.test(e))&&e>-1&&e%1==0&&e<t}function xe(e,t){if(De(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Pe(e)?!0:d.test(e)||!u.test(e)||t!=null&&e in Object(t)}function Se(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ce(e){return!!D&&D in e}var G=we(function(e){e=Fe(e);var t=[];return f.test(e)&&t.push(``),e.replace(p,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function K(e){if(typeof e==`string`||Pe(e))return e;var t=e+``;return t==`0`&&1/e==-i?`-0`:t}function q(e){if(e!=null){try{return O.call(e)}catch{}try{return e+``}catch{}}return``}function we(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(we.Cache||se),r}we.Cache=se;function Te(e,t){return e===t||e!==e&&t!==t}function Ee(e){return ke(e)&&k.call(e,`callee`)&&(!ee.call(e,`callee`)||A.call(e)==o)}var De=Array.isArray;function Oe(e){return e!=null&&je(e.length)&&!Ae(e)}function ke(e){return Ne(e)&&Oe(e)}function Ae(e){var t=Me(e)?A.call(e):``;return t==s||t==c}function je(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=a}function Me(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ne(e){return!!e&&typeof e==`object`}function Pe(e){return typeof e==`symbol`||Ne(e)&&A.call(e)==l}function Fe(e){return e==null?``:he(e)}function Ie(e,t){return e!=null&&ye(e,t,pe)}t.exports=Ie})),Hi=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=/^(?:0|[1-9]\d*)$/;function s(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function c(e,t){return function(n){return e(t(n))}}var l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=l.propertyIsEnumerable,p=c(Object.keys,Object);function m(e,t){var n=y(e)||v(e)?s(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||u.call(e,a))&&!(i&&(a==`length`||g(a,r)))&&n.push(a);return n}function h(e){if(!_(e))return p(e);var t=[];for(var n in Object(e))u.call(e,n)&&n!=`constructor`&&t.push(n);return t}function g(e,t){return t??=n,!!t&&(typeof e==`number`||o.test(e))&&e>-1&&e%1==0&&e<t}function _(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||l)}function v(e){return x(e)&&u.call(e,`callee`)&&(!f.call(e,`callee`)||d.call(e)==r)}var y=Array.isArray;function b(e){return e!=null&&C(e.length)&&!S(e)}function x(e){return T(e)&&b(e)}function S(e){var t=w(e)?d.call(e):``;return t==i||t==a}function C(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function w(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function T(e){return!!e&&typeof e==`object`}function E(e){return b(e)?m(e):h(e)}t.exports=E})),Ui=e.t(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,F=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,B={};B[D]=B[O]=B[k]=B[A]=B[j]=B[M]=B[ee]=B[te]=B[N]=!0,B[l]=B[u]=B[T]=B[d]=B[E]=B[f]=B[p]=B[m]=B[g]=B[_]=B[v]=B[b]=B[x]=B[S]=B[w]=!1;var V=typeof global==`object`&&global&&global.Object===Object&&global,ie=typeof self==`object`&&self&&self.Object===Object&&self,H=V||ie||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ae=U&&typeof t==`object`&&t&&!t.nodeType&&t,oe=ae&&ae.exports===U&&V.process,se=function(){try{return oe&&oe.binding(`util`)}catch{}}(),ce=se&&se.isTypedArray;function W(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 le(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ue(e){return function(t){return t?.[e]}}function de(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function fe(e){return function(t){return e(t)}}function pe(e,t){return e?.[t]}function me(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function he(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ge(e,t){return function(n){return e(t(n))}}function _e(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ve=Array.prototype,ye=Function.prototype,be=Object.prototype,xe=H[`__core-js_shared__`],Se=function(){var e=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ce=ye.toString,G=be.hasOwnProperty,K=be.toString,q=RegExp(`^`+Ce.call(G).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),we=H.Symbol,Te=H.Uint8Array,Ee=be.propertyIsEnumerable,De=ve.splice,Oe=ge(Object.keys,Object),ke=Vt(H,`DataView`),Ae=Vt(H,`Map`),je=Vt(H,`Promise`),Me=Vt(H,`Set`),Ne=Vt(H,`WeakMap`),Pe=Vt(Object,`create`),Fe=Zt(ke),Ie=Zt(Ae),Le=Zt(je),Re=Zt(Me),ze=Zt(Ne),Be=we?we.prototype:void 0,Ve=Be?Be.valueOf:void 0,J=Be?Be.toString:void 0;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__=Pe?Pe(null):{}}function He(e){return this.has(e)&&delete this.__data__[e]}function Ue(e){var t=this.__data__;if(Pe){var n=t[e];return n===i?void 0:n}return G.call(t,e)?t[e]:void 0}function We(e){var t=this.__data__;return Pe?t[e]!==void 0:G.call(t,e)}function Ge(e,t){var n=this.__data__;return n[e]=Pe&&t===void 0?i: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__=[]}function Je(e){var t=this.__data__,n=mt(t,e);return n<0?!1:(n==t.length-1?t.pop():De.call(t,n,1),!0)}function Ye(e){var t=this.__data__,n=mt(t,e);return n<0?void 0:t[n][1]}function Xe(e){return mt(this.__data__,e)>-1}function Ze(e,t){var n=this.__data__,r=mt(n,e);return r<0?n.push([e,t]):n[r][1]=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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.__data__={hash:new Y,map:new(Ae||Ke),string:new Y}}function et(e){return zt(this,e).delete(e)}function tt(e){return zt(this,e).get(e)}function nt(e){return zt(this,e).has(e)}function rt(e,t){return zt(this,e).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){var t=-1,n=e?e.length:0;for(this.__data__=new Qe;++t<n;)this.add(e[t])}function at(e){return this.__data__.set(e,i),this}function ot(e){return this.__data__.has(e)}it.prototype.add=it.prototype.push=at,it.prototype.has=ot;function st(e){this.__data__=new Ke(e)}function ct(){this.__data__=new Ke}function lt(e){return this.__data__.delete(e)}function ut(e){return this.__data__.get(e)}function dt(e){return this.__data__.has(e)}function ft(e,t){var r=this.__data__;if(r instanceof Ke){var i=r.__data__;if(!Ae||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new Qe(i)}return r.set(e,t),this}st.prototype.clear=ct,st.prototype.delete=lt,st.prototype.get=ut,st.prototype.has=dt,st.prototype.set=ft;function pt(e,t){var n=nn(e)||tn(e)?de(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||G.call(e,a))&&!(i&&(a==`length`||Wt(a,r)))&&n.push(a);return n}function mt(e,t){for(var n=e.length;n--;)if(en(e[n][0],t))return n;return-1}var ht=Pt(_t),gt=Ft();function _t(e,t){return e&>(e,t,hn)}function vt(e,t){t=Gt(t,e)?[t]:Nt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xt(t[n++])];return n&&n==r?e:void 0}function yt(e){return K.call(e)}function bt(e,t){return e!=null&&t in Object(e)}function xt(e,t,n,r,i){return e===t?!0:e==null||t==null||!cn(e)&&!ln(t)?e!==e&&t!==t:St(e,t,xt,n,r,i)}function St(e,t,n,r,i,a){var s=nn(e),c=nn(t),d=u,f=u;s||(d=Ht(e),d=d==l?v:d),c||(f=Ht(t),f=f==l?v:f);var p=d==v&&!me(e),m=f==v&&!me(t),h=d==f;if(h&&!p)return a||=new st,s||dn(e)?It(e,t,n,r,i,a):Lt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&G.call(e,`__wrapped__`),_=m&&G.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new st,n(y,b,r,i,a)}}return h?(a||=new st,Rt(e,t,n,r,i,a)):!1}function Ct(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new st;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?xt(f,d,r,a|o,p):m))return!1}}return!0}function wt(e){return!cn(e)||qt(e)?!1:(on(e)||me(e)?q:R).test(Zt(e))}function Tt(e){return ln(e)&&sn(e.length)&&!!B[K.call(e)]}function Et(e){return typeof e==`function`?e:e==null?gn:typeof e==`object`?nn(e)?At(e[0],e[1]):kt(e):_n(e)}function Dt(e){if(!Jt(e))return Oe(e);var t=[];for(var n in Object(e))G.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Ot(e,t){var n=-1,r=rn(e)?Array(e.length):[];return ht(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function kt(e){var t=Bt(e);return t.length==1&&t[0][2]?Q(t[0][0],t[0][1]):function(n){return n===e||Ct(n,e,t)}}function At(e,t){return Gt(e)&&Z(t)?Q(Xt(e),t):function(n){var r=pn(n,e);return r===void 0&&r===t?mn(n,e):xt(t,r,void 0,a|o)}}function jt(e){return function(t){return vt(t,e)}}function Mt(e){if(typeof e==`string`)return e;if(un(e))return J?J.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Nt(e){return nn(e)?e:Yt(e)}function Pt(e,t){return function(n,r){if(n==null)return n;if(!rn(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 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 It(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new it:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!le(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Lt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Te(e),new Te(t)));case d:case f:case _:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=he;case x:var u=s&o;if(l||=_e,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=It(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(Ve)return Ve.call(e)==Ve.call(t)}return!1}function Rt(e,t,n,r,i,a){var s=i&o,c=hn(e),l=c.length;if(l!=hn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:G.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function zt(e,t){var n=e.__data__;return Kt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Bt(e){for(var t=hn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Z(i)]}return t}function Vt(e,t){var n=pe(e,t);return wt(n)?n:void 0}var Ht=yt;(ke&&Ht(new ke(new ArrayBuffer(1)))!=E||Ae&&Ht(new Ae)!=g||je&&Ht(je.resolve())!=y||Me&&Ht(new Me)!=x||Ne&&Ht(new Ne)!=w)&&(Ht=function(e){var t=K.call(e),n=t==v?e.constructor:void 0,r=n?Zt(n):void 0;if(r)switch(r){case Fe:return E;case Ie:return g;case Le:return y;case Re:return x;case ze:return w}return t});function Ut(e,t,n){t=Gt(t,e)?[t]:Nt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Xt(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&&sn(a)&&Wt(o,a)&&(nn(e)||tn(e))}function Wt(e,t){return t??=c,!!t&&(typeof e==`number`||z.test(e))&&e>-1&&e%1==0&&e<t}function Gt(e,t){if(nn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||un(e)?!0:ne.test(e)||!P.test(e)||t!=null&&e in Object(t)}function Kt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function qt(e){return!!Se&&Se in e}function Jt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||be)}function Z(e){return e===e&&!cn(e)}function Q(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Yt=$t(function(e){e=fn(e);var t=[];return F.test(e)&&t.push(``),e.replace(I,function(e,n,r,i){t.push(r?i.replace(L,`$1`):n||e)}),t});function Xt(e){if(typeof e==`string`||un(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Zt(e){if(e!=null){try{return Ce.call(e)}catch{}try{return e+``}catch{}}return``}function Qt(e,t){return(nn(e)?W:Ot)(e,Et(t,3))}function $t(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(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),o};return n.cache=new($t.Cache||Qe),n}$t.Cache=Qe;function en(e,t){return e===t||e!==e&&t!==t}function tn(e){return an(e)&&G.call(e,`callee`)&&(!Ee.call(e,`callee`)||K.call(e)==l)}var nn=Array.isArray;function rn(e){return e!=null&&sn(e.length)&&!on(e)}function an(e){return ln(e)&&rn(e)}function on(e){var t=cn(e)?K.call(e):``;return t==m||t==h}function sn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function cn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ln(e){return!!e&&typeof e==`object`}function un(e){return typeof e==`symbol`||ln(e)&&K.call(e)==C}var dn=ce?fe(ce):Tt;function fn(e){return e==null?``:Mt(e)}function pn(e,t,n){var r=e==null?void 0:vt(e,t);return r===void 0?n:r}function mn(e,t){return e!=null&&Ut(e,t,bt)}function hn(e){return rn(e)?pt(e):Dt(e)}function gn(e){return e}function _n(e){return Gt(e)?ue(Xt(e)):jt(e)}t.exports=Qt})),Wi=e.t(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,F=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,B={};B[D]=B[O]=B[k]=B[A]=B[j]=B[M]=B[ee]=B[te]=B[N]=!0,B[l]=B[u]=B[T]=B[d]=B[E]=B[f]=B[p]=B[m]=B[g]=B[_]=B[v]=B[b]=B[x]=B[S]=B[w]=!1;var V=typeof global==`object`&&global&&global.Object===Object&&global,ie=typeof self==`object`&&self&&self.Object===Object&&self,H=V||ie||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ae=U&&typeof t==`object`&&t&&!t.nodeType&&t,oe=ae&&ae.exports===U&&V.process,se=function(){try{return oe&&oe.binding(`util`)}catch{}}(),ce=se&&se.isTypedArray;function W(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function le(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function ue(e){return function(t){return t?.[e]}}function de(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function fe(e){return function(t){return e(t)}}function pe(e,t){return e?.[t]}function me(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function he(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ge(e,t){return function(n){return e(t(n))}}function _e(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ve=Array.prototype,ye=Function.prototype,be=Object.prototype,xe=H[`__core-js_shared__`],Se=function(){var e=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ce=ye.toString,G=be.hasOwnProperty,K=be.toString,q=RegExp(`^`+Ce.call(G).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),we=H.Symbol,Te=H.Uint8Array,Ee=ge(Object.getPrototypeOf,Object),De=Object.create,Oe=be.propertyIsEnumerable,ke=ve.splice,Ae=ge(Object.keys,Object),je=Vt(H,`DataView`),Me=Vt(H,`Map`),Ne=Vt(H,`Promise`),Pe=Vt(H,`Set`),Fe=Vt(H,`WeakMap`),Ie=Vt(Object,`create`),Le=Zt(je),Re=Zt(Me),ze=Zt(Ne),Be=Zt(Pe),Ve=Zt(Fe),J=we?we.prototype:void 0,Y=J?J.valueOf:void 0,X=J?J.toString:void 0;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__=Ie?Ie(null):{}}function We(e){return this.has(e)&&delete this.__data__[e]}function Ge(e){var t=this.__data__;if(Ie){var n=t[e];return n===i?void 0:n}return G.call(t,e)?t[e]:void 0}function Ke(e){var t=this.__data__;return Ie?t[e]!==void 0:G.call(t,e)}function qe(e,t){var n=this.__data__;return n[e]=Ie&&t===void 0?i: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__=[]}function Xe(e){var t=this.__data__,n=gt(t,e);return n<0?!1:(n==t.length-1?t.pop():ke.call(t,n,1),!0)}function Ze(e){var t=this.__data__,n=gt(t,e);return n<0?void 0:t[n][1]}function Qe(e){return gt(this.__data__,e)>-1}function $e(e,t){var n=this.__data__,r=gt(n,e);return r<0?n.push([e,t]):n[r][1]=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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tt(){this.__data__={hash:new He,map:new(Me||Je),string:new He}}function nt(e){return zt(this,e).delete(e)}function rt(e){return zt(this,e).get(e)}function it(e){return zt(this,e).has(e)}function at(e,t){return zt(this,e).set(e,t),this}et.prototype.clear=tt,et.prototype.delete=nt,et.prototype.get=rt,et.prototype.has=it,et.prototype.set=at;function ot(e){var t=-1,n=e?e.length:0;for(this.__data__=new et;++t<n;)this.add(e[t])}function st(e){return this.__data__.set(e,i),this}function ct(e){return this.__data__.has(e)}ot.prototype.add=ot.prototype.push=st,ot.prototype.has=ct;function lt(e){this.__data__=new Je(e)}function ut(){this.__data__=new Je}function dt(e){return this.__data__.delete(e)}function ft(e){return this.__data__.get(e)}function pt(e){return this.__data__.has(e)}function mt(e,t){var r=this.__data__;if(r instanceof Je){var i=r.__data__;if(!Me||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new et(i)}return r.set(e,t),this}lt.prototype.clear=ut,lt.prototype.delete=dt,lt.prototype.get=ft,lt.prototype.has=pt,lt.prototype.set=mt;function ht(e,t){var n=tn(e)||en(e)?de(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||G.call(e,a))&&!(i&&(a==`length`||Wt(a,r)))&&n.push(a);return n}function gt(e,t){for(var n=e.length;n--;)if($t(e[n][0],t))return n;return-1}function _t(e){return sn(e)?De(e):{}}var vt=Ft();function yt(e,t){return e&&vt(e,t,mn)}function bt(e,t){t=Gt(t,e)?[t]:Pt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xt(t[n++])];return n&&n==r?e:void 0}function xt(e){return K.call(e)}function St(e,t){return e!=null&&t in Object(e)}function Ct(e,t,n,r,i){return e===t?!0:e==null||t==null||!sn(e)&&!cn(t)?e!==e&&t!==t:wt(e,t,Ct,n,r,i)}function wt(e,t,n,r,i,a){var s=tn(e),c=tn(t),d=u,f=u;s||(d=Ht(e),d=d==l?v:d),c||(f=Ht(t),f=f==l?v:f);var p=d==v&&!me(e),m=f==v&&!me(t),h=d==f;if(h&&!p)return a||=new lt,s||un(e)?It(e,t,n,r,i,a):Lt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&G.call(e,`__wrapped__`),_=m&&G.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new lt,n(y,b,r,i,a)}}return h?(a||=new lt,Rt(e,t,n,r,i,a)):!1}function Tt(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new lt;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?Ct(f,d,r,a|o,p):m))return!1}}return!0}function Et(e){return!sn(e)||qt(e)?!1:(an(e)||me(e)?q:R).test(Zt(e))}function Dt(e){return cn(e)&&on(e.length)&&!!B[K.call(e)]}function Ot(e){return typeof e==`function`?e:e==null?gn:typeof e==`object`?tn(e)?jt(e[0],e[1]):At(e):_n(e)}function kt(e){if(!Jt(e))return Ae(e);var t=[];for(var n in Object(e))G.call(e,n)&&n!=`constructor`&&t.push(n);return t}function At(e){var t=Bt(e);return t.length==1&&t[0][2]?Q(t[0][0],t[0][1]):function(n){return n===e||Tt(n,e,t)}}function jt(e,t){return Gt(e)&&Z(t)?Q(Xt(e),t):function(n){var r=fn(n,e);return r===void 0&&r===t?pn(n,e):Ct(t,r,void 0,a|o)}}function Mt(e){return function(t){return bt(t,e)}}function Nt(e){if(typeof e==`string`)return e;if(ln(e))return X?X.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Pt(e){return tn(e)?e:Yt(e)}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 It(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new ot:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!le(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Lt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Te(e),new Te(t)));case d:case f:case _:return $t(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=he;case x:var u=s&o;if(l||=_e,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=It(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(Y)return Y.call(e)==Y.call(t)}return!1}function Rt(e,t,n,r,i,a){var s=i&o,c=mn(e),l=c.length;if(l!=mn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:G.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function zt(e,t){var n=e.__data__;return Kt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Bt(e){for(var t=mn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Z(i)]}return t}function Vt(e,t){var n=pe(e,t);return Et(n)?n:void 0}var Ht=xt;(je&&Ht(new je(new ArrayBuffer(1)))!=E||Me&&Ht(new Me)!=g||Ne&&Ht(Ne.resolve())!=y||Pe&&Ht(new Pe)!=x||Fe&&Ht(new Fe)!=w)&&(Ht=function(e){var t=K.call(e),n=t==v?e.constructor:void 0,r=n?Zt(n):void 0;if(r)switch(r){case Le:return E;case Re:return g;case ze:return y;case Be:return x;case Ve:return w}return t});function Ut(e,t,n){t=Gt(t,e)?[t]:Pt(t);for(var r,i=-1,a=t.length;++i<a;){var o=Xt(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)&&Wt(o,a)&&(tn(e)||en(e))}function Wt(e,t){return t??=c,!!t&&(typeof e==`number`||z.test(e))&&e>-1&&e%1==0&&e<t}function Gt(e,t){if(tn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ln(e)?!0:ne.test(e)||!P.test(e)||t!=null&&e in Object(t)}function Kt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function qt(e){return!!Se&&Se in e}function Jt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||be)}function Z(e){return e===e&&!sn(e)}function Q(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Yt=Qt(function(e){e=dn(e);var t=[];return F.test(e)&&t.push(``),e.replace(I,function(e,n,r,i){t.push(r?i.replace(L,`$1`):n||e)}),t});function Xt(e){if(typeof e==`string`||ln(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Zt(e){if(e!=null){try{return Ce.call(e)}catch{}try{return e+``}catch{}}return``}function Qt(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(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),o};return n.cache=new(Qt.Cache||et),n}Qt.Cache=et;function $t(e,t){return e===t||e!==e&&t!==t}function en(e){return rn(e)&&G.call(e,`callee`)&&(!Oe.call(e,`callee`)||K.call(e)==l)}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)?K.call(e):``;return t==m||t==h}function on(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}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)&&K.call(e)==C}var un=ce?fe(ce):Dt;function dn(e){return e==null?``:Nt(e)}function fn(e,t,n){var r=e==null?void 0:bt(e,t);return r===void 0?n:r}function pn(e,t){return e!=null&&Ut(e,t,St)}function mn(e){return nn(e)?ht(e):kt(e)}function hn(e,t,n){var r=tn(e)||un(e);if(t=Ot(t,4),n==null)if(r||sn(e)){var i=e.constructor;n=r?tn(e)?new i:[]:an(i)?_t(Ee(e)):{}}else n={};return(r?W:yt)(e,function(e,r,i){return t(n,e,r,i)}),n}function gn(e){return e}function _n(e){return Gt(e)?ue(Xt(e)):Mt(e)}t.exports=hn})),Gi=e.t(((e,t)=>{var n;if(typeof require==`function`)try{n={clone:zi(),constant:nr(),each:rr(),filter:Bi(),has:Vi(),isArray:Array.isArray,isEmpty:ir(),isFunction:ar(),isUndefined:or(),keys:Hi(),map:Ui(),reduce:sr(),size:ur(),transform:Wi(),union:Rn(),values:cr()}}catch{}n||=window._,t.exports=n})),Ki=e.t(((e,t)=>{var n=Gi();t.exports=o;var r=`\0`,i=`\0`,a=``;function o(e){this._isDirected=n.has(e,`directed`)?e.directed:!0,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)}})),qi=e.t(((e,t)=>{t.exports=`2.1.9-patch.3`})),Ji=e.t(((e,t)=>{t.exports={Graph:Ki(),version:qi()}})),Yi=e.t(((e,t)=>{var n=Gi(),r=Ki();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}})),Xi=e.t(((e,t)=>{var n=Gi();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}})),Zi=e.t(((e,t)=>{var n=Gi();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}})),Qi=e.t(((e,t)=>{var n=Gi(),r=Zi();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}})),$i=e.t(((e,t)=>{var n=Qi(),r=Gi();t.exports=i;function i(e,t,i){return r.transform(e.nodes(),function(r,a){r[a]=n(e,a,t,i)},{})}})),ea=e.t(((e,t)=>{var n=Gi();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}})),ta=e.t(((e,t)=>{var n=Gi(),r=ea();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])})}})),na=e.t(((e,t)=>{var n=Gi();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}})),ra=e.t(((e,t)=>{var n=Gi();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=Error()})),ia=e.t(((e,t)=>{var n=ra();t.exports=r;function r(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}})),aa=e.t(((e,t)=>{var n=Gi();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))}})),oa=e.t(((e,t)=>{var n=aa();t.exports=r;function r(e,t){return n(e,t,`post`)}})),sa=e.t(((e,t)=>{var n=aa();t.exports=r;function r(e,t){return n(e,t,`pre`)}})),ca=e.t(((e,t)=>{var n=Gi(),r=Ki(),i=Zi();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}})),la=e.t(((e,t)=>{t.exports={components:Xi(),dijkstra:Qi(),dijkstraAll:$i(),findCycles:ta(),floydWarshall:na(),isAcyclic:ia(),postorder:oa(),preorder:sa(),prim:ca(),tarjan:ea(),topsort:ra()}})),ua=e.t(((e,t)=>{var n=Ji();t.exports={Graph:n.Graph,json:Yi(),alg:la(),version:n.version}})),da=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=`ffffffff-ffff-ffff-ffff-ffffffffffff`})),fa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=`00000000-0000-0000-0000-000000000000`})),pa=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})),ma=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=pa();function n(e){return typeof e==`string`&&t.default.test(e)}e.default=n})),ha=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ma();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})),ga=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unsafeStringify=void 0;let t=ma(),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})),_a=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=require(`crypto`),n=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})),va=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateV1State=void 0;let t=_a(),n=ga(),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=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})),ya=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ha(),n=ga();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])}})),ba=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})),xa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=e.stringToBytes=void 0;let t=ha(),n=ga();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})),Sa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=void 0;let t=ba(),n=xa();var r=xa();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})),Ca=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={randomUUID:require(`crypto`).randomUUID}})),wa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Ca(),n=_a(),r=ga();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})),Ta=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})),Ea=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.URL=e.DNS=void 0;let t=Ta(),n=xa();var r=xa();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})),Da=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ga(),n=va(),r=ya();function i(e,i,a){e??={},a??=0;let o=(0,n.default)({...e,_v6:!0},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})),Oa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ha(),n=ga();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])}})),ka=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateV7State=void 0;let t=_a(),n=ga(),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=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})),Aa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ma();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}e.default=n})),ja=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=da();Object.defineProperty(e,`MAX`,{enumerable:!0,get:function(){return t.default}});var n=fa();Object.defineProperty(e,`NIL`,{enumerable:!0,get:function(){return n.default}});var r=ha();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.default}});var i=ga();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.default}});var a=va();Object.defineProperty(e,`v1`,{enumerable:!0,get:function(){return a.default}});var o=ya();Object.defineProperty(e,`v1ToV6`,{enumerable:!0,get:function(){return o.default}});var s=Sa();Object.defineProperty(e,`v3`,{enumerable:!0,get:function(){return s.default}});var c=wa();Object.defineProperty(e,`v4`,{enumerable:!0,get:function(){return c.default}});var l=Ea();Object.defineProperty(e,`v5`,{enumerable:!0,get:function(){return l.default}});var u=Da();Object.defineProperty(e,`v6`,{enumerable:!0,get:function(){return u.default}});var d=Oa();Object.defineProperty(e,`v6ToV1`,{enumerable:!0,get:function(){return d.default}});var f=ka();Object.defineProperty(e,`v7`,{enumerable:!0,get:function(){return f.default}});var p=ma();Object.defineProperty(e,`validate`,{enumerable:!0,get:function(){return p.default}});var m=Aa();Object.defineProperty(e,`version`,{enumerable:!0,get:function(){return m.default}})})),Ma=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}})),Na=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LockParserBase=void 0;let n=Li(),r=ir(),i=Ri(),a=ua(),o=ja(),s=$(),c=t.t(),l=Ma(),u=Ii(),d=Rr(),f=c(`snyk-nodejs-parser`);e.LockParserBase=class{type;treeSizeLimit;pathDelimiter=`|`;constructor(e,t){this.type=e,this.treeSizeLimit=t}async getDependencyTree(e,t,i=!1,o=!0,c,l){if(t.type!==this.type)throw new d.InvalidUserInputError("Unsupported lockfile provided. Please provide `package-lock.json`.");let f=t,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:t.type===u.LockfileType.npm7,applyYarn2Resolutions:t.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 t=this.getDepTreeKey(e),r=_[t]||t;if(v[r])p.dependencies[e.name]=e.dev?this.setDevDepRec(n(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,t,r){let i=e+(0,o.v4)();return t[i]=n(t[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`)}}})),Pa=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,I={};I[D]=I[O]=I[k]=I[A]=I[j]=I[M]=I[ee]=I[te]=I[N]=!0,I[s]=I[c]=I[T]=I[u]=I[E]=I[d]=I[f]=I[p]=I[h]=I[g]=I[v]=I[b]=I[x]=I[S]=I[w]=!1;var re=typeof global==`object`&&global&&global.Object===Object&&global,L=typeof self==`object`&&self&&self.Object===Object&&self,R=re||L||Function(`return this`)(),z=typeof e==`object`&&e&&!e.nodeType&&e,B=z&&typeof t==`object`&&t&&!t.nodeType&&t,V=B&&B.exports===z,ie=V&&re.process,H=function(){try{return B&&B.require&&B.require(`util`).types||ie&&ie.binding&&ie.binding(`util`)}catch{}}(),U=H&&H.isTypedArray;function ae(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 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,t){return function(n){return e(t(n))}}var le=Array.prototype,ue=Function.prototype,de=Object.prototype,fe=R[`__core-js_shared__`],pe=ue.toString,me=de.hasOwnProperty,he=function(){var e=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ge=de.toString,_e=pe.call(Object),ve=RegExp(`^`+pe.call(me).replace(P,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ye=V?R.Buffer:void 0,be=R.Symbol,xe=R.Uint8Array,Se=ye?ye.allocUnsafe:void 0,Ce=W(Object.getPrototypeOf,Object),G=Object.create,K=de.propertyIsEnumerable,q=le.splice,we=be?be.toStringTag:void 0,Te=function(){try{var e=St(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ee=ye?ye.isBuffer:void 0,De=Math.max,Oe=Date.now,ke=St(R,`Map`),Ae=St(Object,`create`),je=function(){function e(){}return function(t){if(!Gt(t))return{};if(G)return G(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Me(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 Ne(){this.__data__=Ae?Ae(null):{},this.size=0}function Pe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Fe(e){var t=this.__data__;if(Ae){var n=t[e];return n===r?void 0:n}return me.call(t,e)?t[e]:void 0}function Ie(e){var t=this.__data__;return Ae?t[e]!==void 0:me.call(t,e)}function Le(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Ae&&t===void 0?r:t,this}Me.prototype.clear=Ne,Me.prototype.delete=Pe,Me.prototype.get=Fe,Me.prototype.has=Ie,Me.prototype.set=Le;function Re(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 ze(){this.__data__=[],this.size=0}function Be(e){var t=this.__data__,n=nt(t,e);return n<0?!1:(n==t.length-1?t.pop():q.call(t,n,1),--this.size,!0)}function Ve(e){var t=this.__data__,n=nt(t,e);return n<0?void 0:t[n][1]}function J(e){return nt(this.__data__,e)>-1}function Y(e,t){var n=this.__data__,r=nt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Re.prototype.clear=ze,Re.prototype.delete=Be,Re.prototype.get=Ve,Re.prototype.has=J,Re.prototype.set=Y;function X(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 He(){this.size=0,this.__data__={hash:new Me,map:new(ke||Re),string:new Me}}function Ue(e){var t=xt(this,e).delete(e);return this.size-=+!!t,t}function We(e){return xt(this,e).get(e)}function Ge(e){return xt(this,e).has(e)}function Ke(e,t){var n=xt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,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=this.__data__=new Re(e);this.size=t.size}function Je(){this.__data__=new Re,this.size=0}function Ye(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Xe(e){return this.__data__.get(e)}function Ze(e){return this.__data__.has(e)}function Qe(e,t){var r=this.__data__;if(r instanceof Re){var i=r.__data__;if(!ke||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new X(i)}return r.set(e,t),this.size=r.size,this}qe.prototype.clear=Je,qe.prototype.delete=Ye,qe.prototype.get=Xe,qe.prototype.has=Ze,qe.prototype.set=Qe;function $e(e,t){var n=zt(e),r=!n&&Rt(e),i=!n&&!r&&Ht(e),a=!n&&!r&&!i&&Jt(e),o=n||r||i||a,s=o?oe(e.length,String):[],c=s.length;for(var l in e)(t||me.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Tt(l,c)))&&s.push(l);return s}function et(e,t,n){(n!==void 0&&!Lt(e[t],n)||n===void 0&&!(t in e))&&rt(e,t,n)}function tt(e,t,n){var r=e[t];(!(me.call(e,t)&&Lt(r,n))||n===void 0&&!(t in e))&&rt(e,t,n)}function nt(e,t){for(var n=e.length;n--;)if(Lt(e[n][0],t))return n;return-1}function rt(e,t,n){t==`__proto__`&&Te?Te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var it=bt();function at(e){return e==null?e===void 0?C:_:we&&we in Object(e)?Ct(e):jt(e)}function ot(e){return Kt(e)&&at(e)==s}function st(e){return!Gt(e)||Ot(e)?!1:(Ut(e)?ve:ne).test(It(e))}function ct(e){return Kt(e)&&Wt(e.length)&&!!I[at(e)]}function lt(e){if(!Gt(e))return At(e);var t=kt(e),n=[];for(var r in e)r==`constructor`&&(t||!me.call(e,r))||n.push(r);return n}function ut(e,t,n,r,i){e!==t&&it(t,function(a,o){if(i||=new qe,Gt(a))dt(e,t,o,n,ut,r,i);else{var s=r?r(Nt(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),et(e,o,s)}},Q)}function dt(e,t,n,r,i,a,o){var s=Nt(e,n),c=Nt(t,n),l=o.get(c);if(l){et(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=zt(c),p=!f&&Ht(c),m=!f&&!p&&Jt(c);u=c,f||p||m?zt(s)?u=s:Vt(s)?u=_t(s):p?(d=!1,u=mt(c,!0)):m?(d=!1,u=gt(c,!0)):u=[]:qt(c)||Rt(c)?(u=s,Rt(s)?u=Z(s):(!Gt(s)||Ut(s))&&(u=wt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),et(e,n,u)}function ft(e,t){return Pt(Mt(e,t,Zt),e+``)}var pt=Te?function(e,t){return Te(e,`toString`,{configurable:!0,enumerable:!1,value:Xt(t),writable:!0})}:Zt;function mt(e,t){if(t)return e.slice();var n=e.length,r=Se?Se(n):new e.constructor(n);return e.copy(r),r}function ht(e){var t=new e.constructor(e.byteLength);return new xe(t).set(new xe(e)),t}function gt(e,t){var n=t?ht(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _t(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function vt(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?rt(n,s,c):tt(n,s,c)}return n}function yt(e){return ft(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&&Et(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 bt(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 xt(e,t){var n=e.__data__;return Dt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function St(e,t){var n=ce(e,t);return st(n)?n:void 0}function Ct(e){var t=me.call(e,we),n=e[we];try{e[we]=void 0;var r=!0}catch{}var i=ge.call(e);return r&&(t?e[we]=n:delete e[we]),i}function wt(e){return typeof e.constructor==`function`&&!kt(e)?je(Ce(e)):{}}function Tt(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&F.test(e))&&e>-1&&e%1==0&&e<t}function Et(e,t,n){if(!Gt(n))return!1;var r=typeof t;return(r==`number`?Bt(n)&&Tt(t,n.length):r==`string`&&t in n)?Lt(n[t],e):!1}function Dt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ot(e){return!!he&&he in e}function kt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||de)}function At(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function jt(e){return ge.call(e)}function Mt(e,t,n){return t=De(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=De(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),ae(e,this,s)}}function Nt(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Pt=Ft(pt);function Ft(e){var t=0,n=0;return function(){var r=Oe(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function It(e){if(e!=null){try{return pe.call(e)}catch{}try{return e+``}catch{}}return``}function Lt(e,t){return e===t||e!==e&&t!==t}var Rt=ot(function(){return arguments}())?ot:function(e){return Kt(e)&&me.call(e,`callee`)&&!K.call(e,`callee`)},zt=Array.isArray;function Bt(e){return e!=null&&Wt(e.length)&&!Ut(e)}function Vt(e){return Kt(e)&&Bt(e)}var Ht=Ee||Qt;function Ut(e){if(!Gt(e))return!1;var t=at(e);return t==p||t==m||t==l||t==y}function Wt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Gt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Kt(e){return typeof e==`object`&&!!e}function qt(e){if(!Kt(e)||at(e)!=v)return!1;var t=Ce(e);if(t===null)return!0;var n=me.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pe.call(n)==_e}var Jt=U?se(U):ct;function Z(e){return vt(e,Q(e))}function Q(e){return Bt(e)?$e(e,!0):lt(e)}var Yt=yt(function(e,t,n){ut(e,t,n)});function Xt(e){return function(){return e}}function Zt(e){return e}function Qt(){return!1}t.exports=Yt})),Fa=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}})),Ia=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Memory=void 0;let t=La();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];continue}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?!1:(this.mtimes={},this.store={},!0)},e.Memory.prototype.loadSync=function(){return this.store||{}}})),La=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=Ln(),r=Fa(),i=Ia();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=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})),Ra=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Provider=void 0;let t=Ln(),n=La();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||=`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(!Wa().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(Wa()).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(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(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}})),za=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?!1: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]?``:!0,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);continue}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}else f(b[S],a.strings[b[S]]?``:!0,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]?``:!0,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}})),Ba=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Argv=void 0;let t=require(`path`),n=require(`util`),r=La(),i=Ia(),a=za();e.Argv=function(e,t){i.Memory.call(this,e),e||={},this.type=`argv`,this.readOnly=e.readOnly===void 0?!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}})),Va=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Env=void 0;let t=require(`util`),n=La(),r=Ia();e.Env=function(e){r.Memory.call(this,e),e||={},this.type=`env`,this.readOnly=e.readOnly===void 0?!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}})),Ha=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=Fa(),o=Ia(),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(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}})),Ua=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Literal=void 0;let t=require(`util`),n=Ia();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}})),Wa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=La(),n=Ra(),r=Fa(),i=Ba(),a=Va(),o=Ha(),s=Ua(),c=Ia(),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})),Ga=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadConfig=void 0;let n=t.t(),r=require(`path`),i=Pa(),a=Wa(),o=n(`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}})),Ka=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.config=void 0,e.config=(0,Ga().loadConfig)(__dirname+`../..`)})),qa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hashLabelsFromIntegrity=a,e.distributionUrlLabel=o,e.hashLabelFromResolvedFragment=s,e.getComponentMetadataLabels=c;let n=t.t()(`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,t){if(!e)return n(`No integrity for ${t}; skipping hash labels`),{};let a={};for(let o of e.trim().split(/\s+/)){let e=o.indexOf(`-`);if(e===-1){n(`Unrecognised integrity "${o}" for ${t}; skipping`);continue}let s=o.slice(0,e).toLowerCase(),c=o.slice(e+1).split(`?`)[0],l=r[s];if(!l||!c){n(`Unrecognised integrity "${o}" for ${t}; skipping`);continue}let u=Buffer.from(c,`base64`);if(u.length!==i[s]){n(`Integrity "${o}" for ${t} decoded to ${u.length} bytes, expected ${i[s]} for ${s}; skipping`);continue}a[l]=u.toString(`hex`)}return a}function o(e,t){if(!e)return n(`No resolved URL for ${t}; skipping distribution:url label`),{};let r;try{r=new URL(e)}catch{return n(`resolved "${e}" for ${t} is not a parseable URL; skipping distribution:url label`),{}}return r.protocol!==`http:`&&r.protocol!==`https:`?(n(`resolved "${e}" for ${t} is not an http(s) URL; skipping distribution:url label`),{}):((r.username||r.password)&&(r.password=``,r.username=``,n(`Stripped credentials from resolved URL for ${t}`)),r.hash&&=``,{"distribution:url":r.toString()})}function s(e,t){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&&n(`resolved fragment "${i}" for ${t} 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)}}})),Ja=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PackageLockParser=void 0;let t=Ii(),n=Na(),r=Ka(),i=Fi(),a=qa();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}}})),Ya=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 re((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 F(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 P(i);if(e===(yield P(o))){d(),a.verbose(a.lang(`verboseFileSkipSymlink`,i,o,e));return}}if(t){let e=yield F(o);ie(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 F(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 P(i);p.symlink.push({dest:o,linkname:e}),d()}else if(f.isDirectory()){h||(a.verbose(a.lang(`verboseFileFolder`,o)),yield re(o));let t=o.split((v||y()).default.sep);for(;t.length;)c.add(t.join((v||y()).default.sep).toLowerCase()),t.pop();ie(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=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,B);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 F(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 I(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 P(i);if(e===(yield P(o))){u(),a.verbose(a.lang(`verboseFileSkipSymlink`,i,o,e));return}}if(r){let e=yield F(o);ie(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 F(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 P(i);p.symlink.push({dest:o,linkname:e}),u()}else if(d.isDirectory()){a.verbose(a.lang(`verboseFileFolder`,o)),yield re(o);let t=o.split((v||y()).default.sep);for(;t.length;)c.add(t.join((v||y()).default.sep).toLowerCase()),t.pop();ie(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=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,B);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: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=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)}})(),B);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: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)}})(),B);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 ne(t))===e)return}catch(e){if(e.code!==`ENOENT`)throw e}if(yield(0,(O||k()).unlink)(t),process.platform===`win32`)yield V(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 V(n||`.`,t)}});return function(t,n){return e.apply(this,arguments)}})(),u=t.walk=(()=>{var e=(0,(r||i()).default)(function*(e,t,n=new Set){let r=[],i=yield F(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 re(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 re(e),yield I(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),P=t.readlink=(0,(w||T()).promisify)((f||p()).default.readlink),ne=t.realpath=(0,(w||T()).promisify)((f||p()).default.realpath),F=t.readdir=(0,(w||T()).promisify)((f||p()).default.readdir);t.rename=(0,(w||T()).promisify)((f||p()).default.rename);let I=t.access=(0,(w||T()).promisify)((f||p()).default.access);t.stat=(0,(w||T()).promisify)((f||p()).default.stat);let re=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 B=(f||p()).default.copyFile?128:4,V=(0,(w||T()).promisify)((f||p()).default.symlink),ie=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=30*1e3,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=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=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)}else 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=new d(`${a}-${i.createHash(a).update(e).digest(`base64`)}${r}`,t);if(o.algorithm&&o.digest){let e=o.algorithm;n[e]||(n[e]=[]),n[e].push(o)}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(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=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}else{let n=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=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=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=new d(`${i}-${r.shift().digest(`base64`)}${n}`,e);if(a.algorithm&&a.digest){let e=a.algorithm;t[e]||(t[e]=[]),t[e].push(a)}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;return}if(!e){this.empty=!0;return}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>1024*64)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;break}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;continue}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),P=r.slice(M.reEnd);N+=P;var ne=ee.split(`(`).length-1,F=P;for(b=0;b<ne;b++)F=F.replace(/\)[+*?]?/,``);P=F;var I=``;P===``&&t!==x&&(I=`$`),r=ee+te+P+I+N}if(r!==``&&a&&(r=`(?=.)`+r),A&&(r=_+r),t===x)return[r,a];if(!a)return T(e);var re=n.nocase?`i`:``;try{var L=RegExp(`^`+r+`$`,re)}catch{return 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);var a,o;for(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?!1: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]);return}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(`/`);break}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]);return}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=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);break}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):!1}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}else if(r||e.startsWith(`|||||||`)){r=!0;continue}else 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(${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=+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?!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;var n,r;for(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)});break}})}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;break}}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&&(d=x((yield m(t)).mtime,n.mtime)),!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`)}else if(process.env.XDG_DATA_HOME)return r.join(process.env.XDG_DATA_HOME,`yarn`);else return 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`)}else if(process.env.XDG_CONFIG_HOME)return r.join(process.env.XDG_CONFIG_HOME,`yarn`);else return 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&&ne(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=P(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||P(e)?2:1),e._a=void 0,n&&r.e)throw r.v})},P=function(e){return e._h!==1&&(e._a||e._c).length===0},ne=function(e){p.call(i,function(){var t;T?x.emit(`rejectionHandled`,e):(t=i.onrejectionhandled)&&t({promise:e,reason:e._v})})},F=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||=t._c.slice(),te(t,!0))},I=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(I,r,1),a(F,r,1))}catch(e){F.call(r,e)}}):(t._v=e,t._s=1,te(t,!1))}catch(e){F.call({_w:t,_d:!1},e)}}};M||(w=function(e){u(this,w,y,`_h`),l(e),D.call(this);try{e(a(I,this,1),a(F,this,1))}catch(e){F.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:!0,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(I,e,1),this.reject=a(F,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=`#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){typeof process>`u`||process.type===`renderer`?e.exports=n(211):e.exports=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?``: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=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(`/`);break}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)}return}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=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);break}},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?!0: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){typeof Object.create==`function`?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=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(!0)}}),,,,,,(function(e,t,n){"use strict";var r=n(221),i=function(e){return e===0?!1:{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)})])})),Xa=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.YarnLockParser=void 0;let t=Ya(),n=Ii(),r=Rr(),i=Na(),a=Ka(),o=qa();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))}})),Za=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}`}})),Qa=e.t(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,ee=`[object Uint8ClampedArray]`,te=`[object Uint16Array]`,N=`[object Uint32Array]`,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,F=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,B={};B[D]=B[O]=B[k]=B[A]=B[j]=B[M]=B[ee]=B[te]=B[N]=!0,B[l]=B[u]=B[T]=B[d]=B[E]=B[f]=B[p]=B[m]=B[g]=B[_]=B[v]=B[b]=B[x]=B[S]=B[w]=!1;var V=typeof global==`object`&&global&&global.Object===Object&&global,ie=typeof self==`object`&&self&&self.Object===Object&&self,H=V||ie||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ae=U&&typeof t==`object`&&t&&!t.nodeType&&t,oe=ae&&ae.exports===U&&V.process,se=function(){try{return oe&&oe.binding(`util`)}catch{}}(),ce=se&&se.isTypedArray;function W(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 le(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ue(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function de(e){return function(t){return t?.[e]}}function fe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function pe(e){return function(t){return e(t)}}function me(e,t){return e?.[t]}function he(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ge(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function _e(e,t){return function(n){return e(t(n))}}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ye=Array.prototype,be=Function.prototype,xe=Object.prototype,Se=H[`__core-js_shared__`],Ce=function(){var e=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),G=be.toString,K=xe.hasOwnProperty,q=xe.toString,we=RegExp(`^`+G.call(K).replace(re,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Te=H.Symbol,Ee=H.Uint8Array,De=xe.propertyIsEnumerable,Oe=ye.splice,ke=Te?Te.isConcatSpreadable:void 0,Ae=_e(Object.keys,Object),je=Wt(H,`DataView`),Me=Wt(H,`Map`),Ne=Wt(H,`Promise`),Pe=Wt(H,`Set`),Fe=Wt(H,`WeakMap`),Ie=Wt(Object,`create`),Le=tn(je),Re=tn(Me),ze=tn(Ne),Be=tn(Pe),Ve=tn(Fe),J=Te?Te.prototype:void 0,Y=J?J.valueOf:void 0,X=J?J.toString:void 0;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__=Ie?Ie(null):{}}function We(e){return this.has(e)&&delete this.__data__[e]}function Ge(e){var t=this.__data__;if(Ie){var n=t[e];return n===i?void 0:n}return K.call(t,e)?t[e]:void 0}function Ke(e){var t=this.__data__;return Ie?t[e]!==void 0:K.call(t,e)}function qe(e,t){var n=this.__data__;return n[e]=Ie&&t===void 0?i: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__=[]}function Xe(e){var t=this.__data__,n=gt(t,e);return n<0?!1:(n==t.length-1?t.pop():Oe.call(t,n,1),!0)}function Ze(e){var t=this.__data__,n=gt(t,e);return n<0?void 0:t[n][1]}function Qe(e){return gt(this.__data__,e)>-1}function $e(e,t){var n=this.__data__,r=gt(n,e);return r<0?n.push([e,t]):n[r][1]=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.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tt(){this.__data__={hash:new He,map:new(Me||Je),string:new He}}function nt(e){return Ht(this,e).delete(e)}function rt(e){return Ht(this,e).get(e)}function it(e){return Ht(this,e).has(e)}function at(e,t){return Ht(this,e).set(e,t),this}et.prototype.clear=tt,et.prototype.delete=nt,et.prototype.get=rt,et.prototype.has=it,et.prototype.set=at;function ot(e){var t=-1,n=e?e.length:0;for(this.__data__=new et;++t<n;)this.add(e[t])}function st(e){return this.__data__.set(e,i),this}function ct(e){return this.__data__.has(e)}ot.prototype.add=ot.prototype.push=st,ot.prototype.has=ct;function lt(e){this.__data__=new Je(e)}function ut(){this.__data__=new Je}function dt(e){return this.__data__.delete(e)}function ft(e){return this.__data__.get(e)}function pt(e){return this.__data__.has(e)}function mt(e,t){var r=this.__data__;if(r instanceof Je){var i=r.__data__;if(!Me||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new et(i)}return r.set(e,t),this}lt.prototype.clear=ut,lt.prototype.delete=dt,lt.prototype.get=ft,lt.prototype.has=pt,lt.prototype.set=mt;function ht(e,t){var n=cn(e)||sn(e)?fe(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||K.call(e,a))&&!(i&&(a==`length`||Jt(a,r)))&&n.push(a);return n}function gt(e,t){for(var n=e.length;n--;)if(on(e[n][0],t))return n;return-1}var _t=Lt(bt);function vt(e,t,n,r,i){var a=-1,o=e.length;for(n||=qt,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?vt(s,t-1,n,r,i):le(i,s):r||(i[i.length]=s)}return i}var yt=Rt();function bt(e,t){return e&&yt(e,t,bn)}function xt(e,t){t=Z(t,e)?[t]:It(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[en(t[n++])];return n&&n==r?e:void 0}function St(e){return q.call(e)}function Ct(e,t){return e!=null&&t in Object(e)}function wt(e,t,n,r,i){return e===t?!0:e==null||t==null||!pn(e)&&!mn(t)?e!==e&&t!==t:Tt(e,t,wt,n,r,i)}function Tt(e,t,n,r,i,a){var s=cn(e),c=cn(t),d=u,f=u;s||(d=Gt(e),d=d==l?v:d),c||(f=Gt(t),f=f==l?v:f);var p=d==v&&!he(e),m=f==v&&!he(t),h=d==f;if(h&&!p)return a||=new lt,s||gn(e)?zt(e,t,n,r,i,a):Bt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&K.call(e,`__wrapped__`),_=m&&K.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new lt,n(y,b,r,i,a)}}return h?(a||=new lt,Vt(e,t,n,r,i,a)):!1}function Et(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new lt;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?wt(f,d,r,a|o,p):m))return!1}}return!0}function Dt(e){return!pn(e)||Yt(e)?!1:(dn(e)||he(e)?we:R).test(tn(e))}function Ot(e){return mn(e)&&fn(e.length)&&!!B[q.call(e)]}function kt(e){return typeof e==`function`?e:e==null?xn:typeof e==`object`?cn(e)?Nt(e[0],e[1]):Mt(e):Sn(e)}function At(e){if(!Xt(e))return Ae(e);var t=[];for(var n in Object(e))K.call(e,n)&&n!=`constructor`&&t.push(n);return t}function jt(e,t){var n=-1,r=ln(e)?Array(e.length):[];return _t(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Mt(e){var t=Ut(e);return t.length==1&&t[0][2]?Qt(t[0][0],t[0][1]):function(n){return n===e||Et(n,e,t)}}function Nt(e,t){return Z(e)&&Zt(t)?Qt(en(e),t):function(n){var r=vn(n,e);return r===void 0&&r===t?yn(n,e):wt(t,r,void 0,a|o)}}function Pt(e){return function(t){return xt(t,e)}}function Ft(e){if(typeof e==`string`)return e;if(hn(e))return X?X.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function It(e){return cn(e)?e:$t(e)}function Lt(e,t){return function(n,r){if(n==null)return n;if(!ln(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 Rt(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 zt(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new ot:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!ue(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Bt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Ee(e),new Ee(t)));case d:case f:case _:return on(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=ge;case x:var u=s&o;if(l||=ve,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=zt(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(Y)return Y.call(e)==Y.call(t)}return!1}function Vt(e,t,n,r,i,a){var s=i&o,c=bn(e),l=c.length;if(l!=bn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:K.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function Ht(e,t){var n=e.__data__;return Q(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ut(e){for(var t=bn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Zt(i)]}return t}function Wt(e,t){var n=me(e,t);return Dt(n)?n:void 0}var Gt=St;(je&&Gt(new je(new ArrayBuffer(1)))!=E||Me&&Gt(new Me)!=g||Ne&&Gt(Ne.resolve())!=y||Pe&&Gt(new Pe)!=x||Fe&&Gt(new Fe)!=w)&&(Gt=function(e){var t=q.call(e),n=t==v?e.constructor:void 0,r=n?tn(n):void 0;if(r)switch(r){case Le:return E;case Re:return g;case ze:return y;case Be:return x;case Ve:return w}return t});function Kt(e,t,n){t=Z(t,e)?[t]:It(t);for(var r,i=-1,a=t.length;++i<a;){var o=en(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&&fn(a)&&Jt(o,a)&&(cn(e)||sn(e))}function qt(e){return cn(e)||sn(e)||!!(ke&&e&&e[ke])}function Jt(e,t){return t??=c,!!t&&(typeof e==`number`||z.test(e))&&e>-1&&e%1==0&&e<t}function Z(e,t){if(cn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||hn(e)?!0:ne.test(e)||!P.test(e)||t!=null&&e in Object(t)}function Q(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Yt(e){return!!Ce&&Ce in e}function Xt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xe)}function Zt(e){return e===e&&!pn(e)}function Qt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var $t=an(function(e){e=_n(e);var t=[];return F.test(e)&&t.push(``),e.replace(I,function(e,n,r,i){t.push(r?i.replace(L,`$1`):n||e)}),t});function en(e){if(typeof e==`string`||hn(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function tn(e){if(e!=null){try{return G.call(e)}catch{}try{return e+``}catch{}}return``}function nn(e,t){return vt(rn(e,t),1)}function rn(e,t){return(cn(e)?W:jt)(e,kt(t,3))}function an(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(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),o};return n.cache=new(an.Cache||et),n}an.Cache=et;function on(e,t){return e===t||e!==e&&t!==t}function sn(e){return un(e)&&K.call(e,`callee`)&&(!De.call(e,`callee`)||q.call(e)==l)}var cn=Array.isArray;function ln(e){return e!=null&&fn(e.length)&&!dn(e)}function un(e){return mn(e)&&ln(e)}function dn(e){var t=pn(e)?q.call(e):``;return t==m||t==h}function fn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function pn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function mn(e){return!!e&&typeof e==`object`}function hn(e){return typeof e==`symbol`||mn(e)&&q.call(e)==C}var gn=ce?pe(ce):Ot;function _n(e){return e==null?``:Ft(e)}function vn(e,t,n){var r=e==null?void 0:xt(e,t);return r===void 0?n:r}function yn(e,t){return e!=null&&Kt(e,t,Ct)}function bn(e){return ln(e)?ht(e):At(e)}function xn(e){return e}function Sn(e){return Z(e)?de(en(e)):Pt(e)}t.exports=nn})),$a=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.yarnLockFileKeyNormalizer=void 0;let t=Qa(),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}`);break}return r};e.yarnLockFileKeyNormalizer=(e,i)=>a=>{let o=a.split(n).map(r(e,i));return new Set(t(o))}})),eo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Yarn2LockParser=void 0;let n=Za(),r=t.t(),i=Na(),a=Ii(),o=Ka(),s=Rr(),c=$a(),l=Fi(),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 t=(0,l.loadYamlOrNull)(e);if(!t||typeof t!=`object`)throw Error(`the file is empty or does not contain a YAML mapping`);delete t.__metadata;let r={},i=(0,c.yarnLockFileKeyNormalizer)(n.parseDescriptor,n.parseRange);return Object.entries(t).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]}`}})),to=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)},new Map),n=[...t.keys()].find(e=>e.includes(`@workspace:.`)),r=t.get(n)||[];return t.delete(n),{topLevelDeps:r,dependencies:t}}})),no=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseYarnListOutput=void 0;let t=Ma();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)},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}`))}})),ro=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphFromCliOutput=void 0;let t=Ar(),n=ds(),r=Ii(),i=Ma(),a=to(),o=no();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()}})),io=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rewriteAliasesInOverrides=e.rewriteAliases=e.rewriteAliasesPkgJson=e.parseNpmAlias=void 0;let t=ao();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)}}else{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)}}})),ao=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=Rr(),n=Fi(),r=Ii(),i=io(),a=qa();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}})),oo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphYarnLockV1SimpleCyclesPruned=void 0;let t=Ar(),n=ao(),r=$();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});return await a(d,{id:`root-node`,name:r.name,version:r.version,dependencies:p,isDev:!1},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}})),so=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphYarnLockV1Simple=void 0;let t=Ar(),n=ao(),r=$(),i=io(),a=qa();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});return await o(p,{id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1},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||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);continue}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)}}})),co=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getChildNodeYarnLockV1Workspace=void 0;let t=Rr(),n=Ii(),r=ao();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}})),lo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphYarnLockV1WorkspaceCyclesPruned=void 0;let t=Ar(),n=ao(),r=co(),i=$();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});return await o(f,{id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1},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}})),uo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphYarnLockV1Workspace=void 0;let t=Ar(),n=ao(),r=co(),i=$();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=new Set,m=(0,n.getTopLevelDeps)(r,{includeDevDeps:s});return await a(f,{id:`root-node`,name:r.name,version:r.version,dependencies:m,isDev:!1},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)}}})),fo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractPkgsFromYarnLockV1=void 0;let t=Ya();e.extractPkgsFromYarnLockV1=e=>t.parse(e).object})),po=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseYarnLockV1Project=void 0;let t=yo(),n=io(),r=ao(),i=oo(),a=fo();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})}})),mo=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(`
`))})),ho=e.t(((e,t)=>{let r=n.r(),i=mo(),a=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`?a(i(e.stack)):String(e)).join(`
`);t=`
`+r(t,4),super(t),this.name=`AggregateError`,Object.defineProperty(this,`_errors`,{value:e})}*[Symbol.iterator](){for(let e of this._errors)yield e}}})),go=e.t(((e,t)=>{let n=ho();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;if(p++,e.done){d=!0,f===0&&(!i&&c.length!==0?o(new n(c)):a(s));return}f++,(async()=>{try{s[r]=await t(await e.value,r),f--,m()}catch(e){i?(u=!0,o(e)):(c.push(e),f--,m())}})()};for(let e=0;e<r&&(m(),!d);e++);})})),_o=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.cMap=r;let t=go(),n=$();async function r(e,r,i){return await t(e,async e=>(n.eventLoopSpinner.isStarving()&&await n.eventLoopSpinner.spin(),await r(e)),{concurrency:i?.concurrency??6})}})),vo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseYarnLockV1WorkspaceProject=void 0;let t=lo(),n=uo(),r=fo(),i=ao(),a=_o();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}))}})),yo=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=oo();Object.defineProperty(e,`buildDepGraphYarnLockV1SimpleCyclesPruned`,{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV1SimpleCyclesPruned}});let n=so();Object.defineProperty(e,`buildDepGraphYarnLockV1Simple`,{enumerable:!0,get:function(){return n.buildDepGraphYarnLockV1Simple}});let r=lo();Object.defineProperty(e,`buildDepGraphYarnLockV1WorkspaceCyclesPruned`,{enumerable:!0,get:function(){return r.buildDepGraphYarnLockV1WorkspaceCyclesPruned}});let i=uo();Object.defineProperty(e,`buildDepGraphYarnLockV1Workspace`,{enumerable:!0,get:function(){return i.buildDepGraphYarnLockV1Workspace}});let a=fo();Object.defineProperty(e,`extractPkgsFromYarnLockV1`,{enumerable:!0,get:function(){return a.extractPkgsFromYarnLockV1}});let o=po();Object.defineProperty(e,`parseYarnLockV1Project`,{enumerable:!0,get:function(){return o.parseYarnLockV1Project}});let s=vo();Object.defineProperty(e,`parseYarnLockV1WorkspaceProject`,{enumerable:!0,get:function(){return s.parseYarnLockV1WorkspaceProject}})})),bo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getYarnLockV2ChildNode=e.yarnLockFileKeyNormalizer=void 0;let n=Za(),r=Qa(),i=Rr(),a=Ii(),o=ao(),s=require(`semver`),c=t.t()(`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}`);break}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=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,t,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 t=e.substring(0,e.length-i.length);if(!t.includes(`@`)||t===p.name)continue;try{let r=n.parseDescriptor(t);if(n.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=n.parseDescriptor(r);if(n.stringifyIdent(i)===e&&i.range&&i.range!==`unknown`){let e=t.version.replace(/^[a-z]+:/,``),n=i.range.replace(/^[a-z]+:/,``);if(e===n||s.valid(e)&&s.satisfies(e,n))return f[r]}}catch(e){c(`Error parsing resolution key(${r}): ${e}$`)}return f[e]?f[e]:``})();if(g){let n=decodeURIComponent(g),s=`${e}@${n}`;if(!r[s]){if(l&&!/^file:/.test(n))throw new i.OutOfSyncError(s,a.LockfileType.yarn2);return{id:s,name:t.alias?t.alias.aliasTargetDepName:e,version:n,dependencies:{},isDev:t.isDev,missingLockFileEntry:!0,...t.alias?{alias:{...t.alias,version:n}}:{}}}let c=r[s],{version:f,dependencies:p,optionalDependencies:_}=c,v=(0,o.getGraphDependencies)(p||{},{isDev:t.isDev}),y=u?(0,o.getGraphDependencies)(_||{},{isDev:t.isDev,isOptional:!0}):{},b=h?.[t.alias?t.alias.aliasTargetDepName:e];return!m&&b&&c.resolution?.includes(`@workspace:`)&&(v=d(v,b)),{id:`${e}@${f}`,name:t.alias?t.alias.aliasTargetDepName:e,version:f,dependencies:{...y,...v},isDev:t.isDev,...t.alias?{alias:{...t.alias,version:f}}:{}}}let _=`${e}@${t.version}`;if(r[_]){let n=r[_],i=(0,o.getGraphDependencies)(n.dependencies||{},{isDev:t.isDev}),a=u?(0,o.getGraphDependencies)(n.optionalDependencies||{},{isDev:t.isDev,isOptional:!0}):{},s=h?.[t.alias?t.alias.aliasTargetDepName:e];return!m&&s&&n.resolution?.includes(`@workspace:`)&&(i=d(i,s)),{id:`${e}@${n.version}`,name:t.alias?t.alias.aliasTargetDepName:e,version:n.version,dependencies:{...i,...a},isDev:t.isDev,...t.alias?{alias:{...t.alias,version:n.version}}:{}}}else{if(l&&!/^file:/.test(t.version))throw new i.OutOfSyncError(_,a.LockfileType.yarn2);return{id:_,name:t.alias?t.alias.aliasTargetDepName:e,version:t.version,dependencies:{},isDev:t.isDev,missingLockFileEntry:!0,...t.alias?{alias:{...t.alias,version:t.version}}:{}}}}})),xo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphYarnLockV2Simple=void 0;let t=Ar(),n=ao(),r=bo(),i=$(),a=io();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});return await o(f,{id:`root-node`,name:r.name,version:r.version,dependencies:p,isDev:!1},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||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);continue}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)}}})),So=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractPkgsFromYarnLockV2=void 0;let t=Za(),n=bo(),r=Fi(),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}})),Co=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseYarnLockV2Project=void 0;let n=So(),r=ao(),i=xo(),a=io(),o=t.t()(`snyk-nodejs-lockfile-parser:component-metadata`);e.parseYarnLockV2Project=async(e,t,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,n.extractPkgsFromYarnLockV2)(t),_=(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)}})),wo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractPkgsFromYarnLockV2=e.buildDepGraphYarnLockV2Simple=e.parseYarnLockV2Project=void 0;let t=xo();Object.defineProperty(e,`buildDepGraphYarnLockV2Simple`,{enumerable:!0,get:function(){return t.buildDepGraphYarnLockV2Simple}});let n=So();Object.defineProperty(e,`extractPkgsFromYarnLockV2`,{enumerable:!0,get:function(){return n.extractPkgsFromYarnLockV2}});let r=Co();Object.defineProperty(e,`parseYarnLockV2Project`,{enumerable:!0,get:function(){return r.parseYarnLockV2Project}})})),To=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extractPkgsFromNpmLockV2=void 0;let t=Fi();e.extractPkgsFromNpmLockV2=e=>(0,t.parseJsonFile)(e,`package-lock.json`).packages})),Eo=e.t((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``?Number.isInteger(Number(e)):!1,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`?!0: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];if(Array.isArray(i)){n(i);continue}i!==void 0&&t.push(i)}return t};return n(e),t}})),Do=e.t(((e,t)=>{let n=Eo();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)}})),Oo=e.t(((e,t)=>{t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),ko=e.t(((e,t)=>{let n=Oo(),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=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=``;if(!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;continue}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})),Ao=e.t(((e,t)=>{let n=require(`util`),r=ko(),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`?!0: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)=>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})),jo=e.t(((e,t)=>{let n=Ao(),r=Eo();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)}})),Mo=e.t(((e,t)=>{let n=Ao(),r=Do(),i=Eo(),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];if(n.type===`comma`&&e.type===`brace`){t===1&&f.push(``),f.push(``);continue}if(n.type===`close`){u.push(a(u.pop(),f,d));continue}if(n.value&&n.type!==`open`){f.push(a(f.pop(),n.value));continue}n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),No=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:``}})),Po=e.t(((e,t)=>{let n=Do(),{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:_}=No();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;return}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()});continue}if(O===p){A({type:`text`,value:`\\`+O});continue}if(O===f){w++;let e;for(;E<T&&(e=k());){if(O+=e,e===f){w++;continue}if(e===i){O+=k();continue}if(e===p&&(w--,w===0))break}A({type:`text`,value:O});continue}if(O===c){S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});continue}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];continue}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();continue}if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O});continue}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});continue}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];continue}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++;continue}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});continue}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}})),Fo=e.t(((e,t)=>{let n=Do(),r=jo(),i=Mo(),a=Po(),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})),Io=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:1024*64,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}}})),Lo=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}=Io();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}})),Ro=e.t(((e,t)=>{let n=Lo(),{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:_}=Io(),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,P=!1,ne=!1,F=!1,I=!1,re=0,L,R,z={value:``,depth:0,isGlob:!1},B=()=>D>=x,V=()=>E.charCodeAt(D+1),ie=()=>(L=R,E.charCodeAt(++D));for(;D<x;){R=ie();let e;if(R===a){P=z.backslashes=!0,R=ie(),R===u&&(N=!0);continue}if(N===!0||R===u){for(re++;B()!==!0&&(R=ie());){if(R===a){P=z.backslashes=!0,ie();continue}if(R===u){re++;continue}if(N!==!0&&R===s&&(R=ie())===s){if(A=z.isBrace=!0,M=z.isGlob=!0,I=!0,S===!0)continue;break}if(N!==!0&&R===o){if(A=z.isBrace=!0,M=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===h&&(re--,re===0)){N=!1,A=z.isBrace=!0,I=!0;break}}if(S===!0)continue;break}if(R===l){if(C.push(D),w.push(z),z={value:``,depth:0,isGlob:!1},I===!0)continue;if(L===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(R===p||R===i||R===r||R===m||R===c)&&V()===d){if(M=z.isGlob=!0,ee=z.isExtglob=!0,I=!0,R===c&&D===O&&(F=!0),S===!0){for(;B()!==!0&&(R=ie());){if(R===a){P=z.backslashes=!0,R=ie();continue}if(R===g){M=z.isGlob=!0,I=!0;break}}continue}break}if(R===r){if(L===r&&(te=z.isGlobstar=!0),M=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===m){if(M=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===f){for(;B()!==!0&&(e=ie());){if(e===a){P=z.backslashes=!0,ie();continue}if(e===_){j=z.isBracket=!0,M=z.isGlob=!0,I=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&R===c&&D===O){ne=z.negated=!0,O++;continue}if(b.noparen!==!0&&R===d){if(M=z.isGlob=!0,S===!0){for(;B()!==!0&&(R=ie());){if(R===d){P=z.backslashes=!0,R=ie();continue}if(R===g){I=!0;break}}continue}break}if(M===!0){if(I=!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&&P===!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:ne,negatedExtglob:F};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}})),zo=e.t(((e,t)=>{let n=Io(),r=Lo(),{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;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}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;continue}if(n===`\\`){t=!0;continue}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;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}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,P=d.dot?A:j,ne=d.bash===!0?te(d):M;d.capture&&(ne=`(${ne})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let F={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,F),p=e.length;let I=[],re=[],L=[],R=m,z,B=()=>F.index===p-1,V=F.peek=(t=1)=>e[F.index+t],ie=F.advance=()=>e[++F.index]||``,H=()=>e.slice(F.index+1),U=(e=``,t=0)=>{F.consumed+=e,F.index+=t},ae=e=>{F.output+=e.output==null?e.value:e.output,U(e.value)},oe=()=>{let e=1;for(;V()===`!`&&(V(2)!==`(`||V(3)===`?`);)ie(),F.start++,e++;return e%2==0?!1:(F.negated=!0,F.start++,!0)},se=e=>{F[e]++,L.push(e)},ce=e=>{F[e]--,L.pop()},W=e=>{if(R.type===`globstar`){let t=F.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||I.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(F.output=F.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=ne,F.output+=R.output)}if(I.length&&e.type!==`paren`&&(I[I.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;return}e.prev=R,h.push(e),R=e},le=(e,t)=>{let n={...x[t],conditions:1,inner:``};n.prev=R,n.parens=F.parens,n.output=F.output,n.startIndex=F.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;se(`parens`),W({type:e,value:t,output:F.output?``:T}),W({type:`paren`,extglob:!0,value:ie(),output:r}),I.push(n)},ue=n=>{let i=e.slice(n.startIndex,F.index+1),a=v(e.slice(n.startIndex+2,F.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:T)+(d.capture?`(${a.safeOutput})`:a.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;F.output=n.output+t.output,F.backtrack=!0,W({type:`paren`,extglob:!0,value:z,output:``}),ce(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=ne;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=te(d)),(e!==ne||B()||/^\)+$/.test(H()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=H())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(F.negatedExtglob=!0)}W({type:`paren`,extglob:!0,value:z,output:o}),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?P+(a?A.repeat(a.length):``):A.repeat(r.length):i===`.`?S.repeat(r.length):i===`*`?t?t+i+(a?ne:``):ne: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?(F.output=e,F):(F.output=r.wrapOutput(i,F,t),F)}for(;!B();){if(z=ie(),z===`\0`)continue;if(z===`\\`){let e=V();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,F.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=ie():z+=ie(),F.brackets===0){W({type:`text`,value:z});continue}}if(F.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=a[R.value.slice(e+2)];if(n){R.value=t+n,F.backtrack=!0,ie(),!m.output&&h.indexOf(R)===1&&(m.output=T);continue}}}(z===`[`&&V()!==`:`||z===`-`&&V()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,ae({value:z});continue}if(F.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,ae({value:z});continue}if(z===`"`){F.quotes=F.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(F.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=I[I.length-1];if(e&&F.parens===e.parens+1){ue(I.pop());continue}W({type:`paren`,value:z,output:F.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(F.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(F.output=F.output.slice(0,-R.value.length),d.literalBrackets===!0){F.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,F.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){se(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:F.output.length,tokensIndex:F.tokens.length};re.push(e),W(e);continue}if(z===`}`){let e=re[re.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),F.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,F.output=n;for(let e of r)F.output+=e.output||e.value}W({type:`brace`,value:z,output:t}),ce(`braces`),re.pop();continue}if(z===`|`){I.length>0&&I[I.length-1].conditions++,W({type:`text`,value:z});continue}if(z===`,`){let e=z,t=re[re.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`&&F.index===F.start+1){F.start=F.index+1,F.consumed=``,F.output=``,h.pop(),R=m;continue}W({type:`slash`,value:z,output:w});continue}if(z===`.`){if(F.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=S);let e=re[re.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(F.braces+F.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&&V()===`(`&&V(2)!==`?`){le(`qmark`,z);continue}if(R&&R.type===`paren`){let e=V(),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&&V()===`(`&&(V(2)!==`?`||!/[!=<:]/.test(V(3)))){le(`negate`,z);continue}if(d.nonegate!==!0&&F.index===0){oe();continue}}if(z===`+`){if(d.noextglob!==!0&&V()===`(`&&V(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`)||F.parens>0){W({type:`plus`,value:z});continue}W({type:`plus`,value:C});continue}if(z===`@`){if(d.noextglob!==!0&&V()===`(`&&V(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],F.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=ne,F.backtrack=!0,F.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=F.braces>0&&(n.type===`comma`||n.type===`brace`),s=I.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[F.index+4];if(n&&n!==`/`)break;t=t.slice(3),U(`/**`,3)}if(n.type===`bos`&&B()){R.type=`globstar`,R.value+=z,R.output=te(d),F.output=R.output,F.globstar=!0,U(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&B()){F.output=F.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=te(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,F.globstar=!0,F.output+=n.output+R.output,U(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;F.output=F.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,F.output+=n.output+R.output,F.globstar=!0,U(z+ie()),W({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${w}|${te(d)}${w})`,F.output=R.output,F.globstar=!0,U(z+ie()),W({type:`slash`,value:`/`,output:``});continue}F.output=F.output.slice(0,-R.output.length),R.type=`globstar`,R.output=te(d),R.value+=z,F.output+=R.output,F.globstar=!0,U(z);continue}let n={type:`star`,value:z,output:ne};if(d.bash===!0){n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=N+n.output),W(n);continue}if(R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0){n.output=z,W(n);continue}(F.index===F.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(F.output+=O,R.output+=O):d.dot===!0?(F.output+=k,R.output+=k):(F.output+=N,R.output+=N),V()!==`*`&&(F.output+=T,R.output+=T)),W(n)}for(;F.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));F.output=r.escapeLast(F.output,`[`),ce(`brackets`)}for(;F.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));F.output=r.escapeLast(F.output,`(`),ce(`parens`)}for(;F.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));F.output=r.escapeLast(F.output,`{`),ce(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&W({type:`maybe_slash`,value:``,output:`${w}?`}),F.backtrack===!0){F.output=``;for(let e of F.tokens)F.output+=e.output==null?e.value:e.output,e.suffix&&(F.output+=e.suffix)}return F};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})),Bo=e.t(((e,t)=>{let n=require(`path`),r=Ro(),i=zo(),a=Lo(),o=Io(),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:!0)};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})),Vo=e.t(((e,t)=>{t.exports=Bo()})),Ho=e.t(((e,t)=>{let n=require(`util`),r=Fo(),i=Vo(),a=Lo(),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=new Set,a=new Set,o=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=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})),Uo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchOverrideKey=e.getChildNodeKey=e.buildDepGraphNpmLockV2=e.parseNpmLockV2Project=e.extractPkgsFromNpmLockV2=void 0;let t=To();Object.defineProperty(e,`extractPkgsFromNpmLockV2`,{enumerable:!0,get:function(){return t.extractPkgsFromNpmLockV2}});let n=Ar(),r=ao(),i=Rr(),a=Ii(),o=io(),s=require(`semver`),c=Ho(),l=require(`path`),u=$(),d=io();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},new Map);return await f(d,m,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}})),Wo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UNDEFINED_VERSION=void 0,e.UNDEFINED_VERSION=`undefined`})),Go=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPnpmChildNode=void 0,e.getFileContents=d;let n=require(`path`),r=require(`fs`),i=ds(),a=ao(),o=Pi(),s=Fr(),c=t.t(),l=Wo(),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}}else 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)}else return{id:m,name:e,version:p||l.UNDEFINED_VERSION,dependencies:{},isDev:t.isDev,missingLockFileEntry:!0}};function d(e,t){let i=n.resolve(e,t);if(!r.existsSync(i))throw Error(`Manifest `+t+` not found at location: `+t);return{content:r.readFileSync(i,`utf-8`),fileName:t}}})),Ko=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraphPnpm=void 0;let n=Ar(),r=ao(),i=Go(),a=$(),o=Pi(),s=Fr(),c=ds(),l=t.t(),u=Wo(),d=l(`snyk-pnpm-workspaces`);e.buildDepGraphPnpm=async(e,t,i,a)=>{let{strictOutOfSync:l,includeOptionalDeps:p,includeDevDeps:m,pruneWithinTopLevelDeps:h,showNpmScope:g}=i,_=new n.DepGraphBuilder({name:`pnpm`},{name:t.name,version:t.version||u.UNDEFINED_VERSION},(0,r.createNodeInfo)(i));e.extractedPackages=e.extractPackages();let v=e.extractedPackages,y=(0,r.getTopLevelDeps)(t,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:t.name,version:t.version,dependencies:y,isDev:!1};return await f(_,`${t.name}@${t.version}`,x,v,l,p,m,t.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||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);continue}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)}}})),qo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PnpmLockfileParser=void 0;let n=require(`semver`),r=require(`path`),i=ir(),a=t.t(),o=Wo(),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,t,r,i){if(this.isWorkspaceLockfile()&&(t=this.resolveWorkspacesCrossReference(e,t,r,i)),!(0,n.valid)(t)&&(t=this.excludeTransPeerDepsVersions(t),!(0,n.valid)(t))){if(this.packages[t])return this.packages[t].version||t;if(this.packages[`${e}@${t}`])return this.packages[`${e}@${t}`].version||t}return t}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}}})),Jo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LockfileV6Parser=void 0;let t=qo();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}},{})}}})),Yo=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?!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})),Xo=e.t((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createBase32HashFromFile=e.createBase32Hash=void 0;let n=t(require(`crypto`)),r=t(require(`fs`)),i=Yo();function a(e){return i.base32.stringify(n.default.createHash(`md5`).update(e).digest()).replace(/(=+)$/,``).toLowerCase()}e.createBase32Hash=a;async function o(e){return a((await r.default.promises.readFile(e,`utf8`)).split(`\r
`).join(`
`))}e.createBase32HashFromFile=o})),Zo=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}})),Qo=e.t(((e,t)=>{t.exports=()=>{let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}})),$o=e.t(((e,t)=>{var n=e&&e.__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())})},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let i=r(Qo());function a(e,t=`maxAge`){let r,a,o,s=()=>n(this,void 0,void 0,function*(){if(r!==void 0)return;let s=s=>n(this,void 0,void 0,function*(){o=i.default();let n=s[1][t]-Date.now();if(n<=0){e.delete(s[0]),o.resolve();return}return r=s[0],a=setTimeout(()=>{e.delete(s[0]),o&&o.resolve()},n),typeof a.unref==`function`&&a.unref(),o.promise});try{for(let t of e)yield s(t)}catch{}r=void 0}),c=()=>{r=void 0,a!==void 0&&(clearTimeout(a),a=void 0),o!==void 0&&(o.reject(void 0),o=void 0)},l=e.set.bind(e);return e.set=(t,n)=>{e.has(t)&&e.delete(t);let i=l(t,n);return r&&r===t&&c(),s(),i},s(),e}e.default=a,t.exports=a,t.exports.default=a})),es=e.t(((e,t)=>{let n=Zo(),r=$o(),i=new WeakMap,a=new WeakMap,o=(e,{cacheKey:t,cache:i=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})),ts=e.t(((e,t)=>{let n=require(`assert`),{URL:r}=require(`url`);t.exports=es()(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}})),ns=e.t((e=>{var t=e&&e.__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 n=Xo(),r=t(ts()),i=t(require(`semver`));function a(e){return e[0]!==`/`}e.isAbsolute=a;function o(e,t){if(!a(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,r.default)(n)}${t}`}return t}e.resolve=o;function s(e,t){if(t[0]!==`/`)return null;let n=t.indexOf(`_`,t.lastIndexOf(`/`));return n===-1?o(e,t):o(e,t.slice(0,n))}e.tryGetPackageId=s;function c(e,t,n){return e.startsWith(`link:`)?null:e.includes(`/`)?e[0]===`/`?`${(0,r.default)(l(n,t))}${e}`:e:`${(0,r.default)(l(n,t))}/${t}/${e}`}e.refToAbsolute=c;function l(e,t){return t[0]===`@`&&e[t.substring(0,t.indexOf(`/`))]||e.default}e.getRegistryByPackageName=l;function u(e,t,n){let i=(0,r.default)(l(e,t));return n.startsWith(`${i}/`)?n.slice(n.indexOf(`/`)):n}e.relative=u;function d(e,t){return e.startsWith(`link:`)?null:e.startsWith(`file:`)||e.includes(`/`)?e:`/${t}/${e}`}e.refToRelative=d;function f(e){if(typeof e!=`string`)throw TypeError(`Expected \`dependencyPath\` to be of type \`string\`, got \`${e===null?`null`:typeof e}\``);let t=a(e),n=e.split(`/`);t||n.shift();let r=t?n.shift():void 0,o=n[0].startsWith(`@`)?`${n.shift()}/${n.shift()}`:n.shift(),s=n.shift();if(s){let e=s.indexOf(`_`),n;if(e!==-1&&(n=s.substring(e+1),s=s.substring(0,e)),i.default.valid(s))return{host:r,isAbsolute:t,name:o,peersSuffix:n,version:s}}if(!t)throw Error(`${e} is an invalid relative dependency path`);return{host:r,isAbsolute:t}}e.parse=f;function p(e){let t=m(e).replace(/[\\/:*?"<>|]/g,`+`);return t.length>120||t!==t.toLowerCase()&&!t.startsWith(`file+`)?`${t.substring(0,50)}_${(0,n.createBase32Hash)(t)}`:t}e.depPathToFilename=p;function m(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 h(e){let t=e.map(({name:e,version:t})=>`${e.replace(`/`,`+`)}@${t}`).sort().join(`+`);return t.length>26?`_${(0,n.createBase32Hash)(t)}`:`_${t}`}e.createPeersFolderSuffix=h})),rs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LockfileV5Parser=void 0;let t=ns(),n=qo();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}},{})}}})),is=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LockfileV9Parser=void 0;let t=Jo(),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}})}}})),as=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPnpmLockfileParser=o;let t=Jo(),n=rs(),r=is(),i=Pi(),a=Fi();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`)}})),os=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parsePnpmProject=void 0;let t=ao(),n=Ko(),r=as();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)}})),ss=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parsePnpmWorkspace=void 0;let n=t.t(),r=require(`path`),i=Fi(),a=ao(),o=Ko(),s=Wo(),c=as(),l=Go(),u=n(`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}})),cs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parsePnpmWorkspaceProject=void 0;let t=ao(),n=Ko(),r=as(),i=Wo();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)}})),ls=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parsePnpmWorkspaceProject=e.parsePnpmWorkspace=e.parsePnpmProject=void 0;let t=os();Object.defineProperty(e,`parsePnpmProject`,{enumerable:!0,get:function(){return t.parsePnpmProject}});let n=ss();Object.defineProperty(e,`parsePnpmWorkspace`,{enumerable:!0,get:function(){return n.parsePnpmWorkspace}});let r=cs();Object.defineProperty(e,`parsePnpmWorkspaceProject`,{enumerable:!0,get:function(){return r.parsePnpmWorkspaceProject}})})),us=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=yo();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=wo();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=Uo();Object.defineProperty(e,`parseNpmLockV2Project`,{enumerable:!0,get:function(){return r.parseNpmLockV2Project}});let i=ls();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=ao();Object.defineProperty(e,`parsePkgJson`,{enumerable:!0,get:function(){return a.parsePkgJson}})})),ds=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=Ii();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=Ja(),a=Xa(),o=eo(),s=Rr();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=ro();Object.defineProperty(e,`buildDepGraphFromCliOutput`,{enumerable:!0,get:function(){return c.buildDepGraphFromCliOutput}});let l=us();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=as();Object.defineProperty(e,`getPnpmLockfileParser`,{enumerable:!0,get:function(){return u.getPnpmLockfileParser}});let d=Fi();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=io();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}})),fs=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})),ps=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)}})),ms=e.t(((e,t)=>{var n=ps();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);return}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);return}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,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}else 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))}})),hs=e.t(((e,t)=>{var n=ms();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)})}})),gs=e.t(((e,t)=>{var n=ms();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})})}})),_s=e.t(((e,t)=>{var n=ms();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}else{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)}})),vs=e.t(((e,t)=>{var n=ps(),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)}}})),ys=e.t(((e,t)=>{var n=ms(),r=vs();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)})})}})),bs=e.t(((e,t)=>{var n=ms();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}})),xs=e.t(((e,t)=>{t.exports=ms(),hs(),gs(),_s(),ys(),bs()})),Ss=e.t(((e,t)=>{t.exports=xs()})),Cs=e.t(((e,t)=>{var n=Object.create(require(`fs`)),r=Ss();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];e===`exists`?n[e]=function(){var e=[].slice.call(arguments);return new r(function(n,r){e.push(n),t.apply(null,e)})}:n[e]=r.denodeify(t)}})),ws=e.t(((e,t)=>{(function(){var n,r=`4.18.1`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,E=512,D=30,O=`...`,k=800,A=16,j=1,M=2,ee=3,te=1/0,N=9007199254740991,P=17976931348623157e292,ne=NaN,F=4294967295,I=F-1,re=F>>>1,L=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,E],[`partial`,S],[`partialRight`,C],[`rearg`,T]],R=`[object Arguments]`,z=`[object Array]`,B=`[object AsyncFunction]`,V=`[object Boolean]`,ie=`[object Date]`,H=`[object DOMException]`,U=`[object Error]`,ae=`[object Function]`,oe=`[object GeneratorFunction]`,se=`[object Map]`,ce=`[object Number]`,W=`[object Null]`,le=`[object Object]`,ue=`[object Promise]`,de=`[object Proxy]`,fe=`[object RegExp]`,pe=`[object Set]`,me=`[object String]`,he=`[object Symbol]`,ge=`[object Undefined]`,_e=`[object WeakMap]`,ve=`[object WeakSet]`,ye=`[object ArrayBuffer]`,be=`[object DataView]`,xe=`[object Float32Array]`,Se=`[object Float64Array]`,Ce=`[object Int8Array]`,G=`[object Int16Array]`,K=`[object Int32Array]`,q=`[object Uint8Array]`,we=`[object Uint8ClampedArray]`,Te=`[object Uint16Array]`,Ee=`[object Uint32Array]`,De=/\b__p \+= '';/g,Oe=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ae=/&(?:amp|lt|gt|quot|#39);/g,je=/[&<>"']/g,Me=RegExp(Ae.source),Ne=RegExp(je.source),Pe=/<%-([\s\S]+?)%>/g,Fe=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Be=/[\\^$.*+?()[\]{}|]/g,Ve=RegExp(Be.source),J=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ge=/[()=,{}\[\]\/\s]/,Ke=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,$e=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tt=/($^)/,nt=/['\n\r\u2028\u2029\\]/g,rt=`\\ud800-\\udfff`,it=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,at=`\\u2700-\\u27bf`,ot=`a-z\\xdf-\\xf6\\xf8-\\xff`,st=`\\xac\\xb1\\xd7\\xf7`,ct=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,lt=`\\u2000-\\u206f`,ut=` \\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`,dt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ft=`\\ufe0e\\ufe0f`,pt=st+ct+lt+ut,mt=`['’]`,ht=`[`+rt+`]`,gt=`[`+pt+`]`,_t=`[`+it+`]`,vt=`\\d+`,yt=`[`+at+`]`,bt=`[`+ot+`]`,xt=`[^`+rt+pt+vt+at+ot+dt+`]`,St=`\\ud83c[\\udffb-\\udfff]`,Ct=`(?:`+_t+`|`+St+`)`,wt=`[^`+rt+`]`,Tt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Et=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Dt=`[`+dt+`]`,Ot=`\\u200d`,kt=`(?:`+bt+`|`+xt+`)`,At=`(?:`+Dt+`|`+xt+`)`,jt=`(?:`+mt+`(?:d|ll|m|re|s|t|ve))?`,Mt=`(?:`+mt+`(?:D|LL|M|RE|S|T|VE))?`,Nt=Ct+`?`,Pt=`[`+ft+`]?`,Ft=`(?:`+Ot+`(?:`+[wt,Tt,Et].join(`|`)+`)`+Pt+Nt+`)*`,It=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Lt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Rt=Pt+Nt+Ft,zt=`(?:`+[yt,Tt,Et].join(`|`)+`)`+Rt,Bt=`(?:`+[wt+_t+`?`,_t,Tt,Et,ht].join(`|`)+`)`,Vt=RegExp(mt,`g`),Ht=RegExp(_t,`g`),Ut=RegExp(St+`(?=`+St+`)|`+Bt+Rt,`g`),Wt=RegExp([Dt+`?`+bt+`+`+jt+`(?=`+[gt,Dt,`$`].join(`|`)+`)`,At+`+`+Mt+`(?=`+[gt,Dt+kt,`$`].join(`|`)+`)`,Dt+`?`+kt+`+`+jt,Dt+`+`+Mt,Lt,It,vt,zt].join(`|`),`g`),Gt=RegExp(`[`+Ot+rt+it+ft+`]`),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qt=`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(`.`),Jt=-1,Z={};Z[xe]=Z[Se]=Z[Ce]=Z[G]=Z[K]=Z[q]=Z[we]=Z[Te]=Z[Ee]=!0,Z[R]=Z[z]=Z[ye]=Z[V]=Z[be]=Z[ie]=Z[U]=Z[ae]=Z[se]=Z[ce]=Z[le]=Z[fe]=Z[pe]=Z[me]=Z[_e]=!1;var Q={};Q[R]=Q[z]=Q[ye]=Q[be]=Q[V]=Q[ie]=Q[xe]=Q[Se]=Q[Ce]=Q[G]=Q[K]=Q[se]=Q[ce]=Q[le]=Q[fe]=Q[pe]=Q[me]=Q[he]=Q[q]=Q[we]=Q[Te]=Q[Ee]=!0,Q[U]=Q[ae]=Q[_e]=!1;var Yt={À:`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`},Xt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Zt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Qt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},$t=parseFloat,en=parseInt,tn=typeof global==`object`&&global&&global.Object===Object&&global,nn=typeof self==`object`&&self&&self.Object===Object&&self,rn=tn||nn||Function(`return this`)(),an=typeof e==`object`&&e&&!e.nodeType&&e,on=an&&typeof t==`object`&&t&&!t.nodeType&&t,sn=on&&on.exports===an,cn=sn&&tn.process,ln=function(){try{return on&&on.require&&on.require(`util`).types||cn&&cn.binding&&cn.binding(`util`)}catch{}}(),un=ln&&ln.isArrayBuffer,dn=ln&&ln.isDate,fn=ln&&ln.isMap,pn=ln&&ln.isRegExp,mn=ln&&ln.isSet,hn=ln&&ln.isTypedArray;function gn(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 _n(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 vn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function yn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function bn(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 xn(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 Sn(e,t){return!!(e!=null&&e.length)&&Pn(e,t,0)>-1}function Cn(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 wn(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 Tn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function En(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 Dn(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 On(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 kn=Rn(`length`);function An(e){return e.split(``)}function jn(e){return e.match(We)||[]}function Mn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Nn(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 Pn(e,t,n){return t===t?ur(e,t,n):Nn(e,In,n)}function Fn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function In(e){return e!==e}function Ln(e,t){var n=e==null?0:e.length;return n?Hn(e,t)/n:ne}function Rn(e){return function(t){return t==null?n:t[e]}}function zn(e){return function(t){return e==null?n:e[t]}}function Bn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Vn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Hn(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 Un(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Wn(e,t){return wn(t,function(t){return[t,e[t]]})}function Gn(e){return e&&e.slice(0,mr(e)+1).replace(J,``)}function Kn(e){return function(t){return e(t)}}function qn(e,t){return wn(t,function(t){return e[t]})}function Jn(e,t){return e.has(t)}function Yn(e,t){for(var n=-1,r=e.length;++n<r&&Pn(t,e[n],0)>-1;);return n}function Xn(e,t){for(var n=e.length;n--&&Pn(t,e[n],0)>-1;);return n}function Zn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Qn=zn(Yt),$n=zn(Xt);function er(e){return`\\`+Qt[e]}function tr(e,t){return e==null?n:e[t]}function nr(e){return Gt.test(e)}function rr(e){return Kt.test(e)}function ir(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function ar(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function or(e,t){return function(n){return e(t(n))}}function sr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function cr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function lr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function ur(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function dr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function fr(e){return nr(e)?gr(e):kn(e)}function pr(e){return nr(e)?_r(e):An(e)}function mr(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var hr=zn(Zt);function gr(e){for(var t=Ut.lastIndex=0;Ut.test(e);)++t;return t}function _r(e){return e.match(Ut)||[]}function vr(e){return e.match(Wt)||[]}var yr=(function e(t){t=t==null?rn:yr.defaults(rn.Object(),t,yr.pick(rn,qt));var Y=t.Array,We=t.Date,rt=t.Error,it=t.Function,at=t.Math,ot=t.Object,st=t.RegExp,ct=t.String,lt=t.TypeError,ut=Y.prototype,dt=it.prototype,ft=ot.prototype,pt=t[`__core-js_shared__`],mt=dt.toString,ht=ft.hasOwnProperty,gt=0,_t=function(){var e=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),vt=ft.toString,yt=mt.call(ot),bt=rn._,xt=st(`^`+mt.call(ht).replace(Be,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),St=sn?t.Buffer:n,Ct=t.Symbol,wt=t.Uint8Array,Tt=St?St.allocUnsafe:n,Et=or(ot.getPrototypeOf,ot),Dt=ot.create,Ot=ft.propertyIsEnumerable,kt=ut.splice,At=Ct?Ct.isConcatSpreadable:n,jt=Ct?Ct.iterator:n,Mt=Ct?Ct.toStringTag:n,Nt=function(){try{var e=Jo(ot,`defineProperty`);return e({},``,{}),e}catch{}}(),Pt=t.clearTimeout!==rn.clearTimeout&&t.clearTimeout,Ft=We&&We.now!==rn.Date.now&&We.now,It=t.setTimeout!==rn.setTimeout&&t.setTimeout,Lt=at.ceil,Rt=at.floor,zt=ot.getOwnPropertySymbols,Bt=St?St.isBuffer:n,Ut=t.isFinite,Wt=ut.join,Gt=or(ot.keys,ot),Kt=at.max,Yt=at.min,Xt=We.now,Zt=t.parseInt,Qt=at.random,tn=ut.reverse,nn=Jo(t,`DataView`),an=Jo(t,`Map`),on=Jo(t,`Promise`),cn=Jo(t,`Set`),ln=Jo(t,`WeakMap`),kn=Jo(ot,`create`),An=ln&&new ln,zn={},ur=Ns(nn),gr=Ns(an),_r=Ns(on),br=Ns(cn),xr=Ns(ln),Sr=Ct?Ct.prototype:n,Cr=Sr?Sr.valueOf:n,wr=Sr?Sr.toString:n;function $(e){if(Eu(e)&&!lu(e)&&!(e instanceof Or)){if(e instanceof Dr)return e;if(ht.call(e,`__wrapped__`))return Fs(e)}return new Dr(e)}var Tr=function(){function e(){}return function(t){if(!Tu(t))return{};if(Dt)return Dt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Er(){}function Dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}$.templateSettings={escape:Pe,evaluate:Fe,interpolate:Ie,variable:``,imports:{_:$}},$.prototype=Er.prototype,$.prototype.constructor=$,Dr.prototype=Tr(Er.prototype),Dr.prototype.constructor=Dr;function Or(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function kr(){var e=new Or(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e}function Ar(){if(this.__filtered__){var e=new Or(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function jr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,i=n?e.length:0,a=$o(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=Yt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return za(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==M)g=b;else if(!b){if(y==j)continue outer;break outer}}m[f++]=g}return m}Or.prototype=Tr(Er.prototype),Or.prototype.constructor=Or;function Mr(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 Nr(){this.__data__=kn?kn(null):{},this.size=0}function Pr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Fr(e){var t=this.__data__;if(kn){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n}function Ir(e){var t=this.__data__;return kn?t[e]!==n:ht.call(t,e)}function Lr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=kn&&t===n?l:t,this}Mr.prototype.clear=Nr,Mr.prototype.delete=Pr,Mr.prototype.get=Fr,Mr.prototype.has=Ir,Mr.prototype.set=Lr;function Rr(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 zr(){this.__data__=[],this.size=0}function Br(e){var t=this.__data__,n=di(t,e);return n<0?!1:(n==t.length-1?t.pop():kt.call(t,n,1),--this.size,!0)}function Vr(e){var t=this.__data__,r=di(t,e);return r<0?n:t[r][1]}function Hr(e){return di(this.__data__,e)>-1}function Ur(e,t){var n=this.__data__,r=di(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Rr.prototype.clear=zr,Rr.prototype.delete=Br,Rr.prototype.get=Vr,Rr.prototype.has=Hr,Rr.prototype.set=Ur;function Wr(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 Gr(){this.size=0,this.__data__={hash:new Mr,map:new(an||Rr),string:new Mr}}function Kr(e){var t=Ko(this,e).delete(e);return this.size-=+!!t,t}function qr(e){return Ko(this,e).get(e)}function Jr(e){return Ko(this,e).has(e)}function Yr(e,t){var n=Ko(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Wr.prototype.clear=Gr,Wr.prototype.delete=Kr,Wr.prototype.get=qr,Wr.prototype.has=Jr,Wr.prototype.set=Yr;function Xr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Wr;++t<n;)this.add(e[t])}function Zr(e){return this.__data__.set(e,l),this}function Qr(e){return this.__data__.has(e)}Xr.prototype.add=Xr.prototype.push=Zr,Xr.prototype.has=Qr;function $r(e){var t=this.__data__=new Rr(e);this.size=t.size}function ei(){this.__data__=new Rr,this.size=0}function ti(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ni(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ii(e,t){var n=this.__data__;if(n instanceof Rr){var r=n.__data__;if(!an||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(e,t),this.size=n.size,this}$r.prototype.clear=ei,$r.prototype.delete=ti,$r.prototype.get=ni,$r.prototype.has=ri,$r.prototype.set=ii;function ai(e,t){var n=lu(e),r=!n&&cu(e),i=!n&&!r&&mu(e),a=!n&&!r&&!i&&Vu(e),o=n||r||i||a,s=o?Un(e.length,ct):[],c=s.length;for(var l in e)(t||ht.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||ss(l,c)))&&s.push(l);return s}function oi(e){var t=e.length;return t?e[va(0,t-1)]:n}function si(e,t){return As(io(e),_i(t,0,e.length))}function ci(e){return As(io(e))}function li(e,t,r){(r!==n&&!au(e[t],r)||r===n&&!(t in e))&&hi(e,t,r)}function ui(e,t,r){var i=e[t];(!(ht.call(e,t)&&au(i,r))||r===n&&!(t in e))&&hi(e,t,r)}function di(e,t){for(var n=e.length;n--;)if(au(e[n][0],t))return n;return-1}function fi(e,t,n,r){return Ci(e,function(e,i,a){t(r,e,n(e),a)}),r}function pi(e,t){return e&&ao(t,Cd(t),e)}function mi(e,t){return e&&ao(t,wd(t),e)}function hi(e,t,n){t==`__proto__`&&Nt?Nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){for(var r=-1,i=t.length,a=Y(i),o=e==null;++r<i;)a[r]=o?n:_d(e,t[r]);return a}function _i(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function vi(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Tu(e))return e;var d=lu(e);if(d){if(s=ns(e),!c)return io(e,s)}else{var h=Qo(e),g=h==ae||h==oe;if(mu(e))return Ja(e,c);if(h==le||h==R||g&&!a){if(s=l||g?{}:rs(e),!c)return l?so(e,mi(s,e)):oo(e,pi(s,e))}else{if(!Q[h])return a?e:{};s=is(e,h,c)}}o||=new $r;var _=o.get(e);if(_)return _;o.set(e,s),Ru(e)?e.forEach(function(n){s.add(vi(n,t,r,n,e,o))}):Du(e)&&e.forEach(function(n,i){s.set(i,vi(n,t,r,i,e,o))});var v=d?n:(u?l?Vo:Bo:l?wd:Cd)(e);return vn(v||e,function(n,i){v&&(i=n,n=e[i]),ui(s,i,vi(n,t,r,i,e,o))}),s}function yi(e){var t=Cd(e);return function(n){return bi(n,e,t)}}function bi(e,t,r){var i=r.length;if(e==null)return!i;for(e=ot(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 xi(e,t,r){if(typeof e!=`function`)throw new lt(o);return Es(function(){e.apply(n,r)},t)}function Si(e,t,n,r){var a=-1,o=Sn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=wn(t,Kn(n))),r?(o=Cn,s=!1):t.length>=i&&(o=Jn,s=!1,t=new Xr(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var Ci=uo(Mi),wi=uo(Ni,!0);function Ti(e,t){var n=!0;return Ci(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Ei(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&&!Bu(s):r(s,c)))var c=s,l=o}return l}function Di(e,t,r,i){var a=e.length;for(r=Yu(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Yu(i),i<0&&(i+=a),i=r>i?0:Xu(i);r<i;)e[r++]=t;return e}function Oi(e,t){var n=[];return Ci(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function ki(e,t,n,r,i){var a=-1,o=e.length;for(n||=os,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ki(s,t-1,n,r,i):Tn(i,s):r||(i[i.length]=s)}return i}var Ai=fo(),ji=fo(!0);function Mi(e,t){return e&&Ai(e,t,Cd)}function Ni(e,t){return e&&ji(e,t,Cd)}function Pi(e,t){return xn(t,function(t){return Su(e[t])})}function Fi(e,t){t=Wa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ms(t[r++])];return r&&r==i?e:n}function Ii(e,t,n){var r=t(e);return lu(e)?r:Tn(r,n(e))}function Li(e){return e==null?e===n?ge:W:Mt&&Mt in ot(e)?Yo(e):bs(e)}function Ri(e,t){return e>t}function zi(e,t){return e!=null&&ht.call(e,t)}function Bi(e,t){return e!=null&&t in ot(e)}function Vi(e,t,n){return e>=Yt(t,n)&&e<Kt(t,n)}function Hi(e,t,r){for(var i=r?Cn:Sn,a=e[0].length,o=e.length,s=o,c=Y(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=wn(d,Kn(t))),l=Yt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Xr(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?Jn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Jn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ui(e,t,n,r){return Mi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Wi(e,t,r){t=Wa(t,e),e=Ss(e,t);var i=e==null?e:e[Ms(oc(t))];return i==null?n:gn(i,e,r)}function Gi(e){return Eu(e)&&Li(e)==R}function Ki(e){return Eu(e)&&Li(e)==ye}function qi(e){return Eu(e)&&Li(e)==ie}function Ji(e,t,n,r,i){return e===t?!0:e==null||t==null||!Eu(e)&&!Eu(t)?e!==e&&t!==t:Yi(e,t,n,r,Ji,i)}function Yi(e,t,n,r,i,a){var o=lu(e),s=lu(t),c=o?z:Qo(e),l=s?z:Qo(t);c=c==R?le:c,l=l==R?le:l;var u=c==le,d=l==le,f=c==l;if(f&&mu(e)){if(!mu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new $r,o||Vu(e)?Io(e,t,n,r,i,a):Lo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&ht.call(e,`__wrapped__`),m=d&&ht.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new $r,i(g,_,n,r,a)}}return f?(a||=new $r,Ro(e,t,n,r,i,a)):!1}function Xi(e){return Eu(e)&&Qo(e)==se}function Zi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=ot(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 $r;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Ji(d,u,h|g,i,f):p))return!1}}return!0}function Qi(e){return!Tu(e)||fs(e)?!1:(Su(e)?xt:Ze).test(Ns(e))}function $i(e){return Eu(e)&&Li(e)==fe}function ea(e){return Eu(e)&&Qo(e)==pe}function ta(e){return Eu(e)&&wu(e.length)&&!!Z[Li(e)]}function na(e){return typeof e==`function`?e:e==null?Mf:typeof e==`object`?lu(e)?ca(e[0],e[1]):sa(e):Gf(e)}function ra(e){if(!ms(e))return Gt(e);var t=[];for(var n in ot(e))ht.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ia(e){if(!Tu(e))return ys(e);var t=ms(e),n=[];for(var r in e)r==`constructor`&&(t||!ht.call(e,r))||n.push(r);return n}function aa(e,t){return e<t}function oa(e,t){var n=-1,r=du(e)?Y(e.length):[];return Ci(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function sa(e){var t=qo(e);return t.length==1&&t[0][2]?gs(t[0][0],t[0][1]):function(n){return n===e||Zi(n,e,t)}}function ca(e,t){return ls(e)&&hs(t)?gs(Ms(e),t):function(r){var i=_d(r,e);return i===n&&i===t?yd(r,e):Ji(t,i,h|g)}}function la(e,t,r,i,a){e!==t&&Ai(t,function(o,s){if(a||=new $r,Tu(o))ua(e,t,s,r,la,i,a);else{var c=i?i(ws(e,s),o,s+``,e,t,a):n;c===n&&(c=o),li(e,s,c)}},wd)}function ua(e,t,r,i,a,o,s){var c=ws(e,r),l=ws(t,r),u=s.get(l);if(u){li(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=lu(l),m=!p&&mu(l),h=!p&&!m&&Vu(l);d=l,p||m||h?lu(c)?d=c:fu(c)?d=io(c):m?(f=!1,d=Ja(l,!0)):h?(f=!1,d=$a(l,!0)):d=[]:Fu(l)||cu(l)?(d=c,cu(c)?d=Qu(c):(!Tu(c)||Su(c))&&(d=rs(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),li(e,r,d)}function da(e,t){var r=e.length;if(r)return t+=t<0?r:0,ss(t,r)?e[t]:n}function fa(e,t,n){t=t.length?wn(t,function(e){return lu(e)?function(t){return Fi(t,e.length===1?e[0]:e)}:e}):[Mf];var r=-1;return t=wn(t,Kn(Go())),Vn(oa(e,function(e,n,i){return{criteria:wn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return to(e,t,n)})}function pa(e,t){return ma(e,t,function(t,n){return yd(e,n)})}function ma(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Fi(e,o);n(s,o)&&wa(a,Wa(o,e),s)}return a}function ha(e){return function(t){return Fi(t,e)}}function ga(e,t,n,r){var i=r?Fn:Pn,a=-1,o=t.length,s=e;for(e===t&&(t=io(t)),n&&(s=wn(e,Kn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&kt.call(s,c,1),kt.call(e,c,1);return e}function _a(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;ss(i)?kt.call(e,i,1):Ia(e,i)}}return e}function va(e,t){return e+Rt(Qt()*(t-e+1))}function ya(e,t,n,r){for(var i=-1,a=Kt(Lt((t-e)/(n||1)),0),o=Y(a);a--;)o[r?a:++i]=e,e+=n;return o}function ba(e,t){var n=``;if(!e||t<1||t>N)return n;do t%2&&(n+=e),t=Rt(t/2),t&&(e+=e);while(t);return n}function xa(e,t){return Ds(xs(e,t,Mf),e+``)}function Sa(e){return oi(Hd(e))}function Ca(e,t){var n=Hd(e);return As(n,_i(t,0,n.length))}function wa(e,t,r,i){if(!Tu(e))return e;t=Wa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Ms(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=Tu(d)?d:ss(t[a+1])?[]:{})}ui(c,l,u),c=c[l]}return e}var Ta=An?function(e,t){return An.set(e,t),e}:Mf,Ea=Nt?function(e,t){return Nt(e,`toString`,{configurable:!0,enumerable:!1,value:Of(t),writable:!0})}:Mf;function Da(e){return As(Hd(e))}function Oa(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=Y(i);++r<i;)a[r]=e[r+t];return a}function ka(e,t){var n;return Ci(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Aa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=re){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Bu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ja(e,t,Mf,n)}function ja(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=Bu(t),u=t===n;a<o;){var d=Rt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Bu(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 Yt(o,I)}function Ma(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||!au(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Na(e){return typeof e==`number`?e:Bu(e)?ne:+e}function Pa(e){if(typeof e==`string`)return e;if(lu(e))return wn(e,Pa)+``;if(Bu(e))return wr?wr.call(e):``;var t=e+``;return t==`0`&&1/e==-te?`-0`:t}function Fa(e,t,n){var r=-1,a=Sn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=Cn;else if(o>=i){var u=t?null:Ao(e);if(u)return cr(u);s=!1,a=Jn,l=new Xr}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ia(e,t){t=Wa(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Ms(t[n]);if(i===`__proto__`&&!ht.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ss(e,t);return a==null||delete a[Ms(oc(t))]}function La(e,t,n,r){return wa(e,t,n(Fi(e,t)),r)}function Ra(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Oa(e,r?0:a,r?a+1:i):Oa(e,r?a+1:0,r?i:a)}function za(e,t){var n=e;return n instanceof Or&&(n=n.value()),En(t,function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))},n)}function Ba(e,t,n){var r=e.length;if(r<2)return r?Fa(e[0]):[];for(var i=-1,a=Y(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Si(a[i]||o,e[s],t,n));return Fa(ki(a,1),t,n)}function Va(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 Ha(e){return fu(e)?e:[]}function Ua(e){return typeof e==`function`?e:Mf}function Wa(e,t){return lu(e)?e:ls(e,t)?[e]:js(ed(e))}var Ga=xa;function Ka(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Oa(e,t,r)}var qa=Pt||function(e){return rn.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Ya(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Xa(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Za(e){var t=new e.constructor(e.source,Je.exec(e));return t.lastIndex=e.lastIndex,t}function Qa(e){return Cr?ot(Cr.call(e)):{}}function $a(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Bu(e),s=t!==n,c=t===null,l=t===t,u=Bu(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 to(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=eo(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function no(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Kt(a-o,0),u=Y(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 ro(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Kt(a-s,0),d=Y(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 io(e,t){var n=-1,r=e.length;for(t||=Y(r);++n<r;)t[n]=e[n];return t}function ao(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?hi(r,c,l):ui(r,c,l)}return r}function oo(e,t){return ao(e,Xo(e),t)}function so(e,t){return ao(e,Zo(e),t)}function co(e,t){return function(n,r){var i=lu(n)?_n:fi,a=t?t():{};return i(n,e,Go(r,2),a)}}function lo(e){return xa(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&&cs(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=ot(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function uo(e,t){return function(n,r){if(n==null)return n;if(!du(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ot(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function fo(e){return function(t,n,r){for(var i=-1,a=ot(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 po(e,t,n){var r=t&_,i=go(e);function a(){return(this&&this!==rn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function mo(e){return function(t){t=ed(t);var r=nr(t)?pr(t):n,i=r?r[0]:t.charAt(0),a=r?Ka(r,1).join(``):t.slice(1);return i[e]()+a}}function ho(e){return function(t){return En(Cf(Yd(t).replace(Vt,``)),e,``)}}function go(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=Tr(e.prototype),r=e.apply(n,t);return Tu(r)?r:n}}function _o(e,t,r){var i=go(e);function a(){for(var o=arguments.length,s=Y(o),c=o,l=Wo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:sr(s,l);return o-=u.length,o<r?Oo(e,t,bo,a.placeholder,n,s,u,n,n,r-o):gn(this&&this!==rn&&this instanceof a?i:e,this,s)}return a}function vo(e){return function(t,r,i){var a=ot(t);if(!du(t)){var o=Go(r,3);t=Cd(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 yo(e){return zo(function(t){var r=t.length,i=r,a=Dr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new lt(o);if(a&&!c&&Uo(s)==`wrapper`)var c=new Dr([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=Uo(s),u=l==`wrapper`?Ho(s):n;c=u&&ds(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[Uo(u[0])].apply(c,u[3]):s.length==1&&ds(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&lu(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function bo(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&E,g=p?n:go(e);function y(){for(var n=arguments.length,_=Y(n),v=n;v--;)_[v]=arguments[v];if(m)var b=Wo(y),x=Zn(_,b);if(i&&(_=no(_,i,a,m)),o&&(_=ro(_,o,s,m)),n-=x,m&&n<u){var S=sr(_,b);return Oo(e,t,bo,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=Cs(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==rn&&this instanceof y&&(w=g||go(w)),w.apply(C,_)}return y}function xo(e,t){return function(n,r){return Ui(n,e,t(r),{})}}function So(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=Pa(r),i=Pa(i)):(r=Na(r),i=Na(i)),a=e(r,i)}return a}}function Co(e){return zo(function(t){return t=wn(t,Kn(Go())),xa(function(n){var r=this;return e(t,function(e){return gn(e,r,n)})})})}function wo(e,t){t=t===n?` `:Pa(t);var r=t.length;if(r<2)return r?ba(t,e):t;var i=ba(t,Lt(e/fr(t)));return nr(t)?Ka(pr(i),0,e).join(``):i.slice(0,e)}function To(e,t,n,r){var i=t&_,a=go(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=Y(l+s),d=this&&this!==rn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return gn(d,i?n:this,u)}return o}function Eo(e){return function(t,r,i){return i&&typeof i!=`number`&&cs(t,r,i)&&(r=i=n),t=Ju(t),r===n?(r=t,t=0):r=Ju(r),i=i===n?t<r?1:-1:Ju(i),ya(t,r,i,e)}}function Do(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Zu(t),n=Zu(n)),e(t,n)}}function Oo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return ds(e)&&Ts(x,g),x.placeholder=i,Os(x,e,t)}function ko(e){var t=at[e];return function(e,n){if(e=Zu(e),n=n==null?0:Yt(Yu(n),292),n&&Ut(e)){var r=(ed(e)+`e`).split(`e`);return r=(ed(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Ao=cn&&1/cr(new cn([,-0]))[1]==te?function(e){return new cn(e)}:Bf;function jo(e){return function(t){var n=Qo(t);return n==se?ar(t):n==pe?lr(t):Wn(t,e(t))}}function Mo(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new lt(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:Kt(Yu(c),0),l=l===n?l:Yu(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:Ho(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&vs(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:Kt(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=po(e,t,r);else g=t==b||t==x?_o(e,t,l):(t==S||t==(_|S))&&!a.length?To(e,t,r,i):bo.apply(n,h);return Os((m?Ta:Ts)(g,h),e,t)}function No(e,t,r,i){return e===n||au(e,ft[r])&&!ht.call(i,r)?t:e}function Po(e,t,r,i,a,o){return Tu(e)&&Tu(t)&&(o.set(t,e),la(e,t,n,Po,o),o.delete(t)),e}function Fo(e){return Fu(e)?n:e}function Io(e,t,r,i,a,o){var s=r&h,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&g?new Xr:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!On(t,function(e,t){if(!Jn(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Lo(e,t,n,r,i,a,o){switch(n){case be:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ye:return!(e.byteLength!=t.byteLength||!a(new wt(e),new wt(t)));case V:case ie:case ce:return au(+e,+t);case U:return e.name==t.name&&e.message==t.message;case fe:case me:return e==t+``;case se:var s=ar;case pe:var c=r&h;if(s||=cr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=Io(s(e),s(t),r,i,a,o);return o.delete(e),u;case he:if(Cr)return Cr.call(e)==Cr.call(t)}return!1}function Ro(e,t,r,i,a,o){var s=r&h,c=Bo(e),l=c.length;if(l!=Bo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:ht.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 g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function zo(e){return Ds(xs(e,n,Ys),e+``)}function Bo(e){return Ii(e,Cd,Xo)}function Vo(e){return Ii(e,wd,Zo)}var Ho=An?function(e){return An.get(e)}:Bf;function Uo(e){for(var t=e.name+``,n=zn[t],r=ht.call(zn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Wo(e){return(ht.call($,`placeholder`)?$:e).placeholder}function Go(){var e=$.iteratee||Nf;return e=e===Nf?na:e,arguments.length?e(arguments[0],arguments[1]):e}function Ko(e,t){var n=e.__data__;return us(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function qo(e){for(var t=Cd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hs(i)]}return t}function Jo(e,t){var r=tr(e,t);return Qi(r)?r:n}function Yo(e){var t=ht.call(e,Mt),r=e[Mt];try{e[Mt]=n;var i=!0}catch{}var a=vt.call(e);return i&&(t?e[Mt]=r:delete e[Mt]),a}var Xo=zt?function(e){return e==null?[]:(e=ot(e),xn(zt(e),function(t){return Ot.call(e,t)}))}:Yf,Zo=zt?function(e){for(var t=[];e;)Tn(t,Xo(e)),e=Et(e);return t}:Yf,Qo=Li;(nn&&Qo(new nn(new ArrayBuffer(1)))!=be||an&&Qo(new an)!=se||on&&Qo(on.resolve())!=ue||cn&&Qo(new cn)!=pe||ln&&Qo(new ln)!=_e)&&(Qo=function(e){var t=Li(e),r=t==le?e.constructor:n,i=r?Ns(r):``;if(i)switch(i){case ur:return be;case gr:return se;case _r:return ue;case br:return pe;case xr:return _e}return t});function $o(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=Yt(t,e+o);break;case`takeRight`:e=Kt(e,t-o);break}}return{start:e,end:t}}function es(e){var t=e.match(He);return t?t[1].split(Ue):[]}function ts(e,t,n){t=Wa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ms(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&&wu(i)&&ss(o,i)&&(lu(e)||cu(e)))}function ns(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ht.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function rs(e){return typeof e.constructor==`function`&&!ms(e)?Tr(Et(e)):{}}function is(e,t,n){var r=e.constructor;switch(t){case ye:return Ya(e);case V:case ie:return new r(+e);case be:return Xa(e,n);case xe:case Se:case Ce:case G:case K:case q:case we:case Te:case Ee:return $a(e,n);case se:return new r;case ce:case me:return new r(e);case fe:return Za(e);case pe:return new r;case he:return Qa(e)}}function as(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(X,`{
/* [wrapped with `+t+`] */
`)}function os(e){return lu(e)||cu(e)||!!(At&&e&&e[At])}function ss(e,t){var n=typeof e;return t??=N,!!t&&(n==`number`||n!=`symbol`&&$e.test(e))&&e>-1&&e%1==0&&e<t}function cs(e,t,n){if(!Tu(n))return!1;var r=typeof t;return(r==`number`?du(n)&&ss(t,n.length):r==`string`&&t in n)?au(n[t],e):!1}function ls(e,t){if(lu(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Bu(e)?!0:Re.test(e)||!Le.test(e)||t!=null&&e in ot(t)}function us(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ds(e){var t=Uo(e),n=$[t];if(typeof n!=`function`||!(t in Or.prototype))return!1;if(e===n)return!0;var r=Ho(n);return!!r&&e===r[0]}function fs(e){return!!_t&&_t in e}var ps=pt?Su:Xf;function ms(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ft)}function hs(e){return e===e&&!Tu(e)}function gs(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in ot(r))}}function _s(e){var t=Vl(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?no(c,s,t[4]):s,e[4]=c?sr(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ro(c,s,t[6]):s,e[6]=c?sr(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:Yt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(e!=null)for(var n in ot(e))t.push(n);return t}function bs(e){return vt.call(e)}function xs(e,t,r){return t=Kt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Kt(n.length-t,0),o=Y(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Y(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),gn(e,this,s)}}function Ss(e,t){return t.length<2?e:Fi(e,Oa(t,0,-1))}function Cs(e,t){for(var r=e.length,i=Yt(t.length,r),a=io(e);i--;){var o=t[i];e[i]=ss(o,r)?a[o]:n}return e}function ws(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Ts=ks(Ta),Es=It||function(e,t){return rn.setTimeout(e,t)},Ds=ks(Ea);function Os(e,t,n){var r=t+``;return Ds(e,as(r,Ps(es(r),n)))}function ks(e){var t=0,r=0;return function(){var i=Xt(),a=A-(i-r);if(r=i,a>0){if(++t>=k)return arguments[0]}else t=0;return e.apply(n,arguments)}}function As(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=va(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var js=_s(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(ze,function(e,n,r,i){t.push(r?i.replace(Ke,`$1`):n||e)}),t});function Ms(e){if(typeof e==`string`||Bu(e))return e;var t=e+``;return t==`0`&&1/e==-te?`-0`:t}function Ns(e){if(e!=null){try{return mt.call(e)}catch{}try{return e+``}catch{}}return``}function Ps(e,t){return vn(L,function(n){var r=`_.`+n[0];t&n[1]&&!Sn(e,r)&&e.push(r)}),e.sort()}function Fs(e){if(e instanceof Or)return e.clone();var t=new Dr(e.__wrapped__,e.__chain__);return t.__actions__=io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Is(e,t,r){t=(r?cs(e,t,r):t===n)?1:Kt(Yu(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Y(Lt(i/t));a<i;)s[o++]=Oa(e,a,a+=t);return s}function Ls(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 Rs(){var e=arguments.length;if(!e)return[];for(var t=Y(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Tn(lu(n)?io(n):[n],ki(t,1))}var zs=xa(function(e,t){return fu(e)?Si(e,ki(t,1,fu,!0)):[]}),Bs=xa(function(e,t){var r=oc(t);return fu(r)&&(r=n),fu(e)?Si(e,ki(t,1,fu,!0),Go(r,2)):[]}),Vs=xa(function(e,t){var r=oc(t);return fu(r)&&(r=n),fu(e)?Si(e,ki(t,1,fu,!0),n,r):[]});function Hs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Yu(t),Oa(e,t<0?0:t,i)):[]}function Us(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Yu(t),t=i-t,Oa(e,0,t<0?0:t)):[]}function Ws(e,t){return e&&e.length?Ra(e,Go(t,3),!0,!0):[]}function Gs(e,t){return e&&e.length?Ra(e,Go(t,3),!0):[]}function Ks(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&cs(e,t,n)&&(n=0,r=i),Di(e,t,n,r)):[]}function qs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Yu(n);return i<0&&(i=Kt(r+i,0)),Nn(e,Go(t,3),i)}function Js(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Yu(r),a=r<0?Kt(i+a,0):Yt(a,i-1)),Nn(e,Go(t,3),a,!0)}function Ys(e){return e!=null&&e.length?ki(e,1):[]}function Xs(e){return e!=null&&e.length?ki(e,te):[]}function Zs(e,t){return e!=null&&e.length?(t=t===n?1:Yu(t),ki(e,t)):[]}function Qs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];hi(r,i[0],i[1])}return r}function $s(e){return e&&e.length?e[0]:n}function ec(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Yu(n);return i<0&&(i=Kt(r+i,0)),Pn(e,t,i)}function tc(e){return e!=null&&e.length?Oa(e,0,-1):[]}var nc=xa(function(e){var t=wn(e,Ha);return t.length&&t[0]===e[0]?Hi(t):[]}),rc=xa(function(e){var t=oc(e),r=wn(e,Ha);return t===oc(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Hi(r,Go(t,2)):[]}),ic=xa(function(e){var t=oc(e),r=wn(e,Ha);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Hi(r,n,t):[]});function ac(e,t){return e==null?``:Wt.call(e,t)}function oc(e){var t=e==null?0:e.length;return t?e[t-1]:n}function sc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Yu(r),a=a<0?Kt(i+a,0):Yt(a,i-1)),t===t?dr(e,t,a):Nn(e,In,a,!0)}function cc(e,t){return e&&e.length?da(e,Yu(t)):n}var lc=xa(uc);function uc(e,t){return e&&e.length&&t&&t.length?ga(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,Go(n,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?ga(e,t,n,r):e}var pc=zo(function(e,t){var n=e==null?0:e.length,r=gi(e,t);return _a(e,wn(t,function(e){return ss(e,n)?+e:e}).sort(eo)),r});function mc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=Go(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return _a(e,i),n}function hc(e){return e==null?e:tn.call(e)}function gc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&cs(e,t,r)?(t=0,r=i):(t=t==null?0:Yu(t),r=r===n?i:Yu(r)),Oa(e,t,r)):[]}function _c(e,t){return Aa(e,t)}function vc(e,t,n){return ja(e,t,Go(n,2))}function yc(e,t){var n=e==null?0:e.length;if(n){var r=Aa(e,t);if(r<n&&au(e[r],t))return r}return-1}function bc(e,t){return Aa(e,t,!0)}function xc(e,t,n){return ja(e,t,Go(n,2),!0)}function Sc(e,t){if(e!=null&&e.length){var n=Aa(e,t,!0)-1;if(au(e[n],t))return n}return-1}function Cc(e){return e&&e.length?Ma(e):[]}function wc(e,t){return e&&e.length?Ma(e,Go(t,2)):[]}function Tc(e){var t=e==null?0:e.length;return t?Oa(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===n?1:Yu(t),Oa(e,0,t<0?0:t)):[]}function Dc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Yu(t),t=i-t,Oa(e,t<0?0:t,i)):[]}function Oc(e,t){return e&&e.length?Ra(e,Go(t,3),!1,!0):[]}function kc(e,t){return e&&e.length?Ra(e,Go(t,3)):[]}var Ac=xa(function(e){return Fa(ki(e,1,fu,!0))}),jc=xa(function(e){var t=oc(e);return fu(t)&&(t=n),Fa(ki(e,1,fu,!0),Go(t,2))}),Mc=xa(function(e){var t=oc(e);return t=typeof t==`function`?t:n,Fa(ki(e,1,fu,!0),n,t)});function Nc(e){return e&&e.length?Fa(e):[]}function Pc(e,t){return e&&e.length?Fa(e,Go(t,2)):[]}function Fc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Fa(e,n,t):[]}function Ic(e){if(!(e&&e.length))return[];var t=0;return e=xn(e,function(e){if(fu(e))return t=Kt(e.length,t),!0}),Un(t,function(t){return wn(e,Rn(t))})}function Lc(e,t){if(!(e&&e.length))return[];var r=Ic(e);return t==null?r:wn(r,function(e){return gn(t,n,e)})}var Rc=xa(function(e,t){return fu(e)?Si(e,t):[]}),zc=xa(function(e){return Ba(xn(e,fu))}),Bc=xa(function(e){var t=oc(e);return fu(t)&&(t=n),Ba(xn(e,fu),Go(t,2))}),Vc=xa(function(e){var t=oc(e);return t=typeof t==`function`?t:n,Ba(xn(e,fu),n,t)}),Hc=xa(Ic);function Uc(e,t){return Va(e||[],t||[],ui)}function Wc(e,t){return Va(e||[],t||[],wa)}var Gc=xa(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Lc(e,r)});function Kc(e){var t=$(e);return t.__chain__=!0,t}function qc(e,t){return t(e),e}function Jc(e,t){return t(e)}var Yc=zo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return gi(t,e)};return t>1||this.__actions__.length||!(i instanceof Or)||!ss(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Jc,args:[a],thisArg:n}),new Dr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Xc(){return Kc(this)}function Zc(){return new Dr(this.value(),this.__chain__)}function Qc(){this.__values__===n&&(this.__values__=qu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function $c(){return this}function el(e){for(var t,r=this;r instanceof Er;){var i=Fs(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 tl(){var e=this.__wrapped__;if(e instanceof Or){var t=e;return this.__actions__.length&&(t=new Or(this)),t=t.reverse(),t.__actions__.push({func:Jc,args:[hc],thisArg:n}),new Dr(t,this.__chain__)}return this.thru(hc)}function nl(){return za(this.__wrapped__,this.__actions__)}var rl=co(function(e,t,n){ht.call(e,n)?++e[n]:hi(e,n,1)});function il(e,t,r){var i=lu(e)?bn:Ti;return r&&cs(e,t,r)&&(t=n),i(e,Go(t,3))}function al(e,t){return(lu(e)?xn:Oi)(e,Go(t,3))}var ol=vo(qs),sl=vo(Js);function cl(e,t){return ki(_l(e,t),1)}function ll(e,t){return ki(_l(e,t),te)}function ul(e,t,r){return r=r===n?1:Yu(r),ki(_l(e,t),r)}function dl(e,t){return(lu(e)?vn:Ci)(e,Go(t,3))}function fl(e,t){return(lu(e)?yn:wi)(e,Go(t,3))}var pl=co(function(e,t,n){ht.call(e,n)?e[n].push(t):hi(e,n,[t])});function ml(e,t,n,r){e=du(e)?e:Hd(e),n=n&&!r?Yu(n):0;var i=e.length;return n<0&&(n=Kt(i+n,0)),zu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Pn(e,t,n)>-1}var hl=xa(function(e,t,n){var r=-1,i=typeof t==`function`,a=du(e)?Y(e.length):[];return Ci(e,function(e){a[++r]=i?gn(t,e,n):Wi(e,t,n)}),a}),gl=co(function(e,t,n){hi(e,n,t)});function _l(e,t){return(lu(e)?wn:oa)(e,Go(t,3))}function vl(e,t,r,i){return e==null?[]:(lu(t)||(t=t==null?[]:[t]),r=i?n:r,lu(r)||(r=r==null?[]:[r]),fa(e,t,r))}var yl=co(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function bl(e,t,n){var r=lu(e)?En:Bn,i=arguments.length<3;return r(e,Go(t,4),n,i,Ci)}function xl(e,t,n){var r=lu(e)?Dn:Bn,i=arguments.length<3;return r(e,Go(t,4),n,i,wi)}function Sl(e,t){return(lu(e)?xn:Oi)(e,Hl(Go(t,3)))}function Cl(e){return(lu(e)?oi:Sa)(e)}function wl(e,t,r){return t=(r?cs(e,t,r):t===n)?1:Yu(t),(lu(e)?si:Ca)(e,t)}function Tl(e){return(lu(e)?ci:Da)(e)}function El(e){if(e==null)return 0;if(du(e))return zu(e)?fr(e):e.length;var t=Qo(e);return t==se||t==pe?e.size:ra(e).length}function Dl(e,t,r){var i=lu(e)?On:ka;return r&&cs(e,t,r)&&(t=n),i(e,Go(t,3))}var Ol=xa(function(e,t){if(e==null)return[];var n=t.length;return n>1&&cs(e,t[0],t[1])?t=[]:n>2&&cs(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,ki(t,1),[])}),kl=Ft||function(){return rn.Date.now()};function Al(e,t){if(typeof t!=`function`)throw new lt(o);return e=Yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function jl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Mo(e,w,n,n,n,n,t)}function Ml(e,t){var r;if(typeof t!=`function`)throw new lt(o);return e=Yu(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Nl=xa(function(e,t,n){var r=_;if(n.length){var i=sr(n,Wo(Nl));r|=S}return Mo(e,r,t,n,i)}),Pl=xa(function(e,t,n){var r=_|v;if(n.length){var i=sr(n,Wo(Pl));r|=S}return Mo(t,r,e,n,i)});function Fl(e,t,r){t=r?n:t;var i=Mo(e,b,n,n,n,n,n,t);return i.placeholder=Fl.placeholder,i}function Il(e,t,r){t=r?n:t;var i=Mo(e,x,n,n,n,n,n,t);return i.placeholder=Il.placeholder,i}function Ll(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new lt(o);t=Zu(t)||0,Tu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?Kt(Zu(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Es(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Yt(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=kl();if(v(e))return b(e);l=Es(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&qa(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(kl())}function C(){var e=kl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return qa(l),l=Es(y,t),h(u)}return l===n&&(l=Es(y,t)),c}return C.cancel=x,C.flush=S,C}var Rl=xa(function(e,t){return xi(e,1,t)}),zl=xa(function(e,t,n){return xi(e,Zu(t)||0,n)});function Bl(e){return Mo(e,E)}function Vl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new lt(o);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(Vl.Cache||Wr),n}Vl.Cache=Wr;function Hl(e){if(typeof e!=`function`)throw new lt(o);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 Ul(e){return Ml(2,e)}var Wl=Ga(function(e,t){t=t.length==1&&lu(t[0])?wn(t[0],Kn(Go())):wn(ki(t,1),Kn(Go()));var n=t.length;return xa(function(r){for(var i=-1,a=Yt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return gn(e,this,r)})}),Gl=xa(function(e,t){return Mo(e,S,n,t,sr(t,Wo(Gl)))}),Kl=xa(function(e,t){return Mo(e,C,n,t,sr(t,Wo(Kl)))}),ql=zo(function(e,t){return Mo(e,T,n,n,n,t)});function Jl(e,t){if(typeof e!=`function`)throw new lt(o);return t=t===n?t:Yu(t),xa(e,t)}function Yl(e,t){if(typeof e!=`function`)throw new lt(o);return t=t==null?0:Kt(Yu(t),0),xa(function(n){var r=n[t],i=Ka(n,0,t);return r&&Tn(i,r),gn(e,this,i)})}function Xl(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new lt(o);return Tu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ll(e,t,{leading:r,maxWait:t,trailing:i})}function Zl(e){return jl(e,1)}function Ql(e,t){return Gl(Ua(t),e)}function $l(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function eu(e){return vi(e,m)}function tu(e,t){return t=typeof t==`function`?t:n,vi(e,m,t)}function nu(e){return vi(e,f|m)}function ru(e,t){return t=typeof t==`function`?t:n,vi(e,f|m,t)}function iu(e,t){return t==null||bi(e,t,Cd(t))}function au(e,t){return e===t||e!==e&&t!==t}var ou=Do(Ri),su=Do(function(e,t){return e>=t}),cu=Gi(function(){return arguments}())?Gi:function(e){return Eu(e)&&ht.call(e,`callee`)&&!Ot.call(e,`callee`)},lu=Y.isArray,uu=un?Kn(un):Ki;function du(e){return e!=null&&wu(e.length)&&!Su(e)}function fu(e){return Eu(e)&&du(e)}function pu(e){return e===!0||e===!1||Eu(e)&&Li(e)==V}var mu=Bt||Xf,hu=dn?Kn(dn):qi;function gu(e){return Eu(e)&&e.nodeType===1&&!Fu(e)}function _u(e){if(e==null)return!0;if(du(e)&&(lu(e)||typeof e==`string`||typeof e.splice==`function`||mu(e)||Vu(e)||cu(e)))return!e.length;var t=Qo(e);if(t==se||t==pe)return!e.size;if(ms(e))return!ra(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0}function vu(e,t){return Ji(e,t)}function yu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Ji(e,t,n,r):!!i}function bu(e){if(!Eu(e))return!1;var t=Li(e);return t==U||t==H||typeof e.message==`string`&&typeof e.name==`string`&&!Fu(e)}function xu(e){return typeof e==`number`&&Ut(e)}function Su(e){if(!Tu(e))return!1;var t=Li(e);return t==ae||t==oe||t==B||t==de}function Cu(e){return typeof e==`number`&&e==Yu(e)}function wu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=N}function Tu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Eu(e){return typeof e==`object`&&!!e}var Du=fn?Kn(fn):Xi;function Ou(e,t){return e===t||Zi(e,t,qo(t))}function ku(e,t,r){return r=typeof r==`function`?r:n,Zi(e,t,qo(t),r)}function Au(e){return Pu(e)&&e!=+e}function ju(e){if(ps(e))throw new rt(a);return Qi(e)}function Mu(e){return e===null}function Nu(e){return e==null}function Pu(e){return typeof e==`number`||Eu(e)&&Li(e)==ce}function Fu(e){if(!Eu(e)||Li(e)!=le)return!1;var t=Et(e);if(t===null)return!0;var n=ht.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&mt.call(n)==yt}var Iu=pn?Kn(pn):$i;function Lu(e){return Cu(e)&&e>=-N&&e<=N}var Ru=mn?Kn(mn):ea;function zu(e){return typeof e==`string`||!lu(e)&&Eu(e)&&Li(e)==me}function Bu(e){return typeof e==`symbol`||Eu(e)&&Li(e)==he}var Vu=hn?Kn(hn):ta;function Hu(e){return e===n}function Uu(e){return Eu(e)&&Qo(e)==_e}function Wu(e){return Eu(e)&&Li(e)==ve}var Gu=Do(aa),Ku=Do(function(e,t){return e<=t});function qu(e){if(!e)return[];if(du(e))return zu(e)?pr(e):io(e);if(jt&&e[jt])return ir(e[jt]());var t=Qo(e);return(t==se?ar:t==pe?cr:Hd)(e)}function Ju(e){return e?(e=Zu(e),e===te||e===-te?(e<0?-1:1)*P:e===e?e:0):e===0?e:0}function Yu(e){var t=Ju(e),n=t%1;return t===t?n?t-n:t:0}function Xu(e){return e?_i(Yu(e),0,F):0}function Zu(e){if(typeof e==`number`)return e;if(Bu(e))return ne;if(Tu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Tu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Gn(e);var n=Xe.test(e);return n||Qe.test(e)?en(e.slice(2),n?2:8):Ye.test(e)?ne:+e}function Qu(e){return ao(e,wd(e))}function $u(e){return e?_i(Yu(e),-N,N):e===0?e:0}function ed(e){return e==null?``:Pa(e)}var td=lo(function(e,t){if(ms(t)||du(t)){ao(t,Cd(t),e);return}for(var n in t)ht.call(t,n)&&ui(e,n,t[n])}),nd=lo(function(e,t){ao(t,wd(t),e)}),rd=lo(function(e,t,n,r){ao(t,wd(t),e,r)}),id=lo(function(e,t,n,r){ao(t,Cd(t),e,r)}),ad=zo(gi);function od(e,t){var n=Tr(e);return t==null?n:pi(n,t)}var sd=xa(function(e,t){e=ot(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&cs(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=wd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||au(d,ft[u])&&!ht.call(e,u))&&(e[u]=o[u])}return e}),cd=xa(function(e){return e.push(n,Po),gn(Od,n,e)});function ld(e,t){return Mn(e,Go(t,3),Mi)}function ud(e,t){return Mn(e,Go(t,3),Ni)}function dd(e,t){return e==null?e:Ai(e,Go(t,3),wd)}function fd(e,t){return e==null?e:ji(e,Go(t,3),wd)}function pd(e,t){return e&&Mi(e,Go(t,3))}function md(e,t){return e&&Ni(e,Go(t,3))}function hd(e){return e==null?[]:Pi(e,Cd(e))}function gd(e){return e==null?[]:Pi(e,wd(e))}function _d(e,t,r){var i=e==null?n:Fi(e,t);return i===n?r:i}function vd(e,t){return e!=null&&ts(e,t,zi)}function yd(e,t){return e!=null&&ts(e,t,Bi)}var bd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=vt.call(t)),e[t]=n},Of(Mf)),xd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=vt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]},Go),Sd=xa(Wi);function Cd(e){return du(e)?ai(e):ra(e)}function wd(e){return du(e)?ai(e,!0):ia(e)}function Td(e,t){var n={};return t=Go(t,3),Mi(e,function(e,r,i){hi(n,t(e,r,i),e)}),n}function Ed(e,t){var n={};return t=Go(t,3),Mi(e,function(e,r,i){hi(n,r,t(e,r,i))}),n}var Dd=lo(function(e,t,n){la(e,t,n)}),Od=lo(function(e,t,n,r){la(e,t,n,r)}),kd=zo(function(e,t){var n={};if(e==null)return n;var r=!1;t=wn(t,function(t){return t=Wa(t,e),r||=t.length>1,t}),ao(e,Vo(e),n),r&&(n=vi(n,f|p|m,Fo));for(var i=t.length;i--;)Ia(n,t[i]);return n});function Ad(e,t){return Md(e,Hl(Go(t)))}var jd=zo(function(e,t){return e==null?{}:pa(e,t)});function Md(e,t){if(e==null)return{};var n=wn(Vo(e),function(e){return[e]});return t=Go(t),ma(e,n,function(e,n){return t(e,n[0])})}function Nd(e,t,r){t=Wa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Ms(t[i])];o===n&&(i=a,o=r),e=Su(o)?o.call(e):o}return e}function Pd(e,t,n){return e==null?e:wa(e,t,n)}function Fd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:wa(e,t,r,i)}var Id=jo(Cd),Ld=jo(wd);function Rd(e,t,n){var r=lu(e),i=r||mu(e)||Vu(e);if(t=Go(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Tu(e)&&Su(a)?Tr(Et(e)):{}}return(i?vn:Mi)(e,function(e,r,i){return t(n,e,r,i)}),n}function zd(e,t){return e==null?!0:Ia(e,t)}function Bd(e,t,n){return e==null?e:La(e,t,Ua(n))}function Vd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:La(e,t,Ua(r),i)}function Hd(e){return e==null?[]:qn(e,Cd(e))}function Ud(e){return e==null?[]:qn(e,wd(e))}function Wd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Zu(r),r=r===r?r:0),t!==n&&(t=Zu(t),t=t===t?t:0),_i(Zu(e),t,r)}function Gd(e,t,r){return t=Ju(t),r===n?(r=t,t=0):r=Ju(r),e=Zu(e),Vi(e,t,r)}function Kd(e,t,r){if(r&&typeof r!=`boolean`&&cs(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=Ju(e),t===n?(t=e,e=0):t=Ju(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Qt();return Yt(e+a*(t-e+$t(`1e-`+((a+``).length-1))),t)}return va(e,t)}var qd=ho(function(e,t,n){return t=t.toLowerCase(),e+(n?Jd(t):t)});function Jd(e){return Sf(ed(e).toLowerCase())}function Yd(e){return e=ed(e),e&&e.replace(et,Qn).replace(Ht,``)}function Xd(e,t,r){e=ed(e),t=Pa(t);var i=e.length;r=r===n?i:_i(Yu(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Zd(e){return e=ed(e),e&&Ne.test(e)?e.replace(je,$n):e}function Qd(e){return e=ed(e),e&&Ve.test(e)?e.replace(Be,`\\$&`):e}var $d=ho(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),ef=ho(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),tf=mo(`toLowerCase`);function nf(e,t,n){e=ed(e),t=Yu(t);var r=t?fr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wo(Rt(i),n)+e+wo(Lt(i),n)}function rf(e,t,n){e=ed(e),t=Yu(t);var r=t?fr(e):0;return t&&r<t?e+wo(t-r,n):e}function af(e,t,n){e=ed(e),t=Yu(t);var r=t?fr(e):0;return t&&r<t?wo(t-r,n)+e:e}function of(e,t,n){return n||t==null?t=0:t&&=+t,Zt(ed(e).replace(J,``),t||0)}function sf(e,t,r){return t=(r?cs(e,t,r):t===n)?1:Yu(t),ba(ed(e),t)}function cf(){var e=arguments,t=ed(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var lf=ho(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function uf(e,t,r){return r&&typeof r!=`number`&&cs(e,t,r)&&(t=r=n),r=r===n?F:r>>>0,r?(e=ed(e),e&&(typeof t==`string`||t!=null&&!Iu(t))&&(t=Pa(t),!t&&nr(e))?Ka(pr(e),0,r):e.split(t,r)):[]}var df=ho(function(e,t,n){return e+(n?` `:``)+Sf(t)});function ff(e,t,n){return e=ed(e),n=n==null?0:_i(Yu(n),0,e.length),t=Pa(t),e.slice(n,n+t.length)==t}function pf(e,t,r){var i=$.templateSettings;r&&cs(e,t,r)&&(t=n),e=ed(e),t=id({},t,i,No);var a=id({},t.imports,i.imports,No),o=Cd(a),l=qn(a,o);vn(o,function(e){if(Ge.test(e))throw new rt(c)});var u,d,f=0,p=t.interpolate||tt,m=`__p += '`,h=st((t.escape||tt).source+`|`+p.source+`|`+(p===Ie?qe:tt).source+`|`+(t.evaluate||tt).source+`|$`,`g`),g=`//# sourceURL=`+(ht.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Jt+`]`)+`
`;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(nt,er),n&&(u=!0,m+=`' +
__e(`+n+`) +
'`),a&&(d=!0,m+=`';
`+a+`;
__p += '`),r&&(m+=`' +
((__t = (`+r+`)) == null ? '' : __t) +
'`),f=o+t.length,t}),m+=`';
`;var _=ht.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
`+m+`
}
`;else if(Ge.test(_))throw new rt(s);m=(d?m.replace(De,``):m).replace(Oe,`$1`).replace(ke,`$1;`),m=`function(`+(_||`obj`)+`) {
`+(_?``:`obj || (obj = {});
`)+`var __t, __p = ''`+(u?`, __e = _.escape`:``)+(d?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+m+`return __p
}`;var v=wf(function(){return it(o,g+`return `+m).apply(n,l)});if(v.source=m,bu(v))throw v;return v}function mf(e){return ed(e).toLowerCase()}function hf(e){return ed(e).toUpperCase()}function gf(e,t,r){if(e=ed(e),e&&(r||t===n))return Gn(e);if(!e||!(t=Pa(t)))return e;var i=pr(e),a=pr(t);return Ka(i,Yn(i,a),Xn(i,a)+1).join(``)}function _f(e,t,r){if(e=ed(e),e&&(r||t===n))return e.slice(0,mr(e)+1);if(!e||!(t=Pa(t)))return e;var i=pr(e);return Ka(i,0,Xn(i,pr(t))+1).join(``)}function vf(e,t,r){if(e=ed(e),e&&(r||t===n))return e.replace(J,``);if(!e||!(t=Pa(t)))return e;var i=pr(e);return Ka(i,Yn(i,pr(t))).join(``)}function yf(e,t){var r=D,i=O;if(Tu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Yu(t.length):r,i=`omission`in t?Pa(t.omission):i}e=ed(e);var o=e.length;if(nr(e)){var s=pr(e);o=s.length}if(r>=o)return e;var c=r-fr(i);if(c<1)return i;var l=s?Ka(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Iu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=st(a.source,ed(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(Pa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function bf(e){return e=ed(e),e&&Me.test(e)?e.replace(Ae,hr):e}var xf=ho(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Sf=mo(`toUpperCase`);function Cf(e,t,r){return e=ed(e),t=r?n:t,t===n?rr(e)?vr(e):jn(e):e.match(t)||[]}var wf=xa(function(e,t){try{return gn(e,n,t)}catch(e){return bu(e)?e:new rt(e)}}),Tf=zo(function(e,t){return vn(t,function(t){t=Ms(t),hi(e,t,Nl(e[t],e))}),e});function Ef(e){var t=e==null?0:e.length,n=Go();return e=t?wn(e,function(e){if(typeof e[1]!=`function`)throw new lt(o);return[n(e[0]),e[1]]}):[],xa(function(n){for(var r=-1;++r<t;){var i=e[r];if(gn(i[0],this,n))return gn(i[1],this,n)}})}function Df(e){return yi(vi(e,f))}function Of(e){return function(){return e}}function kf(e,t){return e==null||e!==e?t:e}var Af=yo(),jf=yo(!0);function Mf(e){return e}function Nf(e){return na(typeof e==`function`?e:vi(e,f))}function Pf(e){return sa(vi(e,f))}function Ff(e,t){return ca(e,vi(t,f))}var If=xa(function(e,t){return function(n){return Wi(n,e,t)}}),Lf=xa(function(e,t){return function(n){return Wi(e,n,t)}});function Rf(e,t,n){var r=Cd(t),i=Pi(t,r);n==null&&!(Tu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Pi(t,Cd(t)));var a=!(Tu(n)&&`chain`in n)||!!n.chain,o=Su(e);return vn(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__=io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})}),e}function zf(){return rn._===this&&(rn._=bt),this}function Bf(){}function Vf(e){return e=Yu(e),xa(function(t){return da(t,e)})}var Hf=Co(wn),Uf=Co(bn),Wf=Co(On);function Gf(e){return ls(e)?Rn(Ms(e)):ha(e)}function Kf(e){return function(t){return e==null?n:Fi(e,t)}}var qf=Eo(),Jf=Eo(!0);function Yf(){return[]}function Xf(){return!1}function Zf(){return{}}function Qf(){return``}function $f(){return!0}function ep(e,t){if(e=Yu(e),e<1||e>N)return[];var n=F,r=Yt(e,F);t=Go(t),e-=F;for(var i=Un(r,t);++n<e;)t(n);return i}function tp(e){return lu(e)?wn(e,Ms):Bu(e)?[e]:io(js(ed(e)))}function np(e){var t=++gt;return ed(e)+t}var rp=So(function(e,t){return e+t},0),ip=ko(`ceil`),ap=So(function(e,t){return e/t},1),op=ko(`floor`);function sp(e){return e&&e.length?Ei(e,Mf,Ri):n}function cp(e,t){return e&&e.length?Ei(e,Go(t,2),Ri):n}function lp(e){return Ln(e,Mf)}function up(e,t){return Ln(e,Go(t,2))}function dp(e){return e&&e.length?Ei(e,Mf,aa):n}function fp(e,t){return e&&e.length?Ei(e,Go(t,2),aa):n}var pp=So(function(e,t){return e*t},1),mp=ko(`round`),hp=So(function(e,t){return e-t},0);function gp(e){return e&&e.length?Hn(e,Mf):0}function _p(e,t){return e&&e.length?Hn(e,Go(t,2)):0}return $.after=Al,$.ary=jl,$.assign=td,$.assignIn=nd,$.assignInWith=rd,$.assignWith=id,$.at=ad,$.before=Ml,$.bind=Nl,$.bindAll=Tf,$.bindKey=Pl,$.castArray=$l,$.chain=Kc,$.chunk=Is,$.compact=Ls,$.concat=Rs,$.cond=Ef,$.conforms=Df,$.constant=Of,$.countBy=rl,$.create=od,$.curry=Fl,$.curryRight=Il,$.debounce=Ll,$.defaults=sd,$.defaultsDeep=cd,$.defer=Rl,$.delay=zl,$.difference=zs,$.differenceBy=Bs,$.differenceWith=Vs,$.drop=Hs,$.dropRight=Us,$.dropRightWhile=Ws,$.dropWhile=Gs,$.fill=Ks,$.filter=al,$.flatMap=cl,$.flatMapDeep=ll,$.flatMapDepth=ul,$.flatten=Ys,$.flattenDeep=Xs,$.flattenDepth=Zs,$.flip=Bl,$.flow=Af,$.flowRight=jf,$.fromPairs=Qs,$.functions=hd,$.functionsIn=gd,$.groupBy=pl,$.initial=tc,$.intersection=nc,$.intersectionBy=rc,$.intersectionWith=ic,$.invert=bd,$.invertBy=xd,$.invokeMap=hl,$.iteratee=Nf,$.keyBy=gl,$.keys=Cd,$.keysIn=wd,$.map=_l,$.mapKeys=Td,$.mapValues=Ed,$.matches=Pf,$.matchesProperty=Ff,$.memoize=Vl,$.merge=Dd,$.mergeWith=Od,$.method=If,$.methodOf=Lf,$.mixin=Rf,$.negate=Hl,$.nthArg=Vf,$.omit=kd,$.omitBy=Ad,$.once=Ul,$.orderBy=vl,$.over=Hf,$.overArgs=Wl,$.overEvery=Uf,$.overSome=Wf,$.partial=Gl,$.partialRight=Kl,$.partition=yl,$.pick=jd,$.pickBy=Md,$.property=Gf,$.propertyOf=Kf,$.pull=lc,$.pullAll=uc,$.pullAllBy=dc,$.pullAllWith=fc,$.pullAt=pc,$.range=qf,$.rangeRight=Jf,$.rearg=ql,$.reject=Sl,$.remove=mc,$.rest=Jl,$.reverse=hc,$.sampleSize=wl,$.set=Pd,$.setWith=Fd,$.shuffle=Tl,$.slice=gc,$.sortBy=Ol,$.sortedUniq=Cc,$.sortedUniqBy=wc,$.split=uf,$.spread=Yl,$.tail=Tc,$.take=Ec,$.takeRight=Dc,$.takeRightWhile=Oc,$.takeWhile=kc,$.tap=qc,$.throttle=Xl,$.thru=Jc,$.toArray=qu,$.toPairs=Id,$.toPairsIn=Ld,$.toPath=tp,$.toPlainObject=Qu,$.transform=Rd,$.unary=Zl,$.union=Ac,$.unionBy=jc,$.unionWith=Mc,$.uniq=Nc,$.uniqBy=Pc,$.uniqWith=Fc,$.unset=zd,$.unzip=Ic,$.unzipWith=Lc,$.update=Bd,$.updateWith=Vd,$.values=Hd,$.valuesIn=Ud,$.without=Rc,$.words=Cf,$.wrap=Ql,$.xor=zc,$.xorBy=Bc,$.xorWith=Vc,$.zip=Hc,$.zipObject=Uc,$.zipObjectDeep=Wc,$.zipWith=Gc,$.entries=Id,$.entriesIn=Ld,$.extend=nd,$.extendWith=rd,Rf($,$),$.add=rp,$.attempt=wf,$.camelCase=qd,$.capitalize=Jd,$.ceil=ip,$.clamp=Wd,$.clone=eu,$.cloneDeep=nu,$.cloneDeepWith=ru,$.cloneWith=tu,$.conformsTo=iu,$.deburr=Yd,$.defaultTo=kf,$.divide=ap,$.endsWith=Xd,$.eq=au,$.escape=Zd,$.escapeRegExp=Qd,$.every=il,$.find=ol,$.findIndex=qs,$.findKey=ld,$.findLast=sl,$.findLastIndex=Js,$.findLastKey=ud,$.floor=op,$.forEach=dl,$.forEachRight=fl,$.forIn=dd,$.forInRight=fd,$.forOwn=pd,$.forOwnRight=md,$.get=_d,$.gt=ou,$.gte=su,$.has=vd,$.hasIn=yd,$.head=$s,$.identity=Mf,$.includes=ml,$.indexOf=ec,$.inRange=Gd,$.invoke=Sd,$.isArguments=cu,$.isArray=lu,$.isArrayBuffer=uu,$.isArrayLike=du,$.isArrayLikeObject=fu,$.isBoolean=pu,$.isBuffer=mu,$.isDate=hu,$.isElement=gu,$.isEmpty=_u,$.isEqual=vu,$.isEqualWith=yu,$.isError=bu,$.isFinite=xu,$.isFunction=Su,$.isInteger=Cu,$.isLength=wu,$.isMap=Du,$.isMatch=Ou,$.isMatchWith=ku,$.isNaN=Au,$.isNative=ju,$.isNil=Nu,$.isNull=Mu,$.isNumber=Pu,$.isObject=Tu,$.isObjectLike=Eu,$.isPlainObject=Fu,$.isRegExp=Iu,$.isSafeInteger=Lu,$.isSet=Ru,$.isString=zu,$.isSymbol=Bu,$.isTypedArray=Vu,$.isUndefined=Hu,$.isWeakMap=Uu,$.isWeakSet=Wu,$.join=ac,$.kebabCase=$d,$.last=oc,$.lastIndexOf=sc,$.lowerCase=ef,$.lowerFirst=tf,$.lt=Gu,$.lte=Ku,$.max=sp,$.maxBy=cp,$.mean=lp,$.meanBy=up,$.min=dp,$.minBy=fp,$.stubArray=Yf,$.stubFalse=Xf,$.stubObject=Zf,$.stubString=Qf,$.stubTrue=$f,$.multiply=pp,$.nth=cc,$.noConflict=zf,$.noop=Bf,$.now=kl,$.pad=nf,$.padEnd=rf,$.padStart=af,$.parseInt=of,$.random=Kd,$.reduce=bl,$.reduceRight=xl,$.repeat=sf,$.replace=cf,$.result=Nd,$.round=mp,$.runInContext=e,$.sample=Cl,$.size=El,$.snakeCase=lf,$.some=Dl,$.sortedIndex=_c,$.sortedIndexBy=vc,$.sortedIndexOf=yc,$.sortedLastIndex=bc,$.sortedLastIndexBy=xc,$.sortedLastIndexOf=Sc,$.startCase=df,$.startsWith=ff,$.subtract=hp,$.sum=gp,$.sumBy=_p,$.template=pf,$.times=ep,$.toFinite=Ju,$.toInteger=Yu,$.toLength=Xu,$.toLower=mf,$.toNumber=Zu,$.toSafeInteger=$u,$.toString=ed,$.toUpper=hf,$.trim=gf,$.trimEnd=_f,$.trimStart=vf,$.truncate=yf,$.unescape=bf,$.uniqueId=np,$.upperCase=xf,$.upperFirst=Sf,$.each=dl,$.eachRight=fl,$.first=$s,Rf($,function(){var e={};return Mi($,function(t,n){ht.call($.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),$.VERSION=r,vn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){$[e].placeholder=$}),vn([`drop`,`take`],function(e,t){Or.prototype[e]=function(r){r=r===n?1:Kt(Yu(r),0);var i=this.__filtered__&&!t?new Or(this):this.clone();return i.__filtered__?i.__takeCount__=Yt(r,i.__takeCount__):i.__views__.push({size:Yt(r,F),type:e+(i.__dir__<0?`Right`:``)}),i},Or.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),vn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==j||n==ee;Or.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Go(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),vn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);Or.prototype[e]=function(){return this[n](1).value()[0]}}),vn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);Or.prototype[e]=function(){return this.__filtered__?new Or(this):this[n](1)}}),Or.prototype.compact=function(){return this.filter(Mf)},Or.prototype.find=function(e){return this.filter(e).head()},Or.prototype.findLast=function(e){return this.reverse().find(e)},Or.prototype.invokeMap=xa(function(e,t){return typeof e==`function`?new Or(this):this.map(function(n){return Wi(n,e,t)})}),Or.prototype.reject=function(e){return this.filter(Hl(Go(e)))},Or.prototype.slice=function(e,t){e=Yu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Or(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Yu(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Or.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Or.prototype.toArray=function(){return this.take(F)},Mi(Or.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 Or,l=s[0],u=c||lu(t),d=function(e){var t=a.apply($,Tn([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 Or(this);var g=e.apply(t,s);return g.__actions__.push({func:Jc,args:[d],thisArg:n}),new Dr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),vn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=ut[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(lu(i)?i:[],e)}return this[n](function(n){return t.apply(lu(n)?n:[],e)})}}),Mi(Or.prototype,function(e,t){var n=$[t];if(n){var r=n.name+``;ht.call(zn,r)||(zn[r]=[]),zn[r].push({name:t,func:n})}}),zn[bo(n,v).name]=[{name:`wrapper`,func:n}],Or.prototype.clone=kr,Or.prototype.reverse=Ar,Or.prototype.value=jr,$.prototype.at=Yc,$.prototype.chain=Xc,$.prototype.commit=Zc,$.prototype.next=Qc,$.prototype.plant=el,$.prototype.reverse=tl,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=nl,$.prototype.first=$.prototype.head,jt&&($.prototype[jt]=$c),$})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(rn._=yr,define(function(){return yr})):on?((on.exports=yr)._=yr,an._=yr):rn._=yr}).call(e)})),Ts=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?!0:(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}})),Es=e.t(((e,t)=>{let{isString:n,getType:r,isPlainObject:i,isArrayOf:a,map:o}=Ts(),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})),Ds=e.t(((e,t)=>{let n=require(`fs`),r=Es(),i=e=>typeof e==`function`,a=r.some(n,`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})),Os=e.t(((e,n)=>{n.exports=o,n.exports.sync=s;var r=Ds(),i=require(`path`),a=t.t()(`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=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=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){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}}})),ks=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}}})),As=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{ks()(n)}catch{}})),js=e.t(((e,t)=>{let n=As(),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]=new Map,this[u]=new n,this[i]=0}dump(){return this[u].map(e=>g(this,e)?!1:{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})),Ms=e.t(((e,n)=>{n.exports=u;let r=require(`fs`),i=require(`util`),a=require(`path`),o=t.t()(`snyk:resolve:try-require`),s=Li(),c=new(js())({max:100,maxAge:1e3*60*60}),l={readFile:i.promisify(r.readFile),stat:i.promisify(r.stat)};n.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}}}})),Ns=e.t(((e,n)=>{var r=e&&e.__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 i=fs(),a=Cs(),o=ws(),s=ws(),c=ws(),l=ws(),u=ws(),d=t.t(),f=require(`path`),p=require(`semver`),m=Os(),h=Ms(),g=d(`snyk:resolve:deps`);function _(e,t,n){!n||!n.length||n.forEach(function(n){(0,s.set)(t,n,(0,o.get)(e,n)||null)})}function v(e,t,n){return r(this,void 0,void 0,function*(){h.cache.reset();let r=(0,c.clone)(n||{}),a=e;if(r.file){let e=f.parse(r.file);a=f.resolve(a,e.dir),r.file=e.base}let o=yield y(a,t||null,null,r),s=[];return o.__dependencies&&Object.keys(o.__dependencies).forEach(function(e){o.dependencies[e]||s.push(m(e,a).then(function(t){return y(t,i.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 y(e,t,n,r){if(r||={},t||=i.EXTRANEOUS,typeof e!=`string`)return Promise.reject(Error(`module path must be a string`));let o={},s=f.resolve(e,r.file||`package.json`);return h(s).then(function(c){if(c){let e=c.name+`@`+(c.version||`0.0.0`);o={},_(c,o,r.extraFields),(0,l.assign)(o,{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=o.__from.concat(e),c.full=o.full,!c.shrinkwrap&&n&&n.shrinkwrap?c.shrinkwrap=n.shrinkwrap:c.shrinkwrap&&=c.full,o.__from.length===0&&o.__from.push(e)}else throw Error(s+` is not a node project`);return o.dependencies={},a.readdir(f.resolve(e,`node_modules`)).then(function(n){let s=n.map(function(t){return[`.bin`,`.DS_Store`,`~`].indexOf(t)>=0?null:t.indexOf(`@`)===0?(g(`scoped reset on %s`,t),t=f.resolve(e,`node_modules`,t),a.readdir(t).then(function(e){return Promise.all(e.map(function(e){return h(f.resolve(t,e,`package.json`))}))})):(t=f.resolve(e,`node_modules`,t),a.realpath(t).then(function(n){return n===e?null:h(f.resolve(t,`package.json`))}))});return Promise.all(s).then(function(e){return e=(0,u.flatten)(e).filter(Boolean),e.reduce(function(e,n){let a,o=n.license||n.licenses;a=Array.isArray(o)?o.reduce(function(e,t){return e.push((t||{}).type||t),e},[]).join(`/`):(o||{}).type||o;let s=i(n.name,c),u=s.type||t,d=s.from,f=!1;d&&(f=p.satisfies(n.version,d));let m=n.name+`@`+(n.version||`0.0.0`);return e[n.name]={},_(n,e[n.name],r.extraFields),(0,l.assign)(e[n.name],{name:n.name,version:n.version||null,full:m,valid:f,depType:u,snyk:n.snyk,license:a||`none`,dep:d||null,__from:c.__from.concat(m),__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},o.dependencies),o})}).then(function(e){let t=Object.keys(e.dependencies).map(function(t){let n=e.dependencies[t].depType;return y(f.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){if(e.code===`ENOENT`)return o.dependencies={},o;throw e})})}n.exports=v})),Ps=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.encode=e.parsePackageString=void 0;let r=t.t()(`snyk:module`),i=n.n();r.log=console.error.bind(console),e.default=a;function a(e,t,n){if(!e)throw Error(`requires string to parse into module`);let i;t&&!n&&typeof t==`object`?n=t:i=t;let a=e;if(!i&&/^(?:(?:[a-z-]+)|(?:@[a-z-]+\/[a-z-]+)|(?:[a-z-]+\.[.a-z-]+:[a-z-]+))$/.test(a))return l(a,{name:a,version:`*`},n);i&&a.lastIndexOf(`@`)<1&&(r(`appending version onto string`),a+=`@`+i);let c=o(a);if(c)return l(a,s(c),n);let u=a.split(`@`);a.indexOf(`@`)===0&&(u=u.slice(1),u[0]=`@`+u[0]);let d=u[1]&&o(u[1]);if(d)return l(a,s(d),n);u.length===1&&u.push(`*`);let f={name:u[0],version:u.slice(1).join(`@`)};return l(a,f,n)}e.parsePackageString=a;function o(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 i.fromUrl(e)}function s(e){if(!e.project||!e.user){let e=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 c(e){return e[0]+encodeURIComponent(e.slice(1))}e.encode=c;function l(e,t,n){if(n||={},n.packageManager===`maven`){if(e.indexOf(`:`)===-1)throw Error(`invalid Maven package name: `+e);return t}return(t.version.match(/^(https?:)|(git[:+])/i)||t.name.indexOf(`://`)!==-1)&&(r(`not supported %s@%s (ext)`,t.name,t.version),n.loose?delete t.version:r(`external module: `+u(t))),(t.version===`latest`||!t.version)&&(t.version=`*`),r(`%s => { name: "%s", version: "%s" }`,e,t.name,t.version),t}function u(e){return e.name+`@`+e.version}})),Fs=e.t(((e,n)=>{let r=require(`semver`),i=Ps(),a=t.t()(`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:!1}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}n.exports=s})),Is=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})),Ls=e.t(((e,t)=>{let n=Is();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})),Rs=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})),zs=e.t(((e,t)=>{let n=Fs(),r=Is(),i=Ls(),a=ws(),o=require(`path`),s=fs(),c=Rs(),l=Ps(),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];if(n.depType===s.DEV){l.push(n.__from),delete c.dependencies[n.name];return}}),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})),Bs=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):!0}).length,r=r===0),r}t.exports=n})),Vs=e.t(((e,t)=>{let n=Ns(),r=zs(),i=Is(),a=Bs(),o=Fs(),s=Ls();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})),Hs=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}/`)}})),Us=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=l;let n=require(`path`),r=require(`fs`),i=Vs(),a=t.t(),o=ws(),s=Hs(),c=a(`snyk-nodejs-plugin`);function l(e,t,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`),t.endsWith(`yarn.lock`)&&(a.file=a.file&&a.file.replace(`yarn.lock`,`package.json`)),t.endsWith(`pnpm-lock.yaml`)&&(a.file=a.file&&a.file.replace(`pnpm-lock.yaml`,`package.json`)),t.endsWith(`package-lock.json`)&&(a.file=a.file&&a.file.replace(`package-lock.json`,`package.json`));let l=n.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=n.join(n.dirname(n.resolve(e,t)),`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}))}})),Ws=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildDepGraph=s;let n=require(`path`),r=require(`fs`),i=ds(),a=ds(),o=t.t()(`snyk-nodejs-plugin`);async function s(e,t,s,c,l){let u=n.resolve(e,t),d=n.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=n.parse(d).dir,h=n.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`)}}})),Gs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=o;let t=require(`path`),n=require(`fs`),r=Ws(),i=ds(),a=ds();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)}})),Ks=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}})),qs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inspect=a;let t=Us(),n=Gs(),r=Ks(),i=Hs();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}}})),Js=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d,e.processNpmWorkspaces=f;let n=t.t(),r=require(`path`),i=ws(),a=Ho(),o=n(`snyk-npm-workspaces`),s=ds(),c=Hs(),l=Ks();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`);continue}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}})),Ys=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sortTargetFiles=l,e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d;let n=t.t(),r=require(`path`),i=ds(),a=Ho(),o=ws(),s=Hs(),c=n(`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,`**`))))}})),Xs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.processPnpmWorkspaces=c;let n=t.t(),r=require(`fs`),i=require(`path`),a=ds(),o=Ys(),s=n(`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?!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}})),Zs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getWorkspacesMap=u,e.packageJsonBelongsToWorkspace=d,e.processYarnWorkspaces=f;let n=t.t(),r=require(`path`),i=ws(),a=Ho(),o=n(`snyk-yarn-workspaces`),s=ds(),c=Hs(),l=Ks();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`);continue}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?!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?!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}})),Qs=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.processYarnWorkspaces=e.processPnpmWorkspaces=e.processNpmWorkspaces=void 0;let t=Js();Object.defineProperty(e,`processNpmWorkspaces`,{enumerable:!0,get:function(){return t.processNpmWorkspaces}});let n=Xs();Object.defineProperty(e,`processPnpmWorkspaces`,{enumerable:!0,get:function(){return n.processPnpmWorkspaces}});let r=Zs();Object.defineProperty(e,`processYarnWorkspaces`,{enumerable:!0,get:function(){return r.processYarnWorkspaces}})})),$s=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.processYarnWorkspaces=e.processPnpmWorkspaces=e.processNpmWorkspaces=e.inspect=void 0;let t=qs();Object.defineProperty(e,`inspect`,{enumerable:!0,get:function(){return t.inspect}});let n=Qs();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}})})),ec=ds(),tc=$s();const nc={includeDevDeps:!0,includeOptionalDeps:!0,includePeerDeps:!0,pruneWithinTopLevelDeps:!0,strictOutOfSync:!1},rc=async(e,{rootPath:t,manifestPath:n,lockfilePath:r})=>{let i=a.default.resolve(t,r),o=a.default.resolve(t,n);sc(e,i);try{return a.default.basename(i)===`pnpm-lock.yaml`?await ic(o,i):await oc(o,i)}catch(i){throw e.log.debug({rootPath:t,manifestPath:n,lockfilePath:r},`Failed to get dependencies`),i}};async function ic(e,t){let n=ac(e,t);try{let r=(0,i.readFileSync)(e,`utf8`),a=(0,i.readFileSync)(t,`utf8`);return Object.hasOwn((0,ec.getPnpmLockfileParser)(a).importers,n)?await(0,ec.parsePnpmWorkspaceProject)(r,a,nc,n):await(0,ec.parsePnpmProject)(r,a,nc)}catch(e){throw new r.tt(t,{cause:e})}}const ac=(e,t)=>r.r(a.default.relative(a.default.dirname(t),a.default.dirname(e)))||`.`;async function oc(e,t){let n=(0,i.mkdtempSync)(a.default.join(o.default.tmpdir(),`chromatic`)),s;try{let r=a.default.join(n,a.default.basename(t));(0,i.copyFileSync)(e,a.default.join(n,a.default.basename(e))),(0,i.copyFileSync)(t,r),s=await(0,tc.inspect)(n,r,{dev:!0,strictOutOfSync:!1})}catch(e){throw new r.tt(t,{cause:e})}finally{(0,i.rmSync)(n,{recursive:!0,force:!0})}if(s.scannedProjects.length!==1||!s.scannedProjects[0].depGraph)throw new r.tt(t);return s.scannedProjects[0].depGraph}function sc(e,t){let n=Number.parseInt(process.env.MAX_LOCK_FILE_SIZE??``)||10485760,a=(0,i.statSync)(t);if(a.size>n)throw e.log.warn({fullPath:t},`Lock file too large to parse, skipping`),new r.nt(t,a.size)}const cc=`package.json`,lc=async e=>{let{packageMetadataChanges:t}=e.git,{untraced:n=[]}=e.options;if(t?.length===0)return e.log.debug(`No package metadata changed found`),[];e.log.debug({packageMetadataChanges:t},`Finding changed dependencies for ${t?.length} baselines`);let s=await r.L(e)||``,[c]=await r.T(e,s,cc)||[],[l]=await r.T(e,s,...r.a)||[];(!c||!l)&&e.log.debug({rootPath:s,rootManifestPath:c,rootLockfilePath:l},`No manifest or lockfile found at the root of the repository`),e.log.debug({rootPath:s,rootManifestPath:c,rootLockfilePath:l},`Found manifest and lockfile`);let u=await r.T(e,s,`**/${cc}`)||[];e.log.debug({nestedManifestPaths:u.length},`Found nested manifest paths`);let d=e.env.CHROMATIC_TURBOSNAP_MANIFEST_CONCURRENCY,f=(0,jn.default)(d),p=await Promise.all(u.map(t=>f(async()=>{let n=a.default.dirname(t),[i]=await r.T(e,s,...r.a.map(e=>`${n}/${e}`))||[];return[t,i||l]})));if(c&&l)p.unshift([c,l]);else if(p.length===0)throw Error(`Could not find any pairs of ${cc} + ${r.a.join(` / `)}`);e.log.debug({pathPairs:p},`Found ${p.length} manifest/lockfile pairs to check`);let m=p.map(([e,n])=>{let r=t?.filter(({changedFiles:t})=>t.some(t=>t===n||t===e)).map(({commit:e})=>e);return[e,n,[...new Set(r)]]}).filter(([e,,t])=>!n.some(t=>r.p(t,e))&&t.length>0);if(e.log.debug({filteredPathPairs:m},`Found ${m.length} manifest/lockfile pairs to diff`),m.length===0)return[];let h=new Set,g=new Set,_=e.env.CHROMATIC_TURBOSNAP_PACKAGE_CONCURRENCY,v=(0,jn.default)(_),y=(0,jn.default)(_);try{await Promise.all(m.map(([t,n,c])=>v(async()=>{let l=await rc(e,{rootPath:s,manifestPath:t,lockfilePath:n});e.log.debug({manifestPath:t,lockfilePath:n},`Found HEAD dependencies`),await Promise.all(c.map(s=>y(async()=>{let c=i.default.mkdtempSync(a.default.join(o.default.tmpdir(),`chromatic`));g.add(c),await Promise.all([r.x(e,s,t,c),r.x(e,s,n,c)]);let u=await rc(e,{rootPath:c,manifestPath:t,lockfilePath:n});e.log.debug({reference:s},`Found baseline dependencies`);let d=await Mr(l,u);for(let e of d)h.add(e)})))})))}finally{for(let e of g)i.default.rmSync(e,{recursive:!0,force:!0})}return[...h]},uc=(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||!uc(i,a))return!1}return!0},dc=[`dependencies`,`devDependencies`,`peerDependencies`,`dependenciesMeta`,`peerDependenciesMeta`,`overrides`,`optionalDependencies`,`resolutions`,`pnpm`],fc=(e,t)=>dc.every(n=>uc(e[n],t[n])),pc=new Map,mc=async(e,t,n=`HEAD`)=>{let i=`${n}:${t}`;if(pc.has(i))return pc.get(i);let a=await r.Y(e,`git show ${i}`);return a&&pc.set(i,a),a},hc=async(e,t,n)=>(await Promise.all(t.map(async t=>{try{let r=await mc(e,t,n),i=await mc(e,t);if(!r||!i)throw Error(`Failed to read git file`);return fc(JSON.parse(r),JSON.parse(i))?[]:[t]}catch{return[t]}}))).flat(),gc=async(e,t)=>{let n=await Promise.all(t.map(({changedFiles:t,commit:n})=>{let i=t.filter(e=>r.d(e));return i?hc(e,i,n):[]}));return[...new Set(n.flat())]};var _c=({statsPath:e,storybookDir:t,storybookBuildDir:i,entryFile:a})=>a?(0,An.dedent)(kn.default`
${n.a} Did not find any CSF globs in {bold ${e}}
Found an entry file at {bold ${a}} but expected it at {bold ${t}/generated-stories-entry.js}.
${i?kn.default`Configure {bold --storybook-config-dir} with the value for {bold --config-dir} or {bold -c} from your build-storybook script.`:kn.default`Configure {bold --build-script-name} to point at the {bold build-storybook} script which has {bold --config-dir} or {bold -c} set.`}
${n.o} Read more at ${r.st(`https://www.chromatic.com/docs/turbosnap`)}
`):(0,An.dedent)(kn.default`
${n.a} Did not find any CSF globs in {bold ${e}}
Check your stories configuration in {bold ${t}/main.js}
${n.o} Read more at ${r.st(`https://storybook.js.org/docs/configure`)}
`);const vc=(e,t,n)=>(t===`.`?e:e.replace(`${t}/`,kn.default.dim(`${t}/`))).split(`/`).map((e,t,r)=>{if(t<r.length-1)return e;let[,i,a=``]=e.match(/^(.+?)( \+ \d+ modules)?$/)||[];return kn.default.bold(i)+(n?kn.default.magenta(a):kn.default.dim(a))}).join(`/`);var yc=(e,{changedFiles:t,affectedModules:i,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=>vc(e,c,u),f=(0,zn.default)(`changed files`,t.length,!0),p=(0,zn.default)(`affected ${Vn(e)} files`,Object.keys(i).length,!0),m;if(u){let t=e.turboSnap?.bailReason?`${xc(e.turboSnap.bailReason)}\n\n`:``;m=`${`${kn.default.magenta(`The root directory of your project:`)} ${e.turboSnap?.rootPath}\n\n`}${`${kn.default.magenta(`The base directory (The relative path from the root to the storybook config root):`)} ${c}\n\n`}${`${kn.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?`${kn.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${r.s(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 h=kn.default`${e.options.traceChanged===`expanded`?m:``}${n.o} Traced {bold ${f}} to {bold ${p}}`;if(e.options.traceChanged===`compact`){let e=!1;return`${h}:\n${Object.values(i).map(([t,...n])=>n.length===0?t:(e=!0,`${t} + ${n.length} modules`)).map(e=>kn.default`— ${d(e)}`).join(`
`)}${e?kn.default`\nSet {bold ${s}} to {bold 'expanded'} to reveal underlying modules.`:kn.default`\nSet {bold ${s}} to reveal how these files are affected.`}`}let g=(e,t=``)=>{if(!u)return``;let{modules:n}=a[e]||{};if(!n)return``;let r=``;for(let e of n)r+=kn.default`\n${t} ⎸ {dim ${o(e.name)}}`;return r},_=new Set,v=[...e.turboSnap?.tracedPaths||[]].map(t=>{let n=t.split(`
`),r=``;for(let[e,t]of n.entries()){if(e===0){r=kn.default`— ${d(t)} {cyan [changed]}${g(t)}`;continue}let i=``;e===n.length-1&&(_.has(t)?i=kn.default` {yellow [duplicate]}`:_.add(t));let a=` `.repeat(e);r=kn.default`${u?`File Path: ${t}\n\nBase Directory: ${c}\n\n`:``}${r}\n${a}∟ ${d(t)}${i}${g(t,a)}`}return r+kn.default`\n${` `.repeat(n.length)}∟ {cyan [${Vn(e)} index]}`}),y=kn.default`\n\nSet {bold ${s}} to {bold 'expanded'} to reveal underlying modules.`;return`${h}:\n\n${v.join(`
`)}${u?``:y}`};const bc=(e,t)=>kn.default`{bold ${e}}\n`+t.map(e=>` - ${e}`).join(`
`);function xc(e){if(!e)return``;let t=[];return e.changedPackageFiles&&t.push(bc(`Changed Package Files`,e.changedPackageFiles)),e.changedStorybookFiles&&t.push(bc(`Changed Storybook Files`,e.changedStorybookFiles)),e.changedExternalFiles&&t.push(bc(`Changed External Files`,e.changedExternalFiles)),e.changedStaticFiles&&t.push(bc(`Changed Static Files`,e.changedStaticFiles)),t.join(`
`)}const Sc=[/\/webpack\/runtime\//,/^\(webpack\)/],Cc=e=>e.id!==void 0&&e.id!==null&&!Sc.some(t=>t.test(e.name||e.moduleName||``)),wc=e=>{let[,t]=e.match(/\/node_modules\/(@[\w-]+\/[\w-]+)\//)||[];if(t)return t;let[,n]=e.match(/\/node_modules\/([\w-]+)\//)||[];return n};function Tc(e,t,n=t){return!e||e.startsWith(`/virtual:`)?e:r.r(a.default.isAbsolute(e)?a.default.relative(t,e):a.default.join(a.default.relative(t,n),e))}async function Ec(e,t,n,i,o=[]){let{rootPath:s}=e.git||{};if(!s)throw Error(`Failed to determine repository root`);let{projectRoot:c=process.cwd()}=e.storybook||{},l=e.storybook?.configDir??a.default.resolve(c,`.storybook`),u=e.storybook?.staticDirs??[],d=r.n(s,c),{storybookBuildDir:f,untraced:p=[]}=e.options,m=e=>{let t=/\s+(sync|lazy)\s+/g,n=/(\?.*)/g,r=Tc(e,s,c);return n.test(r)&&!t.test(r)?r.replaceAll(n,``):r},h=r.n(s,l),g=u.map(e=>r.n(s,e));e.log.debug(`BASE Directory:`,d),e.log.debug(`Storybook CONFIG Directory:`,h);let _=[a.default.join(l,`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=>m(e)),v=new Map,y=new Map,b=new Map,x=new Map,S=new Set,C=e=>e&&e.startsWith(`${h}/`)&&!_.includes(e)&&!r.c(e);if(t.modules.filter(e=>Cc(e)).map(e=>{let t=m(e.name);v.set(t,e),b.set(e.id,t);let n=wc(e.name);if(n&&(y.has(n)||y.set(n,[]),y.get(n)?.push(t)),e.modules)for(let t of e.modules)v.set(m(t.name),e);let r=e.reasons?.map(e=>e.moduleName).filter(e=>typeof e==`string`).map(e=>m(e)).filter(e=>e&&e!==t);r&&x.set(e.id,r),!C(t)&&x.get(e.id)?.some(e=>_.some(t=>e.startsWith(t)))&&S.add(t)}),S.size===0){let r=/^(.+\/)?generated-stories-entry\.js$/,i=t.modules.find(e=>r.test(e.name)&&!_.includes(m(e.name))),a=i&&m(i.name);throw e.log.error(_c({statsPath:n,storybookDir:h,storybookBuildDir:f,entryFile:a})),Error(`Did not find any CSF globs in preview-stats.json`)}let w=e=>S.has(e),T=e=>g.some(t=>e&&e.startsWith(`${t}/`)),E=[];function D(e){e=e.replace(/\s\+\s\d+\smodules?$/,``);let t=p.find(t=>r.p(t,e));return t?(E.push({filepath:e,glob:t}),!1):!0}function O(e){let t=v.get(e);return t?t.modules?.length?t.modules.map(e=>m(e.name)):[m(t.name)]:[e]}let k=[...o.flatMap(e=>y.get(e)||[]),...i].filter(e=>D(e)),A=new Set,j=new Set,M={},ee=[],te={rootPath:s,baseDir:d,storybookDir:h,staticDirs:g,globs:[...S],modules:[...v.keys()],tracedFiles:k,tracedPaths:A,affectedModuleIds:j,bailReason:void 0},N=k.filter(e=>r.l(e));y.size===0&&o.length>0&&(te.bailReason={changedPackageFiles:[...e.git.changedFiles?.filter(e=>r.u(e))||[],...N],bailSubreason:`nodeModulesMissingInStats`});function P(e,t){return[...t.flatMap(e=>b.get(e)??[]),e]}function ne(e,t=[]){return T(e)?(te.bailReason={changedStaticFiles:O(e)},te.bailPath=P(e,t),!0):C(e)?(te.bailReason={changedStorybookFiles:O(e)},te.bailPath=P(e,t),!0):!1}function F(e,t=[]){if(te.bailReason||w(e)||ne(e,t))return;let{id:n}=v.get(e)||{},r=b.get(n||null);r&&(ne(r,t)||!n||!x.get(n)||M[n]||(ee.push([n,[...t,n.toString()]]),x.get(n)?.some(e=>w(e))&&(j.add(n),A.add([...t,n].map(e=>b.get(e)).join(`
`)))))}for(e.options.traceChanged&&(e.log.debug(`Traced files...`),e.log.debug(k)),k.map(e=>F(e));ee.length>0;){let[t,n]=ee.pop();if(Array.isArray(t)){e.log.debug(`Trace ID is an unexpected value, skipping`);continue}if(!Array.isArray(n)){e.log.debug(`Trace path is an unexpected value, skipping`);continue}M[t]=!0,x.get(t)?.filter(e=>D(e)).map(e=>F(e,n))}let I=Object.fromEntries([...j].map(e=>[String(e),O(b.get(e)||``)]));return e.options.traceChanged&&(e.log.debug(`Affected modules...`),e.log.debug(I)),e.options.traceChanged&&(e.log.info(yc({...e,turboSnap:te,untracedFiles:E},{changedFiles:i,affectedModules:I,modulesByName:Object.fromEntries(v),normalize:m})),e.log.info(``)),te.bailReason?(e.log.warn(Jn({turboSnap:te})),{status:`bailed`,turboSnap:te}):{status:`traced`,onlyStoryFiles:I,turboSnap:te,untracedFiles:E}}async function Dc(e,t,n){let{changedFiles:r=[],packageMetadataChanges:i}=e.git,a,o,s;if(i?.length)if(a=await lc(e).catch(t=>{o=t,s=Kn(t);let{name:n,message:r,stack:i,code:a}=t;e.log.debug({name:n,message:r,stack:i,code:a})}),a){if(!e.options.interactive){let t=a.length>0?`:\n${a.map(e=>` ${e}`).join(`
`)}`:``;e.log.info(`Found ${a.length} changed dependencies${t}`)}}else{e.log.warn(`Could not retrieve dependency changes from lockfiles; checking package.json`);let t=await gc(e,i);if(t.length>0){s&&o&&(s.sentryEventId=Wn(o,{bailSubreason:s.bailSubreason,bailPath:`findChangedDependencies`,additionalTags:await Qn(e,o)}));let n={...e.turboSnap,bailReason:{changedPackageFiles:t,...s}};return e.log.warn(Jn({turboSnap:n})),{status:`bailed`,turboSnap:n}}}await Zn(e,t);let c=await Ec(e,t,n,r,a||[]);return c.status===`bailed`?c:{...c,changedDependencyNames:a}}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return`cache.hit`}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return xn}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return bt}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return`sentry.measurement_unit`}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return`cache.item_size`}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return qn}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return`sentry.custom_span_name`}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ec}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return`sentry.exclusive_time`}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return`sentry.measurement_value`}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`sentry.profile_id`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Dc}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return`cache.key`}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return fe}});
//# sourceMappingURL=v1-DY4e8r-S.cjs.map
//# debugId=f2a5dac5-cac6-5902-8981-3c5a9d0b70e0