varTabby=(()=>{varB_=Object.create;varSo=Object.defineProperty;varC_=Object.getOwnPropertyDescriptor;varN_=Object.getOwnPropertyNames;varL_=Object.getPrototypeOf,k_=Object.prototype.hasOwnProperty;varF_=(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),xh=(e,t)=>{for(varrint)So(e,r,{get:t[r],enumerable:!0})},Bh=(e,t,r,n)=>{if(t&&typeoft=="object"||typeoft=="function")for(letoofN_(t))!k_.call(e,o)&&o!==r&&So(e,o,{get:()=>t[o],enumerable:!(n=C_(t,o))||n.enumerable});returne};varJn=(e,t,r)=>(r=e!=null?B_(L_(e)):{},Bh(t||!e||!e.__esModule?So(r,"default",{value:e,enumerable:!0}):r,e)),P_=e=>Bh(So({},"__esModule",{value:!0}),e);varat=(e,t,r)=>(F_(e,typeoft!="symbol"?t+"":t,r),r),Lu=(e,t,r)=>{if(!t.has(e))throwTypeError("Cannot "+r)};varJ=(e,t,r)=>(Lu(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)=>(Lu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xa=(e,t,r,n)=>({set_(o){Ge(e,t,o,r)},get_(){returnJ(e,t,n)}}),tt=(e,t,r)=>(Lu(e,t,"access private method"),r);varse,q=Xn(()=>{se=globalThis});varz=Xn(()=>{});varW=Xn(()=>{});varce={};xh(ce,{_debugEnd:()=>vp,_debugProcess:()=>mp,_events:()=>Lp,_eventsCount:()=>kp,_exiting:()=>Jh,_fatalExceptions:()=>pp,_getActiveHandles:()=>rp,_getActiveRequests:()=>tp,_kill:()=>ip,_linkedBinding:()=>Kh,_maxListeners:()=>Np,_preload_modules:()=>Bp,_rawDebug:()=>Gh,_startProfilerIdleNotifier:()=>wp,_stopProfilerIdleNotifier:()=>bp,_tickCallback:()=>gp,abort:()=>Ap,addListener:()=>Fp,allowedNodeEnvironmentFlags:()=>lp,arch:()=>Fh,argv:()=>Dh,argv0:()=>xp,assert:()=>cp,binding:()=>zh,chdir:()=>Zh,config:()=>Qh,cpuUsage:()=>Na,cwd:()=>Hh,debugPort:()=>Ip,default:()=>Wp,dlopen:()=>ep,domain:()=>Xh,emit:()=>jp,emitWarning:()=>qh,env:()=>Uh,execArgv:()=>Mh,execPath:()=>Op,exit:()=>up,features:()=>hp,hasUncaughtExceptionCaptureCallback:()=>yp,hrtime:()=>Ca,kill:()=>sp,listeners:()=>zp,memoryUsage:()=>ap,moduleLoadList:()=>Yh,nextTick:()=>Nh,off:()=>Up,on:()=>yn,once:()=>Pp,openStdin:()=>fp,pid:()=>Rp,platform:()=>Ph,ppid:()=>Tp,prependListener:()=>$p,prependOnceListener:()=>qp,reallyExit:()=>np,release:()=>Vh,removeAllListeners:()=>Mp,removeListener:()=>Dp,resourceUsage:()=>op,setSourceMapsEnabled:()=>Cp,setUncaughtExceptionCaptureCallback:()=>dp,stderr:()=>Ep,stdin:()=>Sp,stdout:()=>_p,title:()=>kh,umask:()=>Wh,uptime:()=>Ro,version:()=>jh,versions:()=>$h});functionPu(e){thrownewError("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}functionU_(){!Ni||!Qn||(Ni=!1,Qn.length?dn=Qn.concat(dn):Ba=-1,dn.length&&Ch())}functionCh(){if(!Ni){vare=setTimeout(U_,0);Ni=!0;for(vart=dn.length;t;){for(Qn=dn,dn=[];++Ba<t;)Qn&&Qn[Ba].run();Ba=-1,t=dn.length}Qn=null,Ni=!1,clearTimeout(e)}}functionNh(e){vart=newArray(arguments.length-1);if(arguments.length>1)for(varr=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(newLh(e,t)),dn.length===1&&!Ni&&setTimeout(Ch,0)}functionLh(e,t){this.fun=e,this.array=t}functioner(){}functionKh(e){Pu("_linkedBinding")}functionep(e){Pu("dlopen")}functiontp(){return[]}functionrp(){return[]}functioncp(e,t){if(!e)thrownewError(t||"assertion error")}functionyp(){return!1}functionRo(){returnLn.now()/1e3}functionCa(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+=Fu)),[n,o]}functionyn(){returnWp}functionzp(e){return[]}vardn,Ni,Qn,Ba,kh,Fh,Ph,Uh,Dh,Mh,jh,$h,qh,zh,Wh,Hh,Zh,Vh,Gh,Yh,Xh,Jh,Qh,np,ip,Na,op,ap,sp,up,fp,lp,hp,pp,dp,gp,mp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Ln,ku,Fu,
`+t.prev}function ss(e,t){var r=xf(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 Af=="function"?Af(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||(pg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Af=="function")for(var c=0;c<a.length;c++)dg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Pf=He((kP,_g)=>{"use strict";q();z();W();Z();H();var kf=Ur(),Zi=lr(),T2=bg(),O2=kf("%TypeError%"),ls=kf("%WeakMap%",!0),cs=kf("%Map%",!0),I2=Zi("WeakMap.prototype.get",!0),x2=Zi("WeakMap.prototype.set",!0),B2=Zi("WeakMap.prototype.has",!0),C2=Zi("Map.prototype.get",!0),N2=Zi("Map.prototype.set",!0),L2=Zi("Map.prototype.has",!0),Ff=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},k2=function(e,t){var r=Ff(e,t);return r&&r.value},F2=function(e,t,r){var n=Ff(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},P2=function(e,t){return!!Ff(e,t)};_g.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new O2("Side channel does not contain "+T2(a))},get:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return I2(t,a)}else if(cs){if(r)return C2(r,a)}else if(n)return k2(n,a)},has:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return B2(t,a)}else if(cs){if(r)return L2(r,a)}else if(n)return P2(n,a);return!1},set:function(a,i){ls&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ls),x2(t,a,i)):cs?(r||(r=new cs),N2(r,a,i)):(n||(n={key:{},next:null}),F2(n,a,i))}};return o}});var Sg=He((jP,Eg)=>{"use strict";q();z();W();Z();H();var U2=Ur(),D2=uf(),Zo=Pf()(),vn=U2("%TypeError%"),Uf={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),!Uf.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&&D2(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(Uf);Eg.exports=Uf});var Tg=He((ZP,Rg)=>{"use strict";q();z();W();Z();H();var Vo=Sg(),M2=SyntaxError,Ag=typeof StopIteration=="object"?StopIteration:null;Rg.exports=function(t){if(!Ag)throw new M2("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!==Ag)throw i;return{done:!0,value:void 0}}}};return Vo.set(r,"[[Iterator]]",t),r}});var Df=He((JP,Og)=>{q();z();W();Z();H();var j2={}.toString;Og.exports=Array.isArray||function(e){return j2.call(e)=="[object Array]"}});var Mf=He((iU,Ig)=>{"use strict";q();z();W();Z();H();var $2=String.prototype.valueOf,q2=function(t){try{return $2.call(t),!0}catch{return!1}},z2=Object.prototype.toString,W2="[object String]",H2=mn()();Ig.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:H2?q2(t):z2.call(t)===W2}});var $f=He((lU,Cg)=>{"use strict";q();z();W();Z();H();var jf=typeof Map=="function"&&Map.prototype?Map:null,Z2=typeof Set=="function"&&Set.prototype?Set:null,hs;jf||(hs=function(t){return!1});var Bg=jf?Map.prototype.has:null,xg=Z2?Set.prototype.has:null;!hs&&!Bg&&(hs=function(t){return!1});Cg.exports=hs||function(t){if(!t||typeof t!="object")return!1;try{if(Bg.call(t),xg)try{xg.call(t)}catch{return!0}return t instanceof jf
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&NE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var dd=Symbol("internals");function Co(e){return e&&String(e).trim().toLowerCase()}function Ha(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Ha):String(e)}function LE(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 kE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());functionWu(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)}}functionFE(e){returne.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}functionPE(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]=Ha(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())&&!kE(t)?i(pd(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)returnLE(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||Wu(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||Wu(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||Wu(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]=Ha(o),deleter[a];return}letf=t?FE(a):String(a).trim();f!==a&&deleter[a],r[f]=Ha(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(`
`,qt.homedir=function(){return"/"}),qt}var st=xT();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 BT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return BT};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 K7=st.version,X7=st.constants,J7=st.EOL,Q7=st.arch,eq=st.cpus,tq=st.endianness,rq=st.freemem,nq=st.getNetworkInterfaces,iq=st.homedir,oq=st.hostname,aq=st.loadavg,sq=st.networkInterfaces,uq=st.platform,fq=st.release,lq=st.tmpDir,cq=st.tmpdir,hq=st.totalmem,pq=st.type;q();z();W();Z();H();q();z();W();Z();H();q();z();W();Z();H();var Vl={},Iv=!1,fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function CT(){if(Iv)return Vl;Iv=!0;var e=Vl={},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},Vl}var lt=CT();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 Gl={},xv=!1;function NT(){if(xv)return Gl;xv=!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(pe)}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 pe=C[ae],me=D(Ne).split(`
`)&&(t=t.replace(bx,"%0A")),t.includes("\r")&&(t=t.replace(_x,"%0D")),t.includes(" ")&&(t=t.replace(Ex,"%09")),n.pathname=t,n}var Ox=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=jx;St.fileURLToPath=ch;var sV=St.Url,uV=St.format,fV=St.resolve,lV=St.resolveObject,cV=St.parse,hV=St.URL,Ix=92,xx=47,Bx=97,Cx=122,lh=Ox==="win32",Nx=/\//g,Lx=/%/g,kx=/\\/g,Fx=/\n/g,Px=/\r/g,Ux=/\t/g;function ch(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 lh?Dx(e):Mx(e)}function Dx(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(Nx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Bx||n>Cx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function Mx(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 jx(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===xx||lh&&r===Ix)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(Lx,"%25")),!lh&&t.includes("\\")&&(t=t.replace(kx,"%5C")),t.includes(`
`)&&(t=t.replace(Fx,"%0A")),t.includes("\r")&&(t=t.replace(Px,"%0D")),t.includes(" ")&&(t=t.replace(Ux,"%09")),n.pathname=t,n}Fa();var Ea={},Rb=!1;function Aa(){return Rb||(Rb=!0,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.constants=void 0,Ea.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}),Ea}var _u={},Tb=!1;function $x(){return Tb||(Tb=!0,typeof BigInt=="function"?_u.default=BigInt:_u.default=function(){throw new Error("BigInt is not supported in this environment.")}),_u}var vo={},Ob=!1;function hh(){if(Ob)return vo;Ob=!0,Object.defineProperty(vo,"__esModule",{value:!0}),vo.Stats=void 0;var e=Aa(),t=$x(),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={},Ib=!1;function ph(){if(Ib)return Gr;Ib=!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 zt={},xb=!1,qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(xb)return zt;xb=!0;var e=zt&&zt.__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(zt,"__esModule",{value:!0}),zt.E=zt.AssertionError=zt.message=zt.RangeError=zt.TypeError=zt.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 t_(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 Ru}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function i_(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 mh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don'tknowhowtohandle'options.${e}'type:${r}`);n[e]=t(o)}}function s_(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 nB={M:!0,d:!0,h:!0,m:!0,s:!0};function vh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`Anintegerdividerof${r}isexpectedas${t}for'options.interval'`)}function iB(e){let t=s_(e,"interval",nB);switch(t.unit){case"h":vh(t,"hours",24);break;case"m":vh(t,"minutes",60);break;case"s":vh(t,"seconds",60);break}return t}var oB={B:!0,G:!0,K:!0,M:!0};function o_(e){let t=s_(e,"size",oB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var a_={encoding:(e,t,r)=>new n1(r),immutable:()=>{},initialRotation:()=>{},interval:mh("interval",iB),intervalBoundary:()=>{},maxFiles:i_("maxFiles"),maxSize:mh("maxSize",o_),mode:()=>{},omitExtension:()=>{},rotate:i_("rotate"),size:mh("size",o_),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]!==ua&&(t.path=r+ua)}};function aB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in a_))throw new Error(`Unknownoption:${r}`);t[r]=e[r],a_[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 sB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function uB(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 u_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The"options"argumentmustbeoftypeobject.Receivedtype${typeoft}`);let r=aB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?sB(e,n!==void 0,o):uB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The"filename"argumentmustbeoneoftypestringorfunction.Receivedtype${typeofe}`);return new wh(a,r)}var Eh=Jn(g_()),m_=v_.isBrowser?null:u_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Eo=m_?(0,Eh.default)(m_):(0,Eh.default)(),Iu=[Eo];Eo.onChild=e=>{Iu.push(e)};var xu=class{constructor(){this.logger=Eo.child({componen