varTabby=(()=>{varC_=Object.create;varSo=Object.defineProperty;varN_=Object.getOwnPropertyDescriptor;varL_=Object.getOwnPropertyNames;vark_=Object.getPrototypeOf,F_=Object.prototype.hasOwnProperty;varP_=(e,t,r)=>tine?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;varAo=(e=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(e,{get:(t,r)=>(typeofrequire<"u"?require:t)[r]}):e)(function(e){if(typeofrequire<"u")returnrequire.apply(this,arguments);thrownewError('Dynamic require of "'+e+'" is not supported')});varXn=(e,t)=>()=>(e&&(t=e(e=0)),t);varHe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bh=(e,t)=>{for(varrint)So(e,r,{get:t[r],enumerable:!0})},Ch=(e,t,r,n)=>{if(t&&typeoft=="object"||typeoft=="function")for(letoofL_(t))!F_.call(e,o)&&o!==r&&So(e,o,{get:()=>t[o],enumerable:!(n=N_(t,o))||n.enumerable});returne};varJn=(e,t,r)=>(r=e!=null?C_(k_(e)):{},Ch(t||!e||!e.__esModule?So(r,"default",{value:e,enumerable:!0}):r,e)),U_=e=>Ch(So({},"__esModule",{value:!0}),e);varat=(e,t,r)=>(P_(e,typeoft!="symbol"?t+"":t,r),r),ku=(e,t,r)=>{if(!t.has(e))throwTypeError("Cannot "+r)};varJ=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),it=(e,t,r)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,r)},Ge=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ia=(e,t,r,n)=>({set_(o){Ge(e,t,o,r)},get_(){returnJ(e,t,n)}}),tt=(e,t,r)=>(ku(e,t,"access private method"),r);varse,$=Xn(()=>{se=globalThis});varz=Xn(()=>{});varq=Xn(()=>{});varce={};Bh(ce,{_debugEnd:()=>wp,_debugProcess:()=>vp,_events:()=>kp,_eventsCount:()=>Fp,_exiting:()=>Qh,_fatalExceptions:()=>dp,_getActiveHandles:()=>np,_getActiveRequests:()=>rp,_kill:()=>op,_linkedBinding:()=>Xh,_maxListeners:()=>Lp,_preload_modules:()=>Cp,_rawDebug:()=>Yh,_startProfilerIdleNotifier:()=>bp,_stopProfilerIdleNotifier:()=>_p,_tickCallback:()=>mp,abort:()=>Rp,addListener:()=>Pp,allowedNodeEnvironmentFlags:()=>cp,arch:()=>Ph,argv:()=>Mh,argv0:()=>Bp,assert:()=>hp,binding:()=>Wh,chdir:()=>Vh,config:()=>ep,cpuUsage:()=>Ca,cwd:()=>Zh,debugPort:()=>xp,default:()=>Hp,dlopen:()=>tp,domain:()=>Jh,emit:()=>$p,emitWarning:()=>qh,env:()=>Dh,execArgv:()=>jh,execPath:()=>Ip,exit:()=>fp,features:()=>pp,hasUncaughtExceptionCaptureCallback:()=>gp,hrtime:()=>Ba,kill:()=>up,listeners:()=>Wp,memoryUsage:()=>sp,moduleLoadList:()=>Kh,nextTick:()=>Lh,off:()=>Dp,on:()=>yn,once:()=>Up,openStdin:()=>lp,pid:()=>Tp,platform:()=>Uh,ppid:()=>Op,prependListener:()=>zp,prependOnceListener:()=>qp,reallyExit:()=>ip,release:()=>Gh,removeAllListeners:()=>jp,removeListener:()=>Mp,resourceUsage:()=>ap,setSourceMapsEnabled:()=>Np,setUncaughtExceptionCaptureCallback:()=>yp,stderr:()=>Sp,stdin:()=>Ap,stdout:()=>Ep,title:()=>Fh,umask:()=>Hh,uptime:()=>Ro,version:()=>$h,versions:()=>zh});functionUu(e){thrownewError("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}functionD_(){!Ni||!Qn||(Ni=!1,Qn.length?dn=Qn.concat(dn):xa=-1,dn.length&&Nh())}functionNh(){if(!Ni){vare=setTimeout(D_,0);Ni=!0;for(vart=dn.length;t;){for(Qn=dn,dn=[];++xa<t;)Qn&&Qn[xa].run();xa=-1,t=dn.length}Qn=null,Ni=!1,clearTimeout(e)}}functionLh(e){vart=newArray(arguments.length-1);if(arguments.length>1)for(varr=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(newkh(e,t)),dn.length===1&&!Ni&&setTimeout(Nh,0)}functionkh(e,t){this.fun=e,this.array=t}functioner(){}functionXh(e){Uu("_linkedBinding")}functiontp(e){Uu("dlopen")}functionrp(){return[]}functionnp(){return[]}functionhp(e,t){if(!e)thrownewError(t||"assertion error")}functiongp(){return!1}functionRo(){returnLn.now()/1e3}functionBa(e){vart=Math.floor((Date.now()-Ln.now())*.001),r=Ln.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);returne&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=Pu)),[n,o]}functionyn(){returnHp}functionWp(e){return[]}vardn,Ni,Qn,xa,Fh,Ph,Uh,Dh,Mh,jh,$h,zh,qh,Wh,Hh,Zh,Vh,Gh,Yh,Kh,Jh,Qh,ep,ip,op,Ca,ap,sp,up,fp,lp,cp,pp,dp,yp,mp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Np,Ln,Fu,Pu,
`+t.prev}function as(e,t){var r=Bf(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Dn(e,o)?t(e[o],e):""}var a=typeof Rf=="function"?Rf(e):[],i;if(Hi){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in e)Dn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Hi&&i["$"+l]instanceof Symbol||(dg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Rf=="function")for(var c=0;c<a.length;c++)yg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Uf=He((FP,Eg)=>{"use strict";$();z();q();H();W();var Ff=Ur(),Zi=lr(),O2=_g(),I2=Ff("%TypeError%"),fs=Ff("%WeakMap%",!0),ls=Ff("%Map%",!0),x2=Zi("WeakMap.prototype.get",!0),B2=Zi("WeakMap.prototype.set",!0),C2=Zi("WeakMap.prototype.has",!0),N2=Zi("Map.prototype.get",!0),L2=Zi("Map.prototype.set",!0),k2=Zi("Map.prototype.has",!0),Pf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},F2=function(e,t){var r=Pf(e,t);return r&&r.value},P2=function(e,t,r){var n=Pf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},U2=function(e,t){return!!Pf(e,t)};Eg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new I2("Side channel does not contain "+O2(a))},get:function(a){if(fs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return x2(t,a)}else if(ls){if(r)return N2(r,a)}else if(n)return F2(n,a)},has:function(a){if(fs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return C2(t,a)}else if(ls){if(r)return k2(r,a)}else if(n)return U2(n,a);return!1},set:function(a,i){fs&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new fs),B2(t,a,i)):ls?(r||(r=new ls),L2(r,a,i)):(n||(n={key:{},next:null}),P2(n,a,i))}};return o}});var Ag=He(($P,Sg)=>{"use strict";$();z();q();H();W();var D2=Ur(),M2=ff(),Zo=Uf()(),vn=D2("%TypeError%"),Df={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");if(Zo.assert(e),!Df.has(e,t))throw new vn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Zo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Zo.get(e);return!!r&&M2(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var n=Zo.get(e);n||(n={},Zo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(Df);Sg.exports=Df});var Og=He((VP,Tg)=>{"use strict";$();z();q();H();W();var Vo=Ag(),j2=SyntaxError,Rg=typeof StopIteration=="object"?StopIteration:null;Tg.exports=function(t){if(!Rg)throw new j2("this environment lacks StopIteration");Vo.set(t,"[[Done]]",!1);var r={next:function(){var o=Vo.get(this,"[[Iterator]]"),a=Vo.get(o,"[[Done]]");try{return{done:a,value:a?void 0:o.next()}}catch(i){if(Vo.set(o,"[[Done]]",!0),i!==Rg)throw i;return{done:!0,value:void 0}}}};return Vo.set(r,"[[Iterator]]",t),r}});var Mf=He((QP,Ig)=>{$();z();q();H();W();var $2={}.toString;Ig.exports=Array.isArray||function(e){return $2.call(e)=="[object Array]"}});var jf=He((oU,xg)=>{"use strict";$();z();q();H();W();var z2=String.prototype.valueOf,q2=function(t){try{return z2.call(t),!0}catch{return!1}},W2=Object.prototype.toString,H2="[object String]",Z2=mn()();xg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:Z2?q2(t):W2.call(t)===H2}});var zf=He((cU,Ng)=>{"use strict";$();z();q();H();W();var $f=typeof Map=="function"&&Map.prototype?Map:null,V2=typeof Set=="function"&&Set.prototype?Set:null,cs;$f||(cs=function(t){return!1});var Cg=$f?Map.prototype.has:null,Bg=V2?Set.prototype.has:null;!cs&&!Cg&&(cs=function(t){return!1});Ng.exports=cs||function(t){if(!t||typeof t!="object")return!1;try{if(Cg.call(t),Bg)try{Bg.call(t)}catch{return!0}return t instanceof $f
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&LE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var yd=Symbol("internals");function Co(e){return e&&String(e).trim().toLowerCase()}function Wa(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Wa):String(e)}function kE(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var FE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());functionHu(e,t,r,n,o){if(Ee.isFunction(n))returnn.call(this,t,r);if(o&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))returnt.indexOf(n)!==-1;if(Ee.isRegExp(n))returnn.test(t)}}functionPE(e){returne.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}functionUE(e,t){letr=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){returnthis[n].call(this,t,o,a,i)},configurable:!0})})}varPi=class{constructor(t){t&&this.set(t)}set(t,r,n){leto=this;functiona(f,l,c){letd=Co(l);if(!d)thrownewError("header name must be a non-empty string");lety=Ee.findKey(o,d);(!y||o[y]===void0||c===!0||c===void0&&o[y]!==!1)&&(o[y||l]=Wa(f))}leti=(f,l)=>Ee.forEach(f,(c,d)=>a(c,d,l));returnEe.isPlainObject(t)||tinstanceofthis.constructor?i(t,r):Ee.isString(t)&&(t=t.trim())&&!FE(t)?i(dd(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=Co(t),t){letn=Ee.findKey(this,t);if(n){leto=this[n];if(!r)returno;if(r===!0)returnkE(o);if(Ee.isFunction(r))returnr.call(this,o,n);if(Ee.isRegExp(r))returnr.exec(o);thrownewTypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Co(t),t){letn=Ee.findKey(this,t);return!!(n&&this[n]!==void0&&(!r||Hu(this,this[n],n,r)))}return!1}delete(t,r){letn=this,o=!1;functiona(i){if(i=Co(i),i){letf=Ee.findKey(n,i);f&&(!r||Hu(n,n[f],f,r))&&(deleten[f],o=!0)}}returnEe.isArray(t)?t.forEach(a):a(t),o}clear(t){letr=Object.keys(this),n=r.length,o=!1;for(;n--;){leta=r[n];(!t||Hu(this,this[a],a,t,!0))&&(deletethis[a],o=!0)}returno}normalize(t){letr=this,n={};returnEe.forEach(this,(o,a)=>{leti=Ee.findKey(n,a);if(i){r[i]=Wa(o),deleter[a];return}letf=t?PE(a):String(a).trim();f!==a&&deleter[a],r[f]=Wa(o),n[f]=!0}),this}concat(...t){returnthis.constructor.concat(this,...t)}toJSON(t){letr=Object.create(null);returnEe.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`,zt.homedir=function(){return"/"}),zt}var st=BT();st.endianness;st.hostname;st.loadavg;st.uptime;st.freemem;st.totalmem;st.cpus;st.type;st.release;st.networkInterfaces;st.getNetworkInterfaces;st.arch;st.platform;st.tmpdir;st.tmpDir;st.EOL;st.homedir;var CT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return CT};st.homedir=function(){return"/home"};st.version=function(){return""};st.arch=function(){return"x64"};st.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};st.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};st.uptime=Ro;st.constants={};var iz=st.version,oz=st.constants,az=st.EOL,sz=st.arch,uz=st.cpus,fz=st.endianness,lz=st.freemem,cz=st.getNetworkInterfaces,hz=st.homedir,pz=st.hostname,dz=st.loadavg,yz=st.networkInterfaces,gz=st.platform,mz=st.release,vz=st.tmpDir,wz=st.tmpdir,bz=st.totalmem,_z=st.type;$();z();q();H();W();$();z();q();H();W();$();z();q();H();W();var Gl={},xv=!1,fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function NT(){if(xv)return Gl;xv=!0;var e=Gl={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(w){if(t===setTimeout)return setTimeout(w,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch{try{return t.call(null,w,0)}catch{return t.call(this||fo,w,0)}}}function i(w){if(r===clearTimeout)return clearTimeout(w);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{return r(w)}catch{try{return r.call(null,w)}catch{return r.call(this||fo,w)}}}var f=[],l=!1,c,d=-1;function y(){!l||!c||(l=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!l){var w=a(y);l=!0;for(var S=f.length;S;){for(c=f,f=[];++d<S;)c&&c[d].run();d=-1,S=f.length}c=null,l=!1,i(w)}}e.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];f.push(new _(w,S)),f.length===1&&!l&&a(v)};function _(w,S){(this||fo).fun=w,(this||fo).array=S}_.prototype.run=function(){(this||fo).fun.apply(null,(this||fo).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(w){return[]},e.binding=function(w){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(w){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Gl}var lt=NT();lt.platform="browser";lt.addListener;lt.argv;lt.binding;lt.browser;lt.chdir;lt.cwd;lt.emit;lt.env;lt.listeners;lt.nextTick;lt.off;lt.on;lt.once;lt.prependListener;lt.prependOnceListener;lt.removeAllListeners;lt.removeListener;lt.title;lt.umask;lt.version;lt.versions;var Yl={},Bv=!1;function LT(){if(Bv)return Yl;Bv=!0;var e=lt;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l=
`).concat(Te).concat(Q).concat(re).concat(ye)}var F=function(N){function x(Te){var K;if(function(Je,Ve){if(!(Je instanceof Ve))throw new TypeError("Cannot call a class as a function")}(this,x),d(Te)!=="object"||Te===null)throw new v("options","Object",Te);var re=Te.message,ae=Te.operator,Ce=Te.stackStartFn,Ne=Te.actual,ne=Te.expected,te=Error.stackTraceLimit;if(Error.stackTraceLimit=0,re!=null)K=n(this,c(x).call(this,String(re)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(h="\x1B[34m",w="\x1B[32m",T="\x1B[39m",S="\x1B[31m"):(h="",w="",T="",S="")),d(Ne)==="object"&&Ne!==null&&d(ne)==="object"&&ne!==null&&"stack"in Ne&&Ne instanceof Error&&"stack"in ne&&ne instanceof Error&&(Ne=M(Ne),ne=M(ne)),ae==="deepStrictEqual"||ae==="strictEqual")K=n(this,c(x).call(this,V(Ne,ne,ae)));else if(ae==="notDeepStrictEqual"||ae==="notStrictEqual"){var ye=C[ae],me=D(Ne).split(`
`)&&(t=t.replace(_x,"%0A")),t.includes("\r")&&(t=t.replace(Ex,"%0D")),t.includes(" ")&&(t=t.replace(Sx,"%09")),n.pathname=t,n}var Ix=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=$x;St.fileURLToPath=hh;var yV=St.Url,gV=St.format,mV=St.resolve,vV=St.resolveObject,wV=St.parse,bV=St.URL,xx=92,Bx=47,Cx=97,Nx=122,ch=Ix==="win32",Lx=/\//g,kx=/%/g,Fx=/\\/g,Px=/\n/g,Ux=/\r/g,Dx=/\t/g;function hh(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return ch?Mx(e):jx(e)}function Mx(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(Lx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Cx||n>Nx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function jx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function $x(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===Bx||ch&&r===xx)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(kx,"%25")),!ch&&t.includes("\\")&&(t=t.replace(Fx,"%5C")),t.includes(`
`)&&(t=t.replace(Px,"%0A")),t.includes("\r")&&(t=t.replace(Ux,"%0D")),t.includes(" ")&&(t=t.replace(Dx,"%09")),n.pathname=t,n}ka();var _a={},Tb=!1;function Sa(){return Tb||(Tb=!0,Object.defineProperty(_a,"__esModule",{value:!0}),_a.constants=void 0,_a.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}),_a}var Eu={},Ob=!1;function zx(){return Ob||(Ob=!0,typeof BigInt=="function"?Eu.default=BigInt:Eu.default=function(){throw new Error("BigInt is not supported in this environment.")}),Eu}var vo={},Ib=!1;function ph(){if(Ib)return vo;Ib=!0,Object.defineProperty(vo,"__esModule",{value:!0}),vo.Stats=void 0;var e=Sa(),t=zx(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){}return y.build=function(v,_){_===void 0&&(_=!1);var h=new y,w=v.uid,S=v.gid,T=v.atime,C=v.mtime,M=v.ctime,D=_?t.default:function(F){return F};h.uid=D(w),h.gid=D(S),h.rdev=D(0),h.blksize=D(4096),h.ino=D(v.ino),h.size=D(v.getSize()),h.blocks=D(1),h.atime=T,h.mtime=C,h.ctime=M,h.birthtime=M,h.atimeMs=D(T.getTime()),h.mtimeMs=D(C.getTime());var V=D(M.getTime());return h.ctimeMs=V,h.birthtimeMs=V,h.dev=D(0),h.mode=D(v.mode),h.nlink=D(v.nlink),h},y.prototype._checkModeProperty=function(v){return(Number(this.mode)&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return vo.Stats=d,vo.default=d,vo}var Gr={},xb=!1;function dh(){if(xb)return Gr;xb=!0;var e=Gr&&Gr.__spreadArray||function(a,i,f){if(f||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return a.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.bufferFrom=Gr.bufferAllocUnsafe=Gr.Buffer=void 0;var t=Br;Object.defineProperty(Gr,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(a){for(var i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,a],i,!1)))}var n=t.Buffer.allocUnsafe||r;Gr.bufferAllocUnsafe=n;var o=t.Buffer.from||r;return Gr.bufferFrom=o,Gr}var qt={},Bb=!1,qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(Bb)return qt;Bb=!0;var e=qt&&qt.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(qt,"__esModule",{value:!0}),qt.E=qt.AssertionError=qt.message=qt.RangeError=qt.TypeError=qt.Error=void 0;var t=Qe,r=Oe,n=typeof Symbol>"u"?"_kCode":Symbol("code"),o={};function a(h){return function(w){e(S,w);function S(T){for(var C=[],M=1;M<arguments.length;M++)C[M-1]=arguments
`),r]}catch(l){if(l.code!=="ENOENT")throw l}for(let l of f)if(l)try{let c=await this.fsStat(l);c.isFile()?i.push({name:l,size:c.size,time:c.ctime.getTime()}):this.emit("warning",new Error(`File'${l}'containedinhistoryisnotaregularfile`))}catch(c){if(c.code!=="ENOENT")throw c}if(i.sort((l,c)=>l.time-c.time),o)for(;i.length>o;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!0)}if(a)for(;i.reduce((l,c)=>l+c.size,0)>a;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!1)}await r_(n,i.map(l=>l.name).join(`
`)+`
`,"utf-8"),this.emit("history")}async immutate(r){let{size:n}=this.options,o=this.now();for(let a=1;a<1e3;++a){let i=0,f;this.filename=this.options.path+this.generator(o,a);try{f=await this.fsStat(this.filename)}catch(l){if(l.code!=="ENOENT")throw l}if(f){if(i=f.size,!f.isFile())throw new Error(`Can't write on: '${this.filename}' (it is not a file)`);if(n&&i>=n)continue}if(r)return this.last=this.filename,this.reopen(i);await this.rotated(this.last),this.last=this.filename;return}throw new Tu}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function o_(e){return(t,r,n)=>{let o=parseInt(n,10);if(t!=="number"||o!==n||o<=0)throw new Error(`'${e}' option must be a positive integer number`)}}function vh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don'tknowhowtohandle'options.${e}'type:${r}`);n[e]=t(o)}}function u_(e,t,r){let n={};if(n.num=parseInt(e,10),isNaN(n.num))throw new Error(`Unknown'options.${t}'format:${e}`);if(n.num<=0)throw new Error(`Apositiveintegernumberisexpectedfor'options.${t}'`);if(n.unit=e.replace(/^[ 0]*/g,"").substr((n.num+"").length,1),n.unit.length===0)throw new Error(`Missingunitfor'options.${t}'`);if(!r[n.unit])throw new Error(`Unknown'options.${t}'unit:${n.unit}`);return n}var iB={M:!0,d:!0,h:!0,m:!0,s:!0};function wh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`Anintegerdividerof${r}isexpectedas${t}for'options.interval'`)}function oB(e){let t=u_(e,"interval",iB);switch(t.unit){case"h":wh(t,"hours",24);break;case"m":wh(t,"minutes",60);break;case"s":wh(t,"seconds",60);break}return t}var aB={B:!0,G:!0,K:!0,M:!0};function a_(e){let t=u_(e,"size",aB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var s_={encoding:(e,t,r)=>new i1(r),immutable:()=>{},initialRotation:()=>{},interval:vh("interval",oB),intervalBoundary:()=>{},maxFiles:o_("maxFiles"),maxSize:vh("maxSize",a_),mode:()=>{},omitExtension:()=>{},rotate:o_("rotate"),size:vh("size",a_),teeToStdout:()=>{},compress:(e,t,r)=>{if(!r)throw new Error("A value for 'options.compress' must be specified");if(e==="boolean")return t.compress=(n,o)=>`cat${n}|gzip-c9>${o}`;if(e!=="function"){if(e!=="string")throw new Error(`Don't know how to handle 'options.compress' type: ${e}`);if(r!=="gzip")throw new Error(`Don'tknowhowtohandlecompressionmethod:${r}`)}},history:e=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.history' type: ${e}`)},path:(e,t,r)=>{if(e!=="string")throw new Error(`Don'tknowhowtohandle'options.path'type:${e}`);r[r.length-1]!==sa&&(t.path=r+sa)}};function sB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in s_))throw new Error(`Unknownoption:${r}`);t[r]=e[r],s_[r](o,t,n)}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function uB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function fB(e,t,r){let n=o=>(o>9?"":"0")+o;return(o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function f_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The"options"argumentmustbeoftypeobject.Receivedtype${typeoft}`);let r=sB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?uB(e,n!==void 0,o):fB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The"filename"argumentmustbeoneoftypestringorfunction.Receivedtype${typeofe}`);return new bh(a,r)}var Sh=Jn(m_()),v_=w_.isBrowser?null:f_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Eo=v_?(0,Sh.default)(v_):(0,Sh.default)(),xu=[Eo];Eo.onChild=e=>{xu.push(e)};var Bu=class{constructor(){this.logger=Eo.child({componen