stk-codegen 1.0.8 → 1.0.9

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/dist/index.js CHANGED
@@ -76,7 +76,7 @@ if(process.env.NODE_ENV!=="production"){(function(){"use strict";if(typeof __REA
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
78
  */
79
- function f(u,y){var C=u.length;u.push(y);e:for(;0<C;){var D=C-1>>>1,_=u[D];if(0<g(_,y))u[D]=y,u[C]=_,C=D;else break e}}function h(u){return 0===u.length?null:u[0]}function k(u){if(0===u.length)return null;var y=u[0],C=u.pop();if(C!==y){u[0]=C;e:for(var D=0,_=u.length,j=_>>>1;D<j;){var $=2*(D+1)-1,ne=u[$],oe=$+1,le=u[oe];if(0>g(ne,C))oe<_&&0>g(le,ne)?(u[D]=le,u[oe]=C,D=oe):(u[D]=ne,u[$]=C,D=$);else if(oe<_&&0>g(le,C))u[D]=le,u[oe]=C,D=oe;else break e}}return y}function g(u,y){var C=u.sortIndex-y.sortIndex;return 0!==C?C:u.id-y.id}if("object"===typeof performance&&"function"===typeof performance.now){var C=performance;y.unstable_now=function(){return C.now()}}else{var D=Date,_=D.now();y.unstable_now=function(){return D.now()-_}}var j=[],$=[],ne=1,oe=null,le=3,de=!1,Ae=!1,pe=!1,Ee="function"===typeof setTimeout?setTimeout:null,Ce="function"===typeof clearTimeout?clearTimeout:null,Ie="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(u){for(var y=h($);null!==y;){if(null===y.callback)k($);else if(y.startTime<=u)k($),y.sortIndex=y.expirationTime,f(j,y);else break;y=h($)}}function H(u){pe=!1;G(u);if(!Ae)if(null!==h(j))Ae=!0,I(J);else{var y=h($);null!==y&&K(H,y.startTime-u)}}function J(u,C){Ae=!1;pe&&(pe=!1,Ce(xe),xe=-1);de=!0;var D=le;try{G(C);for(oe=h(j);null!==oe&&(!(oe.expirationTime>C)||u&&!M());){var _=oe.callback;if("function"===typeof _){oe.callback=null;le=oe.priorityLevel;var ne=_(oe.expirationTime<=C);C=y.unstable_now();"function"===typeof ne?oe.callback=ne:oe===h(j)&&k(j);G(C)}else k(j);oe=h(j)}if(null!==oe)var Ee=!0;else{var Ie=h($);null!==Ie&&K(H,Ie.startTime-C);Ee=!1}return Ee}finally{oe=null,le=D,de=!1}}var Be=!1,De=null,xe=-1,Fe=5,_e=-1;function M(){return y.unstable_now()-_e<Fe?!1:!0}function R(){if(null!==De){var u=y.unstable_now();_e=u;var C=!0;try{C=De(!0,u)}finally{C?Le():(Be=!1,De=null)}}else Be=!1}var Le;if("function"===typeof Ie)Le=function(){Ie(R)};else if("undefined"!==typeof MessageChannel){var ze=new MessageChannel,qe=ze.port2;ze.port1.onmessage=R;Le=function(){qe.postMessage(null)}}else Le=function(){Ee(R,0)};function I(u){De=u;Be||(Be=!0,Le())}function K(u,C){xe=Ee((function(){u(y.unstable_now())}),C)}y.unstable_IdlePriority=5;y.unstable_ImmediatePriority=1;y.unstable_LowPriority=4;y.unstable_NormalPriority=3;y.unstable_Profiling=null;y.unstable_UserBlockingPriority=2;y.unstable_cancelCallback=function(u){u.callback=null};y.unstable_continueExecution=function(){Ae||de||(Ae=!0,I(J))};y.unstable_forceFrameRate=function(u){0>u||125<u?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Fe=0<u?Math.floor(1e3/u):5};y.unstable_getCurrentPriorityLevel=function(){return le};y.unstable_getFirstCallbackNode=function(){return h(j)};y.unstable_next=function(u){switch(le){case 1:case 2:case 3:var y=3;break;default:y=le}var C=le;le=y;try{return u()}finally{le=C}};y.unstable_pauseExecution=function(){};y.unstable_requestPaint=function(){};y.unstable_runWithPriority=function(u,y){switch(u){case 1:case 2:case 3:case 4:case 5:break;default:u=3}var C=le;le=u;try{return y()}finally{le=C}};y.unstable_scheduleCallback=function(u,C,D){var _=y.unstable_now();"object"===typeof D&&null!==D?(D=D.delay,D="number"===typeof D&&0<D?_+D:_):D=_;switch(u){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}oe=D+oe;u={id:ne++,callback:C,priorityLevel:u,startTime:D,expirationTime:oe,sortIndex:-1};D>_?(u.sortIndex=D,f($,u),null===h(j)&&u===h($)&&(pe?(Ce(xe),xe=-1):pe=!0,K(H,D-_))):(u.sortIndex=oe,f(j,u),Ae||de||(Ae=!0,I(J)));return u};y.unstable_shouldYield=M;y.unstable_wrapCallback=function(u){var y=le;return function(){var C=le;le=y;try{return u.apply(this,arguments)}finally{le=C}}}},6937:(u,y,C)=>{if(process.env.NODE_ENV==="production"){u.exports=C(8582)}else{u.exports=C(5790)}},7163:(u,y,C)=>{const D=C(1159);const{MAX_LENGTH:_,MAX_SAFE_INTEGER:j}=C(5101);const{safeRe:$,t:ne}=C(5471);const oe=C(356);const{compareIdentifiers:le}=C(3348);class SemVer{constructor(u,y){y=oe(y);if(u instanceof SemVer){if(u.loose===!!y.loose&&u.includePrerelease===!!y.includePrerelease){return u}else{u=u.version}}else if(typeof u!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`)}if(u.length>_){throw new TypeError(`version is longer than ${_} characters`)}D("SemVer",u,y);this.options=y;this.loose=!!y.loose;this.includePrerelease=!!y.includePrerelease;const C=u.trim().match(y.loose?$[ne.LOOSE]:$[ne.FULL]);if(!C){throw new TypeError(`Invalid Version: ${u}`)}this.raw=u;this.major=+C[1];this.minor=+C[2];this.patch=+C[3];if(this.major>j||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>j||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>j||this.patch<0){throw new TypeError("Invalid patch version")}if(!C[4]){this.prerelease=[]}else{this.prerelease=C[4].split(".").map((u=>{if(/^[0-9]+$/.test(u)){const y=+u;if(y>=0&&y<j){return y}}return u}))}this.build=C[5]?C[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(u){D("SemVer.compare",this.version,this.options,u);if(!(u instanceof SemVer)){if(typeof u==="string"&&u===this.version){return 0}u=new SemVer(u,this.options)}if(u.version===this.version){return 0}return this.compareMain(u)||this.comparePre(u)}compareMain(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}if(this.major<u.major){return-1}if(this.major>u.major){return 1}if(this.minor<u.minor){return-1}if(this.minor>u.minor){return 1}if(this.patch<u.patch){return-1}if(this.patch>u.patch){return 1}return 0}comparePre(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}if(this.prerelease.length&&!u.prerelease.length){return-1}else if(!this.prerelease.length&&u.prerelease.length){return 1}else if(!this.prerelease.length&&!u.prerelease.length){return 0}let y=0;do{const C=this.prerelease[y];const _=u.prerelease[y];D("prerelease compare",y,C,_);if(C===undefined&&_===undefined){return 0}else if(_===undefined){return 1}else if(C===undefined){return-1}else if(C===_){continue}else{return le(C,_)}}while(++y)}compareBuild(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}let y=0;do{const C=this.build[y];const _=u.build[y];D("build compare",y,C,_);if(C===undefined&&_===undefined){return 0}else if(_===undefined){return 1}else if(C===undefined){return-1}else if(C===_){continue}else{return le(C,_)}}while(++y)}inc(u,y,C){if(u.startsWith("pre")){if(!y&&C===false){throw new Error("invalid increment argument: identifier is empty")}if(y){const u=`-${y}`.match(this.options.loose?$[ne.PRERELEASELOOSE]:$[ne.PRERELEASE]);if(!u||u[1]!==y){throw new Error(`invalid identifier: ${y}`)}}}switch(u){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",y,C);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",y,C);break;case"prepatch":this.prerelease.length=0;this.inc("patch",y,C);this.inc("pre",y,C);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",y,C)}this.inc("pre",y,C);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const u=Number(C)?1:0;if(this.prerelease.length===0){this.prerelease=[u]}else{let D=this.prerelease.length;while(--D>=0){if(typeof this.prerelease[D]==="number"){this.prerelease[D]++;D=-2}}if(D===-1){if(y===this.prerelease.join(".")&&C===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(u)}}if(y){let D=[y,u];if(C===false){D=[y]}if(le(this.prerelease[0],y)===0){if(isNaN(this.prerelease[1])){this.prerelease=D}}else{this.prerelease=D}}break}default:throw new Error(`invalid increment argument: ${u}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}u.exports=SemVer},1799:(u,y,C)=>{const D=C(6353);const clean=(u,y)=>{const C=D(u.trim().replace(/^[=v]+/,""),y);return C?C.version:null};u.exports=clean},6353:(u,y,C)=>{const D=C(7163);const parse=(u,y,C=false)=>{if(u instanceof D){return u}try{return new D(u,y)}catch(u){if(!C){return null}throw u}};u.exports=parse},8780:(u,y,C)=>{const D=C(6353);const valid=(u,y)=>{const C=D(u,y);return C?C.version:null};u.exports=valid},5101:u=>{const y="2.0.0";const C=256;const D=Number.MAX_SAFE_INTEGER||9007199254740991;const _=16;const j=C-6;const $=["major","premajor","minor","preminor","patch","prepatch","prerelease"];u.exports={MAX_LENGTH:C,MAX_SAFE_COMPONENT_LENGTH:_,MAX_SAFE_BUILD_LENGTH:j,MAX_SAFE_INTEGER:D,RELEASE_TYPES:$,SEMVER_SPEC_VERSION:y,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:u=>{const y=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...u)=>console.error("SEMVER",...u):()=>{};u.exports=y},3348:u=>{const y=/^[0-9]+$/;const compareIdentifiers=(u,C)=>{if(typeof u==="number"&&typeof C==="number"){return u===C?0:u<C?-1:1}const D=y.test(u);const _=y.test(C);if(D&&_){u=+u;C=+C}return u===C?0:D&&!_?-1:_&&!D?1:u<C?-1:1};const rcompareIdentifiers=(u,y)=>compareIdentifiers(y,u);u.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},356:u=>{const y=Object.freeze({loose:true});const C=Object.freeze({});const parseOptions=u=>{if(!u){return C}if(typeof u!=="object"){return y}return u};u.exports=parseOptions},5471:(u,y,C)=>{const{MAX_SAFE_COMPONENT_LENGTH:D,MAX_SAFE_BUILD_LENGTH:_,MAX_LENGTH:j}=C(5101);const $=C(1159);y=u.exports={};const ne=y.re=[];const oe=y.safeRe=[];const le=y.src=[];const de=y.safeSrc=[];const Ae=y.t={};let pe=0;const Ee="[a-zA-Z0-9-]";const Ce=[["\\s",1],["\\d",j],[Ee,_]];const makeSafeRegex=u=>{for(const[y,C]of Ce){u=u.split(`${y}*`).join(`${y}{0,${C}}`).split(`${y}+`).join(`${y}{1,${C}}`)}return u};const createToken=(u,y,C)=>{const D=makeSafeRegex(y);const _=pe++;$(u,_,y);Ae[u]=_;le[_]=y;de[_]=D;ne[_]=new RegExp(y,C?"g":undefined);oe[_]=new RegExp(D,C?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ee}*`);createToken("MAINVERSION",`(${le[Ae.NUMERICIDENTIFIER]})\\.`+`(${le[Ae.NUMERICIDENTIFIER]})\\.`+`(${le[Ae.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${le[Ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${le[Ae.PRERELEASEIDENTIFIER]}(?:\\.${le[Ae.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${le[Ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${le[Ae.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${Ee}+`);createToken("BUILD",`(?:\\+(${le[Ae.BUILDIDENTIFIER]}(?:\\.${le[Ae.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${le[Ae.MAINVERSION]}${le[Ae.PRERELEASE]}?${le[Ae.BUILD]}?`);createToken("FULL",`^${le[Ae.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${le[Ae.MAINVERSIONLOOSE]}${le[Ae.PRERELEASELOOSE]}?${le[Ae.BUILD]}?`);createToken("LOOSE",`^${le[Ae.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${le[Ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${le[Ae.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIER]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIER]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIER]})`+`(?:${le[Ae.PRERELEASE]})?${le[Ae.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:${le[Ae.PRERELEASELOOSE]})?${le[Ae.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${D}})`+`(?:\\.(\\d{1,${D}}))?`+`(?:\\.(\\d{1,${D}}))?`);createToken("COERCE",`${le[Ae.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",le[Ae.COERCEPLAIN]+`(?:${le[Ae.PRERELEASE]})?`+`(?:${le[Ae.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",le[Ae.COERCE],true);createToken("COERCERTLFULL",le[Ae.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${le[Ae.LONETILDE]}\\s+`,true);y.tildeTrimReplace="$1~";createToken("TILDE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${le[Ae.LONECARET]}\\s+`,true);y.caretTrimReplace="$1^";createToken("CARET",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${le[Ae.GTLT]}\\s*(${le[Ae.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${le[Ae.GTLT]}\\s*(${le[Ae.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${le[Ae.GTLT]}\\s*(${le[Ae.LOOSEPLAIN]}|${le[Ae.XRANGEPLAIN]})`,true);y.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${le[Ae.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${le[Ae.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${le[Ae.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${le[Ae.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9152:(u,y,C)=>{const D=C(7334);u.exports=(u="")=>{const y=u.match(D);if(!y){return null}const[C,_]=y[0].replace(/#! ?/,"").split(" ");const j=C.split("/").pop();if(j==="env"){return _}return _?`${j} ${_}`:j}},7334:u=>{u.exports=/^#!(.*)/},6627:(u,y,C)=>{var D=global.process;const processOk=function(u){return u&&typeof u==="object"&&typeof u.removeListener==="function"&&typeof u.emit==="function"&&typeof u.reallyExit==="function"&&typeof u.listeners==="function"&&typeof u.kill==="function"&&typeof u.pid==="number"&&typeof u.on==="function"};if(!processOk(D)){u.exports=function(){return function(){}}}else{var _=C(2613);var j=C(1430);var $=/^win/i.test(D.platform);var ne=C(4434);if(typeof ne!=="function"){ne=ne.EventEmitter}var oe;if(D.__signal_exit_emitter__){oe=D.__signal_exit_emitter__}else{oe=D.__signal_exit_emitter__=new ne;oe.count=0;oe.emitted={}}if(!oe.infinite){oe.setMaxListeners(Infinity);oe.infinite=true}u.exports=function(u,y){if(!processOk(global.process)){return function(){}}_.equal(typeof u,"function","a callback must be provided for exit handler");if(pe===false){Ee()}var C="exit";if(y&&y.alwaysLast){C="afterexit"}var remove=function(){oe.removeListener(C,u);if(oe.listeners("exit").length===0&&oe.listeners("afterexit").length===0){le()}};oe.on(C,u);return remove};var le=function unload(){if(!pe||!processOk(global.process)){return}pe=false;j.forEach((function(u){try{D.removeListener(u,Ae[u])}catch(u){}}));D.emit=Be;D.reallyExit=Ce;oe.count-=1};u.exports.unload=le;var de=function emit(u,y,C){if(oe.emitted[u]){return}oe.emitted[u]=true;oe.emit(u,y,C)};var Ae={};j.forEach((function(u){Ae[u]=function listener(){if(!processOk(global.process)){return}var y=D.listeners(u);if(y.length===oe.count){le();de("exit",null,u);de("afterexit",null,u);if($&&u==="SIGHUP"){u="SIGINT"}D.kill(D.pid,u)}}}));u.exports.signals=function(){return j};var pe=false;var Ee=function load(){if(pe||!processOk(global.process)){return}pe=true;oe.count+=1;j=j.filter((function(u){try{D.on(u,Ae[u]);return true}catch(u){return false}}));D.emit=De;D.reallyExit=Ie};u.exports.load=Ee;var Ce=D.reallyExit;var Ie=function processReallyExit(u){if(!processOk(global.process)){return}D.exitCode=u||0;de("exit",D.exitCode,null);de("afterexit",D.exitCode,null);Ce.call(D,D.exitCode)};var Be=D.emit;var De=function processEmit(u,y){if(u==="exit"&&processOk(global.process)){if(y!==undefined){D.exitCode=y}var C=Be.apply(this,arguments);de("exit",D.exitCode,null);de("afterexit",D.exitCode,null);return C}else{return Be.apply(this,arguments)}}}},1430:u=>{u.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){u.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){u.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},5728:(u,y,C)=>{var D=C(3326);var _=C(5204);function valid(u){try{D(u);return true}catch(u){return false}}function sortTranspositions(u,y){var C=y[0].length-u[0].length;if(C!==0)return C;return u[0].toUpperCase().localeCompare(y[0].toUpperCase())}var j=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(sortTranspositions);var $=0;var ne=1;var oe=[function(u){return u.toUpperCase()},function(u){return u.trim()},function(u){return u.replace(/\./g,"")},function(u){return u.replace(/\s+/g,"")},function(u){return u.replace(/\s+/g,"-")},function(u){return u.replace("v","-")},function(u){return u.replace(/,?\s*(\d)/,"-$1")},function(u){return u.replace(/,?\s*(\d)/,"-$1.0")},function(u){return u.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(u){return u.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(u){return u[0].toUpperCase()+u.slice(1)},function(u){return u.replace("/","-")},function(u){return u.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(u){if(u.indexOf("3.0")!==-1){return u+"-or-later"}else{return u+"-only"}},function(u){return u+"only"},function(u){return u.replace(/(\d)$/,"-$1.0")},function(u){return u.replace(/(-| )?(\d)$/,"-$2-Clause")},function(u){return u.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(u){return u.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(u){return u.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(u){return u.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(u){return u.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(u){return u.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(u){return"CC-"+u},function(u){return"CC-"+u+"-4.0"},function(u){return u.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(u){return"CC-"+u.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}];var le=_.map((function(u){var y=/^(.*)-\d+\.\d+$/.exec(u);return y?[y[0],y[1]]:[u,null]})).reduce((function(u,y){var C=y[1];u[C]=u[C]||[];u[C].push(y[0]);return u}),{});var de=Object.keys(le).map((function makeEntries(u){return[u,le[u]]})).filter((function identifySoleVersions(u){return u[1].length===1&&u[0]!==null&&u[0]!=="APL"})).map((function createLastResorts(u){return[u[0],u[1][0]]}));le=undefined;var Ae=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(de).sort(sortTranspositions);var pe=0;var Ee=1;var validTransformation=function(u){for(var y=0;y<oe.length;y++){var C=oe[y](u).trim();if(C!==u&&valid(C)){return C}}return null};var validLastResort=function(u){var y=u.toUpperCase();for(var C=0;C<Ae.length;C++){var D=Ae[C];if(y.indexOf(D[pe])>-1){return D[Ee]}}return null};var anyCorrection=function(u,y){for(var C=0;C<j.length;C++){var D=j[C];var _=D[$];if(u.indexOf(_)>-1){var oe=u.replace(_,D[ne]);var le=y(oe);if(le!==null){return le}}}return null};u.exports=function(u,y){y=y||{};var C=y.upgrade===undefined?true:!!y.upgrade;function postprocess(u){return C?upgradeGPLs(u):u}var D=typeof u==="string"&&u.trim().length!==0;if(!D){throw Error("Invalid argument. Expected non-empty string.")}u=u.trim();if(valid(u)){return postprocess(u)}var _=u.replace(/\+$/,"").trim();if(valid(_)){return postprocess(_)}var j=validTransformation(u);if(j!==null){return postprocess(j)}j=anyCorrection(u,(function(u){if(valid(u)){return u}return validTransformation(u)}));if(j!==null){return postprocess(j)}j=validLastResort(u);if(j!==null){return postprocess(j)}j=anyCorrection(u,validLastResort);if(j!==null){return postprocess(j)}return null};function upgradeGPLs(u){if(["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(u)!==-1){return u+"-only"}else if(["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(u)!==-1){return u.replace(/\+$/,"-or-later")}else if(["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(u)!==-1){return u+"-or-later"}else{return u}}},3326:(u,y,C)=>{var D=C(6849);var _=C(5501);u.exports=function(u){return _(D(u))}},5501:u=>{u.exports=function(u){var y=0;function hasMore(){return y<u.length}function token(){return hasMore()?u[y]:null}function next(){if(!hasMore()){throw new Error}y++}function parseOperator(u){var y=token();if(y&&y.type==="OPERATOR"&&u===y.string){next();return y.string}}function parseWith(){if(parseOperator("WITH")){var u=token();if(u&&u.type==="EXCEPTION"){next();return u.string}throw new Error("Expected exception after `WITH`")}}function parseLicenseRef(){var u=y;var C="";var D=token();if(D.type==="DOCUMENTREF"){next();C+="DocumentRef-"+D.string+":";if(!parseOperator(":")){throw new Error("Expected `:` after `DocumentRef-...`")}}D=token();if(D.type==="LICENSEREF"){next();C+="LicenseRef-"+D.string;return{license:C}}y=u}function parseLicense(){var u=token();if(u&&u.type==="LICENSE"){next();var y={license:u.string};if(parseOperator("+")){y.plus=true}var C=parseWith();if(C){y.exception=C}return y}}function parseParenthesizedExpression(){var u=parseOperator("(");if(!u){return}var y=D();if(!parseOperator(")")){throw new Error("Expected `)`")}return y}function parseAtom(){return parseParenthesizedExpression()||parseLicenseRef()||parseLicense()}function makeBinaryOpParser(u,y){return function parseBinaryOp(){var C=y();if(!C){return}if(!parseOperator(u)){return C}var D=parseBinaryOp();if(!D){throw new Error("Expected expression")}return{left:C,conjunction:u.toLowerCase(),right:D}}}var C=makeBinaryOpParser("AND",parseAtom);var D=makeBinaryOpParser("OR",C);var _=D();if(!_||hasMore()){throw new Error("Syntax error")}return _}},6849:(u,y,C)=>{var D=[].concat(C(5204)).concat(C(3389));var _=C(3988);u.exports=function(u){var y=0;function hasMore(){return y<u.length}function read(C){if(C instanceof RegExp){var D=u.slice(y);var _=D.match(C);if(_){y+=_[0].length;return _[0]}}else{if(u.indexOf(C,y)===y){y+=C.length;return C}}}function skipWhitespace(){read(/[ ]*/)}function operator(){var C;var D=["WITH","AND","OR","(",")",":","+"];for(var _=0;_<D.length;_++){C=read(D[_]);if(C){break}}if(C==="+"&&y>1&&u[y-2]===" "){throw new Error("Space before `+`")}return C&&{type:"OPERATOR",string:C}}function idstring(){return read(/[A-Za-z0-9-.]+/)}function expectIdstring(){var u=idstring();if(!u){throw new Error("Expected idstring at offset "+y)}return u}function documentRef(){if(read("DocumentRef-")){var u=expectIdstring();return{type:"DOCUMENTREF",string:u}}}function licenseRef(){if(read("LicenseRef-")){var u=expectIdstring();return{type:"LICENSEREF",string:u}}}function identifier(){var u=y;var C=idstring();if(D.indexOf(C)!==-1){return{type:"LICENSE",string:C}}else if(_.indexOf(C)!==-1){return{type:"EXCEPTION",string:C}}y=u}function parseToken(){return operator()||documentRef()||licenseRef()||identifier()}var C=[];while(hasMore()){skipWhitespace();if(!hasMore()){break}var j=parseToken();if(!j){throw new Error("Unexpected `"+u[y]+"` at offset "+y)}C.push(j)}return C}},4092:(u,y,C)=>{const D=C(1199);const _=typeof process==="object"&&process&&typeof process.cwd==="function"?process.cwd():".";const j=[].concat(C(3339).builtinModules,"bootstrap_node","node").map((u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`)));j.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class StackUtils{constructor(u){u={ignoredPackages:[],...u};if("internals"in u===false){u.internals=StackUtils.nodeInternals()}if("cwd"in u===false){u.cwd=_}this._cwd=u.cwd.replace(/\\/g,"/");this._internals=[].concat(u.internals,ignoredPackagesRegExp(u.ignoredPackages));this._wrapCallSite=u.wrapCallSite||false}static nodeInternals(){return[...j]}clean(u,y=0){y=" ".repeat(y);if(!Array.isArray(u)){u=u.split("\n")}if(!/^\s*at /.test(u[0])&&/^\s*at /.test(u[1])){u=u.slice(1)}let C=false;let D=null;const _=[];u.forEach((u=>{u=u.replace(/\\/g,"/");if(this._internals.some((y=>y.test(u)))){return}const y=/^\s*at /.test(u);if(C){u=u.trimEnd().replace(/^(\s+)at /,"$1")}else{u=u.trim();if(y){u=u.slice(3)}}u=u.replace(`${this._cwd}/`,"");if(u){if(y){if(D){_.push(D);D=null}_.push(u)}else{C=true;D=u}}}));return _.map((u=>`${y}${u}\n`)).join("")}captureString(u,y=this.captureString){if(typeof u==="function"){y=u;u=Infinity}const{stackTraceLimit:C}=Error;if(u){Error.stackTraceLimit=u}const D={};Error.captureStackTrace(D,y);const{stack:_}=D;Error.stackTraceLimit=C;return this.clean(_)}capture(u,y=this.capture){if(typeof u==="function"){y=u;u=Infinity}const{prepareStackTrace:C,stackTraceLimit:D}=Error;Error.prepareStackTrace=(u,y)=>{if(this._wrapCallSite){return y.map(this._wrapCallSite)}return y};if(u){Error.stackTraceLimit=u}const _={};Error.captureStackTrace(_,y);const{stack:j}=_;Object.assign(Error,{prepareStackTrace:C,stackTraceLimit:D});return j}at(u=this.at){const[y]=this.capture(1,u);if(!y){return{}}const C={line:y.getLineNumber(),column:y.getColumnNumber()};setFile(C,y.getFileName(),this._cwd);if(y.isConstructor()){Object.defineProperty(C,"constructor",{value:true,configurable:true})}if(y.isEval()){C.evalOrigin=y.getEvalOrigin()}if(y.isNative()){C.native=true}let D;try{D=y.getTypeName()}catch(u){}if(D&&D!=="Object"&&D!=="[object Object]"){C.type=D}const _=y.getFunctionName();if(_){C.function=_}const j=y.getMethodName();if(j&&_!==j){C.method=j}return C}parseLine(u){const y=u&&u.match($);if(!y){return null}const C=y[1]==="new";let D=y[2];const _=y[3];const j=y[4];const oe=Number(y[5]);const le=Number(y[6]);let de=y[7];const Ae=y[8];const pe=y[9];const Ee=y[10]==="native";const Ce=y[11]===")";let Ie;const Be={};if(Ae){Be.line=Number(Ae)}if(pe){Be.column=Number(pe)}if(Ce&&de){let u=0;for(let y=de.length-1;y>0;y--){if(de.charAt(y)===")"){u++}else if(de.charAt(y)==="("&&de.charAt(y-1)===" "){u--;if(u===-1&&de.charAt(y-1)===" "){const u=de.slice(0,y-1);const C=de.slice(y+1);de=C;D+=` (${u}`;break}}}}if(D){const u=D.match(ne);if(u){D=u[1];Ie=u[2]}}setFile(Be,de,this._cwd);if(C){Object.defineProperty(Be,"constructor",{value:true,configurable:true})}if(_){Be.evalOrigin=_;Be.evalLine=oe;Be.evalColumn=le;Be.evalFile=j&&j.replace(/\\/g,"/")}if(Ee){Be.native=true}if(D){Be.function=D}if(Ie&&D!==Ie){Be.method=Ie}return Be}}function setFile(u,y,C){if(y){y=y.replace(/\\/g,"/");if(y.startsWith(`${C}/`)){y=y.slice(C.length+1)}u.file=y}}function ignoredPackagesRegExp(u){if(u.length===0){return[]}const y=u.map((u=>D(u)));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${y.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}const $=new RegExp("^"+"(?:\\s*at )?"+"(?:(new) )?"+"(?:(.*?) \\()?"+"(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?"+"(?:(.+?):(\\d+):(\\d+)|(native))"+"(\\)?)$");const ne=/^(.*?) \[as (.*?)\]$/;u.exports=StackUtils},5077:(u,y)=>{y.fromCallback=function(u){return Object.defineProperty((function(...y){if(typeof y[y.length-1]==="function")u.apply(this,y);else{return new Promise(((C,D)=>{y.push(((u,y)=>u!=null?D(u):C(y)));u.apply(this,y)}))}}),"name",{value:u.name})};y.fromPromise=function(u){return Object.defineProperty((function(...y){const C=y[y.length-1];if(typeof C!=="function")return u.apply(this,y);else{y.pop();u.apply(this,y).then((u=>C(null,u)),C)}}),"name",{value:u.name})}},6821:(u,y,C)=>{var D=C(3326);var _=C(5728);var j="license should be "+'a valid SPDX license expression (without "LicenseRef"), '+'"UNLICENSED", or '+'"SEE LICENSE IN <filename>"';var $=/^SEE LICEN[CS]E IN (.+)$/;function startsWith(u,y){return y.slice(0,u.length)===u}function usesLicenseRef(u){if(u.hasOwnProperty("license")){var y=u.license;return startsWith("LicenseRef",y)||startsWith("DocumentRef",y)}else{return usesLicenseRef(u.left)||usesLicenseRef(u.right)}}u.exports=function(u){var y;try{y=D(u)}catch(y){var C;if(u==="UNLICENSED"||u==="UNLICENCED"){return{validForOldPackages:true,validForNewPackages:true,unlicensed:true}}else if(C=$.exec(u)){return{validForOldPackages:true,validForNewPackages:true,inFile:C[1]}}else{var ne={validForOldPackages:false,validForNewPackages:false,warnings:[j]};if(u.trim().length!==0){var oe=_(u);if(oe){ne.warnings.push('license is similar to the valid expression "'+oe+'"')}}return ne}}if(usesLicenseRef(y)){return{validForNewPackages:false,validForOldPackages:false,spdx:true,warnings:[j]}}else{return{validForNewPackages:true,validForOldPackages:true,spdx:true}}}},6848:(u,y,C)=>{const D=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const _=C(6928);const j=D?";":":";const $=C(2940);const getNotFoundError=u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"});const getPathInfo=(u,y)=>{const C=y.colon||j;const _=u.match(/\//)||D&&u.match(/\\/)?[""]:[...D?[process.cwd()]:[],...(y.path||process.env.PATH||"").split(C)];const $=D?y.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const ne=D?$.split(C):[""];if(D){if(u.indexOf(".")!==-1&&ne[0]!=="")ne.unshift("")}return{pathEnv:_,pathExt:ne,pathExtExe:$}};const which=(u,y,C)=>{if(typeof y==="function"){C=y;y={}}if(!y)y={};const{pathEnv:D,pathExt:j,pathExtExe:ne}=getPathInfo(u,y);const oe=[];const step=C=>new Promise(((j,$)=>{if(C===D.length)return y.all&&oe.length?j(oe):$(getNotFoundError(u));const ne=D[C];const le=/^".*"$/.test(ne)?ne.slice(1,-1):ne;const de=_.join(le,u);const Ae=!le&&/^\.[\\\/]/.test(u)?u.slice(0,2)+de:de;j(subStep(Ae,C,0))}));const subStep=(u,C,D)=>new Promise(((_,le)=>{if(D===j.length)return _(step(C+1));const de=j[D];$(u+de,{pathExt:ne},((j,$)=>{if(!j&&$){if(y.all)oe.push(u+de);else return _(u+de)}return _(subStep(u,C,D+1))}))}));return C?step(0).then((u=>C(null,u)),C):step(0)};const whichSync=(u,y)=>{y=y||{};const{pathEnv:C,pathExt:D,pathExtExe:j}=getPathInfo(u,y);const ne=[];for(let oe=0;oe<C.length;oe++){const le=C[oe];const de=/^".*"$/.test(le)?le.slice(1,-1):le;const Ae=_.join(de,u);const pe=!de&&/^\.[\\\/]/.test(u)?u.slice(0,2)+Ae:Ae;for(let u=0;u<D.length;u++){const C=pe+D[u];try{const u=$.sync(C,{pathExt:j});if(u){if(y.all)ne.push(C);else return C}}catch(u){}}}if(y.all&&ne.length)return ne;if(y.nothrow)return null;throw getNotFoundError(u)};u.exports=which;which.sync=whichSync},8264:u=>{u.exports=wrappy;function wrappy(u,y){if(u&&y)return wrappy(u)(y);if(typeof u!=="function")throw new TypeError("need wrapper function");Object.keys(u).forEach((function(y){wrapper[y]=u[y]}));return wrapper;function wrapper(){var y=new Array(arguments.length);for(var C=0;C<y.length;C++){y[C]=arguments[C]}var D=u.apply(this,y);var _=y[y.length-1];if(typeof D==="function"&&D!==_){Object.keys(_).forEach((function(u){D[u]=_[u]}))}return D}}},5803:(u,y,C)=>{const{EMPTY_BUFFER:D}=C(1791);const _=Buffer[Symbol.species];function concat(u,y){if(u.length===0)return D;if(u.length===1)return u[0];const C=Buffer.allocUnsafe(y);let j=0;for(let y=0;y<u.length;y++){const D=u[y];C.set(D,j);j+=D.length}if(j<y){return new _(C.buffer,C.byteOffset,j)}return C}function _mask(u,y,C,D,_){for(let j=0;j<_;j++){C[D+j]=u[j]^y[j&3]}}function _unmask(u,y){for(let C=0;C<u.length;C++){u[C]^=y[C&3]}}function toArrayBuffer(u){if(u.length===u.buffer.byteLength){return u.buffer}return u.buffer.slice(u.byteOffset,u.byteOffset+u.length)}function toBuffer(u){toBuffer.readOnly=true;if(Buffer.isBuffer(u))return u;let y;if(u instanceof ArrayBuffer){y=new _(u)}else if(ArrayBuffer.isView(u)){y=new _(u.buffer,u.byteOffset,u.byteLength)}else{y=Buffer.from(u);toBuffer.readOnly=false}return y}u.exports={concat:concat,mask:_mask,toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask:_unmask};if(!process.env.WS_NO_BUFFER_UTIL){try{const y=C(8327);u.exports.mask=function(u,C,D,_,j){if(j<48)_mask(u,C,D,_,j);else y.mask(u,C,D,_,j)};u.exports.unmask=function(u,C){if(u.length<32)_unmask(u,C);else y.unmask(u,C)}}catch(u){}}},1791:u=>{const y=["nodebuffer","arraybuffer","fragments"];const C=typeof Blob!=="undefined";if(C)y.push("blob");u.exports={BINARY_TYPES:y,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:C,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},4634:(u,y,C)=>{const{kForOnEventAttribute:D,kListener:_}=C(1791);const j=Symbol("kCode");const $=Symbol("kData");const ne=Symbol("kError");const oe=Symbol("kMessage");const le=Symbol("kReason");const de=Symbol("kTarget");const Ae=Symbol("kType");const pe=Symbol("kWasClean");class Event{constructor(u){this[de]=null;this[Ae]=u}get target(){return this[de]}get type(){return this[Ae]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(u,y={}){super(u);this[j]=y.code===undefined?0:y.code;this[le]=y.reason===undefined?"":y.reason;this[pe]=y.wasClean===undefined?false:y.wasClean}get code(){return this[j]}get reason(){return this[le]}get wasClean(){return this[pe]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(u,y={}){super(u);this[ne]=y.error===undefined?null:y.error;this[oe]=y.message===undefined?"":y.message}get error(){return this[ne]}get message(){return this[oe]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(u,y={}){super(u);this[$]=y.data===undefined?null:y.data}get data(){return this[$]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const Ee={addEventListener(u,y,C={}){for(const j of this.listeners(u)){if(!C[D]&&j[_]===y&&!j[D]){return}}let j;if(u==="message"){j=function onMessage(u,C){const D=new MessageEvent("message",{data:C?u:u.toString()});D[de]=this;callListener(y,this,D)}}else if(u==="close"){j=function onClose(u,C){const D=new CloseEvent("close",{code:u,reason:C.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});D[de]=this;callListener(y,this,D)}}else if(u==="error"){j=function onError(u){const C=new ErrorEvent("error",{error:u,message:u.message});C[de]=this;callListener(y,this,C)}}else if(u==="open"){j=function onOpen(){const u=new Event("open");u[de]=this;callListener(y,this,u)}}else{return}j[D]=!!C[D];j[_]=y;if(C.once){this.once(u,j)}else{this.on(u,j)}},removeEventListener(u,y){for(const C of this.listeners(u)){if(C[_]===y&&!C[D]){this.removeListener(u,C);break}}}};u.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:Ee,MessageEvent:MessageEvent};function callListener(u,y,C){if(typeof u==="object"&&u.handleEvent){u.handleEvent.call(u,C)}else{u.call(y,C)}}},1335:(u,y,C)=>{const{tokenChars:D}=C(6615);function push(u,y,C){if(u[y]===undefined)u[y]=[C];else u[y].push(C)}function parse(u){const y=Object.create(null);let C=Object.create(null);let _=false;let j=false;let $=false;let ne;let oe;let le=-1;let de=-1;let Ae=-1;let pe=0;for(;pe<u.length;pe++){de=u.charCodeAt(pe);if(ne===undefined){if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(pe!==0&&(de===32||de===9)){if(Ae===-1&&le!==-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;const D=u.slice(le,Ae);if(de===44){push(y,D,C);C=Object.create(null)}else{ne=D}le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else if(oe===undefined){if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(de===32||de===9){if(Ae===-1&&le!==-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;push(C,u.slice(le,Ae),true);if(de===44){push(y,ne,C);C=Object.create(null);ne=undefined}le=Ae=-1}else if(de===61&&le!==-1&&Ae===-1){oe=u.slice(le,pe);le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else{if(j){if(D[de]!==1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(le===-1)le=pe;else if(!_)_=true;j=false}else if($){if(D[de]===1){if(le===-1)le=pe}else if(de===34&&le!==-1){$=false;Ae=pe}else if(de===92){j=true}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else if(de===34&&u.charCodeAt(pe-1)===61){$=true}else if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(le!==-1&&(de===32||de===9)){if(Ae===-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;let D=u.slice(le,Ae);if(_){D=D.replace(/\\/g,"");_=false}push(C,oe,D);if(de===44){push(y,ne,C);C=Object.create(null);ne=undefined}oe=undefined;le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}}if(le===-1||$||de===32||de===9){throw new SyntaxError("Unexpected end of input")}if(Ae===-1)Ae=pe;const Ee=u.slice(le,Ae);if(ne===undefined){push(y,Ee,C)}else{if(oe===undefined){push(C,Ee,true)}else if(_){push(C,oe,Ee.replace(/\\/g,""))}else{push(C,oe,Ee)}push(y,ne,C)}return y}function format(u){return Object.keys(u).map((y=>{let C=u[y];if(!Array.isArray(C))C=[C];return C.map((u=>[y].concat(Object.keys(u).map((y=>{let C=u[y];if(!Array.isArray(C))C=[C];return C.map((u=>u===true?y:`${y}=${u}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}u.exports={format:format,parse:parse}},958:u=>{const y=Symbol("kDone");const C=Symbol("kRun");class Limiter{constructor(u){this[y]=()=>{this.pending--;this[C]()};this.concurrency=u||Infinity;this.jobs=[];this.pending=0}add(u){this.jobs.push(u);this[C]()}[C](){if(this.pending===this.concurrency)return;if(this.jobs.length){const u=this.jobs.shift();this.pending++;u(this[y])}}}u.exports=Limiter},4376:(u,y,C)=>{const D=C(3106);const _=C(5803);const j=C(958);const{kStatusCode:$}=C(1791);const ne=Buffer[Symbol.species];const oe=Buffer.from([0,0,255,255]);const le=Symbol("permessage-deflate");const de=Symbol("total-length");const Ae=Symbol("callback");const pe=Symbol("buffers");const Ee=Symbol("error");let Ce;class PerMessageDeflate{constructor(u,y,C){this._maxPayload=C|0;this._options=u||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!y;this._deflate=null;this._inflate=null;this.params=null;if(!Ce){const u=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;Ce=new j(u)}}static get extensionName(){return"permessage-deflate"}offer(){const u={};if(this._options.serverNoContextTakeover){u.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){u.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){u.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){u.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){u.client_max_window_bits=true}return u}accept(u){u=this.normalizeParams(u);this.params=this._isServer?this.acceptAsServer(u):this.acceptAsClient(u);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const u=this._deflate[Ae];this._deflate.close();this._deflate=null;if(u){u(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(u){const y=this._options;const C=u.find((u=>{if(y.serverNoContextTakeover===false&&u.server_no_context_takeover||u.server_max_window_bits&&(y.serverMaxWindowBits===false||typeof y.serverMaxWindowBits==="number"&&y.serverMaxWindowBits>u.server_max_window_bits)||typeof y.clientMaxWindowBits==="number"&&!u.client_max_window_bits){return false}return true}));if(!C){throw new Error("None of the extension offers can be accepted")}if(y.serverNoContextTakeover){C.server_no_context_takeover=true}if(y.clientNoContextTakeover){C.client_no_context_takeover=true}if(typeof y.serverMaxWindowBits==="number"){C.server_max_window_bits=y.serverMaxWindowBits}if(typeof y.clientMaxWindowBits==="number"){C.client_max_window_bits=y.clientMaxWindowBits}else if(C.client_max_window_bits===true||y.clientMaxWindowBits===false){delete C.client_max_window_bits}return C}acceptAsClient(u){const y=u[0];if(this._options.clientNoContextTakeover===false&&y.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!y.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){y.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&y.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return y}normalizeParams(u){u.forEach((u=>{Object.keys(u).forEach((y=>{let C=u[y];if(C.length>1){throw new Error(`Parameter "${y}" must have only a single value`)}C=C[0];if(y==="client_max_window_bits"){if(C!==true){const u=+C;if(!Number.isInteger(u)||u<8||u>15){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}C=u}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}}else if(y==="server_max_window_bits"){const u=+C;if(!Number.isInteger(u)||u<8||u>15){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}C=u}else if(y==="client_no_context_takeover"||y==="server_no_context_takeover"){if(C!==true){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}}else{throw new Error(`Unknown parameter "${y}"`)}u[y]=C}))}));return u}decompress(u,y,C){Ce.add((D=>{this._decompress(u,y,((u,y)=>{D();C(u,y)}))}))}compress(u,y,C){Ce.add((D=>{this._compress(u,y,((u,y)=>{D();C(u,y)}))}))}_decompress(u,y,C){const j=this._isServer?"client":"server";if(!this._inflate){const u=`${j}_max_window_bits`;const y=typeof this.params[u]!=="number"?D.Z_DEFAULT_WINDOWBITS:this.params[u];this._inflate=D.createInflateRaw({...this._options.zlibInflateOptions,windowBits:y});this._inflate[le]=this;this._inflate[de]=0;this._inflate[pe]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[Ae]=C;this._inflate.write(u);if(y)this._inflate.write(oe);this._inflate.flush((()=>{const u=this._inflate[Ee];if(u){this._inflate.close();this._inflate=null;C(u);return}const D=_.concat(this._inflate[pe],this._inflate[de]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[de]=0;this._inflate[pe]=[];if(y&&this.params[`${j}_no_context_takeover`]){this._inflate.reset()}}C(null,D)}))}_compress(u,y,C){const j=this._isServer?"server":"client";if(!this._deflate){const u=`${j}_max_window_bits`;const y=typeof this.params[u]!=="number"?D.Z_DEFAULT_WINDOWBITS:this.params[u];this._deflate=D.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:y});this._deflate[de]=0;this._deflate[pe]=[];this._deflate.on("data",deflateOnData)}this._deflate[Ae]=C;this._deflate.write(u);this._deflate.flush(D.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let u=_.concat(this._deflate[pe],this._deflate[de]);if(y){u=new ne(u.buffer,u.byteOffset,u.length-4)}this._deflate[Ae]=null;this._deflate[de]=0;this._deflate[pe]=[];if(y&&this.params[`${j}_no_context_takeover`]){this._deflate.reset()}C(null,u)}))}}u.exports=PerMessageDeflate;function deflateOnData(u){this[pe].push(u);this[de]+=u.length}function inflateOnData(u){this[de]+=u.length;if(this[le]._maxPayload<1||this[de]<=this[le]._maxPayload){this[pe].push(u);return}this[Ee]=new RangeError("Max payload size exceeded");this[Ee].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[Ee][$]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(u){this[le]._inflate=null;if(this[Ee]){this[Ae](this[Ee]);return}u[$]=1007;this[Ae](u)}},893:(u,y,C)=>{const{Writable:D}=C(2203);const _=C(4376);const{BINARY_TYPES:j,EMPTY_BUFFER:$,kStatusCode:ne,kWebSocket:oe}=C(1791);const{concat:le,toArrayBuffer:de,unmask:Ae}=C(5803);const{isValidStatusCode:pe,isValidUTF8:Ee}=C(6615);const Ce=Buffer[Symbol.species];const Ie=0;const Be=1;const De=2;const xe=3;const Fe=4;const _e=5;const Le=6;class Receiver extends D{constructor(u={}){super();this._allowSynchronousEvents=u.allowSynchronousEvents!==undefined?u.allowSynchronousEvents:true;this._binaryType=u.binaryType||j[0];this._extensions=u.extensions||{};this._isServer=!!u.isServer;this._maxPayload=u.maxPayload|0;this._skipUTF8Validation=!!u.skipUTF8Validation;this[oe]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=Ie}_write(u,y,C){if(this._opcode===8&&this._state==Ie)return C();this._bufferedBytes+=u.length;this._buffers.push(u);this.startLoop(C)}consume(u){this._bufferedBytes-=u;if(u===this._buffers[0].length)return this._buffers.shift();if(u<this._buffers[0].length){const y=this._buffers[0];this._buffers[0]=new Ce(y.buffer,y.byteOffset+u,y.length-u);return new Ce(y.buffer,y.byteOffset,u)}const y=Buffer.allocUnsafe(u);do{const C=this._buffers[0];const D=y.length-u;if(u>=C.length){y.set(this._buffers.shift(),D)}else{y.set(new Uint8Array(C.buffer,C.byteOffset,u),D);this._buffers[0]=new Ce(C.buffer,C.byteOffset+u,C.length-u)}u-=C.length}while(u>0);return y}startLoop(u){this._loop=true;do{switch(this._state){case Ie:this.getInfo(u);break;case Be:this.getPayloadLength16(u);break;case De:this.getPayloadLength64(u);break;case xe:this.getMask();break;case Fe:this.getData(u);break;case _e:case Le:this._loop=false;return}}while(this._loop);if(!this._errored)u()}getInfo(u){if(this._bufferedBytes<2){this._loop=false;return}const y=this.consume(2);if((y[0]&48)!==0){const y=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");u(y);return}const C=(y[0]&64)===64;if(C&&!this._extensions[_.extensionName]){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}this._fin=(y[0]&128)===128;this._opcode=y[0]&15;this._payloadLength=y[1]&127;if(this._opcode===0){if(C){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}if(!this._fragmented){const y=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const y=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}this._compressed=C}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const y=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");u(y);return}if(C){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const y=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");u(y);return}}else{const y=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(y[1]&128)===128;if(this._isServer){if(!this._masked){const y=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");u(y);return}}else if(this._masked){const y=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");u(y);return}if(this._payloadLength===126)this._state=Be;else if(this._payloadLength===127)this._state=De;else this.haveLength(u)}getPayloadLength16(u){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(u)}getPayloadLength64(u){if(this._bufferedBytes<8){this._loop=false;return}const y=this.consume(8);const C=y.readUInt32BE(0);if(C>Math.pow(2,53-32)-1){const y=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");u(y);return}this._payloadLength=C*Math.pow(2,32)+y.readUInt32BE(4);this.haveLength(u)}haveLength(u){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const y=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");u(y);return}}if(this._masked)this._state=xe;else this._state=Fe}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=Fe}getData(u){let y=$;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=false;return}y=this.consume(this._payloadLength);if(this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0){Ae(y,this._mask)}}if(this._opcode>7){this.controlMessage(y,u);return}if(this._compressed){this._state=_e;this.decompress(y,u);return}if(y.length){this._messageLength=this._totalPayloadLength;this._fragments.push(y)}this.dataMessage(u)}decompress(u,y){const C=this._extensions[_.extensionName];C.decompress(u,this._fin,((u,C)=>{if(u)return y(u);if(C.length){this._messageLength+=C.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const u=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");y(u);return}this._fragments.push(C)}this.dataMessage(y);if(this._state===Ie)this.startLoop(y)}))}dataMessage(u){if(!this._fin){this._state=Ie;return}const y=this._messageLength;const C=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let D;if(this._binaryType==="nodebuffer"){D=le(C,y)}else if(this._binaryType==="arraybuffer"){D=de(le(C,y))}else if(this._binaryType==="blob"){D=new Blob(C)}else{D=C}if(this._allowSynchronousEvents){this.emit("message",D,true);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit("message",D,true);this._state=Ie;this.startLoop(u)}))}}else{const D=le(C,y);if(!this._skipUTF8Validation&&!Ee(D)){const y=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");u(y);return}if(this._state===_e||this._allowSynchronousEvents){this.emit("message",D,false);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit("message",D,false);this._state=Ie;this.startLoop(u)}))}}}controlMessage(u,y){if(this._opcode===8){if(u.length===0){this._loop=false;this.emit("conclude",1005,$);this.end()}else{const C=u.readUInt16BE(0);if(!pe(C)){const u=this.createError(RangeError,`invalid status code ${C}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");y(u);return}const D=new Ce(u.buffer,u.byteOffset+2,u.length-2);if(!this._skipUTF8Validation&&!Ee(D)){const u=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");y(u);return}this._loop=false;this.emit("conclude",C,D);this.end()}this._state=Ie;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",u);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",u);this._state=Ie;this.startLoop(y)}))}}createError(u,y,C,D,_){this._loop=false;this._errored=true;const j=new u(C?`Invalid WebSocket frame: ${y}`:y);Error.captureStackTrace(j,this.createError);j.code=_;j[ne]=D;return j}}u.exports=Receiver},7389:(u,y,C)=>{const{Duplex:D}=C(2203);const{randomFillSync:_}=C(6982);const j=C(4376);const{EMPTY_BUFFER:$,kWebSocket:ne,NOOP:oe}=C(1791);const{isBlob:le,isValidStatusCode:de}=C(6615);const{mask:Ae,toBuffer:pe}=C(5803);const Ee=Symbol("kByteLength");const Ce=Buffer.alloc(4);const Ie=8*1024;let Be;let De=Ie;const xe=0;const Fe=1;const _e=2;class Sender{constructor(u,y,C){this._extensions=y||{};if(C){this._generateMask=C;this._maskBuffer=Buffer.alloc(4)}this._socket=u;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._queue=[];this._state=xe;this.onerror=oe;this[ne]=undefined}static frame(u,y){let C;let D=false;let j=2;let $=false;if(y.mask){C=y.maskBuffer||Ce;if(y.generateMask){y.generateMask(C)}else{if(De===Ie){if(Be===undefined){Be=Buffer.alloc(Ie)}_(Be,0,Ie);De=0}C[0]=Be[De++];C[1]=Be[De++];C[2]=Be[De++];C[3]=Be[De++]}$=(C[0]|C[1]|C[2]|C[3])===0;j=6}let ne;if(typeof u==="string"){if((!y.mask||$)&&y[Ee]!==undefined){ne=y[Ee]}else{u=Buffer.from(u);ne=u.length}}else{ne=u.length;D=y.mask&&y.readOnly&&!$}let oe=ne;if(ne>=65536){j+=8;oe=127}else if(ne>125){j+=2;oe=126}const le=Buffer.allocUnsafe(D?ne+j:j);le[0]=y.fin?y.opcode|128:y.opcode;if(y.rsv1)le[0]|=64;le[1]=oe;if(oe===126){le.writeUInt16BE(ne,2)}else if(oe===127){le[2]=le[3]=0;le.writeUIntBE(ne,4,6)}if(!y.mask)return[le,u];le[1]|=128;le[j-4]=C[0];le[j-3]=C[1];le[j-2]=C[2];le[j-1]=C[3];if($)return[le,u];if(D){Ae(u,C,le,j,ne);return[le]}Ae(u,C,u,0,ne);return[le,u]}close(u,y,C,D){let _;if(u===undefined){_=$}else if(typeof u!=="number"||!de(u)){throw new TypeError("First argument must be a valid error code number")}else if(y===undefined||!y.length){_=Buffer.allocUnsafe(2);_.writeUInt16BE(u,0)}else{const C=Buffer.byteLength(y);if(C>123){throw new RangeError("The message must not be greater than 123 bytes")}_=Buffer.allocUnsafe(2+C);_.writeUInt16BE(u,0);if(typeof y==="string"){_.write(y,2)}else{_.set(y,2)}}const j={[Ee]:_.length,fin:true,generateMask:this._generateMask,mask:C,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._state!==xe){this.enqueue([this.dispatch,_,false,j,D])}else{this.sendFrame(Sender.frame(_,j),D)}}ping(u,y,C){let D;let _;if(typeof u==="string"){D=Buffer.byteLength(u);_=false}else if(le(u)){D=u.size;_=false}else{u=pe(u);D=u.length;_=pe.readOnly}if(D>125){throw new RangeError("The data size must not be greater than 125 bytes")}const j={[Ee]:D,fin:true,generateMask:this._generateMask,mask:y,maskBuffer:this._maskBuffer,opcode:9,readOnly:_,rsv1:false};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,false,j,C])}else{this.getBlobData(u,false,j,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,false,j,C])}else{this.sendFrame(Sender.frame(u,j),C)}}pong(u,y,C){let D;let _;if(typeof u==="string"){D=Buffer.byteLength(u);_=false}else if(le(u)){D=u.size;_=false}else{u=pe(u);D=u.length;_=pe.readOnly}if(D>125){throw new RangeError("The data size must not be greater than 125 bytes")}const j={[Ee]:D,fin:true,generateMask:this._generateMask,mask:y,maskBuffer:this._maskBuffer,opcode:10,readOnly:_,rsv1:false};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,false,j,C])}else{this.getBlobData(u,false,j,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,false,j,C])}else{this.sendFrame(Sender.frame(u,j),C)}}send(u,y,C){const D=this._extensions[j.extensionName];let _=y.binary?2:1;let $=y.compress;let ne;let oe;if(typeof u==="string"){ne=Buffer.byteLength(u);oe=false}else if(le(u)){ne=u.size;oe=false}else{u=pe(u);ne=u.length;oe=pe.readOnly}if(this._firstFragment){this._firstFragment=false;if($&&D&&D.params[D._isServer?"server_no_context_takeover":"client_no_context_takeover"]){$=ne>=D._threshold}this._compress=$}else{$=false;_=0}if(y.fin)this._firstFragment=true;const de={[Ee]:ne,fin:y.fin,generateMask:this._generateMask,mask:y.mask,maskBuffer:this._maskBuffer,opcode:_,readOnly:oe,rsv1:$};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,this._compress,de,C])}else{this.getBlobData(u,this._compress,de,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,this._compress,de,C])}else{this.dispatch(u,this._compress,de,C)}}getBlobData(u,y,C,D){this._bufferedBytes+=C[Ee];this._state=_e;u.arrayBuffer().then((u=>{if(this._socket.destroyed){const u=new Error("The socket was closed while the blob was being read");process.nextTick(callCallbacks,this,u,D);return}this._bufferedBytes-=C[Ee];const _=pe(u);if(!y){this._state=xe;this.sendFrame(Sender.frame(_,C),D);this.dequeue()}else{this.dispatch(_,y,C,D)}})).catch((u=>{process.nextTick(onError,this,u,D)}))}dispatch(u,y,C,D){if(!y){this.sendFrame(Sender.frame(u,C),D);return}const _=this._extensions[j.extensionName];this._bufferedBytes+=C[Ee];this._state=Fe;_.compress(u,C.fin,((u,y)=>{if(this._socket.destroyed){const u=new Error("The socket was closed while data was being compressed");callCallbacks(this,u,D);return}this._bufferedBytes-=C[Ee];this._state=xe;C.readOnly=false;this.sendFrame(Sender.frame(y,C),D);this.dequeue()}))}dequeue(){while(this._state===xe&&this._queue.length){const u=this._queue.shift();this._bufferedBytes-=u[3][Ee];Reflect.apply(u[0],this,u.slice(1))}}enqueue(u){this._bufferedBytes+=u[3][Ee];this._queue.push(u)}sendFrame(u,y){if(u.length===2){this._socket.cork();this._socket.write(u[0]);this._socket.write(u[1],y);this._socket.uncork()}else{this._socket.write(u[0],y)}}}u.exports=Sender;function callCallbacks(u,y,C){if(typeof C==="function")C(y);for(let C=0;C<u._queue.length;C++){const D=u._queue[C];const _=D[D.length-1];if(typeof _==="function")_(y)}}function onError(u,y,C){callCallbacks(u,y,C);u.onerror(y)}},6412:(u,y,C)=>{const D=C(6681);const{Duplex:_}=C(2203);function emitClose(u){u.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(u){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",u)}}function createWebSocketStream(u,y){let C=true;const D=new _({...y,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});u.on("message",(function message(y,C){const _=!C&&D._readableState.objectMode?y.toString():y;if(!D.push(_))u.pause()}));u.once("error",(function error(u){if(D.destroyed)return;C=false;D.destroy(u)}));u.once("close",(function close(){if(D.destroyed)return;D.push(null)}));D._destroy=function(y,_){if(u.readyState===u.CLOSED){_(y);process.nextTick(emitClose,D);return}let j=false;u.once("error",(function error(u){j=true;_(u)}));u.once("close",(function close(){if(!j)_(y);process.nextTick(emitClose,D)}));if(C)u.terminate()};D._final=function(y){if(u.readyState===u.CONNECTING){u.once("open",(function open(){D._final(y)}));return}if(u._socket===null)return;if(u._socket._writableState.finished){y();if(D._readableState.endEmitted)D.destroy()}else{u._socket.once("finish",(function finish(){y()}));u.close()}};D._read=function(){if(u.isPaused)u.resume()};D._write=function(y,C,_){if(u.readyState===u.CONNECTING){u.once("open",(function open(){D._write(y,C,_)}));return}u.send(y,_)};D.on("end",duplexOnEnd);D.on("error",duplexOnError);return D}u.exports=createWebSocketStream},3332:(u,y,C)=>{const{tokenChars:D}=C(6615);function parse(u){const y=new Set;let C=-1;let _=-1;let j=0;for(j;j<u.length;j++){const $=u.charCodeAt(j);if(_===-1&&D[$]===1){if(C===-1)C=j}else if(j!==0&&($===32||$===9)){if(_===-1&&C!==-1)_=j}else if($===44){if(C===-1){throw new SyntaxError(`Unexpected character at index ${j}`)}if(_===-1)_=j;const D=u.slice(C,_);if(y.has(D)){throw new SyntaxError(`The "${D}" subprotocol is duplicated`)}y.add(D);C=_=-1}else{throw new SyntaxError(`Unexpected character at index ${j}`)}}if(C===-1||_!==-1){throw new SyntaxError("Unexpected end of input")}const $=u.slice(C,j);if(y.has($)){throw new SyntaxError(`The "${$}" subprotocol is duplicated`)}y.add($);return y}u.exports={parse:parse}},6615:(u,y,C)=>{const{isUtf8:D}=C(181);const{hasBlob:_}=C(1791);const j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(u){return u>=1e3&&u<=1014&&u!==1004&&u!==1005&&u!==1006||u>=3e3&&u<=4999}function _isValidUTF8(u){const y=u.length;let C=0;while(C<y){if((u[C]&128)===0){C++}else if((u[C]&224)===192){if(C+1===y||(u[C+1]&192)!==128||(u[C]&254)===192){return false}C+=2}else if((u[C]&240)===224){if(C+2>=y||(u[C+1]&192)!==128||(u[C+2]&192)!==128||u[C]===224&&(u[C+1]&224)===128||u[C]===237&&(u[C+1]&224)===160){return false}C+=3}else if((u[C]&248)===240){if(C+3>=y||(u[C+1]&192)!==128||(u[C+2]&192)!==128||(u[C+3]&192)!==128||u[C]===240&&(u[C+1]&240)===128||u[C]===244&&u[C+1]>143||u[C]>244){return false}C+=4}else{return false}}return true}function isBlob(u){return _&&typeof u==="object"&&typeof u.arrayBuffer==="function"&&typeof u.type==="string"&&typeof u.stream==="function"&&(u[Symbol.toStringTag]==="Blob"||u[Symbol.toStringTag]==="File")}u.exports={isBlob:isBlob,isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:j};if(D){u.exports.isValidUTF8=function(u){return u.length<24?_isValidUTF8(u):D(u)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const y=C(2414);u.exports.isValidUTF8=function(u){return u.length<32?_isValidUTF8(u):y(u)}}catch(u){}}},129:(u,y,C)=>{const D=C(4434);const _=C(8611);const{Duplex:j}=C(2203);const{createHash:$}=C(6982);const ne=C(1335);const oe=C(4376);const le=C(3332);const de=C(6681);const{GUID:Ae,kWebSocket:pe}=C(1791);const Ee=/^[+/0-9A-Za-z]{22}==$/;const Ce=0;const Ie=1;const Be=2;class WebSocketServer extends D{constructor(u,y){super();u={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:de,...u};if(u.port==null&&!u.server&&!u.noServer||u.port!=null&&(u.server||u.noServer)||u.server&&u.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(u.port!=null){this._server=_.createServer(((u,y)=>{const C=_.STATUS_CODES[426];y.writeHead(426,{"Content-Length":C.length,"Content-Type":"text/plain"});y.end(C)}));this._server.listen(u.port,u.host,u.backlog,y)}else if(u.server){this._server=u.server}if(this._server){const u=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(y,C,D)=>{this.handleUpgrade(y,C,D,u)}})}if(u.perMessageDeflate===true)u.perMessageDeflate={};if(u.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=u;this._state=Ce}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(u){if(this._state===Be){if(u){this.once("close",(()=>{u(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(u)this.once("close",u);if(this._state===Ie)return;this._state=Ie;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const u=this._server;this._removeListeners();this._removeListeners=this._server=null;u.close((()=>{emitClose(this)}))}}shouldHandle(u){if(this.options.path){const y=u.url.indexOf("?");const C=y!==-1?u.url.slice(0,y):u.url;if(C!==this.options.path)return false}return true}handleUpgrade(u,y,C,D){y.on("error",socketOnError);const _=u.headers["sec-websocket-key"];const j=u.headers.upgrade;const $=+u.headers["sec-websocket-version"];if(u.method!=="GET"){const C="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,u,y,405,C);return}if(j===undefined||j.toLowerCase()!=="websocket"){const C="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,u,y,400,C);return}if(_===undefined||!Ee.test(_)){const C="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,u,y,400,C);return}if($!==13&&$!==8){const C="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,u,y,400,C,{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(u)){abortHandshake(y,400);return}const de=u.headers["sec-websocket-protocol"];let Ae=new Set;if(de!==undefined){try{Ae=le.parse(de)}catch(C){const D="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,u,y,400,D);return}}const pe=u.headers["sec-websocket-extensions"];const Ce={};if(this.options.perMessageDeflate&&pe!==undefined){const C=new oe(this.options.perMessageDeflate,true,this.options.maxPayload);try{const u=ne.parse(pe);if(u[oe.extensionName]){C.accept(u[oe.extensionName]);Ce[oe.extensionName]=C}}catch(C){const D="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,u,y,400,D);return}}if(this.options.verifyClient){const j={origin:u.headers[`${$===8?"sec-websocket-origin":"origin"}`],secure:!!(u.socket.authorized||u.socket.encrypted),req:u};if(this.options.verifyClient.length===2){this.options.verifyClient(j,((j,$,ne,oe)=>{if(!j){return abortHandshake(y,$||401,ne,oe)}this.completeUpgrade(Ce,_,Ae,u,y,C,D)}));return}if(!this.options.verifyClient(j))return abortHandshake(y,401)}this.completeUpgrade(Ce,_,Ae,u,y,C,D)}completeUpgrade(u,y,C,D,_,j,le){if(!_.readable||!_.writable)return _.destroy();if(_[pe]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>Ce)return abortHandshake(_,503);const de=$("sha1").update(y+Ae).digest("base64");const Ee=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${de}`];const Ie=new this.options.WebSocket(null,undefined,this.options);if(C.size){const u=this.options.handleProtocols?this.options.handleProtocols(C,D):C.values().next().value;if(u){Ee.push(`Sec-WebSocket-Protocol: ${u}`);Ie._protocol=u}}if(u[oe.extensionName]){const y=u[oe.extensionName].params;const C=ne.format({[oe.extensionName]:[y]});Ee.push(`Sec-WebSocket-Extensions: ${C}`);Ie._extensions=u}this.emit("headers",Ee,D);_.write(Ee.concat("\r\n").join("\r\n"));_.removeListener("error",socketOnError);Ie.setSocket(_,j,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(Ie);Ie.on("close",(()=>{this.clients.delete(Ie);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}le(Ie,D)}}u.exports=WebSocketServer;function addListeners(u,y){for(const C of Object.keys(y))u.on(C,y[C]);return function removeListeners(){for(const C of Object.keys(y)){u.removeListener(C,y[C])}}}function emitClose(u){u._state=Be;u.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(u,y,C,D){C=C||_.STATUS_CODES[y];D={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(C),...D};u.once("finish",u.destroy);u.end(`HTTP/1.1 ${y} ${_.STATUS_CODES[y]}\r\n`+Object.keys(D).map((u=>`${u}: ${D[u]}`)).join("\r\n")+"\r\n\r\n"+C)}function abortHandshakeOrEmitwsClientError(u,y,C,D,_,j){if(u.listenerCount("wsClientError")){const D=new Error(_);Error.captureStackTrace(D,abortHandshakeOrEmitwsClientError);u.emit("wsClientError",D,C,y)}else{abortHandshake(C,D,_,j)}}},6681:(u,y,C)=>{const D=C(4434);const _=C(5692);const j=C(8611);const $=C(9278);const ne=C(4756);const{randomBytes:oe,createHash:le}=C(6982);const{Duplex:de,Readable:Ae}=C(2203);const{URL:pe}=C(7016);const Ee=C(4376);const Ce=C(893);const Ie=C(7389);const{isBlob:Be}=C(6615);const{BINARY_TYPES:De,EMPTY_BUFFER:xe,GUID:Fe,kForOnEventAttribute:_e,kListener:Le,kStatusCode:ze,kWebSocket:qe,NOOP:Je}=C(1791);const{EventTarget:{addEventListener:Ke,removeEventListener:et}}=C(4634);const{format:tt,parse:rt}=C(1335);const{toBuffer:nt}=C(5803);const it=30*1e3;const st=Symbol("kAborted");const ot=[8,13];const at=["CONNECTING","OPEN","CLOSING","CLOSED"];const lt=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends D{constructor(u,y,C){super();this._binaryType=De[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=xe;this._closeTimer=null;this._errorEmitted=false;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(u!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(y===undefined){y=[]}else if(!Array.isArray(y)){if(typeof y==="object"&&y!==null){C=y;y=[]}else{y=[y]}}initAsClient(this,u,y,C)}else{this._autoPong=C.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(u){if(!De.includes(u))return;this._binaryType=u;if(this._receiver)this._receiver._binaryType=u}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(u,y,C){const D=new Ce({allowSynchronousEvents:C.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:C.maxPayload,skipUTF8Validation:C.skipUTF8Validation});const _=new Ie(u,this._extensions,C.generateMask);this._receiver=D;this._sender=_;this._socket=u;D[qe]=this;_[qe]=this;u[qe]=this;D.on("conclude",receiverOnConclude);D.on("drain",receiverOnDrain);D.on("error",receiverOnError);D.on("message",receiverOnMessage);D.on("ping",receiverOnPing);D.on("pong",receiverOnPong);_.onerror=senderOnError;if(u.setTimeout)u.setTimeout(0);if(u.setNoDelay)u.setNoDelay();if(y.length>0)u.unshift(y);u.on("close",socketOnClose);u.on("data",socketOnData);u.on("end",socketOnEnd);u.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[Ee.extensionName]){this._extensions[Ee.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(u,y){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const u="WebSocket was closed before the connection was established";abortHandshake(this,this._req,u);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(u,y,!this._isServer,(u=>{if(u)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));setCloseTimer(this)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof u==="function"){C=u;u=y=undefined}else if(typeof y==="function"){C=y;y=undefined}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}if(y===undefined)y=!this._isServer;this._sender.ping(u||xe,y,C)}pong(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof u==="function"){C=u;u=y=undefined}else if(typeof y==="function"){C=y;y=undefined}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}if(y===undefined)y=!this._isServer;this._sender.pong(u||xe,y,C)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof y==="function"){C=y;y={}}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}const D={binary:typeof u!=="string",mask:!this._isServer,compress:true,fin:true,...y};if(!this._extensions[Ee.extensionName]){D.compress=false}this._sender.send(u||xe,D,C)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const u="WebSocket was closed before the connection was established";abortHandshake(this,this._req,u);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:at.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:at.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:at.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:at.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:at.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:at.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:at.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:at.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((u=>{Object.defineProperty(WebSocket.prototype,u,{enumerable:true})}));["open","error","close","message"].forEach((u=>{Object.defineProperty(WebSocket.prototype,`on${u}`,{enumerable:true,get(){for(const y of this.listeners(u)){if(y[_e])return y[Le]}return null},set(y){for(const y of this.listeners(u)){if(y[_e]){this.removeListener(u,y);break}}if(typeof y!=="function")return;this.addEventListener(u,y,{[_e]:true})}})}));WebSocket.prototype.addEventListener=Ke;WebSocket.prototype.removeEventListener=et;u.exports=WebSocket;function initAsClient(u,y,C,D){const $={allowSynchronousEvents:true,autoPong:true,protocolVersion:ot[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...D,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};u._autoPong=$.autoPong;if(!ot.includes($.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${$.protocolVersion} `+`(supported versions: ${ot.join(", ")})`)}let ne;if(y instanceof pe){ne=y}else{try{ne=new pe(y)}catch(u){throw new SyntaxError(`Invalid URL: ${y}`)}}if(ne.protocol==="http:"){ne.protocol="ws:"}else if(ne.protocol==="https:"){ne.protocol="wss:"}u._url=ne.href;const de=ne.protocol==="wss:";const Ae=ne.protocol==="ws+unix:";let Ce;if(ne.protocol!=="ws:"&&!de&&!Ae){Ce='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https:", or "ws+unix:"'}else if(Ae&&!ne.pathname){Ce="The URL's pathname is empty"}else if(ne.hash){Ce="The URL contains a fragment identifier"}if(Ce){const y=new SyntaxError(Ce);if(u._redirects===0){throw y}else{emitErrorAndClose(u,y);return}}const Ie=de?443:80;const Be=oe(16).toString("base64");const De=de?_.request:j.request;const xe=new Set;let _e;$.createConnection=$.createConnection||(de?tlsConnect:netConnect);$.defaultPort=$.defaultPort||Ie;$.port=ne.port||Ie;$.host=ne.hostname.startsWith("[")?ne.hostname.slice(1,-1):ne.hostname;$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":Be,Connection:"Upgrade",Upgrade:"websocket"};$.path=ne.pathname+ne.search;$.timeout=$.handshakeTimeout;if($.perMessageDeflate){_e=new Ee($.perMessageDeflate!==true?$.perMessageDeflate:{},false,$.maxPayload);$.headers["Sec-WebSocket-Extensions"]=tt({[Ee.extensionName]:_e.offer()})}if(C.length){for(const u of C){if(typeof u!=="string"||!lt.test(u)||xe.has(u)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}xe.add(u)}$.headers["Sec-WebSocket-Protocol"]=C.join(",")}if($.origin){if($.protocolVersion<13){$.headers["Sec-WebSocket-Origin"]=$.origin}else{$.headers.Origin=$.origin}}if(ne.username||ne.password){$.auth=`${ne.username}:${ne.password}`}if(Ae){const u=$.path.split(":");$.socketPath=u[0];$.path=u[1]}let Le;if($.followRedirects){if(u._redirects===0){u._originalIpc=Ae;u._originalSecure=de;u._originalHostOrSocketPath=Ae?$.socketPath:ne.host;const y=D&&D.headers;D={...D,headers:{}};if(y){for(const[u,C]of Object.entries(y)){D.headers[u.toLowerCase()]=C}}}else if(u.listenerCount("redirect")===0){const y=Ae?u._originalIpc?$.socketPath===u._originalHostOrSocketPath:false:u._originalIpc?false:ne.host===u._originalHostOrSocketPath;if(!y||u._originalSecure&&!de){delete $.headers.authorization;delete $.headers.cookie;if(!y)delete $.headers.host;$.auth=undefined}}if($.auth&&!D.headers.authorization){D.headers.authorization="Basic "+Buffer.from($.auth).toString("base64")}Le=u._req=De($);if(u._redirects){u.emit("redirect",u.url,Le)}}else{Le=u._req=De($)}if($.timeout){Le.on("timeout",(()=>{abortHandshake(u,Le,"Opening handshake has timed out")}))}Le.on("error",(y=>{if(Le===null||Le[st])return;Le=u._req=null;emitErrorAndClose(u,y)}));Le.on("response",(_=>{const j=_.headers.location;const ne=_.statusCode;if(j&&$.followRedirects&&ne>=300&&ne<400){if(++u._redirects>$.maxRedirects){abortHandshake(u,Le,"Maximum redirects exceeded");return}Le.abort();let _;try{_=new pe(j,y)}catch(y){const C=new SyntaxError(`Invalid URL: ${j}`);emitErrorAndClose(u,C);return}initAsClient(u,_,C,D)}else if(!u.emit("unexpected-response",Le,_)){abortHandshake(u,Le,`Unexpected server response: ${_.statusCode}`)}}));Le.on("upgrade",((y,C,D)=>{u.emit("upgrade",y);if(u.readyState!==WebSocket.CONNECTING)return;Le=u._req=null;const _=y.headers.upgrade;if(_===undefined||_.toLowerCase()!=="websocket"){abortHandshake(u,C,"Invalid Upgrade header");return}const j=le("sha1").update(Be+Fe).digest("base64");if(y.headers["sec-websocket-accept"]!==j){abortHandshake(u,C,"Invalid Sec-WebSocket-Accept header");return}const ne=y.headers["sec-websocket-protocol"];let oe;if(ne!==undefined){if(!xe.size){oe="Server sent a subprotocol but none was requested"}else if(!xe.has(ne)){oe="Server sent an invalid subprotocol"}}else if(xe.size){oe="Server sent no subprotocol"}if(oe){abortHandshake(u,C,oe);return}if(ne)u._protocol=ne;const de=y.headers["sec-websocket-extensions"];if(de!==undefined){if(!_e){const y="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(u,C,y);return}let y;try{y=rt(de)}catch(y){const D="Invalid Sec-WebSocket-Extensions header";abortHandshake(u,C,D);return}const D=Object.keys(y);if(D.length!==1||D[0]!==Ee.extensionName){const y="Server indicated an extension that was not requested";abortHandshake(u,C,y);return}try{_e.accept(y[Ee.extensionName])}catch(y){const D="Invalid Sec-WebSocket-Extensions header";abortHandshake(u,C,D);return}u._extensions[Ee.extensionName]=_e}u.setSocket(C,D,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}));if($.finishRequest){$.finishRequest(Le,u)}else{Le.end()}}function emitErrorAndClose(u,y){u._readyState=WebSocket.CLOSING;u._errorEmitted=true;u.emit("error",y);u.emitClose()}function netConnect(u){u.path=u.socketPath;return $.connect(u)}function tlsConnect(u){u.path=undefined;if(!u.servername&&u.servername!==""){u.servername=$.isIP(u.host)?"":u.host}return ne.connect(u)}function abortHandshake(u,y,C){u._readyState=WebSocket.CLOSING;const D=new Error(C);Error.captureStackTrace(D,abortHandshake);if(y.setHeader){y[st]=true;y.abort();if(y.socket&&!y.socket.destroyed){y.socket.destroy()}process.nextTick(emitErrorAndClose,u,D)}else{y.destroy(D);y.once("error",u.emit.bind(u,"error"));y.once("close",u.emitClose.bind(u))}}function sendAfterClose(u,y,C){if(y){const C=Be(y)?y.size:nt(y).length;if(u._socket)u._sender._bufferedBytes+=C;else u._bufferedAmount+=C}if(C){const y=new Error(`WebSocket is not open: readyState ${u.readyState} `+`(${at[u.readyState]})`);process.nextTick(C,y)}}function receiverOnConclude(u,y){const C=this[qe];C._closeFrameReceived=true;C._closeMessage=y;C._closeCode=u;if(C._socket[qe]===undefined)return;C._socket.removeListener("data",socketOnData);process.nextTick(resume,C._socket);if(u===1005)C.close();else C.close(u,y)}function receiverOnDrain(){const u=this[qe];if(!u.isPaused)u._socket.resume()}function receiverOnError(u){const y=this[qe];if(y._socket[qe]!==undefined){y._socket.removeListener("data",socketOnData);process.nextTick(resume,y._socket);y.close(u[ze])}if(!y._errorEmitted){y._errorEmitted=true;y.emit("error",u)}}function receiverOnFinish(){this[qe].emitClose()}function receiverOnMessage(u,y){this[qe].emit("message",u,y)}function receiverOnPing(u){const y=this[qe];if(y._autoPong)y.pong(u,!this._isServer,Je);y.emit("ping",u)}function receiverOnPong(u){this[qe].emit("pong",u)}function resume(u){u.resume()}function senderOnError(u){const y=this[qe];if(y.readyState===WebSocket.CLOSED)return;if(y.readyState===WebSocket.OPEN){y._readyState=WebSocket.CLOSING;setCloseTimer(y)}this._socket.end();if(!y._errorEmitted){y._errorEmitted=true;y.emit("error",u)}}function setCloseTimer(u){u._closeTimer=setTimeout(u._socket.destroy.bind(u._socket),it)}function socketOnClose(){const u=this[qe];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);u._readyState=WebSocket.CLOSING;let y;if(!this._readableState.endEmitted&&!u._closeFrameReceived&&!u._receiver._writableState.errorEmitted&&(y=u._socket.read())!==null){u._receiver.write(y)}u._receiver.end();this[qe]=undefined;clearTimeout(u._closeTimer);if(u._receiver._writableState.finished||u._receiver._writableState.errorEmitted){u.emitClose()}else{u._receiver.on("error",receiverOnFinish);u._receiver.on("finish",receiverOnFinish)}}function socketOnData(u){if(!this[qe]._receiver.write(u)){this.pause()}}function socketOnEnd(){const u=this[qe];u._readyState=WebSocket.CLOSING;u._receiver.end();this.end()}function socketOnError(){const u=this[qe];this.removeListener("error",socketOnError);this.on("error",Je);if(u){u._readyState=WebSocket.CLOSING;this.destroy()}}},663:(u,y,C)=>{var D=C(9896);var _=C(3106);var j=C(3045);var $=C(9776);var ne=C(9023);var oe=C(4434).EventEmitter;var le=C(2203).Transform;var de=C(2203).PassThrough;var Ae=C(2203).Writable;y.open=open;y.fromFd=fromFd;y.fromBuffer=fromBuffer;y.fromRandomAccessReader=fromRandomAccessReader;y.dosDateTimeToDate=dosDateTimeToDate;y.validateFileName=validateFileName;y.ZipFile=ZipFile;y.Entry=Entry;y.RandomAccessReader=RandomAccessReader;function open(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};if(y.autoClose==null)y.autoClose=true;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;if(C==null)C=defaultCallback;D.open(u,"r",(function(u,_){if(u)return C(u);fromFd(_,y,(function(u,y){if(u)D.close(_,defaultCallback);C(u,y)}))}))}function fromFd(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};if(y.autoClose==null)y.autoClose=false;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;if(C==null)C=defaultCallback;D.fstat(u,(function(D,_){if(D)return C(D);var $=j.createFromFd(u,{autoClose:true});fromRandomAccessReader($,_.size,y,C)}))}function fromBuffer(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};y.autoClose=false;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;var D=j.createFromBuffer(u,{maxChunkSize:65536});fromRandomAccessReader(D,u.length,y,C)}function fromRandomAccessReader(u,y,C,D){if(typeof C==="function"){D=C;C=null}if(C==null)C={};if(C.autoClose==null)C.autoClose=true;if(C.lazyEntries==null)C.lazyEntries=false;if(C.decodeStrings==null)C.decodeStrings=true;var _=!!C.decodeStrings;if(C.validateEntrySizes==null)C.validateEntrySizes=true;if(C.strictFileNames==null)C.strictFileNames=false;if(D==null)D=defaultCallback;if(typeof y!=="number")throw new Error("expected totalSize parameter to be a number");if(y>Number.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}u.ref();var j=22;var $=65535;var ne=Math.min(j+$,y);var oe=Ee(ne);var le=y-oe.length;readAndAssertNoEof(u,oe,0,ne,le,(function($){if($)return D($);for(var de=ne-j;de>=0;de-=1){if(oe.readUInt32LE(de)!==101010256)continue;var Ae=oe.slice(de);var pe=Ae.readUInt16LE(4);if(pe!==0){return D(new Error("multi-disk zip files are not supported: found disk number: "+pe))}var Ce=Ae.readUInt16LE(10);var Ie=Ae.readUInt32LE(16);var Be=Ae.readUInt16LE(20);var De=Ae.length-j;if(Be!==De){return D(new Error("invalid comment length. expected: "+De+". found: "+Be))}var xe=_?decodeBuffer(Ae,22,Ae.length,false):Ae.slice(22);if(!(Ce===65535||Ie===4294967295)){return D(null,new ZipFile(u,Ie,y,Ce,xe,C.autoClose,C.lazyEntries,_,C.validateEntrySizes,C.strictFileNames))}var Fe=Ee(20);var _e=le+de-Fe.length;readAndAssertNoEof(u,Fe,0,Fe.length,_e,(function(j){if(j)return D(j);if(Fe.readUInt32LE(0)!==117853008){return D(new Error("invalid zip64 end of central directory locator signature"))}var $=readUInt64LE(Fe,8);var ne=Ee(56);readAndAssertNoEof(u,ne,0,ne.length,$,(function(j){if(j)return D(j);if(ne.readUInt32LE(0)!==101075792){return D(new Error("invalid zip64 end of central directory record signature"))}Ce=readUInt64LE(ne,32);Ie=readUInt64LE(ne,48);return D(null,new ZipFile(u,Ie,y,Ce,xe,C.autoClose,C.lazyEntries,_,C.validateEntrySizes,C.strictFileNames))}))}));return}D(new Error("end of central directory record signature not found"))}))}ne.inherits(ZipFile,oe);function ZipFile(u,y,C,D,_,j,$,ne,le,de){var Ae=this;oe.call(Ae);Ae.reader=u;Ae.reader.on("error",(function(u){emitError(Ae,u)}));Ae.reader.once("close",(function(){Ae.emit("close")}));Ae.readEntryCursor=y;Ae.fileSize=C;Ae.entryCount=D;Ae.comment=_;Ae.entriesRead=0;Ae.autoClose=!!j;Ae.lazyEntries=!!$;Ae.decodeStrings=!!ne;Ae.validateEntrySizes=!!le;Ae.strictFileNames=!!de;Ae.isOpen=true;Ae.emittedError=false;if(!Ae.lazyEntries)Ae._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(u,y){if(u.autoClose)u.close();emitError(u,y)}function emitError(u,y){if(u.emittedError)return;u.emittedError=true;u.emit("error",y)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var u=this;if(u.entryCount===u.entriesRead){setImmediate((function(){if(u.autoClose)u.close();if(u.emittedError)return;u.emit("end")}));return}if(u.emittedError)return;var y=Ee(46);readAndAssertNoEof(u.reader,y,0,y.length,u.readEntryCursor,(function(C){if(C)return emitErrorAndAutoClose(u,C);if(u.emittedError)return;var D=new Entry;var _=y.readUInt32LE(0);if(_!==33639248)return emitErrorAndAutoClose(u,new Error("invalid central directory file header signature: 0x"+_.toString(16)));D.versionMadeBy=y.readUInt16LE(4);D.versionNeededToExtract=y.readUInt16LE(6);D.generalPurposeBitFlag=y.readUInt16LE(8);D.compressionMethod=y.readUInt16LE(10);D.lastModFileTime=y.readUInt16LE(12);D.lastModFileDate=y.readUInt16LE(14);D.crc32=y.readUInt32LE(16);D.compressedSize=y.readUInt32LE(20);D.uncompressedSize=y.readUInt32LE(24);D.fileNameLength=y.readUInt16LE(28);D.extraFieldLength=y.readUInt16LE(30);D.fileCommentLength=y.readUInt16LE(32);D.internalFileAttributes=y.readUInt16LE(36);D.externalFileAttributes=y.readUInt32LE(38);D.relativeOffsetOfLocalHeader=y.readUInt32LE(42);if(D.generalPurposeBitFlag&64)return emitErrorAndAutoClose(u,new Error("strong encryption is not supported"));u.readEntryCursor+=46;y=Ee(D.fileNameLength+D.extraFieldLength+D.fileCommentLength);readAndAssertNoEof(u.reader,y,0,y.length,u.readEntryCursor,(function(C){if(C)return emitErrorAndAutoClose(u,C);if(u.emittedError)return;var _=(D.generalPurposeBitFlag&2048)!==0;D.fileName=u.decodeStrings?decodeBuffer(y,0,D.fileNameLength,_):y.slice(0,D.fileNameLength);var j=D.fileNameLength+D.extraFieldLength;var ne=y.slice(D.fileNameLength,j);D.extraFields=[];var oe=0;while(oe<ne.length-3){var le=ne.readUInt16LE(oe+0);var de=ne.readUInt16LE(oe+2);var Ae=oe+4;var pe=Ae+de;if(pe>ne.length)return emitErrorAndAutoClose(u,new Error("extra field length exceeds extra field buffer size"));var Ce=Ee(de);ne.copy(Ce,0,Ae,pe);D.extraFields.push({id:le,data:Ce});oe=pe}D.fileComment=u.decodeStrings?decodeBuffer(y,j,j+D.fileCommentLength,_):y.slice(j,j+D.fileCommentLength);D.comment=D.fileComment;u.readEntryCursor+=y.length;u.entriesRead+=1;if(D.uncompressedSize===4294967295||D.compressedSize===4294967295||D.relativeOffsetOfLocalHeader===4294967295){var Ie=null;for(var oe=0;oe<D.extraFields.length;oe++){var Be=D.extraFields[oe];if(Be.id===1){Ie=Be.data;break}}if(Ie==null){return emitErrorAndAutoClose(u,new Error("expected zip64 extended information extra field"))}var De=0;if(D.uncompressedSize===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include uncompressed size"))}D.uncompressedSize=readUInt64LE(Ie,De);De+=8}if(D.compressedSize===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include compressed size"))}D.compressedSize=readUInt64LE(Ie,De);De+=8}if(D.relativeOffsetOfLocalHeader===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include relative header offset"))}D.relativeOffsetOfLocalHeader=readUInt64LE(Ie,De);De+=8}}if(u.decodeStrings){for(var oe=0;oe<D.extraFields.length;oe++){var Be=D.extraFields[oe];if(Be.id===28789){if(Be.data.length<6){continue}if(Be.data.readUInt8(0)!==1){continue}var xe=Be.data.readUInt32LE(1);if($.unsigned(y.slice(0,D.fileNameLength))!==xe){continue}D.fileName=decodeBuffer(Be.data,5,Be.data.length,true);break}}}if(u.validateEntrySizes&&D.compressionMethod===0){var Fe=D.uncompressedSize;if(D.isEncrypted()){Fe+=12}if(D.compressedSize!==Fe){var _e="compressed/uncompressed size mismatch for stored file: "+D.compressedSize+" != "+D.uncompressedSize;return emitErrorAndAutoClose(u,new Error(_e))}}if(u.decodeStrings){if(!u.strictFileNames){D.fileName=D.fileName.replace(/\\/g,"/")}var Le=validateFileName(D.fileName,u.validateFileNameOptions);if(Le!=null)return emitErrorAndAutoClose(u,new Error(Le))}u.emit("entry",D);if(!u.lazyEntries)u._readEntry()}))}))};ZipFile.prototype.openReadStream=function(u,y,C){var D=this;var j=0;var $=u.compressedSize;if(C==null){C=y;y={}}else{if(y.decrypt!=null){if(!u.isEncrypted()){throw new Error("options.decrypt can only be specified for encrypted entries")}if(y.decrypt!==false)throw new Error("invalid options.decrypt value: "+y.decrypt);if(u.isCompressed()){if(y.decompress!==false)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}}if(y.decompress!=null){if(!u.isCompressed()){throw new Error("options.decompress can only be specified for compressed entries")}if(!(y.decompress===false||y.decompress===true)){throw new Error("invalid options.decompress value: "+y.decompress)}}if(y.start!=null||y.end!=null){if(u.isCompressed()&&y.decompress!==false){throw new Error("start/end range not allowed for compressed entry without options.decompress === false")}if(u.isEncrypted()&&y.decrypt!==false){throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}}if(y.start!=null){j=y.start;if(j<0)throw new Error("options.start < 0");if(j>u.compressedSize)throw new Error("options.start > entry.compressedSize")}if(y.end!=null){$=y.end;if($<0)throw new Error("options.end < 0");if($>u.compressedSize)throw new Error("options.end > entry.compressedSize");if($<j)throw new Error("options.end < options.start")}}if(!D.isOpen)return C(new Error("closed"));if(u.isEncrypted()){if(y.decrypt!==false)return C(new Error("entry is encrypted, and options.decrypt !== false"))}D.reader.ref();var ne=Ee(30);readAndAssertNoEof(D.reader,ne,0,ne.length,u.relativeOffsetOfLocalHeader,(function(oe){try{if(oe)return C(oe);var le=ne.readUInt32LE(0);if(le!==67324752){return C(new Error("invalid local file header signature: 0x"+le.toString(16)))}var de=ne.readUInt16LE(26);var Ae=ne.readUInt16LE(28);var pe=u.relativeOffsetOfLocalHeader+ne.length+de+Ae;var Ee;if(u.compressionMethod===0){Ee=false}else if(u.compressionMethod===8){Ee=y.decompress!=null?y.decompress:true}else{return C(new Error("unsupported compression method: "+u.compressionMethod))}var Ce=pe;var Ie=Ce+u.compressedSize;if(u.compressedSize!==0){if(Ie>D.fileSize){return C(new Error("file data overflows file bounds: "+Ce+" + "+u.compressedSize+" > "+D.fileSize))}}var Be=D.reader.createReadStream({start:Ce+j,end:Ce+$});var De=Be;if(Ee){var xe=false;var Fe=_.createInflateRaw();Be.on("error",(function(u){setImmediate((function(){if(!xe)Fe.emit("error",u)}))}));Be.pipe(Fe);if(D.validateEntrySizes){De=new AssertByteCountStream(u.uncompressedSize);Fe.on("error",(function(u){setImmediate((function(){if(!xe)De.emit("error",u)}))}));Fe.pipe(De)}else{De=Fe}De.destroy=function(){xe=true;if(Fe!==De)Fe.unpipe(De);Be.unpipe(Fe);Be.destroy()}}C(null,De)}finally{D.reader.unref()}}))};function Entry(){}Entry.prototype.getLastModDate=function(){return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function dosDateTimeToDate(u,y){var C=u&31;var D=(u>>5&15)-1;var _=(u>>9&127)+1980;var j=0;var $=(y&31)*2;var ne=y>>5&63;var oe=y>>11&31;return new Date(_,D,C,oe,ne,$,j)}function validateFileName(u){if(u.indexOf("\\")!==-1){return"invalid characters in fileName: "+u}if(/^[a-zA-Z]:/.test(u)||/^\//.test(u)){return"absolute path: "+u}if(u.split("/").indexOf("..")!==-1){return"invalid relative path: "+u}return null}function readAndAssertNoEof(u,y,C,D,_,j){if(D===0){return setImmediate((function(){j(null,Ee(0))}))}u.read(y,C,D,_,(function(u,y){if(u)return j(u);if(y<D){return j(new Error("unexpected EOF"))}j()}))}ne.inherits(AssertByteCountStream,le);function AssertByteCountStream(u){le.call(this);this.actualByteCount=0;this.expectedByteCount=u}AssertByteCountStream.prototype._transform=function(u,y,C){this.actualByteCount+=u.length;if(this.actualByteCount>this.expectedByteCount){var D="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return C(new Error(D))}C(null,u)};AssertByteCountStream.prototype._flush=function(u){if(this.actualByteCount<this.expectedByteCount){var y="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return u(new Error(y))}u()};ne.inherits(RandomAccessReader,oe);function RandomAccessReader(){oe.call(this);this.refCount=0}RandomAccessReader.prototype.ref=function(){this.refCount+=1};RandomAccessReader.prototype.unref=function(){var u=this;u.refCount-=1;if(u.refCount>0)return;if(u.refCount<0)throw new Error("invalid unref");u.close(onCloseDone);function onCloseDone(y){if(y)return u.emit("error",y);u.emit("close")}};RandomAccessReader.prototype.createReadStream=function(u){var y=u.start;var C=u.end;if(y===C){var D=new de;setImmediate((function(){D.end()}));return D}var _=this._readStreamForRange(y,C);var j=false;var $=new RefUnrefFilter(this);_.on("error",(function(u){setImmediate((function(){if(!j)$.emit("error",u)}))}));$.destroy=function(){_.unpipe($);$.unref();_.destroy()};var ne=new AssertByteCountStream(C-y);$.on("error",(function(u){setImmediate((function(){if(!j)ne.emit("error",u)}))}));ne.destroy=function(){j=true;$.unpipe(ne);$.destroy()};return _.pipe($).pipe(ne)};RandomAccessReader.prototype._readStreamForRange=function(u,y){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(u,y,C,D,_){var j=this.createReadStream({start:D,end:D+C});var $=new Ae;var ne=0;$._write=function(C,D,_){C.copy(u,y+ne,0,C.length);ne+=C.length;_()};$.on("finish",_);j.on("error",(function(u){_(u)}));j.pipe($)};RandomAccessReader.prototype.close=function(u){setImmediate(u)};ne.inherits(RefUnrefFilter,de);function RefUnrefFilter(u){de.call(this);this.context=u;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(u){this.unref();u()};RefUnrefFilter.prototype.unref=function(u){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var pe="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(u,y,C,D){if(D){return u.toString("utf8",y,C)}else{var _="";for(var j=y;j<C;j++){_+=pe[u[j]]}return _}}function readUInt64LE(u,y){var C=u.readUInt32LE(y);var D=u.readUInt32LE(y+4);return D*4294967296+C}var Ee;if(typeof Buffer.allocUnsafe==="function"){Ee=function(u){return Buffer.allocUnsafe(u)}}else{Ee=function(u){return new Buffer(u)}}function defaultCallback(u){if(u)throw u}},3808:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{q:()=>App});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(865);var oe=C(5351);var le=C(7531);var de=C(3003);var Ae=C(5720);var pe=C(4649);var Ee=C(1298);var Ce=C(9433);var Ie=C(2480);var Be=u([$,ne,oe,le,de,Ae,pe,Ce,Ie]);[$,ne,oe,le,de,Ae,pe,Ce,Ie]=Be.then?(await Be)():Be;const App=({autonomous:u=false})=>{const{coreState:y,coreViewModel:C,agentStatus:D,pendingShellCommand:Be,approveShellCommand:De,rejectShellCommand:xe,approveDiff:Fe,rejectDiff:_e,submitUserInput:Le,searchFiles:ze,activeShellCommand:qe,handleShellCompletion:Je,childProcess:Ke,sendInputToShell:et,inputText:tt,setInputText:rt,isShellActive:nt,setIsShellActive:it,cancelCurrentInteraction:st}=(0,Ee.f)({autonomous:u});const[ot,at]=(0,_.useState)(false);const[lt,ct]=(0,_.useState)(false);(0,$.Ge)(((u,y)=>{if(nt){if(y.ctrl&&u==="c"){et("");return}if(y.return){et("\n");return}if(y.backspace){et("\b");return}if(u){et(u);return}return}if(y.escape&&D.isVisible){st();return}if(y.ctrl&&u==="c"){if(lt){process.exit(0)}else{ct(true)}}else{ct(false)}}));const handleSubmit=(u,y)=>{Le(u,y)};(0,_.useEffect)((()=>{if(qe){it(true)}else{it(false)}}),[qe]);const ut=!C.activeDiffReview&&!Be&&!y.isBootstrapping&&!D.isVisible;const ft=y.bootstrapFinished?C.staticMessages.filter((u=>!u.isBootstrap)):C.staticMessages;return j().createElement($.az,{flexDirection:"column",width:"100%",height:"100%"},!y.bootstrapFinished?j().createElement(Ie.A,{status:y.connectionStatus,isBootstrapping:y.isBootstrapping}):j().createElement(j().Fragment,null,j().createElement(oe.s,{messages:ft,liveAgentMessage:C.liveAgentMessage,activeShellRun:C.activeShellRun,activeDiffReview:C.activeDiffReview,onShellComplete:Je,childProcess:Ke,sendInputToShell:et,onApproveDiff:Fe,onRejectDiff:_e}),Be&&j().createElement(pe.A,{command:Be.parameters.command,onApprove:De,onReject:xe}),D.isVisible&&j().createElement(ne.A,{isVisible:D.isVisible,text:D.text}),ot&&j().createElement(Ce.A,null),j().createElement(Ae.A,{isActive:ut,isShellActive:nt,onSubmit:handleSubmit,searchFiles:ze,value:tt,onChange:rt,setShowEscapeClear:at}),j().createElement(de.A,null)),lt&&j().createElement(le.A,null))};D()}catch(u){D(u)}}))},1167:(u,y,C)=>{C.a(u,(async(u,y)=>{try{var D=C(7919);var _=C.n(D);var j=C(8518);var $=C(9345);var ne=C(3808);var oe=C(6614);var le=u([j,ne]);[j,ne]=le.then?(await le)():le;const de=(0,$.A)(`\n\tUsage\n\t $ stk-codegen\n\n\tOptions\n\t --autonomous Run in autonomous mode\n`,{importMeta:import.meta,flags:{autonomous:{type:"boolean",default:false}}});const startCli=async u=>{await(0,oe.x)();const restoreTerminal=()=>{if(process.stdin.isTTY){process.stdin.setRawMode(false)}};if(process.stdin.isTTY){process.stdin.setRawMode(true)}const y=process.stdout.isTTY&&process.env["STK_CODEGEN_ALT_BUFFER"]!=="0";const C=(0,j.XX)(_().createElement(ne.q,{autonomous:u.autonomous}),{exitOnCtrlC:false,alternateBuffer:y,incrementalRendering:y});try{await C.waitUntilExit()}finally{restoreTerminal();process.exit(0)}};startCli(de.flags);y()}catch(u){y(u)}}))},865:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(8078);var oe=u([$,ne]);[$,ne]=oe.then?(await oe)():oe;const AgentStatus=({isVisible:u,text:y="Agent is thinking..."})=>{if(!u){return null}return j().createElement($.az,{borderColor:"#800020"},j().createElement(ne.A,{type:"dots"}),j().createElement($.az,{marginLeft:1},j().createElement($.EY,{color:"#ff8080"},y," (esc to cancel)")))};const le=AgentStatus;D()}catch(u){D(u)}}))},2480:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(8078);var oe=u([$,ne]);[$,ne]=oe.then?(await oe)():oe;const BootstrapStatus=({status:u,isBootstrapping:y})=>{let C="";if(u==="connecting"){C="Conectando ao servidor..."}else if(y){C="Carregando contexto do projeto. Isso pode levar alguns segundos..."}return j().createElement($.az,{flexDirection:"column",alignItems:"center",paddingY:1},j().createElement($.az,null,j().createElement($.EY,null,j().createElement(ne.A,{type:"dots"}),j().createElement($.EY,null," "),C)))};const le=BootstrapStatus;D()}catch(u){D(u)}}))},5351:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{s:()=>Conversation});var _=C(7919);var j=C.n(_);var $=C(1808);var ne=C(9577);var oe=C(8518);var le=C(4978);var de=C(968);var Ae=C(3036);var pe=u([$,ne,oe,le,de,Ae]);[$,ne,oe,le,de,Ae]=pe.then?(await pe)():pe;const renderStaticMessage=(u,y)=>{if(u.role==="tool_execution"){return j().createElement(Ae.A,{key:u.id,toolName:u.toolName,toolParams:u.toolParams,status:u.status})}return j().createElement(ne.e,{key:u.id,message:{id:u.id,sender:u.role,text:u.text,status:"completed",highlightedBlock:u.highlightedBlock},activeShellCommand:undefined,childProcess:null,handleShellCompletion:y})};const LiveAgentMessageView=({liveAgentMessage:u,onShellComplete:y})=>j().createElement(ne.e,{key:u.id,message:{id:u.id,sender:u.role,text:u.text,status:"running",stream:{status:"streaming"},highlightedBlock:u.highlightedBlock},activeShellCommand:undefined,childProcess:null,handleShellCompletion:y});const Conversation=({messages:u,liveAgentMessage:y,activeShellRun:C,activeDiffReview:D,onShellComplete:_,childProcess:ne,onApproveDiff:Ae,onRejectDiff:pe})=>j().createElement($.P,null,j().createElement(oe.jC,{items:u},(u=>renderStaticMessage(u,_))),y&&j().createElement(LiveAgentMessageView,{liveAgentMessage:y,onShellComplete:_}),C&&j().createElement(le.A,{command:C.command,onComplete:_,childProcess:ne,coreShellRun:C}),D&&j().createElement(de.Ay,{toolName:D.toolName,toolParams:D.toolParams,oldContent:D.oldContent,newContent:D.newContent,onApprove:Ae,onReject:pe,isCompleted:false,coreDiffReview:D}));D()}catch(u){D(u)}}))},968:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{Ay:()=>Ee});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(7073);var oe=C(1825);var le=C(1911);var de=u([$]);$=(de.then?(await de)():de)[0];const Ae=500;const pe=3;const normalizeContent=u=>u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");const getTerminalColumns=()=>{const u=process.stdout;if(u&&typeof u.columns==="number"&&u.columns>0){return u.columns}return 80};const wrapLineToWidth=(u,y)=>{const C=u.replace(/\t/g," ");if(C.length<=y){return[C]}const D=[];for(let u=0;u<C.length;u+=y){D.push(C.slice(u,u+y))}return D.length?D:[""]};const DiffDecisionHint=()=>j().createElement($.az,{marginTop:1},j().createElement($.EY,null,"Press ","<Enter>"," to ",j().createElement($.EY,{color:"green"},"Accept")," or 'r' to ",j().createElement($.EY,{color:"red"},"Reject"),"."));const DiffViewStatic=({oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:oe,isCompleted:de,action:Ee,maxVisibleLines:Ce})=>{const Ie=(0,_.useMemo)((()=>normalizeContent(u)),[u]);const Be=(0,_.useMemo)((()=>normalizeContent(y)),[y]);const De=(0,_.useMemo)((()=>ne.Pp(Ie,Be)),[Ie,Be]);const xe=Ee==="accept"?"Changes accepted":"Changes rejected";const Fe=Ee==="accept"?"green":"red";const _e=D?(0,le.M)(D,oe):C;const Le=getTerminalColumns();const ze=8;const qe=Math.max(Le-ze-4,20);const Je=Ce??Ae;if(Ie===Be&&!de){return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginBottom:1},j().createElement($.EY,{bold:true},"File: ",_e),j().createElement($.EY,null,"No changes detected. The file content will remain the same unless you edit it."))}const Ke=(0,_.useMemo)((()=>{const u=[];let y=1;let C=1;De.forEach((D=>{const _=D.value.replace(/\n$/,"");const j=_===""?[""]:_.split("\n");j.forEach((_=>{let j="unchanged";let $=null;let ne=null;if(D.added){j="added";ne=C++}else if(D.removed){j="removed";$=y++}else{j="unchanged";$=y++;ne=C++}u.push({index:u.length,type:j,text:_,oldLineNumber:$,newLineNumber:ne})}))}));return u}),[De]);const et=(0,_.useMemo)((()=>{const u=new Array(Ke.length).fill(false);const y=[];Ke.forEach(((C,D)=>{if(C.type==="added"||C.type==="removed"){u[D]=true;y.push(D)}}));y.forEach((y=>{const C=Math.max(0,y-pe);const D=Math.min(Ke.length-1,y+pe);for(let y=C;y<=D;y++){u[y]=true}}));return u}),[Ke]);return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginBottom:1},j().createElement($.EY,{bold:true},"File: ",_e),de?j().createElement($.EY,{color:Fe},"4 ",xe):j().createElement($.EY,{bold:true},"Review Changes:"),j().createElement($.az,{flexDirection:"column",marginTop:1},(()=>{const u=[];let y=0;let C=false;for(let D=0;D<Ke.length;D++){if(C)break;if(!et[D])continue;const _=Ke[D];if(!_)continue;const ne=_.type==="added"?_.newLineNumber:_.type==="removed"?_.oldLineNumber:_.newLineNumber;let oe=" ";let le="grey";if(_.type==="added"){oe="+";le="green"}else if(_.type==="removed"){oe="-";le="red"}const de=wrapLineToWidth(_.text,qe);for(let _=0;_<de.length;_++){if(y>=Je){C=true;break}const Ae=de[_];const pe=_===0;const Ee=`${D}-${_}`;u.push(j().createElement($.az,{key:Ee,flexDirection:"row"},j().createElement($.EY,{color:"gray"},pe&&ne!==null&&ne!==undefined?String(ne).padStart(4):" "," "),j().createElement($.EY,{color:le},pe?oe:" "," ",Ae)));y++}}if(C){const C=Ke.length;const D=C-y;u.push(j().createElement($.az,{key:"truncated",marginTop:1},!de&&Ce!=null?j().createElement($.EY,{color:"yellow"},"A visualização deste arquivo foi truncada para limitar a altura da tela."," ","Restam aproximadamente ",D," linha(s) não exibidas."," ","Pressione Ctrl+S para ver o conteúdo completo em modo estático."):j().createElement($.EY,{color:"yellow"},"Diff truncado para ",Je," linhas para evitar lentidão e flickering."," ",D," linha(s) adicional(is) não estão sendo exibidas.")))}return u})()))};const DiffView=({oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:_,isCompleted:ne,action:le,maxVisibleLines:de,coreDiffReview:Ae,onApprove:pe,onReject:Ee})=>{const Ce=Ae?Ae.status!=="pending":ne;(0,$.Ge)(((u,y)=>{if(y.return){pe()}if(u==="r"){Ee()}}),{isActive:!Ce});const{diffReviewHeight:Ie}=(0,oe.SB)();const Be=!Ce&&de==null?Ie:de;return j().createElement($.az,{flexDirection:"column"},j().createElement(DiffViewStatic,{oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:_,isCompleted:Ce,action:le,maxVisibleLines:Be}),!Ce&&j().createElement(DiffDecisionHint,null))};const Ee=DiffView;D()}catch(u){D(u)}}))},9433:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const EscapeClearIndicator=()=>j().createElement($.az,null,j().createElement($.EY,{color:"gray"},"Press ESC again to clear."));const oe=EscapeClearIndicator;D()}catch(u){D(u)}}))},7531:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ExitIndicator=()=>j().createElement($.az,null,j().createElement($.EY,{color:"yellow"},"Press Ctrl+C again to exit"));const oe=ExitIndicator;D()}catch(u){D(u)}}))},3003:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(3688);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const Footer=()=>{const{cwd:u,branch:y}=(0,ne.q)();return j().createElement($.az,{width:"100%",justifyContent:"space-between"},j().createElement($.EY,null,j().createElement($.EY,{color:"green"},u),y&&j().createElement($.EY,{color:"gray"}," (",y,")")))};const le=Footer;D()}catch(u){D(u)}}))},5720:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>pe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(7273);var oe=C(1301);var le=C(4362);var de=C(8225);var Ae=u([$]);$=(Ae.then?(await Ae)():Ae)[0];const Input=({value:u,onChange:y,onSubmit:C,searchFiles:D,isShellActive:Ae=false,setShowEscapeClear:pe,isActive:Ee})=>{const[Ce,Ie]=(0,_.useState)(new ne.a(u));const[Be,De]=(0,_.useState)([]);const[xe,Fe]=(0,_.useState)([]);const[_e,Le]=(0,_.useState)(1);(0,_.useEffect)((()=>{Ie((y=>{if(y.value===u)return y;return new ne.a(u)}))}),[u]);const[ze,qe]=(0,_.useState)(-1);const[Je,Ke]=(0,_.useState)(null);const et=(0,le.P)();const[tt,rt]=(0,_.useState)(null);(0,_.useEffect)((()=>{const fetchSuggestions=async()=>{const u=Ce.value;if(u.startsWith("/")){Ke("magic");const y=u.slice(1);const C=et.filter((u=>u.startsWith(y))).slice(0,5);De(C);qe(C.length>0?0:-1)}else if(u.includes("@")){Ke("file");const y=u.lastIndexOf("@");const C=u.substring(y+1);if(C.length>0){const u=await D(`**/*${C}*`,{ignore:["**/node_modules/**","**/.git/**","**/dist/**"]});De(u.slice(0,5));qe(u.length>0?0:-1)}else{De([])}}else{Ke(null);De([])}};fetchSuggestions()}),[Ce.value,D,et]);(0,$.Ge)(((u,D)=>{if(process.env["STK_DEBUG_INPUT"]==="1"){console.error("[STK_DEBUG_INPUT]",{rawInput:u,key:D})}const _=Ce.clone();let j=false;const $=typeof u==="string"&&!D.return&&(u.length>1||u.includes("\n")||u.includes("\r"));if(D.escape){if(tt){clearTimeout(tt);rt(null);pe(false);Ie(new ne.a(""));De([]);qe(-1);Fe([]);Le(1)}else{pe(true);const u=setTimeout((()=>{rt(null);pe(false)}),800);rt(u)}return}if(Be.length>0){if(D.upArrow){qe((u=>(u-1+Be.length)%Be.length));return}if(D.downArrow){qe((u=>(u+1)%Be.length));return}if(D.tab||D.return){const u=Be[ze>-1?ze:0];if(u){let y="";if(Je==="magic"){y=`/${u}`}else if(Je==="file"){const C=Ce.value.lastIndexOf("@");y=Ce.value.substring(0,C+1)+u+" "}Ie(new ne.a(y));De([]);qe(-1);Ke(null)}return}}if(D.meta){if(u==="f")_.moveCursorWordRight();else if(u==="b")_.moveCursorWordLeft()}else if(D.ctrl&&(u==="v"||u==="")){(async()=>{const u=await(0,de.F)();if(!u){return}Fe((y=>{const C=_e;const D=[...y,{id:C,base64:u.base64,mimeType:u.mimeType}];return D}));const C=`[IMG#${_e}]`;const D=Ce.clone();D.insertText(C);Ie(D);y(D.value);Le((u=>u+1))})();return}else if(D.ctrl&&u==="j"){_.insert("\n");j=true}else if(D.ctrl){if(u==="a")_.moveCursorToStart();else if(u==="e")_.moveCursorToEnd()}else if(D.leftArrow)_.moveCursorLeft();else if(D.rightArrow)_.moveCursorRight();else if((0,oe.g)(D)){const u=_.value;const C=_.cursorPosition;const D=u.slice(0,C);const $=D.match(/\[IMG#(\d+)\]$/);if($){const D=$[0].length;const _=C-D;const oe=u.slice(0,_)+u.slice(C);const le=new ne.a(oe);le.moveCursorToStart();for(let u=0;u<_;u++)le.moveCursorRight();Fe((u=>u.filter((u=>u.id!==Number($[1])))));Ie(le);y(le.value);j=false;return}_.backspace();j=true}else if((0,oe.O)()){const u=_.value;const C=_.cursorPosition;const D=u.slice(C);const $=D.match(/^\[IMG#(\d+)\]/);if($){const D=$[0].length;const _=u.slice(0,C)+u.slice(C+D);const oe=new ne.a(_);oe.moveCursorToStart();for(let u=0;u<C;u++)oe.moveCursorRight();Fe((u=>u.filter((u=>u.id!==Number($[1])))));Ie(oe);y(oe.value);j=false;return}_.delete();j=true}else if($&&u){const y=u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");_.insertText(y);j=true}else if(D.return&&D.shift){_.insert("\n");j=true}else if(D.return){const u=xe.length>0?{images:xe.map((u=>({base64:u.base64,mimeType:u.mimeType})))}:undefined;C(Ce.value,u);if(Ce.value!==""){Ie(new ne.a(""))}Fe([]);Le(1);return}else if(u){for(const y of u){_.insert(y)}j=true}if(j){if($){De([]);qe(-1);Ke(null)}Ie(_);y(_.value)}else{Ie(_)}}),{isActive:Ee});const CustomTextInput=({buffer:u})=>{const y=u.value;const C=u.cursorPosition;const D=y.slice(0,C);const _=y.slice(C,C+1);const ne=y.slice(C+1);if(_==="\n"){return j().createElement($.EY,null,D,j().createElement($.EY,{inverse:true}," "),"",ne)}const oe=_||" ";return j().createElement($.EY,null,D,j().createElement($.EY,{inverse:true},oe),ne)};return j().createElement($.az,{flexDirection:"column"},Be.length>0&&j().createElement($.az,{flexDirection:"column",borderStyle:"single",paddingX:1},j().createElement($.EY,{bold:true},"Suggestions"),Be.map(((u,y)=>j().createElement($.EY,{key:u,color:y===ze?"blue":"white"},y===ze?"> ":" ",u)))),j().createElement($.az,{flexDirection:"column",borderStyle:"single",paddingX:1},xe.length>0&&j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"green"},xe.length," imagem(s) anexada(s): ",xe.map((u=>`[IMG#${u.id}]`)).join(" "))),j().createElement($.az,{flexDirection:"row"},j().createElement($.az,{marginRight:1},j().createElement($.EY,{color:Ae?"yellow":"cyan"},Ae?"(shell)$":">")),j().createElement($.az,{flexGrow:1},j().createElement(CustomTextInput,{buffer:Ce})))))};const pe=j().memo(Input);D()}catch(u){D(u)}}))},1808:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{P:()=>LimitedHeightBox});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(1825);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const LimitedHeightBox=({maxRatio:u=.6,minLines:y=5,children:C,...D})=>{(0,ne.SB)();return j().createElement($.az,{flexDirection:"column",...D},C)};var le=null&&LimitedHeightBox;D()}catch(u){D(u)}}))},9577:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{e:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(3610);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const CodeBlock=({content:u,language:y})=>j().createElement($.az,{flexDirection:"column",marginBottom:1,borderStyle:"round",borderColor:"cyan"},y&&j().createElement($.az,{paddingX:1,paddingTop:0,paddingBottom:0},j().createElement($.EY,{color:"cyanBright"},y)),j().createElement($.az,{paddingX:1,paddingBottom:0,paddingTop:y?0:0},j().createElement($.EY,null,u)));const renderInlineAgentText=u=>{const y=(0,ne.y)(u??"");if(!y.length){return j().createElement($.EY,null,u)}return j().createElement($.EY,null,y.map(((u,y)=>u.type==="code"?j().createElement($.EY,{key:`code-${y}`,color:"#ff7bda"},u.content):j().createElement($.EY,{key:`text-${y}`},u.content))))};const Message=({message:u,activeShellCommand:y,childProcess:C,handleShellCompletion:D,context:_="live"})=>{if(u.sender==="user"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"yellowBright"},"> ",u.text))}if(u.sender==="agent_thought"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"gray",italic:true},u.text))}if(u.sender==="agent"){if(process.env["STK_DEBUG_AGENT_STREAM"]==="1"){console.log("[agent-render]",JSON.stringify(u.text))}if(u.highlightedBlock){return j().createElement(CodeBlock,{content:u.highlightedBlock.content,language:u.highlightedBlock.language})}return j().createElement($.az,{marginBottom:1},renderInlineAgentText(u.text))}if(u.sender==="agent_error"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"red"},u.text))}if(u.sender==="system"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"gray"},u.text))}if(u.sender==="tool_execution"){return null}return null};const le=j().memo(Message);D()}catch(u){D(u)}}))},4649:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ShellConfirmation=({command:u,onApprove:y,onReject:C})=>{(0,$.Ge)(((u,D)=>{if(u.toLowerCase()==="y"){y()}else if(u.toLowerCase()==="n"){C()}}));return j().createElement($.az,{flexDirection:"column",padding:1,borderColor:"yellow",borderStyle:"round"},j().createElement($.EY,null,"The agent wants to run the following shell command:"),j().createElement($.az,{marginTop:1,paddingX:1,borderStyle:"round",borderColor:"gray"},j().createElement($.EY,null,u)),j().createElement($.az,{marginTop:1},j().createElement($.EY,{color:"yellow"},"Do you want to run this command? (y/n)")))};const oe=ShellConfirmation;D()}catch(u){D(u)}}))},4978:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ShellExecution=({command:u,childProcess:y,onComplete:C,coreShellRun:D})=>{const _=D?.status??"running";const ne=D?.visibleOutput??[D?.stdout,D?.stderr].filter(Boolean).join("\n");const oe=ne?ne.split("\n"):[];const le=D?.isVisuallyTruncated&&D.visibleLinesCount!=null&&D.totalLines!=null;return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1},j().createElement($.EY,{color:"white"},"$ ",u),j().createElement($.EY,{color:"gray"},"Status: ",_),le&&j().createElement($.EY,{color:"yellow"},"A saída deste comando é muito longa; mostrando últimas ",D.visibleLinesCount," de ",D.totalLines," linhas."),oe.length>0?j().createElement(j().Fragment,null,oe.map(((u,y)=>j().createElement($.EY,{key:y},u)))):j().createElement($.EY,{color:"gray"},"Aguardando saída do comando..."))};const oe=ShellExecution;D()}catch(u){D(u)}}))},3036:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(1911);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const ToolExecution=({toolName:u,toolParams:y,status:C})=>{const D=C==="finished"||C==="completed";const _=D?"✓":"·";const oe=D?"green":"yellow";const le=(0,ne.M)(u,y);return j().createElement($.az,null,j().createElement($.EY,{color:"gray"},j().createElement($.EY,{color:oe},_)," ",le))};const le=ToolExecution;D()}catch(u){D(u)}}))},2973:(u,y,C)=>{C.d(y,{$:()=>D});class Config{WORKSPACE_DIR;BACKEND_URL;CURRENT_VERSION;DISABLE_RIPGREP;constructor(){this.WORKSPACE_DIR=process.env["CLI_WORKSPACE_DIR"]||process.cwd();this.BACKEND_URL=process.env["CLI_BACKEND_URL"]||"https://labs-codegen-api.dev.stackspot.com";this.CURRENT_VERSION="1.0.8";this.DISABLE_RIPGREP=(process.env["CLI_DISABLE_RIPGREP"]||"").toLowerCase()==="true"}}const D=new Config},3688:(u,y,C)=>{C.d(y,{q:()=>useGitInfo});var D=C(7919);var _=C.n(D);var j=C(9896);var $=C.n(j);var ne=C(5317);var oe=C.n(ne);const isGitRepo=()=>{try{(0,ne.execSync)("git rev-parse --is-inside-work-tree",{stdio:["ignore","ignore","ignore"]});return true}catch{return false}};const useGitInfo=()=>{const[u,y]=(0,D.useState)("");const[C,_]=(0,D.useState)(false);(0,D.useEffect)((()=>{const getGitBranch=()=>{if(!isGitRepo())return"";try{return(0,ne.execSync)("git rev-parse --abbrev-ref HEAD",{stdio:["ignore","pipe","ignore"]}).toString().trim()}catch(u){return""}};y(getGitBranch());_($().existsSync("CODEGEN.md"))}),[]);return{cwd:process.cwd(),branch:u,hasCodegenSpec:C}}},1298:(u,y,C)=>{C.d(y,{f:()=>useAgent});var D=C(7919);var _=C(2977);var j=C(6928);var $=C.n(j);var ne=C(1943);var oe=C(2973);const ReadFile=async u=>{const{file_path:y,offset:C,limit:D}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);let _=await(0,ne.readFile)(u,"utf-8");const j=_.split("\n");let le=false;let de;let Ae;if(C!==undefined&&D!==undefined){Ae=j.length;const u=C;const y=Math.min(C+D,j.length);_=j.slice(u,y).join("\n");le=y<j.length;de=[u+1,y]}if(le){return{content:`\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines ${de[0]}-${de[1]} of ${Ae} total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'ReadFile' call. For example, to read the next section of the file, use offset: ${de[1]}.\n\n--- FILE CONTENT (truncated) ---\n${_}`}}return{content:_}}catch(u){return{error:u.message}}};const ReadFolder=async u=>{const{dir_path:y=".",ignore:C}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);const D=await(0,ne.readdir)(u,{withFileTypes:true});const _=[];for(const y of D){if(C&&C.some((u=>new RegExp(u).test(y.name)))){continue}const D=$().join(u,y.name);const j=await(0,ne.stat)(D);_.push({name:y.name,path:D,isDirectory:y.isDirectory(),size:j.size,modifiedTime:j.mtime})}_.sort(((u,y)=>{if(u.isDirectory&&!y.isDirectory)return-1;if(!u.isDirectory&&y.isDirectory)return 1;return u.name.localeCompare(y.name)}));const j=_.map((u=>`${u.isDirectory?"[DIR] ":""}${u.name}`)).join("\n");return{llmContent:`Directory listing for ${u}:\n${j}`,returnDisplay:`Listed ${_.length} item(s).`}}catch(u){return{error:u.message}}};const Shell=async u=>Promise.resolve({command:u.command,directory:u.dir_path,stdout:"(empty)",stderr:"(This command was executed interactively)",error:"(none)",exitCode:0});const balanced=(u,y,C)=>{const D=u instanceof RegExp?maybeMatch(u,C):u;const _=y instanceof RegExp?maybeMatch(y,C):y;const j=D!==null&&_!=null&&range(D,_,C);return j&&{start:j[0],end:j[1],pre:C.slice(0,j[0]),body:C.slice(j[0]+D.length,j[1]),post:C.slice(j[1]+_.length)}};const maybeMatch=(u,y)=>{const C=y.match(u);return C?C[0]:null};const range=(u,y,C)=>{let D,_,j,$=undefined,ne;let oe=C.indexOf(u);let le=C.indexOf(y,oe+1);let de=oe;if(oe>=0&&le>0){if(u===y){return[oe,le]}D=[];j=C.length;while(de>=0&&!ne){if(de===oe){D.push(de);oe=C.indexOf(u,de+1)}else if(D.length===1){const u=D.pop();if(u!==undefined)ne=[u,le]}else{_=D.pop();if(_!==undefined&&_<j){j=_;$=le}le=C.indexOf(y,de+1)}de=oe<le&&oe>=0?oe:le}if(D.length&&$!==undefined){ne=[j,$]}}return ne};const le="\0SLASH"+Math.random()+"\0";const de="\0OPEN"+Math.random()+"\0";const Ae="\0CLOSE"+Math.random()+"\0";const pe="\0COMMA"+Math.random()+"\0";const Ee="\0PERIOD"+Math.random()+"\0";const Ce=new RegExp(le,"g");const Ie=new RegExp(de,"g");const Be=new RegExp(Ae,"g");const De=new RegExp(pe,"g");const xe=new RegExp(Ee,"g");const Fe=/\\\\/g;const _e=/\\{/g;const Le=/\\}/g;const ze=/\\,/g;const qe=/\\./g;function numeric(u){return!isNaN(u)?parseInt(u,10):u.charCodeAt(0)}function escapeBraces(u){return u.replace(Fe,le).replace(_e,de).replace(Le,Ae).replace(ze,pe).replace(qe,Ee)}function unescapeBraces(u){return u.replace(Ce,"\\").replace(Ie,"{").replace(Be,"}").replace(De,",").replace(xe,".")}function parseCommaParts(u){if(!u){return[""]}const y=[];const C=balanced("{","}",u);if(!C){return u.split(",")}const{pre:D,body:_,post:j}=C;const $=D.split(",");$[$.length-1]+="{"+_+"}";const ne=parseCommaParts(j);if(j.length){$[$.length-1]+=ne.shift();$.push.apply($,ne)}y.push.apply(y,$);return y}function expand(u){if(!u){return[]}if(u.slice(0,2)==="{}"){u="\\{\\}"+u.slice(2)}return expand_(escapeBraces(u),true).map(unescapeBraces)}function embrace(u){return"{"+u+"}"}function isPadded(u){return/^-?0\d/.test(u)}function lte(u,y){return u<=y}function gte(u,y){return u>=y}function expand_(u,y){const C=[];const D=balanced("{","}",u);if(!D)return[u];const _=D.pre;const j=D.post.length?expand_(D.post,false):[""];if(/\$$/.test(D.pre)){for(let u=0;u<j.length;u++){const y=_+"{"+D.body+"}"+j[u];C.push(y)}}else{const $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body);const ne=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body);const oe=$||ne;const le=D.body.indexOf(",")>=0;if(!oe&&!le){if(D.post.match(/,(?!,).*\}/)){u=D.pre+"{"+D.body+Ae+D.post;return expand_(u)}return[u]}let de;if(oe){de=D.body.split(/\.\./)}else{de=parseCommaParts(D.body);if(de.length===1&&de[0]!==undefined){de=expand_(de[0],false).map(embrace);if(de.length===1){return j.map((u=>D.pre+de[0]+u))}}}let pe;if(oe&&de[0]!==undefined&&de[1]!==undefined){const u=numeric(de[0]);const y=numeric(de[1]);const C=Math.max(de[0].length,de[1].length);let D=de.length===3&&de[2]!==undefined?Math.abs(numeric(de[2])):1;let _=lte;const j=y<u;if(j){D*=-1;_=gte}const $=de.some(isPadded);pe=[];for(let j=u;_(j,y);j+=D){let u;if(ne){u=String.fromCharCode(j);if(u==="\\"){u=""}}else{u=String(j);if($){const y=C-u.length;if(y>0){const C=new Array(y+1).join("0");if(j<0){u="-"+C+u.slice(1)}else{u=C+u}}}}pe.push(u)}}else{pe=[];for(let u=0;u<de.length;u++){pe.push.apply(pe,expand_(de[u],false))}}for(let u=0;u<pe.length;u++){for(let D=0;D<j.length;D++){const $=_+pe[u]+j[D];if(!y||oe||$){C.push($)}}}}return C}const Je=1024*64;const assertValidPattern=u=>{if(typeof u!=="string"){throw new TypeError("invalid pattern")}if(u.length>Je){throw new TypeError("pattern is too long")}};const Ke={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=u=>u.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=u=>u.join("");const parseClass=(u,y)=>{const C=y;if(u.charAt(C)!=="["){throw new Error("not in a brace expression")}const D=[];const _=[];let j=C+1;let $=false;let ne=false;let oe=false;let le=false;let de=C;let Ae="";e:while(j<u.length){const y=u.charAt(j);if((y==="!"||y==="^")&&j===C+1){le=true;j++;continue}if(y==="]"&&$&&!oe){de=j+1;break}$=true;if(y==="\\"){if(!oe){oe=true;j++;continue}}if(y==="["&&!oe){for(const[y,[$,oe,le]]of Object.entries(Ke)){if(u.startsWith(y,j)){if(Ae){return["$.",false,u.length-C,true]}j+=y.length;if(le)_.push($);else D.push($);ne=ne||oe;continue e}}}oe=false;if(Ae){if(y>Ae){D.push(braceEscape(Ae)+"-"+braceEscape(y))}else if(y===Ae){D.push(braceEscape(y))}Ae="";j++;continue}if(u.startsWith("-]",j+1)){D.push(braceEscape(y+"-"));j+=2;continue}if(u.startsWith("-",j+1)){Ae=y;j+=2;continue}D.push(braceEscape(y));j++}if(de<j){return["",false,0,false]}if(!D.length&&!_.length){return["$.",false,u.length-C,true]}if(_.length===0&&D.length===1&&/^\\?.$/.test(D[0])&&!le){const u=D[0].length===2?D[0].slice(-1):D[0];return[regexpEscape(u),false,de-C,false]}const pe="["+(le?"^":"")+rangesToString(D)+"]";const Ee="["+(le?"":"^")+rangesToString(_)+"]";const Ce=D.length&&_.length?"("+pe+"|"+Ee+")":D.length?pe:Ee;return[Ce,ne,de-C,true]};const unescape_unescape=(u,{windowsPathsNoEscape:y=false,magicalBraces:C=true}={})=>{if(C){return y?u.replace(/\[([^\/\\])\]/g,"$1"):u.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")}return y?u.replace(/\[([^\/\\{}])\]/g,"$1"):u.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1")};const et=new Set(["!","?","+","*","@"]);const isExtglobType=u=>et.has(u);const tt="(?!(?:^|/)\\.\\.?(?:$|/))";const rt="(?!\\.)";const nt=new Set(["[","."]);const it=new Set(["..","."]);const st=new Set("().*{}+?[]^$\\!");const regExpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const ot="[^/]";const at=ot+"*?";const lt=ot+"+?";class AST{type;#e;#t;#r=false;#n=[];#i;#s;#o;#a=false;#l;#c;#u=false;constructor(u,y,C={}){this.type=u;if(u)this.#t=true;this.#i=y;this.#e=this.#i?this.#i.#e:this;this.#l=this.#e===this?C:this.#e.#l;this.#o=this.#e===this?[]:this.#e.#o;if(u==="!"&&!this.#e.#a)this.#o.push(this);this.#s=this.#i?this.#i.#n.length:0}get hasMagic(){if(this.#t!==undefined)return this.#t;for(const u of this.#n){if(typeof u==="string")continue;if(u.type||u.hasMagic)return this.#t=true}return this.#t}toString(){if(this.#c!==undefined)return this.#c;if(!this.type){return this.#c=this.#n.map((u=>String(u))).join("")}else{return this.#c=this.type+"("+this.#n.map((u=>String(u))).join("|")+")"}}#f(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString();this.#a=true;let u;while(u=this.#o.pop()){if(u.type!=="!")continue;let y=u;let C=y.#i;while(C){for(let D=y.#s+1;!C.type&&D<C.#n.length;D++){for(const y of u.#n){if(typeof y==="string"){throw new Error("string part in extglob AST??")}y.copyIn(C.#n[D])}}y=C;C=y.#i}}return this}push(...u){for(const y of u){if(y==="")continue;if(typeof y!=="string"&&!(y instanceof AST&&y.#i===this)){throw new Error("invalid part: "+y)}this.#n.push(y)}}toJSON(){const u=this.type===null?this.#n.slice().map((u=>typeof u==="string"?u:u.toJSON())):[this.type,...this.#n.map((u=>u.toJSON()))];if(this.isStart()&&!this.type)u.unshift([]);if(this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")){u.push({})}return u}isStart(){if(this.#e===this)return true;if(!this.#i?.isStart())return false;if(this.#s===0)return true;const u=this.#i;for(let y=0;y<this.#s;y++){const C=u.#n[y];if(!(C instanceof AST&&C.type==="!")){return false}}return true}isEnd(){if(this.#e===this)return true;if(this.#i?.type==="!")return true;if(!this.#i?.isEnd())return false;if(!this.type)return this.#i?.isEnd();const u=this.#i?this.#i.#n.length:0;return this.#s===u-1}copyIn(u){if(typeof u==="string")this.push(u);else this.push(u.clone(this))}clone(u){const y=new AST(this.type,u);for(const u of this.#n){y.copyIn(u)}return y}static#d(u,y,C,D){let _=false;let j=false;let $=-1;let ne=false;if(y.type===null){let oe=C;let le="";while(oe<u.length){const C=u.charAt(oe++);if(_||C==="\\"){_=!_;le+=C;continue}if(j){if(oe===$+1){if(C==="^"||C==="!"){ne=true}}else if(C==="]"&&!(oe===$+2&&ne)){j=false}le+=C;continue}else if(C==="["){j=true;$=oe;ne=false;le+=C;continue}if(!D.noext&&isExtglobType(C)&&u.charAt(oe)==="("){y.push(le);le="";const _=new AST(C,y);oe=AST.#d(u,_,oe,D);y.push(_);continue}le+=C}y.push(le);return oe}let oe=C+1;let le=new AST(null,y);const de=[];let Ae="";while(oe<u.length){const C=u.charAt(oe++);if(_||C==="\\"){_=!_;Ae+=C;continue}if(j){if(oe===$+1){if(C==="^"||C==="!"){ne=true}}else if(C==="]"&&!(oe===$+2&&ne)){j=false}Ae+=C;continue}else if(C==="["){j=true;$=oe;ne=false;Ae+=C;continue}if(isExtglobType(C)&&u.charAt(oe)==="("){le.push(Ae);Ae="";const y=new AST(C,le);le.push(y);oe=AST.#d(u,y,oe,D);continue}if(C==="|"){le.push(Ae);Ae="";de.push(le);le=new AST(null,y);continue}if(C===")"){if(Ae===""&&y.#n.length===0){y.#u=true}le.push(Ae);Ae="";y.push(...de,le);return oe}Ae+=C}y.type=null;y.#t=undefined;y.#n=[u.substring(C-1)];return oe}static fromGlob(u,y={}){const C=new AST(null,undefined,y);AST.#d(u,C,0,y);return C}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const u=this.toString();const[y,C,D,_]=this.toRegExpSource();const j=D||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&u.toUpperCase()!==u.toLowerCase();if(!j){return C}const $=(this.#l.nocase?"i":"")+(_?"u":"");return Object.assign(new RegExp(`^${y}$`,$),{_src:y,_glob:u})}get options(){return this.#l}toRegExpSource(u){const y=u??!!this.#l.dot;if(this.#e===this)this.#f();if(!this.type){const C=this.isStart()&&this.isEnd()&&!this.#n.some((u=>typeof u!=="string"));const D=this.#n.map((y=>{const[D,_,j,$]=typeof y==="string"?AST.#A(y,this.#t,C):y.toRegExpSource(u);this.#t=this.#t||j;this.#r=this.#r||$;return D})).join("");let _="";if(this.isStart()){if(typeof this.#n[0]==="string"){const C=this.#n.length===1&&it.has(this.#n[0]);if(!C){const C=nt;const j=y&&C.has(D.charAt(0))||D.startsWith("\\.")&&C.has(D.charAt(2))||D.startsWith("\\.\\.")&&C.has(D.charAt(4));const $=!y&&!u&&C.has(D.charAt(0));_=j?tt:$?rt:""}}}let j="";if(this.isEnd()&&this.#e.#a&&this.#i?.type==="!"){j="(?:$|\\/)"}const $=_+D+j;return[$,unescape_unescape(D),this.#t=!!this.#t,this.#r]}const C=this.type==="*"||this.type==="+";const D=this.type==="!"?"(?:(?!(?:":"(?:";let _=this.#h(y);if(this.isStart()&&this.isEnd()&&!_&&this.type!=="!"){const u=this.toString();this.#n=[u];this.type=null;this.#t=undefined;return[u,unescape_unescape(this.toString()),false,false]}let j=!C||u||y||!rt?"":this.#h(true);if(j===_){j=""}if(j){_=`(?:${_})(?:${j})*?`}let $="";if(this.type==="!"&&this.#u){$=(this.isStart()&&!y?rt:"")+lt}else{const C=this.type==="!"?"))"+(this.isStart()&&!y&&!u?rt:"")+at+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&j?")":this.type==="*"&&j?`)?`:`)${this.type}`;$=D+_+C}return[$,unescape_unescape(_),this.#t=!!this.#t,this.#r]}#h(u){return this.#n.map((y=>{if(typeof y==="string"){throw new Error("string type in extglob ast??")}const[C,D,_,j]=y.toRegExpSource(u);this.#r=this.#r||j;return C})).filter((u=>!(this.isStart()&&this.isEnd())||!!u)).join("|")}static#A(u,y,C=false){let D=false;let _="";let j=false;for(let $=0;$<u.length;$++){const ne=u.charAt($);if(D){D=false;_+=(st.has(ne)?"\\":"")+ne;continue}if(ne==="\\"){if($===u.length-1){_+="\\\\"}else{D=true}continue}if(ne==="["){const[C,D,ne,oe]=parseClass(u,$);if(ne){_+=C;j=j||D;$+=ne-1;y=y||oe;continue}}if(ne==="*"){_+=C&&u==="*"?lt:at;y=true;continue}if(ne==="?"){_+=ot;y=true;continue}_+=regExpEscape(ne)}return[_,unescape_unescape(u),!!y,j]}}const escape_escape=(u,{windowsPathsNoEscape:y=false,magicalBraces:C=false}={})=>{if(C){return y?u.replace(/[?*()[\]{}]/g,"[$&]"):u.replace(/[?*()[\]\\{}]/g,"\\$&")}return y?u.replace(/[?*()[\]]/g,"[$&]"):u.replace(/[?*()[\]\\]/g,"\\$&")};const minimatch=(u,y,C={})=>{assertValidPattern(y);if(!C.nocomment&&y.charAt(0)==="#"){return false}return new Minimatch(y,C).match(u)};const ct=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=u=>y=>!y.startsWith(".")&&y.endsWith(u);const starDotExtTestDot=u=>y=>y.endsWith(u);const starDotExtTestNocase=u=>{u=u.toLowerCase();return y=>!y.startsWith(".")&&y.toLowerCase().endsWith(u)};const starDotExtTestNocaseDot=u=>{u=u.toLowerCase();return y=>y.toLowerCase().endsWith(u)};const ut=/^\*+\.\*+$/;const starDotStarTest=u=>!u.startsWith(".")&&u.includes(".");const starDotStarTestDot=u=>u!=="."&&u!==".."&&u.includes(".");const ft=/^\.\*+$/;const dotStarTest=u=>u!=="."&&u!==".."&&u.startsWith(".");const dt=/^\*+$/;const starTest=u=>u.length!==0&&!u.startsWith(".");const starTestDot=u=>u.length!==0&&u!=="."&&u!=="..";const At=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([u,y=""])=>{const C=qmarksTestNoExt([u]);if(!y)return C;y=y.toLowerCase();return u=>C(u)&&u.toLowerCase().endsWith(y)};const qmarksTestNocaseDot=([u,y=""])=>{const C=qmarksTestNoExtDot([u]);if(!y)return C;y=y.toLowerCase();return u=>C(u)&&u.toLowerCase().endsWith(y)};const qmarksTestDot=([u,y=""])=>{const C=qmarksTestNoExtDot([u]);return!y?C:u=>C(u)&&u.endsWith(y)};const qmarksTest=([u,y=""])=>{const C=qmarksTestNoExt([u]);return!y?C:u=>C(u)&&u.endsWith(y)};const qmarksTestNoExt=([u])=>{const y=u.length;return u=>u.length===y&&!u.startsWith(".")};const qmarksTestNoExtDot=([u])=>{const y=u.length;return u=>u.length===y&&u!=="."&&u!==".."};const ht=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const pt={win32:{sep:"\\"},posix:{sep:"/"}};const gt=ht==="win32"?pt.win32.sep:pt.posix.sep;minimatch.sep=gt;const mt=Symbol("globstar **");minimatch.GLOBSTAR=mt;const yt="[^/]";const Et=yt+"*?";const Ct="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const It="(?:(?!(?:\\/|^)\\.).)*?";const esm_filter=(u,y={})=>C=>minimatch(C,u,y);minimatch.filter=esm_filter;const ext=(u,y={})=>Object.assign({},u,y);const defaults=u=>{if(!u||typeof u!=="object"||!Object.keys(u).length){return minimatch}const y=minimatch;const m=(C,D,_={})=>y(C,D,ext(u,_));return Object.assign(m,{Minimatch:class Minimatch extends y.Minimatch{constructor(y,C={}){super(y,ext(u,C))}static defaults(C){return y.defaults(ext(u,C)).Minimatch}},AST:class AST extends y.AST{constructor(y,C,D={}){super(y,C,ext(u,D))}static fromGlob(C,D={}){return y.AST.fromGlob(C,ext(u,D))}},unescape:(C,D={})=>y.unescape(C,ext(u,D)),escape:(C,D={})=>y.escape(C,ext(u,D)),filter:(C,D={})=>y.filter(C,ext(u,D)),defaults:C=>y.defaults(ext(u,C)),makeRe:(C,D={})=>y.makeRe(C,ext(u,D)),braceExpand:(C,D={})=>y.braceExpand(C,ext(u,D)),match:(C,D,_={})=>y.match(C,D,ext(u,_)),sep:y.sep,GLOBSTAR:mt})};minimatch.defaults=defaults;const braceExpand=(u,y={})=>{assertValidPattern(u);if(y.nobrace||!/\{(?:(?!\{).)*\}/.test(u)){return[u]}return expand(u)};minimatch.braceExpand=braceExpand;const makeRe=(u,y={})=>new Minimatch(u,y).makeRe();minimatch.makeRe=makeRe;const match=(u,y,C={})=>{const D=new Minimatch(y,C);u=u.filter((u=>D.match(u)));if(D.options.nonull&&!u.length){u.push(y)}return u};minimatch.match=match;const bt=/[?*]|[+@!]\(.*?\)|\[|\]/;const esm_regExpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(u,y={}){assertValidPattern(u);y=y||{};this.options=y;this.pattern=u;this.platform=y.platform||ht;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!y.windowsPathsNoEscape||y.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!y.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!y.nonegate;this.comment=false;this.empty=false;this.partial=!!y.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=y.windowsNoMagicRoot!==undefined?y.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const u of this.set){for(const y of u){if(typeof y!=="string")return true}}return false}debug(...u){}make(){const u=this.pattern;const y=this.options;if(!y.nocomment&&u.charAt(0)==="#"){this.comment=true;return}if(!u){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(y.debug){this.debug=(...u)=>console.error(...u)}this.debug(this.pattern,this.globSet);const C=this.globSet.map((u=>this.slashSplit(u)));this.globParts=this.preprocess(C);this.debug(this.pattern,this.globParts);let D=this.globParts.map(((u,y,C)=>{if(this.isWindows&&this.windowsNoMagicRoot){const y=u[0]===""&&u[1]===""&&(u[2]==="?"||!bt.test(u[2]))&&!bt.test(u[3]);const C=/^[a-z]:/i.test(u[0]);if(y){return[...u.slice(0,4),...u.slice(4).map((u=>this.parse(u)))]}else if(C){return[u[0],...u.slice(1).map((u=>this.parse(u)))]}}return u.map((u=>this.parse(u)))}));this.debug(this.pattern,D);this.set=D.filter((u=>u.indexOf(false)===-1));if(this.isWindows){for(let u=0;u<this.set.length;u++){const y=this.set[u];if(y[0]===""&&y[1]===""&&this.globParts[u][2]==="?"&&typeof y[3]==="string"&&/^[a-z]:$/i.test(y[3])){y[2]="?"}}}this.debug(this.pattern,this.set)}preprocess(u){if(this.options.noglobstar){for(let y=0;y<u.length;y++){for(let C=0;C<u[y].length;C++){if(u[y][C]==="**"){u[y][C]="*"}}}}const{optimizationLevel:y=1}=this.options;if(y>=2){u=this.firstPhasePreProcess(u);u=this.secondPhasePreProcess(u)}else if(y>=1){u=this.levelOneOptimize(u)}else{u=this.adjascentGlobstarOptimize(u)}return u}adjascentGlobstarOptimize(u){return u.map((u=>{let y=-1;while(-1!==(y=u.indexOf("**",y+1))){let C=y;while(u[C+1]==="**"){C++}if(C!==y){u.splice(y,C-y)}}return u}))}levelOneOptimize(u){return u.map((u=>{u=u.reduce(((u,y)=>{const C=u[u.length-1];if(y==="**"&&C==="**"){return u}if(y===".."){if(C&&C!==".."&&C!=="."&&C!=="**"){u.pop();return u}}u.push(y);return u}),[]);return u.length===0?[""]:u}))}levelTwoFileOptimize(u){if(!Array.isArray(u)){u=this.slashSplit(u)}let y=false;do{y=false;if(!this.preserveMultipleSlashes){for(let C=1;C<u.length-1;C++){const D=u[C];if(C===1&&D===""&&u[0]==="")continue;if(D==="."||D===""){y=true;u.splice(C,1);C--}}if(u[0]==="."&&u.length===2&&(u[1]==="."||u[1]==="")){y=true;u.pop()}}let C=0;while(-1!==(C=u.indexOf("..",C+1))){const D=u[C-1];if(D&&D!=="."&&D!==".."&&D!=="**"){y=true;u.splice(C-1,2);C-=2}}}while(y);return u.length===0?[""]:u}firstPhasePreProcess(u){let y=false;do{y=false;for(let C of u){let D=-1;while(-1!==(D=C.indexOf("**",D+1))){let _=D;while(C[_+1]==="**"){_++}if(_>D){C.splice(D+1,_-D)}let j=C[D+1];const $=C[D+2];const ne=C[D+3];if(j!=="..")continue;if(!$||$==="."||$===".."||!ne||ne==="."||ne===".."){continue}y=true;C.splice(D,1);const oe=C.slice(0);oe[D]="**";u.push(oe);D--}if(!this.preserveMultipleSlashes){for(let u=1;u<C.length-1;u++){const D=C[u];if(u===1&&D===""&&C[0]==="")continue;if(D==="."||D===""){y=true;C.splice(u,1);u--}}if(C[0]==="."&&C.length===2&&(C[1]==="."||C[1]==="")){y=true;C.pop()}}let _=0;while(-1!==(_=C.indexOf("..",_+1))){const u=C[_-1];if(u&&u!=="."&&u!==".."&&u!=="**"){y=true;const u=_===1&&C[_+1]==="**";const D=u?["."]:[];C.splice(_-1,2,...D);if(C.length===0)C.push("");_-=2}}}}while(y);return u}secondPhasePreProcess(u){for(let y=0;y<u.length-1;y++){for(let C=y+1;C<u.length;C++){const D=this.partsMatch(u[y],u[C],!this.preserveMultipleSlashes);if(D){u[y]=[];u[C]=D;break}}}return u.filter((u=>u.length))}partsMatch(u,y,C=false){let D=0;let _=0;let j=[];let $="";while(D<u.length&&_<y.length){if(u[D]===y[_]){j.push($==="b"?y[_]:u[D]);D++;_++}else if(C&&u[D]==="**"&&y[_]===u[D+1]){j.push(u[D]);D++}else if(C&&y[_]==="**"&&u[D]===y[_+1]){j.push(y[_]);_++}else if(u[D]==="*"&&y[_]&&(this.options.dot||!y[_].startsWith("."))&&y[_]!=="**"){if($==="b")return false;$="a";j.push(u[D]);D++;_++}else if(y[_]==="*"&&u[D]&&(this.options.dot||!u[D].startsWith("."))&&u[D]!=="**"){if($==="a")return false;$="b";j.push(y[_]);D++;_++}else{return false}}return u.length===y.length&&j}parseNegate(){if(this.nonegate)return;const u=this.pattern;let y=false;let C=0;for(let D=0;D<u.length&&u.charAt(D)==="!";D++){y=!y;C++}if(C)this.pattern=u.slice(C);this.negate=y}matchOne(u,y,C=false){const D=this.options;if(this.isWindows){const C=typeof u[0]==="string"&&/^[a-z]:$/i.test(u[0]);const D=!C&&u[0]===""&&u[1]===""&&u[2]==="?"&&/^[a-z]:$/i.test(u[3]);const _=typeof y[0]==="string"&&/^[a-z]:$/i.test(y[0]);const j=!_&&y[0]===""&&y[1]===""&&y[2]==="?"&&typeof y[3]==="string"&&/^[a-z]:$/i.test(y[3]);const $=D?3:C?0:undefined;const ne=j?3:_?0:undefined;if(typeof $==="number"&&typeof ne==="number"){const[C,D]=[u[$],y[ne]];if(C.toLowerCase()===D.toLowerCase()){y[ne]=C;if(ne>$){y=y.slice(ne)}else if($>ne){u=u.slice($)}}}}const{optimizationLevel:_=1}=this.options;if(_>=2){u=this.levelTwoFileOptimize(u)}this.debug("matchOne",this,{file:u,pattern:y});this.debug("matchOne",u.length,y.length);for(var j=0,$=0,ne=u.length,oe=y.length;j<ne&&$<oe;j++,$++){this.debug("matchOne loop");var le=y[$];var de=u[j];this.debug(y,le,de);if(le===false){return false}if(le===mt){this.debug("GLOBSTAR",[y,le,de]);var Ae=j;var pe=$+1;if(pe===oe){this.debug("** at the end");for(;j<ne;j++){if(u[j]==="."||u[j]===".."||!D.dot&&u[j].charAt(0)===".")return false}return true}while(Ae<ne){var Ee=u[Ae];this.debug("\nglobstar while",u,Ae,y,pe,Ee);if(this.matchOne(u.slice(Ae),y.slice(pe),C)){this.debug("globstar found match!",Ae,ne,Ee);return true}else{if(Ee==="."||Ee===".."||!D.dot&&Ee.charAt(0)==="."){this.debug("dot detected!",u,Ae,y,pe);break}this.debug("globstar swallow a segment, and continue");Ae++}}if(C){this.debug("\n>>> no match, partial?",u,Ae,y,pe);if(Ae===ne){return true}}return false}let _;if(typeof le==="string"){_=de===le;this.debug("string match",le,de,_)}else{_=le.test(de);this.debug("pattern match",le,de,_)}if(!_)return false}if(j===ne&&$===oe){return true}else if(j===ne){return C}else if($===oe){return j===ne-1&&u[j]===""}else{throw new Error("wtf?")}}braceExpand(){return braceExpand(this.pattern,this.options)}parse(u){assertValidPattern(u);const y=this.options;if(u==="**")return mt;if(u==="")return"";let C;let D=null;if(C=u.match(dt)){D=y.dot?starTestDot:starTest}else if(C=u.match(ct)){D=(y.nocase?y.dot?starDotExtTestNocaseDot:starDotExtTestNocase:y.dot?starDotExtTestDot:starDotExtTest)(C[1])}else if(C=u.match(At)){D=(y.nocase?y.dot?qmarksTestNocaseDot:qmarksTestNocase:y.dot?qmarksTestDot:qmarksTest)(C)}else if(C=u.match(ut)){D=y.dot?starDotStarTestDot:starDotStarTest}else if(C=u.match(ft)){D=dotStarTest}const _=AST.fromGlob(u,this.options).toMMPattern();if(D&&typeof _==="object"){Reflect.defineProperty(_,"test",{value:D})}return _}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const u=this.set;if(!u.length){this.regexp=false;return this.regexp}const y=this.options;const C=y.noglobstar?Et:y.dot?Ct:It;const D=new Set(y.nocase?["i"]:[]);let _=u.map((u=>{const y=u.map((u=>{if(u instanceof RegExp){for(const y of u.flags.split(""))D.add(y)}return typeof u==="string"?esm_regExpEscape(u):u===mt?mt:u._src}));y.forEach(((u,D)=>{const _=y[D+1];const j=y[D-1];if(u!==mt||j===mt){return}if(j===undefined){if(_!==undefined&&_!==mt){y[D+1]="(?:\\/|"+C+"\\/)?"+_}else{y[D]=C}}else if(_===undefined){y[D-1]=j+"(?:\\/|\\/"+C+")?"}else if(_!==mt){y[D-1]=j+"(?:\\/|\\/"+C+"\\/)"+_;y[D+1]=mt}}));const _=y.filter((u=>u!==mt));if(this.partial&&_.length>=1){const u=[];for(let y=1;y<=_.length;y++){u.push(_.slice(0,y).join("/"))}return"(?:"+u.join("|")+")"}return _.join("/")})).join("|");const[j,$]=u.length>1?["(?:",")"]:["",""];_="^"+j+_+$+"$";if(this.partial){_="^(?:\\/|"+j+_.slice(1,-1)+$+")$"}if(this.negate)_="^(?!"+_+").+$";try{this.regexp=new RegExp(_,[...D].join(""))}catch(u){this.regexp=false}return this.regexp}slashSplit(u){if(this.preserveMultipleSlashes){return u.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(u)){return["",...u.split(/\/+/)]}else{return u.split(/\/+/)}}match(u,y=this.partial){this.debug("match",u,this.pattern);if(this.comment){return false}if(this.empty){return u===""}if(u==="/"&&y){return true}const C=this.options;if(this.isWindows){u=u.split("\\").join("/")}const D=this.slashSplit(u);this.debug(this.pattern,"split",D);const _=this.set;this.debug(this.pattern,"set",_);let j=D[D.length-1];if(!j){for(let u=D.length-2;!j&&u>=0;u--){j=D[u]}}for(let u=0;u<_.length;u++){const $=_[u];let ne=D;if(C.matchBase&&$.length===1){ne=[j]}const oe=this.matchOne(ne,$,y);if(oe){if(C.flipNegate){return true}return!this.negate}}if(C.flipNegate){return false}return this.negate}static defaults(u){return minimatch.defaults(u).Minimatch}}minimatch.AST=AST;minimatch.Minimatch=Minimatch;minimatch.escape=escape_escape;minimatch.unescape=unescape_unescape;var vt=C(3136);const wt=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const Bt=new Set;const Dt=typeof process==="object"&&!!process?process:{};const emitWarning=(u,y,C,D)=>{typeof Dt.emitWarning==="function"?Dt.emitWarning(u,y,C,D):console.error(`[${C}] ${y}: ${u}`)};let St=globalThis.AbortController;let kt=globalThis.AbortSignal;if(typeof St==="undefined"){kt=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(u,y){this._onabort.push(y)}};St=class AbortController{constructor(){warnACPolyfill()}signal=new kt;abort(u){if(this.signal.aborted)return;this.signal.reason=u;this.signal.aborted=true;for(const y of this.signal._onabort){y(u)}this.signal.onabort?.(u)}};let u=Dt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!u)return;u=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=u=>!Bt.has(u);const Qt=Symbol("type");const isPosInt=u=>u&&u===Math.floor(u)&&u>0&&isFinite(u);const getUintArray=u=>!isPosInt(u)?null:u<=Math.pow(2,8)?Uint8Array:u<=Math.pow(2,16)?Uint16Array:u<=Math.pow(2,32)?Uint32Array:u<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(u){super(u);this.fill(0)}}class Stack{heap;length;static#p=false;static create(u){const y=getUintArray(u);if(!y)return[];Stack.#p=true;const C=new Stack(u,y);Stack.#p=false;return C}constructor(u,y){if(!Stack.#p){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new y(u);this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class LRUCache{#g;#m;#y;#E;#C;#I;#b;#v;get perf(){return this.#v}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#w;#B;#D;#S;#k;#Q;#x;#F;#_;#R;#L;#N;#T;#P;#O;#M;#U;#H;static unsafeExposeInternals(u){return{starts:u.#T,ttls:u.#P,sizes:u.#N,keyMap:u.#D,keyList:u.#S,valList:u.#k,next:u.#Q,prev:u.#x,get head(){return u.#F},get tail(){return u.#_},free:u.#R,isBackgroundFetch:y=>u.#G(y),backgroundFetch:(y,C,D,_)=>u.#W(y,C,D,_),moveToTail:y=>u.#j(y),indexes:y=>u.#z(y),rindexes:y=>u.#$(y),isStale:y=>u.#q(y)}}get max(){return this.#g}get maxSize(){return this.#m}get calculatedSize(){return this.#B}get size(){return this.#w}get fetchMethod(){return this.#I}get memoMethod(){return this.#b}get dispose(){return this.#y}get onInsert(){return this.#E}get disposeAfter(){return this.#C}constructor(u){const{max:y=0,ttl:C,ttlResolution:D=1,ttlAutopurge:_,updateAgeOnGet:j,updateAgeOnHas:$,allowStale:ne,dispose:oe,onInsert:le,disposeAfter:de,noDisposeOnSet:Ae,noUpdateTTL:pe,maxSize:Ee=0,maxEntrySize:Ce=0,sizeCalculation:Ie,fetchMethod:Be,memoMethod:De,noDeleteOnFetchRejection:xe,noDeleteOnStaleGet:Fe,allowStaleOnFetchRejection:_e,allowStaleOnFetchAbort:Le,ignoreFetchAbort:ze,perf:qe}=u;if(qe!==undefined){if(typeof qe?.now!=="function"){throw new TypeError("perf option must have a now() method if specified")}}this.#v=qe??wt;if(y!==0&&!isPosInt(y)){throw new TypeError("max option must be a nonnegative integer")}const Je=y?getUintArray(y):Array;if(!Je){throw new Error("invalid max value: "+y)}this.#g=y;this.#m=Ee;this.maxEntrySize=Ce||this.#m;this.sizeCalculation=Ie;if(this.sizeCalculation){if(!this.#m&&!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(De!==undefined&&typeof De!=="function"){throw new TypeError("memoMethod must be a function if defined")}this.#b=De;if(Be!==undefined&&typeof Be!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#I=Be;this.#M=!!Be;this.#D=new Map;this.#S=new Array(y).fill(undefined);this.#k=new Array(y).fill(undefined);this.#Q=new Je(y);this.#x=new Je(y);this.#F=0;this.#_=0;this.#R=Stack.create(y);this.#w=0;this.#B=0;if(typeof oe==="function"){this.#y=oe}if(typeof le==="function"){this.#E=le}if(typeof de==="function"){this.#C=de;this.#L=[]}else{this.#C=undefined;this.#L=undefined}this.#O=!!this.#y;this.#H=!!this.#E;this.#U=!!this.#C;this.noDisposeOnSet=!!Ae;this.noUpdateTTL=!!pe;this.noDeleteOnFetchRejection=!!xe;this.allowStaleOnFetchRejection=!!_e;this.allowStaleOnFetchAbort=!!Le;this.ignoreFetchAbort=!!ze;if(this.maxEntrySize!==0){if(this.#m!==0){if(!isPosInt(this.#m)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#V()}this.allowStale=!!ne;this.noDeleteOnStaleGet=!!Fe;this.updateAgeOnGet=!!j;this.updateAgeOnHas=!!$;this.ttlResolution=isPosInt(D)||D===0?D:1;this.ttlAutopurge=!!_;this.ttl=C||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#J()}if(this.#g===0&&this.ttl===0&&this.#m===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#g&&!this.#m){const u="LRU_CACHE_UNBOUNDED";if(shouldWarn(u)){Bt.add(u);const y="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(y,"UnboundedCacheWarning",u,LRUCache)}}}getRemainingTTL(u){return this.#D.has(u)?Infinity:0}#J(){const u=new ZeroArray(this.#g);const y=new ZeroArray(this.#g);this.#P=u;this.#T=y;this.#K=(C,D,_=this.#v.now())=>{y[C]=D!==0?_:0;u[C]=D;if(D!==0&&this.ttlAutopurge){const u=setTimeout((()=>{if(this.#q(C)){this.#Y(this.#S[C],"expire")}}),D+1);if(u.unref){u.unref()}}};this.#X=C=>{y[C]=u[C]!==0?this.#v.now():0};this.#Z=(D,_)=>{if(u[_]){const j=u[_];const $=y[_];if(!j||!$)return;D.ttl=j;D.start=$;D.now=C||getNow();const ne=D.now-$;D.remainingTTL=j-ne}};let C=0;const getNow=()=>{const u=this.#v.now();if(this.ttlResolution>0){C=u;const y=setTimeout((()=>C=0),this.ttlResolution);if(y.unref){y.unref()}}return u};this.getRemainingTTL=D=>{const _=this.#D.get(D);if(_===undefined){return 0}const j=u[_];const $=y[_];if(!j||!$){return Infinity}const ne=(C||getNow())-$;return j-ne};this.#q=D=>{const _=y[D];const j=u[D];return!!j&&!!_&&(C||getNow())-_>j}}#X=()=>{};#Z=()=>{};#K=()=>{};#q=()=>false;#V(){const u=new ZeroArray(this.#g);this.#B=0;this.#N=u;this.#ee=y=>{this.#B-=u[y];u[y]=0};this.#te=(u,y,C,D)=>{if(this.#G(y)){return 0}if(!isPosInt(C)){if(D){if(typeof D!=="function"){throw new TypeError("sizeCalculation must be a function")}C=D(y,u);if(!isPosInt(C)){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 C};this.#re=(y,C,D)=>{u[y]=C;if(this.#m){const C=this.#m-u[y];while(this.#B>C){this.#ne(true)}}this.#B+=u[y];if(D){D.entrySize=C;D.totalCalculatedSize=this.#B}}}#ee=u=>{};#re=(u,y,C)=>{};#te=(u,y,C,D)=>{if(C||D){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#z({allowStale:u=this.allowStale}={}){if(this.#w){for(let y=this.#_;true;){if(!this.#ie(y)){break}if(u||!this.#q(y)){yield y}if(y===this.#F){break}else{y=this.#x[y]}}}}*#$({allowStale:u=this.allowStale}={}){if(this.#w){for(let y=this.#F;true;){if(!this.#ie(y)){break}if(u||!this.#q(y)){yield y}if(y===this.#_){break}else{y=this.#Q[y]}}}}#ie(u){return u!==undefined&&this.#D.get(this.#S[u])===u}*entries(){for(const u of this.#z()){if(this.#k[u]!==undefined&&this.#S[u]!==undefined&&!this.#G(this.#k[u])){yield[this.#S[u],this.#k[u]]}}}*rentries(){for(const u of this.#$()){if(this.#k[u]!==undefined&&this.#S[u]!==undefined&&!this.#G(this.#k[u])){yield[this.#S[u],this.#k[u]]}}}*keys(){for(const u of this.#z()){const y=this.#S[u];if(y!==undefined&&!this.#G(this.#k[u])){yield y}}}*rkeys(){for(const u of this.#$()){const y=this.#S[u];if(y!==undefined&&!this.#G(this.#k[u])){yield y}}}*values(){for(const u of this.#z()){const y=this.#k[u];if(y!==undefined&&!this.#G(this.#k[u])){yield this.#k[u]}}}*rvalues(){for(const u of this.#$()){const y=this.#k[u];if(y!==undefined&&!this.#G(this.#k[u])){yield this.#k[u]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,y={}){for(const C of this.#z()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;if(u(_,this.#S[C],this)){return this.get(this.#S[C],y)}}}forEach(u,y=this){for(const C of this.#z()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.#S[C],this)}}rforEach(u,y=this){for(const C of this.#$()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.#S[C],this)}}purgeStale(){let u=false;for(const y of this.#$({allowStale:true})){if(this.#q(y)){this.#Y(this.#S[y],"expire");u=true}}return u}info(u){const y=this.#D.get(u);if(y===undefined)return undefined;const C=this.#k[y];const D=this.#G(C)?C.__staleWhileFetching:C;if(D===undefined)return undefined;const _={value:D};if(this.#P&&this.#T){const u=this.#P[y];const C=this.#T[y];if(u&&C){const y=u-(this.#v.now()-C);_.ttl=y;_.start=Date.now()}}if(this.#N){_.size=this.#N[y]}return _}dump(){const u=[];for(const y of this.#z({allowStale:true})){const C=this.#S[y];const D=this.#k[y];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined||C===undefined)continue;const j={value:_};if(this.#P&&this.#T){j.ttl=this.#P[y];const u=this.#v.now()-this.#T[y];j.start=Math.floor(Date.now()-u)}if(this.#N){j.size=this.#N[y]}u.unshift([C,j])}return u}load(u){this.clear();for(const[y,C]of u){if(C.start){const u=Date.now()-C.start;C.start=this.#v.now()-u}this.set(y,C.value,C)}}set(u,y,C={}){if(y===undefined){this.delete(u);return this}const{ttl:D=this.ttl,start:_,noDisposeOnSet:j=this.noDisposeOnSet,sizeCalculation:$=this.sizeCalculation,status:ne}=C;let{noUpdateTTL:oe=this.noUpdateTTL}=C;const le=this.#te(u,y,C.size||0,$);if(this.maxEntrySize&&le>this.maxEntrySize){if(ne){ne.set="miss";ne.maxEntrySizeExceeded=true}this.#Y(u,"set");return this}let de=this.#w===0?undefined:this.#D.get(u);if(de===undefined){de=this.#w===0?this.#_:this.#R.length!==0?this.#R.pop():this.#w===this.#g?this.#ne(false):this.#w;this.#S[de]=u;this.#k[de]=y;this.#D.set(u,de);this.#Q[this.#_]=de;this.#x[de]=this.#_;this.#_=de;this.#w++;this.#re(de,le,ne);if(ne)ne.set="add";oe=false;if(this.#H){this.#E?.(y,u,"add")}}else{this.#j(de);const C=this.#k[de];if(y!==C){if(this.#M&&this.#G(C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:y}=C;if(y!==undefined&&!j){if(this.#O){this.#y?.(y,u,"set")}if(this.#U){this.#L?.push([y,u,"set"])}}}else if(!j){if(this.#O){this.#y?.(C,u,"set")}if(this.#U){this.#L?.push([C,u,"set"])}}this.#ee(de);this.#re(de,le,ne);this.#k[de]=y;if(ne){ne.set="replace";const u=C&&this.#G(C)?C.__staleWhileFetching:C;if(u!==undefined)ne.oldValue=u}}else if(ne){ne.set="update"}if(this.#H){this.onInsert?.(y,u,y===C?"update":"replace")}}if(D!==0&&!this.#P){this.#J()}if(this.#P){if(!oe){this.#K(de,D,_)}if(ne)this.#Z(ne,de)}if(!j&&this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}return this}pop(){try{while(this.#w){const u=this.#k[this.#F];this.#ne(true);if(this.#G(u)){if(u.__staleWhileFetching){return u.__staleWhileFetching}}else if(u!==undefined){return u}}}finally{if(this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}}}#ne(u){const y=this.#F;const C=this.#S[y];const D=this.#k[y];if(this.#M&&this.#G(D)){D.__abortController.abort(new Error("evicted"))}else if(this.#O||this.#U){if(this.#O){this.#y?.(D,C,"evict")}if(this.#U){this.#L?.push([D,C,"evict"])}}this.#ee(y);if(u){this.#S[y]=undefined;this.#k[y]=undefined;this.#R.push(y)}if(this.#w===1){this.#F=this.#_=0;this.#R.length=0}else{this.#F=this.#Q[y]}this.#D.delete(C);this.#w--;return y}has(u,y={}){const{updateAgeOnHas:C=this.updateAgeOnHas,status:D}=y;const _=this.#D.get(u);if(_!==undefined){const u=this.#k[_];if(this.#G(u)&&u.__staleWhileFetching===undefined){return false}if(!this.#q(_)){if(C){this.#X(_)}if(D){D.has="hit";this.#Z(D,_)}return true}else if(D){D.has="stale";this.#Z(D,_)}}else if(D){D.has="miss"}return false}peek(u,y={}){const{allowStale:C=this.allowStale}=y;const D=this.#D.get(u);if(D===undefined||!C&&this.#q(D)){return}const _=this.#k[D];return this.#G(_)?_.__staleWhileFetching:_}#W(u,y,C,D){const _=y===undefined?undefined:this.#k[y];if(this.#G(_)){return _}const j=new St;const{signal:$}=C;$?.addEventListener("abort",(()=>j.abort($.reason)),{signal:j.signal});const ne={signal:j.signal,options:C,context:D};const cb=(D,_=false)=>{const{aborted:$}=j.signal;const le=C.ignoreFetchAbort&&D!==undefined;if(C.status){if($&&!_){C.status.fetchAborted=true;C.status.fetchError=j.signal.reason;if(le)C.status.fetchAbortIgnored=true}else{C.status.fetchResolved=true}}if($&&!le&&!_){return fetchFail(j.signal.reason)}const de=oe;const Ae=this.#k[y];if(Ae===oe||le&&_&&Ae===undefined){if(D===undefined){if(de.__staleWhileFetching!==undefined){this.#k[y]=de.__staleWhileFetching}else{this.#Y(u,"fetch")}}else{if(C.status)C.status.fetchUpdated=true;this.set(u,D,ne.options)}}return D};const eb=u=>{if(C.status){C.status.fetchRejected=true;C.status.fetchError=u}return fetchFail(u)};const fetchFail=D=>{const{aborted:_}=j.signal;const $=_&&C.allowStaleOnFetchAbort;const ne=$||C.allowStaleOnFetchRejection;const le=ne||C.noDeleteOnFetchRejection;const de=oe;if(this.#k[y]===oe){const C=!le||de.__staleWhileFetching===undefined;if(C){this.#Y(u,"fetch")}else if(!$){this.#k[y]=de.__staleWhileFetching}}if(ne){if(C.status&&de.__staleWhileFetching!==undefined){C.status.returnedStale=true}return de.__staleWhileFetching}else if(de.__returned===de){throw D}};const pcall=(y,D)=>{const $=this.#I?.(u,_,ne);if($&&$ instanceof Promise){$.then((u=>y(u===undefined?undefined:u)),D)}j.signal.addEventListener("abort",(()=>{if(!C.ignoreFetchAbort||C.allowStaleOnFetchAbort){y(undefined);if(C.allowStaleOnFetchAbort){y=u=>cb(u,true)}}}))};if(C.status)C.status.fetchDispatched=true;const oe=new Promise(pcall).then(cb,eb);const le=Object.assign(oe,{__abortController:j,__staleWhileFetching:_,__returned:undefined});if(y===undefined){this.set(u,le,{...ne.options,status:undefined});y=this.#D.get(u)}else{this.#k[y]=le}return le}#G(u){if(!this.#M)return false;const y=u;return!!y&&y instanceof Promise&&y.hasOwnProperty("__staleWhileFetching")&&y.__abortController instanceof St}async fetch(u,y={}){const{allowStale:C=this.allowStale,updateAgeOnGet:D=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,ttl:j=this.ttl,noDisposeOnSet:$=this.noDisposeOnSet,size:ne=0,sizeCalculation:oe=this.sizeCalculation,noUpdateTTL:le=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ae=this.allowStaleOnFetchRejection,ignoreFetchAbort:pe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ee=this.allowStaleOnFetchAbort,context:Ce,forceRefresh:Ie=false,status:Be,signal:De}=y;if(!this.#M){if(Be)Be.fetch="get";return this.get(u,{allowStale:C,updateAgeOnGet:D,noDeleteOnStaleGet:_,status:Be})}const xe={allowStale:C,updateAgeOnGet:D,noDeleteOnStaleGet:_,ttl:j,noDisposeOnSet:$,size:ne,sizeCalculation:oe,noUpdateTTL:le,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:Ae,allowStaleOnFetchAbort:Ee,ignoreFetchAbort:pe,status:Be,signal:De};let Fe=this.#D.get(u);if(Fe===undefined){if(Be)Be.fetch="miss";const y=this.#W(u,Fe,xe,Ce);return y.__returned=y}else{const y=this.#k[Fe];if(this.#G(y)){const u=C&&y.__staleWhileFetching!==undefined;if(Be){Be.fetch="inflight";if(u)Be.returnedStale=true}return u?y.__staleWhileFetching:y.__returned=y}const _=this.#q(Fe);if(!Ie&&!_){if(Be)Be.fetch="hit";this.#j(Fe);if(D){this.#X(Fe)}if(Be)this.#Z(Be,Fe);return y}const j=this.#W(u,Fe,xe,Ce);const $=j.__staleWhileFetching!==undefined;const ne=$&&C;if(Be){Be.fetch=_?"stale":"refresh";if(ne&&_)Be.returnedStale=true}return ne?j.__staleWhileFetching:j.__returned=j}}async forceFetch(u,y={}){const C=await this.fetch(u,y);if(C===undefined)throw new Error("fetch() returned undefined");return C}memo(u,y={}){const C=this.#b;if(!C){throw new Error("no memoMethod provided to constructor")}const{context:D,forceRefresh:_,...j}=y;const $=this.get(u,j);if(!_&&$!==undefined)return $;const ne=C(u,$,{options:j,context:D});this.set(u,ne,j);return ne}get(u,y={}){const{allowStale:C=this.allowStale,updateAgeOnGet:D=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,status:j}=y;const $=this.#D.get(u);if($!==undefined){const y=this.#k[$];const ne=this.#G(y);if(j)this.#Z(j,$);if(this.#q($)){if(j)j.get="stale";if(!ne){if(!_){this.#Y(u,"expire")}if(j&&C)j.returnedStale=true;return C?y:undefined}else{if(j&&C&&y.__staleWhileFetching!==undefined){j.returnedStale=true}return C?y.__staleWhileFetching:undefined}}else{if(j)j.get="hit";if(ne){return y.__staleWhileFetching}this.#j($);if(D){this.#X($)}return y}}else if(j){j.get="miss"}}#se(u,y){this.#x[y]=u;this.#Q[u]=y}#j(u){if(u!==this.#_){if(u===this.#F){this.#F=this.#Q[u]}else{this.#se(this.#x[u],this.#Q[u])}this.#se(this.#_,u);this.#_=u}}delete(u){return this.#Y(u,"delete")}#Y(u,y){let C=false;if(this.#w!==0){const D=this.#D.get(u);if(D!==undefined){C=true;if(this.#w===1){this.#oe(y)}else{this.#ee(D);const C=this.#k[D];if(this.#G(C)){C.__abortController.abort(new Error("deleted"))}else if(this.#O||this.#U){if(this.#O){this.#y?.(C,u,y)}if(this.#U){this.#L?.push([C,u,y])}}this.#D.delete(u);this.#S[D]=undefined;this.#k[D]=undefined;if(D===this.#_){this.#_=this.#x[D]}else if(D===this.#F){this.#F=this.#Q[D]}else{const u=this.#x[D];this.#Q[u]=this.#Q[D];const y=this.#Q[D];this.#x[y]=this.#x[D]}this.#w--;this.#R.push(D)}}}if(this.#U&&this.#L?.length){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}return C}clear(){return this.#oe("delete")}#oe(u){for(const y of this.#$({allowStale:true})){const C=this.#k[y];if(this.#G(C)){C.__abortController.abort(new Error("deleted"))}else{const D=this.#S[y];if(this.#O){this.#y?.(C,D,u)}if(this.#U){this.#L?.push([C,D,u])}}}this.#D.clear();this.#k.fill(undefined);this.#S.fill(undefined);if(this.#P&&this.#T){this.#P.fill(0);this.#T.fill(0)}if(this.#N){this.#N.fill(0)}this.#F=0;this.#_=0;this.#R.length=0;this.#B=0;this.#w=0;if(this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}}}var xt=C(6760);var Ft=C(9896);var _t=C.n(Ft);var Rt=C(3024);var Lt=C.t(Rt,2);var Nt=C(1455);var Tt=C(8474);var Pt=C(7075);const Ot=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder");const Mt=typeof process==="object"&&process?process:{stdout:null,stderr:null};const isStream=u=>!!u&&typeof u==="object"&&(u instanceof Minipass||u instanceof Pt||isReadable(u)||isWritable(u));const isReadable=u=>!!u&&typeof u==="object"&&u instanceof Tt.EventEmitter&&typeof u.pipe==="function"&&u.pipe!==Pt.Writable.prototype.pipe;const isWritable=u=>!!u&&typeof u==="object"&&u instanceof Tt.EventEmitter&&typeof u.write==="function"&&typeof u.end==="function";const Ut=Symbol("EOF");const Ht=Symbol("maybeEmitEnd");const Gt=Symbol("emittedEnd");const Wt=Symbol("emittingEnd");const jt=Symbol("emittedError");const zt=Symbol("closed");const $t=Symbol("read");const qt=Symbol("flush");const Vt=Symbol("flushChunk");const Jt=Symbol("encoding");const Kt=Symbol("decoder");const Yt=Symbol("flowing");const Xt=Symbol("paused");const Zt=Symbol("resume");const er=Symbol("buffer");const tr=Symbol("pipes");const rr=Symbol("bufferLength");const nr=Symbol("bufferPush");const ir=Symbol("bufferShift");const sr=Symbol("objectMode");const or=Symbol("destroyed");const ar=Symbol("error");const lr=Symbol("emitData");const cr=Symbol("emitEnd");const ur=Symbol("emitEnd2");const fr=Symbol("async");const dr=Symbol("abort");const Ar=Symbol("aborted");const hr=Symbol("signal");const pr=Symbol("dataListeners");const gr=Symbol("discarded");const defer=u=>Promise.resolve().then(u);const nodefer=u=>u();const isEndish=u=>u==="end"||u==="finish"||u==="prefinish";const isArrayBufferLike=u=>u instanceof ArrayBuffer||!!u&&typeof u==="object"&&u.constructor&&u.constructor.name==="ArrayBuffer"&&u.byteLength>=0;const isArrayBufferView=u=>!Buffer.isBuffer(u)&&ArrayBuffer.isView(u);class Pipe{src;dest;opts;ondrain;constructor(u,y,C){this.src=u;this.dest=y;this.opts=C;this.ondrain=()=>u[Zt]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(u){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(u,y,C){super(u,y,C);this.proxyErrors=u=>y.emit("error",u);u.on("error",this.proxyErrors)}}const isObjectModeOptions=u=>!!u.objectMode;const isEncodingOptions=u=>!u.objectMode&&!!u.encoding&&u.encoding!=="buffer";class Minipass extends Tt.EventEmitter{[Yt]=false;[Xt]=false;[tr]=[];[er]=[];[sr];[Jt];[fr];[Kt];[Ut]=false;[Gt]=false;[Wt]=false;[zt]=false;[jt]=null;[rr]=0;[or]=false;[hr];[Ar]=false;[pr]=0;[gr]=false;writable=true;readable=true;constructor(...u){const y=u[0]||{};super();if(y.objectMode&&typeof y.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(y)){this[sr]=true;this[Jt]=null}else if(isEncodingOptions(y)){this[Jt]=y.encoding;this[sr]=false}else{this[sr]=false;this[Jt]=null}this[fr]=!!y.async;this[Kt]=this[Jt]?new Ot.StringDecoder(this[Jt]):null;if(y&&y.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[er]})}if(y&&y.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[tr]})}const{signal:C}=y;if(C){this[hr]=C;if(C.aborted){this[dr]()}else{C.addEventListener("abort",(()=>this[dr]()))}}}get bufferLength(){return this[rr]}get encoding(){return this[Jt]}set encoding(u){throw new Error("Encoding must be set at instantiation time")}setEncoding(u){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[sr]}set objectMode(u){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[fr]}set["async"](u){this[fr]=this[fr]||!!u}[dr](){this[Ar]=true;this.emit("abort",this[hr]?.reason);this.destroy(this[hr]?.reason)}get aborted(){return this[Ar]}set aborted(u){}write(u,y,C){if(this[Ar])return false;if(this[Ut])throw new Error("write after end");if(this[or]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof y==="function"){C=y;y="utf8"}if(!y)y="utf8";const D=this[fr]?defer:nodefer;if(!this[sr]&&!Buffer.isBuffer(u)){if(isArrayBufferView(u)){u=Buffer.from(u.buffer,u.byteOffset,u.byteLength)}else if(isArrayBufferLike(u)){u=Buffer.from(u)}else if(typeof u!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[sr]){if(this[Yt]&&this[rr]!==0)this[qt](true);if(this[Yt])this.emit("data",u);else this[nr](u);if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}if(!u.length){if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}if(typeof u==="string"&&!(y===this[Jt]&&!this[Kt]?.lastNeed)){u=Buffer.from(u,y)}if(Buffer.isBuffer(u)&&this[Jt]){u=this[Kt].write(u)}if(this[Yt]&&this[rr]!==0)this[qt](true);if(this[Yt])this.emit("data",u);else this[nr](u);if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}read(u){if(this[or])return null;this[gr]=false;if(this[rr]===0||u===0||u&&u>this[rr]){this[Ht]();return null}if(this[sr])u=null;if(this[er].length>1&&!this[sr]){this[er]=[this[Jt]?this[er].join(""):Buffer.concat(this[er],this[rr])]}const y=this[$t](u||null,this[er][0]);this[Ht]();return y}[$t](u,y){if(this[sr])this[ir]();else{const C=y;if(u===C.length||u===null)this[ir]();else if(typeof C==="string"){this[er][0]=C.slice(u);y=C.slice(0,u);this[rr]-=u}else{this[er][0]=C.subarray(u);y=C.subarray(0,u);this[rr]-=u}}this.emit("data",y);if(!this[er].length&&!this[Ut])this.emit("drain");return y}end(u,y,C){if(typeof u==="function"){C=u;u=undefined}if(typeof y==="function"){C=y;y="utf8"}if(u!==undefined)this.write(u,y);if(C)this.once("end",C);this[Ut]=true;this.writable=false;if(this[Yt]||!this[Xt])this[Ht]();return this}[Zt](){if(this[or])return;if(!this[pr]&&!this[tr].length){this[gr]=true}this[Xt]=false;this[Yt]=true;this.emit("resume");if(this[er].length)this[qt]();else if(this[Ut])this[Ht]();else this.emit("drain")}resume(){return this[Zt]()}pause(){this[Yt]=false;this[Xt]=true;this[gr]=false}get destroyed(){return this[or]}get flowing(){return this[Yt]}get paused(){return this[Xt]}[nr](u){if(this[sr])this[rr]+=1;else this[rr]+=u.length;this[er].push(u)}[ir](){if(this[sr])this[rr]-=1;else this[rr]-=this[er][0].length;return this[er].shift()}[qt](u=false){do{}while(this[Vt](this[ir]())&&this[er].length);if(!u&&!this[er].length&&!this[Ut])this.emit("drain")}[Vt](u){this.emit("data",u);return this[Yt]}pipe(u,y){if(this[or])return u;this[gr]=false;const C=this[Gt];y=y||{};if(u===Mt.stdout||u===Mt.stderr)y.end=false;else y.end=y.end!==false;y.proxyErrors=!!y.proxyErrors;if(C){if(y.end)u.end()}else{this[tr].push(!y.proxyErrors?new Pipe(this,u,y):new PipeProxyErrors(this,u,y));if(this[fr])defer((()=>this[Zt]()));else this[Zt]()}return u}unpipe(u){const y=this[tr].find((y=>y.dest===u));if(y){if(this[tr].length===1){if(this[Yt]&&this[pr]===0){this[Yt]=false}this[tr]=[]}else this[tr].splice(this[tr].indexOf(y),1);y.unpipe()}}addListener(u,y){return this.on(u,y)}on(u,y){const C=super.on(u,y);if(u==="data"){this[gr]=false;this[pr]++;if(!this[tr].length&&!this[Yt]){this[Zt]()}}else if(u==="readable"&&this[rr]!==0){super.emit("readable")}else if(isEndish(u)&&this[Gt]){super.emit(u);this.removeAllListeners(u)}else if(u==="error"&&this[jt]){const u=y;if(this[fr])defer((()=>u.call(this,this[jt])));else u.call(this,this[jt])}return C}removeListener(u,y){return this.off(u,y)}off(u,y){const C=super.off(u,y);if(u==="data"){this[pr]=this.listeners("data").length;if(this[pr]===0&&!this[gr]&&!this[tr].length){this[Yt]=false}}return C}removeAllListeners(u){const y=super.removeAllListeners(u);if(u==="data"||u===undefined){this[pr]=0;if(!this[gr]&&!this[tr].length){this[Yt]=false}}return y}get emittedEnd(){return this[Gt]}[Ht](){if(!this[Wt]&&!this[Gt]&&!this[or]&&this[er].length===0&&this[Ut]){this[Wt]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[zt])this.emit("close");this[Wt]=false}}emit(u,...y){const C=y[0];if(u!=="error"&&u!=="close"&&u!==or&&this[or]){return false}else if(u==="data"){return!this[sr]&&!C?false:this[fr]?(defer((()=>this[lr](C))),true):this[lr](C)}else if(u==="end"){return this[cr]()}else if(u==="close"){this[zt]=true;if(!this[Gt]&&!this[or])return false;const u=super.emit("close");this.removeAllListeners("close");return u}else if(u==="error"){this[jt]=C;super.emit(ar,C);const u=!this[hr]||this.listeners("error").length?super.emit("error",C):false;this[Ht]();return u}else if(u==="resume"){const u=super.emit("resume");this[Ht]();return u}else if(u==="finish"||u==="prefinish"){const y=super.emit(u);this.removeAllListeners(u);return y}const D=super.emit(u,...y);this[Ht]();return D}[lr](u){for(const y of this[tr]){if(y.dest.write(u)===false)this.pause()}const y=this[gr]?false:super.emit("data",u);this[Ht]();return y}[cr](){if(this[Gt])return false;this[Gt]=true;this.readable=false;return this[fr]?(defer((()=>this[ur]())),true):this[ur]()}[ur](){if(this[Kt]){const u=this[Kt].end();if(u){for(const y of this[tr]){y.dest.write(u)}if(!this[gr])super.emit("data",u)}}for(const u of this[tr]){u.end()}const u=super.emit("end");this.removeAllListeners("end");return u}async collect(){const u=Object.assign([],{dataLength:0});if(!this[sr])u.dataLength=0;const y=this.promise();this.on("data",(y=>{u.push(y);if(!this[sr])u.dataLength+=y.length}));await y;return u}async concat(){if(this[sr]){throw new Error("cannot concat in objectMode")}const u=await this.collect();return this[Jt]?u.join(""):Buffer.concat(u,u.dataLength)}async promise(){return new Promise(((u,y)=>{this.on(or,(()=>y(new Error("stream destroyed"))));this.on("error",(u=>y(u)));this.on("end",(()=>u()))}))}[Symbol.asyncIterator](){this[gr]=false;let u=false;const stop=async()=>{this.pause();u=true;return{value:undefined,done:true}};const next=()=>{if(u)return stop();const y=this.read();if(y!==null)return Promise.resolve({done:false,value:y});if(this[Ut])return stop();let C;let D;const onerr=u=>{this.off("data",ondata);this.off("end",onend);this.off(or,ondestroy);stop();D(u)};const ondata=u=>{this.off("error",onerr);this.off("end",onend);this.off(or,ondestroy);this.pause();C({value:u,done:!!this[Ut]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(or,ondestroy);stop();C({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((u,y)=>{D=y;C=u;this.once(or,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[gr]=false;let u=false;const stop=()=>{this.pause();this.off(ar,stop);this.off(or,stop);this.off("end",stop);u=true;return{done:true,value:undefined}};const next=()=>{if(u)return stop();const y=this.read();return y===null?stop():{done:false,value:y}};this.once("end",stop);this.once(ar,stop);this.once(or,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(u){if(this[or]){if(u)this.emit("error",u);else this.emit(or);return this}this[or]=true;this[gr]=true;this[er].length=0;this[rr]=0;const y=this;if(typeof y.close==="function"&&!this[zt])y.close();if(u)this.emit("error",u);else this.emit(or);return this}static get isStream(){return isStream}}const mr=Ft.realpathSync.native;const yr={lstatSync:Ft.lstatSync,readdir:Ft.readdir,readdirSync:Ft.readdirSync,readlinkSync:Ft.readlinkSync,realpathSync:mr,promises:{lstat:Nt.lstat,readdir:Nt.readdir,readlink:Nt.readlink,realpath:Nt.realpath}};const fsFromOption=u=>!u||u===yr||u===Lt?yr:{...yr,...u,promises:{...yr.promises,...u.promises||{}}};const Er=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=u=>u.replace(/\//g,"\\").replace(Er,"$1\\");const Cr=/[\\\/]/;const Ir=0;const br=1;const vr=2;const wr=4;const Br=6;const Dr=8;const Sr=10;const kr=12;const Qr=15;const xr=~Qr;const Fr=16;const _r=32;const Rr=64;const Lr=128;const Nr=256;const Tr=512;const Pr=Rr|Lr|Tr;const Or=1023;const entToType=u=>u.isFile()?Dr:u.isDirectory()?wr:u.isSymbolicLink()?Sr:u.isCharacterDevice()?vr:u.isBlockDevice()?Br:u.isSocket()?kr:u.isFIFO()?br:Ir;const Mr=new LRUCache({max:2**12});const normalize=u=>{const y=Mr.get(u);if(y)return y;const C=u.normalize("NFKD");Mr.set(u,C);return C};const Ur=new LRUCache({max:2**12});const normalizeNocase=u=>{const y=Ur.get(u);if(y)return y;const C=normalize(u.toLowerCase());Ur.set(u,C);return C};class ResolveCache extends LRUCache{constructor(){super({max:256})}}class ChildrenCache extends LRUCache{constructor(u=16*1024){super({maxSize:u,sizeCalculation:u=>u.length+1})}}const Hr=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#ae;#le;get dev(){return this.#le}#ce;get mode(){return this.#ce}#ue;get nlink(){return this.#ue}#fe;get uid(){return this.#fe}#de;get gid(){return this.#de}#Ae;get rdev(){return this.#Ae}#he;get blksize(){return this.#he}#pe;get ino(){return this.#pe}#w;get size(){return this.#w}#ge;get blocks(){return this.#ge}#me;get atimeMs(){return this.#me}#ye;get mtimeMs(){return this.#ye}#Ee;get ctimeMs(){return this.#Ee}#Ce;get birthtimeMs(){return this.#Ce}#Ie;get atime(){return this.#Ie}#be;get mtime(){return this.#be}#ve;get ctime(){return this.#ve}#we;get birthtime(){return this.#we}#Be;#De;#Se;#ke;#Qe;#xe;#Fe;#_e;#Re;#Le;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(u,y=Ir,C,D,_,j,$){this.name=u;this.#Be=_?normalizeNocase(u):normalize(u);this.#Fe=y&Or;this.nocase=_;this.roots=D;this.root=C||this;this.#_e=j;this.#Se=$.fullpath;this.#Qe=$.relative;this.#xe=$.relativePosix;this.parent=$.parent;if(this.parent){this.#ae=this.parent.#ae}else{this.#ae=fsFromOption($.fs)}}depth(){if(this.#De!==undefined)return this.#De;if(!this.parent)return this.#De=0;return this.#De=this.parent.depth()+1}childrenCache(){return this.#_e}resolve(u){if(!u){return this}const y=this.getRootString(u);const C=u.substring(y.length);const D=C.split(this.splitSep);const _=y?this.getRoot(y).#Ne(D):this.#Ne(D);return _}#Ne(u){let y=this;for(const C of u){y=y.child(C)}return y}children(){const u=this.#_e.get(this);if(u){return u}const y=Object.assign([],{provisional:0});this.#_e.set(this,y);this.#Fe&=~Fr;return y}child(u,y){if(u===""||u==="."){return this}if(u===".."){return this.parent||this}const C=this.children();const D=this.nocase?normalizeNocase(u):normalize(u);for(const u of C){if(u.#Be===D){return u}}const _=this.parent?this.sep:"";const j=this.#Se?this.#Se+_+u:undefined;const $=this.newChild(u,Ir,{...y,parent:this,fullpath:j});if(!this.canReaddir()){$.#Fe|=Lr}C.push($);return $}relative(){if(this.isCWD)return"";if(this.#Qe!==undefined){return this.#Qe}const u=this.name;const y=this.parent;if(!y){return this.#Qe=this.name}const C=y.relative();return C+(!C||!y.parent?"":this.sep)+u}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#xe!==undefined)return this.#xe;const u=this.name;const y=this.parent;if(!y){return this.#xe=this.fullpathPosix()}const C=y.relativePosix();return C+(!C||!y.parent?"":"/")+u}fullpath(){if(this.#Se!==undefined){return this.#Se}const u=this.name;const y=this.parent;if(!y){return this.#Se=this.name}const C=y.fullpath();const D=C+(!y.parent?"":this.sep)+u;return this.#Se=D}fullpathPosix(){if(this.#ke!==undefined)return this.#ke;if(this.sep==="/")return this.#ke=this.fullpath();if(!this.parent){const u=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(u)){return this.#ke=`//?/${u}`}else{return this.#ke=u}}const u=this.parent;const y=u.fullpathPosix();const C=y+(!y||!u.parent?"":"/")+this.name;return this.#ke=C}isUnknown(){return(this.#Fe&Qr)===Ir}isType(u){return this[`is${u}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Fe&Qr)===Dr}isDirectory(){return(this.#Fe&Qr)===wr}isCharacterDevice(){return(this.#Fe&Qr)===vr}isBlockDevice(){return(this.#Fe&Qr)===Br}isFIFO(){return(this.#Fe&Qr)===br}isSocket(){return(this.#Fe&Qr)===kr}isSymbolicLink(){return(this.#Fe&Sr)===Sr}lstatCached(){return this.#Fe&_r?this:undefined}readlinkCached(){return this.#Re}realpathCached(){return this.#Le}readdirCached(){const u=this.children();return u.slice(0,u.provisional)}canReadlink(){if(this.#Re)return true;if(!this.parent)return false;const u=this.#Fe&Qr;return!(u!==Ir&&u!==Sr||this.#Fe&Nr||this.#Fe&Lr)}calledReaddir(){return!!(this.#Fe&Fr)}isENOENT(){return!!(this.#Fe&Lr)}isNamed(u){return!this.nocase?this.#Be===normalize(u):this.#Be===normalizeNocase(u)}async readlink(){const u=this.#Re;if(u){return u}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const u=await this.#ae.promises.readlink(this.fullpath());const y=(await this.parent.realpath())?.resolve(u);if(y){return this.#Re=y}}catch(u){this.#Te(u.code);return undefined}}readlinkSync(){const u=this.#Re;if(u){return u}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const u=this.#ae.readlinkSync(this.fullpath());const y=this.parent.realpathSync()?.resolve(u);if(y){return this.#Re=y}}catch(u){this.#Te(u.code);return undefined}}#Pe(u){this.#Fe|=Fr;for(let y=u.provisional;y<u.length;y++){const C=u[y];if(C)C.#Oe()}}#Oe(){if(this.#Fe&Lr)return;this.#Fe=(this.#Fe|Lr)&xr;this.#Me()}#Me(){const u=this.children();u.provisional=0;for(const y of u){y.#Oe()}}#Ue(){this.#Fe|=Tr;this.#He()}#He(){if(this.#Fe&Rr)return;let u=this.#Fe;if((u&Qr)===wr)u&=xr;this.#Fe=u|Rr;this.#Me()}#Ge(u=""){if(u==="ENOTDIR"||u==="EPERM"){this.#He()}else if(u==="ENOENT"){this.#Oe()}else{this.children().provisional=0}}#We(u=""){if(u==="ENOTDIR"){const u=this.parent;u.#He()}else if(u==="ENOENT"){this.#Oe()}}#Te(u=""){let y=this.#Fe;y|=Nr;if(u==="ENOENT")y|=Lr;if(u==="EINVAL"||u==="UNKNOWN"){y&=xr}this.#Fe=y;if(u==="ENOTDIR"&&this.parent){this.parent.#He()}}#je(u,y){return this.#ze(u,y)||this.#$e(u,y)}#$e(u,y){const C=entToType(u);const D=this.newChild(u.name,C,{parent:this});const _=D.#Fe&Qr;if(_!==wr&&_!==Sr&&_!==Ir){D.#Fe|=Rr}y.unshift(D);y.provisional++;return D}#ze(u,y){for(let C=y.provisional;C<y.length;C++){const D=y[C];const _=this.nocase?normalizeNocase(u.name):normalize(u.name);if(_!==D.#Be){continue}return this.#qe(u,D,C,y)}}#qe(u,y,C,D){const _=y.name;y.#Fe=y.#Fe&xr|entToType(u);if(_!==u.name)y.name=u.name;if(C!==D.provisional){if(C===D.length-1)D.pop();else D.splice(C,1);D.unshift(y)}D.provisional++;return y}async lstat(){if((this.#Fe&Lr)===0){try{this.#Ve(await this.#ae.promises.lstat(this.fullpath()));return this}catch(u){this.#We(u.code)}}}lstatSync(){if((this.#Fe&Lr)===0){try{this.#Ve(this.#ae.lstatSync(this.fullpath()));return this}catch(u){this.#We(u.code)}}}#Ve(u){const{atime:y,atimeMs:C,birthtime:D,birthtimeMs:_,blksize:j,blocks:$,ctime:ne,ctimeMs:oe,dev:le,gid:de,ino:Ae,mode:pe,mtime:Ee,mtimeMs:Ce,nlink:Ie,rdev:Be,size:De,uid:xe}=u;this.#Ie=y;this.#me=C;this.#we=D;this.#Ce=_;this.#he=j;this.#ge=$;this.#ve=ne;this.#Ee=oe;this.#le=le;this.#de=de;this.#pe=Ae;this.#ce=pe;this.#be=Ee;this.#ye=Ce;this.#ue=Ie;this.#Ae=Be;this.#w=De;this.#fe=xe;const Fe=entToType(u);this.#Fe=this.#Fe&xr|Fe|_r;if(Fe!==Ir&&Fe!==wr&&Fe!==Sr){this.#Fe|=Rr}}#Je=[];#Ke=false;#Ye(u){this.#Ke=false;const y=this.#Je.slice();this.#Je.length=0;y.forEach((y=>y(null,u)))}readdirCB(u,y=false){if(!this.canReaddir()){if(y)u(null,[]);else queueMicrotask((()=>u(null,[])));return}const C=this.children();if(this.calledReaddir()){const D=C.slice(0,C.provisional);if(y)u(null,D);else queueMicrotask((()=>u(null,D)));return}this.#Je.push(u);if(this.#Ke){return}this.#Ke=true;const D=this.fullpath();this.#ae.readdir(D,{withFileTypes:true},((u,y)=>{if(u){this.#Ge(u.code);C.provisional=0}else{for(const u of y){this.#je(u,C)}this.#Pe(C)}this.#Ye(C.slice(0,C.provisional));return}))}#Xe;async readdir(){if(!this.canReaddir()){return[]}const u=this.children();if(this.calledReaddir()){return u.slice(0,u.provisional)}const y=this.fullpath();if(this.#Xe){await this.#Xe}else{let resolve=()=>{};this.#Xe=new Promise((u=>resolve=u));try{for(const C of await this.#ae.promises.readdir(y,{withFileTypes:true})){this.#je(C,u)}this.#Pe(u)}catch(y){this.#Ge(y.code);u.provisional=0}this.#Xe=undefined;resolve()}return u.slice(0,u.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const u=this.children();if(this.calledReaddir()){return u.slice(0,u.provisional)}const y=this.fullpath();try{for(const C of this.#ae.readdirSync(y,{withFileTypes:true})){this.#je(C,u)}this.#Pe(u)}catch(y){this.#Ge(y.code);u.provisional=0}return u.slice(0,u.provisional)}canReaddir(){if(this.#Fe&Pr)return false;const u=Qr&this.#Fe;if(!(u===Ir||u===wr||u===Sr)){return false}return true}shouldWalk(u,y){return(this.#Fe&wr)===wr&&!(this.#Fe&Pr)&&!u.has(this)&&(!y||y(this))}async realpath(){if(this.#Le)return this.#Le;if((Tr|Nr|Lr)&this.#Fe)return undefined;try{const u=await this.#ae.promises.realpath(this.fullpath());return this.#Le=this.resolve(u)}catch(u){this.#Ue()}}realpathSync(){if(this.#Le)return this.#Le;if((Tr|Nr|Lr)&this.#Fe)return undefined;try{const u=this.#ae.realpathSync(this.fullpath());return this.#Le=this.resolve(u)}catch(u){this.#Ue()}}[Hr](u){if(u===this)return;u.isCWD=false;this.isCWD=true;const y=new Set([]);let C=[];let D=this;while(D&&D.parent){y.add(D);D.#Qe=C.join(this.sep);D.#xe=C.join("/");D=D.parent;C.push("..")}D=u;while(D&&D.parent&&!y.has(D)){D.#Qe=undefined;D.#xe=undefined;D=D.parent}}}class PathWin32 extends PathBase{sep="\\";splitSep=Cr;constructor(u,y=Ir,C,D,_,j,$){super(u,y,C,D,_,j,$)}newChild(u,y=Ir,C={}){return new PathWin32(u,y,this.root,this.roots,this.nocase,this.childrenCache(),C)}getRootString(u){return xt.win32.parse(u).root}getRoot(u){u=uncToDrive(u.toUpperCase());if(u===this.root.name){return this.root}for(const[y,C]of Object.entries(this.roots)){if(this.sameRoot(u,y)){return this.roots[u]=C}}return this.roots[u]=new PathScurryWin32(u,this).root}sameRoot(u,y=this.root.name){u=u.toUpperCase().replace(/\//g,"\\").replace(Er,"$1\\");return u===y}}class PathPosix extends PathBase{splitSep="/";sep="/";constructor(u,y=Ir,C,D,_,j,$){super(u,y,C,D,_,j,$)}getRootString(u){return u.startsWith("/")?"/":""}getRoot(u){return this.root}newChild(u,y=Ir,C={}){return new PathPosix(u,y,this.root,this.roots,this.nocase,this.childrenCache(),C)}}class PathScurryBase{root;rootPath;roots;cwd;#Ze;#et;#_e;nocase;#ae;constructor(u=process.cwd(),y,C,{nocase:D,childrenCacheSize:_=16*1024,fs:j=yr}={}){this.#ae=fsFromOption(j);if(u instanceof URL||u.startsWith("file://")){u=(0,vt.fileURLToPath)(u)}const $=y.resolve(u);this.roots=Object.create(null);this.rootPath=this.parseRootPath($);this.#Ze=new ResolveCache;this.#et=new ResolveCache;this.#_e=new ChildrenCache(_);const ne=$.substring(this.rootPath.length).split(C);if(ne.length===1&&!ne[0]){ne.pop()}if(D===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=D;this.root=this.newRoot(this.#ae);this.roots[this.rootPath]=this.root;let oe=this.root;let le=ne.length-1;const de=y.sep;let Ae=this.rootPath;let pe=false;for(const u of ne){const y=le--;oe=oe.child(u,{relative:new Array(y).fill("..").join(de),relativePosix:new Array(y).fill("..").join("/"),fullpath:Ae+=(pe?"":de)+u});pe=true}this.cwd=oe}depth(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.depth()}childrenCache(){return this.#_e}resolve(...u){let y="";for(let C=u.length-1;C>=0;C--){const D=u[C];if(!D||D===".")continue;y=y?`${D}/${y}`:D;if(this.isAbsolute(D)){break}}const C=this.#Ze.get(y);if(C!==undefined){return C}const D=this.cwd.resolve(y).fullpath();this.#Ze.set(y,D);return D}resolvePosix(...u){let y="";for(let C=u.length-1;C>=0;C--){const D=u[C];if(!D||D===".")continue;y=y?`${D}/${y}`:D;if(this.isAbsolute(D)){break}}const C=this.#et.get(y);if(C!==undefined){return C}const D=this.cwd.resolve(y).fullpathPosix();this.#et.set(y,D);return D}relative(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.relative()}relativePosix(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.relativePosix()}basename(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.name}dirname(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return(u.parent||u).fullpath()}async readdir(u=this.cwd,y={withFileTypes:true}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C}=y;if(!u.canReaddir()){return[]}else{const y=await u.readdir();return C?y:y.map((u=>u.name))}}readdirSync(u=this.cwd,y={withFileTypes:true}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true}=y;if(!u.canReaddir()){return[]}else if(C){return u.readdirSync()}else{return u.readdirSync().map((u=>u.name))}}async lstat(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.lstat()}lstatSync(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.lstatSync()}async readlink(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=await u.readlink();return y?C:C?.fullpath()}readlinkSync(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=u.readlinkSync();return y?C:C?.fullpath()}async realpath(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=await u.realpath();return y?C:C?.fullpath()}realpathSync(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=u.realpathSync();return y?C:C?.fullpath()}async walk(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=[];if(!_||_(u)){$.push(C?u:u.fullpath())}const ne=new Set;const walk=(u,y)=>{ne.add(u);u.readdirCB(((u,oe)=>{if(u){return y(u)}let le=oe.length;if(!le)return y();const next=()=>{if(--le===0){y()}};for(const u of oe){if(!_||_(u)){$.push(C?u:u.fullpath())}if(D&&u.isSymbolicLink()){u.realpath().then((u=>u?.isUnknown()?u.lstat():u)).then((u=>u?.shouldWalk(ne,j)?walk(u,next):next()))}else{if(u.shouldWalk(ne,j)){walk(u,next)}else{next()}}}}),true)};const oe=u;return new Promise(((u,y)=>{walk(oe,(C=>{if(C)return y(C);u($)}))}))}walkSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=[];if(!_||_(u)){$.push(C?u:u.fullpath())}const ne=new Set([u]);for(const u of ne){const y=u.readdirSync();for(const u of y){if(!_||_(u)){$.push(C?u:u.fullpath())}let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk(ne,j)){ne.add(y)}}}return $}[Symbol.asyncIterator](){return this.iterate()}iterate(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}return this.stream(u,y)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;if(!_||_(u)){yield C?u:u.fullpath()}const $=new Set([u]);for(const u of $){const y=u.readdirSync();for(const u of y){if(!_||_(u)){yield C?u:u.fullpath()}let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk($,j)){$.add(y)}}}}stream(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=new Minipass({objectMode:true});if(!_||_(u)){$.write(C?u:u.fullpath())}const ne=new Set;const oe=[u];let le=0;const process=()=>{let u=false;while(!u){const y=oe.shift();if(!y){if(le===0)$.end();return}le++;ne.add(y);const onReaddir=(y,Ae,pe=false)=>{if(y)return $.emit("error",y);if(D&&!pe){const u=[];for(const y of Ae){if(y.isSymbolicLink()){u.push(y.realpath().then((u=>u?.isUnknown()?u.lstat():u)))}}if(u.length){Promise.all(u).then((()=>onReaddir(null,Ae,true)));return}}for(const y of Ae){if(y&&(!_||_(y))){if(!$.write(C?y:y.fullpath())){u=true}}}le--;for(const u of Ae){const y=u.realpathCached()||u;if(y.shouldWalk(ne,j)){oe.push(y)}}if(u&&!$.flowing){$.once("drain",process)}else if(!de){process()}};let de=true;y.readdirCB(onReaddir,true);de=false}};process();return $}streamSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=new Minipass({objectMode:true});const ne=new Set;if(!_||_(u)){$.write(C?u:u.fullpath())}const oe=[u];let le=0;const process=()=>{let u=false;while(!u){const y=oe.shift();if(!y){if(le===0)$.end();return}le++;ne.add(y);const de=y.readdirSync();for(const y of de){if(!_||_(y)){if(!$.write(C?y:y.fullpath())){u=true}}}le--;for(const u of de){let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk(ne,j)){oe.push(y)}}}if(u&&!$.flowing)$.once("drain",process)};process();return $}chdir(u=this.cwd){const y=this.cwd;this.cwd=typeof u==="string"?this.cwd.resolve(u):u;this.cwd[Hr](y)}}class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(u=process.cwd(),y={}){const{nocase:C=true}=y;super(u,xt.win32,"\\",{...y,nocase:C});this.nocase=C;for(let u=this.cwd;u;u=u.parent){u.nocase=this.nocase}}parseRootPath(u){return xt.win32.parse(u).root.toUpperCase()}newRoot(u){return new PathWin32(this.rootPath,wr,undefined,this.roots,this.nocase,this.childrenCache(),{fs:u})}isAbsolute(u){return u.startsWith("/")||u.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(u)}}class PathScurryPosix extends PathScurryBase{sep="/";constructor(u=process.cwd(),y={}){const{nocase:C=false}=y;super(u,xt.posix,"/",{...y,nocase:C});this.nocase=C}parseRootPath(u){return"/"}newRoot(u){return new PathPosix(this.rootPath,wr,undefined,this.roots,this.nocase,this.childrenCache(),{fs:u})}isAbsolute(u){return u.startsWith("/")}}class PathScurryDarwin extends PathScurryPosix{constructor(u=process.cwd(),y={}){const{nocase:C=true}=y;super(u,{...y,nocase:C})}}const Gr=process.platform==="win32"?PathWin32:PathPosix;const Wr=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix;const isPatternList=u=>u.length>=1;const isGlobList=u=>u.length>=1;class Pattern{#tt;#rt;#nt;length;#it;#st;#ot;#at;#lt;#ct;#ut=true;constructor(u,y,C,D){if(!isPatternList(u)){throw new TypeError("empty pattern list")}if(!isGlobList(y)){throw new TypeError("empty glob list")}if(y.length!==u.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=u.length;if(C<0||C>=this.length){throw new TypeError("index out of range")}this.#tt=u;this.#rt=y;this.#nt=C;this.#it=D;if(this.#nt===0){if(this.isUNC()){const[u,y,C,D,..._]=this.#tt;const[j,$,ne,oe,...le]=this.#rt;if(_[0]===""){_.shift();le.shift()}const de=[u,y,C,D,""].join("/");const Ae=[j,$,ne,oe,""].join("/");this.#tt=[de,..._];this.#rt=[Ae,...le];this.length=this.#tt.length}else if(this.isDrive()||this.isAbsolute()){const[u,...y]=this.#tt;const[C,...D]=this.#rt;if(y[0]===""){y.shift();D.shift()}const _=u+"/";const j=C+"/";this.#tt=[_,...y];this.#rt=[j,...D];this.length=this.#tt.length}}}pattern(){return this.#tt[this.#nt]}isString(){return typeof this.#tt[this.#nt]==="string"}isGlobstar(){return this.#tt[this.#nt]===mt}isRegExp(){return this.#tt[this.#nt]instanceof RegExp}globString(){return this.#ot=this.#ot||(this.#nt===0?this.isAbsolute()?this.#rt[0]+this.#rt.slice(1).join("/"):this.#rt.join("/"):this.#rt.slice(this.#nt).join("/"))}hasMore(){return this.length>this.#nt+1}rest(){if(this.#st!==undefined)return this.#st;if(!this.hasMore())return this.#st=null;this.#st=new Pattern(this.#tt,this.#rt,this.#nt+1,this.#it);this.#st.#ct=this.#ct;this.#st.#lt=this.#lt;this.#st.#at=this.#at;return this.#st}isUNC(){const u=this.#tt;return this.#lt!==undefined?this.#lt:this.#lt=this.#it==="win32"&&this.#nt===0&&u[0]===""&&u[1]===""&&typeof u[2]==="string"&&!!u[2]&&typeof u[3]==="string"&&!!u[3]}isDrive(){const u=this.#tt;return this.#at!==undefined?this.#at:this.#at=this.#it==="win32"&&this.#nt===0&&this.length>1&&typeof u[0]==="string"&&/^[a-z]:$/i.test(u[0])}isAbsolute(){const u=this.#tt;return this.#ct!==undefined?this.#ct:this.#ct=u[0]===""&&u.length>1||this.isDrive()||this.isUNC()}root(){const u=this.#tt[0];return typeof u==="string"&&this.isAbsolute()&&this.#nt===0?u:""}checkFollowGlobstar(){return!(this.#nt===0||!this.isGlobstar()||!this.#ut)}markFollowGlobstar(){if(this.#nt===0||!this.isGlobstar()||!this.#ut)return false;this.#ut=false;return true}}const jr=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(u,{nobrace:y,nocase:C,noext:D,noglobstar:_,platform:j=jr}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=j;this.mmopts={dot:true,nobrace:y,nocase:C,noext:D,noglobstar:_,optimizationLevel:2,platform:j,nocomment:true,nonegate:true};for(const y of u)this.add(y)}add(u){const y=new Minimatch(u,this.mmopts);for(let u=0;u<y.set.length;u++){const C=y.set[u];const D=y.globParts[u];if(!C||!D){throw new Error("invalid pattern object")}while(C[0]==="."&&D[0]==="."){C.shift();D.shift()}const _=new Pattern(C,D,0,this.platform);const j=new Minimatch(_.globString(),this.mmopts);const $=D[D.length-1]==="**";const ne=_.isAbsolute();if(ne)this.absolute.push(j);else this.relative.push(j);if($){if(ne)this.absoluteChildren.push(j);else this.relativeChildren.push(j)}}}ignored(u){const y=u.fullpath();const C=`${y}/`;const D=u.relative()||".";const _=`${D}/`;for(const u of this.relative){if(u.match(D)||u.match(_))return true}for(const u of this.absolute){if(u.match(y)||u.match(C))return true}return false}childrenIgnored(u){const y=u.fullpath()+"/";const C=(u.relative()||".")+"/";for(const u of this.relativeChildren){if(u.match(C))return true}for(const u of this.absoluteChildren){if(u.match(y))return true}return false}}class HasWalkedCache{store;constructor(u=new Map){this.store=u}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(u,y){return this.store.get(u.fullpath())?.has(y.globString())}storeWalked(u,y){const C=u.fullpath();const D=this.store.get(C);if(D)D.add(y.globString());else this.store.set(C,new Set([y.globString()]))}}class MatchRecord{store=new Map;add(u,y,C){const D=(y?2:0)|(C?1:0);const _=this.store.get(u);this.store.set(u,_===undefined?D:D&_)}entries(){return[...this.store.entries()].map((([u,y])=>[u,!!(y&2),!!(y&1)]))}}class SubWalks{store=new Map;add(u,y){if(!u.canReaddir()){return}const C=this.store.get(u);if(C){if(!C.find((u=>u.globString()===y.globString()))){C.push(y)}}else this.store.set(u,[y])}get(u){const y=this.store.get(u);if(!y){throw new Error("attempting to walk unknown path")}return y}entries(){return this.keys().map((u=>[u,this.store.get(u)]))}keys(){return[...this.store.keys()].filter((u=>u.canReaddir()))}}class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(u,y){this.opts=u;this.follow=!!u.follow;this.dot=!!u.dot;this.hasWalkedCache=y?y.copy():new HasWalkedCache}processPatterns(u,y){this.patterns=y;const C=y.map((y=>[u,y]));for(let[u,y]of C){this.hasWalkedCache.storeWalked(u,y);const C=y.root();const D=y.isAbsolute()&&this.opts.absolute!==false;if(C){u=u.resolve(C==="/"&&this.opts.root!==undefined?this.opts.root:C);const D=y.rest();if(!D){this.matches.add(u,true,false);continue}else{y=D}}if(u.isENOENT())continue;let _;let j;let $=false;while(typeof(_=y.pattern())==="string"&&(j=y.rest())){const C=u.resolve(_);u=C;y=j;$=true}_=y.pattern();j=y.rest();if($){if(this.hasWalkedCache.hasWalked(u,y))continue;this.hasWalkedCache.storeWalked(u,y)}if(typeof _==="string"){const y=_===".."||_===""||_===".";this.matches.add(u.resolve(_),D,y);continue}else if(_===mt){if(!u.isSymbolicLink()||this.follow||y.checkFollowGlobstar()){this.subwalks.add(u,y)}const C=j?.pattern();const _=j?.rest();if(!j||(C===""||C===".")&&!_){this.matches.add(u,D,C===""||C===".")}else{if(C===".."){const y=u.parent||u;if(!_)this.matches.add(y,D,true);else if(!this.hasWalkedCache.hasWalked(y,_)){this.subwalks.add(y,_)}}}}else if(_ instanceof RegExp){this.subwalks.add(u,y)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(u,y){const C=this.subwalks.get(u);const D=this.child();for(const u of y){for(const y of C){const C=y.isAbsolute();const _=y.pattern();const j=y.rest();if(_===mt){D.testGlobstar(u,y,j,C)}else if(_ instanceof RegExp){D.testRegExp(u,_,j,C)}else{D.testString(u,_,j,C)}}}return D}testGlobstar(u,y,C,D){if(this.dot||!u.name.startsWith(".")){if(!y.hasMore()){this.matches.add(u,D,false)}if(u.canReaddir()){if(this.follow||!u.isSymbolicLink()){this.subwalks.add(u,y)}else if(u.isSymbolicLink()){if(C&&y.checkFollowGlobstar()){this.subwalks.add(u,C)}else if(y.markFollowGlobstar()){this.subwalks.add(u,y)}}}}if(C){const y=C.pattern();if(typeof y==="string"&&y!==".."&&y!==""&&y!=="."){this.testString(u,y,C.rest(),D)}else if(y===".."){const y=u.parent||u;this.subwalks.add(y,C)}else if(y instanceof RegExp){this.testRegExp(u,y,C.rest(),D)}}}testRegExp(u,y,C,D){if(!y.test(u.name))return;if(!C){this.matches.add(u,D,false)}else{this.subwalks.add(u,C)}}testString(u,y,C,D){if(!u.isNamed(y))return;if(!C){this.matches.add(u,D,false)}else{this.subwalks.add(u,C)}}}const makeIgnore=(u,y)=>typeof u==="string"?new Ignore([u],y):Array.isArray(u)?new Ignore(u,y):u;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#ft=[];#dt;#At;signal;maxDepth;includeChildMatches;constructor(u,y,C){this.patterns=u;this.path=y;this.opts=C;this.#At=!C.posix&&C.platform==="win32"?"\\":"/";this.includeChildMatches=C.includeChildMatches!==false;if(C.ignore||!this.includeChildMatches){this.#dt=makeIgnore(C.ignore??[],C);if(!this.includeChildMatches&&typeof this.#dt.add!=="function"){const u="cannot ignore child matches, ignore lacks add() method.";throw new Error(u)}}this.maxDepth=C.maxDepth||Infinity;if(C.signal){this.signal=C.signal;this.signal.addEventListener("abort",(()=>{this.#ft.length=0}))}}#ht(u){return this.seen.has(u)||!!this.#dt?.ignored?.(u)}#pt(u){return!!this.#dt?.childrenIgnored?.(u)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let u=undefined;while(!this.paused&&(u=this.#ft.shift())){u()}}onResume(u){if(this.signal?.aborted)return;if(!this.paused){u()}else{this.#ft.push(u)}}async matchCheck(u,y){if(y&&this.opts.nodir)return undefined;let C;if(this.opts.realpath){C=u.realpathCached()||await u.realpath();if(!C)return undefined;u=C}const D=u.isUnknown()||this.opts.stat;const _=D?await u.lstat():u;if(this.opts.follow&&this.opts.nodir&&_?.isSymbolicLink()){const u=await _.realpath();if(u&&(u.isUnknown()||this.opts.stat)){await u.lstat()}}return this.matchCheckTest(_,y)}matchCheckTest(u,y){return u&&(this.maxDepth===Infinity||u.depth()<=this.maxDepth)&&(!y||u.canReaddir())&&(!this.opts.nodir||!u.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!u.isSymbolicLink()||!u.realpathCached()?.isDirectory())&&!this.#ht(u)?u:undefined}matchCheckSync(u,y){if(y&&this.opts.nodir)return undefined;let C;if(this.opts.realpath){C=u.realpathCached()||u.realpathSync();if(!C)return undefined;u=C}const D=u.isUnknown()||this.opts.stat;const _=D?u.lstatSync():u;if(this.opts.follow&&this.opts.nodir&&_?.isSymbolicLink()){const u=_.realpathSync();if(u&&(u?.isUnknown()||this.opts.stat)){u.lstatSync()}}return this.matchCheckTest(_,y)}matchFinish(u,y){if(this.#ht(u))return;if(!this.includeChildMatches&&this.#dt?.add){const y=`${u.relativePosix()}/**`;this.#dt.add(y)}const C=this.opts.absolute===undefined?y:this.opts.absolute;this.seen.add(u);const D=this.opts.mark&&u.isDirectory()?this.#At:"";if(this.opts.withFileTypes){this.matchEmit(u)}else if(C){const y=this.opts.posix?u.fullpathPosix():u.fullpath();this.matchEmit(y+D)}else{const y=this.opts.posix?u.relativePosix():u.relative();const C=this.opts.dotRelative&&!y.startsWith(".."+this.#At)?"."+this.#At:"";this.matchEmit(!y?"."+D:C+y+D)}}async match(u,y,C){const D=await this.matchCheck(u,C);if(D)this.matchFinish(D,y)}matchSync(u,y,C){const D=this.matchCheckSync(u,C);if(D)this.matchFinish(D,y)}walkCB(u,y,C){if(this.signal?.aborted)C();this.walkCB2(u,y,new Processor(this.opts),C)}walkCB2(u,y,C,D){if(this.#pt(u))return D();if(this.signal?.aborted)D();if(this.paused){this.onResume((()=>this.walkCB2(u,y,C,D)));return}C.processPatterns(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;_++;this.match(u,y,D).then((()=>next()))}for(const u of C.subwalkTargets()){if(this.maxDepth!==Infinity&&u.depth()>=this.maxDepth){continue}_++;const y=u.readdirCached();if(u.calledReaddir())this.walkCB3(u,y,C,next);else{u.readdirCB(((y,D)=>this.walkCB3(u,D,C,next)),true)}}next()}walkCB3(u,y,C,D){C=C.filterEntries(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;_++;this.match(u,y,D).then((()=>next()))}for(const[u,y]of C.subwalks.entries()){_++;this.walkCB2(u,y,C.child(),next)}next()}walkCBSync(u,y,C){if(this.signal?.aborted)C();this.walkCB2Sync(u,y,new Processor(this.opts),C)}walkCB2Sync(u,y,C,D){if(this.#pt(u))return D();if(this.signal?.aborted)D();if(this.paused){this.onResume((()=>this.walkCB2Sync(u,y,C,D)));return}C.processPatterns(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;this.matchSync(u,y,D)}for(const u of C.subwalkTargets()){if(this.maxDepth!==Infinity&&u.depth()>=this.maxDepth){continue}_++;const y=u.readdirSync();this.walkCB3Sync(u,y,C,next)}next()}walkCB3Sync(u,y,C,D){C=C.filterEntries(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;this.matchSync(u,y,D)}for(const[u,y]of C.subwalks.entries()){_++;this.walkCB2Sync(u,y,C.child(),next)}next()}}class GlobWalker extends GlobUtil{matches=new Set;constructor(u,y,C){super(u,y,C)}matchEmit(u){this.matches.add(u)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((u,y)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){y(this.signal.reason)}else{u(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}class GlobStream extends GlobUtil{results;constructor(u,y,C){super(u,y,C);this.results=new Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(u){this.results.write(u);if(!this.results.flowing)this.pause()}stream(){const u=this.path;if(u.isUnknown()){u.lstat().then((()=>{this.walkCB(u,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(u,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}const zr=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(u,y){if(!y)throw new TypeError("glob options required");this.withFileTypes=!!y.withFileTypes;this.signal=y.signal;this.follow=!!y.follow;this.dot=!!y.dot;this.dotRelative=!!y.dotRelative;this.nodir=!!y.nodir;this.mark=!!y.mark;if(!y.cwd){this.cwd=""}else if(y.cwd instanceof URL||y.cwd.startsWith("file://")){y.cwd=(0,vt.fileURLToPath)(y.cwd)}this.cwd=y.cwd||"";this.root=y.root;this.magicalBraces=!!y.magicalBraces;this.nobrace=!!y.nobrace;this.noext=!!y.noext;this.realpath=!!y.realpath;this.absolute=y.absolute;this.includeChildMatches=y.includeChildMatches!==false;this.noglobstar=!!y.noglobstar;this.matchBase=!!y.matchBase;this.maxDepth=typeof y.maxDepth==="number"?y.maxDepth:Infinity;this.stat=!!y.stat;this.ignore=y.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof u==="string"){u=[u]}this.windowsPathsNoEscape=!!y.windowsPathsNoEscape||y.allowWindowsEscape===false;if(this.windowsPathsNoEscape){u=u.map((u=>u.replace(/\\/g,"/")))}if(this.matchBase){if(y.noglobstar){throw new TypeError("base matching requires globstar")}u=u.map((u=>u.includes("/")?u:`./**/${u}`))}this.pattern=u;this.platform=y.platform||zr;this.opts={...y,platform:this.platform};if(y.scurry){this.scurry=y.scurry;if(y.nocase!==undefined&&y.nocase!==y.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const u=y.platform==="win32"?PathScurryWin32:y.platform==="darwin"?PathScurryDarwin:y.platform?PathScurryPosix:Wr;this.scurry=new u(this.cwd,{nocase:y.nocase,fs:y.fs})}this.nocase=this.scurry.nocase;const C=this.platform==="darwin"||this.platform==="win32";const D={...y,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:C,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const _=this.pattern.map((u=>new Minimatch(u,D)));const[j,$]=_.reduce(((u,y)=>{u[0].push(...y.set);u[1].push(...y.globParts);return u}),[[],[]]);this.patterns=j.map(((u,y)=>{const C=$[y];if(!C)throw new Error("invalid pattern object");return new Pattern(u,C,0,this.platform)}))}async walk(){return[...await new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}const hasMagic=(u,y={})=>{if(!Array.isArray(u)){u=[u]}for(const C of u){if(new Minimatch(C,y).hasMagic())return true}return false};function globStreamSync(u,y={}){return new Glob(u,y).streamSync()}function globStream(u,y={}){return new Glob(u,y).stream()}function globSync(u,y={}){return new Glob(u,y).walkSync()}async function glob_(u,y={}){return new Glob(u,y).walk()}function globIterateSync(u,y={}){return new Glob(u,y).iterateSync()}function globIterate(u,y={}){return new Glob(u,y).iterate()}const $r=globStreamSync;const qr=Object.assign(globStream,{sync:globStreamSync});const Vr=globIterateSync;const Jr=Object.assign(globIterate,{sync:globIterateSync});const Kr=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});const Yr=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:Kr,globStream:globStream,stream:qr,globStreamSync:globStreamSync,streamSync:$r,globIterate:globIterate,iterate:Jr,globIterateSync:globIterateSync,iterateSync:Vr,Glob:Glob,hasMagic:hasMagic,escape:escape_escape,unescape:unescape_unescape});Yr.glob=Yr;const FindFiles=async u=>{const{pattern:y,dir_path:D=".",case_sensitive:_=false,ignore:j=[]}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,D);let le=[];try{const u=C.ab+"cli_executor/"+oe.$.WORKSPACE_DIR+"/.gitignore";const y=await(0,ne.readFile)(u,"utf-8");le=y.split("\n").filter((u=>u.trim()&&!u.trim().startsWith("#"))).map((u=>u.trim())).map((u=>u.endsWith("/")?`${u}**`:u)).filter((u=>!u.startsWith(".codegen")))}catch(u){}const de=[...j,...le];const Ae=await Yr(y,{cwd:u,absolute:true,stat:true,nocase:!_,ignore:de});const pe=await Promise.all(Ae.map((async u=>{const y=await(0,ne.stat)(u);return{file:u,mtime:y.mtime}})));pe.sort(((u,y)=>y.mtime.getTime()-u.mtime.getTime()));return{files:pe.map((u=>u.file))}}catch(u){return{error:u.message}}};var Xr=C(5317);const Zr=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");var en=C.n(Zr);const normalizeLine=u=>{if(u.startsWith("Error: ")){return u.slice("Error: ".length)}if(u.startsWith("VError: ")){return u.slice("VError: ".length)}return u};const getCombinedMessage=(u,y)=>{const C=normalizeLine(`${u}`);if(y){return`${y}: ${C}`}return C};const tn="\n";const getNewLineIndex=(u,y=undefined)=>u.indexOf(tn,y);const mergeStacks=(u,y)=>{if(!y){return u}const C=getNewLineIndex(u);const D=getNewLineIndex(y);if(D===-1){return u}const _=u.slice(0,C);const j=y.slice(D);const $=normalizeLine(y.slice(0,D));if(_.includes($)){return _+j}return y};class VError extends Error{constructor(u,y){const C=getCombinedMessage(u,y);super(C);this.name="VError";if(u instanceof Error){this.stack=mergeStacks(this.stack,u.stack)}if(u.codeFrame){this.codeFrame=u.codeFrame}if(u.code){this.code=u.code}}}function isPlainObject(u){if(typeof u!=="object"||u===null){return false}const y=Object.getPrototypeOf(u);return(y===null||y===Object.prototype||Object.getPrototypeOf(y)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)}const safeNormalizeFileUrl=(u,y)=>{const C=normalizeFileUrl(normalizeDenoExecPath(u));if(typeof C!=="string"){throw new TypeError(`${y} must be a string or a file URL: ${C}.`)}return C};const normalizeDenoExecPath=u=>isDenoExecPath(u)?u.toString():u;const isDenoExecPath=u=>typeof u!=="string"&&u&&Object.getPrototypeOf(u)===String.prototype;const normalizeFileUrl=u=>u instanceof URL?(0,vt.fileURLToPath)(u):u;const normalizeParameters=(u,y=[],C={})=>{const D=safeNormalizeFileUrl(u,"First argument");const[_,j]=isPlainObject(y)?[[],y]:[y,C];if(!Array.isArray(_)){throw new TypeError(`Second argument must be either an array of arguments or an options object: ${_}`)}if(_.some((u=>typeof u==="object"&&u!==null))){throw new TypeError(`Second argument must be an array of strings: ${_}`)}const $=_.map(String);const ne=$.find((u=>u.includes("\0")));if(ne!==undefined){throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${ne}`)}if(!isPlainObject(j)){throw new TypeError(`Last argument must be an options object: ${j}`)}return[D,$,j]};const rn=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");const{toString:nn}=Object.prototype;const isArrayBuffer=u=>nn.call(u)==="[object ArrayBuffer]";const isUint8Array=u=>nn.call(u)==="[object Uint8Array]";const bufferToUint8Array=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const sn=new TextEncoder;const stringToUint8Array=u=>sn.encode(u);const on=new TextDecoder;const uint8ArrayToString=u=>on.decode(u);const joinToString=(u,y)=>{const C=uint8ArraysToStrings(u,y);return C.join("")};const uint8ArraysToStrings=(u,y)=>{if(y==="utf8"&&u.every((u=>typeof u==="string"))){return u}const C=new Ot.StringDecoder(y);const D=u.map((u=>typeof u==="string"?stringToUint8Array(u):u)).map((u=>C.write(u)));const _=C.end();return _===""?D:[...D,_]};const joinToUint8Array=u=>{if(u.length===1&&isUint8Array(u[0])){return u[0]}return concatUint8Arrays(stringsToUint8Arrays(u))};const stringsToUint8Arrays=u=>u.map((u=>typeof u==="string"?stringToUint8Array(u):u));const concatUint8Arrays=u=>{const y=new Uint8Array(getJoinLength(u));let C=0;for(const D of u){y.set(D,C);C+=D.length}return y};const getJoinLength=u=>{let y=0;for(const C of u){y+=C.length}return y};const isTemplateString=u=>Array.isArray(u)&&Array.isArray(u.raw);const parseTemplates=(u,y)=>{let C=[];for(const[D,_]of u.entries()){C=parseTemplate({templates:u,expressions:y,tokens:C,index:D,template:_})}if(C.length===0){throw new TypeError("Template script must not be empty")}const[D,..._]=C;return[D,_,{}]};const parseTemplate=({templates:u,expressions:y,tokens:C,index:D,template:_})=>{if(_===undefined){throw new TypeError(`Invalid backslash sequence: ${u.raw[D]}`)}const{nextTokens:j,leadingWhitespaces:$,trailingWhitespaces:ne}=splitByWhitespaces(_,u.raw[D]);const oe=concatTokens(C,j,$);if(D===y.length){return oe}const le=y[D];const de=Array.isArray(le)?le.map((u=>parseExpression(u))):[parseExpression(le)];return concatTokens(oe,de,ne)};const splitByWhitespaces=(u,y)=>{if(y.length===0){return{nextTokens:[],leadingWhitespaces:false,trailingWhitespaces:false}}const C=[];let D=0;const _=an.has(y[0]);for(let _=0,j=0;_<u.length;_+=1,j+=1){const $=y[j];if(an.has($)){if(D!==_){C.push(u.slice(D,_))}D=_+1}else if($==="\\"){const u=y[j+1];if(u==="\n"){_-=1;j+=1}else if(u==="u"&&y[j+2]==="{"){j=y.indexOf("}",j+3)}else{j+=ln[u]??1}}}const j=D===u.length;if(!j){C.push(u.slice(D))}return{nextTokens:C,leadingWhitespaces:_,trailingWhitespaces:j}};const an=new Set([" ","\t","\r","\n"]);const ln={x:3,u:5};const concatTokens=(u,y,C)=>C||u.length===0||y.length===0?[...u,...y]:[...u.slice(0,-1),`${u.at(-1)}${y[0]}`,...y.slice(1)];const parseExpression=u=>{const y=typeof u;if(y==="string"){return u}if(y==="number"){return String(u)}if(isPlainObject(u)&&("stdout"in u||"isMaxBuffer"in u)){return getSubprocessResult(u)}if(u instanceof rn.ChildProcess||Object.prototype.toString.call(u)==="[object Promise]"){throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.")}throw new TypeError(`Unexpected "${y}" in template expression`)};const getSubprocessResult=({stdout:u})=>{if(typeof u==="string"){return u}if(isUint8Array(u)){return uint8ArrayToString(u)}if(u===undefined){throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.')}throw new TypeError(`Unexpected "${typeof u}" stdout in template expression`)};const cn=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util");var un=C(1708);const isStandardStream=u=>fn.includes(u);const fn=[un.stdin,un.stdout,un.stderr];const dn=["stdin","stdout","stderr"];const getStreamName=u=>dn[u]??`stdio[${u}]`;const normalizeFdSpecificOptions=u=>{const y={...u};for(const C of gn){y[C]=normalizeFdSpecificOption(u,C)}return y};const normalizeFdSpecificOption=(u,y)=>{const C=Array.from({length:getStdioLength(u)+1});const D=normalizeFdSpecificValue(u[y],C,y);return addDefaultValue(D,y)};const getStdioLength=({stdio:u})=>Array.isArray(u)?Math.max(u.length,dn.length):dn.length;const normalizeFdSpecificValue=(u,y,C)=>isPlainObject(u)?normalizeOptionObject(u,y,C):y.fill(u);const normalizeOptionObject=(u,y,C)=>{for(const D of Object.keys(u).sort(compareFdName)){for(const _ of parseFdName(D,C,y)){y[_]=u[D]}}return y};const compareFdName=(u,y)=>getFdNameOrder(u)<getFdNameOrder(y)?1:-1;const getFdNameOrder=u=>{if(u==="stdout"||u==="stderr"){return 0}return u==="all"?2:1};const parseFdName=(u,y,C)=>{if(u==="ipc"){return[C.length-1]}const D=parseFd(u);if(D===undefined||D===0){throw new TypeError(`"${y}.${u}" is invalid.\nIt must be "${y}.stdout", "${y}.stderr", "${y}.all", "${y}.ipc", or "${y}.fd3", "${y}.fd4" (and so on).`)}if(D>=C.length){throw new TypeError(`"${y}.${u}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}return D==="all"?[1,2]:[D]};const parseFd=u=>{if(u==="all"){return u}if(dn.includes(u)){return dn.indexOf(u)}const y=An.exec(u);if(y!==null){return Number(y[1])}};const An=/^fd(\d+)$/;const addDefaultValue=(u,y)=>u.map((u=>u===undefined?pn[y]:u));const hn=(0,cn.debuglog)("execa").enabled?"full":"none";const pn={lines:false,buffer:true,maxBuffer:1e3*1e3*100,verbose:hn,stripFinalNewline:true};const gn=["lines","buffer","maxBuffer","verbose","stripFinalNewline"];const getFdSpecificValue=(u,y)=>y==="ipc"?u.at(-1):u[y];const isVerbose=({verbose:u},y)=>getFdVerbose(u,y)!=="none";const isFullVerbose=({verbose:u},y)=>!["none","short"].includes(getFdVerbose(u,y));const getVerboseFunction=({verbose:u},y)=>{const C=getFdVerbose(u,y);return isVerboseFunction(C)?C:undefined};const getFdVerbose=(u,y)=>y===undefined?getFdGenericVerbose(u):getFdSpecificValue(u,y);const getFdGenericVerbose=u=>u.find((u=>isVerboseFunction(u)))??mn.findLast((y=>u.includes(y)));const isVerboseFunction=u=>typeof u==="function";const mn=["none","short","full"];const joinCommand=(u,y)=>{const C=[u,...y];const D=C.join(" ");const _=C.map((u=>quoteString(escapeControlCharacters(u)))).join(" ");return{command:D,escapedCommand:_}};const escapeLines=u=>(0,cn.stripVTControlCharacters)(u).split("\n").map((u=>escapeControlCharacters(u))).join("\n");const escapeControlCharacters=u=>u.replaceAll(yn,(u=>escapeControlCharacter(u)));const escapeControlCharacter=u=>{const y=En[u];if(y!==undefined){return y}const C=u.codePointAt(0);const D=C.toString(16);return C<=Cn?`\\u${D.padStart(4,"0")}`:`\\U${D}`};const getSpecialCharRegExp=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}};const yn=getSpecialCharRegExp();const En={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const Cn=65535;const quoteString=u=>{if(In.test(u)){return u}return un.platform==="win32"?`"${u.replaceAll('"','""')}"`:`'${u.replaceAll("'","'\\''")}'`};const In=/^[\w./-]+$/;function isUnicodeSupported(){const{env:u}=un;const{TERM:y,TERM_PROGRAM:C}=u;if(un.platform!=="win32"){return y!=="linux"}return Boolean(u.WT_SESSION)||Boolean(u.TERMINUS_SUBLIME)||u.ConEmuTask==="{cmd::Cmder}"||C==="Terminus-Sublime"||C==="vscode"||y==="xterm-256color"||y==="alacritty"||y==="rxvt-unicode"||y==="rxvt-unicode-256color"||u.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const bn={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"};const vn={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"};const wn={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};const Bn={...bn,...vn};const Dn={...bn,...wn};const Sn=isUnicodeSupported();const kn=Sn?Bn:Dn;const Qn=kn;const xn=Object.entries(vn);const replaceSymbols=(u,{useFallback:y=!Sn}={})=>{if(y){for(const[y,C]of xn){u=u.replaceAll(C,Dn[y])}}return u};var Fn=C(7066);const _n=Fn?.WriteStream?.prototype?.hasColors?.()??false;const format=(u,y)=>{if(!_n){return u=>u}const C=`[${u}m`;const D=`[${y}m`;return u=>{const _=u+"";let j=_.indexOf(D);if(j===-1){return C+_+D}let $=C;let ne=0;const oe=y===22;const le=(oe?D:"")+C;while(j!==-1){$+=_.slice(ne,j)+le;ne=j+D.length;j=_.indexOf(D,ne)}$+=_.slice(ne)+D;return $}};const Rn=format(0,0);const Ln=format(1,22);const Nn=format(2,22);const Tn=format(3,23);const Pn=format(4,24);const On=format(53,55);const Mn=format(7,27);const Un=format(8,28);const Hn=format(9,29);const Gn=format(30,39);const Wn=format(31,39);const jn=format(32,39);const zn=format(33,39);const $n=format(34,39);const qn=format(35,39);const Vn=format(36,39);const Jn=format(37,39);const Kn=format(90,39);const Yn=format(40,49);const Xn=format(41,49);const Zn=format(42,49);const ti=format(43,49);const ri=format(44,49);const si=format(45,49);const oi=format(46,49);const ai=format(47,49);const ui=format(100,49);const Ai=format(91,39);const pi=format(92,39);const yi=format(93,39);const Ei=format(94,39);const Ci=format(95,39);const Ii=format(96,39);const vi=format(97,39);const wi=format(101,49);const Bi=format(102,49);const Di=format(103,49);const Si=format(104,49);const Qi=format(105,49);const xi=format(106,49);const Fi=format(107,49);const defaultVerboseFunction=({type:u,message:y,timestamp:C,piped:D,commandId:_,result:{failed:j=false}={},options:{reject:$=true}})=>{const ne=serializeTimestamp(C);const oe=_i[u]({failed:j,reject:$,piped:D});const le=Ri[u]({reject:$});return`${Kn(`[${ne}]`)} ${Kn(`[${_}]`)} ${le(oe)} ${le(y)}`};const serializeTimestamp=u=>`${padField(u.getHours(),2)}:${padField(u.getMinutes(),2)}:${padField(u.getSeconds(),2)}.${padField(u.getMilliseconds(),3)}`;const padField=(u,y)=>String(u).padStart(y,"0");const getFinalIcon=({failed:u,reject:y})=>{if(!u){return Qn.tick}return y?Qn.cross:Qn.warning};const _i={command:({piped:u})=>u?"|":"$",output:()=>" ",ipc:()=>"*",error:getFinalIcon,duration:getFinalIcon};const identity=u=>u;const Ri={command:()=>Ln,output:()=>identity,ipc:()=>identity,error:({reject:u})=>u?Ai:yi,duration:()=>Kn};const applyVerboseOnLines=(u,y,C)=>{const D=getVerboseFunction(y,C);return u.map((({verboseLine:u,verboseObject:y})=>applyVerboseFunction(u,y,D))).filter((u=>u!==undefined)).map((u=>appendNewline(u))).join("")};const applyVerboseFunction=(u,y,C)=>{if(C===undefined){return u}const D=C(u,y);if(typeof D==="string"){return D}};const appendNewline=u=>u.endsWith("\n")?u:`${u}\n`;const verboseLog=({type:u,verboseMessage:y,fdNumber:C,verboseInfo:D,result:_})=>{const j=getVerboseObject({type:u,result:_,verboseInfo:D});const $=getPrintedLines(y,j);const ne=applyVerboseOnLines($,D,C);if(ne!==""){console.warn(ne.slice(0,-1))}};const getVerboseObject=({type:u,result:y,verboseInfo:{escapedCommand:C,commandId:D,rawOptions:{piped:_=false,...j}}})=>({type:u,escapedCommand:C,commandId:`${D}`,timestamp:new Date,piped:_,result:y,options:j});const getPrintedLines=(u,y)=>u.split("\n").map((u=>getPrintedLine({...y,message:u})));const getPrintedLine=u=>{const y=defaultVerboseFunction(u);return{verboseLine:y,verboseObject:u}};const serializeVerboseMessage=u=>{const y=typeof u==="string"?u:(0,cn.inspect)(u);const C=escapeLines(y);return C.replaceAll("\t"," ".repeat(Li))};const Li=2;const logCommand=(u,y)=>{if(!isVerbose(y)){return}verboseLog({type:"command",verboseMessage:u,verboseInfo:y})};const getVerboseInfo=(u,y,C)=>{validateVerbose(u);const D=getCommandId(u);return{verbose:u,escapedCommand:y,commandId:D,rawOptions:C}};const getCommandId=u=>isVerbose({verbose:u})?Ni++:undefined;let Ni=0n;const validateVerbose=u=>{for(const y of u){if(y===false){throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".')}if(y===true){throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".')}if(!mn.includes(y)&&!isVerboseFunction(y)){const u=mn.map((u=>`'${u}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${y}. Allowed values are: ${u} or a function.`)}}};const getStartTime=()=>un.hrtime.bigint();const getDurationMs=u=>Number(un.hrtime.bigint()-u)/1e6;const handleCommand=(u,y,C)=>{const D=getStartTime();const{command:_,escapedCommand:j}=joinCommand(u,y);const $=normalizeFdSpecificOption(C,"verbose");const ne=getVerboseInfo($,j,{...C});logCommand(j,ne);return{command:_,escapedCommand:j,startTime:D,verboseInfo:ne}};var Ti=C(546);function pathKey(u={}){const{env:y=process.env,platform:C=process.platform}=u;if(C!=="win32"){return"PATH"}return Object.keys(y).reverse().find((u=>u.toUpperCase()==="PATH"))||"Path"}const Pi=(0,cn.promisify)(rn.execFile);function toPath(u){return u instanceof URL?(0,vt.fileURLToPath)(u):u}function rootDirectory(u){return path.parse(toPath(u)).root}function traversePathUp(u){return{*[Symbol.iterator](){let y=xt.resolve(toPath(u));let C;while(C!==y){yield y;C=y;y=xt.resolve(y,"..")}}}}const Oi=null&&10*1024*1024;async function execFile(u,y,C={}){return Pi(u,y,{maxBuffer:Oi,...C})}function execFileSync(u,y=[],C={}){return execFileSyncOriginal(u,y,{maxBuffer:Oi,encoding:"utf8",stdio:"pipe",...C})}const npmRunPath=({cwd:u=un.cwd(),path:y=un.env[pathKey()],preferLocal:C=true,execPath:D=un.execPath,addExecPath:_=true}={})=>{const j=xt.resolve(toPath(u));const $=[];const ne=y.split(xt.delimiter);if(C){applyPreferLocal($,ne,j)}if(_){applyExecPath($,ne,D,j)}return y===""||y===xt.delimiter?`${$.join(xt.delimiter)}${y}`:[...$,y].join(xt.delimiter)};const applyPreferLocal=(u,y,C)=>{for(const D of traversePathUp(C)){const C=xt.join(D,"node_modules/.bin");if(!y.includes(C)){u.push(C)}}};const applyExecPath=(u,y,C,D)=>{const _=xt.resolve(D,toPath(C),"..");if(!y.includes(_)){u.push(_)}};const npmRunPathEnv=({env:u=un.env,...y}={})=>{u={...u};const C=pathKey({env:u});y.path=u[C];u[C]=npmRunPath(y);return u};const Mi=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises");const getFinalError=(u,y,C)=>{const D=C?ExecaSyncError:ExecaError;const _=u instanceof DiscardedError?{}:{cause:u};return new D(y,_)};class DiscardedError extends Error{}const setErrorName=(u,y)=>{Object.defineProperty(u.prototype,"name",{value:y,writable:true,enumerable:false,configurable:true});Object.defineProperty(u.prototype,Ui,{value:true,writable:false,enumerable:false,configurable:false})};const isExecaError=u=>isErrorInstance(u)&&Ui in u;const Ui=Symbol("isExecaError");const isErrorInstance=u=>Object.prototype.toString.call(u)==="[object Error]";class ExecaError extends Error{}setErrorName(ExecaError,ExecaError.name);class ExecaSyncError extends Error{}setErrorName(ExecaSyncError,ExecaSyncError.name);var Hi=C(8161);const getRealtimeSignals=()=>{const u=Wi-Gi+1;return Array.from({length:u},getRealtimeSignal)};const getRealtimeSignal=(u,y)=>({name:`SIGRT${y+1}`,number:Gi+y,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"});const Gi=34;const Wi=64;const zi=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];const getSignals=()=>{const u=getRealtimeSignals();const y=[...zi,...u].map(normalizeSignal);return y};const normalizeSignal=({name:u,number:y,description:C,action:D,forced:_=false,standard:j})=>{const{signals:{[u]:$}}=Hi.constants;const ne=$!==undefined;const oe=ne?$:y;return{name:u,number:oe,description:C,supported:ne,action:D,forced:_,standard:j}};const getSignalsByName=()=>{const u=getSignals();return Object.fromEntries(u.map(getSignalByName))};const getSignalByName=({name:u,number:y,description:C,supported:D,action:_,forced:j,standard:$})=>[u,{name:u,number:y,description:C,supported:D,action:_,forced:j,standard:$}];const $i=getSignalsByName();const getSignalsByNumber=()=>{const u=getSignals();const y=Wi+1;const C=Array.from({length:y},((y,C)=>getSignalByNumber(C,u)));return Object.assign({},...C)};const getSignalByNumber=(u,y)=>{const C=findSignalByNumber(u,y);if(C===undefined){return{}}const{name:D,description:_,supported:j,action:$,forced:ne,standard:oe}=C;return{[u]:{name:D,number:u,description:_,supported:j,action:$,forced:ne,standard:oe}}};const findSignalByNumber=(u,y)=>{const C=y.find((({name:y})=>Hi.constants.signals[y]===u));if(C!==undefined){return C}return y.find((y=>y.number===u))};const qi=getSignalsByNumber();const normalizeKillSignal=u=>{const y="option `killSignal`";if(u===0){throw new TypeError(`Invalid ${y}: 0 cannot be used.`)}return signal_normalizeSignal(u,y)};const normalizeSignalArgument=u=>u===0?u:signal_normalizeSignal(u,"`subprocess.kill()`'s argument");const signal_normalizeSignal=(u,y)=>{if(Number.isInteger(u)){return normalizeSignalInteger(u,y)}if(typeof u==="string"){return normalizeSignalName(u,y)}throw new TypeError(`Invalid ${y} ${String(u)}: it must be a string or an integer.\n${getAvailableSignals()}`)};const normalizeSignalInteger=(u,y)=>{if(Vi.has(u)){return Vi.get(u)}throw new TypeError(`Invalid ${y} ${u}: this signal integer does not exist.\n${getAvailableSignals()}`)};const getSignalsIntegerToName=()=>new Map(Object.entries(Hi.constants.signals).reverse().map((([u,y])=>[y,u])));const Vi=getSignalsIntegerToName();const normalizeSignalName=(u,y)=>{if(u in Hi.constants.signals){return u}if(u.toUpperCase()in Hi.constants.signals){throw new TypeError(`Invalid ${y} '${u}': please rename it to '${u.toUpperCase()}'.`)}throw new TypeError(`Invalid ${y} '${u}': this signal name does not exist.\n${getAvailableSignals()}`)};const getAvailableSignals=()=>`Available signal names: ${getAvailableSignalNames()}.\nAvailable signal numbers: ${getAvailableSignalIntegers()}.`;const getAvailableSignalNames=()=>Object.keys(Hi.constants.signals).sort().map((u=>`'${u}'`)).join(", ");const getAvailableSignalIntegers=()=>[...new Set(Object.values(Hi.constants.signals).sort(((u,y)=>u-y)))].join(", ");const getSignalDescription=u=>$i[u].description;const normalizeForceKillAfterDelay=u=>{if(u===false){return u}if(u===true){return Ji}if(!Number.isFinite(u)||u<0){throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)}return u};const Ji=1e3*5;const subprocessKill=({kill:u,options:{forceKillAfterDelay:y,killSignal:C},onInternalError:D,context:_,controller:j},$,ne)=>{const{signal:oe,error:le}=parseKillArguments($,ne,C);emitKillError(le,D);const de=u(oe);setKillTimeout({kill:u,signal:oe,forceKillAfterDelay:y,killSignal:C,killResult:de,context:_,controller:j});return de};const parseKillArguments=(u,y,C)=>{const[D=C,_]=isErrorInstance(u)?[undefined,u]:[u,y];if(typeof D!=="string"&&!Number.isInteger(D)){throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(D)}`)}if(_!==undefined&&!isErrorInstance(_)){throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${_}`)}return{signal:normalizeSignalArgument(D),error:_}};const emitKillError=(u,y)=>{if(u!==undefined){y.reject(u)}};const setKillTimeout=async({kill:u,signal:y,forceKillAfterDelay:C,killSignal:D,killResult:_,context:j,controller:$})=>{if(y===D&&_){killOnTimeout({kill:u,forceKillAfterDelay:C,context:j,controllerSignal:$.signal})}};const killOnTimeout=async({kill:u,forceKillAfterDelay:y,context:C,controllerSignal:D})=>{if(y===false){return}try{await(0,Mi.setTimeout)(y,undefined,{signal:D});if(u("SIGKILL")){C.isForcefullyTerminated??=true}}catch{}};const onAbortedSignal=async(u,y)=>{if(!u.aborted){await(0,Tt.once)(u,"abort",{signal:y})}};const validateCancelSignal=({cancelSignal:u})=>{if(u!==undefined&&Object.prototype.toString.call(u)!=="[object AbortSignal]"){throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(u)}`)}};const throwOnCancel=({subprocess:u,cancelSignal:y,gracefulCancel:C,context:D,controller:_})=>y===undefined||C?[]:[terminateOnCancel(u,y,D,_)];const terminateOnCancel=async(u,y,C,{signal:D})=>{await onAbortedSignal(y,D);C.terminationReason??="cancel";u.kill();throw y.reason};const validateIpcMethod=({methodName:u,isSubprocess:y,ipc:C,isConnected:D})=>{validateIpcOption(u,y,C);validateConnection(u,y,D)};const validateIpcOption=(u,y,C)=>{if(!C){throw new Error(`${getMethodName(u,y)} can only be used if the \`ipc\` option is \`true\`.`)}};const validateConnection=(u,y,C)=>{if(!C){throw new Error(`${getMethodName(u,y)} cannot be used: the ${getOtherProcessName(y)} has already exited or disconnected.`)}};const throwOnEarlyDisconnect=u=>{throw new Error(`${getMethodName("getOneMessage",u)} could not complete: the ${getOtherProcessName(u)} exited or disconnected.`)};const throwOnStrictDeadlockError=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${getMethodName("getOneMessage",u)},\n\t${getMethodName("sendMessage",u,"message, {strict: true}")},\n]);`)};const getStrictResponseError=(u,y)=>new Error(`${getMethodName("sendMessage",y)} failed when sending an acknowledgment response to the ${getOtherProcessName(y)}.`,{cause:u});const throwOnMissingStrict=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} is not listening to incoming messages.`)};const throwOnStrictDisconnect=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} exited without listening to incoming messages.`)};const getAbortDisconnectError=()=>new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);const throwOnMissingParent=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")};const handleEpipeError=({error:u,methodName:y,isSubprocess:C})=>{if(u.code==="EPIPE"){throw new Error(`${getMethodName(y,C)} cannot be used: the ${getOtherProcessName(C)} is disconnecting.`,{cause:u})}};const handleSerializationError=({error:u,methodName:y,isSubprocess:C,message:D})=>{if(isSerializationError(u)){throw new Error(`${getMethodName(y,C)}'s argument type is invalid: the message cannot be serialized: ${String(D)}.`,{cause:u})}};const isSerializationError=({code:u,message:y})=>Ki.has(u)||Yi.some((u=>y.includes(u)));const Ki=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]);const Yi=["could not be cloned","circular structure","call stack size exceeded"];const getMethodName=(u,y,C="")=>u==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${getNamespaceName(y)}${u}(${C})`;const getNamespaceName=u=>u?"":"subprocess.";const getOtherProcessName=u=>u?"parent process":"subprocess";const disconnect=u=>{if(u.connected){u.disconnect()}};const createDeferred=()=>{const u={};const y=new Promise(((y,C)=>{Object.assign(u,{resolve:y,reject:C})}));return Object.assign(y,u)};const getToStream=(u,y="stdin")=>{const C=true;const{options:D,fileDescriptors:_}=Xi.get(u);const j=getFdNumber(_,y,C);const $=u.stdio[j];if($===null){throw new TypeError(getInvalidStdioOptionMessage(j,y,D,C))}return $};const getFromStream=(u,y="stdout")=>{const C=false;const{options:D,fileDescriptors:_}=Xi.get(u);const j=getFdNumber(_,y,C);const $=j==="all"?u.all:u.stdio[j];if($===null||$===undefined){throw new TypeError(getInvalidStdioOptionMessage(j,y,D,C))}return $};const Xi=new WeakMap;const getFdNumber=(u,y,C)=>{const D=parseFdNumber(y,C);validateFdNumber(D,y,C,u);return D};const parseFdNumber=(u,y)=>{const C=parseFd(u);if(C!==undefined){return C}const{validOptions:D,defaultValue:_}=y?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${getOptionName(y)}" must not be "${u}".\nIt must be ${D} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${_}".`)};const validateFdNumber=(u,y,C,D)=>{const _=D[getUsedDescriptor(u)];if(_===undefined){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}if(_.direction==="input"&&!C){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. It must be a readable stream, not writable.`)}if(_.direction!=="input"&&C){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. It must be a writable stream, not readable.`)}};const getInvalidStdioOptionMessage=(u,y,C,D)=>{if(u==="all"&&!C.all){return'The "all" option must be true to use "from: \'all\'".'}const{optionName:_,optionValue:j}=getInvalidStdioOption(u,C);return`The "${_}: ${serializeOptionValue(j)}" option is incompatible with using "${getOptionName(D)}: ${serializeOptionValue(y)}".\nPlease set this option with "pipe" instead.`};const getInvalidStdioOption=(u,{stdin:y,stdout:C,stderr:D,stdio:_})=>{const j=getUsedDescriptor(u);if(j===0&&y!==undefined){return{optionName:"stdin",optionValue:y}}if(j===1&&C!==undefined){return{optionName:"stdout",optionValue:C}}if(j===2&&D!==undefined){return{optionName:"stderr",optionValue:D}}return{optionName:`stdio[${j}]`,optionValue:_[j]}};const getUsedDescriptor=u=>u==="all"?1:u;const getOptionName=u=>u?"to":"from";const serializeOptionValue=u=>{if(typeof u==="string"){return`'${u}'`}return typeof u==="number"?`${u}`:"Stream"};const incrementMaxListeners=(u,y,C)=>{const D=u.getMaxListeners();if(D===0||D===Number.POSITIVE_INFINITY){return}u.setMaxListeners(D+y);(0,Tt.addAbortListener)(C,(()=>{u.setMaxListeners(u.getMaxListeners()-y)}))};const addReference=(u,y)=>{if(y){addReferenceCount(u)}};const addReferenceCount=u=>{u.refCounted()};const removeReference=(u,y)=>{if(y){removeReferenceCount(u)}};const removeReferenceCount=u=>{u.unrefCounted()};const undoAddedReferences=(u,y)=>{if(y){removeReferenceCount(u);removeReferenceCount(u)}};const redoAddedReferences=(u,y)=>{if(y){addReferenceCount(u);addReferenceCount(u)}};const onMessage=async({anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D},_)=>{if(handleStrictResponse(_)||handleAbort(_)){return}if(!Zi.has(u)){Zi.set(u,[])}const j=Zi.get(u);j.push(_);if(j.length>1){return}while(j.length>0){await waitForOutgoingMessages(u,D,_);await Mi.scheduler.yield();const $=await handleStrictRequest({wrappedMessage:j[0],anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D});j.shift();D.emit("message",$);D.emit("message:done")}};const onDisconnect=async({anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D,boundOnMessage:_})=>{abortOnDisconnect();const j=Zi.get(u);while(j?.length>0){await(0,Tt.once)(D,"message:done")}u.removeListener("message",_);redoAddedReferences(y,C);D.connected=false;D.emit("disconnect")};const Zi=new WeakMap;const getIpcEmitter=(u,y,C)=>{if(es.has(u)){return es.get(u)}const D=new Tt.EventEmitter;D.connected=true;es.set(u,D);forwardEvents({ipcEmitter:D,anyProcess:u,channel:y,isSubprocess:C});return D};const es=new WeakMap;const forwardEvents=({ipcEmitter:u,anyProcess:y,channel:C,isSubprocess:D})=>{const _=onMessage.bind(undefined,{anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:u});y.on("message",_);y.once("disconnect",onDisconnect.bind(undefined,{anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:u,boundOnMessage:_}));undoAddedReferences(C,D)};const isConnected=u=>{const y=es.get(u);return y===undefined?u.channel!==null:y.connected};const handleSendStrict=({anyProcess:u,channel:y,isSubprocess:C,message:D,strict:_})=>{if(!_){return D}const j=getIpcEmitter(u,y,C);const $=hasMessageListeners(u,j);return{id:ts++,type:ns,message:D,hasListeners:$}};let ts=0n;const validateStrictDeadlock=(u,y)=>{if(y?.type!==ns||y.hasListeners){return}for(const{id:y}of u){if(y!==undefined){rs[y].resolve({isDeadlock:true,hasListeners:false})}}};const handleStrictRequest=async({wrappedMessage:u,anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:_})=>{if(u?.type!==ns||!y.connected){return u}const{id:j,message:$}=u;const ne={id:j,type:ss,message:hasMessageListeners(y,_)};try{await sendMessage({anyProcess:y,channel:C,isSubprocess:D,ipc:true},ne)}catch(u){_.emit("strict:error",u)}return $};const handleStrictResponse=u=>{if(u?.type!==ss){return false}const{id:y,message:C}=u;rs[y]?.resolve({isDeadlock:false,hasListeners:C});return true};const waitForStrictResponse=async(u,y,C)=>{if(u?.type!==ns){return}const D=createDeferred();rs[u.id]=D;const _=new AbortController;try{const{isDeadlock:u,hasListeners:j}=await Promise.race([D,throwOnDisconnect(y,C,_)]);if(u){throwOnStrictDeadlockError(C)}if(!j){throwOnMissingStrict(C)}}finally{_.abort();delete rs[u.id]}};const rs={};const throwOnDisconnect=async(u,y,{signal:C})=>{incrementMaxListeners(u,1,C);await(0,Tt.once)(u,"disconnect",{signal:C});throwOnStrictDisconnect(y)};const ns="execa:ipc:request";const ss="execa:ipc:response";const startSendMessage=(u,y,C)=>{if(!os.has(u)){os.set(u,new Set)}const D=os.get(u);const _=createDeferred();const j=C?y.id:undefined;const $={onMessageSent:_,id:j};D.add($);return{outgoingMessages:D,outgoingMessage:$}};const endSendMessage=({outgoingMessages:u,outgoingMessage:y})=>{u.delete(y);y.onMessageSent.resolve()};const waitForOutgoingMessages=async(u,y,C)=>{while(!hasMessageListeners(u,y)&&os.get(u)?.size>0){const y=[...os.get(u)];validateStrictDeadlock(y,C);await Promise.all(y.map((({onMessageSent:u})=>u)))}};const os=new WeakMap;const hasMessageListeners=(u,y)=>y.listenerCount("message")>getMinListenerCount(u);const getMinListenerCount=u=>Xi.has(u)&&!getFdSpecificValue(Xi.get(u).options.buffer,"ipc")?1:0;const sendMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},_,{strict:j=false}={})=>{const $="sendMessage";validateIpcMethod({methodName:$,isSubprocess:C,ipc:D,isConnected:u.connected});return sendMessageAsync({anyProcess:u,channel:y,methodName:$,isSubprocess:C,message:_,strict:j})};const sendMessageAsync=async({anyProcess:u,channel:y,methodName:C,isSubprocess:D,message:_,strict:j})=>{const $=handleSendStrict({anyProcess:u,channel:y,isSubprocess:D,message:_,strict:j});const ne=startSendMessage(u,$,j);try{await sendOneMessage({anyProcess:u,methodName:C,isSubprocess:D,wrappedMessage:$,message:_})}catch(y){disconnect(u);throw y}finally{endSendMessage(ne)}};const sendOneMessage=async({anyProcess:u,methodName:y,isSubprocess:C,wrappedMessage:D,message:_})=>{const j=getSendMethod(u);try{await Promise.all([waitForStrictResponse(D,u,C),j(D)])}catch(u){handleEpipeError({error:u,methodName:y,isSubprocess:C});handleSerializationError({error:u,methodName:y,isSubprocess:C,message:_});throw u}};const getSendMethod=u=>{if(as.has(u)){return as.get(u)}const y=(0,cn.promisify)(u.send.bind(u));as.set(u,y);return y};const as=new WeakMap;const sendAbort=(u,y)=>{const C="cancelSignal";validateConnection(C,false,u.connected);return sendOneMessage({anyProcess:u,methodName:C,isSubprocess:false,wrappedMessage:{type:cs,message:y},message:y})};const getCancelSignal=async({anyProcess:u,channel:y,isSubprocess:C,ipc:D})=>{await startIpc({anyProcess:u,channel:y,isSubprocess:C,ipc:D});return us.signal};const startIpc=async({anyProcess:u,channel:y,isSubprocess:C,ipc:D})=>{if(ls){return}ls=true;if(!D){throwOnMissingParent();return}if(y===null){abortOnDisconnect();return}getIpcEmitter(u,y,C);await Mi.scheduler.yield()};let ls=false;const handleAbort=u=>{if(u?.type!==cs){return false}us.abort(u.message);return true};const cs="execa:ipc:cancel";const abortOnDisconnect=()=>{us.abort(getAbortDisconnectError())};const us=new AbortController;const validateGracefulCancel=({gracefulCancel:u,cancelSignal:y,ipc:C,serialization:D})=>{if(!u){return}if(y===undefined){throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.")}if(!C){throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.")}if(D==="json"){throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}};const throwOnGracefulCancel=({subprocess:u,cancelSignal:y,gracefulCancel:C,forceKillAfterDelay:D,context:_,controller:j})=>C?[sendOnAbort({subprocess:u,cancelSignal:y,forceKillAfterDelay:D,context:_,controller:j})]:[];const sendOnAbort=async({subprocess:u,cancelSignal:y,forceKillAfterDelay:C,context:D,controller:{signal:_}})=>{await onAbortedSignal(y,_);const j=getReason(y);await sendAbort(u,j);killOnTimeout({kill:u.kill,forceKillAfterDelay:C,context:D,controllerSignal:_});D.terminationReason??="gracefulCancel";throw y.reason};const getReason=({reason:u})=>{if(!(u instanceof DOMException)){return u}const y=new Error(u.message);Object.defineProperty(y,"stack",{value:u.stack,enumerable:false,configurable:true,writable:true});return y};const timeout_validateTimeout=({timeout:u})=>{if(u!==undefined&&(!Number.isFinite(u)||u<0)){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)}};const throwOnTimeout=(u,y,C,D)=>y===0||y===undefined?[]:[killAfterTimeout(u,y,C,D)];const killAfterTimeout=async(u,y,C,{signal:D})=>{await(0,Mi.setTimeout)(y,undefined,{signal:D});C.terminationReason??="timeout";u.kill();throw new DiscardedError};const mapNode=({options:u})=>{if(u.node===false){throw new TypeError('The "node" option cannot be false with `execaNode()`.')}return{options:{...u,node:true}}};const handleNodeOption=(u,y,{node:C=false,nodePath:D=un.execPath,nodeOptions:_=un.execArgv.filter((u=>!u.startsWith("--inspect"))),cwd:j,execPath:$,...ne})=>{if($!==undefined){throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.')}const oe=safeNormalizeFileUrl(D,'The "nodePath" option');const le=xt.resolve(j,oe);const de={...ne,nodePath:le,node:C,cwd:j};if(!C){return[u,y,de]}if(xt.basename(u,".exe")==="node"){throw new TypeError('When the "node" option is true, the first argument does not need to be "node".')}return[le,[..._,u,...y],{ipc:true,...de,shell:false}]};const fs=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:v8");const validateIpcInputOption=({ipcInput:u,ipc:y,serialization:C})=>{if(u===undefined){return}if(!y){throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.")}ds[C](u)};const validateAdvancedInput=u=>{try{(0,fs.serialize)(u)}catch(u){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:u})}};const validateJsonInput=u=>{try{JSON.stringify(u)}catch(u){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:u})}};const ds={advanced:validateAdvancedInput,json:validateJsonInput};const sendIpcInput=async(u,y)=>{if(y===undefined){return}await u.sendMessage(y)};const validateEncoding=({encoding:u})=>{if(ps.has(u)){return}const y=getCorrectEncoding(u);if(y!==undefined){throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(u)}\`.\nPlease rename it to ${serializeEncoding(y)}.`)}const C=[...ps].map((u=>serializeEncoding(u))).join(", ");throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(u)}\`.\nPlease rename it to one of: ${C}.`)};const As=new Set(["utf8","utf16le"]);const hs=new Set(["buffer","hex","base64","base64url","latin1","ascii"]);const ps=new Set([...As,...hs]);const getCorrectEncoding=u=>{if(u===null){return"buffer"}if(typeof u!=="string"){return}const y=u.toLowerCase();if(y in gs){return gs[y]}if(ps.has(y)){return y}};const gs={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"};const serializeEncoding=u=>typeof u==="string"?`"${u}"`:String(u);const normalizeCwd=(u=getDefaultCwd())=>{const y=safeNormalizeFileUrl(u,'The "cwd" option');return xt.resolve(y)};const getDefaultCwd=()=>{try{return un.cwd()}catch(u){u.message=`The current directory does not exist.\n${u.message}`;throw u}};const fixCwdError=(u,y)=>{if(y===getDefaultCwd()){return u}let C;try{C=(0,Rt.statSync)(y)}catch(C){return`The "cwd" option is invalid: ${y}.\n${C.message}\n${u}`}if(!C.isDirectory()){return`The "cwd" option is not a directory: ${y}.\n${u}`}return u};const normalizeOptions=(u,y,C)=>{C.cwd=normalizeCwd(C.cwd);const[D,_,j]=handleNodeOption(u,y,C);const{command:$,args:ne,options:oe}=Ti._parse(D,_,j);const le=normalizeFdSpecificOptions(oe);const de=addDefaultOptions(le);timeout_validateTimeout(de);validateEncoding(de);validateIpcInputOption(de);validateCancelSignal(de);validateGracefulCancel(de);de.shell=normalizeFileUrl(de.shell);de.env=getEnv(de);de.killSignal=normalizeKillSignal(de.killSignal);de.forceKillAfterDelay=normalizeForceKillAfterDelay(de.forceKillAfterDelay);de.lines=de.lines.map(((u,y)=>u&&!hs.has(de.encoding)&&de.buffer[y]));if(un.platform==="win32"&&xt.basename($,".exe")==="cmd"){ne.unshift("/q")}return{file:$,commandArguments:ne,options:de}};const addDefaultOptions=({extendEnv:u=true,preferLocal:y=false,cwd:C,localDir:D=C,encoding:_="utf8",reject:j=true,cleanup:$=true,all:ne=false,windowsHide:oe=true,killSignal:le="SIGTERM",forceKillAfterDelay:de=true,gracefulCancel:Ae=false,ipcInput:pe,ipc:Ee=pe!==undefined||Ae,serialization:Ce="advanced",...Ie})=>({...Ie,extendEnv:u,preferLocal:y,cwd:C,localDirectory:D,encoding:_,reject:j,cleanup:$,all:ne,windowsHide:oe,killSignal:le,forceKillAfterDelay:de,gracefulCancel:Ae,ipcInput:pe,ipc:Ee,serialization:Ce});const getEnv=({env:u,extendEnv:y,preferLocal:C,node:D,localDirectory:_,nodePath:j})=>{const $=y?{...un.env,...u}:u;if(C||D){return npmRunPathEnv({env:$,cwd:_,execPath:j,preferLocal:C,addExecPath:D})}return $};const concatenateShell=(u,y,C)=>C.shell&&y.length>0?[[u,...y].join(" "),[],C]:[u,y,C];function strip_final_newline_stripFinalNewline(u){if(typeof u==="string"){return stripFinalNewlineString(u)}if(!(ArrayBuffer.isView(u)&&u.BYTES_PER_ELEMENT===1)){throw new Error("Input must be a string or a Uint8Array")}return stripFinalNewlineBinary(u)}const stripFinalNewlineString=u=>u.at(-1)===ms?u.slice(0,u.at(-2)===Es?-2:-1):u;const stripFinalNewlineBinary=u=>u.at(-1)===ys?u.subarray(0,u.at(-2)===Cs?-2:-1):u;const ms="\n";const ys=ms.codePointAt(0);const Es="\r";const Cs=Es.codePointAt(0);function is_stream_isStream(u,{checkOpen:y=true}={}){return u!==null&&typeof u==="object"&&(u.writable||u.readable||!y||u.writable===undefined&&u.readable===undefined)&&typeof u.pipe==="function"}function isWritableStream(u,{checkOpen:y=true}={}){return is_stream_isStream(u,{checkOpen:y})&&(u.writable||!y)&&typeof u.write==="function"&&typeof u.end==="function"&&typeof u.writable==="boolean"&&typeof u.writableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function isReadableStream(u,{checkOpen:y=true}={}){return is_stream_isStream(u,{checkOpen:y})&&(u.readable||!y)&&typeof u.read==="function"&&typeof u.readable==="boolean"&&typeof u.readableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function isDuplexStream(u,y){return isWritableStream(u,y)&&isReadableStream(u,y)}function isTransformStream(u,y){return isDuplexStream(u,y)&&typeof u._transform==="function"}const Is=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class c{#gt;#mt;#yt=!1;#Et=void 0;constructor(u,y){this.#gt=u,this.#mt=y}next(){const e=()=>this.#Ct();return this.#Et=this.#Et?this.#Et.then(e,e):e(),this.#Et}return(u){const t=()=>this.#It(u);return this.#Et?this.#Et.then(t,t):t()}async#Ct(){if(this.#yt)return{done:!0,value:void 0};let u;try{u=await this.#gt.read()}catch(u){throw this.#Et=void 0,this.#yt=!0,this.#gt.releaseLock(),u}return u.done&&(this.#Et=void 0,this.#yt=!0,this.#gt.releaseLock()),u}async#It(u){if(this.#yt)return{done:!0,value:u};if(this.#yt=!0,!this.#mt){const y=this.#gt.cancel(u);return this.#gt.releaseLock(),await y,{done:!0,value:u}}return this.#gt.releaseLock(),{done:!0,value:u}}}const bs=Symbol();function i(){return this[bs].next()}Object.defineProperty(i,"name",{value:"next"});function o(u){return this[bs].return(u)}Object.defineProperty(o,"name",{value:"return"});const vs=Object.create(Is,{next:{enumerable:!0,configurable:!0,writable:!0,value:i},return:{enumerable:!0,configurable:!0,writable:!0,value:o}});function h({preventCancel:u=!1}={}){const y=this.getReader(),C=new c(y,u),D=Object.create(vs);return D[bs]=C,D}const getAsyncIterable=u=>{if(isReadableStream(u,{checkOpen:false})&&Bs.on!==undefined){return getStreamIterable(u)}if(typeof u?.[Symbol.asyncIterator]==="function"){return u}if(ws.call(u)==="[object ReadableStream]"){return h.call(u)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:ws}=Object.prototype;const getStreamIterable=async function*(u){const y=new AbortController;const C={};handleStreamEnd(u,y,C);try{for await(const[C]of Bs.on(u,"data",{signal:y.signal})){yield C}}catch(u){if(C.error!==undefined){throw C.error}else if(!y.signal.aborted){throw u}}finally{u.destroy()}};const handleStreamEnd=async(u,y,C)=>{try{await Bs.finished(u,{cleanup:true,readable:true,writable:false,error:false})}catch(u){C.error=u}finally{y.abort()}};const Bs={};const getStreamContents=async(u,{init:y,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,finalize:ne},{maxBuffer:oe=Number.POSITIVE_INFINITY}={})=>{const le=getAsyncIterable(u);const de=y();de.length=0;try{for await(const u of le){const y=getChunkType(u);const $=C[y](u,de);appendChunk({convertedChunk:$,state:de,getSize:D,truncateChunk:_,addChunk:j,maxBuffer:oe})}appendFinalChunk({state:de,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,maxBuffer:oe});return ne(de)}catch(u){const y=typeof u==="object"&&u!==null?u:new Error(u);y.bufferedData=ne(de);throw y}};const appendFinalChunk=({state:u,getSize:y,truncateChunk:C,addChunk:D,getFinalChunk:_,maxBuffer:j})=>{const $=_(u);if($!==undefined){appendChunk({convertedChunk:$,state:u,getSize:y,truncateChunk:C,addChunk:D,maxBuffer:j})}};const appendChunk=({convertedChunk:u,state:y,getSize:C,truncateChunk:D,addChunk:_,maxBuffer:j})=>{const $=C(u);const ne=y.length+$;if(ne<=j){addNewChunk(u,y,_,ne);return}const oe=D(u,j-y.length);if(oe!==undefined){addNewChunk(oe,y,_,j)}throw new MaxBufferError};const addNewChunk=(u,y,C,D)=>{y.contents=C(u,y,D);y.length=D};const getChunkType=u=>{const y=typeof u;if(y==="string"){return"string"}if(y!=="object"||u===null){return"others"}if(globalThis.Buffer?.isBuffer(u)){return"buffer"}const C=Ds.call(u);if(C==="[object ArrayBuffer]"){return"arrayBuffer"}if(C==="[object DataView]"){return"dataView"}if(Number.isInteger(u.byteLength)&&Number.isInteger(u.byteOffset)&&Ds.call(u.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:Ds}=Object.prototype;class MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const handleMaxBuffer=({error:u,stream:y,readableObjectMode:C,lines:D,encoding:_,fdNumber:j})=>{if(!(u instanceof MaxBufferError)){throw u}if(j==="all"){return u}const $=getMaxBufferUnit(C,D,_);u.maxBufferInfo={fdNumber:j,unit:$};y.destroy();throw u};const getMaxBufferUnit=(u,y,C)=>{if(u){return"objects"}if(y){return"lines"}if(C==="buffer"){return"bytes"}return"characters"};const checkIpcMaxBuffer=(u,y,C)=>{if(y.length!==C){return}const D=new MaxBufferError;D.maxBufferInfo={fdNumber:"ipc"};throw D};const getMaxBufferMessage=(u,y)=>{const{streamName:C,threshold:D,unit:_}=getMaxBufferInfo(u,y);return`Command's ${C} was larger than ${D} ${_}`};const getMaxBufferInfo=(u,y)=>{if(u?.maxBufferInfo===undefined){return{streamName:"output",threshold:y[1],unit:"bytes"}}const{maxBufferInfo:{fdNumber:C,unit:D}}=u;delete u.maxBufferInfo;const _=getFdSpecificValue(y,C);if(C==="ipc"){return{streamName:"IPC output",threshold:_,unit:"messages"}}return{streamName:getStreamName(C),threshold:_,unit:D}};const isMaxBufferSync=(u,y,C)=>u?.code==="ENOBUFS"&&y!==null&&y.some((u=>u!==null&&u.length>getMaxBufferSync(C)));const truncateMaxBufferSync=(u,y,C)=>{if(!y){return u}const D=getMaxBufferSync(C);return u.length>D?u.slice(0,D):u};const getMaxBufferSync=([,u])=>u;const createMessages=({stdio:u,all:y,ipcOutput:C,originalError:D,signal:_,signalDescription:j,exitCode:$,escapedCommand:ne,timedOut:oe,isCanceled:le,isGracefullyCanceled:de,isMaxBuffer:Ae,isForcefullyTerminated:pe,forceKillAfterDelay:Ee,killSignal:Ce,maxBuffer:Ie,timeout:Be,cwd:De})=>{const xe=D?.code;const Fe=getErrorPrefix({originalError:D,timedOut:oe,timeout:Be,isMaxBuffer:Ae,maxBuffer:Ie,errorCode:xe,signal:_,signalDescription:j,exitCode:$,isCanceled:le,isGracefullyCanceled:de,isForcefullyTerminated:pe,forceKillAfterDelay:Ee,killSignal:Ce});const _e=getOriginalMessage(D,De);const Le=_e===undefined?"":`\n${_e}`;const ze=`${Fe}: ${ne}${Le}`;const qe=y===undefined?[u[2],u[1]]:[y];const Je=[ze,...qe,...u.slice(3),C.map((u=>serializeIpcMessage(u))).join("\n")].map((u=>escapeLines(strip_final_newline_stripFinalNewline(serializeMessagePart(u))))).filter(Boolean).join("\n\n");return{originalMessage:_e,shortMessage:ze,message:Je}};const getErrorPrefix=({originalError:u,timedOut:y,timeout:C,isMaxBuffer:D,maxBuffer:_,errorCode:j,signal:$,signalDescription:ne,exitCode:oe,isCanceled:le,isGracefullyCanceled:de,isForcefullyTerminated:Ae,forceKillAfterDelay:pe,killSignal:Ee})=>{const Ce=getForcefulSuffix(Ae,pe);if(y){return`Command timed out after ${C} milliseconds${Ce}`}if(de){if($===undefined){return`Command was gracefully canceled with exit code ${oe}`}return Ae?`Command was gracefully canceled${Ce}`:`Command was gracefully canceled with ${$} (${ne})`}if(le){return`Command was canceled${Ce}`}if(D){return`${getMaxBufferMessage(u,_)}${Ce}`}if(j!==undefined){return`Command failed with ${j}${Ce}`}if(Ae){return`Command was killed with ${Ee} (${getSignalDescription(Ee)})${Ce}`}if($!==undefined){return`Command was killed with ${$} (${ne})`}if(oe!==undefined){return`Command failed with exit code ${oe}`}return"Command failed"};const getForcefulSuffix=(u,y)=>u?` and was forcefully terminated after ${y} milliseconds`:"";const getOriginalMessage=(u,y)=>{if(u instanceof DiscardedError){return}const C=isExecaError(u)?u.originalMessage:String(u?.message??u);const D=escapeLines(fixCwdError(C,y));return D===""?undefined:D};const serializeIpcMessage=u=>typeof u==="string"?u:(0,cn.inspect)(u);const serializeMessagePart=u=>Array.isArray(u)?u.map((u=>strip_final_newline_stripFinalNewline(serializeMessageItem(u)))).filter(Boolean).join("\n"):serializeMessageItem(u);const serializeMessageItem=u=>{if(typeof u==="string"){return u}if(isUint8Array(u)){return uint8ArrayToString(u)}return""};const makeSuccessResult=({command:u,escapedCommand:y,stdio:C,all:D,ipcOutput:_,options:{cwd:j},startTime:$})=>omitUndefinedProperties({command:u,escapedCommand:y,cwd:j,durationMs:getDurationMs($),failed:false,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isTerminated:false,isMaxBuffer:false,isForcefullyTerminated:false,exitCode:0,stdout:C[1],stderr:C[2],all:D,stdio:C,ipcOutput:_,pipedFrom:[]});const makeEarlyError=({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,isSync:$})=>makeError({error:u,command:y,escapedCommand:C,startTime:j,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:false,isForcefullyTerminated:false,stdio:Array.from({length:D.length}),ipcOutput:[],options:_,isSync:$});const makeError=({error:u,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,stdio:Ae,all:pe,ipcOutput:Ee,options:{timeoutDuration:Ce,timeout:Ie=Ce,forceKillAfterDelay:Be,killSignal:De,cwd:xe,maxBuffer:Fe},isSync:_e})=>{const{exitCode:Le,signal:ze,signalDescription:qe}=normalizeExitPayload(le,de);const{originalMessage:Je,shortMessage:Ke,message:et}=createMessages({stdio:Ae,all:pe,ipcOutput:Ee,originalError:u,signal:ze,signalDescription:qe,exitCode:Le,escapedCommand:C,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,forceKillAfterDelay:Be,killSignal:De,maxBuffer:Fe,timeout:Ie,cwd:xe});const tt=getFinalError(u,et,_e);Object.assign(tt,getErrorProperties({error:tt,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:Le,signal:ze,signalDescription:qe,stdio:Ae,all:pe,ipcOutput:Ee,cwd:xe,originalMessage:Je,shortMessage:Ke}));return tt};const getErrorProperties=({error:u,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,signalDescription:Ae,stdio:pe,all:Ee,ipcOutput:Ce,cwd:Ie,originalMessage:Be,shortMessage:De})=>omitUndefinedProperties({shortMessage:De,originalMessage:Be,command:y,escapedCommand:C,cwd:Ie,durationMs:getDurationMs(D),failed:true,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isTerminated:de!==undefined,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,signalDescription:Ae,code:u.cause?.code,stdout:pe[1],stderr:pe[2],all:Ee,stdio:pe,ipcOutput:Ce,pipedFrom:[]});const omitUndefinedProperties=u=>Object.fromEntries(Object.entries(u).filter((([,u])=>u!==undefined)));const normalizeExitPayload=(u,y)=>{const C=u===null?undefined:u;const D=y===null?undefined:y;const _=D===undefined?undefined:getSignalDescription(y);return{exitCode:C,signal:D,signalDescription:_}};const toZeroIfInfinity=u=>Number.isFinite(u)?u:0;function parseNumber(u){return{days:Math.trunc(u/864e5),hours:Math.trunc(u/36e5%24),minutes:Math.trunc(u/6e4%60),seconds:Math.trunc(u/1e3%60),milliseconds:Math.trunc(u%1e3),microseconds:Math.trunc(toZeroIfInfinity(u*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(u*1e6)%1e3)}}function parseBigint(u){return{days:u/86400000n,hours:u/3600000n%24n,minutes:u/60000n%60n,seconds:u/1000n%60n,milliseconds:u%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(u){switch(typeof u){case"number":{if(Number.isFinite(u)){return parseNumber(u)}break}case"bigint":{return parseBigint(u)}}throw new TypeError("Expected a finite number or bigint")}const isZero=u=>u===0||u===0n;const pluralize=(u,y)=>y===1||y===1n?u:`${u}s`;const Ss=1e-7;const ks=24n*60n*60n*1000n;function prettyMilliseconds(u,y){const C=typeof u==="bigint";if(!C&&!Number.isFinite(u)){throw new TypeError("Expected a finite number or bigint")}y={...y};const D=u<0?"-":"";u=u<0?-u:u;if(y.colonNotation){y.compact=false;y.formatSubMilliseconds=false;y.separateMilliseconds=false;y.verbose=false}if(y.compact){y.unitCount=1;y.secondsDecimalDigits=0;y.millisecondsDecimalDigits=0}let _=[];const floorDecimals=(u,y)=>{const C=Math.floor(u*10**y+Ss);const D=Math.round(C)/10**y;return D.toFixed(y)};const add=(u,C,D,j)=>{if((_.length===0||!y.colonNotation)&&isZero(u)&&!(y.colonNotation&&D==="m")){return}j??=String(u);if(y.colonNotation){const u=j.includes(".")?j.split(".")[0].length:j.length;const y=_.length>0?2:1;j="0".repeat(Math.max(0,y-u))+j}else{j+=y.verbose?" "+pluralize(C,u):D}_.push(j)};const j=parseMilliseconds(u);const $=BigInt(j.days);if(y.hideYearAndDays){add(BigInt($)*24n+BigInt(j.hours),"hour","h")}else{if(y.hideYear){add($,"day","d")}else{add($/365n,"year","y");add($%365n,"day","d")}add(Number(j.hours),"hour","h")}add(Number(j.minutes),"minute","m");if(!y.hideSeconds){if(y.separateMilliseconds||y.formatSubMilliseconds||!y.colonNotation&&u<1e3&&!y.subSecondsAsDecimals){const u=Number(j.seconds);const C=Number(j.milliseconds);const D=Number(j.microseconds);const _=Number(j.nanoseconds);add(u,"second","s");if(y.formatSubMilliseconds){add(C,"millisecond","ms");add(D,"microsecond","µs");add(_,"nanosecond","ns")}else{const u=C+D/1e3+_/1e6;const j=typeof y.millisecondsDecimalDigits==="number"?y.millisecondsDecimalDigits:0;const $=u>=1?Math.round(u):Math.ceil(u);const ne=j?u.toFixed(j):$;add(Number.parseFloat(ne),"millisecond","ms",ne)}}else{const D=(C?Number(u%ks):u)/1e3%60;const _=typeof y.secondsDecimalDigits==="number"?y.secondsDecimalDigits:1;const j=floorDecimals(D,_);const $=y.keepDecimalsOnWholeSeconds?j:j.replace(/\.0+$/,"");add(Number.parseFloat($),"second","s",$)}}if(_.length===0){return D+"0"+(y.verbose?" milliseconds":"ms")}const ne=y.colonNotation?":":" ";if(typeof y.unitCount==="number"){_=_.slice(0,Math.max(y.unitCount,1))}return D+_.join(ne)}const logError=(u,y)=>{if(u.failed){verboseLog({type:"error",verboseMessage:u.shortMessage,verboseInfo:y,result:u})}};const logResult=(u,y)=>{if(!isVerbose(y)){return}logError(u,y);logDuration(u,y)};const logDuration=(u,y)=>{const C=`(done in ${prettyMilliseconds(u.durationMs)})`;verboseLog({type:"duration",verboseMessage:C,verboseInfo:y,result:u})};const handleResult=(u,y,{reject:C})=>{logResult(u,y);if(u.failed&&C){throw u}return u};const getStdioItemType=(u,y)=>{if(isAsyncGenerator(u)){return"asyncGenerator"}if(isSyncGenerator(u)){return"generator"}if(isUrl(u)){return"fileUrl"}if(isFilePathObject(u)){return"filePath"}if(isWebStream(u)){return"webStream"}if(is_stream_isStream(u,{checkOpen:false})){return"native"}if(isUint8Array(u)){return"uint8Array"}if(isAsyncIterableObject(u)){return"asyncIterable"}if(isIterableObject(u)){return"iterable"}if(type_isTransformStream(u)){return getTransformStreamType({transform:u},y)}if(isTransformOptions(u)){return getTransformObjectType(u,y)}return"native"};const getTransformObjectType=(u,y)=>{if(isDuplexStream(u.transform,{checkOpen:false})){return getDuplexType(u,y)}if(type_isTransformStream(u.transform)){return getTransformStreamType(u,y)}return getGeneratorObjectType(u,y)};const getDuplexType=(u,y)=>{validateNonGeneratorType(u,y,"Duplex stream");return"duplex"};const getTransformStreamType=(u,y)=>{validateNonGeneratorType(u,y,"web TransformStream");return"webTransform"};const validateNonGeneratorType=({final:u,binary:y,objectMode:C},D,_)=>{checkUndefinedOption(u,`${D}.final`,_);checkUndefinedOption(y,`${D}.binary`,_);checkBooleanOption(C,`${D}.objectMode`)};const checkUndefinedOption=(u,y,C)=>{if(u!==undefined){throw new TypeError(`The \`${y}\` option can only be defined when using a generator, not a ${C}.`)}};const getGeneratorObjectType=({transform:u,final:y,binary:C,objectMode:D},_)=>{if(u!==undefined&&!isGenerator(u)){throw new TypeError(`The \`${_}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`)}if(isDuplexStream(y,{checkOpen:false})){throw new TypeError(`The \`${_}.final\` option must not be a Duplex stream.`)}if(type_isTransformStream(y)){throw new TypeError(`The \`${_}.final\` option must not be a web TransformStream.`)}if(y!==undefined&&!isGenerator(y)){throw new TypeError(`The \`${_}.final\` option must be a generator.`)}checkBooleanOption(C,`${_}.binary`);checkBooleanOption(D,`${_}.objectMode`);return isAsyncGenerator(u)||isAsyncGenerator(y)?"asyncGenerator":"generator"};const checkBooleanOption=(u,y)=>{if(u!==undefined&&typeof u!=="boolean"){throw new TypeError(`The \`${y}\` option must use a boolean.`)}};const isGenerator=u=>isAsyncGenerator(u)||isSyncGenerator(u);const isAsyncGenerator=u=>Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]";const isSyncGenerator=u=>Object.prototype.toString.call(u)==="[object GeneratorFunction]";const isTransformOptions=u=>isPlainObject(u)&&(u.transform!==undefined||u.final!==undefined);const isUrl=u=>Object.prototype.toString.call(u)==="[object URL]";const isRegularUrl=u=>isUrl(u)&&u.protocol!=="file:";const isFilePathObject=u=>isPlainObject(u)&&Object.keys(u).length>0&&Object.keys(u).every((u=>Qs.has(u)))&&isFilePathString(u.file);const Qs=new Set(["file","append"]);const isFilePathString=u=>typeof u==="string";const isUnknownStdioString=(u,y)=>u==="native"&&typeof y==="string"&&!xs.has(y);const xs=new Set(["ipc","ignore","inherit","overlapped","pipe"]);const type_isReadableStream=u=>Object.prototype.toString.call(u)==="[object ReadableStream]";const type_isWritableStream=u=>Object.prototype.toString.call(u)==="[object WritableStream]";const isWebStream=u=>type_isReadableStream(u)||type_isWritableStream(u);const type_isTransformStream=u=>type_isReadableStream(u?.readable)&&type_isWritableStream(u?.writable);const isAsyncIterableObject=u=>isObject(u)&&typeof u[Symbol.asyncIterator]==="function";const isIterableObject=u=>isObject(u)&&typeof u[Symbol.iterator]==="function";const isObject=u=>typeof u==="object"&&u!==null;const Fs=new Set(["generator","asyncGenerator","duplex","webTransform"]);const _s=new Set(["fileUrl","filePath","fileNumber"]);const Rs=new Set(["fileUrl","filePath"]);const Ls=new Set([...Rs,"webStream","nodeStream"]);const Ns=new Set(["webTransform","duplex"]);const Ts={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"};const getTransformObjectModes=(u,y,C,D)=>D==="output"?getOutputObjectModes(u,y,C):getInputObjectModes(u,y,C);const getOutputObjectModes=(u,y,C)=>{const D=y!==0&&C[y-1].value.readableObjectMode;const _=u??D;return{writableObjectMode:D,readableObjectMode:_}};const getInputObjectModes=(u,y,C)=>{const D=y===0?u===true:C[y-1].value.readableObjectMode;const _=y!==C.length-1&&(u??D);return{writableObjectMode:D,readableObjectMode:_}};const getFdObjectMode=(u,y)=>{const C=u.findLast((({type:u})=>Fs.has(u)));if(C===undefined){return false}return y==="input"?C.value.writableObjectMode:C.value.readableObjectMode};const normalizeTransforms=(u,y,C,D)=>[...u.filter((({type:u})=>!Fs.has(u))),...getTransforms(u,y,C,D)];const getTransforms=(u,y,C,{encoding:D})=>{const _=u.filter((({type:u})=>Fs.has(u)));const j=Array.from({length:_.length});for(const[u,$]of Object.entries(_)){j[u]=normalizeTransform({stdioItem:$,index:Number(u),newTransforms:j,optionName:y,direction:C,encoding:D})}return sortTransforms(j,C)};const normalizeTransform=({stdioItem:u,stdioItem:{type:y},index:C,newTransforms:D,optionName:_,direction:j,encoding:$})=>{if(y==="duplex"){return normalizeDuplex({stdioItem:u,optionName:_})}if(y==="webTransform"){return normalizeTransformStream({stdioItem:u,index:C,newTransforms:D,direction:j})}return normalizeGenerator({stdioItem:u,index:C,newTransforms:D,direction:j,encoding:$})};const normalizeDuplex=({stdioItem:u,stdioItem:{value:{transform:y,transform:{writableObjectMode:C,readableObjectMode:D},objectMode:_=D}},optionName:j})=>{if(_&&!D){throw new TypeError(`The \`${j}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`)}if(!_&&D){throw new TypeError(`The \`${j}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`)}return{...u,value:{transform:y,writableObjectMode:C,readableObjectMode:D}}};const normalizeTransformStream=({stdioItem:u,stdioItem:{value:y},index:C,newTransforms:D,direction:_})=>{const{transform:j,objectMode:$}=isPlainObject(y)?y:{transform:y};const{writableObjectMode:ne,readableObjectMode:oe}=getTransformObjectModes($,C,D,_);return{...u,value:{transform:j,writableObjectMode:ne,readableObjectMode:oe}}};const normalizeGenerator=({stdioItem:u,stdioItem:{value:y},index:C,newTransforms:D,direction:_,encoding:j})=>{const{transform:$,final:ne,binary:oe=false,preserveNewlines:le=false,objectMode:de}=isPlainObject(y)?y:{transform:y};const Ae=oe||hs.has(j);const{writableObjectMode:pe,readableObjectMode:Ee}=getTransformObjectModes(de,C,D,_);return{...u,value:{transform:$,final:ne,binary:Ae,preserveNewlines:le,writableObjectMode:pe,readableObjectMode:Ee}}};const sortTransforms=(u,y)=>y==="input"?u.reverse():u;const getStreamDirection=(u,y,C)=>{const D=u.map((u=>getStdioItemDirection(u,y)));if(D.includes("input")&&D.includes("output")){throw new TypeError(`The \`${C}\` option must not be an array of both readable and writable values.`)}return D.find(Boolean)??Ms};const getStdioItemDirection=({type:u,value:y},C)=>Ps[C]??Os[u](y);const Ps=["input","output","output"];const anyDirection=()=>undefined;const alwaysInput=()=>"input";const Os={generator:anyDirection,asyncGenerator:anyDirection,fileUrl:anyDirection,filePath:anyDirection,iterable:alwaysInput,asyncIterable:alwaysInput,uint8Array:alwaysInput,webStream:u=>type_isWritableStream(u)?"output":"input",nodeStream(u){if(!isReadableStream(u,{checkOpen:false})){return"output"}return isWritableStream(u,{checkOpen:false})?undefined:"input"},webTransform:anyDirection,duplex:anyDirection,native(u){const y=getStandardStreamDirection(u);if(y!==undefined){return y}if(is_stream_isStream(u,{checkOpen:false})){return Os.nodeStream(u)}}};const getStandardStreamDirection=u=>{if([0,un.stdin].includes(u)){return"input"}if([1,2,un.stdout,un.stderr].includes(u)){return"output"}};const Ms="output";const normalizeIpcStdioArray=(u,y)=>y&&!u.includes("ipc")?[...u,"ipc"]:u;const normalizeStdioOption=({stdio:u,ipc:y,buffer:C,...D},_,j)=>{const $=getStdioArray(u,D).map(((u,y)=>stdio_option_addDefaultValue(u,y)));return j?normalizeStdioSync($,C,_):normalizeIpcStdioArray($,y)};const getStdioArray=(u,y)=>{if(u===undefined){return dn.map((u=>y[u]))}if(hasAlias(y)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${dn.map((u=>`\`${u}\``)).join(", ")}`)}if(typeof u==="string"){return[u,u,u]}if(!Array.isArray(u)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``)}const C=Math.max(u.length,dn.length);return Array.from({length:C},((y,C)=>u[C]))};const hasAlias=u=>dn.some((y=>u[y]!==undefined));const stdio_option_addDefaultValue=(u,y)=>{if(Array.isArray(u)){return u.map((u=>stdio_option_addDefaultValue(u,y)))}if(u===null||u===undefined){return y>=dn.length?"ignore":"pipe"}return u};const normalizeStdioSync=(u,y,C)=>u.map(((u,D)=>!y[D]&&D!==0&&!isFullVerbose(C,D)&&isOutputPipeOnly(u)?"ignore":u));const isOutputPipeOnly=u=>u==="pipe"||Array.isArray(u)&&u.every((u=>u==="pipe"));const handleNativeStream=({stdioItem:u,stdioItem:{type:y},isStdioArray:C,fdNumber:D,direction:_,isSync:j})=>{if(!C||y!=="native"){return u}return j?handleNativeStreamSync({stdioItem:u,fdNumber:D,direction:_}):handleNativeStreamAsync({stdioItem:u,fdNumber:D})};const handleNativeStreamSync=({stdioItem:u,stdioItem:{value:y,optionName:C},fdNumber:D,direction:_})=>{const j=getTargetFd({value:y,optionName:C,fdNumber:D,direction:_});if(j!==undefined){return j}if(is_stream_isStream(y,{checkOpen:false})){throw new TypeError(`The \`${C}: Stream\` option cannot both be an array and include a stream with synchronous methods.`)}return u};const getTargetFd=({value:u,optionName:y,fdNumber:C,direction:D})=>{const _=getTargetFdNumber(u,C);if(_===undefined){return}if(D==="output"){return{type:"fileNumber",value:_,optionName:y}}if(Fn.isatty(_)){throw new TypeError(`The \`${y}: ${serializeOptionValue(u)}\` option is invalid: it cannot be a TTY with synchronous methods.`)}return{type:"uint8Array",value:bufferToUint8Array((0,Rt.readFileSync)(_)),optionName:y}};const getTargetFdNumber=(u,y)=>{if(u==="inherit"){return y}if(typeof u==="number"){return u}const C=fn.indexOf(u);if(C!==-1){return C}};const handleNativeStreamAsync=({stdioItem:u,stdioItem:{value:y,optionName:C},fdNumber:D})=>{if(y==="inherit"){return{type:"nodeStream",value:getStandardStream(D,y,C),optionName:C}}if(typeof y==="number"){return{type:"nodeStream",value:getStandardStream(y,y,C),optionName:C}}if(is_stream_isStream(y,{checkOpen:false})){return{type:"nodeStream",value:y,optionName:C}}return u};const getStandardStream=(u,y,C)=>{const D=fn[u];if(D===undefined){throw new TypeError(`The \`${C}: ${y}\` option is invalid: no such standard stream.`)}return D};const handleInputOptions=({input:u,inputFile:y},C)=>C===0?[...handleInputOption(u),...handleInputFileOption(y)]:[];const handleInputOption=u=>u===undefined?[]:[{type:getInputType(u),value:u,optionName:"input"}];const getInputType=u=>{if(isReadableStream(u,{checkOpen:false})){return"nodeStream"}if(typeof u==="string"){return"string"}if(isUint8Array(u)){return"uint8Array"}throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")};const handleInputFileOption=u=>u===undefined?[]:[{...getInputFileType(u),optionName:"inputFile"}];const getInputFileType=u=>{if(isUrl(u)){return{type:"fileUrl",value:u}}if(isFilePathString(u)){return{type:"filePath",value:{file:u}}}throw new Error("The `inputFile` option must be a file path string or a file URL.")};const filterDuplicates=u=>u.filter(((y,C)=>u.every(((u,D)=>y.value!==u.value||C>=D||y.type==="generator"||y.type==="asyncGenerator"))));const getDuplicateStream=({stdioItem:{type:u,value:y,optionName:C},direction:D,fileDescriptors:_,isSync:j})=>{const $=getOtherStdioItems(_,u);if($.length===0){return}if(j){validateDuplicateStreamSync({otherStdioItems:$,type:u,value:y,optionName:C,direction:D});return}if(Ls.has(u)){return getDuplicateStreamInstance({otherStdioItems:$,type:u,value:y,optionName:C,direction:D})}if(Ns.has(u)){validateDuplicateTransform({otherStdioItems:$,type:u,value:y,optionName:C})}};const getOtherStdioItems=(u,y)=>u.flatMap((({direction:u,stdioItems:C})=>C.filter((u=>u.type===y)).map((y=>({...y,direction:u})))));const validateDuplicateStreamSync=({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})=>{if(Rs.has(y)){getDuplicateStreamInstance({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})}};const getDuplicateStreamInstance=({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})=>{const j=u.filter((u=>hasSameValue(u,C)));if(j.length===0){return}const $=j.find((u=>u.direction!==_));throwOnDuplicateStream($,D,y);return _==="output"?j[0].stream:undefined};const hasSameValue=({type:u,value:y},C)=>{if(u==="filePath"){return y.file===C.file}if(u==="fileUrl"){return y.href===C.href}return y===C};const validateDuplicateTransform=({otherStdioItems:u,type:y,value:C,optionName:D})=>{const _=u.find((({value:{transform:u}})=>u===C.transform));throwOnDuplicateStream(_,D,y)};const throwOnDuplicateStream=(u,y,C)=>{if(u!==undefined){throw new TypeError(`The \`${u.optionName}\` and \`${y}\` options must not target ${Ts[C]} that is the same.`)}};const handleStdio=(u,y,C,D)=>{const _=normalizeStdioOption(y,C,D);const j=_.map(((u,C)=>getFileDescriptor({stdioOption:u,fdNumber:C,options:y,isSync:D})));const $=getFinalFileDescriptors({initialFileDescriptors:j,addProperties:u,options:y,isSync:D});y.stdio=$.map((({stdioItems:u})=>forwardStdio(u)));return $};const getFileDescriptor=({stdioOption:u,fdNumber:y,options:C,isSync:D})=>{const _=getStreamName(y);const{stdioItems:j,isStdioArray:$}=initializeStdioItems({stdioOption:u,fdNumber:y,options:C,optionName:_});const ne=getStreamDirection(j,y,_);const oe=j.map((u=>handleNativeStream({stdioItem:u,isStdioArray:$,fdNumber:y,direction:ne,isSync:D})));const le=normalizeTransforms(oe,_,ne,C);const de=getFdObjectMode(le,ne);validateFileObjectMode(le,de);return{direction:ne,objectMode:de,stdioItems:le}};const initializeStdioItems=({stdioOption:u,fdNumber:y,options:C,optionName:D})=>{const _=Array.isArray(u)?u:[u];const j=[..._.map((u=>initializeStdioItem(u,D))),...handleInputOptions(C,y)];const $=filterDuplicates(j);const ne=$.length>1;validateStdioArray($,ne,D);validateStreams($);return{stdioItems:$,isStdioArray:ne}};const initializeStdioItem=(u,y)=>({type:getStdioItemType(u,y),value:u,optionName:y});const validateStdioArray=(u,y,C)=>{if(u.length===0){throw new TypeError(`The \`${C}\` option must not be an empty array.`)}if(!y){return}for(const{value:y,optionName:C}of u){if(Us.has(y)){throw new Error(`The \`${C}\` option must not include \`${y}\`.`)}}};const Us=new Set(["ignore","ipc"]);const validateStreams=u=>{for(const y of u){validateFileStdio(y)}};const validateFileStdio=({type:u,value:y,optionName:C})=>{if(isRegularUrl(y)){throw new TypeError(`The \`${C}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`)}if(isUnknownStdioString(u,y)){throw new TypeError(`The \`${C}: { file: '...' }\` option must be used instead of \`${C}: '...'\`.`)}};const validateFileObjectMode=(u,y)=>{if(!y){return}const C=u.find((({type:u})=>_s.has(u)));if(C!==undefined){throw new TypeError(`The \`${C.optionName}\` option cannot use both files and transforms in objectMode.`)}};const getFinalFileDescriptors=({initialFileDescriptors:u,addProperties:y,options:C,isSync:D})=>{const _=[];try{for(const j of u){_.push(getFinalFileDescriptor({fileDescriptor:j,fileDescriptors:_,addProperties:y,options:C,isSync:D}))}return _}catch(u){cleanupCustomStreams(_);throw u}};const getFinalFileDescriptor=({fileDescriptor:{direction:u,objectMode:y,stdioItems:C},fileDescriptors:D,addProperties:_,options:j,isSync:$})=>{const ne=C.map((y=>addStreamProperties({stdioItem:y,addProperties:_,direction:u,options:j,fileDescriptors:D,isSync:$})));return{direction:u,objectMode:y,stdioItems:ne}};const addStreamProperties=({stdioItem:u,addProperties:y,direction:C,options:D,fileDescriptors:_,isSync:j})=>{const $=getDuplicateStream({stdioItem:u,direction:C,fileDescriptors:_,isSync:j});if($!==undefined){return{...u,stream:$}}return{...u,...y[C][u.type](u,D)}};const cleanupCustomStreams=u=>{for(const{stdioItems:y}of u){for(const{stream:u}of y){if(u!==undefined&&!isStandardStream(u)){u.destroy()}}}};const forwardStdio=u=>{if(u.length>1){return u.some((({value:u})=>u==="overlapped"))?"overlapped":"pipe"}const[{type:y,value:C}]=u;return y==="native"?C:"pipe"};const handleStdioSync=(u,y)=>handleStdio(Gs,u,y,true);const forbiddenIfSync=({type:u,optionName:y})=>{throwInvalidSyncValue(y,Ts[u])};const forbiddenNativeIfSync=({optionName:u,value:y})=>{if(y==="ipc"||y==="overlapped"){throwInvalidSyncValue(u,`"${y}"`)}return{}};const throwInvalidSyncValue=(u,y)=>{throw new TypeError(`The \`${u}\` option cannot be ${y} with synchronous methods.`)};const Hs={generator(){},asyncGenerator:forbiddenIfSync,webStream:forbiddenIfSync,nodeStream:forbiddenIfSync,webTransform:forbiddenIfSync,duplex:forbiddenIfSync,asyncIterable:forbiddenIfSync,native:forbiddenNativeIfSync};const Gs={input:{...Hs,fileUrl:({value:u})=>({contents:[bufferToUint8Array((0,Rt.readFileSync)(u))]}),filePath:({value:{file:u}})=>({contents:[bufferToUint8Array((0,Rt.readFileSync)(u))]}),fileNumber:forbiddenIfSync,iterable:({value:u})=>({contents:[...u]}),string:({value:u})=>({contents:[u]}),uint8Array:({value:u})=>({contents:[u]})},output:{...Hs,fileUrl:({value:u})=>({path:u}),filePath:({value:{file:u,append:y}})=>({path:u,append:y}),fileNumber:({value:u})=>({path:u}),iterable:forbiddenIfSync,string:forbiddenIfSync,uint8Array:forbiddenIfSync}};const stripNewline=(u,{stripFinalNewline:y},C)=>getStripFinalNewline(y,C)&&u!==undefined&&!Array.isArray(u)?strip_final_newline_stripFinalNewline(u):u;const getStripFinalNewline=(u,y)=>y==="all"?u[1]||u[2]:u[y];const getSplitLinesGenerator=(u,y,C,D)=>u||C?undefined:initializeSplitLines(y,D);const splitLinesSync=(u,y,C)=>C?u.flatMap((u=>splitLinesItemSync(u,y))):splitLinesItemSync(u,y);const splitLinesItemSync=(u,y)=>{const{transform:C,final:D}=initializeSplitLines(y,{});return[...C(u),...D()]};const initializeSplitLines=(u,y)=>{y.previousChunks="";return{transform:splitGenerator.bind(undefined,y,u),final:linesFinal.bind(undefined,y)}};const splitGenerator=function*(u,y,C){if(typeof C!=="string"){yield C;return}let{previousChunks:D}=u;let _=-1;for(let j=0;j<C.length;j+=1){if(C[j]==="\n"){const $=getNewlineLength(C,j,y,u);let ne=C.slice(_+1,j+1-$);if(D.length>0){ne=concatString(D,ne);D=""}yield ne;_=j}}if(_!==C.length-1){D=concatString(D,C.slice(_+1))}u.previousChunks=D};const getNewlineLength=(u,y,C,D)=>{if(C){return 0}D.isWindowsNewline=y!==0&&u[y-1]==="\r";return D.isWindowsNewline?2:1};const linesFinal=function*({previousChunks:u}){if(u.length>0){yield u}};const getAppendNewlineGenerator=({binary:u,preserveNewlines:y,readableObjectMode:C,state:D})=>u||y||C?undefined:{transform:appendNewlineGenerator.bind(undefined,D)};const appendNewlineGenerator=function*({isWindowsNewline:u=false},y){const{unixNewline:C,windowsNewline:D,LF:_,concatBytes:j}=typeof y==="string"?Ws:js;if(y.at(-1)===_){yield y;return}const $=u?D:C;yield j(y,$)};const concatString=(u,y)=>`${u}${y}`;const Ws={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:concatString};const concatUint8Array=(u,y)=>{const C=new Uint8Array(u.length+y.length);C.set(u,0);C.set(y,u.length);return C};const js={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:concatUint8Array};var zs=C(4573);const getValidateTransformInput=(u,y)=>u?undefined:validateStringTransformInput.bind(undefined,y);const validateStringTransformInput=function*(u,y){if(typeof y!=="string"&&!isUint8Array(y)&&!zs.Buffer.isBuffer(y)){throw new TypeError(`The \`${u}\` option's transform must use "objectMode: true" to receive as input: ${typeof y}.`)}yield y};const getValidateTransformReturn=(u,y)=>u?validateObjectTransformReturn.bind(undefined,y):validateStringTransformReturn.bind(undefined,y);const validateObjectTransformReturn=function*(u,y){validateEmptyReturn(u,y);yield y};const validateStringTransformReturn=function*(u,y){validateEmptyReturn(u,y);if(typeof y!=="string"&&!isUint8Array(y)){throw new TypeError(`The \`${u}\` option's function must yield a string or an Uint8Array, not ${typeof y}.`)}yield y};const validateEmptyReturn=(u,y)=>{if(y===null||y===undefined){throw new TypeError(`The \`${u}\` option's function must not call \`yield ${y}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)}};const getEncodingTransformGenerator=(u,y,C)=>{if(C){return}if(u){return{transform:encodingUint8ArrayGenerator.bind(undefined,new TextEncoder)}}const D=new Ot.StringDecoder(y);return{transform:encodingStringGenerator.bind(undefined,D),final:encodingStringFinal.bind(undefined,D)}};const encodingUint8ArrayGenerator=function*(u,y){if(zs.Buffer.isBuffer(y)){yield bufferToUint8Array(y)}else if(typeof y==="string"){yield u.encode(y)}else{yield y}};const encodingStringGenerator=function*(u,y){yield isUint8Array(y)?u.write(y):y};const encodingStringFinal=function*(u){const y=u.end();if(y!==""){yield y}};const $s=(0,cn.callbackify)((async(u,y,C,D)=>{y.currentIterable=u(...C);try{for await(const u of y.currentIterable){D.push(u)}}finally{delete y.currentIterable}}));const transformChunk=async function*(u,y,C){if(C===y.length){yield u;return}const{transform:D=identityGenerator}=y[C];for await(const _ of D(u)){yield*transformChunk(_,y,C+1)}};const finalChunks=async function*(u){for(const[y,{final:C}]of Object.entries(u)){yield*generatorFinalChunks(C,Number(y),u)}};const generatorFinalChunks=async function*(u,y,C){if(u===undefined){return}for await(const D of u()){yield*transformChunk(D,C,y+1)}};const qs=(0,cn.callbackify)((async({currentIterable:u},y)=>{if(u!==undefined){await(y?u.throw(y):u.return());return}if(y){throw y}}));const identityGenerator=function*(u){yield u};const pushChunksSync=(u,y,C,D)=>{try{for(const D of u(...y)){C.push(D)}D()}catch(u){D(u)}};const runTransformSync=(u,y)=>[...y.flatMap((y=>[...transformChunkSync(y,u,0)])),...finalChunksSync(u)];const transformChunkSync=function*(u,y,C){if(C===y.length){yield u;return}const{transform:D=run_sync_identityGenerator}=y[C];for(const _ of D(u)){yield*transformChunkSync(_,y,C+1)}};const finalChunksSync=function*(u){for(const[y,{final:C}]of Object.entries(u)){yield*generatorFinalChunksSync(C,Number(y),u)}};const generatorFinalChunksSync=function*(u,y,C){if(u===undefined){return}for(const D of u()){yield*transformChunkSync(D,C,y+1)}};const run_sync_identityGenerator=function*(u){yield u};const generatorToStream=({value:u,value:{transform:y,final:C,writableObjectMode:D,readableObjectMode:_},optionName:j},{encoding:$})=>{const ne={};const oe=addInternalGenerators(u,$,j);const le=isAsyncGenerator(y);const de=isAsyncGenerator(C);const Ae=le?$s.bind(undefined,transformChunk,ne):pushChunksSync.bind(undefined,transformChunkSync);const pe=le||de?$s.bind(undefined,finalChunks,ne):pushChunksSync.bind(undefined,finalChunksSync);const Ee=le||de?qs.bind(undefined,ne):undefined;const Ce=new Pt.Transform({writableObjectMode:D,writableHighWaterMark:(0,Pt.getDefaultHighWaterMark)(D),readableObjectMode:_,readableHighWaterMark:(0,Pt.getDefaultHighWaterMark)(_),transform(u,y,C){Ae([u,oe,0],this,C)},flush(u){pe([oe],this,u)},destroy:Ee});return{stream:Ce}};const runGeneratorsSync=(u,y,C,D)=>{const _=y.filter((({type:u})=>u==="generator"));const j=D?_.reverse():_;for(const{value:y,optionName:D}of j){const _=addInternalGenerators(y,C,D);u=runTransformSync(_,u)}return u};const addInternalGenerators=({transform:u,final:y,binary:C,writableObjectMode:D,readableObjectMode:_,preserveNewlines:j},$,ne)=>{const oe={};return[{transform:getValidateTransformInput(D,ne)},getEncodingTransformGenerator(C,$,D),getSplitLinesGenerator(C,j,D,oe),{transform:u,final:y},{transform:getValidateTransformReturn(_,ne)},getAppendNewlineGenerator({binary:C,preserveNewlines:j,readableObjectMode:_,state:oe})].filter(Boolean)};const addInputOptionsSync=(u,y)=>{for(const C of getInputFdNumbers(u)){addInputOptionSync(u,C,y)}};const getInputFdNumbers=u=>new Set(Object.entries(u).filter((([,{direction:u}])=>u==="input")).map((([u])=>Number(u))));const addInputOptionSync=(u,y,C)=>{const{stdioItems:D}=u[y];const _=D.filter((({contents:u})=>u!==undefined));if(_.length===0){return}if(y!==0){const[{type:u,optionName:y}]=_;throw new TypeError(`Only the \`stdin\` option, not \`${y}\`, can be ${Ts[u]} with synchronous methods.`)}const j=_.map((({contents:u})=>u));const $=j.map((u=>applySingleInputGeneratorsSync(u,D)));C.input=joinToUint8Array($)};const applySingleInputGeneratorsSync=(u,y)=>{const C=runGeneratorsSync(u,y,"utf8",true);validateSerializable(C);return joinToUint8Array(C)};const validateSerializable=u=>{const y=u.find((u=>typeof u!=="string"&&!isUint8Array(u)));if(y!==undefined){throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${y}.`)}};const shouldLogOutput=({stdioItems:u,encoding:y,verboseInfo:C,fdNumber:D})=>D!=="all"&&isFullVerbose(C,D)&&!hs.has(y)&&fdUsesVerbose(D)&&(u.some((({type:u,value:y})=>u==="native"&&Vs.has(y)))||u.every((({type:u})=>Fs.has(u))));const fdUsesVerbose=u=>u===1||u===2;const Vs=new Set(["pipe","overlapped"]);const logLines=async(u,y,C,D)=>{for await(const _ of u){if(!isPipingStream(y)){logLine(_,C,D)}}};const logLinesSync=(u,y,C)=>{for(const D of u){logLine(D,y,C)}};const isPipingStream=u=>u._readableState.pipes.length>0;const logLine=(u,y,C)=>{const D=serializeVerboseMessage(u);verboseLog({type:"output",verboseMessage:D,fdNumber:y,verboseInfo:C})};const transformOutputSync=({fileDescriptors:u,syncResult:{output:y},options:C,isMaxBuffer:D,verboseInfo:_})=>{if(y===null){return{output:Array.from({length:3})}}const j={};const $=new Set([]);const ne=y.map(((y,ne)=>transformOutputResultSync({result:y,fileDescriptors:u,fdNumber:ne,state:j,outputFiles:$,isMaxBuffer:D,verboseInfo:_},C)));return{output:ne,...j}};const transformOutputResultSync=({result:u,fileDescriptors:y,fdNumber:C,state:D,outputFiles:_,isMaxBuffer:j,verboseInfo:$},{buffer:ne,encoding:oe,lines:le,stripFinalNewline:de,maxBuffer:Ae})=>{if(u===null){return}const pe=truncateMaxBufferSync(u,j,Ae);const Ee=bufferToUint8Array(pe);const{stdioItems:Ce,objectMode:Ie}=y[C];const Be=runOutputGeneratorsSync([Ee],Ce,oe,D);const{serializedResult:De,finalResult:xe=De}=serializeChunks({chunks:Be,objectMode:Ie,encoding:oe,lines:le,stripFinalNewline:de,fdNumber:C});logOutputSync({serializedResult:De,fdNumber:C,state:D,verboseInfo:$,encoding:oe,stdioItems:Ce,objectMode:Ie});const Fe=ne[C]?xe:undefined;try{if(D.error===undefined){writeToFiles(De,Ce,_)}return Fe}catch(u){D.error=u;return Fe}};const runOutputGeneratorsSync=(u,y,C,D)=>{try{return runGeneratorsSync(u,y,C,false)}catch(y){D.error=y;return u}};const serializeChunks=({chunks:u,objectMode:y,encoding:C,lines:D,stripFinalNewline:_,fdNumber:j})=>{if(y){return{serializedResult:u}}if(C==="buffer"){return{serializedResult:joinToUint8Array(u)}}const $=joinToString(u,C);if(D[j]){return{serializedResult:$,finalResult:splitLinesSync($,!_[j],y)}}return{serializedResult:$}};const logOutputSync=({serializedResult:u,fdNumber:y,state:C,verboseInfo:D,encoding:_,stdioItems:j,objectMode:$})=>{if(!shouldLogOutput({stdioItems:j,encoding:_,verboseInfo:D,fdNumber:y})){return}const ne=splitLinesSync(u,false,$);try{logLinesSync(ne,y,D)}catch(u){C.error??=u}};const writeToFiles=(u,y,C)=>{for(const{path:D,append:_}of y.filter((({type:u})=>_s.has(u)))){const y=typeof D==="string"?D:D.toString();if(_||C.has(y)){(0,Rt.appendFileSync)(D,u)}else{C.add(y);(0,Rt.writeFileSync)(D,u)}}};const getAllSync=([,u,y],C)=>{if(!C.all){return}if(u===undefined){return y}if(y===undefined){return u}if(Array.isArray(u)){return Array.isArray(y)?[...u,...y]:[...u,stripNewline(y,C,"all")]}if(Array.isArray(y)){return[stripNewline(u,C,"all"),...y]}if(isUint8Array(u)&&isUint8Array(y)){return concatUint8Arrays([u,y])}return`${u}${y}`};const waitForExit=async(u,y)=>{const[C,D]=await waitForExitOrError(u);y.isForcefullyTerminated??=false;return[C,D]};const waitForExitOrError=async u=>{const[y,C]=await Promise.allSettled([(0,Tt.once)(u,"spawn"),(0,Tt.once)(u,"exit")]);if(y.status==="rejected"){return[]}return C.status==="rejected"?waitForSubprocessExit(u):C.value};const waitForSubprocessExit=async u=>{try{return await(0,Tt.once)(u,"exit")}catch{return waitForSubprocessExit(u)}};const waitForSuccessfulExit=async u=>{const[y,C]=await u;if(!isSubprocessErrorExit(y,C)&&isFailedExit(y,C)){throw new DiscardedError}return[y,C]};const isSubprocessErrorExit=(u,y)=>u===undefined&&y===undefined;const isFailedExit=(u,y)=>u!==0||y!==null;const getExitResultSync=({error:u,status:y,signal:C,output:D},{maxBuffer:_})=>{const j=getResultError(u,y,C);const $=j?.code==="ETIMEDOUT";const ne=isMaxBufferSync(j,D,_);return{resultError:j,exitCode:y,signal:C,timedOut:$,isMaxBuffer:ne}};const getResultError=(u,y,C)=>{if(u!==undefined){return u}return isFailedExit(y,C)?new DiscardedError:undefined};const execaCoreSync=(u,y,C)=>{const{file:D,commandArguments:_,command:j,escapedCommand:$,startTime:ne,verboseInfo:oe,options:le,fileDescriptors:de}=handleSyncArguments(u,y,C);const Ae=spawnSubprocessSync({file:D,commandArguments:_,options:le,command:j,escapedCommand:$,verboseInfo:oe,fileDescriptors:de,startTime:ne});return handleResult(Ae,oe,le)};const handleSyncArguments=(u,y,C)=>{const{command:D,escapedCommand:_,startTime:j,verboseInfo:$}=handleCommand(u,y,C);const ne=normalizeSyncOptions(C);const{file:oe,commandArguments:le,options:de}=normalizeOptions(u,y,ne);validateSyncOptions(de);const Ae=handleStdioSync(de,$);return{file:oe,commandArguments:le,command:D,escapedCommand:_,startTime:j,verboseInfo:$,options:de,fileDescriptors:Ae}};const normalizeSyncOptions=u=>u.node&&!u.ipc?{...u,ipc:false}:u;const validateSyncOptions=({ipc:u,ipcInput:y,detached:C,cancelSignal:D})=>{if(y){throwInvalidSyncOption("ipcInput")}if(u){throwInvalidSyncOption("ipc: true")}if(C){throwInvalidSyncOption("detached: true")}if(D){throwInvalidSyncOption("cancelSignal")}};const throwInvalidSyncOption=u=>{throw new TypeError(`The "${u}" option cannot be used with synchronous methods.`)};const spawnSubprocessSync=({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,verboseInfo:j,fileDescriptors:$,startTime:ne})=>{const oe=runSubprocessSync({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,fileDescriptors:$,startTime:ne});if(oe.failed){return oe}const{resultError:le,exitCode:de,signal:Ae,timedOut:pe,isMaxBuffer:Ee}=getExitResultSync(oe,C);const{output:Ce,error:Ie=le}=transformOutputSync({fileDescriptors:$,syncResult:oe,options:C,isMaxBuffer:Ee,verboseInfo:j});const Be=Ce.map(((u,y)=>stripNewline(u,C,y)));const De=stripNewline(getAllSync(Ce,C),C,"all");return getSyncResult({error:Ie,exitCode:de,signal:Ae,timedOut:pe,isMaxBuffer:Ee,stdio:Be,all:De,options:C,command:D,escapedCommand:_,startTime:ne})};const runSubprocessSync=({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,fileDescriptors:j,startTime:$})=>{try{addInputOptionsSync(j,C);const D=normalizeSpawnSyncOptions(C);return(0,rn.spawnSync)(...concatenateShell(u,y,D))}catch(u){return makeEarlyError({error:u,command:D,escapedCommand:_,fileDescriptors:j,options:C,startTime:$,isSync:true})}};const normalizeSpawnSyncOptions=({encoding:u,maxBuffer:y,...C})=>({...C,encoding:"buffer",maxBuffer:getMaxBufferSync(y)});const getSyncResult=({error:u,exitCode:y,signal:C,timedOut:D,isMaxBuffer:_,stdio:j,all:$,options:ne,command:oe,escapedCommand:le,startTime:de})=>u===undefined?makeSuccessResult({command:oe,escapedCommand:le,stdio:j,all:$,ipcOutput:[],options:ne,startTime:de}):makeError({error:u,command:oe,escapedCommand:le,timedOut:D,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:_,isForcefullyTerminated:false,exitCode:y,signal:C,stdio:j,all:$,ipcOutput:[],options:ne,startTime:de,isSync:true});const getOneMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},{reference:_=true,filter:j}={})=>{validateIpcMethod({methodName:"getOneMessage",isSubprocess:C,ipc:D,isConnected:isConnected(u)});return getOneMessageAsync({anyProcess:u,channel:y,isSubprocess:C,filter:j,reference:_})};const getOneMessageAsync=async({anyProcess:u,channel:y,isSubprocess:C,filter:D,reference:_})=>{addReference(y,_);const j=getIpcEmitter(u,y,C);const $=new AbortController;try{return await Promise.race([getMessage(j,D,$),get_one_throwOnDisconnect(j,C,$),throwOnStrictError(j,C,$)])}catch(y){disconnect(u);throw y}finally{$.abort();removeReference(y,_)}};const getMessage=async(u,y,{signal:C})=>{if(y===undefined){const[y]=await(0,Tt.once)(u,"message",{signal:C});return y}for await(const[D]of(0,Tt.on)(u,"message",{signal:C})){if(y(D)){return D}}};const get_one_throwOnDisconnect=async(u,y,{signal:C})=>{await(0,Tt.once)(u,"disconnect",{signal:C});throwOnEarlyDisconnect(y)};const throwOnStrictError=async(u,y,{signal:C})=>{const[D]=await(0,Tt.once)(u,"strict:error",{signal:C});throw getStrictResponseError(D,y)};const getEachMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},{reference:_=true}={})=>loopOnMessages({anyProcess:u,channel:y,isSubprocess:C,ipc:D,shouldAwait:!C,reference:_});const loopOnMessages=({anyProcess:u,channel:y,isSubprocess:C,ipc:D,shouldAwait:_,reference:j})=>{validateIpcMethod({methodName:"getEachMessage",isSubprocess:C,ipc:D,isConnected:isConnected(u)});addReference(y,j);const $=getIpcEmitter(u,y,C);const ne=new AbortController;const oe={};stopOnDisconnect(u,$,ne);abortOnStrictError({ipcEmitter:$,isSubprocess:C,controller:ne,state:oe});return iterateOnMessages({anyProcess:u,channel:y,ipcEmitter:$,isSubprocess:C,shouldAwait:_,controller:ne,state:oe,reference:j})};const stopOnDisconnect=async(u,y,C)=>{try{await(0,Tt.once)(y,"disconnect",{signal:C.signal});C.abort()}catch{}};const abortOnStrictError=async({ipcEmitter:u,isSubprocess:y,controller:C,state:D})=>{try{const[_]=await(0,Tt.once)(u,"strict:error",{signal:C.signal});D.error=getStrictResponseError(_,y);C.abort()}catch{}};const iterateOnMessages=async function*({anyProcess:u,channel:y,ipcEmitter:C,isSubprocess:D,shouldAwait:_,controller:j,state:$,reference:ne}){try{for await(const[u]of(0,Tt.on)(C,"message",{signal:j.signal})){throwIfStrictError($);yield u}}catch{throwIfStrictError($)}finally{j.abort();removeReference(y,ne);if(!D){disconnect(u)}if(_){await u}}};const throwIfStrictError=({error:u})=>{if(u){throw u}};const addIpcMethods=(u,{ipc:y})=>{Object.assign(u,getIpcMethods(u,false,y))};const getIpcExport=()=>{const u=un;const y=true;const C=un.channel!==undefined;return{...getIpcMethods(u,y,C),getCancelSignal:getCancelSignal.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C})}};const getIpcMethods=(u,y,C)=>({sendMessage:sendMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C}),getOneMessage:getOneMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C}),getEachMessage:getEachMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C})});const handleEarlyError=({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,verboseInfo:$})=>{cleanupCustomStreams(D);const ne=new rn.ChildProcess;createDummyStreams(ne,D);Object.assign(ne,{readable:readable,writable:writable,duplex:duplex});const oe=makeEarlyError({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,isSync:false});const le=handleDummyPromise(oe,$,_);return{subprocess:ne,promise:le}};const createDummyStreams=(u,y)=>{const C=createDummyStream();const D=createDummyStream();const _=createDummyStream();const j=Array.from({length:y.length-3},createDummyStream);const $=createDummyStream();const ne=[C,D,_,...j];Object.assign(u,{stdin:C,stdout:D,stderr:_,all:$,stdio:ne})};const createDummyStream=()=>{const u=new Pt.PassThrough;u.end();return u};const readable=()=>new Pt.Readable({read(){}});const writable=()=>new Pt.Writable({write(){}});const duplex=()=>new Pt.Duplex({read(){},write(){}});const handleDummyPromise=async(u,y,C)=>handleResult(u,y,C);const handleStdioAsync=(u,y)=>handleStdio(Ks,u,y,false);const forbiddenIfAsync=({type:u,optionName:y})=>{throw new TypeError(`The \`${y}\` option cannot be ${Ts[u]}.`)};const Js={fileNumber:forbiddenIfAsync,generator:generatorToStream,asyncGenerator:generatorToStream,nodeStream:({value:u})=>({stream:u}),webTransform({value:{transform:u,writableObjectMode:y,readableObjectMode:C}}){const D=y||C;const _=Pt.Duplex.fromWeb(u,{objectMode:D});return{stream:_}},duplex:({value:{transform:u}})=>({stream:u}),native(){}};const Ks={input:{...Js,fileUrl:({value:u})=>({stream:(0,Rt.createReadStream)(u)}),filePath:({value:{file:u}})=>({stream:(0,Rt.createReadStream)(u)}),webStream:({value:u})=>({stream:Pt.Readable.fromWeb(u)}),iterable:({value:u})=>({stream:Pt.Readable.from(u)}),asyncIterable:({value:u})=>({stream:Pt.Readable.from(u)}),string:({value:u})=>({stream:Pt.Readable.from(u)}),uint8Array:({value:u})=>({stream:Pt.Readable.from(zs.Buffer.from(u))})},output:{...Js,fileUrl:({value:u})=>({stream:(0,Rt.createWriteStream)(u)}),filePath:({value:{file:u,append:y}})=>({stream:(0,Rt.createWriteStream)(u,y?{flags:"a"}:{})}),webStream:({value:u})=>({stream:Pt.Writable.fromWeb(u)}),iterable:forbiddenIfAsync,asyncIterable:forbiddenIfAsync,string:forbiddenIfAsync,uint8Array:forbiddenIfAsync}};const Ys=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");function mergeStreams(u){if(!Array.isArray(u)){throw new TypeError(`Expected an array, got \`${typeof u}\`.`)}for(const y of u){validateStream(y)}const y=u.some((({readableObjectMode:u})=>u));const C=getHighWaterMark(u,y);const D=new MergedStream({objectMode:y,writableHighWaterMark:C,readableHighWaterMark:C});for(const y of u){D.add(y)}return D}const getHighWaterMark=(u,y)=>{if(u.length===0){return(0,Pt.getDefaultHighWaterMark)(y)}const C=u.filter((({readableObjectMode:u})=>u===y)).map((({readableHighWaterMark:u})=>u));return Math.max(...C)};class MergedStream extends Pt.PassThrough{#bt=new Set([]);#vt=new Set([]);#wt=new Set([]);#Bt;#Dt=Symbol("unpipe");#St=new WeakMap;add(u){validateStream(u);if(this.#bt.has(u)){return}this.#bt.add(u);this.#Bt??=onMergedStreamFinished(this,this.#bt,this.#Dt);const y=endWhenStreamsDone({passThroughStream:this,stream:u,streams:this.#bt,ended:this.#vt,aborted:this.#wt,onFinished:this.#Bt,unpipeEvent:this.#Dt});this.#St.set(u,y);u.pipe(this,{end:false})}async remove(u){validateStream(u);if(!this.#bt.has(u)){return false}const y=this.#St.get(u);if(y===undefined){return false}this.#St.delete(u);u.unpipe(this);await y;return true}}const onMergedStreamFinished=async(u,y,C)=>{updateMaxListeners(u,Xs);const D=new AbortController;try{await Promise.race([onMergedStreamEnd(u,D),onInputStreamsUnpipe(u,y,C,D)])}finally{D.abort();updateMaxListeners(u,-Xs)}};const onMergedStreamEnd=async(u,{signal:y})=>{try{await(0,Ys.finished)(u,{signal:y,cleanup:true})}catch(y){errorOrAbortStream(u,y);throw y}};const onInputStreamsUnpipe=async(u,y,C,{signal:D})=>{for await(const[_]of(0,Tt.on)(u,"unpipe",{signal:D})){if(y.has(_)){_.emit(C)}}};const validateStream=u=>{if(typeof u?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof u}\`.`)}};const endWhenStreamsDone=async({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,onFinished:j,unpipeEvent:$})=>{updateMaxListeners(u,Zs);const ne=new AbortController;try{await Promise.race([afterMergedStreamFinished(j,y,ne),onInputStreamEnd({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,controller:ne}),onInputStreamUnpipe({stream:y,streams:C,ended:D,aborted:_,unpipeEvent:$,controller:ne})])}finally{ne.abort();updateMaxListeners(u,-Zs)}if(C.size>0&&C.size===D.size+_.size){if(D.size===0&&_.size>0){abortStream(u)}else{endStream(u)}}};const afterMergedStreamFinished=async(u,y,{signal:C})=>{try{await u;if(!C.aborted){abortStream(y)}}catch(u){if(!C.aborted){errorOrAbortStream(y,u)}}};const onInputStreamEnd=async({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,controller:{signal:j}})=>{try{await(0,Ys.finished)(y,{signal:j,cleanup:true,readable:true,writable:false});if(C.has(y)){D.add(y)}}catch(D){if(j.aborted||!C.has(y)){return}if(isAbortError(D)){_.add(y)}else{errorStream(u,D)}}};const onInputStreamUnpipe=async({stream:u,streams:y,ended:C,aborted:D,unpipeEvent:_,controller:{signal:j}})=>{await(0,Tt.once)(u,_,{signal:j});if(!u.readable){return(0,Tt.once)(j,"abort",{signal:j})}y.delete(u);C.delete(u);D.delete(u)};const endStream=u=>{if(u.writable){u.end()}};const errorOrAbortStream=(u,y)=>{if(isAbortError(y)){abortStream(u)}else{errorStream(u,y)}};const isAbortError=u=>u?.code==="ERR_STREAM_PREMATURE_CLOSE";const abortStream=u=>{if(u.readable||u.writable){u.destroy()}};const errorStream=(u,y)=>{if(!u.destroyed){u.once("error",noop);u.destroy(y)}};const noop=()=>{};const updateMaxListeners=(u,y)=>{const C=u.getMaxListeners();if(C!==0&&C!==Number.POSITIVE_INFINITY){u.setMaxListeners(C+y)}};const Xs=2;const Zs=1;const pipeStreams=(u,y)=>{u.pipe(y);onSourceFinish(u,y);onDestinationFinish(u,y)};const onSourceFinish=async(u,y)=>{if(isStandardStream(u)||isStandardStream(y)){return}try{await(0,Ys.finished)(u,{cleanup:true,readable:true,writable:false})}catch{}endDestinationStream(y)};const endDestinationStream=u=>{if(u.writable){u.end()}};const onDestinationFinish=async(u,y)=>{if(isStandardStream(u)||isStandardStream(y)){return}try{await(0,Ys.finished)(y,{cleanup:true,readable:false,writable:true})}catch{}abortSourceStream(u)};const abortSourceStream=u=>{if(u.readable){u.destroy()}};const pipeOutputAsync=(u,y,C)=>{const D=new Map;for(const[_,{stdioItems:j,direction:$}]of Object.entries(y)){for(const{stream:y}of j.filter((({type:u})=>Fs.has(u)))){pipeTransform(u,y,$,_)}for(const{stream:y}of j.filter((({type:u})=>!Fs.has(u)))){pipeStdioItem({subprocess:u,stream:y,direction:$,fdNumber:_,pipeGroups:D,controller:C})}}for(const[u,y]of D.entries()){const C=y.length===1?y[0]:mergeStreams(y);pipeStreams(C,u)}};const pipeTransform=(u,y,C,D)=>{if(C==="output"){pipeStreams(u.stdio[D],y)}else{pipeStreams(y,u.stdio[D])}const _=eo[D];if(_!==undefined){u[_]=y}u.stdio[D]=y};const eo=["stdin","stdout","stderr"];const pipeStdioItem=({subprocess:u,stream:y,direction:C,fdNumber:D,pipeGroups:_,controller:j})=>{if(y===undefined){return}setStandardStreamMaxListeners(y,j);const[$,ne]=C==="output"?[y,u.stdio[D]]:[u.stdio[D],y];const oe=_.get($)??[];_.set($,[...oe,ne])};const setStandardStreamMaxListeners=(u,{signal:y})=>{if(isStandardStream(u)){incrementMaxListeners(u,to,y)}};const to=2;const ro=[];ro.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32"){ro.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){ro.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")}const processOk=u=>!!u&&typeof u==="object"&&typeof u.removeListener==="function"&&typeof u.emit==="function"&&typeof u.reallyExit==="function"&&typeof u.listeners==="function"&&typeof u.kill==="function"&&typeof u.pid==="number"&&typeof u.on==="function";const no=Symbol.for("signal-exit emitter");const io=globalThis;const so=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:false,exit:false};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(io[no]){return io[no]}so(io,no,{value:this,writable:false,enumerable:false,configurable:false})}on(u,y){this.listeners[u].push(y)}removeListener(u,y){const C=this.listeners[u];const D=C.indexOf(y);if(D===-1){return}if(D===0&&C.length===1){C.length=0}else{C.splice(D,1)}}emit(u,y,C){if(this.emitted[u]){return false}this.emitted[u]=true;let D=false;for(const _ of this.listeners[u]){D=_(y,C)===true||D}if(u==="exit"){D=this.emit("afterExit",y,C)||D}return D}}class SignalExitBase{}const signalExitWrap=u=>({onExit(y,C){return u.onExit(y,C)},load(){return u.load()},unload(){return u.unload()}});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#kt=oo.platform==="win32"?"SIGINT":"SIGHUP";#Qt=new Emitter;#xt;#Ft;#_t;#Rt={};#Lt=false;constructor(u){super();this.#xt=u;this.#Rt={};for(const y of ro){this.#Rt[y]=()=>{const C=this.#xt.listeners(y);let{count:D}=this.#Qt;const _=u;if(typeof _.__signal_exit_emitter__==="object"&&typeof _.__signal_exit_emitter__.count==="number"){D+=_.__signal_exit_emitter__.count}if(C.length===D){this.unload();const C=this.#Qt.emit("exit",null,y);const D=y==="SIGHUP"?this.#kt:y;if(!C)u.kill(u.pid,D)}}}this.#_t=u.reallyExit;this.#Ft=u.emit}onExit(u,y){if(!processOk(this.#xt)){return()=>{}}if(this.#Lt===false){this.load()}const C=y?.alwaysLast?"afterExit":"exit";this.#Qt.on(C,u);return()=>{this.#Qt.removeListener(C,u);if(this.#Qt.listeners["exit"].length===0&&this.#Qt.listeners["afterExit"].length===0){this.unload()}}}load(){if(this.#Lt){return}this.#Lt=true;this.#Qt.count+=1;for(const u of ro){try{const y=this.#Rt[u];if(y)this.#xt.on(u,y)}catch(u){}}this.#xt.emit=(u,...y)=>this.#Nt(u,...y);this.#xt.reallyExit=u=>this.#Tt(u)}unload(){if(!this.#Lt){return}this.#Lt=false;ro.forEach((u=>{const y=this.#Rt[u];if(!y){throw new Error("Listener not defined for signal: "+u)}try{this.#xt.removeListener(u,y)}catch(u){}}));this.#xt.emit=this.#Ft;this.#xt.reallyExit=this.#_t;this.#Qt.count-=1}#Tt(u){if(!processOk(this.#xt)){return 0}this.#xt.exitCode=u||0;this.#Qt.emit("exit",this.#xt.exitCode,null);return this.#_t.call(this.#xt,this.#xt.exitCode)}#Nt(u,...y){const C=this.#Ft;if(u==="exit"&&processOk(this.#xt)){if(typeof y[0]==="number"){this.#xt.exitCode=y[0]}const D=C.call(this.#xt,u,...y);this.#Qt.emit("exit",this.#xt.exitCode,null);return D}else{return C.call(this.#xt,u,...y)}}}const oo=globalThis.process;const{onExit:ao,load:lo,unload:co}=signalExitWrap(processOk(oo)?new SignalExit(oo):new SignalExitFallback);const cleanupOnExit=(u,{cleanup:y,detached:C},{signal:D})=>{if(!y||C){return}const _=ao((()=>{u.kill()}));(0,Tt.addAbortListener)(D,(()=>{_()}))};const normalizePipeArguments=({source:u,sourcePromise:y,boundOptions:C,createNested:D},..._)=>{const j=getStartTime();const{destination:$,destinationStream:ne,destinationError:oe,from:le,unpipeSignal:de}=getDestinationStream(C,D,_);const{sourceStream:Ae,sourceError:pe}=getSourceStream(u,le);const{options:Ee,fileDescriptors:Ce}=Xi.get(u);return{sourcePromise:y,sourceStream:Ae,sourceOptions:Ee,sourceError:pe,destination:$,destinationStream:ne,destinationError:oe,unpipeSignal:de,fileDescriptors:Ce,startTime:j}};const getDestinationStream=(u,y,C)=>{try{const{destination:D,pipeOptions:{from:_,to:j,unpipeSignal:$}={}}=getDestination(u,y,...C);const ne=getToStream(D,j);return{destination:D,destinationStream:ne,from:_,unpipeSignal:$}}catch(u){return{destinationError:u}}};const getDestination=(u,y,C,...D)=>{if(Array.isArray(C)){const _=y(mapDestinationArguments,u)(C,...D);return{destination:_,pipeOptions:u}}if(typeof C==="string"||C instanceof URL||isDenoExecPath(C)){if(Object.keys(u).length>0){throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).')}const[_,j,$]=normalizeParameters(C,...D);const ne=y(mapDestinationArguments)(_,j,$);return{destination:ne,pipeOptions:$}}if(Xi.has(C)){if(Object.keys(u).length>0){throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).")}return{destination:C,pipeOptions:D[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${C}`)};const mapDestinationArguments=({options:u})=>({options:{...u,stdin:"pipe",piped:true}});const getSourceStream=(u,y)=>{try{const C=getFromStream(u,y);return{sourceStream:C}}catch(u){return{sourceError:u}}};const handlePipeArgumentsError=({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D,fileDescriptors:_,sourceOptions:j,startTime:$})=>{const ne=getPipeArgumentsError({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D});if(ne!==undefined){throw createNonCommandError({error:ne,fileDescriptors:_,sourceOptions:j,startTime:$})}};const getPipeArgumentsError=({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D})=>{if(y!==undefined&&D!==undefined){return D}if(D!==undefined){abortSourceStream(u);return D}if(y!==undefined){endDestinationStream(C);return y}};const createNonCommandError=({error:u,fileDescriptors:y,sourceOptions:C,startTime:D})=>makeEarlyError({error:u,command:uo,escapedCommand:uo,fileDescriptors:y,options:C,startTime:D,isSync:false});const uo="source.pipe(destination)";const waitForBothSubprocesses=async u=>{const[{status:y,reason:C,value:D=C},{status:_,reason:j,value:$=j}]=await u;if(!$.pipedFrom.includes(D)){$.pipedFrom.push(D)}if(_==="rejected"){throw $}if(y==="rejected"){throw D}return $};const pipeSubprocessStream=(u,y,C)=>{const D=fo.has(y)?pipeMoreSubprocessStream(u,y):pipeFirstSubprocessStream(u,y);incrementMaxListeners(u,Ao,C.signal);incrementMaxListeners(y,ho,C.signal);cleanupMergedStreamsMap(y);return D};const pipeFirstSubprocessStream=(u,y)=>{const C=mergeStreams([u]);pipeStreams(C,y);fo.set(y,C);return C};const pipeMoreSubprocessStream=(u,y)=>{const C=fo.get(y);C.add(u);return C};const cleanupMergedStreamsMap=async u=>{try{await(0,Ys.finished)(u,{cleanup:true,readable:false,writable:true})}catch{}fo.delete(u)};const fo=new WeakMap;const Ao=2;const ho=1;const unpipeOnAbort=(u,y)=>u===undefined?[]:[unpipeOnSignalAbort(u,y)];const unpipeOnSignalAbort=async(u,{sourceStream:y,mergedStream:C,fileDescriptors:D,sourceOptions:_,startTime:j})=>{await(0,cn.aborted)(u,y);await C.remove(y);const $=new Error("Pipe canceled by `unpipeSignal` option.");throw createNonCommandError({error:$,fileDescriptors:D,sourceOptions:_,startTime:j})};const pipeToSubprocess=(u,...y)=>{if(isPlainObject(y[0])){return pipeToSubprocess.bind(undefined,{...u,boundOptions:{...u.boundOptions,...y[0]}})}const{destination:C,...D}=normalizePipeArguments(u,...y);const _=handlePipePromise({...D,destination:C});_.pipe=pipeToSubprocess.bind(undefined,{...u,source:C,sourcePromise:_,boundOptions:{}});return _};const handlePipePromise=async({sourcePromise:u,sourceStream:y,sourceOptions:C,sourceError:D,destination:_,destinationStream:j,destinationError:$,unpipeSignal:ne,fileDescriptors:oe,startTime:le})=>{const de=getSubprocessPromises(u,_);handlePipeArgumentsError({sourceStream:y,sourceError:D,destinationStream:j,destinationError:$,fileDescriptors:oe,sourceOptions:C,startTime:le});const Ae=new AbortController;try{const u=pipeSubprocessStream(y,j,Ae);return await Promise.race([waitForBothSubprocesses(de),...unpipeOnAbort(ne,{sourceStream:y,mergedStream:u,sourceOptions:C,fileDescriptors:oe,startTime:le})])}finally{Ae.abort()}};const getSubprocessPromises=(u,y)=>Promise.allSettled([u,y]);const utils_identity=u=>u;const utils_noop=()=>undefined;const getContentsProperty=({contents:u})=>u;const throwObjectStream=u=>{throw new Error(`Streams in object mode are not supported: ${String(u)}`)};const getLengthProperty=u=>u.length;async function getStreamAsArray(u,y){return getStreamContents(u,po,y)}const initArray=()=>({contents:[]});const increment=()=>1;const addArrayChunk=(u,{contents:y})=>{y.push(u);return y};const po={init:initArray,convertChunk:{string:utils_identity,buffer:utils_identity,arrayBuffer:utils_identity,dataView:utils_identity,typedArray:utils_identity,others:utils_identity},getSize:increment,truncateChunk:utils_noop,addChunk:addArrayChunk,getFinalChunk:utils_noop,finalize:getContentsProperty};async function getStreamAsArrayBuffer(u,y){return getStreamContents(u,yo,y)}const initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const useTextEncoder=u=>go.encode(u);const go=new TextEncoder;const useUint8Array=u=>new Uint8Array(u);const useUint8ArrayWithOffset=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const truncateArrayBufferChunk=(u,y)=>u.slice(0,y);const addArrayBufferChunk=(u,{contents:y,length:C},D)=>{const _=hasArrayBufferResize()?resizeArrayBuffer(y,D):resizeArrayBufferSlow(y,D);new Uint8Array(_).set(u,C);return _};const resizeArrayBufferSlow=(u,y)=>{if(y<=u.byteLength){return u}const C=new ArrayBuffer(getNewContentsLength(y));new Uint8Array(C).set(new Uint8Array(u),0);return C};const resizeArrayBuffer=(u,y)=>{if(y<=u.maxByteLength){u.resize(y);return u}const C=new ArrayBuffer(y,{maxByteLength:getNewContentsLength(y)});new Uint8Array(C).set(new Uint8Array(u),0);return C};const getNewContentsLength=u=>mo**Math.ceil(Math.log(u)/Math.log(mo));const mo=2;const finalizeArrayBuffer=({contents:u,length:y})=>hasArrayBufferResize()?u:u.slice(0,y);const hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const yo={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:utils_noop,finalize:finalizeArrayBuffer};async function getStreamAsString(u,y){return getStreamContents(u,Eo,y)}const initString=()=>({contents:"",textDecoder:new TextDecoder});const useTextDecoder=(u,{textDecoder:y})=>y.decode(u,{stream:true});const addStringChunk=(u,{contents:y})=>y+u;const truncateStringChunk=(u,y)=>u.slice(0,y);const getFinalStringChunk=({textDecoder:u})=>{const y=u.decode();return y===""?undefined:y};const Eo={init:initString,convertChunk:{string:utils_identity,buffer:useTextDecoder,arrayBuffer:useTextDecoder,dataView:useTextDecoder,typedArray:useTextDecoder,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateStringChunk,addChunk:addStringChunk,getFinalChunk:getFinalStringChunk,finalize:getContentsProperty};const iterateOnSubprocessStream=({subprocessStdout:u,subprocess:y,binary:C,shouldEncode:D,encoding:_,preserveNewlines:j})=>{const $=new AbortController;stopReadingOnExit(y,$);return iterateOnStream({stream:u,controller:$,binary:C,shouldEncode:!u.readableObjectMode&&D,encoding:_,shouldSplit:!u.readableObjectMode,preserveNewlines:j})};const stopReadingOnExit=async(u,y)=>{try{await u}catch{}finally{y.abort()}};const iterateForResult=({stream:u,onStreamEnd:y,lines:C,encoding:D,stripFinalNewline:_,allMixed:j})=>{const $=new AbortController;stopReadingOnStreamEnd(y,$,u);const ne=u.readableObjectMode&&!j;return iterateOnStream({stream:u,controller:$,binary:D==="buffer",shouldEncode:!ne,encoding:D,shouldSplit:!ne&&C,preserveNewlines:!_})};const stopReadingOnStreamEnd=async(u,y,C)=>{try{await u}catch{C.destroy()}finally{y.abort()}};const iterateOnStream=({stream:u,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$})=>{const ne=(0,Tt.on)(u,"data",{signal:y.signal,highWaterMark:Io,highWatermark:Io});return iterateOnData({onStdoutChunk:ne,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$})};const Co=(0,Pt.getDefaultHighWaterMark)(true);const Io=Co;const iterateOnData=async function*({onStdoutChunk:u,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$}){const ne=getGenerators({binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$});try{for await(const[y]of u){yield*transformChunkSync(y,ne,0)}}catch(u){if(!y.signal.aborted){throw u}}finally{yield*finalChunksSync(ne)}};const getGenerators=({binary:u,shouldEncode:y,encoding:C,shouldSplit:D,preserveNewlines:_})=>[getEncodingTransformGenerator(u,C,!y),getSplitLinesGenerator(u,_,!D,{})].filter(Boolean);const getStreamOutput=async({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,buffer:_,maxBuffer:j,lines:$,allMixed:ne,stripFinalNewline:oe,verboseInfo:le,streamInfo:de})=>{const Ae=logOutputAsync({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,allMixed:ne,verboseInfo:le,streamInfo:de});if(!_){await Promise.all([resumeStream(u),Ae]);return}const pe=getStripFinalNewline(oe,C);const Ee=iterateForResult({stream:u,onStreamEnd:y,lines:$,encoding:D,stripFinalNewline:pe,allMixed:ne});const[Ce]=await Promise.all([contents_getStreamContents({stream:u,iterable:Ee,fdNumber:C,encoding:D,maxBuffer:j,lines:$}),Ae]);return Ce};const logOutputAsync=async({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,allMixed:_,verboseInfo:j,streamInfo:{fileDescriptors:$}})=>{if(!shouldLogOutput({stdioItems:$[C]?.stdioItems,encoding:D,verboseInfo:j,fdNumber:C})){return}const ne=iterateForResult({stream:u,onStreamEnd:y,lines:true,encoding:D,stripFinalNewline:true,allMixed:_});await logLines(ne,u,C,j)};const resumeStream=async u=>{await(0,Mi.setImmediate)();if(u.readableFlowing===null){u.resume()}};const contents_getStreamContents=async({stream:u,stream:{readableObjectMode:y},iterable:C,fdNumber:D,encoding:_,maxBuffer:j,lines:$})=>{try{if(y||$){return await getStreamAsArray(C,{maxBuffer:j})}if(_==="buffer"){return new Uint8Array(await getStreamAsArrayBuffer(C,{maxBuffer:j}))}return await getStreamAsString(C,{maxBuffer:j})}catch(C){return handleBufferedData(handleMaxBuffer({error:C,stream:u,readableObjectMode:y,lines:$,encoding:_,fdNumber:D}))}};const getBufferedData=async u=>{try{return await u}catch(u){return handleBufferedData(u)}};const handleBufferedData=({bufferedData:u})=>isArrayBuffer(u)?new Uint8Array(u):u;const waitForStream=async(u,y,C,{isSameDirection:D,stopOnExit:_=false}={})=>{const j=handleStdinDestroy(u,C);const $=new AbortController;try{await Promise.race([..._?[C.exitPromise]:[],(0,Ys.finished)(u,{cleanup:true,signal:$.signal})])}catch(u){if(!j.stdinCleanedUp){handleStreamError(u,y,C,D)}}finally{$.abort()}};const handleStdinDestroy=(u,{originalStreams:[y],subprocess:C})=>{const D={stdinCleanedUp:false};if(u===y){spyOnStdinDestroy(u,C,D)}return D};const spyOnStdinDestroy=(u,y,C)=>{const{_destroy:D}=u;u._destroy=(..._)=>{setStdinCleanedUp(y,C);D.call(u,..._)}};const setStdinCleanedUp=({exitCode:u,signalCode:y},C)=>{if(u!==null||y!==null){C.stdinCleanedUp=true}};const handleStreamError=(u,y,C,D)=>{if(!shouldIgnoreStreamError(u,y,C,D)){throw u}};const shouldIgnoreStreamError=(u,y,C,D=true)=>{if(C.propagating){return isStreamEpipe(u)||isStreamAbort(u)}C.propagating=true;return isInputFileDescriptor(C,y)===D?isStreamEpipe(u):isStreamAbort(u)};const isInputFileDescriptor=({fileDescriptors:u},y)=>y!=="all"&&u[y].direction==="input";const isStreamAbort=u=>u?.code==="ERR_STREAM_PREMATURE_CLOSE";const isStreamEpipe=u=>u?.code==="EPIPE";const waitForStdioStreams=({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})=>u.stdio.map(((u,oe)=>waitForSubprocessStream({stream:u,fdNumber:oe,encoding:y,buffer:C[oe],maxBuffer:D[oe],lines:_[oe],allMixed:false,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})));const waitForSubprocessStream=async({stream:u,fdNumber:y,encoding:C,buffer:D,maxBuffer:_,lines:j,allMixed:$,stripFinalNewline:ne,verboseInfo:oe,streamInfo:le})=>{if(!u){return}const de=waitForStream(u,y,le);if(isInputFileDescriptor(le,y)){await de;return}const[Ae]=await Promise.all([getStreamOutput({stream:u,onStreamEnd:de,fdNumber:y,encoding:C,buffer:D,maxBuffer:_,lines:j,allMixed:$,stripFinalNewline:ne,verboseInfo:oe,streamInfo:le}),de]);return Ae};const makeAllStream=({stdout:u,stderr:y},{all:C})=>C&&(u||y)?mergeStreams([u,y].filter(Boolean)):undefined;const waitForAllStream=({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})=>waitForSubprocessStream({...getAllStream(u,C),fdNumber:"all",encoding:y,maxBuffer:D[1]+D[2],lines:_[1]||_[2],allMixed:getAllMixed(u),stripFinalNewline:j,verboseInfo:$,streamInfo:ne});const getAllStream=({stdout:u,stderr:y,all:C},[,D,_])=>{const j=D||_;if(!j){return{stream:C,buffer:j}}if(!D){return{stream:y,buffer:j}}if(!_){return{stream:u,buffer:j}}return{stream:C,buffer:j}};const getAllMixed=({all:u,stdout:y,stderr:C})=>u&&y&&C&&y.readableObjectMode!==C.readableObjectMode;const shouldLogIpc=u=>isFullVerbose(u,"ipc");const logIpcOutput=(u,y)=>{const C=serializeVerboseMessage(u);verboseLog({type:"ipc",verboseMessage:C,fdNumber:"ipc",verboseInfo:y})};const waitForIpcOutput=async({subprocess:u,buffer:y,maxBuffer:C,ipc:D,ipcOutput:_,verboseInfo:j})=>{if(!D){return _}const $=shouldLogIpc(j);const ne=getFdSpecificValue(y,"ipc");const oe=getFdSpecificValue(C,"ipc");for await(const y of loopOnMessages({anyProcess:u,channel:u.channel,isSubprocess:false,ipc:D,shouldAwait:false,reference:true})){if(ne){checkIpcMaxBuffer(u,_,oe);_.push(y)}if($){logIpcOutput(y,j)}}return _};const getBufferedIpcOutput=async(u,y)=>{await Promise.allSettled([u]);return y};const waitForSubprocessResult=async({subprocess:u,options:{encoding:y,buffer:C,maxBuffer:D,lines:_,timeoutDuration:j,cancelSignal:$,gracefulCancel:ne,forceKillAfterDelay:oe,stripFinalNewline:le,ipc:de,ipcInput:Ae},context:pe,verboseInfo:Ee,fileDescriptors:Ce,originalStreams:Ie,onInternalError:Be,controller:De})=>{const xe=waitForExit(u,pe);const Fe={originalStreams:Ie,fileDescriptors:Ce,subprocess:u,exitPromise:xe,propagating:false};const _e=waitForStdioStreams({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:le,verboseInfo:Ee,streamInfo:Fe});const Le=waitForAllStream({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:le,verboseInfo:Ee,streamInfo:Fe});const ze=[];const qe=waitForIpcOutput({subprocess:u,buffer:C,maxBuffer:D,ipc:de,ipcOutput:ze,verboseInfo:Ee});const Je=waitForOriginalStreams(Ie,u,Fe);const Ke=waitForCustomStreamsEnd(Ce,Fe);try{return await Promise.race([Promise.all([{},waitForSuccessfulExit(xe),Promise.all(_e),Le,qe,sendIpcInput(u,Ae),...Je,...Ke]),Be,throwOnSubprocessError(u,De),...throwOnTimeout(u,j,pe,De),...throwOnCancel({subprocess:u,cancelSignal:$,gracefulCancel:ne,context:pe,controller:De}),...throwOnGracefulCancel({subprocess:u,cancelSignal:$,gracefulCancel:ne,forceKillAfterDelay:oe,context:pe,controller:De})])}catch(u){pe.terminationReason??="other";return Promise.all([{error:u},xe,Promise.all(_e.map((u=>getBufferedData(u)))),getBufferedData(Le),getBufferedIpcOutput(qe,ze),Promise.allSettled(Je),Promise.allSettled(Ke)])}};const waitForOriginalStreams=(u,y,C)=>u.map(((u,D)=>u===y.stdio[D]?undefined:waitForStream(u,D,C)));const waitForCustomStreamsEnd=(u,y)=>u.flatMap((({stdioItems:u},C)=>u.filter((({value:u,stream:y=u})=>is_stream_isStream(y,{checkOpen:false})&&!isStandardStream(y))).map((({type:u,value:D,stream:_=D})=>waitForStream(_,C,y,{isSameDirection:Fs.has(u),stopOnExit:u==="native"})))));const throwOnSubprocessError=async(u,{signal:y})=>{const[C]=await(0,Tt.once)(u,"error",{signal:y});throw C};const initializeConcurrentStreams=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap});const addConcurrentStream=(u,y,C)=>{const D=u[C];if(!D.has(y)){D.set(y,[])}const _=D.get(y);const j=createDeferred();_.push(j);const $=j.resolve.bind(j);return{resolve:$,promises:_}};const waitForConcurrentStreams=async({resolve:u,promises:y},C)=>{u();const[D]=await Promise.race([Promise.allSettled([true,C]),Promise.all([false,...y])]);return!D};const safeWaitForSubprocessStdin=async u=>{if(u===undefined){return}try{await waitForSubprocessStdin(u)}catch{}};const safeWaitForSubprocessStdout=async u=>{if(u===undefined){return}try{await waitForSubprocessStdout(u)}catch{}};const waitForSubprocessStdin=async u=>{await(0,Ys.finished)(u,{cleanup:true,readable:false,writable:true})};const waitForSubprocessStdout=async u=>{await(0,Ys.finished)(u,{cleanup:true,readable:true,writable:false})};const waitForSubprocess=async(u,y)=>{await u;if(y){throw y}};const destroyOtherStream=(u,y,C)=>{if(C&&!isStreamAbort(C)){u.destroy(C)}else if(y){u.destroy()}};const createReadable=({subprocess:u,concurrentStreams:y,encoding:C},{from:D,binary:_=true,preserveNewlines:j=true}={})=>{const $=_||hs.has(C);const{subprocessStdout:ne,waitReadableDestroy:oe}=getSubprocessStdout(u,D,y);const{readableEncoding:le,readableObjectMode:de,readableHighWaterMark:Ae}=getReadableOptions(ne,$);const{read:pe,onStdoutDataDone:Ee}=getReadableMethods({subprocessStdout:ne,subprocess:u,binary:$,encoding:C,preserveNewlines:j});const Ce=new Pt.Readable({read:pe,destroy:(0,cn.callbackify)(onReadableDestroy.bind(undefined,{subprocessStdout:ne,subprocess:u,waitReadableDestroy:oe})),highWaterMark:Ae,objectMode:de,encoding:le});onStdoutFinished({subprocessStdout:ne,onStdoutDataDone:Ee,readable:Ce,subprocess:u});return Ce};const getSubprocessStdout=(u,y,C)=>{const D=getFromStream(u,y);const _=addConcurrentStream(C,D,"readableDestroy");return{subprocessStdout:D,waitReadableDestroy:_}};const getReadableOptions=({readableEncoding:u,readableObjectMode:y,readableHighWaterMark:C},D)=>D?{readableEncoding:u,readableObjectMode:y,readableHighWaterMark:C}:{readableEncoding:u,readableObjectMode:true,readableHighWaterMark:Co};const getReadableMethods=({subprocessStdout:u,subprocess:y,binary:C,encoding:D,preserveNewlines:_})=>{const j=createDeferred();const $=iterateOnSubprocessStream({subprocessStdout:u,subprocess:y,binary:C,shouldEncode:!C,encoding:D,preserveNewlines:_});return{read(){onRead(this,$,j)},onStdoutDataDone:j}};const onRead=async(u,y,C)=>{try{const{value:D,done:_}=await y.next();if(_){C.resolve()}else{u.push(D)}}catch{}};const onStdoutFinished=async({subprocessStdout:u,onStdoutDataDone:y,readable:C,subprocess:D,subprocessStdin:_})=>{try{await waitForSubprocessStdout(u);await D;await safeWaitForSubprocessStdin(_);await y;if(C.readable){C.push(null)}}catch(u){await safeWaitForSubprocessStdin(_);destroyOtherReadable(C,u)}};const onReadableDestroy=async({subprocessStdout:u,subprocess:y,waitReadableDestroy:C},D)=>{if(await waitForConcurrentStreams(C,y)){destroyOtherReadable(u,D);await waitForSubprocess(y,D)}};const destroyOtherReadable=(u,y)=>{destroyOtherStream(u,u.readable,y)};const createWritable=({subprocess:u,concurrentStreams:y},{to:C}={})=>{const{subprocessStdin:D,waitWritableFinal:_,waitWritableDestroy:j}=getSubprocessStdin(u,C,y);const $=new Pt.Writable({...getWritableMethods(D,u,_),destroy:(0,cn.callbackify)(onWritableDestroy.bind(undefined,{subprocessStdin:D,subprocess:u,waitWritableFinal:_,waitWritableDestroy:j})),highWaterMark:D.writableHighWaterMark,objectMode:D.writableObjectMode});onStdinFinished(D,$);return $};const getSubprocessStdin=(u,y,C)=>{const D=getToStream(u,y);const _=addConcurrentStream(C,D,"writableFinal");const j=addConcurrentStream(C,D,"writableDestroy");return{subprocessStdin:D,waitWritableFinal:_,waitWritableDestroy:j}};const getWritableMethods=(u,y,C)=>({write:onWrite.bind(undefined,u),final:(0,cn.callbackify)(onWritableFinal.bind(undefined,u,y,C))});const onWrite=(u,y,C,D)=>{if(u.write(y,C)){D()}else{u.once("drain",D)}};const onWritableFinal=async(u,y,C)=>{if(await waitForConcurrentStreams(C,y)){if(u.writable){u.end()}await y}};const onStdinFinished=async(u,y,C)=>{try{await waitForSubprocessStdin(u);if(y.writable){y.end()}}catch(u){await safeWaitForSubprocessStdout(C);destroyOtherWritable(y,u)}};const onWritableDestroy=async({subprocessStdin:u,subprocess:y,waitWritableFinal:C,waitWritableDestroy:D},_)=>{await waitForConcurrentStreams(C,y);if(await waitForConcurrentStreams(D,y)){destroyOtherWritable(u,_);await waitForSubprocess(y,_)}};const destroyOtherWritable=(u,y)=>{destroyOtherStream(u,u.writable,y)};const createDuplex=({subprocess:u,concurrentStreams:y,encoding:C},{from:D,to:_,binary:j=true,preserveNewlines:$=true}={})=>{const ne=j||hs.has(C);const{subprocessStdout:oe,waitReadableDestroy:le}=getSubprocessStdout(u,D,y);const{subprocessStdin:de,waitWritableFinal:Ae,waitWritableDestroy:pe}=getSubprocessStdin(u,_,y);const{readableEncoding:Ee,readableObjectMode:Ce,readableHighWaterMark:Ie}=getReadableOptions(oe,ne);const{read:Be,onStdoutDataDone:De}=getReadableMethods({subprocessStdout:oe,subprocess:u,binary:ne,encoding:C,preserveNewlines:$});const xe=new Pt.Duplex({read:Be,...getWritableMethods(de,u,Ae),destroy:(0,cn.callbackify)(onDuplexDestroy.bind(undefined,{subprocessStdout:oe,subprocessStdin:de,subprocess:u,waitReadableDestroy:le,waitWritableFinal:Ae,waitWritableDestroy:pe})),readableHighWaterMark:Ie,writableHighWaterMark:de.writableHighWaterMark,readableObjectMode:Ce,writableObjectMode:de.writableObjectMode,encoding:Ee});onStdoutFinished({subprocessStdout:oe,onStdoutDataDone:De,readable:xe,subprocess:u,subprocessStdin:de});onStdinFinished(de,xe,oe);return xe};const onDuplexDestroy=async({subprocessStdout:u,subprocessStdin:y,subprocess:C,waitReadableDestroy:D,waitWritableFinal:_,waitWritableDestroy:j},$)=>{await Promise.all([onReadableDestroy({subprocessStdout:u,subprocess:C,waitReadableDestroy:D},$),onWritableDestroy({subprocessStdin:y,subprocess:C,waitWritableFinal:_,waitWritableDestroy:j},$)])};const createIterable=(u,y,{from:C,binary:D=false,preserveNewlines:_=false}={})=>{const j=D||hs.has(y);const $=getFromStream(u,C);const ne=iterateOnSubprocessStream({subprocessStdout:$,subprocess:u,binary:j,shouldEncode:true,encoding:y,preserveNewlines:_});return iterateOnStdoutData(ne,$,u)};const iterateOnStdoutData=async function*(u,y,C){try{yield*u}finally{if(y.readable){y.destroy()}await C}};const addConvertedStreams=(u,{encoding:y})=>{const C=initializeConcurrentStreams();u.readable=createReadable.bind(undefined,{subprocess:u,concurrentStreams:C,encoding:y});u.writable=createWritable.bind(undefined,{subprocess:u,concurrentStreams:C});u.duplex=createDuplex.bind(undefined,{subprocess:u,concurrentStreams:C,encoding:y});u.iterable=createIterable.bind(undefined,u,y);u[Symbol.asyncIterator]=createIterable.bind(undefined,u,y,{})};const mergePromise=(u,y)=>{for(const[C,D]of vo){const _=D.value.bind(y);Reflect.defineProperty(u,C,{...D,value:_})}};const bo=(async()=>{})().constructor.prototype;const vo=["then","catch","finally"].map((u=>[u,Reflect.getOwnPropertyDescriptor(bo,u)]));const execaCoreAsync=(u,y,C,D)=>{const{file:_,commandArguments:j,command:$,escapedCommand:ne,startTime:oe,verboseInfo:le,options:de,fileDescriptors:Ae}=handleAsyncArguments(u,y,C);const{subprocess:pe,promise:Ee}=spawnSubprocessAsync({file:_,commandArguments:j,options:de,startTime:oe,verboseInfo:le,command:$,escapedCommand:ne,fileDescriptors:Ae});pe.pipe=pipeToSubprocess.bind(undefined,{source:pe,sourcePromise:Ee,boundOptions:{},createNested:D});mergePromise(pe,Ee);Xi.set(pe,{options:de,fileDescriptors:Ae});return pe};const handleAsyncArguments=(u,y,C)=>{const{command:D,escapedCommand:_,startTime:j,verboseInfo:$}=handleCommand(u,y,C);const{file:ne,commandArguments:oe,options:le}=normalizeOptions(u,y,C);const de=handleAsyncOptions(le);const Ae=handleStdioAsync(de,$);return{file:ne,commandArguments:oe,command:D,escapedCommand:_,startTime:j,verboseInfo:$,options:de,fileDescriptors:Ae}};const handleAsyncOptions=({timeout:u,signal:y,...C})=>{if(y!==undefined){throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.')}return{...C,timeoutDuration:u}};const spawnSubprocessAsync=({file:u,commandArguments:y,options:C,startTime:D,verboseInfo:_,command:j,escapedCommand:$,fileDescriptors:ne})=>{let oe;try{oe=(0,rn.spawn)(...concatenateShell(u,y,C))}catch(u){return handleEarlyError({error:u,command:j,escapedCommand:$,fileDescriptors:ne,options:C,startTime:D,verboseInfo:_})}const le=new AbortController;(0,Tt.setMaxListeners)(Number.POSITIVE_INFINITY,le.signal);const de=[...oe.stdio];pipeOutputAsync(oe,ne,le);cleanupOnExit(oe,C,le);const Ae={};const pe=createDeferred();oe.kill=subprocessKill.bind(undefined,{kill:oe.kill.bind(oe),options:C,onInternalError:pe,context:Ae,controller:le});oe.all=makeAllStream(oe,C);addConvertedStreams(oe,C);addIpcMethods(oe,C);const Ee=handlePromise({subprocess:oe,options:C,startTime:D,verboseInfo:_,fileDescriptors:ne,originalStreams:de,command:j,escapedCommand:$,context:Ae,onInternalError:pe,controller:le});return{subprocess:oe,promise:Ee}};const handlePromise=async({subprocess:u,options:y,startTime:C,verboseInfo:D,fileDescriptors:_,originalStreams:j,command:$,escapedCommand:ne,context:oe,onInternalError:le,controller:de})=>{const[Ae,[pe,Ee],Ce,Ie,Be]=await waitForSubprocessResult({subprocess:u,options:y,context:oe,verboseInfo:D,fileDescriptors:_,originalStreams:j,onInternalError:le,controller:de});de.abort();le.resolve();const De=Ce.map(((u,C)=>stripNewline(u,y,C)));const xe=stripNewline(Ie,y,"all");const Fe=getAsyncResult({errorInfo:Ae,exitCode:pe,signal:Ee,stdio:De,all:xe,ipcOutput:Be,context:oe,options:y,command:$,escapedCommand:ne,startTime:C});return handleResult(Fe,D,y)};const getAsyncResult=({errorInfo:u,exitCode:y,signal:C,stdio:D,all:_,ipcOutput:j,context:$,options:ne,command:oe,escapedCommand:le,startTime:de})=>"error"in u?makeError({error:u.error,command:oe,escapedCommand:le,timedOut:$.terminationReason==="timeout",isCanceled:$.terminationReason==="cancel"||$.terminationReason==="gracefulCancel",isGracefullyCanceled:$.terminationReason==="gracefulCancel",isMaxBuffer:u.error instanceof MaxBufferError,isForcefullyTerminated:$.isForcefullyTerminated,exitCode:y,signal:C,stdio:D,all:_,ipcOutput:j,options:ne,startTime:de,isSync:false}):makeSuccessResult({command:oe,escapedCommand:le,stdio:D,all:_,ipcOutput:j,options:ne,startTime:de});const mergeOptions=(u,y)=>{const C=Object.fromEntries(Object.entries(y).map((([y,C])=>[y,mergeOption(y,u[y],C)])));return{...u,...C}};const mergeOption=(u,y,C)=>{if(wo.has(u)&&isPlainObject(y)&&isPlainObject(C)){return{...y,...C}}return C};const wo=new Set(["env",...gn]);const createExeca=(u,y,C,D)=>{const createNested=(u,y,D)=>createExeca(u,y,C,D);const boundExeca=(..._)=>callBoundExeca({mapArguments:u,deepOptions:C,boundOptions:y,setBoundExeca:D,createNested:createNested},..._);if(D!==undefined){D(boundExeca,createNested,y)}return boundExeca};const callBoundExeca=({mapArguments:u,deepOptions:y={},boundOptions:C={},setBoundExeca:D,createNested:_},j,...$)=>{if(isPlainObject(j)){return _(u,mergeOptions(C,j),D)}const{file:ne,commandArguments:oe,options:le,isSync:de}=parseArguments({mapArguments:u,firstArgument:j,nextArguments:$,deepOptions:y,boundOptions:C});return de?execaCoreSync(ne,oe,le):execaCoreAsync(ne,oe,le,_)};const parseArguments=({mapArguments:u,firstArgument:y,nextArguments:C,deepOptions:D,boundOptions:_})=>{const j=isTemplateString(y)?parseTemplates(y,C):[y,...C];const[$,ne,oe]=normalizeParameters(...j);const le=mergeOptions(mergeOptions(D,_),oe);const{file:de=$,commandArguments:Ae=ne,options:pe=le,isSync:Ee=false}=u({file:$,commandArguments:ne,options:le});return{file:de,commandArguments:Ae,options:pe,isSync:Ee}};const mapCommandAsync=({file:u,commandArguments:y})=>parseCommand(u,y);const mapCommandSync=({file:u,commandArguments:y})=>({...parseCommand(u,y),isSync:true});const parseCommand=(u,y)=>{if(y.length>0){throw new TypeError(`The command and its arguments must be passed as a single string: ${u} ${y}.`)}const[C,...D]=parseCommandString(u);return{file:C,commandArguments:D}};const parseCommandString=u=>{if(typeof u!=="string"){throw new TypeError(`The command must be a string: ${String(u)}.`)}const y=u.trim();if(y===""){return[]}const C=[];for(const u of y.split(Bo)){const y=C.at(-1);if(y&&y.endsWith("\\")){C[C.length-1]=`${y.slice(0,-1)} ${u}`}else{C.push(u)}}return C};const Bo=/ +/g;const setScriptSync=(u,y,C)=>{u.sync=y(mapScriptSync,C);u.s=u.sync};const mapScriptAsync=({options:u})=>getScriptOptions(u);const mapScriptSync=({options:u})=>({...getScriptOptions(u),isSync:true});const getScriptOptions=u=>({options:{...getScriptStdinOption(u),...u}});const getScriptStdinOption=({input:u,inputFile:y,stdio:C})=>u===undefined&&y===undefined&&C===undefined?{stdin:"inherit"}:{};const Do={preferLocal:true};const So=createExeca((()=>({})));const ko=createExeca((()=>({isSync:true})));const Qo=createExeca(mapCommandAsync);const xo=createExeca(mapCommandSync);const Fo=createExeca(mapNode);const _o=createExeca(mapScriptAsync,{},Do,setScriptSync);const{sendMessage:Ro,getOneMessage:Lo,getEachMessage:No,getCancelSignal:To}=getIpcExport();var Po=C(1683);var Oo=C(2136);function keysOf(u){return Object.keys(u)}const Mo=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function isTypedArrayName(u){return Mo.includes(u)}const Uo=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...Mo];function isObjectTypeName(u){return Uo.includes(u)}const Ho=["null","undefined","string","number","bigint","boolean","symbol"];function isPrimitiveTypeName(u){return Ho.includes(u)}const Go=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...Uo,...Ho];const getObjectType=u=>{const y=Object.prototype.toString.call(u).slice(8,-1);if(/HTML\w+Element/.test(y)&&isHtmlElement(u)){return"HTMLElement"}if(isObjectTypeName(y)){return y}return undefined};function detect(u){if(u===null){return"null"}switch(typeof u){case"undefined":{return"undefined"}case"string":{return"string"}case"number":{return Number.isNaN(u)?"NaN":"number"}case"boolean":{return"boolean"}case"function":{return"Function"}case"bigint":{return"bigint"}case"symbol":{return"symbol"}default:}if(isObservable(u)){return"Observable"}if(isArray(u)){return"Array"}if(isBuffer(u)){return"Buffer"}const y=getObjectType(u);if(y&&y!=="Object"){return y}if(hasPromiseApi(u)){return"Promise"}if(u instanceof String||u instanceof Boolean||u instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}function hasPromiseApi(u){return isFunction(u?.then)&&isFunction(u?.catch)}const Wo=Object.assign(detect,{all:isAll,any:isAny,array:isArray,arrayBuffer:distribution_isArrayBuffer,arrayLike:isArrayLike,asyncFunction:isAsyncFunction,asyncGenerator:distribution_isAsyncGenerator,asyncGeneratorFunction:isAsyncGeneratorFunction,asyncIterable:isAsyncIterable,bigint:isBigint,bigInt64Array:isBigInt64Array,bigUint64Array:isBigUint64Array,blob:isBlob,boolean:isBoolean,boundFunction:isBoundFunction,buffer:isBuffer,class:isClass,dataView:isDataView,date:isDate,detect:detect,directInstanceOf:isDirectInstanceOf,emptyArray:isEmptyArray,emptyMap:isEmptyMap,emptyObject:isEmptyObject,emptySet:isEmptySet,emptyString:isEmptyString,emptyStringOrWhitespace:isEmptyStringOrWhitespace,enumCase:isEnumCase,error:isError,evenInteger:isEvenInteger,falsy:isFalsy,float32Array:isFloat32Array,float64Array:isFloat64Array,formData:isFormData,function:isFunction,generator:distribution_isGenerator,generatorFunction:isGeneratorFunction,htmlElement:isHtmlElement,infinite:isInfinite,inRange:isInRange,int16Array:isInt16Array,int32Array:isInt32Array,int8Array:isInt8Array,integer:isInteger,iterable:isIterable,map:isMap,nan:isNan,nativePromise:isNativePromise,negativeNumber:isNegativeNumber,nodeStream:isNodeStream,nonEmptyArray:isNonEmptyArray,nonEmptyMap:isNonEmptyMap,nonEmptyObject:isNonEmptyObject,nonEmptySet:isNonEmptySet,nonEmptyString:isNonEmptyString,nonEmptyStringAndNotWhitespace:isNonEmptyStringAndNotWhitespace,null:isNull,nullOrUndefined:isNullOrUndefined,number:isNumber,numericString:isNumericString,object:distribution_isObject,observable:isObservable,oddInteger:isOddInteger,plainObject:distribution_isPlainObject,positiveNumber:isPositiveNumber,primitive:isPrimitive,promise:isPromise,propertyKey:isPropertyKey,regExp:isRegExp,safeInteger:isSafeInteger,set:isSet,sharedArrayBuffer:isSharedArrayBuffer,string:isString,symbol:isSymbol,truthy:isTruthy,tupleLike:isTupleLike,typedArray:isTypedArray,uint16Array:isUint16Array,uint32Array:isUint32Array,uint8Array:distribution_isUint8Array,uint8ClampedArray:isUint8ClampedArray,undefined:isUndefined,urlInstance:isUrlInstance,urlSearchParams:isUrlSearchParams,urlString:isUrlString,optional:isOptional,validDate:isValidDate,validLength:isValidLength,weakMap:isWeakMap,weakRef:isWeakRef,weakSet:isWeakSet,whitespaceString:isWhitespaceString});function isAbsoluteModule2(u){return y=>isInteger(y)&&Math.abs(y%2)===u}function isAll(u,...y){return predicateOnArray(Array.prototype.every,u,y)}function isAny(u,...y){const C=isArray(u)?u:[u];return C.some((u=>predicateOnArray(Array.prototype.some,u,y)))}function isOptional(u,y){return isUndefined(u)||y(u)}function isArray(u,y){if(!Array.isArray(u)){return false}if(!isFunction(y)){return true}return u.every((u=>y(u)))}function distribution_isArrayBuffer(u){return getObjectType(u)==="ArrayBuffer"}function isArrayLike(u){return!isNullOrUndefined(u)&&!isFunction(u)&&isValidLength(u.length)}function isAsyncFunction(u){return getObjectType(u)==="AsyncFunction"}function distribution_isAsyncGenerator(u){return isAsyncIterable(u)&&isFunction(u.next)&&isFunction(u.throw)}function isAsyncGeneratorFunction(u){return getObjectType(u)==="AsyncGeneratorFunction"}function isAsyncIterable(u){return isFunction(u?.[Symbol.asyncIterator])}function isBigint(u){return typeof u==="bigint"}function isBigInt64Array(u){return getObjectType(u)==="BigInt64Array"}function isBigUint64Array(u){return getObjectType(u)==="BigUint64Array"}function isBlob(u){return getObjectType(u)==="Blob"}function isBoolean(u){return u===true||u===false}function isBoundFunction(u){return isFunction(u)&&!Object.hasOwn(u,"prototype")}function isBuffer(u){return u?.constructor?.isBuffer?.(u)??false}function isClass(u){return isFunction(u)&&/^class(\s+|{)/.test(u.toString())}function isDataView(u){return getObjectType(u)==="DataView"}function isDate(u){return getObjectType(u)==="Date"}function isDirectInstanceOf(u,y){if(u===undefined||u===null){return false}return Object.getPrototypeOf(u)===y.prototype}function isEmptyArray(u){return isArray(u)&&u.length===0}function isEmptyMap(u){return isMap(u)&&u.size===0}function isEmptyObject(u){return distribution_isObject(u)&&!isMap(u)&&!isSet(u)&&Object.keys(u).length===0}function isEmptySet(u){return isSet(u)&&u.size===0}function isEmptyString(u){return isString(u)&&u.length===0}function isEmptyStringOrWhitespace(u){return isEmptyString(u)||isWhitespaceString(u)}function isEnumCase(u,y){return Object.values(y).includes(u)}function isError(u){return getObjectType(u)==="Error"}function isEvenInteger(u){return isAbsoluteModule2(0)(u)}function isFalsy(u){return!u}function isFloat32Array(u){return getObjectType(u)==="Float32Array"}function isFloat64Array(u){return getObjectType(u)==="Float64Array"}function isFormData(u){return getObjectType(u)==="FormData"}function isFunction(u){return typeof u==="function"}function distribution_isGenerator(u){return isIterable(u)&&isFunction(u?.next)&&isFunction(u?.throw)}function isGeneratorFunction(u){return getObjectType(u)==="GeneratorFunction"}const jo=1;const zo=["innerHTML","ownerDocument","style","attributes","nodeValue"];function isHtmlElement(u){return distribution_isObject(u)&&u.nodeType===jo&&isString(u.nodeName)&&!distribution_isPlainObject(u)&&zo.every((y=>y in u))}function isInfinite(u){return u===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY}function isInRange(u,y){if(isNumber(y)){return u>=Math.min(0,y)&&u<=Math.max(y,0)}if(isArray(y)&&y.length===2){return u>=Math.min(...y)&&u<=Math.max(...y)}throw new TypeError(`Invalid range: ${JSON.stringify(y)}`)}function isInt16Array(u){return getObjectType(u)==="Int16Array"}function isInt32Array(u){return getObjectType(u)==="Int32Array"}function isInt8Array(u){return getObjectType(u)==="Int8Array"}function isInteger(u){return Number.isInteger(u)}function isIterable(u){return isFunction(u?.[Symbol.iterator])}function isMap(u){return getObjectType(u)==="Map"}function isNan(u){return Number.isNaN(u)}function isNativePromise(u){return getObjectType(u)==="Promise"}function isNegativeNumber(u){return isNumber(u)&&u<0}function isNodeStream(u){return distribution_isObject(u)&&isFunction(u.pipe)&&!isObservable(u)}function isNonEmptyArray(u){return isArray(u)&&u.length>0}function isNonEmptyMap(u){return isMap(u)&&u.size>0}function isNonEmptyObject(u){return distribution_isObject(u)&&!isMap(u)&&!isSet(u)&&Object.keys(u).length>0}function isNonEmptySet(u){return isSet(u)&&u.size>0}function isNonEmptyString(u){return isString(u)&&u.length>0}function isNonEmptyStringAndNotWhitespace(u){return isString(u)&&!isEmptyStringOrWhitespace(u)}function isNull(u){return u===null}function isNullOrUndefined(u){return isNull(u)||isUndefined(u)}function isNumber(u){return typeof u==="number"&&!Number.isNaN(u)}function isNumericString(u){return isString(u)&&!isEmptyStringOrWhitespace(u)&&!Number.isNaN(Number(u))}function distribution_isObject(u){return!isNull(u)&&(typeof u==="object"||isFunction(u))}function isObservable(u){if(!u){return false}if(Symbol.observable!==undefined&&u===u[Symbol.observable]?.()){return true}if(u===u["@@observable"]?.()){return true}return false}function isOddInteger(u){return isAbsoluteModule2(1)(u)}function distribution_isPlainObject(u){if(typeof u!=="object"||u===null){return false}const y=Object.getPrototypeOf(u);return(y===null||y===Object.prototype||Object.getPrototypeOf(y)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)}function isPositiveNumber(u){return isNumber(u)&&u>0}function isPrimitive(u){return isNull(u)||isPrimitiveTypeName(typeof u)}function isPromise(u){return isNativePromise(u)||hasPromiseApi(u)}function isPropertyKey(u){return isAny([isString,isNumber,isSymbol],u)}function isRegExp(u){return getObjectType(u)==="RegExp"}function isSafeInteger(u){return Number.isSafeInteger(u)}function isSet(u){return getObjectType(u)==="Set"}function isSharedArrayBuffer(u){return getObjectType(u)==="SharedArrayBuffer"}function isString(u){return typeof u==="string"}function isSymbol(u){return typeof u==="symbol"}function isTruthy(u){return Boolean(u)}function isTupleLike(u,y){if(isArray(y)&&isArray(u)&&y.length===u.length){return y.every(((y,C)=>y(u[C])))}return false}function isTypedArray(u){return isTypedArrayName(getObjectType(u))}function isUint16Array(u){return getObjectType(u)==="Uint16Array"}function isUint32Array(u){return getObjectType(u)==="Uint32Array"}function distribution_isUint8Array(u){return getObjectType(u)==="Uint8Array"}function isUint8ClampedArray(u){return getObjectType(u)==="Uint8ClampedArray"}function isUndefined(u){return u===undefined}function isUrlInstance(u){return getObjectType(u)==="URL"}function isUrlSearchParams(u){return getObjectType(u)==="URLSearchParams"}function isUrlString(u){if(!isString(u)){return false}try{new URL(u);return true}catch{return false}}function isValidDate(u){return isDate(u)&&!isNan(Number(u))}function isValidLength(u){return isSafeInteger(u)&&u>=0}function isWeakMap(u){return getObjectType(u)==="WeakMap"}function isWeakRef(u){return getObjectType(u)==="WeakRef"}function isWeakSet(u){return getObjectType(u)==="WeakSet"}function isWhitespaceString(u){return isString(u)&&/^\s+$/.test(u)}function predicateOnArray(u,y,C){if(!isFunction(y)){throw new TypeError(`Invalid predicate: ${JSON.stringify(y)}`)}if(C.length===0){throw new TypeError("Invalid number of values")}return u.call(C,y)}function typeErrorMessage(u,y){return`Expected value which is \`${u}\`, received value of type \`${Wo(y)}\`.`}function unique(u){return Array.from(new Set(u))}const $o=new Intl.ListFormat("en",{style:"long",type:"conjunction"});const qo=new Intl.ListFormat("en",{style:"long",type:"disjunction"});function typeErrorMessageMultipleValues(u,y){const C=unique((isArray(u)?u:[u]).map((u=>`\`${u}\``)));const D=unique(y.map((u=>`\`${Wo(u)}\``)));return`Expected values which are ${qo.format(C)}. Received values of type${D.length>1?"s":""} ${$o.format(D)}.`}const Vo={all:assertAll,any:assertAny,optional:assertOptional,array:assertArray,arrayBuffer:assertArrayBuffer,arrayLike:assertArrayLike,asyncFunction:assertAsyncFunction,asyncGenerator:assertAsyncGenerator,asyncGeneratorFunction:assertAsyncGeneratorFunction,asyncIterable:assertAsyncIterable,bigint:assertBigint,bigInt64Array:assertBigInt64Array,bigUint64Array:assertBigUint64Array,blob:assertBlob,boolean:assertBoolean,boundFunction:assertBoundFunction,buffer:assertBuffer,class:assertClass,dataView:assertDataView,date:assertDate,directInstanceOf:assertDirectInstanceOf,emptyArray:assertEmptyArray,emptyMap:assertEmptyMap,emptyObject:assertEmptyObject,emptySet:assertEmptySet,emptyString:assertEmptyString,emptyStringOrWhitespace:assertEmptyStringOrWhitespace,enumCase:assertEnumCase,error:assertError,evenInteger:assertEvenInteger,falsy:assertFalsy,float32Array:assertFloat32Array,float64Array:assertFloat64Array,formData:assertFormData,function:assertFunction,generator:assertGenerator,generatorFunction:assertGeneratorFunction,htmlElement:assertHtmlElement,infinite:assertInfinite,inRange:assertInRange,int16Array:assertInt16Array,int32Array:assertInt32Array,int8Array:assertInt8Array,integer:assertInteger,iterable:assertIterable,map:assertMap,nan:assertNan,nativePromise:assertNativePromise,negativeNumber:assertNegativeNumber,nodeStream:assertNodeStream,nonEmptyArray:assertNonEmptyArray,nonEmptyMap:assertNonEmptyMap,nonEmptyObject:assertNonEmptyObject,nonEmptySet:assertNonEmptySet,nonEmptyString:assertNonEmptyString,nonEmptyStringAndNotWhitespace:assertNonEmptyStringAndNotWhitespace,null:assertNull,nullOrUndefined:assertNullOrUndefined,number:assertNumber,numericString:assertNumericString,object:assertObject,observable:assertObservable,oddInteger:assertOddInteger,plainObject:assertPlainObject,positiveNumber:assertPositiveNumber,primitive:assertPrimitive,promise:assertPromise,propertyKey:assertPropertyKey,regExp:assertRegExp,safeInteger:assertSafeInteger,set:assertSet,sharedArrayBuffer:assertSharedArrayBuffer,string:assertString,symbol:assertSymbol,truthy:assertTruthy,tupleLike:assertTupleLike,typedArray:assertTypedArray,uint16Array:assertUint16Array,uint32Array:assertUint32Array,uint8Array:assertUint8Array,uint8ClampedArray:assertUint8ClampedArray,undefined:assertUndefined,urlInstance:assertUrlInstance,urlSearchParams:assertUrlSearchParams,urlString:assertUrlString,validDate:assertValidDate,validLength:assertValidLength,weakMap:assertWeakMap,weakRef:assertWeakRef,weakSet:assertWeakSet,whitespaceString:assertWhitespaceString};const Jo={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};const Ko=keysOf(Jo);function isIsMethodName(u){return Ko.includes(u)}function assertAll(u,...y){if(!isAll(u,...y)){const C=isIsMethodName(u.name)?Jo[u.name]:"predicate returns truthy for all values";throw new TypeError(typeErrorMessageMultipleValues(C,y))}}function assertAny(u,...y){if(!isAny(u,...y)){const C=isArray(u)?u:[u];const D=C.map((u=>isIsMethodName(u.name)?Jo[u.name]:"predicate returns truthy for any value"));throw new TypeError(typeErrorMessageMultipleValues(D,y))}}function assertOptional(u,y,C){if(!isUndefined(u)){y(u,C)}}function assertArray(u,y,C){if(!isArray(u)){throw new TypeError(C??typeErrorMessage("Array",u))}if(y){for(const D of u){y(D,C)}}}function assertArrayBuffer(u,y){if(!distribution_isArrayBuffer(u)){throw new TypeError(y??typeErrorMessage("ArrayBuffer",u))}}function assertArrayLike(u,y){if(!isArrayLike(u)){throw new TypeError(y??typeErrorMessage("array-like",u))}}function assertAsyncFunction(u,y){if(!isAsyncFunction(u)){throw new TypeError(y??typeErrorMessage("AsyncFunction",u))}}function assertAsyncGenerator(u,y){if(!distribution_isAsyncGenerator(u)){throw new TypeError(y??typeErrorMessage("AsyncGenerator",u))}}function assertAsyncGeneratorFunction(u,y){if(!isAsyncGeneratorFunction(u)){throw new TypeError(y??typeErrorMessage("AsyncGeneratorFunction",u))}}function assertAsyncIterable(u,y){if(!isAsyncIterable(u)){throw new TypeError(y??typeErrorMessage("AsyncIterable",u))}}function assertBigint(u,y){if(!isBigint(u)){throw new TypeError(y??typeErrorMessage("bigint",u))}}function assertBigInt64Array(u,y){if(!isBigInt64Array(u)){throw new TypeError(y??typeErrorMessage("BigInt64Array",u))}}function assertBigUint64Array(u,y){if(!isBigUint64Array(u)){throw new TypeError(y??typeErrorMessage("BigUint64Array",u))}}function assertBlob(u,y){if(!isBlob(u)){throw new TypeError(y??typeErrorMessage("Blob",u))}}function assertBoolean(u,y){if(!isBoolean(u)){throw new TypeError(y??typeErrorMessage("boolean",u))}}function assertBoundFunction(u,y){if(!isBoundFunction(u)){throw new TypeError(y??typeErrorMessage("Function",u))}}function assertBuffer(u,y){if(!isBuffer(u)){throw new TypeError(y??typeErrorMessage("Buffer",u))}}function assertClass(u,y){if(!isClass(u)){throw new TypeError(y??typeErrorMessage("Class",u))}}function assertDataView(u,y){if(!isDataView(u)){throw new TypeError(y??typeErrorMessage("DataView",u))}}function assertDate(u,y){if(!isDate(u)){throw new TypeError(y??typeErrorMessage("Date",u))}}function assertDirectInstanceOf(u,y,C){if(!isDirectInstanceOf(u,y)){throw new TypeError(C??typeErrorMessage("T",u))}}function assertEmptyArray(u,y){if(!isEmptyArray(u)){throw new TypeError(y??typeErrorMessage("empty array",u))}}function assertEmptyMap(u,y){if(!isEmptyMap(u)){throw new TypeError(y??typeErrorMessage("empty map",u))}}function assertEmptyObject(u,y){if(!isEmptyObject(u)){throw new TypeError(y??typeErrorMessage("empty object",u))}}function assertEmptySet(u,y){if(!isEmptySet(u)){throw new TypeError(y??typeErrorMessage("empty set",u))}}function assertEmptyString(u,y){if(!isEmptyString(u)){throw new TypeError(y??typeErrorMessage("empty string",u))}}function assertEmptyStringOrWhitespace(u,y){if(!isEmptyStringOrWhitespace(u)){throw new TypeError(y??typeErrorMessage("empty string or whitespace",u))}}function assertEnumCase(u,y,C){if(!isEnumCase(u,y)){throw new TypeError(C??typeErrorMessage("EnumCase",u))}}function assertError(u,y){if(!isError(u)){throw new TypeError(y??typeErrorMessage("Error",u))}}function assertEvenInteger(u,y){if(!isEvenInteger(u)){throw new TypeError(y??typeErrorMessage("even integer",u))}}function assertFalsy(u,y){if(!isFalsy(u)){throw new TypeError(y??typeErrorMessage("falsy",u))}}function assertFloat32Array(u,y){if(!isFloat32Array(u)){throw new TypeError(y??typeErrorMessage("Float32Array",u))}}function assertFloat64Array(u,y){if(!isFloat64Array(u)){throw new TypeError(y??typeErrorMessage("Float64Array",u))}}function assertFormData(u,y){if(!isFormData(u)){throw new TypeError(y??typeErrorMessage("FormData",u))}}function assertFunction(u,y){if(!isFunction(u)){throw new TypeError(y??typeErrorMessage("Function",u))}}function assertGenerator(u,y){if(!distribution_isGenerator(u)){throw new TypeError(y??typeErrorMessage("Generator",u))}}function assertGeneratorFunction(u,y){if(!isGeneratorFunction(u)){throw new TypeError(y??typeErrorMessage("GeneratorFunction",u))}}function assertHtmlElement(u,y){if(!isHtmlElement(u)){throw new TypeError(y??typeErrorMessage("HTMLElement",u))}}function assertInfinite(u,y){if(!isInfinite(u)){throw new TypeError(y??typeErrorMessage("infinite number",u))}}function assertInRange(u,y,C){if(!isInRange(u,y)){throw new TypeError(C??typeErrorMessage("in range",u))}}function assertInt16Array(u,y){if(!isInt16Array(u)){throw new TypeError(y??typeErrorMessage("Int16Array",u))}}function assertInt32Array(u,y){if(!isInt32Array(u)){throw new TypeError(y??typeErrorMessage("Int32Array",u))}}function assertInt8Array(u,y){if(!isInt8Array(u)){throw new TypeError(y??typeErrorMessage("Int8Array",u))}}function assertInteger(u,y){if(!isInteger(u)){throw new TypeError(y??typeErrorMessage("integer",u))}}function assertIterable(u,y){if(!isIterable(u)){throw new TypeError(y??typeErrorMessage("Iterable",u))}}function assertMap(u,y){if(!isMap(u)){throw new TypeError(y??typeErrorMessage("Map",u))}}function assertNan(u,y){if(!isNan(u)){throw new TypeError(y??typeErrorMessage("NaN",u))}}function assertNativePromise(u,y){if(!isNativePromise(u)){throw new TypeError(y??typeErrorMessage("native Promise",u))}}function assertNegativeNumber(u,y){if(!isNegativeNumber(u)){throw new TypeError(y??typeErrorMessage("negative number",u))}}function assertNodeStream(u,y){if(!isNodeStream(u)){throw new TypeError(y??typeErrorMessage("Node.js Stream",u))}}function assertNonEmptyArray(u,y){if(!isNonEmptyArray(u)){throw new TypeError(y??typeErrorMessage("non-empty array",u))}}function assertNonEmptyMap(u,y){if(!isNonEmptyMap(u)){throw new TypeError(y??typeErrorMessage("non-empty map",u))}}function assertNonEmptyObject(u,y){if(!isNonEmptyObject(u)){throw new TypeError(y??typeErrorMessage("non-empty object",u))}}function assertNonEmptySet(u,y){if(!isNonEmptySet(u)){throw new TypeError(y??typeErrorMessage("non-empty set",u))}}function assertNonEmptyString(u,y){if(!isNonEmptyString(u)){throw new TypeError(y??typeErrorMessage("non-empty string",u))}}function assertNonEmptyStringAndNotWhitespace(u,y){if(!isNonEmptyStringAndNotWhitespace(u)){throw new TypeError(y??typeErrorMessage("non-empty string and not whitespace",u))}}function assertNull(u,y){if(!isNull(u)){throw new TypeError(y??typeErrorMessage("null",u))}}function assertNullOrUndefined(u,y){if(!isNullOrUndefined(u)){throw new TypeError(y??typeErrorMessage("null or undefined",u))}}function assertNumber(u,y){if(!isNumber(u)){throw new TypeError(y??typeErrorMessage("number",u))}}function assertNumericString(u,y){if(!isNumericString(u)){throw new TypeError(y??typeErrorMessage("string with a number",u))}}function assertObject(u,y){if(!distribution_isObject(u)){throw new TypeError(y??typeErrorMessage("Object",u))}}function assertObservable(u,y){if(!isObservable(u)){throw new TypeError(y??typeErrorMessage("Observable",u))}}function assertOddInteger(u,y){if(!isOddInteger(u)){throw new TypeError(y??typeErrorMessage("odd integer",u))}}function assertPlainObject(u,y){if(!distribution_isPlainObject(u)){throw new TypeError(y??typeErrorMessage("plain object",u))}}function assertPositiveNumber(u,y){if(!isPositiveNumber(u)){throw new TypeError(y??typeErrorMessage("positive number",u))}}function assertPrimitive(u,y){if(!isPrimitive(u)){throw new TypeError(y??typeErrorMessage("primitive",u))}}function assertPromise(u,y){if(!isPromise(u)){throw new TypeError(y??typeErrorMessage("Promise",u))}}function assertPropertyKey(u,y){if(!isPropertyKey(u)){throw new TypeError(y??typeErrorMessage("PropertyKey",u))}}function assertRegExp(u,y){if(!isRegExp(u)){throw new TypeError(y??typeErrorMessage("RegExp",u))}}function assertSafeInteger(u,y){if(!isSafeInteger(u)){throw new TypeError(y??typeErrorMessage("integer",u))}}function assertSet(u,y){if(!isSet(u)){throw new TypeError(y??typeErrorMessage("Set",u))}}function assertSharedArrayBuffer(u,y){if(!isSharedArrayBuffer(u)){throw new TypeError(y??typeErrorMessage("SharedArrayBuffer",u))}}function assertString(u,y){if(!isString(u)){throw new TypeError(y??typeErrorMessage("string",u))}}function assertSymbol(u,y){if(!isSymbol(u)){throw new TypeError(y??typeErrorMessage("symbol",u))}}function assertTruthy(u,y){if(!isTruthy(u)){throw new TypeError(y??typeErrorMessage("truthy",u))}}function assertTupleLike(u,y,C){if(!isTupleLike(u,y)){throw new TypeError(C??typeErrorMessage("tuple-like",u))}}function assertTypedArray(u,y){if(!isTypedArray(u)){throw new TypeError(y??typeErrorMessage("TypedArray",u))}}function assertUint16Array(u,y){if(!isUint16Array(u)){throw new TypeError(y??typeErrorMessage("Uint16Array",u))}}function assertUint32Array(u,y){if(!isUint32Array(u)){throw new TypeError(y??typeErrorMessage("Uint32Array",u))}}function assertUint8Array(u,y){if(!distribution_isUint8Array(u)){throw new TypeError(y??typeErrorMessage("Uint8Array",u))}}function assertUint8ClampedArray(u,y){if(!isUint8ClampedArray(u)){throw new TypeError(y??typeErrorMessage("Uint8ClampedArray",u))}}function assertUndefined(u,y){if(!isUndefined(u)){throw new TypeError(y??typeErrorMessage("undefined",u))}}function assertUrlInstance(u,y){if(!isUrlInstance(u)){throw new TypeError(y??typeErrorMessage("URL",u))}}function assertUrlSearchParams(u,y){if(!isUrlSearchParams(u)){throw new TypeError(y??typeErrorMessage("URLSearchParams",u))}}function assertUrlString(u,y){if(!isUrlString(u)){throw new TypeError(y??typeErrorMessage("string with a URL",u))}}function assertValidDate(u,y){if(!isValidDate(u)){throw new TypeError(y??typeErrorMessage("valid Date",u))}}function assertValidLength(u,y){if(!isValidLength(u)){throw new TypeError(y??typeErrorMessage("valid length",u))}}function assertWeakMap(u,y){if(!isWeakMap(u)){throw new TypeError(y??typeErrorMessage("WeakMap",u))}}function assertWeakRef(u,y){if(!isWeakRef(u)){throw new TypeError(y??typeErrorMessage("WeakRef",u))}}function assertWeakSet(u,y){if(!isWeakSet(u)){throw new TypeError(y??typeErrorMessage("WeakSet",u))}}function assertWhitespaceString(u,y){if(!isWhitespaceString(u)){throw new TypeError(y??typeErrorMessage("whitespace string",u))}}const Yo=Wo;class CancelError extends Error{constructor(u){super(u||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}const Xo=Object.freeze({pending:Symbol("pending"),canceled:Symbol("canceled"),resolved:Symbol("resolved"),rejected:Symbol("rejected")});class PCancelable{static fn(u){return(...y)=>new PCancelable(((C,D,_)=>{y.push(_);u(...y).then(C,D)}))}#Pt=[];#Ot=true;#Mt=Xo.pending;#Ut;#Ht;constructor(u){this.#Ut=new Promise(((y,C)=>{this.#Ht=C;const onResolve=u=>{if(this.#Mt!==Xo.canceled||!onCancel.shouldReject){y(u);this.#Gt(Xo.resolved)}};const onReject=u=>{if(this.#Mt!==Xo.canceled||!onCancel.shouldReject){C(u);this.#Gt(Xo.rejected)}};const onCancel=u=>{if(this.#Mt!==Xo.pending){throw new Error(`The \`onCancel\` handler was attached after the promise ${this.#Mt.description}.`)}this.#Pt.push(u)};Object.defineProperties(onCancel,{shouldReject:{get:()=>this.#Ot,set:u=>{this.#Ot=u}}});u(onResolve,onReject,onCancel)}))}then(u,y){return this.#Ut.then(u,y)}catch(u){return this.#Ut.catch(u)}finally(u){return this.#Ut.finally(u)}cancel(u){if(this.#Mt!==Xo.pending){return}this.#Gt(Xo.canceled);if(this.#Pt.length>0){try{for(const u of this.#Pt){u()}}catch(u){this.#Ht(u);return}}if(this.#Ot){this.#Ht(new CancelError(u))}}get isCanceled(){return this.#Mt===Xo.canceled}#Gt(u){if(this.#Mt===Xo.pending){this.#Mt=u}}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);function isRequest(u){return Yo.object(u)&&"_onResponse"in u}class RequestError extends Error{name="RequestError";code="ERR_GOT_REQUEST_ERROR";input;stack;response;request;timings;constructor(u,y,C){super(u,{cause:y});Error.captureStackTrace(this,this.constructor);if(y.code){this.code=y.code}this.input=y.input;if(isRequest(C)){Object.defineProperty(this,"request",{enumerable:false,value:C});Object.defineProperty(this,"response",{enumerable:false,value:C.response});this.options=C.options}else{this.options=C}this.timings=this.request?.timings;if(Yo.string(y.stack)&&Yo.string(this.stack)){const u=this.stack.indexOf(this.message)+this.message.length;const C=this.stack.slice(u).split("\n").reverse();const D=y.stack.slice(y.stack.indexOf(y.message)+y.message.length).split("\n").reverse();while(D.length>0&&D[0]===C[0]){C.shift()}this.stack=`${this.stack.slice(0,u)}${C.reverse().join("\n")}${D.reverse().join("\n")}`}}}class MaxRedirectsError extends RequestError{name="MaxRedirectsError";code="ERR_TOO_MANY_REDIRECTS";constructor(u){super(`Redirected ${u.options.maxRedirects} times. Aborting.`,{},u)}}class HTTPError extends RequestError{name="HTTPError";code="ERR_NON_2XX_3XX_RESPONSE";constructor(u){super(`Request failed with status code ${u.statusCode} (${u.statusMessage}): ${u.request.options.method} ${u.request.options.url.toString()}`,{},u.request)}}class CacheError extends RequestError{name="CacheError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_CACHE_ACCESS"}}}class UploadError extends RequestError{name="UploadError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_UPLOAD"}}}class TimeoutError extends RequestError{name="TimeoutError";timings;event;constructor(u,y,C){super(u.message,u,C);this.event=u.event;this.timings=y}}class ReadError extends RequestError{name="ReadError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_READING_RESPONSE_STREAM"}}}class RetryError extends RequestError{name="RetryError";code="ERR_RETRYING";constructor(u){super("Retrying",{},u)}}class AbortError extends RequestError{name="AbortError";code="ERR_ABORTED";constructor(u){super("This operation was aborted.",{},u)}}const Zo=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http");const ea=new TextEncoder;function byteLength(u){if(typeof u==="string"){return ea.encode(u).byteLength}if(ArrayBuffer.isView(u)||u instanceof ArrayBuffer||u instanceof SharedArrayBuffer){return u.byteLength}return 0}const ra=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");function node_modules_is_stream_isStream(u,{checkOpen:y=true}={}){return u!==null&&typeof u==="object"&&(u.writable||u.readable||!y||u.writable===undefined&&u.readable===undefined)&&typeof u.pipe==="function"}function is_stream_isWritableStream(u,{checkOpen:y=true}={}){return node_modules_is_stream_isStream(u,{checkOpen:y})&&(u.writable||!y)&&typeof u.write==="function"&&typeof u.end==="function"&&typeof u.writable==="boolean"&&typeof u.writableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function is_stream_isReadableStream(u,{checkOpen:y=true}={}){return node_modules_is_stream_isStream(u,{checkOpen:y})&&(u.readable||!y)&&typeof u.read==="function"&&typeof u.readable==="boolean"&&typeof u.readableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function is_stream_isDuplexStream(u,y){return is_stream_isWritableStream(u,y)&&is_stream_isReadableStream(u,y)}function is_stream_isTransformStream(u,y){return is_stream_isDuplexStream(u,y)&&typeof u._transform==="function"}const stream_getAsyncIterable=u=>{if(is_stream_isReadableStream(u,{checkOpen:false})&&oa.on!==undefined){return stream_getStreamIterable(u)}if(typeof u?.[Symbol.asyncIterator]==="function"){return u}if(ia.call(u)==="[object ReadableStream]"){return h.call(u)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:ia}=Object.prototype;const stream_getStreamIterable=async function*(u){const y=new AbortController;const C={};stream_handleStreamEnd(u,y,C);try{for await(const[C]of oa.on(u,"data",{signal:y.signal})){yield C}}catch(u){if(C.error!==undefined){throw C.error}else if(!y.signal.aborted){throw u}}finally{u.destroy()}};const stream_handleStreamEnd=async(u,y,C)=>{try{await oa.finished(u,{cleanup:true,readable:true,writable:false,error:false})}catch(u){C.error=u}finally{y.abort()}};const oa={};const source_contents_getStreamContents=async(u,{init:y,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,finalize:ne},{maxBuffer:oe=Number.POSITIVE_INFINITY}={})=>{const le=stream_getAsyncIterable(u);const de=y();de.length=0;try{for await(const u of le){const y=contents_getChunkType(u);const $=C[y](u,de);contents_appendChunk({convertedChunk:$,state:de,getSize:D,truncateChunk:_,addChunk:j,maxBuffer:oe})}contents_appendFinalChunk({state:de,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,maxBuffer:oe});return ne(de)}catch(u){const y=typeof u==="object"&&u!==null?u:new Error(u);y.bufferedData=ne(de);throw y}};const contents_appendFinalChunk=({state:u,getSize:y,truncateChunk:C,addChunk:D,getFinalChunk:_,maxBuffer:j})=>{const $=_(u);if($!==undefined){contents_appendChunk({convertedChunk:$,state:u,getSize:y,truncateChunk:C,addChunk:D,maxBuffer:j})}};const contents_appendChunk=({convertedChunk:u,state:y,getSize:C,truncateChunk:D,addChunk:_,maxBuffer:j})=>{const $=C(u);const ne=y.length+$;if(ne<=j){contents_addNewChunk(u,y,_,ne);return}const oe=D(u,j-y.length);if(oe!==undefined){contents_addNewChunk(oe,y,_,j)}throw new contents_MaxBufferError};const contents_addNewChunk=(u,y,C,D)=>{y.contents=C(u,y,D);y.length=D};const contents_getChunkType=u=>{const y=typeof u;if(y==="string"){return"string"}if(y!=="object"||u===null){return"others"}if(globalThis.Buffer?.isBuffer(u)){return"buffer"}const C=aa.call(u);if(C==="[object ArrayBuffer]"){return"arrayBuffer"}if(C==="[object DataView]"){return"dataView"}if(Number.isInteger(u.byteLength)&&Number.isInteger(u.byteOffset)&&aa.call(u.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:aa}=Object.prototype;class contents_MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const source_utils_identity=u=>u;const source_utils_noop=()=>undefined;const utils_getContentsProperty=({contents:u})=>u;const utils_throwObjectStream=u=>{throw new Error(`Streams in object mode are not supported: ${String(u)}`)};const utils_getLengthProperty=u=>u.length;async function array_buffer_getStreamAsArrayBuffer(u,y){return source_contents_getStreamContents(u,fa,y)}const array_buffer_initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const array_buffer_useTextEncoder=u=>la.encode(u);const la=new TextEncoder;const array_buffer_useUint8Array=u=>new Uint8Array(u);const array_buffer_useUint8ArrayWithOffset=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const array_buffer_truncateArrayBufferChunk=(u,y)=>u.slice(0,y);const array_buffer_addArrayBufferChunk=(u,{contents:y,length:C},D)=>{const _=array_buffer_hasArrayBufferResize()?array_buffer_resizeArrayBuffer(y,D):array_buffer_resizeArrayBufferSlow(y,D);new Uint8Array(_).set(u,C);return _};const array_buffer_resizeArrayBufferSlow=(u,y)=>{if(y<=u.byteLength){return u}const C=new ArrayBuffer(array_buffer_getNewContentsLength(y));new Uint8Array(C).set(new Uint8Array(u),0);return C};const array_buffer_resizeArrayBuffer=(u,y)=>{if(y<=u.maxByteLength){u.resize(y);return u}const C=new ArrayBuffer(y,{maxByteLength:array_buffer_getNewContentsLength(y)});new Uint8Array(C).set(new Uint8Array(u),0);return C};const array_buffer_getNewContentsLength=u=>ca**Math.ceil(Math.log(u)/Math.log(ca));const ca=2;const array_buffer_finalizeArrayBuffer=({contents:u,length:y})=>array_buffer_hasArrayBufferResize()?u:u.slice(0,y);const array_buffer_hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const fa={init:array_buffer_initArrayBuffer,convertChunk:{string:array_buffer_useTextEncoder,buffer:array_buffer_useUint8Array,arrayBuffer:array_buffer_useUint8Array,dataView:array_buffer_useUint8ArrayWithOffset,typedArray:array_buffer_useUint8ArrayWithOffset,others:utils_throwObjectStream},getSize:utils_getLengthProperty,truncateChunk:array_buffer_truncateArrayBufferChunk,addChunk:array_buffer_addArrayBufferChunk,getFinalChunk:source_utils_noop,finalize:array_buffer_finalizeArrayBuffer};async function getStreamAsBuffer(u,y){if(!("Buffer"in globalThis)){throw new Error("getStreamAsBuffer() is only supported in Node.js")}try{return arrayBufferToNodeBuffer(await array_buffer_getStreamAsArrayBuffer(u,y))}catch(u){if(u.bufferedData!==undefined){u.bufferedData=arrayBufferToNodeBuffer(u.bufferedData)}throw u}}const arrayBufferToNodeBuffer=u=>globalThis.Buffer.from(u);var da=C(4584);var ha=C(181);var _serialize=(u,y=true)=>{if(u===void 0||u===null){return"null"}if(typeof u==="string"){return JSON.stringify(y&&u.startsWith(":")?`:${u}`:u)}if(ha.Buffer.isBuffer(u)){return JSON.stringify(`:base64:${u.toString("base64")}`)}if(u?.toJSON){u=u.toJSON()}if(typeof u==="object"){let C="";const D=Array.isArray(u);C=D?"[":"{";let _=true;for(const j in u){const $=typeof u[j]==="function"||!D&&u[j]===void 0;if(!Object.hasOwn(u,j)||$){continue}if(!_){C+=","}_=false;if(D){C+=_serialize(u[j],y)}else if(u[j]!==void 0){C+=`${_serialize(j,false)}:${_serialize(u[j],y)}`}}C+=D?"]":"}";return C}return JSON.stringify(u)};var defaultSerialize=u=>_serialize(u,true);var defaultDeserialize=u=>JSON.parse(u,((u,y)=>{if(typeof y==="string"){if(y.startsWith(":base64:")){return ha.Buffer.from(y.slice(8),"base64")}return y.startsWith(":")?y.slice(1):y}return y}));var pa=class{_eventListeners;_maxListeners;constructor(){this._eventListeners=new Map;this._maxListeners=100}maxListeners(){return this._maxListeners}addListener(u,y){this.on(u,y)}on(u,y){if(!this._eventListeners.has(u)){this._eventListeners.set(u,[])}const C=this._eventListeners.get(u);if(C){if(C.length>=this._maxListeners){console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${C.length+1} ${u} listeners added. Use setMaxListeners() to increase limit.`)}C.push(y)}return this}removeListener(u,y){this.off(u,y)}off(u,y){const C=this._eventListeners.get(u)??[];const D=C.indexOf(y);if(D!==-1){C.splice(D,1)}if(C.length===0){this._eventListeners.delete(u)}}once(u,y){const onceListener=(...C)=>{y(...C);this.off(u,onceListener)};this.on(u,onceListener)}emit(u,...y){const C=this._eventListeners.get(u);if(C&&C.length>0){for(const u of C){u(...y)}}}listeners(u){return this._eventListeners.get(u)??[]}removeAllListeners(u){if(u){this._eventListeners.delete(u)}else{this._eventListeners.clear()}}setMaxListeners(u){this._maxListeners=u}};var ga=pa;var ma=class extends ga{_hookHandlers;constructor(){super();this._hookHandlers=new Map}addHandler(u,y){const C=this._hookHandlers.get(u);if(C){C.push(y)}else{this._hookHandlers.set(u,[y])}}removeHandler(u,y){const C=this._hookHandlers.get(u);if(C){const u=C.indexOf(y);if(u!==-1){C.splice(u,1)}}}trigger(u,y){const C=this._hookHandlers.get(u);if(C){for(const D of C){try{D(y)}catch(y){this.emit("error",new Error(`Error in hook handler for event "${u}": ${y.message}`))}}}}get handlers(){return new Map(this._hookHandlers)}};var ba=ma;var Sa=class extends ga{enabled=true;hits=0;misses=0;sets=0;deletes=0;errors=0;constructor(u){super();if(u!==void 0){this.enabled=u}this.reset()}hit(){if(this.enabled){this.hits++}}miss(){if(this.enabled){this.misses++}}set(){if(this.enabled){this.sets++}}delete(){if(this.enabled){this.deletes++}}hitsOrMisses(u){for(const y of u){if(y===void 0){this.miss()}else{this.hit()}}}reset(){this.hits=0;this.misses=0;this.sets=0;this.deletes=0;this.errors=0}};var ka=Sa;var Qa=(u=>{u["PRE_SET"]="preSet";u["POST_SET"]="postSet";u["PRE_GET"]="preGet";u["POST_GET"]="postGet";u["PRE_GET_MANY"]="preGetMany";u["POST_GET_MANY"]="postGetMany";u["PRE_GET_RAW"]="preGetRaw";u["POST_GET_RAW"]="postGetRaw";u["PRE_GET_MANY_RAW"]="preGetManyRaw";u["POST_GET_MANY_RAW"]="postGetManyRaw";u["PRE_DELETE"]="preDelete";u["POST_DELETE"]="postDelete";return u})(Qa||{});var Fa=["sqlite","postgres","mysql","mongo","redis","valkey","etcd"];var _a=class extends ga{opts;iterator;hooks=new ba;stats=new ka(false);_ttl;_namespace;_store=new Map;_serialize=defaultSerialize;_deserialize=defaultDeserialize;_compression;_useKeyPrefix=true;_throwOnErrors=false;constructor(u,y){super();y??={};u??={};this.opts={namespace:"keyv",serialize:defaultSerialize,deserialize:defaultDeserialize,emitErrors:true,store:new Map,...y};if(u&&u.get){this.opts.store=u}else{this.opts={...this.opts,...u}}this._store=this.opts.store??new Map;this._compression=this.opts.compression;this._serialize=this.opts.serialize;this._deserialize=this.opts.deserialize;if(this.opts.namespace){this._namespace=this.opts.namespace}if(this._store){if(!this._isValidStorageAdapter(this._store)){throw new Error("Invalid storage adapter")}if(typeof this._store.on==="function"){this._store.on("error",(u=>this.emit("error",u)))}this._store.namespace=this._namespace;if(typeof this._store[Symbol.iterator]==="function"&&this._store instanceof Map){this.iterator=this.generateIterator(this._store)}else if("iterator"in this._store&&this._store.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(this._store.iterator.bind(this._store))}}if(this.opts.stats){this.stats.enabled=this.opts.stats}if(this.opts.ttl){this._ttl=this.opts.ttl}if(this.opts.useKeyPrefix!==void 0){this._useKeyPrefix=this.opts.useKeyPrefix}if(this.opts.throwOnErrors!==void 0){this._throwOnErrors=this.opts.throwOnErrors}}get store(){return this._store}set store(u){if(this._isValidStorageAdapter(u)){this._store=u;this.opts.store=u;if(typeof u.on==="function"){u.on("error",(u=>this.emit("error",u)))}if(this._namespace){this._store.namespace=this._namespace}if(typeof u[Symbol.iterator]==="function"&&u instanceof Map){this.iterator=this.generateIterator(u)}else if("iterator"in u&&u.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(u.iterator?.bind(u))}}else{throw new Error("Invalid storage adapter")}}get compression(){return this._compression}set compression(u){this._compression=u}get namespace(){return this._namespace}set namespace(u){this._namespace=u;this.opts.namespace=u;this._store.namespace=u;if(this.opts.store){this.opts.store.namespace=u}}get ttl(){return this._ttl}set ttl(u){this.opts.ttl=u;this._ttl=u}get serialize(){return this._serialize}set serialize(u){this.opts.serialize=u;this._serialize=u}get deserialize(){return this._deserialize}set deserialize(u){this.opts.deserialize=u;this._deserialize=u}get useKeyPrefix(){return this._useKeyPrefix}set useKeyPrefix(u){this._useKeyPrefix=u;this.opts.useKeyPrefix=u}get throwOnErrors(){return this._throwOnErrors}set throwOnErrors(u){this._throwOnErrors=u;this.opts.throwOnErrors=u}generateIterator(u){const function_=async function*(){for await(const[y,C]of typeof u==="function"?u(this._store.namespace):u){const u=await this.deserializeData(C);if(this._useKeyPrefix&&this._store.namespace&&!y.includes(this._store.namespace)){continue}if(typeof u.expires==="number"&&Date.now()>u.expires){this.delete(y);continue}yield[this._getKeyUnprefix(y),u.value]}};return function_.bind(this)}_checkIterableAdapter(){return Fa.includes(this._store.opts.dialect)||Fa.some((u=>this._store.opts.url.includes(u)))}_getKeyPrefix(u){if(!this._useKeyPrefix){return u}if(!this._namespace){return u}return`${this._namespace}:${u}`}_getKeyPrefixArray(u){if(!this._useKeyPrefix){return u}if(!this._namespace){return u}return u.map((u=>`${this._namespace}:${u}`))}_getKeyUnprefix(u){if(!this._useKeyPrefix){return u}return u.split(":").splice(1).join(":")}_isValidStorageAdapter(u){return u instanceof Map||typeof u.get==="function"&&typeof u.set==="function"&&typeof u.delete==="function"&&typeof u.clear==="function"}async get(u,y){const{store:C}=this.opts;const D=Array.isArray(u);const _=D?this._getKeyPrefixArray(u):this._getKeyPrefix(u);const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;if(D){if(y?.raw===true){return this.getMany(u,{raw:true})}return this.getMany(u,{raw:false})}this.hooks.trigger("preGet",{key:_});let j;try{j=await C.get(_)}catch(u){if(this.throwOnErrors){throw u}}const $=typeof j==="string"||this.opts.compression?await this.deserializeData(j):j;if($===void 0||$===null){this.hooks.trigger("postGet",{key:_,value:void 0});this.stats.miss();return void 0}if(isDataExpired($)){await this.delete(u);this.hooks.trigger("postGet",{key:_,value:void 0});this.stats.miss();return void 0}this.hooks.trigger("postGet",{key:_,value:$});this.stats.hit();return y?.raw?$:$.value}async getMany(u,y){const{store:C}=this.opts;const D=this._getKeyPrefixArray(u);const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;this.hooks.trigger("preGetMany",{keys:D});if(C.getMany===void 0){const u=D.map((async u=>{const D=await C.get(u);const _=typeof D==="string"||this.opts.compression?await this.deserializeData(D):D;if(_===void 0||_===null){return void 0}if(isDataExpired(_)){await this.delete(u);return void 0}return y?.raw?_:_.value}));const _=await Promise.allSettled(u);const j=_.map((u=>u.value));this.hooks.trigger("postGetMany",j);if(j.length>0){this.stats.hit()}return j}const _=await C.getMany(D);const j=[];const $=[];for(const C in _){let D=_[C];if(typeof D==="string"){D=await this.deserializeData(D)}if(D===void 0||D===null){j.push(void 0);continue}if(isDataExpired(D)){$.push(u[C]);j.push(void 0);continue}const ne=y?.raw?D:D.value;j.push(ne)}if($.length>0){await this.deleteMany($)}this.hooks.trigger("postGetMany",j);if(j.length>0){this.stats.hit()}return j}async getRaw(u){const{store:y}=this.opts;const C=this._getKeyPrefix(u);this.hooks.trigger("preGetRaw",{key:C});const D=await y.get(C);if(D===void 0||D===null){this.hooks.trigger("postGetRaw",{key:C,value:void 0});this.stats.miss();return void 0}const _=typeof D==="string"||this.opts.compression?await this.deserializeData(D):D;if(_!==void 0&&_.expires!==void 0&&_.expires!==null&&_.expires<Date.now()){this.hooks.trigger("postGetRaw",{key:C,value:void 0});this.stats.miss();await this.delete(u);return void 0}this.stats.hit();this.hooks.trigger("postGetRaw",{key:C,value:_});return _}async getManyRaw(u){const{store:y}=this.opts;const C=this._getKeyPrefixArray(u);if(u.length===0){const y=Array.from({length:u.length}).fill(void 0);this.stats.misses+=u.length;this.hooks.trigger("postGetManyRaw",{keys:C,values:y});return y}let D=[];if(y.getMany===void 0){const u=C.map((async u=>{const C=await y.get(u);if(C!==void 0&&C!==null){return this.deserializeData(C)}return void 0}));const _=await Promise.allSettled(u);D=_.map((u=>u.value))}else{const u=await y.getMany(C);for(const y of u){if(y!==void 0&&y!==null){D.push(await this.deserializeData(y))}else{D.push(void 0)}}}const _=[];const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;for(const[u,y]of D.entries()){if(y!==void 0&&isDataExpired(y)){_.push(C[u]);D[u]=void 0}}if(_.length>0){await this.deleteMany(_)}this.stats.hitsOrMisses(D);this.hooks.trigger("postGetManyRaw",{keys:C,values:D});return D}async set(u,y,C){const D={key:u,value:y,ttl:C};this.hooks.trigger("preSet",D);const _=this._getKeyPrefix(D.key);D.ttl??=this._ttl;if(D.ttl===0){D.ttl=void 0}const{store:j}=this.opts;const $=typeof D.ttl==="number"?Date.now()+D.ttl:void 0;if(typeof D.value==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const ne={value:D.value,expires:$};const oe=await this.serializeData(ne);let le=true;try{const u=await j.set(_,oe,D.ttl);if(typeof u==="boolean"){le=u}}catch(u){le=false;this.emit("error",u);if(this._throwOnErrors){throw u}}this.hooks.trigger("postSet",{key:_,value:oe,ttl:C});this.stats.set();return le}async setMany(u){let y=[];try{if(this._store.setMany===void 0){const C=[];for(const y of u){C.push(this.set(y.key,y.value,y.ttl))}const D=await Promise.all(C);y=D}else{const C=await Promise.all(u.map((async({key:u,value:y,ttl:C})=>{C??=this._ttl;if(C===0){C=void 0}const D=typeof C==="number"?Date.now()+C:void 0;if(typeof y==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const _={value:y,expires:D};const j=await this.serializeData(_);const $=this._getKeyPrefix(u);return{key:$,value:j,ttl:C}})));y=await this._store.setMany(C)}}catch(C){this.emit("error",C);if(this._throwOnErrors){throw C}y=u.map((()=>false))}return y}async delete(u){const{store:y}=this.opts;if(Array.isArray(u)){return this.deleteMany(u)}const C=this._getKeyPrefix(u);this.hooks.trigger("preDelete",{key:C});let D=true;try{const u=await y.delete(C);if(typeof u==="boolean"){D=u}}catch(u){D=false;this.emit("error",u);if(this._throwOnErrors){throw u}}this.hooks.trigger("postDelete",{key:C,value:D});this.stats.delete();return D}async deleteMany(u){try{const{store:y}=this.opts;const C=this._getKeyPrefixArray(u);this.hooks.trigger("preDelete",{key:C});if(y.deleteMany!==void 0){return await y.deleteMany(C)}const D=C.map((async u=>y.delete(u)));const _=await Promise.all(D);const j=_.every(Boolean);this.hooks.trigger("postDelete",{key:C,value:j});return j}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}return false}}async clear(){this.emit("clear");const{store:u}=this.opts;try{await u.clear()}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}}}async has(u){if(Array.isArray(u)){return this.hasMany(u)}const y=this._getKeyPrefix(u);const{store:C}=this.opts;if(C.has!==void 0&&!(C instanceof Map)){return C.has(y)}let D;try{D=await C.get(y)}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}return false}if(D){const u=await this.deserializeData(D);if(u){if(u.expires===void 0||u.expires===null){return true}return u.expires>Date.now()}}return false}async hasMany(u){const y=this._getKeyPrefixArray(u);const{store:C}=this.opts;if(C.hasMany!==void 0){return C.hasMany(y)}const D=[];for(const y of u){D.push(await this.has(y))}return D}async disconnect(){const{store:u}=this.opts;this.emit("disconnect");if(typeof u.disconnect==="function"){return u.disconnect()}}emit(u,...y){if(u==="error"&&!this.opts.emitErrors){return}super.emit(u,...y)}async serializeData(u){if(!this._serialize){return u}if(this._compression?.compress){return this._serialize({value:await this._compression.compress(u.value),expires:u.expires})}return this._serialize(u)}async deserializeData(u){if(!this._deserialize){return u}if(this._compression?.decompress&&typeof u==="string"){const y=await this._deserialize(u);return{value:await this._compression.decompress(y?.value),expires:y?.expires}}if(typeof u==="string"){return this._deserialize(u)}return void 0}};var Na=null&&_a;
79
+ function f(u,y){var C=u.length;u.push(y);e:for(;0<C;){var D=C-1>>>1,_=u[D];if(0<g(_,y))u[D]=y,u[C]=_,C=D;else break e}}function h(u){return 0===u.length?null:u[0]}function k(u){if(0===u.length)return null;var y=u[0],C=u.pop();if(C!==y){u[0]=C;e:for(var D=0,_=u.length,j=_>>>1;D<j;){var $=2*(D+1)-1,ne=u[$],oe=$+1,le=u[oe];if(0>g(ne,C))oe<_&&0>g(le,ne)?(u[D]=le,u[oe]=C,D=oe):(u[D]=ne,u[$]=C,D=$);else if(oe<_&&0>g(le,C))u[D]=le,u[oe]=C,D=oe;else break e}}return y}function g(u,y){var C=u.sortIndex-y.sortIndex;return 0!==C?C:u.id-y.id}if("object"===typeof performance&&"function"===typeof performance.now){var C=performance;y.unstable_now=function(){return C.now()}}else{var D=Date,_=D.now();y.unstable_now=function(){return D.now()-_}}var j=[],$=[],ne=1,oe=null,le=3,de=!1,Ae=!1,pe=!1,Ee="function"===typeof setTimeout?setTimeout:null,Ce="function"===typeof clearTimeout?clearTimeout:null,Ie="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(u){for(var y=h($);null!==y;){if(null===y.callback)k($);else if(y.startTime<=u)k($),y.sortIndex=y.expirationTime,f(j,y);else break;y=h($)}}function H(u){pe=!1;G(u);if(!Ae)if(null!==h(j))Ae=!0,I(J);else{var y=h($);null!==y&&K(H,y.startTime-u)}}function J(u,C){Ae=!1;pe&&(pe=!1,Ce(xe),xe=-1);de=!0;var D=le;try{G(C);for(oe=h(j);null!==oe&&(!(oe.expirationTime>C)||u&&!M());){var _=oe.callback;if("function"===typeof _){oe.callback=null;le=oe.priorityLevel;var ne=_(oe.expirationTime<=C);C=y.unstable_now();"function"===typeof ne?oe.callback=ne:oe===h(j)&&k(j);G(C)}else k(j);oe=h(j)}if(null!==oe)var Ee=!0;else{var Ie=h($);null!==Ie&&K(H,Ie.startTime-C);Ee=!1}return Ee}finally{oe=null,le=D,de=!1}}var Be=!1,De=null,xe=-1,Fe=5,_e=-1;function M(){return y.unstable_now()-_e<Fe?!1:!0}function R(){if(null!==De){var u=y.unstable_now();_e=u;var C=!0;try{C=De(!0,u)}finally{C?Le():(Be=!1,De=null)}}else Be=!1}var Le;if("function"===typeof Ie)Le=function(){Ie(R)};else if("undefined"!==typeof MessageChannel){var ze=new MessageChannel,qe=ze.port2;ze.port1.onmessage=R;Le=function(){qe.postMessage(null)}}else Le=function(){Ee(R,0)};function I(u){De=u;Be||(Be=!0,Le())}function K(u,C){xe=Ee((function(){u(y.unstable_now())}),C)}y.unstable_IdlePriority=5;y.unstable_ImmediatePriority=1;y.unstable_LowPriority=4;y.unstable_NormalPriority=3;y.unstable_Profiling=null;y.unstable_UserBlockingPriority=2;y.unstable_cancelCallback=function(u){u.callback=null};y.unstable_continueExecution=function(){Ae||de||(Ae=!0,I(J))};y.unstable_forceFrameRate=function(u){0>u||125<u?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Fe=0<u?Math.floor(1e3/u):5};y.unstable_getCurrentPriorityLevel=function(){return le};y.unstable_getFirstCallbackNode=function(){return h(j)};y.unstable_next=function(u){switch(le){case 1:case 2:case 3:var y=3;break;default:y=le}var C=le;le=y;try{return u()}finally{le=C}};y.unstable_pauseExecution=function(){};y.unstable_requestPaint=function(){};y.unstable_runWithPriority=function(u,y){switch(u){case 1:case 2:case 3:case 4:case 5:break;default:u=3}var C=le;le=u;try{return y()}finally{le=C}};y.unstable_scheduleCallback=function(u,C,D){var _=y.unstable_now();"object"===typeof D&&null!==D?(D=D.delay,D="number"===typeof D&&0<D?_+D:_):D=_;switch(u){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}oe=D+oe;u={id:ne++,callback:C,priorityLevel:u,startTime:D,expirationTime:oe,sortIndex:-1};D>_?(u.sortIndex=D,f($,u),null===h(j)&&u===h($)&&(pe?(Ce(xe),xe=-1):pe=!0,K(H,D-_))):(u.sortIndex=oe,f(j,u),Ae||de||(Ae=!0,I(J)));return u};y.unstable_shouldYield=M;y.unstable_wrapCallback=function(u){var y=le;return function(){var C=le;le=y;try{return u.apply(this,arguments)}finally{le=C}}}},6937:(u,y,C)=>{if(process.env.NODE_ENV==="production"){u.exports=C(8582)}else{u.exports=C(5790)}},7163:(u,y,C)=>{const D=C(1159);const{MAX_LENGTH:_,MAX_SAFE_INTEGER:j}=C(5101);const{safeRe:$,t:ne}=C(5471);const oe=C(356);const{compareIdentifiers:le}=C(3348);class SemVer{constructor(u,y){y=oe(y);if(u instanceof SemVer){if(u.loose===!!y.loose&&u.includePrerelease===!!y.includePrerelease){return u}else{u=u.version}}else if(typeof u!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`)}if(u.length>_){throw new TypeError(`version is longer than ${_} characters`)}D("SemVer",u,y);this.options=y;this.loose=!!y.loose;this.includePrerelease=!!y.includePrerelease;const C=u.trim().match(y.loose?$[ne.LOOSE]:$[ne.FULL]);if(!C){throw new TypeError(`Invalid Version: ${u}`)}this.raw=u;this.major=+C[1];this.minor=+C[2];this.patch=+C[3];if(this.major>j||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>j||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>j||this.patch<0){throw new TypeError("Invalid patch version")}if(!C[4]){this.prerelease=[]}else{this.prerelease=C[4].split(".").map((u=>{if(/^[0-9]+$/.test(u)){const y=+u;if(y>=0&&y<j){return y}}return u}))}this.build=C[5]?C[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(u){D("SemVer.compare",this.version,this.options,u);if(!(u instanceof SemVer)){if(typeof u==="string"&&u===this.version){return 0}u=new SemVer(u,this.options)}if(u.version===this.version){return 0}return this.compareMain(u)||this.comparePre(u)}compareMain(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}if(this.major<u.major){return-1}if(this.major>u.major){return 1}if(this.minor<u.minor){return-1}if(this.minor>u.minor){return 1}if(this.patch<u.patch){return-1}if(this.patch>u.patch){return 1}return 0}comparePre(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}if(this.prerelease.length&&!u.prerelease.length){return-1}else if(!this.prerelease.length&&u.prerelease.length){return 1}else if(!this.prerelease.length&&!u.prerelease.length){return 0}let y=0;do{const C=this.prerelease[y];const _=u.prerelease[y];D("prerelease compare",y,C,_);if(C===undefined&&_===undefined){return 0}else if(_===undefined){return 1}else if(C===undefined){return-1}else if(C===_){continue}else{return le(C,_)}}while(++y)}compareBuild(u){if(!(u instanceof SemVer)){u=new SemVer(u,this.options)}let y=0;do{const C=this.build[y];const _=u.build[y];D("build compare",y,C,_);if(C===undefined&&_===undefined){return 0}else if(_===undefined){return 1}else if(C===undefined){return-1}else if(C===_){continue}else{return le(C,_)}}while(++y)}inc(u,y,C){if(u.startsWith("pre")){if(!y&&C===false){throw new Error("invalid increment argument: identifier is empty")}if(y){const u=`-${y}`.match(this.options.loose?$[ne.PRERELEASELOOSE]:$[ne.PRERELEASE]);if(!u||u[1]!==y){throw new Error(`invalid identifier: ${y}`)}}}switch(u){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",y,C);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",y,C);break;case"prepatch":this.prerelease.length=0;this.inc("patch",y,C);this.inc("pre",y,C);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",y,C)}this.inc("pre",y,C);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const u=Number(C)?1:0;if(this.prerelease.length===0){this.prerelease=[u]}else{let D=this.prerelease.length;while(--D>=0){if(typeof this.prerelease[D]==="number"){this.prerelease[D]++;D=-2}}if(D===-1){if(y===this.prerelease.join(".")&&C===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(u)}}if(y){let D=[y,u];if(C===false){D=[y]}if(le(this.prerelease[0],y)===0){if(isNaN(this.prerelease[1])){this.prerelease=D}}else{this.prerelease=D}}break}default:throw new Error(`invalid increment argument: ${u}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}u.exports=SemVer},1799:(u,y,C)=>{const D=C(6353);const clean=(u,y)=>{const C=D(u.trim().replace(/^[=v]+/,""),y);return C?C.version:null};u.exports=clean},6353:(u,y,C)=>{const D=C(7163);const parse=(u,y,C=false)=>{if(u instanceof D){return u}try{return new D(u,y)}catch(u){if(!C){return null}throw u}};u.exports=parse},8780:(u,y,C)=>{const D=C(6353);const valid=(u,y)=>{const C=D(u,y);return C?C.version:null};u.exports=valid},5101:u=>{const y="2.0.0";const C=256;const D=Number.MAX_SAFE_INTEGER||9007199254740991;const _=16;const j=C-6;const $=["major","premajor","minor","preminor","patch","prepatch","prerelease"];u.exports={MAX_LENGTH:C,MAX_SAFE_COMPONENT_LENGTH:_,MAX_SAFE_BUILD_LENGTH:j,MAX_SAFE_INTEGER:D,RELEASE_TYPES:$,SEMVER_SPEC_VERSION:y,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:u=>{const y=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...u)=>console.error("SEMVER",...u):()=>{};u.exports=y},3348:u=>{const y=/^[0-9]+$/;const compareIdentifiers=(u,C)=>{if(typeof u==="number"&&typeof C==="number"){return u===C?0:u<C?-1:1}const D=y.test(u);const _=y.test(C);if(D&&_){u=+u;C=+C}return u===C?0:D&&!_?-1:_&&!D?1:u<C?-1:1};const rcompareIdentifiers=(u,y)=>compareIdentifiers(y,u);u.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},356:u=>{const y=Object.freeze({loose:true});const C=Object.freeze({});const parseOptions=u=>{if(!u){return C}if(typeof u!=="object"){return y}return u};u.exports=parseOptions},5471:(u,y,C)=>{const{MAX_SAFE_COMPONENT_LENGTH:D,MAX_SAFE_BUILD_LENGTH:_,MAX_LENGTH:j}=C(5101);const $=C(1159);y=u.exports={};const ne=y.re=[];const oe=y.safeRe=[];const le=y.src=[];const de=y.safeSrc=[];const Ae=y.t={};let pe=0;const Ee="[a-zA-Z0-9-]";const Ce=[["\\s",1],["\\d",j],[Ee,_]];const makeSafeRegex=u=>{for(const[y,C]of Ce){u=u.split(`${y}*`).join(`${y}{0,${C}}`).split(`${y}+`).join(`${y}{1,${C}}`)}return u};const createToken=(u,y,C)=>{const D=makeSafeRegex(y);const _=pe++;$(u,_,y);Ae[u]=_;le[_]=y;de[_]=D;ne[_]=new RegExp(y,C?"g":undefined);oe[_]=new RegExp(D,C?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ee}*`);createToken("MAINVERSION",`(${le[Ae.NUMERICIDENTIFIER]})\\.`+`(${le[Ae.NUMERICIDENTIFIER]})\\.`+`(${le[Ae.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${le[Ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${le[Ae.PRERELEASEIDENTIFIER]}(?:\\.${le[Ae.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${le[Ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${le[Ae.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${Ee}+`);createToken("BUILD",`(?:\\+(${le[Ae.BUILDIDENTIFIER]}(?:\\.${le[Ae.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${le[Ae.MAINVERSION]}${le[Ae.PRERELEASE]}?${le[Ae.BUILD]}?`);createToken("FULL",`^${le[Ae.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${le[Ae.MAINVERSIONLOOSE]}${le[Ae.PRERELEASELOOSE]}?${le[Ae.BUILD]}?`);createToken("LOOSE",`^${le[Ae.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${le[Ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${le[Ae.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIER]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIER]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIER]})`+`(?:${le[Ae.PRERELEASE]})?${le[Ae.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})`+`(?:${le[Ae.PRERELEASELOOSE]})?${le[Ae.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${D}})`+`(?:\\.(\\d{1,${D}}))?`+`(?:\\.(\\d{1,${D}}))?`);createToken("COERCE",`${le[Ae.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",le[Ae.COERCEPLAIN]+`(?:${le[Ae.PRERELEASE]})?`+`(?:${le[Ae.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",le[Ae.COERCE],true);createToken("COERCERTLFULL",le[Ae.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${le[Ae.LONETILDE]}\\s+`,true);y.tildeTrimReplace="$1~";createToken("TILDE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${le[Ae.LONECARET]}\\s+`,true);y.caretTrimReplace="$1^";createToken("CARET",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${le[Ae.GTLT]}\\s*(${le[Ae.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${le[Ae.GTLT]}\\s*(${le[Ae.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${le[Ae.GTLT]}\\s*(${le[Ae.LOOSEPLAIN]}|${le[Ae.XRANGEPLAIN]})`,true);y.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${le[Ae.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${le[Ae.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${le[Ae.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${le[Ae.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9152:(u,y,C)=>{const D=C(7334);u.exports=(u="")=>{const y=u.match(D);if(!y){return null}const[C,_]=y[0].replace(/#! ?/,"").split(" ");const j=C.split("/").pop();if(j==="env"){return _}return _?`${j} ${_}`:j}},7334:u=>{u.exports=/^#!(.*)/},6627:(u,y,C)=>{var D=global.process;const processOk=function(u){return u&&typeof u==="object"&&typeof u.removeListener==="function"&&typeof u.emit==="function"&&typeof u.reallyExit==="function"&&typeof u.listeners==="function"&&typeof u.kill==="function"&&typeof u.pid==="number"&&typeof u.on==="function"};if(!processOk(D)){u.exports=function(){return function(){}}}else{var _=C(2613);var j=C(1430);var $=/^win/i.test(D.platform);var ne=C(4434);if(typeof ne!=="function"){ne=ne.EventEmitter}var oe;if(D.__signal_exit_emitter__){oe=D.__signal_exit_emitter__}else{oe=D.__signal_exit_emitter__=new ne;oe.count=0;oe.emitted={}}if(!oe.infinite){oe.setMaxListeners(Infinity);oe.infinite=true}u.exports=function(u,y){if(!processOk(global.process)){return function(){}}_.equal(typeof u,"function","a callback must be provided for exit handler");if(pe===false){Ee()}var C="exit";if(y&&y.alwaysLast){C="afterexit"}var remove=function(){oe.removeListener(C,u);if(oe.listeners("exit").length===0&&oe.listeners("afterexit").length===0){le()}};oe.on(C,u);return remove};var le=function unload(){if(!pe||!processOk(global.process)){return}pe=false;j.forEach((function(u){try{D.removeListener(u,Ae[u])}catch(u){}}));D.emit=Be;D.reallyExit=Ce;oe.count-=1};u.exports.unload=le;var de=function emit(u,y,C){if(oe.emitted[u]){return}oe.emitted[u]=true;oe.emit(u,y,C)};var Ae={};j.forEach((function(u){Ae[u]=function listener(){if(!processOk(global.process)){return}var y=D.listeners(u);if(y.length===oe.count){le();de("exit",null,u);de("afterexit",null,u);if($&&u==="SIGHUP"){u="SIGINT"}D.kill(D.pid,u)}}}));u.exports.signals=function(){return j};var pe=false;var Ee=function load(){if(pe||!processOk(global.process)){return}pe=true;oe.count+=1;j=j.filter((function(u){try{D.on(u,Ae[u]);return true}catch(u){return false}}));D.emit=De;D.reallyExit=Ie};u.exports.load=Ee;var Ce=D.reallyExit;var Ie=function processReallyExit(u){if(!processOk(global.process)){return}D.exitCode=u||0;de("exit",D.exitCode,null);de("afterexit",D.exitCode,null);Ce.call(D,D.exitCode)};var Be=D.emit;var De=function processEmit(u,y){if(u==="exit"&&processOk(global.process)){if(y!==undefined){D.exitCode=y}var C=Be.apply(this,arguments);de("exit",D.exitCode,null);de("afterexit",D.exitCode,null);return C}else{return Be.apply(this,arguments)}}}},1430:u=>{u.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){u.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){u.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},5728:(u,y,C)=>{var D=C(3326);var _=C(5204);function valid(u){try{D(u);return true}catch(u){return false}}function sortTranspositions(u,y){var C=y[0].length-u[0].length;if(C!==0)return C;return u[0].toUpperCase().localeCompare(y[0].toUpperCase())}var j=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(sortTranspositions);var $=0;var ne=1;var oe=[function(u){return u.toUpperCase()},function(u){return u.trim()},function(u){return u.replace(/\./g,"")},function(u){return u.replace(/\s+/g,"")},function(u){return u.replace(/\s+/g,"-")},function(u){return u.replace("v","-")},function(u){return u.replace(/,?\s*(\d)/,"-$1")},function(u){return u.replace(/,?\s*(\d)/,"-$1.0")},function(u){return u.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(u){return u.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(u){return u[0].toUpperCase()+u.slice(1)},function(u){return u.replace("/","-")},function(u){return u.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(u){if(u.indexOf("3.0")!==-1){return u+"-or-later"}else{return u+"-only"}},function(u){return u+"only"},function(u){return u.replace(/(\d)$/,"-$1.0")},function(u){return u.replace(/(-| )?(\d)$/,"-$2-Clause")},function(u){return u.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(u){return u.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(u){return u.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(u){return u.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(u){return u.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(u){return u.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(u){return"CC-"+u},function(u){return"CC-"+u+"-4.0"},function(u){return u.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(u){return"CC-"+u.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}];var le=_.map((function(u){var y=/^(.*)-\d+\.\d+$/.exec(u);return y?[y[0],y[1]]:[u,null]})).reduce((function(u,y){var C=y[1];u[C]=u[C]||[];u[C].push(y[0]);return u}),{});var de=Object.keys(le).map((function makeEntries(u){return[u,le[u]]})).filter((function identifySoleVersions(u){return u[1].length===1&&u[0]!==null&&u[0]!=="APL"})).map((function createLastResorts(u){return[u[0],u[1][0]]}));le=undefined;var Ae=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(de).sort(sortTranspositions);var pe=0;var Ee=1;var validTransformation=function(u){for(var y=0;y<oe.length;y++){var C=oe[y](u).trim();if(C!==u&&valid(C)){return C}}return null};var validLastResort=function(u){var y=u.toUpperCase();for(var C=0;C<Ae.length;C++){var D=Ae[C];if(y.indexOf(D[pe])>-1){return D[Ee]}}return null};var anyCorrection=function(u,y){for(var C=0;C<j.length;C++){var D=j[C];var _=D[$];if(u.indexOf(_)>-1){var oe=u.replace(_,D[ne]);var le=y(oe);if(le!==null){return le}}}return null};u.exports=function(u,y){y=y||{};var C=y.upgrade===undefined?true:!!y.upgrade;function postprocess(u){return C?upgradeGPLs(u):u}var D=typeof u==="string"&&u.trim().length!==0;if(!D){throw Error("Invalid argument. Expected non-empty string.")}u=u.trim();if(valid(u)){return postprocess(u)}var _=u.replace(/\+$/,"").trim();if(valid(_)){return postprocess(_)}var j=validTransformation(u);if(j!==null){return postprocess(j)}j=anyCorrection(u,(function(u){if(valid(u)){return u}return validTransformation(u)}));if(j!==null){return postprocess(j)}j=validLastResort(u);if(j!==null){return postprocess(j)}j=anyCorrection(u,validLastResort);if(j!==null){return postprocess(j)}return null};function upgradeGPLs(u){if(["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(u)!==-1){return u+"-only"}else if(["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(u)!==-1){return u.replace(/\+$/,"-or-later")}else if(["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(u)!==-1){return u+"-or-later"}else{return u}}},3326:(u,y,C)=>{var D=C(6849);var _=C(5501);u.exports=function(u){return _(D(u))}},5501:u=>{u.exports=function(u){var y=0;function hasMore(){return y<u.length}function token(){return hasMore()?u[y]:null}function next(){if(!hasMore()){throw new Error}y++}function parseOperator(u){var y=token();if(y&&y.type==="OPERATOR"&&u===y.string){next();return y.string}}function parseWith(){if(parseOperator("WITH")){var u=token();if(u&&u.type==="EXCEPTION"){next();return u.string}throw new Error("Expected exception after `WITH`")}}function parseLicenseRef(){var u=y;var C="";var D=token();if(D.type==="DOCUMENTREF"){next();C+="DocumentRef-"+D.string+":";if(!parseOperator(":")){throw new Error("Expected `:` after `DocumentRef-...`")}}D=token();if(D.type==="LICENSEREF"){next();C+="LicenseRef-"+D.string;return{license:C}}y=u}function parseLicense(){var u=token();if(u&&u.type==="LICENSE"){next();var y={license:u.string};if(parseOperator("+")){y.plus=true}var C=parseWith();if(C){y.exception=C}return y}}function parseParenthesizedExpression(){var u=parseOperator("(");if(!u){return}var y=D();if(!parseOperator(")")){throw new Error("Expected `)`")}return y}function parseAtom(){return parseParenthesizedExpression()||parseLicenseRef()||parseLicense()}function makeBinaryOpParser(u,y){return function parseBinaryOp(){var C=y();if(!C){return}if(!parseOperator(u)){return C}var D=parseBinaryOp();if(!D){throw new Error("Expected expression")}return{left:C,conjunction:u.toLowerCase(),right:D}}}var C=makeBinaryOpParser("AND",parseAtom);var D=makeBinaryOpParser("OR",C);var _=D();if(!_||hasMore()){throw new Error("Syntax error")}return _}},6849:(u,y,C)=>{var D=[].concat(C(5204)).concat(C(3389));var _=C(3988);u.exports=function(u){var y=0;function hasMore(){return y<u.length}function read(C){if(C instanceof RegExp){var D=u.slice(y);var _=D.match(C);if(_){y+=_[0].length;return _[0]}}else{if(u.indexOf(C,y)===y){y+=C.length;return C}}}function skipWhitespace(){read(/[ ]*/)}function operator(){var C;var D=["WITH","AND","OR","(",")",":","+"];for(var _=0;_<D.length;_++){C=read(D[_]);if(C){break}}if(C==="+"&&y>1&&u[y-2]===" "){throw new Error("Space before `+`")}return C&&{type:"OPERATOR",string:C}}function idstring(){return read(/[A-Za-z0-9-.]+/)}function expectIdstring(){var u=idstring();if(!u){throw new Error("Expected idstring at offset "+y)}return u}function documentRef(){if(read("DocumentRef-")){var u=expectIdstring();return{type:"DOCUMENTREF",string:u}}}function licenseRef(){if(read("LicenseRef-")){var u=expectIdstring();return{type:"LICENSEREF",string:u}}}function identifier(){var u=y;var C=idstring();if(D.indexOf(C)!==-1){return{type:"LICENSE",string:C}}else if(_.indexOf(C)!==-1){return{type:"EXCEPTION",string:C}}y=u}function parseToken(){return operator()||documentRef()||licenseRef()||identifier()}var C=[];while(hasMore()){skipWhitespace();if(!hasMore()){break}var j=parseToken();if(!j){throw new Error("Unexpected `"+u[y]+"` at offset "+y)}C.push(j)}return C}},4092:(u,y,C)=>{const D=C(1199);const _=typeof process==="object"&&process&&typeof process.cwd==="function"?process.cwd():".";const j=[].concat(C(3339).builtinModules,"bootstrap_node","node").map((u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`)));j.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class StackUtils{constructor(u){u={ignoredPackages:[],...u};if("internals"in u===false){u.internals=StackUtils.nodeInternals()}if("cwd"in u===false){u.cwd=_}this._cwd=u.cwd.replace(/\\/g,"/");this._internals=[].concat(u.internals,ignoredPackagesRegExp(u.ignoredPackages));this._wrapCallSite=u.wrapCallSite||false}static nodeInternals(){return[...j]}clean(u,y=0){y=" ".repeat(y);if(!Array.isArray(u)){u=u.split("\n")}if(!/^\s*at /.test(u[0])&&/^\s*at /.test(u[1])){u=u.slice(1)}let C=false;let D=null;const _=[];u.forEach((u=>{u=u.replace(/\\/g,"/");if(this._internals.some((y=>y.test(u)))){return}const y=/^\s*at /.test(u);if(C){u=u.trimEnd().replace(/^(\s+)at /,"$1")}else{u=u.trim();if(y){u=u.slice(3)}}u=u.replace(`${this._cwd}/`,"");if(u){if(y){if(D){_.push(D);D=null}_.push(u)}else{C=true;D=u}}}));return _.map((u=>`${y}${u}\n`)).join("")}captureString(u,y=this.captureString){if(typeof u==="function"){y=u;u=Infinity}const{stackTraceLimit:C}=Error;if(u){Error.stackTraceLimit=u}const D={};Error.captureStackTrace(D,y);const{stack:_}=D;Error.stackTraceLimit=C;return this.clean(_)}capture(u,y=this.capture){if(typeof u==="function"){y=u;u=Infinity}const{prepareStackTrace:C,stackTraceLimit:D}=Error;Error.prepareStackTrace=(u,y)=>{if(this._wrapCallSite){return y.map(this._wrapCallSite)}return y};if(u){Error.stackTraceLimit=u}const _={};Error.captureStackTrace(_,y);const{stack:j}=_;Object.assign(Error,{prepareStackTrace:C,stackTraceLimit:D});return j}at(u=this.at){const[y]=this.capture(1,u);if(!y){return{}}const C={line:y.getLineNumber(),column:y.getColumnNumber()};setFile(C,y.getFileName(),this._cwd);if(y.isConstructor()){Object.defineProperty(C,"constructor",{value:true,configurable:true})}if(y.isEval()){C.evalOrigin=y.getEvalOrigin()}if(y.isNative()){C.native=true}let D;try{D=y.getTypeName()}catch(u){}if(D&&D!=="Object"&&D!=="[object Object]"){C.type=D}const _=y.getFunctionName();if(_){C.function=_}const j=y.getMethodName();if(j&&_!==j){C.method=j}return C}parseLine(u){const y=u&&u.match($);if(!y){return null}const C=y[1]==="new";let D=y[2];const _=y[3];const j=y[4];const oe=Number(y[5]);const le=Number(y[6]);let de=y[7];const Ae=y[8];const pe=y[9];const Ee=y[10]==="native";const Ce=y[11]===")";let Ie;const Be={};if(Ae){Be.line=Number(Ae)}if(pe){Be.column=Number(pe)}if(Ce&&de){let u=0;for(let y=de.length-1;y>0;y--){if(de.charAt(y)===")"){u++}else if(de.charAt(y)==="("&&de.charAt(y-1)===" "){u--;if(u===-1&&de.charAt(y-1)===" "){const u=de.slice(0,y-1);const C=de.slice(y+1);de=C;D+=` (${u}`;break}}}}if(D){const u=D.match(ne);if(u){D=u[1];Ie=u[2]}}setFile(Be,de,this._cwd);if(C){Object.defineProperty(Be,"constructor",{value:true,configurable:true})}if(_){Be.evalOrigin=_;Be.evalLine=oe;Be.evalColumn=le;Be.evalFile=j&&j.replace(/\\/g,"/")}if(Ee){Be.native=true}if(D){Be.function=D}if(Ie&&D!==Ie){Be.method=Ie}return Be}}function setFile(u,y,C){if(y){y=y.replace(/\\/g,"/");if(y.startsWith(`${C}/`)){y=y.slice(C.length+1)}u.file=y}}function ignoredPackagesRegExp(u){if(u.length===0){return[]}const y=u.map((u=>D(u)));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${y.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}const $=new RegExp("^"+"(?:\\s*at )?"+"(?:(new) )?"+"(?:(.*?) \\()?"+"(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?"+"(?:(.+?):(\\d+):(\\d+)|(native))"+"(\\)?)$");const ne=/^(.*?) \[as (.*?)\]$/;u.exports=StackUtils},5077:(u,y)=>{y.fromCallback=function(u){return Object.defineProperty((function(...y){if(typeof y[y.length-1]==="function")u.apply(this,y);else{return new Promise(((C,D)=>{y.push(((u,y)=>u!=null?D(u):C(y)));u.apply(this,y)}))}}),"name",{value:u.name})};y.fromPromise=function(u){return Object.defineProperty((function(...y){const C=y[y.length-1];if(typeof C!=="function")return u.apply(this,y);else{y.pop();u.apply(this,y).then((u=>C(null,u)),C)}}),"name",{value:u.name})}},6821:(u,y,C)=>{var D=C(3326);var _=C(5728);var j="license should be "+'a valid SPDX license expression (without "LicenseRef"), '+'"UNLICENSED", or '+'"SEE LICENSE IN <filename>"';var $=/^SEE LICEN[CS]E IN (.+)$/;function startsWith(u,y){return y.slice(0,u.length)===u}function usesLicenseRef(u){if(u.hasOwnProperty("license")){var y=u.license;return startsWith("LicenseRef",y)||startsWith("DocumentRef",y)}else{return usesLicenseRef(u.left)||usesLicenseRef(u.right)}}u.exports=function(u){var y;try{y=D(u)}catch(y){var C;if(u==="UNLICENSED"||u==="UNLICENCED"){return{validForOldPackages:true,validForNewPackages:true,unlicensed:true}}else if(C=$.exec(u)){return{validForOldPackages:true,validForNewPackages:true,inFile:C[1]}}else{var ne={validForOldPackages:false,validForNewPackages:false,warnings:[j]};if(u.trim().length!==0){var oe=_(u);if(oe){ne.warnings.push('license is similar to the valid expression "'+oe+'"')}}return ne}}if(usesLicenseRef(y)){return{validForNewPackages:false,validForOldPackages:false,spdx:true,warnings:[j]}}else{return{validForNewPackages:true,validForOldPackages:true,spdx:true}}}},6848:(u,y,C)=>{const D=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const _=C(6928);const j=D?";":":";const $=C(2940);const getNotFoundError=u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"});const getPathInfo=(u,y)=>{const C=y.colon||j;const _=u.match(/\//)||D&&u.match(/\\/)?[""]:[...D?[process.cwd()]:[],...(y.path||process.env.PATH||"").split(C)];const $=D?y.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const ne=D?$.split(C):[""];if(D){if(u.indexOf(".")!==-1&&ne[0]!=="")ne.unshift("")}return{pathEnv:_,pathExt:ne,pathExtExe:$}};const which=(u,y,C)=>{if(typeof y==="function"){C=y;y={}}if(!y)y={};const{pathEnv:D,pathExt:j,pathExtExe:ne}=getPathInfo(u,y);const oe=[];const step=C=>new Promise(((j,$)=>{if(C===D.length)return y.all&&oe.length?j(oe):$(getNotFoundError(u));const ne=D[C];const le=/^".*"$/.test(ne)?ne.slice(1,-1):ne;const de=_.join(le,u);const Ae=!le&&/^\.[\\\/]/.test(u)?u.slice(0,2)+de:de;j(subStep(Ae,C,0))}));const subStep=(u,C,D)=>new Promise(((_,le)=>{if(D===j.length)return _(step(C+1));const de=j[D];$(u+de,{pathExt:ne},((j,$)=>{if(!j&&$){if(y.all)oe.push(u+de);else return _(u+de)}return _(subStep(u,C,D+1))}))}));return C?step(0).then((u=>C(null,u)),C):step(0)};const whichSync=(u,y)=>{y=y||{};const{pathEnv:C,pathExt:D,pathExtExe:j}=getPathInfo(u,y);const ne=[];for(let oe=0;oe<C.length;oe++){const le=C[oe];const de=/^".*"$/.test(le)?le.slice(1,-1):le;const Ae=_.join(de,u);const pe=!de&&/^\.[\\\/]/.test(u)?u.slice(0,2)+Ae:Ae;for(let u=0;u<D.length;u++){const C=pe+D[u];try{const u=$.sync(C,{pathExt:j});if(u){if(y.all)ne.push(C);else return C}}catch(u){}}}if(y.all&&ne.length)return ne;if(y.nothrow)return null;throw getNotFoundError(u)};u.exports=which;which.sync=whichSync},8264:u=>{u.exports=wrappy;function wrappy(u,y){if(u&&y)return wrappy(u)(y);if(typeof u!=="function")throw new TypeError("need wrapper function");Object.keys(u).forEach((function(y){wrapper[y]=u[y]}));return wrapper;function wrapper(){var y=new Array(arguments.length);for(var C=0;C<y.length;C++){y[C]=arguments[C]}var D=u.apply(this,y);var _=y[y.length-1];if(typeof D==="function"&&D!==_){Object.keys(_).forEach((function(u){D[u]=_[u]}))}return D}}},5803:(u,y,C)=>{const{EMPTY_BUFFER:D}=C(1791);const _=Buffer[Symbol.species];function concat(u,y){if(u.length===0)return D;if(u.length===1)return u[0];const C=Buffer.allocUnsafe(y);let j=0;for(let y=0;y<u.length;y++){const D=u[y];C.set(D,j);j+=D.length}if(j<y){return new _(C.buffer,C.byteOffset,j)}return C}function _mask(u,y,C,D,_){for(let j=0;j<_;j++){C[D+j]=u[j]^y[j&3]}}function _unmask(u,y){for(let C=0;C<u.length;C++){u[C]^=y[C&3]}}function toArrayBuffer(u){if(u.length===u.buffer.byteLength){return u.buffer}return u.buffer.slice(u.byteOffset,u.byteOffset+u.length)}function toBuffer(u){toBuffer.readOnly=true;if(Buffer.isBuffer(u))return u;let y;if(u instanceof ArrayBuffer){y=new _(u)}else if(ArrayBuffer.isView(u)){y=new _(u.buffer,u.byteOffset,u.byteLength)}else{y=Buffer.from(u);toBuffer.readOnly=false}return y}u.exports={concat:concat,mask:_mask,toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask:_unmask};if(!process.env.WS_NO_BUFFER_UTIL){try{const y=C(8327);u.exports.mask=function(u,C,D,_,j){if(j<48)_mask(u,C,D,_,j);else y.mask(u,C,D,_,j)};u.exports.unmask=function(u,C){if(u.length<32)_unmask(u,C);else y.unmask(u,C)}}catch(u){}}},1791:u=>{const y=["nodebuffer","arraybuffer","fragments"];const C=typeof Blob!=="undefined";if(C)y.push("blob");u.exports={BINARY_TYPES:y,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:C,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},4634:(u,y,C)=>{const{kForOnEventAttribute:D,kListener:_}=C(1791);const j=Symbol("kCode");const $=Symbol("kData");const ne=Symbol("kError");const oe=Symbol("kMessage");const le=Symbol("kReason");const de=Symbol("kTarget");const Ae=Symbol("kType");const pe=Symbol("kWasClean");class Event{constructor(u){this[de]=null;this[Ae]=u}get target(){return this[de]}get type(){return this[Ae]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(u,y={}){super(u);this[j]=y.code===undefined?0:y.code;this[le]=y.reason===undefined?"":y.reason;this[pe]=y.wasClean===undefined?false:y.wasClean}get code(){return this[j]}get reason(){return this[le]}get wasClean(){return this[pe]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(u,y={}){super(u);this[ne]=y.error===undefined?null:y.error;this[oe]=y.message===undefined?"":y.message}get error(){return this[ne]}get message(){return this[oe]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(u,y={}){super(u);this[$]=y.data===undefined?null:y.data}get data(){return this[$]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const Ee={addEventListener(u,y,C={}){for(const j of this.listeners(u)){if(!C[D]&&j[_]===y&&!j[D]){return}}let j;if(u==="message"){j=function onMessage(u,C){const D=new MessageEvent("message",{data:C?u:u.toString()});D[de]=this;callListener(y,this,D)}}else if(u==="close"){j=function onClose(u,C){const D=new CloseEvent("close",{code:u,reason:C.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});D[de]=this;callListener(y,this,D)}}else if(u==="error"){j=function onError(u){const C=new ErrorEvent("error",{error:u,message:u.message});C[de]=this;callListener(y,this,C)}}else if(u==="open"){j=function onOpen(){const u=new Event("open");u[de]=this;callListener(y,this,u)}}else{return}j[D]=!!C[D];j[_]=y;if(C.once){this.once(u,j)}else{this.on(u,j)}},removeEventListener(u,y){for(const C of this.listeners(u)){if(C[_]===y&&!C[D]){this.removeListener(u,C);break}}}};u.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:Ee,MessageEvent:MessageEvent};function callListener(u,y,C){if(typeof u==="object"&&u.handleEvent){u.handleEvent.call(u,C)}else{u.call(y,C)}}},1335:(u,y,C)=>{const{tokenChars:D}=C(6615);function push(u,y,C){if(u[y]===undefined)u[y]=[C];else u[y].push(C)}function parse(u){const y=Object.create(null);let C=Object.create(null);let _=false;let j=false;let $=false;let ne;let oe;let le=-1;let de=-1;let Ae=-1;let pe=0;for(;pe<u.length;pe++){de=u.charCodeAt(pe);if(ne===undefined){if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(pe!==0&&(de===32||de===9)){if(Ae===-1&&le!==-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;const D=u.slice(le,Ae);if(de===44){push(y,D,C);C=Object.create(null)}else{ne=D}le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else if(oe===undefined){if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(de===32||de===9){if(Ae===-1&&le!==-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;push(C,u.slice(le,Ae),true);if(de===44){push(y,ne,C);C=Object.create(null);ne=undefined}le=Ae=-1}else if(de===61&&le!==-1&&Ae===-1){oe=u.slice(le,pe);le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else{if(j){if(D[de]!==1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(le===-1)le=pe;else if(!_)_=true;j=false}else if($){if(D[de]===1){if(le===-1)le=pe}else if(de===34&&le!==-1){$=false;Ae=pe}else if(de===92){j=true}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}else if(de===34&&u.charCodeAt(pe-1)===61){$=true}else if(Ae===-1&&D[de]===1){if(le===-1)le=pe}else if(le!==-1&&(de===32||de===9)){if(Ae===-1)Ae=pe}else if(de===59||de===44){if(le===-1){throw new SyntaxError(`Unexpected character at index ${pe}`)}if(Ae===-1)Ae=pe;let D=u.slice(le,Ae);if(_){D=D.replace(/\\/g,"");_=false}push(C,oe,D);if(de===44){push(y,ne,C);C=Object.create(null);ne=undefined}oe=undefined;le=Ae=-1}else{throw new SyntaxError(`Unexpected character at index ${pe}`)}}}if(le===-1||$||de===32||de===9){throw new SyntaxError("Unexpected end of input")}if(Ae===-1)Ae=pe;const Ee=u.slice(le,Ae);if(ne===undefined){push(y,Ee,C)}else{if(oe===undefined){push(C,Ee,true)}else if(_){push(C,oe,Ee.replace(/\\/g,""))}else{push(C,oe,Ee)}push(y,ne,C)}return y}function format(u){return Object.keys(u).map((y=>{let C=u[y];if(!Array.isArray(C))C=[C];return C.map((u=>[y].concat(Object.keys(u).map((y=>{let C=u[y];if(!Array.isArray(C))C=[C];return C.map((u=>u===true?y:`${y}=${u}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}u.exports={format:format,parse:parse}},958:u=>{const y=Symbol("kDone");const C=Symbol("kRun");class Limiter{constructor(u){this[y]=()=>{this.pending--;this[C]()};this.concurrency=u||Infinity;this.jobs=[];this.pending=0}add(u){this.jobs.push(u);this[C]()}[C](){if(this.pending===this.concurrency)return;if(this.jobs.length){const u=this.jobs.shift();this.pending++;u(this[y])}}}u.exports=Limiter},4376:(u,y,C)=>{const D=C(3106);const _=C(5803);const j=C(958);const{kStatusCode:$}=C(1791);const ne=Buffer[Symbol.species];const oe=Buffer.from([0,0,255,255]);const le=Symbol("permessage-deflate");const de=Symbol("total-length");const Ae=Symbol("callback");const pe=Symbol("buffers");const Ee=Symbol("error");let Ce;class PerMessageDeflate{constructor(u,y,C){this._maxPayload=C|0;this._options=u||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!y;this._deflate=null;this._inflate=null;this.params=null;if(!Ce){const u=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;Ce=new j(u)}}static get extensionName(){return"permessage-deflate"}offer(){const u={};if(this._options.serverNoContextTakeover){u.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){u.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){u.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){u.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){u.client_max_window_bits=true}return u}accept(u){u=this.normalizeParams(u);this.params=this._isServer?this.acceptAsServer(u):this.acceptAsClient(u);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const u=this._deflate[Ae];this._deflate.close();this._deflate=null;if(u){u(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(u){const y=this._options;const C=u.find((u=>{if(y.serverNoContextTakeover===false&&u.server_no_context_takeover||u.server_max_window_bits&&(y.serverMaxWindowBits===false||typeof y.serverMaxWindowBits==="number"&&y.serverMaxWindowBits>u.server_max_window_bits)||typeof y.clientMaxWindowBits==="number"&&!u.client_max_window_bits){return false}return true}));if(!C){throw new Error("None of the extension offers can be accepted")}if(y.serverNoContextTakeover){C.server_no_context_takeover=true}if(y.clientNoContextTakeover){C.client_no_context_takeover=true}if(typeof y.serverMaxWindowBits==="number"){C.server_max_window_bits=y.serverMaxWindowBits}if(typeof y.clientMaxWindowBits==="number"){C.client_max_window_bits=y.clientMaxWindowBits}else if(C.client_max_window_bits===true||y.clientMaxWindowBits===false){delete C.client_max_window_bits}return C}acceptAsClient(u){const y=u[0];if(this._options.clientNoContextTakeover===false&&y.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!y.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){y.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&y.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return y}normalizeParams(u){u.forEach((u=>{Object.keys(u).forEach((y=>{let C=u[y];if(C.length>1){throw new Error(`Parameter "${y}" must have only a single value`)}C=C[0];if(y==="client_max_window_bits"){if(C!==true){const u=+C;if(!Number.isInteger(u)||u<8||u>15){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}C=u}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}}else if(y==="server_max_window_bits"){const u=+C;if(!Number.isInteger(u)||u<8||u>15){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}C=u}else if(y==="client_no_context_takeover"||y==="server_no_context_takeover"){if(C!==true){throw new TypeError(`Invalid value for parameter "${y}": ${C}`)}}else{throw new Error(`Unknown parameter "${y}"`)}u[y]=C}))}));return u}decompress(u,y,C){Ce.add((D=>{this._decompress(u,y,((u,y)=>{D();C(u,y)}))}))}compress(u,y,C){Ce.add((D=>{this._compress(u,y,((u,y)=>{D();C(u,y)}))}))}_decompress(u,y,C){const j=this._isServer?"client":"server";if(!this._inflate){const u=`${j}_max_window_bits`;const y=typeof this.params[u]!=="number"?D.Z_DEFAULT_WINDOWBITS:this.params[u];this._inflate=D.createInflateRaw({...this._options.zlibInflateOptions,windowBits:y});this._inflate[le]=this;this._inflate[de]=0;this._inflate[pe]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[Ae]=C;this._inflate.write(u);if(y)this._inflate.write(oe);this._inflate.flush((()=>{const u=this._inflate[Ee];if(u){this._inflate.close();this._inflate=null;C(u);return}const D=_.concat(this._inflate[pe],this._inflate[de]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[de]=0;this._inflate[pe]=[];if(y&&this.params[`${j}_no_context_takeover`]){this._inflate.reset()}}C(null,D)}))}_compress(u,y,C){const j=this._isServer?"server":"client";if(!this._deflate){const u=`${j}_max_window_bits`;const y=typeof this.params[u]!=="number"?D.Z_DEFAULT_WINDOWBITS:this.params[u];this._deflate=D.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:y});this._deflate[de]=0;this._deflate[pe]=[];this._deflate.on("data",deflateOnData)}this._deflate[Ae]=C;this._deflate.write(u);this._deflate.flush(D.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let u=_.concat(this._deflate[pe],this._deflate[de]);if(y){u=new ne(u.buffer,u.byteOffset,u.length-4)}this._deflate[Ae]=null;this._deflate[de]=0;this._deflate[pe]=[];if(y&&this.params[`${j}_no_context_takeover`]){this._deflate.reset()}C(null,u)}))}}u.exports=PerMessageDeflate;function deflateOnData(u){this[pe].push(u);this[de]+=u.length}function inflateOnData(u){this[de]+=u.length;if(this[le]._maxPayload<1||this[de]<=this[le]._maxPayload){this[pe].push(u);return}this[Ee]=new RangeError("Max payload size exceeded");this[Ee].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[Ee][$]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(u){this[le]._inflate=null;if(this[Ee]){this[Ae](this[Ee]);return}u[$]=1007;this[Ae](u)}},893:(u,y,C)=>{const{Writable:D}=C(2203);const _=C(4376);const{BINARY_TYPES:j,EMPTY_BUFFER:$,kStatusCode:ne,kWebSocket:oe}=C(1791);const{concat:le,toArrayBuffer:de,unmask:Ae}=C(5803);const{isValidStatusCode:pe,isValidUTF8:Ee}=C(6615);const Ce=Buffer[Symbol.species];const Ie=0;const Be=1;const De=2;const xe=3;const Fe=4;const _e=5;const Le=6;class Receiver extends D{constructor(u={}){super();this._allowSynchronousEvents=u.allowSynchronousEvents!==undefined?u.allowSynchronousEvents:true;this._binaryType=u.binaryType||j[0];this._extensions=u.extensions||{};this._isServer=!!u.isServer;this._maxPayload=u.maxPayload|0;this._skipUTF8Validation=!!u.skipUTF8Validation;this[oe]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=Ie}_write(u,y,C){if(this._opcode===8&&this._state==Ie)return C();this._bufferedBytes+=u.length;this._buffers.push(u);this.startLoop(C)}consume(u){this._bufferedBytes-=u;if(u===this._buffers[0].length)return this._buffers.shift();if(u<this._buffers[0].length){const y=this._buffers[0];this._buffers[0]=new Ce(y.buffer,y.byteOffset+u,y.length-u);return new Ce(y.buffer,y.byteOffset,u)}const y=Buffer.allocUnsafe(u);do{const C=this._buffers[0];const D=y.length-u;if(u>=C.length){y.set(this._buffers.shift(),D)}else{y.set(new Uint8Array(C.buffer,C.byteOffset,u),D);this._buffers[0]=new Ce(C.buffer,C.byteOffset+u,C.length-u)}u-=C.length}while(u>0);return y}startLoop(u){this._loop=true;do{switch(this._state){case Ie:this.getInfo(u);break;case Be:this.getPayloadLength16(u);break;case De:this.getPayloadLength64(u);break;case xe:this.getMask();break;case Fe:this.getData(u);break;case _e:case Le:this._loop=false;return}}while(this._loop);if(!this._errored)u()}getInfo(u){if(this._bufferedBytes<2){this._loop=false;return}const y=this.consume(2);if((y[0]&48)!==0){const y=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");u(y);return}const C=(y[0]&64)===64;if(C&&!this._extensions[_.extensionName]){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}this._fin=(y[0]&128)===128;this._opcode=y[0]&15;this._payloadLength=y[1]&127;if(this._opcode===0){if(C){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}if(!this._fragmented){const y=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const y=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}this._compressed=C}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const y=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");u(y);return}if(C){const y=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");u(y);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const y=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");u(y);return}}else{const y=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");u(y);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(y[1]&128)===128;if(this._isServer){if(!this._masked){const y=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");u(y);return}}else if(this._masked){const y=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");u(y);return}if(this._payloadLength===126)this._state=Be;else if(this._payloadLength===127)this._state=De;else this.haveLength(u)}getPayloadLength16(u){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(u)}getPayloadLength64(u){if(this._bufferedBytes<8){this._loop=false;return}const y=this.consume(8);const C=y.readUInt32BE(0);if(C>Math.pow(2,53-32)-1){const y=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");u(y);return}this._payloadLength=C*Math.pow(2,32)+y.readUInt32BE(4);this.haveLength(u)}haveLength(u){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const y=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");u(y);return}}if(this._masked)this._state=xe;else this._state=Fe}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=Fe}getData(u){let y=$;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=false;return}y=this.consume(this._payloadLength);if(this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0){Ae(y,this._mask)}}if(this._opcode>7){this.controlMessage(y,u);return}if(this._compressed){this._state=_e;this.decompress(y,u);return}if(y.length){this._messageLength=this._totalPayloadLength;this._fragments.push(y)}this.dataMessage(u)}decompress(u,y){const C=this._extensions[_.extensionName];C.decompress(u,this._fin,((u,C)=>{if(u)return y(u);if(C.length){this._messageLength+=C.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const u=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");y(u);return}this._fragments.push(C)}this.dataMessage(y);if(this._state===Ie)this.startLoop(y)}))}dataMessage(u){if(!this._fin){this._state=Ie;return}const y=this._messageLength;const C=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let D;if(this._binaryType==="nodebuffer"){D=le(C,y)}else if(this._binaryType==="arraybuffer"){D=de(le(C,y))}else if(this._binaryType==="blob"){D=new Blob(C)}else{D=C}if(this._allowSynchronousEvents){this.emit("message",D,true);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit("message",D,true);this._state=Ie;this.startLoop(u)}))}}else{const D=le(C,y);if(!this._skipUTF8Validation&&!Ee(D)){const y=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");u(y);return}if(this._state===_e||this._allowSynchronousEvents){this.emit("message",D,false);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit("message",D,false);this._state=Ie;this.startLoop(u)}))}}}controlMessage(u,y){if(this._opcode===8){if(u.length===0){this._loop=false;this.emit("conclude",1005,$);this.end()}else{const C=u.readUInt16BE(0);if(!pe(C)){const u=this.createError(RangeError,`invalid status code ${C}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");y(u);return}const D=new Ce(u.buffer,u.byteOffset+2,u.length-2);if(!this._skipUTF8Validation&&!Ee(D)){const u=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");y(u);return}this._loop=false;this.emit("conclude",C,D);this.end()}this._state=Ie;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",u);this._state=Ie}else{this._state=Le;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",u);this._state=Ie;this.startLoop(y)}))}}createError(u,y,C,D,_){this._loop=false;this._errored=true;const j=new u(C?`Invalid WebSocket frame: ${y}`:y);Error.captureStackTrace(j,this.createError);j.code=_;j[ne]=D;return j}}u.exports=Receiver},7389:(u,y,C)=>{const{Duplex:D}=C(2203);const{randomFillSync:_}=C(6982);const j=C(4376);const{EMPTY_BUFFER:$,kWebSocket:ne,NOOP:oe}=C(1791);const{isBlob:le,isValidStatusCode:de}=C(6615);const{mask:Ae,toBuffer:pe}=C(5803);const Ee=Symbol("kByteLength");const Ce=Buffer.alloc(4);const Ie=8*1024;let Be;let De=Ie;const xe=0;const Fe=1;const _e=2;class Sender{constructor(u,y,C){this._extensions=y||{};if(C){this._generateMask=C;this._maskBuffer=Buffer.alloc(4)}this._socket=u;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._queue=[];this._state=xe;this.onerror=oe;this[ne]=undefined}static frame(u,y){let C;let D=false;let j=2;let $=false;if(y.mask){C=y.maskBuffer||Ce;if(y.generateMask){y.generateMask(C)}else{if(De===Ie){if(Be===undefined){Be=Buffer.alloc(Ie)}_(Be,0,Ie);De=0}C[0]=Be[De++];C[1]=Be[De++];C[2]=Be[De++];C[3]=Be[De++]}$=(C[0]|C[1]|C[2]|C[3])===0;j=6}let ne;if(typeof u==="string"){if((!y.mask||$)&&y[Ee]!==undefined){ne=y[Ee]}else{u=Buffer.from(u);ne=u.length}}else{ne=u.length;D=y.mask&&y.readOnly&&!$}let oe=ne;if(ne>=65536){j+=8;oe=127}else if(ne>125){j+=2;oe=126}const le=Buffer.allocUnsafe(D?ne+j:j);le[0]=y.fin?y.opcode|128:y.opcode;if(y.rsv1)le[0]|=64;le[1]=oe;if(oe===126){le.writeUInt16BE(ne,2)}else if(oe===127){le[2]=le[3]=0;le.writeUIntBE(ne,4,6)}if(!y.mask)return[le,u];le[1]|=128;le[j-4]=C[0];le[j-3]=C[1];le[j-2]=C[2];le[j-1]=C[3];if($)return[le,u];if(D){Ae(u,C,le,j,ne);return[le]}Ae(u,C,u,0,ne);return[le,u]}close(u,y,C,D){let _;if(u===undefined){_=$}else if(typeof u!=="number"||!de(u)){throw new TypeError("First argument must be a valid error code number")}else if(y===undefined||!y.length){_=Buffer.allocUnsafe(2);_.writeUInt16BE(u,0)}else{const C=Buffer.byteLength(y);if(C>123){throw new RangeError("The message must not be greater than 123 bytes")}_=Buffer.allocUnsafe(2+C);_.writeUInt16BE(u,0);if(typeof y==="string"){_.write(y,2)}else{_.set(y,2)}}const j={[Ee]:_.length,fin:true,generateMask:this._generateMask,mask:C,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._state!==xe){this.enqueue([this.dispatch,_,false,j,D])}else{this.sendFrame(Sender.frame(_,j),D)}}ping(u,y,C){let D;let _;if(typeof u==="string"){D=Buffer.byteLength(u);_=false}else if(le(u)){D=u.size;_=false}else{u=pe(u);D=u.length;_=pe.readOnly}if(D>125){throw new RangeError("The data size must not be greater than 125 bytes")}const j={[Ee]:D,fin:true,generateMask:this._generateMask,mask:y,maskBuffer:this._maskBuffer,opcode:9,readOnly:_,rsv1:false};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,false,j,C])}else{this.getBlobData(u,false,j,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,false,j,C])}else{this.sendFrame(Sender.frame(u,j),C)}}pong(u,y,C){let D;let _;if(typeof u==="string"){D=Buffer.byteLength(u);_=false}else if(le(u)){D=u.size;_=false}else{u=pe(u);D=u.length;_=pe.readOnly}if(D>125){throw new RangeError("The data size must not be greater than 125 bytes")}const j={[Ee]:D,fin:true,generateMask:this._generateMask,mask:y,maskBuffer:this._maskBuffer,opcode:10,readOnly:_,rsv1:false};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,false,j,C])}else{this.getBlobData(u,false,j,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,false,j,C])}else{this.sendFrame(Sender.frame(u,j),C)}}send(u,y,C){const D=this._extensions[j.extensionName];let _=y.binary?2:1;let $=y.compress;let ne;let oe;if(typeof u==="string"){ne=Buffer.byteLength(u);oe=false}else if(le(u)){ne=u.size;oe=false}else{u=pe(u);ne=u.length;oe=pe.readOnly}if(this._firstFragment){this._firstFragment=false;if($&&D&&D.params[D._isServer?"server_no_context_takeover":"client_no_context_takeover"]){$=ne>=D._threshold}this._compress=$}else{$=false;_=0}if(y.fin)this._firstFragment=true;const de={[Ee]:ne,fin:y.fin,generateMask:this._generateMask,mask:y.mask,maskBuffer:this._maskBuffer,opcode:_,readOnly:oe,rsv1:$};if(le(u)){if(this._state!==xe){this.enqueue([this.getBlobData,u,this._compress,de,C])}else{this.getBlobData(u,this._compress,de,C)}}else if(this._state!==xe){this.enqueue([this.dispatch,u,this._compress,de,C])}else{this.dispatch(u,this._compress,de,C)}}getBlobData(u,y,C,D){this._bufferedBytes+=C[Ee];this._state=_e;u.arrayBuffer().then((u=>{if(this._socket.destroyed){const u=new Error("The socket was closed while the blob was being read");process.nextTick(callCallbacks,this,u,D);return}this._bufferedBytes-=C[Ee];const _=pe(u);if(!y){this._state=xe;this.sendFrame(Sender.frame(_,C),D);this.dequeue()}else{this.dispatch(_,y,C,D)}})).catch((u=>{process.nextTick(onError,this,u,D)}))}dispatch(u,y,C,D){if(!y){this.sendFrame(Sender.frame(u,C),D);return}const _=this._extensions[j.extensionName];this._bufferedBytes+=C[Ee];this._state=Fe;_.compress(u,C.fin,((u,y)=>{if(this._socket.destroyed){const u=new Error("The socket was closed while data was being compressed");callCallbacks(this,u,D);return}this._bufferedBytes-=C[Ee];this._state=xe;C.readOnly=false;this.sendFrame(Sender.frame(y,C),D);this.dequeue()}))}dequeue(){while(this._state===xe&&this._queue.length){const u=this._queue.shift();this._bufferedBytes-=u[3][Ee];Reflect.apply(u[0],this,u.slice(1))}}enqueue(u){this._bufferedBytes+=u[3][Ee];this._queue.push(u)}sendFrame(u,y){if(u.length===2){this._socket.cork();this._socket.write(u[0]);this._socket.write(u[1],y);this._socket.uncork()}else{this._socket.write(u[0],y)}}}u.exports=Sender;function callCallbacks(u,y,C){if(typeof C==="function")C(y);for(let C=0;C<u._queue.length;C++){const D=u._queue[C];const _=D[D.length-1];if(typeof _==="function")_(y)}}function onError(u,y,C){callCallbacks(u,y,C);u.onerror(y)}},6412:(u,y,C)=>{const D=C(6681);const{Duplex:_}=C(2203);function emitClose(u){u.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(u){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",u)}}function createWebSocketStream(u,y){let C=true;const D=new _({...y,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});u.on("message",(function message(y,C){const _=!C&&D._readableState.objectMode?y.toString():y;if(!D.push(_))u.pause()}));u.once("error",(function error(u){if(D.destroyed)return;C=false;D.destroy(u)}));u.once("close",(function close(){if(D.destroyed)return;D.push(null)}));D._destroy=function(y,_){if(u.readyState===u.CLOSED){_(y);process.nextTick(emitClose,D);return}let j=false;u.once("error",(function error(u){j=true;_(u)}));u.once("close",(function close(){if(!j)_(y);process.nextTick(emitClose,D)}));if(C)u.terminate()};D._final=function(y){if(u.readyState===u.CONNECTING){u.once("open",(function open(){D._final(y)}));return}if(u._socket===null)return;if(u._socket._writableState.finished){y();if(D._readableState.endEmitted)D.destroy()}else{u._socket.once("finish",(function finish(){y()}));u.close()}};D._read=function(){if(u.isPaused)u.resume()};D._write=function(y,C,_){if(u.readyState===u.CONNECTING){u.once("open",(function open(){D._write(y,C,_)}));return}u.send(y,_)};D.on("end",duplexOnEnd);D.on("error",duplexOnError);return D}u.exports=createWebSocketStream},3332:(u,y,C)=>{const{tokenChars:D}=C(6615);function parse(u){const y=new Set;let C=-1;let _=-1;let j=0;for(j;j<u.length;j++){const $=u.charCodeAt(j);if(_===-1&&D[$]===1){if(C===-1)C=j}else if(j!==0&&($===32||$===9)){if(_===-1&&C!==-1)_=j}else if($===44){if(C===-1){throw new SyntaxError(`Unexpected character at index ${j}`)}if(_===-1)_=j;const D=u.slice(C,_);if(y.has(D)){throw new SyntaxError(`The "${D}" subprotocol is duplicated`)}y.add(D);C=_=-1}else{throw new SyntaxError(`Unexpected character at index ${j}`)}}if(C===-1||_!==-1){throw new SyntaxError("Unexpected end of input")}const $=u.slice(C,j);if(y.has($)){throw new SyntaxError(`The "${$}" subprotocol is duplicated`)}y.add($);return y}u.exports={parse:parse}},6615:(u,y,C)=>{const{isUtf8:D}=C(181);const{hasBlob:_}=C(1791);const j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(u){return u>=1e3&&u<=1014&&u!==1004&&u!==1005&&u!==1006||u>=3e3&&u<=4999}function _isValidUTF8(u){const y=u.length;let C=0;while(C<y){if((u[C]&128)===0){C++}else if((u[C]&224)===192){if(C+1===y||(u[C+1]&192)!==128||(u[C]&254)===192){return false}C+=2}else if((u[C]&240)===224){if(C+2>=y||(u[C+1]&192)!==128||(u[C+2]&192)!==128||u[C]===224&&(u[C+1]&224)===128||u[C]===237&&(u[C+1]&224)===160){return false}C+=3}else if((u[C]&248)===240){if(C+3>=y||(u[C+1]&192)!==128||(u[C+2]&192)!==128||(u[C+3]&192)!==128||u[C]===240&&(u[C+1]&240)===128||u[C]===244&&u[C+1]>143||u[C]>244){return false}C+=4}else{return false}}return true}function isBlob(u){return _&&typeof u==="object"&&typeof u.arrayBuffer==="function"&&typeof u.type==="string"&&typeof u.stream==="function"&&(u[Symbol.toStringTag]==="Blob"||u[Symbol.toStringTag]==="File")}u.exports={isBlob:isBlob,isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:j};if(D){u.exports.isValidUTF8=function(u){return u.length<24?_isValidUTF8(u):D(u)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const y=C(2414);u.exports.isValidUTF8=function(u){return u.length<32?_isValidUTF8(u):y(u)}}catch(u){}}},129:(u,y,C)=>{const D=C(4434);const _=C(8611);const{Duplex:j}=C(2203);const{createHash:$}=C(6982);const ne=C(1335);const oe=C(4376);const le=C(3332);const de=C(6681);const{GUID:Ae,kWebSocket:pe}=C(1791);const Ee=/^[+/0-9A-Za-z]{22}==$/;const Ce=0;const Ie=1;const Be=2;class WebSocketServer extends D{constructor(u,y){super();u={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:de,...u};if(u.port==null&&!u.server&&!u.noServer||u.port!=null&&(u.server||u.noServer)||u.server&&u.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(u.port!=null){this._server=_.createServer(((u,y)=>{const C=_.STATUS_CODES[426];y.writeHead(426,{"Content-Length":C.length,"Content-Type":"text/plain"});y.end(C)}));this._server.listen(u.port,u.host,u.backlog,y)}else if(u.server){this._server=u.server}if(this._server){const u=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(y,C,D)=>{this.handleUpgrade(y,C,D,u)}})}if(u.perMessageDeflate===true)u.perMessageDeflate={};if(u.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=u;this._state=Ce}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(u){if(this._state===Be){if(u){this.once("close",(()=>{u(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(u)this.once("close",u);if(this._state===Ie)return;this._state=Ie;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const u=this._server;this._removeListeners();this._removeListeners=this._server=null;u.close((()=>{emitClose(this)}))}}shouldHandle(u){if(this.options.path){const y=u.url.indexOf("?");const C=y!==-1?u.url.slice(0,y):u.url;if(C!==this.options.path)return false}return true}handleUpgrade(u,y,C,D){y.on("error",socketOnError);const _=u.headers["sec-websocket-key"];const j=u.headers.upgrade;const $=+u.headers["sec-websocket-version"];if(u.method!=="GET"){const C="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,u,y,405,C);return}if(j===undefined||j.toLowerCase()!=="websocket"){const C="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,u,y,400,C);return}if(_===undefined||!Ee.test(_)){const C="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,u,y,400,C);return}if($!==13&&$!==8){const C="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,u,y,400,C,{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(u)){abortHandshake(y,400);return}const de=u.headers["sec-websocket-protocol"];let Ae=new Set;if(de!==undefined){try{Ae=le.parse(de)}catch(C){const D="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,u,y,400,D);return}}const pe=u.headers["sec-websocket-extensions"];const Ce={};if(this.options.perMessageDeflate&&pe!==undefined){const C=new oe(this.options.perMessageDeflate,true,this.options.maxPayload);try{const u=ne.parse(pe);if(u[oe.extensionName]){C.accept(u[oe.extensionName]);Ce[oe.extensionName]=C}}catch(C){const D="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,u,y,400,D);return}}if(this.options.verifyClient){const j={origin:u.headers[`${$===8?"sec-websocket-origin":"origin"}`],secure:!!(u.socket.authorized||u.socket.encrypted),req:u};if(this.options.verifyClient.length===2){this.options.verifyClient(j,((j,$,ne,oe)=>{if(!j){return abortHandshake(y,$||401,ne,oe)}this.completeUpgrade(Ce,_,Ae,u,y,C,D)}));return}if(!this.options.verifyClient(j))return abortHandshake(y,401)}this.completeUpgrade(Ce,_,Ae,u,y,C,D)}completeUpgrade(u,y,C,D,_,j,le){if(!_.readable||!_.writable)return _.destroy();if(_[pe]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>Ce)return abortHandshake(_,503);const de=$("sha1").update(y+Ae).digest("base64");const Ee=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${de}`];const Ie=new this.options.WebSocket(null,undefined,this.options);if(C.size){const u=this.options.handleProtocols?this.options.handleProtocols(C,D):C.values().next().value;if(u){Ee.push(`Sec-WebSocket-Protocol: ${u}`);Ie._protocol=u}}if(u[oe.extensionName]){const y=u[oe.extensionName].params;const C=ne.format({[oe.extensionName]:[y]});Ee.push(`Sec-WebSocket-Extensions: ${C}`);Ie._extensions=u}this.emit("headers",Ee,D);_.write(Ee.concat("\r\n").join("\r\n"));_.removeListener("error",socketOnError);Ie.setSocket(_,j,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(Ie);Ie.on("close",(()=>{this.clients.delete(Ie);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}le(Ie,D)}}u.exports=WebSocketServer;function addListeners(u,y){for(const C of Object.keys(y))u.on(C,y[C]);return function removeListeners(){for(const C of Object.keys(y)){u.removeListener(C,y[C])}}}function emitClose(u){u._state=Be;u.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(u,y,C,D){C=C||_.STATUS_CODES[y];D={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(C),...D};u.once("finish",u.destroy);u.end(`HTTP/1.1 ${y} ${_.STATUS_CODES[y]}\r\n`+Object.keys(D).map((u=>`${u}: ${D[u]}`)).join("\r\n")+"\r\n\r\n"+C)}function abortHandshakeOrEmitwsClientError(u,y,C,D,_,j){if(u.listenerCount("wsClientError")){const D=new Error(_);Error.captureStackTrace(D,abortHandshakeOrEmitwsClientError);u.emit("wsClientError",D,C,y)}else{abortHandshake(C,D,_,j)}}},6681:(u,y,C)=>{const D=C(4434);const _=C(5692);const j=C(8611);const $=C(9278);const ne=C(4756);const{randomBytes:oe,createHash:le}=C(6982);const{Duplex:de,Readable:Ae}=C(2203);const{URL:pe}=C(7016);const Ee=C(4376);const Ce=C(893);const Ie=C(7389);const{isBlob:Be}=C(6615);const{BINARY_TYPES:De,EMPTY_BUFFER:xe,GUID:Fe,kForOnEventAttribute:_e,kListener:Le,kStatusCode:ze,kWebSocket:qe,NOOP:Je}=C(1791);const{EventTarget:{addEventListener:Ke,removeEventListener:et}}=C(4634);const{format:tt,parse:rt}=C(1335);const{toBuffer:nt}=C(5803);const it=30*1e3;const st=Symbol("kAborted");const ot=[8,13];const at=["CONNECTING","OPEN","CLOSING","CLOSED"];const lt=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends D{constructor(u,y,C){super();this._binaryType=De[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=xe;this._closeTimer=null;this._errorEmitted=false;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(u!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(y===undefined){y=[]}else if(!Array.isArray(y)){if(typeof y==="object"&&y!==null){C=y;y=[]}else{y=[y]}}initAsClient(this,u,y,C)}else{this._autoPong=C.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(u){if(!De.includes(u))return;this._binaryType=u;if(this._receiver)this._receiver._binaryType=u}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(u,y,C){const D=new Ce({allowSynchronousEvents:C.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:C.maxPayload,skipUTF8Validation:C.skipUTF8Validation});const _=new Ie(u,this._extensions,C.generateMask);this._receiver=D;this._sender=_;this._socket=u;D[qe]=this;_[qe]=this;u[qe]=this;D.on("conclude",receiverOnConclude);D.on("drain",receiverOnDrain);D.on("error",receiverOnError);D.on("message",receiverOnMessage);D.on("ping",receiverOnPing);D.on("pong",receiverOnPong);_.onerror=senderOnError;if(u.setTimeout)u.setTimeout(0);if(u.setNoDelay)u.setNoDelay();if(y.length>0)u.unshift(y);u.on("close",socketOnClose);u.on("data",socketOnData);u.on("end",socketOnEnd);u.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[Ee.extensionName]){this._extensions[Ee.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(u,y){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const u="WebSocket was closed before the connection was established";abortHandshake(this,this._req,u);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(u,y,!this._isServer,(u=>{if(u)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));setCloseTimer(this)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof u==="function"){C=u;u=y=undefined}else if(typeof y==="function"){C=y;y=undefined}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}if(y===undefined)y=!this._isServer;this._sender.ping(u||xe,y,C)}pong(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof u==="function"){C=u;u=y=undefined}else if(typeof y==="function"){C=y;y=undefined}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}if(y===undefined)y=!this._isServer;this._sender.pong(u||xe,y,C)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(u,y,C){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof y==="function"){C=y;y={}}if(typeof u==="number")u=u.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,u,C);return}const D={binary:typeof u!=="string",mask:!this._isServer,compress:true,fin:true,...y};if(!this._extensions[Ee.extensionName]){D.compress=false}this._sender.send(u||xe,D,C)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const u="WebSocket was closed before the connection was established";abortHandshake(this,this._req,u);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:at.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:at.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:at.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:at.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:at.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:at.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:at.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:at.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((u=>{Object.defineProperty(WebSocket.prototype,u,{enumerable:true})}));["open","error","close","message"].forEach((u=>{Object.defineProperty(WebSocket.prototype,`on${u}`,{enumerable:true,get(){for(const y of this.listeners(u)){if(y[_e])return y[Le]}return null},set(y){for(const y of this.listeners(u)){if(y[_e]){this.removeListener(u,y);break}}if(typeof y!=="function")return;this.addEventListener(u,y,{[_e]:true})}})}));WebSocket.prototype.addEventListener=Ke;WebSocket.prototype.removeEventListener=et;u.exports=WebSocket;function initAsClient(u,y,C,D){const $={allowSynchronousEvents:true,autoPong:true,protocolVersion:ot[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...D,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};u._autoPong=$.autoPong;if(!ot.includes($.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${$.protocolVersion} `+`(supported versions: ${ot.join(", ")})`)}let ne;if(y instanceof pe){ne=y}else{try{ne=new pe(y)}catch(u){throw new SyntaxError(`Invalid URL: ${y}`)}}if(ne.protocol==="http:"){ne.protocol="ws:"}else if(ne.protocol==="https:"){ne.protocol="wss:"}u._url=ne.href;const de=ne.protocol==="wss:";const Ae=ne.protocol==="ws+unix:";let Ce;if(ne.protocol!=="ws:"&&!de&&!Ae){Ce='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https:", or "ws+unix:"'}else if(Ae&&!ne.pathname){Ce="The URL's pathname is empty"}else if(ne.hash){Ce="The URL contains a fragment identifier"}if(Ce){const y=new SyntaxError(Ce);if(u._redirects===0){throw y}else{emitErrorAndClose(u,y);return}}const Ie=de?443:80;const Be=oe(16).toString("base64");const De=de?_.request:j.request;const xe=new Set;let _e;$.createConnection=$.createConnection||(de?tlsConnect:netConnect);$.defaultPort=$.defaultPort||Ie;$.port=ne.port||Ie;$.host=ne.hostname.startsWith("[")?ne.hostname.slice(1,-1):ne.hostname;$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":Be,Connection:"Upgrade",Upgrade:"websocket"};$.path=ne.pathname+ne.search;$.timeout=$.handshakeTimeout;if($.perMessageDeflate){_e=new Ee($.perMessageDeflate!==true?$.perMessageDeflate:{},false,$.maxPayload);$.headers["Sec-WebSocket-Extensions"]=tt({[Ee.extensionName]:_e.offer()})}if(C.length){for(const u of C){if(typeof u!=="string"||!lt.test(u)||xe.has(u)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}xe.add(u)}$.headers["Sec-WebSocket-Protocol"]=C.join(",")}if($.origin){if($.protocolVersion<13){$.headers["Sec-WebSocket-Origin"]=$.origin}else{$.headers.Origin=$.origin}}if(ne.username||ne.password){$.auth=`${ne.username}:${ne.password}`}if(Ae){const u=$.path.split(":");$.socketPath=u[0];$.path=u[1]}let Le;if($.followRedirects){if(u._redirects===0){u._originalIpc=Ae;u._originalSecure=de;u._originalHostOrSocketPath=Ae?$.socketPath:ne.host;const y=D&&D.headers;D={...D,headers:{}};if(y){for(const[u,C]of Object.entries(y)){D.headers[u.toLowerCase()]=C}}}else if(u.listenerCount("redirect")===0){const y=Ae?u._originalIpc?$.socketPath===u._originalHostOrSocketPath:false:u._originalIpc?false:ne.host===u._originalHostOrSocketPath;if(!y||u._originalSecure&&!de){delete $.headers.authorization;delete $.headers.cookie;if(!y)delete $.headers.host;$.auth=undefined}}if($.auth&&!D.headers.authorization){D.headers.authorization="Basic "+Buffer.from($.auth).toString("base64")}Le=u._req=De($);if(u._redirects){u.emit("redirect",u.url,Le)}}else{Le=u._req=De($)}if($.timeout){Le.on("timeout",(()=>{abortHandshake(u,Le,"Opening handshake has timed out")}))}Le.on("error",(y=>{if(Le===null||Le[st])return;Le=u._req=null;emitErrorAndClose(u,y)}));Le.on("response",(_=>{const j=_.headers.location;const ne=_.statusCode;if(j&&$.followRedirects&&ne>=300&&ne<400){if(++u._redirects>$.maxRedirects){abortHandshake(u,Le,"Maximum redirects exceeded");return}Le.abort();let _;try{_=new pe(j,y)}catch(y){const C=new SyntaxError(`Invalid URL: ${j}`);emitErrorAndClose(u,C);return}initAsClient(u,_,C,D)}else if(!u.emit("unexpected-response",Le,_)){abortHandshake(u,Le,`Unexpected server response: ${_.statusCode}`)}}));Le.on("upgrade",((y,C,D)=>{u.emit("upgrade",y);if(u.readyState!==WebSocket.CONNECTING)return;Le=u._req=null;const _=y.headers.upgrade;if(_===undefined||_.toLowerCase()!=="websocket"){abortHandshake(u,C,"Invalid Upgrade header");return}const j=le("sha1").update(Be+Fe).digest("base64");if(y.headers["sec-websocket-accept"]!==j){abortHandshake(u,C,"Invalid Sec-WebSocket-Accept header");return}const ne=y.headers["sec-websocket-protocol"];let oe;if(ne!==undefined){if(!xe.size){oe="Server sent a subprotocol but none was requested"}else if(!xe.has(ne)){oe="Server sent an invalid subprotocol"}}else if(xe.size){oe="Server sent no subprotocol"}if(oe){abortHandshake(u,C,oe);return}if(ne)u._protocol=ne;const de=y.headers["sec-websocket-extensions"];if(de!==undefined){if(!_e){const y="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(u,C,y);return}let y;try{y=rt(de)}catch(y){const D="Invalid Sec-WebSocket-Extensions header";abortHandshake(u,C,D);return}const D=Object.keys(y);if(D.length!==1||D[0]!==Ee.extensionName){const y="Server indicated an extension that was not requested";abortHandshake(u,C,y);return}try{_e.accept(y[Ee.extensionName])}catch(y){const D="Invalid Sec-WebSocket-Extensions header";abortHandshake(u,C,D);return}u._extensions[Ee.extensionName]=_e}u.setSocket(C,D,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}));if($.finishRequest){$.finishRequest(Le,u)}else{Le.end()}}function emitErrorAndClose(u,y){u._readyState=WebSocket.CLOSING;u._errorEmitted=true;u.emit("error",y);u.emitClose()}function netConnect(u){u.path=u.socketPath;return $.connect(u)}function tlsConnect(u){u.path=undefined;if(!u.servername&&u.servername!==""){u.servername=$.isIP(u.host)?"":u.host}return ne.connect(u)}function abortHandshake(u,y,C){u._readyState=WebSocket.CLOSING;const D=new Error(C);Error.captureStackTrace(D,abortHandshake);if(y.setHeader){y[st]=true;y.abort();if(y.socket&&!y.socket.destroyed){y.socket.destroy()}process.nextTick(emitErrorAndClose,u,D)}else{y.destroy(D);y.once("error",u.emit.bind(u,"error"));y.once("close",u.emitClose.bind(u))}}function sendAfterClose(u,y,C){if(y){const C=Be(y)?y.size:nt(y).length;if(u._socket)u._sender._bufferedBytes+=C;else u._bufferedAmount+=C}if(C){const y=new Error(`WebSocket is not open: readyState ${u.readyState} `+`(${at[u.readyState]})`);process.nextTick(C,y)}}function receiverOnConclude(u,y){const C=this[qe];C._closeFrameReceived=true;C._closeMessage=y;C._closeCode=u;if(C._socket[qe]===undefined)return;C._socket.removeListener("data",socketOnData);process.nextTick(resume,C._socket);if(u===1005)C.close();else C.close(u,y)}function receiverOnDrain(){const u=this[qe];if(!u.isPaused)u._socket.resume()}function receiverOnError(u){const y=this[qe];if(y._socket[qe]!==undefined){y._socket.removeListener("data",socketOnData);process.nextTick(resume,y._socket);y.close(u[ze])}if(!y._errorEmitted){y._errorEmitted=true;y.emit("error",u)}}function receiverOnFinish(){this[qe].emitClose()}function receiverOnMessage(u,y){this[qe].emit("message",u,y)}function receiverOnPing(u){const y=this[qe];if(y._autoPong)y.pong(u,!this._isServer,Je);y.emit("ping",u)}function receiverOnPong(u){this[qe].emit("pong",u)}function resume(u){u.resume()}function senderOnError(u){const y=this[qe];if(y.readyState===WebSocket.CLOSED)return;if(y.readyState===WebSocket.OPEN){y._readyState=WebSocket.CLOSING;setCloseTimer(y)}this._socket.end();if(!y._errorEmitted){y._errorEmitted=true;y.emit("error",u)}}function setCloseTimer(u){u._closeTimer=setTimeout(u._socket.destroy.bind(u._socket),it)}function socketOnClose(){const u=this[qe];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);u._readyState=WebSocket.CLOSING;let y;if(!this._readableState.endEmitted&&!u._closeFrameReceived&&!u._receiver._writableState.errorEmitted&&(y=u._socket.read())!==null){u._receiver.write(y)}u._receiver.end();this[qe]=undefined;clearTimeout(u._closeTimer);if(u._receiver._writableState.finished||u._receiver._writableState.errorEmitted){u.emitClose()}else{u._receiver.on("error",receiverOnFinish);u._receiver.on("finish",receiverOnFinish)}}function socketOnData(u){if(!this[qe]._receiver.write(u)){this.pause()}}function socketOnEnd(){const u=this[qe];u._readyState=WebSocket.CLOSING;u._receiver.end();this.end()}function socketOnError(){const u=this[qe];this.removeListener("error",socketOnError);this.on("error",Je);if(u){u._readyState=WebSocket.CLOSING;this.destroy()}}},663:(u,y,C)=>{var D=C(9896);var _=C(3106);var j=C(3045);var $=C(9776);var ne=C(9023);var oe=C(4434).EventEmitter;var le=C(2203).Transform;var de=C(2203).PassThrough;var Ae=C(2203).Writable;y.open=open;y.fromFd=fromFd;y.fromBuffer=fromBuffer;y.fromRandomAccessReader=fromRandomAccessReader;y.dosDateTimeToDate=dosDateTimeToDate;y.validateFileName=validateFileName;y.ZipFile=ZipFile;y.Entry=Entry;y.RandomAccessReader=RandomAccessReader;function open(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};if(y.autoClose==null)y.autoClose=true;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;if(C==null)C=defaultCallback;D.open(u,"r",(function(u,_){if(u)return C(u);fromFd(_,y,(function(u,y){if(u)D.close(_,defaultCallback);C(u,y)}))}))}function fromFd(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};if(y.autoClose==null)y.autoClose=false;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;if(C==null)C=defaultCallback;D.fstat(u,(function(D,_){if(D)return C(D);var $=j.createFromFd(u,{autoClose:true});fromRandomAccessReader($,_.size,y,C)}))}function fromBuffer(u,y,C){if(typeof y==="function"){C=y;y=null}if(y==null)y={};y.autoClose=false;if(y.lazyEntries==null)y.lazyEntries=false;if(y.decodeStrings==null)y.decodeStrings=true;if(y.validateEntrySizes==null)y.validateEntrySizes=true;if(y.strictFileNames==null)y.strictFileNames=false;var D=j.createFromBuffer(u,{maxChunkSize:65536});fromRandomAccessReader(D,u.length,y,C)}function fromRandomAccessReader(u,y,C,D){if(typeof C==="function"){D=C;C=null}if(C==null)C={};if(C.autoClose==null)C.autoClose=true;if(C.lazyEntries==null)C.lazyEntries=false;if(C.decodeStrings==null)C.decodeStrings=true;var _=!!C.decodeStrings;if(C.validateEntrySizes==null)C.validateEntrySizes=true;if(C.strictFileNames==null)C.strictFileNames=false;if(D==null)D=defaultCallback;if(typeof y!=="number")throw new Error("expected totalSize parameter to be a number");if(y>Number.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}u.ref();var j=22;var $=65535;var ne=Math.min(j+$,y);var oe=Ee(ne);var le=y-oe.length;readAndAssertNoEof(u,oe,0,ne,le,(function($){if($)return D($);for(var de=ne-j;de>=0;de-=1){if(oe.readUInt32LE(de)!==101010256)continue;var Ae=oe.slice(de);var pe=Ae.readUInt16LE(4);if(pe!==0){return D(new Error("multi-disk zip files are not supported: found disk number: "+pe))}var Ce=Ae.readUInt16LE(10);var Ie=Ae.readUInt32LE(16);var Be=Ae.readUInt16LE(20);var De=Ae.length-j;if(Be!==De){return D(new Error("invalid comment length. expected: "+De+". found: "+Be))}var xe=_?decodeBuffer(Ae,22,Ae.length,false):Ae.slice(22);if(!(Ce===65535||Ie===4294967295)){return D(null,new ZipFile(u,Ie,y,Ce,xe,C.autoClose,C.lazyEntries,_,C.validateEntrySizes,C.strictFileNames))}var Fe=Ee(20);var _e=le+de-Fe.length;readAndAssertNoEof(u,Fe,0,Fe.length,_e,(function(j){if(j)return D(j);if(Fe.readUInt32LE(0)!==117853008){return D(new Error("invalid zip64 end of central directory locator signature"))}var $=readUInt64LE(Fe,8);var ne=Ee(56);readAndAssertNoEof(u,ne,0,ne.length,$,(function(j){if(j)return D(j);if(ne.readUInt32LE(0)!==101075792){return D(new Error("invalid zip64 end of central directory record signature"))}Ce=readUInt64LE(ne,32);Ie=readUInt64LE(ne,48);return D(null,new ZipFile(u,Ie,y,Ce,xe,C.autoClose,C.lazyEntries,_,C.validateEntrySizes,C.strictFileNames))}))}));return}D(new Error("end of central directory record signature not found"))}))}ne.inherits(ZipFile,oe);function ZipFile(u,y,C,D,_,j,$,ne,le,de){var Ae=this;oe.call(Ae);Ae.reader=u;Ae.reader.on("error",(function(u){emitError(Ae,u)}));Ae.reader.once("close",(function(){Ae.emit("close")}));Ae.readEntryCursor=y;Ae.fileSize=C;Ae.entryCount=D;Ae.comment=_;Ae.entriesRead=0;Ae.autoClose=!!j;Ae.lazyEntries=!!$;Ae.decodeStrings=!!ne;Ae.validateEntrySizes=!!le;Ae.strictFileNames=!!de;Ae.isOpen=true;Ae.emittedError=false;if(!Ae.lazyEntries)Ae._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(u,y){if(u.autoClose)u.close();emitError(u,y)}function emitError(u,y){if(u.emittedError)return;u.emittedError=true;u.emit("error",y)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var u=this;if(u.entryCount===u.entriesRead){setImmediate((function(){if(u.autoClose)u.close();if(u.emittedError)return;u.emit("end")}));return}if(u.emittedError)return;var y=Ee(46);readAndAssertNoEof(u.reader,y,0,y.length,u.readEntryCursor,(function(C){if(C)return emitErrorAndAutoClose(u,C);if(u.emittedError)return;var D=new Entry;var _=y.readUInt32LE(0);if(_!==33639248)return emitErrorAndAutoClose(u,new Error("invalid central directory file header signature: 0x"+_.toString(16)));D.versionMadeBy=y.readUInt16LE(4);D.versionNeededToExtract=y.readUInt16LE(6);D.generalPurposeBitFlag=y.readUInt16LE(8);D.compressionMethod=y.readUInt16LE(10);D.lastModFileTime=y.readUInt16LE(12);D.lastModFileDate=y.readUInt16LE(14);D.crc32=y.readUInt32LE(16);D.compressedSize=y.readUInt32LE(20);D.uncompressedSize=y.readUInt32LE(24);D.fileNameLength=y.readUInt16LE(28);D.extraFieldLength=y.readUInt16LE(30);D.fileCommentLength=y.readUInt16LE(32);D.internalFileAttributes=y.readUInt16LE(36);D.externalFileAttributes=y.readUInt32LE(38);D.relativeOffsetOfLocalHeader=y.readUInt32LE(42);if(D.generalPurposeBitFlag&64)return emitErrorAndAutoClose(u,new Error("strong encryption is not supported"));u.readEntryCursor+=46;y=Ee(D.fileNameLength+D.extraFieldLength+D.fileCommentLength);readAndAssertNoEof(u.reader,y,0,y.length,u.readEntryCursor,(function(C){if(C)return emitErrorAndAutoClose(u,C);if(u.emittedError)return;var _=(D.generalPurposeBitFlag&2048)!==0;D.fileName=u.decodeStrings?decodeBuffer(y,0,D.fileNameLength,_):y.slice(0,D.fileNameLength);var j=D.fileNameLength+D.extraFieldLength;var ne=y.slice(D.fileNameLength,j);D.extraFields=[];var oe=0;while(oe<ne.length-3){var le=ne.readUInt16LE(oe+0);var de=ne.readUInt16LE(oe+2);var Ae=oe+4;var pe=Ae+de;if(pe>ne.length)return emitErrorAndAutoClose(u,new Error("extra field length exceeds extra field buffer size"));var Ce=Ee(de);ne.copy(Ce,0,Ae,pe);D.extraFields.push({id:le,data:Ce});oe=pe}D.fileComment=u.decodeStrings?decodeBuffer(y,j,j+D.fileCommentLength,_):y.slice(j,j+D.fileCommentLength);D.comment=D.fileComment;u.readEntryCursor+=y.length;u.entriesRead+=1;if(D.uncompressedSize===4294967295||D.compressedSize===4294967295||D.relativeOffsetOfLocalHeader===4294967295){var Ie=null;for(var oe=0;oe<D.extraFields.length;oe++){var Be=D.extraFields[oe];if(Be.id===1){Ie=Be.data;break}}if(Ie==null){return emitErrorAndAutoClose(u,new Error("expected zip64 extended information extra field"))}var De=0;if(D.uncompressedSize===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include uncompressed size"))}D.uncompressedSize=readUInt64LE(Ie,De);De+=8}if(D.compressedSize===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include compressed size"))}D.compressedSize=readUInt64LE(Ie,De);De+=8}if(D.relativeOffsetOfLocalHeader===4294967295){if(De+8>Ie.length){return emitErrorAndAutoClose(u,new Error("zip64 extended information extra field does not include relative header offset"))}D.relativeOffsetOfLocalHeader=readUInt64LE(Ie,De);De+=8}}if(u.decodeStrings){for(var oe=0;oe<D.extraFields.length;oe++){var Be=D.extraFields[oe];if(Be.id===28789){if(Be.data.length<6){continue}if(Be.data.readUInt8(0)!==1){continue}var xe=Be.data.readUInt32LE(1);if($.unsigned(y.slice(0,D.fileNameLength))!==xe){continue}D.fileName=decodeBuffer(Be.data,5,Be.data.length,true);break}}}if(u.validateEntrySizes&&D.compressionMethod===0){var Fe=D.uncompressedSize;if(D.isEncrypted()){Fe+=12}if(D.compressedSize!==Fe){var _e="compressed/uncompressed size mismatch for stored file: "+D.compressedSize+" != "+D.uncompressedSize;return emitErrorAndAutoClose(u,new Error(_e))}}if(u.decodeStrings){if(!u.strictFileNames){D.fileName=D.fileName.replace(/\\/g,"/")}var Le=validateFileName(D.fileName,u.validateFileNameOptions);if(Le!=null)return emitErrorAndAutoClose(u,new Error(Le))}u.emit("entry",D);if(!u.lazyEntries)u._readEntry()}))}))};ZipFile.prototype.openReadStream=function(u,y,C){var D=this;var j=0;var $=u.compressedSize;if(C==null){C=y;y={}}else{if(y.decrypt!=null){if(!u.isEncrypted()){throw new Error("options.decrypt can only be specified for encrypted entries")}if(y.decrypt!==false)throw new Error("invalid options.decrypt value: "+y.decrypt);if(u.isCompressed()){if(y.decompress!==false)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}}if(y.decompress!=null){if(!u.isCompressed()){throw new Error("options.decompress can only be specified for compressed entries")}if(!(y.decompress===false||y.decompress===true)){throw new Error("invalid options.decompress value: "+y.decompress)}}if(y.start!=null||y.end!=null){if(u.isCompressed()&&y.decompress!==false){throw new Error("start/end range not allowed for compressed entry without options.decompress === false")}if(u.isEncrypted()&&y.decrypt!==false){throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}}if(y.start!=null){j=y.start;if(j<0)throw new Error("options.start < 0");if(j>u.compressedSize)throw new Error("options.start > entry.compressedSize")}if(y.end!=null){$=y.end;if($<0)throw new Error("options.end < 0");if($>u.compressedSize)throw new Error("options.end > entry.compressedSize");if($<j)throw new Error("options.end < options.start")}}if(!D.isOpen)return C(new Error("closed"));if(u.isEncrypted()){if(y.decrypt!==false)return C(new Error("entry is encrypted, and options.decrypt !== false"))}D.reader.ref();var ne=Ee(30);readAndAssertNoEof(D.reader,ne,0,ne.length,u.relativeOffsetOfLocalHeader,(function(oe){try{if(oe)return C(oe);var le=ne.readUInt32LE(0);if(le!==67324752){return C(new Error("invalid local file header signature: 0x"+le.toString(16)))}var de=ne.readUInt16LE(26);var Ae=ne.readUInt16LE(28);var pe=u.relativeOffsetOfLocalHeader+ne.length+de+Ae;var Ee;if(u.compressionMethod===0){Ee=false}else if(u.compressionMethod===8){Ee=y.decompress!=null?y.decompress:true}else{return C(new Error("unsupported compression method: "+u.compressionMethod))}var Ce=pe;var Ie=Ce+u.compressedSize;if(u.compressedSize!==0){if(Ie>D.fileSize){return C(new Error("file data overflows file bounds: "+Ce+" + "+u.compressedSize+" > "+D.fileSize))}}var Be=D.reader.createReadStream({start:Ce+j,end:Ce+$});var De=Be;if(Ee){var xe=false;var Fe=_.createInflateRaw();Be.on("error",(function(u){setImmediate((function(){if(!xe)Fe.emit("error",u)}))}));Be.pipe(Fe);if(D.validateEntrySizes){De=new AssertByteCountStream(u.uncompressedSize);Fe.on("error",(function(u){setImmediate((function(){if(!xe)De.emit("error",u)}))}));Fe.pipe(De)}else{De=Fe}De.destroy=function(){xe=true;if(Fe!==De)Fe.unpipe(De);Be.unpipe(Fe);Be.destroy()}}C(null,De)}finally{D.reader.unref()}}))};function Entry(){}Entry.prototype.getLastModDate=function(){return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function dosDateTimeToDate(u,y){var C=u&31;var D=(u>>5&15)-1;var _=(u>>9&127)+1980;var j=0;var $=(y&31)*2;var ne=y>>5&63;var oe=y>>11&31;return new Date(_,D,C,oe,ne,$,j)}function validateFileName(u){if(u.indexOf("\\")!==-1){return"invalid characters in fileName: "+u}if(/^[a-zA-Z]:/.test(u)||/^\//.test(u)){return"absolute path: "+u}if(u.split("/").indexOf("..")!==-1){return"invalid relative path: "+u}return null}function readAndAssertNoEof(u,y,C,D,_,j){if(D===0){return setImmediate((function(){j(null,Ee(0))}))}u.read(y,C,D,_,(function(u,y){if(u)return j(u);if(y<D){return j(new Error("unexpected EOF"))}j()}))}ne.inherits(AssertByteCountStream,le);function AssertByteCountStream(u){le.call(this);this.actualByteCount=0;this.expectedByteCount=u}AssertByteCountStream.prototype._transform=function(u,y,C){this.actualByteCount+=u.length;if(this.actualByteCount>this.expectedByteCount){var D="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return C(new Error(D))}C(null,u)};AssertByteCountStream.prototype._flush=function(u){if(this.actualByteCount<this.expectedByteCount){var y="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return u(new Error(y))}u()};ne.inherits(RandomAccessReader,oe);function RandomAccessReader(){oe.call(this);this.refCount=0}RandomAccessReader.prototype.ref=function(){this.refCount+=1};RandomAccessReader.prototype.unref=function(){var u=this;u.refCount-=1;if(u.refCount>0)return;if(u.refCount<0)throw new Error("invalid unref");u.close(onCloseDone);function onCloseDone(y){if(y)return u.emit("error",y);u.emit("close")}};RandomAccessReader.prototype.createReadStream=function(u){var y=u.start;var C=u.end;if(y===C){var D=new de;setImmediate((function(){D.end()}));return D}var _=this._readStreamForRange(y,C);var j=false;var $=new RefUnrefFilter(this);_.on("error",(function(u){setImmediate((function(){if(!j)$.emit("error",u)}))}));$.destroy=function(){_.unpipe($);$.unref();_.destroy()};var ne=new AssertByteCountStream(C-y);$.on("error",(function(u){setImmediate((function(){if(!j)ne.emit("error",u)}))}));ne.destroy=function(){j=true;$.unpipe(ne);$.destroy()};return _.pipe($).pipe(ne)};RandomAccessReader.prototype._readStreamForRange=function(u,y){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(u,y,C,D,_){var j=this.createReadStream({start:D,end:D+C});var $=new Ae;var ne=0;$._write=function(C,D,_){C.copy(u,y+ne,0,C.length);ne+=C.length;_()};$.on("finish",_);j.on("error",(function(u){_(u)}));j.pipe($)};RandomAccessReader.prototype.close=function(u){setImmediate(u)};ne.inherits(RefUnrefFilter,de);function RefUnrefFilter(u){de.call(this);this.context=u;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(u){this.unref();u()};RefUnrefFilter.prototype.unref=function(u){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var pe="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(u,y,C,D){if(D){return u.toString("utf8",y,C)}else{var _="";for(var j=y;j<C;j++){_+=pe[u[j]]}return _}}function readUInt64LE(u,y){var C=u.readUInt32LE(y);var D=u.readUInt32LE(y+4);return D*4294967296+C}var Ee;if(typeof Buffer.allocUnsafe==="function"){Ee=function(u){return Buffer.allocUnsafe(u)}}else{Ee=function(u){return new Buffer(u)}}function defaultCallback(u){if(u)throw u}},3808:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{q:()=>App});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(865);var oe=C(5351);var le=C(7531);var de=C(3003);var Ae=C(5720);var pe=C(4649);var Ee=C(1298);var Ce=C(9433);var Ie=C(2480);var Be=u([$,ne,oe,le,de,Ae,pe,Ce,Ie]);[$,ne,oe,le,de,Ae,pe,Ce,Ie]=Be.then?(await Be)():Be;const App=({autonomous:u=false})=>{const{coreState:y,coreViewModel:C,agentStatus:D,isAutonomous:Be,toggleAutonomous:De,pendingShellCommand:xe,approveShellCommand:Fe,rejectShellCommand:_e,approveDiff:Le,rejectDiff:ze,submitUserInput:qe,searchFiles:Je,activeShellCommand:Ke,handleShellCompletion:et,childProcess:tt,sendInputToShell:rt,inputText:nt,setInputText:it,isShellActive:st,setIsShellActive:ot,cancelCurrentInteraction:at}=(0,Ee.f)({autonomous:u});const[lt,ct]=(0,_.useState)(false);const[ut,ft]=(0,_.useState)(false);(0,$.Ge)(((u,y)=>{if(y.ctrl&&(u==="t"||u==="T")||u===""){De();return}if(st){if(y.ctrl&&u==="c"){rt("");return}if(y.return){rt("\n");return}if(y.backspace){rt("\b");return}if(u){rt(u);return}return}if(y.escape&&D.isVisible){at();return}if(y.ctrl&&u==="c"){if(ut){process.exit(0)}else{ft(true)}}else{ft(false)}}));const handleSubmit=(u,y)=>{qe(u,y)};(0,_.useEffect)((()=>{if(Ke){ot(true)}else{ot(false)}}),[Ke]);const dt=!C.activeDiffReview&&!xe&&!y.isBootstrapping&&!D.isVisible;const At=y.bootstrapFinished?C.staticMessages.filter((u=>!u.isBootstrap)):C.staticMessages;return j().createElement($.az,{flexDirection:"column",width:"100%",height:"100%"},!y.bootstrapFinished?j().createElement(Ie.A,{status:y.connectionStatus,isBootstrapping:y.isBootstrapping}):j().createElement(j().Fragment,null,j().createElement(oe.s,{messages:At,liveAgentMessage:C.liveAgentMessage,activeShellRun:C.activeShellRun,activeDiffReview:C.activeDiffReview,onShellComplete:et,childProcess:tt,sendInputToShell:rt,onApproveDiff:Le,onRejectDiff:ze}),xe&&j().createElement(pe.A,{command:xe.parameters.command,onApprove:Fe,onReject:_e}),D.isVisible&&j().createElement(ne.A,{isVisible:D.isVisible,text:D.text}),lt&&j().createElement(Ce.A,null),j().createElement(Ae.A,{isActive:dt,isShellActive:st,isAutonomous:Be,onSubmit:handleSubmit,searchFiles:Je,value:nt,onChange:it,setShowEscapeClear:ct})),j().createElement(de.A,{isAutonomous:Be}),ut&&j().createElement(le.A,null))};D()}catch(u){D(u)}}))},1167:(u,y,C)=>{C.a(u,(async(u,y)=>{try{var D=C(7919);var _=C.n(D);var j=C(8518);var $=C(9345);var ne=C(3808);var oe=C(6614);var le=u([j,ne]);[j,ne]=le.then?(await le)():le;const de=(0,$.A)(`\n\tUsage\n\t $ stk-codegen\n\n\tOptions\n\t --autonomous Run in autonomous mode\n`,{importMeta:import.meta,flags:{autonomous:{type:"boolean",default:false}}});const startCli=async u=>{await(0,oe.x)();const restoreTerminal=()=>{if(process.stdin.isTTY){process.stdin.setRawMode(false)}};if(process.stdin.isTTY){process.stdin.setRawMode(true)}const y=process.stdout.isTTY&&process.env["STK_CODEGEN_ALT_BUFFER"]!=="0";const C=(0,j.XX)(_().createElement(ne.q,{autonomous:u.autonomous}),{exitOnCtrlC:false,alternateBuffer:y,incrementalRendering:y});try{await C.waitUntilExit()}finally{restoreTerminal();process.exit(0)}};startCli(de.flags);y()}catch(u){y(u)}}))},865:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(8078);var oe=u([$,ne]);[$,ne]=oe.then?(await oe)():oe;const AgentStatus=({isVisible:u,text:y="Agent is thinking..."})=>{if(!u){return null}return j().createElement($.az,{borderColor:"#800020"},j().createElement(ne.A,{type:"dots"}),j().createElement($.az,{marginLeft:1},j().createElement($.EY,{color:"#ff8080"},y," (esc to cancel)")))};const le=AgentStatus;D()}catch(u){D(u)}}))},2480:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(8078);var oe=u([$,ne]);[$,ne]=oe.then?(await oe)():oe;const BootstrapStatus=({status:u,isBootstrapping:y})=>{let C="";if(u==="connecting"){C="Conectando ao servidor..."}else if(y){C="Carregando contexto do projeto. Isso pode levar alguns segundos..."}return j().createElement($.az,{flexDirection:"column",alignItems:"center",paddingY:1},j().createElement($.az,null,j().createElement($.EY,null,j().createElement(ne.A,{type:"dots"}),j().createElement($.EY,null," "),C)))};const le=BootstrapStatus;D()}catch(u){D(u)}}))},5351:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{s:()=>Conversation});var _=C(7919);var j=C.n(_);var $=C(1808);var ne=C(9577);var oe=C(8518);var le=C(4978);var de=C(968);var Ae=C(3036);var pe=u([$,ne,oe,le,de,Ae]);[$,ne,oe,le,de,Ae]=pe.then?(await pe)():pe;const renderStaticMessage=(u,y)=>{if(u.role==="tool_execution"){return j().createElement(Ae.A,{key:u.id,toolName:u.toolName,toolParams:u.toolParams,status:u.status})}return j().createElement(ne.e,{key:u.id,message:{id:u.id,sender:u.role,text:u.text,status:"completed",highlightedBlock:u.highlightedBlock},activeShellCommand:undefined,childProcess:null,handleShellCompletion:y})};const LiveAgentMessageView=({liveAgentMessage:u,onShellComplete:y})=>j().createElement(ne.e,{key:u.id,message:{id:u.id,sender:u.role,text:u.text,status:"running",stream:{status:"streaming"},highlightedBlock:u.highlightedBlock},activeShellCommand:undefined,childProcess:null,handleShellCompletion:y});const Conversation=({messages:u,liveAgentMessage:y,activeShellRun:C,activeDiffReview:D,onShellComplete:_,childProcess:ne,onApproveDiff:Ae,onRejectDiff:pe})=>j().createElement($.P,null,j().createElement(oe.jC,{items:u},(u=>renderStaticMessage(u,_))),y&&j().createElement(LiveAgentMessageView,{liveAgentMessage:y,onShellComplete:_}),C&&j().createElement(le.A,{command:C.command,onComplete:_,childProcess:ne,coreShellRun:C}),D&&j().createElement(de.Ay,{toolName:D.toolName,toolParams:D.toolParams,oldContent:D.oldContent,newContent:D.newContent,onApprove:Ae,onReject:pe,isCompleted:false,coreDiffReview:D}));D()}catch(u){D(u)}}))},968:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{Ay:()=>Ee});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(7073);var oe=C(1825);var le=C(1911);var de=u([$]);$=(de.then?(await de)():de)[0];const Ae=500;const pe=3;const normalizeContent=u=>u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");const getTerminalColumns=()=>{const u=process.stdout;if(u&&typeof u.columns==="number"&&u.columns>0){return u.columns}return 80};const wrapLineToWidth=(u,y)=>{const C=u.replace(/\t/g," ");if(C.length<=y){return[C]}const D=[];for(let u=0;u<C.length;u+=y){D.push(C.slice(u,u+y))}return D.length?D:[""]};const DiffDecisionHint=()=>j().createElement($.az,{marginTop:1},j().createElement($.EY,null,"Press ","<Enter>"," to ",j().createElement($.EY,{color:"green"},"Accept")," or 'r' to ",j().createElement($.EY,{color:"red"},"Reject"),"."));const DiffViewStatic=({oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:oe,isCompleted:de,action:Ee,maxVisibleLines:Ce})=>{const Ie=(0,_.useMemo)((()=>normalizeContent(u)),[u]);const Be=(0,_.useMemo)((()=>normalizeContent(y)),[y]);const De=(0,_.useMemo)((()=>ne.Pp(Ie,Be)),[Ie,Be]);const xe=Ee==="accept"?"Changes accepted":"Changes rejected";const Fe=Ee==="accept"?"green":"red";const _e=D?(0,le.M)(D,oe):C;const Le=getTerminalColumns();const ze=8;const qe=Math.max(Le-ze-4,20);const Je=Ce??Ae;if(Ie===Be&&!de){return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginBottom:1},j().createElement($.EY,{bold:true},"File: ",_e),j().createElement($.EY,null,"No changes detected. The file content will remain the same unless you edit it."))}const Ke=(0,_.useMemo)((()=>{const u=[];let y=1;let C=1;De.forEach((D=>{const _=D.value.replace(/\n$/,"");const j=_===""?[""]:_.split("\n");j.forEach((_=>{let j="unchanged";let $=null;let ne=null;if(D.added){j="added";ne=C++}else if(D.removed){j="removed";$=y++}else{j="unchanged";$=y++;ne=C++}u.push({index:u.length,type:j,text:_,oldLineNumber:$,newLineNumber:ne})}))}));return u}),[De]);const et=(0,_.useMemo)((()=>{const u=new Array(Ke.length).fill(false);const y=[];Ke.forEach(((C,D)=>{if(C.type==="added"||C.type==="removed"){u[D]=true;y.push(D)}}));y.forEach((y=>{const C=Math.max(0,y-pe);const D=Math.min(Ke.length-1,y+pe);for(let y=C;y<=D;y++){u[y]=true}}));return u}),[Ke]);return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,marginBottom:1},j().createElement($.EY,{bold:true},"File: ",_e),de?j().createElement($.EY,{color:Fe},"4 ",xe):j().createElement($.EY,{bold:true},"Review Changes:"),j().createElement($.az,{flexDirection:"column",marginTop:1},(()=>{const u=[];let y=0;let C=false;for(let D=0;D<Ke.length;D++){if(C)break;if(!et[D])continue;const _=Ke[D];if(!_)continue;const ne=_.type==="added"?_.newLineNumber:_.type==="removed"?_.oldLineNumber:_.newLineNumber;let oe=" ";let le="grey";if(_.type==="added"){oe="+";le="green"}else if(_.type==="removed"){oe="-";le="red"}const de=wrapLineToWidth(_.text,qe);for(let _=0;_<de.length;_++){if(y>=Je){C=true;break}const Ae=de[_];const pe=_===0;const Ee=`${D}-${_}`;u.push(j().createElement($.az,{key:Ee,flexDirection:"row"},j().createElement($.EY,{color:"gray"},pe&&ne!==null&&ne!==undefined?String(ne).padStart(4):" "," "),j().createElement($.EY,{color:le},pe?oe:" "," ",Ae)));y++}}if(C){const C=Ke.length;const D=C-y;u.push(j().createElement($.az,{key:"truncated",marginTop:1},!de&&Ce!=null?j().createElement($.EY,{color:"yellow"},"A visualização deste arquivo foi truncada para limitar a altura da tela."," ","Restam aproximadamente ",D," linha(s) não exibidas."," ","Pressione Ctrl+S para ver o conteúdo completo em modo estático."):j().createElement($.EY,{color:"yellow"},"Diff truncado para ",Je," linhas para evitar lentidão e flickering."," ",D," linha(s) adicional(is) não estão sendo exibidas.")))}return u})()))};const DiffView=({oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:_,isCompleted:ne,action:le,maxVisibleLines:de,coreDiffReview:Ae,onApprove:pe,onReject:Ee})=>{const Ce=Ae?Ae.status!=="pending":ne;(0,$.Ge)(((u,y)=>{if(y.return){pe()}if(u==="r"){Ee()}}),{isActive:!Ce});const{diffReviewHeight:Ie}=(0,oe.SB)();const Be=!Ce&&de==null?Ie:de;return j().createElement($.az,{flexDirection:"column"},j().createElement(DiffViewStatic,{oldContent:u,newContent:y,filePath:C,toolName:D,toolParams:_,isCompleted:Ce,action:le,maxVisibleLines:Be}),!Ce&&j().createElement(DiffDecisionHint,null))};const Ee=DiffView;D()}catch(u){D(u)}}))},9433:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const EscapeClearIndicator=()=>j().createElement($.az,null,j().createElement($.EY,{color:"gray"},"Press ESC again to clear."));const oe=EscapeClearIndicator;D()}catch(u){D(u)}}))},7531:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ExitIndicator=()=>j().createElement($.az,null,j().createElement($.EY,{color:"yellow"},"Press Ctrl+C again to exit"));const oe=ExitIndicator;D()}catch(u){D(u)}}))},3003:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(3688);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const Footer=({isAutonomous:u=false})=>{const{cwd:y,branch:C}=(0,ne.q)();const D=u?"AUTO":"APPROVAL";const _=u?"yellow":"gray";return j().createElement($.az,{width:"100%",justifyContent:"space-between"},j().createElement($.EY,null,j().createElement($.EY,{color:"green"},y),C&&j().createElement($.EY,{color:"gray"}," (",C,")")),j().createElement($.EY,{color:_},D))};const le=Footer;D()}catch(u){D(u)}}))},5720:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>pe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(7273);var oe=C(1301);var le=C(4362);var de=C(8225);var Ae=u([$]);$=(Ae.then?(await Ae)():Ae)[0];const Input=({value:u,onChange:y,onSubmit:C,searchFiles:D,isShellActive:Ae=false,setShowEscapeClear:pe,isActive:Ee,isAutonomous:Ce=false})=>{const[Ie,Be]=(0,_.useState)(new ne.a(u));const[De,xe]=(0,_.useState)([]);const[Fe,_e]=(0,_.useState)([]);const[Le,ze]=(0,_.useState)(1);(0,_.useEffect)((()=>{Be((y=>{if(y.value===u)return y;return new ne.a(u)}))}),[u]);const[qe,Je]=(0,_.useState)(-1);const[Ke,et]=(0,_.useState)(null);const tt=(0,le.P)();const[rt,nt]=(0,_.useState)(null);(0,_.useEffect)((()=>{const fetchSuggestions=async()=>{const u=Ie.value;if(u.startsWith("/")){et("magic");const y=u.slice(1);const C=tt.filter((u=>u.startsWith(y))).slice(0,5);xe(C);Je(C.length>0?0:-1)}else if(u.includes("@")){et("file");const y=u.lastIndexOf("@");const C=u.substring(y+1);if(C.length>0){const u=await D(`**/*${C}*`,{ignore:["**/node_modules/**","**/.git/**","**/dist/**"]});xe(u.slice(0,5));Je(u.length>0?0:-1)}else{xe([])}}else{et(null);xe([])}};fetchSuggestions()}),[Ie.value,D,tt]);(0,$.Ge)(((u,D)=>{if(process.env["STK_DEBUG_INPUT"]==="1"){console.error("[STK_DEBUG_INPUT]",{rawInput:u,key:D})}const _=Ie.clone();let j=false;const $=typeof u==="string"&&!D.return&&(u.length>1||u.includes("\n")||u.includes("\r"));if(D.escape){if(rt){clearTimeout(rt);nt(null);pe(false);Be(new ne.a(""));xe([]);Je(-1);_e([]);ze(1)}else{pe(true);const u=setTimeout((()=>{nt(null);pe(false)}),800);nt(u)}return}if(De.length>0){if(D.upArrow){Je((u=>(u-1+De.length)%De.length));return}if(D.downArrow){Je((u=>(u+1)%De.length));return}if(D.tab||D.return){const u=De[qe>-1?qe:0];if(u){let y="";if(Ke==="magic"){y=`/${u}`}else if(Ke==="file"){const C=Ie.value.lastIndexOf("@");y=Ie.value.substring(0,C+1)+u+" "}Be(new ne.a(y));xe([]);Je(-1);et(null)}return}}if(D.meta){if(u==="f")_.moveCursorWordRight();else if(u==="b")_.moveCursorWordLeft()}else if(D.ctrl&&(u==="v"||u==="")){(async()=>{const u=await(0,de.F)();if(!u){return}_e((y=>{const C=Le;const D=[...y,{id:C,base64:u.base64,mimeType:u.mimeType}];return D}));const C=`[IMG#${Le}]`;const D=Ie.clone();D.insertText(C);Be(D);y(D.value);ze((u=>u+1))})();return}else if(D.ctrl&&u==="j"){_.insert("\n");j=true}else if(D.ctrl){if(u==="a")_.moveCursorToStart();else if(u==="e")_.moveCursorToEnd()}else if(D.leftArrow)_.moveCursorLeft();else if(D.rightArrow)_.moveCursorRight();else if((0,oe.g)(D)){const u=_.value;const C=_.cursorPosition;const D=u.slice(0,C);const $=D.match(/\[IMG#(\d+)\]$/);if($){const D=$[0].length;const _=C-D;const oe=u.slice(0,_)+u.slice(C);const le=new ne.a(oe);le.moveCursorToStart();for(let u=0;u<_;u++)le.moveCursorRight();_e((u=>u.filter((u=>u.id!==Number($[1])))));Be(le);y(le.value);j=false;return}_.backspace();j=true}else if((0,oe.O)()){const u=_.value;const C=_.cursorPosition;const D=u.slice(C);const $=D.match(/^\[IMG#(\d+)\]/);if($){const D=$[0].length;const _=u.slice(0,C)+u.slice(C+D);const oe=new ne.a(_);oe.moveCursorToStart();for(let u=0;u<C;u++)oe.moveCursorRight();_e((u=>u.filter((u=>u.id!==Number($[1])))));Be(oe);y(oe.value);j=false;return}_.delete();j=true}else if($&&u){const y=u.replace(/\r\n/g,"\n").replace(/\r/g,"\n");_.insertText(y);j=true}else if(D.return&&D.shift){_.insert("\n");j=true}else if(D.return){const u=Fe.length>0?{images:Fe.map((u=>({base64:u.base64,mimeType:u.mimeType})))}:undefined;C(Ie.value,u);if(Ie.value!==""){Be(new ne.a(""))}_e([]);ze(1);return}else if(u){for(const y of u){_.insert(y)}j=true}if(j){if($){xe([]);Je(-1);et(null)}Be(_);y(_.value)}else{Be(_)}}),{isActive:Ee});const CustomTextInput=({buffer:u})=>{const y=u.value;const C=u.cursorPosition;const D=y.slice(0,C);const _=y.slice(C,C+1);const ne=y.slice(C+1);if(_==="\n"){return j().createElement($.EY,null,D,j().createElement($.EY,{inverse:true}," "),"",ne)}const oe=_||" ";return j().createElement($.EY,null,D,j().createElement($.EY,{inverse:true},oe),ne)};return j().createElement($.az,{flexDirection:"column"},De.length>0&&j().createElement($.az,{flexDirection:"column",borderStyle:"single",paddingX:1},j().createElement($.EY,{bold:true},"Suggestions"),De.map(((u,y)=>j().createElement($.EY,{key:u,color:y===qe?"blue":"white"},y===qe?"> ":" ",u)))),j().createElement($.az,{flexDirection:"column",borderStyle:"single",borderColor:Ce?"yellow":undefined,paddingX:1},Fe.length>0&&j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"green"},Fe.length," imagem(s) anexada(s): ",Fe.map((u=>`[IMG#${u.id}]`)).join(" "))),j().createElement($.az,{flexDirection:"row"},j().createElement($.az,{marginRight:1},j().createElement($.EY,{color:Ae?"yellow":"cyan"},Ae?"(shell)$":">")),j().createElement($.az,{flexGrow:1},j().createElement(CustomTextInput,{buffer:Ie})))))};const pe=j().memo(Input);D()}catch(u){D(u)}}))},1808:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{P:()=>LimitedHeightBox});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(1825);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const LimitedHeightBox=({maxRatio:u=.6,minLines:y=5,children:C,...D})=>{(0,ne.SB)();return j().createElement($.az,{flexDirection:"column",...D},C)};var le=null&&LimitedHeightBox;D()}catch(u){D(u)}}))},9577:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{e:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(3610);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const CodeBlock=({content:u,language:y})=>j().createElement($.az,{flexDirection:"column",marginBottom:1,borderStyle:"round",borderColor:"cyan"},y&&j().createElement($.az,{paddingX:1,paddingTop:0,paddingBottom:0},j().createElement($.EY,{color:"cyanBright"},y)),j().createElement($.az,{paddingX:1,paddingBottom:0,paddingTop:y?0:0},j().createElement($.EY,null,u)));const renderInlineAgentText=u=>{const y=(0,ne.y)(u??"");if(!y.length){return j().createElement($.EY,null,u)}return j().createElement($.EY,null,y.map(((u,y)=>u.type==="code"?j().createElement($.EY,{key:`code-${y}`,color:"#ff7bda"},u.content):j().createElement($.EY,{key:`text-${y}`},u.content))))};const Message=({message:u,activeShellCommand:y,childProcess:C,handleShellCompletion:D,context:_="live"})=>{if(u.sender==="user"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"yellowBright"},"> ",u.text))}if(u.sender==="agent_thought"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"gray",italic:true},u.text))}if(u.sender==="agent"){if(process.env["STK_DEBUG_AGENT_STREAM"]==="1"){console.log("[agent-render]",JSON.stringify(u.text))}if(u.highlightedBlock){return j().createElement(CodeBlock,{content:u.highlightedBlock.content,language:u.highlightedBlock.language})}return j().createElement($.az,{marginBottom:1},renderInlineAgentText(u.text))}if(u.sender==="agent_error"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"red"},u.text))}if(u.sender==="system"){return j().createElement($.az,{marginBottom:1},j().createElement($.EY,{color:"gray"},u.text))}if(u.sender==="tool_execution"){return null}return null};const le=j().memo(Message);D()}catch(u){D(u)}}))},4649:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ShellConfirmation=({command:u,onApprove:y,onReject:C})=>{(0,$.Ge)(((u,D)=>{if(u.toLowerCase()==="y"){y()}else if(u.toLowerCase()==="n"){C()}}));return j().createElement($.az,{flexDirection:"column",padding:1,borderColor:"yellow",borderStyle:"round"},j().createElement($.EY,null,"The agent wants to run the following shell command:"),j().createElement($.az,{marginTop:1,paddingX:1,borderStyle:"round",borderColor:"gray"},j().createElement($.EY,null,u)),j().createElement($.az,{marginTop:1},j().createElement($.EY,{color:"yellow"},"Do you want to run this command? (y/n)")))};const oe=ShellConfirmation;D()}catch(u){D(u)}}))},4978:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=u([$]);$=(ne.then?(await ne)():ne)[0];const ShellExecution=({command:u,childProcess:y,onComplete:C,coreShellRun:D})=>{const _=D?.status??"running";const ne=D?.visibleOutput??[D?.stdout,D?.stderr].filter(Boolean).join("\n");const oe=ne?ne.split("\n"):[];const le=D?.isVisuallyTruncated&&D.visibleLinesCount!=null&&D.totalLines!=null;return j().createElement($.az,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1},j().createElement($.EY,{color:"white"},"$ ",u),j().createElement($.EY,{color:"gray"},"Status: ",_),le&&j().createElement($.EY,{color:"yellow"},"A saída deste comando é muito longa; mostrando últimas ",D.visibleLinesCount," de ",D.totalLines," linhas."),oe.length>0?j().createElement(j().Fragment,null,oe.map(((u,y)=>j().createElement($.EY,{key:y},u)))):j().createElement($.EY,{color:"gray"},"Aguardando saída do comando..."))};const oe=ShellExecution;D()}catch(u){D(u)}}))},3036:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C.n(_);var $=C(8518);var ne=C(1911);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const ToolExecution=({toolName:u,toolParams:y,status:C})=>{const D=C==="finished"||C==="completed";const _=D?"✓":"·";const oe=D?"green":"yellow";const le=(0,ne.M)(u,y);return j().createElement($.az,null,j().createElement($.EY,{color:"gray"},j().createElement($.EY,{color:oe},_)," ",le))};const le=ToolExecution;D()}catch(u){D(u)}}))},2973:(u,y,C)=>{C.d(y,{$:()=>D});class Config{WORKSPACE_DIR;BACKEND_URL;CURRENT_VERSION;DISABLE_RIPGREP;constructor(){this.WORKSPACE_DIR=process.env["CLI_WORKSPACE_DIR"]||process.cwd();this.BACKEND_URL=process.env["CLI_BACKEND_URL"]||"https://labs-codegen-api.dev.stackspot.com";this.CURRENT_VERSION="1.0.9";this.DISABLE_RIPGREP=(process.env["CLI_DISABLE_RIPGREP"]||"").toLowerCase()==="true"}}const D=new Config},3688:(u,y,C)=>{C.d(y,{q:()=>useGitInfo});var D=C(7919);var _=C.n(D);var j=C(9896);var $=C.n(j);var ne=C(5317);var oe=C.n(ne);const isGitRepo=()=>{try{(0,ne.execSync)("git rev-parse --is-inside-work-tree",{stdio:["ignore","ignore","ignore"]});return true}catch{return false}};const useGitInfo=()=>{const[u,y]=(0,D.useState)("");const[C,_]=(0,D.useState)(false);(0,D.useEffect)((()=>{const getGitBranch=()=>{if(!isGitRepo())return"";try{return(0,ne.execSync)("git rev-parse --abbrev-ref HEAD",{stdio:["ignore","pipe","ignore"]}).toString().trim()}catch(u){return""}};y(getGitBranch());_($().existsSync("CODEGEN.md"))}),[]);return{cwd:process.cwd(),branch:u,hasCodegenSpec:C}}},1298:(u,y,C)=>{C.d(y,{f:()=>useAgent});var D=C(7919);var _=C(2977);var j=C(6928);var $=C.n(j);var ne=C(1943);var oe=C(2973);const ReadFile=async u=>{const{file_path:y,offset:C,limit:D}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);let _=await(0,ne.readFile)(u,"utf-8");const j=_.split("\n");let le=false;let de;let Ae;if(C!==undefined&&D!==undefined){Ae=j.length;const u=C;const y=Math.min(C+D,j.length);_=j.slice(u,y).join("\n");le=y<j.length;de=[u+1,y]}if(le){return{content:`\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines ${de[0]}-${de[1]} of ${Ae} total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'ReadFile' call. For example, to read the next section of the file, use offset: ${de[1]}.\n\n--- FILE CONTENT (truncated) ---\n${_}`}}return{content:_}}catch(u){return{error:u.message}}};const ReadFolder=async u=>{const{dir_path:y=".",ignore:C}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);const D=await(0,ne.readdir)(u,{withFileTypes:true});const _=[];for(const y of D){if(C&&C.some((u=>new RegExp(u).test(y.name)))){continue}const D=$().join(u,y.name);const j=await(0,ne.stat)(D);_.push({name:y.name,path:D,isDirectory:y.isDirectory(),size:j.size,modifiedTime:j.mtime})}_.sort(((u,y)=>{if(u.isDirectory&&!y.isDirectory)return-1;if(!u.isDirectory&&y.isDirectory)return 1;return u.name.localeCompare(y.name)}));const j=_.map((u=>`${u.isDirectory?"[DIR] ":""}${u.name}`)).join("\n");return{llmContent:`Directory listing for ${u}:\n${j}`,returnDisplay:`Listed ${_.length} item(s).`}}catch(u){return{error:u.message}}};const Shell=async u=>Promise.resolve({command:u.command,directory:u.dir_path,stdout:"(empty)",stderr:"(This command was executed interactively)",error:"(none)",exitCode:0});const balanced=(u,y,C)=>{const D=u instanceof RegExp?maybeMatch(u,C):u;const _=y instanceof RegExp?maybeMatch(y,C):y;const j=D!==null&&_!=null&&range(D,_,C);return j&&{start:j[0],end:j[1],pre:C.slice(0,j[0]),body:C.slice(j[0]+D.length,j[1]),post:C.slice(j[1]+_.length)}};const maybeMatch=(u,y)=>{const C=y.match(u);return C?C[0]:null};const range=(u,y,C)=>{let D,_,j,$=undefined,ne;let oe=C.indexOf(u);let le=C.indexOf(y,oe+1);let de=oe;if(oe>=0&&le>0){if(u===y){return[oe,le]}D=[];j=C.length;while(de>=0&&!ne){if(de===oe){D.push(de);oe=C.indexOf(u,de+1)}else if(D.length===1){const u=D.pop();if(u!==undefined)ne=[u,le]}else{_=D.pop();if(_!==undefined&&_<j){j=_;$=le}le=C.indexOf(y,de+1)}de=oe<le&&oe>=0?oe:le}if(D.length&&$!==undefined){ne=[j,$]}}return ne};const le="\0SLASH"+Math.random()+"\0";const de="\0OPEN"+Math.random()+"\0";const Ae="\0CLOSE"+Math.random()+"\0";const pe="\0COMMA"+Math.random()+"\0";const Ee="\0PERIOD"+Math.random()+"\0";const Ce=new RegExp(le,"g");const Ie=new RegExp(de,"g");const Be=new RegExp(Ae,"g");const De=new RegExp(pe,"g");const xe=new RegExp(Ee,"g");const Fe=/\\\\/g;const _e=/\\{/g;const Le=/\\}/g;const ze=/\\,/g;const qe=/\\./g;function numeric(u){return!isNaN(u)?parseInt(u,10):u.charCodeAt(0)}function escapeBraces(u){return u.replace(Fe,le).replace(_e,de).replace(Le,Ae).replace(ze,pe).replace(qe,Ee)}function unescapeBraces(u){return u.replace(Ce,"\\").replace(Ie,"{").replace(Be,"}").replace(De,",").replace(xe,".")}function parseCommaParts(u){if(!u){return[""]}const y=[];const C=balanced("{","}",u);if(!C){return u.split(",")}const{pre:D,body:_,post:j}=C;const $=D.split(",");$[$.length-1]+="{"+_+"}";const ne=parseCommaParts(j);if(j.length){$[$.length-1]+=ne.shift();$.push.apply($,ne)}y.push.apply(y,$);return y}function expand(u){if(!u){return[]}if(u.slice(0,2)==="{}"){u="\\{\\}"+u.slice(2)}return expand_(escapeBraces(u),true).map(unescapeBraces)}function embrace(u){return"{"+u+"}"}function isPadded(u){return/^-?0\d/.test(u)}function lte(u,y){return u<=y}function gte(u,y){return u>=y}function expand_(u,y){const C=[];const D=balanced("{","}",u);if(!D)return[u];const _=D.pre;const j=D.post.length?expand_(D.post,false):[""];if(/\$$/.test(D.pre)){for(let u=0;u<j.length;u++){const y=_+"{"+D.body+"}"+j[u];C.push(y)}}else{const $=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body);const ne=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body);const oe=$||ne;const le=D.body.indexOf(",")>=0;if(!oe&&!le){if(D.post.match(/,(?!,).*\}/)){u=D.pre+"{"+D.body+Ae+D.post;return expand_(u)}return[u]}let de;if(oe){de=D.body.split(/\.\./)}else{de=parseCommaParts(D.body);if(de.length===1&&de[0]!==undefined){de=expand_(de[0],false).map(embrace);if(de.length===1){return j.map((u=>D.pre+de[0]+u))}}}let pe;if(oe&&de[0]!==undefined&&de[1]!==undefined){const u=numeric(de[0]);const y=numeric(de[1]);const C=Math.max(de[0].length,de[1].length);let D=de.length===3&&de[2]!==undefined?Math.abs(numeric(de[2])):1;let _=lte;const j=y<u;if(j){D*=-1;_=gte}const $=de.some(isPadded);pe=[];for(let j=u;_(j,y);j+=D){let u;if(ne){u=String.fromCharCode(j);if(u==="\\"){u=""}}else{u=String(j);if($){const y=C-u.length;if(y>0){const C=new Array(y+1).join("0");if(j<0){u="-"+C+u.slice(1)}else{u=C+u}}}}pe.push(u)}}else{pe=[];for(let u=0;u<de.length;u++){pe.push.apply(pe,expand_(de[u],false))}}for(let u=0;u<pe.length;u++){for(let D=0;D<j.length;D++){const $=_+pe[u]+j[D];if(!y||oe||$){C.push($)}}}}return C}const Je=1024*64;const assertValidPattern=u=>{if(typeof u!=="string"){throw new TypeError("invalid pattern")}if(u.length>Je){throw new TypeError("pattern is too long")}};const Ke={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=u=>u.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=u=>u.join("");const parseClass=(u,y)=>{const C=y;if(u.charAt(C)!=="["){throw new Error("not in a brace expression")}const D=[];const _=[];let j=C+1;let $=false;let ne=false;let oe=false;let le=false;let de=C;let Ae="";e:while(j<u.length){const y=u.charAt(j);if((y==="!"||y==="^")&&j===C+1){le=true;j++;continue}if(y==="]"&&$&&!oe){de=j+1;break}$=true;if(y==="\\"){if(!oe){oe=true;j++;continue}}if(y==="["&&!oe){for(const[y,[$,oe,le]]of Object.entries(Ke)){if(u.startsWith(y,j)){if(Ae){return["$.",false,u.length-C,true]}j+=y.length;if(le)_.push($);else D.push($);ne=ne||oe;continue e}}}oe=false;if(Ae){if(y>Ae){D.push(braceEscape(Ae)+"-"+braceEscape(y))}else if(y===Ae){D.push(braceEscape(y))}Ae="";j++;continue}if(u.startsWith("-]",j+1)){D.push(braceEscape(y+"-"));j+=2;continue}if(u.startsWith("-",j+1)){Ae=y;j+=2;continue}D.push(braceEscape(y));j++}if(de<j){return["",false,0,false]}if(!D.length&&!_.length){return["$.",false,u.length-C,true]}if(_.length===0&&D.length===1&&/^\\?.$/.test(D[0])&&!le){const u=D[0].length===2?D[0].slice(-1):D[0];return[regexpEscape(u),false,de-C,false]}const pe="["+(le?"^":"")+rangesToString(D)+"]";const Ee="["+(le?"":"^")+rangesToString(_)+"]";const Ce=D.length&&_.length?"("+pe+"|"+Ee+")":D.length?pe:Ee;return[Ce,ne,de-C,true]};const unescape_unescape=(u,{windowsPathsNoEscape:y=false,magicalBraces:C=true}={})=>{if(C){return y?u.replace(/\[([^\/\\])\]/g,"$1"):u.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")}return y?u.replace(/\[([^\/\\{}])\]/g,"$1"):u.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1")};const et=new Set(["!","?","+","*","@"]);const isExtglobType=u=>et.has(u);const tt="(?!(?:^|/)\\.\\.?(?:$|/))";const rt="(?!\\.)";const nt=new Set(["[","."]);const it=new Set(["..","."]);const st=new Set("().*{}+?[]^$\\!");const regExpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const ot="[^/]";const at=ot+"*?";const lt=ot+"+?";class AST{type;#e;#t;#r=false;#n=[];#i;#s;#o;#a=false;#l;#c;#u=false;constructor(u,y,C={}){this.type=u;if(u)this.#t=true;this.#i=y;this.#e=this.#i?this.#i.#e:this;this.#l=this.#e===this?C:this.#e.#l;this.#o=this.#e===this?[]:this.#e.#o;if(u==="!"&&!this.#e.#a)this.#o.push(this);this.#s=this.#i?this.#i.#n.length:0}get hasMagic(){if(this.#t!==undefined)return this.#t;for(const u of this.#n){if(typeof u==="string")continue;if(u.type||u.hasMagic)return this.#t=true}return this.#t}toString(){if(this.#c!==undefined)return this.#c;if(!this.type){return this.#c=this.#n.map((u=>String(u))).join("")}else{return this.#c=this.type+"("+this.#n.map((u=>String(u))).join("|")+")"}}#f(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString();this.#a=true;let u;while(u=this.#o.pop()){if(u.type!=="!")continue;let y=u;let C=y.#i;while(C){for(let D=y.#s+1;!C.type&&D<C.#n.length;D++){for(const y of u.#n){if(typeof y==="string"){throw new Error("string part in extglob AST??")}y.copyIn(C.#n[D])}}y=C;C=y.#i}}return this}push(...u){for(const y of u){if(y==="")continue;if(typeof y!=="string"&&!(y instanceof AST&&y.#i===this)){throw new Error("invalid part: "+y)}this.#n.push(y)}}toJSON(){const u=this.type===null?this.#n.slice().map((u=>typeof u==="string"?u:u.toJSON())):[this.type,...this.#n.map((u=>u.toJSON()))];if(this.isStart()&&!this.type)u.unshift([]);if(this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")){u.push({})}return u}isStart(){if(this.#e===this)return true;if(!this.#i?.isStart())return false;if(this.#s===0)return true;const u=this.#i;for(let y=0;y<this.#s;y++){const C=u.#n[y];if(!(C instanceof AST&&C.type==="!")){return false}}return true}isEnd(){if(this.#e===this)return true;if(this.#i?.type==="!")return true;if(!this.#i?.isEnd())return false;if(!this.type)return this.#i?.isEnd();const u=this.#i?this.#i.#n.length:0;return this.#s===u-1}copyIn(u){if(typeof u==="string")this.push(u);else this.push(u.clone(this))}clone(u){const y=new AST(this.type,u);for(const u of this.#n){y.copyIn(u)}return y}static#d(u,y,C,D){let _=false;let j=false;let $=-1;let ne=false;if(y.type===null){let oe=C;let le="";while(oe<u.length){const C=u.charAt(oe++);if(_||C==="\\"){_=!_;le+=C;continue}if(j){if(oe===$+1){if(C==="^"||C==="!"){ne=true}}else if(C==="]"&&!(oe===$+2&&ne)){j=false}le+=C;continue}else if(C==="["){j=true;$=oe;ne=false;le+=C;continue}if(!D.noext&&isExtglobType(C)&&u.charAt(oe)==="("){y.push(le);le="";const _=new AST(C,y);oe=AST.#d(u,_,oe,D);y.push(_);continue}le+=C}y.push(le);return oe}let oe=C+1;let le=new AST(null,y);const de=[];let Ae="";while(oe<u.length){const C=u.charAt(oe++);if(_||C==="\\"){_=!_;Ae+=C;continue}if(j){if(oe===$+1){if(C==="^"||C==="!"){ne=true}}else if(C==="]"&&!(oe===$+2&&ne)){j=false}Ae+=C;continue}else if(C==="["){j=true;$=oe;ne=false;Ae+=C;continue}if(isExtglobType(C)&&u.charAt(oe)==="("){le.push(Ae);Ae="";const y=new AST(C,le);le.push(y);oe=AST.#d(u,y,oe,D);continue}if(C==="|"){le.push(Ae);Ae="";de.push(le);le=new AST(null,y);continue}if(C===")"){if(Ae===""&&y.#n.length===0){y.#u=true}le.push(Ae);Ae="";y.push(...de,le);return oe}Ae+=C}y.type=null;y.#t=undefined;y.#n=[u.substring(C-1)];return oe}static fromGlob(u,y={}){const C=new AST(null,undefined,y);AST.#d(u,C,0,y);return C}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const u=this.toString();const[y,C,D,_]=this.toRegExpSource();const j=D||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&u.toUpperCase()!==u.toLowerCase();if(!j){return C}const $=(this.#l.nocase?"i":"")+(_?"u":"");return Object.assign(new RegExp(`^${y}$`,$),{_src:y,_glob:u})}get options(){return this.#l}toRegExpSource(u){const y=u??!!this.#l.dot;if(this.#e===this)this.#f();if(!this.type){const C=this.isStart()&&this.isEnd()&&!this.#n.some((u=>typeof u!=="string"));const D=this.#n.map((y=>{const[D,_,j,$]=typeof y==="string"?AST.#A(y,this.#t,C):y.toRegExpSource(u);this.#t=this.#t||j;this.#r=this.#r||$;return D})).join("");let _="";if(this.isStart()){if(typeof this.#n[0]==="string"){const C=this.#n.length===1&&it.has(this.#n[0]);if(!C){const C=nt;const j=y&&C.has(D.charAt(0))||D.startsWith("\\.")&&C.has(D.charAt(2))||D.startsWith("\\.\\.")&&C.has(D.charAt(4));const $=!y&&!u&&C.has(D.charAt(0));_=j?tt:$?rt:""}}}let j="";if(this.isEnd()&&this.#e.#a&&this.#i?.type==="!"){j="(?:$|\\/)"}const $=_+D+j;return[$,unescape_unescape(D),this.#t=!!this.#t,this.#r]}const C=this.type==="*"||this.type==="+";const D=this.type==="!"?"(?:(?!(?:":"(?:";let _=this.#h(y);if(this.isStart()&&this.isEnd()&&!_&&this.type!=="!"){const u=this.toString();this.#n=[u];this.type=null;this.#t=undefined;return[u,unescape_unescape(this.toString()),false,false]}let j=!C||u||y||!rt?"":this.#h(true);if(j===_){j=""}if(j){_=`(?:${_})(?:${j})*?`}let $="";if(this.type==="!"&&this.#u){$=(this.isStart()&&!y?rt:"")+lt}else{const C=this.type==="!"?"))"+(this.isStart()&&!y&&!u?rt:"")+at+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&j?")":this.type==="*"&&j?`)?`:`)${this.type}`;$=D+_+C}return[$,unescape_unescape(_),this.#t=!!this.#t,this.#r]}#h(u){return this.#n.map((y=>{if(typeof y==="string"){throw new Error("string type in extglob ast??")}const[C,D,_,j]=y.toRegExpSource(u);this.#r=this.#r||j;return C})).filter((u=>!(this.isStart()&&this.isEnd())||!!u)).join("|")}static#A(u,y,C=false){let D=false;let _="";let j=false;for(let $=0;$<u.length;$++){const ne=u.charAt($);if(D){D=false;_+=(st.has(ne)?"\\":"")+ne;continue}if(ne==="\\"){if($===u.length-1){_+="\\\\"}else{D=true}continue}if(ne==="["){const[C,D,ne,oe]=parseClass(u,$);if(ne){_+=C;j=j||D;$+=ne-1;y=y||oe;continue}}if(ne==="*"){_+=C&&u==="*"?lt:at;y=true;continue}if(ne==="?"){_+=ot;y=true;continue}_+=regExpEscape(ne)}return[_,unescape_unescape(u),!!y,j]}}const escape_escape=(u,{windowsPathsNoEscape:y=false,magicalBraces:C=false}={})=>{if(C){return y?u.replace(/[?*()[\]{}]/g,"[$&]"):u.replace(/[?*()[\]\\{}]/g,"\\$&")}return y?u.replace(/[?*()[\]]/g,"[$&]"):u.replace(/[?*()[\]\\]/g,"\\$&")};const minimatch=(u,y,C={})=>{assertValidPattern(y);if(!C.nocomment&&y.charAt(0)==="#"){return false}return new Minimatch(y,C).match(u)};const ct=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=u=>y=>!y.startsWith(".")&&y.endsWith(u);const starDotExtTestDot=u=>y=>y.endsWith(u);const starDotExtTestNocase=u=>{u=u.toLowerCase();return y=>!y.startsWith(".")&&y.toLowerCase().endsWith(u)};const starDotExtTestNocaseDot=u=>{u=u.toLowerCase();return y=>y.toLowerCase().endsWith(u)};const ut=/^\*+\.\*+$/;const starDotStarTest=u=>!u.startsWith(".")&&u.includes(".");const starDotStarTestDot=u=>u!=="."&&u!==".."&&u.includes(".");const ft=/^\.\*+$/;const dotStarTest=u=>u!=="."&&u!==".."&&u.startsWith(".");const dt=/^\*+$/;const starTest=u=>u.length!==0&&!u.startsWith(".");const starTestDot=u=>u.length!==0&&u!=="."&&u!=="..";const At=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([u,y=""])=>{const C=qmarksTestNoExt([u]);if(!y)return C;y=y.toLowerCase();return u=>C(u)&&u.toLowerCase().endsWith(y)};const qmarksTestNocaseDot=([u,y=""])=>{const C=qmarksTestNoExtDot([u]);if(!y)return C;y=y.toLowerCase();return u=>C(u)&&u.toLowerCase().endsWith(y)};const qmarksTestDot=([u,y=""])=>{const C=qmarksTestNoExtDot([u]);return!y?C:u=>C(u)&&u.endsWith(y)};const qmarksTest=([u,y=""])=>{const C=qmarksTestNoExt([u]);return!y?C:u=>C(u)&&u.endsWith(y)};const qmarksTestNoExt=([u])=>{const y=u.length;return u=>u.length===y&&!u.startsWith(".")};const qmarksTestNoExtDot=([u])=>{const y=u.length;return u=>u.length===y&&u!=="."&&u!==".."};const ht=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const pt={win32:{sep:"\\"},posix:{sep:"/"}};const gt=ht==="win32"?pt.win32.sep:pt.posix.sep;minimatch.sep=gt;const mt=Symbol("globstar **");minimatch.GLOBSTAR=mt;const yt="[^/]";const Et=yt+"*?";const Ct="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const It="(?:(?!(?:\\/|^)\\.).)*?";const esm_filter=(u,y={})=>C=>minimatch(C,u,y);minimatch.filter=esm_filter;const ext=(u,y={})=>Object.assign({},u,y);const defaults=u=>{if(!u||typeof u!=="object"||!Object.keys(u).length){return minimatch}const y=minimatch;const m=(C,D,_={})=>y(C,D,ext(u,_));return Object.assign(m,{Minimatch:class Minimatch extends y.Minimatch{constructor(y,C={}){super(y,ext(u,C))}static defaults(C){return y.defaults(ext(u,C)).Minimatch}},AST:class AST extends y.AST{constructor(y,C,D={}){super(y,C,ext(u,D))}static fromGlob(C,D={}){return y.AST.fromGlob(C,ext(u,D))}},unescape:(C,D={})=>y.unescape(C,ext(u,D)),escape:(C,D={})=>y.escape(C,ext(u,D)),filter:(C,D={})=>y.filter(C,ext(u,D)),defaults:C=>y.defaults(ext(u,C)),makeRe:(C,D={})=>y.makeRe(C,ext(u,D)),braceExpand:(C,D={})=>y.braceExpand(C,ext(u,D)),match:(C,D,_={})=>y.match(C,D,ext(u,_)),sep:y.sep,GLOBSTAR:mt})};minimatch.defaults=defaults;const braceExpand=(u,y={})=>{assertValidPattern(u);if(y.nobrace||!/\{(?:(?!\{).)*\}/.test(u)){return[u]}return expand(u)};minimatch.braceExpand=braceExpand;const makeRe=(u,y={})=>new Minimatch(u,y).makeRe();minimatch.makeRe=makeRe;const match=(u,y,C={})=>{const D=new Minimatch(y,C);u=u.filter((u=>D.match(u)));if(D.options.nonull&&!u.length){u.push(y)}return u};minimatch.match=match;const bt=/[?*]|[+@!]\(.*?\)|\[|\]/;const esm_regExpEscape=u=>u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(u,y={}){assertValidPattern(u);y=y||{};this.options=y;this.pattern=u;this.platform=y.platform||ht;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!y.windowsPathsNoEscape||y.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!y.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!y.nonegate;this.comment=false;this.empty=false;this.partial=!!y.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=y.windowsNoMagicRoot!==undefined?y.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const u of this.set){for(const y of u){if(typeof y!=="string")return true}}return false}debug(...u){}make(){const u=this.pattern;const y=this.options;if(!y.nocomment&&u.charAt(0)==="#"){this.comment=true;return}if(!u){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(y.debug){this.debug=(...u)=>console.error(...u)}this.debug(this.pattern,this.globSet);const C=this.globSet.map((u=>this.slashSplit(u)));this.globParts=this.preprocess(C);this.debug(this.pattern,this.globParts);let D=this.globParts.map(((u,y,C)=>{if(this.isWindows&&this.windowsNoMagicRoot){const y=u[0]===""&&u[1]===""&&(u[2]==="?"||!bt.test(u[2]))&&!bt.test(u[3]);const C=/^[a-z]:/i.test(u[0]);if(y){return[...u.slice(0,4),...u.slice(4).map((u=>this.parse(u)))]}else if(C){return[u[0],...u.slice(1).map((u=>this.parse(u)))]}}return u.map((u=>this.parse(u)))}));this.debug(this.pattern,D);this.set=D.filter((u=>u.indexOf(false)===-1));if(this.isWindows){for(let u=0;u<this.set.length;u++){const y=this.set[u];if(y[0]===""&&y[1]===""&&this.globParts[u][2]==="?"&&typeof y[3]==="string"&&/^[a-z]:$/i.test(y[3])){y[2]="?"}}}this.debug(this.pattern,this.set)}preprocess(u){if(this.options.noglobstar){for(let y=0;y<u.length;y++){for(let C=0;C<u[y].length;C++){if(u[y][C]==="**"){u[y][C]="*"}}}}const{optimizationLevel:y=1}=this.options;if(y>=2){u=this.firstPhasePreProcess(u);u=this.secondPhasePreProcess(u)}else if(y>=1){u=this.levelOneOptimize(u)}else{u=this.adjascentGlobstarOptimize(u)}return u}adjascentGlobstarOptimize(u){return u.map((u=>{let y=-1;while(-1!==(y=u.indexOf("**",y+1))){let C=y;while(u[C+1]==="**"){C++}if(C!==y){u.splice(y,C-y)}}return u}))}levelOneOptimize(u){return u.map((u=>{u=u.reduce(((u,y)=>{const C=u[u.length-1];if(y==="**"&&C==="**"){return u}if(y===".."){if(C&&C!==".."&&C!=="."&&C!=="**"){u.pop();return u}}u.push(y);return u}),[]);return u.length===0?[""]:u}))}levelTwoFileOptimize(u){if(!Array.isArray(u)){u=this.slashSplit(u)}let y=false;do{y=false;if(!this.preserveMultipleSlashes){for(let C=1;C<u.length-1;C++){const D=u[C];if(C===1&&D===""&&u[0]==="")continue;if(D==="."||D===""){y=true;u.splice(C,1);C--}}if(u[0]==="."&&u.length===2&&(u[1]==="."||u[1]==="")){y=true;u.pop()}}let C=0;while(-1!==(C=u.indexOf("..",C+1))){const D=u[C-1];if(D&&D!=="."&&D!==".."&&D!=="**"){y=true;u.splice(C-1,2);C-=2}}}while(y);return u.length===0?[""]:u}firstPhasePreProcess(u){let y=false;do{y=false;for(let C of u){let D=-1;while(-1!==(D=C.indexOf("**",D+1))){let _=D;while(C[_+1]==="**"){_++}if(_>D){C.splice(D+1,_-D)}let j=C[D+1];const $=C[D+2];const ne=C[D+3];if(j!=="..")continue;if(!$||$==="."||$===".."||!ne||ne==="."||ne===".."){continue}y=true;C.splice(D,1);const oe=C.slice(0);oe[D]="**";u.push(oe);D--}if(!this.preserveMultipleSlashes){for(let u=1;u<C.length-1;u++){const D=C[u];if(u===1&&D===""&&C[0]==="")continue;if(D==="."||D===""){y=true;C.splice(u,1);u--}}if(C[0]==="."&&C.length===2&&(C[1]==="."||C[1]==="")){y=true;C.pop()}}let _=0;while(-1!==(_=C.indexOf("..",_+1))){const u=C[_-1];if(u&&u!=="."&&u!==".."&&u!=="**"){y=true;const u=_===1&&C[_+1]==="**";const D=u?["."]:[];C.splice(_-1,2,...D);if(C.length===0)C.push("");_-=2}}}}while(y);return u}secondPhasePreProcess(u){for(let y=0;y<u.length-1;y++){for(let C=y+1;C<u.length;C++){const D=this.partsMatch(u[y],u[C],!this.preserveMultipleSlashes);if(D){u[y]=[];u[C]=D;break}}}return u.filter((u=>u.length))}partsMatch(u,y,C=false){let D=0;let _=0;let j=[];let $="";while(D<u.length&&_<y.length){if(u[D]===y[_]){j.push($==="b"?y[_]:u[D]);D++;_++}else if(C&&u[D]==="**"&&y[_]===u[D+1]){j.push(u[D]);D++}else if(C&&y[_]==="**"&&u[D]===y[_+1]){j.push(y[_]);_++}else if(u[D]==="*"&&y[_]&&(this.options.dot||!y[_].startsWith("."))&&y[_]!=="**"){if($==="b")return false;$="a";j.push(u[D]);D++;_++}else if(y[_]==="*"&&u[D]&&(this.options.dot||!u[D].startsWith("."))&&u[D]!=="**"){if($==="a")return false;$="b";j.push(y[_]);D++;_++}else{return false}}return u.length===y.length&&j}parseNegate(){if(this.nonegate)return;const u=this.pattern;let y=false;let C=0;for(let D=0;D<u.length&&u.charAt(D)==="!";D++){y=!y;C++}if(C)this.pattern=u.slice(C);this.negate=y}matchOne(u,y,C=false){const D=this.options;if(this.isWindows){const C=typeof u[0]==="string"&&/^[a-z]:$/i.test(u[0]);const D=!C&&u[0]===""&&u[1]===""&&u[2]==="?"&&/^[a-z]:$/i.test(u[3]);const _=typeof y[0]==="string"&&/^[a-z]:$/i.test(y[0]);const j=!_&&y[0]===""&&y[1]===""&&y[2]==="?"&&typeof y[3]==="string"&&/^[a-z]:$/i.test(y[3]);const $=D?3:C?0:undefined;const ne=j?3:_?0:undefined;if(typeof $==="number"&&typeof ne==="number"){const[C,D]=[u[$],y[ne]];if(C.toLowerCase()===D.toLowerCase()){y[ne]=C;if(ne>$){y=y.slice(ne)}else if($>ne){u=u.slice($)}}}}const{optimizationLevel:_=1}=this.options;if(_>=2){u=this.levelTwoFileOptimize(u)}this.debug("matchOne",this,{file:u,pattern:y});this.debug("matchOne",u.length,y.length);for(var j=0,$=0,ne=u.length,oe=y.length;j<ne&&$<oe;j++,$++){this.debug("matchOne loop");var le=y[$];var de=u[j];this.debug(y,le,de);if(le===false){return false}if(le===mt){this.debug("GLOBSTAR",[y,le,de]);var Ae=j;var pe=$+1;if(pe===oe){this.debug("** at the end");for(;j<ne;j++){if(u[j]==="."||u[j]===".."||!D.dot&&u[j].charAt(0)===".")return false}return true}while(Ae<ne){var Ee=u[Ae];this.debug("\nglobstar while",u,Ae,y,pe,Ee);if(this.matchOne(u.slice(Ae),y.slice(pe),C)){this.debug("globstar found match!",Ae,ne,Ee);return true}else{if(Ee==="."||Ee===".."||!D.dot&&Ee.charAt(0)==="."){this.debug("dot detected!",u,Ae,y,pe);break}this.debug("globstar swallow a segment, and continue");Ae++}}if(C){this.debug("\n>>> no match, partial?",u,Ae,y,pe);if(Ae===ne){return true}}return false}let _;if(typeof le==="string"){_=de===le;this.debug("string match",le,de,_)}else{_=le.test(de);this.debug("pattern match",le,de,_)}if(!_)return false}if(j===ne&&$===oe){return true}else if(j===ne){return C}else if($===oe){return j===ne-1&&u[j]===""}else{throw new Error("wtf?")}}braceExpand(){return braceExpand(this.pattern,this.options)}parse(u){assertValidPattern(u);const y=this.options;if(u==="**")return mt;if(u==="")return"";let C;let D=null;if(C=u.match(dt)){D=y.dot?starTestDot:starTest}else if(C=u.match(ct)){D=(y.nocase?y.dot?starDotExtTestNocaseDot:starDotExtTestNocase:y.dot?starDotExtTestDot:starDotExtTest)(C[1])}else if(C=u.match(At)){D=(y.nocase?y.dot?qmarksTestNocaseDot:qmarksTestNocase:y.dot?qmarksTestDot:qmarksTest)(C)}else if(C=u.match(ut)){D=y.dot?starDotStarTestDot:starDotStarTest}else if(C=u.match(ft)){D=dotStarTest}const _=AST.fromGlob(u,this.options).toMMPattern();if(D&&typeof _==="object"){Reflect.defineProperty(_,"test",{value:D})}return _}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const u=this.set;if(!u.length){this.regexp=false;return this.regexp}const y=this.options;const C=y.noglobstar?Et:y.dot?Ct:It;const D=new Set(y.nocase?["i"]:[]);let _=u.map((u=>{const y=u.map((u=>{if(u instanceof RegExp){for(const y of u.flags.split(""))D.add(y)}return typeof u==="string"?esm_regExpEscape(u):u===mt?mt:u._src}));y.forEach(((u,D)=>{const _=y[D+1];const j=y[D-1];if(u!==mt||j===mt){return}if(j===undefined){if(_!==undefined&&_!==mt){y[D+1]="(?:\\/|"+C+"\\/)?"+_}else{y[D]=C}}else if(_===undefined){y[D-1]=j+"(?:\\/|\\/"+C+")?"}else if(_!==mt){y[D-1]=j+"(?:\\/|\\/"+C+"\\/)"+_;y[D+1]=mt}}));const _=y.filter((u=>u!==mt));if(this.partial&&_.length>=1){const u=[];for(let y=1;y<=_.length;y++){u.push(_.slice(0,y).join("/"))}return"(?:"+u.join("|")+")"}return _.join("/")})).join("|");const[j,$]=u.length>1?["(?:",")"]:["",""];_="^"+j+_+$+"$";if(this.partial){_="^(?:\\/|"+j+_.slice(1,-1)+$+")$"}if(this.negate)_="^(?!"+_+").+$";try{this.regexp=new RegExp(_,[...D].join(""))}catch(u){this.regexp=false}return this.regexp}slashSplit(u){if(this.preserveMultipleSlashes){return u.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(u)){return["",...u.split(/\/+/)]}else{return u.split(/\/+/)}}match(u,y=this.partial){this.debug("match",u,this.pattern);if(this.comment){return false}if(this.empty){return u===""}if(u==="/"&&y){return true}const C=this.options;if(this.isWindows){u=u.split("\\").join("/")}const D=this.slashSplit(u);this.debug(this.pattern,"split",D);const _=this.set;this.debug(this.pattern,"set",_);let j=D[D.length-1];if(!j){for(let u=D.length-2;!j&&u>=0;u--){j=D[u]}}for(let u=0;u<_.length;u++){const $=_[u];let ne=D;if(C.matchBase&&$.length===1){ne=[j]}const oe=this.matchOne(ne,$,y);if(oe){if(C.flipNegate){return true}return!this.negate}}if(C.flipNegate){return false}return this.negate}static defaults(u){return minimatch.defaults(u).Minimatch}}minimatch.AST=AST;minimatch.Minimatch=Minimatch;minimatch.escape=escape_escape;minimatch.unescape=unescape_unescape;var vt=C(3136);const wt=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const Bt=new Set;const Dt=typeof process==="object"&&!!process?process:{};const emitWarning=(u,y,C,D)=>{typeof Dt.emitWarning==="function"?Dt.emitWarning(u,y,C,D):console.error(`[${C}] ${y}: ${u}`)};let St=globalThis.AbortController;let kt=globalThis.AbortSignal;if(typeof St==="undefined"){kt=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(u,y){this._onabort.push(y)}};St=class AbortController{constructor(){warnACPolyfill()}signal=new kt;abort(u){if(this.signal.aborted)return;this.signal.reason=u;this.signal.aborted=true;for(const y of this.signal._onabort){y(u)}this.signal.onabort?.(u)}};let u=Dt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!u)return;u=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=u=>!Bt.has(u);const Qt=Symbol("type");const isPosInt=u=>u&&u===Math.floor(u)&&u>0&&isFinite(u);const getUintArray=u=>!isPosInt(u)?null:u<=Math.pow(2,8)?Uint8Array:u<=Math.pow(2,16)?Uint16Array:u<=Math.pow(2,32)?Uint32Array:u<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(u){super(u);this.fill(0)}}class Stack{heap;length;static#p=false;static create(u){const y=getUintArray(u);if(!y)return[];Stack.#p=true;const C=new Stack(u,y);Stack.#p=false;return C}constructor(u,y){if(!Stack.#p){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new y(u);this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class LRUCache{#g;#m;#y;#E;#C;#I;#b;#v;get perf(){return this.#v}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#w;#B;#D;#S;#k;#Q;#x;#F;#_;#R;#L;#N;#T;#P;#O;#M;#U;#H;static unsafeExposeInternals(u){return{starts:u.#T,ttls:u.#P,sizes:u.#N,keyMap:u.#D,keyList:u.#S,valList:u.#k,next:u.#Q,prev:u.#x,get head(){return u.#F},get tail(){return u.#_},free:u.#R,isBackgroundFetch:y=>u.#G(y),backgroundFetch:(y,C,D,_)=>u.#W(y,C,D,_),moveToTail:y=>u.#j(y),indexes:y=>u.#z(y),rindexes:y=>u.#$(y),isStale:y=>u.#q(y)}}get max(){return this.#g}get maxSize(){return this.#m}get calculatedSize(){return this.#B}get size(){return this.#w}get fetchMethod(){return this.#I}get memoMethod(){return this.#b}get dispose(){return this.#y}get onInsert(){return this.#E}get disposeAfter(){return this.#C}constructor(u){const{max:y=0,ttl:C,ttlResolution:D=1,ttlAutopurge:_,updateAgeOnGet:j,updateAgeOnHas:$,allowStale:ne,dispose:oe,onInsert:le,disposeAfter:de,noDisposeOnSet:Ae,noUpdateTTL:pe,maxSize:Ee=0,maxEntrySize:Ce=0,sizeCalculation:Ie,fetchMethod:Be,memoMethod:De,noDeleteOnFetchRejection:xe,noDeleteOnStaleGet:Fe,allowStaleOnFetchRejection:_e,allowStaleOnFetchAbort:Le,ignoreFetchAbort:ze,perf:qe}=u;if(qe!==undefined){if(typeof qe?.now!=="function"){throw new TypeError("perf option must have a now() method if specified")}}this.#v=qe??wt;if(y!==0&&!isPosInt(y)){throw new TypeError("max option must be a nonnegative integer")}const Je=y?getUintArray(y):Array;if(!Je){throw new Error("invalid max value: "+y)}this.#g=y;this.#m=Ee;this.maxEntrySize=Ce||this.#m;this.sizeCalculation=Ie;if(this.sizeCalculation){if(!this.#m&&!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(De!==undefined&&typeof De!=="function"){throw new TypeError("memoMethod must be a function if defined")}this.#b=De;if(Be!==undefined&&typeof Be!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#I=Be;this.#M=!!Be;this.#D=new Map;this.#S=new Array(y).fill(undefined);this.#k=new Array(y).fill(undefined);this.#Q=new Je(y);this.#x=new Je(y);this.#F=0;this.#_=0;this.#R=Stack.create(y);this.#w=0;this.#B=0;if(typeof oe==="function"){this.#y=oe}if(typeof le==="function"){this.#E=le}if(typeof de==="function"){this.#C=de;this.#L=[]}else{this.#C=undefined;this.#L=undefined}this.#O=!!this.#y;this.#H=!!this.#E;this.#U=!!this.#C;this.noDisposeOnSet=!!Ae;this.noUpdateTTL=!!pe;this.noDeleteOnFetchRejection=!!xe;this.allowStaleOnFetchRejection=!!_e;this.allowStaleOnFetchAbort=!!Le;this.ignoreFetchAbort=!!ze;if(this.maxEntrySize!==0){if(this.#m!==0){if(!isPosInt(this.#m)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#V()}this.allowStale=!!ne;this.noDeleteOnStaleGet=!!Fe;this.updateAgeOnGet=!!j;this.updateAgeOnHas=!!$;this.ttlResolution=isPosInt(D)||D===0?D:1;this.ttlAutopurge=!!_;this.ttl=C||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#J()}if(this.#g===0&&this.ttl===0&&this.#m===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#g&&!this.#m){const u="LRU_CACHE_UNBOUNDED";if(shouldWarn(u)){Bt.add(u);const y="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(y,"UnboundedCacheWarning",u,LRUCache)}}}getRemainingTTL(u){return this.#D.has(u)?Infinity:0}#J(){const u=new ZeroArray(this.#g);const y=new ZeroArray(this.#g);this.#P=u;this.#T=y;this.#K=(C,D,_=this.#v.now())=>{y[C]=D!==0?_:0;u[C]=D;if(D!==0&&this.ttlAutopurge){const u=setTimeout((()=>{if(this.#q(C)){this.#Y(this.#S[C],"expire")}}),D+1);if(u.unref){u.unref()}}};this.#X=C=>{y[C]=u[C]!==0?this.#v.now():0};this.#Z=(D,_)=>{if(u[_]){const j=u[_];const $=y[_];if(!j||!$)return;D.ttl=j;D.start=$;D.now=C||getNow();const ne=D.now-$;D.remainingTTL=j-ne}};let C=0;const getNow=()=>{const u=this.#v.now();if(this.ttlResolution>0){C=u;const y=setTimeout((()=>C=0),this.ttlResolution);if(y.unref){y.unref()}}return u};this.getRemainingTTL=D=>{const _=this.#D.get(D);if(_===undefined){return 0}const j=u[_];const $=y[_];if(!j||!$){return Infinity}const ne=(C||getNow())-$;return j-ne};this.#q=D=>{const _=y[D];const j=u[D];return!!j&&!!_&&(C||getNow())-_>j}}#X=()=>{};#Z=()=>{};#K=()=>{};#q=()=>false;#V(){const u=new ZeroArray(this.#g);this.#B=0;this.#N=u;this.#ee=y=>{this.#B-=u[y];u[y]=0};this.#te=(u,y,C,D)=>{if(this.#G(y)){return 0}if(!isPosInt(C)){if(D){if(typeof D!=="function"){throw new TypeError("sizeCalculation must be a function")}C=D(y,u);if(!isPosInt(C)){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 C};this.#re=(y,C,D)=>{u[y]=C;if(this.#m){const C=this.#m-u[y];while(this.#B>C){this.#ne(true)}}this.#B+=u[y];if(D){D.entrySize=C;D.totalCalculatedSize=this.#B}}}#ee=u=>{};#re=(u,y,C)=>{};#te=(u,y,C,D)=>{if(C||D){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#z({allowStale:u=this.allowStale}={}){if(this.#w){for(let y=this.#_;true;){if(!this.#ie(y)){break}if(u||!this.#q(y)){yield y}if(y===this.#F){break}else{y=this.#x[y]}}}}*#$({allowStale:u=this.allowStale}={}){if(this.#w){for(let y=this.#F;true;){if(!this.#ie(y)){break}if(u||!this.#q(y)){yield y}if(y===this.#_){break}else{y=this.#Q[y]}}}}#ie(u){return u!==undefined&&this.#D.get(this.#S[u])===u}*entries(){for(const u of this.#z()){if(this.#k[u]!==undefined&&this.#S[u]!==undefined&&!this.#G(this.#k[u])){yield[this.#S[u],this.#k[u]]}}}*rentries(){for(const u of this.#$()){if(this.#k[u]!==undefined&&this.#S[u]!==undefined&&!this.#G(this.#k[u])){yield[this.#S[u],this.#k[u]]}}}*keys(){for(const u of this.#z()){const y=this.#S[u];if(y!==undefined&&!this.#G(this.#k[u])){yield y}}}*rkeys(){for(const u of this.#$()){const y=this.#S[u];if(y!==undefined&&!this.#G(this.#k[u])){yield y}}}*values(){for(const u of this.#z()){const y=this.#k[u];if(y!==undefined&&!this.#G(this.#k[u])){yield this.#k[u]}}}*rvalues(){for(const u of this.#$()){const y=this.#k[u];if(y!==undefined&&!this.#G(this.#k[u])){yield this.#k[u]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,y={}){for(const C of this.#z()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;if(u(_,this.#S[C],this)){return this.get(this.#S[C],y)}}}forEach(u,y=this){for(const C of this.#z()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.#S[C],this)}}rforEach(u,y=this){for(const C of this.#$()){const D=this.#k[C];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.#S[C],this)}}purgeStale(){let u=false;for(const y of this.#$({allowStale:true})){if(this.#q(y)){this.#Y(this.#S[y],"expire");u=true}}return u}info(u){const y=this.#D.get(u);if(y===undefined)return undefined;const C=this.#k[y];const D=this.#G(C)?C.__staleWhileFetching:C;if(D===undefined)return undefined;const _={value:D};if(this.#P&&this.#T){const u=this.#P[y];const C=this.#T[y];if(u&&C){const y=u-(this.#v.now()-C);_.ttl=y;_.start=Date.now()}}if(this.#N){_.size=this.#N[y]}return _}dump(){const u=[];for(const y of this.#z({allowStale:true})){const C=this.#S[y];const D=this.#k[y];const _=this.#G(D)?D.__staleWhileFetching:D;if(_===undefined||C===undefined)continue;const j={value:_};if(this.#P&&this.#T){j.ttl=this.#P[y];const u=this.#v.now()-this.#T[y];j.start=Math.floor(Date.now()-u)}if(this.#N){j.size=this.#N[y]}u.unshift([C,j])}return u}load(u){this.clear();for(const[y,C]of u){if(C.start){const u=Date.now()-C.start;C.start=this.#v.now()-u}this.set(y,C.value,C)}}set(u,y,C={}){if(y===undefined){this.delete(u);return this}const{ttl:D=this.ttl,start:_,noDisposeOnSet:j=this.noDisposeOnSet,sizeCalculation:$=this.sizeCalculation,status:ne}=C;let{noUpdateTTL:oe=this.noUpdateTTL}=C;const le=this.#te(u,y,C.size||0,$);if(this.maxEntrySize&&le>this.maxEntrySize){if(ne){ne.set="miss";ne.maxEntrySizeExceeded=true}this.#Y(u,"set");return this}let de=this.#w===0?undefined:this.#D.get(u);if(de===undefined){de=this.#w===0?this.#_:this.#R.length!==0?this.#R.pop():this.#w===this.#g?this.#ne(false):this.#w;this.#S[de]=u;this.#k[de]=y;this.#D.set(u,de);this.#Q[this.#_]=de;this.#x[de]=this.#_;this.#_=de;this.#w++;this.#re(de,le,ne);if(ne)ne.set="add";oe=false;if(this.#H){this.#E?.(y,u,"add")}}else{this.#j(de);const C=this.#k[de];if(y!==C){if(this.#M&&this.#G(C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:y}=C;if(y!==undefined&&!j){if(this.#O){this.#y?.(y,u,"set")}if(this.#U){this.#L?.push([y,u,"set"])}}}else if(!j){if(this.#O){this.#y?.(C,u,"set")}if(this.#U){this.#L?.push([C,u,"set"])}}this.#ee(de);this.#re(de,le,ne);this.#k[de]=y;if(ne){ne.set="replace";const u=C&&this.#G(C)?C.__staleWhileFetching:C;if(u!==undefined)ne.oldValue=u}}else if(ne){ne.set="update"}if(this.#H){this.onInsert?.(y,u,y===C?"update":"replace")}}if(D!==0&&!this.#P){this.#J()}if(this.#P){if(!oe){this.#K(de,D,_)}if(ne)this.#Z(ne,de)}if(!j&&this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}return this}pop(){try{while(this.#w){const u=this.#k[this.#F];this.#ne(true);if(this.#G(u)){if(u.__staleWhileFetching){return u.__staleWhileFetching}}else if(u!==undefined){return u}}}finally{if(this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}}}#ne(u){const y=this.#F;const C=this.#S[y];const D=this.#k[y];if(this.#M&&this.#G(D)){D.__abortController.abort(new Error("evicted"))}else if(this.#O||this.#U){if(this.#O){this.#y?.(D,C,"evict")}if(this.#U){this.#L?.push([D,C,"evict"])}}this.#ee(y);if(u){this.#S[y]=undefined;this.#k[y]=undefined;this.#R.push(y)}if(this.#w===1){this.#F=this.#_=0;this.#R.length=0}else{this.#F=this.#Q[y]}this.#D.delete(C);this.#w--;return y}has(u,y={}){const{updateAgeOnHas:C=this.updateAgeOnHas,status:D}=y;const _=this.#D.get(u);if(_!==undefined){const u=this.#k[_];if(this.#G(u)&&u.__staleWhileFetching===undefined){return false}if(!this.#q(_)){if(C){this.#X(_)}if(D){D.has="hit";this.#Z(D,_)}return true}else if(D){D.has="stale";this.#Z(D,_)}}else if(D){D.has="miss"}return false}peek(u,y={}){const{allowStale:C=this.allowStale}=y;const D=this.#D.get(u);if(D===undefined||!C&&this.#q(D)){return}const _=this.#k[D];return this.#G(_)?_.__staleWhileFetching:_}#W(u,y,C,D){const _=y===undefined?undefined:this.#k[y];if(this.#G(_)){return _}const j=new St;const{signal:$}=C;$?.addEventListener("abort",(()=>j.abort($.reason)),{signal:j.signal});const ne={signal:j.signal,options:C,context:D};const cb=(D,_=false)=>{const{aborted:$}=j.signal;const le=C.ignoreFetchAbort&&D!==undefined;if(C.status){if($&&!_){C.status.fetchAborted=true;C.status.fetchError=j.signal.reason;if(le)C.status.fetchAbortIgnored=true}else{C.status.fetchResolved=true}}if($&&!le&&!_){return fetchFail(j.signal.reason)}const de=oe;const Ae=this.#k[y];if(Ae===oe||le&&_&&Ae===undefined){if(D===undefined){if(de.__staleWhileFetching!==undefined){this.#k[y]=de.__staleWhileFetching}else{this.#Y(u,"fetch")}}else{if(C.status)C.status.fetchUpdated=true;this.set(u,D,ne.options)}}return D};const eb=u=>{if(C.status){C.status.fetchRejected=true;C.status.fetchError=u}return fetchFail(u)};const fetchFail=D=>{const{aborted:_}=j.signal;const $=_&&C.allowStaleOnFetchAbort;const ne=$||C.allowStaleOnFetchRejection;const le=ne||C.noDeleteOnFetchRejection;const de=oe;if(this.#k[y]===oe){const C=!le||de.__staleWhileFetching===undefined;if(C){this.#Y(u,"fetch")}else if(!$){this.#k[y]=de.__staleWhileFetching}}if(ne){if(C.status&&de.__staleWhileFetching!==undefined){C.status.returnedStale=true}return de.__staleWhileFetching}else if(de.__returned===de){throw D}};const pcall=(y,D)=>{const $=this.#I?.(u,_,ne);if($&&$ instanceof Promise){$.then((u=>y(u===undefined?undefined:u)),D)}j.signal.addEventListener("abort",(()=>{if(!C.ignoreFetchAbort||C.allowStaleOnFetchAbort){y(undefined);if(C.allowStaleOnFetchAbort){y=u=>cb(u,true)}}}))};if(C.status)C.status.fetchDispatched=true;const oe=new Promise(pcall).then(cb,eb);const le=Object.assign(oe,{__abortController:j,__staleWhileFetching:_,__returned:undefined});if(y===undefined){this.set(u,le,{...ne.options,status:undefined});y=this.#D.get(u)}else{this.#k[y]=le}return le}#G(u){if(!this.#M)return false;const y=u;return!!y&&y instanceof Promise&&y.hasOwnProperty("__staleWhileFetching")&&y.__abortController instanceof St}async fetch(u,y={}){const{allowStale:C=this.allowStale,updateAgeOnGet:D=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,ttl:j=this.ttl,noDisposeOnSet:$=this.noDisposeOnSet,size:ne=0,sizeCalculation:oe=this.sizeCalculation,noUpdateTTL:le=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ae=this.allowStaleOnFetchRejection,ignoreFetchAbort:pe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ee=this.allowStaleOnFetchAbort,context:Ce,forceRefresh:Ie=false,status:Be,signal:De}=y;if(!this.#M){if(Be)Be.fetch="get";return this.get(u,{allowStale:C,updateAgeOnGet:D,noDeleteOnStaleGet:_,status:Be})}const xe={allowStale:C,updateAgeOnGet:D,noDeleteOnStaleGet:_,ttl:j,noDisposeOnSet:$,size:ne,sizeCalculation:oe,noUpdateTTL:le,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:Ae,allowStaleOnFetchAbort:Ee,ignoreFetchAbort:pe,status:Be,signal:De};let Fe=this.#D.get(u);if(Fe===undefined){if(Be)Be.fetch="miss";const y=this.#W(u,Fe,xe,Ce);return y.__returned=y}else{const y=this.#k[Fe];if(this.#G(y)){const u=C&&y.__staleWhileFetching!==undefined;if(Be){Be.fetch="inflight";if(u)Be.returnedStale=true}return u?y.__staleWhileFetching:y.__returned=y}const _=this.#q(Fe);if(!Ie&&!_){if(Be)Be.fetch="hit";this.#j(Fe);if(D){this.#X(Fe)}if(Be)this.#Z(Be,Fe);return y}const j=this.#W(u,Fe,xe,Ce);const $=j.__staleWhileFetching!==undefined;const ne=$&&C;if(Be){Be.fetch=_?"stale":"refresh";if(ne&&_)Be.returnedStale=true}return ne?j.__staleWhileFetching:j.__returned=j}}async forceFetch(u,y={}){const C=await this.fetch(u,y);if(C===undefined)throw new Error("fetch() returned undefined");return C}memo(u,y={}){const C=this.#b;if(!C){throw new Error("no memoMethod provided to constructor")}const{context:D,forceRefresh:_,...j}=y;const $=this.get(u,j);if(!_&&$!==undefined)return $;const ne=C(u,$,{options:j,context:D});this.set(u,ne,j);return ne}get(u,y={}){const{allowStale:C=this.allowStale,updateAgeOnGet:D=this.updateAgeOnGet,noDeleteOnStaleGet:_=this.noDeleteOnStaleGet,status:j}=y;const $=this.#D.get(u);if($!==undefined){const y=this.#k[$];const ne=this.#G(y);if(j)this.#Z(j,$);if(this.#q($)){if(j)j.get="stale";if(!ne){if(!_){this.#Y(u,"expire")}if(j&&C)j.returnedStale=true;return C?y:undefined}else{if(j&&C&&y.__staleWhileFetching!==undefined){j.returnedStale=true}return C?y.__staleWhileFetching:undefined}}else{if(j)j.get="hit";if(ne){return y.__staleWhileFetching}this.#j($);if(D){this.#X($)}return y}}else if(j){j.get="miss"}}#se(u,y){this.#x[y]=u;this.#Q[u]=y}#j(u){if(u!==this.#_){if(u===this.#F){this.#F=this.#Q[u]}else{this.#se(this.#x[u],this.#Q[u])}this.#se(this.#_,u);this.#_=u}}delete(u){return this.#Y(u,"delete")}#Y(u,y){let C=false;if(this.#w!==0){const D=this.#D.get(u);if(D!==undefined){C=true;if(this.#w===1){this.#oe(y)}else{this.#ee(D);const C=this.#k[D];if(this.#G(C)){C.__abortController.abort(new Error("deleted"))}else if(this.#O||this.#U){if(this.#O){this.#y?.(C,u,y)}if(this.#U){this.#L?.push([C,u,y])}}this.#D.delete(u);this.#S[D]=undefined;this.#k[D]=undefined;if(D===this.#_){this.#_=this.#x[D]}else if(D===this.#F){this.#F=this.#Q[D]}else{const u=this.#x[D];this.#Q[u]=this.#Q[D];const y=this.#Q[D];this.#x[y]=this.#x[D]}this.#w--;this.#R.push(D)}}}if(this.#U&&this.#L?.length){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}return C}clear(){return this.#oe("delete")}#oe(u){for(const y of this.#$({allowStale:true})){const C=this.#k[y];if(this.#G(C)){C.__abortController.abort(new Error("deleted"))}else{const D=this.#S[y];if(this.#O){this.#y?.(C,D,u)}if(this.#U){this.#L?.push([C,D,u])}}}this.#D.clear();this.#k.fill(undefined);this.#S.fill(undefined);if(this.#P&&this.#T){this.#P.fill(0);this.#T.fill(0)}if(this.#N){this.#N.fill(0)}this.#F=0;this.#_=0;this.#R.length=0;this.#B=0;this.#w=0;if(this.#U&&this.#L){const u=this.#L;let y;while(y=u?.shift()){this.#C?.(...y)}}}}var xt=C(6760);var Ft=C(9896);var _t=C.n(Ft);var Rt=C(3024);var Lt=C.t(Rt,2);var Nt=C(1455);var Tt=C(8474);var Pt=C(7075);const Ot=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder");const Mt=typeof process==="object"&&process?process:{stdout:null,stderr:null};const isStream=u=>!!u&&typeof u==="object"&&(u instanceof Minipass||u instanceof Pt||isReadable(u)||isWritable(u));const isReadable=u=>!!u&&typeof u==="object"&&u instanceof Tt.EventEmitter&&typeof u.pipe==="function"&&u.pipe!==Pt.Writable.prototype.pipe;const isWritable=u=>!!u&&typeof u==="object"&&u instanceof Tt.EventEmitter&&typeof u.write==="function"&&typeof u.end==="function";const Ut=Symbol("EOF");const Ht=Symbol("maybeEmitEnd");const Gt=Symbol("emittedEnd");const Wt=Symbol("emittingEnd");const jt=Symbol("emittedError");const zt=Symbol("closed");const $t=Symbol("read");const qt=Symbol("flush");const Vt=Symbol("flushChunk");const Jt=Symbol("encoding");const Kt=Symbol("decoder");const Yt=Symbol("flowing");const Xt=Symbol("paused");const Zt=Symbol("resume");const er=Symbol("buffer");const tr=Symbol("pipes");const rr=Symbol("bufferLength");const nr=Symbol("bufferPush");const ir=Symbol("bufferShift");const sr=Symbol("objectMode");const or=Symbol("destroyed");const ar=Symbol("error");const lr=Symbol("emitData");const cr=Symbol("emitEnd");const ur=Symbol("emitEnd2");const fr=Symbol("async");const dr=Symbol("abort");const Ar=Symbol("aborted");const hr=Symbol("signal");const pr=Symbol("dataListeners");const gr=Symbol("discarded");const defer=u=>Promise.resolve().then(u);const nodefer=u=>u();const isEndish=u=>u==="end"||u==="finish"||u==="prefinish";const isArrayBufferLike=u=>u instanceof ArrayBuffer||!!u&&typeof u==="object"&&u.constructor&&u.constructor.name==="ArrayBuffer"&&u.byteLength>=0;const isArrayBufferView=u=>!Buffer.isBuffer(u)&&ArrayBuffer.isView(u);class Pipe{src;dest;opts;ondrain;constructor(u,y,C){this.src=u;this.dest=y;this.opts=C;this.ondrain=()=>u[Zt]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(u){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(u,y,C){super(u,y,C);this.proxyErrors=u=>y.emit("error",u);u.on("error",this.proxyErrors)}}const isObjectModeOptions=u=>!!u.objectMode;const isEncodingOptions=u=>!u.objectMode&&!!u.encoding&&u.encoding!=="buffer";class Minipass extends Tt.EventEmitter{[Yt]=false;[Xt]=false;[tr]=[];[er]=[];[sr];[Jt];[fr];[Kt];[Ut]=false;[Gt]=false;[Wt]=false;[zt]=false;[jt]=null;[rr]=0;[or]=false;[hr];[Ar]=false;[pr]=0;[gr]=false;writable=true;readable=true;constructor(...u){const y=u[0]||{};super();if(y.objectMode&&typeof y.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(y)){this[sr]=true;this[Jt]=null}else if(isEncodingOptions(y)){this[Jt]=y.encoding;this[sr]=false}else{this[sr]=false;this[Jt]=null}this[fr]=!!y.async;this[Kt]=this[Jt]?new Ot.StringDecoder(this[Jt]):null;if(y&&y.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[er]})}if(y&&y.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[tr]})}const{signal:C}=y;if(C){this[hr]=C;if(C.aborted){this[dr]()}else{C.addEventListener("abort",(()=>this[dr]()))}}}get bufferLength(){return this[rr]}get encoding(){return this[Jt]}set encoding(u){throw new Error("Encoding must be set at instantiation time")}setEncoding(u){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[sr]}set objectMode(u){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[fr]}set["async"](u){this[fr]=this[fr]||!!u}[dr](){this[Ar]=true;this.emit("abort",this[hr]?.reason);this.destroy(this[hr]?.reason)}get aborted(){return this[Ar]}set aborted(u){}write(u,y,C){if(this[Ar])return false;if(this[Ut])throw new Error("write after end");if(this[or]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof y==="function"){C=y;y="utf8"}if(!y)y="utf8";const D=this[fr]?defer:nodefer;if(!this[sr]&&!Buffer.isBuffer(u)){if(isArrayBufferView(u)){u=Buffer.from(u.buffer,u.byteOffset,u.byteLength)}else if(isArrayBufferLike(u)){u=Buffer.from(u)}else if(typeof u!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[sr]){if(this[Yt]&&this[rr]!==0)this[qt](true);if(this[Yt])this.emit("data",u);else this[nr](u);if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}if(!u.length){if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}if(typeof u==="string"&&!(y===this[Jt]&&!this[Kt]?.lastNeed)){u=Buffer.from(u,y)}if(Buffer.isBuffer(u)&&this[Jt]){u=this[Kt].write(u)}if(this[Yt]&&this[rr]!==0)this[qt](true);if(this[Yt])this.emit("data",u);else this[nr](u);if(this[rr]!==0)this.emit("readable");if(C)D(C);return this[Yt]}read(u){if(this[or])return null;this[gr]=false;if(this[rr]===0||u===0||u&&u>this[rr]){this[Ht]();return null}if(this[sr])u=null;if(this[er].length>1&&!this[sr]){this[er]=[this[Jt]?this[er].join(""):Buffer.concat(this[er],this[rr])]}const y=this[$t](u||null,this[er][0]);this[Ht]();return y}[$t](u,y){if(this[sr])this[ir]();else{const C=y;if(u===C.length||u===null)this[ir]();else if(typeof C==="string"){this[er][0]=C.slice(u);y=C.slice(0,u);this[rr]-=u}else{this[er][0]=C.subarray(u);y=C.subarray(0,u);this[rr]-=u}}this.emit("data",y);if(!this[er].length&&!this[Ut])this.emit("drain");return y}end(u,y,C){if(typeof u==="function"){C=u;u=undefined}if(typeof y==="function"){C=y;y="utf8"}if(u!==undefined)this.write(u,y);if(C)this.once("end",C);this[Ut]=true;this.writable=false;if(this[Yt]||!this[Xt])this[Ht]();return this}[Zt](){if(this[or])return;if(!this[pr]&&!this[tr].length){this[gr]=true}this[Xt]=false;this[Yt]=true;this.emit("resume");if(this[er].length)this[qt]();else if(this[Ut])this[Ht]();else this.emit("drain")}resume(){return this[Zt]()}pause(){this[Yt]=false;this[Xt]=true;this[gr]=false}get destroyed(){return this[or]}get flowing(){return this[Yt]}get paused(){return this[Xt]}[nr](u){if(this[sr])this[rr]+=1;else this[rr]+=u.length;this[er].push(u)}[ir](){if(this[sr])this[rr]-=1;else this[rr]-=this[er][0].length;return this[er].shift()}[qt](u=false){do{}while(this[Vt](this[ir]())&&this[er].length);if(!u&&!this[er].length&&!this[Ut])this.emit("drain")}[Vt](u){this.emit("data",u);return this[Yt]}pipe(u,y){if(this[or])return u;this[gr]=false;const C=this[Gt];y=y||{};if(u===Mt.stdout||u===Mt.stderr)y.end=false;else y.end=y.end!==false;y.proxyErrors=!!y.proxyErrors;if(C){if(y.end)u.end()}else{this[tr].push(!y.proxyErrors?new Pipe(this,u,y):new PipeProxyErrors(this,u,y));if(this[fr])defer((()=>this[Zt]()));else this[Zt]()}return u}unpipe(u){const y=this[tr].find((y=>y.dest===u));if(y){if(this[tr].length===1){if(this[Yt]&&this[pr]===0){this[Yt]=false}this[tr]=[]}else this[tr].splice(this[tr].indexOf(y),1);y.unpipe()}}addListener(u,y){return this.on(u,y)}on(u,y){const C=super.on(u,y);if(u==="data"){this[gr]=false;this[pr]++;if(!this[tr].length&&!this[Yt]){this[Zt]()}}else if(u==="readable"&&this[rr]!==0){super.emit("readable")}else if(isEndish(u)&&this[Gt]){super.emit(u);this.removeAllListeners(u)}else if(u==="error"&&this[jt]){const u=y;if(this[fr])defer((()=>u.call(this,this[jt])));else u.call(this,this[jt])}return C}removeListener(u,y){return this.off(u,y)}off(u,y){const C=super.off(u,y);if(u==="data"){this[pr]=this.listeners("data").length;if(this[pr]===0&&!this[gr]&&!this[tr].length){this[Yt]=false}}return C}removeAllListeners(u){const y=super.removeAllListeners(u);if(u==="data"||u===undefined){this[pr]=0;if(!this[gr]&&!this[tr].length){this[Yt]=false}}return y}get emittedEnd(){return this[Gt]}[Ht](){if(!this[Wt]&&!this[Gt]&&!this[or]&&this[er].length===0&&this[Ut]){this[Wt]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[zt])this.emit("close");this[Wt]=false}}emit(u,...y){const C=y[0];if(u!=="error"&&u!=="close"&&u!==or&&this[or]){return false}else if(u==="data"){return!this[sr]&&!C?false:this[fr]?(defer((()=>this[lr](C))),true):this[lr](C)}else if(u==="end"){return this[cr]()}else if(u==="close"){this[zt]=true;if(!this[Gt]&&!this[or])return false;const u=super.emit("close");this.removeAllListeners("close");return u}else if(u==="error"){this[jt]=C;super.emit(ar,C);const u=!this[hr]||this.listeners("error").length?super.emit("error",C):false;this[Ht]();return u}else if(u==="resume"){const u=super.emit("resume");this[Ht]();return u}else if(u==="finish"||u==="prefinish"){const y=super.emit(u);this.removeAllListeners(u);return y}const D=super.emit(u,...y);this[Ht]();return D}[lr](u){for(const y of this[tr]){if(y.dest.write(u)===false)this.pause()}const y=this[gr]?false:super.emit("data",u);this[Ht]();return y}[cr](){if(this[Gt])return false;this[Gt]=true;this.readable=false;return this[fr]?(defer((()=>this[ur]())),true):this[ur]()}[ur](){if(this[Kt]){const u=this[Kt].end();if(u){for(const y of this[tr]){y.dest.write(u)}if(!this[gr])super.emit("data",u)}}for(const u of this[tr]){u.end()}const u=super.emit("end");this.removeAllListeners("end");return u}async collect(){const u=Object.assign([],{dataLength:0});if(!this[sr])u.dataLength=0;const y=this.promise();this.on("data",(y=>{u.push(y);if(!this[sr])u.dataLength+=y.length}));await y;return u}async concat(){if(this[sr]){throw new Error("cannot concat in objectMode")}const u=await this.collect();return this[Jt]?u.join(""):Buffer.concat(u,u.dataLength)}async promise(){return new Promise(((u,y)=>{this.on(or,(()=>y(new Error("stream destroyed"))));this.on("error",(u=>y(u)));this.on("end",(()=>u()))}))}[Symbol.asyncIterator](){this[gr]=false;let u=false;const stop=async()=>{this.pause();u=true;return{value:undefined,done:true}};const next=()=>{if(u)return stop();const y=this.read();if(y!==null)return Promise.resolve({done:false,value:y});if(this[Ut])return stop();let C;let D;const onerr=u=>{this.off("data",ondata);this.off("end",onend);this.off(or,ondestroy);stop();D(u)};const ondata=u=>{this.off("error",onerr);this.off("end",onend);this.off(or,ondestroy);this.pause();C({value:u,done:!!this[Ut]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(or,ondestroy);stop();C({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((u,y)=>{D=y;C=u;this.once(or,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[gr]=false;let u=false;const stop=()=>{this.pause();this.off(ar,stop);this.off(or,stop);this.off("end",stop);u=true;return{done:true,value:undefined}};const next=()=>{if(u)return stop();const y=this.read();return y===null?stop():{done:false,value:y}};this.once("end",stop);this.once(ar,stop);this.once(or,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(u){if(this[or]){if(u)this.emit("error",u);else this.emit(or);return this}this[or]=true;this[gr]=true;this[er].length=0;this[rr]=0;const y=this;if(typeof y.close==="function"&&!this[zt])y.close();if(u)this.emit("error",u);else this.emit(or);return this}static get isStream(){return isStream}}const mr=Ft.realpathSync.native;const yr={lstatSync:Ft.lstatSync,readdir:Ft.readdir,readdirSync:Ft.readdirSync,readlinkSync:Ft.readlinkSync,realpathSync:mr,promises:{lstat:Nt.lstat,readdir:Nt.readdir,readlink:Nt.readlink,realpath:Nt.realpath}};const fsFromOption=u=>!u||u===yr||u===Lt?yr:{...yr,...u,promises:{...yr.promises,...u.promises||{}}};const Er=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=u=>u.replace(/\//g,"\\").replace(Er,"$1\\");const Cr=/[\\\/]/;const Ir=0;const br=1;const vr=2;const wr=4;const Br=6;const Dr=8;const Sr=10;const kr=12;const Qr=15;const xr=~Qr;const Fr=16;const _r=32;const Rr=64;const Lr=128;const Nr=256;const Tr=512;const Pr=Rr|Lr|Tr;const Or=1023;const entToType=u=>u.isFile()?Dr:u.isDirectory()?wr:u.isSymbolicLink()?Sr:u.isCharacterDevice()?vr:u.isBlockDevice()?Br:u.isSocket()?kr:u.isFIFO()?br:Ir;const Mr=new LRUCache({max:2**12});const normalize=u=>{const y=Mr.get(u);if(y)return y;const C=u.normalize("NFKD");Mr.set(u,C);return C};const Ur=new LRUCache({max:2**12});const normalizeNocase=u=>{const y=Ur.get(u);if(y)return y;const C=normalize(u.toLowerCase());Ur.set(u,C);return C};class ResolveCache extends LRUCache{constructor(){super({max:256})}}class ChildrenCache extends LRUCache{constructor(u=16*1024){super({maxSize:u,sizeCalculation:u=>u.length+1})}}const Hr=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#ae;#le;get dev(){return this.#le}#ce;get mode(){return this.#ce}#ue;get nlink(){return this.#ue}#fe;get uid(){return this.#fe}#de;get gid(){return this.#de}#Ae;get rdev(){return this.#Ae}#he;get blksize(){return this.#he}#pe;get ino(){return this.#pe}#w;get size(){return this.#w}#ge;get blocks(){return this.#ge}#me;get atimeMs(){return this.#me}#ye;get mtimeMs(){return this.#ye}#Ee;get ctimeMs(){return this.#Ee}#Ce;get birthtimeMs(){return this.#Ce}#Ie;get atime(){return this.#Ie}#be;get mtime(){return this.#be}#ve;get ctime(){return this.#ve}#we;get birthtime(){return this.#we}#Be;#De;#Se;#ke;#Qe;#xe;#Fe;#_e;#Re;#Le;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(u,y=Ir,C,D,_,j,$){this.name=u;this.#Be=_?normalizeNocase(u):normalize(u);this.#Fe=y&Or;this.nocase=_;this.roots=D;this.root=C||this;this.#_e=j;this.#Se=$.fullpath;this.#Qe=$.relative;this.#xe=$.relativePosix;this.parent=$.parent;if(this.parent){this.#ae=this.parent.#ae}else{this.#ae=fsFromOption($.fs)}}depth(){if(this.#De!==undefined)return this.#De;if(!this.parent)return this.#De=0;return this.#De=this.parent.depth()+1}childrenCache(){return this.#_e}resolve(u){if(!u){return this}const y=this.getRootString(u);const C=u.substring(y.length);const D=C.split(this.splitSep);const _=y?this.getRoot(y).#Ne(D):this.#Ne(D);return _}#Ne(u){let y=this;for(const C of u){y=y.child(C)}return y}children(){const u=this.#_e.get(this);if(u){return u}const y=Object.assign([],{provisional:0});this.#_e.set(this,y);this.#Fe&=~Fr;return y}child(u,y){if(u===""||u==="."){return this}if(u===".."){return this.parent||this}const C=this.children();const D=this.nocase?normalizeNocase(u):normalize(u);for(const u of C){if(u.#Be===D){return u}}const _=this.parent?this.sep:"";const j=this.#Se?this.#Se+_+u:undefined;const $=this.newChild(u,Ir,{...y,parent:this,fullpath:j});if(!this.canReaddir()){$.#Fe|=Lr}C.push($);return $}relative(){if(this.isCWD)return"";if(this.#Qe!==undefined){return this.#Qe}const u=this.name;const y=this.parent;if(!y){return this.#Qe=this.name}const C=y.relative();return C+(!C||!y.parent?"":this.sep)+u}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#xe!==undefined)return this.#xe;const u=this.name;const y=this.parent;if(!y){return this.#xe=this.fullpathPosix()}const C=y.relativePosix();return C+(!C||!y.parent?"":"/")+u}fullpath(){if(this.#Se!==undefined){return this.#Se}const u=this.name;const y=this.parent;if(!y){return this.#Se=this.name}const C=y.fullpath();const D=C+(!y.parent?"":this.sep)+u;return this.#Se=D}fullpathPosix(){if(this.#ke!==undefined)return this.#ke;if(this.sep==="/")return this.#ke=this.fullpath();if(!this.parent){const u=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(u)){return this.#ke=`//?/${u}`}else{return this.#ke=u}}const u=this.parent;const y=u.fullpathPosix();const C=y+(!y||!u.parent?"":"/")+this.name;return this.#ke=C}isUnknown(){return(this.#Fe&Qr)===Ir}isType(u){return this[`is${u}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Fe&Qr)===Dr}isDirectory(){return(this.#Fe&Qr)===wr}isCharacterDevice(){return(this.#Fe&Qr)===vr}isBlockDevice(){return(this.#Fe&Qr)===Br}isFIFO(){return(this.#Fe&Qr)===br}isSocket(){return(this.#Fe&Qr)===kr}isSymbolicLink(){return(this.#Fe&Sr)===Sr}lstatCached(){return this.#Fe&_r?this:undefined}readlinkCached(){return this.#Re}realpathCached(){return this.#Le}readdirCached(){const u=this.children();return u.slice(0,u.provisional)}canReadlink(){if(this.#Re)return true;if(!this.parent)return false;const u=this.#Fe&Qr;return!(u!==Ir&&u!==Sr||this.#Fe&Nr||this.#Fe&Lr)}calledReaddir(){return!!(this.#Fe&Fr)}isENOENT(){return!!(this.#Fe&Lr)}isNamed(u){return!this.nocase?this.#Be===normalize(u):this.#Be===normalizeNocase(u)}async readlink(){const u=this.#Re;if(u){return u}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const u=await this.#ae.promises.readlink(this.fullpath());const y=(await this.parent.realpath())?.resolve(u);if(y){return this.#Re=y}}catch(u){this.#Te(u.code);return undefined}}readlinkSync(){const u=this.#Re;if(u){return u}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const u=this.#ae.readlinkSync(this.fullpath());const y=this.parent.realpathSync()?.resolve(u);if(y){return this.#Re=y}}catch(u){this.#Te(u.code);return undefined}}#Pe(u){this.#Fe|=Fr;for(let y=u.provisional;y<u.length;y++){const C=u[y];if(C)C.#Oe()}}#Oe(){if(this.#Fe&Lr)return;this.#Fe=(this.#Fe|Lr)&xr;this.#Me()}#Me(){const u=this.children();u.provisional=0;for(const y of u){y.#Oe()}}#Ue(){this.#Fe|=Tr;this.#He()}#He(){if(this.#Fe&Rr)return;let u=this.#Fe;if((u&Qr)===wr)u&=xr;this.#Fe=u|Rr;this.#Me()}#Ge(u=""){if(u==="ENOTDIR"||u==="EPERM"){this.#He()}else if(u==="ENOENT"){this.#Oe()}else{this.children().provisional=0}}#We(u=""){if(u==="ENOTDIR"){const u=this.parent;u.#He()}else if(u==="ENOENT"){this.#Oe()}}#Te(u=""){let y=this.#Fe;y|=Nr;if(u==="ENOENT")y|=Lr;if(u==="EINVAL"||u==="UNKNOWN"){y&=xr}this.#Fe=y;if(u==="ENOTDIR"&&this.parent){this.parent.#He()}}#je(u,y){return this.#ze(u,y)||this.#$e(u,y)}#$e(u,y){const C=entToType(u);const D=this.newChild(u.name,C,{parent:this});const _=D.#Fe&Qr;if(_!==wr&&_!==Sr&&_!==Ir){D.#Fe|=Rr}y.unshift(D);y.provisional++;return D}#ze(u,y){for(let C=y.provisional;C<y.length;C++){const D=y[C];const _=this.nocase?normalizeNocase(u.name):normalize(u.name);if(_!==D.#Be){continue}return this.#qe(u,D,C,y)}}#qe(u,y,C,D){const _=y.name;y.#Fe=y.#Fe&xr|entToType(u);if(_!==u.name)y.name=u.name;if(C!==D.provisional){if(C===D.length-1)D.pop();else D.splice(C,1);D.unshift(y)}D.provisional++;return y}async lstat(){if((this.#Fe&Lr)===0){try{this.#Ve(await this.#ae.promises.lstat(this.fullpath()));return this}catch(u){this.#We(u.code)}}}lstatSync(){if((this.#Fe&Lr)===0){try{this.#Ve(this.#ae.lstatSync(this.fullpath()));return this}catch(u){this.#We(u.code)}}}#Ve(u){const{atime:y,atimeMs:C,birthtime:D,birthtimeMs:_,blksize:j,blocks:$,ctime:ne,ctimeMs:oe,dev:le,gid:de,ino:Ae,mode:pe,mtime:Ee,mtimeMs:Ce,nlink:Ie,rdev:Be,size:De,uid:xe}=u;this.#Ie=y;this.#me=C;this.#we=D;this.#Ce=_;this.#he=j;this.#ge=$;this.#ve=ne;this.#Ee=oe;this.#le=le;this.#de=de;this.#pe=Ae;this.#ce=pe;this.#be=Ee;this.#ye=Ce;this.#ue=Ie;this.#Ae=Be;this.#w=De;this.#fe=xe;const Fe=entToType(u);this.#Fe=this.#Fe&xr|Fe|_r;if(Fe!==Ir&&Fe!==wr&&Fe!==Sr){this.#Fe|=Rr}}#Je=[];#Ke=false;#Ye(u){this.#Ke=false;const y=this.#Je.slice();this.#Je.length=0;y.forEach((y=>y(null,u)))}readdirCB(u,y=false){if(!this.canReaddir()){if(y)u(null,[]);else queueMicrotask((()=>u(null,[])));return}const C=this.children();if(this.calledReaddir()){const D=C.slice(0,C.provisional);if(y)u(null,D);else queueMicrotask((()=>u(null,D)));return}this.#Je.push(u);if(this.#Ke){return}this.#Ke=true;const D=this.fullpath();this.#ae.readdir(D,{withFileTypes:true},((u,y)=>{if(u){this.#Ge(u.code);C.provisional=0}else{for(const u of y){this.#je(u,C)}this.#Pe(C)}this.#Ye(C.slice(0,C.provisional));return}))}#Xe;async readdir(){if(!this.canReaddir()){return[]}const u=this.children();if(this.calledReaddir()){return u.slice(0,u.provisional)}const y=this.fullpath();if(this.#Xe){await this.#Xe}else{let resolve=()=>{};this.#Xe=new Promise((u=>resolve=u));try{for(const C of await this.#ae.promises.readdir(y,{withFileTypes:true})){this.#je(C,u)}this.#Pe(u)}catch(y){this.#Ge(y.code);u.provisional=0}this.#Xe=undefined;resolve()}return u.slice(0,u.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const u=this.children();if(this.calledReaddir()){return u.slice(0,u.provisional)}const y=this.fullpath();try{for(const C of this.#ae.readdirSync(y,{withFileTypes:true})){this.#je(C,u)}this.#Pe(u)}catch(y){this.#Ge(y.code);u.provisional=0}return u.slice(0,u.provisional)}canReaddir(){if(this.#Fe&Pr)return false;const u=Qr&this.#Fe;if(!(u===Ir||u===wr||u===Sr)){return false}return true}shouldWalk(u,y){return(this.#Fe&wr)===wr&&!(this.#Fe&Pr)&&!u.has(this)&&(!y||y(this))}async realpath(){if(this.#Le)return this.#Le;if((Tr|Nr|Lr)&this.#Fe)return undefined;try{const u=await this.#ae.promises.realpath(this.fullpath());return this.#Le=this.resolve(u)}catch(u){this.#Ue()}}realpathSync(){if(this.#Le)return this.#Le;if((Tr|Nr|Lr)&this.#Fe)return undefined;try{const u=this.#ae.realpathSync(this.fullpath());return this.#Le=this.resolve(u)}catch(u){this.#Ue()}}[Hr](u){if(u===this)return;u.isCWD=false;this.isCWD=true;const y=new Set([]);let C=[];let D=this;while(D&&D.parent){y.add(D);D.#Qe=C.join(this.sep);D.#xe=C.join("/");D=D.parent;C.push("..")}D=u;while(D&&D.parent&&!y.has(D)){D.#Qe=undefined;D.#xe=undefined;D=D.parent}}}class PathWin32 extends PathBase{sep="\\";splitSep=Cr;constructor(u,y=Ir,C,D,_,j,$){super(u,y,C,D,_,j,$)}newChild(u,y=Ir,C={}){return new PathWin32(u,y,this.root,this.roots,this.nocase,this.childrenCache(),C)}getRootString(u){return xt.win32.parse(u).root}getRoot(u){u=uncToDrive(u.toUpperCase());if(u===this.root.name){return this.root}for(const[y,C]of Object.entries(this.roots)){if(this.sameRoot(u,y)){return this.roots[u]=C}}return this.roots[u]=new PathScurryWin32(u,this).root}sameRoot(u,y=this.root.name){u=u.toUpperCase().replace(/\//g,"\\").replace(Er,"$1\\");return u===y}}class PathPosix extends PathBase{splitSep="/";sep="/";constructor(u,y=Ir,C,D,_,j,$){super(u,y,C,D,_,j,$)}getRootString(u){return u.startsWith("/")?"/":""}getRoot(u){return this.root}newChild(u,y=Ir,C={}){return new PathPosix(u,y,this.root,this.roots,this.nocase,this.childrenCache(),C)}}class PathScurryBase{root;rootPath;roots;cwd;#Ze;#et;#_e;nocase;#ae;constructor(u=process.cwd(),y,C,{nocase:D,childrenCacheSize:_=16*1024,fs:j=yr}={}){this.#ae=fsFromOption(j);if(u instanceof URL||u.startsWith("file://")){u=(0,vt.fileURLToPath)(u)}const $=y.resolve(u);this.roots=Object.create(null);this.rootPath=this.parseRootPath($);this.#Ze=new ResolveCache;this.#et=new ResolveCache;this.#_e=new ChildrenCache(_);const ne=$.substring(this.rootPath.length).split(C);if(ne.length===1&&!ne[0]){ne.pop()}if(D===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=D;this.root=this.newRoot(this.#ae);this.roots[this.rootPath]=this.root;let oe=this.root;let le=ne.length-1;const de=y.sep;let Ae=this.rootPath;let pe=false;for(const u of ne){const y=le--;oe=oe.child(u,{relative:new Array(y).fill("..").join(de),relativePosix:new Array(y).fill("..").join("/"),fullpath:Ae+=(pe?"":de)+u});pe=true}this.cwd=oe}depth(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.depth()}childrenCache(){return this.#_e}resolve(...u){let y="";for(let C=u.length-1;C>=0;C--){const D=u[C];if(!D||D===".")continue;y=y?`${D}/${y}`:D;if(this.isAbsolute(D)){break}}const C=this.#Ze.get(y);if(C!==undefined){return C}const D=this.cwd.resolve(y).fullpath();this.#Ze.set(y,D);return D}resolvePosix(...u){let y="";for(let C=u.length-1;C>=0;C--){const D=u[C];if(!D||D===".")continue;y=y?`${D}/${y}`:D;if(this.isAbsolute(D)){break}}const C=this.#et.get(y);if(C!==undefined){return C}const D=this.cwd.resolve(y).fullpathPosix();this.#et.set(y,D);return D}relative(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.relative()}relativePosix(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.relativePosix()}basename(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.name}dirname(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return(u.parent||u).fullpath()}async readdir(u=this.cwd,y={withFileTypes:true}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C}=y;if(!u.canReaddir()){return[]}else{const y=await u.readdir();return C?y:y.map((u=>u.name))}}readdirSync(u=this.cwd,y={withFileTypes:true}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true}=y;if(!u.canReaddir()){return[]}else if(C){return u.readdirSync()}else{return u.readdirSync().map((u=>u.name))}}async lstat(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.lstat()}lstatSync(u=this.cwd){if(typeof u==="string"){u=this.cwd.resolve(u)}return u.lstatSync()}async readlink(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=await u.readlink();return y?C:C?.fullpath()}readlinkSync(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=u.readlinkSync();return y?C:C?.fullpath()}async realpath(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=await u.realpath();return y?C:C?.fullpath()}realpathSync(u=this.cwd,{withFileTypes:y}={withFileTypes:false}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u.withFileTypes;u=this.cwd}const C=u.realpathSync();return y?C:C?.fullpath()}async walk(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=[];if(!_||_(u)){$.push(C?u:u.fullpath())}const ne=new Set;const walk=(u,y)=>{ne.add(u);u.readdirCB(((u,oe)=>{if(u){return y(u)}let le=oe.length;if(!le)return y();const next=()=>{if(--le===0){y()}};for(const u of oe){if(!_||_(u)){$.push(C?u:u.fullpath())}if(D&&u.isSymbolicLink()){u.realpath().then((u=>u?.isUnknown()?u.lstat():u)).then((u=>u?.shouldWalk(ne,j)?walk(u,next):next()))}else{if(u.shouldWalk(ne,j)){walk(u,next)}else{next()}}}}),true)};const oe=u;return new Promise(((u,y)=>{walk(oe,(C=>{if(C)return y(C);u($)}))}))}walkSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=[];if(!_||_(u)){$.push(C?u:u.fullpath())}const ne=new Set([u]);for(const u of ne){const y=u.readdirSync();for(const u of y){if(!_||_(u)){$.push(C?u:u.fullpath())}let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk(ne,j)){ne.add(y)}}}return $}[Symbol.asyncIterator](){return this.iterate()}iterate(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}return this.stream(u,y)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;if(!_||_(u)){yield C?u:u.fullpath()}const $=new Set([u]);for(const u of $){const y=u.readdirSync();for(const u of y){if(!_||_(u)){yield C?u:u.fullpath()}let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk($,j)){$.add(y)}}}}stream(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=new Minipass({objectMode:true});if(!_||_(u)){$.write(C?u:u.fullpath())}const ne=new Set;const oe=[u];let le=0;const process=()=>{let u=false;while(!u){const y=oe.shift();if(!y){if(le===0)$.end();return}le++;ne.add(y);const onReaddir=(y,Ae,pe=false)=>{if(y)return $.emit("error",y);if(D&&!pe){const u=[];for(const y of Ae){if(y.isSymbolicLink()){u.push(y.realpath().then((u=>u?.isUnknown()?u.lstat():u)))}}if(u.length){Promise.all(u).then((()=>onReaddir(null,Ae,true)));return}}for(const y of Ae){if(y&&(!_||_(y))){if(!$.write(C?y:y.fullpath())){u=true}}}le--;for(const u of Ae){const y=u.realpathCached()||u;if(y.shouldWalk(ne,j)){oe.push(y)}}if(u&&!$.flowing){$.once("drain",process)}else if(!de){process()}};let de=true;y.readdirCB(onReaddir,true);de=false}};process();return $}streamSync(u=this.cwd,y={}){if(typeof u==="string"){u=this.cwd.resolve(u)}else if(!(u instanceof PathBase)){y=u;u=this.cwd}const{withFileTypes:C=true,follow:D=false,filter:_,walkFilter:j}=y;const $=new Minipass({objectMode:true});const ne=new Set;if(!_||_(u)){$.write(C?u:u.fullpath())}const oe=[u];let le=0;const process=()=>{let u=false;while(!u){const y=oe.shift();if(!y){if(le===0)$.end();return}le++;ne.add(y);const de=y.readdirSync();for(const y of de){if(!_||_(y)){if(!$.write(C?y:y.fullpath())){u=true}}}le--;for(const u of de){let y=u;if(u.isSymbolicLink()){if(!(D&&(y=u.realpathSync())))continue;if(y.isUnknown())y.lstatSync()}if(y.shouldWalk(ne,j)){oe.push(y)}}}if(u&&!$.flowing)$.once("drain",process)};process();return $}chdir(u=this.cwd){const y=this.cwd;this.cwd=typeof u==="string"?this.cwd.resolve(u):u;this.cwd[Hr](y)}}class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(u=process.cwd(),y={}){const{nocase:C=true}=y;super(u,xt.win32,"\\",{...y,nocase:C});this.nocase=C;for(let u=this.cwd;u;u=u.parent){u.nocase=this.nocase}}parseRootPath(u){return xt.win32.parse(u).root.toUpperCase()}newRoot(u){return new PathWin32(this.rootPath,wr,undefined,this.roots,this.nocase,this.childrenCache(),{fs:u})}isAbsolute(u){return u.startsWith("/")||u.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(u)}}class PathScurryPosix extends PathScurryBase{sep="/";constructor(u=process.cwd(),y={}){const{nocase:C=false}=y;super(u,xt.posix,"/",{...y,nocase:C});this.nocase=C}parseRootPath(u){return"/"}newRoot(u){return new PathPosix(this.rootPath,wr,undefined,this.roots,this.nocase,this.childrenCache(),{fs:u})}isAbsolute(u){return u.startsWith("/")}}class PathScurryDarwin extends PathScurryPosix{constructor(u=process.cwd(),y={}){const{nocase:C=true}=y;super(u,{...y,nocase:C})}}const Gr=process.platform==="win32"?PathWin32:PathPosix;const Wr=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix;const isPatternList=u=>u.length>=1;const isGlobList=u=>u.length>=1;class Pattern{#tt;#rt;#nt;length;#it;#st;#ot;#at;#lt;#ct;#ut=true;constructor(u,y,C,D){if(!isPatternList(u)){throw new TypeError("empty pattern list")}if(!isGlobList(y)){throw new TypeError("empty glob list")}if(y.length!==u.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=u.length;if(C<0||C>=this.length){throw new TypeError("index out of range")}this.#tt=u;this.#rt=y;this.#nt=C;this.#it=D;if(this.#nt===0){if(this.isUNC()){const[u,y,C,D,..._]=this.#tt;const[j,$,ne,oe,...le]=this.#rt;if(_[0]===""){_.shift();le.shift()}const de=[u,y,C,D,""].join("/");const Ae=[j,$,ne,oe,""].join("/");this.#tt=[de,..._];this.#rt=[Ae,...le];this.length=this.#tt.length}else if(this.isDrive()||this.isAbsolute()){const[u,...y]=this.#tt;const[C,...D]=this.#rt;if(y[0]===""){y.shift();D.shift()}const _=u+"/";const j=C+"/";this.#tt=[_,...y];this.#rt=[j,...D];this.length=this.#tt.length}}}pattern(){return this.#tt[this.#nt]}isString(){return typeof this.#tt[this.#nt]==="string"}isGlobstar(){return this.#tt[this.#nt]===mt}isRegExp(){return this.#tt[this.#nt]instanceof RegExp}globString(){return this.#ot=this.#ot||(this.#nt===0?this.isAbsolute()?this.#rt[0]+this.#rt.slice(1).join("/"):this.#rt.join("/"):this.#rt.slice(this.#nt).join("/"))}hasMore(){return this.length>this.#nt+1}rest(){if(this.#st!==undefined)return this.#st;if(!this.hasMore())return this.#st=null;this.#st=new Pattern(this.#tt,this.#rt,this.#nt+1,this.#it);this.#st.#ct=this.#ct;this.#st.#lt=this.#lt;this.#st.#at=this.#at;return this.#st}isUNC(){const u=this.#tt;return this.#lt!==undefined?this.#lt:this.#lt=this.#it==="win32"&&this.#nt===0&&u[0]===""&&u[1]===""&&typeof u[2]==="string"&&!!u[2]&&typeof u[3]==="string"&&!!u[3]}isDrive(){const u=this.#tt;return this.#at!==undefined?this.#at:this.#at=this.#it==="win32"&&this.#nt===0&&this.length>1&&typeof u[0]==="string"&&/^[a-z]:$/i.test(u[0])}isAbsolute(){const u=this.#tt;return this.#ct!==undefined?this.#ct:this.#ct=u[0]===""&&u.length>1||this.isDrive()||this.isUNC()}root(){const u=this.#tt[0];return typeof u==="string"&&this.isAbsolute()&&this.#nt===0?u:""}checkFollowGlobstar(){return!(this.#nt===0||!this.isGlobstar()||!this.#ut)}markFollowGlobstar(){if(this.#nt===0||!this.isGlobstar()||!this.#ut)return false;this.#ut=false;return true}}const jr=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(u,{nobrace:y,nocase:C,noext:D,noglobstar:_,platform:j=jr}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=j;this.mmopts={dot:true,nobrace:y,nocase:C,noext:D,noglobstar:_,optimizationLevel:2,platform:j,nocomment:true,nonegate:true};for(const y of u)this.add(y)}add(u){const y=new Minimatch(u,this.mmopts);for(let u=0;u<y.set.length;u++){const C=y.set[u];const D=y.globParts[u];if(!C||!D){throw new Error("invalid pattern object")}while(C[0]==="."&&D[0]==="."){C.shift();D.shift()}const _=new Pattern(C,D,0,this.platform);const j=new Minimatch(_.globString(),this.mmopts);const $=D[D.length-1]==="**";const ne=_.isAbsolute();if(ne)this.absolute.push(j);else this.relative.push(j);if($){if(ne)this.absoluteChildren.push(j);else this.relativeChildren.push(j)}}}ignored(u){const y=u.fullpath();const C=`${y}/`;const D=u.relative()||".";const _=`${D}/`;for(const u of this.relative){if(u.match(D)||u.match(_))return true}for(const u of this.absolute){if(u.match(y)||u.match(C))return true}return false}childrenIgnored(u){const y=u.fullpath()+"/";const C=(u.relative()||".")+"/";for(const u of this.relativeChildren){if(u.match(C))return true}for(const u of this.absoluteChildren){if(u.match(y))return true}return false}}class HasWalkedCache{store;constructor(u=new Map){this.store=u}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(u,y){return this.store.get(u.fullpath())?.has(y.globString())}storeWalked(u,y){const C=u.fullpath();const D=this.store.get(C);if(D)D.add(y.globString());else this.store.set(C,new Set([y.globString()]))}}class MatchRecord{store=new Map;add(u,y,C){const D=(y?2:0)|(C?1:0);const _=this.store.get(u);this.store.set(u,_===undefined?D:D&_)}entries(){return[...this.store.entries()].map((([u,y])=>[u,!!(y&2),!!(y&1)]))}}class SubWalks{store=new Map;add(u,y){if(!u.canReaddir()){return}const C=this.store.get(u);if(C){if(!C.find((u=>u.globString()===y.globString()))){C.push(y)}}else this.store.set(u,[y])}get(u){const y=this.store.get(u);if(!y){throw new Error("attempting to walk unknown path")}return y}entries(){return this.keys().map((u=>[u,this.store.get(u)]))}keys(){return[...this.store.keys()].filter((u=>u.canReaddir()))}}class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(u,y){this.opts=u;this.follow=!!u.follow;this.dot=!!u.dot;this.hasWalkedCache=y?y.copy():new HasWalkedCache}processPatterns(u,y){this.patterns=y;const C=y.map((y=>[u,y]));for(let[u,y]of C){this.hasWalkedCache.storeWalked(u,y);const C=y.root();const D=y.isAbsolute()&&this.opts.absolute!==false;if(C){u=u.resolve(C==="/"&&this.opts.root!==undefined?this.opts.root:C);const D=y.rest();if(!D){this.matches.add(u,true,false);continue}else{y=D}}if(u.isENOENT())continue;let _;let j;let $=false;while(typeof(_=y.pattern())==="string"&&(j=y.rest())){const C=u.resolve(_);u=C;y=j;$=true}_=y.pattern();j=y.rest();if($){if(this.hasWalkedCache.hasWalked(u,y))continue;this.hasWalkedCache.storeWalked(u,y)}if(typeof _==="string"){const y=_===".."||_===""||_===".";this.matches.add(u.resolve(_),D,y);continue}else if(_===mt){if(!u.isSymbolicLink()||this.follow||y.checkFollowGlobstar()){this.subwalks.add(u,y)}const C=j?.pattern();const _=j?.rest();if(!j||(C===""||C===".")&&!_){this.matches.add(u,D,C===""||C===".")}else{if(C===".."){const y=u.parent||u;if(!_)this.matches.add(y,D,true);else if(!this.hasWalkedCache.hasWalked(y,_)){this.subwalks.add(y,_)}}}}else if(_ instanceof RegExp){this.subwalks.add(u,y)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(u,y){const C=this.subwalks.get(u);const D=this.child();for(const u of y){for(const y of C){const C=y.isAbsolute();const _=y.pattern();const j=y.rest();if(_===mt){D.testGlobstar(u,y,j,C)}else if(_ instanceof RegExp){D.testRegExp(u,_,j,C)}else{D.testString(u,_,j,C)}}}return D}testGlobstar(u,y,C,D){if(this.dot||!u.name.startsWith(".")){if(!y.hasMore()){this.matches.add(u,D,false)}if(u.canReaddir()){if(this.follow||!u.isSymbolicLink()){this.subwalks.add(u,y)}else if(u.isSymbolicLink()){if(C&&y.checkFollowGlobstar()){this.subwalks.add(u,C)}else if(y.markFollowGlobstar()){this.subwalks.add(u,y)}}}}if(C){const y=C.pattern();if(typeof y==="string"&&y!==".."&&y!==""&&y!=="."){this.testString(u,y,C.rest(),D)}else if(y===".."){const y=u.parent||u;this.subwalks.add(y,C)}else if(y instanceof RegExp){this.testRegExp(u,y,C.rest(),D)}}}testRegExp(u,y,C,D){if(!y.test(u.name))return;if(!C){this.matches.add(u,D,false)}else{this.subwalks.add(u,C)}}testString(u,y,C,D){if(!u.isNamed(y))return;if(!C){this.matches.add(u,D,false)}else{this.subwalks.add(u,C)}}}const makeIgnore=(u,y)=>typeof u==="string"?new Ignore([u],y):Array.isArray(u)?new Ignore(u,y):u;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#ft=[];#dt;#At;signal;maxDepth;includeChildMatches;constructor(u,y,C){this.patterns=u;this.path=y;this.opts=C;this.#At=!C.posix&&C.platform==="win32"?"\\":"/";this.includeChildMatches=C.includeChildMatches!==false;if(C.ignore||!this.includeChildMatches){this.#dt=makeIgnore(C.ignore??[],C);if(!this.includeChildMatches&&typeof this.#dt.add!=="function"){const u="cannot ignore child matches, ignore lacks add() method.";throw new Error(u)}}this.maxDepth=C.maxDepth||Infinity;if(C.signal){this.signal=C.signal;this.signal.addEventListener("abort",(()=>{this.#ft.length=0}))}}#ht(u){return this.seen.has(u)||!!this.#dt?.ignored?.(u)}#pt(u){return!!this.#dt?.childrenIgnored?.(u)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let u=undefined;while(!this.paused&&(u=this.#ft.shift())){u()}}onResume(u){if(this.signal?.aborted)return;if(!this.paused){u()}else{this.#ft.push(u)}}async matchCheck(u,y){if(y&&this.opts.nodir)return undefined;let C;if(this.opts.realpath){C=u.realpathCached()||await u.realpath();if(!C)return undefined;u=C}const D=u.isUnknown()||this.opts.stat;const _=D?await u.lstat():u;if(this.opts.follow&&this.opts.nodir&&_?.isSymbolicLink()){const u=await _.realpath();if(u&&(u.isUnknown()||this.opts.stat)){await u.lstat()}}return this.matchCheckTest(_,y)}matchCheckTest(u,y){return u&&(this.maxDepth===Infinity||u.depth()<=this.maxDepth)&&(!y||u.canReaddir())&&(!this.opts.nodir||!u.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!u.isSymbolicLink()||!u.realpathCached()?.isDirectory())&&!this.#ht(u)?u:undefined}matchCheckSync(u,y){if(y&&this.opts.nodir)return undefined;let C;if(this.opts.realpath){C=u.realpathCached()||u.realpathSync();if(!C)return undefined;u=C}const D=u.isUnknown()||this.opts.stat;const _=D?u.lstatSync():u;if(this.opts.follow&&this.opts.nodir&&_?.isSymbolicLink()){const u=_.realpathSync();if(u&&(u?.isUnknown()||this.opts.stat)){u.lstatSync()}}return this.matchCheckTest(_,y)}matchFinish(u,y){if(this.#ht(u))return;if(!this.includeChildMatches&&this.#dt?.add){const y=`${u.relativePosix()}/**`;this.#dt.add(y)}const C=this.opts.absolute===undefined?y:this.opts.absolute;this.seen.add(u);const D=this.opts.mark&&u.isDirectory()?this.#At:"";if(this.opts.withFileTypes){this.matchEmit(u)}else if(C){const y=this.opts.posix?u.fullpathPosix():u.fullpath();this.matchEmit(y+D)}else{const y=this.opts.posix?u.relativePosix():u.relative();const C=this.opts.dotRelative&&!y.startsWith(".."+this.#At)?"."+this.#At:"";this.matchEmit(!y?"."+D:C+y+D)}}async match(u,y,C){const D=await this.matchCheck(u,C);if(D)this.matchFinish(D,y)}matchSync(u,y,C){const D=this.matchCheckSync(u,C);if(D)this.matchFinish(D,y)}walkCB(u,y,C){if(this.signal?.aborted)C();this.walkCB2(u,y,new Processor(this.opts),C)}walkCB2(u,y,C,D){if(this.#pt(u))return D();if(this.signal?.aborted)D();if(this.paused){this.onResume((()=>this.walkCB2(u,y,C,D)));return}C.processPatterns(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;_++;this.match(u,y,D).then((()=>next()))}for(const u of C.subwalkTargets()){if(this.maxDepth!==Infinity&&u.depth()>=this.maxDepth){continue}_++;const y=u.readdirCached();if(u.calledReaddir())this.walkCB3(u,y,C,next);else{u.readdirCB(((y,D)=>this.walkCB3(u,D,C,next)),true)}}next()}walkCB3(u,y,C,D){C=C.filterEntries(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;_++;this.match(u,y,D).then((()=>next()))}for(const[u,y]of C.subwalks.entries()){_++;this.walkCB2(u,y,C.child(),next)}next()}walkCBSync(u,y,C){if(this.signal?.aborted)C();this.walkCB2Sync(u,y,new Processor(this.opts),C)}walkCB2Sync(u,y,C,D){if(this.#pt(u))return D();if(this.signal?.aborted)D();if(this.paused){this.onResume((()=>this.walkCB2Sync(u,y,C,D)));return}C.processPatterns(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;this.matchSync(u,y,D)}for(const u of C.subwalkTargets()){if(this.maxDepth!==Infinity&&u.depth()>=this.maxDepth){continue}_++;const y=u.readdirSync();this.walkCB3Sync(u,y,C,next)}next()}walkCB3Sync(u,y,C,D){C=C.filterEntries(u,y);let _=1;const next=()=>{if(--_===0)D()};for(const[u,y,D]of C.matches.entries()){if(this.#ht(u))continue;this.matchSync(u,y,D)}for(const[u,y]of C.subwalks.entries()){_++;this.walkCB2Sync(u,y,C.child(),next)}next()}}class GlobWalker extends GlobUtil{matches=new Set;constructor(u,y,C){super(u,y,C)}matchEmit(u){this.matches.add(u)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((u,y)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){y(this.signal.reason)}else{u(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}class GlobStream extends GlobUtil{results;constructor(u,y,C){super(u,y,C);this.results=new Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(u){this.results.write(u);if(!this.results.flowing)this.pause()}stream(){const u=this.path;if(u.isUnknown()){u.lstat().then((()=>{this.walkCB(u,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(u,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}const zr=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(u,y){if(!y)throw new TypeError("glob options required");this.withFileTypes=!!y.withFileTypes;this.signal=y.signal;this.follow=!!y.follow;this.dot=!!y.dot;this.dotRelative=!!y.dotRelative;this.nodir=!!y.nodir;this.mark=!!y.mark;if(!y.cwd){this.cwd=""}else if(y.cwd instanceof URL||y.cwd.startsWith("file://")){y.cwd=(0,vt.fileURLToPath)(y.cwd)}this.cwd=y.cwd||"";this.root=y.root;this.magicalBraces=!!y.magicalBraces;this.nobrace=!!y.nobrace;this.noext=!!y.noext;this.realpath=!!y.realpath;this.absolute=y.absolute;this.includeChildMatches=y.includeChildMatches!==false;this.noglobstar=!!y.noglobstar;this.matchBase=!!y.matchBase;this.maxDepth=typeof y.maxDepth==="number"?y.maxDepth:Infinity;this.stat=!!y.stat;this.ignore=y.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof u==="string"){u=[u]}this.windowsPathsNoEscape=!!y.windowsPathsNoEscape||y.allowWindowsEscape===false;if(this.windowsPathsNoEscape){u=u.map((u=>u.replace(/\\/g,"/")))}if(this.matchBase){if(y.noglobstar){throw new TypeError("base matching requires globstar")}u=u.map((u=>u.includes("/")?u:`./**/${u}`))}this.pattern=u;this.platform=y.platform||zr;this.opts={...y,platform:this.platform};if(y.scurry){this.scurry=y.scurry;if(y.nocase!==undefined&&y.nocase!==y.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const u=y.platform==="win32"?PathScurryWin32:y.platform==="darwin"?PathScurryDarwin:y.platform?PathScurryPosix:Wr;this.scurry=new u(this.cwd,{nocase:y.nocase,fs:y.fs})}this.nocase=this.scurry.nocase;const C=this.platform==="darwin"||this.platform==="win32";const D={...y,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:C,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const _=this.pattern.map((u=>new Minimatch(u,D)));const[j,$]=_.reduce(((u,y)=>{u[0].push(...y.set);u[1].push(...y.globParts);return u}),[[],[]]);this.patterns=j.map(((u,y)=>{const C=$[y];if(!C)throw new Error("invalid pattern object");return new Pattern(u,C,0,this.platform)}))}async walk(){return[...await new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}const hasMagic=(u,y={})=>{if(!Array.isArray(u)){u=[u]}for(const C of u){if(new Minimatch(C,y).hasMagic())return true}return false};function globStreamSync(u,y={}){return new Glob(u,y).streamSync()}function globStream(u,y={}){return new Glob(u,y).stream()}function globSync(u,y={}){return new Glob(u,y).walkSync()}async function glob_(u,y={}){return new Glob(u,y).walk()}function globIterateSync(u,y={}){return new Glob(u,y).iterateSync()}function globIterate(u,y={}){return new Glob(u,y).iterate()}const $r=globStreamSync;const qr=Object.assign(globStream,{sync:globStreamSync});const Vr=globIterateSync;const Jr=Object.assign(globIterate,{sync:globIterateSync});const Kr=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});const Yr=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:Kr,globStream:globStream,stream:qr,globStreamSync:globStreamSync,streamSync:$r,globIterate:globIterate,iterate:Jr,globIterateSync:globIterateSync,iterateSync:Vr,Glob:Glob,hasMagic:hasMagic,escape:escape_escape,unescape:unescape_unescape});Yr.glob=Yr;const FindFiles=async u=>{const{pattern:y,dir_path:D=".",case_sensitive:_=false,ignore:j=[]}=u;try{const u=$().resolve(oe.$.WORKSPACE_DIR,D);let le=[];try{const u=C.ab+"cli_executor/"+oe.$.WORKSPACE_DIR+"/.gitignore";const y=await(0,ne.readFile)(u,"utf-8");le=y.split("\n").filter((u=>u.trim()&&!u.trim().startsWith("#"))).map((u=>u.trim())).map((u=>u.endsWith("/")?`${u}**`:u)).filter((u=>!u.startsWith(".codegen")))}catch(u){}const de=[...j,...le];const Ae=await Yr(y,{cwd:u,absolute:true,stat:true,nocase:!_,ignore:de});const pe=await Promise.all(Ae.map((async u=>{const y=await(0,ne.stat)(u);return{file:u,mtime:y.mtime}})));pe.sort(((u,y)=>y.mtime.getTime()-u.mtime.getTime()));return{files:pe.map((u=>u.file))}}catch(u){return{error:u.message}}};var Xr=C(5317);const Zr=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");var en=C.n(Zr);const normalizeLine=u=>{if(u.startsWith("Error: ")){return u.slice("Error: ".length)}if(u.startsWith("VError: ")){return u.slice("VError: ".length)}return u};const getCombinedMessage=(u,y)=>{const C=normalizeLine(`${u}`);if(y){return`${y}: ${C}`}return C};const tn="\n";const getNewLineIndex=(u,y=undefined)=>u.indexOf(tn,y);const mergeStacks=(u,y)=>{if(!y){return u}const C=getNewLineIndex(u);const D=getNewLineIndex(y);if(D===-1){return u}const _=u.slice(0,C);const j=y.slice(D);const $=normalizeLine(y.slice(0,D));if(_.includes($)){return _+j}return y};class VError extends Error{constructor(u,y){const C=getCombinedMessage(u,y);super(C);this.name="VError";if(u instanceof Error){this.stack=mergeStacks(this.stack,u.stack)}if(u.codeFrame){this.codeFrame=u.codeFrame}if(u.code){this.code=u.code}}}function isPlainObject(u){if(typeof u!=="object"||u===null){return false}const y=Object.getPrototypeOf(u);return(y===null||y===Object.prototype||Object.getPrototypeOf(y)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)}const safeNormalizeFileUrl=(u,y)=>{const C=normalizeFileUrl(normalizeDenoExecPath(u));if(typeof C!=="string"){throw new TypeError(`${y} must be a string or a file URL: ${C}.`)}return C};const normalizeDenoExecPath=u=>isDenoExecPath(u)?u.toString():u;const isDenoExecPath=u=>typeof u!=="string"&&u&&Object.getPrototypeOf(u)===String.prototype;const normalizeFileUrl=u=>u instanceof URL?(0,vt.fileURLToPath)(u):u;const normalizeParameters=(u,y=[],C={})=>{const D=safeNormalizeFileUrl(u,"First argument");const[_,j]=isPlainObject(y)?[[],y]:[y,C];if(!Array.isArray(_)){throw new TypeError(`Second argument must be either an array of arguments or an options object: ${_}`)}if(_.some((u=>typeof u==="object"&&u!==null))){throw new TypeError(`Second argument must be an array of strings: ${_}`)}const $=_.map(String);const ne=$.find((u=>u.includes("\0")));if(ne!==undefined){throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${ne}`)}if(!isPlainObject(j)){throw new TypeError(`Last argument must be an options object: ${j}`)}return[D,$,j]};const rn=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");const{toString:nn}=Object.prototype;const isArrayBuffer=u=>nn.call(u)==="[object ArrayBuffer]";const isUint8Array=u=>nn.call(u)==="[object Uint8Array]";const bufferToUint8Array=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const sn=new TextEncoder;const stringToUint8Array=u=>sn.encode(u);const on=new TextDecoder;const uint8ArrayToString=u=>on.decode(u);const joinToString=(u,y)=>{const C=uint8ArraysToStrings(u,y);return C.join("")};const uint8ArraysToStrings=(u,y)=>{if(y==="utf8"&&u.every((u=>typeof u==="string"))){return u}const C=new Ot.StringDecoder(y);const D=u.map((u=>typeof u==="string"?stringToUint8Array(u):u)).map((u=>C.write(u)));const _=C.end();return _===""?D:[...D,_]};const joinToUint8Array=u=>{if(u.length===1&&isUint8Array(u[0])){return u[0]}return concatUint8Arrays(stringsToUint8Arrays(u))};const stringsToUint8Arrays=u=>u.map((u=>typeof u==="string"?stringToUint8Array(u):u));const concatUint8Arrays=u=>{const y=new Uint8Array(getJoinLength(u));let C=0;for(const D of u){y.set(D,C);C+=D.length}return y};const getJoinLength=u=>{let y=0;for(const C of u){y+=C.length}return y};const isTemplateString=u=>Array.isArray(u)&&Array.isArray(u.raw);const parseTemplates=(u,y)=>{let C=[];for(const[D,_]of u.entries()){C=parseTemplate({templates:u,expressions:y,tokens:C,index:D,template:_})}if(C.length===0){throw new TypeError("Template script must not be empty")}const[D,..._]=C;return[D,_,{}]};const parseTemplate=({templates:u,expressions:y,tokens:C,index:D,template:_})=>{if(_===undefined){throw new TypeError(`Invalid backslash sequence: ${u.raw[D]}`)}const{nextTokens:j,leadingWhitespaces:$,trailingWhitespaces:ne}=splitByWhitespaces(_,u.raw[D]);const oe=concatTokens(C,j,$);if(D===y.length){return oe}const le=y[D];const de=Array.isArray(le)?le.map((u=>parseExpression(u))):[parseExpression(le)];return concatTokens(oe,de,ne)};const splitByWhitespaces=(u,y)=>{if(y.length===0){return{nextTokens:[],leadingWhitespaces:false,trailingWhitespaces:false}}const C=[];let D=0;const _=an.has(y[0]);for(let _=0,j=0;_<u.length;_+=1,j+=1){const $=y[j];if(an.has($)){if(D!==_){C.push(u.slice(D,_))}D=_+1}else if($==="\\"){const u=y[j+1];if(u==="\n"){_-=1;j+=1}else if(u==="u"&&y[j+2]==="{"){j=y.indexOf("}",j+3)}else{j+=ln[u]??1}}}const j=D===u.length;if(!j){C.push(u.slice(D))}return{nextTokens:C,leadingWhitespaces:_,trailingWhitespaces:j}};const an=new Set([" ","\t","\r","\n"]);const ln={x:3,u:5};const concatTokens=(u,y,C)=>C||u.length===0||y.length===0?[...u,...y]:[...u.slice(0,-1),`${u.at(-1)}${y[0]}`,...y.slice(1)];const parseExpression=u=>{const y=typeof u;if(y==="string"){return u}if(y==="number"){return String(u)}if(isPlainObject(u)&&("stdout"in u||"isMaxBuffer"in u)){return getSubprocessResult(u)}if(u instanceof rn.ChildProcess||Object.prototype.toString.call(u)==="[object Promise]"){throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.")}throw new TypeError(`Unexpected "${y}" in template expression`)};const getSubprocessResult=({stdout:u})=>{if(typeof u==="string"){return u}if(isUint8Array(u)){return uint8ArrayToString(u)}if(u===undefined){throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.')}throw new TypeError(`Unexpected "${typeof u}" stdout in template expression`)};const cn=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util");var un=C(1708);const isStandardStream=u=>fn.includes(u);const fn=[un.stdin,un.stdout,un.stderr];const dn=["stdin","stdout","stderr"];const getStreamName=u=>dn[u]??`stdio[${u}]`;const normalizeFdSpecificOptions=u=>{const y={...u};for(const C of gn){y[C]=normalizeFdSpecificOption(u,C)}return y};const normalizeFdSpecificOption=(u,y)=>{const C=Array.from({length:getStdioLength(u)+1});const D=normalizeFdSpecificValue(u[y],C,y);return addDefaultValue(D,y)};const getStdioLength=({stdio:u})=>Array.isArray(u)?Math.max(u.length,dn.length):dn.length;const normalizeFdSpecificValue=(u,y,C)=>isPlainObject(u)?normalizeOptionObject(u,y,C):y.fill(u);const normalizeOptionObject=(u,y,C)=>{for(const D of Object.keys(u).sort(compareFdName)){for(const _ of parseFdName(D,C,y)){y[_]=u[D]}}return y};const compareFdName=(u,y)=>getFdNameOrder(u)<getFdNameOrder(y)?1:-1;const getFdNameOrder=u=>{if(u==="stdout"||u==="stderr"){return 0}return u==="all"?2:1};const parseFdName=(u,y,C)=>{if(u==="ipc"){return[C.length-1]}const D=parseFd(u);if(D===undefined||D===0){throw new TypeError(`"${y}.${u}" is invalid.\nIt must be "${y}.stdout", "${y}.stderr", "${y}.all", "${y}.ipc", or "${y}.fd3", "${y}.fd4" (and so on).`)}if(D>=C.length){throw new TypeError(`"${y}.${u}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}return D==="all"?[1,2]:[D]};const parseFd=u=>{if(u==="all"){return u}if(dn.includes(u)){return dn.indexOf(u)}const y=An.exec(u);if(y!==null){return Number(y[1])}};const An=/^fd(\d+)$/;const addDefaultValue=(u,y)=>u.map((u=>u===undefined?pn[y]:u));const hn=(0,cn.debuglog)("execa").enabled?"full":"none";const pn={lines:false,buffer:true,maxBuffer:1e3*1e3*100,verbose:hn,stripFinalNewline:true};const gn=["lines","buffer","maxBuffer","verbose","stripFinalNewline"];const getFdSpecificValue=(u,y)=>y==="ipc"?u.at(-1):u[y];const isVerbose=({verbose:u},y)=>getFdVerbose(u,y)!=="none";const isFullVerbose=({verbose:u},y)=>!["none","short"].includes(getFdVerbose(u,y));const getVerboseFunction=({verbose:u},y)=>{const C=getFdVerbose(u,y);return isVerboseFunction(C)?C:undefined};const getFdVerbose=(u,y)=>y===undefined?getFdGenericVerbose(u):getFdSpecificValue(u,y);const getFdGenericVerbose=u=>u.find((u=>isVerboseFunction(u)))??mn.findLast((y=>u.includes(y)));const isVerboseFunction=u=>typeof u==="function";const mn=["none","short","full"];const joinCommand=(u,y)=>{const C=[u,...y];const D=C.join(" ");const _=C.map((u=>quoteString(escapeControlCharacters(u)))).join(" ");return{command:D,escapedCommand:_}};const escapeLines=u=>(0,cn.stripVTControlCharacters)(u).split("\n").map((u=>escapeControlCharacters(u))).join("\n");const escapeControlCharacters=u=>u.replaceAll(yn,(u=>escapeControlCharacter(u)));const escapeControlCharacter=u=>{const y=En[u];if(y!==undefined){return y}const C=u.codePointAt(0);const D=C.toString(16);return C<=Cn?`\\u${D.padStart(4,"0")}`:`\\U${D}`};const getSpecialCharRegExp=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}};const yn=getSpecialCharRegExp();const En={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const Cn=65535;const quoteString=u=>{if(In.test(u)){return u}return un.platform==="win32"?`"${u.replaceAll('"','""')}"`:`'${u.replaceAll("'","'\\''")}'`};const In=/^[\w./-]+$/;function isUnicodeSupported(){const{env:u}=un;const{TERM:y,TERM_PROGRAM:C}=u;if(un.platform!=="win32"){return y!=="linux"}return Boolean(u.WT_SESSION)||Boolean(u.TERMINUS_SUBLIME)||u.ConEmuTask==="{cmd::Cmder}"||C==="Terminus-Sublime"||C==="vscode"||y==="xterm-256color"||y==="alacritty"||y==="rxvt-unicode"||y==="rxvt-unicode-256color"||u.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const bn={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"};const vn={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"};const wn={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};const Bn={...bn,...vn};const Dn={...bn,...wn};const Sn=isUnicodeSupported();const kn=Sn?Bn:Dn;const Qn=kn;const xn=Object.entries(vn);const replaceSymbols=(u,{useFallback:y=!Sn}={})=>{if(y){for(const[y,C]of xn){u=u.replaceAll(C,Dn[y])}}return u};var Fn=C(7066);const _n=Fn?.WriteStream?.prototype?.hasColors?.()??false;const format=(u,y)=>{if(!_n){return u=>u}const C=`[${u}m`;const D=`[${y}m`;return u=>{const _=u+"";let j=_.indexOf(D);if(j===-1){return C+_+D}let $=C;let ne=0;const oe=y===22;const le=(oe?D:"")+C;while(j!==-1){$+=_.slice(ne,j)+le;ne=j+D.length;j=_.indexOf(D,ne)}$+=_.slice(ne)+D;return $}};const Rn=format(0,0);const Ln=format(1,22);const Nn=format(2,22);const Tn=format(3,23);const Pn=format(4,24);const On=format(53,55);const Mn=format(7,27);const Un=format(8,28);const Hn=format(9,29);const Gn=format(30,39);const Wn=format(31,39);const jn=format(32,39);const zn=format(33,39);const $n=format(34,39);const qn=format(35,39);const Vn=format(36,39);const Jn=format(37,39);const Kn=format(90,39);const Yn=format(40,49);const Xn=format(41,49);const Zn=format(42,49);const ti=format(43,49);const ri=format(44,49);const si=format(45,49);const oi=format(46,49);const ai=format(47,49);const ui=format(100,49);const Ai=format(91,39);const pi=format(92,39);const yi=format(93,39);const Ei=format(94,39);const Ci=format(95,39);const Ii=format(96,39);const vi=format(97,39);const wi=format(101,49);const Bi=format(102,49);const Di=format(103,49);const Si=format(104,49);const Qi=format(105,49);const xi=format(106,49);const Fi=format(107,49);const defaultVerboseFunction=({type:u,message:y,timestamp:C,piped:D,commandId:_,result:{failed:j=false}={},options:{reject:$=true}})=>{const ne=serializeTimestamp(C);const oe=_i[u]({failed:j,reject:$,piped:D});const le=Ri[u]({reject:$});return`${Kn(`[${ne}]`)} ${Kn(`[${_}]`)} ${le(oe)} ${le(y)}`};const serializeTimestamp=u=>`${padField(u.getHours(),2)}:${padField(u.getMinutes(),2)}:${padField(u.getSeconds(),2)}.${padField(u.getMilliseconds(),3)}`;const padField=(u,y)=>String(u).padStart(y,"0");const getFinalIcon=({failed:u,reject:y})=>{if(!u){return Qn.tick}return y?Qn.cross:Qn.warning};const _i={command:({piped:u})=>u?"|":"$",output:()=>" ",ipc:()=>"*",error:getFinalIcon,duration:getFinalIcon};const identity=u=>u;const Ri={command:()=>Ln,output:()=>identity,ipc:()=>identity,error:({reject:u})=>u?Ai:yi,duration:()=>Kn};const applyVerboseOnLines=(u,y,C)=>{const D=getVerboseFunction(y,C);return u.map((({verboseLine:u,verboseObject:y})=>applyVerboseFunction(u,y,D))).filter((u=>u!==undefined)).map((u=>appendNewline(u))).join("")};const applyVerboseFunction=(u,y,C)=>{if(C===undefined){return u}const D=C(u,y);if(typeof D==="string"){return D}};const appendNewline=u=>u.endsWith("\n")?u:`${u}\n`;const verboseLog=({type:u,verboseMessage:y,fdNumber:C,verboseInfo:D,result:_})=>{const j=getVerboseObject({type:u,result:_,verboseInfo:D});const $=getPrintedLines(y,j);const ne=applyVerboseOnLines($,D,C);if(ne!==""){console.warn(ne.slice(0,-1))}};const getVerboseObject=({type:u,result:y,verboseInfo:{escapedCommand:C,commandId:D,rawOptions:{piped:_=false,...j}}})=>({type:u,escapedCommand:C,commandId:`${D}`,timestamp:new Date,piped:_,result:y,options:j});const getPrintedLines=(u,y)=>u.split("\n").map((u=>getPrintedLine({...y,message:u})));const getPrintedLine=u=>{const y=defaultVerboseFunction(u);return{verboseLine:y,verboseObject:u}};const serializeVerboseMessage=u=>{const y=typeof u==="string"?u:(0,cn.inspect)(u);const C=escapeLines(y);return C.replaceAll("\t"," ".repeat(Li))};const Li=2;const logCommand=(u,y)=>{if(!isVerbose(y)){return}verboseLog({type:"command",verboseMessage:u,verboseInfo:y})};const getVerboseInfo=(u,y,C)=>{validateVerbose(u);const D=getCommandId(u);return{verbose:u,escapedCommand:y,commandId:D,rawOptions:C}};const getCommandId=u=>isVerbose({verbose:u})?Ni++:undefined;let Ni=0n;const validateVerbose=u=>{for(const y of u){if(y===false){throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".')}if(y===true){throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".')}if(!mn.includes(y)&&!isVerboseFunction(y)){const u=mn.map((u=>`'${u}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${y}. Allowed values are: ${u} or a function.`)}}};const getStartTime=()=>un.hrtime.bigint();const getDurationMs=u=>Number(un.hrtime.bigint()-u)/1e6;const handleCommand=(u,y,C)=>{const D=getStartTime();const{command:_,escapedCommand:j}=joinCommand(u,y);const $=normalizeFdSpecificOption(C,"verbose");const ne=getVerboseInfo($,j,{...C});logCommand(j,ne);return{command:_,escapedCommand:j,startTime:D,verboseInfo:ne}};var Ti=C(546);function pathKey(u={}){const{env:y=process.env,platform:C=process.platform}=u;if(C!=="win32"){return"PATH"}return Object.keys(y).reverse().find((u=>u.toUpperCase()==="PATH"))||"Path"}const Pi=(0,cn.promisify)(rn.execFile);function toPath(u){return u instanceof URL?(0,vt.fileURLToPath)(u):u}function rootDirectory(u){return path.parse(toPath(u)).root}function traversePathUp(u){return{*[Symbol.iterator](){let y=xt.resolve(toPath(u));let C;while(C!==y){yield y;C=y;y=xt.resolve(y,"..")}}}}const Oi=null&&10*1024*1024;async function execFile(u,y,C={}){return Pi(u,y,{maxBuffer:Oi,...C})}function execFileSync(u,y=[],C={}){return execFileSyncOriginal(u,y,{maxBuffer:Oi,encoding:"utf8",stdio:"pipe",...C})}const npmRunPath=({cwd:u=un.cwd(),path:y=un.env[pathKey()],preferLocal:C=true,execPath:D=un.execPath,addExecPath:_=true}={})=>{const j=xt.resolve(toPath(u));const $=[];const ne=y.split(xt.delimiter);if(C){applyPreferLocal($,ne,j)}if(_){applyExecPath($,ne,D,j)}return y===""||y===xt.delimiter?`${$.join(xt.delimiter)}${y}`:[...$,y].join(xt.delimiter)};const applyPreferLocal=(u,y,C)=>{for(const D of traversePathUp(C)){const C=xt.join(D,"node_modules/.bin");if(!y.includes(C)){u.push(C)}}};const applyExecPath=(u,y,C,D)=>{const _=xt.resolve(D,toPath(C),"..");if(!y.includes(_)){u.push(_)}};const npmRunPathEnv=({env:u=un.env,...y}={})=>{u={...u};const C=pathKey({env:u});y.path=u[C];u[C]=npmRunPath(y);return u};const Mi=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises");const getFinalError=(u,y,C)=>{const D=C?ExecaSyncError:ExecaError;const _=u instanceof DiscardedError?{}:{cause:u};return new D(y,_)};class DiscardedError extends Error{}const setErrorName=(u,y)=>{Object.defineProperty(u.prototype,"name",{value:y,writable:true,enumerable:false,configurable:true});Object.defineProperty(u.prototype,Ui,{value:true,writable:false,enumerable:false,configurable:false})};const isExecaError=u=>isErrorInstance(u)&&Ui in u;const Ui=Symbol("isExecaError");const isErrorInstance=u=>Object.prototype.toString.call(u)==="[object Error]";class ExecaError extends Error{}setErrorName(ExecaError,ExecaError.name);class ExecaSyncError extends Error{}setErrorName(ExecaSyncError,ExecaSyncError.name);var Hi=C(8161);const getRealtimeSignals=()=>{const u=Wi-Gi+1;return Array.from({length:u},getRealtimeSignal)};const getRealtimeSignal=(u,y)=>({name:`SIGRT${y+1}`,number:Gi+y,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"});const Gi=34;const Wi=64;const zi=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];const getSignals=()=>{const u=getRealtimeSignals();const y=[...zi,...u].map(normalizeSignal);return y};const normalizeSignal=({name:u,number:y,description:C,action:D,forced:_=false,standard:j})=>{const{signals:{[u]:$}}=Hi.constants;const ne=$!==undefined;const oe=ne?$:y;return{name:u,number:oe,description:C,supported:ne,action:D,forced:_,standard:j}};const getSignalsByName=()=>{const u=getSignals();return Object.fromEntries(u.map(getSignalByName))};const getSignalByName=({name:u,number:y,description:C,supported:D,action:_,forced:j,standard:$})=>[u,{name:u,number:y,description:C,supported:D,action:_,forced:j,standard:$}];const $i=getSignalsByName();const getSignalsByNumber=()=>{const u=getSignals();const y=Wi+1;const C=Array.from({length:y},((y,C)=>getSignalByNumber(C,u)));return Object.assign({},...C)};const getSignalByNumber=(u,y)=>{const C=findSignalByNumber(u,y);if(C===undefined){return{}}const{name:D,description:_,supported:j,action:$,forced:ne,standard:oe}=C;return{[u]:{name:D,number:u,description:_,supported:j,action:$,forced:ne,standard:oe}}};const findSignalByNumber=(u,y)=>{const C=y.find((({name:y})=>Hi.constants.signals[y]===u));if(C!==undefined){return C}return y.find((y=>y.number===u))};const qi=getSignalsByNumber();const normalizeKillSignal=u=>{const y="option `killSignal`";if(u===0){throw new TypeError(`Invalid ${y}: 0 cannot be used.`)}return signal_normalizeSignal(u,y)};const normalizeSignalArgument=u=>u===0?u:signal_normalizeSignal(u,"`subprocess.kill()`'s argument");const signal_normalizeSignal=(u,y)=>{if(Number.isInteger(u)){return normalizeSignalInteger(u,y)}if(typeof u==="string"){return normalizeSignalName(u,y)}throw new TypeError(`Invalid ${y} ${String(u)}: it must be a string or an integer.\n${getAvailableSignals()}`)};const normalizeSignalInteger=(u,y)=>{if(Vi.has(u)){return Vi.get(u)}throw new TypeError(`Invalid ${y} ${u}: this signal integer does not exist.\n${getAvailableSignals()}`)};const getSignalsIntegerToName=()=>new Map(Object.entries(Hi.constants.signals).reverse().map((([u,y])=>[y,u])));const Vi=getSignalsIntegerToName();const normalizeSignalName=(u,y)=>{if(u in Hi.constants.signals){return u}if(u.toUpperCase()in Hi.constants.signals){throw new TypeError(`Invalid ${y} '${u}': please rename it to '${u.toUpperCase()}'.`)}throw new TypeError(`Invalid ${y} '${u}': this signal name does not exist.\n${getAvailableSignals()}`)};const getAvailableSignals=()=>`Available signal names: ${getAvailableSignalNames()}.\nAvailable signal numbers: ${getAvailableSignalIntegers()}.`;const getAvailableSignalNames=()=>Object.keys(Hi.constants.signals).sort().map((u=>`'${u}'`)).join(", ");const getAvailableSignalIntegers=()=>[...new Set(Object.values(Hi.constants.signals).sort(((u,y)=>u-y)))].join(", ");const getSignalDescription=u=>$i[u].description;const normalizeForceKillAfterDelay=u=>{if(u===false){return u}if(u===true){return Ji}if(!Number.isFinite(u)||u<0){throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)}return u};const Ji=1e3*5;const subprocessKill=({kill:u,options:{forceKillAfterDelay:y,killSignal:C},onInternalError:D,context:_,controller:j},$,ne)=>{const{signal:oe,error:le}=parseKillArguments($,ne,C);emitKillError(le,D);const de=u(oe);setKillTimeout({kill:u,signal:oe,forceKillAfterDelay:y,killSignal:C,killResult:de,context:_,controller:j});return de};const parseKillArguments=(u,y,C)=>{const[D=C,_]=isErrorInstance(u)?[undefined,u]:[u,y];if(typeof D!=="string"&&!Number.isInteger(D)){throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(D)}`)}if(_!==undefined&&!isErrorInstance(_)){throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${_}`)}return{signal:normalizeSignalArgument(D),error:_}};const emitKillError=(u,y)=>{if(u!==undefined){y.reject(u)}};const setKillTimeout=async({kill:u,signal:y,forceKillAfterDelay:C,killSignal:D,killResult:_,context:j,controller:$})=>{if(y===D&&_){killOnTimeout({kill:u,forceKillAfterDelay:C,context:j,controllerSignal:$.signal})}};const killOnTimeout=async({kill:u,forceKillAfterDelay:y,context:C,controllerSignal:D})=>{if(y===false){return}try{await(0,Mi.setTimeout)(y,undefined,{signal:D});if(u("SIGKILL")){C.isForcefullyTerminated??=true}}catch{}};const onAbortedSignal=async(u,y)=>{if(!u.aborted){await(0,Tt.once)(u,"abort",{signal:y})}};const validateCancelSignal=({cancelSignal:u})=>{if(u!==undefined&&Object.prototype.toString.call(u)!=="[object AbortSignal]"){throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(u)}`)}};const throwOnCancel=({subprocess:u,cancelSignal:y,gracefulCancel:C,context:D,controller:_})=>y===undefined||C?[]:[terminateOnCancel(u,y,D,_)];const terminateOnCancel=async(u,y,C,{signal:D})=>{await onAbortedSignal(y,D);C.terminationReason??="cancel";u.kill();throw y.reason};const validateIpcMethod=({methodName:u,isSubprocess:y,ipc:C,isConnected:D})=>{validateIpcOption(u,y,C);validateConnection(u,y,D)};const validateIpcOption=(u,y,C)=>{if(!C){throw new Error(`${getMethodName(u,y)} can only be used if the \`ipc\` option is \`true\`.`)}};const validateConnection=(u,y,C)=>{if(!C){throw new Error(`${getMethodName(u,y)} cannot be used: the ${getOtherProcessName(y)} has already exited or disconnected.`)}};const throwOnEarlyDisconnect=u=>{throw new Error(`${getMethodName("getOneMessage",u)} could not complete: the ${getOtherProcessName(u)} exited or disconnected.`)};const throwOnStrictDeadlockError=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${getMethodName("getOneMessage",u)},\n\t${getMethodName("sendMessage",u,"message, {strict: true}")},\n]);`)};const getStrictResponseError=(u,y)=>new Error(`${getMethodName("sendMessage",y)} failed when sending an acknowledgment response to the ${getOtherProcessName(y)}.`,{cause:u});const throwOnMissingStrict=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} is not listening to incoming messages.`)};const throwOnStrictDisconnect=u=>{throw new Error(`${getMethodName("sendMessage",u)} failed: the ${getOtherProcessName(u)} exited without listening to incoming messages.`)};const getAbortDisconnectError=()=>new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);const throwOnMissingParent=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")};const handleEpipeError=({error:u,methodName:y,isSubprocess:C})=>{if(u.code==="EPIPE"){throw new Error(`${getMethodName(y,C)} cannot be used: the ${getOtherProcessName(C)} is disconnecting.`,{cause:u})}};const handleSerializationError=({error:u,methodName:y,isSubprocess:C,message:D})=>{if(isSerializationError(u)){throw new Error(`${getMethodName(y,C)}'s argument type is invalid: the message cannot be serialized: ${String(D)}.`,{cause:u})}};const isSerializationError=({code:u,message:y})=>Ki.has(u)||Yi.some((u=>y.includes(u)));const Ki=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]);const Yi=["could not be cloned","circular structure","call stack size exceeded"];const getMethodName=(u,y,C="")=>u==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${getNamespaceName(y)}${u}(${C})`;const getNamespaceName=u=>u?"":"subprocess.";const getOtherProcessName=u=>u?"parent process":"subprocess";const disconnect=u=>{if(u.connected){u.disconnect()}};const createDeferred=()=>{const u={};const y=new Promise(((y,C)=>{Object.assign(u,{resolve:y,reject:C})}));return Object.assign(y,u)};const getToStream=(u,y="stdin")=>{const C=true;const{options:D,fileDescriptors:_}=Xi.get(u);const j=getFdNumber(_,y,C);const $=u.stdio[j];if($===null){throw new TypeError(getInvalidStdioOptionMessage(j,y,D,C))}return $};const getFromStream=(u,y="stdout")=>{const C=false;const{options:D,fileDescriptors:_}=Xi.get(u);const j=getFdNumber(_,y,C);const $=j==="all"?u.all:u.stdio[j];if($===null||$===undefined){throw new TypeError(getInvalidStdioOptionMessage(j,y,D,C))}return $};const Xi=new WeakMap;const getFdNumber=(u,y,C)=>{const D=parseFdNumber(y,C);validateFdNumber(D,y,C,u);return D};const parseFdNumber=(u,y)=>{const C=parseFd(u);if(C!==undefined){return C}const{validOptions:D,defaultValue:_}=y?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${getOptionName(y)}" must not be "${u}".\nIt must be ${D} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${_}".`)};const validateFdNumber=(u,y,C,D)=>{const _=D[getUsedDescriptor(u)];if(_===undefined){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}if(_.direction==="input"&&!C){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. It must be a readable stream, not writable.`)}if(_.direction!=="input"&&C){throw new TypeError(`"${getOptionName(C)}" must not be ${y}. It must be a writable stream, not readable.`)}};const getInvalidStdioOptionMessage=(u,y,C,D)=>{if(u==="all"&&!C.all){return'The "all" option must be true to use "from: \'all\'".'}const{optionName:_,optionValue:j}=getInvalidStdioOption(u,C);return`The "${_}: ${serializeOptionValue(j)}" option is incompatible with using "${getOptionName(D)}: ${serializeOptionValue(y)}".\nPlease set this option with "pipe" instead.`};const getInvalidStdioOption=(u,{stdin:y,stdout:C,stderr:D,stdio:_})=>{const j=getUsedDescriptor(u);if(j===0&&y!==undefined){return{optionName:"stdin",optionValue:y}}if(j===1&&C!==undefined){return{optionName:"stdout",optionValue:C}}if(j===2&&D!==undefined){return{optionName:"stderr",optionValue:D}}return{optionName:`stdio[${j}]`,optionValue:_[j]}};const getUsedDescriptor=u=>u==="all"?1:u;const getOptionName=u=>u?"to":"from";const serializeOptionValue=u=>{if(typeof u==="string"){return`'${u}'`}return typeof u==="number"?`${u}`:"Stream"};const incrementMaxListeners=(u,y,C)=>{const D=u.getMaxListeners();if(D===0||D===Number.POSITIVE_INFINITY){return}u.setMaxListeners(D+y);(0,Tt.addAbortListener)(C,(()=>{u.setMaxListeners(u.getMaxListeners()-y)}))};const addReference=(u,y)=>{if(y){addReferenceCount(u)}};const addReferenceCount=u=>{u.refCounted()};const removeReference=(u,y)=>{if(y){removeReferenceCount(u)}};const removeReferenceCount=u=>{u.unrefCounted()};const undoAddedReferences=(u,y)=>{if(y){removeReferenceCount(u);removeReferenceCount(u)}};const redoAddedReferences=(u,y)=>{if(y){addReferenceCount(u);addReferenceCount(u)}};const onMessage=async({anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D},_)=>{if(handleStrictResponse(_)||handleAbort(_)){return}if(!Zi.has(u)){Zi.set(u,[])}const j=Zi.get(u);j.push(_);if(j.length>1){return}while(j.length>0){await waitForOutgoingMessages(u,D,_);await Mi.scheduler.yield();const $=await handleStrictRequest({wrappedMessage:j[0],anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D});j.shift();D.emit("message",$);D.emit("message:done")}};const onDisconnect=async({anyProcess:u,channel:y,isSubprocess:C,ipcEmitter:D,boundOnMessage:_})=>{abortOnDisconnect();const j=Zi.get(u);while(j?.length>0){await(0,Tt.once)(D,"message:done")}u.removeListener("message",_);redoAddedReferences(y,C);D.connected=false;D.emit("disconnect")};const Zi=new WeakMap;const getIpcEmitter=(u,y,C)=>{if(es.has(u)){return es.get(u)}const D=new Tt.EventEmitter;D.connected=true;es.set(u,D);forwardEvents({ipcEmitter:D,anyProcess:u,channel:y,isSubprocess:C});return D};const es=new WeakMap;const forwardEvents=({ipcEmitter:u,anyProcess:y,channel:C,isSubprocess:D})=>{const _=onMessage.bind(undefined,{anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:u});y.on("message",_);y.once("disconnect",onDisconnect.bind(undefined,{anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:u,boundOnMessage:_}));undoAddedReferences(C,D)};const isConnected=u=>{const y=es.get(u);return y===undefined?u.channel!==null:y.connected};const handleSendStrict=({anyProcess:u,channel:y,isSubprocess:C,message:D,strict:_})=>{if(!_){return D}const j=getIpcEmitter(u,y,C);const $=hasMessageListeners(u,j);return{id:ts++,type:ns,message:D,hasListeners:$}};let ts=0n;const validateStrictDeadlock=(u,y)=>{if(y?.type!==ns||y.hasListeners){return}for(const{id:y}of u){if(y!==undefined){rs[y].resolve({isDeadlock:true,hasListeners:false})}}};const handleStrictRequest=async({wrappedMessage:u,anyProcess:y,channel:C,isSubprocess:D,ipcEmitter:_})=>{if(u?.type!==ns||!y.connected){return u}const{id:j,message:$}=u;const ne={id:j,type:ss,message:hasMessageListeners(y,_)};try{await sendMessage({anyProcess:y,channel:C,isSubprocess:D,ipc:true},ne)}catch(u){_.emit("strict:error",u)}return $};const handleStrictResponse=u=>{if(u?.type!==ss){return false}const{id:y,message:C}=u;rs[y]?.resolve({isDeadlock:false,hasListeners:C});return true};const waitForStrictResponse=async(u,y,C)=>{if(u?.type!==ns){return}const D=createDeferred();rs[u.id]=D;const _=new AbortController;try{const{isDeadlock:u,hasListeners:j}=await Promise.race([D,throwOnDisconnect(y,C,_)]);if(u){throwOnStrictDeadlockError(C)}if(!j){throwOnMissingStrict(C)}}finally{_.abort();delete rs[u.id]}};const rs={};const throwOnDisconnect=async(u,y,{signal:C})=>{incrementMaxListeners(u,1,C);await(0,Tt.once)(u,"disconnect",{signal:C});throwOnStrictDisconnect(y)};const ns="execa:ipc:request";const ss="execa:ipc:response";const startSendMessage=(u,y,C)=>{if(!os.has(u)){os.set(u,new Set)}const D=os.get(u);const _=createDeferred();const j=C?y.id:undefined;const $={onMessageSent:_,id:j};D.add($);return{outgoingMessages:D,outgoingMessage:$}};const endSendMessage=({outgoingMessages:u,outgoingMessage:y})=>{u.delete(y);y.onMessageSent.resolve()};const waitForOutgoingMessages=async(u,y,C)=>{while(!hasMessageListeners(u,y)&&os.get(u)?.size>0){const y=[...os.get(u)];validateStrictDeadlock(y,C);await Promise.all(y.map((({onMessageSent:u})=>u)))}};const os=new WeakMap;const hasMessageListeners=(u,y)=>y.listenerCount("message")>getMinListenerCount(u);const getMinListenerCount=u=>Xi.has(u)&&!getFdSpecificValue(Xi.get(u).options.buffer,"ipc")?1:0;const sendMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},_,{strict:j=false}={})=>{const $="sendMessage";validateIpcMethod({methodName:$,isSubprocess:C,ipc:D,isConnected:u.connected});return sendMessageAsync({anyProcess:u,channel:y,methodName:$,isSubprocess:C,message:_,strict:j})};const sendMessageAsync=async({anyProcess:u,channel:y,methodName:C,isSubprocess:D,message:_,strict:j})=>{const $=handleSendStrict({anyProcess:u,channel:y,isSubprocess:D,message:_,strict:j});const ne=startSendMessage(u,$,j);try{await sendOneMessage({anyProcess:u,methodName:C,isSubprocess:D,wrappedMessage:$,message:_})}catch(y){disconnect(u);throw y}finally{endSendMessage(ne)}};const sendOneMessage=async({anyProcess:u,methodName:y,isSubprocess:C,wrappedMessage:D,message:_})=>{const j=getSendMethod(u);try{await Promise.all([waitForStrictResponse(D,u,C),j(D)])}catch(u){handleEpipeError({error:u,methodName:y,isSubprocess:C});handleSerializationError({error:u,methodName:y,isSubprocess:C,message:_});throw u}};const getSendMethod=u=>{if(as.has(u)){return as.get(u)}const y=(0,cn.promisify)(u.send.bind(u));as.set(u,y);return y};const as=new WeakMap;const sendAbort=(u,y)=>{const C="cancelSignal";validateConnection(C,false,u.connected);return sendOneMessage({anyProcess:u,methodName:C,isSubprocess:false,wrappedMessage:{type:cs,message:y},message:y})};const getCancelSignal=async({anyProcess:u,channel:y,isSubprocess:C,ipc:D})=>{await startIpc({anyProcess:u,channel:y,isSubprocess:C,ipc:D});return us.signal};const startIpc=async({anyProcess:u,channel:y,isSubprocess:C,ipc:D})=>{if(ls){return}ls=true;if(!D){throwOnMissingParent();return}if(y===null){abortOnDisconnect();return}getIpcEmitter(u,y,C);await Mi.scheduler.yield()};let ls=false;const handleAbort=u=>{if(u?.type!==cs){return false}us.abort(u.message);return true};const cs="execa:ipc:cancel";const abortOnDisconnect=()=>{us.abort(getAbortDisconnectError())};const us=new AbortController;const validateGracefulCancel=({gracefulCancel:u,cancelSignal:y,ipc:C,serialization:D})=>{if(!u){return}if(y===undefined){throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.")}if(!C){throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.")}if(D==="json"){throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}};const throwOnGracefulCancel=({subprocess:u,cancelSignal:y,gracefulCancel:C,forceKillAfterDelay:D,context:_,controller:j})=>C?[sendOnAbort({subprocess:u,cancelSignal:y,forceKillAfterDelay:D,context:_,controller:j})]:[];const sendOnAbort=async({subprocess:u,cancelSignal:y,forceKillAfterDelay:C,context:D,controller:{signal:_}})=>{await onAbortedSignal(y,_);const j=getReason(y);await sendAbort(u,j);killOnTimeout({kill:u.kill,forceKillAfterDelay:C,context:D,controllerSignal:_});D.terminationReason??="gracefulCancel";throw y.reason};const getReason=({reason:u})=>{if(!(u instanceof DOMException)){return u}const y=new Error(u.message);Object.defineProperty(y,"stack",{value:u.stack,enumerable:false,configurable:true,writable:true});return y};const timeout_validateTimeout=({timeout:u})=>{if(u!==undefined&&(!Number.isFinite(u)||u<0)){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)}};const throwOnTimeout=(u,y,C,D)=>y===0||y===undefined?[]:[killAfterTimeout(u,y,C,D)];const killAfterTimeout=async(u,y,C,{signal:D})=>{await(0,Mi.setTimeout)(y,undefined,{signal:D});C.terminationReason??="timeout";u.kill();throw new DiscardedError};const mapNode=({options:u})=>{if(u.node===false){throw new TypeError('The "node" option cannot be false with `execaNode()`.')}return{options:{...u,node:true}}};const handleNodeOption=(u,y,{node:C=false,nodePath:D=un.execPath,nodeOptions:_=un.execArgv.filter((u=>!u.startsWith("--inspect"))),cwd:j,execPath:$,...ne})=>{if($!==undefined){throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.')}const oe=safeNormalizeFileUrl(D,'The "nodePath" option');const le=xt.resolve(j,oe);const de={...ne,nodePath:le,node:C,cwd:j};if(!C){return[u,y,de]}if(xt.basename(u,".exe")==="node"){throw new TypeError('When the "node" option is true, the first argument does not need to be "node".')}return[le,[..._,u,...y],{ipc:true,...de,shell:false}]};const fs=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:v8");const validateIpcInputOption=({ipcInput:u,ipc:y,serialization:C})=>{if(u===undefined){return}if(!y){throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.")}ds[C](u)};const validateAdvancedInput=u=>{try{(0,fs.serialize)(u)}catch(u){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:u})}};const validateJsonInput=u=>{try{JSON.stringify(u)}catch(u){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:u})}};const ds={advanced:validateAdvancedInput,json:validateJsonInput};const sendIpcInput=async(u,y)=>{if(y===undefined){return}await u.sendMessage(y)};const validateEncoding=({encoding:u})=>{if(ps.has(u)){return}const y=getCorrectEncoding(u);if(y!==undefined){throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(u)}\`.\nPlease rename it to ${serializeEncoding(y)}.`)}const C=[...ps].map((u=>serializeEncoding(u))).join(", ");throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(u)}\`.\nPlease rename it to one of: ${C}.`)};const As=new Set(["utf8","utf16le"]);const hs=new Set(["buffer","hex","base64","base64url","latin1","ascii"]);const ps=new Set([...As,...hs]);const getCorrectEncoding=u=>{if(u===null){return"buffer"}if(typeof u!=="string"){return}const y=u.toLowerCase();if(y in gs){return gs[y]}if(ps.has(y)){return y}};const gs={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"};const serializeEncoding=u=>typeof u==="string"?`"${u}"`:String(u);const normalizeCwd=(u=getDefaultCwd())=>{const y=safeNormalizeFileUrl(u,'The "cwd" option');return xt.resolve(y)};const getDefaultCwd=()=>{try{return un.cwd()}catch(u){u.message=`The current directory does not exist.\n${u.message}`;throw u}};const fixCwdError=(u,y)=>{if(y===getDefaultCwd()){return u}let C;try{C=(0,Rt.statSync)(y)}catch(C){return`The "cwd" option is invalid: ${y}.\n${C.message}\n${u}`}if(!C.isDirectory()){return`The "cwd" option is not a directory: ${y}.\n${u}`}return u};const normalizeOptions=(u,y,C)=>{C.cwd=normalizeCwd(C.cwd);const[D,_,j]=handleNodeOption(u,y,C);const{command:$,args:ne,options:oe}=Ti._parse(D,_,j);const le=normalizeFdSpecificOptions(oe);const de=addDefaultOptions(le);timeout_validateTimeout(de);validateEncoding(de);validateIpcInputOption(de);validateCancelSignal(de);validateGracefulCancel(de);de.shell=normalizeFileUrl(de.shell);de.env=getEnv(de);de.killSignal=normalizeKillSignal(de.killSignal);de.forceKillAfterDelay=normalizeForceKillAfterDelay(de.forceKillAfterDelay);de.lines=de.lines.map(((u,y)=>u&&!hs.has(de.encoding)&&de.buffer[y]));if(un.platform==="win32"&&xt.basename($,".exe")==="cmd"){ne.unshift("/q")}return{file:$,commandArguments:ne,options:de}};const addDefaultOptions=({extendEnv:u=true,preferLocal:y=false,cwd:C,localDir:D=C,encoding:_="utf8",reject:j=true,cleanup:$=true,all:ne=false,windowsHide:oe=true,killSignal:le="SIGTERM",forceKillAfterDelay:de=true,gracefulCancel:Ae=false,ipcInput:pe,ipc:Ee=pe!==undefined||Ae,serialization:Ce="advanced",...Ie})=>({...Ie,extendEnv:u,preferLocal:y,cwd:C,localDirectory:D,encoding:_,reject:j,cleanup:$,all:ne,windowsHide:oe,killSignal:le,forceKillAfterDelay:de,gracefulCancel:Ae,ipcInput:pe,ipc:Ee,serialization:Ce});const getEnv=({env:u,extendEnv:y,preferLocal:C,node:D,localDirectory:_,nodePath:j})=>{const $=y?{...un.env,...u}:u;if(C||D){return npmRunPathEnv({env:$,cwd:_,execPath:j,preferLocal:C,addExecPath:D})}return $};const concatenateShell=(u,y,C)=>C.shell&&y.length>0?[[u,...y].join(" "),[],C]:[u,y,C];function strip_final_newline_stripFinalNewline(u){if(typeof u==="string"){return stripFinalNewlineString(u)}if(!(ArrayBuffer.isView(u)&&u.BYTES_PER_ELEMENT===1)){throw new Error("Input must be a string or a Uint8Array")}return stripFinalNewlineBinary(u)}const stripFinalNewlineString=u=>u.at(-1)===ms?u.slice(0,u.at(-2)===Es?-2:-1):u;const stripFinalNewlineBinary=u=>u.at(-1)===ys?u.subarray(0,u.at(-2)===Cs?-2:-1):u;const ms="\n";const ys=ms.codePointAt(0);const Es="\r";const Cs=Es.codePointAt(0);function is_stream_isStream(u,{checkOpen:y=true}={}){return u!==null&&typeof u==="object"&&(u.writable||u.readable||!y||u.writable===undefined&&u.readable===undefined)&&typeof u.pipe==="function"}function isWritableStream(u,{checkOpen:y=true}={}){return is_stream_isStream(u,{checkOpen:y})&&(u.writable||!y)&&typeof u.write==="function"&&typeof u.end==="function"&&typeof u.writable==="boolean"&&typeof u.writableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function isReadableStream(u,{checkOpen:y=true}={}){return is_stream_isStream(u,{checkOpen:y})&&(u.readable||!y)&&typeof u.read==="function"&&typeof u.readable==="boolean"&&typeof u.readableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function isDuplexStream(u,y){return isWritableStream(u,y)&&isReadableStream(u,y)}function isTransformStream(u,y){return isDuplexStream(u,y)&&typeof u._transform==="function"}const Is=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class c{#gt;#mt;#yt=!1;#Et=void 0;constructor(u,y){this.#gt=u,this.#mt=y}next(){const e=()=>this.#Ct();return this.#Et=this.#Et?this.#Et.then(e,e):e(),this.#Et}return(u){const t=()=>this.#It(u);return this.#Et?this.#Et.then(t,t):t()}async#Ct(){if(this.#yt)return{done:!0,value:void 0};let u;try{u=await this.#gt.read()}catch(u){throw this.#Et=void 0,this.#yt=!0,this.#gt.releaseLock(),u}return u.done&&(this.#Et=void 0,this.#yt=!0,this.#gt.releaseLock()),u}async#It(u){if(this.#yt)return{done:!0,value:u};if(this.#yt=!0,!this.#mt){const y=this.#gt.cancel(u);return this.#gt.releaseLock(),await y,{done:!0,value:u}}return this.#gt.releaseLock(),{done:!0,value:u}}}const bs=Symbol();function i(){return this[bs].next()}Object.defineProperty(i,"name",{value:"next"});function o(u){return this[bs].return(u)}Object.defineProperty(o,"name",{value:"return"});const vs=Object.create(Is,{next:{enumerable:!0,configurable:!0,writable:!0,value:i},return:{enumerable:!0,configurable:!0,writable:!0,value:o}});function h({preventCancel:u=!1}={}){const y=this.getReader(),C=new c(y,u),D=Object.create(vs);return D[bs]=C,D}const getAsyncIterable=u=>{if(isReadableStream(u,{checkOpen:false})&&Bs.on!==undefined){return getStreamIterable(u)}if(typeof u?.[Symbol.asyncIterator]==="function"){return u}if(ws.call(u)==="[object ReadableStream]"){return h.call(u)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:ws}=Object.prototype;const getStreamIterable=async function*(u){const y=new AbortController;const C={};handleStreamEnd(u,y,C);try{for await(const[C]of Bs.on(u,"data",{signal:y.signal})){yield C}}catch(u){if(C.error!==undefined){throw C.error}else if(!y.signal.aborted){throw u}}finally{u.destroy()}};const handleStreamEnd=async(u,y,C)=>{try{await Bs.finished(u,{cleanup:true,readable:true,writable:false,error:false})}catch(u){C.error=u}finally{y.abort()}};const Bs={};const getStreamContents=async(u,{init:y,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,finalize:ne},{maxBuffer:oe=Number.POSITIVE_INFINITY}={})=>{const le=getAsyncIterable(u);const de=y();de.length=0;try{for await(const u of le){const y=getChunkType(u);const $=C[y](u,de);appendChunk({convertedChunk:$,state:de,getSize:D,truncateChunk:_,addChunk:j,maxBuffer:oe})}appendFinalChunk({state:de,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,maxBuffer:oe});return ne(de)}catch(u){const y=typeof u==="object"&&u!==null?u:new Error(u);y.bufferedData=ne(de);throw y}};const appendFinalChunk=({state:u,getSize:y,truncateChunk:C,addChunk:D,getFinalChunk:_,maxBuffer:j})=>{const $=_(u);if($!==undefined){appendChunk({convertedChunk:$,state:u,getSize:y,truncateChunk:C,addChunk:D,maxBuffer:j})}};const appendChunk=({convertedChunk:u,state:y,getSize:C,truncateChunk:D,addChunk:_,maxBuffer:j})=>{const $=C(u);const ne=y.length+$;if(ne<=j){addNewChunk(u,y,_,ne);return}const oe=D(u,j-y.length);if(oe!==undefined){addNewChunk(oe,y,_,j)}throw new MaxBufferError};const addNewChunk=(u,y,C,D)=>{y.contents=C(u,y,D);y.length=D};const getChunkType=u=>{const y=typeof u;if(y==="string"){return"string"}if(y!=="object"||u===null){return"others"}if(globalThis.Buffer?.isBuffer(u)){return"buffer"}const C=Ds.call(u);if(C==="[object ArrayBuffer]"){return"arrayBuffer"}if(C==="[object DataView]"){return"dataView"}if(Number.isInteger(u.byteLength)&&Number.isInteger(u.byteOffset)&&Ds.call(u.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:Ds}=Object.prototype;class MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const handleMaxBuffer=({error:u,stream:y,readableObjectMode:C,lines:D,encoding:_,fdNumber:j})=>{if(!(u instanceof MaxBufferError)){throw u}if(j==="all"){return u}const $=getMaxBufferUnit(C,D,_);u.maxBufferInfo={fdNumber:j,unit:$};y.destroy();throw u};const getMaxBufferUnit=(u,y,C)=>{if(u){return"objects"}if(y){return"lines"}if(C==="buffer"){return"bytes"}return"characters"};const checkIpcMaxBuffer=(u,y,C)=>{if(y.length!==C){return}const D=new MaxBufferError;D.maxBufferInfo={fdNumber:"ipc"};throw D};const getMaxBufferMessage=(u,y)=>{const{streamName:C,threshold:D,unit:_}=getMaxBufferInfo(u,y);return`Command's ${C} was larger than ${D} ${_}`};const getMaxBufferInfo=(u,y)=>{if(u?.maxBufferInfo===undefined){return{streamName:"output",threshold:y[1],unit:"bytes"}}const{maxBufferInfo:{fdNumber:C,unit:D}}=u;delete u.maxBufferInfo;const _=getFdSpecificValue(y,C);if(C==="ipc"){return{streamName:"IPC output",threshold:_,unit:"messages"}}return{streamName:getStreamName(C),threshold:_,unit:D}};const isMaxBufferSync=(u,y,C)=>u?.code==="ENOBUFS"&&y!==null&&y.some((u=>u!==null&&u.length>getMaxBufferSync(C)));const truncateMaxBufferSync=(u,y,C)=>{if(!y){return u}const D=getMaxBufferSync(C);return u.length>D?u.slice(0,D):u};const getMaxBufferSync=([,u])=>u;const createMessages=({stdio:u,all:y,ipcOutput:C,originalError:D,signal:_,signalDescription:j,exitCode:$,escapedCommand:ne,timedOut:oe,isCanceled:le,isGracefullyCanceled:de,isMaxBuffer:Ae,isForcefullyTerminated:pe,forceKillAfterDelay:Ee,killSignal:Ce,maxBuffer:Ie,timeout:Be,cwd:De})=>{const xe=D?.code;const Fe=getErrorPrefix({originalError:D,timedOut:oe,timeout:Be,isMaxBuffer:Ae,maxBuffer:Ie,errorCode:xe,signal:_,signalDescription:j,exitCode:$,isCanceled:le,isGracefullyCanceled:de,isForcefullyTerminated:pe,forceKillAfterDelay:Ee,killSignal:Ce});const _e=getOriginalMessage(D,De);const Le=_e===undefined?"":`\n${_e}`;const ze=`${Fe}: ${ne}${Le}`;const qe=y===undefined?[u[2],u[1]]:[y];const Je=[ze,...qe,...u.slice(3),C.map((u=>serializeIpcMessage(u))).join("\n")].map((u=>escapeLines(strip_final_newline_stripFinalNewline(serializeMessagePart(u))))).filter(Boolean).join("\n\n");return{originalMessage:_e,shortMessage:ze,message:Je}};const getErrorPrefix=({originalError:u,timedOut:y,timeout:C,isMaxBuffer:D,maxBuffer:_,errorCode:j,signal:$,signalDescription:ne,exitCode:oe,isCanceled:le,isGracefullyCanceled:de,isForcefullyTerminated:Ae,forceKillAfterDelay:pe,killSignal:Ee})=>{const Ce=getForcefulSuffix(Ae,pe);if(y){return`Command timed out after ${C} milliseconds${Ce}`}if(de){if($===undefined){return`Command was gracefully canceled with exit code ${oe}`}return Ae?`Command was gracefully canceled${Ce}`:`Command was gracefully canceled with ${$} (${ne})`}if(le){return`Command was canceled${Ce}`}if(D){return`${getMaxBufferMessage(u,_)}${Ce}`}if(j!==undefined){return`Command failed with ${j}${Ce}`}if(Ae){return`Command was killed with ${Ee} (${getSignalDescription(Ee)})${Ce}`}if($!==undefined){return`Command was killed with ${$} (${ne})`}if(oe!==undefined){return`Command failed with exit code ${oe}`}return"Command failed"};const getForcefulSuffix=(u,y)=>u?` and was forcefully terminated after ${y} milliseconds`:"";const getOriginalMessage=(u,y)=>{if(u instanceof DiscardedError){return}const C=isExecaError(u)?u.originalMessage:String(u?.message??u);const D=escapeLines(fixCwdError(C,y));return D===""?undefined:D};const serializeIpcMessage=u=>typeof u==="string"?u:(0,cn.inspect)(u);const serializeMessagePart=u=>Array.isArray(u)?u.map((u=>strip_final_newline_stripFinalNewline(serializeMessageItem(u)))).filter(Boolean).join("\n"):serializeMessageItem(u);const serializeMessageItem=u=>{if(typeof u==="string"){return u}if(isUint8Array(u)){return uint8ArrayToString(u)}return""};const makeSuccessResult=({command:u,escapedCommand:y,stdio:C,all:D,ipcOutput:_,options:{cwd:j},startTime:$})=>omitUndefinedProperties({command:u,escapedCommand:y,cwd:j,durationMs:getDurationMs($),failed:false,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isTerminated:false,isMaxBuffer:false,isForcefullyTerminated:false,exitCode:0,stdout:C[1],stderr:C[2],all:D,stdio:C,ipcOutput:_,pipedFrom:[]});const makeEarlyError=({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,isSync:$})=>makeError({error:u,command:y,escapedCommand:C,startTime:j,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:false,isForcefullyTerminated:false,stdio:Array.from({length:D.length}),ipcOutput:[],options:_,isSync:$});const makeError=({error:u,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,stdio:Ae,all:pe,ipcOutput:Ee,options:{timeoutDuration:Ce,timeout:Ie=Ce,forceKillAfterDelay:Be,killSignal:De,cwd:xe,maxBuffer:Fe},isSync:_e})=>{const{exitCode:Le,signal:ze,signalDescription:qe}=normalizeExitPayload(le,de);const{originalMessage:Je,shortMessage:Ke,message:et}=createMessages({stdio:Ae,all:pe,ipcOutput:Ee,originalError:u,signal:ze,signalDescription:qe,exitCode:Le,escapedCommand:C,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,forceKillAfterDelay:Be,killSignal:De,maxBuffer:Fe,timeout:Ie,cwd:xe});const tt=getFinalError(u,et,_e);Object.assign(tt,getErrorProperties({error:tt,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:Le,signal:ze,signalDescription:qe,stdio:Ae,all:pe,ipcOutput:Ee,cwd:xe,originalMessage:Je,shortMessage:Ke}));return tt};const getErrorProperties=({error:u,command:y,escapedCommand:C,startTime:D,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,signalDescription:Ae,stdio:pe,all:Ee,ipcOutput:Ce,cwd:Ie,originalMessage:Be,shortMessage:De})=>omitUndefinedProperties({shortMessage:De,originalMessage:Be,command:y,escapedCommand:C,cwd:Ie,durationMs:getDurationMs(D),failed:true,timedOut:_,isCanceled:j,isGracefullyCanceled:$,isTerminated:de!==undefined,isMaxBuffer:ne,isForcefullyTerminated:oe,exitCode:le,signal:de,signalDescription:Ae,code:u.cause?.code,stdout:pe[1],stderr:pe[2],all:Ee,stdio:pe,ipcOutput:Ce,pipedFrom:[]});const omitUndefinedProperties=u=>Object.fromEntries(Object.entries(u).filter((([,u])=>u!==undefined)));const normalizeExitPayload=(u,y)=>{const C=u===null?undefined:u;const D=y===null?undefined:y;const _=D===undefined?undefined:getSignalDescription(y);return{exitCode:C,signal:D,signalDescription:_}};const toZeroIfInfinity=u=>Number.isFinite(u)?u:0;function parseNumber(u){return{days:Math.trunc(u/864e5),hours:Math.trunc(u/36e5%24),minutes:Math.trunc(u/6e4%60),seconds:Math.trunc(u/1e3%60),milliseconds:Math.trunc(u%1e3),microseconds:Math.trunc(toZeroIfInfinity(u*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(u*1e6)%1e3)}}function parseBigint(u){return{days:u/86400000n,hours:u/3600000n%24n,minutes:u/60000n%60n,seconds:u/1000n%60n,milliseconds:u%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(u){switch(typeof u){case"number":{if(Number.isFinite(u)){return parseNumber(u)}break}case"bigint":{return parseBigint(u)}}throw new TypeError("Expected a finite number or bigint")}const isZero=u=>u===0||u===0n;const pluralize=(u,y)=>y===1||y===1n?u:`${u}s`;const Ss=1e-7;const ks=24n*60n*60n*1000n;function prettyMilliseconds(u,y){const C=typeof u==="bigint";if(!C&&!Number.isFinite(u)){throw new TypeError("Expected a finite number or bigint")}y={...y};const D=u<0?"-":"";u=u<0?-u:u;if(y.colonNotation){y.compact=false;y.formatSubMilliseconds=false;y.separateMilliseconds=false;y.verbose=false}if(y.compact){y.unitCount=1;y.secondsDecimalDigits=0;y.millisecondsDecimalDigits=0}let _=[];const floorDecimals=(u,y)=>{const C=Math.floor(u*10**y+Ss);const D=Math.round(C)/10**y;return D.toFixed(y)};const add=(u,C,D,j)=>{if((_.length===0||!y.colonNotation)&&isZero(u)&&!(y.colonNotation&&D==="m")){return}j??=String(u);if(y.colonNotation){const u=j.includes(".")?j.split(".")[0].length:j.length;const y=_.length>0?2:1;j="0".repeat(Math.max(0,y-u))+j}else{j+=y.verbose?" "+pluralize(C,u):D}_.push(j)};const j=parseMilliseconds(u);const $=BigInt(j.days);if(y.hideYearAndDays){add(BigInt($)*24n+BigInt(j.hours),"hour","h")}else{if(y.hideYear){add($,"day","d")}else{add($/365n,"year","y");add($%365n,"day","d")}add(Number(j.hours),"hour","h")}add(Number(j.minutes),"minute","m");if(!y.hideSeconds){if(y.separateMilliseconds||y.formatSubMilliseconds||!y.colonNotation&&u<1e3&&!y.subSecondsAsDecimals){const u=Number(j.seconds);const C=Number(j.milliseconds);const D=Number(j.microseconds);const _=Number(j.nanoseconds);add(u,"second","s");if(y.formatSubMilliseconds){add(C,"millisecond","ms");add(D,"microsecond","µs");add(_,"nanosecond","ns")}else{const u=C+D/1e3+_/1e6;const j=typeof y.millisecondsDecimalDigits==="number"?y.millisecondsDecimalDigits:0;const $=u>=1?Math.round(u):Math.ceil(u);const ne=j?u.toFixed(j):$;add(Number.parseFloat(ne),"millisecond","ms",ne)}}else{const D=(C?Number(u%ks):u)/1e3%60;const _=typeof y.secondsDecimalDigits==="number"?y.secondsDecimalDigits:1;const j=floorDecimals(D,_);const $=y.keepDecimalsOnWholeSeconds?j:j.replace(/\.0+$/,"");add(Number.parseFloat($),"second","s",$)}}if(_.length===0){return D+"0"+(y.verbose?" milliseconds":"ms")}const ne=y.colonNotation?":":" ";if(typeof y.unitCount==="number"){_=_.slice(0,Math.max(y.unitCount,1))}return D+_.join(ne)}const logError=(u,y)=>{if(u.failed){verboseLog({type:"error",verboseMessage:u.shortMessage,verboseInfo:y,result:u})}};const logResult=(u,y)=>{if(!isVerbose(y)){return}logError(u,y);logDuration(u,y)};const logDuration=(u,y)=>{const C=`(done in ${prettyMilliseconds(u.durationMs)})`;verboseLog({type:"duration",verboseMessage:C,verboseInfo:y,result:u})};const handleResult=(u,y,{reject:C})=>{logResult(u,y);if(u.failed&&C){throw u}return u};const getStdioItemType=(u,y)=>{if(isAsyncGenerator(u)){return"asyncGenerator"}if(isSyncGenerator(u)){return"generator"}if(isUrl(u)){return"fileUrl"}if(isFilePathObject(u)){return"filePath"}if(isWebStream(u)){return"webStream"}if(is_stream_isStream(u,{checkOpen:false})){return"native"}if(isUint8Array(u)){return"uint8Array"}if(isAsyncIterableObject(u)){return"asyncIterable"}if(isIterableObject(u)){return"iterable"}if(type_isTransformStream(u)){return getTransformStreamType({transform:u},y)}if(isTransformOptions(u)){return getTransformObjectType(u,y)}return"native"};const getTransformObjectType=(u,y)=>{if(isDuplexStream(u.transform,{checkOpen:false})){return getDuplexType(u,y)}if(type_isTransformStream(u.transform)){return getTransformStreamType(u,y)}return getGeneratorObjectType(u,y)};const getDuplexType=(u,y)=>{validateNonGeneratorType(u,y,"Duplex stream");return"duplex"};const getTransformStreamType=(u,y)=>{validateNonGeneratorType(u,y,"web TransformStream");return"webTransform"};const validateNonGeneratorType=({final:u,binary:y,objectMode:C},D,_)=>{checkUndefinedOption(u,`${D}.final`,_);checkUndefinedOption(y,`${D}.binary`,_);checkBooleanOption(C,`${D}.objectMode`)};const checkUndefinedOption=(u,y,C)=>{if(u!==undefined){throw new TypeError(`The \`${y}\` option can only be defined when using a generator, not a ${C}.`)}};const getGeneratorObjectType=({transform:u,final:y,binary:C,objectMode:D},_)=>{if(u!==undefined&&!isGenerator(u)){throw new TypeError(`The \`${_}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`)}if(isDuplexStream(y,{checkOpen:false})){throw new TypeError(`The \`${_}.final\` option must not be a Duplex stream.`)}if(type_isTransformStream(y)){throw new TypeError(`The \`${_}.final\` option must not be a web TransformStream.`)}if(y!==undefined&&!isGenerator(y)){throw new TypeError(`The \`${_}.final\` option must be a generator.`)}checkBooleanOption(C,`${_}.binary`);checkBooleanOption(D,`${_}.objectMode`);return isAsyncGenerator(u)||isAsyncGenerator(y)?"asyncGenerator":"generator"};const checkBooleanOption=(u,y)=>{if(u!==undefined&&typeof u!=="boolean"){throw new TypeError(`The \`${y}\` option must use a boolean.`)}};const isGenerator=u=>isAsyncGenerator(u)||isSyncGenerator(u);const isAsyncGenerator=u=>Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]";const isSyncGenerator=u=>Object.prototype.toString.call(u)==="[object GeneratorFunction]";const isTransformOptions=u=>isPlainObject(u)&&(u.transform!==undefined||u.final!==undefined);const isUrl=u=>Object.prototype.toString.call(u)==="[object URL]";const isRegularUrl=u=>isUrl(u)&&u.protocol!=="file:";const isFilePathObject=u=>isPlainObject(u)&&Object.keys(u).length>0&&Object.keys(u).every((u=>Qs.has(u)))&&isFilePathString(u.file);const Qs=new Set(["file","append"]);const isFilePathString=u=>typeof u==="string";const isUnknownStdioString=(u,y)=>u==="native"&&typeof y==="string"&&!xs.has(y);const xs=new Set(["ipc","ignore","inherit","overlapped","pipe"]);const type_isReadableStream=u=>Object.prototype.toString.call(u)==="[object ReadableStream]";const type_isWritableStream=u=>Object.prototype.toString.call(u)==="[object WritableStream]";const isWebStream=u=>type_isReadableStream(u)||type_isWritableStream(u);const type_isTransformStream=u=>type_isReadableStream(u?.readable)&&type_isWritableStream(u?.writable);const isAsyncIterableObject=u=>isObject(u)&&typeof u[Symbol.asyncIterator]==="function";const isIterableObject=u=>isObject(u)&&typeof u[Symbol.iterator]==="function";const isObject=u=>typeof u==="object"&&u!==null;const Fs=new Set(["generator","asyncGenerator","duplex","webTransform"]);const _s=new Set(["fileUrl","filePath","fileNumber"]);const Rs=new Set(["fileUrl","filePath"]);const Ls=new Set([...Rs,"webStream","nodeStream"]);const Ns=new Set(["webTransform","duplex"]);const Ts={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"};const getTransformObjectModes=(u,y,C,D)=>D==="output"?getOutputObjectModes(u,y,C):getInputObjectModes(u,y,C);const getOutputObjectModes=(u,y,C)=>{const D=y!==0&&C[y-1].value.readableObjectMode;const _=u??D;return{writableObjectMode:D,readableObjectMode:_}};const getInputObjectModes=(u,y,C)=>{const D=y===0?u===true:C[y-1].value.readableObjectMode;const _=y!==C.length-1&&(u??D);return{writableObjectMode:D,readableObjectMode:_}};const getFdObjectMode=(u,y)=>{const C=u.findLast((({type:u})=>Fs.has(u)));if(C===undefined){return false}return y==="input"?C.value.writableObjectMode:C.value.readableObjectMode};const normalizeTransforms=(u,y,C,D)=>[...u.filter((({type:u})=>!Fs.has(u))),...getTransforms(u,y,C,D)];const getTransforms=(u,y,C,{encoding:D})=>{const _=u.filter((({type:u})=>Fs.has(u)));const j=Array.from({length:_.length});for(const[u,$]of Object.entries(_)){j[u]=normalizeTransform({stdioItem:$,index:Number(u),newTransforms:j,optionName:y,direction:C,encoding:D})}return sortTransforms(j,C)};const normalizeTransform=({stdioItem:u,stdioItem:{type:y},index:C,newTransforms:D,optionName:_,direction:j,encoding:$})=>{if(y==="duplex"){return normalizeDuplex({stdioItem:u,optionName:_})}if(y==="webTransform"){return normalizeTransformStream({stdioItem:u,index:C,newTransforms:D,direction:j})}return normalizeGenerator({stdioItem:u,index:C,newTransforms:D,direction:j,encoding:$})};const normalizeDuplex=({stdioItem:u,stdioItem:{value:{transform:y,transform:{writableObjectMode:C,readableObjectMode:D},objectMode:_=D}},optionName:j})=>{if(_&&!D){throw new TypeError(`The \`${j}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`)}if(!_&&D){throw new TypeError(`The \`${j}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`)}return{...u,value:{transform:y,writableObjectMode:C,readableObjectMode:D}}};const normalizeTransformStream=({stdioItem:u,stdioItem:{value:y},index:C,newTransforms:D,direction:_})=>{const{transform:j,objectMode:$}=isPlainObject(y)?y:{transform:y};const{writableObjectMode:ne,readableObjectMode:oe}=getTransformObjectModes($,C,D,_);return{...u,value:{transform:j,writableObjectMode:ne,readableObjectMode:oe}}};const normalizeGenerator=({stdioItem:u,stdioItem:{value:y},index:C,newTransforms:D,direction:_,encoding:j})=>{const{transform:$,final:ne,binary:oe=false,preserveNewlines:le=false,objectMode:de}=isPlainObject(y)?y:{transform:y};const Ae=oe||hs.has(j);const{writableObjectMode:pe,readableObjectMode:Ee}=getTransformObjectModes(de,C,D,_);return{...u,value:{transform:$,final:ne,binary:Ae,preserveNewlines:le,writableObjectMode:pe,readableObjectMode:Ee}}};const sortTransforms=(u,y)=>y==="input"?u.reverse():u;const getStreamDirection=(u,y,C)=>{const D=u.map((u=>getStdioItemDirection(u,y)));if(D.includes("input")&&D.includes("output")){throw new TypeError(`The \`${C}\` option must not be an array of both readable and writable values.`)}return D.find(Boolean)??Ms};const getStdioItemDirection=({type:u,value:y},C)=>Ps[C]??Os[u](y);const Ps=["input","output","output"];const anyDirection=()=>undefined;const alwaysInput=()=>"input";const Os={generator:anyDirection,asyncGenerator:anyDirection,fileUrl:anyDirection,filePath:anyDirection,iterable:alwaysInput,asyncIterable:alwaysInput,uint8Array:alwaysInput,webStream:u=>type_isWritableStream(u)?"output":"input",nodeStream(u){if(!isReadableStream(u,{checkOpen:false})){return"output"}return isWritableStream(u,{checkOpen:false})?undefined:"input"},webTransform:anyDirection,duplex:anyDirection,native(u){const y=getStandardStreamDirection(u);if(y!==undefined){return y}if(is_stream_isStream(u,{checkOpen:false})){return Os.nodeStream(u)}}};const getStandardStreamDirection=u=>{if([0,un.stdin].includes(u)){return"input"}if([1,2,un.stdout,un.stderr].includes(u)){return"output"}};const Ms="output";const normalizeIpcStdioArray=(u,y)=>y&&!u.includes("ipc")?[...u,"ipc"]:u;const normalizeStdioOption=({stdio:u,ipc:y,buffer:C,...D},_,j)=>{const $=getStdioArray(u,D).map(((u,y)=>stdio_option_addDefaultValue(u,y)));return j?normalizeStdioSync($,C,_):normalizeIpcStdioArray($,y)};const getStdioArray=(u,y)=>{if(u===undefined){return dn.map((u=>y[u]))}if(hasAlias(y)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${dn.map((u=>`\`${u}\``)).join(", ")}`)}if(typeof u==="string"){return[u,u,u]}if(!Array.isArray(u)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``)}const C=Math.max(u.length,dn.length);return Array.from({length:C},((y,C)=>u[C]))};const hasAlias=u=>dn.some((y=>u[y]!==undefined));const stdio_option_addDefaultValue=(u,y)=>{if(Array.isArray(u)){return u.map((u=>stdio_option_addDefaultValue(u,y)))}if(u===null||u===undefined){return y>=dn.length?"ignore":"pipe"}return u};const normalizeStdioSync=(u,y,C)=>u.map(((u,D)=>!y[D]&&D!==0&&!isFullVerbose(C,D)&&isOutputPipeOnly(u)?"ignore":u));const isOutputPipeOnly=u=>u==="pipe"||Array.isArray(u)&&u.every((u=>u==="pipe"));const handleNativeStream=({stdioItem:u,stdioItem:{type:y},isStdioArray:C,fdNumber:D,direction:_,isSync:j})=>{if(!C||y!=="native"){return u}return j?handleNativeStreamSync({stdioItem:u,fdNumber:D,direction:_}):handleNativeStreamAsync({stdioItem:u,fdNumber:D})};const handleNativeStreamSync=({stdioItem:u,stdioItem:{value:y,optionName:C},fdNumber:D,direction:_})=>{const j=getTargetFd({value:y,optionName:C,fdNumber:D,direction:_});if(j!==undefined){return j}if(is_stream_isStream(y,{checkOpen:false})){throw new TypeError(`The \`${C}: Stream\` option cannot both be an array and include a stream with synchronous methods.`)}return u};const getTargetFd=({value:u,optionName:y,fdNumber:C,direction:D})=>{const _=getTargetFdNumber(u,C);if(_===undefined){return}if(D==="output"){return{type:"fileNumber",value:_,optionName:y}}if(Fn.isatty(_)){throw new TypeError(`The \`${y}: ${serializeOptionValue(u)}\` option is invalid: it cannot be a TTY with synchronous methods.`)}return{type:"uint8Array",value:bufferToUint8Array((0,Rt.readFileSync)(_)),optionName:y}};const getTargetFdNumber=(u,y)=>{if(u==="inherit"){return y}if(typeof u==="number"){return u}const C=fn.indexOf(u);if(C!==-1){return C}};const handleNativeStreamAsync=({stdioItem:u,stdioItem:{value:y,optionName:C},fdNumber:D})=>{if(y==="inherit"){return{type:"nodeStream",value:getStandardStream(D,y,C),optionName:C}}if(typeof y==="number"){return{type:"nodeStream",value:getStandardStream(y,y,C),optionName:C}}if(is_stream_isStream(y,{checkOpen:false})){return{type:"nodeStream",value:y,optionName:C}}return u};const getStandardStream=(u,y,C)=>{const D=fn[u];if(D===undefined){throw new TypeError(`The \`${C}: ${y}\` option is invalid: no such standard stream.`)}return D};const handleInputOptions=({input:u,inputFile:y},C)=>C===0?[...handleInputOption(u),...handleInputFileOption(y)]:[];const handleInputOption=u=>u===undefined?[]:[{type:getInputType(u),value:u,optionName:"input"}];const getInputType=u=>{if(isReadableStream(u,{checkOpen:false})){return"nodeStream"}if(typeof u==="string"){return"string"}if(isUint8Array(u)){return"uint8Array"}throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")};const handleInputFileOption=u=>u===undefined?[]:[{...getInputFileType(u),optionName:"inputFile"}];const getInputFileType=u=>{if(isUrl(u)){return{type:"fileUrl",value:u}}if(isFilePathString(u)){return{type:"filePath",value:{file:u}}}throw new Error("The `inputFile` option must be a file path string or a file URL.")};const filterDuplicates=u=>u.filter(((y,C)=>u.every(((u,D)=>y.value!==u.value||C>=D||y.type==="generator"||y.type==="asyncGenerator"))));const getDuplicateStream=({stdioItem:{type:u,value:y,optionName:C},direction:D,fileDescriptors:_,isSync:j})=>{const $=getOtherStdioItems(_,u);if($.length===0){return}if(j){validateDuplicateStreamSync({otherStdioItems:$,type:u,value:y,optionName:C,direction:D});return}if(Ls.has(u)){return getDuplicateStreamInstance({otherStdioItems:$,type:u,value:y,optionName:C,direction:D})}if(Ns.has(u)){validateDuplicateTransform({otherStdioItems:$,type:u,value:y,optionName:C})}};const getOtherStdioItems=(u,y)=>u.flatMap((({direction:u,stdioItems:C})=>C.filter((u=>u.type===y)).map((y=>({...y,direction:u})))));const validateDuplicateStreamSync=({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})=>{if(Rs.has(y)){getDuplicateStreamInstance({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})}};const getDuplicateStreamInstance=({otherStdioItems:u,type:y,value:C,optionName:D,direction:_})=>{const j=u.filter((u=>hasSameValue(u,C)));if(j.length===0){return}const $=j.find((u=>u.direction!==_));throwOnDuplicateStream($,D,y);return _==="output"?j[0].stream:undefined};const hasSameValue=({type:u,value:y},C)=>{if(u==="filePath"){return y.file===C.file}if(u==="fileUrl"){return y.href===C.href}return y===C};const validateDuplicateTransform=({otherStdioItems:u,type:y,value:C,optionName:D})=>{const _=u.find((({value:{transform:u}})=>u===C.transform));throwOnDuplicateStream(_,D,y)};const throwOnDuplicateStream=(u,y,C)=>{if(u!==undefined){throw new TypeError(`The \`${u.optionName}\` and \`${y}\` options must not target ${Ts[C]} that is the same.`)}};const handleStdio=(u,y,C,D)=>{const _=normalizeStdioOption(y,C,D);const j=_.map(((u,C)=>getFileDescriptor({stdioOption:u,fdNumber:C,options:y,isSync:D})));const $=getFinalFileDescriptors({initialFileDescriptors:j,addProperties:u,options:y,isSync:D});y.stdio=$.map((({stdioItems:u})=>forwardStdio(u)));return $};const getFileDescriptor=({stdioOption:u,fdNumber:y,options:C,isSync:D})=>{const _=getStreamName(y);const{stdioItems:j,isStdioArray:$}=initializeStdioItems({stdioOption:u,fdNumber:y,options:C,optionName:_});const ne=getStreamDirection(j,y,_);const oe=j.map((u=>handleNativeStream({stdioItem:u,isStdioArray:$,fdNumber:y,direction:ne,isSync:D})));const le=normalizeTransforms(oe,_,ne,C);const de=getFdObjectMode(le,ne);validateFileObjectMode(le,de);return{direction:ne,objectMode:de,stdioItems:le}};const initializeStdioItems=({stdioOption:u,fdNumber:y,options:C,optionName:D})=>{const _=Array.isArray(u)?u:[u];const j=[..._.map((u=>initializeStdioItem(u,D))),...handleInputOptions(C,y)];const $=filterDuplicates(j);const ne=$.length>1;validateStdioArray($,ne,D);validateStreams($);return{stdioItems:$,isStdioArray:ne}};const initializeStdioItem=(u,y)=>({type:getStdioItemType(u,y),value:u,optionName:y});const validateStdioArray=(u,y,C)=>{if(u.length===0){throw new TypeError(`The \`${C}\` option must not be an empty array.`)}if(!y){return}for(const{value:y,optionName:C}of u){if(Us.has(y)){throw new Error(`The \`${C}\` option must not include \`${y}\`.`)}}};const Us=new Set(["ignore","ipc"]);const validateStreams=u=>{for(const y of u){validateFileStdio(y)}};const validateFileStdio=({type:u,value:y,optionName:C})=>{if(isRegularUrl(y)){throw new TypeError(`The \`${C}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`)}if(isUnknownStdioString(u,y)){throw new TypeError(`The \`${C}: { file: '...' }\` option must be used instead of \`${C}: '...'\`.`)}};const validateFileObjectMode=(u,y)=>{if(!y){return}const C=u.find((({type:u})=>_s.has(u)));if(C!==undefined){throw new TypeError(`The \`${C.optionName}\` option cannot use both files and transforms in objectMode.`)}};const getFinalFileDescriptors=({initialFileDescriptors:u,addProperties:y,options:C,isSync:D})=>{const _=[];try{for(const j of u){_.push(getFinalFileDescriptor({fileDescriptor:j,fileDescriptors:_,addProperties:y,options:C,isSync:D}))}return _}catch(u){cleanupCustomStreams(_);throw u}};const getFinalFileDescriptor=({fileDescriptor:{direction:u,objectMode:y,stdioItems:C},fileDescriptors:D,addProperties:_,options:j,isSync:$})=>{const ne=C.map((y=>addStreamProperties({stdioItem:y,addProperties:_,direction:u,options:j,fileDescriptors:D,isSync:$})));return{direction:u,objectMode:y,stdioItems:ne}};const addStreamProperties=({stdioItem:u,addProperties:y,direction:C,options:D,fileDescriptors:_,isSync:j})=>{const $=getDuplicateStream({stdioItem:u,direction:C,fileDescriptors:_,isSync:j});if($!==undefined){return{...u,stream:$}}return{...u,...y[C][u.type](u,D)}};const cleanupCustomStreams=u=>{for(const{stdioItems:y}of u){for(const{stream:u}of y){if(u!==undefined&&!isStandardStream(u)){u.destroy()}}}};const forwardStdio=u=>{if(u.length>1){return u.some((({value:u})=>u==="overlapped"))?"overlapped":"pipe"}const[{type:y,value:C}]=u;return y==="native"?C:"pipe"};const handleStdioSync=(u,y)=>handleStdio(Gs,u,y,true);const forbiddenIfSync=({type:u,optionName:y})=>{throwInvalidSyncValue(y,Ts[u])};const forbiddenNativeIfSync=({optionName:u,value:y})=>{if(y==="ipc"||y==="overlapped"){throwInvalidSyncValue(u,`"${y}"`)}return{}};const throwInvalidSyncValue=(u,y)=>{throw new TypeError(`The \`${u}\` option cannot be ${y} with synchronous methods.`)};const Hs={generator(){},asyncGenerator:forbiddenIfSync,webStream:forbiddenIfSync,nodeStream:forbiddenIfSync,webTransform:forbiddenIfSync,duplex:forbiddenIfSync,asyncIterable:forbiddenIfSync,native:forbiddenNativeIfSync};const Gs={input:{...Hs,fileUrl:({value:u})=>({contents:[bufferToUint8Array((0,Rt.readFileSync)(u))]}),filePath:({value:{file:u}})=>({contents:[bufferToUint8Array((0,Rt.readFileSync)(u))]}),fileNumber:forbiddenIfSync,iterable:({value:u})=>({contents:[...u]}),string:({value:u})=>({contents:[u]}),uint8Array:({value:u})=>({contents:[u]})},output:{...Hs,fileUrl:({value:u})=>({path:u}),filePath:({value:{file:u,append:y}})=>({path:u,append:y}),fileNumber:({value:u})=>({path:u}),iterable:forbiddenIfSync,string:forbiddenIfSync,uint8Array:forbiddenIfSync}};const stripNewline=(u,{stripFinalNewline:y},C)=>getStripFinalNewline(y,C)&&u!==undefined&&!Array.isArray(u)?strip_final_newline_stripFinalNewline(u):u;const getStripFinalNewline=(u,y)=>y==="all"?u[1]||u[2]:u[y];const getSplitLinesGenerator=(u,y,C,D)=>u||C?undefined:initializeSplitLines(y,D);const splitLinesSync=(u,y,C)=>C?u.flatMap((u=>splitLinesItemSync(u,y))):splitLinesItemSync(u,y);const splitLinesItemSync=(u,y)=>{const{transform:C,final:D}=initializeSplitLines(y,{});return[...C(u),...D()]};const initializeSplitLines=(u,y)=>{y.previousChunks="";return{transform:splitGenerator.bind(undefined,y,u),final:linesFinal.bind(undefined,y)}};const splitGenerator=function*(u,y,C){if(typeof C!=="string"){yield C;return}let{previousChunks:D}=u;let _=-1;for(let j=0;j<C.length;j+=1){if(C[j]==="\n"){const $=getNewlineLength(C,j,y,u);let ne=C.slice(_+1,j+1-$);if(D.length>0){ne=concatString(D,ne);D=""}yield ne;_=j}}if(_!==C.length-1){D=concatString(D,C.slice(_+1))}u.previousChunks=D};const getNewlineLength=(u,y,C,D)=>{if(C){return 0}D.isWindowsNewline=y!==0&&u[y-1]==="\r";return D.isWindowsNewline?2:1};const linesFinal=function*({previousChunks:u}){if(u.length>0){yield u}};const getAppendNewlineGenerator=({binary:u,preserveNewlines:y,readableObjectMode:C,state:D})=>u||y||C?undefined:{transform:appendNewlineGenerator.bind(undefined,D)};const appendNewlineGenerator=function*({isWindowsNewline:u=false},y){const{unixNewline:C,windowsNewline:D,LF:_,concatBytes:j}=typeof y==="string"?Ws:js;if(y.at(-1)===_){yield y;return}const $=u?D:C;yield j(y,$)};const concatString=(u,y)=>`${u}${y}`;const Ws={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:concatString};const concatUint8Array=(u,y)=>{const C=new Uint8Array(u.length+y.length);C.set(u,0);C.set(y,u.length);return C};const js={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:concatUint8Array};var zs=C(4573);const getValidateTransformInput=(u,y)=>u?undefined:validateStringTransformInput.bind(undefined,y);const validateStringTransformInput=function*(u,y){if(typeof y!=="string"&&!isUint8Array(y)&&!zs.Buffer.isBuffer(y)){throw new TypeError(`The \`${u}\` option's transform must use "objectMode: true" to receive as input: ${typeof y}.`)}yield y};const getValidateTransformReturn=(u,y)=>u?validateObjectTransformReturn.bind(undefined,y):validateStringTransformReturn.bind(undefined,y);const validateObjectTransformReturn=function*(u,y){validateEmptyReturn(u,y);yield y};const validateStringTransformReturn=function*(u,y){validateEmptyReturn(u,y);if(typeof y!=="string"&&!isUint8Array(y)){throw new TypeError(`The \`${u}\` option's function must yield a string or an Uint8Array, not ${typeof y}.`)}yield y};const validateEmptyReturn=(u,y)=>{if(y===null||y===undefined){throw new TypeError(`The \`${u}\` option's function must not call \`yield ${y}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)}};const getEncodingTransformGenerator=(u,y,C)=>{if(C){return}if(u){return{transform:encodingUint8ArrayGenerator.bind(undefined,new TextEncoder)}}const D=new Ot.StringDecoder(y);return{transform:encodingStringGenerator.bind(undefined,D),final:encodingStringFinal.bind(undefined,D)}};const encodingUint8ArrayGenerator=function*(u,y){if(zs.Buffer.isBuffer(y)){yield bufferToUint8Array(y)}else if(typeof y==="string"){yield u.encode(y)}else{yield y}};const encodingStringGenerator=function*(u,y){yield isUint8Array(y)?u.write(y):y};const encodingStringFinal=function*(u){const y=u.end();if(y!==""){yield y}};const $s=(0,cn.callbackify)((async(u,y,C,D)=>{y.currentIterable=u(...C);try{for await(const u of y.currentIterable){D.push(u)}}finally{delete y.currentIterable}}));const transformChunk=async function*(u,y,C){if(C===y.length){yield u;return}const{transform:D=identityGenerator}=y[C];for await(const _ of D(u)){yield*transformChunk(_,y,C+1)}};const finalChunks=async function*(u){for(const[y,{final:C}]of Object.entries(u)){yield*generatorFinalChunks(C,Number(y),u)}};const generatorFinalChunks=async function*(u,y,C){if(u===undefined){return}for await(const D of u()){yield*transformChunk(D,C,y+1)}};const qs=(0,cn.callbackify)((async({currentIterable:u},y)=>{if(u!==undefined){await(y?u.throw(y):u.return());return}if(y){throw y}}));const identityGenerator=function*(u){yield u};const pushChunksSync=(u,y,C,D)=>{try{for(const D of u(...y)){C.push(D)}D()}catch(u){D(u)}};const runTransformSync=(u,y)=>[...y.flatMap((y=>[...transformChunkSync(y,u,0)])),...finalChunksSync(u)];const transformChunkSync=function*(u,y,C){if(C===y.length){yield u;return}const{transform:D=run_sync_identityGenerator}=y[C];for(const _ of D(u)){yield*transformChunkSync(_,y,C+1)}};const finalChunksSync=function*(u){for(const[y,{final:C}]of Object.entries(u)){yield*generatorFinalChunksSync(C,Number(y),u)}};const generatorFinalChunksSync=function*(u,y,C){if(u===undefined){return}for(const D of u()){yield*transformChunkSync(D,C,y+1)}};const run_sync_identityGenerator=function*(u){yield u};const generatorToStream=({value:u,value:{transform:y,final:C,writableObjectMode:D,readableObjectMode:_},optionName:j},{encoding:$})=>{const ne={};const oe=addInternalGenerators(u,$,j);const le=isAsyncGenerator(y);const de=isAsyncGenerator(C);const Ae=le?$s.bind(undefined,transformChunk,ne):pushChunksSync.bind(undefined,transformChunkSync);const pe=le||de?$s.bind(undefined,finalChunks,ne):pushChunksSync.bind(undefined,finalChunksSync);const Ee=le||de?qs.bind(undefined,ne):undefined;const Ce=new Pt.Transform({writableObjectMode:D,writableHighWaterMark:(0,Pt.getDefaultHighWaterMark)(D),readableObjectMode:_,readableHighWaterMark:(0,Pt.getDefaultHighWaterMark)(_),transform(u,y,C){Ae([u,oe,0],this,C)},flush(u){pe([oe],this,u)},destroy:Ee});return{stream:Ce}};const runGeneratorsSync=(u,y,C,D)=>{const _=y.filter((({type:u})=>u==="generator"));const j=D?_.reverse():_;for(const{value:y,optionName:D}of j){const _=addInternalGenerators(y,C,D);u=runTransformSync(_,u)}return u};const addInternalGenerators=({transform:u,final:y,binary:C,writableObjectMode:D,readableObjectMode:_,preserveNewlines:j},$,ne)=>{const oe={};return[{transform:getValidateTransformInput(D,ne)},getEncodingTransformGenerator(C,$,D),getSplitLinesGenerator(C,j,D,oe),{transform:u,final:y},{transform:getValidateTransformReturn(_,ne)},getAppendNewlineGenerator({binary:C,preserveNewlines:j,readableObjectMode:_,state:oe})].filter(Boolean)};const addInputOptionsSync=(u,y)=>{for(const C of getInputFdNumbers(u)){addInputOptionSync(u,C,y)}};const getInputFdNumbers=u=>new Set(Object.entries(u).filter((([,{direction:u}])=>u==="input")).map((([u])=>Number(u))));const addInputOptionSync=(u,y,C)=>{const{stdioItems:D}=u[y];const _=D.filter((({contents:u})=>u!==undefined));if(_.length===0){return}if(y!==0){const[{type:u,optionName:y}]=_;throw new TypeError(`Only the \`stdin\` option, not \`${y}\`, can be ${Ts[u]} with synchronous methods.`)}const j=_.map((({contents:u})=>u));const $=j.map((u=>applySingleInputGeneratorsSync(u,D)));C.input=joinToUint8Array($)};const applySingleInputGeneratorsSync=(u,y)=>{const C=runGeneratorsSync(u,y,"utf8",true);validateSerializable(C);return joinToUint8Array(C)};const validateSerializable=u=>{const y=u.find((u=>typeof u!=="string"&&!isUint8Array(u)));if(y!==undefined){throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${y}.`)}};const shouldLogOutput=({stdioItems:u,encoding:y,verboseInfo:C,fdNumber:D})=>D!=="all"&&isFullVerbose(C,D)&&!hs.has(y)&&fdUsesVerbose(D)&&(u.some((({type:u,value:y})=>u==="native"&&Vs.has(y)))||u.every((({type:u})=>Fs.has(u))));const fdUsesVerbose=u=>u===1||u===2;const Vs=new Set(["pipe","overlapped"]);const logLines=async(u,y,C,D)=>{for await(const _ of u){if(!isPipingStream(y)){logLine(_,C,D)}}};const logLinesSync=(u,y,C)=>{for(const D of u){logLine(D,y,C)}};const isPipingStream=u=>u._readableState.pipes.length>0;const logLine=(u,y,C)=>{const D=serializeVerboseMessage(u);verboseLog({type:"output",verboseMessage:D,fdNumber:y,verboseInfo:C})};const transformOutputSync=({fileDescriptors:u,syncResult:{output:y},options:C,isMaxBuffer:D,verboseInfo:_})=>{if(y===null){return{output:Array.from({length:3})}}const j={};const $=new Set([]);const ne=y.map(((y,ne)=>transformOutputResultSync({result:y,fileDescriptors:u,fdNumber:ne,state:j,outputFiles:$,isMaxBuffer:D,verboseInfo:_},C)));return{output:ne,...j}};const transformOutputResultSync=({result:u,fileDescriptors:y,fdNumber:C,state:D,outputFiles:_,isMaxBuffer:j,verboseInfo:$},{buffer:ne,encoding:oe,lines:le,stripFinalNewline:de,maxBuffer:Ae})=>{if(u===null){return}const pe=truncateMaxBufferSync(u,j,Ae);const Ee=bufferToUint8Array(pe);const{stdioItems:Ce,objectMode:Ie}=y[C];const Be=runOutputGeneratorsSync([Ee],Ce,oe,D);const{serializedResult:De,finalResult:xe=De}=serializeChunks({chunks:Be,objectMode:Ie,encoding:oe,lines:le,stripFinalNewline:de,fdNumber:C});logOutputSync({serializedResult:De,fdNumber:C,state:D,verboseInfo:$,encoding:oe,stdioItems:Ce,objectMode:Ie});const Fe=ne[C]?xe:undefined;try{if(D.error===undefined){writeToFiles(De,Ce,_)}return Fe}catch(u){D.error=u;return Fe}};const runOutputGeneratorsSync=(u,y,C,D)=>{try{return runGeneratorsSync(u,y,C,false)}catch(y){D.error=y;return u}};const serializeChunks=({chunks:u,objectMode:y,encoding:C,lines:D,stripFinalNewline:_,fdNumber:j})=>{if(y){return{serializedResult:u}}if(C==="buffer"){return{serializedResult:joinToUint8Array(u)}}const $=joinToString(u,C);if(D[j]){return{serializedResult:$,finalResult:splitLinesSync($,!_[j],y)}}return{serializedResult:$}};const logOutputSync=({serializedResult:u,fdNumber:y,state:C,verboseInfo:D,encoding:_,stdioItems:j,objectMode:$})=>{if(!shouldLogOutput({stdioItems:j,encoding:_,verboseInfo:D,fdNumber:y})){return}const ne=splitLinesSync(u,false,$);try{logLinesSync(ne,y,D)}catch(u){C.error??=u}};const writeToFiles=(u,y,C)=>{for(const{path:D,append:_}of y.filter((({type:u})=>_s.has(u)))){const y=typeof D==="string"?D:D.toString();if(_||C.has(y)){(0,Rt.appendFileSync)(D,u)}else{C.add(y);(0,Rt.writeFileSync)(D,u)}}};const getAllSync=([,u,y],C)=>{if(!C.all){return}if(u===undefined){return y}if(y===undefined){return u}if(Array.isArray(u)){return Array.isArray(y)?[...u,...y]:[...u,stripNewline(y,C,"all")]}if(Array.isArray(y)){return[stripNewline(u,C,"all"),...y]}if(isUint8Array(u)&&isUint8Array(y)){return concatUint8Arrays([u,y])}return`${u}${y}`};const waitForExit=async(u,y)=>{const[C,D]=await waitForExitOrError(u);y.isForcefullyTerminated??=false;return[C,D]};const waitForExitOrError=async u=>{const[y,C]=await Promise.allSettled([(0,Tt.once)(u,"spawn"),(0,Tt.once)(u,"exit")]);if(y.status==="rejected"){return[]}return C.status==="rejected"?waitForSubprocessExit(u):C.value};const waitForSubprocessExit=async u=>{try{return await(0,Tt.once)(u,"exit")}catch{return waitForSubprocessExit(u)}};const waitForSuccessfulExit=async u=>{const[y,C]=await u;if(!isSubprocessErrorExit(y,C)&&isFailedExit(y,C)){throw new DiscardedError}return[y,C]};const isSubprocessErrorExit=(u,y)=>u===undefined&&y===undefined;const isFailedExit=(u,y)=>u!==0||y!==null;const getExitResultSync=({error:u,status:y,signal:C,output:D},{maxBuffer:_})=>{const j=getResultError(u,y,C);const $=j?.code==="ETIMEDOUT";const ne=isMaxBufferSync(j,D,_);return{resultError:j,exitCode:y,signal:C,timedOut:$,isMaxBuffer:ne}};const getResultError=(u,y,C)=>{if(u!==undefined){return u}return isFailedExit(y,C)?new DiscardedError:undefined};const execaCoreSync=(u,y,C)=>{const{file:D,commandArguments:_,command:j,escapedCommand:$,startTime:ne,verboseInfo:oe,options:le,fileDescriptors:de}=handleSyncArguments(u,y,C);const Ae=spawnSubprocessSync({file:D,commandArguments:_,options:le,command:j,escapedCommand:$,verboseInfo:oe,fileDescriptors:de,startTime:ne});return handleResult(Ae,oe,le)};const handleSyncArguments=(u,y,C)=>{const{command:D,escapedCommand:_,startTime:j,verboseInfo:$}=handleCommand(u,y,C);const ne=normalizeSyncOptions(C);const{file:oe,commandArguments:le,options:de}=normalizeOptions(u,y,ne);validateSyncOptions(de);const Ae=handleStdioSync(de,$);return{file:oe,commandArguments:le,command:D,escapedCommand:_,startTime:j,verboseInfo:$,options:de,fileDescriptors:Ae}};const normalizeSyncOptions=u=>u.node&&!u.ipc?{...u,ipc:false}:u;const validateSyncOptions=({ipc:u,ipcInput:y,detached:C,cancelSignal:D})=>{if(y){throwInvalidSyncOption("ipcInput")}if(u){throwInvalidSyncOption("ipc: true")}if(C){throwInvalidSyncOption("detached: true")}if(D){throwInvalidSyncOption("cancelSignal")}};const throwInvalidSyncOption=u=>{throw new TypeError(`The "${u}" option cannot be used with synchronous methods.`)};const spawnSubprocessSync=({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,verboseInfo:j,fileDescriptors:$,startTime:ne})=>{const oe=runSubprocessSync({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,fileDescriptors:$,startTime:ne});if(oe.failed){return oe}const{resultError:le,exitCode:de,signal:Ae,timedOut:pe,isMaxBuffer:Ee}=getExitResultSync(oe,C);const{output:Ce,error:Ie=le}=transformOutputSync({fileDescriptors:$,syncResult:oe,options:C,isMaxBuffer:Ee,verboseInfo:j});const Be=Ce.map(((u,y)=>stripNewline(u,C,y)));const De=stripNewline(getAllSync(Ce,C),C,"all");return getSyncResult({error:Ie,exitCode:de,signal:Ae,timedOut:pe,isMaxBuffer:Ee,stdio:Be,all:De,options:C,command:D,escapedCommand:_,startTime:ne})};const runSubprocessSync=({file:u,commandArguments:y,options:C,command:D,escapedCommand:_,fileDescriptors:j,startTime:$})=>{try{addInputOptionsSync(j,C);const D=normalizeSpawnSyncOptions(C);return(0,rn.spawnSync)(...concatenateShell(u,y,D))}catch(u){return makeEarlyError({error:u,command:D,escapedCommand:_,fileDescriptors:j,options:C,startTime:$,isSync:true})}};const normalizeSpawnSyncOptions=({encoding:u,maxBuffer:y,...C})=>({...C,encoding:"buffer",maxBuffer:getMaxBufferSync(y)});const getSyncResult=({error:u,exitCode:y,signal:C,timedOut:D,isMaxBuffer:_,stdio:j,all:$,options:ne,command:oe,escapedCommand:le,startTime:de})=>u===undefined?makeSuccessResult({command:oe,escapedCommand:le,stdio:j,all:$,ipcOutput:[],options:ne,startTime:de}):makeError({error:u,command:oe,escapedCommand:le,timedOut:D,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:_,isForcefullyTerminated:false,exitCode:y,signal:C,stdio:j,all:$,ipcOutput:[],options:ne,startTime:de,isSync:true});const getOneMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},{reference:_=true,filter:j}={})=>{validateIpcMethod({methodName:"getOneMessage",isSubprocess:C,ipc:D,isConnected:isConnected(u)});return getOneMessageAsync({anyProcess:u,channel:y,isSubprocess:C,filter:j,reference:_})};const getOneMessageAsync=async({anyProcess:u,channel:y,isSubprocess:C,filter:D,reference:_})=>{addReference(y,_);const j=getIpcEmitter(u,y,C);const $=new AbortController;try{return await Promise.race([getMessage(j,D,$),get_one_throwOnDisconnect(j,C,$),throwOnStrictError(j,C,$)])}catch(y){disconnect(u);throw y}finally{$.abort();removeReference(y,_)}};const getMessage=async(u,y,{signal:C})=>{if(y===undefined){const[y]=await(0,Tt.once)(u,"message",{signal:C});return y}for await(const[D]of(0,Tt.on)(u,"message",{signal:C})){if(y(D)){return D}}};const get_one_throwOnDisconnect=async(u,y,{signal:C})=>{await(0,Tt.once)(u,"disconnect",{signal:C});throwOnEarlyDisconnect(y)};const throwOnStrictError=async(u,y,{signal:C})=>{const[D]=await(0,Tt.once)(u,"strict:error",{signal:C});throw getStrictResponseError(D,y)};const getEachMessage=({anyProcess:u,channel:y,isSubprocess:C,ipc:D},{reference:_=true}={})=>loopOnMessages({anyProcess:u,channel:y,isSubprocess:C,ipc:D,shouldAwait:!C,reference:_});const loopOnMessages=({anyProcess:u,channel:y,isSubprocess:C,ipc:D,shouldAwait:_,reference:j})=>{validateIpcMethod({methodName:"getEachMessage",isSubprocess:C,ipc:D,isConnected:isConnected(u)});addReference(y,j);const $=getIpcEmitter(u,y,C);const ne=new AbortController;const oe={};stopOnDisconnect(u,$,ne);abortOnStrictError({ipcEmitter:$,isSubprocess:C,controller:ne,state:oe});return iterateOnMessages({anyProcess:u,channel:y,ipcEmitter:$,isSubprocess:C,shouldAwait:_,controller:ne,state:oe,reference:j})};const stopOnDisconnect=async(u,y,C)=>{try{await(0,Tt.once)(y,"disconnect",{signal:C.signal});C.abort()}catch{}};const abortOnStrictError=async({ipcEmitter:u,isSubprocess:y,controller:C,state:D})=>{try{const[_]=await(0,Tt.once)(u,"strict:error",{signal:C.signal});D.error=getStrictResponseError(_,y);C.abort()}catch{}};const iterateOnMessages=async function*({anyProcess:u,channel:y,ipcEmitter:C,isSubprocess:D,shouldAwait:_,controller:j,state:$,reference:ne}){try{for await(const[u]of(0,Tt.on)(C,"message",{signal:j.signal})){throwIfStrictError($);yield u}}catch{throwIfStrictError($)}finally{j.abort();removeReference(y,ne);if(!D){disconnect(u)}if(_){await u}}};const throwIfStrictError=({error:u})=>{if(u){throw u}};const addIpcMethods=(u,{ipc:y})=>{Object.assign(u,getIpcMethods(u,false,y))};const getIpcExport=()=>{const u=un;const y=true;const C=un.channel!==undefined;return{...getIpcMethods(u,y,C),getCancelSignal:getCancelSignal.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C})}};const getIpcMethods=(u,y,C)=>({sendMessage:sendMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C}),getOneMessage:getOneMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C}),getEachMessage:getEachMessage.bind(undefined,{anyProcess:u,channel:u.channel,isSubprocess:y,ipc:C})});const handleEarlyError=({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,verboseInfo:$})=>{cleanupCustomStreams(D);const ne=new rn.ChildProcess;createDummyStreams(ne,D);Object.assign(ne,{readable:readable,writable:writable,duplex:duplex});const oe=makeEarlyError({error:u,command:y,escapedCommand:C,fileDescriptors:D,options:_,startTime:j,isSync:false});const le=handleDummyPromise(oe,$,_);return{subprocess:ne,promise:le}};const createDummyStreams=(u,y)=>{const C=createDummyStream();const D=createDummyStream();const _=createDummyStream();const j=Array.from({length:y.length-3},createDummyStream);const $=createDummyStream();const ne=[C,D,_,...j];Object.assign(u,{stdin:C,stdout:D,stderr:_,all:$,stdio:ne})};const createDummyStream=()=>{const u=new Pt.PassThrough;u.end();return u};const readable=()=>new Pt.Readable({read(){}});const writable=()=>new Pt.Writable({write(){}});const duplex=()=>new Pt.Duplex({read(){},write(){}});const handleDummyPromise=async(u,y,C)=>handleResult(u,y,C);const handleStdioAsync=(u,y)=>handleStdio(Ks,u,y,false);const forbiddenIfAsync=({type:u,optionName:y})=>{throw new TypeError(`The \`${y}\` option cannot be ${Ts[u]}.`)};const Js={fileNumber:forbiddenIfAsync,generator:generatorToStream,asyncGenerator:generatorToStream,nodeStream:({value:u})=>({stream:u}),webTransform({value:{transform:u,writableObjectMode:y,readableObjectMode:C}}){const D=y||C;const _=Pt.Duplex.fromWeb(u,{objectMode:D});return{stream:_}},duplex:({value:{transform:u}})=>({stream:u}),native(){}};const Ks={input:{...Js,fileUrl:({value:u})=>({stream:(0,Rt.createReadStream)(u)}),filePath:({value:{file:u}})=>({stream:(0,Rt.createReadStream)(u)}),webStream:({value:u})=>({stream:Pt.Readable.fromWeb(u)}),iterable:({value:u})=>({stream:Pt.Readable.from(u)}),asyncIterable:({value:u})=>({stream:Pt.Readable.from(u)}),string:({value:u})=>({stream:Pt.Readable.from(u)}),uint8Array:({value:u})=>({stream:Pt.Readable.from(zs.Buffer.from(u))})},output:{...Js,fileUrl:({value:u})=>({stream:(0,Rt.createWriteStream)(u)}),filePath:({value:{file:u,append:y}})=>({stream:(0,Rt.createWriteStream)(u,y?{flags:"a"}:{})}),webStream:({value:u})=>({stream:Pt.Writable.fromWeb(u)}),iterable:forbiddenIfAsync,asyncIterable:forbiddenIfAsync,string:forbiddenIfAsync,uint8Array:forbiddenIfAsync}};const Ys=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");function mergeStreams(u){if(!Array.isArray(u)){throw new TypeError(`Expected an array, got \`${typeof u}\`.`)}for(const y of u){validateStream(y)}const y=u.some((({readableObjectMode:u})=>u));const C=getHighWaterMark(u,y);const D=new MergedStream({objectMode:y,writableHighWaterMark:C,readableHighWaterMark:C});for(const y of u){D.add(y)}return D}const getHighWaterMark=(u,y)=>{if(u.length===0){return(0,Pt.getDefaultHighWaterMark)(y)}const C=u.filter((({readableObjectMode:u})=>u===y)).map((({readableHighWaterMark:u})=>u));return Math.max(...C)};class MergedStream extends Pt.PassThrough{#bt=new Set([]);#vt=new Set([]);#wt=new Set([]);#Bt;#Dt=Symbol("unpipe");#St=new WeakMap;add(u){validateStream(u);if(this.#bt.has(u)){return}this.#bt.add(u);this.#Bt??=onMergedStreamFinished(this,this.#bt,this.#Dt);const y=endWhenStreamsDone({passThroughStream:this,stream:u,streams:this.#bt,ended:this.#vt,aborted:this.#wt,onFinished:this.#Bt,unpipeEvent:this.#Dt});this.#St.set(u,y);u.pipe(this,{end:false})}async remove(u){validateStream(u);if(!this.#bt.has(u)){return false}const y=this.#St.get(u);if(y===undefined){return false}this.#St.delete(u);u.unpipe(this);await y;return true}}const onMergedStreamFinished=async(u,y,C)=>{updateMaxListeners(u,Xs);const D=new AbortController;try{await Promise.race([onMergedStreamEnd(u,D),onInputStreamsUnpipe(u,y,C,D)])}finally{D.abort();updateMaxListeners(u,-Xs)}};const onMergedStreamEnd=async(u,{signal:y})=>{try{await(0,Ys.finished)(u,{signal:y,cleanup:true})}catch(y){errorOrAbortStream(u,y);throw y}};const onInputStreamsUnpipe=async(u,y,C,{signal:D})=>{for await(const[_]of(0,Tt.on)(u,"unpipe",{signal:D})){if(y.has(_)){_.emit(C)}}};const validateStream=u=>{if(typeof u?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof u}\`.`)}};const endWhenStreamsDone=async({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,onFinished:j,unpipeEvent:$})=>{updateMaxListeners(u,Zs);const ne=new AbortController;try{await Promise.race([afterMergedStreamFinished(j,y,ne),onInputStreamEnd({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,controller:ne}),onInputStreamUnpipe({stream:y,streams:C,ended:D,aborted:_,unpipeEvent:$,controller:ne})])}finally{ne.abort();updateMaxListeners(u,-Zs)}if(C.size>0&&C.size===D.size+_.size){if(D.size===0&&_.size>0){abortStream(u)}else{endStream(u)}}};const afterMergedStreamFinished=async(u,y,{signal:C})=>{try{await u;if(!C.aborted){abortStream(y)}}catch(u){if(!C.aborted){errorOrAbortStream(y,u)}}};const onInputStreamEnd=async({passThroughStream:u,stream:y,streams:C,ended:D,aborted:_,controller:{signal:j}})=>{try{await(0,Ys.finished)(y,{signal:j,cleanup:true,readable:true,writable:false});if(C.has(y)){D.add(y)}}catch(D){if(j.aborted||!C.has(y)){return}if(isAbortError(D)){_.add(y)}else{errorStream(u,D)}}};const onInputStreamUnpipe=async({stream:u,streams:y,ended:C,aborted:D,unpipeEvent:_,controller:{signal:j}})=>{await(0,Tt.once)(u,_,{signal:j});if(!u.readable){return(0,Tt.once)(j,"abort",{signal:j})}y.delete(u);C.delete(u);D.delete(u)};const endStream=u=>{if(u.writable){u.end()}};const errorOrAbortStream=(u,y)=>{if(isAbortError(y)){abortStream(u)}else{errorStream(u,y)}};const isAbortError=u=>u?.code==="ERR_STREAM_PREMATURE_CLOSE";const abortStream=u=>{if(u.readable||u.writable){u.destroy()}};const errorStream=(u,y)=>{if(!u.destroyed){u.once("error",noop);u.destroy(y)}};const noop=()=>{};const updateMaxListeners=(u,y)=>{const C=u.getMaxListeners();if(C!==0&&C!==Number.POSITIVE_INFINITY){u.setMaxListeners(C+y)}};const Xs=2;const Zs=1;const pipeStreams=(u,y)=>{u.pipe(y);onSourceFinish(u,y);onDestinationFinish(u,y)};const onSourceFinish=async(u,y)=>{if(isStandardStream(u)||isStandardStream(y)){return}try{await(0,Ys.finished)(u,{cleanup:true,readable:true,writable:false})}catch{}endDestinationStream(y)};const endDestinationStream=u=>{if(u.writable){u.end()}};const onDestinationFinish=async(u,y)=>{if(isStandardStream(u)||isStandardStream(y)){return}try{await(0,Ys.finished)(y,{cleanup:true,readable:false,writable:true})}catch{}abortSourceStream(u)};const abortSourceStream=u=>{if(u.readable){u.destroy()}};const pipeOutputAsync=(u,y,C)=>{const D=new Map;for(const[_,{stdioItems:j,direction:$}]of Object.entries(y)){for(const{stream:y}of j.filter((({type:u})=>Fs.has(u)))){pipeTransform(u,y,$,_)}for(const{stream:y}of j.filter((({type:u})=>!Fs.has(u)))){pipeStdioItem({subprocess:u,stream:y,direction:$,fdNumber:_,pipeGroups:D,controller:C})}}for(const[u,y]of D.entries()){const C=y.length===1?y[0]:mergeStreams(y);pipeStreams(C,u)}};const pipeTransform=(u,y,C,D)=>{if(C==="output"){pipeStreams(u.stdio[D],y)}else{pipeStreams(y,u.stdio[D])}const _=eo[D];if(_!==undefined){u[_]=y}u.stdio[D]=y};const eo=["stdin","stdout","stderr"];const pipeStdioItem=({subprocess:u,stream:y,direction:C,fdNumber:D,pipeGroups:_,controller:j})=>{if(y===undefined){return}setStandardStreamMaxListeners(y,j);const[$,ne]=C==="output"?[y,u.stdio[D]]:[u.stdio[D],y];const oe=_.get($)??[];_.set($,[...oe,ne])};const setStandardStreamMaxListeners=(u,{signal:y})=>{if(isStandardStream(u)){incrementMaxListeners(u,to,y)}};const to=2;const ro=[];ro.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32"){ro.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){ro.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")}const processOk=u=>!!u&&typeof u==="object"&&typeof u.removeListener==="function"&&typeof u.emit==="function"&&typeof u.reallyExit==="function"&&typeof u.listeners==="function"&&typeof u.kill==="function"&&typeof u.pid==="number"&&typeof u.on==="function";const no=Symbol.for("signal-exit emitter");const io=globalThis;const so=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:false,exit:false};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(io[no]){return io[no]}so(io,no,{value:this,writable:false,enumerable:false,configurable:false})}on(u,y){this.listeners[u].push(y)}removeListener(u,y){const C=this.listeners[u];const D=C.indexOf(y);if(D===-1){return}if(D===0&&C.length===1){C.length=0}else{C.splice(D,1)}}emit(u,y,C){if(this.emitted[u]){return false}this.emitted[u]=true;let D=false;for(const _ of this.listeners[u]){D=_(y,C)===true||D}if(u==="exit"){D=this.emit("afterExit",y,C)||D}return D}}class SignalExitBase{}const signalExitWrap=u=>({onExit(y,C){return u.onExit(y,C)},load(){return u.load()},unload(){return u.unload()}});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#kt=oo.platform==="win32"?"SIGINT":"SIGHUP";#Qt=new Emitter;#xt;#Ft;#_t;#Rt={};#Lt=false;constructor(u){super();this.#xt=u;this.#Rt={};for(const y of ro){this.#Rt[y]=()=>{const C=this.#xt.listeners(y);let{count:D}=this.#Qt;const _=u;if(typeof _.__signal_exit_emitter__==="object"&&typeof _.__signal_exit_emitter__.count==="number"){D+=_.__signal_exit_emitter__.count}if(C.length===D){this.unload();const C=this.#Qt.emit("exit",null,y);const D=y==="SIGHUP"?this.#kt:y;if(!C)u.kill(u.pid,D)}}}this.#_t=u.reallyExit;this.#Ft=u.emit}onExit(u,y){if(!processOk(this.#xt)){return()=>{}}if(this.#Lt===false){this.load()}const C=y?.alwaysLast?"afterExit":"exit";this.#Qt.on(C,u);return()=>{this.#Qt.removeListener(C,u);if(this.#Qt.listeners["exit"].length===0&&this.#Qt.listeners["afterExit"].length===0){this.unload()}}}load(){if(this.#Lt){return}this.#Lt=true;this.#Qt.count+=1;for(const u of ro){try{const y=this.#Rt[u];if(y)this.#xt.on(u,y)}catch(u){}}this.#xt.emit=(u,...y)=>this.#Nt(u,...y);this.#xt.reallyExit=u=>this.#Tt(u)}unload(){if(!this.#Lt){return}this.#Lt=false;ro.forEach((u=>{const y=this.#Rt[u];if(!y){throw new Error("Listener not defined for signal: "+u)}try{this.#xt.removeListener(u,y)}catch(u){}}));this.#xt.emit=this.#Ft;this.#xt.reallyExit=this.#_t;this.#Qt.count-=1}#Tt(u){if(!processOk(this.#xt)){return 0}this.#xt.exitCode=u||0;this.#Qt.emit("exit",this.#xt.exitCode,null);return this.#_t.call(this.#xt,this.#xt.exitCode)}#Nt(u,...y){const C=this.#Ft;if(u==="exit"&&processOk(this.#xt)){if(typeof y[0]==="number"){this.#xt.exitCode=y[0]}const D=C.call(this.#xt,u,...y);this.#Qt.emit("exit",this.#xt.exitCode,null);return D}else{return C.call(this.#xt,u,...y)}}}const oo=globalThis.process;const{onExit:ao,load:lo,unload:co}=signalExitWrap(processOk(oo)?new SignalExit(oo):new SignalExitFallback);const cleanupOnExit=(u,{cleanup:y,detached:C},{signal:D})=>{if(!y||C){return}const _=ao((()=>{u.kill()}));(0,Tt.addAbortListener)(D,(()=>{_()}))};const normalizePipeArguments=({source:u,sourcePromise:y,boundOptions:C,createNested:D},..._)=>{const j=getStartTime();const{destination:$,destinationStream:ne,destinationError:oe,from:le,unpipeSignal:de}=getDestinationStream(C,D,_);const{sourceStream:Ae,sourceError:pe}=getSourceStream(u,le);const{options:Ee,fileDescriptors:Ce}=Xi.get(u);return{sourcePromise:y,sourceStream:Ae,sourceOptions:Ee,sourceError:pe,destination:$,destinationStream:ne,destinationError:oe,unpipeSignal:de,fileDescriptors:Ce,startTime:j}};const getDestinationStream=(u,y,C)=>{try{const{destination:D,pipeOptions:{from:_,to:j,unpipeSignal:$}={}}=getDestination(u,y,...C);const ne=getToStream(D,j);return{destination:D,destinationStream:ne,from:_,unpipeSignal:$}}catch(u){return{destinationError:u}}};const getDestination=(u,y,C,...D)=>{if(Array.isArray(C)){const _=y(mapDestinationArguments,u)(C,...D);return{destination:_,pipeOptions:u}}if(typeof C==="string"||C instanceof URL||isDenoExecPath(C)){if(Object.keys(u).length>0){throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).')}const[_,j,$]=normalizeParameters(C,...D);const ne=y(mapDestinationArguments)(_,j,$);return{destination:ne,pipeOptions:$}}if(Xi.has(C)){if(Object.keys(u).length>0){throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).")}return{destination:C,pipeOptions:D[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${C}`)};const mapDestinationArguments=({options:u})=>({options:{...u,stdin:"pipe",piped:true}});const getSourceStream=(u,y)=>{try{const C=getFromStream(u,y);return{sourceStream:C}}catch(u){return{sourceError:u}}};const handlePipeArgumentsError=({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D,fileDescriptors:_,sourceOptions:j,startTime:$})=>{const ne=getPipeArgumentsError({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D});if(ne!==undefined){throw createNonCommandError({error:ne,fileDescriptors:_,sourceOptions:j,startTime:$})}};const getPipeArgumentsError=({sourceStream:u,sourceError:y,destinationStream:C,destinationError:D})=>{if(y!==undefined&&D!==undefined){return D}if(D!==undefined){abortSourceStream(u);return D}if(y!==undefined){endDestinationStream(C);return y}};const createNonCommandError=({error:u,fileDescriptors:y,sourceOptions:C,startTime:D})=>makeEarlyError({error:u,command:uo,escapedCommand:uo,fileDescriptors:y,options:C,startTime:D,isSync:false});const uo="source.pipe(destination)";const waitForBothSubprocesses=async u=>{const[{status:y,reason:C,value:D=C},{status:_,reason:j,value:$=j}]=await u;if(!$.pipedFrom.includes(D)){$.pipedFrom.push(D)}if(_==="rejected"){throw $}if(y==="rejected"){throw D}return $};const pipeSubprocessStream=(u,y,C)=>{const D=fo.has(y)?pipeMoreSubprocessStream(u,y):pipeFirstSubprocessStream(u,y);incrementMaxListeners(u,Ao,C.signal);incrementMaxListeners(y,ho,C.signal);cleanupMergedStreamsMap(y);return D};const pipeFirstSubprocessStream=(u,y)=>{const C=mergeStreams([u]);pipeStreams(C,y);fo.set(y,C);return C};const pipeMoreSubprocessStream=(u,y)=>{const C=fo.get(y);C.add(u);return C};const cleanupMergedStreamsMap=async u=>{try{await(0,Ys.finished)(u,{cleanup:true,readable:false,writable:true})}catch{}fo.delete(u)};const fo=new WeakMap;const Ao=2;const ho=1;const unpipeOnAbort=(u,y)=>u===undefined?[]:[unpipeOnSignalAbort(u,y)];const unpipeOnSignalAbort=async(u,{sourceStream:y,mergedStream:C,fileDescriptors:D,sourceOptions:_,startTime:j})=>{await(0,cn.aborted)(u,y);await C.remove(y);const $=new Error("Pipe canceled by `unpipeSignal` option.");throw createNonCommandError({error:$,fileDescriptors:D,sourceOptions:_,startTime:j})};const pipeToSubprocess=(u,...y)=>{if(isPlainObject(y[0])){return pipeToSubprocess.bind(undefined,{...u,boundOptions:{...u.boundOptions,...y[0]}})}const{destination:C,...D}=normalizePipeArguments(u,...y);const _=handlePipePromise({...D,destination:C});_.pipe=pipeToSubprocess.bind(undefined,{...u,source:C,sourcePromise:_,boundOptions:{}});return _};const handlePipePromise=async({sourcePromise:u,sourceStream:y,sourceOptions:C,sourceError:D,destination:_,destinationStream:j,destinationError:$,unpipeSignal:ne,fileDescriptors:oe,startTime:le})=>{const de=getSubprocessPromises(u,_);handlePipeArgumentsError({sourceStream:y,sourceError:D,destinationStream:j,destinationError:$,fileDescriptors:oe,sourceOptions:C,startTime:le});const Ae=new AbortController;try{const u=pipeSubprocessStream(y,j,Ae);return await Promise.race([waitForBothSubprocesses(de),...unpipeOnAbort(ne,{sourceStream:y,mergedStream:u,sourceOptions:C,fileDescriptors:oe,startTime:le})])}finally{Ae.abort()}};const getSubprocessPromises=(u,y)=>Promise.allSettled([u,y]);const utils_identity=u=>u;const utils_noop=()=>undefined;const getContentsProperty=({contents:u})=>u;const throwObjectStream=u=>{throw new Error(`Streams in object mode are not supported: ${String(u)}`)};const getLengthProperty=u=>u.length;async function getStreamAsArray(u,y){return getStreamContents(u,po,y)}const initArray=()=>({contents:[]});const increment=()=>1;const addArrayChunk=(u,{contents:y})=>{y.push(u);return y};const po={init:initArray,convertChunk:{string:utils_identity,buffer:utils_identity,arrayBuffer:utils_identity,dataView:utils_identity,typedArray:utils_identity,others:utils_identity},getSize:increment,truncateChunk:utils_noop,addChunk:addArrayChunk,getFinalChunk:utils_noop,finalize:getContentsProperty};async function getStreamAsArrayBuffer(u,y){return getStreamContents(u,yo,y)}const initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const useTextEncoder=u=>go.encode(u);const go=new TextEncoder;const useUint8Array=u=>new Uint8Array(u);const useUint8ArrayWithOffset=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const truncateArrayBufferChunk=(u,y)=>u.slice(0,y);const addArrayBufferChunk=(u,{contents:y,length:C},D)=>{const _=hasArrayBufferResize()?resizeArrayBuffer(y,D):resizeArrayBufferSlow(y,D);new Uint8Array(_).set(u,C);return _};const resizeArrayBufferSlow=(u,y)=>{if(y<=u.byteLength){return u}const C=new ArrayBuffer(getNewContentsLength(y));new Uint8Array(C).set(new Uint8Array(u),0);return C};const resizeArrayBuffer=(u,y)=>{if(y<=u.maxByteLength){u.resize(y);return u}const C=new ArrayBuffer(y,{maxByteLength:getNewContentsLength(y)});new Uint8Array(C).set(new Uint8Array(u),0);return C};const getNewContentsLength=u=>mo**Math.ceil(Math.log(u)/Math.log(mo));const mo=2;const finalizeArrayBuffer=({contents:u,length:y})=>hasArrayBufferResize()?u:u.slice(0,y);const hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const yo={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:utils_noop,finalize:finalizeArrayBuffer};async function getStreamAsString(u,y){return getStreamContents(u,Eo,y)}const initString=()=>({contents:"",textDecoder:new TextDecoder});const useTextDecoder=(u,{textDecoder:y})=>y.decode(u,{stream:true});const addStringChunk=(u,{contents:y})=>y+u;const truncateStringChunk=(u,y)=>u.slice(0,y);const getFinalStringChunk=({textDecoder:u})=>{const y=u.decode();return y===""?undefined:y};const Eo={init:initString,convertChunk:{string:utils_identity,buffer:useTextDecoder,arrayBuffer:useTextDecoder,dataView:useTextDecoder,typedArray:useTextDecoder,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateStringChunk,addChunk:addStringChunk,getFinalChunk:getFinalStringChunk,finalize:getContentsProperty};const iterateOnSubprocessStream=({subprocessStdout:u,subprocess:y,binary:C,shouldEncode:D,encoding:_,preserveNewlines:j})=>{const $=new AbortController;stopReadingOnExit(y,$);return iterateOnStream({stream:u,controller:$,binary:C,shouldEncode:!u.readableObjectMode&&D,encoding:_,shouldSplit:!u.readableObjectMode,preserveNewlines:j})};const stopReadingOnExit=async(u,y)=>{try{await u}catch{}finally{y.abort()}};const iterateForResult=({stream:u,onStreamEnd:y,lines:C,encoding:D,stripFinalNewline:_,allMixed:j})=>{const $=new AbortController;stopReadingOnStreamEnd(y,$,u);const ne=u.readableObjectMode&&!j;return iterateOnStream({stream:u,controller:$,binary:D==="buffer",shouldEncode:!ne,encoding:D,shouldSplit:!ne&&C,preserveNewlines:!_})};const stopReadingOnStreamEnd=async(u,y,C)=>{try{await u}catch{C.destroy()}finally{y.abort()}};const iterateOnStream=({stream:u,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$})=>{const ne=(0,Tt.on)(u,"data",{signal:y.signal,highWaterMark:Io,highWatermark:Io});return iterateOnData({onStdoutChunk:ne,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$})};const Co=(0,Pt.getDefaultHighWaterMark)(true);const Io=Co;const iterateOnData=async function*({onStdoutChunk:u,controller:y,binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$}){const ne=getGenerators({binary:C,shouldEncode:D,encoding:_,shouldSplit:j,preserveNewlines:$});try{for await(const[y]of u){yield*transformChunkSync(y,ne,0)}}catch(u){if(!y.signal.aborted){throw u}}finally{yield*finalChunksSync(ne)}};const getGenerators=({binary:u,shouldEncode:y,encoding:C,shouldSplit:D,preserveNewlines:_})=>[getEncodingTransformGenerator(u,C,!y),getSplitLinesGenerator(u,_,!D,{})].filter(Boolean);const getStreamOutput=async({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,buffer:_,maxBuffer:j,lines:$,allMixed:ne,stripFinalNewline:oe,verboseInfo:le,streamInfo:de})=>{const Ae=logOutputAsync({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,allMixed:ne,verboseInfo:le,streamInfo:de});if(!_){await Promise.all([resumeStream(u),Ae]);return}const pe=getStripFinalNewline(oe,C);const Ee=iterateForResult({stream:u,onStreamEnd:y,lines:$,encoding:D,stripFinalNewline:pe,allMixed:ne});const[Ce]=await Promise.all([contents_getStreamContents({stream:u,iterable:Ee,fdNumber:C,encoding:D,maxBuffer:j,lines:$}),Ae]);return Ce};const logOutputAsync=async({stream:u,onStreamEnd:y,fdNumber:C,encoding:D,allMixed:_,verboseInfo:j,streamInfo:{fileDescriptors:$}})=>{if(!shouldLogOutput({stdioItems:$[C]?.stdioItems,encoding:D,verboseInfo:j,fdNumber:C})){return}const ne=iterateForResult({stream:u,onStreamEnd:y,lines:true,encoding:D,stripFinalNewline:true,allMixed:_});await logLines(ne,u,C,j)};const resumeStream=async u=>{await(0,Mi.setImmediate)();if(u.readableFlowing===null){u.resume()}};const contents_getStreamContents=async({stream:u,stream:{readableObjectMode:y},iterable:C,fdNumber:D,encoding:_,maxBuffer:j,lines:$})=>{try{if(y||$){return await getStreamAsArray(C,{maxBuffer:j})}if(_==="buffer"){return new Uint8Array(await getStreamAsArrayBuffer(C,{maxBuffer:j}))}return await getStreamAsString(C,{maxBuffer:j})}catch(C){return handleBufferedData(handleMaxBuffer({error:C,stream:u,readableObjectMode:y,lines:$,encoding:_,fdNumber:D}))}};const getBufferedData=async u=>{try{return await u}catch(u){return handleBufferedData(u)}};const handleBufferedData=({bufferedData:u})=>isArrayBuffer(u)?new Uint8Array(u):u;const waitForStream=async(u,y,C,{isSameDirection:D,stopOnExit:_=false}={})=>{const j=handleStdinDestroy(u,C);const $=new AbortController;try{await Promise.race([..._?[C.exitPromise]:[],(0,Ys.finished)(u,{cleanup:true,signal:$.signal})])}catch(u){if(!j.stdinCleanedUp){handleStreamError(u,y,C,D)}}finally{$.abort()}};const handleStdinDestroy=(u,{originalStreams:[y],subprocess:C})=>{const D={stdinCleanedUp:false};if(u===y){spyOnStdinDestroy(u,C,D)}return D};const spyOnStdinDestroy=(u,y,C)=>{const{_destroy:D}=u;u._destroy=(..._)=>{setStdinCleanedUp(y,C);D.call(u,..._)}};const setStdinCleanedUp=({exitCode:u,signalCode:y},C)=>{if(u!==null||y!==null){C.stdinCleanedUp=true}};const handleStreamError=(u,y,C,D)=>{if(!shouldIgnoreStreamError(u,y,C,D)){throw u}};const shouldIgnoreStreamError=(u,y,C,D=true)=>{if(C.propagating){return isStreamEpipe(u)||isStreamAbort(u)}C.propagating=true;return isInputFileDescriptor(C,y)===D?isStreamEpipe(u):isStreamAbort(u)};const isInputFileDescriptor=({fileDescriptors:u},y)=>y!=="all"&&u[y].direction==="input";const isStreamAbort=u=>u?.code==="ERR_STREAM_PREMATURE_CLOSE";const isStreamEpipe=u=>u?.code==="EPIPE";const waitForStdioStreams=({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})=>u.stdio.map(((u,oe)=>waitForSubprocessStream({stream:u,fdNumber:oe,encoding:y,buffer:C[oe],maxBuffer:D[oe],lines:_[oe],allMixed:false,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})));const waitForSubprocessStream=async({stream:u,fdNumber:y,encoding:C,buffer:D,maxBuffer:_,lines:j,allMixed:$,stripFinalNewline:ne,verboseInfo:oe,streamInfo:le})=>{if(!u){return}const de=waitForStream(u,y,le);if(isInputFileDescriptor(le,y)){await de;return}const[Ae]=await Promise.all([getStreamOutput({stream:u,onStreamEnd:de,fdNumber:y,encoding:C,buffer:D,maxBuffer:_,lines:j,allMixed:$,stripFinalNewline:ne,verboseInfo:oe,streamInfo:le}),de]);return Ae};const makeAllStream=({stdout:u,stderr:y},{all:C})=>C&&(u||y)?mergeStreams([u,y].filter(Boolean)):undefined;const waitForAllStream=({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:j,verboseInfo:$,streamInfo:ne})=>waitForSubprocessStream({...getAllStream(u,C),fdNumber:"all",encoding:y,maxBuffer:D[1]+D[2],lines:_[1]||_[2],allMixed:getAllMixed(u),stripFinalNewline:j,verboseInfo:$,streamInfo:ne});const getAllStream=({stdout:u,stderr:y,all:C},[,D,_])=>{const j=D||_;if(!j){return{stream:C,buffer:j}}if(!D){return{stream:y,buffer:j}}if(!_){return{stream:u,buffer:j}}return{stream:C,buffer:j}};const getAllMixed=({all:u,stdout:y,stderr:C})=>u&&y&&C&&y.readableObjectMode!==C.readableObjectMode;const shouldLogIpc=u=>isFullVerbose(u,"ipc");const logIpcOutput=(u,y)=>{const C=serializeVerboseMessage(u);verboseLog({type:"ipc",verboseMessage:C,fdNumber:"ipc",verboseInfo:y})};const waitForIpcOutput=async({subprocess:u,buffer:y,maxBuffer:C,ipc:D,ipcOutput:_,verboseInfo:j})=>{if(!D){return _}const $=shouldLogIpc(j);const ne=getFdSpecificValue(y,"ipc");const oe=getFdSpecificValue(C,"ipc");for await(const y of loopOnMessages({anyProcess:u,channel:u.channel,isSubprocess:false,ipc:D,shouldAwait:false,reference:true})){if(ne){checkIpcMaxBuffer(u,_,oe);_.push(y)}if($){logIpcOutput(y,j)}}return _};const getBufferedIpcOutput=async(u,y)=>{await Promise.allSettled([u]);return y};const waitForSubprocessResult=async({subprocess:u,options:{encoding:y,buffer:C,maxBuffer:D,lines:_,timeoutDuration:j,cancelSignal:$,gracefulCancel:ne,forceKillAfterDelay:oe,stripFinalNewline:le,ipc:de,ipcInput:Ae},context:pe,verboseInfo:Ee,fileDescriptors:Ce,originalStreams:Ie,onInternalError:Be,controller:De})=>{const xe=waitForExit(u,pe);const Fe={originalStreams:Ie,fileDescriptors:Ce,subprocess:u,exitPromise:xe,propagating:false};const _e=waitForStdioStreams({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:le,verboseInfo:Ee,streamInfo:Fe});const Le=waitForAllStream({subprocess:u,encoding:y,buffer:C,maxBuffer:D,lines:_,stripFinalNewline:le,verboseInfo:Ee,streamInfo:Fe});const ze=[];const qe=waitForIpcOutput({subprocess:u,buffer:C,maxBuffer:D,ipc:de,ipcOutput:ze,verboseInfo:Ee});const Je=waitForOriginalStreams(Ie,u,Fe);const Ke=waitForCustomStreamsEnd(Ce,Fe);try{return await Promise.race([Promise.all([{},waitForSuccessfulExit(xe),Promise.all(_e),Le,qe,sendIpcInput(u,Ae),...Je,...Ke]),Be,throwOnSubprocessError(u,De),...throwOnTimeout(u,j,pe,De),...throwOnCancel({subprocess:u,cancelSignal:$,gracefulCancel:ne,context:pe,controller:De}),...throwOnGracefulCancel({subprocess:u,cancelSignal:$,gracefulCancel:ne,forceKillAfterDelay:oe,context:pe,controller:De})])}catch(u){pe.terminationReason??="other";return Promise.all([{error:u},xe,Promise.all(_e.map((u=>getBufferedData(u)))),getBufferedData(Le),getBufferedIpcOutput(qe,ze),Promise.allSettled(Je),Promise.allSettled(Ke)])}};const waitForOriginalStreams=(u,y,C)=>u.map(((u,D)=>u===y.stdio[D]?undefined:waitForStream(u,D,C)));const waitForCustomStreamsEnd=(u,y)=>u.flatMap((({stdioItems:u},C)=>u.filter((({value:u,stream:y=u})=>is_stream_isStream(y,{checkOpen:false})&&!isStandardStream(y))).map((({type:u,value:D,stream:_=D})=>waitForStream(_,C,y,{isSameDirection:Fs.has(u),stopOnExit:u==="native"})))));const throwOnSubprocessError=async(u,{signal:y})=>{const[C]=await(0,Tt.once)(u,"error",{signal:y});throw C};const initializeConcurrentStreams=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap});const addConcurrentStream=(u,y,C)=>{const D=u[C];if(!D.has(y)){D.set(y,[])}const _=D.get(y);const j=createDeferred();_.push(j);const $=j.resolve.bind(j);return{resolve:$,promises:_}};const waitForConcurrentStreams=async({resolve:u,promises:y},C)=>{u();const[D]=await Promise.race([Promise.allSettled([true,C]),Promise.all([false,...y])]);return!D};const safeWaitForSubprocessStdin=async u=>{if(u===undefined){return}try{await waitForSubprocessStdin(u)}catch{}};const safeWaitForSubprocessStdout=async u=>{if(u===undefined){return}try{await waitForSubprocessStdout(u)}catch{}};const waitForSubprocessStdin=async u=>{await(0,Ys.finished)(u,{cleanup:true,readable:false,writable:true})};const waitForSubprocessStdout=async u=>{await(0,Ys.finished)(u,{cleanup:true,readable:true,writable:false})};const waitForSubprocess=async(u,y)=>{await u;if(y){throw y}};const destroyOtherStream=(u,y,C)=>{if(C&&!isStreamAbort(C)){u.destroy(C)}else if(y){u.destroy()}};const createReadable=({subprocess:u,concurrentStreams:y,encoding:C},{from:D,binary:_=true,preserveNewlines:j=true}={})=>{const $=_||hs.has(C);const{subprocessStdout:ne,waitReadableDestroy:oe}=getSubprocessStdout(u,D,y);const{readableEncoding:le,readableObjectMode:de,readableHighWaterMark:Ae}=getReadableOptions(ne,$);const{read:pe,onStdoutDataDone:Ee}=getReadableMethods({subprocessStdout:ne,subprocess:u,binary:$,encoding:C,preserveNewlines:j});const Ce=new Pt.Readable({read:pe,destroy:(0,cn.callbackify)(onReadableDestroy.bind(undefined,{subprocessStdout:ne,subprocess:u,waitReadableDestroy:oe})),highWaterMark:Ae,objectMode:de,encoding:le});onStdoutFinished({subprocessStdout:ne,onStdoutDataDone:Ee,readable:Ce,subprocess:u});return Ce};const getSubprocessStdout=(u,y,C)=>{const D=getFromStream(u,y);const _=addConcurrentStream(C,D,"readableDestroy");return{subprocessStdout:D,waitReadableDestroy:_}};const getReadableOptions=({readableEncoding:u,readableObjectMode:y,readableHighWaterMark:C},D)=>D?{readableEncoding:u,readableObjectMode:y,readableHighWaterMark:C}:{readableEncoding:u,readableObjectMode:true,readableHighWaterMark:Co};const getReadableMethods=({subprocessStdout:u,subprocess:y,binary:C,encoding:D,preserveNewlines:_})=>{const j=createDeferred();const $=iterateOnSubprocessStream({subprocessStdout:u,subprocess:y,binary:C,shouldEncode:!C,encoding:D,preserveNewlines:_});return{read(){onRead(this,$,j)},onStdoutDataDone:j}};const onRead=async(u,y,C)=>{try{const{value:D,done:_}=await y.next();if(_){C.resolve()}else{u.push(D)}}catch{}};const onStdoutFinished=async({subprocessStdout:u,onStdoutDataDone:y,readable:C,subprocess:D,subprocessStdin:_})=>{try{await waitForSubprocessStdout(u);await D;await safeWaitForSubprocessStdin(_);await y;if(C.readable){C.push(null)}}catch(u){await safeWaitForSubprocessStdin(_);destroyOtherReadable(C,u)}};const onReadableDestroy=async({subprocessStdout:u,subprocess:y,waitReadableDestroy:C},D)=>{if(await waitForConcurrentStreams(C,y)){destroyOtherReadable(u,D);await waitForSubprocess(y,D)}};const destroyOtherReadable=(u,y)=>{destroyOtherStream(u,u.readable,y)};const createWritable=({subprocess:u,concurrentStreams:y},{to:C}={})=>{const{subprocessStdin:D,waitWritableFinal:_,waitWritableDestroy:j}=getSubprocessStdin(u,C,y);const $=new Pt.Writable({...getWritableMethods(D,u,_),destroy:(0,cn.callbackify)(onWritableDestroy.bind(undefined,{subprocessStdin:D,subprocess:u,waitWritableFinal:_,waitWritableDestroy:j})),highWaterMark:D.writableHighWaterMark,objectMode:D.writableObjectMode});onStdinFinished(D,$);return $};const getSubprocessStdin=(u,y,C)=>{const D=getToStream(u,y);const _=addConcurrentStream(C,D,"writableFinal");const j=addConcurrentStream(C,D,"writableDestroy");return{subprocessStdin:D,waitWritableFinal:_,waitWritableDestroy:j}};const getWritableMethods=(u,y,C)=>({write:onWrite.bind(undefined,u),final:(0,cn.callbackify)(onWritableFinal.bind(undefined,u,y,C))});const onWrite=(u,y,C,D)=>{if(u.write(y,C)){D()}else{u.once("drain",D)}};const onWritableFinal=async(u,y,C)=>{if(await waitForConcurrentStreams(C,y)){if(u.writable){u.end()}await y}};const onStdinFinished=async(u,y,C)=>{try{await waitForSubprocessStdin(u);if(y.writable){y.end()}}catch(u){await safeWaitForSubprocessStdout(C);destroyOtherWritable(y,u)}};const onWritableDestroy=async({subprocessStdin:u,subprocess:y,waitWritableFinal:C,waitWritableDestroy:D},_)=>{await waitForConcurrentStreams(C,y);if(await waitForConcurrentStreams(D,y)){destroyOtherWritable(u,_);await waitForSubprocess(y,_)}};const destroyOtherWritable=(u,y)=>{destroyOtherStream(u,u.writable,y)};const createDuplex=({subprocess:u,concurrentStreams:y,encoding:C},{from:D,to:_,binary:j=true,preserveNewlines:$=true}={})=>{const ne=j||hs.has(C);const{subprocessStdout:oe,waitReadableDestroy:le}=getSubprocessStdout(u,D,y);const{subprocessStdin:de,waitWritableFinal:Ae,waitWritableDestroy:pe}=getSubprocessStdin(u,_,y);const{readableEncoding:Ee,readableObjectMode:Ce,readableHighWaterMark:Ie}=getReadableOptions(oe,ne);const{read:Be,onStdoutDataDone:De}=getReadableMethods({subprocessStdout:oe,subprocess:u,binary:ne,encoding:C,preserveNewlines:$});const xe=new Pt.Duplex({read:Be,...getWritableMethods(de,u,Ae),destroy:(0,cn.callbackify)(onDuplexDestroy.bind(undefined,{subprocessStdout:oe,subprocessStdin:de,subprocess:u,waitReadableDestroy:le,waitWritableFinal:Ae,waitWritableDestroy:pe})),readableHighWaterMark:Ie,writableHighWaterMark:de.writableHighWaterMark,readableObjectMode:Ce,writableObjectMode:de.writableObjectMode,encoding:Ee});onStdoutFinished({subprocessStdout:oe,onStdoutDataDone:De,readable:xe,subprocess:u,subprocessStdin:de});onStdinFinished(de,xe,oe);return xe};const onDuplexDestroy=async({subprocessStdout:u,subprocessStdin:y,subprocess:C,waitReadableDestroy:D,waitWritableFinal:_,waitWritableDestroy:j},$)=>{await Promise.all([onReadableDestroy({subprocessStdout:u,subprocess:C,waitReadableDestroy:D},$),onWritableDestroy({subprocessStdin:y,subprocess:C,waitWritableFinal:_,waitWritableDestroy:j},$)])};const createIterable=(u,y,{from:C,binary:D=false,preserveNewlines:_=false}={})=>{const j=D||hs.has(y);const $=getFromStream(u,C);const ne=iterateOnSubprocessStream({subprocessStdout:$,subprocess:u,binary:j,shouldEncode:true,encoding:y,preserveNewlines:_});return iterateOnStdoutData(ne,$,u)};const iterateOnStdoutData=async function*(u,y,C){try{yield*u}finally{if(y.readable){y.destroy()}await C}};const addConvertedStreams=(u,{encoding:y})=>{const C=initializeConcurrentStreams();u.readable=createReadable.bind(undefined,{subprocess:u,concurrentStreams:C,encoding:y});u.writable=createWritable.bind(undefined,{subprocess:u,concurrentStreams:C});u.duplex=createDuplex.bind(undefined,{subprocess:u,concurrentStreams:C,encoding:y});u.iterable=createIterable.bind(undefined,u,y);u[Symbol.asyncIterator]=createIterable.bind(undefined,u,y,{})};const mergePromise=(u,y)=>{for(const[C,D]of vo){const _=D.value.bind(y);Reflect.defineProperty(u,C,{...D,value:_})}};const bo=(async()=>{})().constructor.prototype;const vo=["then","catch","finally"].map((u=>[u,Reflect.getOwnPropertyDescriptor(bo,u)]));const execaCoreAsync=(u,y,C,D)=>{const{file:_,commandArguments:j,command:$,escapedCommand:ne,startTime:oe,verboseInfo:le,options:de,fileDescriptors:Ae}=handleAsyncArguments(u,y,C);const{subprocess:pe,promise:Ee}=spawnSubprocessAsync({file:_,commandArguments:j,options:de,startTime:oe,verboseInfo:le,command:$,escapedCommand:ne,fileDescriptors:Ae});pe.pipe=pipeToSubprocess.bind(undefined,{source:pe,sourcePromise:Ee,boundOptions:{},createNested:D});mergePromise(pe,Ee);Xi.set(pe,{options:de,fileDescriptors:Ae});return pe};const handleAsyncArguments=(u,y,C)=>{const{command:D,escapedCommand:_,startTime:j,verboseInfo:$}=handleCommand(u,y,C);const{file:ne,commandArguments:oe,options:le}=normalizeOptions(u,y,C);const de=handleAsyncOptions(le);const Ae=handleStdioAsync(de,$);return{file:ne,commandArguments:oe,command:D,escapedCommand:_,startTime:j,verboseInfo:$,options:de,fileDescriptors:Ae}};const handleAsyncOptions=({timeout:u,signal:y,...C})=>{if(y!==undefined){throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.')}return{...C,timeoutDuration:u}};const spawnSubprocessAsync=({file:u,commandArguments:y,options:C,startTime:D,verboseInfo:_,command:j,escapedCommand:$,fileDescriptors:ne})=>{let oe;try{oe=(0,rn.spawn)(...concatenateShell(u,y,C))}catch(u){return handleEarlyError({error:u,command:j,escapedCommand:$,fileDescriptors:ne,options:C,startTime:D,verboseInfo:_})}const le=new AbortController;(0,Tt.setMaxListeners)(Number.POSITIVE_INFINITY,le.signal);const de=[...oe.stdio];pipeOutputAsync(oe,ne,le);cleanupOnExit(oe,C,le);const Ae={};const pe=createDeferred();oe.kill=subprocessKill.bind(undefined,{kill:oe.kill.bind(oe),options:C,onInternalError:pe,context:Ae,controller:le});oe.all=makeAllStream(oe,C);addConvertedStreams(oe,C);addIpcMethods(oe,C);const Ee=handlePromise({subprocess:oe,options:C,startTime:D,verboseInfo:_,fileDescriptors:ne,originalStreams:de,command:j,escapedCommand:$,context:Ae,onInternalError:pe,controller:le});return{subprocess:oe,promise:Ee}};const handlePromise=async({subprocess:u,options:y,startTime:C,verboseInfo:D,fileDescriptors:_,originalStreams:j,command:$,escapedCommand:ne,context:oe,onInternalError:le,controller:de})=>{const[Ae,[pe,Ee],Ce,Ie,Be]=await waitForSubprocessResult({subprocess:u,options:y,context:oe,verboseInfo:D,fileDescriptors:_,originalStreams:j,onInternalError:le,controller:de});de.abort();le.resolve();const De=Ce.map(((u,C)=>stripNewline(u,y,C)));const xe=stripNewline(Ie,y,"all");const Fe=getAsyncResult({errorInfo:Ae,exitCode:pe,signal:Ee,stdio:De,all:xe,ipcOutput:Be,context:oe,options:y,command:$,escapedCommand:ne,startTime:C});return handleResult(Fe,D,y)};const getAsyncResult=({errorInfo:u,exitCode:y,signal:C,stdio:D,all:_,ipcOutput:j,context:$,options:ne,command:oe,escapedCommand:le,startTime:de})=>"error"in u?makeError({error:u.error,command:oe,escapedCommand:le,timedOut:$.terminationReason==="timeout",isCanceled:$.terminationReason==="cancel"||$.terminationReason==="gracefulCancel",isGracefullyCanceled:$.terminationReason==="gracefulCancel",isMaxBuffer:u.error instanceof MaxBufferError,isForcefullyTerminated:$.isForcefullyTerminated,exitCode:y,signal:C,stdio:D,all:_,ipcOutput:j,options:ne,startTime:de,isSync:false}):makeSuccessResult({command:oe,escapedCommand:le,stdio:D,all:_,ipcOutput:j,options:ne,startTime:de});const mergeOptions=(u,y)=>{const C=Object.fromEntries(Object.entries(y).map((([y,C])=>[y,mergeOption(y,u[y],C)])));return{...u,...C}};const mergeOption=(u,y,C)=>{if(wo.has(u)&&isPlainObject(y)&&isPlainObject(C)){return{...y,...C}}return C};const wo=new Set(["env",...gn]);const createExeca=(u,y,C,D)=>{const createNested=(u,y,D)=>createExeca(u,y,C,D);const boundExeca=(..._)=>callBoundExeca({mapArguments:u,deepOptions:C,boundOptions:y,setBoundExeca:D,createNested:createNested},..._);if(D!==undefined){D(boundExeca,createNested,y)}return boundExeca};const callBoundExeca=({mapArguments:u,deepOptions:y={},boundOptions:C={},setBoundExeca:D,createNested:_},j,...$)=>{if(isPlainObject(j)){return _(u,mergeOptions(C,j),D)}const{file:ne,commandArguments:oe,options:le,isSync:de}=parseArguments({mapArguments:u,firstArgument:j,nextArguments:$,deepOptions:y,boundOptions:C});return de?execaCoreSync(ne,oe,le):execaCoreAsync(ne,oe,le,_)};const parseArguments=({mapArguments:u,firstArgument:y,nextArguments:C,deepOptions:D,boundOptions:_})=>{const j=isTemplateString(y)?parseTemplates(y,C):[y,...C];const[$,ne,oe]=normalizeParameters(...j);const le=mergeOptions(mergeOptions(D,_),oe);const{file:de=$,commandArguments:Ae=ne,options:pe=le,isSync:Ee=false}=u({file:$,commandArguments:ne,options:le});return{file:de,commandArguments:Ae,options:pe,isSync:Ee}};const mapCommandAsync=({file:u,commandArguments:y})=>parseCommand(u,y);const mapCommandSync=({file:u,commandArguments:y})=>({...parseCommand(u,y),isSync:true});const parseCommand=(u,y)=>{if(y.length>0){throw new TypeError(`The command and its arguments must be passed as a single string: ${u} ${y}.`)}const[C,...D]=parseCommandString(u);return{file:C,commandArguments:D}};const parseCommandString=u=>{if(typeof u!=="string"){throw new TypeError(`The command must be a string: ${String(u)}.`)}const y=u.trim();if(y===""){return[]}const C=[];for(const u of y.split(Bo)){const y=C.at(-1);if(y&&y.endsWith("\\")){C[C.length-1]=`${y.slice(0,-1)} ${u}`}else{C.push(u)}}return C};const Bo=/ +/g;const setScriptSync=(u,y,C)=>{u.sync=y(mapScriptSync,C);u.s=u.sync};const mapScriptAsync=({options:u})=>getScriptOptions(u);const mapScriptSync=({options:u})=>({...getScriptOptions(u),isSync:true});const getScriptOptions=u=>({options:{...getScriptStdinOption(u),...u}});const getScriptStdinOption=({input:u,inputFile:y,stdio:C})=>u===undefined&&y===undefined&&C===undefined?{stdin:"inherit"}:{};const Do={preferLocal:true};const So=createExeca((()=>({})));const ko=createExeca((()=>({isSync:true})));const Qo=createExeca(mapCommandAsync);const xo=createExeca(mapCommandSync);const Fo=createExeca(mapNode);const _o=createExeca(mapScriptAsync,{},Do,setScriptSync);const{sendMessage:Ro,getOneMessage:Lo,getEachMessage:No,getCancelSignal:To}=getIpcExport();var Po=C(1683);var Oo=C(2136);function keysOf(u){return Object.keys(u)}const Mo=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function isTypedArrayName(u){return Mo.includes(u)}const Uo=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...Mo];function isObjectTypeName(u){return Uo.includes(u)}const Ho=["null","undefined","string","number","bigint","boolean","symbol"];function isPrimitiveTypeName(u){return Ho.includes(u)}const Go=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...Uo,...Ho];const getObjectType=u=>{const y=Object.prototype.toString.call(u).slice(8,-1);if(/HTML\w+Element/.test(y)&&isHtmlElement(u)){return"HTMLElement"}if(isObjectTypeName(y)){return y}return undefined};function detect(u){if(u===null){return"null"}switch(typeof u){case"undefined":{return"undefined"}case"string":{return"string"}case"number":{return Number.isNaN(u)?"NaN":"number"}case"boolean":{return"boolean"}case"function":{return"Function"}case"bigint":{return"bigint"}case"symbol":{return"symbol"}default:}if(isObservable(u)){return"Observable"}if(isArray(u)){return"Array"}if(isBuffer(u)){return"Buffer"}const y=getObjectType(u);if(y&&y!=="Object"){return y}if(hasPromiseApi(u)){return"Promise"}if(u instanceof String||u instanceof Boolean||u instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}function hasPromiseApi(u){return isFunction(u?.then)&&isFunction(u?.catch)}const Wo=Object.assign(detect,{all:isAll,any:isAny,array:isArray,arrayBuffer:distribution_isArrayBuffer,arrayLike:isArrayLike,asyncFunction:isAsyncFunction,asyncGenerator:distribution_isAsyncGenerator,asyncGeneratorFunction:isAsyncGeneratorFunction,asyncIterable:isAsyncIterable,bigint:isBigint,bigInt64Array:isBigInt64Array,bigUint64Array:isBigUint64Array,blob:isBlob,boolean:isBoolean,boundFunction:isBoundFunction,buffer:isBuffer,class:isClass,dataView:isDataView,date:isDate,detect:detect,directInstanceOf:isDirectInstanceOf,emptyArray:isEmptyArray,emptyMap:isEmptyMap,emptyObject:isEmptyObject,emptySet:isEmptySet,emptyString:isEmptyString,emptyStringOrWhitespace:isEmptyStringOrWhitespace,enumCase:isEnumCase,error:isError,evenInteger:isEvenInteger,falsy:isFalsy,float32Array:isFloat32Array,float64Array:isFloat64Array,formData:isFormData,function:isFunction,generator:distribution_isGenerator,generatorFunction:isGeneratorFunction,htmlElement:isHtmlElement,infinite:isInfinite,inRange:isInRange,int16Array:isInt16Array,int32Array:isInt32Array,int8Array:isInt8Array,integer:isInteger,iterable:isIterable,map:isMap,nan:isNan,nativePromise:isNativePromise,negativeNumber:isNegativeNumber,nodeStream:isNodeStream,nonEmptyArray:isNonEmptyArray,nonEmptyMap:isNonEmptyMap,nonEmptyObject:isNonEmptyObject,nonEmptySet:isNonEmptySet,nonEmptyString:isNonEmptyString,nonEmptyStringAndNotWhitespace:isNonEmptyStringAndNotWhitespace,null:isNull,nullOrUndefined:isNullOrUndefined,number:isNumber,numericString:isNumericString,object:distribution_isObject,observable:isObservable,oddInteger:isOddInteger,plainObject:distribution_isPlainObject,positiveNumber:isPositiveNumber,primitive:isPrimitive,promise:isPromise,propertyKey:isPropertyKey,regExp:isRegExp,safeInteger:isSafeInteger,set:isSet,sharedArrayBuffer:isSharedArrayBuffer,string:isString,symbol:isSymbol,truthy:isTruthy,tupleLike:isTupleLike,typedArray:isTypedArray,uint16Array:isUint16Array,uint32Array:isUint32Array,uint8Array:distribution_isUint8Array,uint8ClampedArray:isUint8ClampedArray,undefined:isUndefined,urlInstance:isUrlInstance,urlSearchParams:isUrlSearchParams,urlString:isUrlString,optional:isOptional,validDate:isValidDate,validLength:isValidLength,weakMap:isWeakMap,weakRef:isWeakRef,weakSet:isWeakSet,whitespaceString:isWhitespaceString});function isAbsoluteModule2(u){return y=>isInteger(y)&&Math.abs(y%2)===u}function isAll(u,...y){return predicateOnArray(Array.prototype.every,u,y)}function isAny(u,...y){const C=isArray(u)?u:[u];return C.some((u=>predicateOnArray(Array.prototype.some,u,y)))}function isOptional(u,y){return isUndefined(u)||y(u)}function isArray(u,y){if(!Array.isArray(u)){return false}if(!isFunction(y)){return true}return u.every((u=>y(u)))}function distribution_isArrayBuffer(u){return getObjectType(u)==="ArrayBuffer"}function isArrayLike(u){return!isNullOrUndefined(u)&&!isFunction(u)&&isValidLength(u.length)}function isAsyncFunction(u){return getObjectType(u)==="AsyncFunction"}function distribution_isAsyncGenerator(u){return isAsyncIterable(u)&&isFunction(u.next)&&isFunction(u.throw)}function isAsyncGeneratorFunction(u){return getObjectType(u)==="AsyncGeneratorFunction"}function isAsyncIterable(u){return isFunction(u?.[Symbol.asyncIterator])}function isBigint(u){return typeof u==="bigint"}function isBigInt64Array(u){return getObjectType(u)==="BigInt64Array"}function isBigUint64Array(u){return getObjectType(u)==="BigUint64Array"}function isBlob(u){return getObjectType(u)==="Blob"}function isBoolean(u){return u===true||u===false}function isBoundFunction(u){return isFunction(u)&&!Object.hasOwn(u,"prototype")}function isBuffer(u){return u?.constructor?.isBuffer?.(u)??false}function isClass(u){return isFunction(u)&&/^class(\s+|{)/.test(u.toString())}function isDataView(u){return getObjectType(u)==="DataView"}function isDate(u){return getObjectType(u)==="Date"}function isDirectInstanceOf(u,y){if(u===undefined||u===null){return false}return Object.getPrototypeOf(u)===y.prototype}function isEmptyArray(u){return isArray(u)&&u.length===0}function isEmptyMap(u){return isMap(u)&&u.size===0}function isEmptyObject(u){return distribution_isObject(u)&&!isMap(u)&&!isSet(u)&&Object.keys(u).length===0}function isEmptySet(u){return isSet(u)&&u.size===0}function isEmptyString(u){return isString(u)&&u.length===0}function isEmptyStringOrWhitespace(u){return isEmptyString(u)||isWhitespaceString(u)}function isEnumCase(u,y){return Object.values(y).includes(u)}function isError(u){return getObjectType(u)==="Error"}function isEvenInteger(u){return isAbsoluteModule2(0)(u)}function isFalsy(u){return!u}function isFloat32Array(u){return getObjectType(u)==="Float32Array"}function isFloat64Array(u){return getObjectType(u)==="Float64Array"}function isFormData(u){return getObjectType(u)==="FormData"}function isFunction(u){return typeof u==="function"}function distribution_isGenerator(u){return isIterable(u)&&isFunction(u?.next)&&isFunction(u?.throw)}function isGeneratorFunction(u){return getObjectType(u)==="GeneratorFunction"}const jo=1;const zo=["innerHTML","ownerDocument","style","attributes","nodeValue"];function isHtmlElement(u){return distribution_isObject(u)&&u.nodeType===jo&&isString(u.nodeName)&&!distribution_isPlainObject(u)&&zo.every((y=>y in u))}function isInfinite(u){return u===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY}function isInRange(u,y){if(isNumber(y)){return u>=Math.min(0,y)&&u<=Math.max(y,0)}if(isArray(y)&&y.length===2){return u>=Math.min(...y)&&u<=Math.max(...y)}throw new TypeError(`Invalid range: ${JSON.stringify(y)}`)}function isInt16Array(u){return getObjectType(u)==="Int16Array"}function isInt32Array(u){return getObjectType(u)==="Int32Array"}function isInt8Array(u){return getObjectType(u)==="Int8Array"}function isInteger(u){return Number.isInteger(u)}function isIterable(u){return isFunction(u?.[Symbol.iterator])}function isMap(u){return getObjectType(u)==="Map"}function isNan(u){return Number.isNaN(u)}function isNativePromise(u){return getObjectType(u)==="Promise"}function isNegativeNumber(u){return isNumber(u)&&u<0}function isNodeStream(u){return distribution_isObject(u)&&isFunction(u.pipe)&&!isObservable(u)}function isNonEmptyArray(u){return isArray(u)&&u.length>0}function isNonEmptyMap(u){return isMap(u)&&u.size>0}function isNonEmptyObject(u){return distribution_isObject(u)&&!isMap(u)&&!isSet(u)&&Object.keys(u).length>0}function isNonEmptySet(u){return isSet(u)&&u.size>0}function isNonEmptyString(u){return isString(u)&&u.length>0}function isNonEmptyStringAndNotWhitespace(u){return isString(u)&&!isEmptyStringOrWhitespace(u)}function isNull(u){return u===null}function isNullOrUndefined(u){return isNull(u)||isUndefined(u)}function isNumber(u){return typeof u==="number"&&!Number.isNaN(u)}function isNumericString(u){return isString(u)&&!isEmptyStringOrWhitespace(u)&&!Number.isNaN(Number(u))}function distribution_isObject(u){return!isNull(u)&&(typeof u==="object"||isFunction(u))}function isObservable(u){if(!u){return false}if(Symbol.observable!==undefined&&u===u[Symbol.observable]?.()){return true}if(u===u["@@observable"]?.()){return true}return false}function isOddInteger(u){return isAbsoluteModule2(1)(u)}function distribution_isPlainObject(u){if(typeof u!=="object"||u===null){return false}const y=Object.getPrototypeOf(u);return(y===null||y===Object.prototype||Object.getPrototypeOf(y)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)}function isPositiveNumber(u){return isNumber(u)&&u>0}function isPrimitive(u){return isNull(u)||isPrimitiveTypeName(typeof u)}function isPromise(u){return isNativePromise(u)||hasPromiseApi(u)}function isPropertyKey(u){return isAny([isString,isNumber,isSymbol],u)}function isRegExp(u){return getObjectType(u)==="RegExp"}function isSafeInteger(u){return Number.isSafeInteger(u)}function isSet(u){return getObjectType(u)==="Set"}function isSharedArrayBuffer(u){return getObjectType(u)==="SharedArrayBuffer"}function isString(u){return typeof u==="string"}function isSymbol(u){return typeof u==="symbol"}function isTruthy(u){return Boolean(u)}function isTupleLike(u,y){if(isArray(y)&&isArray(u)&&y.length===u.length){return y.every(((y,C)=>y(u[C])))}return false}function isTypedArray(u){return isTypedArrayName(getObjectType(u))}function isUint16Array(u){return getObjectType(u)==="Uint16Array"}function isUint32Array(u){return getObjectType(u)==="Uint32Array"}function distribution_isUint8Array(u){return getObjectType(u)==="Uint8Array"}function isUint8ClampedArray(u){return getObjectType(u)==="Uint8ClampedArray"}function isUndefined(u){return u===undefined}function isUrlInstance(u){return getObjectType(u)==="URL"}function isUrlSearchParams(u){return getObjectType(u)==="URLSearchParams"}function isUrlString(u){if(!isString(u)){return false}try{new URL(u);return true}catch{return false}}function isValidDate(u){return isDate(u)&&!isNan(Number(u))}function isValidLength(u){return isSafeInteger(u)&&u>=0}function isWeakMap(u){return getObjectType(u)==="WeakMap"}function isWeakRef(u){return getObjectType(u)==="WeakRef"}function isWeakSet(u){return getObjectType(u)==="WeakSet"}function isWhitespaceString(u){return isString(u)&&/^\s+$/.test(u)}function predicateOnArray(u,y,C){if(!isFunction(y)){throw new TypeError(`Invalid predicate: ${JSON.stringify(y)}`)}if(C.length===0){throw new TypeError("Invalid number of values")}return u.call(C,y)}function typeErrorMessage(u,y){return`Expected value which is \`${u}\`, received value of type \`${Wo(y)}\`.`}function unique(u){return Array.from(new Set(u))}const $o=new Intl.ListFormat("en",{style:"long",type:"conjunction"});const qo=new Intl.ListFormat("en",{style:"long",type:"disjunction"});function typeErrorMessageMultipleValues(u,y){const C=unique((isArray(u)?u:[u]).map((u=>`\`${u}\``)));const D=unique(y.map((u=>`\`${Wo(u)}\``)));return`Expected values which are ${qo.format(C)}. Received values of type${D.length>1?"s":""} ${$o.format(D)}.`}const Vo={all:assertAll,any:assertAny,optional:assertOptional,array:assertArray,arrayBuffer:assertArrayBuffer,arrayLike:assertArrayLike,asyncFunction:assertAsyncFunction,asyncGenerator:assertAsyncGenerator,asyncGeneratorFunction:assertAsyncGeneratorFunction,asyncIterable:assertAsyncIterable,bigint:assertBigint,bigInt64Array:assertBigInt64Array,bigUint64Array:assertBigUint64Array,blob:assertBlob,boolean:assertBoolean,boundFunction:assertBoundFunction,buffer:assertBuffer,class:assertClass,dataView:assertDataView,date:assertDate,directInstanceOf:assertDirectInstanceOf,emptyArray:assertEmptyArray,emptyMap:assertEmptyMap,emptyObject:assertEmptyObject,emptySet:assertEmptySet,emptyString:assertEmptyString,emptyStringOrWhitespace:assertEmptyStringOrWhitespace,enumCase:assertEnumCase,error:assertError,evenInteger:assertEvenInteger,falsy:assertFalsy,float32Array:assertFloat32Array,float64Array:assertFloat64Array,formData:assertFormData,function:assertFunction,generator:assertGenerator,generatorFunction:assertGeneratorFunction,htmlElement:assertHtmlElement,infinite:assertInfinite,inRange:assertInRange,int16Array:assertInt16Array,int32Array:assertInt32Array,int8Array:assertInt8Array,integer:assertInteger,iterable:assertIterable,map:assertMap,nan:assertNan,nativePromise:assertNativePromise,negativeNumber:assertNegativeNumber,nodeStream:assertNodeStream,nonEmptyArray:assertNonEmptyArray,nonEmptyMap:assertNonEmptyMap,nonEmptyObject:assertNonEmptyObject,nonEmptySet:assertNonEmptySet,nonEmptyString:assertNonEmptyString,nonEmptyStringAndNotWhitespace:assertNonEmptyStringAndNotWhitespace,null:assertNull,nullOrUndefined:assertNullOrUndefined,number:assertNumber,numericString:assertNumericString,object:assertObject,observable:assertObservable,oddInteger:assertOddInteger,plainObject:assertPlainObject,positiveNumber:assertPositiveNumber,primitive:assertPrimitive,promise:assertPromise,propertyKey:assertPropertyKey,regExp:assertRegExp,safeInteger:assertSafeInteger,set:assertSet,sharedArrayBuffer:assertSharedArrayBuffer,string:assertString,symbol:assertSymbol,truthy:assertTruthy,tupleLike:assertTupleLike,typedArray:assertTypedArray,uint16Array:assertUint16Array,uint32Array:assertUint32Array,uint8Array:assertUint8Array,uint8ClampedArray:assertUint8ClampedArray,undefined:assertUndefined,urlInstance:assertUrlInstance,urlSearchParams:assertUrlSearchParams,urlString:assertUrlString,validDate:assertValidDate,validLength:assertValidLength,weakMap:assertWeakMap,weakRef:assertWeakRef,weakSet:assertWeakSet,whitespaceString:assertWhitespaceString};const Jo={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};const Ko=keysOf(Jo);function isIsMethodName(u){return Ko.includes(u)}function assertAll(u,...y){if(!isAll(u,...y)){const C=isIsMethodName(u.name)?Jo[u.name]:"predicate returns truthy for all values";throw new TypeError(typeErrorMessageMultipleValues(C,y))}}function assertAny(u,...y){if(!isAny(u,...y)){const C=isArray(u)?u:[u];const D=C.map((u=>isIsMethodName(u.name)?Jo[u.name]:"predicate returns truthy for any value"));throw new TypeError(typeErrorMessageMultipleValues(D,y))}}function assertOptional(u,y,C){if(!isUndefined(u)){y(u,C)}}function assertArray(u,y,C){if(!isArray(u)){throw new TypeError(C??typeErrorMessage("Array",u))}if(y){for(const D of u){y(D,C)}}}function assertArrayBuffer(u,y){if(!distribution_isArrayBuffer(u)){throw new TypeError(y??typeErrorMessage("ArrayBuffer",u))}}function assertArrayLike(u,y){if(!isArrayLike(u)){throw new TypeError(y??typeErrorMessage("array-like",u))}}function assertAsyncFunction(u,y){if(!isAsyncFunction(u)){throw new TypeError(y??typeErrorMessage("AsyncFunction",u))}}function assertAsyncGenerator(u,y){if(!distribution_isAsyncGenerator(u)){throw new TypeError(y??typeErrorMessage("AsyncGenerator",u))}}function assertAsyncGeneratorFunction(u,y){if(!isAsyncGeneratorFunction(u)){throw new TypeError(y??typeErrorMessage("AsyncGeneratorFunction",u))}}function assertAsyncIterable(u,y){if(!isAsyncIterable(u)){throw new TypeError(y??typeErrorMessage("AsyncIterable",u))}}function assertBigint(u,y){if(!isBigint(u)){throw new TypeError(y??typeErrorMessage("bigint",u))}}function assertBigInt64Array(u,y){if(!isBigInt64Array(u)){throw new TypeError(y??typeErrorMessage("BigInt64Array",u))}}function assertBigUint64Array(u,y){if(!isBigUint64Array(u)){throw new TypeError(y??typeErrorMessage("BigUint64Array",u))}}function assertBlob(u,y){if(!isBlob(u)){throw new TypeError(y??typeErrorMessage("Blob",u))}}function assertBoolean(u,y){if(!isBoolean(u)){throw new TypeError(y??typeErrorMessage("boolean",u))}}function assertBoundFunction(u,y){if(!isBoundFunction(u)){throw new TypeError(y??typeErrorMessage("Function",u))}}function assertBuffer(u,y){if(!isBuffer(u)){throw new TypeError(y??typeErrorMessage("Buffer",u))}}function assertClass(u,y){if(!isClass(u)){throw new TypeError(y??typeErrorMessage("Class",u))}}function assertDataView(u,y){if(!isDataView(u)){throw new TypeError(y??typeErrorMessage("DataView",u))}}function assertDate(u,y){if(!isDate(u)){throw new TypeError(y??typeErrorMessage("Date",u))}}function assertDirectInstanceOf(u,y,C){if(!isDirectInstanceOf(u,y)){throw new TypeError(C??typeErrorMessage("T",u))}}function assertEmptyArray(u,y){if(!isEmptyArray(u)){throw new TypeError(y??typeErrorMessage("empty array",u))}}function assertEmptyMap(u,y){if(!isEmptyMap(u)){throw new TypeError(y??typeErrorMessage("empty map",u))}}function assertEmptyObject(u,y){if(!isEmptyObject(u)){throw new TypeError(y??typeErrorMessage("empty object",u))}}function assertEmptySet(u,y){if(!isEmptySet(u)){throw new TypeError(y??typeErrorMessage("empty set",u))}}function assertEmptyString(u,y){if(!isEmptyString(u)){throw new TypeError(y??typeErrorMessage("empty string",u))}}function assertEmptyStringOrWhitespace(u,y){if(!isEmptyStringOrWhitespace(u)){throw new TypeError(y??typeErrorMessage("empty string or whitespace",u))}}function assertEnumCase(u,y,C){if(!isEnumCase(u,y)){throw new TypeError(C??typeErrorMessage("EnumCase",u))}}function assertError(u,y){if(!isError(u)){throw new TypeError(y??typeErrorMessage("Error",u))}}function assertEvenInteger(u,y){if(!isEvenInteger(u)){throw new TypeError(y??typeErrorMessage("even integer",u))}}function assertFalsy(u,y){if(!isFalsy(u)){throw new TypeError(y??typeErrorMessage("falsy",u))}}function assertFloat32Array(u,y){if(!isFloat32Array(u)){throw new TypeError(y??typeErrorMessage("Float32Array",u))}}function assertFloat64Array(u,y){if(!isFloat64Array(u)){throw new TypeError(y??typeErrorMessage("Float64Array",u))}}function assertFormData(u,y){if(!isFormData(u)){throw new TypeError(y??typeErrorMessage("FormData",u))}}function assertFunction(u,y){if(!isFunction(u)){throw new TypeError(y??typeErrorMessage("Function",u))}}function assertGenerator(u,y){if(!distribution_isGenerator(u)){throw new TypeError(y??typeErrorMessage("Generator",u))}}function assertGeneratorFunction(u,y){if(!isGeneratorFunction(u)){throw new TypeError(y??typeErrorMessage("GeneratorFunction",u))}}function assertHtmlElement(u,y){if(!isHtmlElement(u)){throw new TypeError(y??typeErrorMessage("HTMLElement",u))}}function assertInfinite(u,y){if(!isInfinite(u)){throw new TypeError(y??typeErrorMessage("infinite number",u))}}function assertInRange(u,y,C){if(!isInRange(u,y)){throw new TypeError(C??typeErrorMessage("in range",u))}}function assertInt16Array(u,y){if(!isInt16Array(u)){throw new TypeError(y??typeErrorMessage("Int16Array",u))}}function assertInt32Array(u,y){if(!isInt32Array(u)){throw new TypeError(y??typeErrorMessage("Int32Array",u))}}function assertInt8Array(u,y){if(!isInt8Array(u)){throw new TypeError(y??typeErrorMessage("Int8Array",u))}}function assertInteger(u,y){if(!isInteger(u)){throw new TypeError(y??typeErrorMessage("integer",u))}}function assertIterable(u,y){if(!isIterable(u)){throw new TypeError(y??typeErrorMessage("Iterable",u))}}function assertMap(u,y){if(!isMap(u)){throw new TypeError(y??typeErrorMessage("Map",u))}}function assertNan(u,y){if(!isNan(u)){throw new TypeError(y??typeErrorMessage("NaN",u))}}function assertNativePromise(u,y){if(!isNativePromise(u)){throw new TypeError(y??typeErrorMessage("native Promise",u))}}function assertNegativeNumber(u,y){if(!isNegativeNumber(u)){throw new TypeError(y??typeErrorMessage("negative number",u))}}function assertNodeStream(u,y){if(!isNodeStream(u)){throw new TypeError(y??typeErrorMessage("Node.js Stream",u))}}function assertNonEmptyArray(u,y){if(!isNonEmptyArray(u)){throw new TypeError(y??typeErrorMessage("non-empty array",u))}}function assertNonEmptyMap(u,y){if(!isNonEmptyMap(u)){throw new TypeError(y??typeErrorMessage("non-empty map",u))}}function assertNonEmptyObject(u,y){if(!isNonEmptyObject(u)){throw new TypeError(y??typeErrorMessage("non-empty object",u))}}function assertNonEmptySet(u,y){if(!isNonEmptySet(u)){throw new TypeError(y??typeErrorMessage("non-empty set",u))}}function assertNonEmptyString(u,y){if(!isNonEmptyString(u)){throw new TypeError(y??typeErrorMessage("non-empty string",u))}}function assertNonEmptyStringAndNotWhitespace(u,y){if(!isNonEmptyStringAndNotWhitespace(u)){throw new TypeError(y??typeErrorMessage("non-empty string and not whitespace",u))}}function assertNull(u,y){if(!isNull(u)){throw new TypeError(y??typeErrorMessage("null",u))}}function assertNullOrUndefined(u,y){if(!isNullOrUndefined(u)){throw new TypeError(y??typeErrorMessage("null or undefined",u))}}function assertNumber(u,y){if(!isNumber(u)){throw new TypeError(y??typeErrorMessage("number",u))}}function assertNumericString(u,y){if(!isNumericString(u)){throw new TypeError(y??typeErrorMessage("string with a number",u))}}function assertObject(u,y){if(!distribution_isObject(u)){throw new TypeError(y??typeErrorMessage("Object",u))}}function assertObservable(u,y){if(!isObservable(u)){throw new TypeError(y??typeErrorMessage("Observable",u))}}function assertOddInteger(u,y){if(!isOddInteger(u)){throw new TypeError(y??typeErrorMessage("odd integer",u))}}function assertPlainObject(u,y){if(!distribution_isPlainObject(u)){throw new TypeError(y??typeErrorMessage("plain object",u))}}function assertPositiveNumber(u,y){if(!isPositiveNumber(u)){throw new TypeError(y??typeErrorMessage("positive number",u))}}function assertPrimitive(u,y){if(!isPrimitive(u)){throw new TypeError(y??typeErrorMessage("primitive",u))}}function assertPromise(u,y){if(!isPromise(u)){throw new TypeError(y??typeErrorMessage("Promise",u))}}function assertPropertyKey(u,y){if(!isPropertyKey(u)){throw new TypeError(y??typeErrorMessage("PropertyKey",u))}}function assertRegExp(u,y){if(!isRegExp(u)){throw new TypeError(y??typeErrorMessage("RegExp",u))}}function assertSafeInteger(u,y){if(!isSafeInteger(u)){throw new TypeError(y??typeErrorMessage("integer",u))}}function assertSet(u,y){if(!isSet(u)){throw new TypeError(y??typeErrorMessage("Set",u))}}function assertSharedArrayBuffer(u,y){if(!isSharedArrayBuffer(u)){throw new TypeError(y??typeErrorMessage("SharedArrayBuffer",u))}}function assertString(u,y){if(!isString(u)){throw new TypeError(y??typeErrorMessage("string",u))}}function assertSymbol(u,y){if(!isSymbol(u)){throw new TypeError(y??typeErrorMessage("symbol",u))}}function assertTruthy(u,y){if(!isTruthy(u)){throw new TypeError(y??typeErrorMessage("truthy",u))}}function assertTupleLike(u,y,C){if(!isTupleLike(u,y)){throw new TypeError(C??typeErrorMessage("tuple-like",u))}}function assertTypedArray(u,y){if(!isTypedArray(u)){throw new TypeError(y??typeErrorMessage("TypedArray",u))}}function assertUint16Array(u,y){if(!isUint16Array(u)){throw new TypeError(y??typeErrorMessage("Uint16Array",u))}}function assertUint32Array(u,y){if(!isUint32Array(u)){throw new TypeError(y??typeErrorMessage("Uint32Array",u))}}function assertUint8Array(u,y){if(!distribution_isUint8Array(u)){throw new TypeError(y??typeErrorMessage("Uint8Array",u))}}function assertUint8ClampedArray(u,y){if(!isUint8ClampedArray(u)){throw new TypeError(y??typeErrorMessage("Uint8ClampedArray",u))}}function assertUndefined(u,y){if(!isUndefined(u)){throw new TypeError(y??typeErrorMessage("undefined",u))}}function assertUrlInstance(u,y){if(!isUrlInstance(u)){throw new TypeError(y??typeErrorMessage("URL",u))}}function assertUrlSearchParams(u,y){if(!isUrlSearchParams(u)){throw new TypeError(y??typeErrorMessage("URLSearchParams",u))}}function assertUrlString(u,y){if(!isUrlString(u)){throw new TypeError(y??typeErrorMessage("string with a URL",u))}}function assertValidDate(u,y){if(!isValidDate(u)){throw new TypeError(y??typeErrorMessage("valid Date",u))}}function assertValidLength(u,y){if(!isValidLength(u)){throw new TypeError(y??typeErrorMessage("valid length",u))}}function assertWeakMap(u,y){if(!isWeakMap(u)){throw new TypeError(y??typeErrorMessage("WeakMap",u))}}function assertWeakRef(u,y){if(!isWeakRef(u)){throw new TypeError(y??typeErrorMessage("WeakRef",u))}}function assertWeakSet(u,y){if(!isWeakSet(u)){throw new TypeError(y??typeErrorMessage("WeakSet",u))}}function assertWhitespaceString(u,y){if(!isWhitespaceString(u)){throw new TypeError(y??typeErrorMessage("whitespace string",u))}}const Yo=Wo;class CancelError extends Error{constructor(u){super(u||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}const Xo=Object.freeze({pending:Symbol("pending"),canceled:Symbol("canceled"),resolved:Symbol("resolved"),rejected:Symbol("rejected")});class PCancelable{static fn(u){return(...y)=>new PCancelable(((C,D,_)=>{y.push(_);u(...y).then(C,D)}))}#Pt=[];#Ot=true;#Mt=Xo.pending;#Ut;#Ht;constructor(u){this.#Ut=new Promise(((y,C)=>{this.#Ht=C;const onResolve=u=>{if(this.#Mt!==Xo.canceled||!onCancel.shouldReject){y(u);this.#Gt(Xo.resolved)}};const onReject=u=>{if(this.#Mt!==Xo.canceled||!onCancel.shouldReject){C(u);this.#Gt(Xo.rejected)}};const onCancel=u=>{if(this.#Mt!==Xo.pending){throw new Error(`The \`onCancel\` handler was attached after the promise ${this.#Mt.description}.`)}this.#Pt.push(u)};Object.defineProperties(onCancel,{shouldReject:{get:()=>this.#Ot,set:u=>{this.#Ot=u}}});u(onResolve,onReject,onCancel)}))}then(u,y){return this.#Ut.then(u,y)}catch(u){return this.#Ut.catch(u)}finally(u){return this.#Ut.finally(u)}cancel(u){if(this.#Mt!==Xo.pending){return}this.#Gt(Xo.canceled);if(this.#Pt.length>0){try{for(const u of this.#Pt){u()}}catch(u){this.#Ht(u);return}}if(this.#Ot){this.#Ht(new CancelError(u))}}get isCanceled(){return this.#Mt===Xo.canceled}#Gt(u){if(this.#Mt===Xo.pending){this.#Mt=u}}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);function isRequest(u){return Yo.object(u)&&"_onResponse"in u}class RequestError extends Error{name="RequestError";code="ERR_GOT_REQUEST_ERROR";input;stack;response;request;timings;constructor(u,y,C){super(u,{cause:y});Error.captureStackTrace(this,this.constructor);if(y.code){this.code=y.code}this.input=y.input;if(isRequest(C)){Object.defineProperty(this,"request",{enumerable:false,value:C});Object.defineProperty(this,"response",{enumerable:false,value:C.response});this.options=C.options}else{this.options=C}this.timings=this.request?.timings;if(Yo.string(y.stack)&&Yo.string(this.stack)){const u=this.stack.indexOf(this.message)+this.message.length;const C=this.stack.slice(u).split("\n").reverse();const D=y.stack.slice(y.stack.indexOf(y.message)+y.message.length).split("\n").reverse();while(D.length>0&&D[0]===C[0]){C.shift()}this.stack=`${this.stack.slice(0,u)}${C.reverse().join("\n")}${D.reverse().join("\n")}`}}}class MaxRedirectsError extends RequestError{name="MaxRedirectsError";code="ERR_TOO_MANY_REDIRECTS";constructor(u){super(`Redirected ${u.options.maxRedirects} times. Aborting.`,{},u)}}class HTTPError extends RequestError{name="HTTPError";code="ERR_NON_2XX_3XX_RESPONSE";constructor(u){super(`Request failed with status code ${u.statusCode} (${u.statusMessage}): ${u.request.options.method} ${u.request.options.url.toString()}`,{},u.request)}}class CacheError extends RequestError{name="CacheError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_CACHE_ACCESS"}}}class UploadError extends RequestError{name="UploadError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_UPLOAD"}}}class TimeoutError extends RequestError{name="TimeoutError";timings;event;constructor(u,y,C){super(u.message,u,C);this.event=u.event;this.timings=y}}class ReadError extends RequestError{name="ReadError";constructor(u,y){super(u.message,u,y);if(this.code==="ERR_GOT_REQUEST_ERROR"){this.code="ERR_READING_RESPONSE_STREAM"}}}class RetryError extends RequestError{name="RetryError";code="ERR_RETRYING";constructor(u){super("Retrying",{},u)}}class AbortError extends RequestError{name="AbortError";code="ERR_ABORTED";constructor(u){super("This operation was aborted.",{},u)}}const Zo=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http");const ea=new TextEncoder;function byteLength(u){if(typeof u==="string"){return ea.encode(u).byteLength}if(ArrayBuffer.isView(u)||u instanceof ArrayBuffer||u instanceof SharedArrayBuffer){return u.byteLength}return 0}const ra=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");function node_modules_is_stream_isStream(u,{checkOpen:y=true}={}){return u!==null&&typeof u==="object"&&(u.writable||u.readable||!y||u.writable===undefined&&u.readable===undefined)&&typeof u.pipe==="function"}function is_stream_isWritableStream(u,{checkOpen:y=true}={}){return node_modules_is_stream_isStream(u,{checkOpen:y})&&(u.writable||!y)&&typeof u.write==="function"&&typeof u.end==="function"&&typeof u.writable==="boolean"&&typeof u.writableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function is_stream_isReadableStream(u,{checkOpen:y=true}={}){return node_modules_is_stream_isStream(u,{checkOpen:y})&&(u.readable||!y)&&typeof u.read==="function"&&typeof u.readable==="boolean"&&typeof u.readableObjectMode==="boolean"&&typeof u.destroy==="function"&&typeof u.destroyed==="boolean"}function is_stream_isDuplexStream(u,y){return is_stream_isWritableStream(u,y)&&is_stream_isReadableStream(u,y)}function is_stream_isTransformStream(u,y){return is_stream_isDuplexStream(u,y)&&typeof u._transform==="function"}const stream_getAsyncIterable=u=>{if(is_stream_isReadableStream(u,{checkOpen:false})&&oa.on!==undefined){return stream_getStreamIterable(u)}if(typeof u?.[Symbol.asyncIterator]==="function"){return u}if(ia.call(u)==="[object ReadableStream]"){return h.call(u)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:ia}=Object.prototype;const stream_getStreamIterable=async function*(u){const y=new AbortController;const C={};stream_handleStreamEnd(u,y,C);try{for await(const[C]of oa.on(u,"data",{signal:y.signal})){yield C}}catch(u){if(C.error!==undefined){throw C.error}else if(!y.signal.aborted){throw u}}finally{u.destroy()}};const stream_handleStreamEnd=async(u,y,C)=>{try{await oa.finished(u,{cleanup:true,readable:true,writable:false,error:false})}catch(u){C.error=u}finally{y.abort()}};const oa={};const source_contents_getStreamContents=async(u,{init:y,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,finalize:ne},{maxBuffer:oe=Number.POSITIVE_INFINITY}={})=>{const le=stream_getAsyncIterable(u);const de=y();de.length=0;try{for await(const u of le){const y=contents_getChunkType(u);const $=C[y](u,de);contents_appendChunk({convertedChunk:$,state:de,getSize:D,truncateChunk:_,addChunk:j,maxBuffer:oe})}contents_appendFinalChunk({state:de,convertChunk:C,getSize:D,truncateChunk:_,addChunk:j,getFinalChunk:$,maxBuffer:oe});return ne(de)}catch(u){const y=typeof u==="object"&&u!==null?u:new Error(u);y.bufferedData=ne(de);throw y}};const contents_appendFinalChunk=({state:u,getSize:y,truncateChunk:C,addChunk:D,getFinalChunk:_,maxBuffer:j})=>{const $=_(u);if($!==undefined){contents_appendChunk({convertedChunk:$,state:u,getSize:y,truncateChunk:C,addChunk:D,maxBuffer:j})}};const contents_appendChunk=({convertedChunk:u,state:y,getSize:C,truncateChunk:D,addChunk:_,maxBuffer:j})=>{const $=C(u);const ne=y.length+$;if(ne<=j){contents_addNewChunk(u,y,_,ne);return}const oe=D(u,j-y.length);if(oe!==undefined){contents_addNewChunk(oe,y,_,j)}throw new contents_MaxBufferError};const contents_addNewChunk=(u,y,C,D)=>{y.contents=C(u,y,D);y.length=D};const contents_getChunkType=u=>{const y=typeof u;if(y==="string"){return"string"}if(y!=="object"||u===null){return"others"}if(globalThis.Buffer?.isBuffer(u)){return"buffer"}const C=aa.call(u);if(C==="[object ArrayBuffer]"){return"arrayBuffer"}if(C==="[object DataView]"){return"dataView"}if(Number.isInteger(u.byteLength)&&Number.isInteger(u.byteOffset)&&aa.call(u.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:aa}=Object.prototype;class contents_MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const source_utils_identity=u=>u;const source_utils_noop=()=>undefined;const utils_getContentsProperty=({contents:u})=>u;const utils_throwObjectStream=u=>{throw new Error(`Streams in object mode are not supported: ${String(u)}`)};const utils_getLengthProperty=u=>u.length;async function array_buffer_getStreamAsArrayBuffer(u,y){return source_contents_getStreamContents(u,fa,y)}const array_buffer_initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const array_buffer_useTextEncoder=u=>la.encode(u);const la=new TextEncoder;const array_buffer_useUint8Array=u=>new Uint8Array(u);const array_buffer_useUint8ArrayWithOffset=u=>new Uint8Array(u.buffer,u.byteOffset,u.byteLength);const array_buffer_truncateArrayBufferChunk=(u,y)=>u.slice(0,y);const array_buffer_addArrayBufferChunk=(u,{contents:y,length:C},D)=>{const _=array_buffer_hasArrayBufferResize()?array_buffer_resizeArrayBuffer(y,D):array_buffer_resizeArrayBufferSlow(y,D);new Uint8Array(_).set(u,C);return _};const array_buffer_resizeArrayBufferSlow=(u,y)=>{if(y<=u.byteLength){return u}const C=new ArrayBuffer(array_buffer_getNewContentsLength(y));new Uint8Array(C).set(new Uint8Array(u),0);return C};const array_buffer_resizeArrayBuffer=(u,y)=>{if(y<=u.maxByteLength){u.resize(y);return u}const C=new ArrayBuffer(y,{maxByteLength:array_buffer_getNewContentsLength(y)});new Uint8Array(C).set(new Uint8Array(u),0);return C};const array_buffer_getNewContentsLength=u=>ca**Math.ceil(Math.log(u)/Math.log(ca));const ca=2;const array_buffer_finalizeArrayBuffer=({contents:u,length:y})=>array_buffer_hasArrayBufferResize()?u:u.slice(0,y);const array_buffer_hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const fa={init:array_buffer_initArrayBuffer,convertChunk:{string:array_buffer_useTextEncoder,buffer:array_buffer_useUint8Array,arrayBuffer:array_buffer_useUint8Array,dataView:array_buffer_useUint8ArrayWithOffset,typedArray:array_buffer_useUint8ArrayWithOffset,others:utils_throwObjectStream},getSize:utils_getLengthProperty,truncateChunk:array_buffer_truncateArrayBufferChunk,addChunk:array_buffer_addArrayBufferChunk,getFinalChunk:source_utils_noop,finalize:array_buffer_finalizeArrayBuffer};async function getStreamAsBuffer(u,y){if(!("Buffer"in globalThis)){throw new Error("getStreamAsBuffer() is only supported in Node.js")}try{return arrayBufferToNodeBuffer(await array_buffer_getStreamAsArrayBuffer(u,y))}catch(u){if(u.bufferedData!==undefined){u.bufferedData=arrayBufferToNodeBuffer(u.bufferedData)}throw u}}const arrayBufferToNodeBuffer=u=>globalThis.Buffer.from(u);var da=C(4584);var ha=C(181);var _serialize=(u,y=true)=>{if(u===void 0||u===null){return"null"}if(typeof u==="string"){return JSON.stringify(y&&u.startsWith(":")?`:${u}`:u)}if(ha.Buffer.isBuffer(u)){return JSON.stringify(`:base64:${u.toString("base64")}`)}if(u?.toJSON){u=u.toJSON()}if(typeof u==="object"){let C="";const D=Array.isArray(u);C=D?"[":"{";let _=true;for(const j in u){const $=typeof u[j]==="function"||!D&&u[j]===void 0;if(!Object.hasOwn(u,j)||$){continue}if(!_){C+=","}_=false;if(D){C+=_serialize(u[j],y)}else if(u[j]!==void 0){C+=`${_serialize(j,false)}:${_serialize(u[j],y)}`}}C+=D?"]":"}";return C}return JSON.stringify(u)};var defaultSerialize=u=>_serialize(u,true);var defaultDeserialize=u=>JSON.parse(u,((u,y)=>{if(typeof y==="string"){if(y.startsWith(":base64:")){return ha.Buffer.from(y.slice(8),"base64")}return y.startsWith(":")?y.slice(1):y}return y}));var pa=class{_eventListeners;_maxListeners;constructor(){this._eventListeners=new Map;this._maxListeners=100}maxListeners(){return this._maxListeners}addListener(u,y){this.on(u,y)}on(u,y){if(!this._eventListeners.has(u)){this._eventListeners.set(u,[])}const C=this._eventListeners.get(u);if(C){if(C.length>=this._maxListeners){console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${C.length+1} ${u} listeners added. Use setMaxListeners() to increase limit.`)}C.push(y)}return this}removeListener(u,y){this.off(u,y)}off(u,y){const C=this._eventListeners.get(u)??[];const D=C.indexOf(y);if(D!==-1){C.splice(D,1)}if(C.length===0){this._eventListeners.delete(u)}}once(u,y){const onceListener=(...C)=>{y(...C);this.off(u,onceListener)};this.on(u,onceListener)}emit(u,...y){const C=this._eventListeners.get(u);if(C&&C.length>0){for(const u of C){u(...y)}}}listeners(u){return this._eventListeners.get(u)??[]}removeAllListeners(u){if(u){this._eventListeners.delete(u)}else{this._eventListeners.clear()}}setMaxListeners(u){this._maxListeners=u}};var ga=pa;var ma=class extends ga{_hookHandlers;constructor(){super();this._hookHandlers=new Map}addHandler(u,y){const C=this._hookHandlers.get(u);if(C){C.push(y)}else{this._hookHandlers.set(u,[y])}}removeHandler(u,y){const C=this._hookHandlers.get(u);if(C){const u=C.indexOf(y);if(u!==-1){C.splice(u,1)}}}trigger(u,y){const C=this._hookHandlers.get(u);if(C){for(const D of C){try{D(y)}catch(y){this.emit("error",new Error(`Error in hook handler for event "${u}": ${y.message}`))}}}}get handlers(){return new Map(this._hookHandlers)}};var ba=ma;var Sa=class extends ga{enabled=true;hits=0;misses=0;sets=0;deletes=0;errors=0;constructor(u){super();if(u!==void 0){this.enabled=u}this.reset()}hit(){if(this.enabled){this.hits++}}miss(){if(this.enabled){this.misses++}}set(){if(this.enabled){this.sets++}}delete(){if(this.enabled){this.deletes++}}hitsOrMisses(u){for(const y of u){if(y===void 0){this.miss()}else{this.hit()}}}reset(){this.hits=0;this.misses=0;this.sets=0;this.deletes=0;this.errors=0}};var ka=Sa;var Qa=(u=>{u["PRE_SET"]="preSet";u["POST_SET"]="postSet";u["PRE_GET"]="preGet";u["POST_GET"]="postGet";u["PRE_GET_MANY"]="preGetMany";u["POST_GET_MANY"]="postGetMany";u["PRE_GET_RAW"]="preGetRaw";u["POST_GET_RAW"]="postGetRaw";u["PRE_GET_MANY_RAW"]="preGetManyRaw";u["POST_GET_MANY_RAW"]="postGetManyRaw";u["PRE_DELETE"]="preDelete";u["POST_DELETE"]="postDelete";return u})(Qa||{});var Fa=["sqlite","postgres","mysql","mongo","redis","valkey","etcd"];var _a=class extends ga{opts;iterator;hooks=new ba;stats=new ka(false);_ttl;_namespace;_store=new Map;_serialize=defaultSerialize;_deserialize=defaultDeserialize;_compression;_useKeyPrefix=true;_throwOnErrors=false;constructor(u,y){super();y??={};u??={};this.opts={namespace:"keyv",serialize:defaultSerialize,deserialize:defaultDeserialize,emitErrors:true,store:new Map,...y};if(u&&u.get){this.opts.store=u}else{this.opts={...this.opts,...u}}this._store=this.opts.store??new Map;this._compression=this.opts.compression;this._serialize=this.opts.serialize;this._deserialize=this.opts.deserialize;if(this.opts.namespace){this._namespace=this.opts.namespace}if(this._store){if(!this._isValidStorageAdapter(this._store)){throw new Error("Invalid storage adapter")}if(typeof this._store.on==="function"){this._store.on("error",(u=>this.emit("error",u)))}this._store.namespace=this._namespace;if(typeof this._store[Symbol.iterator]==="function"&&this._store instanceof Map){this.iterator=this.generateIterator(this._store)}else if("iterator"in this._store&&this._store.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(this._store.iterator.bind(this._store))}}if(this.opts.stats){this.stats.enabled=this.opts.stats}if(this.opts.ttl){this._ttl=this.opts.ttl}if(this.opts.useKeyPrefix!==void 0){this._useKeyPrefix=this.opts.useKeyPrefix}if(this.opts.throwOnErrors!==void 0){this._throwOnErrors=this.opts.throwOnErrors}}get store(){return this._store}set store(u){if(this._isValidStorageAdapter(u)){this._store=u;this.opts.store=u;if(typeof u.on==="function"){u.on("error",(u=>this.emit("error",u)))}if(this._namespace){this._store.namespace=this._namespace}if(typeof u[Symbol.iterator]==="function"&&u instanceof Map){this.iterator=this.generateIterator(u)}else if("iterator"in u&&u.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(u.iterator?.bind(u))}}else{throw new Error("Invalid storage adapter")}}get compression(){return this._compression}set compression(u){this._compression=u}get namespace(){return this._namespace}set namespace(u){this._namespace=u;this.opts.namespace=u;this._store.namespace=u;if(this.opts.store){this.opts.store.namespace=u}}get ttl(){return this._ttl}set ttl(u){this.opts.ttl=u;this._ttl=u}get serialize(){return this._serialize}set serialize(u){this.opts.serialize=u;this._serialize=u}get deserialize(){return this._deserialize}set deserialize(u){this.opts.deserialize=u;this._deserialize=u}get useKeyPrefix(){return this._useKeyPrefix}set useKeyPrefix(u){this._useKeyPrefix=u;this.opts.useKeyPrefix=u}get throwOnErrors(){return this._throwOnErrors}set throwOnErrors(u){this._throwOnErrors=u;this.opts.throwOnErrors=u}generateIterator(u){const function_=async function*(){for await(const[y,C]of typeof u==="function"?u(this._store.namespace):u){const u=await this.deserializeData(C);if(this._useKeyPrefix&&this._store.namespace&&!y.includes(this._store.namespace)){continue}if(typeof u.expires==="number"&&Date.now()>u.expires){this.delete(y);continue}yield[this._getKeyUnprefix(y),u.value]}};return function_.bind(this)}_checkIterableAdapter(){return Fa.includes(this._store.opts.dialect)||Fa.some((u=>this._store.opts.url.includes(u)))}_getKeyPrefix(u){if(!this._useKeyPrefix){return u}if(!this._namespace){return u}return`${this._namespace}:${u}`}_getKeyPrefixArray(u){if(!this._useKeyPrefix){return u}if(!this._namespace){return u}return u.map((u=>`${this._namespace}:${u}`))}_getKeyUnprefix(u){if(!this._useKeyPrefix){return u}return u.split(":").splice(1).join(":")}_isValidStorageAdapter(u){return u instanceof Map||typeof u.get==="function"&&typeof u.set==="function"&&typeof u.delete==="function"&&typeof u.clear==="function"}async get(u,y){const{store:C}=this.opts;const D=Array.isArray(u);const _=D?this._getKeyPrefixArray(u):this._getKeyPrefix(u);const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;if(D){if(y?.raw===true){return this.getMany(u,{raw:true})}return this.getMany(u,{raw:false})}this.hooks.trigger("preGet",{key:_});let j;try{j=await C.get(_)}catch(u){if(this.throwOnErrors){throw u}}const $=typeof j==="string"||this.opts.compression?await this.deserializeData(j):j;if($===void 0||$===null){this.hooks.trigger("postGet",{key:_,value:void 0});this.stats.miss();return void 0}if(isDataExpired($)){await this.delete(u);this.hooks.trigger("postGet",{key:_,value:void 0});this.stats.miss();return void 0}this.hooks.trigger("postGet",{key:_,value:$});this.stats.hit();return y?.raw?$:$.value}async getMany(u,y){const{store:C}=this.opts;const D=this._getKeyPrefixArray(u);const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;this.hooks.trigger("preGetMany",{keys:D});if(C.getMany===void 0){const u=D.map((async u=>{const D=await C.get(u);const _=typeof D==="string"||this.opts.compression?await this.deserializeData(D):D;if(_===void 0||_===null){return void 0}if(isDataExpired(_)){await this.delete(u);return void 0}return y?.raw?_:_.value}));const _=await Promise.allSettled(u);const j=_.map((u=>u.value));this.hooks.trigger("postGetMany",j);if(j.length>0){this.stats.hit()}return j}const _=await C.getMany(D);const j=[];const $=[];for(const C in _){let D=_[C];if(typeof D==="string"){D=await this.deserializeData(D)}if(D===void 0||D===null){j.push(void 0);continue}if(isDataExpired(D)){$.push(u[C]);j.push(void 0);continue}const ne=y?.raw?D:D.value;j.push(ne)}if($.length>0){await this.deleteMany($)}this.hooks.trigger("postGetMany",j);if(j.length>0){this.stats.hit()}return j}async getRaw(u){const{store:y}=this.opts;const C=this._getKeyPrefix(u);this.hooks.trigger("preGetRaw",{key:C});const D=await y.get(C);if(D===void 0||D===null){this.hooks.trigger("postGetRaw",{key:C,value:void 0});this.stats.miss();return void 0}const _=typeof D==="string"||this.opts.compression?await this.deserializeData(D):D;if(_!==void 0&&_.expires!==void 0&&_.expires!==null&&_.expires<Date.now()){this.hooks.trigger("postGetRaw",{key:C,value:void 0});this.stats.miss();await this.delete(u);return void 0}this.stats.hit();this.hooks.trigger("postGetRaw",{key:C,value:_});return _}async getManyRaw(u){const{store:y}=this.opts;const C=this._getKeyPrefixArray(u);if(u.length===0){const y=Array.from({length:u.length}).fill(void 0);this.stats.misses+=u.length;this.hooks.trigger("postGetManyRaw",{keys:C,values:y});return y}let D=[];if(y.getMany===void 0){const u=C.map((async u=>{const C=await y.get(u);if(C!==void 0&&C!==null){return this.deserializeData(C)}return void 0}));const _=await Promise.allSettled(u);D=_.map((u=>u.value))}else{const u=await y.getMany(C);for(const y of u){if(y!==void 0&&y!==null){D.push(await this.deserializeData(y))}else{D.push(void 0)}}}const _=[];const isDataExpired=u=>typeof u.expires==="number"&&Date.now()>u.expires;for(const[u,y]of D.entries()){if(y!==void 0&&isDataExpired(y)){_.push(C[u]);D[u]=void 0}}if(_.length>0){await this.deleteMany(_)}this.stats.hitsOrMisses(D);this.hooks.trigger("postGetManyRaw",{keys:C,values:D});return D}async set(u,y,C){const D={key:u,value:y,ttl:C};this.hooks.trigger("preSet",D);const _=this._getKeyPrefix(D.key);D.ttl??=this._ttl;if(D.ttl===0){D.ttl=void 0}const{store:j}=this.opts;const $=typeof D.ttl==="number"?Date.now()+D.ttl:void 0;if(typeof D.value==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const ne={value:D.value,expires:$};const oe=await this.serializeData(ne);let le=true;try{const u=await j.set(_,oe,D.ttl);if(typeof u==="boolean"){le=u}}catch(u){le=false;this.emit("error",u);if(this._throwOnErrors){throw u}}this.hooks.trigger("postSet",{key:_,value:oe,ttl:C});this.stats.set();return le}async setMany(u){let y=[];try{if(this._store.setMany===void 0){const C=[];for(const y of u){C.push(this.set(y.key,y.value,y.ttl))}const D=await Promise.all(C);y=D}else{const C=await Promise.all(u.map((async({key:u,value:y,ttl:C})=>{C??=this._ttl;if(C===0){C=void 0}const D=typeof C==="number"?Date.now()+C:void 0;if(typeof y==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const _={value:y,expires:D};const j=await this.serializeData(_);const $=this._getKeyPrefix(u);return{key:$,value:j,ttl:C}})));y=await this._store.setMany(C)}}catch(C){this.emit("error",C);if(this._throwOnErrors){throw C}y=u.map((()=>false))}return y}async delete(u){const{store:y}=this.opts;if(Array.isArray(u)){return this.deleteMany(u)}const C=this._getKeyPrefix(u);this.hooks.trigger("preDelete",{key:C});let D=true;try{const u=await y.delete(C);if(typeof u==="boolean"){D=u}}catch(u){D=false;this.emit("error",u);if(this._throwOnErrors){throw u}}this.hooks.trigger("postDelete",{key:C,value:D});this.stats.delete();return D}async deleteMany(u){try{const{store:y}=this.opts;const C=this._getKeyPrefixArray(u);this.hooks.trigger("preDelete",{key:C});if(y.deleteMany!==void 0){return await y.deleteMany(C)}const D=C.map((async u=>y.delete(u)));const _=await Promise.all(D);const j=_.every(Boolean);this.hooks.trigger("postDelete",{key:C,value:j});return j}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}return false}}async clear(){this.emit("clear");const{store:u}=this.opts;try{await u.clear()}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}}}async has(u){if(Array.isArray(u)){return this.hasMany(u)}const y=this._getKeyPrefix(u);const{store:C}=this.opts;if(C.has!==void 0&&!(C instanceof Map)){return C.has(y)}let D;try{D=await C.get(y)}catch(u){this.emit("error",u);if(this._throwOnErrors){throw u}return false}if(D){const u=await this.deserializeData(D);if(u){if(u.expires===void 0||u.expires===null){return true}return u.expires>Date.now()}}return false}async hasMany(u){const y=this._getKeyPrefixArray(u);const{store:C}=this.opts;if(C.hasMany!==void 0){return C.hasMany(y)}const D=[];for(const y of u){D.push(await this.has(y))}return D}async disconnect(){const{store:u}=this.opts;this.emit("disconnect");if(typeof u.disconnect==="function"){return u.disconnect()}}emit(u,...y){if(u==="error"&&!this.opts.emitErrors){return}super.emit(u,...y)}async serializeData(u){if(!this._serialize){return u}if(this._compression?.compress){return this._serialize({value:await this._compression.compress(u.value),expires:u.expires})}return this._serialize(u)}async deserializeData(u){if(!this._deserialize){return u}if(this._compression?.decompress&&typeof u==="string"){const y=await this._deserialize(u);return{value:await this._compression.decompress(y?.value),expires:y?.expires}}if(typeof u==="string"){return this._deserialize(u)}return void 0}};var Na=null&&_a;
80
80
  /* v8 ignore next -- @preserve */const Ga=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function mimicResponse(u,y){if(y._readableState.autoDestroy){throw new Error("The second stream must have the `autoDestroy` option set to `false`")}const C=new Set([...Object.keys(u),...Ga]);const D={};for(const _ of C){if(_ in y){continue}D[_]={get(){const y=u[_];const C=typeof y==="function";return C?y.bind(u):y},set(y){u[_]=y},enumerable:true,configurable:false}}Object.defineProperties(y,D);u.once("aborted",(()=>{y.destroy();y.emit("aborted")}));u.once("close",(()=>{if(u.complete){if(y.readable){y.once("end",(()=>{y.emit("close")}))}else{y.emit("close")}}else{y.emit("close")}}));return y}const ja="text/plain";const qa="us-ascii";const testParameter=(u,y)=>y.some((y=>y instanceof RegExp?y.test(u):y===u));const Va=new Set(["https:","http:","file:"]);const hasCustomProtocol=u=>{try{const{protocol:y}=new URL(u);return y.endsWith(":")&&!y.includes(".")&&!Va.has(y)}catch{return false}};const normalizeDataURL=(u,{stripHash:y})=>{const C=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(u);if(!C){throw new Error(`Invalid URL: ${u}`)}let{type:D,data:_,hash:j}=C.groups;const $=D.split(";");j=y?"":j;let ne=false;if($[$.length-1]==="base64"){$.pop();ne=true}const oe=$.shift()?.toLowerCase()??"";const le=$.map((u=>{let[y,C=""]=u.split("=").map((u=>u.trim()));if(y==="charset"){C=C.toLowerCase();if(C===qa){return""}}return`${y}${C?`=${C}`:""}`})).filter(Boolean);const de=[...le];if(ne){de.push("base64")}if(de.length>0||oe&&oe!==ja){de.unshift(oe)}return`data:${de.join(";")},${ne?_.trim():_}${j?`#${j}`:""}`};function normalizeUrl(u,y){y={defaultProtocol:"http",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripTextFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeSingleSlash:true,removeDirectoryIndex:false,removeExplicitPort:false,sortQueryParameters:true,removePath:false,transformPath:false,...y};if(typeof y.defaultProtocol==="string"&&!y.defaultProtocol.endsWith(":")){y.defaultProtocol=`${y.defaultProtocol}:`}u=u.trim();if(/^data:/i.test(u)){return normalizeDataURL(u,y)}if(hasCustomProtocol(u)){return u}const C=u.startsWith("//");const D=!C&&/^\.*\//.test(u);if(!D){u=u.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,y.defaultProtocol)}const _=new URL(u);if(y.forceHttp&&y.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(y.forceHttp&&_.protocol==="https:"){_.protocol="http:"}if(y.forceHttps&&_.protocol==="http:"){_.protocol="https:"}if(y.stripAuthentication){_.username="";_.password=""}if(y.stripHash){_.hash=""}else if(y.stripTextFragment){_.hash=_.hash.replace(/#?:~:text.*?$/i,"")}if(_.pathname){const u=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let y=0;let C="";for(;;){const D=u.exec(_.pathname);if(!D){break}const j=D[0];const $=D.index;const ne=_.pathname.slice(y,$);C+=ne.replace(/\/{2,}/g,"/");C+=j;y=$+j.length}const D=_.pathname.slice(y,_.pathname.length);C+=D.replace(/\/{2,}/g,"/");_.pathname=C}if(_.pathname){try{_.pathname=decodeURI(_.pathname).replace(/\\/g,"%5C")}catch{}}if(y.removeDirectoryIndex===true){y.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(y.removeDirectoryIndex)&&y.removeDirectoryIndex.length>0){let u=_.pathname.split("/");const C=u[u.length-1];if(testParameter(C,y.removeDirectoryIndex)){u=u.slice(0,-1);_.pathname=u.slice(1).join("/")+"/"}}if(y.removePath){_.pathname="/"}if(y.transformPath&&typeof y.transformPath==="function"){const u=_.pathname.split("/").filter(Boolean);const C=y.transformPath(u);_.pathname=C?.length>0?`/${C.join("/")}`:"/"}if(_.hostname){_.hostname=_.hostname.replace(/\.$/,"");if(y.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(_.hostname)){_.hostname=_.hostname.replace(/^www\./,"")}}if(Array.isArray(y.removeQueryParameters)){for(const u of[..._.searchParams.keys()]){if(testParameter(u,y.removeQueryParameters)){_.searchParams.delete(u)}}}if(!Array.isArray(y.keepQueryParameters)&&y.removeQueryParameters===true){_.search=""}if(Array.isArray(y.keepQueryParameters)&&y.keepQueryParameters.length>0){for(const u of[..._.searchParams.keys()]){if(!testParameter(u,y.keepQueryParameters)){_.searchParams.delete(u)}}}if(y.sortQueryParameters){const u=_.search;_.searchParams.sort();try{_.search=decodeURIComponent(_.search)}catch{}const y=u.slice(1).split("&").filter((u=>u&&!u.includes("=")));for(const u of y){const y=decodeURIComponent(u);_.search=_.search.replace(`?${y}=`,`?${y}`).replace(`&${y}=`,`&${y}`)}}if(y.removeTrailingSlash){_.pathname=_.pathname.replace(/\/$/,"")}if(y.removeExplicitPort&&_.port){_.port=""}const j=u;u=_.toString();if(!y.removeSingleSlash&&_.pathname==="/"&&!j.endsWith("/")&&_.hash===""){u=u.replace(/\/$/,"")}if((y.removeTrailingSlash||_.pathname==="/")&&_.hash===""&&y.removeSingleSlash){u=u.replace(/\/$/,"")}if(C&&!y.normalizeProtocol){u=u.replace(/^http:\/\//,"//")}if(y.stripProtocol){u=u.replace(/^(?:https?:)?\/\//,"")}return u}function lowercaseKeys(u){return Object.fromEntries(Object.entries(u).map((([u,y])=>[u.toLowerCase(),y])))}class Response extends Pt.Readable{statusCode;headers;body;url;complete;constructor({statusCode:u,headers:y,body:C,url:D}){if(typeof u!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof y!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(C instanceof Uint8Array)){throw new TypeError("Argument `body` should be a buffer")}if(typeof D!=="string"){throw new TypeError("Argument `url` should be a string")}let _=false;super({read(){if(!_){_=true;this.push(C);return}this.push(null)}});this.statusCode=u;this.headers=lowercaseKeys(y);this.body=C;this.url=D;this.complete=true}}class types_RequestError extends Error{constructor(u){super(u.message);Object.defineProperties(this,Object.getOwnPropertyDescriptors(u))}}class types_CacheError extends Error{constructor(u){super(u.message);Object.defineProperties(this,Object.getOwnPropertyDescriptors(u))}}class CacheableRequest{constructor(u,y){this.cache=new _a({namespace:"cacheable-request"});this.hooks=new Map;this.request=()=>(u,y)=>{let C;if(typeof u==="string"){C=normalizeUrlObject(parseWithWhatwg(u));u={}}else if(u instanceof vt.URL){C=normalizeUrlObject(parseWithWhatwg(u.toString()));u={}}else{const[y,...D]=(u.path??"").split("?");const _=D.length>0?`?${D.join("?")}`:"";C=normalizeUrlObject({...u,pathname:y,search:_})}u={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...u,...urlObjectToRequestOptions(C)};u.headers=Object.fromEntries(Ka(u.headers).map((([u,y])=>[u.toLowerCase(),y])));const D=new Tt;const _=normalizeUrl(vt.format(C),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});let j=`${u.method}:${_}`;if(u.body&&u.method!==undefined&&["POST","PATCH","PUT"].includes(u.method)){if(u.body instanceof Pt.Readable){u.cache=false}else{j+=`:${ra.createHash("md5").update(u.body).digest("hex")}`}}let $=false;let ne=false;const makeRequest=u=>{ne=true;let C=false;let requestErrorCallback=()=>{};const _=new Promise((u=>{requestErrorCallback=()=>{if(!C){C=true;u()}}}));const handler=async C=>{if($){C.status=C.statusCode;const y=da.fromObject($.cachePolicy);const D=y.revalidatedPolicy(u,C);if(!D.modified){C.resume();await new Promise((u=>{C.once("end",u)}));const u=convertHeaders(D.policy.responseHeaders());const _=convertHeaders(y.responseHeaders());const j=["content-encoding","content-type","content-length","content-language","content-location","etag"];for(const y of j){if(_[y]!==undefined&&u[y]===undefined){u[y]=_[y]}}C=new Response({statusCode:$.statusCode,headers:u,body:$.body,url:$.url});C.cachePolicy=D.policy;C.fromCache=true}}if(!C.fromCache){C.cachePolicy=new da(u,C,u);C.fromCache=false}let ne;if(u.cache&&C.cachePolicy.storable()){ne=cloneResponse(C);(async()=>{try{const y=getStreamAsBuffer(C);await Promise.race([_,new Promise((u=>C.once("end",u))),new Promise((u=>C.once("close",u)))]);const D=await y;let ne={url:C.url,statusCode:C.fromCache?$.statusCode:C.statusCode,body:D,cachePolicy:C.cachePolicy.toObject()};let oe=u.strictTtl?C.cachePolicy.timeToLive():undefined;if(u.maxTtl){oe=oe?Math.min(oe,u.maxTtl):u.maxTtl}if(this.hooks.size>0){for(const u of this.hooks.keys()){ne=await this.runHook(u,ne,C)}}await this.cache.set(j,ne,oe);
81
81
  /* c8 ignore next -- @preserve */}catch(u){
82
82
  /* c8 ignore next -- @preserve */
@@ -87,7 +87,7 @@ D.emit("error",new types_CacheError(u));
87
87
  D.emit("error",new types_CacheError(u));
88
88
  /* c8 ignore next -- @preserve */}})()}D.emit("response",ne??C);if(typeof y==="function"){y(ne??C)}};try{const y=this.cacheRequest(u,handler);y.once("error",requestErrorCallback);y.once("abort",requestErrorCallback);y.once("destroy",requestErrorCallback);D.emit("request",y)}catch(u){D.emit("error",new types_RequestError(u))}};(async()=>{const get=async u=>{await Promise.resolve();const C=u.cache?await this.cache.get(j):undefined;if(C===undefined&&!u.forceRefresh){makeRequest(u);return}const _=da.fromObject(C.cachePolicy);if(_.satisfiesWithoutRevalidation(u)&&!u.forceRefresh){const u=convertHeaders(_.responseHeaders());const j=C.body;const $=Buffer.from(j);const ne=new Response({statusCode:C.statusCode,headers:u,body:$,url:C.url});ne.cachePolicy=_;ne.fromCache=true;D.emit("response",ne);if(typeof y==="function"){y(ne)}}else if(_.satisfiesWithoutRevalidation(u)&&Date.now()>=_.timeToLive()&&u.forceRefresh){await this.cache.delete(j);u.headers=_.revalidationHeaders(u);makeRequest(u)}else{$=C;u.headers=_.revalidationHeaders(u);makeRequest(u)}};const errorHandler=u=>D.emit("error",new types_CacheError(u));if(this.cache instanceof _a){const u=this.cache;u.once("error",errorHandler);D.on("error",(()=>{u.removeListener("error",errorHandler)}));D.on("response",(()=>{u.removeListener("error",errorHandler)}))}try{await get(u)}catch(y){
89
89
  /* v8 ignore next -- @preserve */
90
- if(u.automaticFailover&&!ne){makeRequest(u)}D.emit("error",new types_CacheError(y))}})();return D};this.addHook=(u,y)=>{if(!this.hooks.has(u)){this.hooks.set(u,y)}};this.removeHook=u=>this.hooks.delete(u);this.getHook=u=>this.hooks.get(u);this.runHook=async(u,...y)=>this.hooks.get(u)?.(...y);if(y){if(y instanceof _a){this.cache=y}else{this.cache=new _a({store:y,namespace:"cacheable-request"})}}this.request=this.request.bind(this);this.cacheRequest=u}}const Ka=Object.entries;const cloneResponse=u=>{const y=new Pt.PassThrough({autoDestroy:false});mimicResponse(u,y);return u.pipe(y)};const urlObjectToRequestOptions=u=>{const y={...u};y.path=`${u.pathname||"/"}${u.search||""}`;delete y.pathname;delete y.search;return y};const normalizeUrlObject=u=>({protocol:u.protocol,auth:u.auth,hostname:u.hostname||u.host||"localhost",port:u.port,pathname:u.pathname,search:u.search});const convertHeaders=u=>{const y=[];for(const C of Object.keys(u)){y[C.toLowerCase()]=u[C]}return y};const parseWithWhatwg=u=>{const y=new vt.URL(u);return{protocol:y.protocol,slashes:true,auth:y.username||y.password?`${y.username}:${y.password}`:undefined,host:y.host,port:y.port,hostname:y.hostname,hash:y.hash,search:y.search,query:Object.fromEntries(y.searchParams),pathname:y.pathname,path:y.pathname+y.search,href:y.href}};const Ya=CacheableRequest;const el="onResponse";const tl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");const rl=typeof tl.createZstdDecompress==="function";function decompressResponse(u){const y=(u.headers["content-encoding"]||"").toLowerCase();const C=["gzip","deflate","br"];if(rl){C.push("zstd")}if(!C.includes(y)){return u}let D=true;const _={...u.headers};const j=new Pt.PassThrough({autoDestroy:false});j.once("error",(()=>{u.destroy()}));function handleContentEncoding(C){let _;if(y==="zstd"){_=tl.createZstdDecompress()}else if(y==="br"){_=tl.createBrotliDecompress()}else if(y==="deflate"&&C.length>0&&(C[0]&8)===0){_=tl.createInflateRaw()}else{_=tl.createUnzip()}_.once("error",(y=>{if(D&&!u.readable){j.end();return}j.destroy(y)}));$.pipe(_).pipe(j)}const $=new Pt.Transform({transform(u,y,C){if(D===false){C(null,u);return}D=false;handleContentEncoding(u);C(null,u)},flush(u){if(D){j.end()}u()}});delete _["content-encoding"];delete _["content-length"];j.headers=_;mimicResponse(u,j);u.pipe($);return j}var __typeError=u=>{throw TypeError(u)};var __accessCheck=(u,y,C)=>y.has(u)||__typeError("Cannot "+C);var __privateGet=(u,y,C)=>(__accessCheck(u,y,"read from private field"),C?C.call(u):y.get(u));var __privateAdd=(u,y,C)=>y.has(u)?__typeError("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(u):y.set(u,C);var __privateSet=(u,y,C,D)=>(__accessCheck(u,y,"write to private field"),D?D.call(u,C):y.set(u,C),C);var __privateMethod=(u,y,C)=>(__accessCheck(u,y,"access private method"),C);var nl=65536;function*chunk(u){if(u.byteLength<=nl){yield u;return}let y=0;while(y<u.byteLength){const C=Math.min(u.byteLength-y,nl);const D=u.buffer.slice(y,y+C);y+=D.byteLength;yield new Uint8Array(D)}}var il="abcdefghijklmnopqrstuvwxyz0123456789";function createBoundary(){let u=16;let y="";while(u--){y+=il[Math.random()*il.length<<0]}return y}var escapeName=u=>String(u).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");var lib_isFunction=u=>typeof u==="function";var isReadableStreamFallback=u=>!!u&&typeof u==="object"&&!Array.isArray(u)&&lib_isFunction(u.getReader);var lib_isAsyncIterable=u=>lib_isFunction(u[Symbol.asyncIterator]);async function*readStream(u){const y=u.getReader();while(true){const{done:u,value:C}=await y.read();if(u){break}yield C}}async function*chunkStream(u){for await(const y of u){yield*chunk(y)}}var getStreamIterator=u=>{if(lib_isAsyncIterable(u)){return chunkStream(u)}if(isReadableStreamFallback(u)){return chunkStream(readStream(u))}throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};var isFile=u=>Boolean(u&&typeof u==="object"&&lib_isFunction(u.constructor)&&u[Symbol.toStringTag]==="File"&&lib_isFunction(u.stream)&&u.name!=null);var lib_isFormData=u=>Boolean(u&&lib_isFunction(u.constructor)&&u[Symbol.toStringTag]==="FormData"&&lib_isFunction(u.append)&&lib_isFunction(u.getAll)&&lib_isFunction(u.entries)&&lib_isFunction(u[Symbol.iterator]));var getType=u=>Object.prototype.toString.call(u).slice(8,-1).toLowerCase();function lib_isPlainObject(u){if(getType(u)!=="object"){return false}const y=Object.getPrototypeOf(u);if(y===null||y===void 0){return true}return y.constructor?.toString?.()===Object.toString()}var normalizeValue=u=>String(u).replace(/\r|\n/g,((u,y,C)=>{if(u==="\r"&&C[y+1]!=="\n"||u==="\n"&&C[y-1]!=="\r"){return"\r\n"}return u}));function getProperty(u,y){if(typeof y==="string"){for(const[C,D]of Object.entries(u)){if(y.toLowerCase()===C.toLowerCase()){return D}}}return void 0}var proxyHeaders=u=>new Proxy(u,{get:(u,y)=>getProperty(u,y),has:(u,y)=>getProperty(u,y)!==void 0});var sl={enableAdditionalHeaders:false};var ol={writable:false,configurable:false};var al,ll,cl,ul,fl,dl,Al,hl,pl,gl,ml;var yl=class{constructor(u,y,C){__privateAdd(this,pl);__privateAdd(this,al,"\r\n");__privateAdd(this,ll);__privateAdd(this,cl);__privateAdd(this,ul,"-".repeat(2));__privateAdd(this,fl,new TextEncoder);__privateAdd(this,dl);__privateAdd(this,Al);__privateAdd(this,hl);if(!lib_isFormData(u)){throw new TypeError("Expected first argument to be a FormData instance.")}let D;if(lib_isPlainObject(y)){C=y}else{D=y}if(!D){D=`form-data-encoder-${createBoundary()}`}if(typeof D!=="string"){throw new TypeError("Expected boundary argument to be a string.")}if(C&&!lib_isPlainObject(C)){throw new TypeError("Expected options argument to be an object.")}__privateSet(this,Al,Array.from(u.entries()));__privateSet(this,hl,{...sl,...C});__privateSet(this,ll,__privateGet(this,fl).encode(__privateGet(this,al)));__privateSet(this,cl,__privateGet(this,ll).byteLength);this.boundary=D;this.contentType=`multipart/form-data; boundary=${this.boundary}`;__privateSet(this,dl,__privateGet(this,fl).encode(`${__privateGet(this,ul)}${this.boundary}${__privateGet(this,ul)}${__privateGet(this,al).repeat(2)}`));const _={"Content-Type":this.contentType};const j=__privateMethod(this,pl,ml).call(this);if(j){this.contentLength=j;_["Content-Length"]=j}this.headers=proxyHeaders(Object.freeze(_));Object.defineProperties(this,{boundary:ol,contentType:ol,contentLength:ol,headers:ol})}*values(){for(const[u,y]of __privateGet(this,Al)){const C=isFile(y)?y:__privateGet(this,fl).encode(normalizeValue(y));yield __privateMethod(this,pl,gl).call(this,u,C);yield C;yield __privateGet(this,ll)}yield __privateGet(this,dl)}async*encode(){for(const u of this.values()){if(isFile(u)){yield*getStreamIterator(u.stream())}else{yield*chunk(u)}}}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};al=new WeakMap;ll=new WeakMap;cl=new WeakMap;ul=new WeakMap;fl=new WeakMap;dl=new WeakMap;Al=new WeakMap;hl=new WeakMap;pl=new WeakSet;gl=function(u,y){let C="";C+=`${__privateGet(this,ul)}${this.boundary}${__privateGet(this,al)}`;C+=`Content-Disposition: form-data; name="${escapeName(u)}"`;if(isFile(y)){C+=`; filename="${escapeName(y.name)}"${__privateGet(this,al)}`;C+=`Content-Type: ${y.type||"application/octet-stream"}`}if(__privateGet(this,hl).enableAdditionalHeaders===true){const u=isFile(y)?y.size:y.byteLength;if(u!=null&&!isNaN(u)){C+=`${__privateGet(this,al)}Content-Length: ${u}`}}return __privateGet(this,fl).encode(`${C}${__privateGet(this,al).repeat(2)}`)};ml=function(){let u=0;for(const[y,C]of __privateGet(this,Al)){const D=isFile(C)?C:__privateGet(this,fl).encode(normalizeValue(C));const _=isFile(D)?D.size:D.byteLength;if(_==null||isNaN(_)){return void 0}u+=__privateMethod(this,pl,gl).call(this,y,D).byteLength;u+=_;u+=__privateGet(this,cl)}return String(u+__privateGet(this,dl).byteLength)};function isTlsSocket(u){return"encrypted"in u}const deferToConnect=(u,y)=>{let C;if(typeof y==="function"){const u=y;C={connect:u}}else{C=y}const D=typeof C.connect==="function";const _=typeof C.secureConnect==="function";const j=typeof C.close==="function";const onConnect=()=>{if(D){C.connect()}if(isTlsSocket(u)&&_){if(u.authorized){C.secureConnect()}else{u.once("secureConnect",C.secureConnect)}}if(j){u.once("close",C.close)}};if(u.writable&&!u.connecting){onConnect()}else if(u.connecting){u.once("connect",onConnect)}else if(u.destroyed&&j){const y="_hadError"in u?Boolean(u._hadError):false;C.close(y)}};const El=deferToConnect;const timer=u=>{if(u.timings){return u.timings}const y={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};u.timings=y;const handleError=u=>{u.once(Tt.errorMonitor,(()=>{y.error=Date.now();y.phases.total=y.error-y.start}))};handleError(u);const onAbort=()=>{y.abort=Date.now();y.phases.total=y.abort-y.start};u.prependOnceListener("abort",onAbort);const onSocket=u=>{y.socket=Date.now();y.phases.wait=y.socket-y.start;if(cn.types.isProxy(u)){return}const C=u.writable&&!u.connecting;if(C){y.lookup=y.socket;y.connect=y.socket;if(u.__initial_connection_timings__){y.phases.dns=u.__initial_connection_timings__.dnsPhase;y.phases.tcp=u.__initial_connection_timings__.tcpPhase;y.phases.tls=u.__initial_connection_timings__.tlsPhase;if(y.phases.tls!==undefined){y.secureConnect=y.socket}}else{y.phases.dns=0;y.phases.tcp=0}return}const lookupListener=()=>{y.lookup=Date.now();y.phases.dns=y.lookup-y.socket};u.prependOnceListener("lookup",lookupListener);El(u,{connect(){y.connect=Date.now();if(y.lookup===undefined){u.removeListener("lookup",lookupListener);y.lookup=y.socket;y.phases.dns=0}y.phases.tcp=y.connect-y.lookup;if(y.phases.tcp===0&&y.phases.dns&&y.phases.dns>0){y.phases.dns=0}if(!u.__initial_connection_timings__){u.__initial_connection_timings__={dnsPhase:y.phases.dns,tcpPhase:y.phases.tcp}}},secureConnect(){y.secureConnect=Date.now();y.phases.tls=y.secureConnect-y.connect;if(u.__initial_connection_timings__){u.__initial_connection_timings__.tlsPhase=y.phases.tls}}})};if(u.socket){onSocket(u.socket)}else{u.prependOnceListener("socket",onSocket)}const onUpload=()=>{y.upload=Date.now();const u=y.secureConnect??y.connect;if(u!==undefined){y.phases.request=y.upload-u}};if(u.writableFinished){onUpload()}else{u.prependOnceListener("finish",onUpload)}u.prependOnceListener("response",(C=>{y.response=Date.now();y.phases.firstByte=y.response-y.upload;C.timings=y;handleError(C);C.prependOnceListener("end",(()=>{u.off("abort",onAbort);C.off("aborted",onAbort);if(y.phases.total!==undefined){return}y.end=Date.now();y.phases.download=y.end-y.response;y.phases.total=y.end-y.start}));C.prependOnceListener("aborted",onAbort)}));return y};const Cl=timer;function is_form_data_isFormData(u){return Yo.nodeStream(u)&&Yo.function(u.getBoundary)}async function getBodySize(u,y){if(y&&"content-length"in y){return Number(y["content-length"])}if(!u){return 0}if(Yo.string(u)){return(new TextEncoder).encode(u).byteLength}if(Yo.buffer(u)){return u.length}if(Yo.typedArray(u)){return u.byteLength}if(is_form_data_isFormData(u)){try{return await(0,cn.promisify)(u.getLength.bind(u))()}catch(u){const y=u;throw new Error("Cannot determine content-length for form-data with stream(s) of unknown length. "+"This is a limitation of the `form-data` package. "+"To fix this, either:\n"+"1. Use the `knownLength` option when appending streams:\n"+" form.append('file', stream, {knownLength: 12345});\n"+"2. Switch to spec-compliant FormData (formdata-node package)\n"+"See: https://github.com/form-data/form-data#alternative-submission-methods\n"+`Original error: ${y.message}`)}}return undefined}function proxyEvents(u,y,C){const D={};for(const _ of C){const eventFunction=(...u)=>{y.emit(_,...u)};D[_]=eventFunction;u.on(_,eventFunction)}return()=>{for(const[y,C]of Object.entries(D)){u.off(y,C)}}}const Il=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:net");function unhandle(){const u=[];return{once(y,C,D){y.once(C,D);u.push({origin:y,event:C,fn:D})},unhandleAll(){for(const y of u){const{origin:u,event:C,fn:D}=y;u.removeListener(C,D)}u.length=0}}}const bl=Symbol("reentry");const timed_out_noop=()=>{};class timed_out_TimeoutError extends Error{event;name="TimeoutError";code="ETIMEDOUT";constructor(u,y){super(`Timeout awaiting '${y}' for ${u}ms`);this.event=y}}function timedOut(u,y,C){if(bl in u){return timed_out_noop}u[bl]=true;const D=[];const{once:_,unhandleAll:j}=unhandle();const $=new Map;const addTimeout=(u,y,C)=>{const _=setTimeout(y,u,u,C);_.unref?.();const cancel=()=>{$.set(C,true);clearTimeout(_)};D.push(cancel);return cancel};const{host:ne,hostname:oe}=C;const timeoutHandler=(y,C)=>{setTimeout((()=>{if(!$.has(C)){u.destroy(new timed_out_TimeoutError(y,C))}}),0)};const cancelTimeouts=()=>{for(const u of D){u()}j()};u.once("error",(y=>{cancelTimeouts();if(u.listenerCount("error")===0){throw y}}));if(y.request!==undefined){const C=addTimeout(y.request,timeoutHandler,"request");_(u,"response",(u=>{_(u,"end",C)}))}if(y.socket!==undefined){const{socket:C}=y;const socketTimeoutHandler=()=>{timeoutHandler(C,"socket")};u.setTimeout(C,socketTimeoutHandler);D.push((()=>{u.removeListener("timeout",socketTimeoutHandler)}))}const le=y.lookup!==undefined;const de=y.connect!==undefined;const Ae=y.secureConnect!==undefined;const pe=y.send!==undefined;if(le||de||Ae||pe){_(u,"socket",(D=>{const{socketPath:j}=u;if(D.connecting){const u=Boolean(j??Il.isIP(oe??ne??"")!==0);if(le&&!u&&D.address().address===undefined){const u=addTimeout(y.lookup,timeoutHandler,"lookup");_(D,"lookup",u)}if(de){const timeConnect=()=>addTimeout(y.connect,timeoutHandler,"connect");if(u){_(D,"connect",timeConnect())}else{_(D,"lookup",(u=>{if(u===null){_(D,"connect",timeConnect())}}))}}if(Ae&&C.protocol==="https:"){_(D,"connect",(()=>{const u=addTimeout(y.secureConnect,timeoutHandler,"secureConnect");_(D,"secureConnect",u)}))}}if(pe){const timeRequest=()=>addTimeout(y.send,timeoutHandler,"send");if(D.connecting){_(D,"connect",(()=>{_(u,"upload-complete",timeRequest())}))}else{_(u,"upload-complete",timeRequest())}}}))}if(y.response!==undefined){_(u,"upload-complete",(()=>{const C=addTimeout(y.response,timeoutHandler,"response");_(u,"response",C)}))}if(y.read!==undefined){_(u,"response",(u=>{const C=addTimeout(y.read,timeoutHandler,"read");_(u,"end",C)}))}return cancelTimeouts}function urlToOptions(u){u=u;const y={protocol:u.protocol,hostname:Yo.string(u.hostname)&&u.hostname.startsWith("[")?u.hostname.slice(1,-1):u.hostname,host:u.host,hash:u.hash,search:u.search,pathname:u.pathname,href:u.href,path:`${u.pathname||""}${u.search||""}`};if(Yo.string(u.port)&&u.port.length>0){y.port=Number(u.port)}if(u.username||u.password){y.auth=`${u.username||""}:${u.password||""}`}return y}class WeakableMap{weakMap=new WeakMap;map=new Map;set(u,y){if(typeof u==="object"){this.weakMap.set(u,y)}else{this.map.set(u,y)}}get(u){if(typeof u==="object"){return this.weakMap.get(u)}return this.map.get(u)}has(u){if(typeof u==="object"){return this.weakMap.has(u)}return this.map.has(u)}}const calculateRetryDelay=({attemptCount:u,retryOptions:y,error:C,retryAfter:D,computedValue:_})=>{if(C.name==="RetryError"){return 1}if(u>y.limit){return 0}const j=y.methods.includes(C.options.method);const $=y.errorCodes.includes(C.code);const ne=C.response&&y.statusCodes.includes(C.response.statusCode);if(!j||!$&&!ne){return 0}if(C.response){if(D){if(D>_){return 0}return D}if(C.response.statusCode===413){return 0}}const oe=Math.random()*y.noise;return Math.min(2**(u-1)*1e3,y.backoffLimit)+oe};const vl=calculateRetryDelay;const wl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tls");const Bl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:https");const Dl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:dns");const{Resolver:Sl}=Dl.promises;const kl=Symbol("cacheableLookupCreateConnection");const Ql=Symbol("cacheableLookupInstance");const xl=Symbol("expires");const Fl=typeof Dl.ALL==="number";const verifyAgent=u=>{if(!(u&&typeof u.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=u=>{for(const y of u){if(y.family===6){continue}y.address=`::ffff:${y.address}`;y.family=6}};const getIfaceInfo=()=>{let u=false;let y=false;for(const C of Object.values(Hi.networkInterfaces())){for(const D of C){if(D.internal){continue}if(D.family==="IPv6"){y=true}else{u=true}if(u&&y){return{has4:u,has6:y}}}}return{has4:u,has6:y}};const source_isIterable=u=>Symbol.iterator in u;const ignoreNoResultErrors=u=>u.catch((u=>{if(u.code==="ENODATA"||u.code==="ENOTFOUND"||u.code==="ENOENT"){return[]}throw u}));const _l={ttl:true};const Rl={all:true};const Ll={all:true,family:4};const Nl={all:true,family:6};class CacheableLookup{constructor({cache:u=new Map,maxTtl:y=Infinity,fallbackDuration:C=3600,errorTtl:D=.15,resolver:_=new Sl,lookup:j=Dl.lookup}={}){this.maxTtl=y;this.errorTtl=D;this._cache=u;this._resolver=_;this._dnsLookup=j&&(0,cn.promisify)(j);this.stats={cache:0,query:0};if(this._resolver instanceof Sl){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=(0,cn.promisify)(this._resolver.resolve4.bind(this._resolver));this._resolve6=(0,cn.promisify)(this._resolver.resolve6.bind(this._resolver))}this._iface=getIfaceInfo();this._pending={};this._nextRemovalTime=false;this._hostnamesToFallback=new Set;this.fallbackDuration=C;if(C>0){const u=setInterval((()=>{this._hostnamesToFallback.clear()}),C*1e3);if(u.unref){u.unref()}this._fallbackInterval=u}this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(u){this.clear();this._resolver.setServers(u)}get servers(){return this._resolver.getServers()}lookup(u,y,C){if(typeof y==="function"){C=y;y={}}else if(typeof y==="number"){y={family:y}}if(!C){throw new Error("Callback must be a function.")}this.lookupAsync(u,y).then((u=>{if(y.all){C(null,u)}else{C(null,u.address,u.family,u.expires,u.ttl,u.source)}}),C)}async lookupAsync(u,y={}){if(typeof y==="number"){y={family:y}}let C=await this.query(u);if(y.family===6){const u=C.filter((u=>u.family===6));if(y.hints&Dl.V4MAPPED){if(Fl&&y.hints&Dl.ALL||u.length===0){map4to6(C)}else{C=u}}else{C=u}}else if(y.family===4){C=C.filter((u=>u.family===4))}if(y.hints&Dl.ADDRCONFIG){const{_iface:u}=this;C=C.filter((y=>y.family===6?u.has6:u.has4))}if(C.length===0){const y=new Error(`cacheableLookup ENOTFOUND ${u}`);y.code="ENOTFOUND";y.hostname=u;throw y}if(y.all){return C}return C[0]}async query(u){let y="cache";let C=await this._cache.get(u);if(C){this.stats.cache++}if(!C){const D=this._pending[u];if(D){this.stats.cache++;C=await D}else{y="query";const D=this.queryAndCache(u);this._pending[u]=D;this.stats.query++;try{C=await D}finally{delete this._pending[u]}}}C=C.map((u=>({...u,source:y})));return C}async _resolve(u){const[y,C]=await Promise.all([ignoreNoResultErrors(this._resolve4(u,_l)),ignoreNoResultErrors(this._resolve6(u,_l))]);let D=0;let _=0;let j=0;const $=Date.now();for(const u of y){u.family=4;u.expires=$+u.ttl*1e3;D=Math.max(D,u.ttl)}for(const u of C){u.family=6;u.expires=$+u.ttl*1e3;_=Math.max(_,u.ttl)}if(y.length>0){if(C.length>0){j=Math.min(D,_)}else{j=D}}else{j=_}return{entries:[...y,...C],cacheTtl:j}}async _lookup(u){try{const[y,C]=await Promise.all([ignoreNoResultErrors(this._dnsLookup(u,Ll)),ignoreNoResultErrors(this._dnsLookup(u,Nl))]);return{entries:[...y,...C],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(u,y,C){if(this.maxTtl>0&&C>0){C=Math.min(C,this.maxTtl)*1e3;y[xl]=Date.now()+C;try{await this._cache.set(u,y,C)}catch(u){this.lookupAsync=async()=>{const y=new Error("Cache Error. Please recreate the CacheableLookup instance.");y.cause=u;throw y}}if(source_isIterable(this._cache)){this._tick(C)}}}async queryAndCache(u){if(this._hostnamesToFallback.has(u)){return this._dnsLookup(u,Rl)}let y=await this._resolve(u);if(y.entries.length===0&&this._dnsLookup){y=await this._lookup(u);if(y.entries.length!==0&&this.fallbackDuration>0){this._hostnamesToFallback.add(u)}}const C=y.entries.length===0?this.errorTtl:y.cacheTtl;await this._set(u,y.entries,C);return y.entries}_tick(u){const y=this._nextRemovalTime;if(!y||u<y){clearTimeout(this._removalTimeout);this._nextRemovalTime=u;this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=false;let u=Infinity;const y=Date.now();for(const[C,D]of this._cache){const _=D[xl];if(y>=_){this._cache.delete(C)}else if(_<u){u=_}}if(u!==Infinity){this._tick(u-y)}}),u);if(this._removalTimeout.unref){this._removalTimeout.unref()}}}install(u){verifyAgent(u);if(kl in u){throw new Error("CacheableLookup has been already installed")}u[kl]=u.createConnection;u[Ql]=this;u.createConnection=(y,C)=>{if(!("lookup"in y)){y.lookup=this.lookup}return u[kl](y,C)}}uninstall(u){verifyAgent(u);if(u[kl]){if(u[Ql]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}u.createConnection=u[kl];delete u[kl];delete u[Ql]}}updateInterfaceInfo(){const{_iface:u}=this;this._iface=getIfaceInfo();if(u.has4&&!this._iface.has4||u.has6&&!this._iface.has6){this._cache.clear()}}clear(u){if(u){this._cache.delete(u);return}this._cache.clear()}}var Tl=C(4956);function parseLinkHeader(u){const y=[];const C=u.split(",");for(const D of C){const[C,..._]=D.split(";");const j=C.trim();if(j[0]!=="<"||j.at(-1)!==">"){throw new Error(`Invalid format of the Link header reference: ${j}`)}const $=j.slice(1,-1);const ne={};if(_.length===0){throw new Error(`Unexpected end of Link header parameters: ${_.join(";")}`)}for(const y of _){const C=y.trim();const D=C.indexOf("=");if(D===-1){throw new Error(`Failed to parse Link header: ${u}`)}const _=C.slice(0,D).trim();const j=C.slice(D+1).trim();ne[_]=j}y.push({reference:$,parameters:ne})}return y}const[Pl,Ol]=un.versions.node.split(".").map(Number);function wrapAssertionWithContext(u,y){try{y()}catch(y){if(y instanceof Error){y.message=`Option '${u}': ${y.message}`}throw y}}function options_assertAny(u,y,C){wrapAssertionWithContext(u,(()=>{Vo.any(y,C)}))}function options_assertPlainObject(u,y){wrapAssertionWithContext(u,(()=>{Vo.plainObject(y)}))}function validateSearchParameters(u){for(const y in u){const C=u[y];options_assertAny(`searchParams.${y}`,[Yo.string,Yo.number,Yo.boolean,Yo.null,Yo.undefined],C)}}const Ml=new Map;let Ul;const getGlobalDnsCache=()=>{if(Ul){return Ul}Ul=new CacheableLookup;return Ul};const wrapQuickLruIfNeeded=u=>{if(u?.[Symbol.toStringTag]==="QuickLRU"&&typeof u.evict==="function"){return{get(y){return u.get(y)},set(y,C,D){if(D===undefined){u.set(y,C)}else{u.set(y,C,{maxAge:D})}return true},delete(y){return u.delete(y)},clear(){return u.clear()},has(y){return u.has(y)}}}return u};const Hl={request:undefined,agent:{http:undefined,https:undefined,http2:undefined},h2session:undefined,decompress:true,timeout:{connect:undefined,lookup:undefined,read:undefined,request:undefined,response:undefined,secureConnect:undefined,send:undefined,socket:undefined},prefixUrl:"",body:undefined,form:undefined,json:undefined,cookieJar:undefined,ignoreInvalidCookies:false,searchParams:undefined,dnsLookup:undefined,dnsCache:undefined,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],beforeCache:[],afterResponse:[]},followRedirect:true,maxRedirects:10,cache:undefined,throwHttpErrors:true,username:"",password:"",http2:false,allowGetBody:false,copyPipedHeaders:true,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:false,dnsLookupIpVersion:undefined,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:u})=>u,backoffLimit:Number.POSITIVE_INFINITY,noise:100,enforceRetryRules:false},localAddress:undefined,method:"GET",createConnection:undefined,cacheOptions:{shared:undefined,cacheHeuristic:undefined,immutableMinTimeToLive:undefined,ignoreCargoCult:undefined},https:{alpnProtocols:undefined,rejectUnauthorized:undefined,checkServerIdentity:undefined,serverName:undefined,certificateAuthority:undefined,key:undefined,certificate:undefined,passphrase:undefined,pfx:undefined,ciphers:undefined,honorCipherOrder:undefined,minVersion:undefined,maxVersion:undefined,signatureAlgorithms:undefined,tlsSessionLifetime:undefined,dhparam:undefined,ecdhCurve:undefined,certificateRevocationLists:undefined,secureOptions:undefined},encoding:undefined,resolveBodyOnly:false,isStream:false,responseType:"text",url:undefined,pagination:{transform(u){if(u.request.options.responseType==="json"){return u.body}return JSON.parse(u.body)},paginate({response:u}){const y=u.headers.link;if(typeof y!=="string"||y.trim()===""){return false}const C=parseLinkHeader(y);const D=C.find((u=>u.parameters.rel==="next"||u.parameters.rel==='"next"'));if(D){return{url:new URL(D.reference,u.url)}}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:false},setHost:true,maxHeaderSize:undefined,signal:undefined,enableUnixSockets:false,strictContentLength:false};const cloneInternals=u=>{const{hooks:y,retry:C}=u;const D={...u,context:{...u.context},cacheOptions:{...u.cacheOptions},https:{...u.https},agent:{...u.agent},headers:{...u.headers},retry:{...C,errorCodes:[...C.errorCodes],methods:[...C.methods],statusCodes:[...C.statusCodes]},timeout:{...u.timeout},hooks:{init:[...y.init],beforeRequest:[...y.beforeRequest],beforeError:[...y.beforeError],beforeRedirect:[...y.beforeRedirect],beforeRetry:[...y.beforeRetry],beforeCache:[...y.beforeCache],afterResponse:[...y.afterResponse]},searchParams:u.searchParams?new URLSearchParams(u.searchParams):undefined,pagination:{...u.pagination}};return D};const cloneRaw=u=>{const{hooks:y,retry:C}=u;const D={...u};if(Yo.object(u.context)){D.context={...u.context}}if(Yo.object(u.cacheOptions)){D.cacheOptions={...u.cacheOptions}}if(Yo.object(u.https)){D.https={...u.https}}if(Yo.object(u.cacheOptions)){D.cacheOptions={...D.cacheOptions}}if(Yo.object(u.agent)){D.agent={...u.agent}}if(Yo.object(u.headers)){D.headers={...u.headers}}if(Yo.object(C)){D.retry={...C};if(Yo.array(C.errorCodes)){D.retry.errorCodes=[...C.errorCodes]}if(Yo.array(C.methods)){D.retry.methods=[...C.methods]}if(Yo.array(C.statusCodes)){D.retry.statusCodes=[...C.statusCodes]}}if(Yo.object(u.timeout)){D.timeout={...u.timeout}}if(Yo.object(y)){D.hooks={...y};if(Yo.array(y.init)){D.hooks.init=[...y.init]}if(Yo.array(y.beforeRequest)){D.hooks.beforeRequest=[...y.beforeRequest]}if(Yo.array(y.beforeError)){D.hooks.beforeError=[...y.beforeError]}if(Yo.array(y.beforeRedirect)){D.hooks.beforeRedirect=[...y.beforeRedirect]}if(Yo.array(y.beforeRetry)){D.hooks.beforeRetry=[...y.beforeRetry]}if(Yo.array(y.beforeCache)){D.hooks.beforeCache=[...y.beforeCache]}if(Yo.array(y.afterResponse)){D.hooks.afterResponse=[...y.afterResponse]}}if(u.searchParams){if(Yo.string(u.searchParams)){D.searchParams=u.searchParams}else if(u.searchParams instanceof URLSearchParams){D.searchParams=new URLSearchParams(u.searchParams)}else if(Yo.object(u.searchParams)){D.searchParams={...u.searchParams}}}if(Yo.object(u.pagination)){D.pagination={...u.pagination}}return D};const getHttp2TimeoutOption=u=>{const y=[u.timeout.socket,u.timeout.connect,u.timeout.lookup,u.timeout.request,u.timeout.secureConnect].filter((u=>typeof u==="number"));if(y.length>0){return Math.min(...y)}return undefined};const init=(u,y,C)=>{const D=u.hooks?.init;if(D){for(const u of D){u(y,C)}}};class Options{_unixOptions;_internals;_merging=false;_init;constructor(u,y,C){options_assertAny("input",[Yo.string,Yo.urlInstance,Yo.object,Yo.undefined],u);options_assertAny("options",[Yo.object,Yo.undefined],y);options_assertAny("defaults",[Yo.object,Yo.undefined],C);if(u instanceof Options||y instanceof Options){throw new TypeError("The defaults must be passed as the third argument")}this._internals=cloneInternals(C?._internals??C??Hl);this._init=[...C?._init??[]];try{if(Yo.plainObject(u)){try{this.merge(u);this.merge(y)}finally{this.url=u.url}}else{try{this.merge(y)}finally{if(y?.url!==undefined){if(u===undefined){this.url=y.url}else{throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}}else if(u!==undefined){this.url=u}}}}catch(u){u.options=this;throw u}}merge(u){if(!u){return}if(u instanceof Options){const y=[...u._init];for(const u of y){this.merge(u)}return}u=cloneRaw(u);init(this,u,this);init(u,u,this);this._merging=true;if("isStream"in u){this.isStream=u.isStream}try{let y=false;for(const C in u){if(C==="mutableDefaults"||C==="handlers"){continue}if(C==="url"){continue}if(C==="preserveHooks"){continue}if(!(C in this)){throw new Error(`Unexpected option: ${C}`)}const D=u[C];if(D===undefined){continue}this[C]=D;y=true}if(y){this._init.push(u)}}finally{this._merging=false}}get request(){return this._internals.request}set request(u){options_assertAny("request",[Yo.function,Yo.undefined],u);this._internals.request=u}get agent(){return this._internals.agent}set agent(u){options_assertPlainObject("agent",u);for(const y in u){if(!(y in this._internals.agent)){throw new TypeError(`Unexpected agent option: ${y}`)}options_assertAny(`agent.${y}`,[Yo.object,Yo.undefined,u=>u===false],u[y])}if(this._merging){Object.assign(this._internals.agent,u)}else{this._internals.agent={...u}}}get h2session(){return this._internals.h2session}set h2session(u){this._internals.h2session=u}get decompress(){return this._internals.decompress}set decompress(u){Vo.boolean(u);this._internals.decompress=u}get timeout(){return this._internals.timeout}set timeout(u){options_assertPlainObject("timeout",u);for(const y in u){if(!(y in this._internals.timeout)){throw new Error(`Unexpected timeout option: ${y}`)}options_assertAny(`timeout.${y}`,[Yo.number,Yo.undefined],u[y])}if(this._merging){Object.assign(this._internals.timeout,u)}else{this._internals.timeout={...u}}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(u){options_assertAny("prefixUrl",[Yo.string,Yo.urlInstance],u);if(u===""){this._internals.prefixUrl="";return}u=u.toString();if(!u.endsWith("/")){u+="/"}if(this._internals.prefixUrl&&this._internals.url){const{href:y}=this._internals.url;this._internals.url.href=u+y.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=u}get body(){return this._internals.body}set body(u){options_assertAny("body",[Yo.string,Yo.buffer,Yo.nodeStream,Yo.generator,Yo.asyncGenerator,Yo.iterable,Yo.asyncIterable,lib_isFormData,Yo.typedArray,Yo.undefined],u);if(Yo.nodeStream(u)){Vo.truthy(u.readable)}if(u!==undefined){Vo.undefined(this._internals.form);Vo.undefined(this._internals.json)}this._internals.body=u}get form(){return this._internals.form}set form(u){options_assertAny("form",[Yo.plainObject,Yo.undefined],u);if(u!==undefined){Vo.undefined(this._internals.body);Vo.undefined(this._internals.json)}this._internals.form=u}get json(){return this._internals.json}set json(u){if(u!==undefined){Vo.undefined(this._internals.body);Vo.undefined(this._internals.form)}this._internals.json=u}get url(){return this._internals.url}set url(u){options_assertAny("url",[Yo.string,Yo.urlInstance,Yo.undefined],u);if(u===undefined){this._internals.url=undefined;return}if(Yo.string(u)&&u.startsWith("/")){throw new Error("`url` must not start with a slash")}const y=u.toString();const C=Yo.urlInstance(u)||/^[a-z][a-z\d+.-]*:\/\//i.test(y);const D=C?y:`${this.prefixUrl}${y}`;const _=new URL(D);this._internals.url=_;if(_.protocol==="unix:"){_.href=`http://unix${_.pathname}${_.search}`}if(_.protocol!=="http:"&&_.protocol!=="https:"){const u=new Error(`Unsupported protocol: ${_.protocol}`);u.code="ERR_UNSUPPORTED_PROTOCOL";throw u}if(this._internals.username){_.username=this._internals.username;this._internals.username=""}if(this._internals.password){_.password=this._internals.password;this._internals.password=""}if(this._internals.searchParams){_.search=this._internals.searchParams.toString();this._internals.searchParams=undefined}if(_.hostname==="unix"){if(!this._internals.enableUnixSockets){throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled")}const u=/(?<socketPath>.+?):(?<path>.+)/.exec(`${_.pathname}${_.search}`);if(u?.groups){const{socketPath:y,path:C}=u.groups;this._unixOptions={socketPath:y,path:C,host:""}}else{this._unixOptions=undefined}return}this._unixOptions=undefined}get cookieJar(){return this._internals.cookieJar}set cookieJar(u){options_assertAny("cookieJar",[Yo.object,Yo.undefined],u);if(u===undefined){this._internals.cookieJar=undefined;return}let{setCookie:y,getCookieString:C}=u;Vo.function(y);Vo.function(C);if(y.length===4&&C.length===0){y=(0,cn.promisify)(y.bind(u));C=(0,cn.promisify)(C.bind(u));this._internals.cookieJar={setCookie:y,getCookieString:C}}else{this._internals.cookieJar=u}}get signal(){return this._internals.signal}set signal(u){Vo.object(u);this._internals.signal=u}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(u){Vo.boolean(u);this._internals.ignoreInvalidCookies=u}get searchParams(){if(this._internals.url){return this._internals.url.searchParams}if(this._internals.searchParams===undefined){this._internals.searchParams=new URLSearchParams}return this._internals.searchParams}set searchParams(u){options_assertAny("searchParams",[Yo.string,Yo.object,Yo.undefined],u);const y=this._internals.url;if(u===undefined){this._internals.searchParams=undefined;if(y){y.search=""}return}const C=this.searchParams;let D;if(Yo.string(u)){D=new URLSearchParams(u)}else if(u instanceof URLSearchParams){D=u}else{validateSearchParameters(u);D=new URLSearchParams;for(const y in u){const _=u[y];if(_===null){D.append(y,"")}else if(_===undefined){C.delete(y)}else{D.append(y,_)}}}if(this._merging){for(const u of D.keys()){C.delete(u)}for(const[u,y]of D){C.append(u,y)}}else if(y){y.search=C.toString()}else{this._internals.searchParams=C}}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(u){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(u){options_assertAny("dnsLookup",[Yo.function,Yo.undefined],u);this._internals.dnsLookup=u}get dnsCache(){return this._internals.dnsCache}set dnsCache(u){options_assertAny("dnsCache",[Yo.object,Yo.boolean,Yo.undefined],u);if(u===true){this._internals.dnsCache=getGlobalDnsCache()}else if(u===false){this._internals.dnsCache=undefined}else{this._internals.dnsCache=u}}get context(){return this._internals.context}set context(u){Vo.object(u);if(this._merging){Object.assign(this._internals.context,u)}else{this._internals.context={...u}}}get hooks(){return this._internals.hooks}set hooks(u){Vo.object(u);for(const y in u){if(!(y in this._internals.hooks)){throw new Error(`Unexpected hook event: ${y}`)}const C=y;const D=u[C];options_assertAny(`hooks.${y}`,[Yo.array,Yo.undefined],D);if(D){for(const u of D){Vo.function(u)}}if(this._merging){if(D){this._internals.hooks[C].push(...D)}}else{if(!D){throw new Error(`Missing hook event: ${y}`)}this._internals.hooks[y]=[...D]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(u){options_assertAny("followRedirect",[Yo.boolean,Yo.function],u);this._internals.followRedirect=u}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(u){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(u){Vo.number(u);this._internals.maxRedirects=u}get cache(){return this._internals.cache}set cache(u){options_assertAny("cache",[Yo.object,Yo.string,Yo.boolean,Yo.undefined],u);if(u===true){this._internals.cache=Ml}else if(u===false){this._internals.cache=undefined}else{this._internals.cache=wrapQuickLruIfNeeded(u)}}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(u){Vo.boolean(u);this._internals.throwHttpErrors=u}get username(){const u=this._internals.url;const y=u?u.username:this._internals.username;return decodeURIComponent(y)}set username(u){Vo.string(u);const y=this._internals.url;const C=encodeURIComponent(u);if(y){y.username=C}else{this._internals.username=C}}get password(){const u=this._internals.url;const y=u?u.password:this._internals.password;return decodeURIComponent(y)}set password(u){Vo.string(u);const y=this._internals.url;const C=encodeURIComponent(u);if(y){y.password=C}else{this._internals.password=C}}get http2(){return this._internals.http2}set http2(u){Vo.boolean(u);this._internals.http2=u}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(u){Vo.boolean(u);this._internals.allowGetBody=u}get copyPipedHeaders(){return this._internals.copyPipedHeaders}set copyPipedHeaders(u){Vo.boolean(u);this._internals.copyPipedHeaders=u}get headers(){return this._internals.headers}set headers(u){options_assertPlainObject("headers",u);if(this._merging){Object.assign(this._internals.headers,lowercaseKeys(u))}else{this._internals.headers=lowercaseKeys(u)}}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(u){Vo.boolean(u);this._internals.methodRewriting=u}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(u){if(u!==undefined&&u!==4&&u!==6){throw new TypeError(`Invalid DNS lookup IP version: ${u}`)}this._internals.dnsLookupIpVersion=u}get parseJson(){return this._internals.parseJson}set parseJson(u){Vo.function(u);this._internals.parseJson=u}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(u){Vo.function(u);this._internals.stringifyJson=u}get retry(){return this._internals.retry}set retry(u){options_assertPlainObject("retry",u);options_assertAny("retry.calculateDelay",[Yo.function,Yo.undefined],u.calculateDelay);options_assertAny("retry.maxRetryAfter",[Yo.number,Yo.undefined],u.maxRetryAfter);options_assertAny("retry.limit",[Yo.number,Yo.undefined],u.limit);options_assertAny("retry.methods",[Yo.array,Yo.undefined],u.methods);options_assertAny("retry.statusCodes",[Yo.array,Yo.undefined],u.statusCodes);options_assertAny("retry.errorCodes",[Yo.array,Yo.undefined],u.errorCodes);options_assertAny("retry.noise",[Yo.number,Yo.undefined],u.noise);options_assertAny("retry.enforceRetryRules",[Yo.boolean,Yo.undefined],u.enforceRetryRules);if(u.noise&&Math.abs(u.noise)>100){throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${u.noise}`)}for(const y in u){if(!(y in this._internals.retry)){throw new Error(`Unexpected retry option: ${y}`)}}if(this._merging){Object.assign(this._internals.retry,u)}else{this._internals.retry={...u}}const{retry:y}=this._internals;y.methods=[...new Set(y.methods.map((u=>u.toUpperCase())))];y.statusCodes=[...new Set(y.statusCodes)];y.errorCodes=[...new Set(y.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(u){options_assertAny("localAddress",[Yo.string,Yo.undefined],u);this._internals.localAddress=u}get method(){return this._internals.method}set method(u){Vo.string(u);this._internals.method=u.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(u){options_assertAny("createConnection",[Yo.function,Yo.undefined],u);this._internals.createConnection=u}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(u){options_assertPlainObject("cacheOptions",u);options_assertAny("cacheOptions.shared",[Yo.boolean,Yo.undefined],u.shared);options_assertAny("cacheOptions.cacheHeuristic",[Yo.number,Yo.undefined],u.cacheHeuristic);options_assertAny("cacheOptions.immutableMinTimeToLive",[Yo.number,Yo.undefined],u.immutableMinTimeToLive);options_assertAny("cacheOptions.ignoreCargoCult",[Yo.boolean,Yo.undefined],u.ignoreCargoCult);for(const y in u){if(!(y in this._internals.cacheOptions)){throw new Error(`Cache option \`${y}\` does not exist`)}}if(this._merging){Object.assign(this._internals.cacheOptions,u)}else{this._internals.cacheOptions={...u}}}get https(){return this._internals.https}set https(u){options_assertPlainObject("https",u);options_assertAny("https.rejectUnauthorized",[Yo.boolean,Yo.undefined],u.rejectUnauthorized);options_assertAny("https.checkServerIdentity",[Yo.function,Yo.undefined],u.checkServerIdentity);options_assertAny("https.serverName",[Yo.string,Yo.undefined],u.serverName);options_assertAny("https.certificateAuthority",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.certificateAuthority);options_assertAny("https.key",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.key);options_assertAny("https.certificate",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.certificate);options_assertAny("https.passphrase",[Yo.string,Yo.undefined],u.passphrase);options_assertAny("https.pfx",[Yo.string,Yo.buffer,Yo.array,Yo.undefined],u.pfx);options_assertAny("https.alpnProtocols",[Yo.array,Yo.undefined],u.alpnProtocols);options_assertAny("https.ciphers",[Yo.string,Yo.undefined],u.ciphers);options_assertAny("https.dhparam",[Yo.string,Yo.buffer,Yo.undefined],u.dhparam);options_assertAny("https.signatureAlgorithms",[Yo.string,Yo.undefined],u.signatureAlgorithms);options_assertAny("https.minVersion",[Yo.string,Yo.undefined],u.minVersion);options_assertAny("https.maxVersion",[Yo.string,Yo.undefined],u.maxVersion);options_assertAny("https.honorCipherOrder",[Yo.boolean,Yo.undefined],u.honorCipherOrder);options_assertAny("https.tlsSessionLifetime",[Yo.number,Yo.undefined],u.tlsSessionLifetime);options_assertAny("https.ecdhCurve",[Yo.string,Yo.undefined],u.ecdhCurve);options_assertAny("https.certificateRevocationLists",[Yo.string,Yo.buffer,Yo.array,Yo.undefined],u.certificateRevocationLists);options_assertAny("https.secureOptions",[Yo.number,Yo.undefined],u.secureOptions);for(const y in u){if(!(y in this._internals.https)){throw new Error(`HTTPS option \`${y}\` does not exist`)}}if(this._merging){Object.assign(this._internals.https,u)}else{this._internals.https={...u}}}get encoding(){return this._internals.encoding}set encoding(u){if(u===null){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}options_assertAny("encoding",[Yo.string,Yo.undefined],u);this._internals.encoding=u}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(u){Vo.boolean(u);this._internals.resolveBodyOnly=u}get isStream(){return this._internals.isStream}set isStream(u){Vo.boolean(u);this._internals.isStream=u}get responseType(){return this._internals.responseType}set responseType(u){if(u===undefined){this._internals.responseType="text";return}if(u!=="text"&&u!=="buffer"&&u!=="json"){throw new Error(`Invalid \`responseType\` option: ${u}`)}this._internals.responseType=u}get pagination(){return this._internals.pagination}set pagination(u){Vo.object(u);if(this._merging){Object.assign(this._internals.pagination,u)}else{this._internals.pagination=u}}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(u){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(u){Vo.boolean(u);this._internals.setHost=u}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(u){options_assertAny("maxHeaderSize",[Yo.number,Yo.undefined],u);this._internals.maxHeaderSize=u}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(u){Vo.boolean(u);this._internals.enableUnixSockets=u}get strictContentLength(){return this._internals.strictContentLength}set strictContentLength(u){Vo.boolean(u);this._internals.strictContentLength=u}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](u,y){return(0,cn.inspect)(this._internals,y)}createNativeRequestOptions(){const u=this._internals;const y=u.url;let C;if(y.protocol==="https:"){if(u.http2){C={...u.agent,http2:u.agent.http2??Tl.globalAgent}}else{C=u.agent.https}}else{C=u.agent.http}const{https:D}=u;let{pfx:_}=D;if(Yo.array(_)&&Yo.plainObject(_[0])){_=_.map((u=>({buf:u.buffer,passphrase:u.passphrase})))}return{...u.cacheOptions,...this._unixOptions,ALPNProtocols:D.alpnProtocols,ca:D.certificateAuthority,cert:D.certificate,key:D.key,passphrase:D.passphrase,pfx:D.pfx,rejectUnauthorized:D.rejectUnauthorized,checkServerIdentity:D.checkServerIdentity??wl.checkServerIdentity,servername:D.serverName,ciphers:D.ciphers,honorCipherOrder:D.honorCipherOrder,minVersion:D.minVersion,maxVersion:D.maxVersion,sigalgs:D.signatureAlgorithms,sessionTimeout:D.tlsSessionLifetime,dhparam:D.dhparam,ecdhCurve:D.ecdhCurve,crl:D.certificateRevocationLists,secureOptions:D.secureOptions,lookup:u.dnsLookup??u.dnsCache?.lookup,family:u.dnsLookupIpVersion,agent:C,setHost:u.setHost,method:u.method,maxHeaderSize:u.maxHeaderSize,localAddress:u.localAddress,headers:u.headers,createConnection:u.createConnection,timeout:u.http2?getHttp2TimeoutOption(u):undefined,h2session:u.h2session}}getRequestFunction(){const u=this._internals.url;const{request:y}=this._internals;if(!y&&u){return this.getFallbackRequestFunction()}return y}getFallbackRequestFunction(){const u=this._internals.url;if(!u){return}if(u.protocol==="https:"){if(this._internals.http2){if(Pl<15||Pl===15&&Ol<10){const u=new Error("To use the `http2` option, install Node.js 15.10.0 or above");u.code="EUNSUPPORTED";throw u}return Tl.auto}return Bl.request}return Zo.request}freeze(){const u=this._internals;Object.freeze(u);Object.freeze(u.hooks);Object.freeze(u.hooks.afterResponse);Object.freeze(u.hooks.beforeError);Object.freeze(u.hooks.beforeRedirect);Object.freeze(u.hooks.beforeRequest);Object.freeze(u.hooks.beforeRetry);Object.freeze(u.hooks.init);Object.freeze(u.https);Object.freeze(u.cacheOptions);Object.freeze(u.agent);Object.freeze(u.headers);Object.freeze(u.timeout);Object.freeze(u.retry);Object.freeze(u.retry.errorCodes);Object.freeze(u.retry.methods);Object.freeze(u.retry.statusCodes)}}const isResponseOk=u=>{const{statusCode:y}=u;const{followRedirect:C}=u.request.options;const D=typeof C==="function"?C(u):C;const _=D?299:399;return y>=200&&y<=_||y===304};class ParseError extends RequestError{name="ParseError";code="ERR_BODY_PARSE_FAILURE";constructor(u,y){const{options:C}=y.request;super(`${u.message} in "${C.url.toString()}"`,u,y.request)}}const parseBody=(u,y,C,D)=>{const{rawBody:_}=u;try{if(y==="text"){return _.toString(D)}if(y==="json"){return _.length===0?"":C(_.toString(D))}if(y==="buffer"){return _}}catch(y){throw new ParseError(y,u)}throw new ParseError({message:`Unknown body type '${y}'`,name:"Error"},u)};function isClientRequest(u){return u.writable&&!u.writableEnded}const Gl=isClientRequest;function isUnixSocketURL(u){return u.protocol==="unix:"||u.hostname==="unix"}function getUnixSocketPath(u){if(!isUnixSocketURL(u)){return undefined}return/(?<socketPath>.+?):(?<path>.+)/.exec(`${u.pathname}${u.search}`)?.groups?.socketPath}const Wl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:diagnostics_channel");const jl={requestCreate:Wl.channel("got:request:create"),requestStart:Wl.channel("got:request:start"),responseStart:Wl.channel("got:response:start"),responseEnd:Wl.channel("got:response:end"),retry:Wl.channel("got:request:retry"),error:Wl.channel("got:request:error"),redirect:Wl.channel("got:response:redirect")};function generateRequestId(){return(0,ra.randomUUID)()}function publishRequestCreate(u){if(jl.requestCreate.hasSubscribers){jl.requestCreate.publish(u)}}function publishRequestStart(u){if(jl.requestStart.hasSubscribers){jl.requestStart.publish(u)}}function publishResponseStart(u){if(jl.responseStart.hasSubscribers){jl.responseStart.publish(u)}}function publishResponseEnd(u){if(jl.responseEnd.hasSubscribers){jl.responseEnd.publish(u)}}function publishRetry(u){if(jl.retry.hasSubscribers){jl.retry.publish(u)}}function publishError(u){if(jl.error.hasSubscribers){jl.error.publish(u)}}function publishRedirect(u){if(jl.redirect.hasSubscribers){jl.redirect.publish(u)}}const zl=Yo.string(un.versions.brotli);const $l=Yo.string(un.versions.zstd);const ql=new Set(["GET","HEAD"]);const Vl=new Set(["OPTIONS","DELETE","PATCH"]);const Jl=new WeakableMap;const Kl=new Set([300,301,302,303,304,307,308]);const Yl=new WeakSet;const Xl=["socket","connect","continue","information","upgrade"];const core_noop=()=>{};class Request extends Pt.Duplex{["constructor"];_noPipe;options;response;requestUrl;redirectUrls=[];retryCount=0;_stopReading=false;_stopRetry=core_noop;_downloadedSize=0;_uploadedSize=0;_pipedServerResponses=new Set;_request;_responseSize;_bodySize;_unproxyEvents=core_noop;_isFromCache;_triggerRead=false;_jobs=[];_cancelTimeouts=core_noop;_removeListeners=core_noop;_nativeResponse;_flushed=false;_aborted=false;_expectedContentLength;_compressedBytesCount;_requestId=generateRequestId();_requestInitialized=false;constructor(u,y,C){super({autoDestroy:false,highWaterMark:0});this.on("pipe",(u=>{if(this.options.copyPipedHeaders&&u?.headers){Object.assign(this.options.headers,u.headers)}}));this.on("newListener",(u=>{if(u==="retry"&&this.listenerCount("retry")>0){throw new Error("A retry listener has been attached already.")}}));try{this.options=new Options(u,y,C);if(!this.options.url){if(this.options.prefixUrl===""){throw new TypeError("Missing `url` property")}this.options.url=""}this.requestUrl=this.options.url;publishRequestCreate({requestId:this._requestId,url:this.options.url?.toString()??"",method:this.options.method})}catch(u){const{options:y}=u;if(y){this.options=y}this.flush=async()=>{this.flush=async()=>{};un.nextTick((()=>{if(this.options){this._beforeError(u)}else{const y=u instanceof RequestError?u:new RequestError(u.message,u,this);this.destroy(y)}}))};return}const{body:D}=this.options;if(Yo.nodeStream(D)){D.once("error",(u=>{if(this._flushed){this._beforeError(new UploadError(u,this))}else{this.flush=async()=>{this.flush=async()=>{};this._beforeError(new UploadError(u,this))}}}))}if(this.options.signal){const abort=()=>{if(this.options.signal?.reason?.name==="TimeoutError"){this.destroy(new TimeoutError(this.options.signal.reason,this.timings,this))}else{this.destroy(new AbortError(this))}};if(this.options.signal.aborted){abort()}else{this.options.signal.addEventListener("abort",abort);this._removeListeners=()=>{this.options.signal?.removeEventListener("abort",abort)}}}}async flush(){if(this._flushed){return}this._flushed=true;try{await this._finalizeBody();if(this.destroyed){return}await this._makeRequest();if(this.destroyed){this._request?.destroy();return}for(const u of this._jobs){u()}this._jobs.length=0;this._requestInitialized=true}catch(u){this._beforeError(u)}}_beforeError(u){if(this._stopReading){return}const{response:y,options:C}=this;const D=this.retryCount+(u.name==="RetryError"?0:1);this._stopReading=true;if(!(u instanceof RequestError)){u=new RequestError(u.message,u,this)}const _=u;void(async()=>{if(y?.readable&&!y.rawBody&&!this._request?.socket?.destroyed){y.setEncoding(this.readableEncoding);const u=await this._setRawBody(y);if(u){y.body=y.rawBody.toString()}}if(this.listenerCount("retry")!==0){let j;try{let u;if(y&&"retry-after"in y.headers){u=Number(y.headers["retry-after"]);if(Number.isNaN(u)){u=Date.parse(y.headers["retry-after"])-Date.now();if(u<=0){u=1}}else{u*=1e3}}const $=C.retry;const ne=vl({attemptCount:D,retryOptions:$,error:_,retryAfter:u,computedValue:$.maxRetryAfter??C.timeout.request??Number.POSITIVE_INFINITY});if($.enforceRetryRules&&ne===0){j=0}else{j=await $.calculateDelay({attemptCount:D,retryOptions:$,error:_,retryAfter:u,computedValue:ne})}}catch(u){void this._error(new RequestError(u.message,u,this));return}if(j){await new Promise((u=>{const y=setTimeout(u,j);this._stopRetry=()=>{clearTimeout(y);u()}}));if(this.destroyed){return}const y=this.options.body;try{for(const u of this.options.hooks.beforeRetry){await u(_,this.retryCount+1)}}catch(u){void this._error(new RequestError(u.message,u,this));return}if(this.destroyed){return}const D=this.options.body;const $=y!==D;if($){const u=y;this.options.body=undefined;this.destroy();if(Yo.nodeStream(u)&&u!==D){u.destroy()}if(Yo.nodeStream(D)&&(D.readableEnded||D.destroyed)){throw new TypeError("The reassigned stream body must be readable. Ensure you provide a fresh, readable stream in the beforeRetry hook.")}this.options._internals.body=D}else{this.destroy()}publishRetry({requestId:this._requestId,retryCount:this.retryCount+1,error:_,delay:j});this.emit("retry",this.retryCount+1,u,(u=>{const y=new Request(C.url,u,C);y.retryCount=this.retryCount+1;un.nextTick((()=>{void y.flush()}));return y}));return}}void this._error(_)})()}_read(){this._triggerRead=true;const{response:u}=this;if(u&&!this._stopReading){if(u.readableLength){this._triggerRead=false}let y;while((y=u.read())!==null){this._downloadedSize+=y.length;const u=this.downloadProgress;if(u.percent<1){this.emit("downloadProgress",u)}this.push(y)}}}_write(u,y,C){const write=()=>{this._writeRequest(u,y,C)};if(this._requestInitialized){write()}else{this._jobs.push(write)}}_final(u){const endRequest=()=>{if(!this._request||this._request.destroyed){u();return}this._request.end((y=>{if(this._request?._writableState?.errored){return}if(!y){this._bodySize=this._uploadedSize;this.emit("uploadProgress",this.uploadProgress);this._request?.emit("upload-complete")}u(y)}))};if(this._requestInitialized){endRequest()}else{this._jobs.push(endRequest)}}_destroy(u,y){this._stopReading=true;this.flush=async()=>{};this._stopRetry();this._cancelTimeouts();this._removeListeners();if(this.options){const{body:u}=this.options;if(Yo.nodeStream(u)){u.destroy()}}if(this._request){this._request.destroy()}const C=this._request?.timings;if(C&&Yo.undefined(C.end)&&!Yo.undefined(C.response)&&Yo.undefined(C.error)&&Yo.undefined(C.abort)){C.end=Date.now();if(Yo.undefined(C.phases.total)){C.phases.download=C.end-C.response;C.phases.total=C.end-C.start}}if(u!==null&&!Yo.undefined(u)){const y=u instanceof Error&&Yl.has(u);if(!y&&!(u instanceof RequestError)){u=u instanceof Error?new RequestError(u.message,u,this):new RequestError(String(u),{},this)}}y(u)}pipe(u,y){if(u instanceof Zo.ServerResponse){this._pipedServerResponses.add(u)}return super.pipe(u,y)}unpipe(u){if(u instanceof Zo.ServerResponse){this._pipedServerResponses.delete(u)}super.unpipe(u);return this}_checkContentLengthMismatch(){if(this.options.strictContentLength&&this._expectedContentLength!==undefined){const u=this._compressedBytesCount??this._downloadedSize;if(u!==this._expectedContentLength){this._beforeError(new ReadError({message:`Content-Length mismatch: expected ${this._expectedContentLength} bytes, received ${u} bytes`,name:"Error",code:"ERR_HTTP_CONTENT_LENGTH_MISMATCH"},this));return true}}return false}async _finalizeBody(){const{options:u}=this;const{headers:y}=u;const C=!Yo.undefined(u.form);const D=!Yo.undefined(u.json);const _=!Yo.undefined(u.body);const j=ql.has(u.method)&&!(u.method==="GET"&&u.allowGetBody);if(C||D||_){if(j){throw new TypeError(`The \`${u.method}\` method cannot be used with a body`)}const D=!Yo.string(y["content-type"]);if(_){if(lib_isFormData(u.body)){const C=new yl(u.body);if(D){y["content-type"]=C.headers["Content-Type"]}if("Content-Length"in C.headers){y["content-length"]=C.headers["Content-Length"]}u.body=C.encode()}if(is_form_data_isFormData(u.body)&&D){y["content-type"]=`multipart/form-data; boundary=${u.body.getBoundary()}`}}else if(C){if(D){y["content-type"]="application/x-www-form-urlencoded"}const{form:C}=u;u.form=undefined;u.body=new URLSearchParams(C).toString()}else{if(D){y["content-type"]="application/json"}const{json:C}=u;u.json=undefined;u.body=u.stringifyJson(C)}const $=await getBodySize(u.body,u.headers);if(Yo.undefined(y["content-length"])&&Yo.undefined(y["transfer-encoding"])&&!j&&!Yo.undefined($)){y["content-length"]=String($)}}if(u.responseType==="json"&&!("accept"in u.headers)){u.headers.accept="application/json"}this._bodySize=Number(y["content-length"])||undefined}async _onResponseBase(u){if(this.isAborted){return}const{options:y}=this;const{url:C}=y;this._nativeResponse=u;const D=u.statusCode;const{method:_}=y;const j=_==="HEAD"||D>=100&&D<200||D===204||D===205||D===304;if(y.decompress&&!j){if(y.strictContentLength){this._compressedBytesCount=0;this._nativeResponse.on("data",(u=>{this._compressedBytesCount+=byteLength(u)}))}u=decompressResponse(u)}const $=u;$.statusMessage=$.statusMessage||Zo.STATUS_CODES[D];$.url=y.url.toString();$.requestUrl=this.requestUrl;$.redirectUrls=this.redirectUrls;$.request=this;$.isFromCache=this._nativeResponse.fromCache??false;$.ip=this.ip;$.retryCount=this.retryCount;$.ok=isResponseOk($);this._isFromCache=$.isFromCache;this._responseSize=Number(u.headers["content-length"])||undefined;this.response=$;publishResponseStart({requestId:this._requestId,url:$.url,statusCode:D,headers:u.headers,isFromCache:$.isFromCache});u.once("error",(y=>{this._aborted=true;u.destroy();this._beforeError(new ReadError(y,this))}));u.once("aborted",(()=>{this._aborted=true;if(!this._checkContentLengthMismatch()){this._beforeError(new ReadError({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}}));const ne=u.headers["set-cookie"];if(Yo.object(y.cookieJar)&&ne){let u=ne.map((async u=>y.cookieJar.setCookie(u,C.toString())));if(y.ignoreInvalidCookies){u=u.map((async u=>{try{await u}catch{}}))}try{await Promise.all(u)}catch(u){this._beforeError(u);return}}if(this.isAborted){return}if(u.headers.location&&Kl.has(D)){const _=typeof y.followRedirect==="function"?y.followRedirect($):y.followRedirect;if(_){u.resume();this._cancelTimeouts();this._unproxyEvents();if(this.redirectUrls.length>=y.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}this._request=undefined;this._downloadedSize=0;const _=new Options(undefined,undefined,this.options);const j=D===303&&_.method!=="GET"&&_.method!=="HEAD";const ne=D!==307&&D!==308;const oe=_.methodRewriting&&ne;if(j||oe){_.method="GET";_.body=undefined;_.json=undefined;_.form=undefined;delete _.headers["content-length"]}try{const y=zs.Buffer.from(u.headers.location,"binary").toString();const j=new URL(y,C);if(!isUnixSocketURL(C)&&isUnixSocketURL(j)){this._beforeError(new RequestError("Cannot redirect to UNIX socket",{},this));return}const ne=j.hostname!==C.hostname||j.port!==C.port||getUnixSocketPath(C)!==getUnixSocketPath(j);if(ne){if("host"in _.headers){delete _.headers.host}if("cookie"in _.headers){delete _.headers.cookie}if("authorization"in _.headers){delete _.headers.authorization}if(_.username||_.password){_.username="";_.password=""}}else{j.username=_.username;j.password=_.password}this.redirectUrls.push(j);_.url=j;for(const u of _.hooks.beforeRedirect){await u(_,$)}publishRedirect({requestId:this._requestId,fromUrl:C.toString(),toUrl:j.toString(),statusCode:D});this.emit("redirect",_,$);this.options=_;await this._makeRequest()}catch(u){this._beforeError(u);return}return}}if(y.isStream&&y.throwHttpErrors&&!isResponseOk($)){this._beforeError(new HTTPError($));return}const oe=u!==this._nativeResponse;if(!j&&(!oe||y.strictContentLength)){const u=this._nativeResponse.headers["content-length"];if(u!==undefined){const y=Number(u);if(!Number.isNaN(y)&&y>=0){this._expectedContentLength=y}}}u.once("end",(()=>{if(this._checkContentLengthMismatch()){return}this._responseSize=this._downloadedSize;this.emit("downloadProgress",this.downloadProgress);publishResponseEnd({requestId:this._requestId,url:$.url,statusCode:D,bodySize:this._downloadedSize,timings:this.timings});this.push(null)}));this.emit("downloadProgress",this.downloadProgress);u.on("readable",(()=>{if(this._triggerRead){this._read()}}));this.on("resume",(()=>{u.resume()}));this.on("pause",(()=>{u.pause()}));if(this._noPipe){const y=await this._setRawBody();if(y){this.emit("response",u)}return}this.emit("response",u);for(const y of this._pipedServerResponses){if(y.headersSent){continue}const C=u!==this._nativeResponse;for(const D in u.headers){if(Object.hasOwn(u.headers,D)){const _=u.headers[D];if(C&&(D==="content-encoding"||D==="content-length")){continue}if(_!==undefined){y.setHeader(D,_)}}}y.statusCode=D}}async _setRawBody(u=this){if(u.readableEnded){return false}try{const y=await u.toArray();const C=isBuffer(y.at(0))?zs.Buffer.concat(y):zs.Buffer.from(y.join(""));if(!this.isAborted){this.response.rawBody=C;return true}}catch{}return false}async _onResponse(u){try{await this._onResponseBase(u)}catch(u){this._beforeError(u)}}_onRequest(u){const{options:y}=this;const{timeout:C,url:D}=y;publishRequestStart({requestId:this._requestId,url:D?.toString()??"",method:y.method,headers:y.headers});Cl(u);this._cancelTimeouts=timedOut(u,C,D);if(this.options.http2){u.removeAllListeners("timeout");u.once("socket",(u=>{u.removeAllListeners("timeout")}))}const _=y.cache?"cacheableResponse":"response";u.once(_,(u=>{void this._onResponse(u)}));u.once("error",(y=>{this._aborted=true;u.destroy();y=y instanceof timed_out_TimeoutError?new TimeoutError(y,this.timings,this):new RequestError(y.message,y,this);this._beforeError(y)}));this._unproxyEvents=proxyEvents(u,this,Xl);this._request=u;this.emit("uploadProgress",this.uploadProgress);this._sendBody();this.emit("request",u)}async _asyncWrite(u){return new Promise(((y,C)=>{super.write(u,(u=>{if(u){C(u);return}y()}))}))}_sendBody(){const{body:u}=this.options;const y=this.redirectUrls.length===0?this:this._request??this;if(Yo.nodeStream(u)){u.pipe(y)}else if(Yo.buffer(u)){this._writeRequest(u,undefined,(()=>{}));y.end()}else if(Yo.typedArray(u)){const C=u;const D=new Uint8Array(C.buffer,C.byteOffset,C.byteLength);this._writeRequest(D,undefined,(()=>{}));y.end()}else if(Yo.asyncIterable(u)||Yo.iterable(u)&&!Yo.string(u)&&!isBuffer(u)){(async()=>{try{for await(const y of u){await this._asyncWrite(y)}super.end()}catch(u){this._beforeError(u)}})()}else if(Yo.undefined(u)){const u=ql.has(this.options.method)&&!(this.options.method==="GET"&&this.options.allowGetBody);const C=Vl.has(this.options.method);if((this._noPipe??false)||u||y!==this||C){y.end()}}else{this._writeRequest(u,undefined,(()=>{}));y.end()}}_prepareCache(u){if(Jl.has(u)){return}const y=new Ya(((u,y)=>{const C=y?C=>{const{beforeCacheHooks:D,gotRequest:_}=u;if(!D||D.length===0){y(C);return}try{for(const u of D){const D=u(C);if(D===false){C.headers["cache-control"]="no-cache, no-store, must-revalidate";C.headers.pragma="no-cache";C.headers.expires="0";y(C);return}if(Yo.promise(D)){throw new TypeError("beforeCache hooks must be synchronous. The hook returned a Promise, but this hook must return synchronously. If you need async logic, use beforeRequest hook instead.")}if(D!==undefined){throw new TypeError("beforeCache hook must return false or undefined. To modify the response, mutate it directly.")}}}catch(u){if(_){_._beforeError(u instanceof RequestError?u:new RequestError(u.message,u,_));return}console.error("Got: beforeCache hook error (request context unavailable):",u);y(C);return}y(C)}:y;const D=u._request(u,C);if(Yo.promise(D)){D.once=(u,y)=>{if(u==="error"){(async()=>{try{await D}catch(u){y(u)}})()}else if(u==="abort"||u==="destroy"){(async()=>{try{const C=await D;C.once(u,y)}catch{}})()}else{throw new Error(`Unknown HTTP2 promise event: ${u}`)}return D}}return D}),u);Jl.set(u,y.request())}async _createCacheableRequest(u,y){return new Promise(((C,D)=>{Object.assign(y,urlToOptions(u));let _;const j=Jl.get(y.cache)(y,(async u=>{u._readableState.autoDestroy=false;if(_){const fix=()=>{if(u.req){u.complete=u.req.res.complete}else if(u.complete===undefined){u.complete=true}};u.prependOnceListener("end",fix);fix();(await _).emit("cacheableResponse",u)}C(u)}));j.once("error",D);j.once("request",(async u=>{_=u;C(_)}))}))}async _makeRequest(){const{options:u}=this;const{headers:y,username:C,password:D}=u;const _=u.cookieJar;for(const u in y){if(Yo.undefined(y[u])){delete y[u]}else if(Yo.null(y[u])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${u}\` header`)}}if(u.decompress&&Yo.undefined(y["accept-encoding"])){const u=["gzip","deflate"];if(zl){u.push("br")}if($l){u.push("zstd")}y["accept-encoding"]=u.join(", ")}if(C||D){const u=zs.Buffer.from(`${C}:${D}`).toString("base64");y.authorization=`Basic ${u}`}if(_){const C=await _.getCookieString(u.url.toString());if(Yo.nonEmptyString(C)){y.cookie=C}}let j;for(const y of u.hooks.beforeRequest){const C=await y(u,{retryCount:this.retryCount});if(!Yo.undefined(C)){j=()=>C;break}}j||=u.getRequestFunction();const $=u.url;this._requestOptions=u.createNativeRequestOptions();if(u.cache){this._requestOptions._request=j;this._requestOptions.cache=u.cache;this._requestOptions.body=u.body;this._requestOptions.beforeCacheHooks=u.hooks.beforeCache;this._requestOptions.gotRequest=this;try{this._prepareCache(u.cache)}catch(u){throw new CacheError(u,this)}}const ne=u.cache?this._createCacheableRequest:j;try{let y=ne($,this._requestOptions);if(Yo.promise(y)){y=await y}if(Yo.undefined(y)){y=u.getFallbackRequestFunction()($,this._requestOptions);if(Yo.promise(y)){y=await y}}if(Gl(y)){this._onRequest(y)}else if(this.writableEnded){void this._onResponse(y)}else{this.once("finish",(()=>{void this._onResponse(y)}));this._sendBody()}}catch(u){if(u instanceof types_CacheError){throw new CacheError(u,this)}throw u}}async _error(u){try{if(this.options&&u instanceof HTTPError&&!this.options.throwHttpErrors){}else if(this.options){const y=this.options.hooks.beforeError;if(y.length>0){for(const C of y){u=await C(u);if(!(u instanceof Error)){throw new TypeError(`The \`beforeError\` hook must return an Error instance. Received ${Yo.string(u)?"string":String(typeof u)}.`)}}if(!(u instanceof RequestError)){Yl.add(u)}}}}catch(y){u=new RequestError(y.message,y,this)}publishError({requestId:this._requestId,url:this.options?.url?.toString()??"",error:u,timings:this.timings});this.destroy(u);if(this._noPipe){un.nextTick((()=>{this.emit("error",u)}))}}_writeRequest(u,y,C){if(!this._request||this._request.destroyed){C();return}this._request.write(u,y,(D=>{if(!D&&!this._request.destroyed){const C=typeof u==="string"?zs.Buffer.from(u,y):u;this._uploadedSize+=byteLength(C);const D=this.uploadProgress;if(D.percent<1){this.emit("uploadProgress",D)}}C(D)}))}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??undefined}get downloadProgress(){let u;if(this._responseSize){u=this._downloadedSize/this._responseSize}else if(this._responseSize===this._downloadedSize){u=1}else{u=0}return{percent:u,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let u;if(this._bodySize){u=this._uploadedSize/this._bodySize}else if(this._bodySize===this._uploadedSize){u=1}else{u=0}return{percent:u,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}get isReadonly(){return!Yo.undefined(this.options?.body)||!Yo.undefined(this.options?.json)||!Yo.undefined(this.options?.form)}}class types_CancelError extends RequestError{constructor(u){super("Promise was canceled",{},u);this.name="CancelError";this.code="ERR_CANCELED"}get isCanceled(){return true}}const Zl=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(u){let y;let C;let D;const _=new Tt.EventEmitter;let j=false;const $=new PCancelable(((ne,oe,le)=>{le((()=>{y.destroy()}));le.shouldReject=false;le((()=>{j=true;oe(new types_CancelError(y))}));const makeRequest=de=>{le((()=>{}));const Ae=u??new Request(undefined,undefined,D);Ae.retryCount=de;Ae._noPipe=true;y=Ae;Ae.once("response",(async u=>{const y=(u.headers["content-encoding"]??"").toLowerCase();const D=y==="gzip"||y==="deflate"||y==="br"||y==="zstd";const{options:_}=Ae;if(D&&!_.decompress){u.body=u.rawBody}else{try{u.body=parseBody(u,_.responseType,_.parseJson,_.encoding)}catch(y){try{u.body=u.rawBody.toString()}catch(y){Ae._beforeError(new ParseError(y,u));return}if(isResponseOk(u)){Ae._beforeError(y);return}}}try{const y=_.hooks.afterResponse;for(const[C,D]of y.entries()){u=await D(u,(async u=>{const y=u.preserveHooks??false;_.merge(u);_.prefixUrl="";if(u.url){_.url=u.url}if(!y){_.hooks.afterResponse=_.hooks.afterResponse.slice(0,C)}throw new RetryError(Ae)}));if(!(Yo.object(u)&&Yo.number(u.statusCode)&&"body"in u)){throw new TypeError("The `afterResponse` hook returned an invalid value")}}}catch(u){Ae._beforeError(u);return}C=u;if(!isResponseOk(u)){Ae._beforeError(new HTTPError(u));return}Ae.destroy();j=true;ne(Ae.options.resolveBodyOnly?u.body:u)}));let pe=false;const onError=u=>{if($.isCanceled){return}if(!Ae._stopReading){Ae._beforeError(u);return}if(pe){return}pe=true;j=true;const{options:y}=Ae;if(u instanceof HTTPError&&!y.throwHttpErrors){const{response:y}=u;Ae.destroy();ne(Ae.options.resolveBodyOnly?y.body:y);return}oe(u)};Ae.on("error",onError);const Ee=Ae.options?.body;Ae.once("retry",((y,C)=>{u=undefined;if(j){return}const _=Ae.options.body;if(Ee===_&&Yo.nodeStream(_)){C.message="Cannot retry with consumed body stream";onError(C);return}D=Ae.options;makeRequest(y)}));proxyEvents(Ae,_,Zl);if(Yo.undefined(u)){void Ae.flush()}};makeRequest(0)}));$.on=(u,y)=>{_.on(u,y);return $};$.off=(u,y)=>{_.off(u,y);return $};const shortcut=(u,y)=>{const D=(async()=>{await u;const{options:D}=C.request;return parseBody(C,y,D.parseJson,D.encoding)})();Object.defineProperties(D,Object.getOwnPropertyDescriptors(u));return D};$.json=function(){if(y.options){const{headers:u}=y.options;if(!y.writableFinished&&!("accept"in u)){u.accept="application/json"}}return shortcut(this,"json")};$.buffer=function(){return shortcut(this,"buffer")};$.text=function(){return shortcut(this,"text")};return $}const isGotInstance=u=>Yo.function(u);const tc=["get","post","put","patch","head","delete"];const create=u=>{u={options:new Options(undefined,undefined,u.options),handlers:[...u.handlers],mutableDefaults:u.mutableDefaults};Object.defineProperty(u,"mutableDefaults",{enumerable:true,configurable:false,writable:false});const got=(y,C,D=u.options)=>{const _=new Request(y,C,D);let j;const lastHandler=u=>{_.options=u;_._noPipe=!u?.isStream;void _.flush();if(u?.isStream){return _}j||=asPromise(_);return j};let $=0;const iterateHandlers=y=>{const C=u.handlers[$++]??lastHandler;const D=C(y,iterateHandlers);if(Yo.promise(D)&&!_.options?.isStream){j||=asPromise(_);if(D!==j){const u=Object.getOwnPropertyDescriptors(j);for(const y in u){if(y in D){delete u[y]}}Object.defineProperties(D,u);D.cancel=j.cancel}}return D};return iterateHandlers(_.options)};got.extend=(...y)=>{const C=new Options(undefined,undefined,u.options);const D=[...u.handlers];let _;for(const u of y){if(isGotInstance(u)){C.merge(u.defaults.options);D.push(...u.defaults.handlers);_=u.defaults.mutableDefaults}else{C.merge(u);if(u.handlers){D.push(...u.handlers)}_=u.mutableDefaults}}return create({options:C,handlers:D,mutableDefaults:Boolean(_)})};const paginateEach=async function*(y,C){let D=new Options(y,C,u.options);D.resolveBodyOnly=false;const{pagination:_}=D;Vo.function(_.transform);Vo.function(_.shouldContinue);Vo.function(_.filter);Vo.function(_.paginate);Vo.number(_.countLimit);Vo.number(_.requestLimit);Vo.number(_.backoff);const j=[];let{countLimit:$}=_;let ne=0;while(ne<_.requestLimit){if(ne!==0){await(0,Mi.setTimeout)(_.backoff)}const u=await got(undefined,undefined,D);const y=await _.transform(u);const C=[];Vo.array(y);for(const u of y){if(_.filter({item:u,currentItems:C,allItems:j})){if(!_.shouldContinue({item:u,currentItems:C,allItems:j})){return}yield u;if(_.stackAllItems){j.push(u)}C.push(u);if(--$<=0){return}}}const oe=_.paginate({response:u,currentItems:C,allItems:j});if(oe===false){return}if(oe===u.request.options){D=u.request.options}else{D.merge(oe);try{Vo.any([Yo.urlInstance,Yo.undefined],oe.url)}catch(u){if(u instanceof Error){u.message=`Option 'pagination.paginate.url': ${u.message}`}throw u}if(oe.url!==undefined){D.prefixUrl="";D.url=oe.url}}ne++}};got.paginate=paginateEach;got.paginate.all=async(u,y)=>{const C=[];for await(const D of paginateEach(u,y)){C.push(D)}return C};got.paginate.each=paginateEach;got.stream=(u,y)=>got(u,{...y,isStream:true});for(const u of tc){got[u]=(y,C)=>got(y,{...C,method:u});got.stream[u]=(y,C)=>got(y,{...C,method:u,isStream:true})}if(!u.mutableDefaults){Object.freeze(u.handlers);u.options.freeze()}Object.defineProperty(got,"defaults",{value:u,writable:false,configurable:false,enumerable:true});return got};const ac=create;const lc={options:new Options,handlers:[],mutableDefaults:false};const uc=ac(lc);const fc=uc;var dc=C(887);const hc=Zr.homedir();const{env:gc}=process;const bc=gc.XDG_DATA_HOME||(hc?j.join(hc,".local","share"):undefined);const vc=gc.XDG_CONFIG_HOME||(hc?j.join(hc,".config"):undefined);const wc=gc.XDG_STATE_HOME||(hc?j.join(hc,".local","state"):undefined);const Sc=gc.XDG_CACHE_HOME||(hc?j.join(hc,".cache"):undefined);const kc=gc.XDG_RUNTIME_DIR||undefined;const Qc=(gc.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");if(bc){Qc.unshift(bc)}const xc=(gc.XDG_CONFIG_DIRS||"/etc/xdg").split(":");if(vc){xc.unshift(vc)}const{mkdir:_c,createWriteStream:Rc,move:Lc}=Oo;const Nc=(0,xt.dirname)((0,vt.fileURLToPath)(import.meta.url));const Pc=`microsoft/ripgrep-prebuilt`;const Oc=process.env.RIPGREP_VERSION||"v13.0.0-10";const Mc=(0,xt.join)(Nc,"../bin");const getTarget=()=>{const u=process.env.npm_config_arch||Hi.arch();const y=process.env.platform||Hi.platform();switch(y){case"darwin":switch(u){case"arm64":return"aarch64-apple-darwin.tar.gz";default:return"x86_64-apple-darwin.tar.gz"}case"win32":switch(u){case"x64":return"x86_64-pc-windows-msvc.zip";case"arm":return"aarch64-pc-windows-msvc.zip";default:return"i686-pc-windows-msvc.zip"}case"linux":switch(u){case"x64":return"x86_64-unknown-linux-musl.tar.gz";case"arm":case"armv7l":return"arm-unknown-linux-gnueabihf.tar.gz";case"arm64":return"aarch64-unknown-linux-gnu.tar.gz";case"ppc64":return"powerpc64le-unknown-linux-gnu.tar.gz";case"s390x":return"s390x-unknown-linux-gnu.tar.gz";default:return"i686-unknown-linux-musl.tar.gz"}default:throw new VError("Unknown platform: "+y)}};const downloadFile=async(u,y)=>{let C=undefined;try{C=await Oo.mkdtemp(j.join(Hi.tmpdir(),"download-ripgrep"));const D=j.join(C,"tmp-file");await(0,Ys.pipeline)(fc.stream(u),Rc(D));await _c((0,xt.dirname)(y),{recursive:true});await Lc(D,y)}catch(y){throw new VError(y,`Failed to download "${u}"`)}finally{if(C){await Oo.rm(C,{recursive:true,force:true})}}};const unzip=async(u,y)=>{try{await _c(y,{recursive:true});await Po(u,{dir:y})}catch(y){throw new VError(y,`Failed to unzip "${u}"`)}};const untarGz=async(u,y)=>{try{await _c(y,{recursive:true});await So("tar",["xvf",u,"-C",y])}catch(y){throw new VError(y,`Failed to extract "${u}"`)}};const downloadRipGrep=async u=>{const y=getTarget();const C=`https://github.com/${Pc}/releases/download/${Oc}/ripgrep-${Oc}-${y}`;const D=`${Sc}/vscode-ripgrep/ripgrep-${Oc}-${y}`;const _=u??Mc;if(!await(0,dc.s)(D)){await downloadFile(C,D)}else{console.info(`File ${D} has been cached`)}if(D.endsWith(".tar.gz")){await untarGz(D,_)}else if(D.endsWith(".zip")){await unzip(D,_)}else{throw new VError(`Invalid downloadPath ${D}`)}};const Wc=(0,xt.dirname)((0,vt.fileURLToPath)(import.meta.url));const jc=(0,xt.join)(Wc,"..","bin",`rg${process.platform==="win32"?".exe":""}`);const escapeRegex=u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const readGitignorePatterns=async()=>{try{const u=C.ab+"cli_executor/"+oe.$.WORKSPACE_DIR+"/.gitignore";const y=await(0,ne.readFile)(u,"utf-8");return y.split("\n").filter((u=>u.trim()&&!u.trim().startsWith("#"))).map((u=>u.trim())).map((u=>u.endsWith("/")?`${u}**`:u)).filter((u=>!u.startsWith(".codegen")))}catch{return[]}};const buildMatcher=(u,y,C)=>{const D=y?escapeRegex(u):u;const _=C?"g":"gi";return new RegExp(D,_)};const searchTextFallback=async u=>{const{pattern:y,dir_path:C=".",include:D,case_sensitive:_=false,fixed_strings:j,context:le}=u;const de=$().resolve(oe.$.WORKSPACE_DIR,C);const Ae=await readGitignorePatterns();const pe=await Yr(D||"**/*",{cwd:de,absolute:true,nodir:true,dot:false,ignore:Ae,nocase:!_});const Ee=buildMatcher(y,j,_);const Ce=[];for(const u of pe){let y;try{y=await(0,ne.readFile)(u,"utf-8")}catch{continue}const C=y.split(/\r?\n/);for(let y=0;y<C.length;y++){const D=C[y];if(D===undefined)continue;Ee.lastIndex=0;if(!Ee.test(D))continue;const _=le?Math.max(0,y-le):y;const j=le?Math.min(C.length-1,y+le):y;for(let y=_;y<=j;y++){const D=C[y];if(D===undefined)continue;Ce.push({file:$().relative(oe.$.WORKSPACE_DIR,u),line:y+1,content:D})}y=j}}return{matches:Ce}};const withSuppressedConsoleInfo=async u=>{const y=console.info;try{console.info=()=>{};return await u()}finally{console.info=y}};const ensureRipgrepAvailable=async()=>{try{const u=_t().mkdtempSync($().join(en().tmpdir(),"ripgrep-"));await withSuppressedConsoleInfo((()=>downloadRipGrep(u)));return $().join(u,"rg")}catch(u){return null}};const SearchText=async u=>{if(oe.$.DISABLE_RIPGREP){return await searchTextFallback(u)}const y=await ensureRipgrepAvailable();if(!y){return await searchTextFallback(u)}const{pattern:C,dir_path:D=".",include:_,case_sensitive:j,fixed_strings:ne,context:le}=u;const de=$().resolve(oe.$.WORKSPACE_DIR,D);const Ae=["--json"];if(!j){Ae.push("--ignore-case")}if(ne){Ae.push("--fixed-strings");Ae.push(C)}else{Ae.push("--regexp",C)}if(le){Ae.push("--context",le.toString())}if(_){Ae.push("--glob",_)}Ae.push(de);try{const u=await new Promise(((u,C)=>{const D=(0,Xr.spawn)(y,Ae,{windowsHide:true});const _=[];const j=[];D.stdout.on("data",(u=>_.push(u)));D.stderr.on("data",(u=>j.push(u)));D.on("error",(u=>C(u)));D.on("close",(y=>{if(y===0){u(Buffer.concat(_).toString("utf8"))}else if(y===1){u("")}else{C(new Error(`ripgrep exited with code ${y}: ${Buffer.concat(j).toString("utf8")}`))}}))}));const C=u.trim().split("\n").map((u=>{try{const y=JSON.parse(u);if(y.type==="match"){const u=y.data;return{file:$().relative(oe.$.WORKSPACE_DIR,u.path.text),line:u.line_number,content:u.lines.text.trimEnd()}}}catch{}return null})).filter(Boolean);return{matches:C}}catch{return await searchTextFallback(u)}};const WriteFile=async u=>{const{file_path:y,content:C}=u;if(!y){return{error:"Missing parameter: file_path must be provided."}}if(C===undefined){return{error:"Missing parameter: content must be provided."}}try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);const D=$().dirname(u);await(0,ne.mkdir)(D,{recursive:true});await(0,ne.writeFile)(u,C,"utf-8");return{success:true}}catch(u){return{error:u.message}}};const Edit=async u=>{const{file_path:y,old_string:C,new_string:D,expected_replacements:_=1}=u;if(!y){return{error:"Missing parameter: file_path must be provided."}}if(C===undefined){return{error:"Missing parameter: old_string must be provided."}}if(D===undefined){return{error:"Missing parameter: new_string must be provided."}}try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);let j="";try{j=await(0,ne.readFile)(u,"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}}const le=new RegExp(C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");let de=0;const Ae=j.replace(le,(()=>{de++;return D}));if(de!==_){return{error:`Expected ${_} replacements, but made ${de}.`}}await(0,ne.writeFile)(u,Ae,"utf-8");return{success:true,replacementsMade:de}}catch(u){return{error:u.message}}};const ReadManyFiles=async u=>{const{include:y,exclude:C=[]}=u;if(!y||y.length===0){return{error:"Missing parameter: include must be provided."}}try{const u=await Yr(y,{cwd:oe.$.WORKSPACE_DIR,ignore:C,nodir:true,absolute:true});let D="";for(const y of u){const u=await(0,ne.readFile)(y,"utf-8");D+=`--- ${$().relative(oe.$.WORKSPACE_DIR,y)} ---\n\n${u}\n\n`}D+="--- End of content ---";return{content:D}}catch(u){return{error:u.message}}};const SaveMemory=async u=>{const{fact:y}=u;if(!y){return{error:"Missing parameter: fact must be provided."}}const C=$().join(en().homedir(),".gemini","GEMINI.md");const D="## Gemini Added Memories";try{await _t().promises.mkdir($().dirname(C),{recursive:true});let u="";try{u=await(0,ne.readFile)(C,"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}}const _=`- ${y.trim()}`;let j="";if(u.includes(D)){j=u.replace(D,`${D}\n${_}`)}else{j=`${u}\n\n${D}\n${_}\n`}await(0,ne.writeFile)(C,j,"utf-8");return{success:true}}catch(u){return{error:u.message}}};var Vc;(function(u){u["Root"]="root";u["Text"]="text";u["Directive"]="directive";u["Comment"]="comment";u["Script"]="script";u["Style"]="style";u["Tag"]="tag";u["CDATA"]="cdata";u["Doctype"]="doctype"})(Vc||(Vc={}));function esm_isTag(u){return u.type===Vc.Tag||u.type===Vc.Script||u.type===Vc.Style}const Jc=Vc.Root;const Kc=Vc.Text;const Yc=Vc.Directive;const Xc=Vc.Comment;const eu=Vc.Script;const tu=Vc.Style;const ru=Vc.Tag;const nu=Vc.CDATA;const iu=Vc.Doctype;class Node{constructor(){this.parent=null;this.prev=null;this.next=null;this.startIndex=null;this.endIndex=null}get parentNode(){return this.parent}set parentNode(u){this.parent=u}get previousSibling(){return this.prev}set previousSibling(u){this.prev=u}get nextSibling(){return this.next}set nextSibling(u){this.next=u}cloneNode(u=false){return cloneNode(this,u)}}class DataNode extends Node{constructor(u){super();this.data=u}get nodeValue(){return this.data}set nodeValue(u){this.data=u}}class node_Text extends DataNode{constructor(){super(...arguments);this.type=Vc.Text}get nodeType(){return 3}}class node_Comment extends DataNode{constructor(){super(...arguments);this.type=Vc.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(u,y){super(y);this.name=u;this.type=Vc.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node{constructor(u){super();this.children=u}get firstChild(){var u;return(u=this.children[0])!==null&&u!==void 0?u:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(u){this.children=u}}class node_CDATA extends NodeWithChildren{constructor(){super(...arguments);this.type=Vc.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments);this.type=Vc.Root}get nodeType(){return 9}}class Element extends NodeWithChildren{constructor(u,y,C=[],D=(u==="script"?Vc.Script:u==="style"?Vc.Style:Vc.Tag)){super(C);this.name=u;this.attribs=y;this.type=D}get nodeType(){return 1}get tagName(){return this.name}set tagName(u){this.name=u}get attributes(){return Object.keys(this.attribs).map((u=>{var y,C;return{name:u,value:this.attribs[u],namespace:(y=this["x-attribsNamespace"])===null||y===void 0?void 0:y[u],prefix:(C=this["x-attribsPrefix"])===null||C===void 0?void 0:C[u]}}))}}function node_isTag(u){return esm_isTag(u)}function node_isCDATA(u){return u.type===Vc.CDATA}function node_isText(u){return u.type===Vc.Text}function node_isComment(u){return u.type===Vc.Comment}function isDirective(u){return u.type===Vc.Directive}function isDocument(u){return u.type===Vc.Root}function node_hasChildren(u){return Object.prototype.hasOwnProperty.call(u,"children")}function cloneNode(u,y=false){let C;if(node_isText(u)){C=new node_Text(u.data)}else if(node_isComment(u)){C=new node_Comment(u.data)}else if(node_isTag(u)){const D=y?cloneChildren(u.children):[];const _=new Element(u.name,{...u.attribs},D);D.forEach((u=>u.parent=_));if(u.namespace!=null){_.namespace=u.namespace}if(u["x-attribsNamespace"]){_["x-attribsNamespace"]={...u["x-attribsNamespace"]}}if(u["x-attribsPrefix"]){_["x-attribsPrefix"]={...u["x-attribsPrefix"]}}C=_}else if(node_isCDATA(u)){const D=y?cloneChildren(u.children):[];const _=new node_CDATA(D);D.forEach((u=>u.parent=_));C=_}else if(isDocument(u)){const D=y?cloneChildren(u.children):[];const _=new Document(D);D.forEach((u=>u.parent=_));if(u["x-mode"]){_["x-mode"]=u["x-mode"]}C=_}else if(isDirective(u)){const y=new ProcessingInstruction(u.name,u.data);if(u["x-name"]!=null){y["x-name"]=u["x-name"];y["x-publicId"]=u["x-publicId"];y["x-systemId"]=u["x-systemId"]}C=y}else{throw new Error(`Not implemented yet: ${u.type}`)}C.startIndex=u.startIndex;C.endIndex=u.endIndex;if(u.sourceCodeLocation!=null){C.sourceCodeLocation=u.sourceCodeLocation}return C}function cloneChildren(u){const y=u.map((u=>cloneNode(u,true)));for(let u=1;u<y.length;u++){y[u].prev=y[u-1];y[u-1].next=y[u]}return y}const su={withStartIndices:false,withEndIndices:false,xmlMode:false};class esm_DomHandler{constructor(u,y,C){this.dom=[];this.root=new Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null;if(typeof y==="function"){C=y;y=su}if(typeof u==="object"){y=u;u=undefined}this.callback=u!==null&&u!==void 0?u:null;this.options=y!==null&&y!==void 0?y:su;this.elementCB=C!==null&&C!==void 0?C:null}onparserinit(u){this.parser=u}onreset(){this.dom=[];this.root=new Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null}onend(){if(this.done)return;this.done=true;this.parser=null;this.handleCallback(null)}onerror(u){this.handleCallback(u)}onclosetag(){this.lastNode=null;const u=this.tagStack.pop();if(this.options.withEndIndices){u.endIndex=this.parser.endIndex}if(this.elementCB)this.elementCB(u)}onopentag(u,y){const C=this.options.xmlMode?Vc.Tag:undefined;const D=new Element(u,y,undefined,C);this.addNode(D);this.tagStack.push(D)}ontext(u){const{lastNode:y}=this;if(y&&y.type===Vc.Text){y.data+=u;if(this.options.withEndIndices){y.endIndex=this.parser.endIndex}}else{const y=new node_Text(u);this.addNode(y);this.lastNode=y}}oncomment(u){if(this.lastNode&&this.lastNode.type===Vc.Comment){this.lastNode.data+=u;return}const y=new node_Comment(u);this.addNode(y);this.lastNode=y}oncommentend(){this.lastNode=null}oncdatastart(){const u=new node_Text("");const y=new node_CDATA([u]);this.addNode(y);u.parent=y;this.lastNode=u}oncdataend(){this.lastNode=null}onprocessinginstruction(u,y){const C=new ProcessingInstruction(u,y);this.addNode(C)}handleCallback(u){if(typeof this.callback==="function"){this.callback(u,this.dom)}else if(u){throw u}}addNode(u){const y=this.tagStack[this.tagStack.length-1];const C=y.children[y.children.length-1];if(this.options.withStartIndices){u.startIndex=this.parser.startIndex}if(this.options.withEndIndices){u.endIndex=this.parser.endIndex}y.children.push(u);if(C){u.prev=C;C.next=u}u.parent=y;this.lastNode=null}}const ou=null&&esm_DomHandler;const au=/\n/g;function leac_n(u){const y=[...u.matchAll(au)].map((u=>u.index||0));y.unshift(-1);const C=t(y,0,y.length);return u=>r(C,u)}function t(u,y,C){if(C-y==1)return{offset:u[y],index:y+1};const D=Math.ceil((y+C)/2),_=t(u,y,D),j=t(u,D,C);return{offset:_.offset,low:_,high:j}}function r(u,y){return function(u){return Object.prototype.hasOwnProperty.call(u,"index")}(u)?{line:u.index,column:y-u.offset}:r(u.high.offset<y?u.high:u.low,y)}function leac_o(u,y="",C={}){const D="string"!=typeof y?y:C,_="string"==typeof y?y:"",j=u.map(s),$=!!D.lineNumbers;return function(u,y=0){const C=$?leac_n(u):()=>({line:0,column:0});let D=y;const ne=[];e:for(;D<u.length;){let y=!1;for(const $ of j){$.regex.lastIndex=D;const j=$.regex.exec(u);if(j&&j[0].length>0){if(!$.discard){const u=C(D),y="string"==typeof $.replace?j[0].replace(new RegExp($.regex.source,$.regex.flags),$.replace):j[0];ne.push({state:_,name:$.name,text:y,offset:D,len:j[0].length,line:u.line,column:u.column})}if(D=$.regex.lastIndex,y=!0,$.push){const y=$.push(u,D);ne.push(...y.tokens),D=y.offset}if($.pop)break e;break}}if(!y)break}return{tokens:ne,offset:D,complete:u.length<=D}}}function s(u,y){return{...u,regex:l(u,y)}}function l(u,y){if(0===u.name.length)throw new Error(`Rule #${y} has empty name, which is not allowed.`);if(function(u){return Object.prototype.hasOwnProperty.call(u,"regex")}(u))return function(u){if(u.global)throw new Error(`Regular expression /${u.source}/${u.flags} contains the global flag, which is not allowed.`);return u.sticky?u:new RegExp(u.source,u.flags+"y")}(u.regex);if(function(u){return Object.prototype.hasOwnProperty.call(u,"str")}(u)){if(0===u.str.length)throw new Error(`Rule #${y} ("${u.name}") has empty "str" property, which is not allowed.`);return new RegExp(leac_c(u.str),"y")}return new RegExp(leac_c(u.name),"y")}function leac_c(u){return u.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function emit(u){return(y,C)=>({matched:true,position:C,value:u})}function make(u){return(y,C)=>({matched:true,position:C,value:u(y,C)})}function action(u){return(y,C)=>{u(y,C);return{matched:true,position:C,value:null}}}function fail(u,y){return{matched:false}}function error(u){return(y,C)=>{throw new Error(u instanceof Function?u(y,C):u)}}function token(u,y){return(C,D)=>{let _=D;let j=undefined;if(D<C.tokens.length){j=u(C.tokens[D],C,D);if(j!==undefined){_++}}else{y?.(C,D)}return j===undefined?{matched:false}:{matched:true,position:_,value:j}}}function any(u,y){return y<u.tokens.length?{matched:true,position:y+1,value:u.tokens[y]}:{matched:false}}function satisfy(u){return(y,C)=>C<y.tokens.length&&u(y.tokens[C],y,C)?{matched:true,position:C+1,value:y.tokens[C]}:{matched:false}}function mapInner(u,y){return u.matched?{matched:true,position:u.position,value:y(u.value,u.position)}:u}function mapOuter(u,y){return u.matched?y(u):u}function map(u,y){return(C,D)=>mapInner(u(C,D),((u,_)=>y(u,C,D,_)))}function map1(u,y){return(C,D)=>mapOuter(u(C,D),(u=>y(u,C,D)))}function peek(u,y){return(C,D)=>{const _=u(C,D);y(_,C,D);return _}}function core_option(u,y){return(C,D)=>{const _=u(C,D);return _.matched?_:{matched:true,position:D,value:y}}}function not(u){return(y,C)=>{const D=u(y,C);return D.matched?{matched:false}:{matched:true,position:C,value:true}}}function choice(...u){return(y,C)=>{for(const D of u){const u=D(y,C);if(u.matched){return u}}return{matched:false}}}function otherwise(u,y){return(C,D)=>{const _=u(C,D);return _.matched?_:y(C,D)}}function longest(...u){return(y,C)=>{let D=undefined;for(const _ of u){const u=_(y,C);if(u.matched&&(!D||D.position<u.position)){D=u}}return D||{matched:false}}}function takeWhile(u,y){return(C,D)=>{const _=[];let j=true;do{const $=u(C,D);if($.matched&&y($.value,_.length+1,C,D,$.position)){_.push($.value);D=$.position}else{j=false}}while(j);return{matched:true,position:D,value:_}}}function takeUntil(u,y){return takeWhile(u,((u,C,D,_,j)=>!y(u,C,D,_,j)))}function takeWhileP(u,y){return takeWhile(u,((u,C,D,_)=>y(D,_).matched))}function takeUntilP(u,y){return takeWhile(u,((u,C,D,_)=>!y(D,_).matched))}function many(u){return takeWhile(u,(()=>true))}function many1(u){return ab(u,many(u),((u,y)=>[u,...y]))}function ab(u,y,C){return(D,_)=>mapOuter(u(D,_),(u=>mapInner(y(D,u.position),((y,j)=>C(u.value,y,D,_,j)))))}function left(u,y){return ab(u,y,(u=>u))}function right(u,y){return ab(u,y,((u,y)=>y))}function abc(u,y,C,D){return(_,j)=>mapOuter(u(_,j),(u=>mapOuter(y(_,u.position),(y=>mapInner(C(_,y.position),((C,$)=>D(u.value,y.value,C,_,j,$)))))))}function middle(u,y,C){return abc(u,y,C,((u,y)=>y))}function core_all(...u){return(y,C)=>{const D=[];let _=C;for(const C of u){const u=C(y,_);if(u.matched){D.push(u.value);_=u.position}else{return{matched:false}}}return{matched:true,position:_,value:D}}}function skip(...u){return map(core_all(...u),(()=>null))}function flatten(...u){return flatten1(core_all(...u))}function flatten1(u){return map(u,(u=>u.flatMap((u=>u))))}function sepBy1(u,y){return ab(u,many(right(y,u)),((u,y)=>[u,...y]))}function sepBy(u,y){return otherwise(sepBy1(u,y),emit([]))}function chainReduce(u,y){return(C,D)=>{let _=true;let j=u;let $=D;do{const u=y(j,C,$)(C,$);if(u.matched){j=u.value;$=u.position}else{_=false}}while(_);return{matched:true,position:$,value:j}}}function reduceLeft(u,y,C){return chainReduce(u,(u=>map(y,((y,D,_,j)=>C(u,y,D,_,j)))))}function reduceRight(u,y,C){return map(many(u),((u,D,_,j)=>u.reduceRight(((u,y)=>C(y,u,D,_,j)),y)))}function leftAssoc1(u,y){return chain(u,(u=>reduceLeft(u,y,((u,y)=>y(u)))))}function rightAssoc1(u,y){return ab(reduceRight(u,(u=>u),((u,y)=>C=>u(y(C)))),y,((u,y)=>u(y)))}function leftAssoc2(u,y,C){return chain(u,(u=>reduceLeft(u,ab(y,C,((u,y)=>[u,y])),((u,[y,C])=>y(u,C)))))}function rightAssoc2(u,y,C){return ab(reduceRight(ab(u,y,((u,y)=>[u,y])),(u=>u),(([u,y],C)=>D=>y(u,C(D)))),C,((u,y)=>u(y)))}function condition(u,y,C){return(D,_)=>u(D,_)?y(D,_):C(D,_)}function decide(u){return(y,C)=>mapOuter(u(y,C),(u=>u.value(y,u.position)))}function chain(u,y){return(C,D)=>mapOuter(u(C,D),(u=>y(u.value,C,D,u.position)(C,u.position)))}function ahead(u){return(y,C)=>mapOuter(u(y,C),(u=>({matched:true,position:C,value:u.value})))}function recursive(u){return function(y,C){return u()(y,C)}}function start(u,y){return y!==0?{matched:false}:{matched:true,position:y,value:true}}function end(u,y){return y<u.tokens.length?{matched:false}:{matched:true,position:y,value:true}}function remainingTokensNumber(u,y){return u.tokens.length-y}function parserPosition(u,y,C,D=3){const _=u.tokens.length;const j=clamp(0,y-D,_-D);const $=clamp(D,y+1+D,_);const ne=u.tokens.slice(j,$);const oe=[];const le=String($-1).length+1;if(y<0){oe.push(`${String(y).padStart(le)} >>`)}if(0<j){oe.push("...".padStart(le+6))}for(let u=0;u<ne.length;u++){const D=j+u;oe.push(`${String(D).padStart(le)} ${D===y?">":" "} ${escapeWhitespace(C(ne[u]))}`)}if($<_){oe.push("...".padStart(le+6))}if(_<=y){oe.push(`${String(y).padStart(le)} >>`)}return oe.join("\n")}function parse(u,y,C,D=JSON.stringify){const _={tokens:y,options:C};const j=u(_,0);if(!j.matched){throw new Error("No match")}if(j.position<_.tokens.length){throw new Error(`Partial match. Parsing stopped at:\n${parserPosition(_,j.position,D)}`)}return j.value}function tryParse(u,y,C){const D=u({tokens:y,options:C},0);return D.matched?D.value:undefined}function core_match(u,y,C){const D=u({tokens:y,options:C},0);return D.value}var lu=Object.freeze({__proto__:null});const cu=`(?:[ \\t\\r\\n\\f]*)`;const uu=`(?:\\n|\\r\\n|\\r|\\f)`;const fu=`[^\\x00-\\x7F]`;const du=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`;const Au=`(?:\\\\[^\\n\\r\\f0-9a-f])`;const hu=`(?:[_a-z]|${fu}|${du}|${Au})`;const pu=`(?:[_a-z0-9-]|${fu}|${du}|${Au})`;const gu=`(?:${pu}+)`;const mu=`(?:[-]?${hu}${pu}*)`;const yu=`'([^\\n\\r\\f\\\\']|\\\\${uu}|${fu}|${du}|${Au})*'`;const Eu=`"([^\\n\\r\\f\\\\"]|\\\\${uu}|${fu}|${du}|${Au})*"`;const Cu=leac_o([{name:"ws",regex:new RegExp(cu)},{name:"hash",regex:new RegExp(`#${gu}`,"i")},{name:"ident",regex:new RegExp(mu,"i")},{name:"str1",regex:new RegExp(yu,"i")},{name:"str2",regex:new RegExp(Eu,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]);const Iu=leac_o([{name:"unicode",regex:new RegExp(du,"i")},{name:"escape",regex:new RegExp(Au,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([u,y,C],[D,_,j]){return[u+D,y+_,C+j]}function sumAllSpec(u){return u.reduce(sumSpec,[0,0,0])}const bu=token((u=>u.name==="unicode"?String.fromCodePoint(parseInt(u.text.slice(1),16)):undefined));const vu=token((u=>u.name==="escape"?u.text.slice(1):undefined));const wu=token((u=>u.name==="any"?u.text:undefined));const Bu=map(many(choice(bu,vu,wu)),(u=>u.join("")));function parseley_unescape(u){const y=Iu(u);const C=Bu({tokens:y.tokens,options:undefined},0);return C.value}function literal(u){return token((y=>y.name===u?true:undefined))}const Du=token((u=>u.name==="ws"?null:undefined));const Su=core_option(Du,null);function optionallySpaced(u){return middle(Su,u,Su)}const ku=token((u=>u.name==="ident"?parseley_unescape(u.text):undefined));const Qu=token((u=>u.name==="hash"?parseley_unescape(u.text.slice(1)):undefined));const xu=token((u=>u.name.startsWith("str")?parseley_unescape(u.text.slice(1,-1)):undefined));const Fu=left(core_option(ku,""),literal("|"));const _u=otherwise(ab(Fu,ku,((u,y)=>({name:y,namespace:u}))),map(ku,(u=>({name:u,namespace:null}))));const Ru=otherwise(ab(Fu,literal("*"),(u=>({type:"universal",namespace:u,specificity:[0,0,0]}))),map(literal("*"),(()=>({type:"universal",namespace:null,specificity:[0,0,0]}))));const Lu=map(_u,(({name:u,namespace:y})=>({type:"tag",name:u,namespace:y,specificity:[0,0,1]})));const Nu=ab(literal("."),ku,((u,y)=>({type:"class",name:y,specificity:[0,1,0]})));const Tu=map(Qu,(u=>({type:"id",name:u,specificity:[1,0,0]})));const Pu=token((u=>{if(u.name==="ident"){if(u.text==="i"||u.text==="I"){return"i"}if(u.text==="s"||u.text==="S"){return"s"}}return undefined}));const Ou=otherwise(ab(xu,core_option(right(Su,Pu),null),((u,y)=>({value:u,modifier:y}))),ab(ku,core_option(right(Du,Pu),null),((u,y)=>({value:u,modifier:y}))));const Mu=choice(map(literal("="),(()=>"=")),ab(literal("~"),literal("="),(()=>"~=")),ab(literal("|"),literal("="),(()=>"|=")),ab(literal("^"),literal("="),(()=>"^=")),ab(literal("$"),literal("="),(()=>"$=")),ab(literal("*"),literal("="),(()=>"*=")));const Uu=abc(literal("["),optionallySpaced(_u),literal("]"),((u,{name:y,namespace:C})=>({type:"attrPresence",name:y,namespace:C,specificity:[0,1,0]})));const Hu=middle(literal("["),abc(optionallySpaced(_u),Mu,optionallySpaced(Ou),(({name:u,namespace:y},C,{value:D,modifier:_})=>({type:"attrValue",name:u,namespace:y,matcher:C,value:D,modifier:_,specificity:[0,1,0]}))),literal("]"));const Gu=otherwise(Uu,Hu);const Wu=otherwise(Ru,Lu);const ju=choice(Tu,Nu,Gu);const zu=map(otherwise(flatten(Wu,many(ju)),many1(ju)),(u=>({type:"compound",list:u,specificity:sumAllSpec(u.map((u=>u.specificity)))})));const $u=choice(map(literal(">"),(()=>">")),map(literal("+"),(()=>"+")),map(literal("~"),(()=>"~")),ab(literal("|"),literal("|"),(()=>"||")));const qu=otherwise(optionallySpaced($u),map(Du,(()=>" ")));const Vu=leftAssoc2(zu,map(qu,(u=>(y,C)=>({type:"compound",list:[...C.list,{type:"combinator",combinator:u,left:y,specificity:y.specificity}],specificity:sumSpec(y.specificity,C.specificity)}))),zu);const Ju=leftAssoc2(map(Vu,(u=>({type:"list",list:[u]}))),map(optionallySpaced(literal(",")),(()=>(u,y)=>({type:"list",list:[...u.list,y]}))),Vu);function parse_(u,y){if(!(typeof y==="string"||y instanceof String)){throw new Error("Expected a selector string. Actual input is not a string!")}const C=Cu(y);if(!C.complete){throw new Error(`The input "${y}" was only partially tokenized, stopped at offset ${C.offset}!\n`+prettyPrintPosition(y,C.offset))}const D=optionallySpaced(u)({tokens:C.tokens,options:undefined},0);if(!D.matched){throw new Error(`No match for "${y}" input!`)}if(D.position<C.tokens.length){const u=C.tokens[D.position];throw new Error(`The input "${y}" was only partially parsed, stopped at offset ${u.offset}!\n`+prettyPrintPosition(y,u.offset,u.len))}return D.value}function prettyPrintPosition(u,y,C=1){return`${u.replace(/(\t)|(\r)|(\n)/g,((u,y,C)=>y?"␉":C?"␍":"␊"))}\n${"".padEnd(y)}${"^".repeat(C)}`}function parseley_parse(u){return parse_(Ju,u)}function parse1(u){return parse_(Vu,u)}function serialize(u){if(!u.type){throw new Error("This is not an AST node.")}switch(u.type){case"universal":return _serNs(u.namespace)+"*";case"tag":return _serNs(u.namespace)+_serIdent(u.name);case"class":return"."+_serIdent(u.name);case"id":return"#"+_serIdent(u.name);case"attrPresence":return`[${_serNs(u.namespace)}${_serIdent(u.name)}]`;case"attrValue":return`[${_serNs(u.namespace)}${_serIdent(u.name)}${u.matcher}"${_serStr(u.value)}"${u.modifier?u.modifier:""}]`;case"combinator":return serialize(u.left)+u.combinator;case"compound":return u.list.reduce(((u,y)=>{if(y.type==="combinator"){return serialize(y)+u}else{return u+serialize(y)}}),"");case"list":return u.list.map(serialize).join(",")}}function _serNs(u){return u||u===""?_serIdent(u)+"|":""}function _codePoint(u){return`\\${u.codePointAt(0).toString(16)} `}function _serIdent(u){return u.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,((u,y,C,D,_,j,$,ne)=>y?_codePoint(y):C?"-"+_codePoint(C.slice(1)):D?"\\-":_?_:j?"�":$?_codePoint($):"\\"+ne))}function _serStr(u){return u.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,((u,y,C,D,_)=>y?'\\"':C?"\\\\":D?"�":_codePoint(_)))}function parseley_normalize(u){if(!u.type){throw new Error("This is not an AST node.")}switch(u.type){case"compound":{u.list.forEach(parseley_normalize);u.list.sort(((u,y)=>_compareArrays(_getSelectorPriority(u),_getSelectorPriority(y))));break}case"combinator":{parseley_normalize(u.left);break}case"list":{u.list.forEach(parseley_normalize);u.list.sort(((u,y)=>serialize(u)<serialize(y)?-1:1));break}}return u}function _getSelectorPriority(u){switch(u.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,u.name];case"attrPresence":return[4,serialize(u)];case"attrValue":return[5,serialize(u)];case"combinator":return[15,serialize(u)]}}function compareSelectors(u,y){return _compareArrays(u.specificity,y.specificity)}function compareSpecificity(u,y){return _compareArrays(u,y)}function _compareArrays(u,y){if(!Array.isArray(u)||!Array.isArray(y)){throw new Error("Arguments must be arrays.")}const C=u.length<y.length?u.length:y.length;for(let D=0;D<C;D++){if(u[D]===y[D]){continue}return u[D]<y[D]?-1:1}return u.length-y.length}var Ku=Object.freeze({__proto__:null});var Yu=Object.freeze({__proto__:null});const treeify=u=>"▽\n"+treeifyArray(u,Xu);const Xu=[["├─","│ "],["└─"," "]];const Zu=[["┠─","┃ "],["┖─"," "]];const _f=[["╟─","║ "],["╙─"," "]];function treeifyArray(u,y=Zu){return prefixItems(y,u.map((u=>treeifyNode(u))))}function treeifyNode(u){switch(u.type){case"terminal":{const y=u.valueContainer;return`◁ #${y.index} ${JSON.stringify(y.specificity)} ${y.value}`}case"tagName":return`◻ Tag name\n${treeifyArray(u.variants,_f)}`;case"attrValue":return`▣ Attr value: ${u.name}\n${treeifyArray(u.matchers,_f)}`;case"attrPresence":return`◨ Attr presence: ${u.name}\n${treeifyArray(u.cont)}`;case"pushElement":return`◉ Push element: ${u.combinator}\n${treeifyArray(u.cont,Xu)}`;case"popElement":return`◌ Pop element\n${treeifyArray(u.cont,Xu)}`;case"variant":return`◇ = ${u.value}\n${treeifyArray(u.cont)}`;case"matcher":return`◈ ${u.matcher} "${u.value}"${u.modifier||""}\n${treeifyArray(u.cont)}`}}function prefixItems(u,y){return y.map(((y,C,{length:D})=>prefixItem(u,y,C===D-1))).join("\n")}function prefixItem(u,y,C=true){const D=u[C?1:0];return D[0]+y.split("\n").join("\n"+D[1])}var Rf=Object.freeze({__proto__:null,treeify:treeify});class DecisionTree{constructor(u){this.branches=weave(toAstTerminalPairs(u))}build(u){return u(this.branches)}}function toAstTerminalPairs(u){const y=u.length;const C=new Array(y);for(let D=0;D<y;D++){const[y,_]=u[D];const j=preprocess(parse1(y));C[D]={ast:j,terminal:{type:"terminal",valueContainer:{index:D,value:_,specificity:j.specificity}}}}return C}function preprocess(u){reduceSelectorVariants(u);parseley_normalize(u);return u}function reduceSelectorVariants(u){const y=[];u.list.forEach((u=>{switch(u.type){case"class":y.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:u.specificity,type:"attrValue",value:u.name});break;case"id":y.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:u.specificity,type:"attrValue",value:u.name});break;case"combinator":reduceSelectorVariants(u.left);y.push(u);break;case"universal":break;default:y.push(u);break}}));u.list=y}function weave(u){const y=[];while(u.length){const C=findTopKey(u,(u=>true),getSelectorKind);const{matches:D,nonmatches:_,empty:j}=breakByKind(u,C);u=_;if(D.length){y.push(branchOfKind(C,D))}if(j.length){y.push(...terminate(j))}}return y}function terminate(u){const y=[];for(const C of u){const u=C.terminal;if(u.type==="terminal"){y.push(u)}else{const{matches:C,rest:D}=partition(u.cont,(u=>u.type==="terminal"));C.forEach((u=>y.push(u)));if(D.length){u.cont=D;y.push(u)}}}return y}function breakByKind(u,y){const C=[];const D=[];const _=[];for(const j of u){const u=j.ast.list;if(u.length){const _=u.some((u=>getSelectorKind(u)===y));(_?C:D).push(j)}else{_.push(j)}}return{matches:C,nonmatches:D,empty:_}}function getSelectorKind(u){switch(u.type){case"attrPresence":return`attrPresence ${u.name}`;case"attrValue":return`attrValue ${u.name}`;case"combinator":return`combinator ${u.combinator}`;default:return u.type}}function branchOfKind(u,y){if(u==="tag"){return tagNameBranch(y)}if(u.startsWith("attrValue ")){return attrValueBranch(u.substring(10),y)}if(u.startsWith("attrPresence ")){return attrPresenceBranch(u.substring(13),y)}if(u==="combinator >"){return combinatorBranch(">",y)}if(u==="combinator +"){return combinatorBranch("+",y)}throw new Error(`Unsupported selector kind: ${u}`)}function tagNameBranch(u){const y=spliceAndGroup(u,(u=>u.type==="tag"),(u=>u.name));const C=Object.entries(y).map((([u,y])=>({type:"variant",value:u,cont:weave(y.items)})));return{type:"tagName",variants:C}}function attrPresenceBranch(u,y){for(const C of y){spliceSimpleSelector(C,(y=>y.type==="attrPresence"&&y.name===u))}return{type:"attrPresence",name:u,cont:weave(y)}}function attrValueBranch(u,y){const C=spliceAndGroup(y,(y=>y.type==="attrValue"&&y.name===u),(u=>`${u.matcher} ${u.modifier||""} ${u.value}`));const D=[];for(const u of Object.values(C)){const y=u.oneSimpleSelector;const C=getAttrPredicate(y);const _=weave(u.items);D.push({type:"matcher",matcher:y.matcher,modifier:y.modifier,value:y.value,predicate:C,cont:_})}return{type:"attrValue",name:u,matchers:D}}function getAttrPredicate(u){if(u.modifier==="i"){const y=u.value.toLowerCase();switch(u.matcher){case"=":return u=>y===u.toLowerCase();case"~=":return u=>u.toLowerCase().split(/[ \t]+/).includes(y);case"^=":return u=>u.toLowerCase().startsWith(y);case"$=":return u=>u.toLowerCase().endsWith(y);case"*=":return u=>u.toLowerCase().includes(y);case"|=":return u=>{const C=u.toLowerCase();return y===C||C.startsWith(y)&&C[y.length]==="-"}}}else{const y=u.value;switch(u.matcher){case"=":return u=>y===u;case"~=":return u=>u.split(/[ \t]+/).includes(y);case"^=":return u=>u.startsWith(y);case"$=":return u=>u.endsWith(y);case"*=":return u=>u.includes(y);case"|=":return u=>y===u||u.startsWith(y)&&u[y.length]==="-"}}}function combinatorBranch(u,y){const C=spliceAndGroup(y,(y=>y.type==="combinator"&&y.combinator===u),(u=>serialize(u.left)));const D=[];for(const u of Object.values(C)){const y=weave(u.items);const C=u.oneSimpleSelector.left;D.push({ast:C,terminal:{type:"popElement",cont:y}})}return{type:"pushElement",combinator:u,cont:weave(D)}}function spliceAndGroup(u,y,C){const D={};while(u.length){const _=findTopKey(u,y,C);const bestKeyPredicate=u=>y(u)&&C(u)===_;const hasBestKeyPredicate=u=>u.ast.list.some(bestKeyPredicate);const{matches:j,rest:$}=partition1(u,hasBestKeyPredicate);let ne=null;for(const u of j){const y=spliceSimpleSelector(u,bestKeyPredicate);if(!ne){ne=y}}if(ne==null){throw new Error("No simple selector is found.")}D[_]={oneSimpleSelector:ne,items:j};u=$}return D}function spliceSimpleSelector(u,y){const C=u.ast.list;const D=new Array(C.length);let _=-1;for(let u=C.length;u-- >0;){if(y(C[u])){D[u]=true;_=u}}if(_==-1){throw new Error(`Couldn't find the required simple selector.`)}const j=C[_];u.ast.list=C.filter(((u,y)=>!D[y]));return j}function findTopKey(u,y,C){const D={};for(const _ of u){const u={};for(const D of _.ast.list.filter(y)){u[C(D)]=true}for(const y of Object.keys(u)){if(D[y]){D[y]++}else{D[y]=1}}}let _="";let j=0;for(const u of Object.entries(D)){if(u[1]>j){_=u[0];j=u[1]}}return _}function partition(u,y){const C=[];const D=[];for(const _ of u){if(y(_)){C.push(_)}else{D.push(_)}}return{matches:C,rest:D}}function partition1(u,y){const C=[];const D=[];for(const _ of u){if(y(_)){C.push(_)}else{D.push(_)}}return{matches:C,rest:D}}class Picker{constructor(u){this.f=u}pickAll(u){return this.f(u)}pick1(u,y=false){const C=this.f(u);const D=C.length;if(D===0){return null}if(D===1){return C[0].value}const _=y?comparatorPreferFirst:comparatorPreferLast;let j=C[0];for(let u=1;u<D;u++){const y=C[u];if(_(j,y)){j=y}}return j.value}}function comparatorPreferFirst(u,y){const C=compareSpecificity(y.specificity,u.specificity);return C>0||C===0&&y.index<u.index}function comparatorPreferLast(u,y){const C=compareSpecificity(y.specificity,u.specificity);return C>0||C===0&&y.index>u.index}function hp2Builder(u){return new Picker(handleArray(u))}function handleArray(u){const y=u.map(handleNode);return(u,...C)=>y.flatMap((y=>y(u,...C)))}function handleNode(u){switch(u.type){case"terminal":{const y=[u.valueContainer];return(u,...C)=>y}case"tagName":return handleTagName(u);case"attrValue":return handleAttrValueName(u);case"attrPresence":return handleAttrPresenceName(u);case"pushElement":return handlePushElementNode(u);case"popElement":return handlePopElementNode(u)}}function handleTagName(u){const y={};for(const C of u.variants){y[C.value]=handleArray(C.cont)}return(u,...C)=>{const D=y[u.name];return D?D(u,...C):[]}}function handleAttrPresenceName(u){const y=u.name;const C=handleArray(u.cont);return(u,...D)=>Object.prototype.hasOwnProperty.call(u.attribs,y)?C(u,...D):[]}function handleAttrValueName(u){const y=[];for(const C of u.matchers){const u=C.predicate;const D=handleArray(C.cont);y.push(((y,C,..._)=>u(y)?D(C,..._):[]))}const C=u.name;return(u,...D)=>{const _=u.attribs[C];return _||_===""?y.flatMap((y=>y(_,u,...D))):[]}}function handlePushElementNode(u){const y=handleArray(u.cont);const C=u.combinator==="+"?getPrecedingElement:getParentElement;return(u,...D)=>{const _=C(u);if(_===null){return[]}return y(_,u,...D)}}const getPrecedingElement=u=>{const y=u.prev;if(y===null){return null}return node_isTag(y)?y:getPrecedingElement(y)};const getParentElement=u=>{const y=u.parent;return y&&node_isTag(y)?y:null};function handlePopElementNode(u){const y=handleArray(u.cont);return(u,C,...D)=>y(C,...D)}const Mf=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u=>u.charCodeAt(0))));const Hf=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u=>u.charCodeAt(0))));var zf;const $f=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const Jf=(zf=String.fromCodePoint)!==null&&zf!==void 0?zf:function(u){let y="";if(u>65535){u-=65536;y+=String.fromCharCode(u>>>10&1023|55296);u=56320|u&1023}y+=String.fromCharCode(u);return y};function replaceCodePoint(u){var y;if(u>=55296&&u<=57343||u>1114111){return 65533}return(y=$f.get(u))!==null&&y!==void 0?y:u}function decodeCodePoint(u){return Jf(replaceCodePoint(u))}var Kf;(function(u){u[u["NUM"]=35]="NUM";u[u["SEMI"]=59]="SEMI";u[u["EQUALS"]=61]="EQUALS";u[u["ZERO"]=48]="ZERO";u[u["NINE"]=57]="NINE";u[u["LOWER_A"]=97]="LOWER_A";u[u["LOWER_F"]=102]="LOWER_F";u[u["LOWER_X"]=120]="LOWER_X";u[u["LOWER_Z"]=122]="LOWER_Z";u[u["UPPER_A"]=65]="UPPER_A";u[u["UPPER_F"]=70]="UPPER_F";u[u["UPPER_Z"]=90]="UPPER_Z"})(Kf||(Kf={}));const Zf=32;var ed;(function(u){u[u["VALUE_LENGTH"]=49152]="VALUE_LENGTH";u[u["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";u[u["JUMP_TABLE"]=127]="JUMP_TABLE"})(ed||(ed={}));function decode_isNumber(u){return u>=Kf.ZERO&&u<=Kf.NINE}function isHexadecimalCharacter(u){return u>=Kf.UPPER_A&&u<=Kf.UPPER_F||u>=Kf.LOWER_A&&u<=Kf.LOWER_F}function isAsciiAlphaNumeric(u){return u>=Kf.UPPER_A&&u<=Kf.UPPER_Z||u>=Kf.LOWER_A&&u<=Kf.LOWER_Z||decode_isNumber(u)}function isEntityInAttributeInvalidEnd(u){return u===Kf.EQUALS||isAsciiAlphaNumeric(u)}var rd;(function(u){u[u["EntityStart"]=0]="EntityStart";u[u["NumericStart"]=1]="NumericStart";u[u["NumericDecimal"]=2]="NumericDecimal";u[u["NumericHex"]=3]="NumericHex";u[u["NamedEntity"]=4]="NamedEntity"})(rd||(rd={}));var id;(function(u){u[u["Legacy"]=0]="Legacy";u[u["Strict"]=1]="Strict";u[u["Attribute"]=2]="Attribute"})(id||(id={}));class EntityDecoder{constructor(u,y,C){this.decodeTree=u;this.emitCodePoint=y;this.errors=C;this.state=rd.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=id.Strict}startEntity(u){this.decodeMode=u;this.state=rd.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(u,y){switch(this.state){case rd.EntityStart:{if(u.charCodeAt(y)===Kf.NUM){this.state=rd.NumericStart;this.consumed+=1;return this.stateNumericStart(u,y+1)}this.state=rd.NamedEntity;return this.stateNamedEntity(u,y)}case rd.NumericStart:{return this.stateNumericStart(u,y)}case rd.NumericDecimal:{return this.stateNumericDecimal(u,y)}case rd.NumericHex:{return this.stateNumericHex(u,y)}case rd.NamedEntity:{return this.stateNamedEntity(u,y)}}}stateNumericStart(u,y){if(y>=u.length){return-1}if((u.charCodeAt(y)|Zf)===Kf.LOWER_X){this.state=rd.NumericHex;this.consumed+=1;return this.stateNumericHex(u,y+1)}this.state=rd.NumericDecimal;return this.stateNumericDecimal(u,y)}addToNumericResult(u,y,C,D){if(y!==C){const _=C-y;this.result=this.result*Math.pow(D,_)+parseInt(u.substr(y,_),D);this.consumed+=_}}stateNumericHex(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(decode_isNumber(D)||isHexadecimalCharacter(D)){y+=1}else{this.addToNumericResult(u,C,y,16);return this.emitNumericEntity(D,3)}}this.addToNumericResult(u,C,y,16);return-1}stateNumericDecimal(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(decode_isNumber(D)){y+=1}else{this.addToNumericResult(u,C,y,10);return this.emitNumericEntity(D,2)}}this.addToNumericResult(u,C,y,10);return-1}emitNumericEntity(u,y){var C;if(this.consumed<=y){(C=this.errors)===null||C===void 0?void 0:C.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(u===Kf.SEMI){this.consumed+=1}else if(this.decodeMode===id.Strict){return 0}this.emitCodePoint(replaceCodePoint(this.result),this.consumed);if(this.errors){if(u!==Kf.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(u,y){const{decodeTree:C}=this;let D=C[this.treeIndex];let _=(D&ed.VALUE_LENGTH)>>14;for(;y<u.length;y++,this.excess++){const j=u.charCodeAt(y);this.treeIndex=determineBranch(C,D,this.treeIndex+Math.max(1,_),j);if(this.treeIndex<0){return this.result===0||this.decodeMode===id.Attribute&&(_===0||isEntityInAttributeInvalidEnd(j))?0:this.emitNotTerminatedNamedEntity()}D=C[this.treeIndex];_=(D&ed.VALUE_LENGTH)>>14;if(_!==0){if(j===Kf.SEMI){return this.emitNamedEntityData(this.treeIndex,_,this.consumed+this.excess)}if(this.decodeMode!==id.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var u;const{result:y,decodeTree:C}=this;const D=(C[y]&ed.VALUE_LENGTH)>>14;this.emitNamedEntityData(y,D,this.consumed);(u=this.errors)===null||u===void 0?void 0:u.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(u,y,C){const{decodeTree:D}=this;this.emitCodePoint(y===1?D[u]&~ed.VALUE_LENGTH:D[u+1],C);if(y===3){this.emitCodePoint(D[u+2],C)}return C}end(){var u;switch(this.state){case rd.NamedEntity:{return this.result!==0&&(this.decodeMode!==id.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case rd.NumericDecimal:{return this.emitNumericEntity(0,2)}case rd.NumericHex:{return this.emitNumericEntity(0,3)}case rd.NumericStart:{(u=this.errors)===null||u===void 0?void 0:u.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case rd.EntityStart:{return 0}}}}function getDecoder(u){let y="";const C=new EntityDecoder(u,(u=>y+=Jf(u)));return function decodeWithTrie(u,D){let _=0;let j=0;while((j=u.indexOf("&",j))>=0){y+=u.slice(_,j);C.startEntity(D);const $=C.write(u,j+1);if($<0){_=j+C.end();break}_=j+$;j=$===0?_+1:_}const $=y+u.slice(_);y="";return $}}function determineBranch(u,y,C,D){const _=(y&ed.BRANCH_LENGTH)>>7;const j=y&ed.JUMP_TABLE;if(_===0){return j!==0&&D===j?C:-1}if(j){const y=D-j;return y<0||y>=_?-1:u[C+y]-1}let $=C;let ne=$+_-1;while($<=ne){const y=$+ne>>>1;const C=u[y];if(C<D){$=y+1}else if(C>D){ne=y-1}else{return u[y+_]}}return-1}const od=getDecoder(Mf);const cd=getDecoder(Hf);function decode_decodeHTML(u,y=id.Legacy){return od(u,y)}function decodeHTMLAttribute(u){return od(u,id.Attribute)}function decodeHTMLStrict(u){return od(u,id.Strict)}function decode_decodeXML(u){return cd(u,id.Strict)}var fd;(function(u){u[u["Tab"]=9]="Tab";u[u["NewLine"]=10]="NewLine";u[u["FormFeed"]=12]="FormFeed";u[u["CarriageReturn"]=13]="CarriageReturn";u[u["Space"]=32]="Space";u[u["ExclamationMark"]=33]="ExclamationMark";u[u["Number"]=35]="Number";u[u["Amp"]=38]="Amp";u[u["SingleQuote"]=39]="SingleQuote";u[u["DoubleQuote"]=34]="DoubleQuote";u[u["Dash"]=45]="Dash";u[u["Slash"]=47]="Slash";u[u["Zero"]=48]="Zero";u[u["Nine"]=57]="Nine";u[u["Semi"]=59]="Semi";u[u["Lt"]=60]="Lt";u[u["Eq"]=61]="Eq";u[u["Gt"]=62]="Gt";u[u["Questionmark"]=63]="Questionmark";u[u["UpperA"]=65]="UpperA";u[u["LowerA"]=97]="LowerA";u[u["UpperF"]=70]="UpperF";u[u["LowerF"]=102]="LowerF";u[u["UpperZ"]=90]="UpperZ";u[u["LowerZ"]=122]="LowerZ";u[u["LowerX"]=120]="LowerX";u[u["OpeningSquareBracket"]=91]="OpeningSquareBracket"})(fd||(fd={}));var dd;(function(u){u[u["Text"]=1]="Text";u[u["BeforeTagName"]=2]="BeforeTagName";u[u["InTagName"]=3]="InTagName";u[u["InSelfClosingTag"]=4]="InSelfClosingTag";u[u["BeforeClosingTagName"]=5]="BeforeClosingTagName";u[u["InClosingTagName"]=6]="InClosingTagName";u[u["AfterClosingTagName"]=7]="AfterClosingTagName";u[u["BeforeAttributeName"]=8]="BeforeAttributeName";u[u["InAttributeName"]=9]="InAttributeName";u[u["AfterAttributeName"]=10]="AfterAttributeName";u[u["BeforeAttributeValue"]=11]="BeforeAttributeValue";u[u["InAttributeValueDq"]=12]="InAttributeValueDq";u[u["InAttributeValueSq"]=13]="InAttributeValueSq";u[u["InAttributeValueNq"]=14]="InAttributeValueNq";u[u["BeforeDeclaration"]=15]="BeforeDeclaration";u[u["InDeclaration"]=16]="InDeclaration";u[u["InProcessingInstruction"]=17]="InProcessingInstruction";u[u["BeforeComment"]=18]="BeforeComment";u[u["CDATASequence"]=19]="CDATASequence";u[u["InSpecialComment"]=20]="InSpecialComment";u[u["InCommentLike"]=21]="InCommentLike";u[u["BeforeSpecialS"]=22]="BeforeSpecialS";u[u["SpecialStartSequence"]=23]="SpecialStartSequence";u[u["InSpecialTag"]=24]="InSpecialTag";u[u["BeforeEntity"]=25]="BeforeEntity";u[u["BeforeNumericEntity"]=26]="BeforeNumericEntity";u[u["InNamedEntity"]=27]="InNamedEntity";u[u["InNumericEntity"]=28]="InNumericEntity";u[u["InHexEntity"]=29]="InHexEntity"})(dd||(dd={}));function isWhitespace(u){return u===fd.Space||u===fd.NewLine||u===fd.Tab||u===fd.FormFeed||u===fd.CarriageReturn}function isEndOfTagSection(u){return u===fd.Slash||u===fd.Gt||isWhitespace(u)}function Tokenizer_isNumber(u){return u>=fd.Zero&&u<=fd.Nine}function isASCIIAlpha(u){return u>=fd.LowerA&&u<=fd.LowerZ||u>=fd.UpperA&&u<=fd.UpperZ}function isHexDigit(u){return u>=fd.UpperA&&u<=fd.UpperF||u>=fd.LowerA&&u<=fd.LowerF}var hd;(function(u){u[u["NoValue"]=0]="NoValue";u[u["Unquoted"]=1]="Unquoted";u[u["Single"]=2]="Single";u[u["Double"]=3]="Double"})(hd||(hd={}));const pd={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Tokenizer{constructor({xmlMode:u=false,decodeEntities:y=true},C){this.cbs=C;this.state=dd.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=dd.Text;this.isSpecial=false;this.running=true;this.offset=0;this.currentSequence=undefined;this.sequenceIndex=0;this.trieIndex=0;this.trieCurrent=0;this.entityResult=0;this.entityExcess=0;this.xmlMode=u;this.decodeEntities=y;this.entityTrie=u?Hf:Mf}reset(){this.state=dd.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=dd.Text;this.currentSequence=undefined;this.running=true;this.offset=0}write(u){this.offset+=this.buffer.length;this.buffer=u;this.parse()}end(){if(this.running)this.finish()}pause(){this.running=false}resume(){this.running=true;if(this.index<this.buffer.length+this.offset){this.parse()}}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(u){if(u===fd.Lt||!this.decodeEntities&&this.fastForwardTo(fd.Lt)){if(this.index>this.sectionStart){this.cbs.ontext(this.sectionStart,this.index)}this.state=dd.BeforeTagName;this.sectionStart=this.index}else if(this.decodeEntities&&u===fd.Amp){this.state=dd.BeforeEntity}}stateSpecialStartSequence(u){const y=this.sequenceIndex===this.currentSequence.length;const C=y?isEndOfTagSection(u):(u|32)===this.currentSequence[this.sequenceIndex];if(!C){this.isSpecial=false}else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0;this.state=dd.InTagName;this.stateInTagName(u)}stateInSpecialTag(u){if(this.sequenceIndex===this.currentSequence.length){if(u===fd.Gt||isWhitespace(u)){const y=this.index-this.currentSequence.length;if(this.sectionStart<y){const u=this.index;this.index=y;this.cbs.ontext(this.sectionStart,y);this.index=u}this.isSpecial=false;this.sectionStart=y+2;this.stateInClosingTagName(u);return}this.sequenceIndex=0}if((u|32)===this.currentSequence[this.sequenceIndex]){this.sequenceIndex+=1}else if(this.sequenceIndex===0){if(this.currentSequence===pd.TitleEnd){if(this.decodeEntities&&u===fd.Amp){this.state=dd.BeforeEntity}}else if(this.fastForwardTo(fd.Lt)){this.sequenceIndex=1}}else{this.sequenceIndex=Number(u===fd.Lt)}}stateCDATASequence(u){if(u===pd.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===pd.Cdata.length){this.state=dd.InCommentLike;this.currentSequence=pd.CdataEnd;this.sequenceIndex=0;this.sectionStart=this.index+1}}else{this.sequenceIndex=0;this.state=dd.InDeclaration;this.stateInDeclaration(u)}}fastForwardTo(u){while(++this.index<this.buffer.length+this.offset){if(this.buffer.charCodeAt(this.index-this.offset)===u){return true}}this.index=this.buffer.length+this.offset-1;return false}stateInCommentLike(u){if(u===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===pd.CdataEnd){this.cbs.oncdata(this.sectionStart,this.index,2)}else{this.cbs.oncomment(this.sectionStart,this.index,2)}this.sequenceIndex=0;this.sectionStart=this.index+1;this.state=dd.Text}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0])){this.sequenceIndex=1}}else if(u!==this.currentSequence[this.sequenceIndex-1]){this.sequenceIndex=0}}isTagStartChar(u){return this.xmlMode?!isEndOfTagSection(u):isASCIIAlpha(u)}startSpecial(u,y){this.isSpecial=true;this.currentSequence=u;this.sequenceIndex=y;this.state=dd.SpecialStartSequence}stateBeforeTagName(u){if(u===fd.ExclamationMark){this.state=dd.BeforeDeclaration;this.sectionStart=this.index+1}else if(u===fd.Questionmark){this.state=dd.InProcessingInstruction;this.sectionStart=this.index+1}else if(this.isTagStartChar(u)){const y=u|32;this.sectionStart=this.index;if(!this.xmlMode&&y===pd.TitleEnd[2]){this.startSpecial(pd.TitleEnd,3)}else{this.state=!this.xmlMode&&y===pd.ScriptEnd[2]?dd.BeforeSpecialS:dd.InTagName}}else if(u===fd.Slash){this.state=dd.BeforeClosingTagName}else{this.state=dd.Text;this.stateText(u)}}stateInTagName(u){if(isEndOfTagSection(u)){this.cbs.onopentagname(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}}stateBeforeClosingTagName(u){if(isWhitespace(u)){}else if(u===fd.Gt){this.state=dd.Text}else{this.state=this.isTagStartChar(u)?dd.InClosingTagName:dd.InSpecialComment;this.sectionStart=this.index}}stateInClosingTagName(u){if(u===fd.Gt||isWhitespace(u)){this.cbs.onclosetag(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.AfterClosingTagName;this.stateAfterClosingTagName(u)}}stateAfterClosingTagName(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.state=dd.Text;this.baseState=dd.Text;this.sectionStart=this.index+1}}stateBeforeAttributeName(u){if(u===fd.Gt){this.cbs.onopentagend(this.index);if(this.isSpecial){this.state=dd.InSpecialTag;this.sequenceIndex=0}else{this.state=dd.Text}this.baseState=this.state;this.sectionStart=this.index+1}else if(u===fd.Slash){this.state=dd.InSelfClosingTag}else if(!isWhitespace(u)){this.state=dd.InAttributeName;this.sectionStart=this.index}}stateInSelfClosingTag(u){if(u===fd.Gt){this.cbs.onselfclosingtag(this.index);this.state=dd.Text;this.baseState=dd.Text;this.sectionStart=this.index+1;this.isSpecial=false}else if(!isWhitespace(u)){this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}}stateInAttributeName(u){if(u===fd.Eq||isEndOfTagSection(u)){this.cbs.onattribname(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.AfterAttributeName;this.stateAfterAttributeName(u)}}stateAfterAttributeName(u){if(u===fd.Eq){this.state=dd.BeforeAttributeValue}else if(u===fd.Slash||u===fd.Gt){this.cbs.onattribend(hd.NoValue,this.index);this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}else if(!isWhitespace(u)){this.cbs.onattribend(hd.NoValue,this.index);this.state=dd.InAttributeName;this.sectionStart=this.index}}stateBeforeAttributeValue(u){if(u===fd.DoubleQuote){this.state=dd.InAttributeValueDq;this.sectionStart=this.index+1}else if(u===fd.SingleQuote){this.state=dd.InAttributeValueSq;this.sectionStart=this.index+1}else if(!isWhitespace(u)){this.sectionStart=this.index;this.state=dd.InAttributeValueNq;this.stateInAttributeValueNoQuotes(u)}}handleInAttributeValue(u,y){if(u===y||!this.decodeEntities&&this.fastForwardTo(y)){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=-1;this.cbs.onattribend(y===fd.DoubleQuote?hd.Double:hd.Single,this.index);this.state=dd.BeforeAttributeName}else if(this.decodeEntities&&u===fd.Amp){this.baseState=this.state;this.state=dd.BeforeEntity}}stateInAttributeValueDoubleQuotes(u){this.handleInAttributeValue(u,fd.DoubleQuote)}stateInAttributeValueSingleQuotes(u){this.handleInAttributeValue(u,fd.SingleQuote)}stateInAttributeValueNoQuotes(u){if(isWhitespace(u)||u===fd.Gt){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=-1;this.cbs.onattribend(hd.Unquoted,this.index);this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}else if(this.decodeEntities&&u===fd.Amp){this.baseState=this.state;this.state=dd.BeforeEntity}}stateBeforeDeclaration(u){if(u===fd.OpeningSquareBracket){this.state=dd.CDATASequence;this.sequenceIndex=0}else{this.state=u===fd.Dash?dd.BeforeComment:dd.InDeclaration}}stateInDeclaration(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.ondeclaration(this.sectionStart,this.index);this.state=dd.Text;this.sectionStart=this.index+1}}stateInProcessingInstruction(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.onprocessinginstruction(this.sectionStart,this.index);this.state=dd.Text;this.sectionStart=this.index+1}}stateBeforeComment(u){if(u===fd.Dash){this.state=dd.InCommentLike;this.currentSequence=pd.CommentEnd;this.sequenceIndex=2;this.sectionStart=this.index+1}else{this.state=dd.InDeclaration}}stateInSpecialComment(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.oncomment(this.sectionStart,this.index,0);this.state=dd.Text;this.sectionStart=this.index+1}}stateBeforeSpecialS(u){const y=u|32;if(y===pd.ScriptEnd[3]){this.startSpecial(pd.ScriptEnd,4)}else if(y===pd.StyleEnd[3]){this.startSpecial(pd.StyleEnd,4)}else{this.state=dd.InTagName;this.stateInTagName(u)}}stateBeforeEntity(u){this.entityExcess=1;this.entityResult=0;if(u===fd.Number){this.state=dd.BeforeNumericEntity}else if(u===fd.Amp){}else{this.trieIndex=0;this.trieCurrent=this.entityTrie[0];this.state=dd.InNamedEntity;this.stateInNamedEntity(u)}}stateInNamedEntity(u){this.entityExcess+=1;this.trieIndex=determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,u);if(this.trieIndex<0){this.emitNamedEntity();this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const y=this.trieCurrent&ed.VALUE_LENGTH;if(y){const C=(y>>14)-1;if(!this.allowLegacyEntity()&&u!==fd.Semi){this.trieIndex+=C}else{const u=this.index-this.entityExcess+1;if(u>this.sectionStart){this.emitPartial(this.sectionStart,u)}this.entityResult=this.trieIndex;this.trieIndex+=C;this.entityExcess=0;this.sectionStart=this.index+1;if(C===0){this.emitNamedEntity()}}}}emitNamedEntity(){this.state=this.baseState;if(this.entityResult===0){return}const u=(this.entityTrie[this.entityResult]&ed.VALUE_LENGTH)>>14;switch(u){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~ed.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);this.emitCodePoint(this.entityTrie[this.entityResult+2])}}}stateBeforeNumericEntity(u){if((u|32)===fd.LowerX){this.entityExcess++;this.state=dd.InHexEntity}else{this.state=dd.InNumericEntity;this.stateInNumericEntity(u)}}emitNumericEntity(u){const y=this.index-this.entityExcess-1;const C=y+2+Number(this.state===dd.InHexEntity);if(C!==this.index){if(y>this.sectionStart){this.emitPartial(this.sectionStart,y)}this.sectionStart=this.index+Number(u);this.emitCodePoint(replaceCodePoint(this.entityResult))}this.state=this.baseState}stateInNumericEntity(u){if(u===fd.Semi){this.emitNumericEntity(true)}else if(Tokenizer_isNumber(u)){this.entityResult=this.entityResult*10+(u-fd.Zero);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}}stateInHexEntity(u){if(u===fd.Semi){this.emitNumericEntity(true)}else if(Tokenizer_isNumber(u)){this.entityResult=this.entityResult*16+(u-fd.Zero);this.entityExcess++}else if(isHexDigit(u)){this.entityResult=this.entityResult*16+((u|32)-fd.LowerA+10);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===dd.Text||this.baseState===dd.InSpecialTag)}cleanup(){if(this.running&&this.sectionStart!==this.index){if(this.state===dd.Text||this.state===dd.InSpecialTag&&this.sequenceIndex===0){this.cbs.ontext(this.sectionStart,this.index);this.sectionStart=this.index}else if(this.state===dd.InAttributeValueDq||this.state===dd.InAttributeValueSq||this.state===dd.InAttributeValueNq){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=this.index}}}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){while(this.shouldContinue()){const u=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case dd.Text:{this.stateText(u);break}case dd.SpecialStartSequence:{this.stateSpecialStartSequence(u);break}case dd.InSpecialTag:{this.stateInSpecialTag(u);break}case dd.CDATASequence:{this.stateCDATASequence(u);break}case dd.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(u);break}case dd.InAttributeName:{this.stateInAttributeName(u);break}case dd.InCommentLike:{this.stateInCommentLike(u);break}case dd.InSpecialComment:{this.stateInSpecialComment(u);break}case dd.BeforeAttributeName:{this.stateBeforeAttributeName(u);break}case dd.InTagName:{this.stateInTagName(u);break}case dd.InClosingTagName:{this.stateInClosingTagName(u);break}case dd.BeforeTagName:{this.stateBeforeTagName(u);break}case dd.AfterAttributeName:{this.stateAfterAttributeName(u);break}case dd.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(u);break}case dd.BeforeAttributeValue:{this.stateBeforeAttributeValue(u);break}case dd.BeforeClosingTagName:{this.stateBeforeClosingTagName(u);break}case dd.AfterClosingTagName:{this.stateAfterClosingTagName(u);break}case dd.BeforeSpecialS:{this.stateBeforeSpecialS(u);break}case dd.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(u);break}case dd.InSelfClosingTag:{this.stateInSelfClosingTag(u);break}case dd.InDeclaration:{this.stateInDeclaration(u);break}case dd.BeforeDeclaration:{this.stateBeforeDeclaration(u);break}case dd.BeforeComment:{this.stateBeforeComment(u);break}case dd.InProcessingInstruction:{this.stateInProcessingInstruction(u);break}case dd.InNamedEntity:{this.stateInNamedEntity(u);break}case dd.BeforeEntity:{this.stateBeforeEntity(u);break}case dd.InHexEntity:{this.stateInHexEntity(u);break}case dd.InNumericEntity:{this.stateInNumericEntity(u);break}default:{this.stateBeforeNumericEntity(u)}}this.index++}this.cleanup()}finish(){if(this.state===dd.InNamedEntity){this.emitNamedEntity()}if(this.sectionStart<this.index){this.handleTrailingData()}this.cbs.onend()}handleTrailingData(){const u=this.buffer.length+this.offset;if(this.state===dd.InCommentLike){if(this.currentSequence===pd.CdataEnd){this.cbs.oncdata(this.sectionStart,u,0)}else{this.cbs.oncomment(this.sectionStart,u,0)}}else if(this.state===dd.InNumericEntity&&this.allowLegacyEntity()){this.emitNumericEntity(false)}else if(this.state===dd.InHexEntity&&this.allowLegacyEntity()){this.emitNumericEntity(false)}else if(this.state===dd.InTagName||this.state===dd.BeforeAttributeName||this.state===dd.BeforeAttributeValue||this.state===dd.AfterAttributeName||this.state===dd.InAttributeName||this.state===dd.InAttributeValueSq||this.state===dd.InAttributeValueDq||this.state===dd.InAttributeValueNq||this.state===dd.InClosingTagName){}else{this.cbs.ontext(this.sectionStart,u)}}emitPartial(u,y){if(this.baseState!==dd.Text&&this.baseState!==dd.InSpecialTag){this.cbs.onattribdata(u,y)}else{this.cbs.ontext(u,y)}}emitCodePoint(u){if(this.baseState!==dd.Text&&this.baseState!==dd.InSpecialTag){this.cbs.onattribentity(u)}else{this.cbs.ontextentity(u)}}}const gd=new Set(["input","option","optgroup","select","button","datalist","textarea"]);const Cd=new Set(["p"]);const bd=new Set(["thead","tbody"]);const Sd=new Set(["dd","dt"]);const Qd=new Set(["rt","rp"]);const _d=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Cd],["h1",Cd],["h2",Cd],["h3",Cd],["h4",Cd],["h5",Cd],["h6",Cd],["select",gd],["input",gd],["output",gd],["button",gd],["datalist",gd],["textarea",gd],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Sd],["dt",Sd],["address",Cd],["article",Cd],["aside",Cd],["blockquote",Cd],["details",Cd],["div",Cd],["dl",Cd],["fieldset",Cd],["figcaption",Cd],["figure",Cd],["footer",Cd],["form",Cd],["header",Cd],["hr",Cd],["main",Cd],["nav",Cd],["ol",Cd],["pre",Cd],["section",Cd],["table",Cd],["ul",Cd],["rt",Qd],["rp",Qd],["tbody",bd],["tfoot",bd]]);const Rd=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);const Td=new Set(["math","svg"]);const Pd=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]);const Od=/\s|\//;class Parser_Parser{constructor(u,y={}){var C,D,_,j,$;this.options=y;this.startIndex=0;this.endIndex=0;this.openTagStart=0;this.tagname="";this.attribname="";this.attribvalue="";this.attribs=null;this.stack=[];this.foreignContext=[];this.buffers=[];this.bufferOffset=0;this.writeIndex=0;this.ended=false;this.cbs=u!==null&&u!==void 0?u:{};this.lowerCaseTagNames=(C=y.lowerCaseTags)!==null&&C!==void 0?C:!y.xmlMode;this.lowerCaseAttributeNames=(D=y.lowerCaseAttributeNames)!==null&&D!==void 0?D:!y.xmlMode;this.tokenizer=new((_=y.Tokenizer)!==null&&_!==void 0?_:Tokenizer)(this.options,this);($=(j=this.cbs).onparserinit)===null||$===void 0?void 0:$.call(j,this)}ontext(u,y){var C,D;const _=this.getSlice(u,y);this.endIndex=y-1;(D=(C=this.cbs).ontext)===null||D===void 0?void 0:D.call(C,_);this.startIndex=y}ontextentity(u){var y,C;const D=this.tokenizer.getSectionStart();this.endIndex=D-1;(C=(y=this.cbs).ontext)===null||C===void 0?void 0:C.call(y,Jf(u));this.startIndex=D}isVoidElement(u){return!this.options.xmlMode&&Rd.has(u)}onopentagname(u,y){this.endIndex=y;let C=this.getSlice(u,y);if(this.lowerCaseTagNames){C=C.toLowerCase()}this.emitOpenTag(C)}emitOpenTag(u){var y,C,D,_;this.openTagStart=this.startIndex;this.tagname=u;const j=!this.options.xmlMode&&_d.get(u);if(j){while(this.stack.length>0&&j.has(this.stack[this.stack.length-1])){const u=this.stack.pop();(C=(y=this.cbs).onclosetag)===null||C===void 0?void 0:C.call(y,u,true)}}if(!this.isVoidElement(u)){this.stack.push(u);if(Td.has(u)){this.foreignContext.push(true)}else if(Pd.has(u)){this.foreignContext.push(false)}}(_=(D=this.cbs).onopentagname)===null||_===void 0?void 0:_.call(D,u);if(this.cbs.onopentag)this.attribs={}}endOpenTag(u){var y,C;this.startIndex=this.openTagStart;if(this.attribs){(C=(y=this.cbs).onopentag)===null||C===void 0?void 0:C.call(y,this.tagname,this.attribs,u);this.attribs=null}if(this.cbs.onclosetag&&this.isVoidElement(this.tagname)){this.cbs.onclosetag(this.tagname,true)}this.tagname=""}onopentagend(u){this.endIndex=u;this.endOpenTag(false);this.startIndex=u+1}onclosetag(u,y){var C,D,_,j,$,ne;this.endIndex=y;let oe=this.getSlice(u,y);if(this.lowerCaseTagNames){oe=oe.toLowerCase()}if(Td.has(oe)||Pd.has(oe)){this.foreignContext.pop()}if(!this.isVoidElement(oe)){const u=this.stack.lastIndexOf(oe);if(u!==-1){if(this.cbs.onclosetag){let y=this.stack.length-u;while(y--){this.cbs.onclosetag(this.stack.pop(),y!==0)}}else this.stack.length=u}else if(!this.options.xmlMode&&oe==="p"){this.emitOpenTag("p");this.closeCurrentTag(true)}}else if(!this.options.xmlMode&&oe==="br"){(D=(C=this.cbs).onopentagname)===null||D===void 0?void 0:D.call(C,"br");(j=(_=this.cbs).onopentag)===null||j===void 0?void 0:j.call(_,"br",{},true);(ne=($=this.cbs).onclosetag)===null||ne===void 0?void 0:ne.call($,"br",false)}this.startIndex=y+1}onselfclosingtag(u){this.endIndex=u;if(this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]){this.closeCurrentTag(false);this.startIndex=u+1}else{this.onopentagend(u)}}closeCurrentTag(u){var y,C;const D=this.tagname;this.endOpenTag(u);if(this.stack[this.stack.length-1]===D){(C=(y=this.cbs).onclosetag)===null||C===void 0?void 0:C.call(y,D,!u);this.stack.pop()}}onattribname(u,y){this.startIndex=u;const C=this.getSlice(u,y);this.attribname=this.lowerCaseAttributeNames?C.toLowerCase():C}onattribdata(u,y){this.attribvalue+=this.getSlice(u,y)}onattribentity(u){this.attribvalue+=Jf(u)}onattribend(u,y){var C,D;this.endIndex=y;(D=(C=this.cbs).onattribute)===null||D===void 0?void 0:D.call(C,this.attribname,this.attribvalue,u===hd.Double?'"':u===hd.Single?"'":u===hd.NoValue?undefined:null);if(this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)){this.attribs[this.attribname]=this.attribvalue}this.attribvalue=""}getInstructionName(u){const y=u.search(Od);let C=y<0?u:u.substr(0,y);if(this.lowerCaseTagNames){C=C.toLowerCase()}return C}ondeclaration(u,y){this.endIndex=y;const C=this.getSlice(u,y);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(C);this.cbs.onprocessinginstruction(`!${u}`,`!${C}`)}this.startIndex=y+1}onprocessinginstruction(u,y){this.endIndex=y;const C=this.getSlice(u,y);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(C);this.cbs.onprocessinginstruction(`?${u}`,`?${C}`)}this.startIndex=y+1}oncomment(u,y,C){var D,_,j,$;this.endIndex=y;(_=(D=this.cbs).oncomment)===null||_===void 0?void 0:_.call(D,this.getSlice(u,y-C));($=(j=this.cbs).oncommentend)===null||$===void 0?void 0:$.call(j);this.startIndex=y+1}oncdata(u,y,C){var D,_,j,$,ne,oe,le,de,Ae,pe;this.endIndex=y;const Ee=this.getSlice(u,y-C);if(this.options.xmlMode||this.options.recognizeCDATA){(_=(D=this.cbs).oncdatastart)===null||_===void 0?void 0:_.call(D);($=(j=this.cbs).ontext)===null||$===void 0?void 0:$.call(j,Ee);(oe=(ne=this.cbs).oncdataend)===null||oe===void 0?void 0:oe.call(ne)}else{(de=(le=this.cbs).oncomment)===null||de===void 0?void 0:de.call(le,`[CDATA[${Ee}]]`);(pe=(Ae=this.cbs).oncommentend)===null||pe===void 0?void 0:pe.call(Ae)}this.startIndex=y+1}onend(){var u,y;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let u=this.stack.length;u>0;this.cbs.onclosetag(this.stack[--u],true));}(y=(u=this.cbs).onend)===null||y===void 0?void 0:y.call(u)}reset(){var u,y,C,D;(y=(u=this.cbs).onreset)===null||y===void 0?void 0:y.call(u);this.tokenizer.reset();this.tagname="";this.attribname="";this.attribs=null;this.stack.length=0;this.startIndex=0;this.endIndex=0;(D=(C=this.cbs).onparserinit)===null||D===void 0?void 0:D.call(C,this);this.buffers.length=0;this.bufferOffset=0;this.writeIndex=0;this.ended=false}parseComplete(u){this.reset();this.end(u)}getSlice(u,y){while(u-this.bufferOffset>=this.buffers[0].length){this.shiftBuffer()}let C=this.buffers[0].slice(u-this.bufferOffset,y-this.bufferOffset);while(y-this.bufferOffset>this.buffers[0].length){this.shiftBuffer();C+=this.buffers[0].slice(0,y-this.bufferOffset)}return C}shiftBuffer(){this.bufferOffset+=this.buffers[0].length;this.writeIndex--;this.buffers.shift()}write(u){var y,C;if(this.ended){(C=(y=this.cbs).onerror)===null||C===void 0?void 0:C.call(y,new Error(".write() after done!"));return}this.buffers.push(u);if(this.tokenizer.running){this.tokenizer.write(u);this.writeIndex++}}end(u){var y,C;if(this.ended){(C=(y=this.cbs).onerror)===null||C===void 0?void 0:C.call(y,new Error(".end() after done!"));return}if(u)this.write(u);this.ended=true;this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex<this.buffers.length){this.tokenizer.write(this.buffers[this.writeIndex++])}if(this.ended)this.tokenizer.end()}parseChunk(u){this.write(u)}done(u){this.end(u)}}const jd=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u=>u.charCodeAt(0))));const $d=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u=>u.charCodeAt(0))));var qd;const eA=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const tA=(qd=String.fromCodePoint)!==null&&qd!==void 0?qd:function(u){let y="";if(u>65535){u-=65536;y+=String.fromCharCode(u>>>10&1023|55296);u=56320|u&1023}y+=String.fromCharCode(u);return y};function decode_codepoint_replaceCodePoint(u){var y;if(u>=55296&&u<=57343||u>1114111){return 65533}return(y=eA.get(u))!==null&&y!==void 0?y:u}function decode_codepoint_decodeCodePoint(u){return tA(decode_codepoint_replaceCodePoint(u))}var rA;(function(u){u[u["NUM"]=35]="NUM";u[u["SEMI"]=59]="SEMI";u[u["EQUALS"]=61]="EQUALS";u[u["ZERO"]=48]="ZERO";u[u["NINE"]=57]="NINE";u[u["LOWER_A"]=97]="LOWER_A";u[u["LOWER_F"]=102]="LOWER_F";u[u["LOWER_X"]=120]="LOWER_X";u[u["LOWER_Z"]=122]="LOWER_Z";u[u["UPPER_A"]=65]="UPPER_A";u[u["UPPER_F"]=70]="UPPER_F";u[u["UPPER_Z"]=90]="UPPER_Z"})(rA||(rA={}));const nA=32;var iA;(function(u){u[u["VALUE_LENGTH"]=49152]="VALUE_LENGTH";u[u["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";u[u["JUMP_TABLE"]=127]="JUMP_TABLE"})(iA||(iA={}));function esm_decode_isNumber(u){return u>=rA.ZERO&&u<=rA.NINE}function decode_isHexadecimalCharacter(u){return u>=rA.UPPER_A&&u<=rA.UPPER_F||u>=rA.LOWER_A&&u<=rA.LOWER_F}function decode_isAsciiAlphaNumeric(u){return u>=rA.UPPER_A&&u<=rA.UPPER_Z||u>=rA.LOWER_A&&u<=rA.LOWER_Z||esm_decode_isNumber(u)}function decode_isEntityInAttributeInvalidEnd(u){return u===rA.EQUALS||decode_isAsciiAlphaNumeric(u)}var sA;(function(u){u[u["EntityStart"]=0]="EntityStart";u[u["NumericStart"]=1]="NumericStart";u[u["NumericDecimal"]=2]="NumericDecimal";u[u["NumericHex"]=3]="NumericHex";u[u["NamedEntity"]=4]="NamedEntity"})(sA||(sA={}));var oA;(function(u){u[u["Legacy"]=0]="Legacy";u[u["Strict"]=1]="Strict";u[u["Attribute"]=2]="Attribute"})(oA||(oA={}));class decode_EntityDecoder{constructor(u,y,C){this.decodeTree=u;this.emitCodePoint=y;this.errors=C;this.state=sA.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=oA.Strict}startEntity(u){this.decodeMode=u;this.state=sA.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(u,y){switch(this.state){case sA.EntityStart:{if(u.charCodeAt(y)===rA.NUM){this.state=sA.NumericStart;this.consumed+=1;return this.stateNumericStart(u,y+1)}this.state=sA.NamedEntity;return this.stateNamedEntity(u,y)}case sA.NumericStart:{return this.stateNumericStart(u,y)}case sA.NumericDecimal:{return this.stateNumericDecimal(u,y)}case sA.NumericHex:{return this.stateNumericHex(u,y)}case sA.NamedEntity:{return this.stateNamedEntity(u,y)}}}stateNumericStart(u,y){if(y>=u.length){return-1}if((u.charCodeAt(y)|nA)===rA.LOWER_X){this.state=sA.NumericHex;this.consumed+=1;return this.stateNumericHex(u,y+1)}this.state=sA.NumericDecimal;return this.stateNumericDecimal(u,y)}addToNumericResult(u,y,C,D){if(y!==C){const _=C-y;this.result=this.result*Math.pow(D,_)+parseInt(u.substr(y,_),D);this.consumed+=_}}stateNumericHex(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(esm_decode_isNumber(D)||decode_isHexadecimalCharacter(D)){y+=1}else{this.addToNumericResult(u,C,y,16);return this.emitNumericEntity(D,3)}}this.addToNumericResult(u,C,y,16);return-1}stateNumericDecimal(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(esm_decode_isNumber(D)){y+=1}else{this.addToNumericResult(u,C,y,10);return this.emitNumericEntity(D,2)}}this.addToNumericResult(u,C,y,10);return-1}emitNumericEntity(u,y){var C;if(this.consumed<=y){(C=this.errors)===null||C===void 0?void 0:C.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(u===rA.SEMI){this.consumed+=1}else if(this.decodeMode===oA.Strict){return 0}this.emitCodePoint(decode_codepoint_replaceCodePoint(this.result),this.consumed);if(this.errors){if(u!==rA.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(u,y){const{decodeTree:C}=this;let D=C[this.treeIndex];let _=(D&iA.VALUE_LENGTH)>>14;for(;y<u.length;y++,this.excess++){const j=u.charCodeAt(y);this.treeIndex=decode_determineBranch(C,D,this.treeIndex+Math.max(1,_),j);if(this.treeIndex<0){return this.result===0||this.decodeMode===oA.Attribute&&(_===0||decode_isEntityInAttributeInvalidEnd(j))?0:this.emitNotTerminatedNamedEntity()}D=C[this.treeIndex];_=(D&iA.VALUE_LENGTH)>>14;if(_!==0){if(j===rA.SEMI){return this.emitNamedEntityData(this.treeIndex,_,this.consumed+this.excess)}if(this.decodeMode!==oA.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var u;const{result:y,decodeTree:C}=this;const D=(C[y]&iA.VALUE_LENGTH)>>14;this.emitNamedEntityData(y,D,this.consumed);(u=this.errors)===null||u===void 0?void 0:u.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(u,y,C){const{decodeTree:D}=this;this.emitCodePoint(y===1?D[u]&~iA.VALUE_LENGTH:D[u+1],C);if(y===3){this.emitCodePoint(D[u+2],C)}return C}end(){var u;switch(this.state){case sA.NamedEntity:{return this.result!==0&&(this.decodeMode!==oA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case sA.NumericDecimal:{return this.emitNumericEntity(0,2)}case sA.NumericHex:{return this.emitNumericEntity(0,3)}case sA.NumericStart:{(u=this.errors)===null||u===void 0?void 0:u.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case sA.EntityStart:{return 0}}}}function decode_getDecoder(u){let y="";const C=new decode_EntityDecoder(u,(u=>y+=tA(u)));return function decodeWithTrie(u,D){let _=0;let j=0;while((j=u.indexOf("&",j))>=0){y+=u.slice(_,j);C.startEntity(D);const $=C.write(u,j+1);if($<0){_=j+C.end();break}_=j+$;j=$===0?_+1:_}const $=y+u.slice(_);y="";return $}}function decode_determineBranch(u,y,C,D){const _=(y&iA.BRANCH_LENGTH)>>7;const j=y&iA.JUMP_TABLE;if(_===0){return j!==0&&D===j?C:-1}if(j){const y=D-j;return y<0||y>=_?-1:u[C+y]-1}let $=C;let ne=$+_-1;while($<=ne){const y=$+ne>>>1;const C=u[y];if(C<D){$=y+1}else if(C>D){ne=y-1}else{return u[y+_]}}return-1}const aA=decode_getDecoder(jd);const lA=decode_getDecoder($d);function esm_decode_decodeHTML(u,y=oA.Legacy){return aA(u,y)}function decode_decodeHTMLAttribute(u){return aA(u,oA.Attribute)}function decode_decodeHTMLStrict(u){return aA(u,oA.Strict)}function esm_decode_decodeXML(u){return lA(u,oA.Strict)}function restoreDiff(u){for(let y=1;y<u.length;y++){u[y][0]+=u[y-1][0]+1}return u}const cA=new Map(restoreDiff([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(restoreDiff([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(restoreDiff([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(restoreDiff([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const uA=/["&'<>$\x80-\uFFFF]/g;const fA=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);const dA=String.prototype.codePointAt!=null?(u,y)=>u.codePointAt(y):(u,y)=>(u.charCodeAt(y)&64512)===55296?(u.charCodeAt(y)-55296)*1024+u.charCodeAt(y+1)-56320+65536:u.charCodeAt(y);function escape_encodeXML(u){let y="";let C=0;let D;while((D=uA.exec(u))!==null){const _=D.index;const j=u.charCodeAt(_);const $=fA.get(j);if($!==undefined){y+=u.substring(C,_)+$;C=_+1}else{y+=`${u.substring(C,_)}&#x${dA(u,_).toString(16)};`;C=uA.lastIndex+=Number((j&64512)===55296)}}return y+u.substr(C)}const AA=null&&escape_encodeXML;function getEscaper(u,y){return function escape(C){let D;let _=0;let j="";while(D=u.exec(C)){if(_!==D.index){j+=C.substring(_,D.index)}j+=y.get(D[0].charCodeAt(0));_=D.index+1}return j+C.substring(_)}}const hA=getEscaper(/[&<>'"]/g,fA);const pA=getEscaper(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]));const gA=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));const mA=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encode_encodeHTML(u){return encodeHTMLTrieRe(mA,u)}function encode_encodeNonAsciiHTML(u){return encodeHTMLTrieRe(xmlReplacer,u)}function encodeHTMLTrieRe(u,y){let C="";let D=0;let _;while((_=u.exec(y))!==null){const j=_.index;C+=y.substring(D,j);const $=y.charCodeAt(j);let ne=htmlTrie.get($);if(typeof ne==="object"){if(j+1<y.length){const _=y.charCodeAt(j+1);const $=typeof ne.n==="number"?ne.n===_?ne.o:undefined:ne.n.get(_);if($!==undefined){C+=$;D=u.lastIndex+=1;continue}}ne=ne.v}if(ne!==undefined){C+=ne;D=j+1}else{const _=getCodePoint(y,j);C+=`&#x${_.toString(16)};`;D=u.lastIndex+=Number(_!==$)}}return C+y.substr(D)}var yA;(function(u){u[u["XML"]=0]="XML";u[u["HTML"]=1]="HTML"})(yA||(yA={}));var EA;(function(u){u[u["UTF8"]=0]="UTF8";u[u["ASCII"]=1]="ASCII";u[u["Extensive"]=2]="Extensive";u[u["Attribute"]=3]="Attribute";u[u["Text"]=4]="Text"})(EA||(EA={}));function decode(u,y=yA.XML){const C=typeof y==="number"?y:y.level;if(C===yA.HTML){const C=typeof y==="object"?y.mode:undefined;return decodeHTML(u,C)}return decodeXML(u)}function decodeStrict(u,y=yA.XML){var C;const D=typeof y==="number"?{level:y}:y;(C=D.mode)!==null&&C!==void 0?C:D.mode=DecodingMode.Strict;return decode(u,D)}function encode(u,y=yA.XML){const C=typeof y==="number"?{level:y}:y;if(C.mode===EA.UTF8)return escapeUTF8(u);if(C.mode===EA.Attribute)return escapeAttribute(u);if(C.mode===EA.Text)return escapeText(u);if(C.level===yA.HTML){if(C.mode===EA.ASCII){return encodeNonAsciiHTML(u)}return encodeHTML(u)}return encodeXML(u)}const CA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((u=>[u.toLowerCase(),u])));const IA=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((u=>[u.toLowerCase(),u])));const bA=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(u){return u.replace(/"/g,"&quot;")}function formatAttributes(u,y){var C;if(!u)return;const D=((C=y.encodeEntities)!==null&&C!==void 0?C:y.decodeEntities)===false?replaceQuotes:y.xmlMode||y.encodeEntities!=="utf8"?escape_encodeXML:pA;return Object.keys(u).map((C=>{var _,j;const $=(_=u[C])!==null&&_!==void 0?_:"";if(y.xmlMode==="foreign"){C=(j=IA.get(C))!==null&&j!==void 0?j:C}if(!y.emptyAttrs&&!y.xmlMode&&$===""){return C}return`${C}="${D($)}"`})).join(" ")}const vA=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render(u,y={}){const C="length"in u?u:[u];let D="";for(let u=0;u<C.length;u++){D+=renderNode(C[u],y)}return D}const wA=null&&render;function renderNode(u,y){switch(u.type){case Jc:return render(u.children,y);case iu:case Yc:return renderDirective(u);case Xc:return renderComment(u);case nu:return renderCdata(u);case eu:case tu:case ru:return renderTag(u,y);case Kc:return renderText(u,y)}}const BA=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]);const DA=new Set(["svg","math"]);function renderTag(u,y){var C;if(y.xmlMode==="foreign"){u.name=(C=CA.get(u.name))!==null&&C!==void 0?C:u.name;if(u.parent&&BA.has(u.parent.name)){y={...y,xmlMode:false}}}if(!y.xmlMode&&DA.has(u.name)){y={...y,xmlMode:"foreign"}}let D=`<${u.name}`;const _=formatAttributes(u.attribs,y);if(_){D+=` ${_}`}if(u.children.length===0&&(y.xmlMode?y.selfClosingTags!==false:y.selfClosingTags&&vA.has(u.name))){if(!y.xmlMode)D+=" ";D+="/>"}else{D+=">";if(u.children.length>0){D+=render(u.children,y)}if(y.xmlMode||!vA.has(u.name)){D+=`</${u.name}>`}}return D}function renderDirective(u){return`<${u.data}>`}function renderText(u,y){var C;let D=u.data||"";if(((C=y.encodeEntities)!==null&&C!==void 0?C:y.decodeEntities)!==false&&!(!y.xmlMode&&u.parent&&bA.has(u.parent.name))){D=y.xmlMode||y.encodeEntities!=="utf8"?escape_encodeXML(D):gA(D)}return D}function renderCdata(u){return`<![CDATA[${u.children[0].data}]]>`}function renderComment(u){return`\x3c!--${u.data}--\x3e`}function getOuterHTML(u,y){return renderHTML(u,y)}function getInnerHTML(u,y){return hasChildren(u)?u.children.map((u=>getOuterHTML(u,y))).join(""):""}function getText(u){if(Array.isArray(u))return u.map(getText).join("");if(isTag(u))return u.name==="br"?"\n":getText(u.children);if(isCDATA(u))return getText(u.children);if(isText(u))return u.data;return""}function stringify_textContent(u){if(Array.isArray(u))return u.map(stringify_textContent).join("");if(hasChildren(u)&&!isComment(u)){return stringify_textContent(u.children)}if(isText(u))return u.data;return""}function innerText(u){if(Array.isArray(u))return u.map(innerText).join("");if(hasChildren(u)&&(u.type===ElementType.Tag||isCDATA(u))){return innerText(u.children)}if(isText(u))return u.data;return""}function getChildren(u){return hasChildren(u)?u.children:[]}function getParent(u){return u.parent||null}function getSiblings(u){const y=getParent(u);if(y!=null)return getChildren(y);const C=[u];let{prev:D,next:_}=u;while(D!=null){C.unshift(D);({prev:D}=D)}while(_!=null){C.push(_);({next:_}=_)}return C}function getAttributeValue(u,y){var C;return(C=u.attribs)===null||C===void 0?void 0:C[y]}function hasAttrib(u,y){return u.attribs!=null&&Object.prototype.hasOwnProperty.call(u.attribs,y)&&u.attribs[y]!=null}function getName(u){return u.name}function nextElementSibling(u){let{next:y}=u;while(y!==null&&!isTag(y))({next:y}=y);return y}function prevElementSibling(u){let{prev:y}=u;while(y!==null&&!isTag(y))({prev:y}=y);return y}function querying_filter(u,y,C=true,D=Infinity){return find(u,Array.isArray(y)?y:[y],C,D)}function find(u,y,C,D){const _=[];const j=[Array.isArray(y)?y:[y]];const $=[0];for(;;){if($[0]>=j[0].length){if($.length===1){return _}j.shift();$.shift();continue}const y=j[0][$[0]++];if(u(y)){_.push(y);if(--D<=0)return _}if(C&&hasChildren(y)&&y.children.length>0){$.unshift(0);j.unshift(y.children)}}}function findOneChild(u,y){return y.find(u)}function querying_findOne(u,y,C=true){const D=Array.isArray(y)?y:[y];for(let y=0;y<D.length;y++){const _=D[y];if(isTag(_)&&u(_)){return _}if(C&&hasChildren(_)&&_.children.length>0){const y=querying_findOne(u,_.children,true);if(y)return y}}return null}function existsOne(u,y){return(Array.isArray(y)?y:[y]).some((y=>isTag(y)&&u(y)||hasChildren(y)&&existsOne(u,y.children)))}function findAll(u,y){const C=[];const D=[Array.isArray(y)?y:[y]];const _=[0];for(;;){if(_[0]>=D[0].length){if(D.length===1){return C}D.shift();_.shift();continue}const y=D[0][_[0]++];if(isTag(y)&&u(y))C.push(y);if(hasChildren(y)&&y.children.length>0){_.unshift(0);D.unshift(y.children)}}}const SA={tag_name(u){if(typeof u==="function"){return y=>node_isTag(y)&&u(y.name)}else if(u==="*"){return node_isTag}return y=>node_isTag(y)&&y.name===u},tag_type(u){if(typeof u==="function"){return y=>u(y.type)}return y=>y.type===u},tag_contains(u){if(typeof u==="function"){return y=>node_isText(y)&&u(y.data)}return y=>node_isText(y)&&y.data===u}};function getAttribCheck(u,y){if(typeof y==="function"){return C=>isTag(C)&&y(C.attribs[u])}return C=>isTag(C)&&C.attribs[u]===y}function combineFuncs(u,y){return C=>u(C)||y(C)}function compileTest(u){const y=Object.keys(u).map((y=>{const C=u[y];return Object.prototype.hasOwnProperty.call(SA,y)?SA[y](C):getAttribCheck(y,C)}));return y.length===0?null:y.reduce(combineFuncs)}function testElement(u,y){const C=compileTest(u);return C?C(y):true}function getElements(u,y,C,D=Infinity){const _=compileTest(u);return _?filter(_,y,C,D):[]}function getElementById(u,y,C=true){if(!Array.isArray(y))y=[y];return findOne(getAttribCheck("id",u),y,C)}function legacy_getElementsByTagName(u,y,C=true,D=Infinity){return filter(SA["tag_name"](u),y,C,D)}function getElementsByClassName(u,y,C=true,D=Infinity){return filter(getAttribCheck("class",u),y,C,D)}function getElementsByTagType(u,y,C=true,D=Infinity){return filter(SA["tag_type"](u),y,C,D)}function removeSubsets(u){let y=u.length;while(--y>=0){const C=u[y];if(y>0&&u.lastIndexOf(C,y-1)>=0){u.splice(y,1);continue}for(let D=C.parent;D;D=D.parent){if(u.includes(D)){u.splice(y,1);break}}}return u}var kA;(function(u){u[u["DISCONNECTED"]=1]="DISCONNECTED";u[u["PRECEDING"]=2]="PRECEDING";u[u["FOLLOWING"]=4]="FOLLOWING";u[u["CONTAINS"]=8]="CONTAINS";u[u["CONTAINED_BY"]=16]="CONTAINED_BY"})(kA||(kA={}));function compareDocumentPosition(u,y){const C=[];const D=[];if(u===y){return 0}let _=hasChildren(u)?u:u.parent;while(_){C.unshift(_);_=_.parent}_=hasChildren(y)?y:y.parent;while(_){D.unshift(_);_=_.parent}const j=Math.min(C.length,D.length);let $=0;while($<j&&C[$]===D[$]){$++}if($===0){return kA.DISCONNECTED}const ne=C[$-1];const oe=ne.children;const le=C[$];const de=D[$];if(oe.indexOf(le)>oe.indexOf(de)){if(ne===y){return kA.FOLLOWING|kA.CONTAINED_BY}return kA.FOLLOWING}if(ne===u){return kA.PRECEDING|kA.CONTAINS}return kA.PRECEDING}function uniqueSort(u){u=u.filter(((u,y,C)=>!C.includes(u,y+1)));u.sort(((u,y)=>{const C=compareDocumentPosition(u,y);if(C&kA.PRECEDING){return-1}else if(C&kA.FOLLOWING){return 1}return 0}));return u}function feeds_getFeed(u){const y=getOneElement(isValidFeed,u);return!y?null:y.name==="feed"?getAtomFeed(y):getRssFeed(y)}function getAtomFeed(u){var y;const C=u.children;const D={type:"atom",items:getElementsByTagName("entry",C).map((u=>{var y;const{children:C}=u;const D={media:getMediaElements(C)};addConditionally(D,"id","id",C);addConditionally(D,"title","title",C);const _=(y=getOneElement("link",C))===null||y===void 0?void 0:y.attribs["href"];if(_){D.link=_}const j=feeds_fetch("summary",C)||feeds_fetch("content",C);if(j){D.description=j}const $=feeds_fetch("updated",C);if($){D.pubDate=new Date($)}return D}))};addConditionally(D,"id","id",C);addConditionally(D,"title","title",C);const _=(y=getOneElement("link",C))===null||y===void 0?void 0:y.attribs["href"];if(_){D.link=_}addConditionally(D,"description","subtitle",C);const j=feeds_fetch("updated",C);if(j){D.updated=new Date(j)}addConditionally(D,"author","email",C,true);return D}function getRssFeed(u){var y,C;const D=(C=(y=getOneElement("channel",u.children))===null||y===void 0?void 0:y.children)!==null&&C!==void 0?C:[];const _={type:u.name.substr(0,3),id:"",items:getElementsByTagName("item",u.children).map((u=>{const{children:y}=u;const C={media:getMediaElements(y)};addConditionally(C,"id","guid",y);addConditionally(C,"title","title",y);addConditionally(C,"link","link",y);addConditionally(C,"description","description",y);const D=feeds_fetch("pubDate",y)||feeds_fetch("dc:date",y);if(D)C.pubDate=new Date(D);return C}))};addConditionally(_,"title","title",D);addConditionally(_,"link","link",D);addConditionally(_,"description","description",D);const j=feeds_fetch("lastBuildDate",D);if(j){_.updated=new Date(j)}addConditionally(_,"author","managingEditor",D,true);return _}const QA=null&&["url","type","lang"];const xA=null&&["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(u){return getElementsByTagName("media:content",u).map((u=>{const{attribs:y}=u;const C={medium:y["medium"],isDefault:!!y["isDefault"]};for(const u of QA){if(y[u]){C[u]=y[u]}}for(const u of xA){if(y[u]){C[u]=parseInt(y[u],10)}}if(y["expression"]){C.expression=y["expression"]}return C}))}function getOneElement(u,y){return getElementsByTagName(u,y,true,1)[0]}function feeds_fetch(u,y,C=false){return textContent(getElementsByTagName(u,y,C,1)).trim()}function addConditionally(u,y,C,D,_=false){const j=feeds_fetch(C,D,_);if(j)u[y]=j}function isValidFeed(u){return u==="rss"||u==="feed"||u==="rdf:RDF"}function parseDocument(u,y){const C=new esm_DomHandler(undefined,y);new Parser_Parser(C,y).end(u);return C.root}function parseDOM(u,y){return parseDocument(u,y).children}function createDomStream(u,y,C){const D=new DomHandler(u,y,C);return new Parser(D,y)}const FA={xmlMode:true};function parseFeed(u,y=FA){return getFeed(parseDOM(u,y))}var _A=C(2569);function limitedDepthRecursive(u,y,C=()=>undefined){if(u===undefined){const f1=function(...u){return y(f1,...u)};return f1}if(u>=0){return function(...D){return y(limitedDepthRecursive(u-1,y,C),...D)}}return C}function trimCharacter(u,y){let C=0;let D=u.length;while(C<D&&u[C]===y){++C}while(D>C&&u[D-1]===y){--D}return C>0||D<u.length?u.substring(C,D):u}function trimCharacterEnd(u,y){let C=u.length;while(C>0&&u[C-1]===y){--C}return C<u.length?u.substring(0,C):u}function unicodeEscape(u){return u.replace(/[\s\S]/g,(u=>"\\u"+u.charCodeAt().toString(16).padStart(4,"0")))}function mergeDuplicatesPreferLast(u,y){const C=new Map;for(let D=u.length;D-- >0;){const _=u[D];const j=y(_);C.set(j,C.has(j)?_A(_,C.get(j),{arrayMerge:overwriteMerge$1}):_)}return[...C.values()].reverse()}const overwriteMerge$1=(u,y,C)=>[...y];function get(u,y){for(const C of y){if(!u){return undefined}u=u[C]}return u}function numberToLetterSequence(u,y="a",C=26){const D=[];do{u-=1;D.push(u%C);u=u/C>>0}while(u>0);const _=y.charCodeAt(0);return D.reverse().map((u=>String.fromCharCode(_+u))).join("")}const RA=["I","X","C","M"];const LA=["V","L","D"];function numberToRoman(u){return[...u+""].map((u=>+u)).reverse().map(((u,y)=>u%5<4?(u<5?"":LA[y])+RA[y].repeat(u%5):RA[y]+(u<5?LA[y]:RA[y+1]))).reverse().join("")}class InlineTextBuilder{constructor(u,y=undefined){this.lines=[];this.nextLineWords=[];this.maxLineLength=y||u.wordwrap||Number.MAX_VALUE;this.nextLineAvailableChars=this.maxLineLength;this.wrapCharacters=get(u,["longWordSplit","wrapCharacters"])||[];this.forceWrapOnLimit=get(u,["longWordSplit","forceWrapOnLimit"])||false;this.stashedSpace=false;this.wordBreakOpportunity=false}pushWord(u,y=false){if(this.nextLineAvailableChars<=0&&!y){this.startNewLine()}const C=this.nextLineWords.length===0;const D=u.length+(C?0:1);if(D<=this.nextLineAvailableChars||y){this.nextLineWords.push(u);this.nextLineAvailableChars-=D}else{const[y,...D]=this.splitLongWord(u);if(!C){this.startNewLine()}this.nextLineWords.push(y);this.nextLineAvailableChars-=y.length;for(const u of D){this.startNewLine();this.nextLineWords.push(u);this.nextLineAvailableChars-=u.length}}}popWord(){const u=this.nextLineWords.pop();if(u!==undefined){const y=this.nextLineWords.length===0;const C=u.length+(y?0:1);this.nextLineAvailableChars+=C}return u}concatWord(u,y=false){if(this.wordBreakOpportunity&&u.length>this.nextLineAvailableChars){this.pushWord(u,y);this.wordBreakOpportunity=false}else{const C=this.popWord();this.pushWord(C?C.concat(u):u,y)}}startNewLine(u=1){this.lines.push(this.nextLineWords);if(u>1){this.lines.push(...Array.from({length:u-1},(()=>[])))}this.nextLineWords=[];this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0;this.nextLineWords.length=0;this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((u=>u.join(" "))).join("\n")}splitLongWord(u){const y=[];let C=0;while(u.length>this.maxLineLength){const D=u.substring(0,this.maxLineLength);const _=u.substring(this.maxLineLength);const j=D.lastIndexOf(this.wrapCharacters[C]);if(j>-1){u=D.substring(j+1)+_;y.push(D.substring(0,j+1))}else{C++;if(C<this.wrapCharacters.length){u=D+_}else{if(this.forceWrapOnLimit){y.push(D);u=_;if(u.length>this.maxLineLength){continue}}else{u=D+_}break}}}y.push(u);return y}}class StackItem{constructor(u=null){this.next=u}getRoot(){return this.next?this.next:this}}class BlockStackItem extends StackItem{constructor(u,y=null,C=1,D=undefined){super(y);this.leadingLineBreaks=C;this.inlineTextBuilder=new InlineTextBuilder(u,D);this.rawText="";this.stashedLineBreaks=0;this.isPre=y&&y.isPre;this.isNoWrap=y&&y.isNoWrap}}class ListStackItem extends BlockStackItem{constructor(u,y=null,{interRowLineBreaks:C=1,leadingLineBreaks:D=2,maxLineLength:_=undefined,maxPrefixLength:j=0,prefixAlign:$="left"}={}){super(u,y,D,_);this.maxPrefixLength=j;this.prefixAlign=$;this.interRowLineBreaks=C}}class ListItemStackItem extends BlockStackItem{constructor(u,y=null,{leadingLineBreaks:C=1,maxLineLength:D=undefined,prefix:_=""}={}){super(u,y,C,D);this.prefix=_}}class TableStackItem extends StackItem{constructor(u=null){super(u);this.rows=[];this.isPre=u&&u.isPre;this.isNoWrap=u&&u.isNoWrap}}class TableRowStackItem extends StackItem{constructor(u=null){super(u);this.cells=[];this.isPre=u&&u.isPre;this.isNoWrap=u&&u.isNoWrap}}class TableCellStackItem extends StackItem{constructor(u,y=null,C=undefined){super(y);this.inlineTextBuilder=new InlineTextBuilder(u,C);this.rawText="";this.stashedLineBreaks=0;this.isPre=y&&y.isPre;this.isNoWrap=y&&y.isNoWrap}}class TransformerStackItem extends StackItem{constructor(u=null,y){super(u);this.transform=y}}function charactersToCodes(u){return[...u].map((u=>"\\u"+u.charCodeAt(0).toString(16).padStart(4,"0"))).join("")}class WhitespaceProcessor{constructor(u){this.whitespaceChars=u.preserveNewlines?u.whitespaceCharacters.replace(/\n/g,""):u.whitespaceCharacters;const y=charactersToCodes(this.whitespaceChars);this.leadingWhitespaceRe=new RegExp(`^[${y}]`);this.trailingWhitespaceRe=new RegExp(`[${y}]$`);this.allWhitespaceOrEmptyRe=new RegExp(`^[${y}]*$`);this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${y}])`,"g");this.newlineOrNonNewlineStringRe=new RegExp(`(\\n|[^\\n]+)`,"g");if(u.preserveNewlines){const u=new RegExp(`\\n|[^\\n${y}]+`,"gm");this.shrinkWrapAdd=function(y,C,D=u=>u,_=false){if(!y){return}const j=C.stashedSpace;let $=false;let ne=u.exec(y);if(ne){$=true;if(ne[0]==="\n"){C.startNewLine()}else if(j||this.testLeadingWhitespace(y)){C.pushWord(D(ne[0]),_)}else{C.concatWord(D(ne[0]),_)}while((ne=u.exec(y))!==null){if(ne[0]==="\n"){C.startNewLine()}else{C.pushWord(D(ne[0]),_)}}}C.stashedSpace=j&&!$||this.testTrailingWhitespace(y)}}else{const u=new RegExp(`[^${y}]+`,"g");this.shrinkWrapAdd=function(y,C,D=u=>u,_=false){if(!y){return}const j=C.stashedSpace;let $=false;let ne=u.exec(y);if(ne){$=true;if(j||this.testLeadingWhitespace(y)){C.pushWord(D(ne[0]),_)}else{C.concatWord(D(ne[0]),_)}while((ne=u.exec(y))!==null){C.pushWord(D(ne[0]),_)}}C.stashedSpace=j&&!$||this.testTrailingWhitespace(y)}}}addLiteral(u,y,C=true){if(!u){return}const D=y.stashedSpace;let _=false;let j=this.newlineOrNonNewlineStringRe.exec(u);if(j){_=true;if(j[0]==="\n"){y.startNewLine()}else if(D){y.pushWord(j[0],C)}else{y.concatWord(j[0],C)}while((j=this.newlineOrNonNewlineStringRe.exec(u))!==null){if(j[0]==="\n"){y.startNewLine()}else{y.pushWord(j[0],C)}}}y.stashedSpace=D&&!_}testLeadingWhitespace(u){return this.leadingWhitespaceRe.test(u)}testTrailingWhitespace(u){return this.trailingWhitespaceRe.test(u)}testContainsWords(u){return!this.allWhitespaceOrEmptyRe.test(u)}countNewlinesNoWords(u){this.newlineOrNonWhitespaceRe.lastIndex=0;let y=0;let C;while((C=this.newlineOrNonWhitespaceRe.exec(u))!==null){if(C[0]==="\n"){y++}else{return 0}}return y}}class BlockTextBuilder{constructor(u,y,C=undefined){this.options=u;this.picker=y;this.metadata=C;this.whitespaceProcessor=new WhitespaceProcessor(u);this._stackItem=new BlockStackItem(u);this._wordTransformer=undefined}pushWordTransform(u){this._wordTransformer=new TransformerStackItem(this._wordTransformer,u)}popWordTransform(){if(!this._wordTransformer){return undefined}const u=this._wordTransformer.transform;this._wordTransformer=this._wordTransformer.next;return u}startNoWrap(){this._stackItem.isNoWrap=true}stopNoWrap(){this._stackItem.isNoWrap=false}_getCombinedWordTransformer(){const u=this._wordTransformer?u=>applyTransformer(u,this._wordTransformer):undefined;const y=this.options.encodeCharacters;return u?y?C=>y(u(C)):u:y}_popStackItem(){const u=this._stackItem;this._stackItem=u.next;return u}addLineBreak(){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(this._stackItem.isPre){this._stackItem.rawText+="\n"}else{this._stackItem.inlineTextBuilder.startNewLine()}}addWordBreakOpportunity(){if(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem){this._stackItem.inlineTextBuilder.wordBreakOpportunity=true}}addInline(u,{noWordTransform:y=false}={}){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(this._stackItem.isPre){this._stackItem.rawText+=u;return}if(u.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(u)){return}if(this.options.preserveNewlines){const y=this.whitespaceProcessor.countNewlinesNoWords(u);if(y>0){this._stackItem.inlineTextBuilder.startNewLine(y);return}}if(this._stackItem.stashedLineBreaks){this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks)}this.whitespaceProcessor.shrinkWrapAdd(u,this._stackItem.inlineTextBuilder,y?undefined:this._getCombinedWordTransformer(),this._stackItem.isNoWrap);this._stackItem.stashedLineBreaks=0}addLiteral(u){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(u.length===0){return}if(this._stackItem.isPre){this._stackItem.rawText+=u;return}if(this._stackItem.stashedLineBreaks){this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks)}this.whitespaceProcessor.addLiteral(u,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap);this._stackItem.stashedLineBreaks=0}openBlock({leadingLineBreaks:u=1,reservedLineLength:y=0,isPre:C=false}={}){const D=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-y);this._stackItem=new BlockStackItem(this.options,this._stackItem,u,D);if(C){this._stackItem.isPre=true}}closeBlock({trailingLineBreaks:u=1,blockTransform:y=undefined}={}){const C=this._popStackItem();const D=y?y(html_to_text_getText(C)):html_to_text_getText(C);addText(this._stackItem,D,C.leadingLineBreaks,Math.max(C.stashedLineBreaks,u))}openList({maxPrefixLength:u=0,prefixAlign:y="left",interRowLineBreaks:C=1,leadingLineBreaks:D=2}={}){this._stackItem=new ListStackItem(this.options,this._stackItem,{interRowLineBreaks:C,leadingLineBreaks:D,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:u,prefixAlign:y})}openListItem({prefix:u=""}={}){if(!(this._stackItem instanceof ListStackItem)){throw new Error("Can't add a list item to something that is not a list! Check the formatter.")}const y=this._stackItem;const C=Math.max(u.length,y.maxPrefixLength);const D=Math.max(20,y.inlineTextBuilder.maxLineLength-C);this._stackItem=new ListItemStackItem(this.options,y,{prefix:u,maxLineLength:D,leadingLineBreaks:y.interRowLineBreaks})}closeListItem(){const u=this._popStackItem();const y=u.next;const C=Math.max(u.prefix.length,y.maxPrefixLength);const D="\n"+" ".repeat(C);const _=y.prefixAlign==="right"?u.prefix.padStart(C):u.prefix.padEnd(C);const j=_+html_to_text_getText(u).replace(/\n/g,D);addText(y,j,u.leadingLineBreaks,Math.max(u.stashedLineBreaks,y.interRowLineBreaks))}closeList({trailingLineBreaks:u=2}={}){const y=this._popStackItem();const C=html_to_text_getText(y);if(C){addText(this._stackItem,C,y.leadingLineBreaks,u)}}openTable(){this._stackItem=new TableStackItem(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof TableStackItem)){throw new Error("Can't add a table row to something that is not a table! Check the formatter.")}this._stackItem=new TableRowStackItem(this._stackItem)}openTableCell({maxColumnWidth:u=undefined}={}){if(!(this._stackItem instanceof TableRowStackItem)){throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.")}this._stackItem=new TableCellStackItem(this.options,this._stackItem,u)}closeTableCell({colspan:u=1,rowspan:y=1}={}){const C=this._popStackItem();const D=trimCharacter(html_to_text_getText(C),"\n");C.next.cells.push({colspan:u,rowspan:y,text:D})}closeTableRow(){const u=this._popStackItem();u.next.rows.push(u.cells)}closeTable({tableToString:u,leadingLineBreaks:y=2,trailingLineBreaks:C=2}){const D=this._popStackItem();const _=u(D.rows);if(_){addText(this._stackItem,_,y,C)}}toString(){return html_to_text_getText(this._stackItem.getRoot())}}function html_to_text_getText(u){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem)){throw new Error("Only blocks, list items and table cells can be requested for text contents.")}return u.inlineTextBuilder.isEmpty()?u.rawText:u.rawText+u.inlineTextBuilder.toString()}function addText(u,y,C,D){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem)){throw new Error("Only blocks, list items and table cells can contain text.")}const _=html_to_text_getText(u);const j=Math.max(u.stashedLineBreaks,C);u.inlineTextBuilder.clear();if(_){u.rawText=_+"\n".repeat(j)+y}else{u.rawText=y;u.leadingLineBreaks=j}u.stashedLineBreaks=D}function applyTransformer(u,y){return y?applyTransformer(y.transform(u),y.next):u}function compile$1(u={}){const y=u.selectors.filter((u=>!u.format));if(y.length){throw new Error("Following selectors have no specified format: "+y.map((u=>`\`${u.selector}\``)).join(", "))}const C=new DecisionTree(u.selectors.map((u=>[u.selector,u]))).build(hp2Builder);if(typeof u.encodeCharacters!=="function"){u.encodeCharacters=makeReplacerFromDict(u.encodeCharacters)}const D=new DecisionTree(u.baseElements.selectors.map(((u,y)=>[u,y+1]))).build(hp2Builder);function findBaseElements(y){return findBases(y,u,D)}const _=limitedDepthRecursive(u.limits.maxDepth,recursiveWalk,(function(y,C){C.addInline(u.limits.ellipsis||"")}));return function(y,D=undefined){return html_to_text_process(y,D,u,C,findBaseElements,_)}}function html_to_text_process(u,y,C,D,_,j){const $=C.limits.maxInputLength;if($&&u&&u.length>$){console.warn(`Input length ${u.length} is above allowed limit of ${$}. Truncating without ellipsis.`);u=u.substring(0,$)}const ne=parseDocument(u,{decodeEntities:C.decodeEntities});const oe=_(ne.children);const le=new BlockTextBuilder(C,D,y);j(oe,le);return le.toString()}function findBases(u,y,C){const D=[];function recursiveWalk(u,_){_=_.slice(0,y.limits.maxChildNodes);for(const j of _){if(j.type!=="tag"){continue}const _=C.pick1(j);if(_>0){D.push({selectorIndex:_,element:j})}else if(j.children){u(j.children)}if(D.length>=y.limits.maxBaseElements){return}}}const _=limitedDepthRecursive(y.limits.maxDepth,recursiveWalk);_(u);if(y.baseElements.orderBy!=="occurrence"){D.sort(((u,y)=>u.selectorIndex-y.selectorIndex))}return y.baseElements.returnDomByDefault&&D.length===0?u:D.map((u=>u.element))}function recursiveWalk(u,y,C){if(!y){return}const D=C.options;const _=y.length>D.limits.maxChildNodes;if(_){y=y.slice(0,D.limits.maxChildNodes);y.push({data:D.limits.ellipsis,type:"text"})}for(const _ of y){switch(_.type){case"text":{C.addInline(_.data);break}case"tag":{const y=C.picker.pick1(_);const j=D.formatters[y.format];j(_,u,C,y.options||{});break}}}return}function makeReplacerFromDict(u){if(!u||Object.keys(u).length===0){return undefined}const y=Object.entries(u).filter((([,u])=>u!==false));const C=new RegExp(y.map((([u])=>`(${unicodeEscape([...u][0])})`)).join("|"),"g");const D=y.map((([,u])=>u));const replacer=(u,...y)=>D[y.findIndex((u=>u))];return u=>u.replace(C,replacer)}function formatSkip(u,y,C,D){}function formatInlineString(u,y,C,D){C.addLiteral(D.string||"")}function formatBlockString(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.addLiteral(D.string||"");C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInline(u,y,C,D){y(u.children,C)}function formatBlock$1(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function renderOpenTag(u){const y=u.attribs&&u.attribs.length?" "+Object.entries(u.attribs).map((([u,y])=>y===""?u:`${u}=${y.replace(/"/g,"&quot;")}`)).join(" "):"";return`<${u.name}${y}>`}function renderCloseTag(u){return`</${u.name}>`}function formatInlineTag(u,y,C,D){C.startNoWrap();C.addLiteral(renderOpenTag(u));C.stopNoWrap();y(u.children,C);C.startNoWrap();C.addLiteral(renderCloseTag(u));C.stopNoWrap()}function formatBlockTag(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.startNoWrap();C.addLiteral(renderOpenTag(u));C.stopNoWrap();y(u.children,C);C.startNoWrap();C.addLiteral(renderCloseTag(u));C.stopNoWrap();C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInlineHtml(u,y,C,D){C.startNoWrap();C.addLiteral(render(u,{decodeEntities:C.options.decodeEntities}));C.stopNoWrap()}function formatBlockHtml(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.startNoWrap();C.addLiteral(render(u,{decodeEntities:C.options.decodeEntities}));C.stopNoWrap();C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInlineSurround(u,y,C,D){C.addLiteral(D.prefix||"");y(u.children,C);C.addLiteral(D.suffix||"")}var NA=Object.freeze({__proto__:null,block:formatBlock$1,blockHtml:formatBlockHtml,blockString:formatBlockString,blockTag:formatBlockTag,inline:formatInline,inlineHtml:formatInlineHtml,inlineString:formatInlineString,inlineSurround:formatInlineSurround,inlineTag:formatInlineTag,skip:formatSkip});function getRow(u,y){if(!u[y]){u[y]=[]}return u[y]}function findFirstVacantIndex(u,y=0){while(u[y]){y++}return y}function transposeInPlace(u,y){for(let C=0;C<y;C++){const y=getRow(u,C);for(let D=0;D<C;D++){const _=getRow(u,D);if(y[D]||_[C]){const u=y[D];y[D]=_[C];_[C]=u}}}}function putCellIntoLayout(u,y,C,D){for(let _=0;_<u.rowspan;_++){const j=getRow(y,C+_);for(let y=0;y<u.colspan;y++){j[D+y]=u}}}function getOrInitOffset(u,y){if(u[y]===undefined){u[y]=y===0?0:1+getOrInitOffset(u,y-1)}return u[y]}function updateOffset(u,y,C,D){u[y+C]=Math.max(getOrInitOffset(u,y+C),getOrInitOffset(u,y)+D)}function tableToString(u,y,C){const D=[];let _=0;const j=u.length;const $=[0];for(let C=0;C<j;C++){const j=getRow(D,C);const ne=u[C];let oe=0;for(let u=0;u<ne.length;u++){const _=ne[u];oe=findFirstVacantIndex(j,oe);putCellIntoLayout(_,D,C,oe);oe+=_.colspan;_.lines=_.text.split("\n");const le=_.lines.length;updateOffset($,C,_.rowspan,le+y)}_=j.length>_?j.length:_}transposeInPlace(D,j>_?j:_);const ne=[];const oe=[0];for(let u=0;u<_;u++){let y=0;let _;const le=Math.min(j,D[u].length);while(y<le){_=D[u][y];if(_){if(!_.rendered){let D=0;for(let C=0;C<_.lines.length;C++){const j=_.lines[C];const le=$[y]+C;ne[le]=(ne[le]||"").padEnd(oe[u])+j;D=j.length>D?j.length:D}updateOffset(oe,u,_.colspan,D+C);_.rendered=true}y+=_.rowspan}else{const u=$[y];ne[u]=ne[u]||"";y++}}}return ne.join("\n")}function formatLineBreak(u,y,C,D){C.addLineBreak()}function formatWbr(u,y,C,D){C.addWordBreakOpportunity()}function formatHorizontalLine(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.addInline("-".repeat(D.length||C.options.wordwrap||40));C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatParagraph(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatPre(u,y,C,D){C.openBlock({isPre:true,leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatHeading(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});if(D.uppercase!==false){C.pushWordTransform((u=>u.toUpperCase()));y(u.children,C);C.popWordTransform()}else{y(u.children,C)}C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatBlockquote(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2,reservedLineLength:2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2,blockTransform:u=>(D.trimEmptyLines!==false?trimCharacter(u,"\n"):u).split("\n").map((u=>"> "+u)).join("\n")})}function withBrackets(u,y){if(!y){return u}const C=typeof y[0]==="string"?y[0]:"[";const D=typeof y[1]==="string"?y[1]:"]";return C+u+D}function pathRewrite(u,y,C,D,_){const j=typeof y==="function"?y(u,D,_):u;return j[0]==="/"&&C?trimCharacterEnd(C,"/")+j:j}function formatImage(u,y,C,D){const _=u.attribs||{};const j=_.alt?_.alt:"";const $=!_.src?"":pathRewrite(_.src,D.pathRewrite,D.baseUrl,C.metadata,u);const ne=!$?j:!j?withBrackets($,D.linkBrackets):j+" "+withBrackets($,D.linkBrackets);C.addInline(ne,{noWordTransform:true})}function formatAnchor(u,y,C,D){function getHref(){if(D.ignoreHref){return""}if(!u.attribs||!u.attribs.href){return""}let y=u.attribs.href.replace(/^mailto:/,"");if(D.noAnchorUrl&&y[0]==="#"){return""}y=pathRewrite(y,D.pathRewrite,D.baseUrl,C.metadata,u);return y}const _=getHref();if(!_){y(u.children,C)}else{let j="";C.pushWordTransform((u=>{if(u){j+=u}return u}));y(u.children,C);C.popWordTransform();const $=D.hideLinkHrefIfSameAsText&&_===j;if(!$){C.addInline(!j?_:" "+withBrackets(_,D.linkBrackets),{noWordTransform:true})}}}function formatList(u,y,C,D,_){const j=get(u,["parent","name"])==="li";let $=0;const ne=(u.children||[]).filter((u=>u.type!=="text"||!/^\s*$/.test(u.data))).map((function(u){if(u.name!=="li"){return{node:u,prefix:""}}const y=j?_().trimStart():_();if(y.length>$){$=y.length}return{node:u,prefix:y}}));if(!ne.length){return}C.openList({interRowLineBreaks:1,leadingLineBreaks:j?1:D.leadingLineBreaks||2,maxPrefixLength:$,prefixAlign:"left"});for(const{node:u,prefix:D}of ne){C.openListItem({prefix:D});y([u],C);C.closeListItem()}C.closeList({trailingLineBreaks:j?1:D.trailingLineBreaks||2})}function formatUnorderedList(u,y,C,D){const _=D.itemPrefix||" * ";return formatList(u,y,C,D,(()=>_))}function formatOrderedList(u,y,C,D){let _=Number(u.attribs.start||"1");const j=getOrderedListIndexFunction(u.attribs.type);const nextPrefixCallback=()=>" "+j(_++)+". ";return formatList(u,y,C,D,nextPrefixCallback)}function getOrderedListIndexFunction(u="1"){switch(u){case"a":return u=>numberToLetterSequence(u,"a");case"A":return u=>numberToLetterSequence(u,"A");case"i":return u=>numberToRoman(u).toLowerCase();case"I":return u=>numberToRoman(u);case"1":default:return u=>u.toString()}}function splitClassesAndIds(u){const y=[];const C=[];for(const D of u){if(D.startsWith(".")){y.push(D.substring(1))}else if(D.startsWith("#")){C.push(D.substring(1))}}return{classes:y,ids:C}}function isDataTable(u,y){if(y===true){return true}if(!u){return false}const{classes:C,ids:D}=splitClassesAndIds(y);const _=(u["class"]||"").split(" ");const j=(u["id"]||"").split(" ");return _.some((u=>C.includes(u)))||j.some((u=>D.includes(u)))}function formatTable(u,y,C,D){return isDataTable(u.attribs,C.options.tables)?formatDataTable(u,y,C,D):formatBlock(u,y,C,D)}function formatBlock(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks})}function formatDataTable(u,y,C,D){C.openTable();u.children.forEach(walkTable);C.closeTable({tableToString:u=>tableToString(u,D.rowSpacing??0,D.colSpacing??3),leadingLineBreaks:D.leadingLineBreaks,trailingLineBreaks:D.trailingLineBreaks});function formatCell(u){const _=+get(u,["attribs","colspan"])||1;const j=+get(u,["attribs","rowspan"])||1;C.openTableCell({maxColumnWidth:D.maxColumnWidth});y(u.children,C);C.closeTableCell({colspan:_,rowspan:j})}function walkTable(u){if(u.type!=="tag"){return}const y=D.uppercaseHeaderCells!==false?u=>{C.pushWordTransform((u=>u.toUpperCase()));formatCell(u);C.popWordTransform()}:formatCell;switch(u.name){case"thead":case"tbody":case"tfoot":case"center":u.children.forEach(walkTable);return;case"tr":{C.openTableRow();for(const C of u.children){if(C.type!=="tag"){continue}switch(C.name){case"th":{y(C);break}case"td":{formatCell(C);break}}}C.closeTableRow();break}}}}var TA=Object.freeze({__proto__:null,anchor:formatAnchor,blockquote:formatBlockquote,dataTable:formatDataTable,heading:formatHeading,horizontalLine:formatHorizontalLine,image:formatImage,lineBreak:formatLineBreak,orderedList:formatOrderedList,paragraph:formatParagraph,pre:formatPre,table:formatTable,unorderedList:formatUnorderedList,wbr:formatWbr});const PA={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:true},decodeEntities:true,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:undefined,maxChildNodes:undefined,maxDepth:undefined,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:false,wrapCharacters:[]},preserveNewlines:false,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:false,ignoreHref:false,linkBrackets:["[","]"],noAnchorUrl:true}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:true}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:undefined,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:true}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f​",wordwrap:80};const concatMerge=(u,y,C)=>[...u,...y];const overwriteMerge=(u,y,C)=>[...y];const selectorsMerge=(u,y,C)=>u.some((u=>typeof u==="object"))?concatMerge(u,y):overwriteMerge(u,y);function compile(u={}){u=_A(PA,u,{arrayMerge:overwriteMerge,customMerge:u=>u==="selectors"?selectorsMerge:undefined});u.formatters=Object.assign({},NA,TA,u.formatters);u.selectors=mergeDuplicatesPreferLast(u.selectors,(u=>u.selector));handleDeprecatedOptions(u);return compile$1(u)}function convert(u,y={},C=undefined){return compile(y)(u,C)}function handleDeprecatedOptions(u){if(u.tags){const y=Object.entries(u.tags).map((([u,y])=>({...y,selector:u||"*"})));u.selectors.push(...y);u.selectors=mergeDuplicatesPreferLast(u.selectors,(u=>u.selector))}function set(u,y,C){const D=y.pop();for(const C of y){let y=u[C];if(!y){y={};u[C]=y}u=y}u[D]=C}if(u["baseElement"]){const y=u["baseElement"];set(u,["baseElements","selectors"],Array.isArray(y)?y:[y])}if(u["returnDomByDefault"]!==undefined){set(u,["baseElements","returnDomByDefault"],u["returnDomByDefault"])}for(const y of u.selectors){if(y.format==="anchor"&&get(y,["options","noLinkBrackets"])){set(y,["options","linkBrackets"],false)}}}const WebFetch=async u=>{const{prompt:y}=u;if(!y){return{error:"Missing parameter: prompt must be provided."}}const C=/(https?:\/\/[^\s]+)/g;const D=y.match(C);if(!D||D.length===0){return{error:"No URLs found in the prompt."}}const _=D[0];try{const u=await fetch(_);const y=u.headers.get("content-type")||"";const C=await u.text();let D;if(y.toLowerCase().includes("text/html")){D=convert(C,{wordwrap:false,selectors:[{selector:"a",options:{ignoreHref:true}},{selector:"img",format:"skip"}]})}else{D=C}return{content:D.substring(0,1e5)}}catch(u){return{error:u.message}}};const OA={api_key:null,timeout:6e4};class errors_InvalidArgumentError extends Error{constructor(){super("Arguments are missing or of incorrect type");Object.setPrototypeOf(this,errors_InvalidArgumentError.prototype)}}class MissingApiKeyError extends Error{constructor(){super("api_key is required, get it from: https://serpapi.com/manage-api-key");Object.setPrototypeOf(this,MissingApiKeyError.prototype)}}class InvalidTimeoutError extends Error{constructor(){super("Enter a valid timeout in milliseconds");Object.setPrototypeOf(this,InvalidTimeoutError.prototype)}}class RequestTimeoutError extends Error{constructor(){super("The request was timed out");Object.setPrototypeOf(this,RequestTimeoutError.prototype)}}const MA="2.2.1";var UA=C(5692);const HA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring");const GA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("process");const WA={execute:execute,getHostnameAndPort:getHostnameAndPort};function getHostnameAndPort(){return{hostname:"serpapi.com",port:443}}function getSource(){var u,y;const C=`serpapi@${MA}`;if(typeof Deno=="object"){const y=(u=Deno.version)===null||u===void 0?void 0:u.deno;if(y){return`deno@${y},${C}`}}else if(typeof GA=="object"){const u=(y=GA.versions)===null||y===void 0?void 0:y.node;if(u){return`nodejs@${u},${C}`}}return`nodejs,${C}`}function buildRequestOptions(u,y){const C=Object.assign({},y);for(const u in C){if(u==="requestOptions"||u==="timeout"||C[u]===undefined){delete C[u]}}const D=Object.assign(Object.assign({},WA.getHostnameAndPort()),{path:`${u}?${HA.stringify(C)}`,method:"GET"});return Object.assign(Object.assign(Object.assign({},OA.requestOptions),y.requestOptions),D)}function execute(u,y,C){const D=buildRequestOptions(u,Object.assign(Object.assign({},y),{source:getSource()}));return new Promise(((u,y)=>{let _;const handleResponse=C=>{C.setEncoding("utf8");let D="";C.on("data",(u=>{D+=u}));C.on("end",(()=>{try{if(C.statusCode==200){u(D)}else{y(D)}}catch(u){y(u)}finally{if(_)clearTimeout(_)}}))};const handleError=u=>{y(u);if(_)clearTimeout(_)};const j=UA.get(D,handleResponse).on("error",handleError);if(C>0){_=setTimeout((()=>{y(new RequestTimeoutError);j.destroy()}),C)}}))}function validators_validateApiKey(u,y=false){if(y&&u===null){return undefined}const C=u!==null&&u!==void 0?u:OA.api_key;if(!C)throw new MissingApiKeyError;return C}function validators_validateTimeout(u){const y=u!==null&&u!==void 0?u:OA.timeout;if(y<=0)throw new InvalidTimeoutError;return y}const jA="/account";const zA="/locations.json";const $A="/search";const qA=null&&`/searches`;function getJson(...u){if(typeof u[0]==="string"&&typeof u[1]==="object"){const[y,C,D]=u;const _=Object.assign(Object.assign({},C),{engine:y});return _getJson(_,D)}else if(typeof u[0]==="object"&&typeof u[1]!=="object"&&(typeof u[1]==="undefined"||typeof u[1]==="function")){const[y,C]=u;return _getJson(y,C)}else{throw new errors_InvalidArgumentError}}async function _getJson(u,y){const C=validators_validateApiKey(u.api_key,true);const D=validators_validateTimeout(u.timeout);const _=await WA.execute($A,Object.assign(Object.assign({},u),{api_key:C,output:"json"}),D);const j=JSON.parse(_);y===null||y===void 0?void 0:y(j);return j}function getHtml(...u){if(typeof u[0]==="string"&&typeof u[1]==="object"){const[y,C,D]=u;const _=Object.assign(Object.assign({},C),{engine:y});return _getHtml(_,D)}else if(typeof u[0]==="object"&&typeof u[1]!=="object"&&(typeof u[1]==="undefined"||typeof u[1]==="function")){const[y,C]=u;return _getHtml(y,C)}else{throw new InvalidArgumentError}}async function _getHtml(u,y){const C=validateApiKey(u.api_key,true);const D=validateTimeout(u.timeout);const _=await _internals.execute($A,Object.assign(Object.assign({},u),{api_key:C,output:"html"}),D);y===null||y===void 0?void 0:y(_);return _}async function getJsonBySearchId(u,y={},C){const D=validateApiKey(y.api_key);const _=validateTimeout(y.timeout);const j=await _internals.execute(`${qA}/${u}`,{api_key:D,output:"json"},_);const $=JSON.parse(j);C===null||C===void 0?void 0:C($);return $}async function getHtmlBySearchId(u,y={},C){const D=validateApiKey(y.api_key);const _=validateTimeout(y.timeout);const j=await _internals.execute(`${qA}/${u}`,{api_key:D,output:"html"},_);C===null||C===void 0?void 0:C(j);return j}async function getAccount(u={},y){const C=validateApiKey(u.api_key);const D=validateTimeout(u.timeout);const _=await _internals.execute(jA,{api_key:C},D);const j=JSON.parse(_);y===null||y===void 0?void 0:y(j);return j}async function getLocations(u={},y){const C=validateTimeout(u.timeout);const D=await _internals.execute(zA,u,C);const _=JSON.parse(D);y===null||y===void 0?void 0:y(_);return _}const GoogleSearch=async u=>{const{query:y}=u;if(!y){return{error:"Missing parameter: query must be provided."}}try{const u=await getJson({engine:"google",q:y,api_key:process.env["SERPAPI_API_KEY"]});return{results:u["organic_results"]}}catch(u){return{error:u.message}}};const WriteTodos=async u=>{const{todos:y}=u;if(!y){return{error:"Missing parameter: todos must be provided."}}const C=y.map(((u,y)=>`${y+1}. [${u.status}] ${u.description}`)).join("\n");const D=y.length>0?`Successfully updated the todo list. The current list is now:\n${C}`:"Successfully cleared the todo list.";return{llmContent:D,returnDisplay:{todos:y}}};async function GetWorkingDirectory(){return{cwd:process.cwd()}}const VA={ReadFile:ReadFile,WriteFile:WriteFile,Shell:Shell,ReadFolder:ReadFolder,FindFiles:FindFiles,SearchText:SearchText,Edit:Edit,ReadManyFiles:ReadManyFiles,SaveMemory:SaveMemory,WebFetch:WebFetch,GoogleSearch:GoogleSearch,WriteTodos:WriteTodos,GetWorkingDirectory:GetWorkingDirectory};const JA=`${oe.$.BACKEND_URL}/v1/tasks`;const KA=`${oe.$.BACKEND_URL}/v1/ws/session/start_or_resume/`;class WebSocketClient{ws=null;messageHandler=null;onStatusChange=null;sessionId=null;handshakeSent=false;isConnecting=false;connectionPromise=null;messageQueue=[];isReadyForUserInput=false;status="disconnected";setStatus(u){if(this.status===u)return;this.status=u;if(this.onStatusChange){this.onStatusChange(u)}}async createSession(){try{const u=await fetch(JA,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:"New interactive session"})});if(!u.ok){throw new Error(`Failed to create session: ${u.status} ${u.statusText}`)}const y=await u.json();return y.id}catch(u){console.error("Failed to create session:",u);return null}}setupWebSocketConnection(){if(!this.sessionId){return}this.setStatus("connecting");const u=`${KA}${this.sessionId}`;this.ws=new _.Ay(u);this.ws.on("open",(async()=>{this.setStatus("connected");if(this.handshakeSent){return}let u=null;try{const{loadProjectSpec:y}=await C.e(96).then(C.bind(C,2096));u=await y(process.cwd())}catch(u){console.error("Failed to load project spec (CODEGEN.md):",u)}this.send({type:"handshake",payload:{client_type:"cli",known_tools:Object.keys(VA),custom_tools:[],projectSpec:u?{content:u.content,filePaths:u.filePaths}:null}});this.handshakeSent=true}));this.ws.on("message",(u=>{try{const y=JSON.parse(u.toString());if(y.type==="bootstrap_finished"){this.isReadyForUserInput=true;this.flushMessageQueue()}if(this.messageHandler){this.messageHandler(y)}}catch(u){console.error("Error parsing WebSocket message:",u)}}));this.ws.on("close",(()=>{this.ws=null;this.isConnecting=false;this.connectionPromise=null;this.handshakeSent=false;this.isReadyForUserInput=false;this.setStatus("disconnected")}));this.ws.on("error",(u=>{console.error("WebSocket error:",u);this.isConnecting=false;this.connectionPromise=null;this.handshakeSent=false;this.isReadyForUserInput=false;this.setStatus("disconnected")}))}flushMessageQueue(){while(this.messageQueue.length>0){const u=this.messageQueue.shift();if(u){this.send(u)}}}ensureConnected(){if(this.ws&&this.ws.readyState===_.Ay.OPEN){return Promise.resolve()}if(this.isConnecting&&this.connectionPromise){return this.connectionPromise}this.isConnecting=true;this.setStatus("connecting");this.connectionPromise=(async()=>{try{if(!this.messageHandler){throw new Error("No message handler set. Cannot (re)connect WebSocket.")}if(!this.sessionId){this.sessionId=await this.createSession();if(!this.sessionId){throw new Error("Could not establish session. WebSocket connection aborted.")}}this.setupWebSocketConnection();await new Promise(((u,y)=>{if(!this.ws){return y(new Error("WebSocket instance not created."))}this.ws.once("open",(()=>{this.isConnecting=false;this.setStatus("connected");u()}));this.ws.once("error",(u=>{this.isConnecting=false;this.ws=null;this.setStatus("disconnected");y(u)}))}))}catch(u){this.isConnecting=false;this.connectionPromise=null;this.setStatus("disconnected");console.error("Connection failed:",u);throw u}})();return this.connectionPromise}async connect(u,y){this.messageHandler=u;this.onStatusChange=y;this.setStatus("connecting");await this.ensureConnected()}async send(u){if(!this.ws||this.ws.readyState!==_.Ay.OPEN){this.messageQueue.push(u);await this.ensureConnected();return}const y=u.type==="handshake"||u.type==="tool_result";if(this.ws&&this.ws.readyState===_.Ay.OPEN&&(y||this.isReadyForUserInput)){const y=JSON.stringify(u);this.ws.send(y)}else{this.messageQueue.push(u)}}}const YA=new WebSocketClient;var XA=C(348);const runShellCommand=(u,y)=>{const C=u.trim();if(!C){throw new Error("Command cannot be empty.")}const D=(0,Xr.spawn)(C,{cwd:y,shell:true,stdio:"pipe",env:{...process.env,COLUMNS:process.stdout?.columns?.toString()??process.env["COLUMNS"],LINES:process.stdout?.rows?.toString()??process.env["LINES"]}});return D};const sanitizePath=u=>{if(!u){return undefined}const y=$().normalize(u);const C=$().resolve(oe.$.WORKSPACE_DIR,y);if(!C.startsWith(oe.$.WORKSPACE_DIR)){return $().basename(u)}return $().relative(oe.$.WORKSPACE_DIR,C)};var ZA=C(3688);var th=C(1825);const ih={messages:[],shellRuns:[],diffReviews:[],agentStatus:{label:"Idle",phase:"idle"},stream:{buffer:"",status:"idle"},isBootstrapping:false,bootstrapFinished:false,connectionStatus:"disconnected"};const generateId=()=>Math.random().toString(36).slice(2);function reduceCoreState(u,y){switch(y.type){case"USER_SENT_MESSAGE":{const C={id:generateId(),role:"user",text:y.text,createdAt:Date.now(),isFinal:true};return{...u,messages:[...u.messages,C]}}case"AGENT_STREAM_STARTED":{const C={id:y.messageId,role:"agent",text:"",createdAt:Date.now(),isStreaming:true};return{...u,messages:[...u.messages,C],stream:{currentMessageId:y.messageId,buffer:"",status:"streaming"},agentStatus:{label:"Thinking…",phase:"streaming"}}}case"AGENT_DELTA_RECEIVED":{const C=1e3;if(u.stream.status!=="streaming"||!u.stream.currentMessageId){const C=generateId();const D={id:C,role:"agent",text:y.delta,createdAt:Date.now(),isStreaming:true};return{...u,messages:[...u.messages,D],stream:{currentMessageId:C,buffer:"",status:"streaming"},agentStatus:{label:"Thinking…",phase:"streaming"}}}const D=u.messages.findIndex((y=>y.id===u.stream.currentMessageId));if(D===-1){const C=generateId();const D={id:C,role:"agent",text:y.delta,createdAt:Date.now(),isStreaming:true};return{...u,messages:[...u.messages,D],stream:{currentMessageId:C,buffer:"",status:"streaming"},agentStatus:{label:"Thinking…",phase:"streaming"}}}const _=u.messages[D];const j=(_.text??"")+y.delta;if(j.length<=C){return{...u,messages:u.messages.map(((u,y)=>y===D?{...u,text:j}:u))}}const $="\n\n";let ne=j.lastIndexOf($);if(ne===-1){ne=j.lastIndexOf(" ")}if(ne===-1||ne<C/2){return{...u,messages:u.messages.map(((u,y)=>y===D?{...u,text:j}:u))}}const oe=j.slice(0,ne);const le=j.slice(ne);const de={..._,text:oe,isStreaming:false,isFinal:true};const Ae=generateId();const pe={..._,id:Ae,text:le};const Ee=[...u.messages.slice(0,D),de,...u.messages.slice(D+1),pe];return{...u,messages:Ee,stream:{...u.stream,currentMessageId:Ae}}}case"AGENT_STREAM_FLUSH":{return u}case"AGENT_STREAM_FINISHED":{const{currentMessageId:y}=u.stream;if(!y){return{...u,stream:{currentMessageId:undefined,buffer:"",status:"finished"},agentStatus:{label:"Idle",phase:"idle"}}}return{...u,messages:u.messages.map((u=>u.id===y?{...u,isStreaming:false,isFinal:true}:u)),stream:{currentMessageId:undefined,buffer:"",status:"finished"},agentStatus:{label:"Idle",phase:"idle"}}}case"SHELL_RUN_STARTED":{const C={id:y.runId,command:y.command,status:"running",stdout:"",stderr:"",startedAt:Date.now()};return{...u,shellRuns:[...u.shellRuns,C],agentStatus:{label:`Running shell: ${y.command}`,phase:"running_tool"}}}case"SHELL_OUTPUT_RECEIVED":{return{...u,shellRuns:u.shellRuns.map((u=>{if(u.id!==y.runId)return u;return{...u,stdout:u.stdout+(y.stdoutDelta??""),stderr:u.stderr+(y.stderrDelta??"")}}))}}case"SHELL_RUN_FINISHED":{return{...u,shellRuns:u.shellRuns.map((u=>u.id===y.runId?{...u,status:y.exitCode===0?"finished":"error",finishedAt:Date.now()}:u)),agentStatus:{label:"Idle",phase:"idle"}}}case"DIFF_REVIEW_OPENED":{const C={id:y.reviewId,title:y.title,toolName:y.toolName,toolParams:y.toolParams,oldContent:y.oldContent,newContent:y.newContent,status:"pending"};return{...u,diffReviews:[...u.diffReviews,C]}}case"DIFF_REVIEW_RESOLVED":{return{...u,diffReviews:u.diffReviews.map((u=>u.id===y.reviewId?{...u,status:y.result}:u))}}case"ERROR_OCCURRED":{const C={id:generateId(),role:"agent_error",text:y.message,createdAt:Date.now(),isFinal:true};return{...u,messages:[...u.messages,C]}}case"TOOL_RESULT_MESSAGE":{const C={id:generateId(),role:"system",text:y.text,createdAt:Date.now(),isFinal:true};return{...u,messages:[...u.messages,C]}}case"TOOL_EXECUTION_STARTED":{const C={id:generateId(),role:"tool_execution",text:"",toolId:y.toolId,toolName:y.toolName,toolParams:y.toolParams,createdAt:Date.now(),isFinal:false,status:"running",isBootstrap:u.isBootstrapping};return{...u,messages:[...u.messages,C]}}case"TOOL_EXECUTION_FINISHED":{return{...u,messages:u.messages.map((u=>u.toolId===y.toolId?{...u,status:"finished",isFinal:true}:u))}}case"TOOL_EXECUTION_ERROR":{return{...u,messages:u.messages.map((u=>u.toolId===y.toolId?{...u,status:"error",isFinal:true,text:y.error}:u))}}case"BOOTSTRAP_STARTED":{return{...u,isBootstrapping:true}}case"BOOTSTRAP_FINISHED":{const y={id:generateId(),role:"system",text:`Contexto do projeto carregado. (CLI v${oe.$.CURRENT_VERSION})`,createdAt:Date.now(),isFinal:true};return{...u,isBootstrapping:false,bootstrapFinished:true,messages:[...u.messages,y]}}case"CONNECTION_STATUS_CHANGED":{return{...u,connectionStatus:y.status}}default:return u}}function isLiveAgentMessageDisabled(){const u=process.env["INK_DISABLE_LIVE_AGENT_MESSAGE"];if(!u)return false;const y=String(u).toLowerCase().trim();return y==="1"||y==="true"||y==="yes"}const sh=isLiveAgentMessageDisabled();function extractHighlightedBlock(u){if(!u)return undefined;const y=u.trim();if(y.startsWith("`")&&y.endsWith("`")){const u=y.slice(1,-1).trim();if(u.length>0){return{content:u}}}if(y.startsWith("```")&&y.endsWith("```")){const u=y.slice(3,-3);const C=u.indexOf("\n");if(C===-1){const y=u.trim();if(y.length>0){return{content:y}}return undefined}const D=u.slice(0,C).trim();const _=u.slice(C+1).trim();if(_.length===0){return undefined}return{language:D.length>0?D:undefined,content:_}}return undefined}function buildInkViewModel(u){const y=u.messages.filter((u=>u.isFinal||u.role==="tool_execution"||u.role==="agent_thought")).map((u=>({id:u.id,role:u.role,text:u.text,toolName:u.toolName,toolParams:u.toolParams,status:u.status,isBootstrap:u.isBootstrap,highlightedBlock:u.role==="agent"?extractHighlightedBlock(u.text):undefined})));let C;if(!sh){const y=u.messages.find((u=>(u.role==="agent"||u.role==="agent_thought")&&u.isStreaming));if(y){C={id:y.id,role:y.role,text:y.text,toolName:y.toolName,toolParams:y.toolParams,status:y.status,isBootstrap:y.isBootstrap,highlightedBlock:y.role==="agent"?extractHighlightedBlock(y.text):undefined}}}const D=[...u.shellRuns].reverse().find((u=>u.status==="running"||u.status==="pending"));const _=[...u.diffReviews].reverse().find((u=>u.status==="pending"));let j;if(D){const u=[D.stdout,D.stderr].filter(Boolean).join("\n");const y=u.split("\n");j={id:D.id,command:D.command,status:D.status,stdout:D.stdout,stderr:D.stderr,visibleOutput:u,isVisuallyTruncated:false,totalLines:y.length,visibleLinesCount:y.length}}const $=_?{id:_.id,title:_.title,toolName:_.toolName,toolParams:_.toolParams,oldContent:_.oldContent,newContent:_.newContent,status:_.status}:undefined;return{staticMessages:y,liveAgentMessage:C,activeShellRun:j,activeDiffReview:$,agentStatusLabel:u.agentStatus.label,agentStatusPhase:u.agentStatus.phase}}function useAgentCore(){const[u,y]=(0,D.useReducer)(reduceCoreState,ih);const C=(0,D.useMemo)((()=>buildInkViewModel(u)),[u]);return{coreState:u,dispatchCore:y,viewModel:C}}const lh={ReadFile:ReadFile,WriteFile:WriteFile,Shell:Shell,ReadFolder:ReadFolder,FindFiles:FindFiles,SearchText:SearchText,Edit:Edit,ReadManyFiles:ReadManyFiles,SaveMemory:SaveMemory,WebFetch:WebFetch,GoogleSearch:GoogleSearch,WriteTodos:WriteTodos,GetWorkingDirectory:GetWorkingDirectory};const escapeRegExp=u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const useAgent=({autonomous:u=false})=>{const{coreState:y,dispatchCore:C,viewModel:_}=useAgentCore();const[j,le]=(0,D.useState)({isVisible:false,text:"Agent is thinking..."});const[de,Ae]=(0,D.useState)(null);const pe=(0,D.useRef)(null);(0,D.useEffect)((()=>{pe.current=de}),[de]);const[Ee,Ce]=(0,D.useState)([]);const[Ie,Be]=(0,D.useState)(null);const[De,xe]=(0,D.useState)(-1);const[Fe,_e]=(0,D.useState)(null);const[Le,ze]=(0,D.useState)(null);const[qe,Je]=(0,D.useState)("");const[Ke,et]=(0,D.useState)(false);const[tt,rt]=(0,D.useState)(null);const[nt,it]=(0,D.useState)(false);const st=(0,D.useRef)(nt);const ot=(0,D.useRef)("");const at=(0,D.useRef)(j);const lt=(0,D.useRef)(null);const ct=(0,D.useRef)(false);(0,D.useEffect)((()=>{ct.current=y.isBootstrapping}),[y.isBootstrapping]);(0,D.useEffect)((()=>{if(de){const y=de.parameters.dir_path;const C=y&&y.startsWith(".codegen/");if(u||C){approveShellCommand()}}}),[u,de]);(0,D.useEffect)((()=>{at.current=j}),[j]);(0,th.SB)();const ut=(0,D.useCallback)((()=>{const u=ot.current.match(/\*\*(.*?)\*\*/g);const y=u?u[u.length-1]?.slice(2,-2):null;le({isVisible:true,text:y||"Agent is thinking..."})}),[]);(0,D.useEffect)((()=>{st.current=nt}),[nt]);const sendInputToShell=u=>{if(!Le)return;if(u===""){try{Le.kill("SIGINT")}catch(u){console.error("Failed to send SIGINT to shell process:",u)}return}if(Le.stdin){Le.stdin.write(u)}};const handleShellCompletion=(u,y)=>{try{const D=y||Fe;if(!D){return}if(u.signal==="SIGINT"){const{tool_name:y,tool_id:_,generation_id:j,parameters:$}=D;const ne=$?.command??"(shell)";C({type:"SHELL_RUN_FINISHED",runId:String(D.messageId),exitCode:130});const oe=80;const le=(0,XA.A)([u.stdout||"",u.stderr||""].filter(Boolean).join("\n"));const de=le.split("\n");const Ae=de.length>oe;const pe=Ae?de.slice(-oe):de;const Ee=pe.join("\n").trim();let Ce=Ee?`Shell: ${ne} (cancelled by user via Ctrl+C)\n\n${Ee}`:`Shell: ${ne} (cancelled by user via Ctrl+C)`;if(Ae){Ce+=`\n\n[Saída truncada; mostrando últimas ${pe.length} de ${de.length} linhas]`}C({type:"TOOL_RESULT_MESSAGE",text:Ce});try{const C={...u,stdout:(0,XA.A)(u.stdout),stderr:(0,XA.A)(u.stderr)};YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:C}})}catch(u){console.error("Failed to send shell cancellation tool_result:",u)}ut();_e(null);ze(null);return}const{messageId:_,tool_name:j,tool_id:$,generation_id:ne,parameters:oe}=D;C({type:"SHELL_RUN_FINISHED",runId:String(_),exitCode:u.exitCode??1});const le=(u.exitCode??1)===0;const de=le?"✓":"✗";const Ae=oe?.command??"(shell)";const pe=`${de} Shell: ${Ae} (exitCode=${u.exitCode??1})`;const Ee=80;const Ce=(0,XA.A)([u.stdout||"",u.stderr||""].filter(Boolean).join("\n"));const Ie=Ce.split("\n");const Be=Ie.length>Ee;const De=Be?Ie.slice(-Ee):Ie;const xe=De.join("\n").trim();let Le=xe?`${pe}\n\n${xe}`:pe;if(Be){Le+=`\n\n[Saída truncada; mostrando últimas ${De.length} de ${Ie.length} linhas]`}C({type:"TOOL_RESULT_MESSAGE",text:Le});const qe={...u,stdout:(0,XA.A)(u.stdout),stderr:(0,XA.A)(u.stderr)};YA.send({type:"tool_result",payload:{tool_name:j,tool_id:$,generation_id:ne,status:u.exitCode===0?"success":"error",result:qe}});ut()}catch(u){console.error("Error in handleShellCompletion:",u)}finally{_e(null);ze(null)}};const approveShellCommand=()=>{if(!de)return;const{tool_name:u,tool_id:y,generation_id:D,parameters:_}=de;const{command:j,dir_path:ne}=_;const pe=$().resolve(oe.$.WORKSPACE_DIR,ne||".");const Ee=Date.now();C({type:"SHELL_RUN_STARTED",runId:String(Ee),command:j});try{const $=runShellCommand(j,pe);const ne=[];const oe=[];$.stdout?.on("data",(u=>{ne.push(u);C({type:"SHELL_OUTPUT_RECEIVED",runId:String(Ee),stdoutDelta:u.toString("utf8"),stderrDelta:""})}));$.stderr?.on("data",(u=>{oe.push(u);C({type:"SHELL_OUTPUT_RECEIVED",runId:String(Ee),stdoutDelta:"",stderrDelta:u.toString("utf8")})}));$.on("close",((C,j)=>{const $={stdout:Buffer.concat(ne).toString("utf8"),stderr:Buffer.concat(oe).toString("utf8"),exitCode:C,signal:j};handleShellCompletion($,{messageId:Ee,tool_name:u,tool_id:y,generation_id:D,parameters:_})}));ze($);_e({messageId:Ee,tool_name:u,tool_id:y,generation_id:D,parameters:_,status:"running",childProcess:$});le({isVisible:false,text:""})}catch(_){console.error("Failed to start shell command:",_);C({type:"TOOL_RESULT_MESSAGE",text:`✗ Shell: ${j} (error starting: ${_.message??String(_)})`});try{YA.send({type:"tool_result",payload:{tool_name:u,tool_id:y,generation_id:D,status:"error",result:_.message??String(_)}})}catch(u){console.error("Failed to send shell error tool_result:",u)}}Ae(null)};const rejectShellCommand=()=>{if(!de)return;const{tool_name:u,tool_id:y,generation_id:D,parameters:_}=de;const j=_.command??"(shell)";try{YA.send({type:"tool_result",payload:{tool_name:u,tool_id:y,generation_id:D,status:"error",result:"User rejected command execution."}})}catch(u){console.error("Failed to send shell rejection tool_result:",u)}C({type:"TOOL_RESULT_MESSAGE",text:`· Shell: ${j} (rejected by user)`});Ae(null);le({isVisible:false,text:""})};const approveDiff=u=>{const y=_.activeDiffReview?.id;if(!y)return;if(lt.current){lt.current(["accepted",u]);lt.current=null}C({type:"DIFF_REVIEW_RESOLVED",reviewId:String(y),result:"accepted"})};const rejectDiff=()=>{const u=_.activeDiffReview?.id;if(!u)return;if(lt.current){lt.current(["rejected",undefined]);lt.current=null}C({type:"DIFF_REVIEW_RESOLVED",reviewId:String(u),result:"rejected"})};const ft=(0,D.useCallback)((async y=>{const{tool_name:D,parameters:_,tool_id:j,generation_id:de}=y;const pe=de==="bootstrap";C({type:"TOOL_EXECUTION_STARTED",toolId:j,toolName:D,toolParams:_});const Ee={..._};if(Ee["path"]){Ee["path"]=sanitizePath(Ee["path"])}if(Ee["file_path"]){Ee["file_path"]=sanitizePath(Ee["file_path"])}if(Ee["dir_path"]){Ee["dir_path"]=sanitizePath(Ee["dir_path"])}if(D==="ReadFile"&&Ee["path"]&&!Ee["file_path"]){Ee["file_path"]=Ee["path"]}if((D==="ReadFolder"||D==="FindFiles"||D==="SearchText")&&Ee["path"]&&!Ee["dir_path"]){Ee["dir_path"]=Ee["path"]}const Ce=lh[D];if(!Ce){const u=`Error: Tool '${D}' not found.`;C({type:"TOOL_EXECUTION_ERROR",toolId:j,toolName:D,toolParams:_,error:u});YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"error",result:u}});Be(null);ut();return}if(D==="WriteFile"||D==="Edit"){const y=Date.now();let le="";try{le=await(0,ne.readFile)($().resolve(oe.$.WORKSPACE_DIR,Ee["file_path"]),"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}le=""}const Ae=D==="WriteFile"?Ee["content"]:le.replace(new RegExp(escapeRegExp(Ee["old_string"]),"g"),Ee["new_string"]);try{const $=Ee["file_path"];const ne=$&&$.startsWith(".codegen/");if(!u&&!ne){const u=new Promise((u=>{lt.current=u}));C({type:"DIFF_REVIEW_OPENED",reviewId:String(y),toolName:D,toolParams:Ee,oldContent:le,newContent:Ae});const[_,j]=await u;if(_==="rejected"){throw new Error("User rejected changes.")}Ee["content"]=j!==undefined?j:Ae}else{Ee["content"]=Ae}const oe=await Ce(Ee);C({type:"TOOL_EXECUTION_FINISHED",toolId:j,toolName:D,toolParams:_});YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"success",result:oe}});Be(null);ut()}catch(u){C({type:"TOOL_EXECUTION_ERROR",toolId:j,toolName:D,toolParams:_,error:u.message});YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"error",result:u.message}});ut()}}else if(D==="Shell"){const u=Ee;if(pe){const{command:y,dir_path:C}=u;const _=$().resolve(oe.$.WORKSPACE_DIR,C||".");try{const u=runShellCommand(y,_);const C=await new Promise(((y,C)=>{const D=[];const _=[];u.stdout?.on("data",(u=>{D.push(u)}));u.stderr?.on("data",(u=>{_.push(u)}));u.on("error",(u=>{C(u)}));u.on("close",(u=>{y({stdout:Buffer.concat(D).toString("utf8"),stderr:Buffer.concat(_).toString("utf8"),exitCode:u})}))}));const $={command:y,stdout:(0,XA.A)(C.stdout)||"(empty)",stderr:(0,XA.A)(C.stderr)||"(empty)",error:C.exitCode===0?"(none)":(0,XA.A)(C.stderr),exitCode:C.exitCode??0};YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:C.exitCode===0?"success":"error",result:$}});Be(null);le({isVisible:false,text:""})}catch(u){YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"error",result:u.message??String(u)}});ut()}return}Ae({tool_name:D,tool_id:j,generation_id:de,parameters:u});le({isVisible:false,text:""});return}else{try{const u=await Ce(Ee);C({type:"TOOL_EXECUTION_FINISHED",toolId:j,toolName:D,toolParams:_});YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"success",result:u}});Be(null);ut()}catch(u){C({type:"TOOL_EXECUTION_ERROR",toolId:j,toolName:D,toolParams:_,error:u.message});YA.send({type:"tool_result",payload:{tool_name:D,tool_id:j,generation_id:de,status:"error",result:u.message}});ut()}}}),[]);const dt=(0,D.useRef)(false);(0,D.useEffect)((()=>{dt.current=y.bootstrapFinished}),[y.bootstrapFinished]);(0,D.useEffect)((()=>{let u=false;const handleMessage=async y=>{if(st.current){return}const D=y.payload?.generation_id;const _=D==="bootstrap";if(_&&!ct.current){C({type:"BOOTSTRAP_STARTED"})}if(y.type==="bootstrap_finished"&&ct.current){C({type:"BOOTSTRAP_FINISHED"});u=true}if(y.type==="run_tool"&&y.payload.tool_name==="Shell"){const u=y.payload;if(pe.current?.tool_id===u.tool_id){return}}if(process.env["STK_DEBUG_AGENT_STREAM"]==="1"){console.log("[agent-stream]",{type:y.type,payload:y.payload,generation_id:y.payload?.generation_id})}if(y.payload?.generation_id){rt(y.payload.generation_id)}if(y.type==="agent_error"){const u=y.payload?.message||"An error occurred while communicating with the agent.";const D=y.payload?.details?` ${y.payload.details}`:"";C({type:"ERROR_OCCURRED",message:`${u}${D}`});le({isVisible:false,text:""});return}if(y.type==="agent_message_delta"){const u=y.payload.content||"";le({isVisible:false,text:""});C({type:"AGENT_DELTA_RECEIVED",delta:u})}else if(y.type==="agent_thought"){const u=y.payload.content||"";ot.current+=u;const C=ot.current.match(/\*\*(.*?)\*\*/g);const D=C?C[C.length-1]:null;if(D){const u=D.slice(2,-2);if(at.current.text!==u){le({isVisible:true,text:u})}}else if(!j.isVisible){le({isVisible:true,text:"Agent is thinking..."})}}else if(y.type==="agent_finished"){C({type:"AGENT_STREAM_FINISHED"});le({isVisible:false,text:""});Be(null);ot.current=""}else if(y.type==="run_tool"){const{tool_id:u,tool_name:C,generation_id:D}=y.payload;if(Ie===u){return}Be(u);if(!_){le({isVisible:true,text:`Preparing to execute: ${C}`})}Promise.resolve().then((()=>ft(y.payload)))}else if(y.type==="agent_generation_cancelled"){const{generation_id:u}=y.payload;if(tt===u){rt(null);it(false);le({isVisible:false,text:""});C({type:"TOOL_RESULT_MESSAGE",text:"· Agent generation cancelled by backend."})}}};YA.connect(handleMessage,(u=>{C({type:"CONNECTION_STATUS_CHANGED",status:u});if(u==="connecting"&&dt.current){le({isVisible:true,text:"Reconectando..."})}else if(u==="connected"){le({isVisible:false,text:""})}}))}),[ft,C]);const submitUserInput=async(u,y)=>{if(process.env["STK_DEBUG_INPUT"]==="1"&&y){console.error("[STK_DEBUG_SUBMIT]",{text:u,imageCount:y.images?.length??0,extra:y})}if(Fe?.status==="finished"){_e(null)}C({type:"USER_SENT_MESSAGE",text:u});if(y){const u=y.images?.length??0;const D=u>0?`· ${u} imagem(s) de clipboard anexada(s) ·`:"· Nenhuma imagem encontrada no clipboard ·";C({type:"TOOL_RESULT_MESSAGE",text:D})}le({isVisible:true,text:"Agent is thinking..."});rt(null);it(false);ot.current="";const D=u.trim();if(D.startsWith("/")){const y=D.slice(1).trim();if(y.length>0){await YA.send({type:"magic_command",payload:{name:y}})}else{await YA.send({type:"user_message",payload:{prompt:u}})}}else{await YA.send({type:"user_message",payload:{prompt:u,images:y?.images}})}Ce((y=>{const C=[...y,u];xe(C.length);return C}));Je("")};const At=(0,D.useCallback)((()=>{const u=Math.max(0,De-1);xe(u);return Ee[u]}),[Ee,De]);const ht=(0,D.useCallback)((()=>{const u=Math.min(Ee.length,De+1);xe(u);return Ee[u]}),[Ee,De]);const pt=(0,D.useCallback)((async(u,y)=>{try{const C=lh["FindFiles"];if(C){const D=await C({pattern:u,...y});return D.files||[]}return[]}catch(u){console.error("Error searching files:",u);return[]}}),[]);const resetHistory=()=>{xe(Ee.length)};const cancelCurrentInteraction=()=>{le({isVisible:false,text:""});it(true);const u="· Cancellation request sent.";C({type:"TOOL_RESULT_MESSAGE",text:u});if(tt){try{YA.send({type:"client_cancel_generation",payload:{generation_id:tt}});rt(null)}catch(u){console.error("Failed to send cancel message to backend:",u)}}else{try{YA.send({type:"client_cancel_last",payload:{}})}catch(u){console.error("Failed to send cancel_last message to backend:",u)}}};return{agentStatus:j,pendingShellCommand:de,approveShellCommand:approveShellCommand,rejectShellCommand:rejectShellCommand,approveDiff:approveDiff,rejectDiff:rejectDiff,submitUserInput:submitUserInput,navigateHistoryUp:At,navigateHistoryDown:ht,searchFiles:pt,activeShellCommand:Fe,handleShellCompletion:handleShellCompletion,childProcess:Le,sendInputToShell:sendInputToShell,inputText:qe,setInputText:Je,isShellActive:Ke,setIsShellActive:et,resetHistory:resetHistory,cancelCurrentInteraction:cancelCurrentInteraction,activeGenerationId:tt,coreState:y,coreViewModel:_,hasCodegenSpec:(0,ZA.q)().hasCodegenSpec}}},4362:(u,y,C)=>{C.d(y,{P:()=>useMagicCommands});var D=C(7919);var _=C.n(D);var j=C(1943);var $=C.n(j);var ne=C(6928);var oe=C.n(ne);var le=C(2973);const de=["bootstrap-codegen"];const Ae="codegen-commands";async function getUserCommands(){try{const u=oe().resolve(le.$.WORKSPACE_DIR,Ae);const y=await(0,j.readdir)(u,{withFileTypes:true});return y.filter((u=>u.isDirectory())).map((u=>u.name))}catch(u){return[]}}const useMagicCommands=()=>{const[u,y]=(0,D.useState)([]);(0,D.useEffect)((()=>{const fetchCommands=async()=>{const u=await getUserCommands();y([...de,...u])};fetchCommands()}),[]);return u}},1825:(u,y,C)=>{C.d(y,{SB:()=>useTerminalLayout});var D=C(7919);var _=C.n(D);const j=.5;const $=.5;const ne=.4;const oe=4;const useTerminalLayout=()=>{const u=process.stdout&&process.stdout.rows||24;return(0,D.useMemo)((()=>{const y=(()=>{const y=Math.floor(u*j)-oe;return Math.min(Math.max(y,8),120)})();const C=(()=>{const y=Math.floor(u*ne)-oe;return Math.min(Math.max(y,5),40)})();const D=(()=>{const y=Math.floor(u*$)-oe;return Math.min(Math.max(y,10),120)})();return{rows:u,maxAgentStreamingLines:y,shellViewHeight:C,diffReviewHeight:D,layoutConstants:{AGENT_STREAM_RATIO:j,DIFF_REVIEW_RATIO:$,SHELL_OUTPUT_RATIO:ne,FOOTER_RESERVED_LINES:oe}}}),[u])}},8225:(u,y,C)=>{C.d(y,{F:()=>readClipboardImageAsBase64});var D=C(5317);var _=C.n(D);var j=C(9023);var $=C.n(j);var ne=C(9896);var oe=C.n(ne);var le=C(6928);var de=C.n(le);const Ae=(0,j.promisify)(D.execFile);async function getClipboardImageDir(u){const y=u||process.cwd();const C=de().join(y,".stk-clipboard");await oe().promises.mkdir(C,{recursive:true});return C}async function readClipboardImageAsBase64(u){if(process.env["STK_CODEGEN_DISABLE_CLIPBOARD_IMAGE"]==="1"){return null}if(process.platform==="darwin"){return readMacClipboardImageFromClipboard(u)}return null}async function readMacClipboardImageFromClipboard(u){try{const{stdout:y}=await Ae("bash",["-lc",'command -v pngpaste || echo ""']);const C=y.trim();if(C){const y=await getClipboardImageDir(u);const D=Date.now();const _=de().join(y,`clipboard-${D}.png`);try{await Ae(C,[_]);const u=await oe().promises.readFile(_);try{await oe().promises.unlink(_)}catch{}return{base64:u.toString("base64"),mimeType:"image/png"}}catch{}}}catch{}return readMacClipboardImageViaAppleScriptToFile(u)}async function readMacClipboardImageViaAppleScriptToFile(u){const y=await getClipboardImageDir(u);const C=Date.now();const D=de().join(y,`clipboard-${C}`);const _=`\n on writeImageToGivenPath(theImage, mimeType, basePath)\n if mimeType is "image/png" then\n set tmpPath to basePath & ".png"\n else if mimeType is "image/tiff" then\n set tmpPath to basePath & ".tiff"\n else if mimeType is "image/jpeg" then\n set tmpPath to basePath & ".jpg"\n end if\n\n set outFile to POSIX file tmpPath\n set fileRef to open for access outFile with write permission\n set eof fileRef to 0\n write theImage to fileRef\n close access fileRef\n\n return mimeType & ":" & tmpPath\n end writeImageToGivenPath\n\n try\n set basePath to "${D}"\n try\n set theImage to the clipboard as «class PNGf»\n return writeImageToGivenPath(theImage, "image/png", basePath)\n on error\n try\n set theImage to the clipboard as TIFF\n return writeImageToGivenPath(theImage, "image/tiff", basePath)\n on error\n try\n set theImage to the clipboard as JPEG picture\n return writeImageToGivenPath(theImage, "image/jpeg", basePath)\n on error\n return "NO_IMAGE"\n end try\n end try\n end try\n end try\n `;try{const{stdout:u}=await Ae("osascript",["-e",_]);const y=u.trim();if(!y||y==="NO_IMAGE"){return null}const C=y.indexOf(":");if(C===-1){return null}const D=y.slice(0,C);const j=y.slice(C+1);if(!D||!j){return null}const $=await oe().promises.readFile(j);try{await oe().promises.unlink(j)}catch{}return{base64:$.toString("base64"),mimeType:D}}catch{return null}}async function cleanupOldClipboardImages(u,y=60*60*1e3){try{const C=await getClipboardImageDir(u);const D=await fs.promises.readdir(C);const _=Date.now()-y;for(const u of D){if(!u.startsWith("clipboard-"))continue;const y=path.join(C,u);const D=await fs.promises.stat(y);if(D.mtimeMs<_){await fs.promises.unlink(y)}}}catch{}}},6614:(u,y,C)=>{C.d(y,{x:()=>checkCliVersion});var D=C(5317);var _=C.n(D);var j=C(2973);const $=`${j.$.BACKEND_URL}/v1/cli/version`;const ne="stk-codegen";async function checkCliVersionWithDeps({httpGet:u,execSync:y,exit:C,log:D,error:_,env:oe}){const le=oe["CLI_SKIP_VERSION_CHECK"];if(le&&["1","true"].includes(String(le).toLowerCase())){return}try{const oe=await u($);const le=oe.data.version;if(j.$.CURRENT_VERSION!==le){_(`Your CLI version is ${j.$.CURRENT_VERSION}, but the latest version is ${le}.`);D("Updating CLI to the latest version...");try{y(`npm install -g ${ne}@latest`,{stdio:"inherit"});D("Update successful! Please restart the CLI manually to use the new version.");C(0)}catch(u){_("An error occurred during the automatic update process. Please update manually.");C(1)}}}catch(u){_("Could not verify CLI version or perform automatic update.")}}const defaultHttpGet=async u=>{const y=await fetch(u);const C=await y.json();return{data:C}};async function checkCliVersion(){return checkCliVersionWithDeps({httpGet:defaultHttpGet,execSync:D.execSync,exit:u=>process.exit(u),log:console.log,error:console.error,env:process.env})}},3610:(u,y,C)=>{C.d(y,{y:()=>parseInlineCodeSegments});function appendTextSegment(u,y){if(!y)return;const C=u[u.length-1];if(C&&C.type==="text"){C.content+=y}else{u.push({type:"text",content:y})}}function parseInlineCodeSegments(u){if(u===undefined||u===null){return[]}const y=[];let C="";let D=false;const flushBuffer=()=>{if(!C)return;if(D){y.push({type:"code",content:C})}else{appendTextSegment(y,C)}C=""};for(let _=0;_<u.length;_++){const j=u[_];if(j==="`"){if(D){if(C===""){appendTextSegment(y,"``")}else{y.push({type:"code",content:C})}C="";D=false}else{flushBuffer();D=true}}else{C+=j}}if(C){if(D){y.push({type:"code",content:C})}else{appendTextSegment(y,C)}}if(D){const u=y.pop();const C="`"+(u?.content??"");appendTextSegment(y,C)}if(y.length===0){return[{type:"text",content:u}]}return y}},1911:(u,y,C)=>{C.d(y,{M:()=>buildFriendlyLabel});const buildFriendlyLabel=(u,y)=>{const C=y?.["file_path"];const D=y?.["dir_path"]||".";const _=y?.["command"];const j=y?.["pattern"];switch(u){case"WriteFile":return C?`Criar/atualizar arquivo ${C}`:"Criar/atualizar arquivo";case"Edit":return C?`Editar arquivo ${C}`:"Editar arquivo";case"ReadFile":return C?`Ler arquivo ${C}`:"Ler arquivo";case"ReadFolder":return`Listar pasta ${D}`;case"FindFiles":return j?`Procurar arquivos que combinem ${j} em ${D}`:`Procurar arquivos em ${D}`;case"SearchText":return j?`Buscar "${j}" em ${D}`:`Buscar texto em ${D}`;case"Shell":return _?`Executar comando ${_}`:"Executar comando de shell";case"GoogleSearch":return y?.["query"]?`Pesquisar no Google: ${y["query"]}`:"Pesquisar no Google";default:return u}}},1301:(u,y,C)=>{C.d(y,{O:()=>isDelete,g:()=>isBackspace});const isBackspace=u=>u.delete===true||u.backspace===true;const isDelete=()=>false},7273:(u,y,C)=>{C.d(y,{a:()=>TextBuffer});class TextBuffer{text=[];cursor=0;constructor(u=""){this.text=u.split("");this.cursor=u.length}get value(){return this.text.join("")}get cursorPosition(){return this.cursor}insert(u){this.text.splice(this.cursor,0,u);this.cursor++}insertText(u){if(!u)return;const y=u.split("");this.text.splice(this.cursor,0,...y);this.cursor+=y.length}backspace(){if(this.cursor>0){this.text.splice(this.cursor-1,1);this.cursor--}}delete(){if(this.cursor<this.text.length){this.text.splice(this.cursor,1)}}moveCursorLeft(){if(this.cursor>0){this.cursor--}}moveCursorRight(){if(this.cursor<this.text.length){this.cursor++}}moveCursorToStart(){this.cursor=0}moveCursorToEnd(){this.cursor=this.text.length}_getLines(){return this.text.join("").split("\n")}_offsetToRowCol(u){const y=this._getLines();if(y.length===0){return{row:0,col:0}}let C=0;for(let D=0;D<y.length;D++){const _=y[D];const j=_?_.length+1:1;if(u<C+j){return{row:D,col:u-C}}C+=j}const D=y[y.length-1];return{row:y.length-1,col:D?D.length:0}}_rowColToOffset(u,y){const C=this._getLines();let D=0;for(let y=0;y<u;y++){const u=C[y];D+=(u?u.length:0)+1}return D+y}getLineCount(){return this._getLines().length}getCursorRow(){return this._offsetToRowCol(this.cursor).row}moveCursorUp(){const{row:u,col:y}=this._offsetToRowCol(this.cursor);if(u>0){const C=this._getLines();const D=C[u-1];const _=D?D.length:0;const j=Math.min(y,_);this.cursor=this._rowColToOffset(u-1,j)}}moveCursorDown(){const u=this._getLines();const{row:y,col:C}=this._offsetToRowCol(this.cursor);if(y<u.length-1){const D=u[y+1];const _=D?D.length:0;const j=Math.min(C,_);this.cursor=this._rowColToOffset(y+1,j)}}moveCursorWordLeft(){let u=this.cursor;while(u>0&&this.text[u-1]===" ")u--;while(u>0&&this.text[u-1]!==" ")u--;this.cursor=u}moveCursorWordRight(){let u=this.cursor;while(u<this.text.length&&this.text[u]!==" ")u++;while(u<this.text.length&&this.text[u]===" ")u++;this.cursor=u}clone(){const u=new TextBuffer(this.value);u.cursor=this.cursor;return u}}},8327:module=>{module.exports=eval("require")("bufferutil")},75:module=>{module.exports=eval("require")("supports-color")},2414:module=>{module.exports=eval("require")("utf-8-validate")},2613:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},181:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},5317:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},9140:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},6982:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},4434:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},9896:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},1943:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises")},8611:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},5675:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},5692:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},3339:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("module")},9278:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},4573:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer")},8474:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},3024:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs")},1455:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises")},8161:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os")},6760:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path")},1708:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process")},7075:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},7066:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty")},3136:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url")},6928:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2203:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},4756:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},2018:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},7016:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},9023:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},3106:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},147:(u,y,C)=>{Object.defineProperty(y,"__esModule",{value:true});var D=C(7336);var _=C(5756);var j=C(6599);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:D.isColorSupported}const compose=(u,y)=>C=>u(y(C));function buildDefs(u){return{keyword:u.cyan,capitalized:u.yellow,jsxIdentifier:u.yellow,punctuator:u.yellow,number:u.magenta,string:u.green,regex:u.magenta,comment:u.gray,invalid:compose(compose(u.white,u.bgRed),u.bold),gutter:u.gray,marker:compose(u.red,u.bold),message:compose(u.red,u.bold),reset:u.reset}}const $=buildDefs(D.createColors(true));const ne=buildDefs(D.createColors(false));function getDefs(u){return u?$:ne}const oe=new Set(["as","async","from","get","of","set"]);const le=/\r\n|[\n\r\u2028\u2029]/;const de=/^[()[\]{}]$/;let Ae;{const u=/^[a-z][\w-]*$/i;const getTokenType=function(y,C,D){if(y.type==="name"){if(j.isKeyword(y.value)||j.isStrictReservedWord(y.value,true)||oe.has(y.value)){return"keyword"}if(u.test(y.value)&&(D[C-1]==="<"||D.slice(C-2,C)==="</")){return"jsxIdentifier"}if(y.value[0]!==y.value[0].toLowerCase()){return"capitalized"}}if(y.type==="punctuator"&&de.test(y.value)){return"bracket"}if(y.type==="invalid"&&(y.value==="@"||y.value==="#")){return"punctuator"}return y.type};Ae=function*(u){let y;while(y=_.default.exec(u)){const C=_.matchToToken(y);yield{type:getTokenType(C,y.index,u),value:C.value}}}}function highlight(u){if(u==="")return"";const y=getDefs(true);let C="";for(const{type:D,value:_}of Ae(u)){if(D in y){C+=_.split(le).map((u=>y[D](u))).join("\n")}else{C+=_}}return C}let pe=false;const Ee=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(u,y,C){const D=Object.assign({column:0,line:-1},u.start);const _=Object.assign({},D,u.end);const{linesAbove:j=2,linesBelow:$=3}=C||{};const ne=D.line;const oe=D.column;const le=_.line;const de=_.column;let Ae=Math.max(ne-(j+1),0);let pe=Math.min(y.length,le+$);if(ne===-1){Ae=0}if(le===-1){pe=y.length}const Ee=le-ne;const Ce={};if(Ee){for(let u=0;u<=Ee;u++){const C=u+ne;if(!oe){Ce[C]=true}else if(u===0){const u=y[C-1].length;Ce[C]=[oe,u-oe+1]}else if(u===Ee){Ce[C]=[0,de]}else{const D=y[C-u].length;Ce[C]=[0,D]}}}else{if(oe===de){if(oe){Ce[ne]=[oe,0]}else{Ce[ne]=true}}else{Ce[ne]=[oe,de-oe]}}return{start:Ae,end:pe,markerLines:Ce}}function codeFrameColumns(u,y,C={}){const D=C.forceColor||isColorSupported()&&C.highlightCode;const _=getDefs(D);const j=u.split(Ee);const{start:$,end:ne,markerLines:oe}=getMarkerLines(y,j,C);const le=y.start&&typeof y.start.column==="number";const de=String(ne).length;const Ae=D?highlight(u):u;let pe=Ae.split(Ee,ne).slice($,ne).map(((u,y)=>{const D=$+1+y;const j=` ${D}`.slice(-de);const ne=` ${j} |`;const le=oe[D];const Ae=!oe[D+1];if(le){let y="";if(Array.isArray(le)){const D=u.slice(0,Math.max(le[0]-1,0)).replace(/[^\t]/g," ");const j=le[1]||1;y=["\n ",_.gutter(ne.replace(/\d/g," "))," ",D,_.marker("^").repeat(j)].join("");if(Ae&&C.message){y+=" "+_.message(C.message)}}return[_.marker(">"),_.gutter(ne),u.length>0?` ${u}`:"",y].join("")}else{return` ${_.gutter(ne)}${u.length>0?` ${u}`:""}`}})).join("\n");if(C.message&&!le){pe=`${" ".repeat(de+1)}${C.message}\n${pe}`}if(D){return _.reset(pe)}else{return pe}}function index(u,y,C,D={}){if(!pe){pe=true;const u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(u,"DeprecationWarning")}else{const y=new Error(u);y.name="DeprecationWarning";console.warn(new Error(u))}}C=Math.max(C,0);const _={start:{column:C,line:y}};return codeFrameColumns(u,_,D)}y.codeFrameColumns=codeFrameColumns;y["default"]=index;y.highlight=highlight},2924:(u,y)=>{Object.defineProperty(y,"__esModule",{value:true});y.isIdentifierChar=isIdentifierChar;y.isIdentifierName=isIdentifierName;y.isIdentifierStart=isIdentifierStart;let C="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let D="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _=new RegExp("["+C+"]");const j=new RegExp("["+C+D+"]");C=D=null;const $=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489];const ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(u,y){let C=65536;for(let D=0,_=y.length;D<_;D+=2){C+=y[D];if(C>u)return false;C+=y[D+1];if(C>=u)return true}return false}function isIdentifierStart(u){if(u<65)return u===36;if(u<=90)return true;if(u<97)return u===95;if(u<=122)return true;if(u<=65535){return u>=170&&_.test(String.fromCharCode(u))}return isInAstralSet(u,$)}function isIdentifierChar(u){if(u<48)return u===36;if(u<58)return true;if(u<65)return false;if(u<=90)return true;if(u<97)return u===95;if(u<=122)return true;if(u<=65535){return u>=170&&j.test(String.fromCharCode(u))}return isInAstralSet(u,$)||isInAstralSet(u,ne)}function isIdentifierName(u){let y=true;for(let C=0;C<u.length;C++){let D=u.charCodeAt(C);if((D&64512)===55296&&C+1<u.length){const y=u.charCodeAt(++C);if((y&64512)===56320){D=65536+((D&1023)<<10)+(y&1023)}}if(y){y=false;if(!isIdentifierStart(D)){return false}}else if(!isIdentifierChar(D)){return false}}return!y}},6599:(u,y,C)=>{Object.defineProperty(y,"__esModule",{value:true});Object.defineProperty(y,"isIdentifierChar",{enumerable:true,get:function(){return D.isIdentifierChar}});Object.defineProperty(y,"isIdentifierName",{enumerable:true,get:function(){return D.isIdentifierName}});Object.defineProperty(y,"isIdentifierStart",{enumerable:true,get:function(){return D.isIdentifierStart}});Object.defineProperty(y,"isKeyword",{enumerable:true,get:function(){return _.isKeyword}});Object.defineProperty(y,"isReservedWord",{enumerable:true,get:function(){return _.isReservedWord}});Object.defineProperty(y,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return _.isStrictBindOnlyReservedWord}});Object.defineProperty(y,"isStrictBindReservedWord",{enumerable:true,get:function(){return _.isStrictBindReservedWord}});Object.defineProperty(y,"isStrictReservedWord",{enumerable:true,get:function(){return _.isStrictReservedWord}});var D=C(2924);var _=C(9884)},9884:(u,y)=>{Object.defineProperty(y,"__esModule",{value:true});y.isKeyword=isKeyword;y.isReservedWord=isReservedWord;y.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;y.isStrictBindReservedWord=isStrictBindReservedWord;y.isStrictReservedWord=isStrictReservedWord;const C={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const D=new Set(C.keyword);const _=new Set(C.strict);const j=new Set(C.strictBind);function isReservedWord(u,y){return y&&u==="await"||u==="enum"}function isStrictReservedWord(u,y){return isReservedWord(u,y)||_.has(u)}function isStrictBindOnlyReservedWord(u){return j.has(u)}function isStrictBindReservedWord(u,y){return isStrictReservedWord(u,y)||isStrictBindOnlyReservedWord(u)}function isKeyword(u){return D.has(u)}},2800:u=>{const y=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const C=typeof AbortController==="function";const D=C?AbortController:class AbortController{constructor(){this.signal=new $}abort(u=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||u;this.signal.aborted=true;this.signal.dispatchEvent({type:"abort",target:this.signal})}};const _=typeof AbortSignal==="function";const j=typeof D.AbortSignal==="function";const $=_?AbortSignal:j?D.AbortController:class AbortSignal{constructor(){this.reason=undefined;this.aborted=false;this._listeners=[]}dispatchEvent(u){if(u.type==="abort"){this.aborted=true;this.onabort(u);this._listeners.forEach((y=>y(u)),this)}}onabort(){}addEventListener(u,y){if(u==="abort"){this._listeners.push(y)}}removeEventListener(u,y){if(u==="abort"){this._listeners=this._listeners.filter((u=>u!==y))}}};const ne=new Set;const deprecatedOption=(u,y)=>{const C=`LRU_CACHE_OPTION_${u}`;if(shouldWarn(C)){warn(C,`${u} option`,`options.${y}`,LRUCache)}};const deprecatedMethod=(u,y)=>{const C=`LRU_CACHE_METHOD_${u}`;if(shouldWarn(C)){const{prototype:D}=LRUCache;const{get:_}=Object.getOwnPropertyDescriptor(D,u);warn(C,`${u} method`,`cache.${y}()`,_)}};const deprecatedProperty=(u,y)=>{const C=`LRU_CACHE_PROPERTY_${u}`;if(shouldWarn(C)){const{prototype:D}=LRUCache;const{get:_}=Object.getOwnPropertyDescriptor(D,u);warn(C,`${u} property`,`cache.${y}`,_)}};const emitWarning=(...u)=>{typeof process==="object"&&process&&typeof process.emitWarning==="function"?process.emitWarning(...u):console.error(...u)};const shouldWarn=u=>!ne.has(u);const warn=(u,y,C,D)=>{ne.add(u);const _=`The ${y} is deprecated. Please use ${C} instead.`;emitWarning(_,"DeprecationWarning",u,D)};const isPosInt=u=>u&&u===Math.floor(u)&&u>0&&isFinite(u);const getUintArray=u=>!isPosInt(u)?null:u<=Math.pow(2,8)?Uint8Array:u<=Math.pow(2,16)?Uint16Array:u<=Math.pow(2,32)?Uint32Array:u<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(u){super(u);this.fill(0)}}class Stack{constructor(u){if(u===0){return[]}const y=getUintArray(u);this.heap=new y(u);this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class LRUCache{constructor(u={}){const{max:y=0,ttl:C,ttlResolution:D=1,ttlAutopurge:_,updateAgeOnGet:j,updateAgeOnHas:$,allowStale:oe,dispose:le,disposeAfter:de,noDisposeOnSet:Ae,noUpdateTTL:pe,maxSize:Ee=0,maxEntrySize:Ce=0,sizeCalculation:Ie,fetchMethod:Be,fetchContext:De,noDeleteOnFetchRejection:xe,noDeleteOnStaleGet:Fe,allowStaleOnFetchRejection:_e,allowStaleOnFetchAbort:Le,ignoreFetchAbort:ze}=u;const{length:qe,maxAge:Je,stale:Ke}=u instanceof LRUCache?{}:u;if(y!==0&&!isPosInt(y)){throw new TypeError("max option must be a nonnegative integer")}const et=y?getUintArray(y):Array;if(!et){throw new Error("invalid max value: "+y)}this.max=y;this.maxSize=Ee;this.maxEntrySize=Ce||this.maxSize;this.sizeCalculation=Ie||qe;if(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")}}this.fetchMethod=Be||null;if(this.fetchMethod&&typeof this.fetchMethod!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.fetchContext=De;if(!this.fetchMethod&&De!==undefined){throw new TypeError("cannot set fetchContext without fetchMethod")}this.keyMap=new Map;this.keyList=new Array(y).fill(null);this.valList=new Array(y).fill(null);this.next=new et(y);this.prev=new et(y);this.head=0;this.tail=0;this.free=new Stack(y);this.initialFill=1;this.size=0;if(typeof le==="function"){this.dispose=le}if(typeof de==="function"){this.disposeAfter=de;this.disposed=[]}else{this.disposeAfter=null;this.disposed=null}this.noDisposeOnSet=!!Ae;this.noUpdateTTL=!!pe;this.noDeleteOnFetchRejection=!!xe;this.allowStaleOnFetchRejection=!!_e;this.allowStaleOnFetchAbort=!!Le;this.ignoreFetchAbort=!!ze;if(this.maxEntrySize!==0){if(this.maxSize!==0){if(!isPosInt(this.maxSize)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.initializeSizeTracking()}this.allowStale=!!oe||!!Ke;this.noDeleteOnStaleGet=!!Fe;this.updateAgeOnGet=!!j;this.updateAgeOnHas=!!$;this.ttlResolution=isPosInt(D)||D===0?D:1;this.ttlAutopurge=!!_;this.ttl=C||Je||0;if(this.ttl){if(!isPosInt(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){const u="LRU_CACHE_UNBOUNDED";if(shouldWarn(u)){ne.add(u);const y="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(y,"UnboundedCacheWarning",u,LRUCache)}}if(Ke){deprecatedOption("stale","allowStale")}if(Je){deprecatedOption("maxAge","ttl")}if(qe){deprecatedOption("length","sizeCalculation")}}getRemainingTTL(u){return this.has(u,{updateAgeOnHas:false})?Infinity:0}initializeTTLTracking(){this.ttls=new ZeroArray(this.max);this.starts=new ZeroArray(this.max);this.setItemTTL=(u,C,D=y.now())=>{this.starts[u]=C!==0?D:0;this.ttls[u]=C;if(C!==0&&this.ttlAutopurge){const y=setTimeout((()=>{if(this.isStale(u)){this.delete(this.keyList[u])}}),C+1);if(y.unref){y.unref()}}};this.updateItemAge=u=>{this.starts[u]=this.ttls[u]!==0?y.now():0};this.statusTTL=(y,C)=>{if(y){y.ttl=this.ttls[C];y.start=this.starts[C];y.now=u||getNow();y.remainingTTL=y.now+y.ttl-y.start}};let u=0;const getNow=()=>{const C=y.now();if(this.ttlResolution>0){u=C;const y=setTimeout((()=>u=0),this.ttlResolution);if(y.unref){y.unref()}}return C};this.getRemainingTTL=y=>{const C=this.keyMap.get(y);if(C===undefined){return 0}return this.ttls[C]===0||this.starts[C]===0?Infinity:this.starts[C]+this.ttls[C]-(u||getNow())};this.isStale=y=>this.ttls[y]!==0&&this.starts[y]!==0&&(u||getNow())-this.starts[y]>this.ttls[y]}updateItemAge(u){}statusTTL(u,y){}setItemTTL(u,y,C){}isStale(u){return false}initializeSizeTracking(){this.calculatedSize=0;this.sizes=new ZeroArray(this.max);this.removeItemSize=u=>{this.calculatedSize-=this.sizes[u];this.sizes[u]=0};this.requireSize=(u,y,C,D)=>{if(this.isBackgroundFetch(y)){return 0}if(!isPosInt(C)){if(D){if(typeof D!=="function"){throw new TypeError("sizeCalculation must be a function")}C=D(y,u);if(!isPosInt(C)){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 C};this.addItemSize=(u,y,C)=>{this.sizes[u]=y;if(this.maxSize){const y=this.maxSize-this.sizes[u];while(this.calculatedSize>y){this.evict(true)}}this.calculatedSize+=this.sizes[u];if(C){C.entrySize=y;C.totalCalculatedSize=this.calculatedSize}}}removeItemSize(u){}addItemSize(u,y){}requireSize(u,y,C,D){if(C||D){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}}*indexes({allowStale:u=this.allowStale}={}){if(this.size){for(let y=this.tail;true;){if(!this.isValidIndex(y)){break}if(u||!this.isStale(y)){yield y}if(y===this.head){break}else{y=this.prev[y]}}}}*rindexes({allowStale:u=this.allowStale}={}){if(this.size){for(let y=this.head;true;){if(!this.isValidIndex(y)){break}if(u||!this.isStale(y)){yield y}if(y===this.tail){break}else{y=this.next[y]}}}}isValidIndex(u){return u!==undefined&&this.keyMap.get(this.keyList[u])===u}*entries(){for(const u of this.indexes()){if(this.valList[u]!==undefined&&this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield[this.keyList[u],this.valList[u]]}}}*rentries(){for(const u of this.rindexes()){if(this.valList[u]!==undefined&&this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield[this.keyList[u],this.valList[u]]}}}*keys(){for(const u of this.indexes()){if(this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.keyList[u]}}}*rkeys(){for(const u of this.rindexes()){if(this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.keyList[u]}}}*values(){for(const u of this.indexes()){if(this.valList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.valList[u]}}}*rvalues(){for(const u of this.rindexes()){if(this.valList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.valList[u]}}}[Symbol.iterator](){return this.entries()}find(u,y){for(const C of this.indexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;if(u(_,this.keyList[C],this)){return this.get(this.keyList[C],y)}}}forEach(u,y=this){for(const C of this.indexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.keyList[C],this)}}rforEach(u,y=this){for(const C of this.rindexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.keyList[C],this)}}get prune(){deprecatedMethod("prune","purgeStale");return this.purgeStale}purgeStale(){let u=false;for(const y of this.rindexes({allowStale:true})){if(this.isStale(y)){this.delete(this.keyList[y]);u=true}}return u}dump(){const u=[];for(const C of this.indexes({allowStale:true})){const D=this.keyList[C];const _=this.valList[C];const j=this.isBackgroundFetch(_)?_.__staleWhileFetching:_;if(j===undefined)continue;const $={value:j};if(this.ttls){$.ttl=this.ttls[C];const u=y.now()-this.starts[C];$.start=Math.floor(Date.now()-u)}if(this.sizes){$.size=this.sizes[C]}u.unshift([D,$])}return u}load(u){this.clear();for(const[C,D]of u){if(D.start){const u=Date.now()-D.start;D.start=y.now()-u}this.set(C,D.value,D)}}dispose(u,y,C){}set(u,y,{ttl:C=this.ttl,start:D,noDisposeOnSet:_=this.noDisposeOnSet,size:j=0,sizeCalculation:$=this.sizeCalculation,noUpdateTTL:ne=this.noUpdateTTL,status:oe}={}){j=this.requireSize(u,y,j,$);if(this.maxEntrySize&&j>this.maxEntrySize){if(oe){oe.set="miss";oe.maxEntrySizeExceeded=true}this.delete(u);return this}let le=this.size===0?undefined:this.keyMap.get(u);if(le===undefined){le=this.newIndex();this.keyList[le]=u;this.valList[le]=y;this.keyMap.set(u,le);this.next[this.tail]=le;this.prev[le]=this.tail;this.tail=le;this.size++;this.addItemSize(le,j,oe);if(oe){oe.set="add"}ne=false}else{this.moveToTail(le);const C=this.valList[le];if(y!==C){if(this.isBackgroundFetch(C)){C.__abortController.abort(new Error("replaced"))}else{if(!_){this.dispose(C,u,"set");if(this.disposeAfter){this.disposed.push([C,u,"set"])}}}this.removeItemSize(le);this.valList[le]=y;this.addItemSize(le,j,oe);if(oe){oe.set="replace";const u=C&&this.isBackgroundFetch(C)?C.__staleWhileFetching:C;if(u!==undefined)oe.oldValue=u}}else if(oe){oe.set="update"}}if(C!==0&&this.ttl===0&&!this.ttls){this.initializeTTLTracking()}if(!ne){this.setItemTTL(le,C,D)}this.statusTTL(oe,le);if(this.disposeAfter){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return this}newIndex(){if(this.size===0){return this.tail}if(this.size===this.max&&this.max!==0){return this.evict(false)}if(this.free.length!==0){return this.free.pop()}return this.initialFill++}pop(){if(this.size){const u=this.valList[this.head];this.evict(true);return u}}evict(u){const y=this.head;const C=this.keyList[y];const D=this.valList[y];if(this.isBackgroundFetch(D)){D.__abortController.abort(new Error("evicted"))}else{this.dispose(D,C,"evict");if(this.disposeAfter){this.disposed.push([D,C,"evict"])}}this.removeItemSize(y);if(u){this.keyList[y]=null;this.valList[y]=null;this.free.push(y)}this.head=this.next[y];this.keyMap.delete(C);this.size--;return y}has(u,{updateAgeOnHas:y=this.updateAgeOnHas,status:C}={}){const D=this.keyMap.get(u);if(D!==undefined){if(!this.isStale(D)){if(y){this.updateItemAge(D)}if(C)C.has="hit";this.statusTTL(C,D);return true}else if(C){C.has="stale";this.statusTTL(C,D)}}else if(C){C.has="miss"}return false}peek(u,{allowStale:y=this.allowStale}={}){const C=this.keyMap.get(u);if(C!==undefined&&(y||!this.isStale(C))){const u=this.valList[C];return this.isBackgroundFetch(u)?u.__staleWhileFetching:u}}backgroundFetch(u,y,C,_){const j=y===undefined?undefined:this.valList[y];if(this.isBackgroundFetch(j)){return j}const $=new D;if(C.signal){C.signal.addEventListener("abort",(()=>$.abort(C.signal.reason)))}const ne={signal:$.signal,options:C,context:_};const cb=(D,_=false)=>{const{aborted:j}=$.signal;const le=C.ignoreFetchAbort&&D!==undefined;if(C.status){if(j&&!_){C.status.fetchAborted=true;C.status.fetchError=$.signal.reason;if(le)C.status.fetchAbortIgnored=true}else{C.status.fetchResolved=true}}if(j&&!le&&!_){return fetchFail($.signal.reason)}if(this.valList[y]===oe){if(D===undefined){if(oe.__staleWhileFetching){this.valList[y]=oe.__staleWhileFetching}else{this.delete(u)}}else{if(C.status)C.status.fetchUpdated=true;this.set(u,D,ne.options)}}return D};const eb=u=>{if(C.status){C.status.fetchRejected=true;C.status.fetchError=u}return fetchFail(u)};const fetchFail=D=>{const{aborted:_}=$.signal;const j=_&&C.allowStaleOnFetchAbort;const ne=j||C.allowStaleOnFetchRejection;const le=ne||C.noDeleteOnFetchRejection;if(this.valList[y]===oe){const C=!le||oe.__staleWhileFetching===undefined;if(C){this.delete(u)}else if(!j){this.valList[y]=oe.__staleWhileFetching}}if(ne){if(C.status&&oe.__staleWhileFetching!==undefined){C.status.returnedStale=true}return oe.__staleWhileFetching}else if(oe.__returned===oe){throw D}};const pcall=(y,D)=>{this.fetchMethod(u,j,ne).then((u=>y(u)),D);$.signal.addEventListener("abort",(()=>{if(!C.ignoreFetchAbort||C.allowStaleOnFetchAbort){y();if(C.allowStaleOnFetchAbort){y=u=>cb(u,true)}}}))};if(C.status)C.status.fetchDispatched=true;const oe=new Promise(pcall).then(cb,eb);oe.__abortController=$;oe.__staleWhileFetching=j;oe.__returned=null;if(y===undefined){this.set(u,oe,{...ne.options,status:undefined});y=this.keyMap.get(u)}else{this.valList[y]=oe}return oe}isBackgroundFetch(u){return u&&typeof u==="object"&&typeof u.then==="function"&&Object.prototype.hasOwnProperty.call(u,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(u,"__returned")&&(u.__returned===u||u.__returned===null)}async fetch(u,{allowStale:y=this.allowStale,updateAgeOnGet:C=this.updateAgeOnGet,noDeleteOnStaleGet:D=this.noDeleteOnStaleGet,ttl:_=this.ttl,noDisposeOnSet:j=this.noDisposeOnSet,size:$=0,sizeCalculation:ne=this.sizeCalculation,noUpdateTTL:oe=this.noUpdateTTL,noDeleteOnFetchRejection:le=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:de=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ae=this.ignoreFetchAbort,allowStaleOnFetchAbort:pe=this.allowStaleOnFetchAbort,fetchContext:Ee=this.fetchContext,forceRefresh:Ce=false,status:Ie,signal:Be}={}){if(!this.fetchMethod){if(Ie)Ie.fetch="get";return this.get(u,{allowStale:y,updateAgeOnGet:C,noDeleteOnStaleGet:D,status:Ie})}const De={allowStale:y,updateAgeOnGet:C,noDeleteOnStaleGet:D,ttl:_,noDisposeOnSet:j,size:$,sizeCalculation:ne,noUpdateTTL:oe,noDeleteOnFetchRejection:le,allowStaleOnFetchRejection:de,allowStaleOnFetchAbort:pe,ignoreFetchAbort:Ae,status:Ie,signal:Be};let xe=this.keyMap.get(u);if(xe===undefined){if(Ie)Ie.fetch="miss";const y=this.backgroundFetch(u,xe,De,Ee);return y.__returned=y}else{const D=this.valList[xe];if(this.isBackgroundFetch(D)){const u=y&&D.__staleWhileFetching!==undefined;if(Ie){Ie.fetch="inflight";if(u)Ie.returnedStale=true}return u?D.__staleWhileFetching:D.__returned=D}const _=this.isStale(xe);if(!Ce&&!_){if(Ie)Ie.fetch="hit";this.moveToTail(xe);if(C){this.updateItemAge(xe)}this.statusTTL(Ie,xe);return D}const j=this.backgroundFetch(u,xe,De,Ee);const $=j.__staleWhileFetching!==undefined;const ne=$&&y;if(Ie){Ie.fetch=$&&_?"stale":"refresh";if(ne&&_)Ie.returnedStale=true}return ne?j.__staleWhileFetching:j.__returned=j}}get(u,{allowStale:y=this.allowStale,updateAgeOnGet:C=this.updateAgeOnGet,noDeleteOnStaleGet:D=this.noDeleteOnStaleGet,status:_}={}){const j=this.keyMap.get(u);if(j!==undefined){const $=this.valList[j];const ne=this.isBackgroundFetch($);this.statusTTL(_,j);if(this.isStale(j)){if(_)_.get="stale";if(!ne){if(!D){this.delete(u)}if(_)_.returnedStale=y;return y?$:undefined}else{if(_){_.returnedStale=y&&$.__staleWhileFetching!==undefined}return y?$.__staleWhileFetching:undefined}}else{if(_)_.get="hit";if(ne){return $.__staleWhileFetching}this.moveToTail(j);if(C){this.updateItemAge(j)}return $}}else if(_){_.get="miss"}}connect(u,y){this.prev[y]=u;this.next[u]=y}moveToTail(u){if(u!==this.tail){if(u===this.head){this.head=this.next[u]}else{this.connect(this.prev[u],this.next[u])}this.connect(this.tail,u);this.tail=u}}get del(){deprecatedMethod("del","delete");return this.delete}delete(u){let y=false;if(this.size!==0){const C=this.keyMap.get(u);if(C!==undefined){y=true;if(this.size===1){this.clear()}else{this.removeItemSize(C);const y=this.valList[C];if(this.isBackgroundFetch(y)){y.__abortController.abort(new Error("deleted"))}else{this.dispose(y,u,"delete");if(this.disposeAfter){this.disposed.push([y,u,"delete"])}}this.keyMap.delete(u);this.keyList[C]=null;this.valList[C]=null;if(C===this.tail){this.tail=this.prev[C]}else if(C===this.head){this.head=this.next[C]}else{this.next[this.prev[C]]=this.next[C];this.prev[this.next[C]]=this.prev[C]}this.size--;this.free.push(C)}}}if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return y}clear(){for(const u of this.rindexes({allowStale:true})){const y=this.valList[u];if(this.isBackgroundFetch(y)){y.__abortController.abort(new Error("deleted"))}else{const C=this.keyList[u];this.dispose(y,C,"delete");if(this.disposeAfter){this.disposed.push([y,C,"delete"])}}}this.keyMap.clear();this.valList.fill(null);this.keyList.fill(null);if(this.ttls){this.ttls.fill(0);this.starts.fill(0)}if(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;if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}}get reset(){deprecatedMethod("reset","clear");return this.clear}get length(){deprecatedProperty("length","size");return this.size}static get AbortController(){return D}static get AbortSignal(){return $}}u.exports=LRUCache},131:(u,y,C)=>{C.d(y,{Ik:()=>It,_W:()=>eraseLines});var D=C(1708);var _=C(8161);const j=globalThis.window?.document!==undefined;const $=globalThis.process?.versions?.node!==undefined;const ne=globalThis.process?.versions?.bun!==undefined;const oe=globalThis.Deno?.version?.deno!==undefined;const le=globalThis.process?.versions?.electron!==undefined;const de=globalThis.navigator?.userAgent?.includes("jsdom")===true;const Ae=typeof WorkerGlobalScope!=="undefined"&&globalThis instanceof WorkerGlobalScope;const pe=typeof DedicatedWorkerGlobalScope!=="undefined"&&globalThis instanceof DedicatedWorkerGlobalScope;const Ee=typeof SharedWorkerGlobalScope!=="undefined"&&globalThis instanceof SharedWorkerGlobalScope;const Ce=typeof ServiceWorkerGlobalScope!=="undefined"&&globalThis instanceof ServiceWorkerGlobalScope;const Ie=globalThis.navigator?.userAgentData?.platform;const Be=Ie==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===true||globalThis.process?.platform==="darwin";const De=Ie==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32";const xe=Ie==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===true||globalThis.navigator?.userAgent?.includes(" Linux ")===true||globalThis.process?.platform==="linux";const Fe=Ie==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform);const _e=Ie==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===true||globalThis.process?.platform==="android";const Le="[";const ze="]";const qe="";const Je=";";const Ke=!j&&D.env.TERM_PROGRAM==="Apple_Terminal";const et=!j&&D.platform==="win32";const tt=!j&&(D.env.TERM?.startsWith("screen")||D.env.TERM?.startsWith("tmux")||D.env.TMUX!==undefined);const rt=j?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:D.cwd;const wrapOsc=u=>{if(tt){return"Ptmux;"+u.replaceAll("","")+"\\"}return u};const cursorTo=(u,y)=>{if(typeof u!=="number"){throw new TypeError("The `x` argument is required")}if(typeof y!=="number"){return Le+(u+1)+"G"}return Le+(y+1)+Je+(u+1)+"H"};const cursorMove=(u,y)=>{if(typeof u!=="number"){throw new TypeError("The `x` argument is required")}let C="";if(u<0){C+=Le+-u+"D"}else if(u>0){C+=Le+u+"C"}if(y<0){C+=Le+-y+"A"}else if(y>0){C+=Le+y+"B"}return C};const cursorUp=(u=1)=>Le+u+"A";const cursorDown=(u=1)=>Le+u+"B";const cursorForward=(u=1)=>Le+u+"C";const cursorBackward=(u=1)=>Le+u+"D";const nt=Le+"G";const it=Ke?"7":Le+"s";const st=Ke?"8":Le+"u";const ot=Le+"6n";const at=Le+"E";const lt=Le+"F";const ct=Le+"?25l";const ut=Le+"?25h";const eraseLines=u=>{let y="";for(let C=0;C<u;C++){y+=At+(C<u-1?cursorUp():"")}if(u){y+=nt}return y};const ft=Le+"K";const dt=Le+"1K";const At=Le+"2K";const ht=Le+"J";const pt=Le+"1J";const gt=Le+"2J";const mt=Le+"S";const yt=Le+"T";const Et="c";const Ct=null&&`${gt}${Le}H`;const isOldWindows=()=>{if(j||!et){return false}const u=_.release().split(".");const y=Number(u[0]);const C=Number(u[2]??0);if(y<10){return true}if(y===10&&C<10586){return true}return false};const It=isOldWindows()?`${gt}${Le}0f`:`${gt}${Le}3J${Le}H`;const bt=Le+"?1049h";const vt=Le+"?1049l";const wt=null&&qe;const base_link=(u,y)=>{const C=wrapOsc(`${ze}8${Je}${Je}${y}${qe}`);const D=wrapOsc(`${ze}8${Je}${Je}${qe}`);return C+u+D};const base_image=(u,y={})=>{let C=`${ze}1337;File=inline=1`;if(y.width){C+=`;width=${y.width}`}if(y.height){C+=`;height=${y.height}`}if(y.preserveAspectRatio===false){C+=";preserveAspectRatio=0"}const D=Buffer.from(u);return wrapOsc(C+`;size=${D.byteLength}`+":"+D.toString("base64")+qe)};const Bt={setCwd:(u=rt())=>wrapOsc(`${ze}50;CurrentDir=${u}${qe}`),annotation(u,y={}){let C=`${ze}1337;`;const D=y.x!==undefined;const _=y.y!==undefined;if((D||_)&&!(D&&_&&y.length!==undefined)){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}u=u.replaceAll("|","");C+=y.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(y.length>0){C+=(D?[u,y.length,y.x,y.y]:[y.length,u]).join("|")}else{C+=u}return wrapOsc(C+qe)}};const Dt={setCwd:(u=rt())=>wrapOsc(`${ze}9;9;${u}${qe}`)};const setCwd=(u=rt())=>Bt.setCwd(u)+Dt.setCwd(u)},7865:(u,y,C)=>{C.d(y,{Ay:()=>de});const D=10;const wrapAnsi16=(u=0)=>y=>`[${y+u}m`;const wrapAnsi256=(u=0)=>y=>`[${38+u};5;${y}m`;const wrapAnsi16m=(u=0)=>(y,C,D)=>`[${38+u};2;${y};${C};${D}m`;const _={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const j=Object.keys(_.modifier);const $=Object.keys(_.color);const ne=Object.keys(_.bgColor);const oe=[...$,...ne];function assembleStyles(){const u=new Map;for(const[y,C]of Object.entries(_)){for(const[y,D]of Object.entries(C)){_[y]={open:`[${D[0]}m`,close:`[${D[1]}m`};C[y]=_[y];u.set(D[0],D[1])}Object.defineProperty(_,y,{value:C,enumerable:false})}Object.defineProperty(_,"codes",{value:u,enumerable:false});_.color.close="";_.bgColor.close="";_.color.ansi=wrapAnsi16();_.color.ansi256=wrapAnsi256();_.color.ansi16m=wrapAnsi16m();_.bgColor.ansi=wrapAnsi16(D);_.bgColor.ansi256=wrapAnsi256(D);_.bgColor.ansi16m=wrapAnsi16m(D);Object.defineProperties(_,{rgbToAnsi256:{value(u,y,C){if(u===y&&y===C){if(u<8){return 16}if(u>248){return 231}return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(y/255*5)+Math.round(C/255*5)},enumerable:false},hexToRgb:{value(u){const y=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!y){return[0,0,0]}let[C]=y;if(C.length===3){C=[...C].map((u=>u+u)).join("")}const D=Number.parseInt(C,16);return[D>>16&255,D>>8&255,D&255]},enumerable:false},hexToAnsi256:{value:u=>_.rgbToAnsi256(..._.hexToRgb(u)),enumerable:false},ansi256ToAnsi:{value(u){if(u<8){return 30+u}if(u<16){return 90+(u-8)}let y;let C;let D;if(u>=232){y=((u-232)*10+8)/255;C=y;D=y}else{u-=16;const _=u%36;y=Math.floor(u/36)/5;C=Math.floor(_/6)/5;D=_%6/5}const _=Math.max(y,C,D)*2;if(_===0){return 30}let j=30+(Math.round(D)<<2|Math.round(C)<<1|Math.round(y));if(_===2){j+=60}return j},enumerable:false},rgbToAnsi:{value:(u,y,C)=>_.ansi256ToAnsi(_.rgbToAnsi256(u,y,C)),enumerable:false},hexToAnsi:{value:u=>_.ansi256ToAnsi(_.hexToAnsi256(u)),enumerable:false}});return _}const le=assembleStyles();const de=le},2640:(u,y,C)=>{C.d(y,{A:()=>autoBind});const getAllProperties=u=>{const y=new Set;do{for(const C of Reflect.ownKeys(u)){y.add([u,C])}}while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return y};function autoBind(u,{include:y,exclude:C}={}){const filter=u=>{const match=y=>typeof y==="string"?u===y:y.test(u);if(y){return y.some(match)}if(C){return!C.some(match)}return true};for(const[y,C]of getAllProperties(u.constructor.prototype)){if(C==="constructor"||!filter(C)){continue}const D=Reflect.getOwnPropertyDescriptor(y,C);if(D&&typeof D.value==="function"){u[C]=u[C].bind(u)}}return u}},6797:(u,y,C)=>{C.d(y,{Ay:()=>nt});const D=10;const wrapAnsi16=(u=0)=>y=>`[${y+u}m`;const wrapAnsi256=(u=0)=>y=>`[${38+u};5;${y}m`;const wrapAnsi16m=(u=0)=>(y,C,D)=>`[${38+u};2;${y};${C};${D}m`;const _={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const j=Object.keys(_.modifier);const $=Object.keys(_.color);const ne=Object.keys(_.bgColor);const oe=[...$,...ne];function assembleStyles(){const u=new Map;for(const[y,C]of Object.entries(_)){for(const[y,D]of Object.entries(C)){_[y]={open:`[${D[0]}m`,close:`[${D[1]}m`};C[y]=_[y];u.set(D[0],D[1])}Object.defineProperty(_,y,{value:C,enumerable:false})}Object.defineProperty(_,"codes",{value:u,enumerable:false});_.color.close="";_.bgColor.close="";_.color.ansi=wrapAnsi16();_.color.ansi256=wrapAnsi256();_.color.ansi16m=wrapAnsi16m();_.bgColor.ansi=wrapAnsi16(D);_.bgColor.ansi256=wrapAnsi256(D);_.bgColor.ansi16m=wrapAnsi16m(D);Object.defineProperties(_,{rgbToAnsi256:{value(u,y,C){if(u===y&&y===C){if(u<8){return 16}if(u>248){return 231}return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(y/255*5)+Math.round(C/255*5)},enumerable:false},hexToRgb:{value(u){const y=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!y){return[0,0,0]}let[C]=y;if(C.length===3){C=[...C].map((u=>u+u)).join("")}const D=Number.parseInt(C,16);return[D>>16&255,D>>8&255,D&255]},enumerable:false},hexToAnsi256:{value:u=>_.rgbToAnsi256(..._.hexToRgb(u)),enumerable:false},ansi256ToAnsi:{value(u){if(u<8){return 30+u}if(u<16){return 90+(u-8)}let y;let C;let D;if(u>=232){y=((u-232)*10+8)/255;C=y;D=y}else{u-=16;const _=u%36;y=Math.floor(u/36)/5;C=Math.floor(_/6)/5;D=_%6/5}const _=Math.max(y,C,D)*2;if(_===0){return 30}let j=30+(Math.round(D)<<2|Math.round(C)<<1|Math.round(y));if(_===2){j+=60}return j},enumerable:false},rgbToAnsi:{value:(u,y,C)=>_.ansi256ToAnsi(_.rgbToAnsi256(u,y,C)),enumerable:false},hexToAnsi:{value:u=>_.ansi256ToAnsi(_.hexToAnsi256(u)),enumerable:false}});return _}const le=assembleStyles();const de=le;var Ae=C(1708);var pe=C(8161);var Ee=C(7066);function hasFlag(u,y=(globalThis.Deno?globalThis.Deno.args:Ae.argv)){const C=u.startsWith("-")?"":u.length===1?"-":"--";const D=y.indexOf(C+u);const _=y.indexOf("--");return D!==-1&&(_===-1||D<_)}const{env:Ce}=Ae;let Ie;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){Ie=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){Ie=1}function envForceColor(){if("FORCE_COLOR"in Ce){if(Ce.FORCE_COLOR==="true"){return 1}if(Ce.FORCE_COLOR==="false"){return 0}return Ce.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ce.FORCE_COLOR,10),3)}}function translateLevel(u){if(u===0){return false}return{level:u,hasBasic:true,has256:u>=2,has16m:u>=3}}function _supportsColor(u,{streamIsTTY:y,sniffFlags:C=true}={}){const D=envForceColor();if(D!==undefined){Ie=D}const _=C?Ie:D;if(_===0){return 0}if(C){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in Ce&&"AGENT_NAME"in Ce){return 1}if(u&&!y&&_===undefined){return 0}const j=_||0;if(Ce.TERM==="dumb"){return j}if(Ae.platform==="win32"){const u=pe.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586){return Number(u[2])>=14931?3:2}return 1}if("CI"in Ce){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u=>u in Ce))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u=>u in Ce))||Ce.CI_NAME==="codeship"){return 1}return j}if("TEAMCITY_VERSION"in Ce){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ce.TEAMCITY_VERSION)?1:0}if(Ce.COLORTERM==="truecolor"){return 3}if(Ce.TERM==="xterm-kitty"){return 3}if(Ce.TERM==="xterm-ghostty"){return 3}if(Ce.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in Ce){const u=Number.parseInt((Ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ce.TERM_PROGRAM){case"iTerm.app":{return u>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(Ce.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ce.TERM)){return 1}if("COLORTERM"in Ce){return 1}return j}function createSupportsColor(u,y={}){const C=_supportsColor(u,{streamIsTTY:u&&u.isTTY,...y});return translateLevel(C)}const Be={stdout:createSupportsColor({isTTY:Ee.isatty(1)}),stderr:createSupportsColor({isTTY:Ee.isatty(2)})};const De=Be;function stringReplaceAll(u,y,C){let D=u.indexOf(y);if(D===-1){return u}const _=y.length;let j=0;let $="";do{$+=u.slice(j,D)+y+C;j=D+_;D=u.indexOf(y,j)}while(D!==-1);$+=u.slice(j);return $}function stringEncaseCRLFWithFirstIndex(u,y,C,D){let _=0;let j="";do{const $=u[D-1]==="\r";j+=u.slice(_,$?D-1:D)+y+($?"\r\n":"\n")+C;_=D+1;D=u.indexOf("\n",_)}while(D!==-1);j+=u.slice(_);return j}const{stdout:xe,stderr:Fe}=De;const _e=Symbol("GENERATOR");const Le=Symbol("STYLER");const ze=Symbol("IS_EMPTY");const qe=["ansi","ansi","ansi256","ansi16m"];const Je=Object.create(null);const applyOptions=(u,y={})=>{if(y.level&&!(Number.isInteger(y.level)&&y.level>=0&&y.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const C=xe?xe.level:0;u.level=y.level===undefined?C:y.level};class Chalk{constructor(u){return chalkFactory(u)}}const chalkFactory=u=>{const chalk=(...u)=>u.join(" ");applyOptions(chalk,u);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(u){return chalkFactory(u)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[u,y]of Object.entries(de)){Je[u]={get(){const C=createBuilder(this,createStyler(y.open,y.close,this[Le]),this[ze]);Object.defineProperty(this,u,{value:C});return C}}}Je.visible={get(){const u=createBuilder(this,this[Le],true);Object.defineProperty(this,"visible",{value:u});return u}};const getModelAnsi=(u,y,C,...D)=>{if(u==="rgb"){if(y==="ansi16m"){return de[C].ansi16m(...D)}if(y==="ansi256"){return de[C].ansi256(de.rgbToAnsi256(...D))}return de[C].ansi(de.rgbToAnsi(...D))}if(u==="hex"){return getModelAnsi("rgb",y,C,...de.hexToRgb(...D))}return de[C][u](...D)};const Ke=["rgb","hex","ansi256"];for(const u of Ke){Je[u]={get(){const{level:y}=this;return function(...C){const D=createStyler(getModelAnsi(u,qe[y],"color",...C),de.color.close,this[Le]);return createBuilder(this,D,this[ze])}}};const y="bg"+u[0].toUpperCase()+u.slice(1);Je[y]={get(){const{level:y}=this;return function(...C){const D=createStyler(getModelAnsi(u,qe[y],"bgColor",...C),de.bgColor.close,this[Le]);return createBuilder(this,D,this[ze])}}}}const et=Object.defineProperties((()=>{}),{...Je,level:{enumerable:true,get(){return this[_e].level},set(u){this[_e].level=u}}});const createStyler=(u,y,C)=>{let D;let _;if(C===undefined){D=u;_=y}else{D=C.openAll+u;_=y+C.closeAll}return{open:u,close:y,openAll:D,closeAll:_,parent:C}};const createBuilder=(u,y,C)=>{const builder=(...u)=>applyStyle(builder,u.length===1?""+u[0]:u.join(" "));Object.setPrototypeOf(builder,et);builder[_e]=u;builder[Le]=y;builder[ze]=C;return builder};const applyStyle=(u,y)=>{if(u.level<=0||!y){return u[ze]?"":y}let C=u[Le];if(C===undefined){return y}const{openAll:D,closeAll:_}=C;if(y.includes("")){while(C!==undefined){y=stringReplaceAll(y,C.close,C.open);C=C.parent}}const j=y.indexOf("\n");if(j!==-1){y=stringEncaseCRLFWithFirstIndex(y,_,D,j)}return D+y+_};Object.defineProperties(createChalk.prototype,Je);const tt=createChalk();const rt=createChalk({level:Fe?Fe.level:0});const nt=tt},5229:(u,y,C)=>{C.d(y,{A:()=>de});var D=C(1708);var _=C(9969);var j=C(6627);const $=_((()=>{j((()=>{D.stderr.write("[?25h")}),{alwaysLast:true})}));const ne=$;let oe=false;const le={};le.show=(u=D.stderr)=>{if(!u.isTTY){return}oe=false;u.write("[?25h")};le.hide=(u=D.stderr)=>{if(!u.isTTY){return}ne();oe=true;u.write("[?25l")};le.toggle=(u,y)=>{if(u!==undefined){oe=u}if(oe){le.show(y)}else{le.hide(y)}};const de=le},7073:(u,y,C)=>{C.d(y,{Pp:()=>diffLines});class Diff{diff(u,y,C={}){let D;if(typeof C==="function"){D=C;C={}}else if("callback"in C){D=C.callback}const _=this.castInput(u,C);const j=this.castInput(y,C);const $=this.removeEmpty(this.tokenize(_,C));const ne=this.removeEmpty(this.tokenize(j,C));return this.diffWithOptionsObj($,ne,C,D)}diffWithOptionsObj(u,y,C,D){var _;const done=u=>{u=this.postProcess(u,C);if(D){setTimeout((function(){D(u)}),0);return undefined}else{return u}};const j=y.length,$=u.length;let ne=1;let oe=j+$;if(C.maxEditLength!=null){oe=Math.min(oe,C.maxEditLength)}const le=(_=C.timeout)!==null&&_!==void 0?_:Infinity;const de=Date.now()+le;const Ae=[{oldPos:-1,lastComponent:undefined}];let pe=this.extractCommon(Ae[0],y,u,0,C);if(Ae[0].oldPos+1>=$&&pe+1>=j){return done(this.buildValues(Ae[0].lastComponent,y,u))}let Ee=-Infinity,Ce=Infinity;const execEditLength=()=>{for(let D=Math.max(Ee,-ne);D<=Math.min(Ce,ne);D+=2){let _;const ne=Ae[D-1],oe=Ae[D+1];if(ne){Ae[D-1]=undefined}let le=false;if(oe){const u=oe.oldPos-D;le=oe&&0<=u&&u<j}const de=ne&&ne.oldPos+1<$;if(!le&&!de){Ae[D]=undefined;continue}if(!de||le&&ne.oldPos<oe.oldPos){_=this.addToPath(oe,true,false,0,C)}else{_=this.addToPath(ne,false,true,1,C)}pe=this.extractCommon(_,y,u,D,C);if(_.oldPos+1>=$&&pe+1>=j){return done(this.buildValues(_.lastComponent,y,u))||true}else{Ae[D]=_;if(_.oldPos+1>=$){Ce=Math.min(Ce,D-1)}if(pe+1>=j){Ee=Math.max(Ee,D+1)}}}ne++};if(D){(function exec(){setTimeout((function(){if(ne>oe||Date.now()>de){return D(undefined)}if(!execEditLength()){exec()}}),0)})()}else{while(ne<=oe&&Date.now()<=de){const u=execEditLength();if(u){return u}}}}addToPath(u,y,C,D,_){const j=u.lastComponent;if(j&&!_.oneChangePerToken&&j.added===y&&j.removed===C){return{oldPos:u.oldPos+D,lastComponent:{count:j.count+1,added:y,removed:C,previousComponent:j.previousComponent}}}else{return{oldPos:u.oldPos+D,lastComponent:{count:1,added:y,removed:C,previousComponent:j}}}}extractCommon(u,y,C,D,_){const j=y.length,$=C.length;let ne=u.oldPos,oe=ne-D,le=0;while(oe+1<j&&ne+1<$&&this.equals(C[ne+1],y[oe+1],_)){oe++;ne++;le++;if(_.oneChangePerToken){u.lastComponent={count:1,previousComponent:u.lastComponent,added:false,removed:false}}}if(le&&!_.oneChangePerToken){u.lastComponent={count:le,previousComponent:u.lastComponent,added:false,removed:false}}u.oldPos=ne;return oe}equals(u,y,C){if(C.comparator){return C.comparator(u,y)}else{return u===y||!!C.ignoreCase&&u.toLowerCase()===y.toLowerCase()}}removeEmpty(u){const y=[];for(let C=0;C<u.length;C++){if(u[C]){y.push(u[C])}}return y}castInput(u,y){return u}tokenize(u,y){return Array.from(u)}join(u){return u.join("")}postProcess(u,y){return u}get useLongestToken(){return false}buildValues(u,y,C){const D=[];let _;while(u){D.push(u);_=u.previousComponent;delete u.previousComponent;u=_}D.reverse();const j=D.length;let $=0,ne=0,oe=0;for(;$<j;$++){const u=D[$];if(!u.removed){if(!u.added&&this.useLongestToken){let D=y.slice(ne,ne+u.count);D=D.map((function(u,y){const D=C[oe+y];return D.length>u.length?D:u}));u.value=this.join(D)}else{u.value=this.join(y.slice(ne,ne+u.count))}ne+=u.count;if(!u.added){oe+=u.count}}else{u.value=this.join(C.slice(oe,oe+u.count));oe+=u.count}}return D}}class LineDiff extends Diff{constructor(){super(...arguments);this.tokenize=tokenize}equals(u,y,C){if(C.ignoreWhitespace){if(!C.newlineIsToken||!u.includes("\n")){u=u.trim()}if(!C.newlineIsToken||!y.includes("\n")){y=y.trim()}}else if(C.ignoreNewlineAtEof&&!C.newlineIsToken){if(u.endsWith("\n")){u=u.slice(0,-1)}if(y.endsWith("\n")){y=y.slice(0,-1)}}return super.equals(u,y,C)}}const D=new LineDiff;function diffLines(u,y,C){return D.diff(u,y,C)}function diffTrimmedLines(u,y,C){C=generateOptions(C,{ignoreWhitespace:true});return D.diff(u,y,C)}function tokenize(u,y){if(y.stripTrailingCr){u=u.replace(/\r\n/g,"\n")}const C=[],D=u.split(/(\n|\r\n)/);if(!D[D.length-1]){D.pop()}for(let u=0;u<D.length;u++){const _=D[u];if(u%2&&!y.newlineIsToken){C[C.length-1]+=_}else{C.push(_)}}return C}},4772:(u,y,C)=>{C.d(y,{n:()=>throttle});function debounce(u,y,{signal:C,edges:D}={}){let _=undefined;let j=null;const $=D!=null&&D.includes("leading");const ne=D==null||D.includes("trailing");const invoke=()=>{if(j!==null){u.apply(_,j);_=undefined;j=null}};const onTimerEnd=()=>{if(ne){invoke()}cancel()};let oe=null;const schedule=()=>{if(oe!=null){clearTimeout(oe)}oe=setTimeout((()=>{oe=null;onTimerEnd()}),y)};const cancelTimer=()=>{if(oe!==null){clearTimeout(oe);oe=null}};const cancel=()=>{cancelTimer();_=undefined;j=null};const flush=()=>{invoke()};const debounced=function(...u){if(C?.aborted){return}_=this;j=u;const y=oe==null;schedule();if($&&y){invoke()}};debounced.schedule=schedule;debounced.cancel=cancel;debounced.flush=flush;C?.addEventListener("abort",cancel,{once:true});return debounced}function debounce_debounce(u,y=0,C={}){if(typeof C!=="object"){C={}}const{leading:D=false,trailing:_=true,maxWait:j}=C;const $=Array(2);if(D){$[0]="leading"}if(_){$[1]="trailing"}let ne=undefined;let oe=null;const le=debounce((function(...y){ne=u.apply(this,y);oe=null}),y,{edges:$});const debounced=function(...y){if(j!=null){if(oe===null){oe=Date.now()}if(Date.now()-oe>=j){ne=u.apply(this,y);oe=Date.now();le.cancel();le.schedule();return ne}}le.apply(this,y);return ne};const flush=()=>{le.flush();return ne};debounced.cancel=le.cancel;debounced.flush=flush;return debounced}function throttle(u,y=0,C={}){const{leading:D=true,trailing:_=true}=C;return debounce_debounce(u,y,{leading:D,maxWait:y,trailing:_})}},2435:(u,y,C)=>{C.d(y,{Ck:()=>isFullWidth,EW:()=>isWide,X2:()=>isAmbiguous});function isAmbiguous(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function isFullWidth(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function isWide(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function getCategory(u){if(isAmbiguous(u))return"ambiguous";if(isFullWidth(u))return"fullwidth";if(u===8361||u>=65377&&u<=65470||u>=65474&&u<=65479||u>=65482&&u<=65487||u>=65490&&u<=65495||u>=65498&&u<=65500||u>=65512&&u<=65518){return"halfwidth"}if(u>=32&&u<=126||u===162||u===163||u===165||u===166||u===172||u===175||u>=10214&&u<=10221||u===10629||u===10630){return"narrow"}if(isWide(u))return"wide";return"neutral"}},2861:(u,y,C)=>{C.d(y,{A:()=>indentString});function indentString(u,y=1,C={}){const{indent:D=" ",includeEmptyLines:_=false}=C;if(typeof u!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``)}if(typeof y!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof y}\``)}if(y<0){throw new RangeError(`Expected \`count\` to be at least 0, got \`${y}\``)}if(typeof D!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof D}\``)}if(y===0){return u}const j=_?/^/gm:/^(?!\s*$)/gm;return u.replace(j,D.repeat(y))}},8078:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C(8518);var $=C(6487);var ne=u([j]);j=(ne.then?(await ne)():ne)[0];function Spinner({type:u="dots"}){const[y,C]=(0,_.useState)(0);const D=$[u];(0,_.useEffect)((()=>{const u=setInterval((()=>{C((u=>{const y=u===D.frames.length-1;return y?0:u+1}))}),D.interval);return()=>{clearInterval(u)}}),[D]);return _.createElement(j.EY,null,D.frames[y])}const oe=Spinner;D()}catch(le){D(le)}}))},4087:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(6797);const _=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/;const j=/^ansi256\(\s?(\d+)\s?\)$/;const isNamedColor=u=>u in D.Ay;const colorize=(u,y,C)=>{if(!y){return u}if(isNamedColor(y)){if(C==="foreground"){return D.Ay[y](u)}const _=`bg${y[0].toUpperCase()+y.slice(1)}`;return D.Ay[_](u)}if(y.startsWith("#")){return C==="foreground"?D.Ay.hex(y)(u):D.Ay.bgHex(y)(u)}if(y.startsWith("ansi256")){const _=j.exec(y);if(!_){return u}const $=Number(_[1]);return C==="foreground"?D.Ay.ansi256($)(u):D.Ay.bgAnsi256($)(u)}if(y.startsWith("rgb")){const j=_.exec(y);if(!j){return u}const $=Number(j[1]);const ne=Number(j[2]);const oe=Number(j[3]);return C==="foreground"?D.Ay.rgb($,ne,oe)(u):D.Ay.bgRgb($,ne,oe)(u)}return u};const $=colorize},2226:(u,y,C)=>{C.d(y,{A:()=>App});var D=C(8474);var _=C(1708);var j=C(7919);var $=C(5229);var ne=C(2913);var oe=C(6258);var le=C(4857);var de=C(4036);var Ae=C(1724);var pe=C(3024);var Ee=C(4092);const convertToSpaces=(u,y=2)=>u.replace(/^\t+/gm,(u=>" ".repeat(u.length*y)));const Ce=convertToSpaces;const generateLineNumbers=(u,y)=>{const C=[];const D=u-y;const _=u+y;for(let u=D;u<=_;u++){C.push(u)}return C};const codeExcerpt=(u,y,C={})=>{var D;if(typeof u!=="string"){throw new TypeError("Source code is missing.")}if(!y||y<1){throw new TypeError("Line number must start from `1`.")}const _=Ce(u).split(/\r?\n/);if(y>_.length){return}return generateLineNumbers(y,(D=C.around)!==null&&D!==void 0?D:3).filter((u=>_[u-1]!==undefined)).map((u=>({line:u,value:_[u-1]})))};const Ie=codeExcerpt;var Be=C(2654);var De=C(9392);const cleanupPath=u=>u?.replace(`file://${(0,_.cwd)()}/`,"");const xe=new Ee({cwd:(0,_.cwd)(),internals:Ee.nodeInternals()});function ErrorOverview({error:u}){const y=u.stack?u.stack.split("\n").slice(1):undefined;const C=y?xe.parseLine(y[0]):undefined;const D=cleanupPath(C?.file);let _;let $=0;if(D&&C?.line&&pe.existsSync(D)){const u=pe.readFileSync(D,"utf8");_=Ie(u,C.line);if(_){for(const{line:u}of _){$=Math.max($,String(u).length)}}}return j.createElement(Be.A,{flexDirection:"column",padding:1},j.createElement(Be.A,null,j.createElement(De.A,{backgroundColor:"red",color:"white"}," ","ERROR"," "),j.createElement(De.A,null," ",u.message)),C&&D&&j.createElement(Be.A,{marginTop:1},j.createElement(De.A,{dimColor:true},D,":",C.line,":",C.column)),C&&_&&j.createElement(Be.A,{marginTop:1,flexDirection:"column"},_.map((({line:u,value:y})=>j.createElement(Be.A,{key:u},j.createElement(Be.A,{width:$+1},j.createElement(De.A,{dimColor:u!==C.line,backgroundColor:u===C.line?"red":undefined,color:u===C.line?"white":undefined},String(u).padStart($," "),":")),j.createElement(De.A,{key:u,backgroundColor:u===C.line?"red":undefined,color:u===C.line?"white":undefined}," "+y))))),u.stack&&j.createElement(Be.A,{marginTop:1,flexDirection:"column"},u.stack.split("\n").slice(1).map((u=>{const y=xe.parseLine(u);if(!y){return j.createElement(Be.A,{key:u},j.createElement(De.A,{dimColor:true},"- "),j.createElement(De.A,{dimColor:true,bold:true},u))}return j.createElement(Be.A,{key:u},j.createElement(De.A,{dimColor:true},"- "),j.createElement(De.A,{dimColor:true,bold:true},y.function),j.createElement(De.A,{dimColor:true,color:"gray"}," ","(",cleanupPath(y.file)??"",":",y.line,":",y.column,")"))}))))}const Fe="\t";const _e="";const Le="";class App extends j.PureComponent{static displayName="InternalApp";static getDerivedStateFromError(u){return{error:u}}state={isFocusEnabled:true,activeFocusId:undefined,focusables:[],error:undefined};rawModeEnabledCount=0;internal_eventEmitter=new D.EventEmitter;isRawModeSupported(){return this.props.stdin.isTTY}render(){return j.createElement(ne.A.Provider,{value:{exit:this.handleExit}},j.createElement(oe.A.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC,internal_eventEmitter:this.internal_eventEmitter}},j.createElement(le.A.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},j.createElement(de.A.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},j.createElement(Ae.A.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?j.createElement(ErrorOverview,{error:this.state.error}):this.props.children)))))}componentDidMount(){$.A.hide(this.props.stdout)}componentWillUnmount(){$.A.show(this.props.stdout);if(this.isRawModeSupported()){this.handleSetRawMode(false)}}componentDidCatch(u){this.handleExit(u)}handleSetRawMode=u=>{const{stdin:y}=this.props;if(!this.isRawModeSupported()){if(y===_.stdin){throw new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported")}else{throw new Error("Raw mode is not supported on the stdin provided to Ink.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported")}}y.setEncoding("utf8");if(u){if(this.rawModeEnabledCount===0){y.ref();y.setRawMode(true);y.addListener("readable",this.handleReadable)}this.rawModeEnabledCount++;return}if(--this.rawModeEnabledCount===0){y.setRawMode(false);y.removeListener("readable",this.handleReadable);y.unref()}};handleReadable=()=>{let u;while((u=this.props.stdin.read())!==null){this.handleInput(u);this.internal_eventEmitter.emit("input",u)}};handleInput=u=>{if(u===""&&this.props.exitOnCtrlC){this.handleExit()}if(u===Le&&this.state.activeFocusId){this.setState({activeFocusId:undefined})}if(this.state.isFocusEnabled&&this.state.focusables.length>0){if(u===Fe){this.focusNext()}if(u===_e){this.focusPrevious()}}};handleExit=u=>{if(this.isRawModeSupported()){this.handleSetRawMode(false)}this.props.onExit(u)};enableFocus=()=>{this.setState({isFocusEnabled:true})};disableFocus=()=>{this.setState({isFocusEnabled:false})};focus=u=>{this.setState((y=>{const C=y.focusables.some((y=>y?.id===u));if(!C){return y}return{activeFocusId:u}}))};focusNext=()=>{this.setState((u=>{const y=u.focusables.find((u=>u.isActive))?.id;const C=this.findNextFocusable(u);return{activeFocusId:C??y}}))};focusPrevious=()=>{this.setState((u=>{const y=u.focusables.findLast((u=>u.isActive))?.id;const C=this.findPreviousFocusable(u);return{activeFocusId:C??y}}))};addFocusable=(u,{autoFocus:y})=>{this.setState((C=>{let D=C.activeFocusId;if(!D&&y){D=u}return{activeFocusId:D,focusables:[...C.focusables,{id:u,isActive:true}]}}))};removeFocusable=u=>{this.setState((y=>({activeFocusId:y.activeFocusId===u?undefined:y.activeFocusId,focusables:y.focusables.filter((y=>y.id!==u))})))};activateFocusable=u=>{this.setState((y=>({focusables:y.focusables.map((y=>{if(y.id!==u){return y}return{id:u,isActive:true}}))})))};deactivateFocusable=u=>{this.setState((y=>({activeFocusId:y.activeFocusId===u?undefined:y.activeFocusId,focusables:y.focusables.map((y=>{if(y.id!==u){return y}return{id:u,isActive:false}}))})))};findNextFocusable=u=>{const y=u.focusables.findIndex((y=>y.id===u.activeFocusId));for(let C=y+1;C<u.focusables.length;C++){const y=u.focusables[C];if(y?.isActive){return y.id}}return undefined};findPreviousFocusable=u=>{const y=u.focusables.findIndex((y=>y.id===u.activeFocusId));for(let C=y-1;C>=0;C--){const y=u.focusables[C];if(y?.isActive){return y.id}}return undefined}}},2913:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.createContext)({exit(){}});_.displayName="InternalAppContext";const j=_},2654:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.forwardRef)((({children:u,...y},C)=>D.createElement("ink-box",{ref:C,style:{...y,overflowX:y.overflowX??y.overflow??"visible",overflowY:y.overflowY??y.overflow??"visible"}},u)));_.displayName="Box";_.defaultProps={flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1};const j=_},1724:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.createContext)({activeId:undefined,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});_.displayName="InternalFocusContext";const j=_},375:(u,y,C)=>{var D=C(7919);function Newline({count:u=1}){return React.createElement("ink-text",null,"\n".repeat(u))}},9199:(u,y,C)=>{var D=C(7919);var _=C(2654);function Spacer(){return React.createElement(Box,{flexGrow:1})}},7661:(u,y,C)=>{C.d(y,{A:()=>Static});var D=C(7919);function Static(u){const{items:y,children:C,style:_}=u;const[j,$]=(0,D.useState)(0);const ne=(0,D.useMemo)((()=>y.slice(j)),[y,j]);(0,D.useLayoutEffect)((()=>{$(y.length)}),[y.length]);const oe=ne.map(((u,y)=>C(u,j+y)));const le=(0,D.useMemo)((()=>({position:"absolute",flexDirection:"column",..._})),[_]);return D.createElement("ink-box",{internal_static:true,style:le},oe)}},4036:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(1708);var _=C(7919);const j=(0,_.createContext)({stderr:D.stderr,write(){}});j.displayName="InternalStderrContext";const $=j},6258:(u,y,C)=>{C.d(y,{A:()=>ne});var D=C(8474);var _=C(1708);var j=C(7919);const $=(0,j.createContext)({stdin:_.stdin,internal_eventEmitter:new D.EventEmitter,setRawMode(){},isRawModeSupported:false,internal_exitOnCtrlC:true});$.displayName="InternalStdinContext";const ne=$},4857:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(1708);var _=C(7919);const j=(0,_.createContext)({stdout:D.stdout,write(){}});j.displayName="InternalStdoutContext";const $=j},9392:(u,y,C)=>{C.d(y,{A:()=>Text});var D=C(7919);var _=C(6797);var j=C(4087);function Text({color:u,backgroundColor:y,dimColor:C=false,bold:$=false,italic:ne=false,underline:oe=false,strikethrough:le=false,inverse:de=false,wrap:Ae="wrap",children:pe}){if(pe===undefined||pe===null){return null}const transform=D=>{if(C){D=_.Ay.dim(D)}if(u){D=(0,j.A)(D,u,"foreground")}if(y){D=(0,j.A)(D,y,"background")}if($){D=_.Ay.bold(D)}if(ne){D=_.Ay.italic(D)}if(oe){D=_.Ay.underline(D)}if(le){D=_.Ay.strikethrough(D)}if(de){D=_.Ay.inverse(D)}return D};return D.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:Ae},internal_transform:transform},pe)}},2303:(u,y,C)=>{var D=C(7919);function Transform({children:u,transform:y}){if(u===undefined||u===null){return null}return React.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:y},u)}},8022:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{Bq:()=>setAttribute,Mq:()=>createTextNode,RM:()=>createNode,V6:()=>appendChildNode,V8:()=>removeChildNode,bC:()=>insertBeforeNode,eC:()=>setStyle,x6:()=>setTextNodeValue});var _=C(1e3);var j=C(5124);var $=C(2904);var ne=C(4877);var oe=u([_]);_=(oe.then?(await oe)():oe)[0];const createNode=u=>{const y={nodeName:u,style:{},attributes:{},childNodes:[],parentNode:undefined,yogaNode:u==="ink-virtual-text"?undefined:_.Ay.Node.create()};if(u==="ink-text"){y.yogaNode?.setMeasureFunc(measureTextNode.bind(null,y))}return y};const appendChildNode=(u,y)=>{if(y.parentNode){removeChildNode(y.parentNode,y)}y.parentNode=u;u.childNodes.push(y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,u.yogaNode.getChildCount())}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const insertBeforeNode=(u,y,C)=>{if(y.parentNode){removeChildNode(y.parentNode,y)}y.parentNode=u;const D=u.childNodes.indexOf(C);if(D>=0){u.childNodes.splice(D,0,y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,D)}return}u.childNodes.push(y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,u.yogaNode.getChildCount())}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const removeChildNode=(u,y)=>{if(y.yogaNode){y.parentNode?.yogaNode?.removeChild(y.yogaNode)}y.parentNode=undefined;const C=u.childNodes.indexOf(y);if(C>=0){u.childNodes.splice(C,1)}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const setAttribute=(u,y,C)=>{u.attributes[y]=C};const setStyle=(u,y)=>{u.style=y};const createTextNode=u=>{const y={nodeName:"#text",nodeValue:u,yogaNode:undefined,parentNode:undefined,style:{}};setTextNodeValue(y,u);return y};const measureTextNode=function(u,y){const C=u.nodeName==="#text"?u.nodeValue:(0,ne.A)(u);const D=(0,j.A)(C);if(D.width<=y){return D}if(D.width>=1&&y>0&&y<1){return D}const _=u.style?.textWrap??"wrap";const oe=(0,$.A)(C,y,_);return(0,j.A)(oe)};const findClosestYogaNode=u=>{if(!u?.parentNode){return undefined}return u.yogaNode??findClosestYogaNode(u.parentNode)};const markNodeAsDirty=u=>{const y=findClosestYogaNode(u);y?.markDirty()};const setTextNodeValue=(u,y)=>{if(typeof y!=="string"){y=String(y)}u.nodeValue=y;markNodeAsDirty(u)};D()}catch(u){D(u)}}))},7228:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>$});var _=C(1e3);var j=u([_]);_=(j.then?(await j)():j)[0];const getMaxWidth=u=>u.getComputedWidth()-u.getComputedPadding(_.Ay.EDGE_LEFT)-u.getComputedPadding(_.Ay.EDGE_RIGHT)-u.getComputedBorder(_.Ay.EDGE_LEFT)-u.getComputedBorder(_.Ay.EDGE_RIGHT);const $=getMaxWidth;D()}catch(u){D(u)}}))},520:(u,y,C)=>{var D=C(7919);var _=C(2913);const useApp=()=>useContext(AppContext);var j=null&&useApp},8649:(u,y,C)=>{var D=C(7919);var _=C(1724);const useFocusManager=()=>{const u=useContext(FocusContext);return{enableFocus:u.enableFocus,disableFocus:u.disableFocus,focusNext:u.focusNext,focusPrevious:u.focusPrevious,focus:u.focus}};var j=null&&useFocusManager},2215:(u,y,C)=>{var D=C(7919);var _=C(1724);var j=C(8253);const useFocus=({isActive:u=true,autoFocus:y=false,id:C}={})=>{const{isRawModeSupported:D,setRawMode:_}=useStdin();const{activeId:j,add:$,remove:ne,activate:oe,deactivate:le,focus:de}=useContext(FocusContext);const Ae=useMemo((()=>C??Math.random().toString().slice(2,7)),[C]);useEffect((()=>{$(Ae,{autoFocus:y});return()=>{ne(Ae)}}),[Ae,y]);useEffect((()=>{if(u){oe(Ae)}else{le(Ae)}}),[u,Ae]);useEffect((()=>{if(!D||!u){return}_(true);return()=>{_(false)}}),[u]);return{isFocused:Boolean(Ae)&&j===Ae,focus:de}};var $=null&&useFocus},8619:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C(864);var $=C(6106);var ne=C(8253);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const useInput=(u,y={})=>{const{stdin:C,setRawMode:D,internal_exitOnCtrlC:oe,internal_eventEmitter:le}=(0,ne.A)();(0,_.useEffect)((()=>{if(y.isActive===false){return}D(true);return()=>{D(false)}}),[y.isActive,D]);(0,_.useEffect)((()=>{if(y.isActive===false){return}const handleData=y=>{const C=(0,j.A)(y);const D={upArrow:C.name==="up",downArrow:C.name==="down",leftArrow:C.name==="left",rightArrow:C.name==="right",pageDown:C.name==="pagedown",pageUp:C.name==="pageup",return:C.name==="return",escape:C.name==="escape",ctrl:C.ctrl,shift:C.shift,tab:C.name==="tab",backspace:C.name==="backspace",delete:C.name==="delete",meta:C.meta||C.name==="escape"||C.option};let _=C.ctrl?C.name:C.sequence;if(j.f.includes(C.name)){_=""}if(_.startsWith("")){_=_.slice(1)}if(_.length===1&&typeof _[0]==="string"&&/[A-Z]/.test(_[0])){D.shift=true}if(!(_==="c"&&D.ctrl)||!oe){$.A.batchedUpdates((()=>{u(_,D)}))}};le?.on("input",handleData);return()=>{le?.removeListener("input",handleData)}}),[y.isActive,C,oe,u])};const le=useInput;D()}catch(u){D(u)}}))},3687:(u,y,C)=>{var D=C(7919);var _=C(4036);const useStderr=()=>useContext(StderrContext);var j=null&&useStderr},8253:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);var _=C(6258);const useStdin=()=>(0,D.useContext)(_.A);const j=useStdin},5904:(u,y,C)=>{var D=C(7919);var _=C(4857);const useStdout=()=>useContext(StdoutContext);var j=null&&useStdout},8518:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{EY:()=>$.A,Ge:()=>Ae.A,XX:()=>_.A,az:()=>j.A,jC:()=>ne.A});var _=C(5e3);var j=C(2654);var $=C(9392);var ne=C(7661);var oe=C(2303);var le=C(375);var de=C(9199);var Ae=C(8619);var pe=C(520);var Ee=C(8253);var Ce=C(5904);var Ie=C(3687);var Be=C(2215);var De=C(8649);var xe=u([_,Ae]);[_,Ae]=xe.then?(await xe)():xe;D()}catch(u){D(u)}}))},7758:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>Ink});var _=C(1708);var j=C(7919);var $=C(4772);var ne=C(131);var oe=C(6836);var le=C(2640);var de=C(6627);var Ae=C(4712);var pe=C(1e3);var Ee=C(6106);var Ce=C(4359);var Ie=C(8022);var Be=C(3884);var De=C(6630);var xe=C(2226);var Fe=u([pe,Ee,Ce,Ie]);[pe,Ee,Ce,Ie]=Fe.then?(await Fe)():Fe;const noop=()=>{};class Ink{options;log;throttledLog;isUnmounted;lastOutput;container;rootNode;fullStaticOutput;exitPromise;restoreConsole;unsubscribeResize;constructor(u){(0,le.A)(this);this.options=u;this.rootNode=Ie.RM("ink-root");this.rootNode.onComputeLayout=this.calculateLayout;this.rootNode.onRender=u.debug?this.onRender:(0,$.n)(this.onRender,32,{leading:true,trailing:true});this.rootNode.onImmediateRender=this.onRender;this.log=Be.A.create(u.stdout);this.throttledLog=u.debug?this.log:(0,$.n)(this.log,undefined,{leading:true,trailing:true});this.isUnmounted=false;this.lastOutput="";this.fullStaticOutput="";this.container=Ee.A.createContainer(this.rootNode,0,null,false,null,"id",(()=>{}),null);this.unsubscribeExit=de(this.unmount,{alwaysLast:false});if(_.env["DEV"]==="true"){Ee.A.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"})}if(u.patchConsole){this.patchConsole()}if(!oe.A){u.stdout.on("resize",this.resized);this.unsubscribeResize=()=>{u.stdout.off("resize",this.resized)}}}resized=()=>{this.calculateLayout();this.onRender()};resolveExitPromise=()=>{};rejectExitPromise=()=>{};unsubscribeExit=()=>{};calculateLayout=()=>{const u=this.options.stdout.columns||80;this.rootNode.yogaNode.setWidth(u);this.rootNode.yogaNode.calculateLayout(undefined,undefined,pe.Ay.DIRECTION_LTR)};onRender=()=>{if(this.isUnmounted){return}const{output:u,outputHeight:y,staticOutput:C}=(0,Ce.A)(this.rootNode);const D=C&&C!=="\n";if(this.options.debug){if(D){this.fullStaticOutput+=C}this.options.stdout.write(this.fullStaticOutput+u);return}if(oe.A){if(D){this.options.stdout.write(C)}this.lastOutput=u;return}if(D){this.fullStaticOutput+=C}if(y>=this.options.stdout.rows){this.options.stdout.write(ne.Ik+this.fullStaticOutput+u);this.lastOutput=u;return}if(D){this.log.clear();this.options.stdout.write(C);this.log(u)}if(!D&&u!==this.lastOutput){this.throttledLog(u)}this.lastOutput=u};render(u){const y=j.createElement(xe.A,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},u);Ee.A.updateContainer(y,this.container,null,noop)}writeToStdout(u){if(this.isUnmounted){return}if(this.options.debug){this.options.stdout.write(u+this.fullStaticOutput+this.lastOutput);return}if(oe.A){this.options.stdout.write(u);return}this.log.clear();this.options.stdout.write(u);this.log(this.lastOutput)}writeToStderr(u){if(this.isUnmounted){return}if(this.options.debug){this.options.stderr.write(u);this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(oe.A){this.options.stderr.write(u);return}this.log.clear();this.options.stderr.write(u);this.log(this.lastOutput)}unmount(u){if(this.isUnmounted){return}this.calculateLayout();this.onRender();this.unsubscribeExit();if(typeof this.restoreConsole==="function"){this.restoreConsole()}if(typeof this.unsubscribeResize==="function"){this.unsubscribeResize()}if(oe.A){this.options.stdout.write(this.lastOutput+"\n")}else if(!this.options.debug){this.log.done()}this.isUnmounted=true;Ee.A.updateContainer(null,this.container,null,noop);De.A.delete(this.options.stdout);if(u instanceof Error){this.rejectExitPromise(u)}else{this.resolveExitPromise()}}async waitUntilExit(){this.exitPromise||=new Promise(((u,y)=>{this.resolveExitPromise=u;this.rejectExitPromise=y}));return this.exitPromise}clear(){if(!oe.A&&!this.options.debug){this.log.clear()}}patchConsole(){if(this.options.debug){return}this.restoreConsole=(0,Ae.A)(((u,y)=>{if(u==="stdout"){this.writeToStdout(y)}if(u==="stderr"){const u=y.startsWith("The above error occurred");if(!u){this.writeToStderr(y)}}}))}}D()}catch(u){D(u)}}))},6630:(u,y,C)=>{C.d(y,{A:()=>_});const D=new WeakMap;const _=D},3884:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(131);var _=C(5229);const create=(u,{showCursor:y=false}={})=>{let C=0;let j="";let $=false;const render=ne=>{if(!y&&!$){_.A.hide();$=true}const oe=ne+"\n";if(oe===j){return}j=oe;u.write(D._W(C)+oe);C=oe.split("\n").length};render.clear=()=>{u.write(D._W(C));j="";C=0};render.done=()=>{j="";C=0;if(!y){_.A.show();$=false}};return render};const j={create:create};const $=j},5124:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(1096);const _={};const measureText=u=>{if(u.length===0){return{width:0,height:0}}const y=_[u];if(y){return y}const C=(0,D.A)(u);const j=u.split("\n").length;_[u]={width:C,height:j};return{width:C,height:j}};const j=measureText},3801:(u,y,C)=>{C.d(y,{A:()=>Output});var D=C(7865);var _=C(2435);function isFullwidthCodePoint(u){if(!Number.isInteger(u)){return false}return(0,_.Ck)(u)||(0,_.EW)(u)}const j=new Set([27,155]);const $="0".codePointAt(0);const ne="9".codePointAt(0);const oe=19;const le=new Set;const de=new Map;for(const[u,y]of D.Ay.codes){le.add(D.Ay.color.ansi(y));de.set(D.Ay.color.ansi(u),D.Ay.color.ansi(y))}function getEndCode(u){if(le.has(u)){return u}if(de.has(u)){return de.get(u)}u=u.slice(2);if(u.includes(";")){u=u[0]+"0"}const y=D.Ay.codes.get(Number.parseInt(u,10));if(y){return D.Ay.color.ansi(y)}return D.Ay.reset.open}function findNumberIndex(u){for(let y=0;y<u.length;y++){const C=u.codePointAt(y);if(C>=$&&C<=ne){return y}}return-1}function parseAnsiCode(u,y){u=u.slice(y,y+oe);const C=findNumberIndex(u);if(C!==-1){let y=u.indexOf("m",C);if(y===-1){y=u.length}return u.slice(0,y+1)}}function tokenize(u,y=Number.POSITIVE_INFINITY){const C=[];let D=0;let _=0;while(D<u.length){const $=u.codePointAt(D);if(j.has($)){const y=parseAnsiCode(u,D);if(y){C.push({type:"ansi",code:y,endCode:getEndCode(y)});D+=y.length;continue}}const ne=isFullwidthCodePoint($);const oe=String.fromCodePoint($);C.push({type:"character",value:oe,isFullWidth:ne});D+=oe.length;_+=ne?2:oe.length;if(_>=y){break}}return C}function reduceAnsiCodes(u){let y=[];for(const C of u){if(C.code===D.Ay.reset.open){y=[]}else if(le.has(C.code)){y=y.filter((u=>u.endCode!==C.code))}else{y=y.filter((u=>u.endCode!==C.endCode));y.push(C)}}return y}function undoAnsiCodes(u){const y=reduceAnsiCodes(u);const C=y.map((({endCode:u})=>u));return C.reverse().join("")}function sliceAnsi(u,y,C){const D=tokenize(u,C);let _=[];let j=0;let $="";let ne=false;for(const u of D){if(C!==undefined&&j>=C){break}if(u.type==="ansi"){_.push(u);if(ne){$+=u.code}}else{if(!ne&&j>=y){ne=true;_=reduceAnsiCodes(_);$=_.map((({code:u})=>u)).join("")}if(ne){$+=u.value}j+=u.isFullWidth?2:u.value.length}}$+=undoAnsiCodes(_);return $}var Ae=C(8314);var pe=C(1096);const Ee=new Set([27,155]);const Ce=new Set;const Ie=new Map;for(const[u,y]of D.Ay.codes){Ce.add(D.Ay.color.ansi(y));Ie.set(D.Ay.color.ansi(u),D.Ay.color.ansi(y))}const Be="]8;;";const De=Be.split("").map((u=>u.charCodeAt(0)));const xe="";const Fe=xe.charCodeAt(0);const _e=`]8;;${xe}`;function getLinkStartCode(u){return`${Be}${u}${xe}`}function ansiCodes_getEndCode(u){if(Ce.has(u))return u;if(Ie.has(u))return Ie.get(u);if(u.startsWith(Be))return _e;u=u.slice(2);if(u.includes(";")){u=u[0]+"0"}const y=D.Ay.codes.get(parseInt(u,10));if(y){return D.Ay.color.ansi(y)}else{return D.Ay.reset.open}}function ansiCodesToString(u){return u.map((u=>u.code)).join("")}function reduce_reduceAnsiCodes(u){return reduceAnsiCodesIncremental([],u)}function reduceAnsiCodesIncremental(u,y){let C=[...u];for(const u of y){if(u.code===D.Ay.reset.open){C=[]}else if(Ce.has(u.code)){C=C.filter((y=>y.endCode!==u.code))}else{C=C.filter((y=>y.endCode!==u.endCode));C.push(u)}}return C}function undo_undoAnsiCodes(u){return reduce_reduceAnsiCodes(u).reverse().map((u=>({...u,code:u.endCode})))}function diffAnsiCodes(u,y){const C=new Set(y.map((u=>u.endCode)));const D=new Set(u.map((u=>u.code)));return[...undo_undoAnsiCodes(u.filter((u=>!C.has(u.endCode)))),...y.filter((u=>!D.has(u.code)))]}function styledCharsFromTokens(u){let y=[];const C=[];for(const D of u){if(D.type==="ansi"){y=reduceAnsiCodesIncremental(y,[D])}else if(D.type==="char"){C.push({...D,styles:[...y]})}}return C}function styledCharsToString(u){let y="";for(let C=0;C<u.length;C++){const D=u[C];if(C===0){y+=ansiCodesToString(D.styles)}else{y+=ansiCodesToString(diffAnsiCodes(u[C-1].styles,D.styles))}y+=D.value;if(C===u.length-1){y+=ansiCodesToString(diffAnsiCodes(D.styles,[]))}}return y}var Le=C(6702);function tokenize_findNumberIndex(u){for(let y=0;y<u.length;y++){const C=u.charCodeAt(y);if(C>=48&&C<=57){return y}}return-1}function parseLinkCode(u,y){u=u.slice(y);for(let y=1;y<De.length;y++){if(u.charCodeAt(y)!==De[y]){return undefined}}const C=u.indexOf("",Be.length);if(C===-1)return undefined;return u.slice(0,C+1)}function tokenize_parseAnsiCode(u,y){u=u.slice(y,y+19);const C=tokenize_findNumberIndex(u);if(C!==-1){let y=u.indexOf("m",C);if(y===-1){y=u.length}return u.slice(0,y+1)}}function tokenize_tokenize(u,y=Number.POSITIVE_INFINITY){const C=[];let D=0;let _=0;while(D<u.length){const j=u.codePointAt(D);if(Ee.has(j)){const y=parseLinkCode(u,D)||tokenize_parseAnsiCode(u,D);if(y){C.push({type:"ansi",code:y,endCode:ansiCodes_getEndCode(y)});D+=y.length;continue}}const $=(0,Le.A)(j);const ne=String.fromCodePoint(j);C.push({type:"char",value:ne,fullWidth:$});D+=ne.length;_+=$?2:ne.length;if(_>=y){break}}return C}class Output{width;height;operations=[];constructor(u){const{width:y,height:C}=u;this.width=y;this.height=C}write(u,y,C,D){const{transformers:_}=D;if(!C){return}this.operations.push({type:"write",x:u,y:y,text:C,transformers:_})}clip(u){this.operations.push({type:"clip",clip:u})}unclip(){this.operations.push({type:"unclip"})}get(){const u=[];for(let y=0;y<this.height;y++){const y=[];for(let u=0;u<this.width;u++){y.push({type:"char",value:" ",fullWidth:false,styles:[]})}u.push(y)}const y=[];for(const C of this.operations){if(C.type==="clip"){y.push(C.clip)}if(C.type==="unclip"){y.pop()}if(C.type==="write"){const{text:D,transformers:_}=C;let{x:j,y:$}=C;let ne=D.split("\n");const oe=y.at(-1);if(oe){const u=typeof oe?.x1==="number"&&typeof oe?.x2==="number";const y=typeof oe?.y1==="number"&&typeof oe?.y2==="number";if(u){const u=(0,pe.A)(D);if(j+u<oe.x1||j>oe.x2){continue}}if(y){const u=ne.length;if($+u<oe.y1||$>oe.y2){continue}}if(u){ne=ne.map((u=>{const y=j<oe.x1?oe.x1-j:0;const C=(0,Ae.A)(u);const D=j+C>oe.x2?oe.x2-j:C;return sliceAnsi(u,y,D)}));if(j<oe.x1){j=oe.x1}}if(y){const u=$<oe.y1?oe.y1-$:0;const y=ne.length;const C=$+y>oe.y2?oe.y2-$:y;ne=ne.slice(u,C);if($<oe.y1){$=oe.y1}}}let le=0;for(let[y,C]of ne.entries()){const D=u[$+le];if(!D){continue}for(const u of _){C=u(C,y)}const ne=styledCharsFromTokens(tokenize_tokenize(C));let oe=j;for(const u of ne){D[oe]=u;const y=u.fullWidth||u.value.length>1;if(y){D[oe+1]={type:"char",value:"",fullWidth:false,styles:u.styles}}oe+=y?2:1}le++}}}const C=u.map((u=>{const y=u.filter((u=>u!==undefined));return styledCharsToString(y).trimEnd()})).join("\n");return{output:C,height:u.length}}}},864:(u,y,C)=>{C.d(y,{A:()=>oe,f:()=>ne});var D=C(4573);const _=/^(?:\x1b)([a-zA-Z0-9])$/;const j=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/;const $={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};const ne=[...Object.values($),"backspace"];const isShiftKey=u=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(u);const isCtrlKey=u=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(u);const parseKeypress=(u="")=>{let y;if(D.Buffer.isBuffer(u)){if(u[0]>127&&u[1]===undefined){u[0]-=128;u=""+String(u)}else{u=String(u)}}else if(u!==undefined&&typeof u!=="string"){u=String(u)}else if(!u){u=""}const C={name:"",ctrl:false,meta:false,shift:false,option:false,sequence:u,raw:u};C.sequence=C.sequence||u||C.name;if(u==="\r"){C.raw=undefined;C.name="return"}else if(u==="\n"){C.name="enter"}else if(u==="\t"){C.name="tab"}else if(u==="\b"||u==="\b"){C.name="backspace";C.meta=u.charAt(0)===""}else if(u===""||u===""){C.name="delete";C.meta=u.charAt(0)===""}else if(u===""||u===""){C.name="escape";C.meta=u.length===2}else if(u===" "||u===" "){C.name="space";C.meta=u.length===2}else if(u.length===1&&u<=""){C.name=String.fromCharCode(u.charCodeAt(0)+"a".charCodeAt(0)-1);C.ctrl=true}else if(u.length===1&&u>="0"&&u<="9"){C.name="number"}else if(u.length===1&&u>="a"&&u<="z"){C.name=u}else if(u.length===1&&u>="A"&&u<="Z"){C.name=u.toLowerCase();C.shift=true}else if(y=_.exec(u)){C.meta=true;C.shift=/^[A-Z]$/.test(y[1])}else if(y=j.exec(u)){const D=[...u];if(D[0]===""&&D[1]===""){C.option=true}const _=[y[1],y[2],y[4],y[6]].filter(Boolean).join("");const j=(y[3]||y[5]||1)-1;C.ctrl=!!(j&4);C.meta=!!(j&10);C.shift=!!(j&1);C.code=_;C.name=$[_];C.shift=isShiftKey(_)||C.shift;C.ctrl=isCtrlKey(_)||C.ctrl}return C};const oe=parseKeypress},6106:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>Ae});var _=C(1708);var j=C(7764);var $=C(809);var ne=C(1e3);var oe=C(8022);var le=C(7386);var de=u([ne,oe,le]);[ne,oe,le]=de.then?(await de)():de;if(_.env["DEV"]==="true"){try{await C.e(984).then(C.bind(C,2984))}catch(u){if(u.code==="ERR_MODULE_NOT_FOUND"){console.warn(`\nThe environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,\nbut this failed as it was not installed. Debugging with React Devtools requires it.\n\nTo install use this command:\n\n$ npm install --save-dev react-devtools-core\n\t\t\t\t`.trim()+"\n")}else{throw u}}}const diff=(u,y)=>{if(u===y){return}if(!u){return y}const C={};let D=false;for(const _ of Object.keys(u)){const u=y?!Object.hasOwn(y,_):true;if(u){C[_]=undefined;D=true}}if(y){for(const _ of Object.keys(y)){if(y[_]!==u[_]){C[_]=y[_];D=true}}}return D?C:undefined};const cleanupYogaNode=u=>{u?.unsetMeasureFunc();u?.freeRecursive()};const Ae=j({getRootHostContext:()=>({isInsideText:false}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>false,resetAfterCommit(u){if(typeof u.onComputeLayout==="function"){u.onComputeLayout()}if(u.isStaticDirty){u.isStaticDirty=false;if(typeof u.onImmediateRender==="function"){u.onImmediateRender()}return}if(typeof u.onRender==="function"){u.onRender()}},getChildHostContext(u,y){const C=u.isInsideText;const D=y==="ink-text"||y==="ink-virtual-text";if(C===D){return u}return{isInsideText:D}},shouldSetTextContent:()=>false,createInstance(u,y,C,D){if(D.isInsideText&&u==="ink-box"){throw new Error(`<Box> can’t be nested inside <Text> component`)}const _=u==="ink-text"&&D.isInsideText?"ink-virtual-text":u;const j=(0,oe.RM)(_);for(const[u,C]of Object.entries(y)){if(u==="children"){continue}if(u==="style"){(0,oe.eC)(j,C);if(j.yogaNode){(0,le.A)(j.yogaNode,C)}continue}if(u==="internal_transform"){j.internal_transform=C;continue}if(u==="internal_static"){j.internal_static=true;continue}(0,oe.Bq)(j,u,C)}return j},createTextInstance(u,y,C){if(!C.isInsideText){throw new Error(`Text string "${u}" must be rendered inside <Text> component`)}return(0,oe.Mq)(u)},resetTextContent(){},hideTextInstance(u){(0,oe.x6)(u,"")},unhideTextInstance(u,y){(0,oe.x6)(u,y)},getPublicInstance:u=>u,hideInstance(u){u.yogaNode?.setDisplay(ne.Ay.DISPLAY_NONE)},unhideInstance(u){u.yogaNode?.setDisplay(ne.Ay.DISPLAY_FLEX)},appendInitialChild:oe.V6,appendChild:oe.V6,insertBefore:oe.bC,finalizeInitialChildren(u,y,C,D){if(u.internal_static){D.isStaticDirty=true;D.staticNode=u}return false},isPrimaryRenderer:true,supportsMutation:true,supportsPersistence:false,supportsHydration:false,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentEventPriority:()=>$.DefaultEventPriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:oe.V6,insertInContainerBefore:oe.bC,removeChildFromContainer(u,y){(0,oe.V8)(u,y);cleanupYogaNode(y.yogaNode)},prepareUpdate(u,y,C,D,_){if(u.internal_static){_.isStaticDirty=true}const j=diff(C,D);const $=diff(C["style"],D["style"]);if(!j&&!$){return null}return{props:j,style:$}},commitUpdate(u,{props:y,style:C}){if(y){for(const[C,D]of Object.entries(y)){if(C==="style"){(0,oe.eC)(u,D);continue}if(C==="internal_transform"){u.internal_transform=D;continue}if(C==="internal_static"){u.internal_static=true;continue}(0,oe.Bq)(u,C,D)}}if(C&&u.yogaNode){(0,le.A)(u.yogaNode,C)}},commitTextUpdate(u,y,C){(0,oe.x6)(u,C)},removeChild(u,y){(0,oe.V8)(u,y);cleanupYogaNode(y.yogaNode)}});D()}catch(u){D(u)}}),1)},2775:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(4914);var _=C(6797);var j=C(4087);const renderBorder=(u,y,C,$)=>{if(C.style.borderStyle){const ne=C.yogaNode.getComputedWidth();const oe=C.yogaNode.getComputedHeight();const le=typeof C.style.borderStyle==="string"?D[C.style.borderStyle]:C.style.borderStyle;const de=C.style.borderTopColor??C.style.borderColor;const Ae=C.style.borderBottomColor??C.style.borderColor;const pe=C.style.borderLeftColor??C.style.borderColor;const Ee=C.style.borderRightColor??C.style.borderColor;const Ce=C.style.borderTopDimColor??C.style.borderDimColor;const Ie=C.style.borderBottomDimColor??C.style.borderDimColor;const Be=C.style.borderLeftDimColor??C.style.borderDimColor;const De=C.style.borderRightDimColor??C.style.borderDimColor;const xe=C.style.borderTop!==false;const Fe=C.style.borderBottom!==false;const _e=C.style.borderLeft!==false;const Le=C.style.borderRight!==false;const ze=ne-(_e?1:0)-(Le?1:0);let qe=xe?(0,j.A)((_e?le.topLeft:"")+le.top.repeat(ze)+(Le?le.topRight:""),de,"foreground"):undefined;if(xe&&Ce){qe=_.Ay.dim(qe)}let Je=oe;if(xe){Je-=1}if(Fe){Je-=1}let Ke=((0,j.A)(le.left,pe,"foreground")+"\n").repeat(Je);if(Be){Ke=_.Ay.dim(Ke)}let et=((0,j.A)(le.right,Ee,"foreground")+"\n").repeat(Je);if(De){et=_.Ay.dim(et)}let tt=Fe?(0,j.A)((_e?le.bottomLeft:"")+le.bottom.repeat(ze)+(Le?le.bottomRight:""),Ae,"foreground"):undefined;if(Fe&&Ie){tt=_.Ay.dim(tt)}const rt=xe?1:0;if(qe){$.write(u,y,qe,{transformers:[]})}if(_e){$.write(u,y+rt,Ke,{transformers:[]})}if(Le){$.write(u+ne-1,y+rt,et,{transformers:[]})}if(tt){$.write(u,y+oe-1,tt,{transformers:[]})}}};const $=renderBorder},4085:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>pe});var _=C(1096);var j=C(2861);var $=C(1e3);var ne=C(2904);var oe=C(7228);var le=C(4877);var de=C(2775);var Ae=u([$,oe]);[$,oe]=Ae.then?(await Ae)():Ae;const applyPaddingToText=(u,y)=>{const C=u.childNodes[0]?.yogaNode;if(C){const u=C.getComputedLeft();const D=C.getComputedTop();y="\n".repeat(D)+(0,j.A)(y,u)}return y};const renderNodeToOutput=(u,y,C)=>{const{offsetX:D=0,offsetY:j=0,transformers:Ae=[],skipStaticElements:pe}=C;if(pe&&u.internal_static){return}const{yogaNode:Ee}=u;if(Ee){if(Ee.getDisplay()===$.Ay.DISPLAY_NONE){return}const C=D+Ee.getComputedLeft();const Ce=j+Ee.getComputedTop();let Ie=Ae;if(typeof u.internal_transform==="function"){Ie=[u.internal_transform,...Ae]}if(u.nodeName==="ink-text"){let D=(0,le.A)(u);if(D.length>0){const j=(0,_.A)(D);const $=(0,oe.A)(Ee);if(j>$){const y=u.style.textWrap??"wrap";D=(0,ne.A)(D,$,y)}D=applyPaddingToText(u,D);y.write(C,Ce,D,{transformers:Ie})}return}let Be=false;if(u.nodeName==="ink-box"){(0,de.A)(C,Ce,u,y);const D=u.style.overflowX==="hidden"||u.style.overflow==="hidden";const _=u.style.overflowY==="hidden"||u.style.overflow==="hidden";if(D||_){const u=D?C+Ee.getComputedBorder($.Ay.EDGE_LEFT):undefined;const j=D?C+Ee.getComputedWidth()-Ee.getComputedBorder($.Ay.EDGE_RIGHT):undefined;const ne=_?Ce+Ee.getComputedBorder($.Ay.EDGE_TOP):undefined;const oe=_?Ce+Ee.getComputedHeight()-Ee.getComputedBorder($.Ay.EDGE_BOTTOM):undefined;y.clip({x1:u,x2:j,y1:ne,y2:oe});Be=true}}if(u.nodeName==="ink-root"||u.nodeName==="ink-box"){for(const D of u.childNodes){renderNodeToOutput(D,y,{offsetX:C,offsetY:Ce,transformers:Ie,skipStaticElements:pe})}if(Be){y.unclip()}}}};const pe=renderNodeToOutput;D()}catch(u){D(u)}}))},5e3:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7075);var j=C(1708);var $=C(7758);var ne=C(6630);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const render=(u,y)=>{const C={stdout:j.stdout,stdin:j.stdin,stderr:j.stderr,debug:false,exitOnCtrlC:true,patchConsole:true,...getOptions(y)};const D=getInstance(C.stdout,(()=>new $.A(C)));D.render(u);return{rerender:D.render,unmount(){D.unmount()},waitUntilExit:D.waitUntilExit,cleanup:()=>ne.A.delete(C.stdout),clear:D.clear}};const le=render;const getOptions=(u={})=>{if(u instanceof _.Stream){return{stdout:u,stdin:j.stdin}}return u};const getInstance=(u,y)=>{let C=ne.A.get(u);if(!C){C=y();ne.A.set(u,C)}return C};D()}catch(u){D(u)}}))},4359:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>ne});var _=C(4085);var j=C(3801);var $=u([_]);_=($.then?(await $)():$)[0];const renderer=u=>{if(u.yogaNode){const y=new j.A({width:u.yogaNode.getComputedWidth(),height:u.yogaNode.getComputedHeight()});(0,_.A)(u,y,{skipStaticElements:true});let C;if(u.staticNode?.yogaNode){C=new j.A({width:u.staticNode.yogaNode.getComputedWidth(),height:u.staticNode.yogaNode.getComputedHeight()});(0,_.A)(u.staticNode,C,{skipStaticElements:false})}const{output:D,height:$}=y.get();return{output:D,outputHeight:$,staticOutput:C?`${C.get().output}\n`:""}}return{output:"",outputHeight:0,staticOutput:""}};const ne=renderer;D()}catch(u){D(u)}}))},4877:(u,y,C)=>{C.d(y,{A:()=>D});const squashTextNodes=u=>{let y="";for(let C=0;C<u.childNodes.length;C++){const D=u.childNodes[C];if(D===undefined){continue}let _="";if(D.nodeName==="#text"){_=D.nodeValue}else{if(D.nodeName==="ink-text"||D.nodeName==="ink-virtual-text"){_=squashTextNodes(D)}if(_.length>0&&typeof D.internal_transform==="function"){_=D.internal_transform(_,C)}}y+=_}return y};const D=squashTextNodes},7386:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>$});var _=C(1e3);var j=u([_]);_=(j.then?(await j)():j)[0];const applyPositionStyles=(u,y)=>{if("position"in y){u.setPositionType(y.position==="absolute"?_.Ay.POSITION_TYPE_ABSOLUTE:_.Ay.POSITION_TYPE_RELATIVE)}};const applyMarginStyles=(u,y)=>{if("margin"in y){u.setMargin(_.Ay.EDGE_ALL,y.margin??0)}if("marginX"in y){u.setMargin(_.Ay.EDGE_HORIZONTAL,y.marginX??0)}if("marginY"in y){u.setMargin(_.Ay.EDGE_VERTICAL,y.marginY??0)}if("marginLeft"in y){u.setMargin(_.Ay.EDGE_START,y.marginLeft||0)}if("marginRight"in y){u.setMargin(_.Ay.EDGE_END,y.marginRight||0)}if("marginTop"in y){u.setMargin(_.Ay.EDGE_TOP,y.marginTop||0)}if("marginBottom"in y){u.setMargin(_.Ay.EDGE_BOTTOM,y.marginBottom||0)}};const applyPaddingStyles=(u,y)=>{if("padding"in y){u.setPadding(_.Ay.EDGE_ALL,y.padding??0)}if("paddingX"in y){u.setPadding(_.Ay.EDGE_HORIZONTAL,y.paddingX??0)}if("paddingY"in y){u.setPadding(_.Ay.EDGE_VERTICAL,y.paddingY??0)}if("paddingLeft"in y){u.setPadding(_.Ay.EDGE_LEFT,y.paddingLeft||0)}if("paddingRight"in y){u.setPadding(_.Ay.EDGE_RIGHT,y.paddingRight||0)}if("paddingTop"in y){u.setPadding(_.Ay.EDGE_TOP,y.paddingTop||0)}if("paddingBottom"in y){u.setPadding(_.Ay.EDGE_BOTTOM,y.paddingBottom||0)}};const applyFlexStyles=(u,y)=>{if("flexGrow"in y){u.setFlexGrow(y.flexGrow??0)}if("flexShrink"in y){u.setFlexShrink(typeof y.flexShrink==="number"?y.flexShrink:1)}if("flexWrap"in y){if(y.flexWrap==="nowrap"){u.setFlexWrap(_.Ay.WRAP_NO_WRAP)}if(y.flexWrap==="wrap"){u.setFlexWrap(_.Ay.WRAP_WRAP)}if(y.flexWrap==="wrap-reverse"){u.setFlexWrap(_.Ay.WRAP_WRAP_REVERSE)}}if("flexDirection"in y){if(y.flexDirection==="row"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_ROW)}if(y.flexDirection==="row-reverse"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_ROW_REVERSE)}if(y.flexDirection==="column"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_COLUMN)}if(y.flexDirection==="column-reverse"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_COLUMN_REVERSE)}}if("flexBasis"in y){if(typeof y.flexBasis==="number"){u.setFlexBasis(y.flexBasis)}else if(typeof y.flexBasis==="string"){u.setFlexBasisPercent(Number.parseInt(y.flexBasis,10))}else{u.setFlexBasis(Number.NaN)}}if("alignItems"in y){if(y.alignItems==="stretch"||!y.alignItems){u.setAlignItems(_.Ay.ALIGN_STRETCH)}if(y.alignItems==="flex-start"){u.setAlignItems(_.Ay.ALIGN_FLEX_START)}if(y.alignItems==="center"){u.setAlignItems(_.Ay.ALIGN_CENTER)}if(y.alignItems==="flex-end"){u.setAlignItems(_.Ay.ALIGN_FLEX_END)}}if("alignSelf"in y){if(y.alignSelf==="auto"||!y.alignSelf){u.setAlignSelf(_.Ay.ALIGN_AUTO)}if(y.alignSelf==="flex-start"){u.setAlignSelf(_.Ay.ALIGN_FLEX_START)}if(y.alignSelf==="center"){u.setAlignSelf(_.Ay.ALIGN_CENTER)}if(y.alignSelf==="flex-end"){u.setAlignSelf(_.Ay.ALIGN_FLEX_END)}}if("justifyContent"in y){if(y.justifyContent==="flex-start"||!y.justifyContent){u.setJustifyContent(_.Ay.JUSTIFY_FLEX_START)}if(y.justifyContent==="center"){u.setJustifyContent(_.Ay.JUSTIFY_CENTER)}if(y.justifyContent==="flex-end"){u.setJustifyContent(_.Ay.JUSTIFY_FLEX_END)}if(y.justifyContent==="space-between"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_BETWEEN)}if(y.justifyContent==="space-around"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_AROUND)}if(y.justifyContent==="space-evenly"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_EVENLY)}}};const applyDimensionStyles=(u,y)=>{if("width"in y){if(typeof y.width==="number"){u.setWidth(y.width)}else if(typeof y.width==="string"){u.setWidthPercent(Number.parseInt(y.width,10))}else{u.setWidthAuto()}}if("height"in y){if(typeof y.height==="number"){u.setHeight(y.height)}else if(typeof y.height==="string"){u.setHeightPercent(Number.parseInt(y.height,10))}else{u.setHeightAuto()}}if("minWidth"in y){if(typeof y.minWidth==="string"){u.setMinWidthPercent(Number.parseInt(y.minWidth,10))}else{u.setMinWidth(y.minWidth??0)}}if("minHeight"in y){if(typeof y.minHeight==="string"){u.setMinHeightPercent(Number.parseInt(y.minHeight,10))}else{u.setMinHeight(y.minHeight??0)}}};const applyDisplayStyles=(u,y)=>{if("display"in y){u.setDisplay(y.display==="flex"?_.Ay.DISPLAY_FLEX:_.Ay.DISPLAY_NONE)}};const applyBorderStyles=(u,y)=>{if("borderStyle"in y){const C=y.borderStyle?1:0;if(y.borderTop!==false){u.setBorder(_.Ay.EDGE_TOP,C)}if(y.borderBottom!==false){u.setBorder(_.Ay.EDGE_BOTTOM,C)}if(y.borderLeft!==false){u.setBorder(_.Ay.EDGE_LEFT,C)}if(y.borderRight!==false){u.setBorder(_.Ay.EDGE_RIGHT,C)}}};const applyGapStyles=(u,y)=>{if("gap"in y){u.setGap(_.Ay.GUTTER_ALL,y.gap??0)}if("columnGap"in y){u.setGap(_.Ay.GUTTER_COLUMN,y.columnGap??0)}if("rowGap"in y){u.setGap(_.Ay.GUTTER_ROW,y.rowGap??0)}};const styles=(u,y={})=>{applyPositionStyles(u,y);applyMarginStyles(u,y);applyPaddingStyles(u,y);applyFlexStyles(u,y);applyDimensionStyles(u,y);applyDisplayStyles(u,y);applyBorderStyles(u,y);applyGapStyles(u,y)};const $=styles;D()}catch(u){D(u)}}))},2904:(u,y,C)=>{C.d(y,{A:()=>De});var D=C(8314);var _=C(348);var j=C(7865);const $=new Set(["","›"]);const ne=39;const oe="";const le="[";const de="]";const Ae="m";const pe=`${de}8;;`;const wrapAnsiCode=u=>`${$.values().next().value}${le}${u}${Ae}`;const wrapAnsiHyperlink=u=>`${$.values().next().value}${pe}${u}${oe}`;const wordLengths=u=>u.split(" ").map((u=>(0,D.A)(u)));const wrapWord=(u,y,C)=>{const j=[...y];let ne=false;let le=false;let de=(0,D.A)((0,_.A)(u.at(-1)));for(const[y,_]of j.entries()){const Ee=(0,D.A)(_);if(de+Ee<=C){u[u.length-1]+=_}else{u.push(_);de=0}if($.has(_)){ne=true;const u=j.slice(y+1,y+1+pe.length).join("");le=u===pe}if(ne){if(le){if(_===oe){ne=false;le=false}}else if(_===Ae){ne=false}continue}de+=Ee;if(de===C&&y<j.length-1){u.push("");de=0}}if(!de&&u.at(-1).length>0&&u.length>1){u[u.length-2]+=u.pop()}};const stringVisibleTrimSpacesRight=u=>{const y=u.split(" ");let C=y.length;while(C>0){if((0,D.A)(y[C-1])>0){break}C--}if(C===y.length){return u}return y.slice(0,C).join(" ")+y.slice(C).join("")};const exec=(u,y,C={})=>{if(C.trim!==false&&u.trim()===""){return""}let _="";let de;let Ae;const Ee=wordLengths(u);let Ce=[""];for(const[_,j]of u.split(" ").entries()){if(C.trim!==false){Ce[Ce.length-1]=Ce.at(-1).trimStart()}let u=(0,D.A)(Ce.at(-1));if(_!==0){if(u>=y&&(C.wordWrap===false||C.trim===false)){Ce.push("");u=0}if(u>0||C.trim===false){Ce[Ce.length-1]+=" ";u++}}if(C.hard&&Ee[_]>y){const C=y-u;const D=1+Math.floor((Ee[_]-C-1)/y);const $=Math.floor((Ee[_]-1)/y);if($<D){Ce.push("")}wrapWord(Ce,j,y);continue}if(u+Ee[_]>y&&u>0&&Ee[_]>0){if(C.wordWrap===false&&u<y){wrapWord(Ce,j,y);continue}Ce.push("")}if(u+Ee[_]>y&&C.wordWrap===false){wrapWord(Ce,j,y);continue}Ce[Ce.length-1]+=j}if(C.trim!==false){Ce=Ce.map((u=>stringVisibleTrimSpacesRight(u)))}const Ie=Ce.join("\n");const Be=[...Ie];let De=0;for(const[u,y]of Be.entries()){_+=y;if($.has(y)){const{groups:u}=new RegExp(`(?:\\${le}(?<code>\\d+)m|\\${pe}(?<uri>.*)${oe})`).exec(Ie.slice(De))||{groups:{}};if(u.code!==undefined){const y=Number.parseFloat(u.code);de=y===ne?undefined:y}else if(u.uri!==undefined){Ae=u.uri.length===0?undefined:u.uri}}const C=j.Ay.codes.get(Number(de));if(Be[u+1]==="\n"){if(Ae){_+=wrapAnsiHyperlink("")}if(de&&C){_+=wrapAnsiCode(C)}}else if(y==="\n"){if(de&&C){_+=wrapAnsiCode(de)}if(Ae){_+=wrapAnsiHyperlink(Ae)}}De+=y.length}return _};function wrapAnsi(u,y,C){return String(u).normalize().replaceAll("\r\n","\n").split("\n").map((u=>exec(u,y,C))).join("\n")}var Ee=C(6702);const Ce=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/;const Ie=["","›"];const slice_ansi_wrapAnsi=u=>`${Ie[0]}[${u}m`;const checkAnsi=(u,y,C)=>{let D=[];u=[...u];for(let C of u){const _=C;if(C.includes(";")){C=C.split(";")[0][0]+"0"}const $=j.Ay.codes.get(Number.parseInt(C,10));if($){const C=u.indexOf($.toString());if(C===-1){D.push(slice_ansi_wrapAnsi(y?$:_))}else{u.splice(C,1)}}else if(y){D.push(slice_ansi_wrapAnsi(0));break}else{D.push(slice_ansi_wrapAnsi(_))}}if(y){D=D.filter(((u,y)=>D.indexOf(u)===y));if(C!==undefined){const u=slice_ansi_wrapAnsi(j.Ay.codes.get(Number.parseInt(C,10)));D=D.reduce(((y,C)=>C===u?[C,...y]:[...y,C]),[])}}return D.join("")};function sliceAnsi(u,y,C){const D=[...u];const _=[];let j=typeof C==="number"?C:D.length;let $=false;let ne;let oe=0;let le="";for(const[de,Ae]of D.entries()){let D=false;if(Ie.includes(Ae)){const y=/\d[^m]*/.exec(u.slice(de,de+18));ne=y&&y.length>0?y[0]:undefined;if(oe<j){$=true;if(ne!==undefined){_.push(ne)}}}else if($&&Ae==="m"){$=false;D=true}if(!$&&!D){oe++}if(!Ce.test(Ae)&&(0,Ee.A)(Ae.codePointAt())){oe++;if(typeof C!=="number"){j++}}if(oe>y&&oe<=j){le+=Ae}else if(oe===y&&!$&&ne!==undefined){le=checkAnsi(_)}else if(oe>=j){le+=checkAnsi(_,true,ne);break}}return le}function getIndexOfNearestSpace(u,y,C){if(u.charAt(y)===" "){return y}const D=C?1:-1;for(let C=0;C<=3;C++){const _=y+C*D;if(u.charAt(_)===" "){return _}}return y}function cliTruncate(u,y,C={}){const{position:_="end",space:j=false,preferTruncationOnSpace:$=false}=C;let{truncationCharacter:ne="…"}=C;if(typeof u!=="string"){throw new TypeError(`Expected \`input\` to be a string, got ${typeof u}`)}if(typeof y!=="number"){throw new TypeError(`Expected \`columns\` to be a number, got ${typeof y}`)}if(y<1){return""}if(y===1){return ne}const oe=(0,D.A)(u);if(oe<=y){return u}if(_==="start"){if($){const C=getIndexOfNearestSpace(u,oe-y+1,true);return ne+sliceAnsi(u,C,oe).trim()}if(j===true){ne+=" "}return ne+sliceAnsi(u,oe-y+(0,D.A)(ne),oe)}if(_==="middle"){if(j===true){ne=` ${ne} `}const C=Math.floor(y/2);if($){const D=getIndexOfNearestSpace(u,C);const _=getIndexOfNearestSpace(u,oe-(y-C)+1,true);return sliceAnsi(u,0,D)+ne+sliceAnsi(u,_,oe).trim()}return sliceAnsi(u,0,C)+ne+sliceAnsi(u,oe-(y-C)+(0,D.A)(ne),oe)}if(_==="end"){if($){const C=getIndexOfNearestSpace(u,y-1);return sliceAnsi(u,0,C)+ne}if(j===true){ne=` ${ne}`}return sliceAnsi(u,0,y-(0,D.A)(ne))+ne}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${_}`)}const Be={};const wrapText=(u,y,C)=>{const D=u+String(y)+String(C);const _=Be[D];if(_){return _}let j=u;if(C==="wrap"){j=wrapAnsi(u,y,{trim:false,hard:true})}if(C.startsWith("truncate")){let D="end";if(C==="truncate-middle"){D="middle"}if(C==="truncate-start"){D="start"}j=cliTruncate(u,y,{position:D})}Be[D]=j;return j};const De=wrapText},6702:(u,y,C)=>{C.d(y,{A:()=>isFullwidthCodePoint});function isFullwidthCodePoint(u){if(!Number.isInteger(u)){return false}return u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141)}},6836:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(1708);const _=D.env.CI!=="0"&&D.env.CI!=="false"&&("CI"in D.env||"CONTINUOUS_INTEGRATION"in D.env||Object.keys(D.env).some((u=>u.startsWith("CI_"))));const j=_},9345:(u,y,C)=>{C.d(y,{A:()=>pt});var D=C(6760);var _=C(1708);var j=C(3136);var $=C(5313);var ne=C(9023);var oe=C(6928);
90
+ if(u.automaticFailover&&!ne){makeRequest(u)}D.emit("error",new types_CacheError(y))}})();return D};this.addHook=(u,y)=>{if(!this.hooks.has(u)){this.hooks.set(u,y)}};this.removeHook=u=>this.hooks.delete(u);this.getHook=u=>this.hooks.get(u);this.runHook=async(u,...y)=>this.hooks.get(u)?.(...y);if(y){if(y instanceof _a){this.cache=y}else{this.cache=new _a({store:y,namespace:"cacheable-request"})}}this.request=this.request.bind(this);this.cacheRequest=u}}const Ka=Object.entries;const cloneResponse=u=>{const y=new Pt.PassThrough({autoDestroy:false});mimicResponse(u,y);return u.pipe(y)};const urlObjectToRequestOptions=u=>{const y={...u};y.path=`${u.pathname||"/"}${u.search||""}`;delete y.pathname;delete y.search;return y};const normalizeUrlObject=u=>({protocol:u.protocol,auth:u.auth,hostname:u.hostname||u.host||"localhost",port:u.port,pathname:u.pathname,search:u.search});const convertHeaders=u=>{const y=[];for(const C of Object.keys(u)){y[C.toLowerCase()]=u[C]}return y};const parseWithWhatwg=u=>{const y=new vt.URL(u);return{protocol:y.protocol,slashes:true,auth:y.username||y.password?`${y.username}:${y.password}`:undefined,host:y.host,port:y.port,hostname:y.hostname,hash:y.hash,search:y.search,query:Object.fromEntries(y.searchParams),pathname:y.pathname,path:y.pathname+y.search,href:y.href}};const Ya=CacheableRequest;const el="onResponse";const tl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");const rl=typeof tl.createZstdDecompress==="function";function decompressResponse(u){const y=(u.headers["content-encoding"]||"").toLowerCase();const C=["gzip","deflate","br"];if(rl){C.push("zstd")}if(!C.includes(y)){return u}let D=true;const _={...u.headers};const j=new Pt.PassThrough({autoDestroy:false});j.once("error",(()=>{u.destroy()}));function handleContentEncoding(C){let _;if(y==="zstd"){_=tl.createZstdDecompress()}else if(y==="br"){_=tl.createBrotliDecompress()}else if(y==="deflate"&&C.length>0&&(C[0]&8)===0){_=tl.createInflateRaw()}else{_=tl.createUnzip()}_.once("error",(y=>{if(D&&!u.readable){j.end();return}j.destroy(y)}));$.pipe(_).pipe(j)}const $=new Pt.Transform({transform(u,y,C){if(D===false){C(null,u);return}D=false;handleContentEncoding(u);C(null,u)},flush(u){if(D){j.end()}u()}});delete _["content-encoding"];delete _["content-length"];j.headers=_;mimicResponse(u,j);u.pipe($);return j}var __typeError=u=>{throw TypeError(u)};var __accessCheck=(u,y,C)=>y.has(u)||__typeError("Cannot "+C);var __privateGet=(u,y,C)=>(__accessCheck(u,y,"read from private field"),C?C.call(u):y.get(u));var __privateAdd=(u,y,C)=>y.has(u)?__typeError("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(u):y.set(u,C);var __privateSet=(u,y,C,D)=>(__accessCheck(u,y,"write to private field"),D?D.call(u,C):y.set(u,C),C);var __privateMethod=(u,y,C)=>(__accessCheck(u,y,"access private method"),C);var nl=65536;function*chunk(u){if(u.byteLength<=nl){yield u;return}let y=0;while(y<u.byteLength){const C=Math.min(u.byteLength-y,nl);const D=u.buffer.slice(y,y+C);y+=D.byteLength;yield new Uint8Array(D)}}var il="abcdefghijklmnopqrstuvwxyz0123456789";function createBoundary(){let u=16;let y="";while(u--){y+=il[Math.random()*il.length<<0]}return y}var escapeName=u=>String(u).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");var lib_isFunction=u=>typeof u==="function";var isReadableStreamFallback=u=>!!u&&typeof u==="object"&&!Array.isArray(u)&&lib_isFunction(u.getReader);var lib_isAsyncIterable=u=>lib_isFunction(u[Symbol.asyncIterator]);async function*readStream(u){const y=u.getReader();while(true){const{done:u,value:C}=await y.read();if(u){break}yield C}}async function*chunkStream(u){for await(const y of u){yield*chunk(y)}}var getStreamIterator=u=>{if(lib_isAsyncIterable(u)){return chunkStream(u)}if(isReadableStreamFallback(u)){return chunkStream(readStream(u))}throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};var isFile=u=>Boolean(u&&typeof u==="object"&&lib_isFunction(u.constructor)&&u[Symbol.toStringTag]==="File"&&lib_isFunction(u.stream)&&u.name!=null);var lib_isFormData=u=>Boolean(u&&lib_isFunction(u.constructor)&&u[Symbol.toStringTag]==="FormData"&&lib_isFunction(u.append)&&lib_isFunction(u.getAll)&&lib_isFunction(u.entries)&&lib_isFunction(u[Symbol.iterator]));var getType=u=>Object.prototype.toString.call(u).slice(8,-1).toLowerCase();function lib_isPlainObject(u){if(getType(u)!=="object"){return false}const y=Object.getPrototypeOf(u);if(y===null||y===void 0){return true}return y.constructor?.toString?.()===Object.toString()}var normalizeValue=u=>String(u).replace(/\r|\n/g,((u,y,C)=>{if(u==="\r"&&C[y+1]!=="\n"||u==="\n"&&C[y-1]!=="\r"){return"\r\n"}return u}));function getProperty(u,y){if(typeof y==="string"){for(const[C,D]of Object.entries(u)){if(y.toLowerCase()===C.toLowerCase()){return D}}}return void 0}var proxyHeaders=u=>new Proxy(u,{get:(u,y)=>getProperty(u,y),has:(u,y)=>getProperty(u,y)!==void 0});var sl={enableAdditionalHeaders:false};var ol={writable:false,configurable:false};var al,ll,cl,ul,fl,dl,Al,hl,pl,gl,ml;var yl=class{constructor(u,y,C){__privateAdd(this,pl);__privateAdd(this,al,"\r\n");__privateAdd(this,ll);__privateAdd(this,cl);__privateAdd(this,ul,"-".repeat(2));__privateAdd(this,fl,new TextEncoder);__privateAdd(this,dl);__privateAdd(this,Al);__privateAdd(this,hl);if(!lib_isFormData(u)){throw new TypeError("Expected first argument to be a FormData instance.")}let D;if(lib_isPlainObject(y)){C=y}else{D=y}if(!D){D=`form-data-encoder-${createBoundary()}`}if(typeof D!=="string"){throw new TypeError("Expected boundary argument to be a string.")}if(C&&!lib_isPlainObject(C)){throw new TypeError("Expected options argument to be an object.")}__privateSet(this,Al,Array.from(u.entries()));__privateSet(this,hl,{...sl,...C});__privateSet(this,ll,__privateGet(this,fl).encode(__privateGet(this,al)));__privateSet(this,cl,__privateGet(this,ll).byteLength);this.boundary=D;this.contentType=`multipart/form-data; boundary=${this.boundary}`;__privateSet(this,dl,__privateGet(this,fl).encode(`${__privateGet(this,ul)}${this.boundary}${__privateGet(this,ul)}${__privateGet(this,al).repeat(2)}`));const _={"Content-Type":this.contentType};const j=__privateMethod(this,pl,ml).call(this);if(j){this.contentLength=j;_["Content-Length"]=j}this.headers=proxyHeaders(Object.freeze(_));Object.defineProperties(this,{boundary:ol,contentType:ol,contentLength:ol,headers:ol})}*values(){for(const[u,y]of __privateGet(this,Al)){const C=isFile(y)?y:__privateGet(this,fl).encode(normalizeValue(y));yield __privateMethod(this,pl,gl).call(this,u,C);yield C;yield __privateGet(this,ll)}yield __privateGet(this,dl)}async*encode(){for(const u of this.values()){if(isFile(u)){yield*getStreamIterator(u.stream())}else{yield*chunk(u)}}}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};al=new WeakMap;ll=new WeakMap;cl=new WeakMap;ul=new WeakMap;fl=new WeakMap;dl=new WeakMap;Al=new WeakMap;hl=new WeakMap;pl=new WeakSet;gl=function(u,y){let C="";C+=`${__privateGet(this,ul)}${this.boundary}${__privateGet(this,al)}`;C+=`Content-Disposition: form-data; name="${escapeName(u)}"`;if(isFile(y)){C+=`; filename="${escapeName(y.name)}"${__privateGet(this,al)}`;C+=`Content-Type: ${y.type||"application/octet-stream"}`}if(__privateGet(this,hl).enableAdditionalHeaders===true){const u=isFile(y)?y.size:y.byteLength;if(u!=null&&!isNaN(u)){C+=`${__privateGet(this,al)}Content-Length: ${u}`}}return __privateGet(this,fl).encode(`${C}${__privateGet(this,al).repeat(2)}`)};ml=function(){let u=0;for(const[y,C]of __privateGet(this,Al)){const D=isFile(C)?C:__privateGet(this,fl).encode(normalizeValue(C));const _=isFile(D)?D.size:D.byteLength;if(_==null||isNaN(_)){return void 0}u+=__privateMethod(this,pl,gl).call(this,y,D).byteLength;u+=_;u+=__privateGet(this,cl)}return String(u+__privateGet(this,dl).byteLength)};function isTlsSocket(u){return"encrypted"in u}const deferToConnect=(u,y)=>{let C;if(typeof y==="function"){const u=y;C={connect:u}}else{C=y}const D=typeof C.connect==="function";const _=typeof C.secureConnect==="function";const j=typeof C.close==="function";const onConnect=()=>{if(D){C.connect()}if(isTlsSocket(u)&&_){if(u.authorized){C.secureConnect()}else{u.once("secureConnect",C.secureConnect)}}if(j){u.once("close",C.close)}};if(u.writable&&!u.connecting){onConnect()}else if(u.connecting){u.once("connect",onConnect)}else if(u.destroyed&&j){const y="_hadError"in u?Boolean(u._hadError):false;C.close(y)}};const El=deferToConnect;const timer=u=>{if(u.timings){return u.timings}const y={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};u.timings=y;const handleError=u=>{u.once(Tt.errorMonitor,(()=>{y.error=Date.now();y.phases.total=y.error-y.start}))};handleError(u);const onAbort=()=>{y.abort=Date.now();y.phases.total=y.abort-y.start};u.prependOnceListener("abort",onAbort);const onSocket=u=>{y.socket=Date.now();y.phases.wait=y.socket-y.start;if(cn.types.isProxy(u)){return}const C=u.writable&&!u.connecting;if(C){y.lookup=y.socket;y.connect=y.socket;if(u.__initial_connection_timings__){y.phases.dns=u.__initial_connection_timings__.dnsPhase;y.phases.tcp=u.__initial_connection_timings__.tcpPhase;y.phases.tls=u.__initial_connection_timings__.tlsPhase;if(y.phases.tls!==undefined){y.secureConnect=y.socket}}else{y.phases.dns=0;y.phases.tcp=0}return}const lookupListener=()=>{y.lookup=Date.now();y.phases.dns=y.lookup-y.socket};u.prependOnceListener("lookup",lookupListener);El(u,{connect(){y.connect=Date.now();if(y.lookup===undefined){u.removeListener("lookup",lookupListener);y.lookup=y.socket;y.phases.dns=0}y.phases.tcp=y.connect-y.lookup;if(y.phases.tcp===0&&y.phases.dns&&y.phases.dns>0){y.phases.dns=0}if(!u.__initial_connection_timings__){u.__initial_connection_timings__={dnsPhase:y.phases.dns,tcpPhase:y.phases.tcp}}},secureConnect(){y.secureConnect=Date.now();y.phases.tls=y.secureConnect-y.connect;if(u.__initial_connection_timings__){u.__initial_connection_timings__.tlsPhase=y.phases.tls}}})};if(u.socket){onSocket(u.socket)}else{u.prependOnceListener("socket",onSocket)}const onUpload=()=>{y.upload=Date.now();const u=y.secureConnect??y.connect;if(u!==undefined){y.phases.request=y.upload-u}};if(u.writableFinished){onUpload()}else{u.prependOnceListener("finish",onUpload)}u.prependOnceListener("response",(C=>{y.response=Date.now();y.phases.firstByte=y.response-y.upload;C.timings=y;handleError(C);C.prependOnceListener("end",(()=>{u.off("abort",onAbort);C.off("aborted",onAbort);if(y.phases.total!==undefined){return}y.end=Date.now();y.phases.download=y.end-y.response;y.phases.total=y.end-y.start}));C.prependOnceListener("aborted",onAbort)}));return y};const Cl=timer;function is_form_data_isFormData(u){return Yo.nodeStream(u)&&Yo.function(u.getBoundary)}async function getBodySize(u,y){if(y&&"content-length"in y){return Number(y["content-length"])}if(!u){return 0}if(Yo.string(u)){return(new TextEncoder).encode(u).byteLength}if(Yo.buffer(u)){return u.length}if(Yo.typedArray(u)){return u.byteLength}if(is_form_data_isFormData(u)){try{return await(0,cn.promisify)(u.getLength.bind(u))()}catch(u){const y=u;throw new Error("Cannot determine content-length for form-data with stream(s) of unknown length. "+"This is a limitation of the `form-data` package. "+"To fix this, either:\n"+"1. Use the `knownLength` option when appending streams:\n"+" form.append('file', stream, {knownLength: 12345});\n"+"2. Switch to spec-compliant FormData (formdata-node package)\n"+"See: https://github.com/form-data/form-data#alternative-submission-methods\n"+`Original error: ${y.message}`)}}return undefined}function proxyEvents(u,y,C){const D={};for(const _ of C){const eventFunction=(...u)=>{y.emit(_,...u)};D[_]=eventFunction;u.on(_,eventFunction)}return()=>{for(const[y,C]of Object.entries(D)){u.off(y,C)}}}const Il=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:net");function unhandle(){const u=[];return{once(y,C,D){y.once(C,D);u.push({origin:y,event:C,fn:D})},unhandleAll(){for(const y of u){const{origin:u,event:C,fn:D}=y;u.removeListener(C,D)}u.length=0}}}const bl=Symbol("reentry");const timed_out_noop=()=>{};class timed_out_TimeoutError extends Error{event;name="TimeoutError";code="ETIMEDOUT";constructor(u,y){super(`Timeout awaiting '${y}' for ${u}ms`);this.event=y}}function timedOut(u,y,C){if(bl in u){return timed_out_noop}u[bl]=true;const D=[];const{once:_,unhandleAll:j}=unhandle();const $=new Map;const addTimeout=(u,y,C)=>{const _=setTimeout(y,u,u,C);_.unref?.();const cancel=()=>{$.set(C,true);clearTimeout(_)};D.push(cancel);return cancel};const{host:ne,hostname:oe}=C;const timeoutHandler=(y,C)=>{setTimeout((()=>{if(!$.has(C)){u.destroy(new timed_out_TimeoutError(y,C))}}),0)};const cancelTimeouts=()=>{for(const u of D){u()}j()};u.once("error",(y=>{cancelTimeouts();if(u.listenerCount("error")===0){throw y}}));if(y.request!==undefined){const C=addTimeout(y.request,timeoutHandler,"request");_(u,"response",(u=>{_(u,"end",C)}))}if(y.socket!==undefined){const{socket:C}=y;const socketTimeoutHandler=()=>{timeoutHandler(C,"socket")};u.setTimeout(C,socketTimeoutHandler);D.push((()=>{u.removeListener("timeout",socketTimeoutHandler)}))}const le=y.lookup!==undefined;const de=y.connect!==undefined;const Ae=y.secureConnect!==undefined;const pe=y.send!==undefined;if(le||de||Ae||pe){_(u,"socket",(D=>{const{socketPath:j}=u;if(D.connecting){const u=Boolean(j??Il.isIP(oe??ne??"")!==0);if(le&&!u&&D.address().address===undefined){const u=addTimeout(y.lookup,timeoutHandler,"lookup");_(D,"lookup",u)}if(de){const timeConnect=()=>addTimeout(y.connect,timeoutHandler,"connect");if(u){_(D,"connect",timeConnect())}else{_(D,"lookup",(u=>{if(u===null){_(D,"connect",timeConnect())}}))}}if(Ae&&C.protocol==="https:"){_(D,"connect",(()=>{const u=addTimeout(y.secureConnect,timeoutHandler,"secureConnect");_(D,"secureConnect",u)}))}}if(pe){const timeRequest=()=>addTimeout(y.send,timeoutHandler,"send");if(D.connecting){_(D,"connect",(()=>{_(u,"upload-complete",timeRequest())}))}else{_(u,"upload-complete",timeRequest())}}}))}if(y.response!==undefined){_(u,"upload-complete",(()=>{const C=addTimeout(y.response,timeoutHandler,"response");_(u,"response",C)}))}if(y.read!==undefined){_(u,"response",(u=>{const C=addTimeout(y.read,timeoutHandler,"read");_(u,"end",C)}))}return cancelTimeouts}function urlToOptions(u){u=u;const y={protocol:u.protocol,hostname:Yo.string(u.hostname)&&u.hostname.startsWith("[")?u.hostname.slice(1,-1):u.hostname,host:u.host,hash:u.hash,search:u.search,pathname:u.pathname,href:u.href,path:`${u.pathname||""}${u.search||""}`};if(Yo.string(u.port)&&u.port.length>0){y.port=Number(u.port)}if(u.username||u.password){y.auth=`${u.username||""}:${u.password||""}`}return y}class WeakableMap{weakMap=new WeakMap;map=new Map;set(u,y){if(typeof u==="object"){this.weakMap.set(u,y)}else{this.map.set(u,y)}}get(u){if(typeof u==="object"){return this.weakMap.get(u)}return this.map.get(u)}has(u){if(typeof u==="object"){return this.weakMap.has(u)}return this.map.has(u)}}const calculateRetryDelay=({attemptCount:u,retryOptions:y,error:C,retryAfter:D,computedValue:_})=>{if(C.name==="RetryError"){return 1}if(u>y.limit){return 0}const j=y.methods.includes(C.options.method);const $=y.errorCodes.includes(C.code);const ne=C.response&&y.statusCodes.includes(C.response.statusCode);if(!j||!$&&!ne){return 0}if(C.response){if(D){if(D>_){return 0}return D}if(C.response.statusCode===413){return 0}}const oe=Math.random()*y.noise;return Math.min(2**(u-1)*1e3,y.backoffLimit)+oe};const vl=calculateRetryDelay;const wl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tls");const Bl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:https");const Dl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:dns");const{Resolver:Sl}=Dl.promises;const kl=Symbol("cacheableLookupCreateConnection");const Ql=Symbol("cacheableLookupInstance");const xl=Symbol("expires");const Fl=typeof Dl.ALL==="number";const verifyAgent=u=>{if(!(u&&typeof u.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=u=>{for(const y of u){if(y.family===6){continue}y.address=`::ffff:${y.address}`;y.family=6}};const getIfaceInfo=()=>{let u=false;let y=false;for(const C of Object.values(Hi.networkInterfaces())){for(const D of C){if(D.internal){continue}if(D.family==="IPv6"){y=true}else{u=true}if(u&&y){return{has4:u,has6:y}}}}return{has4:u,has6:y}};const source_isIterable=u=>Symbol.iterator in u;const ignoreNoResultErrors=u=>u.catch((u=>{if(u.code==="ENODATA"||u.code==="ENOTFOUND"||u.code==="ENOENT"){return[]}throw u}));const _l={ttl:true};const Rl={all:true};const Ll={all:true,family:4};const Nl={all:true,family:6};class CacheableLookup{constructor({cache:u=new Map,maxTtl:y=Infinity,fallbackDuration:C=3600,errorTtl:D=.15,resolver:_=new Sl,lookup:j=Dl.lookup}={}){this.maxTtl=y;this.errorTtl=D;this._cache=u;this._resolver=_;this._dnsLookup=j&&(0,cn.promisify)(j);this.stats={cache:0,query:0};if(this._resolver instanceof Sl){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=(0,cn.promisify)(this._resolver.resolve4.bind(this._resolver));this._resolve6=(0,cn.promisify)(this._resolver.resolve6.bind(this._resolver))}this._iface=getIfaceInfo();this._pending={};this._nextRemovalTime=false;this._hostnamesToFallback=new Set;this.fallbackDuration=C;if(C>0){const u=setInterval((()=>{this._hostnamesToFallback.clear()}),C*1e3);if(u.unref){u.unref()}this._fallbackInterval=u}this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(u){this.clear();this._resolver.setServers(u)}get servers(){return this._resolver.getServers()}lookup(u,y,C){if(typeof y==="function"){C=y;y={}}else if(typeof y==="number"){y={family:y}}if(!C){throw new Error("Callback must be a function.")}this.lookupAsync(u,y).then((u=>{if(y.all){C(null,u)}else{C(null,u.address,u.family,u.expires,u.ttl,u.source)}}),C)}async lookupAsync(u,y={}){if(typeof y==="number"){y={family:y}}let C=await this.query(u);if(y.family===6){const u=C.filter((u=>u.family===6));if(y.hints&Dl.V4MAPPED){if(Fl&&y.hints&Dl.ALL||u.length===0){map4to6(C)}else{C=u}}else{C=u}}else if(y.family===4){C=C.filter((u=>u.family===4))}if(y.hints&Dl.ADDRCONFIG){const{_iface:u}=this;C=C.filter((y=>y.family===6?u.has6:u.has4))}if(C.length===0){const y=new Error(`cacheableLookup ENOTFOUND ${u}`);y.code="ENOTFOUND";y.hostname=u;throw y}if(y.all){return C}return C[0]}async query(u){let y="cache";let C=await this._cache.get(u);if(C){this.stats.cache++}if(!C){const D=this._pending[u];if(D){this.stats.cache++;C=await D}else{y="query";const D=this.queryAndCache(u);this._pending[u]=D;this.stats.query++;try{C=await D}finally{delete this._pending[u]}}}C=C.map((u=>({...u,source:y})));return C}async _resolve(u){const[y,C]=await Promise.all([ignoreNoResultErrors(this._resolve4(u,_l)),ignoreNoResultErrors(this._resolve6(u,_l))]);let D=0;let _=0;let j=0;const $=Date.now();for(const u of y){u.family=4;u.expires=$+u.ttl*1e3;D=Math.max(D,u.ttl)}for(const u of C){u.family=6;u.expires=$+u.ttl*1e3;_=Math.max(_,u.ttl)}if(y.length>0){if(C.length>0){j=Math.min(D,_)}else{j=D}}else{j=_}return{entries:[...y,...C],cacheTtl:j}}async _lookup(u){try{const[y,C]=await Promise.all([ignoreNoResultErrors(this._dnsLookup(u,Ll)),ignoreNoResultErrors(this._dnsLookup(u,Nl))]);return{entries:[...y,...C],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(u,y,C){if(this.maxTtl>0&&C>0){C=Math.min(C,this.maxTtl)*1e3;y[xl]=Date.now()+C;try{await this._cache.set(u,y,C)}catch(u){this.lookupAsync=async()=>{const y=new Error("Cache Error. Please recreate the CacheableLookup instance.");y.cause=u;throw y}}if(source_isIterable(this._cache)){this._tick(C)}}}async queryAndCache(u){if(this._hostnamesToFallback.has(u)){return this._dnsLookup(u,Rl)}let y=await this._resolve(u);if(y.entries.length===0&&this._dnsLookup){y=await this._lookup(u);if(y.entries.length!==0&&this.fallbackDuration>0){this._hostnamesToFallback.add(u)}}const C=y.entries.length===0?this.errorTtl:y.cacheTtl;await this._set(u,y.entries,C);return y.entries}_tick(u){const y=this._nextRemovalTime;if(!y||u<y){clearTimeout(this._removalTimeout);this._nextRemovalTime=u;this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=false;let u=Infinity;const y=Date.now();for(const[C,D]of this._cache){const _=D[xl];if(y>=_){this._cache.delete(C)}else if(_<u){u=_}}if(u!==Infinity){this._tick(u-y)}}),u);if(this._removalTimeout.unref){this._removalTimeout.unref()}}}install(u){verifyAgent(u);if(kl in u){throw new Error("CacheableLookup has been already installed")}u[kl]=u.createConnection;u[Ql]=this;u.createConnection=(y,C)=>{if(!("lookup"in y)){y.lookup=this.lookup}return u[kl](y,C)}}uninstall(u){verifyAgent(u);if(u[kl]){if(u[Ql]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}u.createConnection=u[kl];delete u[kl];delete u[Ql]}}updateInterfaceInfo(){const{_iface:u}=this;this._iface=getIfaceInfo();if(u.has4&&!this._iface.has4||u.has6&&!this._iface.has6){this._cache.clear()}}clear(u){if(u){this._cache.delete(u);return}this._cache.clear()}}var Tl=C(4956);function parseLinkHeader(u){const y=[];const C=u.split(",");for(const D of C){const[C,..._]=D.split(";");const j=C.trim();if(j[0]!=="<"||j.at(-1)!==">"){throw new Error(`Invalid format of the Link header reference: ${j}`)}const $=j.slice(1,-1);const ne={};if(_.length===0){throw new Error(`Unexpected end of Link header parameters: ${_.join(";")}`)}for(const y of _){const C=y.trim();const D=C.indexOf("=");if(D===-1){throw new Error(`Failed to parse Link header: ${u}`)}const _=C.slice(0,D).trim();const j=C.slice(D+1).trim();ne[_]=j}y.push({reference:$,parameters:ne})}return y}const[Pl,Ol]=un.versions.node.split(".").map(Number);function wrapAssertionWithContext(u,y){try{y()}catch(y){if(y instanceof Error){y.message=`Option '${u}': ${y.message}`}throw y}}function options_assertAny(u,y,C){wrapAssertionWithContext(u,(()=>{Vo.any(y,C)}))}function options_assertPlainObject(u,y){wrapAssertionWithContext(u,(()=>{Vo.plainObject(y)}))}function validateSearchParameters(u){for(const y in u){const C=u[y];options_assertAny(`searchParams.${y}`,[Yo.string,Yo.number,Yo.boolean,Yo.null,Yo.undefined],C)}}const Ml=new Map;let Ul;const getGlobalDnsCache=()=>{if(Ul){return Ul}Ul=new CacheableLookup;return Ul};const wrapQuickLruIfNeeded=u=>{if(u?.[Symbol.toStringTag]==="QuickLRU"&&typeof u.evict==="function"){return{get(y){return u.get(y)},set(y,C,D){if(D===undefined){u.set(y,C)}else{u.set(y,C,{maxAge:D})}return true},delete(y){return u.delete(y)},clear(){return u.clear()},has(y){return u.has(y)}}}return u};const Hl={request:undefined,agent:{http:undefined,https:undefined,http2:undefined},h2session:undefined,decompress:true,timeout:{connect:undefined,lookup:undefined,read:undefined,request:undefined,response:undefined,secureConnect:undefined,send:undefined,socket:undefined},prefixUrl:"",body:undefined,form:undefined,json:undefined,cookieJar:undefined,ignoreInvalidCookies:false,searchParams:undefined,dnsLookup:undefined,dnsCache:undefined,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],beforeCache:[],afterResponse:[]},followRedirect:true,maxRedirects:10,cache:undefined,throwHttpErrors:true,username:"",password:"",http2:false,allowGetBody:false,copyPipedHeaders:true,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:false,dnsLookupIpVersion:undefined,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:u})=>u,backoffLimit:Number.POSITIVE_INFINITY,noise:100,enforceRetryRules:false},localAddress:undefined,method:"GET",createConnection:undefined,cacheOptions:{shared:undefined,cacheHeuristic:undefined,immutableMinTimeToLive:undefined,ignoreCargoCult:undefined},https:{alpnProtocols:undefined,rejectUnauthorized:undefined,checkServerIdentity:undefined,serverName:undefined,certificateAuthority:undefined,key:undefined,certificate:undefined,passphrase:undefined,pfx:undefined,ciphers:undefined,honorCipherOrder:undefined,minVersion:undefined,maxVersion:undefined,signatureAlgorithms:undefined,tlsSessionLifetime:undefined,dhparam:undefined,ecdhCurve:undefined,certificateRevocationLists:undefined,secureOptions:undefined},encoding:undefined,resolveBodyOnly:false,isStream:false,responseType:"text",url:undefined,pagination:{transform(u){if(u.request.options.responseType==="json"){return u.body}return JSON.parse(u.body)},paginate({response:u}){const y=u.headers.link;if(typeof y!=="string"||y.trim()===""){return false}const C=parseLinkHeader(y);const D=C.find((u=>u.parameters.rel==="next"||u.parameters.rel==='"next"'));if(D){return{url:new URL(D.reference,u.url)}}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:false},setHost:true,maxHeaderSize:undefined,signal:undefined,enableUnixSockets:false,strictContentLength:false};const cloneInternals=u=>{const{hooks:y,retry:C}=u;const D={...u,context:{...u.context},cacheOptions:{...u.cacheOptions},https:{...u.https},agent:{...u.agent},headers:{...u.headers},retry:{...C,errorCodes:[...C.errorCodes],methods:[...C.methods],statusCodes:[...C.statusCodes]},timeout:{...u.timeout},hooks:{init:[...y.init],beforeRequest:[...y.beforeRequest],beforeError:[...y.beforeError],beforeRedirect:[...y.beforeRedirect],beforeRetry:[...y.beforeRetry],beforeCache:[...y.beforeCache],afterResponse:[...y.afterResponse]},searchParams:u.searchParams?new URLSearchParams(u.searchParams):undefined,pagination:{...u.pagination}};return D};const cloneRaw=u=>{const{hooks:y,retry:C}=u;const D={...u};if(Yo.object(u.context)){D.context={...u.context}}if(Yo.object(u.cacheOptions)){D.cacheOptions={...u.cacheOptions}}if(Yo.object(u.https)){D.https={...u.https}}if(Yo.object(u.cacheOptions)){D.cacheOptions={...D.cacheOptions}}if(Yo.object(u.agent)){D.agent={...u.agent}}if(Yo.object(u.headers)){D.headers={...u.headers}}if(Yo.object(C)){D.retry={...C};if(Yo.array(C.errorCodes)){D.retry.errorCodes=[...C.errorCodes]}if(Yo.array(C.methods)){D.retry.methods=[...C.methods]}if(Yo.array(C.statusCodes)){D.retry.statusCodes=[...C.statusCodes]}}if(Yo.object(u.timeout)){D.timeout={...u.timeout}}if(Yo.object(y)){D.hooks={...y};if(Yo.array(y.init)){D.hooks.init=[...y.init]}if(Yo.array(y.beforeRequest)){D.hooks.beforeRequest=[...y.beforeRequest]}if(Yo.array(y.beforeError)){D.hooks.beforeError=[...y.beforeError]}if(Yo.array(y.beforeRedirect)){D.hooks.beforeRedirect=[...y.beforeRedirect]}if(Yo.array(y.beforeRetry)){D.hooks.beforeRetry=[...y.beforeRetry]}if(Yo.array(y.beforeCache)){D.hooks.beforeCache=[...y.beforeCache]}if(Yo.array(y.afterResponse)){D.hooks.afterResponse=[...y.afterResponse]}}if(u.searchParams){if(Yo.string(u.searchParams)){D.searchParams=u.searchParams}else if(u.searchParams instanceof URLSearchParams){D.searchParams=new URLSearchParams(u.searchParams)}else if(Yo.object(u.searchParams)){D.searchParams={...u.searchParams}}}if(Yo.object(u.pagination)){D.pagination={...u.pagination}}return D};const getHttp2TimeoutOption=u=>{const y=[u.timeout.socket,u.timeout.connect,u.timeout.lookup,u.timeout.request,u.timeout.secureConnect].filter((u=>typeof u==="number"));if(y.length>0){return Math.min(...y)}return undefined};const init=(u,y,C)=>{const D=u.hooks?.init;if(D){for(const u of D){u(y,C)}}};class Options{_unixOptions;_internals;_merging=false;_init;constructor(u,y,C){options_assertAny("input",[Yo.string,Yo.urlInstance,Yo.object,Yo.undefined],u);options_assertAny("options",[Yo.object,Yo.undefined],y);options_assertAny("defaults",[Yo.object,Yo.undefined],C);if(u instanceof Options||y instanceof Options){throw new TypeError("The defaults must be passed as the third argument")}this._internals=cloneInternals(C?._internals??C??Hl);this._init=[...C?._init??[]];try{if(Yo.plainObject(u)){try{this.merge(u);this.merge(y)}finally{this.url=u.url}}else{try{this.merge(y)}finally{if(y?.url!==undefined){if(u===undefined){this.url=y.url}else{throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}}else if(u!==undefined){this.url=u}}}}catch(u){u.options=this;throw u}}merge(u){if(!u){return}if(u instanceof Options){const y=[...u._init];for(const u of y){this.merge(u)}return}u=cloneRaw(u);init(this,u,this);init(u,u,this);this._merging=true;if("isStream"in u){this.isStream=u.isStream}try{let y=false;for(const C in u){if(C==="mutableDefaults"||C==="handlers"){continue}if(C==="url"){continue}if(C==="preserveHooks"){continue}if(!(C in this)){throw new Error(`Unexpected option: ${C}`)}const D=u[C];if(D===undefined){continue}this[C]=D;y=true}if(y){this._init.push(u)}}finally{this._merging=false}}get request(){return this._internals.request}set request(u){options_assertAny("request",[Yo.function,Yo.undefined],u);this._internals.request=u}get agent(){return this._internals.agent}set agent(u){options_assertPlainObject("agent",u);for(const y in u){if(!(y in this._internals.agent)){throw new TypeError(`Unexpected agent option: ${y}`)}options_assertAny(`agent.${y}`,[Yo.object,Yo.undefined,u=>u===false],u[y])}if(this._merging){Object.assign(this._internals.agent,u)}else{this._internals.agent={...u}}}get h2session(){return this._internals.h2session}set h2session(u){this._internals.h2session=u}get decompress(){return this._internals.decompress}set decompress(u){Vo.boolean(u);this._internals.decompress=u}get timeout(){return this._internals.timeout}set timeout(u){options_assertPlainObject("timeout",u);for(const y in u){if(!(y in this._internals.timeout)){throw new Error(`Unexpected timeout option: ${y}`)}options_assertAny(`timeout.${y}`,[Yo.number,Yo.undefined],u[y])}if(this._merging){Object.assign(this._internals.timeout,u)}else{this._internals.timeout={...u}}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(u){options_assertAny("prefixUrl",[Yo.string,Yo.urlInstance],u);if(u===""){this._internals.prefixUrl="";return}u=u.toString();if(!u.endsWith("/")){u+="/"}if(this._internals.prefixUrl&&this._internals.url){const{href:y}=this._internals.url;this._internals.url.href=u+y.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=u}get body(){return this._internals.body}set body(u){options_assertAny("body",[Yo.string,Yo.buffer,Yo.nodeStream,Yo.generator,Yo.asyncGenerator,Yo.iterable,Yo.asyncIterable,lib_isFormData,Yo.typedArray,Yo.undefined],u);if(Yo.nodeStream(u)){Vo.truthy(u.readable)}if(u!==undefined){Vo.undefined(this._internals.form);Vo.undefined(this._internals.json)}this._internals.body=u}get form(){return this._internals.form}set form(u){options_assertAny("form",[Yo.plainObject,Yo.undefined],u);if(u!==undefined){Vo.undefined(this._internals.body);Vo.undefined(this._internals.json)}this._internals.form=u}get json(){return this._internals.json}set json(u){if(u!==undefined){Vo.undefined(this._internals.body);Vo.undefined(this._internals.form)}this._internals.json=u}get url(){return this._internals.url}set url(u){options_assertAny("url",[Yo.string,Yo.urlInstance,Yo.undefined],u);if(u===undefined){this._internals.url=undefined;return}if(Yo.string(u)&&u.startsWith("/")){throw new Error("`url` must not start with a slash")}const y=u.toString();const C=Yo.urlInstance(u)||/^[a-z][a-z\d+.-]*:\/\//i.test(y);const D=C?y:`${this.prefixUrl}${y}`;const _=new URL(D);this._internals.url=_;if(_.protocol==="unix:"){_.href=`http://unix${_.pathname}${_.search}`}if(_.protocol!=="http:"&&_.protocol!=="https:"){const u=new Error(`Unsupported protocol: ${_.protocol}`);u.code="ERR_UNSUPPORTED_PROTOCOL";throw u}if(this._internals.username){_.username=this._internals.username;this._internals.username=""}if(this._internals.password){_.password=this._internals.password;this._internals.password=""}if(this._internals.searchParams){_.search=this._internals.searchParams.toString();this._internals.searchParams=undefined}if(_.hostname==="unix"){if(!this._internals.enableUnixSockets){throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled")}const u=/(?<socketPath>.+?):(?<path>.+)/.exec(`${_.pathname}${_.search}`);if(u?.groups){const{socketPath:y,path:C}=u.groups;this._unixOptions={socketPath:y,path:C,host:""}}else{this._unixOptions=undefined}return}this._unixOptions=undefined}get cookieJar(){return this._internals.cookieJar}set cookieJar(u){options_assertAny("cookieJar",[Yo.object,Yo.undefined],u);if(u===undefined){this._internals.cookieJar=undefined;return}let{setCookie:y,getCookieString:C}=u;Vo.function(y);Vo.function(C);if(y.length===4&&C.length===0){y=(0,cn.promisify)(y.bind(u));C=(0,cn.promisify)(C.bind(u));this._internals.cookieJar={setCookie:y,getCookieString:C}}else{this._internals.cookieJar=u}}get signal(){return this._internals.signal}set signal(u){Vo.object(u);this._internals.signal=u}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(u){Vo.boolean(u);this._internals.ignoreInvalidCookies=u}get searchParams(){if(this._internals.url){return this._internals.url.searchParams}if(this._internals.searchParams===undefined){this._internals.searchParams=new URLSearchParams}return this._internals.searchParams}set searchParams(u){options_assertAny("searchParams",[Yo.string,Yo.object,Yo.undefined],u);const y=this._internals.url;if(u===undefined){this._internals.searchParams=undefined;if(y){y.search=""}return}const C=this.searchParams;let D;if(Yo.string(u)){D=new URLSearchParams(u)}else if(u instanceof URLSearchParams){D=u}else{validateSearchParameters(u);D=new URLSearchParams;for(const y in u){const _=u[y];if(_===null){D.append(y,"")}else if(_===undefined){C.delete(y)}else{D.append(y,_)}}}if(this._merging){for(const u of D.keys()){C.delete(u)}for(const[u,y]of D){C.append(u,y)}}else if(y){y.search=C.toString()}else{this._internals.searchParams=C}}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(u){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(u){options_assertAny("dnsLookup",[Yo.function,Yo.undefined],u);this._internals.dnsLookup=u}get dnsCache(){return this._internals.dnsCache}set dnsCache(u){options_assertAny("dnsCache",[Yo.object,Yo.boolean,Yo.undefined],u);if(u===true){this._internals.dnsCache=getGlobalDnsCache()}else if(u===false){this._internals.dnsCache=undefined}else{this._internals.dnsCache=u}}get context(){return this._internals.context}set context(u){Vo.object(u);if(this._merging){Object.assign(this._internals.context,u)}else{this._internals.context={...u}}}get hooks(){return this._internals.hooks}set hooks(u){Vo.object(u);for(const y in u){if(!(y in this._internals.hooks)){throw new Error(`Unexpected hook event: ${y}`)}const C=y;const D=u[C];options_assertAny(`hooks.${y}`,[Yo.array,Yo.undefined],D);if(D){for(const u of D){Vo.function(u)}}if(this._merging){if(D){this._internals.hooks[C].push(...D)}}else{if(!D){throw new Error(`Missing hook event: ${y}`)}this._internals.hooks[y]=[...D]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(u){options_assertAny("followRedirect",[Yo.boolean,Yo.function],u);this._internals.followRedirect=u}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(u){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(u){Vo.number(u);this._internals.maxRedirects=u}get cache(){return this._internals.cache}set cache(u){options_assertAny("cache",[Yo.object,Yo.string,Yo.boolean,Yo.undefined],u);if(u===true){this._internals.cache=Ml}else if(u===false){this._internals.cache=undefined}else{this._internals.cache=wrapQuickLruIfNeeded(u)}}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(u){Vo.boolean(u);this._internals.throwHttpErrors=u}get username(){const u=this._internals.url;const y=u?u.username:this._internals.username;return decodeURIComponent(y)}set username(u){Vo.string(u);const y=this._internals.url;const C=encodeURIComponent(u);if(y){y.username=C}else{this._internals.username=C}}get password(){const u=this._internals.url;const y=u?u.password:this._internals.password;return decodeURIComponent(y)}set password(u){Vo.string(u);const y=this._internals.url;const C=encodeURIComponent(u);if(y){y.password=C}else{this._internals.password=C}}get http2(){return this._internals.http2}set http2(u){Vo.boolean(u);this._internals.http2=u}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(u){Vo.boolean(u);this._internals.allowGetBody=u}get copyPipedHeaders(){return this._internals.copyPipedHeaders}set copyPipedHeaders(u){Vo.boolean(u);this._internals.copyPipedHeaders=u}get headers(){return this._internals.headers}set headers(u){options_assertPlainObject("headers",u);if(this._merging){Object.assign(this._internals.headers,lowercaseKeys(u))}else{this._internals.headers=lowercaseKeys(u)}}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(u){Vo.boolean(u);this._internals.methodRewriting=u}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(u){if(u!==undefined&&u!==4&&u!==6){throw new TypeError(`Invalid DNS lookup IP version: ${u}`)}this._internals.dnsLookupIpVersion=u}get parseJson(){return this._internals.parseJson}set parseJson(u){Vo.function(u);this._internals.parseJson=u}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(u){Vo.function(u);this._internals.stringifyJson=u}get retry(){return this._internals.retry}set retry(u){options_assertPlainObject("retry",u);options_assertAny("retry.calculateDelay",[Yo.function,Yo.undefined],u.calculateDelay);options_assertAny("retry.maxRetryAfter",[Yo.number,Yo.undefined],u.maxRetryAfter);options_assertAny("retry.limit",[Yo.number,Yo.undefined],u.limit);options_assertAny("retry.methods",[Yo.array,Yo.undefined],u.methods);options_assertAny("retry.statusCodes",[Yo.array,Yo.undefined],u.statusCodes);options_assertAny("retry.errorCodes",[Yo.array,Yo.undefined],u.errorCodes);options_assertAny("retry.noise",[Yo.number,Yo.undefined],u.noise);options_assertAny("retry.enforceRetryRules",[Yo.boolean,Yo.undefined],u.enforceRetryRules);if(u.noise&&Math.abs(u.noise)>100){throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${u.noise}`)}for(const y in u){if(!(y in this._internals.retry)){throw new Error(`Unexpected retry option: ${y}`)}}if(this._merging){Object.assign(this._internals.retry,u)}else{this._internals.retry={...u}}const{retry:y}=this._internals;y.methods=[...new Set(y.methods.map((u=>u.toUpperCase())))];y.statusCodes=[...new Set(y.statusCodes)];y.errorCodes=[...new Set(y.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(u){options_assertAny("localAddress",[Yo.string,Yo.undefined],u);this._internals.localAddress=u}get method(){return this._internals.method}set method(u){Vo.string(u);this._internals.method=u.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(u){options_assertAny("createConnection",[Yo.function,Yo.undefined],u);this._internals.createConnection=u}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(u){options_assertPlainObject("cacheOptions",u);options_assertAny("cacheOptions.shared",[Yo.boolean,Yo.undefined],u.shared);options_assertAny("cacheOptions.cacheHeuristic",[Yo.number,Yo.undefined],u.cacheHeuristic);options_assertAny("cacheOptions.immutableMinTimeToLive",[Yo.number,Yo.undefined],u.immutableMinTimeToLive);options_assertAny("cacheOptions.ignoreCargoCult",[Yo.boolean,Yo.undefined],u.ignoreCargoCult);for(const y in u){if(!(y in this._internals.cacheOptions)){throw new Error(`Cache option \`${y}\` does not exist`)}}if(this._merging){Object.assign(this._internals.cacheOptions,u)}else{this._internals.cacheOptions={...u}}}get https(){return this._internals.https}set https(u){options_assertPlainObject("https",u);options_assertAny("https.rejectUnauthorized",[Yo.boolean,Yo.undefined],u.rejectUnauthorized);options_assertAny("https.checkServerIdentity",[Yo.function,Yo.undefined],u.checkServerIdentity);options_assertAny("https.serverName",[Yo.string,Yo.undefined],u.serverName);options_assertAny("https.certificateAuthority",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.certificateAuthority);options_assertAny("https.key",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.key);options_assertAny("https.certificate",[Yo.string,Yo.object,Yo.array,Yo.undefined],u.certificate);options_assertAny("https.passphrase",[Yo.string,Yo.undefined],u.passphrase);options_assertAny("https.pfx",[Yo.string,Yo.buffer,Yo.array,Yo.undefined],u.pfx);options_assertAny("https.alpnProtocols",[Yo.array,Yo.undefined],u.alpnProtocols);options_assertAny("https.ciphers",[Yo.string,Yo.undefined],u.ciphers);options_assertAny("https.dhparam",[Yo.string,Yo.buffer,Yo.undefined],u.dhparam);options_assertAny("https.signatureAlgorithms",[Yo.string,Yo.undefined],u.signatureAlgorithms);options_assertAny("https.minVersion",[Yo.string,Yo.undefined],u.minVersion);options_assertAny("https.maxVersion",[Yo.string,Yo.undefined],u.maxVersion);options_assertAny("https.honorCipherOrder",[Yo.boolean,Yo.undefined],u.honorCipherOrder);options_assertAny("https.tlsSessionLifetime",[Yo.number,Yo.undefined],u.tlsSessionLifetime);options_assertAny("https.ecdhCurve",[Yo.string,Yo.undefined],u.ecdhCurve);options_assertAny("https.certificateRevocationLists",[Yo.string,Yo.buffer,Yo.array,Yo.undefined],u.certificateRevocationLists);options_assertAny("https.secureOptions",[Yo.number,Yo.undefined],u.secureOptions);for(const y in u){if(!(y in this._internals.https)){throw new Error(`HTTPS option \`${y}\` does not exist`)}}if(this._merging){Object.assign(this._internals.https,u)}else{this._internals.https={...u}}}get encoding(){return this._internals.encoding}set encoding(u){if(u===null){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}options_assertAny("encoding",[Yo.string,Yo.undefined],u);this._internals.encoding=u}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(u){Vo.boolean(u);this._internals.resolveBodyOnly=u}get isStream(){return this._internals.isStream}set isStream(u){Vo.boolean(u);this._internals.isStream=u}get responseType(){return this._internals.responseType}set responseType(u){if(u===undefined){this._internals.responseType="text";return}if(u!=="text"&&u!=="buffer"&&u!=="json"){throw new Error(`Invalid \`responseType\` option: ${u}`)}this._internals.responseType=u}get pagination(){return this._internals.pagination}set pagination(u){Vo.object(u);if(this._merging){Object.assign(this._internals.pagination,u)}else{this._internals.pagination=u}}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(u){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(u){Vo.boolean(u);this._internals.setHost=u}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(u){options_assertAny("maxHeaderSize",[Yo.number,Yo.undefined],u);this._internals.maxHeaderSize=u}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(u){Vo.boolean(u);this._internals.enableUnixSockets=u}get strictContentLength(){return this._internals.strictContentLength}set strictContentLength(u){Vo.boolean(u);this._internals.strictContentLength=u}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](u,y){return(0,cn.inspect)(this._internals,y)}createNativeRequestOptions(){const u=this._internals;const y=u.url;let C;if(y.protocol==="https:"){if(u.http2){C={...u.agent,http2:u.agent.http2??Tl.globalAgent}}else{C=u.agent.https}}else{C=u.agent.http}const{https:D}=u;let{pfx:_}=D;if(Yo.array(_)&&Yo.plainObject(_[0])){_=_.map((u=>({buf:u.buffer,passphrase:u.passphrase})))}return{...u.cacheOptions,...this._unixOptions,ALPNProtocols:D.alpnProtocols,ca:D.certificateAuthority,cert:D.certificate,key:D.key,passphrase:D.passphrase,pfx:D.pfx,rejectUnauthorized:D.rejectUnauthorized,checkServerIdentity:D.checkServerIdentity??wl.checkServerIdentity,servername:D.serverName,ciphers:D.ciphers,honorCipherOrder:D.honorCipherOrder,minVersion:D.minVersion,maxVersion:D.maxVersion,sigalgs:D.signatureAlgorithms,sessionTimeout:D.tlsSessionLifetime,dhparam:D.dhparam,ecdhCurve:D.ecdhCurve,crl:D.certificateRevocationLists,secureOptions:D.secureOptions,lookup:u.dnsLookup??u.dnsCache?.lookup,family:u.dnsLookupIpVersion,agent:C,setHost:u.setHost,method:u.method,maxHeaderSize:u.maxHeaderSize,localAddress:u.localAddress,headers:u.headers,createConnection:u.createConnection,timeout:u.http2?getHttp2TimeoutOption(u):undefined,h2session:u.h2session}}getRequestFunction(){const u=this._internals.url;const{request:y}=this._internals;if(!y&&u){return this.getFallbackRequestFunction()}return y}getFallbackRequestFunction(){const u=this._internals.url;if(!u){return}if(u.protocol==="https:"){if(this._internals.http2){if(Pl<15||Pl===15&&Ol<10){const u=new Error("To use the `http2` option, install Node.js 15.10.0 or above");u.code="EUNSUPPORTED";throw u}return Tl.auto}return Bl.request}return Zo.request}freeze(){const u=this._internals;Object.freeze(u);Object.freeze(u.hooks);Object.freeze(u.hooks.afterResponse);Object.freeze(u.hooks.beforeError);Object.freeze(u.hooks.beforeRedirect);Object.freeze(u.hooks.beforeRequest);Object.freeze(u.hooks.beforeRetry);Object.freeze(u.hooks.init);Object.freeze(u.https);Object.freeze(u.cacheOptions);Object.freeze(u.agent);Object.freeze(u.headers);Object.freeze(u.timeout);Object.freeze(u.retry);Object.freeze(u.retry.errorCodes);Object.freeze(u.retry.methods);Object.freeze(u.retry.statusCodes)}}const isResponseOk=u=>{const{statusCode:y}=u;const{followRedirect:C}=u.request.options;const D=typeof C==="function"?C(u):C;const _=D?299:399;return y>=200&&y<=_||y===304};class ParseError extends RequestError{name="ParseError";code="ERR_BODY_PARSE_FAILURE";constructor(u,y){const{options:C}=y.request;super(`${u.message} in "${C.url.toString()}"`,u,y.request)}}const parseBody=(u,y,C,D)=>{const{rawBody:_}=u;try{if(y==="text"){return _.toString(D)}if(y==="json"){return _.length===0?"":C(_.toString(D))}if(y==="buffer"){return _}}catch(y){throw new ParseError(y,u)}throw new ParseError({message:`Unknown body type '${y}'`,name:"Error"},u)};function isClientRequest(u){return u.writable&&!u.writableEnded}const Gl=isClientRequest;function isUnixSocketURL(u){return u.protocol==="unix:"||u.hostname==="unix"}function getUnixSocketPath(u){if(!isUnixSocketURL(u)){return undefined}return/(?<socketPath>.+?):(?<path>.+)/.exec(`${u.pathname}${u.search}`)?.groups?.socketPath}const Wl=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:diagnostics_channel");const jl={requestCreate:Wl.channel("got:request:create"),requestStart:Wl.channel("got:request:start"),responseStart:Wl.channel("got:response:start"),responseEnd:Wl.channel("got:response:end"),retry:Wl.channel("got:request:retry"),error:Wl.channel("got:request:error"),redirect:Wl.channel("got:response:redirect")};function generateRequestId(){return(0,ra.randomUUID)()}function publishRequestCreate(u){if(jl.requestCreate.hasSubscribers){jl.requestCreate.publish(u)}}function publishRequestStart(u){if(jl.requestStart.hasSubscribers){jl.requestStart.publish(u)}}function publishResponseStart(u){if(jl.responseStart.hasSubscribers){jl.responseStart.publish(u)}}function publishResponseEnd(u){if(jl.responseEnd.hasSubscribers){jl.responseEnd.publish(u)}}function publishRetry(u){if(jl.retry.hasSubscribers){jl.retry.publish(u)}}function publishError(u){if(jl.error.hasSubscribers){jl.error.publish(u)}}function publishRedirect(u){if(jl.redirect.hasSubscribers){jl.redirect.publish(u)}}const zl=Yo.string(un.versions.brotli);const $l=Yo.string(un.versions.zstd);const ql=new Set(["GET","HEAD"]);const Vl=new Set(["OPTIONS","DELETE","PATCH"]);const Jl=new WeakableMap;const Kl=new Set([300,301,302,303,304,307,308]);const Yl=new WeakSet;const Xl=["socket","connect","continue","information","upgrade"];const core_noop=()=>{};class Request extends Pt.Duplex{["constructor"];_noPipe;options;response;requestUrl;redirectUrls=[];retryCount=0;_stopReading=false;_stopRetry=core_noop;_downloadedSize=0;_uploadedSize=0;_pipedServerResponses=new Set;_request;_responseSize;_bodySize;_unproxyEvents=core_noop;_isFromCache;_triggerRead=false;_jobs=[];_cancelTimeouts=core_noop;_removeListeners=core_noop;_nativeResponse;_flushed=false;_aborted=false;_expectedContentLength;_compressedBytesCount;_requestId=generateRequestId();_requestInitialized=false;constructor(u,y,C){super({autoDestroy:false,highWaterMark:0});this.on("pipe",(u=>{if(this.options.copyPipedHeaders&&u?.headers){Object.assign(this.options.headers,u.headers)}}));this.on("newListener",(u=>{if(u==="retry"&&this.listenerCount("retry")>0){throw new Error("A retry listener has been attached already.")}}));try{this.options=new Options(u,y,C);if(!this.options.url){if(this.options.prefixUrl===""){throw new TypeError("Missing `url` property")}this.options.url=""}this.requestUrl=this.options.url;publishRequestCreate({requestId:this._requestId,url:this.options.url?.toString()??"",method:this.options.method})}catch(u){const{options:y}=u;if(y){this.options=y}this.flush=async()=>{this.flush=async()=>{};un.nextTick((()=>{if(this.options){this._beforeError(u)}else{const y=u instanceof RequestError?u:new RequestError(u.message,u,this);this.destroy(y)}}))};return}const{body:D}=this.options;if(Yo.nodeStream(D)){D.once("error",(u=>{if(this._flushed){this._beforeError(new UploadError(u,this))}else{this.flush=async()=>{this.flush=async()=>{};this._beforeError(new UploadError(u,this))}}}))}if(this.options.signal){const abort=()=>{if(this.options.signal?.reason?.name==="TimeoutError"){this.destroy(new TimeoutError(this.options.signal.reason,this.timings,this))}else{this.destroy(new AbortError(this))}};if(this.options.signal.aborted){abort()}else{this.options.signal.addEventListener("abort",abort);this._removeListeners=()=>{this.options.signal?.removeEventListener("abort",abort)}}}}async flush(){if(this._flushed){return}this._flushed=true;try{await this._finalizeBody();if(this.destroyed){return}await this._makeRequest();if(this.destroyed){this._request?.destroy();return}for(const u of this._jobs){u()}this._jobs.length=0;this._requestInitialized=true}catch(u){this._beforeError(u)}}_beforeError(u){if(this._stopReading){return}const{response:y,options:C}=this;const D=this.retryCount+(u.name==="RetryError"?0:1);this._stopReading=true;if(!(u instanceof RequestError)){u=new RequestError(u.message,u,this)}const _=u;void(async()=>{if(y?.readable&&!y.rawBody&&!this._request?.socket?.destroyed){y.setEncoding(this.readableEncoding);const u=await this._setRawBody(y);if(u){y.body=y.rawBody.toString()}}if(this.listenerCount("retry")!==0){let j;try{let u;if(y&&"retry-after"in y.headers){u=Number(y.headers["retry-after"]);if(Number.isNaN(u)){u=Date.parse(y.headers["retry-after"])-Date.now();if(u<=0){u=1}}else{u*=1e3}}const $=C.retry;const ne=vl({attemptCount:D,retryOptions:$,error:_,retryAfter:u,computedValue:$.maxRetryAfter??C.timeout.request??Number.POSITIVE_INFINITY});if($.enforceRetryRules&&ne===0){j=0}else{j=await $.calculateDelay({attemptCount:D,retryOptions:$,error:_,retryAfter:u,computedValue:ne})}}catch(u){void this._error(new RequestError(u.message,u,this));return}if(j){await new Promise((u=>{const y=setTimeout(u,j);this._stopRetry=()=>{clearTimeout(y);u()}}));if(this.destroyed){return}const y=this.options.body;try{for(const u of this.options.hooks.beforeRetry){await u(_,this.retryCount+1)}}catch(u){void this._error(new RequestError(u.message,u,this));return}if(this.destroyed){return}const D=this.options.body;const $=y!==D;if($){const u=y;this.options.body=undefined;this.destroy();if(Yo.nodeStream(u)&&u!==D){u.destroy()}if(Yo.nodeStream(D)&&(D.readableEnded||D.destroyed)){throw new TypeError("The reassigned stream body must be readable. Ensure you provide a fresh, readable stream in the beforeRetry hook.")}this.options._internals.body=D}else{this.destroy()}publishRetry({requestId:this._requestId,retryCount:this.retryCount+1,error:_,delay:j});this.emit("retry",this.retryCount+1,u,(u=>{const y=new Request(C.url,u,C);y.retryCount=this.retryCount+1;un.nextTick((()=>{void y.flush()}));return y}));return}}void this._error(_)})()}_read(){this._triggerRead=true;const{response:u}=this;if(u&&!this._stopReading){if(u.readableLength){this._triggerRead=false}let y;while((y=u.read())!==null){this._downloadedSize+=y.length;const u=this.downloadProgress;if(u.percent<1){this.emit("downloadProgress",u)}this.push(y)}}}_write(u,y,C){const write=()=>{this._writeRequest(u,y,C)};if(this._requestInitialized){write()}else{this._jobs.push(write)}}_final(u){const endRequest=()=>{if(!this._request||this._request.destroyed){u();return}this._request.end((y=>{if(this._request?._writableState?.errored){return}if(!y){this._bodySize=this._uploadedSize;this.emit("uploadProgress",this.uploadProgress);this._request?.emit("upload-complete")}u(y)}))};if(this._requestInitialized){endRequest()}else{this._jobs.push(endRequest)}}_destroy(u,y){this._stopReading=true;this.flush=async()=>{};this._stopRetry();this._cancelTimeouts();this._removeListeners();if(this.options){const{body:u}=this.options;if(Yo.nodeStream(u)){u.destroy()}}if(this._request){this._request.destroy()}const C=this._request?.timings;if(C&&Yo.undefined(C.end)&&!Yo.undefined(C.response)&&Yo.undefined(C.error)&&Yo.undefined(C.abort)){C.end=Date.now();if(Yo.undefined(C.phases.total)){C.phases.download=C.end-C.response;C.phases.total=C.end-C.start}}if(u!==null&&!Yo.undefined(u)){const y=u instanceof Error&&Yl.has(u);if(!y&&!(u instanceof RequestError)){u=u instanceof Error?new RequestError(u.message,u,this):new RequestError(String(u),{},this)}}y(u)}pipe(u,y){if(u instanceof Zo.ServerResponse){this._pipedServerResponses.add(u)}return super.pipe(u,y)}unpipe(u){if(u instanceof Zo.ServerResponse){this._pipedServerResponses.delete(u)}super.unpipe(u);return this}_checkContentLengthMismatch(){if(this.options.strictContentLength&&this._expectedContentLength!==undefined){const u=this._compressedBytesCount??this._downloadedSize;if(u!==this._expectedContentLength){this._beforeError(new ReadError({message:`Content-Length mismatch: expected ${this._expectedContentLength} bytes, received ${u} bytes`,name:"Error",code:"ERR_HTTP_CONTENT_LENGTH_MISMATCH"},this));return true}}return false}async _finalizeBody(){const{options:u}=this;const{headers:y}=u;const C=!Yo.undefined(u.form);const D=!Yo.undefined(u.json);const _=!Yo.undefined(u.body);const j=ql.has(u.method)&&!(u.method==="GET"&&u.allowGetBody);if(C||D||_){if(j){throw new TypeError(`The \`${u.method}\` method cannot be used with a body`)}const D=!Yo.string(y["content-type"]);if(_){if(lib_isFormData(u.body)){const C=new yl(u.body);if(D){y["content-type"]=C.headers["Content-Type"]}if("Content-Length"in C.headers){y["content-length"]=C.headers["Content-Length"]}u.body=C.encode()}if(is_form_data_isFormData(u.body)&&D){y["content-type"]=`multipart/form-data; boundary=${u.body.getBoundary()}`}}else if(C){if(D){y["content-type"]="application/x-www-form-urlencoded"}const{form:C}=u;u.form=undefined;u.body=new URLSearchParams(C).toString()}else{if(D){y["content-type"]="application/json"}const{json:C}=u;u.json=undefined;u.body=u.stringifyJson(C)}const $=await getBodySize(u.body,u.headers);if(Yo.undefined(y["content-length"])&&Yo.undefined(y["transfer-encoding"])&&!j&&!Yo.undefined($)){y["content-length"]=String($)}}if(u.responseType==="json"&&!("accept"in u.headers)){u.headers.accept="application/json"}this._bodySize=Number(y["content-length"])||undefined}async _onResponseBase(u){if(this.isAborted){return}const{options:y}=this;const{url:C}=y;this._nativeResponse=u;const D=u.statusCode;const{method:_}=y;const j=_==="HEAD"||D>=100&&D<200||D===204||D===205||D===304;if(y.decompress&&!j){if(y.strictContentLength){this._compressedBytesCount=0;this._nativeResponse.on("data",(u=>{this._compressedBytesCount+=byteLength(u)}))}u=decompressResponse(u)}const $=u;$.statusMessage=$.statusMessage||Zo.STATUS_CODES[D];$.url=y.url.toString();$.requestUrl=this.requestUrl;$.redirectUrls=this.redirectUrls;$.request=this;$.isFromCache=this._nativeResponse.fromCache??false;$.ip=this.ip;$.retryCount=this.retryCount;$.ok=isResponseOk($);this._isFromCache=$.isFromCache;this._responseSize=Number(u.headers["content-length"])||undefined;this.response=$;publishResponseStart({requestId:this._requestId,url:$.url,statusCode:D,headers:u.headers,isFromCache:$.isFromCache});u.once("error",(y=>{this._aborted=true;u.destroy();this._beforeError(new ReadError(y,this))}));u.once("aborted",(()=>{this._aborted=true;if(!this._checkContentLengthMismatch()){this._beforeError(new ReadError({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}}));const ne=u.headers["set-cookie"];if(Yo.object(y.cookieJar)&&ne){let u=ne.map((async u=>y.cookieJar.setCookie(u,C.toString())));if(y.ignoreInvalidCookies){u=u.map((async u=>{try{await u}catch{}}))}try{await Promise.all(u)}catch(u){this._beforeError(u);return}}if(this.isAborted){return}if(u.headers.location&&Kl.has(D)){const _=typeof y.followRedirect==="function"?y.followRedirect($):y.followRedirect;if(_){u.resume();this._cancelTimeouts();this._unproxyEvents();if(this.redirectUrls.length>=y.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}this._request=undefined;this._downloadedSize=0;const _=new Options(undefined,undefined,this.options);const j=D===303&&_.method!=="GET"&&_.method!=="HEAD";const ne=D!==307&&D!==308;const oe=_.methodRewriting&&ne;if(j||oe){_.method="GET";_.body=undefined;_.json=undefined;_.form=undefined;delete _.headers["content-length"]}try{const y=zs.Buffer.from(u.headers.location,"binary").toString();const j=new URL(y,C);if(!isUnixSocketURL(C)&&isUnixSocketURL(j)){this._beforeError(new RequestError("Cannot redirect to UNIX socket",{},this));return}const ne=j.hostname!==C.hostname||j.port!==C.port||getUnixSocketPath(C)!==getUnixSocketPath(j);if(ne){if("host"in _.headers){delete _.headers.host}if("cookie"in _.headers){delete _.headers.cookie}if("authorization"in _.headers){delete _.headers.authorization}if(_.username||_.password){_.username="";_.password=""}}else{j.username=_.username;j.password=_.password}this.redirectUrls.push(j);_.url=j;for(const u of _.hooks.beforeRedirect){await u(_,$)}publishRedirect({requestId:this._requestId,fromUrl:C.toString(),toUrl:j.toString(),statusCode:D});this.emit("redirect",_,$);this.options=_;await this._makeRequest()}catch(u){this._beforeError(u);return}return}}if(y.isStream&&y.throwHttpErrors&&!isResponseOk($)){this._beforeError(new HTTPError($));return}const oe=u!==this._nativeResponse;if(!j&&(!oe||y.strictContentLength)){const u=this._nativeResponse.headers["content-length"];if(u!==undefined){const y=Number(u);if(!Number.isNaN(y)&&y>=0){this._expectedContentLength=y}}}u.once("end",(()=>{if(this._checkContentLengthMismatch()){return}this._responseSize=this._downloadedSize;this.emit("downloadProgress",this.downloadProgress);publishResponseEnd({requestId:this._requestId,url:$.url,statusCode:D,bodySize:this._downloadedSize,timings:this.timings});this.push(null)}));this.emit("downloadProgress",this.downloadProgress);u.on("readable",(()=>{if(this._triggerRead){this._read()}}));this.on("resume",(()=>{u.resume()}));this.on("pause",(()=>{u.pause()}));if(this._noPipe){const y=await this._setRawBody();if(y){this.emit("response",u)}return}this.emit("response",u);for(const y of this._pipedServerResponses){if(y.headersSent){continue}const C=u!==this._nativeResponse;for(const D in u.headers){if(Object.hasOwn(u.headers,D)){const _=u.headers[D];if(C&&(D==="content-encoding"||D==="content-length")){continue}if(_!==undefined){y.setHeader(D,_)}}}y.statusCode=D}}async _setRawBody(u=this){if(u.readableEnded){return false}try{const y=await u.toArray();const C=isBuffer(y.at(0))?zs.Buffer.concat(y):zs.Buffer.from(y.join(""));if(!this.isAborted){this.response.rawBody=C;return true}}catch{}return false}async _onResponse(u){try{await this._onResponseBase(u)}catch(u){this._beforeError(u)}}_onRequest(u){const{options:y}=this;const{timeout:C,url:D}=y;publishRequestStart({requestId:this._requestId,url:D?.toString()??"",method:y.method,headers:y.headers});Cl(u);this._cancelTimeouts=timedOut(u,C,D);if(this.options.http2){u.removeAllListeners("timeout");u.once("socket",(u=>{u.removeAllListeners("timeout")}))}const _=y.cache?"cacheableResponse":"response";u.once(_,(u=>{void this._onResponse(u)}));u.once("error",(y=>{this._aborted=true;u.destroy();y=y instanceof timed_out_TimeoutError?new TimeoutError(y,this.timings,this):new RequestError(y.message,y,this);this._beforeError(y)}));this._unproxyEvents=proxyEvents(u,this,Xl);this._request=u;this.emit("uploadProgress",this.uploadProgress);this._sendBody();this.emit("request",u)}async _asyncWrite(u){return new Promise(((y,C)=>{super.write(u,(u=>{if(u){C(u);return}y()}))}))}_sendBody(){const{body:u}=this.options;const y=this.redirectUrls.length===0?this:this._request??this;if(Yo.nodeStream(u)){u.pipe(y)}else if(Yo.buffer(u)){this._writeRequest(u,undefined,(()=>{}));y.end()}else if(Yo.typedArray(u)){const C=u;const D=new Uint8Array(C.buffer,C.byteOffset,C.byteLength);this._writeRequest(D,undefined,(()=>{}));y.end()}else if(Yo.asyncIterable(u)||Yo.iterable(u)&&!Yo.string(u)&&!isBuffer(u)){(async()=>{try{for await(const y of u){await this._asyncWrite(y)}super.end()}catch(u){this._beforeError(u)}})()}else if(Yo.undefined(u)){const u=ql.has(this.options.method)&&!(this.options.method==="GET"&&this.options.allowGetBody);const C=Vl.has(this.options.method);if((this._noPipe??false)||u||y!==this||C){y.end()}}else{this._writeRequest(u,undefined,(()=>{}));y.end()}}_prepareCache(u){if(Jl.has(u)){return}const y=new Ya(((u,y)=>{const C=y?C=>{const{beforeCacheHooks:D,gotRequest:_}=u;if(!D||D.length===0){y(C);return}try{for(const u of D){const D=u(C);if(D===false){C.headers["cache-control"]="no-cache, no-store, must-revalidate";C.headers.pragma="no-cache";C.headers.expires="0";y(C);return}if(Yo.promise(D)){throw new TypeError("beforeCache hooks must be synchronous. The hook returned a Promise, but this hook must return synchronously. If you need async logic, use beforeRequest hook instead.")}if(D!==undefined){throw new TypeError("beforeCache hook must return false or undefined. To modify the response, mutate it directly.")}}}catch(u){if(_){_._beforeError(u instanceof RequestError?u:new RequestError(u.message,u,_));return}console.error("Got: beforeCache hook error (request context unavailable):",u);y(C);return}y(C)}:y;const D=u._request(u,C);if(Yo.promise(D)){D.once=(u,y)=>{if(u==="error"){(async()=>{try{await D}catch(u){y(u)}})()}else if(u==="abort"||u==="destroy"){(async()=>{try{const C=await D;C.once(u,y)}catch{}})()}else{throw new Error(`Unknown HTTP2 promise event: ${u}`)}return D}}return D}),u);Jl.set(u,y.request())}async _createCacheableRequest(u,y){return new Promise(((C,D)=>{Object.assign(y,urlToOptions(u));let _;const j=Jl.get(y.cache)(y,(async u=>{u._readableState.autoDestroy=false;if(_){const fix=()=>{if(u.req){u.complete=u.req.res.complete}else if(u.complete===undefined){u.complete=true}};u.prependOnceListener("end",fix);fix();(await _).emit("cacheableResponse",u)}C(u)}));j.once("error",D);j.once("request",(async u=>{_=u;C(_)}))}))}async _makeRequest(){const{options:u}=this;const{headers:y,username:C,password:D}=u;const _=u.cookieJar;for(const u in y){if(Yo.undefined(y[u])){delete y[u]}else if(Yo.null(y[u])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${u}\` header`)}}if(u.decompress&&Yo.undefined(y["accept-encoding"])){const u=["gzip","deflate"];if(zl){u.push("br")}if($l){u.push("zstd")}y["accept-encoding"]=u.join(", ")}if(C||D){const u=zs.Buffer.from(`${C}:${D}`).toString("base64");y.authorization=`Basic ${u}`}if(_){const C=await _.getCookieString(u.url.toString());if(Yo.nonEmptyString(C)){y.cookie=C}}let j;for(const y of u.hooks.beforeRequest){const C=await y(u,{retryCount:this.retryCount});if(!Yo.undefined(C)){j=()=>C;break}}j||=u.getRequestFunction();const $=u.url;this._requestOptions=u.createNativeRequestOptions();if(u.cache){this._requestOptions._request=j;this._requestOptions.cache=u.cache;this._requestOptions.body=u.body;this._requestOptions.beforeCacheHooks=u.hooks.beforeCache;this._requestOptions.gotRequest=this;try{this._prepareCache(u.cache)}catch(u){throw new CacheError(u,this)}}const ne=u.cache?this._createCacheableRequest:j;try{let y=ne($,this._requestOptions);if(Yo.promise(y)){y=await y}if(Yo.undefined(y)){y=u.getFallbackRequestFunction()($,this._requestOptions);if(Yo.promise(y)){y=await y}}if(Gl(y)){this._onRequest(y)}else if(this.writableEnded){void this._onResponse(y)}else{this.once("finish",(()=>{void this._onResponse(y)}));this._sendBody()}}catch(u){if(u instanceof types_CacheError){throw new CacheError(u,this)}throw u}}async _error(u){try{if(this.options&&u instanceof HTTPError&&!this.options.throwHttpErrors){}else if(this.options){const y=this.options.hooks.beforeError;if(y.length>0){for(const C of y){u=await C(u);if(!(u instanceof Error)){throw new TypeError(`The \`beforeError\` hook must return an Error instance. Received ${Yo.string(u)?"string":String(typeof u)}.`)}}if(!(u instanceof RequestError)){Yl.add(u)}}}}catch(y){u=new RequestError(y.message,y,this)}publishError({requestId:this._requestId,url:this.options?.url?.toString()??"",error:u,timings:this.timings});this.destroy(u);if(this._noPipe){un.nextTick((()=>{this.emit("error",u)}))}}_writeRequest(u,y,C){if(!this._request||this._request.destroyed){C();return}this._request.write(u,y,(D=>{if(!D&&!this._request.destroyed){const C=typeof u==="string"?zs.Buffer.from(u,y):u;this._uploadedSize+=byteLength(C);const D=this.uploadProgress;if(D.percent<1){this.emit("uploadProgress",D)}}C(D)}))}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??undefined}get downloadProgress(){let u;if(this._responseSize){u=this._downloadedSize/this._responseSize}else if(this._responseSize===this._downloadedSize){u=1}else{u=0}return{percent:u,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let u;if(this._bodySize){u=this._uploadedSize/this._bodySize}else if(this._bodySize===this._uploadedSize){u=1}else{u=0}return{percent:u,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}get isReadonly(){return!Yo.undefined(this.options?.body)||!Yo.undefined(this.options?.json)||!Yo.undefined(this.options?.form)}}class types_CancelError extends RequestError{constructor(u){super("Promise was canceled",{},u);this.name="CancelError";this.code="ERR_CANCELED"}get isCanceled(){return true}}const Zl=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(u){let y;let C;let D;const _=new Tt.EventEmitter;let j=false;const $=new PCancelable(((ne,oe,le)=>{le((()=>{y.destroy()}));le.shouldReject=false;le((()=>{j=true;oe(new types_CancelError(y))}));const makeRequest=de=>{le((()=>{}));const Ae=u??new Request(undefined,undefined,D);Ae.retryCount=de;Ae._noPipe=true;y=Ae;Ae.once("response",(async u=>{const y=(u.headers["content-encoding"]??"").toLowerCase();const D=y==="gzip"||y==="deflate"||y==="br"||y==="zstd";const{options:_}=Ae;if(D&&!_.decompress){u.body=u.rawBody}else{try{u.body=parseBody(u,_.responseType,_.parseJson,_.encoding)}catch(y){try{u.body=u.rawBody.toString()}catch(y){Ae._beforeError(new ParseError(y,u));return}if(isResponseOk(u)){Ae._beforeError(y);return}}}try{const y=_.hooks.afterResponse;for(const[C,D]of y.entries()){u=await D(u,(async u=>{const y=u.preserveHooks??false;_.merge(u);_.prefixUrl="";if(u.url){_.url=u.url}if(!y){_.hooks.afterResponse=_.hooks.afterResponse.slice(0,C)}throw new RetryError(Ae)}));if(!(Yo.object(u)&&Yo.number(u.statusCode)&&"body"in u)){throw new TypeError("The `afterResponse` hook returned an invalid value")}}}catch(u){Ae._beforeError(u);return}C=u;if(!isResponseOk(u)){Ae._beforeError(new HTTPError(u));return}Ae.destroy();j=true;ne(Ae.options.resolveBodyOnly?u.body:u)}));let pe=false;const onError=u=>{if($.isCanceled){return}if(!Ae._stopReading){Ae._beforeError(u);return}if(pe){return}pe=true;j=true;const{options:y}=Ae;if(u instanceof HTTPError&&!y.throwHttpErrors){const{response:y}=u;Ae.destroy();ne(Ae.options.resolveBodyOnly?y.body:y);return}oe(u)};Ae.on("error",onError);const Ee=Ae.options?.body;Ae.once("retry",((y,C)=>{u=undefined;if(j){return}const _=Ae.options.body;if(Ee===_&&Yo.nodeStream(_)){C.message="Cannot retry with consumed body stream";onError(C);return}D=Ae.options;makeRequest(y)}));proxyEvents(Ae,_,Zl);if(Yo.undefined(u)){void Ae.flush()}};makeRequest(0)}));$.on=(u,y)=>{_.on(u,y);return $};$.off=(u,y)=>{_.off(u,y);return $};const shortcut=(u,y)=>{const D=(async()=>{await u;const{options:D}=C.request;return parseBody(C,y,D.parseJson,D.encoding)})();Object.defineProperties(D,Object.getOwnPropertyDescriptors(u));return D};$.json=function(){if(y.options){const{headers:u}=y.options;if(!y.writableFinished&&!("accept"in u)){u.accept="application/json"}}return shortcut(this,"json")};$.buffer=function(){return shortcut(this,"buffer")};$.text=function(){return shortcut(this,"text")};return $}const isGotInstance=u=>Yo.function(u);const tc=["get","post","put","patch","head","delete"];const create=u=>{u={options:new Options(undefined,undefined,u.options),handlers:[...u.handlers],mutableDefaults:u.mutableDefaults};Object.defineProperty(u,"mutableDefaults",{enumerable:true,configurable:false,writable:false});const got=(y,C,D=u.options)=>{const _=new Request(y,C,D);let j;const lastHandler=u=>{_.options=u;_._noPipe=!u?.isStream;void _.flush();if(u?.isStream){return _}j||=asPromise(_);return j};let $=0;const iterateHandlers=y=>{const C=u.handlers[$++]??lastHandler;const D=C(y,iterateHandlers);if(Yo.promise(D)&&!_.options?.isStream){j||=asPromise(_);if(D!==j){const u=Object.getOwnPropertyDescriptors(j);for(const y in u){if(y in D){delete u[y]}}Object.defineProperties(D,u);D.cancel=j.cancel}}return D};return iterateHandlers(_.options)};got.extend=(...y)=>{const C=new Options(undefined,undefined,u.options);const D=[...u.handlers];let _;for(const u of y){if(isGotInstance(u)){C.merge(u.defaults.options);D.push(...u.defaults.handlers);_=u.defaults.mutableDefaults}else{C.merge(u);if(u.handlers){D.push(...u.handlers)}_=u.mutableDefaults}}return create({options:C,handlers:D,mutableDefaults:Boolean(_)})};const paginateEach=async function*(y,C){let D=new Options(y,C,u.options);D.resolveBodyOnly=false;const{pagination:_}=D;Vo.function(_.transform);Vo.function(_.shouldContinue);Vo.function(_.filter);Vo.function(_.paginate);Vo.number(_.countLimit);Vo.number(_.requestLimit);Vo.number(_.backoff);const j=[];let{countLimit:$}=_;let ne=0;while(ne<_.requestLimit){if(ne!==0){await(0,Mi.setTimeout)(_.backoff)}const u=await got(undefined,undefined,D);const y=await _.transform(u);const C=[];Vo.array(y);for(const u of y){if(_.filter({item:u,currentItems:C,allItems:j})){if(!_.shouldContinue({item:u,currentItems:C,allItems:j})){return}yield u;if(_.stackAllItems){j.push(u)}C.push(u);if(--$<=0){return}}}const oe=_.paginate({response:u,currentItems:C,allItems:j});if(oe===false){return}if(oe===u.request.options){D=u.request.options}else{D.merge(oe);try{Vo.any([Yo.urlInstance,Yo.undefined],oe.url)}catch(u){if(u instanceof Error){u.message=`Option 'pagination.paginate.url': ${u.message}`}throw u}if(oe.url!==undefined){D.prefixUrl="";D.url=oe.url}}ne++}};got.paginate=paginateEach;got.paginate.all=async(u,y)=>{const C=[];for await(const D of paginateEach(u,y)){C.push(D)}return C};got.paginate.each=paginateEach;got.stream=(u,y)=>got(u,{...y,isStream:true});for(const u of tc){got[u]=(y,C)=>got(y,{...C,method:u});got.stream[u]=(y,C)=>got(y,{...C,method:u,isStream:true})}if(!u.mutableDefaults){Object.freeze(u.handlers);u.options.freeze()}Object.defineProperty(got,"defaults",{value:u,writable:false,configurable:false,enumerable:true});return got};const ac=create;const lc={options:new Options,handlers:[],mutableDefaults:false};const uc=ac(lc);const fc=uc;var dc=C(887);const hc=Zr.homedir();const{env:gc}=process;const bc=gc.XDG_DATA_HOME||(hc?j.join(hc,".local","share"):undefined);const vc=gc.XDG_CONFIG_HOME||(hc?j.join(hc,".config"):undefined);const wc=gc.XDG_STATE_HOME||(hc?j.join(hc,".local","state"):undefined);const Sc=gc.XDG_CACHE_HOME||(hc?j.join(hc,".cache"):undefined);const kc=gc.XDG_RUNTIME_DIR||undefined;const Qc=(gc.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");if(bc){Qc.unshift(bc)}const xc=(gc.XDG_CONFIG_DIRS||"/etc/xdg").split(":");if(vc){xc.unshift(vc)}const{mkdir:_c,createWriteStream:Rc,move:Lc}=Oo;const Nc=(0,xt.dirname)((0,vt.fileURLToPath)(import.meta.url));const Pc=`microsoft/ripgrep-prebuilt`;const Oc=process.env.RIPGREP_VERSION||"v13.0.0-10";const Mc=(0,xt.join)(Nc,"../bin");const getTarget=()=>{const u=process.env.npm_config_arch||Hi.arch();const y=process.env.platform||Hi.platform();switch(y){case"darwin":switch(u){case"arm64":return"aarch64-apple-darwin.tar.gz";default:return"x86_64-apple-darwin.tar.gz"}case"win32":switch(u){case"x64":return"x86_64-pc-windows-msvc.zip";case"arm":return"aarch64-pc-windows-msvc.zip";default:return"i686-pc-windows-msvc.zip"}case"linux":switch(u){case"x64":return"x86_64-unknown-linux-musl.tar.gz";case"arm":case"armv7l":return"arm-unknown-linux-gnueabihf.tar.gz";case"arm64":return"aarch64-unknown-linux-gnu.tar.gz";case"ppc64":return"powerpc64le-unknown-linux-gnu.tar.gz";case"s390x":return"s390x-unknown-linux-gnu.tar.gz";default:return"i686-unknown-linux-musl.tar.gz"}default:throw new VError("Unknown platform: "+y)}};const downloadFile=async(u,y)=>{let C=undefined;try{C=await Oo.mkdtemp(j.join(Hi.tmpdir(),"download-ripgrep"));const D=j.join(C,"tmp-file");await(0,Ys.pipeline)(fc.stream(u),Rc(D));await _c((0,xt.dirname)(y),{recursive:true});await Lc(D,y)}catch(y){throw new VError(y,`Failed to download "${u}"`)}finally{if(C){await Oo.rm(C,{recursive:true,force:true})}}};const unzip=async(u,y)=>{try{await _c(y,{recursive:true});await Po(u,{dir:y})}catch(y){throw new VError(y,`Failed to unzip "${u}"`)}};const untarGz=async(u,y)=>{try{await _c(y,{recursive:true});await So("tar",["xvf",u,"-C",y])}catch(y){throw new VError(y,`Failed to extract "${u}"`)}};const downloadRipGrep=async u=>{const y=getTarget();const C=`https://github.com/${Pc}/releases/download/${Oc}/ripgrep-${Oc}-${y}`;const D=`${Sc}/vscode-ripgrep/ripgrep-${Oc}-${y}`;const _=u??Mc;if(!await(0,dc.s)(D)){await downloadFile(C,D)}else{console.info(`File ${D} has been cached`)}if(D.endsWith(".tar.gz")){await untarGz(D,_)}else if(D.endsWith(".zip")){await unzip(D,_)}else{throw new VError(`Invalid downloadPath ${D}`)}};const Wc=(0,xt.dirname)((0,vt.fileURLToPath)(import.meta.url));const jc=(0,xt.join)(Wc,"..","bin",`rg${process.platform==="win32"?".exe":""}`);const escapeRegex=u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const readGitignorePatterns=async()=>{try{const u=C.ab+"cli_executor/"+oe.$.WORKSPACE_DIR+"/.gitignore";const y=await(0,ne.readFile)(u,"utf-8");return y.split("\n").filter((u=>u.trim()&&!u.trim().startsWith("#"))).map((u=>u.trim())).map((u=>u.endsWith("/")?`${u}**`:u)).filter((u=>!u.startsWith(".codegen")))}catch{return[]}};const buildMatcher=(u,y,C)=>{const D=y?escapeRegex(u):u;const _=C?"g":"gi";return new RegExp(D,_)};const searchTextFallback=async u=>{const{pattern:y,dir_path:C=".",include:D,case_sensitive:_=false,fixed_strings:j,context:le}=u;const de=$().resolve(oe.$.WORKSPACE_DIR,C);const Ae=await readGitignorePatterns();const pe=await Yr(D||"**/*",{cwd:de,absolute:true,nodir:true,dot:false,ignore:Ae,nocase:!_});const Ee=buildMatcher(y,j,_);const Ce=[];for(const u of pe){let y;try{y=await(0,ne.readFile)(u,"utf-8")}catch{continue}const C=y.split(/\r?\n/);for(let y=0;y<C.length;y++){const D=C[y];if(D===undefined)continue;Ee.lastIndex=0;if(!Ee.test(D))continue;const _=le?Math.max(0,y-le):y;const j=le?Math.min(C.length-1,y+le):y;for(let y=_;y<=j;y++){const D=C[y];if(D===undefined)continue;Ce.push({file:$().relative(oe.$.WORKSPACE_DIR,u),line:y+1,content:D})}y=j}}return{matches:Ce}};const withSuppressedConsoleInfo=async u=>{const y=console.info;try{console.info=()=>{};return await u()}finally{console.info=y}};const ensureRipgrepAvailable=async()=>{try{const u=_t().mkdtempSync($().join(en().tmpdir(),"ripgrep-"));await withSuppressedConsoleInfo((()=>downloadRipGrep(u)));return $().join(u,"rg")}catch(u){return null}};const SearchText=async u=>{if(oe.$.DISABLE_RIPGREP){return await searchTextFallback(u)}const y=await ensureRipgrepAvailable();if(!y){return await searchTextFallback(u)}const{pattern:C,dir_path:D=".",include:_,case_sensitive:j,fixed_strings:ne,context:le}=u;const de=$().resolve(oe.$.WORKSPACE_DIR,D);const Ae=["--json"];if(!j){Ae.push("--ignore-case")}if(ne){Ae.push("--fixed-strings");Ae.push(C)}else{Ae.push("--regexp",C)}if(le){Ae.push("--context",le.toString())}if(_){Ae.push("--glob",_)}Ae.push(de);try{const u=await new Promise(((u,C)=>{const D=(0,Xr.spawn)(y,Ae,{windowsHide:true});const _=[];const j=[];D.stdout.on("data",(u=>_.push(u)));D.stderr.on("data",(u=>j.push(u)));D.on("error",(u=>C(u)));D.on("close",(y=>{if(y===0){u(Buffer.concat(_).toString("utf8"))}else if(y===1){u("")}else{C(new Error(`ripgrep exited with code ${y}: ${Buffer.concat(j).toString("utf8")}`))}}))}));const C=u.trim().split("\n").map((u=>{try{const y=JSON.parse(u);if(y.type==="match"){const u=y.data;return{file:$().relative(oe.$.WORKSPACE_DIR,u.path.text),line:u.line_number,content:u.lines.text.trimEnd()}}}catch{}return null})).filter(Boolean);return{matches:C}}catch{return await searchTextFallback(u)}};const WriteFile=async u=>{const{file_path:y,content:C}=u;if(!y){return{error:"Missing parameter: file_path must be provided."}}if(C===undefined){return{error:"Missing parameter: content must be provided."}}try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);const D=$().dirname(u);await(0,ne.mkdir)(D,{recursive:true});await(0,ne.writeFile)(u,C,"utf-8");return{success:true}}catch(u){return{error:u.message}}};const Edit=async u=>{const{file_path:y,old_string:C,new_string:D,expected_replacements:_=1}=u;if(!y){return{error:"Missing parameter: file_path must be provided."}}if(C===undefined){return{error:"Missing parameter: old_string must be provided."}}if(D===undefined){return{error:"Missing parameter: new_string must be provided."}}try{const u=$().resolve(oe.$.WORKSPACE_DIR,y);let j="";try{j=await(0,ne.readFile)(u,"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}}const le=new RegExp(C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");let de=0;const Ae=j.replace(le,(()=>{de++;return D}));if(de!==_){return{error:`Expected ${_} replacements, but made ${de}.`}}await(0,ne.writeFile)(u,Ae,"utf-8");return{success:true,replacementsMade:de}}catch(u){return{error:u.message}}};const ReadManyFiles=async u=>{const{include:y,exclude:C=[]}=u;if(!y||y.length===0){return{error:"Missing parameter: include must be provided."}}try{const u=await Yr(y,{cwd:oe.$.WORKSPACE_DIR,ignore:C,nodir:true,absolute:true});let D="";for(const y of u){const u=await(0,ne.readFile)(y,"utf-8");D+=`--- ${$().relative(oe.$.WORKSPACE_DIR,y)} ---\n\n${u}\n\n`}D+="--- End of content ---";return{content:D}}catch(u){return{error:u.message}}};const SaveMemory=async u=>{const{fact:y}=u;if(!y){return{error:"Missing parameter: fact must be provided."}}const C=$().join(en().homedir(),".gemini","GEMINI.md");const D="## Gemini Added Memories";try{await _t().promises.mkdir($().dirname(C),{recursive:true});let u="";try{u=await(0,ne.readFile)(C,"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}}const _=`- ${y.trim()}`;let j="";if(u.includes(D)){j=u.replace(D,`${D}\n${_}`)}else{j=`${u}\n\n${D}\n${_}\n`}await(0,ne.writeFile)(C,j,"utf-8");return{success:true}}catch(u){return{error:u.message}}};var Vc;(function(u){u["Root"]="root";u["Text"]="text";u["Directive"]="directive";u["Comment"]="comment";u["Script"]="script";u["Style"]="style";u["Tag"]="tag";u["CDATA"]="cdata";u["Doctype"]="doctype"})(Vc||(Vc={}));function esm_isTag(u){return u.type===Vc.Tag||u.type===Vc.Script||u.type===Vc.Style}const Jc=Vc.Root;const Kc=Vc.Text;const Yc=Vc.Directive;const Xc=Vc.Comment;const eu=Vc.Script;const tu=Vc.Style;const ru=Vc.Tag;const nu=Vc.CDATA;const iu=Vc.Doctype;class Node{constructor(){this.parent=null;this.prev=null;this.next=null;this.startIndex=null;this.endIndex=null}get parentNode(){return this.parent}set parentNode(u){this.parent=u}get previousSibling(){return this.prev}set previousSibling(u){this.prev=u}get nextSibling(){return this.next}set nextSibling(u){this.next=u}cloneNode(u=false){return cloneNode(this,u)}}class DataNode extends Node{constructor(u){super();this.data=u}get nodeValue(){return this.data}set nodeValue(u){this.data=u}}class node_Text extends DataNode{constructor(){super(...arguments);this.type=Vc.Text}get nodeType(){return 3}}class node_Comment extends DataNode{constructor(){super(...arguments);this.type=Vc.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(u,y){super(y);this.name=u;this.type=Vc.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node{constructor(u){super();this.children=u}get firstChild(){var u;return(u=this.children[0])!==null&&u!==void 0?u:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(u){this.children=u}}class node_CDATA extends NodeWithChildren{constructor(){super(...arguments);this.type=Vc.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments);this.type=Vc.Root}get nodeType(){return 9}}class Element extends NodeWithChildren{constructor(u,y,C=[],D=(u==="script"?Vc.Script:u==="style"?Vc.Style:Vc.Tag)){super(C);this.name=u;this.attribs=y;this.type=D}get nodeType(){return 1}get tagName(){return this.name}set tagName(u){this.name=u}get attributes(){return Object.keys(this.attribs).map((u=>{var y,C;return{name:u,value:this.attribs[u],namespace:(y=this["x-attribsNamespace"])===null||y===void 0?void 0:y[u],prefix:(C=this["x-attribsPrefix"])===null||C===void 0?void 0:C[u]}}))}}function node_isTag(u){return esm_isTag(u)}function node_isCDATA(u){return u.type===Vc.CDATA}function node_isText(u){return u.type===Vc.Text}function node_isComment(u){return u.type===Vc.Comment}function isDirective(u){return u.type===Vc.Directive}function isDocument(u){return u.type===Vc.Root}function node_hasChildren(u){return Object.prototype.hasOwnProperty.call(u,"children")}function cloneNode(u,y=false){let C;if(node_isText(u)){C=new node_Text(u.data)}else if(node_isComment(u)){C=new node_Comment(u.data)}else if(node_isTag(u)){const D=y?cloneChildren(u.children):[];const _=new Element(u.name,{...u.attribs},D);D.forEach((u=>u.parent=_));if(u.namespace!=null){_.namespace=u.namespace}if(u["x-attribsNamespace"]){_["x-attribsNamespace"]={...u["x-attribsNamespace"]}}if(u["x-attribsPrefix"]){_["x-attribsPrefix"]={...u["x-attribsPrefix"]}}C=_}else if(node_isCDATA(u)){const D=y?cloneChildren(u.children):[];const _=new node_CDATA(D);D.forEach((u=>u.parent=_));C=_}else if(isDocument(u)){const D=y?cloneChildren(u.children):[];const _=new Document(D);D.forEach((u=>u.parent=_));if(u["x-mode"]){_["x-mode"]=u["x-mode"]}C=_}else if(isDirective(u)){const y=new ProcessingInstruction(u.name,u.data);if(u["x-name"]!=null){y["x-name"]=u["x-name"];y["x-publicId"]=u["x-publicId"];y["x-systemId"]=u["x-systemId"]}C=y}else{throw new Error(`Not implemented yet: ${u.type}`)}C.startIndex=u.startIndex;C.endIndex=u.endIndex;if(u.sourceCodeLocation!=null){C.sourceCodeLocation=u.sourceCodeLocation}return C}function cloneChildren(u){const y=u.map((u=>cloneNode(u,true)));for(let u=1;u<y.length;u++){y[u].prev=y[u-1];y[u-1].next=y[u]}return y}const su={withStartIndices:false,withEndIndices:false,xmlMode:false};class esm_DomHandler{constructor(u,y,C){this.dom=[];this.root=new Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null;if(typeof y==="function"){C=y;y=su}if(typeof u==="object"){y=u;u=undefined}this.callback=u!==null&&u!==void 0?u:null;this.options=y!==null&&y!==void 0?y:su;this.elementCB=C!==null&&C!==void 0?C:null}onparserinit(u){this.parser=u}onreset(){this.dom=[];this.root=new Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null}onend(){if(this.done)return;this.done=true;this.parser=null;this.handleCallback(null)}onerror(u){this.handleCallback(u)}onclosetag(){this.lastNode=null;const u=this.tagStack.pop();if(this.options.withEndIndices){u.endIndex=this.parser.endIndex}if(this.elementCB)this.elementCB(u)}onopentag(u,y){const C=this.options.xmlMode?Vc.Tag:undefined;const D=new Element(u,y,undefined,C);this.addNode(D);this.tagStack.push(D)}ontext(u){const{lastNode:y}=this;if(y&&y.type===Vc.Text){y.data+=u;if(this.options.withEndIndices){y.endIndex=this.parser.endIndex}}else{const y=new node_Text(u);this.addNode(y);this.lastNode=y}}oncomment(u){if(this.lastNode&&this.lastNode.type===Vc.Comment){this.lastNode.data+=u;return}const y=new node_Comment(u);this.addNode(y);this.lastNode=y}oncommentend(){this.lastNode=null}oncdatastart(){const u=new node_Text("");const y=new node_CDATA([u]);this.addNode(y);u.parent=y;this.lastNode=u}oncdataend(){this.lastNode=null}onprocessinginstruction(u,y){const C=new ProcessingInstruction(u,y);this.addNode(C)}handleCallback(u){if(typeof this.callback==="function"){this.callback(u,this.dom)}else if(u){throw u}}addNode(u){const y=this.tagStack[this.tagStack.length-1];const C=y.children[y.children.length-1];if(this.options.withStartIndices){u.startIndex=this.parser.startIndex}if(this.options.withEndIndices){u.endIndex=this.parser.endIndex}y.children.push(u);if(C){u.prev=C;C.next=u}u.parent=y;this.lastNode=null}}const ou=null&&esm_DomHandler;const au=/\n/g;function leac_n(u){const y=[...u.matchAll(au)].map((u=>u.index||0));y.unshift(-1);const C=t(y,0,y.length);return u=>r(C,u)}function t(u,y,C){if(C-y==1)return{offset:u[y],index:y+1};const D=Math.ceil((y+C)/2),_=t(u,y,D),j=t(u,D,C);return{offset:_.offset,low:_,high:j}}function r(u,y){return function(u){return Object.prototype.hasOwnProperty.call(u,"index")}(u)?{line:u.index,column:y-u.offset}:r(u.high.offset<y?u.high:u.low,y)}function leac_o(u,y="",C={}){const D="string"!=typeof y?y:C,_="string"==typeof y?y:"",j=u.map(s),$=!!D.lineNumbers;return function(u,y=0){const C=$?leac_n(u):()=>({line:0,column:0});let D=y;const ne=[];e:for(;D<u.length;){let y=!1;for(const $ of j){$.regex.lastIndex=D;const j=$.regex.exec(u);if(j&&j[0].length>0){if(!$.discard){const u=C(D),y="string"==typeof $.replace?j[0].replace(new RegExp($.regex.source,$.regex.flags),$.replace):j[0];ne.push({state:_,name:$.name,text:y,offset:D,len:j[0].length,line:u.line,column:u.column})}if(D=$.regex.lastIndex,y=!0,$.push){const y=$.push(u,D);ne.push(...y.tokens),D=y.offset}if($.pop)break e;break}}if(!y)break}return{tokens:ne,offset:D,complete:u.length<=D}}}function s(u,y){return{...u,regex:l(u,y)}}function l(u,y){if(0===u.name.length)throw new Error(`Rule #${y} has empty name, which is not allowed.`);if(function(u){return Object.prototype.hasOwnProperty.call(u,"regex")}(u))return function(u){if(u.global)throw new Error(`Regular expression /${u.source}/${u.flags} contains the global flag, which is not allowed.`);return u.sticky?u:new RegExp(u.source,u.flags+"y")}(u.regex);if(function(u){return Object.prototype.hasOwnProperty.call(u,"str")}(u)){if(0===u.str.length)throw new Error(`Rule #${y} ("${u.name}") has empty "str" property, which is not allowed.`);return new RegExp(leac_c(u.str),"y")}return new RegExp(leac_c(u.name),"y")}function leac_c(u){return u.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function emit(u){return(y,C)=>({matched:true,position:C,value:u})}function make(u){return(y,C)=>({matched:true,position:C,value:u(y,C)})}function action(u){return(y,C)=>{u(y,C);return{matched:true,position:C,value:null}}}function fail(u,y){return{matched:false}}function error(u){return(y,C)=>{throw new Error(u instanceof Function?u(y,C):u)}}function token(u,y){return(C,D)=>{let _=D;let j=undefined;if(D<C.tokens.length){j=u(C.tokens[D],C,D);if(j!==undefined){_++}}else{y?.(C,D)}return j===undefined?{matched:false}:{matched:true,position:_,value:j}}}function any(u,y){return y<u.tokens.length?{matched:true,position:y+1,value:u.tokens[y]}:{matched:false}}function satisfy(u){return(y,C)=>C<y.tokens.length&&u(y.tokens[C],y,C)?{matched:true,position:C+1,value:y.tokens[C]}:{matched:false}}function mapInner(u,y){return u.matched?{matched:true,position:u.position,value:y(u.value,u.position)}:u}function mapOuter(u,y){return u.matched?y(u):u}function map(u,y){return(C,D)=>mapInner(u(C,D),((u,_)=>y(u,C,D,_)))}function map1(u,y){return(C,D)=>mapOuter(u(C,D),(u=>y(u,C,D)))}function peek(u,y){return(C,D)=>{const _=u(C,D);y(_,C,D);return _}}function core_option(u,y){return(C,D)=>{const _=u(C,D);return _.matched?_:{matched:true,position:D,value:y}}}function not(u){return(y,C)=>{const D=u(y,C);return D.matched?{matched:false}:{matched:true,position:C,value:true}}}function choice(...u){return(y,C)=>{for(const D of u){const u=D(y,C);if(u.matched){return u}}return{matched:false}}}function otherwise(u,y){return(C,D)=>{const _=u(C,D);return _.matched?_:y(C,D)}}function longest(...u){return(y,C)=>{let D=undefined;for(const _ of u){const u=_(y,C);if(u.matched&&(!D||D.position<u.position)){D=u}}return D||{matched:false}}}function takeWhile(u,y){return(C,D)=>{const _=[];let j=true;do{const $=u(C,D);if($.matched&&y($.value,_.length+1,C,D,$.position)){_.push($.value);D=$.position}else{j=false}}while(j);return{matched:true,position:D,value:_}}}function takeUntil(u,y){return takeWhile(u,((u,C,D,_,j)=>!y(u,C,D,_,j)))}function takeWhileP(u,y){return takeWhile(u,((u,C,D,_)=>y(D,_).matched))}function takeUntilP(u,y){return takeWhile(u,((u,C,D,_)=>!y(D,_).matched))}function many(u){return takeWhile(u,(()=>true))}function many1(u){return ab(u,many(u),((u,y)=>[u,...y]))}function ab(u,y,C){return(D,_)=>mapOuter(u(D,_),(u=>mapInner(y(D,u.position),((y,j)=>C(u.value,y,D,_,j)))))}function left(u,y){return ab(u,y,(u=>u))}function right(u,y){return ab(u,y,((u,y)=>y))}function abc(u,y,C,D){return(_,j)=>mapOuter(u(_,j),(u=>mapOuter(y(_,u.position),(y=>mapInner(C(_,y.position),((C,$)=>D(u.value,y.value,C,_,j,$)))))))}function middle(u,y,C){return abc(u,y,C,((u,y)=>y))}function core_all(...u){return(y,C)=>{const D=[];let _=C;for(const C of u){const u=C(y,_);if(u.matched){D.push(u.value);_=u.position}else{return{matched:false}}}return{matched:true,position:_,value:D}}}function skip(...u){return map(core_all(...u),(()=>null))}function flatten(...u){return flatten1(core_all(...u))}function flatten1(u){return map(u,(u=>u.flatMap((u=>u))))}function sepBy1(u,y){return ab(u,many(right(y,u)),((u,y)=>[u,...y]))}function sepBy(u,y){return otherwise(sepBy1(u,y),emit([]))}function chainReduce(u,y){return(C,D)=>{let _=true;let j=u;let $=D;do{const u=y(j,C,$)(C,$);if(u.matched){j=u.value;$=u.position}else{_=false}}while(_);return{matched:true,position:$,value:j}}}function reduceLeft(u,y,C){return chainReduce(u,(u=>map(y,((y,D,_,j)=>C(u,y,D,_,j)))))}function reduceRight(u,y,C){return map(many(u),((u,D,_,j)=>u.reduceRight(((u,y)=>C(y,u,D,_,j)),y)))}function leftAssoc1(u,y){return chain(u,(u=>reduceLeft(u,y,((u,y)=>y(u)))))}function rightAssoc1(u,y){return ab(reduceRight(u,(u=>u),((u,y)=>C=>u(y(C)))),y,((u,y)=>u(y)))}function leftAssoc2(u,y,C){return chain(u,(u=>reduceLeft(u,ab(y,C,((u,y)=>[u,y])),((u,[y,C])=>y(u,C)))))}function rightAssoc2(u,y,C){return ab(reduceRight(ab(u,y,((u,y)=>[u,y])),(u=>u),(([u,y],C)=>D=>y(u,C(D)))),C,((u,y)=>u(y)))}function condition(u,y,C){return(D,_)=>u(D,_)?y(D,_):C(D,_)}function decide(u){return(y,C)=>mapOuter(u(y,C),(u=>u.value(y,u.position)))}function chain(u,y){return(C,D)=>mapOuter(u(C,D),(u=>y(u.value,C,D,u.position)(C,u.position)))}function ahead(u){return(y,C)=>mapOuter(u(y,C),(u=>({matched:true,position:C,value:u.value})))}function recursive(u){return function(y,C){return u()(y,C)}}function start(u,y){return y!==0?{matched:false}:{matched:true,position:y,value:true}}function end(u,y){return y<u.tokens.length?{matched:false}:{matched:true,position:y,value:true}}function remainingTokensNumber(u,y){return u.tokens.length-y}function parserPosition(u,y,C,D=3){const _=u.tokens.length;const j=clamp(0,y-D,_-D);const $=clamp(D,y+1+D,_);const ne=u.tokens.slice(j,$);const oe=[];const le=String($-1).length+1;if(y<0){oe.push(`${String(y).padStart(le)} >>`)}if(0<j){oe.push("...".padStart(le+6))}for(let u=0;u<ne.length;u++){const D=j+u;oe.push(`${String(D).padStart(le)} ${D===y?">":" "} ${escapeWhitespace(C(ne[u]))}`)}if($<_){oe.push("...".padStart(le+6))}if(_<=y){oe.push(`${String(y).padStart(le)} >>`)}return oe.join("\n")}function parse(u,y,C,D=JSON.stringify){const _={tokens:y,options:C};const j=u(_,0);if(!j.matched){throw new Error("No match")}if(j.position<_.tokens.length){throw new Error(`Partial match. Parsing stopped at:\n${parserPosition(_,j.position,D)}`)}return j.value}function tryParse(u,y,C){const D=u({tokens:y,options:C},0);return D.matched?D.value:undefined}function core_match(u,y,C){const D=u({tokens:y,options:C},0);return D.value}var lu=Object.freeze({__proto__:null});const cu=`(?:[ \\t\\r\\n\\f]*)`;const uu=`(?:\\n|\\r\\n|\\r|\\f)`;const fu=`[^\\x00-\\x7F]`;const du=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`;const Au=`(?:\\\\[^\\n\\r\\f0-9a-f])`;const hu=`(?:[_a-z]|${fu}|${du}|${Au})`;const pu=`(?:[_a-z0-9-]|${fu}|${du}|${Au})`;const gu=`(?:${pu}+)`;const mu=`(?:[-]?${hu}${pu}*)`;const yu=`'([^\\n\\r\\f\\\\']|\\\\${uu}|${fu}|${du}|${Au})*'`;const Eu=`"([^\\n\\r\\f\\\\"]|\\\\${uu}|${fu}|${du}|${Au})*"`;const Cu=leac_o([{name:"ws",regex:new RegExp(cu)},{name:"hash",regex:new RegExp(`#${gu}`,"i")},{name:"ident",regex:new RegExp(mu,"i")},{name:"str1",regex:new RegExp(yu,"i")},{name:"str2",regex:new RegExp(Eu,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]);const Iu=leac_o([{name:"unicode",regex:new RegExp(du,"i")},{name:"escape",regex:new RegExp(Au,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([u,y,C],[D,_,j]){return[u+D,y+_,C+j]}function sumAllSpec(u){return u.reduce(sumSpec,[0,0,0])}const bu=token((u=>u.name==="unicode"?String.fromCodePoint(parseInt(u.text.slice(1),16)):undefined));const vu=token((u=>u.name==="escape"?u.text.slice(1):undefined));const wu=token((u=>u.name==="any"?u.text:undefined));const Bu=map(many(choice(bu,vu,wu)),(u=>u.join("")));function parseley_unescape(u){const y=Iu(u);const C=Bu({tokens:y.tokens,options:undefined},0);return C.value}function literal(u){return token((y=>y.name===u?true:undefined))}const Du=token((u=>u.name==="ws"?null:undefined));const Su=core_option(Du,null);function optionallySpaced(u){return middle(Su,u,Su)}const ku=token((u=>u.name==="ident"?parseley_unescape(u.text):undefined));const Qu=token((u=>u.name==="hash"?parseley_unescape(u.text.slice(1)):undefined));const xu=token((u=>u.name.startsWith("str")?parseley_unescape(u.text.slice(1,-1)):undefined));const Fu=left(core_option(ku,""),literal("|"));const _u=otherwise(ab(Fu,ku,((u,y)=>({name:y,namespace:u}))),map(ku,(u=>({name:u,namespace:null}))));const Ru=otherwise(ab(Fu,literal("*"),(u=>({type:"universal",namespace:u,specificity:[0,0,0]}))),map(literal("*"),(()=>({type:"universal",namespace:null,specificity:[0,0,0]}))));const Lu=map(_u,(({name:u,namespace:y})=>({type:"tag",name:u,namespace:y,specificity:[0,0,1]})));const Nu=ab(literal("."),ku,((u,y)=>({type:"class",name:y,specificity:[0,1,0]})));const Tu=map(Qu,(u=>({type:"id",name:u,specificity:[1,0,0]})));const Pu=token((u=>{if(u.name==="ident"){if(u.text==="i"||u.text==="I"){return"i"}if(u.text==="s"||u.text==="S"){return"s"}}return undefined}));const Ou=otherwise(ab(xu,core_option(right(Su,Pu),null),((u,y)=>({value:u,modifier:y}))),ab(ku,core_option(right(Du,Pu),null),((u,y)=>({value:u,modifier:y}))));const Mu=choice(map(literal("="),(()=>"=")),ab(literal("~"),literal("="),(()=>"~=")),ab(literal("|"),literal("="),(()=>"|=")),ab(literal("^"),literal("="),(()=>"^=")),ab(literal("$"),literal("="),(()=>"$=")),ab(literal("*"),literal("="),(()=>"*=")));const Uu=abc(literal("["),optionallySpaced(_u),literal("]"),((u,{name:y,namespace:C})=>({type:"attrPresence",name:y,namespace:C,specificity:[0,1,0]})));const Hu=middle(literal("["),abc(optionallySpaced(_u),Mu,optionallySpaced(Ou),(({name:u,namespace:y},C,{value:D,modifier:_})=>({type:"attrValue",name:u,namespace:y,matcher:C,value:D,modifier:_,specificity:[0,1,0]}))),literal("]"));const Gu=otherwise(Uu,Hu);const Wu=otherwise(Ru,Lu);const ju=choice(Tu,Nu,Gu);const zu=map(otherwise(flatten(Wu,many(ju)),many1(ju)),(u=>({type:"compound",list:u,specificity:sumAllSpec(u.map((u=>u.specificity)))})));const $u=choice(map(literal(">"),(()=>">")),map(literal("+"),(()=>"+")),map(literal("~"),(()=>"~")),ab(literal("|"),literal("|"),(()=>"||")));const qu=otherwise(optionallySpaced($u),map(Du,(()=>" ")));const Vu=leftAssoc2(zu,map(qu,(u=>(y,C)=>({type:"compound",list:[...C.list,{type:"combinator",combinator:u,left:y,specificity:y.specificity}],specificity:sumSpec(y.specificity,C.specificity)}))),zu);const Ju=leftAssoc2(map(Vu,(u=>({type:"list",list:[u]}))),map(optionallySpaced(literal(",")),(()=>(u,y)=>({type:"list",list:[...u.list,y]}))),Vu);function parse_(u,y){if(!(typeof y==="string"||y instanceof String)){throw new Error("Expected a selector string. Actual input is not a string!")}const C=Cu(y);if(!C.complete){throw new Error(`The input "${y}" was only partially tokenized, stopped at offset ${C.offset}!\n`+prettyPrintPosition(y,C.offset))}const D=optionallySpaced(u)({tokens:C.tokens,options:undefined},0);if(!D.matched){throw new Error(`No match for "${y}" input!`)}if(D.position<C.tokens.length){const u=C.tokens[D.position];throw new Error(`The input "${y}" was only partially parsed, stopped at offset ${u.offset}!\n`+prettyPrintPosition(y,u.offset,u.len))}return D.value}function prettyPrintPosition(u,y,C=1){return`${u.replace(/(\t)|(\r)|(\n)/g,((u,y,C)=>y?"␉":C?"␍":"␊"))}\n${"".padEnd(y)}${"^".repeat(C)}`}function parseley_parse(u){return parse_(Ju,u)}function parse1(u){return parse_(Vu,u)}function serialize(u){if(!u.type){throw new Error("This is not an AST node.")}switch(u.type){case"universal":return _serNs(u.namespace)+"*";case"tag":return _serNs(u.namespace)+_serIdent(u.name);case"class":return"."+_serIdent(u.name);case"id":return"#"+_serIdent(u.name);case"attrPresence":return`[${_serNs(u.namespace)}${_serIdent(u.name)}]`;case"attrValue":return`[${_serNs(u.namespace)}${_serIdent(u.name)}${u.matcher}"${_serStr(u.value)}"${u.modifier?u.modifier:""}]`;case"combinator":return serialize(u.left)+u.combinator;case"compound":return u.list.reduce(((u,y)=>{if(y.type==="combinator"){return serialize(y)+u}else{return u+serialize(y)}}),"");case"list":return u.list.map(serialize).join(",")}}function _serNs(u){return u||u===""?_serIdent(u)+"|":""}function _codePoint(u){return`\\${u.codePointAt(0).toString(16)} `}function _serIdent(u){return u.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,((u,y,C,D,_,j,$,ne)=>y?_codePoint(y):C?"-"+_codePoint(C.slice(1)):D?"\\-":_?_:j?"�":$?_codePoint($):"\\"+ne))}function _serStr(u){return u.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,((u,y,C,D,_)=>y?'\\"':C?"\\\\":D?"�":_codePoint(_)))}function parseley_normalize(u){if(!u.type){throw new Error("This is not an AST node.")}switch(u.type){case"compound":{u.list.forEach(parseley_normalize);u.list.sort(((u,y)=>_compareArrays(_getSelectorPriority(u),_getSelectorPriority(y))));break}case"combinator":{parseley_normalize(u.left);break}case"list":{u.list.forEach(parseley_normalize);u.list.sort(((u,y)=>serialize(u)<serialize(y)?-1:1));break}}return u}function _getSelectorPriority(u){switch(u.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,u.name];case"attrPresence":return[4,serialize(u)];case"attrValue":return[5,serialize(u)];case"combinator":return[15,serialize(u)]}}function compareSelectors(u,y){return _compareArrays(u.specificity,y.specificity)}function compareSpecificity(u,y){return _compareArrays(u,y)}function _compareArrays(u,y){if(!Array.isArray(u)||!Array.isArray(y)){throw new Error("Arguments must be arrays.")}const C=u.length<y.length?u.length:y.length;for(let D=0;D<C;D++){if(u[D]===y[D]){continue}return u[D]<y[D]?-1:1}return u.length-y.length}var Ku=Object.freeze({__proto__:null});var Yu=Object.freeze({__proto__:null});const treeify=u=>"▽\n"+treeifyArray(u,Xu);const Xu=[["├─","│ "],["└─"," "]];const Zu=[["┠─","┃ "],["┖─"," "]];const _f=[["╟─","║ "],["╙─"," "]];function treeifyArray(u,y=Zu){return prefixItems(y,u.map((u=>treeifyNode(u))))}function treeifyNode(u){switch(u.type){case"terminal":{const y=u.valueContainer;return`◁ #${y.index} ${JSON.stringify(y.specificity)} ${y.value}`}case"tagName":return`◻ Tag name\n${treeifyArray(u.variants,_f)}`;case"attrValue":return`▣ Attr value: ${u.name}\n${treeifyArray(u.matchers,_f)}`;case"attrPresence":return`◨ Attr presence: ${u.name}\n${treeifyArray(u.cont)}`;case"pushElement":return`◉ Push element: ${u.combinator}\n${treeifyArray(u.cont,Xu)}`;case"popElement":return`◌ Pop element\n${treeifyArray(u.cont,Xu)}`;case"variant":return`◇ = ${u.value}\n${treeifyArray(u.cont)}`;case"matcher":return`◈ ${u.matcher} "${u.value}"${u.modifier||""}\n${treeifyArray(u.cont)}`}}function prefixItems(u,y){return y.map(((y,C,{length:D})=>prefixItem(u,y,C===D-1))).join("\n")}function prefixItem(u,y,C=true){const D=u[C?1:0];return D[0]+y.split("\n").join("\n"+D[1])}var Rf=Object.freeze({__proto__:null,treeify:treeify});class DecisionTree{constructor(u){this.branches=weave(toAstTerminalPairs(u))}build(u){return u(this.branches)}}function toAstTerminalPairs(u){const y=u.length;const C=new Array(y);for(let D=0;D<y;D++){const[y,_]=u[D];const j=preprocess(parse1(y));C[D]={ast:j,terminal:{type:"terminal",valueContainer:{index:D,value:_,specificity:j.specificity}}}}return C}function preprocess(u){reduceSelectorVariants(u);parseley_normalize(u);return u}function reduceSelectorVariants(u){const y=[];u.list.forEach((u=>{switch(u.type){case"class":y.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:u.specificity,type:"attrValue",value:u.name});break;case"id":y.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:u.specificity,type:"attrValue",value:u.name});break;case"combinator":reduceSelectorVariants(u.left);y.push(u);break;case"universal":break;default:y.push(u);break}}));u.list=y}function weave(u){const y=[];while(u.length){const C=findTopKey(u,(u=>true),getSelectorKind);const{matches:D,nonmatches:_,empty:j}=breakByKind(u,C);u=_;if(D.length){y.push(branchOfKind(C,D))}if(j.length){y.push(...terminate(j))}}return y}function terminate(u){const y=[];for(const C of u){const u=C.terminal;if(u.type==="terminal"){y.push(u)}else{const{matches:C,rest:D}=partition(u.cont,(u=>u.type==="terminal"));C.forEach((u=>y.push(u)));if(D.length){u.cont=D;y.push(u)}}}return y}function breakByKind(u,y){const C=[];const D=[];const _=[];for(const j of u){const u=j.ast.list;if(u.length){const _=u.some((u=>getSelectorKind(u)===y));(_?C:D).push(j)}else{_.push(j)}}return{matches:C,nonmatches:D,empty:_}}function getSelectorKind(u){switch(u.type){case"attrPresence":return`attrPresence ${u.name}`;case"attrValue":return`attrValue ${u.name}`;case"combinator":return`combinator ${u.combinator}`;default:return u.type}}function branchOfKind(u,y){if(u==="tag"){return tagNameBranch(y)}if(u.startsWith("attrValue ")){return attrValueBranch(u.substring(10),y)}if(u.startsWith("attrPresence ")){return attrPresenceBranch(u.substring(13),y)}if(u==="combinator >"){return combinatorBranch(">",y)}if(u==="combinator +"){return combinatorBranch("+",y)}throw new Error(`Unsupported selector kind: ${u}`)}function tagNameBranch(u){const y=spliceAndGroup(u,(u=>u.type==="tag"),(u=>u.name));const C=Object.entries(y).map((([u,y])=>({type:"variant",value:u,cont:weave(y.items)})));return{type:"tagName",variants:C}}function attrPresenceBranch(u,y){for(const C of y){spliceSimpleSelector(C,(y=>y.type==="attrPresence"&&y.name===u))}return{type:"attrPresence",name:u,cont:weave(y)}}function attrValueBranch(u,y){const C=spliceAndGroup(y,(y=>y.type==="attrValue"&&y.name===u),(u=>`${u.matcher} ${u.modifier||""} ${u.value}`));const D=[];for(const u of Object.values(C)){const y=u.oneSimpleSelector;const C=getAttrPredicate(y);const _=weave(u.items);D.push({type:"matcher",matcher:y.matcher,modifier:y.modifier,value:y.value,predicate:C,cont:_})}return{type:"attrValue",name:u,matchers:D}}function getAttrPredicate(u){if(u.modifier==="i"){const y=u.value.toLowerCase();switch(u.matcher){case"=":return u=>y===u.toLowerCase();case"~=":return u=>u.toLowerCase().split(/[ \t]+/).includes(y);case"^=":return u=>u.toLowerCase().startsWith(y);case"$=":return u=>u.toLowerCase().endsWith(y);case"*=":return u=>u.toLowerCase().includes(y);case"|=":return u=>{const C=u.toLowerCase();return y===C||C.startsWith(y)&&C[y.length]==="-"}}}else{const y=u.value;switch(u.matcher){case"=":return u=>y===u;case"~=":return u=>u.split(/[ \t]+/).includes(y);case"^=":return u=>u.startsWith(y);case"$=":return u=>u.endsWith(y);case"*=":return u=>u.includes(y);case"|=":return u=>y===u||u.startsWith(y)&&u[y.length]==="-"}}}function combinatorBranch(u,y){const C=spliceAndGroup(y,(y=>y.type==="combinator"&&y.combinator===u),(u=>serialize(u.left)));const D=[];for(const u of Object.values(C)){const y=weave(u.items);const C=u.oneSimpleSelector.left;D.push({ast:C,terminal:{type:"popElement",cont:y}})}return{type:"pushElement",combinator:u,cont:weave(D)}}function spliceAndGroup(u,y,C){const D={};while(u.length){const _=findTopKey(u,y,C);const bestKeyPredicate=u=>y(u)&&C(u)===_;const hasBestKeyPredicate=u=>u.ast.list.some(bestKeyPredicate);const{matches:j,rest:$}=partition1(u,hasBestKeyPredicate);let ne=null;for(const u of j){const y=spliceSimpleSelector(u,bestKeyPredicate);if(!ne){ne=y}}if(ne==null){throw new Error("No simple selector is found.")}D[_]={oneSimpleSelector:ne,items:j};u=$}return D}function spliceSimpleSelector(u,y){const C=u.ast.list;const D=new Array(C.length);let _=-1;for(let u=C.length;u-- >0;){if(y(C[u])){D[u]=true;_=u}}if(_==-1){throw new Error(`Couldn't find the required simple selector.`)}const j=C[_];u.ast.list=C.filter(((u,y)=>!D[y]));return j}function findTopKey(u,y,C){const D={};for(const _ of u){const u={};for(const D of _.ast.list.filter(y)){u[C(D)]=true}for(const y of Object.keys(u)){if(D[y]){D[y]++}else{D[y]=1}}}let _="";let j=0;for(const u of Object.entries(D)){if(u[1]>j){_=u[0];j=u[1]}}return _}function partition(u,y){const C=[];const D=[];for(const _ of u){if(y(_)){C.push(_)}else{D.push(_)}}return{matches:C,rest:D}}function partition1(u,y){const C=[];const D=[];for(const _ of u){if(y(_)){C.push(_)}else{D.push(_)}}return{matches:C,rest:D}}class Picker{constructor(u){this.f=u}pickAll(u){return this.f(u)}pick1(u,y=false){const C=this.f(u);const D=C.length;if(D===0){return null}if(D===1){return C[0].value}const _=y?comparatorPreferFirst:comparatorPreferLast;let j=C[0];for(let u=1;u<D;u++){const y=C[u];if(_(j,y)){j=y}}return j.value}}function comparatorPreferFirst(u,y){const C=compareSpecificity(y.specificity,u.specificity);return C>0||C===0&&y.index<u.index}function comparatorPreferLast(u,y){const C=compareSpecificity(y.specificity,u.specificity);return C>0||C===0&&y.index>u.index}function hp2Builder(u){return new Picker(handleArray(u))}function handleArray(u){const y=u.map(handleNode);return(u,...C)=>y.flatMap((y=>y(u,...C)))}function handleNode(u){switch(u.type){case"terminal":{const y=[u.valueContainer];return(u,...C)=>y}case"tagName":return handleTagName(u);case"attrValue":return handleAttrValueName(u);case"attrPresence":return handleAttrPresenceName(u);case"pushElement":return handlePushElementNode(u);case"popElement":return handlePopElementNode(u)}}function handleTagName(u){const y={};for(const C of u.variants){y[C.value]=handleArray(C.cont)}return(u,...C)=>{const D=y[u.name];return D?D(u,...C):[]}}function handleAttrPresenceName(u){const y=u.name;const C=handleArray(u.cont);return(u,...D)=>Object.prototype.hasOwnProperty.call(u.attribs,y)?C(u,...D):[]}function handleAttrValueName(u){const y=[];for(const C of u.matchers){const u=C.predicate;const D=handleArray(C.cont);y.push(((y,C,..._)=>u(y)?D(C,..._):[]))}const C=u.name;return(u,...D)=>{const _=u.attribs[C];return _||_===""?y.flatMap((y=>y(_,u,...D))):[]}}function handlePushElementNode(u){const y=handleArray(u.cont);const C=u.combinator==="+"?getPrecedingElement:getParentElement;return(u,...D)=>{const _=C(u);if(_===null){return[]}return y(_,u,...D)}}const getPrecedingElement=u=>{const y=u.prev;if(y===null){return null}return node_isTag(y)?y:getPrecedingElement(y)};const getParentElement=u=>{const y=u.parent;return y&&node_isTag(y)?y:null};function handlePopElementNode(u){const y=handleArray(u.cont);return(u,C,...D)=>y(C,...D)}const Mf=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u=>u.charCodeAt(0))));const Hf=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u=>u.charCodeAt(0))));var zf;const $f=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const Jf=(zf=String.fromCodePoint)!==null&&zf!==void 0?zf:function(u){let y="";if(u>65535){u-=65536;y+=String.fromCharCode(u>>>10&1023|55296);u=56320|u&1023}y+=String.fromCharCode(u);return y};function replaceCodePoint(u){var y;if(u>=55296&&u<=57343||u>1114111){return 65533}return(y=$f.get(u))!==null&&y!==void 0?y:u}function decodeCodePoint(u){return Jf(replaceCodePoint(u))}var Kf;(function(u){u[u["NUM"]=35]="NUM";u[u["SEMI"]=59]="SEMI";u[u["EQUALS"]=61]="EQUALS";u[u["ZERO"]=48]="ZERO";u[u["NINE"]=57]="NINE";u[u["LOWER_A"]=97]="LOWER_A";u[u["LOWER_F"]=102]="LOWER_F";u[u["LOWER_X"]=120]="LOWER_X";u[u["LOWER_Z"]=122]="LOWER_Z";u[u["UPPER_A"]=65]="UPPER_A";u[u["UPPER_F"]=70]="UPPER_F";u[u["UPPER_Z"]=90]="UPPER_Z"})(Kf||(Kf={}));const Zf=32;var ed;(function(u){u[u["VALUE_LENGTH"]=49152]="VALUE_LENGTH";u[u["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";u[u["JUMP_TABLE"]=127]="JUMP_TABLE"})(ed||(ed={}));function decode_isNumber(u){return u>=Kf.ZERO&&u<=Kf.NINE}function isHexadecimalCharacter(u){return u>=Kf.UPPER_A&&u<=Kf.UPPER_F||u>=Kf.LOWER_A&&u<=Kf.LOWER_F}function isAsciiAlphaNumeric(u){return u>=Kf.UPPER_A&&u<=Kf.UPPER_Z||u>=Kf.LOWER_A&&u<=Kf.LOWER_Z||decode_isNumber(u)}function isEntityInAttributeInvalidEnd(u){return u===Kf.EQUALS||isAsciiAlphaNumeric(u)}var rd;(function(u){u[u["EntityStart"]=0]="EntityStart";u[u["NumericStart"]=1]="NumericStart";u[u["NumericDecimal"]=2]="NumericDecimal";u[u["NumericHex"]=3]="NumericHex";u[u["NamedEntity"]=4]="NamedEntity"})(rd||(rd={}));var id;(function(u){u[u["Legacy"]=0]="Legacy";u[u["Strict"]=1]="Strict";u[u["Attribute"]=2]="Attribute"})(id||(id={}));class EntityDecoder{constructor(u,y,C){this.decodeTree=u;this.emitCodePoint=y;this.errors=C;this.state=rd.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=id.Strict}startEntity(u){this.decodeMode=u;this.state=rd.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(u,y){switch(this.state){case rd.EntityStart:{if(u.charCodeAt(y)===Kf.NUM){this.state=rd.NumericStart;this.consumed+=1;return this.stateNumericStart(u,y+1)}this.state=rd.NamedEntity;return this.stateNamedEntity(u,y)}case rd.NumericStart:{return this.stateNumericStart(u,y)}case rd.NumericDecimal:{return this.stateNumericDecimal(u,y)}case rd.NumericHex:{return this.stateNumericHex(u,y)}case rd.NamedEntity:{return this.stateNamedEntity(u,y)}}}stateNumericStart(u,y){if(y>=u.length){return-1}if((u.charCodeAt(y)|Zf)===Kf.LOWER_X){this.state=rd.NumericHex;this.consumed+=1;return this.stateNumericHex(u,y+1)}this.state=rd.NumericDecimal;return this.stateNumericDecimal(u,y)}addToNumericResult(u,y,C,D){if(y!==C){const _=C-y;this.result=this.result*Math.pow(D,_)+parseInt(u.substr(y,_),D);this.consumed+=_}}stateNumericHex(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(decode_isNumber(D)||isHexadecimalCharacter(D)){y+=1}else{this.addToNumericResult(u,C,y,16);return this.emitNumericEntity(D,3)}}this.addToNumericResult(u,C,y,16);return-1}stateNumericDecimal(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(decode_isNumber(D)){y+=1}else{this.addToNumericResult(u,C,y,10);return this.emitNumericEntity(D,2)}}this.addToNumericResult(u,C,y,10);return-1}emitNumericEntity(u,y){var C;if(this.consumed<=y){(C=this.errors)===null||C===void 0?void 0:C.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(u===Kf.SEMI){this.consumed+=1}else if(this.decodeMode===id.Strict){return 0}this.emitCodePoint(replaceCodePoint(this.result),this.consumed);if(this.errors){if(u!==Kf.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(u,y){const{decodeTree:C}=this;let D=C[this.treeIndex];let _=(D&ed.VALUE_LENGTH)>>14;for(;y<u.length;y++,this.excess++){const j=u.charCodeAt(y);this.treeIndex=determineBranch(C,D,this.treeIndex+Math.max(1,_),j);if(this.treeIndex<0){return this.result===0||this.decodeMode===id.Attribute&&(_===0||isEntityInAttributeInvalidEnd(j))?0:this.emitNotTerminatedNamedEntity()}D=C[this.treeIndex];_=(D&ed.VALUE_LENGTH)>>14;if(_!==0){if(j===Kf.SEMI){return this.emitNamedEntityData(this.treeIndex,_,this.consumed+this.excess)}if(this.decodeMode!==id.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var u;const{result:y,decodeTree:C}=this;const D=(C[y]&ed.VALUE_LENGTH)>>14;this.emitNamedEntityData(y,D,this.consumed);(u=this.errors)===null||u===void 0?void 0:u.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(u,y,C){const{decodeTree:D}=this;this.emitCodePoint(y===1?D[u]&~ed.VALUE_LENGTH:D[u+1],C);if(y===3){this.emitCodePoint(D[u+2],C)}return C}end(){var u;switch(this.state){case rd.NamedEntity:{return this.result!==0&&(this.decodeMode!==id.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case rd.NumericDecimal:{return this.emitNumericEntity(0,2)}case rd.NumericHex:{return this.emitNumericEntity(0,3)}case rd.NumericStart:{(u=this.errors)===null||u===void 0?void 0:u.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case rd.EntityStart:{return 0}}}}function getDecoder(u){let y="";const C=new EntityDecoder(u,(u=>y+=Jf(u)));return function decodeWithTrie(u,D){let _=0;let j=0;while((j=u.indexOf("&",j))>=0){y+=u.slice(_,j);C.startEntity(D);const $=C.write(u,j+1);if($<0){_=j+C.end();break}_=j+$;j=$===0?_+1:_}const $=y+u.slice(_);y="";return $}}function determineBranch(u,y,C,D){const _=(y&ed.BRANCH_LENGTH)>>7;const j=y&ed.JUMP_TABLE;if(_===0){return j!==0&&D===j?C:-1}if(j){const y=D-j;return y<0||y>=_?-1:u[C+y]-1}let $=C;let ne=$+_-1;while($<=ne){const y=$+ne>>>1;const C=u[y];if(C<D){$=y+1}else if(C>D){ne=y-1}else{return u[y+_]}}return-1}const od=getDecoder(Mf);const cd=getDecoder(Hf);function decode_decodeHTML(u,y=id.Legacy){return od(u,y)}function decodeHTMLAttribute(u){return od(u,id.Attribute)}function decodeHTMLStrict(u){return od(u,id.Strict)}function decode_decodeXML(u){return cd(u,id.Strict)}var fd;(function(u){u[u["Tab"]=9]="Tab";u[u["NewLine"]=10]="NewLine";u[u["FormFeed"]=12]="FormFeed";u[u["CarriageReturn"]=13]="CarriageReturn";u[u["Space"]=32]="Space";u[u["ExclamationMark"]=33]="ExclamationMark";u[u["Number"]=35]="Number";u[u["Amp"]=38]="Amp";u[u["SingleQuote"]=39]="SingleQuote";u[u["DoubleQuote"]=34]="DoubleQuote";u[u["Dash"]=45]="Dash";u[u["Slash"]=47]="Slash";u[u["Zero"]=48]="Zero";u[u["Nine"]=57]="Nine";u[u["Semi"]=59]="Semi";u[u["Lt"]=60]="Lt";u[u["Eq"]=61]="Eq";u[u["Gt"]=62]="Gt";u[u["Questionmark"]=63]="Questionmark";u[u["UpperA"]=65]="UpperA";u[u["LowerA"]=97]="LowerA";u[u["UpperF"]=70]="UpperF";u[u["LowerF"]=102]="LowerF";u[u["UpperZ"]=90]="UpperZ";u[u["LowerZ"]=122]="LowerZ";u[u["LowerX"]=120]="LowerX";u[u["OpeningSquareBracket"]=91]="OpeningSquareBracket"})(fd||(fd={}));var dd;(function(u){u[u["Text"]=1]="Text";u[u["BeforeTagName"]=2]="BeforeTagName";u[u["InTagName"]=3]="InTagName";u[u["InSelfClosingTag"]=4]="InSelfClosingTag";u[u["BeforeClosingTagName"]=5]="BeforeClosingTagName";u[u["InClosingTagName"]=6]="InClosingTagName";u[u["AfterClosingTagName"]=7]="AfterClosingTagName";u[u["BeforeAttributeName"]=8]="BeforeAttributeName";u[u["InAttributeName"]=9]="InAttributeName";u[u["AfterAttributeName"]=10]="AfterAttributeName";u[u["BeforeAttributeValue"]=11]="BeforeAttributeValue";u[u["InAttributeValueDq"]=12]="InAttributeValueDq";u[u["InAttributeValueSq"]=13]="InAttributeValueSq";u[u["InAttributeValueNq"]=14]="InAttributeValueNq";u[u["BeforeDeclaration"]=15]="BeforeDeclaration";u[u["InDeclaration"]=16]="InDeclaration";u[u["InProcessingInstruction"]=17]="InProcessingInstruction";u[u["BeforeComment"]=18]="BeforeComment";u[u["CDATASequence"]=19]="CDATASequence";u[u["InSpecialComment"]=20]="InSpecialComment";u[u["InCommentLike"]=21]="InCommentLike";u[u["BeforeSpecialS"]=22]="BeforeSpecialS";u[u["SpecialStartSequence"]=23]="SpecialStartSequence";u[u["InSpecialTag"]=24]="InSpecialTag";u[u["BeforeEntity"]=25]="BeforeEntity";u[u["BeforeNumericEntity"]=26]="BeforeNumericEntity";u[u["InNamedEntity"]=27]="InNamedEntity";u[u["InNumericEntity"]=28]="InNumericEntity";u[u["InHexEntity"]=29]="InHexEntity"})(dd||(dd={}));function isWhitespace(u){return u===fd.Space||u===fd.NewLine||u===fd.Tab||u===fd.FormFeed||u===fd.CarriageReturn}function isEndOfTagSection(u){return u===fd.Slash||u===fd.Gt||isWhitespace(u)}function Tokenizer_isNumber(u){return u>=fd.Zero&&u<=fd.Nine}function isASCIIAlpha(u){return u>=fd.LowerA&&u<=fd.LowerZ||u>=fd.UpperA&&u<=fd.UpperZ}function isHexDigit(u){return u>=fd.UpperA&&u<=fd.UpperF||u>=fd.LowerA&&u<=fd.LowerF}var hd;(function(u){u[u["NoValue"]=0]="NoValue";u[u["Unquoted"]=1]="Unquoted";u[u["Single"]=2]="Single";u[u["Double"]=3]="Double"})(hd||(hd={}));const pd={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Tokenizer{constructor({xmlMode:u=false,decodeEntities:y=true},C){this.cbs=C;this.state=dd.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=dd.Text;this.isSpecial=false;this.running=true;this.offset=0;this.currentSequence=undefined;this.sequenceIndex=0;this.trieIndex=0;this.trieCurrent=0;this.entityResult=0;this.entityExcess=0;this.xmlMode=u;this.decodeEntities=y;this.entityTrie=u?Hf:Mf}reset(){this.state=dd.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=dd.Text;this.currentSequence=undefined;this.running=true;this.offset=0}write(u){this.offset+=this.buffer.length;this.buffer=u;this.parse()}end(){if(this.running)this.finish()}pause(){this.running=false}resume(){this.running=true;if(this.index<this.buffer.length+this.offset){this.parse()}}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(u){if(u===fd.Lt||!this.decodeEntities&&this.fastForwardTo(fd.Lt)){if(this.index>this.sectionStart){this.cbs.ontext(this.sectionStart,this.index)}this.state=dd.BeforeTagName;this.sectionStart=this.index}else if(this.decodeEntities&&u===fd.Amp){this.state=dd.BeforeEntity}}stateSpecialStartSequence(u){const y=this.sequenceIndex===this.currentSequence.length;const C=y?isEndOfTagSection(u):(u|32)===this.currentSequence[this.sequenceIndex];if(!C){this.isSpecial=false}else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0;this.state=dd.InTagName;this.stateInTagName(u)}stateInSpecialTag(u){if(this.sequenceIndex===this.currentSequence.length){if(u===fd.Gt||isWhitespace(u)){const y=this.index-this.currentSequence.length;if(this.sectionStart<y){const u=this.index;this.index=y;this.cbs.ontext(this.sectionStart,y);this.index=u}this.isSpecial=false;this.sectionStart=y+2;this.stateInClosingTagName(u);return}this.sequenceIndex=0}if((u|32)===this.currentSequence[this.sequenceIndex]){this.sequenceIndex+=1}else if(this.sequenceIndex===0){if(this.currentSequence===pd.TitleEnd){if(this.decodeEntities&&u===fd.Amp){this.state=dd.BeforeEntity}}else if(this.fastForwardTo(fd.Lt)){this.sequenceIndex=1}}else{this.sequenceIndex=Number(u===fd.Lt)}}stateCDATASequence(u){if(u===pd.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===pd.Cdata.length){this.state=dd.InCommentLike;this.currentSequence=pd.CdataEnd;this.sequenceIndex=0;this.sectionStart=this.index+1}}else{this.sequenceIndex=0;this.state=dd.InDeclaration;this.stateInDeclaration(u)}}fastForwardTo(u){while(++this.index<this.buffer.length+this.offset){if(this.buffer.charCodeAt(this.index-this.offset)===u){return true}}this.index=this.buffer.length+this.offset-1;return false}stateInCommentLike(u){if(u===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===pd.CdataEnd){this.cbs.oncdata(this.sectionStart,this.index,2)}else{this.cbs.oncomment(this.sectionStart,this.index,2)}this.sequenceIndex=0;this.sectionStart=this.index+1;this.state=dd.Text}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0])){this.sequenceIndex=1}}else if(u!==this.currentSequence[this.sequenceIndex-1]){this.sequenceIndex=0}}isTagStartChar(u){return this.xmlMode?!isEndOfTagSection(u):isASCIIAlpha(u)}startSpecial(u,y){this.isSpecial=true;this.currentSequence=u;this.sequenceIndex=y;this.state=dd.SpecialStartSequence}stateBeforeTagName(u){if(u===fd.ExclamationMark){this.state=dd.BeforeDeclaration;this.sectionStart=this.index+1}else if(u===fd.Questionmark){this.state=dd.InProcessingInstruction;this.sectionStart=this.index+1}else if(this.isTagStartChar(u)){const y=u|32;this.sectionStart=this.index;if(!this.xmlMode&&y===pd.TitleEnd[2]){this.startSpecial(pd.TitleEnd,3)}else{this.state=!this.xmlMode&&y===pd.ScriptEnd[2]?dd.BeforeSpecialS:dd.InTagName}}else if(u===fd.Slash){this.state=dd.BeforeClosingTagName}else{this.state=dd.Text;this.stateText(u)}}stateInTagName(u){if(isEndOfTagSection(u)){this.cbs.onopentagname(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}}stateBeforeClosingTagName(u){if(isWhitespace(u)){}else if(u===fd.Gt){this.state=dd.Text}else{this.state=this.isTagStartChar(u)?dd.InClosingTagName:dd.InSpecialComment;this.sectionStart=this.index}}stateInClosingTagName(u){if(u===fd.Gt||isWhitespace(u)){this.cbs.onclosetag(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.AfterClosingTagName;this.stateAfterClosingTagName(u)}}stateAfterClosingTagName(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.state=dd.Text;this.baseState=dd.Text;this.sectionStart=this.index+1}}stateBeforeAttributeName(u){if(u===fd.Gt){this.cbs.onopentagend(this.index);if(this.isSpecial){this.state=dd.InSpecialTag;this.sequenceIndex=0}else{this.state=dd.Text}this.baseState=this.state;this.sectionStart=this.index+1}else if(u===fd.Slash){this.state=dd.InSelfClosingTag}else if(!isWhitespace(u)){this.state=dd.InAttributeName;this.sectionStart=this.index}}stateInSelfClosingTag(u){if(u===fd.Gt){this.cbs.onselfclosingtag(this.index);this.state=dd.Text;this.baseState=dd.Text;this.sectionStart=this.index+1;this.isSpecial=false}else if(!isWhitespace(u)){this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}}stateInAttributeName(u){if(u===fd.Eq||isEndOfTagSection(u)){this.cbs.onattribname(this.sectionStart,this.index);this.sectionStart=-1;this.state=dd.AfterAttributeName;this.stateAfterAttributeName(u)}}stateAfterAttributeName(u){if(u===fd.Eq){this.state=dd.BeforeAttributeValue}else if(u===fd.Slash||u===fd.Gt){this.cbs.onattribend(hd.NoValue,this.index);this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}else if(!isWhitespace(u)){this.cbs.onattribend(hd.NoValue,this.index);this.state=dd.InAttributeName;this.sectionStart=this.index}}stateBeforeAttributeValue(u){if(u===fd.DoubleQuote){this.state=dd.InAttributeValueDq;this.sectionStart=this.index+1}else if(u===fd.SingleQuote){this.state=dd.InAttributeValueSq;this.sectionStart=this.index+1}else if(!isWhitespace(u)){this.sectionStart=this.index;this.state=dd.InAttributeValueNq;this.stateInAttributeValueNoQuotes(u)}}handleInAttributeValue(u,y){if(u===y||!this.decodeEntities&&this.fastForwardTo(y)){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=-1;this.cbs.onattribend(y===fd.DoubleQuote?hd.Double:hd.Single,this.index);this.state=dd.BeforeAttributeName}else if(this.decodeEntities&&u===fd.Amp){this.baseState=this.state;this.state=dd.BeforeEntity}}stateInAttributeValueDoubleQuotes(u){this.handleInAttributeValue(u,fd.DoubleQuote)}stateInAttributeValueSingleQuotes(u){this.handleInAttributeValue(u,fd.SingleQuote)}stateInAttributeValueNoQuotes(u){if(isWhitespace(u)||u===fd.Gt){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=-1;this.cbs.onattribend(hd.Unquoted,this.index);this.state=dd.BeforeAttributeName;this.stateBeforeAttributeName(u)}else if(this.decodeEntities&&u===fd.Amp){this.baseState=this.state;this.state=dd.BeforeEntity}}stateBeforeDeclaration(u){if(u===fd.OpeningSquareBracket){this.state=dd.CDATASequence;this.sequenceIndex=0}else{this.state=u===fd.Dash?dd.BeforeComment:dd.InDeclaration}}stateInDeclaration(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.ondeclaration(this.sectionStart,this.index);this.state=dd.Text;this.sectionStart=this.index+1}}stateInProcessingInstruction(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.onprocessinginstruction(this.sectionStart,this.index);this.state=dd.Text;this.sectionStart=this.index+1}}stateBeforeComment(u){if(u===fd.Dash){this.state=dd.InCommentLike;this.currentSequence=pd.CommentEnd;this.sequenceIndex=2;this.sectionStart=this.index+1}else{this.state=dd.InDeclaration}}stateInSpecialComment(u){if(u===fd.Gt||this.fastForwardTo(fd.Gt)){this.cbs.oncomment(this.sectionStart,this.index,0);this.state=dd.Text;this.sectionStart=this.index+1}}stateBeforeSpecialS(u){const y=u|32;if(y===pd.ScriptEnd[3]){this.startSpecial(pd.ScriptEnd,4)}else if(y===pd.StyleEnd[3]){this.startSpecial(pd.StyleEnd,4)}else{this.state=dd.InTagName;this.stateInTagName(u)}}stateBeforeEntity(u){this.entityExcess=1;this.entityResult=0;if(u===fd.Number){this.state=dd.BeforeNumericEntity}else if(u===fd.Amp){}else{this.trieIndex=0;this.trieCurrent=this.entityTrie[0];this.state=dd.InNamedEntity;this.stateInNamedEntity(u)}}stateInNamedEntity(u){this.entityExcess+=1;this.trieIndex=determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,u);if(this.trieIndex<0){this.emitNamedEntity();this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const y=this.trieCurrent&ed.VALUE_LENGTH;if(y){const C=(y>>14)-1;if(!this.allowLegacyEntity()&&u!==fd.Semi){this.trieIndex+=C}else{const u=this.index-this.entityExcess+1;if(u>this.sectionStart){this.emitPartial(this.sectionStart,u)}this.entityResult=this.trieIndex;this.trieIndex+=C;this.entityExcess=0;this.sectionStart=this.index+1;if(C===0){this.emitNamedEntity()}}}}emitNamedEntity(){this.state=this.baseState;if(this.entityResult===0){return}const u=(this.entityTrie[this.entityResult]&ed.VALUE_LENGTH)>>14;switch(u){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~ed.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);this.emitCodePoint(this.entityTrie[this.entityResult+2])}}}stateBeforeNumericEntity(u){if((u|32)===fd.LowerX){this.entityExcess++;this.state=dd.InHexEntity}else{this.state=dd.InNumericEntity;this.stateInNumericEntity(u)}}emitNumericEntity(u){const y=this.index-this.entityExcess-1;const C=y+2+Number(this.state===dd.InHexEntity);if(C!==this.index){if(y>this.sectionStart){this.emitPartial(this.sectionStart,y)}this.sectionStart=this.index+Number(u);this.emitCodePoint(replaceCodePoint(this.entityResult))}this.state=this.baseState}stateInNumericEntity(u){if(u===fd.Semi){this.emitNumericEntity(true)}else if(Tokenizer_isNumber(u)){this.entityResult=this.entityResult*10+(u-fd.Zero);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}}stateInHexEntity(u){if(u===fd.Semi){this.emitNumericEntity(true)}else if(Tokenizer_isNumber(u)){this.entityResult=this.entityResult*16+(u-fd.Zero);this.entityExcess++}else if(isHexDigit(u)){this.entityResult=this.entityResult*16+((u|32)-fd.LowerA+10);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===dd.Text||this.baseState===dd.InSpecialTag)}cleanup(){if(this.running&&this.sectionStart!==this.index){if(this.state===dd.Text||this.state===dd.InSpecialTag&&this.sequenceIndex===0){this.cbs.ontext(this.sectionStart,this.index);this.sectionStart=this.index}else if(this.state===dd.InAttributeValueDq||this.state===dd.InAttributeValueSq||this.state===dd.InAttributeValueNq){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=this.index}}}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){while(this.shouldContinue()){const u=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case dd.Text:{this.stateText(u);break}case dd.SpecialStartSequence:{this.stateSpecialStartSequence(u);break}case dd.InSpecialTag:{this.stateInSpecialTag(u);break}case dd.CDATASequence:{this.stateCDATASequence(u);break}case dd.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(u);break}case dd.InAttributeName:{this.stateInAttributeName(u);break}case dd.InCommentLike:{this.stateInCommentLike(u);break}case dd.InSpecialComment:{this.stateInSpecialComment(u);break}case dd.BeforeAttributeName:{this.stateBeforeAttributeName(u);break}case dd.InTagName:{this.stateInTagName(u);break}case dd.InClosingTagName:{this.stateInClosingTagName(u);break}case dd.BeforeTagName:{this.stateBeforeTagName(u);break}case dd.AfterAttributeName:{this.stateAfterAttributeName(u);break}case dd.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(u);break}case dd.BeforeAttributeValue:{this.stateBeforeAttributeValue(u);break}case dd.BeforeClosingTagName:{this.stateBeforeClosingTagName(u);break}case dd.AfterClosingTagName:{this.stateAfterClosingTagName(u);break}case dd.BeforeSpecialS:{this.stateBeforeSpecialS(u);break}case dd.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(u);break}case dd.InSelfClosingTag:{this.stateInSelfClosingTag(u);break}case dd.InDeclaration:{this.stateInDeclaration(u);break}case dd.BeforeDeclaration:{this.stateBeforeDeclaration(u);break}case dd.BeforeComment:{this.stateBeforeComment(u);break}case dd.InProcessingInstruction:{this.stateInProcessingInstruction(u);break}case dd.InNamedEntity:{this.stateInNamedEntity(u);break}case dd.BeforeEntity:{this.stateBeforeEntity(u);break}case dd.InHexEntity:{this.stateInHexEntity(u);break}case dd.InNumericEntity:{this.stateInNumericEntity(u);break}default:{this.stateBeforeNumericEntity(u)}}this.index++}this.cleanup()}finish(){if(this.state===dd.InNamedEntity){this.emitNamedEntity()}if(this.sectionStart<this.index){this.handleTrailingData()}this.cbs.onend()}handleTrailingData(){const u=this.buffer.length+this.offset;if(this.state===dd.InCommentLike){if(this.currentSequence===pd.CdataEnd){this.cbs.oncdata(this.sectionStart,u,0)}else{this.cbs.oncomment(this.sectionStart,u,0)}}else if(this.state===dd.InNumericEntity&&this.allowLegacyEntity()){this.emitNumericEntity(false)}else if(this.state===dd.InHexEntity&&this.allowLegacyEntity()){this.emitNumericEntity(false)}else if(this.state===dd.InTagName||this.state===dd.BeforeAttributeName||this.state===dd.BeforeAttributeValue||this.state===dd.AfterAttributeName||this.state===dd.InAttributeName||this.state===dd.InAttributeValueSq||this.state===dd.InAttributeValueDq||this.state===dd.InAttributeValueNq||this.state===dd.InClosingTagName){}else{this.cbs.ontext(this.sectionStart,u)}}emitPartial(u,y){if(this.baseState!==dd.Text&&this.baseState!==dd.InSpecialTag){this.cbs.onattribdata(u,y)}else{this.cbs.ontext(u,y)}}emitCodePoint(u){if(this.baseState!==dd.Text&&this.baseState!==dd.InSpecialTag){this.cbs.onattribentity(u)}else{this.cbs.ontextentity(u)}}}const gd=new Set(["input","option","optgroup","select","button","datalist","textarea"]);const Cd=new Set(["p"]);const bd=new Set(["thead","tbody"]);const Sd=new Set(["dd","dt"]);const Qd=new Set(["rt","rp"]);const _d=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Cd],["h1",Cd],["h2",Cd],["h3",Cd],["h4",Cd],["h5",Cd],["h6",Cd],["select",gd],["input",gd],["output",gd],["button",gd],["datalist",gd],["textarea",gd],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Sd],["dt",Sd],["address",Cd],["article",Cd],["aside",Cd],["blockquote",Cd],["details",Cd],["div",Cd],["dl",Cd],["fieldset",Cd],["figcaption",Cd],["figure",Cd],["footer",Cd],["form",Cd],["header",Cd],["hr",Cd],["main",Cd],["nav",Cd],["ol",Cd],["pre",Cd],["section",Cd],["table",Cd],["ul",Cd],["rt",Qd],["rp",Qd],["tbody",bd],["tfoot",bd]]);const Rd=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);const Td=new Set(["math","svg"]);const Pd=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]);const Od=/\s|\//;class Parser_Parser{constructor(u,y={}){var C,D,_,j,$;this.options=y;this.startIndex=0;this.endIndex=0;this.openTagStart=0;this.tagname="";this.attribname="";this.attribvalue="";this.attribs=null;this.stack=[];this.foreignContext=[];this.buffers=[];this.bufferOffset=0;this.writeIndex=0;this.ended=false;this.cbs=u!==null&&u!==void 0?u:{};this.lowerCaseTagNames=(C=y.lowerCaseTags)!==null&&C!==void 0?C:!y.xmlMode;this.lowerCaseAttributeNames=(D=y.lowerCaseAttributeNames)!==null&&D!==void 0?D:!y.xmlMode;this.tokenizer=new((_=y.Tokenizer)!==null&&_!==void 0?_:Tokenizer)(this.options,this);($=(j=this.cbs).onparserinit)===null||$===void 0?void 0:$.call(j,this)}ontext(u,y){var C,D;const _=this.getSlice(u,y);this.endIndex=y-1;(D=(C=this.cbs).ontext)===null||D===void 0?void 0:D.call(C,_);this.startIndex=y}ontextentity(u){var y,C;const D=this.tokenizer.getSectionStart();this.endIndex=D-1;(C=(y=this.cbs).ontext)===null||C===void 0?void 0:C.call(y,Jf(u));this.startIndex=D}isVoidElement(u){return!this.options.xmlMode&&Rd.has(u)}onopentagname(u,y){this.endIndex=y;let C=this.getSlice(u,y);if(this.lowerCaseTagNames){C=C.toLowerCase()}this.emitOpenTag(C)}emitOpenTag(u){var y,C,D,_;this.openTagStart=this.startIndex;this.tagname=u;const j=!this.options.xmlMode&&_d.get(u);if(j){while(this.stack.length>0&&j.has(this.stack[this.stack.length-1])){const u=this.stack.pop();(C=(y=this.cbs).onclosetag)===null||C===void 0?void 0:C.call(y,u,true)}}if(!this.isVoidElement(u)){this.stack.push(u);if(Td.has(u)){this.foreignContext.push(true)}else if(Pd.has(u)){this.foreignContext.push(false)}}(_=(D=this.cbs).onopentagname)===null||_===void 0?void 0:_.call(D,u);if(this.cbs.onopentag)this.attribs={}}endOpenTag(u){var y,C;this.startIndex=this.openTagStart;if(this.attribs){(C=(y=this.cbs).onopentag)===null||C===void 0?void 0:C.call(y,this.tagname,this.attribs,u);this.attribs=null}if(this.cbs.onclosetag&&this.isVoidElement(this.tagname)){this.cbs.onclosetag(this.tagname,true)}this.tagname=""}onopentagend(u){this.endIndex=u;this.endOpenTag(false);this.startIndex=u+1}onclosetag(u,y){var C,D,_,j,$,ne;this.endIndex=y;let oe=this.getSlice(u,y);if(this.lowerCaseTagNames){oe=oe.toLowerCase()}if(Td.has(oe)||Pd.has(oe)){this.foreignContext.pop()}if(!this.isVoidElement(oe)){const u=this.stack.lastIndexOf(oe);if(u!==-1){if(this.cbs.onclosetag){let y=this.stack.length-u;while(y--){this.cbs.onclosetag(this.stack.pop(),y!==0)}}else this.stack.length=u}else if(!this.options.xmlMode&&oe==="p"){this.emitOpenTag("p");this.closeCurrentTag(true)}}else if(!this.options.xmlMode&&oe==="br"){(D=(C=this.cbs).onopentagname)===null||D===void 0?void 0:D.call(C,"br");(j=(_=this.cbs).onopentag)===null||j===void 0?void 0:j.call(_,"br",{},true);(ne=($=this.cbs).onclosetag)===null||ne===void 0?void 0:ne.call($,"br",false)}this.startIndex=y+1}onselfclosingtag(u){this.endIndex=u;if(this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]){this.closeCurrentTag(false);this.startIndex=u+1}else{this.onopentagend(u)}}closeCurrentTag(u){var y,C;const D=this.tagname;this.endOpenTag(u);if(this.stack[this.stack.length-1]===D){(C=(y=this.cbs).onclosetag)===null||C===void 0?void 0:C.call(y,D,!u);this.stack.pop()}}onattribname(u,y){this.startIndex=u;const C=this.getSlice(u,y);this.attribname=this.lowerCaseAttributeNames?C.toLowerCase():C}onattribdata(u,y){this.attribvalue+=this.getSlice(u,y)}onattribentity(u){this.attribvalue+=Jf(u)}onattribend(u,y){var C,D;this.endIndex=y;(D=(C=this.cbs).onattribute)===null||D===void 0?void 0:D.call(C,this.attribname,this.attribvalue,u===hd.Double?'"':u===hd.Single?"'":u===hd.NoValue?undefined:null);if(this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)){this.attribs[this.attribname]=this.attribvalue}this.attribvalue=""}getInstructionName(u){const y=u.search(Od);let C=y<0?u:u.substr(0,y);if(this.lowerCaseTagNames){C=C.toLowerCase()}return C}ondeclaration(u,y){this.endIndex=y;const C=this.getSlice(u,y);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(C);this.cbs.onprocessinginstruction(`!${u}`,`!${C}`)}this.startIndex=y+1}onprocessinginstruction(u,y){this.endIndex=y;const C=this.getSlice(u,y);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(C);this.cbs.onprocessinginstruction(`?${u}`,`?${C}`)}this.startIndex=y+1}oncomment(u,y,C){var D,_,j,$;this.endIndex=y;(_=(D=this.cbs).oncomment)===null||_===void 0?void 0:_.call(D,this.getSlice(u,y-C));($=(j=this.cbs).oncommentend)===null||$===void 0?void 0:$.call(j);this.startIndex=y+1}oncdata(u,y,C){var D,_,j,$,ne,oe,le,de,Ae,pe;this.endIndex=y;const Ee=this.getSlice(u,y-C);if(this.options.xmlMode||this.options.recognizeCDATA){(_=(D=this.cbs).oncdatastart)===null||_===void 0?void 0:_.call(D);($=(j=this.cbs).ontext)===null||$===void 0?void 0:$.call(j,Ee);(oe=(ne=this.cbs).oncdataend)===null||oe===void 0?void 0:oe.call(ne)}else{(de=(le=this.cbs).oncomment)===null||de===void 0?void 0:de.call(le,`[CDATA[${Ee}]]`);(pe=(Ae=this.cbs).oncommentend)===null||pe===void 0?void 0:pe.call(Ae)}this.startIndex=y+1}onend(){var u,y;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let u=this.stack.length;u>0;this.cbs.onclosetag(this.stack[--u],true));}(y=(u=this.cbs).onend)===null||y===void 0?void 0:y.call(u)}reset(){var u,y,C,D;(y=(u=this.cbs).onreset)===null||y===void 0?void 0:y.call(u);this.tokenizer.reset();this.tagname="";this.attribname="";this.attribs=null;this.stack.length=0;this.startIndex=0;this.endIndex=0;(D=(C=this.cbs).onparserinit)===null||D===void 0?void 0:D.call(C,this);this.buffers.length=0;this.bufferOffset=0;this.writeIndex=0;this.ended=false}parseComplete(u){this.reset();this.end(u)}getSlice(u,y){while(u-this.bufferOffset>=this.buffers[0].length){this.shiftBuffer()}let C=this.buffers[0].slice(u-this.bufferOffset,y-this.bufferOffset);while(y-this.bufferOffset>this.buffers[0].length){this.shiftBuffer();C+=this.buffers[0].slice(0,y-this.bufferOffset)}return C}shiftBuffer(){this.bufferOffset+=this.buffers[0].length;this.writeIndex--;this.buffers.shift()}write(u){var y,C;if(this.ended){(C=(y=this.cbs).onerror)===null||C===void 0?void 0:C.call(y,new Error(".write() after done!"));return}this.buffers.push(u);if(this.tokenizer.running){this.tokenizer.write(u);this.writeIndex++}}end(u){var y,C;if(this.ended){(C=(y=this.cbs).onerror)===null||C===void 0?void 0:C.call(y,new Error(".end() after done!"));return}if(u)this.write(u);this.ended=true;this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex<this.buffers.length){this.tokenizer.write(this.buffers[this.writeIndex++])}if(this.ended)this.tokenizer.end()}parseChunk(u){this.write(u)}done(u){this.end(u)}}const jd=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u=>u.charCodeAt(0))));const $d=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u=>u.charCodeAt(0))));var qd;const eA=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const tA=(qd=String.fromCodePoint)!==null&&qd!==void 0?qd:function(u){let y="";if(u>65535){u-=65536;y+=String.fromCharCode(u>>>10&1023|55296);u=56320|u&1023}y+=String.fromCharCode(u);return y};function decode_codepoint_replaceCodePoint(u){var y;if(u>=55296&&u<=57343||u>1114111){return 65533}return(y=eA.get(u))!==null&&y!==void 0?y:u}function decode_codepoint_decodeCodePoint(u){return tA(decode_codepoint_replaceCodePoint(u))}var rA;(function(u){u[u["NUM"]=35]="NUM";u[u["SEMI"]=59]="SEMI";u[u["EQUALS"]=61]="EQUALS";u[u["ZERO"]=48]="ZERO";u[u["NINE"]=57]="NINE";u[u["LOWER_A"]=97]="LOWER_A";u[u["LOWER_F"]=102]="LOWER_F";u[u["LOWER_X"]=120]="LOWER_X";u[u["LOWER_Z"]=122]="LOWER_Z";u[u["UPPER_A"]=65]="UPPER_A";u[u["UPPER_F"]=70]="UPPER_F";u[u["UPPER_Z"]=90]="UPPER_Z"})(rA||(rA={}));const nA=32;var iA;(function(u){u[u["VALUE_LENGTH"]=49152]="VALUE_LENGTH";u[u["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";u[u["JUMP_TABLE"]=127]="JUMP_TABLE"})(iA||(iA={}));function esm_decode_isNumber(u){return u>=rA.ZERO&&u<=rA.NINE}function decode_isHexadecimalCharacter(u){return u>=rA.UPPER_A&&u<=rA.UPPER_F||u>=rA.LOWER_A&&u<=rA.LOWER_F}function decode_isAsciiAlphaNumeric(u){return u>=rA.UPPER_A&&u<=rA.UPPER_Z||u>=rA.LOWER_A&&u<=rA.LOWER_Z||esm_decode_isNumber(u)}function decode_isEntityInAttributeInvalidEnd(u){return u===rA.EQUALS||decode_isAsciiAlphaNumeric(u)}var sA;(function(u){u[u["EntityStart"]=0]="EntityStart";u[u["NumericStart"]=1]="NumericStart";u[u["NumericDecimal"]=2]="NumericDecimal";u[u["NumericHex"]=3]="NumericHex";u[u["NamedEntity"]=4]="NamedEntity"})(sA||(sA={}));var oA;(function(u){u[u["Legacy"]=0]="Legacy";u[u["Strict"]=1]="Strict";u[u["Attribute"]=2]="Attribute"})(oA||(oA={}));class decode_EntityDecoder{constructor(u,y,C){this.decodeTree=u;this.emitCodePoint=y;this.errors=C;this.state=sA.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=oA.Strict}startEntity(u){this.decodeMode=u;this.state=sA.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(u,y){switch(this.state){case sA.EntityStart:{if(u.charCodeAt(y)===rA.NUM){this.state=sA.NumericStart;this.consumed+=1;return this.stateNumericStart(u,y+1)}this.state=sA.NamedEntity;return this.stateNamedEntity(u,y)}case sA.NumericStart:{return this.stateNumericStart(u,y)}case sA.NumericDecimal:{return this.stateNumericDecimal(u,y)}case sA.NumericHex:{return this.stateNumericHex(u,y)}case sA.NamedEntity:{return this.stateNamedEntity(u,y)}}}stateNumericStart(u,y){if(y>=u.length){return-1}if((u.charCodeAt(y)|nA)===rA.LOWER_X){this.state=sA.NumericHex;this.consumed+=1;return this.stateNumericHex(u,y+1)}this.state=sA.NumericDecimal;return this.stateNumericDecimal(u,y)}addToNumericResult(u,y,C,D){if(y!==C){const _=C-y;this.result=this.result*Math.pow(D,_)+parseInt(u.substr(y,_),D);this.consumed+=_}}stateNumericHex(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(esm_decode_isNumber(D)||decode_isHexadecimalCharacter(D)){y+=1}else{this.addToNumericResult(u,C,y,16);return this.emitNumericEntity(D,3)}}this.addToNumericResult(u,C,y,16);return-1}stateNumericDecimal(u,y){const C=y;while(y<u.length){const D=u.charCodeAt(y);if(esm_decode_isNumber(D)){y+=1}else{this.addToNumericResult(u,C,y,10);return this.emitNumericEntity(D,2)}}this.addToNumericResult(u,C,y,10);return-1}emitNumericEntity(u,y){var C;if(this.consumed<=y){(C=this.errors)===null||C===void 0?void 0:C.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(u===rA.SEMI){this.consumed+=1}else if(this.decodeMode===oA.Strict){return 0}this.emitCodePoint(decode_codepoint_replaceCodePoint(this.result),this.consumed);if(this.errors){if(u!==rA.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(u,y){const{decodeTree:C}=this;let D=C[this.treeIndex];let _=(D&iA.VALUE_LENGTH)>>14;for(;y<u.length;y++,this.excess++){const j=u.charCodeAt(y);this.treeIndex=decode_determineBranch(C,D,this.treeIndex+Math.max(1,_),j);if(this.treeIndex<0){return this.result===0||this.decodeMode===oA.Attribute&&(_===0||decode_isEntityInAttributeInvalidEnd(j))?0:this.emitNotTerminatedNamedEntity()}D=C[this.treeIndex];_=(D&iA.VALUE_LENGTH)>>14;if(_!==0){if(j===rA.SEMI){return this.emitNamedEntityData(this.treeIndex,_,this.consumed+this.excess)}if(this.decodeMode!==oA.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var u;const{result:y,decodeTree:C}=this;const D=(C[y]&iA.VALUE_LENGTH)>>14;this.emitNamedEntityData(y,D,this.consumed);(u=this.errors)===null||u===void 0?void 0:u.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(u,y,C){const{decodeTree:D}=this;this.emitCodePoint(y===1?D[u]&~iA.VALUE_LENGTH:D[u+1],C);if(y===3){this.emitCodePoint(D[u+2],C)}return C}end(){var u;switch(this.state){case sA.NamedEntity:{return this.result!==0&&(this.decodeMode!==oA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case sA.NumericDecimal:{return this.emitNumericEntity(0,2)}case sA.NumericHex:{return this.emitNumericEntity(0,3)}case sA.NumericStart:{(u=this.errors)===null||u===void 0?void 0:u.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case sA.EntityStart:{return 0}}}}function decode_getDecoder(u){let y="";const C=new decode_EntityDecoder(u,(u=>y+=tA(u)));return function decodeWithTrie(u,D){let _=0;let j=0;while((j=u.indexOf("&",j))>=0){y+=u.slice(_,j);C.startEntity(D);const $=C.write(u,j+1);if($<0){_=j+C.end();break}_=j+$;j=$===0?_+1:_}const $=y+u.slice(_);y="";return $}}function decode_determineBranch(u,y,C,D){const _=(y&iA.BRANCH_LENGTH)>>7;const j=y&iA.JUMP_TABLE;if(_===0){return j!==0&&D===j?C:-1}if(j){const y=D-j;return y<0||y>=_?-1:u[C+y]-1}let $=C;let ne=$+_-1;while($<=ne){const y=$+ne>>>1;const C=u[y];if(C<D){$=y+1}else if(C>D){ne=y-1}else{return u[y+_]}}return-1}const aA=decode_getDecoder(jd);const lA=decode_getDecoder($d);function esm_decode_decodeHTML(u,y=oA.Legacy){return aA(u,y)}function decode_decodeHTMLAttribute(u){return aA(u,oA.Attribute)}function decode_decodeHTMLStrict(u){return aA(u,oA.Strict)}function esm_decode_decodeXML(u){return lA(u,oA.Strict)}function restoreDiff(u){for(let y=1;y<u.length;y++){u[y][0]+=u[y-1][0]+1}return u}const cA=new Map(restoreDiff([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(restoreDiff([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(restoreDiff([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(restoreDiff([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const uA=/["&'<>$\x80-\uFFFF]/g;const fA=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);const dA=String.prototype.codePointAt!=null?(u,y)=>u.codePointAt(y):(u,y)=>(u.charCodeAt(y)&64512)===55296?(u.charCodeAt(y)-55296)*1024+u.charCodeAt(y+1)-56320+65536:u.charCodeAt(y);function escape_encodeXML(u){let y="";let C=0;let D;while((D=uA.exec(u))!==null){const _=D.index;const j=u.charCodeAt(_);const $=fA.get(j);if($!==undefined){y+=u.substring(C,_)+$;C=_+1}else{y+=`${u.substring(C,_)}&#x${dA(u,_).toString(16)};`;C=uA.lastIndex+=Number((j&64512)===55296)}}return y+u.substr(C)}const AA=null&&escape_encodeXML;function getEscaper(u,y){return function escape(C){let D;let _=0;let j="";while(D=u.exec(C)){if(_!==D.index){j+=C.substring(_,D.index)}j+=y.get(D[0].charCodeAt(0));_=D.index+1}return j+C.substring(_)}}const hA=getEscaper(/[&<>'"]/g,fA);const pA=getEscaper(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]));const gA=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));const mA=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encode_encodeHTML(u){return encodeHTMLTrieRe(mA,u)}function encode_encodeNonAsciiHTML(u){return encodeHTMLTrieRe(xmlReplacer,u)}function encodeHTMLTrieRe(u,y){let C="";let D=0;let _;while((_=u.exec(y))!==null){const j=_.index;C+=y.substring(D,j);const $=y.charCodeAt(j);let ne=htmlTrie.get($);if(typeof ne==="object"){if(j+1<y.length){const _=y.charCodeAt(j+1);const $=typeof ne.n==="number"?ne.n===_?ne.o:undefined:ne.n.get(_);if($!==undefined){C+=$;D=u.lastIndex+=1;continue}}ne=ne.v}if(ne!==undefined){C+=ne;D=j+1}else{const _=getCodePoint(y,j);C+=`&#x${_.toString(16)};`;D=u.lastIndex+=Number(_!==$)}}return C+y.substr(D)}var yA;(function(u){u[u["XML"]=0]="XML";u[u["HTML"]=1]="HTML"})(yA||(yA={}));var EA;(function(u){u[u["UTF8"]=0]="UTF8";u[u["ASCII"]=1]="ASCII";u[u["Extensive"]=2]="Extensive";u[u["Attribute"]=3]="Attribute";u[u["Text"]=4]="Text"})(EA||(EA={}));function decode(u,y=yA.XML){const C=typeof y==="number"?y:y.level;if(C===yA.HTML){const C=typeof y==="object"?y.mode:undefined;return decodeHTML(u,C)}return decodeXML(u)}function decodeStrict(u,y=yA.XML){var C;const D=typeof y==="number"?{level:y}:y;(C=D.mode)!==null&&C!==void 0?C:D.mode=DecodingMode.Strict;return decode(u,D)}function encode(u,y=yA.XML){const C=typeof y==="number"?{level:y}:y;if(C.mode===EA.UTF8)return escapeUTF8(u);if(C.mode===EA.Attribute)return escapeAttribute(u);if(C.mode===EA.Text)return escapeText(u);if(C.level===yA.HTML){if(C.mode===EA.ASCII){return encodeNonAsciiHTML(u)}return encodeHTML(u)}return encodeXML(u)}const CA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((u=>[u.toLowerCase(),u])));const IA=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((u=>[u.toLowerCase(),u])));const bA=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(u){return u.replace(/"/g,"&quot;")}function formatAttributes(u,y){var C;if(!u)return;const D=((C=y.encodeEntities)!==null&&C!==void 0?C:y.decodeEntities)===false?replaceQuotes:y.xmlMode||y.encodeEntities!=="utf8"?escape_encodeXML:pA;return Object.keys(u).map((C=>{var _,j;const $=(_=u[C])!==null&&_!==void 0?_:"";if(y.xmlMode==="foreign"){C=(j=IA.get(C))!==null&&j!==void 0?j:C}if(!y.emptyAttrs&&!y.xmlMode&&$===""){return C}return`${C}="${D($)}"`})).join(" ")}const vA=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render(u,y={}){const C="length"in u?u:[u];let D="";for(let u=0;u<C.length;u++){D+=renderNode(C[u],y)}return D}const wA=null&&render;function renderNode(u,y){switch(u.type){case Jc:return render(u.children,y);case iu:case Yc:return renderDirective(u);case Xc:return renderComment(u);case nu:return renderCdata(u);case eu:case tu:case ru:return renderTag(u,y);case Kc:return renderText(u,y)}}const BA=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]);const DA=new Set(["svg","math"]);function renderTag(u,y){var C;if(y.xmlMode==="foreign"){u.name=(C=CA.get(u.name))!==null&&C!==void 0?C:u.name;if(u.parent&&BA.has(u.parent.name)){y={...y,xmlMode:false}}}if(!y.xmlMode&&DA.has(u.name)){y={...y,xmlMode:"foreign"}}let D=`<${u.name}`;const _=formatAttributes(u.attribs,y);if(_){D+=` ${_}`}if(u.children.length===0&&(y.xmlMode?y.selfClosingTags!==false:y.selfClosingTags&&vA.has(u.name))){if(!y.xmlMode)D+=" ";D+="/>"}else{D+=">";if(u.children.length>0){D+=render(u.children,y)}if(y.xmlMode||!vA.has(u.name)){D+=`</${u.name}>`}}return D}function renderDirective(u){return`<${u.data}>`}function renderText(u,y){var C;let D=u.data||"";if(((C=y.encodeEntities)!==null&&C!==void 0?C:y.decodeEntities)!==false&&!(!y.xmlMode&&u.parent&&bA.has(u.parent.name))){D=y.xmlMode||y.encodeEntities!=="utf8"?escape_encodeXML(D):gA(D)}return D}function renderCdata(u){return`<![CDATA[${u.children[0].data}]]>`}function renderComment(u){return`\x3c!--${u.data}--\x3e`}function getOuterHTML(u,y){return renderHTML(u,y)}function getInnerHTML(u,y){return hasChildren(u)?u.children.map((u=>getOuterHTML(u,y))).join(""):""}function getText(u){if(Array.isArray(u))return u.map(getText).join("");if(isTag(u))return u.name==="br"?"\n":getText(u.children);if(isCDATA(u))return getText(u.children);if(isText(u))return u.data;return""}function stringify_textContent(u){if(Array.isArray(u))return u.map(stringify_textContent).join("");if(hasChildren(u)&&!isComment(u)){return stringify_textContent(u.children)}if(isText(u))return u.data;return""}function innerText(u){if(Array.isArray(u))return u.map(innerText).join("");if(hasChildren(u)&&(u.type===ElementType.Tag||isCDATA(u))){return innerText(u.children)}if(isText(u))return u.data;return""}function getChildren(u){return hasChildren(u)?u.children:[]}function getParent(u){return u.parent||null}function getSiblings(u){const y=getParent(u);if(y!=null)return getChildren(y);const C=[u];let{prev:D,next:_}=u;while(D!=null){C.unshift(D);({prev:D}=D)}while(_!=null){C.push(_);({next:_}=_)}return C}function getAttributeValue(u,y){var C;return(C=u.attribs)===null||C===void 0?void 0:C[y]}function hasAttrib(u,y){return u.attribs!=null&&Object.prototype.hasOwnProperty.call(u.attribs,y)&&u.attribs[y]!=null}function getName(u){return u.name}function nextElementSibling(u){let{next:y}=u;while(y!==null&&!isTag(y))({next:y}=y);return y}function prevElementSibling(u){let{prev:y}=u;while(y!==null&&!isTag(y))({prev:y}=y);return y}function querying_filter(u,y,C=true,D=Infinity){return find(u,Array.isArray(y)?y:[y],C,D)}function find(u,y,C,D){const _=[];const j=[Array.isArray(y)?y:[y]];const $=[0];for(;;){if($[0]>=j[0].length){if($.length===1){return _}j.shift();$.shift();continue}const y=j[0][$[0]++];if(u(y)){_.push(y);if(--D<=0)return _}if(C&&hasChildren(y)&&y.children.length>0){$.unshift(0);j.unshift(y.children)}}}function findOneChild(u,y){return y.find(u)}function querying_findOne(u,y,C=true){const D=Array.isArray(y)?y:[y];for(let y=0;y<D.length;y++){const _=D[y];if(isTag(_)&&u(_)){return _}if(C&&hasChildren(_)&&_.children.length>0){const y=querying_findOne(u,_.children,true);if(y)return y}}return null}function existsOne(u,y){return(Array.isArray(y)?y:[y]).some((y=>isTag(y)&&u(y)||hasChildren(y)&&existsOne(u,y.children)))}function findAll(u,y){const C=[];const D=[Array.isArray(y)?y:[y]];const _=[0];for(;;){if(_[0]>=D[0].length){if(D.length===1){return C}D.shift();_.shift();continue}const y=D[0][_[0]++];if(isTag(y)&&u(y))C.push(y);if(hasChildren(y)&&y.children.length>0){_.unshift(0);D.unshift(y.children)}}}const SA={tag_name(u){if(typeof u==="function"){return y=>node_isTag(y)&&u(y.name)}else if(u==="*"){return node_isTag}return y=>node_isTag(y)&&y.name===u},tag_type(u){if(typeof u==="function"){return y=>u(y.type)}return y=>y.type===u},tag_contains(u){if(typeof u==="function"){return y=>node_isText(y)&&u(y.data)}return y=>node_isText(y)&&y.data===u}};function getAttribCheck(u,y){if(typeof y==="function"){return C=>isTag(C)&&y(C.attribs[u])}return C=>isTag(C)&&C.attribs[u]===y}function combineFuncs(u,y){return C=>u(C)||y(C)}function compileTest(u){const y=Object.keys(u).map((y=>{const C=u[y];return Object.prototype.hasOwnProperty.call(SA,y)?SA[y](C):getAttribCheck(y,C)}));return y.length===0?null:y.reduce(combineFuncs)}function testElement(u,y){const C=compileTest(u);return C?C(y):true}function getElements(u,y,C,D=Infinity){const _=compileTest(u);return _?filter(_,y,C,D):[]}function getElementById(u,y,C=true){if(!Array.isArray(y))y=[y];return findOne(getAttribCheck("id",u),y,C)}function legacy_getElementsByTagName(u,y,C=true,D=Infinity){return filter(SA["tag_name"](u),y,C,D)}function getElementsByClassName(u,y,C=true,D=Infinity){return filter(getAttribCheck("class",u),y,C,D)}function getElementsByTagType(u,y,C=true,D=Infinity){return filter(SA["tag_type"](u),y,C,D)}function removeSubsets(u){let y=u.length;while(--y>=0){const C=u[y];if(y>0&&u.lastIndexOf(C,y-1)>=0){u.splice(y,1);continue}for(let D=C.parent;D;D=D.parent){if(u.includes(D)){u.splice(y,1);break}}}return u}var kA;(function(u){u[u["DISCONNECTED"]=1]="DISCONNECTED";u[u["PRECEDING"]=2]="PRECEDING";u[u["FOLLOWING"]=4]="FOLLOWING";u[u["CONTAINS"]=8]="CONTAINS";u[u["CONTAINED_BY"]=16]="CONTAINED_BY"})(kA||(kA={}));function compareDocumentPosition(u,y){const C=[];const D=[];if(u===y){return 0}let _=hasChildren(u)?u:u.parent;while(_){C.unshift(_);_=_.parent}_=hasChildren(y)?y:y.parent;while(_){D.unshift(_);_=_.parent}const j=Math.min(C.length,D.length);let $=0;while($<j&&C[$]===D[$]){$++}if($===0){return kA.DISCONNECTED}const ne=C[$-1];const oe=ne.children;const le=C[$];const de=D[$];if(oe.indexOf(le)>oe.indexOf(de)){if(ne===y){return kA.FOLLOWING|kA.CONTAINED_BY}return kA.FOLLOWING}if(ne===u){return kA.PRECEDING|kA.CONTAINS}return kA.PRECEDING}function uniqueSort(u){u=u.filter(((u,y,C)=>!C.includes(u,y+1)));u.sort(((u,y)=>{const C=compareDocumentPosition(u,y);if(C&kA.PRECEDING){return-1}else if(C&kA.FOLLOWING){return 1}return 0}));return u}function feeds_getFeed(u){const y=getOneElement(isValidFeed,u);return!y?null:y.name==="feed"?getAtomFeed(y):getRssFeed(y)}function getAtomFeed(u){var y;const C=u.children;const D={type:"atom",items:getElementsByTagName("entry",C).map((u=>{var y;const{children:C}=u;const D={media:getMediaElements(C)};addConditionally(D,"id","id",C);addConditionally(D,"title","title",C);const _=(y=getOneElement("link",C))===null||y===void 0?void 0:y.attribs["href"];if(_){D.link=_}const j=feeds_fetch("summary",C)||feeds_fetch("content",C);if(j){D.description=j}const $=feeds_fetch("updated",C);if($){D.pubDate=new Date($)}return D}))};addConditionally(D,"id","id",C);addConditionally(D,"title","title",C);const _=(y=getOneElement("link",C))===null||y===void 0?void 0:y.attribs["href"];if(_){D.link=_}addConditionally(D,"description","subtitle",C);const j=feeds_fetch("updated",C);if(j){D.updated=new Date(j)}addConditionally(D,"author","email",C,true);return D}function getRssFeed(u){var y,C;const D=(C=(y=getOneElement("channel",u.children))===null||y===void 0?void 0:y.children)!==null&&C!==void 0?C:[];const _={type:u.name.substr(0,3),id:"",items:getElementsByTagName("item",u.children).map((u=>{const{children:y}=u;const C={media:getMediaElements(y)};addConditionally(C,"id","guid",y);addConditionally(C,"title","title",y);addConditionally(C,"link","link",y);addConditionally(C,"description","description",y);const D=feeds_fetch("pubDate",y)||feeds_fetch("dc:date",y);if(D)C.pubDate=new Date(D);return C}))};addConditionally(_,"title","title",D);addConditionally(_,"link","link",D);addConditionally(_,"description","description",D);const j=feeds_fetch("lastBuildDate",D);if(j){_.updated=new Date(j)}addConditionally(_,"author","managingEditor",D,true);return _}const QA=null&&["url","type","lang"];const xA=null&&["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(u){return getElementsByTagName("media:content",u).map((u=>{const{attribs:y}=u;const C={medium:y["medium"],isDefault:!!y["isDefault"]};for(const u of QA){if(y[u]){C[u]=y[u]}}for(const u of xA){if(y[u]){C[u]=parseInt(y[u],10)}}if(y["expression"]){C.expression=y["expression"]}return C}))}function getOneElement(u,y){return getElementsByTagName(u,y,true,1)[0]}function feeds_fetch(u,y,C=false){return textContent(getElementsByTagName(u,y,C,1)).trim()}function addConditionally(u,y,C,D,_=false){const j=feeds_fetch(C,D,_);if(j)u[y]=j}function isValidFeed(u){return u==="rss"||u==="feed"||u==="rdf:RDF"}function parseDocument(u,y){const C=new esm_DomHandler(undefined,y);new Parser_Parser(C,y).end(u);return C.root}function parseDOM(u,y){return parseDocument(u,y).children}function createDomStream(u,y,C){const D=new DomHandler(u,y,C);return new Parser(D,y)}const FA={xmlMode:true};function parseFeed(u,y=FA){return getFeed(parseDOM(u,y))}var _A=C(2569);function limitedDepthRecursive(u,y,C=()=>undefined){if(u===undefined){const f1=function(...u){return y(f1,...u)};return f1}if(u>=0){return function(...D){return y(limitedDepthRecursive(u-1,y,C),...D)}}return C}function trimCharacter(u,y){let C=0;let D=u.length;while(C<D&&u[C]===y){++C}while(D>C&&u[D-1]===y){--D}return C>0||D<u.length?u.substring(C,D):u}function trimCharacterEnd(u,y){let C=u.length;while(C>0&&u[C-1]===y){--C}return C<u.length?u.substring(0,C):u}function unicodeEscape(u){return u.replace(/[\s\S]/g,(u=>"\\u"+u.charCodeAt().toString(16).padStart(4,"0")))}function mergeDuplicatesPreferLast(u,y){const C=new Map;for(let D=u.length;D-- >0;){const _=u[D];const j=y(_);C.set(j,C.has(j)?_A(_,C.get(j),{arrayMerge:overwriteMerge$1}):_)}return[...C.values()].reverse()}const overwriteMerge$1=(u,y,C)=>[...y];function get(u,y){for(const C of y){if(!u){return undefined}u=u[C]}return u}function numberToLetterSequence(u,y="a",C=26){const D=[];do{u-=1;D.push(u%C);u=u/C>>0}while(u>0);const _=y.charCodeAt(0);return D.reverse().map((u=>String.fromCharCode(_+u))).join("")}const RA=["I","X","C","M"];const LA=["V","L","D"];function numberToRoman(u){return[...u+""].map((u=>+u)).reverse().map(((u,y)=>u%5<4?(u<5?"":LA[y])+RA[y].repeat(u%5):RA[y]+(u<5?LA[y]:RA[y+1]))).reverse().join("")}class InlineTextBuilder{constructor(u,y=undefined){this.lines=[];this.nextLineWords=[];this.maxLineLength=y||u.wordwrap||Number.MAX_VALUE;this.nextLineAvailableChars=this.maxLineLength;this.wrapCharacters=get(u,["longWordSplit","wrapCharacters"])||[];this.forceWrapOnLimit=get(u,["longWordSplit","forceWrapOnLimit"])||false;this.stashedSpace=false;this.wordBreakOpportunity=false}pushWord(u,y=false){if(this.nextLineAvailableChars<=0&&!y){this.startNewLine()}const C=this.nextLineWords.length===0;const D=u.length+(C?0:1);if(D<=this.nextLineAvailableChars||y){this.nextLineWords.push(u);this.nextLineAvailableChars-=D}else{const[y,...D]=this.splitLongWord(u);if(!C){this.startNewLine()}this.nextLineWords.push(y);this.nextLineAvailableChars-=y.length;for(const u of D){this.startNewLine();this.nextLineWords.push(u);this.nextLineAvailableChars-=u.length}}}popWord(){const u=this.nextLineWords.pop();if(u!==undefined){const y=this.nextLineWords.length===0;const C=u.length+(y?0:1);this.nextLineAvailableChars+=C}return u}concatWord(u,y=false){if(this.wordBreakOpportunity&&u.length>this.nextLineAvailableChars){this.pushWord(u,y);this.wordBreakOpportunity=false}else{const C=this.popWord();this.pushWord(C?C.concat(u):u,y)}}startNewLine(u=1){this.lines.push(this.nextLineWords);if(u>1){this.lines.push(...Array.from({length:u-1},(()=>[])))}this.nextLineWords=[];this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0;this.nextLineWords.length=0;this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((u=>u.join(" "))).join("\n")}splitLongWord(u){const y=[];let C=0;while(u.length>this.maxLineLength){const D=u.substring(0,this.maxLineLength);const _=u.substring(this.maxLineLength);const j=D.lastIndexOf(this.wrapCharacters[C]);if(j>-1){u=D.substring(j+1)+_;y.push(D.substring(0,j+1))}else{C++;if(C<this.wrapCharacters.length){u=D+_}else{if(this.forceWrapOnLimit){y.push(D);u=_;if(u.length>this.maxLineLength){continue}}else{u=D+_}break}}}y.push(u);return y}}class StackItem{constructor(u=null){this.next=u}getRoot(){return this.next?this.next:this}}class BlockStackItem extends StackItem{constructor(u,y=null,C=1,D=undefined){super(y);this.leadingLineBreaks=C;this.inlineTextBuilder=new InlineTextBuilder(u,D);this.rawText="";this.stashedLineBreaks=0;this.isPre=y&&y.isPre;this.isNoWrap=y&&y.isNoWrap}}class ListStackItem extends BlockStackItem{constructor(u,y=null,{interRowLineBreaks:C=1,leadingLineBreaks:D=2,maxLineLength:_=undefined,maxPrefixLength:j=0,prefixAlign:$="left"}={}){super(u,y,D,_);this.maxPrefixLength=j;this.prefixAlign=$;this.interRowLineBreaks=C}}class ListItemStackItem extends BlockStackItem{constructor(u,y=null,{leadingLineBreaks:C=1,maxLineLength:D=undefined,prefix:_=""}={}){super(u,y,C,D);this.prefix=_}}class TableStackItem extends StackItem{constructor(u=null){super(u);this.rows=[];this.isPre=u&&u.isPre;this.isNoWrap=u&&u.isNoWrap}}class TableRowStackItem extends StackItem{constructor(u=null){super(u);this.cells=[];this.isPre=u&&u.isPre;this.isNoWrap=u&&u.isNoWrap}}class TableCellStackItem extends StackItem{constructor(u,y=null,C=undefined){super(y);this.inlineTextBuilder=new InlineTextBuilder(u,C);this.rawText="";this.stashedLineBreaks=0;this.isPre=y&&y.isPre;this.isNoWrap=y&&y.isNoWrap}}class TransformerStackItem extends StackItem{constructor(u=null,y){super(u);this.transform=y}}function charactersToCodes(u){return[...u].map((u=>"\\u"+u.charCodeAt(0).toString(16).padStart(4,"0"))).join("")}class WhitespaceProcessor{constructor(u){this.whitespaceChars=u.preserveNewlines?u.whitespaceCharacters.replace(/\n/g,""):u.whitespaceCharacters;const y=charactersToCodes(this.whitespaceChars);this.leadingWhitespaceRe=new RegExp(`^[${y}]`);this.trailingWhitespaceRe=new RegExp(`[${y}]$`);this.allWhitespaceOrEmptyRe=new RegExp(`^[${y}]*$`);this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${y}])`,"g");this.newlineOrNonNewlineStringRe=new RegExp(`(\\n|[^\\n]+)`,"g");if(u.preserveNewlines){const u=new RegExp(`\\n|[^\\n${y}]+`,"gm");this.shrinkWrapAdd=function(y,C,D=u=>u,_=false){if(!y){return}const j=C.stashedSpace;let $=false;let ne=u.exec(y);if(ne){$=true;if(ne[0]==="\n"){C.startNewLine()}else if(j||this.testLeadingWhitespace(y)){C.pushWord(D(ne[0]),_)}else{C.concatWord(D(ne[0]),_)}while((ne=u.exec(y))!==null){if(ne[0]==="\n"){C.startNewLine()}else{C.pushWord(D(ne[0]),_)}}}C.stashedSpace=j&&!$||this.testTrailingWhitespace(y)}}else{const u=new RegExp(`[^${y}]+`,"g");this.shrinkWrapAdd=function(y,C,D=u=>u,_=false){if(!y){return}const j=C.stashedSpace;let $=false;let ne=u.exec(y);if(ne){$=true;if(j||this.testLeadingWhitespace(y)){C.pushWord(D(ne[0]),_)}else{C.concatWord(D(ne[0]),_)}while((ne=u.exec(y))!==null){C.pushWord(D(ne[0]),_)}}C.stashedSpace=j&&!$||this.testTrailingWhitespace(y)}}}addLiteral(u,y,C=true){if(!u){return}const D=y.stashedSpace;let _=false;let j=this.newlineOrNonNewlineStringRe.exec(u);if(j){_=true;if(j[0]==="\n"){y.startNewLine()}else if(D){y.pushWord(j[0],C)}else{y.concatWord(j[0],C)}while((j=this.newlineOrNonNewlineStringRe.exec(u))!==null){if(j[0]==="\n"){y.startNewLine()}else{y.pushWord(j[0],C)}}}y.stashedSpace=D&&!_}testLeadingWhitespace(u){return this.leadingWhitespaceRe.test(u)}testTrailingWhitespace(u){return this.trailingWhitespaceRe.test(u)}testContainsWords(u){return!this.allWhitespaceOrEmptyRe.test(u)}countNewlinesNoWords(u){this.newlineOrNonWhitespaceRe.lastIndex=0;let y=0;let C;while((C=this.newlineOrNonWhitespaceRe.exec(u))!==null){if(C[0]==="\n"){y++}else{return 0}}return y}}class BlockTextBuilder{constructor(u,y,C=undefined){this.options=u;this.picker=y;this.metadata=C;this.whitespaceProcessor=new WhitespaceProcessor(u);this._stackItem=new BlockStackItem(u);this._wordTransformer=undefined}pushWordTransform(u){this._wordTransformer=new TransformerStackItem(this._wordTransformer,u)}popWordTransform(){if(!this._wordTransformer){return undefined}const u=this._wordTransformer.transform;this._wordTransformer=this._wordTransformer.next;return u}startNoWrap(){this._stackItem.isNoWrap=true}stopNoWrap(){this._stackItem.isNoWrap=false}_getCombinedWordTransformer(){const u=this._wordTransformer?u=>applyTransformer(u,this._wordTransformer):undefined;const y=this.options.encodeCharacters;return u?y?C=>y(u(C)):u:y}_popStackItem(){const u=this._stackItem;this._stackItem=u.next;return u}addLineBreak(){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(this._stackItem.isPre){this._stackItem.rawText+="\n"}else{this._stackItem.inlineTextBuilder.startNewLine()}}addWordBreakOpportunity(){if(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem){this._stackItem.inlineTextBuilder.wordBreakOpportunity=true}}addInline(u,{noWordTransform:y=false}={}){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(this._stackItem.isPre){this._stackItem.rawText+=u;return}if(u.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(u)){return}if(this.options.preserveNewlines){const y=this.whitespaceProcessor.countNewlinesNoWords(u);if(y>0){this._stackItem.inlineTextBuilder.startNewLine(y);return}}if(this._stackItem.stashedLineBreaks){this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks)}this.whitespaceProcessor.shrinkWrapAdd(u,this._stackItem.inlineTextBuilder,y?undefined:this._getCombinedWordTransformer(),this._stackItem.isNoWrap);this._stackItem.stashedLineBreaks=0}addLiteral(u){if(!(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)){return}if(u.length===0){return}if(this._stackItem.isPre){this._stackItem.rawText+=u;return}if(this._stackItem.stashedLineBreaks){this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks)}this.whitespaceProcessor.addLiteral(u,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap);this._stackItem.stashedLineBreaks=0}openBlock({leadingLineBreaks:u=1,reservedLineLength:y=0,isPre:C=false}={}){const D=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-y);this._stackItem=new BlockStackItem(this.options,this._stackItem,u,D);if(C){this._stackItem.isPre=true}}closeBlock({trailingLineBreaks:u=1,blockTransform:y=undefined}={}){const C=this._popStackItem();const D=y?y(html_to_text_getText(C)):html_to_text_getText(C);addText(this._stackItem,D,C.leadingLineBreaks,Math.max(C.stashedLineBreaks,u))}openList({maxPrefixLength:u=0,prefixAlign:y="left",interRowLineBreaks:C=1,leadingLineBreaks:D=2}={}){this._stackItem=new ListStackItem(this.options,this._stackItem,{interRowLineBreaks:C,leadingLineBreaks:D,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:u,prefixAlign:y})}openListItem({prefix:u=""}={}){if(!(this._stackItem instanceof ListStackItem)){throw new Error("Can't add a list item to something that is not a list! Check the formatter.")}const y=this._stackItem;const C=Math.max(u.length,y.maxPrefixLength);const D=Math.max(20,y.inlineTextBuilder.maxLineLength-C);this._stackItem=new ListItemStackItem(this.options,y,{prefix:u,maxLineLength:D,leadingLineBreaks:y.interRowLineBreaks})}closeListItem(){const u=this._popStackItem();const y=u.next;const C=Math.max(u.prefix.length,y.maxPrefixLength);const D="\n"+" ".repeat(C);const _=y.prefixAlign==="right"?u.prefix.padStart(C):u.prefix.padEnd(C);const j=_+html_to_text_getText(u).replace(/\n/g,D);addText(y,j,u.leadingLineBreaks,Math.max(u.stashedLineBreaks,y.interRowLineBreaks))}closeList({trailingLineBreaks:u=2}={}){const y=this._popStackItem();const C=html_to_text_getText(y);if(C){addText(this._stackItem,C,y.leadingLineBreaks,u)}}openTable(){this._stackItem=new TableStackItem(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof TableStackItem)){throw new Error("Can't add a table row to something that is not a table! Check the formatter.")}this._stackItem=new TableRowStackItem(this._stackItem)}openTableCell({maxColumnWidth:u=undefined}={}){if(!(this._stackItem instanceof TableRowStackItem)){throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.")}this._stackItem=new TableCellStackItem(this.options,this._stackItem,u)}closeTableCell({colspan:u=1,rowspan:y=1}={}){const C=this._popStackItem();const D=trimCharacter(html_to_text_getText(C),"\n");C.next.cells.push({colspan:u,rowspan:y,text:D})}closeTableRow(){const u=this._popStackItem();u.next.rows.push(u.cells)}closeTable({tableToString:u,leadingLineBreaks:y=2,trailingLineBreaks:C=2}){const D=this._popStackItem();const _=u(D.rows);if(_){addText(this._stackItem,_,y,C)}}toString(){return html_to_text_getText(this._stackItem.getRoot())}}function html_to_text_getText(u){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem)){throw new Error("Only blocks, list items and table cells can be requested for text contents.")}return u.inlineTextBuilder.isEmpty()?u.rawText:u.rawText+u.inlineTextBuilder.toString()}function addText(u,y,C,D){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem)){throw new Error("Only blocks, list items and table cells can contain text.")}const _=html_to_text_getText(u);const j=Math.max(u.stashedLineBreaks,C);u.inlineTextBuilder.clear();if(_){u.rawText=_+"\n".repeat(j)+y}else{u.rawText=y;u.leadingLineBreaks=j}u.stashedLineBreaks=D}function applyTransformer(u,y){return y?applyTransformer(y.transform(u),y.next):u}function compile$1(u={}){const y=u.selectors.filter((u=>!u.format));if(y.length){throw new Error("Following selectors have no specified format: "+y.map((u=>`\`${u.selector}\``)).join(", "))}const C=new DecisionTree(u.selectors.map((u=>[u.selector,u]))).build(hp2Builder);if(typeof u.encodeCharacters!=="function"){u.encodeCharacters=makeReplacerFromDict(u.encodeCharacters)}const D=new DecisionTree(u.baseElements.selectors.map(((u,y)=>[u,y+1]))).build(hp2Builder);function findBaseElements(y){return findBases(y,u,D)}const _=limitedDepthRecursive(u.limits.maxDepth,recursiveWalk,(function(y,C){C.addInline(u.limits.ellipsis||"")}));return function(y,D=undefined){return html_to_text_process(y,D,u,C,findBaseElements,_)}}function html_to_text_process(u,y,C,D,_,j){const $=C.limits.maxInputLength;if($&&u&&u.length>$){console.warn(`Input length ${u.length} is above allowed limit of ${$}. Truncating without ellipsis.`);u=u.substring(0,$)}const ne=parseDocument(u,{decodeEntities:C.decodeEntities});const oe=_(ne.children);const le=new BlockTextBuilder(C,D,y);j(oe,le);return le.toString()}function findBases(u,y,C){const D=[];function recursiveWalk(u,_){_=_.slice(0,y.limits.maxChildNodes);for(const j of _){if(j.type!=="tag"){continue}const _=C.pick1(j);if(_>0){D.push({selectorIndex:_,element:j})}else if(j.children){u(j.children)}if(D.length>=y.limits.maxBaseElements){return}}}const _=limitedDepthRecursive(y.limits.maxDepth,recursiveWalk);_(u);if(y.baseElements.orderBy!=="occurrence"){D.sort(((u,y)=>u.selectorIndex-y.selectorIndex))}return y.baseElements.returnDomByDefault&&D.length===0?u:D.map((u=>u.element))}function recursiveWalk(u,y,C){if(!y){return}const D=C.options;const _=y.length>D.limits.maxChildNodes;if(_){y=y.slice(0,D.limits.maxChildNodes);y.push({data:D.limits.ellipsis,type:"text"})}for(const _ of y){switch(_.type){case"text":{C.addInline(_.data);break}case"tag":{const y=C.picker.pick1(_);const j=D.formatters[y.format];j(_,u,C,y.options||{});break}}}return}function makeReplacerFromDict(u){if(!u||Object.keys(u).length===0){return undefined}const y=Object.entries(u).filter((([,u])=>u!==false));const C=new RegExp(y.map((([u])=>`(${unicodeEscape([...u][0])})`)).join("|"),"g");const D=y.map((([,u])=>u));const replacer=(u,...y)=>D[y.findIndex((u=>u))];return u=>u.replace(C,replacer)}function formatSkip(u,y,C,D){}function formatInlineString(u,y,C,D){C.addLiteral(D.string||"")}function formatBlockString(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.addLiteral(D.string||"");C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInline(u,y,C,D){y(u.children,C)}function formatBlock$1(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function renderOpenTag(u){const y=u.attribs&&u.attribs.length?" "+Object.entries(u.attribs).map((([u,y])=>y===""?u:`${u}=${y.replace(/"/g,"&quot;")}`)).join(" "):"";return`<${u.name}${y}>`}function renderCloseTag(u){return`</${u.name}>`}function formatInlineTag(u,y,C,D){C.startNoWrap();C.addLiteral(renderOpenTag(u));C.stopNoWrap();y(u.children,C);C.startNoWrap();C.addLiteral(renderCloseTag(u));C.stopNoWrap()}function formatBlockTag(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.startNoWrap();C.addLiteral(renderOpenTag(u));C.stopNoWrap();y(u.children,C);C.startNoWrap();C.addLiteral(renderCloseTag(u));C.stopNoWrap();C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInlineHtml(u,y,C,D){C.startNoWrap();C.addLiteral(render(u,{decodeEntities:C.options.decodeEntities}));C.stopNoWrap()}function formatBlockHtml(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.startNoWrap();C.addLiteral(render(u,{decodeEntities:C.options.decodeEntities}));C.stopNoWrap();C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatInlineSurround(u,y,C,D){C.addLiteral(D.prefix||"");y(u.children,C);C.addLiteral(D.suffix||"")}var NA=Object.freeze({__proto__:null,block:formatBlock$1,blockHtml:formatBlockHtml,blockString:formatBlockString,blockTag:formatBlockTag,inline:formatInline,inlineHtml:formatInlineHtml,inlineString:formatInlineString,inlineSurround:formatInlineSurround,inlineTag:formatInlineTag,skip:formatSkip});function getRow(u,y){if(!u[y]){u[y]=[]}return u[y]}function findFirstVacantIndex(u,y=0){while(u[y]){y++}return y}function transposeInPlace(u,y){for(let C=0;C<y;C++){const y=getRow(u,C);for(let D=0;D<C;D++){const _=getRow(u,D);if(y[D]||_[C]){const u=y[D];y[D]=_[C];_[C]=u}}}}function putCellIntoLayout(u,y,C,D){for(let _=0;_<u.rowspan;_++){const j=getRow(y,C+_);for(let y=0;y<u.colspan;y++){j[D+y]=u}}}function getOrInitOffset(u,y){if(u[y]===undefined){u[y]=y===0?0:1+getOrInitOffset(u,y-1)}return u[y]}function updateOffset(u,y,C,D){u[y+C]=Math.max(getOrInitOffset(u,y+C),getOrInitOffset(u,y)+D)}function tableToString(u,y,C){const D=[];let _=0;const j=u.length;const $=[0];for(let C=0;C<j;C++){const j=getRow(D,C);const ne=u[C];let oe=0;for(let u=0;u<ne.length;u++){const _=ne[u];oe=findFirstVacantIndex(j,oe);putCellIntoLayout(_,D,C,oe);oe+=_.colspan;_.lines=_.text.split("\n");const le=_.lines.length;updateOffset($,C,_.rowspan,le+y)}_=j.length>_?j.length:_}transposeInPlace(D,j>_?j:_);const ne=[];const oe=[0];for(let u=0;u<_;u++){let y=0;let _;const le=Math.min(j,D[u].length);while(y<le){_=D[u][y];if(_){if(!_.rendered){let D=0;for(let C=0;C<_.lines.length;C++){const j=_.lines[C];const le=$[y]+C;ne[le]=(ne[le]||"").padEnd(oe[u])+j;D=j.length>D?j.length:D}updateOffset(oe,u,_.colspan,D+C);_.rendered=true}y+=_.rowspan}else{const u=$[y];ne[u]=ne[u]||"";y++}}}return ne.join("\n")}function formatLineBreak(u,y,C,D){C.addLineBreak()}function formatWbr(u,y,C,D){C.addWordBreakOpportunity()}function formatHorizontalLine(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});C.addInline("-".repeat(D.length||C.options.wordwrap||40));C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatParagraph(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatPre(u,y,C,D){C.openBlock({isPre:true,leadingLineBreaks:D.leadingLineBreaks||2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatHeading(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2});if(D.uppercase!==false){C.pushWordTransform((u=>u.toUpperCase()));y(u.children,C);C.popWordTransform()}else{y(u.children,C)}C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2})}function formatBlockquote(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks||2,reservedLineLength:2});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks||2,blockTransform:u=>(D.trimEmptyLines!==false?trimCharacter(u,"\n"):u).split("\n").map((u=>"> "+u)).join("\n")})}function withBrackets(u,y){if(!y){return u}const C=typeof y[0]==="string"?y[0]:"[";const D=typeof y[1]==="string"?y[1]:"]";return C+u+D}function pathRewrite(u,y,C,D,_){const j=typeof y==="function"?y(u,D,_):u;return j[0]==="/"&&C?trimCharacterEnd(C,"/")+j:j}function formatImage(u,y,C,D){const _=u.attribs||{};const j=_.alt?_.alt:"";const $=!_.src?"":pathRewrite(_.src,D.pathRewrite,D.baseUrl,C.metadata,u);const ne=!$?j:!j?withBrackets($,D.linkBrackets):j+" "+withBrackets($,D.linkBrackets);C.addInline(ne,{noWordTransform:true})}function formatAnchor(u,y,C,D){function getHref(){if(D.ignoreHref){return""}if(!u.attribs||!u.attribs.href){return""}let y=u.attribs.href.replace(/^mailto:/,"");if(D.noAnchorUrl&&y[0]==="#"){return""}y=pathRewrite(y,D.pathRewrite,D.baseUrl,C.metadata,u);return y}const _=getHref();if(!_){y(u.children,C)}else{let j="";C.pushWordTransform((u=>{if(u){j+=u}return u}));y(u.children,C);C.popWordTransform();const $=D.hideLinkHrefIfSameAsText&&_===j;if(!$){C.addInline(!j?_:" "+withBrackets(_,D.linkBrackets),{noWordTransform:true})}}}function formatList(u,y,C,D,_){const j=get(u,["parent","name"])==="li";let $=0;const ne=(u.children||[]).filter((u=>u.type!=="text"||!/^\s*$/.test(u.data))).map((function(u){if(u.name!=="li"){return{node:u,prefix:""}}const y=j?_().trimStart():_();if(y.length>$){$=y.length}return{node:u,prefix:y}}));if(!ne.length){return}C.openList({interRowLineBreaks:1,leadingLineBreaks:j?1:D.leadingLineBreaks||2,maxPrefixLength:$,prefixAlign:"left"});for(const{node:u,prefix:D}of ne){C.openListItem({prefix:D});y([u],C);C.closeListItem()}C.closeList({trailingLineBreaks:j?1:D.trailingLineBreaks||2})}function formatUnorderedList(u,y,C,D){const _=D.itemPrefix||" * ";return formatList(u,y,C,D,(()=>_))}function formatOrderedList(u,y,C,D){let _=Number(u.attribs.start||"1");const j=getOrderedListIndexFunction(u.attribs.type);const nextPrefixCallback=()=>" "+j(_++)+". ";return formatList(u,y,C,D,nextPrefixCallback)}function getOrderedListIndexFunction(u="1"){switch(u){case"a":return u=>numberToLetterSequence(u,"a");case"A":return u=>numberToLetterSequence(u,"A");case"i":return u=>numberToRoman(u).toLowerCase();case"I":return u=>numberToRoman(u);case"1":default:return u=>u.toString()}}function splitClassesAndIds(u){const y=[];const C=[];for(const D of u){if(D.startsWith(".")){y.push(D.substring(1))}else if(D.startsWith("#")){C.push(D.substring(1))}}return{classes:y,ids:C}}function isDataTable(u,y){if(y===true){return true}if(!u){return false}const{classes:C,ids:D}=splitClassesAndIds(y);const _=(u["class"]||"").split(" ");const j=(u["id"]||"").split(" ");return _.some((u=>C.includes(u)))||j.some((u=>D.includes(u)))}function formatTable(u,y,C,D){return isDataTable(u.attribs,C.options.tables)?formatDataTable(u,y,C,D):formatBlock(u,y,C,D)}function formatBlock(u,y,C,D){C.openBlock({leadingLineBreaks:D.leadingLineBreaks});y(u.children,C);C.closeBlock({trailingLineBreaks:D.trailingLineBreaks})}function formatDataTable(u,y,C,D){C.openTable();u.children.forEach(walkTable);C.closeTable({tableToString:u=>tableToString(u,D.rowSpacing??0,D.colSpacing??3),leadingLineBreaks:D.leadingLineBreaks,trailingLineBreaks:D.trailingLineBreaks});function formatCell(u){const _=+get(u,["attribs","colspan"])||1;const j=+get(u,["attribs","rowspan"])||1;C.openTableCell({maxColumnWidth:D.maxColumnWidth});y(u.children,C);C.closeTableCell({colspan:_,rowspan:j})}function walkTable(u){if(u.type!=="tag"){return}const y=D.uppercaseHeaderCells!==false?u=>{C.pushWordTransform((u=>u.toUpperCase()));formatCell(u);C.popWordTransform()}:formatCell;switch(u.name){case"thead":case"tbody":case"tfoot":case"center":u.children.forEach(walkTable);return;case"tr":{C.openTableRow();for(const C of u.children){if(C.type!=="tag"){continue}switch(C.name){case"th":{y(C);break}case"td":{formatCell(C);break}}}C.closeTableRow();break}}}}var TA=Object.freeze({__proto__:null,anchor:formatAnchor,blockquote:formatBlockquote,dataTable:formatDataTable,heading:formatHeading,horizontalLine:formatHorizontalLine,image:formatImage,lineBreak:formatLineBreak,orderedList:formatOrderedList,paragraph:formatParagraph,pre:formatPre,table:formatTable,unorderedList:formatUnorderedList,wbr:formatWbr});const PA={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:true},decodeEntities:true,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:undefined,maxChildNodes:undefined,maxDepth:undefined,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:false,wrapCharacters:[]},preserveNewlines:false,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:false,ignoreHref:false,linkBrackets:["[","]"],noAnchorUrl:true}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:true}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:true}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:true}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:undefined,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:true}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f​",wordwrap:80};const concatMerge=(u,y,C)=>[...u,...y];const overwriteMerge=(u,y,C)=>[...y];const selectorsMerge=(u,y,C)=>u.some((u=>typeof u==="object"))?concatMerge(u,y):overwriteMerge(u,y);function compile(u={}){u=_A(PA,u,{arrayMerge:overwriteMerge,customMerge:u=>u==="selectors"?selectorsMerge:undefined});u.formatters=Object.assign({},NA,TA,u.formatters);u.selectors=mergeDuplicatesPreferLast(u.selectors,(u=>u.selector));handleDeprecatedOptions(u);return compile$1(u)}function convert(u,y={},C=undefined){return compile(y)(u,C)}function handleDeprecatedOptions(u){if(u.tags){const y=Object.entries(u.tags).map((([u,y])=>({...y,selector:u||"*"})));u.selectors.push(...y);u.selectors=mergeDuplicatesPreferLast(u.selectors,(u=>u.selector))}function set(u,y,C){const D=y.pop();for(const C of y){let y=u[C];if(!y){y={};u[C]=y}u=y}u[D]=C}if(u["baseElement"]){const y=u["baseElement"];set(u,["baseElements","selectors"],Array.isArray(y)?y:[y])}if(u["returnDomByDefault"]!==undefined){set(u,["baseElements","returnDomByDefault"],u["returnDomByDefault"])}for(const y of u.selectors){if(y.format==="anchor"&&get(y,["options","noLinkBrackets"])){set(y,["options","linkBrackets"],false)}}}const WebFetch=async u=>{const{prompt:y}=u;if(!y){return{error:"Missing parameter: prompt must be provided."}}const C=/(https?:\/\/[^\s]+)/g;const D=y.match(C);if(!D||D.length===0){return{error:"No URLs found in the prompt."}}const _=D[0];try{const u=await fetch(_);const y=u.headers.get("content-type")||"";const C=await u.text();let D;if(y.toLowerCase().includes("text/html")){D=convert(C,{wordwrap:false,selectors:[{selector:"a",options:{ignoreHref:true}},{selector:"img",format:"skip"}]})}else{D=C}return{content:D.substring(0,1e5)}}catch(u){return{error:u.message}}};const OA={api_key:null,timeout:6e4};class errors_InvalidArgumentError extends Error{constructor(){super("Arguments are missing or of incorrect type");Object.setPrototypeOf(this,errors_InvalidArgumentError.prototype)}}class MissingApiKeyError extends Error{constructor(){super("api_key is required, get it from: https://serpapi.com/manage-api-key");Object.setPrototypeOf(this,MissingApiKeyError.prototype)}}class InvalidTimeoutError extends Error{constructor(){super("Enter a valid timeout in milliseconds");Object.setPrototypeOf(this,InvalidTimeoutError.prototype)}}class RequestTimeoutError extends Error{constructor(){super("The request was timed out");Object.setPrototypeOf(this,RequestTimeoutError.prototype)}}const MA="2.2.1";var UA=C(5692);const HA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring");const GA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("process");const WA={execute:execute,getHostnameAndPort:getHostnameAndPort};function getHostnameAndPort(){return{hostname:"serpapi.com",port:443}}function getSource(){var u,y;const C=`serpapi@${MA}`;if(typeof Deno=="object"){const y=(u=Deno.version)===null||u===void 0?void 0:u.deno;if(y){return`deno@${y},${C}`}}else if(typeof GA=="object"){const u=(y=GA.versions)===null||y===void 0?void 0:y.node;if(u){return`nodejs@${u},${C}`}}return`nodejs,${C}`}function buildRequestOptions(u,y){const C=Object.assign({},y);for(const u in C){if(u==="requestOptions"||u==="timeout"||C[u]===undefined){delete C[u]}}const D=Object.assign(Object.assign({},WA.getHostnameAndPort()),{path:`${u}?${HA.stringify(C)}`,method:"GET"});return Object.assign(Object.assign(Object.assign({},OA.requestOptions),y.requestOptions),D)}function execute(u,y,C){const D=buildRequestOptions(u,Object.assign(Object.assign({},y),{source:getSource()}));return new Promise(((u,y)=>{let _;const handleResponse=C=>{C.setEncoding("utf8");let D="";C.on("data",(u=>{D+=u}));C.on("end",(()=>{try{if(C.statusCode==200){u(D)}else{y(D)}}catch(u){y(u)}finally{if(_)clearTimeout(_)}}))};const handleError=u=>{y(u);if(_)clearTimeout(_)};const j=UA.get(D,handleResponse).on("error",handleError);if(C>0){_=setTimeout((()=>{y(new RequestTimeoutError);j.destroy()}),C)}}))}function validators_validateApiKey(u,y=false){if(y&&u===null){return undefined}const C=u!==null&&u!==void 0?u:OA.api_key;if(!C)throw new MissingApiKeyError;return C}function validators_validateTimeout(u){const y=u!==null&&u!==void 0?u:OA.timeout;if(y<=0)throw new InvalidTimeoutError;return y}const jA="/account";const zA="/locations.json";const $A="/search";const qA=null&&`/searches`;function getJson(...u){if(typeof u[0]==="string"&&typeof u[1]==="object"){const[y,C,D]=u;const _=Object.assign(Object.assign({},C),{engine:y});return _getJson(_,D)}else if(typeof u[0]==="object"&&typeof u[1]!=="object"&&(typeof u[1]==="undefined"||typeof u[1]==="function")){const[y,C]=u;return _getJson(y,C)}else{throw new errors_InvalidArgumentError}}async function _getJson(u,y){const C=validators_validateApiKey(u.api_key,true);const D=validators_validateTimeout(u.timeout);const _=await WA.execute($A,Object.assign(Object.assign({},u),{api_key:C,output:"json"}),D);const j=JSON.parse(_);y===null||y===void 0?void 0:y(j);return j}function getHtml(...u){if(typeof u[0]==="string"&&typeof u[1]==="object"){const[y,C,D]=u;const _=Object.assign(Object.assign({},C),{engine:y});return _getHtml(_,D)}else if(typeof u[0]==="object"&&typeof u[1]!=="object"&&(typeof u[1]==="undefined"||typeof u[1]==="function")){const[y,C]=u;return _getHtml(y,C)}else{throw new InvalidArgumentError}}async function _getHtml(u,y){const C=validateApiKey(u.api_key,true);const D=validateTimeout(u.timeout);const _=await _internals.execute($A,Object.assign(Object.assign({},u),{api_key:C,output:"html"}),D);y===null||y===void 0?void 0:y(_);return _}async function getJsonBySearchId(u,y={},C){const D=validateApiKey(y.api_key);const _=validateTimeout(y.timeout);const j=await _internals.execute(`${qA}/${u}`,{api_key:D,output:"json"},_);const $=JSON.parse(j);C===null||C===void 0?void 0:C($);return $}async function getHtmlBySearchId(u,y={},C){const D=validateApiKey(y.api_key);const _=validateTimeout(y.timeout);const j=await _internals.execute(`${qA}/${u}`,{api_key:D,output:"html"},_);C===null||C===void 0?void 0:C(j);return j}async function getAccount(u={},y){const C=validateApiKey(u.api_key);const D=validateTimeout(u.timeout);const _=await _internals.execute(jA,{api_key:C},D);const j=JSON.parse(_);y===null||y===void 0?void 0:y(j);return j}async function getLocations(u={},y){const C=validateTimeout(u.timeout);const D=await _internals.execute(zA,u,C);const _=JSON.parse(D);y===null||y===void 0?void 0:y(_);return _}const GoogleSearch=async u=>{const{query:y}=u;if(!y){return{error:"Missing parameter: query must be provided."}}try{const u=await getJson({engine:"google",q:y,api_key:process.env["SERPAPI_API_KEY"]});return{results:u["organic_results"]}}catch(u){return{error:u.message}}};const WriteTodos=async u=>{const{todos:y}=u;if(!y){return{error:"Missing parameter: todos must be provided."}}const C=y.map(((u,y)=>`${y+1}. [${u.status}] ${u.description}`)).join("\n");const D=y.length>0?`Successfully updated the todo list. The current list is now:\n${C}`:"Successfully cleared the todo list.";return{llmContent:D,returnDisplay:{todos:y}}};async function GetWorkingDirectory(){return{cwd:process.cwd()}}const VA={ReadFile:ReadFile,WriteFile:WriteFile,Shell:Shell,ReadFolder:ReadFolder,FindFiles:FindFiles,SearchText:SearchText,Edit:Edit,ReadManyFiles:ReadManyFiles,SaveMemory:SaveMemory,WebFetch:WebFetch,GoogleSearch:GoogleSearch,WriteTodos:WriteTodos,GetWorkingDirectory:GetWorkingDirectory};const JA=`${oe.$.BACKEND_URL}/v1/tasks`;const KA=`${oe.$.BACKEND_URL}/v1/ws/session/start_or_resume/`;class WebSocketClient{ws=null;messageHandler=null;onStatusChange=null;sessionId=null;handshakeSent=false;isConnecting=false;connectionPromise=null;messageQueue=[];isReadyForUserInput=false;status="disconnected";setStatus(u){if(this.status===u)return;this.status=u;if(this.onStatusChange){this.onStatusChange(u)}}async createSession(){try{const u=await fetch(JA,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:"New interactive session"})});if(!u.ok){throw new Error(`Failed to create session: ${u.status} ${u.statusText}`)}const y=await u.json();return y.id}catch(u){if(process.env["STK_DEBUG_WS"]==="1"){console.error("Failed to create session:",u)}return null}}setupWebSocketConnection(){if(!this.sessionId){return}this.setStatus("connecting");const u=`${KA}${this.sessionId}`;this.ws=new _.Ay(u);this.ws.on("open",(async()=>{this.setStatus("connected");if(this.handshakeSent){return}let u=null;try{const{loadProjectSpec:y}=await C.e(96).then(C.bind(C,2096));u=await y(process.cwd())}catch(u){console.error("Failed to load project spec (CODEGEN.md):",u)}this.send({type:"handshake",payload:{client_type:"cli",known_tools:Object.keys(VA),custom_tools:[],projectSpec:u?{content:u.content,filePaths:u.filePaths}:null}});this.handshakeSent=true}));this.ws.on("message",(u=>{try{const y=JSON.parse(u.toString());if(y.type==="bootstrap_finished"){this.isReadyForUserInput=true;this.flushMessageQueue()}if(this.messageHandler){this.messageHandler(y)}}catch(u){console.error("Error parsing WebSocket message:",u)}}));this.ws.on("close",(()=>{this.ws=null;this.isConnecting=false;this.connectionPromise=null;this.handshakeSent=false;this.isReadyForUserInput=false;this.setStatus("disconnected")}));this.ws.on("error",(u=>{if(process.env["STK_DEBUG_WS"]==="1"){console.error("WebSocket error:",u)}this.isConnecting=false;this.connectionPromise=null;this.handshakeSent=false;this.isReadyForUserInput=false;this.setStatus("disconnected")}))}flushMessageQueue(){while(this.messageQueue.length>0){const u=this.messageQueue.shift();if(u){this.send(u)}}}ensureConnected(){if(this.ws&&this.ws.readyState===_.Ay.OPEN){return Promise.resolve()}if(this.isConnecting&&this.connectionPromise){return this.connectionPromise}this.isConnecting=true;this.setStatus("connecting");this.connectionPromise=(async()=>{try{if(!this.messageHandler){throw new Error("No message handler set. Cannot (re)connect WebSocket.")}if(!this.sessionId){this.sessionId=await this.createSession();if(!this.sessionId){throw new Error("Could not establish session. WebSocket connection aborted.")}}this.setupWebSocketConnection();await new Promise(((u,y)=>{if(!this.ws){return y(new Error("WebSocket instance not created."))}this.ws.once("open",(()=>{this.isConnecting=false;this.setStatus("connected");u()}));this.ws.once("error",(u=>{this.isConnecting=false;this.ws=null;this.setStatus("disconnected");y(u)}))}))}catch(u){this.isConnecting=false;this.connectionPromise=null;this.setStatus("disconnected");if(process.env["STK_DEBUG_WS"]==="1"){console.error("Connection failed:",u)}throw u}})();return this.connectionPromise}async connect(u,y){this.messageHandler=u;this.onStatusChange=y;this.setStatus("connecting");await this.ensureConnected()}async send(u){if(!this.ws||this.ws.readyState!==_.Ay.OPEN){this.messageQueue.push(u);await this.ensureConnected();return}const y=u.type==="handshake"||u.type==="tool_result";if(this.ws&&this.ws.readyState===_.Ay.OPEN&&(y||this.isReadyForUserInput)){const y=JSON.stringify(u);this.ws.send(y)}else{this.messageQueue.push(u)}}}const YA=new WebSocketClient;var XA=C(348);const runShellCommand=(u,y)=>{const C=u.trim();if(!C){throw new Error("Command cannot be empty.")}const D=(0,Xr.spawn)(C,{cwd:y,shell:true,stdio:"pipe",env:{...process.env,COLUMNS:process.stdout?.columns?.toString()??process.env["COLUMNS"],LINES:process.stdout?.rows?.toString()??process.env["LINES"]}});return D};const sanitizePath=u=>{if(!u){return undefined}const y=$().normalize(u);const C=$().resolve(oe.$.WORKSPACE_DIR,y);if(!C.startsWith(oe.$.WORKSPACE_DIR)){return $().basename(u)}return $().relative(oe.$.WORKSPACE_DIR,C)};var ZA=C(3688);var th=C(1825);const ih={messages:[],shellRuns:[],diffReviews:[],agentStatus:{label:"Idle",phase:"idle"},stream:{buffer:"",status:"idle",generationId:undefined},activeGenerationId:undefined,isBootstrapping:false,bootstrapFinished:false,connectionStatus:"disconnected"};const generateId=()=>Math.random().toString(36).slice(2);function reduceCoreState(u,y){switch(y.type){case"USER_SENT_MESSAGE":{const C={id:generateId(),role:"user",text:y.text,createdAt:Date.now(),isFinal:true};return{...u,messages:[...u.messages,C]}}case"AGENT_STREAM_STARTED":{const C={id:y.messageId,role:"agent",text:"",createdAt:Date.now(),isStreaming:true,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,C],stream:{currentMessageId:y.messageId,buffer:"",status:"streaming",generationId:y.generationId},agentStatus:{label:"Thinking…",phase:"streaming"}}}case"AGENT_DELTA_RECEIVED":{const C=1e3;if(u.stream.status!=="streaming"||!u.stream.currentMessageId){const C=generateId();const D={id:C,role:"agent",text:y.delta,createdAt:Date.now(),isStreaming:true,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,D],stream:{currentMessageId:C,buffer:"",status:"streaming",generationId:y.generationId},agentStatus:{label:"Thinking…",phase:"streaming"}}}const D=u.messages.findIndex((y=>y.id===u.stream.currentMessageId));if(D===-1){const C=generateId();const D={id:C,role:"agent",text:y.delta,createdAt:Date.now(),isStreaming:true,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,D],stream:{currentMessageId:C,buffer:"",status:"streaming",generationId:y.generationId},agentStatus:{label:"Thinking…",phase:"streaming"}}}const _=u.messages[D];const j=(_.text??"")+y.delta;if(j.length<=C){return{...u,activeGenerationId:y.generationId??u.activeGenerationId,stream:{...u.stream,generationId:y.generationId??u.stream.generationId},messages:u.messages.map(((u,C)=>C===D?{...u,text:j,generationId:y.generationId??u.generationId}:u))}}const $="\n\n";let ne=j.lastIndexOf($);if(ne===-1){ne=j.lastIndexOf(" ")}if(ne===-1||ne<C/2){return{...u,activeGenerationId:y.generationId??u.activeGenerationId,stream:{...u.stream,generationId:y.generationId??u.stream.generationId},messages:u.messages.map(((u,C)=>C===D?{...u,text:j,generationId:y.generationId??u.generationId}:u))}}const oe=j.slice(0,ne);const le=j.slice(ne);const de={..._,text:oe,isStreaming:false,isFinal:true};const Ae=generateId();const pe={..._,id:Ae,text:le,generationId:y.generationId??_.generationId};const Ee=[...u.messages.slice(0,D),de,...u.messages.slice(D+1),pe];return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:Ee,stream:{...u.stream,currentMessageId:Ae,generationId:y.generationId??u.stream.generationId}}}case"AGENT_STREAM_FLUSH":{return u}case"AGENT_STREAM_FINISHED":{const{currentMessageId:C}=u.stream;if(!C){return{...u,activeGenerationId:y.generationId&&u.activeGenerationId===y.generationId?undefined:u.activeGenerationId,stream:{currentMessageId:undefined,buffer:"",status:"finished",generationId:undefined},agentStatus:{label:"Idle",phase:"idle"}}}return{...u,activeGenerationId:y.generationId&&u.activeGenerationId===y.generationId?undefined:u.activeGenerationId,messages:u.messages.map((u=>u.id===C?{...u,isStreaming:false,isFinal:true}:u)),stream:{currentMessageId:undefined,buffer:"",status:"finished",generationId:undefined},agentStatus:{label:"Idle",phase:"idle"}}}case"SHELL_RUN_STARTED":{const C={id:y.runId,command:y.command,status:"running",stdout:"",stderr:"",startedAt:Date.now()};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,shellRuns:[...u.shellRuns,C],agentStatus:{label:`Running shell: ${y.command}`,phase:"running_tool"}}}case"SHELL_OUTPUT_RECEIVED":{return{...u,activeGenerationId:y.generationId??u.activeGenerationId,shellRuns:u.shellRuns.map((u=>{if(u.id!==y.runId)return u;return{...u,stdout:u.stdout+(y.stdoutDelta??""),stderr:u.stderr+(y.stderrDelta??"")}}))}}case"SHELL_RUN_FINISHED":{return{...u,activeGenerationId:y.generationId??u.activeGenerationId,shellRuns:u.shellRuns.map((u=>u.id===y.runId?{...u,status:y.exitCode===0?"finished":"error",finishedAt:Date.now()}:u)),agentStatus:{label:"Idle",phase:"idle"}}}case"DIFF_REVIEW_OPENED":{const C={id:y.reviewId,title:y.title,toolName:y.toolName,toolParams:y.toolParams,oldContent:y.oldContent,newContent:y.newContent,status:"pending"};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,diffReviews:[...u.diffReviews,C]}}case"DIFF_REVIEW_RESOLVED":{return{...u,activeGenerationId:y.generationId??u.activeGenerationId,diffReviews:u.diffReviews.map((u=>u.id===y.reviewId?{...u,status:y.result}:u))}}case"ERROR_OCCURRED":{const C={id:generateId(),role:"agent_error",text:y.message,createdAt:Date.now(),isFinal:true,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,C]}}case"TOOL_RESULT_MESSAGE":{const C={id:generateId(),role:"system",text:y.text,createdAt:Date.now(),isFinal:true,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,C]}}case"TOOL_EXECUTION_STARTED":{const C={id:generateId(),role:"tool_execution",text:"",toolId:y.toolId,toolName:y.toolName,toolParams:y.toolParams,createdAt:Date.now(),isFinal:false,status:"running",isBootstrap:u.isBootstrapping,generationId:y.generationId};return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:[...u.messages,C]}}case"TOOL_EXECUTION_FINISHED":{return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:u.messages.map((u=>u.toolId===y.toolId?{...u,status:"finished",isFinal:true,generationId:y.generationId??u.generationId}:u))}}case"TOOL_EXECUTION_ERROR":{return{...u,activeGenerationId:y.generationId??u.activeGenerationId,messages:u.messages.map((u=>u.toolId===y.toolId?{...u,status:"error",isFinal:true,text:y.error,generationId:y.generationId??u.generationId}:u))}}case"BOOTSTRAP_STARTED":{return{...u,isBootstrapping:true}}case"BOOTSTRAP_FINISHED":{const y={id:generateId(),role:"system",text:`Contexto do projeto carregado. (CLI v${oe.$.CURRENT_VERSION})`,createdAt:Date.now(),isFinal:true};return{...u,isBootstrapping:false,bootstrapFinished:true,messages:[...u.messages,y]}}case"CONNECTION_STATUS_CHANGED":{return{...u,connectionStatus:y.status}}default:return u}}function isLiveAgentMessageDisabled(){const u=process.env["INK_DISABLE_LIVE_AGENT_MESSAGE"];if(!u)return false;const y=String(u).toLowerCase().trim();return y==="1"||y==="true"||y==="yes"}const sh=isLiveAgentMessageDisabled();function extractHighlightedBlock(u){if(!u)return undefined;const y=u.trim();if(y.startsWith("`")&&y.endsWith("`")){const u=y.slice(1,-1).trim();if(u.length>0){return{content:u}}}if(y.startsWith("```")&&y.endsWith("```")){const u=y.slice(3,-3);const C=u.indexOf("\n");if(C===-1){const y=u.trim();if(y.length>0){return{content:y}}return undefined}const D=u.slice(0,C).trim();const _=u.slice(C+1).trim();if(_.length===0){return undefined}return{language:D.length>0?D:undefined,content:_}}return undefined}function buildInkViewModel(u){const y=u.messages.filter((u=>u.isFinal||u.role==="tool_execution"||u.role==="agent_thought")).map((u=>({id:u.id,role:u.role,text:u.text,toolName:u.toolName,toolParams:u.toolParams,status:u.status,isBootstrap:u.isBootstrap,highlightedBlock:u.role==="agent"?extractHighlightedBlock(u.text):undefined})));let C;if(!sh){const y=u.messages.find((u=>(u.role==="agent"||u.role==="agent_thought")&&u.isStreaming));if(y){C={id:y.id,role:y.role,text:y.text,toolName:y.toolName,toolParams:y.toolParams,status:y.status,isBootstrap:y.isBootstrap,highlightedBlock:y.role==="agent"?extractHighlightedBlock(y.text):undefined}}}const D=[...u.shellRuns].reverse().find((u=>u.status==="running"||u.status==="pending"));const _=[...u.diffReviews].reverse().find((u=>u.status==="pending"));let j;if(D){const u=[D.stdout,D.stderr].filter(Boolean).join("\n");const y=u.split("\n");j={id:D.id,command:D.command,status:D.status,stdout:D.stdout,stderr:D.stderr,visibleOutput:u,isVisuallyTruncated:false,totalLines:y.length,visibleLinesCount:y.length}}const $=_?{id:_.id,title:_.title,toolName:_.toolName,toolParams:_.toolParams,oldContent:_.oldContent,newContent:_.newContent,status:_.status}:undefined;return{staticMessages:y,liveAgentMessage:C,activeShellRun:j,activeDiffReview:$,agentStatusLabel:u.agentStatus.label,agentStatusPhase:u.agentStatus.phase}}function useAgentCore(){const[u,y]=(0,D.useReducer)(reduceCoreState,ih);const C=(0,D.useMemo)((()=>buildInkViewModel(u)),[u]);return{coreState:u,dispatchCore:y,viewModel:C}}const lh={ReadFile:ReadFile,WriteFile:WriteFile,Shell:Shell,ReadFolder:ReadFolder,FindFiles:FindFiles,SearchText:SearchText,Edit:Edit,ReadManyFiles:ReadManyFiles,SaveMemory:SaveMemory,WebFetch:WebFetch,GoogleSearch:GoogleSearch,WriteTodos:WriteTodos,GetWorkingDirectory:GetWorkingDirectory};const escapeRegExp=u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const useAgent=({autonomous:u=false})=>{const{coreState:y,dispatchCore:C,viewModel:_}=useAgentCore();const[j,le]=(0,D.useState)((()=>u));const de=(0,D.useRef)(j);(0,D.useEffect)((()=>{de.current=j}),[j]);const[Ae,pe]=(0,D.useState)({isVisible:false,text:"Agent is thinking..."});const[Ee,Ce]=(0,D.useState)(null);const Ie=(0,D.useRef)(null);(0,D.useEffect)((()=>{Ie.current=Ee}),[Ee]);const[Be,De]=(0,D.useState)([]);const[xe,Fe]=(0,D.useState)(null);const _e=(0,D.useRef)(xe);(0,D.useEffect)((()=>{_e.current=xe}),[xe]);const[Le,ze]=(0,D.useState)(-1);const[qe,Je]=(0,D.useState)(null);const[Ke,et]=(0,D.useState)(null);const[tt,rt]=(0,D.useState)("");const[nt,it]=(0,D.useState)(false);const[st,ot]=(0,D.useState)(null);const at=(0,D.useRef)(st);(0,D.useEffect)((()=>{at.current=st}),[st]);const[lt,ct]=(0,D.useState)(false);const ut=(0,D.useRef)(lt);const ft=(0,D.useRef)("");const dt=(0,D.useRef)(Ae);const At=(0,D.useRef)(null);const ht=(0,D.useRef)(false);(0,D.useEffect)((()=>{ht.current=y.isBootstrapping}),[y.isBootstrapping]);const pt=(0,D.useCallback)((u=>{const y=(u||"").trim();if(!y)return false;if(/[;&|]/.test(y))return false;const C=y.split(/\s+/).filter(Boolean);if(C.length<2)return false;if(C[0]!=="mkdir")return false;const D=C.slice(1).filter((u=>!u.startsWith("-")));if(D.length===0)return false;return D.every((u=>u===".codegen"||u.startsWith(".codegen/")))}),[]);const gt=(0,D.useCallback)((u=>{if(j)return true;const y=u.parameters.dir_path;const C=y===".codegen"||y&&y.startsWith(".codegen/");if(C)return true;return pt(u.parameters.command)}),[j,pt]);(0,D.useEffect)((()=>{dt.current=Ae}),[Ae]);(0,th.SB)();const mt=(0,D.useCallback)((()=>{const u=ft.current.match(/\*\*(.*?)\*\*/g);const y=u?u[u.length-1]?.slice(2,-2):null;pe({isVisible:true,text:y||"Agent is thinking..."})}),[]);(0,D.useEffect)((()=>{ut.current=lt}),[lt]);const sendInputToShell=u=>{if(!Ke)return;if(u===""){try{Ke.kill("SIGINT")}catch(u){console.error("Failed to send SIGINT to shell process:",u)}return}if(Ke.stdin){Ke.stdin.write(u)}};const handleShellCompletion=(u,y)=>{try{const D=y||qe;if(!D){return}if(u.signal==="SIGINT"){const{tool_name:y,tool_id:_,generation_id:j,parameters:$}=D;const ne=$?.command??"(shell)";C({type:"SHELL_RUN_FINISHED",runId:String(D.messageId),exitCode:130,generationId:j});const oe=80;const le=(0,XA.A)([u.stdout||"",u.stderr||""].filter(Boolean).join("\n"));const de=le.split("\n");const Ae=de.length>oe;const pe=Ae?de.slice(-oe):de;const Ee=pe.join("\n").trim();let Ce=Ee?`Shell: ${ne} (cancelled by user via Ctrl+C)\n\n${Ee}`:`Shell: ${ne} (cancelled by user via Ctrl+C)`;if(Ae){Ce+=`\n\n[Saída truncada; mostrando últimas ${pe.length} de ${de.length} linhas]`}C({type:"TOOL_RESULT_MESSAGE",text:Ce,generationId:j});try{const C={...u,stdout:(0,XA.A)(u.stdout),stderr:(0,XA.A)(u.stderr)};YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:C,error:"cancelled_by_user"}})}catch(u){console.error("Failed to send shell cancellation tool_result:",u)}mt();Je(null);et(null);return}const{messageId:_,tool_name:j,tool_id:$,generation_id:ne,parameters:oe}=D;C({type:"SHELL_RUN_FINISHED",runId:String(_),exitCode:u.exitCode??1,generationId:ne});const le=(u.exitCode??1)===0;const de=le?"✓":"✗";const Ae=oe?.command??"(shell)";const pe=`${de} Shell: ${Ae} (exitCode=${u.exitCode??1})`;const Ee=80;const Ce=(0,XA.A)([u.stdout||"",u.stderr||""].filter(Boolean).join("\n"));const Ie=Ce.split("\n");const Be=Ie.length>Ee;const De=Be?Ie.slice(-Ee):Ie;const xe=De.join("\n").trim();let Fe=xe?`${pe}\n\n${xe}`:pe;if(Be){Fe+=`\n\n[Saída truncada; mostrando últimas ${De.length} de ${Ie.length} linhas]`}C({type:"TOOL_RESULT_MESSAGE",text:Fe,generationId:ne});const _e={...u,stdout:(0,XA.A)(u.stdout),stderr:(0,XA.A)(u.stderr)};YA.send({type:"tool_result",payload:{tool_name:j,tool_id:$,generation_id:ne,status:u.exitCode===0?"success":"error",result:_e,error:u.exitCode===0?null:(0,XA.A)(u.stderr)||"shell_error"}});mt()}catch(u){console.error("Error in handleShellCompletion:",u)}finally{Je(null);et(null)}};const yt=(0,D.useCallback)((()=>{if(!Ee)return;const{tool_name:u,tool_id:y,generation_id:D,parameters:_}=Ee;const{command:j,dir_path:ne}=_;const le=$().resolve(oe.$.WORKSPACE_DIR,ne||".");const de=Date.now();C({type:"SHELL_RUN_STARTED",runId:String(de),command:j,generationId:D});try{const $=runShellCommand(j,le);const ne=[];const oe=[];$.stdout?.on("data",(u=>{ne.push(u);C({type:"SHELL_OUTPUT_RECEIVED",runId:String(de),stdoutDelta:u.toString("utf8"),stderrDelta:"",generationId:D})}));$.stderr?.on("data",(u=>{oe.push(u);C({type:"SHELL_OUTPUT_RECEIVED",runId:String(de),stdoutDelta:"",stderrDelta:u.toString("utf8"),generationId:D})}));$.on("close",((C,j)=>{const $={stdout:Buffer.concat(ne).toString("utf8"),stderr:Buffer.concat(oe).toString("utf8"),exitCode:C,signal:j};handleShellCompletion($,{messageId:de,tool_name:u,tool_id:y,generation_id:D,parameters:_})}));et($);Je({messageId:de,tool_name:u,tool_id:y,generation_id:D,parameters:_,status:"running",childProcess:$});pe({isVisible:false,text:""})}catch(_){console.error("Failed to start shell command:",_);C({type:"TOOL_RESULT_MESSAGE",text:`✗ Shell: ${j} (error starting: ${_.message??String(_)})`});try{YA.send({type:"tool_result",payload:{tool_name:u,tool_id:y,generation_id:D,status:"error",result:_.message??String(_)}})}catch(u){console.error("Failed to send shell error tool_result:",u)}}Ce(null)}),[C,Ee,mt]);(0,D.useEffect)((()=>{if(Ee&&gt(Ee)){yt()}}),[Ee,gt,yt]);const rejectShellCommand=()=>{if(!Ee)return;const{tool_name:u,tool_id:y,generation_id:D,parameters:_}=Ee;const j=_.command??"(shell)";try{YA.send({type:"tool_result",payload:{tool_name:u,tool_id:y,generation_id:D,status:"error",result:null,error:"User rejected command execution."}})}catch(u){console.error("Failed to send shell rejection tool_result:",u)}C({type:"TOOL_RESULT_MESSAGE",text:`· Shell: ${j} (rejected by user)`});Ce(null);pe({isVisible:false,text:""})};const approveDiff=u=>{const D=_.activeDiffReview?.id;if(!D)return;if(At.current){At.current(["accepted",u]);At.current=null}C({type:"DIFF_REVIEW_RESOLVED",reviewId:String(D),result:"accepted",generationId:y.activeGenerationId})};const rejectDiff=()=>{const u=_.activeDiffReview?.id;if(!u)return;if(At.current){At.current(["rejected",undefined]);At.current=null}C({type:"DIFF_REVIEW_RESOLVED",reviewId:String(u),result:"rejected",generationId:y.activeGenerationId})};const Et=(0,D.useCallback)((async u=>{const{tool_name:y,parameters:D,tool_id:_,generation_id:j}=u;const le=j==="bootstrap";C({type:"TOOL_EXECUTION_STARTED",toolId:_,toolName:y,toolParams:D,generationId:j});const Ae={...D};if(Ae["path"]){Ae["path"]=sanitizePath(Ae["path"])}if(Ae["file_path"]){Ae["file_path"]=sanitizePath(Ae["file_path"])}if(Ae["dir_path"]){Ae["dir_path"]=sanitizePath(Ae["dir_path"])}if(y==="ReadFile"&&Ae["path"]&&!Ae["file_path"]){Ae["file_path"]=Ae["path"]}if((y==="ReadFolder"||y==="FindFiles"||y==="SearchText")&&Ae["path"]&&!Ae["dir_path"]){Ae["dir_path"]=Ae["path"]}const Ee=lh[y];if(!Ee){const u=`Error: Tool '${y}' not found.`;C({type:"TOOL_EXECUTION_ERROR",toolId:_,toolName:y,toolParams:D,error:u,generationId:j});YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:null,error:u}});Fe(null);mt();return}if(y==="WriteFile"||y==="Edit"){const u=Date.now();let le="";try{le=await(0,ne.readFile)($().resolve(oe.$.WORKSPACE_DIR,Ae["file_path"]),"utf-8")}catch(u){if(u.code!=="ENOENT"){throw u}le=""}const pe=y==="WriteFile"?Ae["content"]:le.replace(new RegExp(escapeRegExp(Ae["old_string"]),"g"),Ae["new_string"]);try{const $=Ae["file_path"];const ne=$&&$.startsWith(".codegen/");if(!de.current&&!ne){const D=new Promise((u=>{At.current=u}));C({type:"DIFF_REVIEW_OPENED",reviewId:String(u),toolName:y,toolParams:Ae,oldContent:le,newContent:pe,generationId:j});const[_,$]=await D;if(_==="rejected"){throw new Error("User rejected changes.")}Ae["content"]=$!==undefined?$:pe}else{Ae["content"]=pe}const oe=await Ee(Ae);C({type:"TOOL_EXECUTION_FINISHED",toolId:_,toolName:y,toolParams:D,generationId:j});YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"success",result:oe,error:null}});Fe(null);mt()}catch(u){C({type:"TOOL_EXECUTION_ERROR",toolId:_,toolName:y,toolParams:D,error:u.message,generationId:j});YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:null,error:u.message}});mt()}}else if(y==="Shell"){const u=Ae;if(le){const{command:C,dir_path:D}=u;const ne=$().resolve(oe.$.WORKSPACE_DIR,D||".");try{const u=runShellCommand(C,ne);const D=await new Promise(((y,C)=>{const D=[];const _=[];u.stdout?.on("data",(u=>{D.push(u)}));u.stderr?.on("data",(u=>{_.push(u)}));u.on("error",(u=>{C(u)}));u.on("close",(u=>{y({stdout:Buffer.concat(D).toString("utf8"),stderr:Buffer.concat(_).toString("utf8"),exitCode:u})}))}));const $={command:C,stdout:(0,XA.A)(D.stdout)||"(empty)",stderr:(0,XA.A)(D.stderr)||"(empty)",error:D.exitCode===0?"(none)":(0,XA.A)(D.stderr),exitCode:D.exitCode??0};YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:D.exitCode===0?"success":"error",result:$,error:D.exitCode===0?null:(0,XA.A)(D.stderr)||"shell_error"}});Fe(null);pe({isVisible:false,text:""})}catch(u){YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:null,error:u.message??String(u)}});mt()}return}Ce({tool_name:y,tool_id:_,generation_id:j,parameters:u});pe({isVisible:false,text:""});return}else{try{const u=await Ee(Ae);C({type:"TOOL_EXECUTION_FINISHED",toolId:_,toolName:y,toolParams:D,generationId:j});YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"success",result:u,error:null}});Fe(null);mt()}catch(u){C({type:"TOOL_EXECUTION_ERROR",toolId:_,toolName:y,toolParams:D,error:u.message,generationId:j});YA.send({type:"tool_result",payload:{tool_name:y,tool_id:_,generation_id:j,status:"error",result:null,error:u.message}});mt()}}}),[]);const Ct=(0,D.useRef)(false);(0,D.useEffect)((()=>{Ct.current=y.bootstrapFinished}),[y.bootstrapFinished]);(0,D.useEffect)((()=>{let u=false;const handleMessage=async y=>{if(ut.current){return}const D=y.payload?.generation_id;const _=D==="bootstrap";if(_&&!ht.current){C({type:"BOOTSTRAP_STARTED"})}if(y.type==="bootstrap_finished"&&ht.current){C({type:"BOOTSTRAP_FINISHED"});u=true}if(y.type==="run_tool"&&y.payload.tool_name==="Shell"){const u=y.payload;if(Ie.current?.tool_id===u.tool_id){return}}if(process.env["STK_DEBUG_AGENT_STREAM"]==="1"){console.log("[agent-stream]",{type:y.type,payload:y.payload,generation_id:y.payload?.generation_id})}if(y.payload?.generation_id){ot(y.payload.generation_id);at.current=y.payload.generation_id}if(y.type==="agent_error"){const u=y.payload?.message||"An error occurred while communicating with the agent.";const _=y.payload?.details?` ${y.payload.details}`:"";C({type:"ERROR_OCCURRED",message:`${u}${_}`,generationId:D});pe({isVisible:false,text:""});return}if(y.type==="agent_message"){const u=y.payload?.content||"";pe({isVisible:false,text:""});C({type:"AGENT_DELTA_RECEIVED",delta:u,generationId:D});C({type:"AGENT_STREAM_FINISHED",generationId:D});return}if(y.type==="agent_message_delta"){const u=y.payload.content||"";pe({isVisible:false,text:""});C({type:"AGENT_DELTA_RECEIVED",delta:u,generationId:D})}else if(y.type==="agent_thought"){const u=y.payload.content||"";ft.current+=u;const C=ft.current.match(/\*\*(.*?)\*\*/g);const D=C?C[C.length-1]:null;if(D){const u=D.slice(2,-2);if(dt.current.text!==u){pe({isVisible:true,text:u})}}else if(!Ae.isVisible){pe({isVisible:true,text:"Agent is thinking..."})}}else if(y.type==="agent_finished"){C({type:"AGENT_STREAM_FINISHED",generationId:D});pe({isVisible:false,text:""});Fe(null);ft.current=""}else if(y.type==="run_tool"){const{tool_id:u,tool_name:C}=y.payload;if(_e.current===u){return}Fe(u);_e.current=u;if(!_){pe({isVisible:true,text:`Preparing to execute: ${C}`})}Promise.resolve().then((()=>Et(y.payload)))}else if(y.type==="agent_generation_cancelled"){const{generation_id:u}=y.payload;if(at.current===u){ot(null);at.current=null;ct(false);pe({isVisible:false,text:""});C({type:"TOOL_RESULT_MESSAGE",text:"· Agent generation cancelled by backend.",generationId:D})}}};Promise.resolve(YA.connect(handleMessage,(u=>{C({type:"CONNECTION_STATUS_CHANGED",status:u});if(u==="connecting"&&Ct.current){pe({isVisible:true,text:"Reconectando..."})}else if(u==="connected"){pe({isVisible:false,text:""})}}))).catch((()=>{C({type:"CONNECTION_STATUS_CHANGED",status:"disconnected"})}))}),[Et,C]);const It=(0,D.useCallback)((u=>{C({type:"TOOL_RESULT_MESSAGE",text:`· Modo autônomo: ${u?"ATIVADO":"DESATIVADO"} ·`,generationId:y.activeGenerationId})}),[C]);const bt=(0,D.useCallback)((u=>{le(u);It(u)}),[It]);const vt=(0,D.useCallback)((()=>{le((u=>{const y=!u;It(y);return y}))}),[It]);const submitUserInput=async(u,D)=>{if(process.env["STK_DEBUG_INPUT"]==="1"&&D){console.error("[STK_DEBUG_SUBMIT]",{text:u,imageCount:D.images?.length??0,extra:D})}const _=u.trim();if(_.startsWith("/")){const[u,y]=_.slice(1).split(/\s+/,2);const C=(u||"").toLowerCase();const D=(y||"").toLowerCase();const j=C==="autonomous"||C==="auto"||C==="a";if(j){if(D==="on"||D==="true"||D==="1")bt(true);else if(D==="off"||D==="false"||D==="0")bt(false);else vt();rt("");return}}if(qe?.status==="finished"){Je(null)}C({type:"USER_SENT_MESSAGE",text:u});if(D){const u=D.images?.length??0;const _=u>0?`· ${u} imagem(s) de clipboard anexada(s) ·`:"· Nenhuma imagem encontrada no clipboard ·";C({type:"TOOL_RESULT_MESSAGE",text:_,generationId:y.activeGenerationId})}pe({isVisible:true,text:"Agent is thinking..."});ot(null);ct(false);ft.current="";try{if(_.startsWith("/")){const y=_.slice(1).trim();if(y.length>0){await YA.send({type:"magic_command",payload:{name:y}})}else{await YA.send({type:"user_message",payload:{prompt:u}})}}else{await YA.send({type:"user_message",payload:{prompt:u,images:D?.images}})}}catch{pe({isVisible:true,text:"Não foi possível conectar ao servidor. Verifique o backend e tente novamente."});C({type:"CONNECTION_STATUS_CHANGED",status:"disconnected"});return}De((y=>{const C=[...y,u];ze(C.length);return C}));rt("")};const wt=(0,D.useCallback)((()=>{const u=Math.max(0,Le-1);ze(u);return Be[u]}),[Be,Le]);const Bt=(0,D.useCallback)((()=>{const u=Math.min(Be.length,Le+1);ze(u);return Be[u]}),[Be,Le]);const Dt=(0,D.useCallback)((async(u,y)=>{try{const C=lh["FindFiles"];if(C){const D=await C({pattern:u,...y});return D.files||[]}return[]}catch(u){console.error("Error searching files:",u);return[]}}),[]);const resetHistory=()=>{ze(Be.length)};const cancelCurrentInteraction=()=>{pe({isVisible:false,text:""});ct(true);const u="· Cancellation request sent.";const D=at.current??y.activeGenerationId;C({type:"TOOL_RESULT_MESSAGE",text:u,generationId:D});if(at.current){try{YA.send({type:"client_cancel_generation",payload:{generation_id:at.current,reason:"user_pressed_escape"}});ot(null);at.current=null}catch(u){console.error("Failed to send cancel message to backend:",u)}}else{try{YA.send({type:"client_cancel_last",payload:{}})}catch(u){console.error("Failed to send cancel_last message to backend:",u)}}};return{agentStatus:Ae,isAutonomous:j,toggleAutonomous:vt,pendingShellCommand:Ee,approveShellCommand:yt,rejectShellCommand:rejectShellCommand,approveDiff:approveDiff,rejectDiff:rejectDiff,submitUserInput:submitUserInput,navigateHistoryUp:wt,navigateHistoryDown:Bt,searchFiles:Dt,activeShellCommand:qe,handleShellCompletion:handleShellCompletion,childProcess:Ke,sendInputToShell:sendInputToShell,inputText:tt,setInputText:rt,isShellActive:nt,setIsShellActive:it,resetHistory:resetHistory,cancelCurrentInteraction:cancelCurrentInteraction,activeGenerationId:st,coreState:y,coreViewModel:_,hasCodegenSpec:(0,ZA.q)().hasCodegenSpec}}},4362:(u,y,C)=>{C.d(y,{P:()=>useMagicCommands});var D=C(7919);var _=C.n(D);var j=C(1943);var $=C.n(j);var ne=C(6928);var oe=C.n(ne);var le=C(2973);const de=["bootstrap-codegen"];const Ae="codegen-commands";async function getUserCommands(){try{const u=oe().resolve(le.$.WORKSPACE_DIR,Ae);const y=await(0,j.readdir)(u,{withFileTypes:true});return y.filter((u=>u.isDirectory())).map((u=>u.name))}catch(u){return[]}}const useMagicCommands=()=>{const[u,y]=(0,D.useState)([]);(0,D.useEffect)((()=>{const fetchCommands=async()=>{const u=await getUserCommands();y([...de,...u])};fetchCommands()}),[]);return u}},1825:(u,y,C)=>{C.d(y,{SB:()=>useTerminalLayout});var D=C(7919);var _=C.n(D);const j=.5;const $=.5;const ne=.4;const oe=4;const useTerminalLayout=()=>{const u=process.stdout&&process.stdout.rows||24;return(0,D.useMemo)((()=>{const y=(()=>{const y=Math.floor(u*j)-oe;return Math.min(Math.max(y,8),120)})();const C=(()=>{const y=Math.floor(u*ne)-oe;return Math.min(Math.max(y,5),40)})();const D=(()=>{const y=Math.floor(u*$)-oe;return Math.min(Math.max(y,10),120)})();return{rows:u,maxAgentStreamingLines:y,shellViewHeight:C,diffReviewHeight:D,layoutConstants:{AGENT_STREAM_RATIO:j,DIFF_REVIEW_RATIO:$,SHELL_OUTPUT_RATIO:ne,FOOTER_RESERVED_LINES:oe}}}),[u])}},8225:(u,y,C)=>{C.d(y,{F:()=>readClipboardImageAsBase64});var D=C(5317);var _=C.n(D);var j=C(9023);var $=C.n(j);var ne=C(9896);var oe=C.n(ne);var le=C(6928);var de=C.n(le);const Ae=(0,j.promisify)(D.execFile);async function getClipboardImageDir(u){const y=u||process.cwd();const C=de().join(y,".stk-clipboard");await oe().promises.mkdir(C,{recursive:true});return C}async function readClipboardImageAsBase64(u){if(process.env["STK_CODEGEN_DISABLE_CLIPBOARD_IMAGE"]==="1"){return null}if(process.platform==="darwin"){return readMacClipboardImageFromClipboard(u)}return null}async function readMacClipboardImageFromClipboard(u){try{const{stdout:y}=await Ae("bash",["-lc",'command -v pngpaste || echo ""']);const C=y.trim();if(C){const y=await getClipboardImageDir(u);const D=Date.now();const _=de().join(y,`clipboard-${D}.png`);try{await Ae(C,[_]);const u=await oe().promises.readFile(_);try{await oe().promises.unlink(_)}catch{}return{base64:u.toString("base64"),mimeType:"image/png"}}catch{}}}catch{}return readMacClipboardImageViaAppleScriptToFile(u)}async function readMacClipboardImageViaAppleScriptToFile(u){const y=await getClipboardImageDir(u);const C=Date.now();const D=de().join(y,`clipboard-${C}`);const _=`\n on writeImageToGivenPath(theImage, mimeType, basePath)\n if mimeType is "image/png" then\n set tmpPath to basePath & ".png"\n else if mimeType is "image/tiff" then\n set tmpPath to basePath & ".tiff"\n else if mimeType is "image/jpeg" then\n set tmpPath to basePath & ".jpg"\n end if\n\n set outFile to POSIX file tmpPath\n set fileRef to open for access outFile with write permission\n set eof fileRef to 0\n write theImage to fileRef\n close access fileRef\n\n return mimeType & ":" & tmpPath\n end writeImageToGivenPath\n\n try\n set basePath to "${D}"\n try\n set theImage to the clipboard as «class PNGf»\n return writeImageToGivenPath(theImage, "image/png", basePath)\n on error\n try\n set theImage to the clipboard as TIFF\n return writeImageToGivenPath(theImage, "image/tiff", basePath)\n on error\n try\n set theImage to the clipboard as JPEG picture\n return writeImageToGivenPath(theImage, "image/jpeg", basePath)\n on error\n return "NO_IMAGE"\n end try\n end try\n end try\n end try\n `;try{const{stdout:u}=await Ae("osascript",["-e",_]);const y=u.trim();if(!y||y==="NO_IMAGE"){return null}const C=y.indexOf(":");if(C===-1){return null}const D=y.slice(0,C);const j=y.slice(C+1);if(!D||!j){return null}const $=await oe().promises.readFile(j);try{await oe().promises.unlink(j)}catch{}return{base64:$.toString("base64"),mimeType:D}}catch{return null}}async function cleanupOldClipboardImages(u,y=60*60*1e3){try{const C=await getClipboardImageDir(u);const D=await fs.promises.readdir(C);const _=Date.now()-y;for(const u of D){if(!u.startsWith("clipboard-"))continue;const y=path.join(C,u);const D=await fs.promises.stat(y);if(D.mtimeMs<_){await fs.promises.unlink(y)}}}catch{}}},6614:(u,y,C)=>{C.d(y,{x:()=>checkCliVersion});var D=C(5317);var _=C.n(D);var j=C(2973);const $=`${j.$.BACKEND_URL}/v1/cli/version`;const ne="stk-codegen";async function checkCliVersionWithDeps({httpGet:u,execSync:y,exit:C,log:D,error:_,env:oe}){const le=oe["CLI_SKIP_VERSION_CHECK"];if(le&&["1","true"].includes(String(le).toLowerCase())){return}try{const oe=await u($);const le=oe.data.version;if(j.$.CURRENT_VERSION!==le){_(`Your CLI version is ${j.$.CURRENT_VERSION}, but the latest version is ${le}.`);D("Updating CLI to the latest version...");try{y(`npm install -g ${ne}@latest`,{stdio:"inherit"});D("Update successful! Please restart the CLI manually to use the new version.");C(0)}catch(u){_("An error occurred during the automatic update process. Please update manually.");C(1)}}}catch(u){_("Could not verify CLI version or perform automatic update.")}}const defaultHttpGet=async u=>{const y=await fetch(u);const C=await y.json();return{data:C}};async function checkCliVersion(){return checkCliVersionWithDeps({httpGet:defaultHttpGet,execSync:D.execSync,exit:u=>process.exit(u),log:console.log,error:console.error,env:process.env})}},3610:(u,y,C)=>{C.d(y,{y:()=>parseInlineCodeSegments});function appendTextSegment(u,y){if(!y)return;const C=u[u.length-1];if(C&&C.type==="text"){C.content+=y}else{u.push({type:"text",content:y})}}function parseInlineCodeSegments(u){if(u===undefined||u===null){return[]}const y=[];let C="";let D=false;const flushBuffer=()=>{if(!C)return;if(D){y.push({type:"code",content:C})}else{appendTextSegment(y,C)}C=""};for(let _=0;_<u.length;_++){const j=u[_];if(j==="`"){if(D){if(C===""){appendTextSegment(y,"``")}else{y.push({type:"code",content:C})}C="";D=false}else{flushBuffer();D=true}}else{C+=j}}if(C){if(D){y.push({type:"code",content:C})}else{appendTextSegment(y,C)}}if(D){const u=y.pop();const C="`"+(u?.content??"");appendTextSegment(y,C)}if(y.length===0){return[{type:"text",content:u}]}return y}},1911:(u,y,C)=>{C.d(y,{M:()=>buildFriendlyLabel});const buildFriendlyLabel=(u,y)=>{const C=y?.["file_path"];const D=y?.["dir_path"]||".";const _=y?.["command"];const j=y?.["pattern"];switch(u){case"WriteFile":return C?`Criar/atualizar arquivo ${C}`:"Criar/atualizar arquivo";case"Edit":return C?`Editar arquivo ${C}`:"Editar arquivo";case"ReadFile":return C?`Ler arquivo ${C}`:"Ler arquivo";case"ReadFolder":return`Listar pasta ${D}`;case"FindFiles":return j?`Procurar arquivos que combinem ${j} em ${D}`:`Procurar arquivos em ${D}`;case"SearchText":return j?`Buscar "${j}" em ${D}`:`Buscar texto em ${D}`;case"Shell":return _?`Executar comando ${_}`:"Executar comando de shell";case"GoogleSearch":return y?.["query"]?`Pesquisar no Google: ${y["query"]}`:"Pesquisar no Google";default:return u}}},1301:(u,y,C)=>{C.d(y,{O:()=>isDelete,g:()=>isBackspace});const isBackspace=u=>u.delete===true||u.backspace===true;const isDelete=()=>false},7273:(u,y,C)=>{C.d(y,{a:()=>TextBuffer});class TextBuffer{text=[];cursor=0;constructor(u=""){this.text=u.split("");this.cursor=u.length}get value(){return this.text.join("")}get cursorPosition(){return this.cursor}insert(u){this.text.splice(this.cursor,0,u);this.cursor++}insertText(u){if(!u)return;const y=u.split("");this.text.splice(this.cursor,0,...y);this.cursor+=y.length}backspace(){if(this.cursor>0){this.text.splice(this.cursor-1,1);this.cursor--}}delete(){if(this.cursor<this.text.length){this.text.splice(this.cursor,1)}}moveCursorLeft(){if(this.cursor>0){this.cursor--}}moveCursorRight(){if(this.cursor<this.text.length){this.cursor++}}moveCursorToStart(){this.cursor=0}moveCursorToEnd(){this.cursor=this.text.length}_getLines(){return this.text.join("").split("\n")}_offsetToRowCol(u){const y=this._getLines();if(y.length===0){return{row:0,col:0}}let C=0;for(let D=0;D<y.length;D++){const _=y[D];const j=_?_.length+1:1;if(u<C+j){return{row:D,col:u-C}}C+=j}const D=y[y.length-1];return{row:y.length-1,col:D?D.length:0}}_rowColToOffset(u,y){const C=this._getLines();let D=0;for(let y=0;y<u;y++){const u=C[y];D+=(u?u.length:0)+1}return D+y}getLineCount(){return this._getLines().length}getCursorRow(){return this._offsetToRowCol(this.cursor).row}moveCursorUp(){const{row:u,col:y}=this._offsetToRowCol(this.cursor);if(u>0){const C=this._getLines();const D=C[u-1];const _=D?D.length:0;const j=Math.min(y,_);this.cursor=this._rowColToOffset(u-1,j)}}moveCursorDown(){const u=this._getLines();const{row:y,col:C}=this._offsetToRowCol(this.cursor);if(y<u.length-1){const D=u[y+1];const _=D?D.length:0;const j=Math.min(C,_);this.cursor=this._rowColToOffset(y+1,j)}}moveCursorWordLeft(){let u=this.cursor;while(u>0&&this.text[u-1]===" ")u--;while(u>0&&this.text[u-1]!==" ")u--;this.cursor=u}moveCursorWordRight(){let u=this.cursor;while(u<this.text.length&&this.text[u]!==" ")u++;while(u<this.text.length&&this.text[u]===" ")u++;this.cursor=u}clone(){const u=new TextBuffer(this.value);u.cursor=this.cursor;return u}}},8327:module=>{module.exports=eval("require")("bufferutil")},75:module=>{module.exports=eval("require")("supports-color")},2414:module=>{module.exports=eval("require")("utf-8-validate")},2613:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},181:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},5317:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},9140:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},6982:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},4434:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},9896:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},1943:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises")},8611:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},5675:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},5692:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},3339:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("module")},9278:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},4573:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer")},8474:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},3024:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs")},1455:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises")},8161:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os")},6760:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path")},1708:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process")},7075:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},7066:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty")},3136:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url")},6928:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2203:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},4756:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},2018:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},7016:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},9023:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},3106:u=>{u.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},147:(u,y,C)=>{Object.defineProperty(y,"__esModule",{value:true});var D=C(7336);var _=C(5756);var j=C(6599);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:D.isColorSupported}const compose=(u,y)=>C=>u(y(C));function buildDefs(u){return{keyword:u.cyan,capitalized:u.yellow,jsxIdentifier:u.yellow,punctuator:u.yellow,number:u.magenta,string:u.green,regex:u.magenta,comment:u.gray,invalid:compose(compose(u.white,u.bgRed),u.bold),gutter:u.gray,marker:compose(u.red,u.bold),message:compose(u.red,u.bold),reset:u.reset}}const $=buildDefs(D.createColors(true));const ne=buildDefs(D.createColors(false));function getDefs(u){return u?$:ne}const oe=new Set(["as","async","from","get","of","set"]);const le=/\r\n|[\n\r\u2028\u2029]/;const de=/^[()[\]{}]$/;let Ae;{const u=/^[a-z][\w-]*$/i;const getTokenType=function(y,C,D){if(y.type==="name"){if(j.isKeyword(y.value)||j.isStrictReservedWord(y.value,true)||oe.has(y.value)){return"keyword"}if(u.test(y.value)&&(D[C-1]==="<"||D.slice(C-2,C)==="</")){return"jsxIdentifier"}if(y.value[0]!==y.value[0].toLowerCase()){return"capitalized"}}if(y.type==="punctuator"&&de.test(y.value)){return"bracket"}if(y.type==="invalid"&&(y.value==="@"||y.value==="#")){return"punctuator"}return y.type};Ae=function*(u){let y;while(y=_.default.exec(u)){const C=_.matchToToken(y);yield{type:getTokenType(C,y.index,u),value:C.value}}}}function highlight(u){if(u==="")return"";const y=getDefs(true);let C="";for(const{type:D,value:_}of Ae(u)){if(D in y){C+=_.split(le).map((u=>y[D](u))).join("\n")}else{C+=_}}return C}let pe=false;const Ee=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(u,y,C){const D=Object.assign({column:0,line:-1},u.start);const _=Object.assign({},D,u.end);const{linesAbove:j=2,linesBelow:$=3}=C||{};const ne=D.line;const oe=D.column;const le=_.line;const de=_.column;let Ae=Math.max(ne-(j+1),0);let pe=Math.min(y.length,le+$);if(ne===-1){Ae=0}if(le===-1){pe=y.length}const Ee=le-ne;const Ce={};if(Ee){for(let u=0;u<=Ee;u++){const C=u+ne;if(!oe){Ce[C]=true}else if(u===0){const u=y[C-1].length;Ce[C]=[oe,u-oe+1]}else if(u===Ee){Ce[C]=[0,de]}else{const D=y[C-u].length;Ce[C]=[0,D]}}}else{if(oe===de){if(oe){Ce[ne]=[oe,0]}else{Ce[ne]=true}}else{Ce[ne]=[oe,de-oe]}}return{start:Ae,end:pe,markerLines:Ce}}function codeFrameColumns(u,y,C={}){const D=C.forceColor||isColorSupported()&&C.highlightCode;const _=getDefs(D);const j=u.split(Ee);const{start:$,end:ne,markerLines:oe}=getMarkerLines(y,j,C);const le=y.start&&typeof y.start.column==="number";const de=String(ne).length;const Ae=D?highlight(u):u;let pe=Ae.split(Ee,ne).slice($,ne).map(((u,y)=>{const D=$+1+y;const j=` ${D}`.slice(-de);const ne=` ${j} |`;const le=oe[D];const Ae=!oe[D+1];if(le){let y="";if(Array.isArray(le)){const D=u.slice(0,Math.max(le[0]-1,0)).replace(/[^\t]/g," ");const j=le[1]||1;y=["\n ",_.gutter(ne.replace(/\d/g," "))," ",D,_.marker("^").repeat(j)].join("");if(Ae&&C.message){y+=" "+_.message(C.message)}}return[_.marker(">"),_.gutter(ne),u.length>0?` ${u}`:"",y].join("")}else{return` ${_.gutter(ne)}${u.length>0?` ${u}`:""}`}})).join("\n");if(C.message&&!le){pe=`${" ".repeat(de+1)}${C.message}\n${pe}`}if(D){return _.reset(pe)}else{return pe}}function index(u,y,C,D={}){if(!pe){pe=true;const u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(u,"DeprecationWarning")}else{const y=new Error(u);y.name="DeprecationWarning";console.warn(new Error(u))}}C=Math.max(C,0);const _={start:{column:C,line:y}};return codeFrameColumns(u,_,D)}y.codeFrameColumns=codeFrameColumns;y["default"]=index;y.highlight=highlight},2924:(u,y)=>{Object.defineProperty(y,"__esModule",{value:true});y.isIdentifierChar=isIdentifierChar;y.isIdentifierName=isIdentifierName;y.isIdentifierStart=isIdentifierStart;let C="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let D="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _=new RegExp("["+C+"]");const j=new RegExp("["+C+D+"]");C=D=null;const $=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489];const ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(u,y){let C=65536;for(let D=0,_=y.length;D<_;D+=2){C+=y[D];if(C>u)return false;C+=y[D+1];if(C>=u)return true}return false}function isIdentifierStart(u){if(u<65)return u===36;if(u<=90)return true;if(u<97)return u===95;if(u<=122)return true;if(u<=65535){return u>=170&&_.test(String.fromCharCode(u))}return isInAstralSet(u,$)}function isIdentifierChar(u){if(u<48)return u===36;if(u<58)return true;if(u<65)return false;if(u<=90)return true;if(u<97)return u===95;if(u<=122)return true;if(u<=65535){return u>=170&&j.test(String.fromCharCode(u))}return isInAstralSet(u,$)||isInAstralSet(u,ne)}function isIdentifierName(u){let y=true;for(let C=0;C<u.length;C++){let D=u.charCodeAt(C);if((D&64512)===55296&&C+1<u.length){const y=u.charCodeAt(++C);if((y&64512)===56320){D=65536+((D&1023)<<10)+(y&1023)}}if(y){y=false;if(!isIdentifierStart(D)){return false}}else if(!isIdentifierChar(D)){return false}}return!y}},6599:(u,y,C)=>{Object.defineProperty(y,"__esModule",{value:true});Object.defineProperty(y,"isIdentifierChar",{enumerable:true,get:function(){return D.isIdentifierChar}});Object.defineProperty(y,"isIdentifierName",{enumerable:true,get:function(){return D.isIdentifierName}});Object.defineProperty(y,"isIdentifierStart",{enumerable:true,get:function(){return D.isIdentifierStart}});Object.defineProperty(y,"isKeyword",{enumerable:true,get:function(){return _.isKeyword}});Object.defineProperty(y,"isReservedWord",{enumerable:true,get:function(){return _.isReservedWord}});Object.defineProperty(y,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return _.isStrictBindOnlyReservedWord}});Object.defineProperty(y,"isStrictBindReservedWord",{enumerable:true,get:function(){return _.isStrictBindReservedWord}});Object.defineProperty(y,"isStrictReservedWord",{enumerable:true,get:function(){return _.isStrictReservedWord}});var D=C(2924);var _=C(9884)},9884:(u,y)=>{Object.defineProperty(y,"__esModule",{value:true});y.isKeyword=isKeyword;y.isReservedWord=isReservedWord;y.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;y.isStrictBindReservedWord=isStrictBindReservedWord;y.isStrictReservedWord=isStrictReservedWord;const C={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const D=new Set(C.keyword);const _=new Set(C.strict);const j=new Set(C.strictBind);function isReservedWord(u,y){return y&&u==="await"||u==="enum"}function isStrictReservedWord(u,y){return isReservedWord(u,y)||_.has(u)}function isStrictBindOnlyReservedWord(u){return j.has(u)}function isStrictBindReservedWord(u,y){return isStrictReservedWord(u,y)||isStrictBindOnlyReservedWord(u)}function isKeyword(u){return D.has(u)}},2800:u=>{const y=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const C=typeof AbortController==="function";const D=C?AbortController:class AbortController{constructor(){this.signal=new $}abort(u=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||u;this.signal.aborted=true;this.signal.dispatchEvent({type:"abort",target:this.signal})}};const _=typeof AbortSignal==="function";const j=typeof D.AbortSignal==="function";const $=_?AbortSignal:j?D.AbortController:class AbortSignal{constructor(){this.reason=undefined;this.aborted=false;this._listeners=[]}dispatchEvent(u){if(u.type==="abort"){this.aborted=true;this.onabort(u);this._listeners.forEach((y=>y(u)),this)}}onabort(){}addEventListener(u,y){if(u==="abort"){this._listeners.push(y)}}removeEventListener(u,y){if(u==="abort"){this._listeners=this._listeners.filter((u=>u!==y))}}};const ne=new Set;const deprecatedOption=(u,y)=>{const C=`LRU_CACHE_OPTION_${u}`;if(shouldWarn(C)){warn(C,`${u} option`,`options.${y}`,LRUCache)}};const deprecatedMethod=(u,y)=>{const C=`LRU_CACHE_METHOD_${u}`;if(shouldWarn(C)){const{prototype:D}=LRUCache;const{get:_}=Object.getOwnPropertyDescriptor(D,u);warn(C,`${u} method`,`cache.${y}()`,_)}};const deprecatedProperty=(u,y)=>{const C=`LRU_CACHE_PROPERTY_${u}`;if(shouldWarn(C)){const{prototype:D}=LRUCache;const{get:_}=Object.getOwnPropertyDescriptor(D,u);warn(C,`${u} property`,`cache.${y}`,_)}};const emitWarning=(...u)=>{typeof process==="object"&&process&&typeof process.emitWarning==="function"?process.emitWarning(...u):console.error(...u)};const shouldWarn=u=>!ne.has(u);const warn=(u,y,C,D)=>{ne.add(u);const _=`The ${y} is deprecated. Please use ${C} instead.`;emitWarning(_,"DeprecationWarning",u,D)};const isPosInt=u=>u&&u===Math.floor(u)&&u>0&&isFinite(u);const getUintArray=u=>!isPosInt(u)?null:u<=Math.pow(2,8)?Uint8Array:u<=Math.pow(2,16)?Uint16Array:u<=Math.pow(2,32)?Uint32Array:u<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(u){super(u);this.fill(0)}}class Stack{constructor(u){if(u===0){return[]}const y=getUintArray(u);this.heap=new y(u);this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class LRUCache{constructor(u={}){const{max:y=0,ttl:C,ttlResolution:D=1,ttlAutopurge:_,updateAgeOnGet:j,updateAgeOnHas:$,allowStale:oe,dispose:le,disposeAfter:de,noDisposeOnSet:Ae,noUpdateTTL:pe,maxSize:Ee=0,maxEntrySize:Ce=0,sizeCalculation:Ie,fetchMethod:Be,fetchContext:De,noDeleteOnFetchRejection:xe,noDeleteOnStaleGet:Fe,allowStaleOnFetchRejection:_e,allowStaleOnFetchAbort:Le,ignoreFetchAbort:ze}=u;const{length:qe,maxAge:Je,stale:Ke}=u instanceof LRUCache?{}:u;if(y!==0&&!isPosInt(y)){throw new TypeError("max option must be a nonnegative integer")}const et=y?getUintArray(y):Array;if(!et){throw new Error("invalid max value: "+y)}this.max=y;this.maxSize=Ee;this.maxEntrySize=Ce||this.maxSize;this.sizeCalculation=Ie||qe;if(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")}}this.fetchMethod=Be||null;if(this.fetchMethod&&typeof this.fetchMethod!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.fetchContext=De;if(!this.fetchMethod&&De!==undefined){throw new TypeError("cannot set fetchContext without fetchMethod")}this.keyMap=new Map;this.keyList=new Array(y).fill(null);this.valList=new Array(y).fill(null);this.next=new et(y);this.prev=new et(y);this.head=0;this.tail=0;this.free=new Stack(y);this.initialFill=1;this.size=0;if(typeof le==="function"){this.dispose=le}if(typeof de==="function"){this.disposeAfter=de;this.disposed=[]}else{this.disposeAfter=null;this.disposed=null}this.noDisposeOnSet=!!Ae;this.noUpdateTTL=!!pe;this.noDeleteOnFetchRejection=!!xe;this.allowStaleOnFetchRejection=!!_e;this.allowStaleOnFetchAbort=!!Le;this.ignoreFetchAbort=!!ze;if(this.maxEntrySize!==0){if(this.maxSize!==0){if(!isPosInt(this.maxSize)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.initializeSizeTracking()}this.allowStale=!!oe||!!Ke;this.noDeleteOnStaleGet=!!Fe;this.updateAgeOnGet=!!j;this.updateAgeOnHas=!!$;this.ttlResolution=isPosInt(D)||D===0?D:1;this.ttlAutopurge=!!_;this.ttl=C||Je||0;if(this.ttl){if(!isPosInt(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){const u="LRU_CACHE_UNBOUNDED";if(shouldWarn(u)){ne.add(u);const y="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(y,"UnboundedCacheWarning",u,LRUCache)}}if(Ke){deprecatedOption("stale","allowStale")}if(Je){deprecatedOption("maxAge","ttl")}if(qe){deprecatedOption("length","sizeCalculation")}}getRemainingTTL(u){return this.has(u,{updateAgeOnHas:false})?Infinity:0}initializeTTLTracking(){this.ttls=new ZeroArray(this.max);this.starts=new ZeroArray(this.max);this.setItemTTL=(u,C,D=y.now())=>{this.starts[u]=C!==0?D:0;this.ttls[u]=C;if(C!==0&&this.ttlAutopurge){const y=setTimeout((()=>{if(this.isStale(u)){this.delete(this.keyList[u])}}),C+1);if(y.unref){y.unref()}}};this.updateItemAge=u=>{this.starts[u]=this.ttls[u]!==0?y.now():0};this.statusTTL=(y,C)=>{if(y){y.ttl=this.ttls[C];y.start=this.starts[C];y.now=u||getNow();y.remainingTTL=y.now+y.ttl-y.start}};let u=0;const getNow=()=>{const C=y.now();if(this.ttlResolution>0){u=C;const y=setTimeout((()=>u=0),this.ttlResolution);if(y.unref){y.unref()}}return C};this.getRemainingTTL=y=>{const C=this.keyMap.get(y);if(C===undefined){return 0}return this.ttls[C]===0||this.starts[C]===0?Infinity:this.starts[C]+this.ttls[C]-(u||getNow())};this.isStale=y=>this.ttls[y]!==0&&this.starts[y]!==0&&(u||getNow())-this.starts[y]>this.ttls[y]}updateItemAge(u){}statusTTL(u,y){}setItemTTL(u,y,C){}isStale(u){return false}initializeSizeTracking(){this.calculatedSize=0;this.sizes=new ZeroArray(this.max);this.removeItemSize=u=>{this.calculatedSize-=this.sizes[u];this.sizes[u]=0};this.requireSize=(u,y,C,D)=>{if(this.isBackgroundFetch(y)){return 0}if(!isPosInt(C)){if(D){if(typeof D!=="function"){throw new TypeError("sizeCalculation must be a function")}C=D(y,u);if(!isPosInt(C)){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 C};this.addItemSize=(u,y,C)=>{this.sizes[u]=y;if(this.maxSize){const y=this.maxSize-this.sizes[u];while(this.calculatedSize>y){this.evict(true)}}this.calculatedSize+=this.sizes[u];if(C){C.entrySize=y;C.totalCalculatedSize=this.calculatedSize}}}removeItemSize(u){}addItemSize(u,y){}requireSize(u,y,C,D){if(C||D){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}}*indexes({allowStale:u=this.allowStale}={}){if(this.size){for(let y=this.tail;true;){if(!this.isValidIndex(y)){break}if(u||!this.isStale(y)){yield y}if(y===this.head){break}else{y=this.prev[y]}}}}*rindexes({allowStale:u=this.allowStale}={}){if(this.size){for(let y=this.head;true;){if(!this.isValidIndex(y)){break}if(u||!this.isStale(y)){yield y}if(y===this.tail){break}else{y=this.next[y]}}}}isValidIndex(u){return u!==undefined&&this.keyMap.get(this.keyList[u])===u}*entries(){for(const u of this.indexes()){if(this.valList[u]!==undefined&&this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield[this.keyList[u],this.valList[u]]}}}*rentries(){for(const u of this.rindexes()){if(this.valList[u]!==undefined&&this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield[this.keyList[u],this.valList[u]]}}}*keys(){for(const u of this.indexes()){if(this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.keyList[u]}}}*rkeys(){for(const u of this.rindexes()){if(this.keyList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.keyList[u]}}}*values(){for(const u of this.indexes()){if(this.valList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.valList[u]}}}*rvalues(){for(const u of this.rindexes()){if(this.valList[u]!==undefined&&!this.isBackgroundFetch(this.valList[u])){yield this.valList[u]}}}[Symbol.iterator](){return this.entries()}find(u,y){for(const C of this.indexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;if(u(_,this.keyList[C],this)){return this.get(this.keyList[C],y)}}}forEach(u,y=this){for(const C of this.indexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.keyList[C],this)}}rforEach(u,y=this){for(const C of this.rindexes()){const D=this.valList[C];const _=this.isBackgroundFetch(D)?D.__staleWhileFetching:D;if(_===undefined)continue;u.call(y,_,this.keyList[C],this)}}get prune(){deprecatedMethod("prune","purgeStale");return this.purgeStale}purgeStale(){let u=false;for(const y of this.rindexes({allowStale:true})){if(this.isStale(y)){this.delete(this.keyList[y]);u=true}}return u}dump(){const u=[];for(const C of this.indexes({allowStale:true})){const D=this.keyList[C];const _=this.valList[C];const j=this.isBackgroundFetch(_)?_.__staleWhileFetching:_;if(j===undefined)continue;const $={value:j};if(this.ttls){$.ttl=this.ttls[C];const u=y.now()-this.starts[C];$.start=Math.floor(Date.now()-u)}if(this.sizes){$.size=this.sizes[C]}u.unshift([D,$])}return u}load(u){this.clear();for(const[C,D]of u){if(D.start){const u=Date.now()-D.start;D.start=y.now()-u}this.set(C,D.value,D)}}dispose(u,y,C){}set(u,y,{ttl:C=this.ttl,start:D,noDisposeOnSet:_=this.noDisposeOnSet,size:j=0,sizeCalculation:$=this.sizeCalculation,noUpdateTTL:ne=this.noUpdateTTL,status:oe}={}){j=this.requireSize(u,y,j,$);if(this.maxEntrySize&&j>this.maxEntrySize){if(oe){oe.set="miss";oe.maxEntrySizeExceeded=true}this.delete(u);return this}let le=this.size===0?undefined:this.keyMap.get(u);if(le===undefined){le=this.newIndex();this.keyList[le]=u;this.valList[le]=y;this.keyMap.set(u,le);this.next[this.tail]=le;this.prev[le]=this.tail;this.tail=le;this.size++;this.addItemSize(le,j,oe);if(oe){oe.set="add"}ne=false}else{this.moveToTail(le);const C=this.valList[le];if(y!==C){if(this.isBackgroundFetch(C)){C.__abortController.abort(new Error("replaced"))}else{if(!_){this.dispose(C,u,"set");if(this.disposeAfter){this.disposed.push([C,u,"set"])}}}this.removeItemSize(le);this.valList[le]=y;this.addItemSize(le,j,oe);if(oe){oe.set="replace";const u=C&&this.isBackgroundFetch(C)?C.__staleWhileFetching:C;if(u!==undefined)oe.oldValue=u}}else if(oe){oe.set="update"}}if(C!==0&&this.ttl===0&&!this.ttls){this.initializeTTLTracking()}if(!ne){this.setItemTTL(le,C,D)}this.statusTTL(oe,le);if(this.disposeAfter){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return this}newIndex(){if(this.size===0){return this.tail}if(this.size===this.max&&this.max!==0){return this.evict(false)}if(this.free.length!==0){return this.free.pop()}return this.initialFill++}pop(){if(this.size){const u=this.valList[this.head];this.evict(true);return u}}evict(u){const y=this.head;const C=this.keyList[y];const D=this.valList[y];if(this.isBackgroundFetch(D)){D.__abortController.abort(new Error("evicted"))}else{this.dispose(D,C,"evict");if(this.disposeAfter){this.disposed.push([D,C,"evict"])}}this.removeItemSize(y);if(u){this.keyList[y]=null;this.valList[y]=null;this.free.push(y)}this.head=this.next[y];this.keyMap.delete(C);this.size--;return y}has(u,{updateAgeOnHas:y=this.updateAgeOnHas,status:C}={}){const D=this.keyMap.get(u);if(D!==undefined){if(!this.isStale(D)){if(y){this.updateItemAge(D)}if(C)C.has="hit";this.statusTTL(C,D);return true}else if(C){C.has="stale";this.statusTTL(C,D)}}else if(C){C.has="miss"}return false}peek(u,{allowStale:y=this.allowStale}={}){const C=this.keyMap.get(u);if(C!==undefined&&(y||!this.isStale(C))){const u=this.valList[C];return this.isBackgroundFetch(u)?u.__staleWhileFetching:u}}backgroundFetch(u,y,C,_){const j=y===undefined?undefined:this.valList[y];if(this.isBackgroundFetch(j)){return j}const $=new D;if(C.signal){C.signal.addEventListener("abort",(()=>$.abort(C.signal.reason)))}const ne={signal:$.signal,options:C,context:_};const cb=(D,_=false)=>{const{aborted:j}=$.signal;const le=C.ignoreFetchAbort&&D!==undefined;if(C.status){if(j&&!_){C.status.fetchAborted=true;C.status.fetchError=$.signal.reason;if(le)C.status.fetchAbortIgnored=true}else{C.status.fetchResolved=true}}if(j&&!le&&!_){return fetchFail($.signal.reason)}if(this.valList[y]===oe){if(D===undefined){if(oe.__staleWhileFetching){this.valList[y]=oe.__staleWhileFetching}else{this.delete(u)}}else{if(C.status)C.status.fetchUpdated=true;this.set(u,D,ne.options)}}return D};const eb=u=>{if(C.status){C.status.fetchRejected=true;C.status.fetchError=u}return fetchFail(u)};const fetchFail=D=>{const{aborted:_}=$.signal;const j=_&&C.allowStaleOnFetchAbort;const ne=j||C.allowStaleOnFetchRejection;const le=ne||C.noDeleteOnFetchRejection;if(this.valList[y]===oe){const C=!le||oe.__staleWhileFetching===undefined;if(C){this.delete(u)}else if(!j){this.valList[y]=oe.__staleWhileFetching}}if(ne){if(C.status&&oe.__staleWhileFetching!==undefined){C.status.returnedStale=true}return oe.__staleWhileFetching}else if(oe.__returned===oe){throw D}};const pcall=(y,D)=>{this.fetchMethod(u,j,ne).then((u=>y(u)),D);$.signal.addEventListener("abort",(()=>{if(!C.ignoreFetchAbort||C.allowStaleOnFetchAbort){y();if(C.allowStaleOnFetchAbort){y=u=>cb(u,true)}}}))};if(C.status)C.status.fetchDispatched=true;const oe=new Promise(pcall).then(cb,eb);oe.__abortController=$;oe.__staleWhileFetching=j;oe.__returned=null;if(y===undefined){this.set(u,oe,{...ne.options,status:undefined});y=this.keyMap.get(u)}else{this.valList[y]=oe}return oe}isBackgroundFetch(u){return u&&typeof u==="object"&&typeof u.then==="function"&&Object.prototype.hasOwnProperty.call(u,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(u,"__returned")&&(u.__returned===u||u.__returned===null)}async fetch(u,{allowStale:y=this.allowStale,updateAgeOnGet:C=this.updateAgeOnGet,noDeleteOnStaleGet:D=this.noDeleteOnStaleGet,ttl:_=this.ttl,noDisposeOnSet:j=this.noDisposeOnSet,size:$=0,sizeCalculation:ne=this.sizeCalculation,noUpdateTTL:oe=this.noUpdateTTL,noDeleteOnFetchRejection:le=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:de=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ae=this.ignoreFetchAbort,allowStaleOnFetchAbort:pe=this.allowStaleOnFetchAbort,fetchContext:Ee=this.fetchContext,forceRefresh:Ce=false,status:Ie,signal:Be}={}){if(!this.fetchMethod){if(Ie)Ie.fetch="get";return this.get(u,{allowStale:y,updateAgeOnGet:C,noDeleteOnStaleGet:D,status:Ie})}const De={allowStale:y,updateAgeOnGet:C,noDeleteOnStaleGet:D,ttl:_,noDisposeOnSet:j,size:$,sizeCalculation:ne,noUpdateTTL:oe,noDeleteOnFetchRejection:le,allowStaleOnFetchRejection:de,allowStaleOnFetchAbort:pe,ignoreFetchAbort:Ae,status:Ie,signal:Be};let xe=this.keyMap.get(u);if(xe===undefined){if(Ie)Ie.fetch="miss";const y=this.backgroundFetch(u,xe,De,Ee);return y.__returned=y}else{const D=this.valList[xe];if(this.isBackgroundFetch(D)){const u=y&&D.__staleWhileFetching!==undefined;if(Ie){Ie.fetch="inflight";if(u)Ie.returnedStale=true}return u?D.__staleWhileFetching:D.__returned=D}const _=this.isStale(xe);if(!Ce&&!_){if(Ie)Ie.fetch="hit";this.moveToTail(xe);if(C){this.updateItemAge(xe)}this.statusTTL(Ie,xe);return D}const j=this.backgroundFetch(u,xe,De,Ee);const $=j.__staleWhileFetching!==undefined;const ne=$&&y;if(Ie){Ie.fetch=$&&_?"stale":"refresh";if(ne&&_)Ie.returnedStale=true}return ne?j.__staleWhileFetching:j.__returned=j}}get(u,{allowStale:y=this.allowStale,updateAgeOnGet:C=this.updateAgeOnGet,noDeleteOnStaleGet:D=this.noDeleteOnStaleGet,status:_}={}){const j=this.keyMap.get(u);if(j!==undefined){const $=this.valList[j];const ne=this.isBackgroundFetch($);this.statusTTL(_,j);if(this.isStale(j)){if(_)_.get="stale";if(!ne){if(!D){this.delete(u)}if(_)_.returnedStale=y;return y?$:undefined}else{if(_){_.returnedStale=y&&$.__staleWhileFetching!==undefined}return y?$.__staleWhileFetching:undefined}}else{if(_)_.get="hit";if(ne){return $.__staleWhileFetching}this.moveToTail(j);if(C){this.updateItemAge(j)}return $}}else if(_){_.get="miss"}}connect(u,y){this.prev[y]=u;this.next[u]=y}moveToTail(u){if(u!==this.tail){if(u===this.head){this.head=this.next[u]}else{this.connect(this.prev[u],this.next[u])}this.connect(this.tail,u);this.tail=u}}get del(){deprecatedMethod("del","delete");return this.delete}delete(u){let y=false;if(this.size!==0){const C=this.keyMap.get(u);if(C!==undefined){y=true;if(this.size===1){this.clear()}else{this.removeItemSize(C);const y=this.valList[C];if(this.isBackgroundFetch(y)){y.__abortController.abort(new Error("deleted"))}else{this.dispose(y,u,"delete");if(this.disposeAfter){this.disposed.push([y,u,"delete"])}}this.keyMap.delete(u);this.keyList[C]=null;this.valList[C]=null;if(C===this.tail){this.tail=this.prev[C]}else if(C===this.head){this.head=this.next[C]}else{this.next[this.prev[C]]=this.next[C];this.prev[this.next[C]]=this.prev[C]}this.size--;this.free.push(C)}}}if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return y}clear(){for(const u of this.rindexes({allowStale:true})){const y=this.valList[u];if(this.isBackgroundFetch(y)){y.__abortController.abort(new Error("deleted"))}else{const C=this.keyList[u];this.dispose(y,C,"delete");if(this.disposeAfter){this.disposed.push([y,C,"delete"])}}}this.keyMap.clear();this.valList.fill(null);this.keyList.fill(null);if(this.ttls){this.ttls.fill(0);this.starts.fill(0)}if(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;if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}}get reset(){deprecatedMethod("reset","clear");return this.clear}get length(){deprecatedProperty("length","size");return this.size}static get AbortController(){return D}static get AbortSignal(){return $}}u.exports=LRUCache},131:(u,y,C)=>{C.d(y,{Ik:()=>It,_W:()=>eraseLines});var D=C(1708);var _=C(8161);const j=globalThis.window?.document!==undefined;const $=globalThis.process?.versions?.node!==undefined;const ne=globalThis.process?.versions?.bun!==undefined;const oe=globalThis.Deno?.version?.deno!==undefined;const le=globalThis.process?.versions?.electron!==undefined;const de=globalThis.navigator?.userAgent?.includes("jsdom")===true;const Ae=typeof WorkerGlobalScope!=="undefined"&&globalThis instanceof WorkerGlobalScope;const pe=typeof DedicatedWorkerGlobalScope!=="undefined"&&globalThis instanceof DedicatedWorkerGlobalScope;const Ee=typeof SharedWorkerGlobalScope!=="undefined"&&globalThis instanceof SharedWorkerGlobalScope;const Ce=typeof ServiceWorkerGlobalScope!=="undefined"&&globalThis instanceof ServiceWorkerGlobalScope;const Ie=globalThis.navigator?.userAgentData?.platform;const Be=Ie==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===true||globalThis.process?.platform==="darwin";const De=Ie==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32";const xe=Ie==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===true||globalThis.navigator?.userAgent?.includes(" Linux ")===true||globalThis.process?.platform==="linux";const Fe=Ie==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform);const _e=Ie==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===true||globalThis.process?.platform==="android";const Le="[";const ze="]";const qe="";const Je=";";const Ke=!j&&D.env.TERM_PROGRAM==="Apple_Terminal";const et=!j&&D.platform==="win32";const tt=!j&&(D.env.TERM?.startsWith("screen")||D.env.TERM?.startsWith("tmux")||D.env.TMUX!==undefined);const rt=j?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:D.cwd;const wrapOsc=u=>{if(tt){return"Ptmux;"+u.replaceAll("","")+"\\"}return u};const cursorTo=(u,y)=>{if(typeof u!=="number"){throw new TypeError("The `x` argument is required")}if(typeof y!=="number"){return Le+(u+1)+"G"}return Le+(y+1)+Je+(u+1)+"H"};const cursorMove=(u,y)=>{if(typeof u!=="number"){throw new TypeError("The `x` argument is required")}let C="";if(u<0){C+=Le+-u+"D"}else if(u>0){C+=Le+u+"C"}if(y<0){C+=Le+-y+"A"}else if(y>0){C+=Le+y+"B"}return C};const cursorUp=(u=1)=>Le+u+"A";const cursorDown=(u=1)=>Le+u+"B";const cursorForward=(u=1)=>Le+u+"C";const cursorBackward=(u=1)=>Le+u+"D";const nt=Le+"G";const it=Ke?"7":Le+"s";const st=Ke?"8":Le+"u";const ot=Le+"6n";const at=Le+"E";const lt=Le+"F";const ct=Le+"?25l";const ut=Le+"?25h";const eraseLines=u=>{let y="";for(let C=0;C<u;C++){y+=At+(C<u-1?cursorUp():"")}if(u){y+=nt}return y};const ft=Le+"K";const dt=Le+"1K";const At=Le+"2K";const ht=Le+"J";const pt=Le+"1J";const gt=Le+"2J";const mt=Le+"S";const yt=Le+"T";const Et="c";const Ct=null&&`${gt}${Le}H`;const isOldWindows=()=>{if(j||!et){return false}const u=_.release().split(".");const y=Number(u[0]);const C=Number(u[2]??0);if(y<10){return true}if(y===10&&C<10586){return true}return false};const It=isOldWindows()?`${gt}${Le}0f`:`${gt}${Le}3J${Le}H`;const bt=Le+"?1049h";const vt=Le+"?1049l";const wt=null&&qe;const base_link=(u,y)=>{const C=wrapOsc(`${ze}8${Je}${Je}${y}${qe}`);const D=wrapOsc(`${ze}8${Je}${Je}${qe}`);return C+u+D};const base_image=(u,y={})=>{let C=`${ze}1337;File=inline=1`;if(y.width){C+=`;width=${y.width}`}if(y.height){C+=`;height=${y.height}`}if(y.preserveAspectRatio===false){C+=";preserveAspectRatio=0"}const D=Buffer.from(u);return wrapOsc(C+`;size=${D.byteLength}`+":"+D.toString("base64")+qe)};const Bt={setCwd:(u=rt())=>wrapOsc(`${ze}50;CurrentDir=${u}${qe}`),annotation(u,y={}){let C=`${ze}1337;`;const D=y.x!==undefined;const _=y.y!==undefined;if((D||_)&&!(D&&_&&y.length!==undefined)){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}u=u.replaceAll("|","");C+=y.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(y.length>0){C+=(D?[u,y.length,y.x,y.y]:[y.length,u]).join("|")}else{C+=u}return wrapOsc(C+qe)}};const Dt={setCwd:(u=rt())=>wrapOsc(`${ze}9;9;${u}${qe}`)};const setCwd=(u=rt())=>Bt.setCwd(u)+Dt.setCwd(u)},7865:(u,y,C)=>{C.d(y,{Ay:()=>de});const D=10;const wrapAnsi16=(u=0)=>y=>`[${y+u}m`;const wrapAnsi256=(u=0)=>y=>`[${38+u};5;${y}m`;const wrapAnsi16m=(u=0)=>(y,C,D)=>`[${38+u};2;${y};${C};${D}m`;const _={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const j=Object.keys(_.modifier);const $=Object.keys(_.color);const ne=Object.keys(_.bgColor);const oe=[...$,...ne];function assembleStyles(){const u=new Map;for(const[y,C]of Object.entries(_)){for(const[y,D]of Object.entries(C)){_[y]={open:`[${D[0]}m`,close:`[${D[1]}m`};C[y]=_[y];u.set(D[0],D[1])}Object.defineProperty(_,y,{value:C,enumerable:false})}Object.defineProperty(_,"codes",{value:u,enumerable:false});_.color.close="";_.bgColor.close="";_.color.ansi=wrapAnsi16();_.color.ansi256=wrapAnsi256();_.color.ansi16m=wrapAnsi16m();_.bgColor.ansi=wrapAnsi16(D);_.bgColor.ansi256=wrapAnsi256(D);_.bgColor.ansi16m=wrapAnsi16m(D);Object.defineProperties(_,{rgbToAnsi256:{value(u,y,C){if(u===y&&y===C){if(u<8){return 16}if(u>248){return 231}return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(y/255*5)+Math.round(C/255*5)},enumerable:false},hexToRgb:{value(u){const y=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!y){return[0,0,0]}let[C]=y;if(C.length===3){C=[...C].map((u=>u+u)).join("")}const D=Number.parseInt(C,16);return[D>>16&255,D>>8&255,D&255]},enumerable:false},hexToAnsi256:{value:u=>_.rgbToAnsi256(..._.hexToRgb(u)),enumerable:false},ansi256ToAnsi:{value(u){if(u<8){return 30+u}if(u<16){return 90+(u-8)}let y;let C;let D;if(u>=232){y=((u-232)*10+8)/255;C=y;D=y}else{u-=16;const _=u%36;y=Math.floor(u/36)/5;C=Math.floor(_/6)/5;D=_%6/5}const _=Math.max(y,C,D)*2;if(_===0){return 30}let j=30+(Math.round(D)<<2|Math.round(C)<<1|Math.round(y));if(_===2){j+=60}return j},enumerable:false},rgbToAnsi:{value:(u,y,C)=>_.ansi256ToAnsi(_.rgbToAnsi256(u,y,C)),enumerable:false},hexToAnsi:{value:u=>_.ansi256ToAnsi(_.hexToAnsi256(u)),enumerable:false}});return _}const le=assembleStyles();const de=le},2640:(u,y,C)=>{C.d(y,{A:()=>autoBind});const getAllProperties=u=>{const y=new Set;do{for(const C of Reflect.ownKeys(u)){y.add([u,C])}}while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return y};function autoBind(u,{include:y,exclude:C}={}){const filter=u=>{const match=y=>typeof y==="string"?u===y:y.test(u);if(y){return y.some(match)}if(C){return!C.some(match)}return true};for(const[y,C]of getAllProperties(u.constructor.prototype)){if(C==="constructor"||!filter(C)){continue}const D=Reflect.getOwnPropertyDescriptor(y,C);if(D&&typeof D.value==="function"){u[C]=u[C].bind(u)}}return u}},6797:(u,y,C)=>{C.d(y,{Ay:()=>nt});const D=10;const wrapAnsi16=(u=0)=>y=>`[${y+u}m`;const wrapAnsi256=(u=0)=>y=>`[${38+u};5;${y}m`;const wrapAnsi16m=(u=0)=>(y,C,D)=>`[${38+u};2;${y};${C};${D}m`;const _={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const j=Object.keys(_.modifier);const $=Object.keys(_.color);const ne=Object.keys(_.bgColor);const oe=[...$,...ne];function assembleStyles(){const u=new Map;for(const[y,C]of Object.entries(_)){for(const[y,D]of Object.entries(C)){_[y]={open:`[${D[0]}m`,close:`[${D[1]}m`};C[y]=_[y];u.set(D[0],D[1])}Object.defineProperty(_,y,{value:C,enumerable:false})}Object.defineProperty(_,"codes",{value:u,enumerable:false});_.color.close="";_.bgColor.close="";_.color.ansi=wrapAnsi16();_.color.ansi256=wrapAnsi256();_.color.ansi16m=wrapAnsi16m();_.bgColor.ansi=wrapAnsi16(D);_.bgColor.ansi256=wrapAnsi256(D);_.bgColor.ansi16m=wrapAnsi16m(D);Object.defineProperties(_,{rgbToAnsi256:{value(u,y,C){if(u===y&&y===C){if(u<8){return 16}if(u>248){return 231}return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(y/255*5)+Math.round(C/255*5)},enumerable:false},hexToRgb:{value(u){const y=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!y){return[0,0,0]}let[C]=y;if(C.length===3){C=[...C].map((u=>u+u)).join("")}const D=Number.parseInt(C,16);return[D>>16&255,D>>8&255,D&255]},enumerable:false},hexToAnsi256:{value:u=>_.rgbToAnsi256(..._.hexToRgb(u)),enumerable:false},ansi256ToAnsi:{value(u){if(u<8){return 30+u}if(u<16){return 90+(u-8)}let y;let C;let D;if(u>=232){y=((u-232)*10+8)/255;C=y;D=y}else{u-=16;const _=u%36;y=Math.floor(u/36)/5;C=Math.floor(_/6)/5;D=_%6/5}const _=Math.max(y,C,D)*2;if(_===0){return 30}let j=30+(Math.round(D)<<2|Math.round(C)<<1|Math.round(y));if(_===2){j+=60}return j},enumerable:false},rgbToAnsi:{value:(u,y,C)=>_.ansi256ToAnsi(_.rgbToAnsi256(u,y,C)),enumerable:false},hexToAnsi:{value:u=>_.ansi256ToAnsi(_.hexToAnsi256(u)),enumerable:false}});return _}const le=assembleStyles();const de=le;var Ae=C(1708);var pe=C(8161);var Ee=C(7066);function hasFlag(u,y=(globalThis.Deno?globalThis.Deno.args:Ae.argv)){const C=u.startsWith("-")?"":u.length===1?"-":"--";const D=y.indexOf(C+u);const _=y.indexOf("--");return D!==-1&&(_===-1||D<_)}const{env:Ce}=Ae;let Ie;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){Ie=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){Ie=1}function envForceColor(){if("FORCE_COLOR"in Ce){if(Ce.FORCE_COLOR==="true"){return 1}if(Ce.FORCE_COLOR==="false"){return 0}return Ce.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ce.FORCE_COLOR,10),3)}}function translateLevel(u){if(u===0){return false}return{level:u,hasBasic:true,has256:u>=2,has16m:u>=3}}function _supportsColor(u,{streamIsTTY:y,sniffFlags:C=true}={}){const D=envForceColor();if(D!==undefined){Ie=D}const _=C?Ie:D;if(_===0){return 0}if(C){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in Ce&&"AGENT_NAME"in Ce){return 1}if(u&&!y&&_===undefined){return 0}const j=_||0;if(Ce.TERM==="dumb"){return j}if(Ae.platform==="win32"){const u=pe.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586){return Number(u[2])>=14931?3:2}return 1}if("CI"in Ce){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u=>u in Ce))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u=>u in Ce))||Ce.CI_NAME==="codeship"){return 1}return j}if("TEAMCITY_VERSION"in Ce){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ce.TEAMCITY_VERSION)?1:0}if(Ce.COLORTERM==="truecolor"){return 3}if(Ce.TERM==="xterm-kitty"){return 3}if(Ce.TERM==="xterm-ghostty"){return 3}if(Ce.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in Ce){const u=Number.parseInt((Ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ce.TERM_PROGRAM){case"iTerm.app":{return u>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(Ce.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ce.TERM)){return 1}if("COLORTERM"in Ce){return 1}return j}function createSupportsColor(u,y={}){const C=_supportsColor(u,{streamIsTTY:u&&u.isTTY,...y});return translateLevel(C)}const Be={stdout:createSupportsColor({isTTY:Ee.isatty(1)}),stderr:createSupportsColor({isTTY:Ee.isatty(2)})};const De=Be;function stringReplaceAll(u,y,C){let D=u.indexOf(y);if(D===-1){return u}const _=y.length;let j=0;let $="";do{$+=u.slice(j,D)+y+C;j=D+_;D=u.indexOf(y,j)}while(D!==-1);$+=u.slice(j);return $}function stringEncaseCRLFWithFirstIndex(u,y,C,D){let _=0;let j="";do{const $=u[D-1]==="\r";j+=u.slice(_,$?D-1:D)+y+($?"\r\n":"\n")+C;_=D+1;D=u.indexOf("\n",_)}while(D!==-1);j+=u.slice(_);return j}const{stdout:xe,stderr:Fe}=De;const _e=Symbol("GENERATOR");const Le=Symbol("STYLER");const ze=Symbol("IS_EMPTY");const qe=["ansi","ansi","ansi256","ansi16m"];const Je=Object.create(null);const applyOptions=(u,y={})=>{if(y.level&&!(Number.isInteger(y.level)&&y.level>=0&&y.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const C=xe?xe.level:0;u.level=y.level===undefined?C:y.level};class Chalk{constructor(u){return chalkFactory(u)}}const chalkFactory=u=>{const chalk=(...u)=>u.join(" ");applyOptions(chalk,u);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(u){return chalkFactory(u)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[u,y]of Object.entries(de)){Je[u]={get(){const C=createBuilder(this,createStyler(y.open,y.close,this[Le]),this[ze]);Object.defineProperty(this,u,{value:C});return C}}}Je.visible={get(){const u=createBuilder(this,this[Le],true);Object.defineProperty(this,"visible",{value:u});return u}};const getModelAnsi=(u,y,C,...D)=>{if(u==="rgb"){if(y==="ansi16m"){return de[C].ansi16m(...D)}if(y==="ansi256"){return de[C].ansi256(de.rgbToAnsi256(...D))}return de[C].ansi(de.rgbToAnsi(...D))}if(u==="hex"){return getModelAnsi("rgb",y,C,...de.hexToRgb(...D))}return de[C][u](...D)};const Ke=["rgb","hex","ansi256"];for(const u of Ke){Je[u]={get(){const{level:y}=this;return function(...C){const D=createStyler(getModelAnsi(u,qe[y],"color",...C),de.color.close,this[Le]);return createBuilder(this,D,this[ze])}}};const y="bg"+u[0].toUpperCase()+u.slice(1);Je[y]={get(){const{level:y}=this;return function(...C){const D=createStyler(getModelAnsi(u,qe[y],"bgColor",...C),de.bgColor.close,this[Le]);return createBuilder(this,D,this[ze])}}}}const et=Object.defineProperties((()=>{}),{...Je,level:{enumerable:true,get(){return this[_e].level},set(u){this[_e].level=u}}});const createStyler=(u,y,C)=>{let D;let _;if(C===undefined){D=u;_=y}else{D=C.openAll+u;_=y+C.closeAll}return{open:u,close:y,openAll:D,closeAll:_,parent:C}};const createBuilder=(u,y,C)=>{const builder=(...u)=>applyStyle(builder,u.length===1?""+u[0]:u.join(" "));Object.setPrototypeOf(builder,et);builder[_e]=u;builder[Le]=y;builder[ze]=C;return builder};const applyStyle=(u,y)=>{if(u.level<=0||!y){return u[ze]?"":y}let C=u[Le];if(C===undefined){return y}const{openAll:D,closeAll:_}=C;if(y.includes("")){while(C!==undefined){y=stringReplaceAll(y,C.close,C.open);C=C.parent}}const j=y.indexOf("\n");if(j!==-1){y=stringEncaseCRLFWithFirstIndex(y,_,D,j)}return D+y+_};Object.defineProperties(createChalk.prototype,Je);const tt=createChalk();const rt=createChalk({level:Fe?Fe.level:0});const nt=tt},5229:(u,y,C)=>{C.d(y,{A:()=>de});var D=C(1708);var _=C(9969);var j=C(6627);const $=_((()=>{j((()=>{D.stderr.write("[?25h")}),{alwaysLast:true})}));const ne=$;let oe=false;const le={};le.show=(u=D.stderr)=>{if(!u.isTTY){return}oe=false;u.write("[?25h")};le.hide=(u=D.stderr)=>{if(!u.isTTY){return}ne();oe=true;u.write("[?25l")};le.toggle=(u,y)=>{if(u!==undefined){oe=u}if(oe){le.show(y)}else{le.hide(y)}};const de=le},7073:(u,y,C)=>{C.d(y,{Pp:()=>diffLines});class Diff{diff(u,y,C={}){let D;if(typeof C==="function"){D=C;C={}}else if("callback"in C){D=C.callback}const _=this.castInput(u,C);const j=this.castInput(y,C);const $=this.removeEmpty(this.tokenize(_,C));const ne=this.removeEmpty(this.tokenize(j,C));return this.diffWithOptionsObj($,ne,C,D)}diffWithOptionsObj(u,y,C,D){var _;const done=u=>{u=this.postProcess(u,C);if(D){setTimeout((function(){D(u)}),0);return undefined}else{return u}};const j=y.length,$=u.length;let ne=1;let oe=j+$;if(C.maxEditLength!=null){oe=Math.min(oe,C.maxEditLength)}const le=(_=C.timeout)!==null&&_!==void 0?_:Infinity;const de=Date.now()+le;const Ae=[{oldPos:-1,lastComponent:undefined}];let pe=this.extractCommon(Ae[0],y,u,0,C);if(Ae[0].oldPos+1>=$&&pe+1>=j){return done(this.buildValues(Ae[0].lastComponent,y,u))}let Ee=-Infinity,Ce=Infinity;const execEditLength=()=>{for(let D=Math.max(Ee,-ne);D<=Math.min(Ce,ne);D+=2){let _;const ne=Ae[D-1],oe=Ae[D+1];if(ne){Ae[D-1]=undefined}let le=false;if(oe){const u=oe.oldPos-D;le=oe&&0<=u&&u<j}const de=ne&&ne.oldPos+1<$;if(!le&&!de){Ae[D]=undefined;continue}if(!de||le&&ne.oldPos<oe.oldPos){_=this.addToPath(oe,true,false,0,C)}else{_=this.addToPath(ne,false,true,1,C)}pe=this.extractCommon(_,y,u,D,C);if(_.oldPos+1>=$&&pe+1>=j){return done(this.buildValues(_.lastComponent,y,u))||true}else{Ae[D]=_;if(_.oldPos+1>=$){Ce=Math.min(Ce,D-1)}if(pe+1>=j){Ee=Math.max(Ee,D+1)}}}ne++};if(D){(function exec(){setTimeout((function(){if(ne>oe||Date.now()>de){return D(undefined)}if(!execEditLength()){exec()}}),0)})()}else{while(ne<=oe&&Date.now()<=de){const u=execEditLength();if(u){return u}}}}addToPath(u,y,C,D,_){const j=u.lastComponent;if(j&&!_.oneChangePerToken&&j.added===y&&j.removed===C){return{oldPos:u.oldPos+D,lastComponent:{count:j.count+1,added:y,removed:C,previousComponent:j.previousComponent}}}else{return{oldPos:u.oldPos+D,lastComponent:{count:1,added:y,removed:C,previousComponent:j}}}}extractCommon(u,y,C,D,_){const j=y.length,$=C.length;let ne=u.oldPos,oe=ne-D,le=0;while(oe+1<j&&ne+1<$&&this.equals(C[ne+1],y[oe+1],_)){oe++;ne++;le++;if(_.oneChangePerToken){u.lastComponent={count:1,previousComponent:u.lastComponent,added:false,removed:false}}}if(le&&!_.oneChangePerToken){u.lastComponent={count:le,previousComponent:u.lastComponent,added:false,removed:false}}u.oldPos=ne;return oe}equals(u,y,C){if(C.comparator){return C.comparator(u,y)}else{return u===y||!!C.ignoreCase&&u.toLowerCase()===y.toLowerCase()}}removeEmpty(u){const y=[];for(let C=0;C<u.length;C++){if(u[C]){y.push(u[C])}}return y}castInput(u,y){return u}tokenize(u,y){return Array.from(u)}join(u){return u.join("")}postProcess(u,y){return u}get useLongestToken(){return false}buildValues(u,y,C){const D=[];let _;while(u){D.push(u);_=u.previousComponent;delete u.previousComponent;u=_}D.reverse();const j=D.length;let $=0,ne=0,oe=0;for(;$<j;$++){const u=D[$];if(!u.removed){if(!u.added&&this.useLongestToken){let D=y.slice(ne,ne+u.count);D=D.map((function(u,y){const D=C[oe+y];return D.length>u.length?D:u}));u.value=this.join(D)}else{u.value=this.join(y.slice(ne,ne+u.count))}ne+=u.count;if(!u.added){oe+=u.count}}else{u.value=this.join(C.slice(oe,oe+u.count));oe+=u.count}}return D}}class LineDiff extends Diff{constructor(){super(...arguments);this.tokenize=tokenize}equals(u,y,C){if(C.ignoreWhitespace){if(!C.newlineIsToken||!u.includes("\n")){u=u.trim()}if(!C.newlineIsToken||!y.includes("\n")){y=y.trim()}}else if(C.ignoreNewlineAtEof&&!C.newlineIsToken){if(u.endsWith("\n")){u=u.slice(0,-1)}if(y.endsWith("\n")){y=y.slice(0,-1)}}return super.equals(u,y,C)}}const D=new LineDiff;function diffLines(u,y,C){return D.diff(u,y,C)}function diffTrimmedLines(u,y,C){C=generateOptions(C,{ignoreWhitespace:true});return D.diff(u,y,C)}function tokenize(u,y){if(y.stripTrailingCr){u=u.replace(/\r\n/g,"\n")}const C=[],D=u.split(/(\n|\r\n)/);if(!D[D.length-1]){D.pop()}for(let u=0;u<D.length;u++){const _=D[u];if(u%2&&!y.newlineIsToken){C[C.length-1]+=_}else{C.push(_)}}return C}},4772:(u,y,C)=>{C.d(y,{n:()=>throttle});function debounce(u,y,{signal:C,edges:D}={}){let _=undefined;let j=null;const $=D!=null&&D.includes("leading");const ne=D==null||D.includes("trailing");const invoke=()=>{if(j!==null){u.apply(_,j);_=undefined;j=null}};const onTimerEnd=()=>{if(ne){invoke()}cancel()};let oe=null;const schedule=()=>{if(oe!=null){clearTimeout(oe)}oe=setTimeout((()=>{oe=null;onTimerEnd()}),y)};const cancelTimer=()=>{if(oe!==null){clearTimeout(oe);oe=null}};const cancel=()=>{cancelTimer();_=undefined;j=null};const flush=()=>{invoke()};const debounced=function(...u){if(C?.aborted){return}_=this;j=u;const y=oe==null;schedule();if($&&y){invoke()}};debounced.schedule=schedule;debounced.cancel=cancel;debounced.flush=flush;C?.addEventListener("abort",cancel,{once:true});return debounced}function debounce_debounce(u,y=0,C={}){if(typeof C!=="object"){C={}}const{leading:D=false,trailing:_=true,maxWait:j}=C;const $=Array(2);if(D){$[0]="leading"}if(_){$[1]="trailing"}let ne=undefined;let oe=null;const le=debounce((function(...y){ne=u.apply(this,y);oe=null}),y,{edges:$});const debounced=function(...y){if(j!=null){if(oe===null){oe=Date.now()}if(Date.now()-oe>=j){ne=u.apply(this,y);oe=Date.now();le.cancel();le.schedule();return ne}}le.apply(this,y);return ne};const flush=()=>{le.flush();return ne};debounced.cancel=le.cancel;debounced.flush=flush;return debounced}function throttle(u,y=0,C={}){const{leading:D=true,trailing:_=true}=C;return debounce_debounce(u,y,{leading:D,maxWait:y,trailing:_})}},2435:(u,y,C)=>{C.d(y,{Ck:()=>isFullWidth,EW:()=>isWide,X2:()=>isAmbiguous});function isAmbiguous(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function isFullWidth(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function isWide(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function getCategory(u){if(isAmbiguous(u))return"ambiguous";if(isFullWidth(u))return"fullwidth";if(u===8361||u>=65377&&u<=65470||u>=65474&&u<=65479||u>=65482&&u<=65487||u>=65490&&u<=65495||u>=65498&&u<=65500||u>=65512&&u<=65518){return"halfwidth"}if(u>=32&&u<=126||u===162||u===163||u===165||u===166||u===172||u===175||u>=10214&&u<=10221||u===10629||u===10630){return"narrow"}if(isWide(u))return"wide";return"neutral"}},2861:(u,y,C)=>{C.d(y,{A:()=>indentString});function indentString(u,y=1,C={}){const{indent:D=" ",includeEmptyLines:_=false}=C;if(typeof u!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``)}if(typeof y!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof y}\``)}if(y<0){throw new RangeError(`Expected \`count\` to be at least 0, got \`${y}\``)}if(typeof D!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof D}\``)}if(y===0){return u}const j=_?/^/gm:/^(?!\s*$)/gm;return u.replace(j,D.repeat(y))}},8078:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>oe});var _=C(7919);var j=C(8518);var $=C(6487);var ne=u([j]);j=(ne.then?(await ne)():ne)[0];function Spinner({type:u="dots"}){const[y,C]=(0,_.useState)(0);const D=$[u];(0,_.useEffect)((()=>{const u=setInterval((()=>{C((u=>{const y=u===D.frames.length-1;return y?0:u+1}))}),D.interval);return()=>{clearInterval(u)}}),[D]);return _.createElement(j.EY,null,D.frames[y])}const oe=Spinner;D()}catch(le){D(le)}}))},4087:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(6797);const _=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/;const j=/^ansi256\(\s?(\d+)\s?\)$/;const isNamedColor=u=>u in D.Ay;const colorize=(u,y,C)=>{if(!y){return u}if(isNamedColor(y)){if(C==="foreground"){return D.Ay[y](u)}const _=`bg${y[0].toUpperCase()+y.slice(1)}`;return D.Ay[_](u)}if(y.startsWith("#")){return C==="foreground"?D.Ay.hex(y)(u):D.Ay.bgHex(y)(u)}if(y.startsWith("ansi256")){const _=j.exec(y);if(!_){return u}const $=Number(_[1]);return C==="foreground"?D.Ay.ansi256($)(u):D.Ay.bgAnsi256($)(u)}if(y.startsWith("rgb")){const j=_.exec(y);if(!j){return u}const $=Number(j[1]);const ne=Number(j[2]);const oe=Number(j[3]);return C==="foreground"?D.Ay.rgb($,ne,oe)(u):D.Ay.bgRgb($,ne,oe)(u)}return u};const $=colorize},2226:(u,y,C)=>{C.d(y,{A:()=>App});var D=C(8474);var _=C(1708);var j=C(7919);var $=C(5229);var ne=C(2913);var oe=C(6258);var le=C(4857);var de=C(4036);var Ae=C(1724);var pe=C(3024);var Ee=C(4092);const convertToSpaces=(u,y=2)=>u.replace(/^\t+/gm,(u=>" ".repeat(u.length*y)));const Ce=convertToSpaces;const generateLineNumbers=(u,y)=>{const C=[];const D=u-y;const _=u+y;for(let u=D;u<=_;u++){C.push(u)}return C};const codeExcerpt=(u,y,C={})=>{var D;if(typeof u!=="string"){throw new TypeError("Source code is missing.")}if(!y||y<1){throw new TypeError("Line number must start from `1`.")}const _=Ce(u).split(/\r?\n/);if(y>_.length){return}return generateLineNumbers(y,(D=C.around)!==null&&D!==void 0?D:3).filter((u=>_[u-1]!==undefined)).map((u=>({line:u,value:_[u-1]})))};const Ie=codeExcerpt;var Be=C(2654);var De=C(9392);const cleanupPath=u=>u?.replace(`file://${(0,_.cwd)()}/`,"");const xe=new Ee({cwd:(0,_.cwd)(),internals:Ee.nodeInternals()});function ErrorOverview({error:u}){const y=u.stack?u.stack.split("\n").slice(1):undefined;const C=y?xe.parseLine(y[0]):undefined;const D=cleanupPath(C?.file);let _;let $=0;if(D&&C?.line&&pe.existsSync(D)){const u=pe.readFileSync(D,"utf8");_=Ie(u,C.line);if(_){for(const{line:u}of _){$=Math.max($,String(u).length)}}}return j.createElement(Be.A,{flexDirection:"column",padding:1},j.createElement(Be.A,null,j.createElement(De.A,{backgroundColor:"red",color:"white"}," ","ERROR"," "),j.createElement(De.A,null," ",u.message)),C&&D&&j.createElement(Be.A,{marginTop:1},j.createElement(De.A,{dimColor:true},D,":",C.line,":",C.column)),C&&_&&j.createElement(Be.A,{marginTop:1,flexDirection:"column"},_.map((({line:u,value:y})=>j.createElement(Be.A,{key:u},j.createElement(Be.A,{width:$+1},j.createElement(De.A,{dimColor:u!==C.line,backgroundColor:u===C.line?"red":undefined,color:u===C.line?"white":undefined},String(u).padStart($," "),":")),j.createElement(De.A,{key:u,backgroundColor:u===C.line?"red":undefined,color:u===C.line?"white":undefined}," "+y))))),u.stack&&j.createElement(Be.A,{marginTop:1,flexDirection:"column"},u.stack.split("\n").slice(1).map((u=>{const y=xe.parseLine(u);if(!y){return j.createElement(Be.A,{key:u},j.createElement(De.A,{dimColor:true},"- "),j.createElement(De.A,{dimColor:true,bold:true},u))}return j.createElement(Be.A,{key:u},j.createElement(De.A,{dimColor:true},"- "),j.createElement(De.A,{dimColor:true,bold:true},y.function),j.createElement(De.A,{dimColor:true,color:"gray"}," ","(",cleanupPath(y.file)??"",":",y.line,":",y.column,")"))}))))}const Fe="\t";const _e="";const Le="";class App extends j.PureComponent{static displayName="InternalApp";static getDerivedStateFromError(u){return{error:u}}state={isFocusEnabled:true,activeFocusId:undefined,focusables:[],error:undefined};rawModeEnabledCount=0;internal_eventEmitter=new D.EventEmitter;isRawModeSupported(){return this.props.stdin.isTTY}render(){return j.createElement(ne.A.Provider,{value:{exit:this.handleExit}},j.createElement(oe.A.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC,internal_eventEmitter:this.internal_eventEmitter}},j.createElement(le.A.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},j.createElement(de.A.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},j.createElement(Ae.A.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?j.createElement(ErrorOverview,{error:this.state.error}):this.props.children)))))}componentDidMount(){$.A.hide(this.props.stdout)}componentWillUnmount(){$.A.show(this.props.stdout);if(this.isRawModeSupported()){this.handleSetRawMode(false)}}componentDidCatch(u){this.handleExit(u)}handleSetRawMode=u=>{const{stdin:y}=this.props;if(!this.isRawModeSupported()){if(y===_.stdin){throw new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported")}else{throw new Error("Raw mode is not supported on the stdin provided to Ink.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported")}}y.setEncoding("utf8");if(u){if(this.rawModeEnabledCount===0){y.ref();y.setRawMode(true);y.addListener("readable",this.handleReadable)}this.rawModeEnabledCount++;return}if(--this.rawModeEnabledCount===0){y.setRawMode(false);y.removeListener("readable",this.handleReadable);y.unref()}};handleReadable=()=>{let u;while((u=this.props.stdin.read())!==null){this.handleInput(u);this.internal_eventEmitter.emit("input",u)}};handleInput=u=>{if(u===""&&this.props.exitOnCtrlC){this.handleExit()}if(u===Le&&this.state.activeFocusId){this.setState({activeFocusId:undefined})}if(this.state.isFocusEnabled&&this.state.focusables.length>0){if(u===Fe){this.focusNext()}if(u===_e){this.focusPrevious()}}};handleExit=u=>{if(this.isRawModeSupported()){this.handleSetRawMode(false)}this.props.onExit(u)};enableFocus=()=>{this.setState({isFocusEnabled:true})};disableFocus=()=>{this.setState({isFocusEnabled:false})};focus=u=>{this.setState((y=>{const C=y.focusables.some((y=>y?.id===u));if(!C){return y}return{activeFocusId:u}}))};focusNext=()=>{this.setState((u=>{const y=u.focusables.find((u=>u.isActive))?.id;const C=this.findNextFocusable(u);return{activeFocusId:C??y}}))};focusPrevious=()=>{this.setState((u=>{const y=u.focusables.findLast((u=>u.isActive))?.id;const C=this.findPreviousFocusable(u);return{activeFocusId:C??y}}))};addFocusable=(u,{autoFocus:y})=>{this.setState((C=>{let D=C.activeFocusId;if(!D&&y){D=u}return{activeFocusId:D,focusables:[...C.focusables,{id:u,isActive:true}]}}))};removeFocusable=u=>{this.setState((y=>({activeFocusId:y.activeFocusId===u?undefined:y.activeFocusId,focusables:y.focusables.filter((y=>y.id!==u))})))};activateFocusable=u=>{this.setState((y=>({focusables:y.focusables.map((y=>{if(y.id!==u){return y}return{id:u,isActive:true}}))})))};deactivateFocusable=u=>{this.setState((y=>({activeFocusId:y.activeFocusId===u?undefined:y.activeFocusId,focusables:y.focusables.map((y=>{if(y.id!==u){return y}return{id:u,isActive:false}}))})))};findNextFocusable=u=>{const y=u.focusables.findIndex((y=>y.id===u.activeFocusId));for(let C=y+1;C<u.focusables.length;C++){const y=u.focusables[C];if(y?.isActive){return y.id}}return undefined};findPreviousFocusable=u=>{const y=u.focusables.findIndex((y=>y.id===u.activeFocusId));for(let C=y-1;C>=0;C--){const y=u.focusables[C];if(y?.isActive){return y.id}}return undefined}}},2913:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.createContext)({exit(){}});_.displayName="InternalAppContext";const j=_},2654:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.forwardRef)((({children:u,...y},C)=>D.createElement("ink-box",{ref:C,style:{...y,overflowX:y.overflowX??y.overflow??"visible",overflowY:y.overflowY??y.overflow??"visible"}},u)));_.displayName="Box";_.defaultProps={flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1};const j=_},1724:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);const _=(0,D.createContext)({activeId:undefined,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});_.displayName="InternalFocusContext";const j=_},375:(u,y,C)=>{var D=C(7919);function Newline({count:u=1}){return React.createElement("ink-text",null,"\n".repeat(u))}},9199:(u,y,C)=>{var D=C(7919);var _=C(2654);function Spacer(){return React.createElement(Box,{flexGrow:1})}},7661:(u,y,C)=>{C.d(y,{A:()=>Static});var D=C(7919);function Static(u){const{items:y,children:C,style:_}=u;const[j,$]=(0,D.useState)(0);const ne=(0,D.useMemo)((()=>y.slice(j)),[y,j]);(0,D.useLayoutEffect)((()=>{$(y.length)}),[y.length]);const oe=ne.map(((u,y)=>C(u,j+y)));const le=(0,D.useMemo)((()=>({position:"absolute",flexDirection:"column",..._})),[_]);return D.createElement("ink-box",{internal_static:true,style:le},oe)}},4036:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(1708);var _=C(7919);const j=(0,_.createContext)({stderr:D.stderr,write(){}});j.displayName="InternalStderrContext";const $=j},6258:(u,y,C)=>{C.d(y,{A:()=>ne});var D=C(8474);var _=C(1708);var j=C(7919);const $=(0,j.createContext)({stdin:_.stdin,internal_eventEmitter:new D.EventEmitter,setRawMode(){},isRawModeSupported:false,internal_exitOnCtrlC:true});$.displayName="InternalStdinContext";const ne=$},4857:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(1708);var _=C(7919);const j=(0,_.createContext)({stdout:D.stdout,write(){}});j.displayName="InternalStdoutContext";const $=j},9392:(u,y,C)=>{C.d(y,{A:()=>Text});var D=C(7919);var _=C(6797);var j=C(4087);function Text({color:u,backgroundColor:y,dimColor:C=false,bold:$=false,italic:ne=false,underline:oe=false,strikethrough:le=false,inverse:de=false,wrap:Ae="wrap",children:pe}){if(pe===undefined||pe===null){return null}const transform=D=>{if(C){D=_.Ay.dim(D)}if(u){D=(0,j.A)(D,u,"foreground")}if(y){D=(0,j.A)(D,y,"background")}if($){D=_.Ay.bold(D)}if(ne){D=_.Ay.italic(D)}if(oe){D=_.Ay.underline(D)}if(le){D=_.Ay.strikethrough(D)}if(de){D=_.Ay.inverse(D)}return D};return D.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:Ae},internal_transform:transform},pe)}},2303:(u,y,C)=>{var D=C(7919);function Transform({children:u,transform:y}){if(u===undefined||u===null){return null}return React.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:y},u)}},8022:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{Bq:()=>setAttribute,Mq:()=>createTextNode,RM:()=>createNode,V6:()=>appendChildNode,V8:()=>removeChildNode,bC:()=>insertBeforeNode,eC:()=>setStyle,x6:()=>setTextNodeValue});var _=C(1e3);var j=C(5124);var $=C(2904);var ne=C(4877);var oe=u([_]);_=(oe.then?(await oe)():oe)[0];const createNode=u=>{const y={nodeName:u,style:{},attributes:{},childNodes:[],parentNode:undefined,yogaNode:u==="ink-virtual-text"?undefined:_.Ay.Node.create()};if(u==="ink-text"){y.yogaNode?.setMeasureFunc(measureTextNode.bind(null,y))}return y};const appendChildNode=(u,y)=>{if(y.parentNode){removeChildNode(y.parentNode,y)}y.parentNode=u;u.childNodes.push(y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,u.yogaNode.getChildCount())}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const insertBeforeNode=(u,y,C)=>{if(y.parentNode){removeChildNode(y.parentNode,y)}y.parentNode=u;const D=u.childNodes.indexOf(C);if(D>=0){u.childNodes.splice(D,0,y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,D)}return}u.childNodes.push(y);if(y.yogaNode){u.yogaNode?.insertChild(y.yogaNode,u.yogaNode.getChildCount())}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const removeChildNode=(u,y)=>{if(y.yogaNode){y.parentNode?.yogaNode?.removeChild(y.yogaNode)}y.parentNode=undefined;const C=u.childNodes.indexOf(y);if(C>=0){u.childNodes.splice(C,1)}if(u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text"){markNodeAsDirty(u)}};const setAttribute=(u,y,C)=>{u.attributes[y]=C};const setStyle=(u,y)=>{u.style=y};const createTextNode=u=>{const y={nodeName:"#text",nodeValue:u,yogaNode:undefined,parentNode:undefined,style:{}};setTextNodeValue(y,u);return y};const measureTextNode=function(u,y){const C=u.nodeName==="#text"?u.nodeValue:(0,ne.A)(u);const D=(0,j.A)(C);if(D.width<=y){return D}if(D.width>=1&&y>0&&y<1){return D}const _=u.style?.textWrap??"wrap";const oe=(0,$.A)(C,y,_);return(0,j.A)(oe)};const findClosestYogaNode=u=>{if(!u?.parentNode){return undefined}return u.yogaNode??findClosestYogaNode(u.parentNode)};const markNodeAsDirty=u=>{const y=findClosestYogaNode(u);y?.markDirty()};const setTextNodeValue=(u,y)=>{if(typeof y!=="string"){y=String(y)}u.nodeValue=y;markNodeAsDirty(u)};D()}catch(u){D(u)}}))},7228:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>$});var _=C(1e3);var j=u([_]);_=(j.then?(await j)():j)[0];const getMaxWidth=u=>u.getComputedWidth()-u.getComputedPadding(_.Ay.EDGE_LEFT)-u.getComputedPadding(_.Ay.EDGE_RIGHT)-u.getComputedBorder(_.Ay.EDGE_LEFT)-u.getComputedBorder(_.Ay.EDGE_RIGHT);const $=getMaxWidth;D()}catch(u){D(u)}}))},520:(u,y,C)=>{var D=C(7919);var _=C(2913);const useApp=()=>useContext(AppContext);var j=null&&useApp},8649:(u,y,C)=>{var D=C(7919);var _=C(1724);const useFocusManager=()=>{const u=useContext(FocusContext);return{enableFocus:u.enableFocus,disableFocus:u.disableFocus,focusNext:u.focusNext,focusPrevious:u.focusPrevious,focus:u.focus}};var j=null&&useFocusManager},2215:(u,y,C)=>{var D=C(7919);var _=C(1724);var j=C(8253);const useFocus=({isActive:u=true,autoFocus:y=false,id:C}={})=>{const{isRawModeSupported:D,setRawMode:_}=useStdin();const{activeId:j,add:$,remove:ne,activate:oe,deactivate:le,focus:de}=useContext(FocusContext);const Ae=useMemo((()=>C??Math.random().toString().slice(2,7)),[C]);useEffect((()=>{$(Ae,{autoFocus:y});return()=>{ne(Ae)}}),[Ae,y]);useEffect((()=>{if(u){oe(Ae)}else{le(Ae)}}),[u,Ae]);useEffect((()=>{if(!D||!u){return}_(true);return()=>{_(false)}}),[u]);return{isFocused:Boolean(Ae)&&j===Ae,focus:de}};var $=null&&useFocus},8619:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7919);var j=C(864);var $=C(6106);var ne=C(8253);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const useInput=(u,y={})=>{const{stdin:C,setRawMode:D,internal_exitOnCtrlC:oe,internal_eventEmitter:le}=(0,ne.A)();(0,_.useEffect)((()=>{if(y.isActive===false){return}D(true);return()=>{D(false)}}),[y.isActive,D]);(0,_.useEffect)((()=>{if(y.isActive===false){return}const handleData=y=>{const C=(0,j.A)(y);const D={upArrow:C.name==="up",downArrow:C.name==="down",leftArrow:C.name==="left",rightArrow:C.name==="right",pageDown:C.name==="pagedown",pageUp:C.name==="pageup",return:C.name==="return",escape:C.name==="escape",ctrl:C.ctrl,shift:C.shift,tab:C.name==="tab",backspace:C.name==="backspace",delete:C.name==="delete",meta:C.meta||C.name==="escape"||C.option};let _=C.ctrl?C.name:C.sequence;if(j.f.includes(C.name)){_=""}if(_.startsWith("")){_=_.slice(1)}if(_.length===1&&typeof _[0]==="string"&&/[A-Z]/.test(_[0])){D.shift=true}if(!(_==="c"&&D.ctrl)||!oe){$.A.batchedUpdates((()=>{u(_,D)}))}};le?.on("input",handleData);return()=>{le?.removeListener("input",handleData)}}),[y.isActive,C,oe,u])};const le=useInput;D()}catch(u){D(u)}}))},3687:(u,y,C)=>{var D=C(7919);var _=C(4036);const useStderr=()=>useContext(StderrContext);var j=null&&useStderr},8253:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(7919);var _=C(6258);const useStdin=()=>(0,D.useContext)(_.A);const j=useStdin},5904:(u,y,C)=>{var D=C(7919);var _=C(4857);const useStdout=()=>useContext(StdoutContext);var j=null&&useStdout},8518:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{EY:()=>$.A,Ge:()=>Ae.A,XX:()=>_.A,az:()=>j.A,jC:()=>ne.A});var _=C(5e3);var j=C(2654);var $=C(9392);var ne=C(7661);var oe=C(2303);var le=C(375);var de=C(9199);var Ae=C(8619);var pe=C(520);var Ee=C(8253);var Ce=C(5904);var Ie=C(3687);var Be=C(2215);var De=C(8649);var xe=u([_,Ae]);[_,Ae]=xe.then?(await xe)():xe;D()}catch(u){D(u)}}))},7758:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>Ink});var _=C(1708);var j=C(7919);var $=C(4772);var ne=C(131);var oe=C(6836);var le=C(2640);var de=C(6627);var Ae=C(4712);var pe=C(1e3);var Ee=C(6106);var Ce=C(4359);var Ie=C(8022);var Be=C(3884);var De=C(6630);var xe=C(2226);var Fe=u([pe,Ee,Ce,Ie]);[pe,Ee,Ce,Ie]=Fe.then?(await Fe)():Fe;const noop=()=>{};class Ink{options;log;throttledLog;isUnmounted;lastOutput;container;rootNode;fullStaticOutput;exitPromise;restoreConsole;unsubscribeResize;constructor(u){(0,le.A)(this);this.options=u;this.rootNode=Ie.RM("ink-root");this.rootNode.onComputeLayout=this.calculateLayout;this.rootNode.onRender=u.debug?this.onRender:(0,$.n)(this.onRender,32,{leading:true,trailing:true});this.rootNode.onImmediateRender=this.onRender;this.log=Be.A.create(u.stdout);this.throttledLog=u.debug?this.log:(0,$.n)(this.log,undefined,{leading:true,trailing:true});this.isUnmounted=false;this.lastOutput="";this.fullStaticOutput="";this.container=Ee.A.createContainer(this.rootNode,0,null,false,null,"id",(()=>{}),null);this.unsubscribeExit=de(this.unmount,{alwaysLast:false});if(_.env["DEV"]==="true"){Ee.A.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"})}if(u.patchConsole){this.patchConsole()}if(!oe.A){u.stdout.on("resize",this.resized);this.unsubscribeResize=()=>{u.stdout.off("resize",this.resized)}}}resized=()=>{this.calculateLayout();this.onRender()};resolveExitPromise=()=>{};rejectExitPromise=()=>{};unsubscribeExit=()=>{};calculateLayout=()=>{const u=this.options.stdout.columns||80;this.rootNode.yogaNode.setWidth(u);this.rootNode.yogaNode.calculateLayout(undefined,undefined,pe.Ay.DIRECTION_LTR)};onRender=()=>{if(this.isUnmounted){return}const{output:u,outputHeight:y,staticOutput:C}=(0,Ce.A)(this.rootNode);const D=C&&C!=="\n";if(this.options.debug){if(D){this.fullStaticOutput+=C}this.options.stdout.write(this.fullStaticOutput+u);return}if(oe.A){if(D){this.options.stdout.write(C)}this.lastOutput=u;return}if(D){this.fullStaticOutput+=C}if(y>=this.options.stdout.rows){this.options.stdout.write(ne.Ik+this.fullStaticOutput+u);this.lastOutput=u;return}if(D){this.log.clear();this.options.stdout.write(C);this.log(u)}if(!D&&u!==this.lastOutput){this.throttledLog(u)}this.lastOutput=u};render(u){const y=j.createElement(xe.A,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},u);Ee.A.updateContainer(y,this.container,null,noop)}writeToStdout(u){if(this.isUnmounted){return}if(this.options.debug){this.options.stdout.write(u+this.fullStaticOutput+this.lastOutput);return}if(oe.A){this.options.stdout.write(u);return}this.log.clear();this.options.stdout.write(u);this.log(this.lastOutput)}writeToStderr(u){if(this.isUnmounted){return}if(this.options.debug){this.options.stderr.write(u);this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(oe.A){this.options.stderr.write(u);return}this.log.clear();this.options.stderr.write(u);this.log(this.lastOutput)}unmount(u){if(this.isUnmounted){return}this.calculateLayout();this.onRender();this.unsubscribeExit();if(typeof this.restoreConsole==="function"){this.restoreConsole()}if(typeof this.unsubscribeResize==="function"){this.unsubscribeResize()}if(oe.A){this.options.stdout.write(this.lastOutput+"\n")}else if(!this.options.debug){this.log.done()}this.isUnmounted=true;Ee.A.updateContainer(null,this.container,null,noop);De.A.delete(this.options.stdout);if(u instanceof Error){this.rejectExitPromise(u)}else{this.resolveExitPromise()}}async waitUntilExit(){this.exitPromise||=new Promise(((u,y)=>{this.resolveExitPromise=u;this.rejectExitPromise=y}));return this.exitPromise}clear(){if(!oe.A&&!this.options.debug){this.log.clear()}}patchConsole(){if(this.options.debug){return}this.restoreConsole=(0,Ae.A)(((u,y)=>{if(u==="stdout"){this.writeToStdout(y)}if(u==="stderr"){const u=y.startsWith("The above error occurred");if(!u){this.writeToStderr(y)}}}))}}D()}catch(u){D(u)}}))},6630:(u,y,C)=>{C.d(y,{A:()=>_});const D=new WeakMap;const _=D},3884:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(131);var _=C(5229);const create=(u,{showCursor:y=false}={})=>{let C=0;let j="";let $=false;const render=ne=>{if(!y&&!$){_.A.hide();$=true}const oe=ne+"\n";if(oe===j){return}j=oe;u.write(D._W(C)+oe);C=oe.split("\n").length};render.clear=()=>{u.write(D._W(C));j="";C=0};render.done=()=>{j="";C=0;if(!y){_.A.show();$=false}};return render};const j={create:create};const $=j},5124:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(1096);const _={};const measureText=u=>{if(u.length===0){return{width:0,height:0}}const y=_[u];if(y){return y}const C=(0,D.A)(u);const j=u.split("\n").length;_[u]={width:C,height:j};return{width:C,height:j}};const j=measureText},3801:(u,y,C)=>{C.d(y,{A:()=>Output});var D=C(7865);var _=C(2435);function isFullwidthCodePoint(u){if(!Number.isInteger(u)){return false}return(0,_.Ck)(u)||(0,_.EW)(u)}const j=new Set([27,155]);const $="0".codePointAt(0);const ne="9".codePointAt(0);const oe=19;const le=new Set;const de=new Map;for(const[u,y]of D.Ay.codes){le.add(D.Ay.color.ansi(y));de.set(D.Ay.color.ansi(u),D.Ay.color.ansi(y))}function getEndCode(u){if(le.has(u)){return u}if(de.has(u)){return de.get(u)}u=u.slice(2);if(u.includes(";")){u=u[0]+"0"}const y=D.Ay.codes.get(Number.parseInt(u,10));if(y){return D.Ay.color.ansi(y)}return D.Ay.reset.open}function findNumberIndex(u){for(let y=0;y<u.length;y++){const C=u.codePointAt(y);if(C>=$&&C<=ne){return y}}return-1}function parseAnsiCode(u,y){u=u.slice(y,y+oe);const C=findNumberIndex(u);if(C!==-1){let y=u.indexOf("m",C);if(y===-1){y=u.length}return u.slice(0,y+1)}}function tokenize(u,y=Number.POSITIVE_INFINITY){const C=[];let D=0;let _=0;while(D<u.length){const $=u.codePointAt(D);if(j.has($)){const y=parseAnsiCode(u,D);if(y){C.push({type:"ansi",code:y,endCode:getEndCode(y)});D+=y.length;continue}}const ne=isFullwidthCodePoint($);const oe=String.fromCodePoint($);C.push({type:"character",value:oe,isFullWidth:ne});D+=oe.length;_+=ne?2:oe.length;if(_>=y){break}}return C}function reduceAnsiCodes(u){let y=[];for(const C of u){if(C.code===D.Ay.reset.open){y=[]}else if(le.has(C.code)){y=y.filter((u=>u.endCode!==C.code))}else{y=y.filter((u=>u.endCode!==C.endCode));y.push(C)}}return y}function undoAnsiCodes(u){const y=reduceAnsiCodes(u);const C=y.map((({endCode:u})=>u));return C.reverse().join("")}function sliceAnsi(u,y,C){const D=tokenize(u,C);let _=[];let j=0;let $="";let ne=false;for(const u of D){if(C!==undefined&&j>=C){break}if(u.type==="ansi"){_.push(u);if(ne){$+=u.code}}else{if(!ne&&j>=y){ne=true;_=reduceAnsiCodes(_);$=_.map((({code:u})=>u)).join("")}if(ne){$+=u.value}j+=u.isFullWidth?2:u.value.length}}$+=undoAnsiCodes(_);return $}var Ae=C(8314);var pe=C(1096);const Ee=new Set([27,155]);const Ce=new Set;const Ie=new Map;for(const[u,y]of D.Ay.codes){Ce.add(D.Ay.color.ansi(y));Ie.set(D.Ay.color.ansi(u),D.Ay.color.ansi(y))}const Be="]8;;";const De=Be.split("").map((u=>u.charCodeAt(0)));const xe="";const Fe=xe.charCodeAt(0);const _e=`]8;;${xe}`;function getLinkStartCode(u){return`${Be}${u}${xe}`}function ansiCodes_getEndCode(u){if(Ce.has(u))return u;if(Ie.has(u))return Ie.get(u);if(u.startsWith(Be))return _e;u=u.slice(2);if(u.includes(";")){u=u[0]+"0"}const y=D.Ay.codes.get(parseInt(u,10));if(y){return D.Ay.color.ansi(y)}else{return D.Ay.reset.open}}function ansiCodesToString(u){return u.map((u=>u.code)).join("")}function reduce_reduceAnsiCodes(u){return reduceAnsiCodesIncremental([],u)}function reduceAnsiCodesIncremental(u,y){let C=[...u];for(const u of y){if(u.code===D.Ay.reset.open){C=[]}else if(Ce.has(u.code)){C=C.filter((y=>y.endCode!==u.code))}else{C=C.filter((y=>y.endCode!==u.endCode));C.push(u)}}return C}function undo_undoAnsiCodes(u){return reduce_reduceAnsiCodes(u).reverse().map((u=>({...u,code:u.endCode})))}function diffAnsiCodes(u,y){const C=new Set(y.map((u=>u.endCode)));const D=new Set(u.map((u=>u.code)));return[...undo_undoAnsiCodes(u.filter((u=>!C.has(u.endCode)))),...y.filter((u=>!D.has(u.code)))]}function styledCharsFromTokens(u){let y=[];const C=[];for(const D of u){if(D.type==="ansi"){y=reduceAnsiCodesIncremental(y,[D])}else if(D.type==="char"){C.push({...D,styles:[...y]})}}return C}function styledCharsToString(u){let y="";for(let C=0;C<u.length;C++){const D=u[C];if(C===0){y+=ansiCodesToString(D.styles)}else{y+=ansiCodesToString(diffAnsiCodes(u[C-1].styles,D.styles))}y+=D.value;if(C===u.length-1){y+=ansiCodesToString(diffAnsiCodes(D.styles,[]))}}return y}var Le=C(6702);function tokenize_findNumberIndex(u){for(let y=0;y<u.length;y++){const C=u.charCodeAt(y);if(C>=48&&C<=57){return y}}return-1}function parseLinkCode(u,y){u=u.slice(y);for(let y=1;y<De.length;y++){if(u.charCodeAt(y)!==De[y]){return undefined}}const C=u.indexOf("",Be.length);if(C===-1)return undefined;return u.slice(0,C+1)}function tokenize_parseAnsiCode(u,y){u=u.slice(y,y+19);const C=tokenize_findNumberIndex(u);if(C!==-1){let y=u.indexOf("m",C);if(y===-1){y=u.length}return u.slice(0,y+1)}}function tokenize_tokenize(u,y=Number.POSITIVE_INFINITY){const C=[];let D=0;let _=0;while(D<u.length){const j=u.codePointAt(D);if(Ee.has(j)){const y=parseLinkCode(u,D)||tokenize_parseAnsiCode(u,D);if(y){C.push({type:"ansi",code:y,endCode:ansiCodes_getEndCode(y)});D+=y.length;continue}}const $=(0,Le.A)(j);const ne=String.fromCodePoint(j);C.push({type:"char",value:ne,fullWidth:$});D+=ne.length;_+=$?2:ne.length;if(_>=y){break}}return C}class Output{width;height;operations=[];constructor(u){const{width:y,height:C}=u;this.width=y;this.height=C}write(u,y,C,D){const{transformers:_}=D;if(!C){return}this.operations.push({type:"write",x:u,y:y,text:C,transformers:_})}clip(u){this.operations.push({type:"clip",clip:u})}unclip(){this.operations.push({type:"unclip"})}get(){const u=[];for(let y=0;y<this.height;y++){const y=[];for(let u=0;u<this.width;u++){y.push({type:"char",value:" ",fullWidth:false,styles:[]})}u.push(y)}const y=[];for(const C of this.operations){if(C.type==="clip"){y.push(C.clip)}if(C.type==="unclip"){y.pop()}if(C.type==="write"){const{text:D,transformers:_}=C;let{x:j,y:$}=C;let ne=D.split("\n");const oe=y.at(-1);if(oe){const u=typeof oe?.x1==="number"&&typeof oe?.x2==="number";const y=typeof oe?.y1==="number"&&typeof oe?.y2==="number";if(u){const u=(0,pe.A)(D);if(j+u<oe.x1||j>oe.x2){continue}}if(y){const u=ne.length;if($+u<oe.y1||$>oe.y2){continue}}if(u){ne=ne.map((u=>{const y=j<oe.x1?oe.x1-j:0;const C=(0,Ae.A)(u);const D=j+C>oe.x2?oe.x2-j:C;return sliceAnsi(u,y,D)}));if(j<oe.x1){j=oe.x1}}if(y){const u=$<oe.y1?oe.y1-$:0;const y=ne.length;const C=$+y>oe.y2?oe.y2-$:y;ne=ne.slice(u,C);if($<oe.y1){$=oe.y1}}}let le=0;for(let[y,C]of ne.entries()){const D=u[$+le];if(!D){continue}for(const u of _){C=u(C,y)}const ne=styledCharsFromTokens(tokenize_tokenize(C));let oe=j;for(const u of ne){D[oe]=u;const y=u.fullWidth||u.value.length>1;if(y){D[oe+1]={type:"char",value:"",fullWidth:false,styles:u.styles}}oe+=y?2:1}le++}}}const C=u.map((u=>{const y=u.filter((u=>u!==undefined));return styledCharsToString(y).trimEnd()})).join("\n");return{output:C,height:u.length}}}},864:(u,y,C)=>{C.d(y,{A:()=>oe,f:()=>ne});var D=C(4573);const _=/^(?:\x1b)([a-zA-Z0-9])$/;const j=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/;const $={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};const ne=[...Object.values($),"backspace"];const isShiftKey=u=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(u);const isCtrlKey=u=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(u);const parseKeypress=(u="")=>{let y;if(D.Buffer.isBuffer(u)){if(u[0]>127&&u[1]===undefined){u[0]-=128;u=""+String(u)}else{u=String(u)}}else if(u!==undefined&&typeof u!=="string"){u=String(u)}else if(!u){u=""}const C={name:"",ctrl:false,meta:false,shift:false,option:false,sequence:u,raw:u};C.sequence=C.sequence||u||C.name;if(u==="\r"){C.raw=undefined;C.name="return"}else if(u==="\n"){C.name="enter"}else if(u==="\t"){C.name="tab"}else if(u==="\b"||u==="\b"){C.name="backspace";C.meta=u.charAt(0)===""}else if(u===""||u===""){C.name="delete";C.meta=u.charAt(0)===""}else if(u===""||u===""){C.name="escape";C.meta=u.length===2}else if(u===" "||u===" "){C.name="space";C.meta=u.length===2}else if(u.length===1&&u<=""){C.name=String.fromCharCode(u.charCodeAt(0)+"a".charCodeAt(0)-1);C.ctrl=true}else if(u.length===1&&u>="0"&&u<="9"){C.name="number"}else if(u.length===1&&u>="a"&&u<="z"){C.name=u}else if(u.length===1&&u>="A"&&u<="Z"){C.name=u.toLowerCase();C.shift=true}else if(y=_.exec(u)){C.meta=true;C.shift=/^[A-Z]$/.test(y[1])}else if(y=j.exec(u)){const D=[...u];if(D[0]===""&&D[1]===""){C.option=true}const _=[y[1],y[2],y[4],y[6]].filter(Boolean).join("");const j=(y[3]||y[5]||1)-1;C.ctrl=!!(j&4);C.meta=!!(j&10);C.shift=!!(j&1);C.code=_;C.name=$[_];C.shift=isShiftKey(_)||C.shift;C.ctrl=isCtrlKey(_)||C.ctrl}return C};const oe=parseKeypress},6106:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>Ae});var _=C(1708);var j=C(7764);var $=C(809);var ne=C(1e3);var oe=C(8022);var le=C(7386);var de=u([ne,oe,le]);[ne,oe,le]=de.then?(await de)():de;if(_.env["DEV"]==="true"){try{await C.e(984).then(C.bind(C,2984))}catch(u){if(u.code==="ERR_MODULE_NOT_FOUND"){console.warn(`\nThe environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,\nbut this failed as it was not installed. Debugging with React Devtools requires it.\n\nTo install use this command:\n\n$ npm install --save-dev react-devtools-core\n\t\t\t\t`.trim()+"\n")}else{throw u}}}const diff=(u,y)=>{if(u===y){return}if(!u){return y}const C={};let D=false;for(const _ of Object.keys(u)){const u=y?!Object.hasOwn(y,_):true;if(u){C[_]=undefined;D=true}}if(y){for(const _ of Object.keys(y)){if(y[_]!==u[_]){C[_]=y[_];D=true}}}return D?C:undefined};const cleanupYogaNode=u=>{u?.unsetMeasureFunc();u?.freeRecursive()};const Ae=j({getRootHostContext:()=>({isInsideText:false}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>false,resetAfterCommit(u){if(typeof u.onComputeLayout==="function"){u.onComputeLayout()}if(u.isStaticDirty){u.isStaticDirty=false;if(typeof u.onImmediateRender==="function"){u.onImmediateRender()}return}if(typeof u.onRender==="function"){u.onRender()}},getChildHostContext(u,y){const C=u.isInsideText;const D=y==="ink-text"||y==="ink-virtual-text";if(C===D){return u}return{isInsideText:D}},shouldSetTextContent:()=>false,createInstance(u,y,C,D){if(D.isInsideText&&u==="ink-box"){throw new Error(`<Box> can’t be nested inside <Text> component`)}const _=u==="ink-text"&&D.isInsideText?"ink-virtual-text":u;const j=(0,oe.RM)(_);for(const[u,C]of Object.entries(y)){if(u==="children"){continue}if(u==="style"){(0,oe.eC)(j,C);if(j.yogaNode){(0,le.A)(j.yogaNode,C)}continue}if(u==="internal_transform"){j.internal_transform=C;continue}if(u==="internal_static"){j.internal_static=true;continue}(0,oe.Bq)(j,u,C)}return j},createTextInstance(u,y,C){if(!C.isInsideText){throw new Error(`Text string "${u}" must be rendered inside <Text> component`)}return(0,oe.Mq)(u)},resetTextContent(){},hideTextInstance(u){(0,oe.x6)(u,"")},unhideTextInstance(u,y){(0,oe.x6)(u,y)},getPublicInstance:u=>u,hideInstance(u){u.yogaNode?.setDisplay(ne.Ay.DISPLAY_NONE)},unhideInstance(u){u.yogaNode?.setDisplay(ne.Ay.DISPLAY_FLEX)},appendInitialChild:oe.V6,appendChild:oe.V6,insertBefore:oe.bC,finalizeInitialChildren(u,y,C,D){if(u.internal_static){D.isStaticDirty=true;D.staticNode=u}return false},isPrimaryRenderer:true,supportsMutation:true,supportsPersistence:false,supportsHydration:false,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentEventPriority:()=>$.DefaultEventPriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:oe.V6,insertInContainerBefore:oe.bC,removeChildFromContainer(u,y){(0,oe.V8)(u,y);cleanupYogaNode(y.yogaNode)},prepareUpdate(u,y,C,D,_){if(u.internal_static){_.isStaticDirty=true}const j=diff(C,D);const $=diff(C["style"],D["style"]);if(!j&&!$){return null}return{props:j,style:$}},commitUpdate(u,{props:y,style:C}){if(y){for(const[C,D]of Object.entries(y)){if(C==="style"){(0,oe.eC)(u,D);continue}if(C==="internal_transform"){u.internal_transform=D;continue}if(C==="internal_static"){u.internal_static=true;continue}(0,oe.Bq)(u,C,D)}}if(C&&u.yogaNode){(0,le.A)(u.yogaNode,C)}},commitTextUpdate(u,y,C){(0,oe.x6)(u,C)},removeChild(u,y){(0,oe.V8)(u,y);cleanupYogaNode(y.yogaNode)}});D()}catch(u){D(u)}}),1)},2775:(u,y,C)=>{C.d(y,{A:()=>$});var D=C(4914);var _=C(6797);var j=C(4087);const renderBorder=(u,y,C,$)=>{if(C.style.borderStyle){const ne=C.yogaNode.getComputedWidth();const oe=C.yogaNode.getComputedHeight();const le=typeof C.style.borderStyle==="string"?D[C.style.borderStyle]:C.style.borderStyle;const de=C.style.borderTopColor??C.style.borderColor;const Ae=C.style.borderBottomColor??C.style.borderColor;const pe=C.style.borderLeftColor??C.style.borderColor;const Ee=C.style.borderRightColor??C.style.borderColor;const Ce=C.style.borderTopDimColor??C.style.borderDimColor;const Ie=C.style.borderBottomDimColor??C.style.borderDimColor;const Be=C.style.borderLeftDimColor??C.style.borderDimColor;const De=C.style.borderRightDimColor??C.style.borderDimColor;const xe=C.style.borderTop!==false;const Fe=C.style.borderBottom!==false;const _e=C.style.borderLeft!==false;const Le=C.style.borderRight!==false;const ze=ne-(_e?1:0)-(Le?1:0);let qe=xe?(0,j.A)((_e?le.topLeft:"")+le.top.repeat(ze)+(Le?le.topRight:""),de,"foreground"):undefined;if(xe&&Ce){qe=_.Ay.dim(qe)}let Je=oe;if(xe){Je-=1}if(Fe){Je-=1}let Ke=((0,j.A)(le.left,pe,"foreground")+"\n").repeat(Je);if(Be){Ke=_.Ay.dim(Ke)}let et=((0,j.A)(le.right,Ee,"foreground")+"\n").repeat(Je);if(De){et=_.Ay.dim(et)}let tt=Fe?(0,j.A)((_e?le.bottomLeft:"")+le.bottom.repeat(ze)+(Le?le.bottomRight:""),Ae,"foreground"):undefined;if(Fe&&Ie){tt=_.Ay.dim(tt)}const rt=xe?1:0;if(qe){$.write(u,y,qe,{transformers:[]})}if(_e){$.write(u,y+rt,Ke,{transformers:[]})}if(Le){$.write(u+ne-1,y+rt,et,{transformers:[]})}if(tt){$.write(u,y+oe-1,tt,{transformers:[]})}}};const $=renderBorder},4085:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>pe});var _=C(1096);var j=C(2861);var $=C(1e3);var ne=C(2904);var oe=C(7228);var le=C(4877);var de=C(2775);var Ae=u([$,oe]);[$,oe]=Ae.then?(await Ae)():Ae;const applyPaddingToText=(u,y)=>{const C=u.childNodes[0]?.yogaNode;if(C){const u=C.getComputedLeft();const D=C.getComputedTop();y="\n".repeat(D)+(0,j.A)(y,u)}return y};const renderNodeToOutput=(u,y,C)=>{const{offsetX:D=0,offsetY:j=0,transformers:Ae=[],skipStaticElements:pe}=C;if(pe&&u.internal_static){return}const{yogaNode:Ee}=u;if(Ee){if(Ee.getDisplay()===$.Ay.DISPLAY_NONE){return}const C=D+Ee.getComputedLeft();const Ce=j+Ee.getComputedTop();let Ie=Ae;if(typeof u.internal_transform==="function"){Ie=[u.internal_transform,...Ae]}if(u.nodeName==="ink-text"){let D=(0,le.A)(u);if(D.length>0){const j=(0,_.A)(D);const $=(0,oe.A)(Ee);if(j>$){const y=u.style.textWrap??"wrap";D=(0,ne.A)(D,$,y)}D=applyPaddingToText(u,D);y.write(C,Ce,D,{transformers:Ie})}return}let Be=false;if(u.nodeName==="ink-box"){(0,de.A)(C,Ce,u,y);const D=u.style.overflowX==="hidden"||u.style.overflow==="hidden";const _=u.style.overflowY==="hidden"||u.style.overflow==="hidden";if(D||_){const u=D?C+Ee.getComputedBorder($.Ay.EDGE_LEFT):undefined;const j=D?C+Ee.getComputedWidth()-Ee.getComputedBorder($.Ay.EDGE_RIGHT):undefined;const ne=_?Ce+Ee.getComputedBorder($.Ay.EDGE_TOP):undefined;const oe=_?Ce+Ee.getComputedHeight()-Ee.getComputedBorder($.Ay.EDGE_BOTTOM):undefined;y.clip({x1:u,x2:j,y1:ne,y2:oe});Be=true}}if(u.nodeName==="ink-root"||u.nodeName==="ink-box"){for(const D of u.childNodes){renderNodeToOutput(D,y,{offsetX:C,offsetY:Ce,transformers:Ie,skipStaticElements:pe})}if(Be){y.unclip()}}}};const pe=renderNodeToOutput;D()}catch(u){D(u)}}))},5e3:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>le});var _=C(7075);var j=C(1708);var $=C(7758);var ne=C(6630);var oe=u([$]);$=(oe.then?(await oe)():oe)[0];const render=(u,y)=>{const C={stdout:j.stdout,stdin:j.stdin,stderr:j.stderr,debug:false,exitOnCtrlC:true,patchConsole:true,...getOptions(y)};const D=getInstance(C.stdout,(()=>new $.A(C)));D.render(u);return{rerender:D.render,unmount(){D.unmount()},waitUntilExit:D.waitUntilExit,cleanup:()=>ne.A.delete(C.stdout),clear:D.clear}};const le=render;const getOptions=(u={})=>{if(u instanceof _.Stream){return{stdout:u,stdin:j.stdin}}return u};const getInstance=(u,y)=>{let C=ne.A.get(u);if(!C){C=y();ne.A.set(u,C)}return C};D()}catch(u){D(u)}}))},4359:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>ne});var _=C(4085);var j=C(3801);var $=u([_]);_=($.then?(await $)():$)[0];const renderer=u=>{if(u.yogaNode){const y=new j.A({width:u.yogaNode.getComputedWidth(),height:u.yogaNode.getComputedHeight()});(0,_.A)(u,y,{skipStaticElements:true});let C;if(u.staticNode?.yogaNode){C=new j.A({width:u.staticNode.yogaNode.getComputedWidth(),height:u.staticNode.yogaNode.getComputedHeight()});(0,_.A)(u.staticNode,C,{skipStaticElements:false})}const{output:D,height:$}=y.get();return{output:D,outputHeight:$,staticOutput:C?`${C.get().output}\n`:""}}return{output:"",outputHeight:0,staticOutput:""}};const ne=renderer;D()}catch(u){D(u)}}))},4877:(u,y,C)=>{C.d(y,{A:()=>D});const squashTextNodes=u=>{let y="";for(let C=0;C<u.childNodes.length;C++){const D=u.childNodes[C];if(D===undefined){continue}let _="";if(D.nodeName==="#text"){_=D.nodeValue}else{if(D.nodeName==="ink-text"||D.nodeName==="ink-virtual-text"){_=squashTextNodes(D)}if(_.length>0&&typeof D.internal_transform==="function"){_=D.internal_transform(_,C)}}y+=_}return y};const D=squashTextNodes},7386:(u,y,C)=>{C.a(u,(async(u,D)=>{try{C.d(y,{A:()=>$});var _=C(1e3);var j=u([_]);_=(j.then?(await j)():j)[0];const applyPositionStyles=(u,y)=>{if("position"in y){u.setPositionType(y.position==="absolute"?_.Ay.POSITION_TYPE_ABSOLUTE:_.Ay.POSITION_TYPE_RELATIVE)}};const applyMarginStyles=(u,y)=>{if("margin"in y){u.setMargin(_.Ay.EDGE_ALL,y.margin??0)}if("marginX"in y){u.setMargin(_.Ay.EDGE_HORIZONTAL,y.marginX??0)}if("marginY"in y){u.setMargin(_.Ay.EDGE_VERTICAL,y.marginY??0)}if("marginLeft"in y){u.setMargin(_.Ay.EDGE_START,y.marginLeft||0)}if("marginRight"in y){u.setMargin(_.Ay.EDGE_END,y.marginRight||0)}if("marginTop"in y){u.setMargin(_.Ay.EDGE_TOP,y.marginTop||0)}if("marginBottom"in y){u.setMargin(_.Ay.EDGE_BOTTOM,y.marginBottom||0)}};const applyPaddingStyles=(u,y)=>{if("padding"in y){u.setPadding(_.Ay.EDGE_ALL,y.padding??0)}if("paddingX"in y){u.setPadding(_.Ay.EDGE_HORIZONTAL,y.paddingX??0)}if("paddingY"in y){u.setPadding(_.Ay.EDGE_VERTICAL,y.paddingY??0)}if("paddingLeft"in y){u.setPadding(_.Ay.EDGE_LEFT,y.paddingLeft||0)}if("paddingRight"in y){u.setPadding(_.Ay.EDGE_RIGHT,y.paddingRight||0)}if("paddingTop"in y){u.setPadding(_.Ay.EDGE_TOP,y.paddingTop||0)}if("paddingBottom"in y){u.setPadding(_.Ay.EDGE_BOTTOM,y.paddingBottom||0)}};const applyFlexStyles=(u,y)=>{if("flexGrow"in y){u.setFlexGrow(y.flexGrow??0)}if("flexShrink"in y){u.setFlexShrink(typeof y.flexShrink==="number"?y.flexShrink:1)}if("flexWrap"in y){if(y.flexWrap==="nowrap"){u.setFlexWrap(_.Ay.WRAP_NO_WRAP)}if(y.flexWrap==="wrap"){u.setFlexWrap(_.Ay.WRAP_WRAP)}if(y.flexWrap==="wrap-reverse"){u.setFlexWrap(_.Ay.WRAP_WRAP_REVERSE)}}if("flexDirection"in y){if(y.flexDirection==="row"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_ROW)}if(y.flexDirection==="row-reverse"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_ROW_REVERSE)}if(y.flexDirection==="column"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_COLUMN)}if(y.flexDirection==="column-reverse"){u.setFlexDirection(_.Ay.FLEX_DIRECTION_COLUMN_REVERSE)}}if("flexBasis"in y){if(typeof y.flexBasis==="number"){u.setFlexBasis(y.flexBasis)}else if(typeof y.flexBasis==="string"){u.setFlexBasisPercent(Number.parseInt(y.flexBasis,10))}else{u.setFlexBasis(Number.NaN)}}if("alignItems"in y){if(y.alignItems==="stretch"||!y.alignItems){u.setAlignItems(_.Ay.ALIGN_STRETCH)}if(y.alignItems==="flex-start"){u.setAlignItems(_.Ay.ALIGN_FLEX_START)}if(y.alignItems==="center"){u.setAlignItems(_.Ay.ALIGN_CENTER)}if(y.alignItems==="flex-end"){u.setAlignItems(_.Ay.ALIGN_FLEX_END)}}if("alignSelf"in y){if(y.alignSelf==="auto"||!y.alignSelf){u.setAlignSelf(_.Ay.ALIGN_AUTO)}if(y.alignSelf==="flex-start"){u.setAlignSelf(_.Ay.ALIGN_FLEX_START)}if(y.alignSelf==="center"){u.setAlignSelf(_.Ay.ALIGN_CENTER)}if(y.alignSelf==="flex-end"){u.setAlignSelf(_.Ay.ALIGN_FLEX_END)}}if("justifyContent"in y){if(y.justifyContent==="flex-start"||!y.justifyContent){u.setJustifyContent(_.Ay.JUSTIFY_FLEX_START)}if(y.justifyContent==="center"){u.setJustifyContent(_.Ay.JUSTIFY_CENTER)}if(y.justifyContent==="flex-end"){u.setJustifyContent(_.Ay.JUSTIFY_FLEX_END)}if(y.justifyContent==="space-between"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_BETWEEN)}if(y.justifyContent==="space-around"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_AROUND)}if(y.justifyContent==="space-evenly"){u.setJustifyContent(_.Ay.JUSTIFY_SPACE_EVENLY)}}};const applyDimensionStyles=(u,y)=>{if("width"in y){if(typeof y.width==="number"){u.setWidth(y.width)}else if(typeof y.width==="string"){u.setWidthPercent(Number.parseInt(y.width,10))}else{u.setWidthAuto()}}if("height"in y){if(typeof y.height==="number"){u.setHeight(y.height)}else if(typeof y.height==="string"){u.setHeightPercent(Number.parseInt(y.height,10))}else{u.setHeightAuto()}}if("minWidth"in y){if(typeof y.minWidth==="string"){u.setMinWidthPercent(Number.parseInt(y.minWidth,10))}else{u.setMinWidth(y.minWidth??0)}}if("minHeight"in y){if(typeof y.minHeight==="string"){u.setMinHeightPercent(Number.parseInt(y.minHeight,10))}else{u.setMinHeight(y.minHeight??0)}}};const applyDisplayStyles=(u,y)=>{if("display"in y){u.setDisplay(y.display==="flex"?_.Ay.DISPLAY_FLEX:_.Ay.DISPLAY_NONE)}};const applyBorderStyles=(u,y)=>{if("borderStyle"in y){const C=y.borderStyle?1:0;if(y.borderTop!==false){u.setBorder(_.Ay.EDGE_TOP,C)}if(y.borderBottom!==false){u.setBorder(_.Ay.EDGE_BOTTOM,C)}if(y.borderLeft!==false){u.setBorder(_.Ay.EDGE_LEFT,C)}if(y.borderRight!==false){u.setBorder(_.Ay.EDGE_RIGHT,C)}}};const applyGapStyles=(u,y)=>{if("gap"in y){u.setGap(_.Ay.GUTTER_ALL,y.gap??0)}if("columnGap"in y){u.setGap(_.Ay.GUTTER_COLUMN,y.columnGap??0)}if("rowGap"in y){u.setGap(_.Ay.GUTTER_ROW,y.rowGap??0)}};const styles=(u,y={})=>{applyPositionStyles(u,y);applyMarginStyles(u,y);applyPaddingStyles(u,y);applyFlexStyles(u,y);applyDimensionStyles(u,y);applyDisplayStyles(u,y);applyBorderStyles(u,y);applyGapStyles(u,y)};const $=styles;D()}catch(u){D(u)}}))},2904:(u,y,C)=>{C.d(y,{A:()=>De});var D=C(8314);var _=C(348);var j=C(7865);const $=new Set(["","›"]);const ne=39;const oe="";const le="[";const de="]";const Ae="m";const pe=`${de}8;;`;const wrapAnsiCode=u=>`${$.values().next().value}${le}${u}${Ae}`;const wrapAnsiHyperlink=u=>`${$.values().next().value}${pe}${u}${oe}`;const wordLengths=u=>u.split(" ").map((u=>(0,D.A)(u)));const wrapWord=(u,y,C)=>{const j=[...y];let ne=false;let le=false;let de=(0,D.A)((0,_.A)(u.at(-1)));for(const[y,_]of j.entries()){const Ee=(0,D.A)(_);if(de+Ee<=C){u[u.length-1]+=_}else{u.push(_);de=0}if($.has(_)){ne=true;const u=j.slice(y+1,y+1+pe.length).join("");le=u===pe}if(ne){if(le){if(_===oe){ne=false;le=false}}else if(_===Ae){ne=false}continue}de+=Ee;if(de===C&&y<j.length-1){u.push("");de=0}}if(!de&&u.at(-1).length>0&&u.length>1){u[u.length-2]+=u.pop()}};const stringVisibleTrimSpacesRight=u=>{const y=u.split(" ");let C=y.length;while(C>0){if((0,D.A)(y[C-1])>0){break}C--}if(C===y.length){return u}return y.slice(0,C).join(" ")+y.slice(C).join("")};const exec=(u,y,C={})=>{if(C.trim!==false&&u.trim()===""){return""}let _="";let de;let Ae;const Ee=wordLengths(u);let Ce=[""];for(const[_,j]of u.split(" ").entries()){if(C.trim!==false){Ce[Ce.length-1]=Ce.at(-1).trimStart()}let u=(0,D.A)(Ce.at(-1));if(_!==0){if(u>=y&&(C.wordWrap===false||C.trim===false)){Ce.push("");u=0}if(u>0||C.trim===false){Ce[Ce.length-1]+=" ";u++}}if(C.hard&&Ee[_]>y){const C=y-u;const D=1+Math.floor((Ee[_]-C-1)/y);const $=Math.floor((Ee[_]-1)/y);if($<D){Ce.push("")}wrapWord(Ce,j,y);continue}if(u+Ee[_]>y&&u>0&&Ee[_]>0){if(C.wordWrap===false&&u<y){wrapWord(Ce,j,y);continue}Ce.push("")}if(u+Ee[_]>y&&C.wordWrap===false){wrapWord(Ce,j,y);continue}Ce[Ce.length-1]+=j}if(C.trim!==false){Ce=Ce.map((u=>stringVisibleTrimSpacesRight(u)))}const Ie=Ce.join("\n");const Be=[...Ie];let De=0;for(const[u,y]of Be.entries()){_+=y;if($.has(y)){const{groups:u}=new RegExp(`(?:\\${le}(?<code>\\d+)m|\\${pe}(?<uri>.*)${oe})`).exec(Ie.slice(De))||{groups:{}};if(u.code!==undefined){const y=Number.parseFloat(u.code);de=y===ne?undefined:y}else if(u.uri!==undefined){Ae=u.uri.length===0?undefined:u.uri}}const C=j.Ay.codes.get(Number(de));if(Be[u+1]==="\n"){if(Ae){_+=wrapAnsiHyperlink("")}if(de&&C){_+=wrapAnsiCode(C)}}else if(y==="\n"){if(de&&C){_+=wrapAnsiCode(de)}if(Ae){_+=wrapAnsiHyperlink(Ae)}}De+=y.length}return _};function wrapAnsi(u,y,C){return String(u).normalize().replaceAll("\r\n","\n").split("\n").map((u=>exec(u,y,C))).join("\n")}var Ee=C(6702);const Ce=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/;const Ie=["","›"];const slice_ansi_wrapAnsi=u=>`${Ie[0]}[${u}m`;const checkAnsi=(u,y,C)=>{let D=[];u=[...u];for(let C of u){const _=C;if(C.includes(";")){C=C.split(";")[0][0]+"0"}const $=j.Ay.codes.get(Number.parseInt(C,10));if($){const C=u.indexOf($.toString());if(C===-1){D.push(slice_ansi_wrapAnsi(y?$:_))}else{u.splice(C,1)}}else if(y){D.push(slice_ansi_wrapAnsi(0));break}else{D.push(slice_ansi_wrapAnsi(_))}}if(y){D=D.filter(((u,y)=>D.indexOf(u)===y));if(C!==undefined){const u=slice_ansi_wrapAnsi(j.Ay.codes.get(Number.parseInt(C,10)));D=D.reduce(((y,C)=>C===u?[C,...y]:[...y,C]),[])}}return D.join("")};function sliceAnsi(u,y,C){const D=[...u];const _=[];let j=typeof C==="number"?C:D.length;let $=false;let ne;let oe=0;let le="";for(const[de,Ae]of D.entries()){let D=false;if(Ie.includes(Ae)){const y=/\d[^m]*/.exec(u.slice(de,de+18));ne=y&&y.length>0?y[0]:undefined;if(oe<j){$=true;if(ne!==undefined){_.push(ne)}}}else if($&&Ae==="m"){$=false;D=true}if(!$&&!D){oe++}if(!Ce.test(Ae)&&(0,Ee.A)(Ae.codePointAt())){oe++;if(typeof C!=="number"){j++}}if(oe>y&&oe<=j){le+=Ae}else if(oe===y&&!$&&ne!==undefined){le=checkAnsi(_)}else if(oe>=j){le+=checkAnsi(_,true,ne);break}}return le}function getIndexOfNearestSpace(u,y,C){if(u.charAt(y)===" "){return y}const D=C?1:-1;for(let C=0;C<=3;C++){const _=y+C*D;if(u.charAt(_)===" "){return _}}return y}function cliTruncate(u,y,C={}){const{position:_="end",space:j=false,preferTruncationOnSpace:$=false}=C;let{truncationCharacter:ne="…"}=C;if(typeof u!=="string"){throw new TypeError(`Expected \`input\` to be a string, got ${typeof u}`)}if(typeof y!=="number"){throw new TypeError(`Expected \`columns\` to be a number, got ${typeof y}`)}if(y<1){return""}if(y===1){return ne}const oe=(0,D.A)(u);if(oe<=y){return u}if(_==="start"){if($){const C=getIndexOfNearestSpace(u,oe-y+1,true);return ne+sliceAnsi(u,C,oe).trim()}if(j===true){ne+=" "}return ne+sliceAnsi(u,oe-y+(0,D.A)(ne),oe)}if(_==="middle"){if(j===true){ne=` ${ne} `}const C=Math.floor(y/2);if($){const D=getIndexOfNearestSpace(u,C);const _=getIndexOfNearestSpace(u,oe-(y-C)+1,true);return sliceAnsi(u,0,D)+ne+sliceAnsi(u,_,oe).trim()}return sliceAnsi(u,0,C)+ne+sliceAnsi(u,oe-(y-C)+(0,D.A)(ne),oe)}if(_==="end"){if($){const C=getIndexOfNearestSpace(u,y-1);return sliceAnsi(u,0,C)+ne}if(j===true){ne=` ${ne}`}return sliceAnsi(u,0,y-(0,D.A)(ne))+ne}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${_}`)}const Be={};const wrapText=(u,y,C)=>{const D=u+String(y)+String(C);const _=Be[D];if(_){return _}let j=u;if(C==="wrap"){j=wrapAnsi(u,y,{trim:false,hard:true})}if(C.startsWith("truncate")){let D="end";if(C==="truncate-middle"){D="middle"}if(C==="truncate-start"){D="start"}j=cliTruncate(u,y,{position:D})}Be[D]=j;return j};const De=wrapText},6702:(u,y,C)=>{C.d(y,{A:()=>isFullwidthCodePoint});function isFullwidthCodePoint(u){if(!Number.isInteger(u)){return false}return u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141)}},6836:(u,y,C)=>{C.d(y,{A:()=>j});var D=C(1708);const _=D.env.CI!=="0"&&D.env.CI!=="false"&&("CI"in D.env||"CONTINUOUS_INTEGRATION"in D.env||Object.keys(D.env).some((u=>u.startsWith("CI_"))));const j=_},9345:(u,y,C)=>{C.d(y,{A:()=>pt});var D=C(6760);var _=C(1708);var j=C(3136);var $=C(5313);var ne=C(9023);var oe=C(6928);
91
91
  /**
92
92
  * @license
93
93
  * Copyright (c) 2016, Contributors