@compass-labs/api-sdk 2.2.95 → 2.2.96

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.
Files changed (79) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/chainmarketinfo.d.ts +5 -1
  4. package/dist/commonjs/models/components/chainmarketinfo.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/chainmarketinfo.js +2 -0
  6. package/dist/commonjs/models/components/chainmarketinfo.js.map +1 -1
  7. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +25 -3
  8. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/loopedpositioncurrentstate.js +8 -0
  10. package/dist/commonjs/models/components/loopedpositioncurrentstate.js.map +1 -1
  11. package/dist/commonjs/models/components/morpholendingmarket.d.ts +8 -0
  12. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/morpholendingmarket.js +4 -0
  14. package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -1
  15. package/dist/commonjs/models/components/reserveinfo.d.ts +5 -1
  16. package/dist/commonjs/models/components/reserveinfo.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/reserveinfo.js +2 -0
  18. package/dist/commonjs/models/components/reserveinfo.js.map +1 -1
  19. package/dist/esm/lib/config.d.ts +2 -2
  20. package/dist/esm/lib/config.js +2 -2
  21. package/dist/esm/models/components/chainmarketinfo.d.ts +5 -1
  22. package/dist/esm/models/components/chainmarketinfo.d.ts.map +1 -1
  23. package/dist/esm/models/components/chainmarketinfo.js +2 -0
  24. package/dist/esm/models/components/chainmarketinfo.js.map +1 -1
  25. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +25 -3
  26. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts.map +1 -1
  27. package/dist/esm/models/components/loopedpositioncurrentstate.js +8 -0
  28. package/dist/esm/models/components/loopedpositioncurrentstate.js.map +1 -1
  29. package/dist/esm/models/components/morpholendingmarket.d.ts +8 -0
  30. package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -1
  31. package/dist/esm/models/components/morpholendingmarket.js +4 -0
  32. package/dist/esm/models/components/morpholendingmarket.js.map +1 -1
  33. package/dist/esm/models/components/reserveinfo.d.ts +5 -1
  34. package/dist/esm/models/components/reserveinfo.d.ts.map +1 -1
  35. package/dist/esm/models/components/reserveinfo.js +2 -0
  36. package/dist/esm/models/components/reserveinfo.js.map +1 -1
  37. package/docs/models/components/chainmarketinfo.md +15 -14
  38. package/docs/models/components/loopedpositioncurrentstate.md +17 -13
  39. package/docs/models/components/morpholendingmarket.md +23 -21
  40. package/docs/models/components/reserveinfo.md +14 -13
  41. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
  42. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
  43. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  44. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
  45. package/examples/node_modules/tsx/dist/cli.cjs +2 -2
  46. package/examples/node_modules/tsx/dist/cli.mjs +2 -2
  47. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  48. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  49. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  50. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  51. package/examples/node_modules/tsx/dist/index-CVGQLgGk.mjs +14 -0
  52. package/examples/node_modules/tsx/dist/index-LWEOpzQe.cjs +14 -0
  53. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  54. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  55. package/examples/node_modules/tsx/dist/package-BUjYdoyo.mjs +1 -0
  56. package/examples/node_modules/tsx/dist/package-BqWb5wzm.cjs +1 -0
  57. package/examples/node_modules/tsx/dist/preflight.cjs +1 -1
  58. package/examples/node_modules/tsx/dist/preflight.mjs +1 -1
  59. package/examples/node_modules/tsx/dist/{register-HWZIKnmC.mjs → register-A6mos5aG.mjs} +1 -1
  60. package/examples/node_modules/tsx/dist/{register-zZ7SWseA.mjs → register-B_kKY3fL.mjs} +1 -1
  61. package/examples/node_modules/tsx/dist/{register-BoI6-WNn.cjs → register-CptX03bE.cjs} +1 -1
  62. package/examples/node_modules/tsx/dist/{register-DlUHyDDv.cjs → register-DQV4TtD3.cjs} +2 -2
  63. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  64. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  65. package/examples/node_modules/tsx/dist/{require-awuW45Q3.mjs → require-Cbdk4ZrE.mjs} +1 -1
  66. package/examples/node_modules/tsx/dist/{require-C7ivLNeu.cjs → require-bPEuCWoO.cjs} +1 -1
  67. package/examples/node_modules/tsx/package.json +1 -1
  68. package/examples/package-lock.json +3 -3
  69. package/openapi_prepped_for_speakeasy.json +101 -5
  70. package/package.json +1 -1
  71. package/src/lib/config.ts +2 -2
  72. package/src/models/components/chainmarketinfo.ts +7 -1
  73. package/src/models/components/loopedpositioncurrentstate.ts +33 -3
  74. package/src/models/components/morpholendingmarket.ts +12 -0
  75. package/src/models/components/reserveinfo.ts +7 -1
  76. package/examples/node_modules/tsx/dist/index-BN2t1Mfo.cjs +0 -14
  77. package/examples/node_modules/tsx/dist/index-CQhDiIsg.mjs +0 -14
  78. package/examples/node_modules/tsx/dist/package-CiRlP2hu.mjs +0 -1
  79. package/examples/node_modules/tsx/dist/package-DYbiKo1t.cjs +0 -1
@@ -29,16 +29,17 @@ let value: ReserveInfo = {
29
29
 
30
30
  ## Fields
31
31
 
32
- | Field | Type | Required | Description |
33
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
34
- | `address` | *string* | :heavy_check_mark: | Underlying token (reserve) contract address on this chain. This is Aave's canonical per-reserve identifier. |
35
- | `aTokenAddress` | *string* | :heavy_check_mark: | Aave aToken contract address on this chain. This is the interest-bearing token that represents the supply position. |
36
- | `supplyApy` | *string* | :heavy_check_mark: | Variable rate APY for deposits, in percentage (e.g., 4.5 means 4.5%). |
37
- | `borrowApy` | *string* | :heavy_check_mark: | Variable rate APY for loans, in percentage (e.g., 6.2 means 6.2%). |
38
- | `supplyApyAvg` | *string* | :heavy_check_mark: | Variable rate APY for deposits averaged over the `days` window in the request (default 30 days), in percentage. Computed the same way as the v1 `/v1/aave/avg_rate` endpoint. |
39
- | `borrowApyAvg` | *string* | :heavy_check_mark: | Variable rate APY for loans averaged over the `days` window in the request (default 30 days), in percentage. Computed the same way as the v1 `/v1/aave/avg_rate` endpoint. |
40
- | `totalBorrowed` | *string* | :heavy_check_mark: | Total amount currently borrowed from this market, in token units (e.g., 1234567.89 USDC). |
41
- | `availableLiquidity` | *string* | :heavy_check_mark: | Amount of tokens available to borrow, in token units. Equals total supplied minus total borrowed. |
42
- | `utilizationRate` | *string* | :heavy_check_mark: | Percentage of supplied tokens that are currently borrowed (e.g., 85.0 means 85%). |
43
- | `ltv` | *string* | :heavy_check_mark: | Maximum loan-to-value when this reserve is used as collateral, in percentage (e.g., 80.0 means 80%). This is the highest LTV you can borrow at against this asset; 0 means it cannot be used as collateral. |
44
- | `liquidationThreshold` | *string* | :heavy_check_mark: | Liquidation threshold when this reserve is used as collateral, in percentage (e.g., 82.5 means 82.5%). A position whose LTV crosses this can be liquidated; 0 means the asset cannot be used as collateral. |
32
+ | Field | Type | Required | Description |
33
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
34
+ | `address` | *string* | :heavy_check_mark: | Underlying token (reserve) contract address on this chain. This is Aave's canonical per-reserve identifier. |
35
+ | `aTokenAddress` | *string* | :heavy_check_mark: | Aave aToken contract address on this chain. This is the interest-bearing token that represents the supply position. |
36
+ | `supplyApy` | *string* | :heavy_check_mark: | Variable rate APY for deposits, in percentage (e.g., 4.5 means 4.5%). This is LENDING interest only — what borrowers pay. For a staked or wrapped asset it is not the whole yield; add `intrinsic_apy`. |
37
+ | `intrinsicApy` | *string* | :heavy_minus_sign: | What holding this asset earns OUTSIDE the lending pool, in percentage: staking rewards or vault yield accruing inside the token's own exchange rate, which the pool neither pays nor observes. A trailing 7-day measurement. ABSENT when no measurement is available (the route omits null fields) — absent does not mean zero. For an asset that plainly earns beyond lending (wstETH, sUSDe, wstHYPE) `supply_apy` alone understates what it earns by percentage points, since almost nobody borrows these and their supply rate rounds to nothing: Hyperlend's wstHYPE reserve pays 0.00006% against a ~2.5% staking yield. Treat an absent value as unknown rather than as the asset earning nothing beyond `supply_apy`. |
38
+ | `borrowApy` | *string* | :heavy_check_mark: | Variable rate APY for loans, in percentage (e.g., 6.2 means 6.2%). |
39
+ | `supplyApyAvg` | *string* | :heavy_check_mark: | Variable rate APY for deposits averaged over the `days` window in the request (default 30 days), in percentage. Computed the same way as the v1 `/v1/aave/avg_rate` endpoint. |
40
+ | `borrowApyAvg` | *string* | :heavy_check_mark: | Variable rate APY for loans averaged over the `days` window in the request (default 30 days), in percentage. Computed the same way as the v1 `/v1/aave/avg_rate` endpoint. |
41
+ | `totalBorrowed` | *string* | :heavy_check_mark: | Total amount currently borrowed from this market, in token units (e.g., 1234567.89 USDC). |
42
+ | `availableLiquidity` | *string* | :heavy_check_mark: | Amount of tokens available to borrow, in token units. Equals total supplied minus total borrowed. |
43
+ | `utilizationRate` | *string* | :heavy_check_mark: | Percentage of supplied tokens that are currently borrowed (e.g., 85.0 means 85%). |
44
+ | `ltv` | *string* | :heavy_check_mark: | Maximum loan-to-value when this reserve is used as collateral, in percentage (e.g., 80.0 means 80%). This is the highest LTV you can borrow at against this asset; 0 means it cannot be used as collateral. |
45
+ | `liquidationThreshold` | *string* | :heavy_check_mark: | Liquidation threshold when this reserve is used as collateral, in percentage (e.g., 82.5 means 82.5%). A position whose LTV crosses this can be liquidated; 0 means the asset cannot be used as collateral. |
@@ -1 +1 @@
1
- "use strict";require("../../get-pipe-path-D4YM6rQt.cjs");var r=require("../../register-BoI6-WNn.cjs"),e=require("../../require-C7ivLNeu.cjs");require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../../index-BN2t1Mfo.cjs"),require("esbuild"),require("node:crypto"),require("../../node-features-CEjg7cMX.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../../index-BWFBUo6r.cjs"),exports.register=r.register,exports.require=e.tsxRequire;
1
+ "use strict";require("../../get-pipe-path-D4YM6rQt.cjs");var r=require("../../register-CptX03bE.cjs"),e=require("../../require-bPEuCWoO.cjs");require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../../index-LWEOpzQe.cjs"),require("esbuild"),require("node:crypto"),require("../../node-features-CEjg7cMX.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../../index-BWFBUo6r.cjs"),exports.register=r.register,exports.require=e.tsxRequire;
@@ -1 +1 @@
1
- import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n}from"../../register-HWZIKnmC.mjs";import{t as w}from"../../require-awuW45Q3.mjs";import"module";import"node:path";import"../../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../../index-CQhDiIsg.mjs";import"esbuild";import"node:crypto";import"../../node-features-JeyyvQz6.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../../index-gbaejti9.mjs";export{n as register,w as require};
1
+ import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n}from"../../register-A6mos5aG.mjs";import{t as w}from"../../require-Cbdk4ZrE.mjs";import"module";import"node:path";import"../../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../../index-CVGQLgGk.mjs";import"esbuild";import"node:crypto";import"../../node-features-JeyyvQz6.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../../index-gbaejti9.mjs";export{n as register,w as require};
@@ -1 +1 @@
1
- "use strict";var r=require("../register-BoI6-WNn.cjs");require("../get-pipe-path-D4YM6rQt.cjs"),require("module"),require("node:path"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../index-BN2t1Mfo.cjs"),require("esbuild"),require("node:crypto"),require("../node-features-CEjg7cMX.cjs"),require("../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../index-BWFBUo6r.cjs"),r.register();
1
+ "use strict";var r=require("../register-CptX03bE.cjs");require("../get-pipe-path-D4YM6rQt.cjs"),require("module"),require("node:path"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../index-LWEOpzQe.cjs"),require("esbuild"),require("node:crypto"),require("../node-features-CEjg7cMX.cjs"),require("../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../index-BWFBUo6r.cjs"),r.register();
@@ -1 +1 @@
1
- import{r}from"../register-HWZIKnmC.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"module";import"node:path";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../index-CQhDiIsg.mjs";import"esbuild";import"node:crypto";import"../node-features-JeyyvQz6.mjs";import"../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../index-gbaejti9.mjs";r();
1
+ import{r}from"../register-A6mos5aG.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"module";import"node:path";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../index-CVGQLgGk.mjs";import"esbuild";import"node:crypto";import"../node-features-JeyyvQz6.mjs";import"../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../index-gbaejti9.mjs";r();
@@ -1,4 +1,4 @@
1
- "use strict";var Tn=Object.create;var ht=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var On=Object.getOwnPropertyNames;var Nn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty;var a=(t,e)=>ht(t,"name",{value:e,configurable:!0});var Hn=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of On(e))!Pn.call(t,n)&&n!==u&&ht(t,n,{get:()=>e[n],enumerable:!(r=xn(e,n))||r.enumerable});return t};var Ln=(t,e,u)=>(u=t!=null?Tn(Nn(t)):{},Hn(e||!t||!t.__esModule?ht(u,"default",{value:t,enumerable:!0}):u,t));var dt=require("node:os"),In=require("tty"),kn=require("./package-DYbiKo1t.cjs"),he=require("./get-pipe-path-D4YM6rQt.cjs"),Ru=require("node:url"),Mn=require("child_process"),q=require("path"),De=require("fs"),ke=require("./node-features-CEjg7cMX.cjs"),Me=require("node:path"),We=require("node:fs"),Wn=require("events"),_e=require("util"),Gn=require("stream"),bu=require("os"),ne=require("./index-BWFBUo6r.cjs"),jn=require("node:net"),Un=require("./temporary-directory-B83uKxJF.cjs");require("module");const Kn="known-flag",Vn="unknown-flag",zn="argument",{stringify:Ae}=JSON,Yn=/\B([A-Z])/g,qn=a(t=>t.replace(Yn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Xn}=Object.prototype,ye=a((t,e)=>Xn.call(t,e),"w$2"),Qn=a(t=>Array.isArray(t),"L$2"),vu=a(t=>typeof t=="function"?[t,!1]:Qn(t)?[t[0],!0]:vu(t.type),"b$2"),Zn=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),Jn=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),es=/[\s.:=]/,ts=a(t=>{const e=`Flag name ${Ae(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(es);if(u)throw new Error(`${e} cannot contain ${Ae(u?.[0])}`)},"B"),us=a(t=>{const e={},u=a((r,n)=>{if(ye(e,r))throw new Error(`Duplicate flags named ${Ae(r)}`);e[r]=n},"r");for(const r in t){if(!ye(t,r))continue;ts(r);const n=t[r],s=[[],...vu(n),n];u(r,s);const i=qn(r);if(r!==i&&u(i,s),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${Ae(o)} for flag ${Ae(r)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,s)}}return e},"K$1"),rs=a((t,e)=>{const u={};for(const r in t){if(!ye(t,r))continue;const[n,,s,i]=e[r];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[r]=o}else u[r]=s?n:n.pop()}return u},"_$2"),Ge="--",ns=/[.:=]/,ss=/^-{1,2}\w/,is=a(t=>{if(!ss.test(t))return;const e=!t.startsWith(Ge);let u=t.slice(e?1:2),r;const n=u.match(ns);if(n){const{index:s}=n;r=u.slice(s+1),u=u.slice(0,s)}return[u,r,e]},"N"),os=a((t,{onFlag:e,onArgument:u})=>{let r;const n=a((s,i)=>{if(typeof r!="function")return!0;r(s,i),r=void 0},"o");for(let s=0;s<t.length;s+=1){const i=t[s];if(i===Ge){n();const D=t.slice(s+1);u?.(D,[s],!0);break}const o=is(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;r=e(D[h],c?l:void 0,[s,h+1,c])}else r=e(D,l,[s])}else n(i,[s])&&u?.([i],[s])}n()},"$$1"),Ds=a((t,e)=>{for(const[u,r,n]of e.reverse()){if(r){const s=t[u];let i=s.slice(0,r);if(n||(i+=s.slice(r+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),Su=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const r=[],n=us(t),s={},i=[];return i[Ge]=[],os(e,{onFlag(o,D,l){const f=ye(n,o);if(!u?.(f?Kn:Vn,o,D)){if(f){const[h,c]=n[o],C=Zn(c,D),F=a((m,R)=>{r.push(l),R&&r.push(R),h.push(Jn(c,m||""))},"p");return C===void 0?F:F(C)}ye(s,o)||(s[o]=[]),s[o].push(D===void 0?!0:D),r.push(l)}},onArgument(o,D,l){u?.(zn,e[D[0]])||(i.push(...o),l?(i[Ge]=o,e.splice(D[0])):r.push(D))}}),Ds(e,r),{flags:rs(t,n),unknownFlags:s,_:i}},"U$2");var as=Object.create,je=Object.defineProperty,ls=Object.defineProperties,cs=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,ds=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Tu=a((t,e,u)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),Ue=a((t,e)=>{for(var u in e||(e={}))$u.call(e,u)&&Tu(t,u,e[u]);if(Bu)for(var u of Bu(e))Es.call(e,u)&&Tu(t,u,e[u]);return t},"p"),Et=a((t,e)=>ls(t,fs(e)),"c"),ps=a(t=>je(t,"__esModule",{value:!0}),"nD"),Cs=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),Fs=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),gs=a((t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hs(e))!$u.call(t,n)&&n!=="default"&&je(t,n,{get:a(()=>e[n],"get"),enumerable:!(r=cs(e,n))||r.enumerable});return t},"oD"),ms=a((t,e)=>gs(ps(je(t!=null?as(ds(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=Cs(()=>{}),_s=Fs((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var As=a(t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}},"v");V(),V(),V(),V(),V();function ys({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(ys,"w$1");function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ys(),"")}a(xu,"d$1"),V();function ws(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(ws,"y$1");var Rs=ms(_s());function ae(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,Rs.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=ws(r)?2:1)}return e}a(ae,"g");var Ou=a(t=>Math.max(...t.split(`
1
+ "use strict";var Tn=Object.create;var ht=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var On=Object.getOwnPropertyNames;var Nn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty;var a=(t,e)=>ht(t,"name",{value:e,configurable:!0});var Hn=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of On(e))!Pn.call(t,n)&&n!==u&&ht(t,n,{get:()=>e[n],enumerable:!(r=xn(e,n))||r.enumerable});return t};var Ln=(t,e,u)=>(u=t!=null?Tn(Nn(t)):{},Hn(e||!t||!t.__esModule?ht(u,"default",{value:t,enumerable:!0}):u,t));var dt=require("node:os"),In=require("tty"),kn=require("./package-BqWb5wzm.cjs"),he=require("./get-pipe-path-D4YM6rQt.cjs"),Ru=require("node:url"),Mn=require("child_process"),q=require("path"),De=require("fs"),ke=require("./node-features-CEjg7cMX.cjs"),Me=require("node:path"),We=require("node:fs"),Wn=require("events"),_e=require("util"),Gn=require("stream"),bu=require("os"),ne=require("./index-BWFBUo6r.cjs"),jn=require("node:net"),Un=require("./temporary-directory-B83uKxJF.cjs");require("module");const Kn="known-flag",Vn="unknown-flag",zn="argument",{stringify:Ae}=JSON,Yn=/\B([A-Z])/g,qn=a(t=>t.replace(Yn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Xn}=Object.prototype,ye=a((t,e)=>Xn.call(t,e),"w$2"),Qn=a(t=>Array.isArray(t),"L$2"),vu=a(t=>typeof t=="function"?[t,!1]:Qn(t)?[t[0],!0]:vu(t.type),"b$2"),Zn=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),Jn=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),es=/[\s.:=]/,ts=a(t=>{const e=`Flag name ${Ae(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(es);if(u)throw new Error(`${e} cannot contain ${Ae(u?.[0])}`)},"B"),us=a(t=>{const e={},u=a((r,n)=>{if(ye(e,r))throw new Error(`Duplicate flags named ${Ae(r)}`);e[r]=n},"r");for(const r in t){if(!ye(t,r))continue;ts(r);const n=t[r],s=[[],...vu(n),n];u(r,s);const i=qn(r);if(r!==i&&u(i,s),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${Ae(o)} for flag ${Ae(r)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,s)}}return e},"K$1"),rs=a((t,e)=>{const u={};for(const r in t){if(!ye(t,r))continue;const[n,,s,i]=e[r];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[r]=o}else u[r]=s?n:n.pop()}return u},"_$2"),Ge="--",ns=/[.:=]/,ss=/^-{1,2}\w/,is=a(t=>{if(!ss.test(t))return;const e=!t.startsWith(Ge);let u=t.slice(e?1:2),r;const n=u.match(ns);if(n){const{index:s}=n;r=u.slice(s+1),u=u.slice(0,s)}return[u,r,e]},"N"),os=a((t,{onFlag:e,onArgument:u})=>{let r;const n=a((s,i)=>{if(typeof r!="function")return!0;r(s,i),r=void 0},"o");for(let s=0;s<t.length;s+=1){const i=t[s];if(i===Ge){n();const D=t.slice(s+1);u?.(D,[s],!0);break}const o=is(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;r=e(D[h],c?l:void 0,[s,h+1,c])}else r=e(D,l,[s])}else n(i,[s])&&u?.([i],[s])}n()},"$$1"),Ds=a((t,e)=>{for(const[u,r,n]of e.reverse()){if(r){const s=t[u];let i=s.slice(0,r);if(n||(i+=s.slice(r+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),Su=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const r=[],n=us(t),s={},i=[];return i[Ge]=[],os(e,{onFlag(o,D,l){const f=ye(n,o);if(!u?.(f?Kn:Vn,o,D)){if(f){const[h,c]=n[o],C=Zn(c,D),F=a((m,R)=>{r.push(l),R&&r.push(R),h.push(Jn(c,m||""))},"p");return C===void 0?F:F(C)}ye(s,o)||(s[o]=[]),s[o].push(D===void 0?!0:D),r.push(l)}},onArgument(o,D,l){u?.(zn,e[D[0]])||(i.push(...o),l?(i[Ge]=o,e.splice(D[0])):r.push(D))}}),Ds(e,r),{flags:rs(t,n),unknownFlags:s,_:i}},"U$2");var as=Object.create,je=Object.defineProperty,ls=Object.defineProperties,cs=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,ds=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Tu=a((t,e,u)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),Ue=a((t,e)=>{for(var u in e||(e={}))$u.call(e,u)&&Tu(t,u,e[u]);if(Bu)for(var u of Bu(e))Es.call(e,u)&&Tu(t,u,e[u]);return t},"p"),Et=a((t,e)=>ls(t,fs(e)),"c"),ps=a(t=>je(t,"__esModule",{value:!0}),"nD"),Cs=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),Fs=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),gs=a((t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hs(e))!$u.call(t,n)&&n!=="default"&&je(t,n,{get:a(()=>e[n],"get"),enumerable:!(r=cs(e,n))||r.enumerable});return t},"oD"),ms=a((t,e)=>gs(ps(je(t!=null?as(ds(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=Cs(()=>{}),_s=Fs((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var As=a(t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}},"v");V(),V(),V(),V(),V();function ys({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(ys,"w$1");function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ys(),"")}a(xu,"d$1"),V();function ws(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(ws,"y$1");var Rs=ms(_s());function ae(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,Rs.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=ws(r)?2:1)}return e}a(ae,"g");var Ou=a(t=>Math.max(...t.split(`
2
2
  `).map(ae)),"b$1"),bs=a(t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let i=Ou(u[s]);i>e[s]&&(e[s]=i)}}return e},"k$1");V();var Nu=/^\d+%$/,Pu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},vs=a((t,e)=>{var u;let r=[];for(let n=0;n<t.length;n+=1){let s=(u=e[n])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Nu.test(s)){r.push(Et(Ue({},Pu),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let i=Et(Ue(Ue({},Pu),s),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,r.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r},"sD");function Ss(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let D=Math.min(20,u.contentWidth);u.width=D,u.autoOverflow=u.contentWidth-D}if(typeof r=="string"&&Nu.test(r)){let D=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*D)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,i=s+n;if(i>=e){let D=i-e,l=Math.ceil(u.paddingLeft/n*D),f=D-l;u.paddingLeft-=l,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let o=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,o),s)}}a(Ss,"aD");var Hu=a(()=>Object.assign([],{columns:0}),"G$1");function Bs(t,e){let u=[Hu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=Hu(),u.push(r)),r.push(n),r.columns+=s}for(let n of u){let s=n.reduce((c,C)=>c+C.width+C.horizontalPadding,0),i=e-s;if(i===0)continue;let o=n.filter(c=>"autoOverflow"in c),D=o.filter(c=>c.autoOverflow>0),l=D.reduce((c,C)=>c+C.autoOverflow,0),f=Math.min(l,i);for(let c of D){let C=Math.floor(c.autoOverflow/l*f);c.width+=C,i-=C}let h=Math.floor(i/o.length);for(let c=0;c<o.length;c+=1){let C=o[c];c===o.length-1?C.width+=i:C.width+=h,i-=h}}return u}a(Bs,"lD");function $s(t,e,u){let r=vs(u,e);return Ss(r,t),Bs(r,t)}a($s,"Z$1"),V(),V(),V();var pt=10,Lu=a((t=0)=>e=>`\x1B[${e+t}m`,"U$1"),Iu=a((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"V$1"),ku=a((t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`,"Y");function Ts(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,r]of Object.entries(e)){for(let[n,s]of Object.entries(r))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Lu(),e.color.ansi256=Iu(),e.color.ansi16m=ku(),e.bgColor.ansi=Lu(pt),e.bgColor.ansi256=Iu(pt),e.bgColor.ansi16m=ku(pt),Object.defineProperties(e,{rgbToAnsi256:{value:a((u,r,n)=>u===r&&r===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>e.rgbToAnsi256(...e.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let r,n,s;if(u>=232)r=((u-232)*10+8)/255,n=r,s=r;else{u-=16;let D=u%36;r=Math.floor(u/36)/5,n=Math.floor(D/6)/5,s=D%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},"value"),enumerable:!1},rgbToAnsi:{value:a((u,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,r,n)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),"value"),enumerable:!1}}),e}a(Ts,"AD");var xs=Ts(),Os=xs,Ke=new Set(["\x1B","\x9B"]),Ns=39,Ct="\x07",Mu="[",Ps="]",Wu="m",Ft=`${Ps}8;;`,Gu=a(t=>`${Ke.values().next().value}${Mu}${t}${Wu}`,"J$1"),ju=a(t=>`${Ke.values().next().value}${Ft}${t}${Ct}`,"Q"),Hs=a(t=>t.split(" ").map(e=>ae(e)),"hD"),gt=a((t,e,u)=>{let r=[...e],n=!1,s=!1,i=ae(xu(t[t.length-1]));for(let[o,D]of r.entries()){let l=ae(D);if(i+l<=u?t[t.length-1]+=D:(t.push(D),i=0),Ke.has(D)&&(n=!0,s=r.slice(o+1).join("").startsWith(Ft)),n){s?D===Ct&&(n=!1,s=!1):D===Wu&&(n=!1);continue}i+=l,i===u&&o<r.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"S$1"),Ls=a(t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(ae(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},"cD"),Is=a((t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let r="",n,s,i=Hs(t),o=[""];for(let[l,f]of t.split(" ").entries()){u.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let h=ae(o[o.length-1]);if(l!==0&&(h>=e&&(u.wordWrap===!1||u.trim===!1)&&(o.push(""),h=0),(h>0||u.trim===!1)&&(o[o.length-1]+=" ",h++)),u.hard&&i[l]>e){let c=e-h,C=1+Math.floor((i[l]-c-1)/e);Math.floor((i[l]-1)/e)<C&&o.push(""),gt(o,f,e);continue}if(h+i[l]>e&&h>0&&i[l]>0){if(u.wordWrap===!1&&h<e){gt(o,f,e);continue}o.push("")}if(h+i[l]>e&&u.wordWrap===!1){gt(o,f,e);continue}o[o.length-1]+=f}u.trim!==!1&&(o=o.map(l=>Ls(l)));let D=[...o.join(`
3
3
  `)];for(let[l,f]of D.entries()){if(r+=f,Ke.has(f)){let{groups:c}=new RegExp(`(?:\\${Mu}(?<code>\\d+)m|\\${Ft}(?<uri>.*)${Ct})`).exec(D.slice(l).join(""))||{groups:{}};if(c.code!==void 0){let C=Number.parseFloat(c.code);n=C===Ns?void 0:C}else c.uri!==void 0&&(s=c.uri.length===0?void 0:c.uri)}let h=Os.codes.get(Number(n));D[l+1]===`
4
4
  `?(s&&(r+=ju("")),n&&h&&(r+=Gu(h))):f===`
@@ -49,6 +49,6 @@
49
49
  * Copyright (c) 2014-present, Jon Schlinkert.
50
50
  * Licensed under the MIT License.
51
51
  */const iD=_e,Ur=sD,Kr=a(t=>t!==null&&typeof t=="object"&&!Array.isArray(t),"isObject"),oD=a(t=>e=>t===!0?Number(e):String(e),"transform"),Zt=a(t=>typeof t=="number"||typeof t=="string"&&t!=="","isValidValue"),ve=a(t=>Number.isInteger(+t),"isNumber"),Jt=a(t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},"zeros"),DD=a((t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,"stringify$3"),aD=a((t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},"pad"),Vr=a((t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},"toMaxLen"),lD=a((t,e)=>{t.negatives.sort((i,o)=>i<o?-1:i>o?1:0),t.positives.sort((i,o)=>i<o?-1:i>o?1:0);let u=e.capture?"":"?:",r="",n="",s;return t.positives.length&&(r=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),r&&n?s=`${r}|${n}`:s=r||n,e.wrap?`(${u}${s})`:s},"toSequence"),zr=a((t,e,u,r)=>{if(u)return Ur(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},"toRange"),Yr=a((t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return Ur(t,e,u)},"toRegex"),qr=a((...t)=>new RangeError("Invalid range arguments: "+iD.inspect(...t)),"rangeError"),Xr=a((t,e,u)=>{if(u.strictRanges===!0)throw qr([t,e]);return[]},"invalidRange"),cD=a((t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},"invalidStep"),fD=a((t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw qr([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let i=n>s,o=String(t),D=String(e),l=String(u);u=Math.max(Math.abs(u),1);let f=Jt(o)||Jt(D)||Jt(l),h=f?Math.max(o.length,D.length,l.length):0,c=f===!1&&DD(t,e,r)===!1,C=r.transform||oD(c);if(r.toRegex&&u===1)return zr(Vr(t,h),Vr(e,h),!0,r);let F={negatives:[],positives:[]},m=a(H=>F[H<0?"negatives":"positives"].push(Math.abs(H)),"push"),R=[],T=0;for(;i?n>=s:n<=s;)r.toRegex===!0&&u>1?m(n):R.push(aD(C(n,T),h,c)),n=i?n-u:n+u,T++;return r.toRegex===!0?u>1?lD(F,r):Yr(R,null,{wrap:!1,...r}):R},"fillNumbers"),hD=a((t,e,u=1,r={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return Xr(t,e,r);let n=r.transform||(c=>String.fromCharCode(c)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),o=s>i,D=Math.min(s,i),l=Math.max(s,i);if(r.toRegex&&u===1)return zr(D,l,!1,r);let f=[],h=0;for(;o?s>=i:s<=i;)f.push(n(s,h)),s=o?s-u:s+u,h++;return r.toRegex===!0?Yr(f,null,{wrap:!1,options:r}):f},"fillLetters"),ut=a((t,e,u,r={})=>{if(e==null&&Zt(t))return[t];if(!Zt(t)||!Zt(e))return Xr(t,e,r);if(typeof u=="function")return ut(t,e,1,{transform:u});if(Kr(u))return ut(t,e,0,u);let n={...r};return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,ve(u)?ve(t)&&ve(e)?fD(t,e,u,n):hD(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Kr(u)?cD(u,n):ut(t,e,1,u)},"fill$2");var Qr=ut;const dD=Qr,Zr=tt,ED=a((t,e={})=>{let u=a((r,n={})=>{let s=Zr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,o=s===!0||i===!0,D=e.escapeInvalid===!0?"\\":"",l="";if(r.isOpen===!0||r.isClose===!0)return D+r.value;if(r.type==="open")return o?D+r.value:"(";if(r.type==="close")return o?D+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":o?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=Zr.reduce(r.nodes),h=dD(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(r.nodes)for(let f of r.nodes)l+=u(f,r);return l},"walk");return u(t)},"compile$1");var pD=ED;const CD=Qr,Jr=Xt,Fe=tt,ce=a((t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(ce(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?ce(n,s,u):n+s);return Fe.flatten(r)},"append"),FD=a((t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=a((n,s={})=>{n.queue=[];let i=s,o=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(n.invalid||n.dollar){o.push(ce(o.pop(),Jr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(ce(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Fe.reduce(n.nodes);if(Fe.exceedsLimit(...h,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=CD(...h,e);c.length===0&&(c=Jr(n,e)),o.push(ce(o.pop(),c)),n.nodes=[];return}let D=Fe.encloseBrace(n),l=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<n.nodes.length;h++){let c=n.nodes[h];if(c.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(c.type==="close"){o.push(ce(o.pop(),l,D));continue}if(c.value&&c.type!=="open"){l.push(ce(l.pop(),c.value));continue}c.nodes&&r(c,n)}return l},"walk");return Fe.flatten(r(t))},"expand$1");var gD=FD,mD={MAX_LENGTH:1024*64,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:`
52
- `,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"};const _D=Xt,{MAX_LENGTH:en,CHAR_BACKSLASH:eu,CHAR_BACKTICK:AD,CHAR_COMMA:yD,CHAR_DOT:wD,CHAR_LEFT_PARENTHESES:RD,CHAR_RIGHT_PARENTHESES:bD,CHAR_LEFT_CURLY_BRACE:vD,CHAR_RIGHT_CURLY_BRACE:SD,CHAR_LEFT_SQUARE_BRACKET:tn,CHAR_RIGHT_SQUARE_BRACKET:un,CHAR_DOUBLE_QUOTE:BD,CHAR_SINGLE_QUOTE:$D,CHAR_NO_BREAK_SPACE:TD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xD}=mD,OD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(en,u.maxLength):en;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=s[s.length-1],c=C(),!(c===xD||c===TD)){if(c===eu){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===un){F({type:"text",value:"\\"+c});continue}if(c===tn){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===tn){D++;continue}if(m===eu){c+=C();continue}if(m===un&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===RD){i=F({type:"paren",nodes:[]}),s.push(i),F({type:"text",value:c});continue}if(c===bD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=s.pop(),F({type:"text",value:c}),i=s[s.length-1];continue}if(c===BD||c===$D||c===AD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===eu){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===vD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),s.push(i),F({type:"open",value:c});continue}if(c===SD){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=s.pop(),i.close=!0,F({type:m,value:c}),h--,i=s[s.length-1];continue}if(c===yD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:_D(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===wD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=s[s.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(s.length>0);return F({type:"eos"}),n},"parse$1");var ND=OD;const rn=Xt,PD=pD,HD=gD,LD=ND,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=Q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>LD(t,e),Q.stringify=(t,e={})=>rn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),PD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=HD(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var ID=Q,kD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],MD=kD;const WD=q,GD=MD,jD=new Set(GD);var UD=a(t=>jD.has(WD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),rt={};(function(t){const{sep:e}=q,{platform:u}=process,r=bu;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=r.type()==="OS400"})(rt);const ie=De,G=q,{promisify:Se}=_e,KD=UD,{isWindows:VD,isLinux:zD,EMPTY_FN:YD,EMPTY_STR:qD,KEY_LISTENERS:ge,KEY_ERR:tu,KEY_RAW:Be,HANDLER_KEYS:XD,EV_CHANGE:nt,EV_ADD:st,EV_ADD_DIR:QD,EV_ERROR:nn,STR_DATA:ZD,STR_END:JD,BRACE_START:ea,STAR:ta}=rt,ua="watch",ra=Se(ie.open),sn=Se(ie.stat),na=Se(ie.lstat),sa=Se(ie.close),uu=Se(ie.realpath),ia={lstat:na,stat:sn},ru=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),$e=a((t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},"addAndConvert"),oa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),Te=a((t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},"delFromSet"),on=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),it=new Map;function Dn(t,e,u,r,n){const s=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&ot(G.resolve(t,o),ge,G.join(t,o))},"handleEvent");try{return ie.watch(t,e,s)}catch(i){r(i)}}a(Dn,"createFsWatchInstance");const ot=a((t,e,u,r,n)=>{const s=it.get(t);s&&ru(s[e],i=>{i(u,r,n)})},"fsWatchBroadcast"),Da=a((t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let o=it.get(e),D;if(!u.persistent)return D=Dn(t,u,n,s,i),D.close.bind(D);if(o)$e(o,ge,n),$e(o,tu,s),$e(o,Be,i);else{if(D=Dn(t,u,ot.bind(null,e,ge),s,ot.bind(null,e,Be)),!D)return;D.on(nn,async l=>{const f=ot.bind(null,e,tu);if(o.watcherUnusable=!0,VD&&l.code==="EPERM")try{const h=await ra(t,"r");await sa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:s,rawEmitters:i,watcher:D},it.set(e,o)}return()=>{Te(o,ge,n),Te(o,tu,s),Te(o,Be,i),on(o.listeners)&&(o.watcher.close(),it.delete(e),XD.forEach(oa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),nu=new Map,aa=a((t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=nu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,ie.unwatchFile(e),i=void 0),i?($e(i,ge,n),$e(i,Be,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:ie.watchFile(e,u,(D,l)=>{ru(i.rawEmitters,h=>{h(nt,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&ru(i.listeners,h=>h(t,D))})},nu.set(e,i)),()=>{Te(i,ge,n),Te(i,Be,s),on(i.listeners)&&(nu.delete(e),ie.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let la=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=G.dirname(e),s=G.basename(e);this.fsw._getWatchedDir(n).add(s);const o=G.resolve(e),D={persistent:r.persistent};u||(u=YD);let l;return r.usePolling?(D.interval=r.enableBinaryInterval&&KD(s)?r.binaryInterval:r.interval,l=aa(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=Da(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,r){if(this.fsw.closed)return;const n=G.dirname(e),s=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(s))return;const D=a(async(f,h)=>{if(this.fsw._throttle(ua,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(nt,e,c),zD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,s)}else if(i.has(s)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(nt,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(st,e,0))return;this.fsw._emit(st,e,u)}return l}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await uu(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(nt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(st,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,i,o){if(e=G.join(e,qD),!r.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(r.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>r.filterPath(h),"fileFilter"),directoryFilter:a(h=>r.filterDir(h),"directoryFilter"),depth:0}).on(ZD,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(s,G.relative(s,C)),this._addToNodeFs(C,u,r,i+1))}}).on(nn,this._boundHandleError);return new Promise(h=>f.once(JD,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!r.hasGlob||r.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,r,n,s,i,o)}))}async _handleDir(e,u,r,n,s,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(QD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(e,r,i,s,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,f)})}return h}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&r&&(o.hasGlob=r.hasGlob,o.globFilter=r.globFilter,o.filterPath=D=>r.filterPath(D),o.filterDir=D=>r.filterDir(D));try{const D=await ia[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(ta)&&!e.includes(ea);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await uu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,s,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await uu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(st,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ca=la,su={exports:{}};const iu=De,j=q,{promisify:ou}=_e;let me;try{me=he.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(me=void 0)}}const{EV_ADD:Du,EV_CHANGE:fa,EV_ADD_DIR:an,EV_UNLINK:Dt,EV_ERROR:ha,STR_DATA:da,STR_END:Ea,FSEVENT_CREATED:pa,FSEVENT_MODIFIED:Ca,FSEVENT_DELETED:Fa,FSEVENT_MOVED:ga,FSEVENT_UNKNOWN:ma,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_a,FSEVENT_TYPE_FILE:Aa,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:ln,ROOT_GLOBSTAR:cn,DIR_SUFFIX:ya,DOT_SLASH:fn,FUNCTION_TYPE:au,EMPTY_FN:wa,IDENTITY_FN:Ra}=rt,ba=a(t=>isNaN(t)?{}:{depth:t},"Depth"),lu=ou(iu.stat),va=ou(iu.lstat),hn=ou(iu.realpath),Sa={stat:lu,lstat:va},fe=new Map,Ba=10,$a=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ta=a((t,e)=>({stop:me.watch(t,e)}),"createFSEventsInstance");function xa(t,e,u,r){let n=j.extname(e)?j.dirname(e):e;const s=j.dirname(n);let i=fe.get(n);Oa(s)&&(n=s);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of fe.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=fe.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:r,watcher:Ta(n,(h,c)=>{if(!i.listeners.size||c&_a)return;const C=me.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},fe.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(fe.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(xa,"setFSEventsListener");const Oa=a(t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=Ba))return!0;return!1},"couldConsolidate"),Na=a(()=>me&&fe.size<128,"canUse"),cu=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),dn=a((t,e)=>t.type===xe&&e.isDirectory()||t.type===ln&&e.isSymbolicLink()||t.type===Aa&&e.isFile(),"sameTypes");let Pa=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+cn),!0;r.delete(e),r.delete(e+cn)}addOrChange(e,u,r,n,s,i,o,D){const l=s.has(i)?fa:Du;this.handleEvent(l,e,u,r,n,s,i,o,D)}async checkExists(e,u,r,n,s,i,o,D){try{const l=await lu(e);if(this.fsw.closed)return;dn(o,l)?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}}handleEvent(e,u,r,n,s,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===Dt){const f=D.type===xe;(f||i.has(o))&&this.fsw._remove(s,o,f)}else{if(e===Du){if(D.type===xe&&this.fsw._getWatchedDir(u),D.type===ln&&l.followSymlinks){const h=l.depth===void 0?void 0:cu(r,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(s).add(o)}const f=D.type===xe?e+ya:e;this.fsw._emit(f,u),f===an&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,o=xa(e,u,a(async(D,l,f)=>{if(this.fsw.closed||s.depth!==void 0&&cu(D,u)>s.depth)return;const h=r(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===xe?h:c);if($a.has(l)||f.event===ma)if(typeof s.ignored===au){let m;try{m=await lu(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;dn(f,m)?this.addOrChange(h,D,u,c,F,C,f,s):this.handleEvent(Dt,h,D,u,c,F,C,f,s)}else this.checkExists(h,D,u,c,F,C,f,s);else switch(f.event){case pa:case Ca:return this.addOrChange(h,D,u,c,F,C,f,s);case Fa:case ga:return this.checkExists(h,D,u,c,F,C,f,s)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await hn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let o=e;return s&&s!==fn?o=i.replace(s,e):i!==fn&&(o=j.join(e,i)),r(o)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||s===!0)&&this.fsw._emit(o?an:Du,i,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,j.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===au?u:Ra,o=this.fsw._getWatchHelpers(e);try{const D=await Sa[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...ba(s.depth-(n||0))}).on(da,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=s.depth===void 0?void 0:cu(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,s,r)}).on(ha,wa).on(Ea,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,s,r),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===au)this.initWatch(void 0,e,o,i);else{let D;try{D=await hn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=Pa,su.exports.canUse=Na;var Ha=su.exports;const{EventEmitter:La}=Wn,fu=De,x=q,{promisify:En}=_e,Ia=xo,hu=Io.default,ka=Xo,du=Yt,Ma=ID,Wa=$r,Ga=ca,pn=Ha,{EV_ALL:Eu,EV_READY:ja,EV_ADD:at,EV_CHANGE:Oe,EV_UNLINK:Cn,EV_ADD_DIR:Ua,EV_UNLINK_DIR:Ka,EV_RAW:Va,EV_ERROR:pu,STR_CLOSE:za,STR_END:Ya,BACK_SLASH_RE:qa,DOUBLE_SLASH_RE:Fn,SLASH_OR_BACK_SLASH_RE:Xa,DOT_RE:Qa,REPLACER_RE:Za,SLASH:Cu,SLASH_SLASH:Ja,BRACE_START:el,BANG:Fu,ONE_DOT:gn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:gu,ANYMATCH_OPTS:mu,STRING_TYPE:_u,FUNCTION_TYPE:rl,EMPTY_STR:Au,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:ol}=rt,Dl=En(fu.stat),al=En(fu.readdir),yu=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),mn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?mn(u,e):e.push(u)}),e),"flatten"),_n=a(t=>{const e=mn(yu(t));if(!e.every(u=>typeof u===_u))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(yn)},"unifyPaths"),An=a(t=>{let e=t.replace(qa,Cu),u=!1;for(e.startsWith(Ja)&&(u=!0);e.match(Fn);)e=e.replace(Fn,Cu);return u&&(e=Cu+e),e},"toUnix"),yn=a(t=>An(x.normalize(An(t))),"normalizePathToUnix"),wn=a((t=Au)=>e=>typeof e!==_u?e:yn(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),ll=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(Fu)?Fu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class cl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==gn&&e!==tl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await al(r)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(r),x.basename(r))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const fl="stat",hl="lstat";class dl{static{a(this,"WatchHelper")}constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Za,Au),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===Au&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?hu(e,void 0,mu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Ma.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Xa))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,i)=>(s===ul&&(r=!0),r||!u[0][i]||hu(s,u[0][i],mu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends La{static{a(this,"FSWatcher")}constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),pn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),ol&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=yu(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(ja)))},this._emitRaw=(...D)=>this.emit(Va,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new pn(this):this._nodeFsHandler=new Ga(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=_n(e);return n&&(i=i.map(o=>{const D=ll(o,n);return s||!du(o)?D:Wa(D)})),i=i.filter(o=>o.startsWith(Fu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+gu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!r,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=_n(e),{cwd:r}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=x.join(r,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+gu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(r=>{const n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,r)=>{const n=this.options.cwd?x.relative(this.options.cwd,r):r;e[n||gn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==pu&&this.emit(Eu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;sl&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];s!==void 0?o.push(r,n,s):n!==void 0?o.push(r,n):r!==void 0&&o.push(r);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===Cn)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(Eu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===at&&this._pendingUnlinks.has(u)&&(e=o[0]=Oe,this._pendingUnlinks.delete(u))}if(D&&(e===at||e===Oe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=pu,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===at||e===Ua||e===Oe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await Dl(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(pu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,r);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{fu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):s=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(s),r),"cancelWait")}),s=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qa.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(wn(r)),i=yu(s).filter(D=>typeof D===_u&&!du(D)).map(D=>D+gu),o=this._getGlobIgnored().map(wn(r)).concat(s,i);this._userIgnored=hu(o,void 0,mu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!du(e)?e:ka(e),n=this.options.followSymlinks;return new dl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new cl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,u,r){const n=x.join(e,u),s=x.resolve(n);if(r=r??(this._watched.has(n)||this._watched.has(s)),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===at)return;this._watched.delete(n),this._watched.delete(s);const h=r?Ka:Cn;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r={type:Eu,alwaysStat:!0,lstat:!0,...u};let n=Ia(e,r);return this._streams.add(n),n.once(za,()=>{n=void 0}),n.once(Ya,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var wu=El;const lt=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),Rn=a((t,e=process.argv.slice(2))=>(Su(t,e,{ignore:lt()}),e),"removeArgvFlags"),pl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const r=e.readInt32BE(0);if(e.length>=4+r){const n=e.slice(4,4+r);t(n),e=e.slice(4+r)}else break}}},"bufferData"),bn=a(async()=>{const t=jn.createServer(u=>{u.on("data",pl(r=>{const n=JSON.parse(r.toString());t.emit("data",n)}))}),e=he.getPipePath(process.pid);return await We.promises.mkdir(Un.tmpdir,{recursive:!0}),await We.promises.rm(e,{force:!0}),await new Promise((u,r)=>{t.listen(e,u),t.on("error",r)}),t.unref(),process.on("exit",()=>{if(t.close(),!he.isWindows)try{We.rmSync(e)}catch{}}),t},"createIpcServer"),Cl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Ne=a((...t)=>console.log(ne.gray(Cl()),ne.lightCyan("[tsx]"),...t),"log"),Fl="\x1Bc",gl=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),vn={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},ml=Di({name:"watch",parameters:["<script path>"],flags:vn,help:{description:"Run the script and watch for changes"},ignoreArgv:lt(!1)},async t=>{const e=Rn(vn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let r,n=!1;const s=process.cwd(),i=new Map,o=a((g,w)=>{const d=Me.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=We.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>Me.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=Me.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Pr(w)||F.add(C(w))}else Pr(g)||F.delete(C(g));(await bn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Ru.fileURLToPath(g.path):g.path;Me.isAbsolute(w)&&(F.has(C(w))?(f||(f=new wu({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return cr(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Ne(ne.yellow(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=gl(async(g,w)=>{const d=g?`${g?ne.lightMagenta(g):""}${w?` in ${ne.lightGreen(`./${w}`)}`:""}`:"";if(T){Ne(d,ne.yellow("Process hasn't exited. Killing process...")),r.kill("SIGKILL");return}r&&(r.exitCode===null?(Ne(d,ne.yellow("Restarting...")),await H(r)):Ne(d,ne.yellow("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(Fl)),r=R()},100),z=a(g=>{n=!0,r?.exitCode===null?(T&&Ne(ne.yellow("Previous process hasn't exited yet. Force killing...")),H(r,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(dt.constants.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:s,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new wu({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new wu(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,r=R(),process.stdin.on("data",()=>O("Return key"))}),_l=a((t,e)=>{let u;e.on("data",s=>{s&&s.type==="signal"&&u&&u(s.signal)});const r=a(()=>{const s=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return s.then(()=>{u=void 0},()=>{}),s},"waitForSignalFromChild"),n=a(async s=>{await r()!==s&&(t.kill(s),await r()!==s&&(t.on("exit",()=>{const D=dt.constants.signals[s];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),Sn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Yu({name:"tsx",parameters:["[script path]"],commands:[ml],flags:{...Sn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:lt()},async t=>{t.flags.version?process.stdout.write(`tsx v${kn.version}
52
+ `,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"};const _D=Xt,{MAX_LENGTH:en,CHAR_BACKSLASH:eu,CHAR_BACKTICK:AD,CHAR_COMMA:yD,CHAR_DOT:wD,CHAR_LEFT_PARENTHESES:RD,CHAR_RIGHT_PARENTHESES:bD,CHAR_LEFT_CURLY_BRACE:vD,CHAR_RIGHT_CURLY_BRACE:SD,CHAR_LEFT_SQUARE_BRACKET:tn,CHAR_RIGHT_SQUARE_BRACKET:un,CHAR_DOUBLE_QUOTE:BD,CHAR_SINGLE_QUOTE:$D,CHAR_NO_BREAK_SPACE:TD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xD}=mD,OD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(en,u.maxLength):en;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=s[s.length-1],c=C(),!(c===xD||c===TD)){if(c===eu){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===un){F({type:"text",value:"\\"+c});continue}if(c===tn){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===tn){D++;continue}if(m===eu){c+=C();continue}if(m===un&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===RD){i=F({type:"paren",nodes:[]}),s.push(i),F({type:"text",value:c});continue}if(c===bD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=s.pop(),F({type:"text",value:c}),i=s[s.length-1];continue}if(c===BD||c===$D||c===AD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===eu){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===vD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),s.push(i),F({type:"open",value:c});continue}if(c===SD){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=s.pop(),i.close=!0,F({type:m,value:c}),h--,i=s[s.length-1];continue}if(c===yD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:_D(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===wD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=s[s.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(s.length>0);return F({type:"eos"}),n},"parse$1");var ND=OD;const rn=Xt,PD=pD,HD=gD,LD=ND,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=Q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>LD(t,e),Q.stringify=(t,e={})=>rn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),PD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=HD(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var ID=Q,kD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],MD=kD;const WD=q,GD=MD,jD=new Set(GD);var UD=a(t=>jD.has(WD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),rt={};(function(t){const{sep:e}=q,{platform:u}=process,r=bu;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=r.type()==="OS400"})(rt);const ie=De,G=q,{promisify:Se}=_e,KD=UD,{isWindows:VD,isLinux:zD,EMPTY_FN:YD,EMPTY_STR:qD,KEY_LISTENERS:ge,KEY_ERR:tu,KEY_RAW:Be,HANDLER_KEYS:XD,EV_CHANGE:nt,EV_ADD:st,EV_ADD_DIR:QD,EV_ERROR:nn,STR_DATA:ZD,STR_END:JD,BRACE_START:ea,STAR:ta}=rt,ua="watch",ra=Se(ie.open),sn=Se(ie.stat),na=Se(ie.lstat),sa=Se(ie.close),uu=Se(ie.realpath),ia={lstat:na,stat:sn},ru=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),$e=a((t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},"addAndConvert"),oa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),Te=a((t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},"delFromSet"),on=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),it=new Map;function Dn(t,e,u,r,n){const s=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&ot(G.resolve(t,o),ge,G.join(t,o))},"handleEvent");try{return ie.watch(t,e,s)}catch(i){r(i)}}a(Dn,"createFsWatchInstance");const ot=a((t,e,u,r,n)=>{const s=it.get(t);s&&ru(s[e],i=>{i(u,r,n)})},"fsWatchBroadcast"),Da=a((t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let o=it.get(e),D;if(!u.persistent)return D=Dn(t,u,n,s,i),D.close.bind(D);if(o)$e(o,ge,n),$e(o,tu,s),$e(o,Be,i);else{if(D=Dn(t,u,ot.bind(null,e,ge),s,ot.bind(null,e,Be)),!D)return;D.on(nn,async l=>{const f=ot.bind(null,e,tu);if(o.watcherUnusable=!0,VD&&l.code==="EPERM")try{const h=await ra(t,"r");await sa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:s,rawEmitters:i,watcher:D},it.set(e,o)}return()=>{Te(o,ge,n),Te(o,tu,s),Te(o,Be,i),on(o.listeners)&&(o.watcher.close(),it.delete(e),XD.forEach(oa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),nu=new Map,aa=a((t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=nu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,ie.unwatchFile(e),i=void 0),i?($e(i,ge,n),$e(i,Be,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:ie.watchFile(e,u,(D,l)=>{ru(i.rawEmitters,h=>{h(nt,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&ru(i.listeners,h=>h(t,D))})},nu.set(e,i)),()=>{Te(i,ge,n),Te(i,Be,s),on(i.listeners)&&(nu.delete(e),ie.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let la=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=G.dirname(e),s=G.basename(e);this.fsw._getWatchedDir(n).add(s);const o=G.resolve(e),D={persistent:r.persistent};u||(u=YD);let l;return r.usePolling?(D.interval=r.enableBinaryInterval&&KD(s)?r.binaryInterval:r.interval,l=aa(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=Da(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,r){if(this.fsw.closed)return;const n=G.dirname(e),s=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(s))return;const D=a(async(f,h)=>{if(this.fsw._throttle(ua,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(nt,e,c),zD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,s)}else if(i.has(s)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(nt,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(st,e,0))return;this.fsw._emit(st,e,u)}return l}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await uu(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(nt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(st,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,i,o){if(e=G.join(e,qD),!r.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(r.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>r.filterPath(h),"fileFilter"),directoryFilter:a(h=>r.filterDir(h),"directoryFilter"),depth:0}).on(ZD,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(s,G.relative(s,C)),this._addToNodeFs(C,u,r,i+1))}}).on(nn,this._boundHandleError);return new Promise(h=>f.once(JD,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!r.hasGlob||r.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,r,n,s,i,o)}))}async _handleDir(e,u,r,n,s,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(QD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(e,r,i,s,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,f)})}return h}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&r&&(o.hasGlob=r.hasGlob,o.globFilter=r.globFilter,o.filterPath=D=>r.filterPath(D),o.filterDir=D=>r.filterDir(D));try{const D=await ia[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(ta)&&!e.includes(ea);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await uu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,s,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await uu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(st,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ca=la,su={exports:{}};const iu=De,j=q,{promisify:ou}=_e;let me;try{me=he.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(me=void 0)}}const{EV_ADD:Du,EV_CHANGE:fa,EV_ADD_DIR:an,EV_UNLINK:Dt,EV_ERROR:ha,STR_DATA:da,STR_END:Ea,FSEVENT_CREATED:pa,FSEVENT_MODIFIED:Ca,FSEVENT_DELETED:Fa,FSEVENT_MOVED:ga,FSEVENT_UNKNOWN:ma,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_a,FSEVENT_TYPE_FILE:Aa,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:ln,ROOT_GLOBSTAR:cn,DIR_SUFFIX:ya,DOT_SLASH:fn,FUNCTION_TYPE:au,EMPTY_FN:wa,IDENTITY_FN:Ra}=rt,ba=a(t=>isNaN(t)?{}:{depth:t},"Depth"),lu=ou(iu.stat),va=ou(iu.lstat),hn=ou(iu.realpath),Sa={stat:lu,lstat:va},fe=new Map,Ba=10,$a=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ta=a((t,e)=>({stop:me.watch(t,e)}),"createFSEventsInstance");function xa(t,e,u,r){let n=j.extname(e)?j.dirname(e):e;const s=j.dirname(n);let i=fe.get(n);Oa(s)&&(n=s);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of fe.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=fe.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:r,watcher:Ta(n,(h,c)=>{if(!i.listeners.size||c&_a)return;const C=me.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},fe.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(fe.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(xa,"setFSEventsListener");const Oa=a(t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=Ba))return!0;return!1},"couldConsolidate"),Na=a(()=>me&&fe.size<128,"canUse"),cu=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),dn=a((t,e)=>t.type===xe&&e.isDirectory()||t.type===ln&&e.isSymbolicLink()||t.type===Aa&&e.isFile(),"sameTypes");let Pa=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+cn),!0;r.delete(e),r.delete(e+cn)}addOrChange(e,u,r,n,s,i,o,D){const l=s.has(i)?fa:Du;this.handleEvent(l,e,u,r,n,s,i,o,D)}async checkExists(e,u,r,n,s,i,o,D){try{const l=await lu(e);if(this.fsw.closed)return;dn(o,l)?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}}handleEvent(e,u,r,n,s,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===Dt){const f=D.type===xe;(f||i.has(o))&&this.fsw._remove(s,o,f)}else{if(e===Du){if(D.type===xe&&this.fsw._getWatchedDir(u),D.type===ln&&l.followSymlinks){const h=l.depth===void 0?void 0:cu(r,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(s).add(o)}const f=D.type===xe?e+ya:e;this.fsw._emit(f,u),f===an&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,o=xa(e,u,a(async(D,l,f)=>{if(this.fsw.closed||s.depth!==void 0&&cu(D,u)>s.depth)return;const h=r(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===xe?h:c);if($a.has(l)||f.event===ma)if(typeof s.ignored===au){let m;try{m=await lu(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;dn(f,m)?this.addOrChange(h,D,u,c,F,C,f,s):this.handleEvent(Dt,h,D,u,c,F,C,f,s)}else this.checkExists(h,D,u,c,F,C,f,s);else switch(f.event){case pa:case Ca:return this.addOrChange(h,D,u,c,F,C,f,s);case Fa:case ga:return this.checkExists(h,D,u,c,F,C,f,s)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await hn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let o=e;return s&&s!==fn?o=i.replace(s,e):i!==fn&&(o=j.join(e,i)),r(o)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||s===!0)&&this.fsw._emit(o?an:Du,i,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,j.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===au?u:Ra,o=this.fsw._getWatchHelpers(e);try{const D=await Sa[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...ba(s.depth-(n||0))}).on(da,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=s.depth===void 0?void 0:cu(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,s,r)}).on(ha,wa).on(Ea,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,s,r),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===au)this.initWatch(void 0,e,o,i);else{let D;try{D=await hn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=Pa,su.exports.canUse=Na;var Ha=su.exports;const{EventEmitter:La}=Wn,fu=De,x=q,{promisify:En}=_e,Ia=xo,hu=Io.default,ka=Xo,du=Yt,Ma=ID,Wa=$r,Ga=ca,pn=Ha,{EV_ALL:Eu,EV_READY:ja,EV_ADD:at,EV_CHANGE:Oe,EV_UNLINK:Cn,EV_ADD_DIR:Ua,EV_UNLINK_DIR:Ka,EV_RAW:Va,EV_ERROR:pu,STR_CLOSE:za,STR_END:Ya,BACK_SLASH_RE:qa,DOUBLE_SLASH_RE:Fn,SLASH_OR_BACK_SLASH_RE:Xa,DOT_RE:Qa,REPLACER_RE:Za,SLASH:Cu,SLASH_SLASH:Ja,BRACE_START:el,BANG:Fu,ONE_DOT:gn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:gu,ANYMATCH_OPTS:mu,STRING_TYPE:_u,FUNCTION_TYPE:rl,EMPTY_STR:Au,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:ol}=rt,Dl=En(fu.stat),al=En(fu.readdir),yu=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),mn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?mn(u,e):e.push(u)}),e),"flatten"),_n=a(t=>{const e=mn(yu(t));if(!e.every(u=>typeof u===_u))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(yn)},"unifyPaths"),An=a(t=>{let e=t.replace(qa,Cu),u=!1;for(e.startsWith(Ja)&&(u=!0);e.match(Fn);)e=e.replace(Fn,Cu);return u&&(e=Cu+e),e},"toUnix"),yn=a(t=>An(x.normalize(An(t))),"normalizePathToUnix"),wn=a((t=Au)=>e=>typeof e!==_u?e:yn(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),ll=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(Fu)?Fu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class cl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==gn&&e!==tl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await al(r)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(r),x.basename(r))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const fl="stat",hl="lstat";class dl{static{a(this,"WatchHelper")}constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Za,Au),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===Au&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?hu(e,void 0,mu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Ma.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Xa))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,i)=>(s===ul&&(r=!0),r||!u[0][i]||hu(s,u[0][i],mu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends La{static{a(this,"FSWatcher")}constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),pn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),ol&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=yu(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(ja)))},this._emitRaw=(...D)=>this.emit(Va,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new pn(this):this._nodeFsHandler=new Ga(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=_n(e);return n&&(i=i.map(o=>{const D=ll(o,n);return s||!du(o)?D:Wa(D)})),i=i.filter(o=>o.startsWith(Fu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+gu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!r,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=_n(e),{cwd:r}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=x.join(r,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+gu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(r=>{const n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,r)=>{const n=this.options.cwd?x.relative(this.options.cwd,r):r;e[n||gn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==pu&&this.emit(Eu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;sl&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];s!==void 0?o.push(r,n,s):n!==void 0?o.push(r,n):r!==void 0&&o.push(r);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===Cn)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(Eu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===at&&this._pendingUnlinks.has(u)&&(e=o[0]=Oe,this._pendingUnlinks.delete(u))}if(D&&(e===at||e===Oe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=pu,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===at||e===Ua||e===Oe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await Dl(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(pu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,r);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{fu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):s=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(s),r),"cancelWait")}),s=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qa.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(wn(r)),i=yu(s).filter(D=>typeof D===_u&&!du(D)).map(D=>D+gu),o=this._getGlobIgnored().map(wn(r)).concat(s,i);this._userIgnored=hu(o,void 0,mu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!du(e)?e:ka(e),n=this.options.followSymlinks;return new dl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new cl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,u,r){const n=x.join(e,u),s=x.resolve(n);if(r=r??(this._watched.has(n)||this._watched.has(s)),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===at)return;this._watched.delete(n),this._watched.delete(s);const h=r?Ka:Cn;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r={type:Eu,alwaysStat:!0,lstat:!0,...u};let n=Ia(e,r);return this._streams.add(n),n.once(za,()=>{n=void 0}),n.once(Ya,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var wu=El;const lt=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),Rn=a((t,e=process.argv.slice(2))=>(Su(t,e,{ignore:lt()}),e),"removeArgvFlags"),pl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const r=e.readInt32BE(0);if(e.length>=4+r){const n=e.slice(4,4+r);t(n),e=e.slice(4+r)}else break}}},"bufferData"),bn=a(async()=>{const t=jn.createServer(u=>{u.on("data",pl(r=>{const n=JSON.parse(r.toString());t.emit("data",n)}))}),e=he.getPipePath(process.pid);return await We.promises.mkdir(Un.tmpdir,{recursive:!0}),await We.promises.rm(e,{force:!0}),await new Promise((u,r)=>{t.listen(e,u),t.on("error",r)}),t.unref(),process.on("exit",()=>{if(t.close(),!he.isWindows)try{We.rmSync(e)}catch{}}),t},"createIpcServer"),Cl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Ne=a((...t)=>console.log(ne.gray(Cl()),ne.lightCyan("[tsx]"),...t),"log"),Fl="\x1Bc",gl=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),vn={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},ml=Di({name:"watch",parameters:["<script path>"],flags:vn,help:{description:"Run the script and watch for changes"},ignoreArgv:lt(!1)},async t=>{const e=Rn(vn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let r,n=!1;const s=process.cwd(),i=new Map,o=a((g,w)=>{const d=Me.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=We.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>Me.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=Me.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Pr(w)||F.add(C(w))}else Pr(g)||F.delete(C(g));(await bn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Ru.fileURLToPath(g.path):g.path;Me.isAbsolute(w)&&(F.has(C(w))?(f||(f=new wu({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return cr(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Ne(ne.yellow(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=gl(async(g,w)=>{const d=g?`${g?ne.lightMagenta(g):""}${w?` in ${ne.lightGreen(`./${w}`)}`:""}`:"";if(T){Ne(d,ne.yellow("Process hasn't exited. Killing process...")),r.kill("SIGKILL");return}r&&(r.exitCode===null?(Ne(d,ne.yellow("Restarting...")),await H(r)):Ne(d,ne.yellow("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(Fl)),r=R()},100),z=a(g=>{n=!0,r?.exitCode===null?(T&&Ne(ne.yellow("Previous process hasn't exited yet. Force killing...")),H(r,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(128+dt.constants.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:s,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new wu({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new wu(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,r=R(),process.stdin.on("data",()=>O("Return key"))}),_l=a((t,e)=>{let u;e.on("data",s=>{s&&s.type==="signal"&&u&&u(s.signal)});const r=a(()=>{const s=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return s.then(()=>{u=void 0},()=>{}),s},"waitForSignalFromChild"),n=a(async s=>{await r()!==s&&(t.kill(s),await r()!==s&&(t.on("exit",()=>{const D=dt.constants.signals[s];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),Sn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Yu({name:"tsx",parameters:["[script path]"],commands:[ml],flags:{...Sn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:lt()},async t=>{t.flags.version?process.stdout.write(`tsx v${kn.version}
53
53
  node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
54
54
  `));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:r}=Yu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:lt(!1)}),n=Rn({...Sn,...e}),i=["print","eval"].find(l=>!!r[l]);if(i){const{inputType:l}=r,f=r[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}ke.isFeatureSupported(ke.testRunnerGlob)&&r.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s");const o=await bn(),D=cr(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});_l(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=dt.constants.signals[D.signalCode]+128),process.exit(l)})});