Bump berry (#474)

This commit is contained in:
Jaco authored and GitHub committed 2021-05-30 11:42:46 +02:00
1 parent 9f2921791d
commit ab5ae15257
8 files changed
+2594 -2063

No files matched your search

+7 -9
View File
@@ -1,8 +1,7 @@
/* eslint-disable */
module.exports = {
name: "@yarnpkg/plugin-interactive-tools",
factory: function (require) {
var plugin;plugin=(()=>{var __webpack_modules__={7560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>K});function r(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}const i=require("@yarnpkg/cli"),o=require("@yarnpkg/core");var u=n(9245),a=n(7382);const l=(0,a.memo)(({active:e})=>{const t=(0,a.useMemo)(()=>e?"◉":"◯",[e]),n=(0,a.useMemo)(()=>e?"green":"yellow",[e]);return a.createElement(u.Text,{color:n},t)});function s({active:e},t,n){const{stdin:r}=(0,u.useStdin)(),i=(0,a.useCallback)((e,n)=>t(e,n),n);(0,a.useEffect)(()=>{if(e&&r)return r.on("keypress",i),()=>{r.off("keypress",i)}},[e,i,r])}var c;!function(e){e.BEFORE="before",e.AFTER="after"}(c||(c={}));const f=function(e,t,{active:n,minus:r,plus:i,set:o,loop:u=!0}){s({active:n},(n,a)=>{const l=t.indexOf(e);switch(a.name){case r:{const e=l-1;if(u)return void o(t[(t.length+e)%t.length]);if(e<0)return;o(t[e])}break;case i:{const e=l+1;if(u)return void o(t[e%t.length]);if(e>=t.length)return;o(t[e])}}},[t,e,i,o,u])},d=({active:e=!0,children:t=[],radius:n=10,size:r=1,loop:i=!0,onFocusRequest:o,willReachEnd:l})=>{const d=a.Children.map(t,e=>(e=>{if(null===e.key)throw new Error("Expected all children to have a key");return e.key})(e)),p=d[0],[h,v]=(0,a.useState)(p),m=d.indexOf(h);(0,a.useEffect)(()=>{d.includes(h)||v(p)},[t]),(0,a.useEffect)(()=>{l&&m>=d.length-2&&l()},[m]),function({active:e},t,n){s({active:e},(e,n)=>{"tab"===n.name&&(n.shift?t(c.BEFORE):t(c.AFTER))},n)}({active:e&&!!o},e=>{null==o||o(e)},[o]),f(h,d,{active:e,minus:"up",plus:"down",set:v,loop:i});let g=m-n,y=m+n;y>d.length&&(g-=y-d.length,y=d.length),g<0&&(y+=-g,g=0),y>=d.length&&(y=d.length-1);const _=[];for(let n=g;n<=y;++n){const i=d[n],o=e&&i===h;_.push(a.createElement(u.Box,{key:i,height:r},a.createElement(u.Box,{marginLeft:1,marginRight:1},a.createElement(u.Text,null,o?a.createElement(u.Text,{color:"cyan",bold:!0},">"):" ")),a.createElement(u.Box,null,a.cloneElement(t[n],{active:o}))))}return a.createElement(u.Box,{flexDirection:"column",width:"100%"},_)},p=require("readline"),h=a.createContext(null),v=({children:e})=>{const{stdin:t,setRawMode:n}=(0,u.useStdin)();(0,a.useEffect)(()=>{n&&n(!0),t&&(0,p.emitKeypressEvents)(t)},[t,n]);const[r,i]=(0,a.useState)(new Map),o=(0,a.useMemo)(()=>({getAll:()=>r,get:e=>r.get(e),set:(e,t)=>i(new Map([...r,[e,t]]))}),[r,i]);return a.createElement(h.Provider,{value:o,children:e})};function m(e,t){const n=(0,a.useContext)(h);if(null===n)throw new Error("Expected this hook to run with a ministore context attached");if(void 0===e)return n.getAll();const r=(0,a.useCallback)(t=>{n.set(e,t)},[e,n.set]);let i=n.get(e);return void 0===i&&(i=t),[i,r]}async function g(e,t){let n;const{waitUntilExit:r}=(0,u.render)(a.createElement(v,null,a.createElement(e,Object.assign({},t,{useSubmit:e=>{const{exit:t}=(0,u.useApp)();s({active:!0},(r,i)=>{"return"===i.name&&(n=e,t())},[t,e])}}))));return await r(),n}const y=require("clipanion");var _=n(7840),b=n(4410);const w={appId:"OFCNCOG2CU",apiKey:"6fe4476ee5a1832882e326b506d14126",indexName:"npm-search"},E=n.n(b)()(w.appId,w.apiKey).initIndex(w.indexName),D=async(e,t=0)=>await E.search(e,{analyticsTags:["yarn-plugin-interactive-tools"],attributesToRetrieve:["name","version","owner","repository","humanDownloadsLast30Days"],page:t,hitsPerPage:10}),S=["regular","dev","peer"];class C extends i.BaseCommand{async execute(){const e=await o.Configuration.find(this.context.cwd,this.context.plugins),t=()=>a.createElement(u.Box,{flexDirection:"row"},a.createElement(u.Box,{flexDirection:"column",width:48},a.createElement(u.Box,null,a.createElement(u.Text,null,"Press ",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<up>"),"/",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<down>")," to move between packages.")),a.createElement(u.Box,null,a.createElement(u.Text,null,"Press ",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<space>")," to select a package.")),a.createElement(u.Box,null,a.createElement(u.Text,null,"Press ",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<space>")," again to change the target."))),a.createElement(u.Box,{flexDirection:"column"},a.createElement(u.Box,{marginLeft:1},a.createElement(u.Text,null,"Press ",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<enter>")," to install the selected packages.")),a.createElement(u.Box,{marginLeft:1},a.createElement(u.Text,null,"Press ",a.createElement(u.Text,{bold:!0,color:"cyanBright"},"<ctrl+c>")," to abort.")))),n=()=>a.createElement(a.Fragment,null,a.createElement(u.Box,{width:15},a.createElement(u.Text,{bold:!0,underline:!0,color:"gray"},"Owner")),a.createElement(u.Box,{width:11},a.createElement(u.Text,{bold:!0,underline:!0,color:"gray"},"Version")),a.createElement(u.Box,{width:10Line truncated
factory: function (require) {var plugin;plugin=(()=>{var __webpack_modules__={3832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>G});const r=require("@yarnpkg/cli"),i=require("@yarnpkg/core");var o=n(7066),u=n(907);const a=(0,u.memo)(({active:e})=>{const t=(0,u.useMemo)(()=>e?"◉":"◯",[e]),n=(0,u.useMemo)(()=>e?"green":"yellow",[e]);return u.createElement(o.Text,{color:n},t)});function l({active:e},t,n){const{stdin:r}=(0,o.useStdin)(),i=(0,u.useCallback)((e,n)=>t(e,n),n);(0,u.useEffect)(()=>{if(e&&r)return r.on("keypress",i),()=>{r.off("keypress",i)}},[e,i,r])}var s;!function(e){e.BEFORE="before",e.AFTER="after"}(s||(s={}));const c=function(e,t,{active:n,minus:r,plus:i,set:o,loop:u=!0}){l({active:n},(n,a)=>{const l=t.indexOf(e);switch(a.name){case r:{const e=l-1;if(u)return void o(t[(t.length+e)%t.length]);if(e<0)return;o(t[e])}break;case i:{const e=l+1;if(u)return void o(t[e%t.length]);if(e>=t.length)return;o(t[e])}}},[t,e,i,o,u])},f=({active:e=!0,children:t=[],radius:n=10,size:r=1,loop:i=!0,onFocusRequest:a,willReachEnd:f})=>{const d=u.Children.map(t,e=>(e=>{if(null===e.key)throw new Error("Expected all children to have a key");return e.key})(e)),p=d[0],[h,v]=(0,u.useState)(p),m=d.indexOf(h);(0,u.useEffect)(()=>{d.includes(h)||v(p)},[t]),(0,u.useEffect)(()=>{f&&m>=d.length-2&&f()},[m]),function({active:e},t,n){l({active:e},(e,n)=>{"tab"===n.name&&(n.shift?t(s.BEFORE):t(s.AFTER))},n)}({active:e&&!!a},e=>{null==a||a(e)},[a]),c(h,d,{active:e,minus:"up",plus:"down",set:v,loop:i});let g=m-n,y=m+n;y>d.length&&(g-=y-d.length,y=d.length),g<0&&(y+=-g,g=0),y>=d.length&&(y=d.length-1);const _=[];for(let n=g;n<=y;++n){const i=d[n],a=e&&i===h;_.push(u.createElement(o.Box,{key:i,height:r},u.createElement(o.Box,{marginLeft:1,marginRight:1},u.createElement(o.Text,null,a?u.createElement(o.Text,{color:"cyan",bold:!0},">"):" ")),u.createElement(o.Box,null,u.cloneElement(t[n],{active:a}))))}return u.createElement(o.Box,{flexDirection:"column",width:"100%"},_)},d=require("readline"),p=u.createContext(null),h=({children:e})=>{const{stdin:t,setRawMode:n}=(0,o.useStdin)();(0,u.useEffect)(()=>{n&&n(!0),t&&(0,d.emitKeypressEvents)(t)},[t,n]);const[r,i]=(0,u.useState)(new Map),a=(0,u.useMemo)(()=>({getAll:()=>r,get:e=>r.get(e),set:(e,t)=>i(new Map([...r,[e,t]]))}),[r,i]);return u.createElement(p.Provider,{value:a,children:e})};function v(e,t){const n=(0,u.useContext)(p);if(null===n)throw new Error("Expected this hook to run with a ministore context attached");if(void 0===e)return n.getAll();const r=(0,u.useCallback)(t=>{n.set(e,t)},[e,n.set]);let i=n.get(e);return void 0===i&&(i=t),[i,r]}async function m(e,t){let n;const{waitUntilExit:r}=(0,o.render)(u.createElement(h,null,u.createElement(e,{...t,useSubmit:e=>{const{exit:t}=(0,o.useApp)();l({active:!0},(r,i)=>{"return"===i.name&&(n=e,t())},[t,e])}})));return await r(),n}const g=require("clipanion");var y=n(928),_=n(9320);const b={appId:"OFCNCOG2CU",apiKey:"6fe4476ee5a1832882e326b506d14126",indexName:"npm-search"},w=n.n(_)()(b.appId,b.apiKey).initIndex(b.indexName),E=async(e,t=0)=>await w.search(e,{analyticsTags:["yarn-plugin-interactive-tools"],attributesToRetrieve:["name","version","owner","repository","humanDownloadsLast30Days"],page:t,hitsPerPage:10}),D=["regular","dev","peer"];class S extends r.BaseCommand{async execute(){const e=await i.Configuration.find(this.context.cwd,this.context.plugins),t=()=>u.createElement(o.Box,{flexDirection:"row"},u.createElement(o.Box,{flexDirection:"column",width:48},u.createElement(o.Box,null,u.createElement(o.Text,null,"Press ",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<up>"),"/",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<down>")," to move between packages.")),u.createElement(o.Box,null,u.createElement(o.Text,null,"Press ",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<space>")," to select a package.")),u.createElement(o.Box,null,u.createElement(o.Text,null,"Press ",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<space>")," again to change the target."))),u.createElement(o.Box,{flexDirection:"column"},u.createElement(o.Box,{marginLeft:1},u.createElement(o.Text,null,"Press ",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<enter>")," to install the selected packages.")),u.createElement(o.Box,{marginLeft:1},u.createElement(o.Text,null,"Press ",u.createElement(o.Text,{bold:!0,color:"cyanBright"},"<ctrl+c>")," to abort.")))),n=()=>u.createElement(u.Fragment,null,u.createElement(o.Box,{width:15},u.createElement(o.Text,{bold:!0,underline:!0,color:"gray"},"Owner")),u.createElement(o.Box,{width:11},u.createElement(o.Text,{bold:!0,underline:!0,color:"gray"},"Version")),u.createElement(o.Box,{width:10},u.createElement(o.Text,{bold:!0,underline:!0,color:"gray"},"Downloads"))),r=()=>u.createElement(o.Box,{width:17},u.createElement(o.Text,{bold:!0,underline:!0,color:"gray"},"Target")),s=({hit:t,active:n})=>{const[r,a]=v(t.name,null);l({active:n},(e,t)=>{if("space"!==t.name)return;if(!r)return void a(D[0]);constLine truncated
/** @license React v0.24.0
* react-reconciler.production.min.js
*
@@ -11,7 +10,7 @@ var plugin;plugin=(()=>{var __webpack_modules__={7560:(e,t,n)=>{"use strict";n.r
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
e.exports=function t(r){"use strict";var i=n(9381),o=n(7382),u=n(7181);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null}),l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null});var s="function"==typeof Symbol&&Symbol.for,c=s?Symbol.for("react.element"):60103,f=s?Symbol.for("react.portal"):60106,d=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,h=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,m=s?Symbol.for("react.context"):60110,g=s?Symbol.for("react.concurrent_mode"):60111,y=s?Symbol.for("react.forward_ref"):60112,_=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,w=s?Symbol.for("react.memo"):60115,E=s?Symbol.for("react.lazy"):60116;s&&Symbol.for("react.fundamental"),s&&Symbol.for("react.responder"),s&&Symbol.for("react.scope");var D="function"==typeof Symbol&&Symbol.iterator;function S(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"Fragment";case f:return"Portal";case h:return"Profiler";case p:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return"Context.Consumer";case v:return"Context.Provider";case y:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case w:return C(e.type);case E:if(e=1===e._status?e._result:null)return C(e)}return null}function k(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function T(e){if(k(e)!==e)throw Error(a(188))}function x(e){var t=e.alternate;if(!t){if(null===(t=k(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return T(i),e;if(o===r)return T(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u){for(l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function A(e){if(!(e=x(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var O=r.getPublicInstance,P=r.getRootHostContext,I=r.getChildHostContext,N=r.prepareForCommit,M=r.resetAfterCommit,R=r.createInstance,F=r.appendInitialChild,L=r.finalizeInitialChildren,B=r.prepareUpdate,j=r.shouldSetTextContent,U=r.shouldDeprioritizeSubtree,z=r.createTextInstance,W=r.setTimeout,H=r.clearTimeout,V=r.noTimeout,q=r.isPrimaryRenderer,G=r.supportsMutation,$=r.supportsPersistence,Y=r.supportsHydration,K=r.appendChild,X=r.appendChildToContainer,Q=r.commitTextUpdate,J=r.commitMount,Z=r.commitUpdate,ee=r.insertBefore,te=r.insertInContainerBefore,ne=r.removeChild,re=r.removeChildFromContainer,ie=r.resetTextContent,oe=r.hideInstance,ue=r.hideTextInstance,ae=r.unhideInstance,le=r.unhideTextInstance,se=r.cloneInstance,ce=r.createContainerChildSet,fe=r.appendChildToContainerChildSet,de=r.finalizeContainerChildren,pe=r.replaceContainerChildren,he=r.cloneHiddenInstance,ve=r.cloneHiddenTextInstance,me=r.canHydrateInstance,ge=r.canHydrateTextInstance,ye=r.isSuspenseInstancePending,_e=r.isSuspenseInstanceFallback,be=r.getNextHydratableSibling,we=r.getFirstHydratableChild,Ee=r.hydrateInstance,De=r.hydrateTextInstance,Se=r.getNextHydratableInstanceAfterSuspenseInstance,Ce=r.commitHydratedContainer,ke=r.commitHydratedSuspenseInstance,Te=/^(.*)[\\\/]/;function xe(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=C(e.type);n=null,r&&(n=C(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Te,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}new Set;var Ae=[],Oe=-1;function Pe(e){0>Oe||(e.current=Ae[Oe],Ae[Oe]=null,Oe--)}function Ie(e,t){Oe++,Ae[Oe]=e.current,e.current=t}var Ne={},Me={current:Ne},Re={current:!1},Fe=Ne;funcLine truncated
e.exports=function t(r){"use strict";var i=n(518),o=n(907),u=n(769);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null}),l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null});var s="function"==typeof Symbol&&Symbol.for,c=s?Symbol.for("react.element"):60103,f=s?Symbol.for("react.portal"):60106,d=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,h=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,m=s?Symbol.for("react.context"):60110,g=s?Symbol.for("react.concurrent_mode"):60111,y=s?Symbol.for("react.forward_ref"):60112,_=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,w=s?Symbol.for("react.memo"):60115,E=s?Symbol.for("react.lazy"):60116;s&&Symbol.for("react.fundamental"),s&&Symbol.for("react.responder"),s&&Symbol.for("react.scope");var D="function"==typeof Symbol&&Symbol.iterator;function S(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"Fragment";case f:return"Portal";case h:return"Profiler";case p:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return"Context.Consumer";case v:return"Context.Provider";case y:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case w:return C(e.type);case E:if(e=1===e._status?e._result:null)return C(e)}return null}function k(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function T(e){if(k(e)!==e)throw Error(a(188))}function x(e){var t=e.alternate;if(!t){if(null===(t=k(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return T(i),e;if(o===r)return T(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u){for(l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function A(e){if(!(e=x(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var O=r.getPublicInstance,P=r.getRootHostContext,I=r.getChildHostContext,M=r.prepareForCommit,N=r.resetAfterCommit,R=r.createInstance,F=r.appendInitialChild,L=r.finalizeInitialChildren,B=r.prepareUpdate,j=r.shouldSetTextContent,U=r.shouldDeprioritizeSubtree,z=r.createTextInstance,W=r.setTimeout,H=r.clearTimeout,V=r.noTimeout,q=r.isPrimaryRenderer,G=r.supportsMutation,$=r.supportsPersistence,Y=r.supportsHydration,K=r.appendChild,X=r.appendChildToContainer,Q=r.commitTextUpdate,J=r.commitMount,Z=r.commitUpdate,ee=r.insertBefore,te=r.insertInContainerBefore,ne=r.removeChild,re=r.removeChildFromContainer,ie=r.resetTextContent,oe=r.hideInstance,ue=r.hideTextInstance,ae=r.unhideInstance,le=r.unhideTextInstance,se=r.cloneInstance,ce=r.createContainerChildSet,fe=r.appendChildToContainerChildSet,de=r.finalizeContainerChildren,pe=r.replaceContainerChildren,he=r.cloneHiddenInstance,ve=r.cloneHiddenTextInstance,me=r.canHydrateInstance,ge=r.canHydrateTextInstance,ye=r.isSuspenseInstancePending,_e=r.isSuspenseInstanceFallback,be=r.getNextHydratableSibling,we=r.getFirstHydratableChild,Ee=r.hydrateInstance,De=r.hydrateTextInstance,Se=r.getNextHydratableInstanceAfterSuspenseInstance,Ce=r.commitHydratedContainer,ke=r.commitHydratedSuspenseInstance,Te=/^(.*)[\\\/]/;function xe(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=C(e.type);n=null,r&&(n=C(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Te,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}new Set;var Ae=[],Oe=-1;function Pe(e){0>Oe||(e.current=Ae[Oe],Ae[Oe]=null,Oe--)}function Ie(e,t){Oe++,Ae[Oe]=e.current,e.current=t}var Me={},Ne={current:Me},Re={current:!1},Fe=Me;functioLine truncated
/**
* @license
* Lodash <https://lodash.com/>
@@ -19,12 +18,12 @@ e.exports=function t(r){"use strict";var i=n(9381),o=n(7382),u=n(7181);function
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/e=n.nmd(e),function(){var i="Expected a function",o="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",h="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",D="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",T="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",O="[object Uint16Array]",P="[object Uint32Array]",I=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,L=RegExp(R.source),B=RegExp(F.source),j=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,G=RegExp(q.source),$=/^\s+|\s+$/g,Y=/^\s+/,K=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",pe="[\\ud800-\\udfff]",he="["+de+"]",ve="["+fe+"]",me="\\d+",ge="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+ye+"|"+_e+")",ke="(?:"+Se+"|"+_e+")",Te="(?:"+ve+"|"+be+")"+"?",xe="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[we,Ee,De].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Ae="(?:"+[ge,Ee,De].join("|")+")"+xe,Oe="(?:"+[we+ve+"?",ve,Ee,De,pe].join("|")+")",Pe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Ne=RegExp(be+"(?="+be+")|"+Oe+xe,"g"),Me=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Se,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Se+Ce,"$"].join("|")+")",Se+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ae].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Fe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["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"],Be=-1,je={};je[S]=je[C]=je[k]=je[T]=je[x]=je[A]=je["[object Uint8ClampedArray]"]=je[O]=je[P]=!0,je[a]=je[l]=je[E]=je[s]=je[D]=je[c]=je[f]=je[d]=je[h]=je[v]=je[m]=je[g]=je[y]=je[_]=je[w]=!1;var Ue={};Ue[a]=Ue[l]=Ue[E]=Ue[D]=Ue[s]=Ue[c]=Ue[S]=Ue[C]=Ue[k]=Ue[T]=Ue[x]=Ue[h]=Ue[v]=Ue[m]=Ue[g]=Ue[y]=Ue[_]=Ue[b]=Ue[A]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[P]=!0,Ue[f]=Ue[d]=Ue[w]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,He=parseInt,Ve="object"==typeof global&&global&&global.Object===Object&&global,qe="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ve||qe||Function("return this")(),$e=t&&!t.nodeType&&t,Ye=$e&&e&&!e.nodeType&&e,Ke=Ye&&Ye.exports===$e,Xe=Ke&&Ve.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Je=Qe&&Qe.isArrayBuffer,Ze=Qe&&Qe.isDate,et=Qe&&Qe.isMap,tt=Qe&&Qe.isRegExp,nt=Qe&&Qe.isSet,rt=Qe&&Qe.isTypedArray;function it(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 ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?Line truncated
*/e=n.nmd(e),function(){var i="Expected a function",o="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",h="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",D="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",T="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",O="[object Uint16Array]",P="[object Uint32Array]",I=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,L=RegExp(R.source),B=RegExp(F.source),j=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,G=RegExp(q.source),$=/^\s+|\s+$/g,Y=/^\s+/,K=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",pe="[\\ud800-\\udfff]",he="["+de+"]",ve="["+fe+"]",me="\\d+",ge="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+ye+"|"+_e+")",ke="(?:"+Se+"|"+_e+")",Te="(?:"+ve+"|"+be+")"+"?",xe="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[we,Ee,De].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Ae="(?:"+[ge,Ee,De].join("|")+")"+xe,Oe="(?:"+[we+ve+"?",ve,Ee,De,pe].join("|")+")",Pe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Me=RegExp(be+"(?="+be+")|"+Oe+xe,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Se,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Se+Ce,"$"].join("|")+")",Se+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ae].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Fe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["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"],Be=-1,je={};je[S]=je[C]=je[k]=je[T]=je[x]=je[A]=je["[object Uint8ClampedArray]"]=je[O]=je[P]=!0,je[a]=je[l]=je[E]=je[s]=je[D]=je[c]=je[f]=je[d]=je[h]=je[v]=je[m]=je[g]=je[y]=je[_]=je[w]=!1;var Ue={};Ue[a]=Ue[l]=Ue[E]=Ue[D]=Ue[s]=Ue[c]=Ue[S]=Ue[C]=Ue[k]=Ue[T]=Ue[x]=Ue[h]=Ue[v]=Ue[m]=Ue[g]=Ue[y]=Ue[_]=Ue[b]=Ue[A]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[P]=!0,Ue[f]=Ue[d]=Ue[w]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,He=parseInt,Ve="object"==typeof global&&global&&global.Object===Object&&global,qe="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ve||qe||Function("return this")(),$e=t&&!t.nodeType&&t,Ye=$e&&e&&!e.nodeType&&e,Ke=Ye&&Ye.exports===$e,Xe=Ke&&Ve.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Je=Qe&&Qe.isArrayBuffer,Ze=Qe&&Qe.isDate,et=Qe&&Qe.isMap,tt=Qe&&Qe.isRegExp,nt=Qe&&Qe.isSet,rt=Qe&&Qe.isTypedArray;function it(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 ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?Line truncated
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var u,a,l=i(e),s=1;s<arguments.length;s++){for(var c in u=Object(arguments[s]))n.call(u,c)&&(l[c]=u[c]);if(t){a=t(u);for(var f=0;f<a.length;f++)r.call(u,a[f])&&(l[a[f]]=u[a[f]])}}return l}},834:(e,t,n)=>{"use strict";const r=n(1573),i=new WeakMap,o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,o=!1,u=0;const a=e.displayName||e.name||"<anonymous>",l=function(...r){if(i.set(l,++u),o){if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n}return o=!0,n=e.apply(this,r),e=null,n};return r(l,e),i.set(l,u),l};e.exports=o,e.exports.default=o,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},8070:(e,t,n)=>{"use strict";const r=n(2413),i=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let o={};e.exports=e=>{const t=new r.PassThrough,n=new r.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const u=new console.Console(t,n);for(const e of i)o[e]=console[e],console[e]=u[e];return()=>{for(const e of i)console[e]=o[e];o={}}}},5187:e=>{window,e.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.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=20)}([function(e,t,n){"use strict";e.exports=n(12)},function(e,t,n){"use strict";
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var u,a,l=i(e),s=1;s<arguments.length;s++){for(var c in u=Object(arguments[s]))n.call(u,c)&&(l[c]=u[c]);if(t){a=t(u);for(var f=0;f<a.length;f++)r.call(u,a[f])&&(l[a[f]]=u[a[f]])}}return l}},1689:(e,t,n)=>{"use strict";const r=n(8891),i=new WeakMap,o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,o=!1,u=0;const a=e.displayName||e.name||"<anonymous>",l=function(...r){if(i.set(l,++u),o){if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n}return o=!0,n=e.apply(this,r),e=null,n};return r(l,e),i.set(l,u),l};e.exports=o,e.exports.default=o,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},5602:(e,t,n)=>{"use strict";const r=n(2413),i=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let o={};e.exports=e=>{const t=new r.PassThrough,n=new r.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const u=new console.Console(t,n);for(const e of i)o[e]=console[e],console[e]=u[e];return()=>{for(const e of i)console[e]=o[e];o={}}}},414:e=>{window,e.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.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=20)}([function(e,t,n){"use strict";e.exports=n(12)},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@@ -55,7 +54,7 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(1),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113,t.unstable_SuspenseList=60120;var c=60115,f=60116,d=60121;if(t.unstable_DebugTracingMode=60129,t.unstable_LegacyHidden=60131,"function"==typeof Symbol&&Symbol.for){var p=Symbol.for;o=p("react.element"),u=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),t.Suspense=p("react.suspense"),t.unstable_SuspenseList=p("react.suspense_list"),c=p("react.memo"),f=p("react.lazy"),d=p("react.block"),t.unstable_DebugTracingMode=p("react.debug_trace_mode"),t.unstable_LegacyHidden=p("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function _(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=y.prototype;var w=b.prototype=new _;w.constructor=b,i(w,y.prototype),w.isPureReactComponent=!0;var E={current:null},D=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)D.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:E.current}}function k(e){return"object"===r(e)&&null!==e&&e.$$typeof===o}var T=/\/+/g;function x(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,i,a){var l=r(e);"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case u:s=!0}}if(s)return a=a(s=e),e=""===i?"."+x(s,0):i,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){var f=i+x(l=e[c],c);s+=A(l,t,n,f,a)}else if("function"==typeof(f=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=f.call(e),c=0;!(l=e.next()).done;)s+=A(l=l.value,t,n,f=i+x(l,c++),a);else if("object"===l)throw t=""+e,Error(v(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function I(e){return{$$typeof:d,_data:e.load.apply(null,e.args),_render:e.render}}var N={current:null};function M(){var e=N.current;if(null===e)throw Error(v(321));return e}var R={transition:0},F={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:R,ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(v(143));return e}},t.Component=y,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=i({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.cuLine truncated
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(1),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113,t.unstable_SuspenseList=60120;var c=60115,f=60116,d=60121;if(t.unstable_DebugTracingMode=60129,t.unstable_LegacyHidden=60131,"function"==typeof Symbol&&Symbol.for){var p=Symbol.for;o=p("react.element"),u=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),t.Suspense=p("react.suspense"),t.unstable_SuspenseList=p("react.suspense_list"),c=p("react.memo"),f=p("react.lazy"),d=p("react.block"),t.unstable_DebugTracingMode=p("react.debug_trace_mode"),t.unstable_LegacyHidden=p("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function _(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=y.prototype;var w=b.prototype=new _;w.constructor=b,i(w,y.prototype),w.isPureReactComponent=!0;var E={current:null},D=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)D.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:E.current}}function k(e){return"object"===r(e)&&null!==e&&e.$$typeof===o}var T=/\/+/g;function x(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,i,a){var l=r(e);"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case u:s=!0}}if(s)return a=a(s=e),e=""===i?"."+x(s,0):i,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){var f=i+x(l=e[c],c);s+=A(l,t,n,f,a)}else if("function"==typeof(f=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=f.call(e),c=0;!(l=e.next()).done;)s+=A(l=l.value,t,n,f=i+x(l,c++),a);else if("object"===l)throw t=""+e,Error(v(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function I(e){return{$$typeof:d,_data:e.load.apply(null,e.args),_render:e.render}}var M={current:null};function N(){var e=M.current;if(null===e)throw Error(v(321));return e}var R={transition:0},F={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:R,ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(v(143));return e}},t.Component=y,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=i({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.cuLine truncated
/** @license React v16.13.1
* react.production.min.js
*
@@ -63,7 +62,7 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(9381),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var D=E.prototype=new w;D.constructor=E,r(D,b.prototype),D.isPureReactComponent=!0;var S={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)C.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,O=[];function P(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case u:l=!0}}if(l)return r(i,t,""===n?"."+M(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+M(a=t[s],s);l+=e(a,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+M(a,s++),r,i);else if("object"===a)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),N(e,F,t=P(t,o,r,i)),I(t)}var B={current:null};function j(){var e=B.current;if(null===e)throw Error(g(321));return e}var U={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,R,t=P(null,null,t,n)),I(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(g(143));return e}},t.Component=b,t.Fragment=a,t.Profiler=s,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)C.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,Line truncated
*/var r=n(518),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var D=E.prototype=new w;D.constructor=E,r(D,b.prototype),D.isPureReactComponent=!0;var S={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)C.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,O=[];function P(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case u:l=!0}}if(l)return r(i,t,""===n?"."+N(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+N(a=t[s],s);l+=e(a,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+N(a,s++),r,i);else if("object"===a)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),M(e,F,t=P(t,o,r,i)),I(t)}var B={current:null};function j(){var e=B.current;if(null===e)throw Error(g(321));return e}var U={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,R,t=P(null,null,t,n)),I(t)},count:function(e){return M(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(g(143));return e}},t.Component=b,t.Fragment=a,t.Profiler=s,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)C.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,tLine truncated
/** @license React v0.18.0
* scheduler.production.min.js
*
@@ -71,7 +70,6 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n,r,i,o,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,s=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(e){throw setTimeout(s,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(s,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var g=!1,y=null,_=-1,b=5,w=0;o=function(){return t.unstable_now()>=w},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+b;try{y(!0,e)?D.postMessage(null):(g=!1,y=null)}catch(e){throw D.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,D.postMessage(null))},r=function(e,n){_=p((function(){e(t.unstable_now())}),n)},i=function(){h(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,u=e[o],a=o+1,l=e[a];if(void 0!==u&&0>T(u,n))void 0!==l&&0>T(l,u)?(e[r]=l,e[a]=n,r=a):(e[r]=u,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],A=[],O=1,P=null,I=3,N=!1,M=!1,R=!1;function F(e){for(var t=C(A);null!==t;){if(null===t.callback)k(A);else{if(!(t.startTime<=e))break;k(A),t.sortIndex=t.expirationTime,S(x,t)}t=C(A)}}function L(e){if(R=!1,F(e),!M)if(null!==C(x))M=!0,n(B);else{var t=C(A);null!==t&&r(L,t.startTime-e)}}function B(e,n){M=!1,R&&(R=!1,i()),N=!0;var u=I;try{for(F(n),P=C(x);null!==P&&(!(P.expirationTime>n)||e&&!o());){var a=P.callback;if(null!==a){P.callback=null,I=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===C(x)&&k(x),F(n)}else k(x);P=C(x)}if(null!==P)var s=!0;else{var c=C(A);null!==c&&r(L,c.startTime-n),s=!1}return s}finally{P=null,I=u,N=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,u){var a=t.unstable_now();if("object"==typeof u&&null!==u){var l=u.delay;l="number"==typeof l&&0<l?a+l:a,u="number"==typeof u.timeout?u.timeout:j(e)}else u=j(e),l=a;return e={id:O++,callback:o,priorityLevel:e,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>a?(e.sortIndex=l,S(A,e),null===C(x)&&e===C(A)&&(R?i():R=!0,r(L,l-a))):(e.sortIndex=u,S(x,e),M||N||(M=!0,n(B))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(x);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||o()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){M||N||(M=!0,n(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return C(x)},t.unstable_Profiling=null},7181:(e,t,n)=>{"use strict";e.exports=n(706)},6458:(e,t,n)=>{var r,i=n(2357),o=n(8082),u=n(8614);function a(){c&&(c=!1,o.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof u&&(u=u.EventEmitter),process.__sig Line truncated
return plugin;
*/var n,r,i,o,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,s=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(e){throw setTimeout(s,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(s,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var g=!1,y=null,_=-1,b=5,w=0;o=function(){return t.unstable_now()>=w},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+b;try{y(!0,e)?D.postMessage(null):(g=!1,y=null)}catch(e){throw D.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,D.postMessage(null))},r=function(e,n){_=p((function(){e(t.unstable_now())}),n)},i=function(){h(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,u=e[o],a=o+1,l=e[a];if(void 0!==u&&0>T(u,n))void 0!==l&&0>T(l,u)?(e[r]=l,e[a]=n,r=a):(e[r]=u,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],A=[],O=1,P=null,I=3,M=!1,N=!1,R=!1;function F(e){for(var t=C(A);null!==t;){if(null===t.callback)k(A);else{if(!(t.startTime<=e))break;k(A),t.sortIndex=t.expirationTime,S(x,t)}t=C(A)}}function L(e){if(R=!1,F(e),!N)if(null!==C(x))N=!0,n(B);else{var t=C(A);null!==t&&r(L,t.startTime-e)}}function B(e,n){N=!1,R&&(R=!1,i()),M=!0;var u=I;try{for(F(n),P=C(x);null!==P&&(!(P.expirationTime>n)||e&&!o());){var a=P.callback;if(null!==a){P.callback=null,I=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===C(x)&&k(x),F(n)}else k(x);P=C(x)}if(null!==P)var s=!0;else{var c=C(A);null!==c&&r(L,c.startTime-n),s=!1}return s}finally{P=null,I=u,M=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,u){var a=t.unstable_now();if("object"==typeof u&&null!==u){var l=u.delay;l="number"==typeof l&&0<l?a+l:a,u="number"==typeof u.timeout?u.timeout:j(e)}else u=j(e),l=a;return e={id:O++,callback:o,priorityLevel:e,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>a?(e.sortIndex=l,S(A,e),null===C(x)&&e===C(A)&&(R?i():R=!0,r(L,l-a))):(e.sortIndex=u,S(x,e),N||M||(N=!0,n(B))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(x);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||o()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){N||M||(N=!0,n(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return C(x)},t.unstable_Profiling=null},769:(e,t,n)=>{"use strict";e.exports=n(8272)},778:(e,t,n)=>{var r,i=n(2357),o=n(2812),u=n(8614);function a(){c&&(c=!1,o.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof u&&(u=u.EventEmitter),process.__sign Line truncated
}
};
+7 -9
View File
@@ -1,8 +1,7 @@
/* eslint-disable */
module.exports = {
name: "@yarnpkg/plugin-version",
factory: function (require) {
var plugin;plugin=(()=>{var __webpack_modules__={4952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});const r=require("@yarnpkg/core");function i(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}const o=require("@yarnpkg/cli"),u=require("clipanion"),a=require("@yarnpkg/fslib"),l=require("@yarnpkg/parsers"),s=require("semver");var c=n.n(s);const f=/^(>=|[~^]|)(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-]+)*)?$/;var d;async function p(e){const t=new Map,n=e.configuration.get("deferredVersionFolder");if(!a.xfs.existsSync(n))return new Map;const i=await a.xfs.readdirPromise(n);for(const o of i){if(!o.endsWith(".yml"))continue;const i=a.ppath.join(n,o),u=await a.xfs.readFilePromise(i,"utf8"),s=(0,l.parseSyml)(u);for(const[n,o]of Object.entries(s.releases||{})){const u=r.structUtils.parseIdent(n),l=e.tryWorkspaceByIdent(u);if(null===l)throw new Error(`Assertion failed: Expected a release definition file to only reference existing workspaces (${a.ppath.basename(i)} references ${n})`);if(null===l.manifest.version)throw new Error(`Assertion failed: Expected the workspace to have a version (${r.structUtils.prettyLocator(e.configuration,l.anchoredLocator)})`);const s=t.get(l),f=g(l.manifest.version,o);if(null===f)throw new Error(`Assertion failed: Expected ${l.manifest.version} to support being bumped via strategy ${o}`);const d=void 0!==s?c().gt(f,s)?f:s:f;t.set(l,d)}}return t}async function h(e,{allowEmpty:t=!1}={}){const n=e.configuration;if(null===n.projectCwd)throw new u.UsageError("This command can only be run from within a Yarn project");const i=await async function(e){let t,n=null,r=e;do{t=r,await a.xfs.existsPromise(a.ppath.join(t,".git"))&&(n=t),r=a.ppath.dirname(t)}while(null===n&&r!==t);return n}(n.projectCwd),o=null!==i?await async function(e,{baseRefs:t}){if(0===t.length)throw new u.UsageError("Can't run this command with zero base refs specified.");const n=[];for(const i of t){const{code:t}=await r.execUtils.execvp("git",["merge-base",i,"HEAD"],{cwd:e});0===t&&n.push(i)}if(0===n.length)throw new u.UsageError("No ancestor could be found between any of HEAD and "+t.join(", "));const{stdout:i}=await r.execUtils.execvp("git",["merge-base","HEAD",...n],{cwd:e,strict:!0}),o=i.trim(),{stdout:a}=await r.execUtils.execvp("git",["show","--quiet","--pretty=format:%s",o],{cwd:e,strict:!0});return{hash:o,title:a.trim()}}(i,{baseRefs:n.get("changesetBaseRefs")}):null,s=null!==i?await async function(e,{base:t,project:n}){const i=r.miscUtils.buildIgnorePattern(n.configuration.get("changesetIgnorePatterns")),{stdout:o}=await r.execUtils.execvp("git",["diff","--name-only",""+t],{cwd:e,strict:!0}),u=o.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(t=>a.ppath.resolve(e,a.npath.toPortablePath(t))),{stdout:l}=await r.execUtils.execvp("git",["ls-files","--others","--exclude-standard"],{cwd:e,strict:!0}),s=l.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(t=>a.ppath.resolve(e,a.npath.toPortablePath(t))),c=[...new Set([...u,...s].sort())];return i?c.filter(e=>!a.ppath.relative(n.cwd,e).match(i)):c}(i,{base:o.hash,project:e}):[],c=n.get("deferredVersionFolder"),f=s.filter(e=>null!==a.ppath.contains(c,e));if(f.length>1)throw new u.UsageError("Your current branch contains multiple versioning files; this isn't supported:\n- "+f.join("\n- "));const p=new Set(r.miscUtils.mapAndFilter(s,t=>{const n=e.tryWorkspaceByFilePath(t);return null===n?r.miscUtils.mapAndFilter.skip:n}));if(0===f.length&&0===p.size&&!t)return null;const h=1===f.length?f[0]:a.ppath.join(c,r.hashUtils.makeHash(Math.random().toString()).slice(0,8)+".yml"),v=a.xfs.existsSync(h)?await a.xfs.readFilePromise(h,"utf8"):"{}",m=(0,l.parseSyml)(v),g=new Map;for(const t of m.declined||[]){const n=r.structUtils.parseIdent(t),i=e.getWorkspaceByIdent(n);g.set(i,d.DECLINE)}for(const[t,n]of Object.entries(m.releases||{})){const i=r.structUtils.parseIdent(t),o=e.getWorkspaceByIdent(i);g.set(o,n)}return{project:e,root:i,baseHash:null!==o?o.hash:null,baseTitle:null!==o?o.title:null,changedFiles:new Set(s),changedWorkspaces:p,releaseRoots:new Set([...p].filter(e=>null!==e.manifest.version)),releases:g,async saveAll(){const t={},n=[],i=[];for(const o of e.workspaces){if(null===o.manifest.version)continue;const e=r.structUtils.stringifyIdent(o.locator),u=g.get(o);u===d.DECLINE?n.push(e):void 0!==u?t[e]=u:p.has(o)&&i.push(e)}await a.xfs.mkdirPromise(a.ppath.dirname(h),{recursive:!0}),await a.xfs.changeFilePromise(h,(0,l.stringifySyml)(new l.stringifySyml.PreserveOrdering({releases:Object.keys(t).length>0?t:void 0,declined:n.length>0?n:void 0,undecided:i.length>0?i:void 0})))}}}function v(e){const t=new Set;for(consLine truncated
factory: function (require) {var plugin;plugin=(()=>{var __webpack_modules__={3712:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});const r=require("@yarnpkg/core"),i=require("@yarnpkg/cli"),o=require("clipanion"),u=require("@yarnpkg/fslib"),a=require("@yarnpkg/parsers"),l=require("semver");var s=n.n(l);const c=/^(>=|[~^]|)(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-]+)*)?$/;var f;async function d(e,{prerelease:t=null}={}){var n;let i=new Map;const o=e.configuration.get("deferredVersionFolder");if(!u.xfs.existsSync(o))return new Map;const l=await u.xfs.readdirPromise(o);for(const t of l){if(!t.endsWith(".yml"))continue;const l=u.ppath.join(o,t),c=await u.xfs.readFilePromise(l,"utf8"),f=(0,a.parseSyml)(c);for(const[t,o]of Object.entries(f.releases||{})){const a=r.structUtils.parseIdent(t),c=e.tryWorkspaceByIdent(a);if(null===c)throw new Error(`Assertion failed: Expected a release definition file to only reference existing workspaces (${u.ppath.basename(l)} references ${t})`);if(null===c.manifest.version)throw new Error(`Assertion failed: Expected the workspace to have a version (${r.structUtils.prettyLocator(e.configuration,c.anchoredLocator)})`);const f=null!==(n=c.manifest.raw.stableVersion)&&void 0!==n?n:c.manifest.version,d=i.get(c),p=m(f,o);if(null===p)throw new Error(`Assertion failed: Expected ${f} to support being bumped via strategy ${o}`);const h=void 0!==d?s().gt(p,d)?p:d:p;i.set(c,h)}}return t&&(i=new Map([...i].map(([e,n])=>[e,_(n,{current:e.manifest.version,prerelease:t})]))),i}async function p(e,{allowEmpty:t=!1}={}){const n=e.configuration;if(null===n.projectCwd)throw new o.UsageError("This command can only be run from within a Yarn project");const i=await async function(e){let t,n=null,r=e;do{t=r,await u.xfs.existsPromise(u.ppath.join(t,".git"))&&(n=t),r=u.ppath.dirname(t)}while(null===n&&r!==t);return n}(n.projectCwd),l=null!==i?await async function(e,{baseRefs:t}){if(0===t.length)throw new o.UsageError("Can't run this command with zero base refs specified.");const n=[];for(const i of t){const{code:t}=await r.execUtils.execvp("git",["merge-base",i,"HEAD"],{cwd:e});0===t&&n.push(i)}if(0===n.length)throw new o.UsageError("No ancestor could be found between any of HEAD and "+t.join(", "));const{stdout:i}=await r.execUtils.execvp("git",["merge-base","HEAD",...n],{cwd:e,strict:!0}),u=i.trim(),{stdout:a}=await r.execUtils.execvp("git",["show","--quiet","--pretty=format:%s",u],{cwd:e,strict:!0});return{hash:u,title:a.trim()}}(i,{baseRefs:n.get("changesetBaseRefs")}):null,s=null!==i?await async function(e,{base:t,project:n}){const i=r.miscUtils.buildIgnorePattern(n.configuration.get("changesetIgnorePatterns")),{stdout:o}=await r.execUtils.execvp("git",["diff","--name-only",""+t],{cwd:e,strict:!0}),a=o.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(t=>u.ppath.resolve(e,u.npath.toPortablePath(t))),{stdout:l}=await r.execUtils.execvp("git",["ls-files","--others","--exclude-standard"],{cwd:e,strict:!0}),s=l.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(t=>u.ppath.resolve(e,u.npath.toPortablePath(t))),c=[...new Set([...a,...s].sort())];return i?c.filter(e=>!u.ppath.relative(n.cwd,e).match(i)):c}(i,{base:l.hash,project:e}):[],c=n.get("deferredVersionFolder"),d=s.filter(e=>null!==u.ppath.contains(c,e));if(d.length>1)throw new o.UsageError("Your current branch contains multiple versioning files; this isn't supported:\n- "+d.map(e=>u.npath.fromPortablePath(e)).join("\n- "));const p=new Set(r.miscUtils.mapAndFilter(s,t=>{const n=e.tryWorkspaceByFilePath(t);return null===n?r.miscUtils.mapAndFilter.skip:n}));if(0===d.length&&0===p.size&&!t)return null;const h=1===d.length?d[0]:u.ppath.join(c,r.hashUtils.makeHash(Math.random().toString()).slice(0,8)+".yml"),v=u.xfs.existsSync(h)?await u.xfs.readFilePromise(h,"utf8"):"{}",m=(0,a.parseSyml)(v),g=new Map;for(const t of m.declined||[]){const n=r.structUtils.parseIdent(t),i=e.getWorkspaceByIdent(n);g.set(i,f.DECLINE)}for(const[t,n]of Object.entries(m.releases||{})){const i=r.structUtils.parseIdent(t),o=e.getWorkspaceByIdent(i);g.set(o,n)}return{project:e,root:i,baseHash:null!==l?l.hash:null,baseTitle:null!==l?l.title:null,changedFiles:new Set(s),changedWorkspaces:p,releaseRoots:new Set([...p].filter(e=>null!==e.manifest.version)),releases:g,async saveAll(){const t={},n=[],i=[];for(const o of e.workspaces){if(null===o.manifest.version)continue;const e=r.structUtils.stringifyIdent(o.locator),u=g.get(o);u===f.DECLINE?n.push(e):void 0!==u?t[e]=u:p.has(o)&&i.push(e)}await u.xfs.mkdirPromise(u.ppath.dirname(h),{recursive:!0}),await u.xfs.changeFilePromise(h,(0,a.stringifySyml)(new a.stringifySyml.PreserveOrdering({releases:Object.keys(t).length>0?t:void 0,declined:n.length>0?n:void 0,undecided:i.length>0?i:void 0})))}}}function h(e){const t=new Set;for(const n of e.changedWorkspaces)null!==n.manifest.version&&(e.releases.has(n)||t.add(n));return t}function v(Line truncated
/** @license React v0.24.0
* react-reconciler.production.min.js
*
@@ -11,7 +10,7 @@ var plugin;plugin=(()=>{var __webpack_modules__={4952:(e,t,n)=>{"use strict";n.r
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
e.exports=function t(r){"use strict";var i=n(9381),o=n(7382),u=n(7181);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null}),l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null});var s="function"==typeof Symbol&&Symbol.for,c=s?Symbol.for("react.element"):60103,f=s?Symbol.for("react.portal"):60106,d=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,h=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,m=s?Symbol.for("react.context"):60110,g=s?Symbol.for("react.concurrent_mode"):60111,_=s?Symbol.for("react.forward_ref"):60112,y=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,w=s?Symbol.for("react.memo"):60115,E=s?Symbol.for("react.lazy"):60116;s&&Symbol.for("react.fundamental"),s&&Symbol.for("react.responder"),s&&Symbol.for("react.scope");var D="function"==typeof Symbol&&Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}function k(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"Fragment";case f:return"Portal";case h:return"Profiler";case p:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return"Context.Consumer";case v:return"Context.Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case w:return k(e.type);case E:if(e=1===e._status?e._result:null)return k(e)}return null}function S(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function T(e){if(S(e)!==e)throw Error(a(188))}function x(e){var t=e.alternate;if(!t){if(null===(t=S(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return T(i),e;if(o===r)return T(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u){for(l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function A(e){if(!(e=x(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var O=r.getPublicInstance,M=r.getRootHostContext,I=r.getChildHostContext,R=r.prepareForCommit,N=r.resetAfterCommit,P=r.createInstance,F=r.appendInitialChild,L=r.finalizeInitialChildren,B=r.prepareUpdate,U=r.shouldSetTextContent,j=r.shouldDeprioritizeSubtree,z=r.createTextInstance,W=r.setTimeout,H=r.clearTimeout,V=r.noTimeout,$=r.isPrimaryRenderer,G=r.supportsMutation,q=r.supportsPersistence,Y=r.supportsHydration,X=r.appendChild,K=r.appendChildToContainer,J=r.commitTextUpdate,Q=r.commitMount,Z=r.commitUpdate,ee=r.insertBefore,te=r.insertInContainerBefore,ne=r.removeChild,re=r.removeChildFromContainer,ie=r.resetTextContent,oe=r.hideInstance,ue=r.hideTextInstance,ae=r.unhideInstance,le=r.unhideTextInstance,se=r.cloneInstance,ce=r.createContainerChildSet,fe=r.appendChildToContainerChildSet,de=r.finalizeContainerChildren,pe=r.replaceContainerChildren,he=r.cloneHiddenInstance,ve=r.cloneHiddenTextInstance,me=r.canHydrateInstance,ge=r.canHydrateTextInstance,_e=r.isSuspenseInstancePending,ye=r.isSuspenseInstanceFallback,be=r.getNextHydratableSibling,we=r.getFirstHydratableChild,Ee=r.hydrateInstance,De=r.hydrateTextInstance,Ce=r.getNextHydratableInstanceAfterSuspenseInstance,ke=r.commitHydratedContainer,Se=r.commitHydratedSuspenseInstance,Te=/^(.*)[\\\/]/;function xe(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=k(e.type);n=null,r&&(n=k(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Te,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}new Set;var Ae=[],Oe=-1;function Me(e){0>Oe||(e.current=Ae[Oe],Ae[Oe]=null,Oe--)}function Ie(e,t){Oe++,Ae[Oe]=e.current,e.current=t}var Re={},Ne={current:Re},Pe={current:!1},Fe=Re;funcLine truncated
e.exports=function t(r){"use strict";var i=n(518),o=n(907),u=n(769);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null}),l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null});var s="function"==typeof Symbol&&Symbol.for,c=s?Symbol.for("react.element"):60103,f=s?Symbol.for("react.portal"):60106,d=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,h=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,m=s?Symbol.for("react.context"):60110,g=s?Symbol.for("react.concurrent_mode"):60111,_=s?Symbol.for("react.forward_ref"):60112,y=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,w=s?Symbol.for("react.memo"):60115,E=s?Symbol.for("react.lazy"):60116;s&&Symbol.for("react.fundamental"),s&&Symbol.for("react.responder"),s&&Symbol.for("react.scope");var D="function"==typeof Symbol&&Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}function k(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"Fragment";case f:return"Portal";case h:return"Profiler";case p:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return"Context.Consumer";case v:return"Context.Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case w:return k(e.type);case E:if(e=1===e._status?e._result:null)return k(e)}return null}function S(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function T(e){if(S(e)!==e)throw Error(a(188))}function x(e){var t=e.alternate;if(!t){if(null===(t=S(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return T(i),e;if(o===r)return T(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u){for(l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function A(e){if(!(e=x(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var O=r.getPublicInstance,M=r.getRootHostContext,I=r.getChildHostContext,R=r.prepareForCommit,N=r.resetAfterCommit,P=r.createInstance,F=r.appendInitialChild,L=r.finalizeInitialChildren,B=r.prepareUpdate,U=r.shouldSetTextContent,j=r.shouldDeprioritizeSubtree,z=r.createTextInstance,W=r.setTimeout,H=r.clearTimeout,V=r.noTimeout,$=r.isPrimaryRenderer,G=r.supportsMutation,q=r.supportsPersistence,Y=r.supportsHydration,X=r.appendChild,K=r.appendChildToContainer,J=r.commitTextUpdate,Q=r.commitMount,Z=r.commitUpdate,ee=r.insertBefore,te=r.insertInContainerBefore,ne=r.removeChild,re=r.removeChildFromContainer,ie=r.resetTextContent,oe=r.hideInstance,ue=r.hideTextInstance,ae=r.unhideInstance,le=r.unhideTextInstance,se=r.cloneInstance,ce=r.createContainerChildSet,fe=r.appendChildToContainerChildSet,de=r.finalizeContainerChildren,pe=r.replaceContainerChildren,he=r.cloneHiddenInstance,ve=r.cloneHiddenTextInstance,me=r.canHydrateInstance,ge=r.canHydrateTextInstance,_e=r.isSuspenseInstancePending,ye=r.isSuspenseInstanceFallback,be=r.getNextHydratableSibling,we=r.getFirstHydratableChild,Ee=r.hydrateInstance,De=r.hydrateTextInstance,Ce=r.getNextHydratableInstanceAfterSuspenseInstance,ke=r.commitHydratedContainer,Se=r.commitHydratedSuspenseInstance,Te=/^(.*)[\\\/]/;function xe(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=k(e.type);n=null,r&&(n=k(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Te,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}new Set;var Ae=[],Oe=-1;function Me(e){0>Oe||(e.current=Ae[Oe],Ae[Oe]=null,Oe--)}function Ie(e,t){Oe++,Ae[Oe]=e.current,e.current=t}var Re={},Ne={current:Re},Pe={current:!1},Fe=Re;functioLine truncated
/**
* @license
* Lodash <https://lodash.com/>
@@ -19,12 +18,12 @@ e.exports=function t(r){"use strict";var i=n(9381),o=n(7382),u=n(7181);function
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/e=n.nmd(e),function(){var i="Expected a function",o="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",h="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",_="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",D="[object DataView]",C="[object Float32Array]",k="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",O="[object Uint16Array]",M="[object Uint32Array]",I=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,L=RegExp(P.source),B=RegExp(F.source),U=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,G=RegExp($.source),q=/^\s+|\s+$/g,Y=/^\s+/,X=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",pe="[\\ud800-\\udfff]",he="["+de+"]",ve="["+fe+"]",me="\\d+",ge="[\\u2700-\\u27bf]",_e="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ke="(?:"+_e+"|"+ye+")",Se="(?:"+Ce+"|"+ye+")",Te="(?:"+ve+"|"+be+")"+"?",xe="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[we,Ee,De].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Ae="(?:"+[ge,Ee,De].join("|")+")"+xe,Oe="(?:"+[we+ve+"?",ve,Ee,De,pe].join("|")+")",Me=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Re=RegExp(be+"(?="+be+")|"+Oe+xe,"g"),Ne=RegExp([Ce+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Ce,"$"].join("|")+")",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Ce+ke,"$"].join("|")+")",Ce+"?"+ke+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ae].join("|"),"g"),Pe=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Fe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["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"],Be=-1,Ue={};Ue[C]=Ue[k]=Ue[S]=Ue[T]=Ue[x]=Ue[A]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[M]=!0,Ue[a]=Ue[l]=Ue[E]=Ue[s]=Ue[D]=Ue[c]=Ue[f]=Ue[d]=Ue[h]=Ue[v]=Ue[m]=Ue[g]=Ue[_]=Ue[y]=Ue[w]=!1;var je={};je[a]=je[l]=je[E]=je[D]=je[s]=je[c]=je[C]=je[k]=je[S]=je[T]=je[x]=je[h]=je[v]=je[m]=je[g]=je[_]=je[y]=je[b]=je[A]=je["[object Uint8ClampedArray]"]=je[O]=je[M]=!0,je[f]=je[d]=je[w]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,He=parseInt,Ve="object"==typeof global&&global&&global.Object===Object&&global,$e="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ve||$e||Function("return this")(),qe=t&&!t.nodeType&&t,Ye=qe&&e&&!e.nodeType&&e,Xe=Ye&&Ye.exports===qe,Ke=Xe&&Ve.process,Je=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Ke&&Ke.binding&&Ke.binding("util")}catch(e){}}(),Qe=Je&&Je.isArrayBuffer,Ze=Je&&Je.isDate,et=Je&&Je.isMap,tt=Je&&Je.isRegExp,nt=Je&&Je.isSet,rt=Je&&Je.isTypedArray;function it(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 ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?Line truncated
*/e=n.nmd(e),function(){var i="Expected a function",o="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",h="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",_="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",D="[object DataView]",C="[object Float32Array]",k="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",O="[object Uint16Array]",M="[object Uint32Array]",I=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,L=RegExp(P.source),B=RegExp(F.source),U=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,G=RegExp($.source),q=/^\s+|\s+$/g,Y=/^\s+/,X=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",pe="[\\ud800-\\udfff]",he="["+de+"]",ve="["+fe+"]",me="\\d+",ge="[\\u2700-\\u27bf]",_e="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ke="(?:"+_e+"|"+ye+")",Se="(?:"+Ce+"|"+ye+")",Te="(?:"+ve+"|"+be+")"+"?",xe="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[we,Ee,De].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Ae="(?:"+[ge,Ee,De].join("|")+")"+xe,Oe="(?:"+[we+ve+"?",ve,Ee,De,pe].join("|")+")",Me=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Re=RegExp(be+"(?="+be+")|"+Oe+xe,"g"),Ne=RegExp([Ce+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Ce,"$"].join("|")+")",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Ce+ke,"$"].join("|")+")",Ce+"?"+ke+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ae].join("|"),"g"),Pe=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Fe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["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"],Be=-1,Ue={};Ue[C]=Ue[k]=Ue[S]=Ue[T]=Ue[x]=Ue[A]=Ue["[object Uint8ClampedArray]"]=Ue[O]=Ue[M]=!0,Ue[a]=Ue[l]=Ue[E]=Ue[s]=Ue[D]=Ue[c]=Ue[f]=Ue[d]=Ue[h]=Ue[v]=Ue[m]=Ue[g]=Ue[_]=Ue[y]=Ue[w]=!1;var je={};je[a]=je[l]=je[E]=je[D]=je[s]=je[c]=je[C]=je[k]=je[S]=je[T]=je[x]=je[h]=je[v]=je[m]=je[g]=je[_]=je[y]=je[b]=je[A]=je["[object Uint8ClampedArray]"]=je[O]=je[M]=!0,je[f]=je[d]=je[w]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,He=parseInt,Ve="object"==typeof global&&global&&global.Object===Object&&global,$e="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ve||$e||Function("return this")(),qe=t&&!t.nodeType&&t,Ye=qe&&e&&!e.nodeType&&e,Xe=Ye&&Ye.exports===qe,Ke=Xe&&Ve.process,Je=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Ke&&Ke.binding&&Ke.binding("util")}catch(e){}}(),Qe=Je&&Je.isArrayBuffer,Ze=Je&&Je.isDate,et=Je&&Je.isMap,tt=Je&&Je.isRegExp,nt=Je&&Je.isSet,rt=Je&&Je.isTypedArray;function it(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 ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?Line truncated
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var u,a,l=i(e),s=1;s<arguments.length;s++){for(var c in u=Object(arguments[s]))n.call(u,c)&&(l[c]=u[c]);if(t){a=t(u);for(var f=0;f<a.length;f++)r.call(u,a[f])&&(l[a[f]]=u[a[f]])}}return l}},834:(e,t,n)=>{"use strict";const r=n(1573),i=new WeakMap,o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,o=!1,u=0;const a=e.displayName||e.name||"<anonymous>",l=function(...r){if(i.set(l,++u),o){if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n}return o=!0,n=e.apply(this,r),e=null,n};return r(l,e),i.set(l,u),l};e.exports=o,e.exports.default=o,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},8070:(e,t,n)=>{"use strict";const r=n(2413),i=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let o={};e.exports=e=>{const t=new r.PassThrough,n=new r.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const u=new console.Console(t,n);for(const e of i)o[e]=console[e],console[e]=u[e];return()=>{for(const e of i)console[e]=o[e];o={}}}},5187:e=>{window,e.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.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=20)}([function(e,t,n){"use strict";e.exports=n(12)},function(e,t,n){"use strict";
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var u,a,l=i(e),s=1;s<arguments.length;s++){for(var c in u=Object(arguments[s]))n.call(u,c)&&(l[c]=u[c]);if(t){a=t(u);for(var f=0;f<a.length;f++)r.call(u,a[f])&&(l[a[f]]=u[a[f]])}}return l}},1689:(e,t,n)=>{"use strict";const r=n(8891),i=new WeakMap,o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,o=!1,u=0;const a=e.displayName||e.name||"<anonymous>",l=function(...r){if(i.set(l,++u),o){if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n}return o=!0,n=e.apply(this,r),e=null,n};return r(l,e),i.set(l,u),l};e.exports=o,e.exports.default=o,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},5602:(e,t,n)=>{"use strict";const r=n(2413),i=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let o={};e.exports=e=>{const t=new r.PassThrough,n=new r.PassThrough;t.write=t=>e("stdout",t),n.write=t=>e("stderr",t);const u=new console.Console(t,n);for(const e of i)o[e]=console[e],console[e]=u[e];return()=>{for(const e of i)console[e]=o[e];o={}}}},414:e=>{window,e.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.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=20)}([function(e,t,n){"use strict";e.exports=n(12)},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@@ -55,7 +54,7 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(1),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113,t.unstable_SuspenseList=60120;var c=60115,f=60116,d=60121;if(t.unstable_DebugTracingMode=60129,t.unstable_LegacyHidden=60131,"function"==typeof Symbol&&Symbol.for){var p=Symbol.for;o=p("react.element"),u=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),t.Suspense=p("react.suspense"),t.unstable_SuspenseList=p("react.suspense_list"),c=p("react.memo"),f=p("react.lazy"),d=p("react.block"),t.unstable_DebugTracingMode=p("react.debug_trace_mode"),t.unstable_LegacyHidden=p("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=_.prototype;var w=b.prototype=new y;w.constructor=b,i(w,_.prototype),w.isPureReactComponent=!0;var E={current:null},D=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)D.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:E.current}}function S(e){return"object"===r(e)&&null!==e&&e.$$typeof===o}var T=/\/+/g;function x(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,i,a){var l=r(e);"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case u:s=!0}}if(s)return a=a(s=e),e=""===i?"."+x(s,0):i,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){var f=i+x(l=e[c],c);s+=A(l,t,n,f,a)}else if("function"==typeof(f=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=f.call(e),c=0;!(l=e.next()).done;)s+=A(l=l.value,t,n,f=i+x(l,c++),a);else if("object"===l)throw t=""+e,Error(v(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function M(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function I(e){return{$$typeof:d,_data:e.load.apply(null,e.args),_render:e.render}}var R={current:null};function N(){var e=R.current;if(null===e)throw Error(v(321));return e}var P={transition:0},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(v(143));return e}},t.Component=_,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=i({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.cuLine truncated
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(1),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113,t.unstable_SuspenseList=60120;var c=60115,f=60116,d=60121;if(t.unstable_DebugTracingMode=60129,t.unstable_LegacyHidden=60131,"function"==typeof Symbol&&Symbol.for){var p=Symbol.for;o=p("react.element"),u=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),t.Suspense=p("react.suspense"),t.unstable_SuspenseList=p("react.suspense_list"),c=p("react.memo"),f=p("react.lazy"),d=p("react.block"),t.unstable_DebugTracingMode=p("react.debug_trace_mode"),t.unstable_LegacyHidden=p("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=_.prototype;var w=b.prototype=new y;w.constructor=b,i(w,_.prototype),w.isPureReactComponent=!0;var E={current:null},D=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)D.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:E.current}}function S(e){return"object"===r(e)&&null!==e&&e.$$typeof===o}var T=/\/+/g;function x(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,i,a){var l=r(e);"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case u:s=!0}}if(s)return a=a(s=e),e=""===i?"."+x(s,0):i,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){var f=i+x(l=e[c],c);s+=A(l,t,n,f,a)}else if("function"==typeof(f=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=f.call(e),c=0;!(l=e.next()).done;)s+=A(l=l.value,t,n,f=i+x(l,c++),a);else if("object"===l)throw t=""+e,Error(v(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function M(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function I(e){return{$$typeof:d,_data:e.load.apply(null,e.args),_render:e.render}}var R={current:null};function N(){var e=R.current;if(null===e)throw Error(v(321));return e}var P={transition:0},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:i};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(v(143));return e}},t.Component=_,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=i({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.cuLine truncated
/** @license React v16.13.1
* react.production.min.js
*
@@ -63,7 +62,7 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(9381),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||_}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||_}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var D=E.prototype=new w;D.constructor=E,r(D,b.prototype),D.isPureReactComponent=!0;var C={current:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)k.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:C.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,O=[];function M(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case u:l=!0}}if(l)return r(i,t,""===n?"."+N(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+N(a=t[s],s);l+=e(a,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+N(a,s++),r,i);else if("object"===a)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function P(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),R(e,F,t=M(t,o,r,i)),I(t)}var B={current:null};function U(){var e=B.current;if(null===e)throw Error(g(321));return e}var j={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,P,t=M(null,null,t,n)),I(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(g(143));return e}},t.Component=b,t.Fragment=a,t.Profiler=s,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,Line truncated
*/var r=n(518),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||_}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||_}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var D=E.prototype=new w;D.constructor=E,r(D,b.prototype),D.isPureReactComponent=!0;var C={current:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)k.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:u,ref:a,props:i,_owner:C.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,O=[];function M(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case u:l=!0}}if(l)return r(i,t,""===n?"."+N(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+N(a=t[s],s);l+=e(a,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+N(a,s++),r,i);else if("object"===a)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function P(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),R(e,F,t=M(t,o,r,i)),I(t)}var B={current:null};function U(){var e=B.current;if(null===e)throw Error(g(321));return e}var j={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,P,t=M(null,null,t,n)),I(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(g(143));return e}},t.Component=b,t.Fragment=a,t.Profiler=s,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,tLine truncated
/** @license React v0.18.0
* scheduler.production.min.js
*
@@ -71,7 +70,6 @@ function(r){function i(e,t){return function(){e.apply(t,arguments)}}function o(e
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n,r,i,o,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,s=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(e){throw setTimeout(s,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(s,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var g=!1,_=null,y=-1,b=5,w=0;o=function(){return t.unstable_now()>=w},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();w=e+b;try{_(!0,e)?D.postMessage(null):(g=!1,_=null)}catch(e){throw D.postMessage(null),e}}else g=!1},n=function(e){_=e,g||(g=!0,D.postMessage(null))},r=function(e,n){y=p((function(){e(t.unstable_now())}),n)},i=function(){h(y),y=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,u=e[o],a=o+1,l=e[a];if(void 0!==u&&0>T(u,n))void 0!==l&&0>T(l,u)?(e[r]=l,e[a]=n,r=a):(e[r]=u,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],A=[],O=1,M=null,I=3,R=!1,N=!1,P=!1;function F(e){for(var t=k(A);null!==t;){if(null===t.callback)S(A);else{if(!(t.startTime<=e))break;S(A),t.sortIndex=t.expirationTime,C(x,t)}t=k(A)}}function L(e){if(P=!1,F(e),!N)if(null!==k(x))N=!0,n(B);else{var t=k(A);null!==t&&r(L,t.startTime-e)}}function B(e,n){N=!1,P&&(P=!1,i()),R=!0;var u=I;try{for(F(n),M=k(x);null!==M&&(!(M.expirationTime>n)||e&&!o());){var a=M.callback;if(null!==a){M.callback=null,I=M.priorityLevel;var l=a(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===k(x)&&S(x),F(n)}else S(x);M=k(x)}if(null!==M)var s=!0;else{var c=k(A);null!==c&&r(L,c.startTime-n),s=!1}return s}finally{M=null,I=u,R=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,u){var a=t.unstable_now();if("object"==typeof u&&null!==u){var l=u.delay;l="number"==typeof l&&0<l?a+l:a,u="number"==typeof u.timeout?u.timeout:U(e)}else u=U(e),l=a;return e={id:O++,callback:o,priorityLevel:e,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>a?(e.sortIndex=l,C(A,e),null===k(x)&&e===k(A)&&(P?i():P=!0,r(L,l-a))):(e.sortIndex=u,C(x,e),N||R||(N=!0,n(B))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=k(x);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||o()},t.unstable_requestPaint=j,t.unstable_continueExecution=function(){N||R||(N=!0,n(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return k(x)},t.unstable_Profiling=null},7181:(e,t,n)=>{"use strict";e.exports=n(706)},6458:(e,t,n)=>{var r,i=n(2357),o=n(8082),u=n(8614);function a(){c&&(c=!1,o.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof u&&(u=u.EventEmitter),process.__sig Line truncated
return plugin;
*/var n,r,i,o,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,s=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(e){throw setTimeout(s,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(s,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var g=!1,_=null,y=-1,b=5,w=0;o=function(){return t.unstable_now()>=w},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();w=e+b;try{_(!0,e)?D.postMessage(null):(g=!1,_=null)}catch(e){throw D.postMessage(null),e}}else g=!1},n=function(e){_=e,g||(g=!0,D.postMessage(null))},r=function(e,n){y=p((function(){e(t.unstable_now())}),n)},i=function(){h(y),y=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,u=e[o],a=o+1,l=e[a];if(void 0!==u&&0>T(u,n))void 0!==l&&0>T(l,u)?(e[r]=l,e[a]=n,r=a):(e[r]=u,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],A=[],O=1,M=null,I=3,R=!1,N=!1,P=!1;function F(e){for(var t=k(A);null!==t;){if(null===t.callback)S(A);else{if(!(t.startTime<=e))break;S(A),t.sortIndex=t.expirationTime,C(x,t)}t=k(A)}}function L(e){if(P=!1,F(e),!N)if(null!==k(x))N=!0,n(B);else{var t=k(A);null!==t&&r(L,t.startTime-e)}}function B(e,n){N=!1,P&&(P=!1,i()),R=!0;var u=I;try{for(F(n),M=k(x);null!==M&&(!(M.expirationTime>n)||e&&!o());){var a=M.callback;if(null!==a){M.callback=null,I=M.priorityLevel;var l=a(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===k(x)&&S(x),F(n)}else S(x);M=k(x)}if(null!==M)var s=!0;else{var c=k(A);null!==c&&r(L,c.startTime-n),s=!1}return s}finally{M=null,I=u,R=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,u){var a=t.unstable_now();if("object"==typeof u&&null!==u){var l=u.delay;l="number"==typeof l&&0<l?a+l:a,u="number"==typeof u.timeout?u.timeout:U(e)}else u=U(e),l=a;return e={id:O++,callback:o,priorityLevel:e,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>a?(e.sortIndex=l,C(A,e),null===k(x)&&e===k(A)&&(P?i():P=!0,r(L,l-a))):(e.sortIndex=u,C(x,e),N||R||(N=!0,n(B))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=k(x);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||o()},t.unstable_requestPaint=j,t.unstable_continueExecution=function(){N||R||(N=!0,n(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return k(x)},t.unstable_Profiling=null},769:(e,t,n)=>{"use strict";e.exports=n(8272)},778:(e,t,n)=>{var r,i=n(2357),o=n(2812),u=n(8614);function a(){c&&(c=!1,o.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,t,n){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,t,n))}"function"!=typeof u&&(u=u.EventEmitter),process.__sign Line truncated
}
};
-55
View File
@@ -1,55 +0,0 @@
#!/usr/bin/env node
module.exports=(()=>{var e={25545:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=25545,e.exports=t},44692:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var A=r(54143);const n={optional:!0},o=[["@samverschueren/stream-to-observable@<0.3.1",{peerDependenciesMeta:{rxjs:n,zenObservable:n}}],["any-observable@<0.5.1",{peerDependenciesMeta:{rxjs:n,zenObservable:n}}],["@pm2/agent@<1.0.4",{dependencies:{debug:"*"}}],["debug@<4.2.0",{peerDependenciesMeta:{"supports-color":n}}],["got@<11",{dependencies:{"@types/responselike":"^1.0.0","@types/keyv":"^3.1.1"}}],["cacheable-lookup@<4.1.2",{dependencies:{"@types/keyv":"^3.1.1"}}],["http-link-dataloader@*",{peerDependencies:{graphql:"^0.13.1 || ^14.0.0"}}],["typescript-language-server@*",{dependencies:{"vscode-jsonrpc":"^5.0.1","vscode-languageserver-protocol":"^3.15.0"}}],["postcss-syntax@*",{peerDependenciesMeta:{"postcss-html":n,"postcss-jsx":n,"postcss-less":n,"postcss-markdown":n,"postcss-scss":n}}],["jss-plugin-rule-value-function@<=10.1.1",{dependencies:{"tiny-warning":"^1.0.2"}}],["ink-select-input@<4.1.0",{peerDependencies:{react:"^16.8.2"}}],["promise-inflight@*",{peerDependenciesMeta:{bluebird:n}}],["reactcss@*",{peerDependencies:{react:"*"}}],["react-color@<=2.19.0",{peerDependencies:{react:"*"}}],["gatsby-plugin-i18n@*",{dependencies:{ramda:"^0.24.1"}}],["useragent@^2.0.0",{dependencies:{request:"^2.88.0",yamlparser:"0.0.x",semver:"5.5.x"}}],["@apollographql/apollo-tools@*",{peerDependencies:{graphql:"^14.2.1 || ^15.0.0"}}],["material-table@^2.0.0",{dependencies:{"@babel/runtime":"^7.11.2"}}],["@babel/parser@*",{dependencies:{"@babel/types":"^7.8.3"}}],["fork-ts-checker-webpack-plugin@*",{peerDependencies:{eslint:">= 6",typescript:">= 2.7",webpack:">= 4"},peerDependenciesMeta:{eslint:n}}],["rc-animate@*",{peerDependencies:{react:"^15.0.0 || ^16.0.0","react-dom":"^15.0.0 || ^16.0.0"}}],["react-bootstrap-table2-paginator@*",{dependencies:{classnames:"^2.2.6"}}],["react-draggable@<=4.4.3",{peerDependencies:{react:">= 16.3.0","react-dom":">= 16.3.0"}}],["apollo-upload-client@<14",{peerDependencies:{graphql:"14 - 15"}}],["react-instantsearch-core@<=6.7.0",{peerDependencies:{algoliasearch:">= 3.1 < 5"}}],["react-instantsearch-dom@<=6.7.0",{dependencies:{"react-fast-compare":"^3.0.0"}}],["ws@<7.2.1",{peerDependencies:{bufferutil:"^4.0.1","utf-8-validate":"^5.0.2"},peerDependenciesMeta:{bufferutil:n,"utf-8-validate":n}}],["react-portal@*",{peerDependencies:{"react-dom":"^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"}}]];let i,s,a;const c=new Map([[A.makeIdent(null,"fsevents").identHash,function(){return void 0===i&&(i=r(78761).brotliDecompressSync(Buffer.from("G7weAByFTVk3Vs7UfHhq4yykgEM7pbW7TI43SG2S5tvGrwHBAzdz+s/npQ6tgEvobvxisrPIadkXeUAJotBn5bDZ5kAhcRqsIHe3F75Walet5hNalwgFDtxb0BiDUjiUQkjG0yW2hto9HPgiCkm316d6bC0kST72YN7D7rfkhCE9x4J0XwB0yavalxpUu2t9xszHrmtwalOxT7VslsxWcB1qpqZwERUra4psWhTV8BgwWeizurec82Caf1ABL11YMfbf8FJ9JBceZOkgmvrQPbC9DUldX/yMbmX06UQluCEjSwUoyO+EZPIjofr+/oAZUck2enraRD+oWLlnlYnj8xB+gwSo9lmmks4fXv574qSqcWA6z21uYkzMu3EWj+K23RxeQlLqiE35/rC8GcS4CGkKHKKq+zAIQwD9iRDNfiAqueLLpicFFrNsAI4zeTD/eO9MHcnRa5m8UT+M2+V+AkFST4BlKneiAQRSdST8KEAIyFlULt6wa9EBd0Ds28VmpaxquJdVt+nwdEs5xUskI13OVtFyY0UrQIRAlCuvvWivvlSKQfTO+2Q8OyUR1W5RvetaPz4jD27hdtwHFFA1Ptx6Ee/t2cY2rg2G46M1pNDRf2pWhvpy8pqMnuI3++4OF3+7OFIWXGjh+o7Nr2jNvbiYcQdQS1h903/jVFgOpA0yJ78z+x759bFA0rq+6aY5qPB4FzS3oYoLupDUhD9nDz6F6H7hpnlMf18KNKDu4IKjTWwrAnY6MFQw1W6ymOALHlFyCZmQhldg1MQHaMVVQTVgDC60TfaBqG++Y8PEoFhN/PBTZT175KNP/BlHDYGOOBmnBdzqJKplZ/ljiVG0ZBzfqeBRrrUkn6rA54462SgiliKoYVnbeptMdXNfAuaupIEi0bApF10TlgHfmEJAPUVidRVFyDupSem5po5vErPqWKhKbUIp0LozpYsIKK57dM/HKr+nguF+7924IIWMICkQ8JUigs9D+W+c4LnNoRtPPKNRUiCYmP+Jfo2lfKCKw8qpraEeWU3uiNRO6zcyKQoXPR5htmzzLznke7b4YbXW3I1lIRzmgG02Udb58U+7TpwyN7XymCgH+wuPDthZVQvRZuEP+SnLtMicz9m5zASWOBiAcLmkuFlTKuHspSIhCBD0yUPKcxu81A+4YD78rA2vtwsUEday9WNyrShyrl60rWmA+SmbYZkQOwFJWArxRYYc5jGhA5ikxYw1rx3ei4NmeX/lKiwpZ9Ln1tV2Ae7sArvxuVLbJjqJRjW1vFXAyHpvLG+8MJ6T2Ubx5M2KDa2SN6vuIGxJ9WQM9Mk3Q7aCNiZONXllhqq24DmoLbQfW2rYWsOgHWjtOmIQMyMKdiHZDjoyIq5+U700nZ6odJAoYXPQBvFNiQ78d5jaXliBqLTJEqUCwi+LiH2mx92EmNKDsJL74Z613+3lf20pxkV1+erOrjj8pW00vsPaahKUM+05ssd5uwM7K482KWEf3TCwlg/o3e5ngto7qSMz7YteIgCsF1UOcsLk7F7MxWbvrPMY473ew0G+noVL8EPbkmEMftMSeL6HFub/zy+2JQ==","base64")).toString()),i}],[A.makeIdent(null,"resolve").identHash,function(){return void 0===s&&(s=r(78761).brotliDecompressSync(Buffer.from("G1QTIIzURnVBnGa0VPvr81orV8AFIqdU0sqrdcVgCdukgAZwi8a50gLk9+19Z2NcUILjmzXkzt4dzm5a6Yoys+/9qnKiaApXukOiuoyUaMcynG4X7X4vBaIE/PL30gwG6HSGJkLxb9PnLjfMr+748n7sM6C/NycK6ber/bX1reVVxta6W/31tZIhfrS+upoE/TPRHj0S/l0T59gTGdtKOp1OmMOJt9rhfucDdLJ2tgyfnO+u4YMkQAcYq/nebTcDmbXhqhgo6iQA4M3m4xya4Cos3p6klmkmQT+S4DLDZfwfMF+sUCx36KleOtaHLQfEIz0Bmncj/Ngi3lqOl4391EWEfIss6gVp3oDUGwsSZJKeOVONJWZg+Mue3KUMV3aMqYJ+7b2219D+GFDi8EV5y/Y+5J+He0oNjKAgqLsJziEsS9uIaCu3BHBKSXxNKKa2ShbfglcWoiiVT2kfGI7Gw+YJ/Sqy1H6wdFWtyVUQIa82JPwbeV25YKLzc5ZIFM6GCPSA+J9dTvJbs5LuuKnLP3f09gCu2jxqsAv6CLine truncated
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function R(e,t,r,A){var n,o=arguments.length,i=o<3?t:null===A?A=Object.getOwnPropertyDescriptor(t,r):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,A);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}M.Entries={};class x extends M{async execute(){this.context.stdout.write(this.cli.usage(null))}}R([M.Path("--help"),M.Path("-h")],x.prototype,"execute",null);class L extends M{async execute(){var e;this.context.stdout.write((null!==(e=this.cli.binaryVersion)&&void 0!==e?e:"<unknown>")+"\n")}}R([M.Path("--version"),M.Path("-v")],L.prototype,"execute",null);const P={bold:e=>`${e}`,error:e=>`${e}`,code:e=>`${e}`},O={bold:e=>e,error:e=>e,code:e=>e};function U(e,{format:t,paragraphs:r}){return e=(e=(e=(e=(e=e.replace(/\r\n?/g,"\n")).replace(/^[\t ]+|[\t ]+$/gm,"")).replace(/^\n+|\n+$/g,"")).replace(/^-([^\n]*?)\n+/gm,"-$1\n\n")).replace(/\n(\n)?\n*/g,"$1"),r&&(e=e.split(/\n/).map((function(e){let t=e.match(/^[*-][\t ]+(.*)/);return t?t[1].match(/(.{1,78})(?: |$)/g).map((e,t)=>(0===t?"- ":" ")+e).join("\n"):e.match(/(.{1,80})(?: |$)/g).join("\n")})).join("\n\n")),(e=e.replace(/(`+)((?:.|[\n])*?)\1/g,(function(e,r,A){return t.code(r+A+r)})))?e+"\n":""}class T extends M{constructor(e){super(),this.contexts=e,this.commands=[]}static from(e,t){const r=new T(t);r.path=e.path;for(const t of e.options)switch(t.name){case"-c":r.commands.push(Number(t.value));break;case"-i":r.index=Number(t.value)}return r}async execute(){let e=this.commands;if(void 0!==this.index&&this.index>=0&&this.index<e.length&&(e=[e[this.index]]),0===e.length)this.context.stdout.write(this.cli.usage());else if(1===e.length)this.context.stdout.write(this.cli.usage(this.contexts[e[0]].commandClass,{detailed:!0}));else if(e.length>1){this.context.stdout.write("Multiple commands match your selection:\n"),this.context.stdout.write("\n");let e=0;for(const t of this.commands)this.context.stdout.write(this.cli.usage(this.contexts[t].commandClass,{prefix:(e+++". ").padStart(5)}));this.context.stdout.write("\n"),this.context.stdout.write("Run again with -h=<index> to see the longer details of any of those commands.\n")}}}function j(){return"0"!==process.env.FORCE_COLOR&&("1"===process.env.FORCE_COLOR||!(void 0===process.stdout||!process.stdout.isTTY))}class Y{constructor({binaryLabel:e,binaryName:t="...",binaryVersion:r,enableColors:A=j()}={}){this.registrations=new Map,this.builder=new K({binaryName:t}),this.binaryLabel=e,this.binaryName=t,this.binaryVersion=r,this.enableColors=A}static from(e,t={}){const r=new Y(t);for(const t of e)r.register(t);return r}register(e){const t=this.builder.command();this.registrations.set(e,t.cliIndex);const{definitions:r}=e.resolveMeta(e.prototype);for(const e of r)e(t);t.setContext({commandClass:e})}process(e){const{contexts:t,process:r}=this.builder.compile(),A=r(e);switch(A.selectedIndex){case-1:return T.from(A,t);default:{const{commandClass:e}=t[A.selectedIndex],r=this.registrations.get(e);if(void 0===r)throw new Error("Assertion failed: Expected the command class to have been registered.");const n=this.builder.getBuilderByIndex(r),o=new e;o.path=A.path;const{transformers:i}=e.resolveMeta(e.prototype);for(const e of i)e(A,o,n);return o}}}async run(e,t){let r,A;if(Array.isArray(e))try{r=this.process(e)}catch(e){return t.stdout.write(this.error(e)),1}else r=e;if(r.help)return t.stdout.write(this.usage(r,{detailed:!0})),0;r.context=t,r.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableColors:this.enableColors,definitions:()=>this.definitions(),error:(e,t)=>this.error(e,t),process:e=>this.process(e),run:(e,r)=>this.run(e,Object.assign(Object.assign({},t),r)),usage:(e,t)=>this.usage(e,t)};try{A=await r.validateAndExecute().catch(e=>r.catch(e).then(()=>0))}catch(e){return t.stdout.write(this.error(e,{command:r})),1}return A}async runExit(e,t){process.exitCode=await this.run(e,t)}suggest(e,t){const{contexts:r,process:A,suggest:n}=this.builder.compile();return n(e,t)}definitions({colored:e=!1}={}){const t=[];for(const[r,A]of this.registrations){if(void 0===r.usage)continue;const{usage:n}=this.getUsageByIndex(A,{detailed:!1}),{usage:o,options:i}=this.getUsageByIndex(A,{detailed:!0,inlineOptions:!1}),s=void 0!==r.usage.category?U(r.usage.category,{format:this.format(e),paragraphs:!1}):void 0,a=void 0!==r.usage.description?U(r.usage.description,{format:this.format(e),paragraphs:!1}):void 0,c=void 0!==r.usage.details?U(r.usage.details,{format:this.format(e),paragraphs:!0}):void 0,g=void 0!==r.usage.examples?r.usage.examples.map(([t,r])=>[U(t,{format:this.format(e),paragraphs:!1}),r.replace(/\$0/g,this.binaryName)]):void 0;t.push({path:n,usage:o,category:s,description:a,details:c,examples:g,options:i})}return t}usage(e=null,{colored:t,detailed:r=!1,prefix:A="$ "}={}){const n=null!==e&&void 0===e.getMeta?e.constructor:e;let o="Line truncated
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/const A=r(31669),n=r(84615),o=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=e=>"number"==typeof e||"string"==typeof e&&""!==e,s=e=>Number.isInteger(+e),a=e=>{let t=""+e,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},c=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},g=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},l=(e,t,r,A)=>{if(r)return n(e,t,{wrap:!1,...A});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},u=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,A=r.capture?"":"?:";return t?`(${A}${e.join("|")})`:e.join("|")}return n(e,t,r)},h=(...e)=>new RangeError("Invalid range arguments: "+A.inspect(...e)),p=(e,t,r)=>{if(!0===r.strictRanges)throw h([e,t]);return[]},d=(e,t,r=1,A={})=>{let n=Number(e),o=Number(t);if(!Number.isInteger(n)||!Number.isInteger(o)){if(!0===A.strictRanges)throw h([e,t]);return[]}0===n&&(n=0),0===o&&(o=0);let i=n>o,s=String(e),p=String(t),d=String(r);r=Math.max(Math.abs(r),1);let C=a(s)||a(p)||a(d),f=C?Math.max(s.length,p.length,d.length):0,I=!1===C&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,A),E=A.transform||(e=>t=>!0===e?Number(t):String(t))(I);if(A.toRegex&&1===r)return l(g(e,f),g(t,f),!0,A);let B={negatives:[],positives:[]},y=[],m=0;for(;i?n>=o:n<=o;)!0===A.toRegex&&r>1?B[(w=n)<0?"negatives":"positives"].push(Math.abs(w)):y.push(c(E(n,m),f,I)),n=i?n-r:n+r,m++;var w;return!0===A.toRegex?r>1?((e,t)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r,A=t.capture?"":"?:",n="",o="";return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(o=`-(${A}${e.negatives.join("|")})`),r=n&&o?`${n}|${o}`:n||o,t.wrap?`(${A}${r})`:r})(B,A):u(y,null,{wrap:!1,...A}):y},C=(e,t,r,A={})=>{if(null==t&&i(e))return[e];if(!i(e)||!i(t))return p(e,t,A);if("function"==typeof r)return C(e,t,1,{transform:r});if(o(r))return C(e,t,0,r);let n={...A};return!0===n.capture&&(n.wrap=!0),r=r||n.step||1,s(r)?s(e)&&s(t)?d(e,t,r,n):((e,t,r=1,A={})=>{if(!s(e)&&e.length>1||!s(t)&&t.length>1)return p(e,t,A);let n=A.transform||(e=>String.fromCharCode(e)),o=(""+e).charCodeAt(0),i=(""+t).charCodeAt(0),a=o>i,c=Math.min(o,i),g=Math.max(o,i);if(A.toRegex&&1===r)return l(c,g,!1,A);let h=[],d=0;for(;a?o>=i:o<=i;)h.push(n(o,d)),o=a?o-r:o+r,d++;return!0===A.toRegex?u(h,null,{wrap:!1,options:A}):h})(e,t,Math.max(Math.abs(r),1),n):null==r||o(r)?C(e,t,1,r):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(r,n)};e.exports=C},50683:e=>{e.exports=function(e){return[...e].reduce((e,[t,r])=>(e[t]=r,e),{})}},13302:(e,t,r)=>{e.exports=r(35747).constants||r(27619)},72137:(e,t,r)=>{"use strict";const{PassThrough:A}=r(92413);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const i=new A({objectMode:o});r&&i.setEncoding(r);let s=0;const a=[];return i.on("data",e=>{a.push(e),o?s=a.length:s+=e.length}),i.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i}},58764:(e,t,r)=>{"use strict";const A=r(50372),n=r(72137);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function i(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:r}=t;let i;return await new Promise((s,a)=>{const c=e=>{e&&(e.bufferedData=i.getBufferedValue()),a(e)};i=A(e,n(t),e=>{e?c(e):s()}),i.on("data",()=>{i.getBufferedLength()>r&&c(new o)})}),i.getBufferedValue()}e.exports=i,e.exports.default=i,e.exports.buffer=(e,t)=>i(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>i(e,{...t,array:!0}),e.exports.MaxBufferError=o},97098:(e,t,r)=>{"use strict";var A=r(18193),n=r(85622).posix.dirname,o="win32"===r(12087).platform(),i=/\\/g,s=/[\{\[].*[\/]*.*[\}\]]$/,a=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\*\?\|\[\]\(\)\{\}])/g;e.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&o&&e.indexOf("/")<0&&(e=e.replace(i,"/")),s.test(e)&&(e+="/"),e+="a";do{e=n(e)}while(A(e)||a.test(e));return e.replace(c,"$1")}},90734:(e,t,r)=>{"use strict";const{promisify:A}=r(31669),n=r(35747),o=r(85622),i=r(19347),s=r(46458),a=r(17234),c=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],g=A(n.readFile),l=(e,t)=>{const r=a(o.relative(t.cwd,o.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(e=>!e.startsWith("#")).map((e=>t=>t.startsWith("!")?"!"+o.posix.join(e,t.slice(1)):o.posix.join(e,t))(r))},u=e=>e.reduce((e,t)=>(e.add(l(t.content,{cwd:t.cwd,fileName:t.filePath})),e),s()),h=(e,t)=>r=>e.ignores(a(o.relative(t,((e,t)=>{if(e=a(e),o.isAbsolute(t)){if(t.startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return o.join(e,t)})(t,r)))),p=({ignore:e=[],cwd:t=a(process.cwd())}={})=>({ignore:e,cwd:t});e.exports=async Line truncated
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
e.exports=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},18193:(e,t,r)=>{
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
var A=r(44486),n={"{":"}","(":")","[":"]"},o=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,i=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(A(e))return!0;var r,s=o;for(t&&!1===t.strict&&(s=i);r=s.exec(e);){if(r[2])return!0;var a=r.index+r[0].length,c=r[1],g=c?n[c]:null;if(c&&g){var l=e.indexOf(g,a);-1!==l&&(a=l+1)}e=e.slice(a)}return!1}},59235:e=>{"use strict";
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},97369:(e,t)=>{var r,A,n,o;
/*!
* is-windows <https://github.com/jonschlinkert/is-windows>
*
* Copyright © 2015-2018, Jon Schlinkert.
* Released under the MIT License.
*/o=function(){"use strict";return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}},t&&"object"==typeof t?e.exports=o():(A=[],void 0===(n="function"==typeof(r=o)?r.apply(t,A):r)||(e.exports=n))},64151:(e,t,r)=>{var A;r(35747);function n(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,A){n(e,t||{},(function(e,t){e?A(e):r(t)}))}))}A(e,t||{},(function(e,A){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,A=!1),r(e,A)}))}A="win32"===process.platform||global.TESTING_WINDOWS?r(3202):r(2151),e.exports=n,n.sync=function(e,t){try{return A.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},2151:(e,t,r)=>{e.exports=n,n.sync=function(e,t){return o(A.statSync(e),t)};var A=r(35747);function n(e,t,r){A.stat(e,(function(e,A){r(e,!e&&o(A,t))}))}function o(e,t){return e.isFile()&&function(e,t){var r=e.mode,A=e.uid,n=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),g=s|a;return r&c||r&a&&n===i||r&s&&A===o||r&g&&0===o}(e,t)}},3202:(e,t,r)=>{e.exports=o,o.sync=function(e,t){return n(A.statSync(e),e,t)};var A=r(35747);function n(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var A=0;A<r.length;A++){var n=r[A].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}(t,r)}function o(e,t,r){A.stat(e,(function(A,o){r(A,!A&&n(o,e,t))}))}},21194:(e,t,r)=>{"use strict";var A=r(40744);e.exports=A},40744:(e,t,r)=>{"use strict";var A=r(55384),n=r(24129);function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=r(81704),e.exports.Schema=r(8212),e.exports.FAILSAFE_SCHEMA=r(44413),e.exports.JSON_SCHEMA=r(45247),e.exports.CORE_SCHEMA=r(8769),e.exports.DEFAULT_SAFE_SCHEMA=r(65483),e.exports.DEFAULT_FULL_SCHEMA=r(5235),e.exports.load=A.load,e.exports.loadAll=A.loadAll,e.exports.safeLoad=A.safeLoad,e.exports.safeLoadAll=A.safeLoadAll,e.exports.dump=n.dump,e.exports.safeDump=n.safeDump,e.exports.YAMLException=r(17345),e.exports.MINIMAL_SCHEMA=r(44413),e.exports.SAFE_SCHEMA=r(65483),e.exports.DEFAULT_SCHEMA=r(5235),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},28149:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,A="";for(r=0;r<t;r+=1)A+=e;return A},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var r,A,n,o;if(t)for(r=0,A=(o=Object.keys(t)).length;r<A;r+=1)e[n=o[r]]=t[n];return e}},24129:(e,t,r)=>{"use strict";var A=r(28149),n=r(17345),o=r(5235),i=r(65483),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty,c={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},g=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function l(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new n("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+A.repeat("0",o-t.length)+t}function u(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=A.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,A,n,o,i,s,c;if(null===t)return{};for(r={},n=0,o=(A=Object.keys(t)).length;n<o;n+=1)i=A[n],s=String(t[i]),"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2)),(c=e.compiledTypeMap.fallback[i])&&a.call(c.styleAliases,s)&&(s=c.styleAliases[s]),r[i]=s;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,t){for(var r,n=A.repeat(" ",t),o=0,i=-1,s="",a=e.length;o<a;)-1===(i=e.indexOf("\n",o))?(r=e.slice(o),o=a):(r=e.slice(o,i+1),o=i+1),r.length&&"\n"!==r&&(s+=n),s+=r;return s}function p(e,t){return"\n"+A.repeat(" ",e.indent*t)}function d(e){return 32===e||9===e}function C(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function f(e){return C(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123Line truncated
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/const A=r(59235),n=(e,t,r)=>{if(!1===A(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===A(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let a=e+":"+t+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(n.cache.hasOwnProperty(a))return n.cache[a].result;let c=Math.min(e,t),g=Math.max(e,t);if(1===Math.abs(c-g)){let r=e+"|"+t;return o.capture?`(${r})`:!1===o.wrap?r:`(?:${r})`}let l=p(e)||p(t),u={min:e,max:t,a:c,b:g},h=[],d=[];if(l&&(u.isPadded=l,u.maxLen=String(u.max).length),c<0){d=i(g<0?Math.abs(g):1,Math.abs(c),u,o),c=u.a=0}return g>=0&&(h=i(c,g,u,o)),u.negatives=d,u.positives=h,u.result=function(e,t,r){let A=s(e,t,"-",!1,r)||[],n=s(t,e,"",!1,r)||[],o=s(e,t,"-?",!0,r)||[];return A.concat(o).concat(n).join("|")}(d,h,o),!0===o.capture?u.result=`(${u.result})`:!1!==o.wrap&&h.length+d.length>1&&(u.result=`(?:${u.result})`),n.cache[a]=u,u.result};function o(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let A=function(e,t){let r=[];for(let A=0;A<e.length;A++)r.push([e[A],t[A]]);return r}(e,t),n=A.length,o="",i=0;for(let e=0;e<n;e++){let[t,n]=A[e];t===n?o+=t:"0"!==t||"9"!==n?o+=h(t,n,r):i++}return i&&(o+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:o,count:[i],digits:n}}function i(e,t,r,A){let n,i=function(e,t){let r=1,A=1,n=g(e,r),o=new Set([t]);for(;e<=n&&n<=t;)o.add(n),r+=1,n=g(e,r);for(n=l(t+1,A)-1;e<n&&n<=t;)o.add(n),A+=1,n=l(t+1,A)-1;return o=[...o],o.sort(a),o}(e,t),s=[],c=e;for(let e=0;e<i.length;e++){let t=i[e],a=o(String(c),String(t),A),g="";r.isPadded||!n||n.pattern!==a.pattern?(r.isPadded&&(g=d(t,r,A)),a.string=g+a.pattern+u(a.count),s.push(a),c=t+1,n=a):(n.count.length>1&&n.count.pop(),n.count.push(a.count[0]),n.string=n.pattern+u(n.count),c=t+1)}return s}function s(e,t,r,A,n){let o=[];for(let n of e){let{string:e}=n;A||c(t,"string",e)||o.push(r+e),A&&c(t,"string",e)&&o.push(r+e)}return o}function a(e,t){return e>t?1:t>e?-1:0}function c(e,t,r){return e.some(e=>e[t]===r)}function g(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function l(e,t){return e-e%Math.pow(10,t)}function u(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function h(e,t,r){return`[${e}${t-e==1?"":"-"}${t}]`}function p(e){return/^-?(0+)\d/.test(e)}function d(e,t,r){if(!t.isPadded)return e;let A=Math.abs(t.maxLen-String(e).length),n=!1!==r.relaxZeros;switch(A){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${A}}`:`0{${A}}`}}n.cache={},n.clearCache=()=>n.cache={},e.exports=n},75158:e=>{function t(e,t){var r=e.length,A=new Array(r),n={},o=r,i=function(e){for(var t=new Map,r=0,A=e.length;r<A;r++){var n=e[r];t.has(n[0])||t.set(n[0],new Set),t.has(n[1])||t.set(n[1],new Set),t.get(n[0]).add(n[1])}return t}(t),s=function(e){for(var t=new Map,r=0,A=e.length;r<A;r++)t.set(e[r],r);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)n[o]||a(e[o],o,new Set);return A;function a(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!n[t]){n[t]=!0;var g=i.get(e)||new Set;if(t=(g=Array.from(g)).length){o.add(e);do{var l=g[--t];a(l,s.get(l),o)}while(t);o.delete(e)}A[--r]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,r=0,A=e.length;r<A;r++){var n=e[r];t.add(n[0]),t.add(n[1])}return Array.from(t)}(e),e)},e.exports.array=t},94682:function(e){e.exports=function(){function e(t,r,A,n,o,i,s){var a,c,g="",l=0,u=n.slice(0);if(u.push([r,A])&&n.length>0&&(n.forEach((function(e,t){t>0&&(g+=(e[1]?" ":"│")+" "),c||e[0]!==r||(c=!0)})),g+=function(e,t){var r=t?"└":"├";return r+=e?"─ ":"──┐"}(t,A)+t,o&&("object"!=typeof r||r instanceof Date)&&(g+=": "+r),c&&(g+=" (circular ref.)"),s(g)),!c&&"object"==typeof r){var h=function(e,t){var r=[];for(var A in e)e.hasOwnProperty(A)&&(t&&"function"==typeof e[A]||r.push(A));return r}(r,i);h.forEach((function(t){a=++l===h.length,e(t,r[t],a,u,o,i,s)}))}}var t={asLines:function(t,r,A,n){e(".",t,!1,[],r,"function"!=typeof A&&A,n||A)},asTree:function(t,r,A){var n="";return e(".",t,!1,[],r,A,(function(e){n+=e+"\n"})),n}};return t}()},36370:(e,t,r)=>{"use strict";r.d(t,{gn:()=>A});function A(e,t,r,A){var n,o=arguments.length,i=o<3?t:null===A?A=Object.getOwnPropertyDescriptor(t,r):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,A);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}},98161:(e,t,r)=>{e.exports=r(69876)},69876:(e,t,r)=>{"use strict";r(11631);var A,n=r(4016),o=r(98605Line truncated
+591
View File
@@ -0,0 +1,591 @@
#!/usr/bin/env node
/* eslint-disable */
//prettier-ignore
(()=>{var see=Object.create,_p=Object.defineProperty,oee=Object.getPrototypeOf,aee=Object.prototype.hasOwnProperty,Aee=Object.getOwnPropertyNames,lee=Object.getOwnPropertyDescriptor;var Dv=t=>_p(t,"__esModule",{value:!0});var C=(t,e)=>()=>(e||(e={exports:{}},t(e.exports,e)),e.exports),We=(t,e)=>{Dv(t);for(var r in e)_p(t,r,{get:e[r],enumerable:!0})},cee=(t,e,r)=>{if(Dv(t),e&&typeof e=="object"||typeof e=="function")for(let i of Aee(e))!aee.call(t,i)&&i!=="default"&&_p(t,i,{get:()=>e[i],enumerable:!(r=lee(e,i))||r.enumerable});return t},W=t=>t&&t.__esModule?t:cee(_p(t!=null?see(oee(t)):{},"default",{value:t,enumerable:!0}),t);var Pv=C((rOe,Sv)=>{Sv.exports=function(e){return[...e].reduce((r,[i,n])=>(r[i]=n,r),{})}});var sF=C((PUe,tF)=>{tF.exports=rF;rF.sync=Qee;var iF=require("fs");function bee(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function nF(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:bee(e,r)}function rF(t,e,r){iF.stat(t,function(i,n){r(i,i?!1:nF(n,t,e))})}function Qee(t,e){return nF(iF.statSync(t),t,e)}});var cF=C((xUe,oF)=>{oF.exports=aF;aF.sync=Dee;var AF=require("fs");function aF(t,e,r){AF.stat(t,function(i,n){r(i,i?!1:lF(n,e))})}function Dee(t,e){return lF(AF.statSync(t),e)}function lF(t,e){return t.isFile()&&See(t,e)}function See(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),g=a|l,u=r&c||r&l&&n===o||r&a&&i===s||r&g&&s===0;return u}});var uF=C((vUe,gF)=>{var kUe=require("fs"),sd;process.platform==="win32"||global.TESTING_WINDOWS?sd=sF():sd=cF();gF.exports=Ly;Ly.sync=Pee;function Ly(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Ly(t,e||{},function(s,o){s?n(s):i(o)})})}sd(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function Pee(t,e){try{return sd.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var IF=C((FUe,hF)=>{var el=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fF=require("path"),xee=el?";":":",pF=uF(),dF=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),CF=(t,e)=>{let r=e.colon||xee,i=t.match(/\//)||el&&t.match(/\\/)?[""]:[...el?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=el?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=el?n.split(r):[""];return el&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},mF=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=CF(t,e),o=[],a=c=>new Promise((g,u)=>{if(c===i.length)return e.all&&o.length?g(o):u(dF(t));let h=i[c],f=/^".*"$/.test(h)?h.slice(1,-1):h,d=fF.join(f,t),m=!f&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;g(l(m,c,0))}),l=(c,g,u)=>new Promise((h,f)=>{if(u===n.length)return h(a(g+1));let d=n[u];pF(c+d,{pathExt:s},(m,I)=>{if(!m&&I)if(e.all)o.push(c+d);else return h(c+d);return h(l(c,g,u+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},kee=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=CF(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=fF.join(l,t),g=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let u=0;u<i.length;u++){let h=g+i[u];try{if(pF.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch(f){}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw dF(t)};hF.exports=mF;mF.sync=kee});var yF=C((RUe,My)=>{"use strict";var EF=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};My.exports=EF;My.exports.default=EF});var bF=C((NUe,BF)=>{"use strict";var wF=require("path"),vee=IF(),Fee=yF();function QF(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch(a){}let o;try{o=vee.sync(t.command,{path:r[Fee({env:r})],pathExt:e?wF.delimiter:void 0})}catch(a){}finally{s&&process.chdir(i)}return o&&(o=wF.resolve(n?t.options.cwd:"",o)),o}function Ree(t){return QF(t)||QF(t,!0)}BF.exports=Ree});var DF=C((LUe,Ky)=>{"use strict";var Oy=/([()\][%!^"`<>&|;, *?])/g;function Nee(t){return t=t.replace(Oy,"^$1"),t}function Lee(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Oy,"^$1"),e&&(t=t.replace(Oy,"^$1")),t}Ky.exports.command=Nee;Ky.exports.argument=Lee});var PF=C((MUe,SF)=>{"use strict";SF.exports=/^#!(.*)/});var kF=C((KUe,xF)=>{"use strict";var Mee=PF();xF.exports=(t="")=>{let e=t.match(Mee);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.spliLine truncated
`:`
`)+r,n=i+1,i=t.indexOf(`
`,n)}while(i!==-1);return s+=t.substr(n),s};aR.exports={stringReplaceAll:cte,stringEncaseCRLFWithFirstIndex:gte}});var hR=C((e1e,lR)=>{"use strict";var ute=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,cR=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,hte=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,fte=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,pte=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function gR(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):pte.get(t)||t}function dte(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),n;for(let s of i){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(n=s.match(hte))r.push(n[2].replace(fte,(a,l,c)=>l?gR(l):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Cte(t){cR.lastIndex=0;let e=[],r;for(;(r=cR.exec(t))!==null;){let i=r[1];if(r[2]){let n=dte(i,r[2]);e.push([i].concat(n))}else e.push([i])}return e}function uR(t,e){let r={};for(let n of e)for(let s of n.styles)r[s[0]]=n.inverse?null:s.slice(1);let i=t;for(let[n,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(n in i))throw new Error(`Unknown Chalk style: ${n}`);i=s.length>0?i[n](...s):i[n]}return i}lR.exports=(t,e)=>{let r=[],i=[],n=[];if(e.replace(ute,(s,o,a,l,c,g)=>{if(o)n.push(gR(o));else if(l){let u=n.join("");n=[],i.push(r.length===0?u:uR(t,r)(u)),r.push({inverse:a,styles:Cte(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(uR(t,r)(n.join(""))),n=[],r.pop()}else n.push(g)}),i.push(n.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return i.join("")}});var IR=C((t1e,fR)=>{"use strict";var Gg=tR(),{stdout:nB,stderr:sB}=oR(),{stringReplaceAll:mte,stringEncaseCRLFWithFirstIndex:Ite}=AR(),pR=["ansi","ansi","ansi256","ansi16m"],sl=Object.create(null),Ete=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=nB?nB.level:0;t.level=e.level===void 0?r:e.level},dR=class{constructor(e){return CR(e)}},CR=t=>{let e={};return Ete(e,t),e.template=(...r)=>yte(e.template,...r),Object.setPrototypeOf(e,Ad.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=dR,e.template};function Ad(t){return CR(t)}for(let[t,e]of Object.entries(Gg))sl[t]={get(){let r=ld(this,oB(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};sl.visible={get(){let t=ld(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var mR=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of mR)sl[t]={get(){let{level:e}=this;return function(...r){let i=oB(Gg.color[pR[e]][t](...r),Gg.color.close,this._styler);return ld(this,i,this._isEmpty)}}};for(let t of mR){let e="bg"+t[0].toUpperCase()+t.slice(1);sl[e]={get(){let{level:r}=this;return function(...i){let n=oB(Gg.bgColor[pR[r]][t](...i),Gg.bgColor.close,this._styler);return ld(this,n,this._isEmpty)}}}}var Bte=Object.defineProperties(()=>{},{...sl,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),oB=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},ld=(t,e,r)=>{let i=(...n)=>wte(i,n.length===1?""+n[0]:n.join(" "));return i.__proto__=Bte,i._generator=t,i._styler=e,i._isEmpty=r,i},wte=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.indexOf("")!==-1)for(;r!==void 0;)e=mte(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
`);return s!==-1&&(e=Ite(e,n,i,s)),i+e+n},aB,yte=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let i=e.slice(1),n=[r.raw[0]];for(let s=1;s<r.length;s++)n.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return aB===void 0&&(aB=hR()),aB(t,n.join(""))};Object.defineProperties(Ad.prototype,sl);var qg=Ad();qg.supportsColor=nB;qg.stderr=Ad({level:sB?sB.level:0});qg.stderr.supportsColor=sB;qg.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};fR.exports=qg});var yR=C((r1e,ER)=>{"use strict";ER.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var wR=C((i1e,BR)=>{"use strict";var Qte=yR();BR.exports=t=>typeof t=="string"?t.replace(Qte(),""):t});var Io=C(bte=>{We(bte,{KeyRelationship:()=>Vg,applyCascade:()=>Tte,base64RegExp:()=>xR,colorStringAlphaRegExp:()=>PR,colorStringRegExp:()=>SR,computeKey:()=>mo,getPrintable:()=>fr,hasExactLength:()=>NR,hasForbiddenKeys:()=>are,hasKeyRelationship:()=>cre,hasMaxLength:()=>jte,hasMinLength:()=>Hte,hasMutuallyExclusiveKeys:()=>Are,hasRequiredKeys:()=>ore,hasUniqueItems:()=>Gte,isArray:()=>Rte,isAtLeast:()=>_te,isAtMost:()=>Wte,isBase64:()=>nre,isBoolean:()=>kte,isDate:()=>Fte,isDict:()=>Lte,isEnum:()=>Pte,isHexColor:()=>ire,isISO8601:()=>rre,isInExclusiveRange:()=>Vte,isInInclusiveRange:()=>zte,isInstanceOf:()=>Kte,isInteger:()=>Xte,isJSON:()=>sre,isLiteral:()=>Dte,isLowerCase:()=>$te,isNegative:()=>qte,isNullable:()=>Yte,isNumber:()=>vte,isObject:()=>Mte,isOneOf:()=>Ote,isOptional:()=>Ute,isPositive:()=>Jte,isString:()=>Ste,isTuple:()=>Nte,isUUID4:()=>tre,isUnknown:()=>RR,isUpperCase:()=>ere,iso8601RegExp:()=>hB,makeCoercionFn:()=>Ba,makeSetter:()=>FR,makeTrait:()=>vR,makeValidator:()=>ot,matchesRegExp:()=>Zte,plural:()=>fd,pushError:()=>Ve,simpleKeyRegExp:()=>DR,uuid4RegExp:()=>kR});var DR=/^[a-zA-Z_][a-zA-Z0-9_]*$/,SR=/^#[0-9a-f]{6}$/i,PR=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i,xR=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,kR=/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/i,hB=/^(?:[1-9]\d{3}(-?)(?:(?:0[1-9]|1[0-2])\1(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])\1(?:29|30)|(?:0[13578]|1[02])(?:\1)31|00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[0-5]))|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)(?:(-?)02(?:\2)29|-?366))T(?:[01]\d|2[0-3])(:?)[0-5]\d(?:\3[0-5]\d)?(?:Z|[+-][01]\d(?:\3[0-5]\d)?)$/,vR=t=>()=>t;function ot({test:t}){return vR(t)()}function fr(t){return t===null?"null":t===void 0?"undefined":t===""?"an empty string":JSON.stringify(t)}function mo(t,e){var r,i,n;return typeof e=="number"?`${(r=t==null?void 0:t.p)!==null&&r!==void 0?r:"."}[${e}]`:DR.test(e)?`${(i=t==null?void 0:t.p)!==null&&i!==void 0?i:""}.${e}`:`${(n=t==null?void 0:t.p)!==null&&n!==void 0?n:"."}[${JSON.stringify(e)}]`}function Ba(t,e){return r=>{let i=t[e];return t[e]=r,Ba(t,e).bind(null,i)}}function FR(t,e){return r=>{t[e]=r}}function fd(t,e,r){return t===1?e:r}function Ve({errors:t,p:e}={},r){return t==null||t.push(`${e!=null?e:"."}: ${r}`),!1}var RR=()=>ot({test:(t,e)=>!0});function Dte(t){return ot({test:(e,r)=>e!==t?Ve(r,`Expected a literal (got ${fr(t)})`):!0})}var Ste=()=>ot({test:(t,e)=>typeof t!="string"?Ve(e,`Expected a string (got ${fr(t)})`):!0});function Pte(t){let e=Array.isArray(t)?t:Object.values(t),r=new Set(e);return ot({test:(i,n)=>r.has(i)?!0:Ve(n,`Expected a valid enumeration value (got ${fr(i)})`)})}var xte=new Map([["true",!0],["True",!0],["1",!0],[1,!0],["false",!1],["False",!1],["0",!1],[0,!1]]),kte=()=>ot({test:(t,e)=>{var r;if(typeof t!="boolean"){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return Ve(e,"Unbound coercion result");let i=xte.get(t);if(typeof i!="undefined")return e.coercions.push([(r=e.p)!==null&&r!==void 0?r:".",e.coercion.bind(null,i)]),!0}return Ve(e,`Expected a boolean (got ${fr(t)})`)}return!0}}),vte=()=>ot({test:(t,e)=>{var r;if(typeof t!="number"){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return Ve(e,"Unbound coercion result");let i;if(typeof t=="string"){let n;try{n=JSON.parse(t)}catch(s){}if(typeof n=="number")if(JSON.stringify(n)===t)i=n;else return Ve(e,`Received a number that can't be safely represented by the runtime (${t})`)}if(typeof i!="undefined")return e.coercions.push([(r=e.p)!==null&&r!==void 0?r:".",e.coercion.bind(null,i)]),!0}return Ve(e,`Expected a number (got ${fr(t)})`)}return!0}}),Fte=()=>ot({test:(t,e)=>{var r;if(!(t instanceof Date)){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return Ve(e,"Unbound coercion result");let i;if(typeof t=="string"&&hB.test(t))i=new Date(t);else{let n;if(typeof t=="string"){let s;try{s=JSON.parse(t)}catch(o){}typeof Line truncated
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var xN=C((u2e,bN)=>{"use strict";var Gre=yd(),{MAX_LENGTH:DN,CHAR_BACKSLASH:wB,CHAR_BACKTICK:qre,CHAR_COMMA:Jre,CHAR_DOT:_re,CHAR_LEFT_PARENTHESES:Wre,CHAR_RIGHT_PARENTHESES:zre,CHAR_LEFT_CURLY_BRACE:Vre,CHAR_RIGHT_CURLY_BRACE:Xre,CHAR_LEFT_SQUARE_BRACKET:SN,CHAR_RIGHT_SQUARE_BRACKET:PN,CHAR_DOUBLE_QUOTE:Zre,CHAR_SINGLE_QUOTE:$re,CHAR_NO_BREAK_SPACE:eie,CHAR_ZERO_WIDTH_NOBREAK_SPACE:tie}=QN(),rie=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(DN,r.maxLength):DN;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,g=0,u=0,h,f={},d=()=>t[g++],m=I=>{if(I.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&I.type==="text"){a.value+=I.value;return}return o.nodes.push(I),I.parent=o,I.prev=a,a=I,I};for(m({type:"bos"});g<c;)if(o=s[s.length-1],h=d(),!(h===tie||h===eie)){if(h===wB){m({type:"text",value:(e.keepEscaping?h:"")+d()});continue}if(h===PN){m({type:"text",value:"\\"+h});continue}if(h===SN){l++;let I=!0,w;for(;g<c&&(w=d());){if(h+=w,w===SN){l++;continue}if(w===wB){h+=d();continue}if(w===PN&&(l--,l===0))break}m({type:"text",value:h});continue}if(h===Wre){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===zre){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===Zre||h===$re||h===qre){let I=h,w;for(e.keepQuotes!==!0&&(h="");g<c&&(w=d());){if(w===wB){h+=w+d();continue}if(w===I){e.keepQuotes===!0&&(h+=w);break}h+=w}m({type:"text",value:h});continue}if(h===Vre){u++;let I=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=m({type:"brace",open:!0,close:!1,dollar:I,depth:u,commas:0,ranges:0,nodes:[]}),s.push(o),m({type:"open",value:h});continue}if(h===Xre){if(o.type!=="brace"){m({type:"text",value:h});continue}let I="close";o=s.pop(),o.close=!0,m({type:I,value:h}),u--,o=s[s.length-1];continue}if(h===Jre&&u>0){if(o.ranges>0){o.ranges=0;let I=o.nodes.shift();o.nodes=[I,{type:"text",value:Gre(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===_re&&u>0&&o.commas===0){let I=o.nodes;if(u===0||I.length===0){m({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){I.pop();let w=I[I.length-1];w.value+=a.value+h,a=w,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let I=s[s.length-1],w=I.nodes.indexOf(o);I.nodes.splice(w,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};bN.exports=rie});var FN=C((h2e,kN)=>{"use strict";var vN=yd(),iie=IN(),nie=BN(),sie=xN(),xi=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=xi.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(xi.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};xi.parse=(t,e={})=>sie(t,e);xi.stringify=(t,e={})=>typeof t=="string"?vN(xi.parse(t,e),e):vN(t,e);xi.compile=(t,e={})=>(typeof t=="string"&&(t=xi.parse(t,e)),iie(t,e));xi.expand=(t,e={})=>{typeof t=="string"&&(t=xi.parse(t,e));let r=nie(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};xi.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?xi.compile(t,e):xi.expand(t,e);kN.exports=xi});var tu=C((f2e,RN)=>{"use strict";var oie=require("path"),jn="\\\\/",NN=`[^${jn}]`,ws="\\.",aie="\\+",Aie="\\?",wd="\\/",lie="(?=.)",LN="[^/]",QB=`(?:${wd}|$)`,MN=`(?:^|${wd})`,bB=`${ws}{1,2}${QB}`,cie=`(?!${ws})`,gie=`(?!${MN}${bB})`,uie=`(?!${ws}{0,1}${QB})`,hie=`(?!${bB})`,fie=`[^.${wd}]`,pie=`${LN}*?`,KN={DOT_LITERAL:ws,PLUS_LITERAL:aie,QMARK_LITERAL:Aie,SLASH_LITERAL:wd,ONE_CHAR:lie,QMARK:LN,END_ANCHOR:QB,DOTS_SLASH:bB,NO_DOT:cie,NO_DOTS:gie,NO_DOT_SLASH:uie,NO_DOTS_SLASH:hie,QMARK_NO_DOT:fie,STAR:pie,START_ANCHOR:MN},die={...KN,SLASH_LITERAL:`[${jn}]`,QMARK:NN,STAR:`${NN}*?`,DOTS_SLASH:`${ws}{1,2}(?:[${jn}]|$)`,NO_DOT:`(?!${ws})`,NO_DOTS:`(?!(?:^|[${jn}])${ws}{1,2}(?:[${jn}]|$))`,NO_DOT_SLASH:`(?!${ws}{0,1}(?:[${jn}]|$))`,NO_DOTS_SLASH:`(?!${ws}{1,2}(?:[${jn}]|$))`,QMARK_NO_DOT:`[^.${jn}]`,START_ANCHOR:`(?:^|[${jn}])`,END_ANCHOR:`(?:[${jn}]|$)`},Cie={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:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_ Line truncated
Please report this to https://github.com/szmarczak/http2-wrapper/`);d(m)}return}i[0].resolve(f);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let l=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let g=`${a}:${o}`,u=!1;try{let h=yce.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(g),...r});h[ii]=0,h[xl]=!1;let f=()=>h[ii]<h.remoteSettings.maxConcurrentStreams,d=!0;h.socket.once("session",I=>{this.tlsSessionCache.set(g,I)}),h.once("error",I=>{for(let{reject:w}of i)w(I);this.tlsSessionCache.delete(g)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(u){d&&this._freeSessionsCount--,this._sessionsCount--;let I=this.sessions[o];I.splice(I.indexOf(h),1),I.length===0&&delete this.sessions[o]}else{let I=new Error("Session closed without receiving a SETTINGS frame");I.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of i)w(I);l()}this._tryToCreateNewSession(o,a)});let m=()=>{if(!(!(o in this.queue)||!f())){for(let I of h[sn])if(I in this.queue[o]){let{listeners:w}=this.queue[o][I];for(;w.length!==0&&f();)w.shift().resolve(h);let B=this.queue[o];if(B[I].listeners.length===0&&(delete B[I],Object.keys(B).length===0)){delete this.queue[o];break}if(!f())break}}};h.on("origin",()=>{h[sn]=h.originSet,!!f()&&(m(),NQ(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let I=new Error("Agent has been destroyed");for(let w of i)w.reject(I);h.destroy();return}h[sn]=h.originSet;{let I=this.sessions;if(o in I){let w=I[o];w.splice(Qce(w,h,bce),0,h)}else I[o]=[h]}this._freeSessionsCount+=1,u=!0,this.emit("session",h),m(),l(),h[ii]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),h.on("remoteSettings",()=>{m(),NQ(this.sessions[o],h)})}),h[bU]=h.request,h.request=(I,w)=>{if(h[xl])throw new Error("The session is gracefully closing. No new streams are allowed.");let B=h[bU](I,w);return h.ref(),++h[ii],h[ii]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,B.once("close",()=>{if(d=f(),--h[ii],!h.destroyed&&!h.closed&&(Dce(this.sessions[o],h),f()&&!h.closed)){d||(this._freeSessionsCount++,d=!0);let P=h[ii]===0;P&&h.unref(),P&&(this._freeSessionsCount>this.maxFreeSessions||h[xl])?h.close():(NQ(this.sessions[o],h),m())}}),B}}catch(h){for(let f of i)f.reject(h);l()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(l){o(l)}}}])})}createConnection(e,r){return vs.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),Ece.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[ii]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return SU({agent:this,isFree:!0})}get busySessions(){return SU({agent:this,isFree:!1})}};vs.kCurrentStreamsCount=ii;vs.kGracefullyClosing=xl;QU.exports={Agent:vs,globalAgent:new vs}});var MQ=C((ije,PU)=>{"use strict";var{Readable:Sce}=require("stream"),xU=class extends Sce{constructor(e,r){super({highWaterMark:r,autoDestroy:!1});this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};PU.exports=xU});var KQ=C((nje,kU)=>{"use strict";kU.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var FU=C((sje,vU)=>{"use strict";vU.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var NU=C((oje,RU)=>{"use strict";RU.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var MU=C((Aje,LU)=>{"use strict";var kl=(t,e,r)=>{LU.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n) Line truncated
`).reverse(),a=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
`).reverse();for(;a.length!==0&&a[0]===o[0];)o.shift();this.stack=`${this.stack.slice(0,s)}${o.reverse().join(`
`)}${a.reverse().join(`
`)}`}}};Ct.RequestError=Br;var c0=class extends Br{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}};Ct.MaxRedirectsError=c0;var g0=class extends Br{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}};Ct.HTTPError=g0;var u0=class extends Br{constructor(e,r){super(e.message,e,r);this.name="CacheError"}};Ct.CacheError=u0;var h0=class extends Br{constructor(e,r){super(e.message,e,r);this.name="UploadError"}};Ct.UploadError=h0;var f0=class extends Br{constructor(e,r,i){super(e.message,e,i);this.name="TimeoutError",this.event=e.event,this.timings=r}};Ct.TimeoutError=f0;var DC=class extends Br{constructor(e,r){super(e.message,e,r);this.name="ReadError"}};Ct.ReadError=DC;var p0=class extends Br{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};Ct.UnsupportedProtocolError=p0;var Lge=["socket","connect","continue","information","upgrade","timeout"],l0=class extends E1.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0});this[Fl]=0,this[Nl]=0,this.requestInitialized=!1,this[QC]=new Set,this.redirects=[],this[Ll]=!1,this[bC]=!1,this[Mu]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof o0.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:l}=r;if((o||a||l)&&this._lockWrite(),Ct.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){te.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof hge.ReadStream&&await Fge(this.options.body);let{url:g}=this.options;if(!g)throw new TypeError("Missing `url` property");if(this.requestUrl=g.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[xr])===null||c===void 0||c.destroy();return}for(let u of this[Mu])u();this[Mu].length=0,this.requestInitialized=!0}catch(g){if(g instanceof Br){this._beforeError(g);return}this.destroyed||this.destroy(g)}})()}static normalizeArguments(e,r,i){var n,s,o,a,l;let c=r;if(te.default.object(e)&&!te.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),te.default.urlInstance(r.url)&&(r.url=new Qo.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),te.assert.any([te.default.string,te.default.undefined],r.method),te.assert.any([te.default.object,te.default.undefined],r.headers),te.assert.any([te.default.string,te.default.urlInstance,te.default.undefined],r.prefixUrl),te.assert.any([te.default.object,te.default.undefined],r.cookieJar),te.assert.any([te.default.object,te.default.string,te.default.undefined],r.searchParams),te.assert.any([te.default.object,te.default.string,te.default.undefined],r.cache),te.assert.any([te.default.object,te.default.number,te.default.undefined],r.timeout),te.assert.any([te.default.object,te.default.undefined],r.context),te.assert.any([te.default.object,te.default.undefined],r.hooks),te.assert.any([te.default.boolean,te.default.undefined],r.decompress),te.assert.any([te.default.boolean,te.default.undefined],r.ignoreInvalidCookies),te.assert.any([te.default.boolean,te.default.undefined],r.followRedirect),te.assert.any([te.default.number,te.default.undefined],r.maxRedirects),te.assert.any([te.default.boolean,te.default.undefined],r.throwHttpErrors),te.assert.any([te.default.boolean,te.default.undefined],r.http2),te.assert.any([te.default.boolean,te.default.undefined],r.allowGetBody),te.assert.any([te.default.string,te.default.undefined],r.localAddress),te.assert.any([D1.isDnsLookupIpVersion,te.default.undefined],r.dnsLookupIpVersion),te.assert.any([te.default.object,te.default.undefined],r.https),te.assert.any([te.default.boolean,te.default.undefined],r.rejectUnauthorized),r.https&&(te.assert.any([te.default.boolean,te.default.undefined],r.https.rejectUnauthorized),te.assert.any([te.default.function_,te.default.undefined],r.https.checkServerIdentity),te.assert.any([te.default.string,te.default.object,te.default.array,te.default.undefined],r.https.certificateAuthority),te.assert.any([te.default.string,te.default.object,te.default.array,te.default.undefined],r.https.key),te.assert.any([te.default.string,te.default.object,te.default.array,te.default.undefined],r.https.certificate),te.assert.any([te.default.string,te.default.undefined],r.https.passphrase),te.assert.any([te.default.string,te.default.buffer,te.default.array,te.default.undefined],r.https.Line truncated
`,u.message,u.stack);var h=new Error("tunneling socket could not be established, cause="+u.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(n)}};Rs.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function e2(t,e){var r=this;Rs.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=w0({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=aue.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function t2(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function w0(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var Po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Po=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Po=function(){};Ml.debug=Po});var n2=C((Tje,i2)=>{i2.exports=r2()});var G2=C((JGe,x0)=>{var d2=Object.assign({},require("fs")),X=typeof X!="undefined"?X:{},Uu={},ko;for(ko in X)X.hasOwnProperty(ko)&&(Uu[ko]=X[ko]);var k0=[],C2="./this.program",m2=function(t,e){throw e},I2=!1,Ta=!0,Yu="";function Bue(t){return X.locateFile?X.locateFile(t,Yu):Yu+t}var NC,v0,LC,F0;Ta&&(I2?Yu=require("path").dirname(Yu)+"/":Yu=__dirname+"/",NC=function(e,r){var i=E2(e);return i?r?i:i.toString():(LC||(LC=d2),F0||(F0=require("path")),e=F0.normalize(e),LC.readFileSync(e,r?null:"utf8"))},v0=function(e){var r=NC(e,!0);return r.buffer||(r=new Uint8Array(r)),MC(r.buffer),r},process.argv.length>1&&(C2=process.argv[1].replace(/\\/g,"/")),k0=process.argv.slice(2),typeof x0!="undefined"&&(x0.exports=X),m2=function(t){process.exit(t)},X.inspect=function(){return"[Emscripten Module object]"});var KC=X.print||console.log.bind(console),jr=X.printErr||console.warn.bind(console);for(ko in Uu)Uu.hasOwnProperty(ko)&&(X[ko]=Uu[ko]);Uu=null;X.arguments&&(k0=X.arguments);X.thisProgram&&(C2=X.thisProgram);X.quit&&(m2=X.quit);var wue=16;function Que(t,e){return e||(e=wue),Math.ceil(t/e)*e}var bue=0,Due=function(t){bue=t},R0;X.wasmBinary&&(R0=X.wasmBinary);var y2;X.noExitRuntime&&(y2=X.noExitRuntime);typeof WebAssembly!="object"&&lr("no native wasm support detected");function Sue(t,e,r){switch(e=e||"i8",e.charAt(e.length-1)==="*"&&(e="i32"),e){case"i1":return si[t>>0];case"i8":return si[t>>0];case"i16":return N0[t>>1];case"i32":return Te[t>>2];case"i64":return Te[t>>2];case"float":return B2[t>>2];case"double":return w2[t>>3];default:lr("invalid type for getValue: "+e)}return null}var Ua,L0=new WebAssembly.Table({initial:31,maximum:31,element:"anyfunc"}),Q2=!1,Pue=0;function MC(t,e){t||lr("Assertion failed: "+e)}function b2(t){var e=X["_"+t];return MC(e,"Cannot call unknown function "+t+", make sure it is exported"),e}function Fue(t,e,r,i,n){var s={string:function(f){var d=0;if(f!=null&&f!==0){var m=(f.length<<2)+1;d=P2(m),S2(f,d,m)}return d},array:function(f){var d=P2(f.length);return xue(f,d),d}};function o(f){return e==="string"?D2(f):e==="boolean"?Boolean(f):f}var a=b2(t),l=[],c=0;if(i)for(var g=0;g<i.length;g++){var u=s[r[g]];u?(c===0&&(c=kue()),l[g]=u(i[g])):l[g]=i[g]}var h=a.apply(null,l);return h=o(h),c!==0&&vue(c),h}function Rue(t,e,r,i){r=r||[];var n=r.every(function(o){return o==="number"}),s=e!=="string";return s&&n&&!i?b2(t):function(){return Fue(t,e,r,arguments,i)}}var x2=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Kl(t,e,r){for(var i=e+r,n=e;t[n]&&!(n>=i);)++n;if(n-e>16&&t.subarray&&x2)return x2.decode(t.subarray(e,n));for(var s="";e<n;){var o=t[e++];if(!(o&128)){s+=String.fromCharCode(o);continue}var a=t[e++]&63;if((o&224)==192){s+=String.fromCharCode((o&31)<<6|a);continue}var l=t[e++]&63;if((o&240)==224?o=(o&15)<<12|a<<6|l:o=(o&7)<<18|a<<12|l<<6|t[e++]&63,o<65536)s+=String.fromCharCode(o);else{var c=o-65536;s+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return s}function D2(t,e){return t?Kl(Ol,t,e):""}function OC(t,e,r,i){if(!(i>0))return 0;for(var n=r,s=r+i-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343){var l=t.charCodeAt(++o);a=65536+((a&1023)<<10)|l&1023}if(a<=127){if(r>=s)break;e[r++]=a}else if(a<=2047){if(r+1>=s)break;e[r++]=192|a>>6,e[r++]=128|a&63}else if(a<=65535){if(r+2>=s)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|a&63}else{if(r+3>=s)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|a&63}}return e[r]=0,r-n}function S2(t,e,r){return OC(t,Ol,e,r)}function TC(t){for(var e=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i>=55296&&i<=57343&&(i=65536+((i&1023)<<10)|t.charCodeAt(++r)&1023),i<=127?++e:i<=2047?e+=2:i<=65535?e+=3:e+=4}return e}function M0(t){var e=TC(t)+1,r=k2(e);return r&&OC(t,si,r,e),r}function xue(t,e){si.set(t,e)}var v2=65536;function Nue(t,e){return t%e>0&&(t+ Line truncated
`+X.extraStackTrace()),Zue(t)}function YC(t,e){var r=new Date(Te[t>>2]*1e3);Te[e>>2]=r.getUTCSeconds(),Te[e+4>>2]=r.getUTCMinutes(),Te[e+8>>2]=r.getUTCHours(),Te[e+12>>2]=r.getUTCDate(),Te[e+16>>2]=r.getUTCMonth(),Te[e+20>>2]=r.getUTCFullYear()-1900,Te[e+24>>2]=r.getUTCDay(),Te[e+36>>2]=0,Te[e+32>>2]=0;var i=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),n=(r.getTime()-i)/(1e3*60*60*24)|0;return Te[e+28>>2]=n,YC.GMTString||(YC.GMTString=M0("GMT")),Te[e+40>>2]=YC.GMTString,e}function the(t,e){return YC(t,e)}var st={splitPath:function(t){var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return e.exec(t).slice(1)},normalizeArray:function(t,e){for(var r=0,i=t.length-1;i>=0;i--){var n=t[i];n==="."?t.splice(i,1):n===".."?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r;r--)t.unshift("..");return t},normalize:function(t){var e=t.charAt(0)==="/",r=t.substr(-1)==="/";return t=st.normalizeArray(t.split("/").filter(function(i){return!!i}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=st.splitPath(t),r=e[0],i=e[1];return!r&&!i?".":(i&&(i=i.substr(0,i.length-1)),r+i)},basename:function(t){if(t==="/")return"/";t=st.normalize(t),t=t.replace(/\/$/,"");var e=t.lastIndexOf("/");return e===-1?t:t.substr(e+1)},extname:function(t){return st.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return st.normalize(t.join("/"))},join2:function(t,e){return st.normalize(t+"/"+e)}};function HC(t){return Te[rhe()>>2]=t,t}var Wn={resolve:function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var i=r>=0?arguments[r]:E.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";t=i+"/"+t,e=i.charAt(0)==="/"}return t=st.normalizeArray(t.split("/").filter(function(n){return!!n}),!e).join("/"),(e?"/":"")+t||"."},relative:function(t,e){t=Wn.resolve(t).substr(1),e=Wn.resolve(e).substr(1);function r(c){for(var g=0;g<c.length&&c[g]==="";g++);for(var u=c.length-1;u>=0&&c[u]==="";u--);return g>u?[]:c.slice(g,u-g+1)}for(var i=r(t.split("/")),n=r(e.split("/")),s=Math.min(i.length,n.length),o=s,a=0;a<s;a++)if(i[a]!==n[a]){o=a;break}for(var l=[],a=o;a<i.length;a++)l.push("..");return l=l.concat(n.slice(o)),l.join("/")}},vo={ttys:[],init:function(){},shutdown:function(){},register:function(t,e){vo.ttys[t]={input:[],output:[],ops:e},E.registerDevice(t,vo.stream_ops)},stream_ops:{open:function(t){var e=vo.ttys[t.node.rdev];if(!e)throw new E.ErrnoError(43);t.tty=e,t.seekable=!1},close:function(t){t.tty.ops.flush(t.tty)},flush:function(t){t.tty.ops.flush(t.tty)},read:function(t,e,r,i,n){if(!t.tty||!t.tty.ops.get_char)throw new E.ErrnoError(60);for(var s=0,o=0;o<i;o++){var a;try{a=t.tty.ops.get_char(t.tty)}catch(l){throw new E.ErrnoError(29)}if(a===void 0&&s===0)throw new E.ErrnoError(6);if(a==null)break;s++,e[r+o]=a}return s&&(t.node.timestamp=Date.now()),s},write:function(t,e,r,i,n){if(!t.tty||!t.tty.ops.put_char)throw new E.ErrnoError(60);try{for(var s=0;s<i;s++)t.tty.ops.put_char(t.tty,e[r+s])}catch(o){throw new E.ErrnoError(29)}return i&&(t.node.timestamp=Date.now()),s}},default_tty_ops:{get_char:function(t){if(!t.input.length){var e=null;if(Ta){var r=256,i=Buffer.alloc?Buffer.alloc(r):new Buffer(r),n=0;try{n=LC.readSync(process.stdin.fd,i,0,r,null)}catch(s){if(s.toString().indexOf("EOF")!=-1)n=0;else throw s}n>0?e=i.slice(0,n).toString("utf-8"):e=null}else typeof window!="undefined"&&typeof window.prompt=="function"?(e=window.prompt("Input: "),e!==null&&(e+=`
`)):typeof readline=="function"&&(e=readline(),e!==null&&(e+=`
`));if(!e)return null;t.input=j0(e,!0)}return t.input.shift()},put_char:function(t,e){e===null||e===10?(KC(Kl(t.output,0)),t.output=[]):e!=0&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(KC(Kl(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){e===null||e===10?(jr(Kl(t.output,0)),t.output=[]):e!=0&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(jr(Kl(t.output,0)),t.output=[])}}},nt={ops_table:null,mount:function(t){return nt.createNode(null,"/",16384|511,0)},createNode:function(t,e,r,i){if(E.isBlkdev(r)||E.isFIFO(r))throw new E.ErrnoError(63);nt.ops_table||(nt.ops_table={dir:{node:{getattr:nt.node_ops.getattr,setattr:nt.node_ops.setattr,lookup:nt.node_ops.lookup,mknod:nt.node_ops.mknod,rename:nt.node_ops.rename,unlink:nt.node_ops.unlink,rmdir:nt.node_ops.rmdir,readdir:nt.node_ops.readdir,symlink:nt.node_ops.symlink},stream:{llseek:nt.stream_ops.llseek}},file:{node:{getattr:nt.node_ops.getattr,setattr:nt.node_ops.setattr},stream:{llseek:nt.stream_ops.llseek,read:nt.stream_ops.read,write:nt.stream_ops.write,allocate:nt.stream_ops.allocate,mmap:nt.stream_ops.mmap,msync:nt.stream_ops.msync}},link:{node:{getattr:nt.node_ops.getattr,setattr:nt.node_ops.setattr,readlink:nt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:nt.node_ops.getattr,setattr:nt.node_ops.setattr},stream:E.chrdev_stream_ops}});var n=E.createNode(t,e,r,i);return E.isDir(n.mode)?(n.node_ops=nt.ops_table.dir.node,n.stream_ops=nt.ops_table.dir.stream,n.contents={}):E.isFile(n.mode)?(n.node_ops=nt.ops_table.file.node,n.stream_ops=nt.ops_table.file.stream,n.usedBytes=0,n.contents=null):E.isLink(n.mode)?(n.node_ops=nt.ops_table.link.node,n.stream_ops=nt.ops_table.link.stream):E.isChrdev(n.mode)&&(n.node_ops=nt.ops_table.chrdev.node,n.stream_ops=nt.ops_table.chrdev.stream),n.timestamp=Date.now(),t&&(t.contents[e]=n),n},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],r=0;r<t.usedBytes;++r)e.push(t.contents[r]);return e}return t.contents},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,e){var r=t.contents?t.contents.length:0;if(!(r>=e)){var i=1024*1024;e=Math.max(e,r*(r<i?2:1.125)>>>0),r!=0&&(e=Math.max(e,256));var n=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(e==0){t.contents=null,t.usedBytes=0;return}if(!t.contents||t.contents.subarray){var r=t.contents;t.contents=new Uint8Array(e),r&&t.contents.set(r.subarray(0,Math.min(e,t.usedBytes))),t.usedBytes=e;return}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length<e;)t.contents.push(0);t.usedBytes=e}},node_ops:{getattr:function(t){var e={};return e.dev=E.isChrdev(t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,E.isDir(t.mode)?e.size=4096:E.isFile(t.mode)?e.size=t.usedBytes:E.isLink(t.mode)?e.size=t.link.length:e.size=0,e.atime=new Date(t.timestamp),e.mtime=new Date(t.timestamp),e.ctime=new Date(t.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(t,e){e.mode!==void 0&&(t.mode=e.mode),e.timestamp!==void 0&&(t.timestamp=e.timestamp),e.size!==void 0&&nt.resizeFileStorage(t,e.size)},lookup:function(t,e){throw E.genericErrors[44]},mknod:function(t,e,r,i){return nt.createNode(t,e,r,i)},rename:function(t,e,r){if(E.isDir(t.mode)){var i;try{i=E.lookupNode(e,r)}catch(s){}if(i)for(var n in i.contents)throw new E.ErrnoError(55)}delete t.parent.contents[t.name],t.name=r,e.contents[r]=t,t.parent=e},unlink:function(t,e){delete t.contents[e]},rmdir:function(t,e){var r=E.lookupNode(t,e);for(var i in r.contents)throw new E.ErrnoError(55);delete t.contents[e]},readdir:function(t){var e=[".",".."];for(var r in t.contents)!t.contents.hasOwnProperty(r)||e.push(r);return e},symlink:function(t,e,r){var i=nt.createNode(t,e,511|40960,0);return i.link=r,i},readlink:function(t){if(!E.isLink(t.mode))throw new E.ErrnoError(28);return t.link}},stream_ops:{read:function(t,e,r,i,n){var s=t.node.contents;if(n>=t.node.usedBytes)return 0;var o=Math.min(t.node.usedBytes-n,i);if(o>8&&s.subarray)e.set(s.subarray(n,n+o),r);else for(var a=0;a<o;a++)e[r+a]=s[n+a];return o},write:function(t,e,r,i,n,s){if(e.buffer===si.buffer&&(s=!1),!i)return 0;var o=t.node;if(o.timestamp=Date.now(),e.subarray&&(!o.contents||o.contents.subarray)){if(s)return o.contents=e.subarray(r,r+i),o.usedBytes=i,i;if(o.usedBytes===0&&n===0)return o.contents=e.slice(r,r+i),o.usedBytes=i,i;if(n+i<=o.usedBytes)return o.contents.set(e.subarray(r,r+i),n),i}if(nt.expandFileStorage(o,n+i),o.contents.subarray&&e.subarray)o.contents.set(e.subarray(r,r+i),n);else for(var a=0;a<i;a++)o.contents[n+a]=e[r+a];return o.usedBytes=Math.max(o.usedBytes,n+i),i},llseek:function(t,e,r){var i=e;if(r===1?i+=t.position:r===2&&E.isFile(t.node.mode)&& Line truncated
\x85\u2028\u2029`.indexOf(this.buffer.charAt(n-1))===-1;)if(n-=1,this.position-n>r/2-1){i=" ... ",n+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),tY.repeat(" ",e)+i+a+s+`
`+tY.repeat(" ",e+this.position-n+i.length)+"^"};W0.prototype.toString=function(e){var r,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),e||(r=this.getSnippet(),r&&(i+=`:
`+r)),i};eY.exports=W0});var wr=C((rqe,iY)=>{"use strict";var nY=Ul(),Ohe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],The=["scalar","sequence","mapping"];function Uhe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Yhe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Ohe.indexOf(r)===-1)throw new nY('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=Uhe(e.styleAliases||null),The.indexOf(this.kind)===-1)throw new nY('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}iY.exports=Yhe});var _a=C((iqe,sY)=>{"use strict";var oY=Ja(),VC=Ul(),Hhe=wr();function z0(t,e,r){var i=[];return t.include.forEach(function(n){r=z0(n,e,r)}),t[e].forEach(function(n){r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&i.push(o)}),r.push(n)}),r.filter(function(n,s){return i.indexOf(s)===-1})}function jhe(){var t={scalar:{},sequence:{},mapping:{},fallback:{}},e,r;function i(n){t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Yl(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&e.loadKind!=="scalar")throw new VC("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=z0(this,"implicit",[]),this.compiledExplicit=z0(this,"explicit",[]),this.compiledTypeMap=jhe(this.compiledImplicit,this.compiledExplicit)}Yl.DEFAULT=null;Yl.create=function(){var e,r;switch(arguments.length){case 1:e=Yl.DEFAULT,r=arguments[0];break;case 2:e=arguments[0],r=arguments[1];break;default:throw new VC("Wrong number of arguments for Schema.create function")}if(e=oY.toArray(e),r=oY.toArray(r),!e.every(function(i){return i instanceof Yl}))throw new VC("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Hhe}))throw new VC("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Yl({include:e,explicit:r})};sY.exports=Yl});var AY=C((nqe,aY)=>{"use strict";var Ghe=wr();aY.exports=new Ghe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})});var cY=C((sqe,lY)=>{"use strict";var qhe=wr();lY.exports=new qhe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})});var uY=C((oqe,gY)=>{"use strict";var Jhe=wr();gY.exports=new Jhe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})});var XC=C((aqe,hY)=>{"use strict";var _he=_a();hY.exports=new _he({explicit:[AY(),cY(),uY()]})});var pY=C((Aqe,fY)=>{"use strict";var Whe=wr();function zhe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Vhe(){return null}function Xhe(t){return t===null}fY.exports=new Whe("tag:yaml.org,2002:null",{kind:"scalar",resolve:zhe,construct:Vhe,predicate:Xhe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var CY=C((lqe,dY)=>{"use strict";var Zhe=wr();function $he(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function efe(t){return t==="true"||t==="True"||t==="TRUE"}function tfe(t){return Object.prototype.toString.call(t)==="[object Boolean]"}dY.exports=new Zhe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$he,construct:efe,predicate:tfe,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})});var IY=C((cqe,mY)=>{"use strict";var rfe=Ja(),ife=wr();function nfe(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function sfe(t){return 48<=t&&t<=55}function ofe(t){return 48<=t&&t<=57}function afe(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!nfe(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}for(;r<e;r++)if(n=t[r],n!=="_"){if(!sfe(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(n===":")break;if(!ofe(t.charCodeAt(r)))return!1;i=!0}return!i||n==="_"?!1:n!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)) Line truncated
\r`;function Dfe(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Z0;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8==0}function Sfe(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Z0,o=0,a=[];for(e=0;e<n;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),Wa?Wa.from?Wa.from(a):new Wa(a):a}function Pfe(t){var e="",r=0,i,n,s=t.length,o=Z0;for(i=0;i<s;i++)i%3==0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function xfe(t){return Wa&&Wa.isBuffer(t)}vY.exports=new bfe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dfe,construct:Sfe,predicate:xfe,represent:Pfe})});var LY=C((Cqe,NY)=>{"use strict";var kfe=wr(),vfe=Object.prototype.hasOwnProperty,Ffe=Object.prototype.toString;function Rfe(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,Ffe.call(n)!=="[object Object]")return!1;for(s in n)if(vfe.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Nfe(t){return t!==null?t:[]}NY.exports=new kfe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Rfe,construct:Nfe})});var KY=C((mqe,MY)=>{"use strict";var Lfe=wr(),Mfe=Object.prototype.toString;function Kfe(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],Mfe.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Ofe(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}MY.exports=new Lfe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Kfe,construct:Ofe})});var TY=C((Iqe,OY)=>{"use strict";var Tfe=wr(),Ufe=Object.prototype.hasOwnProperty;function Yfe(t){if(t===null)return!0;var e,r=t;for(e in r)if(Ufe.call(r,e)&&r[e]!==null)return!1;return!0}function Hfe(t){return t!==null?t:{}}OY.exports=new Tfe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yfe,construct:Hfe})});var Hl=C((Eqe,UY)=>{"use strict";var jfe=_a();UY.exports=new jfe({include:[X0()],implicit:[PY(),kY()],explicit:[RY(),LY(),KY(),TY()]})});var HY=C((yqe,YY)=>{"use strict";var Gfe=wr();function qfe(){return!0}function Jfe(){}function _fe(){return""}function Wfe(t){return typeof t=="undefined"}YY.exports=new Gfe("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:qfe,construct:Jfe,predicate:Wfe,represent:_fe})});var GY=C((Bqe,jY)=>{"use strict";var zfe=wr();function Vfe(t){if(t===null||t.length===0)return!1;var e=t,r=/\/([gim]*)$/.exec(t),i="";return!(e[0]==="/"&&(r&&(i=r[1]),i.length>3||e[e.length-i.length-1]!=="/"))}function Xfe(t){var e=t,r=/\/([gim]*)$/.exec(t),i="";return e[0]==="/"&&(r&&(i=r[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)}function Zfe(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function $fe(t){return Object.prototype.toString.call(t)==="[object RegExp]"}jY.exports=new zfe("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Vfe,construct:Xfe,predicate:$fe,represent:Zfe})});var _Y=C((wqe,qY)=>{"use strict";var ZC;try{JY=require,ZC=JY("esprima")}catch(t){typeof window!="undefined"&&(ZC=window.esprima)}var JY,epe=wr();function tpe(t){if(t===null)return!1;try{var e="("+t+")",r=ZC.parse(e,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch(i){return!1}}function rpe(t){var e="("+t+")",r=ZC.parse(e,{range:!0}),i=[],n;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){i.push(s.name)}),n=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(i,e.slice(n[0]+1,n[1]-1)):new Function(i,"return "+e.slice(n[0],n[1]))}function ipe(t){return t.toString()}function npe(t){return Object.prototype.toString.call(t)==="[object Function]"}qY.exports=new epe("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:tpe,construct:rpe,predicate:npe,represent:ipe})});var _u=C((Qqe,WY)=>{"use strict";var zY=_a();WY.exports=zY.DEFAULT=new zY({include:[Hl()],explicit:[HY(),GY(),_Y()]})});var gH=C((bqe,Wu)=>{"use strict";var zn=Ja(),VY=Ul(),spe=rY(),$0=Hl(),ope=_u(),za=Object.prototype.hasOwnProperty,$C=1,XY=2,ZY=3,em=4,eb=1,ape=2,$Y=3,Ape=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFF Line truncated
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function fpe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var iH=new Array(256),nH=new Array(256);for(var Gl=0;Gl<256;Gl++)iH[Gl]=rH(Gl)?1:0,nH[Gl]=rH(Gl);function ppe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ope,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function sH(t,e){return new VY(e,new spe(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function Xe(t,e){throw sH(t,e)}function tm(t,e){t.onWarning&&t.onWarning.call(null,sH(t,e))}var oH={YAML:function(e,r,i){var n,s,o;e.version!==null&&Xe(e,"duplication of %YAML directive"),i.length!==1&&Xe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Xe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Xe(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&tm(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Xe(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],eH.test(n)||Xe(e,"ill-formed tag handle (first argument) of the TAG directive"),za.call(e.tagMap,n)&&Xe(e,'there is a previously declared suffix for "'+n+'" tag handle'),tH.test(s)||Xe(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=s}};function Fo(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Xe(t,"expected valid JSON character");else Ape.test(a)&&Xe(t,"the stream contains non-printable characters");t.result+=a}}function aH(t,e,r,i){var n,s,o,a;for(zn.isObject(r)||Xe(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],za.call(e,s)||(e[s]=r[s],i[s]=!0)}function ql(t,e,r,i,n,s,o,a){var l,c;if(n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)aH(t,e,s[l],r);else aH(t,e,s,r);else!t.json&&!za.call(r,n)&&za.call(e,n)&&(t.line=o||t.line,t.position=a||t.position,Xe(t,"duplicated mapping key")),e[n]=s,delete r[n];return e}function tb(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Xe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function dr(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Va(n);)n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Vn(n))for(tb(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&tm(t,"deficient indentation"),i}function rm(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ei(r)))}function rb(t,e){e===1?t.result+=" ":e>1&&(t.result+=zn.repeat(`
`,e-1))}function dpe(t,e,r){var i,n,s,o,a,l,c,g,u=t.kind,h=t.result,f;if(f=t.input.charCodeAt(t.position),Ei(f)||jl(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),Ei(n)||r&&jl(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),Ei(n)||r&&jl(n))break}else if(f===35){if(i=t.input.charCodeAt(t.position-1),Ei(i))break}else{if(t.position===t.lineStart&&rm(t)||r&&jl(f))break;if(Vn(f))if(l=t.line,c=t.lineStart,g=t.lineIndent,dr(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=g;break}}a&&(Fo(t,s,o,!1),rb(t,t.line-l),s=o=t.position,a=!1),Va(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return Fo(t,s,o,!1),t.result?!0:(t.kind=u,t.result=h,!1)}function Cpe(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Fo(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Vn(r)?(Fo(t,i,n,!0),rb(t,dr(t,!1,e)),i=n=t.position):t.position===t.lineStart&&rm(t)?Xe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Xe(t,"unexpected end of the stream within a single quoted scalar")}function mpe(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Fo(t,r,t.position,!0),t.position++,!0;if(a===92){if(Fo(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Vn(a))dr(t,!1,e);else if(a<256&&iH[a])t.result+=nH[a],t.position++;else if((o=upe(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=gpe(a))>=0?s=(s<<4)+o:Xe(t,"expected hexadecimal character");t.result+=fpe(s),t.position++}else Xe(t,"unknown escape sequence");r=i=t.position}else Vn(a)?(Fo(t,r,i,!0),rb(t,dr(t,!1,e)),r=i=t.position):t.position===t.lineStart&&rm(t)?Xe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Xe(t,"unexpected end of the stream within a double quoted scalar")}function Ipe(t,e){var r=!0,i,n=t.tag,s,o=t.anchor,a,l,c,g,u,h={},f,d,m,I;if(I=t.input.charCodeAt(t.position),I===91)l=93,u=!1,s=[];else if(I===123)l=125,u=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),I=t.input.charCodeAt(++t.position);I!==0;){if(dr(t,!0,e),I=t.input.charCodeAt(t.position),I===l)return t.position++,t.tag=n,t.anchor=o,t.kind=u?"mapping":"sequence",t.result=s,!0;r||Xe(t,"missed comma between flow collection entries"),d=f=m=null,c=g=!1,I===63&&(a=t.input.charCodeAt(t.position+1),Ei(a)&&(c=g=!0,t.position++,dr(t,!0,e))),i=t.line,Jl(t,e,$C,!1,!0),d=t.tag,f=t.result,dr(t,!0,e),I=t.input.charCodeAt(t.position),(g||t.line===i)&&I===58&&(c=!0,I=t.input.charCodeAt(++t.position),dr(t,!0,e),Jl(t,e,$C,!1,!0),m=t.result),u?ql(t,s,h,d,f,m):c?s.push(ql(t,null,h,d,f,m)):s.push(f),dr(t,!0,e),I=t.input.charCodeAt(t.position),I===44?(r=!0,I=t.input.charCodeAt(++t.position)):r=!1}Xe(t,"unexpected end of the stream within a flow collection")}function Epe(t,e){var r,i,n=eb,s=!1,o=!1,a=e,l=0,c=!1,g,u;if(u=t.input.charCodeAt(t.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)eb===n?n=u===43?$Y:ape:Xe(t,"repeat of a chomping mode identifier");else if((g=hpe(u))>=0)g===0?Xe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Xe(t,"repeat of an indentation width identifier"):(a=e+g-1,o=!0);else break;if(Va(u)){do u=t.input.charCodeAt(++t.position);while(Va(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!Vn(u)&&u!==0)}for(;u!==0;){for(tb(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&u===32;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Vn(u)){l++;continue}if(t.lineIndent<a){n===$Y?t.result+=zn.repeat(`
`,s?1+l:l):n===eb&&s&&(t.result+=`
`);break}for(i?Va(u)?(c=!0,t.result+=zn.repeat(`
`,s?1+l:l)):c?(c=!1,t.result+=zn.repeat(`
`,l+1)):l===0?s&&(t.result+=" "):t.result+=zn.repeat(`
`,l):t.result+=zn.repeat(`
`,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Vn(u)&&u!==0;)u=t.input.charCodeAt(++t.position);Fo(t,r,t.position,!1)}return!0}function AH(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ei(o)));){if(a=!0,t.position++,dr(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Jl(t,e,ZY,!1,!0),s.push(t.result),dr(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Xe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function ype(t,e,r){var i,n,s,o,a=t.tag,l=t.anchor,c={},g={},u=null,h=null,f=null,d=!1,m=!1,I;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),I=t.input.charCodeAt(t.position);I!==0;){if(i=t.input.charCodeAt(t.position+1),s=t.line,o=t.position,(I===63||I===58)&&Ei(i))I===63?(d&&(ql(t,c,g,u,h,null),u=h=f=null),m=!0,d=!0,n=!0):d?(d=!1,n=!0):Xe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,I=i;else if(Jl(t,r,XY,!1,!0))if(t.line===s){for(I=t.input.charCodeAt(t.position);Va(I);)I=t.input.charCodeAt(++t.position);if(I===58)I=t.input.charCodeAt(++t.position),Ei(I)||Xe(t,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(ql(t,c,g,u,h,null),u=h=f=null),m=!0,d=!1,n=!1,u=t.tag,h=t.result;else if(m)Xe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=a,t.anchor=l,!0}else if(m)Xe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=a,t.anchor=l,!0;else break;if((t.line===s||t.lineIndent>e)&&(Jl(t,e,em,!0,n)&&(d?h=t.result:f=t.result),d||(ql(t,c,g,u,h,f,s,o),u=h=f=null),dr(t,!0,-1),I=t.input.charCodeAt(t.position)),t.lineIndent>e&&I!==0)Xe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return d&&ql(t,c,g,u,h,null),m&&(t.tag=a,t.anchor=l,t.kind="mapping",t.result=c),m}function Bpe(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Xe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Xe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ei(o);)o===33&&(i?Xe(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),eH.test(n)||Xe(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),cpe.test(s)&&Xe(t,"tag suffix cannot contain flow indicator characters")}return s&&!tH.test(s)&&Xe(t,"tag name cannot contain such characters: "+s),r?t.tag=s:za.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Xe(t,'undeclared tag handle "'+n+'"'),!0}function wpe(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Xe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ei(r)&&!jl(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Xe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Qpe(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ei(i)&&!jl(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Xe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),t.anchorMap.hasOwnProperty(r)||Xe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],dr(t,!0,-1),!0}function Jl(t,e,r,i,n){var s,o,a,l=1,c=!1,g=!1,u,h,f,d,m;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=em===r||ZY===r,i&&dr(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Bpe(t)||wpe(t);)dr(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||em===r)&&($C===r||XY===r?d=e:d=e+1,m=t.position-t.lineStart,l===1?a&&(AH(t,m)||ype(t,m,d))||Ipe(t,d)?g=!0:(o&&Epe(t,d)||Cpe(t,d)||mpe(t,d)?g=!0:Qpe(t)?(g=!0,(t.tag!==null||t.anchor!==null)&&Xe(t,"alias node should not have any properties")):dpe(t,d,$C===r)&&(g=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(g=a&&AH(t,m))),t.tag!==null&&t.tag!=="!")if(t.tag==="?"){for(u=0,h=t.implicitTypes.length;u<h;u+=1)if(f=t.implicitTypes[u],f.resolve(t.result)){t.result=f.construct(t.result),t.tag=f.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else za.call(t.typeMap[t.kind||"fallback"],t.tag)?(f=t.t Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ppe(t,e);for(r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)bpe(r);return r.documents}function ib(t,e,r){var i=lH(t,r),n,s;if(typeof e!="function")return i;for(n=0,s=i.length;n<s;n+=1)e(i[n])}function cH(t,e){var r=lH(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new VY("expected a single document in the stream, but found more")}}function Dpe(t,e,r){if(typeof e=="function")ib(t,e,zn.extend({schema:$0},r));else return ib(t,zn.extend({schema:$0},r))}function Spe(t,e){return cH(t,zn.extend({schema:$0},e))}Wu.exports.loadAll=ib;Wu.exports.load=cH;Wu.exports.safeLoadAll=Dpe;Wu.exports.safeLoad=Spe});var LH=C((Dqe,nb)=>{"use strict";var zu=Ja(),Vu=Ul(),Ppe=_u(),xpe=Hl(),uH=Object.prototype.toString,hH=Object.prototype.hasOwnProperty,kpe=9,im=10,vpe=32,Fpe=33,Rpe=34,fH=35,Npe=37,Lpe=38,Mpe=39,Kpe=42,pH=44,Ope=45,dH=58,Tpe=62,Upe=63,Ype=64,CH=91,mH=93,Hpe=96,IH=123,jpe=124,EH=125,Gr={};Gr[0]="\\0";Gr[7]="\\a";Gr[8]="\\b";Gr[9]="\\t";Gr[10]="\\n";Gr[11]="\\v";Gr[12]="\\f";Gr[13]="\\r";Gr[27]="\\e";Gr[34]='\\"';Gr[92]="\\\\";Gr[133]="\\N";Gr[160]="\\_";Gr[8232]="\\L";Gr[8233]="\\P";var Gpe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function qpe(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&hH.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function yH(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Vu("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+zu.repeat("0",i-e.length)+e}function Jpe(t){this.schema=t.schema||Ppe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=zu.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=qpe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function BH(t,e){for(var r=zu.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function sb(t,e){return`
`+zu.repeat(" ",t.indent*e)}function _pe(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function wH(t){return t===vpe||t===kpe}function Xu(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==65279||65536<=t&&t<=1114111}function QH(t){return Xu(t)&&t!==65279&&t!==pH&&t!==CH&&t!==mH&&t!==IH&&t!==EH&&t!==dH&&t!==fH}function Wpe(t){return Xu(t)&&t!==65279&&!wH(t)&&t!==Ope&&t!==Upe&&t!==dH&&t!==pH&&t!==CH&&t!==mH&&t!==IH&&t!==EH&&t!==fH&&t!==Lpe&&t!==Kpe&&t!==Fpe&&t!==jpe&&t!==Tpe&&t!==Mpe&&t!==Rpe&&t!==Npe&&t!==Ype&&t!==Hpe}function bH(t){var e=/^\n* /;return e.test(t)}var DH=1,SH=2,PH=3,xH=4,nm=5;function zpe(t,e,r,i,n){var s,o,a=!1,l=!1,c=i!==-1,g=-1,u=Wpe(t.charCodeAt(0))&&!wH(t.charCodeAt(t.length-1));if(e)for(s=0;s<t.length;s++){if(o=t.charCodeAt(s),!Xu(o))return nm;u=u&&QH(o)}else{for(s=0;s<t.length;s++){if(o=t.charCodeAt(s),o===im)a=!0,c&&(l=l||s-g-1>i&&t[g+1]!==" ",g=s);else if(!Xu(o))return nm;u=u&&QH(o)}l=l||c&&s-g-1>i&&t[g+1]!==" "}return!a&&!l?u&&!n(t)?DH:SH:r>9&&bH(t)?nm:l?xH:PH}function Zpe(t,e,r,i){t.dump=function(){if(e.length===0)return"''";if(!t.noCompatMode&&Gpe.indexOf(e)!==-1)return"'"+e+"'";var n=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),o=i||t.flowLevel>-1&&r>=t.flowLevel;function a(l){return _pe(t,l)}switch(zpe(e,o,t.indent,s,a)){case DH:return e;case SH:return"'"+e.replace(/'/g,"''")+"'";case PH:return"|"+kH(e,t.indent)+vH(BH(e,n));case xH:return">"+kH(e,t.indent)+vH(BH(Vpe(e,s),n));case nm:return'"'+Xpe(e,s)+'"';default:throw new Vu("impossible error: invalid scalar style")}}()}function kH(t,e){var r=bH(t)?String(e):"",i=t[t.length-1]===`
`,n=i&&(t[t.length-2]===`
`||t===`
`),s=n?"+":i?"":"-";return r+s+`
`}function vH(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Vpe(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
`);return c=c!==-1?c:t.length,r.lastIndex=c,FH(t.slice(0,c),e)}(),n=t[0]===`
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
`:"")+FH(l,e),n=s}return i}function FH(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
`+t.slice(n,s),n=s+1),o=a;return l+=`
`,t.length-n>e&&o>n?l+=t.slice(n,o)+`
`+t.slice(o+1):l+=t.slice(n),l.slice(1)}function Xpe(t){for(var e="",r,i,n,s=0;s<t.length;s++){if(r=t.charCodeAt(s),r>=55296&&r<=56319&&(i=t.charCodeAt(s+1),i>=56320&&i<=57343)){e+=yH((r-55296)*1024+i-56320+65536),s++;continue}n=Gr[r],e+=!n&&Xu(r)?t[s]:n||yH(r)}return e}function $pe(t,e,r){var i="",n=t.tag,s,o;for(s=0,o=r.length;s<o;s+=1)Xa(t,e,r[s],!1,!1)&&(s!==0&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function ede(t,e,r,i){var n="",s=t.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Xa(t,e+1,r[o],!0,!0)&&((!i||o!==0)&&(n+=sb(t,e)),t.dump&&im===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function tde(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,g;for(o=0,a=s.length;o<a;o+=1)g=t.condenseFlow?'"':"",o!==0&&(g+=", "),l=s[o],c=r[l],!!Xa(t,e,l,!1,!1)&&(t.dump.length>1024&&(g+="? "),g+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),!!Xa(t,e,c,!1,!1)&&(g+=t.dump,i+=g));t.tag=n,t.dump="{"+i+"}"}function rde(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,g,u,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Vu("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)h="",(!i||a!==0)&&(h+=sb(t,e)),c=o[a],g=r[c],!!Xa(t,e+1,c,!0,!0,!0)&&(u=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,u&&(t.dump&&im===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,u&&(h+=sb(t,e)),!!Xa(t,e+1,g,!0,u)&&(t.dump&&im===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function RH(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(t.tag=r?a.tag:"?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,uH.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(hH.call(a.represent,l))i=a.represent[l](e,l);else throw new Vu("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function Xa(t,e,r,i,n,s){t.tag=null,t.dump=r,RH(t,r,!1)||RH(t,r,!0);var o=uH.call(t.dump);i&&(i=t.flowLevel<0||t.flowLevel>e);var a=o==="[object Object]"||o==="[object Array]",l,c;if(a&&(l=t.duplicates.indexOf(r),c=l!==-1),(t.tag!==null&&t.tag!=="?"||c||t.indent!==2&&e>0)&&(n=!1),c&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(a&&c&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(t.dump).length!==0?(rde(t,e,t.dump,n),c&&(t.dump="&ref_"+l+t.dump)):(tde(t,e,t.dump),c&&(t.dump="&ref_"+l+" "+t.dump));else if(o==="[object Array]"){var g=t.noArrayIndent&&e>0?e-1:e;i&&t.dump.length!==0?(ede(t,g,t.dump,n),c&&(t.dump="&ref_"+l+t.dump)):($pe(t,g,t.dump),c&&(t.dump="&ref_"+l+" "+t.dump))}else if(o==="[object String]")t.tag!=="?"&&Zpe(t,t.dump,e,s);else{if(t.skipInvalid)return!1;throw new Vu("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function ide(t,e){var r=[],i=[],n,s;for(ob(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function ob(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)ob(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)ob(t[i[n]],e,r)}function NH(t,e){e=e||{};var r=new Jpe(e);return r.noRefs||ide(t,r),Xa(r,0,t,!0,!0)?r.dump+`
`:""}function nde(t,e){return NH(t,zu.extend({schema:xpe},e))}nb.exports.dump=NH;nb.exports.safeDump=nde});var KH=C((Sqe,tr)=>{"use strict";var sm=gH(),MH=LH();function om(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}tr.exports.Type=wr();tr.exports.Schema=_a();tr.exports.FAILSAFE_SCHEMA=XC();tr.exports.JSON_SCHEMA=V0();tr.exports.CORE_SCHEMA=X0();tr.exports.DEFAULT_SAFE_SCHEMA=Hl();tr.exports.DEFAULT_FULL_SCHEMA=_u();tr.exports.load=sm.load;tr.exports.loadAll=sm.loadAll;tr.exports.safeLoad=sm.safeLoad;tr.exports.safeLoadAll=sm.safeLoadAll;tr.exports.dump=MH.dump;tr.exports.safeDump=MH.safeDump;tr.exports.YAMLException=Ul();tr.exports.MINIMAL_SCHEMA=XC();tr.exports.SAFE_SCHEMA=Hl();tr.exports.DEFAULT_SCHEMA=_u();tr.exports.scan=om("scan");tr.exports.parse=om("parse");tr.exports.compose=om("compose");tr.exports.addConstructor=om("addConstructor")});var TH=C((Pqe,OH)=>{"use strict";var sde=KH();OH.exports=sde});var YH=C((xqe,UH)=>{"use strict";function ode(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}function Za(t,e,r,i){this.message=t,this.expected=e,this.found=r,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Za)}ode(Za,Error);Za.buildMessage=function(t,e){var r={literal:function(c){return`"${n(c.text)}"`},class:function(c){var g="",u;for(u=0;u<c.parts.length;u++)g+=c.parts[u]instanceof Array?`${s(c.parts[u][0])}-${s(c.parts[u][1])}`:s(c.parts[u]);return`[${c.inverted?"^":""}${g}]`},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function i(c){return c.charCodeAt(0).toString(16).toUpperCase()}function n(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(g){return`\\x0${i(g)}`}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(g){return`\\x${i(g)}`})}function s(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(g){return`\\x0${i(g)}`}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(g){return`\\x${i(g)}`})}function o(c){return r[c.type](c)}function a(c){var g=new Array(c.length),u,h;for(u=0;u<c.length;u++)g[u]=o(c[u]);if(g.sort(),g.length>0){for(u=1,h=1;u<g.length;u++)g[u-1]!==g[u]&&(g[h]=g[u],h++);g.length=h}switch(g.length){case 1:return g[0];case 2:return`${g[0]} or ${g[1]}`;default:return`${g.slice(0,-1).join(", ")}, or ${g[g.length-1]}`}}function l(c){return c?`"${n(c)}"`:"end of input"}return`Expected ${a(t)} but ${l(e)} found.`};function ade(t,e){e=e!==void 0?e:{};var r={},i={Start:Cg},n=Cg,s=function(y){return[].concat(...y)},o="-",a=Jt("-",!1),l=function(y){return y},c=function(y){return Object.assign({},...y)},g="#",u=Jt("#",!1),h=fy(),f=function(){return{}},d=":",m=Jt(":",!1),I=function(y,N){return{[y]:N}},w=",",B=Jt(",",!1),P=function(y,N){return N},k=function(y,N,ee){return Object.assign({},...[y].concat(N).map(Ce=>({[Ce]:ee})))},M=function(y){return y},Y=function(y){return y},v=ps("correct indentation"),J=" ",_=Jt(" ",!1),R=function(y){return y.length===Tn*wg},A=function(y){return y.length===(Tn+1)*wg},G=function(){return Tn++,!0},re=function(){return Tn--,!0},Z=function(){return fs()},T=ps("pseudostring"),j=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,Le=En(["\r",`
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),ve=/^[^\r\n\t ,\][{}:#"']/,Je=En(["\r",`
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),V=function(){return fs().replace(/^ *| *$/g,"")},$="--",Ie=Jt("--",!1),ce=/^[a-zA-Z\/0-9]/,fe=En([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ne=/^[^\r\n\t :,]/,pe=En(["\r",`
`," "," ",":",","],!0,!1),Ee="null",le=Jt("null",!1),H=function(){return null},de="true",ie=Jt("true",!1),ke=function(){return!0},et="false",Lt=Jt("false",!1),Mt=function(){return!1},On=ps("string"),Ft='"',Vr=Jt('"',!1),Hi=function(){return""},HA=function(y){return y},lg=function(y){return y.join("")},la=/^[^"\\\0-\x1F\x7F]/,Dp=En(['"',"\\",["\0",""],"\x7F"],!0,!1),cg='\\"',Sp=Jt('\\"',!1),$E=function(){return'"'},Pp="\\\\",ey=Jt("\\\\",!1),xp=function(){return"\\"},kp="\\/",ty=Jt("\\/",!1),ry=function(){return"/"},vp="\\b",ao=Jt("\\b",!1),Ao=function(){return"\b"},Si="\\f",ji=Jt("\\f",!1),Fp=function(){return"\f"},gg="\\n",jA=Jt("\\n",!1),Rp=function(){return`
`},ug="\\r",hg=Jt("\\r",!1),fg=function(){return"\r"},GA="\\t",pg=Jt("\\t",!1),lo=function(){return" "},hs="\\u",iy=Jt("\\u",!1),ny=function(y,N,ee,Ce){return String.fromCharCode(parseInt(`0x${y}${N}${ee}${Ce}`))},sy=/^[0-9a-fA-F]/,oy=En([["0","9"],["a","f"],["A","F"]],!1,!1),ay=ps("blank space"),Np=/^[ \t]/,Lp=En([" "," "],!1,!1),Ay=ps("white space"),Mp=/^[ \t\n\r]/,Kp=En([" "," ",`
`,"\r"],!1,!1),Op=`\r
`,ly=Jt(`\r
`,!1),cy=`
`,gy=Jt(`
`,!1),uy="\r",Tp=Jt("\r",!1),F=0,tt=0,qA=[{line:1,column:1}],Gi=0,JA=[],Re=0,_A;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "${e.startRule}".`);n=i[e.startRule]}function fs(){return t.substring(tt,F)}function Up(){return ca(tt,F)}function hy(y,N){throw N=N!==void 0?N:ca(tt,F),dg([ps(y)],t.substring(tt,F),N)}function uv(y,N){throw N=N!==void 0?N:ca(tt,F),dy(y,N)}function Jt(y,N){return{type:"literal",text:y,ignoreCase:N}}function En(y,N,ee){return{type:"class",parts:y,inverted:N,ignoreCase:ee}}function fy(){return{type:"any"}}function py(){return{type:"end"}}function ps(y){return{type:"other",description:y}}function Yp(y){var N=qA[y],ee;if(N)return N;for(ee=y-1;!qA[ee];)ee--;for(N=qA[ee],N={line:N.line,column:N.column};ee<y;)t.charCodeAt(ee)===10?(N.line++,N.column=1):N.column++,ee++;return qA[y]=N,N}function ca(y,N){var ee=Yp(y),Ce=Yp(N);return{start:{offset:y,line:ee.line,column:ee.column},end:{offset:N,line:Ce.line,column:Ce.column}}}function je(y){F<Gi||(F>Gi&&(Gi=F,JA=[]),JA.push(y))}function dy(y,N){return new Za(y,null,null,N)}function dg(y,N,ee){return new Za(Za.buildMessage(y,N),y,N,ee)}function Cg(){var y;return y=Ig(),y}function Hp(){var y,N,ee;for(y=F,N=[],ee=mg();ee!==r;)N.push(ee),ee=mg();return N!==r&&(tt=y,N=s(N)),y=N,y}function mg(){var y,N,ee,Ce,ge;return y=F,N=ga(),N!==r?(t.charCodeAt(F)===45?(ee=o,F++):(ee=r,Re===0&&je(a)),ee!==r?(Ce=Rt(),Ce!==r?(ge=WA(),ge!==r?(tt=y,N=l(ge),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r),y}function Ig(){var y,N,ee;for(y=F,N=[],ee=jp();ee!==r;)N.push(ee),ee=jp();return N!==r&&(tt=y,N=c(N)),y=N,y}function jp(){var y,N,ee,Ce,ge,Fe,$e,Nt,co;if(y=F,N=Rt(),N===r&&(N=null),N!==r){if(ee=F,t.charCodeAt(F)===35?(Ce=g,F++):(Ce=r,Re===0&&je(u)),Ce!==r){if(ge=[],Fe=F,$e=F,Re++,Nt=Cs(),Re--,Nt===r?$e=void 0:(F=$e,$e=r),$e!==r?(t.length>F?(Nt=t.charAt(F),F++):(Nt=r,Re===0&&je(h)),Nt!==r?($e=[$e,Nt],Fe=$e):(F=Fe,Fe=r)):(F=Fe,Fe=r),Fe!==r)for(;Fe!==r;)ge.push(Fe),Fe=F,$e=F,Re++,Nt=Cs(),Re--,Nt===r?$e=void 0:(F=$e,$e=r),$e!==r?(t.length>F?(Nt=t.charAt(F),F++):(Nt=r,Re===0&&je(h)),Nt!==r?($e=[$e,Nt],Fe=$e):(F=Fe,Fe=r)):(F=Fe,Fe=r);else ge=r;ge!==r?(Ce=[Ce,ge],ee=Ce):(F=ee,ee=r)}else F=ee,ee=r;if(ee===r&&(ee=null),ee!==r){if(Ce=[],ge=ds(),ge!==r)for(;ge!==r;)Ce.push(ge),ge=ds();else Ce=r;Ce!==r?(tt=y,N=f(),y=N):(F=y,y=r)}else F=y,y=r}else F=y,y=r;if(y===r&&(y=F,N=ga(),N!==r?(ee=b(),ee!==r?(Ce=Rt(),Ce===r&&(Ce=null),Ce!==r?(t.charCodeAt(F)===58?(ge=d,F++):(ge=r,Re===0&&je(m)),ge!==r?(Fe=Rt(),Fe===r&&(Fe=null),Fe!==r?($e=WA(),$e!==r?(tt=y,N=I(ee,$e),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r),y===r&&(y=F,N=ga(),N!==r?(ee=Se(),ee!==r?(Ce=Rt(),Ce===r&&(Ce=null),Ce!==r?(t.charCodeAt(F)===58?(ge=d,F++):(ge=r,Re===0&&je(m)),ge!==r?(Fe=Rt(),Fe===r&&(Fe=null),Fe!==r?($e=WA(),$e!==r?(tt=y,N=I(ee,$e),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r),y===r))){if(y=F,N=ga(),N!==r)if(ee=Se(),ee!==r)if(Ce=Rt(),Ce!==r)if(ge=qi(),ge!==r){if(Fe=[],$e=ds(),$e!==r)for(;$e!==r;)Fe.push($e),$e=ds();else Fe=r;Fe!==r?(tt=y,N=I(ee,ge),y=N):(F=y,y=r)}else F=y,y=r;else F=y,y=r;else F=y,y=r;else F=y,y=r;if(y===r)if(y=F,N=ga(),N!==r)if(ee=Se(),ee!==r){if(Ce=[],ge=F,Fe=Rt(),Fe===r&&(Fe=null),Fe!==r?(t.charCodeAt(F)===44?($e=w,F++):($e=r,Re===0&&je(B)),$e!==r?(Nt=Rt(),Nt===r&&(Nt=null),Nt!==r?(co=Se(),co!==r?(tt=ge,Fe=P(ee,co),ge=Fe):(F=ge,ge=r)):(F=ge,ge=r)):(F=ge,ge=r)):(F=ge,ge=r),ge!==r)for(;ge!==r;)Ce.push(ge),ge=F,Fe=Rt(),Fe===r&&(Fe=null),Fe!==r?(t.charCodeAt(F)===44?($e=w,F++):($e=r,Re===0&&je(B)),$e!==r?(Nt=Rt(),Nt===r&&(Nt=null),Nt!==r?(co=Se(),co!==r?(tt=ge,Fe=P(ee,co),ge=Fe):(F=ge,ge=r)):(F=ge,ge=r)):(F=ge,ge=r)):(F=ge,ge=r);else Ce=r;Ce!==r?(ge=Rt(),ge===r&&(ge=null),ge!==r?(t.charCodeAt(F)===58?(Fe=d,F++):(Fe=r,Re===0&&je(m)),Fe!==r?($e=Rt(),$e===r&&($e=null),$e!==r?(Nt=WA(),Nt!==r?(tt=y,N=k(ee,Ce,Nt),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)}else F=y,y=r;else F=y,y=r}return y}function WA(){var y,N,ee,Ce,ge,Fe,$e;if(y=F,N=F,Re++,ee=F,Ce=Cs(),Ce!==r?(ge=Cy(),ge!==r?(t.charCodeAt(F)===45?(Fe=o,F++):(Fe=r,Re===0&&je(a)),Fe!==r?($e=Rt(),$e!==r?(Ce=[Ce,ge,Fe,$e],ee=Ce):(F=ee,ee=r)):(F=ee,ee=r)):(F=ee,ee=r)):(F=ee,ee=r),Re--,ee!==r?(F=N,N=void 0):N=r,N!==r?(ee=ds(),ee!==r?(Ce=Eg(),Ce!==r?(ge=Hp(),ge!==r?(Fe=yg(),Fe!==r?(tt=y,N=M(ge),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r),y===r&&(y=F,N=Cs(),N!==r?(ee=Eg(),ee!==r?(Ce=Ig(),Ce!==r?(ge=yg(),ge!==r?(tt=y,N=M(Ce),y=N):(F=y,y=r)):(F=y,y=r)):(F=y,y=r)):(F=y,y=r),y===r))if(y=F,N=zA(),N!==r){if(ee=[],Ce=ds(),Ce!==r)for(;Ce!==r;)ee.push(Ce),Ce=ds();else ee=r;ee!==r?(tt=y,N=Y(N),y=N):(F=y,y=r)}else F=y,y=r;return y}function ga(){var y,N,ee;for(Re++,y=F,N=[],t.charCodeAt(F)===32?(ee=J,F++):(ee=r,Re===0&&je(_));ee!==r;)N.push(ee),t.charCodeAt(F)===32?(ee=J,F++):(ee=r,Re===0&&je(_));return N!==r?(tt=F,ee=R(N),ee?ee=void 0:ee=r,ee!==r?(N=[N,ee],y=N):(F=y,y=r)):(F=y,y=r),Re--,y===r&&(N=r,Re===0&&je(v)),y}function Cy(){var y,N,ee;for(y=F Line truncated
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};km.parse=(t,e,r)=>new km(Pme(xme(t),e),r);var Pme=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,xme=t=>t.replace(/\n$/,"").split(`
`).reduce(kme,Object.create(null)),kme=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.substr((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};rq.exports=km});var Fm=C((w_e,iq)=>{"use strict";iq.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Hb=C((Q_e,nq)=>{"use strict";var Rm=["|","<",">","?",":"],Yb=Rm.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),vme=new Map(Rm.map((t,e)=>[t,Yb[e]])),Fme=new Map(Yb.map((t,e)=>[t,Rm[e]]));nq.exports={encode:t=>Rm.reduce((e,r)=>e.split(r).join(vme.get(r)),t),decode:t=>Yb.reduce((e,r)=>e.split(r).join(Fme.get(r)),t)}});var oq=C((b_e,sq)=>{"use strict";sq.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&~18),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var zb=C((k_e,aq)=>{"use strict";var Aq=Xl(),lq=vm(),cq=ec(),D_e=fh(),$n=require("fs"),tc=require("path"),S_e=hh(),Rme=16*1024*1024,gq=Symbol("process"),uq=Symbol("file"),hq=Symbol("directory"),jb=Symbol("symlink"),fq=Symbol("hardlink"),ph=Symbol("header"),Nm=Symbol("read"),Gb=Symbol("lstat"),Lm=Symbol("onlstat"),qb=Symbol("onread"),Jb=Symbol("onreadlink"),_b=Symbol("openfile"),Wb=Symbol("onopenfile"),aA=Symbol("close"),Mm=Symbol("mode"),pq=Fm(),Nme=Hb(),dq=oq(),Km=pq(class extends Aq{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=e,this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid(),this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||Rme,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=r.cwd||process.cwd(),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths&&tc.win32.isAbsolute(e)){let n=tc.win32.parse(e);this.path=e.substr(n.root.length),i=n.root}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=Nme.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=r.absolute||tc.resolve(this.cwd,e),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Lm](this.statCache.get(this.absolute)):this[Gb]()}[Gb](){$n.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Lm](r)})}[Lm](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=Lme(e),this.emit("stat",e),this[gq]()}[gq](){switch(this.type){case"File":return this[uq]();case"Directory":return this[hq]();case"SymbolicLink":return this[jb]();default:return this.end()}}[Mm](e){return dq(e,this.type==="Directory",this.portable)}[ph](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new cq({path:this.path,linkpath:this.linkpath,mode:this[Mm](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&this.write(new lq({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),this.write(this.header.block)}[hq](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ph](),this.end()}[jb](){$n.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Jb](r)})}[Jb](e){this.linkpath=e.replace(/\\/g,"/"),this[ph](),this.end()}[fq](e){this.type="Link",this.linkpath=tc.relative(this.cwd,e).replace(/\\/g,"/"),this.stat.size=0,this[ph](),this.end()}[uq](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[fq](r)}this.linkCache.set(e,this.absolute)}if(this[ph](),this.stat.size===0)return this.end();this[_b]()}[_b](){$n.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Wb](r)})}[Wb](e){let r=512*Math.ceil(this.stat.size/512),i=Math.min(r,th Line truncated
`}),a},i})});var B_=C((F8e,TD)=>{"use strict";var mEe=t=>{let e=!1,r=!1,i=!1;for(let n=0;n<t.length;n++){let s=t[n];e&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(t=t.slice(0,n)+"-"+t.slice(n),e=!1,i=r,r=!0,n++):r&&i&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(t=t.slice(0,n-1)+"-"+t.slice(n-1),i=r,r=!1,e=!0):(e=s.toLowerCase()===s&&s.toUpperCase()!==s,i=r,r=s.toUpperCase()===s&&s.toLowerCase()!==s)}return t},y_=(t,e)=>{if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);let r=n=>e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;return Array.isArray(t)?t=t.map(n=>n.trim()).filter(n=>n.length).join("-"):t=t.trim(),t.length===0?"":t.length===1?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=mEe(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(n,s)=>s.toUpperCase()).replace(/\d+(\w|$)/g,n=>n.toUpperCase()),r(t))};TD.exports=y_;TD.exports.default=y_});var Q_=C((R8e,w_)=>{w_.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY_BUILD_BASE",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}]});var hI=C(Ki=>{"use strict";var b_=Q_(),ns=process.env;Object.defineProperty(Ki,"_vendors",{value:b_.map(function(t){return t.constant})});Ki.name=null;Ki.isPR=null;b_.forEach(function(t){var e=Array.isArray(t.env)?t.env:[t.env],r=e.every(function(i){return D_(i)});if(Ki[t.constant]=r,r)switch(Ki.name=t.name,typeof t.pr){case"string":Ki.isPR=!!ns[t.pr];break;case"object":"env"in t.pr?Ki.isPR=t.pr.env in ns&&ns[t.pr.env]!==t.pr.ne:"any"in t.pr?Ki.isPR=t.pr.any.some(function(i){return!!ns[i]}):Ki.isPR=D_(t.pr);break;default:Ki.isPR=null}});Ki.isCI=!!(ns.CI||ns.CONTINUOUS_INTEGRATION||ns.BUILD_NUMBER||ns.RUN_ID||Ki.name||!1);function D_(t){return typeof t=="string"?!!ns[t]:Object.keys(t).every(function(e){return ns[e]===t[e]})}});var Ws=C(VD=>{"use strict";Object.defineProperty(VD,"__esModule",{value:!0});VD.default=N_;function N_(){}N_.prototype={diff:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.callback;typeof i=="function"&&(n=i,i={}),this.options=i;var s=this;function o(m){return n?(setTimeout(function(){n(void 0,m)},0),!0):m}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var a=r.length,l=e.length,c=1,g=a+l,u=[{newPos:-1,components:[]}],h=this.extractCommon(u[0],r,e,0);if(u[0].newPos+1>=a&&h+1>=l)return o([{value:this.join(r),count:r.length}]);function f(){for(var m=-1*c;m<=c;m+=2){var I=void 0,w=u[m-1],B=u[m+1],P=(B?B.newPos:0)-m;w&&(u[m-1]=void 0);var k=w&&w.newPos+1<a,M=B&&0<=P&&P<l;if(!k&&!M){u[m]=void 0;continue}if(!k||M&&w.newPos<B.newPos?(I=bEe(B),s.pushComponent(I.components,void 0,!0)):(I=w,I.newPos++,s.pushComponent(I.components,!0,void 0)),P=s.extractCommon(I,r,e,m),I.newPos+1>=a&&P+1>=l)return o(QEe(s,I.components,r,e,s.useLongestToken));u[m]=I}c++}if(n)(function m(){setTimeout(function(){if(c>g)return n();f()||m()},0)})();else for(;c<=g;){var d=f();if(d)return d}},pushComponent:fun Line truncated
`),m==="+"?f++:m==="-"?d++:m===" "&&(f++,d++);else break}if(!f&&h.newLines===1&&(h.newLines=0),!d&&h.oldLines===1&&(h.oldLines=0),e.strict){if(f!==h.newLines)throw new Error("Added line count did not match for hunk at line "+(c+1));if(d!==h.oldLines)throw new Error("Removed line count did not match for hunk at line "+(c+1))}return h}for(;s<r.length;)o();return n}});var q_=C(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});rS.default=eye;function eye(t,e,r){var i=!0,n=!1,s=!1,o=1;return function a(){if(i&&!s){if(n?o++:i=!1,t+o<=r)return o;s=!0}if(!n)return s||(i=!0),e<=t-o?-o++:(n=!0,a())}}});var W_=C(QI=>{"use strict";Object.defineProperty(QI,"__esModule",{value:!0});QI.applyPatch=J_;QI.applyPatches=tye;var __=wI(),iye=rye(q_());function rye(t){return t&&t.__esModule?t:{default:t}}function J_(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=(0,__.parsePatch)(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}var i=t.split(/\r\n|[\n\v\f\r\x85]/),n=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=e.hunks,o=r.compareLine||function(T,j,Le,ve){return j===ve},a=0,l=r.fuzzFactor||0,c=0,g=0,u,h;function f(T,j){for(var Le=0;Le<T.lines.length;Le++){var ve=T.lines[Le],Je=ve.length>0?ve[0]:" ",V=ve.length>0?ve.substr(1):ve;if(Je===" "||Je==="-"){if(!o(j+1,i[j],Je,V)&&(a++,a>l))return!1;j++}}return!0}for(var d=0;d<s.length;d++){for(var m=s[d],I=i.length-m.oldLines,w=0,B=g+m.oldStart-1,P=(0,iye.default)(B,c,I);w!==void 0;w=P())if(f(m,B+w)){m.offset=g+=w;break}if(w===void 0)return!1;c=m.offset+m.oldStart+m.oldLines}for(var k=0,M=0;M<s.length;M++){var Y=s[M],v=Y.oldStart+Y.offset+k-1;k+=Y.newLines-Y.oldLines,v<0&&(v=0);for(var J=0;J<Y.lines.length;J++){var _=Y.lines[J],R=_.length>0?_[0]:" ",A=_.length>0?_.substr(1):_,G=Y.linedelimiters[J];if(R===" ")v++;else if(R==="-")i.splice(v,1),n.splice(v,1);else if(R==="+")i.splice(v,0,A),n.splice(v,0,G),v++;else if(R==="\\"){var re=Y.lines[J-1]?Y.lines[J-1][0]:null;re==="+"?u=!0:re==="-"&&(h=!0)}}}if(u)for(;!i[i.length-1];)i.pop(),n.pop();else h&&(i.push(""),n.push(`
`));for(var Z=0;Z<i.length-1;Z++)i[Z]=i[Z]+n[Z];return i.join("")}function tye(t,e){typeof t=="string"&&(t=(0,__.parsePatch)(t));var r=0;function i(){var n=t[r++];if(!n)return e.complete();e.loadFile(n,function(s,o){if(s)return e.complete(s);var a=J_(o,n,e);e.patched(n,a,function(l){if(l)return e.complete(l);i()})})}i()}});var nS=C(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.structuredPatch=z_;Rh.createTwoFilesPatch=V_;Rh.createPatch=nye;var sye=EI();function iS(t){return Aye(t)||aye(t)||oye()}function oye(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aye(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function Aye(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function z_(t,e,r,i,n,s,o){o||(o={}),typeof o.context=="undefined"&&(o.context=4);var a=(0,sye.diffLines)(r,i,o);a.push({value:"",lines:[]});function l(w){return w.map(function(B){return" "+B})}for(var c=[],g=0,u=0,h=[],f=1,d=1,m=function(B){var P=a[B],k=P.lines||P.value.replace(/\n$/,"").split(`
`);if(P.lines=k,P.added||P.removed){var M;if(!g){var Y=a[B-1];g=f,u=d,Y&&(h=o.context>0?l(Y.lines.slice(-o.context)):[],g-=h.length,u-=h.length)}(M=h).push.apply(M,iS(k.map(function(Z){return(P.added?"+":"-")+Z}))),P.added?d+=k.length:f+=k.length}else{if(g)if(k.length<=o.context*2&&B<a.length-2){var v;(v=h).push.apply(v,iS(l(k)))}else{var J,_=Math.min(k.length,o.context);(J=h).push.apply(J,iS(l(k.slice(0,_))));var R={oldStart:g,oldLines:f-g+_,newStart:u,newLines:d-u+_,lines:h};if(B>=a.length-2&&k.length<=o.context){var A=/\n$/.test(r),G=/\n$/.test(i),re=k.length==0&&h.length>R.oldLines;!A&&re&&h.splice(R.oldLines,0,"\\ No newline at end of file"),(!A&&!re||!G)&&h.push("\\ No newline at end of file")}c.push(R),g=0,u=0,h=[]}f+=k.length,d+=k.length}},I=0;I<a.length;I++)m(I);return{oldFileName:t,newFileName:e,oldHeader:n,newHeader:s,hunks:c}}function V_(t,e,r,i,n,s,o){var a=z_(t,e,r,i,n,s,o),l=[];t==e&&l.push("Index: "+t),l.push("==================================================================="),l.push("--- "+a.oldFileName+(typeof a.oldHeader=="undefined"?"":" "+a.oldHeader)),l.push("+++ "+a.newFileName+(typeof a.newHeader=="undefined"?"":" "+a.newHeader));for(var c=0;c<a.hunks.length;c++){var g=a.hunks[c];l.push("@@ -"+g.oldStart+","+g.oldLines+" +"+g.newStart+","+g.newLines+" @@"),l.push.apply(l,g.lines)}return l.join(`
`)+`
`}function nye(t,e,r,i,n,s){return V_(t,t,e,r,i,n,s)}});var Z_=C(bI=>{"use strict";Object.defineProperty(bI,"__esModule",{value:!0});bI.arrayEqual=lye;bI.arrayStartsWith=X_;function lye(t,e){return t.length!==e.length?!1:X_(t,e)}function X_(t,e){if(e.length>t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}});var l8=C(DI=>{"use strict";Object.defineProperty(DI,"__esModule",{value:!0});DI.calcLineCount=$_;DI.merge=cye;var gye=nS(),uye=wI(),sS=Z_();function yc(t){return pye(t)||fye(t)||hye()}function hye(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function fye(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function pye(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function $_(t){var e=oS(t.lines),r=e.oldLines,i=e.newLines;r!==void 0?t.oldLines=r:delete t.oldLines,i!==void 0?t.newLines=i:delete t.newLines}function cye(t,e,r){t=e8(t,r),e=e8(e,r);var i={};(t.index||e.index)&&(i.index=t.index||e.index),(t.newFileName||e.newFileName)&&(t8(t)?t8(e)?(i.oldFileName=SI(i,t.oldFileName,e.oldFileName),i.newFileName=SI(i,t.newFileName,e.newFileName),i.oldHeader=SI(i,t.oldHeader,e.oldHeader),i.newHeader=SI(i,t.newHeader,e.newHeader)):(i.oldFileName=t.oldFileName,i.newFileName=t.newFileName,i.oldHeader=t.oldHeader,i.newHeader=t.newHeader):(i.oldFileName=e.oldFileName||t.oldFileName,i.newFileName=e.newFileName||t.newFileName,i.oldHeader=e.oldHeader||t.oldHeader,i.newHeader=e.newHeader||t.newHeader)),i.hunks=[];for(var n=0,s=0,o=0,a=0;n<t.hunks.length||s<e.hunks.length;){var l=t.hunks[n]||{oldStart:Infinity},c=e.hunks[s]||{oldStart:Infinity};if(r8(l,c))i.hunks.push(i8(l,o)),n++,a+=l.newLines-l.oldLines;else if(r8(c,l))i.hunks.push(i8(c,a)),s++,o+=c.newLines-c.oldLines;else{var g={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+a),newLines:0,lines:[]};dye(g,l.oldStart,l.lines,c.oldStart,c.lines),s++,n++,i.hunks.push(g)}}return i}function e8(t,e){if(typeof t=="string"){if(/^@@/m.test(t)||/^Index:/m.test(t))return(0,uye.parsePatch)(t)[0];if(!e)throw new Error("Must provide a base reference or pass in a patch");return(0,gye.structuredPatch)(void 0,void 0,e,t)}return t}function t8(t){return t.newFileName&&t.newFileName!==t.oldFileName}function SI(t,e,r){return e===r?e:(t.conflict=!0,{mine:e,theirs:r})}function r8(t,e){return t.oldStart<e.oldStart&&t.oldStart+t.oldLines<e.oldStart}function i8(t,e){return{oldStart:t.oldStart,oldLines:t.oldLines,newStart:t.newStart+e,newLines:t.newLines,lines:t.lines}}function dye(t,e,r,i,n){var s={offset:e,lines:r,index:0},o={offset:i,lines:n,index:0};for(s8(t,s,o),s8(t,o,s);s.index<s.lines.length&&o.index<o.lines.length;){var a=s.lines[s.index],l=o.lines[o.index];if((a[0]==="-"||a[0]==="+")&&(l[0]==="-"||l[0]==="+"))Cye(t,s,o);else if(a[0]==="+"&&l[0]===" "){var c;(c=t.lines).push.apply(c,yc(IA(s)))}else if(l[0]==="+"&&a[0]===" "){var g;(g=t.lines).push.apply(g,yc(IA(o)))}else a[0]==="-"&&l[0]===" "?n8(t,s,o):l[0]==="-"&&a[0]===" "?n8(t,o,s,!0):a===l?(t.lines.push(a),s.index++,o.index++):aS(t,IA(s),IA(o))}o8(t,s),o8(t,o),$_(t)}function Cye(t,e,r){var i=IA(e),n=IA(r);if(a8(i)&&a8(n)){if((0,sS.arrayStartsWith)(i,n)&&A8(r,i,i.length-n.length)){var s;(s=t.lines).push.apply(s,yc(i));return}else if((0,sS.arrayStartsWith)(n,i)&&A8(e,n,n.length-i.length)){var o;(o=t.lines).push.apply(o,yc(n));return}}else if((0,sS.arrayEqual)(i,n)){var a;(a=t.lines).push.apply(a,yc(i));return}aS(t,i,n)}function n8(t,e,r,i){var n=IA(e),s=mye(r,n);if(s.merged){var o;(o=t.lines).push.apply(o,yc(s.merged))}else aS(t,i?s:n,i?n:s)}function aS(t,e,r){t.conflict=!0,t.lines.push({conflict:!0,mine:e,theirs:r})}function s8(t,e,r){for(;e.offset<r.offset&&e.index<e.lines.length;){var i=e.lines[e.index++];t.lines.push(i),e.offset++}}function o8(t,e){for(;e.index<e.lines.length;){var r=e.lines[e.index++];t.lines.push(r)}}function IA(t){for(var e=[],r=t.lines[t.index][0];t.index<t.lines.length;){var i=t.lines[t.index];if(r==="-"&&i[0]==="+"&&(r="+"),r===i[0])e.push(i),t.index++;else break}return e}function mye(t,e){for(var r=[],i=[],n=0,s=!1,o=!1;n<e.length&&t.index<t.lines.length;){var a=t.lines[t.index],l=e[n];if(l[0]==="+")break;if(s=s||a[0]!==" ",i.push(l),n++,a[0]==="+")for(o=!0;a[0]==="+";)r.push(a),a=t.lines[++t.index];l.substr(1)===a.substr(1)?(r.push(a),t.index++):o=!0}if((e[n]||"")[0]==="+"&&s&&(o=!0),o)return r;for(;n<e.length;)i.push(e[n++]);return{merged:i,changes:r}}function a8(t){return t.reduce(function(e,r){return e&&r[0]==="-"},!0)}function A8(t,e,r){for(var i=0;i<r;i++){var n=e[e.length-r+i].substr(1);if(t.lines[t.index+i]!==" "+n)return!1}return t.index+=r,!0}function oS(t){var e=0,r=0;return t.forEach(function(i){if(typeof i!="string"){var n=oS(i.mine),s=oS(i.theirs);e!==void 0&&(n.oldLines===s.oldLines?e+=n.oldLines:e=void 0),r!==void 0&&(n.newLines===s.newLines?r+=n.newLines:r=void 0)}else r!==void 0& Line truncated
`),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=r(t.styles[o[c]],a,l);return a},n=(s,o,a)=>{t.styles[s]=e({name:s,codes:o}),(t.keys[a]||(t.keys[a]=[])).push(s),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(c){t.alias(s,c)},get(){let c=g=>i(g,c.stack);return Reflect.setPrototypeOf(c,t),c.stack=this.stack?this.stack.concat(s):[s],c}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=I0e,t.hasColor=t.hasAnsi=s=>(t.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&t.ansiRegex.test(s)),t.alias=(s,o)=>{let a=typeof o=="string"?t[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:s}),t.styles[s]=a,a.stack=[s]),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(l){t.alias(s,l)},get(){let l=c=>i(c,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(a.stack):a.stack,l}})},t.theme=s=>{if(!m0e(s))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(s))t.alias(o,s[o]);return t},t.alias("unstyle",s=>typeof s=="string"&&s!==""?(t.ansiRegex.lastIndex=0,s.replace(t.ansiRegex,"")):""),t.alias("noop",s=>s),t.none=t.clear=t.noop,t.stripColor=t.unstyle,t.symbols=TW(),t.define=n,t};kS.exports=UW();kS.exports.create=UW});var zr=C(ut=>{"use strict";var E0e=Object.prototype.toString,pn=Rn(),YW=!1,vS=[],HW={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};ut.longest=(t,e)=>t.reduce((r,i)=>Math.max(r,e?i[e].length:i.length),0);ut.hasColor=t=>!!t&&pn.hasColor(t);var YI=ut.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ut.nativeType=t=>E0e.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"");ut.isAsyncFn=t=>ut.nativeType(t)==="asyncfunction";ut.isPrimitive=t=>t!=null&&typeof t!="object"&&typeof t!="function";ut.resolve=(t,e,...r)=>typeof e=="function"?e.call(t,...r):e;ut.scrollDown=(t=[])=>[...t.slice(1),t[0]];ut.scrollUp=(t=[])=>[t.pop(),...t];ut.reorder=(t=[])=>{let e=t.slice();return e.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),e};ut.swap=(t,e,r)=>{let i=t.length,n=r===i?0:r<0?i-1:r,s=t[e];t[e]=t[n],t[n]=s};ut.width=(t,e=80)=>{let r=t&&t.columns?t.columns:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[0]),process.platform==="win32"?r-1:r};ut.height=(t,e=20)=>{let r=t&&t.rows?t.rows:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[1]),r};ut.wordWrap=(t,e={})=>{if(!t)return t;typeof e=="number"&&(e={width:e});let{indent:r="",newline:i=`
`+r,width:n=80}=e;n-=((i+r).match(/[^\S\n]/g)||[]).length;let o=`.{1,${n}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,a=t.trim(),l=new RegExp(o,"g"),c=a.match(l)||[];return c=c.map(g=>g.replace(/\n$/,"")),e.padEnd&&(c=c.map(g=>g.padEnd(n," "))),e.padStart&&(c=c.map(g=>g.padStart(n," "))),r+c.join(i)};ut.unmute=t=>{let e=t.stack.find(i=>pn.keys.color.includes(i));return e?pn[e]:t.stack.find(i=>i.slice(2)==="bg")?pn[e.slice(2)]:i=>i};ut.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";ut.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>pn.keys.color.includes(i));if(e){let i=pn["bg"+ut.pascal(e)];return i?i.black:t}let r=t.stack.find(i=>i.slice(0,2)==="bg");return r?pn[r.slice(2).toLowerCase()]||t:pn.none};ut.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>pn.keys.color.includes(i)),r=t.stack.find(i=>i.slice(0,2)==="bg");if(e&&!r)return pn[HW[e]||e];if(r){let i=r.slice(2).toLowerCase(),n=HW[i];return n&&pn["bg"+ut.pascal(n)]||t}return pn.none};ut.meridiem=t=>{let e=t.getHours(),r=t.getMinutes(),i=e>=12?"pm":"am";e=e%12;let n=e===0?12:e,s=r<10?"0"+r:r;return n+":"+s+" "+i};ut.set=(t={},e="",r)=>e.split(".").reduce((i,n,s,o)=>{let a=o.length-1>s?i[n]||{}:r;return!ut.isObject(a)&&s<o.length-1&&(a={}),i[n]=a},t);ut.get=(t={},e="",r)=>{let i=t[e]==null?e.split(".").reduce((n,s)=>n&&n[s],t):t[e];return i==null?r:i};ut.mixin=(t,e)=>{if(!YI(t))return e;if(!YI(e))return t;for(let r of Object.keys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.hasOwnProperty("value"))if(t.hasOwnProperty(r)&&YI(i.value)){let n=Object.getOwnPropertyDescriptor(t,r);YI(n.value)?t[r]=ut.merge({},t[r],e[r]):Reflect.defineProperty(t,r,i)}else Reflect.defineProperty(t,r,i);else Reflect.defineProperty(t,r,i)}return t};ut.merge=(...t)=>{let e={};for(let r of t)ut.mixin(e,r);return e};ut.mixinEmitter=(t,e)=>{let r=e.constructor.prototype;for(let i of Object.keys(r)){let n=r[i];typeof n=="function"?ut.define(t,i,n.bind(e)):ut.define(t,i,n)}};ut.onExit=t=>{let e=(r,i)=>{YW||(YW=!0,vS.forEach(n=>n()),r===!0&&process.exit(128+i))};vS.length===0&&(process.once("SIGTERM",e.bind(null,!0,15)),process.once("SIGINT",e.bind(null,!0,2)),process.once("exit",e)),vS.push(t)};ut.define=(t,e,r)=>{Reflect.defineProperty(t,e,{value:r})};ut.defineExport=(t,e,r)=>{let i;Reflect.defineProperty(t,e,{enumerable:!0,configurable:!0,set(n){i=n},get(){return i?i():r()}})}});var jW=C(Pc=>{"use strict";Pc.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};Pc.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};Pc.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};Pc.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};Pc.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var JW=C((f5e,GW)=>{"use strict";var qW=require("readline"),y0e=jW(),B0e=/^(?:\x1b)([a-zA-Z0-9])$/,w0e=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Q0e={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function b0e(t){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t)}function D0e(t){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t)}var HI=(t="",e={})=>{let r,i={name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t,...e};if(Buffer.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t=""+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t=i.sequence||""),i.sequence=i.sequence||t||i.name,t==="\r")i.raw=void 0,i.name="return";else if(t===`
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x7F"||t==="\b")i.name="backspace",i.meta=t.charAt(0)==="";else if(t===""||t==="")i.name="escape",i.meta=t.length===2;else if(t===" "||t===" ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=B0e.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=w0e.exec(t)){let n=[...t];n[0]===""&&n[1]===""&&(i.option=!0);let s=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),o=(r[3]||r[5]||1)-1;i.ctrl=!!(o&4),i.meta=!!(o&10),i.shift=!!(o&1),i.code=s,i.name=Q0e[s],i.shift=b0e(s)||i.shift,i.ctrl=D0e(s)||i.ctrl}return i};HI.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=qW.createInterface({terminal:!0,input:r});qW.emitKeypressEvents(r,i);let n=(a,l)=>e(a,HI(a,l),i),s=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",n),i.resume(),()=>{r.isTTY&&r.setRawMode(s),r.removeListener("keypress",n),i.pause(),i.close()}};HI.action=(t,e,r)=>{let i={...y0e,...r};return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};GW.exports=HI});var WW=C((p5e,_W)=>{"use strict";_W.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(!!e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),S0e(t,r,i)}};function S0e(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},n=r.interval||120;i.frames=r.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),t.once("close",()=>i.stop()),i.stop}});var XW=C((d5e,zW)=>{"use strict";var{define:P0e,width:x0e}=zr(),VW=class{constructor(e){let r=e.options;P0e(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=x0e(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};zW.exports=VW});var $W=C((C5e,ZW)=>{"use strict";var FS=zr(),Mr=Rn(),RS={default:Mr.noop,noop:Mr.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||FS.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||FS.complement(this.primary)},primary:Mr.cyan,success:Mr.green,danger:Mr.magenta,strong:Mr.bold,warning:Mr.yellow,muted:Mr.dim,disabled:Mr.gray,dark:Mr.dim.gray,underline:Mr.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};RS.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&(Mr.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&(Mr.visible=t.styles.visible);let e=FS.merge({},RS,t.styles);delete e.merge;for(let r of Object.keys(Mr))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>Mr[r]});for(let r of Object.keys(Mr.styles))e.hasOwnProperty(r)||Reflect.defineProperty(e,r,{get:()=>Mr[r]});return e};ZW.exports=RS});var t4=C((m5e,e4)=>{"use strict";var NS=process.platform==="win32",zs=Rn(),k0e=zr(),LS={...zs.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",e Line truncated
`),c=l[0],g=l[l.length-1],h=(i+(r?" "+r:"")).length,f=h<c.length?c.slice(h+1):"";return{header:o,prompt:c,after:f,rest:l.slice(1),last:g}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let e=this.state.error||await this.validate(this.value,this.state);if(e!==!0){let r=`
`+this.symbols.pointer+" ";typeof e=="string"?r+=e.trim():r+="Invalid input",this.state.error=`
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(BA.cursor.down(e.rest.length)),this.write(`
`.repeat(r))}catch(e){}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=TS.listen(this,this.keypress.bind(this)),this.once("close",this.stop))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:e,options:r,result:i}=this;if(this.format=()=>e.call(this,this.value),this.result=()=>i.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let n=r.onSubmit.bind(this),s=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await n(this.name,this.value,this),s())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,r)=>{if(this.once("submit",e),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,r,i){let{options:n,state:s,symbols:o,timers:a}=this,l=a&&a[e];s.timer=l;let c=n[e]||s[e]||o[e],g=r&&r[e]!=null?r[e]:await c;if(g==="")return g;let u=await this.resolve(g,s,r,i);return!u&&r&&r[e]?this.resolve(c,s,r,i):u}async prefix(){let e=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,i=this.state;return i.timer=r,Qi.isObject(e)&&(e=e[i.status]||e.pending),Qi.hasColor(e)?e:(this.styles[i.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return Qi.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,i=this.state;i.timer=r;let n=e[i.status]||e.pending||i.separator,s=await this.resolve(n,i);return Qi.isObject(s)&&(s=s[i.status]||s.pending),Qi.hasColor(s)?s:this.styles.muted(s)}async pointer(e,r){let i=await this.element("pointer",e,r);if(typeof i=="string"&&Qi.hasColor(i))return i;if(i){let n=this.styles,s=this.index===r,o=s?n.primary:c=>c,a=await this.resolve(i[s?"on":"off"]||i,this.state),l=Qi.hasColor(a)?a:o(a);return s?l:" ".repeat(a.length)}}async indicator(e,r){let i=await this.element("indicator",e,r);if(typeof i=="string"&&Qi.hasColor(i))return i;if(i){let n=this.styles,s=e.enabled===!0,o=s?n.success:n.dark,a=i[s?"on":"off"]||i;return Qi.hasColor(a)?a:o(a)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return Qi.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...r){return Qi.resolve(this,e,...r)}get base(){return jI.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||Qi.height(this.stdout,25)}get width(){return this.options.columns||Qi.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:r}=this.state,i=[r,e].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return e=>new this(e).run()}};function T0e(t){let e=n=>t[n]===void 0||typeof t[n]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let n of Object.keys(t.options)){if(r.includes(n)||/^on[A-Z]/.test(n))continue;let s=t.options[n];typeof s=="function"&&e(n)?i.includes(n)||(t[n]=s.bind(t)):typeof t[n]!="function"&&(t[n]=s)}}function U0e(t){typeof t=="number"&&(t=[t,t,t,t]);let e=[].concat(t||[]),r=n=>n%2==0?`
`:" ",i=[];for(let n=0;n<4;n++){let s=r(n);e[n]?i.push(s.repeat(e[n])):i.push("")}return i}l4.exports=jI});var h4=C((y5e,g4)=>{"use strict";var Y0e=zr(),u4={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return u4.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};g4.exports=(t,e={})=>{let r=Y0e.merge({},u4,e.roles);return r[t]||r.default}});var _h=C((B5e,f4)=>{"use strict";var H0e=Rn(),j0e=xc(),G0e=h4(),GI=zr(),{reorder:US,scrollUp:q0e,scrollDown:J0e,isObject:p4,swap:_0e}=GI,d4=class extends j0e{constructor(e){super(e);this.cursorHide(),this.maxSelected=e.maxSelected||Infinity,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:i,suggest:n}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(s=>s.enabled=!1),typeof n!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");p4(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(s=>this.enable(this.find(s))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let i=[],n=0,s=async(o,a)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let l=0;l<o.length;l++){let c=o[l]=await this.toChoice(o[l],n++,a);i.push(c),c.choices&&await s(c.choices,c)}return i};return s(e,r).then(o=>(this.state.loadingChoices=!1,o))}async toChoice(e,r,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let n=e.value;if(e=G0e(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,GI.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,H0e.unstyle(e.message).length));let o={...e};return e.reset=(a=o.input,l=o.value)=>{for(let c of Object.keys(o))e[c]=o[c];e.input=a,e.value=l},n==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,i){let n=await this.toChoice(e,r,i);return this.choices.push(n),this.index=this.choices.length-1,this.limit=this.choices.length,n}async newItem(e,r,i){let n={name:"New choice name?",editable:!0,newChoice:!0,...e},s=await this.addChoice(n,r,i);return s.updateChoice=()=>{delete s.newChoice,s.name=s.message=s.input,s.input="",s.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(e=this.focused){return this.choices.some(r=>!!r.parent)?(this.toggle(e.parent&&!e.choices?e.parent:e),this.render()):this.a()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choice Line truncated
`),n;return this.options.choicesHeader&&(n=await this.resolve(this.options.choicesHeader,this.state)),[n,i].filter(Boolean).join(`
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,i="",n=await this.header(),s=await this.prefix(),o=await this.separator(),a=await this.message();this.options.promptLine!==!1&&(i=[s,a,o,""].join(" "),this.state.prompt=i);let l=await this.format(),c=await this.error()||await this.hint(),g=await this.renderChoices(),u=await this.footer();l&&(i+=l),c&&!i.includes(c)&&(i+=" "+c),e&&!l&&!g.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(r),this.write([n,i,g,u].filter(Boolean).join(`
`)),this.write(this.margin[2]),this.restore()}};m4.exports=I4});var B4=C((Q5e,E4)=>{"use strict";var z0e=Vo(),V0e=(t,e)=>{let r=t.toLowerCase();return i=>{let s=i.toLowerCase().indexOf(r),o=e(i.slice(s,s+r.length));return s>=0?i.slice(0,s)+o+i.slice(s+r.length):i}},y4=class extends z0e{constructor(e){super(e);this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:r,input:i}=this.state;return this.input=i.slice(0,r)+e+i.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:r}=this.state;return r?(this.input=r.slice(0,e-1)+r.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:r}=this.state;return r[e]===void 0?this.alert():(this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,r);let i=e.toLowerCase();return r.filter(n=>n.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight?this.options.highlight.bind(this):this.styles.placeholder,r=V0e(this.input,e),i=this.choices;this.choices=i.map(n=>({...n,message:r(n.message)})),await super.render(),this.choices=i}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};E4.exports=y4});var jS=C((b5e,w4)=>{"use strict";var HS=zr();w4.exports=(t,e={})=>{t.cursorHide();let{input:r="",initial:i="",pos:n,showCursor:s=!0,color:o}=e,a=o||t.styles.placeholder,l=HS.inverse(t.styles.primary),c=m=>l(t.styles.black(m)),g=r,u=" ",h=c(u);if(t.blink&&t.blink.off===!0&&(c=m=>m,h=""),s&&n===0&&i===""&&r==="")return c(u);if(s&&n===0&&(r===i||r===""))return c(i[0])+a(i.slice(1));i=HS.isPrimitive(i)?`${i}`:"",r=HS.isPrimitive(r)?`${r}`:"";let f=i&&i.startsWith(r)&&i!==r,d=f?c(i[r.length]):h;if(n!==r.length&&s===!0&&(g=r.slice(0,n)+c(r[n])+r.slice(n+1),d=""),s===!1&&(d=""),f){let m=t.styles.unstyle(g+d);return g+d+a(i.slice(m.length))}return g+d}});var qI=C((D5e,Q4)=>{"use strict";var X0e=Rn(),Z0e=Vo(),$0e=jS(),b4=class extends Z0e{constructor(e){super({...e,multiple:!0});this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let r=this.focused;if(!r)return this.alert();let{cursor:i,input:n}=r;return r.value=r.input=n.slice(0,i)+e+n.slice(i),r.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:r,input:i}=e;return e.value=e.input=i.slice(0,r-1)+i.slice(r),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:r,input:i}=e;if(i[r]===void 0)return this.alert();let n=`${i}`.slice(0,r)+`${i}`.slice(r+1);return e.value=e.input=n,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,r){return this.dispatch(e,r)}number(e,r){return this.dispatch(e,r)}next(){let e=this.focused;if(!e)return this.alert();let{initial:r,input:i}=e;return r&&r.startsWith(i)&&i!==r?(e.value=e.input=r,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,r){let i=await this.resolve(e.separator,this.state,e,r)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(e,r){await this.onChoice(e,r);let{state:i,styles:n}=this,{cursor:s,initial:o="",name:a,hint:l,input:c=""}=e,{muted:g,submitted:u,primary:h,danger:f}=n,d=l,m=this.index===r,I=e.validate||(()=>!0),w=await this.choiceSeparator(e,r),B=e.message;this.align==="right"&&(B=B.padStart(this.longest+1," ")),this.align==="left"&&(B=B.padEnd(this.longest+1," "));let P=this.values[a]=c||o,k=c?"success":"dark";await I.call(e,P,this.state)!= Line truncated
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};v4.exports=F4});var L4=C((k5e,R4)=>{"use strict";var abe=JI(),N4=class extends abe{constructor(e){super(e);this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};R4.exports=N4});var O4=C((v5e,M4)=>{"use strict";var Abe=Vo(),lbe=qI(),kc=lbe.prototype,K4=class extends Abe{constructor(e){super({...e,multiple:!0});this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(e==="a"||e==="i")?super[e]():kc.dispatch.call(this,e,r)}append(e,r){return kc.append.call(this,e,r)}delete(e,r){return kc.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?kc.next.call(this):super.next()}prev(){return this.focused.editable?kc.prev.call(this):super.prev()}async indicator(e,r){let i=e.indicator||"",n=e.editable?i:super.indicator(e,r);return await this.resolve(n,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?kc.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),e=await r.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};M4.exports=K4});var wA=C((F5e,T4)=>{"use strict";var cbe=xc(),gbe=jS(),{isPrimitive:ube}=zr(),U4=class extends cbe{constructor(e){super(e);this.initial=ube(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[]}async keypress(e,r={}){let i=this.state.prevKeypress;return this.state.prevKeypress=r,this.options.multiline===!0&&r.name==="return"&&(!i||i.name!=="return")?this.append(`
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+e+`${i}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),i=this.input.slice(e),n=r.split(" ");this.state.clipboard.push(n.pop()),this.input=n.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):gbe(this,{input:e,initial:r,pos:this.cursor})}async render(){let e=this.state.size,r=await this.prefix(),i=await this.separator(),n=await this.message(),s=[r,n,i].filter(Boolean).join(" ");this.state.prompt=s;let o=await this.header(),a=await this.format(),l=await this.error()||await this.hint(),c=await this.footer();l&&!a.includes(l)&&(a+=" "+l),s+=" "+a,this.clear(e),this.write([o,s,c].filter(Boolean).join(`
`)),this.restore()}};T4.exports=U4});var H4=C((R5e,Y4)=>{"use strict";var hbe=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),_I=t=>hbe(t).filter(Boolean);Y4.exports=(t,e={},r="")=>{let{past:i=[],present:n=""}=e,s,o;switch(t){case"prev":case"undo":return s=i.slice(0,i.length-1),o=i[i.length-1]||"",{past:_I([r,...s]),present:o};case"next":case"redo":return s=i.slice(1),o=i[0]||"",{past:_I([...s,r]),present:o};case"save":return{past:_I([...i,r]),present:""};case"remove":return o=_I(i.filter(a=>a!==r)),n="",o.length&&(n=o.pop()),{past:o,present:n};default:throw new Error(`Invalid action: "${t}"`)}}});var qS=C((N5e,j4)=>{"use strict";var fbe=wA(),G4=H4(),q4=class extends fbe{constructor(e){super(e);let r=this.options.history;if(r&&r.store){let i=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=G4(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){!this.store||(this.data=G4("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};j4.exports=q4});var W4=C((L5e,J4)=>{"use strict";var pbe=wA(),_4=class extends pbe{format(){return""}};J4.exports=_4});var X4=C((M5e,z4)=>{"use strict";var dbe=wA(),V4=class extends dbe{constructor(e={}){super(e);this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:r=>r;return this.list.map(e).join(", ")}async submit(e){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};z4.exports=V4});var ez=C((K5e,Z4)=>{"use strict";var Cbe=Vo(),$4=class extends Cbe{constructor(e){super({...e,multiple:!0})}};Z4.exports=$4});var JS=C((O5e,tz)=>{"use strict";var mbe=wA(),rz=class extends mbe{constructor(e={}){super({style:"number",...e});this.min=this.isValue(e.min)?this.toNumber(e.min):-Infinity,this.max=this.isValue(e.max)?this.toNumber(e.max):Infinity,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let r=e||this.minor,i=this.toNumber(this.input);return i>this.max+r?this.alert():(this.input=`${i+r}`,this.render())}down(e){let r=e||this.minor,i=this.toNumber(this.input);return i<this.min-r?this.alert():(this.input=`${i-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(e||0),super.submit()}};tz.exports=rz});var nz=C((T5e,iz)=>{iz.exports=JS()});var az=C((U5e,sz)=>{"use strict";var Ibe=wA(),oz=class extends Ibe{constructor(e){super(e);this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};sz.exports=oz});var gz=C((Y5e,Az)=>{"use strict";var Ebe=Rn(),ybe=_h(),lz=zr(),cz=class extends ybe{constructor(e={}){super(e);this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
`;let r=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,n)=>({name:n+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let r of this.choices){e=Math.max(e,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let i=0;i<this.scale.length;i++)r.scale.push({index:i})}this.widths[0]=Math.min(this.widths[0],e+3)}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}heading(e,r,i){return this.styles.strong(e)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIndex>=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){if(this.scaleKey===!1||this.state.submitted)return"";let e=this.scale.map(i=>` ${i.name} - ${i.message}`);return["",...e].map(i=>this.styles.muted(i)).join(`
`)}renderScaleHeading(e){let r=this.scale.map(l=>l.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let i=this.scaleLength-r.join("").length,n=Math.round(i/(r.length-1)),o=r.map(l=>this.styles.strong(l)).join(" ".repeat(n)),a=" ".repeat(this.widths[0]);return this.margin[3]+a+this.margin[1]+o}scaleIndicator(e,r,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,i);let n=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):n?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let i=e.scale.map(s=>this.scaleIndicator(e,s,r)),n=this.term==="Hyper"?"":" ";return i.join(n+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=await this.pointer(e,r),s=await e.hint;s&&!lz.hasColor(s)&&(s=this.styles.muted(s));let o=d=>this.margin[3]+d.replace(/\s+$/,"").padEnd(this.widths[0]," "),a=this.newline,l=this.indent(e),c=await this.resolve(e.message,this.state,e,r),g=await this.renderScale(e,r),u=this.margin[1]+this.margin[3];this.scaleLength=Ebe.unstyle(g).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-u.length);let f=lz.wordWrap(c,{width:this.widths[0],newline:a}).split(`
`).map(d=>o(d)+this.margin[1]);return i&&(g=this.styles.info(g),f=f.map(d=>this.styles.info(d))),f[0]+=g,this.linebreak&&f.push(""),[l+n,f.join(`
`)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(n,s)=>await this.renderChoice(n,s)),r=await Promise.all(e),i=await this.renderScaleHeading();return this.margin[0]+[i,...r.map(n=>n.join(" "))].join(`
`)}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o="";this.options.promptLine!==!1&&(o=[i,s,n,""].join(" "),this.state.prompt=o);let a=await this.header(),l=await this.format(),c=await this.renderScaleKey(),g=await this.error()||await this.hint(),u=await this.renderChoices(),h=await this.footer(),f=this.emptyError;l&&(o+=l),g&&!o.includes(g)&&(o+=" "+g),e&&!l&&!u.trim()&&this.multiple&&f!=null&&(o+=this.styles.danger(f)),this.clear(r),this.write([a,o,c,u,h].filter(Boolean).join(`
`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};Az.exports=cz});var pz=C((H5e,uz)=>{"use strict";var hz=Rn(),Bbe=(t="")=>typeof t=="string"?t.replace(/^['"]|['"]$/g,""):"",fz=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=Bbe(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},wbe=async(t={},e={},r=i=>i)=>{let i=new Set,n=t.fields||[],s=t.template,o=[],a=[],l=[],c=1;typeof s=="function"&&(s=await s());let g=-1,u=()=>s[++g],h=()=>s[g+1],f=d=>{d.line=c,o.push(d)};for(f({type:"bos",value:""});g<s.length-1;){let d=u();if(/^[^\S\n ]$/.test(d)){f({type:"text",value:d});continue}if(d===`
`){f({type:"newline",value:d}),c++;continue}if(d==="\\"){d+=u(),f({type:"text",value:d});continue}if((d==="$"||d==="#"||d==="{")&&h()==="{"){d+=u();let w={type:"template",open:d,inner:"",close:"",value:d},B;for(;B=u();){if(B==="}"){h()==="}"&&(B+=u()),w.value+=B,w.close=B;break}B===":"?(w.initial="",w.key=w.inner):w.initial!==void 0&&(w.initial+=B),w.value+=B,w.inner+=B}w.template=w.open+(w.initial||w.inner)+w.close,w.key=w.key||w.inner,e.hasOwnProperty(w.key)&&(w.initial=e[w.key]),w=r(w),f(w),l.push(w.key),i.add(w.key);let P=a.find(k=>k.name===w.key);w.field=n.find(k=>k.name===w.key),P||(P=new fz(w),a.push(P)),P.lines.push(w.line-1);continue}let m=o[o.length-1];m.type==="text"&&m.line===c?m.value+=d:f({type:"text",value:d})}return f({type:"eos",value:""}),{input:s,tabstops:o,unique:i,keys:l,items:a}};uz.exports=async t=>{let e=t.options,r=new Set(e.required===!0?[]:e.required||[]),i={...e.values,...e.initial},{tabstops:n,items:s,keys:o}=await wbe(e,i),a=_S("result",t,e),l=_S("format",t,e),c=_S("validate",t,e,!0),g=t.isValue.bind(t);return async(u={},h=!1)=>{let f=0;u.required=r,u.items=s,u.keys=o,u.output="";let d=async(B,P,k,M)=>{let Y=await c(B,P,k,M);return Y===!1?"Invalid field "+k.name:Y};for(let B of n){let P=B.value,k=B.key;if(B.type!=="template"){P&&(u.output+=P);continue}if(B.type==="template"){let M=s.find(R=>R.name===k);e.required===!0&&u.required.add(M.name);let Y=[M.input,u.values[M.value],M.value,P].find(g),J=(M.field||{}).message||B.inner;if(h){let R=await d(u.values[k],u,M,f);if(R&&typeof R=="string"||R===!1){u.invalid.set(k,R);continue}u.invalid.delete(k);let A=await a(u.values[k],u,M,f);u.output+=hz.unstyle(A);continue}M.placeholder=!1;let _=P;P=await l(P,u,M,f),Y!==P?(u.values[k]=Y,P=t.styles.typing(Y),u.missing.delete(J)):(u.values[k]=void 0,Y=`<${J}>`,P=t.styles.primary(Y),M.placeholder=!0,u.required.has(k)&&u.missing.add(J)),u.missing.has(J)&&u.validating&&(P=t.styles.warning(Y)),u.invalid.has(k)&&u.validating&&(P=t.styles.danger(Y)),f===u.index&&(_!==P?P=t.styles.underline(P):P=t.styles.heading(hz.unstyle(P))),f++}P&&(u.output+=P)}let m=u.output.split(`
`).map(B=>" "+B),I=s.length,w=0;for(let B of s)u.invalid.has(B.name)&&B.lines.forEach(P=>{m[P][0]===" "&&(m[P]=u.styles.danger(u.symbols.bullet)+m[P].slice(1))}),t.isValue(u.values[B.name])&&w++;return u.completed=(w/I*100).toFixed(0),u.output=m.join(`
`),u.output}};function _S(t,e,r,i){return(n,s,o,a)=>typeof o.field[t]=="function"?o.field[t].call(e,n,s,o,a):[i,n].find(l=>e.isValue(l))}});var mz=C((j5e,dz)=>{"use strict";var Qbe=Rn(),bbe=pz(),Dbe=xc(),Cz=class extends Dbe{constructor(e){super(e);this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await bbe(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let r=this.getItem();this.cursor+=e,r.cursor+=e}dispatch(e,r){if(!r.code&&!r.ctrl&&e!=null&&this.getItem()){this.append(e,r);return}this.alert()}append(e,r){let i=this.getItem(),n=i.input.slice(0,this.cursor),s=i.input.slice(this.cursor);this.input=i.input=`${n}${e}${s}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let r=e.input.slice(this.cursor),i=e.input.slice(0,this.cursor-1);this.input=e.input=`${i}${r}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let r=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(r=this.styles.danger),r(`${this.state.completed}% completed`)}async render(){let{index:e,keys:r=[],submitted:i,size:n}=this.state,s=[this.options.newline,`
`].find(B=>B!=null),o=await this.prefix(),a=await this.separator(),l=await this.message(),c=[o,l,a].filter(Boolean).join(" ");this.state.prompt=c;let g=await this.header(),u=await this.error()||"",h=await this.hint()||"",f=i?"":await this.interpolate(this.state),d=this.state.key=r[e]||"",m=await this.format(d),I=await this.footer();m&&(c+=" "+m),h&&!m&&this.state.completed===0&&(c+=" "+h),this.clear(n);let w=[g,c,f,I,u.trim()];this.write(w.filter(Boolean).join(s)),this.restore()}getItem(e){let{items:r,keys:i,index:n}=this.state,s=r.find(o=>o.name===i[n]);return s&&s.input!=null&&(this.input=s.input,this.cursor=s.cursor),s}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:r,output:i,values:n}=this.state;if(e.size){let a="";for(let[l,c]of e)a+=`Invalid ${l}: ${c}
`;return this.state.error=a,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let o=Qbe.unstyle(i).split(`
`).map(a=>a.slice(1)).join(`
`);return this.value={values:n,result:o},super.submit()}};dz.exports=Cz});var yz=C((G5e,Iz)=>{"use strict";var Sbe="(Use <shift>+<up/down> to sort)",Pbe=Vo(),Ez=class extends Pbe{constructor(e){super({...e,reorder:!1,sort:!0,multiple:!0});this.state.hint=[this.options.hint,Sbe].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(e,r){let i=await super.renderChoice(e,r),n=this.symbols.identicalTo+" ",s=this.index===r&&this.sorting?this.styles.muted(n):" ";return this.options.drag===!1&&(s=""),this.options.numbered===!0?s+`${r+1} - `+i:s+i}get selected(){return this.choices}submit(){return this.value=this.choices.map(e=>e.value),super.submit()}};Iz.exports=Ez});var Qz=C((q5e,Bz)=>{"use strict";var xbe=_h(),wz=class extends xbe{constructor(e={}){super(e);if(this.emptyError=e.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let r=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];r=r.map(i=>this.styles.muted(i)),this.state.header=r.join(`
`)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...e);for(let i of r)i.scale=kbe(5,this.options),i.scaleIdx=2;return r}dispatch(){this.alert()}space(){let e=this.focused,r=e.scale[e.scaleIdx],i=r.selected;return e.scale.forEach(n=>n.selected=!1),r.selected=!i,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIdx>=e.scale.length-1?this.alert():(e.scaleIdx++,this.render())}left(){let e=this.focused;return e.scaleIdx<=0?this.alert():(e.scaleIdx--,this.render())}indent(){return" "}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=this.term==="Hyper",s=n?9:8,o=n?"":" ",a=this.symbols.line.repeat(s),l=" ".repeat(s+(n?0:1)),c=P=>(P?this.styles.success("\u25C9"):"\u25EF")+o,g=r+1+".",u=i?this.styles.heading:this.styles.noop,h=await this.resolve(e.message,this.state,e,r),f=this.indent(e),d=f+e.scale.map((P,k)=>c(k===e.scaleIdx)).join(a),m=P=>P===e.scaleIdx?u(P):P,I=f+e.scale.map((P,k)=>m(k)).join(l),w=()=>[g,h].filter(Boolean).join(" "),B=()=>[w(),d,I," "].filter(Boolean).join(`
`);return i&&(d=this.styles.cyan(d),I=this.styles.cyan(I)),B()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o=[i,s,n].filter(Boolean).join(" ");this.state.prompt=o;let a=await this.header(),l=await this.format(),c=await this.error()||await this.hint(),g=await this.renderChoices(),u=await this.footer();(l||!c)&&(o+=" "+l),c&&!o.includes(c)&&(o+=" "+c),e&&!l&&!g&&this.multiple&&this.type!=="form"&&(o+=this.styles.danger(this.emptyError)),this.clear(r),this.write([o,a,g,u].filter(Boolean).join(`
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function kbe(t,e={}){if(Array.isArray(e.scale))return e.scale.map(i=>({...i}));let r=[];for(let i=1;i<t+1;i++)r.push({i,selected:!1});return r}Bz.exports=wz});var Dz=C((J5e,bz)=>{bz.exports=qS()});var xz=C((_5e,Sz)=>{"use strict";var vbe=JI(),Pz=class extends vbe{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=i=>this.styles.primary.underline(i);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),i=await this.prefix(),n=await this.separator(),s=await this.message(),o=await this.format(),a=await this.error()||await this.hint(),l=await this.footer(),c=[i,s,n,o].join(" ");this.state.prompt=c,a&&!c.includes(a)&&(c+=" "+a),this.clear(e),this.write([r,c,l].filter(Boolean).join(`
`)),this.write(this.margin[2]),this.restore()}};Sz.exports=Pz});var Fz=C((W5e,kz)=>{"use strict";var Fbe=Vo(),vz=class extends Fbe{constructor(e){super(e);if(typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};kz.exports=vz});var Nz=C(WS=>{"use strict";var Rz=zr(),Dr=(t,e)=>{Rz.defineExport(WS,t,e),Rz.defineExport(WS,t.toLowerCase(),e)};Dr("AutoComplete",()=>B4());Dr("BasicAuth",()=>k4());Dr("Confirm",()=>L4());Dr("Editable",()=>O4());Dr("Form",()=>qI());Dr("Input",()=>qS());Dr("Invisible",()=>W4());Dr("List",()=>X4());Dr("MultiSelect",()=>ez());Dr("Numeral",()=>nz());Dr("Password",()=>az());Dr("Scale",()=>gz());Dr("Select",()=>Vo());Dr("Snippet",()=>mz());Dr("Sort",()=>yz());Dr("Survey",()=>Qz());Dr("Text",()=>Dz());Dr("Toggle",()=>xz());Dr("Quiz",()=>Fz())});var Mz=C((V5e,Lz)=>{Lz.exports={ArrayPrompt:_h(),AuthPrompt:GS(),BooleanPrompt:JI(),NumberPrompt:JS(),StringPrompt:wA()}});var zh=C((X5e,Kz)=>{"use strict";var Oz=require("assert"),zS=require("events"),Xo=zr(),as=class extends zS{constructor(e,r){super();this.options=Xo.merge({},e),this.answers={...r}}register(e,r){if(Xo.isObject(e)){for(let n of Object.keys(e))this.register(n,e[n]);return this}Oz.equal(typeof r,"function","expected a function");let i=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Xo.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Xo.merge({},this.options,e),{type:i,name:n}=e,{set:s,get:o}=Xo;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[n];Oz(this.prompts[i],`Prompt "${i}" is not registered`);let a=new this.prompts[i](r),l=o(this.answers,n);a.state.answers=this.answers,a.enquirer=this,n&&a.on("submit",g=>{this.emit("answer",n,g,a),s(this.answers,n,g)});let c=a.emit.bind(a);return a.emit=(...g)=>(this.emit.call(this,...g),c(...g)),this.emit("prompt",a,this),r.autofill&&l!=null?(a.value=a.input=l,r.autofill==="show"&&await a.submit()):l=a.value=await a.run(),l}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||xc()}static get prompts(){return Nz()}static get types(){return Mz()}static get prompt(){let e=(r,...i)=>{let n=new this(...i),s=n.emit.bind(n);return n.emit=(...o)=>(e.emit(...o),s(...o)),n.prompt(r)};return Xo.mixinEmitter(e,new zS),e}};Xo.mixinEmitter(as,new zS);var VS=as.prompts;for(let t of Object.keys(VS)){let e=t.toLowerCase(),r=i=>new VS[t](i).run();as.prompt[e]=r,as[e]=r,as[t]||Reflect.defineProperty(as,t,{get:()=>VS[t]})}var Wh=t=>{Xo.defineExport(as,t,()=>as.types[t])};Wh("ArrayPrompt");Wh("AuthPrompt");Wh("BooleanPrompt");Wh("NumberPrompt");Wh("StringPrompt");Kz.exports=as});var eP=C((R6e,Jz)=>{var Mbe=kI();function Kbe(t,e,r){var i=t==null?void 0:Mbe(t,e);return i===void 0?r:i}Jz.exports=Kbe});var Vz=C((T6e,zz)=>{var Obe=Kh();function Tbe(){this.__data__=new Obe,this.size=0}zz.exports=Tbe});var Zz=C((U6e,Xz)=>{function Ube(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}Xz.exports=Ube});var e5=C((Y6e,$z)=>{function Ybe(t){return this.__data__.get(t)}$z.exports=Ybe});var r5=C((H6e,t5)=>{function Hbe(t){return this.__data__.has(t)}t5.exports=Hbe});var n5=C((j6e,i5)=>{var jbe=Kh(),Gbe=xI(),qbe=hS(),Jbe=200;function _be(t,e){var r=this.__data__;if(r instanceof jbe){var i=r.__data__;if(!Gbe||i.length<Jbe-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new qbe(i)}return r.set(t,e),this.size=r.size,this}i5.exports=_be});var rP=C((G6e,s5)=>{var Wbe=Kh(),zbe=Vz(),Vbe=Zz(),Xbe=e5(),Zbe=r5(),$be=n5();function vc(t){var e=this.__data__=new Wbe(t);this.size=e.size}vc.prototype.clear=zbe;vc.prototype.delete=Vbe;vc.prototype.get=Xbe;vc.prototype.has=Zbe;vc.prototype.set=$be;s5.exports=vc});var a5=C((q6e,o5)=>{function eDe(t,e){for(var r=-1,i=t==null?0:t.length;++r<i&&e(t[r],r,t)!==!1;);return t}o5.exports=eDe});var Fc=C((J6e,A5)=>{var tDe=FI(),rDe=vI();function iDe(t,e,r,i){var n=!r;r||(r={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(r[a],t[a],a,r,t):void 0;l===void 0&&(l=t[a]),n?rDe(r,a,l):tDe(r,a,l)}return r}A5.export Line truncated
`:"";return o?u+=`@IF EXIST ${o} (\r
${o} ${l} ${n} ${g}%*\r
) ELSE (\r
@SETLOCAL\r
@SET PATHEXT=%PATHEXT:;.JS;=;%\r
${a} ${l} ${n} ${g}%*\r
)`:u+=`@${a} ${l} ${n} ${g}%*\r
`,u}function lNe(t,e,r){let i=Cn.relative(Cn.dirname(e),t),n=r.prog&&r.prog.split("\\").join("/"),s;i=i.split("\\").join("/");let o=Cn.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,a=r.args||"",l=Gx(r.nodePath).posix;n?(s=`"$basedir/${r.prog}"`,i=o):(n=o,a="",i="");let c=r.progArgs?`${r.progArgs.join(" ")} `:"",g=`#!/bin/sh
`;g=g+`basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")
case \`uname\` in
*CYGWIN*) basedir=\`cygpath -w "$basedir"\`;;
esac
`;let u=r.nodePath?`export NODE_PATH="${l}"
`:"";return s?g+=u+`if [ -x ${s} ]; then
exec ${s} ${a} ${i} ${c}"$@"
else
exec ${n} ${a} ${i} ${c}"$@"
fi
`:g+=`${u}${n} ${a} ${i} ${c}"$@"
exit $?
`,g}function cNe(t,e,r){let i=Cn.relative(Cn.dirname(e),t),n=r.prog&&r.prog.split("\\").join("/"),s=n&&`"${n}$exe"`,o;i=i.split("\\").join("/");let a=Cn.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,l=r.args||"",c=Gx(r.nodePath),g=c.win32,u=c.posix;s?(o=`"$basedir/${r.prog}$exe"`,i=a):(s=a,l="",i="");let h=r.progArgs?`${r.progArgs.join(" ")} `:"",f=`#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
`+(r.nodePath?`$env_node_path=$env:NODE_PATH
$env:NODE_PATH="${g}"
`:"")+`if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}`;return r.nodePath&&(f=f+` else {
$env:NODE_PATH="${u}"
}`),f+=`
`,o?f=f+`$ret=0
if (Test-Path ${o}) {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${o} ${l} ${i} ${h}$args
} else {
& ${o} ${l} ${i} ${h}$args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${s} ${l} ${i} ${h}$args
} else {
& ${s} ${l} ${i} ${h}$args
}
$ret=$LASTEXITCODE
}
`+(r.nodePath?`$env:NODE_PATH=$env_node_path
`:"")+`exit $ret
`:f=f+`# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & ${s} ${l} ${i} ${h}$args
} else {
& ${s} ${l} ${i} ${h}$args
}
`+(r.nodePath?`$env:NODE_PATH=$env_node_path
`:"")+`exit $LASTEXITCODE
`,f}function uNe(t,e){return e.fs_.chmod(t,493)}function Gx(t){if(!t)return{win32:"",posix:""};let e=typeof t=="string"?t.split(Cn.delimiter):Array.from(t),r={};for(let i=0;i<e.length;i++){let n=e[i].split("/").join("\\"),s=i7()?e[i].split("\\").join("/").replace(/^([^:\\/]*):/,(o,a)=>`/mnt/${a.toLowerCase()}`):e[i];r.win32=r.win32?`${r.win32};${n}`:n,r.posix=r.posix?`${r.posix}:${s}`:s,r[i]={win32:n,posix:s}}return r}r7.exports=jx});var Ak=C((_ot,y7)=>{y7.exports=require("stream")});var w7=C((Wot,B7)=>{"use strict";function vNe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),i.forEach(function(n){kNe(t,n,r[n])})}return t}function kNe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var FNe=require("buffer"),DE=FNe.Buffer,RNe=require("util"),lk=RNe.inspect,NNe=lk&&lk.custom||"inspect";function LNe(t,e,r){DE.prototype.copy.call(t,e,r)}B7.exports=function(){function t(){this.head=null,this.tail=null,this.length=0}var e=t.prototype;return e.push=function(i){var n={data:i,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.unshift=function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.shift=function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}},e.clear=function(){this.head=this.tail=null,this.length=0},e.join=function(i){if(this.length===0)return"";for(var n=this.head,s=""+n.data;n=n.next;)s+=i+n.data;return s},e.concat=function(i){if(this.length===0)return DE.alloc(0);for(var n=DE.allocUnsafe(i>>>0),s=this.head,o=0;s;)LNe(s.data,n,o),o+=s.data.length,s=s.next;return n},e.consume=function(i,n){var s;return i<this.head.data.length?(s=this.head.data.slice(0,i),this.head.data=this.head.data.slice(i)):i===this.head.data.length?s=this.shift():s=n?this._getString(i):this._getBuffer(i),s},e.first=function(){return this.head.data},e._getString=function(i){var n=this.head,s=1,o=n.data;for(i-=o.length;n=n.next;){var a=n.data,l=i>a.length?a.length:i;if(l===a.length?o+=a:o+=a.slice(0,i),i-=l,i===0){l===a.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(l));break}++s}return this.length-=s,o},e._getBuffer=function(i){var n=DE.allocUnsafe(i),s=this.head,o=1;for(s.data.copy(n),i-=s.data.length;s=s.next;){var a=s.data,l=i>a.length?a.length:i;if(a.copy(n,n.length-i,0,l),i-=l,i===0){l===a.length?(++o,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=a.slice(l));break}++o}return this.length-=o,n},e[NNe]=function(r,i){return lk(this,vNe({},i,{depth:0,customInspect:!1}))},t}()});var gk=C((zot,Q7)=>{"use strict";function KNe(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(!this._writableState||!this._writableState.errorEmitted)&&process.nextTick(b7,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?(process.nextTick(MNe,r,s),r._writableState&&(r._writableState.errorEmitted=!0)):e?(process.nextTick(ck,r),e(s)):process.nextTick(ck,r)}),this)}function MNe(t,e){b7(t,e),ck(t)}function ck(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ONe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b7(t,e){t.emit("error",e)}Q7.exports={destroy:KNe,undestroy:ONe}});var NA=C((Vot,D7)=>{"use strict";var S7={};function mn(t,e,r){r||(r=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends r{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=r.name,n.prototype.code=t,S7[t]=n}function P7(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function TNe(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function UNe(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function YNe(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function Line truncated
`)),t.linkname&&(e+=Ok(" linkpath="+t.linkname+`
`));var r=t.pax;if(r)for(var i in r)e+=Ok(" "+i+"="+r[i]+`
`);return Buffer.from(e)};eg.decodePax=function(t){for(var e={};t.length;){for(var r=0;r<t.length&&t[r]!==32;)r++;var i=parseInt(t.slice(0,r).toString(),10);if(!i)return e;var n=t.slice(r+1,i-1).toString(),s=n.indexOf("=");if(s===-1)return e;e[n.slice(0,s)]=n.slice(s+1),t=t.slice(i)}return e};eg.encode=function(t){var e=xMe(512),r=t.name,i="";if(t.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var n=r.indexOf("/");if(n===-1)return null;i+=i?"/"+r.slice(0,n):r.slice(0,n),r=r.slice(n+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(i)>155||t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(r),e.write(aa(t.mode&RMe,6),100),e.write(aa(t.uid,6),108),e.write(aa(t.gid,6),116),e.write(aa(t.size,11),124),e.write(aa(t.mtime.getTime()/1e3|0,11),136),e[156]=QZ+MMe(t.type),t.linkname&&e.write(t.linkname,157),e.write(FMe,257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(aa(t.devmajor||0,6),329),e.write(aa(t.devminor||0,6),337),i&&e.write(i,345),e.write(aa(DZ(e),6),148),e)};eg.decode=function(t,e){var r=t[156]===0?0:t[156]-QZ,i=tg(t,0,100,e),n=Aa(t,100,8),s=Aa(t,108,8),o=Aa(t,116,8),a=Aa(t,124,12),l=Aa(t,136,12),c=LMe(r),g=t[157]===0?null:tg(t,157,100,e),u=tg(t,265,32),h=tg(t,297,32),f=Aa(t,329,8),d=Aa(t,337,8);t[345]&&(i=tg(t,345,155,e)+"/"+i),r===0&&i&&i[i.length-1]==="/"&&(r=5);var m=DZ(t);if(m===8*32)return null;if(m!==Aa(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:i,mode:n,uid:s,gid:o,size:a,mtime:new Date(1e3*l),type:c,linkname:g,uname:u,gname:h,devmajor:f,devminor:d}}});var RZ=C((fat,SZ)=>{var PZ=require("util"),OMe=wZ(),np=Tk(),xZ=$c().Writable,kZ=$c().PassThrough,vZ=function(){},FZ=function(t){return t&=511,t&&512-t},TMe=function(t,e){var r=new OE(t,e);return r.end(),r},UMe=function(t,e){return e.path&&(t.name=e.path),e.linkpath&&(t.linkname=e.linkpath),e.size&&(t.size=parseInt(e.size,10)),t.pax=e,t},OE=function(t,e){this._parent=t,this.offset=e,kZ.call(this)};PZ.inherits(OE,kZ);OE.prototype.destroy=function(t){this._parent.destroy(t)};var so=function(t){if(!(this instanceof so))return new so(t);xZ.call(this,t),t=t||{},this._offset=0,this._buffer=OMe(),this._missing=0,this._partial=!1,this._onparse=vZ,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var e=this,r=e._buffer,i=function(){e._continue()},n=function(h){if(e._locked=!1,h)return e.destroy(h);e._stream||i()},s=function(){e._stream=null;var h=FZ(e._header.size);h?e._parse(h,o):e._parse(512,u),e._locked||i()},o=function(){e._buffer.consume(FZ(e._header.size)),e._parse(512,u),i()},a=function(){var h=e._header.size;e._paxGlobal=np.decodePax(r.slice(0,h)),r.consume(h),s()},l=function(){var h=e._header.size;e._pax=np.decodePax(r.slice(0,h)),e._paxGlobal&&(e._pax=Object.assign({},e._paxGlobal,e._pax)),r.consume(h),s()},c=function(){var h=e._header.size;this._gnuLongPath=np.decodeLongPath(r.slice(0,h),t.filenameEncoding),r.consume(h),s()},g=function(){var h=e._header.size;this._gnuLongLinkPath=np.decodeLongPath(r.slice(0,h),t.filenameEncoding),r.consume(h),s()},u=function(){var h=e._offset,f;try{f=e._header=np.decode(r.slice(0,512),t.filenameEncoding)}catch(d){e.emit("error",d)}if(r.consume(512),!f){e._parse(512,u),i();return}if(f.type==="gnu-long-path"){e._parse(f.size,c),i();return}if(f.type==="gnu-long-link-path"){e._parse(f.size,g),i();return}if(f.type==="pax-global-header"){e._parse(f.size,a),i();return}if(f.type==="pax-header"){e._parse(f.size,l),i();return}if(e._gnuLongPath&&(f.name=e._gnuLongPath,e._gnuLongPath=null),e._gnuLongLinkPath&&(f.linkname=e._gnuLongLinkPath,e._gnuLongLinkPath=null),e._pax&&(e._header=f=UMe(f,e._pax),e._pax=null),e._locked=!0,!f.size||f.type==="directory"){e._parse(512,u),e.emit("entry",f,TMe(e,h),n);return}e._stream=new OE(e,h),e.emit("entry",f,e._stream,n),e._parse(f.size,s),i()};this._onheader=u,this._parse(512,u)};PZ.inherits(so,xZ);so.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.emit("close"))};so.prototype._parse=function(t,e){this._destroyed||(this._offset+=t,this._missing=t,e===this._onheader&&(this._partial=!1),this._onparse=e)};so.prototype._continue=function(){if(!this._destroyed){var t=this._cb;this._cb=vZ,this._overflow?this._write(this._overflow,void 0,t):t()}};so.prototype._write=function(t,e,r){if(!this._destroyed){var i=this._stream,n=this._buffer,s=this._missing;if(t.length&&(this._partial=!0),t.length<s)return this._missing-=t.length,this._overflow=null,i?i.write(t,r):(n.append(t),r());this._cb=r,this._missing=0;var o=null;t.length>s&&(o=t.slice(s),t=t.slice(0,s)),i?i.end(t):n.append(t),this._overflow=o,this._onparse()}};so.prototype._final=function(t){if(this._partial)return this.destroy(new Error("Un Line truncated
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}cs.exports.checkStream=BKe;function BKe(t,e,r){r=hi(r);let i=r.Promise||Promise,n=Xk(r.concat({integrity:e}));return new i((s,o)=>{t.pipe(n),t.on("error",o),n.on("error",o);let a;n.on("verified",l=>{a=l}),n.on("end",()=>s(a)),n.on("data",()=>{})})}cs.exports.integrityStream=Xk;function Xk(t){t=hi(t);let e=t.integrity&&gs(t.integrity,t),r=e&&Object.keys(e).length,i=r&&e.pickAlgorithm(t),n=r&&e[i],s=Array.from(new Set(t.algorithms.concat(i?[i]:[]))),o=s.map(ap.createHash),a=0,l=new uKe({transform(c,g,u){a+=c.length,o.forEach(h=>h.update(c,g)),u(null,c,g)}}).on("end",()=>{let c=t.options&&t.options.length?`?${t.options.join("?")}`:"",g=gs(o.map((h,f)=>`${s[f]}-${h.digest("base64")}${c}`).join(" "),t),u=r&&g.match(e,t);if(typeof t.size=="number"&&a!==t.size){let h=new Error(`stream size mismatch when checking ${e}.
Wanted: ${t.size}
Found: ${a}`);h.code="EBADSIZE",h.found=a,h.expected=t.size,h.sri=e,l.emit("error",h)}else if(t.integrity&&!u){let h=new Error(`${e} integrity checksum failed when using ${i}: wanted ${n} but got ${g}. (${a} bytes)`);h.code="EINTEGRITY",h.found=g,h.expected=n,h.algorithm=i,h.sri=e,l.emit("error",h)}else l.emit("size",a),l.emit("integrity",g),u&&l.emit("verified",u)});return l}cs.exports.create=wKe;function wKe(t){t=hi(t);let e=t.algorithms,r=t.options.length?`?${t.options.join("?")}`:"",i=e.map(ap.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(n){return e.reduce((o,a)=>{let l=i.shift().digest("base64"),c=new YA(`${a}-${l}${r}`,t);if(c.algorithm&&c.digest){let g=c.algorithm;o[g]||(o[g]=[]),o[g].push(c)}return o},new sg)}}}var QKe=new Set(ap.getHashes()),A$=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>QKe.has(t));function CKe(t,e){return A$.indexOf(t.toLowerCase())>=A$.indexOf(e.toLowerCase())?t:e}});var xv=W(Pv());Object.fromEntries||(Object.fromEntries=xv.default);var Gh={};We(Gh,{BuildType:()=>Oi,Cache:()=>ft,Configuration:()=>oe,DEFAULT_LOCK_FILENAME:()=>qD,DEFAULT_RC_FILENAME:()=>GD,FormatType:()=>CA,LightReport:()=>_s,LinkType:()=>At,Manifest:()=>Ge,MessageName:()=>q,PackageExtensionStatus:()=>Yr,PackageExtensionType:()=>Pr,Project:()=>xe,ProjectLookup:()=>_o,Report:()=>ni,ReportError:()=>_e,SettingsType:()=>ae,StreamReport:()=>be,TAG_REGEXP:()=>dc,TelemetryManager:()=>jh,ThrowReport:()=>br,VirtualFetcher:()=>bh,Workspace:()=>Hh,WorkspaceResolver:()=>ci,YarnVersion:()=>Ri,execUtils:()=>Ir,folderUtils:()=>zy,formatUtils:()=>se,hashUtils:()=>Dn,httpUtils:()=>Ht,miscUtils:()=>he,scriptUtils:()=>bt,semverUtils:()=>cr,structUtils:()=>S,tgzUtils:()=>Cr,treeUtils:()=>Fn});var Ir={};We(Ir,{EndStrategy:()=>zi,execvp:()=>Vee,pipevp:()=>ys});var Yg={};We(Yg,{AliasFS:()=>ma,CwdFS:()=>It,DEFAULT_COMPRESSION_LEVEL:()=>Ca,FakeFS:()=>Bn,Filename:()=>dt,JailFS:()=>Is,LazyFS:()=>Mg,LinkStrategy:()=>kg,NoFS:()=>rd,NodeFS:()=>Qt,PortablePath:()=>me,PosixFS:()=>Kg,ProxiedFS:()=>mr,VirtualFS:()=>or,ZipFS:()=>Sr,ZipOpenFS:()=>Wi,extendFs:()=>nd,normalizeLineEndings:()=>ZA,npath:()=>npath,opendir:()=>ha,patchFs:()=>Ug,ppath:()=>D,statUtils:()=>By,toFilename:()=>_t,xfs:()=>L});var By={};We(By,{BigIntStatsEntry:()=>Sg,DirEntry:()=>kv,StatEntry:()=>fo,areStatsEqual:()=>Qy,clearStats:()=>Wp,convertToBigIntStats:()=>zp,makeDefaultStats:()=>Pg,makeEmptyStats:()=>gee});var wy=W(require("util"));var Ji=61440,uo=16384,ms=32768,ho=40960;var kv=class{constructor(){this.name="";this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Ji)===uo}isFIFO(){return!1}isFile(){return(this.mode&Ji)===ms}isSocket(){return!1}isSymbolicLink(){return(this.mode&Ji)===ho}},fo=class{constructor(){this.uid=0;this.gid=0;this.size=0;this.blksize=0;this.atimeMs=0;this.mtimeMs=0;this.ctimeMs=0;this.birthtimeMs=0;this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=0;this.ino=0;this.mode=ms|420;this.nlink=1;this.rdev=0;this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&Ji)===uo}isFIFO(){return!1}isFile(){return(this.mode&Ji)===ms}isSocket(){return!1}isSymbolicLink(){return(this.mode&Ji)===ho}},Sg=class{constructor(){this.uid=BigInt(0);this.gid=BigInt(0);this.size=BigInt(0);this.blksize=BigInt(0);this.atimeMs=BigInt(0);this.mtimeMs=BigInt(0);this.ctimeMs=BigInt(0);this.birthtimeMs=BigInt(0);this.atimeNs=BigInt(0);this.mtimeNs=BigInt(0);this.ctimeNs=BigInt(0);this.birthtimeNs=BigInt(0);this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=BigInt(0);this.ino=BigInt(0);this.mode=BigInt(ms|420);this.nlink=BigInt(1);this.rdev=BigInt(0);this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(Ji))===BigInt(uo)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(Ji))===BigInt(ms)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(Ji))===BigInt(ho)}};function Pg(){return new fo}function gee(){return Wp(Pg())}function Wp(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];typeof r=="number"?t[e]=0:typeof r=="bigint"?t[e]=BigInt(0):wy.types.isDate(r)&&(t[e]=new Date(0))}return t}function zp(t){let e=new Sg;for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let i=t[r];typeof i=="number"?e[r]=BigInt(i):wy.types.isDate(i)&&(e[r]=new Date(i))}return e.atimeNs=e.atimeMs*BigInt(1e6),e.mtimeNs=e.mtimeMs*BigInt(1e6),e.ctimeNs=e.ctimeMs*BigInt(1e6),e.birthtimeNs=e.birthtimeMs*BigInt(1e6),e}function Qy(t,e){if(t.atimeMs!==e.atimeMs||t.birthtimeMs!==e.birthtimeMs||t.blksize!==e.blksize||t.blocks!==e.blocks||t.ctimeMs!==e.ctimeMs||t.dev!==e.dev||t.gid!==e.gid||t.ino!==e.ino||t.isBlockDevice()!==e.isBlockDevice()||t.isCharacterDevice()!==e.isCharac Line truncated
`)}writeJsonSync(e,r){return this.writeFileSync(e,`${JSON.stringify(r,null,2)}
`)}async preserveTimePromise(e,r){let i=await this.lstatPromise(e),n=await r();typeof n!="undefined"&&(e=n),this.lutimesPromise?await this.lutimesPromise(e,i.atime,i.mtime):i.isSymbolicLink()||await this.utimesPromise(e,i.atime,i.mtime)}async preserveTimeSync(e,r){let i=this.lstatSync(e),n=r();typeof n!="undefined"&&(e=n),this.lutimesSync?this.lutimesSync(e,i.atime,i.mtime):i.isSymbolicLink()||this.utimesSync(e,i.atime,i.mtime)}};Bn.DEFAULT_TIME=315532800;var fa=class extends Bn{constructor(){super(D)}};function Cee(t){let e=t.match(/\r?\n/g);if(e===null)return Gv.EOL;let r=e.filter(n=>n===`\r
`).length,i=e.length-r;return r>i?`\r
`:`
`}function ZA(t,e){return e.replace(/\r?\n/g,Cee(t))}var $A=W(require("fs")),ky=W(require("stream")),Wv=W(require("util")),vy=W(require("zlib"));var qv=W(require("fs"));var Qt=class extends fa{constructor(e=qv.default){super();this.realFs=e,typeof this.realFs.lutimes!="undefined"&&(this.lutimesPromise=this.lutimesPromiseImpl,this.lutimesSync=this.lutimesSyncImpl)}getExtractHint(){return!1}getRealPath(){return me.root}resolve(e){return D.resolve(e)}async openPromise(e,r,i){return await new Promise((n,s)=>{this.realFs.open(npath.fromPortablePath(e),r,i,this.makeCallback(n,s))})}openSync(e,r,i){return this.realFs.openSync(npath.fromPortablePath(e),r,i)}async opendirPromise(e,r){return await new Promise((i,n)=>{typeof r!="undefined"?this.realFs.opendir(npath.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.opendir(npath.fromPortablePath(e),this.makeCallback(i,n))}).then(i=>Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0}))}opendirSync(e,r){let i=typeof r!="undefined"?this.realFs.opendirSync(npath.fromPortablePath(e),r):this.realFs.opendirSync(npath.fromPortablePath(e));return Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0})}async readPromise(e,r,i=0,n=0,s=-1){return await new Promise((o,a)=>{this.realFs.read(e,r,i,n,s,(l,c)=>{l?a(l):o(c)})})}readSync(e,r,i,n,s){return this.realFs.readSync(e,r,i,n,s)}async writePromise(e,r,i,n,s){return await new Promise((o,a)=>typeof r=="string"?this.realFs.write(e,r,i,this.makeCallback(o,a)):this.realFs.write(e,r,i,n,s,this.makeCallback(o,a)))}writeSync(e,r,i,n,s){return typeof r=="string"?this.realFs.writeSync(e,r,i):this.realFs.writeSync(e,r,i,n,s)}async closePromise(e){await new Promise((r,i)=>{this.realFs.close(e,this.makeCallback(r,i))})}closeSync(e){this.realFs.closeSync(e)}createReadStream(e,r){let i=e!==null?npath.fromPortablePath(e):e;return this.realFs.createReadStream(i,r)}createWriteStream(e,r){let i=e!==null?npath.fromPortablePath(e):e;return this.realFs.createWriteStream(i,r)}async realpathPromise(e){return await new Promise((r,i)=>{this.realFs.realpath(npath.fromPortablePath(e),{},this.makeCallback(r,i))}).then(r=>npath.toPortablePath(r))}realpathSync(e){return npath.toPortablePath(this.realFs.realpathSync(npath.fromPortablePath(e),{}))}async existsPromise(e){return await new Promise(r=>{this.realFs.exists(npath.fromPortablePath(e),r)})}accessSync(e,r){return this.realFs.accessSync(npath.fromPortablePath(e),r)}async accessPromise(e,r){return await new Promise((i,n)=>{this.realFs.access(npath.fromPortablePath(e),r,this.makeCallback(i,n))})}existsSync(e){return this.realFs.existsSync(npath.fromPortablePath(e))}async statPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.stat(npath.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.stat(npath.fromPortablePath(e),this.makeCallback(i,n))})}statSync(e,r){return r?this.realFs.statSync(npath.fromPortablePath(e),r):this.realFs.statSync(npath.fromPortablePath(e))}async fstatPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.fstat(e,r,this.makeCallback(i,n)):this.realFs.fstat(e,this.makeCallback(i,n))})}fstatSync(e,r){return r?this.realFs.fstatSync(e,r):this.realFs.fstatSync(e)}async lstatPromise(e,r){return await new Promise((i,n)=>{r?this.realFs.lstat(npath.fromPortablePath(e),r,this.makeCallback(i,n)):this.realFs.lstat(npath.fromPortablePath(e),this.makeCallback(i,n))})}lstatSync(e,r){return r?this.realFs.lstatSync(npath.fromPortablePath(e),r):this.realFs.lstatSync(npath.fromPortablePath(e))}async chmodPromise(e,r){return await new Promise((i,n)=>{this.realFs.chmod(npath.fromPortablePath(e),r,this.makeCallback(i,n))})}chmodSync(e,r){return this.realFs.chmodSync(npath.fromPortablePath(e),r)}async chownPromise(e,r,i){return await new Promise((n,s)=>{this.realFs.chown(npath.fromPortablePath(e),r,i,this.makeCallback(n,s))})}chownSync(e,r,i){return this.realFs.chownSync(npath.fromPortablePath(e),r,i)}async renamePromise(e,r){return await new Promise((i,n)=>{this.realFs.rename(npath.fromPortablePath(e),npath.fromPortablePath(r),this.makeCallback(i,n))})}renameSync(e,r){return this.realFs.renameSync(npath.fromPortablePath(e),npath.fromPortablePath(r))}async copyFilePromise(e,r,i=0){return await new Promise((n,s)=>{this.realFs.copyFile(npath.fromPortablePath(e),npath.fromPortablePath(r),i,this.makeCallback(n,s))})}copyFileSync(e,r,i=0){return this.realFs.copyFileSync(npath.fromPortablePath(e),npath.fromPortablePath(r),i)}async appendFilePromise(e,r,i){return await new Promise((n,s)=>{let o=typeof e=="string"?npath.fromPortablePath(e):e;i?this.realFs.appendFile(o,r,i,this.makeCallback(n,s)):this.realFs.appendFile(o,r,this.makeCallback(n,s))})}appendFileSync(e,r,i){let n=typeof e=="string"?npath.fromPortablePath(e):e;i?this.realFs.appendFileSync(n,r,i):this.realFs.appendFileSync(n,r)}async writeFilePromise(e,r,i){return await new Promise((n,s)=>{let o=typeof e=="string"?npath.fromPortablePath(e):e;i?this.realFs.writeFile(o,r,i,this.makeCallback(n,s)):this Line truncated
${I}`),{code:Wy(f,d),stdout:m,stderr:I}))})})}var Xee=new Map([["SIGINT",2],["SIGQUIT",3],["SIGKILL",9],["SIGTERM",15]]);function Wy(t,e){let r=Xee.get(e);return typeof r!="undefined"?128+r:t!=null?t:1}var zy={};We(zy,{getDefaultGlobalFolder:()=>Xy,getHomeFolder:()=>Hg,isFolderInside:()=>Zy});var Vy=W(require("os"));function Xy(){if(process.platform==="win32"){let t=npath.toPortablePath(process.env.LOCALAPPDATA||npath.join(Vy.homedir(),"AppData","Local"));return D.resolve(t,"Yarn/Berry")}if(process.env.XDG_DATA_HOME){let t=npath.toPortablePath(process.env.XDG_DATA_HOME);return D.resolve(t,"yarn/berry")}return D.resolve(Hg(),".yarn/berry")}function Hg(){return npath.toPortablePath(Vy.homedir()||"/usr/local/share")}function Zy(t,e){let r=D.relative(e,t);return r&&!r.startsWith("..")&&!D.isAbsolute(r)}var se={};We(se,{LogLevel:()=>Pn,Style:()=>Na,Type:()=>De,addLogFilterSupport:()=>Pu,applyColor:()=>Fi,applyHyperlink:()=>Ql,applyStyle:()=>hC,json:()=>bl,mark:()=>$w,pretty:()=>Ye,prettyField:()=>Ma,prettyList:()=>cQ,supportsColor:()=>gC,supportsHyperlinks:()=>AQ,tuple:()=>La});var Su=W(IR()),wT=W(wR());var q;(function(t){t[t.UNNAMED=0]="UNNAMED",t[t.EXCEPTION=1]="EXCEPTION",t[t.MISSING_PEER_DEPENDENCY=2]="MISSING_PEER_DEPENDENCY",t[t.CYCLIC_DEPENDENCIES=3]="CYCLIC_DEPENDENCIES",t[t.DISABLED_BUILD_SCRIPTS=4]="DISABLED_BUILD_SCRIPTS",t[t.BUILD_DISABLED=5]="BUILD_DISABLED",t[t.SOFT_LINK_BUILD=6]="SOFT_LINK_BUILD",t[t.MUST_BUILD=7]="MUST_BUILD",t[t.MUST_REBUILD=8]="MUST_REBUILD",t[t.BUILD_FAILED=9]="BUILD_FAILED",t[t.RESOLVER_NOT_FOUND=10]="RESOLVER_NOT_FOUND",t[t.FETCHER_NOT_FOUND=11]="FETCHER_NOT_FOUND",t[t.LINKER_NOT_FOUND=12]="LINKER_NOT_FOUND",t[t.FETCH_NOT_CACHED=13]="FETCH_NOT_CACHED",t[t.YARN_IMPORT_FAILED=14]="YARN_IMPORT_FAILED",t[t.REMOTE_INVALID=15]="REMOTE_INVALID",t[t.REMOTE_NOT_FOUND=16]="REMOTE_NOT_FOUND",t[t.RESOLUTION_PACK=17]="RESOLUTION_PACK",t[t.CACHE_CHECKSUM_MISMATCH=18]="CACHE_CHECKSUM_MISMATCH",t[t.UNUSED_CACHE_ENTRY=19]="UNUSED_CACHE_ENTRY",t[t.MISSING_LOCKFILE_ENTRY=20]="MISSING_LOCKFILE_ENTRY",t[t.WORKSPACE_NOT_FOUND=21]="WORKSPACE_NOT_FOUND",t[t.TOO_MANY_MATCHING_WORKSPACES=22]="TOO_MANY_MATCHING_WORKSPACES",t[t.CONSTRAINTS_MISSING_DEPENDENCY=23]="CONSTRAINTS_MISSING_DEPENDENCY",t[t.CONSTRAINTS_INCOMPATIBLE_DEPENDENCY=24]="CONSTRAINTS_INCOMPATIBLE_DEPENDENCY",t[t.CONSTRAINTS_EXTRANEOUS_DEPENDENCY=25]="CONSTRAINTS_EXTRANEOUS_DEPENDENCY",t[t.CONSTRAINTS_INVALID_DEPENDENCY=26]="CONSTRAINTS_INVALID_DEPENDENCY",t[t.CANT_SUGGEST_RESOLUTIONS=27]="CANT_SUGGEST_RESOLUTIONS",t[t.FROZEN_LOCKFILE_EXCEPTION=28]="FROZEN_LOCKFILE_EXCEPTION",t[t.CROSS_DRIVE_VIRTUAL_LOCAL=29]="CROSS_DRIVE_VIRTUAL_LOCAL",t[t.FETCH_FAILED=30]="FETCH_FAILED",t[t.DANGEROUS_NODE_MODULES=31]="DANGEROUS_NODE_MODULES",t[t.NODE_GYP_INJECTED=32]="NODE_GYP_INJECTED",t[t.AUTHENTICATION_NOT_FOUND=33]="AUTHENTICATION_NOT_FOUND",t[t.INVALID_CONFIGURATION_KEY=34]="INVALID_CONFIGURATION_KEY",t[t.NETWORK_ERROR=35]="NETWORK_ERROR",t[t.LIFECYCLE_SCRIPT=36]="LIFECYCLE_SCRIPT",t[t.CONSTRAINTS_MISSING_FIELD=37]="CONSTRAINTS_MISSING_FIELD",t[t.CONSTRAINTS_INCOMPATIBLE_FIELD=38]="CONSTRAINTS_INCOMPATIBLE_FIELD",t[t.CONSTRAINTS_EXTRANEOUS_FIELD=39]="CONSTRAINTS_EXTRANEOUS_FIELD",t[t.CONSTRAINTS_INVALID_FIELD=40]="CONSTRAINTS_INVALID_FIELD",t[t.AUTHENTICATION_INVALID=41]="AUTHENTICATION_INVALID",t[t.PROLOG_UNKNOWN_ERROR=42]="PROLOG_UNKNOWN_ERROR",t[t.PROLOG_SYNTAX_ERROR=43]="PROLOG_SYNTAX_ERROR",t[t.PROLOG_EXISTENCE_ERROR=44]="PROLOG_EXISTENCE_ERROR",t[t.STACK_OVERFLOW_RESOLUTION=45]="STACK_OVERFLOW_RESOLUTION",t[t.AUTOMERGE_FAILED_TO_PARSE=46]="AUTOMERGE_FAILED_TO_PARSE",t[t.AUTOMERGE_IMMUTABLE=47]="AUTOMERGE_IMMUTABLE",t[t.AUTOMERGE_SUCCESS=48]="AUTOMERGE_SUCCESS",t[t.AUTOMERGE_REQUIRED=49]="AUTOMERGE_REQUIRED",t[t.DEPRECATED_CLI_SETTINGS=50]="DEPRECATED_CLI_SETTINGS",t[t.PLUGIN_NAME_NOT_FOUND=51]="PLUGIN_NAME_NOT_FOUND",t[t.INVALID_PLUGIN_REFERENCE=52]="INVALID_PLUGIN_REFERENCE",t[t.CONSTRAINTS_AMBIGUITY=53]="CONSTRAINTS_AMBIGUITY",t[t.CACHE_OUTSIDE_PROJECT=54]="CACHE_OUTSIDE_PROJECT",t[t.IMMUTABLE_INSTALL=55]="IMMUTABLE_INSTALL",t[t.IMMUTABLE_CACHE=56]="IMMUTABLE_CACHE",t[t.INVALID_MANIFEST=57]="INVALID_MANIFEST",t[t.PACKAGE_PREPARATION_FAILED=58]="PACKAGE_PREPARATION_FAILED",t[t.INVALID_RANGE_PEER_DEPENDENCY=59]="INVALID_RANGE_PEER_DEPENDENCY",t[t.INCOMPATIBLE_PEER_DEPENDENCY=60]="INCOMPATIBLE_PEER_DEPENDENCY",t[t.DEPRECATED_PACKAGE=61]="DEPRECATED_PACKAGE",t[t.INCOMPATIBLE_OS=62]="INCOMPATIBLE_OS",t[t.INCOMPATIBLE_CPU=63]="INCOMPATIBLE_CPU",t[t.FROZEN_ARTIFACT_EXCEPTION=64]="FROZEN_ARTIFACT_EXCEPTION",t[t.TELEMETRY_NOTICE=65]="TELEMETRY_NOTICE",t[t.PATCH_HUNK_FAILED=66]="PATCH_HUNK_FAILED",t[t.INVALID_CONFIGURATION_VALUE=67]="INVALID_CONFIGURATION_VALUE",t[t.UNUSED_PACKAGE_EXTENSION=68]="UNUSED_PACKAGE_EXTENSION",t[t.REDUNDANT_PACKAGE_EXTENSION=69]="REDUNDANT_PACKAGE_EXTENSION",t[t.AUTO_NM_SUCCESS=70]="AUTO_NM_SUCCESS",t[t.NM_CANT_INSTALL_PORTAL=71]="NM_CANT_INSTALL_PORTAL",t[t.NM_PRESERVE_SYMLINKS_REQUIRED=72]="NM_PRESERVE_SYMLINKS_REQUIR Line truncated
${this.candidates.map(({usage:n})=>`$ ${n}`).join(`
`)}`}else if(this.candidates.length===1){let[{usage:i}]=this.candidates;this.message=`Command not found; did you mean:
$ ${i}
${gB(e)}`}else this.message=`Command not found; did you mean one of:
${this.candidates.map(({usage:i},n)=>`${`${n}.`.padStart(4)} ${i}`).join(`
`)}
${gB(e)}`}},uB=class extends Error{constructor(e,r){super();this.input=e,this.usages=r,this.clipanion={type:"none"},this.name="AmbiguousSyntaxError",this.message=`Cannot find which to pick amongst the following alternatives:
${this.usages.map((i,n)=>`${`${n}.`.padStart(4)} ${i}`).join(`
`)}
${gB(e)}`}},gB=t=>`While running ${t.filter(e=>e!==Fr).map(e=>{let r=JSON.stringify(e);return e.match(/\s/)||e.length===0||r!==`"${e}"`?r:e}).join(" ")}`;var Wg=Symbol("clipanion/isOption");function $r(t){return{...t,[Wg]:!0}}function Yn(t,e){return typeof t=="undefined"?[t,e]:typeof t=="object"&&t!==null&&!Array.isArray(t)?[void 0,t]:[t,e]}function ud(t,e=!1){let r=t.replace(/^\.: /,"");return e&&(r=r[0].toLowerCase()+r.slice(1)),r}function zg(t,e){return e.length===1?new UsageError(`${t}: ${ud(e[0],!0)}`):new UsageError(`${t}:
${e.map(r=>`
- ${ud(r)}`).join("")}`)}function hd(t,e,r){if(typeof r=="undefined")return e;let i=[],n=[],s=a=>{let l=e;return e=a,s.bind(null,l)};if(!r(e,{errors:i,coercions:n,coercion:s}))throw zg(`Invalid value for ${t}`,i);for(let[,a]of n)a();return e}var Ae=class{constructor(){this.help=!1}static Usage(e){return e}async catch(e){throw e}async validateAndExecute(){let r=this.constructor.schema;if(typeof r!="undefined"){let{isDict:n,isUnknown:s,applyCascade:o}=await Promise.resolve().then(()=>W(Io())),a=o(n(s()),r),l=[],c=[];if(!a(this,{errors:l,coercions:c}))throw zg("Invalid option schema",l);for(let[,u]of c)u()}let i=await this.execute();return typeof i!="undefined"?i:0}};Ae.isOption=Wg;Ae.Default=[];function di(t){bR&&console.log(t)}var LR={candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,path:[],positionals:[],options:[],remainder:null,selectedIndex:ol};function MR(){return{nodes:[ei(),ei(),ei()]}}function ure(t){let e=MR(),r=[],i=e.nodes.length;for(let n of t){r.push(i);for(let s=0;s<n.nodes.length;++s)KR(s)||e.nodes.push(gre(n.nodes[s],i));i+=n.nodes.length-2}for(let n of r)al(e,ya,n);return e}function Qn(t,e){return t.nodes.push(e),t.nodes.length-1}function hre(t){let e=new Set,r=i=>{if(e.has(i))return;e.add(i);let n=t.nodes[i];for(let o of Object.values(n.statics))for(let{to:a}of o)r(a);for(let[,{to:o}]of n.dynamics)r(o);for(let{to:o}of n.shortcuts)r(o);let s=new Set(n.shortcuts.map(({to:o})=>o));for(;n.shortcuts.length>0;){let{to:o}=n.shortcuts.shift(),a=t.nodes[o];for(let[l,c]of Object.entries(a.statics)){let g=Object.prototype.hasOwnProperty.call(n.statics,l)?n.statics[l]:n.statics[l]=[];for(let u of c)g.some(({to:h})=>u.to===h)||g.push(u)}for(let[l,c]of a.dynamics)n.dynamics.some(([g,{to:u}])=>l===g&&c.to===u)||n.dynamics.push([l,c]);for(let l of a.shortcuts)s.has(l.to)||(n.shortcuts.push(l),s.add(l.to))}};r(ya)}function fre(t,{prefix:e=""}={}){di(`${e}Nodes are:`);for(let r=0;r<t.nodes.length;++r)di(`${e} ${r}: ${JSON.stringify(t.nodes[r])}`)}function OR(t,e,r=!1){di(`Running a vm on ${JSON.stringify(e)}`);let i=[{node:ya,state:{candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,options:[],path:[],positionals:[],remainder:null,selectedIndex:null}}];fre(t,{prefix:" "});let n=[AB,...e];for(let s=0;s<n.length;++s){let o=n[s];di(` Processing ${JSON.stringify(o)}`);let a=[];for(let{node:l,state:c}of i){di(` Current node is ${l}`);let g=t.nodes[l];if(l===Zr){a.push({node:l,state:c});continue}console.assert(g.shortcuts.length===0,"Shortcuts should have been eliminated by now");let u=Object.prototype.hasOwnProperty.call(g.statics,o);if(!r||s<n.length-1||u)if(u){let h=g.statics[o];for(let{to:f,reducer:d}of h)a.push({node:f,state:typeof d!="undefined"?pd(fB,d,c,o):c}),di(` Static transition to ${f} found`)}else di(" No static transition found");else{let h=!1;for(let f of Object.keys(g.statics))if(!!f.startsWith(o)){if(o===f)for(let{to:d,reducer:m}of g.statics[f])a.push({node:d,state:typeof m!="undefined"?pd(fB,m,c,o):c}),di(` Static transition to ${d} found`);else for(let{to:d}of g.statics[f])a.push({node:d,state:{...c,remainder:f.slice(o.length)}}),di(` Static transition to ${d} found (partial match)`);h=!0}h||di(" No partial static transition found")}if(o!==Fr)for(let[h,{to:f,reducer:d}]of g.dynamics)pd(dd,h,c,o)&&(a.push({node:f,state:typeof d!="undefined"?pd(fB,d,c,o):c}),di(` Dynamic transition to ${f} found (via ${h})`))}if(a.length===0&&o===Fr&&e.length===1)return[{node:ya,state:LR}];if(a.length===0)throw new _g(e,i.filter(({node:l})=>l!==Zr).map(({state:l})=>({usage:l.candidateUsage,reason:null})));if(a.every(({node:l})=>l===Zr))throw new _g(e,a.map(({state:l})=>({usage:l.candidateUsage,reason:l.errorMessage})));i=pre(a)}if(i.length>0){di(" Results:");for(let s of i)di(` - ${s.node} -> ${JSON.stringify(s.state)}`)}else di(" No results");return i}function dre(t,e){if(e.selectedIndex!==null)return!0;if(Object.prototype.hasOwnProperty.call(t.statics,Fr)){for(let{to:r}of t.statics[Fr])if(r===Jg)return!0}return!1}function mre(t,e,r){let i=r&&e.length>0?[""]:[],n=OR(t,e,r),s=[],o=new Set,a=(l,c,g=!0)=>{let u=[c];for(;u.length>0;){let f=u;u=[];for(let d of f){let m=t.nodes[d],I=Object.keys(m.statics);for(let w of Object.keys(m.statics)){let B=I[0];for(let{to:P,reducer:k}of m.statics[B])k==="pushPath"&&(g||l.push(B),u.push(P))}}g=!1}let h=JSON.stringify(l);o.has(h)||(s.push(l),o.add(h))};for(let{node:l,state:c}of n){if(c.remainder!==null){a([c.remainder],l);continue}let g=t.nodes[l],u=dre(g,c);for(let[h,f]of Object.entries(g.statics))(u&&h!==Fr||!h.startsWith("-")&&f.some(({reducer:d})=>d==="pushPath"))&&a([...i,h],l);if(!!u)for(let[h,{to:f}]of g.dynamics){if(f===Zr)continue;let d=Cre(h,c);if(d!==null)for(let m of d)a([...i,m],l)}}return[...s].sort()}function Ere(t,e){let r=OR(t,[...e,Fr]);return Ire(e,r.map(({state:i})=>i))}function pre(t){let e=0;for(let{state:r}of t)r.path.length>e&&(e=r.path.length);return t.filter(({statLine truncated
`),t=t.replace(/^[\t ]+|[\t ]+$/gm,""),t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^-([^\n]*?)\n+/gm,`-$1
`),t=t.replace(/\n(\n)?\n*/g,"$1"),r&&(t=t.split(/\n/).map(i=>{let n=i.match(/^[*-][\t ]+(.*)/);return n?n[1].match(/(.{1,78})(?: |$)/g).map((s,o)=>(o===0?"- ":" ")+s).join(`
`):i.match(/(.{1,80})(?: |$)/g).join(`
`)}).join(`
`)),t=t.replace(/(`+)((?:.|[\n])*?)\1/g,(i,n,s)=>e.code(n+s+n)),t=t.replace(/(\*\*)((?:.|[\n])*?)\1/g,(i,n,s)=>e.bold(n+s+n)),t?`${t}
`:""}var Zg=class extends Ae{constructor(e){super();this.contexts=e,this.commands=[]}static from(e,r){let i=new Zg(r);i.path=e.path;for(let n of e.options)switch(n.name){case"-c":i.commands.push(Number(n.value));break;case"-i":i.index=Number(n.value);break}return i}async execute(){let e=this.commands;if(typeof this.index!="undefined"&&this.index>=0&&this.index<e.length&&(e=[e[this.index]]),e.length===0)this.context.stdout.write(this.cli.usage());else if(e.length===1)this.context.stdout.write(this.cli.usage(this.contexts[e[0]].commandClass,{detailed:!0}));else if(e.length>1){this.context.stdout.write(`Multiple commands match your selection:
`),this.context.stdout.write(`
`);let r=0;for(let i of this.commands)this.context.stdout.write(this.cli.usage(this.contexts[i].commandClass,{prefix:`${r++}. `.padStart(5)}));this.context.stdout.write(`
`),this.context.stdout.write(`Run again with -h=<index> to see the longer details of any of those commands.
`)}}};var jR=Symbol("clipanion/errorCommand");function Bre(){return process.env.FORCE_COLOR==="0"?!1:!!(process.env.FORCE_COLOR==="1"||typeof process.stdout!="undefined"&&process.stdout.isTTY)}var Hn=class{constructor({binaryLabel:e,binaryName:r="...",binaryVersion:i,enableColors:n=Bre()}={}){this.registrations=new Map,this.builder=new Xg({binaryName:r}),this.binaryLabel=e,this.binaryName=r,this.binaryVersion=i,this.enableColors=n}static from(e,r={}){let i=new Hn(r);for(let n of e)i.register(n);return i}register(e){var r;let i=new Map,n=new e;for(let l in n){let c=n[l];typeof c=="object"&&c!==null&&c[Ae.isOption]&&i.set(l,c)}let s=this.builder.command(),o=s.cliIndex,a=(r=e.paths)!==null&&r!==void 0?r:n.paths;if(typeof a!="undefined")for(let l of a)s.addPath(l);this.registrations.set(e,{specs:i,builder:s,index:o});for(let[l,{definition:c}]of i.entries())c(s,l);s.setContext({commandClass:e})}process(e){let{contexts:r,process:i}=this.builder.compile(),n=i(e);switch(n.selectedIndex){case ol:return Zg.from(n,r);default:{let{commandClass:s}=r[n.selectedIndex],o=this.registrations.get(s);if(typeof o=="undefined")throw new Error("Assertion failed: Expected the command class to have been registered.");let a=new s;a.path=n.path;try{for(let[l,{transformer:c}]of o.specs.entries())a[l]=c(o.builder,l,n);return a}catch(l){throw l[jR]=a,l}}break}}async run(e,r){let i;if(!Array.isArray(e))i=e;else try{i=this.process(e)}catch(s){return r.stdout.write(this.error(s)),1}if(i.help)return r.stdout.write(this.usage(i,{detailed:!0})),0;i.context=r,i.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableColors:this.enableColors,definitions:()=>this.definitions(),error:(s,o)=>this.error(s,o),process:s=>this.process(s),run:(s,o)=>this.run(s,{...r,...o}),usage:(s,o)=>this.usage(s,o)};let n;try{n=await i.validateAndExecute().catch(s=>i.catch(s).then(()=>0))}catch(s){return r.stdout.write(this.error(s,{command:i})),1}return n}async runExit(e,r){process.exitCode=await this.run(e,r)}suggest(e,r){let{suggest:i}=this.builder.compile();return i(e,r)}definitions({colored:e=!1}={}){let r=[];for(let[i,{index:n}]of this.registrations){if(typeof i.usage=="undefined")continue;let{usage:s}=this.getUsageByIndex(n,{detailed:!1}),{usage:o,options:a}=this.getUsageByIndex(n,{detailed:!0,inlineOptions:!1}),l=typeof i.usage.category!="undefined"?Xi(i.usage.category,{format:this.format(e),paragraphs:!1}):void 0,c=typeof i.usage.description!="undefined"?Xi(i.usage.description,{format:this.format(e),paragraphs:!1}):void 0,g=typeof i.usage.details!="undefined"?Xi(i.usage.details,{format:this.format(e),paragraphs:!0}):void 0,u=typeof i.usage.examples!="undefined"?i.usage.examples.map(([h,f])=>[Xi(h,{format:this.format(e),paragraphs:!1}),f.replace(/\$0/g,this.binaryName)]):void 0;r.push({path:s,usage:o,category:l,description:c,details:g,examples:u,options:a})}return r}usage(e=null,{colored:r,detailed:i=!1,prefix:n="$ "}={}){let s=e!==null&&e instanceof Ae?e.constructor:e,o="";if(s)if(i){let{description:a="",details:l="",examples:c=[]}=s.usage||{};a!==""&&(o+=Xi(a,{format:this.format(r),paragraphs:!1}).replace(/^./,h=>h.toUpperCase()),o+=`
`),(l!==""||c.length>0)&&(o+=`${this.format(r).header("Usage")}
`,o+=`
`);let{usage:g,options:u}=this.getUsageByRegistration(s,{inlineOptions:!1});if(o+=`${this.format(r).bold(n)}${g}
`,u.length>0){o+=`
`,o+=`${CB.header("Options")}
`;let h=u.reduce((f,d)=>Math.max(f,d.definition.length),0);o+=`
`;for(let{definition:f,description:d}of u)o+=` ${this.format(r).bold(f.padEnd(h))} ${Xi(d,{format:this.format(r),paragraphs:!1})}`}if(l!==""&&(o+=`
`,o+=`${this.format(r).header("Details")}
`,o+=`
`,o+=Xi(l,{format:this.format(r),paragraphs:!0})),c.length>0){o+=`
`,o+=`${this.format(r).header("Examples")}
`;for(let[h,f]of c)o+=`
`,o+=Xi(h,{format:this.format(r),paragraphs:!1}),o+=`${f.replace(/^/m,` ${this.format(r).bold(n)}`).replace(/\$0/g,this.binaryName)}
`}}else{let{usage:a}=this.getUsageByRegistration(s);o+=`${this.format(r).bold(n)}${a}
`}else{let a=new Map;for(let[u,{index:h}]of this.registrations.entries()){if(typeof u.usage=="undefined")continue;let f=typeof u.usage.category!="undefined"?Xi(u.usage.category,{format:this.format(r),paragraphs:!1}):null,d=a.get(f);typeof d=="undefined"&&a.set(f,d=[]);let{usage:m}=this.getUsageByIndex(h);d.push({commandClass:u,usage:m})}let l=Array.from(a.keys()).sort((u,h)=>u===null?-1:h===null?1:u.localeCompare(h,"en",{usage:"sort",caseFirst:"upper"})),c=typeof this.binaryLabel!="undefined",g=typeof this.binaryVersion!="undefined";c||g?(c&&g?o+=`${this.format(r).header(`${this.binaryLabel} - ${this.binaryVersion}`)}
`:c?o+=`${this.format(r).header(`${this.binaryLabel}`)}
`:o+=`${this.format(r).header(`${this.binaryVersion}`)}
`,o+=` ${this.format(r).bold(n)}${this.binaryName} <command>
`):o+=`${this.format(r).bold(n)}${this.binaryName} <command>
`;for(let u of l){let h=a.get(u).slice().sort((d,m)=>d.usage.localeCompare(m.usage,"en",{usage:"sort",caseFirst:"upper"})),f=u!==null?u.trim():"General commands";o+=`
`,o+=`${this.format(r).header(`${f}`)}
`;for(let{commandClass:d,usage:m}of h){let I=d.usage.description||"undocumented";o+=`
`,o+=` ${this.format(r).bold(m)}
`,o+=` ${Xi(I,{format:this.format(r),paragraphs:!1})}`}}o+=`
`,o+=Xi("You can also print more details about any of these commands by calling them with the `-h,--help` flag right after the command name.",{format:this.format(r),paragraphs:!0})}return o}error(e,r){var i,{colored:n,command:s=(i=e[jR])!==null&&i!==void 0?i:null}=r===void 0?{}:r;e instanceof Error||(e=new Error(`Execution failed with a non-error rejection (rejected value: ${JSON.stringify(e)})`));let o="",a=e.name.replace(/([a-z])([A-Z])/g,"$1 $2");a==="Error"&&(a="Internal Error"),o+=`${this.format(n).error(a)}: ${e.message}
`;let l=e.clipanion;return typeof l!="undefined"?l.type==="usage"&&(o+=`
`,o+=this.usage(s)):e.stack&&(o+=`${e.stack.replace(/^.*\n/,"")}
`),o}getUsageByRegistration(e,r){let i=this.registrations.get(e);if(typeof i=="undefined")throw new Error("Assertion failed: Unregistered command");return this.getUsageByIndex(i.index,r)}getUsageByIndex(e,r){return this.builder.getBuilderByIndex(e).usage(r)}format(e=this.enableColors){return e?CB:HR}};Hn.defaultContext={stdin:process.stdin,stdout:process.stdout,stderr:process.stderr};var mB={};We(mB,{DefinitionsCommand:()=>Cd,HelpCommand:()=>md,VersionCommand:()=>Id});var Cd=class extends Ae{async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.definitions(),null,2)}
`)}};Cd.path=[["--clipanion=definitions"]];var md=class extends Ae{async execute(){this.context.stdout.write(this.cli.usage(null))}};md.paths=[["-h"],["--help"]];var Id=class extends Ae{async execute(){var e;this.context.stdout.write(`${(e=this.cli.binaryVersion)!==null&&e!==void 0?e:"<unknown>"}
`)}};Id.paths=[["-v"],["--version"]];var U={};We(U,{Array:()=>GR,Boolean:()=>qR,Counter:()=>JR,Proxy:()=>_R,Rest:()=>WR,String:()=>zR,applyValidator:()=>hd,cleanValidationError:()=>ud,formatError:()=>zg,isOptionSymbol:()=>Wg,makeCommandOption:()=>$r,rerouteArguments:()=>Yn});function GR(t,e,r){let[i,n]=Yn(e,r!=null?r:{}),{arity:s=1}=n,o=t.split(","),a=new Set(o);return $r({definition(l){l.addOption({names:o,arity:s,hidden:n==null?void 0:n.hidden,description:n==null?void 0:n.description,required:n.required})},transformer(l,c,g){let u=typeof i!="undefined"?[...i]:void 0;for(let{name:h,value:f}of g.options)!a.has(h)||(u=u!=null?u:[],u.push(f));return u}})}function qR(t,e,r){let[i,n]=Yn(e,r!=null?r:{}),s=t.split(","),o=new Set(s);return $r({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let g=i;for(let{name:u,value:h}of c.options)!o.has(u)||(g=h);return g}})}function JR(t,e,r){let[i,n]=Yn(e,r!=null?r:{}),s=t.split(","),o=new Set(s);return $r({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let g=i;for(let{name:u,value:h}of c.options)!o.has(u)||(g!=null||(g=0),h?g+=1:g=0);return g}})}function _R(t={}){return $r({definition(e,r){var i;e.addProxy({name:(i=t.name)!==null&&i!==void 0?i:r,required:t.required})},transformer(e,r,i){return i.positionals.map(({value:n})=>n)}})}function WR(t={}){return $r({definition(e,r){var i;e.addRest({name:(i=t.name)!==null&&i!==void 0?i:r,required:t.required})},transformer(e,r,i){let n=o=>{let a=i.positionals[o];return a.extra===Pi||a.extra===!1&&o<e.arity.leading.length},s=0;for(;s<i.positionals.length&&n(s);)s+=1;return i.positionals.splice(0,s).map(({value:o})=>o)}})}function wre(t,e,r){let[i,n]=Yn(e,r!=null?r:{}),{arity:s=1}=n,o=t.split(","),a=new Set(o);return $r({definition(l){l.addOption({names:o,arity:n.tolerateBoolean?0:s,hidden:n.hidden,description:n.description,required:n.required})},transformer(l,c,g){let u,h=i;for(let{name:f,value:d}of g.options)!a.has(f)||(u=f,h=d);return typeof h=="string"?hd(u!=null?u:c,h,n.validator):h}})}function Qre(t={}){let{required:e=!0}=t;return $r({definition(r,i){var n;r.addPositional({name:(n=t.name)!==null&&n!==void 0?n:i,required:t.required})},transformer(r,i,n){for(let s=0;s<n.positionals.length;++s){if(n.positionals[s].extra===Pi||e&&n.positionals[s].extra===!0||!e&&n.positionals[s].extra===!1)continue;let[o]=n.positionals.splice(s,1);return o.value}}})}function zR(t,...e){return typeof t=="string"?wre(t,...e):Qre(t)}var QT=W($i());var S={};We(S,{areDescriptorsEqual:()=>IT,areIdentsEqual:()=>wu,areLocatorsEqual:()=>rQ,areVirtualPackagesEquivalent:()=>tle,bindDescriptor:()=>$Ae,bindLocator:()=>ele,convertDescriptorToLocator:()=>aC,convertLocatorToDescriptor:()=>AC,convertPackageToLocator:()=>ZAe,convertToIdent:()=>XAe,convertToManifestRange:()=>nle,copyPackage:()=>Eu,devirtualizeDescriptor:()=>yu,devirtualizeLocator:()=>Bu,getIdentVendorPath:()=>sle,isVirtualDescriptor:()=>Bo,isVirtualLocator:()=>Jn,makeDescriptor:()=>zt,makeIdent:()=>yo,makeLocator:()=>ri,makeRange:()=>lC,parseDescriptor:()=>wo,parseFileStyleRange:()=>rle,parseIdent:()=>mi,parseLocator:()=>Ra,parseRange:()=>yl,prettyDependent:()=>oQ,prettyDescriptor:()=>Ut,prettyIdent:()=>yr,prettyLocator:()=>rt,prettyLocatorNoColors:()=>nQ,prettyRange:()=>sC,prettyReference:()=>bu,prettyResolution:()=>sQ,prettyWorkspace:()=>Du,renamePackage:()=>Iu,slugifyIdent:()=>iQ,slugifyLocator:()=>Bl,sortDescriptors:()=>wl,stringifyDescriptor:()=>Ii,stringifyIdent:()=>pt,stringifyLocator:()=>nn,tryParseDescriptor:()=>Qu,tryParseIdent:()=>ET,tryParseLocator:()=>yT,virtualizeDescriptor:()=>eQ,virtualizePackage:()=>tQ});var El=W(require("querystring")),CT=W(Zt());var Dn={};We(Dn,{checksumFile:()=>iC,checksumPattern:()=>nC,makeHash:()=>vi});var rC=W(require("crypto")),Zw=W(Xw());function vi(...t){let e=rC.createHash("sha512");for(let r of t)e.update(r||"");return e.digest("hex")}function iC(t){return new Promise((e,r)=>{let i=rC.createHash("sha512"),n=L.createReadStream(t);n.on("data",s=>{i.update(s)}),n.on("error",s=>{r(s)}),n.on("end",()=>{e(i.digest("hex"))})})}async function nC(t,{cwd:e}){let i=(await Zw.default(t,{cwd:npath.fromPortablePath(e),expandDirectories:!1,onlyDirectories:!0,unique:!0})).map(a=>`${a}/**/*`),n=await Zw.default([t,...i],{cwd:npath.fromPortablePath(e),expandDirectories:!1,onlyFiles:!1,unique:!0});n.sort();let s=await Promise.all(n.map(async a=>{let l=[Buffer.from(a)],c=npath.toPortablePath(a),g=await L.lstatPromise(c);return g.isSymbolicLink()?l.push(Buffer.from(await L.readlinkPromise(c))):g.isFile()&&l.push(await L.readFilePromise(c)),l.join("\0")})),o=rC.createHash("sha512");for(let a of s)o.update(a);return o.digest("hex")}var mT=W($i());var oC="virtual:",VAe=5;function yo(t,e){if(t==null?void 0:t.startsWith("@"))throw new Error("Invalid scope: don't prefix it with '@'");return{ident Line truncated
`),a!==-1){let l=n+o.substr(0,a);o=o.substr(a+1),n="",e!==null?this.reportInfo(null,`${e} ${l}`):this.reportInfo(null,l)}while(a!==-1);n+=o}),r.on("end",()=>{let s=i.end();s!==""&&(e!==null?this.reportInfo(null,`${e} ${s}`):this.reportInfo(null,s))}),r}};var D0=W($i()),c2=W(vC()),g2=new Map,u2=new Map,pue=new l2.Agent({keepAlive:!0}),due=new A2.Agent({keepAlive:!0});function h2(t){let e=new FC.URL(t),r={host:e.hostname,headers:{}};return e.port&&(r.port=Number(e.port)),{proxy:r}}async function Cue(t){return D0.getFactoryWithDefault(u2,t,()=>L.readFilePromise(t).then(e=>(u2.set(t,e),e)))}function mue({statusCode:t,statusMessage:e},r){let i=Ye(r,t,De.NUMBER),n=`https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/${t}`;return Ql(r,`${i}${e?` (${e})`:""}`,n)}async function RC(t,{configuration:e,customErrorMessage:r}){var i,n;try{return await t}catch(s){if(s.name!=="HTTPError")throw s;let o=(n=r==null?void 0:r(s))!=null?n:(i=s.response.body)==null?void 0:i.error;o==null&&(s.message.startsWith("Response code")?o="The remote server failed to provide the requested resource":o=s.message),s instanceof a2.TimeoutError&&s.event==="socket"&&(o+=`(can be increased via ${Ye(e,"httpTimeout",De.SETTING)})`);let a=new _e(q.NETWORK_ERROR,o,l=>{s.response&&l.reportError(q.NETWORK_ERROR,` ${Ma(e,{label:"Response Code",value:La(De.NO_HINT,mue(s.response,e))})}`),s.request&&(l.reportError(q.NETWORK_ERROR,` ${Ma(e,{label:"Request Method",value:La(De.NO_HINT,s.request.options.method)})}`),l.reportError(q.NETWORK_ERROR,` ${Ma(e,{label:"Request URL",value:La(De.URL,s.request.requestUrl)})}`)),s.request.redirects.length>0&&l.reportError(q.NETWORK_ERROR,` ${Ma(e,{label:"Request Redirects",value:La(De.NO_HINT,cQ(e,s.request.redirects,De.URL))})}`),s.request.retryCount===s.request.options.retry.limit&&l.reportError(q.NETWORK_ERROR,` ${Ma(e,{label:"Request Retry Count",value:La(De.NO_HINT,`${Ye(e,s.request.retryCount,De.NUMBER)} (can be increased via ${Ye(e,"httpRetry",De.SETTING)})`)})}`)});throw a.originalError=s,a}}function f2(t,e){let r=[...e.configuration.get("networkSettings")].sort(([o],[a])=>a.length-o.length),i={enableNetwork:void 0,caFilePath:void 0,httpProxy:void 0,httpsProxy:void 0},n=Object.keys(i),s=new FC.URL(t);for(let[o,a]of r)if(Q0.default.isMatch(s.hostname,o))for(let l of n){let c=a.get(l);c!==null&&typeof i[l]=="undefined"&&(i[l]=c)}for(let o of n)typeof i[o]=="undefined"&&(i[o]=e.configuration.get(o));return i}var Oa;(function(t){t.GET="GET",t.PUT="PUT",t.POST="POST",t.DELETE="DELETE"})(Oa||(Oa={}));async function Tu(t,e,{configuration:r,headers:i,jsonRequest:n,jsonResponse:s,method:o=Oa.GET}){let a=f2(t,{configuration:r});if(a.enableNetwork===!1)throw new Error(`Request to '${t}' has been blocked because of your configuration settings`);let l=new FC.URL(t);if(l.protocol==="http:"&&!Q0.default.isMatch(l.hostname,r.get("unsafeHttpWhitelist")))throw new Error(`Unsafe http requests must be explicitly whitelisted in your configuration (${l.hostname})`);let g={agent:{http:a.httpProxy?b0.default.httpOverHttp(h2(a.httpProxy)):pue,https:a.httpsProxy?b0.default.httpsOverHttp(h2(a.httpsProxy)):due},headers:i,method:o};g.responseType=s?"json":"buffer",e!==null&&(Buffer.isBuffer(e)||!n&&typeof e=="string"?g.body=e:g.json=e);let u=r.get("httpTimeout"),h=r.get("httpRetry"),f=r.get("enableStrictSsl"),d=a.caFilePath,{default:m}=await Promise.resolve().then(()=>W(vC())),I=d?await Cue(d):void 0,w=m.extend({timeout:{socket:u},retry:h,https:{rejectUnauthorized:f,certificateAuthority:I},...g});return r.getLimit("networkConcurrency")(()=>w(t))}async function Iue(t,{configuration:e,jsonResponse:r,...i}){let n=D0.getFactoryWithDefault(g2,t,()=>RC(Tu(t,null,{configuration:e,...i}),{configuration:e}).then(s=>(g2.set(t,s.body),s.body)));return Buffer.isBuffer(n)===!1&&(n=await n),r?JSON.parse(n.toString()):n}async function Eue(t,e,{customErrorMessage:r,...i}){return(await RC(Tu(t,e,{...i,method:Oa.PUT}),i)).body}async function S0(t,e,{customErrorMessage:r,...i}){return(await RC(Tu(t,e,{...i,method:Oa.POST}),i)).body}async function yue(t,{customErrorMessage:e,...r}){return(await RC(Tu(t,null,{...r,method:Oa.DELETE}),r)).body}var he=W($i());var bt={};We(bt,{executePackageAccessibleBinary:()=>EG,executePackageScript:()=>Bm,executePackageShellcode:()=>wb,executeWorkspaceAccessibleBinary:()=>eme,executeWorkspaceLifecycleScript:()=>IG,executeWorkspaceScript:()=>mG,getPackageAccessibleBinaries:()=>wm,getWorkspaceAccessibleBinaries:()=>CG,hasPackageScript:()=>XCe,hasWorkspaceScript:()=>Bb,makeScriptEnv:()=>oh,maybeExecuteWorkspaceLifecycleScript:()=>$Ce,prepareExternalProject:()=>VCe});var qu={};We(qu,{getLibzipPromise:()=>oi,getLibzipSync:()=>q2});var xo=["number","number"],P0;(function(t){t[t.ZIP_ER_OK=0]="ZIP_ER_OK",t[t.ZIP_ER_MULTIDISK=1]="ZIP_ER_MULTIDISK",t[t.ZIP_ER_RENAME=2]="ZIP_ER_RENAME",t[t.ZIP_ER_CLOSE=3]="ZIP_ER_CLOSE",t[t.ZIP_ER_SEEK=4]="ZIP_ER_SEEK",t[t.ZIP_ER_READ=5]="ZIP_ER_READ",t[t.ZIP_ER_WRITE=6]="ZIP_ER_WRITE",t[t.ZIP_E Line truncated
`;if(typeof t=="number"||typeof t=="boolean")return`${t.toString()}
`;if(typeof t=="string")return`${GH(t)}
`;if(Array.isArray(t)){if(t.length===0)return`[]
`;let i=" ".repeat(e);return`
${t.map(s=>`${i}- ${Ab(s,e+1,!1)}`).join("")}`}if(typeof t=="object"&&t){let i,n;t instanceof ab?(i=t.data,n=!1):(i=t,n=!0);let s=" ".repeat(e),o=Object.keys(i);n&&o.sort((l,c)=>{let g=jH.indexOf(l),u=jH.indexOf(c);return g===-1&&u===-1?l<c?-1:l>c?1:0:g!==-1&&u===-1?-1:g===-1&&u!==-1?1:g-u});let a=o.filter(l=>!qH(i[l])).map((l,c)=>{let g=i[l],u=GH(l),h=Ab(g,e+1,!0),f=c>0||r?s:"";return h.startsWith(`
`)?`${f}${u}:${h}`:`${f}${u}: ${h}`}).join(e===0?`
`:"")||`
`;return r?`
${a}`:`${a}`}throw new Error(`Unsupported value type (${t})`)}function Ls(t){try{let e=Ab(t,0,!1);return e!==`
`?e:""}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}Ls.PreserveOrdering=ab;function lde(t){return t.endsWith(`
`)||(t+=`
`),HH.parse(t)}var cde=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function gde(t){if(cde.test(t))return lde(t);let e=am.safeLoad(t,{schema:am.FAILSAFE_SCHEMA,json:!0});if(e==null)return{};if(typeof e!="object")throw new Error(`Expected an indexed object, got a ${typeof e} instead. Does your file follow Yaml's rules?`);if(Array.isArray(e))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return e}function Lr(t){return gde(t)}var ej=W(require("os")),An=W(require("stream"));var Ro=class extends Error{constructor(e){super(e);this.name="ShellError"}};var Am={};We(Am,{fastGlobOptions:()=>WH,isBraceExpansion:()=>zH,isGlobPattern:()=>ude,match:()=>hde,micromatchOptions:()=>cm});var JH=W(zd()),_H=W(require("fs")),lm=W(bn()),cm={strictBrackets:!0},WH={onlyDirectories:!1,onlyFiles:!1};function ude(t){if(!lm.default.scan(t,cm).isGlob)return!1;try{lm.default.parse(t,cm)}catch{return!1}return!0}function hde(t,{cwd:e,baseFs:r}){return JH.default(t,{...WH,cwd:npath.fromPortablePath(e),fs:nd(_H.default,new Kg(r))})}function zH(t){return lm.default.scan(t,cm).isBrace}var VH=W(Gy()),Ms=W(require("stream")),yi;(function(t){t[t.STDIN=0]="STDIN",t[t.STDOUT=1]="STDOUT",t[t.STDERR=2]="STDERR"})(yi||(yi={}));var $a=new Set;function lb(){}function cb(){for(let t of $a)t.kill()}function XH(t,e,r,i){return n=>{let s=n[0]instanceof Ms.Transform?"pipe":n[0],o=n[1]instanceof Ms.Transform?"pipe":n[1],a=n[2]instanceof Ms.Transform?"pipe":n[2],l=VH.default(t,e,{...i,stdio:[s,o,a]});return $a.add(l),$a.size===1&&(process.on("SIGINT",lb),process.on("SIGTERM",cb)),n[0]instanceof Ms.Transform&&n[0].pipe(l.stdin),n[1]instanceof Ms.Transform&&l.stdout.pipe(n[1],{end:!1}),n[2]instanceof Ms.Transform&&l.stderr.pipe(n[2],{end:!1}),{stdin:l.stdin,promise:new Promise(c=>{l.on("error",g=>{switch($a.delete(l),$a.size===0&&(process.off("SIGINT",lb),process.off("SIGTERM",cb)),g.code){case"ENOENT":n[2].write(`command not found: ${t}
`),c(127);break;case"EACCES":n[2].write(`permission denied: ${t}
`),c(128);break;default:n[2].write(`uncaught error: ${g.message}
`),c(1);break}}),l.on("exit",g=>{$a.delete(l),$a.size===0&&(process.off("SIGINT",lb),process.off("SIGTERM",cb)),c(g!==null?g:129)})})}}}function ZH(t){return e=>{let r=e[0]==="pipe"?new Ms.PassThrough:e[0];return{stdin:r,promise:Promise.resolve().then(()=>t({stdin:r,stdout:e[1],stderr:e[2]}))}}}var kn=class{constructor(e){this.stream=e}close(){}get(){return this.stream}},$H=class{constructor(){this.stream=null}close(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");this.stream.end()}attach(e){this.stream=e}get(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");return this.stream}},$u=class{constructor(e,r){this.stdin=null;this.stdout=null;this.stderr=null;this.pipe=null;this.ancestor=e,this.implementation=r}static start(e,{stdin:r,stdout:i,stderr:n}){let s=new $u(null,e);return s.stdin=r,s.stdout=i,s.stderr=n,s}pipeTo(e,r=1){let i=new $u(this,e),n=new $H;return i.pipe=n,i.stdout=this.stdout,i.stderr=this.stderr,(r&1)==1?this.stdout=n:this.ancestor!==null&&(this.stderr=this.ancestor.stdout),(r&2)==2?this.stderr=n:this.ancestor!==null&&(this.stderr=this.ancestor.stderr),i}async exec(){let e=["ignore","ignore","ignore"];if(this.pipe)e[0]="pipe";else{if(this.stdin===null)throw new Error("Assertion failed: No input stream registered");e[0]=this.stdin.get()}let r;if(this.stdout===null)throw new Error("Assertion failed: No output stream registered");r=this.stdout,e[1]=r.get();let i;if(this.stderr===null)throw new Error("Assertion failed: No error stream registered");i=this.stderr,e[2]=i.get();let n=this.implementation(e);return this.pipe&&this.pipe.attach(n.stdin),await n.promise.then(s=>(r.close(),i.close(),s))}async run(){let e=[];for(let i=this;i;i=i.ancestor)e.push(i.exec());return(await Promise.all(e))[0]}};function gm(t,e){return $u.start(t,e)}var qr;(function(t){t[t.Readable=1]="Readable",t[t.Writable=2]="Writable"})(qr||(qr={}));function tj(t,e,r){let i=new An.PassThrough({autoDestroy:!0});switch(t){case yi.STDIN:(e&1)==1&&r.stdin.pipe(i,{end:!1}),(e&2)==2&&r.stdin instanceof An.Writable&&i.pipe(r.stdin,{end:!1});break;case yi.STDOUT:(e&1)==1&&r.stdout.pipe(i,{end:!1}),(e&2)==2&&i.pipe(r.stdout,{end:!1});break;case yi.STDERR:(e&1)==1&&r.stderr.pipe(i,{end:!1}),(e&2)==2&&i.pipe(r.stderr,{end:!1});break;default:throw new Ro(`Bad file descriptor: "${t}"`)}return i}function gb(t,e={}){let r={...t,...e};return r.environment={...t.environment,...e.environment},r.variables={...t.variables,...e.variables},r}var fde=new Map([["cd",async([t=ej.homedir(),...e],r,i)=>{let n=D.resolve(i.cwd,npath.toPortablePath(t));return(await r.baseFs.statPromise(n)).isDirectory()?(i.cwd=n,0):(i.stderr.write(`cd: not a directory
`),1)}],["pwd",async(t,e,r)=>(r.stdout.write(`${npath.fromPortablePath(r.cwd)}
`),0)],[":",async(t,e,r)=>0],["true",async(t,e,r)=>0],["false",async(t,e,r)=>1],["exit",async([t,...e],r,i)=>i.exitCode=parseInt(t!=null?t:i.variables["?"],10)],["echo",async(t,e,r)=>(r.stdout.write(`${t.join(" ")}
`),0)],["__ysh_run_procedure",async(t,e,r)=>{let i=r.procedures[t[0]];return await gm(i,{stdin:new kn(r.stdin),stdout:new kn(r.stdout),stderr:new kn(r.stderr)}).run()}],["__ysh_set_redirects",async(t,e,r)=>{let i=r.stdin,n=r.stdout,s=r.stderr,o=[],a=[],l=0;for(;t[l]!=="--";){let g=t[l++],u=Number(t[l++]),h=l+u;for(let f=l;f<h;++l,++f)switch(g){case"<":o.push(()=>e.baseFs.createReadStream(D.resolve(r.cwd,npath.toPortablePath(t[f]))));break;case"<<<":o.push(()=>{let d=new An.PassThrough;return process.nextTick(()=>{d.write(`${t[f]}
`),d.end()}),d});break;case"<&":o.push(()=>tj(Number(t[f]),1,r));break;case">":case">>":{let d=D.resolve(r.cwd,npath.toPortablePath(t[f]));d==="/dev/null"?a.push(new An.Writable({autoDestroy:!0,emitClose:!0,write(m,I,w){setImmediate(w)}})):a.push(e.baseFs.createWriteStream(d,g===">>"?{flags:"a"}:void 0))}break;case">&":a.push(tj(Number(t[f]),2,r));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${g}"`)}}if(o.length>0){let g=new An.PassThrough;i=g;let u=h=>{if(h===o.length)g.end();else{let f=o[h]();f.pipe(g,{end:!1}),f.on("end",()=>{u(h+1)})}};u(0)}if(a.length>0){let g=new An.PassThrough;n=g;for(let u of a)g.pipe(u)}let c=await gm(th(t.slice(l+1),e,r),{stdin:new kn(i),stdout:new kn(n),stderr:new kn(s)}).run();return await Promise.all(a.map(g=>new Promise(u=>{g.on("close",()=>{u()}),g.end()}))),c}]]);async function pde(t,e,r){let i=[],n=new An.PassThrough;return n.on("data",s=>i.push(s)),await um(t,e,gb(r,{stdout:n})),Buffer.concat(i).toString().replace(/[\r\n]+$/,"")}async function rj(t,e,r){let i=t.map(async s=>{let o=await eA(s.args,e,r);return{name:s.name,value:o.join(" ")}});return(await Promise.all(i)).reduce((s,o)=>(s[o.name]=o.value,s),{})}function ub(t){return t.match(/[^ \r\n\t]+/g)||[]}async function ij(t,e,r,i,n=i){switch(t.name){case"$":i(String(process.pid));break;case"#":i(String(e.args.length));break;case"@":if(t.quoted)for(let s of e.args)n(s);else for(let s of e.args){let o=ub(s);for(let a=0;a<o.length-1;++a)n(o[a]);i(o[o.length-1])}break;case"*":{let s=e.args.join(" ");if(t.quoted)i(s);else for(let o of ub(s))n(o)}break;case"PPID":i(String(process.ppid));break;case"RANDOM":i(String(Math.floor(Math.random()*32768)));break;default:{let s=parseInt(t.name,10);if(Number.isFinite(s))if(s>=0&&s<e.args.length)i(e.args[s]);else if(t.defaultValue)i((await eA(t.defaultValue,e,r)).join(" "));else throw new Ro(`Unbound argument #${s}`);else if(Object.prototype.hasOwnProperty.call(r.variables,t.name))i(r.variables[t.name]);else if(Object.prototype.hasOwnProperty.call(r.environment,t.name))i(r.environment[t.name]);else if(t.defaultValue)i((await eA(t.defaultValue,e,r)).join(" "));else throw new Ro(`Unbound variable "${t.name}"`)}break}}var dde={addition:(t,e)=>t+e,subtraction:(t,e)=>t-e,multiplication:(t,e)=>t*e,division:(t,e)=>Math.trunc(t/e)};async function rh(t,e,r){if(t.type==="number"){if(Number.isInteger(t.value))return t.value;throw new Error(`Invalid number: "${t.value}", only integers are allowed`)}else if(t.type==="variable"){let i=[];await ij({...t,quoted:!0},e,r,s=>i.push(s));let n=Number(i.join(" "));return Number.isNaN(n)?rh({type:"variable",name:i.join(" ")},e,r):rh({type:"number",value:n},e,r)}else return dde[t.type](await rh(t.left,e,r),await rh(t.right,e,r))}async function eA(t,e,r){let i=new Map,n=[],s=[],o=g=>{s.push(g)},a=()=>{s.length>0&&n.push(s.join("")),s=[]},l=g=>{o(g),a()},c=(g,u)=>{let h=i.get(g);typeof h=="undefined"&&i.set(g,h=[]),h.push(u)};for(let g of t){let u=!1;switch(g.type){case"redirection":{let h=await eA(g.args,e,r);for(let f of h)c(g.subtype,f)}break;case"argument":for(let h of g.segments)switch(h.type){case"text":o(h.text);break;case"glob":o(h.pattern),u=!0;break;case"shell":{let f=await pde(h.shell,e,r);if(h.quoted)o(f);else{let d=ub(f);for(let m=0;m<d.length-1;++m)l(d[m]);o(d[d.length-1])}}break;case"variable":await ij(h,e,r,o,l);break;case"arithmetic":o(String(await rh(h.arithmetic,e,r)));break}break}if(a(),u){let h=n.pop();if(typeof h=="undefined")throw new Error("Assertion failed: Expected a glob pattern to have been set");let f=await e.glob.match(h,{cwd:r.cwd,baseFs:e.baseFs});if(f.length===0){let d=zH(h)?". Note: Brace expansion of arbitrary strings isn't currently supported. For more details, please read this issue: https://github.com/yarnpkg/berry/issues/22":"";throw new Ro(`No matches found: "${h}"${d}`)}for(let d of f.sort())l(d)}}if(i.size>0){let g=[];for(let[u,h]of i.entries())g.splice(g.length,0,u,String(h.length),...h);n.splice(0,0,"__ysh_set_redirects",...g,"--")}return n}function th(t,e,r){e.builtins.has(t[0])||(t=["command",...t]);let i=npath.fromPortablePath(r.cwd),n=r.environment;typeof n.PWD!="undefined"&&(n={...n,PWD:i});let[s,...o]=t;if(s==="command")return XH(o[0],o.slice(1),e,{cwd:i,env:n});let a=e.builtins.get(s);if(typeof a=="undefined")throw new Error(`Assertion failed: A builtin should exist for "${s}"`);return ZH(async({stdin:l,stdout:c,stderr:g})=>(r.stdin=l,r.stdout=c,r.stderr=g,await a(o,e,r)))}function Cde(t,e,r){return i=>{let n=new An.PassThrough,s=um(t,e,gb(r,{stdin:n}));return{stdin:n,promise:s}}}function mde(t,e,r){return i=>{let n=new An.PassThrough,s=um(t,e,r);return{stdin:n,promise:s}}}function nj(t,e,r,i){if(e.length===0)return t;{let n;do n=String(Math.random());while(Object.prototype.hasOwnProperty.call(i.procedures,n));return i.procedures={...i.procedures},i.procedures[n]=t,th([...e,"__ysh_run_procedure",n],r,i)}}async function Ide(t,e,r){let i=t,n=null,s=null;for(;i;){let o=i.then?{... Line truncated
`),1}};for(n(await s(t.chain));t.then;){if(r.exitCode!==null)return r.exitCode;switch(t.then.type){case"&&":i===0&&n(await s(t.then.line.chain));break;case"||":i!==0&&n(await s(t.then.line.chain));break;default:throw new Error(`Assertion failed: Unsupported command type: "${t.then.type}"`)}t=t.then.line}return i}async function um(t,e,r){let i=0;for(let n of t){if(i=await Ede(n,e,r),r.exitCode!==null)return r.exitCode;r.variables["?"]=String(i)}return i}function sj(t){switch(t.type){case"variable":return t.name==="@"||t.name==="#"||t.name==="*"||Number.isFinite(parseInt(t.name,10))||"defaultValue"in t&&!!t.defaultValue&&t.defaultValue.some(e=>hm(e));case"arithmetic":return hb(t.arithmetic);case"shell":return fb(t.shell);default:return!1}}function hm(t){switch(t.type){case"redirection":return t.args.some(e=>hm(e));case"argument":return t.segments.some(e=>sj(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${t.type}"`)}}function hb(t){switch(t.type){case"variable":return sj(t);case"number":return!1;default:return hb(t.left)||hb(t.right)}}function fb(t){return t.some(e=>{for(;e;){let r=e.chain;for(;r;){let i;switch(r.type){case"subshell":i=fb(r.subshell);break;case"command":i=r.envs.some(n=>n.args.some(s=>hm(s)))||r.args.some(n=>hm(n));break}if(i)return!0;if(!r.then)break;r=r.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function fm(t,e=[],{baseFs:r=new Qt,builtins:i={},cwd:n=npath.toPortablePath(process.cwd()),env:s=process.env,stdin:o=process.stdin,stdout:a=process.stdout,stderr:l=process.stderr,variables:c={},glob:g=Am}={}){let u={};for(let[d,m]of Object.entries(s))typeof m!="undefined"&&(u[d]=m);let h=new Map(fde);for(let[d,m]of Object.entries(i))h.set(d,m);o===null&&(o=new An.PassThrough,o.end());let f=_C(t,g);if(!fb(f)&&f.length>0&&e.length>0){let d=f[f.length-1];for(;d.then;)d=d.then.line;let m=d.chain;for(;m.then;)m=m.then.chain;m.type==="command"&&(m.args=m.args.concat(e.map(I=>({type:"argument",segments:[{type:"text",text:I}]}))))}return await um(f,{args:e,baseFs:r,builtins:h,initialStdin:o,initialStdout:a,initialStderr:l,glob:g},{cwd:n,environment:u,exitCode:null,procedures:{},stdin:o,stdout:a,stderr:l,variables:Object.assign({},c,{["?"]:0})})}var fG=W(Xj()),pG=W(Cm()),zl=W(require("stream"));var iG=W(Zt()),Wl=W($i());var cr={};We(cr,{SemVer:()=>tG.SemVer,satisfiesWithPrereleases:()=>nh,validRange:()=>sh});var mm=W(Zt()),tG=W(Zt());function nh(t,e,r=!1){let i;try{i=new mm.default.Range(e,{includePrerelease:!0,loose:r})}catch(s){return!1}if(!t)return!1;let n;try{n=new mm.default.SemVer(t,i),n.prerelease&&(n.prerelease=[])}catch(s){return!1}return i.set.some(s=>{for(let o of s)o.semver.prerelease&&(o.semver.prerelease=[]);return s.every(o=>o.test(n))})}var rG=new Map;function sh(t){if(t.indexOf(":")!==-1)return null;let e=rG.get(t);if(typeof e!="undefined")return e;try{e=new mm.default.Range(t)}catch{e=null}return rG.set(t,e),e}var No=class{constructor(){this.indent=" ";this.name=null;this.version=null;this.os=null;this.cpu=null;this.type=null;this.private=!1;this.license=null;this.main=null;this.module=null;this.browser=null;this.languageName=null;this.bin=new Map;this.scripts=new Map;this.dependencies=new Map;this.devDependencies=new Map;this.peerDependencies=new Map;this.workspaceDefinitions=[];this.dependenciesMeta=new Map;this.peerDependenciesMeta=new Map;this.resolutions=[];this.files=null;this.publishConfig=null;this.installConfig=null;this.preferUnplugged=null;this.raw={};this.errors=[]}static async tryFind(e,{baseFs:r=new Qt}={}){let i=D.join(e,"package.json");return await r.existsPromise(i)?await No.fromFile(i,{baseFs:r}):null}static async find(e,{baseFs:r}={}){let i=await No.tryFind(e,{baseFs:r});if(i===null)throw new Error("Manifest not found");return i}static async fromFile(e,{baseFs:r=new Qt}={}){let i=new No;return await i.loadFile(e,{baseFs:r}),i}static fromText(e){let r=new No;return r.loadFromText(e),r}static isManifestFieldCompatible(e,r){if(e===null)return!0;let i=!0,n=!1;for(let s of e)if(s[0]==="!"){if(n=!0,r===s.slice(1))return!1}else if(i=!1,s===r)return!0;return n&&i}loadFromText(e){let r;try{r=JSON.parse(sG(e)||"{}")}catch(i){throw i.message+=` (when parsing ${e})`,i}this.load(r),this.indent=nG(e)}async loadFile(e,{baseFs:r=new Qt}){let i=await r.readFilePromise(e,"utf8"),n;try{n=JSON.parse(sG(i)||"{}")}catch(s){throw s.message+=` (when parsing ${e})`,s}this.load(n),this.indent=nG(i)}load(e,{yamlCompatibilityMode:r=!1}={}){if(typeof e!="object"||e===null)throw new Error(`Utterly invalid manifest data (${e})`);this.raw=e;let i=[];if(this.name=null,typeof e.name=="string")try{this.name=mi(e.name)}catch(s){i.push(new Error("Parsing failed for the 'name' field"))}if(typeof e.version=="string"?this.version=e.version:this.version=null,Array.isArray(e.os)){let s=[];this.os=s;for(let o of e.os)typeof o!="string"?i.push(new Error("Parsing failed for the 'os' field")):s.push(o)}else this.os=null;if(Array.isArray(e.cpu)){let s=[];this.cpu=s;for(le Line truncated
`,end:t=>`::endgroup::
`}:process.env.TRAVIS?{start:t=>`travis_fold:start:${t}
`,end:t=>`travis_fold:end:${t}
`}:process.env.GITLAB_CI?{start:t=>`section_start:${Math.floor(Date.now()/1e3)}:${t.toLowerCase().replace(/\W+/g,"_")}\r${t}
`,end:t=>`section_end:${Math.floor(Date.now()/1e3)}:${t.toLowerCase().replace(/\W+/g,"_")}\r`}:null,uG=new Date,GCe=["iTerm.app","Apple_Terminal"].includes(process.env.TERM_PROGRAM)||!!process.env.WT_SESSION,qCe=t=>t,ym=qCe({patrick:{date:[17,3],chars:["\u{1F340}","\u{1F331}"],size:40},simba:{date:[19,7],chars:["\u{1F981}","\u{1F334}"],size:40},jack:{date:[31,10],chars:["\u{1F383}","\u{1F987}"],size:40},hogsfather:{date:[31,12],chars:["\u{1F389}","\u{1F384}"],size:40},default:{chars:["=","-"],size:80}}),JCe=GCe&&Object.keys(ym).find(t=>{let e=ym[t];return!(e.date&&(e.date[0]!==uG.getDate()||e.date[1]!==uG.getMonth()+1))})||"default";function hG(t,{configuration:e,json:r}){if(!e.get("enableMessageNames"))return"";let n=cd(t===null?0:t);return!r&&t===null?Ye(e,n,"grey"):n}function yb(t,{configuration:e,json:r}){let i=hG(t,{configuration:e,json:r});if(!i||t===null||t===q.UNNAMED)return i;let n=q[t],s=`https://yarnpkg.com/advanced/error-codes#${i}---${n}`.toLowerCase();return Ql(e,i,s)}var be=class extends ni{constructor({configuration:e,stdout:r,json:i=!1,includeFooter:n=!0,includeLogs:s=!i,includeInfos:o=s,includeWarnings:a=s,forgettableBufferSize:l=jCe,forgettableNames:c=new Set}){super();this.uncommitted=new Set;this.cacheHitCount=0;this.cacheMissCount=0;this.lastCacheMiss=null;this.warningCount=0;this.errorCount=0;this.startTime=Date.now();this.indent=0;this.progress=new Map;this.progressTime=0;this.progressFrame=0;this.progressTimeout=null;this.forgettableLines=[];Pu(this,{configuration:e}),this.configuration=e,this.forgettableBufferSize=l,this.forgettableNames=new Set([...c,...HCe]),this.includeFooter=n,this.includeInfos=o,this.includeWarnings=a,this.json=i,this.stdout=r;let g=this.configuration.get("progressBarStyle")||JCe;if(!Object.prototype.hasOwnProperty.call(ym,g))throw new Error("Assertion failed: Invalid progress bar style");this.progressStyle=ym[g];let u="\u27A4 YN0000: \u250C ".length,h=Math.max(0,Math.min(process.stdout.columns-u,80));this.progressMaxScaledSize=Math.floor(this.progressStyle.size*h/80)}static async start(e,r){let i=new this(e),n=process.emitWarning;process.emitWarning=(s,o)=>{if(typeof s!="string"){let l=s;s=l.message,o=o!=null?o:l.name}let a=typeof o!="undefined"?`${o}: ${s}`:s;i.reportWarning(q.UNNAMED,a)};try{await r(i)}catch(s){i.reportExceptionOnce(s)}finally{await i.finalize(),process.emitWarning=n}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){this.cacheHitCount+=1}reportCacheMiss(e,r){this.lastCacheMiss=e,this.cacheMissCount+=1,typeof r!="undefined"&&!this.configuration.get("preferAggregateCacheInfo")&&this.reportInfo(q.FETCH_NOT_CACHED,r)}startTimerSync(e,r,i){let n=typeof r=="function"?{}:r,s=typeof r=="function"?r:i,o={committed:!1,action:()=>{this.reportInfo(null,`\u250C ${e}`),this.indent+=1,Lo!==null&&this.stdout.write(Lo.start(e))}};n.skipIfEmpty?this.uncommitted.add(o):(o.action(),o.committed=!0);let a=Date.now();try{return s()}catch(l){throw this.reportExceptionOnce(l),l}finally{let l=Date.now();this.uncommitted.delete(o),o.committed&&(this.indent-=1,Lo!==null&&this.stdout.write(Lo.end(e)),this.configuration.get("enableTimers")&&l-a>200?this.reportInfo(null,`\u2514 Completed in ${Ye(this.configuration,l-a,De.DURATION)}`):this.reportInfo(null,"\u2514 Completed"))}}async startTimerPromise(e,r,i){let n=typeof r=="function"?{}:r,s=typeof r=="function"?r:i,o={committed:!1,action:()=>{this.reportInfo(null,`\u250C ${e}`),this.indent+=1,Lo!==null&&this.stdout.write(Lo.start(e))}};n.skipIfEmpty?this.uncommitted.add(o):(o.action(),o.committed=!0);let a=Date.now();try{return await s()}catch(l){throw this.reportExceptionOnce(l),l}finally{let l=Date.now();this.uncommitted.delete(o),o.committed&&(this.indent-=1,Lo!==null&&this.stdout.write(Lo.end(e)),this.configuration.get("enableTimers")&&l-a>200?this.reportInfo(null,`\u2514 Completed in ${Ye(this.configuration,l-a,De.DURATION)}`):this.reportInfo(null,"\u2514 Completed"))}}async startCacheReport(e){let r=this.configuration.get("preferAggregateCacheInfo")?{cacheHitCount:this.cacheHitCount,cacheMissCount:this.cacheMissCount}:null;try{return await e()}catch(i){throw this.reportExceptionOnce(i),i}finally{r!==null&&this.reportCacheChanges(r)}}reportSeparator(){this.indent===0?this.writeLineWithForgettableReset(""):this.reportInfo(null,"")}reportInfo(e,r){if(!this.includeInfos)return;this.commit();let i=this.formatNameWithHyperlink(e),n=i?`${i}: `:"",s=`${Ye(this.configuration,"\u27A4","blueBright")} ${n}${this.formatIndent()}${r}`;if(this.json)this.reportJson({type:"info",name:e,displayName:this.formatName(e),indent:this.formatIndent(),data:r});else if(this.forgettableNames.has(e))if(this.forgettableLines.push(s),this.forgettableLines.length>this.forgettableBufferSize){for(;this.forgettableLines.length>this.forgettableBufferSize;)this.forgettableLines.shift();this.writeLines(this.forgettableLines,{truncate:!0})}else this.writeLine(s,{truncate:!0});else this.writeLineWi Line truncated
`),this.writeProgress()}writeLineWithForgettableReset(e,{truncate:r}={}){this.forgettableLines=[],this.writeLine(e,{truncate:r})}writeLines(e,{truncate:r}={}){this.clearProgress({delta:e.length});for(let i of e)this.stdout.write(`${this.truncate(i,{truncate:r})}
`);this.writeProgress()}reportCacheChanges({cacheHitCount:e,cacheMissCount:r}){let i=this.cacheHitCount-e,n=this.cacheMissCount-r;if(i===0&&n===0)return;let s="";this.cacheHitCount>1?s+=`${this.cacheHitCount} packages were already cached`:this.cacheHitCount===1?s+=" - one package was already cached":s+="No packages were cached",this.cacheHitCount>0?this.cacheMissCount>1?s+=`, ${this.cacheMissCount} had to be fetched`:this.cacheMissCount===1&&(s+=`, one had to be fetched (${rt(this.configuration,this.lastCacheMiss)})`):this.cacheMissCount>1?s+=` - ${this.cacheMissCount} packages had to be fetched`:this.cacheMissCount===1&&(s+=` - one package had to be fetched (${rt(this.configuration,this.lastCacheMiss)})`),this.reportInfo(q.FETCH_NOT_CACHED,s)}commit(){let e=this.uncommitted;this.uncommitted=new Set;for(let r of e)r.committed=!0,r.action()}clearProgress({delta:e=0,clear:r=!1}){!this.configuration.get("enableProgressBars")||this.json||this.progress.size+e>0&&(this.stdout.write(`[${this.progress.size+e}A`),(e>0||r)&&this.stdout.write(""))}writeProgress(){if(!this.configuration.get("enableProgressBars")||this.json||(this.progressTimeout!==null&&clearTimeout(this.progressTimeout),this.progressTimeout=null,this.progress.size===0))return;let e=Date.now();e-this.progressTime>gG&&(this.progressFrame=(this.progressFrame+1)%cG.length,this.progressTime=e);let r=cG[this.progressFrame];for(let i of this.progress.values()){let n=this.progressStyle.chars[0].repeat(i.lastScaledSize),s=this.progressStyle.chars[1].repeat(this.progressMaxScaledSize-i.lastScaledSize),o=this.formatName(null),a=o?`${o}: `:"";this.stdout.write(`${Ye(this.configuration,"\u27A4","blueBright")} ${a}${r} ${n}${s}
`)}this.progressTimeout=setTimeout(()=>{this.refreshProgress()},gG)}refreshProgress(e=0){let r=!1;if(this.progress.size===0)r=!0;else for(let i of this.progress.values()){let n=Math.trunc(this.progressMaxScaledSize*i.definition.progress),s=i.lastScaledSize;if(i.lastScaledSize=n,n!==s){r=!0;break}}r&&(this.clearProgress({delta:e}),this.writeProgress())}truncate(e,{truncate:r}={}){return this.configuration.get("enableProgressBars")||(r=!1),typeof r=="undefined"&&(r=this.configuration.get("preferTruncatedLines")),r&&(e=lG.default(e,0,process.stdout.columns-1)),e}formatName(e){return hG(e,{configuration:this.configuration,json:this.json})}formatNameWithHyperlink(e){return yb(e,{configuration:this.configuration,json:this.json})}formatIndent(){return"\u2502 ".repeat(this.indent)}};var Ri="3.0.0-rc.2";var Os=W($i());var Zn;(function(t){t.Yarn1="Yarn Classic",t.Yarn2="Yarn",t.Npm="npm",t.Pnpm="pnpm"})(Zn||(Zn={}));async function Ts(t,e,r,i=[]){if(process.platform==="win32"){let n=`@goto #_undefined_# 2>NUL || @title %COMSPEC% & @setlocal & @"${r}" ${i.map(s=>`"${s.replace('"','""')}"`).join(" ")} %*`;await L.writeFilePromise(D.format({dir:t,name:e,ext:".cmd"}),n)}await L.writeFilePromise(D.join(t,e),`#!/bin/sh
exec "${r}" ${i.map(n=>`'${n.replace(/'/g,`'"'"'`)}'`).join(" ")} "$@"
`),await L.chmodPromise(D.join(t,e),493)}async function _Ce(t){let e=null;try{e=await L.readFilePromise(D.join(t,dt.lockfile),"utf8")}catch{}return e!==null?e.match(/^__metadata:$/m)?{packageManager:Zn.Yarn2,reason:'"__metadata" key found in yarn.lock'}:{packageManager:Zn.Yarn1,reason:'"__metadata" key not found in yarn.lock, must be a Yarn classic lockfile'}:L.existsSync(D.join(t,"package-lock.json"))?{packageManager:Zn.Npm,reason:`found npm's "package-lock.json" lockfile`}:L.existsSync(D.join(t,"pnpm-lock.yaml"))?{packageManager:Zn.Pnpm,reason:`found pnpm's "pnpm-lock.yaml" lockfile`}:null}async function oh({project:t,locator:e,binFolder:r,lifecycleScript:i}){var a,l;let n={};for(let[c,g]of Object.entries(process.env))typeof g!="undefined"&&(n[c.toLowerCase()!=="path"?c:"PATH"]=g);let s=npath.fromPortablePath(r);if(n.BERRY_BIN_FOLDER=npath.fromPortablePath(s),await Promise.all([Ts(r,"node",process.execPath),...Ri!==null?[Ts(r,"run",process.execPath,[process.argv[1],"run"]),Ts(r,"yarn",process.execPath,[process.argv[1]]),Ts(r,"yarnpkg",process.execPath,[process.argv[1]]),Ts(r,"node-gyp",process.execPath,[process.argv[1],"run","--top-level","node-gyp"])]:[]]),t&&(n.INIT_CWD=npath.fromPortablePath(t.configuration.startingCwd),n.PROJECT_CWD=npath.fromPortablePath(t.cwd)),n.PATH=n.PATH?`${s}${npath.delimiter}${n.PATH}`:`${s}`,n.npm_execpath=`${s}${npath.sep}yarn`,n.npm_node_execpath=`${s}${npath.sep}node`,e){if(!t)throw new Error("Assertion failed: Missing project");let c=t.tryWorkspaceByLocator(e),g=c?(a=c.manifest.version)!=null?a:"":(l=t.storedPackages.get(e.locatorHash).version)!=null?l:"";n.npm_package_name=pt(e),n.npm_package_version=g}let o=Ri!==null?`yarn/${Ri}`:`yarn/${Os.dynamicRequire("@yarnpkg/core").version}-core`;return n.npm_config_user_agent=`${o} npm/? node/${process.versions.node} ${process.platform} ${process.arch}`,i&&(n.npm_lifecycle_event=i),t&&await t.configuration.triggerHook(c=>c.setupScriptEnvironment,t,n,async(c,g,u)=>await Ts(r,_t(c),g,u)),n}var WCe=2,zCe=pG.default(WCe);async function VCe(t,e,{configuration:r,report:i,workspace:n=null,locator:s=null}){await zCe(async()=>{await L.mktempPromise(async o=>{let a=D.join(o,"pack.log"),l=null,{stdout:c,stderr:g}=r.getSubprocessStreams(a,{prefix:npath.fromPortablePath(t),report:i}),u=s&&Jn(s)?Bu(s):s,h=u?nn(u):"an external project";c.write(`Packing ${h} from sources
`);let f=await _Ce(t),d;f!==null?(c.write(`Using ${f.packageManager} for bootstrap. Reason: ${f.reason}
`),d=f.packageManager):(c.write(`No package manager configuration detected; defaulting to Yarn
`),d=Zn.Yarn2),await L.mktempPromise(async m=>{let I=await oh({binFolder:m}),B=new Map([[Zn.Yarn1,async()=>{let k=n!==null?["workspace",n]:[],M=await ys("yarn",["set","version","classic","--only-if-needed"],{cwd:t,env:I,stdin:l,stdout:c,stderr:g,end:zi.ErrorCode});if(M.code!==0)return M.code;await L.appendFilePromise(D.join(t,".npmignore"),`/.yarn
`),c.write(`
`);let Y=await ys("yarn",["install"],{cwd:t,env:I,stdin:l,stdout:c,stderr:g,end:zi.ErrorCode});if(Y.code!==0)return Y.code;c.write(`
`);let v=await ys("yarn",[...k,"pack","--filename",npath.fromPortablePath(e)],{cwd:t,env:I,stdin:l,stdout:c,stderr:g});return v.code!==0?v.code:0}],[Zn.Yarn2,async()=>{let k=n!==null?["workspace",n]:[];I.YARN_ENABLE_INLINE_BUILDS="1";let M=D.join(t,dt.lockfile);await L.existsPromise(M)||await L.writeFilePromise(M,"");let Y=await ys("yarn",[...k,"pack","--install-if-needed","--filename",npath.fromPortablePath(e)],{cwd:t,env:I,stdin:l,stdout:c,stderr:g});return Y.code!==0?Y.code:0}],[Zn.Npm,async()=>{if(n!==null)throw new Error(`Workspaces aren't supported by npm, which has been detected as the primary package manager for ${t}`);delete I.npm_config_user_agent;let k=await ys("npm",["install"],{cwd:t,env:I,stdin:l,stdout:c,stderr:g,end:zi.ErrorCode});if(k.code!==0)return k.code;let M=new zl.PassThrough,Y=Os.bufferStream(M);M.pipe(c);let v=await ys("npm",["pack","--silent"],{cwd:t,env:I,stdin:l,stdout:M,stderr:g});if(v.code!==0)return v.code;let J=(await Y).toString().trim(),_=D.resolve(t,npath.toPortablePath(J));return await L.renamePromise(_,e),0}]]).get(d);if(typeof B=="undefined")throw new Error("Assertion failed: Unsupported workflow");let P=await B();if(!(P===0||typeof P=="undefined"))throw L.detachTemp(o),new _e(q.PACKAGE_PREPARATION_FAILED,`Packing the package failed (exit code ${P}, logs can be found here: ${a})`)})})})}async function XCe(t,e,{project:r}){let i=r.tryWorkspaceByLocator(t);if(i!==null)return Bb(i,e);let n=r.storedPackages.get(t.locatorHash);if(!n)throw new Error(`Package for ${rt(r.configuration,t)} not found in the project`);return await Wi.openPromise(async s=>{let o=r.configuration,a=r.configuration.getLinkers(),l={project:r,report:new be({stdout:new zl.PassThrough,configuration:o})},c=a.find(f=>f.supportsPackage(n,l));if(!c)throw new Error(`The package ${rt(r.configuration,n)} isn't supported by any of the available linkers`);let g=await c.findPackageLocation(n,l),u=new It(g,{baseFs:s});return(await Ge.find(me.dot,{baseFs:u})).scripts.has(e)},{libzip:await oi()})}async function Bm(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await L.mktempPromise(async l=>{let{manifest:c,env:g,cwd:u}=await dG(t,{project:n,binFolder:l,cwd:i,lifecycleScript:e}),h=c.scripts.get(e);if(typeof h=="undefined")return 1;let f=async()=>await fm(h,r,{cwd:u,env:g,stdin:s,stdout:o,stderr:a});return await(await n.configuration.reduceHook(m=>m.wrapScriptExecution,f,n,t,e,{script:h,args:r,cwd:u,env:g,stdin:s,stdout:o,stderr:a}))()})}async function wb(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await L.mktempPromise(async l=>{let{env:c,cwd:g}=await dG(t,{project:n,binFolder:l,cwd:i});return await fm(e,r,{cwd:g,env:c,stdin:s,stdout:o,stderr:a})})}async function ZCe(t,{binFolder:e,cwd:r,lifecycleScript:i}){let n=await oh({project:t.project,locator:t.anchoredLocator,binFolder:e,lifecycleScript:i});return await Promise.all(Array.from(await CG(t),([s,[,o]])=>Ts(e,_t(s),process.execPath,[o]))),{manifest:t.manifest,binFolder:e,env:n,cwd:r!=null?r:t.cwd}}async function dG(t,{project:e,binFolder:r,cwd:i,lifecycleScript:n}){let s=e.tryWorkspaceByLocator(t);if(s!==null)return ZCe(s,{binFolder:r,cwd:i,lifecycleScript:n});let o=e.storedPackages.get(t.locatorHash);if(!o)throw new Error(`Package for ${rt(e.configuration,t)} not found in the project`);return await Wi.openPromise(async a=>{let l=e.configuration,c=e.configuration.getLinkers(),g={project:e,report:new be({stdout:new zl.PassThrough,configuration:l})},u=c.find(I=>I.supportsPackage(o,g));if(!u)throw new Error(`The package ${rt(e.configuration,o)} isn't supported by any of the available linkers`);let h=await oh({project:e,locator:t,binFolder:r,lifecycleScript:n});await Promise.all(Array.from(await wm(t,{project:e}),([I,[,w]])=>Ts(r,_t(I),process.execPath,[w])));let f=await u.findPackageLocation(o,g),d=new It(f,{baseFs:a}),m=await Ge.find(me.dot,{baseFs:d});return typeof i=="undefined"&&(i=f),{manifest:m,binFolder:r,env:h,cwd:i}},{libzip:await oi()})}async function mG(t,e,r,{cwd:i,stdin:n,stdout:s,stderr:o}){return await Bm(t.anchoredLocator,e,r,{cwd:i,project:t.project,stdin:n,stdout:s,stderr:o})}function Bb(t,e){return t.manifest.scripts.has(e)}async function IG(t,e,{cwd:r,report:i}){let{configuration:n}=t.project,s=null;await L.mktempPromise(async o=>{let a=D.join(o,`${e}.log`),l=`# This file contains the result of Yarn calling the "${e}" lifecycle script inside a workspace ("${t.cwd}")
`,{stdout:c,stderr:g}=n.getSubprocessStreams(a,{report:i,prefix:rt(n,t.anchoredLocator),header:l});i.reportInfo(q.LIFECYCLE_SCRIPT,`Calling the "${e}" lifecycle script`);let u=await mG(t,e,[],{cwd:r,stdin:s,stdout:c,stderr:g});if(c.end(),g.end(),u!==0)throw L.detachTemp(o),new _e(q.LIFECYCLE_SCRIPT,`${fG.default(e)} script failed (exit code ${Ye(n,u,De.NUMBER)}, logs can be found here: ${Ye(n,a,De.PATH)}); run ${Ye(n,`yarn ${e}`,De.CODE)} to investigate`)})}async function $Ce(t,e,r){Bb(t,e)&&await IG(t,e,r)}async function wm(t,{project:e}){let r=e.configuration,i=new Map,n=e.storedPackages.get(t.locatorHash);if(!n)throw new Error(`Package for ${rt(r,t)} not found in the project`);let s=new zl.Writable,o=r.getLinkers(),a={project:e,report:new be({configuration:r,stdout:s})},l=new Set([t.locatorHash]);for(let g of n.dependencies.values()){let u=e.storedResolutions.get(g.descriptorHash);if(!u)throw new Error(`Assertion failed: The resolution (${Ut(r,g)}) should have been registered`);l.add(u)}let c=await Promise.all(Array.from(l,async g=>{let u=e.storedPackages.get(g);if(!u)throw new Error(`Assertion failed: The package (${g}) should have been registered`);if(u.bin.size===0)return Os.mapAndFilter.skip;let h=o.find(d=>d.supportsPackage(u,a));if(!h)return Os.mapAndFilter.skip;let f=null;try{f=await h.findPackageLocation(u,a)}catch(d){if(d.code==="LOCATOR_NOT_INSTALLED")return Os.mapAndFilter.skip;throw d}return{dependency:u,packageLocation:f}}));for(let g of c){if(g===Os.mapAndFilter.skip)continue;let{dependency:u,packageLocation:h}=g;for(let[f,d]of u.bin)i.set(f,[u,npath.fromPortablePath(D.resolve(h,d))])}return i}async function CG(t){return await wm(t.anchoredLocator,{project:t.project})}async function EG(t,e,r,{cwd:i,project:n,stdin:s,stdout:o,stderr:a,nodeArgs:l=[],packageAccessibleBinaries:c}){c!=null||(c=await wm(t,{project:n}));let g=c.get(e);if(!g)throw new Error(`Binary not found (${e}) for ${rt(n.configuration,t)}`);return await L.mktempPromise(async u=>{let[,h]=g,f=await oh({project:n,locator:t,binFolder:u});await Promise.all(Array.from(c,([m,[,I]])=>Ts(f.BERRY_BIN_FOLDER,_t(m),process.execPath,[I])));let d;try{d=await ys(process.execPath,[...l,h,...r],{cwd:i,env:f,stdin:s,stdout:o,stderr:a})}finally{await L.removePromise(f.BERRY_BIN_FOLDER)}return d.code})}async function eme(t,e,r,{cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a}){return await EG(t.anchoredLocator,e,r,{project:t.project,cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a})}var Cr={};We(Cr,{convertToZip:()=>hEe,extractArchiveTo:()=>h_,makeArchiveFromDirectory:()=>uEe,safeTime:()=>Mi});var c_=W(require("stream")),g_=W(l_()),u_=W($i()),Mi=456789e3;async function uEe(t,{baseFs:e=new Qt,prefixPath:r=me.root,compressionLevel:i,inMemory:n=!1}={}){let s=await oi(),o;if(n)o=new Sr(null,{libzip:s,level:i});else{let l=await L.mktempPromise(),c=D.join(l,"archive.zip");o=new Sr(c,{create:!0,libzip:s,level:i})}let a=D.resolve(me.root,r);return await o.copyPromise(a,t,{baseFs:e,stableTime:!0,stableSort:!0}),o}async function hEe(t,e){let r=await L.mktempPromise(),i=D.join(r,"archive.zip"),{compressionLevel:n,...s}=e;return await h_(t,new Sr(i,{create:!0,libzip:await oi(),level:n}),s)}async function*fEe(t){let e=new g_.default.Parse,r=new c_.PassThrough({objectMode:!0,autoDestroy:!0,emitClose:!0});e.on("entry",i=>{r.write(i)}),e.on("error",i=>{r.destroy(i)}),e.on("close",()=>{r.destroy()}),e.end(t);for await(let i of r){let n=i;yield n,n.resume()}}async function h_(t,e,{stripComponents:r=0,prefixPath:i=me.dot}={}){var s,o;function n(a){if(a.path[0]==="/")return!0;let l=a.path.split(/\//g);return!!(l.some(c=>c==="..")||l.length<=r)}for await(let a of fEe(t)){if(n(a))continue;let l=D.normalize(npath.toPortablePath(a.path)).replace(/\/$/,"").split(/\//g);if(l.length<=r)continue;let c=l.slice(r).join("/"),g=D.join(i,c),u=420;switch((a.type==="Directory"||(((s=a.mode)!=null?s:0)&73)!=0)&&(u|=73),a.type){case"Directory":e.mkdirpSync(D.dirname(g),{chmod:493,utimes:[Mi,Mi]}),e.mkdirSync(g),e.chmodSync(g,u),e.utimesSync(g,Mi,Mi);break;case"OldFile":case"File":e.mkdirpSync(D.dirname(g),{chmod:493,utimes:[Mi,Mi]}),e.writeFileSync(g,await u_.bufferStream(a)),e.chmodSync(g,u),e.utimesSync(g,Mi,Mi);break;case"SymbolicLink":e.mkdirpSync(D.dirname(g),{chmod:493,utimes:[Mi,Mi]}),e.symlinkSync(a.linkpath,g),(o=e.lutimesSync)==null||o.call(e,g,Mi,Mi);break}}return e}var Fn={};We(Fn,{emitList:()=>pEe,emitTree:()=>I_,treeNodeToJson:()=>m_,treeNodeToTreeify:()=>C_});var d_=W(p_());function C_(t,{configuration:e}){let r={},i=(n,s)=>{let o=Array.isArray(n)?n.entries():Object.entries(n);for(let[a,{label:l,value:c,children:g}]of o){let u=[];typeof l!="undefined"&&u.push(hC(e,l,Na.BOLD)),typeof c!="undefined"&&u.push(Ye(e,c[0],c[1])),u.length===0&&u.push(hC(e,`${a}`,Na.BOLD));let h=u.join(": "),f=s[h]={};typeof g!="undefined"&&i(g,f)}};if(typeof t.children=="undefined")throw new Error("The root node must only contain children");return i(t.children,r),r}fun Line truncated
`);return}let s=d_.asTree(C_(t,{configuration:e}),!1,!1);if(n>=1&&(s=s.replace(/^([├└]─)/gm,`\u2502
$1`).replace(/^│\n/,"")),n>=2)for(let a=0;a<2;++a)s=s.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm,`$1$3 \u2502
$2`).replace(/^│\n/,"");if(n>=3)throw new Error("Only the first two levels are accepted by treeUtils.emitTree");r.write(s)}var KD=W(require("fs"));var E_=W($i());var dEe=8,ft=class{constructor(e,{configuration:r,immutable:i=r.get("enableImmutableCache"),check:n=!1}){this.markedFiles=new Set;this.mutexes=new Map;this.configuration=r,this.cwd=e,this.immutable=i,this.check=n;let s=r.get("cacheKeyOverride");if(s!==null)this.cacheKey=`${s}`;else{let o=r.get("compressionLevel"),a=o!==Ca?`c${o}`:"";this.cacheKey=[dEe,a].join("")}}static async find(e,{immutable:r,check:i}={}){let n=new ft(e.get("cacheFolder"),{configuration:e,immutable:r,check:i});return await n.setup(),n}get mirrorCwd(){if(!this.configuration.get("enableMirror"))return null;let e=`${this.configuration.get("globalFolder")}/cache`;return e!==this.cwd?e:null}getVersionFilename(e){return`${Bl(e)}-${this.cacheKey}.zip`}getChecksumFilename(e,r){let n=CEe(r).slice(0,10);return`${Bl(e)}-${n}.zip`}getLocatorPath(e,r){return this.mirrorCwd===null?D.resolve(this.cwd,this.getVersionFilename(e)):r===null||OD(r)!==this.cacheKey?null:D.resolve(this.cwd,this.getChecksumFilename(e,r))}getLocatorMirrorPath(e){let r=this.mirrorCwd;return r!==null?D.resolve(r,this.getVersionFilename(e)):null}async setup(){if(!this.configuration.get("enableGlobalCache")){await L.mkdirPromise(this.cwd,{recursive:!0});let e=D.resolve(this.cwd,".gitignore");await L.changeFilePromise(e,`/.gitignore
*.flock
`)}await L.mkdirPromise(this.mirrorCwd||this.cwd,{recursive:!0})}async fetchPackageFromCache(e,r,{onHit:i,onMiss:n,loader:s,skipIntegrityCheck:o}){let a=this.getLocatorMirrorPath(e),l=new Qt,c=async(M,Y=null)=>{let v=!o||!r?`${this.cacheKey}/${await iC(M)}`:r;if(Y!==null){let J=!o||!r?`${this.cacheKey}/${await iC(Y)}`:r;if(v!==J)throw new _e(q.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the local checksum - has the local cache been corrupted?")}if(r!==null&&v!==r){let J;switch(this.check?J="throw":OD(r)!==OD(v)?J="update":J=this.configuration.get("checksumBehavior"),J){case"ignore":return r;case"update":return v;default:case"throw":throw new _e(q.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the expected checksum")}}return v},g=async M=>{if(!s)throw new Error(`Cache check required but no loader configured for ${rt(this.configuration,e)}`);let Y=await s(),v=Y.getRealPath();return Y.saveAndClose(),await L.chmodPromise(v,420),await c(M,v)},u=async()=>{if(a===null||!await L.existsPromise(a)){let v=await s(),J=v.getRealPath();return v.saveAndClose(),{source:"loader",path:J}}let M=await L.mktempPromise(),Y=D.join(M,this.getVersionFilename(e));return await L.copyFilePromise(a,Y,KD.default.constants.COPYFILE_FICLONE),{source:"mirror",path:Y}},h=async()=>{if(!s)throw new Error(`Cache entry required but missing for ${rt(this.configuration,e)}`);if(this.immutable)throw new _e(q.IMMUTABLE_CACHE,`Cache entry required but missing for ${rt(this.configuration,e)}`);let{path:M,source:Y}=await u();await L.chmodPromise(M,420);let v=await c(M),J=this.getLocatorPath(e,v);if(!J)throw new Error("Assertion failed: Expected the cache path to be available");let _=null;if(Y!=="mirror"&&a!==null){let R=await L.mktempPromise();_=D.join(R,this.getVersionFilename(e)),await L.copyFilePromise(M,_,KD.default.constants.COPYFILE_FICLONE)}return await this.writeFileWithLock(J,async()=>await this.writeFileWithLock(Y==="mirror"?null:a,async()=>(await L.movePromise(M,J),_&&a&&await L.movePromise(_,a),[J,v])))},f=async()=>{let Y=(async()=>{let v=this.getLocatorPath(e,r),J=v!==null?await l.existsPromise(v):!1,_=J?i:n;if(_&&_(),J){let R=null,A=v;return this.check?R=await g(A):R=await c(A),[A,R]}else return h()})();this.mutexes.set(e.locatorHash,Y);try{return await Y}finally{this.mutexes.delete(e.locatorHash)}};for(let M;M=this.mutexes.get(e.locatorHash);)await M;let[d,m]=await f();this.markedFiles.add(d);let I=null,w=await oi(),B=new Mg(()=>E_.prettifySyncErrors(()=>I=new Sr(d,{baseFs:l,libzip:w,readOnly:!0}),M=>`Failed to open the cache entry for ${rt(this.configuration,e)}: ${M}`),D);return[new ma(d,{baseFs:B,pathUtils:D}),()=>{I!==null&&I.discardAndClose()},m]}async writeFileWithLock(e,r){return e===null?await r():await L.lockPromise(e,async()=>await r())}};function OD(t){let e=t.indexOf("/");return e!==-1?t.slice(0,e):null}function CEe(t){let e=t.indexOf("/");return e!==-1?t.slice(e+1):t}var v_=W(B_()),pI=W(hI());var F_=W(Cm()),R_=W(Zt()),jD=W(require("stream"));var S_={hooks:{reduceDependency:(t,e,r,i,{resolver:n,resolveOptions:s})=>{for(let{pattern:o,reference:a}of e.topLevelWorkspace.manifest.resolutions){if(o.from&&o.from.fullName!==pt(r)||o.from&&o.from.description&&o.from.description!==r.reference||o.descriptor.fullName!==pt(t)||o.descriptor.description&&o.descriptor.description!==t.range)continue;return n.bindDescriptor(zt(t,a),e.topLevelWorkspace.anchoredLocator,s)}return t},validateProject:async(t,e)=>{for(let r of t.workspaces){let i=Du(t.configuration,r);await t.configuration.triggerHook(n=>n.validateWorkspace,r,{reportWarning:(n,s)=>e.reportWarning(n,`${i}: ${s}`),reportError:(n,s)=>e.reportError(n,`${i}: ${s}`)})}},validateWorkspace:async(t,e)=>{let{manifest:r}=t;r.resolutions.length&&t.cwd!==t.project.cwd&&r.errors.push(new Error("Resolutions field will be ignored"));for(let i of r.errors)e.reportWarning(q.INVALID_MANIFEST,i.message)}}};var UD=class{constructor(e){this.fetchers=e}supports(e,r){return!!this.tryFetcher(e,r)}getLocalPath(e,r){return this.getFetcher(e,r).getLocalPath(e,r)}async fetch(e,r){return await this.getFetcher(e,r).fetch(e,r)}tryFetcher(e,r){let i=this.fetchers.find(n=>n.supports(e,r));return i||null}getFetcher(e,r){let i=this.fetchers.find(n=>n.supports(e,r));if(!i)throw new _e(q.FETCHER_NOT_FOUND,`${rt(r.project.configuration,e)} isn't supported by any available fetcher`);return i}};var pc=class{constructor(e){this.resolvers=e.filter(r=>r)}supportsDescriptor(e,r){return!!this.tryResolverByDescriptor(e,r)}supportsLocator(e,r){return!!this.tryResolverByLocator(e,r)}shouldPersistResolution(e,r){return this.getResolverByLocator(e,r).shouldPersistResolution(e,r)}bindDescriptor(e,r,i){return this.getResolverByDescriptor(e,i).bindDescriptor(e,r,i)}getResolutionDependencies(e,r){return this.getResolverByDescriptor(e,r).getResolutionDependencies(e,r)}async getCandidates(e,r,i){return await this.getResolverByDescriptor(e,i).getCandidates(e,r,i)}async getSatisfying(e,r,i){return this.getResolve Line truncated
`);return{stdout:s,stderr:o}}makeResolver(){let e=[];for(let r of this.plugins.values())for(let i of r.resolvers||[])e.push(new i);return new pc([new fI,new ci,new YD,...e])}makeFetcher(){let e=[];for(let r of this.plugins.values())for(let i of r.fetchers||[])e.push(new i);return new UD([new bh,new HD,...e])}getLinkers(){let e=[];for(let r of this.plugins.values())for(let i of r.linkers||[])e.push(new i);return e}async refreshPackageExtensions(){this.packageExtensions=new Map;let e=this.packageExtensions,r=(i,n,{userProvided:s=!1}={})=>{if(!R_.default.validRange(i.range))throw new Error("Only semver ranges are allowed as keys for the lockfileExtensions setting");let o=new Ge;o.load(n,{yamlCompatibilityMode:!0});let a=rr.getArrayWithDefault(e,i.identHash),l=[];a.push([i.range,l]);let c={status:Yr.Inactive,userProvided:s,parentDescriptor:i};for(let g of o.dependencies.values())l.push({...c,type:Pr.Dependency,descriptor:g});for(let g of o.peerDependencies.values())l.push({...c,type:Pr.PeerDependency,descriptor:g});for(let[g,u]of o.peerDependenciesMeta)for(let[h,f]of Object.entries(u))l.push({...c,type:Pr.PeerDependencyMeta,selector:g,key:h,value:f})};await this.triggerHook(i=>i.registerPackageExtensions,this,r);for(let[i,n]of this.get("packageExtensions"))r(wo(i,!0),rr.convertMapsToIndexableObjects(n),{userProvided:!0})}normalizePackage(e){let r=Eu(e);if(this.packageExtensions==null)throw new Error("refreshPackageExtensions has to be called before normalizing packages");let i=this.packageExtensions.get(e.identHash);if(typeof i!="undefined"){let s=e.version;if(s!==null){for(let[o,a]of i)if(!!nh(s,o))for(let l of a)switch(l.status===Yr.Inactive&&(l.status=Yr.Redundant),l.type){case Pr.Dependency:typeof r.dependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=Yr.Active,r.dependencies.set(l.descriptor.identHash,l.descriptor));break;case Pr.PeerDependency:typeof r.peerDependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=Yr.Active,r.peerDependencies.set(l.descriptor.identHash,l.descriptor));break;case Pr.PeerDependencyMeta:{let c=r.peerDependenciesMeta.get(l.selector);(typeof c=="undefined"||!Object.prototype.hasOwnProperty.call(c,l.key)||c[l.key]!==l.value)&&(l.status=Yr.Active,rr.getFactoryWithDefault(r.peerDependenciesMeta,l.selector,()=>({}))[l.key]=l.value)}break;default:rr.assertNever(l);break}}}let n=s=>s.scope?`${s.scope}__${s.name}`:`${s.name}`;for(let s of r.peerDependencies.values()){if(s.scope==="types")continue;let o=n(s),a=yo("types",o),l=pt(a);r.peerDependencies.has(a.identHash)||r.peerDependenciesMeta.has(l)||r.peerDependenciesMeta.set(l,{optional:!0})}for(let s of r.peerDependenciesMeta.keys()){let o=mi(s);r.peerDependencies.has(o.identHash)||r.peerDependencies.set(o.identHash,zt(o,"*"))}return r.dependencies=new Map(rr.sortMap(r.dependencies,([,s])=>Ii(s))),r.peerDependencies=new Map(rr.sortMap(r.peerDependencies,([,s])=>Ii(s))),r}getLimit(e){return rr.getFactoryWithDefault(this.limits,e,()=>F_.default(this.get(e)))}async triggerHook(e,...r){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);!s||await s(...r)}}async triggerMultipleHooks(e,r){for(let i of r)await this.triggerHook(e,...i)}async reduceHook(e,r,...i){let n=r;for(let s of this.plugins.values()){let o=s.hooks;if(!o)continue;let a=e(o);!a||(n=await a(n,...i))}return n}async firstHook(e,...r){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);if(!s)continue;let o=await s(...r);if(typeof o!="undefined")return o}return null}},oe=Js;oe.telemetry=null;var Oi;(function(t){t[t.SCRIPT=0]="SCRIPT",t[t.SHELLCODE=1]="SHELLCODE"})(Oi||(Oi={}));var _s=class extends ni{constructor({configuration:e,stdout:r,suggestInstall:i=!0}){super();this.errorCount=0;Pu(this,{configuration:e}),this.configuration=e,this.stdout=r,this.suggestInstall=i}static async start(e,r){let i=new this(e);try{await r(i)}catch(n){i.reportExceptionOnce(n)}finally{await i.finalize()}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){}reportCacheMiss(e){}startTimerSync(e,r,i){return(typeof r=="function"?r:i)()}async startTimerPromise(e,r,i){return await(typeof r=="function"?r:i)()}async startCacheReport(e){return await e()}reportSeparator(){}reportInfo(e,r){}reportWarning(e,r){}reportError(e,r){this.errorCount+=1,this.stdout.write(`${Ye(this.configuration,"\u27A4","redBright")} ${this.formatNameWithHyperlink(e)}: ${r}
`)}reportProgress(e){return{...Promise.resolve().then(async()=>{for await(let{}of e);}),stop:()=>{}}}reportJson(e){}async finalize(){this.errorCount>0&&(this.stdout.write(`
`),this.stdout.write(`${Ye(this.configuration,"\u27A4","redBright")} Errors happened when preparing the environment required to run this command.
`),this.suggestInstall&&this.stdout.write(`${Ye(this.configuration,"\u27A4","redBright")} This might be caused by packages being missing from the lockfile, in which case running "yarn install" might help.
`))}formatNameWithHyperlink(e){return yb(e,{configuration:this.configuration,json:!1})}};var KI=W(require("crypto")),xW=W(d8()),OI=W(DW()),kW=W(Cm()),vW=W(Zt()),BS=W(require("util")),wS=W(require("v8")),QS=W(require("zlib"));var SW=W(Zt());var o0e=[[/^(git(?:\+(?:https|ssh))?:\/\/.*(?:\.git)?)#(.*)$/,(t,e,r,i)=>`${r}#commit=${i}`],[/^https:\/\/((?:[^/]+?)@)?codeload\.github\.com\/([^/]+\/[^/]+)\/tar\.gz\/([0-9a-f]+)$/,(t,e,r="",i,n)=>`https://${r}github.com/${i}.git#commit=${n}`],[/^https:\/\/((?:[^/]+?)@)?github\.com\/([^/]+\/[^/]+?)(?:\.git)?#([0-9a-f]+)$/,(t,e,r="",i,n)=>`https://${r}github.com/${i}.git#commit=${n}`],[/^https?:\/\/[^/]+\/(?:[^/]+\/)*(?:@.+(?:\/|(?:%2f)))?([^/]+)\/(?:-|download)\/\1-[^/]+\.tgz(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.pkg\.github\.com\/download\/(?:@[^/]+)\/(?:[^/]+)\/(?:[^/]+)\/(?:[0-9a-f]+)$/,t=>`npm:${t}`],[/^https:\/\/npm\.fontawesome\.com\/(?:@[^/]+)\/([^/]+)\/-\/([^/]+)\/\1-\2.tgz(?:#|$)/,t=>`npm:${t}`],[/^https?:\/\/(?:[^\\.]+)\.jfrog\.io\/.*\/(@[^/]+)\/([^/]+)\/-\/\1\/\2-(?:[.\d\w-]+)\.tgz(?:#|$)/,(t,e)=>lC({protocol:"npm:",source:null,selector:t,params:{__archiveUrl:e}})],[/^[^/]+\.tgz#[0-9a-f]+$/,t=>`npm:${t}`]],ES=class{constructor(){this.resolutions=null}async setup(e,{report:r}){let i=D.join(e.cwd,e.configuration.get("lockfileFilename"));if(!L.existsSync(i))return;let n=await L.readFilePromise(i,"utf8"),s=Lr(n);if(Object.prototype.hasOwnProperty.call(s,"__metadata"))return;let o=this.resolutions=new Map;for(let a of Object.keys(s)){let l=Qu(a);if(!l){r.reportWarning(q.YARN_IMPORT_FAILED,`Failed to parse the string "${a}" into a proper descriptor`);continue}SW.default.validRange(l.range)&&(l=zt(l,`npm:${l.range}`));let{version:c,resolved:g}=s[a];if(!g)continue;let u;for(let[f,d]of o0e){let m=g.match(f);if(m){u=d(c,...m);break}}if(!u){r.reportWarning(q.YARN_IMPORT_FAILED,`${Ut(e.configuration,l)}: Only some patterns can be imported from legacy lockfiles (not "${g}")`);continue}let h=l;try{let f=yl(l.range),d=Qu(f.selector,!0);d&&(h=d)}catch{}o.set(l.descriptorHash,ri(h,u))}}supportsDescriptor(e,r){return this.resolutions?this.resolutions.has(e.descriptorHash):!1}supportsLocator(e,r){return!1}shouldPersistResolution(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}bindDescriptor(e,r,i){return e}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){if(!this.resolutions)throw new Error("Assertion failed: The resolution store should have been setup");let n=this.resolutions.get(e.descriptorHash);if(!n)throw new Error("Assertion failed: The resolution should have been registered");return[n]}async getSatisfying(e,r,i){return null}async resolve(e,r){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}};var LI=class{supportsDescriptor(e,r){return!!(r.project.storedResolutions.get(e.descriptorHash)||r.project.originalPackages.has(aC(e).locatorHash))}supportsLocator(e,r){return!!r.project.originalPackages.has(e.locatorHash)}shouldPersistResolution(e,r){throw new Error("The shouldPersistResolution method shouldn't be called on the lockfile resolver, which would always answer yes")}bindDescriptor(e,r,i){return e}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){let n=i.project.originalPackages.get(aC(e).locatorHash);if(n)return[n];let s=i.project.storedResolutions.get(e.descriptorHash);if(!s)throw new Error("Expected the resolution to have been successful - resolution not found");if(n=i.project.originalPackages.get(s),!n)throw new Error("Expected the resolution to have been successful - package not found");return[n]}async getSatisfying(e,r,i){return null}async resolve(e,r){let i=r.project.originalPackages.get(e.locatorHash);if(!i)throw new Error("The lockfile resolver isn't meant to resolve packages - they should already have been stored into a cache");return i}};var yS=class{constructor(e){this.resolver=e}supportsDescriptor(e,r){return this.resolver.supportsDescriptor(e,r)}supportsLocator(e,r){return this.resolver.supportsLocator(e,r)}shouldPersistResolution(e,r){return this.resolver.shouldPersistResolution(e,r)}bindDescriptor(e,r,i){return this.resolver.bindDescriptor(e,r,i)}getResolutionDependencies(e,r){return this.resolver.getResolutionDependencies(e,r)}async getCandidates(e,r,i){throw new _e(q.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async getSatisfying(e,r,i){throw new _e(q.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async resolve(e,r){throw new _e(q.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}};var br=class extends ni{reportCacheHit(e){}reportCacheMiss(e){}startTimerSync(e,r,i){return(typeof r=="function"?r:i)()}async startTimerPromise(e,r,i){return await(typeof r=="function"?r:i)()}async start Line truncated
`;await L.changeFilePromise(r,i,{automaticNewlines:!0}),this.manifest.raw=e}};var Wr=W($i());var bS=4,a0e=1,A0e=/ *, */g,FW=/\/$/,l0e=32,c0e=BS.promisify(QS.default.gzip),g0e=BS.promisify(QS.default.gunzip),DS={restoreInstallersCustomData:["installersCustomData"],restoreResolutions:["accessibleLocators","optionalBuilds","storedDescriptors","storedResolutions","storedPackages","lockFileChecksum"],restoreBuildState:["storedBuildState"]},xe=class{constructor(e,{configuration:r}){this.resolutionAliases=new Map;this.workspaces=[];this.workspacesByCwd=new Map;this.workspacesByIdent=new Map;this.storedResolutions=new Map;this.storedDescriptors=new Map;this.storedPackages=new Map;this.storedChecksums=new Map;this.storedBuildState=new Map;this.accessibleLocators=new Set;this.originalPackages=new Map;this.optionalBuilds=new Set;this.peerRequirements=new Map;this.installersCustomData=new Map;this.lockFileChecksum=null;this.configuration=r,this.cwd=e}static async find(e,r){var c,g,u;if(!e.projectCwd)throw new UsageError(`No project found in ${r}`);let i=e.projectCwd,n=r,s=null;for(;s!==e.projectCwd;){if(s=n,L.existsSync(D.join(s,dt.manifest))){i=s;break}n=D.dirname(s)}let o=new xe(e.projectCwd,{configuration:e});(c=oe.telemetry)==null||c.reportProject(o.cwd),await o.setupResolutions(),await o.setupWorkspaces(),(g=oe.telemetry)==null||g.reportWorkspaceCount(o.workspaces.length),(u=oe.telemetry)==null||u.reportDependencyCount(o.workspaces.reduce((h,f)=>h+f.manifest.dependencies.size+f.manifest.devDependencies.size,0));let a=o.tryWorkspaceByCwd(i);if(a)return{project:o,workspace:a,locator:a.anchoredLocator};let l=await o.findLocatorForLocation(`${i}/`,{strict:!0});if(l)return{project:o,locator:l,workspace:null};throw new UsageError(`The nearest package directory (${Ye(e,i,De.PATH)}) doesn't seem to be part of the project declared in ${Ye(e,o.cwd,De.PATH)}.
- If the project directory is right, it might be that you forgot to list ${Ye(e,D.relative(o.cwd,i),De.PATH)} as a workspace.
- If it isn't, it's likely because you have a yarn.lock or package.json file there, confusing the project root detection.`)}async setupResolutions(){this.storedResolutions=new Map,this.storedDescriptors=new Map,this.storedPackages=new Map,this.lockFileChecksum=null;let e=D.join(this.cwd,this.configuration.get("lockfileFilename")),r=this.configuration.get("defaultLanguageName");if(L.existsSync(e)){let i=await L.readFilePromise(e,"utf8");this.lockFileChecksum=vi(`${a0e}`,i);let n=Lr(i);if(n.__metadata){let s=n.__metadata.version,o=n.__metadata.cacheKey;for(let a of Object.keys(n)){if(a==="__metadata")continue;let l=n[a];if(typeof l.resolution=="undefined")throw new Error(`Assertion failed: Expected the lockfile entry to have a resolution field (${a})`);let c=Ra(l.resolution,!0),g=new Ge;g.load(l,{yamlCompatibilityMode:!0});let u=g.version,h=g.languageName||r,f=l.linkType.toUpperCase(),d=g.dependencies,m=g.peerDependencies,I=g.dependenciesMeta,w=g.peerDependenciesMeta,B=g.bin;if(l.checksum!=null){let P=typeof o!="undefined"&&!l.checksum.includes("/")?`${o}/${l.checksum}`:l.checksum;this.storedChecksums.set(c.locatorHash,P)}if(s>=bS){let P={...c,version:u,languageName:h,linkType:f,dependencies:d,peerDependencies:m,dependenciesMeta:I,peerDependenciesMeta:w,bin:B};this.originalPackages.set(P.locatorHash,P)}for(let P of a.split(A0e)){let k=wo(P);if(this.storedDescriptors.set(k.descriptorHash,k),s>=bS)this.storedResolutions.set(k.descriptorHash,c.locatorHash);else{let M=AC(c);M.descriptorHash!==k.descriptorHash&&(this.storedDescriptors.set(M.descriptorHash,M),this.resolutionAliases.set(k.descriptorHash,M.descriptorHash))}}}}}}async setupWorkspaces(){this.workspaces=[],this.workspacesByCwd=new Map,this.workspacesByIdent=new Map;let e=[this.cwd];for(;e.length>0;){let r=e;e=[];for(let i of r){if(this.workspacesByCwd.has(i))continue;let n=await this.addWorkspace(i),s=this.storedPackages.get(n.anchoredLocator.locatorHash);s&&(n.dependencies=s.dependencies);for(let o of n.workspacesCwds)e.push(o)}}}async addWorkspace(e){let r=new Hh(e,{project:this});await r.setup();let i=this.workspacesByIdent.get(r.locator.identHash);if(typeof i!="undefined")throw new Error(`Duplicate workspace name ${yr(this.configuration,r.locator)}: ${npath.fromPortablePath(e)} conflicts with ${npath.fromPortablePath(i.cwd)}`);return this.workspaces.push(r),this.workspacesByCwd.set(e,r),this.workspacesByIdent.set(r.locator.identHash,r),r}get topLevelWorkspace(){return this.getWorkspaceByCwd(this.cwd)}tryWorkspaceByCwd(e){D.isAbsolute(e)||(e=D.resolve(this.cwd,e)),e=D.normalize(e).replace(/\/+$/,"");let r=this.workspacesByCwd.get(e);return r||null}getWorkspaceByCwd(e){let r=this.tryWorkspaceByCwd(e);if(!r)throw new Error(`Workspace not found (${e})`);return r}tryWorkspaceByFilePath(e){let r=null;for(let i of this.workspaces)D.relative(i.cwd,e).startsWith("../")||r&&r.cwd.length>=i.cwd.length||(r=i);return r||null}getWorkspaceByFilePath(e){let r=this.tryWorkspaceByFilePath(e);if(!r)throw new Error(`Workspace not found (${e})`);return r}tryWorkspaceByIdent(e){let r=this.workspacesByIdent.get(e.identHash);return typeof r=="undefined"?null:r}getWorkspaceByIdent(e){let r=this.tryWorkspaceByIdent(e);if(!r)throw new Error(`Workspace not found (${yr(this.configuration,e)})`);return r}tryWorkspaceByDescriptor(e){Bo(e)&&(e=yu(e));let r=this.tryWorkspaceByIdent(e);return r===null||!r.accepts(e.range)?null:r}getWorkspaceByDescriptor(e){let r=this.tryWorkspaceByDescriptor(e);if(r===null)throw new Error(`Workspace not found (${Ut(this.configuration,e)})`);return r}tryWorkspaceByLocator(e){Jn(e)&&(e=Bu(e));let r=this.tryWorkspaceByIdent(e);return r===null||r.locator.locatorHash!==e.locatorHash&&r.anchoredLocator.locatorHash!==e.locatorHash?null:r}getWorkspaceByLocator(e){let r=this.tryWorkspaceByLocator(e);if(!r)throw new Error(`Workspace not found (${rt(this.configuration,e)})`);return r}refreshWorkspaceDependencies(){for(let e of this.workspaces){let r=this.storedPackages.get(e.anchoredLocator.locatorHash);if(!r)throw new Error(`Assertion failed: Expected workspace ${Du(this.configuration,e)} (${Ye(this.configuration,D.join(e.cwd,dt.manifest),De.PATH)}) to have been resolved. Run "yarn install" to update the lockfile`);e.dependencies=new Map(r.dependencies)}}forgetResolution(e){let r=n=>{this.storedResolutions.delete(n),this.storedDescriptors.delete(n)},i=n=>{this.originalPackages.delete(n),this.storedPackages.delete(n),this.accessibleLocators.delete(n)};if("descriptorHash"in e){let n=this.storedResolutions.get(e.descriptorHash);r(e.descriptorHash);let s=new Set(this.storedResolutions.values());typeof n!="undefined"&&!s.has(n)&&i(n)}if("locatorHash"in e){i(e.locatorHash);for(let[n,s]of this.storedResolutions)s===e.locatorHash&&r(n)}}forgetTransientResolutions(){let e=this.configuration.makeResolver();for(let r of this.originalPackages.values()){let i;try{i=e.shouldPersistResolution(r,{project:this,resolver:e})}catch{i=!1}i||this.forgetResolution(r)}}forgetVirtua Line truncated
`;switch(Le){case Oi.SCRIPT:Je+=`# Script name: ${ve}
`;break;case Oi.SHELLCODE:Je+=`# Script code: ${ve}
`;break}let V=null;if(!await L.mktempPromise(async Ie=>{let ce=D.join(Ie,"build.log"),{stdout:fe,stderr:Ne}=this.configuration.getSubprocessStreams(ce,{header:Je,prefix:rt(this.configuration,G),report:r}),pe;try{switch(Le){case Oi.SCRIPT:pe=await Bm(G,ve,[],{cwd:j,project:this,stdin:V,stdout:fe,stderr:Ne});break;case Oi.SHELLCODE:pe=await wb(G,ve,[],{cwd:j,project:this,stdin:V,stdout:fe,stderr:Ne});break}}catch(le){Ne.write(le.stack),pe=1}if(fe.end(),Ne.end(),pe===0)return v.set(G.locatorHash,T),!0;L.detachTemp(Ie);let Ee=`${rt(this.configuration,G)} couldn't be built successfully (exit code ${Ye(this.configuration,pe,De.NUMBER)}, logs can be found here: ${Ye(this.configuration,ce,De.PATH)})`;return this.optionalBuilds.has(G.locatorHash)?(r.reportInfo(q.BUILD_FAILED,Ee),v.set(G.locatorHash,T),!0):(r.reportError(q.BUILD_FAILED,Ee),!1)}))return}})())}}if(await Promise.all(R),_===w.size){let A=Array.from(w).map(G=>{let re=this.storedPackages.get(G);if(!re)throw new Error("Assertion failed: The package should have been registered");return rt(this.configuration,re)}).join(", ");r.reportError(q.CYCLIC_DEPENDENCIES,`Some packages have circular dependencies that make their build order unsatisfiable - as a result they won't be built (affected packages are: ${A})`);break}}this.storedBuildState=v}async install(e){var a,l;let r=this.configuration.get("nodeLinker");(a=oe.telemetry)==null||a.reportInstall(r),await e.report.startTimerPromise("Project validation",{skipIfEmpty:!0},async()=>{await this.configuration.triggerHook(c=>c.validateProject,this,{reportWarning:e.report.reportWarning.bind(e.report),reportError:e.report.reportError.bind(e.report)})});for(let c of this.configuration.packageExtensions.values())for(let[,g]of c)for(let u of g)u.status=Yr.Inactive;let i=D.join(this.cwd,this.configuration.get("lockfileFilename")),n=null;if(e.immutable)try{n=await L.readFilePromise(i,"utf8")}catch(c){throw c.code==="ENOENT"?new _e(q.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been created by this install, which is explicitly forbidden."):c}await e.report.startTimerPromise("Resolution step",async()=>{await this.resolveEverything(e)}),await e.report.startTimerPromise("Post-resolution validation",{skipIfEmpty:!0},async()=>{for(let[,c]of this.configuration.packageExtensions)for(let[,g]of c)for(let u of g)if(u.userProvided){let h=Ye(this.configuration,u,De.PACKAGE_EXTENSION);switch(u.status){case Yr.Inactive:e.report.reportWarning(q.UNUSED_PACKAGE_EXTENSION,`${h}: No matching package in the dependency tree; you may not need this rule anymore.`);break;case Yr.Redundant:e.report.reportWarning(q.REDUNDANT_PACKAGE_EXTENSION,`${h}: This rule seems redundant when applied on the original package; the extension may have been applied upstream.`);break}}if(n!==null){let c=ZA(n,this.generateLockfile());if(c!==n){let g=xW.structuredPatch(i,i,n,c);e.report.reportSeparator();for(let u of g.hunks){e.report.reportInfo(null,`@@ -${u.oldStart},${u.oldLines} +${u.newStart},${u.newLines} @@`);for(let h of u.lines)h.startsWith("+")?e.report.reportError(q.FROZEN_LOCKFILE_EXCEPTION,Ye(this.configuration,h,De.ADDED)):h.startsWith("-")?e.report.reportError(q.FROZEN_LOCKFILE_EXCEPTION,Ye(this.configuration,h,De.REMOVED)):e.report.reportInfo(null,Ye(this.configuration,h,"grey"))}throw e.report.reportSeparator(),new _e(q.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been modified by this install, which is explicitly forbidden.")}}});for(let c of this.configuration.packageExtensions.values())for(let[,g]of c)for(let u of g)u.userProvided&&u.status===Yr.Active&&((l=oe.telemetry)==null||l.reportPackageExtension(bl(u,De.PACKAGE_EXTENSION)));await e.report.startTimerPromise("Fetch step",async()=>{await this.fetchEverything(e),(typeof e.persistProject=="undefined"||e.persistProject)&&await this.cacheCleanup(e)});let s=e.immutable?[...new Set(this.configuration.get("immutablePatterns"))].sort():[],o=await Promise.all(s.map(async c=>nC(c,{cwd:this.cwd})));(typeof e.persistProject=="undefined"||e.persistProject)&&await this.persist(),await e.report.startTimerPromise("Link step",async()=>{await this.linkEverything(e);let c=await Promise.all(s.map(async g=>nC(g,{cwd:this.cwd})));for(let g=0;g<s.length;++g)o[g]!==c[g]&&e.report.reportError(q.FROZEN_ARTIFACT_EXCEPTION,`The checksum for ${s[g]} has been modified by this install, which is explicitly forbidden.`)}),await this.persistInstallStateFile(),await this.configuration.triggerHook(c=>c.afterAllInstalled,this,e)}generateLockfile(){let e=new Map;for(let[n,s]of this.storedResolutions.entries()){let o=e.get(s);o||e.set(s,o=new Set),o.add(n)}let r={};r.__metadata={version:bS};for(let[n,s]of e.entries()){let o=this.originalPackages.get(n);if(!o)continue;let a=[];for(let h of s){let f=this.storedDescriptors.get(h);if(!f)throw new Error("Assertion failed: The descriptor should have been registered");a.push(f)}let l=a.map(h=>Ii(h)).sort().join(", "),c=new Ge;c.version=o.linkType===At.HARD?o.version:"0.0.0-use.loca Line truncated
`,`# Manual changes might be lost - proceed with caution!
`].join("")}
`+Ls(r)}async persistLockfile(){let e=D.join(this.cwd,this.configuration.get("lockfileFilename")),r=this.generateLockfile();await L.changeFilePromise(e,r,{automaticNewlines:!0})}async persistInstallStateFile(){let e=[];for(let s of Object.values(DS))e.push(...s);let r=OI.default(this,e),i=await c0e(wS.default.serialize(r)),n=this.configuration.get("installStatePath");await L.mkdirPromise(D.dirname(n),{recursive:!0}),await L.changeFilePromise(n,i)}async restoreInstallState({restoreInstallersCustomData:e=!0,restoreResolutions:r=!0,restoreBuildState:i=!0}={}){let n=this.configuration.get("installStatePath");if(!L.existsSync(n)){r&&await this.applyLightResolution();return}let s=await L.readFilePromise(n),o=wS.default.deserialize(await g0e(s));e&&typeof o.installersCustomData!="undefined"&&(this.installersCustomData=o.installersCustomData),i&&Object.assign(this,OI.default(o,DS.restoreBuildState)),r&&(o.lockFileChecksum===this.lockFileChecksum?(Object.assign(this,OI.default(o,DS.restoreResolutions)),this.refreshWorkspaceDependencies()):await this.applyLightResolution())}async applyLightResolution(){await this.resolveEverything({lockfileOnly:!0,report:new br}),await this.persistInstallStateFile()}async persist(){await this.persistLockfile();for(let e of this.workspacesByCwd.values())await e.persistManifest()}async cacheCleanup({cache:e,report:r}){let i=new Set([".gitignore"]);if(!Zy(e.cwd,this.cwd)||!await L.existsPromise(e.cwd))return;let n=this.configuration.get("preferAggregateCacheInfo"),s=0,o=null;for(let a of await L.readdirPromise(e.cwd)){if(i.has(a))continue;let l=D.resolve(e.cwd,a);e.markedFiles.has(l)||(o=a,e.immutable?r.reportError(q.IMMUTABLE_CACHE,`${Ye(this.configuration,D.basename(l),"magenta")} appears to be unused and would be marked for deletion, but the cache is immutable`):(n?s+=1:r.reportInfo(q.UNUSED_CACHE_ENTRY,`${Ye(this.configuration,D.basename(l),"magenta")} appears to be unused - removing`),await L.removePromise(l)))}n&&s!==0&&r.reportInfo(q.UNUSED_CACHE_ENTRY,s>1?`${s} packages appeared to be unused and were removed`:`${o} appeared to be unused and was removed`),e.markedFiles.clear()}};function u0e({project:t,allDescriptors:e,allResolutions:r,allPackages:i,accessibleLocators:n=new Set,optionalBuilds:s=new Set,volatileDescriptors:o=new Set,peerRequirements:a=new Map,report:l,tolerateMissingPackages:c=!1}){var _;let g=new Map,u=[],h=new Map,f=new Map,d=new Map,m=new Map,I=new Map,w=new Map(t.workspaces.map(R=>{let A=R.anchoredLocator.locatorHash,G=i.get(A);if(typeof G=="undefined"){if(c)return[A,null];throw new Error("Assertion failed: The workspace should have an associated package")}return[A,Eu(G)]})),B=()=>{let R=L.mktempSync(),A=D.join(R,"stacktrace.log"),G=String(u.length+1).length,re=u.map((Z,T)=>`${`${T+1}.`.padStart(G," ")} ${nn(Z)}
`).join("");throw L.writeFileSync(A,re),L.detachTemp(R),new _e(q.STACK_OVERFLOW_RESOLUTION,`Encountered a stack overflow when resolving peer dependencies; cf ${npath.fromPortablePath(A)}`)},P=R=>{let A=r.get(R.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: The resolution should have been registered");let G=i.get(A);if(!G)throw new Error("Assertion failed: The package could not be found");return G},k=(R,A,{top:G,optional:re})=>{u.length>1e3&&B(),u.push(R);let Z=M(R,A,{top:G,optional:re});return u.pop(),Z},M=(R,A,{top:G,optional:re})=>{if(n.has(R.locatorHash))return;n.add(R.locatorHash),re||s.delete(R.locatorHash);let Z=i.get(R.locatorHash);if(!Z){if(c)return;throw new Error(`Assertion failed: The package (${rt(t.configuration,R)}) should have been registered`)}let T=[],j=[],Le=[],ve=[],Je=[];for(let $ of Array.from(Z.dependencies.values())){if(Z.peerDependencies.has($.identHash)&&Z.locatorHash!==G)continue;if(Bo($))throw new Error("Assertion failed: Virtual packages shouldn't be encountered when virtualizing a branch");o.delete($.descriptorHash);let Ie=re;if(!Ie){let de=Z.dependenciesMeta.get(pt($));if(typeof de!="undefined"){let ie=de.get(null);typeof ie!="undefined"&&ie.optional&&(Ie=!0)}}let ce=r.get($.descriptorHash);if(!ce){if(c)continue;throw new Error(`Assertion failed: The resolution (${Ut(t.configuration,$)}) should have been registered`)}let fe=w.get(ce)||i.get(ce);if(!fe)throw new Error(`Assertion failed: The package (${ce}, resolved from ${Ut(t.configuration,$)}) should have been registered`);if(fe.peerDependencies.size===0){k(fe,new Map,{top:G,optional:Ie});continue}let Ne=g.get(fe.locatorHash);typeof Ne=="number"&&Ne>=2&&B();let pe,Ee,le=new Set,H;j.push(()=>{pe=eQ($,R.locatorHash),Ee=tQ(fe,R.locatorHash),Z.dependencies.delete($.identHash),Z.dependencies.set(pe.identHash,pe),r.set(pe.descriptorHash,Ee.locatorHash),e.set(pe.descriptorHash,pe),i.set(Ee.locatorHash,Ee),T.push([fe,pe,Ee])}),Le.push(()=>{var de;H=new Map;for(let ie of Ee.peerDependencies.values()){let ke=Z.dependencies.get(ie.identHash);if(!ke&&wu(R,ie)&&(ke=AC(R),e.set(ke.descriptorHash,ke),r.set(ke.descriptorHash,R.locatorHash),o.delete(ke.descriptorHash)),!ke&&Ee.dependencies.has(ie.identHash)){Ee.peerDependencies.delete(ie.identHash);continue}ke||(ke=zt(ie,"missing:")),Ee.dependencies.set(ke.identHash,ke),Bo(ke)&&Wr.getSetWithDefault(d,ke.descriptorHash).add(Ee.locatorHash),h.set(ke.identHash,ke),ke.range==="missing:"&&le.add(ke.identHash),H.set(ie.identHash,(de=A.get(ie.identHash))!=null?de:Ee.locatorHash)}Ee.dependencies=new Map(Wr.sortMap(Ee.dependencies,([ie,ke])=>pt(ke)))}),ve.push(()=>{if(!i.has(Ee.locatorHash))return;let de=g.get(fe.locatorHash),ie=typeof de!="undefined"?de+1:1;g.set(fe.locatorHash,ie),k(Ee,H,{top:G,optional:Ie}),g.set(fe.locatorHash,ie-1)}),Je.push(()=>{let de=Z.dependencies.get($.identHash);if(typeof de=="undefined")throw new Error("Assertion failed: Expected the peer dependency to have been turned into a dependency");let ie=r.get(de.descriptorHash);if(typeof ie=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");if(Wr.getSetWithDefault(I,ie).add(R.locatorHash),!!i.has(Ee.locatorHash)){for(let ke of Ee.peerDependencies.values()){let et=H.get(ke.identHash);if(typeof et=="undefined")throw new Error("Assertion failed: Expected the peer dependency ident to be registered");Wr.getArrayWithDefault(Wr.getMapWithDefault(m,et),pt(ke)).push(Ee.locatorHash)}for(let ke of le)Ee.dependencies.delete(ke)}})}for(let $ of[...j,...Le])$();let V;do{V=!0;for(let[$,Ie,ce]of T){if(!i.has(ce.locatorHash))continue;let fe=Wr.getMapWithDefault(f,$.locatorHash),Ne=vi(...[...ce.dependencies.values()].map(H=>{let de=H.range!=="missing:"?r.get(H.descriptorHash):"missing:";if(typeof de=="undefined")throw new Error(`Assertion failed: Expected the resolution for ${Ut(t.configuration,H)} to have been registered`);return de===G?`${de} (top)`:de}),Ie.identHash),pe=fe.get(Ne);if(typeof pe=="undefined"){fe.set(Ne,Ie);continue}if(pe===Ie)continue;V=!1,i.delete(ce.locatorHash),e.delete(Ie.descriptorHash),r.delete(Ie.descriptorHash),n.delete(ce.locatorHash);let Ee=d.get(Ie.descriptorHash)||[],le=[Z.locatorHash,...Ee];d.delete(Ie.descriptorHash);for(let H of le){let de=i.get(H);typeof de!="undefined"&&de.dependencies.set(Ie.identHash,pe)}}}while(!V);for(let $ of[...ve,...Je])$()};for(let R of t.workspaces){let A=R.anchoredLocator;o.delete(R.anchoredDescriptor.descriptorHash),k(A,new Map,{top:A.locatorHash,optional:!1})}var Y;(function(R){R[R.NotProvided=0]="NotProvided",R[R.NotCompatible=1]="NotCompatible"})(Y||(Y={}));let v=[];for(let[R,A]of I){let G=i.get(R);if(typeof G=="undefined")throw new Error("Assertion failed: Expected the root to be registered");let re=m.get(R);if(typeof re!="undefined")for(let Z of A){let T=i.get(Z);if(typeof T!="undefined")for(let[j,Le]of re){let ve=mi(j);if(T.peerDependencies.has(ve.identHash))continue;let Je=`p${vi(Z,j,R).slice(0,5)}`;a.set(Je,{su Line truncated
`),(await be.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!this.context.quiet},async I=>{await r.install({cache:n,report:I})})).exitCode()}};Zh.paths=[["add"]],Zh.usage=Ae.Usage({description:"add dependencies to the project",details:"\n This command adds a package to the package.json for the nearest workspace.\n\n - If it didn't exist before, the package will by default be added to the regular `dependencies` field, but this behavior can be overriden thanks to the `-D,--dev` flag (which will cause the dependency to be added to the `devDependencies` field instead) and the `-P,--peer` flag (which will do the same but for `peerDependencies`).\n\n - If the package was already listed in your dependencies, it will by default be upgraded whether it's part of your `dependencies` or `devDependencies` (it won't ever update `peerDependencies`, though).\n\n - If set, the `--prefer-dev` flag will operate as a more flexible `-D,--dev` in that it will add the package to your `devDependencies` if it isn't already listed in either `dependencies` or `devDependencies`, but it will also happily upgrade your `dependencies` if that's what you already use (whereas `-D,--dev` would throw an exception).\n\n - If set, the `-O,--optional` flag will add the package to the `optionalDependencies` field and, in combination with the `-P,--peer` flag, it will add the package as an optional peer dependency. If the package was already listed in your `dependencies`, it will be upgraded to `optionalDependencies`. If the package was already listed in your `peerDependencies`, in combination with the `-P,--peer` flag, it will be upgraded to an optional peer dependency: `\"peerDependenciesMeta\": { \"<package>\": { \"optional\": true } }`\n\n - If the added package doesn't specify a range at all its `latest` tag will be resolved and the returned version will be used to generate a new semver range (using the `^` modifier by default unless otherwise configured via the `defaultSemverRangePrefix` configuration, or the `~` modifier if `-T,--tilde` is specified, or no modifier at all if `-E,--exact` is specified). Two exceptions to this rule: the first one is that if the package is a workspace then its local version will be used, and the second one is that if you use `-P,--peer` the default range will be `*` and won't be resolved at all.\n\n - If the added package specifies a range (such as `^1.0.0`, `latest`, or `rc`), Yarn will add this range as-is in the resulting package.json entry (in particular, tags such as `rc` will be encoded as-is rather than being converted into a semver range).\n\n If the `--cached` option is used, Yarn will preferably reuse the highest version already used somewhere within the project, even if through a transitive dependency.\n\n If the `-i,--interactive` option is used (or if the `preferInteractive` settings is toggled on) the command will first try to check whether other workspaces in the project use the specified package and, if so, will offer to reuse them.\n\n For a compilation of all the supported protocols, please consult the dedicated page from our website: https://yarnpkg.com/features/protocols.\n ",examples:[["Add a regular package to the current workspace","$0 add lodash"],["Add a specific version for a package to the current workspace","$0 add lodash@1.2.3"],["Add a package from a GitHub repository (the master branch) to the current workspace using a URL","$0 add lodash@https://github.com/lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol","$0 add lodash@github:lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol (shorthand)","$0 add lodash@lodash/lodash"],["Add a package from a specific branch of a GitHub repository to the current workspace using the GitHub protocol (shorthand)","$0 add lodash-es@lodash/lodash#es"]]});var jz=Zh;function Lbe(t,e,{dev:r,peer:i,preferDev:n,optional:s}){let o=t.manifest[nr.REGULAR].has(e.identHash),a=t.manifest[nr.DEVELOPMENT].has(e.identHash),l=t.manifest[nr.PEER].has(e.identHash);if((r||i)&&o)throw new UsageError(`Package "${S.prettyIdent(t.project.configuration,e)}" is already listed as a regular dependency - remove the -D,-P flags or remove it from your dependencies first`);if(!r&&!i&&l)throw new UsageError(`Package "${S.prettyIdent(t.project.configuration,e)}" is already listed as a peer dependency - use either of -D or -P, or remove it from your peer dependencies first`);if(s&&a)throw new UsageError(`Package "${S.prettyIdent(t.project.configuration,e)}" is already listed as a dev dependency - remove the -O flag or remove it from your dev dependencies first`);if(s&&!i&&l)throw new UsageError(`Package "${S.prettyIdent(t.project.configuration,e)}" is already listed as a peer dependency - remove the -O flag or add the -P flag or remove it from you Line truncated
`),0}return(await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async s=>{let o=await bt.getPackageAccessibleBinaries(i,{project:r}),l=Array.from(o.keys()).reduce((c,g)=>Math.max(c,g.length),0);for(let[c,[g,u]]of o)s.reportJson({name:c,source:S.stringifyIdent(g),path:u});if(this.verbose)for(let[c,[g]]of o)s.reportInfo(null,`${c.padEnd(l," ")} ${S.prettyLocator(e,g)}`);else for(let c of o.keys())s.reportInfo(null,c)})).exitCode()}};$h.paths=[["bin"]],$h.usage=Ae.Usage({description:"get the path to a binary script",details:`
When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the \`-v,--verbose\` flag will cause the output to contain both the binary name and the locator of the package that provides the binary.
When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive.
`,examples:[["List all the available binaries","$0 bin"],["Print the path to a specific binary","$0 bin eslint"]]});var Gz=$h;var ef=class extends ye{constructor(){super(...arguments);this.mirror=U.Boolean("--mirror",!1,{description:"Remove the global cache files instead of the local cache files"});this.all=U.Boolean("--all",!1,{description:"Remove both the global cache files and the local cache files of the current project"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),r=await ft.find(e);return(await be.start({configuration:e,stdout:this.context.stdout},async()=>{let n=(this.all||this.mirror)&&r.mirrorCwd!==null,s=!this.mirror;n&&await L.removePromise(r.mirrorCwd),s&&await L.removePromise(r.cwd)})).exitCode()}};ef.paths=[["cache","clean"],["cache","clear"]],ef.usage=Ae.Usage({description:"remove the shared cache files",details:`
This command will remove all the files from the cache.
`,examples:[["Remove all the local archives","$0 cache clean"],["Remove all the archives stored in the ~/.yarn directory","$0 cache clean --mirror"]]});var qz=ef;var _z=W(eP()),tP=W(require("util")),tf=class extends ye{constructor(){super(...arguments);this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.unsafe=U.Boolean("--no-redacted",!1,{description:"Don't redact secrets (such as tokens) from the output"});this.name=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),r=this.name.replace(/[.[].*$/,""),i=this.name.replace(/^[^.[]*/,"");if(typeof e.settings.get(r)=="undefined")throw new UsageError(`Couldn't find a configuration settings named "${r}"`);let s=e.getSpecial(r,{hideSecrets:!this.unsafe,getNativePaths:!0}),o=he.convertMapsToIndexableObjects(s),a=i?_z.default(o,i):o,l=await be.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async c=>{c.reportJson(a)});if(!this.json){if(typeof a=="string")return this.context.stdout.write(`${a}
`),l.exitCode();tP.inspect.styles.name="cyan",this.context.stdout.write(`${tP.inspect(a,{depth:Infinity,colors:e.get("enableColors"),compact:!1})}
`)}return l.exitCode()}};tf.paths=[["config","get"]],tf.usage=Ae.Usage({description:"read a configuration settings",details:`
This command will print a configuration setting.
Secrets (such as tokens) will be redacted from the output by default. If this behavior isn't desired, set the \`--no-redacted\` to get the untransformed value.
`,examples:[["Print a simple configuration setting","yarn config get yarnPath"],["Print a complex configuration setting","yarn config get packageExtensions"],["Print a nested field from the configuration",`yarn config get 'npmScopes["my-company"].npmRegistryServer'`],["Print a token from the configuration","yarn config get npmAuthToken --no-redacted"],["Print a configuration setting as JSON","yarn config get packageExtensions --json"]]});var Wz=tf;var gV=W(IP()),uV=W(eP()),hV=W(cV()),EP=W(require("util")),lf=class extends ye{constructor(){super(...arguments);this.json=U.Boolean("--json",!1,{description:"Set complex configuration settings to JSON values"});this.home=U.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=U.String();this.value=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);if(!e.projectCwd)throw new UsageError("This command must be run from within a project folder");let r=this.name.replace(/[.[].*$/,""),i=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(r)=="undefined")throw new UsageError(`Couldn't find a configuration settings named "${r}"`);let s=this.json?JSON.parse(this.value):this.value;await(this.home?h=>oe.updateHomeConfiguration(h):h=>oe.updateConfiguration(e.projectCwd,h))(h=>{if(i){let f=gV.default(h);return hV.default(f,this.name,s),f}else return{...h,[r]:s}});let l=(await oe.find(this.context.cwd,this.context.plugins)).getSpecial(r,{hideSecrets:!0,getNativePaths:!0}),c=he.convertMapsToIndexableObjects(l),g=i?uV.default(c,i):c;return(await be.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async h=>{EP.inspect.styles.name="cyan",h.reportInfo(q.UNNAMED,`Successfully set ${this.name} to ${EP.inspect(g,{depth:Infinity,colors:e.get("enableColors"),compact:!1})}`)})).exitCode()}};lf.paths=[["config","set"]],lf.usage=Ae.Usage({description:"change a configuration settings",details:`
This command will set a configuration setting.
When used without the \`--json\` flag, it can only set a simple configuration setting (a string, a number, or a boolean).
When used with the \`--json\` flag, it can set both simple and complex configuration settings, including Arrays and Objects.
`,examples:[["Set a simple configuration setting (a string, a number, or a boolean)","yarn config set initScope myScope"],["Set a simple configuration setting (a string, a number, or a boolean) using the `--json` flag",'yarn config set initScope --json \\"myScope\\"'],["Set a complex configuration setting (an Array) using the `--json` flag",`yarn config set unsafeHttpWhitelist --json '["*.example.com", "example.com"]'`],["Set a complex configuration setting (an Object) using the `--json` flag",`yarn config set packageExtensions --json '{ "@babel/parser@*": { "dependencies": { "@babel/types": "*" } } }'`],["Set a nested configuration setting",'yarn config set npmScopes.company.npmRegistryServer "https://npm.example.com"'],["Set a nested configuration setting using indexed access for non-simple keys",`yarn config set 'npmRegistries["//npm.example.com"].npmAuthToken' "ffffffff-ffff-ffff-ffff-ffffffffffff"`]]});var fV=lf;var wV=W(IP()),yP=W(BV()),cf=class extends ye{constructor(){super(...arguments);this.home=U.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);if(!e.projectCwd)throw new UsageError("This command must be run from within a project folder");let r=this.name.replace(/[.[].*$/,""),i=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(r)=="undefined")throw new UsageError(`Couldn't find a configuration settings named "${r}"`);return await(this.home?a=>oe.updateHomeConfiguration(a):a=>oe.updateConfiguration(e.projectCwd,a))(a=>{if(i){let l=wV.default(a);return yP.default(l,this.name),l}else return yP.default({...a},r)}),(await be.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async a=>{a.reportInfo(q.UNNAMED,`Successfully unset ${this.name}`)})).exitCode()}};cf.paths=[["config","unset"]],cf.usage=Ae.Usage({description:"unset a configuration setting",details:`
This command will unset a configuration setting.
`,examples:[["Unset a simple configuration setting","yarn config unset initScope"],["Unset a complex configuration setting","yarn config unset packageExtensions"],["Unset a nested configuration setting","yarn config unset npmScopes.company.npmRegistryServer"]]});var QV=cf;var BP=W(require("util")),gf=class extends ye{constructor(){super(...arguments);this.verbose=U.Boolean("-v,--verbose",!1,{description:"Print the setting description on top of the regular key/value information"});this.why=U.Boolean("--why",!1,{description:"Print the reason why a setting is set a particular way"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins,{strict:!1});return(await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{if(e.invalid.size>0&&!this.json){for(let[n,s]of e.invalid)i.reportError(q.INVALID_CONFIGURATION_KEY,`Invalid configuration key "${n}" in ${s}`);i.reportSeparator()}if(this.json){let n=he.sortMap(e.settings.keys(),s=>s);for(let s of n){let o=e.settings.get(s),a=e.getSpecial(s,{hideSecrets:!0,getNativePaths:!0}),l=e.sources.get(s);this.verbose?i.reportJson({key:s,effective:a,source:l}):i.reportJson({key:s,effective:a,source:l,...o})}}else{let n=he.sortMap(e.settings.keys(),a=>a),s=n.reduce((a,l)=>Math.max(a,l.length),0),o={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2};if(this.why||this.verbose){let a=n.map(c=>{let g=e.settings.get(c);if(!g)throw new Error(`Assertion failed: This settings ("${c}") should have been registered`);let u=this.why?e.sources.get(c)||"<default>":g.description;return[c,u]}),l=a.reduce((c,[,g])=>Math.max(c,g.length),0);for(let[c,g]of a)i.reportInfo(null,`${c.padEnd(s," ")} ${g.padEnd(l," ")} ${BP.inspect(e.getSpecial(c,{hideSecrets:!0,getNativePaths:!0}),o)}`)}else for(let a of n)i.reportInfo(null,`${a.padEnd(s," ")} ${BP.inspect(e.getSpecial(a,{hideSecrets:!0,getNativePaths:!0}),o)}`)}})).exitCode()}};gf.paths=[["config"]],gf.usage=Ae.Usage({description:"display the current configuration",details:`
This command prints the current active configuration settings.
`,examples:[["Print the active configuration settings","$0 config"]]});var bV=gf;var PV=W(Io());var DV=W(bn()),Kc;(function(t){t.HIGHEST="highest"})(Kc||(Kc={}));var B9e=new Set(Object.values(Kc)),zke={highest:async(t,e,{resolver:r,fetcher:i,resolveOptions:n,fetchOptions:s})=>{let o=new Map;for(let[a,l]of t.storedResolutions){let c=t.storedDescriptors.get(a);if(typeof c=="undefined")throw new Error(`Assertion failed: The descriptor (${a}) should have been registered`);he.getSetWithDefault(o,c.identHash).add(l)}return Array.from(t.storedDescriptors.values(),async a=>{if(e.length&&!DV.default.isMatch(S.stringifyIdent(a),e))return null;let l=t.storedResolutions.get(a.descriptorHash);if(typeof l=="undefined")throw new Error(`Assertion failed: The resolution (${a.descriptorHash}) should have been registered`);let c=t.originalPackages.get(l);if(typeof c=="undefined"||!r.shouldPersistResolution(c,n))return null;let g=o.get(a.identHash);if(typeof g=="undefined")throw new Error(`Assertion failed: The resolutions (${a.identHash}) should have been registered`);if(g.size===1)return null;let u=[...g].map(I=>{let w=t.originalPackages.get(I);if(typeof w=="undefined")throw new Error(`Assertion failed: The package (${I}) should have been registered`);return w.reference}),h=await r.getSatisfying(a,u,n),f=h==null?void 0:h[0];if(typeof f=="undefined")return null;let d=f.locatorHash,m=t.originalPackages.get(d);if(typeof m=="undefined")throw new Error(`Assertion failed: The package (${d}) should have been registered`);return d===l?null:{descriptor:a,currentPackage:c,updatedPackage:m}})}};async function SV(t,{strategy:e,patterns:r,cache:i,report:n}){let{configuration:s}=t,o=new br,a=s.makeResolver(),l=s.makeFetcher(),c={cache:i,checksums:t.storedChecksums,fetcher:l,project:t,report:o,skipIntegrityCheck:!0},g={project:t,resolver:a,report:o,fetchOptions:c};return await n.startTimerPromise("Deduplication step",async()=>{let h=await zke[e](t,r,{resolver:a,resolveOptions:g,fetcher:l,fetchOptions:c}),f=ni.progressViaCounter(h.length);n.reportProgress(f);let d=0;await Promise.all(h.map(w=>w.then(B=>{if(B===null)return;d++;let{descriptor:P,currentPackage:k,updatedPackage:M}=B;n.reportInfo(q.UNNAMED,`${S.prettyDescriptor(s,P)} can be deduped from ${S.prettyLocator(s,k)} to ${S.prettyLocator(s,M)}`),n.reportJson({descriptor:S.stringifyDescriptor(P),currentResolution:S.stringifyLocator(k),updatedResolution:S.stringifyLocator(M)}),t.storedResolutions.set(P.descriptorHash,M.locatorHash)}).finally(()=>f.tick())));let m;switch(d){case 0:m="No packages";break;case 1:m="One package";break;default:m=`${d} packages`}let I=se.pretty(s,e,se.Type.CODE);return n.reportInfo(q.UNNAMED,`${m} can be deduped using the ${I} strategy`),d})}var uf=class extends ye{constructor(){super(...arguments);this.strategy=U.String("-s,--strategy",Kc.HIGHEST,{description:"The strategy to use when deduping dependencies",validator:PV.isEnum(Kc)});this.check=U.Boolean("-c,--check",!1,{description:"Exit with exit code 1 when duplicates are found, without persisting the dependency tree"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.patterns=U.Rest()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r}=await xe.find(e,this.context.cwd),i=await ft.find(e);await r.restoreInstallState({restoreResolutions:!1});let n=0,s=await be.start({configuration:e,includeFooter:!1,stdout:this.context.stdout,json:this.json},async o=>{n=await SV(r,{strategy:this.strategy,patterns:this.patterns,cache:i,report:o})});return s.hasErrors()?s.exitCode():this.check?n?1:0:(await be.start({configuration:e,stdout:this.context.stdout,json:this.json},async a=>{await r.install({cache:i,report:a})})).exitCode()}};uf.paths=[["dedupe"]],uf.usage=Ae.Usage({description:"deduplicate dependencies with overlapping ranges",details:"\n Duplicates are defined as descriptors with overlapping ranges being resolved and locked to different locators. They are a natural consequence of Yarn's deterministic installs, but they can sometimes pile up and unnecessarily increase the size of your project.\n\n This command dedupes dependencies in the current project using different strategies (only one is implemented at the moment):\n\n - `highest`: Reuses (where possible) the locators with the highest versions. This means that dependencies can only be upgraded, never downgraded. It's also guaranteed that it never takes more than a single pass to dedupe the entire dependency tree.\n\n **Note:** Even though it never produces a wrong dependency tree, this command should be used with caution, as it modifies the dependency tree, which can sometimes cause problems when packages don't strictly follow semver recommendations. Because of this, it is recommended to also review the changes manually.\n\n If set, the `-c,--check` flag will only report the found duplicates, without persisting the modified dependency tree. If changes are f Line truncated
`)}};sE.paths=[["--clipanion=definitions"]];var FV=sE;var oE=class extends Ae{async execute(){this.context.stdout.write(this.cli.usage(null))}};oE.paths=[["help"],["--help"],["-h"]];var RV=oE;var wP=class extends Ae{constructor(){super(...arguments);this.leadingArgument=U.String();this.args=U.Proxy()}async execute(){if(this.leadingArgument.match(/[\\/]/)&&!S.tryParseIdent(this.leadingArgument)){let e=D.resolve(this.context.cwd,npath.toPortablePath(this.leadingArgument));return await this.cli.run(this.args,{cwd:e})}else return await this.cli.run(["run",this.leadingArgument,...this.args])}},NV=wP;var aE=class extends Ae{async execute(){this.context.stdout.write(`${Ri||"<unknown>"}
`)}};aE.paths=[["-v"],["--version"]];var LV=aE;var hf=class extends ye{constructor(){super(...arguments);this.commandName=U.String();this.args=U.Proxy()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,locator:i}=await xe.find(e,this.context.cwd);return await L.mktempPromise(async n=>{let{code:s}=await Ir.pipevp(this.commandName,this.args,{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,env:await bt.makeScriptEnv({project:r,locator:i,binFolder:n})});return s})}};hf.paths=[["exec"]],hf.usage=Ae.Usage({description:"execute a shell command",details:`
This command simply executes a shell binary within the context of the root directory of the active workspace.
It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).
`,examples:[["Execute a shell command","$0 exec echo Hello World"]]});var MV=hf;var Oc=W(Io()),ff=class extends ye{constructor(){super(...arguments);this.hash=U.String({required:!1,validator:Oc.applyCascade(Oc.isString(),[Oc.matchesRegExp(/^p[0-9a-f]{5}$/)])})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r}=await xe.find(e,this.context.cwd);return await r.restoreInstallState({restoreResolutions:!1}),await r.applyLightResolution(),typeof this.hash!="undefined"?await Vke(this.hash,r,{stdout:this.context.stdout}):(await be.start({configuration:e,stdout:this.context.stdout,includeFooter:!1},async n=>{var o;let s=[([,a])=>S.stringifyLocator(r.storedPackages.get(a.subject)),([,a])=>S.stringifyIdent(a.requested)];for(let[a,l]of he.sortMap(r.peerRequirements,s)){let c=r.storedPackages.get(l.subject);if(typeof c=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let g=r.storedPackages.get(l.rootRequester);if(typeof g=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let u=(o=c.dependencies.get(l.requested.identHash))!=null?o:null,h=se.pretty(e,a,se.Type.CODE),f=S.prettyLocator(e,c),d=S.prettyIdent(e,l.requested),m=S.prettyIdent(e,g),I=l.allRequesters.length-1,w=`descendant${I===1?"":"s"}`,B=I>0?` and ${I} ${w}`:"",P=u!==null?"provides":"doesn't provide";n.reportInfo(null,`${h} \u2192 ${f} ${P} ${d} to ${m}${B}`)}})).exitCode()}};ff.paths=[["explain","peer-requirements"]],ff.usage=Ae.Usage({description:"explain a set of peer requirements",details:`
A set of peer requirements represents all peer requirements that a dependent must satisfy when providing a given peer request to a requester and its descendants.
When the hash argument is specified, this command prints a detailed explanation of all requirements of the set corresponding to the hash and whether they're satisfied or not.
When used without arguments, this command lists all sets of peer requirements and the corresponding hash that can be used to get detailed information about a given set.
**Note:** A hash is a six-letter p-prefixed code that can be obtained from peer dependency warnings or from the list of all peer requirements (\`yarn explain peer-requirements\`).
`,examples:[["Explain the corresponding set of peer requirements for a hash","$0 explain peer-requirements p1a4ed"],["List all sets of peer requirements","$0 explain peer-requirements"]]});var KV=ff;async function Vke(t,e,r){let{configuration:i}=e,n=e.peerRequirements.get(t);if(typeof n=="undefined")throw new Error(`No peerDependency requirements found for hash: "${t}"`);return(await be.start({configuration:i,stdout:r.stdout,includeFooter:!1},async o=>{var w,B;let a=e.storedPackages.get(n.subject);if(typeof a=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let l=e.storedPackages.get(n.rootRequester);if(typeof l=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let c=(w=a.dependencies.get(n.requested.identHash))!=null?w:null,g=c!==null?e.storedResolutions.get(c.descriptorHash):null;if(typeof g=="undefined")throw new Error("Assertion failed: Expected the resolution to have been registered");let u=g!==null?e.storedPackages.get(g):null;if(typeof u=="undefined")throw new Error("Assertion failed: Expected the provided package to have been registered");let h=[...n.allRequesters.values()].map(P=>{let k=e.storedPackages.get(P);if(typeof k=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let M=S.devirtualizeLocator(k),Y=e.storedPackages.get(M.locatorHash);if(typeof Y=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let v=Y.peerDependencies.get(n.requested.identHash);if(typeof v=="undefined")throw new Error("Assertion failed: Expected the peer dependency to be registered");return{pkg:k,peerDependency:v}});if(u!==null){let P=h.every(({peerDependency:k})=>cr.satisfiesWithPrereleases(u.version,k.range));o.reportInfo(q.UNNAMED,`${S.prettyLocator(i,a)} provides ${S.prettyLocator(i,u)} with version ${S.prettyReference(i,(B=u.version)!=null?B:"<missing>")}, which ${P?"satisfies":"doesn't satisfy"} the following requirements:`)}else o.reportInfo(q.UNNAMED,`${S.prettyLocator(i,a)} doesn't provide ${S.prettyIdent(i,n.requested)}, breaking the following requirements:`);o.reportSeparator();let f=se.mark(i),d=[];for(let{pkg:P,peerDependency:k}of he.sortMap(h,M=>S.stringifyLocator(M.pkg))){let Y=(u!==null?cr.satisfiesWithPrereleases(u.version,k.range):!1)?f.Check:f.Cross;d.push({stringifiedLocator:S.stringifyLocator(P),prettyLocator:S.prettyLocator(i,P),prettyRange:S.prettyRange(i,k.range),mark:Y})}let m=Math.max(...d.map(({stringifiedLocator:P})=>P.length)),I=Math.max(...d.map(({prettyRange:P})=>P.length));for(let{stringifiedLocator:P,prettyLocator:k,prettyRange:M,mark:Y}of he.sortMap(d,({stringifiedLocator:v})=>v))o.reportInfo(null,`${k.padEnd(m+(k.length-P.length)," ")} \u2192 ${M.padEnd(I," ")} ${Y}`);d.length>1&&(o.reportSeparator(),o.reportInfo(q.UNNAMED,`Note: these requirements start with ${S.prettyLocator(e.configuration,l)}`))})).exitCode()}var OV=W(bn()),pf=class extends ye{constructor(){super(...arguments);this.all=U.Boolean("-A,--all",!1,{description:"Print versions of a package from the whole project"});this.recursive=U.Boolean("-R,--recursive",!1,{description:"Print information for all packages, including transitive dependencies"});this.extra=U.Array("-X,--extra",[],{description:"An array of requests of extra data provided by plugins"});this.cache=U.Boolean("--cache",!1,{description:"Print information about the cache entry of a package (path, size, checksum)"});this.dependents=U.Boolean("--dependents",!1,{description:"Print all dependents for each matching package"});this.manifest=U.Boolean("--manifest",!1,{description:"Print data obtained by looking at the package archive (license, homepage, ...)"});this.nameOnly=U.Boolean("--name-only",!1,{description:"Only print the name for the matching packages"});this.virtuals=U.Boolean("--virtuals",!1,{description:"Print each instance of the virtual packages"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.patterns=U.Rest()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i&&!this.all)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState();let s=new Set(this.extra);this.cache&&s.add("cache"),this.dependents&&s.add("dependents"),this.manifest&&s.add("manifest");let o=(P,{recursive:k})=>{let M=P.anchoredLocator.locatorHash,Y=new Map,v=[M];for(;v.length>0;){let J=v.shift();if(Y.has(J))continue;let _=r.storedPackages.get(J);if(typeof _=="undefined")throw new Error("Assertion failed: Expected the package to be registered");if(Y.set(J,_),S.isVirtualLocator(_)&&v.push(S.devirtualizeLocator(_).locatorHash),!(!k&&J!==M))for(let R of _.dependencies.values()){let A=r.storedResolutions.get(R.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: Expected the resolution to be registered");v.push(A)}}return Y.values()},a=({r Line truncated
This command setup your project if needed. The installation is splitted in four different steps that each have their own characteristics:
- **Resolution:** First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ).
- **Fetch:** Then we download all the dependencies if needed, and make sure that they're all stored within our cache (check the value of \`cacheFolder\` in \`yarn config\` to see where are stored the cache files).
- **Link:** Then we send the dependency tree information to internal plugins tasked from writing them on the disk in some form (for example by generating the .pnp.cjs file you might know).
- **Build:** Once the dependency tree has been written on the disk, the package manager will now be free to run the build scripts for all packages that might need it, in a topological order compatible with the way they depend on one another.
Note that running this command is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
If the \`--immutable\` option is set (defaults to true on CI), Yarn will abort with an error exit code if the lockfile was to be modified (other paths can be added using the \`immutablePatterns\` configuration setting). For backward compatibility we offer an alias under the name of \`--frozen-lockfile\`, but it will be removed in a later release.
If the \`--immutable-cache\` option is set, Yarn will abort with an error exit code if the cache folder was to be modified (either because files would be added, or because they'd be removed).
If the \`--check-cache\` option is set, Yarn will always refetch the packages and will ensure that their checksum matches what's 1/ described in the lockfile 2/ inside the existing cache files (if present). This is recommended as part of your CI workflow if you're both following the Zero-Installs model and accepting PRs from third-parties, as they'd otherwise have the ability to alter the checked-in packages before submitting them.
If the \`--inline-builds\` option is set, Yarn will verbosely print the output of the build steps of your dependencies (instead of writing them into individual files). This is likely useful mostly for debug purposes only when using Docker-like environments.
If the \`--skip-builds\` option is set, Yarn will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.
`,examples:[["Install the project","$0 install"],["Validate a project when using Zero-Installs","$0 install --immutable --immutable-cache"],["Validate a project when using Zero-Installs (slightly safer if you accept external PRs)","$0 install --immutable --immutable-cache --check-cache"]]});var UV=df,Zke="|||||||",$ke=">>>>>>>",eve="=======",YV="<<<<<<<";async function Xke(t,e){if(!t.projectCwd)return!1;let r=D.join(t.projectCwd,t.get("lockfileFilename"));if(!await L.existsPromise(r))return!1;let i=await L.readFilePromise(r,"utf8");if(!i.includes(YV))return!1;if(e)throw new _e(q.AUTOMERGE_IMMUTABLE,"Cannot autofix a lockfile when running an immutable install");let[n,s]=tve(i),o,a;try{o=Lr(n),a=Lr(s)}catch(c){throw new _e(q.AUTOMERGE_FAILED_TO_PARSE,"The individual variants of the lockfile failed to parse")}let l={...o,...a};for(let[c,g]of Object.entries(l))typeof g=="string"&&delete l[c];return await L.changeFilePromise(r,Ls(l),{automaticNewlines:!0}),!0}function tve(t){let e=[[],[]],r=t.split(/\r?\n/g),i=!1;for(;r.length>0;){let n=r.shift();if(typeof n=="undefined")throw new Error("Assertion failed: Some lines should remain");if(n.startsWith(YV)){for(;r.length>0;){let s=r.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s===eve){i=!1;break}else if(i||s.startsWith(Zke)){i=!0;continue}else e[0].push(s)}for(;r.length>0;){let s=r.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s.startsWith($ke))break;e[1].push(s)}}else e[0].push(n),e[1].push(n)}return[e[0].join(`
`),e[1].join(`
`)]}var Cf=class extends ye{constructor(){super(...arguments);this.all=U.Boolean("-A,--all",!1,{description:"Link all workspaces belonging to the target project to the current one"});this.private=U.Boolean("-p,--private",!1,{description:"Also link private workspaces belonging to the target project to the current one"});this.relative=U.Boolean("-r,--relative",!1,{description:"Link workspaces using relative paths instead of absolute paths"});this.destination=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=D.resolve(this.context.cwd,npath.toPortablePath(this.destination)),o=await oe.find(s,this.context.plugins),{project:a,workspace:l}=await xe.find(o,s);if(!l)throw new ze(a.cwd,s);let c=r.topLevelWorkspace,g=[];if(this.all){for(let h of a.workspaces)h.manifest.name&&(!h.manifest.private||this.private)&&g.push(h);if(g.length===0)throw new UsageError("No workspace found to be linked in the target project")}else{if(!l.manifest.name)throw new UsageError("The target workspace doesn't have a name and thus cannot be linked");if(l.manifest.private&&!this.private)throw new UsageError("The target workspace is marked private - use the --private flag to link it anyway");g.push(l)}for(let h of g){let f=S.stringifyIdent(h.locator),d=this.relative?D.relative(r.cwd,h.cwd):h.cwd;c.manifest.resolutions.push({pattern:{descriptor:{fullName:f}},reference:`portal:${d}`})}return(await be.start({configuration:e,stdout:this.context.stdout},async h=>{await r.install({cache:n,report:h})})).exitCode()}};Cf.paths=[["link"]],Cf.usage=Ae.Usage({description:"connect the local project to another one",details:"\n This command will set a new `resolutions` field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).\n\n There is no `yarn unlink` command. To unlink the workspaces from the current project one must revert the changes made to the `resolutions` field.\n ",examples:[["Register a remote workspace for use in the current project","$0 link ~/ts-loader"],["Register all workspaces from a remote project for use in the current project","$0 link ~/jest --all"]]});var HV=Cf;var mf=class extends ye{constructor(){super(...arguments);this.args=U.Proxy()}async execute(){return this.cli.run(["exec","node",...this.args])}};mf.paths=[["node"]],mf.usage=Ae.Usage({description:"run node with the hook already setup",details:`
This command simply runs Node. It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).
The Node process will use the exact same version of Node as the one used to run Yarn itself, which might be a good way to ensure that your commands always use a consistent Node version.
`,examples:[["Run a Node script","$0 node ./my-script.js"]]});var jV=mf;var $V=W(require("os"));var JV=W(require("os"));var rve="https://raw.githubusercontent.com/yarnpkg/berry/master/plugins.yml";async function DA(t){let e=await Ht.get(rve,{configuration:t});return Lr(e.toString())}var If=class extends ye{constructor(){super(...arguments);this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);return(await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{let n=await DA(e);for(let[s,{experimental:o,...a}]of Object.entries(n)){let l=s;o&&(l+=" [experimental]"),i.reportJson({name:s,experimental:o,...a}),i.reportInfo(null,l)}})).exitCode()}};If.paths=[["plugin","list"]],If.usage=Ae.Usage({category:"Plugin-related commands",description:"list the available official plugins",details:"\n This command prints the plugins available directly from the Yarn repository. Only those plugins can be referenced by name in `yarn plugin import`.\n ",examples:[["List the official plugins","$0 plugin list"]]});var GV=If;var QP=W(Zt()),Ef=class extends ye{constructor(){super(...arguments);this.onlyIfNeeded=U.Boolean("--only-if-needed",!1,{description:"Only lock the Yarn version if it isn't already locked"});this.version=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);if(e.get("yarnPath")&&this.onlyIfNeeded)return 0;let r;if(this.version==="latest"||this.version==="berry")r="https://github.com/yarnpkg/berry/raw/master/packages/yarnpkg-cli/bin/yarn.js";else if(this.version==="classic")r="https://nightly.yarnpkg.com/latest.js";else if(cr.satisfiesWithPrereleases(this.version,">=2.0.0"))r=`https://github.com/yarnpkg/berry/raw/%40yarnpkg/cli/${this.version}/packages/yarnpkg-cli/bin/yarn.js`;else if(cr.satisfiesWithPrereleases(this.version,"^0.x || ^1.x"))r=`https://github.com/yarnpkg/yarn/releases/download/v${this.version}/yarn-${this.version}.js`;else throw QP.default.validRange(this.version)?new UsageError("Support for ranges got removed - please use the exact version you want to install, or 'latest' to get the latest build available"):new UsageError(`Invalid version descriptor "${this.version}"`);return(await be.start({configuration:e,stdout:this.context.stdout},async n=>{n.reportInfo(q.UNNAMED,`Downloading ${se.pretty(e,r,"green")}`);let s=await Ht.get(r,{configuration:e});await bP(e,null,s,{report:n})})).exitCode()}};Ef.paths=[["set","version"]],Ef.usage=Ae.Usage({description:"lock the Yarn version used by the project",details:"\n This command will download a specific release of Yarn directly from the Yarn GitHub repository, will store it inside your project, and will change the `yarnPath` settings from your project `.yarnrc.yml` file to point to the new file.\n\n A very good use case for this command is to enforce the version of Yarn used by the any single member of your team inside a same project - by doing this you ensure that you have control on Yarn upgrades and downgrades (including on your deployment servers), and get rid of most of the headaches related to someone using a slightly different version and getting a different behavior than you.\n ",examples:[["Download the latest release from the Yarn repository","$0 set version latest"],["Download the latest classic release from the Yarn repository","$0 set version classic"],["Download a specific Yarn 2 build","$0 set version 2.0.0-rc.30"],["Switch back to a specific Yarn 1 release","$0 set version 1.22.1"]]});var qV=Ef;async function bP(t,e,r,{report:i}){let n=t.projectCwd?t.projectCwd:t.startingCwd;e===null&&await L.mktempPromise(async u=>{let h=D.join(u,"yarn.cjs");await L.writeFilePromise(h,r);let{stdout:f}=await Ir.execvp(process.execPath,[npath.fromPortablePath(h),"--version"],{cwd:n,env:{...process.env,YARN_IGNORE_PATH:"1"}});if(e=f.trim(),!QP.default.valid(e))throw new Error("Invalid semver version")});let s=D.resolve(n,".yarn/releases"),o=D.resolve(s,`yarn-${e}.cjs`),a=D.relative(t.startingCwd,o),l=D.relative(n,o),c=t.get("yarnPath"),g=c===null||c.startsWith(`${s}/`);i.reportInfo(q.UNNAMED,`Saving the new release in ${se.pretty(t,a,"magenta")}`),await L.removePromise(D.dirname(o)),await L.mkdirPromise(D.dirname(o),{recursive:!0}),await L.writeFilePromise(o,r),await L.chmodPromise(o,493),g&&await oe.updateConfiguration(n,{yarnPath:l})}var ive=/^[0-9]+$/;function _V(t){return ive.test(t)?`pull/${t}/head`:t}var nve=({repository:t,branch:e},r)=>[["git","init",npath.fromPortablePath(r)],["git","remote","add","origin",t],["git","fetch","origin",_V(e)],["git","reset","--hard","FETCH_HEAD"]],sve=({branch:t})=>[["git","fetch","origin",_V(t),"--force"],["git","reset","--hard","FETCH_HEAD"],["git","clean","-dfx"]],ove=({plugins:t,noMinify:e},r)=>[["yarn","build:cli",...new Array().concat(...t.map(i=>["--plugin",D.resolve(r,i)])),...e?["--no-minify"]:[],"|"]],yf=class extends ye{con Line truncated
This command will clone the Yarn repository into a temporary folder, then build it. The resulting bundle will then be copied into the local project.
By default, it also updates all contrib plugins to the same commit the bundle is built from. This behavior can be disabled by using the \`--skip-plugins\` flag.
`,examples:[["Build Yarn from master","$0 set version from sources"]]});var WV=yf;async function Bf(t,{configuration:e,context:r,target:i}){for(let[n,...s]of t){let o=s[s.length-1]==="|";if(o&&s.pop(),o)await Ir.pipevp(n,s,{cwd:i,stdin:r.stdin,stdout:r.stdout,stderr:r.stderr,strict:!0});else{r.stdout.write(`${se.pretty(e,` $ ${[n,...s].join(" ")}`,"grey")}
`);try{await Ir.execvp(n,s,{cwd:i,strict:!0})}catch(a){throw r.stdout.write(a.stdout||a.stack),a}}}}async function SP(t,{configuration:e,report:r,target:i}){let n=!1;if(!t.force&&L.existsSync(D.join(i,".git"))){r.reportInfo(q.UNNAMED,"Fetching the latest commits"),r.reportSeparator();try{await Bf(sve(t),{configuration:e,context:t.context,target:i}),n=!0}catch(s){r.reportSeparator(),r.reportWarning(q.UNNAMED,"Repository update failed; we'll try to regenerate it")}}n||(r.reportInfo(q.UNNAMED,"Cloning the remote repository"),r.reportSeparator(),await L.removePromise(i),await L.mkdirPromise(i,{recursive:!0}),await Bf(nve(t,i),{configuration:e,context:t.context,target:i}))}async function ave(t,{project:e,report:r,target:i}){let n=await DA(e.configuration),s=new Set(Object.keys(n));for(let o of e.configuration.plugins.keys())!s.has(o)||await DP(o,t,{project:e,report:r,target:i})}var zV=W(Zt()),VV=W(require("url")),XV=W(require("vm"));var wf=class extends ye{constructor(){super(...arguments);this.name=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);return(await be.start({configuration:e,stdout:this.context.stdout},async i=>{let{project:n}=await xe.find(e,this.context.cwd),s,o;if(this.name.match(/^\.{0,2}[\\/]/)||npath.isAbsolute(this.name)){let a=D.resolve(this.context.cwd,npath.toPortablePath(this.name));i.reportInfo(q.UNNAMED,`Reading ${se.pretty(e,a,se.Type.PATH)}`),s=D.relative(n.cwd,a),o=await L.readFilePromise(a)}else{let a;if(this.name.match(/^https?:/)){try{new VV.URL(this.name)}catch{throw new _e(q.INVALID_PLUGIN_REFERENCE,`Plugin specifier "${this.name}" is neither a plugin name nor a valid url`)}s=this.name,a=this.name}else{let l=S.parseLocator(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-"));if(l.reference!=="unknown"&&!zV.default.valid(l.reference))throw new _e(q.UNNAMED,"Official plugins only accept strict version references. Use an explicit URL if you wish to download them from another location.");let c=S.stringifyIdent(l),g=await DA(e);if(!Object.prototype.hasOwnProperty.call(g,c))throw new _e(q.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${c}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be referenced by their name; any other plugin will have to be referenced through its public url (for example https://github.com/yarnpkg/berry/raw/master/packages/plugin-typescript/bin/%40yarnpkg/plugin-typescript.js).`);s=c,a=g[c].url,l.reference!=="unknown"?a=a.replace(/\/master\//,`/${c}/${l.reference}/`):Ri!==null&&(a=a.replace(/\/master\//,`/@yarnpkg/cli/${Ri}/`))}i.reportInfo(q.UNNAMED,`Downloading ${se.pretty(e,a,"green")}`),o=await Ht.get(a,{configuration:e})}await PP(s,o,{project:n,report:i})})).exitCode()}};wf.paths=[["plugin","import"]],wf.usage=Ae.Usage({category:"Plugin-related commands",description:"download a plugin",details:`
This command downloads the specified plugin from its remote location and updates the configuration to reference it in further CLI invocations.
Three types of plugin references are accepted:
- If the plugin is stored within the Yarn repository, it can be referenced by name.
- Third-party plugins can be referenced directly through their public urls.
- Local plugins can be referenced by their path on the disk.
Plugins cannot be downloaded from the npm registry, and aren't allowed to have dependencies (they need to be bundled into a single file, possibly thanks to the \`@yarnpkg/builder\` package).
`,examples:[['Download and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import @yarnpkg/plugin-exec"],['Download and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import exec"],["Download and activate a community plugin","$0 plugin import https://example.org/path/to/plugin.js"],["Activate a local plugin","$0 plugin import ./path/to/plugin.js"]]});var ZV=wf;async function PP(t,e,{project:r,report:i}){let{configuration:n}=r,s={},o={exports:s};XV.runInNewContext(e.toString(),{module:o,exports:s});let a=o.exports.name,l=`.yarn/plugins/${a}.cjs`,c=D.resolve(r.cwd,l);i.reportInfo(q.UNNAMED,`Saving the new plugin in ${se.pretty(n,l,"magenta")}`),await L.mkdirPromise(D.dirname(c),{recursive:!0}),await L.writeFilePromise(c,e);let g={path:l,spec:t};await oe.updateConfiguration(r.cwd,u=>{let h=[],f=!1;for(let d of u.plugins||[]){let m=typeof d!="string"?d.path:d,I=D.resolve(r.cwd,npath.toPortablePath(m)),{name:w}=he.dynamicRequire(npath.fromPortablePath(I));w!==a?h.push(d):(h.push(g),f=!0)}return f||h.push(g),{...u,plugins:h}})}var Ave=({pluginName:t,noMinify:e},r)=>[["yarn",`build:${t}`,...e?["--no-minify"]:[],"|"]],Qf=class extends ye{constructor(){super(...arguments);this.installPath=U.String("--path",{description:"The path where the repository should be cloned to"});this.repository=U.String("--repository","https://github.com/yarnpkg/berry.git",{description:"The repository that should be cloned"});this.branch=U.String("--branch","master",{description:"The branch of the repository that should be cloned"});this.noMinify=U.Boolean("--no-minify",!1,{description:"Build a plugin for development (debugging) - non-minified and non-mangled"});this.force=U.Boolean("-f,--force",!1,{description:"Always clone the repository instead of trying to fetch the latest commits"});this.name=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),r=typeof this.installPath!="undefined"?D.resolve(this.context.cwd,npath.toPortablePath(this.installPath)):D.resolve(npath.toPortablePath($V.tmpdir()),"yarnpkg-sources",Dn.makeHash(this.repository).slice(0,6));return(await be.start({configuration:e,stdout:this.context.stdout},async n=>{let{project:s}=await xe.find(e,this.context.cwd),o=S.parseIdent(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-")),a=S.stringifyIdent(o),l=await DA(e);if(!Object.prototype.hasOwnProperty.call(l,a))throw new _e(q.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${a}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be built and imported from sources.`);let c=a;await SP(this,{configuration:e,report:n,target:r}),await DP(c,this,{project:s,report:n,target:r})})).exitCode()}};Qf.paths=[["plugin","import","from","sources"]],Qf.usage=Ae.Usage({category:"Plugin-related commands",description:"build a plugin from sources",details:`
This command clones the Yarn repository into a temporary folder, builds the specified contrib plugin and updates the configuration to reference it in further CLI invocations.
The plugins can be referenced by their short name if sourced from the official Yarn repository.
`,examples:[['Build and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import from sources @yarnpkg/plugin-exec"],['Build and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import from sources exec"]]});var e9=Qf;async function DP(t,{context:e,noMinify:r},{project:i,report:n,target:s}){let o=t.replace(/@yarnpkg\//,""),{configuration:a}=i;n.reportSeparator(),n.reportInfo(q.UNNAMED,`Building a fresh ${o}`),n.reportSeparator(),await Bf(Ave({pluginName:o,noMinify:r},s),{configuration:a,context:e,target:s}),n.reportSeparator();let l=D.resolve(s,`packages/${o}/bundles/${t}.js`),c=await L.readFilePromise(l);await PP(t,c,{project:i,report:n})}var bf=class extends ye{constructor(){super(...arguments);this.name=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r}=await xe.find(e,this.context.cwd);return(await be.start({configuration:e,stdout:this.context.stdout},async n=>{let s=this.name,o=S.parseIdent(s);if(!e.plugins.has(s))throw new UsageError(`${S.prettyIdent(e,o)} isn't referenced by the current configuration`);let a=`.yarn/plugins/${s}.cjs`,l=D.resolve(r.cwd,a);L.existsSync(l)&&(n.reportInfo(q.UNNAMED,`Removing ${se.pretty(e,a,se.Type.PATH)}...`),await L.removePromise(l)),n.reportInfo(q.UNNAMED,"Updating the configuration..."),await oe.updateConfiguration(r.cwd,c=>{if(!Array.isArray(c.plugins))return c;let g=c.plugins.filter(u=>u.path!==a);return c.plugins.length===g.length?c:{...c,plugins:g}})})).exitCode()}};bf.paths=[["plugin","remove"]],bf.usage=Ae.Usage({category:"Plugin-related commands",description:"remove a plugin",details:`
This command deletes the specified plugin from the .yarn/plugins folder and removes it from the configuration.
**Note:** The plugins have to be referenced by their name property, which can be obtained using the \`yarn plugin runtime\` command. Shorthands are not allowed.
`,examples:[["Remove a plugin imported from the Yarn repository","$0 plugin remove @yarnpkg/plugin-typescript"],["Remove a plugin imported from a local file","$0 plugin remove my-local-plugin"]]});var t9=bf;var Df=class extends ye{constructor(){super(...arguments);this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins);return(await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{for(let n of e.plugins.keys()){let s=this.context.plugins.plugins.has(n),o=n;s&&(o+=" [builtin]"),i.reportJson({name:n,builtin:s}),i.reportInfo(null,`${o}`)}})).exitCode()}};Df.paths=[["plugin","runtime"]],Df.usage=Ae.Usage({category:"Plugin-related commands",description:"list the active plugins",details:`
This command prints the currently active plugins. Will be displayed both builtin plugins and external plugins.
`,examples:[["List the currently active plugins","$0 plugin runtime"]]});var r9=Df;var Sf=class extends ye{constructor(){super(...arguments);this.idents=U.Rest()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i)throw new ze(r.cwd,this.context.cwd);let s=new Set;for(let a of this.idents)s.add(S.parseIdent(a).identHash);if(await r.restoreInstallState({restoreResolutions:!1}),await r.resolveEverything({cache:n,report:new br}),s.size>0)for(let a of r.storedPackages.values())s.has(a.identHash)&&r.storedBuildState.delete(a.locatorHash);else r.storedBuildState.clear();return(await be.start({configuration:e,stdout:this.context.stdout,includeLogs:!this.context.quiet},async a=>{await r.install({cache:n,report:a})})).exitCode()}};Sf.paths=[["rebuild"]],Sf.usage=Ae.Usage({description:"rebuild the project's native packages",details:`
This command will automatically cause Yarn to forget about previous compilations of the given packages and to run them again.
Note that while Yarn forgets the compilation, the previous artifacts aren't erased from the filesystem and may affect the next builds (in good or bad). To avoid this, you may remove the .yarn/unplugged folder, or any other relevant location where packages might have been stored (Yarn may offer a way to do that automatically in the future).
By default all packages will be rebuilt, but you can filter the list by specifying the names of the packages you want to clear from memory.
`,examples:[["Rebuild all packages","$0 rebuild"],["Rebuild fsevents only","$0 rebuild fsevents"]]});var i9=Sf;var xP=W(bn());var Pf=class extends ye{constructor(){super(...arguments);this.all=U.Boolean("-A,--all",!1,{description:"Apply the operation to all workspaces from the current project"});this.patterns=U.Rest()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=this.all?r.workspaces:[i],o=[nr.REGULAR,nr.DEVELOPMENT,nr.PEER],a=[],l=!1,c=[];for(let f of this.patterns){let d=!1,m=S.parseIdent(f);for(let I of s){let w=[...I.manifest.peerDependenciesMeta.keys()];for(let B of xP.default(w,f))I.manifest.peerDependenciesMeta.delete(B),l=!0,d=!0;for(let B of o){let P=I.manifest.getForScope(B),k=[...P.values()].map(M=>S.stringifyIdent(M));for(let M of xP.default(k,S.stringifyIdent(m))){let{identHash:Y}=S.parseIdent(M),v=P.get(Y);if(typeof v=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");I.manifest[B].delete(Y),c.push([I,B,v]),l=!0,d=!0}}}d||a.push(f)}let g=a.length>1?"Patterns":"Pattern",u=a.length>1?"don't":"doesn't",h=this.all?"any":"this";if(a.length>0)throw new UsageError(`${g} ${se.prettyList(e,a,CA.CODE)} ${u} match any packages referenced by ${h} workspace`);return l?(await e.triggerMultipleHooks(d=>d.afterWorkspaceDependencyRemoval,c),(await be.start({configuration:e,stdout:this.context.stdout},async d=>{await r.install({cache:n,report:d})})).exitCode()):0}};Pf.paths=[["remove"]],Pf.usage=Ae.Usage({description:"remove dependencies from the project",details:`
This command will remove the packages matching the specified patterns from the current workspace.
This command accepts glob patterns as arguments (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.
`,examples:[["Remove a dependency from the current project","$0 remove lodash"],["Remove a dependency from all workspaces at once","$0 remove lodash --all"],["Remove all dependencies starting with `eslint-`","$0 remove 'eslint-*'"],["Remove all dependencies with the `@babel` scope","$0 remove '@babel/*'"],["Remove all dependencies matching `react-dom` or `react-helmet`","$0 remove 'react-{dom,helmet}'"]]});var n9=Pf;var s9=W(require("util")),AE=class extends ye{async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);return(await be.start({configuration:e,stdout:this.context.stdout},async s=>{let o=i.manifest.scripts,a=he.sortMap(o.keys(),g=>g),l={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2},c=a.reduce((g,u)=>Math.max(g,u.length),0);for(let[g,u]of o.entries())s.reportInfo(null,`${g.padEnd(c," ")} ${s9.inspect(u,l)}`)})).exitCode()}};AE.paths=[["run"]];var o9=AE;var xf=class extends ye{constructor(){super(...arguments);this.inspect=U.String("--inspect",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.inspectBrk=U.String("--inspect-brk",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.topLevel=U.Boolean("-T,--top-level",!1,{hidden:!0});this.binariesOnly=U.Boolean("-B,--binaries-only",!1,{hidden:!0});this.silent=U.Boolean("--silent",{hidden:!0});this.scriptName=U.String();this.args=U.Proxy()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i,locator:n}=await xe.find(e,this.context.cwd);await r.restoreInstallState();let s=this.topLevel?r.topLevelWorkspace.anchoredLocator:n;if(!this.binariesOnly&&await bt.hasPackageScript(s,this.scriptName,{project:r}))return await bt.executePackageScript(s,this.scriptName,this.args,{project:r,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr});let o=await bt.getPackageAccessibleBinaries(s,{project:r});if(o.get(this.scriptName)){let l=[];return this.inspect&&(typeof this.inspect=="string"?l.push(`--inspect=${this.inspect}`):l.push("--inspect")),this.inspectBrk&&(typeof this.inspectBrk=="string"?l.push(`--inspect-brk=${this.inspectBrk}`):l.push("--inspect-brk")),await bt.executePackageAccessibleBinary(s,this.scriptName,this.args,{cwd:this.context.cwd,project:r,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,nodeArgs:l,packageAccessibleBinaries:o})}if(!this.topLevel&&!this.binariesOnly&&i&&this.scriptName.includes(":")){let c=(await Promise.all(r.workspaces.map(async g=>g.manifest.scripts.has(this.scriptName)?g:null))).filter(g=>g!==null);if(c.length===1)return await bt.executeWorkspaceScript(c[0],this.scriptName,this.args,{stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})}if(this.topLevel)throw this.scriptName==="node-gyp"?new UsageError(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${S.prettyLocator(e,n)}). This typically happens because some package depends on "node-gyp" to build itself, but didn't list it in their dependencies. To fix that, please run "yarn add node-gyp" into your top-level workspace. You also can open an issue on the repository of the specified package to suggest them to use an optional peer dependency.`):new UsageError(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${S.prettyLocator(e,n)}).`);{if(this.scriptName==="global")throw new UsageError("The 'yarn global' commands have been removed in 2.x - consider using 'yarn dlx' or a third-party plugin instead");let l=[this.scriptName].concat(this.args);for(let[c,g]of Dc)for(let u of g)if(l.length>=u.length&&JSON.stringify(l.slice(0,u.length))===JSON.stringify(u))throw new UsageError(`Couldn't find a script named "${this.scriptName}", but a matching command can be found in the ${c} plugin. You can install it with "yarn plugin import ${c}".`);throw new UsageError(`Couldn't find a script named "${this.scriptName}".`)}}};xf.paths=[["run"]],xf.usage=Ae.Usage({description:"run a script defined in the package.json",details:`
This command will run a tool. The exact tool that will be executed will depend on the current state of your workspace:
- If the \`scripts\` field from your local package.json contains a matching script name, its definition will get executed.
- Otherwise, if one of the local workspace's dependencies exposes a binary with a matching name, this binary will get executed.
- Otherwise, if the specified name contains a colon character and if one of the workspaces in the project contains exactly one script with a matching name, then this script will get executed.
Whatever happens, the cwd of the spawned process will be the workspace that declares the script (which makes it possible to call commands cross-workspaces using the third syntax).
`,examples:[["Run the tests from the local workspace","$0 run test"],['Same thing, but without the "run" keyword',"$0 test"],["Inspect Webpack while running","$0 run --inspect-brk webpack"]]});var a9=xf;var kf=class extends ye{constructor(){super(...arguments);this.save=U.Boolean("-s,--save",!1,{description:"Persist the resolution inside the top-level manifest"});this.descriptor=U.String();this.resolution=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(await r.restoreInstallState({restoreResolutions:!1}),!i)throw new ze(r.cwd,this.context.cwd);let s=S.parseDescriptor(this.descriptor,!0),o=S.makeDescriptor(s,this.resolution);return r.storedDescriptors.set(s.descriptorHash,s),r.storedDescriptors.set(o.descriptorHash,o),r.resolutionAliases.set(s.descriptorHash,o.descriptorHash),(await be.start({configuration:e,stdout:this.context.stdout},async l=>{await r.install({cache:n,report:l})})).exitCode()}};kf.paths=[["set","resolution"]],kf.usage=Ae.Usage({description:"enforce a package resolution",details:'\n This command updates the resolution table so that `descriptor` is resolved by `resolution`.\n\n Note that by default this command only affect the current resolution table - meaning that this "manual override" will disappear if you remove the lockfile, or if the package disappear from the table. If you wish to make the enforced resolution persist whatever happens, add the `-s,--save` flag which will also edit the `resolutions` field from your top-level manifest.\n\n Note that no attempt is made at validating that `resolution` is a valid resolution entry for `descriptor`.\n ',examples:[["Force all instances of lodash@npm:^1.2.3 to resolve to 1.5.0","$0 set resolution lodash@npm:^1.2.3 1.5.0"]]});var A9=kf;var l9=W(zh()),kP=W(bn()),lE=W(Io());var Tc=class extends ye{constructor(){super(...arguments);this.interactive=U.Boolean("-i,--interactive",{description:"Offer various choices, depending on the detected upgrade paths"});this.exact=U.Boolean("-E,--exact",!1,{description:"Don't use any semver modifier on the resolved range"});this.tilde=U.Boolean("-T,--tilde",!1,{description:"Use the `~` semver modifier on the resolved range"});this.caret=U.Boolean("-C,--caret",!1,{description:"Use the `^` semver modifier on the resolved range"});this.recursive=U.Boolean("-R,--recursive",!1,{description:"Resolve again ALL resolutions for those packages"});this.patterns=U.Rest()}async execute(){return this.recursive?await this.executeUpRecursive():await this.executeUpClassic()}async executeUpRecursive(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=[...r.storedDescriptors.values()],o=s.map(g=>S.stringifyIdent(g)),a=new Set;for(let g of this.patterns){if(S.parseDescriptor(g).range!=="unknown")throw new UsageError("Ranges aren't allowed when using --recursive");for(let u of kP.default(o,g)){let h=S.parseIdent(u);a.add(h.identHash)}}let l=s.filter(g=>a.has(g.identHash));for(let g of l)r.storedDescriptors.delete(g.descriptorHash),r.storedResolutions.delete(g.descriptorHash);return(await be.start({configuration:e,stdout:this.context.stdout},async g=>{await r.install({cache:n,report:g})})).exitCode()}async executeUpClassic(){var m;let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd),n=await ft.find(e);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState({restoreResolutions:!1});let s=(m=this.interactive)!=null?m:e.get("preferInteractive"),o=Vh(this,r),a=s?[gr.KEEP,gr.REUSE,gr.PROJECT,gr.LATEST]:[gr.PROJECT,gr.LATEST],l=[],c=[];for(let I of this.patterns){let w=!1,B=S.parseDescriptor(I);for(let P of r.workspaces)for(let k of[nr.REGULAR,nr.DEVELOPMENT]){let Y=[...P.manifest.getForScope(k).values()].map(v=>S.stringifyIdent(v));for(let v of kP.default(Y,S.stringifyIdent(B))){let J=S.parseIdent(v),_=P.manifest[k].get(J.identHash);if(typeof _=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");let R=S.makeDescriptor(J,B.range);l.push(Promise.resolve().then(async()=>[P,k,_,await Xh(R,{project:r,workspace:P,cache:n,target:k,modifier:o,strategies:a})])),w=!0}}w||c.push(I)}if(c.length>1)throw new UsageError(`Patterns ${se.prettyList(e,c,CA.CODE)} don't match any packages referenced by any workspace`);if(c.length>0)throw new UsageError(`Pattern ${se.prettyList(e,c,CA.CODE)} doesn't match any packages referenced by any workspace`);let g=await Promise.all(l),u=await _s.start({configuration:e,stdout:this.context.stdout,suggestInstall:!1},async I=>{for(let[,,w,{suggestions:B,rejections:P}]of g){let k=B.filter(M=>M.descriptor!==null);if(k.length===0){let[M]=P;if(typeof M=="undefined")throw new Error("Asserti Line truncated
${Y}`):I.reportError(q.CANT_SUGGEST_RESOLUTIONS,`${S.prettyDescriptor(e,w)} can't be resolved to a satisfying range (note: network resolution has been disabled)
${Y}`)}else k.length>1&&!s&&I.reportError(q.CANT_SUGGEST_RESOLUTIONS,`${S.prettyDescriptor(e,w)} has multiple possible upgrade strategies; use -i to disambiguate manually`)}});if(u.hasErrors())return u.exitCode();let h=!1,f=[];for(let[I,w,,{suggestions:B}]of g){let P,k=B.filter(J=>J.descriptor!==null),M=k[0].descriptor,Y=k.every(J=>S.areDescriptorsEqual(J.descriptor,M));k.length===1||Y?P=M:(h=!0,{answer:P}=await l9.prompt({type:"select",name:"answer",message:`Which range to you want to use in ${S.prettyWorkspace(e,I)} \u276F ${w}?`,choices:B.map(({descriptor:J,name:_,reason:R})=>J?{name:_,hint:R,descriptor:J}:{name:_,hint:R,disabled:!0}),onCancel:()=>process.exit(130),result(J){return this.find(J,"descriptor")},stdin:this.context.stdin,stdout:this.context.stdout}));let v=I.manifest[w].get(P.identHash);if(typeof v=="undefined")throw new Error("Assertion failed: This descriptor should have a matching entry");if(v.descriptorHash!==P.descriptorHash)I.manifest[w].set(P.identHash,P),f.push([I,w,v,P]);else{let J=e.makeResolver(),_={project:r,resolver:J},R=J.bindDescriptor(v,I.anchoredLocator,_);r.forgetResolution(R)}}return await e.triggerMultipleHooks(I=>I.afterWorkspaceDependencyReplacement,f),h&&this.context.stdout.write(`
`),(await be.start({configuration:e,stdout:this.context.stdout},async I=>{await r.install({cache:n,report:I})})).exitCode()}};Tc.paths=[["up"]],Tc.usage=Ae.Usage({description:"upgrade dependencies across the project",details:"\n This command upgrades the packages matching the list of specified patterns to their latest available version across the whole project (regardless of whether they're part of `dependencies` or `devDependencies` - `peerDependencies` won't be affected). This is a project-wide command: all workspaces will be upgraded in the process.\n\n If `-R,--recursive` is set the command will change behavior and no other switch will be allowed. When operating under this mode `yarn up` will force all ranges matching the selected packages to be resolved again (often to the highest available versions) before being stored in the lockfile. It however won't touch your manifests anymore, so depending on your needs you might want to run both `yarn up` and `yarn up -R` to cover all bases.\n\n If `-i,--interactive` is set (or if the `preferInteractive` settings is toggled on) the command will offer various choices, depending on the detected upgrade paths. Some upgrades require this flag in order to resolve ambiguities.\n\n The, `-C,--caret`, `-E,--exact` and `-T,--tilde` options have the same meaning as in the `add` command (they change the modifier used when the range is missing or a tag, and are ignored when the range is explicitly set).\n\n Generally you can see `yarn up` as a counterpart to what was `yarn upgrade --latest` in Yarn 1 (ie it ignores the ranges previously listed in your manifests), but unlike `yarn upgrade` which only upgraded dependencies in the current workspace, `yarn up` will upgrade all workspaces at the same time.\n\n This command accepts glob patterns as arguments (if valid Descriptors and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n **Note:** The ranges have to be static, only the package scopes and names can contain glob patterns.\n ",examples:[["Upgrade all instances of lodash to the latest release","$0 up lodash"],["Upgrade all instances of lodash to the latest release, but ask confirmation for each","$0 up lodash -i"],["Upgrade all instances of lodash to 1.2.3","$0 up lodash@1.2.3"],["Upgrade all instances of packages with the `@babel` scope to the latest release","$0 up '@babel/*'"],["Upgrade all instances of packages containing the word `jest` to the latest release","$0 up '*jest*'"],["Upgrade all instances of packages with the `@babel` scope to 7.0.0","$0 up '@babel/*@7.0.0'"]]}),Tc.schema=[lE.hasKeyRelationship("recursive",lE.KeyRelationship.Forbids,["interactive","exact","tilde","caret"],{ignore:[void 0,!1]})];var c9=Tc;var vf=class extends ye{constructor(){super(...arguments);this.recursive=U.Boolean("-R,--recursive",!1,{description:"List, for each workspace, what are all the paths that lead to the dependency"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.peers=U.Boolean("--peers",!1,{description:"Also print the peer dependencies that match the specified name"});this.package=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState();let n=S.parseIdent(this.package).identHash,s=this.recursive?cve(r,n,{configuration:e,peers:this.peers}):lve(r,n,{configuration:e,peers:this.peers});Fn.emitTree(s,{configuration:e,stdout:this.context.stdout,json:this.json,separators:1})}};vf.paths=[["why"]],vf.usage=Ae.Usage({description:"display the reason why a package is needed",details:`
This command prints the exact reasons why a package appears in the dependency tree.
If \`-R,--recursive\` is set, the listing will go in depth and will list, for each workspaces, what are all the paths that lead to the dependency. Note that the display is somewhat optimized in that it will not print the package listing twice for a single package, so if you see a leaf named "Foo" when looking for "Bar", it means that "Foo" already got printed higher in the tree.
`,examples:[["Explain why lodash is used in your project","$0 why lodash"]]});var g9=vf;function lve(t,e,{configuration:r,peers:i}){let n=he.sortMap(t.storedPackages.values(),a=>S.stringifyLocator(a)),s={},o={children:s};for(let a of n){let l={},c=null;for(let g of a.dependencies.values()){if(!i&&a.peerDependencies.has(g.identHash))continue;let u=t.storedResolutions.get(g.descriptorHash);if(!u)throw new Error("Assertion failed: The resolution should have been registered");let h=t.storedPackages.get(u);if(!h)throw new Error("Assertion failed: The package should have been registered");if(h.identHash!==e)continue;if(c===null){let d=S.stringifyLocator(a);s[d]={value:[a,se.Type.LOCATOR],children:l}}let f=S.stringifyLocator(h);l[f]={value:[{descriptor:g,locator:h},se.Type.DEPENDENT]}}}return o}function cve(t,e,{configuration:r,peers:i}){let n=he.sortMap(t.workspaces,h=>S.stringifyLocator(h.anchoredLocator)),s=new Set,o=new Set,a=h=>{if(s.has(h.locatorHash))return o.has(h.locatorHash);if(s.add(h.locatorHash),h.identHash===e)return o.add(h.locatorHash),!0;let f=!1;h.identHash===e&&(f=!0);for(let d of h.dependencies.values()){if(!i&&h.peerDependencies.has(d.identHash))continue;let m=t.storedResolutions.get(d.descriptorHash);if(!m)throw new Error("Assertion failed: The resolution should have been registered");let I=t.storedPackages.get(m);if(!I)throw new Error("Assertion failed: The package should have been registered");a(I)&&(f=!0)}return f&&o.add(h.locatorHash),f};for(let h of n){let f=t.storedPackages.get(h.anchoredLocator.locatorHash);if(!f)throw new Error("Assertion failed: The package should have been registered");a(f)}let l=new Set,c={},g={children:c},u=(h,f,d)=>{if(!o.has(h.locatorHash))return;let m=d!==null?se.tuple(se.Type.DEPENDENT,{locator:h,descriptor:d}):se.tuple(se.Type.LOCATOR,h),I={},w={value:m,children:I},B=S.stringifyLocator(h);if(f[B]=w,!l.has(h.locatorHash)&&(l.add(h.locatorHash),!(d!==null&&t.tryWorkspaceByLocator(h))))for(let P of h.dependencies.values()){if(!i&&h.peerDependencies.has(P.identHash))continue;let k=t.storedResolutions.get(P.descriptorHash);if(!k)throw new Error("Assertion failed: The resolution should have been registered");let M=t.storedPackages.get(k);if(!M)throw new Error("Assertion failed: The package should have been registered");u(M,I,P)}};for(let h of n){let f=t.storedPackages.get(h.anchoredLocator.locatorHash);if(!f)throw new Error("Assertion failed: The package should have been registered");u(f,c,null)}return g}var Ff=class extends ye{constructor(){super(...arguments);this.verbose=U.Boolean("-v,--verbose",!1,{description:"Also return the cross-dependencies between workspaces"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r}=await xe.find(e,this.context.cwd);return(await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async n=>{for(let s of r.workspaces){let{manifest:o}=s,a;if(this.verbose){let l=new Set,c=new Set;for(let g of Ge.hardDependencies)for(let[u,h]of o.getForScope(g)){let f=r.tryWorkspaceByDescriptor(h);f===null?r.workspacesByIdent.has(u)&&c.add(h):l.add(f)}a={workspaceDependencies:Array.from(l).map(g=>g.relativeCwd),mismatchedWorkspaceDependencies:Array.from(c).map(g=>S.stringifyDescriptor(g))}}n.reportInfo(null,`${s.relativeCwd}`),n.reportJson({location:s.relativeCwd,name:o.name?S.stringifyIdent(o.name):null,...a})}})).exitCode()}};Ff.paths=[["workspaces","list"]],Ff.usage=Ae.Usage({category:"Workspace-related commands",description:"list all available workspaces",details:"\n This command will print the list of all workspaces in the project. If both the `-v,--verbose` and `--json` options are set, Yarn will also return the cross-dependencies between each workspaces (useful when you wish to automatically generate Buck / Bazel rules).\n "});var u9=Ff;var Rf=class extends Ae{constructor(){super(...arguments);this.workspaceName=U.String();this.commandName=U.String();this.args=U.Proxy()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);let n=r.workspaces,s=new Map(n.map(a=>{let l=S.convertToIdent(a.locator);return[S.stringifyIdent(l),a]})),o=s.get(this.workspaceName);if(o===void 0){let a=Array.from(s.keys()).sort();throw new UsageError(`Workspace '${this.workspaceName}' not found. Did you mean any of the following:
- ${a.join(`
- `)}?`)}return this.cli.run([this.commandName,...this.args],{cwd:o.cwd})}};Rf.paths=[["workspace"]],Rf.usage=Ae.Usage({category:"Workspace-related commands",description:"run a command within the specified workspace",details:`
This command will run a given sub-command on a single workspace.
`,examples:[["Add a package to a single workspace","yarn workspace components add -D react"],["Run build script on a single workspace","yarn workspace components run build"]]});var h9=Rf;var gve={configuration:{enableImmutableInstalls:{description:"If true (the default on CI), prevents the install command from modifying the lockfile",type:ae.BOOLEAN,default:f9.isCI},defaultSemverRangePrefix:{description:"The default save prefix: '^', '~' or ''",type:ae.STRING,values:["^","~",""],default:QA.CARET}},commands:[qz,Wz,fV,QV,A9,WV,qV,u9,FV,RV,NV,LV,jz,Gz,bV,xV,MV,KV,TV,UV,HV,jV,e9,ZV,t9,GV,r9,i9,n9,o9,a9,c9,g9,h9]},uve=gve;var LP={};We(LP,{default:()=>fve});var gi={optional:!0},p9=[["@samverschueren/stream-to-observable@<0.3.1",{peerDependenciesMeta:{rxjs:gi,zenObservable:gi}}],["any-observable@<0.5.1",{peerDependenciesMeta:{rxjs:gi,zenObservable:gi}}],["@pm2/agent@<1.0.4",{dependencies:{debug:"*"}}],["debug@<4.2.0",{peerDependenciesMeta:{["supports-color"]:gi}}],["got@<11",{dependencies:{["@types/responselike"]:"^1.0.0",["@types/keyv"]:"^3.1.1"}}],["cacheable-lookup@<4.1.2",{dependencies:{["@types/keyv"]:"^3.1.1"}}],["http-link-dataloader@*",{peerDependencies:{graphql:"^0.13.1 || ^14.0.0"}}],["typescript-language-server@*",{dependencies:{["vscode-jsonrpc"]:"^5.0.1",["vscode-languageserver-protocol"]:"^3.15.0"}}],["postcss-syntax@*",{peerDependenciesMeta:{["postcss-html"]:gi,["postcss-jsx"]:gi,["postcss-less"]:gi,["postcss-markdown"]:gi,["postcss-scss"]:gi}}],["jss-plugin-rule-value-function@<=10.1.1",{dependencies:{["tiny-warning"]:"^1.0.2"}}],["ink-select-input@<4.1.0",{peerDependencies:{react:"^16.8.2"}}],["promise-inflight@*",{peerDependenciesMeta:{bluebird:gi}}],["reactcss@*",{peerDependencies:{react:"*"}}],["react-color@<=2.19.0",{peerDependencies:{react:"*"}}],["gatsby-plugin-i18n@*",{dependencies:{ramda:"^0.24.1"}}],["useragent@^2.0.0",{dependencies:{request:"^2.88.0",yamlparser:"0.0.x",semver:"5.5.x"}}],["@apollographql/apollo-tools@*",{peerDependencies:{graphql:"^14.2.1 || ^15.0.0"}}],["material-table@^2.0.0",{dependencies:{"@babel/runtime":"^7.11.2"}}],["@babel/parser@*",{dependencies:{"@babel/types":"^7.8.3"}}],["fork-ts-checker-webpack-plugin@*",{peerDependencies:{eslint:">= 6",typescript:">= 2.7",webpack:">= 4","vue-template-compiler":"*"},peerDependenciesMeta:{eslint:gi,"vue-template-compiler":gi}}],["rc-animate@<=3.1.1",{peerDependencies:{react:">=16.9.0","react-dom":">=16.9.0"}}],["react-bootstrap-table2-paginator@*",{dependencies:{classnames:"^2.2.6"}}],["react-draggable@<=4.4.3",{peerDependencies:{react:">= 16.3.0","react-dom":">= 16.3.0"}}],["apollo-upload-client@<14",{peerDependencies:{graphql:"14 - 15"}}],["react-instantsearch-core@<=6.7.0",{peerDependencies:{algoliasearch:">= 3.1 < 5"}}],["react-instantsearch-dom@<=6.7.0",{dependencies:{"react-fast-compare":"^3.0.0"}}],["ws@<7.2.1",{peerDependencies:{bufferutil:"^4.0.1","utf-8-validate":"^5.0.2"},peerDependenciesMeta:{bufferutil:gi,"utf-8-validate":gi}}],["react-portal@*",{peerDependencies:{"react-dom":"^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"}}],["react-scripts@<=4.0.1",{peerDependencies:{react:"*"}}],["testcafe@<=1.10.1",{dependencies:{"@babel/plugin-transform-for-of":"^7.12.1","@babel/runtime":"^7.12.5"}}],["testcafe-legacy-api@<=4.2.0",{dependencies:{"testcafe-hammerhead":"^17.0.1","read-file-relative":"^1.2.0"}}],["@google-cloud/firestore@<=4.9.3",{dependencies:{protobufjs:"^6.8.6"}}],["gatsby-source-apiserver@*",{dependencies:{["babel-polyfill"]:"^6.26.0"}}],["@webpack-cli/package-utils@<=1.0.1-alpha.4",{dependencies:{["cross-spawn"]:"^7.0.3"}}],["gatsby-remark-prismjs@<3.3.28",{dependencies:{lodash:"^4"}}],["gatsby-plugin-favicon@*",{peerDependencies:{webpack:"*"}}],["gatsby-plugin-sharp@*",{dependencies:{debug:"^4.3.1"}}],["gatsby-react-router-scroll@*",{dependencies:{["prop-types"]:"^15.7.2"}}],["@rebass/forms@*",{dependencies:{["@styled-system/should-forward-prop"]:"^5.0.0"},peerDependencies:{react:"^16.8.6"}}],["rebass@*",{peerDependencies:{react:"^16.8.6"}}]];var FP;function d9(){return typeof FP=="undefined"&&(FP=require("zlib").brotliDecompressSync(Buffer.from("G7weAByFTVk3Vs7UfHhq4yykgEM7pbW7TI43SG2S5tvGrwHBAzdz+s/npQ6tgEvobvxisrPIadkXeUAJotBn5bDZ5kAhcRqsIHe3F75Walet5hNalwgFDtxb0BiDUjiUQkjG0yW2hto9HPgiCkm316d6bC0kST72YN7D7rfkhCE9x4J0XwB0yavalxpUu2t9xszHrmtwalOxT7VslsxWcB1qpqZwERUra4psWhTV8BgwWeizurec82Caf1ABL11YMfbf8FJ9JBceZOkgmvrQPbC9DUldX/yMbmX06UQluCEjSwUoyO+EZPIjofr+/oAZUck2enraRD+oWLlnlYnj8xB+gwSo9lmmks4fXv574qSqcWA6z21uYkzMu3EWj+K23RxeQlLqiE35/rC8GcS4CGkKHKKq+zAIQwD9iRDNfiAqueLLpicFFrNsAI4zeTD/eO9MHcnRa5m8UT+M2+V+AkFST4BlKneiAQRSdST8KEAIyFlULt6wa9EBd0Ds28VmpaxquJdVt+nwdEs5xUskI13OVtFyY0UrQIRAlCuvvWivvlSKQfTO+2Q8OyUR1W5RvetaPz4jD27hdtwHFFA1Ptx6Ee/t2cY2rg2G46M1pNDRf2pWhvpy8pqMnuI3++4OF3+7OFIWXGjh+o7Nr2jNvbiYcQdQS1h903/jVFgOpA0yJ78z+x759bFA0rq+6aY5qPB4FzS3oYoLupDUhD9nDz6F6H7hpnlMf18KNKDu4IKjTWwrAnY6MFQw1W6ymOALHlFyCZmQhldg1MQHaMVVQTVgDC60TfaBqG++Y8PEoFhN/PBTZT175KNP/BlHDYGOOBmnBdzqJKplZ/ljiVG0ZBzfqeBRrrUkn6rA54462SgiliKoY Line truncated
`),await L.writeFilePromise(D.join(r,"yarn.lock"),"");let i=D.join(r,".yarnrc.yml"),n=await oe.findProjectCwd(this.context.cwd,dt.lockfile),s=!(await oe.find(this.context.cwd,null,{strict:!1})).get("enableGlobalCache"),o=n!==null?D.join(n,".yarnrc.yml"):null;o!==null&&L.existsSync(o)?(await L.copyFilePromise(o,i),await oe.updateConfiguration(r,m=>{let I={...m,enableGlobalCache:s,enableTelemetry:!1};return Array.isArray(m.plugins)&&(I.plugins=m.plugins.map(w=>{let B=typeof w=="string"?w:w.path,P=npath.isAbsolute(B)?B:npath.resolve(npath.fromPortablePath(n),B);return typeof w=="string"?P:{path:P,spec:w.spec}})),I})):await L.writeFilePromise(i,`enableGlobalCache: ${s}
enableTelemetry: false
`);let a=(d=this.packages)!=null?d:[this.command],l=S.parseDescriptor(this.command).name,c=await this.cli.run(["add","--",...a],{cwd:r,quiet:this.quiet});if(c!==0)return c;this.quiet||this.context.stdout.write(`
`);let g=await oe.find(r,this.context.plugins),{project:u,workspace:h}=await xe.find(g,r);if(h===null)throw new ze(u.cwd,r);await u.restoreInstallState();let f=await bt.getWorkspaceAccessibleBinaries(h);return f.has(l)===!1&&f.size===1&&typeof this.packages=="undefined"&&(l=Array.from(f)[0][0]),await bt.executeWorkspaceAccessibleBinary(h,l,this.args,{packageAccessibleBinaries:f,cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})})}};Nf.paths=[["dlx"]],Nf.usage=Ae.Usage({description:"run a package in a temporary environment",details:"\n This command will install a package within a temporary environment, and run its binary script if it contains any. The binary will run within the current cwd.\n\n By default Yarn will download the package named `command`, but this can be changed through the use of the `-p,--package` flag which will instruct Yarn to still run the same command but from a different package.\n\n Using `yarn dlx` as a replacement of `yarn add` isn't recommended, as it makes your project non-deterministic (Yarn doesn't keep track of the packages installed through `dlx` - neither their name, nor their version).\n ",examples:[["Use create-react-app to create a new React app","yarn dlx create-react-app ./my-app"]]});var y9=Nf;var pve={commands:[E9,y9]},dve=pve;var qP={};We(qP,{default:()=>Ive,fileUtils:()=>KP});var Uc=/^(?:[a-zA-Z]:[\\/]|\.{0,2}\/)/,Lf=/^[^?]*\.(?:tar\.gz|tgz)(?:::.*)?$/,ur="file:";var KP={};We(KP,{makeArchiveFromLocator:()=>gE,makeBufferFromLocator:()=>UP,makeLocator:()=>TP,makeSpec:()=>B9,parseSpec:()=>OP});function OP(t){let{params:e,selector:r}=S.parseRange(t),i=npath.toPortablePath(r);return{parentLocator:e&&typeof e.locator=="string"?S.parseLocator(e.locator):null,path:i}}function B9({parentLocator:t,path:e,folderHash:r,protocol:i}){let n=t!==null?{locator:S.stringifyLocator(t)}:{},s=typeof r!="undefined"?{hash:r}:{};return S.makeRange({protocol:i,source:e,selector:e,params:{...s,...n}})}function TP(t,{parentLocator:e,path:r,folderHash:i,protocol:n}){return S.makeLocator(t,B9({parentLocator:e,path:r,folderHash:i,protocol:n}))}async function gE(t,{protocol:e,fetchOptions:r,inMemory:i=!1}){let{parentLocator:n,path:s}=S.parseFileStyleRange(t.reference,{protocol:e}),o=D.isAbsolute(s)?{packageFs:new It(me.root),prefixPath:me.dot,localPath:me.root}:await r.fetcher.fetch(n,r),a=o.localPath?{packageFs:new It(me.root),prefixPath:D.relative(me.root,o.localPath)}:o;o!==a&&o.releaseFs&&o.releaseFs();let l=a.packageFs,c=D.join(a.prefixPath,s);return await he.releaseAfterUseAsync(async()=>await Cr.makeArchiveFromDirectory(c,{baseFs:l,prefixPath:S.getIdentVendorPath(t),compressionLevel:r.project.configuration.get("compressionLevel"),inMemory:i}),a.releaseFs)}async function UP(t,{protocol:e,fetchOptions:r}){return(await gE(t,{protocol:e,fetchOptions:r,inMemory:!0})).getBufferAndClose()}var YP=class{supports(e,r){return!!e.reference.startsWith(ur)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:ur});if(D.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:D.resolve(s,n)}async fetch(e,r){let i=r.checksums.get(e.locatorHash)||null,[n,s,o]=await r.cache.fetchPackageFromCache(e,i,{onHit:()=>r.report.reportCacheHit(e),onMiss:()=>r.report.reportCacheMiss(e,`${S.prettyLocator(r.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.fetchFromDisk(e,r),skipIntegrityCheck:r.skipIntegrityCheck});return{packageFs:n,releaseFs:s,prefixPath:S.getIdentVendorPath(e),localPath:this.getLocalPath(e,r),checksum:o}}async fetchFromDisk(e,r){return gE(e,{protocol:ur,fetchOptions:r})}};var Cve=1,HP=class{supportsDescriptor(e,r){return e.range.match(Uc)?!0:!!e.range.startsWith(ur)}supportsLocator(e,r){return!!e.reference.startsWith(ur)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return Uc.test(e.range)&&(e=S.makeDescriptor(e,`${ur}${e.range}`)),S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{path:n,parentLocator:s}=OP(e.range);if(s===null)throw new Error("Assertion failed: The descriptor should have been bound");let o=await UP(S.makeLocator(e,S.makeRange({protocol:ur,source:n,selector:n,params:{locator:S.stringifyLocator(s)}})),{protocol:ur,fetchOptions:i.fetchOptions}),a=Dn.makeHash(`${Cve}`,o).slice(0,6);return[TP(e,{parentLocator:s,path:n,folderHash:a,protocol:ur})]}async getSatisfying(e,r,i){return null}async resolve(e,r){if(!r.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await r.fetchOptions.fetcher.fetch(e,r.fetchOptions),n=await he.releaseAfterUseAsync(async()=>await Ge.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return{...e,version:n.version||"0.0. Line truncated
`);let s=["--assume-fresh-project"];return this.private&&s.push("-p"),this.workspace&&s.push("-w"),this.yes&&s.push("-y"),await L.mktempPromise(async o=>{let{code:a}=await Ir.pipevp("yarn",["init",...s],{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,env:await bt.makeScriptEnv({binFolder:o})});return a})}async executeRegular(e){let r=null;if(!this.assumeFreshProject)try{r=await xe.find(e,this.context.cwd)}catch{r=null}L.existsSync(this.context.cwd)||await L.mkdirPromise(this.context.cwd,{recursive:!0});let i=new Ge,n=Object.fromEntries(e.get("initFields").entries());i.load(n),i.name=S.makeIdent(e.get("initScope"),D.basename(this.context.cwd)),i.private=this.private||this.workspace,this.workspace&&(await L.mkdirPromise(D.join(this.context.cwd,"packages"),{recursive:!0}),i.workspaceDefinitions=[{pattern:"packages/*"}]);let s={};i.exportTo(s),sx.inspect.styles.name="cyan",this.context.stdout.write(`${sx.inspect(s,{depth:Infinity,colors:!0,compact:!1})}
`);let o=D.join(this.context.cwd,Ge.fileName);await L.changeFilePromise(o,`${JSON.stringify(s,null,2)}
`);let a=D.join(this.context.cwd,"README.md");if(L.existsSync(a)||await L.writeFilePromise(a,`# ${S.stringifyIdent(i.name)}
`),!r){let l=D.join(this.context.cwd,dt.lockfile);await L.writeFilePromise(l,"");let g=["/.yarn/*","!/.yarn/patches","!/.yarn/plugins","!/.yarn/releases","!/.yarn/sdks","","# Swap the comments on the following lines if you don't wish to use zero-installs","# Documentation here: https://yarnpkg.com/features/zero-installs","!/.yarn/cache","#/.pnp.*"].map(m=>`${m}
`).join(""),u=D.join(this.context.cwd,".gitignore");L.existsSync(u)||await L.writeFilePromise(u,g);let h={["*"]:{endOfLine:"lf",insertFinalNewline:!0},["*.{js,json,yml}"]:{charset:"utf-8",indentStyle:"space",indentSize:2}};oX.default(h,e.get("initEditorConfig"));let f=`root = true
`;for(let[m,I]of Object.entries(h)){f+=`
[${m}]
`;for(let[w,B]of Object.entries(I))f+=`${w.replace(/[A-Z]/g,k=>`_${k.toLowerCase()}`)} = ${B}
`}let d=D.join(this.context.cwd,".editorconfig");L.existsSync(d)||await L.writeFilePromise(d,f),await Ir.execvp("git",["init"],{cwd:this.context.cwd})}}};Yf.paths=[["init"]],Yf.usage=Ae.Usage({description:"create a new package",details:"\n This command will setup a new package in your local directory.\n\n If the `-p,--private` or `-w,--workspace` options are set, the package will be private by default.\n\n If the `-w,--workspace` option is set, the package will be configured to accept a set of workspaces in the `packages/` directory.\n\n If the `-i,--install` option is given a value, Yarn will first download it using `yarn set version` and only then forward the init call to the newly downloaded bundle. Without arguments, the downloaded bundle will be `latest`.\n\n The initial settings of the manifest can be changed by using the `initScope` and `initFields` configuration values. Additionally, Yarn will generate an EditorConfig file whose rules can be altered via `initEditorConfig`, and will initialize a Git repository in the current directory.\n ",examples:[["Create a new package in the local directory","yarn init"],["Create a new private package in the local directory","yarn init -p"],["Create a new package and store the Yarn release inside","yarn init -i=latest"],["Create a new private package and defines it as a workspace root","yarn init -w"]]});var aX=Yf;var kFe={configuration:{initScope:{description:"Scope used when creating packages via the init command",type:ae.STRING,default:null},initFields:{description:"Additional fields to set when creating packages via the init command",type:ae.MAP,valueDefinition:{description:"",type:ae.ANY}},initEditorConfig:{description:"Extra rules to define in the generator editorconfig",type:ae.MAP,valueDefinition:{description:"",type:ae.ANY}}},commands:[aX]},vFe=kFe;var gx={};We(gx,{default:()=>RFe});var Vs="portal:",Xs="link:";var ax=class{supports(e,r){return!!e.reference.startsWith(Vs)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Vs});if(D.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:D.resolve(s,n)}async fetch(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Vs}),s=D.isAbsolute(n)?{packageFs:new It(me.root),prefixPath:me.dot,localPath:me.root}:await r.fetcher.fetch(i,r),o=s.localPath?{packageFs:new It(me.root),prefixPath:D.relative(me.root,s.localPath)}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=D.join(o.prefixPath,n);return s.localPath?{packageFs:new It(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:me.dot,localPath:l}:{packageFs:new Is(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:me.dot}}};var Ax=class{supportsDescriptor(e,r){return!!e.range.startsWith(Vs)}supportsLocator(e,r){return!!e.reference.startsWith(Vs)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){let n=e.range.slice(Vs.length);return[S.makeLocator(e,`${Vs}${npath.toPortablePath(n)}`)]}async getSatisfying(e,r,i){return null}async resolve(e,r){if(!r.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await r.fetchOptions.fetcher.fetch(e,r.fetchOptions),n=await he.releaseAfterUseAsync(async()=>await Ge.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return{...e,version:n.version||"0.0.0",languageName:r.project.configuration.get("defaultLanguageName"),linkType:At.SOFT,dependencies:new Map([...n.dependencies]),peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin}}};var lx=class{supports(e,r){return!!e.reference.startsWith(Xs)}getLocalPath(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Xs});if(D.isAbsolute(n))return n;let s=r.fetcher.getLocalPath(i,r);return s===null?null:D.resolve(s,n)}async fetch(e,r){let{parentLocator:i,path:n}=S.parseFileStyleRange(e.reference,{protocol:Xs}),s=D.isAbsolute(n)?{packageFs:new It(me.root),prefixPath:me.dot,localPath:me.root}:await r.fetcher.fetch(i,r),o=s.localPath?{packageFs:new It(me.root),prefixPath:D.relative(me.root,s.localPath)}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=D.join(o.prefixPath,n);return s.localPath?{packageFs:new It(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:me.dot,discardFromLookup:!0,localPath:l}:{packageFs:new Is(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:me.dot,discardFromLookup:!0}}};var cx=class{supportsDescriptor(e,r){return!!e.range.startsWith(Xs)}supportsLocator(e,r){return!!e.reference.startsWith(Xs)}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){return S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){return[]}async getCandidates(e,r,i){let n=e.range.slice(Xs.length);return[S.makeLocator(e,`${Xs}${npath.toPortablePath(n)}`)]}asyn Line truncated
${g}, next tree:
${Hf(a)}`);let h=cX(a);if(h)throw new Error(`${h}, after hoisting finished:
${Hf(a)}`)}return s.debugLevel>=2&&console.log(Hf(a)),LFe(a)},MFe=t=>{let e=t[t.length-1],r=new Map,i=new Set,n=s=>{if(!i.has(s)){i.add(s);for(let o of s.hoistedDependencies.values())r.set(o.name,o);for(let o of s.dependencies.values())s.peerNames.has(o.name)||n(o)}};return n(e),r},KFe=t=>{let e=t[t.length-1],r=new Map,i=new Set,n=new Map;for(let a of t)for(let l of a.dependencies.values())n.set(l.name,l);let s=new Set,o=(a,l)=>{if(i.has(a))return;i.add(a);for(let g of a.hoistedDependencies.values())if(!l.has(g.name)){let u=n.get(g.name);r.set(u.name,u)}let c=new Set;for(let g of a.dependencies.values())c.add(g.name);for(let g of a.dependencies.values())a.peerNames.has(g.name)||o(g,c)};return o(e,s),r},uX=(t,e)=>{if(e.decoupled)return e;let{name:r,references:i,ident:n,locator:s,dependencies:o,originalDependencies:a,hoistedDependencies:l,peerNames:c,reasons:g,isHoistBorder:u}=e,h={name:r,references:new Set(i),ident:n,locator:s,dependencies:new Map(o),originalDependencies:new Map(a),hoistedDependencies:new Map(l),peerNames:new Set(c),reasons:new Map(g),decoupled:!0,isHoistBorder:u,hoistedFrom:[]},f=h.dependencies.get(r);return f&&f.ident==h.ident&&h.dependencies.set(r,h),t.dependencies.set(h.name,h),h},OFe=(t,e)=>{let r=new Map([[t.name,[t.ident]]]);for(let n of t.dependencies.values())t.peerNames.has(n.name)||r.set(n.name,[n.ident]);let i=Array.from(e.keys());i.sort((n,s)=>{let o=e.get(n),a=e.get(s);return a.peerDependents.size!==o.peerDependents.size?a.peerDependents.size-o.peerDependents.size:a.dependents.size-o.dependents.size});for(let n of i){let s=n.substring(0,n.indexOf("@",1)),o=n.substring(s.length+1);if(!t.peerNames.has(s)){let a=r.get(s);a||(a=[],r.set(s,a)),a.indexOf(o)<0&&a.push(o)}}return r},dx=t=>{let e=new Set,r=(i,n=new Set)=>{if(!n.has(i)){n.add(i);for(let s of i.peerNames)if(!t.peerNames.has(s)){let o=t.dependencies.get(s);o&&!e.has(o)&&r(o,n)}e.add(i)}};for(let i of t.dependencies.values())t.peerNames.has(i.name)||r(i);return e},px=(t,e,r,i,n,s=new Set)=>{let o=e[e.length-1];if(s.has(o))return{anotherRoundNeeded:!1,isGraphChanged:!1};s.add(o);let a=UFe(o),l=OFe(o,a),c=t==o?new Map:n.fastLookupPossible?MFe(e):KFe(e),g,u=!1,h=!1,f=new Map(Array.from(l.entries()).map(([m,I])=>[m,I[0]])),d=new Map;do{let m=TFe(t,e,r,c,f,l,i,d,n);m.isGraphChanged&&(h=!0),m.anotherRoundNeeded&&(u=!0),g=!1;for(let[I,w]of l)w.length>1&&!o.dependencies.has(I)&&(f.delete(I),w.shift(),f.set(I,w[0]),g=!0)}while(g);for(let m of o.dependencies.values())if(!o.peerNames.has(m.name)&&!r.has(m.locator)){r.add(m.locator);let I=px(t,[...e,m],r,d,n);I.isGraphChanged&&(h=!0),I.anotherRoundNeeded&&(u=!0),r.delete(m.locator)}return{anotherRoundNeeded:u,isGraphChanged:h}},YFe=(t,e,r,i,n,s,o,a,{outputReason:l})=>{let c,g=null,u=new Set;l&&(c=`${Array.from(e).map(m=>Di(m)).join("\u2192")}`);let h=r[r.length-1],d=!(i.ident===h.ident);if(l&&!d&&(g="- self-reference"),d&&(d=!t.peerNames.has(i.name),l&&!d&&(g=`- cannot shadow peer: ${Di(t.originalDependencies.get(i.name).locator)} at ${c}`)),d){let m=!1,I=n.get(i.name);if(m=!I||I.ident===i.ident,l&&!m&&(g=`- filled by: ${Di(I.locator)} at ${c}`),m)for(let w=r.length-1;w>=1;w--){let P=r[w].dependencies.get(i.name);if(P&&P.ident!==i.ident){m=!1;let k=a.get(h);k||(k=new Set,a.set(h,k)),k.add(i.name),l&&(g=`- filled by ${Di(P.locator)} at ${r.slice(0,w).map(M=>Di(M.locator)).join("\u2192")}`);break}}d=m}if(d&&(d=s.get(i.name)===i.ident,l&&!d&&(g=`- filled by: ${Di(o.get(i.name)[0])} at ${c}`)),d){let m=!0,I=new Set(i.peerNames);for(let w=r.length-1;w>=1;w--){let B=r[w];for(let P of I){if(B.peerNames.has(P)&&B.originalDependencies.has(P))continue;let k=B.dependencies.get(P);k&&t.dependencies.get(P)!==k&&(w===r.length-1?u.add(k):(u=null,m=!1,l&&(g=`- peer dependency ${Di(k.locator)} from parent ${Di(B.locator)} was not hoisted to ${c}`))),I.delete(P)}if(!m)break}d=m}return u!==null&&u.size>0?{isHoistable:2,dependsOn:u,reason:g}:{isHoistable:d?0:1,reason:g}},TFe=(t,e,r,i,n,s,o,a,l)=>{let c=e[e.length-1],g=new Set,u=!1,h=!1,f=(I,w,B,P)=>{if(g.has(B))return;let k=[...w,B.locator],M=new Map,Y=new Map;for(let R of dx(B)){let A=YFe(c,r,[c,...I,B],R,i,n,s,a,{outputReason:l.debugLevel>=2});if(Y.set(R,A),A.isHoistable===2)for(let G of A.dependsOn){let re=M.get(G.name)||new Set;re.add(R.name),M.set(G.name,re)}}let v=new Set,J=(R,A,G)=>{if(!v.has(R)){v.add(R),Y.set(R,{isHoistable:1,reason:G});for(let re of M.get(R.name)||[])J(B.dependencies.get(re),A,l.debugLevel>=2?`- peer dependency ${Di(R.locator)} from parent ${Di(B.locator)} was not hoisted`:"")}};for(let[R,A]of Y)A.isHoistable===1&&J(R,A,A.reason);for(let R of Y.keys())if(!v.has(R)){h=!0;let A=o.get(B);A&&A.has(R.name)&&(u=!0),B.dependencies.delete(R.name),B.hoistedDependencies.set(R.name,R),B.reasons.delete(R.name);let G=c.dependencies.get(R.name),re=null;if(l.debugLevel>=2&&(re=Array.from(w).concat([B.locator]).map(Z=>Di(Z)).join("\u2192")),!G)c.ident!==R.ident&&(c.dependencies.set(R.name,R),l.debugLevel>=2&&R.hoistedFrom.push(re),P.add(R));el Line truncated
${Hf(t)}`)}let _=dx(B);for(let R of _)if(v.has(R)){let A=Y.get(R);if((n.get(R.name)===R.ident||!B.reasons.has(R.name))&&A.isHoistable!==0&&B.reasons.set(R.name,A.reason),!R.isHoistBorder&&k.indexOf(R.locator)<0){g.add(B);let re=uX(B,R);f([...I,B],[...w,B.locator],re,m),g.delete(B)}}},d,m=new Set(dx(c));do{d=m,m=new Set;for(let I of d){if(I.locator===c.locator||I.isHoistBorder)continue;let w=uX(c,I);f([],Array.from(r),w,m)}}while(m.size>0);return{anotherRoundNeeded:u,isGraphChanged:h}},cX=t=>{let e=[],r=new Set,i=new Set,n=(s,o)=>{if(r.has(s)||(r.add(s),i.has(s)))return;let a=new Map(o);for(let l of s.dependencies.values())s.peerNames.has(l.name)||a.set(l.name,l);for(let l of s.originalDependencies.values()){let c=a.get(l.name),g=()=>`${Array.from(i).concat([s]).map(u=>Di(u.locator)).join("\u2192")}`;if(s.peerNames.has(l.name)){let u=o.get(l.name);(u!==c||!u||u.ident!==l.ident)&&e.push(`${g()} - broken peer promise: expected ${l.ident} but found ${u&&u.ident}`)}else c?c.ident!==l.ident&&e.push(`${g()} - broken require promise for ${l.name}: expected ${l.ident}, but found: ${c.ident}`):e.push(`${g()} - broken require promise: no required dependency ${l.locator} found`)}i.add(s);for(let l of s.dependencies.values())s.peerNames.has(l.name)||n(l,a);i.delete(s)};return n(t,t.dependencies),e.join(`
`)},NFe=(t,e)=>{let{identName:r,name:i,reference:n,peerNames:s}=t,o={name:i,references:new Set([n]),locator:fx(r,n),ident:lX(r,n),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(s),reasons:new Map,decoupled:!0,isHoistBorder:!0,hoistedFrom:[]},a=new Map([[t,o]]),l=(c,g)=>{let u=a.get(c),h=!!u;if(!u){let{name:f,identName:d,reference:m,peerNames:I}=c,w=e.hoistingLimits.get(g.locator);u={name:f,references:new Set([m]),locator:fx(d,m),ident:lX(d,m),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(I),reasons:new Map,decoupled:!0,isHoistBorder:w?w.has(f):!1,hoistedFrom:[]},a.set(c,u)}if(g.dependencies.set(c.name,u),g.originalDependencies.set(c.name,u),h){let f=new Set,d=m=>{if(!f.has(m)){f.add(m),m.decoupled=!1;for(let I of m.dependencies.values())m.peerNames.has(I.name)||d(I)}};d(u)}else for(let f of c.dependencies)l(f,u)};for(let c of t.dependencies)l(c,o);return o},Cx=t=>t.substring(0,t.indexOf("@",1)),LFe=t=>{let e={name:t.name,identName:Cx(t.locator),references:new Set(t.references),dependencies:new Set},r=new Set([t]),i=(n,s,o)=>{let a=r.has(n),l;if(s===n)l=o;else{let{name:c,references:g,locator:u}=n;l={name:c,identName:Cx(u),references:g,dependencies:new Set}}if(o.dependencies.add(l),!a){r.add(n);for(let c of n.dependencies.values())n.peerNames.has(c.name)||i(c,n,l);r.delete(n)}};for(let n of t.dependencies.values())i(n,t,e);return e},UFe=t=>{let e=new Map,r=new Set([t]),i=o=>`${o.name}@${o.ident}`,n=o=>{let a=i(o),l=e.get(a);return l||(l={dependents:new Set,peerDependents:new Set},e.set(a,l)),l},s=(o,a)=>{let l=!!r.has(a);if(n(a).dependents.add(o.ident),!l){r.add(a);for(let g of a.dependencies.values())a.peerNames.has(g.name)?n(g).peerDependents.add(a.ident):s(a,g)}};for(let o of t.dependencies.values())t.peerNames.has(o.name)||s(t,o);return e},Di=t=>{let e=t.indexOf("@",1),r=t.substring(0,e);r.endsWith("$wsroot$")&&(r=`wh:${r.replace("$wsroot$","")}`);let i=t.substring(e+1);if(i==="workspace:.")return".";if(i){let n=(i.indexOf("#")>0?i.split("#")[1]:i).replace("npm:","");return i.startsWith("virtual")&&(r=`v:${r}`),n.startsWith("workspace")&&(r=`w:${r}`,n=""),`${r}${n?`@${n}`:""}`}else return`${r}`},hX=5e4,Hf=t=>{let e=0,r=(n,s,o="")=>{if(e>hX||s.has(n))return"";e++;let a=Array.from(n.dependencies.values()).sort((c,g)=>c.name.localeCompare(g.name)),l="";s.add(n);for(let c=0;c<a.length;c++){let g=a[c];if(!n.peerNames.has(g.name)&&g!==n){let u=n.reasons.get(g.name),h=Cx(g.locator);l+=`${o}${c<a.length-1?"\u251C\u2500":"\u2514\u2500"}${(s.has(g)?">":"")+(h!==g.name?`a:${g.name}:`:"")+Di(g.locator)+(u?` ${u}`:"")+(g!==n&&g.hoistedFrom.length>0?`, hoisted from: ${g.hoistedFrom.join(", ")}`:"")}
`,l+=r(g,s,`${o}${c<a.length-1?"\u2502 ":" "}`)}}return s.delete(n),l};return r(t,new Set)+(e>hX?`
Tree is too large, part of the tree has been dunped
`:"")};var Zo;(function(t){t.HARD="HARD",t.SOFT="SOFT"})(Zo||(Zo={}));var Ui;(function(t){t.WORKSPACES="workspaces",t.DEPENDENCIES="dependencies",t.NONE="none"})(Ui||(Ui={}));var fX="node_modules",hE="$wsroot$";var $o=(t,e)=>{let{packageTree:r,hoistingLimits:i,errors:n,preserveSymlinksRequired:s}=HFe(t,e),o=null;if(n.length===0){let a=gX(r,{hoistingLimits:i});o=jFe(t,a,e)}return{tree:o,errors:n,preserveSymlinksRequired:s}},ea=t=>`${t.name}@${t.reference}`,mx=t=>{let e=new Map;for(let[r,i]of t.entries())if(!i.dirList){let n=e.get(i.locator);n||(n={target:i.target,linkType:i.linkType,locations:[],aliases:i.aliases},e.set(i.locator,n)),n.locations.push(r)}for(let r of e.values())r.locations=r.locations.sort((i,n)=>{let s=i.split(D.delimiter).length,o=n.split(D.delimiter).length;return s!==o?o-s:n.localeCompare(i)});return e},HFe=(t,e)=>{let r=t.getDependencyTreeRoots(),i=[],n=!1,s=new Map,o=new Map,a=t.getPackageInformation(t.topLevel);if(a===null)throw new Error("Assertion failed: Expected the top-level package to have been registered");let l=t.findPackageLocator(a.packageLocation);if(l===null)throw new Error("Assertion failed: Expected the top-level package to have a physical locator");let c=npath.toPortablePath(a.packageLocation),g=ea(l);if(e.project){let m={children:new Map},I=e.project.cwd.split(D.sep);for(let[B,P]of e.project.workspacesByCwd){let k=B.split(D.sep).slice(I.length),M=m;for(let Y of k){let v=M.children.get(Y);v||(v={children:new Map},M.children.set(Y,v)),M=v}M.workspaceLocator={name:S.stringifyIdent(P.anchoredLocator),reference:P.anchoredLocator.reference}}let w=(B,P)=>{if(B.workspaceLocator){let k=ea(P),M=o.get(k);M||(M=new Set,o.set(k,M)),M.add(B.workspaceLocator)}for(let k of B.children.values())w(k,B.workspaceLocator||P)};for(let B of m.children.values())w(B,m.workspaceLocator)}else for(let m of r)if(m.name!==l.name||m.reference!==l.reference){let I=o.get(g);I||(I=new Set,o.set(g,I)),I.add(m)}let u={name:l.name,identName:l.name,reference:l.reference,peerNames:a.packagePeers,dependencies:new Set},h=new Map,f=(m,I)=>`${ea(I)}:${m}`,d=(m,I,w,B,P,k,M)=>{var G,re;let Y=f(m,w),v=h.get(Y),J=!!v;if(!J&&w.name===l.name&&w.reference===l.reference&&(v=u,h.set(Y,u)),I.linkType===Zo.SOFT&&e.project&&D.contains(e.project.cwd,npath.toPortablePath(I.packageLocation))===null){I.packageDependencies.size>0&&(n=!0);for(let[Z,T]of I.packageDependencies){let j=S.parseLocator(Array.isArray(T)?`${T[0]}@${T[1]}`:`${Z}@${T}`),Le=P.get(Z);if(Le){let ve=S.parseLocator(Array.isArray(Le)?`${Le[0]}@${Le[1]}`:`${Z}@${Le}`);S.areLocatorsEqual(ve,j)||i.push({messageName:q.NM_CANT_INSTALL_PORTAL,text:`Cannot link ${S.prettyIdent(e.project.configuration,S.parseIdent(w.name))} into ${S.prettyLocator(e.project.configuration,S.parseLocator(`${B.identName}@${B.reference}`))} dependency ${S.prettyLocator(e.project.configuration,j)} conflicts with parent dependency ${S.prettyLocator(e.project.configuration,ve)}`})}}}if(v||(v={name:m,identName:w.name,reference:w.reference,dependencies:new Set,peerNames:I.packagePeers},h.set(Y,v)),M){let Z=ea({name:B.identName,reference:B.reference}),T=s.get(Z)||new Set;s.set(Z,T),T.add(v.name)}let _=new Map(I.packageDependencies);if(e.project){let Z=e.project.workspacesByCwd.get(npath.toPortablePath(I.packageLocation.slice(0,-1)));if(Z){let T=new Set([...Array.from(Z.manifest.peerDependencies.values(),j=>S.stringifyIdent(j)),...Array.from(Z.manifest.peerDependenciesMeta.keys())]);for(let j of T)_.has(j)||(_.set(j,P.get(j)||null),v.peerNames.add(j))}}let R=ea(w),A=o.get(R);if(A)for(let Z of A)_.set(`${Z.name}${hE}`,Z.reference);if(B.dependencies.add(v),!J){for(let[Z,T]of _)if(T!==null){let j=t.getLocator(Z,T),Le=t.getLocator(Z.replace(hE,""),T),ve=t.getPackageInformation(Le);if(ve===null)throw new Error("Assertion failed: Expected the package to have been registered");let Je=(G=e.hoistingLimitsByCwd)==null?void 0:G.get(k),V=D.relative(c,npath.toPortablePath(ve.packageLocation))||me.dot,$=(re=e.hoistingLimitsByCwd)==null?void 0:re.get(V),Ie=Je===Ui.DEPENDENCIES||$===Ui.DEPENDENCIES||$===Ui.WORKSPACES;d(ea(j)===ea(w)?m:Z,ve,j,v,_,V,Ie)}}};return d(l.name,a,l,u,a.packageDependencies,me.dot,!1),{packageTree:u,hoistingLimits:s,errors:i,preserveSymlinksRequired:n}};function GFe(t,e,r){let i=e.getLocator(t.name.replace(hE,""),t.reference),n=e.getPackageInformation(i);if(n===null)throw new Error("Assertion failed: Expected the package to be registered");let s,o;if(r.pnpifyFs)o=npath.toPortablePath(n.packageLocation),s=Zo.SOFT;else{let a=e.resolveVirtual&&t.reference&&t.reference.startsWith("virtual:")?e.resolveVirtual(n.packageLocation):n.packageLocation;o=npath.toPortablePath(a||n.packageLocation),s=n.linkType}return{linkType:s,target:o}}var jFe=(t,e,r)=>{let i=new Map,n=(g,u,h)=>{let{linkType:f,target:d}=GFe(g,t,r);return{locator:ea(g),nodePath:u,target:d,linkType:f,aliases:h}},s=g=>{let[u,h]=g.split("/");return h?{scope:_t(u),name:_t(h)}:{scope:null,name:_t(u)}},o=new Set,a=(g,u,h)=>{if(!o.has(g)){o.a Line truncated
${JSON.stringify(s)}`);this.nodeModulesTree=n,this.watchManager=new hx;let o=npath.toPortablePath(e.getPackageInformation(e.topLevel).packageLocation);this.pnpFilePath=D.join(o,dt.pnpCjs),this.watchPnpFile(o)}watchPnpFile(e){this.baseFs.watch(e,{persistent:!1},(r,i)=>{if(i===dt.pnpCjs){let n=CX.dynamicRequireNoCache(this.pnpFilePath);if(!$o(n,this.options))throw new Error("Assertion failed. Have got non-persistable node_modules graph");this.watchManager.notifyWatchers(o=>Ex(o,this.nodeModulesTree))}})}persistPath(e){let r=[],i=e;for(;!this.baseFs.existsSync(i);)r.push(i),i=D.dirname(i);for(let n of r.reverse())this.baseFs.mkdirSync(n)}persistVirtualParentFolder(e){if(typeof e!="number"){let r=this.resolvePath(D.dirname(e));r.dirList&&this.persistPath(r.resolvedPath)}}getExtractHint(e){return this.baseFs.getExtractHint(e)}resolve(e){return this.baseFs.resolve(this.resolvePath(e).resolvedPath)}getBaseFs(){return this.baseFs}resolvePath(e){if(typeof e=="number")return{resolvedPath:e,fullOriginalPath:e};{let r=this.pathUtils.resolve(e);return{...Ex(r,this.nodeModulesTree),fullOriginalPath:r}}}resolveFilePath(e){return typeof e=="number"?e:this.resolvePath(e).resolvedPath}resolveDirOrFilePath(e){if(typeof e=="number")return e;let r=this.resolvePath(e);return r.forwardedDirPath||r.resolvedPath}resolveLink(e){let{p:r,onSymlink:i,onRealPath:n,statOptions:s}=e,o=this.resolvePath(r);if(o.isSymlink){let a;try{a=this.baseFs.lstatSync(o.resolvedPath,s)}catch(l){}if(a)return i(a,this.pathUtils.relative(this.pathUtils.dirname(o.fullOriginalPath),o.resolvedPath))}return n(o.forwardedDirPath||o.resolvedPath)}static makeSymlinkStats(e){return Object.assign(e,{isFile:()=>!1,isDirectory:()=>!1,isSymbolicLink:()=>!0})}getRealPath(){return this.baseFs.getRealPath()}async openPromise(e,r,i){return mX.test(r)&&this.persistVirtualParentFolder(e),await this.baseFs.openPromise(this.resolveFilePath(e),r,i)}openSync(e,r,i){return mX.test(r)&&this.persistVirtualParentFolder(e),this.baseFs.openSync(this.resolveFilePath(e),r,i)}async opendirPromise(e,r){let i=this.resolvePath(e);if(i.dirList||this.resolvePath(D.join(e,"node_modules")).dirList){let n=[];try{n=await this.baseFs.readdirPromise(i.resolvedPath)}catch(o){}let s=Array.from(i.dirList||["node_modules"]).concat(n).sort();return ha(this,e,s)}else return await this.baseFs.opendirPromise(i.resolvedPath,r)}opendirSync(e,r){let i=this.resolvePath(e);if(i.dirList||this.resolvePath(D.join(e,"node_modules")).dirList){let n=[];try{n=this.baseFs.readdirSync(i.resolvedPath)}catch(o){}let s=Array.from(i.dirList||["node_modules"]).concat(n).sort();return ha(this,e,s)}else return this.baseFs.opendirSync(i.resolvedPath,r)}async readPromise(e,r,i,n,s){return await this.baseFs.readPromise(e,r,i,n,s)}readSync(e,r,i,n,s){return this.baseFs.readSync(e,r,i,n,s)}async writePromise(e,r,i,n,s){return typeof r=="string"?await this.baseFs.writePromise(e,r,i):await this.baseFs.writePromise(e,r,i,n,s)}writeSync(e,r,i,n,s){return typeof r=="string"?this.baseFs.writeSync(e,r,i):this.baseFs.writeSync(e,r,i,n,s)}async closePromise(e){await this.baseFs.closePromise(e)}closeSync(e){this.baseFs.closeSync(e)}createReadStream(e,r){return this.baseFs.createReadStream(e!==null?this.resolveFilePath(e):e,r)}createWriteStream(e,r){return this.baseFs.createWriteStream(e!==null?this.resolveDirOrFilePath(e):e,r)}async realpathPromise(e){let r=this.resolvePath(e);return r.dirList?r.resolvedPath:this.baseFs.realpathPromise(r.resolvedPath)}realpathSync(e){let r=this.resolvePath(e);return r.dirList?r.resolvedPath:this.baseFs.realpathSync(r.resolvedPath)}async existsPromise(e){let r=this.resolvePath(e);return r.dirList?!0:await this.baseFs.existsPromise(r.resolvedPath)}existsSync(e){let r=this.resolvePath(e);return r.dirList?!0:this.baseFs.existsSync(r.resolvedPath)}async accessPromise(e,r){return await this.baseFs.accessPromise(this.resolveDirOrFilePath(e),r)}accessSync(e,r){return this.baseFs.accessSync(this.resolveDirOrFilePath(e),r)}async statPromise(e,r){return await this.baseFs.statPromise(this.resolveDirOrFilePath(e),r)}statSync(e,r){return this.baseFs.statSync(this.resolveDirOrFilePath(e),r)}async fstatPromise(e,r){return await this.baseFs.fstatPromise(e,r)}fstatSync(e,r){return this.baseFs.fstatSync(e,r)}async lstatPromise(e,r){return this.resolveLink({p:e,op:"lstat",onSymlink:i=>jf.makeSymlinkStats(i),onRealPath:async i=>await this.baseFs.lstatPromise(i,r),statOptions:r})}lstatSync(e,r){return this.resolveLink({p:e,op:"lstat",onSymlink:i=>jf.makeSymlinkStats(i),onRealPath:i=>this.baseFs.lstatSync(i,r),statOptions:r})}async chmodPromise(e,r){return await this.baseFs.chmodPromise(this.resolveDirOrFilePath(e),r)}chmodSync(e,r){return this.baseFs.chmodSync(this.resolveDirOrFilePath(e),r)}async chownPromise(e,r,i){return await this.baseFs.chownPromise(this.resolveDirOrFilePath(e),r,i)}chownSync(e,r,i){return this.baseFs.chownSync(this.resolveDirOrFilePath(e),r,i)}async renamePromise(e,r){return await this.baseFs.renamePromis Line truncated
`;for(let s=0,o=t.length;s<o;++s)n+=i+fE(String(s),t[s],e,i).replace(/^ +/,""),s+1<o&&(n+=","),n+=`
`;return n+=r,n+="]",n}function WFe(t,e,r){let i=Object.keys(t),n="";n+="{";for(let s=0,o=i.length;s<o;++s){let a=i[s],l=t[a];typeof l!="undefined"&&(n+=JSON.stringify(a),n+=": ",n+=fE(a,l,e,r).replace(/^ +/g,""),s+1<o&&(n+=", "))}return n+="}",n}function zFe(t,e,r){let i=Object.keys(t),n=`${r} `,s="";s+=r,s+=`{
`;for(let o=0,a=i.length;o<a;++o){let l=i[o],c=t[l];typeof c!="undefined"&&(s+=n,s+=JSON.stringify(l),s+=": ",s+=fE(l,c,e,n).replace(/^ +/g,""),o+1<a&&(s+=","),s+=`
`)}return s+=r,s+="}",s}function fE(t,e,r,i){let{next:n}=BX[r],s=n[t]||n["*"];return wX(e,s,i)}function wX(t,e,r){let{collapsed:i}=BX[e];return Array.isArray(t)?i?JFe(t,e,r):_Fe(t,e,r):typeof t=="object"&&t!==null?i?WFe(t,e,r):zFe(t,e,r):JSON.stringify(t)}function QX(t){return wX(t,St.TOP_LEVEL,"")}function Gf(t,e){let r=Array.from(t);Array.isArray(e)||(e=[e]);let i=[];for(let s of e)i.push(r.map(o=>s(o)));let n=r.map((s,o)=>o);return n.sort((s,o)=>{for(let a of i){let l=a[s]<a[o]?-1:a[s]>a[o]?1:0;if(l!==0)return l}return 0}),n.map(s=>r[s])}function VFe(t){let e=new Map,r=Gf(t.fallbackExclusionList||[],[({name:i,reference:n})=>i,({name:i,reference:n})=>n]);for(let{name:i,reference:n}of r){let s=e.get(i);typeof s=="undefined"&&e.set(i,s=new Set),s.add(n)}return Array.from(e).map(([i,n])=>[i,Array.from(n)])}function XFe(t){return Gf(t.fallbackPool||[],([e])=>e)}function ZFe(t){let e=[];for(let[r,i]of Gf(t.packageRegistry,([n])=>n===null?"0":`1${n}`)){let n=[];e.push([r,n]);for(let[s,{packageLocation:o,packageDependencies:a,packagePeers:l,linkType:c,discardFromLookup:g}]of Gf(i,([u])=>u===null?"0":`1${u}`)){let u=[];r!==null&&s!==null&&!a.has(r)&&u.push([r,s]);for(let[d,m]of Gf(a.entries(),([I])=>I))u.push([d,m]);let h=l&&l.size>0?Array.from(l):void 0,f=g||void 0;n.push([s,{packageLocation:o,packageDependencies:u,packagePeers:h,linkType:c,discardFromLookup:f}])}}return e}function qf(t){return{__info:["This file is automatically generated. Do not touch it, or risk","your modifications being lost. We also recommend you not to read","it either without using the @yarnpkg/pnp package, as the data layout","is entirely unspecified and WILL change from a version to another."],dependencyTreeRoots:t.dependencyTreeRoots,enableTopLevelFallback:t.enableTopLevelFallback||!1,ignorePatternData:t.ignorePattern||null,fallbackExclusionList:VFe(t),fallbackPool:XFe(t),packageRegistryData:ZFe(t)}}var SX=W(DX());function PX(t,e){return[t?`${t}
`:"",`/* eslint-disable */
`,`try {
`,` Object.freeze({}).detectStrictMode = true;
`,`} catch (error) {
`," throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`);\n",`}
`,`
`,`var __non_webpack_module__ = module;
`,`
`,`function $$SETUP_STATE(hydrateRuntimeState, basePath) {
`,e.replace(/^/gm," "),`}
`,`
`,SX.default()].join("")}function $Fe(t){return JSON.stringify(t,null,2)}function eRe(t){return[`return hydrateRuntimeState(${QX(t)}, {basePath: basePath || __dirname});
`].join("")}function tRe(t){return[`var path = require('path');
`,`var dataLocation = path.resolve(__dirname, ${JSON.stringify(t)});
`,`return hydrateRuntimeState(require(dataLocation), {basePath: basePath || path.dirname(dataLocation)});
`].join("")}function xX(t){let e=qf(t),r=eRe(e);return PX(t.shebang,r)}function kX(t){let e=qf(t),r=tRe(t.dataLocation),i=PX(t.shebang,r);return{dataFile:$Fe(e),loaderFile:i}}var NX=W(require("fs")),sRe=W(require("path")),LX=W(require("util"));function bx(t,{basePath:e}){let r=npath.toPortablePath(e),i=D.resolve(r),n=t.ignorePatternData!==null?new RegExp(t.ignorePatternData):null,s=new Map,o=new Map(t.packageRegistryData.map(([u,h])=>[u,new Map(h.map(([f,d])=>{var P;if(u===null!=(f===null))throw new Error("Assertion failed: The name and reference should be null, or neither should");let m=(P=d.discardFromLookup)!=null?P:!1,I={name:u,reference:f},w=s.get(d.packageLocation);w?(w.discardFromLookup=w.discardFromLookup&&m,m||(w.locator=I)):s.set(d.packageLocation,{locator:I,discardFromLookup:m});let B=null;return[f,{packageDependencies:new Map(d.packageDependencies),packagePeers:new Set(d.packagePeers),linkType:d.linkType,discardFromLookup:m,get packageLocation(){return B||(B=D.join(i,d.packageLocation))}}]}))])),a=new Map(t.fallbackExclusionList.map(([u,h])=>[u,new Set(h)])),l=new Map(t.fallbackPool),c=t.dependencyTreeRoots,g=t.enableTopLevelFallback;return{basePath:r,dependencyTreeRoots:c,enableTopLevelFallback:g,fallbackExclusionList:a,fallbackPool:l,ignorePattern:n,packageLocatorsByLocations:s,packageRegistry:o}}var Gc=W(require("module")),RX=W(FX()),Sx=W(require("util"));var Xt;(function(t){t.API_ERROR="API_ERROR",t.BUILTIN_NODE_RESOLUTION_FAILED="BUILTIN_NODE_RESOLUTION_FAILED",t.MISSING_DEPENDENCY="MISSING_DEPENDENCY",t.MISSING_PEER_DEPENDENCY="MISSING_PEER_DEPENDENCY",t.QUALIFIED_PATH_RESOLUTION_FAILED="QUALIFIED_PATH_RESOLUTION_FAILED",t.INTERNAL="INTERNAL",t.UNDECLARED_DEPENDENCY="UNDECLARED_DEPENDENCY",t.UNSUPPORTED="UNSUPPORTED"})(Xt||(Xt={}));var nRe=new Set([Xt.BUILTIN_NODE_RESOLUTION_FAILED,Xt.MISSING_DEPENDENCY,Xt.MISSING_PEER_DEPENDENCY,Xt.QUALIFIED_PATH_RESOLUTION_FAILED,Xt.UNDECLARED_DEPENDENCY]);function Kr(t,e,r={}){let i=nRe.has(t)?"MODULE_NOT_FOUND":t,n={configurable:!0,writable:!0,enumerable:!1};return Object.defineProperties(new Error(e),{code:{...n,value:i},pnpCode:{...n,value:t},data:{...n,value:r}})}function PA(t){return npath.normalize(npath.fromPortablePath(t))}function Px(t,e){let r=Number(process.env.PNP_ALWAYS_WARN_ON_FALLBACK)>0,i=Number(process.env.PNP_DEBUG_LEVEL),n=new Set(Gc.Module.builtinModules||Object.keys(process.binding("natives"))),s=/^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:@[^/]+\/)?[^/]+)\/*(.*|)$/,o=/^(\/|\.{1,2}(\/|$))/,a=/\/$/,l=/^\.{0,2}\//,c={name:null,reference:null},g=[],u=new Set;if(t.enableTopLevelFallback===!0&&g.push(c),e.compatibilityMode!==!1)for(let V of["react-scripts","gatsby"]){let $=t.packageRegistry.get(V);if($)for(let Ie of $.keys()){if(Ie===null)throw new Error("Assertion failed: This reference shouldn't be null");g.push({name:V,reference:Ie})}}let{ignorePattern:h,packageRegistry:f,packageLocatorsByLocations:d}=t;function m(V,$){return{fn:V,args:$,error:null,result:null}}function I(V){var Ne,pe,Ee,le,H,de;let $=(Ee=(pe=(Ne=process.stderr)==null?void 0:Ne.hasColors)==null?void 0:pe.call(Ne))!=null?Ee:process.stdout.isTTY,Ie=(ie,ke)=>`[${ie}m${ke}`;V.error?console.error(Ie("31;1",`\u2716 ${(le=V.error)==null?void 0:le.message.replace(/\n.*/s,"")}`)):console.error(Ie("33;1","\u203C Resolution")),V.args.length>0&&console.error();for(let ie of V.args)console.error(` ${Ie("37;1","In \u2190")} ${Sx.inspect(ie,{colors:$,compact:!0})}`);V.result&&(console.error(),console.error(` ${Ie("37;1","Out \u2192")} ${Sx.inspect(V.result,{colors:$,compact:!0})}`));let fe=(de=(H=new Error().stack.match(/(?<=^ +)at.*/gm))==null?void 0:H.slice(2))!=null?de:[];if(fe.length>0){console.error();for(let ie of fe)console.error(` ${Ie("38;5;244",ie)}`)}console.error()}function w(V,$){if(e.allowDebug===!1)return $;if(Number.isFinite(i)){if(i>=2)return(...Ie)=>{let ce=m(V,Ie);try{return ce.result=$(...Ie)}catch(fe){throw ce.error=fe}finally{I(ce)}};if(i>=1)return(...Ie)=>{try{return $(...Ie)}catch(ce){let fe=m(V,Ie);throw fe.error=ce,I(fe),ce}}}return $}function B(V){let $=A(V);if(!$)throw Kr(Xt.INTERNAL,"Couldn't find a matching entry in the dependency tree for the specified parent (this is probably an internal error)");return $}function P(V){if(V.name===null)return!0;for(let $ of t.dependencyTreeRoots)if($.name===V.name&&$.reference===V.reference)return!0;return!1}function k(V){let $=Z(D.join(V,"internal.js"),{resolveIgnored:!0,includeDiscardFromLookup:!0});if($===null)throw Kr(Xt.INTERNAL,`The locator that owns the "${V}" path can't be found inside the dependency tree (this is probably an internal error)`);let{packageLocation:Ie}=B($),ce=D.join(Ie,dt.manifest);if(!e.fakeFs.existsSync(ce))return null;let fe=JSON.parse(e.fakeFs.readFileSync(ce,"utf8")),Ne=D.contains(Ie,V);if(Ne===null)throw Kr(Xt.INTERNAL,"unqualifiedPath doesn't contain the packageLocation (this is probably an internal error)");l.test(Ne)||(Ne=`./${Ne}`);let pe=RX.resolve(fe,D.normalize(Ne),{browsLine truncated
Require request: "${ce}"
Required by: ${fe}
`,{request:ce,issuer:fe});return npath.toPortablePath(Ee)}let Ne,pe=V.match(s);if(pe){if(!$)throw Kr(Xt.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:ce,issuer:fe});let[,Ee,le]=pe,H=Z($);if(!H){let Ft=v(V,$);if(Ft===!1)throw Kr(Xt.BUILTIN_NODE_RESOLUTION_FAILED,`The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer doesn't seem to be part of the Yarn-managed dependency tree).
Require path: "${ce}"
Required by: ${fe}
`,{request:ce,issuer:fe});return npath.toPortablePath(Ft)}let ie=B(H).packageDependencies.get(Ee),ke=null;if(ie==null&&H.name!==null){let Ft=t.fallbackExclusionList.get(H.name);if(!Ft||!Ft.has(H.reference)){for(let Hi=0,HA=g.length;Hi<HA;++Hi){let la=B(g[Hi]).packageDependencies.get(Ee);if(la!=null){r?ke=la:ie=la;break}}if(t.enableTopLevelFallback&&ie==null&&ke===null){let Hi=t.fallbackPool.get(Ee);Hi!=null&&(ke=Hi)}}}let et=null;if(ie===null)if(P(H))et=Kr(Xt.MISSING_PEER_DEPENDENCY,`Your application tried to access ${Ee} (a peer dependency); this isn't allowed as there is no ancestor to satisfy the requirement. Use a devDependency if needed.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${fe}
`,{request:ce,issuer:fe,dependencyName:Ee});else{let Ft=re(Ee,H);Ft.every(Vr=>P(Vr))?et=Kr(Xt.MISSING_PEER_DEPENDENCY,`${H.name} tried to access ${Ee} (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${H.name}@${H.reference} (via ${fe})
${Ft.map(Vr=>`Ancestor breaking the chain: ${Vr.name}@${Vr.reference}
`).join("")}
`,{request:ce,issuer:fe,issuerLocator:Object.assign({},H),dependencyName:Ee,brokenAncestors:Ft}):et=Kr(Xt.MISSING_PEER_DEPENDENCY,`${H.name} tried to access ${Ee} (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${H.name}@${H.reference} (via ${fe})
${Ft.map(Vr=>`Ancestor breaking the chain: ${Vr.name}@${Vr.reference}
`).join("")}
`,{request:ce,issuer:fe,issuerLocator:Object.assign({},H),dependencyName:Ee,brokenAncestors:Ft})}else ie===void 0&&(!Ie&&n.has(V)?P(H)?et=Kr(Xt.UNDECLARED_DEPENDENCY,`Your application tried to access ${Ee}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${Ee} isn't otherwise declared in your dependencies, this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${fe}
`,{request:ce,issuer:fe,dependencyName:Ee}):et=Kr(Xt.UNDECLARED_DEPENDENCY,`${H.name} tried to access ${Ee}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${Ee} isn't otherwise declared in ${H.name}'s dependencies, this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${fe}
`,{request:ce,issuer:fe,issuerLocator:Object.assign({},H),dependencyName:Ee}):P(H)?et=Kr(Xt.UNDECLARED_DEPENDENCY,`Your application tried to access ${Ee}, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${fe}
`,{request:ce,issuer:fe,dependencyName:Ee}):et=Kr(Xt.UNDECLARED_DEPENDENCY,`${H.name} tried to access ${Ee}, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: ${Ee}${Ee!==ce?` (via "${ce}")`:""}
Required by: ${H.name}@${H.reference} (via ${fe})
`,{request:ce,issuer:fe,issuerLocator:Object.assign({},H),dependencyName:Ee}));if(ie==null){if(ke===null||et===null)throw et||new Error("Assertion failed: Expected an error to have been set");ie=ke;let Ft=et.message.replace(/\n.*/g,"");et.message=Ft,!u.has(Ft)&&i!==0&&(u.add(Ft),process.emitWarning(et))}let Lt=Array.isArray(ie)?{name:ie[0],reference:ie[1]}:{name:Ee,reference:ie},Mt=B(Lt);if(!Mt.packageLocation)throw Kr(Xt.MISSING_DEPENDENCY,`A dependency seems valid but didn't get installed for some reason. This might be caused by a partial install, such as dev vs prod.
Required package: ${Lt.name}@${Lt.reference}${Lt.name!==ce?` (via "${ce}")`:""}
Required by: ${H.name}@${H.reference} (via ${fe})
`,{request:ce,issuer:fe,dependencyLocator:Object.assign({},Lt)});let On=Mt.packageLocation;le?Ne=D.join(On,le):Ne=On}else if(D.isAbsolute(V))Ne=D.normalize(V);else{if(!$)throw Kr(Xt.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:ce,issuer:fe});let Ee=D.resolve($);$.match(a)?Ne=D.normalize(D.join(Ee,V)):Ne=D.normalize(D.join(D.dirname(Ee),V))}return D.normalize(Ne)}function j(V,$){if(o.test(V))return $;let Ie=k($);return Ie?D.normalize(Ie):$}function Le(V,{extensions:$=Object.keys(Gc.Module._extensions)}={}){let Ie=[],ce=M(V,Ie,{extensions:$});if(ce)return D.normalize(ce);{let fe=PA(V);throw Kr(Xt.QUALIFIED_PATH_RESOLUTION_FAILED,`Qualified path resolution failed - none of those files can be found on the disk.
Source path: ${fe}
${Ie.map(Ne=>`Not found: ${PA(Ne)}
`).join("")}`,{unqualifiedPath:fe})}}function ve(V,$,{considerBuiltins:Ie,extensions:ce}={}){let fe=T(V,$,{considerBuiltins:Ie});if(fe===null)return null;let Ne=()=>$!==null?J($):!1,pe=(!Ie||!n.has(V))&&!Ne()?j(V,fe):fe;try{return Le(pe,{extensions:ce})}catch(Ee){throw Ee.pnpCode==="QUALIFIED_PATH_RESOLUTION_FAILED"&&Object.assign(Ee.data,{request:PA(V),issuer:$&&PA($)}),Ee}}function Je(V){let $=D.normalize(V),Ie=or.resolveVirtual($);return Ie!==$?Ie:null}return{VERSIONS:_,topLevel:R,getLocator:(V,$)=>Array.isArray($)?{name:$[0],reference:$[1]}:{name:V,reference:$},getDependencyTreeRoots:()=>[...t.dependencyTreeRoots],getAllLocators(){let V=[];for(let[$,Ie]of f)for(let ce of Ie.keys())$!==null&&ce!==null&&V.push({name:$,reference:ce});return V},getPackageInformation:V=>{let $=A(V);if($===null)return null;let Ie=npath.fromPortablePath($.packageLocation);return{...$,packageLocation:Ie}},findPackageLocator:V=>Z(npath.toPortablePath(V)),resolveToUnqualified:w("resolveToUnqualified",(V,$,Ie)=>{let ce=$!==null?npath.toPortablePath($):null,fe=T(npath.toPortablePath(V),ce,Ie);return fe===null?null:npath.fromPortablePath(fe)}),resolveUnqualified:w("resolveUnqualified",(V,$)=>npath.fromPortablePath(Le(npath.toPortablePath(V),$))),resolveRequest:w("resolveRequest",(V,$,Ie)=>{let ce=$!==null?npath.toPortablePath($):null,fe=ve(npath.toPortablePath(V),ce,Ie);return fe===null?null:npath.fromPortablePath(fe)}),resolveVirtual:w("resolveVirtual",V=>{let $=Je(npath.toPortablePath(V));return $!==null?npath.fromPortablePath($):null})}}var snt=LX.promisify(NX.readFile);var MX=(t,e,r)=>{let i=qf(t),n=bx(i,{basePath:e}),s=npath.join(e,dt.pnpCjs);return Px(n,{fakeFs:r,pnpapiResolution:s})};var ta={};We(ta,{checkAndReportManifestCompatibility:()=>KX,extractBuildScripts:()=>pE,getExtractHint:()=>xx,hasBindingGyp:()=>kx});function KX(t,e,r,{configuration:i,report:n}){return Ge.isManifestFieldCompatible(e.manifest.os,process.platform)?Ge.isManifestFieldCompatible(e.manifest.cpu,process.arch)?!0:(n==null||n.reportWarningOnce(q.INCOMPATIBLE_CPU,`${S.prettyLocator(i,t)} The CPU architecture ${process.arch} is incompatible with this module, ${r} skipped.`),!1):(n==null||n.reportWarningOnce(q.INCOMPATIBLE_OS,`${S.prettyLocator(i,t)} The platform ${process.platform} is incompatible with this module, ${r} skipped.`),!1)}function pE(t,e,r,{configuration:i,report:n}){let s=[];for(let a of["preinstall","install","postinstall"])e.manifest.scripts.has(a)&&s.push([Oi.SCRIPT,a]);return!e.manifest.scripts.has("install")&&e.misc.hasBindingGyp&&s.push([Oi.SHELLCODE,"node-gyp rebuild"]),s.length===0?[]:!i.get("enableScripts")&&!r.built?(n==null||n.reportWarningOnce(q.DISABLED_BUILD_SCRIPTS,`${S.prettyLocator(i,t)} lists build scripts, but all build scripts have been disabled.`),[]):t.linkType!==At.HARD?(n==null||n.reportWarningOnce(q.SOFT_LINK_BUILD,`${S.prettyLocator(i,t)} lists build scripts, but is referenced through a soft link. Soft links don't support build scripts, so they'll be ignored.`),[]):r&&r.built===!1?(n==null||n.reportInfoOnce(q.BUILD_DISABLED,`${S.prettyLocator(i,t)} lists build scripts, but its build has been explicitly disabled through configuration.`),[]):KX(t,e,"build",{configuration:i,report:n})?s:[]}var oRe=new Set([".exe",".h",".hh",".hpp",".c",".cc",".cpp",".java",".jar",".node"]);function xx(t){return t.packageFs.getExtractHint({relevantExtensions:oRe})}function kx(t){let e=D.join(t.prefixPath,"binding.gyp");return t.packageFs.existsSync(e)}var vx={};We(vx,{getUnpluggedPath:()=>Jf});function Jf(t,{configuration:e}){return D.resolve(e.get("pnpUnpluggedFolder"),S.slugifyLocator(t))}var aRe=new Set([S.makeIdent(null,"nan").identHash,S.makeIdent(null,"node-gyp").identHash,S.makeIdent(null,"node-pre-gyp").identHash,S.makeIdent(null,"node-addon-api").identHash,S.makeIdent(null,"fsevents").identHash]),kA=class{constructor(){this.mode="strict";this.pnpCache=new Map}supportsPackage(e,r){return!(r.project.configuration.get("nodeLinker")!=="pnp"||r.project.configuration.get("pnpMode")!==this.mode)}async findPackageLocation(e,r){let i=xA(r.project).cjs;if(!L.existsSync(i))throw new UsageError(`The project in ${se.pretty(r.project.configuration,`${r.project.cwd}/package.json`,se.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let n=he.getFactoryWithDefault(this.pnpCache,i,()=>he.dynamicRequireNoCache(i)),s={name:S.stringifyIdent(e),reference:e.reference},o=n.getPackageInformation(s);if(!o)throw new UsageError(`Couldn't find ${S.prettyLocator(r.project.configuration,e)} in the currently installed PnP map - running an install might help`);return npath.toPortablePath(o.packageLocation)}async findPackageLocator(e,r){let i=xA(r.project).cjs;if(!L.existsSync(i))return null;let s=he.getFactoryWithDefault(this.pnpCache,i,()=>he.dynamicRequireNoCache(i)).findPackageLocator(npath.fromPortablePath(e));return s?S.makeLocator(S.parseIdent(s.name),s.reference):null}makeInstaller(e){return new qc(e)}},qc=class{consLine truncated
`,i+=`# cause your node_modules installation to become invalidated.
`,i+=`
`,i+=`__metadata:
`,i+=` version: ${A7}
`;let n=Array.from(e.keys()).sort(),s=S.stringifyLocator(t.topLevelWorkspace.anchoredLocator);for(let l of n){let c=e.get(l);i+=`
`,i+=`${JSON.stringify(l)}:
`,i+=` locations:
`;for(let g of c.locations){let u=D.contains(t.cwd,g);if(u===null)throw new Error(`Assertion failed: Expected the path to be within the project (${g})`);i+=` - ${JSON.stringify(u)}
`}if(c.aliases.length>0){i+=` aliases:
`;for(let g of c.aliases)i+=` - ${JSON.stringify(g)}
`}if(l===s&&r.size>0){i+=` bin:
`;for(let[g,u]of r){let h=D.contains(t.cwd,g);if(h===null)throw new Error(`Assertion failed: Expected the path to be within the project (${g})`);i+=` ${JSON.stringify(h)}:
`;for(let[f,d]of u){let m=D.relative(D.join(g,vr),d);i+=` ${JSON.stringify(f)}: ${JSON.stringify(m)}
`}}}}let o=t.cwd,a=D.join(o,vr,l7);await L.changeFilePromise(a,i,{automaticNewlines:!0})}async function _x(t,{unrollAliases:e=!1}={}){let r=t.cwd,i=D.join(r,vr,l7);if(!L.existsSync(i))return null;let n=Lr(await L.readFilePromise(i,"utf8"));if(n.__metadata.version>A7)return null;let s=new Map,o=new Map;delete n.__metadata;for(let[a,l]of Object.entries(n)){let c=l.locations.map(u=>D.join(r,u)),g=l.bin;if(g)for(let[u,h]of Object.entries(g)){let f=D.join(r,npath.toPortablePath(u)),d=he.getMapWithDefault(o,f);for(let[m,I]of Object.entries(h))d.set(_t(m),npath.toPortablePath([f,vr,I].join(D.delimiter)))}if(s.set(a,{target:me.dot,linkType:At.HARD,locations:c,aliases:l.aliases||[]}),e&&l.aliases)for(let u of l.aliases){let{scope:h,name:f}=S.parseLocator(a),d=S.makeLocator(S.makeIdent(h,f),u),m=S.stringifyLocator(d);s.set(m,{target:me.dot,linkType:At.HARD,locations:c,aliases:[]})}}return{locatorMap:s,binSymlinks:o,locationTree:u7(s,{skipPrefix:t.cwd})}}var _c=async(t,e)=>{if(t.split(D.sep).indexOf(vr)<0)throw new Error(`Assertion failed: trying to remove dir that doesn't contain node_modules: ${t}`);try{if(!e.innerLoop&&(await L.lstatPromise(t)).isSymbolicLink()){await L.unlinkPromise(t);return}let r=await L.readdirPromise(t,{withFileTypes:!0});for(let i of r){let n=D.join(t,_t(i.name));i.isDirectory()?(i.name!==vr||e&&e.innerLoop)&&await _c(n,{innerLoop:!0,contentsOnly:!1}):await L.unlinkPromise(n)}e.contentsOnly||await L.rmdirPromise(t)}catch(r){if(r.code!=="ENOENT"&&r.code!=="ENOTEMPTY")throw r}},h7=4,yE=(t,{skipPrefix:e})=>{let r=D.contains(e,t);if(r===null)throw new Error(`Assertion failed: Cannot process a path that isn't part of the requested prefix (${t} isn't within ${e})`);let i=r.split(D.sep).filter(l=>l!==""),n=i.indexOf(vr),s=i.slice(0,n).join(D.sep),o=D.join(e,s),a=i.slice(n);return{locationRoot:o,segments:a}},u7=(t,{skipPrefix:e})=>{let r=new Map;if(t===null)return r;let i=()=>({children:new Map,linkType:At.HARD});for(let[n,s]of t.entries()){if(s.linkType===At.SOFT&&D.contains(e,s.target)!==null){let a=he.getFactoryWithDefault(r,s.target,i);a.locator=n,a.linkType=s.linkType}for(let o of s.locations){let{locationRoot:a,segments:l}=yE(o,{skipPrefix:e}),c=he.getFactoryWithDefault(r,a,i);for(let g=0;g<l.length;++g){let u=l[g];if(u!=="."){let h=he.getFactoryWithDefault(c.children,u,i);c.children.set(u,h),c=h}g===l.length-1&&(c.locator=n,c.linkType=s.linkType)}}}return r},Wx=async(t,e)=>{let r;try{process.platform==="win32"&&(r=await L.lstatPromise(t))}catch(i){}process.platform=="win32"&&(!r||r.isDirectory())?await L.symlinkPromise(t,e,"junction"):await L.symlinkPromise(D.relative(D.dirname(e),t),e)},f7=async(t,e,{baseFs:r,innerLoop:i})=>{await L.mkdirPromise(t,{recursive:!0});let n=await r.readdirPromise(e,{withFileTypes:!0}),s=async(o,a,l)=>{if(l.isFile()){let c=await r.lstatPromise(a);await r.copyFilePromise(a,o);let g=c.mode&511;g!==420&&await L.chmodPromise(o,g)}else if(l.isSymbolicLink()){let c=await r.readlinkPromise(a);await Wx(D.resolve(D.dirname(o),c),o)}else throw new Error(`Unsupported file type (file: ${a}, mode: 0o${await L.statSync(a).mode.toString(8).padStart(6,"0")})`)};for(let o of n){let a=D.join(e,_t(o.name)),l=D.join(t,_t(o.name));o.isDirectory()?(o.name!==vr||i)&&await f7(l,a,{baseFs:r,innerLoop:!0}):await s(l,a,o)}};function CNe(t,e){let r=new Map([...t]),i=new Map([...e]);for(let[n,s]of t){let o=D.join(n,vr);if(!L.existsSync(o)){s.children.delete(vr);for(let a of i.keys())D.contains(o,a)!==null&&i.delete(a)}}return{locationTree:r,binSymlinks:i}}function g7(t){let e=S.parseDescriptor(t);return S.isVirtualDescriptor(e)&&(e=S.devirtualizeDescriptor(e)),e.range.startsWith("link:")}async function mNe(t,e,r,{loadManifest:i}){let n=new Map;for(let[a,{locations:l}]of t){let c=g7(a)?null:await i(a,l[0]),g=new Map;if(c)for(let[u,h]of c.bin){let f=D.join(l[0],h);h!==""&&L.existsSync(f)&&g.set(u,h)}n.set(a,g)}let s=new Map,o=(a,l,c)=>{let g=new Map,u=D.contains(r,a);if(c.locator&&u!==null){let h=n.get(c.locator);for(let[f,d]of h){let m=D.join(a,npath.toPortablePath(d));g.set(_t(f),m)}for(let[f,d]of c.children){let m=D.join(a,f),I=o(m,m,d);I.size>0&&s.set(a,new Map([...s.get(a)||new Map,...I]))}}else for(let[h,f]of c.children){let d=o(D.join(a,h),l,f);for(let[m,I]of d)g.set(m,I)}return g};for(let[a,l]of e){let c=o(a,a,l);c.size>0&&s.set(a,new Map([...s.get(a)||new Map,...c]))}return s}var p7=(t,e)=>{if(!t||!e)return t===e;let r=S.parseLocator(t);S.isVirtualLocator(r)&&(r=S.devirtualizeLocator(r));let i=S.parseLocator(e);return S.isVirtualLocator(i)&&(i=S.devirtualizeLocator(i)),S.areLocatorsEqual(r,i)};async function pNe(t,e,{baseFs:r,project:i,report:n,loadManifest:s}){let o=D.join(i.cwd,vr),{locationTree:a,binSymlinks:l}=CNe(t.locationTree,t.binSymlinks),c=u7(e,{skipPrefix:i.cwd}),g=[],u=async({srcDir:B,dstDir:P,linkType:k})=>{let M=(async()=>{try{k===At.SOFT?(await L.mkdirPromise(D.dirname(P),{recursive:!0}),await Wx(D.resolve(B),P)):await f7(P,B,{baseFs:r})}catch(Y){throw Y.message=`While pLine truncated
This command checks for known security reports on the packages you use. The reports are by default extracted from the npm registry, and may or may not be relevant to your actual program (not all vulnerabilities affect all code paths).
For consistency with our other commands the default is to only check the direct dependencies for the active workspace. To extend this search to all workspaces, use \`-A,--all\`. To extend this search to both direct and transitive dependencies, use \`-R,--recursive\`.
Applying the \`--severity\` flag will limit the audit table to vulnerabilities of the corresponding severity and above. Valid values are ${JE.map(e=>`\`${e}\``).join(", ")}.
If the \`--json\` flag is set, Yarn will print the output exactly as received from the registry. Regardless of this flag, the process will exit with a non-zero exit code if a report is found for the selected packages.
To understand the dependency tree requiring vulnerable packages, check the raw report with the \`--json\` flag or use \`yarn why <package>\` to get more information as to who depends on them.
`,examples:[["Checks for known security issues with the installed packages. The output is a list of known issues.","yarn npm audit"],["Audit dependencies in all workspaces","yarn npm audit --all"],["Limit auditing to `dependencies` (excludes `devDependencies`)","yarn npm audit --environment production"],["Show audit report as valid JSON","yarn npm audit --json"],["Audit all direct and transitive dependencies","yarn npm audit --recursive"],["Output moderate (or more severe) vulnerabilities","yarn npm audit --severity moderate"]]});var y$=cp;var B$=W(require("path")),_E=W(Zt()),tv=W(require("util")),gp=class extends ye{constructor(){super(...arguments);this.fields=U.String("-f,--fields",{description:"A comma-separated list of manifest fields that should be displayed"});this.json=U.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.packages=U.Rest()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r}=await xe.find(e,this.context.cwd),i=typeof this.fields!="undefined"?new Set(["name",...this.fields.split(/\s*,\s*/)]):null,n=[],s=!1,o=await be.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async a=>{for(let l of this.packages){let c;if(l==="."){let B=r.topLevelWorkspace;if(!B.manifest.name)throw new UsageError(`Missing 'name' field in ${B$.default.join(B.cwd,"package.json")}`);c=S.makeDescriptor(B.manifest.name,"unknown")}else c=S.parseDescriptor(l);let g=Bt.getIdentUrl(c),u=rv(await Bt.get(g,{configuration:e,ident:c,jsonResponse:!0,customErrorMessage:Bt.customPackageError})),h=Object.keys(u.versions).sort(_E.default.compareLoose),d=u["dist-tags"].latest||h[h.length-1];if(_E.default.validRange(c.range)){let B=_E.default.maxSatisfying(h,c.range);B!==null?d=B:(a.reportWarning(q.UNNAMED,`Unmet range ${S.prettyRange(e,c.range)}; falling back to the latest version`),s=!0)}else c.range!=="unknown"&&(a.reportWarning(q.UNNAMED,`Invalid range ${S.prettyRange(e,c.range)}; falling back to the latest version`),s=!0);let m=u.versions[d],I={...u,...m,version:d,versions:h},w;if(i!==null){w={};for(let B of i){let P=I[B];if(typeof P!="undefined")w[B]=P;else{a.reportWarning(q.EXCEPTION,`The '${B}' field doesn't exist inside ${S.prettyIdent(e,c)}'s informations`),s=!0;continue}}}else this.json||(delete I.dist,delete I.readme,delete I.users),w=I;a.reportJson(w),this.json||n.push(w)}});tv.inspect.styles.name="cyan";for(let a of n)(a!==n[0]||s)&&this.context.stdout.write(`
`),this.context.stdout.write(`${tv.inspect(a,{depth:Infinity,colors:!0,compact:!1})}
`);return o.exitCode()}};gp.paths=[["npm","info"]],gp.usage=Ae.Usage({category:"Npm-related commands",description:"show information about a package",details:"\n This command will fetch information about a package from the npm registry, and prints it in a tree format.\n\n The package does not have to be installed locally, but needs to have been published (in particular, local changes will be ignored even for workspaces).\n\n Append `@<range>` to the package argument to provide information specific to the latest version that satisfies the range. If the range is invalid or if there is no version satisfying the range, the command will print a warning and fall back to the latest version.\n\n If the `-f,--fields` option is set, it's a comma-separated list of fields which will be used to only display part of the package informations.\n\n By default, this command won't return the `dist`, `readme`, and `users` fields, since they are often very long. To explicitly request those fields, explicitly list them with the `--fields` flag or request the output in JSON mode.\n ",examples:[["Show all available information about react (except the `dist`, `readme`, and `users` fields)","yarn npm info react"],["Show all available information about react as valid JSON (including the `dist`, `readme`, and `users` fields)","yarn npm info react --json"],["Show all available information about react 16.12.0","yarn npm info react@16.12.0"],["Show the description of react","yarn npm info react --fields description"],["Show all available versions of react","yarn npm info react --fields versions"],["Show the readme of react","yarn npm info react --fields readme"],["Show a few fields of react","yarn npm info react --fields homepage,repository"]]});var w$=gp;function rv(t){if(Array.isArray(t)){let e=[];for(let r of t)r=rv(r),r&&e.push(r);return e}else if(typeof t=="object"&&t!==null){let e={};for(let r of Object.keys(t)){if(r.startsWith("_"))continue;let i=rv(t[r]);i&&(e[r]=i)}return e}else return t||null}var Q$=W(zh()),up=class extends ye{constructor(){super(...arguments);this.scope=U.String("-s,--scope",{description:"Login to the registry configured for a given scope"});this.publish=U.Boolean("--publish",!1,{description:"Login to the publish registry"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),r=await WE({configuration:e,cwd:this.context.cwd,publish:this.publish,scope:this.scope});return(await be.start({configuration:e,stdout:this.context.stdout},async n=>{let s=await FKe({registry:r,report:n,stdin:this.context.stdin,stdout:this.context.stdout}),o=`/-/user/org.couchdb.user:${encodeURIComponent(s.name)}`,a=await Bt.put(o,s,{attemptedAs:s.name,configuration:e,registry:r,jsonResponse:!0,authType:Bt.AuthType.NO_AUTH});return await vKe(r,a.token,{configuration:e,scope:this.scope}),n.reportInfo(q.UNNAMED,"Successfully logged in")})).exitCode()}};up.paths=[["npm","login"]],up.usage=Ae.Usage({category:"Npm-related commands",description:"store new login info to access the npm registry",details:"\n This command will ask you for your username, password, and 2FA One-Time-Password (when it applies). It will then modify your local configuration (in your home folder, never in the project itself) to reference the new tokens thus generated.\n\n Adding the `-s,--scope` flag will cause the authentication to be done against whatever registry is configured for the associated scope (see also `npmScopes`).\n\n Adding the `--publish` flag will cause the authentication to be done against the registry used when publishing the package (see also `publishConfig.registry` and `npmPublishRegistry`).\n ",examples:[["Login to the default registry","yarn npm login"],["Login to the registry linked to the @my-scope registry","yarn npm login --scope my-scope"],["Login to the publish registry for the current package","yarn npm login --publish"]]});var b$=up;async function WE({scope:t,publish:e,configuration:r,cwd:i}){return t&&e?qt.getScopeRegistry(t,{configuration:r,type:qt.RegistryType.PUBLISH_REGISTRY}):t?qt.getScopeRegistry(t,{configuration:r}):e?qt.getPublishRegistry((await Sc(r,i)).manifest,{configuration:r}):qt.getDefaultRegistry({configuration:r})}async function vKe(t,e,{configuration:r,scope:i}){let n=o=>a=>{let l=he.isIndexableObject(a)?a:{},c=l[o],g=he.isIndexableObject(c)?c:{};return{...l,[o]:{...g,npmAuthToken:e}}},s=i?{npmScopes:n(i)}:{npmRegistries:n(t)};return await oe.updateHomeConfiguration(s)}async function FKe({registry:t,report:e,stdin:r,stdout:i}){if(process.env.TEST_ENV)return{name:process.env.TEST_NPM_USER||"",password:process.env.TEST_NPM_PASSWORD||""};e.reportInfo(q.UNNAMED,`Logging in to ${t}`);let n=!1;t.match(/^https:\/\/npm\.pkg\.github\.com(\/|$)/)&&(e.reportInfo(q.UNNAMED,"You seem to be using the GitHub Package Registry. Tokens must be generated with the 'repo', 'write:packages', and 'read:packages' permissions."),n=!0),e.reportSeparator();let{username:s,password:oLine truncated
This command will list all tags of a package from the npm registry.
If the package is not specified, Yarn will default to the current workspace.
`,examples:[["List all tags of package `my-pkg`","yarn npm tag list my-pkg"]]});var x$=pp;async function dp(t,e){let r=`/-/package${Bt.getIdentUrl(t)}/dist-tags`;return Bt.get(r,{configuration:e,ident:t,jsonResponse:!0,customErrorMessage:Bt.customPackageError})}var Cp=class extends ye{constructor(){super(...arguments);this.package=U.String();this.tag=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);let n=S.parseDescriptor(this.package,!0),s=n.range;if(!k$.default.valid(s))throw new UsageError(`The range ${se.pretty(e,n.range,se.Type.RANGE)} must be a valid semver version`);let o=qt.getPublishRegistry(i.manifest,{configuration:e}),a=se.pretty(e,n,se.Type.IDENT),l=se.pretty(e,s,se.Type.RANGE),c=se.pretty(e,this.tag,se.Type.CODE);return(await be.start({configuration:e,stdout:this.context.stdout},async u=>{let h=await dp(n,e);Object.prototype.hasOwnProperty.call(h,this.tag)&&h[this.tag]===s&&u.reportWarning(q.UNNAMED,`Tag ${c} is already set to version ${l}`);let f=`/-/package${Bt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await Bt.put(f,s,{configuration:e,registry:o,ident:n,jsonRequest:!0,jsonResponse:!0}),u.reportInfo(q.UNNAMED,`Tag ${c} added to version ${l} of package ${a}`)})).exitCode()}};Cp.paths=[["npm","tag","add"]],Cp.usage=Ae.Usage({category:"Npm-related commands",description:"add a tag for a specific version of a package",details:`
This command will add a tag to the npm registry for a specific version of a package. If the tag already exists, it will be overwritten.
`,examples:[["Add a `beta` tag for version `2.3.4-beta.4` of package `my-pkg`","yarn npm tag add my-pkg@2.3.4-beta.4 beta"]]});var v$=Cp;var mp=class extends ye{constructor(){super(...arguments);this.package=U.String();this.tag=U.String()}async execute(){if(this.tag==="latest")throw new UsageError("The 'latest' tag cannot be removed.");let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);let n=S.parseIdent(this.package),s=qt.getPublishRegistry(i.manifest,{configuration:e}),o=se.pretty(e,this.tag,se.Type.CODE),a=se.pretty(e,n,se.Type.IDENT),l=await dp(n,e);if(!Object.prototype.hasOwnProperty.call(l,this.tag))throw new UsageError(`${o} is not a tag of package ${a}`);return(await be.start({configuration:e,stdout:this.context.stdout},async g=>{let u=`/-/package${Bt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await Bt.del(u,{configuration:e,registry:s,ident:n,jsonResponse:!0}),g.reportInfo(q.UNNAMED,`Tag ${o} removed from package ${a}`)})).exitCode()}};mp.paths=[["npm","tag","remove"]],mp.usage=Ae.Usage({category:"Npm-related commands",description:"remove a tag from a package",details:`
This command will remove a tag from a package from the npm registry.
`,examples:[["Remove the `beta` tag from package `my-pkg`","yarn npm tag remove my-pkg beta"]]});var F$=mp;var Ip=class extends ye{constructor(){super(...arguments);this.scope=U.String("-s,--scope",{description:"Print username for the registry configured for a given scope"});this.publish=U.Boolean("--publish",!1,{description:"Print username for the publish registry"})}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),r;return this.scope&&this.publish?r=qt.getScopeRegistry(this.scope,{configuration:e,type:qt.RegistryType.PUBLISH_REGISTRY}):this.scope?r=qt.getScopeRegistry(this.scope,{configuration:e}):this.publish?r=qt.getPublishRegistry((await Sc(e,this.context.cwd)).manifest,{configuration:e}):r=qt.getDefaultRegistry({configuration:e}),(await be.start({configuration:e,stdout:this.context.stdout},async n=>{var o,a;let s;try{s=await Bt.get("/-/whoami",{configuration:e,registry:r,authType:Bt.AuthType.ALWAYS_AUTH,jsonResponse:!0,ident:this.scope?S.makeIdent(this.scope,""):void 0})}catch(l){if(((o=l.response)==null?void 0:o.statusCode)===401||((a=l.response)==null?void 0:a.statusCode)===403){n.reportError(q.AUTHENTICATION_INVALID,"Authentication failed - your credentials may have expired");return}else throw l}n.reportInfo(q.UNNAMED,s.username)})).exitCode()}};Ip.paths=[["npm","whoami"]],Ip.usage=Ae.Usage({category:"Npm-related commands",description:"display the name of the authenticated user",details:"\n Print the username associated with the current authentication settings to the standard output.\n\n When using `-s,--scope`, the username printed will be the one that matches the authentication settings of the registry associated with the given scope (those settings can be overriden using the `npmRegistries` map, and the registry associated with the scope is configured via the `npmScopes` map).\n\n When using `--publish`, the registry we'll select will by default be the one used when publishing packages (`publishConfig.registry` or `npmPublishRegistry` if available, otherwise we'll fallback to the regular `npmRegistryServer`).\n ",examples:[["Print username for the default registry","yarn npm whoami"],["Print username for the registry on a given scope","yarn npm whoami --scope company"]]});var R$=Ip;var LKe={configuration:{npmPublishAccess:{description:"Default access of the published packages",type:ae.STRING,default:null}},commands:[y$,w$,b$,S$,P$,v$,x$,F$,R$]},MKe=LKe;var gv={};We(gv,{default:()=>ZKe,patchUtils:()=>nv});var nv={};We(nv,{applyPatchFile:()=>ZE,diffFolders:()=>Av,extractPackageToDisk:()=>av,extractPatchFlags:()=>Y$,isParentRequired:()=>ov,loadPatchFiles:()=>wp,makeDescriptor:()=>zKe,makeLocator:()=>sv,parseDescriptor:()=>yp,parseLocator:()=>Bp,parsePatchFile:()=>VE});var Ep=class extends Error{constructor(e,r){super(`Cannot apply hunk #${e+1}`);this.hunk=r}};var KKe=/^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@.*/;function ag(t){return D.relative(me.root,D.resolve(me.root,npath.toPortablePath(t)))}function OKe(t){let e=t.trim().match(KKe);if(!e)throw new Error(`Bad header line: '${t}'`);return{original:{start:Math.max(Number(e[1]),1),length:Number(e[3]||1)},patched:{start:Math.max(Number(e[4]),1),length:Number(e[6]||1)}}}var TKe=420,UKe=493,hr;(function(t){t.Context="context",t.Insertion="insertion",t.Deletion="deletion"})(hr||(hr={}));var N$=()=>({semverExclusivity:null,diffLineFromPath:null,diffLineToPath:null,oldMode:null,newMode:null,deletedFileMode:null,newFileMode:null,renameFrom:null,renameTo:null,beforeHash:null,afterHash:null,fromPath:null,toPath:null,hunks:null}),YKe=t=>({header:OKe(t),parts:[]}),HKe={["@"]:"header",["-"]:hr.Deletion,["+"]:hr.Insertion,[" "]:hr.Context,["\\"]:"pragma",undefined:hr.Context};function GKe(t){let e=[],r=N$(),i="parsing header",n=null,s=null;function o(){n&&(s&&(n.parts.push(s),s=null),r.hunks.push(n),n=null)}function a(){o(),e.push(r),r=N$()}for(let l=0;l<t.length;l++){let c=t[l];if(i==="parsing header")if(c.startsWith("@@"))i="parsing hunks",r.hunks=[],l-=1;else if(c.startsWith("diff --git ")){r&&r.diffLineFromPath&&a();let g=c.match(/^diff --git a\/(.*?) b\/(.*?)\s*$/);if(!g)throw new Error(`Bad diff line: ${c}`);r.diffLineFromPath=g[1],r.diffLineToPath=g[2]}else if(c.startsWith("old mode "))r.oldMode=c.slice("old mode ".length).trim();else if(c.startsWith("new mode "))r.newMode=c.slice("new mode ".length).trim();else if(c.startsWith("deleted file mode "))r.deletedFileMode=c.slice("deleted file mode ".length).trim();else if(c.startsWith("new file mode "))r.newFileMode=c.slice("new file mode ".length).trim();else if(c.startsWith("rename from "))r.renameFrom=c.slice("rename from ".length).trim();else if(c.startsWith("rename to "))r.renameTo=c.slice("rename to ".length).trim();else if(c.startsWith("index ")){let g=c.match(/(\w+)\.\.(\w+)/);if(!g)continue;r.beforeHash=g[1],r.afterHash=g[2]}else c.startsWith("semver exclusivity ")?r.semverExclusivity=c.slice("semver exclusivity ".length).trim():c.startsWith("--- ")?r. Line truncated
`)+(n.hunk.parts[0].noNewlineAtEndOfFile?"":`
`):"";await e.mkdirpPromise(D.dirname(n.path),{chmod:493,utimes:[XE,XE]}),await e.writeFilePromise(n.path,s,{mode:n.mode}),await e.utimesPromise(n.path,XE,XE)}break;case"patch":await Ag(e,n.path,async()=>{await JKe(n,{baseFs:e,dryRun:r})});break;case"mode change":{let o=(await e.statPromise(n.path)).mode;if(L$(n.newMode)!==L$(o))continue;await Ag(e,n.path,async()=>{await e.chmodPromise(n.path,n.newMode)})}break;default:he.assertNever(n);break}}function L$(t){return(t&64)>0}function M$(t){return t.replace(/\s+$/,"")}function _Ke(t,e){return M$(t)===M$(e)}async function JKe({hunks:t,path:e},{baseFs:r,dryRun:i=!1}){let n=await r.statSync(e).mode,o=(await r.readFileSync(e,"utf8")).split(/\n/),a=[],l=0,c=0;for(let u of t){let h=Math.max(c,u.header.patched.start+l),f=Math.max(0,h-c),d=Math.max(0,o.length-h-u.header.original.length),m=Math.max(f,d),I=0,w=0,B=null;for(;I<=m;){if(I<=f&&(w=h-I,B=K$(u,o,w),B!==null)){I=-I;break}if(I<=d&&(w=h+I,B=K$(u,o,w),B!==null))break;I+=1}if(B===null)throw new Ep(t.indexOf(u),u);a.push(B),l+=I,c=w+u.header.original.length}if(i)return;let g=0;for(let u of a)for(let h of u)switch(h.type){case"splice":{let f=h.index+g;o.splice(f,h.numToDelete,...h.linesToInsert),g+=h.linesToInsert.length-h.numToDelete}break;case"pop":o.pop();break;case"push":o.push(h.line);break;default:he.assertNever(h);break}await r.writeFilePromise(e,o.join(`
`),{mode:n})}function K$(t,e,r){let i=[];for(let n of t.parts)switch(n.type){case hr.Context:case hr.Deletion:{for(let s of n.lines){let o=e[r];if(o==null||!_Ke(o,s))return null;r+=1}n.type===hr.Deletion&&(i.push({type:"splice",index:r-n.lines.length,numToDelete:n.lines.length,linesToInsert:[]}),n.noNewlineAtEndOfFile&&i.push({type:"push",line:""}))}break;case hr.Insertion:i.push({type:"splice",index:r,numToDelete:0,linesToInsert:n.lines}),n.noNewlineAtEndOfFile&&i.push({type:"pop"});break;default:he.assertNever(n.type);break}return i}var WKe=/^builtin<([^>]+)>$/;function O$(t,e){let{source:r,selector:i,params:n}=S.parseRange(t);if(r===null)throw new Error("Patch locators must explicitly define their source");let s=i?i.split(/&/).map(c=>npath.toPortablePath(c)):[],o=n&&typeof n.locator=="string"?S.parseLocator(n.locator):null,a=n&&typeof n.version=="string"?n.version:null,l=e(r);return{parentLocator:o,sourceItem:l,patchPaths:s,sourceVersion:a}}function yp(t){let{sourceItem:e,...r}=O$(t.range,S.parseDescriptor);return{...r,sourceDescriptor:e}}function Bp(t){let{sourceItem:e,...r}=O$(t.reference,S.parseLocator);return{...r,sourceLocator:e}}function T$({parentLocator:t,sourceItem:e,patchPaths:r,sourceVersion:i,patchHash:n},s){let o=t!==null?{locator:S.stringifyLocator(t)}:{},a=typeof i!="undefined"?{version:i}:{},l=typeof n!="undefined"?{hash:n}:{};return S.makeRange({protocol:"patch:",source:s(e),selector:r.join("&"),params:{...a,...l,...o}})}function zKe(t,{parentLocator:e,sourceDescriptor:r,patchPaths:i}){return S.makeLocator(t,T$({parentLocator:e,sourceItem:r,patchPaths:i},S.stringifyDescriptor))}function sv(t,{parentLocator:e,sourcePackage:r,patchPaths:i,patchHash:n}){return S.makeLocator(t,T$({parentLocator:e,sourceItem:r,sourceVersion:r.version,patchPaths:i,patchHash:n},S.stringifyLocator))}function U$({onAbsolute:t,onRelative:e,onBuiltin:r},i){i.startsWith("~")&&(i=i.slice(1));let s=i.match(WKe);return s!==null?r(s[1]):D.isAbsolute(i)?t(i):e(i)}function Y$(t){let e=t.startsWith("~");return e&&(t=t.slice(1)),{optional:e}}function ov(t){return U$({onAbsolute:()=>!1,onRelative:()=>!0,onBuiltin:()=>!1},t)}async function wp(t,e,r){let i=t!==null?await r.fetcher.fetch(t,r):null,n=i&&i.localPath?{packageFs:new It(me.root),prefixPath:D.relative(me.root,i.localPath)}:i;i&&i!==n&&i.releaseFs&&i.releaseFs();let s=await he.releaseAfterUseAsync(async()=>await Promise.all(e.map(async o=>{let a=Y$(o),l=await U$({onAbsolute:async()=>await L.readFilePromise(o,"utf8"),onRelative:async()=>{if(n===null)throw new Error("Assertion failed: The parent locator should have been fetched");return await n.packageFs.readFilePromise(D.join(n.prefixPath,o),"utf8")},onBuiltin:async c=>await r.project.configuration.firstHook(g=>g.getBuiltinPatch,r.project,c)},o);return{...a,source:l}})));for(let o of s)typeof o.source=="string"&&(o.source=o.source.replace(/\r\n?/g,`
`));return s}async function av(t,{cache:e,project:r}){let i=r.storedPackages.get(t.locatorHash);if(typeof i=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let n=r.storedChecksums,s=new br,o=r.configuration.makeFetcher(),a=await o.fetch(t,{cache:e,project:r,fetcher:o,checksums:n,report:s}),l=await L.mktempPromise(),c=D.join(l,"source"),g=D.join(l,"user"),u=D.join(l,".yarn-patch.json");return await Promise.all([L.copyPromise(c,a.prefixPath,{baseFs:a.packageFs}),L.copyPromise(g,a.prefixPath,{baseFs:a.packageFs}),L.writeJsonPromise(u,{locator:S.stringifyLocator(t),version:i.version})]),L.detachTemp(l),g}async function Av(t,e){let r=npath.fromPortablePath(t).replace(/\\/g,"/"),i=npath.fromPortablePath(e).replace(/\\/g,"/"),{stdout:n,stderr:s}=await Ir.execvp("git",["-c","core.safecrlf=false","diff","--src-prefix=a/","--dst-prefix=b/","--ignore-cr-at-eol","--full-index","--no-index","--text",r,i],{cwd:npath.toPortablePath(process.cwd())});if(s.length>0)throw new Error(`Unable to diff directories. Make sure you have a recent version of 'git' available in PATH.
The following error was reported by 'git':
${s}`);let o=r.startsWith("/")?a=>a.slice(1):a=>a;return n.replace(new RegExp(`(a|b)(${he.escapeRegExp(`/${o(r)}/`)})`,"g"),"$1/").replace(new RegExp(`(a|b)${he.escapeRegExp(`/${o(i)}/`)}`,"g"),"$1/").replace(new RegExp(he.escapeRegExp(`${r}/`),"g"),"").replace(new RegExp(he.escapeRegExp(`${i}/`),"g"),"")}function H$(t,{configuration:e,report:r}){for(let i of t.parts)for(let n of i.lines)switch(i.type){case hr.Context:r.reportInfo(null,` ${se.pretty(e,n,"grey")}`);break;case hr.Deletion:r.reportError(q.FROZEN_LOCKFILE_EXCEPTION,`- ${se.pretty(e,n,se.Type.REMOVED)}`);break;case hr.Insertion:r.reportError(q.FROZEN_LOCKFILE_EXCEPTION,`+ ${se.pretty(e,n,se.Type.ADDED)}`);break;default:he.assertNever(i.type)}}var lv=class{supports(e,r){return!!e.reference.startsWith("patch:")}getLocalPath(e,r){return null}async fetch(e,r){let i=r.checksums.get(e.locatorHash)||null,[n,s,o]=await r.cache.fetchPackageFromCache(e,i,{onHit:()=>r.report.reportCacheHit(e),onMiss:()=>r.report.reportCacheMiss(e,`${S.prettyLocator(r.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.patchPackage(e,r),skipIntegrityCheck:r.skipIntegrityCheck});return{packageFs:n,releaseFs:s,prefixPath:S.getIdentVendorPath(e),localPath:this.getLocalPath(e,r),checksum:o}}async patchPackage(e,r){let{parentLocator:i,sourceLocator:n,sourceVersion:s,patchPaths:o}=Bp(e),a=await wp(i,o,r),l=await L.mktempPromise(),c=D.join(l,"current.zip"),g=await r.fetcher.fetch(n,r),u=S.getIdentVendorPath(e),h=await oi(),f=new Sr(c,{libzip:h,create:!0,level:r.project.configuration.get("compressionLevel")});await f.mkdirpPromise(u),await he.releaseAfterUseAsync(async()=>{await f.copyPromise(u,g.prefixPath,{baseFs:g.packageFs,stableSort:!0})},g.releaseFs),f.saveAndClose();for(let{source:d,optional:m}of a){if(d===null)continue;let I=new Sr(c,{libzip:h,level:r.project.configuration.get("compressionLevel")}),w=new It(D.resolve(me.root,u),{baseFs:I});try{await ZE(VE(d),{baseFs:w,version:s})}catch(B){if(!(B instanceof Ep))throw B;let P=r.project.configuration.get("enableInlineHunks"),k=!P&&!m?" (set enableInlineHunks for details)":"",M=`${S.prettyLocator(r.project.configuration,e)}: ${B.message}${k}`,Y=v=>{!P||H$(B.hunk,{configuration:r.project.configuration,report:v})};if(I.discardAndClose(),m){r.report.reportWarningOnce(q.PATCH_HUNK_FAILED,M,{reportExtra:Y});continue}else throw new _e(q.PATCH_HUNK_FAILED,M,Y)}I.saveAndClose()}return new Sr(c,{libzip:h,level:r.project.configuration.get("compressionLevel")})}};var VKe=2,cv=class{supportsDescriptor(e,r){return!!e.range.startsWith("patch:")}supportsLocator(e,r){return!!e.reference.startsWith("patch:")}shouldPersistResolution(e,r){return!1}bindDescriptor(e,r,i){let{patchPaths:n}=yp(e);return n.every(s=>!ov(s))?e:S.bindDescriptor(e,{locator:S.stringifyLocator(r)})}getResolutionDependencies(e,r){let{sourceDescriptor:i}=yp(e);return[i]}async getCandidates(e,r,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{parentLocator:n,sourceDescriptor:s,patchPaths:o}=yp(e),a=await wp(n,o,i.fetchOptions),l=r.get(s.descriptorHash);if(typeof l=="undefined")throw new Error("Assertion failed: The dependency should have been resolved");let c=Dn.makeHash(`${VKe}`,...a.map(g=>JSON.stringify(g))).slice(0,6);return[sv(e,{parentLocator:n,sourcePackage:l,patchPaths:o,patchHash:c})]}async getSatisfying(e,r,i){return null}async resolve(e,r){let{sourceLocator:i}=Bp(e);return{...await r.resolver.resolve(i,r),...e}}};var Qp=class extends ye{constructor(){super(...arguments);this.save=U.Boolean("-s,--save",!1,{description:"Add the patch to your resolution entries"});this.patchFolder=U.String()}async execute(){let e=await oe.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await xe.find(e,this.context.cwd);if(!i)throw new ze(r.cwd,this.context.cwd);await r.restoreInstallState();let n=D.resolve(this.context.cwd,npath.toPortablePath(this.patchFolder)),s=D.join(n,"../source"),o=D.join(n,"../.yarn-patch.json");if(!L.existsSync(s))throw new UsageError("The argument folder didn't get created by 'yarn patch'");let a=await Av(s,n),l=await L.readJsonPromise(o),c=S.parseLocator(l.locator,!0);if(!r.storedPackages.has(c.locatorHash))throw new UsageError("No package found in the project for the given locator");if(!this.save){this.context.stdout.write(a);return}let g=e.get("patchFolder"),u=D.join(g,S.slugifyLocator(c));await L.mkdirPromise(g,{recursive:!0}),await L.writeFilePromise(u,a);let h=D.relative(r.cwd,u);r.topLevelWorkspace.manifest.resolutions.push({pattern:{descriptor:{fullName:S.stringifyIdent(c),description:l.version}},reference:`patch:${S.stringifyLocator(c)}#${h}`}),await r.persist()}};Qp.paths=[["patch-commit"]],Qp.usage=Ae.Usage({description:"generate a patch out of a directory",details:"\n This will print a patchfile on stdout based on the diff between the folder passed in and the original version of the package. SuchLine truncated
${o.map(a=>`
- ${S.prettyLocator(e,a)}`).join("")}`);s=o[0]}if(!r.storedPackages.has(s.locatorHash))throw new UsageError("No package found in the project for the given locator");await be.start({configuration:e,json:this.json,stdout:this.context.stdout},async o=>{let a=await av(s,{cache:n,project:r});o.reportJson({locator:S.stringifyLocator(s),path:npath.fromPortablePath(a)}),o.reportInfo(q.UNNAMED,`Package ${S.prettyLocator(e,s)} got extracted with success!`),o.reportInfo(q.UNNAMED,`You can now edit the following folder: ${se.pretty(e,npath.fromPortablePath(a),"magenta")}`),o.reportInfo(q.UNNAMED,`Once you are done run ${se.pretty(e,`yarn patch-commit ${npath.fromPortablePath(a)}`,"cyan")} and Yarn will store a patchfile based on your changes.`)})}};bp.paths=[["patch"]],bp.usage=Ae.Usage({description:"prepare a package for patching",details:'\n This command will cause a package to be extracted in a temporary directory (under a folder named "patch-workdir"). This folder will be editable at will; running `yarn patch` inside it will then cause Yarn to generate a patchfile and register it into your top-level manifest (cf the `patch:` protocol).\n '});var G$=bp;var XKe={configuration:{enableInlineHunks:{description:"If true, the installs will print unmatched patch hunks",type:ae.BOOLEAN,default:!1},patchFolder:{description:"Folder where the patch files must be written",type:ae.ABSOLUTE_PATH,default:"./.yarn/patches"}},commands:[j$,G$],fetchers:[lv],resolvers:[cv]},ZKe=XKe;var UI=()=>({modules:new Map([["@yarnpkg/cli",qh],["@yarnpkg/core",Gh],["@yarnpkg/fslib",Yg],["@yarnpkg/libzip",qu],["@yarnpkg/parsers",Zu],["@yarnpkg/shell",eh],["clipanion",NW($g)],["semver",$Ke],["typanion",eOe],["@yarnpkg/plugin-essentials",vP],["@yarnpkg/plugin-compat",LP],["@yarnpkg/plugin-dlx",MP],["@yarnpkg/plugin-file",qP],["@yarnpkg/plugin-git",XP],["@yarnpkg/plugin-github",$P],["@yarnpkg/plugin-http",rx],["@yarnpkg/plugin-init",ox],["@yarnpkg/plugin-link",gx],["@yarnpkg/plugin-node-modules",Vx],["@yarnpkg/plugin-npm",Zk],["@yarnpkg/plugin-npm-cli",iv],["@yarnpkg/plugin-pack",Wk],["@yarnpkg/plugin-patch",gv],["@yarnpkg/plugin-pnp",Rx]]),plugins:new Set(["@yarnpkg/plugin-essentials","@yarnpkg/plugin-compat","@yarnpkg/plugin-dlx","@yarnpkg/plugin-file","@yarnpkg/plugin-git","@yarnpkg/plugin-github","@yarnpkg/plugin-http","@yarnpkg/plugin-init","@yarnpkg/plugin-link","@yarnpkg/plugin-node-modules","@yarnpkg/plugin-npm","@yarnpkg/plugin-npm-cli","@yarnpkg/plugin-pack","@yarnpkg/plugin-patch","@yarnpkg/plugin-pnp"])});TI({binaryVersion:Ri||"<unknown>",pluginConfiguration:UI()});})();
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* is-windows <https://github.com/jonschlinkert/is-windows>
*
* Copyright © 2015-2018, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/
+1 -1
View File
@@ -10,4 +10,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
yarnPath: .yarn/releases/yarn-2.4.1.cjs
yarnPath: .yarn/releases/yarn-3.0.0-rc.2.cjs
+3 -3
View File
@@ -8,7 +8,7 @@
"packages/*"
],
"resolutions": {
"typescript": "^4.2.4"
"typescript": "^4.3.2"
},
"scripts": {
"build": "polkadot-dev-build-ts",
@@ -29,8 +29,8 @@
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.14.0",
"@polkadot/dev": "^0.62.20",
"@polkadot/ts": "^0.3.69",
"@polkadot/dev": "^0.62.22",
"@polkadot/ts": "^0.3.71",
"@types/jest": "^26.0.23",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
+1 -1
View File
@@ -34,7 +34,7 @@
"@babel/runtime": "^7.14.0",
"@react-native-community/cli-platform-ios": "^5.0.1-alpha.2",
"@types/react-test-renderer": "17.0.1",
"babel-jest": "^27.0.1",
"babel-jest": "^27.0.2",
"metro-react-native-babel-preset": "^0.66.0",
"react-test-renderer": "17.0.2"
},
+1984 -1985
View File
File diff suppressed because it is too large. Load diff