@wix/cli 1.1.53 → 1.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/DevCommand-OPMYQBQO.js +4 -0
- package/build/DevCommand-PWWAORLA.js +4 -0
- package/build/DevCommand-PWWAORLA.js.map +1 -0
- package/build/LoginCommand-WY6DLWSR.js +4 -0
- package/build/LoginCommand-WY6DLWSR.js.map +1 -0
- package/build/LogoutCommand-4XUYL32R.js +4 -0
- package/build/LogoutCommand-4XUYL32R.js.map +1 -0
- package/build/WhoamiCommand-DEU5CPCY.js +4 -0
- package/build/WhoamiCommand-DEU5CPCY.js.map +1 -0
- package/build/check.js +1 -1
- package/build/chunk-52Q35AIU.js +4 -0
- package/build/chunk-52Q35AIU.js.map +1 -0
- package/build/{chunk-7BQFFAUZ.js → chunk-5GZ44LZG.js} +2 -2
- package/build/{chunk-BMOERFDR.js → chunk-B5FU6B7H.js} +2 -2
- package/build/{chunk-IJZKXMQR.js → chunk-BLU4HRZE.js} +2 -2
- package/build/{chunk-IJZKXMQR.js.map → chunk-BLU4HRZE.js.map} +1 -1
- package/build/{chunk-TLPEI3DE.js → chunk-C4I6VFE7.js} +2 -2
- package/build/chunk-COSE3VCT.js +14 -0
- package/build/chunk-COSE3VCT.js.map +1 -0
- package/build/chunk-CVDLBCEY.js +6 -0
- package/build/{chunk-QR6CA3JS.js.map → chunk-CVDLBCEY.js.map} +1 -1
- package/build/{chunk-EF7XRYVI.js → chunk-CXUHBNPP.js} +2 -2
- package/build/{chunk-4TZRQ3QU.js → chunk-EXKXKMOZ.js} +3 -3
- package/build/{chunk-4TZRQ3QU.js.map → chunk-EXKXKMOZ.js.map} +1 -1
- package/build/{chunk-EY7RCO4T.js → chunk-GCM6E6UB.js} +4 -4
- package/build/{chunk-LB5TLBLJ.js → chunk-H4A4LESA.js} +2 -2
- package/build/chunk-IECEFWH2.js +4 -0
- package/build/chunk-IECEFWH2.js.map +1 -0
- package/build/{chunk-GZENQUN7.js → chunk-JPTOEPBL.js} +2 -2
- package/build/{chunk-S36EOI4U.js → chunk-KCPEZYDE.js} +2 -2
- package/build/{chunk-S36EOI4U.js.map → chunk-KCPEZYDE.js.map} +1 -1
- package/build/chunk-LJGLNQKN.js +4 -0
- package/build/{chunk-IWNMSC26.js.map → chunk-LJGLNQKN.js.map} +1 -1
- package/build/{chunk-4QPHCHJW.js → chunk-MCYLPYJV.js} +12 -12
- package/build/chunk-MCYLPYJV.js.map +1 -0
- package/build/{chunk-TMNJT4K2.js → chunk-NOCPDXVB.js} +2 -2
- package/build/{chunk-GV2I3G6V.js → chunk-P6O6SHMD.js} +2 -2
- package/build/chunk-PCOHTRKC.js +43 -0
- package/build/chunk-PCOHTRKC.js.map +1 -0
- package/build/chunk-QOHOP5JZ.js +4 -0
- package/build/{chunk-TKKL34KV.js.map → chunk-QOHOP5JZ.js.map} +1 -1
- package/build/{chunk-RDCDD7PY.js → chunk-QRXJXTDM.js} +3 -3
- package/build/chunk-QRXJXTDM.js.map +1 -0
- package/build/chunk-S4HJR2C7.js +4 -0
- package/build/chunk-S4HJR2C7.js.map +1 -0
- package/build/chunk-T2KRHPO3.js +4 -0
- package/build/chunk-T2KRHPO3.js.map +1 -0
- package/build/chunk-TAYZEZR6.js +4 -0
- package/build/{chunk-MKPJSE47.js.map → chunk-TAYZEZR6.js.map} +1 -1
- package/build/{chunk-HFEQOIPO.js → chunk-TIK7QUFJ.js} +7 -7
- package/build/{chunk-HFEQOIPO.js.map → chunk-TIK7QUFJ.js.map} +1 -1
- package/build/{chunk-HYN4ASGJ.js → chunk-U343CA3G.js} +2 -2
- package/build/{chunk-X5AJ545J.js → chunk-UJGKVZPY.js} +2 -2
- package/build/{chunk-K656WQZA.js → chunk-Z7AFBSZS.js} +1 -1
- package/build/chunk-Z7AFBSZS.js.map +1 -0
- package/build/{dev-OZ4S4GUU.js → dev-SWU5Z4K7.js} +3 -3
- package/build/{dev-OZ4S4GUU.js.map → dev-SWU5Z4K7.js.map} +1 -1
- package/build/index.js +5 -5
- package/build/index.js.map +1 -1
- package/build/install-LUXGKYPY.js +4 -0
- package/build/{install-4XH2HAZU.js.map → install-LUXGKYPY.js.map} +1 -1
- package/build/{preview-DJ3YTZFH.js → preview-4TUW247V.js} +2 -2
- package/build/publish-4AEQZIB3.js +4 -0
- package/build/{publish-EJJKJ7G3.js.map → publish-4AEQZIB3.js.map} +1 -1
- package/build/{render-command-JXLZARGV.js → render-command-HDNAQLRA.js} +2 -2
- package/build/{render-command-3OMUCLNT.js → render-command-NUO5TPGR.js} +2 -2
- package/build/render-command-O3AJM5TP.js +4 -0
- package/build/{run-command-DK2LPCQK.js → run-command-JPWX3IS6.js} +2 -2
- package/build/{src-VO7IYGOL.js → src-3VVCCD5E.js} +2 -2
- package/build/{src-RULULE6P.js → src-AFJWFYAO.js} +2 -2
- package/build/{src-2Z3OBNXW.js → src-EYNG7WNS.js} +2 -2
- package/build/{src-LHL46IXF.js → src-PLSNGNQQ.js} +2 -2
- package/build/{src-SVG7CLZC.js → src-WZKHASEF.js} +2 -2
- package/build/src-YZVHE5YE.js +4 -0
- package/build/{src-ZIMNO3M4.js → src-ZXBFFRDK.js} +2 -2
- package/build/sync-types-QSAUBUTI.js +4 -0
- package/build/uninstall-GS76M3XH.js +4 -0
- package/build/uninstall-GS76M3XH.js.map +1 -0
- package/build/{update-notifier-S5PQKIDE.js → update-notifier-LCY3CRNY.js} +2 -2
- package/package.json +2 -2
- package/build/DevCommand-46IDVEZB.js +0 -4
- package/build/DevCommand-46IDVEZB.js.map +0 -1
- package/build/DevCommand-JZHKZEFU.js +0 -4
- package/build/LoginCommand-RISH2J4W.js +0 -4
- package/build/LoginCommand-RISH2J4W.js.map +0 -1
- package/build/LogoutCommand-2IZTG5XL.js +0 -4
- package/build/LogoutCommand-2IZTG5XL.js.map +0 -1
- package/build/WhoamiCommand-NPGL3NUE.js +0 -4
- package/build/WhoamiCommand-NPGL3NUE.js.map +0 -1
- package/build/chunk-4QPHCHJW.js.map +0 -1
- package/build/chunk-CHKQFLY7.js +0 -4
- package/build/chunk-CHKQFLY7.js.map +0 -1
- package/build/chunk-EYG6XDPV.js +0 -14
- package/build/chunk-EYG6XDPV.js.map +0 -1
- package/build/chunk-GACCQUWO.js +0 -43
- package/build/chunk-GACCQUWO.js.map +0 -1
- package/build/chunk-IGW62DO3.js +0 -4
- package/build/chunk-IGW62DO3.js.map +0 -1
- package/build/chunk-IWNMSC26.js +0 -4
- package/build/chunk-K656WQZA.js.map +0 -1
- package/build/chunk-MKPJSE47.js +0 -4
- package/build/chunk-QR6CA3JS.js +0 -6
- package/build/chunk-RDCDD7PY.js.map +0 -1
- package/build/chunk-SACP24AF.js +0 -4
- package/build/chunk-SACP24AF.js.map +0 -1
- package/build/chunk-TKKL34KV.js +0 -4
- package/build/chunk-VL5SOKL4.js +0 -4
- package/build/chunk-VL5SOKL4.js.map +0 -1
- package/build/install-4XH2HAZU.js +0 -4
- package/build/publish-EJJKJ7G3.js +0 -4
- package/build/render-command-72ZACVOW.js +0 -4
- package/build/src-FS2Y3G43.js +0 -4
- package/build/sync-types-5ZCYSP5V.js +0 -4
- package/build/uninstall-E4UAQBCF.js +0 -4
- package/build/uninstall-E4UAQBCF.js.map +0 -1
- /package/build/{DevCommand-JZHKZEFU.js.map → DevCommand-OPMYQBQO.js.map} +0 -0
- /package/build/{chunk-7BQFFAUZ.js.map → chunk-5GZ44LZG.js.map} +0 -0
- /package/build/{chunk-BMOERFDR.js.map → chunk-B5FU6B7H.js.map} +0 -0
- /package/build/{chunk-TLPEI3DE.js.map → chunk-C4I6VFE7.js.map} +0 -0
- /package/build/{chunk-EF7XRYVI.js.map → chunk-CXUHBNPP.js.map} +0 -0
- /package/build/{chunk-EY7RCO4T.js.map → chunk-GCM6E6UB.js.map} +0 -0
- /package/build/{chunk-LB5TLBLJ.js.map → chunk-H4A4LESA.js.map} +0 -0
- /package/build/{chunk-GZENQUN7.js.map → chunk-JPTOEPBL.js.map} +0 -0
- /package/build/{chunk-TMNJT4K2.js.map → chunk-NOCPDXVB.js.map} +0 -0
- /package/build/{chunk-GV2I3G6V.js.map → chunk-P6O6SHMD.js.map} +0 -0
- /package/build/{chunk-HYN4ASGJ.js.map → chunk-U343CA3G.js.map} +0 -0
- /package/build/{chunk-X5AJ545J.js.map → chunk-UJGKVZPY.js.map} +0 -0
- /package/build/{preview-DJ3YTZFH.js.map → preview-4TUW247V.js.map} +0 -0
- /package/build/{render-command-JXLZARGV.js.map → render-command-HDNAQLRA.js.map} +0 -0
- /package/build/{render-command-3OMUCLNT.js.map → render-command-NUO5TPGR.js.map} +0 -0
- /package/build/{render-command-72ZACVOW.js.map → render-command-O3AJM5TP.js.map} +0 -0
- /package/build/{run-command-DK2LPCQK.js.map → run-command-JPWX3IS6.js.map} +0 -0
- /package/build/{src-VO7IYGOL.js.map → src-3VVCCD5E.js.map} +0 -0
- /package/build/{src-RULULE6P.js.map → src-AFJWFYAO.js.map} +0 -0
- /package/build/{src-2Z3OBNXW.js.map → src-EYNG7WNS.js.map} +0 -0
- /package/build/{src-LHL46IXF.js.map → src-PLSNGNQQ.js.map} +0 -0
- /package/build/{src-FS2Y3G43.js.map → src-WZKHASEF.js.map} +0 -0
- /package/build/{src-SVG7CLZC.js.map → src-YZVHE5YE.js.map} +0 -0
- /package/build/{src-ZIMNO3M4.js.map → src-ZXBFFRDK.js.map} +0 -0
- /package/build/{sync-types-5ZCYSP5V.js.map → sync-types-QSAUBUTI.js.map} +0 -0
- /package/build/{update-notifier-S5PQKIDE.js.map → update-notifier-LCY3CRNY.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as DI}from"./chunk-6MEM22XR.js";import{a as _v}from"./chunk-66OBCXPW.js";import{a as Av}from"./chunk-CCZ55TG3.js";import{a as xI}from"./chunk-2U7VPZZN.js";import{a as wI}from"./chunk-U37RKZCU.js";import{c as Dv,d as Cv,e as Xd,f as aa}from"./chunk-RDCDD7PY.js";import{d as bI}from"./chunk-GACCQUWO.js";import{a as yI,b as bn,c as EI}from"./chunk-TLPEI3DE.js";import{a as SI,b as vI,d as oa}from"./chunk-TVMTOQUC.js";import{a as Lt}from"./chunk-ZKQ4ECXC.js";import{b as Jd}from"./chunk-QR6CA3JS.js";import{a as b,c as S,e as ds,g as __dirname,i as y}from"./chunk-UO4ZAUJK.js";var Nv=S((ca,Wd)=>{"use strict";y();(function(e,t){typeof ca=="object"&&typeof Wd=="object"?Wd.exports=t():typeof define=="function"&&define.amd?define([],t):typeof ca=="object"?ca.esprima=t():e.esprima=t()})(ca,function(){return function(i){var e={};function t(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return i[r].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}return t.m=i,t.c=e,t.p="",t(0)}([function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(1),s=t(3),n=t(8),o=t(15);function a(d,h,u){var p=null,g=function(T,O){u&&u(T,O),p&&p.visit(T,O)},E=typeof u=="function"?g:null,v=!1;if(h){v=typeof h.comment=="boolean"&&h.comment;var D=typeof h.attachComment=="boolean"&&h.attachComment;(v||D)&&(p=new r.CommentHandler,p.attach=D,h.comment=!0,E=g)}var x=!1;h&&typeof h.sourceType=="string"&&(x=h.sourceType==="module");var w;h&&typeof h.jsx=="boolean"&&h.jsx?w=new s.JSXParser(d,h,E):w=new n.Parser(d,h,E);var _=x?w.parseModule():w.parseScript(),R=_;return v&&p&&(R.comments=p.comments),w.config.tokens&&(R.tokens=w.tokens),w.config.tolerant&&(R.errors=w.errorHandler.errors),R}e.parse=a;function c(d,h,u){var p=h||{};return p.sourceType="module",a(d,p,u)}e.parseModule=c;function l(d,h,u){var p=h||{};return p.sourceType="script",a(d,p,u)}e.parseScript=l;function f(d,h,u){var p=new o.Tokenizer(d,h),g;g=[];try{for(;;){var E=p.getNextToken();if(!E)break;u&&(E=u(E)),g.push(E)}}catch(v){p.errorHandler.tolerate(v)}return p.errorHandler.tolerant&&(g.errors=p.errors()),g}e.tokenize=f;var m=t(2);e.Syntax=m.Syntax,e.version="4.0.1"},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function n(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return n.prototype.insertInnerComments=function(o,a){if(o.type===r.Syntax.BlockStatement&&o.body.length===0){for(var c=[],l=this.leading.length-1;l>=0;--l){var f=this.leading[l];a.end.offset>=f.start&&(c.unshift(f.comment),this.leading.splice(l,1),this.trailing.splice(l,1))}c.length&&(o.innerComments=c)}},n.prototype.findTrailingComments=function(o){var a=[];if(this.trailing.length>0){for(var c=this.trailing.length-1;c>=0;--c){var l=this.trailing[c];l.start>=o.end.offset&&a.unshift(l.comment)}return this.trailing.length=0,a}var f=this.stack[this.stack.length-1];if(f&&f.node.trailingComments){var m=f.node.trailingComments[0];m&&m.range[0]>=o.end.offset&&(a=f.node.trailingComments,delete f.node.trailingComments)}return a},n.prototype.findLeadingComments=function(o){for(var a=[],c;this.stack.length>0;){var l=this.stack[this.stack.length-1];if(l&&l.start>=o.start.offset)c=l.node,this.stack.pop();else break}if(c){for(var f=c.leadingComments?c.leadingComments.length:0,m=f-1;m>=0;--m){var d=c.leadingComments[m];d.range[1]<=o.start.offset&&(a.unshift(d),c.leadingComments.splice(m,1))}return c.leadingComments&&c.leadingComments.length===0&&delete c.leadingComments,a}for(var m=this.leading.length-1;m>=0;--m){var l=this.leading[m];l.start<=o.start.offset&&(a.unshift(l.comment),this.leading.splice(m,1))}return a},n.prototype.visitNode=function(o,a){if(!(o.type===r.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,a);var c=this.findTrailingComments(a),l=this.findLeadingComments(a);l.length>0&&(o.leadingComments=l),c.length>0&&(o.trailingComments=c),this.stack.push({node:o,start:a.start.offset})}},n.prototype.visitComment=function(o,a){var c=o.type[0]==="L"?"Line":"Block",l={type:c,value:o.value};if(o.range&&(l.range=o.range),o.loc&&(l.loc=o.loc),this.comments.push(l),this.attach){var f={comment:{type:c,value:o.value,range:[a.start.offset,a.end.offset]},start:a.start.offset};o.loc&&(f.comment.loc=o.loc),o.type=c,this.leading.push(f),this.trailing.push(f)}},n.prototype.visit=function(o,a){o.type==="LineComment"?this.visitComment(o,a):o.type==="BlockComment"?this.visitComment(o,a):this.attach&&this.visitNode(o,a)},n}();e.CommentHandler=s},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,e,t){"use strict";var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])};return function(u,p){h(u,p);function g(){this.constructor=u}u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=t(4),n=t(5),o=t(6),a=t(7),c=t(8),l=t(13),f=t(14);l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";function m(h){var u;switch(h.type){case o.JSXSyntax.JSXIdentifier:var p=h;u=p.name;break;case o.JSXSyntax.JSXNamespacedName:var g=h;u=m(g.namespace)+":"+m(g.name);break;case o.JSXSyntax.JSXMemberExpression:var E=h;u=m(E.object)+"."+m(E.property);break;default:break}return u}var d=function(h){r(u,h);function u(p,g,E){return h.call(this,p,g,E)||this}return u.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():h.prototype.parsePrimaryExpression.call(this)},u.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},u.prototype.finishJSX=function(){this.nextToken()},u.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},u.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.scanXHTMLEntity=function(p){for(var g="&",E=!0,v=!1,D=!1,x=!1;!this.scanner.eof()&&E&&!v;){var w=this.scanner.source[this.scanner.index];if(w===p)break;if(v=w===";",g+=w,++this.scanner.index,!v)switch(g.length){case 2:D=w==="#";break;case 3:D&&(x=w==="x",E=x||s.Character.isDecimalDigit(w.charCodeAt(0)),D=D&&!x);break;default:E=E&&!(D&&!s.Character.isDecimalDigit(w.charCodeAt(0))),E=E&&!(x&&!s.Character.isHexDigit(w.charCodeAt(0)));break}}if(E&&v&&g.length>2){var _=g.substr(1,g.length-2);D&&_.length>1?g=String.fromCharCode(parseInt(_.substr(1),10)):x&&_.length>2?g=String.fromCharCode(parseInt("0"+_.substr(1),16)):!D&&!x&&f.XHTMLEntities[_]&&(g=f.XHTMLEntities[_])}return g},u.prototype.lexJSX=function(){var p=this.scanner.source.charCodeAt(this.scanner.index);if(p===60||p===62||p===47||p===58||p===61||p===123||p===125){var g=this.scanner.source[this.scanner.index++];return{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(p===34||p===39){for(var E=this.scanner.index,v=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var x=this.scanner.source[this.scanner.index++];if(x===v)break;x==="&"?D+=this.scanXHTMLEntity(v):D+=x}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===46){var w=this.scanner.source.charCodeAt(this.scanner.index+1),_=this.scanner.source.charCodeAt(this.scanner.index+2),g=w===46&&_===46?"...":".",E=this.scanner.index;return this.scanner.index+=g.length,{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(p)&&p!==92){var E=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var x=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(x)&&x!==92)++this.scanner.index;else if(x===45)++this.scanner.index;else break}var R=this.scanner.source.slice(E,this.scanner.index);return{type:100,value:R,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}return this.scanner.lex()},u.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var p=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(p)),p},u.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var p=this.scanner.index,g="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index];if(E==="{"||E==="<")break;++this.scanner.index,g+=E,s.Character.isLineTerminator(E.charCodeAt(0))&&(++this.scanner.lineNumber,E==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
3
|
+
import{a as _v}from"./chunk-66OBCXPW.js";import{a as DI}from"./chunk-6MEM22XR.js";import{a as Av}from"./chunk-CCZ55TG3.js";import{a as xI}from"./chunk-2U7VPZZN.js";import{a as wI}from"./chunk-U37RKZCU.js";import{a as Dv,b as Cv,c as Jd,d as oa}from"./chunk-QRXJXTDM.js";import{f as bI}from"./chunk-PCOHTRKC.js";import{a as yI,b as bn,c as EI}from"./chunk-C4I6VFE7.js";import{a as SI,b as vI,d as aa}from"./chunk-TVMTOQUC.js";import{a as Lt}from"./chunk-ZKQ4ECXC.js";import{b as Xd}from"./chunk-CVDLBCEY.js";import{a as b,c as S,e as ds,g as __dirname,i as y}from"./chunk-UO4ZAUJK.js";var Nv=S((ca,Wd)=>{"use strict";y();(function(e,t){typeof ca=="object"&&typeof Wd=="object"?Wd.exports=t():typeof define=="function"&&define.amd?define([],t):typeof ca=="object"?ca.esprima=t():e.esprima=t()})(ca,function(){return function(i){var e={};function t(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return i[r].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}return t.m=i,t.c=e,t.p="",t(0)}([function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(1),s=t(3),n=t(8),o=t(15);function a(d,h,u){var p=null,g=function(T,O){u&&u(T,O),p&&p.visit(T,O)},E=typeof u=="function"?g:null,v=!1;if(h){v=typeof h.comment=="boolean"&&h.comment;var D=typeof h.attachComment=="boolean"&&h.attachComment;(v||D)&&(p=new r.CommentHandler,p.attach=D,h.comment=!0,E=g)}var x=!1;h&&typeof h.sourceType=="string"&&(x=h.sourceType==="module");var w;h&&typeof h.jsx=="boolean"&&h.jsx?w=new s.JSXParser(d,h,E):w=new n.Parser(d,h,E);var _=x?w.parseModule():w.parseScript(),R=_;return v&&p&&(R.comments=p.comments),w.config.tokens&&(R.tokens=w.tokens),w.config.tolerant&&(R.errors=w.errorHandler.errors),R}e.parse=a;function c(d,h,u){var p=h||{};return p.sourceType="module",a(d,p,u)}e.parseModule=c;function l(d,h,u){var p=h||{};return p.sourceType="script",a(d,p,u)}e.parseScript=l;function f(d,h,u){var p=new o.Tokenizer(d,h),g;g=[];try{for(;;){var E=p.getNextToken();if(!E)break;u&&(E=u(E)),g.push(E)}}catch(v){p.errorHandler.tolerate(v)}return p.errorHandler.tolerant&&(g.errors=p.errors()),g}e.tokenize=f;var m=t(2);e.Syntax=m.Syntax,e.version="4.0.1"},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function n(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return n.prototype.insertInnerComments=function(o,a){if(o.type===r.Syntax.BlockStatement&&o.body.length===0){for(var c=[],l=this.leading.length-1;l>=0;--l){var f=this.leading[l];a.end.offset>=f.start&&(c.unshift(f.comment),this.leading.splice(l,1),this.trailing.splice(l,1))}c.length&&(o.innerComments=c)}},n.prototype.findTrailingComments=function(o){var a=[];if(this.trailing.length>0){for(var c=this.trailing.length-1;c>=0;--c){var l=this.trailing[c];l.start>=o.end.offset&&a.unshift(l.comment)}return this.trailing.length=0,a}var f=this.stack[this.stack.length-1];if(f&&f.node.trailingComments){var m=f.node.trailingComments[0];m&&m.range[0]>=o.end.offset&&(a=f.node.trailingComments,delete f.node.trailingComments)}return a},n.prototype.findLeadingComments=function(o){for(var a=[],c;this.stack.length>0;){var l=this.stack[this.stack.length-1];if(l&&l.start>=o.start.offset)c=l.node,this.stack.pop();else break}if(c){for(var f=c.leadingComments?c.leadingComments.length:0,m=f-1;m>=0;--m){var d=c.leadingComments[m];d.range[1]<=o.start.offset&&(a.unshift(d),c.leadingComments.splice(m,1))}return c.leadingComments&&c.leadingComments.length===0&&delete c.leadingComments,a}for(var m=this.leading.length-1;m>=0;--m){var l=this.leading[m];l.start<=o.start.offset&&(a.unshift(l.comment),this.leading.splice(m,1))}return a},n.prototype.visitNode=function(o,a){if(!(o.type===r.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,a);var c=this.findTrailingComments(a),l=this.findLeadingComments(a);l.length>0&&(o.leadingComments=l),c.length>0&&(o.trailingComments=c),this.stack.push({node:o,start:a.start.offset})}},n.prototype.visitComment=function(o,a){var c=o.type[0]==="L"?"Line":"Block",l={type:c,value:o.value};if(o.range&&(l.range=o.range),o.loc&&(l.loc=o.loc),this.comments.push(l),this.attach){var f={comment:{type:c,value:o.value,range:[a.start.offset,a.end.offset]},start:a.start.offset};o.loc&&(f.comment.loc=o.loc),o.type=c,this.leading.push(f),this.trailing.push(f)}},n.prototype.visit=function(o,a){o.type==="LineComment"?this.visitComment(o,a):o.type==="BlockComment"?this.visitComment(o,a):this.attach&&this.visitNode(o,a)},n}();e.CommentHandler=s},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,e,t){"use strict";var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])};return function(u,p){h(u,p);function g(){this.constructor=u}u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=t(4),n=t(5),o=t(6),a=t(7),c=t(8),l=t(13),f=t(14);l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";function m(h){var u;switch(h.type){case o.JSXSyntax.JSXIdentifier:var p=h;u=p.name;break;case o.JSXSyntax.JSXNamespacedName:var g=h;u=m(g.namespace)+":"+m(g.name);break;case o.JSXSyntax.JSXMemberExpression:var E=h;u=m(E.object)+"."+m(E.property);break;default:break}return u}var d=function(h){r(u,h);function u(p,g,E){return h.call(this,p,g,E)||this}return u.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():h.prototype.parsePrimaryExpression.call(this)},u.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},u.prototype.finishJSX=function(){this.nextToken()},u.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},u.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.scanXHTMLEntity=function(p){for(var g="&",E=!0,v=!1,D=!1,x=!1;!this.scanner.eof()&&E&&!v;){var w=this.scanner.source[this.scanner.index];if(w===p)break;if(v=w===";",g+=w,++this.scanner.index,!v)switch(g.length){case 2:D=w==="#";break;case 3:D&&(x=w==="x",E=x||s.Character.isDecimalDigit(w.charCodeAt(0)),D=D&&!x);break;default:E=E&&!(D&&!s.Character.isDecimalDigit(w.charCodeAt(0))),E=E&&!(x&&!s.Character.isHexDigit(w.charCodeAt(0)));break}}if(E&&v&&g.length>2){var _=g.substr(1,g.length-2);D&&_.length>1?g=String.fromCharCode(parseInt(_.substr(1),10)):x&&_.length>2?g=String.fromCharCode(parseInt("0"+_.substr(1),16)):!D&&!x&&f.XHTMLEntities[_]&&(g=f.XHTMLEntities[_])}return g},u.prototype.lexJSX=function(){var p=this.scanner.source.charCodeAt(this.scanner.index);if(p===60||p===62||p===47||p===58||p===61||p===123||p===125){var g=this.scanner.source[this.scanner.index++];return{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(p===34||p===39){for(var E=this.scanner.index,v=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var x=this.scanner.source[this.scanner.index++];if(x===v)break;x==="&"?D+=this.scanXHTMLEntity(v):D+=x}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===46){var w=this.scanner.source.charCodeAt(this.scanner.index+1),_=this.scanner.source.charCodeAt(this.scanner.index+2),g=w===46&&_===46?"...":".",E=this.scanner.index;return this.scanner.index+=g.length,{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(p)&&p!==92){var E=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var x=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(x)&&x!==92)++this.scanner.index;else if(x===45)++this.scanner.index;else break}var R=this.scanner.source.slice(E,this.scanner.index);return{type:100,value:R,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}return this.scanner.lex()},u.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var p=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(p)),p},u.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var p=this.scanner.index,g="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index];if(E==="{"||E==="<")break;++this.scanner.index,g+=E,s.Character.isLineTerminator(E.charCodeAt(0))&&(++this.scanner.lineNumber,E==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
4
4
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:p,end:this.scanner.index};return g.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},u.prototype.peekJSXToken=function(){var p=this.scanner.saveState();this.scanner.scanComments();var g=this.lexJSX();return this.scanner.restoreState(p),g},u.prototype.expectJSX=function(p){var g=this.nextJSXToken();(g.type!==7||g.value!==p)&&this.throwUnexpectedToken(g)},u.prototype.matchJSX=function(p){var g=this.peekJSXToken();return g.type===7&&g.value===p},u.prototype.parseJSXIdentifier=function(){var p=this.createJSXNode(),g=this.nextJSXToken();return g.type!==100&&this.throwUnexpectedToken(g),this.finalize(p,new n.JSXIdentifier(g.value))},u.prototype.parseJSXElementName=function(){var p=this.createJSXNode(),g=this.parseJSXIdentifier();if(this.matchJSX(":")){var E=g;this.expectJSX(":");var v=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXNamespacedName(E,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var D=g;this.expectJSX(".");var x=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXMemberExpression(D,x))}return g},u.prototype.parseJSXAttributeName=function(){var p=this.createJSXNode(),g,E=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=E;this.expectJSX(":");var D=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXNamespacedName(v,D))}else g=E;return g},u.prototype.parseJSXStringLiteralAttribute=function(){var p=this.createJSXNode(),g=this.nextJSXToken();g.type!==8&&this.throwUnexpectedToken(g);var E=this.getTokenRaw(g);return this.finalize(p,new a.Literal(g.value,E))},u.prototype.parseJSXExpressionAttribute=function(){var p=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var g=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(p,new n.JSXExpressionContainer(g))},u.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},u.prototype.parseJSXNameValueAttribute=function(){var p=this.createJSXNode(),g=this.parseJSXAttributeName(),E=null;return this.matchJSX("=")&&(this.expectJSX("="),E=this.parseJSXAttributeValue()),this.finalize(p,new n.JSXAttribute(g,E))},u.prototype.parseJSXSpreadAttribute=function(){var p=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var g=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(p,new n.JSXSpreadAttribute(g))},u.prototype.parseJSXAttributes=function(){for(var p=[];!this.matchJSX("/")&&!this.matchJSX(">");){var g=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();p.push(g)}return p},u.prototype.parseJSXOpeningElement=function(){var p=this.createJSXNode();this.expectJSX("<");var g=this.parseJSXElementName(),E=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(p,new n.JSXOpeningElement(g,v,E))},u.prototype.parseJSXBoundaryElement=function(){var p=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var g=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(p,new n.JSXClosingElement(g))}var E=this.parseJSXElementName(),v=this.parseJSXAttributes(),D=this.matchJSX("/");return D&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(p,new n.JSXOpeningElement(E,D,v))},u.prototype.parseJSXEmptyExpression=function(){var p=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(p,new n.JSXEmptyExpression)},u.prototype.parseJSXExpressionContainer=function(){var p=this.createJSXNode();this.expectJSX("{");var g;return this.matchJSX("}")?(g=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),g=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(p,new n.JSXExpressionContainer(g))},u.prototype.parseJSXChildren=function(){for(var p=[];!this.scanner.eof();){var g=this.createJSXChildNode(),E=this.nextJSXText();if(E.start<E.end){var v=this.getTokenRaw(E),D=this.finalize(g,new n.JSXText(E.value,v));p.push(D)}if(this.scanner.source[this.scanner.index]==="{"){var x=this.parseJSXExpressionContainer();p.push(x)}else break}return p},u.prototype.parseComplexJSXElement=function(p){for(var g=[];!this.scanner.eof();){p.children=p.children.concat(this.parseJSXChildren());var E=this.createJSXChildNode(),v=this.parseJSXBoundaryElement();if(v.type===o.JSXSyntax.JSXOpeningElement){var D=v;if(D.selfClosing){var x=this.finalize(E,new n.JSXElement(D,[],null));p.children.push(x)}else g.push(p),p={node:E,opening:D,closing:null,children:[]}}if(v.type===o.JSXSyntax.JSXClosingElement){p.closing=v;var w=m(p.opening.name),_=m(p.closing.name);if(w!==_&&this.tolerateError("Expected corresponding JSX closing tag for %0",w),g.length>0){var x=this.finalize(p.node,new n.JSXElement(p.opening,p.children,p.closing));p=g[g.length-1],p.children.push(x),g.pop()}else break}}return p},u.prototype.parseJSXElement=function(){var p=this.createJSXNode(),g=this.parseJSXOpeningElement(),E=[],v=null;if(!g.selfClosing){var D=this.parseComplexJSXElement({node:p,opening:g,closing:v,children:E});E=D.children,v=D.closing}return this.finalize(p,new n.JSXElement(g,E,v))},u.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var p=this.parseJSXElement();return this.finishJSX(),p},u.prototype.isStartOfExpression=function(){return h.prototype.isStartOfExpression.call(this)||this.match("<")},u}(c.Parser);e.JSXParser=d},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(r){return r<65536?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10))+String.fromCharCode(56320+(r-65536&1023))},isWhiteSpace:function(r){return r===32||r===9||r===11||r===12||r===160||r>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(r)>=0},isLineTerminator:function(r){return r===10||r===13||r===8232||r===8233},isIdentifierStart:function(r){return r===36||r===95||r>=65&&r<=90||r>=97&&r<=122||r===92||r>=128&&t.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(r))},isIdentifierPart:function(r){return r===36||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||r===92||r>=128&&t.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(r))},isDecimalDigit:function(r){return r>=48&&r<=57},isHexDigit:function(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102},isOctalDigit:function(r){return r>=48&&r<=55}}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(6),s=function(){function p(g){this.type=r.JSXSyntax.JSXClosingElement,this.name=g}return p}();e.JSXClosingElement=s;var n=function(){function p(g,E,v){this.type=r.JSXSyntax.JSXElement,this.openingElement=g,this.children=E,this.closingElement=v}return p}();e.JSXElement=n;var o=function(){function p(){this.type=r.JSXSyntax.JSXEmptyExpression}return p}();e.JSXEmptyExpression=o;var a=function(){function p(g){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=g}return p}();e.JSXExpressionContainer=a;var c=function(){function p(g){this.type=r.JSXSyntax.JSXIdentifier,this.name=g}return p}();e.JSXIdentifier=c;var l=function(){function p(g,E){this.type=r.JSXSyntax.JSXMemberExpression,this.object=g,this.property=E}return p}();e.JSXMemberExpression=l;var f=function(){function p(g,E){this.type=r.JSXSyntax.JSXAttribute,this.name=g,this.value=E}return p}();e.JSXAttribute=f;var m=function(){function p(g,E){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=g,this.name=E}return p}();e.JSXNamespacedName=m;var d=function(){function p(g,E,v){this.type=r.JSXSyntax.JSXOpeningElement,this.name=g,this.selfClosing=E,this.attributes=v}return p}();e.JSXOpeningElement=d;var h=function(){function p(g){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=g}return p}();e.JSXSpreadAttribute=h;var u=function(){function p(g,E){this.type=r.JSXSyntax.JSXText,this.value=g,this.raw=E}return p}();e.JSXText=u},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function C(A){this.type=r.Syntax.ArrayExpression,this.elements=A}return C}();e.ArrayExpression=s;var n=function(){function C(A){this.type=r.Syntax.ArrayPattern,this.elements=A}return C}();e.ArrayPattern=n;var o=function(){function C(A,F,P){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=A,this.body=F,this.generator=!1,this.expression=P,this.async=!1}return C}();e.ArrowFunctionExpression=o;var a=function(){function C(A,F,P){this.type=r.Syntax.AssignmentExpression,this.operator=A,this.left=F,this.right=P}return C}();e.AssignmentExpression=a;var c=function(){function C(A,F){this.type=r.Syntax.AssignmentPattern,this.left=A,this.right=F}return C}();e.AssignmentPattern=c;var l=function(){function C(A,F,P){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=A,this.body=F,this.generator=!1,this.expression=P,this.async=!0}return C}();e.AsyncArrowFunctionExpression=l;var f=function(){function C(A,F,P){this.type=r.Syntax.FunctionDeclaration,this.id=A,this.params=F,this.body=P,this.generator=!1,this.expression=!1,this.async=!0}return C}();e.AsyncFunctionDeclaration=f;var m=function(){function C(A,F,P){this.type=r.Syntax.FunctionExpression,this.id=A,this.params=F,this.body=P,this.generator=!1,this.expression=!1,this.async=!0}return C}();e.AsyncFunctionExpression=m;var d=function(){function C(A){this.type=r.Syntax.AwaitExpression,this.argument=A}return C}();e.AwaitExpression=d;var h=function(){function C(A,F,P){var at=A==="||"||A==="&&";this.type=at?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=A,this.left=F,this.right=P}return C}();e.BinaryExpression=h;var u=function(){function C(A){this.type=r.Syntax.BlockStatement,this.body=A}return C}();e.BlockStatement=u;var p=function(){function C(A){this.type=r.Syntax.BreakStatement,this.label=A}return C}();e.BreakStatement=p;var g=function(){function C(A,F){this.type=r.Syntax.CallExpression,this.callee=A,this.arguments=F}return C}();e.CallExpression=g;var E=function(){function C(A,F){this.type=r.Syntax.CatchClause,this.param=A,this.body=F}return C}();e.CatchClause=E;var v=function(){function C(A){this.type=r.Syntax.ClassBody,this.body=A}return C}();e.ClassBody=v;var D=function(){function C(A,F,P){this.type=r.Syntax.ClassDeclaration,this.id=A,this.superClass=F,this.body=P}return C}();e.ClassDeclaration=D;var x=function(){function C(A,F,P){this.type=r.Syntax.ClassExpression,this.id=A,this.superClass=F,this.body=P}return C}();e.ClassExpression=x;var w=function(){function C(A,F){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=A,this.property=F}return C}();e.ComputedMemberExpression=w;var _=function(){function C(A,F,P){this.type=r.Syntax.ConditionalExpression,this.test=A,this.consequent=F,this.alternate=P}return C}();e.ConditionalExpression=_;var R=function(){function C(A){this.type=r.Syntax.ContinueStatement,this.label=A}return C}();e.ContinueStatement=R;var T=function(){function C(){this.type=r.Syntax.DebuggerStatement}return C}();e.DebuggerStatement=T;var O=function(){function C(A,F){this.type=r.Syntax.ExpressionStatement,this.expression=A,this.directive=F}return C}();e.Directive=O;var M=function(){function C(A,F){this.type=r.Syntax.DoWhileStatement,this.body=A,this.test=F}return C}();e.DoWhileStatement=M;var q=function(){function C(){this.type=r.Syntax.EmptyStatement}return C}();e.EmptyStatement=q;var Ne=function(){function C(A){this.type=r.Syntax.ExportAllDeclaration,this.source=A}return C}();e.ExportAllDeclaration=Ne;var ze=function(){function C(A){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=A}return C}();e.ExportDefaultDeclaration=ze;var Ud=function(){function C(A,F,P){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=A,this.specifiers=F,this.source=P}return C}();e.ExportNamedDeclaration=Ud;var qd=function(){function C(A,F){this.type=r.Syntax.ExportSpecifier,this.exported=F,this.local=A}return C}();e.ExportSpecifier=qd;var jd=function(){function C(A){this.type=r.Syntax.ExpressionStatement,this.expression=A}return C}();e.ExpressionStatement=jd;var $d=function(){function C(A,F,P){this.type=r.Syntax.ForInStatement,this.left=A,this.right=F,this.body=P,this.each=!1}return C}();e.ForInStatement=$d;var zd=function(){function C(A,F,P){this.type=r.Syntax.ForOfStatement,this.left=A,this.right=F,this.body=P}return C}();e.ForOfStatement=zd;var Gd=function(){function C(A,F,P,at){this.type=r.Syntax.ForStatement,this.init=A,this.test=F,this.update=P,this.body=at}return C}();e.ForStatement=Gd;var ph=function(){function C(A,F,P,at){this.type=r.Syntax.FunctionDeclaration,this.id=A,this.params=F,this.body=P,this.generator=at,this.expression=!1,this.async=!1}return C}();e.FunctionDeclaration=ph;var mh=function(){function C(A,F,P,at){this.type=r.Syntax.FunctionExpression,this.id=A,this.params=F,this.body=P,this.generator=at,this.expression=!1,this.async=!1}return C}();e.FunctionExpression=mh;var gh=function(){function C(A){this.type=r.Syntax.Identifier,this.name=A}return C}();e.Identifier=gh;var yh=function(){function C(A,F,P){this.type=r.Syntax.IfStatement,this.test=A,this.consequent=F,this.alternate=P}return C}();e.IfStatement=yh;var LL=function(){function C(A,F){this.type=r.Syntax.ImportDeclaration,this.specifiers=A,this.source=F}return C}();e.ImportDeclaration=LL;var IL=function(){function C(A){this.type=r.Syntax.ImportDefaultSpecifier,this.local=A}return C}();e.ImportDefaultSpecifier=IL;var PL=function(){function C(A){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=A}return C}();e.ImportNamespaceSpecifier=PL;var NL=function(){function C(A,F){this.type=r.Syntax.ImportSpecifier,this.local=A,this.imported=F}return C}();e.ImportSpecifier=NL;var ML=function(){function C(A,F){this.type=r.Syntax.LabeledStatement,this.label=A,this.body=F}return C}();e.LabeledStatement=ML;var UL=function(){function C(A,F){this.type=r.Syntax.Literal,this.value=A,this.raw=F}return C}();e.Literal=UL;var qL=function(){function C(A,F){this.type=r.Syntax.MetaProperty,this.meta=A,this.property=F}return C}();e.MetaProperty=qL;var jL=function(){function C(A,F,P,at,Hd){this.type=r.Syntax.MethodDefinition,this.key=A,this.computed=F,this.value=P,this.kind=at,this.static=Hd}return C}();e.MethodDefinition=jL;var $L=function(){function C(A){this.type=r.Syntax.Program,this.body=A,this.sourceType="module"}return C}();e.Module=$L;var zL=function(){function C(A,F){this.type=r.Syntax.NewExpression,this.callee=A,this.arguments=F}return C}();e.NewExpression=zL;var GL=function(){function C(A){this.type=r.Syntax.ObjectExpression,this.properties=A}return C}();e.ObjectExpression=GL;var HL=function(){function C(A){this.type=r.Syntax.ObjectPattern,this.properties=A}return C}();e.ObjectPattern=HL;var JL=function(){function C(A,F,P,at,Hd,gI){this.type=r.Syntax.Property,this.key=F,this.computed=P,this.value=at,this.kind=A,this.method=Hd,this.shorthand=gI}return C}();e.Property=JL;var XL=function(){function C(A,F,P,at){this.type=r.Syntax.Literal,this.value=A,this.raw=F,this.regex={pattern:P,flags:at}}return C}();e.RegexLiteral=XL;var VL=function(){function C(A){this.type=r.Syntax.RestElement,this.argument=A}return C}();e.RestElement=VL;var WL=function(){function C(A){this.type=r.Syntax.ReturnStatement,this.argument=A}return C}();e.ReturnStatement=WL;var KL=function(){function C(A){this.type=r.Syntax.Program,this.body=A,this.sourceType="script"}return C}();e.Script=KL;var YL=function(){function C(A){this.type=r.Syntax.SequenceExpression,this.expressions=A}return C}();e.SequenceExpression=YL;var ZL=function(){function C(A){this.type=r.Syntax.SpreadElement,this.argument=A}return C}();e.SpreadElement=ZL;var QL=function(){function C(A,F){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=A,this.property=F}return C}();e.StaticMemberExpression=QL;var eI=function(){function C(){this.type=r.Syntax.Super}return C}();e.Super=eI;var tI=function(){function C(A,F){this.type=r.Syntax.SwitchCase,this.test=A,this.consequent=F}return C}();e.SwitchCase=tI;var iI=function(){function C(A,F){this.type=r.Syntax.SwitchStatement,this.discriminant=A,this.cases=F}return C}();e.SwitchStatement=iI;var rI=function(){function C(A,F){this.type=r.Syntax.TaggedTemplateExpression,this.tag=A,this.quasi=F}return C}();e.TaggedTemplateExpression=rI;var sI=function(){function C(A,F){this.type=r.Syntax.TemplateElement,this.value=A,this.tail=F}return C}();e.TemplateElement=sI;var nI=function(){function C(A,F){this.type=r.Syntax.TemplateLiteral,this.quasis=A,this.expressions=F}return C}();e.TemplateLiteral=nI;var oI=function(){function C(){this.type=r.Syntax.ThisExpression}return C}();e.ThisExpression=oI;var aI=function(){function C(A){this.type=r.Syntax.ThrowStatement,this.argument=A}return C}();e.ThrowStatement=aI;var cI=function(){function C(A,F,P){this.type=r.Syntax.TryStatement,this.block=A,this.handler=F,this.finalizer=P}return C}();e.TryStatement=cI;var hI=function(){function C(A,F){this.type=r.Syntax.UnaryExpression,this.operator=A,this.argument=F,this.prefix=!0}return C}();e.UnaryExpression=hI;var uI=function(){function C(A,F,P){this.type=r.Syntax.UpdateExpression,this.operator=A,this.argument=F,this.prefix=P}return C}();e.UpdateExpression=uI;var lI=function(){function C(A,F){this.type=r.Syntax.VariableDeclaration,this.declarations=A,this.kind=F}return C}();e.VariableDeclaration=lI;var fI=function(){function C(A,F){this.type=r.Syntax.VariableDeclarator,this.id=A,this.init=F}return C}();e.VariableDeclarator=fI;var dI=function(){function C(A,F){this.type=r.Syntax.WhileStatement,this.test=A,this.body=F}return C}();e.WhileStatement=dI;var pI=function(){function C(A,F){this.type=r.Syntax.WithStatement,this.object=A,this.body=F}return C}();e.WithStatement=pI;var mI=function(){function C(A,F){this.type=r.Syntax.YieldExpression,this.argument=A,this.delegate=F}return C}();e.YieldExpression=mI},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),s=t(10),n=t(11),o=t(7),a=t(12),c=t(2),l=t(13),f="ArrowParameterPlaceHolder",m=function(){function d(h,u,p){u===void 0&&(u={}),this.config={range:typeof u.range=="boolean"&&u.range,loc:typeof u.loc=="boolean"&&u.loc,source:null,tokens:typeof u.tokens=="boolean"&&u.tokens,comment:typeof u.comment=="boolean"&&u.comment,tolerant:typeof u.tolerant=="boolean"&&u.tolerant},this.config.loc&&u.source&&u.source!==null&&(this.config.source=String(u.source)),this.delegate=p,this.errorHandler=new s.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(h,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return d.prototype.throwError=function(h){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];var g=Array.prototype.slice.call(arguments,1),E=h.replace(/%(\d)/g,function(w,_){return r.assert(_<g.length,"Message reference must be in range"),g[_]}),v=this.lastMarker.index,D=this.lastMarker.line,x=this.lastMarker.column+1;throw this.errorHandler.createError(v,D,x,E)},d.prototype.tolerateError=function(h){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];var g=Array.prototype.slice.call(arguments,1),E=h.replace(/%(\d)/g,function(w,_){return r.assert(_<g.length,"Message reference must be in range"),g[_]}),v=this.lastMarker.index,D=this.scanner.lineNumber,x=this.lastMarker.column+1;this.errorHandler.tolerateError(v,D,x,E)},d.prototype.unexpectedTokenError=function(h,u){var p=u||n.Messages.UnexpectedToken,g;if(h?(u||(p=h.type===2?n.Messages.UnexpectedEOS:h.type===3?n.Messages.UnexpectedIdentifier:h.type===6?n.Messages.UnexpectedNumber:h.type===8?n.Messages.UnexpectedString:h.type===10?n.Messages.UnexpectedTemplate:n.Messages.UnexpectedToken,h.type===4&&(this.scanner.isFutureReservedWord(h.value)?p=n.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(h.value)&&(p=n.Messages.StrictReservedWord))),g=h.value):g="ILLEGAL",p=p.replace("%0",g),h&&typeof h.lineNumber=="number"){var E=h.start,v=h.lineNumber,D=this.lastMarker.index-this.lastMarker.column,x=h.start-D+1;return this.errorHandler.createError(E,v,x,p)}else{var E=this.lastMarker.index,v=this.lastMarker.line,x=this.lastMarker.column+1;return this.errorHandler.createError(E,v,x,p)}},d.prototype.throwUnexpectedToken=function(h,u){throw this.unexpectedTokenError(h,u)},d.prototype.tolerateUnexpectedToken=function(h,u){this.errorHandler.tolerate(this.unexpectedTokenError(h,u))},d.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var h=this.scanner.scanComments();if(h.length>0&&this.delegate)for(var u=0;u<h.length;++u){var p=h[u],g=void 0;g={type:p.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(p.slice[0],p.slice[1])},this.config.range&&(g.range=p.range),this.config.loc&&(g.loc=p.loc);var E={start:{line:p.loc.start.line,column:p.loc.start.column,offset:p.range[0]},end:{line:p.loc.end.line,column:p.loc.end.column,offset:p.range[1]}};this.delegate(g,E)}}},d.prototype.getTokenRaw=function(h){return this.scanner.source.slice(h.start,h.end)},d.prototype.convertToken=function(h){var u={type:l.TokenName[h.type],value:this.getTokenRaw(h)};if(this.config.range&&(u.range=[h.start,h.end]),this.config.loc&&(u.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),h.type===9){var p=h.pattern,g=h.flags;u.regex={pattern:p,flags:g}}return u},d.prototype.nextToken=function(){var h=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var u=this.scanner.lex();return this.hasLineTerminator=h.lineNumber!==u.lineNumber,u&&this.context.strict&&u.type===3&&this.scanner.isStrictModeReservedWord(u.value)&&(u.type=4),this.lookahead=u,this.config.tokens&&u.type!==2&&this.tokens.push(this.convertToken(u)),h},d.prototype.nextRegexToken=function(){this.collectComments();var h=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(h))),this.lookahead=h,this.nextToken(),h},d.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},d.prototype.startNode=function(h,u){u===void 0&&(u=0);var p=h.start-h.lineStart,g=h.lineNumber;return p<0&&(p+=u,g--),{index:h.start,line:g,column:p}},d.prototype.finalize=function(h,u){if(this.config.range&&(u.range=[h.index,this.lastMarker.index]),this.config.loc&&(u.loc={start:{line:h.line,column:h.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(u.loc.source=this.config.source)),this.delegate){var p={start:{line:h.line,column:h.column,offset:h.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(u,p)}return u},d.prototype.expect=function(h){var u=this.nextToken();(u.type!==7||u.value!==h)&&this.throwUnexpectedToken(u)},d.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var h=this.lookahead;h.type===7&&h.value===","?this.nextToken():h.type===7&&h.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(h)):this.tolerateUnexpectedToken(h,n.Messages.UnexpectedToken)}else this.expect(",")},d.prototype.expectKeyword=function(h){var u=this.nextToken();(u.type!==4||u.value!==h)&&this.throwUnexpectedToken(u)},d.prototype.match=function(h){return this.lookahead.type===7&&this.lookahead.value===h},d.prototype.matchKeyword=function(h){return this.lookahead.type===4&&this.lookahead.value===h},d.prototype.matchContextualKeyword=function(h){return this.lookahead.type===3&&this.lookahead.value===h},d.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var h=this.lookahead.value;return h==="="||h==="*="||h==="**="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|="},d.prototype.isolateCoverGrammar=function(h){var u=this.context.isBindingElement,p=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=h.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=u,this.context.isAssignmentTarget=p,this.context.firstCoverInitializedNameError=g,E},d.prototype.inheritCoverGrammar=function(h){var u=this.context.isBindingElement,p=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=h.call(this);return this.context.isBindingElement=this.context.isBindingElement&&u,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&p,this.context.firstCoverInitializedNameError=g||this.context.firstCoverInitializedNameError,E},d.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},d.prototype.parsePrimaryExpression=function(){var h=this.createNode(),u,p,g;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),u=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(h,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,n.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(p.value,g));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(p.value==="true",g));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(null,g));break;case 10:u=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,u=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":u=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":u=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,p=this.nextRegexToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.RegexLiteral(p.regex,g,p.pattern,p.flags));break;default:u=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?u=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?u=this.finalize(h,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?u=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),u=this.finalize(h,new o.ThisExpression)):this.matchKeyword("class")?u=this.parseClassExpression():u=this.throwUnexpectedToken(this.nextToken()));break;default:u=this.throwUnexpectedToken(this.nextToken())}return u},d.prototype.parseSpreadElement=function(){var h=this.createNode();this.expect("...");var u=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(h,new o.SpreadElement(u))},d.prototype.parseArrayInitializer=function(){var h=this.createNode(),u=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),u.push(null);else if(this.match("...")){var p=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),u.push(p)}else u.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(h,new o.ArrayExpression(u))},d.prototype.parsePropertyMethod=function(h){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var u=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var g=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&h.firstRestricted&&this.tolerateUnexpectedToken(h.firstRestricted,h.message),this.context.strict&&h.stricted&&this.tolerateUnexpectedToken(h.stricted,h.message),this.context.strict=u,this.context.allowStrictDirective=p,g},d.prototype.parsePropertyMethodFunction=function(){var h=!1,u=this.createNode(),p=this.context.allowYield;this.context.allowYield=!0;var g=this.parseFormalParameters(),E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(u,new o.FunctionExpression(null,g.params,E,h))},d.prototype.parsePropertyMethodAsyncFunction=function(){var h=this.createNode(),u=this.context.allowYield,p=this.context.await;this.context.allowYield=!1,this.context.await=!0;var g=this.parseFormalParameters(),E=this.parsePropertyMethod(g);return this.context.allowYield=u,this.context.await=p,this.finalize(h,new o.AsyncFunctionExpression(null,g.params,E))},d.prototype.parseObjectPropertyKey=function(){var h=this.createNode(),u=this.nextToken(),p;switch(u.type){case 8:case 6:this.context.strict&&u.octal&&this.tolerateUnexpectedToken(u,n.Messages.StrictOctalLiteral);var g=this.getTokenRaw(u);p=this.finalize(h,new o.Literal(u.value,g));break;case 3:case 1:case 5:case 4:p=this.finalize(h,new o.Identifier(u.value));break;case 7:u.value==="["?(p=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):p=this.throwUnexpectedToken(u);break;default:p=this.throwUnexpectedToken(u)}return p},d.prototype.isPropertyKey=function(h,u){return h.type===c.Syntax.Identifier&&h.name===u||h.type===c.Syntax.Literal&&h.value===u},d.prototype.parseObjectProperty=function(h){var u=this.createNode(),p=this.lookahead,g,E=null,v=null,D=!1,x=!1,w=!1,_=!1;if(p.type===3){var R=p.value;this.nextToken(),D=this.match("["),_=!this.hasLineTerminator&&R==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),E=_?this.parseObjectPropertyKey():this.finalize(u,new o.Identifier(R))}else this.match("*")?this.nextToken():(D=this.match("["),E=this.parseObjectPropertyKey());var T=this.qualifiedPropertyName(this.lookahead);if(p.type===3&&!_&&p.value==="get"&&T)g="get",D=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod();else if(p.type===3&&!_&&p.value==="set"&&T)g="set",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseSetterMethod();else if(p.type===7&&p.value==="*"&&T)g="init",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),x=!0;else if(E||this.throwUnexpectedToken(this.lookahead),g="init",this.match(":")&&!_)!D&&this.isPropertyKey(E,"__proto__")&&(h.value&&this.tolerateError(n.Messages.DuplicateProtoProperty),h.value=!0),this.nextToken(),v=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))v=_?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),x=!0;else if(p.type===3){var R=this.finalize(u,new o.Identifier(p.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),w=!0;var O=this.isolateCoverGrammar(this.parseAssignmentExpression);v=this.finalize(u,new o.AssignmentPattern(R,O))}else w=!0,v=R}else this.throwUnexpectedToken(this.nextToken());return this.finalize(u,new o.Property(g,E,D,v,x,w))},d.prototype.parseObjectInitializer=function(){var h=this.createNode();this.expect("{");for(var u=[],p={value:!1};!this.match("}");)u.push(this.parseObjectProperty(p)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(h,new o.ObjectExpression(u))},d.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var h=this.createNode(),u=this.nextToken(),p=u.value,g=u.cooked;return this.finalize(h,new o.TemplateElement({raw:p,cooked:g},u.tail))},d.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var h=this.createNode(),u=this.nextToken(),p=u.value,g=u.cooked;return this.finalize(h,new o.TemplateElement({raw:p,cooked:g},u.tail))},d.prototype.parseTemplateLiteral=function(){var h=this.createNode(),u=[],p=[],g=this.parseTemplateHead();for(p.push(g);!g.tail;)u.push(this.parseExpression()),g=this.parseTemplateElement(),p.push(g);return this.finalize(h,new o.TemplateLiteral(p,u))},d.prototype.reinterpretExpressionAsPattern=function(h){switch(h.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:h.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(h.argument);break;case c.Syntax.ArrayExpression:h.type=c.Syntax.ArrayPattern;for(var u=0;u<h.elements.length;u++)h.elements[u]!==null&&this.reinterpretExpressionAsPattern(h.elements[u]);break;case c.Syntax.ObjectExpression:h.type=c.Syntax.ObjectPattern;for(var u=0;u<h.properties.length;u++)this.reinterpretExpressionAsPattern(h.properties[u].value);break;case c.Syntax.AssignmentExpression:h.type=c.Syntax.AssignmentPattern,delete h.operator,this.reinterpretExpressionAsPattern(h.left);break;default:break}},d.prototype.parseGroupExpression=function(){var h;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),h={type:f,params:[],async:!1};else{var u=this.lookahead,p=[];if(this.match("..."))h=this.parseRestElement(p),this.expect(")"),this.match("=>")||this.expect("=>"),h={type:f,params:[h],async:!1};else{var g=!1;if(this.context.isBindingElement=!0,h=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var E=[];for(this.context.isAssignmentTarget=!1,E.push(h);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var v=0;v<E.length;v++)this.reinterpretExpressionAsPattern(E[v]);g=!0,h={type:f,params:E,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),E.push(this.parseRestElement(p)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var v=0;v<E.length;v++)this.reinterpretExpressionAsPattern(E[v]);g=!0,h={type:f,params:E,async:!1}}else E.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(g)break}g||(h=this.finalize(this.startNode(u),new o.SequenceExpression(E)))}if(!g){if(this.expect(")"),this.match("=>")&&(h.type===c.Syntax.Identifier&&h.name==="yield"&&(g=!0,h={type:f,params:[h],async:!1}),!g)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),h.type===c.Syntax.SequenceExpression)for(var v=0;v<h.expressions.length;v++)this.reinterpretExpressionAsPattern(h.expressions[v]);else this.reinterpretExpressionAsPattern(h);var D=h.type===c.Syntax.SequenceExpression?h.expressions:[h];h={type:f,params:D,async:!1}}this.context.isBindingElement=!1}}}return h},d.prototype.parseArguments=function(){this.expect("(");var h=[];if(!this.match(")"))for(;;){var u=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(h.push(u),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),h},d.prototype.isIdentifierName=function(h){return h.type===3||h.type===4||h.type===1||h.type===5},d.prototype.parseIdentifierName=function(){var h=this.createNode(),u=this.nextToken();return this.isIdentifierName(u)||this.throwUnexpectedToken(u),this.finalize(h,new o.Identifier(u.value))},d.prototype.parseNewExpression=function(){var h=this.createNode(),u=this.parseIdentifierName();r.assert(u.name==="new","New expression must start with `new`");var p;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var g=this.parseIdentifierName();p=new o.MetaProperty(u,g)}else this.throwUnexpectedToken(this.lookahead);else{var E=this.isolateCoverGrammar(this.parseLeftHandSideExpression),v=this.match("(")?this.parseArguments():[];p=new o.NewExpression(E,v),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(h,p)},d.prototype.parseAsyncArgument=function(){var h=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,h},d.prototype.parseAsyncArguments=function(){this.expect("(");var h=[];if(!this.match(")"))for(;;){var u=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(h.push(u),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),h},d.prototype.parseLeftHandSideExpressionAllowCall=function(){var h=this.lookahead,u=this.matchContextualKeyword("async"),p=this.context.allowIn;this.context.allowIn=!0;var g;for(this.matchKeyword("super")&&this.context.inFunctionBody?(g=this.createNode(),this.nextToken(),g=this.finalize(g,new o.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):g=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var E=this.parseIdentifierName();g=this.finalize(this.startNode(h),new o.StaticMemberExpression(g,E))}else if(this.match("(")){var v=u&&h.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var D=v?this.parseAsyncArguments():this.parseArguments();if(g=this.finalize(this.startNode(h),new o.CallExpression(g,D)),v&&this.match("=>")){for(var x=0;x<D.length;++x)this.reinterpretExpressionAsPattern(D[x]);g={type:f,params:D,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var E=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),g=this.finalize(this.startNode(h),new o.ComputedMemberExpression(g,E))}else if(this.lookahead.type===10&&this.lookahead.head){var w=this.parseTemplateLiteral();g=this.finalize(this.startNode(h),new o.TaggedTemplateExpression(g,w))}else break;return this.context.allowIn=p,g},d.prototype.parseSuper=function(){var h=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(h,new o.Super)},d.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var h=this.startNode(this.lookahead),u=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var p=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),u=this.finalize(h,new o.ComputedMemberExpression(u,p))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var p=this.parseIdentifierName();u=this.finalize(h,new o.StaticMemberExpression(u,p))}else if(this.lookahead.type===10&&this.lookahead.head){var g=this.parseTemplateLiteral();u=this.finalize(h,new o.TaggedTemplateExpression(u,g))}else break;return u},d.prototype.parseUpdateExpression=function(){var h,u=this.lookahead;if(this.match("++")||this.match("--")){var p=this.startNode(u),g=this.nextToken();h=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&h.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(h.name)&&this.tolerateError(n.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment);var E=!0;h=this.finalize(p,new o.UpdateExpression(g.value,h,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(h=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&h.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(h.name)&&this.tolerateError(n.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var v=this.nextToken().value,E=!1;h=this.finalize(this.startNode(u),new o.UpdateExpression(v,h,E))}return h},d.prototype.parseAwaitExpression=function(){var h=this.createNode();this.nextToken();var u=this.parseUnaryExpression();return this.finalize(h,new o.AwaitExpression(u))},d.prototype.parseUnaryExpression=function(){var h;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var u=this.startNode(this.lookahead),p=this.nextToken();h=this.inheritCoverGrammar(this.parseUnaryExpression),h=this.finalize(u,new o.UnaryExpression(p.value,h)),this.context.strict&&h.operator==="delete"&&h.argument.type===c.Syntax.Identifier&&this.tolerateError(n.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?h=this.parseAwaitExpression():h=this.parseUpdateExpression();return h},d.prototype.parseExponentiationExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseUnaryExpression);if(u.type!==c.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var p=u,g=this.isolateCoverGrammar(this.parseExponentiationExpression);u=this.finalize(this.startNode(h),new o.BinaryExpression("**",p,g))}return u},d.prototype.binaryPrecedence=function(h){var u=h.value,p;return h.type===7?p=this.operatorPrecedence[u]||0:h.type===4?p=u==="instanceof"||this.context.allowIn&&u==="in"?7:0:p=0,p},d.prototype.parseBinaryExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseExponentiationExpression),p=this.lookahead,g=this.binaryPrecedence(p);if(g>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var E=[h,this.lookahead],v=u,D=this.isolateCoverGrammar(this.parseExponentiationExpression),x=[v,p.value,D],w=[g];g=this.binaryPrecedence(this.lookahead),!(g<=0);){for(;x.length>2&&g<=w[w.length-1];){D=x.pop();var _=x.pop();w.pop(),v=x.pop(),E.pop();var R=this.startNode(E[E.length-1]);x.push(this.finalize(R,new o.BinaryExpression(_,v,D)))}x.push(this.nextToken().value),w.push(g),E.push(this.lookahead),x.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var T=x.length-1;u=x[T];for(var O=E.pop();T>1;){var M=E.pop(),q=O&&O.lineStart,R=this.startNode(M,q),_=x[T-1];u=this.finalize(R,new o.BinaryExpression(_,x[T-2],u)),T-=2,O=M}}return u},d.prototype.parseConditionalExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var p=this.context.allowIn;this.context.allowIn=!0;var g=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=p,this.expect(":");var E=this.isolateCoverGrammar(this.parseAssignmentExpression);u=this.finalize(this.startNode(h),new o.ConditionalExpression(u,g,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return u},d.prototype.checkPatternParam=function(h,u){switch(u.type){case c.Syntax.Identifier:this.validateParam(h,u,u.name);break;case c.Syntax.RestElement:this.checkPatternParam(h,u.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(h,u.left);break;case c.Syntax.ArrayPattern:for(var p=0;p<u.elements.length;p++)u.elements[p]!==null&&this.checkPatternParam(h,u.elements[p]);break;case c.Syntax.ObjectPattern:for(var p=0;p<u.properties.length;p++)this.checkPatternParam(h,u.properties[p].value);break;default:break}h.simple=h.simple&&u instanceof o.Identifier},d.prototype.reinterpretAsCoverFormalsList=function(h){var u=[h],p,g=!1;switch(h.type){case c.Syntax.Identifier:break;case f:u=h.params,g=h.async;break;default:return null}p={simple:!0,paramSet:{}};for(var E=0;E<u.length;++E){var v=u[E];v.type===c.Syntax.AssignmentPattern?v.right.type===c.Syntax.YieldExpression&&(v.right.argument&&this.throwUnexpectedToken(this.lookahead),v.right.type=c.Syntax.Identifier,v.right.name="yield",delete v.right.argument,delete v.right.delegate):g&&v.type===c.Syntax.Identifier&&v.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(p,v),u[E]=v}if(this.context.strict||!this.context.allowYield)for(var E=0;E<u.length;++E){var v=u[E];v.type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(p.message===n.Messages.StrictParamDupe){var D=this.context.strict?p.stricted:p.firstRestricted;this.throwUnexpectedToken(D,p.message)}return{simple:p.simple,params:u,stricted:p.stricted,firstRestricted:p.firstRestricted,message:p.message}},d.prototype.parseAssignmentExpression=function(){var h;if(!this.context.allowYield&&this.matchKeyword("yield"))h=this.parseYieldExpression();else{var u=this.lookahead,p=u;if(h=this.parseConditionalExpression(),p.type===3&&p.lineNumber===this.lookahead.lineNumber&&p.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var g=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(g),h={type:f,params:[g],async:!0}}if(h.type===f||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var E=h.async,v=this.reinterpretAsCoverFormalsList(h);if(v){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var D=this.context.strict,x=this.context.allowStrictDirective;this.context.allowStrictDirective=v.simple;var w=this.context.allowYield,_=this.context.await;this.context.allowYield=!0,this.context.await=E;var R=this.startNode(u);this.expect("=>");var T=void 0;if(this.match("{")){var O=this.context.allowIn;this.context.allowIn=!0,T=this.parseFunctionSourceElements(),this.context.allowIn=O}else T=this.isolateCoverGrammar(this.parseAssignmentExpression);var M=T.type!==c.Syntax.BlockStatement;this.context.strict&&v.firstRestricted&&this.throwUnexpectedToken(v.firstRestricted,v.message),this.context.strict&&v.stricted&&this.tolerateUnexpectedToken(v.stricted,v.message),h=E?this.finalize(R,new o.AsyncArrowFunctionExpression(v.params,T,M)):this.finalize(R,new o.ArrowFunctionExpression(v.params,T,M)),this.context.strict=D,this.context.allowStrictDirective=x,this.context.allowYield=w,this.context.await=_}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment),this.context.strict&&h.type===c.Syntax.Identifier){var q=h;this.scanner.isRestrictedWord(q.name)&&this.tolerateUnexpectedToken(p,n.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(q.name)&&this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(h):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),p=this.nextToken();var Ne=p.value,ze=this.isolateCoverGrammar(this.parseAssignmentExpression);h=this.finalize(this.startNode(u),new o.AssignmentExpression(Ne,h,ze)),this.context.firstCoverInitializedNameError=null}}return h},d.prototype.parseExpression=function(){var h=this.lookahead,u=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var p=[];for(p.push(u);this.lookahead.type!==2&&this.match(",");)this.nextToken(),p.push(this.isolateCoverGrammar(this.parseAssignmentExpression));u=this.finalize(this.startNode(h),new o.SequenceExpression(p))}return u},d.prototype.parseStatementListItem=function(){var h;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalExportDeclaration),h=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalImportDeclaration),h=this.parseImportDeclaration();break;case"const":h=this.parseLexicalDeclaration({inFor:!1});break;case"function":h=this.parseFunctionDeclaration();break;case"class":h=this.parseClassDeclaration();break;case"let":h=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:h=this.parseStatement();break}else h=this.parseStatement();return h},d.prototype.parseBlock=function(){var h=this.createNode();this.expect("{");for(var u=[];!this.match("}");)u.push(this.parseStatementListItem());return this.expect("}"),this.finalize(h,new o.BlockStatement(u))},d.prototype.parseLexicalBinding=function(h,u){var p=this.createNode(),g=[],E=this.parsePattern(g,h);this.context.strict&&E.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(E.name)&&this.tolerateError(n.Messages.StrictVarName);var v=null;return h==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(n.Messages.DeclarationMissingInitializer,"const")):(!u.inFor&&E.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),v=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(p,new o.VariableDeclarator(E,v))},d.prototype.parseBindingList=function(h,u){for(var p=[this.parseLexicalBinding(h,u)];this.match(",");)this.nextToken(),p.push(this.parseLexicalBinding(h,u));return p},d.prototype.isLexicalDeclaration=function(){var h=this.scanner.saveState();this.scanner.scanComments();var u=this.scanner.lex();return this.scanner.restoreState(h),u.type===3||u.type===7&&u.value==="["||u.type===7&&u.value==="{"||u.type===4&&u.value==="let"||u.type===4&&u.value==="yield"},d.prototype.parseLexicalDeclaration=function(h){var u=this.createNode(),p=this.nextToken().value;r.assert(p==="let"||p==="const","Lexical declaration must be either let or const");var g=this.parseBindingList(p,h);return this.consumeSemicolon(),this.finalize(u,new o.VariableDeclaration(g,p))},d.prototype.parseBindingRestElement=function(h,u){var p=this.createNode();this.expect("...");var g=this.parsePattern(h,u);return this.finalize(p,new o.RestElement(g))},d.prototype.parseArrayPattern=function(h,u){var p=this.createNode();this.expect("[");for(var g=[];!this.match("]");)if(this.match(","))this.nextToken(),g.push(null);else{if(this.match("...")){g.push(this.parseBindingRestElement(h,u));break}else g.push(this.parsePatternWithDefault(h,u));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(p,new o.ArrayPattern(g))},d.prototype.parsePropertyPattern=function(h,u){var p=this.createNode(),g=!1,E=!1,v=!1,D,x;if(this.lookahead.type===3){var w=this.lookahead;D=this.parseVariableIdentifier();var _=this.finalize(p,new o.Identifier(w.value));if(this.match("=")){h.push(w),E=!0,this.nextToken();var R=this.parseAssignmentExpression();x=this.finalize(this.startNode(w),new o.AssignmentPattern(_,R))}else this.match(":")?(this.expect(":"),x=this.parsePatternWithDefault(h,u)):(h.push(w),E=!0,x=_)}else g=this.match("["),D=this.parseObjectPropertyKey(),this.expect(":"),x=this.parsePatternWithDefault(h,u);return this.finalize(p,new o.Property("init",D,g,x,v,E))},d.prototype.parseObjectPattern=function(h,u){var p=this.createNode(),g=[];for(this.expect("{");!this.match("}");)g.push(this.parsePropertyPattern(h,u)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(p,new o.ObjectPattern(g))},d.prototype.parsePattern=function(h,u){var p;return this.match("[")?p=this.parseArrayPattern(h,u):this.match("{")?p=this.parseObjectPattern(h,u):(this.matchKeyword("let")&&(u==="const"||u==="let")&&this.tolerateUnexpectedToken(this.lookahead,n.Messages.LetInLexicalBinding),h.push(this.lookahead),p=this.parseVariableIdentifier(u)),p},d.prototype.parsePatternWithDefault=function(h,u){var p=this.lookahead,g=this.parsePattern(h,u);if(this.match("=")){this.nextToken();var E=this.context.allowYield;this.context.allowYield=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=E,g=this.finalize(this.startNode(p),new o.AssignmentPattern(g,v))}return g},d.prototype.parseVariableIdentifier=function(h){var u=this.createNode(),p=this.nextToken();return p.type===4&&p.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(p):p.type!==3?this.context.strict&&p.type===4&&this.scanner.isStrictModeReservedWord(p.value)?this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord):(this.context.strict||p.value!=="let"||h!=="var")&&this.throwUnexpectedToken(p):(this.context.isModule||this.context.await)&&p.type===3&&p.value==="await"&&this.tolerateUnexpectedToken(p),this.finalize(u,new o.Identifier(p.value))},d.prototype.parseVariableDeclaration=function(h){var u=this.createNode(),p=[],g=this.parsePattern(p,"var");this.context.strict&&g.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(g.name)&&this.tolerateError(n.Messages.StrictVarName);var E=null;return this.match("=")?(this.nextToken(),E=this.isolateCoverGrammar(this.parseAssignmentExpression)):g.type!==c.Syntax.Identifier&&!h.inFor&&this.expect("="),this.finalize(u,new o.VariableDeclarator(g,E))},d.prototype.parseVariableDeclarationList=function(h){var u={inFor:h.inFor},p=[];for(p.push(this.parseVariableDeclaration(u));this.match(",");)this.nextToken(),p.push(this.parseVariableDeclaration(u));return p},d.prototype.parseVariableStatement=function(){var h=this.createNode();this.expectKeyword("var");var u=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(h,new o.VariableDeclaration(u,"var"))},d.prototype.parseEmptyStatement=function(){var h=this.createNode();return this.expect(";"),this.finalize(h,new o.EmptyStatement)},d.prototype.parseExpressionStatement=function(){var h=this.createNode(),u=this.parseExpression();return this.consumeSemicolon(),this.finalize(h,new o.ExpressionStatement(u))},d.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(n.Messages.StrictFunction),this.parseStatement()},d.prototype.parseIfStatement=function(){var h=this.createNode(),u,p=null;this.expectKeyword("if"),this.expect("(");var g=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),u=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),p=this.parseIfClause())),this.finalize(h,new o.IfStatement(g,u,p))},d.prototype.parseDoWhileStatement=function(){var h=this.createNode();this.expectKeyword("do");var u=this.context.inIteration;this.context.inIteration=!0;var p=this.parseStatement();this.context.inIteration=u,this.expectKeyword("while"),this.expect("(");var g=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(h,new o.DoWhileStatement(p,g))},d.prototype.parseWhileStatement=function(){var h=this.createNode(),u;this.expectKeyword("while"),this.expect("(");var p=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,u=this.parseStatement(),this.context.inIteration=g}return this.finalize(h,new o.WhileStatement(p,u))},d.prototype.parseForStatement=function(){var h=null,u=null,p=null,g=!0,E,v,D=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){h=this.createNode(),this.nextToken();var x=this.context.allowIn;this.context.allowIn=!1;var w=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=x,w.length===1&&this.matchKeyword("in")){var _=w[0];_.init&&(_.id.type===c.Syntax.ArrayPattern||_.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(n.Messages.ForInOfLoopInitializer,"for-in"),h=this.finalize(h,new o.VariableDeclaration(w,"var")),this.nextToken(),E=h,v=this.parseExpression(),h=null}else w.length===1&&w[0].init===null&&this.matchContextualKeyword("of")?(h=this.finalize(h,new o.VariableDeclaration(w,"var")),this.nextToken(),E=h,v=this.parseAssignmentExpression(),h=null,g=!1):(h=this.finalize(h,new o.VariableDeclaration(w,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){h=this.createNode();var R=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")h=this.finalize(h,new o.Identifier(R)),this.nextToken(),E=h,v=this.parseExpression(),h=null;else{var x=this.context.allowIn;this.context.allowIn=!1;var w=this.parseBindingList(R,{inFor:!0});this.context.allowIn=x,w.length===1&&w[0].init===null&&this.matchKeyword("in")?(h=this.finalize(h,new o.VariableDeclaration(w,R)),this.nextToken(),E=h,v=this.parseExpression(),h=null):w.length===1&&w[0].init===null&&this.matchContextualKeyword("of")?(h=this.finalize(h,new o.VariableDeclaration(w,R)),this.nextToken(),E=h,v=this.parseAssignmentExpression(),h=null,g=!1):(this.consumeSemicolon(),h=this.finalize(h,new o.VariableDeclaration(w,R)))}}else{var T=this.lookahead,x=this.context.allowIn;if(this.context.allowIn=!1,h=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=x,this.matchKeyword("in"))(!this.context.isAssignmentTarget||h.type===c.Syntax.AssignmentExpression)&&this.tolerateError(n.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(h),E=h,v=this.parseExpression(),h=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||h.type===c.Syntax.AssignmentExpression)&&this.tolerateError(n.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(h),E=h,v=this.parseAssignmentExpression(),h=null,g=!1;else{if(this.match(",")){for(var O=[h];this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));h=this.finalize(this.startNode(T),new o.SequenceExpression(O))}this.expect(";")}}typeof E>"u"&&(this.match(";")||(u=this.parseExpression()),this.expect(";"),this.match(")")||(p=this.parseExpression()));var M;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),M=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var q=this.context.inIteration;this.context.inIteration=!0,M=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=q}return typeof E>"u"?this.finalize(D,new o.ForStatement(h,u,p,M)):g?this.finalize(D,new o.ForInStatement(E,v,M)):this.finalize(D,new o.ForOfStatement(E,v,M))},d.prototype.parseContinueStatement=function(){var h=this.createNode();this.expectKeyword("continue");var u=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var p=this.parseVariableIdentifier();u=p;var g="$"+p.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(n.Messages.UnknownLabel,p.name)}return this.consumeSemicolon(),u===null&&!this.context.inIteration&&this.throwError(n.Messages.IllegalContinue),this.finalize(h,new o.ContinueStatement(u))},d.prototype.parseBreakStatement=function(){var h=this.createNode();this.expectKeyword("break");var u=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var p=this.parseVariableIdentifier(),g="$"+p.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(n.Messages.UnknownLabel,p.name),u=p}return this.consumeSemicolon(),u===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(n.Messages.IllegalBreak),this.finalize(h,new o.BreakStatement(u))},d.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(n.Messages.IllegalReturn);var h=this.createNode();this.expectKeyword("return");var u=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,p=u?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(h,new o.ReturnStatement(p))},d.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(n.Messages.StrictModeWith);var h=this.createNode(),u;this.expectKeyword("with"),this.expect("(");var p=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),u=this.parseStatement()),this.finalize(h,new o.WithStatement(p,u))},d.prototype.parseSwitchCase=function(){var h=this.createNode(),u;this.matchKeyword("default")?(this.nextToken(),u=null):(this.expectKeyword("case"),u=this.parseExpression()),this.expect(":");for(var p=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)p.push(this.parseStatementListItem());return this.finalize(h,new o.SwitchCase(u,p))},d.prototype.parseSwitchStatement=function(){var h=this.createNode();this.expectKeyword("switch"),this.expect("(");var u=this.parseExpression();this.expect(")");var p=this.context.inSwitch;this.context.inSwitch=!0;var g=[],E=!1;for(this.expect("{");!this.match("}");){var v=this.parseSwitchCase();v.test===null&&(E&&this.throwError(n.Messages.MultipleDefaultsInSwitch),E=!0),g.push(v)}return this.expect("}"),this.context.inSwitch=p,this.finalize(h,new o.SwitchStatement(u,g))},d.prototype.parseLabelledStatement=function(){var h=this.createNode(),u=this.parseExpression(),p;if(u.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var g=u,E="$"+g.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,E)&&this.throwError(n.Messages.Redeclaration,"Label",g.name),this.context.labelSet[E]=!0;var v=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),v=this.parseClassDeclaration();else if(this.matchKeyword("function")){var D=this.lookahead,x=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(D,n.Messages.StrictFunction):x.generator&&this.tolerateUnexpectedToken(D,n.Messages.GeneratorInLegacyContext),v=x}else v=this.parseStatement();delete this.context.labelSet[E],p=new o.LabeledStatement(g,v)}else this.consumeSemicolon(),p=new o.ExpressionStatement(u);return this.finalize(h,p)},d.prototype.parseThrowStatement=function(){var h=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(n.Messages.NewlineAfterThrow);var u=this.parseExpression();return this.consumeSemicolon(),this.finalize(h,new o.ThrowStatement(u))},d.prototype.parseCatchClause=function(){var h=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var u=[],p=this.parsePattern(u),g={},E=0;E<u.length;E++){var v="$"+u[E].value;Object.prototype.hasOwnProperty.call(g,v)&&this.tolerateError(n.Messages.DuplicateBinding,u[E].value),g[v]=!0}this.context.strict&&p.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(p.name)&&this.tolerateError(n.Messages.StrictCatchVariable),this.expect(")");var D=this.parseBlock();return this.finalize(h,new o.CatchClause(p,D))},d.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},d.prototype.parseTryStatement=function(){var h=this.createNode();this.expectKeyword("try");var u=this.parseBlock(),p=this.matchKeyword("catch")?this.parseCatchClause():null,g=this.matchKeyword("finally")?this.parseFinallyClause():null;return!p&&!g&&this.throwError(n.Messages.NoCatchOrFinally),this.finalize(h,new o.TryStatement(u,p,g))},d.prototype.parseDebuggerStatement=function(){var h=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(h,new o.DebuggerStatement)},d.prototype.parseStatement=function(){var h;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:h=this.parseExpressionStatement();break;case 7:var u=this.lookahead.value;u==="{"?h=this.parseBlock():u==="("?h=this.parseExpressionStatement():u===";"?h=this.parseEmptyStatement():h=this.parseExpressionStatement();break;case 3:h=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":h=this.parseBreakStatement();break;case"continue":h=this.parseContinueStatement();break;case"debugger":h=this.parseDebuggerStatement();break;case"do":h=this.parseDoWhileStatement();break;case"for":h=this.parseForStatement();break;case"function":h=this.parseFunctionDeclaration();break;case"if":h=this.parseIfStatement();break;case"return":h=this.parseReturnStatement();break;case"switch":h=this.parseSwitchStatement();break;case"throw":h=this.parseThrowStatement();break;case"try":h=this.parseTryStatement();break;case"var":h=this.parseVariableStatement();break;case"while":h=this.parseWhileStatement();break;case"with":h=this.parseWithStatement();break;default:h=this.parseExpressionStatement();break}break;default:h=this.throwUnexpectedToken(this.lookahead)}return h},d.prototype.parseFunctionSourceElements=function(){var h=this.createNode();this.expect("{");var u=this.parseDirectivePrologues(),p=this.context.labelSet,g=this.context.inIteration,E=this.context.inSwitch,v=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)u.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=p,this.context.inIteration=g,this.context.inSwitch=E,this.context.inFunctionBody=v,this.finalize(h,new o.BlockStatement(u))},d.prototype.validateParam=function(h,u,p){var g="$"+p;this.context.strict?(this.scanner.isRestrictedWord(p)&&(h.stricted=u,h.message=n.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(h.paramSet,g)&&(h.stricted=u,h.message=n.Messages.StrictParamDupe)):h.firstRestricted||(this.scanner.isRestrictedWord(p)?(h.firstRestricted=u,h.message=n.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(p)?(h.firstRestricted=u,h.message=n.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(h.paramSet,g)&&(h.stricted=u,h.message=n.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(h.paramSet,g,{value:!0,enumerable:!0,writable:!0,configurable:!0}):h.paramSet[g]=!0},d.prototype.parseRestElement=function(h){var u=this.createNode();this.expect("...");var p=this.parsePattern(h);return this.match("=")&&this.throwError(n.Messages.DefaultRestParameter),this.match(")")||this.throwError(n.Messages.ParameterAfterRestParameter),this.finalize(u,new o.RestElement(p))},d.prototype.parseFormalParameter=function(h){for(var u=[],p=this.match("...")?this.parseRestElement(u):this.parsePatternWithDefault(u),g=0;g<u.length;g++)this.validateParam(h,u[g],u[g].value);h.simple=h.simple&&p instanceof o.Identifier,h.params.push(p)},d.prototype.parseFormalParameters=function(h){var u;if(u={simple:!0,params:[],firstRestricted:h},this.expect("("),!this.match(")"))for(u.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(u),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:u.simple,params:u.params,stricted:u.stricted,firstRestricted:u.firstRestricted,message:u.message}},d.prototype.matchAsyncFunction=function(){var h=this.matchContextualKeyword("async");if(h){var u=this.scanner.saveState();this.scanner.scanComments();var p=this.scanner.lex();this.scanner.restoreState(u),h=u.lineNumber===p.lineNumber&&p.type===4&&p.value==="function"}return h},d.prototype.parseFunctionDeclaration=function(h){var u=this.createNode(),p=this.matchContextualKeyword("async");p&&this.nextToken(),this.expectKeyword("function");var g=p?!1:this.match("*");g&&this.nextToken();var E,v=null,D=null;if(!h||!this.match("(")){var x=this.lookahead;v=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(x.value)&&this.tolerateUnexpectedToken(x,n.Messages.StrictFunctionName):this.scanner.isRestrictedWord(x.value)?(D=x,E=n.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(x.value)&&(D=x,E=n.Messages.StrictReservedWord)}var w=this.context.await,_=this.context.allowYield;this.context.await=p,this.context.allowYield=!g;var R=this.parseFormalParameters(D),T=R.params,O=R.stricted;D=R.firstRestricted,R.message&&(E=R.message);var M=this.context.strict,q=this.context.allowStrictDirective;this.context.allowStrictDirective=R.simple;var Ne=this.parseFunctionSourceElements();return this.context.strict&&D&&this.throwUnexpectedToken(D,E),this.context.strict&&O&&this.tolerateUnexpectedToken(O,E),this.context.strict=M,this.context.allowStrictDirective=q,this.context.await=w,this.context.allowYield=_,p?this.finalize(u,new o.AsyncFunctionDeclaration(v,T,Ne)):this.finalize(u,new o.FunctionDeclaration(v,T,Ne,g))},d.prototype.parseFunctionExpression=function(){var h=this.createNode(),u=this.matchContextualKeyword("async");u&&this.nextToken(),this.expectKeyword("function");var p=u?!1:this.match("*");p&&this.nextToken();var g,E=null,v,D=this.context.await,x=this.context.allowYield;if(this.context.await=u,this.context.allowYield=!p,!this.match("(")){var w=this.lookahead;E=!this.context.strict&&!p&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(w.value)&&this.tolerateUnexpectedToken(w,n.Messages.StrictFunctionName):this.scanner.isRestrictedWord(w.value)?(v=w,g=n.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(w.value)&&(v=w,g=n.Messages.StrictReservedWord)}var _=this.parseFormalParameters(v),R=_.params,T=_.stricted;v=_.firstRestricted,_.message&&(g=_.message);var O=this.context.strict,M=this.context.allowStrictDirective;this.context.allowStrictDirective=_.simple;var q=this.parseFunctionSourceElements();return this.context.strict&&v&&this.throwUnexpectedToken(v,g),this.context.strict&&T&&this.tolerateUnexpectedToken(T,g),this.context.strict=O,this.context.allowStrictDirective=M,this.context.await=D,this.context.allowYield=x,u?this.finalize(h,new o.AsyncFunctionExpression(E,R,q)):this.finalize(h,new o.FunctionExpression(E,R,q,p))},d.prototype.parseDirective=function(){var h=this.lookahead,u=this.createNode(),p=this.parseExpression(),g=p.type===c.Syntax.Literal?this.getTokenRaw(h).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(u,g?new o.Directive(p,g):new o.ExpressionStatement(p))},d.prototype.parseDirectivePrologues=function(){for(var h=null,u=[];;){var p=this.lookahead;if(p.type!==8)break;var g=this.parseDirective();u.push(g);var E=g.directive;if(typeof E!="string")break;E==="use strict"?(this.context.strict=!0,h&&this.tolerateUnexpectedToken(h,n.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(p,n.Messages.IllegalLanguageModeDirective)):!h&&p.octal&&(h=p)}return u},d.prototype.qualifiedPropertyName=function(h){switch(h.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return h.value==="[";default:break}return!1},d.prototype.parseGetterMethod=function(){var h=this.createNode(),u=!1,p=this.context.allowYield;this.context.allowYield=!u;var g=this.parseFormalParameters();g.params.length>0&&this.tolerateError(n.Messages.BadGetterArity);var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.parseSetterMethod=function(){var h=this.createNode(),u=!1,p=this.context.allowYield;this.context.allowYield=!u;var g=this.parseFormalParameters();g.params.length!==1?this.tolerateError(n.Messages.BadSetterArity):g.params[0]instanceof o.RestElement&&this.tolerateError(n.Messages.BadSetterRestParameter);var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.parseGeneratorMethod=function(){var h=this.createNode(),u=!0,p=this.context.allowYield;this.context.allowYield=!0;var g=this.parseFormalParameters();this.context.allowYield=!1;var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.isStartOfExpression=function(){var h=!0,u=this.lookahead.value;switch(this.lookahead.type){case 7:h=u==="["||u==="("||u==="{"||u==="+"||u==="-"||u==="!"||u==="~"||u==="++"||u==="--"||u==="/"||u==="/=";break;case 4:h=u==="class"||u==="delete"||u==="function"||u==="let"||u==="new"||u==="super"||u==="this"||u==="typeof"||u==="void"||u==="yield";break;default:break}return h},d.prototype.parseYieldExpression=function(){var h=this.createNode();this.expectKeyword("yield");var u=null,p=!1;if(!this.hasLineTerminator){var g=this.context.allowYield;this.context.allowYield=!1,p=this.match("*"),p?(this.nextToken(),u=this.parseAssignmentExpression()):this.isStartOfExpression()&&(u=this.parseAssignmentExpression()),this.context.allowYield=g}return this.finalize(h,new o.YieldExpression(u,p))},d.prototype.parseClassElement=function(h){var u=this.lookahead,p=this.createNode(),g="",E=null,v=null,D=!1,x=!1,w=!1,_=!1;if(this.match("*"))this.nextToken();else{D=this.match("["),E=this.parseObjectPropertyKey();var R=E;if(R.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(u=this.lookahead,w=!0,D=this.match("["),this.match("*")?this.nextToken():E=this.parseObjectPropertyKey()),u.type===3&&!this.hasLineTerminator&&u.value==="async"){var T=this.lookahead.value;T!==":"&&T!=="("&&T!=="*"&&(_=!0,u=this.lookahead,E=this.parseObjectPropertyKey(),u.type===3&&u.value==="constructor"&&this.tolerateUnexpectedToken(u,n.Messages.ConstructorIsAsync))}}var O=this.qualifiedPropertyName(this.lookahead);return u.type===3?u.value==="get"&&O?(g="get",D=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod()):u.value==="set"&&O&&(g="set",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseSetterMethod()):u.type===7&&u.value==="*"&&O&&(g="init",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),x=!0),!g&&E&&this.match("(")&&(g="init",v=_?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),x=!0),g||this.throwUnexpectedToken(this.lookahead),g==="init"&&(g="method"),D||(w&&this.isPropertyKey(E,"prototype")&&this.throwUnexpectedToken(u,n.Messages.StaticPrototype),!w&&this.isPropertyKey(E,"constructor")&&((g!=="method"||!x||v&&v.generator)&&this.throwUnexpectedToken(u,n.Messages.ConstructorSpecialMethod),h.value?this.throwUnexpectedToken(u,n.Messages.DuplicateConstructor):h.value=!0,g="constructor")),this.finalize(p,new o.MethodDefinition(E,D,v,g,w))},d.prototype.parseClassElementList=function(){var h=[],u={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():h.push(this.parseClassElement(u));return this.expect("}"),h},d.prototype.parseClassBody=function(){var h=this.createNode(),u=this.parseClassElementList();return this.finalize(h,new o.ClassBody(u))},d.prototype.parseClassDeclaration=function(h){var u=this.createNode(),p=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var g=h&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),E=null;this.matchKeyword("extends")&&(this.nextToken(),E=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var v=this.parseClassBody();return this.context.strict=p,this.finalize(u,new o.ClassDeclaration(g,E,v))},d.prototype.parseClassExpression=function(){var h=this.createNode(),u=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var p=this.lookahead.type===3?this.parseVariableIdentifier():null,g=null;this.matchKeyword("extends")&&(this.nextToken(),g=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var E=this.parseClassBody();return this.context.strict=u,this.finalize(h,new o.ClassExpression(p,g,E))},d.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var h=this.createNode(),u=this.parseDirectivePrologues();this.lookahead.type!==2;)u.push(this.parseStatementListItem());return this.finalize(h,new o.Module(u))},d.prototype.parseScript=function(){for(var h=this.createNode(),u=this.parseDirectivePrologues();this.lookahead.type!==2;)u.push(this.parseStatementListItem());return this.finalize(h,new o.Script(u))},d.prototype.parseModuleSpecifier=function(){var h=this.createNode();this.lookahead.type!==8&&this.throwError(n.Messages.InvalidModuleSpecifier);var u=this.nextToken(),p=this.getTokenRaw(u);return this.finalize(h,new o.Literal(u.value,p))},d.prototype.parseImportSpecifier=function(){var h=this.createNode(),u,p;return this.lookahead.type===3?(u=this.parseVariableIdentifier(),p=u,this.matchContextualKeyword("as")&&(this.nextToken(),p=this.parseVariableIdentifier())):(u=this.parseIdentifierName(),p=u,this.matchContextualKeyword("as")?(this.nextToken(),p=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(h,new o.ImportSpecifier(p,u))},d.prototype.parseNamedImports=function(){this.expect("{");for(var h=[];!this.match("}");)h.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),h},d.prototype.parseImportDefaultSpecifier=function(){var h=this.createNode(),u=this.parseIdentifierName();return this.finalize(h,new o.ImportDefaultSpecifier(u))},d.prototype.parseImportNamespaceSpecifier=function(){var h=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(n.Messages.NoAsAfterImportNamespace),this.nextToken();var u=this.parseIdentifierName();return this.finalize(h,new o.ImportNamespaceSpecifier(u))},d.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalImportDeclaration);var h=this.createNode();this.expectKeyword("import");var u,p=[];if(this.lookahead.type===8)u=this.parseModuleSpecifier();else{if(this.match("{")?p=p.concat(this.parseNamedImports()):this.match("*")?p.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(p.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?p.push(this.parseImportNamespaceSpecifier()):this.match("{")?p=p.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}this.nextToken(),u=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(h,new o.ImportDeclaration(p,u))},d.prototype.parseExportSpecifier=function(){var h=this.createNode(),u=this.parseIdentifierName(),p=u;return this.matchContextualKeyword("as")&&(this.nextToken(),p=this.parseIdentifierName()),this.finalize(h,new o.ExportSpecifier(u,p))},d.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalExportDeclaration);var h=this.createNode();this.expectKeyword("export");var u;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var p=this.parseFunctionDeclaration(!0);u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.matchKeyword("class")){var p=this.parseClassDeclaration(!0);u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.matchContextualKeyword("async")){var p=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else{this.matchContextualKeyword("from")&&this.throwError(n.Messages.UnexpectedToken,this.lookahead.value);var p=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}this.nextToken();var E=this.parseModuleSpecifier();this.consumeSemicolon(),u=this.finalize(h,new o.ExportAllDeclaration(E))}else if(this.lookahead.type===4){var p=void 0;switch(this.lookahead.value){case"let":case"const":p=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":p=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}u=this.finalize(h,new o.ExportNamedDeclaration(p,[],null))}else if(this.matchAsyncFunction()){var p=this.parseFunctionDeclaration();u=this.finalize(h,new o.ExportNamedDeclaration(p,[],null))}else{var v=[],D=null,x=!1;for(this.expect("{");!this.match("}");)x=x||this.matchKeyword("default"),v.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),D=this.parseModuleSpecifier(),this.consumeSemicolon();else if(x){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}else this.consumeSemicolon();u=this.finalize(h,new o.ExportNamedDeclaration(null,v,D))}return u},d}();e.Parser=m},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(r,s){if(!r)throw new Error("ASSERT: "+s)}e.assert=t},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function r(){this.errors=[],this.tolerant=!1}return r.prototype.recordError=function(s){this.errors.push(s)},r.prototype.tolerate=function(s){if(this.tolerant)this.recordError(s);else throw s},r.prototype.constructError=function(s,n){var o=new Error(s);try{throw o}catch(a){Object.create&&Object.defineProperty&&(o=Object.create(a),Object.defineProperty(o,"column",{value:n}))}return o},r.prototype.createError=function(s,n,o,a){var c="Line "+n+": "+a,l=this.constructError(c,o);return l.index=s,l.lineNumber=n,l.description=a,l},r.prototype.throwError=function(s,n,o,a){throw this.createError(s,n,o,a)},r.prototype.tolerateError=function(s,n,o,a){var c=this.createError(s,n,o,a);if(this.tolerant)this.recordError(c);else throw c},r}();e.ErrorHandler=t},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),s=t(4),n=t(11);function o(l){return"0123456789abcdef".indexOf(l.toLowerCase())}function a(l){return"01234567".indexOf(l)}var c=function(){function l(f,m){this.source=f,this.errorHandler=m,this.trackComment=!1,this.isModule=!1,this.length=f.length,this.index=0,this.lineNumber=f.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return l.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},l.prototype.restoreState=function(f){this.index=f.index,this.lineNumber=f.lineNumber,this.lineStart=f.lineStart},l.prototype.eof=function(){return this.index>=this.length},l.prototype.throwUnexpectedToken=function(f){return f===void 0&&(f=n.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,f)},l.prototype.tolerateUnexpectedToken=function(f){f===void 0&&(f=n.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,f)},l.prototype.skipSingleLineComment=function(f){var m=[],d,h;for(this.trackComment&&(m=[],d=this.index-f,h={start:{line:this.lineNumber,column:this.index-this.lineStart-f},end:{}});!this.eof();){var u=this.source.charCodeAt(this.index);if(++this.index,s.Character.isLineTerminator(u)){if(this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart-1};var p={multiLine:!1,slice:[d+f,this.index-1],range:[d,this.index-1],loc:h};m.push(p)}return u===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m}}if(this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart};var p={multiLine:!1,slice:[d+f,this.index],range:[d,this.index],loc:h};m.push(p)}return m},l.prototype.skipMultiLineComment=function(){var f=[],m,d;for(this.trackComment&&(f=[],m=this.index-2,d={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var h=this.source.charCodeAt(this.index);if(s.Character.isLineTerminator(h))h===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(h===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var u={multiLine:!0,slice:[m+2,this.index-2],range:[m,this.index],loc:d};f.push(u)}return f}++this.index}else++this.index}if(this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var u={multiLine:!0,slice:[m+2,this.index],range:[m,this.index],loc:d};f.push(u)}return this.tolerateUnexpectedToken(),f},l.prototype.scanComments=function(){var f;this.trackComment&&(f=[]);for(var m=this.index===0;!this.eof();){var d=this.source.charCodeAt(this.index);if(s.Character.isWhiteSpace(d))++this.index;else if(s.Character.isLineTerminator(d))++this.index,d===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m=!0;else if(d===47)if(d=this.source.charCodeAt(this.index+1),d===47){this.index+=2;var h=this.skipSingleLineComment(2);this.trackComment&&(f=f.concat(h)),m=!0}else if(d===42){this.index+=2;var h=this.skipMultiLineComment();this.trackComment&&(f=f.concat(h))}else break;else if(m&&d===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var h=this.skipSingleLineComment(3);this.trackComment&&(f=f.concat(h))}else break;else if(d===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var h=this.skipSingleLineComment(4);this.trackComment&&(f=f.concat(h))}else break;else break}return f},l.prototype.isFutureReservedWord=function(f){switch(f){case"enum":case"export":case"import":case"super":return!0;default:return!1}},l.prototype.isStrictModeReservedWord=function(f){switch(f){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},l.prototype.isRestrictedWord=function(f){return f==="eval"||f==="arguments"},l.prototype.isKeyword=function(f){switch(f.length){case 2:return f==="if"||f==="in"||f==="do";case 3:return f==="var"||f==="for"||f==="new"||f==="try"||f==="let";case 4:return f==="this"||f==="else"||f==="case"||f==="void"||f==="with"||f==="enum";case 5:return f==="while"||f==="break"||f==="catch"||f==="throw"||f==="const"||f==="yield"||f==="class"||f==="super";case 6:return f==="return"||f==="typeof"||f==="delete"||f==="switch"||f==="export"||f==="import";case 7:return f==="default"||f==="finally"||f==="extends";case 8:return f==="function"||f==="continue"||f==="debugger";case 10:return f==="instanceof";default:return!1}},l.prototype.codePointAt=function(f){var m=this.source.charCodeAt(f);if(m>=55296&&m<=56319){var d=this.source.charCodeAt(f+1);if(d>=56320&&d<=57343){var h=m;m=(h-55296)*1024+d-56320+65536}}return m},l.prototype.scanHexEscape=function(f){for(var m=f==="u"?4:2,d=0,h=0;h<m;++h)if(!this.eof()&&s.Character.isHexDigit(this.source.charCodeAt(this.index)))d=d*16+o(this.source[this.index++]);else return null;return String.fromCharCode(d)},l.prototype.scanUnicodeCodePointEscape=function(){var f=this.source[this.index],m=0;for(f==="}"&&this.throwUnexpectedToken();!this.eof()&&(f=this.source[this.index++],!!s.Character.isHexDigit(f.charCodeAt(0)));)m=m*16+o(f);return(m>1114111||f!=="}")&&this.throwUnexpectedToken(),s.Character.fromCodePoint(m)},l.prototype.getIdentifier=function(){for(var f=this.index++;!this.eof();){var m=this.source.charCodeAt(this.index);if(m===92)return this.index=f,this.getComplexIdentifier();if(m>=55296&&m<57343)return this.index=f,this.getComplexIdentifier();if(s.Character.isIdentifierPart(m))++this.index;else break}return this.source.slice(f,this.index)},l.prototype.getComplexIdentifier=function(){var f=this.codePointAt(this.index),m=s.Character.fromCodePoint(f);this.index+=m.length;var d;for(f===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!s.Character.isIdentifierStart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m=d);!this.eof()&&(f=this.codePointAt(this.index),!!s.Character.isIdentifierPart(f));)d=s.Character.fromCodePoint(f),m+=d,this.index+=d.length,f===92&&(m=m.substr(0,m.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!s.Character.isIdentifierPart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m+=d);return m},l.prototype.octalToDecimal=function(f){var m=f!=="0",d=a(f);return!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(m=!0,d=d*8+a(this.source[this.index++]),"0123".indexOf(f)>=0&&!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=d*8+a(this.source[this.index++]))),{code:d,octal:m}},l.prototype.scanIdentifier=function(){var f,m=this.index,d=this.source.charCodeAt(m)===92?this.getComplexIdentifier():this.getIdentifier();if(d.length===1?f=3:this.isKeyword(d)?f=4:d==="null"?f=5:d==="true"||d==="false"?f=1:f=3,f!==3&&m+d.length!==this.index){var h=this.index;this.index=m,this.tolerateUnexpectedToken(n.Messages.InvalidEscapedReservedWord),this.index=h}return{type:f,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},l.prototype.scanPunctuator=function(){var f=this.index,m=this.source[this.index];switch(m){case"(":case"{":m==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,m="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:m=this.source.substr(this.index,4),m===">>>="?this.index+=4:(m=m.substr(0,3),m==="==="||m==="!=="||m===">>>"||m==="<<="||m===">>="||m==="**="?this.index+=3:(m=m.substr(0,2),m==="&&"||m==="||"||m==="=="||m==="!="||m==="+="||m==="-="||m==="*="||m==="/="||m==="++"||m==="--"||m==="<<"||m===">>"||m==="&="||m==="|="||m==="^="||m==="%="||m==="<="||m===">="||m==="=>"||m==="**"?this.index+=2:(m=this.source[this.index],"<>=!+-*%&|^/".indexOf(m)>=0&&++this.index)))}return this.index===f&&this.throwUnexpectedToken(),{type:7,value:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanHexLiteral=function(f){for(var m="";!this.eof()&&s.Character.isHexDigit(this.source.charCodeAt(this.index));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),s.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+m,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanBinaryLiteral=function(f){for(var m="",d;!this.eof()&&(d=this.source[this.index],!(d!=="0"&&d!=="1"));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),this.eof()||(d=this.source.charCodeAt(this.index),(s.Character.isIdentifierStart(d)||s.Character.isDecimalDigit(d))&&this.throwUnexpectedToken()),{type:6,value:parseInt(m,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanOctalLiteral=function(f,m){var d="",h=!1;for(s.Character.isOctalDigit(f.charCodeAt(0))?(h=!0,d="0"+this.source[this.index++]):++this.index;!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];return!h&&d.length===0&&this.throwUnexpectedToken(),(s.Character.isIdentifierStart(this.source.charCodeAt(this.index))||s.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(d,8),octal:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},l.prototype.isImplicitOctalLiteral=function(){for(var f=this.index+1;f<this.length;++f){var m=this.source[f];if(m==="8"||m==="9")return!1;if(!s.Character.isOctalDigit(m.charCodeAt(0)))return!0}return!0},l.prototype.scanNumericLiteral=function(){var f=this.index,m=this.source[f];r.assert(s.Character.isDecimalDigit(m.charCodeAt(0))||m===".","Numeric literal must start with a decimal digit or a decimal point");var d="";if(m!=="."){if(d=this.source[this.index++],m=this.source[this.index],d==="0"){if(m==="x"||m==="X")return++this.index,this.scanHexLiteral(f);if(m==="b"||m==="B")return++this.index,this.scanBinaryLiteral(f);if(m==="o"||m==="O")return this.scanOctalLiteral(m,f);if(m&&s.Character.isOctalDigit(m.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(m,f)}for(;s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="."){for(d+=this.source[this.index++];s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="e"||m==="E")if(d+=this.source[this.index++],m=this.source[this.index],(m==="+"||m==="-")&&(d+=this.source[this.index++]),s.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];else this.throwUnexpectedToken();return s.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(d),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanStringLiteral=function(){var f=this.index,m=this.source[f];r.assert(m==="'"||m==='"',"String literal must starts with a quote"),++this.index;for(var d=!1,h="";!this.eof();){var u=this.source[this.index++];if(u===m){m="";break}else if(u==="\\")if(u=this.source[this.index++],!u||!s.Character.isLineTerminator(u.charCodeAt(0)))switch(u){case"u":if(this.source[this.index]==="{")++this.index,h+=this.scanUnicodeCodePointEscape();else{var p=this.scanHexEscape(u);p===null&&this.throwUnexpectedToken(),h+=p}break;case"x":var g=this.scanHexEscape(u);g===null&&this.throwUnexpectedToken(n.Messages.InvalidHexEscapeSequence),h+=g;break;case"n":h+=`
|
|
5
5
|
`;break;case"r":h+="\r";break;case"t":h+=" ";break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;case"8":case"9":h+=u,this.tolerateUnexpectedToken();break;default:if(u&&s.Character.isOctalDigit(u.charCodeAt(0))){var E=this.octalToDecimal(u);d=E.octal||d,h+=String.fromCharCode(E.code)}else h+=u;break}else++this.lineNumber,u==="\r"&&this.source[this.index]===`
|
|
6
6
|
`&&++this.index,this.lineStart=this.index;else{if(s.Character.isLineTerminator(u.charCodeAt(0)))break;h+=u}}return m!==""&&(this.index=f,this.throwUnexpectedToken()),{type:8,value:h,octal:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanTemplate=function(){var f="",m=!1,d=this.index,h=this.source[d]==="`",u=!1,p=2;for(++this.index;!this.eof();){var g=this.source[this.index++];if(g==="`"){p=1,u=!0,m=!0;break}else if(g==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,m=!0;break}f+=g}else if(g==="\\")if(g=this.source[this.index++],s.Character.isLineTerminator(g.charCodeAt(0)))++this.lineNumber,g==="\r"&&this.source[this.index]===`
|
|
@@ -8,13 +8,13 @@ import{a as DI}from"./chunk-6MEM22XR.js";import{a as _v}from"./chunk-66OBCXPW.js
|
|
|
8
8
|
`;break;case"r":f+="\r";break;case"t":f+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,f+=this.scanUnicodeCodePointEscape();else{var E=this.index,v=this.scanHexEscape(g);v!==null?f+=v:(this.index=E,f+=g)}break;case"x":var D=this.scanHexEscape(g);D===null&&this.throwUnexpectedToken(n.Messages.InvalidHexEscapeSequence),f+=D;break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="\v";break;default:g==="0"?(s.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(n.Messages.TemplateOctalLiteral),f+="\0"):s.Character.isOctalDigit(g.charCodeAt(0))?this.throwUnexpectedToken(n.Messages.TemplateOctalLiteral):f+=g;break}else s.Character.isLineTerminator(g.charCodeAt(0))?(++this.lineNumber,g==="\r"&&this.source[this.index]===`
|
|
9
9
|
`&&++this.index,this.lineStart=this.index,f+=`
|
|
10
10
|
`):f+=g}return m||this.throwUnexpectedToken(),h||this.curlyStack.pop(),{type:10,value:this.source.slice(d+1,this.index-p),cooked:f,head:h,tail:u,lineNumber:this.lineNumber,lineStart:this.lineStart,start:d,end:this.index}},l.prototype.testRegExp=function(f,m){var d="\uFFFF",h=f,u=this;m.indexOf("u")>=0&&(h=h.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(p,g,E){var v=parseInt(g||E,16);return v>1114111&&u.throwUnexpectedToken(n.Messages.InvalidRegExp),v<=65535?String.fromCharCode(v):d}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d));try{RegExp(h)}catch{this.throwUnexpectedToken(n.Messages.InvalidRegExp)}try{return new RegExp(f,m)}catch{return null}},l.prototype.scanRegExpBody=function(){var f=this.source[this.index];r.assert(f==="/","Regular expression literal must start with a slash");for(var m=this.source[this.index++],d=!1,h=!1;!this.eof();)if(f=this.source[this.index++],m+=f,f==="\\")f=this.source[this.index++],s.Character.isLineTerminator(f.charCodeAt(0))&&this.throwUnexpectedToken(n.Messages.UnterminatedRegExp),m+=f;else if(s.Character.isLineTerminator(f.charCodeAt(0)))this.throwUnexpectedToken(n.Messages.UnterminatedRegExp);else if(d)f==="]"&&(d=!1);else if(f==="/"){h=!0;break}else f==="["&&(d=!0);return h||this.throwUnexpectedToken(n.Messages.UnterminatedRegExp),m.substr(1,m.length-2)},l.prototype.scanRegExpFlags=function(){for(var f="",m="";!this.eof();){var d=this.source[this.index];if(!s.Character.isIdentifierPart(d.charCodeAt(0)))break;if(++this.index,d==="\\"&&!this.eof())if(d=this.source[this.index],d==="u"){++this.index;var h=this.index,u=this.scanHexEscape("u");if(u!==null)for(m+=u,f+="\\u";h<this.index;++h)f+=this.source[h];else this.index=h,m+="u",f+="\\u";this.tolerateUnexpectedToken()}else f+="\\",this.tolerateUnexpectedToken();else m+=d,f+=d}return m},l.prototype.scanRegExp=function(){var f=this.index,m=this.scanRegExpBody(),d=this.scanRegExpFlags(),h=this.testRegExp(m,d);return{type:9,value:"",pattern:m,flags:d,regex:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var f=this.source.charCodeAt(this.index);return s.Character.isIdentifierStart(f)?this.scanIdentifier():f===40||f===41||f===59?this.scanPunctuator():f===39||f===34?this.scanStringLiteral():f===46?s.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():s.Character.isDecimalDigit(f)?this.scanNumericLiteral():f===96||f===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():f>=55296&&f<57343&&s.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},l}();e.Scanner=c},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenName={},e.TokenName[1]="Boolean",e.TokenName[2]="<end>",e.TokenName[3]="Identifier",e.TokenName[4]="Keyword",e.TokenName[5]="Null",e.TokenName[6]="Numeric",e.TokenName[7]="Punctuator",e.TokenName[8]="String",e.TokenName[9]="RegularExpression",e.TokenName[10]="Template"},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27E8",rang:"\u27E9"}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(10),s=t(12),n=t(13),o=function(){function c(){this.values=[],this.curly=this.paren=-1}return c.prototype.beforeFunctionExpression=function(l){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(l)>=0},c.prototype.isRegexStart=function(){var l=this.values[this.values.length-1],f=l!==null;switch(l){case"this":case"]":f=!1;break;case")":var m=this.values[this.paren-1];f=m==="if"||m==="while"||m==="for"||m==="with";break;case"}":if(f=!1,this.values[this.curly-3]==="function"){var d=this.values[this.curly-4];f=d?!this.beforeFunctionExpression(d):!1}else if(this.values[this.curly-4]==="function"){var d=this.values[this.curly-5];f=d?!this.beforeFunctionExpression(d):!0}break;default:break}return f},c.prototype.push=function(l){l.type===7||l.type===4?(l.value==="{"?this.curly=this.values.length:l.value==="("&&(this.paren=this.values.length),this.values.push(l.value)):this.values.push(null)},c}(),a=function(){function c(l,f){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=f?typeof f.tolerant=="boolean"&&f.tolerant:!1,this.scanner=new s.Scanner(l,this.errorHandler),this.scanner.trackComment=f?typeof f.comment=="boolean"&&f.comment:!1,this.trackRange=f?typeof f.range=="boolean"&&f.range:!1,this.trackLoc=f?typeof f.loc=="boolean"&&f.loc:!1,this.buffer=[],this.reader=new o}return c.prototype.errors=function(){return this.errorHandler.errors},c.prototype.getNextToken=function(){if(this.buffer.length===0){var l=this.scanner.scanComments();if(this.scanner.trackComment)for(var f=0;f<l.length;++f){var m=l[f],d=this.scanner.source.slice(m.slice[0],m.slice[1]),h={type:m.multiLine?"BlockComment":"LineComment",value:d};this.trackRange&&(h.range=m.range),this.trackLoc&&(h.loc=m.loc),this.buffer.push(h)}if(!this.scanner.eof()){var u=void 0;this.trackLoc&&(u={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var p=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),g=p?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(g);var E={type:n.TokenName[g.type],value:this.scanner.source.slice(g.start,g.end)};if(this.trackRange&&(E.range=[g.start,g.end]),this.trackLoc&&(u.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},E.loc=u),g.type===9){var v=g.pattern,D=g.flags;E.regex={pattern:v,flags:D}}this.buffer.push(E)}}return this.buffer.shift()},c}();e.Tokenizer=a}])})});var Sh=S(Me=>{"use strict";y();function kI(i){return Array.isArray?Array.isArray(i):Eh(i)==="[object Array]"}Me.isArray=kI;function FI(i){return typeof i=="boolean"}Me.isBoolean=FI;function RI(i){return i===null}Me.isNull=RI;function OI(i){return i==null}Me.isNullOrUndefined=OI;function BI(i){return typeof i=="number"}Me.isNumber=BI;function LI(i){return typeof i=="string"}Me.isString=LI;function II(i){return typeof i=="symbol"}Me.isSymbol=II;function PI(i){return i===void 0}Me.isUndefined=PI;function NI(i){return Eh(i)==="[object RegExp]"}Me.isRegExp=NI;function MI(i){return typeof i=="object"&&i!==null}Me.isObject=MI;function UI(i){return Eh(i)==="[object Date]"}Me.isDate=UI;function qI(i){return Eh(i)==="[object Error]"||i instanceof Error}Me.isError=qI;function jI(i){return typeof i=="function"}Me.isFunction=jI;function $I(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i>"u"}Me.isPrimitive=$I;Me.isBuffer=b("buffer").Buffer.isBuffer;function Eh(i){return Object.prototype.toString.call(i)}});var Hv=S((HK,Gv)=>{"use strict";y();var Mv=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],B,Uv=i=>i<1e5?i<100?i<10?0:1:i<1e4?i<1e3?2:3:4:i<1e7?i<1e6?5:6:i<1e9?i<1e8?7:8:9;function qv(i,e){if(i===e)return 0;if(~~i===i&&~~e===e){if(i===0||e===0)return i<e?-1:1;if(i<0||e<0){if(e>=0)return-1;if(i>=0)return 1;i=-i,e=-e}let s=Uv(i),n=Uv(e),o=0;return s<n?(i*=Mv[n-s-1],e/=10,o=-1):s>n&&(e*=Mv[s-n-1],i/=10,o=1),i===e?o:i<e?-1:1}let t=String(i),r=String(e);return t===r?0:t<r?-1:1}function zI(i){let e=0;for(;i>=32;)e|=i&1,i>>=1;return i+e}function jv(i,e,t,r){let s=e+1;if(s===t)return 1;if(r(i[s++],i[e])<0){for(;s<t&&r(i[s],i[s-1])<0;)s++;$v(i,e,s),$v(B,e,s)}else for(;s<t&&r(i[s],i[s-1])>=0;)s++;return s-e}function $v(i,e,t){for(t--;e<t;){let r=i[e];i[e++]=i[t],i[t--]=r}}function zv(i,e,t,r,s){for(r===e&&r++;r<t;r++){let n=i[r],o=B[r],a=e,c=r;for(;a<c;){let f=a+c>>>1;s(n,i[f])<0?c=f:a=f+1}let l=r-a;switch(l){case 3:i[a+3]=i[a+2],B[a+3]=B[a+2];case 2:i[a+2]=i[a+1],B[a+2]=B[a+1];case 1:i[a+1]=i[a],B[a+1]=B[a];break;default:for(;l>0;)i[a+l]=i[a+l-1],B[a+l]=B[a+l-1],l--}i[a]=n,B[a]=o}}function Kd(i,e,t,r,s,n){let o=0,a=0,c=1;if(n(i,e[t+s])>0){for(a=r-s;c<a&&n(i,e[t+s+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=a);c>a&&(c=a),o+=s,c+=s}else{for(a=s+1;c<a&&n(i,e[t+s-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=a);c>a&&(c=a);let l=o;o=s-c,c=s-l}for(o++;o<c;){let l=o+(c-o>>>1);n(i,e[t+l])>0?o=l+1:c=l}return c}function Yd(i,e,t,r,s,n){let o=0,a=0,c=1;if(n(i,e[t+s])<0){for(a=s+1;c<a&&n(i,e[t+s-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=a);c>a&&(c=a);let l=o;o=s-c,c=s-l}else{for(a=r-s;c<a&&n(i,e[t+s+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=a);c>a&&(c=a),o+=s,c+=s}for(o++;o<c;){let l=o+(c-o>>>1);n(i,e[t+l])<0?c=l:o=l+1}return c}var Zd=class{constructor(e,t){this.array=e,this.compare=t;let{length:r}=e;this.length=r,this.minGallop=7,this.tmpStorageLength=r<2*256?r>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=r<120?5:r<1542?10:r<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,t){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=t,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]<this.runLength[e+1]&&e--;else if(this.runLength[e]>this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]<this.runLength[e+1]&&e--,this.mergeAt(e)}}mergeAt(e){let{compare:t}=this,{array:r}=this,s=this.runStart[e],n=this.runLength[e],o=this.runStart[e+1],a=this.runLength[e+1];this.runLength[e]=n+a,e===this.stackSize-3&&(this.runStart[e+1]=this.runStart[e+2],this.runLength[e+1]=this.runLength[e+2]),this.stackSize--;let c=Yd(r[o],r,s,n,0,t);s+=c,n-=c,n!==0&&(a=Kd(r[s+n-1],r,o,a,a-1,t),a!==0&&(n<=a?this.mergeLow(s,n,o,a):this.mergeHigh(s,n,o,a)))}mergeLow(e,t,r,s){let{compare:n}=this,{array:o}=this,{tmp:a}=this,{tmpIndex:c}=this,l=0;for(l=0;l<t;l++)a[l]=o[e+l],c[l]=B[e+l];let f=0,m=r,d=e;if(o[d]=o[m],B[d]=B[m],d++,m++,--s===0){for(l=0;l<t;l++)o[d+l]=a[f+l],B[d+l]=c[f+l];return}if(t===1){for(l=0;l<s;l++)o[d+l]=o[m+l],B[d+l]=B[m+l];o[d+s]=a[f],B[d+s]=c[f];return}let{minGallop:h}=this;for(;;){let u=0,p=0,g=!1;do if(n(o[m],a[f])<0){if(o[d]=o[m],B[d]=B[m],d++,m++,p++,u=0,--s===0){g=!0;break}}else if(o[d]=a[f],B[d]=c[f],d++,f++,u++,p=0,--t===1){g=!0;break}while((u|p)<h);if(g)break;do{if(u=Yd(o[m],a,f,t,0,n),u!==0){for(l=0;l<u;l++)o[d+l]=a[f+l],B[d+l]=c[f+l];if(d+=u,f+=u,t-=u,t<=1){g=!0;break}}if(o[d]=o[m],B[d]=B[m],d++,m++,--s===0){g=!0;break}if(p=Kd(a[f],o,m,s,0,n),p!==0){for(l=0;l<p;l++)o[d+l]=o[m+l],B[d+l]=B[m+l];if(d+=p,m+=p,s-=p,s===0){g=!0;break}}if(o[d]=a[f],B[d]=c[f],d++,f++,--t===1){g=!0;break}h--}while(u>=7||p>=7);if(g)break;h<0&&(h=0),h+=2}if(this.minGallop=h,h<1&&(this.minGallop=1),t===1){for(l=0;l<s;l++)o[d+l]=o[m+l],B[d+l]=B[m+l];o[d+s]=a[f],B[d+s]=c[f]}else{if(t===0)throw new Error("mergeLow preconditions were not respected");for(l=0;l<t;l++)o[d+l]=a[f+l],B[d+l]=c[f+l]}}mergeHigh(e,t,r,s){let{compare:n}=this,{array:o}=this,{tmp:a}=this,{tmpIndex:c}=this,l=0;for(l=0;l<s;l++)a[l]=o[r+l],c[l]=B[r+l];let f=e+t-1,m=s-1,d=r+s-1,h=0,u=0;if(o[d]=o[f],B[d]=B[f],d--,f--,--t===0){for(h=d-(s-1),l=0;l<s;l++)o[h+l]=a[l],B[h+l]=c[l];return}if(s===1){for(d-=t,f-=t,u=d+1,h=f+1,l=t-1;l>=0;l--)o[u+l]=o[h+l],B[u+l]=B[h+l];o[d]=a[m],B[d]=c[m];return}let{minGallop:p}=this;for(;;){let g=0,E=0,v=!1;do if(n(a[m],o[f])<0){if(o[d]=o[f],B[d]=B[f],d--,f--,g++,E=0,--t===0){v=!0;break}}else if(o[d]=a[m],B[d]=c[m],d--,m--,E++,g=0,--s===1){v=!0;break}while((g|E)<p);if(v)break;do{if(g=t-Yd(a[m],o,e,t,t-1,n),g!==0){for(d-=g,f-=g,t-=g,u=d+1,h=f+1,l=g-1;l>=0;l--)o[u+l]=o[h+l],B[u+l]=B[h+l];if(t===0){v=!0;break}}if(o[d]=a[m],B[d]=c[m],d--,m--,--s===1){v=!0;break}if(E=s-Kd(o[f],a,0,s,s-1,n),E!==0){for(d-=E,m-=E,s-=E,u=d+1,h=m+1,l=0;l<E;l++)o[u+l]=a[h+l],B[u+l]=c[h+l];if(s<=1){v=!0;break}}if(o[d]=o[f],B[d]=B[f],d--,f--,--t===0){v=!0;break}p--}while(g>=7||E>=7);if(v)break;p<0&&(p=0),p+=2}if(this.minGallop=p,p<1&&(this.minGallop=1),s===1){for(d-=t,f-=t,u=d+1,h=f+1,l=t-1;l>=0;l--)o[u+l]=o[h+l],B[u+l]=B[h+l];o[d]=a[m],B[d]=c[m]}else{if(s===0)throw new Error("mergeHigh preconditions were not respected");for(h=d-(s-1),l=0;l<s;l++)o[h+l]=a[l],B[h+l]=c[l]}}};function GI(i,e,t,r){if(!Array.isArray(i))throw new TypeError(`The "array" argument must be an array. Received ${i}`);B=[];let{length:s}=i,n=0;for(;n<s;)B[n]=n++;e?typeof e!="function"&&(r=t,t=e,e=qv):e=qv,t||(t=0),r||(r=s);let o=r-t;if(o<2)return B;let a=0;if(o<32)return a=jv(i,t,r,e),zv(i,t,r,t+a,e),B;let c=new Zd(i,e),l=zI(o);do{if(a=jv(i,t,r,e),a<l){let f=o;f>l&&(f=l),zv(i,t,t+f,t+a,e),a=f}c.pushRun(t,a),c.mergeRuns(),o-=a,t+=a}while(o!==0);return c.forceMergeRuns(),B}Gv.exports={sort:GI}});var Xv=S((XK,Jv)=>{"use strict";y();var HI=Object.prototype.hasOwnProperty;Jv.exports=(i,e)=>HI.call(i,e)});var ua=S((WK,sb)=>{"use strict";y();var tp=Xv(),{isObject:Vv,isArray:JI,isString:XI,isNumber:VI}=Sh(),ip="before",Kv="after-prop",Yv="after-colon",Zv="after-value",Qv="after",eb="before-all",tb="after-all",WI="[",KI="]",YI="{",ZI="}",QI=",",e6="",t6="-",rp=[ip,Kv,Yv,Zv,Qv],i6=[ip,eb,tb].map(Symbol.for),ib=":",Wv=void 0,ha=(i,e)=>Symbol.for(i+ib+e),vh=(i,e,t)=>Object.defineProperty(i,e,{value:t,writable:!0,configurable:!0}),ep=(i,e,t,r,s,n)=>{let o=ha(s,r);if(!tp(e,o))return;let a=t===r?o:ha(s,t);vh(i,a,e[o]),n&&delete e[o]},rb=(i,e,t,r,s)=>{rp.forEach(n=>{ep(i,e,t,r,n,s)})},r6=(i,e,t)=>{e!==t&&rp.forEach(r=>{let s=ha(r,t);if(!tp(i,s)){ep(i,i,t,e,r,!0);return}let n=i[s];delete i[s],ep(i,i,t,e,r,!0),vh(i,ha(r,e),n)})},Qd=(i,e)=>{i6.forEach(t=>{let r=e[t];r&&vh(i,t,r)})},s6=(i,e,t)=>(t.forEach(r=>{!XI(r)&&!VI(r)||tp(e,r)&&(i[r]=e[r],rb(i,e,r,r))}),i);sb.exports={SYMBOL_PREFIXES:rp,PREFIX_BEFORE:ip,PREFIX_AFTER_PROP:Kv,PREFIX_AFTER_COLON:Yv,PREFIX_AFTER_VALUE:Zv,PREFIX_AFTER:Qv,PREFIX_BEFORE_ALL:eb,PREFIX_AFTER_ALL:tb,BRACKET_OPEN:WI,BRACKET_CLOSE:KI,CURLY_BRACKET_OPEN:YI,CURLY_BRACKET_CLOSE:ZI,COLON:ib,COMMA:QI,MINUS:t6,EMPTY:e6,UNDEFINED:Wv,symbol:ha,define:vh,copy_comments:rb,swap_comments:r6,assign_non_prop_comments:Qd,assign(i,e,t){if(!Vv(i))throw new TypeError("Cannot convert undefined or null to object");if(!Vv(e))return i;if(t===Wv)t=Object.keys(e),Qd(i,e);else if(JI(t))t.length===0&&Qd(i,e);else throw new TypeError("keys must be array or undefined");return s6(i,e,t)}}});var np=S((YK,hb)=>{"use strict";y();var{isArray:n6}=Sh(),{sort:o6}=Hv(),{SYMBOL_PREFIXES:a6,UNDEFINED:nb,symbol:c6,copy_comments:h6,swap_comments:cb}=ua(),u6=i=>{let{length:e}=i,t=0,r=e/2;for(;t<r;t++)cb(i,t,e-t-1)},ob=(i,e,t,r,s)=>{h6(i,e,t+r,t,s)},xn=(i,e,t,r,s,n)=>{if(s>0){let a=r;for(;a-- >0;)ob(i,e,t+a,s,n);return}let o=0;for(;o<r;){let a=o++;ob(i,e,t+a,s,n)}},ab=(i,e)=>{a6.forEach(t=>{let r=c6(t,e);delete i[r]})},l6=(i,e)=>{let t=e;for(;t in i;)t=i[t];return t},sp=class i extends Array{splice(...e){let{length:t}=this,r=super.splice(...e),[s,n,...o]=e;s<0&&(s+=t),arguments.length===1?n=t-s:n=Math.min(t-s,n);let{length:a}=o,c=a-n,l=s+n,f=t-l;return xn(this,this,l,f,c,!0),r}slice(...e){let{length:t}=this,r=super.slice(...e);if(!r.length)return new i;let[s,n]=e;return n===nb?n=t:n<0&&(n+=t),s<0?s+=t:s===nb&&(s=0),xn(r,this,s,n-s,-s),r}unshift(...e){let{length:t}=this,r=super.unshift(...e),{length:s}=e;return s>0&&xn(this,this,0,t,s,!0),r}shift(){let e=super.shift(),{length:t}=this;return ab(this,0),xn(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),u6(this),this}pop(){let e=super.pop();return ab(this,this.length),e}concat(...e){let{length:t}=this,r=super.concat(...e);return e.length&&(xn(r,this,0,this.length,0),e.forEach(s=>{let n=t;t+=n6(s)?s.length:1,s instanceof i&&xn(r,s,0,s.length,n)})),r}sort(...e){let t=o6(this,...e.slice(0,1)),r=Object.create(null);return t.forEach((s,n)=>{if(s===n)return;let o=l6(r,s);o!==n&&(r[n]=o,cb(this,n,o))}),this}};hb.exports={CommentArray:sp}});var Ab=S((QK,Cb)=>{"use strict";y();var f6=Nv(),{CommentArray:d6}=np(),{PREFIX_BEFORE:wh,PREFIX_AFTER_PROP:p6,PREFIX_AFTER_COLON:m6,PREFIX_AFTER_VALUE:db,PREFIX_AFTER:ap,PREFIX_BEFORE_ALL:g6,PREFIX_AFTER_ALL:y6,BRACKET_OPEN:E6,BRACKET_CLOSE:ub,CURLY_BRACKET_OPEN:S6,CURLY_BRACKET_CLOSE:lb,COLON:pb,COMMA:mb,MINUS:fb,EMPTY:v6,UNDEFINED:Ch,define:cp,assign_non_prop_comments:b6}=ua(),gb=i=>f6.tokenize(i,{comment:!0,loc:!0}),hp=[],gr=null,Ht=null,up=[],yr,yb=!1,Eb=!1,la=null,fa=null,Ue=null,Sb,xh=null,vb=()=>{up.length=hp.length=0,fa=null,yr=Ch},w6=()=>{vb(),la.length=0,Ht=gr=la=fa=Ue=xh=null},lp=i=>Symbol.for(yr!==Ch?i+pb+yr:i),fp=(i,e)=>xh?xh(i,e):e,bb=()=>{let i=new SyntaxError(`Unexpected token ${Ue.value.slice(0,1)}`);throw Object.assign(i,Ue.loc.start),i},wb=()=>{let i=new SyntaxError("Unexpected end of JSON input");throw Object.assign(i,fa?fa.loc.end:{line:1,column:0}),i},vt=()=>{let i=la[++Sb];Eb=Ue&&i&&Ue.loc.end.line===i.loc.start.line||!1,fa=Ue,Ue=i},op=()=>(Ue||wb(),Ue.type==="Punctuator"?Ue.value:Ue.type),gs=i=>op()===i,bh=i=>{gs(i)||bb()},dp=i=>{hp.push(gr),gr=i},pp=()=>{gr=hp.pop()},xb=()=>{if(!Ht)return;let i=[];for(let t of Ht)if(t.inline)i.push(t);else break;let{length:e}=i;e&&(e===Ht.length?Ht=null:Ht.splice(0,e),cp(gr,lp(ap),i))},mr=i=>{Ht&&(cp(gr,lp(i),Ht),Ht=null)},Jt=i=>{let e=[];for(;Ue&&(gs("LineComment")||gs("BlockComment"));){let t={...Ue,inline:Eb};e.push(t),vt()}if(!yb&&e.length){if(i){cp(gr,lp(i),e);return}Ht=e}},Dh=(i,e)=>{e&&up.push(yr),yr=i},Db=()=>{yr=up.pop()},x6=()=>{let i={};dp(i),Dh(Ch,!0);let e=!1,t;for(Jt();!gs(lb)&&!(e&&(mr(db),bh(mb),vt(),Jt(),xb(),gs(lb)));)e=!0,bh("String"),t=JSON.parse(Ue.value),Dh(t),mr(wh),vt(),Jt(p6),bh(pb),vt(),Jt(m6),i[t]=fp(t,mp()),Jt();return e&&mr(ap),vt(),yr=void 0,e||mr(wh),pp(),Db(),i},D6=()=>{let i=new d6;dp(i),Dh(Ch,!0);let e=!1,t=0;for(Jt();!gs(ub)&&!(e&&(mr(db),bh(mb),vt(),Jt(),xb(),gs(ub)));)e=!0,Dh(t),mr(wh),i[t]=fp(t,mp()),t++,Jt();return e&&mr(ap),vt(),yr=void 0,e||mr(wh),pp(),Db(),i};function mp(){let i=op();if(i===S6)return vt(),x6();if(i===E6)return vt(),D6();let e=v6;i===fb&&(vt(),i=op(),e=fb);let t;switch(i){case"String":case"Boolean":case"Null":case"Numeric":return t=Ue.value,vt(),JSON.parse(e+t);default:}}var C6=i=>Object(i)===i,A6=(i,e,t)=>{vb(),la=gb(i),xh=e,yb=t,la.length||wb(),Sb=-1,vt(),dp({}),Jt(g6);let r=mp();return Jt(y6),Ue&&bb(),!t&&r!==null&&(C6(r)||(r=new Object(r)),b6(r,gr)),pp(),r=fp("",r),w6(),r};Cb.exports={parse:A6,tokenize:gb}});var Tb=S((tY,_b)=>{"use strict";y();var yi="",gp;_b.exports=_6;function _6(i,e){if(typeof i!="string")throw new TypeError("expected a string");if(e===1)return i;if(e===2)return i+i;var t=i.length*e;if(gp!==i||typeof gp>"u")gp=i,yi="";else if(yi.length>=t)return yi.substr(0,t);for(;t>yi.length&&e>1;)e&1&&(yi+=i),e>>=1,i+=i;return yi+=i,yi=yi.substr(0,t),yi}});var Ub=S((rY,Mb)=>{"use strict";y();var{isArray:Sp,isObject:kb,isFunction:Ep,isNumber:T6,isString:k6}=Sh(),F6=Tb(),{PREFIX_BEFORE_ALL:R6,PREFIX_BEFORE:Fb,PREFIX_AFTER_PROP:O6,PREFIX_AFTER_COLON:B6,PREFIX_AFTER_VALUE:L6,PREFIX_AFTER:vp,PREFIX_AFTER_ALL:I6,BRACKET_OPEN:P6,BRACKET_CLOSE:N6,CURLY_BRACKET_OPEN:M6,CURLY_BRACKET_CLOSE:U6,COLON:q6,COMMA:Rb,EMPTY:ht,UNDEFINED:j6}=ua(),yp=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,bp=" ",ys=`
|
|
11
|
-
`,Ob="null",Bb=i=>`${Fb}:${i}`,$6=i=>`${O6}:${i}`,z6=i=>`${B6}:${i}`,Lb=i=>`${L6}:${i}`,Ib=i=>`${vp}:${i}`,G6={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},H6=i=>(yp.lastIndex=0,yp.test(i)?i.replace(yp,e=>{let t=G6[e];return typeof t=="string"?t:e}):i),Pb=i=>`"${H6(i)}"`,J6=(i,e)=>e?`//${i}`:`/*${i}*/`,ct=(i,e,t,r)=>{let s=i[Symbol.for(e)];if(!s||!s.length)return ht;let n=!1,o=s.reduce((a,{inline:c,type:l,value:f})=>{let m=c?bp:ys+t;return n=l==="LineComment",a+m+J6(f,n)},ht);return r||n?o+ys+t:o},Dn=null,pa=ht,X6=()=>{Dn=null,pa=ht},da=(i,e,t)=>i?e?i+e.trim()+ys+t:i.trimRight()+ys+t:e?e.trimRight()+ys+t:ht,Nb=(i,e,t)=>{let r=ct(e,Fb,t+pa,!0);return da(r,i,t)},V6=(i,e)=>{let t=e+pa,{length:r}=i,s=ht,n=ht;for(let o=0;o<r;o++){o!==0&&(s+=Rb);let a=da(n,ct(i,Bb(o),t),t);s+=a||ys+t,s+=wp(o,i,t)||Ob,s+=ct(i,Lb(o),t),n=ct(i,Ib(o),t)}return s+=da(n,ct(i,vp,t),t),P6+Nb(s,i,e)+N6},W6=(i,e)=>{if(!i)return"null";let t=e+pa,r=ht,s=ht,n=!0,o=Sp(Dn)?Dn:Object.keys(i),a=c=>{let l=wp(c,i,t);if(l===j6)return;n||(r+=Rb),n=!1;let f=da(s,ct(i,Bb(c),t),t);r+=f||ys+t,r+=Pb(c)+ct(i,$6(c),t)+q6+ct(i,z6(c),t)+bp+l+ct(i,Lb(c),t),s=ct(i,Ib(c),t)};return o.forEach(a),r+=da(s,ct(i,vp,t),t),M6+Nb(r,i,e)+U6};function wp(i,e,t){let r=e[i];switch(kb(r)&&Ep(r.toJSON)&&(r=r.toJSON(i)),Ep(Dn)&&(r=Dn.call(e,i,r)),typeof r){case"string":return Pb(r);case"number":return Number.isFinite(r)?String(r):Ob;case"boolean":case"null":return String(r);case"object":return Sp(r)?V6(r,t):W6(r,t);default:}}var K6=i=>k6(i)?i:T6(i)?F6(bp,i):ht,{toString:Y6}=Object.prototype,Z6=["[object Number]","[object String]","[object Boolean]"],Q6=i=>{if(typeof i!="object")return!1;let e=Y6.call(i);return Z6.includes(e)};Mb.exports=(i,e,t)=>{let r=K6(t);if(!r)return JSON.stringify(i,e);!Ep(e)&&!Sp(e)&&(e=null),Dn=e,pa=r;let s=Q6(i)?JSON.stringify(i):wp("",{"":i},ht);return X6(),kb(i)?ct(i,R6,ht).trimLeft()+s+ct(i,I6,ht).trimRight():s}});var xp=S((nY,qb)=>{"use strict";y();var{parse:eP,tokenize:tP}=Ab(),iP=Ub(),{CommentArray:rP}=np(),{assign:sP}=ua();qb.exports={parse:eP,stringify:iP,tokenize:tP,CommentArray:rP,assign:sP}});var _n=S((hY,Gb)=>{"use strict";y();var ma=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,nP=typeof AbortController=="function",Ah=nP?AbortController:class{constructor(){this.signal=new jb}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},oP=typeof AbortSignal=="function",aP=typeof Ah.AbortSignal=="function",jb=oP?AbortSignal:aP?Ah.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){e==="abort"&&this._listeners.push(t)}removeEventListener(e,t){e==="abort"&&(this._listeners=this._listeners.filter(r=>r!==t))}},_p=new Set,Dp=(i,e)=>{let t=`LRU_CACHE_OPTION_${i}`;_h(t)&&Tp(t,`${i} option`,`options.${e}`,An)},Cp=(i,e)=>{let t=`LRU_CACHE_METHOD_${i}`;if(_h(t)){let{prototype:r}=An,{get:s}=Object.getOwnPropertyDescriptor(r,i);Tp(t,`${i} method`,`cache.${e}()`,s)}},cP=(i,e)=>{let t=`LRU_CACHE_PROPERTY_${i}`;if(_h(t)){let{prototype:r}=An,{get:s}=Object.getOwnPropertyDescriptor(r,i);Tp(t,`${i} property`,`cache.${e}`,s)}},$b=(...i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...i):console.error(...i)},_h=i=>!_p.has(i),Tp=(i,e,t,r)=>{_p.add(i);let s=`The ${e} is deprecated. Please use ${t} instead.`;$b(s,"DeprecationWarning",i,r)},Er=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),zb=i=>Er(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Cn:null:null,Cn=class extends Array{constructor(e){super(e),this.fill(0)}},Ap=class{constructor(e){if(e===0)return[];let t=zb(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},An=class i{constructor(e={}){let{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,disposeAfter:f,noDisposeOnSet:m,noUpdateTTL:d,maxSize:h=0,maxEntrySize:u=0,sizeCalculation:p,fetchMethod:g,fetchContext:E,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:w,ignoreFetchAbort:_}=e,{length:R,maxAge:T,stale:O}=e instanceof i?{}:e;if(t!==0&&!Er(t))throw new TypeError("max option must be a nonnegative integer");let M=t?zb(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=h,this.maxEntrySize=u||this.maxSize,this.sizeCalculation=p||R,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=g||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=E,!this.fetchMethod&&E!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new Ap(t),this.initialFill=1,this.size=0,typeof l=="function"&&(this.dispose=l),typeof f=="function"?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!m,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.maxSize!==0&&!Er(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Er(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!c||!!O,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Er(s)||s===0?s:1,this.ttlAutopurge=!!n,this.ttl=r||T||0,this.ttl){if(!Er(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let q="LRU_CACHE_UNBOUNDED";_h(q)&&(_p.add(q),$b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",q,i))}O&&Dp("stale","allowStale"),T&&Dp("maxAge","ttl"),R&&Dp("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Cn(this.max),this.starts=new Cn(this.max),this.setItemTTL=(r,s,n=ma.now())=>{if(this.starts[r]=s!==0?n:0,this.ttls[r]=s,s!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.isStale(r)&&this.delete(this.keyList[r])},s+1);o.unref&&o.unref()}},this.updateItemAge=r=>{this.starts[r]=this.ttls[r]!==0?ma.now():0},this.statusTTL=(r,s)=>{r&&(r.ttl=this.ttls[s],r.start=this.starts[s],r.now=e||t(),r.remainingTTL=r.now+r.ttl-r.start)};let e=0,t=()=>{let r=ma.now();if(this.ttlResolution>0){e=r;let s=setTimeout(()=>e=0,this.ttlResolution);s.unref&&s.unref()}return r};this.getRemainingTTL=r=>{let s=this.keyMap.get(r);return s===void 0?0:this.ttls[s]===0||this.starts[s]===0?1/0:this.starts[s]+this.ttls[s]-(e||t())},this.isStale=r=>this.ttls[r]!==0&&this.starts[r]!==0&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Cn(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,s)=>{if(this.isBackgroundFetch(t))return 0;if(!Er(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(t,e),!Er(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.addItemSize=(e,t,r)=>{if(this.sizes[e]=t,this.maxSize){let s=this.maxSize-this.sizes[e];for(;this.calculatedSize>s;)this.evict(!0)}this.calculatedSize+=this.sizes[e],r&&(r.entrySize=t,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.head));)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.tail));)t=this.next[t]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(let e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t){for(let r of this.indexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n!==void 0&&e(n,this.keyList[r],this))return this.get(this.keyList[r],t)}}forEach(e,t=this){for(let r of this.indexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(t,n,this.keyList[r],this)}}rforEach(e,t=this){for(let r of this.rindexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(t,n,this.keyList[r],this)}}get prune(){return Cp("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){let e=[];for(let t of this.indexes({allowStale:!0})){let r=this.keyList[t],s=this.valList[t],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n===void 0)continue;let o={value:n};if(this.ttls){o.ttl=this.ttls[t];let a=ma.now()-this.starts[t];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[t]),e.unshift([r,o])}return e}load(e){this.clear();for(let[t,r]of e){if(r.start){let s=Date.now()-r.start;r.start=ma.now()-s}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:s,noDisposeOnSet:n=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,status:l}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let f=this.size===0?void 0:this.keyMap.get(e);if(f===void 0)f=this.newIndex(),this.keyList[f]=e,this.valList[f]=t,this.keyMap.set(e,f),this.next[this.tail]=f,this.prev[f]=this.tail,this.tail=f,this.size++,this.addItemSize(f,o,l),l&&(l.set="add"),c=!1;else{this.moveToTail(f);let m=this.valList[f];if(t!==m){if(this.isBackgroundFetch(m)?m.__abortController.abort(new Error("replaced")):n||(this.dispose(m,e,"set"),this.disposeAfter&&this.disposed.push([m,e,"set"])),this.removeItemSize(f),this.valList[f]=t,this.addItemSize(f,o,l),l){l.set="replace";let d=m&&this.isBackgroundFetch(m)?m.__staleWhileFetching:m;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(r!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),c||this.setItemTTL(f,r,s),this.statusTTL(l,f),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let t=this.head,r=this.keyList[t],s=this.valList[t];return this.isBackgroundFetch(s)?s.__abortController.abort(new Error("evicted")):(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:r}={}){let s=this.keyMap.get(e);if(s!==void 0)if(this.isStale(s))r&&(r.has="stale",this.statusTTL(r,s));else return t&&this.updateItemAge(s),r&&(r.has="hit"),this.statusTTL(r,s),!0;else r&&(r.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){let r=this.keyMap.get(e);if(r!==void 0&&(t||!this.isStale(r))){let s=this.valList[r];return this.isBackgroundFetch(s)?s.__staleWhileFetching:s}}backgroundFetch(e,t,r,s){let n=t===void 0?void 0:this.valList[t];if(this.isBackgroundFetch(n))return n;let o=new Ah;r.signal&&r.signal.addEventListener("abort",()=>o.abort(r.signal.reason));let a={signal:o.signal,options:r,context:s},c=(h,u=!1)=>{let{aborted:p}=o.signal,g=r.ignoreFetchAbort&&h!==void 0;return r.status&&(p&&!u?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),p&&!g&&!u?f(o.signal.reason):(this.valList[t]===d&&(h===void 0?d.__staleWhileFetching?this.valList[t]=d.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,h,a.options))),h)},l=h=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=h),f(h)),f=h=>{let{aborted:u}=o.signal,p=u&&r.allowStaleOnFetchAbort,g=p||r.allowStaleOnFetchRejection,E=g||r.noDeleteOnFetchRejection;if(this.valList[t]===d&&(!E||d.__staleWhileFetching===void 0?this.delete(e):p||(this.valList[t]=d.__staleWhileFetching)),g)return r.status&&d.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw h},m=(h,u)=>{this.fetchMethod(e,n,a).then(p=>h(p),u),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(h(),r.allowStaleOnFetchAbort&&(h=p=>c(p,!0)))})};r.status&&(r.status.fetchDispatched=!0);let d=new Promise(m).then(c,l);return d.__abortController=o,d.__staleWhileFetching=n,d.__returned=null,t===void 0?(this.set(e,d,{...a.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=d,d}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,fetchContext:u=this.fetchContext,forceRefresh:p=!1,status:g,signal:E}={}){if(!this.fetchMethod)return g&&(g.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:g});let v={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:n,noDisposeOnSet:o,size:a,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:g,signal:E},D=this.keyMap.get(e);if(D===void 0){g&&(g.fetch="miss");let x=this.backgroundFetch(e,D,v,u);return x.__returned=x}else{let x=this.valList[D];if(this.isBackgroundFetch(x)){let O=t&&x.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",O&&(g.returnedStale=!0)),O?x.__staleWhileFetching:x.__returned=x}let w=this.isStale(D);if(!p&&!w)return g&&(g.fetch="hit"),this.moveToTail(D),r&&this.updateItemAge(D),this.statusTTL(g,D),x;let _=this.backgroundFetch(e,D,v,u),R=_.__staleWhileFetching!==void 0,T=R&&t;return g&&(g.fetch=R&&w?"stale":"refresh",T&&w&&(g.returnedStale=!0)),T?_.__staleWhileFetching:_.__returned=_}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:n}={}){let o=this.keyMap.get(e);if(o!==void 0){let a=this.valList[o],c=this.isBackgroundFetch(a);return this.statusTTL(n,o),this.isStale(o)?(n&&(n.get="stale"),c?(n&&(n.returnedStale=t&&a.__staleWhileFetching!==void 0),t?a.__staleWhileFetching:void 0):(s||this.delete(e),n&&(n.returnedStale=t),t?a:void 0)):(n&&(n.get="hit"),c?a.__staleWhileFetching:(this.moveToTail(o),r&&this.updateItemAge(o),a))}else n&&(n.get="miss")}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return Cp("del","delete"),this.delete}delete(e){let t=!1;if(this.size!==0){let r=this.keyMap.get(e);if(r!==void 0)if(t=!0,this.size===1)this.clear();else{this.removeItemSize(r);let s=this.valList[r];this.isBackgroundFetch(s)?s.__abortController.abort(new Error("deleted")):(this.dispose(s,e,"delete"),this.disposeAfter&&this.disposed.push([s,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(let e of this.rindexes({allowStale:!0})){let t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{let r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Cp("reset","clear"),this.clear}get length(){return cP("length","size"),this.size}static get AbortController(){return Ah}static get AbortSignal(){return jb}};Gb.exports=An});var Xb=S((lY,Jb)=>{"use strict";y();var $=(...i)=>i.every(e=>e)?i.join(""):"",me=i=>i?encodeURIComponent(i):"",Hb=i=>i.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),hP={sshtemplate:({domain:i,user:e,project:t,committish:r})=>`git@${i}:${e}/${t}.git${$("#",r)}`,sshurltemplate:({domain:i,user:e,project:t,committish:r})=>`git+ssh://git@${i}/${e}/${t}.git${$("#",r)}`,edittemplate:({domain:i,user:e,project:t,committish:r,editpath:s,path:n})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r||"HEAD"),"/",n)}`,browsetemplate:({domain:i,user:e,project:t,committish:r,treepath:s})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r))}`,browsetreetemplate:({domain:i,user:e,project:t,committish:r,treepath:s,path:n,fragment:o,hashformat:a})=>`https://${i}/${e}/${t}/${s}/${me(r||"HEAD")}/${n}${$("#",a(o||""))}`,browseblobtemplate:({domain:i,user:e,project:t,committish:r,blobpath:s,path:n,fragment:o,hashformat:a})=>`https://${i}/${e}/${t}/${s}/${me(r||"HEAD")}/${n}${$("#",a(o||""))}`,docstemplate:({domain:i,user:e,project:t,treepath:r,committish:s})=>`https://${i}/${e}/${t}${$("/",r,"/",me(s))}#readme`,httpstemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git+https://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,filetemplate:({domain:i,user:e,project:t,committish:r,path:s})=>`https://${i}/${e}/${t}/raw/${me(r||"HEAD")}/${s}`,shortcuttemplate:({type:i,user:e,project:t,committish:r})=>`${i}:${e}/${t}${$("#",r)}`,pathtemplate:({user:i,project:e,committish:t})=>`${i}/${e}${$("#",t)}`,bugstemplate:({domain:i,user:e,project:t})=>`https://${i}/${e}/${t}/issues`,hashformat:Hb},Sr={};Sr.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:i,user:e,project:t,committish:r,path:s})=>`https://${$(i,"@")}raw.githubusercontent.com/${e}/${t}/${me(r||"HEAD")}/${s}`,gittemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://codeload.${i}/${e}/${t}/tar.gz/${me(r||"HEAD")}`,extract:i=>{let[,e,t,r,s]=i.pathname.split("/",5);if(!(r&&r!=="tree")&&(r||(s=i.hash.slice(1)),t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:s}}};Sr.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:i,user:e,project:t,committish:r,treepath:s,path:n,editpath:o})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r||"HEAD"),"/",n,o)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/get/${me(r||"HEAD")}.tar.gz`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(!["get"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:i.hash.slice(1)}}};Sr.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git+https://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/repository/archive.tar.gz?ref=${me(r||"HEAD")}`,extract:i=>{let e=i.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let t=e.split("/"),r=t.pop();r.endsWith(".git")&&(r=r.slice(0,-4));let s=t.join("/");if(!(!s||!r))return{user:s,project:r,committish:i.hash.slice(1)}}};Sr.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:i,project:e,committish:t})=>`git@${i}:${e}.git${$("#",t)}`,sshurltemplate:({domain:i,project:e,committish:t})=>`git+ssh://git@${i}/${e}.git${$("#",t)}`,edittemplate:({domain:i,user:e,project:t,committish:r,editpath:s})=>`https://${i}/${e}/${t}${$("/",me(r))}/${s}`,browsetemplate:({domain:i,project:e,committish:t})=>`https://${i}/${e}${$("/",me(t))}`,browsetreetemplate:({domain:i,project:e,committish:t,path:r,hashformat:s})=>`https://${i}/${e}${$("/",me(t))}${$("#",s(r))}`,browseblobtemplate:({domain:i,project:e,committish:t,path:r,hashformat:s})=>`https://${i}/${e}${$("/",me(t))}${$("#",s(r))}`,docstemplate:({domain:i,project:e,committish:t})=>`https://${i}/${e}${$("/",me(t))}`,httpstemplate:({domain:i,project:e,committish:t})=>`git+https://${i}/${e}.git${$("#",t)}`,filetemplate:({user:i,project:e,committish:t,path:r})=>`https://gist.githubusercontent.com/${i}/${e}/raw${$("/",me(t))}/${r}`,shortcuttemplate:({type:i,project:e,committish:t})=>`${i}:${e}${$("#",t)}`,pathtemplate:({project:i,committish:e})=>`${i}${$("#",e)}`,bugstemplate:({domain:i,project:e})=>`https://${i}/${e}`,gittemplate:({domain:i,project:e,committish:t})=>`git://${i}/${e}.git${$("#",t)}`,tarballtemplate:({project:i,committish:e})=>`https://codeload.github.com/gist/${i}/tar.gz/${me(e||"HEAD")}`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(r!=="raw"){if(!t){if(!e)return;t=e,e=null}return t.endsWith(".git")&&(t=t.slice(0,-4)),{user:e,project:t,committish:i.hash.slice(1)}}},hashformat:function(i){return i&&"file-"+Hb(i)}};Sr.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:i,user:e,project:t,committish:r,path:s})=>`https://${i}/${e}/${t}/blob/${me(r)||"HEAD"}/${s}`,httpstemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}.git${$("#",r)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/archive/${me(r)||"HEAD"}.tar.gz`,bugstemplate:({user:i,project:e})=>`https://todo.sr.ht/${i}/${e}`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(!["archive"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:i.hash.slice(1)}}};for(let[i,e]of Object.entries(Sr))Sr[i]=Object.assign({},hP,e);Jb.exports=Sr});var Fp=S((dY,Wb)=>{"use strict";y();var uP=b("url"),kp=(i,e,t)=>{let r=i.indexOf(t);return i.lastIndexOf(e,r>-1?r:1/0)},Vb=i=>{try{return new uP.URL(i)}catch{}},lP=(i,e)=>{let t=i.indexOf(":"),r=i.slice(0,t+1);if(Object.prototype.hasOwnProperty.call(e,r))return i;let s=i.indexOf("@");return s>-1?s>t?`git+ssh://${i}`:i:i.indexOf("//")===t+1?i:`${i.slice(0,t+1)}//${i.slice(t+1)}`},fP=i=>{let e=kp(i,"@","#"),t=kp(i,":","#");return t>e&&(i=i.slice(0,t)+"/"+i.slice(t+1)),kp(i,":","#")===-1&&i.indexOf("//")===-1&&(i=`git+ssh://${i}`),i};Wb.exports=(i,e)=>{let t=e?lP(i,e):i;return Vb(t)||Vb(fP(t))}});var Yb=S((mY,Kb)=>{"use strict";y();var dP=Fp(),pP=i=>{let e=i.indexOf("#"),t=i.indexOf("/"),r=i.indexOf("/",t+1),s=i.indexOf(":"),n=/\s/.exec(i),o=i.indexOf("@"),a=!n||e>-1&&n.index>e,c=o===-1||e>-1&&o>e,l=s===-1||e>-1&&s>e,f=r===-1||e>-1&&r>e,m=t>0,d=e>-1?i[e-1]!=="/":!i.endsWith("/"),h=!i.startsWith(".");return a&&m&&d&&h&&c&&l&&f};Kb.exports=(i,e,{gitHosts:t,protocols:r})=>{if(!i)return;let s=pP(i)?`github:${i}`:i,n=dP(s,r);if(!n)return;let o=t.byShortcut[n.protocol],a=t.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],c=o||a;if(!c)return;let l=t[o||a],f=null;r[n.protocol]?.auth&&(n.username||n.password)&&(f=`${n.username}${n.password?":"+n.password:""}`);let m=null,d=null,h=null,u=null;try{if(o){let p=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,g=p.indexOf("@");g>-1&&(p=p.slice(g+1));let E=p.lastIndexOf("/");E>-1?(d=decodeURIComponent(p.slice(0,E)),d||(d=null),h=decodeURIComponent(p.slice(E+1))):h=decodeURIComponent(p),h.endsWith(".git")&&(h=h.slice(0,-4)),n.hash&&(m=decodeURIComponent(n.hash.slice(1))),u="shortcut"}else{if(!l.protocols.includes(n.protocol))return;let p=l.extract(n);if(!p)return;d=p.user&&decodeURIComponent(p.user),h=decodeURIComponent(p.project),m=decodeURIComponent(p.committish),u=r[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(p){if(p instanceof URIError)return;throw p}return[c,d,f,h,m,u,e]}});var Op=S((yY,Zb)=>{"use strict";y();var mP=_n(),gP=Xb(),yP=Yb(),EP=Fp(),Rp=new mP({max:1e3}),Th=class i{constructor(e,t,r,s,n,o,a={}){Object.assign(this,i.#t[e],{type:e,user:t,auth:r,project:s,committish:n,default:o,opts:a})}static#t={byShortcut:{},byDomain:{}};static#i={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,t){i.#t[e]=t,i.#t.byDomain[t.domain]=e,i.#t.byShortcut[`${e}:`]=e,i.#i[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!="string")return;let r=e+JSON.stringify(t||{});if(!Rp.has(r)){let s=yP(e,t,{gitHosts:i.#t,protocols:i.#i});Rp.set(r,s?new i(...s):void 0)}return Rp.get(r)}static parseUrl(e){return EP(e)}#e(e,t){if(typeof e!="function")return null;let r={...this,...this.opts,...t};r.path||(r.path=""),r.path.startsWith("/")&&(r.path=r.path.slice(1)),r.noCommittish&&(r.committish=null);let s=e(r);return r.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#e(this.sshtemplate,e)}sshurl(e){return this.#e(this.sshurltemplate,e)}browse(e,...t){return typeof e!="string"?this.#e(this.browsetemplate,e):typeof t[0]!="string"?this.#e(this.browsetreetemplate,{...t[0],path:e}):this.#e(this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){return typeof t[0]!="string"?this.#e(this.browseblobtemplate,{...t[0],path:e}):this.#e(this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return this.#e(this.docstemplate,e)}bugs(e){return this.#e(this.bugstemplate,e)}https(e){return this.#e(this.httpstemplate,e)}git(e){return this.#e(this.gittemplate,e)}shortcut(e){return this.#e(this.shortcuttemplate,e)}path(e){return this.#e(this.pathtemplate,e)}tarball(e){return this.#e(this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return this.#e(this.filetemplate,{...t,path:e})}edit(e,t){return this.#e(this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[i,e]of Object.entries(gP))Th.addHost(i,e);Zb.exports=Th});var ew=S((SY,Qb)=>{"use strict";y();var{builtinModules:SP}=b("module"),vP=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),bP=["node_modules","favicon.ico"];function wP(i){var e=[],t=[];if(i===null)return t.push("name cannot be null"),ga(e,t);if(i===void 0)return t.push("name cannot be undefined"),ga(e,t);if(typeof i!="string")return t.push("name must be a string"),ga(e,t);if(i.length||t.push("name length must be greater than zero"),i.match(/^\./)&&t.push("name cannot start with a period"),i.match(/^_/)&&t.push("name cannot start with an underscore"),i.trim()!==i&&t.push("name cannot contain leading or trailing spaces"),bP.forEach(function(o){i.toLowerCase()===o&&t.push(o+" is a blacklisted name")}),SP.includes(i.toLowerCase())&&e.push(i+" is a core module name"),i.length>214&&e.push("name can no longer contain more than 214 characters"),i.toLowerCase()!==i&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(i.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(i)!==i){var r=i.match(vP);if(r){var s=r[1],n=r[2];if(encodeURIComponent(s)===s&&encodeURIComponent(n)===n)return ga(e,t)}t.push("name can only contain URL-friendly characters")}return ga(e,t)}var ga=function(i,e){var t={validForNewPackages:e.length===0&&i.length===0,validForOldPackages:e.length===0,warnings:i,errors:e};return t.warnings.length||delete t.warnings,t.errors.length||delete t.errors,t};Qb.exports=wP});var Tn=S((bY,iw)=>{"use strict";y();var tw=["notice","error","warn","info","verbose","http","silly","pause","resume"],xP=i=>(...e)=>process.emit("log",i,...e),Bp={};for(let i of tw)Bp[i]=xP(i);Bp.LEVELS=tw;iw.exports=Bp});var Fn=S((xY,Ea)=>{"use strict";y();Ea.exports=ya;Ea.exports.resolve=hw;Ea.exports.toPurl=kP;Ea.exports.Result=kn;var br=b("url"),DP=Op(),rw=oa(),vr=global.FAKE_WINDOWS?b("path").win32:b("path"),ow=ew(),{homedir:CP}=b("os"),AP=Tn(),Ip=process.platform==="win32"||global.FAKE_WINDOWS,aw=Ip?/\\|[/]/:/[/]/,cw=/^(?:git[+])?[a-z]+:/i,_P=/^[^@]+@[^:.]+\.[^:]+:.+$/i,Pp=/[.](?:tgz|tar.gz|tar)$/i;function ya(i,e){let t,r;if(typeof i=="object")return i instanceof kn&&(!e||e===i.where)?i:i.name&&i.rawSpec?ya.resolve(i.name,i.rawSpec,e||i.where):ya(i.raw,e||i.where);let s=i[0]==="@"?i.slice(1).indexOf("@")+1:i.indexOf("@"),n=s>0?i.slice(0,s):i;return cw.test(i)?r=i:_P.test(i)?r=`git+ssh://${i}`:n[0]!=="@"&&(aw.test(n)||Pp.test(n))?r=i:s>0?(t=n,r=i.slice(s+1)||"*"):ow(i).validForOldPackages?(t=i,r="*"):r=i,hw(t,r,e,i)}var TP=Ip?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function hw(i,e,t,r){let s=new kn({raw:r,name:i,rawSpec:e,fromArgument:r!=null});if(i&&s.setName(i),e&&(TP.test(e)||/^file:/i.test(e)))return nw(s,t);if(e&&/^npm:/i.test(e))return NP(s,t);let n=DP.fromUrl(e,{noGitPlus:!0,noCommittish:!0});return n?BP(s,n):e&&cw.test(e)?PP(s):e&&(aw.test(e)||Pp.test(e))?nw(s,t):MP(s)}var sw="https://registry.npmjs.org";function kP(i,e=sw){let t=ya(i);if(t.type!=="version")throw OP(t.type,t.raw);let r="pkg:npm/"+t.name.replace(/^@/,"%40")+"@"+t.rawSpec;return e!==sw&&(r+="?repository_url="+e),r}function FP(i,e,t){let r=new Error(`Invalid package name "${i}" of package "${t}": ${e.errors.join("; ")}.`);return r.code="EINVALIDPACKAGENAME",r}function RP(i,e){let t=new Error(`Invalid tag name "${i}" of package "${e}": Tags may not have any characters that encodeURIComponent encodes.`);return t.code="EINVALIDTAGNAME",t}function OP(i,e){let t=new Error(`Invalid type "${i}" of package "${e}": Purl can only be generated for "version" types.`);return t.code="EINVALIDPURLTYPE",t}function kn(i){this.type=i.type,this.registry=i.registry,this.where=i.where,i.raw==null?this.raw=i.name?i.name+"@"+i.rawSpec:i.rawSpec:this.raw=i.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=i.rawSpec||"",this.saveSpec=i.saveSpec,this.fetchSpec=i.fetchSpec,i.name&&this.setName(i.name),this.gitRange=i.gitRange,this.gitCommittish=i.gitCommittish,this.gitSubdir=i.gitSubdir,this.hosted=i.hosted}kn.prototype.setName=function(i){let e=ow(i);if(!e.validForOldPackages)throw FP(i,e,this.raw);return this.name=i,this.scope=i[0]==="@"?i.slice(0,i.indexOf("/")):void 0,this.escapedName=i.replace("/","%2f"),this};kn.prototype.toString=function(){let i=[];this.name!=null&&this.name!==""&&i.push(this.name);let e=this.saveSpec||this.fetchSpec||this.rawSpec;return e!=null&&e!==""&&i.push(e),i.length?i.join("@"):this.raw};kn.prototype.toJSON=function(){let i=Object.assign({},this);return delete i.hosted,i};function Lp(i,e){if(!e)return i.gitCommittish=null,i;for(let t of e.split("::")){if(!t.includes(":")){if(i.gitRange)throw new Error("cannot override existing semver range with a committish");if(i.gitCommittish)throw new Error("cannot override existing committish with a second committish");i.gitCommittish=t;continue}let[r,s]=t.split(":");if(r==="semver"){if(i.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(i.gitRange)throw new Error("cannot override existing semver range with a second semver range");i.gitRange=decodeURIComponent(s);continue}if(r==="path"){if(i.gitSubdir)throw new Error("cannot override existing path with a second path");i.gitSubdir=`/${s}`;continue}AP.warn("npm-package-arg",`ignoring unknown key "${r}"`)}return i}function nw(i,e){e||(e=process.cwd()),i.type=Pp.test(i.rawSpec)?"file":"directory",i.where=e;let t,r,n=(/^file:/.test(i.rawSpec)?"":"file:")+i.rawSpec,o=n.replace(/^file:/,"");try{r=new br.URL(n,`file://${vr.resolve(e)}/`),t=new br.URL(n)}catch(l){let f=new Error("Invalid file: URL, must comply with RFC 8909");throw Object.assign(f,{raw:i.rawSpec,spec:i,where:e,originalError:l})}if(process.env.NPM_PACKAGE_ARG_8909_STRICT!=="1"){if(r.host&&r.host!=="localhost"){let l=i.rawSpec.replace(/^file:\/\//,"file:///");r=new br.URL(l,`file://${vr.resolve(e)}/`),t=new br.URL(l),o=l.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let l=i.rawSpec.replace(/^file:\/{1,3}/,"file:");r=new br.URL(l,`file://${vr.resolve(e)}/`),t=new br.URL(l),o=l.replace(/^file:/,"")}}if(r.host&&r.host!=="localhost"){let l="Invalid file: URL, must be absolute if // present";throw Object.assign(new Error(l),{raw:i.rawSpec,parsed:r})}let a=decodeURIComponent(t.pathname),c=decodeURIComponent(r.pathname);return Ip&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),c=c.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(i.saveSpec=`file:${a.substr(1)}`,c=vr.resolve(CP(),a.substr(3))):vr.isAbsolute(o)?i.saveSpec=`file:${vr.resolve(c)}`:i.saveSpec=`file:${vr.relative(e,c)}`,i.fetchSpec=vr.resolve(e,c),i}function BP(i,e){return i.type="git",i.hosted=e,i.saveSpec=e.toString({noGitPlus:!1,noCommittish:!1}),i.fetchSpec=e.getDefaultRepresentation()==="shortcut"?null:e.toString(),Lp(i,e.committish)}function LP(i,e){let t=new Error(`Unsupported URL Type "${i}": ${e}`);return t.code="EUNSUPPORTEDPROTOCOL",t}function IP(i){let e=i.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);return e&&!e[1].match(/:[0-9]+\/?.*$/i)&&{fetchSpec:e[1],gitCommittish:e[2]==null?null:e[2]}}function PP(i){let e=br.parse(i.rawSpec);switch(i.saveSpec=i.rawSpec,e.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":{i.type="git";let t=e.protocol==="git+ssh:"?IP(i.rawSpec):null;t?(Lp(i,t.gitCommittish),i.fetchSpec=t.fetchSpec):(Lp(i,e.hash!=null?e.hash.slice(1):""),e.protocol=e.protocol.replace(/^git[+]/,""),e.protocol==="file:"&&/^git\+file:\/\/[a-z]:/i.test(i.rawSpec)&&(e.host+=":",e.hostname+=":"),delete e.hash,i.fetchSpec=br.format(e));break}case"http:":case"https:":i.type="remote",i.fetchSpec=i.saveSpec;break;default:throw LP(e.protocol,i.rawSpec)}return i}function NP(i,e){let t=ya(i.rawSpec.substr(4),e);if(t.type==="alias")throw new Error("nested aliases not supported");if(!t.registry)throw new Error("aliases only work for registry deps");return i.subSpec=t,i.registry=!0,i.type="alias",i.saveSpec=null,i.fetchSpec=null,i}function MP(i){i.registry=!0;let e=i.rawSpec.trim();i.saveSpec=null,i.fetchSpec=e;let t=rw.valid(e,!0),r=rw.validRange(e,!0);if(t)i.type="version";else if(r)i.type="range";else{if(encodeURIComponent(e)!==e)throw RP(e,i.raw);i.type="tag"}return i}});var vw=S((CY,Sw)=>{"use strict";y();var uw=typeof process=="object"&&process?process:{stdout:null,stderr:null},UP=b("events"),lw=b("stream"),qP=b("string_decoder"),fw=qP.StringDecoder,Ei=Symbol("EOF"),Si=Symbol("maybeEmitEnd"),wr=Symbol("emittedEnd"),kh=Symbol("emittingEnd"),Sa=Symbol("emittedError"),Fh=Symbol("closed"),dw=Symbol("read"),Rh=Symbol("flush"),pw=Symbol("flushChunk"),Ve=Symbol("encoding"),vi=Symbol("decoder"),Oh=Symbol("flowing"),va=Symbol("paused"),Rn=Symbol("resume"),ee=Symbol("buffer"),Xt=Symbol("pipes"),Se=Symbol("bufferLength"),Np=Symbol("bufferPush"),Mp=Symbol("bufferShift"),ke=Symbol("objectMode"),te=Symbol("destroyed"),Up=Symbol("error"),qp=Symbol("emitData"),mw=Symbol("emitEnd"),jp=Symbol("emitEnd2"),bi=Symbol("async"),$p=Symbol("abort"),Bh=Symbol("aborted"),Es=Symbol("signal"),ba=i=>Promise.resolve().then(i),Ew=global._MP_NO_ITERATOR_SYMBOLS_!=="1",gw=Ew&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),yw=Ew&&Symbol.iterator||Symbol("iterator not implemented"),jP=i=>i==="end"||i==="finish"||i==="prefinish",$P=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,zP=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Lh=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Rn](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zp=class extends Lh{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},Gp=class i extends lw{constructor(e){super(),this[Oh]=!1,this[va]=!1,this[Xt]=[],this[ee]=[],this[ke]=e&&e.objectMode||!1,this[ke]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[bi]=e&&!!e.async||!1,this[vi]=this[Ve]?new fw(this[Ve]):null,this[Ei]=!1,this[wr]=!1,this[kh]=!1,this[Fh]=!1,this[Sa]=null,this.writable=!0,this.readable=!0,this[Se]=0,this[te]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Xt]}),this[Es]=e&&e.signal,this[Bh]=!1,this[Es]&&(this[Es].addEventListener("abort",()=>this[$p]()),this[Es].aborted&&this[$p]())}get bufferLength(){return this[Se]}get encoding(){return this[Ve]}set encoding(e){if(this[ke])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[vi]&&this[vi].lastNeed||this[Se]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[vi]=e?new fw(e):null,this[ee].length&&(this[ee]=this[ee].map(t=>this[vi].write(t)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ke]}set objectMode(e){this[ke]=this[ke]||!!e}get async(){return this[bi]}set async(e){this[bi]=this[bi]||!!e}[$p](){this[Bh]=!0,this.emit("abort",this[Es].reason),this.destroy(this[Es].reason)}get aborted(){return this[Bh]}set aborted(e){}write(e,t,r){if(this[Bh])return!1;if(this[Ei])throw new Error("write after end");if(this[te])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[bi]?ba:n=>n();return!this[ke]&&!Buffer.isBuffer(e)&&(zP(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):$P(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ke]?(this.flowing&&this[Se]!==0&&this[Rh](!0),this.flowing?this.emit("data",e):this[Np](e),this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[Ve]&&!this[vi].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[vi].write(e)),this.flowing&&this[Se]!==0&&this[Rh](!0),this.flowing?this.emit("data",e):this[Np](e),this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[te])return null;if(this[Se]===0||e===0||e>this[Se])return this[Si](),null;this[ke]&&(e=null),this[ee].length>1&&!this[ke]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[Se])]);let t=this[dw](e||null,this[ee][0]);return this[Si](),t}[dw](e,t){return e===t.length||e===null?this[Mp]():(this[ee][0]=t.slice(e),t=t.slice(0,e),this[Se]-=e),this.emit("data",t),!this[ee].length&&!this[Ei]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[Ei]=!0,this.writable=!1,(this.flowing||!this[va])&&this[Si](),this}[Rn](){this[te]||(this[va]=!1,this[Oh]=!0,this.emit("resume"),this[ee].length?this[Rh]():this[Ei]?this[Si]():this.emit("drain"))}resume(){return this[Rn]()}pause(){this[Oh]=!1,this[va]=!0}get destroyed(){return this[te]}get flowing(){return this[Oh]}get paused(){return this[va]}[Np](e){this[ke]?this[Se]+=1:this[Se]+=e.length,this[ee].push(e)}[Mp](){return this[ke]?this[Se]-=1:this[Se]-=this[ee][0].length,this[ee].shift()}[Rh](e){do;while(this[pw](this[Mp]())&&this[ee].length);!e&&!this[ee].length&&!this[Ei]&&this.emit("drain")}[pw](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[te])return;let r=this[wr];return t=t||{},e===uw.stdout||e===uw.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[Xt].push(t.proxyErrors?new zp(this,e,t):new Lh(this,e,t)),this[bi]?ba(()=>this[Rn]()):this[Rn]()),e}unpipe(e){let t=this[Xt].find(r=>r.dest===e);t&&(this[Xt].splice(this[Xt].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[Xt].length&&!this.flowing?this[Rn]():e==="readable"&&this[Se]!==0?super.emit("readable"):jP(e)&&this[wr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Sa]&&(this[bi]?ba(()=>t.call(this,this[Sa])):t.call(this,this[Sa])),r}get emittedEnd(){return this[wr]}[Si](){!this[kh]&&!this[wr]&&!this[te]&&this[ee].length===0&&this[Ei]&&(this[kh]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Fh]&&this.emit("close"),this[kh]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==te&&this[te])return;if(e==="data")return!this[ke]&&!t?!1:this[bi]?ba(()=>this[qp](t)):this[qp](t);if(e==="end")return this[mw]();if(e==="close"){if(this[Fh]=!0,!this[wr]&&!this[te])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Sa]=t,super.emit(Up,t);let n=!this[Es]||this.listeners("error").length?super.emit("error",t):!1;return this[Si](),n}else if(e==="resume"){let n=super.emit("resume");return this[Si](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[Si](),s}[qp](e){for(let r of this[Xt])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[Si](),t}[mw](){this[wr]||(this[wr]=!0,this.readable=!1,this[bi]?ba(()=>this[jp]()):this[jp]())}[jp](){if(this[vi]){let t=this[vi].end();if(t){for(let r of this[Xt])r.dest.write(t);super.emit("data",t)}}for(let t of this[Xt])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ke]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[ke]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[ke]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ke]?Promise.reject(new Error("cannot concat in objectMode")):this[Ve]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(te,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[gw](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ei])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(te,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(te,f),this.pause(),n({value:m,done:!!this[Ei]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(te,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(te,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[gw](){return this}}}[yw](){let e=!1,t=()=>(this.pause(),this.removeListener(Up,t),this.removeListener(te,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(Up,t),this.once(te,t),{next:r,throw:t,return:t,[yw](){return this}}}destroy(e){return this[te]?(e?this.emit("error",e):this.emit(te),this):(this[te]=!0,this[ee].length=0,this[Se]=0,typeof this.close=="function"&&!this[Fh]&&this.close(),e?this.emit("error",e):this.emit(te),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof lw||e instanceof UP&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};Sw.exports=Gp});var Wt=S((_Y,Vt)=>{"use strict";y();var xa=b("crypto"),GP=vw(),bw=["sha256","sha384","sha512"],HP=/^[a-z0-9+/]+(?:=?=?)$/i,JP=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/,XP=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/,VP=/^[\x21-\x7E]+$/,Kp={algorithms:["sha512"],error:!1,options:[],pickAlgorithm:iN,sep:" ",single:!1,strict:!1},Ge=(i={})=>({...Kp,...i}),Ih=i=>!i||!i.length?"":`?${i.join("?")}`,ww=Symbol("_onEnd"),Hp=Symbol("_getOptions"),Jp=Symbol("_emittedSize"),Xp=Symbol("_emittedIntegrity"),Vp=Symbol("_emittedVerified"),Yp=class extends GP{constructor(e){super(),this.size=0,this.opts=e,this[Hp]();let{algorithms:t=Kp.algorithms}=e;this.algorithms=Array.from(new Set(t.concat(this.algorithm?[this.algorithm]:[]))),this.hashes=this.algorithms.map(xa.createHash)}[Hp](){let{integrity:e,size:t,options:r}={...Kp,...this.opts};this.sri=e?bt(e,this.opts):null,this.expectedSize=t,this.goodSri=this.sri?!!Object.keys(this.sri).length:!1,this.algorithm=this.goodSri?this.sri.pickAlgorithm(this.opts):null,this.digests=this.goodSri?this.sri[this.algorithm]:null,this.optString=Ih(r)}on(e,t){return e==="size"&&this[Jp]?t(this[Jp]):e==="integrity"&&this[Xp]?t(this[Xp]):e==="verified"&&this[Vp]?t(this[Vp]):super.on(e,t)}emit(e,t){return e==="end"&&this[ww](),super.emit(e,t)}write(e){return this.size+=e.length,this.hashes.forEach(t=>t.update(e)),super.write(e)}[ww](){this.goodSri||this[Hp]();let e=bt(this.hashes.map((r,s)=>`${this.algorithms[s]}-${r.digest("base64")}${this.optString}`).join(" "),this.opts),t=this.goodSri&&e.match(this.sri,this.opts);if(typeof this.expectedSize=="number"&&this.size!==this.expectedSize){let r=new Error(`stream size mismatch when checking ${this.sri}.
|
|
11
|
+
`,Ob="null",Bb=i=>`${Fb}:${i}`,$6=i=>`${O6}:${i}`,z6=i=>`${B6}:${i}`,Lb=i=>`${L6}:${i}`,Ib=i=>`${vp}:${i}`,G6={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},H6=i=>(yp.lastIndex=0,yp.test(i)?i.replace(yp,e=>{let t=G6[e];return typeof t=="string"?t:e}):i),Pb=i=>`"${H6(i)}"`,J6=(i,e)=>e?`//${i}`:`/*${i}*/`,ct=(i,e,t,r)=>{let s=i[Symbol.for(e)];if(!s||!s.length)return ht;let n=!1,o=s.reduce((a,{inline:c,type:l,value:f})=>{let m=c?bp:ys+t;return n=l==="LineComment",a+m+J6(f,n)},ht);return r||n?o+ys+t:o},Dn=null,pa=ht,X6=()=>{Dn=null,pa=ht},da=(i,e,t)=>i?e?i+e.trim()+ys+t:i.trimRight()+ys+t:e?e.trimRight()+ys+t:ht,Nb=(i,e,t)=>{let r=ct(e,Fb,t+pa,!0);return da(r,i,t)},V6=(i,e)=>{let t=e+pa,{length:r}=i,s=ht,n=ht;for(let o=0;o<r;o++){o!==0&&(s+=Rb);let a=da(n,ct(i,Bb(o),t),t);s+=a||ys+t,s+=wp(o,i,t)||Ob,s+=ct(i,Lb(o),t),n=ct(i,Ib(o),t)}return s+=da(n,ct(i,vp,t),t),P6+Nb(s,i,e)+N6},W6=(i,e)=>{if(!i)return"null";let t=e+pa,r=ht,s=ht,n=!0,o=Sp(Dn)?Dn:Object.keys(i),a=c=>{let l=wp(c,i,t);if(l===j6)return;n||(r+=Rb),n=!1;let f=da(s,ct(i,Bb(c),t),t);r+=f||ys+t,r+=Pb(c)+ct(i,$6(c),t)+q6+ct(i,z6(c),t)+bp+l+ct(i,Lb(c),t),s=ct(i,Ib(c),t)};return o.forEach(a),r+=da(s,ct(i,vp,t),t),M6+Nb(r,i,e)+U6};function wp(i,e,t){let r=e[i];switch(kb(r)&&Ep(r.toJSON)&&(r=r.toJSON(i)),Ep(Dn)&&(r=Dn.call(e,i,r)),typeof r){case"string":return Pb(r);case"number":return Number.isFinite(r)?String(r):Ob;case"boolean":case"null":return String(r);case"object":return Sp(r)?V6(r,t):W6(r,t);default:}}var K6=i=>k6(i)?i:T6(i)?F6(bp,i):ht,{toString:Y6}=Object.prototype,Z6=["[object Number]","[object String]","[object Boolean]"],Q6=i=>{if(typeof i!="object")return!1;let e=Y6.call(i);return Z6.includes(e)};Mb.exports=(i,e,t)=>{let r=K6(t);if(!r)return JSON.stringify(i,e);!Ep(e)&&!Sp(e)&&(e=null),Dn=e,pa=r;let s=Q6(i)?JSON.stringify(i):wp("",{"":i},ht);return X6(),kb(i)?ct(i,R6,ht).trimLeft()+s+ct(i,I6,ht).trimRight():s}});var xp=S((nY,qb)=>{"use strict";y();var{parse:eP,tokenize:tP}=Ab(),iP=Ub(),{CommentArray:rP}=np(),{assign:sP}=ua();qb.exports={parse:eP,stringify:iP,tokenize:tP,CommentArray:rP,assign:sP}});var _n=S((hY,Gb)=>{"use strict";y();var ma=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,nP=typeof AbortController=="function",Ah=nP?AbortController:class{constructor(){this.signal=new jb}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},oP=typeof AbortSignal=="function",aP=typeof Ah.AbortSignal=="function",jb=oP?AbortSignal:aP?Ah.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){e==="abort"&&this._listeners.push(t)}removeEventListener(e,t){e==="abort"&&(this._listeners=this._listeners.filter(r=>r!==t))}},_p=new Set,Dp=(i,e)=>{let t=`LRU_CACHE_OPTION_${i}`;_h(t)&&Tp(t,`${i} option`,`options.${e}`,An)},Cp=(i,e)=>{let t=`LRU_CACHE_METHOD_${i}`;if(_h(t)){let{prototype:r}=An,{get:s}=Object.getOwnPropertyDescriptor(r,i);Tp(t,`${i} method`,`cache.${e}()`,s)}},cP=(i,e)=>{let t=`LRU_CACHE_PROPERTY_${i}`;if(_h(t)){let{prototype:r}=An,{get:s}=Object.getOwnPropertyDescriptor(r,i);Tp(t,`${i} property`,`cache.${e}`,s)}},$b=(...i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...i):console.error(...i)},_h=i=>!_p.has(i),Tp=(i,e,t,r)=>{_p.add(i);let s=`The ${e} is deprecated. Please use ${t} instead.`;$b(s,"DeprecationWarning",i,r)},Er=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),zb=i=>Er(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Cn:null:null,Cn=class extends Array{constructor(e){super(e),this.fill(0)}},Ap=class{constructor(e){if(e===0)return[];let t=zb(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},An=class i{constructor(e={}){let{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,disposeAfter:f,noDisposeOnSet:m,noUpdateTTL:d,maxSize:h=0,maxEntrySize:u=0,sizeCalculation:p,fetchMethod:g,fetchContext:E,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:w,ignoreFetchAbort:_}=e,{length:R,maxAge:T,stale:O}=e instanceof i?{}:e;if(t!==0&&!Er(t))throw new TypeError("max option must be a nonnegative integer");let M=t?zb(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=h,this.maxEntrySize=u||this.maxSize,this.sizeCalculation=p||R,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=g||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=E,!this.fetchMethod&&E!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new Ap(t),this.initialFill=1,this.size=0,typeof l=="function"&&(this.dispose=l),typeof f=="function"?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!m,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.maxSize!==0&&!Er(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Er(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!c||!!O,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Er(s)||s===0?s:1,this.ttlAutopurge=!!n,this.ttl=r||T||0,this.ttl){if(!Er(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let q="LRU_CACHE_UNBOUNDED";_h(q)&&(_p.add(q),$b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",q,i))}O&&Dp("stale","allowStale"),T&&Dp("maxAge","ttl"),R&&Dp("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Cn(this.max),this.starts=new Cn(this.max),this.setItemTTL=(r,s,n=ma.now())=>{if(this.starts[r]=s!==0?n:0,this.ttls[r]=s,s!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.isStale(r)&&this.delete(this.keyList[r])},s+1);o.unref&&o.unref()}},this.updateItemAge=r=>{this.starts[r]=this.ttls[r]!==0?ma.now():0},this.statusTTL=(r,s)=>{r&&(r.ttl=this.ttls[s],r.start=this.starts[s],r.now=e||t(),r.remainingTTL=r.now+r.ttl-r.start)};let e=0,t=()=>{let r=ma.now();if(this.ttlResolution>0){e=r;let s=setTimeout(()=>e=0,this.ttlResolution);s.unref&&s.unref()}return r};this.getRemainingTTL=r=>{let s=this.keyMap.get(r);return s===void 0?0:this.ttls[s]===0||this.starts[s]===0?1/0:this.starts[s]+this.ttls[s]-(e||t())},this.isStale=r=>this.ttls[r]!==0&&this.starts[r]!==0&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Cn(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,s)=>{if(this.isBackgroundFetch(t))return 0;if(!Er(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(t,e),!Er(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.addItemSize=(e,t,r)=>{if(this.sizes[e]=t,this.maxSize){let s=this.maxSize-this.sizes[e];for(;this.calculatedSize>s;)this.evict(!0)}this.calculatedSize+=this.sizes[e],r&&(r.entrySize=t,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.head));)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.tail));)t=this.next[t]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(let e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t){for(let r of this.indexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n!==void 0&&e(n,this.keyList[r],this))return this.get(this.keyList[r],t)}}forEach(e,t=this){for(let r of this.indexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(t,n,this.keyList[r],this)}}rforEach(e,t=this){for(let r of this.rindexes()){let s=this.valList[r],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(t,n,this.keyList[r],this)}}get prune(){return Cp("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){let e=[];for(let t of this.indexes({allowStale:!0})){let r=this.keyList[t],s=this.valList[t],n=this.isBackgroundFetch(s)?s.__staleWhileFetching:s;if(n===void 0)continue;let o={value:n};if(this.ttls){o.ttl=this.ttls[t];let a=ma.now()-this.starts[t];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[t]),e.unshift([r,o])}return e}load(e){this.clear();for(let[t,r]of e){if(r.start){let s=Date.now()-r.start;r.start=ma.now()-s}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:s,noDisposeOnSet:n=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,status:l}={}){if(o=this.requireSize(e,t,o,a),this.maxEntrySize&&o>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let f=this.size===0?void 0:this.keyMap.get(e);if(f===void 0)f=this.newIndex(),this.keyList[f]=e,this.valList[f]=t,this.keyMap.set(e,f),this.next[this.tail]=f,this.prev[f]=this.tail,this.tail=f,this.size++,this.addItemSize(f,o,l),l&&(l.set="add"),c=!1;else{this.moveToTail(f);let m=this.valList[f];if(t!==m){if(this.isBackgroundFetch(m)?m.__abortController.abort(new Error("replaced")):n||(this.dispose(m,e,"set"),this.disposeAfter&&this.disposed.push([m,e,"set"])),this.removeItemSize(f),this.valList[f]=t,this.addItemSize(f,o,l),l){l.set="replace";let d=m&&this.isBackgroundFetch(m)?m.__staleWhileFetching:m;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(r!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),c||this.setItemTTL(f,r,s),this.statusTTL(l,f),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let t=this.head,r=this.keyList[t],s=this.valList[t];return this.isBackgroundFetch(s)?s.__abortController.abort(new Error("evicted")):(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:r}={}){let s=this.keyMap.get(e);if(s!==void 0)if(this.isStale(s))r&&(r.has="stale",this.statusTTL(r,s));else return t&&this.updateItemAge(s),r&&(r.has="hit"),this.statusTTL(r,s),!0;else r&&(r.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){let r=this.keyMap.get(e);if(r!==void 0&&(t||!this.isStale(r))){let s=this.valList[r];return this.isBackgroundFetch(s)?s.__staleWhileFetching:s}}backgroundFetch(e,t,r,s){let n=t===void 0?void 0:this.valList[t];if(this.isBackgroundFetch(n))return n;let o=new Ah;r.signal&&r.signal.addEventListener("abort",()=>o.abort(r.signal.reason));let a={signal:o.signal,options:r,context:s},c=(h,u=!1)=>{let{aborted:p}=o.signal,g=r.ignoreFetchAbort&&h!==void 0;return r.status&&(p&&!u?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),p&&!g&&!u?f(o.signal.reason):(this.valList[t]===d&&(h===void 0?d.__staleWhileFetching?this.valList[t]=d.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,h,a.options))),h)},l=h=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=h),f(h)),f=h=>{let{aborted:u}=o.signal,p=u&&r.allowStaleOnFetchAbort,g=p||r.allowStaleOnFetchRejection,E=g||r.noDeleteOnFetchRejection;if(this.valList[t]===d&&(!E||d.__staleWhileFetching===void 0?this.delete(e):p||(this.valList[t]=d.__staleWhileFetching)),g)return r.status&&d.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw h},m=(h,u)=>{this.fetchMethod(e,n,a).then(p=>h(p),u),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(h(),r.allowStaleOnFetchAbort&&(h=p=>c(p,!0)))})};r.status&&(r.status.fetchDispatched=!0);let d=new Promise(m).then(c,l);return d.__abortController=o,d.__staleWhileFetching=n,d.__returned=null,t===void 0?(this.set(e,d,{...a.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=d,d}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,fetchContext:u=this.fetchContext,forceRefresh:p=!1,status:g,signal:E}={}){if(!this.fetchMethod)return g&&(g.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:g});let v={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:n,noDisposeOnSet:o,size:a,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:g,signal:E},D=this.keyMap.get(e);if(D===void 0){g&&(g.fetch="miss");let x=this.backgroundFetch(e,D,v,u);return x.__returned=x}else{let x=this.valList[D];if(this.isBackgroundFetch(x)){let O=t&&x.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",O&&(g.returnedStale=!0)),O?x.__staleWhileFetching:x.__returned=x}let w=this.isStale(D);if(!p&&!w)return g&&(g.fetch="hit"),this.moveToTail(D),r&&this.updateItemAge(D),this.statusTTL(g,D),x;let _=this.backgroundFetch(e,D,v,u),R=_.__staleWhileFetching!==void 0,T=R&&t;return g&&(g.fetch=R&&w?"stale":"refresh",T&&w&&(g.returnedStale=!0)),T?_.__staleWhileFetching:_.__returned=_}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:n}={}){let o=this.keyMap.get(e);if(o!==void 0){let a=this.valList[o],c=this.isBackgroundFetch(a);return this.statusTTL(n,o),this.isStale(o)?(n&&(n.get="stale"),c?(n&&(n.returnedStale=t&&a.__staleWhileFetching!==void 0),t?a.__staleWhileFetching:void 0):(s||this.delete(e),n&&(n.returnedStale=t),t?a:void 0)):(n&&(n.get="hit"),c?a.__staleWhileFetching:(this.moveToTail(o),r&&this.updateItemAge(o),a))}else n&&(n.get="miss")}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return Cp("del","delete"),this.delete}delete(e){let t=!1;if(this.size!==0){let r=this.keyMap.get(e);if(r!==void 0)if(t=!0,this.size===1)this.clear();else{this.removeItemSize(r);let s=this.valList[r];this.isBackgroundFetch(s)?s.__abortController.abort(new Error("deleted")):(this.dispose(s,e,"delete"),this.disposeAfter&&this.disposed.push([s,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(let e of this.rindexes({allowStale:!0})){let t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{let r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Cp("reset","clear"),this.clear}get length(){return cP("length","size"),this.size}static get AbortController(){return Ah}static get AbortSignal(){return jb}};Gb.exports=An});var Xb=S((lY,Jb)=>{"use strict";y();var $=(...i)=>i.every(e=>e)?i.join(""):"",me=i=>i?encodeURIComponent(i):"",Hb=i=>i.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),hP={sshtemplate:({domain:i,user:e,project:t,committish:r})=>`git@${i}:${e}/${t}.git${$("#",r)}`,sshurltemplate:({domain:i,user:e,project:t,committish:r})=>`git+ssh://git@${i}/${e}/${t}.git${$("#",r)}`,edittemplate:({domain:i,user:e,project:t,committish:r,editpath:s,path:n})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r||"HEAD"),"/",n)}`,browsetemplate:({domain:i,user:e,project:t,committish:r,treepath:s})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r))}`,browsetreetemplate:({domain:i,user:e,project:t,committish:r,treepath:s,path:n,fragment:o,hashformat:a})=>`https://${i}/${e}/${t}/${s}/${me(r||"HEAD")}/${n}${$("#",a(o||""))}`,browseblobtemplate:({domain:i,user:e,project:t,committish:r,blobpath:s,path:n,fragment:o,hashformat:a})=>`https://${i}/${e}/${t}/${s}/${me(r||"HEAD")}/${n}${$("#",a(o||""))}`,docstemplate:({domain:i,user:e,project:t,treepath:r,committish:s})=>`https://${i}/${e}/${t}${$("/",r,"/",me(s))}#readme`,httpstemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git+https://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,filetemplate:({domain:i,user:e,project:t,committish:r,path:s})=>`https://${i}/${e}/${t}/raw/${me(r||"HEAD")}/${s}`,shortcuttemplate:({type:i,user:e,project:t,committish:r})=>`${i}:${e}/${t}${$("#",r)}`,pathtemplate:({user:i,project:e,committish:t})=>`${i}/${e}${$("#",t)}`,bugstemplate:({domain:i,user:e,project:t})=>`https://${i}/${e}/${t}/issues`,hashformat:Hb},Sr={};Sr.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:i,user:e,project:t,committish:r,path:s})=>`https://${$(i,"@")}raw.githubusercontent.com/${e}/${t}/${me(r||"HEAD")}/${s}`,gittemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://codeload.${i}/${e}/${t}/tar.gz/${me(r||"HEAD")}`,extract:i=>{let[,e,t,r,s]=i.pathname.split("/",5);if(!(r&&r!=="tree")&&(r||(s=i.hash.slice(1)),t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:s}}};Sr.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:i,user:e,project:t,committish:r,treepath:s,path:n,editpath:o})=>`https://${i}/${e}/${t}${$("/",s,"/",me(r||"HEAD"),"/",n,o)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/get/${me(r||"HEAD")}.tar.gz`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(!["get"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:i.hash.slice(1)}}};Sr.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:i,domain:e,user:t,project:r,committish:s})=>`git+https://${$(i,"@")}${e}/${t}/${r}.git${$("#",s)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/repository/archive.tar.gz?ref=${me(r||"HEAD")}`,extract:i=>{let e=i.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let t=e.split("/"),r=t.pop();r.endsWith(".git")&&(r=r.slice(0,-4));let s=t.join("/");if(!(!s||!r))return{user:s,project:r,committish:i.hash.slice(1)}}};Sr.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:i,project:e,committish:t})=>`git@${i}:${e}.git${$("#",t)}`,sshurltemplate:({domain:i,project:e,committish:t})=>`git+ssh://git@${i}/${e}.git${$("#",t)}`,edittemplate:({domain:i,user:e,project:t,committish:r,editpath:s})=>`https://${i}/${e}/${t}${$("/",me(r))}/${s}`,browsetemplate:({domain:i,project:e,committish:t})=>`https://${i}/${e}${$("/",me(t))}`,browsetreetemplate:({domain:i,project:e,committish:t,path:r,hashformat:s})=>`https://${i}/${e}${$("/",me(t))}${$("#",s(r))}`,browseblobtemplate:({domain:i,project:e,committish:t,path:r,hashformat:s})=>`https://${i}/${e}${$("/",me(t))}${$("#",s(r))}`,docstemplate:({domain:i,project:e,committish:t})=>`https://${i}/${e}${$("/",me(t))}`,httpstemplate:({domain:i,project:e,committish:t})=>`git+https://${i}/${e}.git${$("#",t)}`,filetemplate:({user:i,project:e,committish:t,path:r})=>`https://gist.githubusercontent.com/${i}/${e}/raw${$("/",me(t))}/${r}`,shortcuttemplate:({type:i,project:e,committish:t})=>`${i}:${e}${$("#",t)}`,pathtemplate:({project:i,committish:e})=>`${i}${$("#",e)}`,bugstemplate:({domain:i,project:e})=>`https://${i}/${e}`,gittemplate:({domain:i,project:e,committish:t})=>`git://${i}/${e}.git${$("#",t)}`,tarballtemplate:({project:i,committish:e})=>`https://codeload.github.com/gist/${i}/tar.gz/${me(e||"HEAD")}`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(r!=="raw"){if(!t){if(!e)return;t=e,e=null}return t.endsWith(".git")&&(t=t.slice(0,-4)),{user:e,project:t,committish:i.hash.slice(1)}}},hashformat:function(i){return i&&"file-"+Hb(i)}};Sr.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:i,user:e,project:t,committish:r,path:s})=>`https://${i}/${e}/${t}/blob/${me(r)||"HEAD"}/${s}`,httpstemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}.git${$("#",r)}`,tarballtemplate:({domain:i,user:e,project:t,committish:r})=>`https://${i}/${e}/${t}/archive/${me(r)||"HEAD"}.tar.gz`,bugstemplate:({user:i,project:e})=>`https://todo.sr.ht/${i}/${e}`,extract:i=>{let[,e,t,r]=i.pathname.split("/",4);if(!["archive"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:i.hash.slice(1)}}};for(let[i,e]of Object.entries(Sr))Sr[i]=Object.assign({},hP,e);Jb.exports=Sr});var Fp=S((dY,Wb)=>{"use strict";y();var uP=b("url"),kp=(i,e,t)=>{let r=i.indexOf(t);return i.lastIndexOf(e,r>-1?r:1/0)},Vb=i=>{try{return new uP.URL(i)}catch{}},lP=(i,e)=>{let t=i.indexOf(":"),r=i.slice(0,t+1);if(Object.prototype.hasOwnProperty.call(e,r))return i;let s=i.indexOf("@");return s>-1?s>t?`git+ssh://${i}`:i:i.indexOf("//")===t+1?i:`${i.slice(0,t+1)}//${i.slice(t+1)}`},fP=i=>{let e=kp(i,"@","#"),t=kp(i,":","#");return t>e&&(i=i.slice(0,t)+"/"+i.slice(t+1)),kp(i,":","#")===-1&&i.indexOf("//")===-1&&(i=`git+ssh://${i}`),i};Wb.exports=(i,e)=>{let t=e?lP(i,e):i;return Vb(t)||Vb(fP(t))}});var Yb=S((mY,Kb)=>{"use strict";y();var dP=Fp(),pP=i=>{let e=i.indexOf("#"),t=i.indexOf("/"),r=i.indexOf("/",t+1),s=i.indexOf(":"),n=/\s/.exec(i),o=i.indexOf("@"),a=!n||e>-1&&n.index>e,c=o===-1||e>-1&&o>e,l=s===-1||e>-1&&s>e,f=r===-1||e>-1&&r>e,m=t>0,d=e>-1?i[e-1]!=="/":!i.endsWith("/"),h=!i.startsWith(".");return a&&m&&d&&h&&c&&l&&f};Kb.exports=(i,e,{gitHosts:t,protocols:r})=>{if(!i)return;let s=pP(i)?`github:${i}`:i,n=dP(s,r);if(!n)return;let o=t.byShortcut[n.protocol],a=t.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],c=o||a;if(!c)return;let l=t[o||a],f=null;r[n.protocol]?.auth&&(n.username||n.password)&&(f=`${n.username}${n.password?":"+n.password:""}`);let m=null,d=null,h=null,u=null;try{if(o){let p=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,g=p.indexOf("@");g>-1&&(p=p.slice(g+1));let E=p.lastIndexOf("/");E>-1?(d=decodeURIComponent(p.slice(0,E)),d||(d=null),h=decodeURIComponent(p.slice(E+1))):h=decodeURIComponent(p),h.endsWith(".git")&&(h=h.slice(0,-4)),n.hash&&(m=decodeURIComponent(n.hash.slice(1))),u="shortcut"}else{if(!l.protocols.includes(n.protocol))return;let p=l.extract(n);if(!p)return;d=p.user&&decodeURIComponent(p.user),h=decodeURIComponent(p.project),m=decodeURIComponent(p.committish),u=r[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(p){if(p instanceof URIError)return;throw p}return[c,d,f,h,m,u,e]}});var Op=S((yY,Zb)=>{"use strict";y();var mP=_n(),gP=Xb(),yP=Yb(),EP=Fp(),Rp=new mP({max:1e3}),Th=class i{constructor(e,t,r,s,n,o,a={}){Object.assign(this,i.#t[e],{type:e,user:t,auth:r,project:s,committish:n,default:o,opts:a})}static#t={byShortcut:{},byDomain:{}};static#i={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,t){i.#t[e]=t,i.#t.byDomain[t.domain]=e,i.#t.byShortcut[`${e}:`]=e,i.#i[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!="string")return;let r=e+JSON.stringify(t||{});if(!Rp.has(r)){let s=yP(e,t,{gitHosts:i.#t,protocols:i.#i});Rp.set(r,s?new i(...s):void 0)}return Rp.get(r)}static parseUrl(e){return EP(e)}#e(e,t){if(typeof e!="function")return null;let r={...this,...this.opts,...t};r.path||(r.path=""),r.path.startsWith("/")&&(r.path=r.path.slice(1)),r.noCommittish&&(r.committish=null);let s=e(r);return r.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#e(this.sshtemplate,e)}sshurl(e){return this.#e(this.sshurltemplate,e)}browse(e,...t){return typeof e!="string"?this.#e(this.browsetemplate,e):typeof t[0]!="string"?this.#e(this.browsetreetemplate,{...t[0],path:e}):this.#e(this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){return typeof t[0]!="string"?this.#e(this.browseblobtemplate,{...t[0],path:e}):this.#e(this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return this.#e(this.docstemplate,e)}bugs(e){return this.#e(this.bugstemplate,e)}https(e){return this.#e(this.httpstemplate,e)}git(e){return this.#e(this.gittemplate,e)}shortcut(e){return this.#e(this.shortcuttemplate,e)}path(e){return this.#e(this.pathtemplate,e)}tarball(e){return this.#e(this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return this.#e(this.filetemplate,{...t,path:e})}edit(e,t){return this.#e(this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[i,e]of Object.entries(gP))Th.addHost(i,e);Zb.exports=Th});var ew=S((SY,Qb)=>{"use strict";y();var{builtinModules:SP}=b("module"),vP=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),bP=["node_modules","favicon.ico"];function wP(i){var e=[],t=[];if(i===null)return t.push("name cannot be null"),ga(e,t);if(i===void 0)return t.push("name cannot be undefined"),ga(e,t);if(typeof i!="string")return t.push("name must be a string"),ga(e,t);if(i.length||t.push("name length must be greater than zero"),i.match(/^\./)&&t.push("name cannot start with a period"),i.match(/^_/)&&t.push("name cannot start with an underscore"),i.trim()!==i&&t.push("name cannot contain leading or trailing spaces"),bP.forEach(function(o){i.toLowerCase()===o&&t.push(o+" is a blacklisted name")}),SP.includes(i.toLowerCase())&&e.push(i+" is a core module name"),i.length>214&&e.push("name can no longer contain more than 214 characters"),i.toLowerCase()!==i&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(i.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(i)!==i){var r=i.match(vP);if(r){var s=r[1],n=r[2];if(encodeURIComponent(s)===s&&encodeURIComponent(n)===n)return ga(e,t)}t.push("name can only contain URL-friendly characters")}return ga(e,t)}var ga=function(i,e){var t={validForNewPackages:e.length===0&&i.length===0,validForOldPackages:e.length===0,warnings:i,errors:e};return t.warnings.length||delete t.warnings,t.errors.length||delete t.errors,t};Qb.exports=wP});var Tn=S((bY,iw)=>{"use strict";y();var tw=["notice","error","warn","info","verbose","http","silly","pause","resume"],xP=i=>(...e)=>process.emit("log",i,...e),Bp={};for(let i of tw)Bp[i]=xP(i);Bp.LEVELS=tw;iw.exports=Bp});var Fn=S((xY,Ea)=>{"use strict";y();Ea.exports=ya;Ea.exports.resolve=hw;Ea.exports.toPurl=kP;Ea.exports.Result=kn;var br=b("url"),DP=Op(),rw=aa(),vr=global.FAKE_WINDOWS?b("path").win32:b("path"),ow=ew(),{homedir:CP}=b("os"),AP=Tn(),Ip=process.platform==="win32"||global.FAKE_WINDOWS,aw=Ip?/\\|[/]/:/[/]/,cw=/^(?:git[+])?[a-z]+:/i,_P=/^[^@]+@[^:.]+\.[^:]+:.+$/i,Pp=/[.](?:tgz|tar.gz|tar)$/i;function ya(i,e){let t,r;if(typeof i=="object")return i instanceof kn&&(!e||e===i.where)?i:i.name&&i.rawSpec?ya.resolve(i.name,i.rawSpec,e||i.where):ya(i.raw,e||i.where);let s=i[0]==="@"?i.slice(1).indexOf("@")+1:i.indexOf("@"),n=s>0?i.slice(0,s):i;return cw.test(i)?r=i:_P.test(i)?r=`git+ssh://${i}`:n[0]!=="@"&&(aw.test(n)||Pp.test(n))?r=i:s>0?(t=n,r=i.slice(s+1)||"*"):ow(i).validForOldPackages?(t=i,r="*"):r=i,hw(t,r,e,i)}var TP=Ip?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function hw(i,e,t,r){let s=new kn({raw:r,name:i,rawSpec:e,fromArgument:r!=null});if(i&&s.setName(i),e&&(TP.test(e)||/^file:/i.test(e)))return nw(s,t);if(e&&/^npm:/i.test(e))return NP(s,t);let n=DP.fromUrl(e,{noGitPlus:!0,noCommittish:!0});return n?BP(s,n):e&&cw.test(e)?PP(s):e&&(aw.test(e)||Pp.test(e))?nw(s,t):MP(s)}var sw="https://registry.npmjs.org";function kP(i,e=sw){let t=ya(i);if(t.type!=="version")throw OP(t.type,t.raw);let r="pkg:npm/"+t.name.replace(/^@/,"%40")+"@"+t.rawSpec;return e!==sw&&(r+="?repository_url="+e),r}function FP(i,e,t){let r=new Error(`Invalid package name "${i}" of package "${t}": ${e.errors.join("; ")}.`);return r.code="EINVALIDPACKAGENAME",r}function RP(i,e){let t=new Error(`Invalid tag name "${i}" of package "${e}": Tags may not have any characters that encodeURIComponent encodes.`);return t.code="EINVALIDTAGNAME",t}function OP(i,e){let t=new Error(`Invalid type "${i}" of package "${e}": Purl can only be generated for "version" types.`);return t.code="EINVALIDPURLTYPE",t}function kn(i){this.type=i.type,this.registry=i.registry,this.where=i.where,i.raw==null?this.raw=i.name?i.name+"@"+i.rawSpec:i.rawSpec:this.raw=i.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=i.rawSpec||"",this.saveSpec=i.saveSpec,this.fetchSpec=i.fetchSpec,i.name&&this.setName(i.name),this.gitRange=i.gitRange,this.gitCommittish=i.gitCommittish,this.gitSubdir=i.gitSubdir,this.hosted=i.hosted}kn.prototype.setName=function(i){let e=ow(i);if(!e.validForOldPackages)throw FP(i,e,this.raw);return this.name=i,this.scope=i[0]==="@"?i.slice(0,i.indexOf("/")):void 0,this.escapedName=i.replace("/","%2f"),this};kn.prototype.toString=function(){let i=[];this.name!=null&&this.name!==""&&i.push(this.name);let e=this.saveSpec||this.fetchSpec||this.rawSpec;return e!=null&&e!==""&&i.push(e),i.length?i.join("@"):this.raw};kn.prototype.toJSON=function(){let i=Object.assign({},this);return delete i.hosted,i};function Lp(i,e){if(!e)return i.gitCommittish=null,i;for(let t of e.split("::")){if(!t.includes(":")){if(i.gitRange)throw new Error("cannot override existing semver range with a committish");if(i.gitCommittish)throw new Error("cannot override existing committish with a second committish");i.gitCommittish=t;continue}let[r,s]=t.split(":");if(r==="semver"){if(i.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(i.gitRange)throw new Error("cannot override existing semver range with a second semver range");i.gitRange=decodeURIComponent(s);continue}if(r==="path"){if(i.gitSubdir)throw new Error("cannot override existing path with a second path");i.gitSubdir=`/${s}`;continue}AP.warn("npm-package-arg",`ignoring unknown key "${r}"`)}return i}function nw(i,e){e||(e=process.cwd()),i.type=Pp.test(i.rawSpec)?"file":"directory",i.where=e;let t,r,n=(/^file:/.test(i.rawSpec)?"":"file:")+i.rawSpec,o=n.replace(/^file:/,"");try{r=new br.URL(n,`file://${vr.resolve(e)}/`),t=new br.URL(n)}catch(l){let f=new Error("Invalid file: URL, must comply with RFC 8909");throw Object.assign(f,{raw:i.rawSpec,spec:i,where:e,originalError:l})}if(process.env.NPM_PACKAGE_ARG_8909_STRICT!=="1"){if(r.host&&r.host!=="localhost"){let l=i.rawSpec.replace(/^file:\/\//,"file:///");r=new br.URL(l,`file://${vr.resolve(e)}/`),t=new br.URL(l),o=l.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let l=i.rawSpec.replace(/^file:\/{1,3}/,"file:");r=new br.URL(l,`file://${vr.resolve(e)}/`),t=new br.URL(l),o=l.replace(/^file:/,"")}}if(r.host&&r.host!=="localhost"){let l="Invalid file: URL, must be absolute if // present";throw Object.assign(new Error(l),{raw:i.rawSpec,parsed:r})}let a=decodeURIComponent(t.pathname),c=decodeURIComponent(r.pathname);return Ip&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),c=c.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(i.saveSpec=`file:${a.substr(1)}`,c=vr.resolve(CP(),a.substr(3))):vr.isAbsolute(o)?i.saveSpec=`file:${vr.resolve(c)}`:i.saveSpec=`file:${vr.relative(e,c)}`,i.fetchSpec=vr.resolve(e,c),i}function BP(i,e){return i.type="git",i.hosted=e,i.saveSpec=e.toString({noGitPlus:!1,noCommittish:!1}),i.fetchSpec=e.getDefaultRepresentation()==="shortcut"?null:e.toString(),Lp(i,e.committish)}function LP(i,e){let t=new Error(`Unsupported URL Type "${i}": ${e}`);return t.code="EUNSUPPORTEDPROTOCOL",t}function IP(i){let e=i.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);return e&&!e[1].match(/:[0-9]+\/?.*$/i)&&{fetchSpec:e[1],gitCommittish:e[2]==null?null:e[2]}}function PP(i){let e=br.parse(i.rawSpec);switch(i.saveSpec=i.rawSpec,e.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":{i.type="git";let t=e.protocol==="git+ssh:"?IP(i.rawSpec):null;t?(Lp(i,t.gitCommittish),i.fetchSpec=t.fetchSpec):(Lp(i,e.hash!=null?e.hash.slice(1):""),e.protocol=e.protocol.replace(/^git[+]/,""),e.protocol==="file:"&&/^git\+file:\/\/[a-z]:/i.test(i.rawSpec)&&(e.host+=":",e.hostname+=":"),delete e.hash,i.fetchSpec=br.format(e));break}case"http:":case"https:":i.type="remote",i.fetchSpec=i.saveSpec;break;default:throw LP(e.protocol,i.rawSpec)}return i}function NP(i,e){let t=ya(i.rawSpec.substr(4),e);if(t.type==="alias")throw new Error("nested aliases not supported");if(!t.registry)throw new Error("aliases only work for registry deps");return i.subSpec=t,i.registry=!0,i.type="alias",i.saveSpec=null,i.fetchSpec=null,i}function MP(i){i.registry=!0;let e=i.rawSpec.trim();i.saveSpec=null,i.fetchSpec=e;let t=rw.valid(e,!0),r=rw.validRange(e,!0);if(t)i.type="version";else if(r)i.type="range";else{if(encodeURIComponent(e)!==e)throw RP(e,i.raw);i.type="tag"}return i}});var vw=S((CY,Sw)=>{"use strict";y();var uw=typeof process=="object"&&process?process:{stdout:null,stderr:null},UP=b("events"),lw=b("stream"),qP=b("string_decoder"),fw=qP.StringDecoder,Ei=Symbol("EOF"),Si=Symbol("maybeEmitEnd"),wr=Symbol("emittedEnd"),kh=Symbol("emittingEnd"),Sa=Symbol("emittedError"),Fh=Symbol("closed"),dw=Symbol("read"),Rh=Symbol("flush"),pw=Symbol("flushChunk"),Ve=Symbol("encoding"),vi=Symbol("decoder"),Oh=Symbol("flowing"),va=Symbol("paused"),Rn=Symbol("resume"),ee=Symbol("buffer"),Xt=Symbol("pipes"),Se=Symbol("bufferLength"),Np=Symbol("bufferPush"),Mp=Symbol("bufferShift"),ke=Symbol("objectMode"),te=Symbol("destroyed"),Up=Symbol("error"),qp=Symbol("emitData"),mw=Symbol("emitEnd"),jp=Symbol("emitEnd2"),bi=Symbol("async"),$p=Symbol("abort"),Bh=Symbol("aborted"),Es=Symbol("signal"),ba=i=>Promise.resolve().then(i),Ew=global._MP_NO_ITERATOR_SYMBOLS_!=="1",gw=Ew&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),yw=Ew&&Symbol.iterator||Symbol("iterator not implemented"),jP=i=>i==="end"||i==="finish"||i==="prefinish",$P=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,zP=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Lh=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Rn](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zp=class extends Lh{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},Gp=class i extends lw{constructor(e){super(),this[Oh]=!1,this[va]=!1,this[Xt]=[],this[ee]=[],this[ke]=e&&e.objectMode||!1,this[ke]?this[Ve]=null:this[Ve]=e&&e.encoding||null,this[Ve]==="buffer"&&(this[Ve]=null),this[bi]=e&&!!e.async||!1,this[vi]=this[Ve]?new fw(this[Ve]):null,this[Ei]=!1,this[wr]=!1,this[kh]=!1,this[Fh]=!1,this[Sa]=null,this.writable=!0,this.readable=!0,this[Se]=0,this[te]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Xt]}),this[Es]=e&&e.signal,this[Bh]=!1,this[Es]&&(this[Es].addEventListener("abort",()=>this[$p]()),this[Es].aborted&&this[$p]())}get bufferLength(){return this[Se]}get encoding(){return this[Ve]}set encoding(e){if(this[ke])throw new Error("cannot set encoding in objectMode");if(this[Ve]&&e!==this[Ve]&&(this[vi]&&this[vi].lastNeed||this[Se]))throw new Error("cannot change encoding");this[Ve]!==e&&(this[vi]=e?new fw(e):null,this[ee].length&&(this[ee]=this[ee].map(t=>this[vi].write(t)))),this[Ve]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ke]}set objectMode(e){this[ke]=this[ke]||!!e}get async(){return this[bi]}set async(e){this[bi]=this[bi]||!!e}[$p](){this[Bh]=!0,this.emit("abort",this[Es].reason),this.destroy(this[Es].reason)}get aborted(){return this[Bh]}set aborted(e){}write(e,t,r){if(this[Bh])return!1;if(this[Ei])throw new Error("write after end");if(this[te])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[bi]?ba:n=>n();return!this[ke]&&!Buffer.isBuffer(e)&&(zP(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):$P(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ke]?(this.flowing&&this[Se]!==0&&this[Rh](!0),this.flowing?this.emit("data",e):this[Np](e),this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[Ve]&&!this[vi].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ve]&&(e=this[vi].write(e)),this.flowing&&this[Se]!==0&&this[Rh](!0),this.flowing?this.emit("data",e):this[Np](e),this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[Se]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[te])return null;if(this[Se]===0||e===0||e>this[Se])return this[Si](),null;this[ke]&&(e=null),this[ee].length>1&&!this[ke]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[Se])]);let t=this[dw](e||null,this[ee][0]);return this[Si](),t}[dw](e,t){return e===t.length||e===null?this[Mp]():(this[ee][0]=t.slice(e),t=t.slice(0,e),this[Se]-=e),this.emit("data",t),!this[ee].length&&!this[Ei]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[Ei]=!0,this.writable=!1,(this.flowing||!this[va])&&this[Si](),this}[Rn](){this[te]||(this[va]=!1,this[Oh]=!0,this.emit("resume"),this[ee].length?this[Rh]():this[Ei]?this[Si]():this.emit("drain"))}resume(){return this[Rn]()}pause(){this[Oh]=!1,this[va]=!0}get destroyed(){return this[te]}get flowing(){return this[Oh]}get paused(){return this[va]}[Np](e){this[ke]?this[Se]+=1:this[Se]+=e.length,this[ee].push(e)}[Mp](){return this[ke]?this[Se]-=1:this[Se]-=this[ee][0].length,this[ee].shift()}[Rh](e){do;while(this[pw](this[Mp]())&&this[ee].length);!e&&!this[ee].length&&!this[Ei]&&this.emit("drain")}[pw](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[te])return;let r=this[wr];return t=t||{},e===uw.stdout||e===uw.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[Xt].push(t.proxyErrors?new zp(this,e,t):new Lh(this,e,t)),this[bi]?ba(()=>this[Rn]()):this[Rn]()),e}unpipe(e){let t=this[Xt].find(r=>r.dest===e);t&&(this[Xt].splice(this[Xt].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[Xt].length&&!this.flowing?this[Rn]():e==="readable"&&this[Se]!==0?super.emit("readable"):jP(e)&&this[wr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Sa]&&(this[bi]?ba(()=>t.call(this,this[Sa])):t.call(this,this[Sa])),r}get emittedEnd(){return this[wr]}[Si](){!this[kh]&&!this[wr]&&!this[te]&&this[ee].length===0&&this[Ei]&&(this[kh]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Fh]&&this.emit("close"),this[kh]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==te&&this[te])return;if(e==="data")return!this[ke]&&!t?!1:this[bi]?ba(()=>this[qp](t)):this[qp](t);if(e==="end")return this[mw]();if(e==="close"){if(this[Fh]=!0,!this[wr]&&!this[te])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Sa]=t,super.emit(Up,t);let n=!this[Es]||this.listeners("error").length?super.emit("error",t):!1;return this[Si](),n}else if(e==="resume"){let n=super.emit("resume");return this[Si](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[Si](),s}[qp](e){for(let r of this[Xt])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[Si](),t}[mw](){this[wr]||(this[wr]=!0,this.readable=!1,this[bi]?ba(()=>this[jp]()):this[jp]())}[jp](){if(this[vi]){let t=this[vi].end();if(t){for(let r of this[Xt])r.dest.write(t);super.emit("data",t)}}for(let t of this[Xt])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ke]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[ke]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[ke]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ke]?Promise.reject(new Error("cannot concat in objectMode")):this[Ve]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(te,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[gw](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ei])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(te,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(te,f),this.pause(),n({value:m,done:!!this[Ei]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(te,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(te,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[gw](){return this}}}[yw](){let e=!1,t=()=>(this.pause(),this.removeListener(Up,t),this.removeListener(te,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(Up,t),this.once(te,t),{next:r,throw:t,return:t,[yw](){return this}}}destroy(e){return this[te]?(e?this.emit("error",e):this.emit(te),this):(this[te]=!0,this[ee].length=0,this[Se]=0,typeof this.close=="function"&&!this[Fh]&&this.close(),e?this.emit("error",e):this.emit(te),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof lw||e instanceof UP&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};Sw.exports=Gp});var Wt=S((_Y,Vt)=>{"use strict";y();var xa=b("crypto"),GP=vw(),bw=["sha256","sha384","sha512"],HP=/^[a-z0-9+/]+(?:=?=?)$/i,JP=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/,XP=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/,VP=/^[\x21-\x7E]+$/,Kp={algorithms:["sha512"],error:!1,options:[],pickAlgorithm:iN,sep:" ",single:!1,strict:!1},Ge=(i={})=>({...Kp,...i}),Ih=i=>!i||!i.length?"":`?${i.join("?")}`,ww=Symbol("_onEnd"),Hp=Symbol("_getOptions"),Jp=Symbol("_emittedSize"),Xp=Symbol("_emittedIntegrity"),Vp=Symbol("_emittedVerified"),Yp=class extends GP{constructor(e){super(),this.size=0,this.opts=e,this[Hp]();let{algorithms:t=Kp.algorithms}=e;this.algorithms=Array.from(new Set(t.concat(this.algorithm?[this.algorithm]:[]))),this.hashes=this.algorithms.map(xa.createHash)}[Hp](){let{integrity:e,size:t,options:r}={...Kp,...this.opts};this.sri=e?bt(e,this.opts):null,this.expectedSize=t,this.goodSri=this.sri?!!Object.keys(this.sri).length:!1,this.algorithm=this.goodSri?this.sri.pickAlgorithm(this.opts):null,this.digests=this.goodSri?this.sri[this.algorithm]:null,this.optString=Ih(r)}on(e,t){return e==="size"&&this[Jp]?t(this[Jp]):e==="integrity"&&this[Xp]?t(this[Xp]):e==="verified"&&this[Vp]?t(this[Vp]):super.on(e,t)}emit(e,t){return e==="end"&&this[ww](),super.emit(e,t)}write(e){return this.size+=e.length,this.hashes.forEach(t=>t.update(e)),super.write(e)}[ww](){this.goodSri||this[Hp]();let e=bt(this.hashes.map((r,s)=>`${this.algorithms[s]}-${r.digest("base64")}${this.optString}`).join(" "),this.opts),t=this.goodSri&&e.match(this.sri,this.opts);if(typeof this.expectedSize=="number"&&this.size!==this.expectedSize){let r=new Error(`stream size mismatch when checking ${this.sri}.
|
|
12
12
|
Wanted: ${this.expectedSize}
|
|
13
13
|
Found: ${this.size}`);r.code="EBADSIZE",r.found=this.size,r.expected=this.expectedSize,r.sri=this.sri,this.emit("error",r)}else if(this.sri&&!t){let r=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);r.code="EINTEGRITY",r.found=e,r.expected=this.digests,r.algorithm=this.algorithm,r.sri=this.sri,this.emit("error",r)}else this[Jp]=this.size,this.emit("size",this.size),this[Xp]=e,this.emit("integrity",e),t&&(this[Vp]=t,this.emit("verified",t))}},xr=class{get isHash(){return!0}constructor(e,t){t=Ge(t);let r=!!t.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(r?XP:JP);if(!s||r&&!bw.some(o=>o===s[1]))return;this.algorithm=s[1],this.digest=s[2];let n=s[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e=Ge(e),e.strict&&!(bw.some(r=>r===this.algorithm)&&this.digest.match(HP)&&this.options.every(r=>r.match(VP))))return"";let t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}},Ss=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){e=Ge(e);let t=e.sep||" ";return e.strict&&(t=t.replace(/\S+/g," ")),Object.keys(this).map(r=>this[r].map(s=>xr.prototype.toString.call(s,e)).filter(s=>s.length).join(t)).filter(r=>r.length).join(t)}concat(e,t){t=Ge(t);let r=typeof e=="string"?e:wa(e,t);return bt(`${this.toString(t)} ${r}`,t)}hexDigest(){return bt(this,{single:!0}).hexDigest()}merge(e,t){t=Ge(t);let r=bt(e,t);for(let s in r)if(this[s]){if(!this[s].find(n=>r[s].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=r[s]}match(e,t){t=Ge(t);let r=bt(e,t);if(!r)return!1;let s=r.pickAlgorithm(t);return this[s]&&r[s]&&this[s].find(n=>r[s].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e){e=Ge(e);let t=e.pickAlgorithm;return Object.keys(this).reduce((s,n)=>t(s,n)||s)}};Vt.exports.parse=bt;function bt(i,e){if(!i)return null;if(e=Ge(e),typeof i=="string")return Wp(i,e);if(i.algorithm&&i.digest){let t=new Ss;return t[i.algorithm]=[i],Wp(wa(t,e),e)}else return Wp(wa(i,e),e)}function Wp(i,e){if(e.single)return new xr(i,e);let t=i.trim().split(/\s+/).reduce((r,s)=>{let n=new xr(s,e);if(n.algorithm&&n.digest){let o=n.algorithm;r[o]||(r[o]=[]),r[o].push(n)}return r},new Ss);return t.isEmpty()?null:t}Vt.exports.stringify=wa;function wa(i,e){return e=Ge(e),i.algorithm&&i.digest?xr.prototype.toString.call(i,e):typeof i=="string"?wa(bt(i,e),e):Ss.prototype.toString.call(i,e)}Vt.exports.fromHex=WP;function WP(i,e,t){t=Ge(t);let r=Ih(t.options);return bt(`${e}-${Buffer.from(i,"hex").toString("base64")}${r}`,t)}Vt.exports.fromData=KP;function KP(i,e){e=Ge(e);let t=e.algorithms,r=Ih(e.options);return t.reduce((s,n)=>{let o=xa.createHash(n).update(i).digest("base64"),a=new xr(`${n}-${o}${r}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new Ss)}Vt.exports.fromStream=YP;function YP(i,e){e=Ge(e);let t=Zp(e);return new Promise((r,s)=>{i.pipe(t),i.on("error",s),t.on("error",s);let n;t.on("integrity",o=>{n=o}),t.on("end",()=>r(n)),t.on("data",()=>{})})}Vt.exports.checkData=ZP;function ZP(i,e,t){if(t=Ge(t),e=bt(e,t),!e||!Object.keys(e).length){if(t.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let r=e.pickAlgorithm(t),s=xa.createHash(r).update(i).digest("base64"),n=bt({algorithm:r,digest:s}),o=n.match(e,t);if(o||!t.error)return o;if(typeof t.size=="number"&&i.length!==t.size){let a=new Error(`data size mismatch when checking ${e}.
|
|
14
14
|
Wanted: ${t.size}
|
|
15
15
|
Found: ${i.length}`);throw a.code="EBADSIZE",a.found=i.length,a.expected=t.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${r}: Wanted ${e}, but got ${n}. (${i.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=r,a.sri=e,a}}Vt.exports.checkStream=QP;function QP(i,e,t){if(t=Ge(t),t.integrity=e,e=bt(e,t),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let r=Zp(t);return new Promise((s,n)=>{i.pipe(r),i.on("error",n),r.on("error",n);let o;r.on("verified",a=>{o=a}),r.on("end",()=>s(o)),r.on("data",()=>{})})}Vt.exports.integrityStream=Zp;function Zp(i={}){return new Yp(i)}Vt.exports.create=eN;function eN(i){i=Ge(i);let e=i.algorithms,t=Ih(i.options),r=e.map(xa.createHash);return{update:function(s,n){return r.forEach(o=>o.update(s,n)),this},digest:function(s){return e.reduce((o,a)=>{let c=r.shift().digest("base64"),l=new xr(`${a}-${c}${t}`,i);if(l.algorithm&&l.digest){let f=l.algorithm;o[f]||(o[f]=[]),o[f].push(l)}return o},new Ss)}}}var tN=new Set(xa.getHashes()),xw=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(i=>tN.has(i));function iN(i,e){return xw.indexOf(i.toLowerCase())>=xw.indexOf(e.toLowerCase())?i:e}});var On=S((kY,Cw)=>{"use strict";y();var Dw=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Cw.exports=i=>i?Object.keys(i).map(e=>[Dw.has(e)?Dw.get(e):e,i[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var $h=S(Iw=>{"use strict";y();var Aw=typeof process=="object"&&process?process:{stdout:null,stderr:null},rN=b("events"),_w=b("stream"),sN=b("string_decoder"),Tw=sN.StringDecoder,wi=Symbol("EOF"),xi=Symbol("maybeEmitEnd"),Dr=Symbol("emittedEnd"),Ph=Symbol("emittingEnd"),Da=Symbol("emittedError"),Nh=Symbol("closed"),kw=Symbol("read"),Mh=Symbol("flush"),Fw=Symbol("flushChunk"),We=Symbol("encoding"),Di=Symbol("decoder"),Uh=Symbol("flowing"),Ca=Symbol("paused"),Bn=Symbol("resume"),ie=Symbol("buffer"),Kt=Symbol("pipes"),ve=Symbol("bufferLength"),Qp=Symbol("bufferPush"),em=Symbol("bufferShift"),Fe=Symbol("objectMode"),re=Symbol("destroyed"),tm=Symbol("error"),im=Symbol("emitData"),Rw=Symbol("emitEnd"),rm=Symbol("emitEnd2"),Ci=Symbol("async"),sm=Symbol("abort"),qh=Symbol("aborted"),vs=Symbol("signal"),Aa=i=>Promise.resolve().then(i),Lw=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Ow=Lw&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Bw=Lw&&Symbol.iterator||Symbol("iterator not implemented"),nN=i=>i==="end"||i==="finish"||i==="prefinish",oN=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,aN=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),jh=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Bn](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},nm=class extends jh{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},om=class i extends _w{constructor(e){super(),this[Uh]=!1,this[Ca]=!1,this[Kt]=[],this[ie]=[],this[Fe]=e&&e.objectMode||!1,this[Fe]?this[We]=null:this[We]=e&&e.encoding||null,this[We]==="buffer"&&(this[We]=null),this[Ci]=e&&!!e.async||!1,this[Di]=this[We]?new Tw(this[We]):null,this[wi]=!1,this[Dr]=!1,this[Ph]=!1,this[Nh]=!1,this[Da]=null,this.writable=!0,this.readable=!0,this[ve]=0,this[re]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ie]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Kt]}),this[vs]=e&&e.signal,this[qh]=!1,this[vs]&&(this[vs].addEventListener("abort",()=>this[sm]()),this[vs].aborted&&this[sm]())}get bufferLength(){return this[ve]}get encoding(){return this[We]}set encoding(e){if(this[Fe])throw new Error("cannot set encoding in objectMode");if(this[We]&&e!==this[We]&&(this[Di]&&this[Di].lastNeed||this[ve]))throw new Error("cannot change encoding");this[We]!==e&&(this[Di]=e?new Tw(e):null,this[ie].length&&(this[ie]=this[ie].map(t=>this[Di].write(t)))),this[We]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Fe]}set objectMode(e){this[Fe]=this[Fe]||!!e}get async(){return this[Ci]}set async(e){this[Ci]=this[Ci]||!!e}[sm](){this[qh]=!0,this.emit("abort",this[vs].reason),this.destroy(this[vs].reason)}get aborted(){return this[qh]}set aborted(e){}write(e,t,r){if(this[qh])return!1;if(this[wi])throw new Error("write after end");if(this[re])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[Ci]?Aa:n=>n();return!this[Fe]&&!Buffer.isBuffer(e)&&(aN(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):oN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Fe]?(this.flowing&&this[ve]!==0&&this[Mh](!0),this.flowing?this.emit("data",e):this[Qp](e),this[ve]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[We]&&!this[Di].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[We]&&(e=this[Di].write(e)),this.flowing&&this[ve]!==0&&this[Mh](!0),this.flowing?this.emit("data",e):this[Qp](e),this[ve]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[ve]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[re])return null;if(this[ve]===0||e===0||e>this[ve])return this[xi](),null;this[Fe]&&(e=null),this[ie].length>1&&!this[Fe]&&(this.encoding?this[ie]=[this[ie].join("")]:this[ie]=[Buffer.concat(this[ie],this[ve])]);let t=this[kw](e||null,this[ie][0]);return this[xi](),t}[kw](e,t){return e===t.length||e===null?this[em]():(this[ie][0]=t.slice(e),t=t.slice(0,e),this[ve]-=e),this.emit("data",t),!this[ie].length&&!this[wi]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[wi]=!0,this.writable=!1,(this.flowing||!this[Ca])&&this[xi](),this}[Bn](){this[re]||(this[Ca]=!1,this[Uh]=!0,this.emit("resume"),this[ie].length?this[Mh]():this[wi]?this[xi]():this.emit("drain"))}resume(){return this[Bn]()}pause(){this[Uh]=!1,this[Ca]=!0}get destroyed(){return this[re]}get flowing(){return this[Uh]}get paused(){return this[Ca]}[Qp](e){this[Fe]?this[ve]+=1:this[ve]+=e.length,this[ie].push(e)}[em](){return this[Fe]?this[ve]-=1:this[ve]-=this[ie][0].length,this[ie].shift()}[Mh](e){do;while(this[Fw](this[em]())&&this[ie].length);!e&&!this[ie].length&&!this[wi]&&this.emit("drain")}[Fw](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[re])return;let r=this[Dr];return t=t||{},e===Aw.stdout||e===Aw.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[Kt].push(t.proxyErrors?new nm(this,e,t):new jh(this,e,t)),this[Ci]?Aa(()=>this[Bn]()):this[Bn]()),e}unpipe(e){let t=this[Kt].find(r=>r.dest===e);t&&(this[Kt].splice(this[Kt].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[Kt].length&&!this.flowing?this[Bn]():e==="readable"&&this[ve]!==0?super.emit("readable"):nN(e)&&this[Dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Da]&&(this[Ci]?Aa(()=>t.call(this,this[Da])):t.call(this,this[Da])),r}get emittedEnd(){return this[Dr]}[xi](){!this[Ph]&&!this[Dr]&&!this[re]&&this[ie].length===0&&this[wi]&&(this[Ph]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Nh]&&this.emit("close"),this[Ph]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==re&&this[re])return;if(e==="data")return!this[Fe]&&!t?!1:this[Ci]?Aa(()=>this[im](t)):this[im](t);if(e==="end")return this[Rw]();if(e==="close"){if(this[Nh]=!0,!this[Dr]&&!this[re])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Da]=t,super.emit(tm,t);let n=!this[vs]||this.listeners("error").length?super.emit("error",t):!1;return this[xi](),n}else if(e==="resume"){let n=super.emit("resume");return this[xi](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[xi](),s}[im](e){for(let r of this[Kt])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[xi](),t}[Rw](){this[Dr]||(this[Dr]=!0,this.readable=!1,this[Ci]?Aa(()=>this[rm]()):this[rm]())}[rm](){if(this[Di]){let t=this[Di].end();if(t){for(let r of this[Kt])r.dest.write(t);super.emit("data",t)}}for(let t of this[Kt])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Fe]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Fe]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this[We]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(re,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[Ow](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[wi])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(re,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(re,f),this.pause(),n({value:m,done:!!this[wi]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(re,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(re,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[Ow](){return this}}}[Bw](){let e=!1,t=()=>(this.pause(),this.removeListener(tm,t),this.removeListener(re,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(tm,t),this.once(re,t),{next:r,throw:t,return:t,[Bw](){return this}}}destroy(e){return this[re]?(e?this.emit("error",e):this.emit(re),this):(this[re]=!0,this[ie].length=0,this[ve]=0,typeof this.close=="function"&&!this[Nh]&&this.close(),e?this.emit("error",e):this.emit(re),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof _w||e instanceof rN&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};Iw.Minipass=om});var Nw=S((BY,Pw)=>{"use strict";y();var cN=b("zlib").constants||{ZLIB_VERNUM:4736};Pw.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},cN))});var Ar=S((IY,Jw)=>{"use strict";y();var Mw=typeof process=="object"&&process?process:{stdout:null,stderr:null},hN=b("events"),Uw=b("stream"),qw=b("string_decoder").StringDecoder,Ai=Symbol("EOF"),_i=Symbol("maybeEmitEnd"),Cr=Symbol("emittedEnd"),zh=Symbol("emittingEnd"),_a=Symbol("emittedError"),Gh=Symbol("closed"),jw=Symbol("read"),Hh=Symbol("flush"),$w=Symbol("flushChunk"),Ke=Symbol("encoding"),Ti=Symbol("decoder"),Jh=Symbol("flowing"),Ta=Symbol("paused"),Ln=Symbol("resume"),be=Symbol("bufferLength"),am=Symbol("bufferPush"),cm=Symbol("bufferShift"),qe=Symbol("objectMode"),je=Symbol("destroyed"),hm=Symbol("emitData"),zw=Symbol("emitEnd"),um=Symbol("emitEnd2"),ki=Symbol("async"),ka=i=>Promise.resolve().then(i),Gw=global._MP_NO_ITERATOR_SYMBOLS_!=="1",uN=Gw&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),lN=Gw&&Symbol.iterator||Symbol("iterator not implemented"),fN=i=>i==="end"||i==="finish"||i==="prefinish",dN=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,pN=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Xh=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Ln](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lm=class extends Xh{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}};Jw.exports=class Hw extends Uw{constructor(e){super(),this[Jh]=!1,this[Ta]=!1,this.pipes=[],this.buffer=[],this[qe]=e&&e.objectMode||!1,this[qe]?this[Ke]=null:this[Ke]=e&&e.encoding||null,this[Ke]==="buffer"&&(this[Ke]=null),this[ki]=e&&!!e.async||!1,this[Ti]=this[Ke]?new qw(this[Ke]):null,this[Ai]=!1,this[Cr]=!1,this[zh]=!1,this[Gh]=!1,this[_a]=null,this.writable=!0,this.readable=!0,this[be]=0,this[je]=!1}get bufferLength(){return this[be]}get encoding(){return this[Ke]}set encoding(e){if(this[qe])throw new Error("cannot set encoding in objectMode");if(this[Ke]&&e!==this[Ke]&&(this[Ti]&&this[Ti].lastNeed||this[be]))throw new Error("cannot change encoding");this[Ke]!==e&&(this[Ti]=e?new qw(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[Ti].write(t)))),this[Ke]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[qe]}set objectMode(e){this[qe]=this[qe]||!!e}get async(){return this[ki]}set async(e){this[ki]=this[ki]||!!e}write(e,t,r){if(this[Ai])throw new Error("write after end");if(this[je])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[ki]?ka:n=>n();return!this[qe]&&!Buffer.isBuffer(e)&&(pN(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):dN(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[qe]?(this.flowing&&this[be]!==0&&this[Hh](!0),this.flowing?this.emit("data",e):this[am](e),this[be]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[Ke]&&!this[Ti].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[Ti].write(e)),this.flowing&&this[be]!==0&&this[Hh](!0),this.flowing?this.emit("data",e):this[am](e),this[be]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[be]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[je])return null;if(this[be]===0||e===0||e>this[be])return this[_i](),null;this[qe]&&(e=null),this.buffer.length>1&&!this[qe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[be])]);let t=this[jw](e||null,this.buffer[0]);return this[_i](),t}[jw](e,t){return e===t.length||e===null?this[cm]():(this.buffer[0]=t.slice(e),t=t.slice(0,e),this[be]-=e),this.emit("data",t),!this.buffer.length&&!this[Ai]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[Ai]=!0,this.writable=!1,(this.flowing||!this[Ta])&&this[_i](),this}[Ln](){this[je]||(this[Ta]=!1,this[Jh]=!0,this.emit("resume"),this.buffer.length?this[Hh]():this[Ai]?this[_i]():this.emit("drain"))}resume(){return this[Ln]()}pause(){this[Jh]=!1,this[Ta]=!0}get destroyed(){return this[je]}get flowing(){return this[Jh]}get paused(){return this[Ta]}[am](e){this[qe]?this[be]+=1:this[be]+=e.length,this.buffer.push(e)}[cm](){return this.buffer.length&&(this[qe]?this[be]-=1:this[be]-=this.buffer[0].length),this.buffer.shift()}[Hh](e){do;while(this[$w](this[cm]()));!e&&!this.buffer.length&&!this[Ai]&&this.emit("drain")}[$w](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[je])return;let r=this[Cr];return t=t||{},e===Mw.stdout||e===Mw.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this.pipes.push(t.proxyErrors?new lm(this,e,t):new Xh(this,e,t)),this[ki]?ka(()=>this[Ln]()):this[Ln]()),e}unpipe(e){let t=this.pipes.find(r=>r.dest===e);t&&(this.pipes.splice(this.pipes.indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this.pipes.length&&!this.flowing?this[Ln]():e==="readable"&&this[be]!==0?super.emit("readable"):fN(e)&&this[Cr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[_a]&&(this[ki]?ka(()=>t.call(this,this[_a])):t.call(this,this[_a])),r}get emittedEnd(){return this[Cr]}[_i](){!this[zh]&&!this[Cr]&&!this[je]&&this.buffer.length===0&&this[Ai]&&(this[zh]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Gh]&&this.emit("close"),this[zh]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==je&&this[je])return;if(e==="data")return t?this[ki]?ka(()=>this[hm](t)):this[hm](t):!1;if(e==="end")return this[zw]();if(e==="close"){if(this[Gh]=!0,!this[Cr]&&!this[je])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[_a]=t;let n=super.emit("error",t);return this[_i](),n}else if(e==="resume"){let n=super.emit("resume");return this[_i](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[_i](),s}[hm](e){for(let r of this.pipes)r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[_i](),t}[zw](){this[Cr]||(this[Cr]=!0,this.readable=!1,this[ki]?ka(()=>this[um]()):this[um]())}[um](){if(this[Ti]){let t=this[Ti].end();if(t){for(let r of this.pipes)r.dest.write(t);super.emit("data",t)}}for(let t of this.pipes)t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[qe]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[qe]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[qe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[qe]?Promise.reject(new Error("cannot concat in objectMode")):this[Ke]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(je,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[uN](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[Ai])return Promise.resolve({done:!0});let r=null,s=null,n=l=>{this.removeListener("data",o),this.removeListener("end",a),s(l)},o=l=>{this.removeListener("error",n),this.removeListener("end",a),this.pause(),r({value:l,done:!!this[Ai]})},a=()=>{this.removeListener("error",n),this.removeListener("data",o),r({done:!0})},c=()=>n(new Error("stream destroyed"));return new Promise((l,f)=>{s=f,r=l,this.once(je,c),this.once("error",n),this.once("end",a),this.once("data",o)})}}}[lN](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[je]?(e?this.emit("error",e):this.emit(je),this):(this[je]=!0,this.buffer.length=0,this[be]=0,typeof this.close=="function"&&!this[Gh]&&this.close(),e?this.emit("error",e):this.emit(je),this)}static isStream(e){return!!e&&(e instanceof Hw||e instanceof Uw||e instanceof hN&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Ra=S(ut=>{"use strict";y();var gm=b("assert"),_r=b("buffer").Buffer,Ww=b("zlib"),bs=ut.constants=Nw(),mN=Ar(),Xw=_r.concat,ws=Symbol("_superWrite"),Pn=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},gN=Symbol("opts"),Fa=Symbol("flushFlag"),Vw=Symbol("finishFlushFlag"),Am=Symbol("fullFlushFlag"),Y=Symbol("handle"),Vh=Symbol("onError"),In=Symbol("sawError"),fm=Symbol("level"),dm=Symbol("strategy"),pm=Symbol("ended"),NY=Symbol("_defaultFullFlush"),Wh=class extends mN{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[In]=!1,this[pm]=!1,this[gN]=e,this[Fa]=e.flush,this[Vw]=e.finishFlush;try{this[Y]=new Ww[t](e)}catch(r){throw new Pn(r)}this[Vh]=r=>{this[In]||(this[In]=!0,this.close(),this.emit("error",r))},this[Y].on("error",r=>this[Vh](new Pn(r))),this.once("end",()=>this.close)}close(){this[Y]&&(this[Y].close(),this[Y]=null,this.emit("close"))}reset(){if(!this[In])return gm(this[Y],"zlib binding closed"),this[Y].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Am]),this.write(Object.assign(_r.alloc(0),{[Fa]:e})))}end(e,t,r){return e&&this.write(e,t),this.flush(this[Vw]),this[pm]=!0,super.end(null,null,r)}get ended(){return this[pm]}write(e,t,r){if(typeof t=="function"&&(r=t,t="utf8"),typeof e=="string"&&(e=_r.from(e,t)),this[In])return;gm(this[Y],"zlib binding closed");let s=this[Y]._handle,n=s.close;s.close=()=>{};let o=this[Y].close;this[Y].close=()=>{},_r.concat=l=>l;let a;try{let l=typeof e[Fa]=="number"?e[Fa]:this[Fa];a=this[Y]._processChunk(e,l),_r.concat=Xw}catch(l){_r.concat=Xw,this[Vh](new Pn(l))}finally{this[Y]&&(this[Y]._handle=s,s.close=n,this[Y].close=o,this[Y].removeAllListeners("error"))}this[Y]&&this[Y].on("error",l=>this[Vh](new Pn(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ws](_r.from(a[0]));for(let l=1;l<a.length;l++)c=this[ws](a[l])}else c=this[ws](_r.from(a));return r&&r(),c}[ws](e){return super.write(e)}},Fi=class extends Wh{constructor(e,t){e=e||{},e.flush=e.flush||bs.Z_NO_FLUSH,e.finishFlush=e.finishFlush||bs.Z_FINISH,super(e,t),this[Am]=bs.Z_FULL_FLUSH,this[fm]=e.level,this[dm]=e.strategy}params(e,t){if(!this[In]){if(!this[Y])throw new Error("cannot switch params when binding is closed");if(!this[Y].params)throw new Error("not supported in this implementation");if(this[fm]!==e||this[dm]!==t){this.flush(bs.Z_SYNC_FLUSH),gm(this[Y],"zlib binding closed");let r=this[Y].flush;this[Y].flush=(s,n)=>{this.flush(s),n()};try{this[Y].params(e,t)}finally{this[Y].flush=r}this[Y]&&(this[fm]=e,this[dm]=t)}}}},ym=class extends Fi{constructor(e){super(e,"Deflate")}},Em=class extends Fi{constructor(e){super(e,"Inflate")}},mm=Symbol("_portable"),Sm=class extends Fi{constructor(e){super(e,"Gzip"),this[mm]=e&&!!e.portable}[ws](e){return this[mm]?(this[mm]=!1,e[9]=255,super[ws](e)):super[ws](e)}},vm=class extends Fi{constructor(e){super(e,"Gunzip")}},bm=class extends Fi{constructor(e){super(e,"DeflateRaw")}},wm=class extends Fi{constructor(e){super(e,"InflateRaw")}},xm=class extends Fi{constructor(e){super(e,"Unzip")}},Kh=class extends Wh{constructor(e,t){e=e||{},e.flush=e.flush||bs.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||bs.BROTLI_OPERATION_FINISH,super(e,t),this[Am]=bs.BROTLI_OPERATION_FLUSH}},Dm=class extends Kh{constructor(e){super(e,"BrotliCompress")}},Cm=class extends Kh{constructor(e){super(e,"BrotliDecompress")}};ut.Deflate=ym;ut.Inflate=Em;ut.Gzip=Sm;ut.Gunzip=vm;ut.DeflateRaw=bm;ut.InflateRaw=wm;ut.Unzip=xm;typeof Ww.BrotliCompress=="function"?(ut.BrotliCompress=Dm,ut.BrotliDecompress=Cm):ut.BrotliCompress=ut.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Nn=S((jY,Kw)=>{"use strict";y();var yN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Kw.exports=yN!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")});var Yh=S((GY,Yw)=>{"use strict";y();var{Minipass:EN}=$h(),_m=Nn(),Tm=Symbol("slurp");Yw.exports=class extends EN{constructor(e,t,r){switch(super(),this.pause(),this.extended=t,this.globalExtended=r,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=_m(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=_m(e.linkpath),this.uname=e.uname,this.gname=e.gname,t&&this[Tm](t),r&&this[Tm](r,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,s=this.blockRemain;return this.remain=Math.max(0,r-t),this.blockRemain=Math.max(0,s-t),this.ignore?!0:r>=t?super.write(e):super.write(e.slice(0,r))}[Tm](e,t){for(let r in e)e[r]!==null&&e[r]!==void 0&&!(t&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?_m(e[r]):e[r])}}});var km=S(Zh=>{"use strict";y();Zh.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Zh.code=new Map(Array.from(Zh.name).map(i=>[i[1],i[0]]))});var tx=S((VY,ex)=>{"use strict";y();var SN=(i,e)=>{if(Number.isSafeInteger(i))i<0?bN(i,e):vN(i,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},vN=(i,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=i&255,i=Math.floor(i/256)},bN=(i,e)=>{e[0]=255;var t=!1;i=i*-1;for(var r=e.length;r>1;r--){var s=i&255;i=Math.floor(i/256),t?e[r-1]=Zw(s):s===0?e[r-1]=0:(t=!0,e[r-1]=Qw(s))}},wN=i=>{let e=i[0],t=e===128?DN(i.slice(1,i.length)):e===255?xN(i):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t},xN=i=>{for(var e=i.length,t=0,r=!1,s=e-1;s>-1;s--){var n=i[s],o;r?o=Zw(n):n===0?o=n:(r=!0,o=Qw(n)),o!==0&&(t-=o*Math.pow(256,e-s-1))}return t},DN=i=>{for(var e=i.length,t=0,r=e-1;r>-1;r--){var s=i[r];s!==0&&(t+=s*Math.pow(256,e-r-1))}return t},Zw=i=>(255^i)&255,Qw=i=>(255^i)+1&255;ex.exports={encode:SN,parse:wN}});var Un=S((KY,rx)=>{"use strict";y();var Fm=km(),Mn=b("path").posix,ix=tx(),Rm=Symbol("slurp"),lt=Symbol("type"),Lm=class{constructor(e,t,r,s){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[lt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,r,s):e&&this.set(e)}decode(e,t,r,s){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=xs(e,t,100),this.mode=Tr(e,t+100,8),this.uid=Tr(e,t+108,8),this.gid=Tr(e,t+116,8),this.size=Tr(e,t+124,12),this.mtime=Om(e,t+136,12),this.cksum=Tr(e,t+148,12),this[Rm](r),this[Rm](s,!0),this[lt]=xs(e,t+156,1),this[lt]===""&&(this[lt]="0"),this[lt]==="0"&&this.path.slice(-1)==="/"&&(this[lt]="5"),this[lt]==="5"&&(this.size=0),this.linkpath=xs(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=xs(e,t+265,32),this.gname=xs(e,t+297,32),this.devmaj=Tr(e,t+329,8),this.devmin=Tr(e,t+337,8),e[t+475]!==0){let o=xs(e,t+345,155);this.path=o+"/"+this.path}else{let o=xs(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=Om(e,t+476,12),this.ctime=Om(e,t+488,12)}let n=8*32;for(let o=t;o<t+148;o++)n+=e[o];for(let o=t+156;o<t+512;o++)n+=e[o];this.cksumValid=n===this.cksum,this.cksum===null&&n===8*32&&(this.nullBlock=!0)}[Rm](e,t){for(let r in e)e[r]!==null&&e[r]!==void 0&&!(t&&r==="path")&&(this[r]=e[r])}encode(e,t){if(e||(e=this.block=Buffer.alloc(512),t=0),t||(t=0),!(e.length>=t+512))throw new Error("need 512 bytes for header");let r=this.ctime||this.atime?130:155,s=CN(this.path||"",r),n=s[0],o=s[1];this.needPax=s[2],this.needPax=Ds(e,t,100,n)||this.needPax,this.needPax=kr(e,t+100,8,this.mode)||this.needPax,this.needPax=kr(e,t+108,8,this.uid)||this.needPax,this.needPax=kr(e,t+116,8,this.gid)||this.needPax,this.needPax=kr(e,t+124,12,this.size)||this.needPax,this.needPax=Bm(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[lt].charCodeAt(0),this.needPax=Ds(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Ds(e,t+265,32,this.uname)||this.needPax,this.needPax=Ds(e,t+297,32,this.gname)||this.needPax,this.needPax=kr(e,t+329,8,this.devmaj)||this.needPax,this.needPax=kr(e,t+337,8,this.devmin)||this.needPax,this.needPax=Ds(e,t+345,r,o)||this.needPax,e[t+475]!==0?this.needPax=Ds(e,t+345,155,o)||this.needPax:(this.needPax=Ds(e,t+345,130,o)||this.needPax,this.needPax=Bm(e,t+476,12,this.atime)||this.needPax,this.needPax=Bm(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=t;c<t+148;c++)a+=e[c];for(let c=t+156;c<t+512;c++)a+=e[c];return this.cksum=a,kr(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let t in e)e[t]!==null&&e[t]!==void 0&&(this[t]=e[t])}get type(){return Fm.name.get(this[lt])||this[lt]}get typeKey(){return this[lt]}set type(e){Fm.code.has(e)?this[lt]=Fm.code.get(e):this[lt]=e}},CN=(i,e)=>{let r=i,s="",n,o=Mn.parse(i).root||".";if(Buffer.byteLength(r)<100)n=[r,s,!1];else{s=Mn.dirname(r),r=Mn.basename(r);do Buffer.byteLength(r)<=100&&Buffer.byteLength(s)<=e?n=[r,s,!1]:Buffer.byteLength(r)>100&&Buffer.byteLength(s)<=e?n=[r.slice(0,99),s,!0]:(r=Mn.join(Mn.basename(s),r),s=Mn.dirname(s));while(s!==o&&!n);n||(n=[i.slice(0,99),"",!0])}return n},xs=(i,e,t)=>i.slice(e,e+t).toString("utf8").replace(/\0.*/,""),Om=(i,e,t)=>AN(Tr(i,e,t)),AN=i=>i===null?null:new Date(i*1e3),Tr=(i,e,t)=>i[e]&128?ix.parse(i.slice(e,e+t)):TN(i,e,t),_N=i=>isNaN(i)?null:i,TN=(i,e,t)=>_N(parseInt(i.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),kN={12:8589934591,8:2097151},kr=(i,e,t,r)=>r===null?!1:r>kN[t]||r<0?(ix.encode(r,i.slice(e,e+t)),!0):(FN(i,e,t,r),!1),FN=(i,e,t,r)=>i.write(RN(r,t),e,t,"ascii"),RN=(i,e)=>ON(Math.floor(i).toString(8),e),ON=(i,e)=>(i.length===e-1?i:new Array(e-i.length-1).join("0")+i+" ")+"\0",Bm=(i,e,t,r)=>r===null?!1:kr(i,e,t,r.getTime()/1e3),BN=new Array(156).join("\0"),Ds=(i,e,t,r)=>r===null?!1:(i.write(r+BN,e,t,"utf8"),r.length!==Buffer.byteLength(r)||r.length>t);rx.exports=Lm});var Qh=S((ZY,sx)=>{"use strict";y();var LN=Un(),IN=b("path"),Oa=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),r=512*Math.ceil(1+t/512),s=Buffer.allocUnsafe(r);for(let n=0;n<512;n++)s[n]=0;new LN({path:("PaxHeader/"+IN.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(s),s.write(e,512,t,"utf8");for(let n=t+512;n<s.length;n++)s[n]=0;return s}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let t=this[e]instanceof Date?this[e].getTime()/1e3:this[e],r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+`
|
|
16
16
|
`,s=Buffer.byteLength(r),n=Math.floor(Math.log(s)/Math.log(10))+1;return s+n>=Math.pow(10,n)&&(n+=1),n+s+r}};Oa.parse=(i,e,t)=>new Oa(PN(NN(i),e),t);var PN=(i,e)=>e?Object.keys(i).reduce((t,r)=>(t[r]=i[r],t),e):i,NN=i=>i.replace(/\n$/,"").split(`
|
|
17
|
-
`).reduce(MN,Object.create(null)),MN=(i,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return i;e=e.slice((t+" ").length);let r=e.split("="),s=r.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return i;let n=r.join("=");return i[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(n*1e3):/^[0-9]+$/.test(n)?+n:n,i};sx.exports=Oa});var qn=S((eZ,nx)=>{"use strict";y();nx.exports=i=>{let e=i.length-1,t=-1;for(;e>-1&&i.charAt(e)==="/";)t=e,e--;return t===-1?i:i.slice(0,t)}});var eu=S((iZ,ox)=>{"use strict";y();ox.exports=i=>class extends i{warn(e,t,r={}){this.file&&(r.file=this.file),this.cwd&&(r.cwd=this.cwd),r.code=t instanceof Error&&t.code||e,r.tarCode=e,!this.strict&&r.recoverable!==!1?(t instanceof Error&&(r=Object.assign(t,r),t=t.message),this.emit("warn",r.tarCode,t,r)):t instanceof Error?this.emit("error",Object.assign(t,r)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}});var Pm=S((nZ,ax)=>{"use strict";y();var tu=["|","<",">","?",":"],Im=tu.map(i=>String.fromCharCode(61440+i.charCodeAt(0))),UN=new Map(tu.map((i,e)=>[i,Im[e]])),qN=new Map(Im.map((i,e)=>[i,tu[e]]));ax.exports={encode:i=>tu.reduce((e,t)=>e.split(t).join(UN.get(t)),i),decode:i=>Im.reduce((e,t)=>e.split(t).join(qN.get(t)),i)}});var Nm=S((aZ,hx)=>{"use strict";y();var{isAbsolute:jN,parse:cx}=b("path").win32;hx.exports=i=>{let e="",t=cx(i);for(;jN(i)||t.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":t.root;i=i.slice(r.length),e+=r,t=cx(i)}return[e,i]}});var lx=S((hZ,ux)=>{"use strict";y();ux.exports=(i,e,t)=>(i&=4095,t&&(i=(i|384)&-19),e&&(i&256&&(i|=64),i&32&&(i|=8),i&4&&(i|=1)),i)});var Xm=S((dZ,Cx)=>{"use strict";y();var{Minipass:Ex}=$h(),Sx=Qh(),vx=Un(),Zt=b("fs"),fx=b("path"),Yt=Nn(),$N=qn(),bx=(i,e)=>e?(i=Yt(i).replace(/^\.(\/|$)/,""),$N(e)+"/"+i):Yt(i),zN=16*1024*1024,dx=Symbol("process"),px=Symbol("file"),mx=Symbol("directory"),Um=Symbol("symlink"),gx=Symbol("hardlink"),Ba=Symbol("header"),iu=Symbol("read"),qm=Symbol("lstat"),ru=Symbol("onlstat"),jm=Symbol("onread"),$m=Symbol("onreadlink"),zm=Symbol("openfile"),Gm=Symbol("onopenfile"),Fr=Symbol("close"),su=Symbol("mode"),Hm=Symbol("awaitDrain"),Mm=Symbol("ondrain"),Qt=Symbol("prefix"),yx=Symbol("hadError"),wx=eu(),GN=Pm(),xx=Nm(),Dx=lx(),nu=wx(class extends Ex{constructor(e,t){if(t=t||{},super(t),typeof e!="string")throw new TypeError("path is required");this.path=Yt(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||zN,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=Yt(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?Yt(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let r=!1;if(!this.preservePaths){let[s,n]=xx(this.path);s&&(this.path=n,r=s)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=GN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Yt(t.absolute||fx.resolve(this.cwd,e)),this.path===""&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path}),this.statCache.has(this.absolute)?this[ru](this.statCache.get(this.absolute)):this[qm]()}emit(e,...t){return e==="error"&&(this[yx]=!0),super.emit(e,...t)}[qm](){Zt.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[ru](t)})}[ru](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=JN(e),this.emit("stat",e),this[dx]()}[dx](){switch(this.type){case"File":return this[px]();case"Directory":return this[mx]();case"SymbolicLink":return this[Um]();default:return this.end()}}[su](e){return Dx(e,this.type==="Directory",this.portable)}[Qt](e){return bx(e,this.prefix)}[Ba](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new vx({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this[su](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&&super.write(new Sx({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.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()),super.write(this.header.block)}[mx](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ba](),this.end()}[Um](){Zt.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[$m](t)})}[$m](e){this.linkpath=Yt(e),this[Ba](),this.end()}[gx](e){this.type="Link",this.linkpath=Yt(fx.relative(this.cwd,e)),this.stat.size=0,this[Ba](),this.end()}[px](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[gx](t)}this.linkCache.set(e,this.absolute)}if(this[Ba](),this.stat.size===0)return this.end();this[zm]()}[zm](){Zt.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Gm](t)})}[Gm](e){if(this.fd=e,this[yx])return this[Fr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[iu]()}[iu](){let{fd:e,buf:t,offset:r,length:s,pos:n}=this;Zt.read(e,t,r,s,n,(o,a)=>{if(o)return this[Fr](()=>this.emit("error",o));this[jm](a)})}[Fr](e){Zt.close(this.fd,e)}[jm](e){if(e<=0&&this.remain>0){let s=new Error("encountered unexpected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Fr](()=>this.emit("error",s))}if(e>this.remain){let s=new Error("did not encounter expected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Fr](()=>this.emit("error",s))}if(e===this.remain)for(let s=e;s<this.length&&e<this.blockRemain;s++)this.buf[s+this.offset]=0,e++,this.remain++;let t=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(t)?this[Mm]():this[Hm](()=>this[Mm]())}[Hm](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let t=new Error("writing more data than expected");return t.path=this.absolute,this.emit("error",t)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Mm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Fr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[iu]()}}),Jm=class extends nu{[qm](){this[ru](Zt.lstatSync(this.absolute))}[Um](){this[$m](Zt.readlinkSync(this.absolute))}[zm](){this[Gm](Zt.openSync(this.absolute,"r"))}[iu](){let e=!0;try{let{fd:t,buf:r,offset:s,length:n,pos:o}=this,a=Zt.readSync(t,r,s,n,o);this[jm](a),e=!1}finally{if(e)try{this[Fr](()=>{})}catch{}}}[Hm](e){e()}[Fr](e){Zt.closeSync(this.fd),e()}},HN=wx(class extends Ex{constructor(e,t){t=t||{},super(t),this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=Yt(e.path),this.mode=this[su](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Yt(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let r=!1;if(!this.preservePaths){let[s,n]=xx(this.path);s&&(this.path=n,r=s)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new vx({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path}),this.header.encode()&&!this.noPax&&super.write(new Sx({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Qt](e){return bx(e,this.prefix)}[su](e){return Dx(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});nu.Sync=Jm;nu.Tar=HN;var JN=i=>i.isFile()?"File":i.isDirectory()?"Directory":i.isSymbolicLink()?"SymbolicLink":"Unsupported";Cx.exports=nu});var _x=S((mZ,Ax)=>{"use strict";y();Ax.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Vm=S((yZ,Tx)=>{"use strict";y();Tx.exports=z;z.Node=Cs;z.create=z;function z(i){var e=this;if(e instanceof z||(e=new z),e.tail=null,e.head=null,e.length=0,i&&typeof i.forEach=="function")i.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var e=i.next,t=i.prev;return e&&(e.prev=t),t&&(t.next=e),i===this.head&&(this.head=e),i===this.tail&&(this.tail=t),i.list.length--,i.next=null,i.prev=null,i.list=null,e};z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var e=this.head;i.list=this,i.next=e,e&&(e.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var e=this.tail;i.list=this,i.prev=e,e&&(e.next=i),this.tail=i,this.head||(this.head=i),this.length++}};z.prototype.push=function(){for(var i=0,e=arguments.length;i<e;i++)VN(this,arguments[i]);return this.length};z.prototype.unshift=function(){for(var i=0,e=arguments.length;i<e;i++)WN(this,arguments[i]);return this.length};z.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};z.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};z.prototype.forEach=function(i,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)i.call(e,t.value,r,this),t=t.next};z.prototype.forEachReverse=function(i,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)i.call(e,t.value,r,this),t=t.prev};z.prototype.get=function(i){for(var e=0,t=this.head;t!==null&&e<i;e++)t=t.next;if(e===i&&t!==null)return t.value};z.prototype.getReverse=function(i){for(var e=0,t=this.tail;t!==null&&e<i;e++)t=t.prev;if(e===i&&t!==null)return t.value};z.prototype.map=function(i,e){e=e||this;for(var t=new z,r=this.head;r!==null;)t.push(i.call(e,r.value,this)),r=r.next;return t};z.prototype.mapReverse=function(i,e){e=e||this;for(var t=new z,r=this.tail;r!==null;)t.push(i.call(e,r.value,this)),r=r.prev;return t};z.prototype.reduce=function(i,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;r!==null;s++)t=i(t,r.value,s),r=r.next;return t};z.prototype.reduceReverse=function(i,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;r!==null;s--)t=i(t,r.value,s),r=r.prev;return t};z.prototype.toArray=function(){for(var i=new Array(this.length),e=0,t=this.head;t!==null;e++)i[e]=t.value,t=t.next;return i};z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),e=0,t=this.tail;t!==null;e++)i[e]=t.value,t=t.prev;return i};z.prototype.slice=function(i,e){e=e||this.length,e<0&&(e+=this.length),i=i||0,i<0&&(i+=this.length);var t=new z;if(e<i||e<0)return t;i<0&&(i=0),e>this.length&&(e=this.length);for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;for(;s!==null&&r<e;r++,s=s.next)t.push(s.value);return t};z.prototype.sliceReverse=function(i,e){e=e||this.length,e<0&&(e+=this.length),i=i||0,i<0&&(i+=this.length);var t=new z;if(e<i||e<0)return t;i<0&&(i=0),e>this.length&&(e=this.length);for(var r=this.length,s=this.tail;s!==null&&r>e;r--)s=s.prev;for(;s!==null&&r>i;r--,s=s.prev)t.push(s.value);return t};z.prototype.splice=function(i,e,...t){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;for(var n=[],r=0;s&&r<e;r++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var r=0;r<t.length;r++)s=XN(this,s,t[r]);return n};z.prototype.reverse=function(){for(var i=this.head,e=this.tail,t=i;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=i,this};function XN(i,e,t){var r=e===i.head?new Cs(t,null,e,i):new Cs(t,e,e.next,i);return r.next===null&&(i.tail=r),r.prev===null&&(i.head=r),i.length++,r}function VN(i,e){i.tail=new Cs(e,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function WN(i,e){i.head=new Cs(e,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Cs(i,e,t,r){if(!(this instanceof Cs))return new Cs(i,e,t,r);this.list=r,this.value=i,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{_x()(z)}catch{}});var pu=S((vZ,Px)=>{"use strict";y();var fu=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:KN}=$h(),kx=Ra(),YN=Yh(),r0=Xm(),ZN=r0.Sync,QN=r0.Tar,e5=Vm(),Fx=Buffer.alloc(1024),cu=Symbol("onStat"),ou=Symbol("ended"),ei=Symbol("queue"),jn=Symbol("current"),As=Symbol("process"),au=Symbol("processing"),Rx=Symbol("processJob"),ti=Symbol("jobs"),Wm=Symbol("jobDone"),hu=Symbol("addFSEntry"),Ox=Symbol("addTarEntry"),Qm=Symbol("stat"),e0=Symbol("readdir"),uu=Symbol("onreaddir"),lu=Symbol("pipe"),Bx=Symbol("entry"),Km=Symbol("entryOpt"),t0=Symbol("writeEntryClass"),Ix=Symbol("write"),Ym=Symbol("ondrain"),du=b("fs"),Lx=b("path"),t5=eu(),Zm=Nn(),s0=t5(class extends KN{constructor(e){if(super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Zm(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[t0]=r0,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");e.gzip&&(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new kx.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new kx.BrotliCompress(e.brotli)),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[Ym]()),this.on("resume",t=>this.zip.resume())}else this.on("drain",this[Ym]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[ei]=new e5,this[ti]=0,this.jobs=+e.jobs||4,this[au]=!1,this[ou]=!1}[Ix](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ou]=!0,this[As](),this}write(e){if(this[ou])throw new Error("write after end");return e instanceof YN?this[Ox](e):this[hu](e),this.flowing}[Ox](e){let t=Zm(Lx.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let r=new fu(e.path,t,!1);r.entry=new QN(e,this[Km](r)),r.entry.on("end",s=>this[Wm](r)),this[ti]+=1,this[ei].push(r)}this[As]()}[hu](e){let t=Zm(Lx.resolve(this.cwd,e));this[ei].push(new fu(e,t)),this[As]()}[Qm](e){e.pending=!0,this[ti]+=1;let t=this.follow?"stat":"lstat";du[t](e.absolute,(r,s)=>{e.pending=!1,this[ti]-=1,r?this.emit("error",r):this[cu](e,s)})}[cu](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[As]()}[e0](e){e.pending=!0,this[ti]+=1,du.readdir(e.absolute,(t,r)=>{if(e.pending=!1,this[ti]-=1,t)return this.emit("error",t);this[uu](e,r)})}[uu](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[As]()}[As](){if(!this[au]){this[au]=!0;for(let e=this[ei].head;e!==null&&this[ti]<this.jobs;e=e.next)if(this[Rx](e.value),e.value.ignore){let t=e.next;this[ei].removeNode(e),e.next=t}this[au]=!1,this[ou]&&!this[ei].length&&this[ti]===0&&(this.zip?this.zip.end(Fx):(super.write(Fx),super.end()))}}get[jn](){return this[ei]&&this[ei].head&&this[ei].head.value}[Wm](e){this[ei].shift(),this[ti]-=1,this[As]()}[Rx](e){if(!e.pending){if(e.entry){e===this[jn]&&!e.piped&&this[lu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[cu](e,this.statCache.get(e.absolute)):this[Qm](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[uu](e,this.readdirCache.get(e.absolute)):this[e0](e),!e.readdir))){if(e.entry=this[Bx](e),!e.entry){e.ignore=!0;return}e===this[jn]&&!e.piped&&this[lu](e)}}}[Km](e){return{onwarn:(t,r,s)=>this.warn(t,r,s),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Bx](e){this[ti]+=1;try{return new this[t0](e.path,this[Km](e)).on("end",()=>this[Wm](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[Ym](){this[jn]&&this[jn].entry&&this[jn].entry.resume()}[lu](e){e.piped=!0,e.readdir&&e.readdir.forEach(s=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[hu](o+s)});let t=e.entry,r=this.zip;r?t.on("data",s=>{r.write(s)||t.pause()}):t.on("data",s=>{super.write(s)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),i0=class extends s0{constructor(e){super(e),this[t0]=ZN}pause(){}resume(){}[Qm](e){let t=this.follow?"statSync":"lstatSync";this[cu](e,du[t](e.absolute))}[e0](e,t){this[uu](e,du.readdirSync(e.absolute))}[lu](e){let t=e.entry,r=this.zip;e.readdir&&e.readdir.forEach(s=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[hu](o+s)}),r?t.on("data",s=>{r.write(s)}):t.on("data",s=>{super[Ix](s)})}};s0.Sync=i0;Px.exports=s0});var Wn=S(Ia=>{"use strict";y();var i5=Ar(),r5=b("events").EventEmitter,Ye=b("fs"),a0=Ye.writev;if(!a0){let i=process.binding("fs"),e=i.FSReqWrap||i.FSReqCallback;a0=(t,r,s,n)=>{let o=(c,l)=>n(c,l,r),a=new e;a.oncomplete=o,i.writeBuffers(t,r,s,a)}}var Xn=Symbol("_autoClose"),It=Symbol("_close"),La=Symbol("_ended"),X=Symbol("_fd"),Nx=Symbol("_finished"),Or=Symbol("_flags"),n0=Symbol("_flush"),c0=Symbol("_handleChunk"),h0=Symbol("_makeBuf"),Su=Symbol("_mode"),mu=Symbol("_needDrain"),Hn=Symbol("_onerror"),Vn=Symbol("_onopen"),o0=Symbol("_onread"),zn=Symbol("_onwrite"),Br=Symbol("_open"),Ri=Symbol("_path"),_s=Symbol("_pos"),ii=Symbol("_queue"),Gn=Symbol("_read"),Mx=Symbol("_readSize"),Rr=Symbol("_reading"),gu=Symbol("_remain"),Ux=Symbol("_size"),yu=Symbol("_write"),$n=Symbol("_writing"),Eu=Symbol("_defaultFlag"),Jn=Symbol("_errored"),vu=class extends i5{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Jn]=!1,this[X]=typeof t.fd=="number"?t.fd:null,this[Ri]=e,this[Mx]=t.readSize||16*1024*1024,this[Rr]=!1,this[Ux]=typeof t.size=="number"?t.size:1/0,this[gu]=this[Ux],this[Xn]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[X]=="number"?this[Gn]():this[Br]()}get fd(){return this[X]}get path(){return this[Ri]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Br](){Ye.open(this[Ri],"r",(e,t)=>this[Vn](e,t))}[Vn](e,t){e?this[Hn](e):(this[X]=t,this.emit("open",t),this[Gn]())}[h0](){return Buffer.allocUnsafe(Math.min(this[Mx],this[gu]))}[Gn](){if(!this[Rr]){this[Rr]=!0;let e=this[h0]();if(e.length===0)return process.nextTick(()=>this[o0](null,0,e));Ye.read(this[X],e,0,e.length,null,(t,r,s)=>this[o0](t,r,s))}}[o0](e,t,r){this[Rr]=!1,e?this[Hn](e):this[c0](t,r)&&this[Gn]()}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[Hn](e){this[Rr]=!0,this[It](),this.emit("error",e)}[c0](e,t){let r=!1;return this[gu]-=e,e>0&&(r=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[gu]<=0)&&(r=!1,this[It](),super.end()),r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[X]=="number"&&this[Gn]();break;case"error":return this[Jn]?void 0:(this[Jn]=!0,super.emit(e,t));default:return super.emit(e,t)}}},u0=class extends vu{[Br](){let e=!0;try{this[Vn](null,Ye.openSync(this[Ri],"r")),e=!1}finally{e&&this[It]()}}[Gn](){let e=!0;try{if(!this[Rr]){this[Rr]=!0;do{let t=this[h0](),r=t.length===0?0:Ye.readSync(this[X],t,0,t.length,null);if(!this[c0](r,t))break}while(!0);this[Rr]=!1}e=!1}finally{e&&this[It]()}}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.closeSync(e),this.emit("close")}}},bu=class extends r5{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[Jn]=!1,this[$n]=!1,this[La]=!1,this[mu]=!1,this[ii]=[],this[Ri]=e,this[X]=typeof t.fd=="number"?t.fd:null,this[Su]=t.mode===void 0?438:t.mode,this[_s]=typeof t.start=="number"?t.start:null,this[Xn]=typeof t.autoClose=="boolean"?t.autoClose:!0;let r=this[_s]!==null?"r+":"w";this[Eu]=t.flags===void 0,this[Or]=this[Eu]?r:t.flags,this[X]===null&&this[Br]()}emit(e,t){if(e==="error"){if(this[Jn])return;this[Jn]=!0}return super.emit(e,t)}get fd(){return this[X]}get path(){return this[Ri]}[Hn](e){this[It](),this[$n]=!0,this.emit("error",e)}[Br](){Ye.open(this[Ri],this[Or],this[Su],(e,t)=>this[Vn](e,t))}[Vn](e,t){this[Eu]&&this[Or]==="r+"&&e&&e.code==="ENOENT"?(this[Or]="w",this[Br]()):e?this[Hn](e):(this[X]=t,this.emit("open",t),this[n0]())}end(e,t){return e&&this.write(e,t),this[La]=!0,!this[$n]&&!this[ii].length&&typeof this[X]=="number"&&this[zn](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[La]?(this.emit("error",new Error("write() after end()")),!1):this[X]===null||this[$n]||this[ii].length?(this[ii].push(e),this[mu]=!0,!1):(this[$n]=!0,this[yu](e),!0)}[yu](e){Ye.write(this[X],e,0,e.length,this[_s],(t,r)=>this[zn](t,r))}[zn](e,t){e?this[Hn](e):(this[_s]!==null&&(this[_s]+=t),this[ii].length?this[n0]():(this[$n]=!1,this[La]&&!this[Nx]?(this[Nx]=!0,this[It](),this.emit("finish")):this[mu]&&(this[mu]=!1,this.emit("drain"))))}[n0](){if(this[ii].length===0)this[La]&&this[zn](null,0);else if(this[ii].length===1)this[yu](this[ii].pop());else{let e=this[ii];this[ii]=[],a0(this[X],e,this[_s],(t,r)=>this[zn](t,r))}}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},l0=class extends bu{[Br](){let e;if(this[Eu]&&this[Or]==="r+")try{e=Ye.openSync(this[Ri],this[Or],this[Su])}catch(t){if(t.code==="ENOENT")return this[Or]="w",this[Br]();throw t}else e=Ye.openSync(this[Ri],this[Or],this[Su]);this[Vn](null,e)}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.closeSync(e),this.emit("close")}}[yu](e){let t=!0;try{this[zn](null,Ye.writeSync(this[X],e,0,e.length,this[_s])),t=!1}finally{if(t)try{this[It]()}catch{}}}};Ia.ReadStream=vu;Ia.ReadStreamSync=u0;Ia.WriteStream=bu;Ia.WriteStreamSync=l0});var Tu=S((CZ,Wx)=>{"use strict";y();var s5=eu(),qx=Un(),n5=b("events"),o5=Vm(),a5=1024*1024,c5=Yh(),jx=Qh(),$x=Ra(),{nextTick:h5}=b("process"),f0=Buffer.from([31,139]),wt=Symbol("state"),Ts=Symbol("writeEntry"),Oi=Symbol("readEntry"),d0=Symbol("nextEntry"),zx=Symbol("processEntry"),xt=Symbol("extendedHeader"),Pa=Symbol("globalExtendedHeader"),Lr=Symbol("meta"),Gx=Symbol("emitMeta"),Z=Symbol("buffer"),Bi=Symbol("queue"),Ir=Symbol("ended"),Hx=Symbol("emittedEnd"),ks=Symbol("emit"),we=Symbol("unzip"),wu=Symbol("consumeChunk"),xu=Symbol("consumeChunkSub"),p0=Symbol("consumeBody"),Jx=Symbol("consumeMeta"),Xx=Symbol("consumeHeader"),Du=Symbol("consuming"),m0=Symbol("bufferConcat"),g0=Symbol("maybeEnd"),Na=Symbol("writing"),Pr=Symbol("aborted"),Cu=Symbol("onDone"),Fs=Symbol("sawValidEntry"),Au=Symbol("sawNullBlock"),_u=Symbol("sawEOF"),Vx=Symbol("closeStream"),u5=i=>!0;Wx.exports=s5(class extends n5{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Fs]=null,this.on(Cu,r=>{(this[wt]==="begin"||this[Fs]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Cu,e.ondone):this.on(Cu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||a5,this.filter=typeof e.filter=="function"?e.filter:u5;let t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=!e.gzip&&e.brotli!==void 0?e.brotli:t?void 0:!1,this.writable=!0,this.readable=!1,this[Bi]=new o5,this[Z]=null,this[Oi]=null,this[Ts]=null,this[wt]="begin",this[Lr]="",this[xt]=null,this[Pa]=null,this[Ir]=!1,this[we]=null,this[Pr]=!1,this[Au]=!1,this[_u]=!1,this.on("end",()=>this[Vx]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Xx](e,t){this[Fs]===null&&(this[Fs]=!1);let r;try{r=new qx(e,t,this[xt],this[Pa])}catch(s){return this.warn("TAR_ENTRY_INVALID",s)}if(r.nullBlock)this[Au]?(this[_u]=!0,this[wt]==="begin"&&(this[wt]="header"),this[ks]("eof")):(this[Au]=!0,this[ks]("nullBlock"));else if(this[Au]=!1,!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{let s=r.type;if(/^(Symbolic)?Link$/.test(s)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(s)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{let n=this[Ts]=new c5(r,this[xt],this[Pa]);if(!this[Fs])if(n.remain){let o=()=>{n.invalid||(this[Fs]=!0)};n.on("end",o)}else this[Fs]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[ks]("ignoredEntry",n),this[wt]="ignore",n.resume()):n.size>0&&(this[Lr]="",n.on("data",o=>this[Lr]+=o),this[wt]="meta"):(this[xt]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[ks]("ignoredEntry",n),this[wt]=n.remain?"ignore":"header",n.resume()):(n.remain?this[wt]="body":(this[wt]="header",n.end()),this[Oi]?this[Bi].push(n):(this[Bi].push(n),this[d0]())))}}}[Vx](){h5(()=>this.emit("close"))}[zx](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Oi]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",r=>this[d0]()),t=!1)):(this[Oi]=null,t=!1),t}[d0](){do;while(this[zx](this[Bi].shift()));if(!this[Bi].length){let e=this[Oi];!e||e.flowing||e.size===e.remain?this[Na]||this.emit("drain"):e.once("drain",r=>this.emit("drain"))}}[p0](e,t){let r=this[Ts],s=r.blockRemain,n=s>=e.length&&t===0?e:e.slice(t,t+s);return r.write(n),r.blockRemain||(this[wt]="header",this[Ts]=null,r.end()),n.length}[Jx](e,t){let r=this[Ts],s=this[p0](e,t);return this[Ts]||this[Gx](r),s}[ks](e,t,r){!this[Bi].length&&!this[Oi]?this.emit(e,t,r):this[Bi].push([e,t,r])}[Gx](e){switch(this[ks]("meta",this[Lr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[xt]=jx.parse(this[Lr],this[xt],!1);break;case"GlobalExtendedHeader":this[Pa]=jx.parse(this[Lr],this[Pa],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[xt]=this[xt]||Object.create(null),this[xt].path=this[Lr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[xt]=this[xt]||Object.create(null),this[xt].linkpath=this[Lr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Pr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Pr])return;if((this[we]===null||this.brotli===void 0&&this[we]===!1)&&e){if(this[Z]&&(e=Buffer.concat([this[Z],e]),this[Z]=null),e.length<f0.length)return this[Z]=e,!0;for(let n=0;this[we]===null&&n<f0.length;n++)e[n]!==f0[n]&&(this[we]=!1);let s=this.brotli===void 0;if(this[we]===!1&&s)if(e.length<512)if(this[Ir])this.brotli=!0;else return this[Z]=e,!0;else try{new qx(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[we]===null||this[we]===!1&&this.brotli){let n=this[Ir];this[Ir]=!1,this[we]=this[we]===null?new $x.Unzip:new $x.BrotliDecompress,this[we].on("data",a=>this[wu](a)),this[we].on("error",a=>this.abort(a)),this[we].on("end",a=>{this[Ir]=!0,this[wu]()}),this[Na]=!0;let o=this[we][n?"end":"write"](e);return this[Na]=!1,o}}this[Na]=!0,this[we]?this[we].write(e):this[wu](e),this[Na]=!1;let r=this[Bi].length?!1:this[Oi]?this[Oi].flowing:!0;return!r&&!this[Bi].length&&this[Oi].once("drain",s=>this.emit("drain")),r}[m0](e){e&&!this[Pr]&&(this[Z]=this[Z]?Buffer.concat([this[Z],e]):e)}[g0](){if(this[Ir]&&!this[Hx]&&!this[Pr]&&!this[Du]){this[Hx]=!0;let e=this[Ts];if(e&&e.blockRemain){let t=this[Z]?this[Z].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Z]&&e.write(this[Z]),e.end()}this[ks](Cu)}}[wu](e){if(this[Du])this[m0](e);else if(!e&&!this[Z])this[g0]();else{if(this[Du]=!0,this[Z]){this[m0](e);let t=this[Z];this[Z]=null,this[xu](t)}else this[xu](e);for(;this[Z]&&this[Z].length>=512&&!this[Pr]&&!this[_u];){let t=this[Z];this[Z]=null,this[xu](t)}this[Du]=!1}(!this[Z]||this[Ir])&&this[g0]()}[xu](e){let t=0,r=e.length;for(;t+512<=r&&!this[Pr]&&!this[_u];)switch(this[wt]){case"begin":case"header":this[Xx](e,t),t+=512;break;case"ignore":case"body":t+=this[p0](e,t);break;case"meta":t+=this[Jx](e,t);break;default:throw new Error("invalid state: "+this[wt])}t<r&&(this[Z]?this[Z]=Buffer.concat([e.slice(t),this[Z]]):this[Z]=e.slice(t))}end(e){this[Pr]||(this[we]?this[we].end(e):(this[Ir]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var ku=S((_Z,Qx)=>{"use strict";y();var l5=On(),Yx=Tu(),Kn=b("fs"),f5=Wn(),Kx=b("path"),y0=qn();Qx.exports=(i,e,t)=>{typeof i=="function"?(t=i,e=null,i={}):Array.isArray(i)&&(e=i,i={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let r=l5(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&p5(r,e),r.noResume||d5(r),r.file&&r.sync?m5(r):r.file?g5(r,t):Zx(r)};var d5=i=>{let e=i.onentry;i.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},p5=(i,e)=>{let t=new Map(e.map(n=>[y0(n),!0])),r=i.filter,s=(n,o)=>{let a=o||Kx.parse(n).root||".",c=n===a?!1:t.has(n)?t.get(n):s(Kx.dirname(n),a);return t.set(n,c),c};i.filter=r?(n,o)=>r(n,o)&&s(y0(n)):n=>s(y0(n))},m5=i=>{let e=Zx(i),t=i.file,r=!0,s;try{let n=Kn.statSync(t),o=i.maxReadSize||16*1024*1024;if(n.size<o)e.end(Kn.readFileSync(t));else{let a=0,c=Buffer.allocUnsafe(o);for(s=Kn.openSync(t,"r");a<n.size;){let l=Kn.readSync(s,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}r=!1}finally{if(r&&s)try{Kn.closeSync(s)}catch{}}},g5=(i,e)=>{let t=new Yx(i),r=i.maxReadSize||16*1024*1024,s=i.file,n=new Promise((o,a)=>{t.on("error",a),t.on("end",o),Kn.stat(s,(c,l)=>{if(c)a(c);else{let f=new f5.ReadStream(s,{readSize:r,size:l.size});f.on("error",a),f.pipe(t)}})});return e?n.then(e,e):n},Zx=i=>new Yx(i)});var nD=S((kZ,sD)=>{"use strict";y();var y5=On(),Fu=pu(),eD=Wn(),tD=ku(),iD=b("path");sD.exports=(i,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(i)&&(e=i,i={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let r=y5(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return r.file&&r.sync?E5(r,e):r.file?S5(r,e,t):r.sync?v5(r,e):b5(r,e)};var E5=(i,e)=>{let t=new Fu.Sync(i),r=new eD.WriteStreamSync(i.file,{mode:i.mode||438});t.pipe(r),rD(t,e)},S5=(i,e,t)=>{let r=new Fu(i),s=new eD.WriteStream(i.file,{mode:i.mode||438});r.pipe(s);let n=new Promise((o,a)=>{s.on("error",a),s.on("close",o),r.on("error",a)});return E0(r,e),t?n.then(t,t):n},rD=(i,e)=>{e.forEach(t=>{t.charAt(0)==="@"?tD({file:iD.resolve(i.cwd,t.slice(1)),sync:!0,noResume:!0,onentry:r=>i.add(r)}):i.add(t)}),i.end()},E0=(i,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return tD({file:iD.resolve(i.cwd,t.slice(1)),noResume:!0,onentry:r=>i.add(r)}).then(r=>E0(i,e));i.add(t)}i.end()},v5=(i,e)=>{let t=new Fu.Sync(i);return rD(t,e),t},b5=(i,e)=>{let t=new Fu(i);return E0(t,e),t}});var S0=S((RZ,fD)=>{"use strict";y();var w5=On(),oD=pu(),ft=b("fs"),aD=Wn(),cD=ku(),hD=b("path"),uD=Un();fD.exports=(i,e,t)=>{let r=w5(i);if(!r.file)throw new TypeError("file is required");if(r.gzip||r.brotli||r.file.endsWith(".br")||r.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),r.sync?x5(r,e):C5(r,e,t)};var x5=(i,e)=>{let t=new oD.Sync(i),r=!0,s,n;try{try{s=ft.openSync(i.file,"r+")}catch(c){if(c.code==="ENOENT")s=ft.openSync(i.file,"w+");else throw c}let o=ft.fstatSync(s),a=Buffer.alloc(512);e:for(n=0;n<o.size;n+=512){for(let f=0,m=0;f<512;f+=m){if(m=ft.readSync(s,a,f,a.length-f,n+f),n===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!m)break e}let c=new uD(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(n+l+512>o.size)break;n+=l,i.mtimeCache&&i.mtimeCache.set(c.path,c.mtime)}r=!1,D5(i,t,n,s,e)}finally{if(r)try{ft.closeSync(s)}catch{}}},D5=(i,e,t,r,s)=>{let n=new aD.WriteStreamSync(i.file,{fd:r,start:t});e.pipe(n),A5(e,s)},C5=(i,e,t)=>{e=Array.from(e);let r=new oD(i),s=(o,a,c)=>{let l=(u,p)=>{u?ft.close(o,g=>c(u)):c(null,p)},f=0;if(a===0)return l(null,0);let m=0,d=Buffer.alloc(512),h=(u,p)=>{if(u)return l(u);if(m+=p,m<512&&p)return ft.read(o,d,m,d.length-m,f+m,h);if(f===0&&d[0]===31&&d[1]===139)return l(new Error("cannot append to compressed archives"));if(m<512)return l(null,f);let g=new uD(d);if(!g.cksumValid)return l(null,f);let E=512*Math.ceil(g.size/512);if(f+E+512>a||(f+=E+512,f>=a))return l(null,f);i.mtimeCache&&i.mtimeCache.set(g.path,g.mtime),m=0,ft.read(o,d,0,512,f,h)};ft.read(o,d,0,512,f,h)},n=new Promise((o,a)=>{r.on("error",a);let c="r+",l=(f,m)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",ft.open(i.file,c,l);if(f)return a(f);ft.fstat(m,(d,h)=>{if(d)return ft.close(m,()=>a(d));s(m,h.size,(u,p)=>{if(u)return a(u);let g=new aD.WriteStream(i.file,{fd:m,start:p});r.pipe(g),g.on("error",a),g.on("close",o),lD(r,e)})})};ft.open(i.file,c,l)});return t?n.then(t,t):n},A5=(i,e)=>{e.forEach(t=>{t.charAt(0)==="@"?cD({file:hD.resolve(i.cwd,t.slice(1)),sync:!0,noResume:!0,onentry:r=>i.add(r)}):i.add(t)}),i.end()},lD=(i,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return cD({file:hD.resolve(i.cwd,t.slice(1)),noResume:!0,onentry:r=>i.add(r)}).then(r=>lD(i,e));i.add(t)}i.end()}});var pD=S((BZ,dD)=>{"use strict";y();var _5=On(),T5=S0();dD.exports=(i,e,t)=>{let r=_5(i);if(!r.file)throw new TypeError("file is required");if(r.gzip||r.brotli||r.file.endsWith(".br")||r.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),k5(r),T5(r,e,t)};var k5=i=>{let e=i.filter;i.mtimeCache||(i.mtimeCache=new Map),i.filter=e?(t,r)=>e(t,r)&&!(i.mtimeCache.get(t)>r.mtime):(t,r)=>!(i.mtimeCache.get(t)>r.mtime)}});var yD=S((IZ,gD)=>{"use strict";y();var{promisify:mD}=b("util"),Nr=b("fs"),F5=i=>{if(!i)i={mode:511,fs:Nr};else if(typeof i=="object")i={mode:511,fs:Nr,...i};else if(typeof i=="number")i={mode:i,fs:Nr};else if(typeof i=="string")i={mode:parseInt(i,8),fs:Nr};else throw new TypeError("invalid options argument");return i.mkdir=i.mkdir||i.fs.mkdir||Nr.mkdir,i.mkdirAsync=mD(i.mkdir),i.stat=i.stat||i.fs.stat||Nr.stat,i.statAsync=mD(i.stat),i.statSync=i.statSync||i.fs.statSync||Nr.statSync,i.mkdirSync=i.mkdirSync||i.fs.mkdirSync||Nr.mkdirSync,i};gD.exports=F5});var SD=S((NZ,ED)=>{"use strict";y();var R5=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:O5,parse:B5}=b("path"),L5=i=>{if(/\0/.test(i))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:i,code:"ERR_INVALID_ARG_VALUE"});if(i=O5(i),R5==="win32"){let e=/[*|"<>?:]/,{root:t}=B5(i);if(e.test(i.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:i,code:"EINVAL"})}return i};ED.exports=L5});var DD=S((UZ,xD)=>{"use strict";y();var{dirname:vD}=b("path"),bD=(i,e,t=void 0)=>t===e?Promise.resolve():i.statAsync(e).then(r=>r.isDirectory()?t:void 0,r=>r.code==="ENOENT"?bD(i,vD(e),e):void 0),wD=(i,e,t=void 0)=>{if(t!==e)try{return i.statSync(e).isDirectory()?t:void 0}catch(r){return r.code==="ENOENT"?wD(i,vD(e),e):void 0}};xD.exports={findMade:bD,findMadeSync:wD}});var w0=S((jZ,AD)=>{"use strict";y();var{dirname:CD}=b("path"),v0=(i,e,t)=>{e.recursive=!1;let r=CD(i);return r===i?e.mkdirAsync(i,e).catch(s=>{if(s.code!=="EISDIR")throw s}):e.mkdirAsync(i,e).then(()=>t||i,s=>{if(s.code==="ENOENT")return v0(r,e).then(n=>v0(i,e,n));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;return e.statAsync(i).then(n=>{if(n.isDirectory())return t;throw s},()=>{throw s})})},b0=(i,e,t)=>{let r=CD(i);if(e.recursive=!1,r===i)try{return e.mkdirSync(i,e)}catch(s){if(s.code!=="EISDIR")throw s;return}try{return e.mkdirSync(i,e),t||i}catch(s){if(s.code==="ENOENT")return b0(i,e,b0(r,e,t));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;try{if(!e.statSync(i).isDirectory())throw s}catch{throw s}}};AD.exports={mkdirpManual:v0,mkdirpManualSync:b0}});var kD=S((zZ,TD)=>{"use strict";y();var{dirname:_D}=b("path"),{findMade:I5,findMadeSync:P5}=DD(),{mkdirpManual:N5,mkdirpManualSync:M5}=w0(),U5=(i,e)=>(e.recursive=!0,_D(i)===i?e.mkdirAsync(i,e):I5(e,i).then(r=>e.mkdirAsync(i,e).then(()=>r).catch(s=>{if(s.code==="ENOENT")return N5(i,e);throw s}))),q5=(i,e)=>{if(e.recursive=!0,_D(i)===i)return e.mkdirSync(i,e);let r=P5(e,i);try{return e.mkdirSync(i,e),r}catch(s){if(s.code==="ENOENT")return M5(i,e);throw s}};TD.exports={mkdirpNative:U5,mkdirpNativeSync:q5}});var BD=S((HZ,OD)=>{"use strict";y();var FD=b("fs"),j5=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,x0=j5.replace(/^v/,"").split("."),RD=+x0[0]>10||+x0[0]==10&&+x0[1]>=12,$5=RD?i=>i.mkdir===FD.mkdir:()=>!1,z5=RD?i=>i.mkdirSync===FD.mkdirSync:()=>!1;OD.exports={useNative:$5,useNativeSync:z5}});var D0=S((XZ,MD)=>{"use strict";y();var Yn=yD(),Zn=SD(),{mkdirpNative:LD,mkdirpNativeSync:ID}=kD(),{mkdirpManual:PD,mkdirpManualSync:ND}=w0(),{useNative:G5,useNativeSync:H5}=BD(),Qn=(i,e)=>(i=Zn(i),e=Yn(e),G5(e)?LD(i,e):PD(i,e)),J5=(i,e)=>(i=Zn(i),e=Yn(e),H5(e)?ID(i,e):ND(i,e));Qn.sync=J5;Qn.native=(i,e)=>LD(Zn(i),Yn(e));Qn.manual=(i,e)=>PD(Zn(i),Yn(e));Qn.nativeSync=(i,e)=>ID(Zn(i),Yn(e));Qn.manualSync=(i,e)=>ND(Zn(i),Yn(e));MD.exports=Qn});var HD=S((WZ,GD)=>{"use strict";y();var Dt=b("fs"),Rs=b("path"),X5=Dt.lchown?"lchown":"chown",V5=Dt.lchownSync?"lchownSync":"chownSync",qD=Dt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),UD=(i,e,t)=>{try{return Dt[V5](i,e,t)}catch(r){if(r.code!=="ENOENT")throw r}},W5=(i,e,t)=>{try{return Dt.chownSync(i,e,t)}catch(r){if(r.code!=="ENOENT")throw r}},K5=qD?(i,e,t,r)=>s=>{!s||s.code!=="EISDIR"?r(s):Dt.chown(i,e,t,r)}:(i,e,t,r)=>r,C0=qD?(i,e,t)=>{try{return UD(i,e,t)}catch(r){if(r.code!=="EISDIR")throw r;W5(i,e,t)}}:(i,e,t)=>UD(i,e,t),Y5=process.version,jD=(i,e,t)=>Dt.readdir(i,e,t),Z5=(i,e)=>Dt.readdirSync(i,e);/^v4\./.test(Y5)&&(jD=(i,e,t)=>Dt.readdir(i,t));var Ru=(i,e,t,r)=>{Dt[X5](i,e,t,K5(i,e,t,s=>{r(s&&s.code!=="ENOENT"?s:null)}))},$D=(i,e,t,r,s)=>{if(typeof e=="string")return Dt.lstat(Rs.resolve(i,e),(n,o)=>{if(n)return s(n.code!=="ENOENT"?n:null);o.name=e,$D(i,o,t,r,s)});if(e.isDirectory())A0(Rs.resolve(i,e.name),t,r,n=>{if(n)return s(n);let o=Rs.resolve(i,e.name);Ru(o,t,r,s)});else{let n=Rs.resolve(i,e.name);Ru(n,t,r,s)}},A0=(i,e,t,r)=>{jD(i,{withFileTypes:!0},(s,n)=>{if(s){if(s.code==="ENOENT")return r();if(s.code!=="ENOTDIR"&&s.code!=="ENOTSUP")return r(s)}if(s||!n.length)return Ru(i,e,t,r);let o=n.length,a=null,c=l=>{if(!a){if(l)return r(a=l);if(--o===0)return Ru(i,e,t,r)}};n.forEach(l=>$D(i,l,e,t,c))})},Q5=(i,e,t,r)=>{if(typeof e=="string")try{let s=Dt.lstatSync(Rs.resolve(i,e));s.name=e,e=s}catch(s){if(s.code==="ENOENT")return;throw s}e.isDirectory()&&zD(Rs.resolve(i,e.name),t,r),C0(Rs.resolve(i,e.name),t,r)},zD=(i,e,t)=>{let r;try{r=Z5(i,{withFileTypes:!0})}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR"||s.code==="ENOTSUP")return C0(i,e,t);throw s}return r&&r.length&&r.forEach(s=>Q5(i,s,e,t)),C0(i,e,t)};GD.exports=A0;A0.sync=zD});var WD=S((YZ,_0)=>{"use strict";y();var JD=D0(),Ct=b("fs"),Ou=b("path"),XD=HD(),Pt=Nn(),Bu=class extends Error{constructor(e,t){super("Cannot extract through symbolic link"),this.path=t,this.symlink=e}get name(){return"SylinkError"}},Lu=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'"),this.path=e,this.code=t}get name(){return"CwdError"}},Iu=(i,e)=>i.get(Pt(e)),Ma=(i,e,t)=>i.set(Pt(e),t),e3=(i,e)=>{Ct.stat(i,(t,r)=>{(t||!r.isDirectory())&&(t=new Lu(i,t&&t.code||"ENOTDIR")),e(t)})};_0.exports=(i,e,t)=>{i=Pt(i);let r=e.umask,s=e.mode|448,n=(s&r)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,f=e.unlink,m=e.cache,d=Pt(e.cwd),h=(g,E)=>{g?t(g):(Ma(m,i,!0),E&&c?XD(E,o,a,v=>h(v)):n?Ct.chmod(i,s,t):t())};if(m&&Iu(m,i)===!0)return h();if(i===d)return e3(i,h);if(l)return JD(i,{mode:s}).then(g=>h(null,g),h);let p=Pt(Ou.relative(d,i)).split("/");Pu(d,p,s,m,f,d,null,h)};var Pu=(i,e,t,r,s,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Pt(Ou.resolve(i+"/"+c));if(Iu(r,l))return Pu(l,e,t,r,s,n,o,a);Ct.mkdir(l,t,VD(l,e,t,r,s,n,o,a))},VD=(i,e,t,r,s,n,o,a)=>c=>{c?Ct.lstat(i,(l,f)=>{if(l)l.path=l.path&&Pt(l.path),a(l);else if(f.isDirectory())Pu(i,e,t,r,s,n,o,a);else if(s)Ct.unlink(i,m=>{if(m)return a(m);Ct.mkdir(i,t,VD(i,e,t,r,s,n,o,a))});else{if(f.isSymbolicLink())return a(new Bu(i,i+"/"+e.join("/")));a(c)}}):(o=o||i,Pu(i,e,t,r,s,n,o,a))},t3=i=>{let e=!1,t="ENOTDIR";try{e=Ct.statSync(i).isDirectory()}catch(r){t=r.code}finally{if(!e)throw new Lu(i,t)}};_0.exports.sync=(i,e)=>{i=Pt(i);let t=e.umask,r=e.mode|448,s=(r&t)!==0,n=e.uid,o=e.gid,a=typeof n=="number"&&typeof o=="number"&&(n!==e.processUid||o!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,m=Pt(e.cwd),d=g=>{Ma(f,i,!0),g&&a&&XD.sync(g,n,o),s&&Ct.chmodSync(i,r)};if(f&&Iu(f,i)===!0)return d();if(i===m)return t3(m),d();if(c)return d(JD.sync(i,r));let u=Pt(Ou.relative(m,i)).split("/"),p=null;for(let g=u.shift(),E=m;g&&(E+="/"+g);g=u.shift())if(E=Pt(Ou.resolve(E)),!Iu(f,E))try{Ct.mkdirSync(E,r),p=p||E,Ma(f,E,!0)}catch{let D=Ct.lstatSync(E);if(D.isDirectory()){Ma(f,E,!0);continue}else if(l){Ct.unlinkSync(E),Ct.mkdirSync(E,r),p=p||E,Ma(f,E,!0);continue}else if(D.isSymbolicLink())return new Bu(E,E+"/"+u.join("/"))}return d(p)}});var k0=S((QZ,KD)=>{"use strict";y();var T0=Object.create(null),{hasOwnProperty:i3}=Object.prototype;KD.exports=i=>(i3.call(T0,i)||(T0[i]=i.normalize("NFD")),T0[i])});var eC=S((tQ,QD)=>{"use strict";y();var YD=b("assert"),r3=k0(),s3=qn(),{join:ZD}=b("path"),n3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,o3=n3==="win32";QD.exports=()=>{let i=new Map,e=new Map,t=l=>l.split("/").slice(0,-1).reduce((m,d)=>(m.length&&(d=ZD(m[m.length-1],d)),m.push(d||"/"),m),[]),r=new Set,s=l=>{let f=e.get(l);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(m=>i.get(m)),dirs:[...f.dirs].map(m=>i.get(m))}},n=l=>{let{paths:f,dirs:m}=s(l);return f.every(d=>d[0]===l)&&m.every(d=>d[0]instanceof Set&&d[0].has(l))},o=l=>r.has(l)||!n(l)?!1:(r.add(l),l(()=>a(l)),!0),a=l=>{if(!r.has(l))return!1;let{paths:f,dirs:m}=e.get(l),d=new Set;return f.forEach(h=>{let u=i.get(h);YD.equal(u[0],l),u.length===1?i.delete(h):(u.shift(),typeof u[0]=="function"?d.add(u[0]):u[0].forEach(p=>d.add(p)))}),m.forEach(h=>{let u=i.get(h);YD(u[0]instanceof Set),u[0].size===1&&u.length===1?i.delete(h):u[0].size===1?(u.shift(),d.add(u[0])):u[0].delete(l)}),r.delete(l),d.forEach(h=>o(h)),!0};return{check:n,reserve:(l,f)=>{l=o3?["win32 parallelization disabled"]:l.map(d=>s3(ZD(r3(d))).toLowerCase());let m=new Set(l.map(d=>t(d)).reduce((d,h)=>d.concat(h)));return e.set(f,{dirs:m,paths:l}),l.forEach(d=>{let h=i.get(d);h?h.push(f):i.set(d,[f])}),m.forEach(d=>{let h=i.get(d);h?h[h.length-1]instanceof Set?h[h.length-1].add(f):h.push(new Set([f])):i.set(d,[new Set([f])])}),o(f)}}}});var rC=S((rQ,iC)=>{"use strict";y();var a3=process.env.__FAKE_PLATFORM__||process.platform,c3=a3==="win32",h3=global.__FAKE_TESTING_FS__||b("fs"),{O_CREAT:u3,O_TRUNC:l3,O_WRONLY:f3,UV_FS_O_FILEMAP:tC=0}=h3.constants,d3=c3&&!!tC,p3=512*1024,m3=tC|l3|u3|f3;iC.exports=d3?i=>i<p3?m3:"w":()=>"w"});var M0=S((nQ,yC)=>{"use strict";y();var g3=b("assert"),y3=Tu(),G=b("fs"),E3=Wn(),Li=b("path"),pC=WD(),sC=Pm(),S3=eC(),v3=Nm(),At=Nn(),b3=qn(),w3=k0(),nC=Symbol("onEntry"),O0=Symbol("checkFs"),oC=Symbol("checkFs2"),Uu=Symbol("pruneCache"),B0=Symbol("isReusable"),_t=Symbol("makeFs"),L0=Symbol("file"),I0=Symbol("directory"),qu=Symbol("link"),aC=Symbol("symlink"),cC=Symbol("hardlink"),hC=Symbol("unsupported"),uC=Symbol("checkPath"),Mr=Symbol("mkdir"),$e=Symbol("onError"),Nu=Symbol("pending"),lC=Symbol("pend"),eo=Symbol("unpend"),F0=Symbol("ended"),R0=Symbol("maybeClose"),P0=Symbol("skip"),Ua=Symbol("doChown"),qa=Symbol("uid"),ja=Symbol("gid"),$a=Symbol("checkedCwd"),mC=b("crypto"),gC=rC(),x3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,za=x3==="win32",D3=1024,C3=(i,e)=>{if(!za)return G.unlink(i,e);let t=i+".DELETE."+mC.randomBytes(16).toString("hex");G.rename(i,t,r=>{if(r)return e(r);G.unlink(t,e)})},A3=i=>{if(!za)return G.unlinkSync(i);let e=i+".DELETE."+mC.randomBytes(16).toString("hex");G.renameSync(i,e),G.unlinkSync(e)},fC=(i,e,t)=>i===i>>>0?i:e===e>>>0?e:t,dC=i=>b3(At(w3(i))).toLowerCase(),_3=(i,e)=>{e=dC(e);for(let t of i.keys()){let r=dC(t);(r===e||r.indexOf(e+"/")===0)&&i.delete(t)}},T3=i=>{for(let e of i.keys())i.delete(e)},Ga=class extends y3{constructor(e){if(e||(e={}),e.ondone=t=>{this[F0]=!0,this[R0]()},super(e),this[$a]=!1,this.reservations=S3(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Nu]=0,this[F0]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:D3,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||za,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=At(Li.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[nC](t))}warn(e,t,r={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(r.recoverable=!1),super.warn(e,t,r)}[R0](){this[F0]&&this[Nu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[uC](e){let t=At(e.path),r=t.split("/");if(this.strip){if(r.length<this.strip)return!1;if(e.type==="Link"){let s=At(e.linkpath).split("/");if(s.length>=this.strip)e.linkpath=s.slice(this.strip).join("/");else return!1}r.splice(0,this.strip),e.path=r.join("/")}if(isFinite(this.maxDepth)&&r.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:r.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(r.includes("..")||za&&/^[a-z]:\.\.$/i.test(r[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[s,n]=v3(t);s&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:e,path:t}))}if(Li.isAbsolute(e.path)?e.absolute=At(Li.resolve(e.path)):e.absolute=At(Li.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:At(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:s}=Li.win32.parse(e.absolute);e.absolute=s+sC.encode(e.absolute.slice(s.length));let{root:n}=Li.win32.parse(e.path);e.path=n+sC.encode(e.path.slice(n.length))}return!0}[nC](e){if(!this[uC](e))return e.resume();switch(g3.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[O0](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[hC](e)}}[$e](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[eo](),t.resume())}[Mr](e,t,r){pC(At(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},r)}[Ua](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qa](e){return fC(this.uid,e.uid,this.processUid)}[ja](e){return fC(this.gid,e.gid,this.processGid)}[L0](e,t){let r=e.mode&4095||this.fmode,s=new E3.WriteStream(e.absolute,{flags:gC(e.size),mode:r,autoClose:!1});s.on("error",c=>{s.fd&&G.close(s.fd,()=>{}),s.write=()=>!0,this[$e](c,e),t()});let n=1,o=c=>{if(c){s.fd&&G.close(s.fd,()=>{}),this[$e](c,e),t();return}--n===0&&G.close(s.fd,l=>{l?this[$e](l,e):this[eo](),t()})};s.on("finish",c=>{let l=e.absolute,f=s.fd;if(e.mtime&&!this.noMtime){n++;let m=e.atime||new Date,d=e.mtime;G.futimes(f,m,d,h=>h?G.utimes(l,m,d,u=>o(u&&h)):o())}if(this[Ua](e)){n++;let m=this[qa](e),d=this[ja](e);G.fchown(f,m,d,h=>h?G.chown(l,m,d,u=>o(u&&h)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[$e](c,e),t()}),e.pipe(a)),a.pipe(s)}[I0](e,t){let r=e.mode&4095||this.dmode;this[Mr](e.absolute,r,s=>{if(s){this[$e](s,e),t();return}let n=1,o=a=>{--n===0&&(t(),this[eo](),e.resume())};e.mtime&&!this.noMtime&&(n++,G.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ua](e)&&(n++,G.chown(e.absolute,this[qa](e),this[ja](e),o)),o()})}[hC](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[aC](e,t){this[qu](e,e.linkpath,"symlink",t)}[cC](e,t){let r=At(Li.resolve(this.cwd,e.linkpath));this[qu](e,r,"link",t)}[lC](){this[Nu]++}[eo](){this[Nu]--,this[R0]()}[P0](e){this[eo](),e.resume()}[B0](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!za}[O0](e){this[lC]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,r=>this[oC](e,r))}[Uu](e){e.type==="SymbolicLink"?T3(this.dirCache):e.type!=="Directory"&&_3(this.dirCache,e.absolute)}[oC](e,t){this[Uu](e);let r=a=>{this[Uu](e),t(a)},s=()=>{this[Mr](this.cwd,this.dmode,a=>{if(a){this[$e](a,e),r();return}this[$a]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=At(Li.dirname(e.absolute));if(a!==this.cwd)return this[Mr](a,this.dmode,c=>{if(c){this[$e](c,e),r();return}o()})}o()},o=()=>{G.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[P0](e),r();return}if(a||this[B0](e,c))return this[_t](null,e,r);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=m=>this[_t](m,e,r);return l?G.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return G.rmdir(e.absolute,l=>this[_t](l,e,r))}if(e.absolute===this.cwd)return this[_t](null,e,r);C3(e.absolute,l=>this[_t](l,e,r))})};this[$a]?n():s()}[_t](e,t,r){if(e){this[$e](e,t),r();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[L0](t,r);case"Link":return this[cC](t,r);case"SymbolicLink":return this[aC](t,r);case"Directory":case"GNUDumpDir":return this[I0](t,r)}}[qu](e,t,r,s){G[r](t,e.absolute,n=>{n?this[$e](n,e):(this[eo](),e.resume()),s()})}},Mu=i=>{try{return[null,i()]}catch(e){return[e,null]}},N0=class extends Ga{[_t](e,t){return super[_t](e,t,()=>{})}[O0](e){if(this[Uu](e),!this[$a]){let n=this[Mr](this.cwd,this.dmode);if(n)return this[$e](n,e);this[$a]=!0}if(e.absolute!==this.cwd){let n=At(Li.dirname(e.absolute));if(n!==this.cwd){let o=this[Mr](n,this.dmode);if(o)return this[$e](o,e)}}let[t,r]=Mu(()=>G.lstatSync(e.absolute));if(r&&(this.keep||this.newer&&r.mtime>e.mtime))return this[P0](e);if(t||this[B0](e,r))return this[_t](null,e);if(r.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(r.mode&4095)!==e.mode,[a]=o?Mu(()=>{G.chmodSync(e.absolute,e.mode)}):[];return this[_t](a,e)}let[n]=Mu(()=>G.rmdirSync(e.absolute));this[_t](n,e)}let[s]=e.absolute===this.cwd?[]:Mu(()=>A3(e.absolute));this[_t](s,e)}[L0](e,t){let r=e.mode&4095||this.fmode,s=a=>{let c;try{G.closeSync(n)}catch(l){c=l}(a||c)&&this[$e](a||c,e),t()},n;try{n=G.openSync(e.absolute,gC(e.size),r)}catch(a){return s(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[$e](a,e)),e.pipe(o)),o.on("data",a=>{try{G.writeSync(n,a,0,a.length)}catch(c){s(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,f=e.mtime;try{G.futimesSync(n,l,f)}catch(m){try{G.utimesSync(e.absolute,l,f)}catch{c=m}}}if(this[Ua](e)){let l=this[qa](e),f=this[ja](e);try{G.fchownSync(n,l,f)}catch(m){try{G.chownSync(e.absolute,l,f)}catch{c=c||m}}}s(c)})}[I0](e,t){let r=e.mode&4095||this.dmode,s=this[Mr](e.absolute,r);if(s){this[$e](s,e),t();return}if(e.mtime&&!this.noMtime)try{G.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ua](e))try{G.chownSync(e.absolute,this[qa](e),this[ja](e))}catch{}t(),e.resume()}[Mr](e,t){try{return pC.sync(At(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(r){return r}}[qu](e,t,r,s){try{G[r+"Sync"](t,e.absolute),s(),e.resume()}catch(n){return this[$e](n,e)}}};Ga.Sync=N0;yC.exports=Ga});var wC=S((aQ,bC)=>{"use strict";y();var k3=On(),ju=M0(),SC=b("fs"),vC=Wn(),EC=b("path"),U0=qn();bC.exports=(i,e,t)=>{typeof i=="function"?(t=i,e=null,i={}):Array.isArray(i)&&(e=i,i={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let r=k3(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&F3(r,e),r.file&&r.sync?R3(r):r.file?O3(r,t):r.sync?B3(r):L3(r)};var F3=(i,e)=>{let t=new Map(e.map(n=>[U0(n),!0])),r=i.filter,s=(n,o)=>{let a=o||EC.parse(n).root||".",c=n===a?!1:t.has(n)?t.get(n):s(EC.dirname(n),a);return t.set(n,c),c};i.filter=r?(n,o)=>r(n,o)&&s(U0(n)):n=>s(U0(n))},R3=i=>{let e=new ju.Sync(i),t=i.file,r=SC.statSync(t),s=i.maxReadSize||16*1024*1024;new vC.ReadStreamSync(t,{readSize:s,size:r.size}).pipe(e)},O3=(i,e)=>{let t=new ju(i),r=i.maxReadSize||16*1024*1024,s=i.file,n=new Promise((o,a)=>{t.on("error",a),t.on("close",o),SC.stat(s,(c,l)=>{if(c)a(c);else{let f=new vC.ReadStream(s,{readSize:r,size:l.size});f.on("error",a),f.pipe(t)}})});return e?n.then(e,e):n},B3=i=>new ju.Sync(i),L3=i=>new ju(i)});var q0=S(ge=>{"use strict";y();ge.c=ge.create=nD();ge.r=ge.replace=S0();ge.t=ge.list=ku();ge.u=ge.update=pD();ge.x=ge.extract=wC();ge.Pack=pu();ge.Unpack=M0();ge.Parse=Tu();ge.ReadEntry=Yh();ge.WriteEntry=Xm();ge.Header=Un();ge.Pax=Qh();ge.types=km()});var CC=S((lQ,DC)=>{"use strict";y();function xC(i,e){for(let t in e)Object.defineProperty(i,t,{value:e[t],enumerable:!0,configurable:!0});return i}function I3(i,e,t){if(!i||typeof i=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=void 0),e!=null&&(t.code=e);try{return xC(i,t)}catch{t.message=i.message,t.stack=i.stack;let s=function(){};return s.prototype=Object.create(Object.getPrototypeOf(i)),xC(new s,t)}}DC.exports=I3});var _C=S((dQ,AC)=>{"use strict";y();function Tt(i,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}AC.exports=Tt;Tt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};Tt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};Tt.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var e=new Date().getTime();if(i&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),t=this._timeouts.shift();else return!1;var r=this,s=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t);return this._options.unref&&s.unref(),!0};Tt.prototype.attempt=function(i,e){this._fn=i,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Tt.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)};Tt.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)};Tt.prototype.start=Tt.prototype.try;Tt.prototype.errors=function(){return this._errors};Tt.prototype.attempts=function(){return this._attempts};Tt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},e=null,t=0,r=0;r<this._errors.length;r++){var s=this._errors[r],n=s.message,o=(i[n]||0)+1;i[n]=o,o>=t&&(e=s,t=o)}return e}});var TC=S(Os=>{"use strict";y();var P3=_C();Os.operation=function(i){var e=Os.timeouts(i);return new P3(e,{forever:i&&i.forever,unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};Os.timeouts=function(i){if(i instanceof Array)return[].concat(i);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var t in i)e[t]=i[t];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],s=0;s<e.retries;s++)r.push(this.createTimeout(s,e));return i&&i.forever&&!r.length&&r.push(this.createTimeout(s,e)),r.sort(function(n,o){return n-o}),r};Os.createTimeout=function(i,e){var t=e.randomize?Math.random()+1:1,r=Math.round(t*e.minTimeout*Math.pow(e.factor,i));return r=Math.min(r,e.maxTimeout),r};Os.wrap=function(i,e,t){if(e instanceof Array&&(t=e,e=null),!t){t=[];for(var r in i)typeof i[r]=="function"&&t.push(r)}for(var s=0;s<t.length;s++){var n=t[s],o=i[n];i[n]=function(c){var l=Os.operation(e),f=Array.prototype.slice.call(arguments,1),m=f.pop();f.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),m.apply(this,arguments))}),l.attempt(function(){c.apply(i,f)})}.bind(i,o),i[n].options=e}}});var FC=S((yQ,kC)=>{"use strict";y();kC.exports=TC()});var $u=S((SQ,OC)=>{"use strict";y();var N3=CC(),M3=FC(),U3=Object.prototype.hasOwnProperty;function RC(i){return i&&i.code==="EPROMISERETRY"&&U3.call(i,"retried")}function q3(i,e){var t,r;return typeof i=="object"&&typeof e=="function"&&(t=e,e=i,i=t),r=M3.operation(e),new Promise(function(s,n){r.attempt(function(o){Promise.resolve().then(function(){return i(function(a){throw RC(a)&&(a=a.retried),N3(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(s,function(a){RC(a)&&(a=a.retried,r.retry(a||new Error))||n(a)})})})}OC.exports=q3});var io=S((bQ,$C)=>{"use strict";y();var BC=typeof process=="object"&&process?process:{stdout:null,stderr:null},j3=b("events"),LC=b("stream"),$3=b("string_decoder"),IC=$3.StringDecoder,Ii=Symbol("EOF"),Pi=Symbol("maybeEmitEnd"),Ur=Symbol("emittedEnd"),zu=Symbol("emittingEnd"),Ha=Symbol("emittedError"),Gu=Symbol("closed"),PC=Symbol("read"),Hu=Symbol("flush"),NC=Symbol("flushChunk"),Ze=Symbol("encoding"),Ni=Symbol("decoder"),Ju=Symbol("flowing"),Ja=Symbol("paused"),to=Symbol("resume"),se=Symbol("buffer"),ri=Symbol("pipes"),xe=Symbol("bufferLength"),j0=Symbol("bufferPush"),$0=Symbol("bufferShift"),Re=Symbol("objectMode"),ne=Symbol("destroyed"),z0=Symbol("error"),G0=Symbol("emitData"),MC=Symbol("emitEnd"),H0=Symbol("emitEnd2"),Mi=Symbol("async"),J0=Symbol("abort"),Xu=Symbol("aborted"),Bs=Symbol("signal"),Xa=i=>Promise.resolve().then(i),jC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",UC=jC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),qC=jC&&Symbol.iterator||Symbol("iterator not implemented"),z3=i=>i==="end"||i==="finish"||i==="prefinish",G3=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,H3=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Vu=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[to](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},X0=class extends Vu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},V0=class i extends LC{constructor(e){super(),this[Ju]=!1,this[Ja]=!1,this[ri]=[],this[se]=[],this[Re]=e&&e.objectMode||!1,this[Re]?this[Ze]=null:this[Ze]=e&&e.encoding||null,this[Ze]==="buffer"&&(this[Ze]=null),this[Mi]=e&&!!e.async||!1,this[Ni]=this[Ze]?new IC(this[Ze]):null,this[Ii]=!1,this[Ur]=!1,this[zu]=!1,this[Gu]=!1,this[Ha]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[ne]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[se]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ri]}),this[Bs]=e&&e.signal,this[Xu]=!1,this[Bs]&&(this[Bs].addEventListener("abort",()=>this[J0]()),this[Bs].aborted&&this[J0]())}get bufferLength(){return this[xe]}get encoding(){return this[Ze]}set encoding(e){if(this[Re])throw new Error("cannot set encoding in objectMode");if(this[Ze]&&e!==this[Ze]&&(this[Ni]&&this[Ni].lastNeed||this[xe]))throw new Error("cannot change encoding");this[Ze]!==e&&(this[Ni]=e?new IC(e):null,this[se].length&&(this[se]=this[se].map(t=>this[Ni].write(t)))),this[Ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Re]}set objectMode(e){this[Re]=this[Re]||!!e}get async(){return this[Mi]}set async(e){this[Mi]=this[Mi]||!!e}[J0](){this[Xu]=!0,this.emit("abort",this[Bs].reason),this.destroy(this[Bs].reason)}get aborted(){return this[Xu]}set aborted(e){}write(e,t,r){if(this[Xu])return!1;if(this[Ii])throw new Error("write after end");if(this[ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[Mi]?Xa:n=>n();return!this[Re]&&!Buffer.isBuffer(e)&&(H3(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):G3(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Re]?(this.flowing&&this[xe]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[j0](e),this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[Ze]&&!this[Ni].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ze]&&(e=this[Ni].write(e)),this.flowing&&this[xe]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[j0](e),this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Pi](),null;this[Re]&&(e=null),this[se].length>1&&!this[Re]&&(this.encoding?this[se]=[this[se].join("")]:this[se]=[Buffer.concat(this[se],this[xe])]);let t=this[PC](e||null,this[se][0]);return this[Pi](),t}[PC](e,t){return e===t.length||e===null?this[$0]():(this[se][0]=t.slice(e),t=t.slice(0,e),this[xe]-=e),this.emit("data",t),!this[se].length&&!this[Ii]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[Ii]=!0,this.writable=!1,(this.flowing||!this[Ja])&&this[Pi](),this}[to](){this[ne]||(this[Ja]=!1,this[Ju]=!0,this.emit("resume"),this[se].length?this[Hu]():this[Ii]?this[Pi]():this.emit("drain"))}resume(){return this[to]()}pause(){this[Ju]=!1,this[Ja]=!0}get destroyed(){return this[ne]}get flowing(){return this[Ju]}get paused(){return this[Ja]}[j0](e){this[Re]?this[xe]+=1:this[xe]+=e.length,this[se].push(e)}[$0](){return this[Re]?this[xe]-=1:this[xe]-=this[se][0].length,this[se].shift()}[Hu](e){do;while(this[NC](this[$0]())&&this[se].length);!e&&!this[se].length&&!this[Ii]&&this.emit("drain")}[NC](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[ne])return;let r=this[Ur];return t=t||{},e===BC.stdout||e===BC.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[ri].push(t.proxyErrors?new X0(this,e,t):new Vu(this,e,t)),this[Mi]?Xa(()=>this[to]()):this[to]()),e}unpipe(e){let t=this[ri].find(r=>r.dest===e);t&&(this[ri].splice(this[ri].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[ri].length&&!this.flowing?this[to]():e==="readable"&&this[xe]!==0?super.emit("readable"):z3(e)&&this[Ur]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ha]&&(this[Mi]?Xa(()=>t.call(this,this[Ha])):t.call(this,this[Ha])),r}get emittedEnd(){return this[Ur]}[Pi](){!this[zu]&&!this[Ur]&&!this[ne]&&this[se].length===0&&this[Ii]&&(this[zu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Gu]&&this.emit("close"),this[zu]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==ne&&this[ne])return;if(e==="data")return!this[Re]&&!t?!1:this[Mi]?Xa(()=>this[G0](t)):this[G0](t);if(e==="end")return this[MC]();if(e==="close"){if(this[Gu]=!0,!this[Ur]&&!this[ne])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ha]=t,super.emit(z0,t);let n=!this[Bs]||this.listeners("error").length?super.emit("error",t):!1;return this[Pi](),n}else if(e==="resume"){let n=super.emit("resume");return this[Pi](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[Pi](),s}[G0](e){for(let r of this[ri])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[Pi](),t}[MC](){this[Ur]||(this[Ur]=!0,this.readable=!1,this[Mi]?Xa(()=>this[H0]()):this[H0]())}[H0](){if(this[Ni]){let t=this[Ni].end();if(t){for(let r of this[ri])r.dest.write(t);super.emit("data",t)}}for(let t of this[ri])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Re]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Re]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[Re]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Re]?Promise.reject(new Error("cannot concat in objectMode")):this[Ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(ne,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[UC](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ii])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(ne,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(ne,f),this.pause(),n({value:m,done:!!this[Ii]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(ne,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(ne,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[UC](){return this}}}[qC](){let e=!1,t=()=>(this.pause(),this.removeListener(z0,t),this.removeListener(ne,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(z0,t),this.once(ne,t),{next:r,throw:t,return:t,[qC](){return this}}}destroy(e){return this[ne]?(e?this.emit("error",e):this.emit(ne),this):(this[ne]=!0,this[se].length=0,this[xe]=0,typeof this.close=="function"&&!this[Gu]&&this.close(),e?this.emit("error",e):this.emit(ne),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof LC||e instanceof j3&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};$C.exports=V0});var tg=S(Wa=>{"use strict";y();var J3=io(),X3=b("events").EventEmitter,Qe=b("fs"),V3=Qe.writev,co=Symbol("_autoClose"),Nt=Symbol("_close"),Va=Symbol("_ended"),V=Symbol("_fd"),zC=Symbol("_finished"),jr=Symbol("_flags"),W0=Symbol("_flush"),Y0=Symbol("_handleChunk"),Z0=Symbol("_makeBuf"),Qu=Symbol("_mode"),Wu=Symbol("_needDrain"),oo=Symbol("_onerror"),ho=Symbol("_onopen"),K0=Symbol("_onread"),so=Symbol("_onwrite"),$r=Symbol("_open"),Ui=Symbol("_path"),Ls=Symbol("_pos"),si=Symbol("_queue"),no=Symbol("_read"),GC=Symbol("_readSize"),qr=Symbol("_reading"),Ku=Symbol("_remain"),HC=Symbol("_size"),Yu=Symbol("_write"),ro=Symbol("_writing"),Zu=Symbol("_defaultFlag"),ao=Symbol("_errored"),el=class extends J3{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[ao]=!1,this[V]=typeof t.fd=="number"?t.fd:null,this[Ui]=e,this[GC]=t.readSize||16*1024*1024,this[qr]=!1,this[HC]=typeof t.size=="number"?t.size:1/0,this[Ku]=this[HC],this[co]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[V]=="number"?this[no]():this[$r]()}get fd(){return this[V]}get path(){return this[Ui]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[$r](){Qe.open(this[Ui],"r",(e,t)=>this[ho](e,t))}[ho](e,t){e?this[oo](e):(this[V]=t,this.emit("open",t),this[no]())}[Z0](){return Buffer.allocUnsafe(Math.min(this[GC],this[Ku]))}[no](){if(!this[qr]){this[qr]=!0;let e=this[Z0]();if(e.length===0)return process.nextTick(()=>this[K0](null,0,e));Qe.read(this[V],e,0,e.length,null,(t,r,s)=>this[K0](t,r,s))}}[K0](e,t,r){this[qr]=!1,e?this[oo](e):this[Y0](t,r)&&this[no]()}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[oo](e){this[qr]=!0,this[Nt](),this.emit("error",e)}[Y0](e,t){let r=!1;return this[Ku]-=e,e>0&&(r=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[Ku]<=0)&&(r=!1,this[Nt](),super.end()),r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[V]=="number"&&this[no]();break;case"error":return this[ao]?void 0:(this[ao]=!0,super.emit(e,t));default:return super.emit(e,t)}}},Q0=class extends el{[$r](){let e=!0;try{this[ho](null,Qe.openSync(this[Ui],"r")),e=!1}finally{e&&this[Nt]()}}[no](){let e=!0;try{if(!this[qr]){this[qr]=!0;do{let t=this[Z0](),r=t.length===0?0:Qe.readSync(this[V],t,0,t.length,null);if(!this[Y0](r,t))break}while(!0);this[qr]=!1}e=!1}finally{e&&this[Nt]()}}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.closeSync(e),this.emit("close")}}},tl=class extends X3{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[ao]=!1,this[ro]=!1,this[Va]=!1,this[Wu]=!1,this[si]=[],this[Ui]=e,this[V]=typeof t.fd=="number"?t.fd:null,this[Qu]=t.mode===void 0?438:t.mode,this[Ls]=typeof t.start=="number"?t.start:null,this[co]=typeof t.autoClose=="boolean"?t.autoClose:!0;let r=this[Ls]!==null?"r+":"w";this[Zu]=t.flags===void 0,this[jr]=this[Zu]?r:t.flags,this[V]===null&&this[$r]()}emit(e,t){if(e==="error"){if(this[ao])return;this[ao]=!0}return super.emit(e,t)}get fd(){return this[V]}get path(){return this[Ui]}[oo](e){this[Nt](),this[ro]=!0,this.emit("error",e)}[$r](){Qe.open(this[Ui],this[jr],this[Qu],(e,t)=>this[ho](e,t))}[ho](e,t){this[Zu]&&this[jr]==="r+"&&e&&e.code==="ENOENT"?(this[jr]="w",this[$r]()):e?this[oo](e):(this[V]=t,this.emit("open",t),this[W0]())}end(e,t){return e&&this.write(e,t),this[Va]=!0,!this[ro]&&!this[si].length&&typeof this[V]=="number"&&this[so](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[Va]?(this.emit("error",new Error("write() after end()")),!1):this[V]===null||this[ro]||this[si].length?(this[si].push(e),this[Wu]=!0,!1):(this[ro]=!0,this[Yu](e),!0)}[Yu](e){Qe.write(this[V],e,0,e.length,this[Ls],(t,r)=>this[so](t,r))}[so](e,t){e?this[oo](e):(this[Ls]!==null&&(this[Ls]+=t),this[si].length?this[W0]():(this[ro]=!1,this[Va]&&!this[zC]?(this[zC]=!0,this[Nt](),this.emit("finish")):this[Wu]&&(this[Wu]=!1,this.emit("drain"))))}[W0](){if(this[si].length===0)this[Va]&&this[so](null,0);else if(this[si].length===1)this[Yu](this[si].pop());else{let e=this[si];this[si]=[],V3(this[V],e,this[Ls],(t,r)=>this[so](t,r))}}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},eg=class extends tl{[$r](){let e;if(this[Zu]&&this[jr]==="r+")try{e=Qe.openSync(this[Ui],this[jr],this[Qu])}catch(t){if(t.code==="ENOENT")return this[jr]="w",this[$r]();throw t}else e=Qe.openSync(this[Ui],this[jr],this[Qu]);this[ho](null,e)}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.closeSync(e),this.emit("close")}}[Yu](e){let t=!0;try{this[so](null,Qe.writeSync(this[V],e,0,e.length,this[Ls])),t=!1}finally{if(t)try{this[Nt]()}catch{}}}};Wa.ReadStream=el;Wa.ReadStreamSync=Q0;Wa.WriteStream=tl;Wa.WriteStreamSync=eg});var ng=S((CQ,sg)=>{"use strict";y();var JC=Ar(),uo=Symbol("_data"),lo=Symbol("_length"),ig=class extends JC{constructor(e){super(e),this[uo]=[],this[lo]=0}write(e,t,r){typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[uo].push(s),this[lo]+=s.length,r&&r(),!0}end(e,t,r){typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t);let s=Buffer.concat(this[uo],this[lo]);return super.write(s),super.end(r)}};sg.exports=ig;var rg=class extends JC{constructor(e){super(e),this[uo]=[],this[lo]=0}write(e,t,r){typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[uo].push(s),this[lo]+=s.length,super.write(e,t,r)}end(e,t,r){typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t);let s=Buffer.concat(this[uo],this[lo]);return this.emit("collect",s),super.end(r)}};sg.exports.PassThrough=rg});var Qa=S((_Q,iA)=>{"use strict";y();var XC=typeof process=="object"&&process?process:{stdout:null,stderr:null},W3=b("events"),VC=b("stream"),K3=b("string_decoder"),WC=K3.StringDecoder,qi=Symbol("EOF"),ji=Symbol("maybeEmitEnd"),zr=Symbol("emittedEnd"),il=Symbol("emittingEnd"),Ka=Symbol("emittedError"),rl=Symbol("closed"),KC=Symbol("read"),sl=Symbol("flush"),YC=Symbol("flushChunk"),et=Symbol("encoding"),$i=Symbol("decoder"),nl=Symbol("flowing"),Ya=Symbol("paused"),fo=Symbol("resume"),oe=Symbol("buffer"),ni=Symbol("pipes"),De=Symbol("bufferLength"),og=Symbol("bufferPush"),ag=Symbol("bufferShift"),Oe=Symbol("objectMode"),ae=Symbol("destroyed"),cg=Symbol("error"),hg=Symbol("emitData"),ZC=Symbol("emitEnd"),ug=Symbol("emitEnd2"),zi=Symbol("async"),lg=Symbol("abort"),ol=Symbol("aborted"),Is=Symbol("signal"),Za=i=>Promise.resolve().then(i),tA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",QC=tA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),eA=tA&&Symbol.iterator||Symbol("iterator not implemented"),Y3=i=>i==="end"||i==="finish"||i==="prefinish",Z3=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,Q3=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),al=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[fo](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},fg=class extends al{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},dg=class i extends VC{constructor(e){super(),this[nl]=!1,this[Ya]=!1,this[ni]=[],this[oe]=[],this[Oe]=e&&e.objectMode||!1,this[Oe]?this[et]=null:this[et]=e&&e.encoding||null,this[et]==="buffer"&&(this[et]=null),this[zi]=e&&!!e.async||!1,this[$i]=this[et]?new WC(this[et]):null,this[qi]=!1,this[zr]=!1,this[il]=!1,this[rl]=!1,this[Ka]=null,this.writable=!0,this.readable=!0,this[De]=0,this[ae]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[oe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ni]}),this[Is]=e&&e.signal,this[ol]=!1,this[Is]&&(this[Is].addEventListener("abort",()=>this[lg]()),this[Is].aborted&&this[lg]())}get bufferLength(){return this[De]}get encoding(){return this[et]}set encoding(e){if(this[Oe])throw new Error("cannot set encoding in objectMode");if(this[et]&&e!==this[et]&&(this[$i]&&this[$i].lastNeed||this[De]))throw new Error("cannot change encoding");this[et]!==e&&(this[$i]=e?new WC(e):null,this[oe].length&&(this[oe]=this[oe].map(t=>this[$i].write(t)))),this[et]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Oe]}set objectMode(e){this[Oe]=this[Oe]||!!e}get async(){return this[zi]}set async(e){this[zi]=this[zi]||!!e}[lg](){this[ol]=!0,this.emit("abort",this[Is].reason),this.destroy(this[Is].reason)}get aborted(){return this[ol]}set aborted(e){}write(e,t,r){if(this[ol])return!1;if(this[qi])throw new Error("write after end");if(this[ae])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[zi]?Za:n=>n();return!this[Oe]&&!Buffer.isBuffer(e)&&(Q3(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Z3(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Oe]?(this.flowing&&this[De]!==0&&this[sl](!0),this.flowing?this.emit("data",e):this[og](e),this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[et]&&!this[$i].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[et]&&(e=this[$i].write(e)),this.flowing&&this[De]!==0&&this[sl](!0),this.flowing?this.emit("data",e):this[og](e),this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[ae])return null;if(this[De]===0||e===0||e>this[De])return this[ji](),null;this[Oe]&&(e=null),this[oe].length>1&&!this[Oe]&&(this.encoding?this[oe]=[this[oe].join("")]:this[oe]=[Buffer.concat(this[oe],this[De])]);let t=this[KC](e||null,this[oe][0]);return this[ji](),t}[KC](e,t){return e===t.length||e===null?this[ag]():(this[oe][0]=t.slice(e),t=t.slice(0,e),this[De]-=e),this.emit("data",t),!this[oe].length&&!this[qi]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[qi]=!0,this.writable=!1,(this.flowing||!this[Ya])&&this[ji](),this}[fo](){this[ae]||(this[Ya]=!1,this[nl]=!0,this.emit("resume"),this[oe].length?this[sl]():this[qi]?this[ji]():this.emit("drain"))}resume(){return this[fo]()}pause(){this[nl]=!1,this[Ya]=!0}get destroyed(){return this[ae]}get flowing(){return this[nl]}get paused(){return this[Ya]}[og](e){this[Oe]?this[De]+=1:this[De]+=e.length,this[oe].push(e)}[ag](){return this[Oe]?this[De]-=1:this[De]-=this[oe][0].length,this[oe].shift()}[sl](e){do;while(this[YC](this[ag]())&&this[oe].length);!e&&!this[oe].length&&!this[qi]&&this.emit("drain")}[YC](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[ae])return;let r=this[zr];return t=t||{},e===XC.stdout||e===XC.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[ni].push(t.proxyErrors?new fg(this,e,t):new al(this,e,t)),this[zi]?Za(()=>this[fo]()):this[fo]()),e}unpipe(e){let t=this[ni].find(r=>r.dest===e);t&&(this[ni].splice(this[ni].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[ni].length&&!this.flowing?this[fo]():e==="readable"&&this[De]!==0?super.emit("readable"):Y3(e)&&this[zr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ka]&&(this[zi]?Za(()=>t.call(this,this[Ka])):t.call(this,this[Ka])),r}get emittedEnd(){return this[zr]}[ji](){!this[il]&&!this[zr]&&!this[ae]&&this[oe].length===0&&this[qi]&&(this[il]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[rl]&&this.emit("close"),this[il]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==ae&&this[ae])return;if(e==="data")return!this[Oe]&&!t?!1:this[zi]?Za(()=>this[hg](t)):this[hg](t);if(e==="end")return this[ZC]();if(e==="close"){if(this[rl]=!0,!this[zr]&&!this[ae])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ka]=t,super.emit(cg,t);let n=!this[Is]||this.listeners("error").length?super.emit("error",t):!1;return this[ji](),n}else if(e==="resume"){let n=super.emit("resume");return this[ji](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[ji](),s}[hg](e){for(let r of this[ni])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[ji](),t}[ZC](){this[zr]||(this[zr]=!0,this.readable=!1,this[zi]?Za(()=>this[ug]()):this[ug]())}[ug](){if(this[$i]){let t=this[$i].end();if(t){for(let r of this[ni])r.dest.write(t);super.emit("data",t)}}for(let t of this[ni])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Oe]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Oe]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[Oe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Oe]?Promise.reject(new Error("cannot concat in objectMode")):this[et]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(ae,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[QC](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[qi])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(ae,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(ae,f),this.pause(),n({value:m,done:!!this[qi]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(ae,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(ae,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[QC](){return this}}}[eA](){let e=!1,t=()=>(this.pause(),this.removeListener(cg,t),this.removeListener(ae,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(cg,t),this.once(ae,t),{next:r,throw:t,return:t,[eA](){return this}}}destroy(e){return this[ae]?(e?this.emit("error",e):this.emit(ae),this):(this[ae]=!0,this[oe].length=0,this[De]=0,typeof this.close=="function"&&!this[rl]&&this.close(),e?this.emit("error",e):this.emit(ae),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof VC||e instanceof W3&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};iA.exports=dg});var po=S((kQ,oA)=>{"use strict";y();var e9=Ar(),t9=b("events"),i9=i=>i&&i instanceof t9&&(typeof i.pipe=="function"||typeof i.write=="function"&&typeof i.end=="function"),Ps=Symbol("_head"),dt=Symbol("_tail"),pg=Symbol("_linkStreams"),mg=Symbol("_setHead"),gg=Symbol("_setTail"),rA=Symbol("_onError"),sA=Symbol("_onData"),yg=Symbol("_onEnd"),nA=Symbol("_onDrain"),cl=Symbol("_streams"),Eg=class extends e9{constructor(e,...t){i9(e)&&(t.unshift(e),e={}),super(e),this[cl]=[],t.length&&this.push(...t)}[pg](e){return e.reduce((t,r)=>(t.on("error",s=>r.emit("error",s)),t.pipe(r),r))}push(...e){this[cl].push(...e),this[dt]&&e.unshift(this[dt]);let t=this[pg](e);this[gg](t),this[Ps]||this[mg](e[0])}unshift(...e){this[cl].unshift(...e),this[Ps]&&e.push(this[Ps]);let t=this[pg](e);this[mg](e[0]),this[dt]||this[gg](t)}destroy(e){return this[cl].forEach(t=>typeof t.destroy=="function"&&t.destroy()),super.destroy(e)}[gg](e){this[dt]=e,e.on("error",t=>this[rA](e,t)),e.on("data",t=>this[sA](e,t)),e.on("end",()=>this[yg](e)),e.on("finish",()=>this[yg](e))}[rA](e,t){e===this[dt]&&this.emit("error",t)}[sA](e,t){e===this[dt]&&super.write(t)}[yg](e){e===this[dt]&&super.end()}pause(){return super.pause(),this[dt]&&this[dt].pause&&this[dt].pause()}emit(e,...t){return e==="resume"&&this[dt]&&this[dt].resume&&this[dt].resume(),super.emit(e,...t)}[mg](e){this[Ps]=e,e.on("drain",()=>this[nA](e))}[nA](e){e===this[Ps]&&this.emit("drain")}write(e,t,r){return this[Ps].write(e,t,r)&&(this.flowing||this.buffer.length===0)}end(e,t,r){return this[Ps].end(e,t,r),this}};oA.exports=Eg});var cA=S((RQ,aA)=>{"use strict";y();var r9=xI();aA.exports=function(i){if(i){var e=new r9(i);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var Sg=S((BQ,hA)=>{"use strict";y();var s9=b("path"),n9=cA();hA.exports=function(i,e,t){return s9.join(i,(e?e+"-":"")+n9(t))}});var vg=S((IQ,o9)=>{o9.exports={name:"cacache",version:"17.0.4","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:'eslint "**/*.js"',npmclilint:"npmcli-lint",lintfix:"npm run lint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license:"ISC",dependencies:{"@npmcli/fs":"^3.1.0","fs-minipass":"^3.0.0",glob:"^8.0.1","lru-cache":"^7.7.1",minipass:"^4.0.0","minipass-collect":"^1.0.2","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4","p-map":"^4.0.0","promise-inflight":"^1.0.1",ssri:"^10.0.0",tar:"^6.1.11","unique-filename":"^3.0.0"},devDependencies:{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.11.0",tap:"^16.0.0"},engines:{node:"^14.17.0 || ^16.13.0 || >=18.0.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",windowsCI:!1,version:"4.11.0"},author:"GitHub Inc.",tap:{"nyc-arg":["--exclude","tap-snapshots/**"]}}});var bg=S((PQ,uA)=>{"use strict";y();uA.exports=a9;function a9(i){return[i.slice(0,2),i.slice(2,4),i.slice(4)]}});var mo=S((MQ,wg)=>{"use strict";y();var c9=vg()["cache-version"].content,h9=bg(),lA=b("path"),u9=Wt();wg.exports=l9;function l9(i,e){let t=u9.parse(e,{single:!0});return lA.join(fA(i),t.algorithm,...h9(t.hexDigest()))}wg.exports.contentDir=fA;function fA(i){return lA.join(i,`content-v${c9}`)}});var xg=S((qQ,dA)=>{"use strict";y();var f9=(i,{copy:e,wrap:t})=>{let r={};if(i&&typeof i=="object")for(let s of e)i[s]!==void 0&&(r[s]=i[s]);else r[t]=i;return r};dA.exports=f9});var mA=S(($Q,pA)=>{"use strict";y();var d9=oa(),p9=i=>d9.satisfies(process.version,i,{includePrerelease:!0});pA.exports={satisfies:p9}});var gA=S((JQ,Cg)=>{"use strict";y();var{inspect:m9}=b("util"),Dg=class{constructor(e,t,r){let s=`${t}: ${r.syscall} returned ${r.code} (${r.message})`;r.path!==void 0&&(s+=` ${r.path}`),r.dest!==void 0&&(s+=` => ${r.dest}`),this.code=e,Object.defineProperties(this,{name:{value:"SystemError",enumerable:!1,writable:!0,configurable:!0},message:{value:s,enumerable:!1,writable:!0,configurable:!0},info:{value:r,enumerable:!0,configurable:!0,writable:!1},errno:{get(){return r.errno},set(n){r.errno=n},enumerable:!0,configurable:!0},syscall:{get(){return r.syscall},set(n){r.syscall=n},enumerable:!0,configurable:!0}}),r.path!==void 0&&Object.defineProperty(this,"path",{get(){return r.path},set(n){r.path=n},enumerable:!0,configurable:!0}),r.dest!==void 0&&Object.defineProperty(this,"dest",{get(){return r.dest},set(n){r.dest=n},enumerable:!0,configurable:!0})}toString(){return`${this.name} [${this.code}]: ${this.message}`}[Symbol.for("nodejs.util.inspect.custom")](e,t){return m9(this,{...t,getters:!0,customInspect:!1})}};function Gi(i,e){Cg.exports[i]=class extends Dg{constructor(r){super(i,e,r)}}}Gi("ERR_FS_CP_DIR_TO_NON_DIR","Cannot overwrite directory with non-directory");Gi("ERR_FS_CP_EEXIST","Target already exists");Gi("ERR_FS_CP_EINVAL","Invalid src or dest");Gi("ERR_FS_CP_FIFO_PIPE","Cannot copy a FIFO pipe");Gi("ERR_FS_CP_NON_DIR_TO_DIR","Cannot overwrite non-directory with directory");Gi("ERR_FS_CP_SOCKET","Cannot copy a socket file");Gi("ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY","Cannot overwrite symlink in subdirectory of self");Gi("ERR_FS_CP_UNKNOWN","Cannot copy an unknown file type");Gi("ERR_FS_EISDIR","Path is a directory");Cg.exports.ERR_INVALID_ARG_TYPE=class extends Error{constructor(e,t,r){super(),this.code="ERR_INVALID_ARG_TYPE",this.message=`The ${e} argument must be ${t}. Received ${typeof r}`}}});var IA=S((VQ,LA)=>{"use strict";y();var{ERR_FS_CP_DIR_TO_NON_DIR:g9,ERR_FS_CP_EEXIST:y9,ERR_FS_CP_EINVAL:hl,ERR_FS_CP_FIFO_PIPE:E9,ERR_FS_CP_NON_DIR_TO_DIR:S9,ERR_FS_CP_SOCKET:v9,ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY:b9,ERR_FS_CP_UNKNOWN:w9,ERR_FS_EISDIR:x9,ERR_INVALID_ARG_TYPE:D9}=gA(),{constants:{errno:{EEXIST:C9,EISDIR:A9,EINVAL:Hi,ENOTDIR:_9}}}=b("os"),{chmod:T9,copyFile:k9,lstat:CA,mkdir:AA,readdir:F9,readlink:yA,stat:go,symlink:Ag,unlink:_A,utimes:R9}=b("fs/promises"),{dirname:ec,isAbsolute:EA,join:SA,parse:O9,resolve:tc,sep:B9,toNamespacedPath:vA}=b("path"),{fileURLToPath:L9}=b("url"),I9={dereference:!1,errorOnExist:!1,filter:void 0,force:!0,preserveTimestamps:!1,recursive:!1};async function P9(i,e,t){if(t!=null&&typeof t!="object")throw new D9("options",["Object"],t);return N9(vA(bA(i)),vA(bA(e)),{...I9,...t})}function bA(i){return i!=null&&i.href&&i.origin?L9(i):i}async function N9(i,e,t){t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended","TimestampPrecisionWarning");let r=await TA(i,e,t),{srcStat:s,destStat:n}=r;return await FA(i,s,e),t.filter?RA(wA,n,i,e,t):wA(n,i,e,t)}async function TA(i,e,t){let{0:r,1:s}=await M9(i,e,t);if(s){if(kA(r,s))throw new hl({message:"src and dest cannot be the same",path:e,syscall:"cp",errno:Hi});if(r.isDirectory()&&!s.isDirectory())throw new g9({message:`cannot overwrite directory ${i} with non-directory ${e}`,path:e,syscall:"cp",errno:A9});if(!r.isDirectory()&&s.isDirectory())throw new S9({message:`cannot overwrite non-directory ${i} with directory ${e}`,path:e,syscall:"cp",errno:_9})}if(r.isDirectory()&&_g(i,e))throw new hl({message:`cannot copy ${i} to a subdirectory of self ${e}`,path:e,syscall:"cp",errno:Hi});return{srcStat:r,destStat:s}}function kA(i,e){return e.ino&&e.dev&&e.ino===i.ino&&e.dev===i.dev}function M9(i,e,t){let r=t.dereference?s=>go(s,{bigint:!0}):s=>CA(s,{bigint:!0});return Promise.all([r(i),r(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})])}async function wA(i,e,t,r){let s=ec(t);return await U9(s)||await AA(s,{recursive:!0}),ul(i,e,t,r)}function U9(i){return go(i).then(()=>!0,e=>e.code==="ENOENT"?!1:Promise.reject(e))}async function FA(i,e,t){let r=tc(ec(i)),s=tc(ec(t));if(s===r||s===O9(s).root)return;let n;try{n=await go(s,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(kA(e,n))throw new hl({message:`cannot copy ${i} to a subdirectory of self ${t}`,path:t,syscall:"cp",errno:Hi});return FA(i,e,s)}var xA=i=>tc(i).split(B9).filter(Boolean);function _g(i,e){let t=xA(i),r=xA(e);return t.every((s,n)=>r[n]===s)}async function RA(i,e,t,r,s,n){if(await s.filter(t,r))return i(e,t,r,s,n)}function q9(i,e,t,r){return r.filter?RA(ul,i,e,t,r):ul(i,e,t,r)}async function ul(i,e,t,r){let n=await(r.dereference?go:CA)(e);if(n.isDirectory()&&r.recursive)return X9(n,i,e,t,r);if(n.isDirectory())throw new x9({message:`${e} is a directory (not copied)`,path:e,syscall:"cp",errno:Hi});if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return j9(n,i,e,t,r);if(n.isSymbolicLink())return W9(i,e,t);throw n.isSocket()?new v9({message:`cannot copy a socket file: ${t}`,path:t,syscall:"cp",errno:Hi}):n.isFIFO()?new E9({message:`cannot copy a FIFO pipe: ${t}`,path:t,syscall:"cp",errno:Hi}):new w9({message:`cannot copy an unknown file type: ${t}`,path:t,syscall:"cp",errno:Hi})}function j9(i,e,t,r,s){return e?$9(i,t,r,s):OA(i,t,r,s)}async function $9(i,e,t,r){if(r.force)return await _A(t),OA(i,e,t,r);if(r.errorOnExist)throw new y9({message:`${t} already exists`,path:t,syscall:"cp",errno:C9})}async function OA(i,e,t,r){return await k9(e,t),r.preserveTimestamps?z9(i.mode,e,t):ll(t,i.mode)}async function z9(i,e,t){return G9(i)&&await H9(t,i),DA(i,e,t)}function G9(i){return(i&128)===0}function H9(i,e){return ll(i,e|128)}async function DA(i,e,t){return await J9(e,t),ll(t,i)}function ll(i,e){return T9(i,e)}async function J9(i,e){let t=await go(i);return R9(e,t.atime,t.mtime)}function X9(i,e,t,r,s){return e?BA(t,r,s):V9(i.mode,t,r,s)}async function V9(i,e,t,r){return await AA(t),await BA(e,t,r),ll(t,i)}async function BA(i,e,t){let r=await F9(i);for(let s=0;s<r.length;s++){let n=r[s],o=SA(i,n),a=SA(e,n),{destStat:c}=await TA(o,a,t);await q9(c,o,a,t)}}async function W9(i,e,t){let r=await yA(e);if(EA(r)||(r=tc(ec(e),r)),!i)return Ag(r,t);let s;try{s=await yA(t)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ag(r,t);throw o}if(EA(s)||(s=tc(ec(t),s)),_g(r,s))throw new hl({message:`cannot copy ${r} to a subdirectory of self ${s}`,path:t,syscall:"cp",errno:Hi});if((await go(e)).isDirectory()&&_g(s,r))throw new b9({message:`cannot overwrite ${s} with ${r}`,path:t,syscall:"cp",errno:Hi});return K9(r,t)}async function K9(i,e){return await _A(e),Ag(i,e)}LA.exports=P9});var NA=S((KQ,PA)=>{"use strict";y();var Y9=b("fs/promises"),Z9=xg(),Q9=mA(),eM=IA(),tM=Q9.satisfies(">=16.7.0"),iM=async(i,e,t)=>{let r=Z9(t,{copy:["dereference","errorOnExist","filter","force","preserveTimestamps","recursive"]});return tM?Y9.cp(i,e,r):eM(i,e,r)};PA.exports=iM});var UA=S((ZQ,MA)=>{"use strict";y();var{join:rM,sep:sM}=b("path"),nM=xg(),{mkdir:oM,mkdtemp:aM,rm:cM}=b("fs/promises"),hM=async(i,e,t)=>{let r=nM(t,{copy:["tmpPrefix"]});await oM(i,{recursive:!0});let s=await aM(rM(`${i}${sM}`,r.tmpPrefix||"")),n,o;try{o=await e(s)}catch(a){n=a}try{await cM(s,{force:!0,recursive:!0})}catch{}if(n)throw n;return o};MA.exports=hM});var zA=S((eee,$A)=>{"use strict";y();var{readdir:qA}=b("fs/promises"),{join:jA}=b("path"),uM=async i=>{let e=[];for(let t of await qA(i))if(t.startsWith("@"))for(let r of await qA(jA(i,t)))e.push(jA(t,r));else e.push(t);return e};$A.exports=uM});var WA=S((iee,VA)=>{"use strict";y();var{dirname:GA,join:HA,resolve:JA,relative:lM,isAbsolute:fM}=b("path"),oi=b("fs/promises"),dM=async i=>{try{return await oi.access(i),!0}catch(e){return e.code!=="ENOENT"}},XA=async(i,e,t={},r=!0,s=[])=>{if(!i||!e)throw new TypeError("`source` and `destination` file required");if(t={overwrite:!0,...t},!t.overwrite&&await dM(e))throw new Error(`The destination file exists: ${e}`);await oi.mkdir(GA(e),{recursive:!0});try{await oi.rename(i,e)}catch(n){if(n.code==="EXDEV"||n.code==="EPERM"){let o=await oi.lstat(i);if(o.isDirectory()){let a=await oi.readdir(i);await Promise.all(a.map(c=>XA(HA(i,c),HA(e,c),t,!1,s)))}else o.isSymbolicLink()?s.push({source:i,destination:e}):await oi.copyFile(i,e)}else throw n}r&&(await Promise.all(s.map(async({source:n,destination:o})=>{let a=await oi.readlink(n);fM(a)&&(a=JA(o,lM(n,a)));let c="file";try{c=await oi.stat(JA(GA(n),a)),c.isDirectory()&&(c="junction")}catch{}await oi.symlink(a,o,c)})),await oi.rm(i,{recursive:!0,force:!0}))};VA.exports=XA});var fl=S((see,KA)=>{"use strict";y();var pM=NA(),mM=UA(),gM=zA(),yM=WA();KA.exports={cp:pM,withTempDir:mM,readdirScoped:gM,moveFile:yM}});var yo=S((aee,pt)=>{"use strict";y();var EM=b("crypto"),{appendFile:SM,mkdir:kg,readFile:vM,readdir:bM,rm:YA,writeFile:wM}=b("fs/promises"),xM=Qa(),ai=b("path"),DM=Wt(),CM=Sg(),AM=mo(),_M=bg(),TM=vg()["cache-version"].index,{moveFile:kM}=fl();pt.exports.NotFoundError=class extends Error{constructor(e,t){super(`No cache entry for ${t} found in ${e}`),this.code="ENOENT",this.cache=e,this.key=t}};pt.exports.compact=FM;async function FM(i,e,t,r={}){let s=ic(i,e),n=await dl(s),o=[];for(let d=n.length-1;d>=0;--d){let h=n[d];if(h.integrity===null&&!r.validateEntry)break;(!r.validateEntry||r.validateEntry(h)===!0)&&(o.length===0||!o.find(u=>t(u,h)))&&o.unshift(h)}let a=`
|
|
17
|
+
`).reduce(MN,Object.create(null)),MN=(i,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return i;e=e.slice((t+" ").length);let r=e.split("="),s=r.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return i;let n=r.join("=");return i[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(n*1e3):/^[0-9]+$/.test(n)?+n:n,i};sx.exports=Oa});var qn=S((eZ,nx)=>{"use strict";y();nx.exports=i=>{let e=i.length-1,t=-1;for(;e>-1&&i.charAt(e)==="/";)t=e,e--;return t===-1?i:i.slice(0,t)}});var eu=S((iZ,ox)=>{"use strict";y();ox.exports=i=>class extends i{warn(e,t,r={}){this.file&&(r.file=this.file),this.cwd&&(r.cwd=this.cwd),r.code=t instanceof Error&&t.code||e,r.tarCode=e,!this.strict&&r.recoverable!==!1?(t instanceof Error&&(r=Object.assign(t,r),t=t.message),this.emit("warn",r.tarCode,t,r)):t instanceof Error?this.emit("error",Object.assign(t,r)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}});var Pm=S((nZ,ax)=>{"use strict";y();var tu=["|","<",">","?",":"],Im=tu.map(i=>String.fromCharCode(61440+i.charCodeAt(0))),UN=new Map(tu.map((i,e)=>[i,Im[e]])),qN=new Map(Im.map((i,e)=>[i,tu[e]]));ax.exports={encode:i=>tu.reduce((e,t)=>e.split(t).join(UN.get(t)),i),decode:i=>Im.reduce((e,t)=>e.split(t).join(qN.get(t)),i)}});var Nm=S((aZ,hx)=>{"use strict";y();var{isAbsolute:jN,parse:cx}=b("path").win32;hx.exports=i=>{let e="",t=cx(i);for(;jN(i)||t.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":t.root;i=i.slice(r.length),e+=r,t=cx(i)}return[e,i]}});var lx=S((hZ,ux)=>{"use strict";y();ux.exports=(i,e,t)=>(i&=4095,t&&(i=(i|384)&-19),e&&(i&256&&(i|=64),i&32&&(i|=8),i&4&&(i|=1)),i)});var Xm=S((dZ,Cx)=>{"use strict";y();var{Minipass:Ex}=$h(),Sx=Qh(),vx=Un(),Zt=b("fs"),fx=b("path"),Yt=Nn(),$N=qn(),bx=(i,e)=>e?(i=Yt(i).replace(/^\.(\/|$)/,""),$N(e)+"/"+i):Yt(i),zN=16*1024*1024,dx=Symbol("process"),px=Symbol("file"),mx=Symbol("directory"),Um=Symbol("symlink"),gx=Symbol("hardlink"),Ba=Symbol("header"),iu=Symbol("read"),qm=Symbol("lstat"),ru=Symbol("onlstat"),jm=Symbol("onread"),$m=Symbol("onreadlink"),zm=Symbol("openfile"),Gm=Symbol("onopenfile"),Fr=Symbol("close"),su=Symbol("mode"),Hm=Symbol("awaitDrain"),Mm=Symbol("ondrain"),Qt=Symbol("prefix"),yx=Symbol("hadError"),wx=eu(),GN=Pm(),xx=Nm(),Dx=lx(),nu=wx(class extends Ex{constructor(e,t){if(t=t||{},super(t),typeof e!="string")throw new TypeError("path is required");this.path=Yt(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||zN,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=Yt(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?Yt(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let r=!1;if(!this.preservePaths){let[s,n]=xx(this.path);s&&(this.path=n,r=s)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=GN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Yt(t.absolute||fx.resolve(this.cwd,e)),this.path===""&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path}),this.statCache.has(this.absolute)?this[ru](this.statCache.get(this.absolute)):this[qm]()}emit(e,...t){return e==="error"&&(this[yx]=!0),super.emit(e,...t)}[qm](){Zt.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[ru](t)})}[ru](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=JN(e),this.emit("stat",e),this[dx]()}[dx](){switch(this.type){case"File":return this[px]();case"Directory":return this[mx]();case"SymbolicLink":return this[Um]();default:return this.end()}}[su](e){return Dx(e,this.type==="Directory",this.portable)}[Qt](e){return bx(e,this.prefix)}[Ba](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new vx({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this[su](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&&super.write(new Sx({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.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()),super.write(this.header.block)}[mx](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ba](),this.end()}[Um](){Zt.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[$m](t)})}[$m](e){this.linkpath=Yt(e),this[Ba](),this.end()}[gx](e){this.type="Link",this.linkpath=Yt(fx.relative(this.cwd,e)),this.stat.size=0,this[Ba](),this.end()}[px](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[gx](t)}this.linkCache.set(e,this.absolute)}if(this[Ba](),this.stat.size===0)return this.end();this[zm]()}[zm](){Zt.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Gm](t)})}[Gm](e){if(this.fd=e,this[yx])return this[Fr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[iu]()}[iu](){let{fd:e,buf:t,offset:r,length:s,pos:n}=this;Zt.read(e,t,r,s,n,(o,a)=>{if(o)return this[Fr](()=>this.emit("error",o));this[jm](a)})}[Fr](e){Zt.close(this.fd,e)}[jm](e){if(e<=0&&this.remain>0){let s=new Error("encountered unexpected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Fr](()=>this.emit("error",s))}if(e>this.remain){let s=new Error("did not encounter expected EOF");return s.path=this.absolute,s.syscall="read",s.code="EOF",this[Fr](()=>this.emit("error",s))}if(e===this.remain)for(let s=e;s<this.length&&e<this.blockRemain;s++)this.buf[s+this.offset]=0,e++,this.remain++;let t=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(t)?this[Mm]():this[Hm](()=>this[Mm]())}[Hm](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let t=new Error("writing more data than expected");return t.path=this.absolute,this.emit("error",t)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Mm](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Fr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[iu]()}}),Jm=class extends nu{[qm](){this[ru](Zt.lstatSync(this.absolute))}[Um](){this[$m](Zt.readlinkSync(this.absolute))}[zm](){this[Gm](Zt.openSync(this.absolute,"r"))}[iu](){let e=!0;try{let{fd:t,buf:r,offset:s,length:n,pos:o}=this,a=Zt.readSync(t,r,s,n,o);this[jm](a),e=!1}finally{if(e)try{this[Fr](()=>{})}catch{}}}[Hm](e){e()}[Fr](e){Zt.closeSync(this.fd),e()}},HN=wx(class extends Ex{constructor(e,t){t=t||{},super(t),this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=Yt(e.path),this.mode=this[su](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Yt(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let r=!1;if(!this.preservePaths){let[s,n]=xx(this.path);s&&(this.path=n,r=s)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new vx({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path}),this.header.encode()&&!this.noPax&&super.write(new Sx({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Qt](e){return bx(e,this.prefix)}[su](e){return Dx(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});nu.Sync=Jm;nu.Tar=HN;var JN=i=>i.isFile()?"File":i.isDirectory()?"Directory":i.isSymbolicLink()?"SymbolicLink":"Unsupported";Cx.exports=nu});var _x=S((mZ,Ax)=>{"use strict";y();Ax.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Vm=S((yZ,Tx)=>{"use strict";y();Tx.exports=z;z.Node=Cs;z.create=z;function z(i){var e=this;if(e instanceof z||(e=new z),e.tail=null,e.head=null,e.length=0,i&&typeof i.forEach=="function")i.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var e=i.next,t=i.prev;return e&&(e.prev=t),t&&(t.next=e),i===this.head&&(this.head=e),i===this.tail&&(this.tail=t),i.list.length--,i.next=null,i.prev=null,i.list=null,e};z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var e=this.head;i.list=this,i.next=e,e&&(e.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var e=this.tail;i.list=this,i.prev=e,e&&(e.next=i),this.tail=i,this.head||(this.head=i),this.length++}};z.prototype.push=function(){for(var i=0,e=arguments.length;i<e;i++)VN(this,arguments[i]);return this.length};z.prototype.unshift=function(){for(var i=0,e=arguments.length;i<e;i++)WN(this,arguments[i]);return this.length};z.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};z.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};z.prototype.forEach=function(i,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)i.call(e,t.value,r,this),t=t.next};z.prototype.forEachReverse=function(i,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)i.call(e,t.value,r,this),t=t.prev};z.prototype.get=function(i){for(var e=0,t=this.head;t!==null&&e<i;e++)t=t.next;if(e===i&&t!==null)return t.value};z.prototype.getReverse=function(i){for(var e=0,t=this.tail;t!==null&&e<i;e++)t=t.prev;if(e===i&&t!==null)return t.value};z.prototype.map=function(i,e){e=e||this;for(var t=new z,r=this.head;r!==null;)t.push(i.call(e,r.value,this)),r=r.next;return t};z.prototype.mapReverse=function(i,e){e=e||this;for(var t=new z,r=this.tail;r!==null;)t.push(i.call(e,r.value,this)),r=r.prev;return t};z.prototype.reduce=function(i,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;r!==null;s++)t=i(t,r.value,s),r=r.next;return t};z.prototype.reduceReverse=function(i,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;r!==null;s--)t=i(t,r.value,s),r=r.prev;return t};z.prototype.toArray=function(){for(var i=new Array(this.length),e=0,t=this.head;t!==null;e++)i[e]=t.value,t=t.next;return i};z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),e=0,t=this.tail;t!==null;e++)i[e]=t.value,t=t.prev;return i};z.prototype.slice=function(i,e){e=e||this.length,e<0&&(e+=this.length),i=i||0,i<0&&(i+=this.length);var t=new z;if(e<i||e<0)return t;i<0&&(i=0),e>this.length&&(e=this.length);for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;for(;s!==null&&r<e;r++,s=s.next)t.push(s.value);return t};z.prototype.sliceReverse=function(i,e){e=e||this.length,e<0&&(e+=this.length),i=i||0,i<0&&(i+=this.length);var t=new z;if(e<i||e<0)return t;i<0&&(i=0),e>this.length&&(e=this.length);for(var r=this.length,s=this.tail;s!==null&&r>e;r--)s=s.prev;for(;s!==null&&r>i;r--,s=s.prev)t.push(s.value);return t};z.prototype.splice=function(i,e,...t){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;for(var n=[],r=0;s&&r<e;r++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var r=0;r<t.length;r++)s=XN(this,s,t[r]);return n};z.prototype.reverse=function(){for(var i=this.head,e=this.tail,t=i;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=i,this};function XN(i,e,t){var r=e===i.head?new Cs(t,null,e,i):new Cs(t,e,e.next,i);return r.next===null&&(i.tail=r),r.prev===null&&(i.head=r),i.length++,r}function VN(i,e){i.tail=new Cs(e,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function WN(i,e){i.head=new Cs(e,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Cs(i,e,t,r){if(!(this instanceof Cs))return new Cs(i,e,t,r);this.list=r,this.value=i,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{_x()(z)}catch{}});var pu=S((vZ,Px)=>{"use strict";y();var fu=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},{Minipass:KN}=$h(),kx=Ra(),YN=Yh(),r0=Xm(),ZN=r0.Sync,QN=r0.Tar,e5=Vm(),Fx=Buffer.alloc(1024),cu=Symbol("onStat"),ou=Symbol("ended"),ei=Symbol("queue"),jn=Symbol("current"),As=Symbol("process"),au=Symbol("processing"),Rx=Symbol("processJob"),ti=Symbol("jobs"),Wm=Symbol("jobDone"),hu=Symbol("addFSEntry"),Ox=Symbol("addTarEntry"),Qm=Symbol("stat"),e0=Symbol("readdir"),uu=Symbol("onreaddir"),lu=Symbol("pipe"),Bx=Symbol("entry"),Km=Symbol("entryOpt"),t0=Symbol("writeEntryClass"),Ix=Symbol("write"),Ym=Symbol("ondrain"),du=b("fs"),Lx=b("path"),t5=eu(),Zm=Nn(),s0=t5(class extends KN{constructor(e){if(super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Zm(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[t0]=r0,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");e.gzip&&(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new kx.Gzip(e.gzip)),e.brotli&&(typeof e.brotli!="object"&&(e.brotli={}),this.zip=new kx.BrotliCompress(e.brotli)),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[Ym]()),this.on("resume",t=>this.zip.resume())}else this.on("drain",this[Ym]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[ei]=new e5,this[ti]=0,this.jobs=+e.jobs||4,this[au]=!1,this[ou]=!1}[Ix](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ou]=!0,this[As](),this}write(e){if(this[ou])throw new Error("write after end");return e instanceof YN?this[Ox](e):this[hu](e),this.flowing}[Ox](e){let t=Zm(Lx.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let r=new fu(e.path,t,!1);r.entry=new QN(e,this[Km](r)),r.entry.on("end",s=>this[Wm](r)),this[ti]+=1,this[ei].push(r)}this[As]()}[hu](e){let t=Zm(Lx.resolve(this.cwd,e));this[ei].push(new fu(e,t)),this[As]()}[Qm](e){e.pending=!0,this[ti]+=1;let t=this.follow?"stat":"lstat";du[t](e.absolute,(r,s)=>{e.pending=!1,this[ti]-=1,r?this.emit("error",r):this[cu](e,s)})}[cu](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[As]()}[e0](e){e.pending=!0,this[ti]+=1,du.readdir(e.absolute,(t,r)=>{if(e.pending=!1,this[ti]-=1,t)return this.emit("error",t);this[uu](e,r)})}[uu](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[As]()}[As](){if(!this[au]){this[au]=!0;for(let e=this[ei].head;e!==null&&this[ti]<this.jobs;e=e.next)if(this[Rx](e.value),e.value.ignore){let t=e.next;this[ei].removeNode(e),e.next=t}this[au]=!1,this[ou]&&!this[ei].length&&this[ti]===0&&(this.zip?this.zip.end(Fx):(super.write(Fx),super.end()))}}get[jn](){return this[ei]&&this[ei].head&&this[ei].head.value}[Wm](e){this[ei].shift(),this[ti]-=1,this[As]()}[Rx](e){if(!e.pending){if(e.entry){e===this[jn]&&!e.piped&&this[lu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[cu](e,this.statCache.get(e.absolute)):this[Qm](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[uu](e,this.readdirCache.get(e.absolute)):this[e0](e),!e.readdir))){if(e.entry=this[Bx](e),!e.entry){e.ignore=!0;return}e===this[jn]&&!e.piped&&this[lu](e)}}}[Km](e){return{onwarn:(t,r,s)=>this.warn(t,r,s),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Bx](e){this[ti]+=1;try{return new this[t0](e.path,this[Km](e)).on("end",()=>this[Wm](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[Ym](){this[jn]&&this[jn].entry&&this[jn].entry.resume()}[lu](e){e.piped=!0,e.readdir&&e.readdir.forEach(s=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[hu](o+s)});let t=e.entry,r=this.zip;r?t.on("data",s=>{r.write(s)||t.pause()}):t.on("data",s=>{super.write(s)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),i0=class extends s0{constructor(e){super(e),this[t0]=ZN}pause(){}resume(){}[Qm](e){let t=this.follow?"statSync":"lstatSync";this[cu](e,du[t](e.absolute))}[e0](e,t){this[uu](e,du.readdirSync(e.absolute))}[lu](e){let t=e.entry,r=this.zip;e.readdir&&e.readdir.forEach(s=>{let n=e.path,o=n==="./"?"":n.replace(/\/*$/,"/");this[hu](o+s)}),r?t.on("data",s=>{r.write(s)}):t.on("data",s=>{super[Ix](s)})}};s0.Sync=i0;Px.exports=s0});var Wn=S(Ia=>{"use strict";y();var i5=Ar(),r5=b("events").EventEmitter,Ye=b("fs"),a0=Ye.writev;if(!a0){let i=process.binding("fs"),e=i.FSReqWrap||i.FSReqCallback;a0=(t,r,s,n)=>{let o=(c,l)=>n(c,l,r),a=new e;a.oncomplete=o,i.writeBuffers(t,r,s,a)}}var Xn=Symbol("_autoClose"),It=Symbol("_close"),La=Symbol("_ended"),X=Symbol("_fd"),Nx=Symbol("_finished"),Or=Symbol("_flags"),n0=Symbol("_flush"),c0=Symbol("_handleChunk"),h0=Symbol("_makeBuf"),Su=Symbol("_mode"),mu=Symbol("_needDrain"),Hn=Symbol("_onerror"),Vn=Symbol("_onopen"),o0=Symbol("_onread"),zn=Symbol("_onwrite"),Br=Symbol("_open"),Ri=Symbol("_path"),_s=Symbol("_pos"),ii=Symbol("_queue"),Gn=Symbol("_read"),Mx=Symbol("_readSize"),Rr=Symbol("_reading"),gu=Symbol("_remain"),Ux=Symbol("_size"),yu=Symbol("_write"),$n=Symbol("_writing"),Eu=Symbol("_defaultFlag"),Jn=Symbol("_errored"),vu=class extends i5{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Jn]=!1,this[X]=typeof t.fd=="number"?t.fd:null,this[Ri]=e,this[Mx]=t.readSize||16*1024*1024,this[Rr]=!1,this[Ux]=typeof t.size=="number"?t.size:1/0,this[gu]=this[Ux],this[Xn]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[X]=="number"?this[Gn]():this[Br]()}get fd(){return this[X]}get path(){return this[Ri]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Br](){Ye.open(this[Ri],"r",(e,t)=>this[Vn](e,t))}[Vn](e,t){e?this[Hn](e):(this[X]=t,this.emit("open",t),this[Gn]())}[h0](){return Buffer.allocUnsafe(Math.min(this[Mx],this[gu]))}[Gn](){if(!this[Rr]){this[Rr]=!0;let e=this[h0]();if(e.length===0)return process.nextTick(()=>this[o0](null,0,e));Ye.read(this[X],e,0,e.length,null,(t,r,s)=>this[o0](t,r,s))}}[o0](e,t,r){this[Rr]=!1,e?this[Hn](e):this[c0](t,r)&&this[Gn]()}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[Hn](e){this[Rr]=!0,this[It](),this.emit("error",e)}[c0](e,t){let r=!1;return this[gu]-=e,e>0&&(r=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[gu]<=0)&&(r=!1,this[It](),super.end()),r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[X]=="number"&&this[Gn]();break;case"error":return this[Jn]?void 0:(this[Jn]=!0,super.emit(e,t));default:return super.emit(e,t)}}},u0=class extends vu{[Br](){let e=!0;try{this[Vn](null,Ye.openSync(this[Ri],"r")),e=!1}finally{e&&this[It]()}}[Gn](){let e=!0;try{if(!this[Rr]){this[Rr]=!0;do{let t=this[h0](),r=t.length===0?0:Ye.readSync(this[X],t,0,t.length,null);if(!this[c0](r,t))break}while(!0);this[Rr]=!1}e=!1}finally{e&&this[It]()}}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.closeSync(e),this.emit("close")}}},bu=class extends r5{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[Jn]=!1,this[$n]=!1,this[La]=!1,this[mu]=!1,this[ii]=[],this[Ri]=e,this[X]=typeof t.fd=="number"?t.fd:null,this[Su]=t.mode===void 0?438:t.mode,this[_s]=typeof t.start=="number"?t.start:null,this[Xn]=typeof t.autoClose=="boolean"?t.autoClose:!0;let r=this[_s]!==null?"r+":"w";this[Eu]=t.flags===void 0,this[Or]=this[Eu]?r:t.flags,this[X]===null&&this[Br]()}emit(e,t){if(e==="error"){if(this[Jn])return;this[Jn]=!0}return super.emit(e,t)}get fd(){return this[X]}get path(){return this[Ri]}[Hn](e){this[It](),this[$n]=!0,this.emit("error",e)}[Br](){Ye.open(this[Ri],this[Or],this[Su],(e,t)=>this[Vn](e,t))}[Vn](e,t){this[Eu]&&this[Or]==="r+"&&e&&e.code==="ENOENT"?(this[Or]="w",this[Br]()):e?this[Hn](e):(this[X]=t,this.emit("open",t),this[n0]())}end(e,t){return e&&this.write(e,t),this[La]=!0,!this[$n]&&!this[ii].length&&typeof this[X]=="number"&&this[zn](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[La]?(this.emit("error",new Error("write() after end()")),!1):this[X]===null||this[$n]||this[ii].length?(this[ii].push(e),this[mu]=!0,!1):(this[$n]=!0,this[yu](e),!0)}[yu](e){Ye.write(this[X],e,0,e.length,this[_s],(t,r)=>this[zn](t,r))}[zn](e,t){e?this[Hn](e):(this[_s]!==null&&(this[_s]+=t),this[ii].length?this[n0]():(this[$n]=!1,this[La]&&!this[Nx]?(this[Nx]=!0,this[It](),this.emit("finish")):this[mu]&&(this[mu]=!1,this.emit("drain"))))}[n0](){if(this[ii].length===0)this[La]&&this[zn](null,0);else if(this[ii].length===1)this[yu](this[ii].pop());else{let e=this[ii];this[ii]=[],a0(this[X],e,this[_s],(t,r)=>this[zn](t,r))}}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},l0=class extends bu{[Br](){let e;if(this[Eu]&&this[Or]==="r+")try{e=Ye.openSync(this[Ri],this[Or],this[Su])}catch(t){if(t.code==="ENOENT")return this[Or]="w",this[Br]();throw t}else e=Ye.openSync(this[Ri],this[Or],this[Su]);this[Vn](null,e)}[It](){if(this[Xn]&&typeof this[X]=="number"){let e=this[X];this[X]=null,Ye.closeSync(e),this.emit("close")}}[yu](e){let t=!0;try{this[zn](null,Ye.writeSync(this[X],e,0,e.length,this[_s])),t=!1}finally{if(t)try{this[It]()}catch{}}}};Ia.ReadStream=vu;Ia.ReadStreamSync=u0;Ia.WriteStream=bu;Ia.WriteStreamSync=l0});var Tu=S((CZ,Wx)=>{"use strict";y();var s5=eu(),qx=Un(),n5=b("events"),o5=Vm(),a5=1024*1024,c5=Yh(),jx=Qh(),$x=Ra(),{nextTick:h5}=b("process"),f0=Buffer.from([31,139]),wt=Symbol("state"),Ts=Symbol("writeEntry"),Oi=Symbol("readEntry"),d0=Symbol("nextEntry"),zx=Symbol("processEntry"),xt=Symbol("extendedHeader"),Pa=Symbol("globalExtendedHeader"),Lr=Symbol("meta"),Gx=Symbol("emitMeta"),Z=Symbol("buffer"),Bi=Symbol("queue"),Ir=Symbol("ended"),Hx=Symbol("emittedEnd"),ks=Symbol("emit"),we=Symbol("unzip"),wu=Symbol("consumeChunk"),xu=Symbol("consumeChunkSub"),p0=Symbol("consumeBody"),Jx=Symbol("consumeMeta"),Xx=Symbol("consumeHeader"),Du=Symbol("consuming"),m0=Symbol("bufferConcat"),g0=Symbol("maybeEnd"),Na=Symbol("writing"),Pr=Symbol("aborted"),Cu=Symbol("onDone"),Fs=Symbol("sawValidEntry"),Au=Symbol("sawNullBlock"),_u=Symbol("sawEOF"),Vx=Symbol("closeStream"),u5=i=>!0;Wx.exports=s5(class extends n5{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Fs]=null,this.on(Cu,r=>{(this[wt]==="begin"||this[Fs]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Cu,e.ondone):this.on(Cu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||a5,this.filter=typeof e.filter=="function"?e.filter:u5;let t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=!e.gzip&&e.brotli!==void 0?e.brotli:t?void 0:!1,this.writable=!0,this.readable=!1,this[Bi]=new o5,this[Z]=null,this[Oi]=null,this[Ts]=null,this[wt]="begin",this[Lr]="",this[xt]=null,this[Pa]=null,this[Ir]=!1,this[we]=null,this[Pr]=!1,this[Au]=!1,this[_u]=!1,this.on("end",()=>this[Vx]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Xx](e,t){this[Fs]===null&&(this[Fs]=!1);let r;try{r=new qx(e,t,this[xt],this[Pa])}catch(s){return this.warn("TAR_ENTRY_INVALID",s)}if(r.nullBlock)this[Au]?(this[_u]=!0,this[wt]==="begin"&&(this[wt]="header"),this[ks]("eof")):(this[Au]=!0,this[ks]("nullBlock"));else if(this[Au]=!1,!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{let s=r.type;if(/^(Symbolic)?Link$/.test(s)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(s)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{let n=this[Ts]=new c5(r,this[xt],this[Pa]);if(!this[Fs])if(n.remain){let o=()=>{n.invalid||(this[Fs]=!0)};n.on("end",o)}else this[Fs]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[ks]("ignoredEntry",n),this[wt]="ignore",n.resume()):n.size>0&&(this[Lr]="",n.on("data",o=>this[Lr]+=o),this[wt]="meta"):(this[xt]=null,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[ks]("ignoredEntry",n),this[wt]=n.remain?"ignore":"header",n.resume()):(n.remain?this[wt]="body":(this[wt]="header",n.end()),this[Oi]?this[Bi].push(n):(this[Bi].push(n),this[d0]())))}}}[Vx](){h5(()=>this.emit("close"))}[zx](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Oi]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",r=>this[d0]()),t=!1)):(this[Oi]=null,t=!1),t}[d0](){do;while(this[zx](this[Bi].shift()));if(!this[Bi].length){let e=this[Oi];!e||e.flowing||e.size===e.remain?this[Na]||this.emit("drain"):e.once("drain",r=>this.emit("drain"))}}[p0](e,t){let r=this[Ts],s=r.blockRemain,n=s>=e.length&&t===0?e:e.slice(t,t+s);return r.write(n),r.blockRemain||(this[wt]="header",this[Ts]=null,r.end()),n.length}[Jx](e,t){let r=this[Ts],s=this[p0](e,t);return this[Ts]||this[Gx](r),s}[ks](e,t,r){!this[Bi].length&&!this[Oi]?this.emit(e,t,r):this[Bi].push([e,t,r])}[Gx](e){switch(this[ks]("meta",this[Lr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[xt]=jx.parse(this[Lr],this[xt],!1);break;case"GlobalExtendedHeader":this[Pa]=jx.parse(this[Lr],this[Pa],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[xt]=this[xt]||Object.create(null),this[xt].path=this[Lr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[xt]=this[xt]||Object.create(null),this[xt].linkpath=this[Lr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Pr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Pr])return;if((this[we]===null||this.brotli===void 0&&this[we]===!1)&&e){if(this[Z]&&(e=Buffer.concat([this[Z],e]),this[Z]=null),e.length<f0.length)return this[Z]=e,!0;for(let n=0;this[we]===null&&n<f0.length;n++)e[n]!==f0[n]&&(this[we]=!1);let s=this.brotli===void 0;if(this[we]===!1&&s)if(e.length<512)if(this[Ir])this.brotli=!0;else return this[Z]=e,!0;else try{new qx(e.slice(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[we]===null||this[we]===!1&&this.brotli){let n=this[Ir];this[Ir]=!1,this[we]=this[we]===null?new $x.Unzip:new $x.BrotliDecompress,this[we].on("data",a=>this[wu](a)),this[we].on("error",a=>this.abort(a)),this[we].on("end",a=>{this[Ir]=!0,this[wu]()}),this[Na]=!0;let o=this[we][n?"end":"write"](e);return this[Na]=!1,o}}this[Na]=!0,this[we]?this[we].write(e):this[wu](e),this[Na]=!1;let r=this[Bi].length?!1:this[Oi]?this[Oi].flowing:!0;return!r&&!this[Bi].length&&this[Oi].once("drain",s=>this.emit("drain")),r}[m0](e){e&&!this[Pr]&&(this[Z]=this[Z]?Buffer.concat([this[Z],e]):e)}[g0](){if(this[Ir]&&!this[Hx]&&!this[Pr]&&!this[Du]){this[Hx]=!0;let e=this[Ts];if(e&&e.blockRemain){let t=this[Z]?this[Z].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Z]&&e.write(this[Z]),e.end()}this[ks](Cu)}}[wu](e){if(this[Du])this[m0](e);else if(!e&&!this[Z])this[g0]();else{if(this[Du]=!0,this[Z]){this[m0](e);let t=this[Z];this[Z]=null,this[xu](t)}else this[xu](e);for(;this[Z]&&this[Z].length>=512&&!this[Pr]&&!this[_u];){let t=this[Z];this[Z]=null,this[xu](t)}this[Du]=!1}(!this[Z]||this[Ir])&&this[g0]()}[xu](e){let t=0,r=e.length;for(;t+512<=r&&!this[Pr]&&!this[_u];)switch(this[wt]){case"begin":case"header":this[Xx](e,t),t+=512;break;case"ignore":case"body":t+=this[p0](e,t);break;case"meta":t+=this[Jx](e,t);break;default:throw new Error("invalid state: "+this[wt])}t<r&&(this[Z]?this[Z]=Buffer.concat([e.slice(t),this[Z]]):this[Z]=e.slice(t))}end(e){this[Pr]||(this[we]?this[we].end(e):(this[Ir]=!0,this.brotli===void 0&&(e=e||Buffer.alloc(0)),this.write(e)))}})});var ku=S((_Z,Qx)=>{"use strict";y();var l5=On(),Yx=Tu(),Kn=b("fs"),f5=Wn(),Kx=b("path"),y0=qn();Qx.exports=(i,e,t)=>{typeof i=="function"?(t=i,e=null,i={}):Array.isArray(i)&&(e=i,i={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let r=l5(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&p5(r,e),r.noResume||d5(r),r.file&&r.sync?m5(r):r.file?g5(r,t):Zx(r)};var d5=i=>{let e=i.onentry;i.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},p5=(i,e)=>{let t=new Map(e.map(n=>[y0(n),!0])),r=i.filter,s=(n,o)=>{let a=o||Kx.parse(n).root||".",c=n===a?!1:t.has(n)?t.get(n):s(Kx.dirname(n),a);return t.set(n,c),c};i.filter=r?(n,o)=>r(n,o)&&s(y0(n)):n=>s(y0(n))},m5=i=>{let e=Zx(i),t=i.file,r=!0,s;try{let n=Kn.statSync(t),o=i.maxReadSize||16*1024*1024;if(n.size<o)e.end(Kn.readFileSync(t));else{let a=0,c=Buffer.allocUnsafe(o);for(s=Kn.openSync(t,"r");a<n.size;){let l=Kn.readSync(s,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}r=!1}finally{if(r&&s)try{Kn.closeSync(s)}catch{}}},g5=(i,e)=>{let t=new Yx(i),r=i.maxReadSize||16*1024*1024,s=i.file,n=new Promise((o,a)=>{t.on("error",a),t.on("end",o),Kn.stat(s,(c,l)=>{if(c)a(c);else{let f=new f5.ReadStream(s,{readSize:r,size:l.size});f.on("error",a),f.pipe(t)}})});return e?n.then(e,e):n},Zx=i=>new Yx(i)});var nD=S((kZ,sD)=>{"use strict";y();var y5=On(),Fu=pu(),eD=Wn(),tD=ku(),iD=b("path");sD.exports=(i,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(i)&&(e=i,i={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let r=y5(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return r.file&&r.sync?E5(r,e):r.file?S5(r,e,t):r.sync?v5(r,e):b5(r,e)};var E5=(i,e)=>{let t=new Fu.Sync(i),r=new eD.WriteStreamSync(i.file,{mode:i.mode||438});t.pipe(r),rD(t,e)},S5=(i,e,t)=>{let r=new Fu(i),s=new eD.WriteStream(i.file,{mode:i.mode||438});r.pipe(s);let n=new Promise((o,a)=>{s.on("error",a),s.on("close",o),r.on("error",a)});return E0(r,e),t?n.then(t,t):n},rD=(i,e)=>{e.forEach(t=>{t.charAt(0)==="@"?tD({file:iD.resolve(i.cwd,t.slice(1)),sync:!0,noResume:!0,onentry:r=>i.add(r)}):i.add(t)}),i.end()},E0=(i,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return tD({file:iD.resolve(i.cwd,t.slice(1)),noResume:!0,onentry:r=>i.add(r)}).then(r=>E0(i,e));i.add(t)}i.end()},v5=(i,e)=>{let t=new Fu.Sync(i);return rD(t,e),t},b5=(i,e)=>{let t=new Fu(i);return E0(t,e),t}});var S0=S((RZ,fD)=>{"use strict";y();var w5=On(),oD=pu(),ft=b("fs"),aD=Wn(),cD=ku(),hD=b("path"),uD=Un();fD.exports=(i,e,t)=>{let r=w5(i);if(!r.file)throw new TypeError("file is required");if(r.gzip||r.brotli||r.file.endsWith(".br")||r.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),r.sync?x5(r,e):C5(r,e,t)};var x5=(i,e)=>{let t=new oD.Sync(i),r=!0,s,n;try{try{s=ft.openSync(i.file,"r+")}catch(c){if(c.code==="ENOENT")s=ft.openSync(i.file,"w+");else throw c}let o=ft.fstatSync(s),a=Buffer.alloc(512);e:for(n=0;n<o.size;n+=512){for(let f=0,m=0;f<512;f+=m){if(m=ft.readSync(s,a,f,a.length-f,n+f),n===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!m)break e}let c=new uD(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(n+l+512>o.size)break;n+=l,i.mtimeCache&&i.mtimeCache.set(c.path,c.mtime)}r=!1,D5(i,t,n,s,e)}finally{if(r)try{ft.closeSync(s)}catch{}}},D5=(i,e,t,r,s)=>{let n=new aD.WriteStreamSync(i.file,{fd:r,start:t});e.pipe(n),A5(e,s)},C5=(i,e,t)=>{e=Array.from(e);let r=new oD(i),s=(o,a,c)=>{let l=(u,p)=>{u?ft.close(o,g=>c(u)):c(null,p)},f=0;if(a===0)return l(null,0);let m=0,d=Buffer.alloc(512),h=(u,p)=>{if(u)return l(u);if(m+=p,m<512&&p)return ft.read(o,d,m,d.length-m,f+m,h);if(f===0&&d[0]===31&&d[1]===139)return l(new Error("cannot append to compressed archives"));if(m<512)return l(null,f);let g=new uD(d);if(!g.cksumValid)return l(null,f);let E=512*Math.ceil(g.size/512);if(f+E+512>a||(f+=E+512,f>=a))return l(null,f);i.mtimeCache&&i.mtimeCache.set(g.path,g.mtime),m=0,ft.read(o,d,0,512,f,h)};ft.read(o,d,0,512,f,h)},n=new Promise((o,a)=>{r.on("error",a);let c="r+",l=(f,m)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",ft.open(i.file,c,l);if(f)return a(f);ft.fstat(m,(d,h)=>{if(d)return ft.close(m,()=>a(d));s(m,h.size,(u,p)=>{if(u)return a(u);let g=new aD.WriteStream(i.file,{fd:m,start:p});r.pipe(g),g.on("error",a),g.on("close",o),lD(r,e)})})};ft.open(i.file,c,l)});return t?n.then(t,t):n},A5=(i,e)=>{e.forEach(t=>{t.charAt(0)==="@"?cD({file:hD.resolve(i.cwd,t.slice(1)),sync:!0,noResume:!0,onentry:r=>i.add(r)}):i.add(t)}),i.end()},lD=(i,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return cD({file:hD.resolve(i.cwd,t.slice(1)),noResume:!0,onentry:r=>i.add(r)}).then(r=>lD(i,e));i.add(t)}i.end()}});var pD=S((BZ,dD)=>{"use strict";y();var _5=On(),T5=S0();dD.exports=(i,e,t)=>{let r=_5(i);if(!r.file)throw new TypeError("file is required");if(r.gzip||r.brotli||r.file.endsWith(".br")||r.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),k5(r),T5(r,e,t)};var k5=i=>{let e=i.filter;i.mtimeCache||(i.mtimeCache=new Map),i.filter=e?(t,r)=>e(t,r)&&!(i.mtimeCache.get(t)>r.mtime):(t,r)=>!(i.mtimeCache.get(t)>r.mtime)}});var yD=S((IZ,gD)=>{"use strict";y();var{promisify:mD}=b("util"),Nr=b("fs"),F5=i=>{if(!i)i={mode:511,fs:Nr};else if(typeof i=="object")i={mode:511,fs:Nr,...i};else if(typeof i=="number")i={mode:i,fs:Nr};else if(typeof i=="string")i={mode:parseInt(i,8),fs:Nr};else throw new TypeError("invalid options argument");return i.mkdir=i.mkdir||i.fs.mkdir||Nr.mkdir,i.mkdirAsync=mD(i.mkdir),i.stat=i.stat||i.fs.stat||Nr.stat,i.statAsync=mD(i.stat),i.statSync=i.statSync||i.fs.statSync||Nr.statSync,i.mkdirSync=i.mkdirSync||i.fs.mkdirSync||Nr.mkdirSync,i};gD.exports=F5});var SD=S((NZ,ED)=>{"use strict";y();var R5=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:O5,parse:B5}=b("path"),L5=i=>{if(/\0/.test(i))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:i,code:"ERR_INVALID_ARG_VALUE"});if(i=O5(i),R5==="win32"){let e=/[*|"<>?:]/,{root:t}=B5(i);if(e.test(i.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:i,code:"EINVAL"})}return i};ED.exports=L5});var DD=S((UZ,xD)=>{"use strict";y();var{dirname:vD}=b("path"),bD=(i,e,t=void 0)=>t===e?Promise.resolve():i.statAsync(e).then(r=>r.isDirectory()?t:void 0,r=>r.code==="ENOENT"?bD(i,vD(e),e):void 0),wD=(i,e,t=void 0)=>{if(t!==e)try{return i.statSync(e).isDirectory()?t:void 0}catch(r){return r.code==="ENOENT"?wD(i,vD(e),e):void 0}};xD.exports={findMade:bD,findMadeSync:wD}});var w0=S((jZ,AD)=>{"use strict";y();var{dirname:CD}=b("path"),v0=(i,e,t)=>{e.recursive=!1;let r=CD(i);return r===i?e.mkdirAsync(i,e).catch(s=>{if(s.code!=="EISDIR")throw s}):e.mkdirAsync(i,e).then(()=>t||i,s=>{if(s.code==="ENOENT")return v0(r,e).then(n=>v0(i,e,n));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;return e.statAsync(i).then(n=>{if(n.isDirectory())return t;throw s},()=>{throw s})})},b0=(i,e,t)=>{let r=CD(i);if(e.recursive=!1,r===i)try{return e.mkdirSync(i,e)}catch(s){if(s.code!=="EISDIR")throw s;return}try{return e.mkdirSync(i,e),t||i}catch(s){if(s.code==="ENOENT")return b0(i,e,b0(r,e,t));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;try{if(!e.statSync(i).isDirectory())throw s}catch{throw s}}};AD.exports={mkdirpManual:v0,mkdirpManualSync:b0}});var kD=S((zZ,TD)=>{"use strict";y();var{dirname:_D}=b("path"),{findMade:I5,findMadeSync:P5}=DD(),{mkdirpManual:N5,mkdirpManualSync:M5}=w0(),U5=(i,e)=>(e.recursive=!0,_D(i)===i?e.mkdirAsync(i,e):I5(e,i).then(r=>e.mkdirAsync(i,e).then(()=>r).catch(s=>{if(s.code==="ENOENT")return N5(i,e);throw s}))),q5=(i,e)=>{if(e.recursive=!0,_D(i)===i)return e.mkdirSync(i,e);let r=P5(e,i);try{return e.mkdirSync(i,e),r}catch(s){if(s.code==="ENOENT")return M5(i,e);throw s}};TD.exports={mkdirpNative:U5,mkdirpNativeSync:q5}});var BD=S((HZ,OD)=>{"use strict";y();var FD=b("fs"),j5=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,x0=j5.replace(/^v/,"").split("."),RD=+x0[0]>10||+x0[0]==10&&+x0[1]>=12,$5=RD?i=>i.mkdir===FD.mkdir:()=>!1,z5=RD?i=>i.mkdirSync===FD.mkdirSync:()=>!1;OD.exports={useNative:$5,useNativeSync:z5}});var D0=S((XZ,MD)=>{"use strict";y();var Yn=yD(),Zn=SD(),{mkdirpNative:LD,mkdirpNativeSync:ID}=kD(),{mkdirpManual:PD,mkdirpManualSync:ND}=w0(),{useNative:G5,useNativeSync:H5}=BD(),Qn=(i,e)=>(i=Zn(i),e=Yn(e),G5(e)?LD(i,e):PD(i,e)),J5=(i,e)=>(i=Zn(i),e=Yn(e),H5(e)?ID(i,e):ND(i,e));Qn.sync=J5;Qn.native=(i,e)=>LD(Zn(i),Yn(e));Qn.manual=(i,e)=>PD(Zn(i),Yn(e));Qn.nativeSync=(i,e)=>ID(Zn(i),Yn(e));Qn.manualSync=(i,e)=>ND(Zn(i),Yn(e));MD.exports=Qn});var HD=S((WZ,GD)=>{"use strict";y();var Dt=b("fs"),Rs=b("path"),X5=Dt.lchown?"lchown":"chown",V5=Dt.lchownSync?"lchownSync":"chownSync",qD=Dt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),UD=(i,e,t)=>{try{return Dt[V5](i,e,t)}catch(r){if(r.code!=="ENOENT")throw r}},W5=(i,e,t)=>{try{return Dt.chownSync(i,e,t)}catch(r){if(r.code!=="ENOENT")throw r}},K5=qD?(i,e,t,r)=>s=>{!s||s.code!=="EISDIR"?r(s):Dt.chown(i,e,t,r)}:(i,e,t,r)=>r,C0=qD?(i,e,t)=>{try{return UD(i,e,t)}catch(r){if(r.code!=="EISDIR")throw r;W5(i,e,t)}}:(i,e,t)=>UD(i,e,t),Y5=process.version,jD=(i,e,t)=>Dt.readdir(i,e,t),Z5=(i,e)=>Dt.readdirSync(i,e);/^v4\./.test(Y5)&&(jD=(i,e,t)=>Dt.readdir(i,t));var Ru=(i,e,t,r)=>{Dt[X5](i,e,t,K5(i,e,t,s=>{r(s&&s.code!=="ENOENT"?s:null)}))},$D=(i,e,t,r,s)=>{if(typeof e=="string")return Dt.lstat(Rs.resolve(i,e),(n,o)=>{if(n)return s(n.code!=="ENOENT"?n:null);o.name=e,$D(i,o,t,r,s)});if(e.isDirectory())A0(Rs.resolve(i,e.name),t,r,n=>{if(n)return s(n);let o=Rs.resolve(i,e.name);Ru(o,t,r,s)});else{let n=Rs.resolve(i,e.name);Ru(n,t,r,s)}},A0=(i,e,t,r)=>{jD(i,{withFileTypes:!0},(s,n)=>{if(s){if(s.code==="ENOENT")return r();if(s.code!=="ENOTDIR"&&s.code!=="ENOTSUP")return r(s)}if(s||!n.length)return Ru(i,e,t,r);let o=n.length,a=null,c=l=>{if(!a){if(l)return r(a=l);if(--o===0)return Ru(i,e,t,r)}};n.forEach(l=>$D(i,l,e,t,c))})},Q5=(i,e,t,r)=>{if(typeof e=="string")try{let s=Dt.lstatSync(Rs.resolve(i,e));s.name=e,e=s}catch(s){if(s.code==="ENOENT")return;throw s}e.isDirectory()&&zD(Rs.resolve(i,e.name),t,r),C0(Rs.resolve(i,e.name),t,r)},zD=(i,e,t)=>{let r;try{r=Z5(i,{withFileTypes:!0})}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR"||s.code==="ENOTSUP")return C0(i,e,t);throw s}return r&&r.length&&r.forEach(s=>Q5(i,s,e,t)),C0(i,e,t)};GD.exports=A0;A0.sync=zD});var WD=S((YZ,_0)=>{"use strict";y();var JD=D0(),Ct=b("fs"),Ou=b("path"),XD=HD(),Pt=Nn(),Bu=class extends Error{constructor(e,t){super("Cannot extract through symbolic link"),this.path=t,this.symlink=e}get name(){return"SylinkError"}},Lu=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'"),this.path=e,this.code=t}get name(){return"CwdError"}},Iu=(i,e)=>i.get(Pt(e)),Ma=(i,e,t)=>i.set(Pt(e),t),e3=(i,e)=>{Ct.stat(i,(t,r)=>{(t||!r.isDirectory())&&(t=new Lu(i,t&&t.code||"ENOTDIR")),e(t)})};_0.exports=(i,e,t)=>{i=Pt(i);let r=e.umask,s=e.mode|448,n=(s&r)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,f=e.unlink,m=e.cache,d=Pt(e.cwd),h=(g,E)=>{g?t(g):(Ma(m,i,!0),E&&c?XD(E,o,a,v=>h(v)):n?Ct.chmod(i,s,t):t())};if(m&&Iu(m,i)===!0)return h();if(i===d)return e3(i,h);if(l)return JD(i,{mode:s}).then(g=>h(null,g),h);let p=Pt(Ou.relative(d,i)).split("/");Pu(d,p,s,m,f,d,null,h)};var Pu=(i,e,t,r,s,n,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=Pt(Ou.resolve(i+"/"+c));if(Iu(r,l))return Pu(l,e,t,r,s,n,o,a);Ct.mkdir(l,t,VD(l,e,t,r,s,n,o,a))},VD=(i,e,t,r,s,n,o,a)=>c=>{c?Ct.lstat(i,(l,f)=>{if(l)l.path=l.path&&Pt(l.path),a(l);else if(f.isDirectory())Pu(i,e,t,r,s,n,o,a);else if(s)Ct.unlink(i,m=>{if(m)return a(m);Ct.mkdir(i,t,VD(i,e,t,r,s,n,o,a))});else{if(f.isSymbolicLink())return a(new Bu(i,i+"/"+e.join("/")));a(c)}}):(o=o||i,Pu(i,e,t,r,s,n,o,a))},t3=i=>{let e=!1,t="ENOTDIR";try{e=Ct.statSync(i).isDirectory()}catch(r){t=r.code}finally{if(!e)throw new Lu(i,t)}};_0.exports.sync=(i,e)=>{i=Pt(i);let t=e.umask,r=e.mode|448,s=(r&t)!==0,n=e.uid,o=e.gid,a=typeof n=="number"&&typeof o=="number"&&(n!==e.processUid||o!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,m=Pt(e.cwd),d=g=>{Ma(f,i,!0),g&&a&&XD.sync(g,n,o),s&&Ct.chmodSync(i,r)};if(f&&Iu(f,i)===!0)return d();if(i===m)return t3(m),d();if(c)return d(JD.sync(i,r));let u=Pt(Ou.relative(m,i)).split("/"),p=null;for(let g=u.shift(),E=m;g&&(E+="/"+g);g=u.shift())if(E=Pt(Ou.resolve(E)),!Iu(f,E))try{Ct.mkdirSync(E,r),p=p||E,Ma(f,E,!0)}catch{let D=Ct.lstatSync(E);if(D.isDirectory()){Ma(f,E,!0);continue}else if(l){Ct.unlinkSync(E),Ct.mkdirSync(E,r),p=p||E,Ma(f,E,!0);continue}else if(D.isSymbolicLink())return new Bu(E,E+"/"+u.join("/"))}return d(p)}});var k0=S((QZ,KD)=>{"use strict";y();var T0=Object.create(null),{hasOwnProperty:i3}=Object.prototype;KD.exports=i=>(i3.call(T0,i)||(T0[i]=i.normalize("NFD")),T0[i])});var eC=S((tQ,QD)=>{"use strict";y();var YD=b("assert"),r3=k0(),s3=qn(),{join:ZD}=b("path"),n3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,o3=n3==="win32";QD.exports=()=>{let i=new Map,e=new Map,t=l=>l.split("/").slice(0,-1).reduce((m,d)=>(m.length&&(d=ZD(m[m.length-1],d)),m.push(d||"/"),m),[]),r=new Set,s=l=>{let f=e.get(l);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(m=>i.get(m)),dirs:[...f.dirs].map(m=>i.get(m))}},n=l=>{let{paths:f,dirs:m}=s(l);return f.every(d=>d[0]===l)&&m.every(d=>d[0]instanceof Set&&d[0].has(l))},o=l=>r.has(l)||!n(l)?!1:(r.add(l),l(()=>a(l)),!0),a=l=>{if(!r.has(l))return!1;let{paths:f,dirs:m}=e.get(l),d=new Set;return f.forEach(h=>{let u=i.get(h);YD.equal(u[0],l),u.length===1?i.delete(h):(u.shift(),typeof u[0]=="function"?d.add(u[0]):u[0].forEach(p=>d.add(p)))}),m.forEach(h=>{let u=i.get(h);YD(u[0]instanceof Set),u[0].size===1&&u.length===1?i.delete(h):u[0].size===1?(u.shift(),d.add(u[0])):u[0].delete(l)}),r.delete(l),d.forEach(h=>o(h)),!0};return{check:n,reserve:(l,f)=>{l=o3?["win32 parallelization disabled"]:l.map(d=>s3(ZD(r3(d))).toLowerCase());let m=new Set(l.map(d=>t(d)).reduce((d,h)=>d.concat(h)));return e.set(f,{dirs:m,paths:l}),l.forEach(d=>{let h=i.get(d);h?h.push(f):i.set(d,[f])}),m.forEach(d=>{let h=i.get(d);h?h[h.length-1]instanceof Set?h[h.length-1].add(f):h.push(new Set([f])):i.set(d,[new Set([f])])}),o(f)}}}});var rC=S((rQ,iC)=>{"use strict";y();var a3=process.env.__FAKE_PLATFORM__||process.platform,c3=a3==="win32",h3=global.__FAKE_TESTING_FS__||b("fs"),{O_CREAT:u3,O_TRUNC:l3,O_WRONLY:f3,UV_FS_O_FILEMAP:tC=0}=h3.constants,d3=c3&&!!tC,p3=512*1024,m3=tC|l3|u3|f3;iC.exports=d3?i=>i<p3?m3:"w":()=>"w"});var M0=S((nQ,yC)=>{"use strict";y();var g3=b("assert"),y3=Tu(),G=b("fs"),E3=Wn(),Li=b("path"),pC=WD(),sC=Pm(),S3=eC(),v3=Nm(),At=Nn(),b3=qn(),w3=k0(),nC=Symbol("onEntry"),O0=Symbol("checkFs"),oC=Symbol("checkFs2"),Uu=Symbol("pruneCache"),B0=Symbol("isReusable"),_t=Symbol("makeFs"),L0=Symbol("file"),I0=Symbol("directory"),qu=Symbol("link"),aC=Symbol("symlink"),cC=Symbol("hardlink"),hC=Symbol("unsupported"),uC=Symbol("checkPath"),Mr=Symbol("mkdir"),$e=Symbol("onError"),Nu=Symbol("pending"),lC=Symbol("pend"),eo=Symbol("unpend"),F0=Symbol("ended"),R0=Symbol("maybeClose"),P0=Symbol("skip"),Ua=Symbol("doChown"),qa=Symbol("uid"),ja=Symbol("gid"),$a=Symbol("checkedCwd"),mC=b("crypto"),gC=rC(),x3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,za=x3==="win32",D3=1024,C3=(i,e)=>{if(!za)return G.unlink(i,e);let t=i+".DELETE."+mC.randomBytes(16).toString("hex");G.rename(i,t,r=>{if(r)return e(r);G.unlink(t,e)})},A3=i=>{if(!za)return G.unlinkSync(i);let e=i+".DELETE."+mC.randomBytes(16).toString("hex");G.renameSync(i,e),G.unlinkSync(e)},fC=(i,e,t)=>i===i>>>0?i:e===e>>>0?e:t,dC=i=>b3(At(w3(i))).toLowerCase(),_3=(i,e)=>{e=dC(e);for(let t of i.keys()){let r=dC(t);(r===e||r.indexOf(e+"/")===0)&&i.delete(t)}},T3=i=>{for(let e of i.keys())i.delete(e)},Ga=class extends y3{constructor(e){if(e||(e={}),e.ondone=t=>{this[F0]=!0,this[R0]()},super(e),this[$a]=!1,this.reservations=S3(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Nu]=0,this[F0]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:D3,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||za,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=At(Li.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[nC](t))}warn(e,t,r={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(r.recoverable=!1),super.warn(e,t,r)}[R0](){this[F0]&&this[Nu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[uC](e){let t=At(e.path),r=t.split("/");if(this.strip){if(r.length<this.strip)return!1;if(e.type==="Link"){let s=At(e.linkpath).split("/");if(s.length>=this.strip)e.linkpath=s.slice(this.strip).join("/");else return!1}r.splice(0,this.strip),e.path=r.join("/")}if(isFinite(this.maxDepth)&&r.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:r.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(r.includes("..")||za&&/^[a-z]:\.\.$/i.test(r[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[s,n]=v3(t);s&&(e.path=n,this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:e,path:t}))}if(Li.isAbsolute(e.path)?e.absolute=At(Li.resolve(e.path)):e.absolute=At(Li.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:At(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:s}=Li.win32.parse(e.absolute);e.absolute=s+sC.encode(e.absolute.slice(s.length));let{root:n}=Li.win32.parse(e.path);e.path=n+sC.encode(e.path.slice(n.length))}return!0}[nC](e){if(!this[uC](e))return e.resume();switch(g3.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[O0](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[hC](e)}}[$e](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[eo](),t.resume())}[Mr](e,t,r){pC(At(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},r)}[Ua](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qa](e){return fC(this.uid,e.uid,this.processUid)}[ja](e){return fC(this.gid,e.gid,this.processGid)}[L0](e,t){let r=e.mode&4095||this.fmode,s=new E3.WriteStream(e.absolute,{flags:gC(e.size),mode:r,autoClose:!1});s.on("error",c=>{s.fd&&G.close(s.fd,()=>{}),s.write=()=>!0,this[$e](c,e),t()});let n=1,o=c=>{if(c){s.fd&&G.close(s.fd,()=>{}),this[$e](c,e),t();return}--n===0&&G.close(s.fd,l=>{l?this[$e](l,e):this[eo](),t()})};s.on("finish",c=>{let l=e.absolute,f=s.fd;if(e.mtime&&!this.noMtime){n++;let m=e.atime||new Date,d=e.mtime;G.futimes(f,m,d,h=>h?G.utimes(l,m,d,u=>o(u&&h)):o())}if(this[Ua](e)){n++;let m=this[qa](e),d=this[ja](e);G.fchown(f,m,d,h=>h?G.chown(l,m,d,u=>o(u&&h)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[$e](c,e),t()}),e.pipe(a)),a.pipe(s)}[I0](e,t){let r=e.mode&4095||this.dmode;this[Mr](e.absolute,r,s=>{if(s){this[$e](s,e),t();return}let n=1,o=a=>{--n===0&&(t(),this[eo](),e.resume())};e.mtime&&!this.noMtime&&(n++,G.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ua](e)&&(n++,G.chown(e.absolute,this[qa](e),this[ja](e),o)),o()})}[hC](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[aC](e,t){this[qu](e,e.linkpath,"symlink",t)}[cC](e,t){let r=At(Li.resolve(this.cwd,e.linkpath));this[qu](e,r,"link",t)}[lC](){this[Nu]++}[eo](){this[Nu]--,this[R0]()}[P0](e){this[eo](),e.resume()}[B0](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!za}[O0](e){this[lC]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,r=>this[oC](e,r))}[Uu](e){e.type==="SymbolicLink"?T3(this.dirCache):e.type!=="Directory"&&_3(this.dirCache,e.absolute)}[oC](e,t){this[Uu](e);let r=a=>{this[Uu](e),t(a)},s=()=>{this[Mr](this.cwd,this.dmode,a=>{if(a){this[$e](a,e),r();return}this[$a]=!0,n()})},n=()=>{if(e.absolute!==this.cwd){let a=At(Li.dirname(e.absolute));if(a!==this.cwd)return this[Mr](a,this.dmode,c=>{if(c){this[$e](c,e),r();return}o()})}o()},o=()=>{G.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[P0](e),r();return}if(a||this[B0](e,c))return this[_t](null,e,r);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=m=>this[_t](m,e,r);return l?G.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return G.rmdir(e.absolute,l=>this[_t](l,e,r))}if(e.absolute===this.cwd)return this[_t](null,e,r);C3(e.absolute,l=>this[_t](l,e,r))})};this[$a]?n():s()}[_t](e,t,r){if(e){this[$e](e,t),r();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[L0](t,r);case"Link":return this[cC](t,r);case"SymbolicLink":return this[aC](t,r);case"Directory":case"GNUDumpDir":return this[I0](t,r)}}[qu](e,t,r,s){G[r](t,e.absolute,n=>{n?this[$e](n,e):(this[eo](),e.resume()),s()})}},Mu=i=>{try{return[null,i()]}catch(e){return[e,null]}},N0=class extends Ga{[_t](e,t){return super[_t](e,t,()=>{})}[O0](e){if(this[Uu](e),!this[$a]){let n=this[Mr](this.cwd,this.dmode);if(n)return this[$e](n,e);this[$a]=!0}if(e.absolute!==this.cwd){let n=At(Li.dirname(e.absolute));if(n!==this.cwd){let o=this[Mr](n,this.dmode);if(o)return this[$e](o,e)}}let[t,r]=Mu(()=>G.lstatSync(e.absolute));if(r&&(this.keep||this.newer&&r.mtime>e.mtime))return this[P0](e);if(t||this[B0](e,r))return this[_t](null,e);if(r.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(r.mode&4095)!==e.mode,[a]=o?Mu(()=>{G.chmodSync(e.absolute,e.mode)}):[];return this[_t](a,e)}let[n]=Mu(()=>G.rmdirSync(e.absolute));this[_t](n,e)}let[s]=e.absolute===this.cwd?[]:Mu(()=>A3(e.absolute));this[_t](s,e)}[L0](e,t){let r=e.mode&4095||this.fmode,s=a=>{let c;try{G.closeSync(n)}catch(l){c=l}(a||c)&&this[$e](a||c,e),t()},n;try{n=G.openSync(e.absolute,gC(e.size),r)}catch(a){return s(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[$e](a,e)),e.pipe(o)),o.on("data",a=>{try{G.writeSync(n,a,0,a.length)}catch(c){s(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,f=e.mtime;try{G.futimesSync(n,l,f)}catch(m){try{G.utimesSync(e.absolute,l,f)}catch{c=m}}}if(this[Ua](e)){let l=this[qa](e),f=this[ja](e);try{G.fchownSync(n,l,f)}catch(m){try{G.chownSync(e.absolute,l,f)}catch{c=c||m}}}s(c)})}[I0](e,t){let r=e.mode&4095||this.dmode,s=this[Mr](e.absolute,r);if(s){this[$e](s,e),t();return}if(e.mtime&&!this.noMtime)try{G.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ua](e))try{G.chownSync(e.absolute,this[qa](e),this[ja](e))}catch{}t(),e.resume()}[Mr](e,t){try{return pC.sync(At(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(r){return r}}[qu](e,t,r,s){try{G[r+"Sync"](t,e.absolute),s(),e.resume()}catch(n){return this[$e](n,e)}}};Ga.Sync=N0;yC.exports=Ga});var wC=S((aQ,bC)=>{"use strict";y();var k3=On(),ju=M0(),SC=b("fs"),vC=Wn(),EC=b("path"),U0=qn();bC.exports=(i,e,t)=>{typeof i=="function"?(t=i,e=null,i={}):Array.isArray(i)&&(e=i,i={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let r=k3(i);if(r.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&F3(r,e),r.file&&r.sync?R3(r):r.file?O3(r,t):r.sync?B3(r):L3(r)};var F3=(i,e)=>{let t=new Map(e.map(n=>[U0(n),!0])),r=i.filter,s=(n,o)=>{let a=o||EC.parse(n).root||".",c=n===a?!1:t.has(n)?t.get(n):s(EC.dirname(n),a);return t.set(n,c),c};i.filter=r?(n,o)=>r(n,o)&&s(U0(n)):n=>s(U0(n))},R3=i=>{let e=new ju.Sync(i),t=i.file,r=SC.statSync(t),s=i.maxReadSize||16*1024*1024;new vC.ReadStreamSync(t,{readSize:s,size:r.size}).pipe(e)},O3=(i,e)=>{let t=new ju(i),r=i.maxReadSize||16*1024*1024,s=i.file,n=new Promise((o,a)=>{t.on("error",a),t.on("close",o),SC.stat(s,(c,l)=>{if(c)a(c);else{let f=new vC.ReadStream(s,{readSize:r,size:l.size});f.on("error",a),f.pipe(t)}})});return e?n.then(e,e):n},B3=i=>new ju.Sync(i),L3=i=>new ju(i)});var q0=S(ge=>{"use strict";y();ge.c=ge.create=nD();ge.r=ge.replace=S0();ge.t=ge.list=ku();ge.u=ge.update=pD();ge.x=ge.extract=wC();ge.Pack=pu();ge.Unpack=M0();ge.Parse=Tu();ge.ReadEntry=Yh();ge.WriteEntry=Xm();ge.Header=Un();ge.Pax=Qh();ge.types=km()});var CC=S((lQ,DC)=>{"use strict";y();function xC(i,e){for(let t in e)Object.defineProperty(i,t,{value:e[t],enumerable:!0,configurable:!0});return i}function I3(i,e,t){if(!i||typeof i=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=void 0),e!=null&&(t.code=e);try{return xC(i,t)}catch{t.message=i.message,t.stack=i.stack;let s=function(){};return s.prototype=Object.create(Object.getPrototypeOf(i)),xC(new s,t)}}DC.exports=I3});var _C=S((dQ,AC)=>{"use strict";y();function Tt(i,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}AC.exports=Tt;Tt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};Tt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};Tt.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var e=new Date().getTime();if(i&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),t=this._timeouts.shift();else return!1;var r=this,s=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t);return this._options.unref&&s.unref(),!0};Tt.prototype.attempt=function(i,e){this._fn=i,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Tt.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)};Tt.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)};Tt.prototype.start=Tt.prototype.try;Tt.prototype.errors=function(){return this._errors};Tt.prototype.attempts=function(){return this._attempts};Tt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},e=null,t=0,r=0;r<this._errors.length;r++){var s=this._errors[r],n=s.message,o=(i[n]||0)+1;i[n]=o,o>=t&&(e=s,t=o)}return e}});var TC=S(Os=>{"use strict";y();var P3=_C();Os.operation=function(i){var e=Os.timeouts(i);return new P3(e,{forever:i&&i.forever,unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};Os.timeouts=function(i){if(i instanceof Array)return[].concat(i);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var t in i)e[t]=i[t];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],s=0;s<e.retries;s++)r.push(this.createTimeout(s,e));return i&&i.forever&&!r.length&&r.push(this.createTimeout(s,e)),r.sort(function(n,o){return n-o}),r};Os.createTimeout=function(i,e){var t=e.randomize?Math.random()+1:1,r=Math.round(t*e.minTimeout*Math.pow(e.factor,i));return r=Math.min(r,e.maxTimeout),r};Os.wrap=function(i,e,t){if(e instanceof Array&&(t=e,e=null),!t){t=[];for(var r in i)typeof i[r]=="function"&&t.push(r)}for(var s=0;s<t.length;s++){var n=t[s],o=i[n];i[n]=function(c){var l=Os.operation(e),f=Array.prototype.slice.call(arguments,1),m=f.pop();f.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),m.apply(this,arguments))}),l.attempt(function(){c.apply(i,f)})}.bind(i,o),i[n].options=e}}});var FC=S((yQ,kC)=>{"use strict";y();kC.exports=TC()});var $u=S((SQ,OC)=>{"use strict";y();var N3=CC(),M3=FC(),U3=Object.prototype.hasOwnProperty;function RC(i){return i&&i.code==="EPROMISERETRY"&&U3.call(i,"retried")}function q3(i,e){var t,r;return typeof i=="object"&&typeof e=="function"&&(t=e,e=i,i=t),r=M3.operation(e),new Promise(function(s,n){r.attempt(function(o){Promise.resolve().then(function(){return i(function(a){throw RC(a)&&(a=a.retried),N3(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(s,function(a){RC(a)&&(a=a.retried,r.retry(a||new Error))||n(a)})})})}OC.exports=q3});var io=S((bQ,$C)=>{"use strict";y();var BC=typeof process=="object"&&process?process:{stdout:null,stderr:null},j3=b("events"),LC=b("stream"),$3=b("string_decoder"),IC=$3.StringDecoder,Ii=Symbol("EOF"),Pi=Symbol("maybeEmitEnd"),Ur=Symbol("emittedEnd"),zu=Symbol("emittingEnd"),Ha=Symbol("emittedError"),Gu=Symbol("closed"),PC=Symbol("read"),Hu=Symbol("flush"),NC=Symbol("flushChunk"),Ze=Symbol("encoding"),Ni=Symbol("decoder"),Ju=Symbol("flowing"),Ja=Symbol("paused"),to=Symbol("resume"),se=Symbol("buffer"),ri=Symbol("pipes"),xe=Symbol("bufferLength"),j0=Symbol("bufferPush"),$0=Symbol("bufferShift"),Re=Symbol("objectMode"),ne=Symbol("destroyed"),z0=Symbol("error"),G0=Symbol("emitData"),MC=Symbol("emitEnd"),H0=Symbol("emitEnd2"),Mi=Symbol("async"),J0=Symbol("abort"),Xu=Symbol("aborted"),Bs=Symbol("signal"),Xa=i=>Promise.resolve().then(i),jC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",UC=jC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),qC=jC&&Symbol.iterator||Symbol("iterator not implemented"),z3=i=>i==="end"||i==="finish"||i==="prefinish",G3=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,H3=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Vu=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[to](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},X0=class extends Vu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},V0=class i extends LC{constructor(e){super(),this[Ju]=!1,this[Ja]=!1,this[ri]=[],this[se]=[],this[Re]=e&&e.objectMode||!1,this[Re]?this[Ze]=null:this[Ze]=e&&e.encoding||null,this[Ze]==="buffer"&&(this[Ze]=null),this[Mi]=e&&!!e.async||!1,this[Ni]=this[Ze]?new IC(this[Ze]):null,this[Ii]=!1,this[Ur]=!1,this[zu]=!1,this[Gu]=!1,this[Ha]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[ne]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[se]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ri]}),this[Bs]=e&&e.signal,this[Xu]=!1,this[Bs]&&(this[Bs].addEventListener("abort",()=>this[J0]()),this[Bs].aborted&&this[J0]())}get bufferLength(){return this[xe]}get encoding(){return this[Ze]}set encoding(e){if(this[Re])throw new Error("cannot set encoding in objectMode");if(this[Ze]&&e!==this[Ze]&&(this[Ni]&&this[Ni].lastNeed||this[xe]))throw new Error("cannot change encoding");this[Ze]!==e&&(this[Ni]=e?new IC(e):null,this[se].length&&(this[se]=this[se].map(t=>this[Ni].write(t)))),this[Ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Re]}set objectMode(e){this[Re]=this[Re]||!!e}get async(){return this[Mi]}set async(e){this[Mi]=this[Mi]||!!e}[J0](){this[Xu]=!0,this.emit("abort",this[Bs].reason),this.destroy(this[Bs].reason)}get aborted(){return this[Xu]}set aborted(e){}write(e,t,r){if(this[Xu])return!1;if(this[Ii])throw new Error("write after end");if(this[ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[Mi]?Xa:n=>n();return!this[Re]&&!Buffer.isBuffer(e)&&(H3(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):G3(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Re]?(this.flowing&&this[xe]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[j0](e),this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[Ze]&&!this[Ni].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ze]&&(e=this[Ni].write(e)),this.flowing&&this[xe]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[j0](e),this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[xe]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Pi](),null;this[Re]&&(e=null),this[se].length>1&&!this[Re]&&(this.encoding?this[se]=[this[se].join("")]:this[se]=[Buffer.concat(this[se],this[xe])]);let t=this[PC](e||null,this[se][0]);return this[Pi](),t}[PC](e,t){return e===t.length||e===null?this[$0]():(this[se][0]=t.slice(e),t=t.slice(0,e),this[xe]-=e),this.emit("data",t),!this[se].length&&!this[Ii]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[Ii]=!0,this.writable=!1,(this.flowing||!this[Ja])&&this[Pi](),this}[to](){this[ne]||(this[Ja]=!1,this[Ju]=!0,this.emit("resume"),this[se].length?this[Hu]():this[Ii]?this[Pi]():this.emit("drain"))}resume(){return this[to]()}pause(){this[Ju]=!1,this[Ja]=!0}get destroyed(){return this[ne]}get flowing(){return this[Ju]}get paused(){return this[Ja]}[j0](e){this[Re]?this[xe]+=1:this[xe]+=e.length,this[se].push(e)}[$0](){return this[Re]?this[xe]-=1:this[xe]-=this[se][0].length,this[se].shift()}[Hu](e){do;while(this[NC](this[$0]())&&this[se].length);!e&&!this[se].length&&!this[Ii]&&this.emit("drain")}[NC](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[ne])return;let r=this[Ur];return t=t||{},e===BC.stdout||e===BC.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[ri].push(t.proxyErrors?new X0(this,e,t):new Vu(this,e,t)),this[Mi]?Xa(()=>this[to]()):this[to]()),e}unpipe(e){let t=this[ri].find(r=>r.dest===e);t&&(this[ri].splice(this[ri].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[ri].length&&!this.flowing?this[to]():e==="readable"&&this[xe]!==0?super.emit("readable"):z3(e)&&this[Ur]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ha]&&(this[Mi]?Xa(()=>t.call(this,this[Ha])):t.call(this,this[Ha])),r}get emittedEnd(){return this[Ur]}[Pi](){!this[zu]&&!this[Ur]&&!this[ne]&&this[se].length===0&&this[Ii]&&(this[zu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Gu]&&this.emit("close"),this[zu]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==ne&&this[ne])return;if(e==="data")return!this[Re]&&!t?!1:this[Mi]?Xa(()=>this[G0](t)):this[G0](t);if(e==="end")return this[MC]();if(e==="close"){if(this[Gu]=!0,!this[Ur]&&!this[ne])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ha]=t,super.emit(z0,t);let n=!this[Bs]||this.listeners("error").length?super.emit("error",t):!1;return this[Pi](),n}else if(e==="resume"){let n=super.emit("resume");return this[Pi](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[Pi](),s}[G0](e){for(let r of this[ri])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[Pi](),t}[MC](){this[Ur]||(this[Ur]=!0,this.readable=!1,this[Mi]?Xa(()=>this[H0]()):this[H0]())}[H0](){if(this[Ni]){let t=this[Ni].end();if(t){for(let r of this[ri])r.dest.write(t);super.emit("data",t)}}for(let t of this[ri])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Re]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Re]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[Re]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Re]?Promise.reject(new Error("cannot concat in objectMode")):this[Ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(ne,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[UC](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ii])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(ne,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(ne,f),this.pause(),n({value:m,done:!!this[Ii]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(ne,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(ne,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[UC](){return this}}}[qC](){let e=!1,t=()=>(this.pause(),this.removeListener(z0,t),this.removeListener(ne,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(z0,t),this.once(ne,t),{next:r,throw:t,return:t,[qC](){return this}}}destroy(e){return this[ne]?(e?this.emit("error",e):this.emit(ne),this):(this[ne]=!0,this[se].length=0,this[xe]=0,typeof this.close=="function"&&!this[Gu]&&this.close(),e?this.emit("error",e):this.emit(ne),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof LC||e instanceof j3&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};$C.exports=V0});var tg=S(Wa=>{"use strict";y();var J3=io(),X3=b("events").EventEmitter,Qe=b("fs"),V3=Qe.writev,co=Symbol("_autoClose"),Nt=Symbol("_close"),Va=Symbol("_ended"),V=Symbol("_fd"),zC=Symbol("_finished"),jr=Symbol("_flags"),W0=Symbol("_flush"),Y0=Symbol("_handleChunk"),Z0=Symbol("_makeBuf"),Qu=Symbol("_mode"),Wu=Symbol("_needDrain"),oo=Symbol("_onerror"),ho=Symbol("_onopen"),K0=Symbol("_onread"),so=Symbol("_onwrite"),$r=Symbol("_open"),Ui=Symbol("_path"),Ls=Symbol("_pos"),si=Symbol("_queue"),no=Symbol("_read"),GC=Symbol("_readSize"),qr=Symbol("_reading"),Ku=Symbol("_remain"),HC=Symbol("_size"),Yu=Symbol("_write"),ro=Symbol("_writing"),Zu=Symbol("_defaultFlag"),ao=Symbol("_errored"),el=class extends J3{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[ao]=!1,this[V]=typeof t.fd=="number"?t.fd:null,this[Ui]=e,this[GC]=t.readSize||16*1024*1024,this[qr]=!1,this[HC]=typeof t.size=="number"?t.size:1/0,this[Ku]=this[HC],this[co]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[V]=="number"?this[no]():this[$r]()}get fd(){return this[V]}get path(){return this[Ui]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[$r](){Qe.open(this[Ui],"r",(e,t)=>this[ho](e,t))}[ho](e,t){e?this[oo](e):(this[V]=t,this.emit("open",t),this[no]())}[Z0](){return Buffer.allocUnsafe(Math.min(this[GC],this[Ku]))}[no](){if(!this[qr]){this[qr]=!0;let e=this[Z0]();if(e.length===0)return process.nextTick(()=>this[K0](null,0,e));Qe.read(this[V],e,0,e.length,null,(t,r,s)=>this[K0](t,r,s))}}[K0](e,t,r){this[qr]=!1,e?this[oo](e):this[Y0](t,r)&&this[no]()}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[oo](e){this[qr]=!0,this[Nt](),this.emit("error",e)}[Y0](e,t){let r=!1;return this[Ku]-=e,e>0&&(r=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[Ku]<=0)&&(r=!1,this[Nt](),super.end()),r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[V]=="number"&&this[no]();break;case"error":return this[ao]?void 0:(this[ao]=!0,super.emit(e,t));default:return super.emit(e,t)}}},Q0=class extends el{[$r](){let e=!0;try{this[ho](null,Qe.openSync(this[Ui],"r")),e=!1}finally{e&&this[Nt]()}}[no](){let e=!0;try{if(!this[qr]){this[qr]=!0;do{let t=this[Z0](),r=t.length===0?0:Qe.readSync(this[V],t,0,t.length,null);if(!this[Y0](r,t))break}while(!0);this[qr]=!1}e=!1}finally{e&&this[Nt]()}}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.closeSync(e),this.emit("close")}}},tl=class extends X3{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[ao]=!1,this[ro]=!1,this[Va]=!1,this[Wu]=!1,this[si]=[],this[Ui]=e,this[V]=typeof t.fd=="number"?t.fd:null,this[Qu]=t.mode===void 0?438:t.mode,this[Ls]=typeof t.start=="number"?t.start:null,this[co]=typeof t.autoClose=="boolean"?t.autoClose:!0;let r=this[Ls]!==null?"r+":"w";this[Zu]=t.flags===void 0,this[jr]=this[Zu]?r:t.flags,this[V]===null&&this[$r]()}emit(e,t){if(e==="error"){if(this[ao])return;this[ao]=!0}return super.emit(e,t)}get fd(){return this[V]}get path(){return this[Ui]}[oo](e){this[Nt](),this[ro]=!0,this.emit("error",e)}[$r](){Qe.open(this[Ui],this[jr],this[Qu],(e,t)=>this[ho](e,t))}[ho](e,t){this[Zu]&&this[jr]==="r+"&&e&&e.code==="ENOENT"?(this[jr]="w",this[$r]()):e?this[oo](e):(this[V]=t,this.emit("open",t),this[W0]())}end(e,t){return e&&this.write(e,t),this[Va]=!0,!this[ro]&&!this[si].length&&typeof this[V]=="number"&&this[so](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[Va]?(this.emit("error",new Error("write() after end()")),!1):this[V]===null||this[ro]||this[si].length?(this[si].push(e),this[Wu]=!0,!1):(this[ro]=!0,this[Yu](e),!0)}[Yu](e){Qe.write(this[V],e,0,e.length,this[Ls],(t,r)=>this[so](t,r))}[so](e,t){e?this[oo](e):(this[Ls]!==null&&(this[Ls]+=t),this[si].length?this[W0]():(this[ro]=!1,this[Va]&&!this[zC]?(this[zC]=!0,this[Nt](),this.emit("finish")):this[Wu]&&(this[Wu]=!1,this.emit("drain"))))}[W0](){if(this[si].length===0)this[Va]&&this[so](null,0);else if(this[si].length===1)this[Yu](this[si].pop());else{let e=this[si];this[si]=[],V3(this[V],e,this[Ls],(t,r)=>this[so](t,r))}}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},eg=class extends tl{[$r](){let e;if(this[Zu]&&this[jr]==="r+")try{e=Qe.openSync(this[Ui],this[jr],this[Qu])}catch(t){if(t.code==="ENOENT")return this[jr]="w",this[$r]();throw t}else e=Qe.openSync(this[Ui],this[jr],this[Qu]);this[ho](null,e)}[Nt](){if(this[co]&&typeof this[V]=="number"){let e=this[V];this[V]=null,Qe.closeSync(e),this.emit("close")}}[Yu](e){let t=!0;try{this[so](null,Qe.writeSync(this[V],e,0,e.length,this[Ls])),t=!1}finally{if(t)try{this[Nt]()}catch{}}}};Wa.ReadStream=el;Wa.ReadStreamSync=Q0;Wa.WriteStream=tl;Wa.WriteStreamSync=eg});var ng=S((CQ,sg)=>{"use strict";y();var JC=Ar(),uo=Symbol("_data"),lo=Symbol("_length"),ig=class extends JC{constructor(e){super(e),this[uo]=[],this[lo]=0}write(e,t,r){typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[uo].push(s),this[lo]+=s.length,r&&r(),!0}end(e,t,r){typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t);let s=Buffer.concat(this[uo],this[lo]);return super.write(s),super.end(r)}};sg.exports=ig;var rg=class extends JC{constructor(e){super(e),this[uo]=[],this[lo]=0}write(e,t,r){typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[uo].push(s),this[lo]+=s.length,super.write(e,t,r)}end(e,t,r){typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t);let s=Buffer.concat(this[uo],this[lo]);return this.emit("collect",s),super.end(r)}};sg.exports.PassThrough=rg});var Qa=S((_Q,iA)=>{"use strict";y();var XC=typeof process=="object"&&process?process:{stdout:null,stderr:null},W3=b("events"),VC=b("stream"),K3=b("string_decoder"),WC=K3.StringDecoder,qi=Symbol("EOF"),ji=Symbol("maybeEmitEnd"),zr=Symbol("emittedEnd"),il=Symbol("emittingEnd"),Ka=Symbol("emittedError"),rl=Symbol("closed"),KC=Symbol("read"),sl=Symbol("flush"),YC=Symbol("flushChunk"),et=Symbol("encoding"),$i=Symbol("decoder"),nl=Symbol("flowing"),Ya=Symbol("paused"),fo=Symbol("resume"),oe=Symbol("buffer"),ni=Symbol("pipes"),De=Symbol("bufferLength"),og=Symbol("bufferPush"),ag=Symbol("bufferShift"),Oe=Symbol("objectMode"),ae=Symbol("destroyed"),cg=Symbol("error"),hg=Symbol("emitData"),ZC=Symbol("emitEnd"),ug=Symbol("emitEnd2"),zi=Symbol("async"),lg=Symbol("abort"),ol=Symbol("aborted"),Is=Symbol("signal"),Za=i=>Promise.resolve().then(i),tA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",QC=tA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),eA=tA&&Symbol.iterator||Symbol("iterator not implemented"),Y3=i=>i==="end"||i==="finish"||i==="prefinish",Z3=i=>i instanceof ArrayBuffer||typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,Q3=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),al=class{constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[fo](),t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},fg=class extends al{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},dg=class i extends VC{constructor(e){super(),this[nl]=!1,this[Ya]=!1,this[ni]=[],this[oe]=[],this[Oe]=e&&e.objectMode||!1,this[Oe]?this[et]=null:this[et]=e&&e.encoding||null,this[et]==="buffer"&&(this[et]=null),this[zi]=e&&!!e.async||!1,this[$i]=this[et]?new WC(this[et]):null,this[qi]=!1,this[zr]=!1,this[il]=!1,this[rl]=!1,this[Ka]=null,this.writable=!0,this.readable=!0,this[De]=0,this[ae]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[oe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ni]}),this[Is]=e&&e.signal,this[ol]=!1,this[Is]&&(this[Is].addEventListener("abort",()=>this[lg]()),this[Is].aborted&&this[lg]())}get bufferLength(){return this[De]}get encoding(){return this[et]}set encoding(e){if(this[Oe])throw new Error("cannot set encoding in objectMode");if(this[et]&&e!==this[et]&&(this[$i]&&this[$i].lastNeed||this[De]))throw new Error("cannot change encoding");this[et]!==e&&(this[$i]=e?new WC(e):null,this[oe].length&&(this[oe]=this[oe].map(t=>this[$i].write(t)))),this[et]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Oe]}set objectMode(e){this[Oe]=this[Oe]||!!e}get async(){return this[zi]}set async(e){this[zi]=this[zi]||!!e}[lg](){this[ol]=!0,this.emit("abort",this[Is].reason),this.destroy(this[Is].reason)}get aborted(){return this[ol]}set aborted(e){}write(e,t,r){if(this[ol])return!1;if(this[qi])throw new Error("write after end");if(this[ae])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[zi]?Za:n=>n();return!this[Oe]&&!Buffer.isBuffer(e)&&(Q3(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Z3(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Oe]?(this.flowing&&this[De]!==0&&this[sl](!0),this.flowing?this.emit("data",e):this[og](e),this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing):e.length?(typeof e=="string"&&!(t===this[et]&&!this[$i].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[et]&&(e=this[$i].write(e)),this.flowing&&this[De]!==0&&this[sl](!0),this.flowing?this.emit("data",e):this[og](e),this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing):(this[De]!==0&&this.emit("readable"),r&&s(r),this.flowing)}read(e){if(this[ae])return null;if(this[De]===0||e===0||e>this[De])return this[ji](),null;this[Oe]&&(e=null),this[oe].length>1&&!this[Oe]&&(this.encoding?this[oe]=[this[oe].join("")]:this[oe]=[Buffer.concat(this[oe],this[De])]);let t=this[KC](e||null,this[oe][0]);return this[ji](),t}[KC](e,t){return e===t.length||e===null?this[ag]():(this[oe][0]=t.slice(e),t=t.slice(0,e),this[De]-=e),this.emit("data",t),!this[oe].length&&!this[qi]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=null),typeof t=="function"&&(r=t,t="utf8"),e&&this.write(e,t),r&&this.once("end",r),this[qi]=!0,this.writable=!1,(this.flowing||!this[Ya])&&this[ji](),this}[fo](){this[ae]||(this[Ya]=!1,this[nl]=!0,this.emit("resume"),this[oe].length?this[sl]():this[qi]?this[ji]():this.emit("drain"))}resume(){return this[fo]()}pause(){this[nl]=!1,this[Ya]=!0}get destroyed(){return this[ae]}get flowing(){return this[nl]}get paused(){return this[Ya]}[og](e){this[Oe]?this[De]+=1:this[De]+=e.length,this[oe].push(e)}[ag](){return this[Oe]?this[De]-=1:this[De]-=this[oe][0].length,this[oe].shift()}[sl](e){do;while(this[YC](this[ag]())&&this[oe].length);!e&&!this[oe].length&&!this[qi]&&this.emit("drain")}[YC](e){return this.emit("data",e),this.flowing}pipe(e,t){if(this[ae])return;let r=this[zr];return t=t||{},e===XC.stdout||e===XC.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[ni].push(t.proxyErrors?new fg(this,e,t):new al(this,e,t)),this[zi]?Za(()=>this[fo]()):this[fo]()),e}unpipe(e){let t=this[ni].find(r=>r.dest===e);t&&(this[ni].splice(this[ni].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);return e==="data"&&!this[ni].length&&!this.flowing?this[fo]():e==="readable"&&this[De]!==0?super.emit("readable"):Y3(e)&&this[zr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ka]&&(this[zi]?Za(()=>t.call(this,this[Ka])):t.call(this,this[Ka])),r}get emittedEnd(){return this[zr]}[ji](){!this[il]&&!this[zr]&&!this[ae]&&this[oe].length===0&&this[qi]&&(this[il]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[rl]&&this.emit("close"),this[il]=!1)}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==ae&&this[ae])return;if(e==="data")return!this[Oe]&&!t?!1:this[zi]?Za(()=>this[hg](t)):this[hg](t);if(e==="end")return this[ZC]();if(e==="close"){if(this[rl]=!0,!this[zr]&&!this[ae])return;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[Ka]=t,super.emit(cg,t);let n=!this[Is]||this.listeners("error").length?super.emit("error",t):!1;return this[ji](),n}else if(e==="resume"){let n=super.emit("resume");return this[ji](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,t,...r);return this[ji](),s}[hg](e){for(let r of this[ni])r.dest.write(e)===!1&&this.pause();let t=super.emit("data",e);return this[ji](),t}[ZC](){this[zr]||(this[zr]=!0,this.readable=!1,this[zi]?Za(()=>this[ug]()):this[ug]())}[ug](){if(this[$i]){let t=this[$i].end();if(t){for(let r of this[ni])r.dest.write(t);super.emit("data",t)}}for(let t of this[ni])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Oe]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Oe]||(e.dataLength+=r.length)}),t.then(()=>e)}concat(){return this[Oe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Oe]?Promise.reject(new Error("cannot concat in objectMode")):this[et]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(ae,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[QC](){let e=!1,t=()=>(this.pause(),e=!0,Promise.resolve({done:!0}));return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[qi])return t();let n=null,o=null,a=m=>{this.removeListener("data",c),this.removeListener("end",l),this.removeListener(ae,f),t(),o(m)},c=m=>{this.removeListener("error",a),this.removeListener("end",l),this.removeListener(ae,f),this.pause(),n({value:m,done:!!this[qi]})},l=()=>{this.removeListener("error",a),this.removeListener("data",c),this.removeListener(ae,f),t(),n({done:!0})},f=()=>a(new Error("stream destroyed"));return new Promise((m,d)=>{o=d,n=m,this.once(ae,f),this.once("error",a),this.once("end",l),this.once("data",c)})},throw:t,return:t,[QC](){return this}}}[eA](){let e=!1,t=()=>(this.pause(),this.removeListener(cg,t),this.removeListener(ae,t),this.removeListener("end",t),e=!0,{done:!0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{value:s}};return this.once("end",t),this.once(cg,t),this.once(ae,t),{next:r,throw:t,return:t,[eA](){return this}}}destroy(e){return this[ae]?(e?this.emit("error",e):this.emit(ae),this):(this[ae]=!0,this[oe].length=0,this[De]=0,typeof this.close=="function"&&!this[rl]&&this.close(),e?this.emit("error",e):this.emit(ae),this)}static isStream(e){return!!e&&(e instanceof i||e instanceof VC||e instanceof W3&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}};iA.exports=dg});var po=S((kQ,oA)=>{"use strict";y();var e9=Ar(),t9=b("events"),i9=i=>i&&i instanceof t9&&(typeof i.pipe=="function"||typeof i.write=="function"&&typeof i.end=="function"),Ps=Symbol("_head"),dt=Symbol("_tail"),pg=Symbol("_linkStreams"),mg=Symbol("_setHead"),gg=Symbol("_setTail"),rA=Symbol("_onError"),sA=Symbol("_onData"),yg=Symbol("_onEnd"),nA=Symbol("_onDrain"),cl=Symbol("_streams"),Eg=class extends e9{constructor(e,...t){i9(e)&&(t.unshift(e),e={}),super(e),this[cl]=[],t.length&&this.push(...t)}[pg](e){return e.reduce((t,r)=>(t.on("error",s=>r.emit("error",s)),t.pipe(r),r))}push(...e){this[cl].push(...e),this[dt]&&e.unshift(this[dt]);let t=this[pg](e);this[gg](t),this[Ps]||this[mg](e[0])}unshift(...e){this[cl].unshift(...e),this[Ps]&&e.push(this[Ps]);let t=this[pg](e);this[mg](e[0]),this[dt]||this[gg](t)}destroy(e){return this[cl].forEach(t=>typeof t.destroy=="function"&&t.destroy()),super.destroy(e)}[gg](e){this[dt]=e,e.on("error",t=>this[rA](e,t)),e.on("data",t=>this[sA](e,t)),e.on("end",()=>this[yg](e)),e.on("finish",()=>this[yg](e))}[rA](e,t){e===this[dt]&&this.emit("error",t)}[sA](e,t){e===this[dt]&&super.write(t)}[yg](e){e===this[dt]&&super.end()}pause(){return super.pause(),this[dt]&&this[dt].pause&&this[dt].pause()}emit(e,...t){return e==="resume"&&this[dt]&&this[dt].resume&&this[dt].resume(),super.emit(e,...t)}[mg](e){this[Ps]=e,e.on("drain",()=>this[nA](e))}[nA](e){e===this[Ps]&&this.emit("drain")}write(e,t,r){return this[Ps].write(e,t,r)&&(this.flowing||this.buffer.length===0)}end(e,t,r){return this[Ps].end(e,t,r),this}};oA.exports=Eg});var cA=S((RQ,aA)=>{"use strict";y();var r9=xI();aA.exports=function(i){if(i){var e=new r9(i);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var Sg=S((BQ,hA)=>{"use strict";y();var s9=b("path"),n9=cA();hA.exports=function(i,e,t){return s9.join(i,(e?e+"-":"")+n9(t))}});var vg=S((IQ,o9)=>{o9.exports={name:"cacache",version:"17.0.4","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:'eslint "**/*.js"',npmclilint:"npmcli-lint",lintfix:"npm run lint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license:"ISC",dependencies:{"@npmcli/fs":"^3.1.0","fs-minipass":"^3.0.0",glob:"^8.0.1","lru-cache":"^7.7.1",minipass:"^4.0.0","minipass-collect":"^1.0.2","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4","p-map":"^4.0.0","promise-inflight":"^1.0.1",ssri:"^10.0.0",tar:"^6.1.11","unique-filename":"^3.0.0"},devDependencies:{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.11.0",tap:"^16.0.0"},engines:{node:"^14.17.0 || ^16.13.0 || >=18.0.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",windowsCI:!1,version:"4.11.0"},author:"GitHub Inc.",tap:{"nyc-arg":["--exclude","tap-snapshots/**"]}}});var bg=S((PQ,uA)=>{"use strict";y();uA.exports=a9;function a9(i){return[i.slice(0,2),i.slice(2,4),i.slice(4)]}});var mo=S((MQ,wg)=>{"use strict";y();var c9=vg()["cache-version"].content,h9=bg(),lA=b("path"),u9=Wt();wg.exports=l9;function l9(i,e){let t=u9.parse(e,{single:!0});return lA.join(fA(i),t.algorithm,...h9(t.hexDigest()))}wg.exports.contentDir=fA;function fA(i){return lA.join(i,`content-v${c9}`)}});var xg=S((qQ,dA)=>{"use strict";y();var f9=(i,{copy:e,wrap:t})=>{let r={};if(i&&typeof i=="object")for(let s of e)i[s]!==void 0&&(r[s]=i[s]);else r[t]=i;return r};dA.exports=f9});var mA=S(($Q,pA)=>{"use strict";y();var d9=aa(),p9=i=>d9.satisfies(process.version,i,{includePrerelease:!0});pA.exports={satisfies:p9}});var gA=S((JQ,Cg)=>{"use strict";y();var{inspect:m9}=b("util"),Dg=class{constructor(e,t,r){let s=`${t}: ${r.syscall} returned ${r.code} (${r.message})`;r.path!==void 0&&(s+=` ${r.path}`),r.dest!==void 0&&(s+=` => ${r.dest}`),this.code=e,Object.defineProperties(this,{name:{value:"SystemError",enumerable:!1,writable:!0,configurable:!0},message:{value:s,enumerable:!1,writable:!0,configurable:!0},info:{value:r,enumerable:!0,configurable:!0,writable:!1},errno:{get(){return r.errno},set(n){r.errno=n},enumerable:!0,configurable:!0},syscall:{get(){return r.syscall},set(n){r.syscall=n},enumerable:!0,configurable:!0}}),r.path!==void 0&&Object.defineProperty(this,"path",{get(){return r.path},set(n){r.path=n},enumerable:!0,configurable:!0}),r.dest!==void 0&&Object.defineProperty(this,"dest",{get(){return r.dest},set(n){r.dest=n},enumerable:!0,configurable:!0})}toString(){return`${this.name} [${this.code}]: ${this.message}`}[Symbol.for("nodejs.util.inspect.custom")](e,t){return m9(this,{...t,getters:!0,customInspect:!1})}};function Gi(i,e){Cg.exports[i]=class extends Dg{constructor(r){super(i,e,r)}}}Gi("ERR_FS_CP_DIR_TO_NON_DIR","Cannot overwrite directory with non-directory");Gi("ERR_FS_CP_EEXIST","Target already exists");Gi("ERR_FS_CP_EINVAL","Invalid src or dest");Gi("ERR_FS_CP_FIFO_PIPE","Cannot copy a FIFO pipe");Gi("ERR_FS_CP_NON_DIR_TO_DIR","Cannot overwrite non-directory with directory");Gi("ERR_FS_CP_SOCKET","Cannot copy a socket file");Gi("ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY","Cannot overwrite symlink in subdirectory of self");Gi("ERR_FS_CP_UNKNOWN","Cannot copy an unknown file type");Gi("ERR_FS_EISDIR","Path is a directory");Cg.exports.ERR_INVALID_ARG_TYPE=class extends Error{constructor(e,t,r){super(),this.code="ERR_INVALID_ARG_TYPE",this.message=`The ${e} argument must be ${t}. Received ${typeof r}`}}});var IA=S((VQ,LA)=>{"use strict";y();var{ERR_FS_CP_DIR_TO_NON_DIR:g9,ERR_FS_CP_EEXIST:y9,ERR_FS_CP_EINVAL:hl,ERR_FS_CP_FIFO_PIPE:E9,ERR_FS_CP_NON_DIR_TO_DIR:S9,ERR_FS_CP_SOCKET:v9,ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY:b9,ERR_FS_CP_UNKNOWN:w9,ERR_FS_EISDIR:x9,ERR_INVALID_ARG_TYPE:D9}=gA(),{constants:{errno:{EEXIST:C9,EISDIR:A9,EINVAL:Hi,ENOTDIR:_9}}}=b("os"),{chmod:T9,copyFile:k9,lstat:CA,mkdir:AA,readdir:F9,readlink:yA,stat:go,symlink:Ag,unlink:_A,utimes:R9}=b("fs/promises"),{dirname:ec,isAbsolute:EA,join:SA,parse:O9,resolve:tc,sep:B9,toNamespacedPath:vA}=b("path"),{fileURLToPath:L9}=b("url"),I9={dereference:!1,errorOnExist:!1,filter:void 0,force:!0,preserveTimestamps:!1,recursive:!1};async function P9(i,e,t){if(t!=null&&typeof t!="object")throw new D9("options",["Object"],t);return N9(vA(bA(i)),vA(bA(e)),{...I9,...t})}function bA(i){return i!=null&&i.href&&i.origin?L9(i):i}async function N9(i,e,t){t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended","TimestampPrecisionWarning");let r=await TA(i,e,t),{srcStat:s,destStat:n}=r;return await FA(i,s,e),t.filter?RA(wA,n,i,e,t):wA(n,i,e,t)}async function TA(i,e,t){let{0:r,1:s}=await M9(i,e,t);if(s){if(kA(r,s))throw new hl({message:"src and dest cannot be the same",path:e,syscall:"cp",errno:Hi});if(r.isDirectory()&&!s.isDirectory())throw new g9({message:`cannot overwrite directory ${i} with non-directory ${e}`,path:e,syscall:"cp",errno:A9});if(!r.isDirectory()&&s.isDirectory())throw new S9({message:`cannot overwrite non-directory ${i} with directory ${e}`,path:e,syscall:"cp",errno:_9})}if(r.isDirectory()&&_g(i,e))throw new hl({message:`cannot copy ${i} to a subdirectory of self ${e}`,path:e,syscall:"cp",errno:Hi});return{srcStat:r,destStat:s}}function kA(i,e){return e.ino&&e.dev&&e.ino===i.ino&&e.dev===i.dev}function M9(i,e,t){let r=t.dereference?s=>go(s,{bigint:!0}):s=>CA(s,{bigint:!0});return Promise.all([r(i),r(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})])}async function wA(i,e,t,r){let s=ec(t);return await U9(s)||await AA(s,{recursive:!0}),ul(i,e,t,r)}function U9(i){return go(i).then(()=>!0,e=>e.code==="ENOENT"?!1:Promise.reject(e))}async function FA(i,e,t){let r=tc(ec(i)),s=tc(ec(t));if(s===r||s===O9(s).root)return;let n;try{n=await go(s,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(kA(e,n))throw new hl({message:`cannot copy ${i} to a subdirectory of self ${t}`,path:t,syscall:"cp",errno:Hi});return FA(i,e,s)}var xA=i=>tc(i).split(B9).filter(Boolean);function _g(i,e){let t=xA(i),r=xA(e);return t.every((s,n)=>r[n]===s)}async function RA(i,e,t,r,s,n){if(await s.filter(t,r))return i(e,t,r,s,n)}function q9(i,e,t,r){return r.filter?RA(ul,i,e,t,r):ul(i,e,t,r)}async function ul(i,e,t,r){let n=await(r.dereference?go:CA)(e);if(n.isDirectory()&&r.recursive)return X9(n,i,e,t,r);if(n.isDirectory())throw new x9({message:`${e} is a directory (not copied)`,path:e,syscall:"cp",errno:Hi});if(n.isFile()||n.isCharacterDevice()||n.isBlockDevice())return j9(n,i,e,t,r);if(n.isSymbolicLink())return W9(i,e,t);throw n.isSocket()?new v9({message:`cannot copy a socket file: ${t}`,path:t,syscall:"cp",errno:Hi}):n.isFIFO()?new E9({message:`cannot copy a FIFO pipe: ${t}`,path:t,syscall:"cp",errno:Hi}):new w9({message:`cannot copy an unknown file type: ${t}`,path:t,syscall:"cp",errno:Hi})}function j9(i,e,t,r,s){return e?$9(i,t,r,s):OA(i,t,r,s)}async function $9(i,e,t,r){if(r.force)return await _A(t),OA(i,e,t,r);if(r.errorOnExist)throw new y9({message:`${t} already exists`,path:t,syscall:"cp",errno:C9})}async function OA(i,e,t,r){return await k9(e,t),r.preserveTimestamps?z9(i.mode,e,t):ll(t,i.mode)}async function z9(i,e,t){return G9(i)&&await H9(t,i),DA(i,e,t)}function G9(i){return(i&128)===0}function H9(i,e){return ll(i,e|128)}async function DA(i,e,t){return await J9(e,t),ll(t,i)}function ll(i,e){return T9(i,e)}async function J9(i,e){let t=await go(i);return R9(e,t.atime,t.mtime)}function X9(i,e,t,r,s){return e?BA(t,r,s):V9(i.mode,t,r,s)}async function V9(i,e,t,r){return await AA(t),await BA(e,t,r),ll(t,i)}async function BA(i,e,t){let r=await F9(i);for(let s=0;s<r.length;s++){let n=r[s],o=SA(i,n),a=SA(e,n),{destStat:c}=await TA(o,a,t);await q9(c,o,a,t)}}async function W9(i,e,t){let r=await yA(e);if(EA(r)||(r=tc(ec(e),r)),!i)return Ag(r,t);let s;try{s=await yA(t)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ag(r,t);throw o}if(EA(s)||(s=tc(ec(t),s)),_g(r,s))throw new hl({message:`cannot copy ${r} to a subdirectory of self ${s}`,path:t,syscall:"cp",errno:Hi});if((await go(e)).isDirectory()&&_g(s,r))throw new b9({message:`cannot overwrite ${s} with ${r}`,path:t,syscall:"cp",errno:Hi});return K9(r,t)}async function K9(i,e){return await _A(e),Ag(i,e)}LA.exports=P9});var NA=S((KQ,PA)=>{"use strict";y();var Y9=b("fs/promises"),Z9=xg(),Q9=mA(),eM=IA(),tM=Q9.satisfies(">=16.7.0"),iM=async(i,e,t)=>{let r=Z9(t,{copy:["dereference","errorOnExist","filter","force","preserveTimestamps","recursive"]});return tM?Y9.cp(i,e,r):eM(i,e,r)};PA.exports=iM});var UA=S((ZQ,MA)=>{"use strict";y();var{join:rM,sep:sM}=b("path"),nM=xg(),{mkdir:oM,mkdtemp:aM,rm:cM}=b("fs/promises"),hM=async(i,e,t)=>{let r=nM(t,{copy:["tmpPrefix"]});await oM(i,{recursive:!0});let s=await aM(rM(`${i}${sM}`,r.tmpPrefix||"")),n,o;try{o=await e(s)}catch(a){n=a}try{await cM(s,{force:!0,recursive:!0})}catch{}if(n)throw n;return o};MA.exports=hM});var zA=S((eee,$A)=>{"use strict";y();var{readdir:qA}=b("fs/promises"),{join:jA}=b("path"),uM=async i=>{let e=[];for(let t of await qA(i))if(t.startsWith("@"))for(let r of await qA(jA(i,t)))e.push(jA(t,r));else e.push(t);return e};$A.exports=uM});var WA=S((iee,VA)=>{"use strict";y();var{dirname:GA,join:HA,resolve:JA,relative:lM,isAbsolute:fM}=b("path"),oi=b("fs/promises"),dM=async i=>{try{return await oi.access(i),!0}catch(e){return e.code!=="ENOENT"}},XA=async(i,e,t={},r=!0,s=[])=>{if(!i||!e)throw new TypeError("`source` and `destination` file required");if(t={overwrite:!0,...t},!t.overwrite&&await dM(e))throw new Error(`The destination file exists: ${e}`);await oi.mkdir(GA(e),{recursive:!0});try{await oi.rename(i,e)}catch(n){if(n.code==="EXDEV"||n.code==="EPERM"){let o=await oi.lstat(i);if(o.isDirectory()){let a=await oi.readdir(i);await Promise.all(a.map(c=>XA(HA(i,c),HA(e,c),t,!1,s)))}else o.isSymbolicLink()?s.push({source:i,destination:e}):await oi.copyFile(i,e)}else throw n}r&&(await Promise.all(s.map(async({source:n,destination:o})=>{let a=await oi.readlink(n);fM(a)&&(a=JA(o,lM(n,a)));let c="file";try{c=await oi.stat(JA(GA(n),a)),c.isDirectory()&&(c="junction")}catch{}await oi.symlink(a,o,c)})),await oi.rm(i,{recursive:!0,force:!0}))};VA.exports=XA});var fl=S((see,KA)=>{"use strict";y();var pM=NA(),mM=UA(),gM=zA(),yM=WA();KA.exports={cp:pM,withTempDir:mM,readdirScoped:gM,moveFile:yM}});var yo=S((aee,pt)=>{"use strict";y();var EM=b("crypto"),{appendFile:SM,mkdir:kg,readFile:vM,readdir:bM,rm:YA,writeFile:wM}=b("fs/promises"),xM=Qa(),ai=b("path"),DM=Wt(),CM=Sg(),AM=mo(),_M=bg(),TM=vg()["cache-version"].index,{moveFile:kM}=fl();pt.exports.NotFoundError=class extends Error{constructor(e,t){super(`No cache entry for ${t} found in ${e}`),this.code="ENOENT",this.cache=e,this.key=t}};pt.exports.compact=FM;async function FM(i,e,t,r={}){let s=ic(i,e),n=await dl(s),o=[];for(let d=n.length-1;d>=0;--d){let h=n[d];if(h.integrity===null&&!r.validateEntry)break;(!r.validateEntry||r.validateEntry(h)===!0)&&(o.length===0||!o.find(u=>t(u,h)))&&o.unshift(h)}let a=`
|
|
18
18
|
`+o.map(d=>{let h=JSON.stringify(d);return`${pl(h)} ${h}`}).join(`
|
|
19
19
|
`),c=async()=>{let d=CM(ai.join(i,"tmp"),r.tmpPrefix);return await kg(ai.dirname(d),{recursive:!0}),{target:d,moved:!1}},l=async d=>{if(!d.moved)return YA(d.target,{recursive:!0,force:!0})},f=async d=>{await wM(d.target,a,{flag:"wx"}),await kg(ai.dirname(s),{recursive:!0}),await kM(d.target,s),d.moved=!0},m=await c();try{await f(m)}finally{await l(m)}return o.reverse().map(d=>ml(i,d,!0))}pt.exports.insert=ZA;async function ZA(i,e,t,r={}){let{metadata:s,size:n}=r,o=ic(i,e),a={key:e,integrity:t&&DM.stringify(t),time:Date.now(),size:n,metadata:s};try{await kg(ai.dirname(o),{recursive:!0});let c=JSON.stringify(a);await SM(o,`
|
|
20
20
|
${pl(c)} ${c}`)}catch(c){if(c.code==="ENOENT")return;throw c}return ml(i,a)}pt.exports.find=RM;async function RM(i,e){let t=ic(i,e);try{return(await dl(t)).reduce((s,n)=>n&&n.key===e?ml(i,n):s,null)}catch(r){if(r.code==="ENOENT")return null;throw r}}pt.exports.delete=OM;function OM(i,e,t={}){if(!t.removeFully)return ZA(i,e,null,t);let r=ic(i,e);return YA(r,{recursive:!0,force:!0})}pt.exports.lsStream=QA;function QA(i){let e=Fg(i),t=new xM({objectMode:!0});return Promise.resolve().then(async()=>{let r=await Tg(e);return await Promise.all(r.map(async s=>{let n=ai.join(e,s),o=await Tg(n);await Promise.all(o.map(async a=>{let c=ai.join(n,a),l=await Tg(c);await Promise.all(l.map(async f=>{let m=ai.join(c,f);try{let h=(await dl(m)).reduce((u,p)=>(u.set(p.key,p),u),new Map);for(let u of h.values()){let p=ml(i,u);p&&t.write(p)}}catch(d){if(d.code==="ENOENT")return;throw d}}))}))})),t.end(),t}).catch(r=>t.emit("error",r)),t}pt.exports.ls=BM;async function BM(i){return(await QA(i).collect()).reduce((t,r)=>(t[r.key]=r,t),{})}pt.exports.bucketEntries=dl;async function dl(i,e){let t=await vM(i,"utf8");return LM(t,e)}function LM(i,e){let t=[];return i.split(`
|
|
@@ -89,11 +89,11 @@ globstar while`,e,m,t,d,h),this.matchOne(e.slice(m),t.slice(d),r))return this.de
|
|
|
89
89
|
> ${e}
|
|
90
90
|
`;return s+=`> ${t.trim().replace(/\n/g,`
|
|
91
91
|
> `)}`,r.length&&(s+=` ${r.join(" ")}`),s+=`
|
|
92
|
-
`,s},sV=async i=>{let{event:e,path:t,scriptShell:r,binPaths:s=!1,env:n={},stdio:o="pipe",pkg:a,args:c=[],stdioString:l,banner:f=!0,signalTimeout:m=500}=i,{scripts:d={},gypfile:h}=a,u=null;if(i.cmd?u=i.cmd:a.scripts&&a.scripts[e]?u=a.scripts[e]:e==="install"&&!d.install&&!d.preinstall&&h!==!1&&await QX(t)?u=eV:e==="start"&&await iV(t)&&(u="node server.js"),!u)return{code:0,signal:null};o==="inherit"&&f!==!1&&console.log(rV(a._id,e,u,c));let[p,g,E]=KX({event:e,path:t,scriptShell:r,binPaths:s,env:ZX(n,a),stdio:o,cmd:u,args:c,stdioString:l}),v=YX(p,g,E,{event:e,script:u,pkgid:a._id,path:t});return o==="inherit"&&tV.add(v.process),v.stdin&&v.stdin.end(),v.catch(D=>{let{signal:x}=D;if(o==="inherit"&&x)return process.kill(process.pid,x),new Promise((w,_)=>setTimeout(()=>_(D),m));throw D})};O4.exports=sV});var I4=S((noe,L4)=>{"use strict";y();var nV=i=>{if(typeof i!="object"||!i)throw new TypeError("invalid options object provided to runScript");let{event:e,path:t,scriptShell:r,env:s={},stdio:n="pipe",args:o=[],cmd:a}=i;if(!e||typeof e!="string")throw new TypeError("valid event not provided to runScript");if(!t||typeof t!="string")throw new TypeError("valid path not provided to runScript");if(r!==void 0&&typeof r!="string")throw new TypeError("invalid scriptShell option provided to runScript");if(typeof s!="object"||!s)throw new TypeError("invalid env option provided to runScript");if(typeof n!="string"&&!Array.isArray(n))throw new TypeError("invalid stdio option provided to runScript");if(!Array.isArray(o)||o.some(c=>typeof c!="string"))throw new TypeError("invalid args option provided to runScript");if(a!==void 0&&typeof a!="string")throw new TypeError("invalid cmd option provided to runScript")};L4.exports=nV});var M4=S((aoe,N4)=>{"use strict";y();var oV=Gl(),P4=B4(),aV=I4(),cV=ev(),hV=i=>{aV(i);let{pkg:e,path:t}=i;return e?P4(i):oV(t+"/package.json").then(r=>P4({...i,pkg:r}))};N4.exports=Object.assign(hV,{isServerPackage:cV})});var Dd=S((hoe,j4)=>{"use strict";y();var uV=Ws(),lV=Lo(),fV=io(),U4=IO(),dV=ZO(),pV=q0(),q4=Symbol("_prepareDir"),{resolve:mV}=b("path"),gV=Symbol.for("package.Fetcher._readPackageJson"),yV=M4(),EV=Symbol.for("pacote.Fetcher._tarballFromResolved"),tv=class extends uV{constructor(e,t){super(e,t),this.resolved=this.spec.fetchSpec,this.tree=t.tree||null,this.Arborist=t.Arborist||null}static tarCreateOptions(e){return U4(e)}get types(){return["directory"]}[q4](){return this.manifest().then(e=>{if(!e.scripts||!e.scripts.prepare)return;let t=this.opts.foregroundScripts?"inherit":"pipe",r=this.opts.silent?!1:t==="inherit";return yV({pkg:e,event:"prepare",path:this.resolved,stdio:t,banner:r,env:{npm_package_resolved:this.resolved,npm_package_integrity:this.integrity,npm_package_json:mV(this.resolved,"package.json")}})})}[EV](){if(!this.tree&&!this.Arborist)throw new Error("DirFetcher requires either a tree or an Arborist constructor to pack");let e=new fV;e.resolved=this.resolved,e.integrity=this.integrity;let{prefix:t,workspaces:r}=this.opts;return this[q4]().then(async()=>{if(!this.tree){let s=new this.Arborist({path:this.resolved});this.tree=await s.loadActual()}return dV(this.tree,{path:this.resolved,prefix:t,workspaces:r})}).then(s=>pV.c(U4(this.package),s).on("error",n=>e.emit("error",n)).pipe(e)).catch(s=>e.emit("error",s)),e}manifest(){return this.package?Promise.resolve(this.package):this[gV](this.resolved+"/package.json").then(e=>this.package={...e,_integrity:this.integrity&&String(this.integrity),_resolved:this.resolved,_from:this.from})}packument(){return lV.prototype.packument.apply(this)}};j4.exports=tv});var nv=S((loe,$4)=>{"use strict";y();var oh=class extends Error{shouldRetry(){return!1}},iv=class extends oh{constructor(e){super("A git connection error occurred")}shouldRetry(e){return e<3}},rv=class extends oh{constructor(e){super("The git reference could not be found")}},sv=class extends oh{constructor(e){super("An unknown git error occurred")}};$4.exports={GitConnectionError:iv,GitPathspecError:rv,GitUnknownError:sv}});var G4=S((doe,z4)=>{"use strict";y();var{GitConnectionError:SV,GitPathspecError:vV,GitUnknownError:bV}=nv(),wV=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),xV=/pathspec .* did not match any file\(s\) known to git/;function DV(i){let e=i.stderr,t;return wV.test(e)?t=new SV(e):xV.test(e)?t=new vV(e):t=new bV(e),Object.assign(t,i)}z4.exports=DV});var tB=S((moe,eB)=>{"use strict";y();var V4=_v(),{join:CV,delimiter:AV,sep:H4,posix:J4}=b("path"),X4=process.platform==="win32",W4=new RegExp(`[${J4.sep}${H4===J4.sep?"":H4}]`.replace(/(\\)/g,"\\$1")),_V=new RegExp(`^\\.${W4.source}`),K4=i=>Object.assign(new Error(`not found: ${i}`),{code:"ENOENT"}),Y4=(i,{path:e=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=AV})=>{let s=i.match(W4)?[""]:[...X4?[process.cwd()]:[],...(e||"").split(r)];if(X4){let n=t||[".EXE",".CMD",".BAT",".COM"].join(r),o=n.split(r);return i.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:s,pathExt:o,pathExtExe:n}}return{pathEnv:s,pathExt:[""]}},Z4=(i,e)=>{let t=/^".*"$/.test(i)?i.slice(1,-1):i;return(!t&&_V.test(e)?e.slice(0,2):"")+CV(t,e)},Q4=async(i,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:s}=Y4(i,e),n=[];for(let o of t){let a=Z4(o,i);for(let c of r){let l=a+c;if(await V4(l,{pathExt:s,ignoreErrors:!0})){if(!e.all)return l;n.push(l)}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw K4(i)},TV=(i,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:s}=Y4(i,e),n=[];for(let o of t){let a=Z4(o,i);for(let c of r){let l=a+c;if(V4.sync(l,{pathExt:s,ignoreErrors:!0})){if(!e.all)return l;n.push(l)}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw K4(i)};eB.exports=Q4;Q4.sync=TV});var rB=S((yoe,iB)=>{"use strict";y();var kV=tB(),ov;try{ov=kV.sync("git")}catch{}iB.exports=(i={})=>i.git?i.git:!ov||i.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):ov});var nB=S((Soe,sB)=>{"use strict";y();var FV={GIT_ASKPASS:"echo",GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"};sB.exports=(i={})=>({stdioString:!0,...i,shell:!1,env:i.env||{...FV,...process.env}})});var ah=S((boe,oB)=>{"use strict";y();var RV=wd(),OV=$u(),BV=Tn(),LV=G4(),IV=rB(),PV=nB();oB.exports=(i,e={})=>{let t=IV(e);if(t instanceof Error)return Promise.reject(t);let r=e.allowReplace||i[0]==="--no-replace-objects"?i:["--no-replace-objects",...i],s=e.retry;return s==null&&(s={retries:e.fetchRetries||2,factor:e.fetchRetryFactor||10,maxTimeout:e.fetchRetryMaxtimeout||6e4,minTimeout:e.fetchRetryMintimeout||1e3}),OV((n,o)=>(o!==1&&BV.silly("git",`Retrying git command: ${r.join(" ")} attempt # ${o}`),RV(t,r,PV(e)).catch(a=>{let c=LV(a);if(!c.shouldRetry(o))throw c;n(c)})),s)}});var hB=S((xoe,cB)=>{"use strict";y();var aB=
|
|
93
|
-
`))).then(t=>(uB.set(i,t),t)))}});var dB=S(fB=>{"use strict";y();var VV=i=>(i.fakePlatform||process.platform)==="win32";fB.isWindows=VV});var yB=S((koe,gB)=>{"use strict";y();var pB=
|
|
92
|
+
`,s},sV=async i=>{let{event:e,path:t,scriptShell:r,binPaths:s=!1,env:n={},stdio:o="pipe",pkg:a,args:c=[],stdioString:l,banner:f=!0,signalTimeout:m=500}=i,{scripts:d={},gypfile:h}=a,u=null;if(i.cmd?u=i.cmd:a.scripts&&a.scripts[e]?u=a.scripts[e]:e==="install"&&!d.install&&!d.preinstall&&h!==!1&&await QX(t)?u=eV:e==="start"&&await iV(t)&&(u="node server.js"),!u)return{code:0,signal:null};o==="inherit"&&f!==!1&&console.log(rV(a._id,e,u,c));let[p,g,E]=KX({event:e,path:t,scriptShell:r,binPaths:s,env:ZX(n,a),stdio:o,cmd:u,args:c,stdioString:l}),v=YX(p,g,E,{event:e,script:u,pkgid:a._id,path:t});return o==="inherit"&&tV.add(v.process),v.stdin&&v.stdin.end(),v.catch(D=>{let{signal:x}=D;if(o==="inherit"&&x)return process.kill(process.pid,x),new Promise((w,_)=>setTimeout(()=>_(D),m));throw D})};O4.exports=sV});var I4=S((noe,L4)=>{"use strict";y();var nV=i=>{if(typeof i!="object"||!i)throw new TypeError("invalid options object provided to runScript");let{event:e,path:t,scriptShell:r,env:s={},stdio:n="pipe",args:o=[],cmd:a}=i;if(!e||typeof e!="string")throw new TypeError("valid event not provided to runScript");if(!t||typeof t!="string")throw new TypeError("valid path not provided to runScript");if(r!==void 0&&typeof r!="string")throw new TypeError("invalid scriptShell option provided to runScript");if(typeof s!="object"||!s)throw new TypeError("invalid env option provided to runScript");if(typeof n!="string"&&!Array.isArray(n))throw new TypeError("invalid stdio option provided to runScript");if(!Array.isArray(o)||o.some(c=>typeof c!="string"))throw new TypeError("invalid args option provided to runScript");if(a!==void 0&&typeof a!="string")throw new TypeError("invalid cmd option provided to runScript")};L4.exports=nV});var M4=S((aoe,N4)=>{"use strict";y();var oV=Gl(),P4=B4(),aV=I4(),cV=ev(),hV=i=>{aV(i);let{pkg:e,path:t}=i;return e?P4(i):oV(t+"/package.json").then(r=>P4({...i,pkg:r}))};N4.exports=Object.assign(hV,{isServerPackage:cV})});var Dd=S((hoe,j4)=>{"use strict";y();var uV=Ws(),lV=Lo(),fV=io(),U4=IO(),dV=ZO(),pV=q0(),q4=Symbol("_prepareDir"),{resolve:mV}=b("path"),gV=Symbol.for("package.Fetcher._readPackageJson"),yV=M4(),EV=Symbol.for("pacote.Fetcher._tarballFromResolved"),tv=class extends uV{constructor(e,t){super(e,t),this.resolved=this.spec.fetchSpec,this.tree=t.tree||null,this.Arborist=t.Arborist||null}static tarCreateOptions(e){return U4(e)}get types(){return["directory"]}[q4](){return this.manifest().then(e=>{if(!e.scripts||!e.scripts.prepare)return;let t=this.opts.foregroundScripts?"inherit":"pipe",r=this.opts.silent?!1:t==="inherit";return yV({pkg:e,event:"prepare",path:this.resolved,stdio:t,banner:r,env:{npm_package_resolved:this.resolved,npm_package_integrity:this.integrity,npm_package_json:mV(this.resolved,"package.json")}})})}[EV](){if(!this.tree&&!this.Arborist)throw new Error("DirFetcher requires either a tree or an Arborist constructor to pack");let e=new fV;e.resolved=this.resolved,e.integrity=this.integrity;let{prefix:t,workspaces:r}=this.opts;return this[q4]().then(async()=>{if(!this.tree){let s=new this.Arborist({path:this.resolved});this.tree=await s.loadActual()}return dV(this.tree,{path:this.resolved,prefix:t,workspaces:r})}).then(s=>pV.c(U4(this.package),s).on("error",n=>e.emit("error",n)).pipe(e)).catch(s=>e.emit("error",s)),e}manifest(){return this.package?Promise.resolve(this.package):this[gV](this.resolved+"/package.json").then(e=>this.package={...e,_integrity:this.integrity&&String(this.integrity),_resolved:this.resolved,_from:this.from})}packument(){return lV.prototype.packument.apply(this)}};j4.exports=tv});var nv=S((loe,$4)=>{"use strict";y();var oh=class extends Error{shouldRetry(){return!1}},iv=class extends oh{constructor(e){super("A git connection error occurred")}shouldRetry(e){return e<3}},rv=class extends oh{constructor(e){super("The git reference could not be found")}},sv=class extends oh{constructor(e){super("An unknown git error occurred")}};$4.exports={GitConnectionError:iv,GitPathspecError:rv,GitUnknownError:sv}});var G4=S((doe,z4)=>{"use strict";y();var{GitConnectionError:SV,GitPathspecError:vV,GitUnknownError:bV}=nv(),wV=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),xV=/pathspec .* did not match any file\(s\) known to git/;function DV(i){let e=i.stderr,t;return wV.test(e)?t=new SV(e):xV.test(e)?t=new vV(e):t=new bV(e),Object.assign(t,i)}z4.exports=DV});var tB=S((moe,eB)=>{"use strict";y();var V4=_v(),{join:CV,delimiter:AV,sep:H4,posix:J4}=b("path"),X4=process.platform==="win32",W4=new RegExp(`[${J4.sep}${H4===J4.sep?"":H4}]`.replace(/(\\)/g,"\\$1")),_V=new RegExp(`^\\.${W4.source}`),K4=i=>Object.assign(new Error(`not found: ${i}`),{code:"ENOENT"}),Y4=(i,{path:e=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=AV})=>{let s=i.match(W4)?[""]:[...X4?[process.cwd()]:[],...(e||"").split(r)];if(X4){let n=t||[".EXE",".CMD",".BAT",".COM"].join(r),o=n.split(r);return i.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:s,pathExt:o,pathExtExe:n}}return{pathEnv:s,pathExt:[""]}},Z4=(i,e)=>{let t=/^".*"$/.test(i)?i.slice(1,-1):i;return(!t&&_V.test(e)?e.slice(0,2):"")+CV(t,e)},Q4=async(i,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:s}=Y4(i,e),n=[];for(let o of t){let a=Z4(o,i);for(let c of r){let l=a+c;if(await V4(l,{pathExt:s,ignoreErrors:!0})){if(!e.all)return l;n.push(l)}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw K4(i)},TV=(i,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:s}=Y4(i,e),n=[];for(let o of t){let a=Z4(o,i);for(let c of r){let l=a+c;if(V4.sync(l,{pathExt:s,ignoreErrors:!0})){if(!e.all)return l;n.push(l)}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw K4(i)};eB.exports=Q4;Q4.sync=TV});var rB=S((yoe,iB)=>{"use strict";y();var kV=tB(),ov;try{ov=kV.sync("git")}catch{}iB.exports=(i={})=>i.git?i.git:!ov||i.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):ov});var nB=S((Soe,sB)=>{"use strict";y();var FV={GIT_ASKPASS:"echo",GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"};sB.exports=(i={})=>({stdioString:!0,...i,shell:!1,env:i.env||{...FV,...process.env}})});var ah=S((boe,oB)=>{"use strict";y();var RV=wd(),OV=$u(),BV=Tn(),LV=G4(),IV=rB(),PV=nB();oB.exports=(i,e={})=>{let t=IV(e);if(t instanceof Error)return Promise.reject(t);let r=e.allowReplace||i[0]==="--no-replace-objects"?i:["--no-replace-objects",...i],s=e.retry;return s==null&&(s={retries:e.fetchRetries||2,factor:e.fetchRetryFactor||10,maxTimeout:e.fetchRetryMaxtimeout||6e4,minTimeout:e.fetchRetryMintimeout||1e3}),OV((n,o)=>(o!==1&&BV.silly("git",`Retrying git command: ${r.join(" ")} attempt # ${o}`),RV(t,r,PV(e)).catch(a=>{let c=LV(a);if(!c.shouldRetry(o))throw c;n(c)})),s)}});var hB=S((xoe,cB)=>{"use strict";y();var aB=aa();cB.exports=i=>NV(i.reduce(zV,{versions:{},"dist-tags":{},refs:{},shas:{}}));var NV=i=>qV(MV(UV(i))),MV=i=>(Object.keys(i.refs).forEach(e=>{let t=i.refs[e];i.shas[t.sha]?i.shas[t.sha].push(e):i.shas[t.sha]=[e]}),i),UV=i=>(Object.keys(i.refs).filter(e=>e.endsWith("^{}")).forEach(e=>{let t=i.refs[e],r=i.refs[e.replace(/\^\{\}$/,"")];r&&(r.sha=t.sha,delete i.refs[e])}),i),qV=i=>{let e=i.refs.HEAD||{};return Object.keys(i.versions).forEach(r=>{let s=i.versions[r];i.refs.latest&&s.sha===i.refs.latest.sha?i["dist-tags"].latest=r:s.sha===e.sha&&(i["dist-tags"].HEAD=r,i.refs.latest||(i["dist-tags"].latest=r))}),i},jV=i=>i.startsWith("refs/tags/")?"tag":i.startsWith("refs/heads/")?"branch":i.startsWith("refs/pull/")?"pull":i==="HEAD"?"head":"other",$V=i=>{let e=i.trim().split(/\s+/,2);if(e.length<2)return null;let t=e[0].trim(),r=e[1].trim(),s=jV(r);if(s==="tag"){let n=r.slice(10);return{sha:t,ref:n,rawRef:r,type:s}}if(s==="branch"){let n=r.slice(11);return{sha:t,ref:n,rawRef:r,type:s}}if(s==="pull"){let n=r.slice(5).replace(/\/head$/,"");return{sha:t,ref:n,rawRef:r,type:s}}return s==="head"?{sha:t,ref:"HEAD",rawRef:r,type:s}:{sha:t,ref:r,rawRef:r,type:s}},zV=(i,e)=>{let t=$V(e);if(!t)return i;if(i.refs[t.ref]=t,i.refs[t.rawRef]=t,t.type==="tag"){let r=!t.ref.endsWith("^{}")&&t.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);r&&aB.valid(r[1],!0)&&(i.versions[aB.clean(r[1],!0)]=t)}return i}});var av=S((Coe,lB)=>{"use strict";y();var GV=qg(),HV=ah(),JV=_n(),uB=new JV({max:100,ttl:5*60*1e3}),XV=hB();lB.exports=async(i,e={})=>{if(!e.noGitRevCache){let t=uB.get(i);if(t)return t}return GV(`ls-remote:${i}`,()=>HV(["ls-remote",i],e).then(({stdout:t})=>XV(t.trim().split(`
|
|
93
|
+
`))).then(t=>(uB.set(i,t),t)))}});var dB=S(fB=>{"use strict";y();var VV=i=>(i.fakePlatform||process.platform)==="win32";fB.isWindows=VV});var yB=S((koe,gB)=>{"use strict";y();var pB=aa(),WV=(i,e,t,r=!1)=>{let s=r?null:t,n=i.engines,o={includePrerelease:!0};if(!n)return;let a=s&&n.node&&!pB.satisfies(s,n.node,o),c=e&&n.npm&&!pB.satisfies(e,n.npm,o);if(a||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:i._id,current:{node:t,npm:e},required:n,code:"EBADENGINE"})},KV=(i,e=!1)=>{if(e)return;let t=process.platform,r=process.arch,s=i.os?mB(t,i.os):!0,n=i.cpu?mB(r,i.cpu):!0;if(!s||!n)throw Object.assign(new Error("Unsupported platform"),{pkgid:i._id,current:{os:t,cpu:r},required:{os:i.os,cpu:i.cpu},code:"EBADPLATFORM"})},mB=(i,e)=>{if(typeof e=="string"&&(e=[e]),e.length===1&&e[0]==="any")return!0;let t=0,r=!1;for(let s of e){let n=s.charAt(0)==="!",o=n?s.slice(1):s;if(n){if(t++,i===o)return!1}else r=r||i===o}return r||t===e.length};gB.exports={checkEngine:WV,checkPlatform:KV}});var _d=S((Roe,vB)=>{"use strict";y();var SB=Fn(),ch=aa(),{checkEngine:YV}=yB(),ZV=Ro(),EB=(i,e,t)=>{try{return YV(i,e,t),!0}catch{return!1}},Cd=(i,e,t)=>!i||!i[e]||Date.parse(i[e])<=t,QV={includePrerelease:!0,loose:!0},Ad=(i,e)=>e&&ch.satisfies(i,e,QV),cv=(i,e)=>i&&Ad(i.version,e)?{...i,_shouldAvoid:!0}:i,hh=(i,e,t)=>{let{defaultTag:r="latest",before:s=null,nodeVersion:n=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:c=null,avoidStrict:l=!1}=t,{name:f,time:m}=i,d=i.versions||{};if(l){let T={...t,avoidStrict:!1},O=hh(i,e,T);if(!O||!O._shouldAvoid)return O;let M=hh(i,`^${O.version}`,T);if(!M||!M._shouldAvoid)return{...M,_outsideDependencyRange:!0,_isSemVerMajor:!1};let q=hh(i,"*",T);if(!q||!q._shouldAvoid)return{...q,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:e,avoid:c,before:s,versions:Object.keys(d)})}let h=a&&i.stagedVersions&&i.stagedVersions.versions||{},u=i.policyRestrictions&&i.policyRestrictions.versions||{},p=s&&m?+new Date(s):1/0,E=SB.resolve(f,e||r).type,v=i["dist-tags"]||{};if(E!=="tag"&&E!=="version"&&E!=="range")throw new Error("Only tag, version, and range are supported");if(e&&E==="tag"){let T=v[e];return Cd(m,T,p)?cv(d[T]||h[T]||u[T],c):hh(i,`<=${T}`,t)}if(e&&E==="version"){let T=ch.clean(e,{loose:!0}),O=d[T]||h[T]||u[T];return Cd(m,T,p)?cv(O,c):null}let D=E==="range"?e:"*",x=v[r];if(x&&(D==="*"||ch.satisfies(x,D,{loose:!0}))&&!Ad(x,c)){let T=d[x];if(T&&Cd(m,x,p))return T}let w=Object.entries(d).concat(Object.entries(h)).concat(Object.entries(u)).filter(([T,O])=>Cd(m,T,p));if(!w.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:E,wanted:e,before:s,versions:Object.keys(d)});let _={loose:!0},R=w.filter(([T,O])=>ch.satisfies(T,D,{loose:!0})).sort((T,O)=>{let[M,q]=T,[Ne,ze]=O,Ud=!Ad(M,c),qd=!Ad(Ne,c),jd=!u[T],$d=!u[O],zd=!h[T],Gd=!h[O],ph=!q.deprecated,mh=!ze.deprecated,gh=EB(q,o,n),yh=EB(ze,o,n);return qd-Ud||$d-jd||Gd-zd||(mh&&yh)-(ph&&gh)||yh-gh||mh-ph||ch.rcompare(M,Ne,_)});return cv(R[0]&&R[0][1],c)};vB.exports=(i,e,t={})=>{let r=hh(i,e,t),s=r&&ZV(r),n=i.policyRestrictions,o=n&&n.versions||{};if(s&&!o[s.version])return s;let{before:a=null,defaultTag:c="latest"}=t,l=a?new Date(a).toLocaleString():"",{name:f}=i,m=`${f}@${e}`+(a?` with a date before ${l}`:""),d=s&&!!o[s.version],h=d?n.message:"",u=d?`Could not download ${m} due to policy violations:
|
|
94
94
|
${h}`:`No matching version found for ${m}.`,p=d?"E403":"ETARGET";throw Object.assign(new Error(u),{code:p,type:SB.resolve(i.name,e).type,wanted:e,versions:Object.keys(i.versions),name:f,distTags:i["dist-tags"],defaultTag:c})}});var CB=S((Boe,DB)=>{"use strict";y();var eW=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:tW}=b("url"),bB=b("path"),iW=av(),uh=ah(),{isWindows:Td}=dB(),rW=_d(),sW=b("fs"),wB=D0();DB.exports=(i,e="HEAD",t=null,r={})=>iW(i,r).then(s=>oW(i,s,e,aW(s,e,r),t||nW(i,r.cwd),r));var hv=(i,e)=>e.gitShallow===!1||e.gitShallow?e.gitShallow:eW.has(tW(i).host),nW=(i,e=process.cwd())=>bB.resolve(e,bB.basename(i.replace(/[/\\]?\.git$/,""))),oW=(i,e,t,r,s,n)=>r?r.sha===e.refs.HEAD.sha?uW(i,r,s,n):r.type==="tag"||r.type==="branch"?hW(i,r,s,n):cW(i,r,s,n):lW(i,t,s,n),aW=(i,e,t)=>{let{spec:r={}}=t;return e=r.gitCommittish||e,i?r.gitRange?rW(i,r.gitRange,t):e?i.refs[e]?i.refs[e]:i.shas[e]?i.refs[i.shas[e][0]]:null:i.refs.HEAD:null},cW=(i,e,t,r)=>{let s=hv(i,r),n=["fetch","origin",e.rawRef].concat(s?["--depth=1"]:[]),o=a=>uh(a,{...r,cwd:t});return wB(t).then(()=>o(["init"])).then(()=>Td(r)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",i])).then(()=>o(n)).then(()=>o(["checkout",e.sha])).then(()=>xB(t,r)).then(()=>e.sha)},hW=(i,e,t,r)=>{let s=["clone","-b",e.ref,i,t,"--recurse-submodules"];return hv(i,r)&&s.push("--depth=1"),Td(r)&&s.push("--config","core.longpaths=true"),uh(s,r).then(()=>e.sha)},uW=(i,e,t,r)=>{let s=["clone",i,t,"--recurse-submodules"];return hv(i,r)&&s.push("--depth=1"),Td(r)&&s.push("--config","core.longpaths=true"),uh(s,r).then(()=>e.sha)},xB=(i,e)=>new Promise(t=>sW.stat(i+"/.gitmodules",r=>t(r?null:uh(["submodule","update","-q","--init","--recursive"],{...e,cwd:i})))),lW=(i,e,t,r)=>{let s=Td(r)?["--config","core.longpaths=true"]:[],n=["clone","--mirror","-q",i,t+"/.git"],o=a=>uh(a,{...r,cwd:t});return wB(t).then(()=>o(n.concat(s))).then(()=>o(["init"])).then(()=>o(["checkout",e])).then(()=>xB(t,r)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var uv=S((Ioe,AB)=>{"use strict";y();var{promisify:fW}=b("util"),dW=b("fs"),pW=fW(dW.stat);AB.exports=({cwd:i=process.cwd()}={})=>pW(i+"/.git").then(()=>!0,()=>!1)});var FB=S((Noe,kB)=>{"use strict";y();var _B=uv(),{dirname:TB}=b("path");kB.exports=async({cwd:i=process.cwd()}={})=>{if(await _B({cwd:i}))return i;for(;i!==TB(i);)if(i=TB(i),await _B({cwd:i}))return i;return null}});var OB=S((Uoe,RB)=>{"use strict";y();var mW=ah();RB.exports=(i={})=>mW(["status","--porcelain=v1","-uno"],i).then(e=>!e.stdout.trim().split(/\r?\n+/).map(t=>t.trim()).filter(t=>t).length)});var LB=S((joe,BB)=>{"use strict";y();BB.exports={clone:CB(),revs:av(),spawn:ah(),is:uv(),find:FB(),isClean:OB(),errors:nv()}});var PB=S((zoe,IB)=>{"use strict";y();var gW=wd();IB.exports=(i,e,t,r,s)=>{let n=i.endsWith(".js"),o=n?process.execPath:i,a=(n?[i]:[]).concat(e);return gW(o,a,{cwd:t,env:r},s)}});var MB=S((Hoe,NB)=>{"use strict";y();var yW=(i,e)=>{if(i.hosted){let t=i.hosted,r={noCommittish:!0};return`${t.https&&t.auth?t.https(r):t.shortcut(r)}#${e}`}else return i.rawSpec.replace(/#.*$/,"")+`#${e}`};NB.exports=yW});var dv=S((Xoe,WB)=>{"use strict";y();var EW=Ws(),UB=Lo(),SW=rh(),vW=Dd(),bW=/^[a-f0-9]{40}$/,kd=LB(),wW=_d(),xW=Fn(),DW=io(),CW=yc(),qB=Tn(),AW=PB(),Fd=Symbol("_resolvedFromRepo"),jB=Symbol("_resolvedFromHosted"),$B=Symbol("_resolvedFromClone"),zB=Symbol.for("pacote.Fetcher._tarballFromResolved"),lv=Symbol("_addGitSha"),_W=MB(),lh=Symbol("_clone"),GB=Symbol("_cloneHosted"),Rd=Symbol("_cloneRepo"),HB=Symbol("_setResolvedWithSha"),JB=Symbol("_prepareDir"),XB=Symbol.for("package.Fetcher._readPackageJson"),Od=(i,e)=>i.sshurl&&!(i.https&&i.auth)&&VB(i.sshurl(e))||i.https&&VB(i.https(e)),VB=i=>i&&`git+${i}`.replace(/^(git\+)+/,"git+"),fv=class extends EW{constructor(e,t){super(e,t),this.opts.integrity&&(delete this.opts.integrity,qB.warn(`skipping integrity check for git dependency ${this.spec.fetchSpec}`)),this.resolvedRef=null,this.spec.hosted&&(this.from=this.spec.hosted.shortcut({noCommittish:!1})),this.spec.gitCommittish&&bW.test(this.spec.gitCommittish)?(this.resolvedSha=this.spec.gitCommittish,this.resolved=this.spec.hosted?Od(this.spec.hosted,{noCommittish:!1}):this.spec.rawSpec):this.resolvedSha="",this.Arborist=t.Arborist||null}static repoUrl(e,t){return Od(e,t)}get types(){return["git"]}resolve(){if(this.resolved)return super.resolve();let e=this.spec.hosted;return e?this[jB](e):this[Fd](this.spec.fetchSpec)}[jB](e){return this[Fd](e.https&&e.https()).catch(t=>{if(t instanceof kd.errors.GitPathspecError)throw t;let r=e.sshurl&&e.sshurl();if(!r||e.auth)throw t;return this[Fd](r)})}[Fd](e){if(!e)return Promise.reject(new Error(`No git url for ${this.spec}`));let t=this.spec.gitRange,r=this.spec.name;return kd.revs(e,this.opts).then(s=>t?wW({versions:s.versions,"dist-tags":s["dist-tags"],name:r},t,this.opts):this.spec.gitCommittish?s.refs[this.spec.gitCommittish]||s.refs[s.shas[this.spec.gitCommittish]]:s.refs.HEAD).then(s=>!s||!s.sha?this[$B]():(this.resolvedRef=s,this.resolvedSha=s.sha,this[lv](s.sha),this.resolved))}[HB](e){this.resolved=this.spec.hosted?Od(xW(e).hosted,{noCommittish:!1}):e}[lv](e){this[HB](_W(this.spec,e))}[$B](){return this[lh](e=>this.resolved)}[JB](e){return this[XB](e+"/package.json").then(t=>{let r=t.scripts;if(!t.workspaces&&(!r||!(r.postinstall||r.build||r.preinstall||r.install||r.prepack||r.prepare)))return;let s=process.env._PACOTE_NO_PREPARE_?process.env._PACOTE_NO_PREPARE_.split(`
|
|
95
95
|
`):[];if(s.includes(this.resolved)){qB.info("prepare","skip prepare, already seen",this.resolved);return}return s.push(this.resolved),AW(this.npmBin,[].concat(this.npmInstallCmd).concat(this.npmCliConfig),e,{...process.env,_PACOTE_NO_PREPARE_:s.join(`
|
|
96
|
-
`)},{message:"git dep preparation failed"})})}[zB](){let e=new DW;return e.resolved=this.resolved,e.from=this.from,this[lh](t=>this[JB](t).then(()=>new Promise((r,s)=>{if(!this.Arborist)throw new Error("GitFetcher requires an Arborist constructor to pack a tarball");let o=new vW(`file:${t}`,{...this.opts,Arborist:this.Arborist,resolved:null,integrity:null})[zB]();o.on("error",s),o.on("end",r),o.pipe(e)}))).catch(t=>e.emit("error",t)),e}[lh](e,t=!0){let r={tmpPrefix:"git-clone"},s=this.resolvedSha||this.spec.gitCommittish,n=this.spec.hosted,o=this.resolved;return t=t&&n&&o===Od(n,{noCommittish:!1})&&n.tarball,CW.tmp.withTmp(this.cache,r,async a=>{if(t){let l=this.spec.name?`${this.spec.name}@`:"";return new SW(n.tarball({noCommittish:!1}),{...this.opts,allowGitIgnore:!0,pkgid:`git:${l}${this.resolved}`,resolved:this.resolved,integrity:null}).extract(a).then(()=>e(a),f=>{if(f.constructor.name.match(/^Http/))return this[lh](e,!1);throw f})}let c=await(n?this[GB](s,a):this[Rd](this.spec.fetchSpec,s,a));return this.resolvedSha=c,this.resolved||await this[lv](c),e(a)})}[GB](e,t){let r=this.spec.hosted;return this[Rd](r.https({noCommittish:!0}),e,t).catch(s=>{if(s instanceof kd.errors.GitPathspecError)throw s;let n=r.sshurl&&r.sshurl({noCommittish:!0});if(!n||r.auth)throw s;return this[Rd](n,e,t)})}[Rd](e,t,r){let{opts:s,spec:n}=this;return kd.clone(e,t,r,{...s,spec:n})}manifest(){return this.package?Promise.resolve(this.package):this.spec.hosted&&this.resolved?UB.prototype.manifest.apply(this):this[lh](e=>this[XB](e+"/package.json").then(t=>this.package={...t,_resolved:this.resolved,_from:this.from}))}packument(){return UB.prototype.packument.apply(this)}};WB.exports=fv});var mv=S((Woe,tL)=>{"use strict";y();var TW=Ws(),kW=rh(),KB=Symbol.for("pacote.Fetcher._tarballFromResolved"),YB=rE().version,FW=_y(),RW=Gl(),OW=_d(),ZB=Wt(),BW=b("crypto"),LW="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",IW="application/json",QB=q1(),eL=Symbol("_headers"),pv=class extends TW{constructor(e,t){super(e,t),this.packumentCache=this.opts.packumentCache||null,this.registry=QB.pickRegistry(e,t),this.packumentUrl=FW(this.registry)+"/"+this.spec.escapedName;let r=new URL(this.registry),s=`//${r.host}${r.pathname}`;this.opts[`${s}:_keys`]&&(this.registryKeys=this.opts[`${s}:_keys`])}async resolve(){if(await this.manifest(),!this.resolved)throw Object.assign(new Error("Invalid package manifest: no `dist.tarball` field"),{package:this.spec.toString()});return this.resolved}[eL](){return{"user-agent":this.opts.userAgent||`pacote/${YB} node/${process.version}`,...this.opts.headers||{},"pacote-version":YB,"pacote-req-type":"packument","pacote-pkg-id":`registry:${this.spec.name}`,accept:this.fullMetadata?IW:LW}}async packument(){if(this.packumentCache&&this.packumentCache.has(this.packumentUrl))return this.packumentCache.get(this.packumentUrl);try{let e=await QB(this.packumentUrl,{...this.opts,headers:this[eL](),spec:this.spec,integrity:null}),t=await e.json();return t._contentLength=+e.headers.get("content-length"),this.packumentCache&&this.packumentCache.set(this.packumentUrl,t),t}catch(e){if(this.packumentCache&&this.packumentCache.delete(this.packumentUrl),e.code!=="E404"||this.fullMetadata)throw e;return this.fullMetadata=!0,this.packument()}}async manifest(){if(this.package)return this.package;let e=await this.packument(),t=await OW(e,this.spec.fetchSpec,{...this.opts,defaultTag:this.defaultTag,before:this.before});t=RW.normalize(t);let{dist:r}=t;if(r){this.resolved=t._resolved=r.tarball,t._from=this.from;let s=r.integrity?ZB.parse(r.integrity):r.shasum?ZB.fromHex(r.shasum,"sha1",{...this.opts}):null;if(s){if(this.integrity&&!this.integrity.match(s)){for(let n of Object.keys(this.integrity))if(s[n])throw Object.assign(new Error(`Integrity checksum failed when using ${n}: wanted ${this.integrity} but got ${s}.`),{code:"EINTEGRITY"})}this.integrity=s}}if(this.integrity&&(t._integrity=String(this.integrity),r.signatures))if(this.opts.verifySignatures){let s=`${t._id}:${t._integrity}`;for(let n of r.signatures){let o=this.registryKeys&&this.registryKeys.filter(f=>f.keyid===n.keyid)[0];if(!o)throw Object.assign(new Error(`${t._id} has a registry signature with keyid: ${n.keyid} but no corresponding public key can be found`),{code:"EMISSINGSIGNATUREKEY"});if(!(!o.expires||Date.parse(o.expires)>Date.now()))throw Object.assign(new Error(`${t._id} has a registry signature with keyid: ${n.keyid} but the corresponding public key has expired ${o.expires}`),{code:"EEXPIREDSIGNATUREKEY"});let c=BW.createVerify("SHA256");if(c.write(s),c.end(),!c.verify(o.pemkey,n.sig,"base64"))throw Object.assign(new Error(`${t._id} has an invalid registry signature with keyid: ${o.keyid} and signature: ${n.sig}`),{code:"EINTEGRITYSIGNATURE",keyid:o.keyid,signature:n.sig,resolved:t._resolved,integrity:t._integrity})}t._signatures=r.signatures}else t._signatures=r.signatures;return this.package=t,this.package}[KB](){return new kW(this.resolved,{...this.opts,resolved:this.resolved,pkgid:`registry:${this.spec.name}@${this.resolved}`})[KB]()}get types(){return["tag","version","range"]}};tL.exports=pv});var Ws=S((Yoe,gL)=>{"use strict";y();var mL=Fn(),gv=Wt(),{promisify:PW}=b("util"),{basename:NW,dirname:iL}=b("path"),MW=q0(),gn=Tn(),UW=$u(),yv=b("fs/promises"),qW=tg(),Ev=yc(),jW=Ay(),$W=_y(),zW=YT(),GW=Gl(),HW=PW(lk()),JW=io(),XW=mk(),rL=Symbol("_extract"),sL=Symbol("_mkdir"),nL=Symbol("_empty"),oL=Symbol("_toFile"),aL=Symbol("_tarxOptions"),cL=Symbol("_entryMode"),hL=Symbol("_istream"),uL=Symbol("_assertType"),lL=Symbol("_tarballFromCache"),fL=Symbol.for("pacote.Fetcher._tarballFromResolved"),dL=Symbol.for("pacote.Fetcher._cacheFetches"),pL=Symbol.for("package.Fetcher._readPackageJson"),Bd=class{constructor(e,t){if(!t||typeof t!="object")throw new TypeError("options object is required");this.spec=mL(e,t.where),this.allowGitIgnore=!!t.allowGitIgnore,this.from=this.spec.registry?`${this.spec.name}@${this.spec.rawSpec}`:this.spec.saveSpec,this[uL](),this.opts={...t},this.cache=t.cache||XW(),this.resolved=t.resolved||null,this.defaultIntegrityAlgorithm=t.defaultIntegrityAlgorithm||"sha512",typeof t.integrity=="string"&&(this.opts.integrity=gv.parse(t.integrity)),this.package=null,this.type=this.constructor.name,this.fmode=t.fmode||438,this.dmode=t.dmode||511,this.umask=t.umask||0,this.preferOnline=!!t.preferOnline,this.preferOffline=!!t.preferOffline,this.offline=!!t.offline,this.before=t.before,this.fullMetadata=this.before?!0:!!t.fullMetadata,this.fullReadJson=!!t.fullReadJson,this.fullReadJson?this[pL]=HW:this[pL]=GW,this.replaceRegistryHost=!t.replaceRegistryHost||t.replaceRegistryHost==="npmjs"?"registry.npmjs.org":t.replaceRegistryHost,this.defaultTag=t.defaultTag||"latest",this.registry=$W(t.registry||"https://registry.npmjs.org"),this.npmBin=t.npmBin||"npm",this.npmInstallCmd=t.npmInstallCmd||["install","--force"],this.npmCliConfig=t.npmCliConfig||[`--cache=${iL(this.cache)}`,`--prefer-offline=${!!this.preferOffline}`,`--prefer-online=${!!this.preferOnline}`,`--offline=${!!this.offline}`,...this.before?[`--before=${this.before.toISOString()}`]:[],"--no-progress","--no-save","--no-audit","--include=dev","--include=peer","--include=optional","--no-package-lock-only","--no-dry-run"]}get integrity(){return this.opts.integrity||null}set integrity(e){if(!e)return;e=gv.parse(e);let t=this.opts.integrity;t?t.merge(e):this.opts.integrity=e}get notImplementedError(){return new Error("not implemented in this fetcher type: "+this.type)}resolve(){return this.resolved?Promise.resolve(this.resolved):Promise.reject(this.notImplementedError)}packument(){return Promise.reject(this.notImplementedError)}manifest(){return Promise.reject(this.notImplementedError)}[fL](){throw this.notImplementedError}tarball(){return this.tarballStream(e=>e.concat().then(t=>(t.integrity=this.integrity&&String(this.integrity),t.resolved=this.resolved,t.from=this.from,t)))}[lL](){return Ev.get.stream.byDigest(this.cache,this.integrity,this.opts)}get[dL](){return!0}[hL](e){if(!this.opts.cache||!this[dL]){if(e.hasIntegrityEmitter)return e.on("integrity",n=>this.integrity=n),e;let s=gv.integrityStream(this.opts);return s.on("integrity",n=>this.integrity=n),e.on("error",n=>s.emit("error",n)),e.pipe(s)}let t=new JW;e.on("error",s=>t.emit("error",s)),e.pipe(t,{end:!1});let r=Ev.put.stream(this.opts.cache,`pacote:tarball:${this.from}`,this.opts);return r.on("integrity",s=>this.integrity=s),r.on("error",s=>e.emit("error",s)),e.pipe(r),r.promise().catch(()=>{}).then(()=>t.end()),t}pickIntegrityAlgorithm(){return this.integrity?this.integrity.pickAlgorithm(this.opts):this.defaultIntegrityAlgorithm}isDataCorruptionError(e){return e.code==="EINTEGRITY"||e.code==="Z_DATA_ERROR"}get types(){return!1}[uL](){if(this.types&&!this.types.includes(this.spec.type))throw new TypeError(`Wrong spec type (${this.spec.type}) for ${this.constructor.name}. Supported types: ${this.types.join(", ")}`)}isRetriableError(e){return this.isDataCorruptionError(e)||e.code==="ENOENT"||e.code==="EISDIR"}tarballStream(e){let t=!this.preferOnline&&this.integrity&&this.resolved?e(this[lL]()).catch(s=>{if(this.isDataCorruptionError(s))return gn.warn("tarball",`cached data for ${this.spec} (${this.integrity}) seems to be corrupted. Refreshing cache.`),this.cleanupCached().then(()=>{throw s});throw s}):null,r=s=>{if(s){if(!this.isRetriableError(s))throw s;gn.silly("tarball",`no local data for ${this.spec}. Extracting by manifest.`)}return this.resolve().then(()=>UW(n=>e(this[hL](this[fL]())).catch(o=>{if(this.isRetriableError(o))return gn.warn("tarball",`tarball data for ${this.spec} (${this.integrity}) seems to be corrupted. Trying again.`),this.cleanupCached().then(()=>n(o));throw o}),{retries:1,minTimeout:0,maxTimeout:0}))};return t?t.catch(r):r()}cleanupCached(){return Ev.rm.content(this.cache,this.integrity,this.opts)}[nL](e){return zW({path:e,depth:1}).then(t=>Promise.all(t.map(r=>yv.rm(r,{recursive:!0,force:!0}))))}async[sL](e){return await this[nL](e),await yv.mkdir(e,{recursive:!0})}async extract(e){return await this[sL](e),this.tarballStream(t=>this[rL](e,t))}[oL](e){return this.tarballStream(t=>new Promise((r,s)=>{let n=new qW.WriteStream(e);t.on("error",o=>n.emit("error",o)),n.on("error",o=>s(o)),n.on("close",()=>r({integrity:this.integrity&&String(this.integrity),resolved:this.resolved,from:this.from})),t.pipe(n)}))}async tarballFile(e){let t=iL(e);return await yv.mkdir(t,{recursive:!0}),this[oL](e)}[rL](e,t){let r=MW.x(this[aL]({cwd:e})),s=new Promise((n,o)=>{r.on("end",()=>{n({resolved:this.resolved,integrity:this.integrity&&String(this.integrity),from:this.from})}),r.on("error",a=>{gn.warn("tar",a.message),gn.silly("tar",a),o(a)}),t.on("error",a=>o(a))});return t.pipe(r),s}[cL](e,t,r){let s=/Directory|GNUDumpDir/.test(r)?this.dmode:/File$/.test(r)?this.fmode:0,n=jW(this.package,e)?73:0;return(t|s)&~this.umask|n|384}[aL]({cwd:e,uid:t,gid:r}){let s=new Set;return{cwd:e,noChmod:!0,noMtime:!0,filter:(n,o)=>{if(/Link$/.test(o.type))return!1;if(o.mode=this[cL](o.path,o.mode,o.type),/File$/.test(o.type)){let a=NW(o.path);if(a===".npmignore")s.add(o.path);else if(a===".gitignore"&&!this.allowGitIgnore){let c=o.path.replace(/\.gitignore$/,".npmignore");if(s.has(c))return!1;o.path=c}return!0}},strip:1,onwarn:(n,o,a)=>{gn.warn("tar",n,o),gn.silly("tar",n,o,a)},uid:t,gid:r,umask:this.umask}}};gL.exports=Bd;var VW=dv(),WW=mv(),KW=Lo(),YW=Dd(),ZW=rh();Bd.get=(i,e={})=>{let t=mL(i,e.where);switch(t.type){case"git":return new VW(t,e);case"remote":return new ZW(t,e);case"version":case"range":case"tag":case"alias":return new WW(t.subSpec||t,e);case"file":return new KW(t,e);case"directory":return new YW(t,e);default:throw new TypeError("Unknown spec type: "+t.type)}}});var yL=S((Qoe,Ld)=>{"use strict";y();var{get:yn}=Ws(),QW=dv(),eK=mv(),tK=Lo(),iK=Dd(),rK=rh();Ld.exports={GitFetcher:QW,RegistryFetcher:eK,FileFetcher:tK,DirFetcher:iK,RemoteFetcher:rK,resolve:(i,e)=>yn(i,e).resolve(),extract:(i,e,t)=>yn(i,t).extract(e),manifest:(i,e)=>yn(i,e).manifest(),tarball:(i,e)=>yn(i,e).tarball(),packument:(i,e)=>yn(i,e).packument()};Ld.exports.tarball.stream=(i,e,t)=>yn(i,t).tarballStream(e);Ld.exports.tarball.file=(i,e,t)=>yn(i,t).tarballFile(e)});y();import{mkdir as cK}from"node:fs/promises";y();import{join as ps}from"node:path";function CI(i=""){return ps(i,".wix")}function Tv(i){return ps(CI(i),"types")}function Vd(i){return ps(i,"src")}function AI(i=""){return ps(Vd(i),"pages")}function kv(i=""){return ps(Vd(i),"public")}function Fv(i=""){return ps(Vd(i),"backend")}function Rv(i,e){return ps(AI(i),`${[e.pageTitle,e.pageMetaData.pageId].filter(Boolean).join(".")}.js`)}y();import{join as ms}from"node:path";function _I(i=""){return ms(i,".wix")}function wn(i){return ms(_I(i),"types")}function TI(i,e){return ms(wn(i),e)}function Ov(i,e){return ms(TI(i,e),"jsconfig.json")}function Bv(i){return ms(wn(i),"backend","jsconfig.json")}function Lv(i){return ms(wn(i),"public","jsconfig.json")}function Iv(i){return ms(wn(i),"backend.d.ts")}function Pv(i){return`${i}.d.ts`}var Nd=ds(xp(),1),AL=ds(Jd(),1),bv=ds(yL(),1);import{readFile as hK,writeFile as uK}from"node:fs/promises";import{join as CL,relative as Sv}from"node:path";import{access as lK,readFile as fK,writeFile as dK}from"node:fs/promises";import{EOL as pK}from"node:os";import{mkdir as gK}from"node:fs/promises";import{dirname as fs,join as Id,relative as En}from"node:path";var TL=ds(xp(),1);import{join as dh}from"node:path";import{mkdir as wK}from"node:fs/promises";import{join as Pd,dirname as Sn,relative as na}from"node:path";import{mkdir as bL,writeFile as wL,rm as bae,readFile as wae}from"node:fs/promises";import{dirname as St,join as vn,relative as gi}from"node:path";import xL from"node:process";y();var sK={},nK={},oK={},aK={};function EL(i){var e={"bo._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"wixbo.ai":[{srcPath:"/_serverless/typok",destPath:""}],"editor._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"blocks._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"create.editorx":[{srcPath:"/_serverless/typok",destPath:""}]};return Cv(Object.assign(i,{domainToMappings:e}))}function SL(i){var e=aa(oK,{}),t=e.toJSON,r=e.fromJSON,s=aa(aK,{}).fromJSON;function n(o){var a=o.host,c=t(i),l={entityFqdn:"wix.typok.v1.site",method:"GET",methodFqn:"wix.typok.v1.SiteService.GetSiteTypes",url:EL({protoPath:"/v1/site/{metaSiteId}/{revision}",data:c,host:a}),params:Xd(c),transformResponse:s};return l}return n.fromReq=r,n.__isAmbassador=!0,n}function vL(i){var e=aa(sK,{}),t=e.toJSON,r=e.fromJSON,s=aa(nK,{}).fromJSON;function n(o){var a=o.host,c=t(i),l={entityFqdn:"wix.typok.v1.site",method:"GET",methodFqn:"wix.typok.v1.SiteService.GetLatestSiteTypes",url:EL({protoPath:"/v1/site/latest",data:c,host:a}),params:Xd(c),transformResponse:s};return l}return n.fromReq=r,n.__isAmbassador=!0,n}var FL=ds(Jd(),1),Md=ds(EI(),1),RL=ds(Jd(),1);async function wv(i,e,t){let r=JSON.stringify(e,null,t?.spaces).concat(pK);await dK(i,r,"utf-8")}async function mK(i){let e=await fK(i,"utf-8");try{return JSON.parse(e)}catch(t){throw new AL.default({name:"InvalidJsonFile",cause:t instanceof Error?t:new Error(JSON.stringify(t))},`Invalid json file ${i}.`)}}function _L(i){return lK(i).then(()=>!0).catch(()=>!1)}async function yK(i){let e=dh(fh(i),"package.json"),t=await _L(e),r=!1;if(t){let s=await mK(e);r=(await bv.default.manifest("@wix/wix-code-types")).version===s.version}(!t||!r)&&await Dv(async()=>{await bv.default.extract("@wix/wix-code-types",fh(i))},{retries:2})}function fh(i){return dh(Tv(i),"wix-code-types")}function EK(i){return dh(fh(i),"configs/tsconfig.public")}function SK(i){return dh(fh(i),"configs/tsconfig.backend")}function vK(i){return dh(fh(i),"configs/tsconfig.page")}async function bK(i,e){let t=e.types.getPublicConfigPath(i);await gK(fs(t),{recursive:!0}),await wv(t,{extends:En(fs(t),EK(i)),compilerOptions:{composite:!0,noEmit:!1,paths:{"backend/*.web.js":[Id(En(fs(t),e.layout.getBackendFolder(i)),"*.web.js")],"backend/*.web":[Id(En(fs(t),e.layout.getBackendFolder(i)),"*.web.js")]},outDir:"build",rootDir:En(fs(t),i)},include:[Id(En(fs(t),e.layout.getPublicFolder(i)),"**/*"),Id(En(fs(t),e.layout.getBackendFolder(i)),"**/*.web.js"),En(fs(t),e.types.getBackendDTSPath(i))]})}async function xK(i,e){let t=e.types.getBackendConfigPath(i);await wK(Sn(t),{recursive:!0}),await wv(t,{extends:na(Sn(t),SK(i)),compilerOptions:{composite:!0,noEmit:!1,outDir:"build",rootDir:na(Sn(t),i),paths:{"public/*":[Pd(na(Sn(t),e.layout.getPublicFolder(i)),"*")],"backend/*":[Pd(na(Sn(t),e.layout.getBackendFolder(i)),"*")]}},include:[Pd(na(Sn(t),e.layout.getBackendFolder(i)),"**/*"),Pd(na(Sn(t),e.layout.getPublicFolder(i)),"**/*")]})}async function DK(i){let e=CL(i,"jsconfig.json");return await _L(e)?(0,Nd.parse)(await hK(e,"utf8")):{}}async function CK(i,e){let t=CL(i,"jsconfig.json");await uK(t,(0,Nd.stringify)(e,void 0,2))}async function AK(i,e,t){let r=await DK(i);r.typeAcquisition={enable:!0},r.references=Object.keys(e).map(s=>({path:Sv(i,t.types.getPageConfigFilename(i,s))})),await xK(i,t),r.references.push({path:Sv(i,t.types.getBackendConfigPath(i))}),await bK(i,t),r.references.push({path:Sv(i,t.types.getPublicConfigPath(i))}),await CK(i,r)}async function _K(i,e,t){await wL(t.types.getBackendDTSPath(i),'declare module "backend/*";'),await Promise.all(Object.entries(e).map(async([r,s])=>{let n=St(t.types.getPageConfigFilename(i,s.pageMetaData.pageId));await bL(n,{recursive:!0});let o=kL(i,s,t);await Promise.all(Object.entries(o).map(async([c,l])=>{await wL(vn(n,c),l)}));let a=t.types.getPageConfigFilename(i,r);await bL(St(a),{recursive:!0}),await wv(a,TK(i,s,t),{spaces:2})}))}function TK(i,e,t){let r=t.types.getPageConfigFilename(i,e.pageMetaData.pageId);return{extends:gi(St(r),vK(i)),compilerOptions:{composite:!0,noEmit:!1,tsBuildInfoFile:".tsbuildinfo",baseUrl:".",jsx:"react",paths:{"public/*":[vn(gi(St(r),t.layout.getPublicFolder(i)),"*")],"backend/*.web.js":[vn(gi(St(r),t.layout.getBackendFolder(i)),"*.web.js")],"backend/*.web":[vn(gi(St(r),t.layout.getBackendFolder(i)),"*.web.js")]},outDir:"build",rootDir:gi(St(r),i)},files:[gi(St(r),t.layout.getPageCodeFilePath(i,e,!0))],include:[...Object.entries(kL(i,e,t)).map(([s])=>s),vn(gi(St(r),t.layout.getPublicFolder(i)),"**/*"),vn(gi(St(r),t.layout.getBackendFolder(i)),"**/*.web.js"),gi(St(r),t.types.getBackendDTSPath(i))]}}function kK(i){return Object.entries({...i.pageTypes.elements}).map(([e,t])=>`"#${e}": ${t};`).join(`
|
|
96
|
+
`)},{message:"git dep preparation failed"})})}[zB](){let e=new DW;return e.resolved=this.resolved,e.from=this.from,this[lh](t=>this[JB](t).then(()=>new Promise((r,s)=>{if(!this.Arborist)throw new Error("GitFetcher requires an Arborist constructor to pack a tarball");let o=new vW(`file:${t}`,{...this.opts,Arborist:this.Arborist,resolved:null,integrity:null})[zB]();o.on("error",s),o.on("end",r),o.pipe(e)}))).catch(t=>e.emit("error",t)),e}[lh](e,t=!0){let r={tmpPrefix:"git-clone"},s=this.resolvedSha||this.spec.gitCommittish,n=this.spec.hosted,o=this.resolved;return t=t&&n&&o===Od(n,{noCommittish:!1})&&n.tarball,CW.tmp.withTmp(this.cache,r,async a=>{if(t){let l=this.spec.name?`${this.spec.name}@`:"";return new SW(n.tarball({noCommittish:!1}),{...this.opts,allowGitIgnore:!0,pkgid:`git:${l}${this.resolved}`,resolved:this.resolved,integrity:null}).extract(a).then(()=>e(a),f=>{if(f.constructor.name.match(/^Http/))return this[lh](e,!1);throw f})}let c=await(n?this[GB](s,a):this[Rd](this.spec.fetchSpec,s,a));return this.resolvedSha=c,this.resolved||await this[lv](c),e(a)})}[GB](e,t){let r=this.spec.hosted;return this[Rd](r.https({noCommittish:!0}),e,t).catch(s=>{if(s instanceof kd.errors.GitPathspecError)throw s;let n=r.sshurl&&r.sshurl({noCommittish:!0});if(!n||r.auth)throw s;return this[Rd](n,e,t)})}[Rd](e,t,r){let{opts:s,spec:n}=this;return kd.clone(e,t,r,{...s,spec:n})}manifest(){return this.package?Promise.resolve(this.package):this.spec.hosted&&this.resolved?UB.prototype.manifest.apply(this):this[lh](e=>this[XB](e+"/package.json").then(t=>this.package={...t,_resolved:this.resolved,_from:this.from}))}packument(){return UB.prototype.packument.apply(this)}};WB.exports=fv});var mv=S((Woe,tL)=>{"use strict";y();var TW=Ws(),kW=rh(),KB=Symbol.for("pacote.Fetcher._tarballFromResolved"),YB=rE().version,FW=_y(),RW=Gl(),OW=_d(),ZB=Wt(),BW=b("crypto"),LW="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",IW="application/json",QB=q1(),eL=Symbol("_headers"),pv=class extends TW{constructor(e,t){super(e,t),this.packumentCache=this.opts.packumentCache||null,this.registry=QB.pickRegistry(e,t),this.packumentUrl=FW(this.registry)+"/"+this.spec.escapedName;let r=new URL(this.registry),s=`//${r.host}${r.pathname}`;this.opts[`${s}:_keys`]&&(this.registryKeys=this.opts[`${s}:_keys`])}async resolve(){if(await this.manifest(),!this.resolved)throw Object.assign(new Error("Invalid package manifest: no `dist.tarball` field"),{package:this.spec.toString()});return this.resolved}[eL](){return{"user-agent":this.opts.userAgent||`pacote/${YB} node/${process.version}`,...this.opts.headers||{},"pacote-version":YB,"pacote-req-type":"packument","pacote-pkg-id":`registry:${this.spec.name}`,accept:this.fullMetadata?IW:LW}}async packument(){if(this.packumentCache&&this.packumentCache.has(this.packumentUrl))return this.packumentCache.get(this.packumentUrl);try{let e=await QB(this.packumentUrl,{...this.opts,headers:this[eL](),spec:this.spec,integrity:null}),t=await e.json();return t._contentLength=+e.headers.get("content-length"),this.packumentCache&&this.packumentCache.set(this.packumentUrl,t),t}catch(e){if(this.packumentCache&&this.packumentCache.delete(this.packumentUrl),e.code!=="E404"||this.fullMetadata)throw e;return this.fullMetadata=!0,this.packument()}}async manifest(){if(this.package)return this.package;let e=await this.packument(),t=await OW(e,this.spec.fetchSpec,{...this.opts,defaultTag:this.defaultTag,before:this.before});t=RW.normalize(t);let{dist:r}=t;if(r){this.resolved=t._resolved=r.tarball,t._from=this.from;let s=r.integrity?ZB.parse(r.integrity):r.shasum?ZB.fromHex(r.shasum,"sha1",{...this.opts}):null;if(s){if(this.integrity&&!this.integrity.match(s)){for(let n of Object.keys(this.integrity))if(s[n])throw Object.assign(new Error(`Integrity checksum failed when using ${n}: wanted ${this.integrity} but got ${s}.`),{code:"EINTEGRITY"})}this.integrity=s}}if(this.integrity&&(t._integrity=String(this.integrity),r.signatures))if(this.opts.verifySignatures){let s=`${t._id}:${t._integrity}`;for(let n of r.signatures){let o=this.registryKeys&&this.registryKeys.filter(f=>f.keyid===n.keyid)[0];if(!o)throw Object.assign(new Error(`${t._id} has a registry signature with keyid: ${n.keyid} but no corresponding public key can be found`),{code:"EMISSINGSIGNATUREKEY"});if(!(!o.expires||Date.parse(o.expires)>Date.now()))throw Object.assign(new Error(`${t._id} has a registry signature with keyid: ${n.keyid} but the corresponding public key has expired ${o.expires}`),{code:"EEXPIREDSIGNATUREKEY"});let c=BW.createVerify("SHA256");if(c.write(s),c.end(),!c.verify(o.pemkey,n.sig,"base64"))throw Object.assign(new Error(`${t._id} has an invalid registry signature with keyid: ${o.keyid} and signature: ${n.sig}`),{code:"EINTEGRITYSIGNATURE",keyid:o.keyid,signature:n.sig,resolved:t._resolved,integrity:t._integrity})}t._signatures=r.signatures}else t._signatures=r.signatures;return this.package=t,this.package}[KB](){return new kW(this.resolved,{...this.opts,resolved:this.resolved,pkgid:`registry:${this.spec.name}@${this.resolved}`})[KB]()}get types(){return["tag","version","range"]}};tL.exports=pv});var Ws=S((Yoe,gL)=>{"use strict";y();var mL=Fn(),gv=Wt(),{promisify:PW}=b("util"),{basename:NW,dirname:iL}=b("path"),MW=q0(),gn=Tn(),UW=$u(),yv=b("fs/promises"),qW=tg(),Ev=yc(),jW=Ay(),$W=_y(),zW=YT(),GW=Gl(),HW=PW(lk()),JW=io(),XW=mk(),rL=Symbol("_extract"),sL=Symbol("_mkdir"),nL=Symbol("_empty"),oL=Symbol("_toFile"),aL=Symbol("_tarxOptions"),cL=Symbol("_entryMode"),hL=Symbol("_istream"),uL=Symbol("_assertType"),lL=Symbol("_tarballFromCache"),fL=Symbol.for("pacote.Fetcher._tarballFromResolved"),dL=Symbol.for("pacote.Fetcher._cacheFetches"),pL=Symbol.for("package.Fetcher._readPackageJson"),Bd=class{constructor(e,t){if(!t||typeof t!="object")throw new TypeError("options object is required");this.spec=mL(e,t.where),this.allowGitIgnore=!!t.allowGitIgnore,this.from=this.spec.registry?`${this.spec.name}@${this.spec.rawSpec}`:this.spec.saveSpec,this[uL](),this.opts={...t},this.cache=t.cache||XW(),this.resolved=t.resolved||null,this.defaultIntegrityAlgorithm=t.defaultIntegrityAlgorithm||"sha512",typeof t.integrity=="string"&&(this.opts.integrity=gv.parse(t.integrity)),this.package=null,this.type=this.constructor.name,this.fmode=t.fmode||438,this.dmode=t.dmode||511,this.umask=t.umask||0,this.preferOnline=!!t.preferOnline,this.preferOffline=!!t.preferOffline,this.offline=!!t.offline,this.before=t.before,this.fullMetadata=this.before?!0:!!t.fullMetadata,this.fullReadJson=!!t.fullReadJson,this.fullReadJson?this[pL]=HW:this[pL]=GW,this.replaceRegistryHost=!t.replaceRegistryHost||t.replaceRegistryHost==="npmjs"?"registry.npmjs.org":t.replaceRegistryHost,this.defaultTag=t.defaultTag||"latest",this.registry=$W(t.registry||"https://registry.npmjs.org"),this.npmBin=t.npmBin||"npm",this.npmInstallCmd=t.npmInstallCmd||["install","--force"],this.npmCliConfig=t.npmCliConfig||[`--cache=${iL(this.cache)}`,`--prefer-offline=${!!this.preferOffline}`,`--prefer-online=${!!this.preferOnline}`,`--offline=${!!this.offline}`,...this.before?[`--before=${this.before.toISOString()}`]:[],"--no-progress","--no-save","--no-audit","--include=dev","--include=peer","--include=optional","--no-package-lock-only","--no-dry-run"]}get integrity(){return this.opts.integrity||null}set integrity(e){if(!e)return;e=gv.parse(e);let t=this.opts.integrity;t?t.merge(e):this.opts.integrity=e}get notImplementedError(){return new Error("not implemented in this fetcher type: "+this.type)}resolve(){return this.resolved?Promise.resolve(this.resolved):Promise.reject(this.notImplementedError)}packument(){return Promise.reject(this.notImplementedError)}manifest(){return Promise.reject(this.notImplementedError)}[fL](){throw this.notImplementedError}tarball(){return this.tarballStream(e=>e.concat().then(t=>(t.integrity=this.integrity&&String(this.integrity),t.resolved=this.resolved,t.from=this.from,t)))}[lL](){return Ev.get.stream.byDigest(this.cache,this.integrity,this.opts)}get[dL](){return!0}[hL](e){if(!this.opts.cache||!this[dL]){if(e.hasIntegrityEmitter)return e.on("integrity",n=>this.integrity=n),e;let s=gv.integrityStream(this.opts);return s.on("integrity",n=>this.integrity=n),e.on("error",n=>s.emit("error",n)),e.pipe(s)}let t=new JW;e.on("error",s=>t.emit("error",s)),e.pipe(t,{end:!1});let r=Ev.put.stream(this.opts.cache,`pacote:tarball:${this.from}`,this.opts);return r.on("integrity",s=>this.integrity=s),r.on("error",s=>e.emit("error",s)),e.pipe(r),r.promise().catch(()=>{}).then(()=>t.end()),t}pickIntegrityAlgorithm(){return this.integrity?this.integrity.pickAlgorithm(this.opts):this.defaultIntegrityAlgorithm}isDataCorruptionError(e){return e.code==="EINTEGRITY"||e.code==="Z_DATA_ERROR"}get types(){return!1}[uL](){if(this.types&&!this.types.includes(this.spec.type))throw new TypeError(`Wrong spec type (${this.spec.type}) for ${this.constructor.name}. Supported types: ${this.types.join(", ")}`)}isRetriableError(e){return this.isDataCorruptionError(e)||e.code==="ENOENT"||e.code==="EISDIR"}tarballStream(e){let t=!this.preferOnline&&this.integrity&&this.resolved?e(this[lL]()).catch(s=>{if(this.isDataCorruptionError(s))return gn.warn("tarball",`cached data for ${this.spec} (${this.integrity}) seems to be corrupted. Refreshing cache.`),this.cleanupCached().then(()=>{throw s});throw s}):null,r=s=>{if(s){if(!this.isRetriableError(s))throw s;gn.silly("tarball",`no local data for ${this.spec}. Extracting by manifest.`)}return this.resolve().then(()=>UW(n=>e(this[hL](this[fL]())).catch(o=>{if(this.isRetriableError(o))return gn.warn("tarball",`tarball data for ${this.spec} (${this.integrity}) seems to be corrupted. Trying again.`),this.cleanupCached().then(()=>n(o));throw o}),{retries:1,minTimeout:0,maxTimeout:0}))};return t?t.catch(r):r()}cleanupCached(){return Ev.rm.content(this.cache,this.integrity,this.opts)}[nL](e){return zW({path:e,depth:1}).then(t=>Promise.all(t.map(r=>yv.rm(r,{recursive:!0,force:!0}))))}async[sL](e){return await this[nL](e),await yv.mkdir(e,{recursive:!0})}async extract(e){return await this[sL](e),this.tarballStream(t=>this[rL](e,t))}[oL](e){return this.tarballStream(t=>new Promise((r,s)=>{let n=new qW.WriteStream(e);t.on("error",o=>n.emit("error",o)),n.on("error",o=>s(o)),n.on("close",()=>r({integrity:this.integrity&&String(this.integrity),resolved:this.resolved,from:this.from})),t.pipe(n)}))}async tarballFile(e){let t=iL(e);return await yv.mkdir(t,{recursive:!0}),this[oL](e)}[rL](e,t){let r=MW.x(this[aL]({cwd:e})),s=new Promise((n,o)=>{r.on("end",()=>{n({resolved:this.resolved,integrity:this.integrity&&String(this.integrity),from:this.from})}),r.on("error",a=>{gn.warn("tar",a.message),gn.silly("tar",a),o(a)}),t.on("error",a=>o(a))});return t.pipe(r),s}[cL](e,t,r){let s=/Directory|GNUDumpDir/.test(r)?this.dmode:/File$/.test(r)?this.fmode:0,n=jW(this.package,e)?73:0;return(t|s)&~this.umask|n|384}[aL]({cwd:e,uid:t,gid:r}){let s=new Set;return{cwd:e,noChmod:!0,noMtime:!0,filter:(n,o)=>{if(/Link$/.test(o.type))return!1;if(o.mode=this[cL](o.path,o.mode,o.type),/File$/.test(o.type)){let a=NW(o.path);if(a===".npmignore")s.add(o.path);else if(a===".gitignore"&&!this.allowGitIgnore){let c=o.path.replace(/\.gitignore$/,".npmignore");if(s.has(c))return!1;o.path=c}return!0}},strip:1,onwarn:(n,o,a)=>{gn.warn("tar",n,o),gn.silly("tar",n,o,a)},uid:t,gid:r,umask:this.umask}}};gL.exports=Bd;var VW=dv(),WW=mv(),KW=Lo(),YW=Dd(),ZW=rh();Bd.get=(i,e={})=>{let t=mL(i,e.where);switch(t.type){case"git":return new VW(t,e);case"remote":return new ZW(t,e);case"version":case"range":case"tag":case"alias":return new WW(t.subSpec||t,e);case"file":return new KW(t,e);case"directory":return new YW(t,e);default:throw new TypeError("Unknown spec type: "+t.type)}}});var yL=S((Qoe,Ld)=>{"use strict";y();var{get:yn}=Ws(),QW=dv(),eK=mv(),tK=Lo(),iK=Dd(),rK=rh();Ld.exports={GitFetcher:QW,RegistryFetcher:eK,FileFetcher:tK,DirFetcher:iK,RemoteFetcher:rK,resolve:(i,e)=>yn(i,e).resolve(),extract:(i,e,t)=>yn(i,t).extract(e),manifest:(i,e)=>yn(i,e).manifest(),tarball:(i,e)=>yn(i,e).tarball(),packument:(i,e)=>yn(i,e).packument()};Ld.exports.tarball.stream=(i,e,t)=>yn(i,t).tarballStream(e);Ld.exports.tarball.file=(i,e,t)=>yn(i,t).tarballFile(e)});y();import{mkdir as cK}from"node:fs/promises";y();import{join as ps}from"node:path";function CI(i=""){return ps(i,".wix")}function Tv(i){return ps(CI(i),"types")}function Vd(i){return ps(i,"src")}function AI(i=""){return ps(Vd(i),"pages")}function kv(i=""){return ps(Vd(i),"public")}function Fv(i=""){return ps(Vd(i),"backend")}function Rv(i,e){return ps(AI(i),`${[e.pageTitle,e.pageMetaData.pageId].filter(Boolean).join(".")}.js`)}y();import{join as ms}from"node:path";function _I(i=""){return ms(i,".wix")}function wn(i){return ms(_I(i),"types")}function TI(i,e){return ms(wn(i),e)}function Ov(i,e){return ms(TI(i,e),"jsconfig.json")}function Bv(i){return ms(wn(i),"backend","jsconfig.json")}function Lv(i){return ms(wn(i),"public","jsconfig.json")}function Iv(i){return ms(wn(i),"backend.d.ts")}function Pv(i){return`${i}.d.ts`}var Nd=ds(xp(),1),AL=ds(Xd(),1),bv=ds(yL(),1);import{readFile as hK,writeFile as uK}from"node:fs/promises";import{join as CL,relative as Sv}from"node:path";import{access as lK,readFile as fK,writeFile as dK}from"node:fs/promises";import{EOL as pK}from"node:os";import{mkdir as gK}from"node:fs/promises";import{dirname as fs,join as Id,relative as En}from"node:path";var TL=ds(xp(),1);import{join as dh}from"node:path";import{mkdir as wK}from"node:fs/promises";import{join as Pd,dirname as Sn,relative as na}from"node:path";import{mkdir as bL,writeFile as wL,rm as bae,readFile as wae}from"node:fs/promises";import{dirname as St,join as vn,relative as gi}from"node:path";import xL from"node:process";y();var sK={},nK={},oK={},aK={};function EL(i){var e={"bo._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"wixbo.ai":[{srcPath:"/_serverless/typok",destPath:""}],"wix-bo.com":[{srcPath:"/_serverless/typok",destPath:""}],"editor._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"blocks._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"create.editorx":[{srcPath:"/_serverless/typok",destPath:""}]};return Cv(Object.assign(i,{domainToMappings:e}))}function SL(i){var e=oa(oK,{}),t=e.toJSON,r=e.fromJSON,s=oa(aK,{}).fromJSON;function n(o){var a=o.host,c=t(i),l={entityFqdn:"wix.typok.v1.site",method:"GET",methodFqn:"wix.typok.v1.SiteService.GetSiteTypes",url:EL({protoPath:"/v1/site/{metaSiteId}/{revision}",data:c,host:a}),params:Jd(c),transformResponse:s};return l}return n.fromReq=r,n.__isAmbassador=!0,n}function vL(i){var e=oa(sK,{}),t=e.toJSON,r=e.fromJSON,s=oa(nK,{}).fromJSON;function n(o){var a=o.host,c=t(i),l={entityFqdn:"wix.typok.v1.site",method:"GET",methodFqn:"wix.typok.v1.SiteService.GetLatestSiteTypes",url:EL({protoPath:"/v1/site/latest",data:c,host:a}),params:Jd(c),transformResponse:s};return l}return n.fromReq=r,n.__isAmbassador=!0,n}var FL=ds(Xd(),1),Md=ds(EI(),1),RL=ds(Xd(),1);async function wv(i,e,t){let r=JSON.stringify(e,null,t?.spaces).concat(pK);await dK(i,r,"utf-8")}async function mK(i){let e=await fK(i,"utf-8");try{return JSON.parse(e)}catch(t){throw new AL.default({name:"InvalidJsonFile",cause:t instanceof Error?t:new Error(JSON.stringify(t))},`Invalid json file ${i}.`)}}function _L(i){return lK(i).then(()=>!0).catch(()=>!1)}async function yK(i){let e=dh(fh(i),"package.json"),t=await _L(e),r=!1;if(t){let s=await mK(e);r=(await bv.default.manifest("@wix/wix-code-types")).version===s.version}(!t||!r)&&await Dv(async()=>{await bv.default.extract("@wix/wix-code-types",fh(i))},{retries:2})}function fh(i){return dh(Tv(i),"wix-code-types")}function EK(i){return dh(fh(i),"configs/tsconfig.public")}function SK(i){return dh(fh(i),"configs/tsconfig.backend")}function vK(i){return dh(fh(i),"configs/tsconfig.page")}async function bK(i,e){let t=e.types.getPublicConfigPath(i);await gK(fs(t),{recursive:!0}),await wv(t,{extends:En(fs(t),EK(i)),compilerOptions:{composite:!0,noEmit:!1,paths:{"backend/*.web.js":[Id(En(fs(t),e.layout.getBackendFolder(i)),"*.web.js")],"backend/*.web":[Id(En(fs(t),e.layout.getBackendFolder(i)),"*.web.js")]},outDir:"build",rootDir:En(fs(t),i)},include:[Id(En(fs(t),e.layout.getPublicFolder(i)),"**/*"),Id(En(fs(t),e.layout.getBackendFolder(i)),"**/*.web.js"),En(fs(t),e.types.getBackendDTSPath(i))]})}async function xK(i,e){let t=e.types.getBackendConfigPath(i);await wK(Sn(t),{recursive:!0}),await wv(t,{extends:na(Sn(t),SK(i)),compilerOptions:{composite:!0,noEmit:!1,outDir:"build",rootDir:na(Sn(t),i),paths:{"public/*":[Pd(na(Sn(t),e.layout.getPublicFolder(i)),"*")],"backend/*":[Pd(na(Sn(t),e.layout.getBackendFolder(i)),"*")]}},include:[Pd(na(Sn(t),e.layout.getBackendFolder(i)),"**/*"),Pd(na(Sn(t),e.layout.getPublicFolder(i)),"**/*")]})}async function DK(i){let e=CL(i,"jsconfig.json");return await _L(e)?(0,Nd.parse)(await hK(e,"utf8")):{}}async function CK(i,e){let t=CL(i,"jsconfig.json");await uK(t,(0,Nd.stringify)(e,void 0,2))}async function AK(i,e,t){let r=await DK(i);r.typeAcquisition={enable:!0},r.references=Object.keys(e).map(s=>({path:Sv(i,t.types.getPageConfigFilename(i,s))})),await xK(i,t),r.references.push({path:Sv(i,t.types.getBackendConfigPath(i))}),await bK(i,t),r.references.push({path:Sv(i,t.types.getPublicConfigPath(i))}),await CK(i,r)}async function _K(i,e,t){await wL(t.types.getBackendDTSPath(i),'declare module "backend/*";'),await Promise.all(Object.entries(e).map(async([r,s])=>{let n=St(t.types.getPageConfigFilename(i,s.pageMetaData.pageId));await bL(n,{recursive:!0});let o=kL(i,s,t);await Promise.all(Object.entries(o).map(async([c,l])=>{await wL(vn(n,c),l)}));let a=t.types.getPageConfigFilename(i,r);await bL(St(a),{recursive:!0}),await wv(a,TK(i,s,t),{spaces:2})}))}function TK(i,e,t){let r=t.types.getPageConfigFilename(i,e.pageMetaData.pageId);return{extends:gi(St(r),vK(i)),compilerOptions:{composite:!0,noEmit:!1,tsBuildInfoFile:".tsbuildinfo",baseUrl:".",jsx:"react",paths:{"public/*":[vn(gi(St(r),t.layout.getPublicFolder(i)),"*")],"backend/*.web.js":[vn(gi(St(r),t.layout.getBackendFolder(i)),"*.web.js")],"backend/*.web":[vn(gi(St(r),t.layout.getBackendFolder(i)),"*.web.js")]},outDir:"build",rootDir:gi(St(r),i)},files:[gi(St(r),t.layout.getPageCodeFilePath(i,e,!0))],include:[...Object.entries(kL(i,e,t)).map(([s])=>s),vn(gi(St(r),t.layout.getPublicFolder(i)),"**/*"),vn(gi(St(r),t.layout.getBackendFolder(i)),"**/*.web.js"),gi(St(r),t.types.getBackendDTSPath(i))]}}function kK(i){return Object.entries({...i.pageTypes.elements}).map(([e,t])=>`"#${e}": ${t};`).join(`
|
|
97
97
|
`)}var vv="masterPage";function kL(i,e,t){let{pageId:r}=e.pageMetaData,s=r===vv,n=t.types.getPageElementsMapDTSFilename(r),o=kK(e);if(s)return{[n]:`type MasterPageElementsMap = {
|
|
98
98
|
${o}
|
|
99
99
|
}
|
|
@@ -162,4 +162,4 @@ make-fetch-happen/lib/fetch.js:
|
|
|
162
162
|
* governing permissions and limitations under the License.
|
|
163
163
|
*)
|
|
164
164
|
*/
|
|
165
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-TIK7QUFJ.js.map
|