@rsbuild/core 2.2.1 → 2.2.2

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.
@@ -1,5 +1,5 @@
1
1
  /*! LICENSE: http-proxy-middleware.js.LICENSE.txt */
2
- import e from"node:http";import t from"node:https";import r from"node:http2";import{EventEmitter as o}from"node:events";import"node:net";import"node:stream";import{styleText as n}from"node:util";import{URL as s}from"node:url";import{URL as i}from"url";import"node:zlib";import"node:querystring";import{__webpack_require__ as a}from"./rslib-runtime.js";import"./626.js";a.add({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(e,t,r){let o=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"),n=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"),s=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"),i=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(let o of e){let e=a.create(o,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>i(e,t),a.stringify=(e,t={})=>"string"==typeof e?o(a.parse(e,t),t):o(e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),n(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=s(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(e,t,r){let o=r("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"),n=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");e.exports=(e,t={})=>{let r=(e,s={})=>{let i=n.isInvalidBrace(s),a=!0===e.invalid&&!0===t.escapeInvalid,u=!0===i||!0===a,l=!0===t.escapeInvalid?"\\":"",p="";if(!0===e.isOpen)return l+e.value;if(!0===e.isClose)return console.log("node.isClose",l,e.value),l+e.value;if("open"===e.type)return u?l+e.value:"(";if("close"===e.type)return u?l+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":u?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=n.reduce(e.nodes),s=o(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==s.length)return r.length>1&&s.length>1?`(${s})`:s}if(e.nodes)for(let t of e.nodes)p+=r(t,e);return p};return r(e)}},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(e){e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(e,t,r){let o=r("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"),n=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"),s=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"),i=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?s.flatten(t).map(e=>`{${e}}`):t;for(let n of e)if(Array.isArray(n))for(let e of n)o.push(i(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),o.push(Array.isArray(e)?i(n,e,r):n+e);return s.flatten(o)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,u={})=>{e.queue=[];let l=u,p=u.queue;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)p=(l=l.parent).queue;if(e.invalid||e.dollar)return void p.push(i(p.pop(),n(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void p.push(i(p.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=s.reduce(e.nodes);if(s.exceedsLimit(...a,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=o(...a,t);0===u.length&&(u=n(e,t)),p.push(i(p.pop(),u)),e.nodes=[];return}let c=s.encloseBrace(e),d=e.queue,f=e;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)d=(f=f.parent).queue;for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if("comma"===r.type&&"brace"===e.type){1===t&&d.push(""),d.push("");continue}if("close"===r.type){p.push(i(p.pop(),d,c));continue}if(r.value&&"open"!==r.type){d.push(i(d.pop(),r.value));continue}r.nodes&&a(r,e)}return d};return s.flatten(a(e))}},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(e,t,r){let o=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"),{MAX_LENGTH:n,CHAR_BACKSLASH:s,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:p,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js");e.exports=(e,t={})=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");let _=t||{},x="number"==typeof _.maxLength?Math.min(n,_.maxLength):n;if(e.length>x)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${x})`);let C={type:"root",input:e,nodes:[]},R=[C],A=C,v=C,w=0,E=e.length,S=0,$=0,O=()=>e[S++],k=e=>{if("text"===e.type&&"dot"===v.type&&(v.type="text"),v&&"text"===v.type&&"text"===e.type){v.value+=e.value;return}return A.nodes.push(e),e.parent=A,e.prev=v,v=e,e};for(k({type:"bos"});S<E;)if(A=R[R.length-1],(r=O())!==b&&r!==y){if(r===s){k({type:"text",value:(t.keepEscaping?r:"")+O()});continue}if(r===h){k({type:"text",value:"\\"+r});continue}if(r===f){let e;for(w++;S<E&&(e=O());){if(r+=e,e===f){w++;continue}if(e===s){r+=O();continue}if(e===h&&0==--w)break}k({type:"text",value:r});continue}if(r===l){A=k({type:"paren",nodes:[]}),R.push(A),k({type:"text",value:r});continue}if(r===p){if("paren"!==A.type){k({type:"text",value:r});continue}A=R.pop(),k({type:"text",value:r}),A=R[R.length-1];continue}if(r===m||r===g||r===i){let e,o=r;for(!0!==t.keepQuotes&&(r="");S<E&&(e=O());){if(e===s){r+=e+O();continue}if(e===o){!0===t.keepQuotes&&(r+=e);break}r+=e}k({type:"text",value:r});continue}if(r===c){$++,A=k({type:"brace",open:!0,close:!1,dollar:v.value&&"$"===v.value.slice(-1)||!0===A.dollar,depth:$,commas:0,ranges:0,nodes:[]}),R.push(A),k({type:"open",value:r});continue}if(r===d){if("brace"!==A.type){k({type:"text",value:r});continue}(A=R.pop()).close=!0,k({type:"close",value:r}),$--,A=R[R.length-1];continue}if(r===a&&$>0){if(A.ranges>0){A.ranges=0;let e=A.nodes.shift();A.nodes=[e,{type:"text",value:o(A)}]}k({type:"comma",value:r}),A.commas++;continue}if(r===u&&$>0&&0===A.commas){let e=A.nodes;if(0===$||0===e.length){k({type:"text",value:r});continue}if("dot"===v.type){if(A.range=[],v.value+=r,v.type="range",3!==A.nodes.length&&5!==A.nodes.length){A.invalid=!0,A.ranges=0,v.type="text";continue}A.ranges++,A.args=[];continue}if("range"===v.type){e.pop();let t=e[e.length-1];t.value+=v.value+r,v=t,A.ranges--;continue}k({type:"dot",value:r});continue}k({type:"text",value:r})}do if("root"!==(A=R.pop()).type){A.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=R[R.length-1],t=e.nodes.indexOf(A);e.nodes.splice(t,1,...A.nodes)}while(R.length>0);return k({type:"eos"}),C}},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(e,t,r){let o=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");e.exports=(e,t={})=>{let r=(e,n={})=>{let s=t.escapeInvalid&&o.isInvalidBrace(n),i=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(s||i)&&o.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=r(t);return a};return r(e)}},"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(e,t){t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find(e=>e.type===t),t.exceedsLimit=(e,r,o=1,n)=>!1!==n&&!!t.isInteger(e)&&!!t.isInteger(r)&&(Number(r)-Number(e))/Number(o)>=n,t.escapeNode=(e,t=0,r)=>{let o=e.nodes[t];o&&(r&&o.type===r||"open"===o.type||"close"===o.type)&&!0!==o.escaped&&(o.value="\\"+o.value,o.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),t.flatten=(...e)=>{let t=[],r=e=>{for(let o=0;o<e.length;o++){let n=e[o];if(Array.isArray(n)){r(n);continue}void 0!==n&&t.push(n)}return t};return r(e),t}},"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(e,t,r){let o;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let o=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(n=o))}),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),o=!1,t.destroy=()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r("../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(e,t,r){e.exports=function(e){function t(e){let r,n,s,i=null;function a(...e){if(!a.enabled)return;let o=Number(new Date);a.diff=o-(r||o),a.prev=r,a.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";n++;let s=t.formatters[o];if("function"==typeof s){let t=e[n];r=s.call(a,t),e.splice(n,1),n--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==t.namespaces&&(n=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,r){let o=t(this.namespace+(void 0===r?":":r)+e);return o.log=this.log,o}function n(e,t){let r=0,o=0,n=-1,s=0;for(;r<e.length;)if(o<t.length&&(t[o]===e[r]||"*"===t[o]))"*"===t[o]?(n=o,s=r):r++,o++;else{if(-1===n)return!1;o=n+1,r=++s}for(;o<t.length&&"*"===t[o];)o++;return o===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=r("../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(e,t,r){"u"<typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r("../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"):e.exports=r("../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js")},"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(e,t,r){let o=r("tty"),n=r("util");t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let o=0;o<r.length;o++)e.inspectOpts[r[o]]=t.inspectOpts[r[o]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:o,useColors:n}=this;if(n){let t=this.color,n="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${n};1m${o} \u001B[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(n+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+o+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:o.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r("supports-color");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e},{}),e.exports=r("../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(t);let{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(e,t,r){let o=r("util"),n=r("../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"),s=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},u=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},l=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},p=(e,t,r,o)=>{if(r)return n(e,t,{wrap:!1,...o});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},c=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,o=r.capture?"":"?:";return t?`(${o}${e.join("|")})`:e.join("|")}return n(e,t,r)},d=(...e)=>RangeError("Invalid range arguments: "+o.inspect(...e)),f=(e,t,r)=>{if(!0===r.strictRanges)throw d([e,t]);return[]},h=(e,t,r,o={})=>{if(null==t&&i(e))return[e];if(!i(e)||!i(t))return f(e,t,o);if("function"==typeof r)return h(e,t,1,{transform:r});if(s(r))return h(e,t,0,r);let n={...o};if(!0===n.capture&&(n.wrap=!0),!Number.isInteger(+(r=r||n.step||1))){if(null!=r&&!s(r)){var m=r;if(!0===n.strictRanges)throw TypeError(`Expected step "${m}" to be a number`);return[]}return h(e,t,1,r)}return Number.isInteger(+e)&&Number.isInteger(+t)?((e,t,r=1,o={})=>{let n=Number(e),s=Number(t);if(!Number.isInteger(n)||!Number.isInteger(s)){if(!0===o.strictRanges)throw d([e,t]);return[]}0===n&&(n=0),0===s&&(s=0);let i=n>s,f=String(e),h=String(t),m=String(r);r=Math.max(Math.abs(r),1);let g=a(f)||a(h)||a(m),y=g?Math.max(f.length,h.length,m.length):0,b=!1===g&&!1==("string"==typeof e||"string"==typeof t||!0===o.stringify),_=o.transform||(e=>!0===b?Number(e):String(e));if(o.toRegex&&1===r)return p(l(e,y),l(t,y),!0,o);let x={negatives:[],positives:[]},C=e=>x[e<0?"negatives":"positives"].push(Math.abs(e)),R=[],A=0;for(;i?n>=s:n<=s;)!0===o.toRegex&&r>1?C(n):R.push(u(_(n,A),y,b)),n=i?n-r:n+r,A++;if(!0===o.toRegex){let e,t,n,s;return r>1?(x.negatives.sort((e,t)=>e<t?-1:+(e>t)),x.positives.sort((e,t)=>e<t?-1:+(e>t)),t=o.capture?"":"?:",n="",s="",(x.positives.length&&(n=x.positives.map(e=>l(String(e),y)).join("|")),x.negatives.length&&(s=`-(${t}${x.negatives.map(e=>l(String(e),y)).join("|")})`),e=n&&s?`${n}|${s}`:n||s,o.wrap)?`(${t}${e})`:e):c(R,null,{wrap:!1,...o})}return R})(e,t,r,n):((e,t,r=1,o={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return f(e,t,o);let n=o.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,u=Math.min(s,i),l=Math.max(s,i);if(o.toRegex&&1===r)return p(u,l,!1,o);let d=[],h=0;for(;a?s>=i:s<=i;)d.push(n(s,h)),s=a?s-r:s+r,h++;return!0===o.toRegex?c(d,null,{wrap:!1,options:o}):d})(e,t,Math.max(Math.abs(r),1),n)};e.exports=h},"../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(e){e.exports=function(e){var t;if("string"!=typeof e||""===e)return!1;for(;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},"../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(e,t,r){var o=r("../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"),n={"{":"}","(":")","[":"]"},s=function(e){if("!"===e[0])return!0;for(var t=0,r=-2,o=-2,s=-2,i=-2,a=-2;t<e.length;){if("*"===e[t]||"?"===e[t+1]&&/[\].+)]/.test(e[t])||-1!==o&&"["===e[t]&&"]"!==e[t+1]&&(o<t&&(o=e.indexOf("]",t)),o>t)&&(-1===a||a>o||-1===(a=e.indexOf("\\",t))||a>o)||-1!==s&&"{"===e[t]&&"}"!==e[t+1]&&(s=e.indexOf("}",t))>t&&(-1===(a=e.indexOf("\\",t))||a>s)||-1!==i&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(i=e.indexOf(")",t))>t&&(-1===(a=e.indexOf("\\",t))||a>i)||-1!==r&&"("===e[t]&&"|"!==e[t+1]&&(r<t&&(r=e.indexOf("|",t)),-1!==r&&")"!==e[r+1]&&(i=e.indexOf(")",r))>r)&&(-1===(a=e.indexOf("\\",r))||a>i))return!0;if("\\"===e[t]){var u=e[t+1];t+=2;var l=n[u];if(l){var p=e.indexOf(l,t);-1!==p&&(t=p+1)}if("!"===e[t])return!0}else t++}return!1},i=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var r=e[t+1];t+=2;var o=n[r];if(o){var s=e.indexOf(o,t);-1!==s&&(t=s+1)}if("!"===e[t])return!0}else t++}return!1};e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(o(e))return!0;var r=s;return t&&!1===t.strict&&(r=i),r(e)}},"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(e){e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(e,t,r){let o=r("util"),n=r("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"),s=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js"),i=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"),a=e=>""===e||"./"===e,u=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},l=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let o=new Set,n=new Set,i=new Set,a=0,u=e=>{i.add(e.output),r&&r.onResult&&r.onResult(e)};for(let i=0;i<t.length;i++){let l=s(String(t[i]),{...r,onResult:u},!0),p=l.state.negated||l.state.negatedExtglob;for(let t of(p&&a++,e)){let e=l(t,!0);(p?!e.isMatch:e.isMatch)&&(p?o.add(e.output):(o.delete(e.output),n.add(e.output)))}}let l=(a===t.length?[...i]:[...n]).filter(e=>!o.has(e));if(r&&0===l.length){if(!0===r.failglob)throw Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return l};l.match=l,l.matcher=(e,t)=>s(e,t),l.isMatch=(e,t,r)=>s(t,r)(e),l.any=l.isMatch,l.not=(e,t,r={})=>{t=[].concat(t).map(String);let o=new Set,n=[],s=new Set(l(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),n.push(e.output)}}));for(let e of n)s.has(e)||o.add(e);return[...o]},l.contains=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${o.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>l.contains(e,t,r));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...r,contains:!0})},l.matchKeys=(e,t,r)=>{if(!i.isObject(e))throw TypeError("Expected the first argument to be an object");let o=l(Object.keys(e),t,r),n={};for(let t of o)n[t]=e[t];return n},l.some=(e,t,r)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(o.some(e=>t(e)))return!0}return!1},l.every=(e,t,r)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(!o.every(e=>t(e)))return!1}return!0},l.all=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${o.inspect(e)}"`);return[].concat(t).every(t=>s(t,r)(e))},l.capture=(e,t,r)=>{let o=i.isWindows(r),n=s.makeRe(String(e),{...r,capture:!0}).exec(o?i.toPosixSlashes(t):t);if(n)return n.slice(1).map(e=>void 0===e?"":e)},l.makeRe=(...e)=>s.makeRe(...e),l.scan=(...e)=>s.scan(...e),l.parse=(e,t)=>{let r=[];for(let o of[].concat(e||[]))for(let e of n(String(o),t))r.push(s.parse(e,t));return r},l.braces=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return t&&!0===t.nobrace||!u(e)?[e]:n(e,t)},l.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return l.braces(e,{...t,expand:!0})},l.hasBraces=u,e.exports=l},"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(e){function t(e,t,r,o){return Math.round(e/r)+" "+o+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var o,n,s,i,a=typeof e;if("string"===a&&e.length>0){var u=e;if(!((u=String(u)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(l){var p=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*p;case"weeks":case"week":case"w":return 6048e5*p;case"days":case"day":case"d":return 864e5*p;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*p;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*p;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:break}}}return}if("number"===a&&isFinite(e)){return r.long?(n=Math.abs(o=e))>=864e5?t(o,n,864e5,"day"):n>=36e5?t(o,n,36e5,"hour"):n>=6e4?t(o,n,6e4,"minute"):n>=1e3?t(o,n,1e3,"second"):o+" ms":(i=Math.abs(s=e))>=864e5?Math.round(s/864e5)+"d":i>=36e5?Math.round(s/36e5)+"h":i>=6e4?Math.round(s/6e4)+"m":i>=1e3?Math.round(s/1e3)+"s":s+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js"(e,t,r){e.exports=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js")},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(e,t,r){let o=r("path?37f5"),n="[^\\\\/]",s="[^/]",i="(?:\\/|$)",a="(?:^|\\/)",u=`\\.{1,2}${i}`,l=`(?!${a}${u})`,p=`(?!\\.{0,1}${i})`,c=`(?!${u})`,d=`${s}*?`,f={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:i,DOTS_SLASH:u,NO_DOT:"(?!\\.)",NO_DOTS:l,NO_DOT_SLASH:p,NO_DOTS_SLASH:c,QMARK_NO_DOT:"[^.\\/]",STAR:d,START_ANCHOR:a},h={...f,SLASH_LITERAL:"[\\\\/]",QMARK:n,STAR:`${n}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?h:f}},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(e,t,r){let o=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"),n=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=o,p=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>n.escapeRegex(e)).join("..")}return r},c=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],r=0,o=0,n=0,s="",i=!1;for(let a of e){if(!0===i){s+=a,i=!1;continue}if("\\"===a){s+=a,i=!0;continue}if('"'===a){n=+(1!==n),s+=a;continue}if(0===n){if("["===a)r++;else if("]"===a&&r>0)r--;else if(0===r){if("("===a)o++;else if(")"===a&&o>0)o--;else if("|"===a&&0===o){t.push(s),s="";continue}}}s+=a}return t.push(s),t},f=e=>{let t=e.trim(),r=!0;for(;!0===r;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if((e=>{let t=!1;for(let r of e){if(!0===t){t=!1;continue}if("\\"===r){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0})(t))return t.replace(/\\(.)/g,"$1")},h=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let r=0,o=0,n=0,s=!1;for(let i=1;i<e.length;i++){let a=e[i];if(!0===s){s=!1;continue}if("\\"===a){s=!0;continue}if('"'===a){n=+(1!==n);continue}if(1!==n){if("["===a){r++;continue}if("]"===a&&r>0){r--;continue}if(!(r>0)){if("("===a){o++;continue}if(")"===a&&0==--o){if(!0===t&&i!==e.length-1)return;return{type:e[0],body:e.slice(2,i),end:i}}}}}},m=e=>{let t=0,r=[];for(;t<e.length;){let o=h(e.slice(t),!1);if(!o||"*"!==o.type)return;let n=d(o.body).map(e=>e.trim());if(1!==n.length)return;let s=f(n[0]);if(!s||1!==s.length)return;r.push(s),t+=o.end+1}if(r.length<1)return;let o=1===r.length?n.escapeRegex(r[0]):`[${r.map(e=>n.escapeRegex(e)).join("")}]`;return`${o}*`},g=e=>{let t=0,r=e.trim(),o=h(r);for(;o;)t++,o=h(r=o.body.trim());return t},y=(e,t)=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");e=l[e]||e;let h={...t},b="number"==typeof h.maxLength?Math.min(s,h.maxLength):s,_=e.length;if(_>b)throw SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${b}`);let x={type:"bos",value:"",output:h.prepend||""},C=[x],R=h.capture?"":"?:",A=n.isWindows(t),v=o.globChars(A),w=o.extglobChars(v),{DOT_LITERAL:E,PLUS_LITERAL:S,SLASH_LITERAL:$,ONE_CHAR:O,DOTS_SLASH:k,NO_DOT:H,NO_DOT_SLASH:T,NO_DOTS_SLASH:L,QMARK:I,QMARK_NO_DOT:F,STAR:P,START_ANCHOR:j}=v,N=e=>`(${R}(?:(?!${j}${e.dot?k:E}).)*?)`,M=h.dot?"":H,U=h.dot?I:F,B=!0===h.bash?N(h):P;h.capture&&(B=`(${B})`),"boolean"==typeof h.noext&&(h.noextglob=h.noext);let D={input:e,index:-1,start:0,dot:!0===h.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};_=(e=n.removePrefix(e,D)).length;let G=[],q=[],K=[],W=x,Z=()=>D.index===_-1,z=D.peek=(t=1)=>e[D.index+t],Q=D.advance=()=>e[++D.index]||"",V=()=>e.slice(D.index+1),X=(e="",t=0)=>{D.consumed+=e,D.index+=t},Y=e=>{D.output+=null!=e.output?e.output:e.value,X(e.value)},J=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)Q(),D.start++,e++;return e%2!=0&&(D.negated=!0,D.start++,!0)},ee=e=>{D[e]++,K.push(e)},et=e=>{D[e]--,K.pop()},er=e=>{if("globstar"===W.type){let t=D.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||G.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(D.output=D.output.slice(0,-W.output.length),W.type="star",W.value="*",W.output=B,D.output+=W.output)}if(G.length&&"paren"!==e.type&&(G[G.length-1].inner+=e.value),(e.value||e.output)&&Y(e),W&&"text"===W.type&&"text"===e.type){W.value+=e.value,W.output=(W.output||"")+e.value;return}e.prev=W,C.push(e),W=e},eo=(e,t)=>{let r={...w[t],conditions:1,inner:""};r.prev=W,r.parens=D.parens,r.output=D.output,r.startIndex=D.index,r.tokensIndex=C.length;let o=(h.capture?"(":"")+r.open;ee("parens"),er({type:e,value:t,output:D.output?"":O}),er({type:"paren",extglob:!0,value:Q(),output:o}),G.push(r)},en=s=>{let i,a=e.slice(s.startIndex,D.index+1),u=((e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};let r="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:o.DEFAULT_MAX_EXTGLOB_RECURSION,n=d(e).map(e=>e.trim());if(n.length>1&&(n.some(e=>""===e)||n.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(f).filter(Boolean);for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){let o=t[e],n=t[r],s=o[0];if(s&&o===s.repeat(o.length)&&n===s.repeat(n.length)&&(o===n||o.startsWith(n)||n.startsWith(o)))return!0}return!1})(n)))return{risky:!0};for(let e of n){let t=m(e);if(t)return{risky:!0,safeOutput:t};if(g(e)>r)return{risky:!0}}return{risky:!1}})(e.slice(s.startIndex+2,D.index),h);if(("plus"===s.type||"star"===s.type)&&u.risky){let e=u.safeOutput?(s.output?"":O)+(h.capture?`(${u.safeOutput})`:u.safeOutput):void 0,t=C[s.tokensIndex];t.type="text",t.value=a,t.output=e||n.escapeRegex(a);for(let e=s.tokensIndex+1;e<C.length;e++)C[e].value="",C[e].output="",delete C[e].suffix;D.output=s.output+t.output,D.backtrack=!0,er({type:"paren",extglob:!0,value:r,output:""}),et("parens");return}let l=s.close+(h.capture?")":"");if("negate"===s.type){let e=B;if(s.inner&&s.inner.length>1&&s.inner.includes("/")&&(e=N(h)),(e!==B||Z()||/^\)+$/.test(V()))&&(l=s.close=`)$))${e}`),s.inner.includes("*")&&(i=V())&&/^\.[^\\/.]+$/.test(i)){let r=y(i,{...t,fastpaths:!1}).output;l=s.close=`)${r})${e})`}"bos"===s.prev.type&&(D.negatedExtglob=!0)}er({type:"paren",extglob:!0,value:r,output:l}),et("parens")};if(!1!==h.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(u,(e,t,o,n,s,i)=>"\\"===n?(r=!0,e):"?"===n?t?t+n+(s?I.repeat(s.length):""):0===i?U+(s?I.repeat(s.length):""):I.repeat(o.length):"."===n?E.repeat(o.length):"*"===n?t?t+n+(s?B:""):B:t?e:`\\${e}`);return(!0===r&&(o=!0===h.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),o===e&&!0===h.contains)?D.output=e:D.output=n.wrapOutput(o,D,t),D}for(;!Z();){if("\0"===(r=Q()))continue;if("\\"===r){let e=z();if("/"===e&&!0!==h.bash||"."===e||";"===e)continue;if(!e){er({type:"text",value:r+="\\"});continue}let t=/^\\+/.exec(V()),o=0;if(t&&t[0].length>2&&(o=t[0].length,D.index+=o,o%2!=0&&(r+="\\")),!0===h.unescape?r=Q():r+=Q(),0===D.brackets){er({type:"text",value:r});continue}}if(D.brackets>0&&("]"!==r||"["===W.value||"[^"===W.value)){if(!1!==h.posix&&":"===r){let e=W.value.slice(1);if(e.includes("[")&&(W.posix=!0,e.includes(":"))){let e=W.value.lastIndexOf("["),t=W.value.slice(0,e),r=i[W.value.slice(e+2)];if(r){W.value=t+r,D.backtrack=!0,Q(),x.output||1!==C.indexOf(W)||(x.output=O);continue}}}("["===r&&":"!==z()||"-"===r&&"]"===z())&&(r=`\\${r}`),"]"===r&&("["===W.value||"[^"===W.value)&&(r=`\\${r}`),!0===h.posix&&"!"===r&&"["===W.value&&(r="^"),W.value+=r,Y({value:r});continue}if(1===D.quotes&&'"'!==r){r=n.escapeRegex(r),W.value+=r,Y({value:r});continue}if('"'===r){D.quotes=+(1!==D.quotes),!0===h.keepQuotes&&er({type:"text",value:r});continue}if("("===r){ee("parens"),er({type:"paren",value:r});continue}if(")"===r){if(0===D.parens&&!0===h.strictBrackets)throw SyntaxError(c("opening","("));let e=G[G.length-1];if(e&&D.parens===e.parens+1){en(G.pop());continue}er({type:"paren",value:r,output:D.parens?")":"\\)"}),et("parens");continue}if("["===r){if(!0!==h.nobracket&&V().includes("]"))ee("brackets");else{if(!0!==h.nobracket&&!0===h.strictBrackets)throw SyntaxError(c("closing","]"));r=`\\${r}`}er({type:"bracket",value:r});continue}if("]"===r){if(!0===h.nobracket||W&&"bracket"===W.type&&1===W.value.length){er({type:"text",value:r,output:`\\${r}`});continue}if(0===D.brackets){if(!0===h.strictBrackets)throw SyntaxError(c("opening","["));er({type:"text",value:r,output:`\\${r}`});continue}et("brackets");let e=W.value.slice(1);if(!0===W.posix||"^"!==e[0]||e.includes("/")||(r=`/${r}`),W.value+=r,Y({value:r}),!1===h.literalBrackets||n.hasRegexChars(e))continue;let t=n.escapeRegex(W.value);if(D.output=D.output.slice(0,-W.value.length),!0===h.literalBrackets){D.output+=t,W.value=t;continue}W.value=`(${R}${t}|${W.value})`,D.output+=W.value;continue}if("{"===r&&!0!==h.nobrace){ee("braces");let e={type:"brace",value:r,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};q.push(e),er(e);continue}if("}"===r){let e=q[q.length-1];if(!0===h.nobrace||!e){er({type:"text",value:r,output:r});continue}let t=")";if(!0===e.dots){let e=C.slice(),r=[];for(let t=e.length-1;t>=0&&(C.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=p(r,h),D.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let o=D.output.slice(0,e.outputIndex),n=D.tokens.slice(e.tokensIndex);for(let s of(e.value=e.output="\\{",r=t="\\}",D.output=o,n))D.output+=s.output||s.value}er({type:"brace",value:r,output:t}),et("braces"),q.pop();continue}if("|"===r){G.length>0&&G[G.length-1].conditions++,er({type:"text",value:r});continue}if(","===r){let e=r,t=q[q.length-1];t&&"braces"===K[K.length-1]&&(t.comma=!0,e="|"),er({type:"comma",value:r,output:e});continue}if("/"===r){if("dot"===W.type&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",C.pop(),W=x;continue}er({type:"slash",value:r,output:$});continue}if("."===r){if(D.braces>0&&"dot"===W.type){"."===W.value&&(W.output=E);let e=q[q.length-1];W.type="dots",W.output+=r,W.value+=r,e.dots=!0;continue}if(D.braces+D.parens===0&&"bos"!==W.type&&"slash"!==W.type){er({type:"text",value:r,output:E});continue}er({type:"dot",value:r,output:E});continue}if("?"===r){if(!(W&&"("===W.value)&&!0!==h.noextglob&&"("===z()&&"?"!==z(2)){eo("qmark",r);continue}if(W&&"paren"===W.type){let e=z(),t=r;if("<"===e&&!n.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==W.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(V()))||(t=`\\${r}`),er({type:"text",value:r,output:t});continue}if(!0!==h.dot&&("slash"===W.type||"bos"===W.type)){er({type:"qmark",value:r,output:F});continue}er({type:"qmark",value:r,output:I});continue}if("!"===r){if(!0!==h.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){eo("negate",r);continue}if(!0!==h.nonegate&&0===D.index){J();continue}}if("+"===r){if(!0!==h.noextglob&&"("===z()&&"?"!==z(2)){eo("plus",r);continue}if(W&&"("===W.value||!1===h.regex){er({type:"plus",value:r,output:S});continue}if(W&&("bracket"===W.type||"paren"===W.type||"brace"===W.type)||D.parens>0){er({type:"plus",value:r});continue}er({type:"plus",value:S});continue}if("@"===r){if(!0!==h.noextglob&&"("===z()&&"?"!==z(2)){er({type:"at",extglob:!0,value:r,output:""});continue}er({type:"text",value:r});continue}if("*"!==r){("$"===r||"^"===r)&&(r=`\\${r}`);let e=a.exec(V());e&&(r+=e[0],D.index+=e[0].length),er({type:"text",value:r});continue}if(W&&("globstar"===W.type||!0===W.star)){W.type="star",W.star=!0,W.value+=r,W.output=B,D.backtrack=!0,D.globstar=!0,X(r);continue}let t=V();if(!0!==h.noextglob&&/^\([^?]/.test(t)){eo("star",r);continue}if("star"===W.type){if(!0===h.noglobstar){X(r);continue}let o=W.prev,n=o.prev,s="slash"===o.type||"bos"===o.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===h.bash&&(!s||t[0]&&"/"!==t[0])){er({type:"star",value:r,output:""});continue}let a=D.braces>0&&("comma"===o.type||"brace"===o.type),u=G.length&&("pipe"===o.type||"paren"===o.type);if(!s&&"paren"!==o.type&&!a&&!u){er({type:"star",value:r,output:""});continue}for(;"/**"===t.slice(0,3);){let r=e[D.index+4];if(r&&"/"!==r)break;t=t.slice(3),X("/**",3)}if("bos"===o.type&&Z()){W.type="globstar",W.value+=r,W.output=N(h),D.output=W.output,D.globstar=!0,X(r);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&Z()){D.output=D.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=N(h)+(h.strictSlashes?")":"|$)"),W.value+=r,D.globstar=!0,D.output+=o.output+W.output,X(r);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){let e=void 0!==t[1]?"|$":"";D.output=D.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=`${N(h)}${$}|${$}${e})`,W.value+=r,D.output+=o.output+W.output,D.globstar=!0,X(r+Q()),er({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){W.type="globstar",W.value+=r,W.output=`(?:^|${$}|${N(h)}${$})`,D.output=W.output,D.globstar=!0,X(r+Q()),er({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-W.output.length),W.type="globstar",W.output=N(h),W.value+=r,D.output+=W.output,D.globstar=!0,X(r);continue}let o={type:"star",value:r,output:B};if(!0===h.bash){o.output=".*?",("bos"===W.type||"slash"===W.type)&&(o.output=M+o.output),er(o);continue}if(W&&("bracket"===W.type||"paren"===W.type)&&!0===h.regex){o.output=r,er(o);continue}(D.index===D.start||"slash"===W.type||"dot"===W.type)&&("dot"===W.type?(D.output+=T,W.output+=T):!0===h.dot?(D.output+=L,W.output+=L):(D.output+=M,W.output+=M),"*"!==z()&&(D.output+=O,W.output+=O)),er(o)}for(;D.brackets>0;){if(!0===h.strictBrackets)throw SyntaxError(c("closing","]"));D.output=n.escapeLast(D.output,"["),et("brackets")}for(;D.parens>0;){if(!0===h.strictBrackets)throw SyntaxError(c("closing",")"));D.output=n.escapeLast(D.output,"("),et("parens")}for(;D.braces>0;){if(!0===h.strictBrackets)throw SyntaxError(c("closing","}"));D.output=n.escapeLast(D.output,"{"),et("braces")}if(!0!==h.strictSlashes&&("star"===W.type||"bracket"===W.type)&&er({type:"maybe_slash",value:"",output:`${$}?`}),!0===D.backtrack)for(let e of(D.output="",D.tokens))D.output+=null!=e.output?e.output:e.value,e.suffix&&(D.output+=e.suffix);return D};y.fastpaths=(e,t)=>{let r={...t},i="number"==typeof r.maxLength?Math.min(s,r.maxLength):s,a=e.length;if(a>i)throw SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`);e=l[e]||e;let u=n.isWindows(t),{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:b}=o.globChars(u),_=r.dot?m:h,x=r.dot?g:h,C=r.capture?"":"?:",R=!0===r.bash?".*?":y;r.capture&&(R=`(${R})`);let A=e=>!0===e.noglobstar?R:`(${C}(?:(?!${b}${e.dot?f:p}).)*?)`,v=e=>{switch(e){case"*":return`${_}${d}${R}`;case".*":return`${p}${d}${R}`;case"*.*":return`${_}${R}${p}${d}${R}`;case"*/*":return`${_}${R}${c}${d}${x}${R}`;case"**":return _+A(r);case"**/*":return`(?:${_}${A(r)}${c})?${x}${d}${R}`;case"**/*.*":return`(?:${_}${A(r)}${c})?${x}${R}${p}${d}${R}`;case"**/.*":return`(?:${_}${A(r)}${c})?${p}${d}${R}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let r=v(t[1]);if(!r)return;return r+p+t[2]}}},w=v(n.removePrefix(e,{negated:!1,prefix:""}));return w&&!0!==r.strictSlashes&&(w+=`${c}?`),w},e.exports=y},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(e,t,r){let o=r("path?37f5"),n=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"),s=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"),i=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"),a=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"),u=(e,t,r=!1)=>{if(Array.isArray(e)){let o=e.map(e=>u(e,t,r));return e=>{for(let t of o){let r=t(e);if(r)return r}return!1}}let o=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!o)throw TypeError("Expected pattern to be a non-empty string");let n=t||{},s=i.isWindows(t),a=o?u.compileRe(e,t):u.makeRe(e,t,!1,!0),l=a.state;delete a.state;let p=()=>!1;if(n.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};p=u(n.ignore,e,r)}let c=(r,o=!1)=>{let{isMatch:i,match:c,output:d}=u.test(r,a,t,{glob:e,posix:s}),f={glob:e,state:l,regex:a,posix:s,input:r,output:d,match:c,isMatch:i};return("function"==typeof n.onResult&&n.onResult(f),!1===i)?(f.isMatch=!1,!!o&&f):p(r)?("function"==typeof n.onIgnore&&n.onIgnore(f),f.isMatch=!1,!!o&&f):("function"==typeof n.onMatch&&n.onMatch(f),!o||f)};return r&&(c.state=l),c};u.test=(e,t,r,{glob:o,posix:n}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},a=s.format||(n?i.toPosixSlashes:null),l=e===o,p=l&&a?a(e):e;return!1===l&&(l=(p=a?a(e):e)===o),(!1===l||!0===s.capture)&&(l=!0===s.matchBase||!0===s.basename?u.matchBase(e,t,r,n):t.exec(p)),{isMatch:!!l,match:l,output:p}},u.matchBase=(e,t,r,n=i.isWindows(r))=>(t instanceof RegExp?t:u.makeRe(t,r)).test(o.basename(e)),u.isMatch=(e,t,r)=>u(t,r)(e),u.parse=(e,t)=>Array.isArray(e)?e.map(e=>u.parse(e,t)):s(e,{...t,fastpaths:!1}),u.scan=(e,t)=>n(e,t),u.compileRe=(e,t,r=!1,o=!1)=>{if(!0===r)return e.output;let n=t||{},s=n.contains?"":"^",i=n.contains?"":"$",a=`${s}(?:${e.output})${i}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);let l=u.toRegex(a,t);return!0===o&&(l.state=e),l},u.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(n.output=s.fastpaths(e,t)),n.output||(n=s(e,t)),u.compileRe(n,t,r,o)},u.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},u.constants=a,e.exports=u},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(e,t,r){let o=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"),{CHAR_ASTERISK:n,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"),_=e=>e===p||e===i,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{let r,C,R=t||{},A=e.length-1,v=!0===R.parts||!0===R.scanToEnd,w=[],E=[],S=[],$=e,O=-1,k=0,H=0,T=!1,L=!1,I=!1,F=!1,P=!1,j=!1,N=!1,M=!1,U=!1,B=!1,D=0,G={value:"",depth:0,isGlob:!1},q=()=>O>=A,K=()=>$.charCodeAt(O+1),W=()=>(r=C,$.charCodeAt(++O));for(;O<A;){let e;if((C=W())===i){N=G.backslashes=!0,(C=W())===c&&(j=!0);continue}if(!0===j||C===c){for(D++;!0!==q()&&(C=W());){if(C===i){N=G.backslashes=!0,W();continue}if(C===c){D++;continue}if(!0!==j&&C===u&&(C=W())===u||!0!==j&&C===a){if(T=G.isBrace=!0,I=G.isGlob=!0,B=!0,!0===v)continue;break}if(C===g&&0==--D){j=!1,T=G.isBrace=!0,B=!0;break}}if(!0===v)continue;break}if(C===p){if(w.push(O),E.push(G),G={value:"",depth:0,isGlob:!1},!0===B)continue;if(r===u&&O===k+1){k+=2;continue}H=O+1;continue}if(!0!==R.noext&&!0==(C===h||C===s||C===n||C===m||C===l)&&K()===d){if(I=G.isGlob=!0,F=G.isExtglob=!0,B=!0,C===l&&O===k&&(U=!0),!0===v){for(;!0!==q()&&(C=W());){if(C===i){N=G.backslashes=!0,C=W();continue}if(C===y){I=G.isGlob=!0,B=!0;break}}continue}break}if(C===n){if(r===n&&(P=G.isGlobstar=!0),I=G.isGlob=!0,B=!0,!0===v)continue;break}if(C===m){if(I=G.isGlob=!0,B=!0,!0===v)continue;break}if(C===f){for(;!0!==q()&&(e=W());){if(e===i){N=G.backslashes=!0,W();continue}if(e===b){L=G.isBracket=!0,I=G.isGlob=!0,B=!0;break}}if(!0===v)continue;break}if(!0!==R.nonegate&&C===l&&O===k){M=G.negated=!0,k++;continue}if(!0!==R.noparen&&C===d){if(I=G.isGlob=!0,!0===v){for(;!0!==q()&&(C=W());){if(C===d){N=G.backslashes=!0,C=W();continue}if(C===y){B=!0;break}}continue}break}if(!0===I){if(B=!0,!0===v)continue;break}}!0===R.noext&&(F=!1,I=!1);let Z=$,z="",Q="";k>0&&(z=$.slice(0,k),$=$.slice(k),H-=k),Z&&!0===I&&H>0?(Z=$.slice(0,H),Q=$.slice(H)):!0===I?(Z="",Q=$):Z=$,Z&&""!==Z&&"/"!==Z&&Z!==$&&_(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),!0===R.unescape&&(Q&&(Q=o.removeBackslashes(Q)),Z&&!0===N&&(Z=o.removeBackslashes(Z)));let V={prefix:z,input:e,start:k,base:Z,glob:Q,isBrace:T,isBracket:L,isGlob:I,isExtglob:F,isGlobstar:P,negated:M,negatedExtglob:U};if(!0===R.tokens&&(V.maxDepth=0,_(C)||E.push(G),V.tokens=E),!0===R.parts||!0===R.tokens){let t;for(let r=0;r<w.length;r++){let o=t?t+1:k,n=w[r],s=e.slice(o,n);R.tokens&&(0===r&&0!==k?(E[r].isPrefix=!0,E[r].value=z):E[r].value=s,x(E[r]),V.maxDepth+=E[r].depth),(0!==r||""!==s)&&S.push(s),t=n}if(t&&t+1<e.length){let r=e.slice(t+1);S.push(r),R.tokens&&(E[E.length-1].value=r,x(E[E.length-1]),V.maxDepth+=E[E.length-1].depth)}V.slashes=w,V.parts=S}return V}},"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(e,t,r){let o=r("path?37f5"),n="win32"===process.platform,{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r("../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js");t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(u,"\\$1"),t.toPosixSlashes=e=>e.replace(s,"/"),t.removeBackslashes=e=>e.replace(i,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return 3===e.length&&!!(e[0]>=9)||8===e[0]&&!!(e[1]>=10)},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===o.sep,t.escapeLast=(e,r,o)=>{let n=e.lastIndexOf(r,o);return -1===n?e:"\\"===e[n-1]?t.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=r.contains?"":"^",n=r.contains?"":"$",s=`${o}(?:${e})${n}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s}},"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(e,t,r){let o=r("../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"),n=(e,t,r)=>{var a,u,l;let p,c,f;if(!1===o(e))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===o(t))throw TypeError("toRegexRange: expected the second argument to be a number.");let h={relaxZeros:!0,...r};"boolean"==typeof h.strictZeros&&(h.relaxZeros=!1===h.strictZeros);let m=e+":"+t+"="+String(h.relaxZeros)+String(h.shorthand)+String(h.capture)+String(h.wrap);if(n.cache.hasOwnProperty(m))return n.cache[m].result;let g=Math.min(e,t),y=Math.max(e,t);if(1===Math.abs(g-y)){let r=e+"|"+t;return h.capture?`(${r})`:!1===h.wrap?r:`(?:${r})`}let b=d(e)||d(t),_={min:e,max:t,a:g,b:y},x=[],C=[];return b&&(_.isPadded=b,_.maxLen=String(_.max).length),g<0&&(C=s(y<0?Math.abs(y):1,Math.abs(g),_,h),g=_.a=0),y>=0&&(x=s(g,y,_,h)),_.negatives=C,_.positives=x,p=i(a=C,u=x,"-",!1,l=h)||[],c=i(u,a,"",!1,l)||[],f=i(a,u,"-?",!0,l)||[],_.result=p.concat(f).concat(c).join("|"),!0===h.capture?_.result=`(${_.result})`:!1!==h.wrap&&x.length+C.length>1&&(_.result=`(?:${_.result})`),n.cache[m]=_,_.result};function s(e,t,r,o){let n,s=function(e,t){let r=1,o=1,n=l(e,1),s=new Set([t]);for(;e<=n&&n<=t;)s.add(n),r+=1,n=l(e,r);for(n=p(t+1,o)-1;e<n&&n<=t;)s.add(n),o+=1,n=p(t+1,o)-1;return(s=[...s]).sort(a),s}(e,t),i=[],u=e;for(let e=0;e<s.length;e++){let t=s[e],a=function(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=function(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}(e,t),n=o.length,s="",i=0;for(let e=0;e<n;e++){var a,u;let[t,r]=o[e];t===r?s+=t:"0"!==t||"9"!==r?s+=(a=t,u=r,`[${a}${u-a==1?"":"-"}${u}]`):i++}return i&&(s+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:s,count:[i],digits:n}}(String(u),String(t),o),l="";if(!r.isPadded&&n&&n.pattern===a.pattern){n.count.length>1&&n.count.pop(),n.count.push(a.count[0]),n.string=n.pattern+c(n.count),u=t+1;continue}r.isPadded&&(l=function(e,t,r){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),n=!1!==r.relaxZeros;switch(o){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${o}}`:`0{${o}}`}}(t,r,o)),a.string=l+a.pattern+c(a.count),i.push(a),u=t+1,n=a}return i}function i(e,t,r,o,n){let s=[];for(let n of e){let{string:e}=n;o||u(t,"string",e)||s.push(r+e),o&&u(t,"string",e)&&s.push(r+e)}return s}function a(e,t){return e>t?1:t>e?-1:0}function u(e,t,r){return e.some(e=>e[t]===r)}function l(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function c(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function d(e){return/^-?(0+)\d/.test(e)}n.cache={},n.clearCache=()=>n.cache={},e.exports=n}});let u=/(^|,)\s*upgrade\s*($|,)/i,l={http:new e.Agent({keepAlive:!0,maxSockets:256,maxFreeSockets:64}),https:new t.Agent({keepAlive:!0,maxSockets:256,maxFreeSockets:64})},p=/^https|wss/,c=[":method",":path",":scheme",":authority"];function d(e,t,r,o){var n;for(let r of(e.port=t[o||"target"].port||(p.test(t[o||"target"].protocol??"http")?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"])){let n=t[o||"target"][r];void 0!==n&&(e[r]=n)}if(void 0===e.host&&"string"==typeof e.hostname){let t=e.hostname.includes(":")&&!e.hostname.startsWith("[")?`[${e.hostname}]`:e.hostname;e.host=e.port?`${t}:${e.port}`:t}if(e.method=t.method||r.method,e.headers={...r.headers},r.headers?.[":authority"]&&(e.headers.host=r.headers[":authority"]),t.headers)for(let r of Object.keys(t.headers))e.headers[r]=t.headers[r];if(r.httpVersionMajor>1)for(let t of c)delete e.headers[t];if(t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),p.test(t[o||"target"].protocol??"http")&&(e.rejectUnauthorized=void 0===t.secure||t.secure),void 0!==t.agent)e.agent=t.agent||!1;else if(r.httpVersionMajor>1||u.test(r.headers.connection||""))e.agent=!1;else{let r=t[o||"target"].protocol??"http";e.agent=p.test(r)?l.https:l.http}e.localAddress=t.localAddress,!e.agent&&(e.headers=e.headers||{},"string"==typeof e.headers.connection&&u.test(e.headers.connection)||(e.headers.connection="close"));let s=t[o||"target"],i=s&&!1!==t.prependPath&&s.pathname||"",a=s instanceof URL&&!1!==t.prependPath&&s.search||"",d=r.url||"",f=d.indexOf("?"),h=-1===f?d:d.slice(0,f),m=-1===f?"":d.slice(f),g=h?"/"===h[0]?h:"/"+h:"/",y=t.toProxy?"/"+d:g+m,b=function(e,t){if(!e||"/"===e)return t||"/";if(!t||"/"===t)return e||"/";let r="/"===e[e.length-1],o="/"===t[0];return r&&o?e+t.slice(1):r||o?e+t:e+"/"+t}(i,y=t.ignorePath?"":y);return a&&(b=b.includes("?")?b.replace("?",a+"&"):b+a),e.path=b,t.changeOrigin&&(e.headers.host=function(e,t){let r=t?.split(":")[0],o=+e;if(!o)return!1;switch(r){case"http":case"ws":return 80!==o;case"https":case"wss":return 443!==o;case"ftp":return 21!==o;case"gopher":return 70!==o;case"file":return!1}return 0!==o}(e.port,t[o||"target"].protocol)&&!((n=e.host)&&~n.indexOf(":"))?e.host+":"+e.port:e.host??void 0),e}function f(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e}function h(e){let t=e.headers[":authority"]||e.headers.host,r=t?t.match(/:(\d+)/):"";return r?r[1]:m(e)?"443":"80"}function m(e){let t=e.socket;return!!t&&"encrypted"in t&&t.encrypted}function g(e,t,r){return Array.isArray(e)?e.map(function(e){return g(e,t,r)}):e.replace(RegExp(String.raw`(;\s*`+r+"=)([^;]+)","i"),function(e,r,o){let n;if(o in t)n=t[o];else{if(!("*"in t))return e;n=t["*"]}return n?r+n:""})}let y=/^201|30([12378])$/,b=[(e,t,r)=>{("1.0"===e.httpVersion||e.httpVersionMajor>=2||204===r.statusCode||304===r.statusCode)&&delete r.headers["transfer-encoding"]},(e,t,r)=>{"1.0"===e.httpVersion?r.headers.connection=e.headers.connection||"close":e.httpVersionMajor<2&&!r.headers.connection?r.headers.connection=e.headers.connection||"keep-alive":e.httpVersionMajor>=2&&delete r.headers.connection},(e,t,r,o)=>{if((o.hostRewrite||o.autoRewrite||o.protocolRewrite)&&r.headers.location&&y.test(String(r.statusCode))){let t=function(e){if(e instanceof URL)return e;if("string"==typeof e)return new URL(e);let t=e.protocol||"http:",r=e.host||e.hostname||"localhost",o=e.port;return new URL(`${t}//${r}${o?":"+o:""}`)}(o.target),n=new URL(r.headers.location,t);t.host===n.host&&(o.hostRewrite?n.host=o.hostRewrite:o.autoRewrite&&(e.headers[":authority"]?n.host=e.headers[":authority"]:e.headers.host&&(n.host=e.headers.host)),o.protocolRewrite&&(n.protocol=o.protocolRewrite),r.headers.location=n.toString())}},(e,t,r,o)=>{let n,s="string"==typeof o.cookieDomainRewrite?{"*":o.cookieDomainRewrite}:o.cookieDomainRewrite,i="string"==typeof o.cookiePathRewrite?{"*":o.cookiePathRewrite}:o.cookiePathRewrite,a=o.preserveHeaderKeyCase;if(a&&void 0!==r.rawHeaders){n={};for(let e=0;e<r.rawHeaders.length;e+=2){let t=r.rawHeaders[e];n[t.toLowerCase()]=t}}for(let e of Object.keys(r.headers)){let o=r.headers[e];a&&n&&(e=n[e]||e);var u=e,l=o;if(void 0!==l&&String(u).trim()){s&&"set-cookie"===u.toLowerCase()&&(l=g(l,s,"domain")),i&&"set-cookie"===u.toLowerCase()&&(l=g(l,i,"path"));try{t.setHeader(String(u).trim(),l)}catch{}}}},(e,t,r)=>{t.statusCode=r.statusCode,r.statusMessage&&e.httpVersionMajor<2&&(t.statusMessage=r.statusMessage)}],_=new Set([301,302,303,307,308]),x=[e=>{"DELETE"!==e.method&&"OPTIONS"!==e.method||e.headers["content-length"]||e.headers["transfer-encoding"]||(e.headers["content-length"]="0")},(e,t,r)=>{r.timeout&&e.socket.setTimeout(r.timeout,()=>{e.socket.destroy()})},(e,t,r)=>{if(!r.xfwd)return;let o=e.isSpdy||m(e),n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:h(e),proto:o?"https":"http"};for(let t of["for","port","proto"]){let r="x-forwarded-"+t;e.headers[r]||void 0===n[t]||(e.headers[r]=n[t])}e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers[":authority"]||e.headers.host||""},(r,o,n,s,i,a)=>{let u;s.emit("start",r,o,n.target||n.forward);let l="number"==typeof n.followRedirects?n.followRedirects:5*!!n.followRedirects;if(n.forward){let s=(p.test(n.forward.protocol||"http")?t:e).request(d(n.ssl||{},n,r,"forward")),i=h(s,n.forward);if(r.on("error",i),s.on("error",i),(n.buffer||r).pipe(s),!n.target)return void o.end()}let c=(p.test(n.target.protocol||"http")?t:e).request(d(n.ssl||{},n,r));c.on("socket",e=>{s&&!c.getHeader("expect")&&s.emit("proxyReq",c,r,o,n)}),n.proxyTimeout&&c.setTimeout(n.proxyTimeout,function(){c.destroy()}),o.on("close",function(){o.writableFinished||c.destroy()});let f=h(c,n.target);function h(e,t){return function(n){if(!r.socket?.writable&&"ECONNRESET"===n.code)return s.emit("econnreset",n,r,o,t),e.destroy();a?a(n,r,o,t):s.emit("error",n,r,o,t)}}if(r.on("error",f),c.on("error",f),l>0){let e=[],t=n.buffer||r;t.on("data",t=>{e.push("string"==typeof t?Buffer.from(t):t),c.write(t)}),t.on("end",()=>{u=Buffer.concat(e),c.end()}),t.on("error",e=>{c.destroy(e)})}else c.on("socket",e=>{e.pending?e.on("connect",()=>(n.buffer||r).pipe(c)):(n.buffer||r).pipe(c)});c.on("response",function(i){!function i(a,c,d){let f=a.statusCode;if(l>0&&_.has(f)&&c<l&&a.headers.location){a.resume();let l=new URL(a.headers.location,d),m=307===f||308===f,g=m&&r.method||"GET",y=p.test(l.protocol),b=y?t:e,_={...r.headers};n.headers&&Object.assign(_,n.headers),_.host=l.host,l.host!==d.host&&(delete _.authorization,delete _.cookie),m||(delete _["content-length"],delete _["content-type"],delete _["transfer-encoding"]);let x={hostname:l.hostname,port:l.port||(y?443:80),path:l.pathname+l.search,method:g,headers:_,agent:n.agent||!1};y&&(x.rejectUnauthorized=void 0===n.secure||n.secure);let C=b.request(x);s&&!C.getHeader("expect")&&s.emit("proxyReq",C,r,o,n),n.proxyTimeout&&C.setTimeout(n.proxyTimeout,()=>{C.destroy()});let R=h(C,l);C.on("error",R),C.on("response",e=>{i(e,c+1,l)}),m&&u&&u.length>0?C.end(u):C.end();return}if(s&&s.emit("proxyRes",a,r,o),!o.headersSent&&!n.selfHandleResponse){for(let e of b)if(e(r,o,a,n))break}o.finished?s&&s.emit("end",r,o,a):(o.on("close",function(){a.destroy()}),a.on("close",function(){a.complete||o.destroyed||o.destroy()}),a.on("error",function(e){o.destroyed||o.destroy(e),s.listenerCount("error")>0&&s.emit("error",e,r,o,d)}),a.on("end",function(){s&&s.emit("end",r,o,a)}),n.selfHandleResponse||a.pipe(o))}(i,0,n.target)})}],C=[(e,t)=>{if("GET"!==e.method||!e.headers.upgrade||"websocket"!==e.headers.upgrade.toLowerCase())return t.destroy(),!0},(e,t,r)=>{if(!r.xfwd)return;let o={for:e.connection.remoteAddress||e.socket.remoteAddress,port:h(e),proto:m(e)?"wss":"ws"};for(let t of["for","port","proto"]){let r="x-forwarded-"+t;e.headers[r]||void 0===o[t]||(e.headers[r]=o[t])}},(r,o,n,s,i,a)=>{let u=function(e,t){return Object.keys(t).reduce(function(e,r){let o=t[r];if(!Array.isArray(o))return e.push(r+": "+o),e;for(let t of o)e.push(r+": "+t);return e},[e]).join("\r\n")+"\r\n\r\n"};f(o),i&&i.length>0&&o.unshift(i),o.on("error",c);let l=(p.test(n.target.protocol||"http")?t:e).request(d(n.ssl||{},n,r));function c(e){a?a(e,r,o):s.emit("error",e,r,o),l.destroy()}function h(e){a?a(e,r,o):s.emit("error",e,r,o),o.end()}s&&s.emit("proxyReqWs",l,r,o,n,i),l.on("error",h),l.on("response",function(e){e.upgrade||(!o.destroyed&&o.writable?(o.write(u("HTTP/"+e.httpVersion+" "+e.statusCode+" "+e.statusMessage,e.headers)),e.on("error",h),e.pipe(o)):e.resume())}),l.on("upgrade",function(e,t,r){t.on("error",h),t.on("end",function(){s.emit("close",e,t,r)}),o.removeListener("error",c),o.on("error",function(){t.end()}),f(t),r&&r.length>0&&t.unshift(r),o.write(u("HTTP/1.1 101 Switching Protocols",e.headers)),t.pipe(o).pipe(t),s.emit("open",t),s.emit("proxySocket",t)}),l.end()}];var R=class extends o{_server;_webPasses=[...x];_wsPasses=[...C];options;web;ws;constructor(e={}){super(),this.options=e||{},this.options.prependPath=!1!==e.prependPath,this.web=A("web",this),this.ws=A("ws",this)}listen(o,n,s){let i=(e,t)=>this.web(e,t);if(this.options.http2){if(!this.options.ssl)throw Error("HTTP/2 requires ssl option");this._server=r.createSecureServer({...this.options.ssl,allowHTTP1:!0},i)}else this.options.ssl?this._server=t.createServer(this.options.ssl,i):this._server=e.createServer(i);return this.options.ws&&this._server.on("upgrade",(e,t,r)=>{this.ws(e,t,this.options,r).catch(()=>{})}),this._server.listen(o,n,s),this}close(e){this._server&&this._server.close((...t)=>{this._server=void 0,e&&Reflect.apply(e,void 0,t)})}before(e,t,r){if("ws"!==e&&"web"!==e)throw Error("type must be `web` or `ws`");let o=this._getPasses(e),n=!1;for(let[e,r]of o.entries())r.name===t&&(n=e);if(!1===n)throw Error("No such pass");o.splice(n,0,r)}after(e,t,r){if("ws"!==e&&"web"!==e)throw Error("type must be `web` or `ws`");let o=this._getPasses(e),n=!1;for(let[e,r]of o.entries())r.name===t&&(n=e);if(!1===n)throw Error("No such pass");o.splice(n++,0,r)}_getPasses(e){return"ws"===e?this._wsPasses:this._webPasses}};function A(e,t){return function(r,o,n,s){let i,a,u={...n,...t.options};for(let e of["target","forward"])"string"==typeof u[e]&&(u[e]=new URL(u[e]));if(!u.target&&!u.forward)return this.emit("error",Error("Must provide a proper URL as target")),Promise.resolve();let l=new Promise((e,t)=>{i=e,a=t});for(let n of(o.on("close",()=>{i()}),o.on("error",e=>{a(e)}),t._getPasses(e))){let e;try{e=n(r,o,u,t,s,(e,n,s,u)=>{t.listenerCount("error")>0?(t.emit("error",e,r,o,u),i()):a(e)})}catch(e){t.listenerCount("error")>0?(t.emit("error",e,r,o,u.target||u.forward),i()):a(e);break}if(e){i();break}}return l}}class v extends Error{code;constructor(e,t){super(e),this.code=t,this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}let w=a("../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js")("http-proxy-middleware"),E=w.extend("debug-proxy-errors-plugin"),S=`[HPM] Connection reset (ECONNRESET) detected with non-empty "req.body" [ERR_HPM.GH40].
2
+ import e from"node:http";import t from"node:https";import r from"node:http2";import{EventEmitter as o}from"node:events";import"node:net";import"node:stream";import{styleText as n}from"node:util";import{URL as s}from"node:url";import{URL as i}from"url";import"node:zlib";import"node:querystring";import{__webpack_require__ as a}from"./rslib-runtime.js";import"./626.js";a.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/index.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/stringify.js"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/compile.js"),s=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/expand.js"),i=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/parse.js"),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(let o of e){let e=a.create(o,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>i(e,t),a.stringify=(e,t={})=>"string"==typeof e?o(a.parse(e,t),t):o(e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),n(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=s(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/compile.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fill-range/7.1.1/cdf2fb341eb6146d178e71e3e567948d1810e3947af7ae4c97c575c1cbd80d2a/node_modules/fill-range/index.js"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/utils.js");e.exports=(e,t={})=>{let r=(e,s={})=>{let i=n.isInvalidBrace(s),a=!0===e.invalid&&!0===t.escapeInvalid,u=!0===i||!0===a,c=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return c+e.value;if(!0===e.isClose)return console.log("node.isClose",c,e.value),c+e.value;if("open"===e.type)return u?c+e.value:"(";if("close"===e.type)return u?c+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":u?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=n.reduce(e.nodes),s=o(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==s.length)return r.length>1&&s.length>1?`(${s})`:s}if(e.nodes)for(let t of e.nodes)l+=r(t,e);return l};return r(e)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/constants.js"(e){e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/expand.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fill-range/7.1.1/cdf2fb341eb6146d178e71e3e567948d1810e3947af7ae4c97c575c1cbd80d2a/node_modules/fill-range/index.js"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/stringify.js"),s=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/utils.js"),i=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?s.flatten(t).map(e=>`{${e}}`):t;for(let n of e)if(Array.isArray(n))for(let e of n)o.push(i(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),o.push(Array.isArray(e)?i(n,e,r):n+e);return s.flatten(o)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,u={})=>{e.queue=[];let c=u,l=u.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)l=(c=c.parent).queue;if(e.invalid||e.dollar)return void l.push(i(l.pop(),n(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(i(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=s.reduce(e.nodes);if(s.exceedsLimit(...a,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=o(...a,t);0===u.length&&(u=n(e,t)),l.push(i(l.pop(),u)),e.nodes=[];return}let p=s.encloseBrace(e),d=e.queue,f=e;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)d=(f=f.parent).queue;for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if("comma"===r.type&&"brace"===e.type){1===t&&d.push(""),d.push("");continue}if("close"===r.type){l.push(i(l.pop(),d,p));continue}if(r.value&&"open"!==r.type){d.push(i(d.pop(),r.value));continue}r.nodes&&a(r,e)}return d};return s.flatten(a(e))}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/parse.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/stringify.js"),{MAX_LENGTH:n,CHAR_BACKSLASH:s,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:b,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/constants.js");e.exports=(e,t={})=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");let x=t||{},_="number"==typeof x.maxLength?Math.min(n,x.maxLength):n;if(e.length>_)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${_})`);let C={type:"root",input:e,nodes:[]},v=[C],R=C,A=C,w=0,E=e.length,k=0,S=0,$=()=>e[k++],O=e=>{if("text"===e.type&&"dot"===A.type&&(A.type="text"),A&&"text"===A.type&&"text"===e.type){A.value+=e.value;return}return R.nodes.push(e),e.parent=R,e.prev=A,A=e,e};for(O({type:"bos"});k<E;)if(R=v[v.length-1],(r=$())!==y&&r!==g){if(r===s){O({type:"text",value:(t.keepEscaping?r:"")+$()});continue}if(r===h){O({type:"text",value:"\\"+r});continue}if(r===f){let e;for(w++;k<E&&(e=$());){if(r+=e,e===f){w++;continue}if(e===s){r+=$();continue}if(e===h&&0==--w)break}O({type:"text",value:r});continue}if(r===c){R=O({type:"paren",nodes:[]}),v.push(R),O({type:"text",value:r});continue}if(r===l){if("paren"!==R.type){O({type:"text",value:r});continue}R=v.pop(),O({type:"text",value:r}),R=v[v.length-1];continue}if(r===b||r===m||r===i){let e,o=r;for(!0!==t.keepQuotes&&(r="");k<E&&(e=$());){if(e===s){r+=e+$();continue}if(e===o){!0===t.keepQuotes&&(r+=e);break}r+=e}O({type:"text",value:r});continue}if(r===p){S++,R=O({type:"brace",open:!0,close:!1,dollar:A.value&&"$"===A.value.slice(-1)||!0===R.dollar,depth:S,commas:0,ranges:0,nodes:[]}),v.push(R),O({type:"open",value:r});continue}if(r===d){if("brace"!==R.type){O({type:"text",value:r});continue}(R=v.pop()).close=!0,O({type:"close",value:r}),S--,R=v[v.length-1];continue}if(r===a&&S>0){if(R.ranges>0){R.ranges=0;let e=R.nodes.shift();R.nodes=[e,{type:"text",value:o(R)}]}O({type:"comma",value:r}),R.commas++;continue}if(r===u&&S>0&&0===R.commas){let e=R.nodes;if(0===S||0===e.length){O({type:"text",value:r});continue}if("dot"===A.type){if(R.range=[],A.value+=r,A.type="range",3!==R.nodes.length&&5!==R.nodes.length){R.invalid=!0,R.ranges=0,A.type="text";continue}R.ranges++,R.args=[];continue}if("range"===A.type){e.pop();let t=e[e.length-1];t.value+=A.value+r,A=t,R.ranges--;continue}O({type:"dot",value:r});continue}O({type:"text",value:r})}do if("root"!==(R=v.pop()).type){R.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=v[v.length-1],t=e.nodes.indexOf(R);e.nodes.splice(t,1,...R.nodes)}while(v.length>0);return O({type:"eos"}),C}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/stringify.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/utils.js");e.exports=(e,t={})=>{let r=(e,n={})=>{let s=t.escapeInvalid&&o.isInvalidBrace(n),i=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(s||i)&&o.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=r(t);return a};return r(e)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/lib/utils.js"(e,t){t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find(e=>e.type===t),t.exceedsLimit=(e,r,o=1,n)=>!1!==n&&!!t.isInteger(e)&&!!t.isInteger(r)&&(Number(r)-Number(e))/Number(o)>=n,t.escapeNode=(e,t=0,r)=>{let o=e.nodes[t];o&&(r&&o.type===r||"open"===o.type||"close"===o.type)&&!0!==o.escaped&&(o.value="\\"+o.value,o.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),t.flatten=(...e)=>{let t=[],r=e=>{for(let o=0;o<e.length;o++){let n=e[o];if(Array.isArray(n)){r(n);continue}void 0!==n&&t.push(n)}return t};return r(e),t}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/browser.js"(e,t,r){let o;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let o=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(n=o))}),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),o=!1,t.destroy=()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/common.js")(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/common.js"(e,t,r){e.exports=function(e){function t(e){let r,n,s,i=null;function a(...e){if(!a.enabled)return;let o=Number(new Date);a.diff=o-(r||o),a.prev=r,a.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";n++;let s=t.formatters[o];if("function"==typeof s){let t=e[n];r=s.call(a,t),e.splice(n,1),n--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==t.namespaces&&(n=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,r){let o=t(this.namespace+(void 0===r?":":r)+e);return o.log=this.log,o}function n(e,t){let r=0,o=0,n=-1,s=0;for(;r<e.length;)if(o<t.length&&(t[o]===e[r]||"*"===t[o]))"*"===t[o]?(n=o,s=r):r++,o++;else{if(-1===n)return!1;o=n+1,r=++s}for(;o<t.length&&"*"===t[o];)o++;return o===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.1.3/e0f4c72e735898d92cc164c858cbd0c7b6ed2ec2b4d6da5e8a20fedffeed95cd/node_modules/ms/index.js"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/index.js"(e,t,r){"u"<typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/browser.js"):e.exports=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/node.js")},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/node.js"(e,t,r){let o=r("tty"),n=r("util");t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let o=0;o<r.length;o++)e.inspectOpts[r[o]]=t.inspectOpts[r[o]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:o,useColors:n}=this;if(n){let t=this.color,n="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${n};1m${o} \u001B[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(n+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+o+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:o.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r("supports-color");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e},{}),e.exports=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/common.js")(t);let{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fill-range/7.1.1/cdf2fb341eb6146d178e71e3e567948d1810e3947af7ae4c97c575c1cbd80d2a/node_modules/fill-range/index.js"(e,t,r){let o=r("util"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/to-regex-range/5.0.1/e55082e174dc917a955607638a77d8978552a7d78773d047c1263c740e4d7c0f/node_modules/to-regex-range/index.js"),s=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},u=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},c=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},l=(e,t,r,o)=>{if(r)return n(e,t,{wrap:!1,...o});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},p=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,o=r.capture?"":"?:";return t?`(${o}${e.join("|")})`:e.join("|")}return n(e,t,r)},d=(...e)=>RangeError("Invalid range arguments: "+o.inspect(...e)),f=(e,t,r)=>{if(!0===r.strictRanges)throw d([e,t]);return[]},h=(e,t,r,o={})=>{if(null==t&&i(e))return[e];if(!i(e)||!i(t))return f(e,t,o);if("function"==typeof r)return h(e,t,1,{transform:r});if(s(r))return h(e,t,0,r);let n={...o};if(!0===n.capture&&(n.wrap=!0),!Number.isInteger(+(r=r||n.step||1))){if(null!=r&&!s(r)){var b=r;if(!0===n.strictRanges)throw TypeError(`Expected step "${b}" to be a number`);return[]}return h(e,t,1,r)}return Number.isInteger(+e)&&Number.isInteger(+t)?((e,t,r=1,o={})=>{let n=Number(e),s=Number(t);if(!Number.isInteger(n)||!Number.isInteger(s)){if(!0===o.strictRanges)throw d([e,t]);return[]}0===n&&(n=0),0===s&&(s=0);let i=n>s,f=String(e),h=String(t),b=String(r);r=Math.max(Math.abs(r),1);let m=a(f)||a(h)||a(b),g=m?Math.max(f.length,h.length,b.length):0,y=!1===m&&!1==("string"==typeof e||"string"==typeof t||!0===o.stringify),x=o.transform||(e=>!0===y?Number(e):String(e));if(o.toRegex&&1===r)return l(c(e,g),c(t,g),!0,o);let _={negatives:[],positives:[]},C=e=>_[e<0?"negatives":"positives"].push(Math.abs(e)),v=[],R=0;for(;i?n>=s:n<=s;)!0===o.toRegex&&r>1?C(n):v.push(u(x(n,R),g,y)),n=i?n-r:n+r,R++;if(!0===o.toRegex){let e,t,n,s;return r>1?(_.negatives.sort((e,t)=>e<t?-1:+(e>t)),_.positives.sort((e,t)=>e<t?-1:+(e>t)),t=o.capture?"":"?:",n="",s="",(_.positives.length&&(n=_.positives.map(e=>c(String(e),g)).join("|")),_.negatives.length&&(s=`-(${t}${_.negatives.map(e=>c(String(e),g)).join("|")})`),e=n&&s?`${n}|${s}`:n||s,o.wrap)?`(${t}${e})`:e):p(v,null,{wrap:!1,...o})}return v})(e,t,r,n):((e,t,r=1,o={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return f(e,t,o);let n=o.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,u=Math.min(s,i),c=Math.max(s,i);if(o.toRegex&&1===r)return l(u,c,!1,o);let d=[],h=0;for(;a?s>=i:s<=i;)d.push(n(s,h)),s=a?s-r:s+r,h++;return!0===o.toRegex?p(d,null,{wrap:!1,options:o}):d})(e,t,Math.max(Math.abs(r),1),n)};e.exports=h},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-extglob/2.1.1/a31b887f7d8fd45bac03cbc721084fb7eadd6056f0d86063907b9e7f109f7f5e/node_modules/is-extglob/index.js"(e){e.exports=function(e){var t;if("string"!=typeof e||""===e)return!1;for(;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-glob/4.0.3/5f6010d19ebbd407d4ddad3f32ad93b07ae9baaa0b44d778899bd947e1a7324b/node_modules/is-glob/index.js"(e,t,r){var o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-extglob/2.1.1/a31b887f7d8fd45bac03cbc721084fb7eadd6056f0d86063907b9e7f109f7f5e/node_modules/is-extglob/index.js"),n={"{":"}","(":")","[":"]"},s=function(e){if("!"===e[0])return!0;for(var t=0,r=-2,o=-2,s=-2,i=-2,a=-2;t<e.length;){if("*"===e[t]||"?"===e[t+1]&&/[\].+)]/.test(e[t])||-1!==o&&"["===e[t]&&"]"!==e[t+1]&&(o<t&&(o=e.indexOf("]",t)),o>t)&&(-1===a||a>o||-1===(a=e.indexOf("\\",t))||a>o)||-1!==s&&"{"===e[t]&&"}"!==e[t+1]&&(s=e.indexOf("}",t))>t&&(-1===(a=e.indexOf("\\",t))||a>s)||-1!==i&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(i=e.indexOf(")",t))>t&&(-1===(a=e.indexOf("\\",t))||a>i)||-1!==r&&"("===e[t]&&"|"!==e[t+1]&&(r<t&&(r=e.indexOf("|",t)),-1!==r&&")"!==e[r+1]&&(i=e.indexOf(")",r))>r)&&(-1===(a=e.indexOf("\\",r))||a>i))return!0;if("\\"===e[t]){var u=e[t+1];t+=2;var c=n[u];if(c){var l=e.indexOf(c,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},i=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var r=e[t+1];t+=2;var o=n[r];if(o){var s=e.indexOf(o,t);-1!==s&&(t=s+1)}if("!"===e[t])return!0}else t++}return!1};e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(o(e))return!0;var r=s;return t&&!1===t.strict&&(r=i),r(e)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-number/7.0.0/9613abb83deb6b72fdd092fda49730946a626517d4926a9f5c00ca322630c588/node_modules/is-number/index.js"(e){e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/micromatch/4.0.8/e3e5f26f16f8b95548bbbd14ad679e23348853c21837502922840101deaebdcd/node_modules/micromatch/index.js"(e,t,r){let o=r("util"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/braces/3.0.3/d2039003dfed14fc26988ac9171b4dfe6ab58307723d49dad0895a1368a75bcb/node_modules/braces/index.js"),s=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/index.js"),i=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/utils.js"),a=e=>""===e||"./"===e,u=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},c=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let o=new Set,n=new Set,i=new Set,a=0,u=e=>{i.add(e.output),r&&r.onResult&&r.onResult(e)};for(let i=0;i<t.length;i++){let c=s(String(t[i]),{...r,onResult:u},!0),l=c.state.negated||c.state.negatedExtglob;for(let t of(l&&a++,e)){let e=c(t,!0);(l?!e.isMatch:e.isMatch)&&(l?o.add(e.output):(o.delete(e.output),n.add(e.output)))}}let c=(a===t.length?[...i]:[...n]).filter(e=>!o.has(e));if(r&&0===c.length){if(!0===r.failglob)throw Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return c};c.match=c,c.matcher=(e,t)=>s(e,t),c.isMatch=(e,t,r)=>s(t,r)(e),c.any=c.isMatch,c.not=(e,t,r={})=>{t=[].concat(t).map(String);let o=new Set,n=[],s=new Set(c(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),n.push(e.output)}}));for(let e of n)s.has(e)||o.add(e);return[...o]},c.contains=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${o.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>c.contains(e,t,r));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...r,contains:!0})},c.matchKeys=(e,t,r)=>{if(!i.isObject(e))throw TypeError("Expected the first argument to be an object");let o=c(Object.keys(e),t,r),n={};for(let t of o)n[t]=e[t];return n},c.some=(e,t,r)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(o.some(e=>t(e)))return!0}return!1},c.every=(e,t,r)=>{let o=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(!o.every(e=>t(e)))return!1}return!0},c.all=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${o.inspect(e)}"`);return[].concat(t).every(t=>s(t,r)(e))},c.capture=(e,t,r)=>{let o=i.isWindows(r),n=s.makeRe(String(e),{...r,capture:!0}).exec(o?i.toPosixSlashes(t):t);if(n)return n.slice(1).map(e=>void 0===e?"":e)},c.makeRe=(...e)=>s.makeRe(...e),c.scan=(...e)=>s.scan(...e),c.parse=(e,t)=>{let r=[];for(let o of[].concat(e||[]))for(let e of n(String(o),t))r.push(s.parse(e,t));return r},c.braces=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return t&&!0===t.nobrace||!u(e)?[e]:n(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},c.hasBraces=u,e.exports=c},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.1.3/e0f4c72e735898d92cc164c858cbd0c7b6ed2ec2b4d6da5e8a20fedffeed95cd/node_modules/ms/index.js"(e){function t(e,t,r,o){return Math.round(e/r)+" "+o+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var o,n,s,i,a=typeof e;if("string"===a&&e.length>0){var u=e;if(!((u=String(u)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(c){var l=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===a&&isFinite(e)){return r.long?(n=Math.abs(o=e))>=864e5?t(o,n,864e5,"day"):n>=36e5?t(o,n,36e5,"hour"):n>=6e4?t(o,n,6e4,"minute"):n>=1e3?t(o,n,1e3,"second"):o+" ms":(i=Math.abs(s=e))>=864e5?Math.round(s/864e5)+"d":i>=36e5?Math.round(s/36e5)+"h":i>=6e4?Math.round(s/6e4)+"m":i>=1e3?Math.round(s/1e3)+"s":s+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/index.js"(e,t,r){e.exports=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/picomatch.js")},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/constants.js"(e,t,r){let o=r("path?37f5"),n="[^\\\\/]",s="[^/]",i="(?:\\/|$)",a="(?:^|\\/)",u=`\\.{1,2}${i}`,c=`(?!${a}${u})`,l=`(?!\\.{0,1}${i})`,p=`(?!${u})`,d=`${s}*?`,f={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:i,DOTS_SLASH:u,NO_DOT:"(?!\\.)",NO_DOTS:c,NO_DOT_SLASH:l,NO_DOTS_SLASH:p,QMARK_NO_DOT:"[^.\\/]",STAR:d,START_ANCHOR:a},h={...f,SLASH_LITERAL:"[\\\\/]",QMARK:n,STAR:`${n}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:o.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?h:f}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/parse.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/constants.js"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/utils.js"),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=o,l=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>n.escapeRegex(e)).join("..")}return r},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],r=0,o=0,n=0,s="",i=!1;for(let a of e){if(!0===i){s+=a,i=!1;continue}if("\\"===a){s+=a,i=!0;continue}if('"'===a){n=+(1!==n),s+=a;continue}if(0===n){if("["===a)r++;else if("]"===a&&r>0)r--;else if(0===r){if("("===a)o++;else if(")"===a&&o>0)o--;else if("|"===a&&0===o){t.push(s),s="";continue}}}s+=a}return t.push(s),t},f=e=>{let t=e.trim(),r=!0;for(;!0===r;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if((e=>{let t=!1;for(let r of e){if(!0===t){t=!1;continue}if("\\"===r){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0})(t))return t.replace(/\\(.)/g,"$1")},h=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let r=0,o=0,n=0,s=!1;for(let i=1;i<e.length;i++){let a=e[i];if(!0===s){s=!1;continue}if("\\"===a){s=!0;continue}if('"'===a){n=+(1!==n);continue}if(1!==n){if("["===a){r++;continue}if("]"===a&&r>0){r--;continue}if(!(r>0)){if("("===a){o++;continue}if(")"===a&&0==--o){if(!0===t&&i!==e.length-1)return;return{type:e[0],body:e.slice(2,i),end:i}}}}}},b=e=>{let t=0,r=[];for(;t<e.length;){let o=h(e.slice(t),!1);if(!o||"*"!==o.type)return;let n=d(o.body).map(e=>e.trim());if(1!==n.length)return;let s=f(n[0]);if(!s||1!==s.length)return;r.push(s),t+=o.end+1}if(r.length<1)return;let o=1===r.length?n.escapeRegex(r[0]):`[${r.map(e=>n.escapeRegex(e)).join("")}]`;return`${o}*`},m=e=>{let t=0,r=e.trim(),o=h(r);for(;o;)t++,o=h(r=o.body.trim());return t},g=(e,t)=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");e=c[e]||e;let h={...t},y="number"==typeof h.maxLength?Math.min(s,h.maxLength):s,x=e.length;if(x>y)throw SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:h.prepend||""},C=[_],v=h.capture?"":"?:",R=n.isWindows(t),A=o.globChars(R),w=o.extglobChars(A),{DOT_LITERAL:E,PLUS_LITERAL:k,SLASH_LITERAL:S,ONE_CHAR:$,DOTS_SLASH:O,NO_DOT:H,NO_DOT_SLASH:T,NO_DOTS_SLASH:L,QMARK:I,QMARK_NO_DOT:F,STAR:P,START_ANCHOR:j}=A,N=e=>`(${v}(?:(?!${j}${e.dot?O:E}).)*?)`,M=h.dot?"":H,U=h.dot?I:F,B=!0===h.bash?N(h):P;h.capture&&(B=`(${B})`),"boolean"==typeof h.noext&&(h.noextglob=h.noext);let D={input:e,index:-1,start:0,dot:!0===h.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};x=(e=n.removePrefix(e,D)).length;let G=[],q=[],K=[],W=_,Z=()=>D.index===x-1,z=D.peek=(t=1)=>e[D.index+t],Q=D.advance=()=>e[++D.index]||"",V=()=>e.slice(D.index+1),X=(e="",t=0)=>{D.consumed+=e,D.index+=t},Y=e=>{D.output+=null!=e.output?e.output:e.value,X(e.value)},J=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)Q(),D.start++,e++;return e%2!=0&&(D.negated=!0,D.start++,!0)},ee=e=>{D[e]++,K.push(e)},et=e=>{D[e]--,K.pop()},er=e=>{if("globstar"===W.type){let t=D.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||G.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(D.output=D.output.slice(0,-W.output.length),W.type="star",W.value="*",W.output=B,D.output+=W.output)}if(G.length&&"paren"!==e.type&&(G[G.length-1].inner+=e.value),(e.value||e.output)&&Y(e),W&&"text"===W.type&&"text"===e.type){W.value+=e.value,W.output=(W.output||"")+e.value;return}e.prev=W,C.push(e),W=e},eo=(e,t)=>{let r={...w[t],conditions:1,inner:""};r.prev=W,r.parens=D.parens,r.output=D.output,r.startIndex=D.index,r.tokensIndex=C.length;let o=(h.capture?"(":"")+r.open;ee("parens"),er({type:e,value:t,output:D.output?"":$}),er({type:"paren",extglob:!0,value:Q(),output:o}),G.push(r)},en=s=>{let i,a=e.slice(s.startIndex,D.index+1),u=((e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};let r="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:o.DEFAULT_MAX_EXTGLOB_RECURSION,n=d(e).map(e=>e.trim());if(n.length>1&&(n.some(e=>""===e)||n.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(f).filter(Boolean);for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){let o=t[e],n=t[r],s=o[0];if(s&&o===s.repeat(o.length)&&n===s.repeat(n.length)&&(o===n||o.startsWith(n)||n.startsWith(o)))return!0}return!1})(n)))return{risky:!0};for(let e of n){let t=b(e);if(t)return{risky:!0,safeOutput:t};if(m(e)>r)return{risky:!0}}return{risky:!1}})(e.slice(s.startIndex+2,D.index),h);if(("plus"===s.type||"star"===s.type)&&u.risky){let e=u.safeOutput?(s.output?"":$)+(h.capture?`(${u.safeOutput})`:u.safeOutput):void 0,t=C[s.tokensIndex];t.type="text",t.value=a,t.output=e||n.escapeRegex(a);for(let e=s.tokensIndex+1;e<C.length;e++)C[e].value="",C[e].output="",delete C[e].suffix;D.output=s.output+t.output,D.backtrack=!0,er({type:"paren",extglob:!0,value:r,output:""}),et("parens");return}let c=s.close+(h.capture?")":"");if("negate"===s.type){let e=B;if(s.inner&&s.inner.length>1&&s.inner.includes("/")&&(e=N(h)),(e!==B||Z()||/^\)+$/.test(V()))&&(c=s.close=`)$))${e}`),s.inner.includes("*")&&(i=V())&&/^\.[^\\/.]+$/.test(i)){let r=g(i,{...t,fastpaths:!1}).output;c=s.close=`)${r})${e})`}"bos"===s.prev.type&&(D.negatedExtglob=!0)}er({type:"paren",extglob:!0,value:r,output:c}),et("parens")};if(!1!==h.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(u,(e,t,o,n,s,i)=>"\\"===n?(r=!0,e):"?"===n?t?t+n+(s?I.repeat(s.length):""):0===i?U+(s?I.repeat(s.length):""):I.repeat(o.length):"."===n?E.repeat(o.length):"*"===n?t?t+n+(s?B:""):B:t?e:`\\${e}`);return(!0===r&&(o=!0===h.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),o===e&&!0===h.contains)?D.output=e:D.output=n.wrapOutput(o,D,t),D}for(;!Z();){if("\0"===(r=Q()))continue;if("\\"===r){let e=z();if("/"===e&&!0!==h.bash||"."===e||";"===e)continue;if(!e){er({type:"text",value:r+="\\"});continue}let t=/^\\+/.exec(V()),o=0;if(t&&t[0].length>2&&(o=t[0].length,D.index+=o,o%2!=0&&(r+="\\")),!0===h.unescape?r=Q():r+=Q(),0===D.brackets){er({type:"text",value:r});continue}}if(D.brackets>0&&("]"!==r||"["===W.value||"[^"===W.value)){if(!1!==h.posix&&":"===r){let e=W.value.slice(1);if(e.includes("[")&&(W.posix=!0,e.includes(":"))){let e=W.value.lastIndexOf("["),t=W.value.slice(0,e),r=i[W.value.slice(e+2)];if(r){W.value=t+r,D.backtrack=!0,Q(),_.output||1!==C.indexOf(W)||(_.output=$);continue}}}("["===r&&":"!==z()||"-"===r&&"]"===z())&&(r=`\\${r}`),"]"===r&&("["===W.value||"[^"===W.value)&&(r=`\\${r}`),!0===h.posix&&"!"===r&&"["===W.value&&(r="^"),W.value+=r,Y({value:r});continue}if(1===D.quotes&&'"'!==r){r=n.escapeRegex(r),W.value+=r,Y({value:r});continue}if('"'===r){D.quotes=+(1!==D.quotes),!0===h.keepQuotes&&er({type:"text",value:r});continue}if("("===r){ee("parens"),er({type:"paren",value:r});continue}if(")"===r){if(0===D.parens&&!0===h.strictBrackets)throw SyntaxError(p("opening","("));let e=G[G.length-1];if(e&&D.parens===e.parens+1){en(G.pop());continue}er({type:"paren",value:r,output:D.parens?")":"\\)"}),et("parens");continue}if("["===r){if(!0!==h.nobracket&&V().includes("]"))ee("brackets");else{if(!0!==h.nobracket&&!0===h.strictBrackets)throw SyntaxError(p("closing","]"));r=`\\${r}`}er({type:"bracket",value:r});continue}if("]"===r){if(!0===h.nobracket||W&&"bracket"===W.type&&1===W.value.length){er({type:"text",value:r,output:`\\${r}`});continue}if(0===D.brackets){if(!0===h.strictBrackets)throw SyntaxError(p("opening","["));er({type:"text",value:r,output:`\\${r}`});continue}et("brackets");let e=W.value.slice(1);if(!0===W.posix||"^"!==e[0]||e.includes("/")||(r=`/${r}`),W.value+=r,Y({value:r}),!1===h.literalBrackets||n.hasRegexChars(e))continue;let t=n.escapeRegex(W.value);if(D.output=D.output.slice(0,-W.value.length),!0===h.literalBrackets){D.output+=t,W.value=t;continue}W.value=`(${v}${t}|${W.value})`,D.output+=W.value;continue}if("{"===r&&!0!==h.nobrace){ee("braces");let e={type:"brace",value:r,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};q.push(e),er(e);continue}if("}"===r){let e=q[q.length-1];if(!0===h.nobrace||!e){er({type:"text",value:r,output:r});continue}let t=")";if(!0===e.dots){let e=C.slice(),r=[];for(let t=e.length-1;t>=0&&(C.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=l(r,h),D.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let o=D.output.slice(0,e.outputIndex),n=D.tokens.slice(e.tokensIndex);for(let s of(e.value=e.output="\\{",r=t="\\}",D.output=o,n))D.output+=s.output||s.value}er({type:"brace",value:r,output:t}),et("braces"),q.pop();continue}if("|"===r){G.length>0&&G[G.length-1].conditions++,er({type:"text",value:r});continue}if(","===r){let e=r,t=q[q.length-1];t&&"braces"===K[K.length-1]&&(t.comma=!0,e="|"),er({type:"comma",value:r,output:e});continue}if("/"===r){if("dot"===W.type&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",C.pop(),W=_;continue}er({type:"slash",value:r,output:S});continue}if("."===r){if(D.braces>0&&"dot"===W.type){"."===W.value&&(W.output=E);let e=q[q.length-1];W.type="dots",W.output+=r,W.value+=r,e.dots=!0;continue}if(D.braces+D.parens===0&&"bos"!==W.type&&"slash"!==W.type){er({type:"text",value:r,output:E});continue}er({type:"dot",value:r,output:E});continue}if("?"===r){if(!(W&&"("===W.value)&&!0!==h.noextglob&&"("===z()&&"?"!==z(2)){eo("qmark",r);continue}if(W&&"paren"===W.type){let e=z(),t=r;if("<"===e&&!n.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==W.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(V()))||(t=`\\${r}`),er({type:"text",value:r,output:t});continue}if(!0!==h.dot&&("slash"===W.type||"bos"===W.type)){er({type:"qmark",value:r,output:F});continue}er({type:"qmark",value:r,output:I});continue}if("!"===r){if(!0!==h.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){eo("negate",r);continue}if(!0!==h.nonegate&&0===D.index){J();continue}}if("+"===r){if(!0!==h.noextglob&&"("===z()&&"?"!==z(2)){eo("plus",r);continue}if(W&&"("===W.value||!1===h.regex){er({type:"plus",value:r,output:k});continue}if(W&&("bracket"===W.type||"paren"===W.type||"brace"===W.type)||D.parens>0){er({type:"plus",value:r});continue}er({type:"plus",value:k});continue}if("@"===r){if(!0!==h.noextglob&&"("===z()&&"?"!==z(2)){er({type:"at",extglob:!0,value:r,output:""});continue}er({type:"text",value:r});continue}if("*"!==r){("$"===r||"^"===r)&&(r=`\\${r}`);let e=a.exec(V());e&&(r+=e[0],D.index+=e[0].length),er({type:"text",value:r});continue}if(W&&("globstar"===W.type||!0===W.star)){W.type="star",W.star=!0,W.value+=r,W.output=B,D.backtrack=!0,D.globstar=!0,X(r);continue}let t=V();if(!0!==h.noextglob&&/^\([^?]/.test(t)){eo("star",r);continue}if("star"===W.type){if(!0===h.noglobstar){X(r);continue}let o=W.prev,n=o.prev,s="slash"===o.type||"bos"===o.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===h.bash&&(!s||t[0]&&"/"!==t[0])){er({type:"star",value:r,output:""});continue}let a=D.braces>0&&("comma"===o.type||"brace"===o.type),u=G.length&&("pipe"===o.type||"paren"===o.type);if(!s&&"paren"!==o.type&&!a&&!u){er({type:"star",value:r,output:""});continue}for(;"/**"===t.slice(0,3);){let r=e[D.index+4];if(r&&"/"!==r)break;t=t.slice(3),X("/**",3)}if("bos"===o.type&&Z()){W.type="globstar",W.value+=r,W.output=N(h),D.output=W.output,D.globstar=!0,X(r);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&Z()){D.output=D.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=N(h)+(h.strictSlashes?")":"|$)"),W.value+=r,D.globstar=!0,D.output+=o.output+W.output,X(r);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){let e=void 0!==t[1]?"|$":"";D.output=D.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=`${N(h)}${S}|${S}${e})`,W.value+=r,D.output+=o.output+W.output,D.globstar=!0,X(r+Q()),er({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){W.type="globstar",W.value+=r,W.output=`(?:^|${S}|${N(h)}${S})`,D.output=W.output,D.globstar=!0,X(r+Q()),er({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-W.output.length),W.type="globstar",W.output=N(h),W.value+=r,D.output+=W.output,D.globstar=!0,X(r);continue}let o={type:"star",value:r,output:B};if(!0===h.bash){o.output=".*?",("bos"===W.type||"slash"===W.type)&&(o.output=M+o.output),er(o);continue}if(W&&("bracket"===W.type||"paren"===W.type)&&!0===h.regex){o.output=r,er(o);continue}(D.index===D.start||"slash"===W.type||"dot"===W.type)&&("dot"===W.type?(D.output+=T,W.output+=T):!0===h.dot?(D.output+=L,W.output+=L):(D.output+=M,W.output+=M),"*"!==z()&&(D.output+=$,W.output+=$)),er(o)}for(;D.brackets>0;){if(!0===h.strictBrackets)throw SyntaxError(p("closing","]"));D.output=n.escapeLast(D.output,"["),et("brackets")}for(;D.parens>0;){if(!0===h.strictBrackets)throw SyntaxError(p("closing",")"));D.output=n.escapeLast(D.output,"("),et("parens")}for(;D.braces>0;){if(!0===h.strictBrackets)throw SyntaxError(p("closing","}"));D.output=n.escapeLast(D.output,"{"),et("braces")}if(!0!==h.strictSlashes&&("star"===W.type||"bracket"===W.type)&&er({type:"maybe_slash",value:"",output:`${S}?`}),!0===D.backtrack)for(let e of(D.output="",D.tokens))D.output+=null!=e.output?e.output:e.value,e.suffix&&(D.output+=e.suffix);return D};g.fastpaths=(e,t)=>{let r={...t},i="number"==typeof r.maxLength?Math.min(s,r.maxLength):s,a=e.length;if(a>i)throw SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`);e=c[e]||e;let u=n.isWindows(t),{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:b,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:y}=o.globChars(u),x=r.dot?b:h,_=r.dot?m:h,C=r.capture?"":"?:",v=!0===r.bash?".*?":g;r.capture&&(v=`(${v})`);let R=e=>!0===e.noglobstar?v:`(${C}(?:(?!${y}${e.dot?f:l}).)*?)`,A=e=>{switch(e){case"*":return`${x}${d}${v}`;case".*":return`${l}${d}${v}`;case"*.*":return`${x}${v}${l}${d}${v}`;case"*/*":return`${x}${v}${p}${d}${_}${v}`;case"**":return x+R(r);case"**/*":return`(?:${x}${R(r)}${p})?${_}${d}${v}`;case"**/*.*":return`(?:${x}${R(r)}${p})?${_}${v}${l}${d}${v}`;case"**/.*":return`(?:${x}${R(r)}${p})?${l}${d}${v}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let r=A(t[1]);if(!r)return;return r+l+t[2]}}},w=A(n.removePrefix(e,{negated:!1,prefix:""}));return w&&!0!==r.strictSlashes&&(w+=`${p}?`),w},e.exports=g},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/picomatch.js"(e,t,r){let o=r("path?37f5"),n=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/scan.js"),s=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/parse.js"),i=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/utils.js"),a=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/constants.js"),u=(e,t,r=!1)=>{if(Array.isArray(e)){let o=e.map(e=>u(e,t,r));return e=>{for(let t of o){let r=t(e);if(r)return r}return!1}}let o=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!o)throw TypeError("Expected pattern to be a non-empty string");let n=t||{},s=i.isWindows(t),a=o?u.compileRe(e,t):u.makeRe(e,t,!1,!0),c=a.state;delete a.state;let l=()=>!1;if(n.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};l=u(n.ignore,e,r)}let p=(r,o=!1)=>{let{isMatch:i,match:p,output:d}=u.test(r,a,t,{glob:e,posix:s}),f={glob:e,state:c,regex:a,posix:s,input:r,output:d,match:p,isMatch:i};return("function"==typeof n.onResult&&n.onResult(f),!1===i)?(f.isMatch=!1,!!o&&f):l(r)?("function"==typeof n.onIgnore&&n.onIgnore(f),f.isMatch=!1,!!o&&f):("function"==typeof n.onMatch&&n.onMatch(f),!o||f)};return r&&(p.state=c),p};u.test=(e,t,r,{glob:o,posix:n}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},a=s.format||(n?i.toPosixSlashes:null),c=e===o,l=c&&a?a(e):e;return!1===c&&(c=(l=a?a(e):e)===o),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?u.matchBase(e,t,r,n):t.exec(l)),{isMatch:!!c,match:c,output:l}},u.matchBase=(e,t,r,n=i.isWindows(r))=>(t instanceof RegExp?t:u.makeRe(t,r)).test(o.basename(e)),u.isMatch=(e,t,r)=>u(t,r)(e),u.parse=(e,t)=>Array.isArray(e)?e.map(e=>u.parse(e,t)):s(e,{...t,fastpaths:!1}),u.scan=(e,t)=>n(e,t),u.compileRe=(e,t,r=!1,o=!1)=>{if(!0===r)return e.output;let n=t||{},s=n.contains?"":"^",i=n.contains?"":"$",a=`${s}(?:${e.output})${i}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);let c=u.toRegex(a,t);return!0===o&&(c.state=e),c},u.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(n.output=s.fastpaths(e,t)),n.output||(n=s(e,t)),u.compileRe(n,t,r,o)},u.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},u.constants=a,e.exports=u},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/scan.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/utils.js"),{CHAR_ASTERISK:n,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:y}=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/constants.js"),x=e=>e===l||e===i,_=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{let r,C,v=t||{},R=e.length-1,A=!0===v.parts||!0===v.scanToEnd,w=[],E=[],k=[],S=e,$=-1,O=0,H=0,T=!1,L=!1,I=!1,F=!1,P=!1,j=!1,N=!1,M=!1,U=!1,B=!1,D=0,G={value:"",depth:0,isGlob:!1},q=()=>$>=R,K=()=>S.charCodeAt($+1),W=()=>(r=C,S.charCodeAt(++$));for(;$<R;){let e;if((C=W())===i){N=G.backslashes=!0,(C=W())===p&&(j=!0);continue}if(!0===j||C===p){for(D++;!0!==q()&&(C=W());){if(C===i){N=G.backslashes=!0,W();continue}if(C===p){D++;continue}if(!0!==j&&C===u&&(C=W())===u||!0!==j&&C===a){if(T=G.isBrace=!0,I=G.isGlob=!0,B=!0,!0===A)continue;break}if(C===m&&0==--D){j=!1,T=G.isBrace=!0,B=!0;break}}if(!0===A)continue;break}if(C===l){if(w.push($),E.push(G),G={value:"",depth:0,isGlob:!1},!0===B)continue;if(r===u&&$===O+1){O+=2;continue}H=$+1;continue}if(!0!==v.noext&&!0==(C===h||C===s||C===n||C===b||C===c)&&K()===d){if(I=G.isGlob=!0,F=G.isExtglob=!0,B=!0,C===c&&$===O&&(U=!0),!0===A){for(;!0!==q()&&(C=W());){if(C===i){N=G.backslashes=!0,C=W();continue}if(C===g){I=G.isGlob=!0,B=!0;break}}continue}break}if(C===n){if(r===n&&(P=G.isGlobstar=!0),I=G.isGlob=!0,B=!0,!0===A)continue;break}if(C===b){if(I=G.isGlob=!0,B=!0,!0===A)continue;break}if(C===f){for(;!0!==q()&&(e=W());){if(e===i){N=G.backslashes=!0,W();continue}if(e===y){L=G.isBracket=!0,I=G.isGlob=!0,B=!0;break}}if(!0===A)continue;break}if(!0!==v.nonegate&&C===c&&$===O){M=G.negated=!0,O++;continue}if(!0!==v.noparen&&C===d){if(I=G.isGlob=!0,!0===A){for(;!0!==q()&&(C=W());){if(C===d){N=G.backslashes=!0,C=W();continue}if(C===g){B=!0;break}}continue}break}if(!0===I){if(B=!0,!0===A)continue;break}}!0===v.noext&&(F=!1,I=!1);let Z=S,z="",Q="";O>0&&(z=S.slice(0,O),S=S.slice(O),H-=O),Z&&!0===I&&H>0?(Z=S.slice(0,H),Q=S.slice(H)):!0===I?(Z="",Q=S):Z=S,Z&&""!==Z&&"/"!==Z&&Z!==S&&x(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),!0===v.unescape&&(Q&&(Q=o.removeBackslashes(Q)),Z&&!0===N&&(Z=o.removeBackslashes(Z)));let V={prefix:z,input:e,start:O,base:Z,glob:Q,isBrace:T,isBracket:L,isGlob:I,isExtglob:F,isGlobstar:P,negated:M,negatedExtglob:U};if(!0===v.tokens&&(V.maxDepth=0,x(C)||E.push(G),V.tokens=E),!0===v.parts||!0===v.tokens){let t;for(let r=0;r<w.length;r++){let o=t?t+1:O,n=w[r],s=e.slice(o,n);v.tokens&&(0===r&&0!==O?(E[r].isPrefix=!0,E[r].value=z):E[r].value=s,_(E[r]),V.maxDepth+=E[r].depth),(0!==r||""!==s)&&k.push(s),t=n}if(t&&t+1<e.length){let r=e.slice(t+1);k.push(r),v.tokens&&(E[E.length-1].value=r,_(E[E.length-1]),V.maxDepth+=E[E.length-1].depth)}V.slashes=w,V.parts=k}return V}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/utils.js"(e,t,r){let o=r("path?37f5"),n="win32"===process.platform,{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/2.3.2/970562b178c2a3cae5d09ba562604a9292f4cc3586bd7d210594148d4f487bd5/node_modules/picomatch/lib/constants.js");t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(u,"\\$1"),t.toPosixSlashes=e=>e.replace(s,"/"),t.removeBackslashes=e=>e.replace(i,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return 3===e.length&&!!(e[0]>=9)||8===e[0]&&!!(e[1]>=10)},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===o.sep,t.escapeLast=(e,r,o)=>{let n=e.lastIndexOf(r,o);return -1===n?e:"\\"===e[n-1]?t.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=r.contains?"":"^",n=r.contains?"":"$",s=`${o}(?:${e})${n}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/to-regex-range/5.0.1/e55082e174dc917a955607638a77d8978552a7d78773d047c1263c740e4d7c0f/node_modules/to-regex-range/index.js"(e,t,r){let o=r("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-number/7.0.0/9613abb83deb6b72fdd092fda49730946a626517d4926a9f5c00ca322630c588/node_modules/is-number/index.js"),n=(e,t,r)=>{var a,u,c;let l,p,f;if(!1===o(e))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===o(t))throw TypeError("toRegexRange: expected the second argument to be a number.");let h={relaxZeros:!0,...r};"boolean"==typeof h.strictZeros&&(h.relaxZeros=!1===h.strictZeros);let b=e+":"+t+"="+String(h.relaxZeros)+String(h.shorthand)+String(h.capture)+String(h.wrap);if(n.cache.hasOwnProperty(b))return n.cache[b].result;let m=Math.min(e,t),g=Math.max(e,t);if(1===Math.abs(m-g)){let r=e+"|"+t;return h.capture?`(${r})`:!1===h.wrap?r:`(?:${r})`}let y=d(e)||d(t),x={min:e,max:t,a:m,b:g},_=[],C=[];return y&&(x.isPadded=y,x.maxLen=String(x.max).length),m<0&&(C=s(g<0?Math.abs(g):1,Math.abs(m),x,h),m=x.a=0),g>=0&&(_=s(m,g,x,h)),x.negatives=C,x.positives=_,l=i(a=C,u=_,"-",!1,c=h)||[],p=i(u,a,"",!1,c)||[],f=i(a,u,"-?",!0,c)||[],x.result=l.concat(f).concat(p).join("|"),!0===h.capture?x.result=`(${x.result})`:!1!==h.wrap&&_.length+C.length>1&&(x.result=`(?:${x.result})`),n.cache[b]=x,x.result};function s(e,t,r,o){let n,s=function(e,t){let r=1,o=1,n=c(e,1),s=new Set([t]);for(;e<=n&&n<=t;)s.add(n),r+=1,n=c(e,r);for(n=l(t+1,o)-1;e<n&&n<=t;)s.add(n),o+=1,n=l(t+1,o)-1;return(s=[...s]).sort(a),s}(e,t),i=[],u=e;for(let e=0;e<s.length;e++){let t=s[e],a=function(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=function(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}(e,t),n=o.length,s="",i=0;for(let e=0;e<n;e++){var a,u;let[t,r]=o[e];t===r?s+=t:"0"!==t||"9"!==r?s+=(a=t,u=r,`[${a}${u-a==1?"":"-"}${u}]`):i++}return i&&(s+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:s,count:[i],digits:n}}(String(u),String(t),o),c="";if(!r.isPadded&&n&&n.pattern===a.pattern){n.count.length>1&&n.count.pop(),n.count.push(a.count[0]),n.string=n.pattern+p(n.count),u=t+1;continue}r.isPadded&&(c=function(e,t,r){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),n=!1!==r.relaxZeros;switch(o){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${o}}`:`0{${o}}`}}(t,r,o)),a.string=c+a.pattern+p(a.count),i.push(a),u=t+1,n=a}return i}function i(e,t,r,o,n){let s=[];for(let n of e){let{string:e}=n;o||u(t,"string",e)||s.push(r+e),o&&u(t,"string",e)&&s.push(r+e)}return s}function a(e,t){return e>t?1:t>e?-1:0}function u(e,t,r){return e.some(e=>e[t]===r)}function c(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function l(e,t){return e-e%Math.pow(10,t)}function p(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function d(e){return/^-?(0+)\d/.test(e)}n.cache={},n.clearCache=()=>n.cache={},e.exports=n}});let u=/(^|,)\s*upgrade\s*($|,)/i,c={http:new e.Agent({keepAlive:!0,maxSockets:256,maxFreeSockets:64}),https:new t.Agent({keepAlive:!0,maxSockets:256,maxFreeSockets:64})},l=/^https|wss/,p=[":method",":path",":scheme",":authority"];function d(e,t,r,o){var n;for(let r of(e.port=t[o||"target"].port||(l.test(t[o||"target"].protocol??"http")?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"])){let n=t[o||"target"][r];void 0!==n&&(e[r]=n)}if(void 0===e.host&&"string"==typeof e.hostname){let t=e.hostname.includes(":")&&!e.hostname.startsWith("[")?`[${e.hostname}]`:e.hostname;e.host=e.port?`${t}:${e.port}`:t}if(e.method=t.method||r.method,e.headers={...r.headers},r.headers?.[":authority"]&&(e.headers.host=r.headers[":authority"]),t.headers)for(let r of Object.keys(t.headers))e.headers[r]=t.headers[r];if(r.httpVersionMajor>1)for(let t of p)delete e.headers[t];if(t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),l.test(t[o||"target"].protocol??"http")&&(e.rejectUnauthorized=void 0===t.secure||t.secure),void 0!==t.agent)e.agent=t.agent||!1;else if(r.httpVersionMajor>1||u.test(r.headers.connection||""))e.agent=!1;else{let r=t[o||"target"].protocol??"http";e.agent=l.test(r)?c.https:c.http}e.localAddress=t.localAddress,!e.agent&&(e.headers=e.headers||{},"string"==typeof e.headers.connection&&u.test(e.headers.connection)||(e.headers.connection="close"));let s=t[o||"target"],i=s&&!1!==t.prependPath&&s.pathname||"",a=s instanceof URL&&!1!==t.prependPath&&s.search||"",d=r.url||"",f=d.indexOf("?"),h=-1===f?d:d.slice(0,f),b=-1===f?"":d.slice(f),m=h?"/"===h[0]?h:"/"+h:"/",g=t.toProxy?"/"+d:m+b,y=function(e,t){if(!e||"/"===e)return t||"/";if(!t||"/"===t)return e||"/";let r="/"===e[e.length-1],o="/"===t[0];return r&&o?e+t.slice(1):r||o?e+t:e+"/"+t}(i,g=t.ignorePath?"":g);return a&&(y=y.includes("?")?y.replace("?",a+"&"):y+a),e.path=y,t.changeOrigin&&(e.headers.host=function(e,t){let r=t?.split(":")[0],o=+e;if(!o)return!1;switch(r){case"http":case"ws":return 80!==o;case"https":case"wss":return 443!==o;case"ftp":return 21!==o;case"gopher":return 70!==o;case"file":return!1}return 0!==o}(e.port,t[o||"target"].protocol)&&!((n=e.host)&&~n.indexOf(":"))?e.host+":"+e.port:e.host??void 0),e}function f(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e}function h(e){let t=e.headers[":authority"]||e.headers.host,r=t?t.match(/:(\d+)/):"";return r?r[1]:b(e)?"443":"80"}function b(e){let t=e.socket;return!!t&&"encrypted"in t&&t.encrypted}function m(e,t,r){return Array.isArray(e)?e.map(function(e){return m(e,t,r)}):e.replace(RegExp(String.raw`(;\s*`+r+"=)([^;]+)","i"),function(e,r,o){let n;if(o in t)n=t[o];else{if(!("*"in t))return e;n=t["*"]}return n?r+n:""})}let g=/^201|30([12378])$/,y=[(e,t,r)=>{("1.0"===e.httpVersion||e.httpVersionMajor>=2||204===r.statusCode||304===r.statusCode)&&delete r.headers["transfer-encoding"]},(e,t,r)=>{"1.0"===e.httpVersion?r.headers.connection=e.headers.connection||"close":e.httpVersionMajor<2&&!r.headers.connection?r.headers.connection=e.headers.connection||"keep-alive":e.httpVersionMajor>=2&&delete r.headers.connection},(e,t,r,o)=>{if((o.hostRewrite||o.autoRewrite||o.protocolRewrite)&&r.headers.location&&g.test(String(r.statusCode))){let t=function(e){if(e instanceof URL)return e;if("string"==typeof e)return new URL(e);let t=e.protocol||"http:",r=e.host||e.hostname||"localhost",o=e.port;return new URL(`${t}//${r}${o?":"+o:""}`)}(o.target),n=new URL(r.headers.location,t);t.host===n.host&&(o.hostRewrite?n.host=o.hostRewrite:o.autoRewrite&&(e.headers[":authority"]?n.host=e.headers[":authority"]:e.headers.host&&(n.host=e.headers.host)),o.protocolRewrite&&(n.protocol=o.protocolRewrite),r.headers.location=n.toString())}},(e,t,r,o)=>{let n,s="string"==typeof o.cookieDomainRewrite?{"*":o.cookieDomainRewrite}:o.cookieDomainRewrite,i="string"==typeof o.cookiePathRewrite?{"*":o.cookiePathRewrite}:o.cookiePathRewrite,a=o.preserveHeaderKeyCase;if(a&&void 0!==r.rawHeaders){n={};for(let e=0;e<r.rawHeaders.length;e+=2){let t=r.rawHeaders[e];n[t.toLowerCase()]=t}}for(let e of Object.keys(r.headers)){let o=r.headers[e];a&&n&&(e=n[e]||e);var u=e,c=o;if(void 0!==c&&String(u).trim()){s&&"set-cookie"===u.toLowerCase()&&(c=m(c,s,"domain")),i&&"set-cookie"===u.toLowerCase()&&(c=m(c,i,"path"));try{t.setHeader(String(u).trim(),c)}catch{}}}},(e,t,r)=>{t.statusCode=r.statusCode,r.statusMessage&&e.httpVersionMajor<2&&(t.statusMessage=r.statusMessage)}],x=new Set([301,302,303,307,308]),_=[e=>{"DELETE"!==e.method&&"OPTIONS"!==e.method||e.headers["content-length"]||e.headers["transfer-encoding"]||(e.headers["content-length"]="0")},(e,t,r)=>{r.timeout&&e.socket.setTimeout(r.timeout,()=>{e.socket.destroy()})},(e,t,r)=>{if(!r.xfwd)return;let o=e.isSpdy||b(e),n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:h(e),proto:o?"https":"http"};for(let t of["for","port","proto"]){let r="x-forwarded-"+t;e.headers[r]||void 0===n[t]||(e.headers[r]=n[t])}e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers[":authority"]||e.headers.host||""},(r,o,n,s,i,a)=>{let u;s.emit("start",r,o,n.target||n.forward);let c="number"==typeof n.followRedirects?n.followRedirects:5*!!n.followRedirects;if(n.forward){let s=(l.test(n.forward.protocol||"http")?t:e).request(d(n.ssl||{},n,r,"forward")),i=h(s,n.forward);if(r.on("error",i),s.on("error",i),(n.buffer||r).pipe(s),!n.target)return void o.end()}let p=(l.test(n.target.protocol||"http")?t:e).request(d(n.ssl||{},n,r));p.on("socket",e=>{s&&!p.getHeader("expect")&&s.emit("proxyReq",p,r,o,n)}),n.proxyTimeout&&p.setTimeout(n.proxyTimeout,function(){p.destroy()}),o.on("close",function(){o.writableFinished||p.destroy()});let f=h(p,n.target);function h(e,t){return function(n){if(!r.socket?.writable&&"ECONNRESET"===n.code)return s.emit("econnreset",n,r,o,t),e.destroy();a?a(n,r,o,t):s.emit("error",n,r,o,t)}}if(r.on("error",f),p.on("error",f),c>0){let e=[],t=n.buffer||r;t.on("data",t=>{e.push("string"==typeof t?Buffer.from(t):t),p.write(t)}),t.on("end",()=>{u=Buffer.concat(e),p.end()}),t.on("error",e=>{p.destroy(e)})}else p.on("socket",e=>{e.pending?e.on("connect",()=>(n.buffer||r).pipe(p)):(n.buffer||r).pipe(p)});p.on("response",function(i){!function i(a,p,d){let f=a.statusCode;if(c>0&&x.has(f)&&p<c&&a.headers.location){a.resume();let c=new URL(a.headers.location,d),b=307===f||308===f,m=b&&r.method||"GET",g=l.test(c.protocol),y=g?t:e,x={...r.headers};n.headers&&Object.assign(x,n.headers),x.host=c.host,c.host!==d.host&&(delete x.authorization,delete x.cookie),b||(delete x["content-length"],delete x["content-type"],delete x["transfer-encoding"]);let _={hostname:c.hostname,port:c.port||(g?443:80),path:c.pathname+c.search,method:m,headers:x,agent:n.agent||!1};g&&(_.rejectUnauthorized=void 0===n.secure||n.secure);let C=y.request(_);s&&!C.getHeader("expect")&&s.emit("proxyReq",C,r,o,n),n.proxyTimeout&&C.setTimeout(n.proxyTimeout,()=>{C.destroy()});let v=h(C,c);C.on("error",v),C.on("response",e=>{i(e,p+1,c)}),b&&u&&u.length>0?C.end(u):C.end();return}if(s&&s.emit("proxyRes",a,r,o),!o.headersSent&&!n.selfHandleResponse){for(let e of y)if(e(r,o,a,n))break}o.finished?s&&s.emit("end",r,o,a):(o.on("close",function(){a.destroy()}),a.on("close",function(){a.complete||o.destroyed||o.destroy()}),a.on("error",function(e){o.destroyed||o.destroy(e),s.listenerCount("error")>0&&s.emit("error",e,r,o,d)}),a.on("end",function(){s&&s.emit("end",r,o,a)}),n.selfHandleResponse||a.pipe(o))}(i,0,n.target)})}],C=[(e,t)=>{if("GET"!==e.method||!e.headers.upgrade||"websocket"!==e.headers.upgrade.toLowerCase())return t.destroy(),!0},(e,t,r)=>{if(!r.xfwd)return;let o={for:e.connection.remoteAddress||e.socket.remoteAddress,port:h(e),proto:b(e)?"wss":"ws"};for(let t of["for","port","proto"]){let r="x-forwarded-"+t;e.headers[r]||void 0===o[t]||(e.headers[r]=o[t])}},(r,o,n,s,i,a)=>{let u=function(e,t){return Object.keys(t).reduce(function(e,r){let o=t[r];if(!Array.isArray(o))return e.push(r+": "+o),e;for(let t of o)e.push(r+": "+t);return e},[e]).join("\r\n")+"\r\n\r\n"};f(o),i&&i.length>0&&o.unshift(i),o.on("error",p);let c=(l.test(n.target.protocol||"http")?t:e).request(d(n.ssl||{},n,r));function p(e){a?a(e,r,o):s.emit("error",e,r,o),c.destroy()}function h(e){a?a(e,r,o):s.emit("error",e,r,o),o.end()}s&&s.emit("proxyReqWs",c,r,o,n,i),c.on("error",h),c.on("response",function(e){e.upgrade||(!o.destroyed&&o.writable?(o.write(u("HTTP/"+e.httpVersion+" "+e.statusCode+" "+e.statusMessage,e.headers)),e.on("error",h),e.pipe(o)):e.resume())}),c.on("upgrade",function(e,t,r){t.on("error",h),t.on("end",function(){s.emit("close",e,t,r)}),o.removeListener("error",p),o.on("error",function(){t.end()}),f(t),r&&r.length>0&&t.unshift(r),o.write(u("HTTP/1.1 101 Switching Protocols",e.headers)),t.pipe(o).pipe(t),s.emit("open",t),s.emit("proxySocket",t)}),c.end()}];var v=class extends o{_server;_webPasses=[..._];_wsPasses=[...C];options;web;ws;constructor(e={}){super(),this.options=e||{},this.options.prependPath=!1!==e.prependPath,this.web=R("web",this),this.ws=R("ws",this)}listen(o,n,s){let i=(e,t)=>this.web(e,t);if(this.options.http2){if(!this.options.ssl)throw Error("HTTP/2 requires ssl option");this._server=r.createSecureServer({...this.options.ssl,allowHTTP1:!0},i)}else this.options.ssl?this._server=t.createServer(this.options.ssl,i):this._server=e.createServer(i);return this.options.ws&&this._server.on("upgrade",(e,t,r)=>{this.ws(e,t,this.options,r).catch(()=>{})}),this._server.listen(o,n,s),this}close(e){this._server&&this._server.close((...t)=>{this._server=void 0,e&&Reflect.apply(e,void 0,t)})}before(e,t,r){if("ws"!==e&&"web"!==e)throw Error("type must be `web` or `ws`");let o=this._getPasses(e),n=!1;for(let[e,r]of o.entries())r.name===t&&(n=e);if(!1===n)throw Error("No such pass");o.splice(n,0,r)}after(e,t,r){if("ws"!==e&&"web"!==e)throw Error("type must be `web` or `ws`");let o=this._getPasses(e),n=!1;for(let[e,r]of o.entries())r.name===t&&(n=e);if(!1===n)throw Error("No such pass");o.splice(n++,0,r)}_getPasses(e){return"ws"===e?this._wsPasses:this._webPasses}};function R(e,t){return function(r,o,n,s){let i,a,u={...n,...t.options};for(let e of["target","forward"])"string"==typeof u[e]&&(u[e]=new URL(u[e]));if(!u.target&&!u.forward)return this.emit("error",Error("Must provide a proper URL as target")),Promise.resolve();let c=new Promise((e,t)=>{i=e,a=t});for(let n of(o.on("close",()=>{i()}),o.on("error",e=>{a(e)}),t._getPasses(e))){let e;try{e=n(r,o,u,t,s,(e,n,s,u)=>{t.listenerCount("error")>0?(t.emit("error",e,r,o,u),i()):a(e)})}catch(e){t.listenerCount("error")>0?(t.emit("error",e,r,o,u.target||u.forward),i()):a(e);break}if(e){i();break}}return c}}class A extends Error{code;constructor(e,t){super(e),this.code=t,this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}let w=a("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/4.4.3/64f28f7ac7dd8bc11944350993b040e31578ca48ef26096b6bf9a25f661c0c66/node_modules/debug/src/index.js")("http-proxy-middleware"),E=w.extend("debug-proxy-errors-plugin"),k=`[HPM] Connection reset (ECONNRESET) detected with non-empty "req.body" [ERR_HPM.GH40].
3
3
 
4
4
  This usually means that the POST request body (req.body) was already parsed before reaching the proxy.
5
5
  When bodyParser runs first, it consumes the request stream, leaving the proxy unable to forward the body data to the target server.
@@ -9,6 +9,6 @@ import e from"node:http";import t from"node:https";import r from"node:http2";imp
9
9
  - Option 2: Use 'fixRequestBody()' helper to fix this issue.
10
10
 
11
11
  For more details, see: https://github.com/chimurai/http-proxy-middleware/issues/40
12
- `,$=(e,t)=>{e.on("error",(e,t,r,o)=>{E(`httpxy error event:
13
- %O`,e),"ECONNRESET"===e.code&&t&&"POST"===t.method&&"body"in t&&t.body&&console.error(n("red",S))}),e.on("proxyReq",(e,t,r)=>{r.on("error",e=>{E("Socket error in proxyReq event: \n%O",e)})}),e.on("proxyRes",(e,t,r)=>{r.on("close",()=>{r.writableEnded||(E("Destroying proxyRes in proxyRes close event"),e.destroy())})}),e.on("proxyReqWs",(e,t,r)=>{r.on("error",e=>{E("Socket error in proxyReqWs event: \n%O",e)})}),e.on("open",e=>{e.on("error",e=>{E("Socket error in open event: \n%O",e)})}),e.on("close",(e,t,r)=>{t.on("error",e=>{E("Socket error in close event: \n%O",e)})}),e.on("econnreset",(e,t,r,o)=>{E(`httpxy econnreset event:
14
- %O`,e)})};function O(e){return e?.replace(/[<>]/g,e=>encodeURIComponent(e))??""}let k=(e,t)=>{e.on("error",(e,t,r,o)=>{if(!t||!r)throw e;if(r&&"function"==typeof r.writeHead){if(!r.headersSent){let t=function(e){let t;if(/HPE_INVALID/.test(e))return 502;if(/HPM_ERR_INVALID_MULTIPART_/.test(e))return 400;switch(e){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":t=504;break;default:t=500}return t}(e.code);r.writeHead(t)}let o=t.headers&&t.headers.host;r.end(`Error occurred while trying to proxy: ${O(o)}${O(t.url)}`)}else!r||"function"!=typeof r.write||"writeHead"in r||r.destroy()})},H={info:()=>{},warn:()=>{},error:()=>{}},T=(e,t)=>{let r=t.logger||H;e.on("error",(e,t,o,n)=>{let s=t?.headers?.host,i=`${s}${t?.url}`,a=`${n?.href}`;r.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",i,a,e.code||e,"https://nodejs.org/api/errors.html#errors_common_system_errors")}),e.on("proxyRes",(e,o,n)=>{let a,u=o.originalUrl??`${o.baseUrl||""}${o.url}`;try{var l;let t=(l=e.req?.agent?.sockets,Object.keys(l||{})?.[0]?.split(":")[1]),{protocol:r,host:o,path:n}=e.req;a=function({protocol:e,host:t,port:r,path:o}){let n=t?.includes(":")?`[${t}]`:t,s=new i(`${e||"undefined:"}//${n||"[::]"}`);return r&&(s.port=r),o&&(s.pathname=o),s}({protocol:r,host:o,port:t,path:n})}catch(r){console.error("[HPM] Unexpected error while creating target URL",r),(a=new s(t.target)).pathname=e.req.path}let p=a.toString(),c=`[HPM] ${o.method} ${u} -> ${p} [${e.statusCode}]`;r.info(c)}),e.on("open",e=>{r.info("[HPM] Client connected: %o",e.address())}),e.on("close",(e,t,o)=>{r.info("[HPM] Client disconnected: %o",t.address())})};function L(e){return e.name||"[anonymous Function]"}let I=w.extend("proxy-events-plugin"),F=(e,t)=>{let r;if(t.on){for(r in t.on)if(Object.prototype.hasOwnProperty.call(t.on,r)){let o=t.on[r];if(!o)continue;I(`register event handler: "${r}" -> "${L(o)}"`),e.on(r,o)}}},P=a("../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"),j=a("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js");function N(e,t){let r=U(t);return r?.indexOf(e)===0}function M(e,t){let r=j([U(t)],e);return r&&r.length>0}function U(e){return e&&new URL(e,"http://0.0.0.0").pathname}function B(e){return"string"==typeof e&&!P(e)}function D(e){return P(e)}function G(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let q=w.extend("path-rewriter"),K=w.extend("router");async function W(e,t,r){let o,n=r.router;return G(n)?o=function(e,t){let r,o=e.headers.host??"",n=e.url??"";for(let[e,i]of Object.entries(t))if(Z(e)){var s;if(Z(s=e)&&!s.startsWith("/")){let[t,s]=function(e){let t=e.indexOf("/");return[e.slice(0,t),e.slice(t)]}(e);if(o===t&&n.startsWith(s)){K('match: "%s" -> "%s"',e,r=i);break}}else if(n.startsWith(e)){K('match: "%s" -> "%s"',e,r=i);break}}else if(e===o){K('match: "%s" -> "%s"',o,r=i);break}return r}(e,n):"function"==typeof n&&(o=await n(e,t,r)),o}function Z(e){return e.indexOf("/")>-1}let z=w.extend("ipv6");function Q(e,t){var r,o,n;let s="string"==typeof(r=e)?new URL(r):r instanceof URL?r:void 0;if(s&&(o=s.hostname).startsWith("[")&&o.endsWith("]")){let r="::"===(n=s.hostname.replace(/^\[|\]$/g,""))?(z("normalizing hostname unspecified IPv6 address (::) to loopback (::1)"),"::1"):n;return z('normalized IPv6 "%s" %s',t,e),{hostname:r,auth:s.username||s.password?`${s.username}:${s.password}`:void 0,pathname:s.pathname,port:s.port,protocol:s.protocol,search:s.search}}return e}class V{wsInternalSubscribedServers=new WeakSet;activeServers=new Set;proxyOptions;proxy;pathRewriter;logger;constructor(e){if(!e.target&&!e.router)throw new v('[HPM] Missing "target" option. Example: {target: "http://www.example.org"}',"ERR_CONFIG_FACTORY_TARGET_MISSING");this.proxyOptions=e,this.logger=e.logger||H,w("create proxy server"),this.proxy=function(e={}){return new R(e)}({}),this.registerPlugins(this.proxy,this.proxyOptions),this.pathRewriter=function(e){let t;if(function(e){if("function"==typeof e)return!0;if(G(e))return 0!==Object.keys(e).length;if(null==e)return!1;throw new v("[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function","HPM_INVALID_PATH_REWRITER_CONFIG")}(e))if("function"==typeof e)return e;else return t=function(e){let t=[];if(G(e))for(let[r,o]of Object.entries(e))t.push({regex:new RegExp(r),value:o}),q('rewrite rule created: "%s" ~> "%s"',r,o);return t}(e),function(e){let r=e;for(let o of t)if(o.regex.test(e)){q('rewriting path from "%s" to "%s"',e,r=r.replace(o.regex,o.value));break}return r}}(this.proxyOptions.pathRewrite),this.middleware.upgrade=(e,t,r)=>{let o=this.#e(e);o&&!this.wsInternalSubscribedServers.has(o)&&this.handleUpgrade(e,t,r)}}#e(e){return e.socket?.server}middleware=async(e,t,r)=>{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let o;try{if(!(o=await this.prepareProxyRequest(e,t)).target&&!o.forward)throw Error("Must provide a proper URL as target")}catch(e){r?.(e);return}try{w("proxy request to target: %O",o.target),await this.proxy.web(e,t,o)}catch(n){this.proxy.emit("error",n,e,t,o.target),r?.(n)}}else r?.();let o=this.#e(e);o&&!this.activeServers.has(o)&&(w("registering server close listener"),this.activeServers.add(o),o.on("close",()=>{(w("server close signal received."),this.activeServers.delete(o),this.activeServers.size>0)?w(`proxy server not closed: ${this.activeServers.size} server(s) still active`):(w("closing proxy server"),this.proxy.close(()=>w("proxy server closed")))})),!0===this.proxyOptions.ws&&o&&this.catchUpgradeRequest(o)};registerPlugins(e,t){let r;(r=t.on?.error?[]:[k],[...t.ejectPlugins?[]:[$,F,T,...r],...t.plugins??[]]).forEach(r=>{w(`register plugin: "${L(r)}"`),r(e,t)})}catchUpgradeRequest=e=>{this.wsInternalSubscribedServers.has(e)||(w("subscribing to server upgrade event"),e.on("upgrade",this.handleUpgrade),this.wsInternalSubscribedServers.add(e))};handleUpgrade=async(e,t,r)=>{try{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let o=await this.prepareProxyRequest(e,void 0);await this.proxy.ws(e,t,o,r),w("server upgrade event received. Proxying WebSocket")}}catch(r){this.proxy.emit("error",r,e,t)}};shouldProxy=(e,t)=>{try{return function(e="/",t,r){if(B(e))return N(e,t);if(D(e))return M(e,t);if(Array.isArray(e)){if(e.every(B)){var o,n,s=e,i=t;let r=!1;for(let e of s)if(N(e,i)){r=!0;break}return r}if(e.every(D)){return o=e,n=t,M(o,n)}throw new v('[HPM] Invalid pathFilter. Plain paths (e.g. "/api") can not be mixed with globs (e.g. "/api/**"). Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"].',"HPM_INVALID_PATH_FILTER_ARRAY_CONFIG")}if("function"==typeof e)return!!e(U(t),r);throw new v('[HPM] Invalid pathFilter. Expecting something like: "/api" or ["/api", "/ajax"]',"HPM_INVALID_PATH_FILTER_CONFIG")}(e,t.url,t)}catch(e){return w("Error: matchPathFilter() called with request url: ",`"${t.url}"`),this.logger.error(e),!1}};prepareProxyRequest=async(e,t)=>{let r=Object.assign({},this.proxyOptions);return await this.applyRouter(e,t,r),r.target=Q(r.target,"target"),r.forward=Q(r.forward,"forward"),await this.applyPathRewrite(e,t,this.pathRewriter,r),r};applyRouter=async(e,t,r)=>{let o;r.router&&(o=await W(e,t,r))&&(w('router new target: "%s"',o),r.target=o)};applyPathRewrite=async(e,t,r,o)=>{if(e.url&&r){let n=await r(e.url,e,t,o);"string"==typeof n?(w("pathRewrite new path: %s",n),e.url=n):w("pathRewrite: no rewritten path found: %s",e.url)}}}function X(e){let{middleware:t}=new V(e);return t}w.extend("response-interceptor");export{X as createProxyMiddleware};
12
+ `,S=(e,t)=>{e.on("error",(e,t,r,o)=>{E(`httpxy error event:
13
+ %O`,e),"ECONNRESET"===e.code&&t&&"POST"===t.method&&"body"in t&&t.body&&console.error(n("red",k))}),e.on("proxyReq",(e,t,r)=>{r.on("error",e=>{E("Socket error in proxyReq event: \n%O",e)})}),e.on("proxyRes",(e,t,r)=>{r.on("close",()=>{r.writableEnded||(E("Destroying proxyRes in proxyRes close event"),e.destroy())})}),e.on("proxyReqWs",(e,t,r)=>{r.on("error",e=>{E("Socket error in proxyReqWs event: \n%O",e)})}),e.on("open",e=>{e.on("error",e=>{E("Socket error in open event: \n%O",e)})}),e.on("close",(e,t,r)=>{t.on("error",e=>{E("Socket error in close event: \n%O",e)})}),e.on("econnreset",(e,t,r,o)=>{E(`httpxy econnreset event:
14
+ %O`,e)})};function $(e){return e?.replace(/[<>]/g,e=>encodeURIComponent(e))??""}let O=(e,t)=>{e.on("error",(e,t,r,o)=>{if(!t||!r)throw e;if(r&&"function"==typeof r.writeHead){if(!r.headersSent){let t=function(e){let t;if(/HPE_INVALID/.test(e))return 502;if(/HPM_ERR_INVALID_MULTIPART_/.test(e))return 400;switch(e){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":t=504;break;default:t=500}return t}(e.code);r.writeHead(t)}let o=t.headers&&t.headers.host;r.end(`Error occurred while trying to proxy: ${$(o)}${$(t.url)}`)}else!r||"function"!=typeof r.write||"writeHead"in r||r.destroy()})},H={info:()=>{},warn:()=>{},error:()=>{}},T=(e,t)=>{let r=t.logger||H;e.on("error",(e,t,o,n)=>{let s=t?.headers?.host,i=`${s}${t?.url}`,a=`${n?.href}`;r.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",i,a,e.code||e,"https://nodejs.org/api/errors.html#errors_common_system_errors")}),e.on("proxyRes",(e,o,n)=>{let a,u=o.originalUrl??`${o.baseUrl||""}${o.url}`;try{var c;let t=(c=e.req?.agent?.sockets,Object.keys(c||{})?.[0]?.split(":")[1]),{protocol:r,host:o,path:n}=e.req;a=function({protocol:e,host:t,port:r,path:o}){let n=t?.includes(":")?`[${t}]`:t,s=new i(`${e||"undefined:"}//${n||"[::]"}`);return r&&(s.port=r),o&&(s.pathname=o),s}({protocol:r,host:o,port:t,path:n})}catch(r){console.error("[HPM] Unexpected error while creating target URL",r),(a=new s(t.target)).pathname=e.req.path}let l=a.toString(),p=`[HPM] ${o.method} ${u} -> ${l} [${e.statusCode}]`;r.info(p)}),e.on("open",e=>{r.info("[HPM] Client connected: %o",e.address())}),e.on("close",(e,t,o)=>{r.info("[HPM] Client disconnected: %o",t.address())})};function L(e){return e.name||"[anonymous Function]"}let I=w.extend("proxy-events-plugin"),F=(e,t)=>{let r;if(t.on){for(r in t.on)if(Object.prototype.hasOwnProperty.call(t.on,r)){let o=t.on[r];if(!o)continue;I(`register event handler: "${r}" -> "${L(o)}"`),e.on(r,o)}}},P=a("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-glob/4.0.3/5f6010d19ebbd407d4ddad3f32ad93b07ae9baaa0b44d778899bd947e1a7324b/node_modules/is-glob/index.js"),j=a("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/micromatch/4.0.8/e3e5f26f16f8b95548bbbd14ad679e23348853c21837502922840101deaebdcd/node_modules/micromatch/index.js");function N(e,t){let r=U(t);return r?.indexOf(e)===0}function M(e,t){let r=j([U(t)],e);return r&&r.length>0}function U(e){return e&&new URL(e,"http://0.0.0.0").pathname}function B(e){return"string"==typeof e&&!P(e)}function D(e){return P(e)}function G(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let q=w.extend("path-rewriter"),K=w.extend("router");async function W(e,t,r){let o,n=r.router;return G(n)?o=function(e,t){let r,o=e.headers.host??"",n=e.url??"";for(let[e,i]of Object.entries(t))if(Z(e)){var s;if(Z(s=e)&&!s.startsWith("/")){let[t,s]=function(e){let t=e.indexOf("/");return[e.slice(0,t),e.slice(t)]}(e);if(o===t&&n.startsWith(s)){K('match: "%s" -> "%s"',e,r=i);break}}else if(n.startsWith(e)){K('match: "%s" -> "%s"',e,r=i);break}}else if(e===o){K('match: "%s" -> "%s"',o,r=i);break}return r}(e,n):"function"==typeof n&&(o=await n(e,t,r)),o}function Z(e){return e.indexOf("/")>-1}let z=w.extend("ipv6");function Q(e,t){var r,o,n;let s="string"==typeof(r=e)?new URL(r):r instanceof URL?r:void 0;if(s&&(o=s.hostname).startsWith("[")&&o.endsWith("]")){let r="::"===(n=s.hostname.replace(/^\[|\]$/g,""))?(z("normalizing hostname unspecified IPv6 address (::) to loopback (::1)"),"::1"):n;return z('normalized IPv6 "%s" %s',t,e),{hostname:r,auth:s.username||s.password?`${s.username}:${s.password}`:void 0,pathname:s.pathname,port:s.port,protocol:s.protocol,search:s.search}}return e}class V{wsInternalSubscribedServers=new WeakSet;activeServers=new Set;proxyOptions;proxy;pathRewriter;logger;constructor(e){if(!e.target&&!e.router)throw new A('[HPM] Missing "target" option. Example: {target: "http://www.example.org"}',"ERR_CONFIG_FACTORY_TARGET_MISSING");this.proxyOptions=e,this.logger=e.logger||H,w("create proxy server"),this.proxy=function(e={}){return new v(e)}({}),this.registerPlugins(this.proxy,this.proxyOptions),this.pathRewriter=function(e){let t;if(function(e){if("function"==typeof e)return!0;if(G(e))return 0!==Object.keys(e).length;if(null==e)return!1;throw new A("[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function","HPM_INVALID_PATH_REWRITER_CONFIG")}(e))if("function"==typeof e)return e;else return t=function(e){let t=[];if(G(e))for(let[r,o]of Object.entries(e))t.push({regex:new RegExp(r),value:o}),q('rewrite rule created: "%s" ~> "%s"',r,o);return t}(e),function(e){let r=e;for(let o of t)if(o.regex.test(e)){q('rewriting path from "%s" to "%s"',e,r=r.replace(o.regex,o.value));break}return r}}(this.proxyOptions.pathRewrite),this.middleware.upgrade=(e,t,r)=>{let o=this.#e(e);o&&!this.wsInternalSubscribedServers.has(o)&&this.handleUpgrade(e,t,r)}}#e(e){return e.socket?.server}middleware=async(e,t,r)=>{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let o;try{if(!(o=await this.prepareProxyRequest(e,t)).target&&!o.forward)throw Error("Must provide a proper URL as target")}catch(e){r?.(e);return}try{w("proxy request to target: %O",o.target),await this.proxy.web(e,t,o)}catch(n){this.proxy.emit("error",n,e,t,o.target),r?.(n)}}else r?.();let o=this.#e(e);o&&!this.activeServers.has(o)&&(w("registering server close listener"),this.activeServers.add(o),o.on("close",()=>{(w("server close signal received."),this.activeServers.delete(o),this.activeServers.size>0)?w(`proxy server not closed: ${this.activeServers.size} server(s) still active`):(w("closing proxy server"),this.proxy.close(()=>w("proxy server closed")))})),!0===this.proxyOptions.ws&&o&&this.catchUpgradeRequest(o)};registerPlugins(e,t){let r;(r=t.on?.error?[]:[O],[...t.ejectPlugins?[]:[S,F,T,...r],...t.plugins??[]]).forEach(r=>{w(`register plugin: "${L(r)}"`),r(e,t)})}catchUpgradeRequest=e=>{this.wsInternalSubscribedServers.has(e)||(w("subscribing to server upgrade event"),e.on("upgrade",this.handleUpgrade),this.wsInternalSubscribedServers.add(e))};handleUpgrade=async(e,t,r)=>{try{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let o=await this.prepareProxyRequest(e,void 0);await this.proxy.ws(e,t,o,r),w("server upgrade event received. Proxying WebSocket")}}catch(r){this.proxy.emit("error",r,e,t)}};shouldProxy=(e,t)=>{try{return function(e="/",t,r){if(B(e))return N(e,t);if(D(e))return M(e,t);if(Array.isArray(e)){if(e.every(B)){var o,n,s=e,i=t;let r=!1;for(let e of s)if(N(e,i)){r=!0;break}return r}if(e.every(D)){return o=e,n=t,M(o,n)}throw new A('[HPM] Invalid pathFilter. Plain paths (e.g. "/api") can not be mixed with globs (e.g. "/api/**"). Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"].',"HPM_INVALID_PATH_FILTER_ARRAY_CONFIG")}if("function"==typeof e)return!!e(U(t),r);throw new A('[HPM] Invalid pathFilter. Expecting something like: "/api" or ["/api", "/ajax"]',"HPM_INVALID_PATH_FILTER_CONFIG")}(e,t.url,t)}catch(e){return w("Error: matchPathFilter() called with request url: ",`"${t.url}"`),this.logger.error(e),!1}};prepareProxyRequest=async(e,t)=>{let r=Object.assign({},this.proxyOptions);return await this.applyRouter(e,t,r),r.target=Q(r.target,"target"),r.forward=Q(r.forward,"forward"),await this.applyPathRewrite(e,t,this.pathRewriter,r),r};applyRouter=async(e,t,r)=>{let o;r.router&&(o=await W(e,t,r))&&(w('router new target: "%s"',o),r.target=o)};applyPathRewrite=async(e,t,r,o)=>{if(e.url&&r){let n=await r(e.url,e,t,o);"string"==typeof n?(w("pathRewrite new path: %s",n),e.url=n):w("pathRewrite: no rewritten path found: %s",e.url)}}}function X(e){let{middleware:t}=new V(e);return t}w.extend("response-interceptor");export{X as createProxyMiddleware};
@@ -1 +1 @@
1
- import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../node_modules/.pnpm/launch-editor-middleware@2.14.1/node_modules/launch-editor-middleware/index.js"(e,t,o){let n=o("path?37f5"),i=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/index.js");e.exports=(e,t,o)=>("function"==typeof e&&(o=e,e=void 0),"function"==typeof t&&(o=t,t=void 0),t=t||process.cwd(),function(r,s){let a;try{let e=r.url.startsWith("http")?r.url:`http://localhost${r.url}`;a=new URL(e)}catch(e){s.statusCode=500,s.end("launch-editor-middleware: invalid URL.");return}let p=a.searchParams.get("file");p?(i(p.startsWith("file://")?p:n.resolve(t,p),e,o),s.end()):(s.statusCode=500,s.end('launch-editor-middleware: required query param "file" is missing.'))})},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/linux.js"(e){e.exports={atom:"atom",Brackets:"brackets","code-insiders":"code-insiders",code:"code",vscodium:"vscodium",codium:"codium",cursor:"cursor",trae:"trae",antigravity:"antigravity",emacs:"emacs",gvim:"gvim",idea:"idea","idea.sh":"idea",phpstorm:"phpstorm","phpstorm.sh":"phpstorm",pycharm:"pycharm","pycharm.sh":"pycharm",rubymine:"rubymine","rubymine.sh":"rubymine",sublime_text:"subl",vim:"vim",webstorm:"webstorm","webstorm.sh":"webstorm",goland:"goland","goland.sh":"goland",rider:"rider","rider.sh":"rider",zed:"zed"}},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/macos.js"(e){e.exports={"/Applications/Atom.app/Contents/MacOS/Atom":"atom","/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta","/Applications/Brackets.app/Contents/MacOS/Brackets":"brackets","/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text.app/Contents/MacOS/sublime_text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl","/Applications/Visual Studio Code.app/Contents/MacOS/Code":"code","/Applications/Visual Studio Code.app/Contents/MacOS/Electron":"code","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders":"code-insiders","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":"code-insiders","/Applications/VSCodium.app/Contents/MacOS/Electron":"codium","/Applications/Cursor.app/Contents/MacOS/Cursor":"cursor","/Applications/Trae.app/Contents/MacOS/Electron":"trae","/Applications/Antigravity.app/Contents/MacOS/Electron":"antigravity","/Applications/AppCode.app/Contents/MacOS/appcode":"/Applications/AppCode.app/Contents/MacOS/appcode","/Applications/CLion.app/Contents/MacOS/clion":"/Applications/CLion.app/Contents/MacOS/clion","/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea","/Applications/PhpStorm.app/Contents/MacOS/phpstorm":"/Applications/PhpStorm.app/Contents/MacOS/phpstorm","/Applications/PyCharm.app/Contents/MacOS/pycharm":"/Applications/PyCharm.app/Contents/MacOS/pycharm","/Applications/PyCharm CE.app/Contents/MacOS/pycharm":"/Applications/PyCharm CE.app/Contents/MacOS/pycharm","/Applications/RubyMine.app/Contents/MacOS/rubymine":"/Applications/RubyMine.app/Contents/MacOS/rubymine","/Applications/WebStorm.app/Contents/MacOS/webstorm":"/Applications/WebStorm.app/Contents/MacOS/webstorm","/Applications/MacVim.app/Contents/MacOS/MacVim":"mvim","/Applications/GoLand.app/Contents/MacOS/goland":"/Applications/GoLand.app/Contents/MacOS/goland","/Applications/Rider.app/Contents/MacOS/rider":"/Applications/Rider.app/Contents/MacOS/rider","/Applications/Zed.app/Contents/MacOS/zed":"zed"}},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/windows.js"(e){e.exports=["Brackets.exe","Code.exe","Code - Insiders.exe","VSCodium.exe","Cursor.exe","atom.exe","sublime_text.exe","notepad++.exe","clion.exe","clion64.exe","idea.exe","idea64.exe","phpstorm.exe","phpstorm64.exe","pycharm.exe","pycharm64.exe","rubymine.exe","rubymine64.exe","webstorm.exe","webstorm64.exe","goland.exe","goland64.exe","rider.exe","rider64.exe","Trae.exe","zed.exe","Antigravity.exe"]},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/get-args.js"(e,t,o){let n=o("path?37f5");e.exports=function(e,t,o,i=1){switch(n.basename(e).replace(/\.(exe|cmd|bat)$/i,"")){case"atom":case"Atom":case"Atom Beta":case"subl":case"sublime":case"sublime_text":case"wstorm":case"charm":case"zed":return[`${t}:${o}:${i}`];case"notepad++":return["-n"+o,"-c"+i,t];case"vim":case"mvim":return[`+call cursor(${o}, ${i})`,t];case"joe":case"gvim":return[`+${o}`,t];case"emacs":case"emacsclient":return[`+${o}:${i}`,t];case"rmate":case"mate":case"mine":return["--line",o,t];case"code":case"Code":case"code-insiders":case"Code - Insiders":case"codium":case"trae":case"antigravity":case"cursor":case"vscodium":case"VSCodium":return["-r","-g",`${t}:${o}:${i}`];case"appcode":case"clion":case"clion64":case"idea":case"idea64":case"phpstorm":case"phpstorm64":case"pycharm":case"pycharm64":case"rubymine":case"rubymine64":case"webstorm":case"webstorm64":case"goland":case"goland64":case"rider":case"rider64":return["--line",o,"--column",i,t]}return process.env.LAUNCH_EDITOR?[t,o,i]:[t]}},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/guess.js"(e,t,o){let n=o("path?37f5"),i=o("../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/index.js"),r=o("child_process"),s=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/macos.js"),a=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/linux.js"),p=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/windows.js");function l(e){let t=Object.keys(s),o=e.split("\n");for(let n=0;n<t.length;n++){let i=t[n];if(o.includes(i))return s[i];let r=i.replace("/Applications","");if(-1!==e.indexOf(r)){if(i!==s[i])return s[i];let e=o.find(e=>e.endsWith(r));if(void 0!==e)return e}}}function c(e){let t=e.split("\r\n");for(let e=0;e<t.length;e++){let o=t[e].trim(),i=n.win32.basename(o);if(-1!==p.indexOf(i))return o}}function d(e){let t=Object.keys(a);for(let o=0;o<t.length;o++){let n=t[o];if(-1!==e.indexOf(n))return a[n]}}e.exports=function(e){if(e)return i.parse(e);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||"code"];try{if("darwin"===process.platform){let e=r.execSync("ps x -o comm=",{stdio:["pipe","pipe","ignore"]}).toString(),t=l(e);if(void 0!==t)return[t]}else if("win32"===process.platform){let e=r.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',{stdio:["pipe","pipe","ignore"]}).toString(),t=c(e);if(void 0!==t)return[t]}else if("linux"===process.platform){let e=r.execSync("ps x --no-heading -o comm --sort=comm",{stdio:["pipe","pipe","ignore"]}).toString(),t=d(e);if(void 0!==t)return[t]}}catch(e){}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]},e.exports.getEditorFromMacProcesses=l,e.exports.getEditorFromWindowsProcesses=c,e.exports.getEditorFromLinuxProcesses=d},"../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/index.js"(e,t,o){let n=o("fs?cdbd"),i=o("os"),r=o("path?37f5"),s=o("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"),a=o("child_process"),p=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/guess.js"),l=o("../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/get-args.js"),c=/:(\d+)(:(\d+))?$/,d=null;e.exports=function(e,t,m){var u,h;let x,b,f=((u=e).startsWith("file://")&&(u=o("url?5f07").fileURLToPath(u)),x=u.replace(c,""),{fileName:x,lineNumber:(b=u.match(c))&&b[1],columnNumber:b&&b[3]}),{fileName:g}=f,{lineNumber:C,columnNumber:S}=f;if("win32"===process.platform&&r.resolve(g).startsWith("\\\\"))return m(g,"UNC paths are not supported on Windows to avoid security issues. See https://github.com/vitejs/launch-editor/tree/main/packages/launch-editor#unc-paths-on-windows for details.");if(!n.existsSync(g))return;"function"==typeof t&&(m=t,t=void 0),h=m,m=(e,t)=>{console.log(),console.log(s.red("Could not open "+r.basename(e)+" in the editor.")),t&&("."!==t[t.length-1]&&(t+="."),console.log(s.red("The editor process exited with an error: "+t))),console.log(),h&&h(e,t)};let[A,...y]=p(t);if(!A)return void m(g,null);if("linux"===process.platform&&g.startsWith("/mnt/")&&/Microsoft/i.test(i.release())&&(g=r.relative("",g)),C){let e=l(A,g,C,S);y.push.apply(y,e)}else y.push(g);if(d&&function(e){switch(e){case"vim":case"emacs":case"nano":return!0}return!1}(A)&&d.kill("SIGKILL"),"win32"===process.platform){let e=[A,...y.map(function(e){return e.replace(/([&|<>,;=^])/g,"^$1")})].map(function(e){return e.includes("^")?`^"${e}^"`:e.includes(" ")?`"${e}"`:e}).join(" ");d=a.exec(e,{stdio:"inherit",shell:!0})}else d=a.spawn(A,y,{stdio:"inherit"});d.on("exit",function(e){d=null,e&&m(g,"(code "+e+")")}),d.on("error",function(e){let{code:t,message:o}=e;"ENOENT"===t&&(o=`${o} ('${A}' command does not exist in 'PATH')`),m(g,o)})}},"../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(e){let t=process||{},o=t.argv||[],n=t.env||{},i=!(n.NO_COLOR||o.includes("--no-color"))&&(!!n.FORCE_COLOR||o.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==n.TERM||!!n.CI),r=(e,t,o=e)=>n=>{let i=""+n,r=i.indexOf(t,e.length);return~r?e+s(i,t,o,r)+t:e+i+t},s=(e,t,o,n)=>{let i="",r=0;do i+=e.substring(r,n)+o,r=n+t.length,n=e.indexOf(t,r);while(~n);return i+e.substring(r)},a=(e=i)=>{let t=e?r:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=a(),e.exports.createColors=a},"../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/index.js"(e,t,o){o("../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/quote.js"),t.parse=o("../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/parse.js")},"../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/parse.js"(e){for(var t="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",o=RegExp("^"+t+"$"),n="|&;()<> \\t",i=/^#$/,r="",s=0;s<4;s++)r+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+r);e.exports=function(e,s,p){var l=function(e,s,a){a||(a={});var p=a.escape||"\\",l=!0===a.splitUnquoted?" \n":"string"==typeof a.splitUnquoted?a.splitUnquoted:"",c=function(e,t){for(var o,n=t.lastIndex,i=[];o=t.exec(e);)i[i.length]=o,t.lastIndex===o.index&&(t.lastIndex+=1);return t.lastIndex=n,i}(e,RegExp(["("+t+")","("+("(\\"+p+"['\""+n+"]|[^\\s'\""+n)+'])+|"((\\\\"|[^"])*?)"|\'([^\']*?)\')+'].join("|"),"g"));if(0===c.length)return[];s||(s={});var d=!1;return c.map(function(t){var n,a=t[0];if(a&&!d){if(o.test(a))return{op:a};var c=!1,m=!1,u="",h=[],x=!1,b=null,f=!1;for(n=0;n<a.length;n++){var g=a.charAt(n);if(l&&"$"!==g&&O(),f=f||!c&&("*"===g||"?"===g),m)u+=g,m=!1;else if(c)g===c?c=!1:"'"==c?u+=g:g===p?(n+=1,'"'===(g=a.charAt(n))||g===p||"$"===g?u+=g:u+=p+g):"$"===g?u+=_():u+=g;else if('"'===g||"'"===g)c=g,x=!0;else if(o.test(g))return{op:a};else if(i.test(g)){d=!0;var C={comment:e.slice(t.index+n+1)};if(u.length)return[u,C];return[C]}else if(g===p)m=!0;else if("$"===g){var S=_();if(l)for(var A=0;A<S.length;A+=1){var y=S.charAt(A);0>l.indexOf(y)?(O(),u+=y):null===b?b=+(" "!==y&&" "!==y&&"\n"!==y):" "!==y&&" "!==y&&"\n"!==y&&(b+=1)}else u+=S}else u+=g}if(f)return{op:"glob",pattern:u};if(l){if(null!==b&&b>0){h[h.length]=u,u="";for(var v=1;v<b;v+=1)h[h.length]=""}return(""!==u||x&&0===h.length)&&(h[h.length]=u),h}return u}function _(){n+=1;var e,t,o,i,p,l=a.charAt(n);if("{"===l){if(n+=1,"}"===a.charAt(n))throw Error("Bad substitution: "+a.slice(n-2,n+1));var c=1;for(i=n;c>0&&i<a.length;)"{"===a.charAt(i)&&"$"===a.charAt(i-1)?c+=1:"}"===a.charAt(i)&&(c-=1),i+=1;if(0!==c)throw Error("Bad substitution: "+a.slice(n));i-=1,p=a.slice(n,i),n=i}else if(/[*@#?$!_-]/.test(l))p=l,n+=1;else{var d=a.slice(n);(i=d.match(/[^\w\d_]/))?(p=d.slice(0,i.index),n+=i.index-1):(p=d,n=a.length)}return e=s,t=p,(void 0===(o="function"==typeof e?e(t):e[t])&&""!=t?o="":void 0===o&&(o="$"),"object"==typeof o)?""+r+JSON.stringify(o)+r:""+o}function O(){if(null!==b){if(0===b)""!==u&&(h[h.length]=u,u="");else{h[h.length]=u,u="";for(var e=1;e<b;e+=1)h[h.length]=""}b=null}}}).reduce(function(e,t){return void 0===t||[].concat(t).forEach(function(t){e[e.length]=t}),e},[])}(e,s,p);return"function"!=typeof s?l:l.reduce(function(e,t){if("object"==typeof t)return e[e.length]=t,e;var o=t.split(RegExp("("+r+".*?"+r+")","g"));return 1===o.length?e[e.length]=o[0]:o.filter(Boolean).forEach(function(t){e[e.length]=a.test(t)?JSON.parse(t.split(r)[1]):t}),e},[])}},"../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/quote.js"(e){var t=["||","&&",";;","|&","<(","<<<",">>",">&","<&","&",";","(",")","|","<",">"],o=/[\n\r\u2028\u2029]/,n=/[\s#!"$&'():;<=>@\\^`|]/g;e.exports=function(e){return e.map(function(e){if(""===e)return"''";if(e&&"object"==typeof e){if("op"in e&&"glob"===e.op){if("string"!=typeof e.pattern)throw TypeError("glob token requires a string `pattern`");if(o.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(n,"\\$&")}if("op"in e&&"string"==typeof e.op){if(0>t.indexOf(e.op))throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,"\\$&")}if("comment"in e&&"string"==typeof e.comment){if(o.test(e.comment))throw TypeError("`comment` must not contain line terminators");return"#"+e.comment}throw TypeError("unrecognized object token shape")}return/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g,"$1\\$2")}).join(" ")}}}),e("../../node_modules/.pnpm/launch-editor-middleware@2.14.1/node_modules/launch-editor-middleware/index.js");
1
+ import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js"(e,t,n){let o=n("path?37f5"),i=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js");e.exports=(e,t,n)=>("function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),t=t||process.cwd(),function(s,a){let r;try{let e=s.url.startsWith("http")?s.url:`http://localhost${s.url}`;r=new URL(e)}catch(e){a.statusCode=500,a.end("launch-editor-middleware: invalid URL.");return}let c=r.searchParams.get("file");c?(i(c.startsWith("file://")?c:o.resolve(t,c),e,n),a.end()):(a.statusCode=500,a.end('launch-editor-middleware: required query param "file" is missing.'))})},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"(e){e.exports={atom:"atom",Brackets:"brackets","code-insiders":"code-insiders",code:"code",vscodium:"vscodium",codium:"codium",cursor:"cursor",trae:"trae",antigravity:"antigravity",emacs:"emacs",gvim:"gvim",idea:"idea","idea.sh":"idea",phpstorm:"phpstorm","phpstorm.sh":"phpstorm",pycharm:"pycharm","pycharm.sh":"pycharm",rubymine:"rubymine","rubymine.sh":"rubymine",sublime_text:"subl",vim:"vim",webstorm:"webstorm","webstorm.sh":"webstorm",goland:"goland","goland.sh":"goland",rider:"rider","rider.sh":"rider",zed:"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"(e){e.exports={"/Applications/Atom.app/Contents/MacOS/Atom":"atom","/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta","/Applications/Brackets.app/Contents/MacOS/Brackets":"brackets","/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text.app/Contents/MacOS/sublime_text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl","/Applications/Visual Studio Code.app/Contents/MacOS/Code":"code","/Applications/Visual Studio Code.app/Contents/MacOS/Electron":"code","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders":"code-insiders","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":"code-insiders","/Applications/VSCodium.app/Contents/MacOS/Electron":"codium","/Applications/Cursor.app/Contents/MacOS/Cursor":"cursor","/Applications/Trae.app/Contents/MacOS/Electron":"trae","/Applications/Antigravity.app/Contents/MacOS/Electron":"antigravity","/Applications/AppCode.app/Contents/MacOS/appcode":"/Applications/AppCode.app/Contents/MacOS/appcode","/Applications/CLion.app/Contents/MacOS/clion":"/Applications/CLion.app/Contents/MacOS/clion","/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea","/Applications/PhpStorm.app/Contents/MacOS/phpstorm":"/Applications/PhpStorm.app/Contents/MacOS/phpstorm","/Applications/PyCharm.app/Contents/MacOS/pycharm":"/Applications/PyCharm.app/Contents/MacOS/pycharm","/Applications/PyCharm CE.app/Contents/MacOS/pycharm":"/Applications/PyCharm CE.app/Contents/MacOS/pycharm","/Applications/RubyMine.app/Contents/MacOS/rubymine":"/Applications/RubyMine.app/Contents/MacOS/rubymine","/Applications/WebStorm.app/Contents/MacOS/webstorm":"/Applications/WebStorm.app/Contents/MacOS/webstorm","/Applications/MacVim.app/Contents/MacOS/MacVim":"mvim","/Applications/GoLand.app/Contents/MacOS/goland":"/Applications/GoLand.app/Contents/MacOS/goland","/Applications/Rider.app/Contents/MacOS/rider":"/Applications/Rider.app/Contents/MacOS/rider","/Applications/Zed.app/Contents/MacOS/zed":"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js"(e){e.exports=["Brackets.exe","Code.exe","Code - Insiders.exe","VSCodium.exe","Cursor.exe","atom.exe","sublime_text.exe","notepad++.exe","clion.exe","clion64.exe","idea.exe","idea64.exe","phpstorm.exe","phpstorm64.exe","pycharm.exe","pycharm64.exe","rubymine.exe","rubymine64.exe","webstorm.exe","webstorm64.exe","goland.exe","goland64.exe","rider.exe","rider64.exe","Trae.exe","zed.exe","Antigravity.exe"]},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"(e,t,n){let o=n("path?37f5");e.exports=function(e,t,n,i=1){switch(o.basename(e).replace(/\.(exe|cmd|bat)$/i,"")){case"atom":case"Atom":case"Atom Beta":case"subl":case"sublime":case"sublime_text":case"wstorm":case"charm":case"zed":return[`${t}:${n}:${i}`];case"notepad++":return["-n"+n,"-c"+i,t];case"vim":case"mvim":return[`+call cursor(${n}, ${i})`,t];case"joe":case"gvim":return[`+${n}`,t];case"emacs":case"emacsclient":return[`+${n}:${i}`,t];case"rmate":case"mate":case"mine":return["--line",n,t];case"code":case"Code":case"code-insiders":case"Code - Insiders":case"codium":case"trae":case"antigravity":case"cursor":case"vscodium":case"VSCodium":return["-r","-g",`${t}:${n}:${i}`];case"appcode":case"clion":case"clion64":case"idea":case"idea64":case"phpstorm":case"phpstorm64":case"pycharm":case"pycharm64":case"rubymine":case"rubymine64":case"webstorm":case"webstorm64":case"goland":case"goland64":case"rider":case"rider64":return["--line",n,"--column",i,t]}return process.env.LAUNCH_EDITOR?[t,n,i]:[t]}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"(e,t,n){let o=n("path?37f5"),i=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"),s=n("child_process"),a=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"),r=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"),c=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js");function p(e){let t=Object.keys(a),n=e.split("\n");for(let o=0;o<t.length;o++){let i=t[o];if(n.includes(i))return a[i];let s=i.replace("/Applications","");if(-1!==e.indexOf(s)){if(i!==a[i])return a[i];let e=n.find(e=>e.endsWith(s));if(void 0!==e)return e}}}function l(e){let t=e.split("\r\n");for(let e=0;e<t.length;e++){let n=t[e].trim(),i=o.win32.basename(n);if(-1!==c.indexOf(i))return n}}function d(e){let t=Object.keys(r);for(let n=0;n<t.length;n++){let o=t[n];if(-1!==e.indexOf(o))return r[o]}}e.exports=function(e){if(e)return i.parse(e);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||"code"];try{if("darwin"===process.platform){let e=s.execSync("ps x -o comm=",{stdio:["pipe","pipe","ignore"]}).toString(),t=p(e);if(void 0!==t)return[t]}else if("win32"===process.platform){let e=s.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',{stdio:["pipe","pipe","ignore"]}).toString(),t=l(e);if(void 0!==t)return[t]}else if("linux"===process.platform){let e=s.execSync("ps x --no-heading -o comm --sort=comm",{stdio:["pipe","pipe","ignore"]}).toString(),t=d(e);if(void 0!==t)return[t]}}catch(e){}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]},e.exports.getEditorFromMacProcesses=p,e.exports.getEditorFromWindowsProcesses=l,e.exports.getEditorFromLinuxProcesses=d},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js"(e,t,n){let o=n("fs?cdbd"),i=n("os"),s=n("path?37f5"),a=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"),r=n("child_process"),c=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"),p=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"),l=/:(\d+)(:(\d+))?$/,d=null;e.exports=function(e,t,m){var u,b;let f,h,x=((u=e).startsWith("file://")&&(u=n("url?5f07").fileURLToPath(u)),f=u.replace(l,""),{fileName:f,lineNumber:(h=u.match(l))&&h[1],columnNumber:h&&h[3]}),{fileName:g}=x,{lineNumber:C,columnNumber:S}=x;if("win32"===process.platform&&s.resolve(g).startsWith("\\\\"))return m(g,"UNC paths are not supported on Windows to avoid security issues. See https://github.com/vitejs/launch-editor/tree/main/packages/launch-editor#unc-paths-on-windows for details.");if(!o.existsSync(g))return;"function"==typeof t&&(m=t,t=void 0),b=m,m=(e,t)=>{console.log(),console.log(a.red("Could not open "+s.basename(e)+" in the editor.")),t&&("."!==t[t.length-1]&&(t+="."),console.log(a.red("The editor process exited with an error: "+t))),console.log(),b&&b(e,t)};let[v,...A]=c(t);if(!v)return void m(g,null);if("linux"===process.platform&&g.startsWith("/mnt/")&&/Microsoft/i.test(i.release())&&(g=s.relative("",g)),C){let e=p(v,g,C,S);A.push.apply(A,e)}else A.push(g);if(d&&function(e){switch(e){case"vim":case"emacs":case"nano":return!0}return!1}(v)&&d.kill("SIGKILL"),"win32"===process.platform){let e=[v,...A.map(function(e){return e.replace(/([&|<>,;=^])/g,"^$1")})].map(function(e){return e.includes("^")?`^"${e}^"`:e.includes(" ")?`"${e}"`:e}).join(" ");d=r.exec(e,{stdio:"inherit",shell:!0})}else d=r.spawn(v,A,{stdio:"inherit"});d.on("exit",function(e){d=null,e&&m(g,"(code "+e+")")}),d.on("error",function(e){let{code:t,message:n}=e;"ENOENT"===t&&(n=`${n} ('${v}' command does not exist in 'PATH')`),m(g,n)})}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"(e){let t=process||{},n=t.argv||[],o=t.env||{},i=!(o.NO_COLOR||n.includes("--no-color"))&&(!!o.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==o.TERM||!!o.CI),s=(e,t,n=e)=>o=>{let i=""+o,s=i.indexOf(t,e.length);return~s?e+a(i,t,n,s)+t:e+i+t},a=(e,t,n,o)=>{let i="",s=0;do i+=e.substring(s,o)+n,s=o+t.length,o=e.indexOf(t,s);while(~o);return i+e.substring(s)},r=(e=i)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=r(),e.exports.createColors=r},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"(e,t,n){n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"),t.parse=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js")},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js"(e){for(var t="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",n=RegExp("^"+t+"$"),o="|&;()<> \\t",i=/^#$/,s="",a=0;a<4;a++)s+=(0x100000000*Math.random()).toString(16);var r=RegExp("^"+s);e.exports=function(e,a,c){var p=function(e,a,r){r||(r={});var c=r.escape||"\\",p=!0===r.splitUnquoted?" \n":"string"==typeof r.splitUnquoted?r.splitUnquoted:"",l=function(e,t){for(var n,o=t.lastIndex,i=[];n=t.exec(e);)i[i.length]=n,t.lastIndex===n.index&&(t.lastIndex+=1);return t.lastIndex=o,i}(e,RegExp(["("+t+")","("+("(\\"+c+"['\""+o+"]|[^\\s'\""+o)+'])+|"((\\\\"|[^"])*?)"|\'([^\']*?)\')+'].join("|"),"g"));if(0===l.length)return[];a||(a={});var d=!1;return l.map(function(t){var o,r=t[0];if(r&&!d){if(n.test(r))return{op:r};var l=!1,m=!1,u="",b=[],f=!1,h=null,x=!1;for(o=0;o<r.length;o++){var g=r.charAt(o);if(p&&"$"!==g&&O(),x=x||!l&&("*"===g||"?"===g),m)u+=g,m=!1;else if(l)g===l?l=!1:"'"==l?u+=g:g===c?(o+=1,'"'===(g=r.charAt(o))||g===c||"$"===g?u+=g:u+=c+g):"$"===g?u+=_():u+=g;else if('"'===g||"'"===g)l=g,f=!0;else if(n.test(g))return{op:r};else if(i.test(g)){d=!0;var C={comment:e.slice(t.index+o+1)};if(u.length)return[u,C];return[C]}else if(g===c)m=!0;else if("$"===g){var S=_();if(p)for(var v=0;v<S.length;v+=1){var A=S.charAt(v);0>p.indexOf(A)?(O(),u+=A):null===h?h=+(" "!==A&&" "!==A&&"\n"!==A):" "!==A&&" "!==A&&"\n"!==A&&(h+=1)}else u+=S}else u+=g}if(x)return{op:"glob",pattern:u};if(p){if(null!==h&&h>0){b[b.length]=u,u="";for(var y=1;y<h;y+=1)b[b.length]=""}return(""!==u||f&&0===b.length)&&(b[b.length]=u),b}return u}function _(){o+=1;var e,t,n,i,c,p=r.charAt(o);if("{"===p){if(o+=1,"}"===r.charAt(o))throw Error("Bad substitution: "+r.slice(o-2,o+1));var l=1;for(i=o;l>0&&i<r.length;)"{"===r.charAt(i)&&"$"===r.charAt(i-1)?l+=1:"}"===r.charAt(i)&&(l-=1),i+=1;if(0!==l)throw Error("Bad substitution: "+r.slice(o));i-=1,c=r.slice(o,i),o=i}else if(/[*@#?$!_-]/.test(p))c=p,o+=1;else{var d=r.slice(o);(i=d.match(/[^\w\d_]/))?(c=d.slice(0,i.index),o+=i.index-1):(c=d,o=r.length)}return e=a,t=c,(void 0===(n="function"==typeof e?e(t):e[t])&&""!=t?n="":void 0===n&&(n="$"),"object"==typeof n)?""+s+JSON.stringify(n)+s:""+n}function O(){if(null!==h){if(0===h)""!==u&&(b[b.length]=u,u="");else{b[b.length]=u,u="";for(var e=1;e<h;e+=1)b[b.length]=""}h=null}}}).reduce(function(e,t){return void 0===t||[].concat(t).forEach(function(t){e[e.length]=t}),e},[])}(e,a,c);return"function"!=typeof a?p:p.reduce(function(e,t){if("object"==typeof t)return e[e.length]=t,e;var n=t.split(RegExp("("+s+".*?"+s+")","g"));return 1===n.length?e[e.length]=n[0]:n.filter(Boolean).forEach(function(t){e[e.length]=r.test(t)?JSON.parse(t.split(s)[1]):t}),e},[])}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"(e){var t=["||","&&",";;","|&","<(","<<<",">>",">&","<&","&",";","(",")","|","<",">"],n=/[\n\r\u2028\u2029]/,o=/[\s#!"$&'():;<=>@\\^`|]/g;e.exports=function(e){return e.map(function(e){if(""===e)return"''";if(e&&"object"==typeof e){if("op"in e&&"glob"===e.op){if("string"!=typeof e.pattern)throw TypeError("glob token requires a string `pattern`");if(n.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(o,"\\$&")}if("op"in e&&"string"==typeof e.op){if(0>t.indexOf(e.op))throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,"\\$&")}if("comment"in e&&"string"==typeof e.comment){if(n.test(e.comment))throw TypeError("`comment` must not contain line terminators");return"#"+e.comment}throw TypeError("unrecognized object token shape")}return/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g,"$1\\$2")}).join(" ")}}}),e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js");