@tui-sandbox/library 11.4.0 → 11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/browser/assets/{index-AMa2FE-g.js → index-BIcK2_KN.js} +1 -1
- package/dist/browser/index.html +1 -1
- package/dist/src/browser/neovim-client.js +1 -1
- package/dist/src/browser/neovim-client.js.map +1 -1
- package/dist/src/client/cypress-assertions.js +14 -12
- package/dist/src/client/cypress-assertions.js.map +1 -1
- package/dist/src/client/index.d.ts +0 -2
- package/dist/src/client/index.js +0 -2
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/terminal-terminal-client.d.ts +0 -1
- package/dist/src/client/terminal-terminal-client.js +0 -1
- package/dist/src/client/terminal-terminal-client.js.map +1 -1
- package/dist/src/scripts/commands/commandTuiNeovimExec.d.ts +2 -0
- package/dist/src/scripts/commands/commandTuiNeovimExec.js +82 -0
- package/dist/src/scripts/commands/commandTuiNeovimExec.js.map +1 -0
- package/dist/src/scripts/commands/commandTuiNeovimPrepare.d.ts +1 -0
- package/dist/src/scripts/commands/commandTuiNeovimPrepare.js +12 -0
- package/dist/src/scripts/commands/commandTuiNeovimPrepare.js.map +1 -0
- package/dist/src/scripts/commands/commandTuiStart.d.ts +1 -0
- package/dist/src/scripts/commands/commandTuiStart.js +30 -0
- package/dist/src/scripts/commands/commandTuiStart.js.map +1 -0
- package/dist/src/scripts/parseArguments.d.ts +7 -4
- package/dist/src/scripts/parseArguments.js +1 -1
- package/dist/src/scripts/parseArguments.js.map +1 -1
- package/dist/src/scripts/tui.d.ts +10 -1
- package/dist/src/scripts/tui.js +10 -113
- package/dist/src/scripts/tui.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/browser/neovim-client.ts +1 -1
- package/src/client/cypress-assertions.ts +14 -16
- package/src/client/index.ts +0 -2
- package/src/client/terminal-terminal-client.ts +0 -1
- package/src/scripts/commands/commandTuiNeovimExec.ts +23 -0
- package/src/scripts/commands/commandTuiNeovimPrepare.ts +16 -0
- package/src/scripts/commands/commandTuiStart.ts +29 -0
- package/src/scripts/parseArguments.ts +15 -8
- package/src/scripts/tui.ts +9 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [11.5.0](https://github.com/mikavilpas/tui-sandbox/compare/library-v11.4.1...library-v11.5.0) (2025-08-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* `textIsVisibleWithColor` matches can be hovered in cypress log ([#557](https://github.com/mikavilpas/tui-sandbox/issues/557)) ([05bf204](https://github.com/mikavilpas/tui-sandbox/commit/05bf2045d6cd51d42bb84e224ac6993b19e61856))
|
|
9
|
+
|
|
10
|
+
## [11.4.1](https://github.com/mikavilpas/tui-sandbox/compare/library-v11.4.0...library-v11.4.1) (2025-08-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* not being able to import from `@tui-sandbox/library/src/client` ([#550](https://github.com/mikavilpas/tui-sandbox/issues/550)) ([cbb3648](https://github.com/mikavilpas/tui-sandbox/commit/cbb3648592c951cc85bee6d37fd22de774f4334b))
|
|
16
|
+
|
|
3
17
|
## [11.4.0](https://github.com/mikavilpas/tui-sandbox/compare/library-v11.3.3...library-v11.4.0) (2025-08-03)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))g(m);new MutationObserver(m=>{for(const k of m)if(k.type==="childList")for(const C of k.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&g(C)}).observe(document,{childList:!0,subtree:!0});function c(m){const k={};return m.integrity&&(k.integrity=m.integrity),m.referrerPolicy&&(k.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?k.credentials="include":m.crossOrigin==="anonymous"?k.credentials="omit":k.credentials="same-origin",k}function g(m){if(m.ep)return;m.ep=!0;const k=c(m);fetch(m.href,k)}})();var Zr=Object.create,ir=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyNames,Kr=Object.getPrototypeOf,Vr=Object.prototype.hasOwnProperty,_e=(e,t)=>function(){return t||(0,e[sr(e)[0]])((t={exports:{}}).exports,t),t.exports},Gr=(e,t,c,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(var m=sr(t),k=0,C=m.length,r;k<C;k++)r=m[k],!Vr.call(e,r)&&r!==c&&ir(e,r,{get:(n=>t[n]).bind(null,r),enumerable:!(g=qr(t,r))||g.enumerable});return e},oe=(e,t,c)=>(c=e!=null?Zr(Kr(e)):{},Gr(ir(c,"default",{value:e,enumerable:!0}),e)),nr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function c(g){"@babel/helpers - typeof";return t.exports=c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t.exports.__esModule=!0,t.exports.default=t.exports,c(g)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var c=nr().default;function g(m,k){if(c(m)!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var r=C.call(m,k||"default");if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(m)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var c=nr().default,g=Jr();function m(k){var C=g(k,"string");return c(C)=="symbol"?C:C+""}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ce=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var c=Yr();function g(m,k,C){return(k=c(k))in m?Object.defineProperty(m,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[k]=C,m}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),ue=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var c=Ce();function g(k,C){var r=Object.keys(k);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(k);C&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(k,l).enumerable})),r.push.apply(r,n)}return r}function m(k){for(var C=1;C<arguments.length;C++){var r=arguments[C]!=null?arguments[C]:{};C%2?g(Object(r),!0).forEach(function(n){c(k,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(n){Object.defineProperty(k,n,Object.getOwnPropertyDescriptor(r,n))})}return k}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}});function xe(e){const t={subscribe(c){let g=null,m=!1,k=!1,C=!1;function r(){if(g===null){C=!0;return}k||(k=!0,typeof g=="function"?g():g&&g.unsubscribe())}return g=e({next(n){var l;m||(l=c.next)===null||l===void 0||l.call(c,n)},error(n){var l;m||(m=!0,(l=c.error)===null||l===void 0||l.call(c,n),r())},complete(){var n;m||(m=!0,(n=c.complete)===null||n===void 0||n.call(c),r())}}),C&&r(),{unsubscribe:r}},pipe(...c){return c.reduce(Xr,t)}};return t}function Xr(e,t){return t(e)}function Qr(e){const t=new AbortController;return new Promise((g,m)=>{let k=!1;function C(){k||(k=!0,r.unsubscribe())}t.signal.addEventListener("abort",()=>{m(t.signal.reason)});const r=e.subscribe({next(n){k=!0,g(n),C()},error(n){m(n)},complete(){t.abort(),C()}})})}function ei(e){return t=>{let c=0,g=null;const m=[];function k(){g||(g=t.subscribe({next(r){for(const l of m){var n;(n=l.next)===null||n===void 0||n.call(l,r)}},error(r){for(const l of m){var n;(n=l.error)===null||n===void 0||n.call(l,r)}},complete(){for(const n of m){var r;(r=n.complete)===null||r===void 0||r.call(n)}}}))}function C(){if(c===0&&g){const r=g;g=null,r.unsubscribe()}}return xe(r=>(c++,m.push(r),k(),{unsubscribe(){c--,C();const n=m.findIndex(l=>l===r);n>-1&&m.splice(n,1)}}))}}function or(e){let t=e;const c=[],g=C=>{t!==void 0&&C.next(t),c.push(C)},m=C=>{c.splice(c.indexOf(C),1)},k=xe(C=>(g(C),()=>{m(C)}));return k.next=C=>{if(t!==C){t=C;for(const r of c)r.next(C)}},k.get=()=>t,k}function ar(e){return xe(t=>{function c(m=0,k=e.op){const C=e.links[m];if(!C)throw new Error("No more links to execute - did you forget to add an ending link?");return C({op:k,next(n){return c(m+1,n)}})}return c().subscribe(t)})}function Et(e){return Array.isArray(e)?e:[e]}function cr(e){return t=>{const c=Et(e.true).map(m=>m(t)),g=Et(e.false).map(m=>m(t));return m=>xe(k=>{const C=e.condition(m.op)?c:g;return ar({op:m.op,links:C}).subscribe(k)})}}const Ue={INTERNAL_SERVER_ERROR:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603},ti=[Ue.BAD_GATEWAY,Ue.SERVICE_UNAVAILABLE,Ue.GATEWAY_TIMEOUT,Ue.INTERNAL_SERVER_ERROR];function Te(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const hr=e=>e();var ri=Object.create,lr=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyNames,si=Object.getPrototypeOf,ni=Object.prototype.hasOwnProperty,de=(e,t)=>function(){return t||(0,e[ur(e)[0]])((t={exports:{}}).exports,t),t.exports},oi=(e,t,c,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(var m=ur(t),k=0,C=m.length,r;k<C;k++)r=m[k],!ni.call(e,r)&&r!==c&&lr(e,r,{get:(n=>t[n]).bind(null,r),enumerable:!(g=ii(t,r))||g.enumerable});return e},Q=(e,t,c)=>(c=e!=null?ri(si(e)):{},oi(lr(c,"default",{value:e,enumerable:!0}),e));const dr=()=>{},xt=e=>{Object.freeze&&Object.freeze(e)};function fr(e,t,c){var g;const m=t.join(".");return(g=c[m])!==null&&g!==void 0||(c[m]=new Proxy(dr,{get(k,C){if(!(typeof C!="string"||C==="then"))return fr(e,[...t,C],c)},apply(k,C,r){const n=t[t.length-1];let l={args:r,path:t};return n==="call"?l={args:r.length>=2?[r[1]]:[],path:t.slice(0,-1)}:n==="apply"&&(l={args:r.length>=2?r[1]:[],path:t.slice(0,-1)}),xt(l.args),xt(l.path),e(l)}})),c[m]}const ai=e=>fr(e,[],Object.create(null)),ci=e=>new Proxy(dr,{get(t,c){if(c!=="then")return e(c)}});var _r=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function c(g){"@babel/helpers - typeof";return t.exports=c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t.exports.__esModule=!0,t.exports.default=t.exports,c(g)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),hi=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var c=_r().default;function g(m,k){if(c(m)!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var r=C.call(m,k||"default");if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(m)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),li=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var c=_r().default,g=hi();function m(k){var C=g(k,"string");return c(C)=="symbol"?C:C+""}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}}),pt=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var c=li();function g(m,k,C){return(k=c(k))in m?Object.defineProperty(m,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[k]=C,m}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),He=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var c=pt();function g(k,C){var r=Object.keys(k);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(k);C&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(k,l).enumerable})),r.push.apply(r,n)}return r}function m(k){for(var C=1;C<arguments.length;C++){var r=arguments[C]!=null?arguments[C]:{};C%2?g(Object(r),!0).forEach(function(n){c(k,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(n){Object.defineProperty(k,n,Object.getOwnPropertyDescriptor(r,n))})}return k}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(He());Q(pt());var Ne=Q(He());function ui(e,t){if("error"in e){const g=t.deserialize(e.error);return{ok:!1,error:(0,Ne.default)((0,Ne.default)({},e),{},{error:g})}}return{ok:!0,result:(0,Ne.default)((0,Ne.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var at=class extends Error{constructor(){super("Unable to transform response from server")}};function di(e,t){let c;try{c=ui(e,t)}catch{throw new at}if(!c.ok&&(!Te(c.error.error)||typeof c.error.error.code!="number"))throw new at;if(c.ok&&!Te(c.result))throw new at;return c}Q(He());Q(He());var Ze=Q(pt());let pr;const ct=new WeakMap,fi=()=>{};pr=Symbol.toStringTag;var vr=class be{constructor(t){(0,Ze.default)(this,"promise",void 0),(0,Ze.default)(this,"subscribers",[]),(0,Ze.default)(this,"settlement",null),(0,Ze.default)(this,pr,"Unpromise"),typeof t=="function"?this.promise=new Promise(t):this.promise=t;const c=this.promise.then(g=>{const{subscribers:m}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:g},m?.forEach(({resolve:k})=>{k(g)})});"catch"in c&&c.catch(g=>{const{subscribers:m}=this;this.subscribers=null,this.settlement={status:"rejected",reason:g},m?.forEach(({reject:k})=>{k(g)})})}subscribe(){let t,c;const{settlement:g}=this;if(g===null){if(this.subscribers===null)throw new Error("Unpromise settled but still has subscribers");const m=pi();this.subscribers=vi(this.subscribers,m),t=m.promise,c=()=>{this.subscribers!==null&&(this.subscribers=mi(this.subscribers,m))}}else{const{status:m}=g;m==="fulfilled"?t=Promise.resolve(g.value):t=Promise.reject(g.reason),c=fi}return Object.assign(t,{unsubscribe:c})}then(t,c){const g=this.subscribe(),{unsubscribe:m}=g;return Object.assign(g.then(t,c),{unsubscribe:m})}catch(t){const c=this.subscribe(),{unsubscribe:g}=c;return Object.assign(c.catch(t),{unsubscribe:g})}finally(t){const c=this.subscribe(),{unsubscribe:g}=c;return Object.assign(c.finally(t),{unsubscribe:g})}static proxy(t){const c=be.getSubscribablePromise(t);return typeof c<"u"?c:be.createSubscribablePromise(t)}static createSubscribablePromise(t){const c=new be(t);return ct.set(t,c),ct.set(c,c),c}static getSubscribablePromise(t){return ct.get(t)}static resolve(t){const c=typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"?t:Promise.resolve(t);return be.proxy(c).subscribe()}static async any(t){const g=(Array.isArray(t)?t:[...t]).map(be.resolve);try{return await Promise.any(g)}finally{g.forEach(({unsubscribe:m})=>{m()})}}static async race(t){const g=(Array.isArray(t)?t:[...t]).map(be.resolve);try{return await Promise.race(g)}finally{g.forEach(({unsubscribe:m})=>{m()})}}static async raceReferences(t){const c=t.map(_i);try{return await Promise.race(c)}finally{for(const g of c)g.unsubscribe()}}};function _i(e){return vr.proxy(e).then(()=>[e])}function pi(){let e,t;return{promise:new Promise((g,m)=>{e=g,t=m}),resolve:e,reject:t}}function vi(e,t){return[...e,t]}function gi(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function mi(e,t){const c=e.indexOf(t);return c!==-1?gi(e,c):e}var kt,Rt,Dt,Lt;(Rt=(kt=Symbol).dispose)!==null&&Rt!==void 0||(kt.dispose=Symbol());(Lt=(Dt=Symbol).asyncDispose)!==null&&Lt!==void 0||(Dt.asyncDispose=Symbol());function bi(e,t){const c=e,g=c[Symbol.dispose];return c[Symbol.dispose]=()=>{t(),g?.()},c}function Si(e,t){const c=e,g=c[Symbol.asyncDispose];return c[Symbol.asyncDispose]=async()=>{await t(),await g?.()},c}const gr=Symbol();function yi(e){let t=null;return bi({start(){if(t)throw new Error("Timer already started");return new Promise(g=>{t=setTimeout(()=>g(gr),e)})}},()=>{t&&clearTimeout(t)})}var Fe=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function c(){var g=typeof SuppressedError=="function"?SuppressedError:function(r,n){var l=Error();return l.name="SuppressedError",l.error=r,l.suppressed=n,l},m={},k=[];function C(r,n){if(n!=null){if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var l=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(l===void 0&&(l=n[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var p=l;if(typeof l!="function")throw new TypeError("Object is not disposable.");p&&(l=function(){try{p.call(n)}catch(f){return Promise.reject(f)}}),k.push({v:n,d:l,a:r})}else r&&k.push({d:n,a:r});return n}return{e:m,u:C.bind(null,!1),a:C.bind(null,!0),d:function(){var n,l=this.e,p=0;function h(){for(;n=k.pop();)try{if(!n.a&&p===1)return p=0,k.push(n),Promise.resolve().then(h);if(n.d){var _=n.d.call(n.v);if(n.a)return p|=2,Promise.resolve(_).then(h,f)}else p|=1}catch(b){return f(b)}if(p===1)return l!==m?Promise.reject(l):Promise.resolve();if(l!==m)throw l}function f(_){return l=l!==m?new g(_,l):_,h()}return h()}}}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),vt=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function c(g,m){this.v=g,this.k=m}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),je=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var c=vt();function g(m){return new c(m,0)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),ke=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var c=vt();function g(k){return function(){return new m(k.apply(this,arguments))}}function m(k){var C,r;function n(p,h){try{var f=k[p](h),_=f.value,b=_ instanceof c;Promise.resolve(b?_.v:_).then(function(u){if(b){var s=p==="return"?"return":"next";if(!_.k||u.done)return n(s,u);u=k[s](u).value}l(f.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){l("throw",u)}}function l(p,h){switch(p){case"return":C.resolve({value:h,done:!0});break;case"throw":C.reject(h);break;default:C.resolve({value:h,done:!1})}(C=C.next)?n(C.key,C.arg):r=null}this._invoke=function(p,h){return new Promise(function(f,_){var b={key:p,arg:h,resolve:f,reject:_,next:null};r?r=r.next=b:(C=r=b,n(p,h))})},typeof k.return!="function"&&(this.return=void 0)}m.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(k){return this._invoke("next",k)},m.prototype.throw=function(k){return this._invoke("throw",k)},m.prototype.return=function(k){return this._invoke("return",k)},t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(Fe());Q(je());Q(ke());Q(Fe());Q(je());Q(ke());Q(Fe());Q(je());Q(ke());var mr=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function c(m){var k,C,r,n=2;for(typeof Symbol<"u"&&(C=Symbol.asyncIterator,r=Symbol.iterator);n--;){if(C&&(k=m[C])!=null)return k.call(m);if(r&&(k=m[r])!=null)return new g(k.call(m));C="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function g(m){function k(C){if(Object(C)!==C)return Promise.reject(new TypeError(C+" is not an object."));var r=C.done;return Promise.resolve(C.value).then(function(n){return{value:n,done:r}})}return g=function(r){this.s=r,this.n=r.next},g.prototype={s:null,n:null,next:function(){return k(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return n===void 0?Promise.resolve({value:r,done:!0}):k(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return n===void 0?Promise.reject(r):k(n.apply(this.s,arguments))}},new g(m)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(je());Q(ke());Q(Fe());Q(mr());var wi=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js"(e,t){var c=vt();function g(m){var k={},C=!1;function r(n,l){return C=!0,l=new Promise(function(p){p(m[n](l))}),{done:!1,value:new c(l,1)}}return k[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},k.next=function(n){return C?(C=!1,n):r("next",n)},typeof m.throw=="function"&&(k.throw=function(n){if(C)throw C=!1,n;return r("throw",n)}),typeof m.return=="function"&&(k.return=function(n){return C?(C=!1,n):r("return",n)}),k}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(mr());var At=Q(je()),Ci=Q(ke());Q(wi());var br=Q(Fe());const Ei="ping",xi="serialized-error",ki="connected",Ri="return";async function Di(e){try{var t=(0,br.default)();const c=t.u(yi(e.timeoutMs)),g=await vr.race([e.promise,c.start()]);return g===gr?await e.onTimeout():g}catch(c){t.e=c}finally{t.d()}}function Li(e){const{deserialize:t=r=>r}=e;let c={};const g=e.signal;let m=null;const k=()=>new ReadableStream({async start(r){const[n,l]=await Promise.all([e.url(),e.init()]),p=m=new e.EventSource(n,l);r.enqueue({type:"connecting",eventSource:m,event:null}),p.addEventListener(ki,f=>{const b=JSON.parse(f.data);c=b,r.enqueue({type:"connected",options:b,eventSource:p})}),p.addEventListener(xi,f=>{const _=f;r.enqueue({type:"serialized-error",error:t(JSON.parse(_.data)),eventSource:p})}),p.addEventListener(Ei,()=>{r.enqueue({type:"ping",eventSource:p})}),p.addEventListener(Ri,()=>{p.close(),r.close(),m=null}),p.addEventListener("error",f=>{p.readyState===p.CLOSED?r.error(f):r.enqueue({type:"connecting",eventSource:p,event:f})}),p.addEventListener("message",f=>{const _=f,u={data:t(JSON.parse(_.data))};_.lastEventId&&(u.id=_.lastEventId),r.enqueue({type:"data",data:u,eventSource:p})});const h=()=>{try{p.close(),r.close()}catch{}};g.aborted?h():g.addEventListener("abort",h)},cancel(){m?.close()}}),C=()=>{let r=k(),n=r.getReader();async function l(){await n.cancel(),m=null}return Si({read(){return n.read()},async recreate(){await l(),r=k(),n=r.getReader()}},l)};return hr((0,Ci.default)(function*(){try{var r=(0,br.default)();const n=r.a(C());for(;;){let l=n.read();const p=c.reconnectAfterInactivityMs;p&&(l=Di({promise:l,timeoutMs:p,onTimeout:async()=>{const f={value:{type:"timeout",ms:p,eventSource:m},done:!1};return await n.recreate(),f}}));const h=yield(0,At.default)(l);if(h.done)return h.value;yield h.value}}catch(n){r.e=n}finally{yield(0,At.default)(r.d())}}))}Q(ke());Q(He());var qe=oe(Ce()),Ee=oe(ue());function Ai(e){return e instanceof me}function Pi(e){return Te(e)&&Te(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Oi(e,t){return typeof e=="string"?e:Te(e)&&typeof e.message=="string"?e.message:t}var me=class Ye extends Error{constructor(t,c){var g,m;const k=c?.cause;super(t,{cause:k}),(0,qe.default)(this,"cause",void 0),(0,qe.default)(this,"shape",void 0),(0,qe.default)(this,"data",void 0),(0,qe.default)(this,"meta",void 0),this.meta=c?.meta,this.cause=k,this.shape=c==null||(g=c.result)===null||g===void 0?void 0:g.error,this.data=c==null||(m=c.result)===null||m===void 0?void 0:m.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ye.prototype)}static from(t,c={}){const g=t;return Ai(g)?(c.meta&&(g.meta=(0,Ee.default)((0,Ee.default)({},g.meta),c.meta)),g):Pi(g)?new Ye(g.error.message,(0,Ee.default)((0,Ee.default)({},c),{},{result:g})):new Ye(Oi(g,"Unknown error"),(0,Ee.default)((0,Ee.default)({},c),{},{cause:g}))}};function Sr(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:c=>c,deserialize:c=>c},output:{serialize:c=>c,deserialize:c=>c}}}const Pt=e=>typeof e=="function";function Ti(e){if(e)return e;if(typeof window<"u"&&Pt(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Pt(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Pe=oe(ue());function Bi(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Sr(e.transformer),methodOverride:e.methodOverride}}function Ii(e){const t={};for(let c=0;c<e.length;c++){const g=e[c];t[c]=g}return t}const Mi={query:"GET",mutation:"POST",subscription:"PATCH"};function yr(e){return"input"in e?e.transformer.input.serialize(e.input):Ii(e.inputs.map(t=>e.transformer.input.serialize(t)))}const gt=e=>{const t=e.url.split("?");let g=t[0].replace(/\/$/,"")+"/"+e.path;const m=[];if(t[1]&&m.push(t[1]),"inputs"in e&&m.push("batch=1"),e.type==="query"||e.type==="subscription"){const k=yr(e);k!==void 0&&e.methodOverride!=="POST"&&m.push(`input=${encodeURIComponent(JSON.stringify(k))}`)}return m.length&&(g+="?"+m.join("&")),g},Hi=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=yr(e);return t!==void 0?JSON.stringify(t):void 0},Fi=e=>Wi((0,Pe.default)((0,Pe.default)({},e),{},{contentTypeHeader:"application/json",getUrl:gt,getBody:Hi}));var ji=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const zi=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new ji};async function $i(e){var t;zi(e.signal);const c=e.getUrl(e),g=e.getBody(e),{type:m}=e,k=await(async()=>{const r=await e.headers();return Symbol.iterator in r?Object.fromEntries(r):r})(),C=(0,Pe.default)((0,Pe.default)((0,Pe.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),k);return Ti(e.fetch)(c,{method:(t=e.methodOverride)!==null&&t!==void 0?t:Mi[m],signal:e.signal,body:g,headers:C})}async function Wi(e){const t={},c=await $i(e);t.response=c;const g=await c.json();return t.responseJSON=g,{json:g,meta:t}}oe(ue());const Ot=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Tt(e){let t=null,c=null;const g=()=>{clearTimeout(c),c=null,t=null};function m(r){const n=[[]];let l=0;for(;;){const f=r[l];if(!f)break;const _=n[n.length-1];if(f.aborted){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Aborted")),l++;continue}if(e.validate(_.concat(f).map(u=>u.key))){_.push(f),l++;continue}if(_.length===0){var h;(h=f.reject)===null||h===void 0||h.call(f,new Error("Input is too big for a single dispatch")),l++;continue}n.push([])}return n}function k(){const r=m(t);g();for(const n of r){if(!n.length)continue;const l={items:n};for(const h of n)h.batch=l;e.fetch(l.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(_,b)=>{const u=l.items[b];try{var s;const i=await Promise.resolve(_);(s=u.resolve)===null||s===void 0||s.call(u,i)}catch(i){var a;(a=u.reject)===null||a===void 0||a.call(u,i)}u.batch=null,u.reject=null,u.resolve=null}));for(const _ of l.items){var f;(f=_.reject)===null||f===void 0||f.call(_,new Error("Missing result")),_.batch=null}}).catch(h=>{for(const _ of l.items){var f;(f=_.reject)===null||f===void 0||f.call(_,h),_.batch=null}})}}function C(r){var n;const l={aborted:!1,key:r,batch:null,resolve:Ot,reject:Ot},p=new Promise((h,f)=>{var _;l.reject=f,l.resolve=h,(_=t)!==null&&_!==void 0||(t=[]),t.push(l)});return(n=c)!==null&&n!==void 0||(c=setTimeout(k)),p}return{load:C}}function Ui(...e){const t=new AbortController,c=e.length;let g=0;const m=()=>{++g===c&&t.abort()};for(const k of e)k?.aborted?m():k?.addEventListener("abort",m,{once:!0});return t.signal}function Ni(...e){const t=new AbortController;for(const c of e)c?.aborted?t.abort():c?.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal}var Ke=oe(ue());function wr(e){var t,c;const g=Bi(e),m=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,k=(c=e.maxItems)!==null&&c!==void 0?c:1/0;return()=>{const C=p=>({validate(h){if(m===1/0&&k===1/0)return!0;if(h.length>k)return!1;const f=h.map(u=>u.path).join(","),_=h.map(u=>u.input);return gt((0,Ke.default)((0,Ke.default)({},g),{},{type:p,path:f,inputs:_,signal:null})).length<=m},async fetch(h){const f=h.map(i=>i.path).join(","),_=h.map(i=>i.input),b=Ui(...h.map(i=>i.signal)),u=await Fi((0,Ke.default)((0,Ke.default)({},g),{},{path:f,inputs:_,type:p,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:b}));return(Array.isArray(u.json)?u.json:h.map(()=>u.json)).map(i=>({meta:u.meta,json:i}))}}),r=Tt(C("query")),n=Tt(C("mutation")),l={query:r,mutation:n};return({op:p})=>xe(h=>{/* istanbul ignore if -- @preserve */if(p.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const _=l[p.type].load(p);let b;return _.then(u=>{b=u;const s=di(u.json,g.transformer.output);if(!s.ok){h.error(me.from(s.error,{meta:u.meta}));return}h.next({context:u.meta,result:s.result}),h.complete()}).catch(u=>{h.error(me.from(u,{meta:b?.meta}))}),()=>{}})}}oe(ue());const Be=(e,...t)=>typeof e=="function"?e(...t):e;oe(Ce());function Zi(){let e,t;return{promise:new Promise((g,m)=>{e=g,t=m}),resolve:e,reject:t}}async function qi(e){const t=await Be(e.url);if(!e.connectionParams)return t;const g=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+g}async function Ki(e){const t={method:"connectionParams",data:await Be(e)};return JSON.stringify(t)}oe(Ce());var Se=oe(Ce());function Vi(e){const{promise:t,resolve:c,reject:g}=Zi();return e.addEventListener("open",()=>{e.removeEventListener("error",g),c()}),e.addEventListener("error",g),t}function Gi(e,{intervalMs:t,pongTimeoutMs:c}){let g,m;function k(){g=setTimeout(()=>{e.send("PING"),m=setTimeout(()=>{e.close()},c)},t)}function C(){clearTimeout(g),k()}function r(){clearTimeout(m),C()}e.addEventListener("open",k),e.addEventListener("message",({data:n})=>{clearTimeout(g),k(),n==="PONG"&&r()}),e.addEventListener("close",()=>{clearTimeout(g),clearTimeout(m)})}var Ji=class dt{constructor(t){var c;if((0,Se.default)(this,"id",++dt.connectCount),(0,Se.default)(this,"WebSocketPonyfill",void 0),(0,Se.default)(this,"urlOptions",void 0),(0,Se.default)(this,"keepAliveOpts",void 0),(0,Se.default)(this,"wsObservable",or(null)),(0,Se.default)(this,"openPromise",null),this.WebSocketPonyfill=(c=t.WebSocketPonyfill)!==null&&c!==void 0?c:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++dt.connectCount;const c=qi(t.urlOptions).then(g=>new t.WebSocketPonyfill(g));t.openPromise=c.then(async g=>{t.ws=g,g.addEventListener("message",function({data:m}){m==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&Gi(g,t.keepAliveOpts),g.addEventListener("close",()=>{t.ws===g&&(t.ws=null)}),await Vi(g),t.urlOptions.connectionParams&&g.send(await Ki(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var c;(c=t.ws)===null||c===void 0||c.close()}}};(0,Se.default)(Ji,"connectCount",0);oe(Ce());oe(ue());var ht=oe(Ce()),Bt=oe(ue()),Yi=class{constructor(e){(0,ht.default)(this,"links",void 0),(0,ht.default)(this,"runtime",void 0),(0,ht.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return ar({links:this.links,op:(0,Bt.default)((0,Bt.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(ei())}async requestAsPromise(e){var t=this;try{const c=t.$request(e);return(await Qr(c)).result.data}catch(c){throw me.from(c)}}query(e,t,c){return this.requestAsPromise({type:"query",path:e,input:t,context:c?.context,signal:c?.signal})}mutation(e,t,c){return this.requestAsPromise({type:"mutation",path:e,input:t,context:c?.context,signal:c?.signal})}subscription(e,t,c){return this.$request({type:"subscription",path:e,input:t,context:c.context,signal:c.signal}).subscribe({next(m){switch(m.result.type){case"state":{var k;(k=c.onConnectionStateChange)===null||k===void 0||k.call(c,m.result);break}case"started":{var C;(C=c.onStarted)===null||C===void 0||C.call(c,{context:m.context});break}case"stopped":{var r;(r=c.onStopped)===null||r===void 0||r.call(c);break}case"data":case void 0:{var n;(n=c.onData)===null||n===void 0||n.call(c,m.result.data);break}}},error(m){var k;(k=c.onError)===null||k===void 0||k.call(c,m)},complete(){var m;(m=c.onComplete)===null||m===void 0||m.call(c)}})}};const Xi=Symbol.for("trpc_untypedClient"),Qi={query:"query",mutate:"mutation",subscribe:"subscription"},es=e=>Qi[e];function ts(e){const t=ai(({path:c,args:g})=>{const m=[...c],k=es(m.pop()),C=m.join(".");return e[k](C,...g)});return ci(c=>c===Xi?e:t[c])}function Cr(e){const t=new Yi(e);return ts(t)}oe(ue());var It=oe(ue());function rs(e,t){return!t||e!=null&&typeof e!="object"?e:(0,It.default)((0,It.default)({},e??{}),{},{lastEventId:t})}var is=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function c(m){var k,C,r,n=2;for(typeof Symbol<"u"&&(C=Symbol.asyncIterator,r=Symbol.iterator);n--;){if(C&&(k=m[C])!=null)return k.call(m);if(r&&(k=m[r])!=null)return new g(k.call(m));C="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function g(m){function k(C){if(Object(C)!==C)return Promise.reject(new TypeError(C+" is not an object."));var r=C.done;return Promise.resolve(C.value).then(function(n){return{value:n,done:r}})}return g=function(r){this.s=r,this.n=r.next},g.prototype={s:null,n:null,next:function(){return k(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return n===void 0?Promise.resolve({value:r,done:!0}):k(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return n===void 0?Promise.reject(r):k(n.apply(this.s,arguments))}},new g(m)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),ss=oe(is());async function ns(e){let t=await Be(e.url);if(e.connectionParams){const c=await Be(e.connectionParams),g=t.includes("?")?"&":"?";t+=g+"connectionParams="+encodeURIComponent(JSON.stringify(c))}return t}function Er(e){const t=Sr(e.transformer);return()=>({op:c})=>xe(g=>{var m;const{type:k,path:C,input:r}=c;/* istanbul ignore if -- @preserve */if(k!=="subscription")throw new Error("httpSubscriptionLink only supports subscriptions");let n;const l=new AbortController,p=Ni(c.signal,l.signal),h=Li({url:async()=>gt({transformer:t,url:await ns(e),input:rs(r,n),path:C,type:k,signal:null}),init:()=>Be(e.eventSourceOptions,{op:c}),signal:p,deserialize:t.output.deserialize,EventSource:(m=e.EventSource)!==null&&m!==void 0?m:globalThis.EventSource}),f=or({type:"state",state:"connecting",error:null}),_=f.subscribe({next(b){g.next({result:b})}});return hr(async()=>{var b=!1,u=!1,s;try{for(var a=(0,ss.default)(h),i;b=!(i=await a.next()).done;b=!1){const o=i.value;switch(o.type){case"ping":break;case"data":const d=o.data;let S;d.id?(n=d.id,S={id:d.id,data:d}):S={data:d.data},g.next({result:S,context:{eventSource:o.eventSource}});break;case"connected":{g.next({result:{type:"started"},context:{eventSource:o.eventSource}}),f.next({type:"state",state:"pending",error:null});break}case"serialized-error":{const y=me.from({error:o.error});if(ti.includes(o.error.code)){f.next({type:"state",state:"connecting",error:y});break}throw y}case"connecting":{const y=f.get(),w=o.event&&me.from(o.event);if(!w&&y.state==="connecting")break;f.next({type:"state",state:"connecting",error:w});break}case"timeout":f.next({type:"state",state:"connecting",error:new me(`Timeout of ${o.ms}ms reached while waiting for a response`)})}}}catch(o){u=!0,s=o}finally{try{b&&a.return!=null&&await a.return()}finally{if(u)throw s}}g.next({result:{type:"stopped"}}),f.next({type:"state",state:"idle",error:null}),g.complete()}).catch(b=>{g.error(me.from(b))}),()=>{g.complete(),l.abort(),_.unsubscribe()}})}oe(ue());var os=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function c(){var g=typeof SuppressedError=="function"?SuppressedError:function(r,n){var l=Error();return l.name="SuppressedError",l.error=r,l.suppressed=n,l},m={},k=[];function C(r,n){if(n!=null){if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var l=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(l===void 0&&(l=n[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var p=l;if(typeof l!="function")throw new TypeError("Object is not disposable.");p&&(l=function(){try{p.call(n)}catch(f){return Promise.reject(f)}}),k.push({v:n,d:l,a:r})}else r&&k.push({d:n,a:r});return n}return{e:m,u:C.bind(null,!1),a:C.bind(null,!0),d:function(){var n,l=this.e,p=0;function h(){for(;n=k.pop();)try{if(!n.a&&p===1)return p=0,k.push(n),Promise.resolve().then(h);if(n.d){var _=n.d.call(n.v);if(n.a)return p|=2,Promise.resolve(_).then(h,f)}else p|=1}catch(b){return f(b)}if(p===1)return l!==m?Promise.reject(l):Promise.resolve();if(l!==m)throw l}function f(_){return l=l!==m?new g(_,l):_,h()}return h()}}}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),xr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function c(g,m){this.v=g,this.k=m}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),as=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var c=xr();function g(m){return new c(m,0)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),cs=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var c=xr();function g(k){return function(){return new m(k.apply(this,arguments))}}function m(k){var C,r;function n(p,h){try{var f=k[p](h),_=f.value,b=_ instanceof c;Promise.resolve(b?_.v:_).then(function(u){if(b){var s=p==="return"?"return":"next";if(!_.k||u.done)return n(s,u);u=k[s](u).value}l(f.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){l("throw",u)}}function l(p,h){switch(p){case"return":C.resolve({value:h,done:!0});break;case"throw":C.reject(h);break;default:C.resolve({value:h,done:!1})}(C=C.next)?n(C.key,C.arg):r=null}this._invoke=function(p,h){return new Promise(function(f,_){var b={key:p,arg:h,resolve:f,reject:_,next:null};r?r=r.next=b:(C=r=b,n(p,h))})},typeof k.return!="function"&&(this.return=void 0)}m.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(k){return this._invoke("next",k)},m.prototype.throw=function(k){return this._invoke("throw",k)},m.prototype.return=function(k){return this._invoke("return",k)},t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});oe(os());oe(as());oe(cs());oe(ue());const hs={version:"1.7.1",latte:{name:"Latte",emoji:"🌻",order:0,dark:!1,colors:{rosewater:{name:"Rosewater",order:0,hex:"#dc8a78",rgb:{r:220,g:138,b:120},hsl:{h:10.799999999999995,s:.5882352941176472,l:.6666666666666667},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#dd7878",rgb:{r:221,g:120,b:120},hsl:{h:0,s:.5976331360946746,l:.6686274509803922},accent:!0},pink:{name:"Pink",order:2,hex:"#ea76cb",rgb:{r:234,g:118,b:203},hsl:{h:316.0344827586207,s:.7341772151898731,l:.6901960784313725},accent:!0},mauve:{name:"Mauve",order:3,hex:"#8839ef",rgb:{r:136,g:57,b:239},hsl:{h:266.0439560439561,s:.8504672897196262,l:.5803921568627451},accent:!0},red:{name:"Red",order:4,hex:"#d20f39",rgb:{r:210,g:15,b:57},hsl:{h:347.0769230769231,s:.8666666666666666,l:.4411764705882353},accent:!0},maroon:{name:"Maroon",order:5,hex:"#e64553",rgb:{r:230,g:69,b:83},hsl:{h:354.78260869565213,s:.76303317535545,l:.5862745098039216},accent:!0},peach:{name:"Peach",order:6,hex:"#fe640b",rgb:{r:254,g:100,b:11},hsl:{h:21.975308641975307,s:.9918367346938776,l:.5196078431372549},accent:!0},yellow:{name:"Yellow",order:7,hex:"#df8e1d",rgb:{r:223,g:142,b:29},hsl:{h:34.948453608247426,s:.7698412698412698,l:.49411764705882355},accent:!0},green:{name:"Green",order:8,hex:"#40a02b",rgb:{r:64,g:160,b:43},hsl:{h:109.23076923076923,s:.5763546798029556,l:.39803921568627454},accent:!0},teal:{name:"Teal",order:9,hex:"#179299",rgb:{r:23,g:146,b:153},hsl:{h:183.23076923076923,s:.7386363636363636,l:.34509803921568627},accent:!0},sky:{name:"Sky",order:10,hex:"#04a5e5",rgb:{r:4,g:165,b:229},hsl:{h:197.0666666666667,s:.965665236051502,l:.45686274509803926},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#209fb5",rgb:{r:32,g:159,b:181},hsl:{h:188.85906040268458,s:.6995305164319249,l:.4176470588235294},accent:!0},blue:{name:"Blue",order:12,hex:"#1e66f5",rgb:{r:30,g:102,b:245},hsl:{h:219.90697674418607,s:.9148936170212768,l:.5392156862745098},accent:!0},lavender:{name:"Lavender",order:13,hex:"#7287fd",rgb:{r:114,g:135,b:253},hsl:{h:230.93525179856115,s:.9720279720279721,l:.7196078431372549},accent:!0},text:{name:"Text",order:14,hex:"#4c4f69",rgb:{r:76,g:79,b:105},hsl:{h:233.79310344827587,s:.16022099447513813,l:.3549019607843137},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#5c5f77",rgb:{r:92,g:95,b:119},hsl:{h:233.33333333333334,s:.1279620853080569,l:.4137254901960784},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#6c6f85",rgb:{r:108,g:111,b:133},hsl:{h:232.79999999999998,s:.10373443983402494,l:.4725490196078431},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#7c7f93",rgb:{r:124,g:127,b:147},hsl:{h:232.17391304347825,s:.09623430962343092,l:.5313725490196078},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#8c8fa1",rgb:{r:140,g:143,b:161},hsl:{h:231.42857142857144,s:.10047846889952144,l:.5901960784313726},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#9ca0b0",rgb:{r:156,g:160,b:176},hsl:{h:228.00000000000003,s:.11235955056179768,l:.6509803921568628},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#acb0be",rgb:{r:172,g:176,b:190},hsl:{h:226.6666666666667,s:.12162162162162159,l:.7098039215686275},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#bcc0cc",rgb:{r:188,g:192,b:204},hsl:{h:225.00000000000003,s:.13559322033898308,l:.7686274509803922},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#ccd0da",rgb:{r:204,g:208,b:218},hsl:{h:222.85714285714292,s:.1590909090909089,l:.8274509803921568},accent:!1},base:{name:"Base",order:23,hex:"#eff1f5",rgb:{r:239,g:241,b:245},hsl:{h:220.00000000000009,s:.23076923076923136,l:.9490196078431372},accent:!1},mantle:{name:"Mantle",order:24,hex:"#e6e9ef",rgb:{r:230,g:233,b:239},hsl:{h:220.00000000000006,s:.21951219512195116,l:.919607843137255},accent:!1},crust:{name:"Crust",order:25,hex:"#dce0e8",rgb:{r:220,g:224,b:232},hsl:{h:220.00000000000006,s:.20689655172413762,l:.8862745098039215},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#5c5f77",rgb:{r:92,g:95,b:119},hsl:{h:233.33333333333334,s:.1279620853080569,l:.4137254901960784},code:0},bright:{name:"Bright Black",hex:"#6c6f85",rgb:{r:108,g:111,b:133},hsl:{h:232.79999999999998,s:.10373443983402494,l:.4725490196078431},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#d20f39",rgb:{r:210,g:15,b:57},hsl:{h:347.0769230769231,s:.8666666666666666,l:.4411764705882353},code:1},bright:{name:"Bright Red",hex:"#de293e",rgb:{r:222,g:41,b:62},hsl:{h:353.0386740331492,s:.7327935222672065,l:.515686274509804},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#40a02b",rgb:{r:64,g:160,b:43},hsl:{h:109.23076923076923,s:.5763546798029556,l:.39803921568627454},code:2},bright:{name:"Bright Green",hex:"#49af3d",rgb:{r:73,g:175,b:61},hsl:{h:113.68421052631581,s:.48305084745762705,l:.4627450980392157},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#df8e1d",rgb:{r:223,g:142,b:29},hsl:{h:34.948453608247426,s:.7698412698412698,l:.49411764705882355},code:3},bright:{name:"Bright Yellow",hex:"#eea02d",rgb:{r:238,g:160,b:45},hsl:{h:35.751295336787564,s:.8502202643171807,l:.5549019607843138},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#1e66f5",rgb:{r:30,g:102,b:245},hsl:{h:219.90697674418607,s:.9148936170212768,l:.5392156862745098},code:4},bright:{name:"Bright Blue",hex:"#456eff",rgb:{r:69,g:110,b:255},hsl:{h:226.77419354838707,s:1,l:.6352941176470588},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#ea76cb",rgb:{r:234,g:118,b:203},hsl:{h:316.0344827586207,s:.7341772151898731,l:.6901960784313725},code:5},bright:{name:"Bright Magenta",hex:"#fe85d8",rgb:{r:254,g:133,b:216},hsl:{h:318.8429752066116,s:.983739837398374,l:.7588235294117647},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#179299",rgb:{r:23,g:146,b:153},hsl:{h:183.23076923076923,s:.7386363636363636,l:.34509803921568627},code:6},bright:{name:"Bright Cyan",hex:"#2d9fa8",rgb:{r:45,g:159,b:168},hsl:{h:184.39024390243904,s:.5774647887323943,l:.4176470588235294},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#acb0be",rgb:{r:172,g:176,b:190},hsl:{h:226.6666666666667,s:.12162162162162159,l:.7098039215686275},code:7},bright:{name:"Bright White",hex:"#bcc0cc",rgb:{r:188,g:192,b:204},hsl:{h:225.00000000000003,s:.13559322033898308,l:.7686274509803922},code:15}}}},frappe:{name:"Frappé",emoji:"🪴",order:1,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f2d5cf",rgb:{r:242,g:213,b:207},hsl:{h:10.2857142857143,s:.5737704918032784,l:.8803921568627451},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#eebebe",rgb:{r:238,g:190,b:190},hsl:{h:0,s:.5853658536585367,l:.8392156862745098},accent:!0},pink:{name:"Pink",order:2,hex:"#f4b8e4",rgb:{r:244,g:184,b:228},hsl:{h:316,s:.7317073170731713,l:.8392156862745098},accent:!0},mauve:{name:"Mauve",order:3,hex:"#ca9ee6",rgb:{r:202,g:158,b:230},hsl:{h:276.66666666666663,s:.5901639344262294,l:.7607843137254902},accent:!0},red:{name:"Red",order:4,hex:"#e78284",rgb:{r:231,g:130,b:132},hsl:{h:358.8118811881188,s:.6778523489932885,l:.7078431372549019},accent:!0},maroon:{name:"Maroon",order:5,hex:"#ea999c",rgb:{r:234,g:153,b:156},hsl:{h:357.77777777777777,s:.6585365853658534,l:.7588235294117647},accent:!0},peach:{name:"Peach",order:6,hex:"#ef9f76",rgb:{r:239,g:159,b:118},hsl:{h:20.33057851239669,s:.7908496732026143,l:.7},accent:!0},yellow:{name:"Yellow",order:7,hex:"#e5c890",rgb:{r:229,g:200,b:144},hsl:{h:39.52941176470588,s:.6204379562043796,l:.7313725490196079},accent:!0},green:{name:"Green",order:8,hex:"#a6d189",rgb:{r:166,g:209,b:137},hsl:{h:95.83333333333331,s:.4390243902439024,l:.6784313725490196},accent:!0},teal:{name:"Teal",order:9,hex:"#81c8be",rgb:{r:129,g:200,b:190},hsl:{h:171.5492957746479,s:.3922651933701657,l:.6450980392156862},accent:!0},sky:{name:"Sky",order:10,hex:"#99d1db",rgb:{r:153,g:209,b:219},hsl:{h:189.09090909090907,s:.47826086956521735,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#85c1dc",rgb:{r:133,g:193,b:220},hsl:{h:198.62068965517244,s:.5541401273885351,l:.692156862745098},accent:!0},blue:{name:"Blue",order:12,hex:"#8caaee",rgb:{r:140,g:170,b:238},hsl:{h:221.6326530612245,s:.7424242424242424,l:.7411764705882353},accent:!0},lavender:{name:"Lavender",order:13,hex:"#babbf1",rgb:{r:186,g:187,b:241},hsl:{h:238.90909090909093,s:.6626506024096385,l:.8372549019607842},accent:!0},text:{name:"Text",order:14,hex:"#c6d0f5",rgb:{r:198,g:208,b:245},hsl:{h:227.2340425531915,s:.7014925373134333,l:.8686274509803922},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#b5bfe2",rgb:{r:181,g:191,b:226},hsl:{h:226.66666666666669,s:.43689320388349495,l:.7980392156862746},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a5adce",rgb:{r:165,g:173,b:206},hsl:{h:228.29268292682926,s:.2949640287769784,l:.7274509803921569},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#949cbb",rgb:{r:148,g:156,b:187},hsl:{h:227.69230769230768,s:.22285714285714275,l:.6568627450980392},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#838ba7",rgb:{r:131,g:139,b:167},hsl:{h:226.66666666666669,s:.16981132075471703,l:.584313725490196},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#737994",rgb:{r:115,g:121,b:148},hsl:{h:229.0909090909091,s:.13360323886639683,l:.515686274509804},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#626880",rgb:{r:98,g:104,b:128},hsl:{h:228.00000000000003,s:.1327433628318584,l:.44313725490196076},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#51576d",rgb:{r:81,g:87,b:109},hsl:{h:227.14285714285714,s:.14736842105263157,l:.37254901960784315},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#414559",rgb:{r:65,g:69,b:89},hsl:{h:230.00000000000003,s:.15584415584415584,l:.30196078431372547},accent:!1},base:{name:"Base",order:23,hex:"#303446",rgb:{r:48,g:52,b:70},hsl:{h:229.0909090909091,s:.18644067796610175,l:.23137254901960785},accent:!1},mantle:{name:"Mantle",order:24,hex:"#292c3c",rgb:{r:41,g:44,b:60},hsl:{h:230.52631578947367,s:.18811881188118806,l:.19803921568627453},accent:!1},crust:{name:"Crust",order:25,hex:"#232634",rgb:{r:35,g:38,b:52},hsl:{h:229.41176470588238,s:.19540229885057467,l:.17058823529411765},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#51576d",rgb:{r:81,g:87,b:109},hsl:{h:227.14285714285714,s:.14736842105263157,l:.37254901960784315},code:0},bright:{name:"Bright Black",hex:"#626880",rgb:{r:98,g:104,b:128},hsl:{h:228.00000000000003,s:.1327433628318584,l:.44313725490196076},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#e78284",rgb:{r:231,g:130,b:132},hsl:{h:358.8118811881188,s:.6778523489932885,l:.7078431372549019},code:1},bright:{name:"Bright Red",hex:"#e67172",rgb:{r:230,g:113,b:114},hsl:{h:359.4871794871795,s:.7005988023952096,l:.6725490196078432},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6d189",rgb:{r:166,g:209,b:137},hsl:{h:95.83333333333331,s:.4390243902439024,l:.6784313725490196},code:2},bright:{name:"Bright Green",hex:"#8ec772",rgb:{r:142,g:199,b:114},hsl:{h:100.23529411764706,s:.431472081218274,l:.6137254901960785},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#e5c890",rgb:{r:229,g:200,b:144},hsl:{h:39.52941176470588,s:.6204379562043796,l:.7313725490196079},code:3},bright:{name:"Bright Yellow",hex:"#d9ba73",rgb:{r:217,g:186,b:115},hsl:{h:41.764705882352935,s:.5730337078651685,l:.6509803921568628},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#8caaee",rgb:{r:140,g:170,b:238},hsl:{h:221.6326530612245,s:.7424242424242424,l:.7411764705882353},code:4},bright:{name:"Bright Blue",hex:"#7b9ef0",rgb:{r:123,g:158,b:240},hsl:{h:222.05128205128207,s:.7959183673469388,l:.711764705882353},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f4b8e4",rgb:{r:244,g:184,b:228},hsl:{h:316,s:.7317073170731713,l:.8392156862745098},code:5},bright:{name:"Bright Magenta",hex:"#f2a4db",rgb:{r:242,g:164,b:219},hsl:{h:317.6923076923077,s:.7499999999999998,l:.7960784313725491},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#81c8be",rgb:{r:129,g:200,b:190},hsl:{h:171.5492957746479,s:.3922651933701657,l:.6450980392156862},code:6},bright:{name:"Bright Cyan",hex:"#5abfb5",rgb:{r:90,g:191,b:181},hsl:{h:174.05940594059405,s:.44104803493449785,l:.5509803921568628},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a5adce",rgb:{r:165,g:173,b:206},hsl:{h:228.29268292682926,s:.2949640287769784,l:.7274509803921569},code:7},bright:{name:"Bright White",hex:"#b5bfe2",rgb:{r:181,g:191,b:226},hsl:{h:226.66666666666669,s:.43689320388349495,l:.7980392156862746},code:15}}}},macchiato:{name:"Macchiato",emoji:"🌺",order:2,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f4dbd6",rgb:{r:244,g:219,b:214},hsl:{h:9.999999999999963,s:.5769230769230775,l:.8980392156862745},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#f0c6c6",rgb:{r:240,g:198,b:198},hsl:{h:0,s:.5833333333333333,l:.8588235294117648},accent:!0},pink:{name:"Pink",order:2,hex:"#f5bde6",rgb:{r:245,g:189,b:230},hsl:{h:316.0714285714286,s:.7368421052631583,l:.8509803921568628},accent:!0},mauve:{name:"Mauve",order:3,hex:"#c6a0f6",rgb:{r:198,g:160,b:246},hsl:{h:266.51162790697674,s:.8269230769230772,l:.7960784313725491},accent:!0},red:{name:"Red",order:4,hex:"#ed8796",rgb:{r:237,g:135,b:150},hsl:{h:351.1764705882353,s:.7391304347826088,l:.7294117647058824},accent:!0},maroon:{name:"Maroon",order:5,hex:"#ee99a0",rgb:{r:238,g:153,b:160},hsl:{h:355.05882352941177,s:.7142857142857143,l:.7666666666666666},accent:!0},peach:{name:"Peach",order:6,hex:"#f5a97f",rgb:{r:245,g:169,b:127},hsl:{h:21.355932203389827,s:.8550724637681162,l:.7294117647058824},accent:!0},yellow:{name:"Yellow",order:7,hex:"#eed49f",rgb:{r:238,g:212,b:159},hsl:{h:40.253164556962034,s:.6991150442477877,l:.7784313725490196},accent:!0},green:{name:"Green",order:8,hex:"#a6da95",rgb:{r:166,g:218,b:149},hsl:{h:105.21739130434783,s:.4825174825174825,l:.7196078431372549},accent:!0},teal:{name:"Teal",order:9,hex:"#8bd5ca",rgb:{r:139,g:213,b:202},hsl:{h:171.08108108108107,s:.46835443037974706,l:.6901960784313725},accent:!0},sky:{name:"Sky",order:10,hex:"#91d7e3",rgb:{r:145,g:215,b:227},hsl:{h:188.78048780487802,s:.5942028985507245,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#7dc4e4",rgb:{r:125,g:196,b:228},hsl:{h:198.64077669902912,s:.6560509554140128,l:.692156862745098},accent:!0},blue:{name:"Blue",order:12,hex:"#8aadf4",rgb:{r:138,g:173,b:244},hsl:{h:220.188679245283,s:.8281250000000003,l:.7490196078431373},accent:!0},lavender:{name:"Lavender",order:13,hex:"#b7bdf8",rgb:{r:183,g:189,b:248},hsl:{h:234.46153846153848,s:.8227848101265824,l:.8450980392156863},accent:!0},text:{name:"Text",order:14,hex:"#cad3f5",rgb:{r:202,g:211,b:245},hsl:{h:227.4418604651163,s:.6825396825396831,l:.8764705882352941},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#b8c0e0",rgb:{r:184,g:192,b:224},hsl:{h:228,s:.39215686274509803,l:.8},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a5adcb",rgb:{r:165,g:173,b:203},hsl:{h:227.36842105263156,s:.2676056338028167,l:.7215686274509804},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#939ab7",rgb:{r:147,g:154,b:183},hsl:{h:228.33333333333331,s:.2000000000000001,l:.6470588235294117},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#8087a2",rgb:{r:128,g:135,b:162},hsl:{h:227.6470588235294,s:.1545454545454545,l:.5686274509803921},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#6e738d",rgb:{r:110,g:115,b:141},hsl:{h:230.32258064516128,s:.12350597609561753,l:.49215686274509807},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#5b6078",rgb:{r:91,g:96,b:120},hsl:{h:229.65517241379308,s:.13744075829383887,l:.4137254901960784},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#494d64",rgb:{r:73,g:77,b:100},hsl:{h:231.11111111111114,s:.15606936416184972,l:.3392156862745098},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#363a4f",rgb:{r:54,g:58,b:79},hsl:{h:230.4,s:.1879699248120301,l:.2607843137254902},accent:!1},base:{name:"Base",order:23,hex:"#24273a",rgb:{r:36,g:39,b:58},hsl:{h:231.8181818181818,s:.23404255319148934,l:.1843137254901961},accent:!1},mantle:{name:"Mantle",order:24,hex:"#1e2030",rgb:{r:30,g:32,b:48},hsl:{h:233.33333333333334,s:.23076923076923075,l:.15294117647058825},accent:!1},crust:{name:"Crust",order:25,hex:"#181926",rgb:{r:24,g:25,b:38},hsl:{h:235.71428571428572,s:.22580645161290322,l:.12156862745098039},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#494d64",rgb:{r:73,g:77,b:100},hsl:{h:231.11111111111114,s:.15606936416184972,l:.3392156862745098},code:0},bright:{name:"Bright Black",hex:"#5b6078",rgb:{r:91,g:96,b:120},hsl:{h:229.65517241379308,s:.13744075829383887,l:.4137254901960784},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#ed8796",rgb:{r:237,g:135,b:150},hsl:{h:351.1764705882353,s:.7391304347826088,l:.7294117647058824},code:1},bright:{name:"Bright Red",hex:"#ec7486",rgb:{r:236,g:116,b:134},hsl:{h:351,s:.759493670886076,l:.6901960784313725},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6da95",rgb:{r:166,g:218,b:149},hsl:{h:105.21739130434783,s:.4825174825174825,l:.7196078431372549},code:2},bright:{name:"Bright Green",hex:"#8ccf7f",rgb:{r:140,g:207,b:127},hsl:{h:110.24999999999999,s:.45454545454545453,l:.6549019607843137},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#eed49f",rgb:{r:238,g:212,b:159},hsl:{h:40.253164556962034,s:.6991150442477877,l:.7784313725490196},code:3},bright:{name:"Bright Yellow",hex:"#e1c682",rgb:{r:225,g:198,b:130},hsl:{h:42.94736842105264,s:.6129032258064515,l:.696078431372549},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#8aadf4",rgb:{r:138,g:173,b:244},hsl:{h:220.188679245283,s:.8281250000000003,l:.7490196078431373},code:4},bright:{name:"Bright Blue",hex:"#78a1f6",rgb:{r:120,g:161,b:246},hsl:{h:220.47619047619048,s:.8750000000000002,l:.7176470588235294},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f5bde6",rgb:{r:245,g:189,b:230},hsl:{h:316.0714285714286,s:.7368421052631583,l:.8509803921568628},code:5},bright:{name:"Bright Magenta",hex:"#f2a9dd",rgb:{r:242,g:169,b:221},hsl:{h:317.26027397260276,s:.7373737373737372,l:.8058823529411765},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#8bd5ca",rgb:{r:139,g:213,b:202},hsl:{h:171.08108108108107,s:.46835443037974706,l:.6901960784313725},code:6},bright:{name:"Bright Cyan",hex:"#63cbc0",rgb:{r:99,g:203,b:192},hsl:{h:173.65384615384616,s:.4999999999999998,l:.592156862745098},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a5adcb",rgb:{r:165,g:173,b:203},hsl:{h:227.36842105263156,s:.2676056338028167,l:.7215686274509804},code:7},bright:{name:"Bright White",hex:"#b8c0e0",rgb:{r:184,g:192,b:224},hsl:{h:228,s:.39215686274509803,l:.8},code:15}}}},mocha:{name:"Mocha",emoji:"🌿",order:3,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f5e0dc",rgb:{r:245,g:224,b:220},hsl:{h:9.599999999999968,s:.555555555555556,l:.911764705882353},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#f2cdcd",rgb:{r:242,g:205,b:205},hsl:{h:0,s:.587301587301587,l:.8764705882352941},accent:!0},pink:{name:"Pink",order:2,hex:"#f5c2e7",rgb:{r:245,g:194,b:231},hsl:{h:316.4705882352941,s:.7183098591549301,l:.8607843137254902},accent:!0},mauve:{name:"Mauve",order:3,hex:"#cba6f7",rgb:{r:203,g:166,b:247},hsl:{h:267.4074074074074,s:.8350515463917528,l:.8098039215686275},accent:!0},red:{name:"Red",order:4,hex:"#f38ba8",rgb:{r:243,g:139,b:168},hsl:{h:343.2692307692308,s:.8124999999999998,l:.7490196078431373},accent:!0},maroon:{name:"Maroon",order:5,hex:"#eba0ac",rgb:{r:235,g:160,b:172},hsl:{h:350.4,s:.6521739130434779,l:.7745098039215685},accent:!0},peach:{name:"Peach",order:6,hex:"#fab387",rgb:{r:250,g:179,b:135},hsl:{h:22.95652173913043,s:.92,l:.7549019607843137},accent:!0},yellow:{name:"Yellow",order:7,hex:"#f9e2af",rgb:{r:249,g:226,b:175},hsl:{h:41.35135135135135,s:.8604651162790699,l:.8313725490196078},accent:!0},green:{name:"Green",order:8,hex:"#a6e3a1",rgb:{r:166,g:227,b:161},hsl:{h:115.45454545454544,s:.5409836065573769,l:.7607843137254902},accent:!0},teal:{name:"Teal",order:9,hex:"#94e2d5",rgb:{r:148,g:226,b:213},hsl:{h:170.00000000000003,s:.5735294117647057,l:.7333333333333334},accent:!0},sky:{name:"Sky",order:10,hex:"#89dceb",rgb:{r:137,g:220,b:235},hsl:{h:189.18367346938774,s:.7101449275362316,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#74c7ec",rgb:{r:116,g:199,b:236},hsl:{h:198.5,s:.759493670886076,l:.6901960784313725},accent:!0},blue:{name:"Blue",order:12,hex:"#89b4fa",rgb:{r:137,g:180,b:250},hsl:{h:217.1681415929203,s:.9186991869918699,l:.7588235294117647},accent:!0},lavender:{name:"Lavender",order:13,hex:"#b4befe",rgb:{r:180,g:190,b:254},hsl:{h:231.89189189189187,s:.9736842105263159,l:.8509803921568628},accent:!0},text:{name:"Text",order:14,hex:"#cdd6f4",rgb:{r:205,g:214,b:244},hsl:{h:226.15384615384616,s:.6393442622950825,l:.8803921568627451},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#bac2de",rgb:{r:186,g:194,b:222},hsl:{h:226.66666666666669,s:.35294117647058837,l:.8},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a6adc8",rgb:{r:166,g:173,b:200},hsl:{h:227.6470588235294,s:.23611111111111102,l:.7176470588235294},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#9399b2",rgb:{r:147,g:153,b:178},hsl:{h:228.38709677419354,s:.16756756756756758,l:.6372549019607843},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#7f849c",rgb:{r:127,g:132,b:156},hsl:{h:229.65517241379308,s:.12775330396475776,l:.5549019607843138},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#6c7086",rgb:{r:108,g:112,b:134},hsl:{h:230.7692307692308,s:.10743801652892565,l:.4745098039215686},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#585b70",rgb:{r:88,g:91,b:112},hsl:{h:232.5,s:.12,l:.39215686274509803},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#45475a",rgb:{r:69,g:71,b:90},hsl:{h:234.2857142857143,s:.13207547169811326,l:.31176470588235294},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#313244",rgb:{r:49,g:50,b:68},hsl:{h:236.84210526315792,s:.16239316239316234,l:.22941176470588237},accent:!1},base:{name:"Base",order:23,hex:"#1e1e2e",rgb:{r:30,g:30,b:46},hsl:{h:240,s:.21052631578947367,l:.14901960784313725},accent:!1},mantle:{name:"Mantle",order:24,hex:"#181825",rgb:{r:24,g:24,b:37},hsl:{h:240,s:.2131147540983607,l:.11960784313725491},accent:!1},crust:{name:"Crust",order:25,hex:"#11111b",rgb:{r:17,g:17,b:27},hsl:{h:240,s:.22727272727272727,l:.08627450980392157},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#45475a",rgb:{r:69,g:71,b:90},hsl:{h:234.2857142857143,s:.13207547169811326,l:.31176470588235294},code:0},bright:{name:"Bright Black",hex:"#585b70",rgb:{r:88,g:91,b:112},hsl:{h:232.5,s:.12,l:.39215686274509803},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#f38ba8",rgb:{r:243,g:139,b:168},hsl:{h:343.2692307692308,s:.8124999999999998,l:.7490196078431373},code:1},bright:{name:"Bright Red",hex:"#f37799",rgb:{r:243,g:119,b:153},hsl:{h:343.54838709677415,s:.8378378378378376,l:.7098039215686274},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6e3a1",rgb:{r:166,g:227,b:161},hsl:{h:115.45454545454544,s:.5409836065573769,l:.7607843137254902},code:2},bright:{name:"Bright Green",hex:"#89d88b",rgb:{r:137,g:216,b:139},hsl:{h:121.51898734177213,s:.5031847133757963,l:.692156862745098},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#f9e2af",rgb:{r:249,g:226,b:175},hsl:{h:41.35135135135135,s:.8604651162790699,l:.8313725490196078},code:3},bright:{name:"Bright Yellow",hex:"#ebd391",rgb:{r:235,g:211,b:145},hsl:{h:44,s:.692307692307692,l:.7450980392156863},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#89b4fa",rgb:{r:137,g:180,b:250},hsl:{h:217.1681415929203,s:.9186991869918699,l:.7588235294117647},code:4},bright:{name:"Bright Blue",hex:"#74a8fc",rgb:{r:116,g:168,b:252},hsl:{h:217.05882352941174,s:.9577464788732396,l:.7215686274509804},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f5c2e7",rgb:{r:245,g:194,b:231},hsl:{h:316.4705882352941,s:.7183098591549301,l:.8607843137254902},code:5},bright:{name:"Bright Magenta",hex:"#f2aede",rgb:{r:242,g:174,b:222},hsl:{h:317.6470588235294,s:.7234042553191488,l:.8156862745098039},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#94e2d5",rgb:{r:148,g:226,b:213},hsl:{h:170.00000000000003,s:.5735294117647057,l:.7333333333333334},code:6},bright:{name:"Bright Cyan",hex:"#6bd7ca",rgb:{r:107,g:215,b:202},hsl:{h:172.77777777777777,s:.5744680851063831,l:.6313725490196078},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a6adc8",rgb:{r:166,g:173,b:200},hsl:{h:227.6470588235294,s:.23611111111111102,l:.7176470588235294},code:7},bright:{name:"Bright White",hex:"#bac2de",rgb:{r:186,g:194,b:222},hsl:{h:226.66666666666669,s:.35294117647058837,l:.8},code:15}}}}},Xe=e=>Object.entries(e),{version:Na,...ls}=hs,kr=Xe(ls).reduce((e,[t,c])=>(e[t]={...c,colorEntries:Xe(c.colors),ansiColorEntries:Xe(c.ansiColors)},e),{});Xe(kr);var lt={exports:{}},Mt;function us(){return Mt||(Mt=1,function(e,t){(function(c,g){e.exports=g()})(self,()=>(()=>{var c={};return(()=>{var g=c;Object.defineProperty(g,"__esModule",{value:!0}),g.FitAddon=void 0,g.FitAddon=class{activate(m){this._terminal=m}dispose(){}fit(){const m=this.proposeDimensions();if(!m||!this._terminal||isNaN(m.cols)||isNaN(m.rows))return;const k=this._terminal._core;this._terminal.rows===m.rows&&this._terminal.cols===m.cols||(k._renderService.clear(),this._terminal.resize(m.cols,m.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const m=this._terminal._core,k=m._renderService.dimensions;if(k.css.cell.width===0||k.css.cell.height===0)return;const C=this._terminal.options.scrollback===0?0:m.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),p=window.getComputedStyle(this._terminal.element),h=n-(parseInt(p.getPropertyValue("padding-top"))+parseInt(p.getPropertyValue("padding-bottom"))),f=l-(parseInt(p.getPropertyValue("padding-right"))+parseInt(p.getPropertyValue("padding-left")))-C;return{cols:Math.max(2,Math.floor(f/k.css.cell.width)),rows:Math.max(1,Math.floor(h/k.css.cell.height))}}}})(),c})())}(lt)),lt.exports}var ds=us(),Qe={exports:{}},fs=Qe.exports,Ht;function _s(){return Ht||(Ht=1,function(e,t){(function(c,g){e.exports=g()})(fs,()=>(()=>{var c={433:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV11=void 0;const l=n(938),p=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],h=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],f=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],_=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let b;function u(s,a){let i,o=0,d=a.length-1;if(s<a[0][0]||s>a[d][1])return!1;for(;d>=o;)if(i=o+d>>1,s>a[i][1])o=i+1;else{if(!(s<a[i][0]))return!0;d=i-1}return!1}r.UnicodeV11=class{constructor(){if(this.version="11",!b){b=new Uint8Array(65536),b.fill(1),b[0]=0,b.fill(0,1,32),b.fill(0,127,160);for(let s=0;s<p.length;++s)b.fill(0,p[s][0],p[s][1]+1);for(let s=0;s<f.length;++s)b.fill(2,f[s][0],f[s][1]+1)}}wcwidth(s){return s<32?0:s<127?1:s<65536?b[s]:u(s,h)?0:u(s,_)?2:1}charProperties(s,a){let i=this.wcwidth(s),o=i===0&&a!==0;if(o){const d=l.UnicodeService.extractWidth(a);d===0?o=!1:d>i&&(i=d)}return l.UnicodeService.createPropertyValue(0,i,o)}}},345:(C,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.runAndSubscribe=r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=n=>(this._listeners.push(n),{dispose:()=>{if(!this._disposed){for(let l=0;l<this._listeners.length;l++)if(this._listeners[l]===n)return void this._listeners.splice(l,1)}}})),this._event}fire(n,l){const p=[];for(let h=0;h<this._listeners.length;h++)p.push(this._listeners[h]);for(let h=0;h<p.length;h++)p[h].call(void 0,n,l)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},r.forwardEvent=function(n,l){return n(p=>l.fire(p))},r.runAndSubscribe=function(n,l){return l(void 0),n(p=>l(p))}},490:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const l=n(938),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let f;r.UnicodeV6=class{constructor(){if(this.version="6",!f){f=new Uint8Array(65536),f.fill(1),f[0]=0,f.fill(0,1,32),f.fill(0,127,160),f.fill(2,4352,4448),f[9001]=2,f[9002]=2,f.fill(2,11904,42192),f[12351]=1,f.fill(2,44032,55204),f.fill(2,63744,64256),f.fill(2,65040,65050),f.fill(2,65072,65136),f.fill(2,65280,65377),f.fill(2,65504,65511);for(let _=0;_<p.length;++_)f.fill(0,p[_][0],p[_][1]+1)}}wcwidth(_){return _<32?0:_<127?1:_<65536?f[_]:function(b,u){let s,a=0,i=u.length-1;if(b<u[0][0]||b>u[i][1])return!1;for(;i>=a;)if(s=a+i>>1,b>u[s][1])a=s+1;else{if(!(b<u[s][0]))return!0;i=s-1}return!1}(_,h)?0:_>=131072&&_<=196605||_>=196608&&_<=262141?2:1}charProperties(_,b){let u=this.wcwidth(_),s=u===0&&b!==0;if(s){const a=l.UnicodeService.extractWidth(b);a===0?s=!1:a>u&&(u=a)}return l.UnicodeService.createPropertyValue(0,u,s)}}},938:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const l=n(345),p=n(490);class h{static extractShouldJoin(_){return(1&_)!=0}static extractWidth(_){return _>>1&3}static extractCharKind(_){return _>>3}static createPropertyValue(_,b,u=!1){return(16777215&_)<<3|(3&b)<<1|(u?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;const _=new p.UnicodeV6;this.register(_),this._active=_.version,this._activeProvider=_}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(_){if(!this._providers[_])throw new Error(`unknown Unicode version "${_}"`);this._active=_,this._activeProvider=this._providers[_],this._onChange.fire(_)}register(_){this._providers[_.version]=_}wcwidth(_){return this._activeProvider.wcwidth(_)}getStringCellWidth(_){let b=0,u=0;const s=_.length;for(let a=0;a<s;++a){let i=_.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=s)return b+this.wcwidth(i);const S=_.charCodeAt(a);56320<=S&&S<=57343?i=1024*(i-55296)+S-56320+65536:b+=this.wcwidth(S)}const o=this.charProperties(i,u);let d=h.extractWidth(o);h.extractShouldJoin(o)&&(d-=h.extractWidth(u)),b+=d,u=o}return b}charProperties(_,b){return this._activeProvider.charProperties(_,b)}}r.UnicodeService=h}},g={};function m(C){var r=g[C];if(r!==void 0)return r.exports;var n=g[C]={exports:{}};return c[C](n,n.exports,m),n.exports}var k={};return(()=>{var C=k;Object.defineProperty(C,"__esModule",{value:!0}),C.Unicode11Addon=void 0;const r=m(433);C.Unicode11Addon=class{activate(n){n.unicode.register(new r.UnicodeV11)}dispose(){}}})(),k})())}(Qe)),Qe.exports}var ps=_s(),ut={exports:{}},Ft;function vs(){return Ft||(Ft=1,function(e,t){(function(c,g){e.exports=g()})(globalThis,()=>(()=>{var c={4567:function(C,r,n){var l=this&&this.__decorate||function(i,o,d,S){var y,w=arguments.length,v=w<3?o:S===null?S=Object.getOwnPropertyDescriptor(o,d):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(i,o,d,S);else for(var E=i.length-1;E>=0;E--)(y=i[E])&&(v=(w<3?y(v):w>3?y(o,d,v):y(o,d))||v);return w>3&&v&&Object.defineProperty(o,d,v),v},p=this&&this.__param||function(i,o){return function(d,S){o(d,S,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const h=n(9042),f=n(9924),_=n(844),b=n(4725),u=n(2585),s=n(3656);let a=r.AccessibilityManager=class extends _.Disposable{constructor(i,o,d,S){super(),this._terminal=i,this._coreBrowserService=d,this._renderService=S,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let y=0;y<this._terminal.rows;y++)this._rowElements[y]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[y]);if(this._topBoundaryFocusListener=y=>this._handleBoundaryFocus(y,0),this._bottomBoundaryFocusListener=y=>this._handleBoundaryFocus(y,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(y=>this._handleResize(y.rows))),this.register(this._terminal.onRender(y=>this._refreshRows(y.start,y.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(y=>this._handleChar(y))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))g(m);new MutationObserver(m=>{for(const k of m)if(k.type==="childList")for(const C of k.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&g(C)}).observe(document,{childList:!0,subtree:!0});function c(m){const k={};return m.integrity&&(k.integrity=m.integrity),m.referrerPolicy&&(k.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?k.credentials="include":m.crossOrigin==="anonymous"?k.credentials="omit":k.credentials="same-origin",k}function g(m){if(m.ep)return;m.ep=!0;const k=c(m);fetch(m.href,k)}})();var Zr=Object.create,ir=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyNames,Kr=Object.getPrototypeOf,Vr=Object.prototype.hasOwnProperty,_e=(e,t)=>function(){return t||(0,e[sr(e)[0]])((t={exports:{}}).exports,t),t.exports},Gr=(e,t,c,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(var m=sr(t),k=0,C=m.length,r;k<C;k++)r=m[k],!Vr.call(e,r)&&r!==c&&ir(e,r,{get:(n=>t[n]).bind(null,r),enumerable:!(g=qr(t,r))||g.enumerable});return e},oe=(e,t,c)=>(c=e!=null?Zr(Kr(e)):{},Gr(ir(c,"default",{value:e,enumerable:!0}),e)),nr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function c(g){"@babel/helpers - typeof";return t.exports=c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t.exports.__esModule=!0,t.exports.default=t.exports,c(g)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var c=nr().default;function g(m,k){if(c(m)!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var r=C.call(m,k||"default");if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(m)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var c=nr().default,g=Jr();function m(k){var C=g(k,"string");return c(C)=="symbol"?C:C+""}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ce=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var c=Yr();function g(m,k,C){return(k=c(k))in m?Object.defineProperty(m,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[k]=C,m}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),ue=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var c=Ce();function g(k,C){var r=Object.keys(k);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(k);C&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(k,l).enumerable})),r.push.apply(r,n)}return r}function m(k){for(var C=1;C<arguments.length;C++){var r=arguments[C]!=null?arguments[C]:{};C%2?g(Object(r),!0).forEach(function(n){c(k,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(n){Object.defineProperty(k,n,Object.getOwnPropertyDescriptor(r,n))})}return k}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}});function xe(e){const t={subscribe(c){let g=null,m=!1,k=!1,C=!1;function r(){if(g===null){C=!0;return}k||(k=!0,typeof g=="function"?g():g&&g.unsubscribe())}return g=e({next(n){var l;m||(l=c.next)===null||l===void 0||l.call(c,n)},error(n){var l;m||(m=!0,(l=c.error)===null||l===void 0||l.call(c,n),r())},complete(){var n;m||(m=!0,(n=c.complete)===null||n===void 0||n.call(c),r())}}),C&&r(),{unsubscribe:r}},pipe(...c){return c.reduce(Xr,t)}};return t}function Xr(e,t){return t(e)}function Qr(e){const t=new AbortController;return new Promise((g,m)=>{let k=!1;function C(){k||(k=!0,r.unsubscribe())}t.signal.addEventListener("abort",()=>{m(t.signal.reason)});const r=e.subscribe({next(n){k=!0,g(n),C()},error(n){m(n)},complete(){t.abort(),C()}})})}function ei(e){return t=>{let c=0,g=null;const m=[];function k(){g||(g=t.subscribe({next(r){for(const l of m){var n;(n=l.next)===null||n===void 0||n.call(l,r)}},error(r){for(const l of m){var n;(n=l.error)===null||n===void 0||n.call(l,r)}},complete(){for(const n of m){var r;(r=n.complete)===null||r===void 0||r.call(n)}}}))}function C(){if(c===0&&g){const r=g;g=null,r.unsubscribe()}}return xe(r=>(c++,m.push(r),k(),{unsubscribe(){c--,C();const n=m.findIndex(l=>l===r);n>-1&&m.splice(n,1)}}))}}function or(e){let t=e;const c=[],g=C=>{t!==void 0&&C.next(t),c.push(C)},m=C=>{c.splice(c.indexOf(C),1)},k=xe(C=>(g(C),()=>{m(C)}));return k.next=C=>{if(t!==C){t=C;for(const r of c)r.next(C)}},k.get=()=>t,k}function ar(e){return xe(t=>{function c(m=0,k=e.op){const C=e.links[m];if(!C)throw new Error("No more links to execute - did you forget to add an ending link?");return C({op:k,next(n){return c(m+1,n)}})}return c().subscribe(t)})}function Et(e){return Array.isArray(e)?e:[e]}function cr(e){return t=>{const c=Et(e.true).map(m=>m(t)),g=Et(e.false).map(m=>m(t));return m=>xe(k=>{const C=e.condition(m.op)?c:g;return ar({op:m.op,links:C}).subscribe(k)})}}const Ue={INTERNAL_SERVER_ERROR:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603},ti=[Ue.BAD_GATEWAY,Ue.SERVICE_UNAVAILABLE,Ue.GATEWAY_TIMEOUT,Ue.INTERNAL_SERVER_ERROR];function Te(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const hr=e=>e();var ri=Object.create,lr=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyNames,si=Object.getPrototypeOf,ni=Object.prototype.hasOwnProperty,de=(e,t)=>function(){return t||(0,e[ur(e)[0]])((t={exports:{}}).exports,t),t.exports},oi=(e,t,c,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(var m=ur(t),k=0,C=m.length,r;k<C;k++)r=m[k],!ni.call(e,r)&&r!==c&&lr(e,r,{get:(n=>t[n]).bind(null,r),enumerable:!(g=ii(t,r))||g.enumerable});return e},Q=(e,t,c)=>(c=e!=null?ri(si(e)):{},oi(lr(c,"default",{value:e,enumerable:!0}),e));const dr=()=>{},xt=e=>{Object.freeze&&Object.freeze(e)};function fr(e,t,c){var g;const m=t.join(".");return(g=c[m])!==null&&g!==void 0||(c[m]=new Proxy(dr,{get(k,C){if(!(typeof C!="string"||C==="then"))return fr(e,[...t,C],c)},apply(k,C,r){const n=t[t.length-1];let l={args:r,path:t};return n==="call"?l={args:r.length>=2?[r[1]]:[],path:t.slice(0,-1)}:n==="apply"&&(l={args:r.length>=2?r[1]:[],path:t.slice(0,-1)}),xt(l.args),xt(l.path),e(l)}})),c[m]}const ai=e=>fr(e,[],Object.create(null)),ci=e=>new Proxy(dr,{get(t,c){if(c!=="then")return e(c)}});var _r=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function c(g){"@babel/helpers - typeof";return t.exports=c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t.exports.__esModule=!0,t.exports.default=t.exports,c(g)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),hi=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var c=_r().default;function g(m,k){if(c(m)!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var r=C.call(m,k||"default");if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(m)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),li=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var c=_r().default,g=hi();function m(k){var C=g(k,"string");return c(C)=="symbol"?C:C+""}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}}),pt=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var c=li();function g(m,k,C){return(k=c(k))in m?Object.defineProperty(m,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[k]=C,m}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),He=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var c=pt();function g(k,C){var r=Object.keys(k);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(k);C&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(k,l).enumerable})),r.push.apply(r,n)}return r}function m(k){for(var C=1;C<arguments.length;C++){var r=arguments[C]!=null?arguments[C]:{};C%2?g(Object(r),!0).forEach(function(n){c(k,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(n){Object.defineProperty(k,n,Object.getOwnPropertyDescriptor(r,n))})}return k}t.exports=m,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(He());Q(pt());var Ne=Q(He());function ui(e,t){if("error"in e){const g=t.deserialize(e.error);return{ok:!1,error:(0,Ne.default)((0,Ne.default)({},e),{},{error:g})}}return{ok:!0,result:(0,Ne.default)((0,Ne.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var at=class extends Error{constructor(){super("Unable to transform response from server")}};function di(e,t){let c;try{c=ui(e,t)}catch{throw new at}if(!c.ok&&(!Te(c.error.error)||typeof c.error.error.code!="number"))throw new at;if(c.ok&&!Te(c.result))throw new at;return c}Q(He());Q(He());var Ze=Q(pt());let pr;const ct=new WeakMap,fi=()=>{};pr=Symbol.toStringTag;var vr=class be{constructor(t){(0,Ze.default)(this,"promise",void 0),(0,Ze.default)(this,"subscribers",[]),(0,Ze.default)(this,"settlement",null),(0,Ze.default)(this,pr,"Unpromise"),typeof t=="function"?this.promise=new Promise(t):this.promise=t;const c=this.promise.then(g=>{const{subscribers:m}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:g},m?.forEach(({resolve:k})=>{k(g)})});"catch"in c&&c.catch(g=>{const{subscribers:m}=this;this.subscribers=null,this.settlement={status:"rejected",reason:g},m?.forEach(({reject:k})=>{k(g)})})}subscribe(){let t,c;const{settlement:g}=this;if(g===null){if(this.subscribers===null)throw new Error("Unpromise settled but still has subscribers");const m=pi();this.subscribers=vi(this.subscribers,m),t=m.promise,c=()=>{this.subscribers!==null&&(this.subscribers=mi(this.subscribers,m))}}else{const{status:m}=g;m==="fulfilled"?t=Promise.resolve(g.value):t=Promise.reject(g.reason),c=fi}return Object.assign(t,{unsubscribe:c})}then(t,c){const g=this.subscribe(),{unsubscribe:m}=g;return Object.assign(g.then(t,c),{unsubscribe:m})}catch(t){const c=this.subscribe(),{unsubscribe:g}=c;return Object.assign(c.catch(t),{unsubscribe:g})}finally(t){const c=this.subscribe(),{unsubscribe:g}=c;return Object.assign(c.finally(t),{unsubscribe:g})}static proxy(t){const c=be.getSubscribablePromise(t);return typeof c<"u"?c:be.createSubscribablePromise(t)}static createSubscribablePromise(t){const c=new be(t);return ct.set(t,c),ct.set(c,c),c}static getSubscribablePromise(t){return ct.get(t)}static resolve(t){const c=typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"?t:Promise.resolve(t);return be.proxy(c).subscribe()}static async any(t){const g=(Array.isArray(t)?t:[...t]).map(be.resolve);try{return await Promise.any(g)}finally{g.forEach(({unsubscribe:m})=>{m()})}}static async race(t){const g=(Array.isArray(t)?t:[...t]).map(be.resolve);try{return await Promise.race(g)}finally{g.forEach(({unsubscribe:m})=>{m()})}}static async raceReferences(t){const c=t.map(_i);try{return await Promise.race(c)}finally{for(const g of c)g.unsubscribe()}}};function _i(e){return vr.proxy(e).then(()=>[e])}function pi(){let e,t;return{promise:new Promise((g,m)=>{e=g,t=m}),resolve:e,reject:t}}function vi(e,t){return[...e,t]}function gi(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function mi(e,t){const c=e.indexOf(t);return c!==-1?gi(e,c):e}var kt,Rt,Dt,Lt;(Rt=(kt=Symbol).dispose)!==null&&Rt!==void 0||(kt.dispose=Symbol());(Lt=(Dt=Symbol).asyncDispose)!==null&&Lt!==void 0||(Dt.asyncDispose=Symbol());function bi(e,t){const c=e,g=c[Symbol.dispose];return c[Symbol.dispose]=()=>{t(),g?.()},c}function Si(e,t){const c=e,g=c[Symbol.asyncDispose];return c[Symbol.asyncDispose]=async()=>{await t(),await g?.()},c}const gr=Symbol();function yi(e){let t=null;return bi({start(){if(t)throw new Error("Timer already started");return new Promise(g=>{t=setTimeout(()=>g(gr),e)})}},()=>{t&&clearTimeout(t)})}var Fe=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function c(){var g=typeof SuppressedError=="function"?SuppressedError:function(r,n){var l=Error();return l.name="SuppressedError",l.error=r,l.suppressed=n,l},m={},k=[];function C(r,n){if(n!=null){if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var l=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(l===void 0&&(l=n[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var p=l;if(typeof l!="function")throw new TypeError("Object is not disposable.");p&&(l=function(){try{p.call(n)}catch(f){return Promise.reject(f)}}),k.push({v:n,d:l,a:r})}else r&&k.push({d:n,a:r});return n}return{e:m,u:C.bind(null,!1),a:C.bind(null,!0),d:function(){var n,l=this.e,p=0;function h(){for(;n=k.pop();)try{if(!n.a&&p===1)return p=0,k.push(n),Promise.resolve().then(h);if(n.d){var _=n.d.call(n.v);if(n.a)return p|=2,Promise.resolve(_).then(h,f)}else p|=1}catch(b){return f(b)}if(p===1)return l!==m?Promise.reject(l):Promise.resolve();if(l!==m)throw l}function f(_){return l=l!==m?new g(_,l):_,h()}return h()}}}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),vt=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function c(g,m){this.v=g,this.k=m}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),je=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var c=vt();function g(m){return new c(m,0)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),ke=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var c=vt();function g(k){return function(){return new m(k.apply(this,arguments))}}function m(k){var C,r;function n(p,h){try{var f=k[p](h),_=f.value,b=_ instanceof c;Promise.resolve(b?_.v:_).then(function(u){if(b){var s=p==="return"?"return":"next";if(!_.k||u.done)return n(s,u);u=k[s](u).value}l(f.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){l("throw",u)}}function l(p,h){switch(p){case"return":C.resolve({value:h,done:!0});break;case"throw":C.reject(h);break;default:C.resolve({value:h,done:!1})}(C=C.next)?n(C.key,C.arg):r=null}this._invoke=function(p,h){return new Promise(function(f,_){var b={key:p,arg:h,resolve:f,reject:_,next:null};r?r=r.next=b:(C=r=b,n(p,h))})},typeof k.return!="function"&&(this.return=void 0)}m.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(k){return this._invoke("next",k)},m.prototype.throw=function(k){return this._invoke("throw",k)},m.prototype.return=function(k){return this._invoke("return",k)},t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(Fe());Q(je());Q(ke());Q(Fe());Q(je());Q(ke());Q(Fe());Q(je());Q(ke());var mr=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function c(m){var k,C,r,n=2;for(typeof Symbol<"u"&&(C=Symbol.asyncIterator,r=Symbol.iterator);n--;){if(C&&(k=m[C])!=null)return k.call(m);if(r&&(k=m[r])!=null)return new g(k.call(m));C="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function g(m){function k(C){if(Object(C)!==C)return Promise.reject(new TypeError(C+" is not an object."));var r=C.done;return Promise.resolve(C.value).then(function(n){return{value:n,done:r}})}return g=function(r){this.s=r,this.n=r.next},g.prototype={s:null,n:null,next:function(){return k(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return n===void 0?Promise.resolve({value:r,done:!0}):k(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return n===void 0?Promise.reject(r):k(n.apply(this.s,arguments))}},new g(m)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(je());Q(ke());Q(Fe());Q(mr());var wi=de({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js"(e,t){var c=vt();function g(m){var k={},C=!1;function r(n,l){return C=!0,l=new Promise(function(p){p(m[n](l))}),{done:!1,value:new c(l,1)}}return k[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},k.next=function(n){return C?(C=!1,n):r("next",n)},typeof m.throw=="function"&&(k.throw=function(n){if(C)throw C=!1,n;return r("throw",n)}),typeof m.return=="function"&&(k.return=function(n){return C?(C=!1,n):r("return",n)}),k}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});Q(mr());var At=Q(je()),Ci=Q(ke());Q(wi());var br=Q(Fe());const Ei="ping",xi="serialized-error",ki="connected",Ri="return";async function Di(e){try{var t=(0,br.default)();const c=t.u(yi(e.timeoutMs)),g=await vr.race([e.promise,c.start()]);return g===gr?await e.onTimeout():g}catch(c){t.e=c}finally{t.d()}}function Li(e){const{deserialize:t=r=>r}=e;let c={};const g=e.signal;let m=null;const k=()=>new ReadableStream({async start(r){const[n,l]=await Promise.all([e.url(),e.init()]),p=m=new e.EventSource(n,l);r.enqueue({type:"connecting",eventSource:m,event:null}),p.addEventListener(ki,f=>{const b=JSON.parse(f.data);c=b,r.enqueue({type:"connected",options:b,eventSource:p})}),p.addEventListener(xi,f=>{const _=f;r.enqueue({type:"serialized-error",error:t(JSON.parse(_.data)),eventSource:p})}),p.addEventListener(Ei,()=>{r.enqueue({type:"ping",eventSource:p})}),p.addEventListener(Ri,()=>{p.close(),r.close(),m=null}),p.addEventListener("error",f=>{p.readyState===p.CLOSED?r.error(f):r.enqueue({type:"connecting",eventSource:p,event:f})}),p.addEventListener("message",f=>{const _=f,u={data:t(JSON.parse(_.data))};_.lastEventId&&(u.id=_.lastEventId),r.enqueue({type:"data",data:u,eventSource:p})});const h=()=>{try{p.close(),r.close()}catch{}};g.aborted?h():g.addEventListener("abort",h)},cancel(){m?.close()}}),C=()=>{let r=k(),n=r.getReader();async function l(){await n.cancel(),m=null}return Si({read(){return n.read()},async recreate(){await l(),r=k(),n=r.getReader()}},l)};return hr((0,Ci.default)(function*(){try{var r=(0,br.default)();const n=r.a(C());for(;;){let l=n.read();const p=c.reconnectAfterInactivityMs;p&&(l=Di({promise:l,timeoutMs:p,onTimeout:async()=>{const f={value:{type:"timeout",ms:p,eventSource:m},done:!1};return await n.recreate(),f}}));const h=yield(0,At.default)(l);if(h.done)return h.value;yield h.value}}catch(n){r.e=n}finally{yield(0,At.default)(r.d())}}))}Q(ke());Q(He());var qe=oe(Ce()),Ee=oe(ue());function Ai(e){return e instanceof me}function Pi(e){return Te(e)&&Te(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Oi(e,t){return typeof e=="string"?e:Te(e)&&typeof e.message=="string"?e.message:t}var me=class Ye extends Error{constructor(t,c){var g,m;const k=c?.cause;super(t,{cause:k}),(0,qe.default)(this,"cause",void 0),(0,qe.default)(this,"shape",void 0),(0,qe.default)(this,"data",void 0),(0,qe.default)(this,"meta",void 0),this.meta=c?.meta,this.cause=k,this.shape=c==null||(g=c.result)===null||g===void 0?void 0:g.error,this.data=c==null||(m=c.result)===null||m===void 0?void 0:m.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ye.prototype)}static from(t,c={}){const g=t;return Ai(g)?(c.meta&&(g.meta=(0,Ee.default)((0,Ee.default)({},g.meta),c.meta)),g):Pi(g)?new Ye(g.error.message,(0,Ee.default)((0,Ee.default)({},c),{},{result:g})):new Ye(Oi(g,"Unknown error"),(0,Ee.default)((0,Ee.default)({},c),{},{cause:g}))}};function Sr(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:c=>c,deserialize:c=>c},output:{serialize:c=>c,deserialize:c=>c}}}const Pt=e=>typeof e=="function";function Ti(e){if(e)return e;if(typeof window<"u"&&Pt(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Pt(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Pe=oe(ue());function Bi(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Sr(e.transformer),methodOverride:e.methodOverride}}function Ii(e){const t={};for(let c=0;c<e.length;c++){const g=e[c];t[c]=g}return t}const Mi={query:"GET",mutation:"POST",subscription:"PATCH"};function yr(e){return"input"in e?e.transformer.input.serialize(e.input):Ii(e.inputs.map(t=>e.transformer.input.serialize(t)))}const gt=e=>{const t=e.url.split("?");let g=t[0].replace(/\/$/,"")+"/"+e.path;const m=[];if(t[1]&&m.push(t[1]),"inputs"in e&&m.push("batch=1"),e.type==="query"||e.type==="subscription"){const k=yr(e);k!==void 0&&e.methodOverride!=="POST"&&m.push(`input=${encodeURIComponent(JSON.stringify(k))}`)}return m.length&&(g+="?"+m.join("&")),g},Hi=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=yr(e);return t!==void 0?JSON.stringify(t):void 0},Fi=e=>Wi((0,Pe.default)((0,Pe.default)({},e),{},{contentTypeHeader:"application/json",getUrl:gt,getBody:Hi}));var ji=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const zi=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new ji};async function $i(e){var t;zi(e.signal);const c=e.getUrl(e),g=e.getBody(e),{type:m}=e,k=await(async()=>{const r=await e.headers();return Symbol.iterator in r?Object.fromEntries(r):r})(),C=(0,Pe.default)((0,Pe.default)((0,Pe.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),k);return Ti(e.fetch)(c,{method:(t=e.methodOverride)!==null&&t!==void 0?t:Mi[m],signal:e.signal,body:g,headers:C})}async function Wi(e){const t={},c=await $i(e);t.response=c;const g=await c.json();return t.responseJSON=g,{json:g,meta:t}}oe(ue());const Ot=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Tt(e){let t=null,c=null;const g=()=>{clearTimeout(c),c=null,t=null};function m(r){const n=[[]];let l=0;for(;;){const f=r[l];if(!f)break;const _=n[n.length-1];if(f.aborted){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Aborted")),l++;continue}if(e.validate(_.concat(f).map(u=>u.key))){_.push(f),l++;continue}if(_.length===0){var h;(h=f.reject)===null||h===void 0||h.call(f,new Error("Input is too big for a single dispatch")),l++;continue}n.push([])}return n}function k(){const r=m(t);g();for(const n of r){if(!n.length)continue;const l={items:n};for(const h of n)h.batch=l;e.fetch(l.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(_,b)=>{const u=l.items[b];try{var s;const i=await Promise.resolve(_);(s=u.resolve)===null||s===void 0||s.call(u,i)}catch(i){var a;(a=u.reject)===null||a===void 0||a.call(u,i)}u.batch=null,u.reject=null,u.resolve=null}));for(const _ of l.items){var f;(f=_.reject)===null||f===void 0||f.call(_,new Error("Missing result")),_.batch=null}}).catch(h=>{for(const _ of l.items){var f;(f=_.reject)===null||f===void 0||f.call(_,h),_.batch=null}})}}function C(r){var n;const l={aborted:!1,key:r,batch:null,resolve:Ot,reject:Ot},p=new Promise((h,f)=>{var _;l.reject=f,l.resolve=h,(_=t)!==null&&_!==void 0||(t=[]),t.push(l)});return(n=c)!==null&&n!==void 0||(c=setTimeout(k)),p}return{load:C}}function Ui(...e){const t=new AbortController,c=e.length;let g=0;const m=()=>{++g===c&&t.abort()};for(const k of e)k?.aborted?m():k?.addEventListener("abort",m,{once:!0});return t.signal}function Ni(...e){const t=new AbortController;for(const c of e)c?.aborted?t.abort():c?.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal}var Ke=oe(ue());function wr(e){var t,c;const g=Bi(e),m=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,k=(c=e.maxItems)!==null&&c!==void 0?c:1/0;return()=>{const C=p=>({validate(h){if(m===1/0&&k===1/0)return!0;if(h.length>k)return!1;const f=h.map(u=>u.path).join(","),_=h.map(u=>u.input);return gt((0,Ke.default)((0,Ke.default)({},g),{},{type:p,path:f,inputs:_,signal:null})).length<=m},async fetch(h){const f=h.map(i=>i.path).join(","),_=h.map(i=>i.input),b=Ui(...h.map(i=>i.signal)),u=await Fi((0,Ke.default)((0,Ke.default)({},g),{},{path:f,inputs:_,type:p,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:b}));return(Array.isArray(u.json)?u.json:h.map(()=>u.json)).map(i=>({meta:u.meta,json:i}))}}),r=Tt(C("query")),n=Tt(C("mutation")),l={query:r,mutation:n};return({op:p})=>xe(h=>{/* istanbul ignore if -- @preserve */if(p.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const _=l[p.type].load(p);let b;return _.then(u=>{b=u;const s=di(u.json,g.transformer.output);if(!s.ok){h.error(me.from(s.error,{meta:u.meta}));return}h.next({context:u.meta,result:s.result}),h.complete()}).catch(u=>{h.error(me.from(u,{meta:b?.meta}))}),()=>{}})}}oe(ue());const Be=(e,...t)=>typeof e=="function"?e(...t):e;oe(Ce());function Zi(){let e,t;return{promise:new Promise((g,m)=>{e=g,t=m}),resolve:e,reject:t}}async function qi(e){const t=await Be(e.url);if(!e.connectionParams)return t;const g=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+g}async function Ki(e){const t={method:"connectionParams",data:await Be(e)};return JSON.stringify(t)}oe(Ce());var Se=oe(Ce());function Vi(e){const{promise:t,resolve:c,reject:g}=Zi();return e.addEventListener("open",()=>{e.removeEventListener("error",g),c()}),e.addEventListener("error",g),t}function Gi(e,{intervalMs:t,pongTimeoutMs:c}){let g,m;function k(){g=setTimeout(()=>{e.send("PING"),m=setTimeout(()=>{e.close()},c)},t)}function C(){clearTimeout(g),k()}function r(){clearTimeout(m),C()}e.addEventListener("open",k),e.addEventListener("message",({data:n})=>{clearTimeout(g),k(),n==="PONG"&&r()}),e.addEventListener("close",()=>{clearTimeout(g),clearTimeout(m)})}var Ji=class dt{constructor(t){var c;if((0,Se.default)(this,"id",++dt.connectCount),(0,Se.default)(this,"WebSocketPonyfill",void 0),(0,Se.default)(this,"urlOptions",void 0),(0,Se.default)(this,"keepAliveOpts",void 0),(0,Se.default)(this,"wsObservable",or(null)),(0,Se.default)(this,"openPromise",null),this.WebSocketPonyfill=(c=t.WebSocketPonyfill)!==null&&c!==void 0?c:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++dt.connectCount;const c=qi(t.urlOptions).then(g=>new t.WebSocketPonyfill(g));t.openPromise=c.then(async g=>{t.ws=g,g.addEventListener("message",function({data:m}){m==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&Gi(g,t.keepAliveOpts),g.addEventListener("close",()=>{t.ws===g&&(t.ws=null)}),await Vi(g),t.urlOptions.connectionParams&&g.send(await Ki(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var c;(c=t.ws)===null||c===void 0||c.close()}}};(0,Se.default)(Ji,"connectCount",0);oe(Ce());oe(ue());var ht=oe(Ce()),Bt=oe(ue()),Yi=class{constructor(e){(0,ht.default)(this,"links",void 0),(0,ht.default)(this,"runtime",void 0),(0,ht.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return ar({links:this.links,op:(0,Bt.default)((0,Bt.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(ei())}async requestAsPromise(e){var t=this;try{const c=t.$request(e);return(await Qr(c)).result.data}catch(c){throw me.from(c)}}query(e,t,c){return this.requestAsPromise({type:"query",path:e,input:t,context:c?.context,signal:c?.signal})}mutation(e,t,c){return this.requestAsPromise({type:"mutation",path:e,input:t,context:c?.context,signal:c?.signal})}subscription(e,t,c){return this.$request({type:"subscription",path:e,input:t,context:c.context,signal:c.signal}).subscribe({next(m){switch(m.result.type){case"state":{var k;(k=c.onConnectionStateChange)===null||k===void 0||k.call(c,m.result);break}case"started":{var C;(C=c.onStarted)===null||C===void 0||C.call(c,{context:m.context});break}case"stopped":{var r;(r=c.onStopped)===null||r===void 0||r.call(c);break}case"data":case void 0:{var n;(n=c.onData)===null||n===void 0||n.call(c,m.result.data);break}}},error(m){var k;(k=c.onError)===null||k===void 0||k.call(c,m)},complete(){var m;(m=c.onComplete)===null||m===void 0||m.call(c)}})}};const Xi=Symbol.for("trpc_untypedClient"),Qi={query:"query",mutate:"mutation",subscribe:"subscription"},es=e=>Qi[e];function ts(e){const t=ai(({path:c,args:g})=>{const m=[...c],k=es(m.pop()),C=m.join(".");return e[k](C,...g)});return ci(c=>c===Xi?e:t[c])}function Cr(e){const t=new Yi(e);return ts(t)}oe(ue());var It=oe(ue());function rs(e,t){return!t||e!=null&&typeof e!="object"?e:(0,It.default)((0,It.default)({},e??{}),{},{lastEventId:t})}var is=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function c(m){var k,C,r,n=2;for(typeof Symbol<"u"&&(C=Symbol.asyncIterator,r=Symbol.iterator);n--;){if(C&&(k=m[C])!=null)return k.call(m);if(r&&(k=m[r])!=null)return new g(k.call(m));C="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function g(m){function k(C){if(Object(C)!==C)return Promise.reject(new TypeError(C+" is not an object."));var r=C.done;return Promise.resolve(C.value).then(function(n){return{value:n,done:r}})}return g=function(r){this.s=r,this.n=r.next},g.prototype={s:null,n:null,next:function(){return k(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return n===void 0?Promise.resolve({value:r,done:!0}):k(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return n===void 0?Promise.reject(r):k(n.apply(this.s,arguments))}},new g(m)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),ss=oe(is());async function ns(e){let t=await Be(e.url);if(e.connectionParams){const c=await Be(e.connectionParams),g=t.includes("?")?"&":"?";t+=g+"connectionParams="+encodeURIComponent(JSON.stringify(c))}return t}function Er(e){const t=Sr(e.transformer);return()=>({op:c})=>xe(g=>{var m;const{type:k,path:C,input:r}=c;/* istanbul ignore if -- @preserve */if(k!=="subscription")throw new Error("httpSubscriptionLink only supports subscriptions");let n;const l=new AbortController,p=Ni(c.signal,l.signal),h=Li({url:async()=>gt({transformer:t,url:await ns(e),input:rs(r,n),path:C,type:k,signal:null}),init:()=>Be(e.eventSourceOptions,{op:c}),signal:p,deserialize:b=>t.output.deserialize(b),EventSource:(m=e.EventSource)!==null&&m!==void 0?m:globalThis.EventSource}),f=or({type:"state",state:"connecting",error:null}),_=f.subscribe({next(b){g.next({result:b})}});return hr(async()=>{var b=!1,u=!1,s;try{for(var a=(0,ss.default)(h),i;b=!(i=await a.next()).done;b=!1){const o=i.value;switch(o.type){case"ping":break;case"data":const d=o.data;let S;d.id?(n=d.id,S={id:d.id,data:d}):S={data:d.data},g.next({result:S,context:{eventSource:o.eventSource}});break;case"connected":{g.next({result:{type:"started"},context:{eventSource:o.eventSource}}),f.next({type:"state",state:"pending",error:null});break}case"serialized-error":{const y=me.from({error:o.error});if(ti.includes(o.error.code)){f.next({type:"state",state:"connecting",error:y});break}throw y}case"connecting":{const y=f.get(),w=o.event&&me.from(o.event);if(!w&&y.state==="connecting")break;f.next({type:"state",state:"connecting",error:w});break}case"timeout":f.next({type:"state",state:"connecting",error:new me(`Timeout of ${o.ms}ms reached while waiting for a response`)})}}}catch(o){u=!0,s=o}finally{try{b&&a.return!=null&&await a.return()}finally{if(u)throw s}}g.next({result:{type:"stopped"}}),f.next({type:"state",state:"idle",error:null}),g.complete()}).catch(b=>{g.error(me.from(b))}),()=>{g.complete(),l.abort(),_.unsubscribe()}})}oe(ue());var os=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function c(){var g=typeof SuppressedError=="function"?SuppressedError:function(r,n){var l=Error();return l.name="SuppressedError",l.error=r,l.suppressed=n,l},m={},k=[];function C(r,n){if(n!=null){if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var l=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(l===void 0&&(l=n[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var p=l;if(typeof l!="function")throw new TypeError("Object is not disposable.");p&&(l=function(){try{p.call(n)}catch(f){return Promise.reject(f)}}),k.push({v:n,d:l,a:r})}else r&&k.push({d:n,a:r});return n}return{e:m,u:C.bind(null,!1),a:C.bind(null,!0),d:function(){var n,l=this.e,p=0;function h(){for(;n=k.pop();)try{if(!n.a&&p===1)return p=0,k.push(n),Promise.resolve().then(h);if(n.d){var _=n.d.call(n.v);if(n.a)return p|=2,Promise.resolve(_).then(h,f)}else p|=1}catch(b){return f(b)}if(p===1)return l!==m?Promise.reject(l):Promise.resolve();if(l!==m)throw l}function f(_){return l=l!==m?new g(_,l):_,h()}return h()}}}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),xr=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function c(g,m){this.v=g,this.k=m}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),as=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var c=xr();function g(m){return new c(m,0)}t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}}),cs=_e({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var c=xr();function g(k){return function(){return new m(k.apply(this,arguments))}}function m(k){var C,r;function n(p,h){try{var f=k[p](h),_=f.value,b=_ instanceof c;Promise.resolve(b?_.v:_).then(function(u){if(b){var s=p==="return"?"return":"next";if(!_.k||u.done)return n(s,u);u=k[s](u).value}l(f.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){l("throw",u)}}function l(p,h){switch(p){case"return":C.resolve({value:h,done:!0});break;case"throw":C.reject(h);break;default:C.resolve({value:h,done:!1})}(C=C.next)?n(C.key,C.arg):r=null}this._invoke=function(p,h){return new Promise(function(f,_){var b={key:p,arg:h,resolve:f,reject:_,next:null};r?r=r.next=b:(C=r=b,n(p,h))})},typeof k.return!="function"&&(this.return=void 0)}m.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(k){return this._invoke("next",k)},m.prototype.throw=function(k){return this._invoke("throw",k)},m.prototype.return=function(k){return this._invoke("return",k)},t.exports=g,t.exports.__esModule=!0,t.exports.default=t.exports}});oe(os());oe(as());oe(cs());oe(ue());const hs={version:"1.7.1",latte:{name:"Latte",emoji:"🌻",order:0,dark:!1,colors:{rosewater:{name:"Rosewater",order:0,hex:"#dc8a78",rgb:{r:220,g:138,b:120},hsl:{h:10.799999999999995,s:.5882352941176472,l:.6666666666666667},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#dd7878",rgb:{r:221,g:120,b:120},hsl:{h:0,s:.5976331360946746,l:.6686274509803922},accent:!0},pink:{name:"Pink",order:2,hex:"#ea76cb",rgb:{r:234,g:118,b:203},hsl:{h:316.0344827586207,s:.7341772151898731,l:.6901960784313725},accent:!0},mauve:{name:"Mauve",order:3,hex:"#8839ef",rgb:{r:136,g:57,b:239},hsl:{h:266.0439560439561,s:.8504672897196262,l:.5803921568627451},accent:!0},red:{name:"Red",order:4,hex:"#d20f39",rgb:{r:210,g:15,b:57},hsl:{h:347.0769230769231,s:.8666666666666666,l:.4411764705882353},accent:!0},maroon:{name:"Maroon",order:5,hex:"#e64553",rgb:{r:230,g:69,b:83},hsl:{h:354.78260869565213,s:.76303317535545,l:.5862745098039216},accent:!0},peach:{name:"Peach",order:6,hex:"#fe640b",rgb:{r:254,g:100,b:11},hsl:{h:21.975308641975307,s:.9918367346938776,l:.5196078431372549},accent:!0},yellow:{name:"Yellow",order:7,hex:"#df8e1d",rgb:{r:223,g:142,b:29},hsl:{h:34.948453608247426,s:.7698412698412698,l:.49411764705882355},accent:!0},green:{name:"Green",order:8,hex:"#40a02b",rgb:{r:64,g:160,b:43},hsl:{h:109.23076923076923,s:.5763546798029556,l:.39803921568627454},accent:!0},teal:{name:"Teal",order:9,hex:"#179299",rgb:{r:23,g:146,b:153},hsl:{h:183.23076923076923,s:.7386363636363636,l:.34509803921568627},accent:!0},sky:{name:"Sky",order:10,hex:"#04a5e5",rgb:{r:4,g:165,b:229},hsl:{h:197.0666666666667,s:.965665236051502,l:.45686274509803926},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#209fb5",rgb:{r:32,g:159,b:181},hsl:{h:188.85906040268458,s:.6995305164319249,l:.4176470588235294},accent:!0},blue:{name:"Blue",order:12,hex:"#1e66f5",rgb:{r:30,g:102,b:245},hsl:{h:219.90697674418607,s:.9148936170212768,l:.5392156862745098},accent:!0},lavender:{name:"Lavender",order:13,hex:"#7287fd",rgb:{r:114,g:135,b:253},hsl:{h:230.93525179856115,s:.9720279720279721,l:.7196078431372549},accent:!0},text:{name:"Text",order:14,hex:"#4c4f69",rgb:{r:76,g:79,b:105},hsl:{h:233.79310344827587,s:.16022099447513813,l:.3549019607843137},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#5c5f77",rgb:{r:92,g:95,b:119},hsl:{h:233.33333333333334,s:.1279620853080569,l:.4137254901960784},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#6c6f85",rgb:{r:108,g:111,b:133},hsl:{h:232.79999999999998,s:.10373443983402494,l:.4725490196078431},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#7c7f93",rgb:{r:124,g:127,b:147},hsl:{h:232.17391304347825,s:.09623430962343092,l:.5313725490196078},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#8c8fa1",rgb:{r:140,g:143,b:161},hsl:{h:231.42857142857144,s:.10047846889952144,l:.5901960784313726},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#9ca0b0",rgb:{r:156,g:160,b:176},hsl:{h:228.00000000000003,s:.11235955056179768,l:.6509803921568628},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#acb0be",rgb:{r:172,g:176,b:190},hsl:{h:226.6666666666667,s:.12162162162162159,l:.7098039215686275},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#bcc0cc",rgb:{r:188,g:192,b:204},hsl:{h:225.00000000000003,s:.13559322033898308,l:.7686274509803922},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#ccd0da",rgb:{r:204,g:208,b:218},hsl:{h:222.85714285714292,s:.1590909090909089,l:.8274509803921568},accent:!1},base:{name:"Base",order:23,hex:"#eff1f5",rgb:{r:239,g:241,b:245},hsl:{h:220.00000000000009,s:.23076923076923136,l:.9490196078431372},accent:!1},mantle:{name:"Mantle",order:24,hex:"#e6e9ef",rgb:{r:230,g:233,b:239},hsl:{h:220.00000000000006,s:.21951219512195116,l:.919607843137255},accent:!1},crust:{name:"Crust",order:25,hex:"#dce0e8",rgb:{r:220,g:224,b:232},hsl:{h:220.00000000000006,s:.20689655172413762,l:.8862745098039215},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#5c5f77",rgb:{r:92,g:95,b:119},hsl:{h:233.33333333333334,s:.1279620853080569,l:.4137254901960784},code:0},bright:{name:"Bright Black",hex:"#6c6f85",rgb:{r:108,g:111,b:133},hsl:{h:232.79999999999998,s:.10373443983402494,l:.4725490196078431},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#d20f39",rgb:{r:210,g:15,b:57},hsl:{h:347.0769230769231,s:.8666666666666666,l:.4411764705882353},code:1},bright:{name:"Bright Red",hex:"#de293e",rgb:{r:222,g:41,b:62},hsl:{h:353.0386740331492,s:.7327935222672065,l:.515686274509804},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#40a02b",rgb:{r:64,g:160,b:43},hsl:{h:109.23076923076923,s:.5763546798029556,l:.39803921568627454},code:2},bright:{name:"Bright Green",hex:"#49af3d",rgb:{r:73,g:175,b:61},hsl:{h:113.68421052631581,s:.48305084745762705,l:.4627450980392157},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#df8e1d",rgb:{r:223,g:142,b:29},hsl:{h:34.948453608247426,s:.7698412698412698,l:.49411764705882355},code:3},bright:{name:"Bright Yellow",hex:"#eea02d",rgb:{r:238,g:160,b:45},hsl:{h:35.751295336787564,s:.8502202643171807,l:.5549019607843138},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#1e66f5",rgb:{r:30,g:102,b:245},hsl:{h:219.90697674418607,s:.9148936170212768,l:.5392156862745098},code:4},bright:{name:"Bright Blue",hex:"#456eff",rgb:{r:69,g:110,b:255},hsl:{h:226.77419354838707,s:1,l:.6352941176470588},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#ea76cb",rgb:{r:234,g:118,b:203},hsl:{h:316.0344827586207,s:.7341772151898731,l:.6901960784313725},code:5},bright:{name:"Bright Magenta",hex:"#fe85d8",rgb:{r:254,g:133,b:216},hsl:{h:318.8429752066116,s:.983739837398374,l:.7588235294117647},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#179299",rgb:{r:23,g:146,b:153},hsl:{h:183.23076923076923,s:.7386363636363636,l:.34509803921568627},code:6},bright:{name:"Bright Cyan",hex:"#2d9fa8",rgb:{r:45,g:159,b:168},hsl:{h:184.39024390243904,s:.5774647887323943,l:.4176470588235294},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#acb0be",rgb:{r:172,g:176,b:190},hsl:{h:226.6666666666667,s:.12162162162162159,l:.7098039215686275},code:7},bright:{name:"Bright White",hex:"#bcc0cc",rgb:{r:188,g:192,b:204},hsl:{h:225.00000000000003,s:.13559322033898308,l:.7686274509803922},code:15}}}},frappe:{name:"Frappé",emoji:"🪴",order:1,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f2d5cf",rgb:{r:242,g:213,b:207},hsl:{h:10.2857142857143,s:.5737704918032784,l:.8803921568627451},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#eebebe",rgb:{r:238,g:190,b:190},hsl:{h:0,s:.5853658536585367,l:.8392156862745098},accent:!0},pink:{name:"Pink",order:2,hex:"#f4b8e4",rgb:{r:244,g:184,b:228},hsl:{h:316,s:.7317073170731713,l:.8392156862745098},accent:!0},mauve:{name:"Mauve",order:3,hex:"#ca9ee6",rgb:{r:202,g:158,b:230},hsl:{h:276.66666666666663,s:.5901639344262294,l:.7607843137254902},accent:!0},red:{name:"Red",order:4,hex:"#e78284",rgb:{r:231,g:130,b:132},hsl:{h:358.8118811881188,s:.6778523489932885,l:.7078431372549019},accent:!0},maroon:{name:"Maroon",order:5,hex:"#ea999c",rgb:{r:234,g:153,b:156},hsl:{h:357.77777777777777,s:.6585365853658534,l:.7588235294117647},accent:!0},peach:{name:"Peach",order:6,hex:"#ef9f76",rgb:{r:239,g:159,b:118},hsl:{h:20.33057851239669,s:.7908496732026143,l:.7},accent:!0},yellow:{name:"Yellow",order:7,hex:"#e5c890",rgb:{r:229,g:200,b:144},hsl:{h:39.52941176470588,s:.6204379562043796,l:.7313725490196079},accent:!0},green:{name:"Green",order:8,hex:"#a6d189",rgb:{r:166,g:209,b:137},hsl:{h:95.83333333333331,s:.4390243902439024,l:.6784313725490196},accent:!0},teal:{name:"Teal",order:9,hex:"#81c8be",rgb:{r:129,g:200,b:190},hsl:{h:171.5492957746479,s:.3922651933701657,l:.6450980392156862},accent:!0},sky:{name:"Sky",order:10,hex:"#99d1db",rgb:{r:153,g:209,b:219},hsl:{h:189.09090909090907,s:.47826086956521735,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#85c1dc",rgb:{r:133,g:193,b:220},hsl:{h:198.62068965517244,s:.5541401273885351,l:.692156862745098},accent:!0},blue:{name:"Blue",order:12,hex:"#8caaee",rgb:{r:140,g:170,b:238},hsl:{h:221.6326530612245,s:.7424242424242424,l:.7411764705882353},accent:!0},lavender:{name:"Lavender",order:13,hex:"#babbf1",rgb:{r:186,g:187,b:241},hsl:{h:238.90909090909093,s:.6626506024096385,l:.8372549019607842},accent:!0},text:{name:"Text",order:14,hex:"#c6d0f5",rgb:{r:198,g:208,b:245},hsl:{h:227.2340425531915,s:.7014925373134333,l:.8686274509803922},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#b5bfe2",rgb:{r:181,g:191,b:226},hsl:{h:226.66666666666669,s:.43689320388349495,l:.7980392156862746},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a5adce",rgb:{r:165,g:173,b:206},hsl:{h:228.29268292682926,s:.2949640287769784,l:.7274509803921569},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#949cbb",rgb:{r:148,g:156,b:187},hsl:{h:227.69230769230768,s:.22285714285714275,l:.6568627450980392},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#838ba7",rgb:{r:131,g:139,b:167},hsl:{h:226.66666666666669,s:.16981132075471703,l:.584313725490196},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#737994",rgb:{r:115,g:121,b:148},hsl:{h:229.0909090909091,s:.13360323886639683,l:.515686274509804},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#626880",rgb:{r:98,g:104,b:128},hsl:{h:228.00000000000003,s:.1327433628318584,l:.44313725490196076},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#51576d",rgb:{r:81,g:87,b:109},hsl:{h:227.14285714285714,s:.14736842105263157,l:.37254901960784315},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#414559",rgb:{r:65,g:69,b:89},hsl:{h:230.00000000000003,s:.15584415584415584,l:.30196078431372547},accent:!1},base:{name:"Base",order:23,hex:"#303446",rgb:{r:48,g:52,b:70},hsl:{h:229.0909090909091,s:.18644067796610175,l:.23137254901960785},accent:!1},mantle:{name:"Mantle",order:24,hex:"#292c3c",rgb:{r:41,g:44,b:60},hsl:{h:230.52631578947367,s:.18811881188118806,l:.19803921568627453},accent:!1},crust:{name:"Crust",order:25,hex:"#232634",rgb:{r:35,g:38,b:52},hsl:{h:229.41176470588238,s:.19540229885057467,l:.17058823529411765},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#51576d",rgb:{r:81,g:87,b:109},hsl:{h:227.14285714285714,s:.14736842105263157,l:.37254901960784315},code:0},bright:{name:"Bright Black",hex:"#626880",rgb:{r:98,g:104,b:128},hsl:{h:228.00000000000003,s:.1327433628318584,l:.44313725490196076},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#e78284",rgb:{r:231,g:130,b:132},hsl:{h:358.8118811881188,s:.6778523489932885,l:.7078431372549019},code:1},bright:{name:"Bright Red",hex:"#e67172",rgb:{r:230,g:113,b:114},hsl:{h:359.4871794871795,s:.7005988023952096,l:.6725490196078432},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6d189",rgb:{r:166,g:209,b:137},hsl:{h:95.83333333333331,s:.4390243902439024,l:.6784313725490196},code:2},bright:{name:"Bright Green",hex:"#8ec772",rgb:{r:142,g:199,b:114},hsl:{h:100.23529411764706,s:.431472081218274,l:.6137254901960785},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#e5c890",rgb:{r:229,g:200,b:144},hsl:{h:39.52941176470588,s:.6204379562043796,l:.7313725490196079},code:3},bright:{name:"Bright Yellow",hex:"#d9ba73",rgb:{r:217,g:186,b:115},hsl:{h:41.764705882352935,s:.5730337078651685,l:.6509803921568628},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#8caaee",rgb:{r:140,g:170,b:238},hsl:{h:221.6326530612245,s:.7424242424242424,l:.7411764705882353},code:4},bright:{name:"Bright Blue",hex:"#7b9ef0",rgb:{r:123,g:158,b:240},hsl:{h:222.05128205128207,s:.7959183673469388,l:.711764705882353},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f4b8e4",rgb:{r:244,g:184,b:228},hsl:{h:316,s:.7317073170731713,l:.8392156862745098},code:5},bright:{name:"Bright Magenta",hex:"#f2a4db",rgb:{r:242,g:164,b:219},hsl:{h:317.6923076923077,s:.7499999999999998,l:.7960784313725491},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#81c8be",rgb:{r:129,g:200,b:190},hsl:{h:171.5492957746479,s:.3922651933701657,l:.6450980392156862},code:6},bright:{name:"Bright Cyan",hex:"#5abfb5",rgb:{r:90,g:191,b:181},hsl:{h:174.05940594059405,s:.44104803493449785,l:.5509803921568628},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a5adce",rgb:{r:165,g:173,b:206},hsl:{h:228.29268292682926,s:.2949640287769784,l:.7274509803921569},code:7},bright:{name:"Bright White",hex:"#b5bfe2",rgb:{r:181,g:191,b:226},hsl:{h:226.66666666666669,s:.43689320388349495,l:.7980392156862746},code:15}}}},macchiato:{name:"Macchiato",emoji:"🌺",order:2,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f4dbd6",rgb:{r:244,g:219,b:214},hsl:{h:9.999999999999963,s:.5769230769230775,l:.8980392156862745},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#f0c6c6",rgb:{r:240,g:198,b:198},hsl:{h:0,s:.5833333333333333,l:.8588235294117648},accent:!0},pink:{name:"Pink",order:2,hex:"#f5bde6",rgb:{r:245,g:189,b:230},hsl:{h:316.0714285714286,s:.7368421052631583,l:.8509803921568628},accent:!0},mauve:{name:"Mauve",order:3,hex:"#c6a0f6",rgb:{r:198,g:160,b:246},hsl:{h:266.51162790697674,s:.8269230769230772,l:.7960784313725491},accent:!0},red:{name:"Red",order:4,hex:"#ed8796",rgb:{r:237,g:135,b:150},hsl:{h:351.1764705882353,s:.7391304347826088,l:.7294117647058824},accent:!0},maroon:{name:"Maroon",order:5,hex:"#ee99a0",rgb:{r:238,g:153,b:160},hsl:{h:355.05882352941177,s:.7142857142857143,l:.7666666666666666},accent:!0},peach:{name:"Peach",order:6,hex:"#f5a97f",rgb:{r:245,g:169,b:127},hsl:{h:21.355932203389827,s:.8550724637681162,l:.7294117647058824},accent:!0},yellow:{name:"Yellow",order:7,hex:"#eed49f",rgb:{r:238,g:212,b:159},hsl:{h:40.253164556962034,s:.6991150442477877,l:.7784313725490196},accent:!0},green:{name:"Green",order:8,hex:"#a6da95",rgb:{r:166,g:218,b:149},hsl:{h:105.21739130434783,s:.4825174825174825,l:.7196078431372549},accent:!0},teal:{name:"Teal",order:9,hex:"#8bd5ca",rgb:{r:139,g:213,b:202},hsl:{h:171.08108108108107,s:.46835443037974706,l:.6901960784313725},accent:!0},sky:{name:"Sky",order:10,hex:"#91d7e3",rgb:{r:145,g:215,b:227},hsl:{h:188.78048780487802,s:.5942028985507245,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#7dc4e4",rgb:{r:125,g:196,b:228},hsl:{h:198.64077669902912,s:.6560509554140128,l:.692156862745098},accent:!0},blue:{name:"Blue",order:12,hex:"#8aadf4",rgb:{r:138,g:173,b:244},hsl:{h:220.188679245283,s:.8281250000000003,l:.7490196078431373},accent:!0},lavender:{name:"Lavender",order:13,hex:"#b7bdf8",rgb:{r:183,g:189,b:248},hsl:{h:234.46153846153848,s:.8227848101265824,l:.8450980392156863},accent:!0},text:{name:"Text",order:14,hex:"#cad3f5",rgb:{r:202,g:211,b:245},hsl:{h:227.4418604651163,s:.6825396825396831,l:.8764705882352941},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#b8c0e0",rgb:{r:184,g:192,b:224},hsl:{h:228,s:.39215686274509803,l:.8},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a5adcb",rgb:{r:165,g:173,b:203},hsl:{h:227.36842105263156,s:.2676056338028167,l:.7215686274509804},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#939ab7",rgb:{r:147,g:154,b:183},hsl:{h:228.33333333333331,s:.2000000000000001,l:.6470588235294117},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#8087a2",rgb:{r:128,g:135,b:162},hsl:{h:227.6470588235294,s:.1545454545454545,l:.5686274509803921},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#6e738d",rgb:{r:110,g:115,b:141},hsl:{h:230.32258064516128,s:.12350597609561753,l:.49215686274509807},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#5b6078",rgb:{r:91,g:96,b:120},hsl:{h:229.65517241379308,s:.13744075829383887,l:.4137254901960784},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#494d64",rgb:{r:73,g:77,b:100},hsl:{h:231.11111111111114,s:.15606936416184972,l:.3392156862745098},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#363a4f",rgb:{r:54,g:58,b:79},hsl:{h:230.4,s:.1879699248120301,l:.2607843137254902},accent:!1},base:{name:"Base",order:23,hex:"#24273a",rgb:{r:36,g:39,b:58},hsl:{h:231.8181818181818,s:.23404255319148934,l:.1843137254901961},accent:!1},mantle:{name:"Mantle",order:24,hex:"#1e2030",rgb:{r:30,g:32,b:48},hsl:{h:233.33333333333334,s:.23076923076923075,l:.15294117647058825},accent:!1},crust:{name:"Crust",order:25,hex:"#181926",rgb:{r:24,g:25,b:38},hsl:{h:235.71428571428572,s:.22580645161290322,l:.12156862745098039},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#494d64",rgb:{r:73,g:77,b:100},hsl:{h:231.11111111111114,s:.15606936416184972,l:.3392156862745098},code:0},bright:{name:"Bright Black",hex:"#5b6078",rgb:{r:91,g:96,b:120},hsl:{h:229.65517241379308,s:.13744075829383887,l:.4137254901960784},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#ed8796",rgb:{r:237,g:135,b:150},hsl:{h:351.1764705882353,s:.7391304347826088,l:.7294117647058824},code:1},bright:{name:"Bright Red",hex:"#ec7486",rgb:{r:236,g:116,b:134},hsl:{h:351,s:.759493670886076,l:.6901960784313725},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6da95",rgb:{r:166,g:218,b:149},hsl:{h:105.21739130434783,s:.4825174825174825,l:.7196078431372549},code:2},bright:{name:"Bright Green",hex:"#8ccf7f",rgb:{r:140,g:207,b:127},hsl:{h:110.24999999999999,s:.45454545454545453,l:.6549019607843137},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#eed49f",rgb:{r:238,g:212,b:159},hsl:{h:40.253164556962034,s:.6991150442477877,l:.7784313725490196},code:3},bright:{name:"Bright Yellow",hex:"#e1c682",rgb:{r:225,g:198,b:130},hsl:{h:42.94736842105264,s:.6129032258064515,l:.696078431372549},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#8aadf4",rgb:{r:138,g:173,b:244},hsl:{h:220.188679245283,s:.8281250000000003,l:.7490196078431373},code:4},bright:{name:"Bright Blue",hex:"#78a1f6",rgb:{r:120,g:161,b:246},hsl:{h:220.47619047619048,s:.8750000000000002,l:.7176470588235294},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f5bde6",rgb:{r:245,g:189,b:230},hsl:{h:316.0714285714286,s:.7368421052631583,l:.8509803921568628},code:5},bright:{name:"Bright Magenta",hex:"#f2a9dd",rgb:{r:242,g:169,b:221},hsl:{h:317.26027397260276,s:.7373737373737372,l:.8058823529411765},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#8bd5ca",rgb:{r:139,g:213,b:202},hsl:{h:171.08108108108107,s:.46835443037974706,l:.6901960784313725},code:6},bright:{name:"Bright Cyan",hex:"#63cbc0",rgb:{r:99,g:203,b:192},hsl:{h:173.65384615384616,s:.4999999999999998,l:.592156862745098},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a5adcb",rgb:{r:165,g:173,b:203},hsl:{h:227.36842105263156,s:.2676056338028167,l:.7215686274509804},code:7},bright:{name:"Bright White",hex:"#b8c0e0",rgb:{r:184,g:192,b:224},hsl:{h:228,s:.39215686274509803,l:.8},code:15}}}},mocha:{name:"Mocha",emoji:"🌿",order:3,dark:!0,colors:{rosewater:{name:"Rosewater",order:0,hex:"#f5e0dc",rgb:{r:245,g:224,b:220},hsl:{h:9.599999999999968,s:.555555555555556,l:.911764705882353},accent:!0},flamingo:{name:"Flamingo",order:1,hex:"#f2cdcd",rgb:{r:242,g:205,b:205},hsl:{h:0,s:.587301587301587,l:.8764705882352941},accent:!0},pink:{name:"Pink",order:2,hex:"#f5c2e7",rgb:{r:245,g:194,b:231},hsl:{h:316.4705882352941,s:.7183098591549301,l:.8607843137254902},accent:!0},mauve:{name:"Mauve",order:3,hex:"#cba6f7",rgb:{r:203,g:166,b:247},hsl:{h:267.4074074074074,s:.8350515463917528,l:.8098039215686275},accent:!0},red:{name:"Red",order:4,hex:"#f38ba8",rgb:{r:243,g:139,b:168},hsl:{h:343.2692307692308,s:.8124999999999998,l:.7490196078431373},accent:!0},maroon:{name:"Maroon",order:5,hex:"#eba0ac",rgb:{r:235,g:160,b:172},hsl:{h:350.4,s:.6521739130434779,l:.7745098039215685},accent:!0},peach:{name:"Peach",order:6,hex:"#fab387",rgb:{r:250,g:179,b:135},hsl:{h:22.95652173913043,s:.92,l:.7549019607843137},accent:!0},yellow:{name:"Yellow",order:7,hex:"#f9e2af",rgb:{r:249,g:226,b:175},hsl:{h:41.35135135135135,s:.8604651162790699,l:.8313725490196078},accent:!0},green:{name:"Green",order:8,hex:"#a6e3a1",rgb:{r:166,g:227,b:161},hsl:{h:115.45454545454544,s:.5409836065573769,l:.7607843137254902},accent:!0},teal:{name:"Teal",order:9,hex:"#94e2d5",rgb:{r:148,g:226,b:213},hsl:{h:170.00000000000003,s:.5735294117647057,l:.7333333333333334},accent:!0},sky:{name:"Sky",order:10,hex:"#89dceb",rgb:{r:137,g:220,b:235},hsl:{h:189.18367346938774,s:.7101449275362316,l:.7294117647058823},accent:!0},sapphire:{name:"Sapphire",order:11,hex:"#74c7ec",rgb:{r:116,g:199,b:236},hsl:{h:198.5,s:.759493670886076,l:.6901960784313725},accent:!0},blue:{name:"Blue",order:12,hex:"#89b4fa",rgb:{r:137,g:180,b:250},hsl:{h:217.1681415929203,s:.9186991869918699,l:.7588235294117647},accent:!0},lavender:{name:"Lavender",order:13,hex:"#b4befe",rgb:{r:180,g:190,b:254},hsl:{h:231.89189189189187,s:.9736842105263159,l:.8509803921568628},accent:!0},text:{name:"Text",order:14,hex:"#cdd6f4",rgb:{r:205,g:214,b:244},hsl:{h:226.15384615384616,s:.6393442622950825,l:.8803921568627451},accent:!1},subtext1:{name:"Subtext 1",order:15,hex:"#bac2de",rgb:{r:186,g:194,b:222},hsl:{h:226.66666666666669,s:.35294117647058837,l:.8},accent:!1},subtext0:{name:"Subtext 0",order:16,hex:"#a6adc8",rgb:{r:166,g:173,b:200},hsl:{h:227.6470588235294,s:.23611111111111102,l:.7176470588235294},accent:!1},overlay2:{name:"Overlay 2",order:17,hex:"#9399b2",rgb:{r:147,g:153,b:178},hsl:{h:228.38709677419354,s:.16756756756756758,l:.6372549019607843},accent:!1},overlay1:{name:"Overlay 1",order:18,hex:"#7f849c",rgb:{r:127,g:132,b:156},hsl:{h:229.65517241379308,s:.12775330396475776,l:.5549019607843138},accent:!1},overlay0:{name:"Overlay 0",order:19,hex:"#6c7086",rgb:{r:108,g:112,b:134},hsl:{h:230.7692307692308,s:.10743801652892565,l:.4745098039215686},accent:!1},surface2:{name:"Surface 2",order:20,hex:"#585b70",rgb:{r:88,g:91,b:112},hsl:{h:232.5,s:.12,l:.39215686274509803},accent:!1},surface1:{name:"Surface 1",order:21,hex:"#45475a",rgb:{r:69,g:71,b:90},hsl:{h:234.2857142857143,s:.13207547169811326,l:.31176470588235294},accent:!1},surface0:{name:"Surface 0",order:22,hex:"#313244",rgb:{r:49,g:50,b:68},hsl:{h:236.84210526315792,s:.16239316239316234,l:.22941176470588237},accent:!1},base:{name:"Base",order:23,hex:"#1e1e2e",rgb:{r:30,g:30,b:46},hsl:{h:240,s:.21052631578947367,l:.14901960784313725},accent:!1},mantle:{name:"Mantle",order:24,hex:"#181825",rgb:{r:24,g:24,b:37},hsl:{h:240,s:.2131147540983607,l:.11960784313725491},accent:!1},crust:{name:"Crust",order:25,hex:"#11111b",rgb:{r:17,g:17,b:27},hsl:{h:240,s:.22727272727272727,l:.08627450980392157},accent:!1}},ansiColors:{black:{name:"Black",order:0,normal:{name:"Black",hex:"#45475a",rgb:{r:69,g:71,b:90},hsl:{h:234.2857142857143,s:.13207547169811326,l:.31176470588235294},code:0},bright:{name:"Bright Black",hex:"#585b70",rgb:{r:88,g:91,b:112},hsl:{h:232.5,s:.12,l:.39215686274509803},code:8}},red:{name:"Red",order:1,normal:{name:"Red",hex:"#f38ba8",rgb:{r:243,g:139,b:168},hsl:{h:343.2692307692308,s:.8124999999999998,l:.7490196078431373},code:1},bright:{name:"Bright Red",hex:"#f37799",rgb:{r:243,g:119,b:153},hsl:{h:343.54838709677415,s:.8378378378378376,l:.7098039215686274},code:9}},green:{name:"Green",order:2,normal:{name:"Green",hex:"#a6e3a1",rgb:{r:166,g:227,b:161},hsl:{h:115.45454545454544,s:.5409836065573769,l:.7607843137254902},code:2},bright:{name:"Bright Green",hex:"#89d88b",rgb:{r:137,g:216,b:139},hsl:{h:121.51898734177213,s:.5031847133757963,l:.692156862745098},code:10}},yellow:{name:"Yellow",order:3,normal:{name:"Yellow",hex:"#f9e2af",rgb:{r:249,g:226,b:175},hsl:{h:41.35135135135135,s:.8604651162790699,l:.8313725490196078},code:3},bright:{name:"Bright Yellow",hex:"#ebd391",rgb:{r:235,g:211,b:145},hsl:{h:44,s:.692307692307692,l:.7450980392156863},code:11}},blue:{name:"Blue",order:4,normal:{name:"Blue",hex:"#89b4fa",rgb:{r:137,g:180,b:250},hsl:{h:217.1681415929203,s:.9186991869918699,l:.7588235294117647},code:4},bright:{name:"Bright Blue",hex:"#74a8fc",rgb:{r:116,g:168,b:252},hsl:{h:217.05882352941174,s:.9577464788732396,l:.7215686274509804},code:12}},magenta:{name:"Magenta",order:5,normal:{name:"Magenta",hex:"#f5c2e7",rgb:{r:245,g:194,b:231},hsl:{h:316.4705882352941,s:.7183098591549301,l:.8607843137254902},code:5},bright:{name:"Bright Magenta",hex:"#f2aede",rgb:{r:242,g:174,b:222},hsl:{h:317.6470588235294,s:.7234042553191488,l:.8156862745098039},code:13}},cyan:{name:"Cyan",order:6,normal:{name:"Cyan",hex:"#94e2d5",rgb:{r:148,g:226,b:213},hsl:{h:170.00000000000003,s:.5735294117647057,l:.7333333333333334},code:6},bright:{name:"Bright Cyan",hex:"#6bd7ca",rgb:{r:107,g:215,b:202},hsl:{h:172.77777777777777,s:.5744680851063831,l:.6313725490196078},code:14}},white:{name:"White",order:7,normal:{name:"White",hex:"#a6adc8",rgb:{r:166,g:173,b:200},hsl:{h:227.6470588235294,s:.23611111111111102,l:.7176470588235294},code:7},bright:{name:"Bright White",hex:"#bac2de",rgb:{r:186,g:194,b:222},hsl:{h:226.66666666666669,s:.35294117647058837,l:.8},code:15}}}}},Xe=e=>Object.entries(e),{version:Na,...ls}=hs,kr=Xe(ls).reduce((e,[t,c])=>(e[t]={...c,colorEntries:Xe(c.colors),ansiColorEntries:Xe(c.ansiColors)},e),{});Xe(kr);var lt={exports:{}},Mt;function us(){return Mt||(Mt=1,function(e,t){(function(c,g){e.exports=g()})(self,()=>(()=>{var c={};return(()=>{var g=c;Object.defineProperty(g,"__esModule",{value:!0}),g.FitAddon=void 0,g.FitAddon=class{activate(m){this._terminal=m}dispose(){}fit(){const m=this.proposeDimensions();if(!m||!this._terminal||isNaN(m.cols)||isNaN(m.rows))return;const k=this._terminal._core;this._terminal.rows===m.rows&&this._terminal.cols===m.cols||(k._renderService.clear(),this._terminal.resize(m.cols,m.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const m=this._terminal._core,k=m._renderService.dimensions;if(k.css.cell.width===0||k.css.cell.height===0)return;const C=this._terminal.options.scrollback===0?0:m.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),p=window.getComputedStyle(this._terminal.element),h=n-(parseInt(p.getPropertyValue("padding-top"))+parseInt(p.getPropertyValue("padding-bottom"))),f=l-(parseInt(p.getPropertyValue("padding-right"))+parseInt(p.getPropertyValue("padding-left")))-C;return{cols:Math.max(2,Math.floor(f/k.css.cell.width)),rows:Math.max(1,Math.floor(h/k.css.cell.height))}}}})(),c})())}(lt)),lt.exports}var ds=us(),Qe={exports:{}},fs=Qe.exports,Ht;function _s(){return Ht||(Ht=1,function(e,t){(function(c,g){e.exports=g()})(fs,()=>(()=>{var c={433:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV11=void 0;const l=n(938),p=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],h=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],f=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],_=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let b;function u(s,a){let i,o=0,d=a.length-1;if(s<a[0][0]||s>a[d][1])return!1;for(;d>=o;)if(i=o+d>>1,s>a[i][1])o=i+1;else{if(!(s<a[i][0]))return!0;d=i-1}return!1}r.UnicodeV11=class{constructor(){if(this.version="11",!b){b=new Uint8Array(65536),b.fill(1),b[0]=0,b.fill(0,1,32),b.fill(0,127,160);for(let s=0;s<p.length;++s)b.fill(0,p[s][0],p[s][1]+1);for(let s=0;s<f.length;++s)b.fill(2,f[s][0],f[s][1]+1)}}wcwidth(s){return s<32?0:s<127?1:s<65536?b[s]:u(s,h)?0:u(s,_)?2:1}charProperties(s,a){let i=this.wcwidth(s),o=i===0&&a!==0;if(o){const d=l.UnicodeService.extractWidth(a);d===0?o=!1:d>i&&(i=d)}return l.UnicodeService.createPropertyValue(0,i,o)}}},345:(C,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.runAndSubscribe=r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=n=>(this._listeners.push(n),{dispose:()=>{if(!this._disposed){for(let l=0;l<this._listeners.length;l++)if(this._listeners[l]===n)return void this._listeners.splice(l,1)}}})),this._event}fire(n,l){const p=[];for(let h=0;h<this._listeners.length;h++)p.push(this._listeners[h]);for(let h=0;h<p.length;h++)p[h].call(void 0,n,l)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},r.forwardEvent=function(n,l){return n(p=>l.fire(p))},r.runAndSubscribe=function(n,l){return l(void 0),n(p=>l(p))}},490:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const l=n(938),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let f;r.UnicodeV6=class{constructor(){if(this.version="6",!f){f=new Uint8Array(65536),f.fill(1),f[0]=0,f.fill(0,1,32),f.fill(0,127,160),f.fill(2,4352,4448),f[9001]=2,f[9002]=2,f.fill(2,11904,42192),f[12351]=1,f.fill(2,44032,55204),f.fill(2,63744,64256),f.fill(2,65040,65050),f.fill(2,65072,65136),f.fill(2,65280,65377),f.fill(2,65504,65511);for(let _=0;_<p.length;++_)f.fill(0,p[_][0],p[_][1]+1)}}wcwidth(_){return _<32?0:_<127?1:_<65536?f[_]:function(b,u){let s,a=0,i=u.length-1;if(b<u[0][0]||b>u[i][1])return!1;for(;i>=a;)if(s=a+i>>1,b>u[s][1])a=s+1;else{if(!(b<u[s][0]))return!0;i=s-1}return!1}(_,h)?0:_>=131072&&_<=196605||_>=196608&&_<=262141?2:1}charProperties(_,b){let u=this.wcwidth(_),s=u===0&&b!==0;if(s){const a=l.UnicodeService.extractWidth(b);a===0?s=!1:a>u&&(u=a)}return l.UnicodeService.createPropertyValue(0,u,s)}}},938:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const l=n(345),p=n(490);class h{static extractShouldJoin(_){return(1&_)!=0}static extractWidth(_){return _>>1&3}static extractCharKind(_){return _>>3}static createPropertyValue(_,b,u=!1){return(16777215&_)<<3|(3&b)<<1|(u?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;const _=new p.UnicodeV6;this.register(_),this._active=_.version,this._activeProvider=_}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(_){if(!this._providers[_])throw new Error(`unknown Unicode version "${_}"`);this._active=_,this._activeProvider=this._providers[_],this._onChange.fire(_)}register(_){this._providers[_.version]=_}wcwidth(_){return this._activeProvider.wcwidth(_)}getStringCellWidth(_){let b=0,u=0;const s=_.length;for(let a=0;a<s;++a){let i=_.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=s)return b+this.wcwidth(i);const S=_.charCodeAt(a);56320<=S&&S<=57343?i=1024*(i-55296)+S-56320+65536:b+=this.wcwidth(S)}const o=this.charProperties(i,u);let d=h.extractWidth(o);h.extractShouldJoin(o)&&(d-=h.extractWidth(u)),b+=d,u=o}return b}charProperties(_,b){return this._activeProvider.charProperties(_,b)}}r.UnicodeService=h}},g={};function m(C){var r=g[C];if(r!==void 0)return r.exports;var n=g[C]={exports:{}};return c[C](n,n.exports,m),n.exports}var k={};return(()=>{var C=k;Object.defineProperty(C,"__esModule",{value:!0}),C.Unicode11Addon=void 0;const r=m(433);C.Unicode11Addon=class{activate(n){n.unicode.register(new r.UnicodeV11)}dispose(){}}})(),k})())}(Qe)),Qe.exports}var ps=_s(),ut={exports:{}},Ft;function vs(){return Ft||(Ft=1,function(e,t){(function(c,g){e.exports=g()})(globalThis,()=>(()=>{var c={4567:function(C,r,n){var l=this&&this.__decorate||function(i,o,d,S){var y,w=arguments.length,v=w<3?o:S===null?S=Object.getOwnPropertyDescriptor(o,d):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(i,o,d,S);else for(var E=i.length-1;E>=0;E--)(y=i[E])&&(v=(w<3?y(v):w>3?y(o,d,v):y(o,d))||v);return w>3&&v&&Object.defineProperty(o,d,v),v},p=this&&this.__param||function(i,o){return function(d,S){o(d,S,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const h=n(9042),f=n(9924),_=n(844),b=n(4725),u=n(2585),s=n(3656);let a=r.AccessibilityManager=class extends _.Disposable{constructor(i,o,d,S){super(),this._terminal=i,this._coreBrowserService=d,this._renderService=S,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let y=0;y<this._terminal.rows;y++)this._rowElements[y]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[y]);if(this._topBoundaryFocusListener=y=>this._handleBoundaryFocus(y,0),this._bottomBoundaryFocusListener=y=>this._handleBoundaryFocus(y,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(y=>this._handleResize(y.rows))),this.register(this._terminal.onRender(y=>this._refreshRows(y.start,y.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(y=>this._handleChar(y))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
2
2
|
`))),this.register(this._terminal.onA11yTab(y=>this._handleTab(y))),this.register(this._terminal.onKey(y=>this._handleKey(y.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,s.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,_.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let o=0;o<i;o++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
|
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(i){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(i)||this._charsToConsume.push(i)}_refreshRows(i,o){this._liveRegionDebouncer.refresh(i,o,this._terminal.rows)}_renderRows(i,o){const d=this._terminal.buffer,S=d.lines.length.toString();for(let y=i;y<=o;y++){const w=d.lines.get(d.ydisp+y),v=[],E=w?.translateToString(!0,void 0,void 0,v)||"",P=(d.ydisp+y+1).toString(),O=this._rowElements[y];O&&(E.length===0?(O.innerText=" ",this._rowColumns.set(O,[0,1])):(O.textContent=E,this._rowColumns.set(O,v)),O.setAttribute("aria-posinset",P),O.setAttribute("aria-setsize",S))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,o){const d=i.target,S=this._rowElements[o===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")===(o===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==S)return;let y,w;if(o===0?(y=d,w=this._rowElements.pop(),this._rowContainer.removeChild(w)):(y=this._rowElements.shift(),w=d,this._rowContainer.removeChild(y)),y.removeEventListener("focus",this._topBoundaryFocusListener),w.removeEventListener("focus",this._bottomBoundaryFocusListener),o===0){const v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else{const v=this._createAccessibilityTreeNode();this._rowElements.push(v),this._rowContainer.appendChild(v)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(o===0?-1:1),this._rowElements[o===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;const i=document.getSelection();if(!i)return;if(i.isCollapsed)return void(this._rowContainer.contains(i.anchorNode)&&this._terminal.clearSelection());if(!i.anchorNode||!i.focusNode)return void console.error("anchorNode and/or focusNode are null");let o={node:i.anchorNode,offset:i.anchorOffset},d={node:i.focusNode,offset:i.focusOffset};if((o.node.compareDocumentPosition(d.node)&Node.DOCUMENT_POSITION_PRECEDING||o.node===d.node&&o.offset>d.offset)&&([o,d]=[d,o]),o.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(o={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(o.node))return;const S=this._rowElements.slice(-1)[0];if(d.node.compareDocumentPosition(S)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(d={node:S,offset:S.textContent?.length??0}),!this._rowContainer.contains(d.node))return;const y=({node:E,offset:P})=>{const O=E instanceof Text?E.parentNode:E;let B=parseInt(O?.getAttribute("aria-posinset"),10)-1;if(isNaN(B))return console.warn("row is invalid. Race condition?"),null;const D=this._rowColumns.get(O);if(!D)return console.warn("columns is null. Race condition?"),null;let M=P<D.length?D[P]:D.slice(-1)[0]+1;return M>=this._terminal.cols&&(++B,M=0),{row:B,column:M}},w=y(o),v=y(d);if(w&&v){if(w.row>v.row||w.row===v.row&&w.column>=v.column)throw new Error("invalid range");this._terminal.select(w.column,w.row,(v.row-w.row)*this._terminal.cols-w.column+v.column)}}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let o=this._rowContainer.children.length;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=this._coreBrowserService.mainDocument.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=a=l([p(1,u.IInstantiationService),p(2,b.ICoreBrowserService),p(3,b.IRenderService)],a)},3614:(C,r)=>{function n(f){return f.replace(/\r?\n/g,"\r")}function l(f,_){return _?"\x1B[200~"+f+"\x1B[201~":f}function p(f,_,b,u){f=l(f=n(f),b.decPrivateModes.bracketedPasteMode&&u.rawOptions.ignoreBracketedPasteMode!==!0),b.triggerDataEvent(f,!0),_.value=""}function h(f,_,b){const u=b.getBoundingClientRect(),s=f.clientX-u.left-10,a=f.clientY-u.top-10;_.style.width="20px",_.style.height="20px",_.style.left=`${s}px`,_.style.top=`${a}px`,_.style.zIndex="1000",_.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=n,r.bracketTextForPaste=l,r.copyHandler=function(f,_){f.clipboardData&&f.clipboardData.setData("text/plain",_.selectionText),f.preventDefault()},r.handlePasteEvent=function(f,_,b,u){f.stopPropagation(),f.clipboardData&&p(f.clipboardData.getData("text/plain"),_,b,u)},r.paste=p,r.moveTextAreaUnderMouseCursor=h,r.rightClickHandler=function(f,_,b,u,s){h(f,_,b),s&&u.rightClickSelect(f),_.value=u.selectionText,_.select()}},7239:(C,r,n)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=n(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(p,h,f){this._css.set(p,h,f)}getCss(p,h){return this._css.get(p,h)}setColor(p,h,f){this._color.set(p,h,f)}getColor(p,h){return this._color.get(p,h)}clear(){this._color.clear(),this._css.clear()}}},3656:(C,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(n,l,p,h){n.addEventListener(l,p,h);let f=!1;return{dispose:()=>{f||(f=!0,n.removeEventListener(l,p,h))}}}},3551:function(C,r,n){var l=this&&this.__decorate||function(a,i,o,d){var S,y=arguments.length,w=y<3?i:d===null?d=Object.getOwnPropertyDescriptor(i,o):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(a,i,o,d);else for(var v=a.length-1;v>=0;v--)(S=a[v])&&(w=(y<3?S(w):y>3?S(i,o,w):S(i,o))||w);return y>3&&w&&Object.defineProperty(i,o,w),w},p=this&&this.__param||function(a,i){return function(o,d){i(o,d,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier=void 0;const h=n(3656),f=n(8460),_=n(844),b=n(2585),u=n(4725);let s=r.Linkifier=class extends _.Disposable{get currentLink(){return this._currentLink}constructor(a,i,o,d,S){super(),this._element=a,this._mouseService=i,this._renderService=o,this._bufferService=d,this._linkProviderService=S,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new f.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new f.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,_.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,_.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(a){this._lastMouseEvent=a;const i=this._positionFromMouseEvent(a,this._element,this._mouseService);if(!i)return;this._isMouseOut=!1;const o=a.composedPath();for(let d=0;d<o.length;d++){const S=o[d];if(S.classList.contains("xterm"))break;if(S.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._handleHover(i),this._lastBufferCell=i)}_handleHover(a){if(this._activeLine!==a.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(a,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,a)||(this._clearCurrentLink(),this._askForLink(a,!0))}_askForLink(a,i){this._activeProviderReplies&&i||(this._activeProviderReplies?.forEach(d=>{d?.forEach(S=>{S.link.dispose&&S.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=a.y);let o=!1;for(const[d,S]of this._linkProviderService.linkProviders.entries())i?this._activeProviderReplies?.get(d)&&(o=this._checkLinkProviderResult(d,a,o)):S.provideLinks(a.y,y=>{if(this._isMouseOut)return;const w=y?.map(v=>({link:v}));this._activeProviderReplies?.set(d,w),o=this._checkLinkProviderResult(d,a,o),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(a.y,this._activeProviderReplies)})}_removeIntersectingLinks(a,i){const o=new Set;for(let d=0;d<i.size;d++){const S=i.get(d);if(S)for(let y=0;y<S.length;y++){const w=S[y],v=w.link.range.start.y<a?0:w.link.range.start.x,E=w.link.range.end.y>a?this._bufferService.cols:w.link.range.end.x;for(let P=v;P<=E;P++){if(o.has(P)){S.splice(y--,1);break}o.add(P)}}}}_checkLinkProviderResult(a,i,o){if(!this._activeProviderReplies)return o;const d=this._activeProviderReplies.get(a);let S=!1;for(let y=0;y<a;y++)this._activeProviderReplies.has(y)&&!this._activeProviderReplies.get(y)||(S=!0);if(!S&&d){const y=d.find(w=>this._linkAtPosition(w.link,i));y&&(o=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!o)for(let y=0;y<this._activeProviderReplies.size;y++){const w=this._activeProviderReplies.get(y)?.find(v=>this._linkAtPosition(v.link,i));if(w){o=!0,this._handleNewLink(w);break}}return o}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(a){if(!this._currentLink)return;const i=this._positionFromMouseEvent(a,this._element,this._mouseService);i&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(a,this._currentLink.link.text)}_clearCurrentLink(a,i){this._currentLink&&this._lastMouseEvent&&(!a||!i||this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))}_handleNewLink(a){if(!this._lastMouseEvent)return;const i=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);i&&this._linkAtPosition(a.link,i)&&(this._currentLink=a,this._currentLink.state={decorations:{underline:a.link.decorations===void 0||a.link.decorations.underline,pointerCursor:a.link.decorations===void 0||a.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,a.link,this._lastMouseEvent),a.link.decorations={},Object.defineProperties(a.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:o=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==o&&(this._currentLink.state.decorations.pointerCursor=o,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",o))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:o=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==o&&(this._currentLink.state.decorations.underline=o,this._currentLink.state.isHovered&&this._fireUnderlineEvent(a.link,o))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(o=>{if(!this._currentLink)return;const d=o.start===0?0:o.start+1+this._bufferService.buffer.ydisp,S=this._bufferService.buffer.ydisp+1+o.end;if(this._currentLink.link.range.start.y>=d&&this._currentLink.link.range.end.y<=S&&(this._clearCurrentLink(d,S),this._lastMouseEvent)){const y=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);y&&this._askForLink(y,!1)}})))}_linkHover(a,i,o){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&a.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(o,i.text)}_fireUnderlineEvent(a,i){const o=a.range,d=this._bufferService.buffer.ydisp,S=this._createLinkUnderlineEvent(o.start.x-1,o.start.y-d-1,o.end.x,o.end.y-d-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(S)}_linkLeave(a,i,o){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&a.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(o,i.text)}_linkAtPosition(a,i){const o=a.range.start.y*this._bufferService.cols+a.range.start.x,d=a.range.end.y*this._bufferService.cols+a.range.end.x,S=i.y*this._bufferService.cols+i.x;return o<=S&&S<=d}_positionFromMouseEvent(a,i,o){const d=o.getCoords(a,i,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(a,i,o,d,S){return{x1:a,y1:i,x2:o,y2:d,cols:this._bufferService.cols,fg:S}}};r.Linkifier=s=l([p(1,u.IMouseService),p(2,u.IRenderService),p(3,b.IBufferService),p(4,u.ILinkProviderService)],s)},9042:(C,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(C,r,n){var l=this&&this.__decorate||function(u,s,a,i){var o,d=arguments.length,S=d<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,a):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(u,s,a,i);else for(var y=u.length-1;y>=0;y--)(o=u[y])&&(S=(d<3?o(S):d>3?o(s,a,S):o(s,a))||S);return d>3&&S&&Object.defineProperty(s,a,S),S},p=this&&this.__param||function(u,s){return function(a,i){s(a,i,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const h=n(511),f=n(2585);let _=r.OscLinkProvider=class{constructor(u,s,a){this._bufferService=u,this._optionsService=s,this._oscLinkService=a}provideLinks(u,s){const a=this._bufferService.buffer.lines.get(u-1);if(!a)return void s(void 0);const i=[],o=this._optionsService.rawOptions.linkHandler,d=new h.CellData,S=a.getTrimmedLength();let y=-1,w=-1,v=!1;for(let E=0;E<S;E++)if(w!==-1||a.hasContent(E)){if(a.loadCell(E,d),d.hasExtendedAttrs()&&d.extended.urlId){if(w===-1){w=E,y=d.extended.urlId;continue}v=d.extended.urlId!==y}else w!==-1&&(v=!0);if(v||w!==-1&&E===S-1){const P=this._oscLinkService.getLinkData(y)?.uri;if(P){const O={start:{x:w+1,y:u},end:{x:E+(v||E!==S-1?0:1),y:u}};let B=!1;if(!o?.allowNonHttpProtocols)try{const D=new URL(P);["http:","https:"].includes(D.protocol)||(B=!0)}catch{B=!0}B||i.push({text:P,range:O,activate:(D,M)=>o?o.activate(D,M,O):b(0,M),hover:(D,M)=>o?.hover?.(D,M,O),leave:(D,M)=>o?.leave?.(D,M,O)})}v=!1,d.hasExtendedAttrs()&&d.extended.urlId?(w=E,y=d.extended.urlId):(w=-1,y=-1)}}s(i)}};function b(u,s){if(confirm(`Do you want to navigate to ${s}?
|
|
4
4
|
|
package/dist/browser/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>tui-sandbox integration tests</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-BIcK2_KN.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-BYvynUT_.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NeovimTerminalClient } from "../client/neovim-terminal-client.js";
|
|
2
2
|
import { TerminalTerminalClient } from "../client/terminal-terminal-client.js";
|
|
3
3
|
import { Lazy } from "../server/utilities/Lazy.js";
|
|
4
4
|
const app = document.querySelector("#app");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neovim-client.js","sourceRoot":"","sources":["../../../src/browser/neovim-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"neovim-client.js","sourceRoot":"","sources":["../../../src/browser/neovim-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAA;AAiB9E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAc,MAAM,CAAC,CAAA;AACvD,IAAI,CAAC,GAAG,EAAE,CAAC;IACT,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;AACzC,CAAC;AAED,qEAAqE;AACrE,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAA;AAClE,MAAM,cAAc,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;AAWtE,+CAA+C;AAC/C,MAAM,CAAC,WAAW,GAAG,KAAK,WAAW,SAAuC;IAC1E,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,CAAA;IACjC,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;QAC7C,8BAA8B,EAAE,SAAS,EAAE,8BAA8B;QACzE,QAAQ,EAAE,SAAS,EAAE,QAAQ,IAAI,kBAAkB;QACnD,0BAA0B,EAAE,SAAS,EAAE,0BAA0B,IAAI,EAAE;QACvE,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,SAAS,EAAE,YAAY;KACS,CAAC,CAAA;IAEjD,MAAM,gBAAgB,GAA4B;QAChD,uBAAuB,CAAC,KAAiC;YACvD,OAAO,MAAM,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAA;QAC9C,CAAC;QACD,UAAU,CAAC,KAAK;YACd,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QACjC,CAAC;QACD,MAAM,CAAC,KAAK;YACV,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QACD,cAAc,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;QACrC,CAAC;QACD,YAAY,CAAC,KAAK;YAChB,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QACnC,CAAC;QACD,GAAG,EAAE,aAAa;KACnB,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AA6BD,+CAA+C;AAC/C,MAAM,CAAC,wBAAwB,GAAG,KAAK,WACrC,IAAmC;IAEnC,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,EAAE,CAAA;IACrC,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;IAEnE,MAAM,kBAAkB,GAA8B;QACpD,GAAG,EAAE,aAAa;QAClB,uBAAuB,CAAC,KAAK;YAC3B,OAAO,QAAQ,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;IACD,OAAO,kBAAkB,CAAA;AAC3B,CAAC,CAAA"}
|
|
@@ -9,24 +9,26 @@
|
|
|
9
9
|
* Limitation: text spanning multiple lines will not be detected.
|
|
10
10
|
*/
|
|
11
11
|
export function textIsVisibleWithColor(text, color) {
|
|
12
|
-
return cy
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
return cy
|
|
13
|
+
.get("div.xterm-rows span")
|
|
14
|
+
.filter(`:contains(${text})`)
|
|
15
|
+
.should("exist") // ensures there's at least one match
|
|
16
|
+
.should($els => {
|
|
17
|
+
const colors = $els.map((_, el) => window.getComputedStyle(el).color).toArray();
|
|
18
|
+
expect(colors).to.include(color);
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
/** Like `textIsVisibleWithColor`, but checks the background color instead
|
|
21
22
|
* of the text color.
|
|
22
23
|
*/
|
|
23
24
|
export function textIsVisibleWithBackgroundColor(text, color) {
|
|
24
|
-
return cy
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
return cy
|
|
26
|
+
.get("div.xterm-rows span")
|
|
27
|
+
.filter(`:contains(${text})`)
|
|
28
|
+
.should("exist") // ensures there's at least one match
|
|
29
|
+
.should($els => {
|
|
30
|
+
const colors = $els.map((_, el) => window.getComputedStyle(el).backgroundColor).toArray();
|
|
31
|
+
expect(colors).to.include(color);
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
34
|
//# sourceMappingURL=cypress-assertions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypress-assertions.js","sourceRoot":"","sources":["../../../src/client/cypress-assertions.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,KAAa;IAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cypress-assertions.js","sourceRoot":"","sources":["../../../src/client/cypress-assertions.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,KAAa;IAChE,OAAO,EAAE;SACN,GAAG,CAAC,qBAAqB,CAAC;SAC1B,MAAM,CAAC,aAAa,IAAI,GAAG,CAAC;SAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,qCAAqC;SACrD,MAAM,CAAC,IAAI,CAAC,EAAE;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAA;QAC/E,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,IAAY,EAAE,KAAa;IAC1E,OAAO,EAAE;SACN,GAAG,CAAC,qBAAqB,CAAC;SAC1B,MAAM,CAAC,aAAa,IAAI,GAAG,CAAC;SAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,qCAAqC;SACrD,MAAM,CAAC,IAAI,CAAC,EAAE;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,CAAA;QACzF,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export { rgbify } from "./color-utilities.js";
|
|
2
2
|
export { textIsVisibleWithBackgroundColor, textIsVisibleWithColor } from "./cypress-assertions.js";
|
|
3
|
-
export { NeovimTerminalClient as TerminalClient } from "./neovim-terminal-client.js";
|
|
4
|
-
export { TerminalTerminalClient } from "./terminal-terminal-client.js";
|
package/dist/src/client/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// This is the public client api. Semantic versioning will be applied to this.
|
|
2
2
|
export { rgbify } from "./color-utilities.js";
|
|
3
3
|
export { textIsVisibleWithBackgroundColor, textIsVisibleWithColor } from "./cypress-assertions.js";
|
|
4
|
-
export { NeovimTerminalClient as TerminalClient } from "./neovim-terminal-client.js";
|
|
5
|
-
export { TerminalTerminalClient } from "./terminal-terminal-client.js";
|
|
6
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -3,7 +3,6 @@ import type { StartTerminalBrowserArguments } from "../browser/neovim-client.js"
|
|
|
3
3
|
import type { BlockingCommandClientInput } from "../server/blockingCommandInputSchema.js";
|
|
4
4
|
import type { BlockingShellCommandOutput, TestDirectory } from "../server/types.js";
|
|
5
5
|
import type { TuiTerminalApi } from "./startTerminal.js";
|
|
6
|
-
import "./style.css";
|
|
7
6
|
/** Manages the terminal state in the browser as well as the (browser's)
|
|
8
7
|
* connection to the server side terminal application api. */
|
|
9
8
|
export declare class TerminalTerminalClient {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createTRPCClient, httpBatchLink, httpSubscriptionLink, splitLink } from "@trpc/client";
|
|
2
2
|
import "@xterm/xterm/css/xterm.css";
|
|
3
3
|
import { getTabId, startTerminal } from "./startTerminal.js";
|
|
4
|
-
import "./style.css";
|
|
5
4
|
import { supportDA1 } from "./terminal-config.js";
|
|
6
5
|
/** Manages the terminal state in the browser as well as the (browser's)
|
|
7
6
|
* connection to the server side terminal application api. */
|