Edit File by line
/home/zeestwma/.vscode-.../extensio.../github.c.../dist
File: web.js
"use strict";var RV=Object.create;var xp=Object.defineProperty;var AV=Object.getOwnPropertyDescriptor;var DV=Object.getOwnPropertyNames;var kV=Object.getPrototypeOf,NV=Object.prototype.hasOwnProperty;var _w=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yw=e=>{throw TypeError(e)};var o=(e,t)=>xp(e,"name",{value:t,configurable:!0});var OV=(e,t)=>()=>(e&&(t=e(e=0)),t);var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t0=(e,t)=>{for(var r in t)xp(e,r,{get:t[r],enumerable:!0})},bw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of DV(t))!NV.call(e,s)&&s!==r&&xp(e,s,{get:()=>t[s],enumerable:!(n=AV(t,s))||n.enumerable});return e};var Pt=(e,t,r)=>(r=e!=null?RV(kV(e)):{},bw(t||!e||!e.__esModule?xp(r,"default",{value:e,enumerable:!0}):r,e)),Rh=e=>bw(xp({},"__esModule",{value:!0}),e);var mb=(e,t,r)=>{if(t!=null){typeof t!="object"&&typeof t!="function"&&yw("Object expected");var n,s;r&&(n=t[_w("asyncDispose")]),n===void 0&&(n=t[_w("dispose")],r&&(s=n)),typeof n!="function"&&yw("Object not disposable"),s&&(n=function(){try{s.call(this)}catch(a){return Promise.reject(a)}}),e.push([r,n,t])}else r&&e.push([r]);return t},pb=(e,t,r)=>{var n=typeof SuppressedError=="function"?SuppressedError:function(l,c,u,d){return d=Error(u),d.name="SuppressedError",d.error=l,d.suppressed=c,d},s=l=>t=r?new n(l,t,"An error was suppressed during disposal"):(r=!0,l),a=l=>{for(;l=e.pop();)try{var c=l[1]&&l[1].call(l[2]);if(l[0])return Promise.resolve(c).then(a,u=>(s(u),a()))}catch(u){s(u)}if(r)throw t};return a()};var Iw=ee(()=>{});var Ht=ee((Nh,ww)=>{(function(e,t){typeof Nh=="object"?ww.exports=Nh=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(Nh,function(){var e=e||function(t,r){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=Iw()}catch{}var s=o(function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),a=Object.create||function(){function y(){}return o(y,"F"),function(b){var T;return y.prototype=b,T=new y,y.prototype=null,T}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:o(function(y){var b=a(this);return y&&b.mixIn(y),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},"extend"),create:o(function(){var y=this.extend();return y.init.apply(y,arguments),y},"create"),init:o(function(){},"init"),mixIn:o(function(y){for(var b in y)y.hasOwnProperty(b)&&(this[b]=y[b]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},"mixIn"),clone:o(function(){return this.init.prototype.extend(this)},"clone")}}(),d=c.WordArray=u.extend({init:o(function(y,b){y=this.words=y||[],b!=r?this.sigBytes=b:this.sigBytes=y.length*4},"init"),toString:o(function(y){return(y||m).stringify(this)},"toString"),concat:o(function(y){var b=this.words,T=y.words,v=this.sigBytes,S=y.sigBytes;if(this.clamp(),v%4)for(var R=0;R<S;R++){var j=T[R>>>2]>>>24-R%4*8&255;b[v+R>>>2]|=j<<24-(v+R)%4*8}else for(var K=0;K<S;K+=4)b[v+K>>>2]=T[K>>>2];return this.sigBytes+=S,this},"concat"),clamp:o(function(){var y=this.words,b=this.sigBytes;y[b>>>2]&=4294967295<<32-b%4*8,y.length=t.ceil(b/4)},"clamp"),clone:o(function(){var y=u.clone.call(this);return y.words=this.words.slice(0),y},"clone"),random:o(function(y){for(var b=[],T=0;T<y;T+=4)b.push(s());return new d.init(b,y)},"random")}),f=l.enc={},m=f.Hex={stringify:o(function(y){for(var b=y.words,T=y.sigBytes,v=[],S=0;S<T;S++){var R=b[S>>>2]>>>24-S%4*8&255;v.push((R>>>4).toString(16)),v.push((R&15).toString(16))}return v.join("")},"stringify"),parse:o(function(y){for(var b=y.length,T=[],v=0;v<b;v+=2)T[v>>>3]|=parseInt(y.substr(v,2),16)<<24-v%8*4;return new d.init(T,b/2)},"parse")},p=f.Latin1={stringify:o(function(y){for(var b=y.words,T=y.sigBytes,v=[],S=0;S<T;S++){var R=b[S>>>2]>>>24-S%4*8&255;v.push(String.fromCharCode(R))}return v.join("")},"stringify"),parse:o(function(y){for(var b=y.length,T=[],v=0;v<b;v++)T[v>>>2]|=(y.charCodeAt(v)&255)<<24-v%4*8;return new d.init(T,b)},"parse")},g=f.Utf8={stringify:o(function(y){try{return decodeURIComponent(escape(p.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},"stringify"),parse:o(function(y){return p.parse(unescape(encodeURIComponent(y)))},"parse")},h=c.BufferedBlockAlgorithm=u.extend({reset:o(function(){this._data=new d.init,this._nDataBytes=0},"reset"),_append:o(function(y){typeof y=="string"&&(y=g.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},"_append"),_process:o(function(y){var b,T=this._data,v=T.words,S=T.sigBytes,R=this.blockSize,j=R*4,K=S/j;y?K=t.ceil(K):K=t.max((K|0)-this._minBufferSize,0);var V=K*R,Y=t.min(V*4,S);if(V){for(var N=0;N<V;N+=R)this._doProcessBlock(v,N);b=v.splice(0,V),T.sigBytes-=Y}return new d.init(b,Y)},"_process"),clone:o(function(){var y=u.clone.call(this);return y._data=this._data.clone(),y},"clone"),_minBufferSize:0}),x=c.Hasher=h.extend({cfg:u.extend(),init:o(function(y){this.cfg=this.cfg.extend(y),this.reset()},"init"),reset:o(function(){h.reset.call(this),this._doReset()},"reset"),update:o(function(y){return this._append(y),this._process(),this},"update"),finalize:o(function(y){y&&this._append(y);var b=this._doFinalize();return b},"finalize"),blockSize:512/32,_createHelper:o(function(y){return function(b,T){return new y.init(T).finalize(b)}},"_createHelper"),_createHmacHelper:o(function(y){return function(b,T){return new _.HMAC.init(y,T).finalize(b)}},"_createHmacHelper")}),_=l.algo={};return l}(Math);return e})});var _p=ee((Oh,Sw)=>{(function(e,t){typeof Oh=="object"?Sw.exports=Oh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Oh,function(e){return function(t){var r=e,n=r.lib,s=n.Base,a=n.WordArray,l=r.x64={},c=l.Word=s.extend({init:o(function(d,f){this.high=d,this.low=f},"init")}),u=l.WordArray=s.extend({init:o(function(d,f){d=this.words=d||[],f!=t?this.sigBytes=f:this.sigBytes=d.length*8},"init"),toX32:o(function(){for(var d=this.words,f=d.length,m=[],p=0;p<f;p++){var g=d[p];m.push(g.high),m.push(g.low)}return a.create(m,this.sigBytes)},"toX32"),clone:o(function(){for(var d=s.clone.call(this),f=d.words=this.words.slice(0),m=f.length,p=0;p<m;p++)f[p]=f[p].clone();return d},"clone")})}(),e})});var Rw=ee((Lh,Pw)=>{(function(e,t){typeof Lh=="object"?Pw.exports=Lh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Lh,function(e){return function(){if(typeof ArrayBuffer=="function"){var t=e,r=t.lib,n=r.WordArray,s=n.init,a=n.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;s.call(this,u,c)}else s.apply(this,arguments)};a.prototype=n}}(),e.lib.WordArray})});var Dw=ee((Fh,Aw)=>{(function(e,t){typeof Fh=="object"?Aw.exports=Fh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Fh,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,a=s.Utf16=s.Utf16BE={stringify:o(function(c){for(var u=c.words,d=c.sigBytes,f=[],m=0;m<d;m+=2){var p=u[m>>>2]>>>16-m%4*8&65535;f.push(String.fromCharCode(p))}return f.join("")},"stringify"),parse:o(function(c){for(var u=c.length,d=[],f=0;f<u;f++)d[f>>>1]|=c.charCodeAt(f)<<16-f%2*16;return n.create(d,u*2)},"parse")};s.Utf16LE={stringify:o(function(c){for(var u=c.words,d=c.sigBytes,f=[],m=0;m<d;m+=2){var p=l(u[m>>>2]>>>16-m%4*8&65535);f.push(String.fromCharCode(p))}return f.join("")},"stringify"),parse:o(function(c){for(var u=c.length,d=[],f=0;f<u;f++)d[f>>>1]|=l(c.charCodeAt(f)<<16-f%2*16);return n.create(d,u*2)},"parse")};function l(c){return c<<8&4278255360|c>>>8&16711935}o(l,"swapEndian")}(),e.enc.Utf16})});var sl=ee((Mh,kw)=>{(function(e,t){typeof Mh=="object"?kw.exports=Mh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Mh,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,a=s.Base64={stringify:o(function(c){var u=c.words,d=c.sigBytes,f=this._map;c.clamp();for(var m=[],p=0;p<d;p+=3)for(var g=u[p>>>2]>>>24-p%4*8&255,h=u[p+1>>>2]>>>24-(p+1)%4*8&255,x=u[p+2>>>2]>>>24-(p+2)%4*8&255,_=g<<16|h<<8|x,y=0;y<4&&p+y*.75<d;y++)m.push(f.charAt(_>>>6*(3-y)&63));var b=f.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},"stringify"),parse:o(function(c){var u=c.length,d=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var m=0;m<d.length;m++)f[d.charCodeAt(m)]=m}var p=d.charAt(64);if(p){var g=c.indexOf(p);g!==-1&&(u=g)}return l(c,u,f)},"parse"),_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,d){for(var f=[],m=0,p=0;p<u;p++)if(p%4){var g=d[c.charCodeAt(p-1)]<<p%4*2,h=d[c.charCodeAt(p)]>>>6-p%4*2,x=g|h;f[m>>>2]|=x<<24-m%4*8,m++}return n.create(f,m)}o(l,"parseLoop")}(),e.enc.Base64})});var Ow=ee((Uh,Nw)=>{(function(e,t){typeof Uh=="object"?Nw.exports=Uh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Uh,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,a=s.Base64url={stringify:o(function(c,u){u===void 0&&(u=!0);var d=c.words,f=c.sigBytes,m=u?this._safe_map:this._map;c.clamp();for(var p=[],g=0;g<f;g+=3)for(var h=d[g>>>2]>>>24-g%4*8&255,x=d[g+1>>>2]>>>24-(g+1)%4*8&255,_=d[g+2>>>2]>>>24-(g+2)%4*8&255,y=h<<16|x<<8|_,b=0;b<4&&g+b*.75<f;b++)p.push(m.charAt(y>>>6*(3-b)&63));var T=m.charAt(64);if(T)for(;p.length%4;)p.push(T);return p.join("")},"stringify"),parse:o(function(c,u){u===void 0&&(u=!0);var d=c.length,f=u?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var p=0;p<f.length;p++)m[f.charCodeAt(p)]=p}var g=f.charAt(64);if(g){var h=c.indexOf(g);h!==-1&&(d=h)}return l(c,d,m)},"parse"),_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,d){for(var f=[],m=0,p=0;p<u;p++)if(p%4){var g=d[c.charCodeAt(p-1)]<<p%4*2,h=d[c.charCodeAt(p)]>>>6-p%4*2,x=g|h;f[m>>>2]|=x<<24-m%4*8,m++}return n.create(f,m)}o(l,"parseLoop")}(),e.enc.Base64url})});var al=ee((Bh,Lw)=>{(function(e,t){typeof Bh=="object"?Lw.exports=Bh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Bh,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,a=n.Hasher,l=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=t.abs(t.sin(g+1))*4294967296|0})();var u=l.MD5=a.extend({_doReset:o(function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},"_doReset"),_doProcessBlock:o(function(g,h){for(var x=0;x<16;x++){var _=h+x,y=g[_];g[_]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var b=this._hash.words,T=g[h+0],v=g[h+1],S=g[h+2],R=g[h+3],j=g[h+4],K=g[h+5],V=g[h+6],Y=g[h+7],N=g[h+8],k=g[h+9],z=g[h+10],D=g[h+11],E=g[h+12],I=g[h+13],A=g[h+14],w=g[h+15],P=b[0],O=b[1],M=b[2],$=b[3];P=d(P,O,M,$,T,7,c[0]),$=d($,P,O,M,v,12,c[1]),M=d(M,$,P,O,S,17,c[2]),O=d(O,M,$,P,R,22,c[3]),P=d(P,O,M,$,j,7,c[4]),$=d($,P,O,M,K,12,c[5]),M=d(M,$,P,O,V,17,c[6]),O=d(O,M,$,P,Y,22,c[7]),P=d(P,O,M,$,N,7,c[8]),$=d($,P,O,M,k,12,c[9]),M=d(M,$,P,O,z,17,c[10]),O=d(O,M,$,P,D,22,c[11]),P=d(P,O,M,$,E,7,c[12]),$=d($,P,O,M,I,12,c[13]),M=d(M,$,P,O,A,17,c[14]),O=d(O,M,$,P,w,22,c[15]),P=f(P,O,M,$,v,5,c[16]),$=f($,P,O,M,V,9,c[17]),M=f(M,$,P,O,D,14,c[18]),O=f(O,M,$,P,T,20,c[19]),P=f(P,O,M,$,K,5,c[20]),$=f($,P,O,M,z,9,c[21]),M=f(M,$,P,O,w,14,c[22]),O=f(O,M,$,P,j,20,c[23]),P=f(P,O,M,$,k,5,c[24]),$=f($,P,O,M,A,9,c[25]),M=f(M,$,P,O,R,14,c[26]),O=f(O,M,$,P,N,20,c[27]),P=f(P,O,M,$,I,5,c[28]),$=f($,P,O,M,S,9,c[29]),M=f(M,$,P,O,Y,14,c[30]),O=f(O,M,$,P,E,20,c[31]),P=m(P,O,M,$,K,4,c[32]),$=m($,P,O,M,N,11,c[33]),M=m(M,$,P,O,D,16,c[34]),O=m(O,M,$,P,A,23,c[35]),P=m(P,O,M,$,v,4,c[36]),$=m($,P,O,M,j,11,c[37]),M=m(M,$,P,O,Y,16,c[38]),O=m(O,M,$,P,z,23,c[39]),P=m(P,O,M,$,I,4,c[40]),$=m($,P,O,M,T,11,c[41]),M=m(M,$,P,O,R,16,c[42]),O=m(O,M,$,P,V,23,c[43]),P=m(P,O,M,$,k,4,c[44]),$=m($,P,O,M,E,11,c[45]),M=m(M,$,P,O,w,16,c[46]),O=m(O,M,$,P,S,23,c[47]),P=p(P,O,M,$,T,6,c[48]),$=p($,P,O,M,Y,10,c[49]),M=p(M,$,P,O,A,15,c[50]),O=p(O,M,$,P,K,21,c[51]),P=p(P,O,M,$,E,6,c[52]),$=p($,P,O,M,R,10,c[53]),M=p(M,$,P,O,z,15,c[54]),O=p(O,M,$,P,v,21,c[55]),P=p(P,O,M,$,N,6,c[56]),$=p($,P,O,M,w,10,c[57]),M=p(M,$,P,O,V,15,c[58]),O=p(O,M,$,P,I,21,c[59]),P=p(P,O,M,$,j,6,c[60]),$=p($,P,O,M,D,10,c[61]),M=p(M,$,P,O,S,15,c[62]),O=p(O,M,$,P,k,21,c[63]),b[0]=b[0]+P|0,b[1]=b[1]+O|0,b[2]=b[2]+M|0,b[3]=b[3]+$|0},"_doProcessBlock"),_doFinalize:o(function(){var g=this._data,h=g.words,x=this._nDataBytes*8,_=g.sigBytes*8;h[_>>>5]|=128<<24-_%32;var y=t.floor(x/4294967296),b=x;h[(_+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,h[(_+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g.sigBytes=(h.length+1)*4,this._process();for(var T=this._hash,v=T.words,S=0;S<4;S++){var R=v[S];v[S]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return T},"_doFinalize"),clone:o(function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g},"clone")});function d(g,h,x,_,y,b,T){var v=g+(h&x|~h&_)+y+T;return(v<<b|v>>>32-b)+h}o(d,"FF");function f(g,h,x,_,y,b,T){var v=g+(h&_|x&~_)+y+T;return(v<<b|v>>>32-b)+h}o(f,"GG");function m(g,h,x,_,y,b,T){var v=g+(h^x^_)+y+T;return(v<<b|v>>>32-b)+h}o(m,"HH");function p(g,h,x,_,y,b,T){var v=g+(x^(h|~_))+y+T;return(v<<b|v>>>32-b)+h}o(p,"II"),r.MD5=a._createHelper(u),r.HmacMD5=a._createHmacHelper(u)}(Math),e.MD5})});var xb=ee(($h,Fw)=>{(function(e,t){typeof $h=="object"?Fw.exports=$h=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})($h,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=r.Hasher,a=t.algo,l=[],c=a.SHA1=s.extend({_doReset:o(function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},"_doReset"),_doProcessBlock:o(function(u,d){for(var f=this._hash.words,m=f[0],p=f[1],g=f[2],h=f[3],x=f[4],_=0;_<80;_++){if(_<16)l[_]=u[d+_]|0;else{var y=l[_-3]^l[_-8]^l[_-14]^l[_-16];l[_]=y<<1|y>>>31}var b=(m<<5|m>>>27)+x+l[_];_<20?b+=(p&g|~p&h)+1518500249:_<40?b+=(p^g^h)+1859775393:_<60?b+=(p&g|p&h|g&h)-1894007588:b+=(p^g^h)-899497514,x=h,h=g,g=p<<30|p>>>2,p=m,m=b}f[0]=f[0]+m|0,f[1]=f[1]+p|0,f[2]=f[2]+g|0,f[3]=f[3]+h|0,f[4]=f[4]+x|0},"_doProcessBlock"),_doFinalize:o(function(){var u=this._data,d=u.words,f=this._nDataBytes*8,m=u.sigBytes*8;return d[m>>>5]|=128<<24-m%32,d[(m+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(m+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},"_doFinalize"),clone:o(function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u},"clone")});t.SHA1=s._createHelper(c),t.HmacSHA1=s._createHmacHelper(c)}(),e.SHA1})});var Wh=ee((jh,Mw)=>{(function(e,t){typeof jh=="object"?Mw.exports=jh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(jh,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,a=n.Hasher,l=r.algo,c=[],u=[];(function(){function m(x){for(var _=t.sqrt(x),y=2;y<=_;y++)if(!(x%y))return!1;return!0}o(m,"isPrime");function p(x){return(x-(x|0))*4294967296|0}o(p,"getFractionalBits");for(var g=2,h=0;h<64;)m(g)&&(h<8&&(c[h]=p(t.pow(g,1/2))),u[h]=p(t.pow(g,1/3)),h++),g++})();var d=[],f=l.SHA256=a.extend({_doReset:o(function(){this._hash=new s.init(c.slice(0))},"_doReset"),_doProcessBlock:o(function(m,p){for(var g=this._hash.words,h=g[0],x=g[1],_=g[2],y=g[3],b=g[4],T=g[5],v=g[6],S=g[7],R=0;R<64;R++){if(R<16)d[R]=m[p+R]|0;else{var j=d[R-15],K=(j<<25|j>>>7)^(j<<14|j>>>18)^j>>>3,V=d[R-2],Y=(V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10;d[R]=K+d[R-7]+Y+d[R-16]}var N=b&T^~b&v,k=h&x^h&_^x&_,z=(h<<30|h>>>2)^(h<<19|h>>>13)^(h<<10|h>>>22),D=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),E=S+D+N+u[R]+d[R],I=z+k;S=v,v=T,T=b,b=y+E|0,y=_,_=x,x=h,h=E+I|0}g[0]=g[0]+h|0,g[1]=g[1]+x|0,g[2]=g[2]+_|0,g[3]=g[3]+y|0,g[4]=g[4]+b|0,g[5]=g[5]+T|0,g[6]=g[6]+v|0,g[7]=g[7]+S|0},"_doProcessBlock"),_doFinalize:o(function(){var m=this._data,p=m.words,g=this._nDataBytes*8,h=m.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=t.floor(g/4294967296),p[(h+64>>>9<<4)+15]=g,m.sigBytes=p.length*4,this._process(),this._hash},"_doFinalize"),clone:o(function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m},"clone")});r.SHA256=a._createHelper(f),r.HmacSHA256=a._createHmacHelper(f)}(Math),e.SHA256})});var Bw=ee((qh,Uw)=>{(function(e,t,r){typeof qh=="object"?Uw.exports=qh=t(Ht(),Wh()):typeof define=="function"&&define.amd?define(["./core","./sha256"],t):t(e.CryptoJS)})(qh,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.algo,a=s.SHA256,l=s.SHA224=a.extend({_doReset:o(function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},"_doReset"),_doFinalize:o(function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c},"_doFinalize")});t.SHA224=a._createHelper(l),t.HmacSHA224=a._createHmacHelper(l)}(),e.SHA224})});var _b=ee((Hh,$w)=>{(function(e,t,r){typeof Hh=="object"?$w.exports=Hh=t(Ht(),_p()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],t):t(e.CryptoJS)})(Hh,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,s=t.x64,a=s.Word,l=s.WordArray,c=t.algo;function u(){return a.create.apply(a,arguments)}o(u,"X64Word_create");var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var p=0;p<80;p++)f[p]=u()})();var m=c.SHA512=n.extend({_doReset:o(function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},"_doReset"),_doProcessBlock:o(function(p,g){for(var h=this._hash.words,x=h[0],_=h[1],y=h[2],b=h[3],T=h[4],v=h[5],S=h[6],R=h[7],j=x.high,K=x.low,V=_.high,Y=_.low,N=y.high,k=y.low,z=b.high,D=b.low,E=T.high,I=T.low,A=v.high,w=v.low,P=S.high,O=S.low,M=R.high,$=R.low,G=j,le=K,be=V,xe=Y,$e=N,Ge=k,Ke=z,Qe=D,U=E,ie=I,W=A,he=w,ce=P,q=O,ne=M,_e=$,fe=0;fe<80;fe++){var me,Ee,Pe=f[fe];if(fe<16)Ee=Pe.high=p[g+fe*2]|0,me=Pe.low=p[g+fe*2+1]|0;else{var Oe=f[fe-15],qe=Oe.high,Ye=Oe.low,rt=(qe>>>1|Ye<<31)^(qe>>>8|Ye<<24)^qe>>>7,nt=(Ye>>>1|qe<<31)^(Ye>>>8|qe<<24)^(Ye>>>7|qe<<25),ct=f[fe-2],F=ct.high,Q=ct.low,de=(F>>>19|Q<<13)^(F<<3|Q>>>29)^F>>>6,ge=(Q>>>19|F<<13)^(Q<<3|F>>>29)^(Q>>>6|F<<26),De=f[fe-7],Be=De.high,We=De.low,He=f[fe-16],Ae=He.high,H=He.low;me=nt+We,Ee=rt+Be+(me>>>0<nt>>>0?1:0),me=me+ge,Ee=Ee+de+(me>>>0<ge>>>0?1:0),me=me+H,Ee=Ee+Ae+(me>>>0<H>>>0?1:0),Pe.high=Ee,Pe.low=me}var J=U&W^~U&ce,ae=ie&he^~ie&q,pe=G&be^G&$e^be&$e,ye=le&xe^le&Ge^xe&Ge,Ce=(G>>>28|le<<4)^(G<<30|le>>>2)^(G<<25|le>>>7),ke=(le>>>28|G<<4)^(le<<30|G>>>2)^(le<<25|G>>>7),Xe=(U>>>14|ie<<18)^(U>>>18|ie<<14)^(U<<23|ie>>>9),ft=(ie>>>14|U<<18)^(ie>>>18|U<<14)^(ie<<23|U>>>9),we=d[fe],Lt=we.high,St=we.low,it=_e+ft,dt=ne+Xe+(it>>>0<_e>>>0?1:0),it=it+ae,dt=dt+J+(it>>>0<ae>>>0?1:0),it=it+St,dt=dt+Lt+(it>>>0<St>>>0?1:0),it=it+me,dt=dt+Ee+(it>>>0<me>>>0?1:0),Dt=ke+ye,jt=Ce+pe+(Dt>>>0<ke>>>0?1:0);ne=ce,_e=q,ce=W,q=he,W=U,he=ie,ie=Qe+it|0,U=Ke+dt+(ie>>>0<Qe>>>0?1:0)|0,Ke=$e,Qe=Ge,$e=be,Ge=xe,be=G,xe=le,le=it+Dt|0,G=dt+jt+(le>>>0<it>>>0?1:0)|0}K=x.low=K+le,x.high=j+G+(K>>>0<le>>>0?1:0),Y=_.low=Y+xe,_.high=V+be+(Y>>>0<xe>>>0?1:0),k=y.low=k+Ge,y.high=N+$e+(k>>>0<Ge>>>0?1:0),D=b.low=D+Qe,b.high=z+Ke+(D>>>0<Qe>>>0?1:0),I=T.low=I+ie,T.high=E+U+(I>>>0<ie>>>0?1:0),w=v.low=w+he,v.high=A+W+(w>>>0<he>>>0?1:0),O=S.low=O+q,S.high=P+ce+(O>>>0<q>>>0?1:0),$=R.low=$+_e,R.high=M+ne+($>>>0<_e>>>0?1:0)},"_doProcessBlock"),_doFinalize:o(function(){var p=this._data,g=p.words,h=this._nDataBytes*8,x=p.sigBytes*8;g[x>>>5]|=128<<24-x%32,g[(x+128>>>10<<5)+30]=Math.floor(h/4294967296),g[(x+128>>>10<<5)+31]=h,p.sigBytes=g.length*4,this._process();var _=this._hash.toX32();return _},"_doFinalize"),clone:o(function(){var p=n.clone.call(this);return p._hash=this._hash.clone(),p},"clone"),blockSize:1024/32});t.SHA512=n._createHelper(m),t.HmacSHA512=n._createHmacHelper(m)}(),e.SHA512})});var Ww=ee((zh,jw)=>{(function(e,t,r){typeof zh=="object"?jw.exports=zh=t(Ht(),_p(),_b()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],t):t(e.CryptoJS)})(zh,function(e){return function(){var t=e,r=t.x64,n=r.Word,s=r.WordArray,a=t.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:o(function(){this._hash=new s.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},"_doReset"),_doFinalize:o(function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u},"_doFinalize")});t.SHA384=l._createHelper(c),t.HmacSHA384=l._createHmacHelper(c)}(),e.SHA384})});var Hw=ee((Vh,qw)=>{(function(e,t,r){typeof Vh=="object"?qw.exports=Vh=t(Ht(),_p()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],t):t(e.CryptoJS)})(Vh,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,a=n.Hasher,l=r.x64,c=l.Word,u=r.algo,d=[],f=[],m=[];(function(){for(var h=1,x=0,_=0;_<24;_++){d[h+5*x]=(_+1)*(_+2)/2%64;var y=x%5,b=(2*h+3*x)%5;h=y,x=b}for(var h=0;h<5;h++)for(var x=0;x<5;x++)f[h+5*x]=x+(2*h+3*x)%5*5;for(var T=1,v=0;v<24;v++){for(var S=0,R=0,j=0;j<7;j++){if(T&1){var K=(1<<j)-1;K<32?R^=1<<K:S^=1<<K-32}T&128?T=T<<1^113:T<<=1}m[v]=c.create(S,R)}})();var p=[];(function(){for(var h=0;h<25;h++)p[h]=c.create()})();var g=u.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:o(function(){for(var h=this._state=[],x=0;x<25;x++)h[x]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},"_doReset"),_doProcessBlock:o(function(h,x){for(var _=this._state,y=this.blockSize/2,b=0;b<y;b++){var T=h[x+2*b],v=h[x+2*b+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var S=_[b];S.high^=v,S.low^=T}for(var R=0;R<24;R++){for(var j=0;j<5;j++){for(var K=0,V=0,Y=0;Y<5;Y++){var S=_[j+5*Y];K^=S.high,V^=S.low}var N=p[j];N.high=K,N.low=V}for(var j=0;j<5;j++)for(var k=p[(j+4)%5],z=p[(j+1)%5],D=z.high,E=z.low,K=k.high^(D<<1|E>>>31),V=k.low^(E<<1|D>>>31),Y=0;Y<5;Y++){var S=_[j+5*Y];S.high^=K,S.low^=V}for(var I=1;I<25;I++){var K,V,S=_[I],A=S.high,w=S.low,P=d[I];P<32?(K=A<<P|w>>>32-P,V=w<<P|A>>>32-P):(K=w<<P-32|A>>>64-P,V=A<<P-32|w>>>64-P);var O=p[f[I]];O.high=K,O.low=V}var M=p[0],$=_[0];M.high=$.high,M.low=$.low;for(var j=0;j<5;j++)for(var Y=0;Y<5;Y++){var I=j+5*Y,S=_[I],G=p[I],le=p[(j+1)%5+5*Y],be=p[(j+2)%5+5*Y];S.high=G.high^~le.high&be.high,S.low=G.low^~le.low&be.low}var S=_[0],xe=m[R];S.high^=xe.high,S.low^=xe.low}},"_doProcessBlock"),_doFinalize:o(function(){var h=this._data,x=h.words,_=this._nDataBytes*8,y=h.sigBytes*8,b=this.blockSize*32;x[y>>>5]|=1<<24-y%32,x[(t.ceil((y+1)/b)*b>>>5)-1]|=128,h.sigBytes=x.length*4,this._process();for(var T=this._state,v=this.cfg.outputLength/8,S=v/8,R=[],j=0;j<S;j++){var K=T[j],V=K.high,Y=K.low;V=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360,Y=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,R.push(Y),R.push(V)}return new s.init(R,v)},"_doFinalize"),clone:o(function(){for(var h=a.clone.call(this),x=h._state=this._state.slice(0),_=0;_<25;_++)x[_]=x[_].clone();return h},"clone")});r.SHA3=a._createHelper(g),r.HmacSHA3=a._createHmacHelper(g)}(Math),e.SHA3})});var Vw=ee((Gh,zw)=>{(function(e,t){typeof Gh=="object"?zw.exports=Gh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Gh,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,a=n.Hasher,l=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),p=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=l.RIPEMD160=a.extend({_doReset:o(function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},"_doReset"),_doProcessBlock:o(function(v,S){for(var R=0;R<16;R++){var j=S+R,K=v[j];v[j]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}var V=this._hash.words,Y=m.words,N=p.words,k=c.words,z=u.words,D=d.words,E=f.words,I,A,w,P,O,M,$,G,le,be;M=I=V[0],$=A=V[1],G=w=V[2],le=P=V[3],be=O=V[4];for(var xe,R=0;R<80;R+=1)xe=I+v[S+k[R]]|0,R<16?xe+=h(A,w,P)+Y[0]:R<32?xe+=x(A,w,P)+Y[1]:R<48?xe+=_(A,w,P)+Y[2]:R<64?xe+=y(A,w,P)+Y[3]:xe+=b(A,w,P)+Y[4],xe=xe|0,xe=T(xe,D[R]),xe=xe+O|0,I=O,O=P,P=T(w,10),w=A,A=xe,xe=M+v[S+z[R]]|0,R<16?xe+=b($,G,le)+N[0]:R<32?xe+=y($,G,le)+N[1]:R<48?xe+=_($,G,le)+N[2]:R<64?xe+=x($,G,le)+N[3]:xe+=h($,G,le)+N[4],xe=xe|0,xe=T(xe,E[R]),xe=xe+be|0,M=be,be=le,le=T(G,10),G=$,$=xe;xe=V[1]+w+le|0,V[1]=V[2]+P+be|0,V[2]=V[3]+O+M|0,V[3]=V[4]+I+$|0,V[4]=V[0]+A+G|0,V[0]=xe},"_doProcessBlock"),_doFinalize:o(function(){var v=this._data,S=v.words,R=this._nDataBytes*8,j=v.sigBytes*8;S[j>>>5]|=128<<24-j%32,S[(j+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,v.sigBytes=(S.length+1)*4,this._process();for(var K=this._hash,V=K.words,Y=0;Y<5;Y++){var N=V[Y];V[Y]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return K},"_doFinalize"),clone:o(function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},"clone")});function h(v,S,R){return v^S^R}o(h,"f1");function x(v,S,R){return v&S|~v&R}o(x,"f2");function _(v,S,R){return(v|~S)^R}o(_,"f3");function y(v,S,R){return v&R|S&~R}o(y,"f4");function b(v,S,R){return v^(S|~R)}o(b,"f5");function T(v,S){return v<<S|v>>>32-S}o(T,"rotl"),r.RIPEMD160=a._createHelper(g),r.HmacRIPEMD160=a._createHmacHelper(g)}(Math),e.RIPEMD160})});var Yh=ee((Kh,Gw)=>{(function(e,t){typeof Kh=="object"?Gw.exports=Kh=t(Ht()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Kh,function(e){(function(){var t=e,r=t.lib,n=r.Base,s=t.enc,a=s.Utf8,l=t.algo,c=l.HMAC=n.extend({init:o(function(u,d){u=this._hasher=new u.init,typeof d=="string"&&(d=a.parse(d));var f=u.blockSize,m=f*4;d.sigBytes>m&&(d=u.finalize(d)),d.clamp();for(var p=this._oKey=d.clone(),g=this._iKey=d.clone(),h=p.words,x=g.words,_=0;_<f;_++)h[_]^=1549556828,x[_]^=909522486;p.sigBytes=g.sigBytes=m,this.reset()},"init"),reset:o(function(){var u=this._hasher;u.reset(),u.update(this._iKey)},"reset"),update:o(function(u){return this._hasher.update(u),this},"update"),finalize:o(function(u){var d=this._hasher,f=d.finalize(u);d.reset();var m=d.finalize(this._oKey.clone().concat(f));return m},"finalize")})})()})});var Yw=ee((Xh,Kw)=>{(function(e,t,r){typeof Xh=="object"?Kw.exports=Xh=t(Ht(),Wh(),Yh()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],t):t(e.CryptoJS)})(Xh,function(e){return function(){var t=e,r=t.lib,n=r.Base,s=r.WordArray,a=t.algo,l=a.SHA256,c=a.HMAC,u=a.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:l,iterations:25e4}),init:o(function(d){this.cfg=this.cfg.extend(d)},"init"),compute:o(function(d,f){for(var m=this.cfg,p=c.create(m.hasher,d),g=s.create(),h=s.create([1]),x=g.words,_=h.words,y=m.keySize,b=m.iterations;x.length<y;){var T=p.update(f).finalize(h);p.reset();for(var v=T.words,S=v.length,R=T,j=1;j<b;j++){R=p.finalize(R),p.reset();for(var K=R.words,V=0;V<S;V++)v[V]^=K[V]}g.concat(T),_[0]++}return g.sigBytes=y*4,g},"compute")});t.PBKDF2=function(d,f,m){return u.create(m).compute(d,f)}}(),e.PBKDF2})});var oa=ee((Jh,Xw)=>{(function(e,t,r){typeof Jh=="object"?Xw.exports=Jh=t(Ht(),xb(),Yh()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(Jh,function(e){return function(){var t=e,r=t.lib,n=r.Base,s=r.WordArray,a=t.algo,l=a.MD5,c=a.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:l,iterations:1}),init:o(function(u){this.cfg=this.cfg.extend(u)},"init"),compute:o(function(u,d){for(var f,m=this.cfg,p=m.hasher.create(),g=s.create(),h=g.words,x=m.keySize,_=m.iterations;h.length<x;){f&&p.update(f),f=p.update(u).finalize(d),p.reset();for(var y=1;y<_;y++)f=p.finalize(f),p.reset();g.concat(f)}return g.sigBytes=x*4,g},"compute")});t.EvpKDF=function(u,d,f){return c.create(f).compute(u,d)}}(),e.EvpKDF})});var In=ee((Zh,Jw)=>{(function(e,t,r){typeof Zh=="object"?Jw.exports=Zh=t(Ht(),oa()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(Zh,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,s=n.Base,a=n.WordArray,l=n.BufferedBlockAlgorithm,c=r.enc,u=c.Utf8,d=c.Base64,f=r.algo,m=f.EvpKDF,p=n.Cipher=l.extend({cfg:s.extend(),createEncryptor:o(function(N,k){return this.create(this._ENC_XFORM_MODE,N,k)},"createEncryptor"),createDecryptor:o(function(N,k){return this.create(this._DEC_XFORM_MODE,N,k)},"createDecryptor"),init:o(function(N,k,z){this.cfg=this.cfg.extend(z),this._xformMode=N,this._key=k,this.reset()},"init"),reset:o(function(){l.reset.call(this),this._doReset()},"reset"),process:o(function(N){return this._append(N),this._process()},"process"),finalize:o(function(N){N&&this._append(N);var k=this._doFinalize();return k},"finalize"),keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function N(k){return typeof k=="string"?Y:j}return o(N,"selectCipherStrategy"),function(k){return{encrypt:o(function(z,D,E){return N(D).encrypt(k,z,D,E)},"encrypt"),decrypt:o(function(z,D,E){return N(D).decrypt(k,z,D,E)},"decrypt")}}}()}),g=n.StreamCipher=p.extend({_doFinalize:o(function(){var N=this._process(!0);return N},"_doFinalize"),blockSize:1}),h=r.mode={},x=n.BlockCipherMode=s.extend({createEncryptor:o(function(N,k){return this.Encryptor.create(N,k)},"createEncryptor"),createDecryptor:o(function(N,k){return this.Decryptor.create(N,k)},"createDecryptor"),init:o(function(N,k){this._cipher=N,this._iv=k},"init")}),_=h.CBC=function(){var N=x.extend();N.Encryptor=N.extend({processBlock:o(function(z,D){var E=this._cipher,I=E.blockSize;k.call(this,z,D,I),E.encryptBlock(z,D),this._prevBlock=z.slice(D,D+I)},"processBlock")}),N.Decryptor=N.extend({processBlock:o(function(z,D){var E=this._cipher,I=E.blockSize,A=z.slice(D,D+I);E.decryptBlock(z,D),k.call(this,z,D,I),this._prevBlock=A},"processBlock")});function k(z,D,E){var I,A=this._iv;A?(I=A,this._iv=t):I=this._prevBlock;for(var w=0;w<E;w++)z[D+w]^=I[w]}return o(k,"xorBlock"),N}(),y=r.pad={},b=y.Pkcs7={pad:o(function(N,k){for(var z=k*4,D=z-N.sigBytes%z,E=D<<24|D<<16|D<<8|D,I=[],A=0;A<D;A+=4)I.push(E);var w=a.create(I,D);N.concat(w)},"pad"),unpad:o(function(N){var k=N.words[N.sigBytes-1>>>2]&255;N.sigBytes-=k},"unpad")},T=n.BlockCipher=p.extend({cfg:p.cfg.extend({mode:_,padding:b}),reset:o(function(){var N;p.reset.call(this);var k=this.cfg,z=k.iv,D=k.mode;this._xformMode==this._ENC_XFORM_MODE?N=D.createEncryptor:(N=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==N?this._mode.init(this,z&&z.words):(this._mode=N.call(D,this,z&&z.words),this._mode.__creator=N)},"reset"),_doProcessBlock:o(function(N,k){this._mode.processBlock(N,k)},"_doProcessBlock"),_doFinalize:o(function(){var N,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),N=this._process(!0)):(N=this._process(!0),k.unpad(N)),N},"_doFinalize"),blockSize:128/32}),v=n.CipherParams=s.extend({init:o(function(N){this.mixIn(N)},"init"),toString:o(function(N){return(N||this.formatter).stringify(this)},"toString")}),S=r.format={},R=S.OpenSSL={stringify:o(function(N){var k,z=N.ciphertext,D=N.salt;return D?k=a.create([1398893684,1701076831]).concat(D).concat(z):k=z,k.toString(d)},"stringify"),parse:o(function(N){var k,z=d.parse(N),D=z.words;return D[0]==1398893684&&D[1]==1701076831&&(k=a.create(D.slice(2,4)),D.splice(0,4),z.sigBytes-=16),v.create({ciphertext:z,salt:k})},"parse")},j=n.SerializableCipher=s.extend({cfg:s.extend({format:R}),encrypt:o(function(N,k,z,D){D=this.cfg.extend(D);var E=N.createEncryptor(z,D),I=E.finalize(k),A=E.cfg;return v.create({ciphertext:I,key:z,iv:A.iv,algorithm:N,mode:A.mode,padding:A.padding,blockSize:N.blockSize,formatter:D.format})},"encrypt"),decrypt:o(function(N,k,z,D){D=this.cfg.extend(D),k=this._parse(k,D.format);var E=N.createDecryptor(z,D).finalize(k.ciphertext);return E},"decrypt"),_parse:o(function(N,k){return typeof N=="string"?k.parse(N,this):N},"_parse")}),K=r.kdf={},V=K.OpenSSL={execute:o(function(N,k,z,D,E){if(D||(D=a.random(64/8)),E)var I=m.create({keySize:k+z,hasher:E}).compute(N,D);else var I=m.create({keySize:k+z}).compute(N,D);var A=a.create(I.words.slice(k),z*4);return I.sigBytes=k*4,v.create({key:I,iv:A,salt:D})},"execute")},Y=n.PasswordBasedCipher=j.extend({cfg:j.cfg.extend({kdf:V}),encrypt:o(function(N,k,z,D){D=this.cfg.extend(D);var E=D.kdf.execute(z,N.keySize,N.ivSize,D.salt,D.hasher);D.iv=E.iv;var I=j.encrypt.call(this,N,k,E.key,D);return I.mixIn(E),I},"encrypt"),decrypt:o(function(N,k,z,D){D=this.cfg.extend(D),k=this._parse(k,D.format);var E=D.kdf.execute(z,N.keySize,N.ivSize,k.salt,D.hasher);D.iv=E.iv;var I=j.decrypt.call(this,N,k,E.key,D);return I},"decrypt")})}()})});var Qw=ee((Qh,Zw)=>{(function(e,t,r){typeof Qh=="object"?Zw.exports=Qh=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(Qh,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:o(function(n,s){var a=this._cipher,l=a.blockSize;r.call(this,n,s,l,a),this._prevBlock=n.slice(s,s+l)},"processBlock")}),t.Decryptor=t.extend({processBlock:o(function(n,s){var a=this._cipher,l=a.blockSize,c=n.slice(s,s+l);r.call(this,n,s,l,a),this._prevBlock=c},"processBlock")});function r(n,s,a,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var d=0;d<a;d++)n[s+d]^=c[d]}return o(r,"generateKeystreamAndEncrypt"),t}(),e.mode.CFB})});var tS=ee((e5,eS)=>{(function(e,t,r){typeof e5=="object"?eS.exports=e5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(e5,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:o(function(n,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var d=u.slice(0);a.encryptBlock(d,0),u[l-1]=u[l-1]+1|0;for(var f=0;f<l;f++)n[s+f]^=d[f]},"processBlock")});return t.Decryptor=r,t}(),e.mode.CTR})});var nS=ee((t5,rS)=>{(function(e,t,r){typeof t5=="object"?rS.exports=t5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(t5,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}o(r,"incWord");function n(a){return(a[0]=r(a[0]))===0&&(a[1]=r(a[1])),a}o(n,"incCounter");var s=t.Encryptor=t.extend({processBlock:o(function(a,l){var c=this._cipher,u=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),n(f);var m=f.slice(0);c.encryptBlock(m,0);for(var p=0;p<u;p++)a[l+p]^=m[p]},"processBlock")});return t.Decryptor=s,t}(),e.mode.CTRGladman})});var oS=ee((r5,iS)=>{(function(e,t,r){typeof r5=="object"?iS.exports=r5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(r5,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:o(function(n,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var d=0;d<l;d++)n[s+d]^=u[d]},"processBlock")});return t.Decryptor=r,t}(),e.mode.OFB})});var aS=ee((n5,sS)=>{(function(e,t,r){typeof n5=="object"?sS.exports=n5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(n5,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:o(function(r,n){this._cipher.encryptBlock(r,n)},"processBlock")}),t.Decryptor=t.extend({processBlock:o(function(r,n){this._cipher.decryptBlock(r,n)},"processBlock")}),t}(),e.mode.ECB})});var cS=ee((i5,lS)=>{(function(e,t,r){typeof i5=="object"?lS.exports=i5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(i5,function(e){return e.pad.AnsiX923={pad:o(function(t,r){var n=t.sigBytes,s=r*4,a=s-n%s,l=n+a-1;t.clamp(),t.words[l>>>2]|=a<<24-l%4*8,t.sigBytes+=a},"pad"),unpad:o(function(t){var r=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=r},"unpad")},e.pad.Ansix923})});var fS=ee((o5,uS)=>{(function(e,t,r){typeof o5=="object"?uS.exports=o5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(o5,function(e){return e.pad.Iso10126={pad:o(function(t,r){var n=r*4,s=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(s-1)).concat(e.lib.WordArray.create([s<<24],1))},"pad"),unpad:o(function(t){var r=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=r},"unpad")},e.pad.Iso10126})});var mS=ee((s5,dS)=>{(function(e,t,r){typeof s5=="object"?dS.exports=s5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(s5,function(e){return e.pad.Iso97971={pad:o(function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},"pad"),unpad:o(function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--},"unpad")},e.pad.Iso97971})});var gS=ee((a5,pS)=>{(function(e,t,r){typeof a5=="object"?pS.exports=a5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(a5,function(e){return e.pad.ZeroPadding={pad:o(function(t,r){var n=r*4;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},"pad"),unpad:o(function(t){for(var r=t.words,n=t.sigBytes-1,n=t.sigBytes-1;n>=0;n--)if(r[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}},"unpad")},e.pad.ZeroPadding})});var xS=ee((l5,hS)=>{(function(e,t,r){typeof l5=="object"?hS.exports=l5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(l5,function(e){return e.pad.NoPadding={pad:o(function(){},"pad"),unpad:o(function(){},"unpad")},e.pad.NoPadding})});var yS=ee((c5,_S)=>{(function(e,t,r){typeof c5=="object"?_S.exports=c5=t(Ht(),In()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(c5,function(e){return function(t){var r=e,n=r.lib,s=n.CipherParams,a=r.enc,l=a.Hex,c=r.format,u=c.Hex={stringify:o(function(d){return d.ciphertext.toString(l)},"stringify"),parse:o(function(d){var f=l.parse(d);return s.create({ciphertext:f})},"parse")}}(),e.format.Hex})});var vS=ee((u5,bS)=>{(function(e,t,r){typeof u5=="object"?bS.exports=u5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(u5,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,s=t.algo,a=[],l=[],c=[],u=[],d=[],f=[],m=[],p=[],g=[],h=[];(function(){for(var y=[],b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(var T=0,v=0,b=0;b<256;b++){var S=v^v<<1^v<<2^v<<3^v<<4;S=S>>>8^S&255^99,a[T]=S,l[S]=T;var R=y[T],j=y[R],K=y[j],V=y[S]*257^S*16843008;c[T]=V<<24|V>>>8,u[T]=V<<16|V>>>16,d[T]=V<<8|V>>>24,f[T]=V;var V=K*16843009^j*65537^R*257^T*16843008;m[S]=V<<24|V>>>8,p[S]=V<<16|V>>>16,g[S]=V<<8|V>>>24,h[S]=V,T?(T=R^y[y[y[K^R]]],v^=y[y[v]]):T=v=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],_=s.AES=n.extend({_doReset:o(function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,T=b.words,v=b.sigBytes/4,S=this._nRounds=v+6,R=(S+1)*4,j=this._keySchedule=[],K=0;K<R;K++)K<v?j[K]=T[K]:(y=j[K-1],K%v?v>6&&K%v==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=x[K/v|0]<<24),j[K]=j[K-v]^y);for(var V=this._invKeySchedule=[],Y=0;Y<R;Y++){var K=R-Y;if(Y%4)var y=j[K];else var y=j[K-4];Y<4||K<=4?V[Y]=y:V[Y]=m[a[y>>>24]]^p[a[y>>>16&255]]^g[a[y>>>8&255]]^h[a[y&255]]}}},"_doReset"),encryptBlock:o(function(y,b){this._doCryptBlock(y,b,this._keySchedule,c,u,d,f,a)},"encryptBlock"),decryptBlock:o(function(y,b){var T=y[b+1];y[b+1]=y[b+3],y[b+3]=T,this._doCryptBlock(y,b,this._invKeySchedule,m,p,g,h,l);var T=y[b+1];y[b+1]=y[b+3],y[b+3]=T},"decryptBlock"),_doCryptBlock:o(function(y,b,T,v,S,R,j,K){for(var V=this._nRounds,Y=y[b]^T[0],N=y[b+1]^T[1],k=y[b+2]^T[2],z=y[b+3]^T[3],D=4,E=1;E<V;E++){var I=v[Y>>>24]^S[N>>>16&255]^R[k>>>8&255]^j[z&255]^T[D++],A=v[N>>>24]^S[k>>>16&255]^R[z>>>8&255]^j[Y&255]^T[D++],w=v[k>>>24]^S[z>>>16&255]^R[Y>>>8&255]^j[N&255]^T[D++],P=v[z>>>24]^S[Y>>>16&255]^R[N>>>8&255]^j[k&255]^T[D++];Y=I,N=A,k=w,z=P}var I=(K[Y>>>24]<<24|K[N>>>16&255]<<16|K[k>>>8&255]<<8|K[z&255])^T[D++],A=(K[N>>>24]<<24|K[k>>>16&255]<<16|K[z>>>8&255]<<8|K[Y&255])^T[D++],w=(K[k>>>24]<<24|K[z>>>16&255]<<16|K[Y>>>8&255]<<8|K[N&255])^T[D++],P=(K[z>>>24]<<24|K[Y>>>16&255]<<16|K[N>>>8&255]<<8|K[k&255])^T[D++];y[b]=I,y[b+1]=A,y[b+2]=w,y[b+3]=P},"_doCryptBlock"),keySize:256/32});t.AES=n._createHelper(_)}(),e.AES})});var CS=ee((f5,TS)=>{(function(e,t,r){typeof f5=="object"?TS.exports=f5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(f5,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=r.BlockCipher,a=t.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=a.DES=s.extend({_doReset:o(function(){for(var x=this._key,_=x.words,y=[],b=0;b<56;b++){var T=l[b]-1;y[b]=_[T>>>5]>>>31-T%32&1}for(var v=this._subKeys=[],S=0;S<16;S++){for(var R=v[S]=[],j=u[S],b=0;b<24;b++)R[b/6|0]|=y[(c[b]-1+j)%28]<<31-b%6,R[4+(b/6|0)]|=y[28+(c[b+24]-1+j)%28]<<31-b%6;R[0]=R[0]<<1|R[0]>>>31;for(var b=1;b<7;b++)R[b]=R[b]>>>(b-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var K=this._invSubKeys=[],b=0;b<16;b++)K[b]=v[15-b]},"_doReset"),encryptBlock:o(function(x,_){this._doCryptBlock(x,_,this._subKeys)},"encryptBlock"),decryptBlock:o(function(x,_){this._doCryptBlock(x,_,this._invSubKeys)},"decryptBlock"),_doCryptBlock:o(function(x,_,y){this._lBlock=x[_],this._rBlock=x[_+1],p.call(this,4,252645135),p.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),p.call(this,1,1431655765);for(var b=0;b<16;b++){for(var T=y[b],v=this._lBlock,S=this._rBlock,R=0,j=0;j<8;j++)R|=d[j][((S^T[j])&f[j])>>>0];this._lBlock=S,this._rBlock=v^R}var K=this._lBlock;this._lBlock=this._rBlock,this._rBlock=K,p.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),x[_]=this._lBlock,x[_+1]=this._rBlock},"_doCryptBlock"),keySize:64/32,ivSize:64/32,blockSize:64/32});function p(x,_){var y=(this._lBlock>>>x^this._rBlock)&_;this._rBlock^=y,this._lBlock^=y<<x}o(p,"exchangeLR");function g(x,_){var y=(this._rBlock>>>x^this._lBlock)&_;this._lBlock^=y,this._rBlock^=y<<x}o(g,"exchangeRL"),t.DES=s._createHelper(m);var h=a.TripleDES=s.extend({_doReset:o(function(){var x=this._key,_=x.words;if(_.length!==2&&_.length!==4&&_.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=_.slice(0,2),b=_.length<4?_.slice(0,2):_.slice(2,4),T=_.length<6?_.slice(0,2):_.slice(4,6);this._des1=m.createEncryptor(n.create(y)),this._des2=m.createEncryptor(n.create(b)),this._des3=m.createEncryptor(n.create(T))},"_doReset"),encryptBlock:o(function(x,_){this._des1.encryptBlock(x,_),this._des2.decryptBlock(x,_),this._des3.encryptBlock(x,_)},"encryptBlock"),decryptBlock:o(function(x,_){this._des3.decryptBlock(x,_),this._des2.encryptBlock(x,_),this._des1.decryptBlock(x,_)},"decryptBlock"),keySize:192/32,ivSize:64/32,blockSize:64/32});t.TripleDES=s._createHelper(h)}(),e.TripleDES})});var IS=ee((d5,ES)=>{(function(e,t,r){typeof d5=="object"?ES.exports=d5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(d5,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,s=t.algo,a=s.RC4=n.extend({_doReset:o(function(){for(var u=this._key,d=u.words,f=u.sigBytes,m=this._S=[],p=0;p<256;p++)m[p]=p;for(var p=0,g=0;p<256;p++){var h=p%f,x=d[h>>>2]>>>24-h%4*8&255;g=(g+m[p]+x)%256;var _=m[p];m[p]=m[g],m[g]=_}this._i=this._j=0},"_doReset"),_doProcessBlock:o(function(u,d){u[d]^=l.call(this)},"_doProcessBlock"),keySize:256/32,ivSize:0});function l(){for(var u=this._S,d=this._i,f=this._j,m=0,p=0;p<4;p++){d=(d+1)%256,f=(f+u[d])%256;var g=u[d];u[d]=u[f],u[f]=g,m|=u[(u[d]+u[f])%256]<<24-p*8}return this._i=d,this._j=f,m}o(l,"generateKeystreamWord"),t.RC4=n._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:o(function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)},"_doReset")});t.RC4Drop=n._createHelper(c)}(),e.RC4})});var SS=ee((m5,wS)=>{(function(e,t,r){typeof m5=="object"?wS.exports=m5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(m5,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,s=t.algo,a=[],l=[],c=[],u=s.Rabbit=n.extend({_doReset:o(function(){for(var f=this._key.words,m=this.cfg.iv,p=0;p<4;p++)f[p]=(f[p]<<8|f[p]>>>24)&16711935|(f[p]<<24|f[p]>>>8)&4278255360;var g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],h=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)h[p]^=g[p+4&7];if(m){var x=m.words,_=x[0],y=x[1],b=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v=b>>>16|T&4294901760,S=T<<16|b&65535;h[0]^=b,h[1]^=v,h[2]^=T,h[3]^=S,h[4]^=b,h[5]^=v,h[6]^=T,h[7]^=S;for(var p=0;p<4;p++)d.call(this)}},"_doReset"),_doProcessBlock:o(function(f,m){var p=this._X;d.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,f[m+g]^=a[g]},"_doProcessBlock"),blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,m=this._C,p=0;p<8;p++)l[p]=m[p];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<l[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<l[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<l[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<l[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<l[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<l[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<l[6]>>>0?1:0)|0,this._b=m[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var g=f[p]+m[p],h=g&65535,x=g>>>16,_=((h*h>>>17)+h*x>>>15)+x*x,y=((g&4294901760)*g|0)+((g&65535)*g|0);c[p]=_^y}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o(d,"nextState"),t.Rabbit=n._createHelper(u)}(),e.Rabbit})});var RS=ee((p5,PS)=>{(function(e,t,r){typeof p5=="object"?PS.exports=p5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(p5,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,s=t.algo,a=[],l=[],c=[],u=s.RabbitLegacy=n.extend({_doReset:o(function(){var f=this._key.words,m=this.cfg.iv,p=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)g[h]^=p[h+4&7];if(m){var x=m.words,_=x[0],y=x[1],b=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v=b>>>16|T&4294901760,S=T<<16|b&65535;g[0]^=b,g[1]^=v,g[2]^=T,g[3]^=S,g[4]^=b,g[5]^=v,g[6]^=T,g[7]^=S;for(var h=0;h<4;h++)d.call(this)}},"_doReset"),_doProcessBlock:o(function(f,m){var p=this._X;d.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,f[m+g]^=a[g]},"_doProcessBlock"),blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,m=this._C,p=0;p<8;p++)l[p]=m[p];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<l[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<l[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<l[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<l[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<l[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<l[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<l[6]>>>0?1:0)|0,this._b=m[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var g=f[p]+m[p],h=g&65535,x=g>>>16,_=((h*h>>>17)+h*x>>>15)+x*x,y=((g&4294901760)*g|0)+((g&65535)*g|0);c[p]=_^y}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o(d,"nextState"),t.RabbitLegacy=n._createHelper(u)}(),e.RabbitLegacy})});var DS=ee((g5,AS)=>{(function(e,t,r){typeof g5=="object"?AS.exports=g5=t(Ht(),sl(),al(),oa(),In()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(g5,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,s=t.algo;let a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(h,x){let _=x>>24&255,y=x>>16&255,b=x>>8&255,T=x&255,v=h.sbox[0][_]+h.sbox[1][y];return v=v^h.sbox[2][b],v=v+h.sbox[3][T],v}o(d,"F");function f(h,x,_){let y=x,b=_,T;for(let v=0;v<a;++v)y=y^h.pbox[v],b=d(h,y)^b,T=y,y=b,b=T;return T=y,y=b,b=T,b=b^h.pbox[a],y=y^h.pbox[a+1],{left:y,right:b}}o(f,"BlowFish_Encrypt");function m(h,x,_){let y=x,b=_,T;for(let v=a+1;v>1;--v)y=y^h.pbox[v],b=d(h,y)^b,T=y,y=b,b=T;return T=y,y=b,b=T,b=b^h.pbox[1],y=y^h.pbox[0],{left:y,right:b}}o(m,"BlowFish_Decrypt");function p(h,x,_){for(let S=0;S<4;S++){h.sbox[S]=[];for(let R=0;R<256;R++)h.sbox[S][R]=c[S][R]}let y=0;for(let S=0;S<a+2;S++)h.pbox[S]=l[S]^x[y],y++,y>=_&&(y=0);let b=0,T=0,v=0;for(let S=0;S<a+2;S+=2)v=f(h,b,T),b=v.left,T=v.right,h.pbox[S]=b,h.pbox[S+1]=T;for(let S=0;S<4;S++)for(let R=0;R<256;R+=2)v=f(h,b,T),b=v.left,T=v.right,h.sbox[S][R]=b,h.sbox[S][R+1]=T;return!0}o(p,"BlowFishInit");var g=s.Blowfish=n.extend({_doReset:o(function(){if(this._keyPriorReset!==this._key){var h=this._keyPriorReset=this._key,x=h.words,_=h.sigBytes/4;p(u,x,_)}},"_doReset"),encryptBlock:o(function(h,x){var _=f(u,h[x],h[x+1]);h[x]=_.left,h[x+1]=_.right},"encryptBlock"),decryptBlock:o(function(h,x){var _=m(u,h[x],h[x+1]);h[x]=_.left,h[x+1]=_.right},"decryptBlock"),blockSize:64/32,keySize:128/32,ivSize:64/32});t.Blowfish=n._createHelper(g)}(),e.Blowfish})});var yp=ee((h5,kS)=>{(function(e,t,r){typeof h5=="object"?kS.exports=h5=t(Ht(),_p(),Rw(),Dw(),sl(),Ow(),al(),xb(),Wh(),Bw(),_b(),Ww(),Hw(),Vw(),Yh(),Yw(),oa(),In(),Qw(),tS(),nS(),oS(),aS(),cS(),fS(),mS(),gS(),xS(),yS(),vS(),CS(),IS(),SS(),RS(),DS()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],t):e.CryptoJS=t(e.CryptoJS)})(h5,function(e){return e})});var Bc=ee(kn=>{kn.endianness=function(){return"LE"};kn.hostname=function(){return typeof location<"u"?location.hostname:""};kn.loadavg=function(){return[]};kn.uptime=function(){return 0};kn.freemem=function(){return Number.MAX_VALUE};kn.totalmem=function(){return Number.MAX_VALUE};kn.cpus=function(){return[]};kn.type=function(){return"Browser"};kn.release=function(){return typeof navigator<"u"?navigator.appVersion:""};kn.networkInterfaces=kn.getNetworkInterfaces=function(){return{}};kn.arch=function(){return"javascript"};kn.platform=function(){return"browser"};kn.tmpdir=kn.tmpDir=function(){return"/tmp"};kn.EOL=`
[0] Fix | Delete
`;kn.homedir=function(){return"/"}});var Pf=ee((y2e,BS)=>{"use strict";function i0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}o(i0,"assertPath");function US(e,t){for(var r="",n=0,s=-1,a=0,l,c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(l===47)break;l=47}if(l===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){u===-1?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),s=c,a=0;continue}}else if(r.length===2||r.length===1){r="",n=0,s=c,a=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),n=c-s-1;s=c,a=0}else l===46&&a!==-1?++a:a=-1}return r}o(US,"normalizeStringPosix");function WV(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}o(WV,"_format");var Sf={resolve:o(function(){for(var t="",r=!1,n,s=arguments.length-1;s>=-1&&!r;s--){var a;s>=0?a=arguments[s]:(n===void 0&&(n=process.cwd()),a=n),i0(a),a.length!==0&&(t=a+"/"+t,r=a.charCodeAt(0)===47)}return t=US(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},"resolve"),normalize:o(function(t){if(i0(t),t.length===0)return".";var r=t.charCodeAt(0)===47,n=t.charCodeAt(t.length-1)===47;return t=US(t,!r),t.length===0&&!r&&(t="."),t.length>0&&n&&(t+="/"),r?"/"+t:t},"normalize"),isAbsolute:o(function(t){return i0(t),t.length>0&&t.charCodeAt(0)===47},"isAbsolute"),join:o(function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var n=arguments[r];i0(n),n.length>0&&(t===void 0?t=n:t+="/"+n)}return t===void 0?".":Sf.normalize(t)},"join"),relative:o(function(t,r){if(i0(t),i0(r),t===r||(t=Sf.resolve(t),r=Sf.resolve(r),t===r))return"";for(var n=1;n<t.length&&t.charCodeAt(n)===47;++n);for(var s=t.length,a=s-n,l=1;l<r.length&&r.charCodeAt(l)===47;++l);for(var c=r.length,u=c-l,d=a<u?a:u,f=-1,m=0;m<=d;++m){if(m===d){if(u>d){if(r.charCodeAt(l+m)===47)return r.slice(l+m+1);if(m===0)return r.slice(l+m)}else a>d&&(t.charCodeAt(n+m)===47?f=m:m===0&&(f=0));break}var p=t.charCodeAt(n+m),g=r.charCodeAt(l+m);if(p!==g)break;p===47&&(f=m)}var h="";for(m=n+f+1;m<=s;++m)(m===s||t.charCodeAt(m)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(l+f):(l+=f,r.charCodeAt(l)===47&&++l,r.slice(l))},"relative"),_makeLong:o(function(t){return t},"_makeLong"),dirname:o(function(t){if(i0(t),t.length===0)return".";for(var r=t.charCodeAt(0),n=r===47,s=-1,a=!0,l=t.length-1;l>=1;--l)if(r=t.charCodeAt(l),r===47){if(!a){s=l;break}}else a=!1;return s===-1?n?"/":".":n&&s===1?"//":t.slice(0,s)},"dirname"),basename:o(function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i0(t);var n=0,s=-1,a=!0,l;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var c=r.length-1,u=-1;for(l=t.length-1;l>=0;--l){var d=t.charCodeAt(l);if(d===47){if(!a){n=l+1;break}}else u===-1&&(a=!1,u=l+1),c>=0&&(d===r.charCodeAt(c)?--c===-1&&(s=l):(c=-1,s=u))}return n===s?s=u:s===-1&&(s=t.length),t.slice(n,s)}else{for(l=t.length-1;l>=0;--l)if(t.charCodeAt(l)===47){if(!a){n=l+1;break}}else s===-1&&(a=!1,s=l+1);return s===-1?"":t.slice(n,s)}},"basename"),extname:o(function(t){i0(t);for(var r=-1,n=0,s=-1,a=!0,l=0,c=t.length-1;c>=0;--c){var u=t.charCodeAt(c);if(u===47){if(!a){n=c+1;break}continue}s===-1&&(a=!1,s=c+1),u===46?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||s===-1||l===0||l===1&&r===s-1&&r===n+1?"":t.slice(r,s)},"extname"),format:o(function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return WV("/",t)},"format"),parse:o(function(t){i0(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var n=t.charCodeAt(0),s=n===47,a;s?(r.root="/",a=1):a=0;for(var l=-1,c=0,u=-1,d=!0,f=t.length-1,m=0;f>=a;--f){if(n=t.charCodeAt(f),n===47){if(!d){c=f+1;break}continue}u===-1&&(d=!1,u=f+1),n===46?l===-1?l=f:m!==1&&(m=1):l!==-1&&(m=-1)}return l===-1||u===-1||m===0||m===1&&l===u-1&&l===c+1?u!==-1&&(c===0&&s?r.base=r.name=t.slice(1,u):r.base=r.name=t.slice(c,u)):(c===0&&s?(r.name=t.slice(1,l),r.base=t.slice(1,u)):(r.name=t.slice(c,l),r.base=t.slice(c,u)),r.ext=t.slice(l,u)),c>0?r.dir=t.slice(0,c-1):s&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};Sf.posix=Sf;BS.exports=Sf});var rd=ee(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.stringArray=ui.array=ui.func=ui.error=ui.number=ui.string=ui.boolean=void 0;function ZQ(e){return e===!0||e===!1}o(ZQ,"boolean");ui.boolean=ZQ;function dA(e){return typeof e=="string"||e instanceof String}o(dA,"string");ui.string=dA;function QQ(e){return typeof e=="number"||e instanceof Number}o(QQ,"number");ui.number=QQ;function eee(e){return e instanceof Error}o(eee,"error");ui.error=eee;function tee(e){return typeof e=="function"}o(tee,"func");ui.func=tee;function mA(e){return Array.isArray(e)}o(mA,"array");ui.array=mA;function ree(e){return mA(e)&&e.every(t=>dA(t))}o(ree,"stringArray");ui.stringArray=ree});var z8=ee(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Message=Je.NotificationType9=Je.NotificationType8=Je.NotificationType7=Je.NotificationType6=Je.NotificationType5=Je.NotificationType4=Je.NotificationType3=Je.NotificationType2=Je.NotificationType1=Je.NotificationType0=Je.NotificationType=Je.RequestType9=Je.RequestType8=Je.RequestType7=Je.RequestType6=Je.RequestType5=Je.RequestType4=Je.RequestType3=Je.RequestType2=Je.RequestType1=Je.RequestType=Je.RequestType0=Je.AbstractMessageSignature=Je.ParameterStructures=Je.ResponseError=Je.ErrorCodes=void 0;var Jc=rd(),v8;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(v8||(Je.ErrorCodes=v8={}));var T8=class e extends Error{static{o(this,"ResponseError")}constructor(t,r,n){super(r),this.code=Jc.number(t)?t:v8.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};Je.ResponseError=T8;var Wi=class e{static{o(this,"ParameterStructures")}constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};Je.ParameterStructures=Wi;Wi.auto=new Wi("auto");Wi.byPosition=new Wi("byPosition");Wi.byName=new Wi("byName");var Or=class{static{o(this,"AbstractMessageSignature")}constructor(t,r){this.method=t,this.numberOfParams=r}get parameterStructures(){return Wi.auto}};Je.AbstractMessageSignature=Or;var C8=class extends Or{static{o(this,"RequestType0")}constructor(t){super(t,0)}};Je.RequestType0=C8;var E8=class extends Or{static{o(this,"RequestType")}constructor(t,r=Wi.auto){super(t,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Je.RequestType=E8;var I8=class extends Or{static{o(this,"RequestType1")}constructor(t,r=Wi.auto){super(t,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Je.RequestType1=I8;var w8=class extends Or{static{o(this,"RequestType2")}constructor(t){super(t,2)}};Je.RequestType2=w8;var S8=class extends Or{static{o(this,"RequestType3")}constructor(t){super(t,3)}};Je.RequestType3=S8;var P8=class extends Or{static{o(this,"RequestType4")}constructor(t){super(t,4)}};Je.RequestType4=P8;var R8=class extends Or{static{o(this,"RequestType5")}constructor(t){super(t,5)}};Je.RequestType5=R8;var A8=class extends Or{static{o(this,"RequestType6")}constructor(t){super(t,6)}};Je.RequestType6=A8;var D8=class extends Or{static{o(this,"RequestType7")}constructor(t){super(t,7)}};Je.RequestType7=D8;var k8=class extends Or{static{o(this,"RequestType8")}constructor(t){super(t,8)}};Je.RequestType8=k8;var N8=class extends Or{static{o(this,"RequestType9")}constructor(t){super(t,9)}};Je.RequestType9=N8;var O8=class extends Or{static{o(this,"NotificationType")}constructor(t,r=Wi.auto){super(t,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Je.NotificationType=O8;var L8=class extends Or{static{o(this,"NotificationType0")}constructor(t){super(t,0)}};Je.NotificationType0=L8;var F8=class extends Or{static{o(this,"NotificationType1")}constructor(t,r=Wi.auto){super(t,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Je.NotificationType1=F8;var M8=class extends Or{static{o(this,"NotificationType2")}constructor(t){super(t,2)}};Je.NotificationType2=M8;var U8=class extends Or{static{o(this,"NotificationType3")}constructor(t){super(t,3)}};Je.NotificationType3=U8;var B8=class extends Or{static{o(this,"NotificationType4")}constructor(t){super(t,4)}};Je.NotificationType4=B8;var $8=class extends Or{static{o(this,"NotificationType5")}constructor(t){super(t,5)}};Je.NotificationType5=$8;var j8=class extends Or{static{o(this,"NotificationType6")}constructor(t){super(t,6)}};Je.NotificationType6=j8;var W8=class extends Or{static{o(this,"NotificationType7")}constructor(t){super(t,7)}};Je.NotificationType7=W8;var q8=class extends Or{static{o(this,"NotificationType8")}constructor(t){super(t,8)}};Je.NotificationType8=q8;var H8=class extends Or{static{o(this,"NotificationType9")}constructor(t){super(t,9)}};Je.NotificationType9=H8;var pA;(function(e){function t(s){let a=s;return a&&Jc.string(a.method)&&(Jc.string(a.id)||Jc.number(a.id))}o(t,"isRequest"),e.isRequest=t;function r(s){let a=s;return a&&Jc.string(a.method)&&s.id===void 0}o(r,"isNotification"),e.isNotification=r;function n(s){let a=s;return a&&(a.result!==void 0||!!a.error)&&(Jc.string(a.id)||Jc.number(a.id)||a.id===null)}o(n,"isResponse"),e.isResponse=n})(pA||(Je.Message=pA={}))});var G8=ee(bl=>{"use strict";var gA;Object.defineProperty(bl,"__esModule",{value:!0});bl.LRUCache=bl.LinkedMap=bl.Touch=void 0;var fi;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(fi||(bl.Touch=fi={}));var X5=class{static{o(this,"LinkedMap")}constructor(){this[gA]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,r=fi.None){let n=this._map.get(t);if(n)return r!==fi.None&&this.touch(n,r),n.value}set(t,r,n=fi.None){let s=this._map.get(t);if(s)s.value=r,n!==fi.None&&this.touch(s,n);else{switch(s={key:t,value:r,next:void 0,previous:void 0},n){case fi.None:this.addItemLast(s);break;case fi.First:this.addItemFirst(s);break;case fi.Last:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(t,s),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let r=this._map.get(t);if(r)return this._map.delete(t),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,r){let n=this._state,s=this._head;for(;s;){if(r?t.bind(r)(s.value,s.key,this):t(s.value,s.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){let t=this._state,r=this._head,n={[Symbol.iterator]:()=>n,next:o(()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}},"next")};return n}values(){let t=this._state,r=this._head,n={[Symbol.iterator]:()=>n,next:o(()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}},"next")};return n}entries(){let t=this._state,r=this._head,n={[Symbol.iterator]:()=>n,next:o(()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}},"next")};return n}[(gA=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>t;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let r=t.next,n=t.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}t.next=void 0,t.previous=void 0,this._state++}touch(t,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==fi.First&&r!==fi.Last)){if(r===fi.First){if(t===this._head)return;let n=t.next,s=t.previous;t===this._tail?(s.next=void 0,this._tail=s):(n.previous=s,s.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(r===fi.Last){if(t===this._tail)return;let n=t.next,s=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=s,s.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((r,n)=>{t.push([n,r])}),t}fromJSON(t){this.clear();for(let[r,n]of t)this.set(r,n)}};bl.LinkedMap=X5;var V8=class extends X5{static{o(this,"LRUCache")}constructor(t,r=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,r),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,r=fi.AsNew){return super.get(t,r)}peek(t){return super.get(t,fi.None)}set(t,r){return super.set(t,r,fi.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};bl.LRUCache=V8});var xA=ee(J5=>{"use strict";Object.defineProperty(J5,"__esModule",{value:!0});J5.Disposable=void 0;var hA;(function(e){function t(r){return{dispose:r}}o(t,"create"),e.create=t})(hA||(J5.Disposable=hA={}))});var vl=ee(X8=>{"use strict";Object.defineProperty(X8,"__esModule",{value:!0});var K8;function Y8(){if(K8===void 0)throw new Error("No runtime abstraction layer installed");return K8}o(Y8,"RAL");(function(e){function t(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");K8=r}o(t,"install"),e.install=t})(Y8||(Y8={}));X8.default=Y8});var id=ee(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.Emitter=nd.Event=void 0;var nee=vl(),_A;(function(e){let t={dispose(){}};e.None=function(){return t}})(_A||(nd.Event=_A={}));var J8=class{static{o(this,"CallbackList")}add(t,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:o(()=>this.remove(t,r),"dispose")})}remove(t,r=null){if(!this._callbacks)return;let n=!1;for(let s=0,a=this._callbacks.length;s<a;s++)if(this._callbacks[s]===t)if(this._contexts[s]===r){this._callbacks.splice(s,1),this._contexts.splice(s,1);return}else n=!0;if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let r=[],n=this._callbacks.slice(0),s=this._contexts.slice(0);for(let a=0,l=n.length;a<l;a++)try{r.push(n[a].apply(s[a],t))}catch(c){(0,nee.default)().console.error(c)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Z5=class e{static{o(this,"Emitter")}constructor(t){this._options=t}get event(){return this._event||(this._event=(t,r,n)=>{this._callbacks||(this._callbacks=new J8),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);let s={dispose:o(()=>{this._callbacks&&(this._callbacks.remove(t,r),s.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(s),s}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};nd.Emitter=Z5;Z5._noop=function(){}});var t2=ee(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.CancellationTokenSource=od.CancellationToken=void 0;var iee=vl(),oee=rd(),Z8=id(),Q5;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Z8.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Z8.Event.None});function t(r){let n=r;return n&&(n===e.None||n===e.Cancelled||oee.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}o(t,"is"),e.is=t})(Q5||(od.CancellationToken=Q5={}));var see=Object.freeze(function(e,t){let r=(0,iee.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),e2=class{static{o(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?see:(this._emitter||(this._emitter=new Z8.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Q8=class{static{o(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new e2),this._token}cancel(){this._token?this._token.cancel():this._token=Q5.Cancelled}dispose(){this._token?this._token instanceof e2&&this._token.dispose():this._token=Q5.None}};od.CancellationTokenSource=Q8});var yA=ee(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.SharedArrayReceiverStrategy=sd.SharedArraySenderStrategy=void 0;var aee=t2(),Bp;(function(e){e.Continue=0,e.Cancelled=1})(Bp||(Bp={}));var e6=class{static{o(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let r=new SharedArrayBuffer(4),n=new Int32Array(r,0,1);n[0]=Bp.Continue,this.buffers.set(t.id,r),t.$cancellationData=r}async sendCancellation(t,r){let n=this.buffers.get(r);if(n===void 0)return;let s=new Int32Array(n,0,1);Atomics.store(s,0,Bp.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};sd.SharedArraySenderStrategy=e6;var t6=class{static{o(this,"SharedArrayBufferCancellationToken")}constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Bp.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},r6=class{static{o(this,"SharedArrayBufferCancellationTokenSource")}constructor(t){this.token=new t6(t)}cancel(){}dispose(){}},n6=class{static{o(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(t){let r=t.$cancellationData;return r===void 0?new aee.CancellationTokenSource:new r6(r)}};sd.SharedArrayReceiverStrategy=n6});var o6=ee(r2=>{"use strict";Object.defineProperty(r2,"__esModule",{value:!0});r2.Semaphore=void 0;var lee=vl(),i6=class{static{o(this,"Semaphore")}constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((r,n)=>{this._waiting.push({thunk:t,resolve:r,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,lee.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let r=t.thunk();r instanceof Promise?r.then(n=>{this._active--,t.resolve(n),this.runNext()},n=>{this._active--,t.reject(n),this.runNext()}):(this._active--,t.resolve(r),this.runNext())}catch(r){this._active--,t.reject(r),this.runNext()}}};r2.Semaphore=i6});var vA=ee(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ReadableStreamMessageReader=Tl.AbstractMessageReader=Tl.MessageReader=void 0;var a6=vl(),ad=rd(),s6=id(),cee=o6(),bA;(function(e){function t(r){let n=r;return n&&ad.func(n.listen)&&ad.func(n.dispose)&&ad.func(n.onError)&&ad.func(n.onClose)&&ad.func(n.onPartialMessage)}o(t,"is"),e.is=t})(bA||(Tl.MessageReader=bA={}));var n2=class{static{o(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new s6.Emitter,this.closeEmitter=new s6.Emitter,this.partialMessageEmitter=new s6.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${ad.string(t.message)?t.message:"unknown"}`)}};Tl.AbstractMessageReader=n2;var l6;(function(e){function t(r){let n,s,a,l=new Map,c,u=new Map;if(r===void 0||typeof r=="string")n=r??"utf-8";else{if(n=r.charset??"utf-8",r.contentDecoder!==void 0&&(a=r.contentDecoder,l.set(a.name,a)),r.contentDecoders!==void 0)for(let d of r.contentDecoders)l.set(d.name,d);if(r.contentTypeDecoder!==void 0&&(c=r.contentTypeDecoder,u.set(c.name,c)),r.contentTypeDecoders!==void 0)for(let d of r.contentTypeDecoders)u.set(d.name,d)}return c===void 0&&(c=(0,a6.default)().applicationJson.decoder,u.set(c.name,c)),{charset:n,contentDecoder:a,contentDecoders:l,contentTypeDecoder:c,contentTypeDecoders:u}}o(t,"fromOptions"),e.fromOptions=t})(l6||(l6={}));var c6=class extends n2{static{o(this,"ReadableStreamMessageReader")}constructor(t,r){super(),this.readable=t,this.options=l6.fromOptions(r),this.buffer=(0,a6.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new cee.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let r=this.readable.onData(n=>{this.onData(n)});return this.readable.onError(n=>this.fireError(n)),this.readable.onClose(()=>this.fireClose()),r}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let n=this.buffer.tryReadHeaders(!0);if(!n)return;let s=n.get("content-length");if(!s){this.fireError(new Error(`Header must provide a Content-Length property.
[1] Fix | Delete
${JSON.stringify(Object.fromEntries(n))}`));return}let a=parseInt(s);if(isNaN(a)){this.fireError(new Error(`Content-Length value must be a number. Got ${s}`));return}this.nextMessageLength=a}let r=this.buffer.tryReadBody(this.nextMessageLength);if(r===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let n=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(r):r,s=await this.options.contentTypeDecoder.decode(n,this.options);this.callback(s)}).catch(n=>{this.fireError(n)})}}catch(r){this.fireError(r)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,a6.default)().timer.setTimeout((t,r)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:r}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Tl.ReadableStreamMessageReader=c6});var wA=ee(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.WriteableStreamMessageWriter=Cl.AbstractMessageWriter=Cl.MessageWriter=void 0;var TA=vl(),$p=rd(),uee=o6(),CA=id(),fee="Content-Length: ",EA=`\r
[2] Fix | Delete
`,IA;(function(e){function t(r){let n=r;return n&&$p.func(n.dispose)&&$p.func(n.onClose)&&$p.func(n.onError)&&$p.func(n.write)}o(t,"is"),e.is=t})(IA||(Cl.MessageWriter=IA={}));var i2=class{static{o(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new CA.Emitter,this.closeEmitter=new CA.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,r,n){this.errorEmitter.fire([this.asError(t),r,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${$p.string(t.message)?t.message:"unknown"}`)}};Cl.AbstractMessageWriter=i2;var u6;(function(e){function t(r){return r===void 0||typeof r=="string"?{charset:r??"utf-8",contentTypeEncoder:(0,TA.default)().applicationJson.encoder}:{charset:r.charset??"utf-8",contentEncoder:r.contentEncoder,contentTypeEncoder:r.contentTypeEncoder??(0,TA.default)().applicationJson.encoder}}o(t,"fromOptions"),e.fromOptions=t})(u6||(u6={}));var f6=class extends i2{static{o(this,"WriteableStreamMessageWriter")}constructor(t,r){super(),this.writable=t,this.options=u6.fromOptions(r),this.errorCount=0,this.writeSemaphore=new uee.Semaphore(1),this.writable.onError(n=>this.fireError(n)),this.writable.onClose(()=>this.fireClose())}async write(t){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(t,this.options).then(n=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(n):n).then(n=>{let s=[];return s.push(fee,n.byteLength.toString(),EA),s.push(EA),this.doWrite(t,s,n)},n=>{throw this.fireError(n),n}))}async doWrite(t,r,n){try{return await this.writable.write(r.join(""),"ascii"),this.writable.write(n)}catch(s){return this.handleError(s,t),Promise.reject(s)}}handleError(t,r){this.errorCount++,this.fireError(t,r,this.errorCount)}end(){this.writable.end()}};Cl.WriteableStreamMessageWriter=f6});var SA=ee(o2=>{"use strict";Object.defineProperty(o2,"__esModule",{value:!0});o2.AbstractMessageBuffer=void 0;var dee=13,mee=10,pee=`\r
[3] Fix | Delete
`,d6=class{static{o(this,"AbstractMessageBuffer")}constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let r=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(r),this._totalLength+=r.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let r=0,n=0,s=0,a=0;e:for(;n<this._chunks.length;){let d=this._chunks[n];for(s=0;s<d.length;){switch(d[s]){case dee:switch(r){case 0:r=1;break;case 2:r=3;break;default:r=0}break;case mee:switch(r){case 1:r=2;break;case 3:r=4,s++;break e;default:r=0}break;default:r=0}s++}a+=d.byteLength,n++}if(r!==4)return;let l=this._read(a+s),c=new Map,u=this.toString(l,"ascii").split(pee);if(u.length<2)return c;for(let d=0;d<u.length-2;d++){let f=u[d],m=f.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
[4] Fix | Delete
${f}`);let p=f.substr(0,m),g=f.substr(m+1).trim();c.set(t?p.toLowerCase():p,g)}return c}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let a=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(a)}if(this._chunks[0].byteLength>t){let a=this._chunks[0],l=this.asNative(a,t);return this._chunks[0]=a.slice(t),this._totalLength-=t,l}let r=this.allocNative(t),n=0,s=0;for(;t>0;){let a=this._chunks[s];if(a.byteLength>t){let l=a.slice(0,t);r.set(l,n),n+=t,this._chunks[s]=a.slice(t),this._totalLength-=t,t-=t}else r.set(a,n),n+=a.byteLength,this._chunks.shift(),this._totalLength-=a.byteLength,t-=a.byteLength}return r}};o2.AbstractMessageBuffer=d6});var kA=ee(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.createMessageConnection=gt.ConnectionOptions=gt.MessageStrategy=gt.CancellationStrategy=gt.CancellationSenderStrategy=gt.CancellationReceiverStrategy=gt.RequestCancellationReceiverStrategy=gt.IdCancellationReceiverStrategy=gt.ConnectionStrategy=gt.ConnectionError=gt.ConnectionErrors=gt.LogTraceNotification=gt.SetTraceNotification=gt.TraceFormat=gt.TraceValues=gt.Trace=gt.NullLogger=gt.ProgressType=gt.ProgressToken=void 0;var PA=vl(),Yr=rd(),ut=z8(),RA=G8(),jp=id(),m6=t2(),Hp;(function(e){e.type=new ut.NotificationType("$/cancelRequest")})(Hp||(Hp={}));var p6;(function(e){function t(r){return typeof r=="string"||typeof r=="number"}o(t,"is"),e.is=t})(p6||(gt.ProgressToken=p6={}));var Wp;(function(e){e.type=new ut.NotificationType("$/progress")})(Wp||(Wp={}));var g6=class{static{o(this,"ProgressType")}constructor(){}};gt.ProgressType=g6;var h6;(function(e){function t(r){return Yr.func(r)}o(t,"is"),e.is=t})(h6||(h6={}));gt.NullLogger=Object.freeze({error:o(()=>{},"error"),warn:o(()=>{},"warn"),info:o(()=>{},"info"),log:o(()=>{},"log")});var fr;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(fr||(gt.Trace=fr={}));var AA;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(AA||(gt.TraceValues=AA={}));(function(e){function t(n){if(!Yr.string(n))return e.Off;switch(n=n.toLowerCase(),n){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}o(t,"fromString"),e.fromString=t;function r(n){switch(n){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}o(r,"toString"),e.toString=r})(fr||(gt.Trace=fr={}));var ho;(function(e){e.Text="text",e.JSON="json"})(ho||(gt.TraceFormat=ho={}));(function(e){function t(r){return Yr.string(r)?(r=r.toLowerCase(),r==="json"?e.JSON:e.Text):e.Text}o(t,"fromString"),e.fromString=t})(ho||(gt.TraceFormat=ho={}));var x6;(function(e){e.type=new ut.NotificationType("$/setTrace")})(x6||(gt.SetTraceNotification=x6={}));var s2;(function(e){e.type=new ut.NotificationType("$/logTrace")})(s2||(gt.LogTraceNotification=s2={}));var qp;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(qp||(gt.ConnectionErrors=qp={}));var ld=class e extends Error{static{o(this,"ConnectionError")}constructor(t,r){super(r),this.code=t,Object.setPrototypeOf(this,e.prototype)}};gt.ConnectionError=ld;var _6;(function(e){function t(r){let n=r;return n&&Yr.func(n.cancelUndispatched)}o(t,"is"),e.is=t})(_6||(gt.ConnectionStrategy=_6={}));var a2;(function(e){function t(r){let n=r;return n&&(n.kind===void 0||n.kind==="id")&&Yr.func(n.createCancellationTokenSource)&&(n.dispose===void 0||Yr.func(n.dispose))}o(t,"is"),e.is=t})(a2||(gt.IdCancellationReceiverStrategy=a2={}));var y6;(function(e){function t(r){let n=r;return n&&n.kind==="request"&&Yr.func(n.createCancellationTokenSource)&&(n.dispose===void 0||Yr.func(n.dispose))}o(t,"is"),e.is=t})(y6||(gt.RequestCancellationReceiverStrategy=y6={}));var l2;(function(e){e.Message=Object.freeze({createCancellationTokenSource(r){return new m6.CancellationTokenSource}});function t(r){return a2.is(r)||y6.is(r)}o(t,"is"),e.is=t})(l2||(gt.CancellationReceiverStrategy=l2={}));var c2;(function(e){e.Message=Object.freeze({sendCancellation(r,n){return r.sendNotification(Hp.type,{id:n})},cleanup(r){}});function t(r){let n=r;return n&&Yr.func(n.sendCancellation)&&Yr.func(n.cleanup)}o(t,"is"),e.is=t})(c2||(gt.CancellationSenderStrategy=c2={}));var u2;(function(e){e.Message=Object.freeze({receiver:l2.Message,sender:c2.Message});function t(r){let n=r;return n&&l2.is(n.receiver)&&c2.is(n.sender)}o(t,"is"),e.is=t})(u2||(gt.CancellationStrategy=u2={}));var f2;(function(e){function t(r){let n=r;return n&&Yr.func(n.handleMessage)}o(t,"is"),e.is=t})(f2||(gt.MessageStrategy=f2={}));var DA;(function(e){function t(r){let n=r;return n&&(u2.is(n.cancellationStrategy)||_6.is(n.connectionStrategy)||f2.is(n.messageStrategy))}o(t,"is"),e.is=t})(DA||(gt.ConnectionOptions=DA={}));var Os;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(Os||(Os={}));function gee(e,t,r,n){let s=r!==void 0?r:gt.NullLogger,a=0,l=0,c=0,u="2.0",d,f=new Map,m,p=new Map,g=new Map,h,x=new RA.LinkedMap,_=new Map,y=new Set,b=new Map,T=fr.Off,v=ho.Text,S,R=Os.New,j=new jp.Emitter,K=new jp.Emitter,V=new jp.Emitter,Y=new jp.Emitter,N=new jp.Emitter,k=n&&n.cancellationStrategy?n.cancellationStrategy:u2.Message;function z(F){if(F===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+F.toString()}o(z,"createRequestQueueKey");function D(F){return F===null?"res-unknown-"+(++c).toString():"res-"+F.toString()}o(D,"createResponseQueueKey");function E(){return"not-"+(++l).toString()}o(E,"createNotificationQueueKey");function I(F,Q){ut.Message.isRequest(Q)?F.set(z(Q.id),Q):ut.Message.isResponse(Q)?F.set(D(Q.id),Q):F.set(E(),Q)}o(I,"addMessageToQueue");function A(F){}o(A,"cancelUndispatched");function w(){return R===Os.Listening}o(w,"isListening");function P(){return R===Os.Closed}o(P,"isClosed");function O(){return R===Os.Disposed}o(O,"isDisposed");function M(){(R===Os.New||R===Os.Listening)&&(R=Os.Closed,K.fire(void 0))}o(M,"closeHandler");function $(F){j.fire([F,void 0,void 0])}o($,"readErrorHandler");function G(F){j.fire(F)}o(G,"writeErrorHandler"),e.onClose(M),e.onError($),t.onClose(M),t.onError(G);function le(){h||x.size===0||(h=(0,PA.default)().timer.setImmediate(()=>{h=void 0,xe()}))}o(le,"triggerMessageQueue");function be(F){ut.Message.isRequest(F)?Ge(F):ut.Message.isNotification(F)?Qe(F):ut.Message.isResponse(F)?Ke(F):U(F)}o(be,"handleMessage");function xe(){if(x.size===0)return;let F=x.shift();try{let Q=n?.messageStrategy;f2.is(Q)?Q.handleMessage(F,be):be(F)}finally{le()}}o(xe,"processMessageQueue");let $e=o(F=>{try{if(ut.Message.isNotification(F)&&F.method===Hp.type.method){let Q=F.params.id,de=z(Q),ge=x.get(de);if(ut.Message.isRequest(ge)){let Be=n?.connectionStrategy,We=Be&&Be.cancelUndispatched?Be.cancelUndispatched(ge,A):void 0;if(We&&(We.error!==void 0||We.result!==void 0)){x.delete(de),b.delete(Q),We.id=ge.id,ce(We,F.method,Date.now()),t.write(We).catch(()=>s.error("Sending response for canceled message failed."));return}}let De=b.get(Q);if(De!==void 0){De.cancel(),ne(F);return}else y.add(Q)}I(x,F)}finally{le()}},"callback");function Ge(F){if(O())return;function Q(Ae,H,J){let ae={jsonrpc:u,id:F.id};Ae instanceof ut.ResponseError?ae.error=Ae.toJson():ae.result=Ae===void 0?null:Ae,ce(ae,H,J),t.write(ae).catch(()=>s.error("Sending response failed."))}o(Q,"reply");function de(Ae,H,J){let ae={jsonrpc:u,id:F.id,error:Ae.toJson()};ce(ae,H,J),t.write(ae).catch(()=>s.error("Sending response failed."))}o(de,"replyError");function ge(Ae,H,J){Ae===void 0&&(Ae=null);let ae={jsonrpc:u,id:F.id,result:Ae};ce(ae,H,J),t.write(ae).catch(()=>s.error("Sending response failed."))}o(ge,"replySuccess"),q(F);let De=f.get(F.method),Be,We;De&&(Be=De.type,We=De.handler);let He=Date.now();if(We||d){let Ae=F.id??String(Date.now()),H=a2.is(k.receiver)?k.receiver.createCancellationTokenSource(Ae):k.receiver.createCancellationTokenSource(F);F.id!==null&&y.has(F.id)&&H.cancel(),F.id!==null&&b.set(Ae,H);try{let J;if(We)if(F.params===void 0){if(Be!==void 0&&Be.numberOfParams!==0){de(new ut.ResponseError(ut.ErrorCodes.InvalidParams,`Request ${F.method} defines ${Be.numberOfParams} params but received none.`),F.method,He);return}J=We(H.token)}else if(Array.isArray(F.params)){if(Be!==void 0&&Be.parameterStructures===ut.ParameterStructures.byName){de(new ut.ResponseError(ut.ErrorCodes.InvalidParams,`Request ${F.method} defines parameters by name but received parameters by position`),F.method,He);return}J=We(...F.params,H.token)}else{if(Be!==void 0&&Be.parameterStructures===ut.ParameterStructures.byPosition){de(new ut.ResponseError(ut.ErrorCodes.InvalidParams,`Request ${F.method} defines parameters by position but received parameters by name`),F.method,He);return}J=We(F.params,H.token)}else d&&(J=d(F.method,F.params,H.token));let ae=J;J?ae.then?ae.then(pe=>{b.delete(Ae),Q(pe,F.method,He)},pe=>{b.delete(Ae),pe instanceof ut.ResponseError?de(pe,F.method,He):pe&&Yr.string(pe.message)?de(new ut.ResponseError(ut.ErrorCodes.InternalError,`Request ${F.method} failed with message: ${pe.message}`),F.method,He):de(new ut.ResponseError(ut.ErrorCodes.InternalError,`Request ${F.method} failed unexpectedly without providing any details.`),F.method,He)}):(b.delete(Ae),Q(J,F.method,He)):(b.delete(Ae),ge(J,F.method,He))}catch(J){b.delete(Ae),J instanceof ut.ResponseError?Q(J,F.method,He):J&&Yr.string(J.message)?de(new ut.ResponseError(ut.ErrorCodes.InternalError,`Request ${F.method} failed with message: ${J.message}`),F.method,He):de(new ut.ResponseError(ut.ErrorCodes.InternalError,`Request ${F.method} failed unexpectedly without providing any details.`),F.method,He)}}else de(new ut.ResponseError(ut.ErrorCodes.MethodNotFound,`Unhandled method ${F.method}`),F.method,He)}o(Ge,"handleRequest");function Ke(F){if(!O())if(F.id===null)F.error?s.error(`Received response message without id: Error is:
[5] Fix | Delete
${JSON.stringify(F.error,void 0,4)}`):s.error("Received response message without id. No further error information provided.");else{let Q=F.id,de=_.get(Q);if(_e(F,de),de!==void 0){_.delete(Q);try{if(F.error){let ge=F.error;de.reject(new ut.ResponseError(ge.code,ge.message,ge.data))}else if(F.result!==void 0)de.resolve(F.result);else throw new Error("Should never happen.")}catch(ge){ge.message?s.error(`Response handler '${de.method}' failed with message: ${ge.message}`):s.error(`Response handler '${de.method}' failed unexpectedly.`)}}}}o(Ke,"handleResponse");function Qe(F){if(O())return;let Q,de;if(F.method===Hp.type.method){let ge=F.params.id;y.delete(ge),ne(F);return}else{let ge=p.get(F.method);ge&&(de=ge.handler,Q=ge.type)}if(de||m)try{if(ne(F),de)if(F.params===void 0)Q!==void 0&&Q.numberOfParams!==0&&Q.parameterStructures!==ut.ParameterStructures.byName&&s.error(`Notification ${F.method} defines ${Q.numberOfParams} params but received none.`),de();else if(Array.isArray(F.params)){let ge=F.params;F.method===Wp.type.method&&ge.length===2&&p6.is(ge[0])?de({token:ge[0],value:ge[1]}):(Q!==void 0&&(Q.parameterStructures===ut.ParameterStructures.byName&&s.error(`Notification ${F.method} defines parameters by name but received parameters by position`),Q.numberOfParams!==F.params.length&&s.error(`Notification ${F.method} defines ${Q.numberOfParams} params but received ${ge.length} arguments`)),de(...ge))}else Q!==void 0&&Q.parameterStructures===ut.ParameterStructures.byPosition&&s.error(`Notification ${F.method} defines parameters by position but received parameters by name`),de(F.params);else m&&m(F.method,F.params)}catch(ge){ge.message?s.error(`Notification handler '${F.method}' failed with message: ${ge.message}`):s.error(`Notification handler '${F.method}' failed unexpectedly.`)}else V.fire(F)}o(Qe,"handleNotification");function U(F){if(!F){s.error("Received empty message.");return}s.error(`Received message which is neither a response nor a notification message:
[6] Fix | Delete
${JSON.stringify(F,null,4)}`);let Q=F;if(Yr.string(Q.id)||Yr.number(Q.id)){let de=Q.id,ge=_.get(de);ge&&ge.reject(new Error("The received response has neither a result nor an error property."))}}o(U,"handleInvalidMessage");function ie(F){if(F!=null)switch(T){case fr.Verbose:return JSON.stringify(F,null,4);case fr.Compact:return JSON.stringify(F);default:return}}o(ie,"stringifyTrace");function W(F){if(!(T===fr.Off||!S))if(v===ho.Text){let Q;(T===fr.Verbose||T===fr.Compact)&&F.params&&(Q=`Params: ${ie(F.params)}
[7] Fix | Delete
[8] Fix | Delete
`),S.log(`Sending request '${F.method} - (${F.id})'.`,Q)}else fe("send-request",F)}o(W,"traceSendingRequest");function he(F){if(!(T===fr.Off||!S))if(v===ho.Text){let Q;(T===fr.Verbose||T===fr.Compact)&&(F.params?Q=`Params: ${ie(F.params)}
[9] Fix | Delete
[10] Fix | Delete
`:Q=`No parameters provided.
[11] Fix | Delete
[12] Fix | Delete
`),S.log(`Sending notification '${F.method}'.`,Q)}else fe("send-notification",F)}o(he,"traceSendingNotification");function ce(F,Q,de){if(!(T===fr.Off||!S))if(v===ho.Text){let ge;(T===fr.Verbose||T===fr.Compact)&&(F.error&&F.error.data?ge=`Error data: ${ie(F.error.data)}
[13] Fix | Delete
[14] Fix | Delete
`:F.result?ge=`Result: ${ie(F.result)}
[15] Fix | Delete
[16] Fix | Delete
`:F.error===void 0&&(ge=`No result returned.
[17] Fix | Delete
[18] Fix | Delete
`)),S.log(`Sending response '${Q} - (${F.id})'. Processing request took ${Date.now()-de}ms`,ge)}else fe("send-response",F)}o(ce,"traceSendingResponse");function q(F){if(!(T===fr.Off||!S))if(v===ho.Text){let Q;(T===fr.Verbose||T===fr.Compact)&&F.params&&(Q=`Params: ${ie(F.params)}
[19] Fix | Delete
[20] Fix | Delete
`),S.log(`Received request '${F.method} - (${F.id})'.`,Q)}else fe("receive-request",F)}o(q,"traceReceivedRequest");function ne(F){if(!(T===fr.Off||!S||F.method===s2.type.method))if(v===ho.Text){let Q;(T===fr.Verbose||T===fr.Compact)&&(F.params?Q=`Params: ${ie(F.params)}
[21] Fix | Delete
[22] Fix | Delete
`:Q=`No parameters provided.
[23] Fix | Delete
[24] Fix | Delete
`),S.log(`Received notification '${F.method}'.`,Q)}else fe("receive-notification",F)}o(ne,"traceReceivedNotification");function _e(F,Q){if(!(T===fr.Off||!S))if(v===ho.Text){let de;if((T===fr.Verbose||T===fr.Compact)&&(F.error&&F.error.data?de=`Error data: ${ie(F.error.data)}
[25] Fix | Delete
[26] Fix | Delete
`:F.result?de=`Result: ${ie(F.result)}
[27] Fix | Delete
[28] Fix | Delete
`:F.error===void 0&&(de=`No result returned.
[29] Fix | Delete
[30] Fix | Delete
`)),Q){let ge=F.error?` Request failed: ${F.error.message} (${F.error.code}).`:"";S.log(`Received response '${Q.method} - (${F.id})' in ${Date.now()-Q.timerStart}ms.${ge}`,de)}else S.log(`Received response ${F.id} without active response promise.`,de)}else fe("receive-response",F)}o(_e,"traceReceivedResponse");function fe(F,Q){if(!S||T===fr.Off)return;let de={isLSPMessage:!0,type:F,message:Q,timestamp:Date.now()};S.log(de)}o(fe,"logLSPMessage");function me(){if(P())throw new ld(qp.Closed,"Connection is closed.");if(O())throw new ld(qp.Disposed,"Connection is disposed.")}o(me,"throwIfClosedOrDisposed");function Ee(){if(w())throw new ld(qp.AlreadyListening,"Connection is already listening")}o(Ee,"throwIfListening");function Pe(){if(!w())throw new Error("Call listen() first.")}o(Pe,"throwIfNotListening");function Oe(F){return F===void 0?null:F}o(Oe,"undefinedToNull");function qe(F){if(F!==null)return F}o(qe,"nullToUndefined");function Ye(F){return F!=null&&!Array.isArray(F)&&typeof F=="object"}o(Ye,"isNamedParam");function rt(F,Q){switch(F){case ut.ParameterStructures.auto:return Ye(Q)?qe(Q):[Oe(Q)];case ut.ParameterStructures.byName:if(!Ye(Q))throw new Error("Received parameters by name but param is not an object literal.");return qe(Q);case ut.ParameterStructures.byPosition:return[Oe(Q)];default:throw new Error(`Unknown parameter structure ${F.toString()}`)}}o(rt,"computeSingleParam");function nt(F,Q){let de,ge=F.numberOfParams;switch(ge){case 0:de=void 0;break;case 1:de=rt(F.parameterStructures,Q[0]);break;default:de=[];for(let De=0;De<Q.length&&De<ge;De++)de.push(Oe(Q[De]));if(Q.length<ge)for(let De=Q.length;De<ge;De++)de.push(null);break}return de}o(nt,"computeMessageParams");let ct={sendNotification:o((F,...Q)=>{me();let de,ge;if(Yr.string(F)){de=F;let Be=Q[0],We=0,He=ut.ParameterStructures.auto;ut.ParameterStructures.is(Be)&&(We=1,He=Be);let Ae=Q.length,H=Ae-We;switch(H){case 0:ge=void 0;break;case 1:ge=rt(He,Q[We]);break;default:if(He===ut.ParameterStructures.byName)throw new Error(`Received ${H} parameters for 'by Name' notification parameter structure.`);ge=Q.slice(We,Ae).map(J=>Oe(J));break}}else{let Be=Q;de=F.method,ge=nt(F,Be)}let De={jsonrpc:u,method:de,params:ge};return he(De),t.write(De).catch(Be=>{throw s.error("Sending notification failed."),Be})},"sendNotification"),onNotification:o((F,Q)=>{me();let de;return Yr.func(F)?m=F:Q&&(Yr.string(F)?(de=F,p.set(F,{type:void 0,handler:Q})):(de=F.method,p.set(F.method,{type:F,handler:Q}))),{dispose:o(()=>{de!==void 0?p.delete(de):m=void 0},"dispose")}},"onNotification"),onProgress:o((F,Q,de)=>{if(g.has(Q))throw new Error(`Progress handler for token ${Q} already registered`);return g.set(Q,de),{dispose:o(()=>{g.delete(Q)},"dispose")}},"onProgress"),sendProgress:o((F,Q,de)=>ct.sendNotification(Wp.type,{token:Q,value:de}),"sendProgress"),onUnhandledProgress:Y.event,sendRequest:o((F,...Q)=>{me(),Pe();let de,ge,De;if(Yr.string(F)){de=F;let Ae=Q[0],H=Q[Q.length-1],J=0,ae=ut.ParameterStructures.auto;ut.ParameterStructures.is(Ae)&&(J=1,ae=Ae);let pe=Q.length;m6.CancellationToken.is(H)&&(pe=pe-1,De=H);let ye=pe-J;switch(ye){case 0:ge=void 0;break;case 1:ge=rt(ae,Q[J]);break;default:if(ae===ut.ParameterStructures.byName)throw new Error(`Received ${ye} parameters for 'by Name' request parameter structure.`);ge=Q.slice(J,pe).map(Ce=>Oe(Ce));break}}else{let Ae=Q;de=F.method,ge=nt(F,Ae);let H=F.numberOfParams;De=m6.CancellationToken.is(Ae[H])?Ae[H]:void 0}let Be=a++,We;De&&(We=De.onCancellationRequested(()=>{let Ae=k.sender.sendCancellation(ct,Be);return Ae===void 0?(s.log(`Received no promise from cancellation strategy when cancelling id ${Be}`),Promise.resolve()):Ae.catch(()=>{s.log(`Sending cancellation messages for id ${Be} failed`)})}));let He={jsonrpc:u,id:Be,method:de,params:ge};return W(He),typeof k.sender.enableCancellation=="function"&&k.sender.enableCancellation(He),new Promise(async(Ae,H)=>{let J=o(ye=>{Ae(ye),k.sender.cleanup(Be),We?.dispose()},"resolveWithCleanup"),ae=o(ye=>{H(ye),k.sender.cleanup(Be),We?.dispose()},"rejectWithCleanup"),pe={method:de,timerStart:Date.now(),resolve:J,reject:ae};try{await t.write(He),_.set(Be,pe)}catch(ye){throw s.error("Sending request failed."),pe.reject(new ut.ResponseError(ut.ErrorCodes.MessageWriteError,ye.message?ye.message:"Unknown reason")),ye}})},"sendRequest"),onRequest:o((F,Q)=>{me();let de=null;return h6.is(F)?(de=void 0,d=F):Yr.string(F)?(de=null,Q!==void 0&&(de=F,f.set(F,{handler:Q,type:void 0}))):Q!==void 0&&(de=F.method,f.set(F.method,{type:F,handler:Q})),{dispose:o(()=>{de!==null&&(de!==void 0?f.delete(de):d=void 0)},"dispose")}},"onRequest"),hasPendingResponse:o(()=>_.size>0,"hasPendingResponse"),trace:o(async(F,Q,de)=>{let ge=!1,De=ho.Text;de!==void 0&&(Yr.boolean(de)?ge=de:(ge=de.sendNotification||!1,De=de.traceFormat||ho.Text)),T=F,v=De,T===fr.Off?S=void 0:S=Q,ge&&!P()&&!O()&&await ct.sendNotification(x6.type,{value:fr.toString(F)})},"trace"),onError:j.event,onClose:K.event,onUnhandledNotification:V.event,onDispose:N.event,end:o(()=>{t.end()},"end"),dispose:o(()=>{if(O())return;R=Os.Disposed,N.fire(void 0);let F=new ut.ResponseError(ut.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Q of _.values())Q.reject(F);_=new Map,b=new Map,y=new Set,x=new RA.LinkedMap,Yr.func(t.dispose)&&t.dispose(),Yr.func(e.dispose)&&e.dispose()},"dispose"),listen:o(()=>{me(),Ee(),R=Os.Listening,e.listen($e)},"listen"),inspect:o(()=>{(0,PA.default)().console.log("inspect")},"inspect")};return ct.onNotification(s2.type,F=>{if(T===fr.Off||!S)return;let Q=T===fr.Verbose||T===fr.Compact;S.log(F.message,Q?F.verbose:void 0)}),ct.onNotification(Wp.type,F=>{let Q=g.get(F.token);Q?Q(F.value):Y.fire(F)}),ct}o(gee,"createMessageConnection");gt.createMessageConnection=gee});var d2=ee(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.ProgressType=ue.ProgressToken=ue.createMessageConnection=ue.NullLogger=ue.ConnectionOptions=ue.ConnectionStrategy=ue.AbstractMessageBuffer=ue.WriteableStreamMessageWriter=ue.AbstractMessageWriter=ue.MessageWriter=ue.ReadableStreamMessageReader=ue.AbstractMessageReader=ue.MessageReader=ue.SharedArrayReceiverStrategy=ue.SharedArraySenderStrategy=ue.CancellationToken=ue.CancellationTokenSource=ue.Emitter=ue.Event=ue.Disposable=ue.LRUCache=ue.Touch=ue.LinkedMap=ue.ParameterStructures=ue.NotificationType9=ue.NotificationType8=ue.NotificationType7=ue.NotificationType6=ue.NotificationType5=ue.NotificationType4=ue.NotificationType3=ue.NotificationType2=ue.NotificationType1=ue.NotificationType0=ue.NotificationType=ue.ErrorCodes=ue.ResponseError=ue.RequestType9=ue.RequestType8=ue.RequestType7=ue.RequestType6=ue.RequestType5=ue.RequestType4=ue.RequestType3=ue.RequestType2=ue.RequestType1=ue.RequestType0=ue.RequestType=ue.Message=ue.RAL=void 0;ue.MessageStrategy=ue.CancellationStrategy=ue.CancellationSenderStrategy=ue.CancellationReceiverStrategy=ue.ConnectionError=ue.ConnectionErrors=ue.LogTraceNotification=ue.SetTraceNotification=ue.TraceFormat=ue.TraceValues=ue.Trace=void 0;var Pr=z8();Object.defineProperty(ue,"Message",{enumerable:!0,get:o(function(){return Pr.Message},"get")});Object.defineProperty(ue,"RequestType",{enumerable:!0,get:o(function(){return Pr.RequestType},"get")});Object.defineProperty(ue,"RequestType0",{enumerable:!0,get:o(function(){return Pr.RequestType0},"get")});Object.defineProperty(ue,"RequestType1",{enumerable:!0,get:o(function(){return Pr.RequestType1},"get")});Object.defineProperty(ue,"RequestType2",{enumerable:!0,get:o(function(){return Pr.RequestType2},"get")});Object.defineProperty(ue,"RequestType3",{enumerable:!0,get:o(function(){return Pr.RequestType3},"get")});Object.defineProperty(ue,"RequestType4",{enumerable:!0,get:o(function(){return Pr.RequestType4},"get")});Object.defineProperty(ue,"RequestType5",{enumerable:!0,get:o(function(){return Pr.RequestType5},"get")});Object.defineProperty(ue,"RequestType6",{enumerable:!0,get:o(function(){return Pr.RequestType6},"get")});Object.defineProperty(ue,"RequestType7",{enumerable:!0,get:o(function(){return Pr.RequestType7},"get")});Object.defineProperty(ue,"RequestType8",{enumerable:!0,get:o(function(){return Pr.RequestType8},"get")});Object.defineProperty(ue,"RequestType9",{enumerable:!0,get:o(function(){return Pr.RequestType9},"get")});Object.defineProperty(ue,"ResponseError",{enumerable:!0,get:o(function(){return Pr.ResponseError},"get")});Object.defineProperty(ue,"ErrorCodes",{enumerable:!0,get:o(function(){return Pr.ErrorCodes},"get")});Object.defineProperty(ue,"NotificationType",{enumerable:!0,get:o(function(){return Pr.NotificationType},"get")});Object.defineProperty(ue,"NotificationType0",{enumerable:!0,get:o(function(){return Pr.NotificationType0},"get")});Object.defineProperty(ue,"NotificationType1",{enumerable:!0,get:o(function(){return Pr.NotificationType1},"get")});Object.defineProperty(ue,"NotificationType2",{enumerable:!0,get:o(function(){return Pr.NotificationType2},"get")});Object.defineProperty(ue,"NotificationType3",{enumerable:!0,get:o(function(){return Pr.NotificationType3},"get")});Object.defineProperty(ue,"NotificationType4",{enumerable:!0,get:o(function(){return Pr.NotificationType4},"get")});Object.defineProperty(ue,"NotificationType5",{enumerable:!0,get:o(function(){return Pr.NotificationType5},"get")});Object.defineProperty(ue,"NotificationType6",{enumerable:!0,get:o(function(){return Pr.NotificationType6},"get")});Object.defineProperty(ue,"NotificationType7",{enumerable:!0,get:o(function(){return Pr.NotificationType7},"get")});Object.defineProperty(ue,"NotificationType8",{enumerable:!0,get:o(function(){return Pr.NotificationType8},"get")});Object.defineProperty(ue,"NotificationType9",{enumerable:!0,get:o(function(){return Pr.NotificationType9},"get")});Object.defineProperty(ue,"ParameterStructures",{enumerable:!0,get:o(function(){return Pr.ParameterStructures},"get")});var b6=G8();Object.defineProperty(ue,"LinkedMap",{enumerable:!0,get:o(function(){return b6.LinkedMap},"get")});Object.defineProperty(ue,"LRUCache",{enumerable:!0,get:o(function(){return b6.LRUCache},"get")});Object.defineProperty(ue,"Touch",{enumerable:!0,get:o(function(){return b6.Touch},"get")});var hee=xA();Object.defineProperty(ue,"Disposable",{enumerable:!0,get:o(function(){return hee.Disposable},"get")});var NA=id();Object.defineProperty(ue,"Event",{enumerable:!0,get:o(function(){return NA.Event},"get")});Object.defineProperty(ue,"Emitter",{enumerable:!0,get:o(function(){return NA.Emitter},"get")});var OA=t2();Object.defineProperty(ue,"CancellationTokenSource",{enumerable:!0,get:o(function(){return OA.CancellationTokenSource},"get")});Object.defineProperty(ue,"CancellationToken",{enumerable:!0,get:o(function(){return OA.CancellationToken},"get")});var LA=yA();Object.defineProperty(ue,"SharedArraySenderStrategy",{enumerable:!0,get:o(function(){return LA.SharedArraySenderStrategy},"get")});Object.defineProperty(ue,"SharedArrayReceiverStrategy",{enumerable:!0,get:o(function(){return LA.SharedArrayReceiverStrategy},"get")});var v6=vA();Object.defineProperty(ue,"MessageReader",{enumerable:!0,get:o(function(){return v6.MessageReader},"get")});Object.defineProperty(ue,"AbstractMessageReader",{enumerable:!0,get:o(function(){return v6.AbstractMessageReader},"get")});Object.defineProperty(ue,"ReadableStreamMessageReader",{enumerable:!0,get:o(function(){return v6.ReadableStreamMessageReader},"get")});var T6=wA();Object.defineProperty(ue,"MessageWriter",{enumerable:!0,get:o(function(){return T6.MessageWriter},"get")});Object.defineProperty(ue,"AbstractMessageWriter",{enumerable:!0,get:o(function(){return T6.AbstractMessageWriter},"get")});Object.defineProperty(ue,"WriteableStreamMessageWriter",{enumerable:!0,get:o(function(){return T6.WriteableStreamMessageWriter},"get")});var xee=SA();Object.defineProperty(ue,"AbstractMessageBuffer",{enumerable:!0,get:o(function(){return xee.AbstractMessageBuffer},"get")});var Yn=kA();Object.defineProperty(ue,"ConnectionStrategy",{enumerable:!0,get:o(function(){return Yn.ConnectionStrategy},"get")});Object.defineProperty(ue,"ConnectionOptions",{enumerable:!0,get:o(function(){return Yn.ConnectionOptions},"get")});Object.defineProperty(ue,"NullLogger",{enumerable:!0,get:o(function(){return Yn.NullLogger},"get")});Object.defineProperty(ue,"createMessageConnection",{enumerable:!0,get:o(function(){return Yn.createMessageConnection},"get")});Object.defineProperty(ue,"ProgressToken",{enumerable:!0,get:o(function(){return Yn.ProgressToken},"get")});Object.defineProperty(ue,"ProgressType",{enumerable:!0,get:o(function(){return Yn.ProgressType},"get")});Object.defineProperty(ue,"Trace",{enumerable:!0,get:o(function(){return Yn.Trace},"get")});Object.defineProperty(ue,"TraceValues",{enumerable:!0,get:o(function(){return Yn.TraceValues},"get")});Object.defineProperty(ue,"TraceFormat",{enumerable:!0,get:o(function(){return Yn.TraceFormat},"get")});Object.defineProperty(ue,"SetTraceNotification",{enumerable:!0,get:o(function(){return Yn.SetTraceNotification},"get")});Object.defineProperty(ue,"LogTraceNotification",{enumerable:!0,get:o(function(){return Yn.LogTraceNotification},"get")});Object.defineProperty(ue,"ConnectionErrors",{enumerable:!0,get:o(function(){return Yn.ConnectionErrors},"get")});Object.defineProperty(ue,"ConnectionError",{enumerable:!0,get:o(function(){return Yn.ConnectionError},"get")});Object.defineProperty(ue,"CancellationReceiverStrategy",{enumerable:!0,get:o(function(){return Yn.CancellationReceiverStrategy},"get")});Object.defineProperty(ue,"CancellationSenderStrategy",{enumerable:!0,get:o(function(){return Yn.CancellationSenderStrategy},"get")});Object.defineProperty(ue,"CancellationStrategy",{enumerable:!0,get:o(function(){return Yn.CancellationStrategy},"get")});Object.defineProperty(ue,"MessageStrategy",{enumerable:!0,get:o(function(){return Yn.MessageStrategy},"get")});var _ee=vl();ue.RAL=_ee.default});var MA=ee(w6=>{"use strict";Object.defineProperty(w6,"__esModule",{value:!0});var f0=d2(),m2=class e extends f0.AbstractMessageBuffer{static{o(this,"MessageBuffer")}constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,r){return new TextEncoder().encode(t)}toString(t,r){return r==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(r).decode(t)}asNative(t,r){return r===void 0?t:t.slice(0,r)}allocNative(t){return new Uint8Array(t)}};m2.emptyBuffer=new Uint8Array(0);var C6=class{static{o(this,"ReadableStreamWrapper")}constructor(t){this.socket=t,this._onData=new f0.Emitter,this._messageListener=r=>{r.data.arrayBuffer().then(s=>{this._onData.fire(new Uint8Array(s))},()=>{(0,f0.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),f0.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),f0.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),f0.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},E6=class{static{o(this,"WritableStreamWrapper")}constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),f0.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),f0.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),f0.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,r){if(typeof t=="string"){if(r!==void 0&&r!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${r}`);this.socket.send(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},yee=new TextEncoder,FA=Object.freeze({messageBuffer:Object.freeze({create:o(e=>new m2(e),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:o((e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(yee.encode(JSON.stringify(e,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:o((e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},"decode")})}),stream:Object.freeze({asReadableStream:o(e=>new C6(e),"asReadableStream"),asWritableStream:o(e=>new E6(e),"asWritableStream")}),console,timer:Object.freeze({setTimeout(e,t,...r){let n=setTimeout(e,t,...r);return{dispose:o(()=>clearTimeout(n),"dispose")}},setImmediate(e,...t){let r=setTimeout(e,0,...t);return{dispose:o(()=>clearTimeout(r),"dispose")}},setInterval(e,t,...r){let n=setInterval(e,t,...r);return{dispose:o(()=>clearInterval(n),"dispose")}}})});function I6(){return FA}o(I6,"RIL");(function(e){function t(){f0.RAL.install(FA)}o(t,"install"),e.install=t})(I6||(I6={}));w6.default=I6});var Zc=ee(xo=>{"use strict";var bee=xo&&xo.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return t[r]},"get")}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vee=xo&&xo.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bee(t,e,r)};Object.defineProperty(xo,"__esModule",{value:!0});xo.createMessageConnection=xo.BrowserMessageWriter=xo.BrowserMessageReader=void 0;var Tee=MA();Tee.default.install();var cd=d2();vee(d2(),xo);var S6=class extends cd.AbstractMessageReader{static{o(this,"BrowserMessageReader")}constructor(t){super(),this._onData=new cd.Emitter,this._messageListener=r=>{this._onData.fire(r.data)},t.addEventListener("error",r=>this.fireError(r)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};xo.BrowserMessageReader=S6;var P6=class extends cd.AbstractMessageWriter{static{o(this,"BrowserMessageWriter")}constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",r=>this.fireError(r))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(r){return this.handleError(r,t),Promise.reject(r)}}handleError(t,r){this.errorCount++,this.fireError(t,r,this.errorCount)}end(){}};xo.BrowserMessageWriter=P6;function Cee(e,t,r,n){return r===void 0&&(r=cd.NullLogger),cd.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,cd.createMessageConnection)(e,t,r,n)}o(Cee,"createMessageConnection");xo.createMessageConnection=Cee});var R6=ee((PIe,UA)=>{"use strict";UA.exports=Zc()});var T2={};t0(T2,{AnnotatedTextEdit:()=>ba,ChangeAnnotation:()=>Qc,ChangeAnnotationIdentifier:()=>Jn,CodeAction:()=>u7,CodeActionContext:()=>c7,CodeActionKind:()=>l7,CodeActionTriggerKind:()=>Jp,CodeDescription:()=>B6,CodeLens:()=>f7,Color:()=>g2,ColorInformation:()=>N6,ColorPresentation:()=>O6,Command:()=>eu,CompletionItem:()=>X6,CompletionItemKind:()=>H6,CompletionItemLabelDetails:()=>Y6,CompletionItemTag:()=>V6,CompletionList:()=>J6,CreateFile:()=>fd,DeleteFile:()=>md,Diagnostic:()=>Gp,DiagnosticRelatedInformation:()=>h2,DiagnosticSeverity:()=>M6,DiagnosticTag:()=>U6,DocumentHighlight:()=>r7,DocumentHighlightKind:()=>t7,DocumentLink:()=>m7,DocumentSymbol:()=>a7,DocumentUri:()=>A6,EOL:()=>Eee,FoldingRange:()=>F6,FoldingRangeKind:()=>L6,FormattingOptions:()=>d7,Hover:()=>Z6,InlayHint:()=>T7,InlayHintKind:()=>b2,InlayHintLabelPart:()=>v2,InlineCompletionContext:()=>P7,InlineCompletionItem:()=>E7,InlineCompletionList:()=>I7,InlineCompletionTriggerKind:()=>w7,InlineValueContext:()=>v7,InlineValueEvaluatableExpression:()=>b7,InlineValueText:()=>_7,InlineValueVariableLookup:()=>y7,InsertReplaceEdit:()=>G6,InsertTextFormat:()=>z6,InsertTextMode:()=>K6,Location:()=>Vp,LocationLink:()=>k6,MarkedString:()=>Xp,MarkupContent:()=>pd,MarkupKind:()=>y2,OptionalVersionedTextDocumentIdentifier:()=>Yp,ParameterInformation:()=>Q6,Position:()=>Xn,Range:()=>Er,RenameFile:()=>dd,SelectedCompletionInfo:()=>S7,SelectionRange:()=>p7,SemanticTokenModifiers:()=>h7,SemanticTokenTypes:()=>g7,SemanticTokens:()=>x7,SignatureInformation:()=>e7,StringValue:()=>C7,SymbolInformation:()=>o7,SymbolKind:()=>n7,SymbolTag:()=>i7,TextDocument:()=>A7,TextDocumentEdit:()=>Kp,TextDocumentIdentifier:()=>j6,TextDocumentItem:()=>q6,TextEdit:()=>d0,URI:()=>p2,VersionedTextDocumentIdentifier:()=>W6,WorkspaceChange:()=>$6,WorkspaceEdit:()=>x2,WorkspaceFolder:()=>R7,WorkspaceSymbol:()=>s7,integer:()=>D6,uinteger:()=>zp});var A6,p2,D6,zp,Xn,Er,Vp,k6,g2,N6,O6,L6,F6,h2,M6,U6,B6,Gp,eu,d0,Qc,Jn,ba,Kp,fd,dd,md,x2,ud,_2,$6,j6,W6,Yp,q6,y2,pd,H6,z6,V6,G6,K6,Y6,X6,J6,Xp,Z6,Q6,e7,t7,r7,n7,i7,o7,s7,a7,l7,Jp,c7,u7,f7,d7,m7,p7,g7,h7,x7,_7,y7,b7,v7,b2,v2,T7,C7,E7,I7,w7,S7,P7,R7,Eee,A7,D7,Z,Zp=OV(()=>{"use strict";(function(e){function t(r){return typeof r=="string"}o(t,"is"),e.is=t})(A6||(A6={}));(function(e){function t(r){return typeof r=="string"}o(t,"is"),e.is=t})(p2||(p2={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}o(t,"is"),e.is=t})(D6||(D6={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}o(t,"is"),e.is=t})(zp||(zp={}));(function(e){function t(n,s){return n===Number.MAX_VALUE&&(n=zp.MAX_VALUE),s===Number.MAX_VALUE&&(s=zp.MAX_VALUE),{line:n,character:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Z.uinteger(s.line)&&Z.uinteger(s.character)}o(r,"is"),e.is=r})(Xn||(Xn={}));(function(e){function t(n,s,a,l){if(Z.uinteger(n)&&Z.uinteger(s)&&Z.uinteger(a)&&Z.uinteger(l))return{start:Xn.create(n,s),end:Xn.create(a,l)};if(Xn.is(n)&&Xn.is(s))return{start:n,end:s};throw new Error(`Range#create called with invalid arguments[${n}, ${s}, ${a}, ${l}]`)}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Xn.is(s.start)&&Xn.is(s.end)}o(r,"is"),e.is=r})(Er||(Er={}));(function(e){function t(n,s){return{uri:n,range:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Er.is(s.range)&&(Z.string(s.uri)||Z.undefined(s.uri))}o(r,"is"),e.is=r})(Vp||(Vp={}));(function(e){function t(n,s,a,l){return{targetUri:n,targetRange:s,targetSelectionRange:a,originSelectionRange:l}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Er.is(s.targetRange)&&Z.string(s.targetUri)&&Er.is(s.targetSelectionRange)&&(Er.is(s.originSelectionRange)||Z.undefined(s.originSelectionRange))}o(r,"is"),e.is=r})(k6||(k6={}));(function(e){function t(n,s,a,l){return{red:n,green:s,blue:a,alpha:l}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Z.numberRange(s.red,0,1)&&Z.numberRange(s.green,0,1)&&Z.numberRange(s.blue,0,1)&&Z.numberRange(s.alpha,0,1)}o(r,"is"),e.is=r})(g2||(g2={}));(function(e){function t(n,s){return{range:n,color:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Er.is(s.range)&&g2.is(s.color)}o(r,"is"),e.is=r})(N6||(N6={}));(function(e){function t(n,s,a){return{label:n,textEdit:s,additionalTextEdits:a}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Z.string(s.label)&&(Z.undefined(s.textEdit)||d0.is(s))&&(Z.undefined(s.additionalTextEdits)||Z.typedArray(s.additionalTextEdits,d0.is))}o(r,"is"),e.is=r})(O6||(O6={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(L6||(L6={}));(function(e){function t(n,s,a,l,c,u){let d={startLine:n,endLine:s};return Z.defined(a)&&(d.startCharacter=a),Z.defined(l)&&(d.endCharacter=l),Z.defined(c)&&(d.kind=c),Z.defined(u)&&(d.collapsedText=u),d}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Z.uinteger(s.startLine)&&Z.uinteger(s.startLine)&&(Z.undefined(s.startCharacter)||Z.uinteger(s.startCharacter))&&(Z.undefined(s.endCharacter)||Z.uinteger(s.endCharacter))&&(Z.undefined(s.kind)||Z.string(s.kind))}o(r,"is"),e.is=r})(F6||(F6={}));(function(e){function t(n,s){return{location:n,message:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Vp.is(s.location)&&Z.string(s.message)}o(r,"is"),e.is=r})(h2||(h2={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(M6||(M6={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(U6||(U6={}));(function(e){function t(r){let n=r;return Z.objectLiteral(n)&&Z.string(n.href)}o(t,"is"),e.is=t})(B6||(B6={}));(function(e){function t(n,s,a,l,c,u){let d={range:n,message:s};return Z.defined(a)&&(d.severity=a),Z.defined(l)&&(d.code=l),Z.defined(c)&&(d.source=c),Z.defined(u)&&(d.relatedInformation=u),d}o(t,"create"),e.create=t;function r(n){var s;let a=n;return Z.defined(a)&&Er.is(a.range)&&Z.string(a.message)&&(Z.number(a.severity)||Z.undefined(a.severity))&&(Z.integer(a.code)||Z.string(a.code)||Z.undefined(a.code))&&(Z.undefined(a.codeDescription)||Z.string((s=a.codeDescription)===null||s===void 0?void 0:s.href))&&(Z.string(a.source)||Z.undefined(a.source))&&(Z.undefined(a.relatedInformation)||Z.typedArray(a.relatedInformation,h2.is))}o(r,"is"),e.is=r})(Gp||(Gp={}));(function(e){function t(n,s,...a){let l={title:n,command:s};return Z.defined(a)&&a.length>0&&(l.arguments=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.string(s.title)&&Z.string(s.command)}o(r,"is"),e.is=r})(eu||(eu={}));(function(e){function t(a,l){return{range:a,newText:l}}o(t,"replace"),e.replace=t;function r(a,l){return{range:{start:a,end:a},newText:l}}o(r,"insert"),e.insert=r;function n(a){return{range:a,newText:""}}o(n,"del"),e.del=n;function s(a){let l=a;return Z.objectLiteral(l)&&Z.string(l.newText)&&Er.is(l.range)}o(s,"is"),e.is=s})(d0||(d0={}));(function(e){function t(n,s,a){let l={label:n};return s!==void 0&&(l.needsConfirmation=s),a!==void 0&&(l.description=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Z.string(s.label)&&(Z.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Z.string(s.description)||s.description===void 0)}o(r,"is"),e.is=r})(Qc||(Qc={}));(function(e){function t(r){let n=r;return Z.string(n)}o(t,"is"),e.is=t})(Jn||(Jn={}));(function(e){function t(a,l,c){return{range:a,newText:l,annotationId:c}}o(t,"replace"),e.replace=t;function r(a,l,c){return{range:{start:a,end:a},newText:l,annotationId:c}}o(r,"insert"),e.insert=r;function n(a,l){return{range:a,newText:"",annotationId:l}}o(n,"del"),e.del=n;function s(a){let l=a;return d0.is(l)&&(Qc.is(l.annotationId)||Jn.is(l.annotationId))}o(s,"is"),e.is=s})(ba||(ba={}));(function(e){function t(n,s){return{textDocument:n,edits:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Yp.is(s.textDocument)&&Array.isArray(s.edits)}o(r,"is"),e.is=r})(Kp||(Kp={}));(function(e){function t(n,s,a){let l={kind:"create",uri:n};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return s&&s.kind==="create"&&Z.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Z.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Z.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Jn.is(s.annotationId))}o(r,"is"),e.is=r})(fd||(fd={}));(function(e){function t(n,s,a,l){let c={kind:"rename",oldUri:n,newUri:s};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(c.options=a),l!==void 0&&(c.annotationId=l),c}o(t,"create"),e.create=t;function r(n){let s=n;return s&&s.kind==="rename"&&Z.string(s.oldUri)&&Z.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Z.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Z.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Jn.is(s.annotationId))}o(r,"is"),e.is=r})(dd||(dd={}));(function(e){function t(n,s,a){let l={kind:"delete",uri:n};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return s&&s.kind==="delete"&&Z.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Z.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Z.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Jn.is(s.annotationId))}o(r,"is"),e.is=r})(md||(md={}));(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(s=>Z.string(s.kind)?fd.is(s)||dd.is(s)||md.is(s):Kp.is(s)))}o(t,"is"),e.is=t})(x2||(x2={}));ud=class{static{o(this,"TextEditChangeImpl")}constructor(t,r){this.edits=t,this.changeAnnotations=r}insert(t,r,n){let s,a;if(n===void 0?s=d0.insert(t,r):Jn.is(n)?(a=n,s=ba.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(n),s=ba.insert(t,r,a)),this.edits.push(s),a!==void 0)return a}replace(t,r,n){let s,a;if(n===void 0?s=d0.replace(t,r):Jn.is(n)?(a=n,s=ba.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(n),s=ba.replace(t,r,a)),this.edits.push(s),a!==void 0)return a}delete(t,r){let n,s;if(r===void 0?n=d0.del(t):Jn.is(r)?(s=r,n=ba.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),n=ba.del(t,s)),this.edits.push(n),s!==void 0)return s}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},_2=class{static{o(this,"ChangeAnnotations")}constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,r){let n;if(Jn.is(t)?n=t:(n=this.nextId(),r=t),this._annotations[n]!==void 0)throw new Error(`Id ${n} is already in use.`);if(r===void 0)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=r,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},$6=class{static{o(this,"WorkspaceChange")}constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new _2(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(r=>{if(Kp.is(r)){let n=new ud(r.edits,this._changeAnnotations);this._textEditChanges[r.textDocument.uri]=n}})):t.changes&&Object.keys(t.changes).forEach(r=>{let n=new ud(t.changes[r]);this._textEditChanges[r]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(Yp.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r={uri:t.uri,version:t.version},n=this._textEditChanges[r.uri];if(!n){let s=[],a={textDocument:r,edits:s};this._workspaceEdit.documentChanges.push(a),n=new ud(s,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let r=this._textEditChanges[t];if(!r){let n=[];this._workspaceEdit.changes[t]=n,r=new ud(n),this._textEditChanges[t]=r}return r}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new _2,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;Qc.is(r)||Jn.is(r)?s=r:n=r;let a,l;if(s===void 0?a=fd.create(t,n):(l=Jn.is(s)?s:this._changeAnnotations.manage(s),a=fd.create(t,n,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l}renameFile(t,r,n,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;Qc.is(n)||Jn.is(n)?a=n:s=n;let l,c;if(a===void 0?l=dd.create(t,r,s):(c=Jn.is(a)?a:this._changeAnnotations.manage(a),l=dd.create(t,r,s,c)),this._workspaceEdit.documentChanges.push(l),c!==void 0)return c}deleteFile(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;Qc.is(r)||Jn.is(r)?s=r:n=r;let a,l;if(s===void 0?a=md.create(t,n):(l=Jn.is(s)?s:this._changeAnnotations.manage(s),a=md.create(t,n,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l}};(function(e){function t(n){return{uri:n}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.string(s.uri)}o(r,"is"),e.is=r})(j6||(j6={}));(function(e){function t(n,s){return{uri:n,version:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.string(s.uri)&&Z.integer(s.version)}o(r,"is"),e.is=r})(W6||(W6={}));(function(e){function t(n,s){return{uri:n,version:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.string(s.uri)&&(s.version===null||Z.integer(s.version))}o(r,"is"),e.is=r})(Yp||(Yp={}));(function(e){function t(n,s,a,l){return{uri:n,languageId:s,version:a,text:l}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.string(s.uri)&&Z.string(s.languageId)&&Z.integer(s.version)&&Z.string(s.text)}o(r,"is"),e.is=r})(q6||(q6={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}o(t,"is"),e.is=t})(y2||(y2={}));(function(e){function t(r){let n=r;return Z.objectLiteral(r)&&y2.is(n.kind)&&Z.string(n.value)}o(t,"is"),e.is=t})(pd||(pd={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(H6||(H6={}));(function(e){e.PlainText=1,e.Snippet=2})(z6||(z6={}));(function(e){e.Deprecated=1})(V6||(V6={}));(function(e){function t(n,s,a){return{newText:n,insert:s,replace:a}}o(t,"create"),e.create=t;function r(n){let s=n;return s&&Z.string(s.newText)&&Er.is(s.insert)&&Er.is(s.replace)}o(r,"is"),e.is=r})(G6||(G6={}));(function(e){e.asIs=1,e.adjustIndentation=2})(K6||(K6={}));(function(e){function t(r){let n=r;return n&&(Z.string(n.detail)||n.detail===void 0)&&(Z.string(n.description)||n.description===void 0)}o(t,"is"),e.is=t})(Y6||(Y6={}));(function(e){function t(r){return{label:r}}o(t,"create"),e.create=t})(X6||(X6={}));(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}o(t,"create"),e.create=t})(J6||(J6={}));(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}o(t,"fromPlainText"),e.fromPlainText=t;function r(n){let s=n;return Z.string(s)||Z.objectLiteral(s)&&Z.string(s.language)&&Z.string(s.value)}o(r,"is"),e.is=r})(Xp||(Xp={}));(function(e){function t(r){let n=r;return!!n&&Z.objectLiteral(n)&&(pd.is(n.contents)||Xp.is(n.contents)||Z.typedArray(n.contents,Xp.is))&&(r.range===void 0||Er.is(r.range))}o(t,"is"),e.is=t})(Z6||(Z6={}));(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}o(t,"create"),e.create=t})(Q6||(Q6={}));(function(e){function t(r,n,...s){let a={label:r};return Z.defined(n)&&(a.documentation=n),Z.defined(s)?a.parameters=s:a.parameters=[],a}o(t,"create"),e.create=t})(e7||(e7={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(t7||(t7={}));(function(e){function t(r,n){let s={range:r};return Z.number(n)&&(s.kind=n),s}o(t,"create"),e.create=t})(r7||(r7={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(n7||(n7={}));(function(e){e.Deprecated=1})(i7||(i7={}));(function(e){function t(r,n,s,a,l){let c={name:r,kind:n,location:{uri:a,range:s}};return l&&(c.containerName=l),c}o(t,"create"),e.create=t})(o7||(o7={}));(function(e){function t(r,n,s,a){return a!==void 0?{name:r,kind:n,location:{uri:s,range:a}}:{name:r,kind:n,location:{uri:s}}}o(t,"create"),e.create=t})(s7||(s7={}));(function(e){function t(n,s,a,l,c,u){let d={name:n,detail:s,kind:a,range:l,selectionRange:c};return u!==void 0&&(d.children=u),d}o(t,"create"),e.create=t;function r(n){let s=n;return s&&Z.string(s.name)&&Z.number(s.kind)&&Er.is(s.range)&&Er.is(s.selectionRange)&&(s.detail===void 0||Z.string(s.detail))&&(s.deprecated===void 0||Z.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}o(r,"is"),e.is=r})(a7||(a7={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(l7||(l7={}));(function(e){e.Invoked=1,e.Automatic=2})(Jp||(Jp={}));(function(e){function t(n,s,a){let l={diagnostics:n};return s!=null&&(l.only=s),a!=null&&(l.triggerKind=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.typedArray(s.diagnostics,Gp.is)&&(s.only===void 0||Z.typedArray(s.only,Z.string))&&(s.triggerKind===void 0||s.triggerKind===Jp.Invoked||s.triggerKind===Jp.Automatic)}o(r,"is"),e.is=r})(c7||(c7={}));(function(e){function t(n,s,a){let l={title:n},c=!0;return typeof s=="string"?(c=!1,l.kind=s):eu.is(s)?l.command=s:l.edit=s,c&&a!==void 0&&(l.kind=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return s&&Z.string(s.title)&&(s.diagnostics===void 0||Z.typedArray(s.diagnostics,Gp.is))&&(s.kind===void 0||Z.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||eu.is(s.command))&&(s.isPreferred===void 0||Z.boolean(s.isPreferred))&&(s.edit===void 0||x2.is(s.edit))}o(r,"is"),e.is=r})(u7||(u7={}));(function(e){function t(n,s){let a={range:n};return Z.defined(s)&&(a.data=s),a}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Er.is(s.range)&&(Z.undefined(s.command)||eu.is(s.command))}o(r,"is"),e.is=r})(f7||(f7={}));(function(e){function t(n,s){return{tabSize:n,insertSpaces:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Z.uinteger(s.tabSize)&&Z.boolean(s.insertSpaces)}o(r,"is"),e.is=r})(d7||(d7={}));(function(e){function t(n,s,a){return{range:n,target:s,data:a}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Er.is(s.range)&&(Z.undefined(s.target)||Z.string(s.target))}o(r,"is"),e.is=r})(m7||(m7={}));(function(e){function t(n,s){return{range:n,parent:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Er.is(s.range)&&(s.parent===void 0||e.is(s.parent))}o(r,"is"),e.is=r})(p7||(p7={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(g7||(g7={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(h7||(h7={}));(function(e){function t(r){let n=r;return Z.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}o(t,"is"),e.is=t})(x7||(x7={}));(function(e){function t(n,s){return{range:n,text:s}}o(t,"create"),e.create=t;function r(n){let s=n;return s!=null&&Er.is(s.range)&&Z.string(s.text)}o(r,"is"),e.is=r})(_7||(_7={}));(function(e){function t(n,s,a){return{range:n,variableName:s,caseSensitiveLookup:a}}o(t,"create"),e.create=t;function r(n){let s=n;return s!=null&&Er.is(s.range)&&Z.boolean(s.caseSensitiveLookup)&&(Z.string(s.variableName)||s.variableName===void 0)}o(r,"is"),e.is=r})(y7||(y7={}));(function(e){function t(n,s){return{range:n,expression:s}}o(t,"create"),e.create=t;function r(n){let s=n;return s!=null&&Er.is(s.range)&&(Z.string(s.expression)||s.expression===void 0)}o(r,"is"),e.is=r})(b7||(b7={}));(function(e){function t(n,s){return{frameId:n,stoppedLocation:s}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.defined(s)&&Er.is(n.stoppedLocation)}o(r,"is"),e.is=r})(v7||(v7={}));(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}o(t,"is"),e.is=t})(b2||(b2={}));(function(e){function t(n){return{value:n}}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&(s.tooltip===void 0||Z.string(s.tooltip)||pd.is(s.tooltip))&&(s.location===void 0||Vp.is(s.location))&&(s.command===void 0||eu.is(s.command))}o(r,"is"),e.is=r})(v2||(v2={}));(function(e){function t(n,s,a){let l={position:n,label:s};return a!==void 0&&(l.kind=a),l}o(t,"create"),e.create=t;function r(n){let s=n;return Z.objectLiteral(s)&&Xn.is(s.position)&&(Z.string(s.label)||Z.typedArray(s.label,v2.is))&&(s.kind===void 0||b2.is(s.kind))&&s.textEdits===void 0||Z.typedArray(s.textEdits,d0.is)&&(s.tooltip===void 0||Z.string(s.tooltip)||pd.is(s.tooltip))&&(s.paddingLeft===void 0||Z.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Z.boolean(s.paddingRight))}o(r,"is"),e.is=r})(T7||(T7={}));(function(e){function t(r){return{kind:"snippet",value:r}}o(t,"createSnippet"),e.createSnippet=t})(C7||(C7={}));(function(e){function t(r,n,s,a){return{insertText:r,filterText:n,range:s,command:a}}o(t,"create"),e.create=t})(E7||(E7={}));(function(e){function t(r){return{items:r}}o(t,"create"),e.create=t})(I7||(I7={}));(function(e){e.Invoked=0,e.Automatic=1})(w7||(w7={}));(function(e){function t(r,n){return{range:r,text:n}}o(t,"create"),e.create=t})(S7||(S7={}));(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}o(t,"create"),e.create=t})(P7||(P7={}));(function(e){function t(r){let n=r;return Z.objectLiteral(n)&&p2.is(n.uri)&&Z.string(n.name)}o(t,"is"),e.is=t})(R7||(R7={}));Eee=[`
[31] Fix | Delete
`,`\r
[32] Fix | Delete
`,"\r"];(function(e){function t(a,l,c,u){return new D7(a,l,c,u)}o(t,"create"),e.create=t;function r(a){let l=a;return!!(Z.defined(l)&&Z.string(l.uri)&&(Z.undefined(l.languageId)||Z.string(l.languageId))&&Z.uinteger(l.lineCount)&&Z.func(l.getText)&&Z.func(l.positionAt)&&Z.func(l.offsetAt))}o(r,"is"),e.is=r;function n(a,l){let c=a.getText(),u=s(l,(f,m)=>{let p=f.range.start.line-m.range.start.line;return p===0?f.range.start.character-m.range.start.character:p}),d=c.length;for(let f=u.length-1;f>=0;f--){let m=u[f],p=a.offsetAt(m.range.start),g=a.offsetAt(m.range.end);if(g<=d)c=c.substring(0,p)+m.newText+c.substring(g,c.length);else throw new Error("Overlapping edit");d=p}return c}o(n,"applyEdits"),e.applyEdits=n;function s(a,l){if(a.length<=1)return a;let c=a.length/2|0,u=a.slice(0,c),d=a.slice(c);s(u,l),s(d,l);let f=0,m=0,p=0;for(;f<u.length&&m<d.length;)l(u[f],d[m])<=0?a[p++]=u[f++]:a[p++]=d[m++];for(;f<u.length;)a[p++]=u[f++];for(;m<d.length;)a[p++]=d[m++];return a}o(s,"mergeSort")})(A7||(A7={}));D7=class{static{o(this,"FullTextDocument")}constructor(t,r,n,s){this._uri=t,this._languageId=r,this._version=n,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,n=!0;for(let s=0;s<r.length;s++){n&&(t.push(s),n=!1);let a=r.charAt(s);n=a==="\r"||a===`
[33] Fix | Delete
`,a==="\r"&&s+1<r.length&&r.charAt(s+1)===`
[34] Fix | Delete
`&&s++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,s=r.length;if(s===0)return Xn.create(0,t);for(;n<s;){let l=Math.floor((n+s)/2);r[l]>t?s=l:n=l+1}let a=n-1;return Xn.create(a,t-r[a])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],s=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,s),n)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function r(g){return typeof g<"u"}o(r,"defined"),e.defined=r;function n(g){return typeof g>"u"}o(n,"undefined"),e.undefined=n;function s(g){return g===!0||g===!1}o(s,"boolean"),e.boolean=s;function a(g){return t.call(g)==="[object String]"}o(a,"string"),e.string=a;function l(g){return t.call(g)==="[object Number]"}o(l,"number"),e.number=l;function c(g,h,x){return t.call(g)==="[object Number]"&&h<=g&&g<=x}o(c,"numberRange"),e.numberRange=c;function u(g){return t.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}o(u,"integer"),e.integer=u;function d(g){return t.call(g)==="[object Number]"&&0<=g&&g<=2147483647}o(d,"uinteger"),e.uinteger=d;function f(g){return t.call(g)==="[object Function]"}o(f,"func"),e.func=f;function m(g){return g!==null&&typeof g=="object"}o(m,"objectLiteral"),e.objectLiteral=m;function p(g,h){return Array.isArray(g)&&g.every(h)}o(p,"typedArray"),e.typedArray=p})(Z||(Z={}))});var Wr=ee(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ProtocolNotificationType=qi.ProtocolNotificationType0=qi.ProtocolRequestType=qi.ProtocolRequestType0=qi.RegistrationType=qi.MessageDirection=void 0;var gd=Zc(),BA;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(BA||(qi.MessageDirection=BA={}));var k7=class{static{o(this,"RegistrationType")}constructor(t){this.method=t}};qi.RegistrationType=k7;var N7=class extends gd.RequestType0{static{o(this,"ProtocolRequestType0")}constructor(t){super(t)}};qi.ProtocolRequestType0=N7;var O7=class extends gd.RequestType{static{o(this,"ProtocolRequestType")}constructor(t){super(t,gd.ParameterStructures.byName)}};qi.ProtocolRequestType=O7;var L7=class extends gd.NotificationType0{static{o(this,"ProtocolNotificationType0")}constructor(t){super(t)}};qi.ProtocolNotificationType0=L7;var F7=class extends gd.NotificationType{static{o(this,"ProtocolNotificationType")}constructor(t){super(t,gd.ParameterStructures.byName)}};qi.ProtocolNotificationType=F7});var C2=ee(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.objectLiteral=hn.typedArray=hn.stringArray=hn.array=hn.func=hn.error=hn.number=hn.string=hn.boolean=void 0;function Iee(e){return e===!0||e===!1}o(Iee,"boolean");hn.boolean=Iee;function $A(e){return typeof e=="string"||e instanceof String}o($A,"string");hn.string=$A;function wee(e){return typeof e=="number"||e instanceof Number}o(wee,"number");hn.number=wee;function See(e){return e instanceof Error}o(See,"error");hn.error=See;function Pee(e){return typeof e=="function"}o(Pee,"func");hn.func=Pee;function jA(e){return Array.isArray(e)}o(jA,"array");hn.array=jA;function Ree(e){return jA(e)&&e.every(t=>$A(t))}o(Ree,"stringArray");hn.stringArray=Ree;function Aee(e,t){return Array.isArray(e)&&e.every(t)}o(Aee,"typedArray");hn.typedArray=Aee;function Dee(e){return e!==null&&typeof e=="object"}o(Dee,"objectLiteral");hn.objectLiteral=Dee});var HA=ee(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.ImplementationRequest=void 0;var WA=Wr(),qA;(function(e){e.method="textDocument/implementation",e.messageDirection=WA.MessageDirection.clientToServer,e.type=new WA.ProtocolRequestType(e.method)})(qA||(E2.ImplementationRequest=qA={}))});var GA=ee(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.TypeDefinitionRequest=void 0;var zA=Wr(),VA;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=zA.MessageDirection.clientToServer,e.type=new zA.ProtocolRequestType(e.method)})(VA||(I2.TypeDefinitionRequest=VA={}))});var XA=ee(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.DidChangeWorkspaceFoldersNotification=hd.WorkspaceFoldersRequest=void 0;var w2=Wr(),KA;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=w2.MessageDirection.serverToClient,e.type=new w2.ProtocolRequestType0(e.method)})(KA||(hd.WorkspaceFoldersRequest=KA={}));var YA;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=w2.MessageDirection.clientToServer,e.type=new w2.ProtocolNotificationType(e.method)})(YA||(hd.DidChangeWorkspaceFoldersNotification=YA={}))});var QA=ee(S2=>{"use strict";Object.defineProperty(S2,"__esModule",{value:!0});S2.ConfigurationRequest=void 0;var JA=Wr(),ZA;(function(e){e.method="workspace/configuration",e.messageDirection=JA.MessageDirection.serverToClient,e.type=new JA.ProtocolRequestType(e.method)})(ZA||(S2.ConfigurationRequest=ZA={}))});var rD=ee(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.ColorPresentationRequest=xd.DocumentColorRequest=void 0;var P2=Wr(),eD;(function(e){e.method="textDocument/documentColor",e.messageDirection=P2.MessageDirection.clientToServer,e.type=new P2.ProtocolRequestType(e.method)})(eD||(xd.DocumentColorRequest=eD={}));var tD;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=P2.MessageDirection.clientToServer,e.type=new P2.ProtocolRequestType(e.method)})(tD||(xd.ColorPresentationRequest=tD={}))});var oD=ee(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.FoldingRangeRefreshRequest=_d.FoldingRangeRequest=void 0;var R2=Wr(),nD;(function(e){e.method="textDocument/foldingRange",e.messageDirection=R2.MessageDirection.clientToServer,e.type=new R2.ProtocolRequestType(e.method)})(nD||(_d.FoldingRangeRequest=nD={}));var iD;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=R2.MessageDirection.serverToClient,e.type=new R2.ProtocolRequestType0(e.method)})(iD||(_d.FoldingRangeRefreshRequest=iD={}))});var lD=ee(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0});A2.DeclarationRequest=void 0;var sD=Wr(),aD;(function(e){e.method="textDocument/declaration",e.messageDirection=sD.MessageDirection.clientToServer,e.type=new sD.ProtocolRequestType(e.method)})(aD||(A2.DeclarationRequest=aD={}))});var fD=ee(D2=>{"use strict";Object.defineProperty(D2,"__esModule",{value:!0});D2.SelectionRangeRequest=void 0;var cD=Wr(),uD;(function(e){e.method="textDocument/selectionRange",e.messageDirection=cD.MessageDirection.clientToServer,e.type=new cD.ProtocolRequestType(e.method)})(uD||(D2.SelectionRangeRequest=uD={}))});var gD=ee(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.WorkDoneProgressCancelNotification=El.WorkDoneProgressCreateRequest=El.WorkDoneProgress=void 0;var kee=Zc(),k2=Wr(),dD;(function(e){e.type=new kee.ProgressType;function t(r){return r===e.type}o(t,"is"),e.is=t})(dD||(El.WorkDoneProgress=dD={}));var mD;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=k2.MessageDirection.serverToClient,e.type=new k2.ProtocolRequestType(e.method)})(mD||(El.WorkDoneProgressCreateRequest=mD={}));var pD;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=k2.MessageDirection.clientToServer,e.type=new k2.ProtocolNotificationType(e.method)})(pD||(El.WorkDoneProgressCancelNotification=pD={}))});var yD=ee(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.CallHierarchyOutgoingCallsRequest=Il.CallHierarchyIncomingCallsRequest=Il.CallHierarchyPrepareRequest=void 0;var yd=Wr(),hD;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=yd.MessageDirection.clientToServer,e.type=new yd.ProtocolRequestType(e.method)})(hD||(Il.CallHierarchyPrepareRequest=hD={}));var xD;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=yd.MessageDirection.clientToServer,e.type=new yd.ProtocolRequestType(e.method)})(xD||(Il.CallHierarchyIncomingCallsRequest=xD={}));var _D;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=yd.MessageDirection.clientToServer,e.type=new yd.ProtocolRequestType(e.method)})(_D||(Il.CallHierarchyOutgoingCallsRequest=_D={}))});var ID=ee(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.SemanticTokensRefreshRequest=Hi.SemanticTokensRangeRequest=Hi.SemanticTokensDeltaRequest=Hi.SemanticTokensRequest=Hi.SemanticTokensRegistrationType=Hi.TokenFormat=void 0;var va=Wr(),bD;(function(e){e.Relative="relative"})(bD||(Hi.TokenFormat=bD={}));var Qp;(function(e){e.method="textDocument/semanticTokens",e.type=new va.RegistrationType(e.method)})(Qp||(Hi.SemanticTokensRegistrationType=Qp={}));var vD;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=va.MessageDirection.clientToServer,e.type=new va.ProtocolRequestType(e.method),e.registrationMethod=Qp.method})(vD||(Hi.SemanticTokensRequest=vD={}));var TD;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=va.MessageDirection.clientToServer,e.type=new va.ProtocolRequestType(e.method),e.registrationMethod=Qp.method})(TD||(Hi.SemanticTokensDeltaRequest=TD={}));var CD;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=va.MessageDirection.clientToServer,e.type=new va.ProtocolRequestType(e.method),e.registrationMethod=Qp.method})(CD||(Hi.SemanticTokensRangeRequest=CD={}));var ED;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=va.MessageDirection.serverToClient,e.type=new va.ProtocolRequestType0(e.method)})(ED||(Hi.SemanticTokensRefreshRequest=ED={}))});var PD=ee(N2=>{"use strict";Object.defineProperty(N2,"__esModule",{value:!0});N2.ShowDocumentRequest=void 0;var wD=Wr(),SD;(function(e){e.method="window/showDocument",e.messageDirection=wD.MessageDirection.serverToClient,e.type=new wD.ProtocolRequestType(e.method)})(SD||(N2.ShowDocumentRequest=SD={}))});var DD=ee(O2=>{"use strict";Object.defineProperty(O2,"__esModule",{value:!0});O2.LinkedEditingRangeRequest=void 0;var RD=Wr(),AD;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=RD.MessageDirection.clientToServer,e.type=new RD.ProtocolRequestType(e.method)})(AD||(O2.LinkedEditingRangeRequest=AD={}))});var BD=ee(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WillDeleteFilesRequest=di.DidDeleteFilesNotification=di.DidRenameFilesNotification=di.WillRenameFilesRequest=di.DidCreateFilesNotification=di.WillCreateFilesRequest=di.FileOperationPatternKind=void 0;var Go=Wr(),kD;(function(e){e.file="file",e.folder="folder"})(kD||(di.FileOperationPatternKind=kD={}));var ND;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolRequestType(e.method)})(ND||(di.WillCreateFilesRequest=ND={}));var OD;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolNotificationType(e.method)})(OD||(di.DidCreateFilesNotification=OD={}));var LD;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolRequestType(e.method)})(LD||(di.WillRenameFilesRequest=LD={}));var FD;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolNotificationType(e.method)})(FD||(di.DidRenameFilesNotification=FD={}));var MD;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolNotificationType(e.method)})(MD||(di.DidDeleteFilesNotification=MD={}));var UD;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Go.MessageDirection.clientToServer,e.type=new Go.ProtocolRequestType(e.method)})(UD||(di.WillDeleteFilesRequest=UD={}))});var HD=ee(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.MonikerRequest=wl.MonikerKind=wl.UniquenessLevel=void 0;var $D=Wr(),jD;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(jD||(wl.UniquenessLevel=jD={}));var WD;(function(e){e.$import="import",e.$export="export",e.local="local"})(WD||(wl.MonikerKind=WD={}));var qD;(function(e){e.method="textDocument/moniker",e.messageDirection=$D.MessageDirection.clientToServer,e.type=new $D.ProtocolRequestType(e.method)})(qD||(wl.MonikerRequest=qD={}))});var KD=ee(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.TypeHierarchySubtypesRequest=Sl.TypeHierarchySupertypesRequest=Sl.TypeHierarchyPrepareRequest=void 0;var bd=Wr(),zD;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=bd.MessageDirection.clientToServer,e.type=new bd.ProtocolRequestType(e.method)})(zD||(Sl.TypeHierarchyPrepareRequest=zD={}));var VD;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=bd.MessageDirection.clientToServer,e.type=new bd.ProtocolRequestType(e.method)})(VD||(Sl.TypeHierarchySupertypesRequest=VD={}));var GD;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=bd.MessageDirection.clientToServer,e.type=new bd.ProtocolRequestType(e.method)})(GD||(Sl.TypeHierarchySubtypesRequest=GD={}))});var JD=ee(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.InlineValueRefreshRequest=vd.InlineValueRequest=void 0;var L2=Wr(),YD;(function(e){e.method="textDocument/inlineValue",e.messageDirection=L2.MessageDirection.clientToServer,e.type=new L2.ProtocolRequestType(e.method)})(YD||(vd.InlineValueRequest=YD={}));var XD;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=L2.MessageDirection.serverToClient,e.type=new L2.ProtocolRequestType0(e.method)})(XD||(vd.InlineValueRefreshRequest=XD={}))});var tk=ee(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.InlayHintRefreshRequest=Pl.InlayHintResolveRequest=Pl.InlayHintRequest=void 0;var Td=Wr(),ZD;(function(e){e.method="textDocument/inlayHint",e.messageDirection=Td.MessageDirection.clientToServer,e.type=new Td.ProtocolRequestType(e.method)})(ZD||(Pl.InlayHintRequest=ZD={}));var QD;(function(e){e.method="inlayHint/resolve",e.messageDirection=Td.MessageDirection.clientToServer,e.type=new Td.ProtocolRequestType(e.method)})(QD||(Pl.InlayHintResolveRequest=QD={}));var ek;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=Td.MessageDirection.serverToClient,e.type=new Td.ProtocolRequestType0(e.method)})(ek||(Pl.InlayHintRefreshRequest=ek={}))});var lk=ee(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DiagnosticRefreshRequest=Ko.WorkspaceDiagnosticRequest=Ko.DocumentDiagnosticRequest=Ko.DocumentDiagnosticReportKind=Ko.DiagnosticServerCancellationData=void 0;var ak=Zc(),Nee=C2(),Cd=Wr(),rk;(function(e){function t(r){let n=r;return n&&Nee.boolean(n.retriggerRequest)}o(t,"is"),e.is=t})(rk||(Ko.DiagnosticServerCancellationData=rk={}));var nk;(function(e){e.Full="full",e.Unchanged="unchanged"})(nk||(Ko.DocumentDiagnosticReportKind=nk={}));var ik;(function(e){e.method="textDocument/diagnostic",e.messageDirection=Cd.MessageDirection.clientToServer,e.type=new Cd.ProtocolRequestType(e.method),e.partialResult=new ak.ProgressType})(ik||(Ko.DocumentDiagnosticRequest=ik={}));var ok;(function(e){e.method="workspace/diagnostic",e.messageDirection=Cd.MessageDirection.clientToServer,e.type=new Cd.ProtocolRequestType(e.method),e.partialResult=new ak.ProgressType})(ok||(Ko.WorkspaceDiagnosticRequest=ok={}));var sk;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=Cd.MessageDirection.serverToClient,e.type=new Cd.ProtocolRequestType0(e.method)})(sk||(Ko.DiagnosticRefreshRequest=sk={}))});var gk=ee(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.DidCloseNotebookDocumentNotification=Zr.DidSaveNotebookDocumentNotification=Zr.DidChangeNotebookDocumentNotification=Zr.NotebookCellArrayChange=Zr.DidOpenNotebookDocumentNotification=Zr.NotebookDocumentSyncRegistrationType=Zr.NotebookDocument=Zr.NotebookCell=Zr.ExecutionSummary=Zr.NotebookCellKind=void 0;var e1=(Zp(),Rh(T2)),Ls=C2(),m0=Wr(),M7;(function(e){e.Markup=1,e.Code=2;function t(r){return r===1||r===2}o(t,"is"),e.is=t})(M7||(Zr.NotebookCellKind=M7={}));var U7;(function(e){function t(s,a){let l={executionOrder:s};return(a===!0||a===!1)&&(l.success=a),l}o(t,"create"),e.create=t;function r(s){let a=s;return Ls.objectLiteral(a)&&e1.uinteger.is(a.executionOrder)&&(a.success===void 0||Ls.boolean(a.success))}o(r,"is"),e.is=r;function n(s,a){return s===a?!0:s==null||a===null||a===void 0?!1:s.executionOrder===a.executionOrder&&s.success===a.success}o(n,"equals"),e.equals=n})(U7||(Zr.ExecutionSummary=U7={}));var F2;(function(e){function t(a,l){return{kind:a,document:l}}o(t,"create"),e.create=t;function r(a){let l=a;return Ls.objectLiteral(l)&&M7.is(l.kind)&&e1.DocumentUri.is(l.document)&&(l.metadata===void 0||Ls.objectLiteral(l.metadata))}o(r,"is"),e.is=r;function n(a,l){let c=new Set;return a.document!==l.document&&c.add("document"),a.kind!==l.kind&&c.add("kind"),a.executionSummary!==l.executionSummary&&c.add("executionSummary"),(a.metadata!==void 0||l.metadata!==void 0)&&!s(a.metadata,l.metadata)&&c.add("metadata"),(a.executionSummary!==void 0||l.executionSummary!==void 0)&&!U7.equals(a.executionSummary,l.executionSummary)&&c.add("executionSummary"),c}o(n,"diff"),e.diff=n;function s(a,l){if(a===l)return!0;if(a==null||l===null||l===void 0||typeof a!=typeof l||typeof a!="object")return!1;let c=Array.isArray(a),u=Array.isArray(l);if(c!==u)return!1;if(c&&u){if(a.length!==l.length)return!1;for(let d=0;d<a.length;d++)if(!s(a[d],l[d]))return!1}if(Ls.objectLiteral(a)&&Ls.objectLiteral(l)){let d=Object.keys(a),f=Object.keys(l);if(d.length!==f.length||(d.sort(),f.sort(),!s(d,f)))return!1;for(let m=0;m<d.length;m++){let p=d[m];if(!s(a[p],l[p]))return!1}}return!0}o(s,"equalsMetadata")})(F2||(Zr.NotebookCell=F2={}));var ck;(function(e){function t(n,s,a,l){return{uri:n,notebookType:s,version:a,cells:l}}o(t,"create"),e.create=t;function r(n){let s=n;return Ls.objectLiteral(s)&&Ls.string(s.uri)&&e1.integer.is(s.version)&&Ls.typedArray(s.cells,F2.is)}o(r,"is"),e.is=r})(ck||(Zr.NotebookDocument=ck={}));var Ed;(function(e){e.method="notebookDocument/sync",e.messageDirection=m0.MessageDirection.clientToServer,e.type=new m0.RegistrationType(e.method)})(Ed||(Zr.NotebookDocumentSyncRegistrationType=Ed={}));var uk;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=m0.MessageDirection.clientToServer,e.type=new m0.ProtocolNotificationType(e.method),e.registrationMethod=Ed.method})(uk||(Zr.DidOpenNotebookDocumentNotification=uk={}));var fk;(function(e){function t(n){let s=n;return Ls.objectLiteral(s)&&e1.uinteger.is(s.start)&&e1.uinteger.is(s.deleteCount)&&(s.cells===void 0||Ls.typedArray(s.cells,F2.is))}o(t,"is"),e.is=t;function r(n,s,a){let l={start:n,deleteCount:s};return a!==void 0&&(l.cells=a),l}o(r,"create"),e.create=r})(fk||(Zr.NotebookCellArrayChange=fk={}));var dk;(function(e){e.method="notebookDocument/didChange",e.messageDirection=m0.MessageDirection.clientToServer,e.type=new m0.ProtocolNotificationType(e.method),e.registrationMethod=Ed.method})(dk||(Zr.DidChangeNotebookDocumentNotification=dk={}));var mk;(function(e){e.method="notebookDocument/didSave",e.messageDirection=m0.MessageDirection.clientToServer,e.type=new m0.ProtocolNotificationType(e.method),e.registrationMethod=Ed.method})(mk||(Zr.DidSaveNotebookDocumentNotification=mk={}));var pk;(function(e){e.method="notebookDocument/didClose",e.messageDirection=m0.MessageDirection.clientToServer,e.type=new m0.ProtocolNotificationType(e.method),e.registrationMethod=Ed.method})(pk||(Zr.DidCloseNotebookDocumentNotification=pk={}))});var _k=ee(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0});M2.InlineCompletionRequest=void 0;var hk=Wr(),xk;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=hk.MessageDirection.clientToServer,e.type=new hk.ProtocolRequestType(e.method)})(xk||(M2.InlineCompletionRequest=xk={}))});var DN=ee(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.WorkspaceSymbolRequest=B.CodeActionResolveRequest=B.CodeActionRequest=B.DocumentSymbolRequest=B.DocumentHighlightRequest=B.ReferencesRequest=B.DefinitionRequest=B.SignatureHelpRequest=B.SignatureHelpTriggerKind=B.HoverRequest=B.CompletionResolveRequest=B.CompletionRequest=B.CompletionTriggerKind=B.PublishDiagnosticsNotification=B.WatchKind=B.RelativePattern=B.FileChangeType=B.DidChangeWatchedFilesNotification=B.WillSaveTextDocumentWaitUntilRequest=B.WillSaveTextDocumentNotification=B.TextDocumentSaveReason=B.DidSaveTextDocumentNotification=B.DidCloseTextDocumentNotification=B.DidChangeTextDocumentNotification=B.TextDocumentContentChangeEvent=B.DidOpenTextDocumentNotification=B.TextDocumentSyncKind=B.TelemetryEventNotification=B.LogMessageNotification=B.ShowMessageRequest=B.ShowMessageNotification=B.MessageType=B.DidChangeConfigurationNotification=B.ExitNotification=B.ShutdownRequest=B.InitializedNotification=B.InitializeErrorCodes=B.InitializeRequest=B.WorkDoneProgressOptions=B.TextDocumentRegistrationOptions=B.StaticRegistrationOptions=B.PositionEncodingKind=B.FailureHandlingKind=B.ResourceOperationKind=B.UnregistrationRequest=B.RegistrationRequest=B.DocumentSelector=B.NotebookCellTextDocumentFilter=B.NotebookDocumentFilter=B.TextDocumentFilter=void 0;B.MonikerRequest=B.MonikerKind=B.UniquenessLevel=B.WillDeleteFilesRequest=B.DidDeleteFilesNotification=B.WillRenameFilesRequest=B.DidRenameFilesNotification=B.WillCreateFilesRequest=B.DidCreateFilesNotification=B.FileOperationPatternKind=B.LinkedEditingRangeRequest=B.ShowDocumentRequest=B.SemanticTokensRegistrationType=B.SemanticTokensRefreshRequest=B.SemanticTokensRangeRequest=B.SemanticTokensDeltaRequest=B.SemanticTokensRequest=B.TokenFormat=B.CallHierarchyPrepareRequest=B.CallHierarchyOutgoingCallsRequest=B.CallHierarchyIncomingCallsRequest=B.WorkDoneProgressCancelNotification=B.WorkDoneProgressCreateRequest=B.WorkDoneProgress=B.SelectionRangeRequest=B.DeclarationRequest=B.FoldingRangeRefreshRequest=B.FoldingRangeRequest=B.ColorPresentationRequest=B.DocumentColorRequest=B.ConfigurationRequest=B.DidChangeWorkspaceFoldersNotification=B.WorkspaceFoldersRequest=B.TypeDefinitionRequest=B.ImplementationRequest=B.ApplyWorkspaceEditRequest=B.ExecuteCommandRequest=B.PrepareRenameRequest=B.RenameRequest=B.PrepareSupportDefaultBehavior=B.DocumentOnTypeFormattingRequest=B.DocumentRangesFormattingRequest=B.DocumentRangeFormattingRequest=B.DocumentFormattingRequest=B.DocumentLinkResolveRequest=B.DocumentLinkRequest=B.CodeLensRefreshRequest=B.CodeLensResolveRequest=B.CodeLensRequest=B.WorkspaceSymbolResolveRequest=void 0;B.InlineCompletionRequest=B.DidCloseNotebookDocumentNotification=B.DidSaveNotebookDocumentNotification=B.DidChangeNotebookDocumentNotification=B.NotebookCellArrayChange=B.DidOpenNotebookDocumentNotification=B.NotebookDocumentSyncRegistrationType=B.NotebookDocument=B.NotebookCell=B.ExecutionSummary=B.NotebookCellKind=B.DiagnosticRefreshRequest=B.WorkspaceDiagnosticRequest=B.DocumentDiagnosticRequest=B.DocumentDiagnosticReportKind=B.DiagnosticServerCancellationData=B.InlayHintRefreshRequest=B.InlayHintResolveRequest=B.InlayHintRequest=B.InlineValueRefreshRequest=B.InlineValueRequest=B.TypeHierarchySupertypesRequest=B.TypeHierarchySubtypesRequest=B.TypeHierarchyPrepareRequest=void 0;var ve=Wr(),yk=(Zp(),Rh(T2)),Fn=C2(),Oee=HA();Object.defineProperty(B,"ImplementationRequest",{enumerable:!0,get:o(function(){return Oee.ImplementationRequest},"get")});var Lee=GA();Object.defineProperty(B,"TypeDefinitionRequest",{enumerable:!0,get:o(function(){return Lee.TypeDefinitionRequest},"get")});var SN=XA();Object.defineProperty(B,"WorkspaceFoldersRequest",{enumerable:!0,get:o(function(){return SN.WorkspaceFoldersRequest},"get")});Object.defineProperty(B,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:o(function(){return SN.DidChangeWorkspaceFoldersNotification},"get")});var Fee=QA();Object.defineProperty(B,"ConfigurationRequest",{enumerable:!0,get:o(function(){return Fee.ConfigurationRequest},"get")});var PN=rD();Object.defineProperty(B,"DocumentColorRequest",{enumerable:!0,get:o(function(){return PN.DocumentColorRequest},"get")});Object.defineProperty(B,"ColorPresentationRequest",{enumerable:!0,get:o(function(){return PN.ColorPresentationRequest},"get")});var RN=oD();Object.defineProperty(B,"FoldingRangeRequest",{enumerable:!0,get:o(function(){return RN.FoldingRangeRequest},"get")});Object.defineProperty(B,"FoldingRangeRefreshRequest",{enumerable:!0,get:o(function(){return RN.FoldingRangeRefreshRequest},"get")});var Mee=lD();Object.defineProperty(B,"DeclarationRequest",{enumerable:!0,get:o(function(){return Mee.DeclarationRequest},"get")});var Uee=fD();Object.defineProperty(B,"SelectionRangeRequest",{enumerable:!0,get:o(function(){return Uee.SelectionRangeRequest},"get")});var q7=gD();Object.defineProperty(B,"WorkDoneProgress",{enumerable:!0,get:o(function(){return q7.WorkDoneProgress},"get")});Object.defineProperty(B,"WorkDoneProgressCreateRequest",{enumerable:!0,get:o(function(){return q7.WorkDoneProgressCreateRequest},"get")});Object.defineProperty(B,"WorkDoneProgressCancelNotification",{enumerable:!0,get:o(function(){return q7.WorkDoneProgressCancelNotification},"get")});var H7=yD();Object.defineProperty(B,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:o(function(){return H7.CallHierarchyIncomingCallsRequest},"get")});Object.defineProperty(B,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:o(function(){return H7.CallHierarchyOutgoingCallsRequest},"get")});Object.defineProperty(B,"CallHierarchyPrepareRequest",{enumerable:!0,get:o(function(){return H7.CallHierarchyPrepareRequest},"get")});var Id=ID();Object.defineProperty(B,"TokenFormat",{enumerable:!0,get:o(function(){return Id.TokenFormat},"get")});Object.defineProperty(B,"SemanticTokensRequest",{enumerable:!0,get:o(function(){return Id.SemanticTokensRequest},"get")});Object.defineProperty(B,"SemanticTokensDeltaRequest",{enumerable:!0,get:o(function(){return Id.SemanticTokensDeltaRequest},"get")});Object.defineProperty(B,"SemanticTokensRangeRequest",{enumerable:!0,get:o(function(){return Id.SemanticTokensRangeRequest},"get")});Object.defineProperty(B,"SemanticTokensRefreshRequest",{enumerable:!0,get:o(function(){return Id.SemanticTokensRefreshRequest},"get")});Object.defineProperty(B,"SemanticTokensRegistrationType",{enumerable:!0,get:o(function(){return Id.SemanticTokensRegistrationType},"get")});var Bee=PD();Object.defineProperty(B,"ShowDocumentRequest",{enumerable:!0,get:o(function(){return Bee.ShowDocumentRequest},"get")});var $ee=DD();Object.defineProperty(B,"LinkedEditingRangeRequest",{enumerable:!0,get:o(function(){return $ee.LinkedEditingRangeRequest},"get")});var tu=BD();Object.defineProperty(B,"FileOperationPatternKind",{enumerable:!0,get:o(function(){return tu.FileOperationPatternKind},"get")});Object.defineProperty(B,"DidCreateFilesNotification",{enumerable:!0,get:o(function(){return tu.DidCreateFilesNotification},"get")});Object.defineProperty(B,"WillCreateFilesRequest",{enumerable:!0,get:o(function(){return tu.WillCreateFilesRequest},"get")});Object.defineProperty(B,"DidRenameFilesNotification",{enumerable:!0,get:o(function(){return tu.DidRenameFilesNotification},"get")});Object.defineProperty(B,"WillRenameFilesRequest",{enumerable:!0,get:o(function(){return tu.WillRenameFilesRequest},"get")});Object.defineProperty(B,"DidDeleteFilesNotification",{enumerable:!0,get:o(function(){return tu.DidDeleteFilesNotification},"get")});Object.defineProperty(B,"WillDeleteFilesRequest",{enumerable:!0,get:o(function(){return tu.WillDeleteFilesRequest},"get")});var z7=HD();Object.defineProperty(B,"UniquenessLevel",{enumerable:!0,get:o(function(){return z7.UniquenessLevel},"get")});Object.defineProperty(B,"MonikerKind",{enumerable:!0,get:o(function(){return z7.MonikerKind},"get")});Object.defineProperty(B,"MonikerRequest",{enumerable:!0,get:o(function(){return z7.MonikerRequest},"get")});var V7=KD();Object.defineProperty(B,"TypeHierarchyPrepareRequest",{enumerable:!0,get:o(function(){return V7.TypeHierarchyPrepareRequest},"get")});Object.defineProperty(B,"TypeHierarchySubtypesRequest",{enumerable:!0,get:o(function(){return V7.TypeHierarchySubtypesRequest},"get")});Object.defineProperty(B,"TypeHierarchySupertypesRequest",{enumerable:!0,get:o(function(){return V7.TypeHierarchySupertypesRequest},"get")});var AN=JD();Object.defineProperty(B,"InlineValueRequest",{enumerable:!0,get:o(function(){return AN.InlineValueRequest},"get")});Object.defineProperty(B,"InlineValueRefreshRequest",{enumerable:!0,get:o(function(){return AN.InlineValueRefreshRequest},"get")});var G7=tk();Object.defineProperty(B,"InlayHintRequest",{enumerable:!0,get:o(function(){return G7.InlayHintRequest},"get")});Object.defineProperty(B,"InlayHintResolveRequest",{enumerable:!0,get:o(function(){return G7.InlayHintResolveRequest},"get")});Object.defineProperty(B,"InlayHintRefreshRequest",{enumerable:!0,get:o(function(){return G7.InlayHintRefreshRequest},"get")});var t1=lk();Object.defineProperty(B,"DiagnosticServerCancellationData",{enumerable:!0,get:o(function(){return t1.DiagnosticServerCancellationData},"get")});Object.defineProperty(B,"DocumentDiagnosticReportKind",{enumerable:!0,get:o(function(){return t1.DocumentDiagnosticReportKind},"get")});Object.defineProperty(B,"DocumentDiagnosticRequest",{enumerable:!0,get:o(function(){return t1.DocumentDiagnosticRequest},"get")});Object.defineProperty(B,"WorkspaceDiagnosticRequest",{enumerable:!0,get:o(function(){return t1.WorkspaceDiagnosticRequest},"get")});Object.defineProperty(B,"DiagnosticRefreshRequest",{enumerable:!0,get:o(function(){return t1.DiagnosticRefreshRequest},"get")});var p0=gk();Object.defineProperty(B,"NotebookCellKind",{enumerable:!0,get:o(function(){return p0.NotebookCellKind},"get")});Object.defineProperty(B,"ExecutionSummary",{enumerable:!0,get:o(function(){return p0.ExecutionSummary},"get")});Object.defineProperty(B,"NotebookCell",{enumerable:!0,get:o(function(){return p0.NotebookCell},"get")});Object.defineProperty(B,"NotebookDocument",{enumerable:!0,get:o(function(){return p0.NotebookDocument},"get")});Object.defineProperty(B,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:o(function(){return p0.NotebookDocumentSyncRegistrationType},"get")});Object.defineProperty(B,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:o(function(){return p0.DidOpenNotebookDocumentNotification},"get")});Object.defineProperty(B,"NotebookCellArrayChange",{enumerable:!0,get:o(function(){return p0.NotebookCellArrayChange},"get")});Object.defineProperty(B,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:o(function(){return p0.DidChangeNotebookDocumentNotification},"get")});Object.defineProperty(B,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:o(function(){return p0.DidSaveNotebookDocumentNotification},"get")});Object.defineProperty(B,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:o(function(){return p0.DidCloseNotebookDocumentNotification},"get")});var jee=_k();Object.defineProperty(B,"InlineCompletionRequest",{enumerable:!0,get:o(function(){return jee.InlineCompletionRequest},"get")});var B7;(function(e){function t(r){let n=r;return Fn.string(n)||Fn.string(n.language)||Fn.string(n.scheme)||Fn.string(n.pattern)}o(t,"is"),e.is=t})(B7||(B.TextDocumentFilter=B7={}));var $7;(function(e){function t(r){let n=r;return Fn.objectLiteral(n)&&(Fn.string(n.notebookType)||Fn.string(n.scheme)||Fn.string(n.pattern))}o(t,"is"),e.is=t})($7||(B.NotebookDocumentFilter=$7={}));var j7;(function(e){function t(r){let n=r;return Fn.objectLiteral(n)&&(Fn.string(n.notebook)||$7.is(n.notebook))&&(n.language===void 0||Fn.string(n.language))}o(t,"is"),e.is=t})(j7||(B.NotebookCellTextDocumentFilter=j7={}));var W7;(function(e){function t(r){if(!Array.isArray(r))return!1;for(let n of r)if(!Fn.string(n)&&!B7.is(n)&&!j7.is(n))return!1;return!0}o(t,"is"),e.is=t})(W7||(B.DocumentSelector=W7={}));var bk;(function(e){e.method="client/registerCapability",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolRequestType(e.method)})(bk||(B.RegistrationRequest=bk={}));var vk;(function(e){e.method="client/unregisterCapability",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolRequestType(e.method)})(vk||(B.UnregistrationRequest=vk={}));var Tk;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Tk||(B.ResourceOperationKind=Tk={}));var Ck;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Ck||(B.FailureHandlingKind=Ck={}));var Ek;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Ek||(B.PositionEncodingKind=Ek={}));var Ik;(function(e){function t(r){let n=r;return n&&Fn.string(n.id)&&n.id.length>0}o(t,"hasId"),e.hasId=t})(Ik||(B.StaticRegistrationOptions=Ik={}));var wk;(function(e){function t(r){let n=r;return n&&(n.documentSelector===null||W7.is(n.documentSelector))}o(t,"is"),e.is=t})(wk||(B.TextDocumentRegistrationOptions=wk={}));var Sk;(function(e){function t(n){let s=n;return Fn.objectLiteral(s)&&(s.workDoneProgress===void 0||Fn.boolean(s.workDoneProgress))}o(t,"is"),e.is=t;function r(n){let s=n;return s&&Fn.boolean(s.workDoneProgress)}o(r,"hasWorkDoneProgress"),e.hasWorkDoneProgress=r})(Sk||(B.WorkDoneProgressOptions=Sk={}));var Pk;(function(e){e.method="initialize",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(Pk||(B.InitializeRequest=Pk={}));var Rk;(function(e){e.unknownProtocolVersion=1})(Rk||(B.InitializeErrorCodes=Rk={}));var Ak;(function(e){e.method="initialized",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Ak||(B.InitializedNotification=Ak={}));var Dk;(function(e){e.method="shutdown",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType0(e.method)})(Dk||(B.ShutdownRequest=Dk={}));var kk;(function(e){e.method="exit",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType0(e.method)})(kk||(B.ExitNotification=kk={}));var Nk;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Nk||(B.DidChangeConfigurationNotification=Nk={}));var Ok;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Ok||(B.MessageType=Ok={}));var Lk;(function(e){e.method="window/showMessage",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolNotificationType(e.method)})(Lk||(B.ShowMessageNotification=Lk={}));var Fk;(function(e){e.method="window/showMessageRequest",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolRequestType(e.method)})(Fk||(B.ShowMessageRequest=Fk={}));var Mk;(function(e){e.method="window/logMessage",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolNotificationType(e.method)})(Mk||(B.LogMessageNotification=Mk={}));var Uk;(function(e){e.method="telemetry/event",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolNotificationType(e.method)})(Uk||(B.TelemetryEventNotification=Uk={}));var Bk;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Bk||(B.TextDocumentSyncKind=Bk={}));var $k;(function(e){e.method="textDocument/didOpen",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})($k||(B.DidOpenTextDocumentNotification=$k={}));var jk;(function(e){function t(n){let s=n;return s!=null&&typeof s.text=="string"&&s.range!==void 0&&(s.rangeLength===void 0||typeof s.rangeLength=="number")}o(t,"isIncremental"),e.isIncremental=t;function r(n){let s=n;return s!=null&&typeof s.text=="string"&&s.range===void 0&&s.rangeLength===void 0}o(r,"isFull"),e.isFull=r})(jk||(B.TextDocumentContentChangeEvent=jk={}));var Wk;(function(e){e.method="textDocument/didChange",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Wk||(B.DidChangeTextDocumentNotification=Wk={}));var qk;(function(e){e.method="textDocument/didClose",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(qk||(B.DidCloseTextDocumentNotification=qk={}));var Hk;(function(e){e.method="textDocument/didSave",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Hk||(B.DidSaveTextDocumentNotification=Hk={}));var zk;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(zk||(B.TextDocumentSaveReason=zk={}));var Vk;(function(e){e.method="textDocument/willSave",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Vk||(B.WillSaveTextDocumentNotification=Vk={}));var Gk;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(Gk||(B.WillSaveTextDocumentWaitUntilRequest=Gk={}));var Kk;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolNotificationType(e.method)})(Kk||(B.DidChangeWatchedFilesNotification=Kk={}));var Yk;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Yk||(B.FileChangeType=Yk={}));var Xk;(function(e){function t(r){let n=r;return Fn.objectLiteral(n)&&(yk.URI.is(n.baseUri)||yk.WorkspaceFolder.is(n.baseUri))&&Fn.string(n.pattern)}o(t,"is"),e.is=t})(Xk||(B.RelativePattern=Xk={}));var Jk;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Jk||(B.WatchKind=Jk={}));var Zk;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolNotificationType(e.method)})(Zk||(B.PublishDiagnosticsNotification=Zk={}));var Qk;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Qk||(B.CompletionTriggerKind=Qk={}));var eN;(function(e){e.method="textDocument/completion",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(eN||(B.CompletionRequest=eN={}));var tN;(function(e){e.method="completionItem/resolve",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(tN||(B.CompletionResolveRequest=tN={}));var rN;(function(e){e.method="textDocument/hover",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(rN||(B.HoverRequest=rN={}));var nN;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(nN||(B.SignatureHelpTriggerKind=nN={}));var iN;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(iN||(B.SignatureHelpRequest=iN={}));var oN;(function(e){e.method="textDocument/definition",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(oN||(B.DefinitionRequest=oN={}));var sN;(function(e){e.method="textDocument/references",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(sN||(B.ReferencesRequest=sN={}));var aN;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(aN||(B.DocumentHighlightRequest=aN={}));var lN;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(lN||(B.DocumentSymbolRequest=lN={}));var cN;(function(e){e.method="textDocument/codeAction",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(cN||(B.CodeActionRequest=cN={}));var uN;(function(e){e.method="codeAction/resolve",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(uN||(B.CodeActionResolveRequest=uN={}));var fN;(function(e){e.method="workspace/symbol",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(fN||(B.WorkspaceSymbolRequest=fN={}));var dN;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(dN||(B.WorkspaceSymbolResolveRequest=dN={}));var mN;(function(e){e.method="textDocument/codeLens",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(mN||(B.CodeLensRequest=mN={}));var pN;(function(e){e.method="codeLens/resolve",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(pN||(B.CodeLensResolveRequest=pN={}));var gN;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolRequestType0(e.method)})(gN||(B.CodeLensRefreshRequest=gN={}));var hN;(function(e){e.method="textDocument/documentLink",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(hN||(B.DocumentLinkRequest=hN={}));var xN;(function(e){e.method="documentLink/resolve",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(xN||(B.DocumentLinkResolveRequest=xN={}));var _N;(function(e){e.method="textDocument/formatting",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(_N||(B.DocumentFormattingRequest=_N={}));var yN;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(yN||(B.DocumentRangeFormattingRequest=yN={}));var bN;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(bN||(B.DocumentRangesFormattingRequest=bN={}));var vN;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(vN||(B.DocumentOnTypeFormattingRequest=vN={}));var TN;(function(e){e.Identifier=1})(TN||(B.PrepareSupportDefaultBehavior=TN={}));var CN;(function(e){e.method="textDocument/rename",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(CN||(B.RenameRequest=CN={}));var EN;(function(e){e.method="textDocument/prepareRename",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(EN||(B.PrepareRenameRequest=EN={}));var IN;(function(e){e.method="workspace/executeCommand",e.messageDirection=ve.MessageDirection.clientToServer,e.type=new ve.ProtocolRequestType(e.method)})(IN||(B.ExecuteCommandRequest=IN={}));var wN;(function(e){e.method="workspace/applyEdit",e.messageDirection=ve.MessageDirection.serverToClient,e.type=new ve.ProtocolRequestType("workspace/applyEdit")})(wN||(B.ApplyWorkspaceEditRequest=wN={}))});var NN=ee(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});U2.createProtocolConnection=void 0;var kN=Zc();function Wee(e,t,r,n){return kN.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,kN.createMessageConnection)(e,t,r,n)}o(Wee,"createProtocolConnection");U2.createProtocolConnection=Wee});var LN=ee(zi=>{"use strict";var qee=zi&&zi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return t[r]},"get")}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),B2=zi&&zi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qee(t,e,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.LSPErrorCodes=zi.createProtocolConnection=void 0;B2(Zc(),zi);B2((Zp(),Rh(T2)),zi);B2(Wr(),zi);B2(DN(),zi);var Hee=NN();Object.defineProperty(zi,"createProtocolConnection",{enumerable:!0,get:o(function(){return Hee.createProtocolConnection},"get")});var ON;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(ON||(zi.LSPErrorCodes=ON={}))});var Zn=ee(g0=>{"use strict";var zee=g0&&g0.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return t[r]},"get")}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),FN=g0&&g0.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&zee(t,e,r)};Object.defineProperty(g0,"__esModule",{value:!0});g0.createProtocolConnection=void 0;var Vee=R6();FN(R6(),g0);FN(LN(),g0);function Gee(e,t,r,n){return(0,Vee.createMessageConnection)(e,t,r,n)}o(Gee,"createProtocolConnection");g0.createProtocolConnection=Gee});var dU=ee(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.bytePairEncode=j0.BinaryMap=j0.binaryMapKey=void 0;var Koe=o((e,t,r)=>{let n=r-t,s=16777215>>>Math.max(0,(3-n)*8),a=(e[t+0]|e[t+1]<<8|e[t+2]<<16)&s,l=16777215>>>Math.min(31,Math.max(0,(6-n)*8)),c=(e[t+3]|e[t+4]<<8|e[t+5]<<16)&l;return a+16777216*c},"binaryMapKey");j0.binaryMapKey=Koe;var tC=class e{static{o(this,"BinaryMap")}constructor(){this.nested=new Map,this.final=new Map}get(t,r=0,n=t.length){let s=n<6+r,a=(0,j0.binaryMapKey)(t,r,n);return s?this.final.get(a):this.nested.get(a)?.get(t,6+r,n)}set(t,r){let n=(0,j0.binaryMapKey)(t,0,t.length);if(t.length<6){this.final.set(n,r);return}let a=this.nested.get(n);if(a instanceof e)a.set(t.subarray(6),r);else{let l=new e;l.set(t.subarray(6),r),this.nested.set(n,l)}}};j0.BinaryMap=tC;var $0=new Int32Array(128),Ai=new Int32Array(128);function Yoe(e,t,r){if(r===1)return[t.get(e)];let n=2147483647,s=-1;for(;$0.length<r*2;)Ai=new Int32Array(Ai.length*2),$0=new Int32Array($0.length*2);for(let u=0;u<r-1;u++){let d=t.get(e,u,u+2)??2147483647;d<n&&(n=d,s=u),Ai[u]=u,$0[u]=d}Ai[r-1]=r-1,$0[r-1]=2147483647,Ai[r]=r,$0[r]=2147483647;let a=r+1;function l(u,d=0){if(u+d+2<a){let f=t.get(e,Ai[u],Ai[u+d+2]);if(f!==void 0)return f}return 2147483647}for(o(l,"getRank");n!==2147483647;){$0[Ai[s]]=l(s,1),s>0&&($0[Ai[s-1]]=l(s-1,1));for(let u=s+1;u<a-1;u++)Ai[u]=Ai[u+1];a--,s=-1,n=2147483647;for(let u=0;u<a-1;u++){let d=$0[Ai[u]];$0[Ai[u]]<n&&(n=d,s=u)}}let c=[];for(let u=0;u<a-1;u++)c.push(t.get(e,Ai[u],Ai[u+1]));return c}o(Yoe,"bytePairEncode");j0.bytePairEncode=Yoe});var mU=ee(e3=>{"use strict";Object.defineProperty(e3,"__esModule",{value:!0});e3.makeTextEncoder=void 0;var rC=class{static{o(this,"UniversalTextEncoder")}constructor(){this.length=0,this.encoder=new TextEncoder}encode(t){let r=this.encoder.encode(t);return this.length=r.length,r}},nC=class{static{o(this,"NodeTextEncoder")}constructor(){this.buffer=Buffer.alloc(256),this.length=0}encode(t){for(;;){if(this.length=this.buffer.write(t,"utf8"),this.length<this.buffer.length-4)return this.buffer;this.buffer=Buffer.alloc(this.length*2),this.length=this.buffer.write(t)}}},Xoe=o(()=>typeof Buffer<"u"?new nC:new rC,"makeTextEncoder");e3.makeTextEncoder=Xoe});var pU=ee(t3=>{"use strict";Object.defineProperty(t3,"__esModule",{value:!0});t3.LRUCache=void 0;var iC=class{static{o(this,"LRUCache")}constructor(t){this.size=t,this.nodes=new Map}get(t){let r=this.nodes.get(t);if(r)return this.moveToHead(r),r.value}set(t,r){let n=this.nodes.get(t);if(n)n.value=r,this.moveToHead(n);else{let s=new oC(t,r);this.nodes.set(t,s),this.addNode(s),this.nodes.size>this.size&&(this.nodes.delete(this.tail.key),this.removeNode(this.tail))}}moveToHead(t){this.removeNode(t),t.next=void 0,t.prev=void 0,this.addNode(t)}addNode(t){this.head&&(this.head.prev=t,t.next=this.head),this.tail||(this.tail=t),this.head=t}removeNode(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev}};t3.LRUCache=iC;var oC=class{static{o(this,"Node")}constructor(t,r){this.key=t,this.value=r}}});var aC=ee(n3=>{"use strict";Object.defineProperty(n3,"__esModule",{value:!0});n3.TikTokenizer=void 0;var r3=dU(),Joe=mU(),Zoe=pU();function Qoe(e){let t=new Map;try{let s=require("fs").readFileSync(e,"utf-8");return r(s),t}catch(n){throw new Error(`Failed to load from BPE encoder file stream: ${n}`)}function r(n){for(let s of n.split(/[\r\n]+/)){if(s.trim()==="")continue;let a=s.split(" ");if(a.length!==2)throw new Error("Invalid format in the BPE encoder file stream");let l=new Uint8Array(Buffer.from(a[0],"base64")),c=parseInt(a[1]);if(!isNaN(c))t.set(l,c);else throw new Error(`Can't parse ${a[1]} to integer`)}}o(r,"processBpeRanks")}o(Qoe,"loadTikTokenBpe");function ese(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(ese,"escapeRegExp");var sC=class{static{o(this,"TikTokenizer")}constructor(t,r,n,s=8192){this.textEncoder=(0,Joe.makeTextEncoder)(),this.textDecoder=new TextDecoder("utf-8"),this.cache=new Zoe.LRUCache(s);let a=typeof t=="string"?Qoe(t):t;this.init(a,r,n)}init(t,r,n){this.encoder=new r3.BinaryMap;for(let[s,a]of t)this.encoder.set(s,a);this.regex=new RegExp(n,"gu"),this.specialTokensRegex=new RegExp(Array.from(r.keys()).map(s=>ese(s)).join("|")),this.specialTokensEncoder=r,this.decoder=new Map;for(let[s,a]of t)this.decoder.set(a,s);if(t.size!==this.decoder.size)throw new Error("Encoder and decoder sizes do not match");this.specialTokensDecoder=new Map;for(let[s,a]of r)this.specialTokensDecoder.set(a,s)}findNextSpecialToken(t,r,n){let s=r,a=null;if(n&&this.specialTokensRegex)for(;a=t.slice(s).match(this.specialTokensRegex),!(!a||n&&n.includes(a[0]));)s+=a.index+1;let l=a?s+a.index:t.length;return[a,l]}encode(t,r){let n=[],s=0;for(;;){let a,l;if([a,l]=this.findNextSpecialToken(t,s,r),l>s&&this.encodeByIndex(t,n,s,l),a){if(s=s+this.encodeSpecialToken(n,a),s>=t.length)break}else break}return n}encodeSpecialToken(t,r){let n=this.specialTokensEncoder?.get(r[0]);return t.push(n),r.index+r[0].length}encodeByIndex(t,r,n,s){let a,l=t.substring(n,s);for(this.regex.lastIndex=0;a=this.regex.exec(l);){let c=this.cache.get(a[0]);if(c)for(let u of c)r.push(u);else{let u=this.textEncoder.encode(a[0]),d=this.encoder.get(u,0,this.textEncoder.length);if(d!==void 0)r.push(d),this.cache.set(a[0],[d]);else{let f=(0,r3.bytePairEncode)(u,this.encoder,this.textEncoder.length);for(let m of f)r.push(m);this.cache.set(a[0],f)}}}}encodeTrimSuffixByIndex(t,r,n,s,a,l,c){let u,d=t.substring(n,s);for(this.regex.lastIndex=0;u=this.regex.exec(d);){let f=u[0],m=this.cache.get(f);if(m)if(l+m.length<=a)l+=m.length,c+=f.length,r.push(...m);else{let p=a-l;l+=p,c+=f.length,r.push(...m.slice(0,p));break}else{let p=this.textEncoder.encode(f),g=this.encoder.get(p,0,p.length);if(g!==void 0)if(this.cache.set(f,[g]),l+1<=a)l++,c+=f.length,r.push(g);else break;else{let h=(0,r3.bytePairEncode)(p,this.encoder,this.textEncoder.length);if(this.cache.set(f,h),l+h.length<=a){l+=h.length,c+=f.length;for(let x of h)r.push(x)}else{let x=a-l;l+=x,c+=f.length;for(let _=0;_<x;_++)r.push(h[_]);break}}}if(l>=a)break}return{tokenCount:l,encodeLength:c}}encodeTrimSuffix(t,r,n){let s=[],a=0,l=0,c=0;for(;;){let d,f;if([d,f]=this.findNextSpecialToken(t,a,n),f>a){let{tokenCount:m,encodeLength:p}=this.encodeTrimSuffixByIndex(t,s,a,f,r,l,c);if(l=m,c=p,l>=r)break}if(d!==null){if(l++,l<=r&&(a=a+this.encodeSpecialToken(s,d),c+=d[0].length,a>=t.length)||l>=r)break}else break}let u=c===t.length?t:t.slice(0,c);return{tokenIds:s,text:u}}encodeTrimPrefix(t,r,n){let s=[],a=0,l=0,c=0,u=new Map;for(u.set(l,c);;){let p,g;if([p,g]=this.findNextSpecialToken(t,a,n),g>a){let h,x=t.substring(a,g);for(this.regex.lastIndex=0;h=this.regex.exec(x);){let _=h[0],y=this.cache.get(_);if(y)l+=y.length,c+=_.length,s.push(...y),u.set(l,c);else{let b=this.textEncoder.encode(_),T=this.encoder.get(b);if(T!==void 0)this.cache.set(_,[T]),l++,c+=_.length,s.push(T),u.set(l,c);else{let v=(0,r3.bytePairEncode)(b,this.encoder,this.textEncoder.length);this.cache.set(_,v),l+=v.length,c+=_.length;for(let S of v)s.push(S);u.set(l,c)}}}}if(p!==null){if(a=a+this.encodeSpecialToken(s,p),l++,c+=p[0].length,u.set(l,c),a>=t.length)break}else break}if(l<=r)return{tokenIds:s,text:t};let d=l-r,f=0,m=0;for(let[p,g]of u)if(p>=d){f=p,m=g;break}if(f>r){let p=this.encode(t,n),g=p.slice(p.length-r);return{tokenIds:g,text:this.decode(g)}}return{tokenIds:s.slice(f),text:t.slice(m)}}decode(t){let r=[];for(let n of t){let s=[],a=this.decoder?.get(n);if(a!==void 0)s=Array.from(a);else{let l=this.specialTokensDecoder?.get(n);if(l!==void 0){let c=this.textEncoder.encode(l);s=Array.from(c.subarray(0,this.textEncoder.length))}}r.push(...s)}return this.textDecoder.decode(new Uint8Array(r))}};n3.TikTokenizer=sC});var EU=ee(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.createTokenizer=Cn.createByEncoderName=Cn.createByModelName=Cn.getRegexByModel=Cn.getRegexByEncoder=Cn.getSpecialTokensByModel=Cn.getSpecialTokensByEncoder=Cn.MODEL_TO_ENCODING=void 0;var tse=aC(),rse=new Map([["gpt-4o-","o200k_base"],["gpt-4-","cl100k_base"],["gpt-3.5-turbo-","cl100k_base"],["gpt-35-turbo-","cl100k_base"]]);Cn.MODEL_TO_ENCODING=new Map([["gpt-4o","o200k_base"],["gpt-4","cl100k_base"],["gpt-3.5-turbo","cl100k_base"],["text-davinci-003","p50k_base"],["text-davinci-002","p50k_base"],["text-davinci-001","r50k_base"],["text-curie-001","r50k_base"],["text-babbage-001","r50k_base"],["text-ada-001","r50k_base"],["davinci","r50k_base"],["curie","r50k_base"],["babbage","r50k_base"],["ada","r50k_base"],["code-davinci-002","p50k_base"],["code-davinci-001","p50k_base"],["code-cushman-002","p50k_base"],["code-cushman-001","p50k_base"],["davinci-codex","p50k_base"],["cushman-codex","p50k_base"],["text-davinci-edit-001","p50k_edit"],["code-davinci-edit-001","p50k_edit"],["text-embedding-ada-002","cl100k_base"],["text-similarity-davinci-001","r50k_base"],["text-similarity-curie-001","r50k_base"],["text-similarity-babbage-001","r50k_base"],["text-similarity-ada-001","r50k_base"],["text-search-davinci-doc-001","r50k_base"],["text-search-curie-doc-001","r50k_base"],["text-search-babbage-doc-001","r50k_base"],["text-search-ada-doc-001","r50k_base"],["code-search-babbage-code-001","r50k_base"],["code-search-ada-code-001","r50k_base"],["gpt2","gpt2"]]);var i3="<|endoftext|>",gU="<|fim_prefix|>",hU="<|fim_middle|>",xU="<|fim_suffix|>",_U="<|endofprompt|>",bg="'s|'t|'re|'ve|'m|'ll|'d| ?\\p{L}+| ?\\p{N}+| ?[^\\s\\p{L}\\p{N}]+|\\s+(?!\\S)|\\s+",yU="(?:'s|'S|'t|'T|'re|'RE|'Re|'eR|'ve|'VE|'vE|'Ve|'m|'M|'ll|'lL|'Ll|'LL|'d|'D)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}{1,3}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",nse=[`[^\r
[35] Fix | Delete
\\p{L}\\p{N}]?[\\p{Lu}\\p{Lt}\\p{Lm}\\p{Lo}\\p{M}]*[\\p{Ll}\\p{Lm}\\p{Lo}\\p{M}]+(?:'s|'S|'t|'T|'re|'RE|'Re|'eR|'ve|'VE|'vE|'Ve|'m|'M|'ll|'lL|'Ll|'LL|'d|'D)?`,`[^\r
[36] Fix | Delete
\\p{L}\\p{N}]?[\\p{Lu}\\p{Lt}\\p{Lm}\\p{Lo}\\p{M}]+[\\p{Ll}\\p{Lm}\\p{Lo}\\p{M}]*(?:'s|'S|'t|'T|'re|'RE|'Re|'eR|'ve|'VE|'vE|'Ve|'m|'M|'ll|'lL|'Ll|'LL|'d|'D)?`,"\\p{N}{1,3}"," ?[^\\s\\p{L}\\p{N}]+[\\r\\n/]*","\\s*[\\r\\n]+","\\s+(?!\\S)","\\s+"],bU=nse.join("|");function lC(e){let t="";if(Cn.MODEL_TO_ENCODING.has(e))t=Cn.MODEL_TO_ENCODING.get(e);else for(let[r,n]of rse)if(e.startsWith(r)){t=n;break}return t}o(lC,"getEncoderFromModelName");async function ise(e,t){let r=require("fs"),n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch file from ${e}. Status code: ${n.status}`);let s=await n.text();r.writeFileSync(t,s)}o(ise,"fetchAndSaveFile");function cC(e){let t=new Map([[i3,50256]]);switch(e){case"o200k_base":t=new Map([[i3,199999],[_U,200018]]);break;case"cl100k_base":t=new Map([[i3,100257],[gU,100258],[hU,100259],[xU,100260],[_U,100276]]);break;case"p50k_edit":t=new Map([[i3,50256],[gU,50281],[hU,50282],[xU,50283]]);break;default:break}return t}o(cC,"getSpecialTokensByEncoder");Cn.getSpecialTokensByEncoder=cC;function ose(e){let t=lC(e);return cC(t)}o(ose,"getSpecialTokensByModel");Cn.getSpecialTokensByModel=ose;function vU(e){switch(e){case"o200k_base":return bU;case"cl100k_base":return yU;default:break}return bg}o(vU,"getRegexByEncoder");Cn.getRegexByEncoder=vU;function sse(e){let t=lC(e);return vU(t)}o(sse,"getRegexByModel");Cn.getRegexByModel=sse;async function ase(e,t=null){return TU(lC(e),t)}o(ase,"createByModelName");Cn.createByModelName=ase;async function TU(e,t=null){let r,n,s=cC(e);switch(e){case"o200k_base":r=bU,n="https://openaipublic.blob.core.windows.net/encodings/o200k_base.tiktoken";break;case"cl100k_base":r=yU,n="https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken";break;case"p50k_base":r=bg,n="https://openaipublic.blob.core.windows.net/encodings/p50k_base.tiktoken";break;case"p50k_edit":r=bg,n="https://openaipublic.blob.core.windows.net/encodings/p50k_base.tiktoken";break;case"r50k_base":r=bg,n="https://openaipublic.blob.core.windows.net/encodings/r50k_base.tiktoken";break;case"gpt2":r=bg,n="https://raw.githubusercontent.com/microsoft/Tokenizer/main/model/gpt2.tiktoken";break;default:throw new Error(`Doesn't support this encoder [${e}]`)}t!==null&&(s=new Map([...s,...t]));let a=require("fs"),l=Pf(),c=l.basename(n),u=l.resolve("","..","model");a.existsSync(u)||a.mkdirSync(u,{recursive:!0});let d=l.resolve(u,c);return a.existsSync(d)||(console.log(`Downloading file from ${n}`),await ise(n,d),console.log(`Saved file to ${d}`)),CU(d,s,r)}o(TU,"createByEncoderName");Cn.createByEncoderName=TU;function CU(e,t,r,n=8192){return new tse.TikTokenizer(e,t,r,n)}o(CU,"createTokenizer");Cn.createTokenizer=CU});var IU=ee(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.createTokenizer=En.createByEncoderName=En.createByModelName=En.getSpecialTokensByModel=En.getSpecialTokensByEncoder=En.getRegexByModel=En.getRegexByEncoder=En.MODEL_TO_ENCODING=En.TikTokenizer=void 0;var lse=aC();Object.defineProperty(En,"TikTokenizer",{enumerable:!0,get:o(function(){return lse.TikTokenizer},"get")});var dc=EU();Object.defineProperty(En,"MODEL_TO_ENCODING",{enumerable:!0,get:o(function(){return dc.MODEL_TO_ENCODING},"get")});Object.defineProperty(En,"getRegexByEncoder",{enumerable:!0,get:o(function(){return dc.getRegexByEncoder},"get")});Object.defineProperty(En,"getRegexByModel",{enumerable:!0,get:o(function(){return dc.getRegexByModel},"get")});Object.defineProperty(En,"getSpecialTokensByEncoder",{enumerable:!0,get:o(function(){return dc.getSpecialTokensByEncoder},"get")});Object.defineProperty(En,"getSpecialTokensByModel",{enumerable:!0,get:o(function(){return dc.getSpecialTokensByModel},"get")});Object.defineProperty(En,"createByModelName",{enumerable:!0,get:o(function(){return dc.createByModelName},"get")});Object.defineProperty(En,"createByEncoderName",{enumerable:!0,get:o(function(){return dc.createByEncoderName},"get")});Object.defineProperty(En,"createTokenizer",{enumerable:!0,get:o(function(){return dc.createTokenizer},"get")})});var _C=ee((Int,GU)=>{"use strict";GU.exports=o(function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var s=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?s[r]:s},"protocols")});var YU=ee((Snt,KU)=>{"use strict";var $ae=_C();function jae(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=$ae(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}o(jae,"parsePath");KU.exports=jae});var tB=ee((Rnt,eB)=>{"use strict";var Wae=YU();function qae(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}o(qae,"_interopDefaultLegacy");var Hae=qae(Wae);function zae(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=o(function n(){if(this instanceof n){var s=[null];s.push.apply(s,arguments);var a=Function.bind.apply(t,s);return new a}return t.apply(this,arguments)},"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:o(function(){return e[n]},"get")})}),r}o(zae,"getAugmentedNamespace");var JU={},Vae="text/plain",Gae="us-ascii",XU=o((e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),"testParameter"),Kae=o((e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:s,hash:a}=r.groups,l=n.split(";");a=t?"":a;let c=!1;l[l.length-1]==="base64"&&(l.pop(),c=!0);let u=(l.shift()||"").toLowerCase(),f=[...l.map(m=>{let[p,g=""]=m.split("=").map(h=>h.trim());return p==="charset"&&(g=g.toLowerCase(),g===Gae)?"":`${p}${g?`=${g}`:""}`}).filter(Boolean)];return c&&f.push("base64"),(f.length>0||u&&u!==Vae)&&f.unshift(u),`data:${f.join(";")},${c?s.trim():s}${a?`#${a}`:""}`},"normalizeDataURL");function Yae(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return Kae(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let s=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&s.protocol==="https:"&&(s.protocol="http:"),t.forceHttps&&s.protocol==="http:"&&(s.protocol="https:"),t.stripAuthentication&&(s.username="",s.password=""),t.stripHash?s.hash="":t.stripTextFragment&&(s.hash=s.hash.replace(/#?:~:text.*?$/i,"")),s.pathname){let l=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,c=0,u="";for(;;){let f=l.exec(s.pathname);if(!f)break;let m=f[0],p=f.index,g=s.pathname.slice(c,p);u+=g.replace(/\/{2,}/g,"/"),u+=m,c=p+m.length}let d=s.pathname.slice(c,s.pathname.length);u+=d.replace(/\/{2,}/g,"/"),s.pathname=u}if(s.pathname)try{s.pathname=decodeURI(s.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let l=s.pathname.split("/"),c=l[l.length-1];XU(c,t.removeDirectoryIndex)&&(l=l.slice(0,-1),s.pathname=l.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let l of[...s.searchParams.keys()])XU(l,t.removeQueryParameters)&&s.searchParams.delete(l);if(t.removeQueryParameters===!0&&(s.search=""),t.sortQueryParameters){s.searchParams.sort();try{s.search=decodeURIComponent(s.search)}catch{}}t.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,""));let a=e;return e=s.toString(),!t.removeSingleSlash&&s.pathname==="/"&&!a.endsWith("/")&&s.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||s.pathname==="/")&&s.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}o(Yae,"normalizeUrl");var Xae=Object.freeze({__proto__:null,default:Yae}),Jae=zae(Xae);Object.defineProperty(JU,"__esModule",{value:!0});var Zae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qae=Jae,ele=ZU(Qae),tle=Hae.default,rle=ZU(tle);function ZU(e){return e&&e.__esModule?e:{default:e}}o(ZU,"_interopRequireDefault");var QU=o(function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,s=o(function(u){var d=new Error(u);throw d.subject_url=t,d},"throwErr");(typeof t!="string"||!t.trim())&&s("Invalid url."),t.length>e.MAX_INPUT_LENGTH&&s("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),r&&((typeof r>"u"?"undefined":Zae(r))!=="object"&&(r={stripHash:!1}),t=(0,ele.default)(t,r));var a=(0,rle.default)(t);if(a.parse_failed){var l=a.href.match(n);l?(a.protocols=["ssh"],a.protocol="ssh",a.resource=l[2],a.host=l[2],a.user=l[1],a.pathname="/"+l[3],a.parse_failed=!1):s("URL parsing failed.")}return a},"parseUrl");QU.MAX_INPUT_LENGTH=2048;var nle=JU.default=QU;eB.exports=nle});var iB=ee((Dnt,nB)=>{"use strict";var ile=_C();function rB(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=ile(e);if(e=e.substring(e.indexOf("://")+3),rB(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}o(rB,"isSsh");nB.exports=rB});var aB=ee((Nnt,sB)=>{"use strict";var ole=tB(),oB=iB();function sle(e){let t=ole(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),oB(t.protocols)||t.protocols.length===0&&oB(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}o(sle,"gitUp");sB.exports=sle});var cB=ee((Lnt,lB)=>{"use strict";var ale=aB();function yC(e,t){if(t=t||[],typeof e!="string")throw new Error("The url must be a string.");if(!t.every(function(b){return typeof b=="string"}))throw new Error("The refs should contain only strings");var r=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;r.test(e)&&(e="https://github.com/"+e);var n=ale(e),s=n.resource.split("."),a=null;switch(n.toString=function(b){return yC.stringify(this,b)},n.source=s.length>2?s.slice(1-s.length).join("."):n.source=n.resource,n.git_suffix=/\.git$/.test(n.pathname),n.name=decodeURIComponent((n.pathname||n.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),n.owner=decodeURIComponent(n.user),n.source){case"git.cloudforge.com":n.owner=n.user,n.organization=s[0],n.source="cloudforge.com";break;case"visualstudio.com":if(n.resource==="vs-ssh.visualstudio.com"){a=n.name.split("/"),a.length===4&&(n.organization=a[1],n.owner=a[2],n.name=a[3],n.full_name=a[2]+"/"+a[3]);break}else{a=n.name.split("/"),a.length===2?(n.owner=a[1],n.name=a[1],n.full_name="_git/"+n.name):a.length===3?(n.name=a[2],a[0]==="DefaultCollection"?(n.owner=a[2],n.organization=a[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=a[0],n.full_name=n.owner+"/_git/"+n.name)):a.length===4&&(n.organization=a[0],n.owner=a[1],n.name=a[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name);break}case"dev.azure.com":case"azure.com":if(n.resource==="ssh.dev.azure.com"){a=n.name.split("/"),a.length===4&&(n.organization=a[1],n.owner=a[2],n.name=a[3]);break}else{a=n.name.split("/"),a.length===5?(n.organization=a[0],n.owner=a[1],n.name=a[4],n.full_name="_git/"+n.name):a.length===3?(n.name=a[2],a[0]==="DefaultCollection"?(n.owner=a[2],n.organization=a[0],n.full_name=n.organization+"/_git/"+n.name):(n.owner=a[0],n.full_name=n.owner+"/_git/"+n.name)):a.length===4&&(n.organization=a[0],n.owner=a[1],n.name=a[3],n.full_name=n.organization+"/"+n.owner+"/_git/"+n.name),n.query&&n.query.path&&(n.filepath=n.query.path.replace(/^\/+/g,"")),n.query&&n.query.version&&(n.ref=n.query.version.replace(/^GB/,""));break}default:a=n.name.split("/");var l=a.length-1;if(a.length>=2){var c=a.indexOf("-",2),u=a.indexOf("blob",2),d=a.indexOf("tree",2),f=a.indexOf("commit",2),m=a.indexOf("issues",2),p=a.indexOf("src",2),g=a.indexOf("raw",2),h=a.indexOf("edit",2);l=c>0?c-1:u>0&&d>0?Math.min(u-1,d-1):u>0?u-1:m>0?m-1:d>0?d-1:f>0?f-1:p>0?p-1:g>0?g-1:h>0?h-1:l,n.owner=a.slice(0,l).join("/"),n.name=a[l],f&&m<0&&(n.commit=a[l+2])}n.ref="",n.filepathtype="",n.filepath="";var x=a.length>l&&a[l+1]==="-"?l+1:l;a.length>x+2&&["raw","src","blob","tree","edit"].indexOf(a[x+1])>=0&&(n.filepathtype=a[x+1],n.ref=a[x+2],a.length>x+3&&(n.filepath=a.slice(x+3).join("/"))),n.organization=n.owner;break}n.full_name||(n.full_name=n.owner,n.name&&(n.full_name&&(n.full_name+="/"),n.full_name+=n.name)),n.owner.startsWith("scm/")&&(n.source="bitbucket-server",n.owner=n.owner.replace("scm/",""),n.organization=n.owner,n.full_name=n.owner+"/"+n.name);var _=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,y=_.exec(n.pathname);return y!=null&&(n.source="bitbucket-server",y[1]==="users"?n.owner="~"+y[2]:n.owner=y[2],n.organization=n.owner,n.name=y[3],a=y[4].split("/"),a.length>1&&(["raw","browse"].indexOf(a[1])>=0?(n.filepathtype=a[1],a.length>2&&(n.filepath=a.slice(2).join("/"))):a[1]==="commits"&&a.length>2&&(n.commit=a[2])),n.full_name=n.owner+"/"+n.name,n.query.at?n.ref=n.query.at:n.ref=""),t.length!==0&&n.ref&&(n.ref=ule(n.href,t)||n.ref,n.filepath=n.href.split(n.ref+"/")[1]),n}o(yC,"gitUrlParse");yC.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",s=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+s:n+"@"+e.resource+":"+e.full_name+s;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+s;case"http":case"https":var a=e.token?lle(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+a+e.resource+r+"/"+cle(e)+s;default:return e.href}};function lle(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}o(lle,"buildToken");function cle(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:var t=e.full_name.split("/").map(function(r){return encodeURIComponent(r)}).join("/");return t}}o(cle,"buildPath");function ule(e,t){var r="";return t.forEach(function(n){e.includes(n)&&n.length>r.length&&(r=n)}),r}o(ule,"findLongestMatchingSubstring");lB.exports=yC});var gB=ee((exports,module)=>{var Module=typeof Module<"u"?Module:{},ENVIRONMENT_IS_WEB=typeof window=="object",ENVIRONMENT_IS_WORKER=typeof importScripts=="function",ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",TreeSitter=function(){var initPromise,document=typeof window=="object"?{currentScript:window.document.currentScript}:null;class Parser{static{o(this,"Parser")}constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise(resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=o((e,t)=>{throw t},"quit_"),scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}o(locateFile,"locateFile");var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require("fs"),nodePath=Pf();scriptDirectory="/",readBinary=o(e=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e);var t=fs.readFileSync(e);return t},"readBinary"),readAsync=o((e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise((r,n)=>{fs.readFile(e,t?void 0:"utf8",(s,a)=>{s?n(s):r(t?a.buffer:a)})})),"readAsync"),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),typeof module<"u"&&(module.exports=Module),quit_=o((e,t)=>{throw process.exitCode=e,t},"quit_")}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory.startsWith("blob:")?scriptDirectory="":scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=o(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=o(e=>isFileURI(e)?new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(n.status==200||n.status==0&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)}):fetch(e,{credentials:"same-origin"}).then(t=>t.ok?t.arrayBuffer():Promise.reject(new Error(t.status+" : "+t.url))),"readAsync"));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(o(updateMemoryViews,"updateMemoryViews"),Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:2147483648/65536})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for(typeof Module.preRun=="function"&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}o(preRun,"preRun");function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}o(initRuntime,"initRuntime");function preMain(){callRuntimeCallbacks(__ATMAIN__)}o(preMain,"preMain");function postRun(){if(Module.postRun)for(typeof Module.postRun=="function"&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}o(postRun,"postRun");function addOnPreRun(e){__ATPRERUN__.unshift(e)}o(addOnPreRun,"addOnPreRun");function addOnInit(e){__ATINIT__.unshift(e)}o(addOnInit,"addOnInit");function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}o(addOnPostRun,"addOnPostRun");var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}o(getUniqueRunDependency,"getUniqueRunDependency");function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}o(addRunDependency,"addRunDependency");function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),runDependencies==0&&(runDependencyWatcher!==null&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}o(removeRunDependency,"removeRunDependency");function abort(e){Module.onAbort?.(e),e="Aborted("+e+")",err(e),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw t}o(abort,"abort");var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=o(e=>e.startsWith(dataURIPrefix),"isDataURI"),isFileURI=o(e=>e.startsWith("file://"),"isFileURI");function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}o(findWasmBinary,"findWasmBinary");var wasmBinaryFile;function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}o(getBinarySync,"getBinarySync");function getBinaryPromise(e){return wasmBinary?Promise.resolve().then(()=>getBinarySync(e)):readAsync(e).then(t=>new Uint8Array(t),()=>getBinarySync(e))}o(getBinaryPromise,"getBinaryPromise");function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then(n=>WebAssembly.instantiate(n,t)).then(r,n=>{err(`failed to asynchronously prepare wasm: ${n}`),abort(n)})}o(instantiateArrayBuffer,"instantiateArrayBuffer");function instantiateAsync(e,t,r,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(t)&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"?fetch(t,{credentials:"same-origin"}).then(s=>{var a=WebAssembly.instantiateStreaming(s,r);return a.then(n,function(l){return err(`wasm streaming compile failed: ${l}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)})}):instantiateArrayBuffer(t,r,n)}o(instantiateAsync,"instantiateAsync");function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}o(getWasmImports,"getWasmImports");function createWasm(){var e=getWasmImports();function t(n,s){wasmExports=n.exports,wasmExports=relocateExports(wasmExports,1024);var a=getDylinkMetadata(s);return a.neededDynlibs&&(dynamicLibraries=a.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}o(t,"receiveInstance"),addRunDependency("wasm-instantiate");function r(n){t(n.instance,n.module)}if(o(r,"receiveInstantiationResult"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(n){return err(`Module.instantiateWasm callback failed with error: ${n}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,r),{}}o(createWasm,"createWasm");var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}o(ExitStatus,"ExitStatus");var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=o(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=o(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=o(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=o(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_U32=o(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=o((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=o((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=o((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=o((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_U32=o((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=o(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder:void 0,UTF8ArrayToString=o((e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var a="";t<s;){var l=e[t++];if(!(l&128)){a+=String.fromCharCode(l);continue}var c=e[t++]&63;if((l&224)==192){a+=String.fromCharCode((l&31)<<6|c);continue}var u=e[t++]&63;if((l&240)==224?l=(l&15)<<12|c<<6|u:l=(l&7)<<18|c<<12|u<<6|e[t++]&63,l<65536)a+=String.fromCharCode(l);else{var d=l-65536;a+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return a},"UTF8ArrayToString"),getDylinkMetadata=o(e=>{var t=0,r=0;function n(){return e[t++]}o(n,"getU8");function s(){for(var z=0,D=1;;){var E=e[t++];if(z+=(E&127)*D,D*=128,!(E&128))break}return z}o(s,"getLEB");function a(){var z=s();return t+=z,UTF8ArrayToString(e,t-z,z)}o(a,"getString");function l(z,D){if(z)throw new Error(D)}o(l,"failIf");var c="dylink.0";if(e instanceof WebAssembly.Module){var u=WebAssembly.Module.customSections(e,c);u.length===0&&(c="dylink",u=WebAssembly.Module.customSections(e,c)),l(u.length===0,"need dylink section"),e=new Uint8Array(u[0]),r=e.length}else{var d=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer),f=d[0]==1836278016||d[0]==6386541;l(!f,"need to see wasm magic number"),l(e[8]!==0,"need the dylink section to be first"),t=9;var m=s();r=t+m,c=a()}var p={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if(c=="dylink"){p.memorySize=s(),p.memoryAlign=s(),p.tableSize=s(),p.tableAlign=s();for(var g=s(),h=0;h<g;++h){var x=a();p.neededDynlibs.push(x)}}else{l(c!=="dylink.0");for(var _=1,y=2,b=3,T=4,v=256,S=3,R=1;t<r;){var j=n(),K=s();if(j===_)p.memorySize=s(),p.memoryAlign=s(),p.tableSize=s(),p.tableAlign=s();else if(j===y)for(var g=s(),h=0;h<g;++h)x=a(),p.neededDynlibs.push(x);else if(j===b)for(var V=s();V--;){var Y=a(),N=s();N&v&&p.tlsExports.add(Y)}else if(j===T)for(var V=s();V--;){var k=a(),Y=a(),N=s();(N&S)==R&&p.weakImports.add(Y)}else t+=K}}return p},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":return HEAP8[e];case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16((e>>1)*2);case"i32":return LE_HEAP_LOAD_I32((e>>2)*4);case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32((e>>2)*4);case"double":return LE_HEAP_LOAD_F64((e>>3)*8);case"*":return LE_HEAP_LOAD_U32((e>>2)*4);default:abort(`invalid type for getValue: ${t}`)}}o(getValue,"getValue");var newDSO=o((e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,t!=null&&(LDSO.loadedLibsByHandle[t]=n),n},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=o((e,t)=>(HEAPU8.fill(0,e,e+t),e),"zeroMemory"),alignMemory=o((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=o(e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},"getMemory"),isInternalSym=o(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128Encode=o((e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},"uleb128Encode"),sigToWasmTypes=o(e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:e[0]=="v"?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},"sigToWasmTypes"),generateFuncType=o((e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var a=0;a<n.length;++a)t.push(s[n[a]]);r=="v"?t.push(0):t.push(1,s[r])},"generateFuncType"),convertJsFunctionToWasm=o((e,t)=>{if(typeof WebAssembly.Function=="function")return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n)),a=new WebAssembly.Instance(s,{e:{f:e}}),l=a.exports.f;return l},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=o(e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=o((e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},"updateTableMap"),functionsInTableMap,getFunctionAddress=o(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=o(()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},"getEmptyTableSlot"),setWasmTableEntry=o((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=o((e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(a){if(!(a instanceof TypeError))throw a;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},"addFunction"),updateGOT=o((e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||GOT[r].value==0)&&(typeof n=="function"?GOT[r].value=addFunction(n):typeof n=="number"?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},"updateGOT"),relocateExports=o((e,t,r)=>{var n={};for(var s in e){var a=e[s];typeof a=="object"&&(a=a.value),typeof a=="number"&&(a+=t),n[s]=a}return updateGOT(n,r),n},"relocateExports"),isSymbolDefined=o(e=>{var t=wasmImports[e];return!(!t||t.stub)},"isSymbolDefined"),dynCallLegacy=o((e,t,r)=>{e=e.replace(/p/g,"i");var n=Module["dynCall_"+e];return n(t,...r)},"dynCallLegacy"),dynCall=o((e,t,r=[])=>{if(e.includes("j"))return dynCallLegacy(e,t,r);var n=getWasmTableEntry(t)(...r);return n},"dynCall"),stackSave=o(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=o(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=o(e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(s){if(stackRestore(n),s!==s+0)throw s;_setThrew(1,0)}},"createInvokeFunction"),resolveGlobalSymbol=o((e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},"resolveGlobalSymbol"),UTF8ToString=o((e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"","UTF8ToString"),loadWebAssemblyModule=o((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);currentModuleWeakSymbols=metadata.weakImports;function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32((handle+12>>2)*4),tableBase=LE_HEAP_LOAD_U32((handle+20>>2)*4);var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length;tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}o(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];if(!(t in e)){var r;e[t]=(...n)=>(r||=resolveSymbol(t),r(...n))}return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols();function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&body.indexOf("$"+arity)!=-1;arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(o(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),cSig!="void"){cSig=cSig.split(",");for(var i in cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}o(addEmJs,"addEmJs");for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(o(postInstantiation,"postInstantiation"),flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then(e=>postInstantiation(e.module,e.instance))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return o(loadModule,"loadModule"),flags.loadAsync?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=o((e,t)=>{for(var[r,n]of Object.entries(e)){let s=o(l=>{isSymbolDefined(l)||(wasmImports[l]=n)},"setImport");s(r);let a="__main_argc_argv";r=="main"&&s(a),r==a&&s("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},"mergeLibSymbols"),asyncLoad=o((e,t,r,n)=>{var s=n?"":`al ${e}`;readAsync(e).then(a=>{t(new Uint8Array(a)),s&&removeRunDependency(s)},a=>{if(r)r();else throw`Loading data file "${e}" failed.`}),s&&addRunDependency(s)},"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):r&&Object.assign(r,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,n&&(LDSO.loadedLibsByHandle[n]=s),t.loadAsync?Promise.resolve(!0):!0;s=newDSO(e,n,"loading"),s.refcount=t.nodelete?1/0:1,s.global=t.global;function a(){if(n){var u=LE_HEAP_LOAD_U32((n+28>>2)*4),d=LE_HEAP_LOAD_U32((n+32>>2)*4);if(u&&d){var f=HEAP8.slice(u,u+d);return t.loadAsync?Promise.resolve(f):f}}var m=locateFile(e);if(t.loadAsync)return new Promise(function(p,g){asyncLoad(m,p,g)});if(!readBinary)throw new Error(`${m}: file not found, and synchronous loading of external files is not available`);return readBinary(m)}o(a,"loadLibData");function l(){return t.loadAsync?a().then(u=>loadWebAssemblyModule(u,t,e,r,n)):loadWebAssemblyModule(a(),t,e,r,n)}o(l,"getExports");function c(u){s.global?mergeLibSymbols(u,e):r&&Object.assign(r,u),s.exports=u}return o(c,"moduleLoaded"),t.loadAsync?l().then(u=>(c(u),!0)):(c(l()),!0)}o(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=o(()=>{for(var[e,t]of Object.entries(GOT))if(t.value==0){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if(typeof r=="function")t.value=addFunction(r,r.sig);else if(typeof r=="number")t.value=r;else throw new Error(`bad export type for '${e}': ${typeof r}`)}},"reportUndefinedSymbols"),loadDylibs=o(()=>{if(!dynamicLibraries.length){reportUndefinedSymbols();return}addRunDependency("loadDylibs"),dynamicLibraries.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})),Promise.resolve()).then(()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")})},"loadDylibs"),noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":HEAP8[e]=t;break;case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16((e>>1)*2,t);break;case"i32":LE_HEAP_STORE_I32((e>>2)*4,t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32((e>>2)*4,t);break;case"double":LE_HEAP_STORE_F64((e>>3)*8,t);break;case"*":LE_HEAP_STORE_U32((e>>2)*4,t);break;default:abort(`invalid type for setValue: ${r}`)}}o(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=o(()=>{abort("")},"__abort_js");__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=o(()=>nowIsMonotonic,"__emscripten_get_now_is_monotonic");__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=o((e,t,r)=>HEAPU8.copyWithin(e,t,t+r),"__emscripten_memcpy_js");__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=o(()=>Date.now(),"_emscripten_date_now");_emscripten_date_now.sig="d";var _emscripten_get_now;_emscripten_get_now=o(()=>performance.now(),"_emscripten_get_now"),_emscripten_get_now.sig="d";var getHeapMax=o(()=>2147483648,"getHeapMax"),growMemory=o(e=>{var t=wasmMemory.buffer,r=(e-t.byteLength+65535)/65536;try{return wasmMemory.grow(r),updateMemoryViews(),1}catch{}},"growMemory"),_emscripten_resize_heap=o(e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=o((u,d)=>u+(d-u%d)%d,"alignUp"),s=1;s<=4;s*=2){var a=t*(1+.2/s);a=Math.min(a,e+100663296);var l=Math.min(r,n(Math.max(e,a),65536)),c=growMemory(l);if(c)return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=o(e=>52,"_fd_close");_fd_close.sig="ii";var convertI32PairToI53Checked=o((e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+t*4294967296:NaN,"convertI32PairToI53Checked");function _fd_seek(e,t,r,n,s){var a=convertI32PairToI53Checked(t,r);return 70}o(_fd_seek,"_fd_seek"),_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=o((e,t)=>{var r=printCharBuffers[e];t===0||t===10?((e===1?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},"printChar"),_fd_write=o((e,t,r,n)=>{for(var s=0,a=0;a<r;a++){var l=LE_HEAP_LOAD_U32((t>>2)*4),c=LE_HEAP_LOAD_U32((t+4>>2)*4);t+=8;for(var u=0;u<c;u++)printChar(e,HEAPU8[l+u]);s+=c}return LE_HEAP_STORE_U32((n>>2)*4,s),0},"_fd_write");_fd_write.sig="iippp";function _tree_sitter_log_callback(e,t){if(currentLogCallback){let r=UTF8ToString(t);currentLogCallback(r,e!==0)}}o(_tree_sitter_log_callback,"_tree_sitter_log_callback");function _tree_sitter_parse_callback(e,t,r,n,s){let l=currentParseCallback(t,{row:r,column:n});typeof l=="string"?(setValue(s,l.length,"i32"),stringToUTF16(l,e,10240)):setValue(s,0,"i32")}o(_tree_sitter_parse_callback,"_tree_sitter_parse_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=o(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=o(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=o((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=o(e=>{if(e instanceof ExitStatus||e=="unwind")return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=o(e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=o((e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,a=r+n-1,l=0;l<e.length;++l){var c=e.charCodeAt(l);if(c>=55296&&c<=57343){var u=e.charCodeAt(++l);c=65536+((c&1023)<<10)|u&1023}if(c<=127){if(r>=a)break;t[r++]=c}else if(c<=2047){if(r+1>=a)break;t[r++]=192|c>>6,t[r++]=128|c&63}else if(c<=65535){if(r+2>=a)break;t[r++]=224|c>>12,t[r++]=128|c>>6&63,t[r++]=128|c&63}else{if(r+3>=a)break;t[r++]=240|c>>18,t[r++]=128|c>>12&63,t[r++]=128|c>>6&63,t[r++]=128|c&63}}return t[r]=0,r-s},"stringToUTF8Array"),stringToUTF8=o((e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),"stringToUTF8"),stackAlloc=o(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=o(e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},"stringToUTF8OnStack"),stringToUTF16=o((e,t,r)=>{if(r??=2147483647,r<2)return 0;r-=2;for(var n=t,s=r<e.length*2?r/2:e.length,a=0;a<s;++a){var l=e.charCodeAt(a);LE_HEAP_STORE_I16((t>>1)*2,l),t+=2}return LE_HEAP_STORE_I16((t>>1)*2,0),t-n},"stringToUTF16"),AsciiToString=o(e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},"AsciiToString"),wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=o(()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),"___wasm_call_ctors"),___wasm_apply_data_relocs=o(()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),"___wasm_apply_data_relocs"),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,n,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,n,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,n,s,a,l)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,a,l),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,r,n,s,a,l,c,u,d)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,a,l,c,u,d),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,n,s,a,l,c,u,d)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,a,l,c,u,d),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=o((e,t)=>(_setThrew=wasmExports.setThrew)(e,t),"_setThrew"),__emscripten_stack_restore=o(e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),"__emscripten_stack_restore"),__emscripten_stack_alloc=o(e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),"__emscripten_stack_alloc"),_emscripten_stack_get_current=o(()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),"_emscripten_stack_get_current"),dynCall_jiji=Module.dynCall_jiji=(e,t,r,n,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t);Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16;var calledRun;dependenciesFulfilled=o(function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},"runCaller");function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc((r+1)*4),s=n;e.forEach(l=>{LE_HEAP_STORE_U32((s>>2)*4,stringToUTF8OnStack(l)),s+=4}),LE_HEAP_STORE_U32((s>>2)*4,0);try{var a=t(r,n);return exitJS(a,!0),a}catch(l){return handleException(l)}}}o(callMain,"callMain");function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0))return;function t(){calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}o(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),t()},1)):t()}if(o(run,"run"),Module.preInit)for(typeof Module.preInit=="function"&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();let C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/,VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static{o(this,"ParserImpl")}static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let r;if(!t)r=0,t=null;else if(t.constructor===Language){r=t[0];let n=C._ts_language_version(r);if(n<MIN_COMPATIBLE_VERSION||VERSION<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}else throw new Error("Argument must be a Language");return this.language=t,C._ts_parser_set_language(this[0],r),this}getLanguage(){return this.language}parse(t,r,n){if(typeof t=="string")currentParseCallback=o((u,d)=>t.slice(u),"currentParseCallback");else if(typeof t=="function")currentParseCallback=t;else throw new Error("Argument must be a string or a function");this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,a=0;if(n?.includedRanges){s=n.includedRanges.length,a=C._calloc(s,SIZE_OF_RANGE);let u=a;for(let d=0;d<s;d++)marshalRange(u,n.includedRanges[d]),u+=SIZE_OF_RANGE}let l=C._ts_parser_parse_wasm(this[0],this[1],r?r[0]:0,a,s);if(!l)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");let c=new Tree(INTERNAL,l,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,c}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let s=r;for(let a=0;a<t;a++)n[a]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(r)}return n}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(t){C._ts_parser_set_timeout_micros(this[0],t)}setLogger(t){if(!t)t=null;else if(typeof t!="function")throw new Error("Logger callback must be a function");return this.logCallback=t,this}getLogger(){return this.logCallback}}class Tree{static{o(this,"Tree")}constructor(t,r,n,s){assertInternal(t),this[0]=r,this.language=n,this.textCallback=s}copy(){let t=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,t,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(t){marshalEdit(t),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(t,r){let n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,t,"i32"),marshalPoint(n+SIZE_OF_INT,r),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],t[0]);let r=getValue(TRANSFER_BUFFER,"i32"),n=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(r);if(r>0){let a=n;for(let l=0;l<r;l++)s[l]=unmarshalRange(a),a+=SIZE_OF_RANGE;C._free(n)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let s=r;for(let a=0;a<t;a++)n[a]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(r)}return n}}class Node{static{o(this,"Node")}constructor(t,r){assertInternal(t),this.tree=r}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),C._ts_node_is_named_wasm(this.tree[0])===1}get hasError(){return marshalNode(this),C._ts_node_has_error_wasm(this.tree[0])===1}get hasChanges(){return marshalNode(this),C._ts_node_has_changes_wasm(this.tree[0])===1}get isError(){return marshalNode(this),C._ts_node_is_error_wasm(this.tree[0])===1}get isMissing(){return marshalNode(this),C._ts_node_is_missing_wasm(this.tree[0])===1}get isExtra(){return marshalNode(this),C._ts_node_is_extra_wasm(this.tree[0])===1}equals(t){return this.id===t.id}child(t){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],t),unmarshalNode(this.tree)}namedChild(t){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],t),unmarshalNode(this.tree)}childForFieldId(t){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],t),unmarshalNode(this.tree)}childForFieldName(t){let r=this.tree.language.fields.indexOf(t);return r!==-1?this.childForFieldId(r):null}fieldNameForChild(t){marshalNode(this);let r=C._ts_node_field_name_for_child_wasm(this.tree[0],t);return r?AsciiToString(r):null}childrenForFieldName(t){let r=this.tree.language.fields.indexOf(t);return r!==-1&&r!==0?this.childrenForFieldId(r):[]}childrenForFieldId(t){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],t);let r=getValue(TRANSFER_BUFFER,"i32"),n=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(r);if(r>0){let a=n;for(let l=0;l<r;l++)s[l]=unmarshalNode(this.tree,a),a+=SIZE_OF_NODE;C._free(n)}return s}firstChildForIndex(t){marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,t,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(t){marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,t,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(t),t>0){let n=r;for(let s=0;s<t;s++)this._children[s]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(r)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(t),t>0){let n=r;for(let s=0;s<t;s++)this._namedChildren[s]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(r)}}return this._namedChildren}descendantsOfType(t,r,n){Array.isArray(t)||(t=[t]),r||(r=ZERO_POINT),n||(n=ZERO_POINT);let s=[],a=this.tree.language.types;for(let f=0,m=a.length;f<m;f++)t.includes(a[f])&&s.push(f);let l=C._malloc(SIZE_OF_INT*s.length);for(let f=0,m=s.length;f<m;f++)setValue(l+f*SIZE_OF_INT,s[f],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],l,s.length,r.row,r.column,n.row,n.column);let c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),d=new Array(c);if(c>0){let f=u;for(let m=0;m<c;m++)d[m]=unmarshalNode(this.tree,f),f+=SIZE_OF_NODE}return C._free(u),C._free(l),d}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(t,r=t){if(typeof t!="number"||typeof r!="number")throw new Error("Arguments must be numbers");marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,t,"i32"),setValue(n+SIZE_OF_INT,r,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(t,r=t){if(typeof t!="number"||typeof r!="number")throw new Error("Arguments must be numbers");marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,t,"i32"),setValue(n+SIZE_OF_INT,r,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(t,r=t){if(!isPoint(t)||!isPoint(r))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,t),marshalPoint(n+SIZE_OF_POINT,r),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(t,r=t){if(!isPoint(t)||!isPoint(r))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,t),marshalPoint(n+SIZE_OF_POINT,r),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);let t=C._ts_node_to_string_wasm(this.tree[0]),r=AsciiToString(t);return C._free(t),r}}class TreeCursor{static{o(this,"TreeCursor")}constructor(t,r){assertInternal(t),this.tree=r,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){marshalNode(t),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(t){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(t,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],t.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])===1}get nodeIsMissing(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])===1}get nodeText(){marshalTreeCursor(this);let t=C._ts_tree_cursor_start_index_wasm(this.tree[0]),r=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let t=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),t===1}gotoLastChild(){marshalTreeCursor(this);let t=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),t===1}gotoFirstChildForIndex(t){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,t,"i32");let r=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),r===1}gotoFirstChildForPosition(t){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,t);let r=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),r===1}gotoNextSibling(){marshalTreeCursor(this);let t=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),t===1}gotoPreviousSibling(){marshalTreeCursor(this);let t=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),t===1}gotoDescendant(t){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],t),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);let t=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),t===1}}class Language{static{o(this,"Language")}constructor(t,r){assertInternal(t),this[0]=r,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let n=0,s=this.types.length;n<s;n++)C._ts_language_symbol_type(this[0],n)<2&&(this.types[n]=UTF8ToString(C._ts_language_symbol_name(this[0],n)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let n=0,s=this.fields.length;n<s;n++){let a=C._ts_language_field_name_for_id(this[0],n);a!==0?this.fields[n]=UTF8ToString(a):this.fields[n]=null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(t){let r=this.fields.indexOf(t);return r!==-1?r:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,r){let n=lengthBytesUTF8(t),s=C._malloc(n+1);stringToUTF8(t,s,n+1);let a=C._ts_language_symbol_for_name(this[0],s,n,r);return C._free(s),a||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(t){let r=C._ts_language_symbol_name(this[0],t);return r?UTF8ToString(r):null}nodeTypeIsNamed(t){return!!C._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!C._ts_language_type_is_visible_wasm(this[0],t)}nextState(t,r){return C._ts_language_next_state(this[0],t,r)}lookaheadIterator(t){let r=C._ts_lookahead_iterator_new(this[0],t);return r?new LookaheadIterable(INTERNAL,r,this):null}query(t){let r=lengthBytesUTF8(t),n=C._malloc(r+1);stringToUTF8(t,n,r+1);let s=C._ts_query_new(this[0],n,r,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){let x=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=getValue(TRANSFER_BUFFER,"i32"),y=UTF8ToString(n,_).length,b=t.substr(y,100).split(`
[37] Fix | Delete
`)[0],T=b.match(QUERY_WORD_REGEX)[0],v;switch(x){case 2:v=new RangeError(`Bad node name '${T}'`);break;case 3:v=new RangeError(`Bad field name '${T}'`);break;case 4:v=new RangeError(`Bad capture name @${T}`);break;case 5:v=new TypeError(`Bad pattern structure at offset ${y}: '${b}'...`),T="";break;default:v=new SyntaxError(`Bad syntax at offset ${y}: '${b}'...`),T="";break}throw v.index=y,v.length=T.length,C._free(n),v}let a=C._ts_query_string_count(s),l=C._ts_query_capture_count(s),c=C._ts_query_pattern_count(s),u=new Array(l),d=new Array(a);for(let x=0;x<l;x++){let _=C._ts_query_capture_name_for_id(s,x,TRANSFER_BUFFER),y=getValue(TRANSFER_BUFFER,"i32");u[x]=UTF8ToString(_,y)}for(let x=0;x<a;x++){let _=C._ts_query_string_value_for_id(s,x,TRANSFER_BUFFER),y=getValue(TRANSFER_BUFFER,"i32");d[x]=UTF8ToString(_,y)}let f=new Array(c),m=new Array(c),p=new Array(c),g=new Array(c),h=new Array(c);for(let x=0;x<c;x++){let _=C._ts_query_predicates_for_pattern(s,x,TRANSFER_BUFFER),y=getValue(TRANSFER_BUFFER,"i32");g[x]=[],h[x]=[];let b=[],T=_;for(let v=0;v<y;v++){let S=getValue(T,"i32");T+=SIZE_OF_INT;let R=getValue(T,"i32");if(T+=SIZE_OF_INT,S===PREDICATE_STEP_TYPE_CAPTURE)b.push({type:"capture",name:u[R]});else if(S===PREDICATE_STEP_TYPE_STRING)b.push({type:"string",value:d[R]});else if(b.length>0){if(b[0].type!=="string")throw new Error("Predicates must begin with a literal value");let j=b[0].value,K=!0,V=!0,Y;switch(j){case"any-not-eq?":case"not-eq?":K=!1;case"any-eq?":case"eq?":if(b.length!==3)throw new Error(`Wrong number of arguments to \`#${j}\` predicate. Expected 2, got ${b.length-1}`);if(b[1].type!=="capture")throw new Error(`First argument of \`#${j}\` predicate must be a capture. Got "${b[1].value}"`);if(V=!j.startsWith("any-"),b[2].type==="capture"){let D=b[1].name,E=b[2].name;h[x].push(I=>{let A=[],w=[];for(let O of I)O.name===D&&A.push(O.node),O.name===E&&w.push(O.node);let P=o((O,M,$)=>$?O.text===M.text:O.text!==M.text,"compare");return V?A.every(O=>w.some(M=>P(O,M,K))):A.some(O=>w.some(M=>P(O,M,K)))})}else{Y=b[1].name;let D=b[2].value,E=o(A=>A.text===D,"matches"),I=o(A=>A.text!==D,"doesNotMatch");h[x].push(A=>{let w=[];for(let O of A)O.name===Y&&w.push(O.node);let P=K?E:I;return V?w.every(P):w.some(P)})}break;case"any-not-match?":case"not-match?":K=!1;case"any-match?":case"match?":if(b.length!==3)throw new Error(`Wrong number of arguments to \`#${j}\` predicate. Expected 2, got ${b.length-1}.`);if(b[1].type!=="capture")throw new Error(`First argument of \`#${j}\` predicate must be a capture. Got "${b[1].value}".`);if(b[2].type!=="string")throw new Error(`Second argument of \`#${j}\` predicate must be a string. Got @${b[2].value}.`);Y=b[1].name;let N=new RegExp(b[2].value);V=!j.startsWith("any-"),h[x].push(D=>{let E=[];for(let A of D)A.name===Y&&E.push(A.node.text);let I=o((A,w)=>w?N.test(A):!N.test(A),"test");return E.length===0?!K:V?E.every(A=>I(A,K)):E.some(A=>I(A,K))});break;case"set!":if(b.length<2||b.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${b.length-1}.`);if(b.some(D=>D.type!=="string"))throw new Error('Arguments to `#set!` predicate must be a strings.".');f[x]||(f[x]={}),f[x][b[1].value]=b[2]?b[2].value:null;break;case"is?":case"is-not?":if(b.length<2||b.length>3)throw new Error(`Wrong number of arguments to \`#${j}\` predicate. Expected 1 or 2. Got ${b.length-1}.`);if(b.some(D=>D.type!=="string"))throw new Error(`Arguments to \`#${j}\` predicate must be a strings.".`);let k=j==="is?"?m:p;k[x]||(k[x]={}),k[x][b[1].value]=b[2]?b[2].value:null;break;case"not-any-of?":K=!1;case"any-of?":if(b.length<2)throw new Error(`Wrong number of arguments to \`#${j}\` predicate. Expected at least 1. Got ${b.length-1}.`);if(b[1].type!=="capture")throw new Error(`First argument of \`#${j}\` predicate must be a capture. Got "${b[1].value}".`);for(let D=2;D<b.length;D++)if(b[D].type!=="string")throw new Error(`Arguments to \`#${j}\` predicate must be a strings.".`);Y=b[1].name;let z=b.slice(2).map(D=>D.value);h[x].push(D=>{let E=[];for(let I of D)I.name===Y&&E.push(I.node.text);return E.length===0?!K:E.every(I=>z.includes(I))===K});break;default:g[x].push({operator:j,operands:b.slice(1)})}b.length=0}}Object.freeze(f[x]),Object.freeze(m[x]),Object.freeze(p[x])}return C._free(n),new Query(INTERNAL,s,u,h,g,Object.freeze(f),Object.freeze(m),Object.freeze(p))}static load(t){let r;if(t instanceof Uint8Array)r=Promise.resolve(t);else{let n=t;if(typeof process<"u"&&process.versions&&process.versions.node){let s=require("fs");r=Promise.resolve(s.readFileSync(n))}else r=fetch(n).then(s=>s.arrayBuffer().then(a=>{if(s.ok)return new Uint8Array(a);{let l=new TextDecoder("utf-8").decode(a);throw new Error(`Language.load failed with status ${s.status}.
[38] Fix | Delete
[39] Fix | Delete
${l}`)}}))}return r.then(n=>loadWebAssemblyModule(n,{loadAsync:!0})).then(n=>{let s=Object.keys(n),a=s.find(c=>LANGUAGE_FUNCTION_REGEX.test(c)&&!c.includes("external_scanner_"));a||console.log(`Couldn't find language function in WASM file. Symbols:
[40] Fix | Delete
${JSON.stringify(s,null,2)}`);let l=n[a]();return new Language(INTERNAL,l)})}}class LookaheadIterable{static{o(this,"LookaheadIterable")}constructor(t,r,n){assertInternal(t),this[0]=r,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(t){return C._ts_lookahead_iterator_reset_state(this[0],t)}reset(t,r){return C._ts_lookahead_iterator_reset(this[0],t[0],r)?(this.language=t,!0):!1}[Symbol.iterator](){let t=this;return{next(){return C._ts_lookahead_iterator_next(t[0])?{done:!1,value:t.currentType}:{done:!0,value:""}}}}}class Query{static{o(this,"Query")}constructor(t,r,n,s,a,l,c,u){assertInternal(t),this[0]=r,this.captureNames=n,this.textPredicates=s,this.predicates=a,this.setProperties=l,this.assertedProperties=c,this.refutedProperties=u,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(t,{startPosition:r=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:s=0,endIndex:a=0,matchLimit:l=4294967295,maxStartDepth:c=4294967295}={}){if(typeof l!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_matches_wasm(this[0],t.tree[0],r.row,r.column,n.row,n.column,s,a,l,c);let u=getValue(TRANSFER_BUFFER,"i32"),d=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=new Array(u);this.exceededMatchLimit=!!f;let p=0,g=d;for(let h=0;h<u;h++){let x=getValue(g,"i32");g+=SIZE_OF_INT;let _=getValue(g,"i32");g+=SIZE_OF_INT;let y=new Array(_);if(g=unmarshalCaptures(this,t.tree,g,y),this.textPredicates[x].every(b=>b(y))){m[p]={pattern:x,captures:y};let b=this.setProperties[x];b&&(m[p].setProperties=b);let T=this.assertedProperties[x];T&&(m[p].assertedProperties=T);let v=this.refutedProperties[x];v&&(m[p].refutedProperties=v),p++}}return m.length=p,C._free(d),m}captures(t,{startPosition:r=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:s=0,endIndex:a=0,matchLimit:l=4294967295,maxStartDepth:c=4294967295}={}){if(typeof l!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_captures_wasm(this[0],t.tree[0],r.row,r.column,n.row,n.column,s,a,l,c);let u=getValue(TRANSFER_BUFFER,"i32"),d=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),f=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=[];this.exceededMatchLimit=!!f;let p=[],g=d;for(let h=0;h<u;h++){let x=getValue(g,"i32");g+=SIZE_OF_INT;let _=getValue(g,"i32");g+=SIZE_OF_INT;let y=getValue(g,"i32");if(g+=SIZE_OF_INT,p.length=_,g=unmarshalCaptures(this,t.tree,g,p),this.textPredicates[x].every(b=>b(p))){let b=p[y],T=this.setProperties[x];T&&(b.setProperties=T);let v=this.assertedProperties[x];v&&(b.assertedProperties=v);let S=this.refutedProperties[x];S&&(b.refutedProperties=S),m.push(b)}}return C._free(d),m}predicatesForPattern(t){return this.predicates[t]}disableCapture(t){let r=lengthBytesUTF8(t),n=C._malloc(r+1);stringToUTF8(t,n,r+1),C._ts_query_disable_capture(this[0],n,r),C._free(n)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){let n=r-t,s=e.textCallback(t,null,r);for(t+=s.length;t<r;){let a=e.textCallback(t,null,r);if(a&&a.length>0)t+=a.length,s+=a;else break}return t>r&&(s=s.slice(0,n)),s}o(getText,"getText");function unmarshalCaptures(e,t,r,n){for(let s=0,a=n.length;s<a;s++){let l=getValue(r,"i32");r+=SIZE_OF_INT;let c=unmarshalNode(t,r);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[l],node:c}}return r}o(unmarshalCaptures,"unmarshalCaptures");function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}o(assertInternal,"assertInternal");function isPoint(e){return e&&typeof e.row=="number"&&typeof e.column=="number"}o(isPoint,"isPoint");function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}o(marshalNode,"marshalNode");function unmarshalNode(e,t=TRANSFER_BUFFER){let r=getValue(t,"i32");if(t+=SIZE_OF_INT,r===0)return null;let n=getValue(t,"i32");t+=SIZE_OF_INT;let s=getValue(t,"i32");t+=SIZE_OF_INT;let a=getValue(t,"i32");t+=SIZE_OF_INT;let l=getValue(t,"i32"),c=new Node(INTERNAL,e);return c.id=r,c.startIndex=n,c.startPosition={row:s,column:a},c[0]=l,c}o(unmarshalNode,"unmarshalNode");function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}o(marshalTreeCursor,"marshalTreeCursor");function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}o(unmarshalTreeCursor,"unmarshalTreeCursor");function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}o(marshalPoint,"marshalPoint");function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}o(unmarshalPoint,"unmarshalPoint");function marshalRange(e,t){marshalPoint(e,t.startPosition),e+=SIZE_OF_POINT,marshalPoint(e,t.endPosition),e+=SIZE_OF_POINT,setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,setValue(e,t.endIndex,"i32"),e+=SIZE_OF_INT}o(marshalRange,"marshalRange");function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}o(unmarshalRange,"unmarshalRange");function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}o(marshalEdit,"marshalEdit");for(let e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}}))}}return Parser}();typeof exports=="object"&&(module.exports=TreeSitter)});var GC=ee((Pst,VC)=>{"use strict";var Wm=typeof Reflect=="object"?Reflect:null,t$=Wm&&typeof Wm.apply=="function"?Wm.apply:o(function(t,r,n){return Function.prototype.apply.call(t,r,n)},"ReflectApply"),U3;Wm&&typeof Wm.ownKeys=="function"?U3=Wm.ownKeys:Object.getOwnPropertySymbols?U3=o(function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))},"ReflectOwnKeys"):U3=o(function(t){return Object.getOwnPropertyNames(t)},"ReflectOwnKeys");function Nce(e){console&&console.warn&&console.warn(e)}o(Nce,"ProcessEmitWarning");var n$=Number.isNaN||o(function(t){return t!==t},"NumberIsNaN");function vr(){vr.init.call(this)}o(vr,"EventEmitter");VC.exports=vr;VC.exports.once=Mce;vr.EventEmitter=vr;vr.prototype._events=void 0;vr.prototype._eventsCount=0;vr.prototype._maxListeners=void 0;var r$=10;function B3(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}o(B3,"checkListener");Object.defineProperty(vr,"defaultMaxListeners",{enumerable:!0,get:o(function(){return r$},"get"),set:o(function(e){if(typeof e!="number"||e<0||n$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r$=e},"set")});vr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};vr.prototype.setMaxListeners=o(function(t){if(typeof t!="number"||t<0||n$(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},"setMaxListeners");function i$(e){return e._maxListeners===void 0?vr.defaultMaxListeners:e._maxListeners}o(i$,"_getMaxListeners");vr.prototype.getMaxListeners=o(function(){return i$(this)},"getMaxListeners");vr.prototype.emit=o(function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var s=t==="error",a=this._events;if(a!==void 0)s=s&&a.error===void 0;else if(!s)return!1;if(s){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var c=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw c.context=l,c}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")t$(u,this,r);else for(var d=u.length,f=c$(u,d),n=0;n<d;++n)t$(f[n],this,r);return!0},"emit");function o$(e,t,r,n){var s,a,l;if(B3(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),l=a[t]),l===void 0)l=a[t]=r,++e._eventsCount;else if(typeof l=="function"?l=a[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),s=i$(e),s>0&&l.length>s&&!l.warned){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,Nce(c)}return e}o(o$,"_addListener");vr.prototype.addListener=o(function(t,r){return o$(this,t,r,!1)},"addListener");vr.prototype.on=vr.prototype.addListener;vr.prototype.prependListener=o(function(t,r){return o$(this,t,r,!0)},"prependListener");function Oce(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}o(Oce,"onceWrapper");function s$(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=Oce.bind(n);return s.listener=r,n.wrapFn=s,s}o(s$,"_onceWrap");vr.prototype.once=o(function(t,r){return B3(r),this.on(t,s$(this,t,r)),this},"once");vr.prototype.prependOnceListener=o(function(t,r){return B3(r),this.prependListener(t,s$(this,t,r)),this},"prependOnceListener");vr.prototype.removeListener=o(function(t,r){var n,s,a,l,c;if(B3(r),s=this._events,s===void 0)return this;if(n=s[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete s[t],s.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,l=n.length-1;l>=0;l--)if(n[l]===r||n[l].listener===r){c=n[l].listener,a=l;break}if(a<0)return this;a===0?n.shift():Lce(n,a),n.length===1&&(s[t]=n[0]),s.removeListener!==void 0&&this.emit("removeListener",t,c||r)}return this},"removeListener");vr.prototype.off=vr.prototype.removeListener;vr.prototype.removeAllListeners=o(function(t){var r,n,s;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),l;for(s=0;s<a.length;++s)l=a[s],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(s=r.length-1;s>=0;s--)this.removeListener(t,r[s]);return this},"removeAllListeners");function a$(e,t,r){var n=e._events;if(n===void 0)return[];var s=n[t];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?Fce(s):c$(s,s.length)}o(a$,"_listeners");vr.prototype.listeners=o(function(t){return a$(this,t,!0)},"listeners");vr.prototype.rawListeners=o(function(t){return a$(this,t,!1)},"rawListeners");vr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):l$.call(e,t)};vr.prototype.listenerCount=l$;function l$(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}o(l$,"listenerCount");vr.prototype.eventNames=o(function(){return this._eventsCount>0?U3(this._events):[]},"eventNames");function c$(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}o(c$,"arrayClone");function Lce(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}o(Lce,"spliceOne");function Fce(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}o(Fce,"unwrapListeners");function Mce(e,t){return new Promise(function(r,n){function s(l){e.removeListener(t,a),n(l)}o(s,"errorListener");function a(){typeof e.removeListener=="function"&&e.removeListener("error",s),r([].slice.call(arguments))}o(a,"resolver"),u$(e,t,a,{once:!0}),t!=="error"&&Uce(e,s,{once:!0})})}o(Mce,"once");function Uce(e,t,r){typeof e.on=="function"&&u$(e,"error",t,r)}o(Uce,"addErrorHandlerIfEventEmitter");function u$(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,o(function s(a){n.once&&e.removeEventListener(t,s),r(a)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}o(u$,"eventTargetAgnosticAddListener")});var S$=ee((U0t,w$)=>{"use strict";w$.exports=E$;function E$(e,t,r){e instanceof RegExp&&(e=C$(e,r)),t instanceof RegExp&&(t=C$(t,r));var n=I$(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}o(E$,"balanced");function C$(e,t){var r=t.match(e);return r?r[0]:null}o(C$,"maybeMatch");E$.range=I$;function I$(e,t,r){var n,s,a,l,c,u=r.indexOf(e),d=r.indexOf(t,u+1),f=u;if(u>=0&&d>0){if(e===t)return[u,d];for(n=[],a=r.length;f>=0&&!c;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?c=[n.pop(),d]:(s=n.pop(),s<a&&(a=s,l=d),d=r.indexOf(t,f+1)),f=u<d&&u>=0?u:d;n.length&&(c=[a,l])}return c}o(I$,"range")});var L$=ee(($0t,O$)=>{var P$=S$();O$.exports=zce;var R$="\0SLASH"+Math.random()+"\0",A$="\0OPEN"+Math.random()+"\0",iE="\0CLOSE"+Math.random()+"\0",D$="\0COMMA"+Math.random()+"\0",k$="\0PERIOD"+Math.random()+"\0";function nE(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}o(nE,"numeric");function qce(e){return e.split("\\\\").join(R$).split("\\{").join(A$).split("\\}").join(iE).split("\\,").join(D$).split("\\.").join(k$)}o(qce,"escapeBraces");function Hce(e){return e.split(R$).join("\\").split(A$).join("{").split(iE).join("}").split(D$).join(",").split(k$).join(".")}o(Hce,"unescapeBraces");function N$(e){if(!e)return[""];var t=[],r=P$("{","}",e);if(!r)return e.split(",");var n=r.pre,s=r.body,a=r.post,l=n.split(",");l[l.length-1]+="{"+s+"}";var c=N$(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}o(N$,"parseCommaParts");function zce(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Wg(qce(e),!0).map(Hce)):[]}o(zce,"expandTop");function Vce(e){return"{"+e+"}"}o(Vce,"embrace");function Gce(e){return/^-?0\d/.test(e)}o(Gce,"isPadded");function Kce(e,t){return e<=t}o(Kce,"lte");function Yce(e,t){return e>=t}o(Yce,"gte");function Wg(e,t){var r=[],n=P$("{","}",e);if(!n)return[e];var s=n.pre,a=n.post.length?Wg(n.post,!1):[""];if(/\$$/.test(n.pre))for(var l=0;l<a.length;l++){var c=s+"{"+n.body+"}"+a[l];r.push(c)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||d,m=n.body.indexOf(",")>=0;if(!f&&!m)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+iE+n.post,Wg(e)):[e];var p;if(f)p=n.body.split(/\.\./);else if(p=N$(n.body),p.length===1&&(p=Wg(p[0],!1).map(Vce),p.length===1))return a.map(function(Y){return n.pre+p[0]+Y});var g;if(f){var h=nE(p[0]),x=nE(p[1]),_=Math.max(p[0].length,p[1].length),y=p.length==3?Math.abs(nE(p[2])):1,b=Kce,T=x<h;T&&(y*=-1,b=Yce);var v=p.some(Gce);g=[];for(var S=h;b(S,x);S+=y){var R;if(d)R=String.fromCharCode(S),R==="\\"&&(R="");else if(R=String(S),v){var j=_-R.length;if(j>0){var K=new Array(j+1).join("0");S<0?R="-"+K+R.slice(1):R=K+R}}g.push(R)}}else{g=[];for(var V=0;V<p.length;V++)g.push.apply(g,Wg(p[V],!1))}for(var V=0;V<g.length;V++)for(var l=0;l<a.length;l++){var c=s+g[V]+a[l];(!t||f||c)&&r.push(c)}}return r}o(Wg,"expand")});var yh=ee((xvt,NH)=>{"use strict";var Upe="2.0.0",Bpe=Number.MAX_SAFE_INTEGER||9007199254740991,$pe=16,jpe=250,Wpe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];NH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$pe,MAX_SAFE_BUILD_LENGTH:jpe,MAX_SAFE_INTEGER:Bpe,RELEASE_TYPES:Wpe,SEMVER_SPEC_VERSION:Upe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bh=ee((_vt,OH)=>{"use strict";var qpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};OH.exports=qpe});var pp=ee((na,LH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:XI,MAX_SAFE_BUILD_LENGTH:Hpe,MAX_LENGTH:zpe}=yh(),Vpe=bh();na=LH.exports={};var Gpe=na.re=[],Kpe=na.safeRe=[],Me=na.src=[],Ype=na.safeSrc=[],Ue=na.t={},Xpe=0,JI="[a-zA-Z0-9-]",Jpe=[["\\s",1],["\\d",zpe],[JI,Hpe]],Zpe=o(e=>{for(let[t,r]of Jpe)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},"makeSafeRegex"),_t=o((e,t,r)=>{let n=Zpe(t),s=Xpe++;Vpe(e,s,t),Ue[e]=s,Me[s]=t,Ype[s]=n,Gpe[s]=new RegExp(t,r?"g":void 0),Kpe[s]=new RegExp(n,r?"g":void 0)},"createToken");_t("NUMERICIDENTIFIER","0|[1-9]\\d*");_t("NUMERICIDENTIFIERLOOSE","\\d+");_t("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${JI}*`);_t("MAINVERSION",`(${Me[Ue.NUMERICIDENTIFIER]})\\.(${Me[Ue.NUMERICIDENTIFIER]})\\.(${Me[Ue.NUMERICIDENTIFIER]})`);_t("MAINVERSIONLOOSE",`(${Me[Ue.NUMERICIDENTIFIERLOOSE]})\\.(${Me[Ue.NUMERICIDENTIFIERLOOSE]})\\.(${Me[Ue.NUMERICIDENTIFIERLOOSE]})`);_t("PRERELEASEIDENTIFIER",`(?:${Me[Ue.NONNUMERICIDENTIFIER]}|${Me[Ue.NUMERICIDENTIFIER]})`);_t("PRERELEASEIDENTIFIERLOOSE",`(?:${Me[Ue.NONNUMERICIDENTIFIER]}|${Me[Ue.NUMERICIDENTIFIERLOOSE]})`);_t("PRERELEASE",`(?:-(${Me[Ue.PRERELEASEIDENTIFIER]}(?:\\.${Me[Ue.PRERELEASEIDENTIFIER]})*))`);_t("PRERELEASELOOSE",`(?:-?(${Me[Ue.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Me[Ue.PRERELEASEIDENTIFIERLOOSE]})*))`);_t("BUILDIDENTIFIER",`${JI}+`);_t("BUILD",`(?:\\+(${Me[Ue.BUILDIDENTIFIER]}(?:\\.${Me[Ue.BUILDIDENTIFIER]})*))`);_t("FULLPLAIN",`v?${Me[Ue.MAINVERSION]}${Me[Ue.PRERELEASE]}?${Me[Ue.BUILD]}?`);_t("FULL",`^${Me[Ue.FULLPLAIN]}$`);_t("LOOSEPLAIN",`[v=\\s]*${Me[Ue.MAINVERSIONLOOSE]}${Me[Ue.PRERELEASELOOSE]}?${Me[Ue.BUILD]}?`);_t("LOOSE",`^${Me[Ue.LOOSEPLAIN]}$`);_t("GTLT","((?:<|>)?=?)");_t("XRANGEIDENTIFIERLOOSE",`${Me[Ue.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_t("XRANGEIDENTIFIER",`${Me[Ue.NUMERICIDENTIFIER]}|x|X|\\*`);_t("XRANGEPLAIN",`[v=\\s]*(${Me[Ue.XRANGEIDENTIFIER]})(?:\\.(${Me[Ue.XRANGEIDENTIFIER]})(?:\\.(${Me[Ue.XRANGEIDENTIFIER]})(?:${Me[Ue.PRERELEASE]})?${Me[Ue.BUILD]}?)?)?`);_t("XRANGEPLAINLOOSE",`[v=\\s]*(${Me[Ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[Ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[Ue.XRANGEIDENTIFIERLOOSE]})(?:${Me[Ue.PRERELEASELOOSE]})?${Me[Ue.BUILD]}?)?)?`);_t("XRANGE",`^${Me[Ue.GTLT]}\\s*${Me[Ue.XRANGEPLAIN]}$`);_t("XRANGELOOSE",`^${Me[Ue.GTLT]}\\s*${Me[Ue.XRANGEPLAINLOOSE]}$`);_t("COERCEPLAIN",`(^|[^\\d])(\\d{1,${XI}})(?:\\.(\\d{1,${XI}}))?(?:\\.(\\d{1,${XI}}))?`);_t("COERCE",`${Me[Ue.COERCEPLAIN]}(?:$|[^\\d])`);_t("COERCEFULL",Me[Ue.COERCEPLAIN]+`(?:${Me[Ue.PRERELEASE]})?(?:${Me[Ue.BUILD]})?(?:$|[^\\d])`);_t("COERCERTL",Me[Ue.COERCE],!0);_t("COERCERTLFULL",Me[Ue.COERCEFULL],!0);_t("LONETILDE","(?:~>?)");_t("TILDETRIM",`(\\s*)${Me[Ue.LONETILDE]}\\s+`,!0);na.tildeTrimReplace="$1~";_t("TILDE",`^${Me[Ue.LONETILDE]}${Me[Ue.XRANGEPLAIN]}$`);_t("TILDELOOSE",`^${Me[Ue.LONETILDE]}${Me[Ue.XRANGEPLAINLOOSE]}$`);_t("LONECARET","(?:\\^)");_t("CARETTRIM",`(\\s*)${Me[Ue.LONECARET]}\\s+`,!0);na.caretTrimReplace="$1^";_t("CARET",`^${Me[Ue.LONECARET]}${Me[Ue.XRANGEPLAIN]}$`);_t("CARETLOOSE",`^${Me[Ue.LONECARET]}${Me[Ue.XRANGEPLAINLOOSE]}$`);_t("COMPARATORLOOSE",`^${Me[Ue.GTLT]}\\s*(${Me[Ue.LOOSEPLAIN]})$|^$`);_t("COMPARATOR",`^${Me[Ue.GTLT]}\\s*(${Me[Ue.FULLPLAIN]})$|^$`);_t("COMPARATORTRIM",`(\\s*)${Me[Ue.GTLT]}\\s*(${Me[Ue.LOOSEPLAIN]}|${Me[Ue.XRANGEPLAIN]})`,!0);na.comparatorTrimReplace="$1$2$3";_t("HYPHENRANGE",`^\\s*(${Me[Ue.XRANGEPLAIN]})\\s+-\\s+(${Me[Ue.XRANGEPLAIN]})\\s*$`);_t("HYPHENRANGELOOSE",`^\\s*(${Me[Ue.XRANGEPLAINLOOSE]})\\s+-\\s+(${Me[Ue.XRANGEPLAINLOOSE]})\\s*$`);_t("STAR","(<|>)?=?\\s*\\*");_t("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");_t("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Xy=ee((bvt,FH)=>{"use strict";var Qpe=Object.freeze({loose:!0}),e1e=Object.freeze({}),t1e=o(e=>e?typeof e!="object"?Qpe:e:e1e,"parseOptions");FH.exports=t1e});var ZI=ee((Tvt,BH)=>{"use strict";var MH=/^[0-9]+$/,UH=o((e,t)=>{let r=MH.test(e),n=MH.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},"compareIdentifiers"),r1e=o((e,t)=>UH(t,e),"rcompareIdentifiers");BH.exports={compareIdentifiers:UH,rcompareIdentifiers:r1e}});var vi=ee((Evt,jH)=>{"use strict";var Jy=bh(),{MAX_LENGTH:$H,MAX_SAFE_INTEGER:Zy}=yh(),{safeRe:Qy,t:eb}=pp(),n1e=Xy(),{compareIdentifiers:gp}=ZI(),QI=class e{static{o(this,"SemVer")}constructor(t,r){if(r=n1e(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>$H)throw new TypeError(`version is longer than ${$H} characters`);Jy("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Qy[eb.LOOSE]:Qy[eb.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Zy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zy||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let a=+s;if(a>=0&&a<Zy)return a}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Jy("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),gp(this.major,t.major)||gp(this.minor,t.minor)||gp(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=t.prerelease[r];if(Jy("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return gp(n,s)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(Jy("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return gp(n,s)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?Qy[eb.PRERELEASELOOSE]:Qy[eb.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let a=[r,s];n===!1&&(a=[r]),gp(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};jH.exports=QI});var Cf=ee((wvt,qH)=>{"use strict";var WH=vi(),i1e=o((e,t,r=!1)=>{if(e instanceof WH)return e;try{return new WH(e,t)}catch(n){if(!r)return null;throw n}},"parse");qH.exports=i1e});var zH=ee((Pvt,HH)=>{"use strict";var o1e=Cf(),s1e=o((e,t)=>{let r=o1e(e,t);return r?r.version:null},"valid");HH.exports=s1e});var GH=ee((Avt,VH)=>{"use strict";var a1e=Cf(),l1e=o((e,t)=>{let r=a1e(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},"clean");VH.exports=l1e});var XH=ee((kvt,YH)=>{"use strict";var KH=vi(),c1e=o((e,t,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new KH(e instanceof KH?e.version:e,r).inc(t,n,s).version}catch{return null}},"inc");YH.exports=c1e});var QH=ee((Ovt,ZH)=>{"use strict";var JH=Cf(),u1e=o((e,t)=>{let r=JH(e,null,!0),n=JH(t,null,!0),s=r.compare(n);if(s===0)return null;let a=s>0,l=a?r:n,c=a?n:r,u=!!l.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0)return c.minor&&!c.patch?"minor":"patch"}let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"},"diff");ZH.exports=u1e});var tz=ee((Fvt,ez)=>{"use strict";var f1e=vi(),d1e=o((e,t)=>new f1e(e,t).major,"major");ez.exports=d1e});var nz=ee((Uvt,rz)=>{"use strict";var m1e=vi(),p1e=o((e,t)=>new m1e(e,t).minor,"minor");rz.exports=p1e});var oz=ee(($vt,iz)=>{"use strict";var g1e=vi(),h1e=o((e,t)=>new g1e(e,t).patch,"patch");iz.exports=h1e});var az=ee((Wvt,sz)=>{"use strict";var x1e=Cf(),_1e=o((e,t)=>{let r=x1e(e,t);return r&&r.prerelease.length?r.prerelease:null},"prerelease");sz.exports=_1e});var hs=ee((Hvt,cz)=>{"use strict";var lz=vi(),y1e=o((e,t,r)=>new lz(e,r).compare(new lz(t,r)),"compare");cz.exports=y1e});var fz=ee((Vvt,uz)=>{"use strict";var b1e=hs(),v1e=o((e,t,r)=>b1e(t,e,r),"rcompare");uz.exports=v1e});var mz=ee((Kvt,dz)=>{"use strict";var T1e=hs(),C1e=o((e,t)=>T1e(e,t,!0),"compareLoose");dz.exports=C1e});var tb=ee((Xvt,gz)=>{"use strict";var pz=vi(),E1e=o((e,t,r)=>{let n=new pz(e,r),s=new pz(t,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");gz.exports=E1e});var xz=ee((Zvt,hz)=>{"use strict";var I1e=tb(),w1e=o((e,t)=>e.sort((r,n)=>I1e(r,n,t)),"sort");hz.exports=w1e});var yz=ee((eTt,_z)=>{"use strict";var S1e=tb(),P1e=o((e,t)=>e.sort((r,n)=>S1e(n,r,t)),"rsort");_z.exports=P1e});var vh=ee((rTt,bz)=>{"use strict";var R1e=hs(),A1e=o((e,t,r)=>R1e(e,t,r)>0,"gt");bz.exports=A1e});var rb=ee((iTt,vz)=>{"use strict";var D1e=hs(),k1e=o((e,t,r)=>D1e(e,t,r)<0,"lt");vz.exports=k1e});var ew=ee((sTt,Tz)=>{"use strict";var N1e=hs(),O1e=o((e,t,r)=>N1e(e,t,r)===0,"eq");Tz.exports=O1e});var tw=ee((lTt,Cz)=>{"use strict";var L1e=hs(),F1e=o((e,t,r)=>L1e(e,t,r)!==0,"neq");Cz.exports=F1e});var nb=ee((uTt,Ez)=>{"use strict";var M1e=hs(),U1e=o((e,t,r)=>M1e(e,t,r)>=0,"gte");Ez.exports=U1e});var ib=ee((dTt,Iz)=>{"use strict";var B1e=hs(),$1e=o((e,t,r)=>B1e(e,t,r)<=0,"lte");Iz.exports=$1e});var rw=ee((pTt,wz)=>{"use strict";var j1e=ew(),W1e=tw(),q1e=vh(),H1e=nb(),z1e=rb(),V1e=ib(),G1e=o((e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return j1e(e,r,n);case"!=":return W1e(e,r,n);case">":return q1e(e,r,n);case">=":return H1e(e,r,n);case"<":return z1e(e,r,n);case"<=":return V1e(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");wz.exports=G1e});var Pz=ee((hTt,Sz)=>{"use strict";var K1e=vi(),Y1e=Cf(),{safeRe:ob,t:sb}=pp(),X1e=o((e,t)=>{if(e instanceof K1e)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ob[sb.COERCEFULL]:ob[sb.COERCE]);else{let u=t.includePrerelease?ob[sb.COERCERTLFULL]:ob[sb.COERCERTL],d;for(;(d=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||d.index+d[0].length!==r.index+r[0].length)&&(r=d),u.lastIndex=d.index+d[1].length+d[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",c=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Y1e(`${n}.${s}.${a}${l}${c}`,t)},"coerce");Sz.exports=X1e});var Az=ee((_Tt,Rz)=>{"use strict";var nw=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(t,r)}return this}};Rz.exports=nw});var xs=ee((bTt,Oz)=>{"use strict";var J1e=/\s+/g,iw=class e{static{o(this,"Range")}constructor(t,r){if(r=Q1e(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof ow)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(J1e," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!kz(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&sge(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&ige)|(this.options.loose&&oge))+":"+t,s=Dz.get(n);if(s)return s;let a=this.options.loose,l=a?oo[Ni.HYPHENRANGELOOSE]:oo[Ni.HYPHENRANGE];t=t.replace(l,hge(this.options.includePrerelease)),Ur("hyphen replace",t),t=t.replace(oo[Ni.COMPARATORTRIM],tge),Ur("comparator trim",t),t=t.replace(oo[Ni.TILDETRIM],rge),Ur("tilde trim",t),t=t.replace(oo[Ni.CARETTRIM],nge),Ur("caret trim",t);let c=t.split(" ").map(m=>age(m,this.options)).join(" ").split(/\s+/).map(m=>gge(m,this.options));a&&(c=c.filter(m=>(Ur("loose invalid filter",m,this.options),!!m.match(oo[Ni.COMPARATORLOOSE])))),Ur("range list",c);let u=new Map,d=c.map(m=>new ow(m,this.options));for(let m of d){if(kz(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return Dz.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>Nz(n,r)&&t.set.some(s=>Nz(s,r)&&n.every(a=>s.every(l=>a.intersects(l,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ege(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(xge(this.set[r],t,this.options))return!0;return!1}};Oz.exports=iw;var Z1e=Az(),Dz=new Z1e,Q1e=Xy(),ow=Th(),Ur=bh(),ege=vi(),{safeRe:oo,t:Ni,comparatorTrimReplace:tge,tildeTrimReplace:rge,caretTrimReplace:nge}=pp(),{FLAG_INCLUDE_PRERELEASE:ige,FLAG_LOOSE:oge}=yh(),kz=o(e=>e.value==="<0.0.0-0","isNullSet"),sge=o(e=>e.value==="","isAny"),Nz=o((e,t)=>{let r=!0,n=e.slice(),s=n.pop();for(;r&&n.length;)r=n.every(a=>s.intersects(a,t)),s=n.pop();return r},"isSatisfiable"),age=o((e,t)=>(Ur("comp",e,t),e=uge(e,t),Ur("caret",e),e=lge(e,t),Ur("tildes",e),e=dge(e,t),Ur("xrange",e),e=pge(e,t),Ur("stars",e),e),"parseComparator"),Oi=o(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),lge=o((e,t)=>e.trim().split(/\s+/).map(r=>cge(r,t)).join(" "),"replaceTildes"),cge=o((e,t)=>{let r=t.loose?oo[Ni.TILDELOOSE]:oo[Ni.TILDE];return e.replace(r,(n,s,a,l,c)=>{Ur("tilde",e,n,s,a,l,c);let u;return Oi(s)?u="":Oi(a)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:Oi(l)?u=`>=${s}.${a}.0 <${s}.${+a+1}.0-0`:c?(Ur("replaceTilde pr",c),u=`>=${s}.${a}.${l}-${c} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${l} <${s}.${+a+1}.0-0`,Ur("tilde return",u),u})},"replaceTilde"),uge=o((e,t)=>e.trim().split(/\s+/).map(r=>fge(r,t)).join(" "),"replaceCarets"),fge=o((e,t)=>{Ur("caret",e,t);let r=t.loose?oo[Ni.CARETLOOSE]:oo[Ni.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(s,a,l,c,u)=>{Ur("caret",e,s,a,l,c,u);let d;return Oi(a)?d="":Oi(l)?d=`>=${a}.0.0${n} <${+a+1}.0.0-0`:Oi(c)?a==="0"?d=`>=${a}.${l}.0${n} <${a}.${+l+1}.0-0`:d=`>=${a}.${l}.0${n} <${+a+1}.0.0-0`:u?(Ur("replaceCaret pr",u),a==="0"?l==="0"?d=`>=${a}.${l}.${c}-${u} <${a}.${l}.${+c+1}-0`:d=`>=${a}.${l}.${c}-${u} <${a}.${+l+1}.0-0`:d=`>=${a}.${l}.${c}-${u} <${+a+1}.0.0-0`):(Ur("no pr"),a==="0"?l==="0"?d=`>=${a}.${l}.${c}${n} <${a}.${l}.${+c+1}-0`:d=`>=${a}.${l}.${c}${n} <${a}.${+l+1}.0-0`:d=`>=${a}.${l}.${c} <${+a+1}.0.0-0`),Ur("caret return",d),d})},"replaceCaret"),dge=o((e,t)=>(Ur("replaceXRanges",e,t),e.split(/\s+/).map(r=>mge(r,t)).join(" ")),"replaceXRanges"),mge=o((e,t)=>{e=e.trim();let r=t.loose?oo[Ni.XRANGELOOSE]:oo[Ni.XRANGE];return e.replace(r,(n,s,a,l,c,u)=>{Ur("xRange",e,n,s,a,l,c,u);let d=Oi(a),f=d||Oi(l),m=f||Oi(c),p=m;return s==="="&&p&&(s=""),u=t.includePrerelease?"-0":"",d?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(f&&(l=0),c=0,s===">"?(s=">=",f?(a=+a+1,l=0,c=0):(l=+l+1,c=0)):s==="<="&&(s="<",f?a=+a+1:l=+l+1),s==="<"&&(u="-0"),n=`${s+a}.${l}.${c}${u}`):f?n=`>=${a}.0.0${u} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${l}.0${u} <${a}.${+l+1}.0-0`),Ur("xRange return",n),n})},"replaceXRange"),pge=o((e,t)=>(Ur("replaceStars",e,t),e.trim().replace(oo[Ni.STAR],"")),"replaceStars"),gge=o((e,t)=>(Ur("replaceGTE0",e,t),e.trim().replace(oo[t.includePrerelease?Ni.GTE0PRE:Ni.GTE0],"")),"replaceGTE0"),hge=o(e=>(t,r,n,s,a,l,c,u,d,f,m,p)=>(Oi(n)?r="":Oi(s)?r=`>=${n}.0.0${e?"-0":""}`:Oi(a)?r=`>=${n}.${s}.0${e?"-0":""}`:l?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Oi(d)?u="":Oi(f)?u=`<${+d+1}.0.0-0`:Oi(m)?u=`<${d}.${+f+1}.0-0`:p?u=`<=${d}.${f}.${m}-${p}`:e?u=`<${d}.${f}.${+m+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),"hyphenReplace"),xge=o((e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ur(e[n].semver),e[n].semver!==ow.ANY&&e[n].semver.prerelease.length>0){let s=e[n].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0},"testSet")});var Th=ee((TTt,$z)=>{"use strict";var Ch=Symbol("SemVer ANY"),lw=class e{static{o(this,"Comparator")}static get ANY(){return Ch}constructor(t,r){if(r=Lz(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),aw("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Ch?this.value="":this.value=this.operator+this.semver.version,aw("comp",this)}parse(t){let r=this.options.loose?Fz[Mz.COMPARATORLOOSE]:Fz[Mz.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Uz(n[2],this.options.loose):this.semver=Ch}toString(){return this.value}test(t){if(aw("Comparator.test",t,this.options.loose),this.semver===Ch||t===Ch)return!0;if(typeof t=="string")try{t=new Uz(t,this.options)}catch{return!1}return sw(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Bz(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new Bz(this.value,r).test(t.semver):(r=Lz(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||sw(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||sw(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};$z.exports=lw;var Lz=Xy(),{safeRe:Fz,t:Mz}=pp(),sw=rw(),aw=bh(),Uz=vi(),Bz=xs()});var Eh=ee((ETt,jz)=>{"use strict";var _ge=xs(),yge=o((e,t,r)=>{try{t=new _ge(t,r)}catch{return!1}return t.test(e)},"satisfies");jz.exports=yge});var qz=ee((wTt,Wz)=>{"use strict";var bge=xs(),vge=o((e,t)=>new bge(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Wz.exports=vge});var zz=ee((PTt,Hz)=>{"use strict";var Tge=vi(),Cge=xs(),Ege=o((e,t,r)=>{let n=null,s=null,a=null;try{a=new Cge(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||s.compare(l)===-1)&&(n=l,s=new Tge(n,r))}),n},"maxSatisfying");Hz.exports=Ege});var Gz=ee((ATt,Vz)=>{"use strict";var Ige=vi(),wge=xs(),Sge=o((e,t,r)=>{let n=null,s=null,a=null;try{a=new wge(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||s.compare(l)===1)&&(n=l,s=new Ige(n,r))}),n},"minSatisfying");Vz.exports=Sge});var Xz=ee((kTt,Yz)=>{"use strict";var cw=vi(),Pge=xs(),Kz=vh(),Rge=o((e,t)=>{e=new Pge(e,t);let r=new cw("0.0.0");if(e.test(r)||(r=new cw("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let s=e.set[n],a=null;s.forEach(l=>{let c=new cw(l.semver.version);switch(l.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!a||Kz(c,a))&&(a=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||Kz(r,a))&&(r=a)}return r&&e.test(r)?r:null},"minVersion");Yz.exports=Rge});var Zz=ee((OTt,Jz)=>{"use strict";var Age=xs(),Dge=o((e,t)=>{try{return new Age(e,t).range||"*"}catch{return null}},"validRange");Jz.exports=Dge});var ab=ee((FTt,rV)=>{"use strict";var kge=vi(),tV=Th(),{ANY:Nge}=tV,Oge=xs(),Lge=Eh(),Qz=vh(),eV=rb(),Fge=ib(),Mge=nb(),Uge=o((e,t,r,n)=>{e=new kge(e,n),t=new Oge(t,n);let s,a,l,c,u;switch(r){case">":s=Qz,a=Fge,l=eV,c=">",u=">=";break;case"<":s=eV,a=Mge,l=Qz,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lge(e,t,n))return!1;for(let d=0;d<t.set.length;++d){let f=t.set[d],m=null,p=null;if(f.forEach(g=>{g.semver===Nge&&(g=new tV(">=0.0.0")),m=m||g,p=p||g,s(g.semver,m.semver,n)?m=g:l(g.semver,p.semver,n)&&(p=g)}),m.operator===c||m.operator===u||(!p.operator||p.operator===c)&&a(e,p.semver))return!1;if(p.operator===u&&l(e,p.semver))return!1}return!0},"outside");rV.exports=Uge});var iV=ee((UTt,nV)=>{"use strict";var Bge=ab(),$ge=o((e,t,r)=>Bge(e,t,">",r),"gtr");nV.exports=$ge});var sV=ee(($Tt,oV)=>{"use strict";var jge=ab(),Wge=o((e,t,r)=>jge(e,t,"<",r),"ltr");oV.exports=Wge});var cV=ee((WTt,lV)=>{"use strict";var aV=xs(),qge=o((e,t,r)=>(e=new aV(e,r),t=new aV(t,r),e.intersects(t,r)),"intersects");lV.exports=qge});var fV=ee((HTt,uV)=>{"use strict";var Hge=Eh(),zge=hs();uV.exports=(e,t,r)=>{let n=[],s=null,a=null,l=e.sort((f,m)=>zge(f,m,r));for(let f of l)Hge(f,t,r)?(a=f,s||(s=f)):(a&&n.push([s,a]),a=null,s=null);s&&n.push([s,null]);let c=[];for(let[f,m]of n)f===m?c.push(f):!m&&f===l[0]?c.push("*"):m?f===l[0]?c.push(`<=${m}`):c.push(`${f} - ${m}`):c.push(`>=${f}`);let u=c.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return u.length<d.length?u:t}});var xV=ee((zTt,hV)=>{"use strict";var dV=xs(),fw=Th(),{ANY:uw}=fw,Ih=Eh(),dw=hs(),Vge=o((e,t,r={})=>{if(e===t)return!0;e=new dV(e,r),t=new dV(t,r);let n=!1;e:for(let s of e.set){for(let a of t.set){let l=Kge(s,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},"subset"),Gge=[new fw(">=0.0.0-0")],mV=[new fw(">=0.0.0")],Kge=o((e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===uw){if(t.length===1&&t[0].semver===uw)return!0;r.includePrerelease?e=Gge:e=mV}if(t.length===1&&t[0].semver===uw){if(r.includePrerelease)return!0;t=mV}let n=new Set,s,a;for(let g of e)g.operator===">"||g.operator===">="?s=pV(s,g,r):g.operator==="<"||g.operator==="<="?a=gV(a,g,r):n.add(g.semver);if(n.size>1)return null;let l;if(s&&a){if(l=dw(s.semver,a.semver,r),l>0)return null;if(l===0&&(s.operator!==">="||a.operator!=="<="))return null}for(let g of n){if(s&&!Ih(g,String(s),r)||a&&!Ih(g,String(a),r))return null;for(let h of t)if(!Ih(g,String(h),r))return!1;return!0}let c,u,d,f,m=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;m&&m.prerelease.length===1&&a.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let g of t){if(f=f||g.operator===">"||g.operator===">=",d=d||g.operator==="<"||g.operator==="<=",s){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(c=pV(s,g,r),c===g&&c!==s)return!1}else if(s.operator===">="&&!Ih(s.semver,String(g),r))return!1}if(a){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator==="<"||g.operator==="<="){if(u=gV(a,g,r),u===g&&u!==a)return!1}else if(a.operator==="<="&&!Ih(a.semver,String(g),r))return!1}if(!g.operator&&(a||s)&&l!==0)return!1}return!(s&&d&&!a&&l!==0||a&&f&&!s&&l!==0||p||m)},"simpleSubset"),pV=o((e,t,r)=>{if(!e)return t;let n=dw(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),gV=o((e,t,r)=>{if(!e)return t;let n=dw(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");hV.exports=Vge});var vV=ee((GTt,bV)=>{"use strict";var mw=pp(),_V=yh(),Yge=vi(),yV=ZI(),Xge=Cf(),Jge=zH(),Zge=GH(),Qge=XH(),ehe=QH(),the=tz(),rhe=nz(),nhe=oz(),ihe=az(),ohe=hs(),she=fz(),ahe=mz(),lhe=tb(),che=xz(),uhe=yz(),fhe=vh(),dhe=rb(),mhe=ew(),phe=tw(),ghe=nb(),hhe=ib(),xhe=rw(),_he=Pz(),yhe=Th(),bhe=xs(),vhe=Eh(),The=qz(),Che=zz(),Ehe=Gz(),Ihe=Xz(),whe=Zz(),She=ab(),Phe=iV(),Rhe=sV(),Ahe=cV(),Dhe=fV(),khe=xV();bV.exports={parse:Xge,valid:Jge,clean:Zge,inc:Qge,diff:ehe,major:the,minor:rhe,patch:nhe,prerelease:ihe,compare:ohe,rcompare:she,compareLoose:ahe,compareBuild:lhe,sort:che,rsort:uhe,gt:fhe,lt:dhe,eq:mhe,neq:phe,gte:ghe,lte:hhe,cmp:xhe,coerce:_he,Comparator:yhe,Range:bhe,satisfies:vhe,toComparators:The,maxSatisfying:Che,minSatisfying:Ehe,minVersion:Ihe,validRange:whe,outside:She,gtr:Phe,ltr:Rhe,intersects:Ahe,simplifyRange:Dhe,subset:khe,SemVer:Yge,re:mw.re,src:mw.src,tokens:mw.t,SEMVER_SPEC_VERSION:_V.SEMVER_SPEC_VERSION,RELEASE_TYPES:_V.RELEASE_TYPES,compareIdentifiers:yV.compareIdentifiers,rcompareIdentifiers:yV.rcompareIdentifiers}});var Vhe={};t0(Vhe,{activate:()=>$he,globalStateUserAcknowledgedStatusBarDeprecationKey:()=>Uhe,onDeactivate:()=>PV});module.exports=Rh(Vhe);var Ah=class{constructor(t){this.userInfo=t}static{o(this,"CopilotUserInfoWrapper")}get sku(){return this.userInfo?.access_type_sku}get isFreeUser(){return this.sku==="free_limited_copilot"}get copilotPlan(){if(this.isFreeUser)return"free";let t=this.userInfo?.copilot_plan;switch(t){case"individual":case"individual_pro":case"business":case"enterprise":return t;default:return"individual"}}get quotaInfo(){return{quota_snapshots:this.userInfo?.quota_snapshots,quota_reset_date:this.userInfo?.quota_reset_date}}get raw(){return this.userInfo}};function gb(e){return["a5db0bcaae94032fe715fb34a5e4bce2","7184f66dfcee98cb5f08a1cb936d5225","faef89d9169d5eacf1d8c8dde3412e37","4535c7beffc844b46bb1ed4aa04d759a"].find(r=>e.includes(r))}o(gb,"findKnownOrg");function vw(e){let t=e.organization_list??[];return gb(t)??""}o(vw,"getUserKind");var Vr="github.copilot",Dh="github-enterprise";var ol=class extends Error{static{o(this,"CopilotAuthError")}constructor(t,r){super(t,{cause:r}),this.name="CopilotAuthError"}};var r0=class{static{o(this,"InlineCompletionsUnification")}},Cw={codeUnification:!1,modelUnification:!1,expAssignments:[]};var ys=class e{static{o(this,"ExpConfig")}constructor(t,r,n){this.variables=t,this.assignmentContext=r,this.features=n}static createFallbackConfig(t,r){return kh(t,{reason:r}),this.createEmptyConfig()}static createEmptyConfig(){return new e({},"","")}addToTelemetry(t,r){let s=t.get(r0).inlineCompletionsUnificationState.expAssignments.filter(l=>!this.assignmentContext.includes(l)),a=[this.assignmentContext,...s].filter(Boolean).join(";");r.properties["VSCode.ABExp.Features"]=this.features,r.properties["abexp.assignmentcontext"]=a}};var Li="X-Copilot-RelatedPluginVersion-",Uc=(P=>(P.Market="X-MSEdge-Market",P.CorpNet="X-FD-Corpnet",P.Build="X-VSCode-Build",P.ApplicationVersion="X-VSCode-AppVersion",P.TargetPopulation="X-VSCode-TargetPopulation",P.ClientId="X-MSEdge-ClientId",P.ExtensionName="X-VSCode-ExtensionName",P.ExtensionVersion="X-VSCode-ExtensionVersion",P.ExtensionRelease="X-VSCode-ExtensionRelease",P.CompletionsInChatExtensionVersion="X-VSCode-CompletionsInChatExtensionVersion",P.Language="X-VSCode-Language",P.CopilotClientTimeBucket="X-Copilot-ClientTimeBucket",P.CopilotEngine="X-Copilot-Engine",P.CopilotOverrideEngine="X-Copilot-OverrideEngine",P.CopilotRepository="X-Copilot-Repository",P.CopilotFileType="X-Copilot-FileType",P.CopilotUserKind="X-Copilot-UserKind",P.CopilotDogfood="X-Copilot-Dogfood",P.CopilotCustomModel="X-Copilot-CustomModel",P.CopilotOrgs="X-Copilot-Orgs",P.CopilotCustomModelNames="X-Copilot-CustomModelNames",P.CopilotTrackingId="X-Copilot-CopilotTrackingId",P.CopilotClientVersion="X-Copilot-ClientVersion",P.CopilotRelatedPluginVersionCppTools=Li+"msvscodecpptools",P.CopilotRelatedPluginVersionCMakeTools=Li+"msvscodecmaketools",P.CopilotRelatedPluginVersionMakefileTools=Li+"msvscodemakefiletools",P.CopilotRelatedPluginVersionCSharpDevKit=Li+"msdotnettoolscsdevkit",P.CopilotRelatedPluginVersionPython=Li+"mspythonpython",P.CopilotRelatedPluginVersionPylance=Li+"mspythonvscodepylance",P.CopilotRelatedPluginVersionJavaPack=Li+"vscjavavscodejavapack",P.CopilotRelatedPluginVersionTypescript=Li+"vscodetypescriptlanguagefeatures",P.CopilotRelatedPluginVersionTypescriptNext=Li+"msvscodevscodetypescriptnext",P.CopilotRelatedPluginVersionCSharp=Li+"msdotnettoolscsharp",P.CopilotRelatedPluginVersionGithubCopilotChat=Li+"githubcopilotchat",P.CopilotRelatedPluginVersionGithubCopilot=Li+"githubcopilot",P))(Uc||{});var LV={"X-Copilot-ClientTimeBucket":"timeBucket","X-Copilot-OverrideEngine":"engine","X-Copilot-Repository":"repo","X-Copilot-FileType":"fileType","X-Copilot-UserKind":"userKind"},Mc=class e{constructor(t){this.filters=t;for(let[r,n]of Object.entries(this.filters))n===""&&delete this.filters[r]}static{o(this,"FilterSettings")}extends(t){for(let[r,n]of Object.entries(t.filters))if(this.filters[r]!==n)return!1;return!0}addToTelemetry(t){for(let[r,n]of Object.entries(this.filters)){let s=LV[r];s!==void 0&&(t.properties[s]=n)}}stringify(){let t=Object.keys(this.filters);return t.sort(),t.map(r=>`${r}:${this.filters[r]}`).join(";")}toHeaders(){return{...this.filters}}withChange(t,r){return new e({...this.filters,[t]:r})}};function dn(e,t){let r=Uo(e,t,"event.CopilotToken");return e.get(Kt).onDidChangeTokenResult(n=>{n.copilotToken&&r(n.copilotToken)})}o(dn,"onCopilotToken");function hb(e){let t=e.getTokenValue("tid"),r=e.organization_list,n=e.enterprise_list,s=e.getTokenValue("sku");if(!t)return;let a={copilot_trackingId:t};return r&&(a.organizations_list=r.toString()),n&&(a.enterprise_list=n.toString()),s&&(a.sku=s),a}o(hb,"propertiesFromCopilotToken");var Fi=class{constructor(t){this.#e={};this.optedIn=!1;this.ftFlag="";dn(t,r=>this.updateFromToken(r))}static{o(this,"TelemetryUserConfig")}#e;getProperties(){return this.#e}get trackingId(){return this.#e.copilot_trackingId}updateFromToken(t){let r=hb(t);r&&(this.#e=r,this.optedIn=t.getTokenValue("rt")==="1",this.ftFlag=t.getTokenValue("ft")??"")}};var x5=Pt(yp()),_5=Pt(Bc());var FV=/^(\s+at)?(.*?)(@|\s\(|\s)([^(\n]+?)(:\d+)?(:\d+)?(\)?)$/;function MV(e){let t={type:e.name,value:e.message},r=e.stack?.replace(/^.*?:\d+\n.*\n *\^?\n\n/,"");if(r?.startsWith(e.toString()+`
[41] Fix | Delete
`)){t.stacktrace=[];for(let n of r.slice(e.toString().length+1).split(/\n/).reverse()){let s=n.match(FV),a={filename:"",function:""};s&&(a.function=s[2]?.trim()?.replace(/^[^.]{1,2}(\.|$)/,"_$1")??a.function,a.filename=(s[4]?.trim()??a.filename).replace(/^\.\/dist\//,"/github-copilot/dist/"),s[5]&&s[5]!==":0"&&(a.lineno=s[5].slice(1)),s[6]&&s[5]!==":0"&&(a.colno=s[6].slice(1)),a.in_app=!/[[<:]|(?:^|\/)node_modules\//.test(a.filename)),t.stacktrace.push(a)}}return t}o(MV,"buildExceptionDetail");function UV(e,t){let r=e.get(ir),n=r.getEditorInfo(),s=e.get(Fi),a={"#editor":n.devName??n.name,"#editor_version":n0({name:n.devName??n.name,version:n.version}),"#plugin":r.getEditorPluginInfo().name,"#plugin_version":n0(r.getEditorPluginInfo()),"#session_id":e.get(mn).sessionId,"#machine_id":e.get(mn).machineId,"#architecture":_5.arch(),"#os_platform":_5.platform(),...t};return s.trackingId&&(a.user=s.trackingId,a["#tracking_id"]=s.trackingId),a}o(UV,"buildContext");function NS(e,t){let r=e.get(wn),n=e.get(ir).getEditorInfo(),s=typeof process<"u"?process.versions.node:"web",a={app:"copilot-client",rollup_id:"auto",platform:"node",release:r.getBuildType()!=="dev"?`copilot-client@${r.getVersion()}`:void 0,deployed_to:r.getBuildType(),catalog_service:n.name==="vscode"?"CopilotCompletionsVSCode":"CopilotLanguageServer",context:UV(e,{"#node_version":s}),sensitive_context:{}},l=[];a.exception_detail=[];let c=0,u=t;for(;u instanceof Error&&c<10;){let f=MV(u);a.exception_detail.unshift(f),l.unshift([u,f]),c+=1,u=u.cause}let d=[];for(let[f,m]of l)if(m.stacktrace&&m.stacktrace.length>0){d.push(`${m.type}: ${f.code??""}`);let p=[...m.stacktrace].reverse();for(let g of p)if(g.filename?.startsWith("/github-copilot/"))return a;for(let g of p)if(g.in_app){d.push(`${g.filename?.replace(/^\.\//,"")}:${g.lineno}:${g.colno}`);break}d.push(`${p[0].filename?.replace(/^\.\//,"")}`)}else return a;return a.exception_detail.length>0&&(a.rollup_id=(0,x5.SHA256)(x5.enc.Utf16.parse(d.join(`
[42] Fix | Delete
`))).toString()),a}o(NS,"buildPayload");var bp=class{static{o(this,"FailingTelemetryReporter")}sendTelemetryEvent(t,r,n){throw new Error("Telemetry disabled")}sendTelemetryErrorEvent(t,r,n,s){throw new Error("Telemetry disabled")}dispose(){return Promise.resolve()}hackOptOutListener(){}};var LS=Pt(yp());var Ut=class{constructor(t=10){this.valueMap=new Map;if(t<1)throw new Error("Size limit must be at least 1");this.sizeLimit=t}static{o(this,"LRUCacheMap")}set(t,r){if(this.has(t))this.valueMap.delete(t);else if(this.valueMap.size>=this.sizeLimit){let n=this.valueMap.keys().next().value;this.delete(n)}return this.valueMap.set(t,r),this}get(t){if(this.valueMap.has(t)){let r=this.valueMap.get(t);return this.valueMap.delete(t),this.valueMap.set(t,r),r}}delete(t){return this.valueMap.delete(t)}clear(){this.valueMap.clear()}get size(){return this.valueMap.size}keys(){return new Map(this.valueMap).keys()}values(){return new Map(this.valueMap).values()}entries(){return new Map(this.valueMap).entries()}[Symbol.iterator](){return this.entries()}has(t){return this.valueMap.has(t)}forEach(t,r){new Map(this.valueMap).forEach(t,r)}get[Symbol.toStringTag](){return"LRUCacheMap"}peek(t){return this.valueMap.get(t)}},vp=class extends Ut{constructor(r,n=120*1e3){super(r);this.defaultTtl=n;this.expiration=new Map}static{o(this,"LRUExpirationCacheMap")}has(r){let n=!1,s=this.expiration.get(r);return s!==void 0&&(s>performance.now()&&(n=super.has(r)),n||this.delete(r)),n}get(r){let n=this.expiration.get(r);if(n!==void 0){if(n>performance.now())return super.get(r);this.delete(r)}}peek(r){let n=this.expiration.get(r);if(n!==void 0){if(n>performance.now())return super.peek(r);this.delete(r)}}set(r,n,s=this.defaultTtl){if(s<=0)throw new Error("TTL must be greater than 0");let a=super.set(r,n);return this.expiration.set(r,performance.now()+s),a}clear(){super.clear(),this.expiration.clear()}delete(r){return this.expiration.delete(r),super.delete(r)}get[Symbol.toStringTag](){return"LRUExpirationCacheMap"}};var $c=class{constructor(t=5){this.perTenMinutes=t;this.cache=new Ut}static{o(this,"ExceptionRateLimiter")}isThrottled(t){let r=Date.now(),n=this.cache.get(t)||new Array(this.perTenMinutes).fill(0);return r-n[0]<6e5?!0:(n.push(r),n.shift(),this.cache.set(t,n),!1)}};var ll=class e{constructor(t){this.flags=t}static{o(this,"RuntimeMode")}static fromEnvironment(t,r=process.argv,n=process.env){return new e({debug:FS(r,n),verboseLogging:jV(r,n),testMode:t,simulation:$V(n)})}};function bs(e){return e.get(ll).flags.testMode}o(bs,"isRunningInTest");function wf(e){return bs(e)}o(wf,"shouldFailForDebugPurposes");function yb(e){return e.get(ll).flags.debug}o(yb,"isDebugEnabled");function FS(e,t){return e.includes("--debug")||bb(t,"DEBUG")}o(FS,"determineDebugFlag");function $V(e){return bb(e,"SIMULATION")}o($V,"determineSimulationFlag");function MS(e){return e.get(ll).flags.simulation}o(MS,"isRunningInSimulation");function jV(e,t){return t.COPILOT_AGENT_VERBOSE==="1"||t.COPILOT_AGENT_VERBOSE?.toLowerCase()==="true"||bb(t,"VERBOSE")||FS(e,t)}o(jV,"determineVerboseLoggingEnabled");function bb(e,t){for(let r of["GH_COPILOT_","GITHUB_COPILOT_"]){let n=e[`${r}${t}`];if(n)return n==="1"||n?.toLowerCase()==="true"}return!1}o(bb,"determineEnvFlagEnabled");var so=class{constructor(){this.promises=new Set}static{o(this,"PromiseQueue")}register(t){this.promises.add(t),t.finally(()=>this.promises.delete(t))}async flush(){await Promise.allSettled(this.promises)}};var WS=Pt(Bc()),qS=Pt(Pf());function Tp(e){return e.replace(/(file:\/\/)([^\s<>]+)/gi,"$1[redacted]").replace(/(^|[\s|:=(<'"`])((?:\/(?=[^/])|\\|[a-zA-Z]:[\\/])[^\s:)>'"`]+)/g,"$1[redacted]")}o(Tp,"redactPaths");var qV=new Set(["Maximum call stack size exceeded","Set maximum size exceeded","Invalid arguments"]),HV=[/^[\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}.]+ is not a function[ \w]*$/u,/^Cannot read properties of undefined \(reading '[\p{L}\p{Nl}$\p{Mn}\p{Mc}\p{Nd}\p{Pc}]+'\)$/u];function Tb(e){if(qV.has(e))return e;for(let t of HV)if(t.test(e))return e;return Tp(e).replace(/\bDNS:(?:\*\.)?[\w.-]+/gi,"DNS:[redacted]")}o(Tb,"redactMessage");function y5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(y5,"escapeForRegExp");var zV=new RegExp("(?<=^|[\\s|(\"'`]|file://)"+y5((0,WS.homedir)())+"(?=$|[\\\\/:\"'`])","gi");function vb(e){return e.replace(zV,"~")}o(vb,"redactHomeDir");var HS="[\\\\/]?([^:)]*)(?=:\\d)",$S=new RegExp(y5(qS.sep),"g"),jS=new RegExp(y5("".replace(/[\\/]lib[\\/]src[\\/]util$|[\\/]dist$/,""))+HS,"gi");function Cb(e,t,r=!1,n=[]){let s=new Error(t(e));s.name=e.name,typeof e.syscall=="string"&&(s.syscall=e.syscall),typeof e.code=="string"&&(s.code=e.code),typeof e.errno=="number"&&(s.errno=e.errno),s.stack=void 0;let a=e.stack?.replace(/^.*?:\d+\n.*\n *\^?\n\n/,""),l;for(let c of[e.toString(),`${e.name}: ${e.message}`])if(a?.startsWith(c+`
[43] Fix | Delete
`)){l=a.slice(c.length+1).split(/\n/);break}if(l){s.stack=s.toString();for(let c of l)if(jS.test(c))s.stack+=`
[44] Fix | Delete
${Tp(c.replace(jS,(u,d)=>"./"+d.replace($S,"/")))}`;else if(/[ (]node:|[ (]wasm:\/\/wasm\/| \(<anonymous>\)$/.test(c))s.stack+=`
[45] Fix | Delete
${Tp(c)}`;else{let u=!1;for(let{prefix:d,path:f}of n){let m=new RegExp(y5(f.replace(/[\\/]$/,""))+HS,"gi");if(m.test(c)){s.stack+=`
[46] Fix | Delete
${Tp(c.replace(m,(p,g)=>d+g.replace($S,"/")))}`,u=!0;break}}if(u)continue;r?s.stack+=`
[47] Fix | Delete
${vb(c)}`:s.stack+=`
[48] Fix | Delete
at [redacted]:0:0`}}else r&&a&&(s.stack=vb(a));return e.cause instanceof Error&&(s.cause=Cb(e.cause,t,r,n)),s}o(Cb,"cloneError");function zS(e){let t=e.message;return typeof e.path=="string"&&e.path.length>0&&(t=t.replaceAll(e.path,"<path>")),t}o(zS,"errorMessageWithoutPath");function VS(e,t){return Cb(e,o(function(n){return vb(zS(n))},"prepareMessage"),!0,t)}o(VS,"prepareErrorForRestrictedTelemetry");function GS(e,t,r=!1){return Cb(e,o(function(s){if(r)return Tb(zS(s));let a="[redacted]";return typeof s.code=="string"&&(a=s.code+" "+a),typeof s.syscall=="string"?a=Tp(s.syscall)+" "+a:"erroredSysCall"in s&&typeof s.erroredSysCall=="string"&&(a=s.erroredSysCall+" "+a),a},"prepareMessage"),!1,t)}o(GS,"redactError");var oi={};t0(oi,{HasPropertyKey:()=>b5,IsArray:()=>on,IsAsyncIterator:()=>Eb,IsBigInt:()=>Cp,IsBoolean:()=>sa,IsDate:()=>jc,IsFunction:()=>Ib,IsIterator:()=>wb,IsNull:()=>Sb,IsNumber:()=>ao,IsObject:()=>gr,IsRegExp:()=>Ep,IsString:()=>Tr,IsSymbol:()=>Pb,IsUint8Array:()=>aa,IsUndefined:()=>sn});function b5(e,t){return t in e}o(b5,"HasPropertyKey");function Eb(e){return gr(e)&&!on(e)&&!aa(e)&&Symbol.asyncIterator in e}o(Eb,"IsAsyncIterator");function on(e){return Array.isArray(e)}o(on,"IsArray");function Cp(e){return typeof e=="bigint"}o(Cp,"IsBigInt");function sa(e){return typeof e=="boolean"}o(sa,"IsBoolean");function jc(e){return e instanceof globalThis.Date}o(jc,"IsDate");function Ib(e){return typeof e=="function"}o(Ib,"IsFunction");function wb(e){return gr(e)&&!on(e)&&!aa(e)&&Symbol.iterator in e}o(wb,"IsIterator");function Sb(e){return e===null}o(Sb,"IsNull");function ao(e){return typeof e=="number"}o(ao,"IsNumber");function gr(e){return typeof e=="object"&&e!==null}o(gr,"IsObject");function Ep(e){return e instanceof globalThis.RegExp}o(Ep,"IsRegExp");function Tr(e){return typeof e=="string"}o(Tr,"IsString");function Pb(e){return typeof e=="symbol"}o(Pb,"IsSymbol");function aa(e){return e instanceof globalThis.Uint8Array}o(aa,"IsUint8Array");function sn(e){return e===void 0}o(sn,"IsUndefined");function VV(e){return e.map(t=>v5(t))}o(VV,"ArrayType");function GV(e){return new Date(e.getTime())}o(GV,"DateType");function KV(e){return new Uint8Array(e)}o(KV,"Uint8ArrayType");function YV(e){return new RegExp(e.source,e.flags)}o(YV,"RegExpType");function XV(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=v5(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=v5(e[r]);return t}o(XV,"ObjectType");function v5(e){return on(e)?VV(e):jc(e)?GV(e):aa(e)?KV(e):Ep(e)?YV(e):gr(e)?XV(e):e}o(v5,"Visit");function Ar(e){return v5(e)}o(Ar,"Clone");function Rf(e,t){return t===void 0?Ar(e):Ar({...t,...e})}o(Rf,"CloneType");function T5(e){return It(e)&&globalThis.Symbol.asyncIterator in e}o(T5,"IsAsyncIterator");function C5(e){return It(e)&&globalThis.Symbol.iterator in e}o(C5,"IsIterator");function Rb(e){return It(e)&&(globalThis.Object.getPrototypeOf(e)===Object.prototype||globalThis.Object.getPrototypeOf(e)===null)}o(Rb,"IsStandardObject");function E5(e){return e instanceof globalThis.Promise}o(E5,"IsPromise");function Ci(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}o(Ci,"IsDate");function KS(e){return e instanceof globalThis.Map}o(KS,"IsMap");function YS(e){return e instanceof globalThis.Set}o(YS,"IsSet");function Bo(e){return globalThis.ArrayBuffer.isView(e)}o(Bo,"IsTypedArray");function Af(e){return e instanceof globalThis.Uint8Array}o(Af,"IsUint8Array");function st(e,t){return t in e}o(st,"HasPropertyKey");function It(e){return e!==null&&typeof e=="object"}o(It,"IsObject");function at(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}o(at,"IsArray");function Dr(e){return e===void 0}o(Dr,"IsUndefined");function la(e){return e===null}o(la,"IsNull");function o0(e){return typeof e=="boolean"}o(o0,"IsBoolean");function Ve(e){return typeof e=="number"}o(Ve,"IsNumber");function I5(e){return globalThis.Number.isInteger(e)}o(I5,"IsInteger");function zn(e){return typeof e=="bigint"}o(zn,"IsBigInt");function Yt(e){return typeof e=="string"}o(Yt,"IsString");function cl(e){return typeof e=="function"}o(cl,"IsFunction");function ca(e){return typeof e=="symbol"}o(ca,"IsSymbol");function lo(e){return zn(e)||o0(e)||la(e)||Ve(e)||Yt(e)||ca(e)||Dr(e)}o(lo,"IsValueType");var wr;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(l,c){return e.ExactOptionalPropertyTypes?c in l:l[c]!==void 0}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function r(l){let c=It(l);return e.AllowArrayObject?c:c&&!at(l)}o(r,"IsObjectLike"),e.IsObjectLike=r;function n(l){return r(l)&&!(l instanceof Date)&&!(l instanceof Uint8Array)}o(n,"IsRecordLike"),e.IsRecordLike=n;function s(l){return e.AllowNaN?Ve(l):Number.isFinite(l)}o(s,"IsNumberLike"),e.IsNumberLike=s;function a(l){let c=Dr(l);return e.AllowNullVoid?c||l===null:c}o(a,"IsVoidLike"),e.IsVoidLike=a})(wr||(wr={}));function JV(e){return globalThis.Object.freeze(e).map(t=>Ip(t))}o(JV,"ImmutableArray");function ZV(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=Ip(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=Ip(e[r]);return globalThis.Object.freeze(t)}o(ZV,"ImmutableObject");function Ip(e){return on(e)?JV(e):jc(e)?e:aa(e)?e:Ep(e)?e:gr(e)?ZV(e):e}o(Ip,"Immutable");function oe(e,t){let r=t!==void 0?{...t,...e}:e;switch(wr.InstanceMode){case"freeze":return Ip(r);case"clone":return Ar(r);default:return r}}o(oe,"CreateType");var lt=class extends Error{static{o(this,"TypeBoxError")}constructor(t){super(t)}};var Br=Symbol.for("TypeBox.Transform"),vs=Symbol.for("TypeBox.Readonly"),Vn=Symbol.for("TypeBox.Optional"),$o=Symbol.for("TypeBox.Hint"),re=Symbol.for("TypeBox.Kind");function Df(e){return gr(e)&&e[vs]==="Readonly"}o(Df,"IsReadonly");function Mi(e){return gr(e)&&e[Vn]==="Optional"}o(Mi,"IsOptional");function Ab(e){return zt(e,"Any")}o(Ab,"IsAny");function Db(e){return zt(e,"Argument")}o(Db,"IsArgument");function Ts(e){return zt(e,"Array")}o(Ts,"IsArray");function Wc(e){return zt(e,"AsyncIterator")}o(Wc,"IsAsyncIterator");function qc(e){return zt(e,"BigInt")}o(qc,"IsBigInt");function ua(e){return zt(e,"Boolean")}o(ua,"IsBoolean");function Cs(e){return zt(e,"Computed")}o(Cs,"IsComputed");function Es(e){return zt(e,"Constructor")}o(Es,"IsConstructor");function QV(e){return zt(e,"Date")}o(QV,"IsDate");function Is(e){return zt(e,"Function")}o(Is,"IsFunction");function ws(e){return zt(e,"Integer")}o(ws,"IsInteger");function Gr(e){return zt(e,"Intersect")}o(Gr,"IsIntersect");function Hc(e){return zt(e,"Iterator")}o(Hc,"IsIterator");function zt(e,t){return gr(e)&&re in e&&e[re]===t}o(zt,"IsKindOf");function w5(e){return sa(e)||ao(e)||Tr(e)}o(w5,"IsLiteralValue");function co(e){return zt(e,"Literal")}o(co,"IsLiteral");function uo(e){return zt(e,"MappedKey")}o(uo,"IsMappedKey");function kr(e){return zt(e,"MappedResult")}o(kr,"IsMappedResult");function ul(e){return zt(e,"Never")}o(ul,"IsNever");function eG(e){return zt(e,"Not")}o(eG,"IsNot");function wp(e){return zt(e,"Null")}o(wp,"IsNull");function Ss(e){return zt(e,"Number")}o(Ss,"IsNumber");function an(e){return zt(e,"Object")}o(an,"IsObject");function zc(e){return zt(e,"Promise")}o(zc,"IsPromise");function Vc(e){return zt(e,"Record")}o(Vc,"IsRecord");function Jr(e){return zt(e,"Ref")}o(Jr,"IsRef");function kb(e){return zt(e,"RegExp")}o(kb,"IsRegExp");function fa(e){return zt(e,"String")}o(fa,"IsString");function Sp(e){return zt(e,"Symbol")}o(Sp,"IsSymbol");function fo(e){return zt(e,"TemplateLiteral")}o(fo,"IsTemplateLiteral");function tG(e){return zt(e,"This")}o(tG,"IsThis");function or(e){return gr(e)&&Br in e}o(or,"IsTransform");function mo(e){return zt(e,"Tuple")}o(mo,"IsTuple");function da(e){return zt(e,"Undefined")}o(da,"IsUndefined");function Xt(e){return zt(e,"Union")}o(Xt,"IsUnion");function rG(e){return zt(e,"Uint8Array")}o(rG,"IsUint8Array");function nG(e){return zt(e,"Unknown")}o(nG,"IsUnknown");function iG(e){return zt(e,"Unsafe")}o(iG,"IsUnsafe");function oG(e){return zt(e,"Void")}o(oG,"IsVoid");function fl(e){return gr(e)&&re in e&&Tr(e[re])}o(fl,"IsKind");function $r(e){return Ab(e)||Db(e)||Ts(e)||ua(e)||qc(e)||Wc(e)||Cs(e)||Es(e)||QV(e)||Is(e)||ws(e)||Gr(e)||Hc(e)||co(e)||uo(e)||kr(e)||ul(e)||eG(e)||wp(e)||Ss(e)||an(e)||zc(e)||Vc(e)||Jr(e)||kb(e)||fa(e)||Sp(e)||fo(e)||tG(e)||mo(e)||da(e)||Xt(e)||rG(e)||nG(e)||iG(e)||oG(e)||fl(e)}o($r,"IsSchema");var X={};t0(X,{IsAny:()=>QS,IsArgument:()=>eP,IsArray:()=>tP,IsAsyncIterator:()=>rP,IsBigInt:()=>nP,IsBoolean:()=>iP,IsComputed:()=>oP,IsConstructor:()=>sP,IsDate:()=>aP,IsFunction:()=>lP,IsImport:()=>fG,IsInteger:()=>cP,IsIntersect:()=>uP,IsIterator:()=>fP,IsKind:()=>MP,IsKindOf:()=>Nt,IsLiteral:()=>Rp,IsLiteralBoolean:()=>dG,IsLiteralNumber:()=>mP,IsLiteralString:()=>dP,IsLiteralValue:()=>pP,IsMappedKey:()=>gP,IsMappedResult:()=>hP,IsNever:()=>xP,IsNot:()=>_P,IsNull:()=>yP,IsNumber:()=>bP,IsObject:()=>vP,IsOptional:()=>uG,IsPromise:()=>TP,IsProperties:()=>S5,IsReadonly:()=>cG,IsRecord:()=>CP,IsRecursive:()=>mG,IsRef:()=>EP,IsRegExp:()=>IP,IsSchema:()=>Nr,IsString:()=>wP,IsSymbol:()=>SP,IsTemplateLiteral:()=>PP,IsThis:()=>RP,IsTransform:()=>AP,IsTuple:()=>DP,IsUint8Array:()=>NP,IsUndefined:()=>kP,IsUnion:()=>Fb,IsUnionLiteral:()=>pG,IsUnknown:()=>OP,IsUnsafe:()=>LP,IsVoid:()=>FP,TypeGuardUnknownTypeError:()=>Nb});var Nb=class extends lt{static{o(this,"TypeGuardUnknownTypeError")}},sG=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function XS(e){try{return new RegExp(e),!0}catch{return!1}}o(XS,"IsPattern");function Ob(e){if(!Tr(e))return!1;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}o(Ob,"IsControlCharacterFree");function JS(e){return Lb(e)||Nr(e)}o(JS,"IsAdditionalProperties");function Pp(e){return sn(e)||Cp(e)}o(Pp,"IsOptionalBigInt");function Cr(e){return sn(e)||ao(e)}o(Cr,"IsOptionalNumber");function Lb(e){return sn(e)||sa(e)}o(Lb,"IsOptionalBoolean");function hr(e){return sn(e)||Tr(e)}o(hr,"IsOptionalString");function aG(e){return sn(e)||Tr(e)&&Ob(e)&&XS(e)}o(aG,"IsOptionalPattern");function lG(e){return sn(e)||Tr(e)&&Ob(e)}o(lG,"IsOptionalFormat");function ZS(e){return sn(e)||Nr(e)}o(ZS,"IsOptionalSchema");function cG(e){return gr(e)&&e[vs]==="Readonly"}o(cG,"IsReadonly");function uG(e){return gr(e)&&e[Vn]==="Optional"}o(uG,"IsOptional");function QS(e){return Nt(e,"Any")&&hr(e.$id)}o(QS,"IsAny");function eP(e){return Nt(e,"Argument")&&ao(e.index)}o(eP,"IsArgument");function tP(e){return Nt(e,"Array")&&e.type==="array"&&hr(e.$id)&&Nr(e.items)&&Cr(e.minItems)&&Cr(e.maxItems)&&Lb(e.uniqueItems)&&ZS(e.contains)&&Cr(e.minContains)&&Cr(e.maxContains)}o(tP,"IsArray");function rP(e){return Nt(e,"AsyncIterator")&&e.type==="AsyncIterator"&&hr(e.$id)&&Nr(e.items)}o(rP,"IsAsyncIterator");function nP(e){return Nt(e,"BigInt")&&e.type==="bigint"&&hr(e.$id)&&Pp(e.exclusiveMaximum)&&Pp(e.exclusiveMinimum)&&Pp(e.maximum)&&Pp(e.minimum)&&Pp(e.multipleOf)}o(nP,"IsBigInt");function iP(e){return Nt(e,"Boolean")&&e.type==="boolean"&&hr(e.$id)}o(iP,"IsBoolean");function oP(e){return Nt(e,"Computed")&&Tr(e.target)&&on(e.parameters)&&e.parameters.every(t=>Nr(t))}o(oP,"IsComputed");function sP(e){return Nt(e,"Constructor")&&e.type==="Constructor"&&hr(e.$id)&&on(e.parameters)&&e.parameters.every(t=>Nr(t))&&Nr(e.returns)}o(sP,"IsConstructor");function aP(e){return Nt(e,"Date")&&e.type==="Date"&&hr(e.$id)&&Cr(e.exclusiveMaximumTimestamp)&&Cr(e.exclusiveMinimumTimestamp)&&Cr(e.maximumTimestamp)&&Cr(e.minimumTimestamp)&&Cr(e.multipleOfTimestamp)}o(aP,"IsDate");function lP(e){return Nt(e,"Function")&&e.type==="Function"&&hr(e.$id)&&on(e.parameters)&&e.parameters.every(t=>Nr(t))&&Nr(e.returns)}o(lP,"IsFunction");function fG(e){return Nt(e,"Import")&&b5(e,"$defs")&&gr(e.$defs)&&S5(e.$defs)&&b5(e,"$ref")&&Tr(e.$ref)&&e.$ref in e.$defs}o(fG,"IsImport");function cP(e){return Nt(e,"Integer")&&e.type==="integer"&&hr(e.$id)&&Cr(e.exclusiveMaximum)&&Cr(e.exclusiveMinimum)&&Cr(e.maximum)&&Cr(e.minimum)&&Cr(e.multipleOf)}o(cP,"IsInteger");function S5(e){return gr(e)&&Object.entries(e).every(([t,r])=>Ob(t)&&Nr(r))}o(S5,"IsProperties");function uP(e){return Nt(e,"Intersect")&&!(Tr(e.type)&&e.type!=="object")&&on(e.allOf)&&e.allOf.every(t=>Nr(t)&&!AP(t))&&hr(e.type)&&(Lb(e.unevaluatedProperties)||ZS(e.unevaluatedProperties))&&hr(e.$id)}o(uP,"IsIntersect");function fP(e){return Nt(e,"Iterator")&&e.type==="Iterator"&&hr(e.$id)&&Nr(e.items)}o(fP,"IsIterator");function Nt(e,t){return gr(e)&&re in e&&e[re]===t}o(Nt,"IsKindOf");function dP(e){return Rp(e)&&Tr(e.const)}o(dP,"IsLiteralString");function mP(e){return Rp(e)&&ao(e.const)}o(mP,"IsLiteralNumber");function dG(e){return Rp(e)&&sa(e.const)}o(dG,"IsLiteralBoolean");function Rp(e){return Nt(e,"Literal")&&hr(e.$id)&&pP(e.const)}o(Rp,"IsLiteral");function pP(e){return sa(e)||ao(e)||Tr(e)}o(pP,"IsLiteralValue");function gP(e){return Nt(e,"MappedKey")&&on(e.keys)&&e.keys.every(t=>ao(t)||Tr(t))}o(gP,"IsMappedKey");function hP(e){return Nt(e,"MappedResult")&&S5(e.properties)}o(hP,"IsMappedResult");function xP(e){return Nt(e,"Never")&&gr(e.not)&&Object.getOwnPropertyNames(e.not).length===0}o(xP,"IsNever");function _P(e){return Nt(e,"Not")&&Nr(e.not)}o(_P,"IsNot");function yP(e){return Nt(e,"Null")&&e.type==="null"&&hr(e.$id)}o(yP,"IsNull");function bP(e){return Nt(e,"Number")&&e.type==="number"&&hr(e.$id)&&Cr(e.exclusiveMaximum)&&Cr(e.exclusiveMinimum)&&Cr(e.maximum)&&Cr(e.minimum)&&Cr(e.multipleOf)}o(bP,"IsNumber");function vP(e){return Nt(e,"Object")&&e.type==="object"&&hr(e.$id)&&S5(e.properties)&&JS(e.additionalProperties)&&Cr(e.minProperties)&&Cr(e.maxProperties)}o(vP,"IsObject");function TP(e){return Nt(e,"Promise")&&e.type==="Promise"&&hr(e.$id)&&Nr(e.item)}o(TP,"IsPromise");function CP(e){return Nt(e,"Record")&&e.type==="object"&&hr(e.$id)&&JS(e.additionalProperties)&&gr(e.patternProperties)&&(t=>{let r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&XS(r[0])&&gr(t.patternProperties)&&Nr(t.patternProperties[r[0]])})(e)}o(CP,"IsRecord");function mG(e){return gr(e)&&$o in e&&e[$o]==="Recursive"}o(mG,"IsRecursive");function EP(e){return Nt(e,"Ref")&&hr(e.$id)&&Tr(e.$ref)}o(EP,"IsRef");function IP(e){return Nt(e,"RegExp")&&hr(e.$id)&&Tr(e.source)&&Tr(e.flags)&&Cr(e.maxLength)&&Cr(e.minLength)}o(IP,"IsRegExp");function wP(e){return Nt(e,"String")&&e.type==="string"&&hr(e.$id)&&Cr(e.minLength)&&Cr(e.maxLength)&&aG(e.pattern)&&lG(e.format)}o(wP,"IsString");function SP(e){return Nt(e,"Symbol")&&e.type==="symbol"&&hr(e.$id)}o(SP,"IsSymbol");function PP(e){return Nt(e,"TemplateLiteral")&&e.type==="string"&&Tr(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}o(PP,"IsTemplateLiteral");function RP(e){return Nt(e,"This")&&hr(e.$id)&&Tr(e.$ref)}o(RP,"IsThis");function AP(e){return gr(e)&&Br in e}o(AP,"IsTransform");function DP(e){return Nt(e,"Tuple")&&e.type==="array"&&hr(e.$id)&&ao(e.minItems)&&ao(e.maxItems)&&e.minItems===e.maxItems&&(sn(e.items)&&sn(e.additionalItems)&&e.minItems===0||on(e.items)&&e.items.every(t=>Nr(t)))}o(DP,"IsTuple");function kP(e){return Nt(e,"Undefined")&&e.type==="undefined"&&hr(e.$id)}o(kP,"IsUndefined");function pG(e){return Fb(e)&&e.anyOf.every(t=>dP(t)||mP(t))}o(pG,"IsUnionLiteral");function Fb(e){return Nt(e,"Union")&&hr(e.$id)&&gr(e)&&on(e.anyOf)&&e.anyOf.every(t=>Nr(t))}o(Fb,"IsUnion");function NP(e){return Nt(e,"Uint8Array")&&e.type==="Uint8Array"&&hr(e.$id)&&Cr(e.minByteLength)&&Cr(e.maxByteLength)}o(NP,"IsUint8Array");function OP(e){return Nt(e,"Unknown")&&hr(e.$id)}o(OP,"IsUnknown");function LP(e){return Nt(e,"Unsafe")}o(LP,"IsUnsafe");function FP(e){return Nt(e,"Void")&&e.type==="void"&&hr(e.$id)}o(FP,"IsVoid");function MP(e){return gr(e)&&re in e&&Tr(e[re])&&!sG.includes(e[re])}o(MP,"IsKind");function Nr(e){return gr(e)&&(QS(e)||eP(e)||tP(e)||iP(e)||nP(e)||rP(e)||oP(e)||sP(e)||aP(e)||lP(e)||cP(e)||uP(e)||fP(e)||Rp(e)||gP(e)||hP(e)||xP(e)||_P(e)||yP(e)||bP(e)||vP(e)||TP(e)||CP(e)||EP(e)||IP(e)||wP(e)||SP(e)||PP(e)||RP(e)||DP(e)||kP(e)||Fb(e)||NP(e)||OP(e)||LP(e)||FP(e)||MP(e))}o(Nr,"IsSchema");var Mb="(true|false)",Ap="(0|[1-9][0-9]*)",Ub="(.*)",gG="(?!.*)",X2e=`^${Mb}$`,s0=`^${Ap}$`,a0=`^${Ub}$`,UP=`^${gG}$`;var Ps={};t0(Ps,{Clear:()=>xG,Delete:()=>_G,Entries:()=>hG,Get:()=>vG,Has:()=>yG,Set:()=>bG});var kf=new Map;function hG(){return new Map(kf)}o(hG,"Entries");function xG(){return kf.clear()}o(xG,"Clear");function _G(e){return kf.delete(e)}o(_G,"Delete");function yG(e){return kf.has(e)}o(yG,"Has");function bG(e,t){kf.set(e,t)}o(bG,"Set");function vG(e){return kf.get(e)}o(vG,"Get");var Ei={};t0(Ei,{Clear:()=>CG,Delete:()=>EG,Entries:()=>TG,Get:()=>SG,Has:()=>IG,Set:()=>wG});var Nf=new Map;function TG(){return new Map(Nf)}o(TG,"Entries");function CG(){return Nf.clear()}o(CG,"Clear");function EG(e){return Nf.delete(e)}o(EG,"Delete");function IG(e){return Nf.has(e)}o(IG,"Has");function wG(e,t){Nf.set(e,t)}o(wG,"Set");function SG(e){return Nf.get(e)}o(SG,"Get");function BP(e,t){return e.includes(t)}o(BP,"SetIncludes");function $P(e){return[...new Set(e)]}o($P,"SetDistinct");function PG(e,t){return e.filter(r=>t.includes(r))}o(PG,"SetIntersect");function RG(e,t){return e.reduce((r,n)=>PG(r,n),t)}o(RG,"SetIntersectManyResolve");function jP(e){return e.length===1?e[0]:e.length>1?RG(e.slice(1),e[0]):[]}o(jP,"SetIntersectMany");function WP(e){let t=[];for(let r of e)t.push(...r);return t}o(WP,"SetUnionMany");function dl(e){return oe({[re]:"Any"},e)}o(dl,"Any");function Of(e,t){return oe({[re]:"Array",type:"array",items:e},t)}o(Of,"Array");function qP(e){return oe({[re]:"Argument",index:e})}o(qP,"Argument");function Lf(e,t){return oe({[re]:"AsyncIterator",type:"AsyncIterator",items:e},t)}o(Lf,"AsyncIterator");function Sr(e,t,r){return oe({[re]:"Computed",target:e,parameters:t},r)}o(Sr,"Computed");function AG(e,t){let{[t]:r,...n}=e;return n}o(AG,"DiscardKey");function Kr(e,t){return t.reduce((r,n)=>AG(r,n),e)}o(Kr,"Discard");function bt(e){return oe({[re]:"Never",not:{}},e)}o(bt,"Never");function Qt(e){return oe({[re]:"MappedResult",properties:e})}o(Qt,"MappedResult");function Ff(e,t,r){return oe({[re]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}o(Ff,"Constructor");function l0(e,t,r){return oe({[re]:"Function",type:"Function",parameters:e,returns:t},r)}o(l0,"Function");function Dp(e,t){return oe({[re]:"Union",anyOf:e},t)}o(Dp,"UnionCreate");function DG(e){return e.some(t=>Mi(t))}o(DG,"IsUnionOptional");function HP(e){return e.map(t=>Mi(t)?kG(t):t)}o(HP,"RemoveOptionalFromRest");function kG(e){return Kr(e,[Vn])}o(kG,"RemoveOptionalFromType");function NG(e,t){return DG(e)?si(Dp(HP(e),t)):Dp(HP(e),t)}o(NG,"ResolveUnion");function c0(e,t){return e.length===1?oe(e[0],t):e.length===0?bt(t):NG(e,t)}o(c0,"UnionEvaluated");function sr(e,t){return e.length===0?bt(t):e.length===1?oe(e[0],t):Dp(e,t)}o(sr,"Union");var P5=class extends lt{static{o(this,"TemplateLiteralParserError")}};function OG(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}o(OG,"Unescape");function Bb(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}o(Bb,"IsNonEscaped");function pa(e,t){return Bb(e,t,"(")}o(pa,"IsOpenParen");function kp(e,t){return Bb(e,t,")")}o(kp,"IsCloseParen");function zP(e,t){return Bb(e,t,"|")}o(zP,"IsSeparator");function LG(e){if(!(pa(e,0)&&kp(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(pa(e,r)&&(t+=1),kp(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}o(LG,"IsGroup");function FG(e){return e.slice(1,e.length-1)}o(FG,"InGroup");function MG(e){let t=0;for(let r=0;r<e.length;r++)if(pa(e,r)&&(t+=1),kp(e,r)&&(t-=1),zP(e,r)&&t===0)return!0;return!1}o(MG,"IsPrecedenceOr");function UG(e){for(let t=0;t<e.length;t++)if(pa(e,t))return!0;return!1}o(UG,"IsPrecedenceAnd");function BG(e){let[t,r]=[0,0],n=[];for(let a=0;a<e.length;a++)if(pa(e,a)&&(t+=1),kp(e,a)&&(t-=1),zP(e,a)&&t===0){let l=e.slice(r,a);l.length>0&&n.push(Mf(l)),r=a+1}let s=e.slice(r);return s.length>0&&n.push(Mf(s)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}o(BG,"Or");function $G(e){function t(s,a){if(!pa(s,a))throw new P5("TemplateLiteralParser: Index must point to open parens");let l=0;for(let c=a;c<s.length;c++)if(pa(s,c)&&(l+=1),kp(s,c)&&(l-=1),l===0)return[a,c];throw new P5("TemplateLiteralParser: Unclosed group parens in expression")}o(t,"Group");function r(s,a){for(let l=a;l<s.length;l++)if(pa(s,l))return[a,l];return[a,s.length]}o(r,"Range");let n=[];for(let s=0;s<e.length;s++)if(pa(e,s)){let[a,l]=t(e,s),c=e.slice(a,l+1);n.push(Mf(c)),s=l}else{let[a,l]=r(e,s),c=e.slice(a,l);c.length>0&&n.push(Mf(c)),s=l-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}o($G,"And");function Mf(e){return LG(e)?Mf(FG(e)):MG(e)?BG(e):UG(e)?$G(e):{type:"const",const:OG(e)}}o(Mf,"TemplateLiteralParse");function Uf(e){return Mf(e.slice(1,e.length-1))}o(Uf,"TemplateLiteralParseExact");var $b=class extends lt{static{o(this,"TemplateLiteralFiniteError")}};function jG(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}o(jG,"IsNumberExpression");function WG(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}o(WG,"IsBooleanExpression");function qG(e){return e.type==="const"&&e.const===".*"}o(qG,"IsStringExpression");function Gc(e){return jG(e)||qG(e)?!1:WG(e)?!0:e.type==="and"?e.expr.every(t=>Gc(t)):e.type==="or"?e.expr.every(t=>Gc(t)):e.type==="const"?!0:(()=>{throw new $b("Unknown expression type")})()}o(Gc,"IsTemplateLiteralExpressionFinite");function R5(e){let t=Uf(e.pattern);return Gc(t)}o(R5,"IsTemplateLiteralFinite");var jb=class extends lt{static{o(this,"TemplateLiteralGenerateError")}};function*VP(e){if(e.length===1)return yield*e[0];for(let t of e[0])for(let r of VP(e.slice(1)))yield`${t}${r}`}o(VP,"GenerateReduce");function*HG(e){return yield*VP(e.expr.map(t=>[...Np(t)]))}o(HG,"GenerateAnd");function*zG(e){for(let t of e.expr)yield*Np(t)}o(zG,"GenerateOr");function*VG(e){return yield e.const}o(VG,"GenerateConst");function*Np(e){return e.type==="and"?yield*HG(e):e.type==="or"?yield*zG(e):e.type==="const"?yield*VG(e):(()=>{throw new jb("Unknown expression")})()}o(Np,"TemplateLiteralExpressionGenerate");function Bf(e){let t=Uf(e.pattern);return Gc(t)?[...Np(t)]:[]}o(Bf,"TemplateLiteralGenerate");function Vt(e,t){return oe({[re]:"Literal",const:e,type:typeof e},t)}o(Vt,"Literal");function A5(e){return oe({[re]:"Boolean",type:"boolean"},e)}o(A5,"Boolean");function $f(e){return oe({[re]:"BigInt",type:"bigint"},e)}o($f,"BigInt");function jo(e){return oe({[re]:"Number",type:"number"},e)}o(jo,"Number");function Ii(e){return oe({[re]:"String",type:"string"},e)}o(Ii,"String");function*GG(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield A5():t==="number"?yield jo():t==="bigint"?yield $f():t==="string"?yield Ii():yield(()=>{let r=t.split("|").map(n=>Vt(n.trim()));return r.length===0?bt():r.length===1?r[0]:c0(r)})()}o(GG,"FromUnion");function*KG(e){if(e[1]!=="{"){let t=Vt("$"),r=Wb(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){let r=GG(e.slice(2,t)),n=Wb(e.slice(t+1));return yield*[...r,...n]}yield Vt(e)}o(KG,"FromTerminal");function*Wb(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let r=Vt(e.slice(0,t)),n=KG(e.slice(t));return yield*[r,...n]}yield Vt(e)}o(Wb,"FromSyntax");function GP(e){return[...Wb(e)]}o(GP,"TemplateLiteralSyntax");var qb=class extends lt{static{o(this,"TemplateLiteralPatternError")}};function YG(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(YG,"Escape");function KP(e,t){return fo(e)?e.pattern.slice(1,e.pattern.length-1):Xt(e)?`(${e.anyOf.map(r=>KP(r,t)).join("|")})`:Ss(e)?`${t}${Ap}`:ws(e)?`${t}${Ap}`:qc(e)?`${t}${Ap}`:fa(e)?`${t}${Ub}`:co(e)?`${t}${YG(e.const.toString())}`:ua(e)?`${t}${Mb}`:(()=>{throw new qb(`Unexpected Kind '${e[re]}'`)})()}o(KP,"Visit");function Hb(e){return`^${e.map(t=>KP(t,"")).join("")}$`}o(Hb,"TemplateLiteralPattern");function Kc(e){let r=Bf(e).map(n=>Vt(n));return c0(r)}o(Kc,"TemplateLiteralToUnion");function D5(e,t){let r=Tr(e)?Hb(GP(e)):Hb(e);return oe({[re]:"TemplateLiteral",type:"string",pattern:r},t)}o(D5,"TemplateLiteral");function XG(e){return Bf(e).map(r=>r.toString())}o(XG,"FromTemplateLiteral");function JG(e){let t=[];for(let r of e)t.push(...Ui(r));return t}o(JG,"FromUnion");function ZG(e){return[e.toString()]}o(ZG,"FromLiteral");function Ui(e){return[...new Set(fo(e)?XG(e):Xt(e)?JG(e.anyOf):co(e)?ZG(e.const):Ss(e)?["[number]"]:ws(e)?["[number]"]:[])]}o(Ui,"IndexPropertyKeys");function QG(e,t,r){let n={};for(let s of Object.getOwnPropertyNames(t))n[s]=ml(e,Ui(t[s]),r);return n}o(QG,"FromProperties");function eK(e,t,r){return QG(e,t.properties,r)}o(eK,"FromMappedResult");function YP(e,t,r){let n=eK(e,t,r);return Qt(n)}o(YP,"IndexFromMappedResult");function JP(e,t){return e.map(r=>ZP(r,t))}o(JP,"FromRest");function tK(e){return e.filter(t=>!ul(t))}o(tK,"FromIntersectRest");function rK(e,t){return k5(tK(JP(e,t)))}o(rK,"FromIntersect");function nK(e){return e.some(t=>ul(t))?[]:e}o(nK,"FromUnionRest");function iK(e,t){return c0(nK(JP(e,t)))}o(iK,"FromUnion");function oK(e,t){return t in e?e[t]:t==="[number]"?c0(e):bt()}o(oK,"FromTuple");function sK(e,t){return t==="[number]"?e:bt()}o(sK,"FromArray");function aK(e,t){return t in e?e[t]:bt()}o(aK,"FromProperty");function ZP(e,t){return Gr(e)?rK(e.allOf,t):Xt(e)?iK(e.anyOf,t):mo(e)?oK(e.items??[],t):Ts(e)?sK(e.items,t):an(e)?aK(e.properties,t):bt()}o(ZP,"IndexFromPropertyKey");function Op(e,t){return t.map(r=>ZP(e,r))}o(Op,"IndexFromPropertyKeys");function XP(e,t){return c0(Op(e,t))}o(XP,"FromSchema");function ml(e,t,r){if(Jr(e)||Jr(t)){let n="Index types using Ref parameters require both Type and Key to be of TSchema";if(!$r(e)||!$r(t))throw new lt(n);return Sr("Index",[e,t])}return kr(t)?YP(e,t,r):uo(t)?QP(e,t,r):oe($r(t)?XP(e,Ui(t)):XP(e,t),r)}o(ml,"Index");function lK(e,t,r){return{[t]:ml(e,[t],Ar(r))}}o(lK,"MappedIndexPropertyKey");function cK(e,t,r){return t.reduce((n,s)=>({...n,...lK(e,s,r)}),{})}o(cK,"MappedIndexPropertyKeys");function uK(e,t,r){return cK(e,t.keys,r)}o(uK,"MappedIndexProperties");function QP(e,t,r){let n=uK(e,t,r);return Qt(n)}o(QP,"IndexFromMappedKey");function jf(e,t){return oe({[re]:"Iterator",type:"Iterator",items:e},t)}o(jf,"Iterator");function fK(e){let t=[];for(let r in e)Mi(e[r])||t.push(r);return t}o(fK,"RequiredKeys");function dK(e,t){let r=fK(e),n=r.length>0?{[re]:"Object",type:"object",properties:e,required:r}:{[re]:"Object",type:"object",properties:e};return oe(n,t)}o(dK,"_Object");var ar=dK;function N5(e,t){return oe({[re]:"Promise",type:"Promise",item:e},t)}o(N5,"Promise");function mK(e){return oe(Kr(e,[vs]))}o(mK,"RemoveReadonly");function pK(e){return oe({...e,[vs]:"Readonly"})}o(pK,"AddReadonly");function gK(e,t){return t===!1?mK(e):pK(e)}o(gK,"ReadonlyWithFlag");function Bi(e,t){let r=t??!0;return kr(e)?eR(e,r):gK(e,r)}o(Bi,"Readonly");function hK(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Bi(e[n],t);return r}o(hK,"FromProperties");function xK(e,t){return hK(e.properties,t)}o(xK,"FromMappedResult");function eR(e,t){let r=xK(e,t);return Qt(r)}o(eR,"ReadonlyFromMappedResult");function Wo(e,t){return oe(e.length>0?{[re]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[re]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}o(Wo,"Tuple");function tR(e,t){return e in t?qo(e,t[e]):Qt(t)}o(tR,"FromMappedResult");function _K(e){return{[e]:Vt(e)}}o(_K,"MappedKeyToKnownMappedResultProperties");function yK(e){let t={};for(let r of e)t[r]=Vt(r);return t}o(yK,"MappedKeyToUnknownMappedResultProperties");function bK(e,t){return BP(t,e)?_K(e):yK(t)}o(bK,"MappedKeyToMappedResultProperties");function vK(e,t){let r=bK(e,t);return tR(e,r)}o(vK,"FromMappedKey");function Lp(e,t){return t.map(r=>qo(e,r))}o(Lp,"FromRest");function TK(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(t))r[n]=qo(e,t[n]);return r}o(TK,"FromProperties");function qo(e,t){let r={...t};return Mi(t)?si(qo(e,Kr(t,[Vn]))):Df(t)?Bi(qo(e,Kr(t,[vs]))):kr(t)?tR(e,t.properties):uo(t)?vK(e,t.keys):Es(t)?Ff(Lp(e,t.parameters),qo(e,t.returns),r):Is(t)?l0(Lp(e,t.parameters),qo(e,t.returns),r):Wc(t)?Lf(qo(e,t.items),r):Hc(t)?jf(qo(e,t.items),r):Gr(t)?ai(Lp(e,t.allOf),r):Xt(t)?sr(Lp(e,t.anyOf),r):mo(t)?Wo(Lp(e,t.items??[]),r):an(t)?ar(TK(e,t.properties),r):Ts(t)?Of(qo(e,t.items),r):zc(t)?N5(qo(e,t.item),r):t}o(qo,"FromSchemaType");function CK(e,t){let r={};for(let n of e)r[n]=qo(n,t);return r}o(CK,"MappedFunctionReturnType");function rR(e,t,r){let n=$r(e)?Ui(e):e,s=t({[re]:"MappedKey",keys:n}),a=CK(n,s);return ar(a,r)}o(rR,"Mapped");function EK(e){return oe(Kr(e,[Vn]))}o(EK,"RemoveOptional");function IK(e){return oe({...e,[Vn]:"Optional"})}o(IK,"AddOptional");function wK(e,t){return t===!1?EK(e):IK(e)}o(wK,"OptionalWithFlag");function si(e,t){let r=t??!0;return kr(e)?nR(e,r):wK(e,r)}o(si,"Optional");function SK(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=si(e[n],t);return r}o(SK,"FromProperties");function PK(e,t){return SK(e.properties,t)}o(PK,"FromMappedResult");function nR(e,t){let r=PK(e,t);return Qt(r)}o(nR,"OptionalFromMappedResult");function Fp(e,t={}){let r=e.every(s=>an(s)),n=$r(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return oe(t.unevaluatedProperties===!1||$r(t.unevaluatedProperties)||r?{...n,[re]:"Intersect",type:"object",allOf:e}:{...n,[re]:"Intersect",allOf:e},t)}o(Fp,"IntersectCreate");function RK(e){return e.every(t=>Mi(t))}o(RK,"IsIntersectOptional");function AK(e){return Kr(e,[Vn])}o(AK,"RemoveOptionalFromType");function iR(e){return e.map(t=>Mi(t)?AK(t):t)}o(iR,"RemoveOptionalFromRest");function DK(e,t){return RK(e)?si(Fp(iR(e),t)):Fp(iR(e),t)}o(DK,"ResolveIntersect");function k5(e,t={}){if(e.length===1)return oe(e[0],t);if(e.length===0)return bt(t);if(e.some(r=>or(r)))throw new Error("Cannot intersect transform types");return DK(e,t)}o(k5,"IntersectEvaluated");function ai(e,t){if(e.length===1)return oe(e[0],t);if(e.length===0)return bt(t);if(e.some(r=>or(r)))throw new Error("Cannot intersect transform types");return Fp(e,t)}o(ai,"Intersect");function Ho(...e){let[t,r]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new lt("Ref: $ref must be a string");return oe({[re]:"Ref",$ref:t},r)}o(Ho,"Ref");function kK(e,t){return Sr("Awaited",[Sr(e,t)])}o(kK,"FromComputed");function NK(e){return Sr("Awaited",[Ho(e)])}o(NK,"FromRef");function OK(e){return ai(oR(e))}o(OK,"FromIntersect");function LK(e){return sr(oR(e))}o(LK,"FromUnion");function FK(e){return Wf(e)}o(FK,"FromPromise");function oR(e){return e.map(t=>Wf(t))}o(oR,"FromRest");function Wf(e,t){return oe(Cs(e)?kK(e.target,e.parameters):Gr(e)?OK(e.allOf):Xt(e)?LK(e.anyOf):zc(e)?FK(e.item):Jr(e)?NK(e.$ref):e,t)}o(Wf,"Awaited");function sR(e){let t=[];for(let r of e)t.push($i(r));return t}o(sR,"FromRest");function MK(e){let t=sR(e);return WP(t)}o(MK,"FromIntersect");function UK(e){let t=sR(e);return jP(t)}o(UK,"FromUnion");function BK(e){return e.map((t,r)=>r.toString())}o(BK,"FromTuple");function $K(e){return["[number]"]}o($K,"FromArray");function jK(e){return globalThis.Object.getOwnPropertyNames(e)}o(jK,"FromProperties");function WK(e){return zb?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}o(WK,"FromPatternProperties");function $i(e){return Gr(e)?MK(e.allOf):Xt(e)?UK(e.anyOf):mo(e)?BK(e.items??[]):Ts(e)?$K(e.items):an(e)?jK(e.properties):Vc(e)?WK(e.patternProperties):[]}o($i,"KeyOfPropertyKeys");var zb=!1;function ga(e){zb=!0;let t=$i(e);return zb=!1,`^(${t.map(n=>`(${n})`).join("|")})$`}o(ga,"KeyOfPattern");function qK(e,t){return Sr("KeyOf",[Sr(e,t)])}o(qK,"FromComputed");function HK(e){return Sr("KeyOf",[Ho(e)])}o(HK,"FromRef");function zK(e,t){let r=$i(e),n=VK(r),s=c0(n);return oe(s,t)}o(zK,"KeyOfFromType");function VK(e){return e.map(t=>t==="[number]"?jo():Vt(t))}o(VK,"KeyOfPropertyKeysToRest");function qf(e,t){return Cs(e)?qK(e.target,e.parameters):Jr(e)?HK(e.$ref):kr(e)?aR(e,t):zK(e,t)}o(qf,"KeyOf");function GK(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=qf(e[n],Ar(t));return r}o(GK,"FromProperties");function KK(e,t){return GK(e.properties,t)}o(KK,"FromMappedResult");function aR(e,t){let r=KK(e,t);return Qt(r)}o(aR,"KeyOfFromMappedResult");function O5(e){let t=$i(e),r=Op(e,t);return t.map((n,s)=>[t[s],r[s]])}o(O5,"KeyOfPropertyEntries");function YK(e){let t=[];for(let r of e)t.push(...$i(r));return $P(t)}o(YK,"CompositeKeys");function XK(e){return e.filter(t=>!ul(t))}o(XK,"FilterNever");function JK(e,t){let r=[];for(let n of e)r.push(...Op(n,[t]));return XK(r)}o(JK,"CompositeProperty");function ZK(e,t){let r={};for(let n of t)r[n]=k5(JK(e,n));return r}o(ZK,"CompositeProperties");function lR(e,t){let r=YK(e),n=ZK(e,r);return ar(n,t)}o(lR,"Composite");function L5(e){return oe({[re]:"Date",type:"Date"},e)}o(L5,"Date");function F5(e){return oe({[re]:"Null",type:"null"},e)}o(F5,"Null");function M5(e){return oe({[re]:"Symbol",type:"symbol"},e)}o(M5,"Symbol");function U5(e){return oe({[re]:"Undefined",type:"undefined"},e)}o(U5,"Undefined");function B5(e){return oe({[re]:"Uint8Array",type:"Uint8Array"},e)}o(B5,"Uint8Array");function Rs(e){return oe({[re]:"Unknown"},e)}o(Rs,"Unknown");function QK(e){return e.map(t=>Vb(t,!1))}o(QK,"FromArray");function eY(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Bi(Vb(e[r],!1));return t}o(eY,"FromProperties");function $5(e,t){return t===!0?e:Bi(e)}o($5,"ConditionalReadonly");function Vb(e,t){return Eb(e)?$5(dl(),t):wb(e)?$5(dl(),t):on(e)?Bi(Wo(QK(e))):aa(e)?B5():jc(e)?L5():gr(e)?$5(ar(eY(e)),t):Ib(e)?$5(l0([],Rs()),t):sn(e)?U5():Sb(e)?F5():Pb(e)?M5():Cp(e)?$f():ao(e)?Vt(e):sa(e)?Vt(e):Tr(e)?Vt(e):ar({})}o(Vb,"FromValue");function cR(e,t){return oe(Vb(e,!0),t)}o(cR,"Const");function uR(e,t){return Es(e)?Wo(e.parameters,t):bt(t)}o(uR,"ConstructorParameters");function fR(e,t){if(sn(e))throw new Error("Enum undefined or empty");let r=globalThis.Object.getOwnPropertyNames(e).filter(a=>isNaN(a)).map(a=>e[a]),s=[...new Set(r)].map(a=>Vt(a));return sr(s,{...t,[$o]:"Enum"})}o(fR,"Enum");var Kb=class extends lt{static{o(this,"ExtendsResolverError")}},se;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(se||(se={}));function zo(e){return e===se.False?e:se.True}o(zo,"IntoBooleanResult");function Hf(e){throw new Kb(e)}o(Hf,"Throw");function pn(e){return X.IsNever(e)||X.IsIntersect(e)||X.IsUnion(e)||X.IsUnknown(e)||X.IsAny(e)}o(pn,"IsStructuralRight");function gn(e,t){return X.IsNever(t)?_R(e,t):X.IsIntersect(t)?j5(e,t):X.IsUnion(t)?Zb(e,t):X.IsUnknown(t)?TR(e,t):X.IsAny(t)?Jb(e,t):Hf("StructuralRight")}o(gn,"StructuralRight");function Jb(e,t){return se.True}o(Jb,"FromAnyRight");function tY(e,t){return X.IsIntersect(t)?j5(e,t):X.IsUnion(t)&&t.anyOf.some(r=>X.IsAny(r)||X.IsUnknown(r))?se.True:X.IsUnion(t)?se.Union:X.IsUnknown(t)||X.IsAny(t)?se.True:se.Union}o(tY,"FromAny");function rY(e,t){return X.IsUnknown(e)?se.False:X.IsAny(e)?se.Union:X.IsNever(e)?se.True:se.False}o(rY,"FromArrayRight");function nY(e,t){return X.IsObject(t)&&W5(t)?se.True:pn(t)?gn(e,t):X.IsArray(t)?zo(xr(e.items,t.items)):se.False}o(nY,"FromArray");function iY(e,t){return pn(t)?gn(e,t):X.IsAsyncIterator(t)?zo(xr(e.items,t.items)):se.False}o(iY,"FromAsyncIterator");function oY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsBigInt(t)?se.True:se.False}o(oY,"FromBigInt");function hR(e,t){return X.IsLiteralBoolean(e)||X.IsBoolean(e)?se.True:se.False}o(hR,"FromBooleanRight");function sY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsBoolean(t)?se.True:se.False}o(sY,"FromBoolean");function aY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsConstructor(t)?e.parameters.length>t.parameters.length?se.False:e.parameters.every((r,n)=>zo(xr(t.parameters[n],r))===se.True)?zo(xr(e.returns,t.returns)):se.False:se.False}o(aY,"FromConstructor");function lY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsDate(t)?se.True:se.False}o(lY,"FromDate");function cY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsFunction(t)?e.parameters.length>t.parameters.length?se.False:e.parameters.every((r,n)=>zo(xr(t.parameters[n],r))===se.True)?zo(xr(e.returns,t.returns)):se.False:se.False}o(cY,"FromFunction");function xR(e,t){return X.IsLiteral(e)&&oi.IsNumber(e.const)||X.IsNumber(e)||X.IsInteger(e)?se.True:se.False}o(xR,"FromIntegerRight");function uY(e,t){return X.IsInteger(t)||X.IsNumber(t)?se.True:pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):se.False}o(uY,"FromInteger");function j5(e,t){return t.allOf.every(r=>xr(e,r)===se.True)?se.True:se.False}o(j5,"FromIntersectRight");function fY(e,t){return e.allOf.some(r=>xr(r,t)===se.True)?se.True:se.False}o(fY,"FromIntersect");function dY(e,t){return pn(t)?gn(e,t):X.IsIterator(t)?zo(xr(e.items,t.items)):se.False}o(dY,"FromIterator");function mY(e,t){return X.IsLiteral(t)&&t.const===e.const?se.True:pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsString(t)?vR(e,t):X.IsNumber(t)?yR(e,t):X.IsInteger(t)?xR(e,t):X.IsBoolean(t)?hR(e,t):se.False}o(mY,"FromLiteral");function _R(e,t){return se.False}o(_R,"FromNeverRight");function pY(e,t){return se.True}o(pY,"FromNever");function dR(e){let[t,r]=[e,0];for(;X.IsNot(t);)t=t.not,r+=1;return r%2===0?t:Rs()}o(dR,"UnwrapTNot");function gY(e,t){return X.IsNot(e)?xr(dR(e),t):X.IsNot(t)?xr(e,dR(t)):Hf("Invalid fallthrough for Not")}o(gY,"FromNot");function hY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsNull(t)?se.True:se.False}o(hY,"FromNull");function yR(e,t){return X.IsLiteralNumber(e)||X.IsNumber(e)||X.IsInteger(e)?se.True:se.False}o(yR,"FromNumberRight");function xY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsInteger(t)||X.IsNumber(t)?se.True:se.False}o(xY,"FromNumber");function ji(e,t){return Object.getOwnPropertyNames(e.properties).length===t}o(ji,"IsObjectPropertyCount");function mR(e){return W5(e)}o(mR,"IsObjectStringLike");function pR(e){return ji(e,0)||ji(e,1)&&"description"in e.properties&&X.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(X.IsString(e.properties.description.anyOf[0])&&X.IsUndefined(e.properties.description.anyOf[1])||X.IsString(e.properties.description.anyOf[1])&&X.IsUndefined(e.properties.description.anyOf[0]))}o(pR,"IsObjectSymbolLike");function Gb(e){return ji(e,0)}o(Gb,"IsObjectNumberLike");function gR(e){return ji(e,0)}o(gR,"IsObjectBooleanLike");function _Y(e){return ji(e,0)}o(_Y,"IsObjectBigIntLike");function yY(e){return ji(e,0)}o(yY,"IsObjectDateLike");function bY(e){return W5(e)}o(bY,"IsObjectUint8ArrayLike");function vY(e){let t=jo();return ji(e,0)||ji(e,1)&&"length"in e.properties&&zo(xr(e.properties.length,t))===se.True}o(vY,"IsObjectFunctionLike");function TY(e){return ji(e,0)}o(TY,"IsObjectConstructorLike");function W5(e){let t=jo();return ji(e,0)||ji(e,1)&&"length"in e.properties&&zo(xr(e.properties.length,t))===se.True}o(W5,"IsObjectArrayLike");function CY(e){let t=l0([dl()],dl());return ji(e,0)||ji(e,1)&&"then"in e.properties&&zo(xr(e.properties.then,t))===se.True}o(CY,"IsObjectPromiseLike");function bR(e,t){return xr(e,t)===se.False||X.IsOptional(e)&&!X.IsOptional(t)?se.False:se.True}o(bR,"Property");function li(e,t){return X.IsUnknown(e)?se.False:X.IsAny(e)?se.Union:X.IsNever(e)||X.IsLiteralString(e)&&mR(t)||X.IsLiteralNumber(e)&&Gb(t)||X.IsLiteralBoolean(e)&&gR(t)||X.IsSymbol(e)&&pR(t)||X.IsBigInt(e)&&_Y(t)||X.IsString(e)&&mR(t)||X.IsSymbol(e)&&pR(t)||X.IsNumber(e)&&Gb(t)||X.IsInteger(e)&&Gb(t)||X.IsBoolean(e)&&gR(t)||X.IsUint8Array(e)&&bY(t)||X.IsDate(e)&&yY(t)||X.IsConstructor(e)&&TY(t)||X.IsFunction(e)&&vY(t)?se.True:X.IsRecord(e)&&X.IsString(Yb(e))?t[$o]==="Record"?se.True:se.False:X.IsRecord(e)&&X.IsNumber(Yb(e))?ji(t,0)?se.True:se.False:se.False}o(li,"FromObjectRight");function EY(e,t){return pn(t)?gn(e,t):X.IsRecord(t)?Vo(e,t):X.IsObject(t)?(()=>{for(let r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!X.IsOptional(t.properties[r]))return se.False;if(X.IsOptional(t.properties[r]))return se.True;if(bR(e.properties[r],t.properties[r])===se.False)return se.False}return se.True})():se.False}o(EY,"FromObject");function IY(e,t){return pn(t)?gn(e,t):X.IsObject(t)&&CY(t)?se.True:X.IsPromise(t)?zo(xr(e.item,t.item)):se.False}o(IY,"FromPromise");function Yb(e){return s0 in e.patternProperties?jo():a0 in e.patternProperties?Ii():Hf("Unknown record key pattern")}o(Yb,"RecordKey");function Xb(e){return s0 in e.patternProperties?e.patternProperties[s0]:a0 in e.patternProperties?e.patternProperties[a0]:Hf("Unable to get record value schema")}o(Xb,"RecordValue");function Vo(e,t){let[r,n]=[Yb(t),Xb(t)];return X.IsLiteralString(e)&&X.IsNumber(r)&&zo(xr(e,n))===se.True?se.True:X.IsUint8Array(e)&&X.IsNumber(r)||X.IsString(e)&&X.IsNumber(r)||X.IsArray(e)&&X.IsNumber(r)?xr(e,n):X.IsObject(e)?(()=>{for(let s of Object.getOwnPropertyNames(e.properties))if(bR(n,e.properties[s])===se.False)return se.False;return se.True})():se.False}o(Vo,"FromRecordRight");function wY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?xr(Xb(e),Xb(t)):se.False}o(wY,"FromRecord");function SY(e,t){let r=X.IsRegExp(e)?Ii():e,n=X.IsRegExp(t)?Ii():t;return xr(r,n)}o(SY,"FromRegExp");function vR(e,t){return X.IsLiteral(e)&&oi.IsString(e.const)||X.IsString(e)?se.True:se.False}o(vR,"FromStringRight");function PY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsString(t)?se.True:se.False}o(PY,"FromString");function RY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsSymbol(t)?se.True:se.False}o(RY,"FromSymbol");function AY(e,t){return X.IsTemplateLiteral(e)?xr(Kc(e),t):X.IsTemplateLiteral(t)?xr(e,Kc(t)):Hf("Invalid fallthrough for TemplateLiteral")}o(AY,"FromTemplateLiteral");function DY(e,t){return X.IsArray(t)&&e.items!==void 0&&e.items.every(r=>xr(r,t.items)===se.True)}o(DY,"IsArrayOfTuple");function kY(e,t){return X.IsNever(e)?se.True:X.IsUnknown(e)?se.False:X.IsAny(e)?se.Union:se.False}o(kY,"FromTupleRight");function NY(e,t){return pn(t)?gn(e,t):X.IsObject(t)&&W5(t)||X.IsArray(t)&&DY(e,t)?se.True:X.IsTuple(t)?oi.IsUndefined(e.items)&&!oi.IsUndefined(t.items)||!oi.IsUndefined(e.items)&&oi.IsUndefined(t.items)?se.False:oi.IsUndefined(e.items)&&!oi.IsUndefined(t.items)||e.items.every((r,n)=>xr(r,t.items[n])===se.True)?se.True:se.False:se.False}o(NY,"FromTuple");function OY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsUint8Array(t)?se.True:se.False}o(OY,"FromUint8Array");function LY(e,t){return pn(t)?gn(e,t):X.IsObject(t)?li(e,t):X.IsRecord(t)?Vo(e,t):X.IsVoid(t)?UY(e,t):X.IsUndefined(t)?se.True:se.False}o(LY,"FromUndefined");function Zb(e,t){return t.anyOf.some(r=>xr(e,r)===se.True)?se.True:se.False}o(Zb,"FromUnionRight");function FY(e,t){return e.anyOf.every(r=>xr(r,t)===se.True)?se.True:se.False}o(FY,"FromUnion");function TR(e,t){return se.True}o(TR,"FromUnknownRight");function MY(e,t){return X.IsNever(t)?_R(e,t):X.IsIntersect(t)?j5(e,t):X.IsUnion(t)?Zb(e,t):X.IsAny(t)?Jb(e,t):X.IsString(t)?vR(e,t):X.IsNumber(t)?yR(e,t):X.IsInteger(t)?xR(e,t):X.IsBoolean(t)?hR(e,t):X.IsArray(t)?rY(e,t):X.IsTuple(t)?kY(e,t):X.IsObject(t)?li(e,t):X.IsUnknown(t)?se.True:se.False}o(MY,"FromUnknown");function UY(e,t){return X.IsUndefined(e)||X.IsUndefined(e)?se.True:se.False}o(UY,"FromVoidRight");function BY(e,t){return X.IsIntersect(t)?j5(e,t):X.IsUnion(t)?Zb(e,t):X.IsUnknown(t)?TR(e,t):X.IsAny(t)?Jb(e,t):X.IsObject(t)?li(e,t):X.IsVoid(t)?se.True:se.False}o(BY,"FromVoid");function xr(e,t){return X.IsTemplateLiteral(e)||X.IsTemplateLiteral(t)?AY(e,t):X.IsRegExp(e)||X.IsRegExp(t)?SY(e,t):X.IsNot(e)||X.IsNot(t)?gY(e,t):X.IsAny(e)?tY(e,t):X.IsArray(e)?nY(e,t):X.IsBigInt(e)?oY(e,t):X.IsBoolean(e)?sY(e,t):X.IsAsyncIterator(e)?iY(e,t):X.IsConstructor(e)?aY(e,t):X.IsDate(e)?lY(e,t):X.IsFunction(e)?cY(e,t):X.IsInteger(e)?uY(e,t):X.IsIntersect(e)?fY(e,t):X.IsIterator(e)?dY(e,t):X.IsLiteral(e)?mY(e,t):X.IsNever(e)?pY(e,t):X.IsNull(e)?hY(e,t):X.IsNumber(e)?xY(e,t):X.IsObject(e)?EY(e,t):X.IsRecord(e)?wY(e,t):X.IsString(e)?PY(e,t):X.IsSymbol(e)?RY(e,t):X.IsTuple(e)?NY(e,t):X.IsPromise(e)?IY(e,t):X.IsUint8Array(e)?OY(e,t):X.IsUndefined(e)?LY(e,t):X.IsUnion(e)?FY(e,t):X.IsUnknown(e)?MY(e,t):X.IsVoid(e)?BY(e,t):Hf(`Unknown left type operand '${e[re]}'`)}o(xr,"Visit");function pl(e,t){return xr(e,t)}o(pl,"ExtendsCheck");function $Y(e,t,r,n,s){let a={};for(let l of globalThis.Object.getOwnPropertyNames(e))a[l]=zf(e[l],t,r,n,Ar(s));return a}o($Y,"FromProperties");function jY(e,t,r,n,s){return $Y(e.properties,t,r,n,s)}o(jY,"FromMappedResult");function CR(e,t,r,n,s){let a=jY(e,t,r,n,s);return Qt(a)}o(CR,"ExtendsFromMappedResult");function WY(e,t,r,n){let s=pl(e,t);return s===se.Union?sr([r,n]):s===se.True?r:n}o(WY,"ExtendsResolve");function zf(e,t,r,n,s){return kr(e)?CR(e,t,r,n,s):uo(e)?oe(ER(e,t,r,n,s)):oe(WY(e,t,r,n),s)}o(zf,"Extends");function qY(e,t,r,n,s){return{[e]:zf(Vt(e),t,r,n,Ar(s))}}o(qY,"FromPropertyKey");function HY(e,t,r,n,s){return e.reduce((a,l)=>({...a,...qY(l,t,r,n,s)}),{})}o(HY,"FromPropertyKeys");function zY(e,t,r,n,s){return HY(e.keys,t,r,n,s)}o(zY,"FromMappedKey");function ER(e,t,r,n,s){let a=zY(e,t,r,n,s);return Qt(a)}o(ER,"ExtendsFromMappedKey");function VY(e){return e.allOf.every(t=>ha(t))}o(VY,"Intersect");function GY(e){return e.anyOf.some(t=>ha(t))}o(GY,"Union");function KY(e){return!ha(e.not)}o(KY,"Not");function ha(e){return e[re]==="Intersect"?VY(e):e[re]==="Union"?GY(e):e[re]==="Not"?KY(e):e[re]==="Undefined"}o(ha,"ExtendsUndefinedCheck");function IR(e,t){return Vf(Kc(e),t)}o(IR,"ExcludeFromTemplateLiteral");function YY(e,t){let r=e.filter(n=>pl(n,t)===se.False);return r.length===1?r[0]:sr(r)}o(YY,"ExcludeRest");function Vf(e,t,r={}){return fo(e)?oe(IR(e,t),r):kr(e)?oe(wR(e,t),r):oe(Xt(e)?YY(e.anyOf,t):pl(e,t)!==se.False?bt():e,r)}o(Vf,"Exclude");function XY(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Vf(e[n],t);return r}o(XY,"FromProperties");function JY(e,t){return XY(e.properties,t)}o(JY,"FromMappedResult");function wR(e,t){let r=JY(e,t);return Qt(r)}o(wR,"ExcludeFromMappedResult");function SR(e,t){return Gf(Kc(e),t)}o(SR,"ExtractFromTemplateLiteral");function ZY(e,t){let r=e.filter(n=>pl(n,t)!==se.False);return r.length===1?r[0]:sr(r)}o(ZY,"ExtractRest");function Gf(e,t,r){return fo(e)?oe(SR(e,t),r):kr(e)?oe(PR(e,t),r):oe(Xt(e)?ZY(e.anyOf,t):pl(e,t)!==se.False?e:bt(),r)}o(Gf,"Extract");function QY(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Gf(e[n],t);return r}o(QY,"FromProperties");function eX(e,t){return QY(e.properties,t)}o(eX,"FromMappedResult");function PR(e,t){let r=eX(e,t);return Qt(r)}o(PR,"ExtractFromMappedResult");function RR(e,t){return Es(e)?oe(e.returns,t):bt(t)}o(RR,"InstanceType");function q5(e){return Bi(si(e))}o(q5,"ReadonlyOptional");function Yc(e,t,r){return oe({[re]:"Record",type:"object",patternProperties:{[e]:t}},r)}o(Yc,"RecordCreateFromPattern");function Qb(e,t,r){let n={};for(let s of e)n[s]=t;return ar(n,{...r,[$o]:"Record"})}o(Qb,"RecordCreateFromKeys");function tX(e,t,r){return R5(e)?Qb(Ui(e),t,r):Yc(e.pattern,t,r)}o(tX,"FromTemplateLiteralKey");function rX(e,t,r){return Qb(Ui(sr(e)),t,r)}o(rX,"FromUnionKey");function nX(e,t,r){return Qb([e.toString()],t,r)}o(nX,"FromLiteralKey");function iX(e,t,r){return Yc(e.source,t,r)}o(iX,"FromRegExpKey");function oX(e,t,r){let n=sn(e.pattern)?a0:e.pattern;return Yc(n,t,r)}o(oX,"FromStringKey");function sX(e,t,r){return Yc(a0,t,r)}o(sX,"FromAnyKey");function aX(e,t,r){return Yc(UP,t,r)}o(aX,"FromNeverKey");function lX(e,t,r){return ar({true:t,false:t},r)}o(lX,"FromBooleanKey");function cX(e,t,r){return Yc(s0,t,r)}o(cX,"FromIntegerKey");function uX(e,t,r){return Yc(s0,t,r)}o(uX,"FromNumberKey");function H5(e,t,r={}){return Xt(e)?rX(e.anyOf,t,r):fo(e)?tX(e,t,r):co(e)?nX(e.const,t,r):ua(e)?lX(e,t,r):ws(e)?cX(e,t,r):Ss(e)?uX(e,t,r):kb(e)?iX(e,t,r):fa(e)?oX(e,t,r):Ab(e)?sX(e,t,r):ul(e)?aX(e,t,r):bt(r)}o(H5,"Record");function z5(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}o(z5,"RecordPattern");function AR(e){let t=z5(e);return t===a0?Ii():t===s0?jo():Ii({pattern:t})}o(AR,"RecordKey");function V5(e){return e.patternProperties[z5(e)]}o(V5,"RecordValue");function fX(e,t){return t.parameters=Mp(e,t.parameters),t.returns=As(e,t.returns),t}o(fX,"FromConstructor");function dX(e,t){return t.parameters=Mp(e,t.parameters),t.returns=As(e,t.returns),t}o(dX,"FromFunction");function mX(e,t){return t.allOf=Mp(e,t.allOf),t}o(mX,"FromIntersect");function pX(e,t){return t.anyOf=Mp(e,t.anyOf),t}o(pX,"FromUnion");function gX(e,t){return sn(t.items)||(t.items=Mp(e,t.items)),t}o(gX,"FromTuple");function hX(e,t){return t.items=As(e,t.items),t}o(hX,"FromArray");function xX(e,t){return t.items=As(e,t.items),t}o(xX,"FromAsyncIterator");function _X(e,t){return t.items=As(e,t.items),t}o(_X,"FromIterator");function yX(e,t){return t.item=As(e,t.item),t}o(yX,"FromPromise");function bX(e,t){let r=EX(e,t.properties);return{...t,...ar(r)}}o(bX,"FromObject");function vX(e,t){let r=As(e,AR(t)),n=As(e,V5(t)),s=H5(r,n);return{...t,...s}}o(vX,"FromRecord");function TX(e,t){return t.index in e?e[t.index]:Rs()}o(TX,"FromArgument");function CX(e,t){let r=Df(t),n=Mi(t),s=As(e,t);return r&&n?q5(s):r&&!n?Bi(s):!r&&n?si(s):s}o(CX,"FromProperty");function EX(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:CX(e,t[n])}),{})}o(EX,"FromProperties");function Mp(e,t){return t.map(r=>As(e,r))}o(Mp,"FromTypes");function As(e,t){return Es(t)?fX(e,t):Is(t)?dX(e,t):Gr(t)?mX(e,t):Xt(t)?pX(e,t):mo(t)?gX(e,t):Ts(t)?hX(e,t):Wc(t)?xX(e,t):Hc(t)?_X(e,t):zc(t)?yX(e,t):an(t)?bX(e,t):Vc(t)?vX(e,t):Db(t)?TX(e,t):t}o(As,"FromType");function DR(e,t){return As(t,Rf(e))}o(DR,"Instantiate");function kR(e){return oe({[re]:"Integer",type:"integer"},e)}o(kR,"Integer");function IX(e,t,r){return{[e]:Ds(Vt(e),t,Ar(r))}}o(IX,"MappedIntrinsicPropertyKey");function wX(e,t,r){return e.reduce((s,a)=>({...s,...IX(a,t,r)}),{})}o(wX,"MappedIntrinsicPropertyKeys");function SX(e,t,r){return wX(e.keys,t,r)}o(SX,"MappedIntrinsicProperties");function NR(e,t,r){let n=SX(e,t,r);return Qt(n)}o(NR,"IntrinsicFromMappedKey");function PX(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}o(PX,"ApplyUncapitalize");function RX(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}o(RX,"ApplyCapitalize");function AX(e){return e.toUpperCase()}o(AX,"ApplyUppercase");function DX(e){return e.toLowerCase()}o(DX,"ApplyLowercase");function kX(e,t,r){let n=Uf(e.pattern);if(!Gc(n))return{...e,pattern:OR(e.pattern,t)};let l=[...Np(n)].map(d=>Vt(d)),c=LR(l,t),u=sr(c);return D5([u],r)}o(kX,"FromTemplateLiteral");function OR(e,t){return typeof e=="string"?t==="Uncapitalize"?PX(e):t==="Capitalize"?RX(e):t==="Uppercase"?AX(e):t==="Lowercase"?DX(e):e:e.toString()}o(OR,"FromLiteralValue");function LR(e,t){return e.map(r=>Ds(r,t))}o(LR,"FromRest");function Ds(e,t,r={}){return uo(e)?NR(e,t,r):fo(e)?kX(e,t,r):Xt(e)?sr(LR(e.anyOf,t),r):co(e)?Vt(OR(e.const,t),r):oe(e,r)}o(Ds,"Intrinsic");function FR(e,t={}){return Ds(e,"Capitalize",t)}o(FR,"Capitalize");function MR(e,t={}){return Ds(e,"Lowercase",t)}o(MR,"Lowercase");function UR(e,t={}){return Ds(e,"Uncapitalize",t)}o(UR,"Uncapitalize");function BR(e,t={}){return Ds(e,"Uppercase",t)}o(BR,"Uppercase");function NX(e,t,r){let n={};for(let s of globalThis.Object.getOwnPropertyNames(e))n[s]=gl(e[s],t,Ar(r));return n}o(NX,"FromProperties");function OX(e,t,r){return NX(e.properties,t,r)}o(OX,"FromMappedResult");function $R(e,t,r){let n=OX(e,t,r);return Qt(n)}o($R,"OmitFromMappedResult");function LX(e,t){return e.map(r=>e8(r,t))}o(LX,"FromIntersect");function FX(e,t){return e.map(r=>e8(r,t))}o(FX,"FromUnion");function MX(e,t){let{[t]:r,...n}=e;return n}o(MX,"FromProperty");function UX(e,t){return t.reduce((r,n)=>MX(r,n),e)}o(UX,"FromProperties");function BX(e,t){let r=Kr(e,[Br,"$id","required","properties"]),n=UX(e.properties,t);return ar(n,r)}o(BX,"FromObject");function $X(e){let t=e.reduce((r,n)=>w5(n)?[...r,Vt(n)]:r,[]);return sr(t)}o($X,"UnionFromPropertyKeys");function e8(e,t){return Gr(e)?ai(LX(e.allOf,t)):Xt(e)?sr(FX(e.anyOf,t)):an(e)?BX(e,t):ar({})}o(e8,"OmitResolve");function gl(e,t,r){let n=on(t)?$X(t):t,s=$r(t)?Ui(t):t,a=Jr(e),l=Jr(t);return kr(e)?$R(e,s,r):uo(t)?jR(e,t,r):a&&l?Sr("Omit",[e,n],r):!a&&l?Sr("Omit",[e,n],r):a&&!l?Sr("Omit",[e,n],r):oe({...e8(e,s),...r})}o(gl,"Omit");function jX(e,t,r){return{[t]:gl(e,[t],Ar(r))}}o(jX,"FromPropertyKey");function WX(e,t,r){return t.reduce((n,s)=>({...n,...jX(e,s,r)}),{})}o(WX,"FromPropertyKeys");function qX(e,t,r){return WX(e,t.keys,r)}o(qX,"FromMappedKey");function jR(e,t,r){let n=qX(e,t,r);return Qt(n)}o(jR,"OmitFromMappedKey");function HX(e,t,r){let n={};for(let s of globalThis.Object.getOwnPropertyNames(e))n[s]=hl(e[s],t,Ar(r));return n}o(HX,"FromProperties");function zX(e,t,r){return HX(e.properties,t,r)}o(zX,"FromMappedResult");function WR(e,t,r){let n=zX(e,t,r);return Qt(n)}o(WR,"PickFromMappedResult");function VX(e,t){return e.map(r=>t8(r,t))}o(VX,"FromIntersect");function GX(e,t){return e.map(r=>t8(r,t))}o(GX,"FromUnion");function KX(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}o(KX,"FromProperties");function YX(e,t){let r=Kr(e,[Br,"$id","required","properties"]),n=KX(e.properties,t);return ar(n,r)}o(YX,"FromObject");function XX(e){let t=e.reduce((r,n)=>w5(n)?[...r,Vt(n)]:r,[]);return sr(t)}o(XX,"UnionFromPropertyKeys");function t8(e,t){return Gr(e)?ai(VX(e.allOf,t)):Xt(e)?sr(GX(e.anyOf,t)):an(e)?YX(e,t):ar({})}o(t8,"PickResolve");function hl(e,t,r){let n=on(t)?XX(t):t,s=$r(t)?Ui(t):t,a=Jr(e),l=Jr(t);return kr(e)?WR(e,s,r):uo(t)?qR(e,t,r):a&&l?Sr("Pick",[e,n],r):!a&&l?Sr("Pick",[e,n],r):a&&!l?Sr("Pick",[e,n],r):oe({...t8(e,s),...r})}o(hl,"Pick");function JX(e,t,r){return{[t]:hl(e,[t],Ar(r))}}o(JX,"FromPropertyKey");function ZX(e,t,r){return t.reduce((n,s)=>({...n,...JX(e,s,r)}),{})}o(ZX,"FromPropertyKeys");function QX(e,t,r){return ZX(e,t.keys,r)}o(QX,"FromMappedKey");function qR(e,t,r){let n=QX(e,t,r);return Qt(n)}o(qR,"PickFromMappedKey");function eJ(e,t){return Sr("Partial",[Sr(e,t)])}o(eJ,"FromComputed");function tJ(e){return Sr("Partial",[Ho(e)])}o(tJ,"FromRef");function rJ(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=si(e[r]);return t}o(rJ,"FromProperties");function nJ(e){let t=Kr(e,[Br,"$id","required","properties"]),r=rJ(e.properties);return ar(r,t)}o(nJ,"FromObject");function HR(e){return e.map(t=>zR(t))}o(HR,"FromRest");function zR(e){return Cs(e)?eJ(e.target,e.parameters):Jr(e)?tJ(e.$ref):Gr(e)?ai(HR(e.allOf)):Xt(e)?sr(HR(e.anyOf)):an(e)?nJ(e):qc(e)||ua(e)||ws(e)||co(e)||wp(e)||Ss(e)||fa(e)||Sp(e)||da(e)?e:ar({})}o(zR,"PartialResolve");function Kf(e,t){return kr(e)?VR(e,t):oe({...zR(e),...t})}o(Kf,"Partial");function iJ(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Kf(e[n],Ar(t));return r}o(iJ,"FromProperties");function oJ(e,t){return iJ(e.properties,t)}o(oJ,"FromMappedResult");function VR(e,t){let r=oJ(e,t);return Qt(r)}o(VR,"PartialFromMappedResult");function sJ(e,t){return Sr("Required",[Sr(e,t)])}o(sJ,"FromComputed");function aJ(e){return Sr("Required",[Ho(e)])}o(aJ,"FromRef");function lJ(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Kr(e[r],[Vn]);return t}o(lJ,"FromProperties");function cJ(e){let t=Kr(e,[Br,"$id","required","properties"]),r=lJ(e.properties);return ar(r,t)}o(cJ,"FromObject");function GR(e){return e.map(t=>KR(t))}o(GR,"FromRest");function KR(e){return Cs(e)?sJ(e.target,e.parameters):Jr(e)?aJ(e.$ref):Gr(e)?ai(GR(e.allOf)):Xt(e)?sr(GR(e.anyOf)):an(e)?cJ(e):qc(e)||ua(e)||ws(e)||co(e)||wp(e)||Ss(e)||fa(e)||Sp(e)||da(e)?e:ar({})}o(KR,"RequiredResolve");function Yf(e,t){return kr(e)?YR(e,t):oe({...KR(e),...t})}o(Yf,"Required");function uJ(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Yf(e[n],t);return r}o(uJ,"FromProperties");function fJ(e,t){return uJ(e.properties,t)}o(fJ,"FromMappedResult");function YR(e,t){let r=fJ(e,t);return Qt(r)}o(YR,"RequiredFromMappedResult");function dJ(e,t){return t.map(r=>Jr(r)?r8(e,r.$ref):po(e,r))}o(dJ,"DereferenceParameters");function r8(e,t){return t in e?Jr(e[t])?r8(e,e[t].$ref):po(e,e[t]):bt()}o(r8,"Dereference");function mJ(e){return Wf(e[0])}o(mJ,"FromAwaited");function pJ(e){return ml(e[0],e[1])}o(pJ,"FromIndex");function gJ(e){return qf(e[0])}o(gJ,"FromKeyOf");function hJ(e){return Kf(e[0])}o(hJ,"FromPartial");function xJ(e){return gl(e[0],e[1])}o(xJ,"FromOmit");function _J(e){return hl(e[0],e[1])}o(_J,"FromPick");function yJ(e){return Yf(e[0])}o(yJ,"FromRequired");function bJ(e,t,r){let n=dJ(e,r);return t==="Awaited"?mJ(n):t==="Index"?pJ(n):t==="KeyOf"?gJ(n):t==="Partial"?hJ(n):t==="Omit"?xJ(n):t==="Pick"?_J(n):t==="Required"?yJ(n):bt()}o(bJ,"FromComputed");function vJ(e,t){return Of(po(e,t))}o(vJ,"FromArray");function TJ(e,t){return Lf(po(e,t))}o(TJ,"FromAsyncIterator");function CJ(e,t,r){return Ff(Up(e,t),po(e,r))}o(CJ,"FromConstructor");function EJ(e,t,r){return l0(Up(e,t),po(e,r))}o(EJ,"FromFunction");function IJ(e,t){return ai(Up(e,t))}o(IJ,"FromIntersect");function wJ(e,t){return jf(po(e,t))}o(wJ,"FromIterator");function SJ(e,t){return ar(globalThis.Object.keys(t).reduce((r,n)=>({...r,[n]:po(e,t[n])}),{}))}o(SJ,"FromObject");function PJ(e,t){let[r,n]=[po(e,V5(t)),z5(t)],s=Rf(t);return s.patternProperties[n]=r,s}o(PJ,"FromRecord");function RJ(e,t){return Jr(t)?{...r8(e,t.$ref),[Br]:t[Br]}:t}o(RJ,"FromTransform");function AJ(e,t){return Wo(Up(e,t))}o(AJ,"FromTuple");function DJ(e,t){return sr(Up(e,t))}o(DJ,"FromUnion");function Up(e,t){return t.map(r=>po(e,r))}o(Up,"FromTypes");function po(e,t){return Mi(t)?oe(po(e,Kr(t,[Vn])),t):Df(t)?oe(po(e,Kr(t,[vs])),t):or(t)?oe(RJ(e,t),t):Ts(t)?oe(vJ(e,t.items),t):Wc(t)?oe(TJ(e,t.items),t):Cs(t)?oe(bJ(e,t.target,t.parameters)):Es(t)?oe(CJ(e,t.parameters,t.returns),t):Is(t)?oe(EJ(e,t.parameters,t.returns),t):Gr(t)?oe(IJ(e,t.allOf),t):Hc(t)?oe(wJ(e,t.items),t):an(t)?oe(SJ(e,t.properties),t):Vc(t)?oe(PJ(e,t)):mo(t)?oe(AJ(e,t.items||[]),t):Xt(t)?oe(DJ(e,t.anyOf),t):t}o(po,"FromType");function kJ(e,t){return t in e?po(e,e[t]):bt()}o(kJ,"ComputeType");function XR(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:kJ(e,r)}),{})}o(XR,"ComputeModuleProperties");var n8=class{static{o(this,"TModule")}constructor(t){let r=XR(t),n=this.WithIdentifiers(r);this.$defs=n}Import(t,r){let n={...this.$defs,[t]:oe(this.$defs[t],r)};return oe({[re]:"Import",$defs:n,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:{...t[n],$id:n}}),{})}};function JR(e){return new n8(e)}o(JR,"Module");function ZR(e,t){return oe({[re]:"Not",not:e},t)}o(ZR,"Not");function QR(e,t){return Is(e)?Wo(e.parameters,t):bt()}o(QR,"Parameters");var NJ=0;function eA(e,t={}){sn(t.$id)&&(t.$id=`T${NJ++}`);let r=Rf(e({[re]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,oe({[$o]:"Recursive",...r},t)}o(eA,"Recursive");function tA(e,t){let r=Tr(e)?new globalThis.RegExp(e):e;return oe({[re]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}o(tA,"RegExp");function OJ(e){return Gr(e)?e.allOf:Xt(e)?e.anyOf:mo(e)?e.items??[]:[]}o(OJ,"RestResolve");function rA(e){return OJ(e)}o(rA,"Rest");function nA(e,t){return Is(e)?oe(e.returns,t):bt(t)}o(nA,"ReturnType");var i8=class{static{o(this,"TransformDecodeBuilder")}constructor(t){this.schema=t}Decode(t){return new o8(this.schema,t)}},o8=class{static{o(this,"TransformEncodeBuilder")}constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){let a={Encode:o(l=>r[Br].Encode(t(l)),"Encode"),Decode:o(l=>this.decode(r[Br].Decode(l)),"Decode")};return{...r,[Br]:a}}EncodeSchema(t,r){let n={Decode:this.decode,Encode:t};return{...r,[Br]:n}}Encode(t){return or(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};function iA(e){return new i8(e)}o(iA,"Transform");function oA(e={}){return oe({[re]:e[re]??"Unsafe"},e)}o(oA,"Unsafe");function sA(e){return oe({[re]:"Void",type:"void"},e)}o(sA,"Void");var s8={};t0(s8,{Any:()=>dl,Argument:()=>qP,Array:()=>Of,AsyncIterator:()=>Lf,Awaited:()=>Wf,BigInt:()=>$f,Boolean:()=>A5,Capitalize:()=>FR,Composite:()=>lR,Const:()=>cR,Constructor:()=>Ff,ConstructorParameters:()=>uR,Date:()=>L5,Enum:()=>fR,Exclude:()=>Vf,Extends:()=>zf,Extract:()=>Gf,Function:()=>l0,Index:()=>ml,InstanceType:()=>RR,Instantiate:()=>DR,Integer:()=>kR,Intersect:()=>ai,Iterator:()=>jf,KeyOf:()=>qf,Literal:()=>Vt,Lowercase:()=>MR,Mapped:()=>rR,Module:()=>JR,Never:()=>bt,Not:()=>ZR,Null:()=>F5,Number:()=>jo,Object:()=>ar,Omit:()=>gl,Optional:()=>si,Parameters:()=>QR,Partial:()=>Kf,Pick:()=>hl,Promise:()=>N5,Readonly:()=>Bi,ReadonlyOptional:()=>q5,Record:()=>H5,Recursive:()=>eA,Ref:()=>Ho,RegExp:()=>tA,Required:()=>Yf,Rest:()=>rA,ReturnType:()=>nA,String:()=>Ii,Symbol:()=>M5,TemplateLiteral:()=>D5,Transform:()=>iA,Tuple:()=>Wo,Uint8Array:()=>B5,Uncapitalize:()=>UR,Undefined:()=>U5,Union:()=>sr,Unknown:()=>Rs,Unsafe:()=>oA,Uppercase:()=>BR,Void:()=>sA});var L=s8;function LJ(e){switch(e.errorType){case te.ArrayContains:return"Expected array to contain at least one matching value";case te.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case te.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case te.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case te.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case te.ArrayUniqueItems:return"Expected array elements to be unique";case te.Array:return"Expected array";case te.AsyncIterator:return"Expected AsyncIterator";case te.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case te.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case te.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case te.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case te.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case te.BigInt:return"Expected bigint";case te.Boolean:return"Expected boolean";case te.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case te.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case te.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case te.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case te.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case te.Date:return"Expected Date";case te.Function:return"Expected function";case te.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case te.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case te.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case te.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case te.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case te.Integer:return"Expected integer";case te.IntersectUnevaluatedProperties:return"Unexpected property";case te.Intersect:return"Expected all values to match";case te.Iterator:return"Expected Iterator";case te.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case te.Never:return"Never";case te.Not:return"Value should not match";case te.Null:return"Expected null";case te.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case te.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case te.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case te.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case te.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case te.Number:return"Expected number";case te.Object:return"Expected object";case te.ObjectAdditionalProperties:return"Unexpected property";case te.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case te.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case te.ObjectRequiredProperty:return"Expected required property";case te.Promise:return"Expected Promise";case te.RegExp:return"Expected string to match regular expression";case te.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case te.StringFormat:return`Expected string to match '${e.schema.format}' format`;case te.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case te.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case te.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case te.String:return"Expected string";case te.Symbol:return"Expected symbol";case te.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case te.Tuple:return"Expected tuple";case te.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case te.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case te.Uint8Array:return"Expected Uint8Array";case te.Undefined:return"Expected undefined";case te.Union:return"Expected union value";case te.Void:return"Expected void";case te.Kind:return`Expected kind '${e.schema[re]}'`;default:return"Unknown error type"}}o(LJ,"DefaultErrorFunction");var FJ=LJ;function aA(){return FJ}o(aA,"GetErrorFunction");var a8=class extends lt{static{o(this,"TypeDereferenceError")}constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}};function MJ(e,t){let r=t.find(n=>n.$id===e.$ref);if(r===void 0)throw new a8(e);return er(r,t)}o(MJ,"Resolve");function Nn(e,t){return!Yt(e.$id)||t.some(r=>r.$id===e.$id)||t.push(e),t}o(Nn,"Pushref");function er(e,t){return e[re]==="This"||e[re]==="Ref"?MJ(e,t):e}o(er,"Deref");var l8=class extends lt{static{o(this,"ValueHashError")}constructor(t){super("Unable to hash value"),this.value=t}},go;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(go||(go={}));var Xf=BigInt("14695981039346656037"),[UJ,BJ]=[BigInt("1099511628211"),BigInt("18446744073709551616")],$J=Array.from({length:256}).map((e,t)=>BigInt(t)),lA=new Float64Array(1),cA=new DataView(lA.buffer),uA=new Uint8Array(lA.buffer);function*jJ(e){let t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}o(jJ,"NumberToBytes");function WJ(e){ci(go.Array);for(let t of e)Jf(t)}o(WJ,"ArrayType");function qJ(e){ci(go.Boolean),ci(e?1:0)}o(qJ,"BooleanType");function HJ(e){ci(go.BigInt),cA.setBigInt64(0,e);for(let t of uA)ci(t)}o(HJ,"BigIntType");function zJ(e){ci(go.Date),Jf(e.getTime())}o(zJ,"DateType");function VJ(e){ci(go.Null)}o(VJ,"NullType");function GJ(e){ci(go.Number),cA.setFloat64(0,e);for(let t of uA)ci(t)}o(GJ,"NumberType");function KJ(e){ci(go.Object);for(let t of globalThis.Object.getOwnPropertyNames(e).sort())Jf(t),Jf(e[t])}o(KJ,"ObjectType");function YJ(e){ci(go.String);for(let t=0;t<e.length;t++)for(let r of jJ(e.charCodeAt(t)))ci(r)}o(YJ,"StringType");function XJ(e){ci(go.Symbol),Jf(e.description)}o(XJ,"SymbolType");function JJ(e){ci(go.Uint8Array);for(let t=0;t<e.length;t++)ci(e[t])}o(JJ,"Uint8ArrayType");function ZJ(e){return ci(go.Undefined)}o(ZJ,"UndefinedType");function Jf(e){if(at(e))return WJ(e);if(o0(e))return qJ(e);if(zn(e))return HJ(e);if(Ci(e))return zJ(e);if(la(e))return VJ(e);if(Ve(e))return GJ(e);if(It(e))return KJ(e);if(Yt(e))return YJ(e);if(ca(e))return XJ(e);if(Af(e))return JJ(e);if(Dr(e))return ZJ(e);throw new l8(e)}o(Jf,"Visit");function ci(e){Xf=Xf^$J[e],Xf=Xf*UJ%BJ}o(ci,"FNV1A64");function xl(e){return Xf=BigInt("14695981039346656037"),Jf(e),Xf}o(xl,"Hash");var c8=class extends lt{static{o(this,"ValueCheckUnknownTypeError")}constructor(t){super("Unknown type"),this.schema=t}};function QJ(e){return e[re]==="Any"||e[re]==="Unknown"}o(QJ,"IsAnyOrUnknown");function Bt(e){return e!==void 0}o(Bt,"IsDefined");function eZ(e,t,r){return!0}o(eZ,"FromAny");function tZ(e,t,r){return!0}o(tZ,"FromArgument");function rZ(e,t,r){if(!at(r)||Bt(e.minItems)&&!(r.length>=e.minItems)||Bt(e.maxItems)&&!(r.length<=e.maxItems)||!r.every(a=>On(e.items,t,a))||e.uniqueItems===!0&&!function(){let a=new Set;for(let l of r){let c=xl(l);if(a.has(c))return!1;a.add(c)}return!0}())return!1;if(!(Bt(e.contains)||Ve(e.minContains)||Ve(e.maxContains)))return!0;let n=Bt(e.contains)?e.contains:bt(),s=r.reduce((a,l)=>On(n,t,l)?a+1:a,0);return!(s===0||Ve(e.minContains)&&s<e.minContains||Ve(e.maxContains)&&s>e.maxContains)}o(rZ,"FromArray");function nZ(e,t,r){return T5(r)}o(nZ,"FromAsyncIterator");function iZ(e,t,r){return!(!zn(r)||Bt(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||Bt(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||Bt(e.maximum)&&!(r<=e.maximum)||Bt(e.minimum)&&!(r>=e.minimum)||Bt(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}o(iZ,"FromBigInt");function oZ(e,t,r){return o0(r)}o(oZ,"FromBoolean");function sZ(e,t,r){return On(e.returns,t,r.prototype)}o(sZ,"FromConstructor");function aZ(e,t,r){return!(!Ci(r)||Bt(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||Bt(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||Bt(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||Bt(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||Bt(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0)}o(aZ,"FromDate");function lZ(e,t,r){return cl(r)}o(lZ,"FromFunction");function cZ(e,t,r){let n=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return On(s,[...t,...n],r)}o(cZ,"FromImport");function uZ(e,t,r){return!(!I5(r)||Bt(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||Bt(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||Bt(e.maximum)&&!(r<=e.maximum)||Bt(e.minimum)&&!(r>=e.minimum)||Bt(e.multipleOf)&&r%e.multipleOf!==0)}o(uZ,"FromInteger");function fZ(e,t,r){let n=e.allOf.every(s=>On(s,t,r));if(e.unevaluatedProperties===!1){let s=new RegExp(ga(e)),a=Object.getOwnPropertyNames(r).every(l=>s.test(l));return n&&a}else if($r(e.unevaluatedProperties)){let s=new RegExp(ga(e)),a=Object.getOwnPropertyNames(r).every(l=>s.test(l)||On(e.unevaluatedProperties,t,r[l]));return n&&a}else return n}o(fZ,"FromIntersect");function dZ(e,t,r){return C5(r)}o(dZ,"FromIterator");function mZ(e,t,r){return r===e.const}o(mZ,"FromLiteral");function pZ(e,t,r){return!1}o(pZ,"FromNever");function gZ(e,t,r){return!On(e.not,t,r)}o(gZ,"FromNot");function hZ(e,t,r){return la(r)}o(hZ,"FromNull");function xZ(e,t,r){return!(!wr.IsNumberLike(r)||Bt(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||Bt(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||Bt(e.minimum)&&!(r>=e.minimum)||Bt(e.maximum)&&!(r<=e.maximum)||Bt(e.multipleOf)&&r%e.multipleOf!==0)}o(xZ,"FromNumber");function _Z(e,t,r){if(!wr.IsObjectLike(r)||Bt(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||Bt(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;let n=Object.getOwnPropertyNames(e.properties);for(let s of n){let a=e.properties[s];if(e.required&&e.required.includes(s)){if(!On(a,t,r[s])||(ha(a)||QJ(a))&&!(s in r))return!1}else if(wr.IsExactOptionalProperty(r,s)&&!On(a,t,r[s]))return!1}if(e.additionalProperties===!1){let s=Object.getOwnPropertyNames(r);return e.required&&e.required.length===n.length&&s.length===n.length?!0:s.every(a=>n.includes(a))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(r).every(a=>n.includes(a)||On(e.additionalProperties,t,r[a])):!0}o(_Z,"FromObject");function yZ(e,t,r){return E5(r)}o(yZ,"FromPromise");function bZ(e,t,r){if(!wr.IsRecordLike(r)||Bt(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||Bt(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;let[n,s]=Object.entries(e.patternProperties)[0],a=new RegExp(n),l=Object.entries(r).every(([d,f])=>a.test(d)?On(s,t,f):!0),c=typeof e.additionalProperties=="object"?Object.entries(r).every(([d,f])=>a.test(d)?!0:On(e.additionalProperties,t,f)):!0,u=e.additionalProperties===!1?Object.getOwnPropertyNames(r).every(d=>a.test(d)):!0;return l&&c&&u}o(bZ,"FromRecord");function vZ(e,t,r){return On(er(e,t),t,r)}o(vZ,"FromRef");function TZ(e,t,r){let n=new RegExp(e.source,e.flags);return Bt(e.minLength)&&!(r.length>=e.minLength)||Bt(e.maxLength)&&!(r.length<=e.maxLength)?!1:n.test(r)}o(TZ,"FromRegExp");function CZ(e,t,r){return!Yt(r)||Bt(e.minLength)&&!(r.length>=e.minLength)||Bt(e.maxLength)&&!(r.length<=e.maxLength)||Bt(e.pattern)&&!new RegExp(e.pattern).test(r)?!1:Bt(e.format)?Ps.Has(e.format)?Ps.Get(e.format)(r):!1:!0}o(CZ,"FromString");function EZ(e,t,r){return ca(r)}o(EZ,"FromSymbol");function IZ(e,t,r){return Yt(r)&&new RegExp(e.pattern).test(r)}o(IZ,"FromTemplateLiteral");function wZ(e,t,r){return On(er(e,t),t,r)}o(wZ,"FromThis");function SZ(e,t,r){if(!at(r)||e.items===void 0&&r.length!==0||r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!On(e.items[n],t,r[n]))return!1;return!0}o(SZ,"FromTuple");function PZ(e,t,r){return Dr(r)}o(PZ,"FromUndefined");function RZ(e,t,r){return e.anyOf.some(n=>On(n,t,r))}o(RZ,"FromUnion");function AZ(e,t,r){return!(!Af(r)||Bt(e.maxByteLength)&&!(r.length<=e.maxByteLength)||Bt(e.minByteLength)&&!(r.length>=e.minByteLength))}o(AZ,"FromUint8Array");function DZ(e,t,r){return!0}o(DZ,"FromUnknown");function kZ(e,t,r){return wr.IsVoidLike(r)}o(kZ,"FromVoid");function NZ(e,t,r){return Ei.Has(e[re])?Ei.Get(e[re])(e,r):!1}o(NZ,"FromKind");function On(e,t,r){let n=Bt(e.$id)?Nn(e,t):t,s=e;switch(s[re]){case"Any":return eZ(s,n,r);case"Argument":return tZ(s,n,r);case"Array":return rZ(s,n,r);case"AsyncIterator":return nZ(s,n,r);case"BigInt":return iZ(s,n,r);case"Boolean":return oZ(s,n,r);case"Constructor":return sZ(s,n,r);case"Date":return aZ(s,n,r);case"Function":return lZ(s,n,r);case"Import":return cZ(s,n,r);case"Integer":return uZ(s,n,r);case"Intersect":return fZ(s,n,r);case"Iterator":return dZ(s,n,r);case"Literal":return mZ(s,n,r);case"Never":return pZ(s,n,r);case"Not":return gZ(s,n,r);case"Null":return hZ(s,n,r);case"Number":return xZ(s,n,r);case"Object":return _Z(s,n,r);case"Promise":return yZ(s,n,r);case"Record":return bZ(s,n,r);case"Ref":return vZ(s,n,r);case"RegExp":return TZ(s,n,r);case"String":return CZ(s,n,r);case"Symbol":return EZ(s,n,r);case"TemplateLiteral":return IZ(s,n,r);case"This":return wZ(s,n,r);case"Tuple":return SZ(s,n,r);case"Undefined":return PZ(s,n,r);case"Union":return RZ(s,n,r);case"Uint8Array":return AZ(s,n,r);case"Unknown":return DZ(s,n,r);case"Void":return kZ(s,n,r);default:if(!Ei.Has(s[re]))throw new c8(s);return NZ(s,n,r)}}o(On,"Visit");function Rt(...e){return e.length===3?On(e[0],e[1],e[2]):On(e[0],[],e[1])}o(Rt,"Check");var te;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(te||(te={}));var u8=class extends lt{static{o(this,"ValueErrorsUnknownTypeError")}constructor(t){super("Unknown type"),this.schema=t}};function xa(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(xa,"EscapeKey");function $t(e){return e!==void 0}o($t,"IsDefined");var _l=class{static{o(this,"ValueErrorIterator")}constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){let t=this.iterator.next();return t.done?void 0:t.value}};function Re(e,t,r,n,s=[]){return{type:e,schema:t,path:r,value:n,message:aA()({errorType:e,path:r,schema:t,value:n,errors:s}),errors:s}}o(Re,"Create");function*OZ(e,t,r,n){}o(OZ,"FromAny");function*LZ(e,t,r,n){}o(LZ,"FromArgument");function*FZ(e,t,r,n){if(!at(n))return yield Re(te.Array,e,r,n);$t(e.minItems)&&!(n.length>=e.minItems)&&(yield Re(te.ArrayMinItems,e,r,n)),$t(e.maxItems)&&!(n.length<=e.maxItems)&&(yield Re(te.ArrayMaxItems,e,r,n));for(let l=0;l<n.length;l++)yield*Ln(e.items,t,`${r}/${l}`,n[l]);if(e.uniqueItems===!0&&!function(){let l=new Set;for(let c of n){let u=xl(c);if(l.has(u))return!1;l.add(u)}return!0}()&&(yield Re(te.ArrayUniqueItems,e,r,n)),!($t(e.contains)||$t(e.minContains)||$t(e.maxContains)))return;let s=$t(e.contains)?e.contains:bt(),a=n.reduce((l,c,u)=>Ln(s,t,`${r}${u}`,c).next().done===!0?l+1:l,0);a===0&&(yield Re(te.ArrayContains,e,r,n)),Ve(e.minContains)&&a<e.minContains&&(yield Re(te.ArrayMinContains,e,r,n)),Ve(e.maxContains)&&a>e.maxContains&&(yield Re(te.ArrayMaxContains,e,r,n))}o(FZ,"FromArray");function*MZ(e,t,r,n){T5(n)||(yield Re(te.AsyncIterator,e,r,n))}o(MZ,"FromAsyncIterator");function*UZ(e,t,r,n){if(!zn(n))return yield Re(te.BigInt,e,r,n);$t(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield Re(te.BigIntExclusiveMaximum,e,r,n)),$t(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield Re(te.BigIntExclusiveMinimum,e,r,n)),$t(e.maximum)&&!(n<=e.maximum)&&(yield Re(te.BigIntMaximum,e,r,n)),$t(e.minimum)&&!(n>=e.minimum)&&(yield Re(te.BigIntMinimum,e,r,n)),$t(e.multipleOf)&&n%e.multipleOf!==BigInt(0)&&(yield Re(te.BigIntMultipleOf,e,r,n))}o(UZ,"FromBigInt");function*BZ(e,t,r,n){o0(n)||(yield Re(te.Boolean,e,r,n))}o(BZ,"FromBoolean");function*$Z(e,t,r,n){yield*Ln(e.returns,t,r,n.prototype)}o($Z,"FromConstructor");function*jZ(e,t,r,n){if(!Ci(n))return yield Re(te.Date,e,r,n);$t(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)&&(yield Re(te.DateExclusiveMaximumTimestamp,e,r,n)),$t(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)&&(yield Re(te.DateExclusiveMinimumTimestamp,e,r,n)),$t(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)&&(yield Re(te.DateMaximumTimestamp,e,r,n)),$t(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)&&(yield Re(te.DateMinimumTimestamp,e,r,n)),$t(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0&&(yield Re(te.DateMultipleOfTimestamp,e,r,n))}o(jZ,"FromDate");function*WZ(e,t,r,n){cl(n)||(yield Re(te.Function,e,r,n))}o(WZ,"FromFunction");function*qZ(e,t,r,n){let s=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*Ln(a,[...t,...s],r,n)}o(qZ,"FromImport");function*HZ(e,t,r,n){if(!I5(n))return yield Re(te.Integer,e,r,n);$t(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield Re(te.IntegerExclusiveMaximum,e,r,n)),$t(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield Re(te.IntegerExclusiveMinimum,e,r,n)),$t(e.maximum)&&!(n<=e.maximum)&&(yield Re(te.IntegerMaximum,e,r,n)),$t(e.minimum)&&!(n>=e.minimum)&&(yield Re(te.IntegerMinimum,e,r,n)),$t(e.multipleOf)&&n%e.multipleOf!==0&&(yield Re(te.IntegerMultipleOf,e,r,n))}o(HZ,"FromInteger");function*zZ(e,t,r,n){let s=!1;for(let a of e.allOf)for(let l of Ln(a,t,r,n))s=!0,yield l;if(s)return yield Re(te.Intersect,e,r,n);if(e.unevaluatedProperties===!1){let a=new RegExp(ga(e));for(let l of Object.getOwnPropertyNames(n))a.test(l)||(yield Re(te.IntersectUnevaluatedProperties,e,`${r}/${l}`,n))}if(typeof e.unevaluatedProperties=="object"){let a=new RegExp(ga(e));for(let l of Object.getOwnPropertyNames(n))if(!a.test(l)){let c=Ln(e.unevaluatedProperties,t,`${r}/${l}`,n[l]).next();c.done||(yield c.value)}}}o(zZ,"FromIntersect");function*VZ(e,t,r,n){C5(n)||(yield Re(te.Iterator,e,r,n))}o(VZ,"FromIterator");function*GZ(e,t,r,n){n!==e.const&&(yield Re(te.Literal,e,r,n))}o(GZ,"FromLiteral");function*KZ(e,t,r,n){yield Re(te.Never,e,r,n)}o(KZ,"FromNever");function*YZ(e,t,r,n){Ln(e.not,t,r,n).next().done===!0&&(yield Re(te.Not,e,r,n))}o(YZ,"FromNot");function*XZ(e,t,r,n){la(n)||(yield Re(te.Null,e,r,n))}o(XZ,"FromNull");function*JZ(e,t,r,n){if(!wr.IsNumberLike(n))return yield Re(te.Number,e,r,n);$t(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield Re(te.NumberExclusiveMaximum,e,r,n)),$t(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield Re(te.NumberExclusiveMinimum,e,r,n)),$t(e.maximum)&&!(n<=e.maximum)&&(yield Re(te.NumberMaximum,e,r,n)),$t(e.minimum)&&!(n>=e.minimum)&&(yield Re(te.NumberMinimum,e,r,n)),$t(e.multipleOf)&&n%e.multipleOf!==0&&(yield Re(te.NumberMultipleOf,e,r,n))}o(JZ,"FromNumber");function*ZZ(e,t,r,n){if(!wr.IsObjectLike(n))return yield Re(te.Object,e,r,n);$t(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield Re(te.ObjectMinProperties,e,r,n)),$t(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield Re(te.ObjectMaxProperties,e,r,n));let s=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),l=Object.getOwnPropertyNames(n);for(let c of s)l.includes(c)||(yield Re(te.ObjectRequiredProperty,e.properties[c],`${r}/${xa(c)}`,void 0));if(e.additionalProperties===!1)for(let c of l)a.includes(c)||(yield Re(te.ObjectAdditionalProperties,e,`${r}/${xa(c)}`,n[c]));if(typeof e.additionalProperties=="object")for(let c of l)a.includes(c)||(yield*Ln(e.additionalProperties,t,`${r}/${xa(c)}`,n[c]));for(let c of a){let u=e.properties[c];e.required&&e.required.includes(c)?(yield*Ln(u,t,`${r}/${xa(c)}`,n[c]),ha(e)&&!(c in n)&&(yield Re(te.ObjectRequiredProperty,u,`${r}/${xa(c)}`,void 0))):wr.IsExactOptionalProperty(n,c)&&(yield*Ln(u,t,`${r}/${xa(c)}`,n[c]))}}o(ZZ,"FromObject");function*QZ(e,t,r,n){E5(n)||(yield Re(te.Promise,e,r,n))}o(QZ,"FromPromise");function*eQ(e,t,r,n){if(!wr.IsRecordLike(n))return yield Re(te.Object,e,r,n);$t(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield Re(te.ObjectMinProperties,e,r,n)),$t(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield Re(te.ObjectMaxProperties,e,r,n));let[s,a]=Object.entries(e.patternProperties)[0],l=new RegExp(s);for(let[c,u]of Object.entries(n))l.test(c)&&(yield*Ln(a,t,`${r}/${xa(c)}`,u));if(typeof e.additionalProperties=="object")for(let[c,u]of Object.entries(n))l.test(c)||(yield*Ln(e.additionalProperties,t,`${r}/${xa(c)}`,u));if(e.additionalProperties===!1){for(let[c,u]of Object.entries(n))if(!l.test(c))return yield Re(te.ObjectAdditionalProperties,e,`${r}/${xa(c)}`,u)}}o(eQ,"FromRecord");function*tQ(e,t,r,n){yield*Ln(er(e,t),t,r,n)}o(tQ,"FromRef");function*rQ(e,t,r,n){if(!Yt(n))return yield Re(te.String,e,r,n);if($t(e.minLength)&&!(n.length>=e.minLength)&&(yield Re(te.StringMinLength,e,r,n)),$t(e.maxLength)&&!(n.length<=e.maxLength)&&(yield Re(te.StringMaxLength,e,r,n)),!new RegExp(e.source,e.flags).test(n))return yield Re(te.RegExp,e,r,n)}o(rQ,"FromRegExp");function*nQ(e,t,r,n){if(!Yt(n))return yield Re(te.String,e,r,n);$t(e.minLength)&&!(n.length>=e.minLength)&&(yield Re(te.StringMinLength,e,r,n)),$t(e.maxLength)&&!(n.length<=e.maxLength)&&(yield Re(te.StringMaxLength,e,r,n)),Yt(e.pattern)&&(new RegExp(e.pattern).test(n)||(yield Re(te.StringPattern,e,r,n))),Yt(e.format)&&(Ps.Has(e.format)?Ps.Get(e.format)(n)||(yield Re(te.StringFormat,e,r,n)):yield Re(te.StringFormatUnknown,e,r,n))}o(nQ,"FromString");function*iQ(e,t,r,n){ca(n)||(yield Re(te.Symbol,e,r,n))}o(iQ,"FromSymbol");function*oQ(e,t,r,n){if(!Yt(n))return yield Re(te.String,e,r,n);new RegExp(e.pattern).test(n)||(yield Re(te.StringPattern,e,r,n))}o(oQ,"FromTemplateLiteral");function*sQ(e,t,r,n){yield*Ln(er(e,t),t,r,n)}o(sQ,"FromThis");function*aQ(e,t,r,n){if(!at(n))return yield Re(te.Tuple,e,r,n);if(e.items===void 0&&n.length!==0)return yield Re(te.TupleLength,e,r,n);if(n.length!==e.maxItems)return yield Re(te.TupleLength,e,r,n);if(e.items)for(let s=0;s<e.items.length;s++)yield*Ln(e.items[s],t,`${r}/${s}`,n[s])}o(aQ,"FromTuple");function*lQ(e,t,r,n){Dr(n)||(yield Re(te.Undefined,e,r,n))}o(lQ,"FromUndefined");function*cQ(e,t,r,n){if(Rt(e,t,n))return;let s=e.anyOf.map(a=>new _l(Ln(a,t,r,n)));yield Re(te.Union,e,r,n,s)}o(cQ,"FromUnion");function*uQ(e,t,r,n){if(!Af(n))return yield Re(te.Uint8Array,e,r,n);$t(e.maxByteLength)&&!(n.length<=e.maxByteLength)&&(yield Re(te.Uint8ArrayMaxByteLength,e,r,n)),$t(e.minByteLength)&&!(n.length>=e.minByteLength)&&(yield Re(te.Uint8ArrayMinByteLength,e,r,n))}o(uQ,"FromUint8Array");function*fQ(e,t,r,n){}o(fQ,"FromUnknown");function*dQ(e,t,r,n){wr.IsVoidLike(n)||(yield Re(te.Void,e,r,n))}o(dQ,"FromVoid");function*mQ(e,t,r,n){Ei.Get(e[re])(e,n)||(yield Re(te.Kind,e,r,n))}o(mQ,"FromKind");function*Ln(e,t,r,n){let s=$t(e.$id)?[...t,e]:t,a=e;switch(a[re]){case"Any":return yield*OZ(a,s,r,n);case"Argument":return yield*LZ(a,s,r,n);case"Array":return yield*FZ(a,s,r,n);case"AsyncIterator":return yield*MZ(a,s,r,n);case"BigInt":return yield*UZ(a,s,r,n);case"Boolean":return yield*BZ(a,s,r,n);case"Constructor":return yield*$Z(a,s,r,n);case"Date":return yield*jZ(a,s,r,n);case"Function":return yield*WZ(a,s,r,n);case"Import":return yield*qZ(a,s,r,n);case"Integer":return yield*HZ(a,s,r,n);case"Intersect":return yield*zZ(a,s,r,n);case"Iterator":return yield*VZ(a,s,r,n);case"Literal":return yield*GZ(a,s,r,n);case"Never":return yield*KZ(a,s,r,n);case"Not":return yield*YZ(a,s,r,n);case"Null":return yield*XZ(a,s,r,n);case"Number":return yield*JZ(a,s,r,n);case"Object":return yield*ZZ(a,s,r,n);case"Promise":return yield*QZ(a,s,r,n);case"Record":return yield*eQ(a,s,r,n);case"Ref":return yield*tQ(a,s,r,n);case"RegExp":return yield*rQ(a,s,r,n);case"String":return yield*nQ(a,s,r,n);case"Symbol":return yield*iQ(a,s,r,n);case"TemplateLiteral":return yield*oQ(a,s,r,n);case"This":return yield*sQ(a,s,r,n);case"Tuple":return yield*aQ(a,s,r,n);case"Undefined":return yield*lQ(a,s,r,n);case"Union":return yield*cQ(a,s,r,n);case"Uint8Array":return yield*uQ(a,s,r,n);case"Unknown":return yield*fQ(a,s,r,n);case"Void":return yield*dQ(a,s,r,n);default:if(!Ei.Has(a[re]))throw new u8(e);return yield*mQ(a,s,r,n)}}o(Ln,"Visit");function u0(...e){let t=e.length===3?Ln(e[0],e[1],"",e[2]):Ln(e[0],[],"",e[1]);return new _l(t)}o(u0,"Errors");var Zf=class extends lt{static{o(this,"TransformDecodeCheckError")}constructor(t,r,n){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=r,this.error=n}},f8=class extends lt{static{o(this,"TransformDecodeError")}constructor(t,r,n,s){super(s instanceof Error?s.message:"Unknown error"),this.schema=t,this.path=r,this.value=n,this.error=s}};function jr(e,t,r){try{return or(e)?e[Br].Decode(r):r}catch(n){throw new f8(e,t,r,n)}}o(jr,"Default");function pQ(e,t,r,n){return at(n)?jr(e,r,n.map((s,a)=>ks(e.items,t,`${r}/${a}`,s))):jr(e,r,n)}o(pQ,"FromArray");function gQ(e,t,r,n){if(!It(n)||lo(n))return jr(e,r,n);let s=O5(e),a=s.map(f=>f[0]),l={...n};for(let[f,m]of s)f in l&&(l[f]=ks(m,t,`${r}/${f}`,l[f]));if(!or(e.unevaluatedProperties))return jr(e,r,l);let c=Object.getOwnPropertyNames(l),u=e.unevaluatedProperties,d={...l};for(let f of c)a.includes(f)||(d[f]=jr(u,`${r}/${f}`,d[f]));return jr(e,r,d)}o(gQ,"FromIntersect");function hQ(e,t,r,n){let s=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref],l=ks(a,[...t,...s],r,n);return jr(e,r,l)}o(hQ,"FromImport");function xQ(e,t,r,n){return jr(e,r,ks(e.not,t,r,n))}o(xQ,"FromNot");function _Q(e,t,r,n){if(!It(n))return jr(e,r,n);let s=$i(e),a={...n};for(let d of s)st(a,d)&&(Dr(a[d])&&(!da(e.properties[d])||wr.IsExactOptionalProperty(a,d))||(a[d]=ks(e.properties[d],t,`${r}/${d}`,a[d])));if(!$r(e.additionalProperties))return jr(e,r,a);let l=Object.getOwnPropertyNames(a),c=e.additionalProperties,u={...a};for(let d of l)s.includes(d)||(u[d]=jr(c,`${r}/${d}`,u[d]));return jr(e,r,u)}o(_Q,"FromObject");function yQ(e,t,r,n){if(!It(n))return jr(e,r,n);let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(s),l={...n};for(let f of Object.getOwnPropertyNames(n))a.test(f)&&(l[f]=ks(e.patternProperties[s],t,`${r}/${f}`,l[f]));if(!$r(e.additionalProperties))return jr(e,r,l);let c=Object.getOwnPropertyNames(l),u=e.additionalProperties,d={...l};for(let f of c)a.test(f)||(d[f]=jr(u,`${r}/${f}`,d[f]));return jr(e,r,d)}o(yQ,"FromRecord");function bQ(e,t,r,n){let s=er(e,t);return jr(e,r,ks(s,t,r,n))}o(bQ,"FromRef");function vQ(e,t,r,n){let s=er(e,t);return jr(e,r,ks(s,t,r,n))}o(vQ,"FromThis");function TQ(e,t,r,n){return at(n)&&at(e.items)?jr(e,r,e.items.map((s,a)=>ks(s,t,`${r}/${a}`,n[a]))):jr(e,r,n)}o(TQ,"FromTuple");function CQ(e,t,r,n){for(let s of e.anyOf){if(!Rt(s,t,n))continue;let a=ks(s,t,r,n);return jr(e,r,a)}return jr(e,r,n)}o(CQ,"FromUnion");function ks(e,t,r,n){let s=Nn(e,t),a=e;switch(e[re]){case"Array":return pQ(a,s,r,n);case"Import":return hQ(a,s,r,n);case"Intersect":return gQ(a,s,r,n);case"Not":return xQ(a,s,r,n);case"Object":return _Q(a,s,r,n);case"Record":return yQ(a,s,r,n);case"Ref":return bQ(a,s,r,n);case"Symbol":return jr(a,r,n);case"This":return vQ(a,s,r,n);case"Tuple":return TQ(a,s,r,n);case"Union":return CQ(a,s,r,n);default:return jr(a,r,n)}}o(ks,"Visit");function Qf(e,t,r){return ks(e,t,"",r)}o(Qf,"TransformDecode");var ed=class extends lt{static{o(this,"TransformEncodeCheckError")}constructor(t,r,n){super("The encoded value does not match the expected schema"),this.schema=t,this.value=r,this.error=n}},d8=class extends lt{static{o(this,"TransformEncodeError")}constructor(t,r,n,s){super(`${s instanceof Error?s.message:"Unknown error"}`),this.schema=t,this.path=r,this.value=n,this.error=s}};function Gn(e,t,r){try{return or(e)?e[Br].Encode(r):r}catch(n){throw new d8(e,t,r,n)}}o(Gn,"Default");function EQ(e,t,r,n){let s=Gn(e,r,n);return at(s)?s.map((a,l)=>Ns(e.items,t,`${r}/${l}`,a)):s}o(EQ,"FromArray");function IQ(e,t,r,n){let s=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref],l=Gn(e,r,n);return Ns(a,[...t,...s],r,l)}o(IQ,"FromImport");function wQ(e,t,r,n){let s=Gn(e,r,n);if(!It(n)||lo(n))return s;let a=O5(e),l=a.map(m=>m[0]),c={...s};for(let[m,p]of a)m in c&&(c[m]=Ns(p,t,`${r}/${m}`,c[m]));if(!or(e.unevaluatedProperties))return c;let u=Object.getOwnPropertyNames(c),d=e.unevaluatedProperties,f={...c};for(let m of u)l.includes(m)||(f[m]=Gn(d,`${r}/${m}`,f[m]));return f}o(wQ,"FromIntersect");function SQ(e,t,r,n){return Gn(e.not,r,Gn(e,r,n))}o(SQ,"FromNot");function PQ(e,t,r,n){let s=Gn(e,r,n);if(!It(s))return s;let a=$i(e),l={...s};for(let f of a)st(l,f)&&(Dr(l[f])&&(!da(e.properties[f])||wr.IsExactOptionalProperty(l,f))||(l[f]=Ns(e.properties[f],t,`${r}/${f}`,l[f])));if(!$r(e.additionalProperties))return l;let c=Object.getOwnPropertyNames(l),u=e.additionalProperties,d={...l};for(let f of c)a.includes(f)||(d[f]=Gn(u,`${r}/${f}`,d[f]));return d}o(PQ,"FromObject");function RQ(e,t,r,n){let s=Gn(e,r,n);if(!It(n))return s;let a=Object.getOwnPropertyNames(e.patternProperties)[0],l=new RegExp(a),c={...s};for(let m of Object.getOwnPropertyNames(n))l.test(m)&&(c[m]=Ns(e.patternProperties[a],t,`${r}/${m}`,c[m]));if(!$r(e.additionalProperties))return c;let u=Object.getOwnPropertyNames(c),d=e.additionalProperties,f={...c};for(let m of u)l.test(m)||(f[m]=Gn(d,`${r}/${m}`,f[m]));return f}o(RQ,"FromRecord");function AQ(e,t,r,n){let s=er(e,t),a=Ns(s,t,r,n);return Gn(e,r,a)}o(AQ,"FromRef");function DQ(e,t,r,n){let s=er(e,t),a=Ns(s,t,r,n);return Gn(e,r,a)}o(DQ,"FromThis");function kQ(e,t,r,n){let s=Gn(e,r,n);return at(e.items)?e.items.map((a,l)=>Ns(a,t,`${r}/${l}`,s[l])):[]}o(kQ,"FromTuple");function NQ(e,t,r,n){for(let s of e.anyOf){if(!Rt(s,t,n))continue;let a=Ns(s,t,r,n);return Gn(e,r,a)}for(let s of e.anyOf){let a=Ns(s,t,r,n);if(Rt(e,t,a))return Gn(e,r,a)}return Gn(e,r,n)}o(NQ,"FromUnion");function Ns(e,t,r,n){let s=Nn(e,t),a=e;switch(e[re]){case"Array":return EQ(a,s,r,n);case"Import":return IQ(a,s,r,n);case"Intersect":return wQ(a,s,r,n);case"Not":return SQ(a,s,r,n);case"Object":return PQ(a,s,r,n);case"Record":return RQ(a,s,r,n);case"Ref":return AQ(a,s,r,n);case"This":return DQ(a,s,r,n);case"Tuple":return kQ(a,s,r,n);case"Union":return NQ(a,s,r,n);default:return Gn(a,r,n)}}o(Ns,"Visit");function td(e,t,r){return Ns(e,t,"",r)}o(td,"TransformEncode");function OQ(e,t){return or(e)||Sn(e.items,t)}o(OQ,"FromArray");function LQ(e,t){return or(e)||Sn(e.items,t)}o(LQ,"FromAsyncIterator");function FQ(e,t){return or(e)||Sn(e.returns,t)||e.parameters.some(r=>Sn(r,t))}o(FQ,"FromConstructor");function MQ(e,t){return or(e)||Sn(e.returns,t)||e.parameters.some(r=>Sn(r,t))}o(MQ,"FromFunction");function UQ(e,t){return or(e)||or(e.unevaluatedProperties)||e.allOf.some(r=>Sn(r,t))}o(UQ,"FromIntersect");function BQ(e,t){let r=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((s,a)=>[...s,e.$defs[a]],[]),n=e.$defs[e.$ref];return or(e)||Sn(n,[...r,...t])}o(BQ,"FromImport");function $Q(e,t){return or(e)||Sn(e.items,t)}o($Q,"FromIterator");function jQ(e,t){return or(e)||Sn(e.not,t)}o(jQ,"FromNot");function WQ(e,t){return or(e)||Object.values(e.properties).some(r=>Sn(r,t))||$r(e.additionalProperties)&&Sn(e.additionalProperties,t)}o(WQ,"FromObject");function qQ(e,t){return or(e)||Sn(e.item,t)}o(qQ,"FromPromise");function HQ(e,t){let r=Object.getOwnPropertyNames(e.patternProperties)[0],n=e.patternProperties[r];return or(e)||Sn(n,t)||$r(e.additionalProperties)&&or(e.additionalProperties)}o(HQ,"FromRecord");function zQ(e,t){return or(e)?!0:Sn(er(e,t),t)}o(zQ,"FromRef");function VQ(e,t){return or(e)?!0:Sn(er(e,t),t)}o(VQ,"FromThis");function GQ(e,t){return or(e)||!Dr(e.items)&&e.items.some(r=>Sn(r,t))}o(GQ,"FromTuple");function KQ(e,t){return or(e)||e.anyOf.some(r=>Sn(r,t))}o(KQ,"FromUnion");function Sn(e,t){let r=Nn(e,t),n=e;if(e.$id&&m8.has(e.$id))return!1;switch(e.$id&&m8.add(e.$id),e[re]){case"Array":return OQ(n,r);case"AsyncIterator":return LQ(n,r);case"Constructor":return FQ(n,r);case"Function":return MQ(n,r);case"Import":return BQ(n,r);case"Intersect":return UQ(n,r);case"Iterator":return $Q(n,r);case"Not":return jQ(n,r);case"Object":return WQ(n,r);case"Promise":return qQ(n,r);case"Record":return HQ(n,r);case"Ref":return zQ(n,r);case"This":return VQ(n,r);case"Tuple":return GQ(n,r);case"Union":return KQ(n,r);default:return or(e)}}o(Sn,"Visit");var m8=new Set;function _a(e,t){return m8.clear(),Sn(e,t)}o(_a,"HasTransform");var p8=class{static{o(this,"TypeCheck")}constructor(t,r,n,s){this.schema=t,this.references=r,this.checkFunc=n,this.code=s,this.hasTransform=_a(t,r)}Code(){return this.code}Schema(){return this.schema}References(){return this.references}Errors(t){return u0(this.schema,this.references,t)}Check(t){return this.checkFunc(t)}Decode(t){if(!this.checkFunc(t))throw new Zf(this.schema,t,this.Errors(t).First());return this.hasTransform?Qf(this.schema,this.references,t):t}Encode(t){let r=this.hasTransform?td(this.schema,this.references,t):t;if(!this.checkFunc(r))throw new ed(this.schema,t,this.Errors(t).First());return r}},ya;(function(e){function t(a){return a===36}o(t,"DollarSign"),e.DollarSign=t;function r(a){return a===95}o(r,"IsUnderscore"),e.IsUnderscore=r;function n(a){return a>=65&&a<=90||a>=97&&a<=122}o(n,"IsAlpha"),e.IsAlpha=n;function s(a){return a>=48&&a<=57}o(s,"IsNumeric"),e.IsNumeric=s})(ya||(ya={}));var G5;(function(e){function t(a){return a.length===0?!1:ya.IsNumeric(a.charCodeAt(0))}o(t,"IsFirstCharacterNumeric");function r(a){if(t(a))return!1;for(let l=0;l<a.length;l++){let c=a.charCodeAt(l);if(!(ya.IsAlpha(c)||ya.IsNumeric(c)||ya.DollarSign(c)||ya.IsUnderscore(c)))return!1}return!0}o(r,"IsAccessor");function n(a){return a.replace(/'/g,"\\'")}o(n,"EscapeHyphen");function s(a,l){return r(l)?`${a}.${l}`:`${a}['${n(l)}']`}o(s,"Encode"),e.Encode=s})(G5||(G5={}));var g8;(function(e){function t(r){let n=[];for(let s=0;s<r.length;s++){let a=r.charCodeAt(s);ya.IsNumeric(a)||ya.IsAlpha(a)?n.push(r.charAt(s)):n.push(`_${a}_`)}return n.join("").replace(/__/g,"_")}o(t,"Encode"),e.Encode=t})(g8||(g8={}));var h8;(function(e){function t(r){return r.replace(/'/g,"\\'")}o(t,"Escape"),e.Escape=t})(h8||(h8={}));var x8=class extends lt{static{o(this,"TypeCompilerUnknownTypeError")}constructor(t){super("Unknown type"),this.schema=t}},K5=class extends lt{static{o(this,"TypeCompilerTypeGuardError")}constructor(t){super("Preflight validation check failed to guard for the given schema"),this.schema=t}},Xc;(function(e){function t(l,c,u){return wr.ExactOptionalPropertyTypes?`('${c}' in ${l} ? ${u} : true)`:`(${G5.Encode(l,c)} !== undefined ? ${u} : true)`}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function r(l){return wr.AllowArrayObject?`(typeof ${l} === 'object' && ${l} !== null)`:`(typeof ${l} === 'object' && ${l} !== null && !Array.isArray(${l}))`}o(r,"IsObjectLike"),e.IsObjectLike=r;function n(l){return wr.AllowArrayObject?`(typeof ${l} === 'object' && ${l} !== null && !(${l} instanceof Date) && !(${l} instanceof Uint8Array))`:`(typeof ${l} === 'object' && ${l} !== null && !Array.isArray(${l}) && !(${l} instanceof Date) && !(${l} instanceof Uint8Array))`}o(n,"IsRecordLike"),e.IsRecordLike=n;function s(l){return wr.AllowNaN?`typeof ${l} === 'number'`:`Number.isFinite(${l})`}o(s,"IsNumberLike"),e.IsNumberLike=s;function a(l){return wr.AllowNullVoid?`(${l} === undefined || ${l} === null)`:`${l} === undefined`}o(a,"IsVoidLike"),e.IsVoidLike=a})(Xc||(Xc={}));var yl;(function(e){function t(U){return U[re]==="Any"||U[re]==="Unknown"}o(t,"IsAnyOrUnknown");function*r(U,ie,W){yield"true"}o(r,"FromAny");function*n(U,ie,W){yield"true"}o(n,"FromArgument");function*s(U,ie,W){yield`Array.isArray(${W})`;let[he,ce]=[xe("value","any"),xe("acc","number")];Ve(U.maxItems)&&(yield`${W}.length <= ${U.maxItems}`),Ve(U.minItems)&&(yield`${W}.length >= ${U.minItems}`);let q=$(U.items,ie,"value");if(yield`${W}.every((${he}) => ${q})`,Nr(U.contains)||Ve(U.minContains)||Ve(U.maxContains)){let ne=Nr(U.contains)?U.contains:bt(),_e=$(ne,ie,"value"),fe=Ve(U.minContains)?[`(count >= ${U.minContains})`]:[],me=Ve(U.maxContains)?[`(count <= ${U.maxContains})`]:[],Ee=`const count = value.reduce((${ce}, ${he}) => ${_e} ? acc + 1 : acc, 0)`,Pe=["(count > 0)",...fe,...me].join(" && ");yield`((${he}) => { ${Ee}; return ${Pe}})(${W})`}U.uniqueItems===!0&&(yield`((${he}) => { const set = new Set(); for(const element of value) { const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true } )(${W})`)}o(s,"FromArray");function*a(U,ie,W){yield`(typeof value === 'object' && Symbol.asyncIterator in ${W})`}o(a,"FromAsyncIterator");function*l(U,ie,W){yield`(typeof ${W} === 'bigint')`,zn(U.exclusiveMaximum)&&(yield`${W} < BigInt(${U.exclusiveMaximum})`),zn(U.exclusiveMinimum)&&(yield`${W} > BigInt(${U.exclusiveMinimum})`),zn(U.maximum)&&(yield`${W} <= BigInt(${U.maximum})`),zn(U.minimum)&&(yield`${W} >= BigInt(${U.minimum})`),zn(U.multipleOf)&&(yield`(${W} % BigInt(${U.multipleOf})) === 0`)}o(l,"FromBigInt");function*c(U,ie,W){yield`(typeof ${W} === 'boolean')`}o(c,"FromBoolean");function*u(U,ie,W){yield*O(U.returns,ie,`${W}.prototype`)}o(u,"FromConstructor");function*d(U,ie,W){yield`(${W} instanceof Date) && Number.isFinite(${W}.getTime())`,Ve(U.exclusiveMaximumTimestamp)&&(yield`${W}.getTime() < ${U.exclusiveMaximumTimestamp}`),Ve(U.exclusiveMinimumTimestamp)&&(yield`${W}.getTime() > ${U.exclusiveMinimumTimestamp}`),Ve(U.maximumTimestamp)&&(yield`${W}.getTime() <= ${U.maximumTimestamp}`),Ve(U.minimumTimestamp)&&(yield`${W}.getTime() >= ${U.minimumTimestamp}`),Ve(U.multipleOfTimestamp)&&(yield`(${W}.getTime() % ${U.multipleOfTimestamp}) === 0`)}o(d,"FromDate");function*f(U,ie,W){yield`(typeof ${W} === 'function')`}o(f,"FromFunction");function*m(U,ie,W){let he=globalThis.Object.getOwnPropertyNames(U.$defs).reduce((ce,q)=>[...ce,U.$defs[q]],[]);yield*O(Ho(U.$ref),[...ie,...he],W)}o(m,"FromImport");function*p(U,ie,W){yield`Number.isInteger(${W})`,Ve(U.exclusiveMaximum)&&(yield`${W} < ${U.exclusiveMaximum}`),Ve(U.exclusiveMinimum)&&(yield`${W} > ${U.exclusiveMinimum}`),Ve(U.maximum)&&(yield`${W} <= ${U.maximum}`),Ve(U.minimum)&&(yield`${W} >= ${U.minimum}`),Ve(U.multipleOf)&&(yield`(${W} % ${U.multipleOf}) === 0`)}o(p,"FromInteger");function*g(U,ie,W){let he=U.allOf.map(ce=>$(ce,ie,W)).join(" && ");if(U.unevaluatedProperties===!1){let ce=le(`${new RegExp(ga(U))};`),q=`Object.getOwnPropertyNames(${W}).every(key => ${ce}.test(key))`;yield`(${he} && ${q})`}else if(Nr(U.unevaluatedProperties)){let ce=le(`${new RegExp(ga(U))};`),q=`Object.getOwnPropertyNames(${W}).every(key => ${ce}.test(key) || ${$(U.unevaluatedProperties,ie,`${W}[key]`)})`;yield`(${he} && ${q})`}else yield`(${he})`}o(g,"FromIntersect");function*h(U,ie,W){yield`(typeof value === 'object' && Symbol.iterator in ${W})`}o(h,"FromIterator");function*x(U,ie,W){typeof U.const=="number"||typeof U.const=="boolean"?yield`(${W} === ${U.const})`:yield`(${W} === '${h8.Escape(U.const)}')`}o(x,"FromLiteral");function*_(U,ie,W){yield"false"}o(_,"FromNever");function*y(U,ie,W){yield`(!${$(U.not,ie,W)})`}o(y,"FromNot");function*b(U,ie,W){yield`(${W} === null)`}o(b,"FromNull");function*T(U,ie,W){yield Xc.IsNumberLike(W),Ve(U.exclusiveMaximum)&&(yield`${W} < ${U.exclusiveMaximum}`),Ve(U.exclusiveMinimum)&&(yield`${W} > ${U.exclusiveMinimum}`),Ve(U.maximum)&&(yield`${W} <= ${U.maximum}`),Ve(U.minimum)&&(yield`${W} >= ${U.minimum}`),Ve(U.multipleOf)&&(yield`(${W} % ${U.multipleOf}) === 0`)}o(T,"FromNumber");function*v(U,ie,W){yield Xc.IsObjectLike(W),Ve(U.minProperties)&&(yield`Object.getOwnPropertyNames(${W}).length >= ${U.minProperties}`),Ve(U.maxProperties)&&(yield`Object.getOwnPropertyNames(${W}).length <= ${U.maxProperties}`);let he=Object.getOwnPropertyNames(U.properties);for(let ce of he){let q=G5.Encode(W,ce),ne=U.properties[ce];if(U.required&&U.required.includes(ce))yield*O(ne,ie,q),(ha(ne)||t(ne))&&(yield`('${ce}' in ${W})`);else{let _e=$(ne,ie,q);yield Xc.IsExactOptionalProperty(W,ce,_e)}}if(U.additionalProperties===!1)if(U.required&&U.required.length===he.length)yield`Object.getOwnPropertyNames(${W}).length === ${he.length}`;else{let ce=`[${he.map(q=>`'${q}'`).join(", ")}]`;yield`Object.getOwnPropertyNames(${W}).every(key => ${ce}.includes(key))`}if(typeof U.additionalProperties=="object"){let ce=$(U.additionalProperties,ie,`${W}[key]`),q=`[${he.map(ne=>`'${ne}'`).join(", ")}]`;yield`(Object.getOwnPropertyNames(${W}).every(key => ${q}.includes(key) || ${ce}))`}}o(v,"FromObject");function*S(U,ie,W){yield`${W} instanceof Promise`}o(S,"FromPromise");function*R(U,ie,W){yield Xc.IsRecordLike(W),Ve(U.minProperties)&&(yield`Object.getOwnPropertyNames(${W}).length >= ${U.minProperties}`),Ve(U.maxProperties)&&(yield`Object.getOwnPropertyNames(${W}).length <= ${U.maxProperties}`);let[he,ce]=Object.entries(U.patternProperties)[0],q=le(`${new RegExp(he)}`),ne=$(ce,ie,"value"),_e=Nr(U.additionalProperties)?$(U.additionalProperties,ie,W):U.additionalProperties===!1?"false":"true",fe=`(${q}.test(key) ? ${ne} : ${_e})`;yield`(Object.entries(${W}).every(([key, value]) => ${fe}))`}o(R,"FromRecord");function*j(U,ie,W){let he=er(U,ie);if(M.functions.has(U.$ref))return yield`${G(U.$ref)}(${W})`;yield*O(he,ie,W)}o(j,"FromRef");function*K(U,ie,W){let he=le(`${new RegExp(U.source,U.flags)};`);yield`(typeof ${W} === 'string')`,Ve(U.maxLength)&&(yield`${W}.length <= ${U.maxLength}`),Ve(U.minLength)&&(yield`${W}.length >= ${U.minLength}`),yield`${he}.test(${W})`}o(K,"FromRegExp");function*V(U,ie,W){yield`(typeof ${W} === 'string')`,Ve(U.maxLength)&&(yield`${W}.length <= ${U.maxLength}`),Ve(U.minLength)&&(yield`${W}.length >= ${U.minLength}`),U.pattern!==void 0&&(yield`${le(`${new RegExp(U.pattern)};`)}.test(${W})`),U.format!==void 0&&(yield`format('${U.format}', ${W})`)}o(V,"FromString");function*Y(U,ie,W){yield`(typeof ${W} === 'symbol')`}o(Y,"FromSymbol");function*N(U,ie,W){yield`(typeof ${W} === 'string')`,yield`${le(`${new RegExp(U.pattern)};`)}.test(${W})`}o(N,"FromTemplateLiteral");function*k(U,ie,W){yield`${G(U.$ref)}(${W})`}o(k,"FromThis");function*z(U,ie,W){if(yield`Array.isArray(${W})`,U.items===void 0)return yield`${W}.length === 0`;yield`(${W}.length === ${U.maxItems})`;for(let he=0;he<U.items.length;he++)yield`${$(U.items[he],ie,`${W}[${he}]`)}`}o(z,"FromTuple");function*D(U,ie,W){yield`${W} === undefined`}o(D,"FromUndefined");function*E(U,ie,W){yield`(${U.anyOf.map(ce=>$(ce,ie,W)).join(" || ")})`}o(E,"FromUnion");function*I(U,ie,W){yield`${W} instanceof Uint8Array`,Ve(U.maxByteLength)&&(yield`(${W}.length <= ${U.maxByteLength})`),Ve(U.minByteLength)&&(yield`(${W}.length >= ${U.minByteLength})`)}o(I,"FromUint8Array");function*A(U,ie,W){yield"true"}o(A,"FromUnknown");function*w(U,ie,W){yield Xc.IsVoidLike(W)}o(w,"FromVoid");function*P(U,ie,W){let he=M.instances.size;M.instances.set(he,U),yield`kind('${U[re]}', ${he}, ${W})`}o(P,"FromKind");function*O(U,ie,W,he=!0){let ce=Yt(U.$id)?[...ie,U]:ie,q=U;if(he&&Yt(U.$id)){let ne=G(U.$id);if(M.functions.has(ne))return yield`${ne}(${W})`;{M.functions.set(ne,"<deferred>");let _e=be(ne,U,ie,"value",!1);return M.functions.set(ne,_e),yield`${ne}(${W})`}}switch(q[re]){case"Any":return yield*r(q,ce,W);case"Argument":return yield*n(q,ce,W);case"Array":return yield*s(q,ce,W);case"AsyncIterator":return yield*a(q,ce,W);case"BigInt":return yield*l(q,ce,W);case"Boolean":return yield*c(q,ce,W);case"Constructor":return yield*u(q,ce,W);case"Date":return yield*d(q,ce,W);case"Function":return yield*f(q,ce,W);case"Import":return yield*m(q,ce,W);case"Integer":return yield*p(q,ce,W);case"Intersect":return yield*g(q,ce,W);case"Iterator":return yield*h(q,ce,W);case"Literal":return yield*x(q,ce,W);case"Never":return yield*_(q,ce,W);case"Not":return yield*y(q,ce,W);case"Null":return yield*b(q,ce,W);case"Number":return yield*T(q,ce,W);case"Object":return yield*v(q,ce,W);case"Promise":return yield*S(q,ce,W);case"Record":return yield*R(q,ce,W);case"Ref":return yield*j(q,ce,W);case"RegExp":return yield*K(q,ce,W);case"String":return yield*V(q,ce,W);case"Symbol":return yield*Y(q,ce,W);case"TemplateLiteral":return yield*N(q,ce,W);case"This":return yield*k(q,ce,W);case"Tuple":return yield*z(q,ce,W);case"Undefined":return yield*D(q,ce,W);case"Union":return yield*E(q,ce,W);case"Uint8Array":return yield*I(q,ce,W);case"Unknown":return yield*A(q,ce,W);case"Void":return yield*w(q,ce,W);default:if(!Ei.Has(q[re]))throw new x8(U);return yield*P(q,ce,W)}}o(O,"Visit");let M={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function $(U,ie,W,he=!0){return`(${[...O(U,ie,W,he)].join(" && ")})`}o($,"CreateExpression");function G(U){return`check_${g8.Encode(U)}`}o(G,"CreateFunctionName");function le(U){let ie=`local_${M.variables.size}`;return M.variables.set(ie,`const ${ie} = ${U}`),ie}o(le,"CreateVariable");function be(U,ie,W,he,ce=!0){let[q,ne]=[`
[49] Fix | Delete
`,Ee=>"".padStart(Ee," ")],_e=xe("value","any"),fe=$e("boolean"),me=[...O(ie,W,he,ce)].map(Ee=>`${ne(4)}${Ee}`).join(` &&${q}`);return`function ${U}(${_e})${fe} {${q}${ne(2)}return (${q}${me}${q}${ne(2)})
[50] Fix | Delete
}`}o(be,"CreateFunction");function xe(U,ie){let W=M.language==="typescript"?`: ${ie}`:"";return`${U}${W}`}o(xe,"CreateParameter");function $e(U){return M.language==="typescript"?`: ${U}`:""}o($e,"CreateReturns");function Ge(U,ie,W){let he=be("check",U,ie,"value"),ce=xe("value","any"),q=$e("boolean"),ne=[...M.functions.values()],_e=[...M.variables.values()],fe=Yt(U.$id)?`return function check(${ce})${q} {
[51] Fix | Delete
return ${G(U.$id)}(value)
[52] Fix | Delete
}`:`return ${he}`;return[..._e,...ne,fe].join(`
[53] Fix | Delete
`)}o(Ge,"Build");function Ke(...U){let ie={language:"javascript"},[W,he,ce]=U.length===2&&at(U[1])?[U[0],U[1],ie]:U.length===2&&!at(U[1])?[U[0],[],U[1]]:U.length===3?[U[0],U[1],U[2]]:U.length===1?[U[0],[],ie]:[null,[],ie];if(M.language=ce.language,M.variables.clear(),M.functions.clear(),M.instances.clear(),!Nr(W))throw new K5(W);for(let q of he)if(!Nr(q))throw new K5(q);return Ge(W,he,ce)}o(Ke,"Code"),e.Code=Ke;function Qe(U,ie=[]){let W=Ke(U,ie,{language:"javascript"}),he=globalThis.Function("kind","format","hash",W),ce=new Map(M.instances);function q(me,Ee,Pe){if(!Ei.Has(me)||!ce.has(Ee))return!1;let Oe=Ei.Get(me),qe=ce.get(Ee);return Oe(qe,Pe)}o(q,"typeRegistryFunction");function ne(me,Ee){return Ps.Has(me)?Ps.Get(me)(Ee):!1}o(ne,"formatRegistryFunction");function _e(me){return xl(me)}o(_e,"hashFunction");let fe=he(q,ne,_e);return new p8(U,ie,fe,W)}o(Qe,"Compile"),e.Compile=Qe})(yl||(yl={}));var $2=Pt(yp());var Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function fA(e,t=0){return(Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]).toLowerCase()}o(fA,"unsafeStringify");var _8,YQ=new Uint8Array(16);function y8(){if(!_8){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_8=crypto.getRandomValues.bind(crypto)}return _8(YQ)}o(y8,"rng");var XQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),b8={randomUUID:XQ};function JQ(e,t,r){if(b8.randomUUID&&!t&&!e)return b8.randomUUID();e=e||{};let n=e.random??e.rng?.()??y8();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let s=0;s<16;++s)t[r+s]=n[s];return t}return fA(n)}o(JQ,"v4");var wi=JQ;var j2=Pt(Zn());function wd(e){return e===1}o(wd,"isRestricted");var Kee=["engine.prompt","engine.completion","ghostText.capturedAfterAccepted","ghostText.capturedAfterRejected"],r1=8192,Yee=21;var Yo=class{static{o(this,"TelemetryReporters")}getReporter(t,r=0){return wd(r)?this.getRestrictedReporter(t):this.reporter}getRestrictedReporter(t){if(q2(t))return this.reporterRestricted;if(wf(t))return new bp}getFTReporter(t){if(MN(t))return this.reporterFT;if(wf(t))return new bp}setReporter(t){this.reporter=t}setRestrictedReporter(t){this.reporterRestricted=t}setFTReporter(t){this.reporterFT=t}async deactivate(){let t=[this.reporter,this.reporterRestricted,this.reporterFT];this.reporter=this.reporterRestricted=this.reporterFT=void 0,await Promise.all(t.map(r=>r?.dispose()))}},Xee=L.Object({},{additionalProperties:L.String()}),Jee=L.Object({meanLogProb:L.Optional(L.Number()),meanAlternativeLogProb:L.Optional(L.Number())},{additionalProperties:L.Number()}),Zee=new Set(["ERR_WORKER_OUT_OF_MEMORY","ENOMEM"]);function Qee(e){return Zee.has(e.code??"")||e.name==="RangeError"&&e.message==="WebAssembly.Memory(): could not allocate memory"}o(Qee,"isOomError");function ete(e){return X7(e)?"network":Qee(e)||e.code==="EMFILE"||e.code==="ENFILE"||e.syscall==="uv_cwd"&&(e.code==="ENOENT"||e.code=="EIO")||e.code==="CopilotPromptLoadFailure"||`${e.code}`.startsWith("CopilotPromptWorkerExit")?"local":"exception"}o(ete,"getErrorType");var et=class e{static{o(this,"TelemetryData")}static{this.validateTelemetryProperties=yl.Compile(Xee)}static{this.validateTelemetryMeasurements=yl.Compile(Jee)}static{this.keysExemptedFromSanitization=["abexp.assignmentcontext","VSCode.ABExp.Features"]}constructor(t,r,n){this.properties=t,this.measurements=r,this.issuedTime=n}static createAndMarkAsIssued(t,r){return new e(t||{},r||{},xn())}extendedBy(t,r){let n={...this.properties,...t},s={...this.measurements,...r},a=new e(n,s,this.issuedTime);return a.displayedTime=this.displayedTime,a}markAsDisplayed(){this.displayedTime===void 0&&(this.displayedTime=xn())}async extendWithExpTelemetry(t){let{filters:r,exp:n}=await t.get(Le).getFallbackExpAndFilters();n.addToTelemetry(t,this),r.addToTelemetry(this)}extendWithEditorAgnosticFields(t){this.properties.editor_version=n0(t.get(ir).getEditorInfo()),this.properties.editor_plugin_version=n0(t.get(ir).getEditorPluginInfo());let r=t.get(mn);this.properties.client_machineid=r.machineId,this.properties.client_sessionid=r.sessionId,this.properties.copilot_version=`copilot/${s1(t)}`,typeof process<"u"&&(this.properties.runtime_version=`node/${process.versions.node}`);let n=t.get(ir);this.properties.common_extname=n.getEditorPluginInfo().name,this.properties.common_extversion=n.getEditorPluginInfo().version,this.properties.common_vscodeversion=n0(n.getEditorInfo());let s=t.get(ln);this.properties.fetcher=s.name;let a=t.get(_o).getHttpSettings();this.properties.proxy_enabled=a.proxy?"true":"false",this.properties.proxy_auth=a.proxyAuthorization?"true":"false",this.properties.proxy_kerberos_spn=a.proxyKerberosServicePrincipal?"true":"false",this.properties.reject_unauthorized=a.proxyStrictSSL!==!1?"true":"false"}extendWithConfigProperties(t){let r=WN(t);r["copilot.build"]=qN(t),r["copilot.buildType"]=o1(t),this.properties={...this.properties,...r}}extendWithRequestId(t){let r={headerRequestId:t.headerRequestId,serverExperiments:t.serverExperiments,deploymentId:t.deploymentId};this.properties={...this.properties,...r}}static{this.keysToRemoveFromStandardTelemetryHack=["gitRepoHost","gitRepoName","gitRepoOwner","gitRepoUrl","gitRepoPath","repo","request_option_nwo","userKind"]}static maybeRemoveRepoInfoFromPropertiesHack(t,r){if(wd(t))return r;let n={};for(let s in r)e.keysToRemoveFromStandardTelemetryHack.includes(s)||(n[s]=r[s]);return n}sanitizeKeys(){this.properties=e.sanitizeKeys(this.properties),this.measurements=e.sanitizeKeys(this.measurements);for(let t in this.measurements)isNaN(this.measurements[t])&&delete this.measurements[t]}multiplexProperties(){this.properties=e.multiplexProperties(this.properties)}static sanitizeKeys(t){t=t||{};let r={};for(let n in t){let s=e.keysExemptedFromSanitization.includes(n)?n:n.replace(/\./g,"_");r[s]=t[n]}return r}static multiplexProperties(t){let r={...t};for(let n in t){let s=t[n],a=s?.length??0;if(a>r1){let l=0,c=0;for(;a>0&&c<Yee;){c+=1;let u=n;c>1&&(u=n+"_"+(c<10?"0":"")+c);let d=l+r1;a<r1&&(d=l+a),r[u]=s.slice(l,d),a-=r1,l+=r1}}}return r}updateMeasurements(t){let r=t-this.issuedTime;if(this.measurements.timeSinceIssuedMs=r,this.displayedTime!==void 0){let n=t-this.displayedTime;this.measurements.timeSinceDisplayedMs=n}this.measurements.current_time===void 0&&(this.measurements.current_time=nte(t))}validateData(t,r){let n;if(e.validateTelemetryProperties.Check(this.properties)||(n={problem:"properties",error:JSON.stringify([...e.validateTelemetryProperties.Errors(this.properties)])}),!e.validateTelemetryMeasurements.Check(this.measurements)){let s=JSON.stringify([...e.validateTelemetryMeasurements.Errors(this.measurements)]);n===void 0?n={problem:"measurements",error:s}:(n.problem="both",n.error+=`; ${s}`)}if(n===void 0)return!0;if(wf(t))throw new Error(`Invalid telemetry data: ${n.problem} ${n.error} properties=${JSON.stringify(this.properties)} measurements=${JSON.stringify(this.measurements)}`);return Fs(t,"invalidTelemetryData",e.createAndMarkAsIssued({properties:JSON.stringify(this.properties),measurements:JSON.stringify(this.measurements),problem:n.problem,validationError:n.error}),r),wd(r)&&Fs(t,"invalidTelemetryData_in_secure",e.createAndMarkAsIssued({problem:n.problem,requestId:this.properties.requestId??"unknown"}),0),!1}async makeReadyForSending(t,r,n,s){this.extendWithConfigProperties(t),this.extendWithEditorAgnosticFields(t),this.sanitizeKeys(),this.multiplexProperties(),n==="IncludeExp"&&await this.extendWithExpTelemetry(t),this.updateMeasurements(s),this.validateData(t,r)||(this.properties.telemetry_failed_validation="true"),Object.assign(this.properties,UN(t))}},n1=class e extends et{static{o(this,"TelemetryWithExp")}constructor(t,r,n,s){super(t,r,n),this.filtersAndExp=s}extendedBy(t,r){let n={...this.properties,...t},s={...this.measurements,...r},a=new e(n,s,this.issuedTime,this.filtersAndExp);return a.displayedTime=this.displayedTime,a}extendWithExpTelemetry(t){return this.filtersAndExp.exp.addToTelemetry(t,this),this.filtersAndExp.filters.addToTelemetry(this),Promise.resolve()}static createEmptyConfigForTesting(){return new e({},{},0,{filters:new Mc({}),exp:ys.createEmptyConfig()})}};function i1(e,t,r,n){e.get(Yo).getReporter(e,t)?.sendTelemetryEvent(r,et.maybeRemoveRepoInfoFromPropertiesHack(t,n.properties),n.measurements)}o(i1,"sendTelemetryEvent");function tte(e,t,r,n){e.get(Yo).getReporter(e,t)?.sendTelemetryErrorEvent(r,et.maybeRemoveRepoInfoFromPropertiesHack(t,n.properties),n.measurements)}o(tte,"sendTelemetryErrorEvent");function rte(e,t,r,n){e.get(Yo).getFTReporter(e)?.sendTelemetryEvent(r,et.maybeRemoveRepoInfoFromPropertiesHack(t,n.properties),n.measurements)}o(rte,"sendFTTelemetryEvent");function W2(e){return{promptCharLen:e.prefix.length+(e.context?.reduce((t,r)=>t+r.length,0)??0),promptSuffixCharLen:e.suffix.length}}o(W2,"telemetrizePromptLength");function xn(){return performance.now()}o(xn,"now");function nte(e){return Math.floor(e/1e3)}o(nte,"nowSeconds");function q2(e){return e.get(Fi).optedIn}o(q2,"shouldSendRestricted");function MN(e){return e.get(Fi).ftFlag!==""}o(MN,"shouldSendFinetuningTelemetry");function Se(e,t,r,n){return e.get(so).register(ite(e,t,xn(),r?.extendedBy(),n))}o(Se,"telemetry");async function ite(e,t,r,n,s=0){let a=n||et.createAndMarkAsIssued({},{});await a.makeReadyForSending(e,s??!1,"IncludeExp",r),(!wd(s)||q2(e))&&i1(e,s,t,a),wd(s)&&Kee.includes(t)&&MN(e)&&rte(e,s,t,a)}o(ite,"_telemetry");function kh(e,t){return e.get(so).register(ote(e,t,xn()))}o(kh,"telemetryExpProblem");async function ote(e,t,r){let n="expProblem",s=et.createAndMarkAsIssued(t,{});await s.makeReadyForSending(e,0,"SkipExp",r),i1(e,0,n,s)}o(ote,"_telemetryExpProblem");function Y7(e,t,r,n){let s={...r,...UN(e)};i1(e,0,t,{properties:s,measurements:n})}o(Y7,"telemetryRaw");function UN(e){let t=e.get(ir),r={unique_id:wi(),common_extname:t.getEditorPluginInfo().name,common_extversion:t.getEditorPluginInfo().version,common_vscodeversion:n0(t.getEditorInfo())};return{...e.get(Fi).getProperties(),...r}}o(UN,"createRequiredProperties");var K7=class extends Error{static{o(this,"CopilotNonError")}constructor(t){let r;try{r=JSON.stringify(t)}catch{r=String(t)}super(r),this.name="CopilotNonError",this.code=(0,$2.SHA256)($2.enc.Utf16.parse(this.message)).toString().slice(0,16)}};function Xo(e,t,r,n,s){return e.get(so).register(BN(e,t,xn(),r,{...n},s))}o(Xo,"telemetryException");async function BN(e,t,r,n,s,a){let l;if(t instanceof Error){if(l=t,l.name==="Canceled"&&l.message==="Canceled"||l.name==="CodeExpectedError"||h0(l)||l instanceof ol||l instanceof j2.ConnectionError||l instanceof j2.ResponseError)return}else{if(l=new K7(t),t&&typeof t=="object"&&t.name==="ExitStatus")return;if(l.stack?.startsWith(`${l}
[54] Fix | Delete
`)){let x=l.stack.slice(`${l}
[55] Fix | Delete
`.length).split(`
[56] Fix | Delete
`);/^\s*(?:at )?(?:\w+\.)*_telemetryException\b/.test(x[0]??"")&&x.shift(),/^\s*(?:at )?(?:\w+\.)*telemetryException\b/.test(x[0]??"")&&x.shift(),l.stack=`${l}
[57] Fix | Delete
${x.join(`
[58] Fix | Delete
`)}`}}let c=e.get(ir).getEditorInfo(),u;c.root&&(u=[{prefix:`${c.name}:`,path:c.root}]);let d=q2(e),f=GS(l,u,d),m=ete(l),p=m==="exception",g=et.createAndMarkAsIssued({origin:n??"",type:l.name,code:`${l.code??""}`,reason:f.stack||f.toString(),message:f.message,...s});if(await g.makeReadyForSending(e,0,"IncludeExp",r),a?.exception_detail)for(let x of a.exception_detail)x.value&&(d?x.value=Tb(x.value):x.value="[redacted]");if(a??=NS(e,f),a.context={...a.context,"copilot_event.unique_id":g.properties.unique_id,"#restricted_telemetry":d?"true":"false"},n&&(a.context["#origin"]=n,a.transaction=n),a.rollup_id!=="auto"&&(g.properties.errno=a.rollup_id),a.created_at=new Date(g.issuedTime).toISOString(),d){let x=VS(l,u),_=et.createAndMarkAsIssued({origin:n??"",type:l.name,code:`${l.code??""}`,reason:x.stack||x.toString(),message:x.message,...s});a.rollup_id!=="auto"&&(_.properties.errno=a.rollup_id),await _.makeReadyForSending(e,1,"IncludeExp",r),_.properties.unique_id=g.properties.unique_id,g.properties.restricted_unique_id=_.properties.unique_id,i1(e,1,`error.${m}`,_)}let h=a.rollup_id==="auto"?l.stack??"":a.rollup_id;p&&!e.get($c).isThrottled(h)&&(g.properties.failbot_payload=JSON.stringify(a)),i1(e,0,`error.${m}`,g)}o(BN,"_telemetryException");function Uo(e,t,r,n){let s=o(async(...a)=>{try{await t(...a)}catch(l){await BN(e,l,xn(),r,n)}},"wrapped");return(...a)=>e.get(so).register(s(...a))}o(Uo,"telemetryCatch");function Fs(e,t,r,n){return e.get(so).register(ste(e,t,xn(),r?.extendedBy(),n))}o(Fs,"telemetryError");async function ste(e,t,r,n,s=0){if(wd(s)&&!q2(e))return;let a=n||et.createAndMarkAsIssued({},{});await a.makeReadyForSending(e,s,"IncludeExp",r),tte(e,s,t,a)}o(ste,"_telemetryError");function $N(e,t,r,n,s){let a=et.createAndMarkAsIssued({completionTextJson:JSON.stringify(t),choiceIndex:s.toString()});if(r.logprobs)for(let[l,c]of Object.entries(r.logprobs))a.properties["logprobs_"+l]=JSON.stringify(c)??"unset";return a.extendWithRequestId(n),Se(e,"engine.completion",a,1)}o($N,"logEngineCompletion");function jN(e,t,r){let n={promptJson:JSON.stringify({prefix:t.prefix,context:t.context}),promptSuffixJson:JSON.stringify(t.suffix)};if(t.context){let a=r.properties["request.option.extra"]?JSON.parse(r.properties["request.option.extra"]):{};a.context=t.context,n["request.option.extra"]=JSON.stringify(a)}let s=r.extendedBy(n);return Se(e,"engine.prompt",s,1)}o(jN,"logEnginePrompt");var J7=class extends Error{static{o(this,"HttpTimeoutError")}constructor(t,r){super(t,{cause:r}),this.name="HttpTimeoutError"}};function h0(e){return!e||typeof e!="object"?!1:e instanceof J7||"name"in e&&e.name==="AbortError"||"code"in e&&e.code==="ABORT_ERR"}o(h0,"isAbortError");var Sd=class extends SyntaxError{constructor(r,n){super(r);this.code=n;this.name="JsonParseError"}static{o(this,"JsonParseError")}},Ta=class extends Error{static{o(this,"FetchResponseError")}constructor(t,r=`HTTP ${t.status} ${t.statusText}`){super(r),this.name="FetchResponseError",this.code=`HTTP${t.status}`}},lte=new Set(["ECONNABORTED","ECONNRESET","EHOSTUNREACH","ENETUNREACH","ENOTCONN","ENOTFOUND","ETIMEDOUT","ERR_HTTP2_STREAM_ERROR","ERR_SSL_BAD_DECRYPT","ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC","ERR_SSL_INVALID_LIBRARY_(0)","ERR_SSL_SSLV3_ALERT_BAD_RECORD_MAC","ERR_SSL_WRONG_VERSION_NUMBER","ERR_STREAM_PREMATURE_CLOSE","ERR_TLS_CERT_ALTNAME_INVALID"]);function X7(e,t=!0){return e instanceof Error?t&&"cause"in e&&X7(e.cause,!1)?!0:e.name==="EditorFetcherError"||e.name==="FetchError"||e instanceof Sd||e instanceof Ta||e?.message?.startsWith("net::")||lte.has(e.code??""):!1}o(X7,"isNetworkError");var H2=class{constructor(t,r,n,s,a){this.status=t;this.statusText=r;this.headers=n;this.getText=s;this.getBody=a;this.ok=this.status>=200&&this.status<300;this.clientError=this.status>=400&&this.status<500}static{o(this,"Response")}async text(){return this.getText()}async json(){let t=await this.text(),r=this.headers.get("content-type");if(!r||!r.includes("json"))throw new Sd(`Response content-type is ${r??"missing"} (status=${this.status})`,`ContentType=${r}`);try{return JSON.parse(t)}catch(n){if(n instanceof SyntaxError){let s=n.message.match(/^(.*?) in JSON at position (\d+)(?: \(line \d+ column \d+\))?$/);if(s&&parseInt(s[2],10)==t.length||n.message==="Unexpected end of JSON input"){let a=new TextEncoder().encode(t).length,l=this.headers.get("content-length");throw l===null?new Sd(`Response body truncated: actualLength=${a}`,"Truncated"):new Sd(`Response body truncated: actualLength=${a}, headerLength=${l}`,"Truncated")}}throw n}}body(){return this.getBody()}};var ln=class{static{o(this,"Fetcher")}getImplementation(){return this}};function Z7(e,t,r,n,s,a,l,c,u,d){let f={...c,Authorization:`Bearer ${r}`,...Rl(e)};d===void 0&&(f["Openai-Organization"]="github-copilot",f["X-Request-Id"]=s,f["VScode-SessionId"]=e.get(mn).sessionId,f["VScode-MachineId"]=e.get(mn).machineId,f["X-GitHub-Api-Version"]=z2),n&&(f["OpenAI-Intent"]=n);let m={method:"POST",headers:f,json:a,timeout:u},p=e.get(ln);if(l){let h=new AbortController;l.onCancellationRequested(()=>{Se(e,"networking.cancelRequest",et.createAndMarkAsIssued({headerRequestId:s})),h.abort()}),m.signal=h.signal}return p.fetch(t,m).catch(h=>{if(cte(h))return Se(e,"networking.disconnectAll"),p.disconnectAll().then(()=>p.fetch(t,m));throw h})}o(Z7,"postRequest");function cte(e){return e instanceof Error?e.message=="ERR_HTTP2_GOAWAY_SESSION"?!0:"code"in e?e.code=="ECONNRESET"||e.code=="ETIMEDOUT"||e.code=="ERR_HTTP2_INVALID_SESSION":!1:!1}o(cte,"isInterruptedNetworkError");function Al(){return typeof process>"u"}o(Al,"isWeb");function a1(){return typeof process<"u"&&process.env.MSBENCH_MODE==="true"}o(a1,"isMsBenchModeEnabled");var Q7=class extends Ta{static{o(this,"ProxiedResponseError")}constructor(t){super(t,`HTTP ${t.status} response does not appear to originate from GitHub. Is a proxy or firewall intercepting this request? https://gh.io/copilot-firewall`)}};async function Dl(e,t,r,n={}){n={...n,headers:{Authorization:`Bearer ${t.accessToken}`,...Al()?{}:Rl(e),...n.headers}};let s=await e.get(ln).fetch(new URL(r,t.apiUrl).href,n);if(s.status>=500)throw new Ta(s);if(!s.headers.get("x-github-request-id"))throw new Q7(s);return s}o(Dl,"apiFetch");var Vi=class{constructor(){this.recentNotifications=new Ut(100)}static{o(this,"NotificationSender")}async showWarningMessageOnlyOnce(t,r,...n){if(!this.recentNotifications.has(t??r))return this.recentNotifications.set(t??r,!0),this.showWarningMessage(r,...n)}async showInformationMessageOnlyOnce(t,r,...n){if(!this.recentNotifications.has(t??r))return this.recentNotifications.set(t??r,!0),this.showInformationMessage(r,...n)}};var VN=Pt(Bc()),G2=Pt(Pf());var HN;(()=>{"use strict";var e={975:N=>{function k(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}o(k,"e");function z(E,I){for(var A,w="",P=0,O=-1,M=0,$=0;$<=E.length;++$){if($<E.length)A=E.charCodeAt($);else{if(A===47)break;A=47}if(A===47){if(!(O===$-1||M===1))if(O!==$-1&&M===2){if(w.length<2||P!==2||w.charCodeAt(w.length-1)!==46||w.charCodeAt(w.length-2)!==46){if(w.length>2){var G=w.lastIndexOf("/");if(G!==w.length-1){G===-1?(w="",P=0):P=(w=w.slice(0,G)).length-1-w.lastIndexOf("/"),O=$,M=0;continue}}else if(w.length===2||w.length===1){w="",P=0,O=$,M=0;continue}}I&&(w.length>0?w+="/..":w="..",P=2)}else w.length>0?w+="/"+E.slice(O+1,$):w=E.slice(O+1,$),P=$-O-1;O=$,M=0}else A===46&&M!==-1?++M:M=-1}return w}o(z,"r");var D={resolve:o(function(){for(var E,I="",A=!1,w=arguments.length-1;w>=-1&&!A;w--){var P;w>=0?P=arguments[w]:(E===void 0&&(E=process.cwd()),P=E),k(P),P.length!==0&&(I=P+"/"+I,A=P.charCodeAt(0)===47)}return I=z(I,!A),A?I.length>0?"/"+I:"/":I.length>0?I:"."},"resolve"),normalize:o(function(E){if(k(E),E.length===0)return".";var I=E.charCodeAt(0)===47,A=E.charCodeAt(E.length-1)===47;return(E=z(E,!I)).length!==0||I||(E="."),E.length>0&&A&&(E+="/"),I?"/"+E:E},"normalize"),isAbsolute:o(function(E){return k(E),E.length>0&&E.charCodeAt(0)===47},"isAbsolute"),join:o(function(){if(arguments.length===0)return".";for(var E,I=0;I<arguments.length;++I){var A=arguments[I];k(A),A.length>0&&(E===void 0?E=A:E+="/"+A)}return E===void 0?".":D.normalize(E)},"join"),relative:o(function(E,I){if(k(E),k(I),E===I||(E=D.resolve(E))===(I=D.resolve(I)))return"";for(var A=1;A<E.length&&E.charCodeAt(A)===47;++A);for(var w=E.length,P=w-A,O=1;O<I.length&&I.charCodeAt(O)===47;++O);for(var M=I.length-O,$=P<M?P:M,G=-1,le=0;le<=$;++le){if(le===$){if(M>$){if(I.charCodeAt(O+le)===47)return I.slice(O+le+1);if(le===0)return I.slice(O+le)}else P>$&&(E.charCodeAt(A+le)===47?G=le:le===0&&(G=0));break}var be=E.charCodeAt(A+le);if(be!==I.charCodeAt(O+le))break;be===47&&(G=le)}var xe="";for(le=A+G+1;le<=w;++le)le!==w&&E.charCodeAt(le)!==47||(xe.length===0?xe+="..":xe+="/..");return xe.length>0?xe+I.slice(O+G):(O+=G,I.charCodeAt(O)===47&&++O,I.slice(O))},"relative"),_makeLong:o(function(E){return E},"_makeLong"),dirname:o(function(E){if(k(E),E.length===0)return".";for(var I=E.charCodeAt(0),A=I===47,w=-1,P=!0,O=E.length-1;O>=1;--O)if((I=E.charCodeAt(O))===47){if(!P){w=O;break}}else P=!1;return w===-1?A?"/":".":A&&w===1?"//":E.slice(0,w)},"dirname"),basename:o(function(E,I){if(I!==void 0&&typeof I!="string")throw new TypeError('"ext" argument must be a string');k(E);var A,w=0,P=-1,O=!0;if(I!==void 0&&I.length>0&&I.length<=E.length){if(I.length===E.length&&I===E)return"";var M=I.length-1,$=-1;for(A=E.length-1;A>=0;--A){var G=E.charCodeAt(A);if(G===47){if(!O){w=A+1;break}}else $===-1&&(O=!1,$=A+1),M>=0&&(G===I.charCodeAt(M)?--M==-1&&(P=A):(M=-1,P=$))}return w===P?P=$:P===-1&&(P=E.length),E.slice(w,P)}for(A=E.length-1;A>=0;--A)if(E.charCodeAt(A)===47){if(!O){w=A+1;break}}else P===-1&&(O=!1,P=A+1);return P===-1?"":E.slice(w,P)},"basename"),extname:o(function(E){k(E);for(var I=-1,A=0,w=-1,P=!0,O=0,M=E.length-1;M>=0;--M){var $=E.charCodeAt(M);if($!==47)w===-1&&(P=!1,w=M+1),$===46?I===-1?I=M:O!==1&&(O=1):I!==-1&&(O=-1);else if(!P){A=M+1;break}}return I===-1||w===-1||O===0||O===1&&I===w-1&&I===A+1?"":E.slice(I,w)},"extname"),format:o(function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return function(I,A){var w=A.dir||A.root,P=A.base||(A.name||"")+(A.ext||"");return w?w===A.root?w+P:w+"/"+P:P}(0,E)},"format"),parse:o(function(E){k(E);var I={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return I;var A,w=E.charCodeAt(0),P=w===47;P?(I.root="/",A=1):A=0;for(var O=-1,M=0,$=-1,G=!0,le=E.length-1,be=0;le>=A;--le)if((w=E.charCodeAt(le))!==47)$===-1&&(G=!1,$=le+1),w===46?O===-1?O=le:be!==1&&(be=1):O!==-1&&(be=-1);else if(!G){M=le+1;break}return O===-1||$===-1||be===0||be===1&&O===$-1&&O===M+1?$!==-1&&(I.base=I.name=M===0&&P?E.slice(1,$):E.slice(M,$)):(M===0&&P?(I.name=E.slice(1,O),I.base=E.slice(1,$)):(I.name=E.slice(M,O),I.base=E.slice(M,$)),I.ext=E.slice(O,$)),M>0?I.dir=E.slice(0,M-1):P&&(I.dir="/"),I},"parse"),sep:"/",delimiter:":",win32:null,posix:null};D.posix=D,N.exports=D}},t={};function r(N){var k=t[N];if(k!==void 0)return k.exports;var z=t[N]={exports:{}};return e[N](z,z.exports,r),z.exports}o(r,"r"),r.d=(N,k)=>{for(var z in k)r.o(k,z)&&!r.o(N,z)&&Object.defineProperty(N,z,{enumerable:!0,get:k[z]})},r.o=(N,k)=>Object.prototype.hasOwnProperty.call(N,k),r.r=N=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})};var n={};let s;r.r(n),r.d(n,{URI:o(()=>p,"URI"),Utils:o(()=>Y,"Utils")}),typeof process=="object"?s=process.platform==="win32":typeof navigator=="object"&&(s=navigator.userAgent.indexOf("Windows")>=0);let a=/^\w[\w\d+.-]*$/,l=/^\//,c=/^\/\//;function u(N,k){if(!N.scheme&&k)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${N.authority}", path: "${N.path}", query: "${N.query}", fragment: "${N.fragment}"}`);if(N.scheme&&!a.test(N.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(N.path){if(N.authority){if(!l.test(N.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(N.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}o(u,"a");let d="",f="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{o(this,"l")}static isUri(k){return k instanceof p||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"}scheme;authority;path;query;fragment;constructor(k,z,D,E,I,A=!1){typeof k=="object"?(this.scheme=k.scheme||d,this.authority=k.authority||d,this.path=k.path||d,this.query=k.query||d,this.fragment=k.fragment||d):(this.scheme=function(w,P){return w||P?w:"file"}(k,A),this.authority=z||d,this.path=function(w,P){switch(w){case"https":case"http":case"file":P?P[0]!==f&&(P=f+P):P=f}return P}(this.scheme,D||d),this.query=E||d,this.fragment=I||d,u(this,A))}get fsPath(){return b(this,!1)}with(k){if(!k)return this;let{scheme:z,authority:D,path:E,query:I,fragment:A}=k;return z===void 0?z=this.scheme:z===null&&(z=d),D===void 0?D=this.authority:D===null&&(D=d),E===void 0?E=this.path:E===null&&(E=d),I===void 0?I=this.query:I===null&&(I=d),A===void 0?A=this.fragment:A===null&&(A=d),z===this.scheme&&D===this.authority&&E===this.path&&I===this.query&&A===this.fragment?this:new h(z,D,E,I,A)}static parse(k,z=!1){let D=m.exec(k);return D?new h(D[2]||d,R(D[4]||d),R(D[5]||d),R(D[7]||d),R(D[9]||d),z):new h(d,d,d,d,d)}static file(k){let z=d;if(s&&(k=k.replace(/\\/g,f)),k[0]===f&&k[1]===f){let D=k.indexOf(f,2);D===-1?(z=k.substring(2),k=f):(z=k.substring(2,D),k=k.substring(D)||f)}return new h("file",z,k,d,d)}static from(k){let z=new h(k.scheme,k.authority,k.path,k.query,k.fragment);return u(z,!0),z}toString(k=!1){return T(this,k)}toJSON(){return this}static revive(k){if(k){if(k instanceof p)return k;{let z=new h(k);return z._formatted=k.external,z._fsPath=k._sep===g?k.fsPath:null,z}}return k}}let g=s?1:void 0;class h extends p{static{o(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(k=!1){return k?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){let k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=g),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}let x={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(N,k,z){let D,E=-1;for(let I=0;I<N.length;I++){let A=N.charCodeAt(I);if(A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===45||A===46||A===95||A===126||k&&A===47||z&&A===91||z&&A===93||z&&A===58)E!==-1&&(D+=encodeURIComponent(N.substring(E,I)),E=-1),D!==void 0&&(D+=N.charAt(I));else{D===void 0&&(D=N.substr(0,I));let w=x[A];w!==void 0?(E!==-1&&(D+=encodeURIComponent(N.substring(E,I)),E=-1),D+=w):E===-1&&(E=I)}}return E!==-1&&(D+=encodeURIComponent(N.substring(E))),D!==void 0?D:N}o(_,"m");function y(N){let k;for(let z=0;z<N.length;z++){let D=N.charCodeAt(z);D===35||D===63?(k===void 0&&(k=N.substr(0,z)),k+=x[D]):k!==void 0&&(k+=N[z])}return k!==void 0?k:N}o(y,"y");function b(N,k){let z;return z=N.authority&&N.path.length>1&&N.scheme==="file"?`//${N.authority}${N.path}`:N.path.charCodeAt(0)===47&&(N.path.charCodeAt(1)>=65&&N.path.charCodeAt(1)<=90||N.path.charCodeAt(1)>=97&&N.path.charCodeAt(1)<=122)&&N.path.charCodeAt(2)===58?k?N.path.substr(1):N.path[1].toLowerCase()+N.path.substr(2):N.path,s&&(z=z.replace(/\//g,"\\")),z}o(b,"v");function T(N,k){let z=k?y:_,D="",{scheme:E,authority:I,path:A,query:w,fragment:P}=N;if(E&&(D+=E,D+=":"),(I||E==="file")&&(D+=f,D+=f),I){let O=I.indexOf("@");if(O!==-1){let M=I.substr(0,O);I=I.substr(O+1),O=M.lastIndexOf(":"),O===-1?D+=z(M,!1,!1):(D+=z(M.substr(0,O),!1,!1),D+=":",D+=z(M.substr(O+1),!1,!0)),D+="@"}I=I.toLowerCase(),O=I.lastIndexOf(":"),O===-1?D+=z(I,!1,!0):(D+=z(I.substr(0,O),!1,!0),D+=I.substr(O))}if(A){if(A.length>=3&&A.charCodeAt(0)===47&&A.charCodeAt(2)===58){let O=A.charCodeAt(1);O>=65&&O<=90&&(A=`/${String.fromCharCode(O+32)}:${A.substr(3)}`)}else if(A.length>=2&&A.charCodeAt(1)===58){let O=A.charCodeAt(0);O>=65&&O<=90&&(A=`${String.fromCharCode(O+32)}:${A.substr(2)}`)}D+=z(A,!0,!1)}return w&&(D+="?",D+=z(w,!1,!1)),P&&(D+="#",D+=k?P:_(P,!1,!1)),D}o(T,"b");function v(N){try{return decodeURIComponent(N)}catch{return N.length>3?N.substr(0,3)+v(N.substr(3)):N}}o(v,"C");let S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function R(N){return N.match(S)?N.replace(S,k=>v(k)):N}o(R,"w");var j=r(975);let K=j.posix||j,V="/";var Y;(function(N){N.joinPath=function(k,...z){return k.with({path:K.join(k.path,...z)})},N.resolvePath=function(k,...z){let D=k.path,E=!1;D[0]!==V&&(D=V+D,E=!0);let I=K.resolve(D,...z);return E&&I[0]===V&&!k.authority&&(I=I.substring(1)),k.with({path:I})},N.dirname=function(k){if(k.path.length===0||k.path===V)return k;let z=K.dirname(k.path);return z.length===1&&z.charCodeAt(0)===46&&(z=""),k.with({path:z})},N.basename=function(k){return K.basename(k.path)},N.extname=function(k){return K.extname(k.path)}})(Y||(Y={})),HN=n})();var{URI:kl,Utils:V2}=HN;function GN(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substring(0,3)+GN(e.substring(3)):e}}o(GN,"decodeURIComponentGraceful");var zN=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function e9(e){return e.match(zN)?e.replace(zN,t=>GN(t)):e}o(e9,"percentDecode");function K2(e){if(/^[A-Za-z][A-Za-z0-9+.-]+:/.test(e))throw new Error("Path must not contain a scheme");if(!e)throw new Error("Path must not be empty");return kl.file(e).toString()}o(K2,"makeFsUri");function l1(e){if(typeof e!="string"&&(e=e.uri),/^[A-Za-z]:\\/.test(e))throw new Error(`Could not parse <${e}>: Windows-style path`);try{let t=e.match(/^(?:([^:/?#]+?:)?\/\/)(\/\/.*)$/);return t?kl.parse(t[1]+t[2],!0):kl.parse(e,!0)}catch(t){throw new Error(`Could not parse <${e}>`,{cause:t})}}o(l1,"parseUri");function x0(e){try{return l1(e).toString()}catch{return e}}o(x0,"normalizeUri");var KN=new Set(["file","notebook","vscode-notebook","vscode-notebook-cell"]);function ute(e){let t=l1(e);if(!KN.has(t.scheme))throw new Error(`Copilot currently does not support URI with scheme: ${t.scheme}`);if((0,VN.platform)()==="win32"){let r=t.path;return t.authority?r=`//${t.authority}${t.path}`:/^\/[A-Za-z]:/.test(r)&&(r=r.substring(1)),(0,G2.normalize)(r)}else{if(t.authority)throw new Error("Unsupported remote file path");return t.path}}o(ute,"fsPath");function YN(e){try{return ute(e)}catch{return}}o(YN,"getFsPath");function XN(e){let t=YN(e);if(t)return kl.file(t).toString()}o(XN,"getFsUri");function ru(e,...t){let r,n=YN(e);return n?r=K2((0,G2.resolve)(n,...t)):r=V2.resolvePath(l1(e),...t.map(s=>JN(s))).toString(),typeof e=="string"?r:{uri:r}}o(ru,"resolveFilePath");function Mn(e,...t){let r=V2.joinPath(l1(e),...t.map(JN)).toString();return typeof e=="string"?r:{uri:r}}o(Mn,"joinPath");function JN(e){return fte(e)?e.replaceAll("\\","/"):e}o(JN,"pathToURIPath");function fte(e){return/^[^/\\]*\\/.test(e)}o(fte,"isWinPath");function Nl(e){return e9((typeof e=="string"?e:e.uri).replace(/[#?].*$/,"").replace(/\/$/,"").replace(/^.*[/:]/,""))}o(Nl,"basename");function Ca(e){let t=V2.dirname(l1(e)),r;return KN.has(t.scheme)&&t.scheme!=="file"?r=t.with({scheme:"file",fragment:""}).toString():r=t.toString(),typeof e=="string"?r:{uri:r}}o(Ca,"dirname");var Ea=class{static{o(this,"NetworkConfiguration")}};function Y2(e,t){try{let r=new URL(t??"");if(r.protocol==="https:"||!r9(e)&&r.protocol==="http:")return r.href}catch{}}o(Y2,"ensurePermittedUrl");var nu={api:"https://api.githubcopilot.com",proxy:"https://copilot-proxy.githubusercontent.com",telemetry:"https://copilot-telemetry.githubusercontent.com","origin-tracker":"https://origin-tracker.githubusercontent.com"};function t9(e,t,r){if(r&&bs(e)){for(let n of r){let s=tr(e,n);if(s)return s}return}for(let n of t){let s=tr(e,n);if(s)return s}}o(t9,"urlConfigOverride");function dte(e,t){switch(t){case"api":return t9(e,[Te.DebugOverrideCapiUrl,Te.DebugOverrideCapiUrlLegacy],[Te.DebugTestOverrideCapiUrl,Te.DebugTestOverrideCapiUrlLegacy]);case"proxy":return t9(e,[Te.DebugOverrideProxyUrl,Te.DebugOverrideProxyUrlLegacy],[Te.DebugTestOverrideProxyUrl,Te.DebugTestOverrideProxyUrlLegacy]);case"origin-tracker":if(!r9(e))return t9(e,[Te.DebugSnippyOverrideUrl])}}o(dte,"getEndpointOverrideUrl");function Pd(e,t,r,...n){let s=dte(e,r)??t.endpoints[r];return Mn(s,...n)}o(Pd,"getEndpointUrl");function X2(e){return J2(e)?.endpoints??nu}o(X2,"getLastKnownEndpoints");function ZN(e,t){if(t&&!Y2(e,t)){e.get(Vi).showWarningMessage(`Ignoring invalid or unsupported authentication URL "${t}".`);return}e.get(Ea).setConfiguredUrls(e,{serverUrl:t})}o(ZN,"updateServerUrl");var Z2=(s=>(s[s.DEBUG=4]="DEBUG",s[s.INFO=3]="INFO",s[s.WARN=2]="WARN",s[s.ERROR=1]="ERROR",s))(Z2||{}),Rd=class{static{o(this,"LogTarget")}},Ol=class{static{o(this,"TelemetryLogSender")}},vt=class{constructor(t){this.category=t}static{o(this,"Logger")}log(t,r,...n){t.get(Rd).logIt(t,r,this.category,...n)}debug(t,...r){this.log(t,4,...r)}info(t,...r){this.log(t,3,...r)}warn(t,...r){this.log(t,2,...r)}error(t,...r){t.get(Ol).sendError(t,this.category,...r),this.log(t,1,...r)}exception(t,r,n){if(r instanceof Error&&r.name==="Canceled"&&r.message==="Canceled")return;let s=n;n.startsWith(".")&&(s=n.substring(1),n=`${this.category}${n}`),t.get(Ol).sendException(t,r,n);let a=r instanceof Error?r:new Error(`Non-error thrown: ${String(r)}`);this.log(t,1,`${s}:`,a)}},At=new vt("default");function wa(e,t){return e||t}o(wa,"_pureAssign");function $n(e,t){return e[t]}o($n,"_pureRef");var Gi=void 0,_n=null,h9="",sx="function",u1="object",Ia="prototype",p9="__proto__",iu="undefined",rx="constructor",x9="Symbol",mte="_polyfill",Dd="length",nx="name",mi="call",ax="toString",Jo=wa(Object),_9=$n(Jo,Ia),iO=wa(String),Nd=$n(iO,Ia),lx=wa(Math),oO=wa(Array),cx=$n(oO,Ia),Ll=$n(cx,"slice");function Bn(e,t){try{return{v:e.apply(this,t)}}catch(r){return{e:r}}}o(Bn,"safe");function pte(e,t){var r=Bn(e);return r.e?t:r.v}o(pte,"safeGet");var n9;function ux(e){return function(t){return typeof t===e}}o(ux,"_createIs");function sO(e){var t="[object "+e+"]";return function(r){return!!(r&&fx(r)===t)}}o(sO,"_createObjIs");function fx(e){return _9[ax].call(e)}o(fx,"objToString");function lr(e){return typeof e===iu||e===iu}o(lr,"isUndefined");function gte(e){return!dx(e)}o(gte,"isStrictUndefined");function Fe(e){return e===_n||lr(e)}o(Fe,"isNullOrUndefined");function hte(e){return e===_n||!dx(e)}o(hte,"isStrictNullOrUndefined");function dx(e){return!!e||e!==Gi}o(dx,"isDefined");function xte(e){return!n9&&(n9=["string","number","boolean",iu,"symbol","bigint"]),e!==u1&&n9.indexOf(e)!==-1}o(xte,"isPrimitiveType");var Jt=ux("string"),mt=ux(sx);function pi(e){return!e&&Fe(e)?!1:!!e&&typeof e===u1}o(pi,"isObject");var tt=$n(oO,"isArray"),aO=sO("Date"),Sa=ux("number"),f1=ux("boolean");var d1=sO("Error");function bo(e){return!!(e&&e.then&&mt(e.then))}o(bo,"isPromiseLike");function Fl(e){return!(!e||pte(function(){return!(e&&0+e)},!e))}o(Fl,"isTruthy");var mx=$n(Jo,"getOwnPropertyDescriptor");function Ki(e,t){return!!e&&_9.hasOwnProperty[mi](e,t)}o(Ki,"objHasOwnProperty");var _0=wa($n(Jo,"hasOwn"),_te);function _te(e,t){return Ki(e,t)||!!mx(e,t)}o(_te,"polyObjHasOwn");function ht(e,t,r){if(e&&pi(e)){for(var n in e)if(_0(e,n)&&t[mi](r||e,n,e[n])===-1)break}}o(ht,"objForEachKey");var Q2={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function yte(e){var t={};if(t[Q2.c]=!0,t[Q2.e]=!0,e.l){t.get=function(){return e.l.v};var r=mx(e.l,"v");r&&r.set&&(t.set=function(n){e.l.v=n})}return ht(e,function(n,s){t[Q2[n]]=gte(s)?t[Q2[n]]:s}),t}o(yte,"_createProp");var yo=$n(Jo,"defineProperty"),lO=$n(Jo,"defineProperties");function mr(e,t,r){return yo(e,t,yte(r))}o(mr,"objDefine");function cO(e,t,r,n,s){var a={};return ht(e,function(l,c){ix(a,l,t?c:l),ix(a,c,r?c:l)}),n?n(a):a}o(cO,"_createKeyValueMap");function ix(e,t,r,n){yo(e,t,{value:r,enumerable:!0,writable:!1})}o(ix,"_assignMapValue");var yn=wa(iO),bte="[object Error]";function Ze(e,t){var r=h9,n=_9[ax][mi](e);n===bte&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{r=JSON.stringify(e,_n,t?typeof t=="number"?t:4:Gi),r=(r?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):_n)||yn(e)}catch(s){r=" - "+Ze(s,t)}return n+": "+r}o(Ze,"dumpObj");function Yi(e){throw new Error(e)}o(Yi,"throwError");function gi(e){throw new TypeError(e)}o(gi,"throwTypeError");var uO=$n(Jo,"freeze");function vte(e){return e}o(vte,"_doNothing");function Tte(e){return e[p9]||_n}o(Tte,"_getProto");var Od=$n(Jo,"assign"),Zo=$n(Jo,"keys");function ou(e){return uO&&ht(e,function(t,r){(tt(r)||pi(r))&&ou(r)}),vo(e)}o(ou,"objDeepFreeze");var vo=wa(uO,vte);var g9=wa($n(Jo,"getPrototypeOf"),Tte);function fO(e){return cO(e,1,0,vo)}o(fO,"createEnum");function Cte(e){return cO(e,0,0,vo)}o(Cte,"createEnumKeyMap");function Ete(e){var t={};return ht(e,function(r,n){ix(t,r,n[1]),ix(t,n[0],n[1])}),vo(t)}o(Ete,"createSimpleMap");function dO(e){return Ete(e)}o(dO,"createTypeMap");var mO=Cte({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),QN="__tsUtils$gblCfg",i9;function pO(){var e;return typeof globalThis!==iu&&(e=globalThis),!e&&typeof self!==iu&&(e=self),!e&&typeof window!==iu&&(e=window),!e&&typeof global!==iu&&(e=global),e}o(pO,"_getGlobalValue");function gO(){if(!i9){var e=Bn(pO).v||{};i9=e[QN]=e[QN]||{}}return i9}o(gO,"_getGlobalConfig");var Ld=px;function px(e,t,r){var n=t?t[e]:_n;return function(s){var a=(s?s[e]:_n)||n;if(a||r){var l=arguments;return(a||r).apply(s,a?Ll[mi](l,1):l)}gi('"'+yn(e)+'" not defined for '+Ze(s))}}o(px,"_unwrapFunctionWithPoly");function Ite(e){return function(t){return t[e]}}o(Ite,"_unwrapProp");var hO=$n(lx,"min"),su=$n(lx,"max"),eO=Ld("slice",Nd),Qo=Ld("substring",Nd),xO=px("substr",Nd,wte);function wte(e,t,r){return Fe(e)&&gi("Invalid "+Ze(e)),r<0?h9:(t=t||0,t<0&&(t=su(t+e[Dd],0)),lr(r)?eO(e,t):eO(e,t,t+r))}o(wte,"polyStrSubstr");function y9(e,t){return Qo(e,0,t)}o(y9,"strLeft");var tO="_urid",o9;function Ste(){if(!o9){var e=gO();o9=e.gblSym=e.gblSym||{k:{},s:{}}}return o9}o(Ste,"_globalSymbolRegistry");var ex;function b9(e){var t={description:yn(e),toString:o(function(){return x9+"("+e+")"},"toString")};return t[mte]=!0,t}o(b9,"polyNewSymbol");function Pte(e){var t=Ste();if(!_0(t.k,e)){var r=b9(e),n=Zo(t.s).length;r[tO]=function(){return n+"_"+r[ax]()},t.k[e]=r,t.s[r[tO]()]=yn(e)}return t.k[e]}o(Pte,"polySymbolFor");function Rte(e){!ex&&(ex={});var t,r=mO[e];return r&&(t=ex[r]=ex[r]||b9(x9+"."+r)),t}o(Rte,"polyGetKnownSymbol");var Un;function au(){Un=gO()}o(au,"_initTestHooks");function _O(e){var t={};return!Un&&au(),t.b=Un.lzy,yo(t,"v",{configurable:!0,get:o(function(){var r=e();return Un.lzy||yo(t,"v",{value:r}),t.b=Un.lzy,r},"get")}),t}o(_O,"getLazy");function es(e){return yo({toJSON:o(function(){return e},"toJSON")},"v",{value:e})}o(es,"createCachedValue");var yO="window",c1;function gx(e,t){var r;return function(){return!Un&&au(),(!r||Un.lzy)&&(r=es(Bn(e,t).v)),r.v}}o(gx,"_getGlobalInstFn");function To(e){return!Un&&au(),(!c1||e===!1||Un.lzy)&&(c1=es(Bn(pO).v||_n)),c1.v}o(To,"getGlobal");function Lr(e,t){var r;if(!c1||t===!1?r=To(t):r=c1.v,r&&r[e])return r[e];if(e===yO)try{return window}catch{}return _n}o(Lr,"getInst");function v9(){return!!Co()}o(v9,"hasDocument");var Co=gx(Lr,["document"]);function bO(){return!!Xi()}o(bO,"hasWindow");var Xi=gx(Lr,[yO]);function T9(){return!!ts()}o(T9,"hasNavigator");var ts=gx(Lr,["navigator"]);var vO=gx(function(){return!!Bn(function(){return process&&(process.versions||{}).node}).v});var kd,s9;function hx(){return kd=es(Bn(Lr,[x9]).v),kd}o(hx,"_initSymbol");function Ate(e){var t=(Un.lzy?0:kd)||hx();return t.v?t.v[e]:Gi}o(Ate,"_getSymbolKey");function TO(){return!!Dte()}o(TO,"hasSymbol");function Dte(){return!Un&&au(),((Un.lzy?0:kd)||hx()).v}o(Dte,"getSymbol");function m1(e,t){var r=mO[e];!Un&&au();var n=(Un.lzy?0:kd)||hx();return n.v?n.v[r||e]:t?Gi:Rte(e)}o(m1,"getKnownSymbol");function Fd(e,t){!Un&&au();var r=(Un.lzy?0:kd)||hx();return r.v?r.v(e):t?_n:b9(e)}o(Fd,"newSymbol");function xx(e){return!Un&&au(),s9=(Un.lzy?0:s9)||es(Bn(Ate,["for"]).v),(s9.v||Pte)(e)}o(xx,"symbolFor");function ox(e){return!!e&&mt(e.next)}o(ox,"isIterator");function C9(e){return!hte(e)&&mt(e[m1(3)])}o(C9,"isIterable");var tx;function _x(e,t,r){if(e&&(ox(e)||(!tx&&(tx=es(m1(3))),e=e[tx.v]?e[tx.v]():_n),ox(e))){var n=Gi,s=Gi;try{for(var a=0;!(s=e.next()).done&&t[mi](r||e,s.value,a,e)!==-1;)a++}catch(l){n={e:l},e.throw&&(s=_n,e.throw(n))}finally{try{s&&!s.done&&e.return&&e.return(s)}finally{if(n)throw n.e}}}}o(_x,"iterForOf");function Ad(e,t,r){return e.apply(t,r)}o(Ad,"fnApply");function Pa(e,t){return!lr(t)&&e&&(tt(t)?Ad(e.push,e,t):ox(t)||C9(t)?_x(t,function(r){e.push(r)}):e.push(t)),e}o(Pa,"arrAppend");function Ne(e,t,r){if(e)for(var n=e[Dd]>>>0,s=0;s<n&&!(s in e&&t[mi](r||e,e[s],s,e)===-1);s++);}o(Ne,"arrForEach");var cn=Ld("indexOf",cx);var lu=Ld("map",cx);function Md(e,t,r){return((e?e.slice:_n)||Ll).apply(e,Ll[mi](arguments,1))}o(Md,"arrSlice");var E9=Ld("reduce",cx);var y0=wa($n(Jo,"create"),kte);function kte(e){if(!e)return{};var t=typeof e;t!==u1&&t!==sx&&gi("Prototype must be an Object or function: "+Ze(e));function r(){}return o(r,"tempFunc"),r[Ia]=e,new r}o(kte,"polyObjCreate");var a9;function CO(e,t){var r=Jo.setPrototypeOf||function(n,s){var a;!a9&&(a9=es((a={},a[p9]=[],a instanceof Array))),a9.v?n[p9]=s:ht(s,function(l,c){return n[l]=c})};return r(e,t)}o(CO,"objSetPrototypeOf");function Nte(e,t,r){Bn(mr,[t,nx,{v:e,c:!0,e:!1}]),t=CO(t,r);function n(){this[rx]=t,Bn(mr,[this,nx,{v:e,c:!0,e:!1}])}return o(n,"__"),t[Ia]=r===_n?y0(r):(n[Ia]=r[Ia],new n),t}o(Nte,"_createCustomError");function rO(e,t){t&&(e[nx]=t)}o(rO,"_setName");function I9(e,t,r){var n=r||Error,s=n[Ia][nx],a=Error.captureStackTrace;return Nte(e,function(){var l=this,c=arguments;try{Bn(rO,[n,e]);var u=Ad(n,l,Ll[mi](c))||l;if(u!==l){var d=g9(l);d!==g9(u)&&CO(u,d)}return a&&a(u,l[rx]),t&&t(u,c),u}finally{Bn(rO,[n,s])}},n)}o(I9,"createCustomError");function Eo(){return(Date.now||Ote)()}o(Eo,"utcNow");function Ote(){return new Date().getTime()}o(Ote,"polyUtcNow");function Lte(e){return o(function(r){return Fe(r)&&gi("strTrim called ["+Ze(r)+"]"),r&&r.replace&&(r=r.replace(e,h9)),r},"_doTrim")}o(Lte,"_createTrimFn");var Fte=Lte(/^\s+|(?=\s)\s+$/g);var _r=px("trim",Nd,Fte);var Ra=$n(lx,"floor");var l9,c9,u9;function Qn(e){if(!e||typeof e!==u1)return!1;u9||(u9=bO()?Xi():!0);var t=!1;if(e!==u9){c9||(l9=Function[Ia][ax],c9=l9[mi](Jo));try{var r=g9(e);t=!r,t||(Ki(r,rx)&&(r=r[rx]),t=!!(r&&typeof r===sx&&l9[mi](r)===c9))}catch{}}return t}o(Qn,"isPlainObject");function Mte(e){return e.value&&IO(e),!0}o(Mte,"_defaultDeepCopyHandler");var nO=[jte,IO,qte,Wte];function Ute(e,t,r,n){var s;return Ne(e,function(a){if(a.k===t)return s=a,-1}),s||(s={k:t,v:t},e.push(s),n(s)),s.v}o(Ute,"_getSetVisited");function w9(e,t,r,n){var s=r.handler,a=r.path?n?r.path.concat(n):r.path:[],l={handler:r.handler,src:r.src,path:a},c=typeof t,u=!1,d=t===_n;d||(t&&c===u1?u=Qn(t):d=xte(c));var f={type:c,isPrim:d,isPlain:u,value:t,result:t,path:a,origin:r.src,copy:o(function(m,p){return w9(e,m,p?l:r,p)},"copy"),copyTo:o(function(m,p){return EO(e,m,p,l)},"copyTo")};return f.isPrim?s&&s[mi](r,f)?f.result:t:Ute(e,t,a,function(m){mr(f,"result",{g:o(function(){return m.v},"g"),s:o(function(h){m.v=h},"s")});for(var p=0,g=s;!(g||(p<nO.length?nO[p++]:Mte))[mi](r,f);)g=_n})}o(w9,"_deepCopy");function EO(e,t,r,n){if(!Fe(r))for(var s in r)t[s]=w9(e,r[s],n,s);return t}o(EO,"_copyProps");function Bte(e,t,r){var n={handler:r,src:t,path:[]};return EO([],e,t,n)}o(Bte,"objCopyProps");function $te(e,t){var r={handler:t,src:e};return w9([],e,r)}o($te,"objDeepCopy");function jte(e){var t=e.value;if(tt(t)){var r=e.result=[];return r.length=t.length,e.copyTo(r,t),!0}return!1}o(jte,"arrayDeepCopyHandler");function Wte(e){var t=e.value;return aO(t)?(e.result=new Date(t.getTime()),!0):!1}o(Wte,"dateDeepCopyHandler");function qte(e){return e.type===sx}o(qte,"functionDeepCopyHandler");function IO(e){var t=e.value;if(t&&e.isPlain){var r=e.result={};return e.copyTo(r,t),!0}return!1}o(IO,"plainObjDeepCopyHandler");function Hte(e,t){return Ne(t,function(r){Bte(e,r)}),e}o(Hte,"_doExtend");function S9(e,t,r,n,s,a,l){return Hte($te(e)||{},Ll[mi](arguments))}o(S9,"deepExtend");var P9=Ite(Dd);var wO=$n(lx,"round");var p1=px("endsWith",Nd,zte);function zte(e,t,r){Jt(e)||gi("'"+Ze(e)+"' is not a string");var n=Jt(t)?t:yn(t),s=!lr(r)&&r<e[Dd]?r:e[Dd];return Qo(e,s-n[Dd],s)===n}o(zte,"polyStrEndsWith");var b0=Ld("indexOf",Nd);var f9="ref",d9="unref",m9="hasRef",Vte="enabled";function Gte(e,t,r){var n=!0,s=e?t(_n):_n,a;function l(){return n=!1,s&&s[d9]&&s[d9](),a}o(l,"_unref");function c(){s&&r(s),s=_n}o(c,"_cancel");function u(){return s=t(s),n||l(),a}o(u,"_refresh");function d(f){!f&&s&&c(),f&&!s&&u()}return o(d,"_setEnabled"),a={cancel:c,refresh:u},a[m9]=function(){return s&&s[m9]?s[m9]():n},a[f9]=function(){return n=!0,s&&s[f9]&&s[f9](),a},a[d9]=l,a=yo(a,Vte,{get:o(function(){return!!s},"get"),set:d}),{h:a,dn:o(function(){s=_n},"dn")}}o(Gte,"_createTimerHandler");function SO(e,t,r){var n=tt(t),s=n?t.length:0,a=(s>0?t[0]:n?Gi:t)||setTimeout,l=(s>1?t[1]:Gi)||clearTimeout,c=r[0];r[0]=function(){u.dn(),Ad(c,Gi,Ll[mi](arguments))};var u=Gte(e,function(d){if(d){if(d.refresh)return d.refresh(),d;Ad(l,Gi,[d])}return Ad(a,Gi,r)},function(d){Ad(l,Gi,[d])});return u.h}o(SO,"_createTimeoutWith");function Io(e,t){return SO(!0,Gi,Ll[mi](arguments))}o(Io,"scheduleTimeout");function PO(e,t){return SO(!1,Gi,Ll[mi](arguments))}o(PO,"createTimeout");var cu=fO,R9=dO;var Ms=cu({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2});var Us="toLowerCase",je="length",Ud="warnToConsole",Aa="throwInternal",v0="watch",Ml="apply",Tt="push",T0="splice",Fr="logger",Da="cancel",ka="initialize",C0="identifier",Bd="removeNotificationListener",$d="addNotificationListener",Ji="isInitialized",uu="value",g1="getNotifyMgr",Ul="getPlugin",wo="name",Pn="processNext",yx="getProcessTelContext",Bl="enabled",A9="stopPollingInternalLogs",rs="unload",h1="onComplete",bx="version",vx="loggingLevelConsole",E0="createNew",So="teardown",jd="messageId",I0="message",Zi="diagLog",$l="_doTeardown",fu="update",Po="getNext",jl="setNextPlugin",x1="userAgent",Bs="split",$s="replace",Na="type",D9="evtName",du="status",k9="getAllResponseHeaders",_1="isChildEvt",Wl="data",mu="getCtx",js="setCtx",N9="itemsReceived",Wd="urlString",Tx="headers",pu="timeout",Cx="traceFlags";var O9;function RO(e,t){O9||(O9=I9("AggregationError",function(n,s){s[je]>1&&(n.errors=s[1])}));var r=e||"One or more errors occurred.";throw Ne(t,function(n,s){r+=`
[59] Fix | Delete
`.concat(s," > ").concat(Ze(n))}),new O9(r,t||[])}o(RO,"throwAggregationError");var Ex="function",y1="object",b1="undefined",Oa="prototype";var qd=Object,L9=qd[Oa];var ESe=(To()||{}).Symbol,ISe=(To()||{}).Reflect;var AO="hasOwnProperty",Yte=o(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)L9[AO].call(t,s)&&(e[s]=t[s])}return e},"__objAssignFnImpl"),ns=Od||Yte,F9=o(function(e,t){return F9=qd.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)n[AO](s)&&(r[s]=n[s])},F9(e,t)},"extendStaticsFn");function w0(e,t){typeof t!==Ex&&t!==null&&gi("Class extends value "+String(t)+" is not a constructor or null"),F9(e,t);function r(){this.constructor=e}o(r,"__"),e[Oa]=t===null?y0(t):(r[Oa]=t[Oa],new r)}o(w0,"__extendsFn");function Ix(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e}o(Ix,"__spreadArrayFn");var wx;var Ax="constructor",La="prototype",Dx="function",kx="_dynInstFuncs",B9="_isDynProxy",Hd="_dynClass",Xte="_dynCls$",$9="_dynInstChk",v1=$9,LO="_dfOpts",DO="_unknown_",q9="__proto__",Sx="_dyn"+q9,kO="__dynProto$Gbl",M9="_dynInstProto",Px="useBaseInst",j9="setInstFuncs",H9=Object,T1=H9.getPrototypeOf,NO=H9.getOwnPropertyNames,OO=To(),W9=OO[kO]||(OO[kO]={o:(wx={},wx[j9]=!0,wx[Px]=!0,wx),n:1e3});function Rx(e){return e&&(e===H9[La]||e===Array[La])}o(Rx,"_isObjectOrArrayPrototype");function z9(e){return Rx(e)||e===Function[La]}o(z9,"_isObjectArrayOrFunctionPrototype");function gu(e){var t;if(e){if(T1)return T1(e);var r=e[q9]||e[La]||(e[Ax]?e[Ax][La]:null);t=e[Sx]||r,Ki(e,Sx)||(delete e[M9],t=e[Sx]=e[M9]||e[Sx],e[M9]=r)}return t}o(gu,"_getObjProto");function Nx(e,t){var r=[];if(NO)r=NO(e);else for(var n in e)typeof n=="string"&&Ki(e,n)&&r.push(n);if(r&&r.length>0)for(var s=0;s<r.length;s++)t(r[s])}o(Nx,"_forEachProp");function V9(e,t,r){return t!==Ax&&typeof e[t]===Dx&&(r||Ki(e,t))&&t!==q9&&t!==La}o(V9,"_isDynamicCandidate");function Ox(e){gi("DynamicProto: "+e)}o(Ox,"_throwTypeError");function Jte(e){var t=y0(null);return Nx(e,function(r){!t[r]&&V9(e,r,!1)&&(t[r]=e[r])}),t}o(Jte,"_getInstanceFuncs");function G9(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}o(G9,"_hasVisited");function Zte(e,t,r,n){function s(u,d,f){var m=d[f];if(m[B9]&&n){var p=u[kx]||{};p[v1]!==!1&&(m=(p[d[Hd]]||{})[f]||m)}return function(){return m.apply(u,arguments)}}o(s,"_instFuncProxy");var a=y0(null);Nx(r,function(u){a[u]=s(t,r,u)});for(var l=gu(e),c=[];l&&!z9(l)&&!G9(c,l);)Nx(l,function(u){!a[u]&&V9(l,u,!T1)&&(a[u]=s(t,l,u))}),c.push(l),l=gu(l);return a}o(Zte,"_getBaseFuncs");function Qte(e,t,r,n){var s=null;if(e&&Ki(r,Hd)){var a=e[kx]||y0(null);if(s=(a[r[Hd]]||y0(null))[t],s||Ox("Missing ["+t+"] "+Dx),!s[$9]&&a[v1]!==!1){for(var l=!Ki(e,t),c=gu(e),u=[];l&&c&&!z9(c)&&!G9(u,c);){var d=c[t];if(d){l=d===n;break}u.push(c),c=gu(c)}try{l&&(e[t]=s),s[$9]=1}catch{a[v1]=!1}}}return s}o(Qte,"_getInstFunc");function ere(e,t,r){var n=t[e];return n===r&&(n=gu(t)[e]),typeof n!==Dx&&Ox("["+e+"] is not a "+Dx),n}o(ere,"_getProtoFunc");function tre(e,t,r,n,s){function a(u,d){var f=o(function(){var m=Qte(this,d,u,f)||ere(d,u,f);return m.apply(this,arguments)},"dynProtoProxy");return f[B9]=1,f}if(o(a,"_createDynamicPrototype"),!Rx(e)){var l=r[kx]=r[kx]||y0(null);if(!Rx(l)){var c=l[t]=l[t]||y0(null);l[v1]!==!1&&(l[v1]=!!s),Rx(c)||Nx(r,function(u){V9(r,u,!1)&&r[u]!==n[u]&&(c[u]=r[u],delete r[u],(!Ki(e,u)||e[u]&&!e[u][B9])&&(e[u]=a(e,u)))})}}}o(tre,"_populatePrototype");function rre(e,t){if(T1){for(var r=[],n=gu(t);n&&!z9(n)&&!G9(r,n);){if(n===e)return!0;r.push(n),n=gu(n)}return!1}return!0}o(rre,"_checkPrototype");function U9(e,t){return Ki(e,La)?e.name||t||DO:((e||{})[Ax]||{}).name||t||DO}o(U9,"_getObjName");function Ir(e,t,r,n){Ki(e,La)||Ox("theClass is an invalid class definition.");var s=e[La];rre(s,t)||Ox("["+U9(e)+"] not in hierarchy of ["+U9(t)+"]");var a=null;Ki(s,Hd)?a=s[Hd]:(a=Xte+U9(e,"_")+"$"+W9.n,W9.n++,s[Hd]=a);var l=Ir[LO],c=!!l[Px];c&&n&&n[Px]!==void 0&&(c=!!n[Px]);var u=Jte(t),d=Zte(s,t,u,c);r(t,d);var f=!!T1&&!!l[j9];f&&n&&(f=!!n[j9]),tre(s,a,t,u,f!==!1)}o(Ir,"dynamicProto");Ir[LO]=W9.o;var Fx="Promise";var tv="rejected";function Ro(e,t){return BO(e,function(r){return t?t({status:"fulfilled",rejected:!1,value:r}):r},function(r){return t?t({status:tv,rejected:!0,reason:r}):r})}o(Ro,"doAwaitResponse");function BO(e,t,r,n){var s=e;try{if(bo(e))(t||r)&&(s=e.then(t,r));else try{t&&(s=t(e))}catch(a){if(r)s=r(a);else throw a}}finally{n&&nre(s,n)}return s}o(BO,"doAwait");function nre(e,t){var r=e;return t&&(bo(e)?e.finally?r=e.finally(t):r=e.then(function(n){return t(),n},function(n){throw t(),n}):t()),r}o(nre,"doFinally");var K9,Y9,X9,FO=!1;function ire(e,t,r,n){K9=K9||{toString:o(function(){return"[[PromiseState]]"},"toString")},Y9=Y9||{toString:o(function(){return"[[PromiseResult]]"},"toString")},X9=X9||{toString:o(function(){return"[[PromiseIsHandled]]"},"toString")};var s={};s[K9]={get:t},s[Y9]={get:r},s[X9]={get:n},lO(e,s)}o(ire,"_addDebugState$1");var $O=["pending","resolving","resolved",tv],MO="dispatchEvent",Lx;function ore(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}o(ore,"_hasInitEventFn");function sre(e,t,r,n){var s=Co();!Lx&&(Lx=es(!!Bn(ore,[s]).v));var a=Lx.v?s.createEvent("Event"):n?new Event(t):{};if(r&&r(a),Lx.v&&a.initEvent(t,!1,!0),a&&e[MO])e[MO](a);else{var l=e["on"+t];if(l)l(a);else{var c=Lr("console");c&&(c.error||c.log)(t,Ze(a))}}}o(sre,"emitEvent");var jO="unhandledRejection",are=jO.toLowerCase(),C1=[],lre=0,cre=10;var J9;function UO(e){return mt(e)?e.toString():Ze(e)}o(UO,"dumpFnObj");function WO(e,t,r){var n=Md(arguments,3),s=0,a=!1,l,c=[],u=lre++,d=C1.length>0?C1[C1.length-1]:void 0,f=!1,m=null,p;function g(S,R){try{C1.push(u),f=!0,m&&m.cancel(),m=null;var j=e(function(K,V){c.push(function(){try{var Y=s===2?S:R,N=lr(Y)?l:mt(Y)?Y(l):Y;bo(N)?N.then(K,V):Y?K(N):s===3?V(N):K(N)}catch(k){V(k)}}),a&&y()},n);return j}finally{C1.pop()}}o(g,"_then");function h(S){return g(void 0,S)}o(h,"_catch");function x(S){var R=S,j=S;return mt(S)&&(R=o(function(K){return S&&S(),K},"thenFinally"),j=o(function(K){throw S&&S(),K},"catchFinally")),g(R,j)}o(x,"_finally");function _(){return $O[s]}o(_,"_strState");function y(){if(c.length>0){var S=c.slice();c=[],f=!0,m&&m.cancel(),m=null,t(S)}}o(y,"_processQueue");function b(S,R){return function(j){if(s===R){if(S===2&&bo(j)){s=1,j.then(b(2,1),b(3,1));return}s=S,a=!0,l=j,y(),!f&&S===3&&!m&&(m=Io(T,cre))}}}o(b,"_createSettleIfFn");function T(){if(!f)if(f=!0,vO())process.emit(jO,l,p);else{var S=Xi()||To();!J9&&(J9=es(Bn(Lr,[Fx+"RejectionEvent"]).v)),sre(S,are,function(R){return mr(R,"promise",{g:o(function(){return p},"g")}),R.reason=l,R},!!J9.v)}}o(T,"_notifyUnhandledRejection"),p={then:g,catch:h,finally:x},yo(p,"state",{get:_}),FO&&ire(p,_,function(){return fx(l)},function(){return f}),TO()&&(p[m1(11)]="IPromise");function v(){return"IPromise"+(FO?"["+u+(lr(d)?"":":"+d)+"]":"")+" "+_()+(a?" - "+UO(l):"")}return o(v,"_toString"),p.toString=v,o(function(){mt(r)||gi(Fx+": executor is not a function - "+UO(r));var R=b(3,0);try{r.call(p,b(2,0),R)}catch(j){R(j)}},"_initialize")(),p}o(WO,"_createPromise");function ure(e){return function(t){var r=Md(arguments,1);return e(function(n,s){try{var a=[],l=1;_x(t,function(c,u){c&&(l++,BO(c,function(d){a[u]=d,--l===0&&n(a)},s))}),l--,l===0&&n(a)}catch(c){s(c)}},r)}}o(ure,"_createAllPromise");function fre(e){return es(function(t){var r=Md(arguments,1);return e(function(n,s){var a=[],l=1;function c(u,d){l++,Ro(u,function(f){f.rejected?a[d]={status:tv,reason:f.reason}:a[d]={status:"fulfilled",value:f.value},--l===0&&n(a)})}o(c,"processItem");try{tt(t)?Ne(t,c):C9(t)?_x(t,c):gi("Input is not an iterable"),l--,l===0&&n(a)}catch(u){s(u)}},r)})}o(fre,"_createAllSettledPromise");function qO(e){Ne(e,function(t){try{t()}catch{}})}o(qO,"syncItemProcessor");function dre(e){var t=Sa(e)?e:0;return function(r){Io(function(){qO(r)},t)}}o(dre,"timeoutItemProcessor");function HO(e,t){return WO(HO,dre(t),e,t)}o(HO,"createAsyncPromise");var Z9;function mre(e,t){!Z9&&(Z9=es(Bn(Lr,[Fx]).v||null));var r=Z9.v;if(!r)return HO(e);mt(e)||gi(Fx+": executor is not a function - "+Ze(e));var n=0;function s(){return $O[n]}o(s,"_strState");var a=new r(function(l,c){function u(f){n=2,l(f)}o(u,"_resolve");function d(f){n=3,c(f)}o(d,"_reject"),e(u,d)});return yo(a,"state",{get:s}),a}o(mre,"createNativePromise");var Q9;function E1(e){return WO(E1,qO,e)}o(E1,"createSyncPromise");function zO(e,t){return!Q9&&(Q9=fre(E1)),Q9.v(e,t)}o(zO,"createSyncAllSettledPromise");var ev;function S0(e,t){return!ev&&(ev=es(mre)),ev.v.call(this,e,t)}o(S0,"createPromise");var VO=ure(S0);var ePe=m1(11);var Ao=void 0,yt="",hu="channels",Qr="core",Mx="createPerfMgr",I1="disabled",Fa="extensionConfig",xu="extensions",Qi="processTelemetry",_u="priority",zd="eventsSent",ql="eventsDiscarded",Vd="eventsSendRequest",P0="perfEvent",Ux="offlineEventsStored",Bx="offlineBatchSent",$x="offlineBatchDrop",Gd="getPerfMgr",jx="domain",Wx="path",GO="Not dynamic - ";var pre="getPrototypeOf",gre=/-([a-z])/g,hre=/([^\w\d_$])/g,xre=/^(\d+[\w\d_$])/,lPe=Object[pre];function Hl(e){return!Fe(e)}o(Hl,"isNotNullOrUndefined");function w1(e){var t=e;return t&&Jt(t)&&(t=t[$s](gre,function(r,n){return n.toUpperCase()}),t=t[$s](hre,"_"),t=t[$s](xre,function(r,n){return"_"+n})),t}o(w1,"normalizeJsName");function Rn(e,t){return e&&t?b0(e,t)!==-1:!1}o(Rn,"strContains");function zl(e){return e&&e.toISOString()||""}o(zl,"toISOString");function un(e){return d1(e)?e[wo]:yt}o(un,"getExceptionName");function R0(e,t,r,n,s){var a=r;return e&&(a=e[t],a!==r&&(!s||s(a))&&(!n||n(r))&&(a=r,e[t]=a)),a}o(R0,"setValue");function rv(e,t,r){var n;return e?(n=e[t],!n&&Fe(n)&&(n=lr(r)?{}:r,e[t]=n)):n=lr(r)?{}:r,n}o(rv,"getSetValue");function _re(e,t){var r=null,n=null;return mt(e)?r=e:n=e,function(){var s=arguments;if(r&&(n=r()),n)return n[t][Ml](n,s)}}o(_re,"_createProxyFunction");function yu(e,t,r,n,s){e&&t&&r&&(s!==!1||lr(e[t]))&&(e[t]=_re(r,n))}o(yu,"proxyFunctionAs");function bu(e,t,r,n){return e&&t&&pi(e)&&tt(r)&&Ne(r,function(s){Jt(s)&&yu(e,s,t,s,n)}),e}o(bu,"proxyFunctions");function nv(e){return function(){function t(){var r=this;e&&ht(e,function(n,s){r[n]=s})}return o(t,"class_1"),t}()}o(nv,"createClassFromInterface");function Hx(e){return e&&Od&&(e=qd(Od({},e))),e}o(Hx,"optimizeObject");function zx(e,t,r,n,s,a){var l=arguments,c=l[0]||{},u=l[je],d=!1,f=1;for(u>0&&f1(c)&&(d=c,c=l[f]||{},f++),pi(c)||(c={});f<u;f++){var m=l[f],p=tt(m),g=pi(m);for(var h in m){var x=p&&h in m||g&&_0(m,h);if(x){var _=m[h],y=void 0;if(d&&_&&((y=tt(_))||Qn(_))){var b=c[h];y?tt(b)||(b=[]):Qn(b)||(b={}),_=zx(d,b,_)}_!==void 0&&(c[h]=_)}}}return c}o(zx,"objExtend");function Kd(e){try{return e.responseText}catch{}return null}o(Kd,"getResponseText");function S1(e,t){return e?"XDomainRequest,Response:"+Kd(e)||"":t}o(S1,"formatErrorMessageXdr");function vu(e,t){return e?"XMLHttpRequest,Status:"+e[du]+",Response:"+Kd(e)||e.response||"":t}o(vu,"formatErrorMessageXhr");function Vx(e,t){return t&&(Sa(t)?e=[t].concat(e):tt(t)&&(e=t.concat(e))),e}o(Vx,"prependTransports");var yre="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",KO="withCredentials",bre="timeout";function iv(e,t,r,n,s,a){n===void 0&&(n=!1),s===void 0&&(s=!1);function l(u,d,f){try{u[d]=f}catch{}}o(l,"_wrapSetXhrProp");var c=new XMLHttpRequest;return n&&l(c,yre,n),r&&l(c,KO,r),c.open(e,t,!s),r&&l(c,KO,r),!s&&a&&l(c,bre,a),c}o(iv,"openXhr");function YO(e){var t={};if(Jt(e)){var r=_r(e)[Bs](/[\r\n]+/);Ne(r,function(n){if(n){var s=n.indexOf(": ");if(s!==-1){var a=_r(n.substring(0,s))[Us](),l=_r(n.substring(s+1));t[a]=l}else t[_r(n)]=1}})}return t}o(YO,"convertAllHeadersToMap");function qx(e,t,r){if(!e[r]&&t&&t.getResponseHeader){var n=t.getResponseHeader(r);n&&(e[r]=_r(n))}return e}o(qx,"_appendHeader");var vre="kill-duration",Tre="kill-duration-seconds",Cre="time-delta-millis";function P1(e,t){var r={};return e[k9]?r=YO(e[k9]()):t&&(r=qx(r,e,Cre),r=qx(r,e,vre),r=qx(r,e,Tre)),r}o(P1,"_getAllResponseHeaders");var Ere="documentMode",Ire="location",wre="console",JO="JSON",Sre="crypto",Pre="msCrypto";var lv="msie",cv="trident/",ZO="XMLHttpRequest",ov=null,sv=null,Rre=!1,Yd=null,av=null;function QO(e,t){var r=!1;if(e){try{if(r=t in e,!r){var n=e[Oa];n&&(r=t in n)}}catch{}if(!r)try{var s=new e;r=!lr(s[t])}catch{}}return r}o(QO,"_hasProperty");function R1(e){if(e&&Rre){var t=Lr("__mockLocation");if(t)return t}return typeof location===y1&&location?location:Lr(Ire)}o(R1,"getLocation");function uv(){return typeof console!==b1?console:Lr(wre)}o(uv,"getConsole");function Vl(){return!!(typeof JSON===y1&&JSON||Lr(JO)!==null)}o(Vl,"hasJSON");function Si(){return Vl()?JSON||Lr(JO):null}o(Si,"getJSON");function fv(){return Lr(Sre)}o(fv,"getCrypto");function dv(){return Lr(Pre)}o(dv,"getMsCrypto");function Xd(){var e=ts();if(e&&(e[x1]!==sv||ov===null)){sv=e[x1];var t=(sv||yt)[Us]();ov=Rn(t,lv)||Rn(t,cv)}return ov}o(Xd,"isIE");function mv(e){if(e===void 0&&(e=null),!e){var t=ts()||{};e=t?(t.userAgent||yt)[Us]():yt}var r=(e||yt)[Us]();if(Rn(r,lv)){var n=Co()||{};return su(parseInt(r[Bs](lv)[1]),n[Ere]||0)}else if(Rn(r,cv)){var s=parseInt(r[Bs](cv)[1]);if(s)return s+4}return null}o(mv,"getIEVersion");function Gl(e){return(av===null||e===!1)&&(av=T9()&&!!ts().sendBeacon),av}o(Gl,"isBeaconsSupported");function A1(e){var t=!1;try{t=!!Lr("fetch");var r=Lr("Request");t&&e&&r&&(t=QO(r,"keepalive"))}catch{}return t}o(A1,"isFetchSupported");function pv(){return Yd===null&&(Yd=typeof XDomainRequest!==b1,Yd&&Gx()&&(Yd=Yd&&!QO(Lr(ZO),"withCredentials"))),Yd}o(pv,"useXDomainRequest");function Gx(){var e=!1;try{var t=Lr(ZO);e=!!t}catch{}return e}o(Gx,"isXhrSupported");var tL=4294967296,Tu=4294967295,rL=123456789,nL=987654321,iL=!1,D1=rL,k1=nL;function Are(e){e<0&&(e>>>=0),D1=rL+e&Tu,k1=nL-e&Tu,iL=!0}o(Are,"_mwcSeed");function Dre(){try{var e=Eo()&2147483647;Are((Math.random()*tL^e)+e)}catch{}}o(Dre,"_autoSeedMwc");function eL(e){var t=0,r=fv()||dv();return r&&r.getRandomValues&&(t=r.getRandomValues(new Uint32Array(1))[0]&Tu),t===0&&Xd()&&(iL||Dre(),t=kre()&Tu),t===0&&(t=Ra(tL*Math.random()|0)),e||(t>>>=0),t}o(eL,"random32");function kre(e){k1=36969*(k1&65535)+(k1>>16)&Tu,D1=18e3*(D1&65535)+(D1>>16)&Tu;var t=(k1<<16)+(D1&65535)>>>0&Tu|0;return e||(t>>>=0),t}o(kre,"mwcRandom32");function oL(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=eL()>>>0,n=0,s=yt;s[je]<e;)n++,s+=t.charAt(r&63),r>>>=6,n===5&&(r=(eL()<<2&4294967295|r&3)>>>0,n=0);return s}o(oL,"newId");var sL="3.3.6",Nre="."+oL(6),Ore=0;function aL(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}o(aL,"_canAcceptData");function Lre(e,t){var r=t[e.id];if(!r){r={};try{aL(t)&&mr(t,e.id,{e:!1,v:r})}catch{}}return r}o(Lre,"_getCache");function Do(e,t){return t===void 0&&(t=!1),w1(e+Ore+++(t?"."+sL:yt)+Nre)}o(Do,"createUniqueNamespace");function Kx(e){var t={id:Do("_aiData-"+(e||yt)+"."+sL),accept:o(function(r){return aL(r)},"accept"),get:o(function(r,n,s,a){var l=r[t.id];return l?l[w1(n)]:(a&&(l=Lre(t,r),l[w1(n)]=s),s)},"get"),kill:o(function(r,n){if(r&&r[n])try{delete r[n]}catch{}},"kill")};return t}o(Kx,"createElmNodeData");function Yx(e){return e&&pi(e)&&(e.isVal||e.fb||_0(e,"v")||_0(e,"mrg")||_0(e,"ref")||e.set)}o(Yx,"_isConfigDefaults");function lL(e,t,r){var n,s=r.dfVal||dx;if(t&&r.fb){var a=r.fb;tt(a)||(a=[a]);for(var l=0;l<a[je];l++){var c=a[l],u=t[c];if(s(u)?n=u:e&&(u=e.cfg[c],s(u)&&(n=u),e.set(e.cfg,yn(c),u)),s(n))break}}return!s(n)&&s(r.v)&&(n=r.v),n}o(lL,"_getDefault");function gv(e,t,r){var n=r;if(r&&Yx(r)&&(n=lL(e,t,r)),n){Yx(n)&&(n=gv(e,t,n));var s;tt(n)?(s=[],s[je]=n[je]):Qn(n)&&(s={}),s&&(ht(n,function(a,l){l&&Yx(l)&&(l=gv(e,t,l)),s[a]=l}),n=s)}return n}o(gv,"_resolveDefaultValue");function N1(e,t,r,n){var s,a,l,c=n,u,d,f,m;Yx(c)?(s=c.isVal,a=c.set,f=c.rdOnly,m=c.blkVal,u=c.mrg,d=c.ref,!d&&lr(d)&&(d=!!u),l=lL(e,t,c)):l=n,m&&e.blkVal(t,r);var p,g=!0,h=t[r];(h||!Fe(h))&&(p=h,g=!1,s&&p!==l&&!s(p)&&(p=l,g=!0),a&&(p=a(p,l,t),g=p===l)),g?l?p=gv(e,t,l):p=l:(Qn(p)||tt(l))&&u&&l&&(Qn(l)||tt(l))&&ht(l,function(x,_){N1(e,p,x,_)}),e.set(t,r,p),d&&e.ref(t,r),f&&e.rdOnly(t,r)}o(N1,"_applyDefaultValue");var A0=xx("[[ai_dynCfg_1]]"),cL=xx("[[ai_blkDynCfg_1]]"),Fre=xx("[[ai_frcDynCfg_1]]");function hv(e){if(e){var t;if(tt(e)?(t=[],t[je]=e[je]):Qn(e)&&(t={}),t)return ht(e,function(r,n){t[r]=hv(n)}),t}return e}o(hv,"_cfgDeepCopy");function uL(e){if(e){var t=e[A0]||e;if(t.cfg&&(t.cfg===e||t.cfg[A0]===t))return t}return null}o(uL,"getDynamicConfigHandler");function fL(e){if(e&&(Qn(e)||tt(e)))try{e[cL]=!0}catch{}return e}o(fL,"blockDynamicConversion");function Xx(e,t,r){var n=!1;return r&&!e[t.blkVal]&&(n=r[Fre],!n&&!r[cL]&&(n=Qn(r)||tt(r))),n}o(Xx,"_canMakeDynamic");function Jx(e){gi("InvalidAccess:"+e)}o(Jx,"throwInvalidAccess");var Mre=["push","pop","shift","unshift","splice"],Jd=o(function(e,t,r,n){e&&e[Aa](3,108,"".concat(r," [").concat(t,"] failed - ")+Ze(n))},"_throwDynamicError");function Ure(e,t,r){tt(t)&&Ne(Mre,function(n){var s=t[n];t[n]=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c=s[Ml](this,a);return O1(e,t,r,"Patching"),c}})}o(Ure,"_patchArray");function Zx(e,t){var r=mx(e,t);return r&&r.get}o(Zx,"_getOwnPropGetter");function Bre(e,t,r,n){var s={n:r,h:[],trk:o(function(d){d&&d.fn&&(cn(s.h,d)===-1&&s.h[Tt](d),e.trk(d,s))},"trk"),clr:o(function(d){var f=cn(s.h,d);f!==-1&&s.h[T0](f,1)},"clr")},a=!0,l=!1;function c(){a&&(l=l||Xx(c,e,n),n&&!n[A0]&&l&&(n=O1(e,n,r,"Converting")),a=!1);var d=e.act;return d&&s.trk(d),n}o(c,"_getProperty"),c[e.prop]={chng:o(function(){e.add(s)},"chng")};function u(d){if(n!==d){c[e.ro]&&!e.upd&&Jx("["+r+"] is read-only:"+Ze(t)),a&&(l=l||Xx(c,e,n),a=!1);var f=l&&c[e.rf];if(l)if(f){ht(n,function(p){n[p]=d?d[p]:Ao});try{ht(d,function(p,g){L1(e,n,p,g)}),d=n}catch(p){Jd((e.hdlr||{})[Fr],r,"Assigning",p),l=!1}}else n&&n[A0]&&ht(n,function(p){var g=Zx(n,p);if(g){var h=g[e.prop];h&&h.chng()}});if(d!==n){var m=d&&Xx(c,e,d);!f&&m&&(d=O1(e,d,r,"Converting")),n=d,l=m}e.add(s)}}o(u,"_setProperty"),mr(t,s.n,{g:c,s:u})}o(Bre,"_createDynamicProperty");function L1(e,t,r,n){if(t){var s=Zx(t,r),a=s&&!!s[e.prop];a?t[r]=n:Bre(e,t,r,n)}return t}o(L1,"_setDynamicProperty");function Qx(e,t,r,n){if(t){var s=Zx(t,r),a=s&&!!s[e.prop],l=n&&n[0],c=n&&n[1],u=n&&n[2];if(!a){if(u)try{fL(t)}catch(d){Jd((e.hdlr||{})[Fr],r,"Blocking",d)}try{L1(e,t,r,t[r]),s=Zx(t,r)}catch(d){Jd((e.hdlr||{})[Fr],r,"State",d)}}l&&(s[e.rf]=l),c&&(s[e.ro]=c),u&&(s[e.blkVal]=!0)}return t}o(Qx,"_setDynamicPropertyState");function O1(e,t,r,n){try{ht(t,function(s,a){L1(e,t,s,a)}),t[A0]||(yo(t,A0,{get:o(function(){return e.hdlr},"get")}),Ure(e,t,r))}catch(s){Jd((e.hdlr||{})[Fr],r,n,s)}return t}o(O1,"_makeDynamicObject");var F1="[[ai_",M1="]]";function dL(e){var t=Fd(F1+"get"+e.uid+M1),r=Fd(F1+"ro"+e.uid+M1),n=Fd(F1+"rf"+e.uid+M1),s=Fd(F1+"blkVal"+e.uid+M1),a=Fd(F1+"dtl"+e.uid+M1),l=null,c=null,u;function d(g,h){var x=u.act;try{u.act=g,g&&g[a]&&(Ne(g[a],function(y){y.clr(g)}),g[a]=[]),h({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(y){var _=e[Fr];throw _&&_[Aa](1,107,Ze(y)),y}finally{u.act=x||null}}o(d,"_useHandler");function f(){if(l){var g=l;l=null,c&&c[Da](),c=null;var h=[];if(Ne(g,function(x){if(x&&(x[a]&&(Ne(x[a],function(_){_.clr(x)}),x[a]=null),x.fn))try{d(x,x.fn)}catch(_){h[Tt](_)}}),l)try{f()}catch(x){h[Tt](x)}h[je]>0&&RO("Watcher error(s): ",h)}}o(f,"_notifyWatchers");function m(g){if(g&&g.h[je]>0){l||(l=[]),c||(c=Io(function(){c=null,f()},0));for(var h=0;h<g.h[je];h++){var x=g.h[h];x&&cn(l,x)===-1&&l[Tt](x)}}}o(m,"_addWatcher");function p(g,h){if(g){var x=g[a]=g[a]||[];cn(x,h)===-1&&x[Tt](h)}}return o(p,"_trackHandler"),u={prop:t,ro:r,rf:n,blkVal:s,hdlr:e,add:m,notify:f,use:d,trk:p},u}o(dL,"_createState");function $re(e,t){var r={fn:t,rm:o(function(){r.fn=null,e=null,t=null},"rm")};return mr(r,"toJSON",{v:o(function(){return"WatcherHandler"+(r.fn?"":"[X]")},"v")}),e.use(r,t),r}o($re,"_createAndUseHandler");function jre(e,t,r){var n=uL(t);if(n)return n;var s=Do("dyncfg",!0),a=t&&r!==!1?t:hv(t),l;function c(){l.notify()}o(c,"_notifyWatchers");function u(_,y,b){try{_=L1(l,_,y,b)}catch(T){Jd(e,y,"Setting value",T)}return _[y]}o(u,"_setValue");function d(_){return $re(l,_)}o(d,"_watch");function f(_,y){l.use(null,function(b){var T=l.upd;try{lr(y)||(l.upd=y),_(b)}finally{l.upd=T}})}o(f,"_block");function m(_,y){var b;return Qx(l,_,y,(b={},b[0]=!0,b))[y]}o(m,"_ref");function p(_,y){var b;return Qx(l,_,y,(b={},b[1]=!0,b))[y]}o(p,"_rdOnly");function g(_,y){var b;return Qx(l,_,y,(b={},b[2]=!0,b))[y]}o(g,"_blkPropValue");function h(_,y){return y&&ht(y,function(b,T){N1(x,_,b,T)}),_}o(h,"_applyDefaults");var x={uid:null,cfg:a,logger:e,notify:c,set:u,setDf:h,watch:d,ref:m,rdOnly:p,blkVal:g,_block:f};return mr(x,"uid",{c:!1,e:!1,w:!1,v:s}),l=dL(x),O1(l,a,"config","Creating"),x}o(jre,"_createDynamicHandler");function Wre(e,t){e?(e[Ud](t),e[Aa](2,108,t)):Jx(t)}o(Wre,"_logInvalidAccess");function bn(e,t,r,n){var s=jre(r,e||{},n);return t&&s.setDf(s.cfg,t),s}o(bn,"createDynamicConfig");function is(e,t,r){var n=e[A0]||e;return n.cfg&&(n.cfg===e||n.cfg[A0]===n)?n[v0](t):(Wre(r,GO+Ze(e)),bn(e,null,r)[v0](t))}o(is,"onConfigChange");function Ma(e,t){if(e&&e[rs])return e[rs](t)}o(Ma,"runTargetUnload");function e4(e,t,r){var n;return r||(n=S0(function(s){r=s})),e&&P9(e)>0?Ro(Ma(e[0],t),function(){e4(Md(e,1),t,r)}):r(),n}o(e4,"doUnloadAll");var mL=500,xv="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function qre(e,t,r){return!e&&Fe(e)?t:f1(e)?e:yn(e)[Us]()==="true"}o(qre,"_stringToBoolOrDefault");function _v(e){return{mrg:!0,v:e}}o(_v,"cfgDfMerge");function Zd(e,t,r){return{fb:r,isVal:e,v:t}}o(Zd,"cfgDfValidate");function os(e,t){return{fb:t,set:qre,v:!!e}}o(os,"cfgDfBoolean");var yv=[zd,ql,Vd,P0],r4=null,t4;function Hre(e,t){return function(){var r=arguments,n=bv(t);if(n){var s=n.listener;s&&s[e]&&s[e][Ml](s,r)}}}o(Hre,"_listenerProxyFunc");function zre(){var e=Lr("Microsoft");return e&&(r4=e.ApplicationInsights),r4}o(zre,"_getExtensionNamespace");function bv(e){var t=r4;return!t&&e.disableDbgExt!==!0&&(t=r4||zre()),t?t.ChromeDbgExt:null}o(bv,"getDebugExt");function pL(e){if(!t4){t4={};for(var t=0;t<yv[je];t++)t4[yv[t]]=Hre(yv[t],e)}return t4}o(pL,"getDebugListener");var Qd,hL="warnToConsole",Vre="AI (Internal): ",Gre="AI: ",Kre="AITR_",Yre={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Xre=(Qd={},Qd[0]=null,Qd[1]="errorToConsole",Qd[2]=hL,Qd[3]="debugToConsole",Qd);function gL(e){return e?'"'+e[$s](/\"/g,yt)+'"':yt}o(gL,"_sanitizeDiagnosticText");function vv(e,t){var r=uv();if(r){var n="log";r[e]&&(n=e),mt(r[n])&&r[n](t)}}o(vv,"_logToConsole");var U1=function(){function e(t,r,n,s){n===void 0&&(n=!1);var a=this;a[jd]=t,a[I0]=(n?Gre:Vre)+t;var l=yt;Vl()&&(l=Si().stringify(s));var c=(r?" message:"+gL(r):yt)+(s?" props:"+gL(l):yt);a[I0]+=c}return o(e,"_InternalLogMessage"),e.dataType="MessageData",e}();function Cu(e,t){return(e||{})[Fr]||new em(t)}o(Cu,"safeGetLogger");var em=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r=0,n={},s,a,l,c,u;Ir(e,this,function(d){u=m(t||{}),d.consoleLoggingLevel=function(){return s},d[Aa]=function(h,x,_,y,b){b===void 0&&(b=!1);var T=new U1(x,_,b,y);if(c)throw Ze(T);var v=Xre[h]||hL;if(lr(T[I0]))g("throw"+(h===1?"Critical":"Warning"),T);else{if(b){var S=+T[jd];!n[S]&&s>=h&&(d[v](T[I0]),n[S]=!0)}else s>=h&&d[v](T[I0]);f(h,T)}},d.debugToConsole=function(h){vv("debug",h),g("warning",h)},d[Ud]=function(h){vv("warn",h),g("warning",h)},d.errorToConsole=function(h){vv("error",h),g("error",h)},d.resetInternalMessageCount=function(){r=0,n={}},d.logInternalMessage=f,d[rs]=function(h){u&&u.rm(),u=null};function f(h,x){if(!p()){var _=!0,y=Kre+x[jd];if(n[y]?_=!1:n[y]=!0,_&&(h<=a&&(d.queue[Tt](x),r++,g(h===1?"error":"warn",x)),r===l)){var b="Internal events throttle limit per PageView reached for this app.",T=new U1(23,b,!1);d.queue[Tt](T),h===1?d.errorToConsole(b):d[Ud](b)}}}o(f,"_logInternalMessage");function m(h){return is(bn(h,Yre,d).cfg,function(x){var _=x.cfg;s=_[vx],a=_.loggingLevelTelemetry,l=_.maxMessageLimit,c=_.enableDebug})}o(m,"_setDefaultsFromConfig");function p(){return r>=l}o(p,"_areInternalMessagesThrottled");function g(h,x){var _=bv(t||{});_&&_[Zi]&&_[Zi](h,x)}o(g,"_debugExtMsg")})}return o(e,"DiagnosticLogger"),e.__ieDyn=1,e}();function xL(e){return e||new em}o(xL,"_getLogger");function Ie(e,t,r,n,s,a){a===void 0&&(a=!1),xL(e)[Aa](t,r,n,s,a)}o(Ie,"_throwInternal");function Ua(e,t){xL(e)[Ud](t)}o(Ua,"_warnToConsole");var Tv,Eu,_L="toGMTString",yL="toUTCString",wv="cookie",Cv="expires",bL="isCookieUseDisabled",Iv="disableCookiesUsage",vL="_ckMgr",n4=null,Ev=null,TL=null,D0,CL={},EL={},Jre=(Tv={cookieCfg:_v((Eu={},Eu[jx]={fb:"cookieDomain",dfVal:Hl},Eu.path={fb:"cookiePath",dfVal:Hl},Eu.enabled=Ao,Eu.ignoreCookies=Ao,Eu.blockedCookies=Ao,Eu)),cookieDomain:Ao,cookiePath:Ao},Tv[Iv]=Ao,Tv);function Sv(){!D0&&(D0=_O(function(){return Co()}))}o(Sv,"_getDoc");function i4(e){return e?e.isEnabled():!0}o(i4,"_isMgrEnabled");function AL(e,t){return t&&e&&tt(e.ignoreCookies)?cn(e.ignoreCookies,t)!==-1:!1}o(AL,"_isIgnoredCookie");function Zre(e,t){return t&&e&&tt(e.blockedCookies)&&cn(e.blockedCookies,t)!==-1?!0:AL(e,t)}o(Zre,"_isBlockedCookie");function IL(e,t){var r=t[Bl];if(Fe(r)){var n=void 0;lr(e[bL])||(n=!e[bL]),lr(e[Iv])||(n=!e[Iv]),r=n}return r}o(IL,"_isCfgEnabled");function DL(e,t){var r,n,s,a,l,c,u,d;e=bn(e||EL,null,t).cfg,a=is(e,function(m){m.setDf(m.cfg,Jre),r=m.ref(m.cfg,"cookieCfg"),n=r[Wx]||"/",s=r[jx],l=IL(e,r)!==!1,c=r.getCookie||Qre,u=r.setCookie||RL,d=r.delCookie||RL},t);var f={isEnabled:o(function(){var m=IL(e,r)!==!1&&l&&wL(t),p=EL[vL];return m&&p&&f!==p&&(m=i4(p)),m},"isEnabled"),setEnabled:o(function(m){l=m!==!1,r[Bl]=m},"setEnabled"),set:o(function(m,p,g,h,x){var _=!1;if(i4(f)&&!Zre(r,m)){var y={},b=_r(p||yt),T=b0(b,";");if(T!==-1&&(b=_r(y9(p,T)),y=kL(Qo(p,T+1))),R0(y,jx,h||s,Fl,lr),!Fe(g)){var v=Xd();if(lr(y[Cv])){var S=Eo(),R=S+g*1e3;if(R>0){var j=new Date;j.setTime(R),R0(y,Cv,SL(j,v?_L:yL)||SL(j,v?_L:yL)||yt,Fl)}}v||R0(y,"max-age",yt+g,null,lr)}var K=R1();K&&K.protocol==="https:"&&(R0(y,"secure",null,null,lr),Ev===null&&(Ev=!ene((ts()||{})[x1])),Ev&&R0(y,"SameSite","None",null,lr)),R0(y,Wx,x||n,null,lr),u(m,PL(b,y)),_=!0}return _},"set"),get:o(function(m){var p=yt;return i4(f)&&!AL(r,m)&&(p=c(m)),p},"get"),del:o(function(m,p){var g=!1;return i4(f)&&(g=f.purge(m,p)),g},"del"),purge:o(function(m,p){var g,h=!1;if(wL(t)){var x=(g={},g[Wx]=p||"/",g[Cv]="Thu, 01 Jan 1970 00:00:01 GMT",g);Xd()||(x["max-age"]="0"),d(m,PL(yt,x)),h=!0}return h},"purge"),unload:o(function(m){a&&a.rm(),a=null},"unload")};return f[vL]=f,f}o(DL,"createCookieMgr");function wL(e){if(n4===null){n4=!1,!D0&&Sv();try{var t=D0.v||{};n4=t[wv]!==void 0}catch(r){Ie(e,2,68,"Cannot access document.cookie - "+un(r),{exception:Ze(r)})}}return n4}o(wL,"areCookiesSupported");function kL(e){var t={};if(e&&e[je]){var r=_r(e)[Bs](";");Ne(r,function(n){if(n=_r(n||yt),n){var s=b0(n,"=");s===-1?t[n]=null:t[_r(y9(n,s))]=_r(Qo(n,s+1))}})}return t}o(kL,"_extractParts");function SL(e,t){return mt(e[t])?e[t]():null}o(SL,"_formatDate");function PL(e,t){var r=e||yt;return ht(t,function(n,s){r+="; "+n+(Fe(s)?yt:"="+s)}),r}o(PL,"_formatCookieValue");function Qre(e){var t=yt;if(!D0&&Sv(),D0.v){var r=D0.v[wv]||yt;TL!==r&&(CL=kL(r),TL=r),t=_r(CL[e]||yt)}return t}o(Qre,"_getCookieValue");function RL(e,t){!D0&&Sv(),D0.v&&(D0.v[wv]=e+"="+t)}o(RL,"_setCookieValue");function ene(e){return Jt(e)?!!(Rn(e,"CPU iPhone OS 12")||Rn(e,"iPad; CPU OS 12")||Rn(e,"Macintosh; Intel Mac OS X 10_14")&&Rn(e,"Version/")&&Rn(e,"Safari")||Rn(e,"Macintosh; Intel Mac OS X 10_14")&&p1(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Rn(e,"Chrome/5")||Rn(e,"Chrome/6")||Rn(e,"UnrealEngine")&&!Rn(e,"Chrome")||Rn(e,"UCBrowser/12")||Rn(e,"UCBrowser/11")):!1}o(ene,"uaDisallowsSameSiteNone");var tne={perfEvtsSendAll:!1};function rne(e){e.h=null;var t=e.cb;e.cb=[],Ne(t,function(r){Bn(r.fn,[r.arg])})}o(rne,"_runScheduledListeners");function Kl(e,t,r,n){Ne(e,function(s){s&&s[t]&&(r?(r.cb[Tt]({fn:n,arg:s}),r.h=r.h||Io(rne,0,r)):Bn(n,[s]))})}o(Kl,"_runListeners");var NL=function(){function e(t){this.listeners=[];var r,n,s=[],a={h:null,cb:[]},l=bn(t,tne);n=l[v0](function(c){r=!!c.cfg.perfEvtsSendAll}),Ir(e,this,function(c){mr(c,"listeners",{g:o(function(){return s},"g")}),c[$d]=function(u){s[Tt](u)},c[Bd]=function(u){for(var d=cn(s,u);d>-1;)s[T0](d,1),d=cn(s,u)},c[zd]=function(u){Kl(s,zd,a,function(d){d[zd](u)})},c[ql]=function(u,d){Kl(s,ql,a,function(f){f[ql](u,d)})},c[Vd]=function(u,d){Kl(s,Vd,d?a:null,function(f){f[Vd](u,d)})},c[P0]=function(u){u&&(r||!u[_1]())&&Kl(s,P0,null,function(d){u.isAsync?Io(function(){return d[P0](u)},0):d[P0](u)})},c[Ux]=function(u){u&&u[je]&&Kl(s,Ux,a,function(d){d[Ux](u)})},c[Bx]=function(u){u&&u[Wl]&&Kl(s,Bx,a,function(d){d[Bx](u)})},c[$x]=function(u,d){if(u>0){var f=d||0;Kl(s,$x,a,function(m){m[$x](u,f)})}},c[rs]=function(u){var d=o(function(){n&&n.rm(),n=null,s=[],a.h&&a.h[Da](),a.h=null,a.cb=[]},"_finishUnload"),f;if(Kl(s,"unload",null,function(m){var p=m[rs](u);p&&(f||(f=[]),f[Tt](p))}),f)return S0(function(m){return Ro(VO(f),function(){d(),m()})});d()}})}return o(e,"NotificationManager"),e.__ieDyn=1,e}();var tm="ctx",Rv="ParentContextKey",B1="ChildrenContextKey",nne=null,o4=function(){function e(t,r,n){var s=this;if(s.start=Eo(),s[wo]=t,s.isAsync=n,s[_1]=function(){return!1},mt(r)){var a;mr(s,"payload",{g:o(function(){return!a&&mt(r)&&(a=r(),r=null),a},"g")})}s[mu]=function(l){return l?l===e[Rv]||l===e[B1]?s[l]:(s[tm]||{})[l]:null},s[js]=function(l,c){if(l)if(l===e[Rv])s[l]||(s[_1]=function(){return!0}),s[l]=c;else if(l===e[B1])s[l]=c;else{var u=s[tm]=s[tm]||{};u[l]=c}},s.complete=function(){var l=0,c=s[mu](e[B1]);if(tt(c))for(var u=0;u<c[je];u++){var d=c[u];d&&(l+=d.time)}s.time=Eo()-s.start,s.exTime=s.time-l,s.complete=function(){}}}return o(e,"PerfEvent"),e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}();var OL=function(){function e(t){this.ctx={},Ir(e,this,function(r){r.create=function(n,s,a){return new o4(n,s,a)},r.fire=function(n){n&&(n.complete(),t&&mt(t[P0])&&t[P0](n))},r[js]=function(n,s){if(n){var a=r[tm]=r[tm]||{};a[n]=s}},r[mu]=function(n){return(r[tm]||{})[n]}})}return o(e,"PerfManager"),e.__ieDyn=1,e}();var Pv="CoreUtils.doPerf";function s4(e,t,r,n,s){if(e){var a=e;if(a[Gd]&&(a=a[Gd]()),a){var l=void 0,c=a[mu](Pv);try{if(l=a.create(t(),n,s),l){if(c&&l[js]&&(l[js](o4[Rv],c),c[mu]&&c[js])){var u=c[mu](o4[B1]);u||(u=[],c[js](o4[B1],u)),u[Tt](l)}return a[js](Pv,l),r(l)}}catch(d){l&&l[js]&&l[js]("exception",d)}finally{l&&a.fire(l),a[js](Pv,c)}}}return r()}o(s4,"doPerf");function LL(){return nne}o(LL,"getGblPerfMgr");var ine="00000000000000000000000000000000",one="0000000000000000";function FL(e,t,r){return e&&e[je]===t&&e!==r?!!e.match(/^[\da-f]*$/i):!1}o(FL,"_isValid");function Av(e){return FL(e,32,ine)}o(Av,"isValidTraceId");function Dv(e){return FL(e,16,one)}o(Dv,"isValidSpanId");var sne=Kx("plugin");function Ba(e){return sne.get(e,"state",{},!0)}o(Ba,"_getPluginState");function kv(e,t){for(var r=[],n=null,s=e[Po](),a;s;){var l=s[Ul]();if(l){n&&n[jl]&&l[Qi]&&n[jl](l),a=Ba(l);var c=!!a[Ji];l[Ji]&&(c=l[Ji]()),c||r[Tt](l),n=l,s=s[Po]()}}Ne(r,function(u){var d=e[Qr]();u[ka](e.getCfg(),d,t,e[Po]()),a=Ba(u),!u[Qr]&&!a[Qr]&&(a[Qr]=d),a[Ji]=!0,delete a[So]})}o(kv,"initializePlugins");function a4(e){return e.sort(function(t,r){var n=0;if(r){var s=r[Qi];t[Qi]?n=s?t[_u]-r[_u]:1:s&&(n=-1)}else n=t?1:-1;return n})}o(a4,"sortPlugins");function ML(e){var t={};return{getName:o(function(){return t[wo]},"getName"),setName:o(function(r){e&&e.setName(r),t[wo]=r},"setName"),getTraceId:o(function(){return t.traceId},"getTraceId"),setTraceId:o(function(r){e&&e.setTraceId(r),Av(r)&&(t.traceId=r)},"setTraceId"),getSpanId:o(function(){return t.spanId},"getSpanId"),setSpanId:o(function(r){e&&e.setSpanId(r),Dv(r)&&(t.spanId=r)},"setSpanId"),getTraceFlags:o(function(){return t[Cx]},"getTraceFlags"),setTraceFlags:o(function(r){e&&e.setTraceFlags(r),t[Cx]=r},"setTraceFlags")}}o(ML,"createDistributedTraceContext");var ane="TelemetryPluginChain",UL="_hasRun",BL="_getTelCtx",$L=0;function lne(e,t,r){for(;e;){if(e[Ul]()===r)return e;e=e[Po]()}return Yl([r],t.config||{},t)}o(lne,"_getNextProxyStart");function Nv(e,t,r,n){var s=null,a=[];t||(t=bn({},null,r[Fr])),n!==null&&(s=n?lne(e,r,n):e);var l={_next:u,ctx:{core:o(function(){return r},"core"),diagLog:o(function(){return Cu(r,t.cfg)},"diagLog"),getCfg:o(function(){return t.cfg},"getCfg"),getExtCfg:f,getConfig:m,hasNext:o(function(){return!!s},"hasNext"),getNext:o(function(){return s},"getNext"),setNext:o(function(g){s=g},"setNext"),iterate:p,onComplete:c}};function c(g,h){for(var x=[],_=2;_<arguments.length;_++)x[_-2]=arguments[_];g&&a[Tt]({func:g,self:lr(h)?l.ctx:h,args:x})}o(c,"_addOnComplete");function u(){var g=s;if(s=g?g[Po]():null,!g){var h=a;h&&h[je]>0&&(Ne(h,function(x){try{x.func.call(x.self,x.args)}catch(_){Ie(r[Fr],2,73,"Unexpected Exception during onComplete - "+Ze(_))}}),a=[])}return g}o(u,"_moveNext");function d(g,h){var x=null,_=t.cfg;if(_&&g){var y=_[Fa];!y&&h&&(y={}),_[Fa]=y,y=t.ref(_,Fa),y&&(x=y[g],!x&&h&&(x={}),y[g]=x,x=t.ref(y,g))}return x}o(d,"_getExtCfg");function f(g,h){var x=d(g,!0);return h&&ht(h,function(_,y){if(Fe(x[_])){var b=t.cfg[_];(b||!Fe(b))&&(x[_]=b)}N1(t,x,_,y)}),t.setDf(x,h)}o(f,"_resolveExtCfg");function m(g,h,x){x===void 0&&(x=!1);var _,y=d(g,!1),b=t.cfg;return y&&(y[h]||!Fe(y[h]))?_=y[h]:(b[h]||!Fe(b[h]))&&(_=b[h]),_||!Fe(_)?_:x}o(m,"_getConfig");function p(g){for(var h;h=l._next();){var x=h[Ul]();x&&g(x)}}return o(p,"_iterateChain"),l}o(Nv,"_createInternalContext");function Ws(e,t,r,n){var s=bn(t),a=Nv(e,s,r,n),l=a.ctx;function c(d){var f=a._next();return f&&f[Qi](d,l),!f}o(c,"_processNext");function u(d,f){return d===void 0&&(d=null),tt(d)&&(d=Yl(d,s.cfg,r,f)),Ws(d||l[Po](),s.cfg,r,f)}return o(u,"_createNew"),l[Pn]=c,l[E0]=u,l}o(Ws,"createProcessTelemetryContext");function rm(e,t,r){var n=bn(t.config),s=Nv(e,n,t,r),a=s.ctx;function l(u){var d=s._next();return d&&d[rs](a,u),!d}o(l,"_processNext");function c(u,d){return u===void 0&&(u=null),tt(u)&&(u=Yl(u,n.cfg,t,d)),rm(u||a[Po](),t,d)}return o(c,"_createNew"),a[Pn]=l,a[E0]=c,a}o(rm,"createProcessTelemetryUnloadContext");function $1(e,t,r){var n=bn(t.config),s=Nv(e,n,t,r),a=s.ctx;function l(u){return a.iterate(function(d){mt(d[fu])&&d[fu](a,u)})}o(l,"_processNext");function c(u,d){return u===void 0&&(u=null),tt(u)&&(u=Yl(u,n.cfg,t,d)),$1(u||a[Po](),t,d)}return o(c,"_createNew"),a[Pn]=l,a[E0]=c,a}o($1,"createProcessTelemetryUpdateContext");function Yl(e,t,r,n){var s=null,a=!n;if(tt(e)&&e[je]>0){var l=null;Ne(e,function(c){if(!a&&n===c&&(a=!0),a&&c&&mt(c[Qi])){var u=cne(c,t,r);s||(s=u),l&&l._setNext(u),l=u}})}return n&&!s?Yl([n],t,r):s}o(Yl,"createTelemetryProxyChain");function cne(e,t,r){var n=null,s=mt(e[Qi]),a=mt(e[jl]),l;e?l=e[C0]+"-"+e[_u]+"-"+$L++:l="Unknown-0-"+$L++;var c={getPlugin:o(function(){return e},"getPlugin"),getNext:o(function(){return n},"getNext"),processTelemetry:f,unload:m,update:p,_id:l,_setNext:o(function(g){n=g},"_setNext")};function u(){var g;return e&&mt(e[BL])&&(g=e[BL]()),g||(g=Ws(c,t,r)),g}o(u,"_getTelCtx");function d(g,h,x,_,y){var b=!1,T=e?e[C0]:ane,v=g[UL];return v||(v=g[UL]={}),g.setNext(n),e&&s4(g[Qr](),function(){return T+":"+x},function(){v[l]=!0;try{var S=n?n._id:yt;S&&(v[S]=!1),b=h(g)}catch(j){var R=n?v[n._id]:!0;R&&(b=!0),(!n||!R)&&Ie(g[Zi](),1,73,"Plugin ["+T+"] failed during "+x+" - "+Ze(j)+", run flags: "+Ze(v))}},_,y),b}o(d,"_processChain");function f(g,h){h=h||u();function x(_){if(!e||!s)return!1;var y=Ba(e);return y[So]||y[I1]?!1:(a&&e[jl](n),e[Qi](g,_),!0)}o(x,"_callProcessTelemetry"),d(h,x,"processTelemetry",function(){return{item:g}},!g.sync)||h[Pn](g)}o(f,"_processTelemetry");function m(g,h){function x(){var _=!1;if(e){var y=Ba(e),b=e[Qr]||y[Qr];e&&(!b||b===g.core())&&!y[So]&&(y[Qr]=null,y[So]=!0,y[Ji]=!1,e[So]&&e[So](g,h)===!0&&(_=!0))}return _}o(x,"_callTeardown"),d(g,x,"unload",function(){},h.isAsync)||g[Pn](h)}o(m,"_unloadPlugin");function p(g,h){function x(){var _=!1;if(e){var y=Ba(e),b=e[Qr]||y[Qr];e&&(!b||b===g.core())&&!y[So]&&e[fu]&&e[fu](g,h)===!0&&(_=!0)}return _}o(x,"_callUpdate"),d(g,x,"update",function(){},!1)||g[Pn](h)}return o(p,"_updatePlugin"),vo(c)}o(cne,"createTelemetryPluginProxy");var une=function(){function e(t,r,n,s){var a=this,l=Ws(t,r,n,s);bu(a,l,Zo(l))}return o(e,"ProcessTelemetryContext"),e}();function l4(){var e=[];function t(n){n&&e[Tt](n)}o(t,"_addHandler");function r(n,s){Ne(e,function(a){try{a(n,s)}catch(l){Ie(n[Zi](),2,73,"Unexpected error calling unload handler - "+Ze(l))}}),e=[]}return o(r,"_runHandlers"),{add:t,run:r}}o(l4,"createUnloadHandlerContainer");var c4,u4;function f4(){var e=[];function t(n){var s=e;e=[],Ne(s,function(a){try{(a.rm||a.remove).call(a)}catch(l){Ie(n,2,73,"Unloading:"+Ze(l))}}),c4&&s[je]>c4&&(u4?u4("doUnload",s):Ie(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}o(t,"_doUnload");function r(n){n&&(Pa(e,n),c4&&e[je]>c4&&(u4?u4("Add",e):Ie(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return o(r,"_addHook"),{run:t,add:r}}o(f4,"createUnloadHookContainer");var Ov,Xl="getPlugin",fne=(Ov={},Ov[Fa]={isVal:Hl,v:{}},Ov),j1=function(){function e(){var t=this,r,n,s,a,l;d(),Ir(e,t,function(f){f[ka]=function(m,p,g,h){u(m,p,h),r=!0},f[So]=function(m,p){var g=f[Qr];if(!g||m&&g!==m[Qr]())return;var h,x=!1,_=m||rm(null,g,s&&s[Xl]?s[Xl]():s),y=p||{reason:0,isAsync:!1};function b(){x||(x=!0,a.run(_,p),l.run(_[Zi]()),h===!0&&_[Pn](y),d())}return o(b,"_unloadCallback"),!f[$l]||f[$l](_,y,b)!==!0?b():h=!0,h},f[fu]=function(m,p){var g=f[Qr];if(!g||m&&g!==m[Qr]())return;var h,x=!1,_=m||$1(null,g,s&&s[Xl]?s[Xl]():s),y=p||{reason:0};function b(){x||(x=!0,u(_.getCfg(),_.core(),_[Po]()))}return o(b,"_updateCallback"),!f._doUpdate||f._doUpdate(_,y,b)!==!0?b():h=!0,h},yu(f,"_addUnloadCb",function(){return a},"add"),yu(f,"_addHook",function(){return l},"add"),mr(f,"_unloadHooks",{g:o(function(){return l},"g")})}),t[Zi]=function(f){return c(f)[Zi]()},t[Ji]=function(){return r},t.setInitialized=function(f){r=f},t[jl]=function(f){s=f},t[Pn]=function(f,m){m?m[Pn](f):s&&mt(s[Qi])&&s[Qi](f,null)},t._getTelCtx=c;function c(f){f===void 0&&(f=null);var m=f;if(!m){var p=n||Ws(null,{},t[Qr]);s&&s[Xl]?m=p[E0](null,s[Xl]):m=p[E0](null,s)}return m}o(c,"_getTelCtx");function u(f,m,p){bn(f,fne,Cu(m)),!p&&m&&(p=m[yx]()[Po]());var g=s;s&&s[Xl]&&(g=s[Xl]()),t[Qr]=m,n=Ws(p,f,m,g)}o(u,"_setDefaults");function d(){r=!1,t[Qr]=null,n=null,s=null,l=f4(),a=l4()}o(d,"_initDefaults")}return o(e,"BaseTelemetryPlugin"),e.__ieDyn=1,e}();function dne(e,t,r){var n={id:t,fn:r};Pa(e,n);var s={remove:o(function(){Ne(e,function(a,l){if(a.id===n.id)return e[T0](l,1),-1})},"remove")};return s}o(dne,"_addInitializer");function mne(e,t,r){for(var n=!1,s=e[je],a=0;a<s;++a){var l=e[a];if(l)try{if(l.fn[Ml](null,[t])===!1){n=!0;break}}catch(c){Ie(r,2,64,"Telemetry initializer failed: "+un(c),{exception:Ze(c)},!0)}}return!n}o(mne,"_runInitializers");var jL=function(e){w0(t,e);function t(){var r=e.call(this)||this;r.identifier="TelemetryInitializerPlugin",r.priority=199;var n,s;a(),Ir(t,r,function(l,c){l.addTelemetryInitializer=function(u){return dne(s,n++,u)},l[Qi]=function(u,d){mne(s,u,d?d[Zi]():l[Zi]())&&l[Pn](u,d)},l[$l]=function(){a()}});function a(){n=0,s=[]}return o(a,"_initDefaults"),r}return o(t,"TelemetryInitializerPlugin"),t.__ieDyn=1,t}(j1);var Jl,zL="Plugins must provide initialize method",pne="_notificationManager",WL="SDK is still unloading...",gne="SDK is not initialized",hne=100,xne=5e4,Lv=ou((Jl={cookieCfg:{}},Jl[xu]={rdOnly:!0,ref:!0,v:[]},Jl[hu]={rdOnly:!0,ref:!0,v:[]},Jl[Fa]={ref:!0,v:{}},Jl[Mx]=Ao,Jl.loggingLevelConsole=0,Jl.diagnosticLogInterval=Ao,Jl));function _ne(e,t){return new OL(t)}o(_ne,"_createPerfManager");function yne(e,t,r){var n=[],s=[],a={};return Ne(r,function(l){(Fe(l)||Fe(l[ka]))&&Yi(zL);var c=l[_u],u=l[C0];l&&c&&(Fe(a[c])?a[c]=u:Ua(e,"Two extensions have same priority #"+c+" - "+a[c]+", "+u)),!c||c<t?n[Tt](l):s[Tt](l)}),{core:n,channels:s}}o(yne,"_validateExtensions");function qL(e,t){var r=!1;return Ne(t,function(n){if(n===e)return r=!0,-1}),r}o(qL,"_isPluginPresent");function Fv(e,t,r,n){r&&ht(r,function(s,a){n&&Qn(a)&&Qn(t[s])&&Fv(e,t[s],a,n),n&&Qn(a)&&Qn(t[s])?Fv(e,t[s],a,n):e.set(t,s,a)})}o(Fv,"_deepMergeConfig");function HL(e,t){var r=null,n=-1;return Ne(e,function(s,a){if(s.w===t)return r=s,n=a,-1}),{i:n,l:r}}o(HL,"_findWatcher");function bne(e,t){var r=HL(e,t).l;return r||(r={w:t,rm:o(function(){var n=HL(e,t);n.i!==-1&&e[T0](n.i,1)},"rm")},e[Tt](r)),r}o(bne,"_addDelayedCfgListener");function vne(e,t,r){Ne(t,function(n){var s=is(e,n.w,r);delete n.w,n.rm=function(){s.rm()}})}o(vne,"_registerDelayedCfgListener");function Tne(e,t,r,n){return t.add(e[v0](function(s){var a=s.cfg.disableDbgExt;a===!0&&n&&(r[Bd](n),n=null),r&&!n&&a!==!0&&(n=pL(s.cfg),r[$d](n))})),n}o(Tne,"_initDebugListener");function Cne(e){return mr({rm:o(function(){e.rm()},"rm")},"toJSON",{v:o(function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"},"v")})}o(Cne,"_createUnloadHook");var Mv=function(){function e(){var t,r,n,s,a,l,c,u,d,f,m,p,g,h,x,_,y,b,T,v,S,R,j,K,V,Y,N,k,z,D,E,I,A;Ir(e,this,function(w){G(),w._getDbgPlgTargets=function(){return[j,s]},w[Ji]=function(){return r},w.activeStatus=function(){return Y},w._setPendingStatus=function(){Y=3},w[ka]=function(q,ne,_e,fe){g&&Yi(WL),w[Ji]()&&Yi("Core cannot be initialized more than once"),t=bn(q,Lv,_e||w[Fr],!1),q=t.cfg,ce(t[v0](function(Pe){var Oe=Pe.cfg,qe=Y===3;if(!qe){k=Oe.initInMemoMaxSize||hne;var Ye=Oe.instrumentationKey,rt=Oe.endpointUrl;if(Fe(Ye)){S=null,Y=Ms.INACTIVE;var nt="Please provide instrumentation key";r?(Ie(n,1,100,nt),O()):Yi(nt);return}var ct=[];if(bo(Ye)?(ct[Tt](Ye),S=null):S=Ye,bo(rt)?(ct[Tt](rt),N=null):N=rt,ct[je]){z=!1,Y=3;var F=Hl(Oe.initTimeOut)?Oe.initTimeOut:xne,Q=zO(ct);D=Io(function(){D=null,z||P()},F),Ro(Q,function(ge){try{if(z)return;if(!ge.rejected){var De=ge[uu];if(De&&De[je]){var Be=De[0];if(S=Be&&Be[uu],De[je]>1){var We=De[1];N=We&&We[uu]}}S&&(q.instrumentationKey=S,q.endpointUrl=N)}P()}catch{z||P()}})}else P();var de=Pe.ref(Pe.cfg,Fa);ht(de,function(ge){Pe.ref(de,ge)})}})),a=fe,T=Tne(t,b,a&&w[g1](),T),U(),w[Fr]=_e;var me=q[xu];if(f=[],f[Tt].apply(f,Ix(Ix([],ne,!1),me,!1)),m=q[hu],be(null),(!p||p[je]===0)&&Yi("No "+hu+" available"),m&&m[je]>1){var Ee=w[Ul]("TeeChannelController");(!Ee||!Ee.plugin)&&Ie(n,1,28,"TeeChannel required")}vne(q,R,n),R=null,r=!0,Y===Ms.ACTIVE&&O()},w.getChannels=function(){var q=[];return p&&Ne(p,function(ne){q[Tt](ne)}),vo(q)},w.track=function(q){s4(w[Gd](),function(){return"AppInsightsCore:track"},function(){q===null&&(he(q),Yi("Invalid telemetry item")),!q[wo]&&Fe(q[wo])&&(he(q),Yi("telemetry name required")),q.iKey=q.iKey||S,q.time=q.time||zl(new Date),q.ver=q.ver||"4.0",!g&&w[Ji]()&&Y===Ms.ACTIVE?le()[Pn](q):Y!==Ms.INACTIVE&&s[je]<=k&&s[Tt](q)},function(){return{item:q}},!q.sync)},w[yx]=le,w[g1]=function(){return a||(a=new NL(t.cfg),w[pne]=a),a},w[$d]=function(q){w.getNotifyMgr()[$d](q)},w[Bd]=function(q){a&&a[Bd](q)},w.getCookieMgr=function(){return u||(u=DL(t.cfg,w[Fr])),u},w.setCookieMgr=function(q){u!==q&&(Ma(u,!1),u=q)},w[Gd]=function(){return l||c||LL()},w.setPerfMgr=function(q){l=q},w.eventCnt=function(){return s[je]},w.releaseQueue=function(){if(r&&s[je]>0){var q=s;s=[],Y===2?Ne(q,function(ne){ne.iKey=ne.iKey||S,le()[Pn](ne)}):Ie(n,2,20,"core init status is not active")}},w.pollInternalLogs=function(q){return x=q||null,A=!1,E&&E[Da](),M(!0)};function P(){z=!0,Fe(S)?(Y=Ms.INACTIVE,Ie(n,1,112,"ikey can't be resolved from promises")):Y=Ms.ACTIVE,O()}o(P,"_setStatus");function O(){r&&(w.releaseQueue(),w.pollInternalLogs())}o(O,"_releaseQueues");function M(q){if((!E||!E[Bl])&&!A){var ne=q||n&&n.queue[je]>0;ne&&(I||(I=!0,ce(t[v0](function(_e){var fe=_e.cfg.diagnosticLogInterval;(!fe||!(fe>0))&&(fe=1e4);var me=!1;E&&(me=E[Bl],E[Da]()),E=PO(Ke,fe),E.unref(),E[Bl]=me}))),E[Bl]=!0)}return E}o(M,"_startLogPoller"),w[A9]=function(){A=!0,E&&E[Da](),Ke()},bu(w,function(){return h},["addTelemetryInitializer"]),w[rs]=function(q,ne,_e){q===void 0&&(q=!0),r||Yi(gne),g&&Yi(WL);var fe={reason:50,isAsync:q,flushComplete:!1},me;q&&!ne&&(me=S0(function(Oe){ne=Oe}));var Ee=rm($e(),w);Ee[h1](function(){b.run(w[Fr]),e4([u,a,n],q,function(){G(),ne&&ne(fe)})},w);function Pe(Oe){fe.flushComplete=Oe,g=!0,y.run(Ee,fe),w[A9](),Ee[Pn](fe)}return o(Pe,"_doUnload"),Ke(),Qe(q,Pe,6,_e)||Pe(!1),me},w[Ul]=xe,w.addPlugin=function(q,ne,_e,fe){if(!q){fe&&fe(!1),W(zL);return}var me=xe(q[C0]);if(me&&!ne){fe&&fe(!1),W("Plugin ["+q[C0]+"] is already loaded!");return}var Ee={reason:16};function Pe(Ye){f[Tt](q),Ee.added=[q],be(Ee),fe&&fe(!0)}if(o(Pe,"_addPlugin"),me){var Oe=[me.plugin],qe={reason:2,isAsync:!!_e};Ge(Oe,qe,function(Ye){Ye?(Ee.removed=Oe,Ee.reason|=32,Pe(!0)):fe&&fe(!1)})}else Pe(!1)},w.updateCfg=function(q,ne){ne===void 0&&(ne=!0);var _e;if(w[Ji]()){_e={reason:1,cfg:t.cfg,oldCfg:S9({},t.cfg),newConfig:S9({},q),merge:ne},q=_e.newConfig;var fe=t.cfg;q[xu]=fe[xu],q[hu]=fe[hu]}t._block(function(me){var Ee=me.cfg;Fv(me,Ee,q,ne),ne||ht(Ee,function(Pe){_0(q,Pe)||me.set(Ee,Pe,Ao)}),me.setDf(Ee,Lv)},!0),t.notify(),_e&&ie(_e)},w.evtNamespace=function(){return _},w.flush=Qe,w.getTraceCtx=function(q){return v||(v=ML()),v},w.setTraceCtx=function(q){v=q||null},w.addUnloadHook=ce,yu(w,"addUnloadCb",function(){return y},"add"),w.onCfgChange=function(q){var ne;return r?ne=is(t.cfg,q,w[Fr]):ne=bne(R,q),Cne(ne)},w.getWParam=function(){return v9()||t.cfg.enableWParam?0:-1};function $(){var q={};K=[];var ne=o(function(_e){_e&&Ne(_e,function(fe){if(fe[C0]&&fe[bx]&&!q[fe.identifier]){var me=fe[C0]+"="+fe[bx];K[Tt](me),q[fe.identifier]=fe}})},"_addPluginVersions");ne(p),m&&Ne(m,function(_e){ne(_e)}),ne(f)}o($,"_setPluginVersions");function G(){r=!1,t=bn({},Lv,w[Fr]),t.cfg[vx]=1,mr(w,"config",{g:o(function(){return t.cfg},"g"),s:o(function(ne){w.updateCfg(ne,!1)},"s")}),mr(w,"pluginVersionStringArr",{g:o(function(){return K||$(),K},"g")}),mr(w,"pluginVersionString",{g:o(function(){return V||(K||$(),V=K.join(";")),V||yt},"g")}),mr(w,"logger",{g:o(function(){return n||(n=new em(t.cfg),t[Fr]=n),n},"g"),s:o(function(ne){t[Fr]=ne,n!==ne&&(Ma(n,!1),n=ne)},"s")}),w[Fr]=new em(t.cfg),j=[];var q=w.config[xu]||[];q.splice(0,q[je]),Pa(q,j),h=new jL,s=[],Ma(a,!1),a=null,l=null,c=null,Ma(u,!1),u=null,d=null,f=[],m=null,p=null,g=!1,x=null,_=Do("AIBaseCore",!0),y=l4(),v=null,S=null,b=f4(),R=[],V=null,K=null,A=!1,E=null,I=!1,Y=0,N=null,k=null,z=!1,D=null}o(G,"_initDefaults");function le(){var q=Ws($e(),t.cfg,w);return q[h1](M),q}o(le,"_createTelCtx");function be(q){var ne=yne(w[Fr],mL,f);d=null,V=null,K=null,p=(m||[])[0]||[],p=a4(Pa(p,ne[hu]));var _e=Pa(a4(ne[Qr]),p);j=vo(_e);var fe=w.config[xu]||[];fe.splice(0,fe[je]),Pa(fe,j);var me=le();p&&p[je]>0&&kv(me[E0](p),_e),kv(me,_e),q&&ie(q)}o(be,"_initPluginChain");function xe(q){var ne=null,_e=null,fe=[];return Ne(j,function(me){if(me[C0]===q&&me!==h)return _e=me,-1;me.getChannel&&fe[Tt](me)}),!_e&&fe[je]>0&&Ne(fe,function(me){if(_e=me.getChannel(q),!_e)return-1}),_e&&(ne={plugin:_e,setEnabled:o(function(me){Ba(_e)[I1]=!me},"setEnabled"),isEnabled:o(function(){var me=Ba(_e);return!me[So]&&!me[I1]},"isEnabled"),remove:o(function(me,Ee){me===void 0&&(me=!0);var Pe=[_e],Oe={reason:1,isAsync:me};Ge(Pe,Oe,function(qe){qe&&be({reason:32,removed:Pe}),Ee&&Ee(qe)})},"remove")}),ne}o(xe,"_getPlugin");function $e(){if(!d){var q=(j||[]).slice();cn(q,h)===-1&&q[Tt](h),d=Yl(a4(q),t.cfg,w)}return d}o($e,"_getPluginChain");function Ge(q,ne,_e){if(q&&q[je]>0){var fe=Yl(q,t.cfg,w),me=rm(fe,w);me[h1](function(){var Ee=!1,Pe=[];Ne(f,function(qe,Ye){qL(qe,q)?Ee=!0:Pe[Tt](qe)}),f=Pe,V=null,K=null;var Oe=[];m&&(Ne(m,function(qe,Ye){var rt=[];Ne(qe,function(nt){qL(nt,q)?Ee=!0:rt[Tt](nt)}),Oe[Tt](rt)}),m=Oe),_e&&_e(Ee),M()}),me[Pn](ne)}else _e(!1)}o(Ge,"_removePlugins");function Ke(){if(n&&n.queue){var q=n.queue.slice(0);n.queue[je]=0,Ne(q,function(ne){var _e={name:x||"InternalMessageId: "+ne[jd],iKey:S,time:zl(new Date),baseType:U1.dataType,baseData:{message:ne[I0]}};w.track(_e)})}}o(Ke,"_flushInternalLogs");function Qe(q,ne,_e,fe){var me=1,Ee=!1,Pe=null;fe=fe||5e3;function Oe(){me--,Ee&&me===0&&(Pe&&Pe[Da](),Pe=null,ne&&ne(Ee),ne=null)}if(o(Oe,"doCallback"),p&&p[je]>0){var qe=le()[E0](p);qe.iterate(function(Ye){if(Ye.flush){me++;var rt=!1;Ye.flush(q,function(){rt=!0,Oe()},_e)||rt||(q&&Pe==null?Pe=Io(function(){Pe=null,Oe()},fe):Oe())}})}return Ee=!0,Oe(),!0}o(Qe,"_flushChannels");function U(){var q;ce(t[v0](function(ne){var _e=ne.cfg.enablePerfMgr;if(_e){var fe=ne.cfg[Mx];(q!==fe||!q)&&(fe||(fe=_ne),rv(ne.cfg,Mx,fe),q=fe,c=null),!l&&!c&&mt(fe)&&(c=fe(w,w[g1]()))}else c=null,q=null}))}o(U,"_initPerfManager");function ie(q){var ne=$1($e(),w);ne[h1](M),(!w._updateHook||w._updateHook(ne,q)!==!0)&&ne[Pn](q)}o(ie,"_doUpdate");function W(q){var ne=w[Fr];ne?(Ie(ne,2,73,q),M()):Yi(q)}o(W,"_logOrThrowError");function he(q){var ne=w[g1]();ne&&ne[ql]([q],2)}o(he,"_notifyInvalidEvent");function ce(q){b.add(q)}o(ce,"_addUnloadHook")})}return o(e,"AppInsightsCore"),e.__ieDyn=1,e}();function W1(e,t){try{if(e&&e!==""){var r=Si().parse(e);if(r&&r[N9]&&r[N9]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[je])return r}}catch(n){Ie(t,1,43,"Cannot parse the response. "+(n[wo]||Ze(n)),{response:e})}return null}o(W1,"parseResponse");var k0="",Ene="NoResponseBody",VL="&"+Ene+"=true",Uv="POST",Bv=function(){function e(){var t=0,r,n,s,a,l,c,u,d,f,m,p,g,h,x;Ir(e,this,function(_,y){var b=!0;z(),_[ka]=function(D,E){s=E,n&&Ie(s,1,28,"Sender is already initialized"),_.SetConfig(D),n=!0},_._getDbgPlgTargets=function(){return[n,a,c,r]},_.SetConfig=function(D){try{if(l=D.senderOnCompleteCallBack||{},c=!!D.disableCredentials,u=D.fetchCredentials,a=!!D.isOneDs,r=!!D.enableSendPromise,f=!!D.disableXhr,m=!!D.disableBeacon,p=!!D.disableBeaconSync,x=D.timeWrapper,h=!!D.addNoResponse,g=!!D.disableFetchKeepAlive,d={sendPOST:Y},a||(b=!1),c){var E=R1();E&&E.protocol&&E.protocol[Us]()==="file:"&&(b=!1)}return!0}catch{}return!1},_.getSyncFetchPayload=function(){return t},_.getSenderInst=function(D,E){return D&&D[je]?R(D,E):null},_.getFallbackInst=function(){return d},_[$l]=function(D,E){z()};function T(D,E){j(E,200,{},D)}o(T,"_onSuccess");function v(D,E){Ie(s,2,26,"Failed to send telemetry.",{message:D}),j(E,400,{})}o(v,"_onError");function S(D){v("No endpoint url is provided for the batch",D)}o(S,"_onNoPayloadUrl");function R(D,E){for(var I=0,A=null,w=0;A==null&&w<D[je];)I=D[w],!f&&I===1?pv()?A=k:Gx()&&(A=Y):I===2&&A1(E)&&(!E||!g)?A=N:I===3&&Gl()&&(E?!p:!m)&&(A=V),w++;return A?{_transport:I,_isSync:E,sendPOST:A}:null}o(R,"_getSenderInterface");function j(D,E,I,A){try{D&&D(E,I,A)}catch{}}o(j,"_doOnComplete");function K(D,E){var I=ts(),A=D[Wd];if(!A)return S(E),!0;A=D[Wd]+(h?VL:k0);var w=D[Wl],P=a?w:new Blob([w],{type:"text/plain;charset=UTF-8"}),O=I.sendBeacon(A,P);return O}o(K,"_doBeaconSend");function V(D,E,I){var A=D[Wl];try{if(A)if(K(D,E))T(k0,E);else{var w=l&&l.beaconOnRetry;w&&mt(w)?w(D,E,K):(d&&d.sendPOST(D,E,!0),Ie(s,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(P){a&&Ua(s,"Failed to send telemetry using sendBeacon API. Ex:"+Ze(P)),j(E,a?0:400,{},k0)}}o(V,"_beaconSender");function Y(D,E,I){var A,w,P,O=D[Tx]||{};!I&&r&&(A=S0(function(le,be){w=le,P=be})),a&&I&&D.disableXhrSync&&(I=!1);var M=D[Wd];if(!M){S(E),w&&w(!1);return}var $=iv(Uv,M,b,!0,I,D[pu]);a||$.setRequestHeader("Content-type","application/json"),Ne(Zo(O),function(le){$.setRequestHeader(le,O[le])}),$.onreadystatechange=function(){a||(G($),$.readyState===4&&w&&w(!0))},$.onload=function(){a&&G($)};function G(le){var be=l&&l.xhrOnComplete,xe=be&&mt(be);if(xe)be(le,E,D);else{var $e=Kd(le);j(E,le[du],P1(le,a),$e)}}return o(G,"_doOnReadyFunc"),$.onerror=function(le){j(E,a?$[du]:400,P1($,a),a?k0:vu($)),P&&P(le)},$.ontimeout=function(){j(E,a?$[du]:500,P1($,a),a?k0:vu($)),w&&w(!1)},$.send(D[Wl]),A}o(Y,"_xhrSender");function N(D,E,I){var A,w=D[Wd],P=D[Wl],O=a?P:new Blob([P],{type:"application/json"}),M,$,G,le=new Headers,be=P[je],xe=!1,$e=!1,Ge=D[Tx]||{},Ke=(A={method:Uv,body:O},A[xv]=!0,A);D.headers&&Zo(D.headers)[je]>0&&(Ne(Zo(Ge),function(W){le.append(W,Ge[W])}),Ke[Tx]=le),u?Ke.credentials=u:b&&a&&(Ke.credentials="include"),I&&(Ke.keepalive=!0,t+=be,a?D._sendReason===2&&(xe=!0,h&&(w+=VL)):xe=!0);var Qe=new Request(w,Ke);try{Qe[xv]=!0}catch{}if(!I&&r&&(M=S0(function(W,he){$=W,G=he})),!w){S(E),$&&$(!1);return}function U(W){j(E,a?0:400,{},a?k0:W)}o(U,"_handleError");function ie(W,he,ce){var q=W[du],ne=l.fetchOnComplete;ne&&mt(ne)?ne(W,E,ce||k0,he):j(E,q,{},ce||k0)}o(ie,"_onFetchComplete");try{Ro(fetch(a?w:Qe,a?Ke:null),function(W){if(I&&(t-=be,be=0),!$e)if($e=!0,W.rejected)U(W.reason&&W.reason[I0]),G&&G(W.reason);else{var he=W[uu];try{!a&&!he.ok?(U(he.statusText),$&&$(!1)):a&&!he.body?(ie(he,null,k0),$&&$(!0)):Ro(he.text(),function(ce){ie(he,D,ce[uu]),$&&$(!0)})}catch(ce){U(Ze(ce)),G&&G(ce)}}})}catch(W){$e||(U(Ze(W)),G&&G(W))}return xe&&!$e&&($e=!0,j(E,200,{}),$&&$(!0)),a&&!$e&&D[pu]>0&&x&&x.set(function(){$e||($e=!0,j(E,500,{}),$&&$(!0))},D[pu]),M}o(N,"_doFetchSender");function k(D,E,I){var A=Xi(),w=new XDomainRequest,P=D[Wl];w.onload=function(){var le=Kd(w),be=l&&l.xdrOnComplete;be&&mt(be)?be(w,E,D):j(E,200,{},le)},w.onerror=function(){j(E,400,{},a?k0:S1(w))},w.ontimeout=function(){j(E,500,{})},w.onprogress=function(){};var O=A&&A.location&&A.location.protocol||"",M=D[Wd];if(!M){S(E);return}if(!a&&M.lastIndexOf(O,0)!==0){var $="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Ie(s,2,40,". "+$),v($,E);return}var G=a?M:M[$s](/^(https?:)/,"");w.open(Uv,G),D[pu]&&(w[pu]=D[pu]),w.send(P),a&&I?x&&x.set(function(){w.send(P)},0):w.send(P)}o(k,"_xdrSender");function z(){t=0,n=!1,r=!1,s=null,a=null,l=null,c=null,u=null,d=null,f=!1,m=!1,p=!1,g=!1,h=!1,x=null}o(z,"_initDefaults")})}return o(e,"SenderPostManager"),e.__ieDyn=1,e}();var QL="on",GL="attachEvent",KL="addEventListener",YL="detachEvent",XL="removeEventListener",$v="events";var qDe=Do("aiEvtPageHide"),HDe=Do("aiEvtPageShow"),Ine=/\.[\.]+/g,wne=/[\.]+$/,Sne=1,d4=Kx("events"),Pne=/^([^.]*)(?:\.(.+)|)/;function JL(e){return e&&e[$s]?e[$s](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,yt):e}o(JL,"_normalizeNamespace");function jv(e,t){if(t){var r=yt;tt(t)?(r=yt,Ne(t,function(s){s=JL(s),s&&(s[0]!=="."&&(s="."+s),r+=s)})):r=JL(t),r&&(r[0]!=="."&&(r="."+r),e=(e||yt)+r)}var n=Pne.exec(e||yt)||[];return{type:n[1],ns:(n[2]||yt).replace(Ine,".").replace(wne,yt)[Bs](".").sort().join(".")}}o(jv,"_getEvtNamespace");function eF(e,t,r){r===void 0&&(r=!0);var n=d4.get(e,$v,{},r),s=n[t];return s||(s=n[t]=[]),s}o(eF,"_getRegisteredEvents");function tF(e,t,r,n){e&&t&&t[Na]&&(e[XL]?e[XL](t[Na],r,n):e[YL]&&e[YL](QL+t[Na],r))}o(tF,"_doDetach");function Rne(e,t,r,n){var s=!1;return e&&t&&t[Na]&&r&&(e[KL]?(e[KL](t[Na],r,n),s=!0):e[GL]&&(e[GL](QL+t[Na],r),s=!0)),s}o(Rne,"_doAttach");function ZL(e,t,r,n){for(var s=t[je];s--;){var a=t[s];a&&(!r.ns||r.ns===a[D9].ns)&&(!n||n(a))&&(tF(e,a[D9],a.handler,a.capture),t[T0](s,1))}}o(ZL,"_doUnregister");function Ane(e,t,r){if(t[Na])ZL(e,eF(e,t[Na]),t,r);else{var n=d4.get(e,$v,{});ht(n,function(s,a){ZL(e,a,t,r)}),Zo(n)[je]===0&&d4.kill(e,$v)}}o(Ane,"_unregisterEvents");function q1(e,t){var r;return t?(tt(t)?r=[e].concat(t):r=[e,t],r=jv("xx",r).ns[Bs](".")):r=e,r}o(q1,"mergeEvtNamespace");function m4(e,t,r,n,s){s===void 0&&(s=!1);var a=!1;if(e)try{var l=jv(t,n);if(a=Rne(e,l,r,s),a&&d4.accept(e)){var c={guid:Sne++,evtName:l,handler:r,capture:s};eF(e,l.type)[Tt](c)}}catch{}return a}o(m4,"eventOn");function Wv(e,t,r,n,s){if(s===void 0&&(s=!1),e)try{var a=jv(t,n),l=!1;Ane(e,a,function(c){return a.ns&&!r||c.handler===r?(l=!0,!0):!1}),l||tF(e,a,r,s)}catch{}}o(Wv,"eventOff");var H1="sampleRate",z1="ProcessLegacy",p4="http.method",Iu="https://dc.services.visualstudio.com",N0="/v2/track",hi="not_specified";var g4=R9({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});var wu="split",pt="length",Su="toLowerCase",Zl="ingestionendpoint",Ql="toString",qv="removeItem",nm="message",rF="count";var V1="stringify",G1="pathname",Pu="match";var xi="name";var ei="properties",_i="measurements",K1="sizeInBytes",Y1="typeName",im="exceptions",Ru="severityLevel",h4="problemGroup",Au="parsedStack",X1="hasFullStack",J1="assembly",O0="fileName",Du="line",om="aiDataContract",ku="duration";function Hv(e,t,r){var n=t[pt],s=nF(e,t);if(s[pt]!==n){for(var a=0,l=s;r[l]!==void 0;)a++,l=Qo(s,0,147)+iF(a);s=l}return s}o(Hv,"dataSanitizeKeyAndAddUniqueness");function nF(e,t){var r;return t&&(t=_r(yn(t)),t[pt]>150&&(r=Qo(t,0,150),Ie(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),r||t}o(nF,"dataSanitizeKey");function Rr(e,t,r){r===void 0&&(r=1024);var n;return t&&(r=r||1024,t=_r(yn(t)),t[pt]>r&&(n=Qo(t,0,r),Ie(e,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),n||t}o(Rr,"dataSanitizeString");function Nu(e,t){return Gv(e,t,2048,66)}o(Nu,"dataSanitizeUrl");function Z1(e,t){var r;return t&&t[pt]>32768&&(r=Qo(t,0,32768),Ie(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}o(Z1,"dataSanitizeMessage");function zv(e,t){var r;if(t){var n=""+t;n[pt]>32768&&(r=Qo(n,0,32768),Ie(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return r||t}o(zv,"dataSanitizeException");function Pi(e,t){if(t){var r={};ht(t,function(n,s){if(pi(s)&&Vl())try{s=Si()[V1](s)}catch(a){Ie(e,2,49,"custom property is not valid",{exception:a},!0)}s=Rr(e,s,8192),n=Hv(e,n,r),r[n]=s}),t=r}return t}o(Pi,"dataSanitizeProperties");function Ri(e,t){if(t){var r={};ht(t,function(n,s){n=Hv(e,n,r),r[n]=s}),t=r}return t}o(Ri,"dataSanitizeMeasurements");function Vv(e,t){return t&&Gv(e,t,128,69)[Ql]()}o(Vv,"dataSanitizeId");function Gv(e,t,r,n){var s;return t&&(t=_r(yn(t)),t[pt]>r&&(s=Qo(t,0,r),Ie(e,2,n,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0))),s||t}o(Gv,"dataSanitizeInput");function iF(e){var t="00"+e;return xO(t,t[pt]-3)}o(iF,"dsPadNumber");var oF=Co()||{},sF=0,Dne=[null,null,null,null,null];function aF(e){var t=sF,r=Dne,n=r[t];return oF.createElement?r[t]||(n=r[t]=oF.createElement("a")):n={host:kne(e,!0)},n.href=e,t++,t>=r[pt]&&(t=0),sF=t,n}o(aF,"urlParseUrl");function kne(e,t){var r=lF(e,t)||"";if(r){var n=r[Pu](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[pt]>3&&Jt(n[2])&&n[2][pt]>0)return n[2]+(n[3]||"")}return r}o(kne,"urlParseHost");function lF(e,t){var r=null;if(e){var n=e[Pu](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[pt]>2&&Jt(n[2])&&n[2][pt]>0&&(r=n[2]||"",t&&n[pt]>2)){var s=(n[1]||"")[Su](),a=n[3]||"";(s==="http"&&a===":80"||s==="https"&&a===":443")&&(a=""),r+=a}}return r}o(lF,"urlParseFullHost");var Nne=[Iu+N0,"https://breeze.aimon.applicationinsights.io"+N0,"https://dc-int.services.visualstudio.com"+N0];function x4(e){return cn(Nne,e[Su]())!==-1}o(x4,"isInternalApplicationInsightsEndpoint");function cF(e,t,r,n){var s,a=n,l=n;if(t&&t[pt]>0){var c=aF(t);if(s=c.host,!a)if(c[G1]!=null){var u=c.pathname[pt]===0?"/":c[G1];u.charAt(0)!=="/"&&(u="/"+u),l=c[G1],a=Rr(e,r?r+" "+u:u)}else a=Rr(e,t)}else s=n,a=n;return{target:s,name:a,data:l}}o(cF,"AjaxHelperParseDependencyPath");var _4=cu({LocalStorage:0,SessionStorage:1}),xNe=cu({AI:0,AI_AND_W3C:1,W3C:2}),_Ne=cu({Normal:1,Critical:2});var sm=void 0,uF="";function fF(e){try{if(Fe(To()))return null;var t=new Date()[Ql](),r=Lr(e===_4.LocalStorage?"localStorage":"sessionStorage"),n=uF+t;r.setItem(n,t);var s=r.getItem(n)!==t;if(r[qv](n),!s)return r}catch{}return null}o(fF,"_getVerifiedStorageObject");function Kv(){return y4()?fF(_4.SessionStorage):null}o(Kv,"_getSessionStorageObject");function Yv(e){uF=e||""}o(Yv,"utlSetStoragePrefix");function y4(e){return(e||sm===void 0)&&(sm=!!fF(_4.SessionStorage)),sm}o(y4,"utlCanUseSessionStorage");function Xv(e,t){var r=Kv();if(r!==null)try{return r.getItem(t)}catch(n){sm=!1,Ie(e,2,2,"Browser failed read of session storage. "+un(n),{exception:Ze(n)})}return null}o(Xv,"utlGetSessionStorage");function Jv(e,t,r){var n=Kv();if(n!==null)try{return n.setItem(t,r),!0}catch(s){sm=!1,Ie(e,2,4,"Browser failed write to session storage. "+un(s),{exception:Ze(s)})}return!1}o(Jv,"utlSetSessionStorage");function Zv(e,t){var r=Kv();if(r!==null)try{return r[qv](t),!0}catch(n){sm=!1,Ie(e,2,6,"Browser failed removal of session storage item. "+un(n),{exception:Ze(n)})}return!1}o(Zv,"utlRemoveSessionStorage");var One=";",Lne="=";function Q1(e){if(!e)return{};var t=e[wu](One),r=E9(t,function(s,a){var l=a[wu](Lne);if(l[pt]===2){var c=l[0][Su](),u=l[1];s[c]=u}return s},{});if(Zo(r)[pt]>0){if(r.endpointsuffix){var n=r.location?r.location+".":"";r[Zl]=r[Zl]||"https://"+n+"dc."+r.endpointsuffix}r[Zl]=r[Zl]||Iu,p1(r[Zl],"/")&&(r[Zl]=r[Zl].slice(0,-1))}return r}o(Q1,"parseConnectionString");var Qv=function(){function e(t,r,n){var s=this,a=this;a.ver=1,a.sampleRate=100,a.tags={},a[xi]=Rr(t,n)||hi,a.data=r,a.time=zl(new Date),a[om]={time:1,iKey:1,name:1,sampleRate:o(function(){return s.sampleRate===100?4:1},"sampleRate"),tags:1,data:1}}return o(e,"Envelope"),e}();var $a=function(){function e(t,r,n,s){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[xi]=Rr(t,r)||hi,a[ei]=Pi(t,n),a[_i]=Ri(t,s)}return o(e,"Event"),e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}();var Fne=58,Mne=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,Une=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,Bne=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,$ne=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,jne=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,Wne=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,qne=/([^\(\s\n]+):([0-9]+)$/,dF="<no_method>",am="error",ss="stack",tT="stackDetails",mF="errorSrc",rT="message",xF="description",pF=[{re:Une,len:5,m:1,fn:2,ln:3,col:4},{chk:zne,pre:Hne,re:Bne,len:4,m:1,fn:2,ln:3},{re:$ne,len:3,m:1,fn:2,hdl:hF},{re:jne,len:2,fn:1,hdl:hF}];function Hne(e){return e.replace(/(\(anonymous\))/,"<anonymous>")}o(Hne,"_scrubAnonymous");function zne(e){return b0(e,"[native")<0}o(zne,"_ignoreNative");function nT(e,t){var r=e;return r&&!Jt(r)&&(JSON&&JSON[V1]?(r=JSON[V1](e),t&&(!r||r==="{}")&&(mt(e[Ql])?r=e[Ql]():r=""+e)):r=""+e+" - (Missing JSON.stringify)"),r||""}o(nT,"_stringify");function _F(e,t){var r=e;return e&&(r&&!Jt(r)&&(r=e[rT]||e[xF]||r),r&&!Jt(r)&&(r=nT(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&b0(r||"",t)===-1&&(r=t+": "+r),r||""}o(_F,"_formatMessage");function Vne(e){try{if(pi(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}o(Vne,"_isExceptionDetailsInternal");function Gne(e){try{if(pi(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}o(Gne,"_isExceptionInternal");function gF(e){return e&&e.src&&Jt(e.src)&&e.obj&&tt(e.obj)}o(gF,"_isStackDetails");function Ou(e){var t=e||"";Jt(t)||(Jt(t[ss])?t=t[ss]:t=""+t);var r=t[wu](`
[60] Fix | Delete
`);return{src:t,obj:r}}o(Ou,"_convertStackObj");function Kne(e){for(var t=[],r=e[wu](`
[61] Fix | Delete
`),n=0;n<r[pt];n++){var s=r[n];r[n+1]&&(s+="@"+r[n+1],n++),t.push(s)}return{src:e,obj:t}}o(Kne,"_getOperaStack");function yF(e){var t=null;if(e)try{if(e[ss])t=Ou(e[ss]);else if(e[am]&&e[am][ss])t=Ou(e[am][ss]);else if(e.exception&&e.exception[ss])t=Ou(e.exception[ss]);else if(gF(e))t=e;else if(gF(e[tT]))t=e[tT];else if(Xi()&&Xi().opera&&e[rT])t=Kne(e[nm]);else if(e.reason&&e.reason[ss])t=Ou(e.reason[ss]);else if(Jt(e))t=Ou(e);else{var r=e[rT]||e[xF]||"";Jt(e[mF])&&(r&&(r+=`
[62] Fix | Delete
`),r+=" from "+e[mF]),r&&(t=Ou(r))}}catch(n){t=Ou(n)}return t||{src:"",obj:null}}o(yF,"_getStackFromErrorObj");function Yne(e){var t="";return e&&(e.obj?t=e.obj.join(`
[63] Fix | Delete
`):t=e.src||""),t}o(Yne,"_formatStackTrace");function Xne(e){var t,r=e.obj;if(r&&r[pt]>0){t=[];var n=0,s=!1,a=0;Ne(r,function(x){if(s||eie(x)){var _=yn(x);s=!0;var y=tie(_,n);y&&(a+=y[K1],t.push(y),n++)}});var l=32*1024;if(a>l)for(var c=0,u=t[pt]-1,d=0,f=c,m=u;c<u;){var p=t[c][K1],g=t[u][K1];if(d+=p+g,d>l){var h=m-f+1;t.splice(f,h);break}f=c,m=u,c++,u--}}return t}o(Xne,"_parseStack");function b4(e){var t="";if(e&&(t=e.typeName||e[xi]||"",!t))try{var r=/function (.{1,200})\(/,n=r.exec(e.constructor[Ql]());t=n&&n[pt]>1?n[1]:""}catch{}return t}o(b4,"_getErrorType");function eT(e){if(e)try{if(!Jt(e)){var t=b4(e),r=nT(e,!1);return(!r||r==="{}")&&(e[am]&&(e=e[am],t=b4(e)),r=nT(e,!0)),b0(r,t)!==0&&t!=="String"?t+":"+r:r}}catch{}return""+(e||"")}o(eT,"_formatErrorCode");var Lu=function(){function e(t,r,n,s,a,l){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var c=this;c.ver=2,Gne(r)?(c[im]=r[im]||[],c[ei]=r[ei],c[_i]=r[_i],r[Ru]&&(c[Ru]=r[Ru]),r.id&&(c.id=r.id,r[ei].id=r.id),r[h4]&&(c[h4]=r[h4]),Fe(r.isManual)||(c.isManual=r.isManual)):(n||(n={}),l&&(n.id=l),c[im]=[bF(t,r,n)],c[ei]=Pi(t,n),c[_i]=Ri(t,s),a&&(c[Ru]=a),l&&(c.id=l))}return o(e,"Exception"),e.CreateAutoException=function(t,r,n,s,a,l,c,u){var d=b4(a||l||t);return{message:_F(t,d),url:r,lineNumber:n,columnNumber:s,error:eT(a||l||t),evt:eT(l||t),typeName:d,stackDetails:yF(c||a||l),errorSrc:u}},e.CreateFromInterface=function(t,r,n,s){var a=r[im]&&lu(r[im],function(c){return Qne(t,c)}),l=new e(t,ns(ns({},r),{exceptions:a}),n,s);return l},e.prototype.toInterface=function(){var t=this,r=t.exceptions,n=t.properties,s=t.measurements,a=t.severityLevel,l=t.problemGroup,c=t.id,u=t.isManual,d=r instanceof Array&&lu(r,function(f){return f.toInterface()})||void 0;return{ver:"4.0",exceptions:d,severityLevel:a,properties:n,measurements:s,problemGroup:l,id:c,isManual:u}},e.CreateSimpleException=function(t,r,n,s,a,l){var c;return{exceptions:[(c={},c[X1]=!0,c.message=t,c.stack=a,c.typeName=r,c)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=eT,e}();var Jne=vo({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function Zne(){var e=this,t=tt(e[Au])&&lu(e[Au],function(n){return nie(n)}),r={id:e.id,outerId:e.outerId,typeName:e[Y1],message:e[nm],hasFullStack:e[X1],stack:e[ss],parsedStack:t||void 0};return r}o(Zne,"_toInterface");function bF(e,t,r){var n,s,a,l,c,u,d,f;if(Vne(t))l=t[Y1],c=t[nm],d=t[ss],f=t[Au]||[],u=t[X1];else{var m=t,p=m&&m.evt;d1(m)||(m=m[am]||p||m),l=Rr(e,b4(m))||hi,c=Z1(e,_F(t||m,l))||hi;var g=t[tT]||yF(t);f=Xne(g),tt(f)&&lu(f,function(h){h[J1]=Rr(e,h[J1]),h[O0]=Rr(e,h[O0])}),d=zv(e,Yne(g)),u=tt(f)&&f[pt]>0,r&&(r[Y1]=r[Y1]||l)}return n={},n[om]=Jne,n.id=s,n.outerId=a,n.typeName=l,n.message=c,n[X1]=u,n.stack=d,n.parsedStack=f,n.toInterface=Zne,n}o(bF,"_createExceptionDetails");function Qne(e,t){var r=tt(t[Au])&&lu(t[Au],function(s){return rie(s)})||t[Au],n=bF(e,ns(ns({},t),{parsedStack:r}));return n}o(Qne,"_createExDetailsFromInterface");function vF(e,t){var r=t[Pu](Wne);if(r&&r[pt]>=4)e[O0]=r[1],e[Du]=parseInt(r[2]);else{var n=t[Pu](qne);n&&n[pt]>=3?(e[O0]=n[1],e[Du]=parseInt(n[2])):e[O0]=t}}o(vF,"_parseFilename");function hF(e,t,r){var n=e[O0];t.fn&&r&&r[pt]>t.fn&&(t.ln&&r[pt]>t.ln?(n=_r(r[t.fn]||""),e[Du]=parseInt(_r(r[t.ln]||""))||0):n=_r(r[t.fn]||"")),n&&vF(e,n)}o(hF,"_handleFilename");function eie(e){var t=!1;if(e&&Jt(e)){var r=_r(e);r&&(t=Mne.test(r))}return t}o(eie,"_isStackFrame");var TF=vo({level:1,method:1,assembly:0,fileName:0,line:0});function tie(e,t){var r,n;if(e&&Jt(e)&&_r(e)){n=(r={},r[om]=TF,r.level=t,r.assembly=_r(e),r.method=dF,r.fileName="",r.line=0,r.sizeInBytes=0,r);for(var s=0;s<pF[pt];){var a=pF[s];if(a.chk&&!a.chk(e))break;a.pre&&(e=a.pre(e));var l=e[Pu](a.re);if(l&&l[pt]>=a.len){a.m&&(n.method=_r(l[a.m]||dF)),a.hdl?a.hdl(n,a,l):a.fn&&(a.ln?(n[O0]=_r(l[a.fn]||""),n[Du]=parseInt(_r(l[a.ln]||""))||0):vF(n,l[a.fn]||""));break}s++}}return CF(n)}o(tie,"_extractStackFrame");function rie(e){var t,r=(t={},t[om]=TF,t.level=e.level,t.method=e.method,t.assembly=e[J1],t.fileName=e[O0],t.line=e[Du],t.sizeInBytes=0,t);return CF(r)}o(rie,"_stackFrameFromInterface");function CF(e){var t=Fne;return e&&(t+=e.method[pt],t+=e.assembly[pt],t+=e.fileName[pt],t+=e.level.toString()[pt],t+=e.line.toString()[pt],e[K1]=t),e}o(CF,"_populateFrameSizeInBytes");function nie(e){return{level:e.level,method:e.method,assembly:e[J1],fileName:e[O0],line:e[Du]}}o(nie,"_parsedFrameToInterface");var EF=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return o(e,"DataPoint"),e}();var ja=function(){function e(t,r,n,s,a,l,c,u,d){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var m=new EF;m[rF]=s>0?s:void 0,m.max=isNaN(l)||l===null?void 0:l,m.min=isNaN(a)||a===null?void 0:a,m[xi]=Rr(t,r)||hi,m.value=n,m.stdDev=isNaN(c)||c===null?void 0:c,f.metrics=[m],f[ei]=Pi(t,u),f[_i]=Ri(t,d)}return o(e,"Metric"),e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();var eg="";function v4(e){(isNaN(e)||e<0)&&(e=0),e=wO(e);var t=eg+e%1e3,r=eg+Ra(e/1e3)%60,n=eg+Ra(e/(1e3*60))%60,s=eg+Ra(e/(1e3*60*60))%24,a=Ra(e/(1e3*60*60*24));return t=t[pt]===1?"00"+t:t[pt]===2?"0"+t:t,r=r[pt]<2?"0"+r:r,n=n[pt]<2?"0"+n:n,s=s[pt]<2?"0"+s:s,(a>0?a+".":eg)+s+":"+n+":"+r+"."+t}o(v4,"msToTimeSpan");var Fu=function(){function e(t,r,n,s,a,l,c){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=Vv(t,c),u.url=Nu(t,n),u[xi]=Rr(t,r)||hi,isNaN(s)||(u[ku]=v4(s)),u[ei]=Pi(t,a),u[_i]=Ri(t,l)}return o(e,"PageView"),e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}();var Mu=function(){function e(t,r,n,s,a,l,c,u,d,f,m,p){d===void 0&&(d="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var g=this;g.ver=2,g.id=r,g[ku]=v4(a),g.success=l,g.resultCode=c+"",g.type=Rr(t,d);var h=cF(t,n,u,s);g.data=Nu(t,s)||h.data,g.target=Rr(t,h.target),f&&(g.target="".concat(g.target," | ").concat(f)),g[xi]=Rr(t,h[xi]),g[ei]=Pi(t,m),g[_i]=Ri(t,p)}return o(e,"RemoteDependencyData"),e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();var Uu=function(){function e(t,r,n,s,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var l=this;l.ver=2,r=r||hi,l[nm]=Z1(t,r),l[ei]=Pi(t,s),l[_i]=Ri(t,a),n&&(l[Ru]=n)}return o(e,"Trace"),e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}();var Bu=function(){function e(t,r,n,s,a,l,c){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=Nu(t,n),u[xi]=Rr(t,r)||hi,u[ei]=Pi(t,a),u[_i]=Ri(t,l),c&&(u.domProcessing=c.domProcessing,u[ku]=c[ku],u.networkConnect=c.networkConnect,u.perfTotal=c.perfTotal,u.receivedResponse=c.receivedResponse,u.sentRequest=c.sentRequest)}return o(e,"PageViewPerformance"),e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();var Wa=function(){function e(t,r){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=r}return o(e,"Data"),e}();function tc(e){var t="ai."+e+".";return function(r){return t+r}}o(tc,"_aiNameFunc");var tg=tc("application"),An=tc("device"),T4=tc("location"),lm=tc("operation"),iT=tc("session"),ec=tc("user"),$u=tc("cloud"),rg=tc("internal"),ng=function(e){w0(t,e);function t(){return e.call(this)||this}return o(t,"ContextTagKeys"),t}(nv({applicationVersion:tg("ver"),applicationBuild:tg("build"),applicationTypeId:tg("typeId"),applicationId:tg("applicationId"),applicationLayer:tg("layer"),deviceId:An("id"),deviceIp:An("ip"),deviceLanguage:An("language"),deviceLocale:An("locale"),deviceModel:An("model"),deviceFriendlyName:An("friendlyName"),deviceNetwork:An("network"),deviceNetworkName:An("networkName"),deviceOEMName:An("oemName"),deviceOS:An("os"),deviceOSVersion:An("osVersion"),deviceRoleInstance:An("roleInstance"),deviceRoleName:An("roleName"),deviceScreenResolution:An("screenResolution"),deviceType:An("type"),deviceMachineName:An("machineName"),deviceVMName:An("vmName"),deviceBrowser:An("browser"),deviceBrowserVersion:An("browserVersion"),locationIp:T4("ip"),locationCountry:T4("country"),locationProvince:T4("province"),locationCity:T4("city"),operationId:lm("id"),operationName:lm("name"),operationParentId:lm("parentId"),operationRootId:lm("rootId"),operationSyntheticSource:lm("syntheticSource"),operationCorrelationVector:lm("correlationVector"),sessionId:iT("id"),sessionIsFirst:iT("isFirst"),sessionIsNew:iT("isNew"),userAccountAcquisitionDate:ec("accountAcquisitionDate"),userAccountId:ec("accountId"),userAgent:ec("userAgent"),userId:ec("id"),userStoreRegion:ec("storeRegion"),userAuthUserId:ec("authUserId"),userAnonymousUserAcquisitionDate:ec("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ec("authUserAcquisitionDate"),cloudName:$u("name"),cloudRole:$u("role"),cloudRoleVer:$u("roleVer"),cloudRoleInstance:$u("roleInstance"),cloudEnvironment:$u("environment"),cloudLocation:$u("location"),cloudDeploymentUnit:$u("deploymentUnit"),internalNodeName:rg("nodeName"),internalSdkVersion:rg("sdkVersion"),internalAgentVersion:rg("agentVersion"),internalSnippet:rg("snippet"),internalSdkSrc:rg("sdkSrc")}));var vn=new ng;function IF(e,t){Wv(e,null,null,t)}o(IF,"_disableEvents");function oT(e){var t=Co(),r=ts(),n=!1,s=[],a=1;r&&!Fe(r.onLine)&&!r.onLine&&(a=2);var l=0,c=p(),u=q1(Do("OfflineListener"),e);try{if(f(Xi())&&(n=!0),t){var d=t.body||t;d.ononline&&f(d)&&(n=!0)}}catch{n=!1}function f(T){var v=!1;return T&&(v=m4(T,"online",x,u),v&&m4(T,"offline",_,u)),v}o(f,"_enableEvents");function m(){return c}o(m,"_isOnline");function p(){return!(l===2||a===2)}o(p,"calCurrentState");function g(){var T=p();c!==T&&(c=T,Ne(s,function(v){var S={isOnline:c,rState:a,uState:l};try{v(S)}catch{}}))}o(g,"listnerNoticeCheck");function h(T){l=T,g()}o(h,"setOnlineState");function x(){a=1,g()}o(x,"_setOnline");function _(){a=2,g()}o(_,"_setOffline");function y(){var T=Xi();if(T&&n){if(IF(T,u),t){var v=t.body||t;lr(v.ononline)||IF(v,u)}n=!1}}o(y,"_unload");function b(T){return s.push(T),{rm:o(function(){var v=s.indexOf(T);if(v>-1)return s.splice(v,1)},"rm")}}return o(b,"addListener"),{isOnline:m,isListening:o(function(){return n},"isListening"),unload:y,addListener:b,setOnlineState:h}}o(oT,"createOfflineListener");var C4="AppInsightsChannelPlugin";var rc="duration";var Tn="tags",E4="deviceType",eo="data",L0="name",ju="traceID",xt="length",nc="stringify",ic="measurements",as="dataType",oc="envelopeType",qa="toString",Ha="enqueue",za="count",ls="push",ig="emitLineDelimitedJson",sc="clear",cm="markAsSent",Wu="clearSent",og="bufferOverride",um="BUFFER_KEY",Va="SENT_BUFFER_KEY",ac="concat",fm="MAX_BUFFER_SIZE",dm="triggerSend",ti="diagLog",I4="initialize",mm="_sender",pm="endpointUrl",gm="instrumentationKey",w4="customHeaders",sT="maxBatchSizeInBytes",S4="onunloadDisableBeacon",P4="isBeaconApiDisabled",aT="alwaysUseXhrOverride",lT="enableSessionStorageBuffer",qs="_buffer",cT="onunloadDisableFetch",uT="disableSendBeaconSplit",sg="getSenderInst",lc="_onError",R4="_onPartialSuccess",ag="_onSuccess",A4="itemsReceived",D4="itemsAccepted",k4="baseType",hm="sampleRate",wF="getHashCodeScore";var fT="baseType",qr="baseData",jn="properties",SF="true";function fn(e,t,r){return R0(e,t,r,Fl)}o(fn,"_setValueIf");function iie(e,t,r){var n=r[Tn]=r[Tn]||{},s=t.ext=t.ext||{},a=t[Tn]=t[Tn]||[],l=s.user;l&&(fn(n,vn.userAuthUserId,l.authId),fn(n,vn.userId,l.id||l.localId));var c=s.app;c&&fn(n,vn.sessionId,c.sesId);var u=s.device;u&&(fn(n,vn.deviceId,u.id||u.localId),fn(n,vn[E4],u.deviceClass),fn(n,vn.deviceIp,u.ip),fn(n,vn.deviceModel,u.model),fn(n,vn[E4],u[E4]));var d=t.ext.web;if(d){fn(n,vn.deviceLanguage,d.browserLang),fn(n,vn.deviceBrowserVersion,d.browserVer),fn(n,vn.deviceBrowser,d.browser);var f=r[eo]=r[eo]||{},m=f[qr]=f[qr]||{},p=m[jn]=m[jn]||{};fn(p,"domain",d.domain),fn(p,"isManual",d.isManual?SF:null),fn(p,"screenRes",d.screenRes),fn(p,"userConsent",d.userConsent?SF:null)}var g=s.os;g&&(fn(n,vn.deviceOS,g[L0]),fn(n,vn.deviceOSVersion,g.osVer));var h=s.trace;h&&(fn(n,vn.operationParentId,h.parentID),fn(n,vn.operationName,Rr(e,h[L0])),fn(n,vn.operationId,h[ju]));for(var x={},_=a[xt]-1;_>=0;_--){var y=a[_];ht(y,function(T,v){x[T]=v}),a.splice(_,1)}ht(a,function(T,v){x[T]=v});var b=ns(ns({},n),x);b[vn.internalSdkVersion]||(b[vn.internalSdkVersion]=Rr(e,"javascript:".concat(oie.Version),64)),r[Tn]=Hx(b)}o(iie,"_extractPartAExtensions");function cc(e,t,r){Fe(e)||ht(e,function(n,s){Sa(s)?r[n]=s:Jt(s)?t[n]=s:Vl()&&(t[n]=Si()[nc](s))})}o(cc,"_extractPropsAndMeasurements");function qu(e,t){Fe(e)||ht(e,function(r,n){e[r]=n||t})}o(qu,"_convertPropsUndefinedToCustomDefinedValue");function Hu(e,t,r,n){var s=new Qv(e,n,t);fn(s,"sampleRate",r[H1]),(r[qr]||{}).startTime&&(s.time=zl(r[qr].startTime)),s.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return s[L0]=s[L0].replace("{0}",a),iie(e,r,s),r[Tn]=r[Tn]||[],Hx(s)}o(Hu,"_createEnvelope");function zu(e,t){Fe(t[qr])&&Ie(e,1,46,"telemetryItem.baseData cannot be null.")}o(zu,"EnvelopeCreatorInit");var oie={Version:"3.3.6"};function PF(e,t,r){zu(e,t);var n=t[qr][ic]||{},s=t[qr][jn]||{};cc(t[eo],s,n),Fe(r)||qu(s,r);var a=t[qr];if(Fe(a))return Ua(e,"Invalid input for dependency data"),null;var l=a[jn]&&a[jn][p4]?a[jn][p4]:"GET",c=new Mu(e,a.id,a.target,a[L0],a[rc],a.success,a.responseCode,l,a.type,a.correlationContext,s,n),u=new Wa(Mu[as],c);return Hu(e,Mu[oc],t,u)}o(PF,"DependencyEnvelopeCreator");function dT(e,t,r){zu(e,t);var n={},s={};t[fT]!==$a[as]&&(n.baseTypeSource=t[fT]),t[fT]===$a[as]?(n=t[qr][jn]||{},s=t[qr][ic]||{}):t[qr]&&cc(t[qr],n,s),cc(t[eo],n,s),Fe(r)||qu(n,r);var a=t[qr][L0],l=new $a(e,a,n,s),c=new Wa($a[as],l);return Hu(e,$a[oc],t,c)}o(dT,"EventEnvelopeCreator");function RF(e,t,r){zu(e,t);var n=t[qr][ic]||{},s=t[qr][jn]||{};cc(t[eo],s,n),Fe(r)||qu(s,r);var a=t[qr],l=Lu.CreateFromInterface(e,a,s,n),c=new Wa(Lu[as],l);return Hu(e,Lu[oc],t,c)}o(RF,"ExceptionEnvelopeCreator");function AF(e,t,r){zu(e,t);var n=t[qr],s=n[jn]||{},a=n[ic]||{};cc(t[eo],s,a),Fe(r)||qu(s,r);var l=new ja(e,n[L0],n.average,n.sampleCount,n.min,n.max,n.stdDev,s,a),c=new Wa(ja[as],l);return Hu(e,ja[oc],t,c)}o(AF,"MetricEnvelopeCreator");function DF(e,t,r){zu(e,t);var n,s=t[qr];!Fe(s)&&!Fe(s[jn])&&!Fe(s[jn][rc])?(n=s[jn][rc],delete s[jn][rc]):!Fe(t[eo])&&!Fe(t[eo][rc])&&(n=t[eo][rc],delete t[eo][rc]);var a=t[qr],l;((t.ext||{}).trace||{})[ju]&&(l=t.ext.trace[ju]);var c=a.id||l,u=a[L0],d=a.uri,f=a[jn]||{},m=a[ic]||{};if(Fe(a.refUri)||(f.refUri=a.refUri),Fe(a.pageType)||(f.pageType=a.pageType),Fe(a.isLoggedIn)||(f.isLoggedIn=a.isLoggedIn[qa]()),!Fe(a[jn])){var p=a[jn];ht(p,function(x,_){f[x]=_})}cc(t[eo],f,m),Fe(r)||qu(f,r);var g=new Fu(e,u,d,n,f,m,c),h=new Wa(Fu[as],g);return Hu(e,Fu[oc],t,h)}o(DF,"PageViewEnvelopeCreator");function kF(e,t,r){zu(e,t);var n=t[qr],s=n[L0],a=n.uri||n.url,l=n[jn]||{},c=n[ic]||{};cc(t[eo],l,c),Fe(r)||qu(l,r);var u=new Bu(e,s,a,void 0,l,c,n),d=new Wa(Bu[as],u);return Hu(e,Bu[oc],t,d)}o(kF,"PageViewPerformanceEnvelopeCreator");function NF(e,t,r){zu(e,t);var n=t[qr].message,s=t[qr].severityLevel,a=t[qr][jn]||{},l=t[qr][ic]||{};cc(t[eo],a,l),Fe(r)||qu(a,r);var c=new Uu(e,n,s,a,l),u=new Wa(Uu[as],c);return Hu(e,Uu[oc],t,u)}o(NF,"TraceEnvelopeCreator");var OF=function(){function e(t,r){var n=[],s=!1,a=r.maxRetryCnt;this._get=function(){return n},this._set=function(l){return n=l,n},Ir(e,this,function(l){l[Ha]=function(c){if(l[za]()>=r.eventsLimitInMem){s||(Ie(t,2,105,"Maximum in-memory buffer size reached: "+l[za](),!0),s=!0);return}c.cnt=c.cnt||0,!(!Fe(a)&&c.cnt>a)&&n[ls](c)},l[za]=function(){return n[xt]},l.size=function(){for(var c=n[xt],u=0;u<n[xt];u++)c+=n[u].item[xt];return r[ig]||(c+=2),c},l[sc]=function(){n=[],s=!1},l.getItems=function(){return n.slice(0)},l.batchPayloads=function(c){if(c&&c[xt]>0){var u=[];Ne(c,function(f){u[ls](f.item)});var d=r[ig]?u.join(`
[64] Fix | Delete
`):"["+u.join(",")+"]";return d}return null},l.createNew=function(c,u,d){var f=n.slice(0);c=c||t,u=u||{};var m=d?new mT(c,u):new N4(c,u);return Ne(f,function(p){m[Ha](p)}),m}})}return o(e,"BaseSendBuffer"),e.__ieDyn=1,e}(),N4=function(e){w0(t,e);function t(r,n){var s=e.call(this,r,n)||this;return Ir(t,s,function(a,l){a[cm]=function(c){l[sc]()},a[Wu]=function(c){}}),s}return o(t,"ArraySendBuffer"),t.__ieDyn=1,t}(OF);var sie=["AI_buffer","AI_sentBuffer"],mT=function(e){w0(t,e);function t(n,s){var a=e.call(this,n,s)||this,l=!1,c=s?.namePrefix,u=s[og]||{getItem:Xv,setItem:Jv},d=u.getItem,f=u.setItem,m=s.maxRetryCnt;return Ir(t,a,function(p,g){var h=v(t[um]),x=v(t[Va]),_=j(),y=x[ac](_),b=p._set(h[ac](y));b[xt]>t[fm]&&(b[xt]=t[fm]),R(t[Va],[]),R(t[um],b),p[Ha]=function(V){if(p[za]()>=t[fm]){l||(Ie(n,2,67,"Maximum buffer size reached: "+p[za](),!0),l=!0);return}V.cnt=V.cnt||0,!(!Fe(m)&&V.cnt>m)&&(g[Ha](V),R(t[um],p._get()))},p[sc]=function(){g[sc](),R(t[um],p._get()),R(t[Va],[]),l=!1},p[cm]=function(V){R(t[um],p._set(T(V,p._get())));var Y=v(t[Va]);Y instanceof Array&&V instanceof Array&&(Y=Y[ac](V),Y[xt]>t[fm]&&(Ie(n,1,67,"Sent buffer reached its maximum size: "+Y[xt],!0),Y[xt]=t[fm]),R(t[Va],Y))},p[Wu]=function(V){var Y=v(t[Va]);Y=T(V,Y),R(t[Va],Y)},p.createNew=function(V,Y,N){N=!!N;var k=p._get().slice(0),z=v(t[Va]).slice(0);V=V||n,Y=Y||{},p[sc]();var D=N?new t(V,Y):new N4(V,Y);return Ne(k,function(E){D[Ha](E)}),N&&D[cm](z),D};function T(V,Y){var N=[],k=[];return Ne(V,function(z){k[ls](z.item)}),Ne(Y,function(z){!mt(z)&&cn(k,z.item)===-1&&N[ls](z)}),N}o(T,"_removePayloadsFromBuffer");function v(V){var Y=V;return Y=c?c+"_"+Y:Y,S(Y)}o(v,"_getBuffer");function S(V){try{var Y=d(n,V);if(Y){var N=Si().parse(Y);if(Jt(N)&&(N=Si().parse(N)),N&&tt(N))return N}}catch(k){Ie(n,1,42," storage key: "+V+", "+un(k),{exception:Ze(k)})}return[]}o(S,"_getBufferBase");function R(V,Y){var N=V;try{N=c?c+"_"+N:N;var k=JSON[nc](Y);f(n,N,k)}catch(z){f(n,N,JSON[nc]([])),Ie(n,2,41," storage key: "+N+", "+un(z)+". Buffer cleared",{exception:Ze(z)})}}o(R,"_setBuffer");function j(){var V=[];try{return Ne(sie,function(Y){var N=K(Y);if(V=V[ac](N),c){var k=c+"_"+Y,z=K(k);V=V[ac](z)}}),V}catch(Y){Ie(n,2,41,"Transfer events from previous buffers: "+un(Y)+". previous Buffer items can not be removed",{exception:Ze(Y)})}return[]}o(j,"_getPreviousEvents");function K(V){try{var Y=S(V),N=[];return Ne(Y,function(k){var z={item:k,cnt:0};N[ls](z)}),Zv(n,V),N}catch{}return[]}o(K,"_getItemsFromPreviousKey")}),a}o(t,"SessionStorageSendBuffer");var r;return r=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+r.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(OF);var LF=function(){function e(t){Ir(e,this,function(r){r.serialize=function(l){var c=n(l,"root");try{return Si()[nc](c)}catch(u){Ie(t,1,48,u&&mt(u[qa])?u[qa]():"Error serializing object",null,!0)}};function n(l,c){var u="__aiCircularRefCheck",d={};if(!l)return Ie(t,1,48,"cannot serialize object because it is null or undefined",{name:c},!0),d;if(l[u])return Ie(t,2,50,"Circular reference detected while serializing object",{name:c},!0),d;if(!l.aiDataContract){if(c==="measurements")d=a(l,"number",c);else if(c==="properties")d=a(l,"string",c);else if(c==="tags")d=a(l,"string",c);else if(tt(l))d=s(l,c);else{Ie(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:c},!0);try{Si()[nc](l),d=l}catch(f){Ie(t,1,48,f&&mt(f[qa])?f[qa]():"Error serializing object",null,!0)}}return d}return l[u]=!0,ht(l.aiDataContract,function(f,m){var p=mt(m)?m()&1:m&1,g=mt(m)?m()&4:m&4,h=m&2,x=l[f]!==void 0,_=pi(l[f])&&l[f]!==null;if(p&&!x&&!h)Ie(t,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:c});else if(!g){var y=void 0;_?h?y=s(l[f],f):y=n(l[f],f):y=l[f],y!==void 0&&(d[f]=y)}}),delete l[u],d}o(n,"_serializeObject");function s(l,c){var u;if(l)if(!tt(l))Ie(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
[65] Fix | Delete
`,{name:c},!0);else{u=[];for(var d=0;d<l[xt];d++){var f=l[d],m=n(f,c+"["+d+"]");u[ls](m)}}return u}o(s,"_serializeArray");function a(l,c,u){var d;return l&&(d={},ht(l,function(f,m){if(c==="string")m===void 0?d[f]="undefined":m===null?d[f]="null":m[qa]?d[f]=m[qa]():d[f]="invalid field: toString() is not defined.";else if(c==="number")if(m===void 0)d[f]="undefined";else if(m===null)d[f]="null";else{var p=parseFloat(m);d[f]=p}else d[f]="invalid field: "+u+" is of unknown type.",Ie(t,1,d[f],null,!0)})),d}o(a,"_serializeStringMap")})}return o(e,"Serializer"),e.__ieDyn=1,e}();var aie=8,FF=function(){function e(){}return o(e,"HashCodeScoreGenerator"),e.prototype.getHashCodeScore=function(t){var r=this.getHashCode(t)/e.INT_MAX_VALUE;return r*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[xt]<aie;)t=t[ac](t);for(var r=5381,n=0;n<t[xt];++n)r=(r<<5)+r+t.charCodeAt(n),r=r&r;return Math.abs(r)},e.INT_MAX_VALUE=2147483647,e}();var MF=function(){function e(){var t=this,r=new FF,n=new ng;t.getSamplingScore=function(s){var a=0;return s[Tn]&&s[Tn][n.userId]?a=r.getHashCodeScore(s[Tn][n.userId]):s.ext&&s.ext.user&&s.ext.user.id?a=r[wF](s.ext.user.id):s[Tn]&&s[Tn][n.operationId]?a=r.getHashCodeScore(s[Tn][n.operationId]):s.ext&&s.ext.telemetryTrace&&s.ext.telemetryTrace[ju]?a=r.getHashCodeScore(s.ext.telemetryTrace[ju]):a=Math.random()*100,a}}return o(e,"SamplingScoreGenerator"),e}();var UF=function(){function e(t,r){this.INT_MAX_VALUE=2147483647;var n=r||Cu(null);(t>100||t<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[hm]=t,this.samplingScoreGenerator=new MF}return o(e,"Sample"),e.prototype.isSampledIn=function(t){var r=this[hm],n=!1;return r==null||r>=100||t.baseType===ja[as]?!0:(n=this.samplingScoreGenerator.getSamplingScore(t)<r,n)},e}();var Mr,Ga,F0=void 0,BF="",lie=65e3;function $F(e){try{return e.responseText}catch{}return null}o($F,"_getResponseText");function cie(e){return e&&e.sendPOST}o(cie,"isOverrideFn");var jF=ou((Mr={endpointUrl:Zd(Fl,Iu+N0)},Mr[ig]=os(),Mr.maxBatchInterval=15e3,Mr[sT]=102400,Mr.disableTelemetry=os(),Mr[lT]=os(!0),Mr.isRetryDisabled=os(),Mr[P4]=os(!0),Mr[uT]=os(!0),Mr.disableXhr=os(),Mr[cT]=os(),Mr[S4]=os(),Mr[gm]=F0,Mr.namePrefix=F0,Mr.samplingPercentage=Zd(uie,100),Mr[w4]=F0,Mr.convertUndefined=F0,Mr.eventsLimitInMem=1e4,Mr[og]=!1,Mr.httpXHROverride={isVal:cie,v:F0},Mr[aT]=os(),Mr.transports=F0,Mr.retryCodes=F0,Mr.maxRetryCnt={isVal:Sa,v:10},Mr));function uie(e){return!isNaN(e)&&e>0&&e<=100}o(uie,"_chkSampling");var fie=(Ga={},Ga[$a.dataType]=dT,Ga[Uu.dataType]=NF,Ga[Fu.dataType]=DF,Ga[Bu.dataType]=kF,Ga[Lu.dataType]=RF,Ga[ja.dataType]=AF,Ga[Mu.dataType]=PF,Ga),pT=function(e){w0(t,e);function t(){var r=e.call(this)||this;r.priority=1001,r.identifier=C4;var n,s,a,l,c,u,d,f,m=0,p,g,h,x,_,y,b,T,v,S,R,j,K,V,Y,N,k,z,D,E,I,A,w,P,O,M,$;return Ir(t,r,function(G,le){Ae(),G.pause=function(){ge(),l=!0},G.resume=function(){l&&(l=!1,s=null,Pe(),de())},G.flush=function(H,J,ae){if(H===void 0&&(H=!0),!l){ge();try{return G[dm](H,null,ae||1)}catch(pe){Ie(G[ti](),1,22,"flush failed, telemetry will not be collected: "+un(pe),{exception:Ze(pe)})}}},G.onunloadFlush=function(){if(!l)if(b||E)try{return G[dm](!0,Ye,2)}catch(H){Ie(G[ti](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+un(H),{exception:Ze(H)})}else G.flush(!1)},G.addHeader=function(H,J){f[H]=J},G[I4]=function(H,J,ae,pe){G.isInitialized()&&Ie(G[ti](),1,28,"Sender is already initialized"),le[I4](H,J,ae,pe);var ye=G.identifier;u=new LF(J.logger),n=0,s=null,a=0,G[mm]=null,d=0;var Ce=G[ti]();h=q1(Do("Sender"),J.evtNamespace&&J.evtNamespace()),g=oT(h),G._addHook(is(H,function(ke){var Xe=ke.cfg;Xe.storagePrefix&&Yv(Xe.storagePrefix);var ft=Ws(null,Xe,J),we=ft.getExtCfg(ye,jF),Lt=we[pm];if(x&&Lt===x){var St=Xe[pm];St&&St!==Lt&&(we[pm]=St)}bo(we[gm])&&(we[gm]=Xe[gm]),mr(G,"_senderConfig",{g:o(function(){return we},"g")}),_!==we[pm]&&(x=_=we[pm]),J.activeStatus()===Ms.PENDING?G.pause():J.activeStatus()===Ms.ACTIVE&&G.resume(),S&&S!==we[w4]&&Ne(S,function(ot){delete f[ot.header]}),y=we[sT],b=(we[S4]===!1||we[P4]===!1)&&Gl(),T=we[S4]===!1&&Gl(),v=we[P4]===!1&&Gl(),E=we[aT],I=!!we.disableXhr,$=we.retryCodes;var it=we[og],dt=!!we[lT]&&(!!it||y4()),Dt=we.namePrefix,jt=dt!==N||dt&&z!==Dt||dt&&k!==it;if(G[qs]){if(jt)try{G[qs]=G[qs].createNew(Ce,we,dt)}catch(ot){Ie(G[ti](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+un(ot),{exception:Ze(ot)})}Pe()}else G[qs]=dt?new mT(Ce,we):new N4(Ce,we);z=Dt,N=dt,k=it,A=!we[cT]&&A1(!0),O=!!we[uT],G._sample=new UF(we.samplingPercentage,Ce),j=we[gm],!bo(j)&&!He(j,Xe)&&Ie(Ce,1,100,"Invalid Instrumentation key "+j),S=we[w4],Jt(x)&&!x4(x)&&S&&S[xt]>0?Ne(S,function(ot){r.addHeader(ot.header,ot.value)}):S=null,D=we.enableSendPromise;var Gt=xe();M?M.SetConfig(Gt):(M=new Bv,M[I4](Gt,Ce));var Ft=we.httpXHROverride,Mt=null,kt=null,Zt=Vx([3,1,2],we.transports);Mt=M&&M[sg](Zt,!1);var Wt=M&&M.getFallbackInst();w=o(function(ot,Et){return fe(Wt,ot,Et)},"_xhrSend"),P=o(function(ot,Et){return fe(Wt,ot,Et,!1)},"_fallbackSend"),Mt=E?Ft:Mt||Ft||Wt,G[mm]=function(ot,Et){return fe(Mt,ot,Et)},A&&(p=ct);var qt=Vx([3,1],we.unloadTransports);A||(qt=qt.filter(function(ot){return ot!==2})),kt=M&&M[sg](qt,!0),kt=E?Ft:kt||Ft,(E||we.unloadTransports||!p)&&kt&&(p=o(function(ot,Et){return fe(kt,ot,Et)},"_syncUnloadSender")),p||(p=w),R=we.disableTelemetry,K=we.convertUndefined||F0,V=we.isRetryDisabled,Y=we.maxBatchInterval}))},G.processTelemetry=function(H,J){J=G._getTelCtx(J);var ae=J[ti]();try{var pe=ie(H,ae);if(!pe)return;var ye=W(H,ae);if(!ye)return;var Ce=u.serialize(ye),ke=G[qs];Pe(Ce);var Xe={item:Ce,cnt:0};ke[Ha](Xe),de()}catch(ft){Ie(ae,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+un(ft),{exception:Ze(ft)})}G.processNext(H,J)},G.isCompletelyIdle=function(){return!l&&m===0&&G._buffer[za]()===0},G.getOfflineListener=function(){return g},G._xhrReadyStateChange=function(H,J,ae){if(!nt(J))return $e(H,J,ae)},G[dm]=function(H,J,ae){H===void 0&&(H=!0);var pe;if(!l)try{var ye=G[qs];if(R)ye[sc]();else{if(ye[za]()>0){var Ce=ye.getItems();We(ae||0,H),J?pe=J.call(G,Ce,H):pe=G[mm](Ce,H)}a=+new Date}ge()}catch(Xe){var ke=mv();(!ke||ke>9)&&Ie(G[ti](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+un(Xe),{exception:Ze(Xe)})}return pe},G.getOfflineSupport=function(){return{getUrl:o(function(){return x},"getUrl"),createPayload:q,serialize:he,batch:ce,shouldProcess:o(function(H){return!!ie(H)},"shouldProcess")}},G._doTeardown=function(H,J){G.onunloadFlush(),Ma(g,!1),Ae()},G[lc]=function(H,J,ae){if(!nt(H))return Ge(H,J,ae)},G[R4]=function(H,J){if(!nt(H))return Ke(H,J)},G[ag]=function(H,J){if(!nt(H))return Qe(H,J)},G._xdrOnLoad=function(H,J){if(!nt(J))return be(H,J)};function be(H,J){var ae=$F(H);if(H&&(ae+""=="200"||ae===""))n=0,G[ag](J,0);else{var pe=W1(ae);pe&&pe[A4]&&pe[A4]>pe[D4]&&!V?G[R4](J,pe):G[lc](J,S1(H))}}o(be,"_xdrOnLoad");function xe(){try{var H={xdrOnComplete:o(function(ae,pe,ye){var Ce=U(ye);if(Ce)return be(ae,Ce)},"xdrOnComplete"),fetchOnComplete:o(function(ae,pe,ye,Ce){var ke=U(Ce);if(ke)return Oe(ae.status,ke,ae.url,ke[xt],ae.statusText,ye||"")},"fetchOnComplete"),xhrOnComplete:o(function(ae,pe,ye){var Ce=U(ye);if(Ce)return $e(ae,Ce,Ce[xt])},"xhrOnComplete"),beaconOnRetry:o(function(ae,pe,ye){return rt(ae,pe,ye)},"beaconOnRetry")},J={enableSendPromise:D,isOneDs:!1,disableCredentials:!1,disableXhr:I,disableBeacon:!v,disableBeaconSync:!T,senderOnCompleteCallBack:H};return J}catch{}return null}o(xe,"_getSendPostMgrConfig");function $e(H,J,ae){H.readyState===4&&Oe(H.status,J,H.responseURL,ae,vu(H),$F(H)||H.response)}o($e,"_xhrReadyStateChange");function Ge(H,J,ae){Ie(G[ti](),2,26,"Failed to send telemetry.",{message:J}),G._buffer&&G._buffer[Wu](H)}o(Ge,"_onError");function Ke(H,J){for(var ae=[],pe=[],ye=J.errors.reverse(),Ce=0,ke=ye;Ce<ke.length;Ce++){var Xe=ke[Ce],ft=H.splice(Xe.index,1)[0];De(Xe.statusCode)?pe[ls](ft):ae[ls](ft)}H[xt]>0&&G[ag](H,J[D4]),ae[xt]>0&&G[lc](ae,vu(null,["partial success",J[D4],"of",J.itemsReceived].join(" "))),pe[xt]>0&&(F(pe),Ie(G[ti](),2,40,"Partial success. Delivered: "+H[xt]+", Failed: "+ae[xt]+". Will retry to send "+pe[xt]+" our of "+J[A4]+" items"))}o(Ke,"_onPartialSuccess");function Qe(H,J){G._buffer&&G._buffer[Wu](H)}o(Qe,"_onSuccess");function U(H){try{if(H){var J=H,ae=J.oriPayload;return ae&&ae[xt]?ae:null}}catch{}return null}o(U,"_getPayloadArr");function ie(H,J){if(R)return!1;if(!H)return J&&Ie(J,1,7,"Cannot send empty telemetry"),!1;if(H.baseData&&!H[k4])return J&&Ie(J,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(H[k4]||(H[k4]="EventData"),!G[mm])return J&&Ie(J,1,28,"Sender was not initialized"),!1;if(ne(H))H[H1]=G._sample[hm];else return J&&Ie(J,2,33,"Telemetry item was sampled out and not sent",{SampleRate:G._sample[hm]}),!1;return!0}o(ie,"_validate");function W(H,J){var ae=H.iKey||j,pe=t.constructEnvelope(H,ae,J,K);if(!pe){Ie(J,1,47,"Unable to create an AppInsights envelope");return}var ye=!1;if(H[Tn]&&H[Tn][z1]&&(Ne(H[Tn][z1],function(Ce){try{Ce&&Ce(pe)===!1&&(ye=!0,Ua(J,"Telemetry processor check returns false"))}catch(ke){Ie(J,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+un(ke),{exception:Ze(ke)},!0)}}),delete H[Tn][z1]),!ye)return pe}o(W,"_getEnvelope");function he(H){var J=BF,ae=G[ti]();try{var pe=ie(H,ae),ye=null;pe&&(ye=W(H,ae)),ye&&(J=u.serialize(ye))}catch{}return J}o(he,"_serialize");function ce(H){var J=BF;return H&&H[xt]&&(J="["+H.join(",")+"]"),J}o(ce,"_batch");function q(H){var J=Ee();return{urlString:x,data:H,headers:J}}o(q,"_createPayload");function ne(H){return G._sample.isSampledIn(H)}o(ne,"_isSampledIn");function _e(H,J,ae,pe){J===200&&H?G._onSuccess(H,H[xt]):pe&&G[lc](H,pe)}o(_e,"_getOnComplete");function fe(H,J,ae,pe){pe===void 0&&(pe=!0);var ye=o(function(Xe,ft,we){return _e(J,Xe,ft,we)},"onComplete"),Ce=me(J),ke=H&&H.sendPOST;return ke&&Ce?(pe&&G._buffer[cm](J),ke(Ce,ye,!ae)):null}o(fe,"_doSend");function me(H){if(tt(H)&&H[xt]>0){var J=G[qs].batchPayloads(H),ae=Ee(),pe={data:J,urlString:x,headers:ae,disableXhrSync:I,disableFetchKeepAlive:!A,oriPayload:H};return pe}return null}o(me,"_getPayload");function Ee(){try{var H=f||{};return x4(x)&&(H[g4[6]]=g4[7]),H}catch{}return null}o(Ee,"_getHeaders");function Pe(H){var J=H?H[xt]:0;return G[qs].size()+J>y?((!g||g.isOnline())&&G[dm](!0,null,10),!0):!1}o(Pe,"_checkMaxSize");function Oe(H,J,ae,pe,ye,Ce){var ke=null;if(G._appId||(ke=W1(Ce),ke&&ke.appId&&(G._appId=ke.appId)),(H<200||H>=300)&&H!==0){if((H===301||H===307||H===308)&&!qe(ae)){G[lc](J,ye);return}if(g&&!g.isOnline()){if(!V){var Xe=10;F(J,Xe),Ie(G[ti](),2,40,". Offline - Response Code: ".concat(H,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(J.length," items."))}return}!V&&De(H)?(F(J),Ie(G[ti](),2,40,". Response code "+H+". Will retry to send "+J[xt]+" items.")):G[lc](J,ye)}else qe(ae),H===206?(ke||(ke=W1(Ce)),ke&&!V?G[R4](J,ke):G[lc](J,ye)):(n=0,G[ag](J,pe))}o(Oe,"_checkResponsStatus");function qe(H){return d>=10?!1:!Fe(H)&&H!==""&&H!==x?(x=H,++d,!0):!1}o(qe,"_checkAndUpdateEndPointUrl");function Ye(H,J){if(p)p(H,!1);else{var ae=M&&M[sg]([3],!0);return fe(ae,H,J)}}o(Ye,"_doUnloadSend");function rt(H,J,ae){var pe=H,ye=pe&&pe.oriPayload;if(O)P&&P(ye,!0),Ie(G[ti](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ce=[],ke=0;ke<ye[xt];ke++){var Xe=ye[ke],ft=[Xe],we=me(ft);ae(we,J)?G._onSuccess(ft,ft[xt]):Ce[ls](Xe)}Ce[xt]>0&&(P&&P(Ce,!0),Ie(G[ti](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}o(rt,"_onBeaconRetry");function nt(H){try{if(H&&H[xt])return Jt(H[0])}catch{}return null}o(nt,"_isStringArr");function ct(H,J){var ae=null;if(tt(H)){for(var pe=H[xt],ye=0;ye<H[xt];ye++)pe+=H[ye].item[xt];var Ce=M.getSyncFetchPayload();Ce+pe<=lie?ae=2:Gl()?ae=3:(ae=1,Ie(G[ti](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var ke=M&&M[sg]([ae],!0);return fe(ke,H,J)}return null}o(ct,"_fetchKeepAliveSender");function F(H,J){if(J===void 0&&(J=1),!(!H||H[xt]===0)){var ae=G[qs];ae[Wu](H),n++;for(var pe=0,ye=H;pe<ye.length;pe++){var Ce=ye[pe];Ce.cnt=Ce.cnt||0,Ce.cnt++,ae[Ha](Ce)}Q(J),de()}}o(F,"_resendPayload");function Q(H){var J=10,ae;if(n<=1)ae=J;else{var pe=(Math.pow(2,n)-1)/2,ye=Ra(Math.random()*pe*J)+1;ye=H*ye,ae=su(hO(ye,3600),J)}var Ce=Eo()+ae*1e3;s=Ce}o(Q,"_setRetryTime");function de(){if(!c&&!l){var H=s?su(0,s-Eo()):0,J=su(Y,H);c=Io(function(){c=null,G[dm](!0,null,1)},J)}}o(de,"_setupTimer");function ge(){c&&c.cancel(),c=null,s=null}o(ge,"_clearScheduledTimer");function De(H){return Fe($)?H===401||H===408||H===429||H===500||H===502||H===503||H===504:$[xt]&&$.indexOf(H)>-1}o(De,"_isRetriable");function Be(){var H="getNotifyMgr";return G.core[H]?G.core[H]():G.core._notificationManager}o(Be,"_getNotifyMgr");function We(H,J){var ae=Be();if(ae&&ae.eventsSendRequest)try{ae.eventsSendRequest(H,J)}catch(pe){Ie(G[ti](),1,74,"send request notification failed: "+un(pe),{exception:Ze(pe)})}}o(We,"_notifySendRequest");function He(H,J){var ae=J.disableInstrumentationKeyValidation,pe=Fe(ae)?!1:ae;if(pe)return!0;var ye="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ce=new RegExp(ye);return Ce.test(H)}o(He,"_validateInstrumentationKey");function Ae(){G[mm]=null,G[qs]=null,G._appId=null,G._sample=null,f={},g=null,n=0,s=null,a=null,l=!1,c=null,u=null,d=0,m=0,p=null,h=null,x=null,_=null,y=0,b=!1,S=null,R=!1,j=null,K=F0,V=!1,N=null,z=F0,I=!1,A=!1,O=!1,w=null,P=null,M=null,mr(G,"_senderConfig",{g:o(function(){return zx({},jF)},"g")})}o(Ae,"_initDefaults")}),r}return o(t,"Sender"),t.constructEnvelope=function(r,n,s,a){var l;n!==r.iKey&&!Fe(n)?l=ns(ns({},r),{iKey:n}):l=r;var c=fie[l.baseType]||dT;return c(s,l,a)},t}(j1);var Vu="instrumentationKey",lg="connectionString",xm="endpointUrl",_m="userOverrideEndpointUrl";var ym,gT=void 0,die=(ym={diagnosticLogInterval:Zd(mie,1e4)},ym[lg]=gT,ym.endpointUrl=gT,ym[Vu]=gT,ym.extensionConfig={},ym);function mie(e){return e&&e>0}o(mie,"_chkDiagLevel");var WF=function(){function e(t){var r=new Mv,n;(Fe(t)||Fe(t[Vu])&&Fe(t[lg]))&&Yi("Invalid input configuration"),Ir(e,this,function(a){mr(a,"config",{g:o(function(){return n},"g")}),l(),a.initialize=l,a.track=s,bu(a,r,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function l(){var c=bn(t||{},die);n=c.cfg,r.addUnloadHook(is(c,function(){var u=n[lg];if(bo(u)){var d=E1(function(g,h){Ro(u,function(x){var _=x.value,y=n[Vu];if(!x.rejected&&_){n[lg]=_;var b=Q1(_);y=b.instrumentationkey||y}g(y)})}),f=E1(function(g,h){Ro(u,function(x){var _=x.value,y=n[xm];if(!x.rejected&&_){var b=Q1(_),T=b.ingestionendpoint;y=T?T+N0:y}g(y)})});n[Vu]=d,n[xm]=n[_m]||f}if(Jt(u)){var m=Q1(u),p=m.ingestionendpoint;n[xm]=n[_m]?n[_m]:p+N0,n[Vu]=m.instrumentationkey||n[Vu]}n[xm]=n[_m]?n[_m]:n[xm]})),r.initialize(n,[new pT])}o(l,"_initialize")});function s(a){a&&(a.baseData=a.baseData||{},a.baseType=a.baseType||"EventData"),r.track(a)}o(s,"_track")}return o(e,"ApplicationInsights"),e.__ieDyn=1,e}();var ko=Pt(Bc());var bm=class{constructor(t,r,n,s,a=!1){this.ctx=t;this.namespace=r;this.includeAuthorizationHeader=a;this.onCopilotToken=o(t=>{this.token=t;let r=t.getTokenValue("tid");r!==void 0&&(this.tags["ai.user.id"]=r)},"onCopilotToken");this.xhrOverride={sendPOST:o((t,r)=>{if(typeof t.data!="string")throw new Error(`AppInsightsReporter only supports string payloads, received ${typeof t.data}`);let n=t.headers??{};n["Content-Type"]="application/json",this.includeAuthorizationHeader&&this.token&&(n.Authorization=`Bearer ${this.token.token}`);let s={method:"POST",headers:n,body:t.data};this.ctx.get(ln).fetch(t.urlString,s).then(a=>a.text().then(l=>{r(a.status,Object.fromEntries(a.headers),l)})).catch(a=>{At.debug(this.ctx,"Error sending telemetry",a),r(0,{})})},"sendPOST")};this.client=new WF({instrumentationKey:s,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,endpointUrl:n,extensionConfig:{[C4]:{alwaysUseXhrOverride:!0,httpXHROverride:this.xhrOverride}}}),this.tags=pie(t),this.commonProperties=gie(t),this.#e=dn(t,this.onCopilotToken)}static{o(this,"AppInsightsReporter")}#e;sendTelemetryEvent(t,r,n){r={...r,...this.commonProperties};let s=this.qualifyEventName(t);this.client.track({name:s,tags:this.tags,data:{...r,...n},baseType:"EventData",baseData:{name:s,properties:r,measurements:n}})}sendTelemetryErrorEvent(t,r,n){this.sendTelemetryEvent(this.qualifyEventName(t),r,n)}async dispose(){this.#e.dispose(),await this.client.unload(!0,void 0,200)}qualifyEventName(t){return t.startsWith(this.namespace)?t:`${this.namespace}/${t}`}};function pie(e){let t={},r=e.get(mn);t["ai.session.id"]=r.sessionId;let n=e.get(Fi);return n.trackingId&&(t["ai.user.id"]=n.trackingId),t["ai.cloud.roleInstance"]="REDACTED",t["ai.device.osVersion"]=`${ko.type()} ${ko.release()}`,t["ai.device.osArchitecture"]=ko.arch(),t["ai.device.osPlatform"]=ko.platform(),t["ai.cloud.role"]="Web",t["ai.application.ver"]=e.get(wn).getVersion(),t}o(pie,"getTags");function gie(e){let t={};t.common_os=ko.platform(),t.common_platformversion=ko.release(),t.common_arch=ko.arch(),t.common_cpu=Array.from(new Set(ko.cpus().map(n=>n.model))).join();let r=e.get(mn);return t.common_vscodemachineid=r.machineId,t.common_vscodesessionid=r.sessionId,t.common_uikind=r.uiKind,t.common_remotename=r.remoteName,t.common_isnewappinstall="",t}o(gie,"getCommonProperties");var hie="7d7048df-6dd0-4048-bb23-b716c1461f8f",xie="3fdd7f28-937a-48c8-9a21-ba337db23bd1",_ie="f0000000-0000-0000-0000-000000000000";function qF(e){return new URL(e).hostname==="github.com"?nu.telemetry:e.replace("://","://copilot-telemetry-service.")}o(qF,"getEndpointForServerUrl");var Hs=class{constructor(t,r){this.ctx=t;this.namespace=r;this.serverUrl="https://github.com/";this.rootUrl=qF(this.serverUrl);this.shuttingDown=new Set;dn(t,n=>this.updateServiceEndpoints(n.endpoints))}static{o(this,"TelemetryInitialization")}get endpointUrl(){return this.overrideEndpointUrlForTesting||new URL("telemetry",this.rootUrl).href}get isInitialized(){return this.initializedWith!==void 0}get isEnabled(){return this._enabled??!1}initialize(t){let r=this.ctx;this._enabled=t;let n=this.endpointUrl;if(!(this.initializedWith?.enabled===this._enabled&&this.initializedWith?.endpointUrl===this.endpointUrl)&&(this.shutdownWithoutWaiting(),this.initializedWith={endpointUrl:n,enabled:this._enabled},t)){let s=r.get(Yo);s.setReporter(new bm(r,this.namespace,n,hie)),s.setRestrictedReporter(new bm(r,this.namespace,n,xie)),s.setFTReporter(new bm(r,this.namespace,n,_ie,!0))}}setCustomReporters(t,r){this.shutdownWithoutWaiting();let n=this.ctx.get(Yo);n.setReporter(t),n.setRestrictedReporter(r)}async shutdown(){this.shutdownWithoutWaiting(),await Promise.all(this.shuttingDown)}shutdownWithoutWaiting(){this.initializedWith=void 0;let t=this.ctx.get(Yo).deactivate().finally(()=>{this.shuttingDown.delete(t)});this.shuttingDown.add(t)}updateSessionConfig(t){t?.serverUrl&&t.serverUrl!==this.serverUrl&&(this.serverUrl=t.serverUrl,this.rootUrl=qF(t.serverUrl)),this.isInitialized&&this.initialize(this._enabled)}updateServiceEndpoints(t){this.rootUrl=t.telemetry,this.isInitialized&&this.initialize(this._enabled)}};async function yie(e,t){let r="copilot_internal/subscribe_limited_user";try{return(await(await Dl(e,t,r,{method:"POST",headers:{"X-GitHub-Api-Version":"2025-05-01"},body:JSON.stringify({restricted_telemetry:e.get(Hs).isEnabled?"enabled":"disabled",public_code_suggestions:"enabled"})})).json()).subscribed}catch(n){return M0.exception(e,n,"signUpLimited failed"),!1}}o(yie,"apiFetchSignUpLimited");async function hT(e,t,r){let n=await e.get(Kt).getTokenResult();switch(n.failureKind){case void 0:return"OK";case"HTTP401":case"NotSignedIn":return"NotSignedIn";case"NotAuthorized":return r&&n.canSignUpForLimited&&await yie(e,t)?hT(e,t,!1):"NotAuthorized";case"Exception":throw n.exception}}o(hT,"getTokenWithSignUpLimited");var uc=class{constructor(t,r){this.ctx=t;this.env=r}static{o(this,"AuthManager")}hasTransientSession(){return this.transientSession!==void 0}get _copilotTokenManager(){return this.ctx.get(Kt)}getConfiguredUrls(){return this.ctx.get(Ea).getConfiguredUrls()}async checkAndUpdateStatus(t){let r=t?.localChecksOnly??!1,n;return t?.githubAppId!==void 0?n=await this.getPersistedSession(t):n=await this.getSession(),n===void 0?(this._copilotTokenManager.resetToken(),await this._copilotTokenManager.primeToken(),{status:"NotSignedIn"}):r?{status:"MaybeOK",user:n.login}:(t?.forceRefresh&&this._copilotTokenManager.resetToken(),{status:await hT(this.ctx,n,t?.freshSignIn??!1),user:n.login})}async getSession(){await this.ctx.get(_o).requireReady();let t=bie(this.env)??await this.transientSession;if(!(t&&t.accessToken===void 0))return t?{...t,...Ka(t)}:await this.getPersistedSession()}setTransientSession(t){this.transientSession=t&&Promise.resolve(t),this._copilotTokenManager.resetToken()}getAuthAuthority(){return new URL(this.getConfiguredUrls().serverUrl).hostname}};function bie(e){if(e.GH_COPILOT_TOKEN&&!/=/.test(e.GH_COPILOT_TOKEN))return{...Ka({apiUrl:e.GH_COPILOT_API_URL,serverUrl:e.GH_COPILOT_SERVER_URL}),login:"<GH_COPILOT_TOKEN-user>",accessToken:e.GH_COPILOT_TOKEN};if(e.GITHUB_COPILOT_TOKEN)return{...Ka({apiUrl:e.GITHUB_COPILOT_API_URL,serverUrl:e.GITHUB_COPILOT_SERVER_URL}),login:"<GITHUB_COPILOT_TOKEN-user>",accessToken:e.GITHUB_COPILOT_TOKEN};if(e.CODESPACES==="true"&&e.GITHUB_TOKEN)return{...Ka({apiUrl:e.GITHUB_API_URL,serverUrl:e.GITHUB_SERVER_URL}),login:e.GITHUB_USER||"<codespaces-user>",accessToken:e.GITHUB_TOKEN}}o(bie,"getSessionFromEnv");var Ya=class{static{o(this,"UrlOpener")}};var vie=["UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_SIGNATURE_FAILURE"],zF="Your proxy connection requires a trusted certificate. Please make sure the proxy certificate and any issuers are configured correctly and trusted by your operating system.",VF="https://gh.io/copilot-network-errors",Xa=class{constructor(){this.notifiedErrorCodes=[]}static{o(this,"UserErrorNotifier")}notifyUser(t,r){if(!(r instanceof Error))return;let n=r;n.code&&vie.includes(n.code)&&!this.didNotifyBefore(n.code)&&(this.notifiedErrorCodes.push(n.code),this.displayCertificateErrorNotification(t,n))}async displayCertificateErrorNotification(t,r){new vt("certificates").error(t,`${zF} Please visit ${VF} to learn more. Original cause:`,r);let n={title:"Learn more"};return t.get(Vi).showWarningMessage(zF,n).then(s=>{if(s?.title===n.title)return t.get(Ya).open(VF)})}didNotifyBefore(t){return this.notifiedErrorCodes.indexOf(t)!==-1}};var Hr=class{static{o(this,"StatusReporter")}#e=0;#t="Normal";#i;#r;#n=!0;get busy(){return this.#e>0}withProgress(t){return this.#t==="Warning"&&this.forceNormal(),this.#e++===0&&this.#o(),t().finally(()=>{--this.#e===0&&this.#o()})}forceStatus(t,r,n){this.#t===t&&this.#i===r&&!n&&!this.#r&&!this.#n||(this.#t=t,this.#i=r,this.#r=n,this.#n=!1,this.#o())}forceNormal(){this.#t!=="Inactive"&&this.forceStatus("Normal")}setError(t,r){this.forceStatus("Error",t,r)}setWarning(t){this.#t!=="Error"&&this.forceStatus("Warning",t)}setInactive(t){this.#t==="Error"||this.#t==="Warning"||this.forceStatus("Inactive",t)}clearInactive(){this.#t==="Inactive"&&this.forceStatus("Normal")}#o(){let t={kind:this.#t,message:this.#i,busy:this.busy,command:this.#r};this.didChange(t)}};var GF=Pt(Zn());var U0=class extends GF.Emitter{static{o(this,"Emitter")}get event(){return super.event}};function Ja(e,t){return(r,n,s)=>(n&&(r=r.bind(n)),e(o(l=>{let c=t(l);c!==void 0&&r(c)},"wrappedListener"),void 0,s))}o(Ja,"transformEvent");var xT=class extends ol{constructor(r){super("message"in r?r.message:`${r.failureKind}`);this.result=r}static{o(this,"TokenResultError")}},Kt=class{constructor(t,r=!1){this.ctx=t;this.primed=r;this.lastToken=void 0;this.activeToken=void 0;this.tokenPromise=void 0;this.tokenPrimingError=void 0;this.didChangeTokenResult=new U0;this.onDidChangeTokenResult=this.didChangeTokenResult.event;this.didResetToken=new U0;this.onDidResetToken=this.didResetToken.event}static{o(this,"CopilotTokenManager")}async getGitHubSession(){return await this.ctx.get(uc).getSession()}primeToken(){if(this.tokenPrimingError)return Promise.reject(this.tokenPrimingError);this.primed=!0;try{return this.getToken().then(()=>!0,()=>!1)}catch{return Promise.resolve(!1)}}async fetchTokenResult(t){return await this.ctx.get(Gu).fetchTokenResult(this.ctx,t,this.lastToken)}setToken(t){this.activeToken=this.lastToken=t}async getTokenResult(){if(!this.primed){let t=new Error("Token requested before initialization");if(KF(this.ctx))throw this.tokenPrimingError=t,t;M0.exception(this.ctx,t,".getToken")}if(!this.tokenPromise&&(!this.activeToken||this.activeToken?.needsRefresh())){let r=this.getGitHubSession().then(async n=>n?await this.fetchTokenResult(n):{failureKind:"NotSignedIn"}).catch(n=>{if(!(n instanceof Error))throw n;return{failureKind:"Exception",message:String(n),exception:n}}).then(n=>(this.tokenPromise!==r||(this.tokenPromise=void 0,this.handleTokenResult(n)),n));this.tokenPromise=r}return this.activeToken&&!this.activeToken.isExpired()?{copilotToken:this.activeToken}:await this.tokenPromise}handleTokenResult(t){let r=this.ctx.get(Hr);switch(t.failureKind){case"NotSignedIn":r.setError("You are not signed into GitHub.",{command:"github.copilot.signIn",title:"Sign In"});break;case"HTTP401":r.setError("Your GitHub token is invalid. Try signing in again.");break;case"NotAuthorized":r.setError(t.message);break;case"Exception":r.setWarning(t.message),this.ctx.get(Xa).notifyUser(this.ctx,t.exception);break;case void 0:r.forceNormal(),this.setToken(t.copilotToken)}this.didChangeTokenResult.fire(t)}async getToken(){let t=await this.getTokenResult();if(t.copilotToken)return t.copilotToken;throw t.exception?t.exception:new xT(t)}resetToken(t){t!==void 0?(Se(this.ctx,"auth.reset_token_"+t),M0.debug(this.ctx,`Resetting copilot token on HTTP error ${t}`)):M0.debug(this.ctx,"Resetting copilot token"),!(!this.activeToken&&!this.tokenPromise)&&(this.activeToken=void 0,this.tokenPromise=void 0,this.didResetToken.fire())}getLastToken(){return this.lastToken}};function J2(e){return e.get(Kt).getLastToken()}o(J2,"getLastCopilotToken");var Ku=class{static{o(this,"Clock")}now(){return new Date}};var Yu=class{static{o(this,"ExpConfigMaker")}},O4=class extends Yu{constructor(r={}){super();this.defaultFilters=r}static{o(this,"ExpConfigFromTAS")}async fetchExperiments(r,n,s){let a=r.get(ln),l=Object.keys(s).length===0?this.defaultFilters:s,c=new URL("telemetry",n.telemetry).href,u;try{u=await a.fetch(c,{method:"GET",headers:l,timeout:5e3})}catch(p){return ys.createFallbackConfig(r,`Error fetching ExP config: ${String(p)}`)}if(!u.ok)return ys.createFallbackConfig(r,`ExP responded with ${u.status}`);let d;try{d=await u.json()}catch(p){if(p instanceof SyntaxError)return Xo(r,p,"fetchExperiments"),ys.createFallbackConfig(r,"ExP responded with invalid JSON");throw p}let f=d.Configs.find(p=>p.Id==="vscode")??{Id:"vscode",Parameters:{}},m=Object.entries(f.Parameters).map(([p,g])=>p+(g?"":"cf"));return new ys(f.Parameters,d.AssignmentContext,m.join(";"))}};var L4=class{constructor(t){this.prefix=t}static{o(this,"GranularityImplementation")}getCurrentAndUpComingValues(t){let r=this.getValue(t),n=this.getUpcomingValues(t);return[r,n]}},_T=class extends L4{static{o(this,"ConstantGranularity")}getValue(t){return this.prefix}getUpcomingValues(t){return[]}},YF=o(e=>new _T(e),"DEFAULT_GRANULARITY"),F4=class extends L4{constructor(r,n=.5,s=new Date().setUTCHours(0,0,0,0)){super(r);this.prefix=r;this.fetchBeforeFactor=n;this.anchor=s}static{o(this,"TimeBucketGranularity")}setTimePeriod(r){isNaN(r)?this.timePeriodLengthMs=void 0:this.timePeriodLengthMs=r}setByCallBuckets(r){isNaN(r)?this.numByCallBuckets=void 0:this.numByCallBuckets=r}getValue(r){return this.prefix+this.getTimePeriodBucketString(r)+(this.numByCallBuckets?this.timeHash(r):"")}getTimePeriodBucketString(r){return this.timePeriodLengthMs?this.dateToTimePartString(r):""}getUpcomingValues(r){let n=[],s=this.getUpcomingTimePeriodBucketStrings(r),a=this.getUpcomingByCallBucketStrings();for(let l of s)for(let c of a)n.push(this.prefix+l+c);return n}getUpcomingTimePeriodBucketStrings(r){if(this.timePeriodLengthMs===void 0)return[""];if((r.getTime()-this.anchor)%this.timePeriodLengthMs<this.fetchBeforeFactor*this.timePeriodLengthMs)return[this.getTimePeriodBucketString(r)];{let n=new Date(r.getTime()+this.timePeriodLengthMs);return[this.getTimePeriodBucketString(r),this.getTimePeriodBucketString(n)]}}getUpcomingByCallBucketStrings(){return this.numByCallBuckets===void 0?[""]:Array.from(Array(this.numByCallBuckets).keys()).map(r=>r.toString())}timeHash(r){return this.numByCallBuckets==null?0:7883*(r.getTime()%this.numByCallBuckets)%this.numByCallBuckets}dateToTimePartString(r){return this.timePeriodLengthMs==null?"":Math.floor((r.getTime()-this.anchor)/this.timePeriodLengthMs).toString()}};var XF="X-Copilot-ClientTimeBucket",M4=class{constructor(t,r){this.specs=new Map;this.prefix=t,this.clock=r,this.defaultGranularity=YF(t)}static{o(this,"GranularityDirectory")}selectGranularity(t){for(let[r,n]of this.specs.entries())if(t.extends(r))return n;return this.defaultGranularity}update(t,r,n){if(r=r>1?r:NaN,n=n>0?n:NaN,isNaN(r)&&isNaN(n))this.specs.delete(t);else{let s=new F4(this.prefix);isNaN(r)||s.setByCallBuckets(r),isNaN(n)||s.setTimePeriod(n*3600*1e3),this.specs.set(t,s)}}extendFilters(t){let r=this.selectGranularity(t),[n,s]=r.getCurrentAndUpComingValues(this.clock.now());return{newFilterSettings:t.withChange(XF,n),otherFilterSettingsToPrefetch:s.map(a=>t.withChange(XF,a))}}};var yT=new Map;async function Tie(e){if(yT.has(e))return yT.get(e);let t=await crypto.subtle.importKey("raw",new TextEncoder().encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]);return yT.set(e,t),t}o(Tie,"getCachedHmacKey");async function Cie(e){if(e)try{let t=await Tie(e),r=Math.floor(Date.now()/1e3).toString(),n=new TextEncoder().encode(r),s=await crypto.subtle.sign("HMAC",t,n),l=Array.from(new Uint8Array(s)).map(c=>c.toString(16).padStart(2,"0")).join("");return`${r}.${l}`}catch{return}}o(Cie,"createRequestHMAC");async function JF(e){let t=await Cie(e);return t?{"Request-Hmac":t,"Copilot-Integration-Id":"jetbrains-chat-dev"}:{}}o(JF,"createMsBenchHmacHeaders");function bT(...e){if(e.length>0){let t=String(e[0]);t.includes(":error")?console.error(...e):t.includes(":warning")?console.warn(...e):t.includes(":info")?console.info(...e):t.includes(":verbose")?console.debug(...e):console.debug(...e)}}o(bT,"log");var ZF=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,QF,vT=[],TT=[],U4=[];ZF&&CT(ZF);var eM=Object.assign(e=>tM(e),{enable:CT,enabled:ET,disable:Eie,log:bT});function CT(e){QF=e,vT=[],TT=[];let t=/\*/g,r=e.split(",").map(n=>n.trim().replace(t,".*?"));for(let n of r)n.startsWith("-")?TT.push(new RegExp(`^${n.substr(1)}$`)):vT.push(new RegExp(`^${n}$`));for(let n of U4)n.enabled=ET(n.namespace)}o(CT,"enable");function ET(e){if(e.endsWith("*"))return!0;for(let t of TT)if(t.test(e))return!1;for(let t of vT)if(t.test(e))return!0;return!1}o(ET,"enabled");function Eie(){let e=QF||"";return CT(""),e}o(Eie,"disable");function tM(e){let t=Object.assign(r,{enabled:ET(e),destroy:Iie,log:eM.log,namespace:e,extend:wie});function r(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return o(r,"debug"),U4.push(t),t}o(tM,"createDebugger");function Iie(){let e=U4.indexOf(this);return e>=0?(U4.splice(e,1),!0):!1}o(Iie,"destroy");function wie(e){let t=tM(`${this.namespace}:${e}`);return t.log=this.log,t}o(wie,"extend");var vm=eM;var nM=new Set,B4=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,IT,wT=vm("azure");wT.log=(...e)=>{vm.log(...e)};var ST=["verbose","info","warning","error"];B4&&(sM(B4)?Sie(B4):console.error(`AZURE_LOG_LEVEL set to unknown log level '${B4}'; logging is not enabled. Acceptable values: ${ST.join(", ")}.`));function Sie(e){if(e&&!sM(e))throw new Error(`Unknown log level '${e}'. Acceptable values: ${ST.join(",")}`);IT=e;let t=[];for(let r of nM)oM(r)&&t.push(r.namespace);vm.enable(t.join(","))}o(Sie,"setLogLevel");var rM={verbose:400,info:300,warning:200,error:100};function fc(e){let t=wT.extend(e);return iM(wT,t),{error:$4(t,"error"),warning:$4(t,"warning"),info:$4(t,"info"),verbose:$4(t,"verbose")}}o(fc,"createClientLogger");function iM(e,t){t.log=(...r)=>{e.log(...r)}}o(iM,"patchLogMethod");function $4(e,t){let r=Object.assign(e.extend(t),{level:t});if(iM(e,r),oM(r)){let n=vm.disable();vm.enable(n+","+r.namespace)}return nM.add(r),r}o($4,"createLogger");function oM(e){return!!(IT&&rM[e.level]<=rM[IT])}o(oM,"shouldEnable");function sM(e){return ST.includes(e)}o(sM,"isAzureLogLevel");var j4=fc("identity");function cg(e){return`SUCCESS. Scopes: ${Array.isArray(e)?e.join(", "):e}.`}o(cg,"formatSuccess");function zr(e,t){let r="ERROR.";return e?.length&&(r+=` Scopes: ${Array.isArray(e)?e.join(", "):e}.`),`${r} Error message: ${typeof t=="string"?t:t.message}.`}o(zr,"formatError");function aM(e,t,r=j4){let n=t?`${t.fullTitle} ${e}`:e;function s(u){r.info(`${n} =>`,u)}o(s,"info");function a(u){r.warning(`${n} =>`,u)}o(a,"warning");function l(u){r.verbose(`${n} =>`,u)}o(l,"verbose");function c(u){r.error(`${n} =>`,u)}return o(c,"error"),{title:e,fullTitle:n,info:s,warning:a,verbose:l,error:c}}o(aM,"credentialLoggerInstance");function Ot(e,t=j4){let r=aM(e,void 0,t);return{...r,parent:t,getToken:aM("=> getToken()",r,t)}}o(Ot,"credentialLogger");var lM="CredentialUnavailableError",Xu=class extends Error{static{o(this,"CredentialUnavailableError")}constructor(t,r){super(t,r),this.name=lM}};var cM="AggregateAuthenticationError",ug=class extends Error{static{o(this,"AggregateAuthenticationError")}errors;constructor(t,r){let n=t.join(`
[66] Fix | Delete
`);super(`${r}
[67] Fix | Delete
${n}`),this.errors=t,this.name=cM}};var PT="4.11.0";var W4;(function(e){e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureGovernment="https://login.microsoftonline.us",e.AzurePublicCloud="https://login.microsoftonline.com"})(W4||(W4={}));var uM=W4.AzurePublicCloud;var Tm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function fM(e={}){let t=new RT(e.parentContext);return e.span&&(t=t.setValue(Tm.span,e.span)),e.namespace&&(t=t.setValue(Tm.namespace,e.namespace)),t}o(fM,"createTracingContext");var RT=class e{static{o(this,"TracingContextImpl")}constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,r){let n=new e(this);return n._contextMap.set(t,r),n}getValue(t){return this._contextMap.get(t)}deleteValue(t){let r=new e(this);return r._contextMap.delete(t),r}};var q4={instrumenterImplementation:void 0};function Pie(){return{end:o(()=>{},"end"),isRecording:o(()=>!1,"isRecording"),recordException:o(()=>{},"recordException"),setAttribute:o(()=>{},"setAttribute"),setStatus:o(()=>{},"setStatus"),addEvent:o(()=>{},"addEvent")}}o(Pie,"createDefaultTracingSpan");function Rie(){return{createRequestHeaders:o(()=>({}),"createRequestHeaders"),parseTraceparentHeader:o(()=>{},"parseTraceparentHeader"),startSpan:o((e,t)=>({span:Pie(),tracingContext:fM({parentContext:t.tracingContext})}),"startSpan"),withContext(e,t,...r){return t(...r)}}}o(Rie,"createDefaultInstrumenter");function fg(){return q4.instrumenterImplementation||(q4.instrumenterImplementation=Rie()),q4.instrumenterImplementation}o(fg,"getInstrumenter");function H4(e){let{namespace:t,packageName:r,packageVersion:n}=e;function s(d,f,m){var p;let g=fg().startSpan(d,Object.assign(Object.assign({},m),{packageName:r,packageVersion:n,tracingContext:(p=f?.tracingOptions)===null||p===void 0?void 0:p.tracingContext})),h=g.tracingContext,x=g.span;h.getValue(Tm.namespace)||(h=h.setValue(Tm.namespace,t)),x.setAttribute("az.namespace",h.getValue(Tm.namespace));let _=Object.assign({},f,{tracingOptions:Object.assign(Object.assign({},f?.tracingOptions),{tracingContext:h})});return{span:x,updatedOptions:_}}o(s,"startSpan");async function a(d,f,m,p){let{span:g,updatedOptions:h}=s(d,f,p);try{let x=await l(h.tracingOptions.tracingContext,()=>Promise.resolve(m(h,g)));return g.setStatus({status:"success"}),x}catch(x){throw g.setStatus({status:"error",error:x}),x}finally{g.end()}}o(a,"withSpan");function l(d,f,...m){return fg().withContext(d,f,...m)}o(l,"withContext");function c(d){return fg().parseTraceparentHeader(d)}o(c,"parseTraceparentHeader");function u(d){return fg().createRequestHeaders(d)}return o(u,"createRequestHeaders"),{startSpan:s,withSpan:a,withContext:l,parseTraceparentHeader:c,createRequestHeaders:u}}o(H4,"createTracingClient");var Cm=H4({namespace:"Microsoft.AAD",packageName:"@azure/identity",packageVersion:PT});var AT=Ot("ChainedTokenCredential"),dg=class{static{o(this,"ChainedTokenCredential")}_sources=[];constructor(...t){this._sources=t}async getToken(t,r={}){let{token:n}=await this.getTokenInternal(t,r);return n}async getTokenInternal(t,r={}){let n=null,s,a=[];return Cm.withSpan("ChainedTokenCredential.getToken",r,async l=>{for(let c=0;c<this._sources.length&&n===null;c++)try{n=await this._sources[c].getToken(t,l),s=this._sources[c]}catch(u){if(u.name==="CredentialUnavailableError"||u.name==="AuthenticationRequiredError")a.push(u);else throw AT.getToken.info(zr(t,u)),u}if(!n&&a.length>0){let c=new ug(a,"ChainedTokenCredential authentication failed.");throw AT.getToken.info(zr(t,c)),c}if(AT.getToken.info(`Result for ${s.constructor.name}: ${cg(t)}`),n===null)throw new Xu("Failed to retrieve a valid token");return{token:n,successfulCredential:s}})}};var z4=new Error("DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead."),dM=Ot("DefaultAzureCredential"),Em=class extends dg{static{o(this,"DefaultAzureCredential")}constructor(t){throw super(),dM.info(zr("",z4)),z4}getToken(){throw dM.getToken.info(zr("",z4)),z4}};function mg(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(mg,"isObject");var tBe=new Set("0123456789abcdefABCDEF");function mM(){let e="";for(let t=0;t<32;t++){let r=Math.floor(Math.random()*16);t===12?e+="4":t===16?e+=r&3|8:e+=r.toString(16),(t===7||t===11||t===15||t===19)&&(e+="-")}return e}o(mM,"generateUUID");var kT,pBe=typeof((kT=globalThis?.crypto)===null||kT===void 0?void 0:kT.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):mM;var NT,OT,LT,FT,pM=typeof window<"u"&&typeof window.document<"u",gM=typeof self=="object"&&typeof self?.importScripts=="function"&&(((NT=self.constructor)===null||NT===void 0?void 0:NT.name)==="DedicatedWorkerGlobalScope"||((OT=self.constructor)===null||OT===void 0?void 0:OT.name)==="ServiceWorkerGlobalScope"||((LT=self.constructor)===null||LT===void 0?void 0:LT.name)==="SharedWorkerGlobalScope"),hM=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",xM=typeof Bun<"u"&&typeof Bun.version<"u",pg=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!(!((FT=globalThis.process.versions)===null||FT===void 0)&&FT.node);var _M=typeof navigator<"u"&&navigator?.product==="ReactNative";var MT="REDACTED",Aie=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],Die=["api-version"],Zu=class{static{o(this,"Sanitizer")}constructor({additionalAllowedHeaderNames:t=[],additionalAllowedQueryParameters:r=[]}={}){t=Aie.concat(t),r=Die.concat(r),this.allowedHeaderNames=new Set(t.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(t){let r=new Set;return JSON.stringify(t,(n,s)=>{if(s instanceof Error)return Object.assign(Object.assign({},s),{name:s.name,message:s.message});if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||mg(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},2)}sanitizeUrl(t){if(typeof t!="string"||t===null||t==="")return t;let r=new URL(t);if(!r.search)return t;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,MT);return r.toString()}sanitizeHeaders(t){let r={};for(let n of Object.keys(t))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=t[n]:r[n]=MT;return r}sanitizeQuery(t){if(typeof t!="object"||t===null)return t;let r={};for(let n of Object.keys(t))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=t[n]:r[n]=MT;return r}};var g$e=Ot("IdentityUtils");function $T(...e){if(e.length>0){let t=String(e[0]);t.includes(":error")?console.error(...e):t.includes(":warning")?console.warn(...e):t.includes(":info")?console.info(...e):t.includes(":verbose")?console.debug(...e):console.debug(...e)}}o($T,"log");var CM=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,EM,jT=[],WT=[],G4=[];CM&&qT(CM);var IM=Object.assign(e=>wM(e),{enable:qT,enabled:HT,disable:jie,log:$T});function qT(e){EM=e,jT=[],WT=[];let t=/\*/g,r=e.split(",").map(n=>n.trim().replace(t,".*?"));for(let n of r)n.startsWith("-")?WT.push(new RegExp(`^${n.substr(1)}$`)):jT.push(new RegExp(`^${n}$`));for(let n of G4)n.enabled=HT(n.namespace)}o(qT,"enable");function HT(e){if(e.endsWith("*"))return!0;for(let t of WT)if(t.test(e))return!1;for(let t of jT)if(t.test(e))return!0;return!1}o(HT,"enabled");function jie(){let e=EM||"";return qT(""),e}o(jie,"disable");function wM(e){let t=Object.assign(r,{enabled:HT(e),destroy:Wie,log:IM.log,namespace:e,extend:qie});function r(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return o(r,"debug"),G4.push(t),t}o(wM,"createDebugger");function Wie(){let e=G4.indexOf(this);return e>=0?(G4.splice(e,1),!0):!1}o(Wie,"destroy");function qie(e){let t=wM(`${this.namespace}:${e}`);return t.log=this.log,t}o(qie,"extend");var Im=IM;var zT=["verbose","info","warning","error"],SM={verbose:400,info:300,warning:200,error:100};function PM(e,t){t.log=(...r)=>{e.log(...r)}}o(PM,"patchLogMethod");function RM(e){return zT.includes(e)}o(RM,"isTypeSpecRuntimeLogLevel");function Hie(e){let t=new Set,r=typeof process<"u"&&process.env&&process.env[e.logLevelEnvVarName]||void 0,n,s=Im(e.namespace);s.log=(...f)=>{Im.log(...f)};function a(f){if(f&&!RM(f))throw new Error(`Unknown log level '${f}'. Acceptable values: ${zT.join(",")}`);n=f;let m=[];for(let p of t)l(p)&&m.push(p.namespace);Im.enable(m.join(","))}o(a,"contextSetLogLevel"),r&&(RM(r)?a(r):console.error(`${e.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${zT.join(", ")}.`));function l(f){return!!(n&&SM[f.level]<=SM[n])}o(l,"shouldEnable");function c(f,m){let p=Object.assign(f.extend(m),{level:m});if(PM(f,p),l(p)){let g=Im.disable();Im.enable(g+","+p.namespace)}return t.add(p),p}o(c,"createLogger");function u(){return n}o(u,"contextGetLogLevel");function d(f){let m=s.extend(f);return PM(s,m),{error:c(m,"error"),warning:c(m,"warning"),info:c(m,"info"),verbose:c(m,"verbose")}}return o(d,"contextCreateClientLogger"),{setLogLevel:a,getLogLevel:u,createClientLogger:d,logger:s}}o(Hie,"createLoggerContext");var AM=Hie({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),zie=AM.logger;function gg(e){return AM.createClientLogger(e)}o(gg,"createClientLogger");var DM=Symbol();var Vie=new Zu,B0=class e extends Error{static{o(this,"RestError")}constructor(t,r={}){super(t),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1}),Object.defineProperty(this,DM,{value:o(()=>`RestError: ${this.message}
[68] Fix | Delete
${Vie.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};B0.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";B0.PARSE_ERROR="PARSE_ERROR";var kM=gg("ts-http-runtime");function NM(){return"x-ms-useragent"}o(NM,"getHeaderName");function OM(){return NM()}o(OM,"getUserAgentHeaderName");var Eje=OM();var Bje=1e3*64;var Gje=gg("ts-http-runtime retryPolicy");var wWe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");var Y4=fc("core-rest-pipeline");function XM(){return"x-ms-useragent"}o(XM,"getHeaderName");function JM(){return XM()}o(JM,"getUserAgentHeaderName");var Sze=JM();var Dze=Symbol("rawContent");var fGe=fc("core-rest-pipeline retryPolicy");var gGe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};var JKe=Symbol.for("@azure/core-client original request");var nU=fc("core-client");var NXe=Ot("ClientSecretCredential");var MXe=new Error("EnvironmentCredential is not supported in the browser."),UXe=Ot("EnvironmentCredential");var WXe=new Error("ClientCertificateCredential is not supported in the browser."),qXe=Ot("ClientCertificateCredential");var GXe=new Error("ClientAssertionCredential is not supported in the browser."),KXe=Ot("ClientAssertionCredential");var ZXe=new Error("AzureCliCredential is not supported in the browser."),QXe=Ot("AzureCliCredential");var nJe=new Error("AzureDeveloperCliCredential is not supported in the browser."),iJe=Ot("AzureDeveloperCliCredential");var joe=typeof self<"u"&&self.location!==void 0;var wJe=joe?self.location.hash:void 0;var FJe=Ot("InteractiveBrowserCredential");var $Je=new Error("ManagedIdentityCredential is not supported in the browser."),jJe=Ot("ManagedIdentityCredential");var zJe=new Error("DeviceCodeCredential is not supported in the browser."),VJe=Ot("DeviceCodeCredential");var XJe=new Error("AzurePipelinesCredential is not supported in the browser."),JJe=Ot("AzurePipelinesCredential");var tZe=new Error("AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case."),rZe=Ot("AuthorizationCodeCredential");var sZe=new Error("AzurePowerShellCredential is not supported in the browser."),aZe=Ot("AzurePowerShellCredential");var xZe=Ot("UsernamePasswordCredential");var vZe=new Error("VisualStudioCodeCredential is not supported in the browser."),TZe=Ot("VisualStudioCodeCredential");var oU="OnBehalfOfCredential",wZe=new Error(`${oU}: Not supported in the browser.`),SZe=Ot(oU);var DZe=new Error("WorkloadIdentityCredential is not supported in the browser."),kZe=Ot("WorkloadIdentityCredential");var J4=new vt("capiFetchUtilities");function Woe(e){let t=e.getCopilotIntegrationId();if(t)return t;switch(e.getEditorPluginInfo().name){case"copilot-intellij":return"jetbrains-chat";case"copilot":case"copilot-vs":return;default:return"jetbrains-chat"}}o(Woe,"getIntegrationId");function QT(e){let t={...Rl(e),"X-GitHub-Api-Version":z2},r=Woe(e.get(ir));return r&&(t["Copilot-Integration-Id"]=r),t}o(QT,"getCapiHeaders");function sU(e,t){return J4.debug(e,"Using CES proxy mode for msbench"),{...t,"ces-proxy-target":nu.api,"Copilot-Integration-Id":"autodev-test"}}o(sU,"addMsBenchCesProxyHeaders");async function aU(e,t){J4.debug(e,"Using HMAC authentication mode for msbench");let r=await JF(process.env.HMAC_SECRET);return{...t,...r}}o(aU,"addMsBenchHmacHeaders");function qoe(){return a1()&&!!process.env.HMAC_SECRET}o(qoe,"isMsBenchHmacModeEnabled");function ZT(){return a1()&&!process.env.HMAC_SECRET}o(ZT,"isMsBenchCesProxyModeEnabled");async function lU(e,t){return process.env.HMAC_SECRET?await aU(e,t):sU(e,t)}o(lU,"addMsBenchHeaders");function Hoe(e,t,...r){if(ZT()){J4.debug(e,"Using CES proxy endpoint for URL generation");let n=r.join("/");return n.startsWith("/")&&(n=n.slice(1)),`https://ces-dev1.azurewebsites.net/api/proxy/${n}`}return Pd(e,t,"api",...r)}o(Hoe,"getCapiUrl");async function eC(e,t,r){r??=await e.get(Kt).getToken();let n=Hoe(e,r,t),s=r.token;ZT()&&(J4.debug(e,"Using CES proxy authentication token for fetchCapiUrl"),s=await zoe());let a={Authorization:`Bearer ${s}`,...QT(e)},l=qoe()?await aU(e,a):ZT()?sU(e,a):a;return await e.get(ln).fetch(new URL(n).href,{method:"GET",headers:l})}o(eC,"fetchCapiUrl");async function zoe(){let t=await new Em().getToken("api://17b0ad65-ed36-4194-bb27-059c567bc41f/.default");if(!t)throw new Error("Failed to retrieve access token");return t.token}o(zoe,"getMsBenchToken");var QQe=600*1e3,_g={Gpt35turbo:"gpt-3.5-turbo",Gpt4:"gpt-4",Gpt4turbo:"gpt-4-turbo",Gpt4o:"gpt-4o",Gpt4oMini:"gpt-4o-mini",O1Mini:"o1-mini",O1Ga:"o1-ga",Claude35Sonnet:"claude-3.5-sonnet",O3Mini:"o3-mini",Gemini20Flash:"gemini-2.0-flash",Gemini20Pro:"gemini-2.0-pro",Claude37Sonnet:"claude-3.7-sonnet",Claude37SonnetThought:"claude-3.7-sonnet-thought",Gpt45:"gpt-4.5",Gpt41:"gpt-4.1",Gpt5:"gpt-5",CopilotBase:"copilot-base",BYOK:"byok",Unknown:"unknown"},eet=new Set([_g.O1Ga,_g.O3Mini,_g.O1Mini,_g.Gemini20Pro,_g.Gemini20Flash]);var Voe=L.Object({type:L.Union([L.Literal("chat"),L.Literal("embeddings"),L.Literal("completion")]),tokenizer:L.String(),family:L.String(),object:L.String(),supports:L.Optional(L.Object({tool_calls:L.Optional(L.Boolean()),parallel_tool_calls:L.Optional(L.Boolean()),streaming:L.Optional(L.Boolean()),vision:L.Optional(L.Boolean())})),limits:L.Optional(L.Object({max_inputs:L.Optional(L.Number()),max_prompt_tokens:L.Optional(L.Number()),max_output_tokens:L.Optional(L.Number()),max_context_window_tokens:L.Optional(L.Number())}))}),Goe=L.Object({id:L.String(),name:L.String(),version:L.String(),model_picker_enabled:L.Boolean(),is_chat_default:L.Optional(L.Boolean()),is_chat_fallback:L.Optional(L.Boolean()),capabilities:Voe,billing:L.Optional(L.Object({is_premium:L.Optional(L.Boolean()),multiplier:L.Optional(L.Number())})),object:L.String(),preview:L.Optional(L.Boolean()),isExperimental:L.Optional(L.Boolean()),policy:L.Optional(L.Object({state:L.String(),terms:L.String()}))}),cU=L.Object({data:L.Array(Goe)});function yg(e){let t=tr(e,Te.UserSelectedCompletionModel);return typeof t=="string"&&t.length>0?t:null}o(yg,"getUserSelectedModelConfiguration");var wm=class extends Error{constructor(r,n){super(r,{cause:n});this.code="CopilotPromptLoadFailure"}static{o(this,"CopilotPromptLoadFailure")}};var Z4=Pt(require("vscode"));async function Q4(e){return await Z4.default.workspace.fs.readFile(fU(e))}o(Q4,"readFile");function uU(e){return fU(e).toString()}o(uU,"locateFile");function fU(e){let{extensionUri:t}=Z4.default.extensions.getExtension("github.copilot");return Z4.default.Uri.joinPath(t,"dist",e)}o(fU,"remoteUri");var Pm=Pt(IU());var o3=new Map;function cs(e="o200k_base"){let t=o3.get(e);return t!==void 0||(t=o3.get("o200k_base"),t!==void 0)?t:new Sm}o(cs,"getTokenizer");async function cse(e){if(!e.endsWith(".tiktoken.noindex"))throw new Error("File does not end with .tiktoken.noindex");let t=await Q4(e),r=new Map,n=[];for(let s=0;s<t.length;s++){if(t[s]!==255||n.length===0){n.push(t[s]);continue}r.set(Uint8Array.from(n),r.size),n=[]}return r.set(Uint8Array.from(n),r.size),r}o(cse,"parseTikTokenNoIndex");var fC=class e{constructor(t){this._tokenizer=t}static{o(this,"TTokenizer")}static async create(t){try{let r=(0,Pm.createTokenizer)(await cse(`resources/${t}.tiktoken.noindex`),(0,Pm.getSpecialTokensByEncoder)(t),(0,Pm.getRegexByEncoder)(t),32768);return new e(r)}catch(r){throw r instanceof Error?new wm("Could not load tokenizer",r):r}}tokenize(t){return this._tokenizer.encode(t)}detokenize(t){return this._tokenizer.decode(t)}tokenLength(t){return this.tokenize(t).length}tokenizeStrings(t){return this.tokenize(t).map(n=>this.detokenize([n]))}takeLastTokens(t,r){if(r<=0)return{text:"",tokens:[]};let n=4,s=1,a=Math.min(t.length,r*n),l=t.slice(-a),c=this.tokenize(l);for(;c.length<r+2&&a<t.length;)a=Math.min(t.length,a+r*s),l=t.slice(-a),c=this.tokenize(l);return c.length<r?{text:t,tokens:c}:(c=c.slice(-r),{text:this.detokenize(c),tokens:c})}takeFirstTokens(t,r){if(r<=0)return{text:"",tokens:[]};let n=4,s=1,a=Math.min(t.length,r*n),l=t.slice(0,a),c=this.tokenize(l);for(;c.length<r+2&&a<t.length;)a=Math.min(t.length,a+r*s),l=t.slice(0,a),c=this.tokenize(l);return c.length<r?{text:t,tokens:c}:(c=c.slice(0,r),{text:this.detokenize(c),tokens:c})}takeLastLinesTokens(t,r){let{text:n}=this.takeLastTokens(t,r);if(n.length===t.length||t[t.length-n.length-1]===`
[69] Fix | Delete
`)return n;let s=n.indexOf(`
[70] Fix | Delete
`);return n.substring(s+1)}},dC=class{constructor(){this.hash=o(t=>{let r=0;for(let n=0;n<t.length;n++){let s=t.charCodeAt(n);r=(r<<5)-r+s,r&=r&65535}return r},"hash")}static{o(this,"MockTokenizer")}tokenize(t){return this.tokenizeStrings(t).map(this.hash)}detokenize(t){return t.map(r=>r.toString()).join(" ")}tokenizeStrings(t){return t.split(/\b/)}tokenLength(t){return this.tokenizeStrings(t).length}takeLastTokens(t,r){let n=this.tokenizeStrings(t).slice(-r);return{text:n.join(""),tokens:n.map(this.hash)}}takeFirstTokens(t,r){let n=this.tokenizeStrings(t).slice(0,r);return{text:n.join(""),tokens:n.map(this.hash)}}takeLastLinesTokens(t,r){let{text:n}=this.takeLastTokens(t,r);if(n.length===t.length||t[t.length-n.length-1]===`
[71] Fix | Delete
`)return n;let s=n.indexOf(`
[72] Fix | Delete
`);return n.substring(s+1)}},use={cl100k_base:{python:3.99,typescript:4.54,typescriptreact:4.58,javascript:4.76,csharp:5.13,java:4.86,cpp:3.85,php:4.1,html:4.57,vue:4.22,go:3.93,dart:5.66,javascriptreact:4.81,css:3.37},o200k_base:{python:4.05,typescript:4.12,typescriptreact:5.01,javascript:4.47,csharp:5.47,java:4.86,cpp:3.8,php:4.35,html:4.86,vue:4.3,go:4.21,dart:5.7,javascriptreact:4.83,css:3.33}},uC=4,Sm=class{constructor(t="o200k_base",r){this.languageId=r;this.tokenizerName=t}static{o(this,"ApproximateTokenizer")}tokenize(t){return this.tokenizeStrings(t).map(r=>{let n=0;for(let s=0;s<r.length;s++)n=n*Math.pow(10,uC)+r.charCodeAt(s);return n})}detokenize(t){return t.map(r=>{let n=[],s=r.toString();for(;s.length>0;){let a=s.slice(-uC),l=String.fromCharCode(parseInt(a));n.unshift(l),s=s.slice(0,-uC)}return n.join("")}).join("")}tokenizeStrings(t){return t.match(/.{1,4}/g)??[]}getEffectiveTokenLength(){return this.tokenizerName&&this.languageId?use[this.tokenizerName]?.[this.languageId]??4:4}tokenLength(t){return Math.ceil(t.length/this.getEffectiveTokenLength())}takeLastTokens(t,r){if(r<=0)return{text:"",tokens:[]};let n=t.slice(-Math.floor(r*this.getEffectiveTokenLength()));return{text:n,tokens:Array.from({length:this.tokenLength(n)},(s,a)=>a)}}takeFirstTokens(t,r){if(r<=0)return{text:"",tokens:[]};let n=t.slice(0,Math.floor(r*this.getEffectiveTokenLength()));return{text:n,tokens:Array.from({length:this.tokenLength(n)},(s,a)=>a)}}takeLastLinesTokens(t,r){let{text:n}=this.takeLastTokens(t,r);if(n.length===t.length||t[t.length-n.length-1]===`
[73] Fix | Delete
`)return n;let s=n.indexOf(`
[74] Fix | Delete
`);return n.substring(s+1)}};async function wU(e){try{let t=await fC.create(e);o3.set(e,t)}catch{}}o(wU,"setTokenizer");var s3=(async()=>{o3.set("mock",new dC),await Promise.all([wU("cl100k_base"),wU("o200k_base")])})();var fse=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r},PU=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},mC,a3,RU,pC=class extends lt{static{o(this,"AssertError")}constructor(t){let r=t.First();super(r===void 0?"Invalid Value":r.message),mC.add(this),a3.set(this,void 0),fse(this,a3,t,"f"),this.error=r}Errors(){return new _l(PU(this,mC,"m",RU).call(this))}};a3=new WeakMap,mC=new WeakSet,RU=o(function*(){this.error&&(yield this.error),yield*PU(this,a3,"f")},"_AssertError_Iterator");function SU(e,t,r){if(!Rt(e,t,r))throw new pC(u0(e,t,r))}o(SU,"AssertValue");function l3(...e){return e.length===3?SU(e[0],e[1],e[2]):SU(e[0],[],e[1])}o(l3,"Assert");function dse(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=rr(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=rr(e[r]);return t}o(dse,"FromObject");function mse(e){return e.map(t=>rr(t))}o(mse,"FromArray");function pse(e){return e.slice()}o(pse,"FromTypedArray");function gse(e){return new Map(rr([...e.entries()]))}o(gse,"FromMap");function hse(e){return new Set(rr([...e.entries()]))}o(hse,"FromSet");function xse(e){return new Date(e.toISOString())}o(xse,"FromDate");function rr(e){if(at(e))return mse(e);if(Ci(e))return xse(e);if(Bo(e))return pse(e);if(KS(e))return gse(e);if(YS(e))return hse(e);if(It(e))return dse(e);if(lo(e))return e;throw new Error("ValueClone: Unable to clone value")}o(rr,"Clone");var No=class extends lt{static{o(this,"ValueCreateError")}constructor(t,r){super(r),this.schema=t}};function nr(e){return cl(e)?e():rr(e)}o(nr,"FromDefault");function _se(e,t){return st(e,"default")?nr(e.default):{}}o(_se,"FromAny");function yse(e,t){return{}}o(yse,"FromArgument");function bse(e,t){if(e.uniqueItems===!0&&!st(e,"default"))throw new No(e,"Array with the uniqueItems constraint requires a default value");if("contains"in e&&!st(e,"default"))throw new No(e,"Array with the contains constraint requires a default value");return"default"in e?nr(e.default):e.minItems!==void 0?Array.from({length:e.minItems}).map(r=>to(e.items,t)):[]}o(bse,"FromArray");function vse(e,t){return st(e,"default")?nr(e.default):async function*(){}()}o(vse,"FromAsyncIterator");function Tse(e,t){return st(e,"default")?nr(e.default):BigInt(0)}o(Tse,"FromBigInt");function Cse(e,t){return st(e,"default")?nr(e.default):!1}o(Cse,"FromBoolean");function Ese(e,t){if(st(e,"default"))return nr(e.default);{let r=to(e.returns,t);return typeof r=="object"&&!Array.isArray(r)?class{constructor(){for(let[n,s]of Object.entries(r)){let a=this;a[n]=s}}}:class{}}}o(Ese,"FromConstructor");function Ise(e,t){return st(e,"default")?nr(e.default):e.minimumTimestamp!==void 0?new Date(e.minimumTimestamp):new Date}o(Ise,"FromDate");function wse(e,t){return st(e,"default")?nr(e.default):()=>to(e.returns,t)}o(wse,"FromFunction");function Sse(e,t){let r=globalThis.Object.values(e.$defs),n=e.$defs[e.$ref];return to(n,[...t,...r])}o(Sse,"FromImport");function Pse(e,t){return st(e,"default")?nr(e.default):e.minimum!==void 0?e.minimum:0}o(Pse,"FromInteger");function Rse(e,t){if(st(e,"default"))return nr(e.default);{let r=e.allOf.reduce((n,s)=>{let a=to(s,t);return typeof a=="object"?{...n,...a}:a},{});if(!Rt(e,t,r))throw new No(e,"Intersect produced invalid value. Consider using a default value.");return r}}o(Rse,"FromIntersect");function Ase(e,t){return st(e,"default")?nr(e.default):function*(){}()}o(Ase,"FromIterator");function Dse(e,t){return st(e,"default")?nr(e.default):e.const}o(Dse,"FromLiteral");function kse(e,t){if(st(e,"default"))return nr(e.default);throw new No(e,"Never types cannot be created. Consider using a default value.")}o(kse,"FromNever");function Nse(e,t){if(st(e,"default"))return nr(e.default);throw new No(e,"Not types must have a default value")}o(Nse,"FromNot");function Ose(e,t){return st(e,"default")?nr(e.default):null}o(Ose,"FromNull");function Lse(e,t){return st(e,"default")?nr(e.default):e.minimum!==void 0?e.minimum:0}o(Lse,"FromNumber");function Fse(e,t){if(st(e,"default"))return nr(e.default);{let r=new Set(e.required),n={};for(let[s,a]of Object.entries(e.properties))r.has(s)&&(n[s]=to(a,t));return n}}o(Fse,"FromObject");function Mse(e,t){return st(e,"default")?nr(e.default):Promise.resolve(to(e.item,t))}o(Mse,"FromPromise");function Use(e,t){let[r,n]=Object.entries(e.patternProperties)[0];if(st(e,"default"))return nr(e.default);if(r===a0||r===s0)return{};{let s=r.slice(1,r.length-1).split("|"),a={};for(let l of s)a[l]=to(n,t);return a}}o(Use,"FromRecord");function Bse(e,t){return st(e,"default")?nr(e.default):to(er(e,t),t)}o(Bse,"FromRef");function $se(e,t){if(st(e,"default"))return nr(e.default);throw new No(e,"RegExp types cannot be created. Consider using a default value.")}o($se,"FromRegExp");function jse(e,t){if(e.pattern!==void 0){if(st(e,"default"))return nr(e.default);throw new No(e,"String types with patterns must specify a default value")}else if(e.format!==void 0){if(st(e,"default"))return nr(e.default);throw new No(e,"String types with formats must specify a default value")}else return st(e,"default")?nr(e.default):e.minLength!==void 0?Array.from({length:e.minLength}).map(()=>" ").join(""):""}o(jse,"FromString");function Wse(e,t){return st(e,"default")?nr(e.default):"value"in e?Symbol.for(e.value):Symbol()}o(Wse,"FromSymbol");function qse(e,t){if(st(e,"default"))return nr(e.default);if(!R5(e))throw new No(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return Bf(e)[0]}o(qse,"FromTemplateLiteral");function Hse(e,t){if(AU++>Zse)throw new No(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return st(e,"default")?nr(e.default):to(er(e,t),t)}o(Hse,"FromThis");function zse(e,t){return st(e,"default")?nr(e.default):e.items===void 0?[]:Array.from({length:e.minItems}).map((r,n)=>to(e.items[n],t))}o(zse,"FromTuple");function Vse(e,t){if(st(e,"default"))return nr(e.default)}o(Vse,"FromUndefined");function Gse(e,t){if(st(e,"default"))return nr(e.default);if(e.anyOf.length===0)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return to(e.anyOf[0],t)}o(Gse,"FromUnion");function Kse(e,t){return st(e,"default")?nr(e.default):e.minByteLength!==void 0?new Uint8Array(e.minByteLength):new Uint8Array(0)}o(Kse,"FromUint8Array");function Yse(e,t){return st(e,"default")?nr(e.default):{}}o(Yse,"FromUnknown");function Xse(e,t){if(st(e,"default"))return nr(e.default)}o(Xse,"FromVoid");function Jse(e,t){if(st(e,"default"))return nr(e.default);throw new Error("User defined types must specify a default value")}o(Jse,"FromKind");function to(e,t){let r=Nn(e,t),n=e;switch(n[re]){case"Any":return _se(n,r);case"Argument":return yse(n,r);case"Array":return bse(n,r);case"AsyncIterator":return vse(n,r);case"BigInt":return Tse(n,r);case"Boolean":return Cse(n,r);case"Constructor":return Ese(n,r);case"Date":return Ise(n,r);case"Function":return wse(n,r);case"Import":return Sse(n,r);case"Integer":return Pse(n,r);case"Intersect":return Rse(n,r);case"Iterator":return Ase(n,r);case"Literal":return Dse(n,r);case"Never":return kse(n,r);case"Not":return Nse(n,r);case"Null":return Ose(n,r);case"Number":return Lse(n,r);case"Object":return Fse(n,r);case"Promise":return Mse(n,r);case"Record":return Use(n,r);case"Ref":return Bse(n,r);case"RegExp":return $se(n,r);case"String":return jse(n,r);case"Symbol":return Wse(n,r);case"TemplateLiteral":return qse(n,r);case"This":return Hse(n,r);case"Tuple":return zse(n,r);case"Undefined":return Vse(n,r);case"Union":return Gse(n,r);case"Uint8Array":return Kse(n,r);case"Unknown":return Yse(n,r);case"Void":return Xse(n,r);default:if(!Ei.Has(n[re]))throw new No(n,"Unknown type");return Jse(n,r)}}o(to,"Visit");var Zse=512,AU=0;function us(...e){return AU=0,e.length===2?to(e[0],e[1]):to(e[0],[])}o(us,"Create");var c3=class extends lt{static{o(this,"ValueCastError")}constructor(t,r){super(r),this.schema=t}};function Qse(e,t,r){if(e[re]==="Object"&&typeof r=="object"&&!la(r)){let n=e,s=Object.getOwnPropertyNames(r),a=Object.entries(n.properties),[l,c]=[1/a.length,a.length];return a.reduce((u,[d,f])=>{let m=f[re]==="Literal"&&f.const===r[d]?c:0,p=Rt(f,t,r[d])?l:0,g=s.includes(d)?l:0;return u+(m+p+g)},0)}else return Rt(e,t,r)?1:0}o(Qse,"ScoreUnion");function e0e(e,t,r){let n=e.anyOf.map(l=>er(l,t)),[s,a]=[n[0],0];for(let l of n){let c=Qse(l,t,r);c>a&&(s=l,a=c)}return s}o(e0e,"SelectUnion");function t0e(e,t,r){if("default"in e)return typeof r=="function"?e.default:rr(e.default);{let n=e0e(e,t,r);return vg(n,t,r)}}o(t0e,"CastUnion");function r0e(e,t,r){return Rt(e,t,r)?rr(r):us(e,t)}o(r0e,"DefaultClone");function n0e(e,t,r){return Rt(e,t,r)?r:us(e,t)}o(n0e,"Default");function i0e(e,t,r){if(Rt(e,t,r))return rr(r);let n=at(r)?rr(r):us(e,t),s=Ve(e.minItems)&&n.length<e.minItems?[...n,...Array.from({length:e.minItems-n.length},()=>null)]:n,l=(Ve(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s).map(u=>zs(e.items,t,u));if(e.uniqueItems!==!0)return l;let c=[...new Set(l)];if(!Rt(e,t,c))throw new c3(e,"Array cast produced invalid data due to uniqueItems constraint");return c}o(i0e,"FromArray");function o0e(e,t,r){if(Rt(e,t,r))return us(e,t);let n=new Set(e.returns.required||[]),s=o(function(){},"result");for(let[a,l]of Object.entries(e.returns.properties))!n.has(a)&&r.prototype[a]===void 0||(s.prototype[a]=zs(l,t,r.prototype[a]));return s}o(o0e,"FromConstructor");function s0e(e,t,r){let n=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return zs(s,[...t,...n],r)}o(s0e,"FromImport");function a0e(e,t,r){let n=us(e,t),s=It(n)&&It(r)?{...n,...r}:r;return Rt(e,t,s)?s:us(e,t)}o(a0e,"FromIntersect");function l0e(e,t,r){throw new c3(e,"Never types cannot be cast")}o(l0e,"FromNever");function c0e(e,t,r){if(Rt(e,t,r))return r;if(r===null||typeof r!="object")return us(e,t);let n=new Set(e.required||[]),s={};for(let[a,l]of Object.entries(e.properties))!n.has(a)&&r[a]===void 0||(s[a]=zs(l,t,r[a]));if(typeof e.additionalProperties=="object"){let a=Object.getOwnPropertyNames(e.properties);for(let l of Object.getOwnPropertyNames(r))a.includes(l)||(s[l]=zs(e.additionalProperties,t,r[l]))}return s}o(c0e,"FromObject");function u0e(e,t,r){if(Rt(e,t,r))return rr(r);if(r===null||typeof r!="object"||Array.isArray(r)||r instanceof Date)return us(e,t);let n=Object.getOwnPropertyNames(e.patternProperties)[0],s=e.patternProperties[n],a={};for(let[l,c]of Object.entries(r))a[l]=zs(s,t,c);return a}o(u0e,"FromRecord");function f0e(e,t,r){return zs(er(e,t),t,r)}o(f0e,"FromRef");function d0e(e,t,r){return zs(er(e,t),t,r)}o(d0e,"FromThis");function m0e(e,t,r){return Rt(e,t,r)?rr(r):at(r)?e.items===void 0?[]:e.items.map((n,s)=>zs(n,t,r[s])):us(e,t)}o(m0e,"FromTuple");function p0e(e,t,r){return Rt(e,t,r)?rr(r):t0e(e,t,r)}o(p0e,"FromUnion");function zs(e,t,r){let n=Yt(e.$id)?Nn(e,t):t,s=e;switch(e[re]){case"Array":return i0e(s,n,r);case"Constructor":return o0e(s,n,r);case"Import":return s0e(s,n,r);case"Intersect":return a0e(s,n,r);case"Never":return l0e(s,n,r);case"Object":return c0e(s,n,r);case"Record":return u0e(s,n,r);case"Ref":return f0e(s,n,r);case"This":return d0e(s,n,r);case"Tuple":return m0e(s,n,r);case"Union":return p0e(s,n,r);case"Date":case"Symbol":case"Uint8Array":return r0e(e,t,r);default:return n0e(s,n,r)}}o(zs,"Visit");function vg(...e){return e.length===3?zs(e[0],e[1],e[2]):zs(e[0],[],e[1])}o(vg,"Cast");function g0e(e){return fl(e)&&e[re]!=="Unsafe"}o(g0e,"IsCheckable");function h0e(e,t,r){return at(r)?r.map(n=>ro(e.items,t,n)):r}o(h0e,"FromArray");function x0e(e,t,r){let n=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return ro(s,[...t,...n],r)}o(x0e,"FromImport");function _0e(e,t,r){let n=e.unevaluatedProperties,a=e.allOf.map(c=>ro(c,t,rr(r))).reduce((c,u)=>It(u)?{...c,...u}:u,{});if(!It(r)||!It(a)||!fl(n))return a;let l=$i(e);for(let c of Object.getOwnPropertyNames(r))l.includes(c)||Rt(n,t,r[c])&&(a[c]=ro(n,t,r[c]));return a}o(_0e,"FromIntersect");function y0e(e,t,r){if(!It(r)||at(r))return r;let n=e.additionalProperties;for(let s of Object.getOwnPropertyNames(r)){if(st(e.properties,s)){r[s]=ro(e.properties[s],t,r[s]);continue}if(fl(n)&&Rt(n,t,r[s])){r[s]=ro(n,t,r[s]);continue}delete r[s]}return r}o(y0e,"FromObject");function b0e(e,t,r){if(!It(r))return r;let n=e.additionalProperties,s=Object.getOwnPropertyNames(r),[a,l]=Object.entries(e.patternProperties)[0],c=new RegExp(a);for(let u of s){if(c.test(u)){r[u]=ro(l,t,r[u]);continue}if(fl(n)&&Rt(n,t,r[u])){r[u]=ro(n,t,r[u]);continue}delete r[u]}return r}o(b0e,"FromRecord");function v0e(e,t,r){return ro(er(e,t),t,r)}o(v0e,"FromRef");function T0e(e,t,r){return ro(er(e,t),t,r)}o(T0e,"FromThis");function C0e(e,t,r){if(!at(r))return r;if(Dr(e.items))return[];let n=Math.min(r.length,e.items.length);for(let s=0;s<n;s++)r[s]=ro(e.items[s],t,r[s]);return r.length>n?r.slice(0,n):r}o(C0e,"FromTuple");function E0e(e,t,r){for(let n of e.anyOf)if(g0e(n)&&Rt(n,t,r))return ro(n,t,r);return r}o(E0e,"FromUnion");function ro(e,t,r){let n=Yt(e.$id)?Nn(e,t):t,s=e;switch(s[re]){case"Array":return h0e(s,n,r);case"Import":return x0e(s,n,r);case"Intersect":return _0e(s,n,r);case"Object":return y0e(s,n,r);case"Record":return b0e(s,n,r);case"Ref":return v0e(s,n,r);case"This":return T0e(s,n,r);case"Tuple":return C0e(s,n,r);case"Union":return E0e(s,n,r);default:return r}}o(ro,"Visit");function u3(...e){return e.length===3?ro(e[0],e[1],e[2]):ro(e[0],[],e[1])}o(u3,"Clean");function f3(e){return Yt(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}o(f3,"IsStringNumeric");function I0e(e){return zn(e)||o0(e)||Ve(e)}o(I0e,"IsValueToString");function Tg(e){return e===!0||Ve(e)&&e===1||zn(e)&&e===BigInt("1")||Yt(e)&&(e.toLowerCase()==="true"||e==="1")}o(Tg,"IsValueTrue");function Cg(e){return e===!1||Ve(e)&&(e===0||Object.is(e,-0))||zn(e)&&e===BigInt("0")||Yt(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}o(Cg,"IsValueFalse");function w0e(e){return Yt(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(w0e,"IsTimeStringWithTimeZone");function S0e(e){return Yt(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(S0e,"IsTimeStringWithoutTimeZone");function P0e(e){return Yt(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(P0e,"IsDateTimeStringWithTimeZone");function R0e(e){return Yt(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(R0e,"IsDateTimeStringWithoutTimeZone");function A0e(e){return Yt(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}o(A0e,"IsDateString");function D0e(e,t){let r=kU(e);return r===t?r:e}o(D0e,"TryConvertLiteralString");function k0e(e,t){let r=NU(e);return r===t?r:e}o(k0e,"TryConvertLiteralNumber");function N0e(e,t){let r=DU(e);return r===t?r:e}o(N0e,"TryConvertLiteralBoolean");function O0e(e,t){return Yt(e.const)?D0e(t,e.const):Ve(e.const)?k0e(t,e.const):o0(e.const)?N0e(t,e.const):t}o(O0e,"TryConvertLiteral");function DU(e){return Tg(e)?!0:Cg(e)?!1:e}o(DU,"TryConvertBoolean");function L0e(e){let t=o(r=>r.split(".")[0],"truncateInteger");return f3(e)?BigInt(t(e)):Ve(e)?BigInt(Math.trunc(e)):Cg(e)?BigInt(0):Tg(e)?BigInt(1):e}o(L0e,"TryConvertBigInt");function kU(e){return ca(e)&&e.description!==void 0?e.description.toString():I0e(e)?e.toString():e}o(kU,"TryConvertString");function NU(e){return f3(e)?parseFloat(e):Tg(e)?1:Cg(e)?0:e}o(NU,"TryConvertNumber");function F0e(e){return f3(e)?parseInt(e):Ve(e)?Math.trunc(e):Tg(e)?1:Cg(e)?0:e}o(F0e,"TryConvertInteger");function M0e(e){return Yt(e)&&e.toLowerCase()==="null"?null:e}o(M0e,"TryConvertNull");function U0e(e){return Yt(e)&&e==="undefined"?void 0:e}o(U0e,"TryConvertUndefined");function B0e(e){return Ci(e)?e:Ve(e)?new Date(e):Tg(e)?new Date(1):Cg(e)?new Date(0):f3(e)?new Date(parseInt(e)):S0e(e)?new Date(`1970-01-01T${e}.000Z`):w0e(e)?new Date(`1970-01-01T${e}`):R0e(e)?new Date(`${e}.000Z`):P0e(e)?new Date(e):A0e(e)?new Date(`${e}T00:00:00.000Z`):e}o(B0e,"TryConvertDate");function $0e(e,t,r){return(at(r)?r:[r]).map(s=>Vs(e.items,t,s))}o($0e,"FromArray");function j0e(e,t,r){return L0e(r)}o(j0e,"FromBigInt");function W0e(e,t,r){return DU(r)}o(W0e,"FromBoolean");function q0e(e,t,r){return B0e(r)}o(q0e,"FromDate");function H0e(e,t,r){let n=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return Vs(s,[...t,...n],r)}o(H0e,"FromImport");function z0e(e,t,r){return F0e(r)}o(z0e,"FromInteger");function V0e(e,t,r){return e.allOf.reduce((n,s)=>Vs(s,t,n),r)}o(V0e,"FromIntersect");function G0e(e,t,r){return O0e(e,r)}o(G0e,"FromLiteral");function K0e(e,t,r){return M0e(r)}o(K0e,"FromNull");function Y0e(e,t,r){return NU(r)}o(Y0e,"FromNumber");function X0e(e,t,r){if(!It(r))return r;for(let n of Object.getOwnPropertyNames(e.properties))st(r,n)&&(r[n]=Vs(e.properties[n],t,r[n]));return r}o(X0e,"FromObject");function J0e(e,t,r){if(!It(r))return r;let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[s];for(let[l,c]of Object.entries(r))r[l]=Vs(a,t,c);return r}o(J0e,"FromRecord");function Z0e(e,t,r){return Vs(er(e,t),t,r)}o(Z0e,"FromRef");function Q0e(e,t,r){return kU(r)}o(Q0e,"FromString");function eae(e,t,r){return Yt(r)||Ve(r)?Symbol(r):r}o(eae,"FromSymbol");function tae(e,t,r){return Vs(er(e,t),t,r)}o(tae,"FromThis");function rae(e,t,r){return at(r)&&!Dr(e.items)?r.map((s,a)=>a<e.items.length?Vs(e.items[a],t,s):s):r}o(rae,"FromTuple");function nae(e,t,r){return U0e(r)}o(nae,"FromUndefined");function iae(e,t,r){for(let n of e.anyOf){let s=Vs(n,t,rr(r));if(Rt(n,t,s))return s}return r}o(iae,"FromUnion");function Vs(e,t,r){let n=Nn(e,t),s=e;switch(e[re]){case"Array":return $0e(s,n,r);case"BigInt":return j0e(s,n,r);case"Boolean":return W0e(s,n,r);case"Date":return q0e(s,n,r);case"Import":return H0e(s,n,r);case"Integer":return z0e(s,n,r);case"Intersect":return V0e(s,n,r);case"Literal":return G0e(s,n,r);case"Null":return K0e(s,n,r);case"Number":return Y0e(s,n,r);case"Object":return X0e(s,n,r);case"Record":return J0e(s,n,r);case"Ref":return Z0e(s,n,r);case"String":return Q0e(s,n,r);case"Symbol":return eae(s,n,r);case"This":return tae(s,n,r);case"Tuple":return rae(s,n,r);case"Undefined":return nae(s,n,r);case"Union":return iae(s,n,r);default:return r}}o(Vs,"Visit");function d3(...e){return e.length===3?Vs(e[0],e[1],e[2]):Vs(e[0],[],e[1])}o(d3,"Convert");function OU(...e){let[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Rt(t,r,n))throw new Zf(t,n,u0(t,r,n).First());return _a(t,r)?Qf(t,r,n):n}o(OU,"Decode");function Za(e,t){let r=st(e,"default")?e.default:void 0,n=cl(r)?r():rr(r);return Dr(t)?n:It(t)&&It(n)?Object.assign(n,t):t}o(Za,"ValueOrDefault");function gC(e){return fl(e)&&"default"in e}o(gC,"HasDefaultProperty");function oae(e,t,r){if(at(r)){for(let s=0;s<r.length;s++)r[s]=Di(e.items,t,r[s]);return r}let n=Za(e,r);if(!at(n))return n;for(let s=0;s<n.length;s++)n[s]=Di(e.items,t,n[s]);return n}o(oae,"FromArray");function sae(e,t,r){return Ci(r)?r:Za(e,r)}o(sae,"FromDate");function aae(e,t,r){let n=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return Di(s,[...t,...n],r)}o(aae,"FromImport");function lae(e,t,r){let n=Za(e,r);return e.allOf.reduce((s,a)=>{let l=Di(a,t,n);return It(l)?{...s,...l}:l},{})}o(lae,"FromIntersect");function cae(e,t,r){let n=Za(e,r);if(!It(n))return n;let s=Object.getOwnPropertyNames(e.properties);for(let a of s){let l=Di(e.properties[a],t,n[a]);Dr(l)||(n[a]=Di(e.properties[a],t,n[a]))}if(!gC(e.additionalProperties))return n;for(let a of Object.getOwnPropertyNames(n))s.includes(a)||(n[a]=Di(e.additionalProperties,t,n[a]));return n}o(cae,"FromObject");function uae(e,t,r){let n=Za(e,r);if(!It(n))return n;let s=e.additionalProperties,[a,l]=Object.entries(e.patternProperties)[0],c=new RegExp(a);for(let u of Object.getOwnPropertyNames(n))c.test(u)&&gC(l)&&(n[u]=Di(l,t,n[u]));if(!gC(s))return n;for(let u of Object.getOwnPropertyNames(n))c.test(u)||(n[u]=Di(s,t,n[u]));return n}o(uae,"FromRecord");function fae(e,t,r){return Di(er(e,t),t,Za(e,r))}o(fae,"FromRef");function dae(e,t,r){return Di(er(e,t),t,r)}o(dae,"FromThis");function mae(e,t,r){let n=Za(e,r);if(!at(n)||Dr(e.items))return n;let[s,a]=[e.items,Math.max(e.items.length,n.length)];for(let l=0;l<a;l++)l<s.length&&(n[l]=Di(s[l],t,n[l]));return n}o(mae,"FromTuple");function pae(e,t,r){let n=Za(e,r);for(let s of e.anyOf){let a=Di(s,t,rr(n));if(Rt(s,t,a))return a}return n}o(pae,"FromUnion");function Di(e,t,r){let n=Nn(e,t),s=e;switch(s[re]){case"Array":return oae(s,n,r);case"Date":return sae(s,n,r);case"Import":return aae(s,n,r);case"Intersect":return lae(s,n,r);case"Object":return cae(s,n,r);case"Record":return uae(s,n,r);case"Ref":return fae(s,n,r);case"This":return dae(s,n,r);case"Tuple":return mae(s,n,r);case"Union":return pae(s,n,r);default:return Za(s,r)}}o(Di,"Visit");function m3(...e){return e.length===3?Di(e[0],e[1],e[2]):Di(e[0],[],e[1])}o(m3,"Default");var Gs={};t0(Gs,{Delete:()=>hae,Format:()=>Eg,Get:()=>_ae,Has:()=>xae,Set:()=>gae,ValuePointerRootDeleteError:()=>g3,ValuePointerRootSetError:()=>p3});var p3=class extends lt{static{o(this,"ValuePointerRootSetError")}constructor(t,r,n){super("Cannot set root value"),this.value=t,this.path=r,this.update=n}},g3=class extends lt{static{o(this,"ValuePointerRootDeleteError")}constructor(t,r){super("Cannot delete root value"),this.value=t,this.path=r}};function LU(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}o(LU,"Escape");function*Eg(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n<e.length;n++)e.charAt(n)==="/"?(n===0||(r=n,yield LU(e.slice(t,r))),t=n+1):r=n;yield LU(e.slice(t))}o(Eg,"Format");function gae(e,t,r){if(t==="")throw new p3(e,t,r);let[n,s,a]=[null,e,""];for(let l of Eg(t))s[l]===void 0&&(s[l]={}),n=s,s=s[l],a=l;n[a]=r}o(gae,"Set");function hae(e,t){if(t==="")throw new g3(e,t);let[r,n,s]=[null,e,""];for(let a of Eg(t)){if(n[a]===void 0||n[a]===null)return;r=n,n=n[a],s=a}if(Array.isArray(r)){let a=parseInt(s);r.splice(a,1)}else delete r[s]}o(hae,"Delete");function xae(e,t){if(t==="")return!0;let[r,n,s]=[null,e,""];for(let a of Eg(t)){if(n[a]===void 0)return!1;r=n,n=n[a],s=a}return Object.getOwnPropertyNames(r).includes(s)}o(xae,"Has");function _ae(e,t){if(t==="")return e;let r=e;for(let n of Eg(t)){if(r[n]===void 0)return;r=r[n]}return r}o(_ae,"Get");function yae(e,t){if(!It(t))return!1;let r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)],n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];return r.length!==n.length?!1:r.every(s=>ef(e[s],t[s]))}o(yae,"ObjectType");function bae(e,t){return Ci(t)&&e.getTime()===t.getTime()}o(bae,"DateType");function vae(e,t){return!at(t)||e.length!==t.length?!1:e.every((r,n)=>ef(r,t[n]))}o(vae,"ArrayType");function Tae(e,t){return!Bo(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name?!1:e.every((r,n)=>ef(r,t[n]))}o(Tae,"TypedArrayType");function Cae(e,t){return e===t}o(Cae,"ValueType");function ef(e,t){if(Ci(e))return bae(e,t);if(Bo(e))return Tae(e,t);if(at(e))return vae(e,t);if(It(e))return yae(e,t);if(lo(e))return Cae(e,t);throw new Error("ValueEquals: Unable to compare value")}o(ef,"Equal");var Eae=ar({type:Vt("insert"),path:Ii(),value:Rs()}),Iae=ar({type:Vt("update"),path:Ii(),value:Rs()}),wae=ar({type:Vt("delete"),path:Ii()}),MU=sr([Eae,Iae,wae]),h3=class extends lt{static{o(this,"ValueDiffError")}constructor(t,r){super(r),this.value=t}};function x3(e,t){return{type:"update",path:e,value:t}}o(x3,"CreateUpdate");function UU(e,t){return{type:"insert",path:e,value:t}}o(UU,"CreateInsert");function BU(e){return{type:"delete",path:e}}o(BU,"CreateDelete");function FU(e){if(globalThis.Object.getOwnPropertySymbols(e).length>0)throw new h3(e,"Cannot diff objects with symbols")}o(FU,"AssertDiffable");function*Sae(e,t,r){if(FU(t),FU(r),!Rb(r))return yield x3(e,r);let n=globalThis.Object.getOwnPropertyNames(t),s=globalThis.Object.getOwnPropertyNames(r);for(let a of s)st(t,a)||(yield UU(`${e}/${a}`,r[a]));for(let a of n)st(r,a)&&(ef(t,r)||(yield*_3(`${e}/${a}`,t[a],r[a])));for(let a of n)st(r,a)||(yield BU(`${e}/${a}`))}o(Sae,"ObjectType");function*Pae(e,t,r){if(!at(r))return yield x3(e,r);for(let n=0;n<Math.min(t.length,r.length);n++)yield*_3(`${e}/${n}`,t[n],r[n]);for(let n=0;n<r.length;n++)n<t.length||(yield UU(`${e}/${n}`,r[n]));for(let n=t.length-1;n>=0;n--)n<r.length||(yield BU(`${e}/${n}`))}o(Pae,"ArrayType");function*Rae(e,t,r){if(!Bo(r)||t.length!==r.length||globalThis.Object.getPrototypeOf(t).constructor.name!==globalThis.Object.getPrototypeOf(r).constructor.name)return yield x3(e,r);for(let n=0;n<Math.min(t.length,r.length);n++)yield*_3(`${e}/${n}`,t[n],r[n])}o(Rae,"TypedArrayType");function*Aae(e,t,r){t!==r&&(yield x3(e,r))}o(Aae,"ValueType");function*_3(e,t,r){if(Rb(t))return yield*Sae(e,t,r);if(at(t))return yield*Pae(e,t,r);if(Bo(t))return yield*Rae(e,t,r);if(lo(t))return yield*Aae(e,t,r);throw new h3(t,"Unable to diff value")}o(_3,"Visit");function $U(e,t){return[..._3("",e,t)]}o($U,"Diff");function Dae(e){return e.length>0&&e[0].path===""&&e[0].type==="update"}o(Dae,"IsRootUpdate");function kae(e){return e.length===0}o(kae,"IsIdentity");function jU(e,t){if(Dae(t))return rr(t[0].value);if(kae(t))return rr(e);let r=rr(e);for(let n of t)switch(n.type){case"insert":{Gs.Set(r,n.path,n.value);break}case"update":{Gs.Set(r,n.path,n.value);break}case"delete":{Gs.Delete(r,n.path);break}}return r}o(jU,"Patch");function WU(...e){let[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]],s=_a(t,r)?td(t,r,n):n;if(!Rt(t,r,s))throw new ed(t,s,u0(t,r,s).First());return s}o(WU,"Encode");function y3(e){return It(e)&&!at(e)}o(y3,"IsStandardObject");var b3=class extends lt{static{o(this,"ValueMutateError")}constructor(t){super(t)}};function Nae(e,t,r,n){if(!y3(r))Gs.Set(e,t,rr(n));else{let s=Object.getOwnPropertyNames(r),a=Object.getOwnPropertyNames(n);for(let l of s)a.includes(l)||delete r[l];for(let l of a)s.includes(l)||(r[l]=null);for(let l of a)hC(e,`${t}/${l}`,r[l],n[l])}}o(Nae,"ObjectType");function Oae(e,t,r,n){if(!at(r))Gs.Set(e,t,rr(n));else{for(let s=0;s<n.length;s++)hC(e,`${t}/${s}`,r[s],n[s]);r.splice(n.length)}}o(Oae,"ArrayType");function Lae(e,t,r,n){if(Bo(r)&&r.length===n.length)for(let s=0;s<r.length;s++)r[s]=n[s];else Gs.Set(e,t,rr(n))}o(Lae,"TypedArrayType");function Fae(e,t,r,n){r!==n&&Gs.Set(e,t,n)}o(Fae,"ValueType");function hC(e,t,r,n){if(at(n))return Oae(e,t,r,n);if(Bo(n))return Lae(e,t,r,n);if(y3(n))return Nae(e,t,r,n);if(lo(n))return Fae(e,t,r,n)}o(hC,"Visit");function qU(e){return Bo(e)||lo(e)}o(qU,"IsNonMutableValue");function Mae(e,t){return y3(e)&&at(t)||at(e)&&y3(t)}o(Mae,"IsMismatchedValue");function HU(e,t){if(qU(e)||qU(t))throw new b3("Only object and array types can be mutated at the root level");if(Mae(e,t))throw new b3("Cannot assign due type mismatch of assignable values");hC(e,"",e,t)}o(HU,"Mutate");var v3=class extends lt{static{o(this,"ParseError")}constructor(t){super(t)}},xC;(function(e){let t=new Map([["Assert",(a,l,c)=>(l3(a,l,c),c)],["Cast",(a,l,c)=>vg(a,l,c)],["Clean",(a,l,c)=>u3(a,l,c)],["Clone",(a,l,c)=>rr(c)],["Convert",(a,l,c)=>d3(a,l,c)],["Decode",(a,l,c)=>_a(a,l)?Qf(a,l,c):c],["Default",(a,l,c)=>m3(a,l,c)],["Encode",(a,l,c)=>_a(a,l)?td(a,l,c):c]]);function r(a){t.delete(a)}o(r,"Delete"),e.Delete=r;function n(a,l){t.set(a,l)}o(n,"Set"),e.Set=n;function s(a){return t.get(a)}o(s,"Get"),e.Get=s})(xC||(xC={}));var zU=["Clone","Clean","Default","Convert","Assert","Decode"];function Uae(e,t,r,n){return e.reduce((s,a)=>{let l=xC.Get(a);if(Dr(l))throw new v3(`Unable to find Parse operation '${a}'`);return l(t,r,s)},n)}o(Uae,"ParseValue");function VU(...e){let[t,r,n,s]=e.length===4?[e[0],e[1],e[2],e[3]]:e.length===3?at(e[0])?[e[0],e[1],[],e[2]]:[zU,e[0],e[1],e[2]]:e.length===2?[zU,e[0],[],e[1]]:(()=>{throw new v3("Invalid Arguments")})();return Uae(t,r,n,s)}o(VU,"Parse");var W0={};t0(W0,{Assert:()=>l3,Cast:()=>vg,Check:()=>Rt,Clean:()=>u3,Clone:()=>rr,Convert:()=>d3,Create:()=>us,Decode:()=>OU,Default:()=>m3,Diff:()=>$U,Edit:()=>MU,Encode:()=>WU,Equal:()=>ef,Errors:()=>u0,Hash:()=>xl,Mutate:()=>HU,Parse:()=>VU,Patch:()=>jU,ValueErrorIterator:()=>_l});var Bae="gpt-4o-copilot",q0=class e{constructor(t,r=!0){this._ctx=t;this.onModelsFetchedCallbacks=[];this.fetchedModelData=[];this.customModels=[];this.editorPreviewFeaturesDisabled=!1;r&&dn(this._ctx,n=>this.refreshAvailableModels(n))}static{o(this,"AvailableModelsManager")}async refreshAvailableModels(t){await this.refreshModels(t);for(let r of this.onModelsFetchedCallbacks)r()}addHandler(t){this.onModelsFetchedCallbacks.push(t)}getDefaultModelId(){if(this.fetchedModelData){let t=e.filterCompletionModels(this.fetchedModelData,this.editorPreviewFeaturesDisabled)[0];if(t)return t.id}return Bae}parseModelsResponse(t){try{return W0.Parse(cU,t)}catch(r){At.exception(this._ctx,r,"Failed to parse /models response from CAPI");return}}async refreshModels(t){let r=await this.fetchModels(t);r&&(this.fetchedModelData=r)}async fetchModels(t){return this.customModels=t.getTokenValue("cml")?.split(",")??[],this.editorPreviewFeaturesDisabled=t.getTokenValue("editor_preview_features")=="0",await this.fetch(t)}async fetch(t){let r=await eC(this._ctx,"/models",t);return r.ok?this.parseModelsResponse(await r.json())?.data??[]:(At.error(this._ctx,"Failed to fetch models from CAPI",{status:r.status,statusText:r.statusText}),null)}getGenericCompletionModels(){let t=e.filterCompletionModels(this.fetchedModelData,this.editorPreviewFeaturesDisabled);return e.mapCompletionModels(t)}getTokenizerForModel(t){let n=this.getGenericCompletionModels().find(s=>s.modelId===t);return n?n.tokenizer:"o200k_base"}static filterCompletionModels(t,r){return t.filter(n=>n.capabilities.type==="completion").filter(n=>!r||n.preview===!1||n.preview===void 0)}static filterModelsWithEditorPreviewFeatures(t,r){return t.filter(n=>!r||n.preview===!1||n.preview===void 0)}static mapCompletionModels(t){return t.map(r=>({modelId:r.id,label:r.name,preview:!!r.preview,tokenizer:r.capabilities.tokenizer}))}getCurrentModelRequestInfo(t=void 0){let r=this.getDefaultModelId(),n=yg(this._ctx);if(n){let c=this.getGenericCompletionModels().map(u=>u.modelId);c.includes(n)||(c.length>0&&At.error(this._ctx,`User selected model ${n} is not in the list of generic models: ${c.join(", ")}, falling back to default model.`),n=null),r===n&&(n=null)}let s=tr(this._ctx,Te.DebugOverrideEngine)||tr(this._ctx,Te.DebugOverrideEngineLegacy);if(s)return new mc(s,"override");let a=t?this._ctx.get(Le).customEngine(t):"",l=t?this._ctx.get(Le).customEngineTargetEngine(t):void 0;return n?a&&l&&n===l?new mc(a,"exp"):new mc(n,"modelpicker"):a?new mc(a,"exp"):this.customModels.length>0?new mc(this.customModels[0],"custommodel"):new mc(r,"default")}},mc=class{constructor(t,r){this.modelId=t;this.modelChoiceSource=r}static{o(this,"ModelRequestInfo")}get headers(){return{}}};function Rm(e,t=void 0){let r=e.get(q0),n=r.getCurrentModelRequestInfo(t),s=r.getTokenizerForModel(n.modelId);return{headers:n.headers,modelId:n.modelId,engineChoiceSource:n.modelChoiceSource,tokenizer:s}}o(Rm,"getEngineRequestInfo");var en=class{static{o(this,"FileSystem")}};var uB=Pt(cB());function fB(e){if(e===void 0||e===0)return"";let t=wg(e);if(t==="github/github")return t;let r=fle(e)?.toLowerCase();return r!==void 0?r:""}o(fB,"getDogFood");function wg(e){if(e!==void 0&&e!==0&&e.hostname==="github.com")return e.owner+"/"+e.repo}o(wg,"tryGetGitHubNWO");function fle(e){if(e!==void 0&&e!==0&&(e.hostname.endsWith("azure.com")||e.hostname.endsWith("visualstudio.com")))return e.owner+"/"+e.repo}o(fle,"tryGetADONWO");function Am(e,t){let r=Ca(t);return dle(e,r)}o(Am,"extractRepoInfoInBackground");var dle=xle(mle,1e4);async function mle(e,t){let r=XN(t);if(!r)return;let n=await gle(e,r);if(!n)return;let s=e.get(en),a=Mn(n,".git","config"),l;try{l=await s.readFileString(a)}catch{return}let c=hle(l)??"",u=ple(c),d={uri:n};return u===void 0?{baseFolder:d,url:c,hostname:"",owner:"",repo:"",pathname:""}:{baseFolder:d,url:c,...u}}o(mle,"extractRepoInfo");function ple(e){let t;try{if(t=(0,uB.default)(e),t.resource==""||t.owner==""||t.name==""||t.pathname=="")return}catch{return}return{hostname:t.resource,owner:t.owner,repo:t.name,pathname:t.pathname}}o(ple,"parseRepoUrl");async function gle(e,t){let r=t+"_add_to_make_longer",n=e.get(en);for(;t!=="file:///"&&t.length<r.length;){let s=Mn(t,".git","config"),a=!1;try{await n.stat(s),a=!0}catch{a=!1}if(a)return t;r=t,t=Ca(t)}}o(gle,"getRepoBaseUri");function hle(e){let t=/^\s*\[\s*remote\s+"((\\\\|\\"|[^\\"])+)"/,r=/^\s*\[remote.([^"\s]+)/,n=/^\s*url\s*=\s*([^\s#;]+)/,s=/^\s*\[/,a,l,c=!1;for(let u of e.split(`
[75] Fix | Delete
`))if(c&&a!==void 0){if(a+=u,u.endsWith("\\"))a=a.substring(0,a.length-1);else if(c=!1,l==="origin")return a}else{let d=u.match(t)??u.match(r);if(d)l=d[1];else if(u.match(s))l=void 0;else{if(a&&l!=="origin")continue;{let f=u.match(n);if(f){if(a=f[1],a.endsWith("\\"))a=a.substring(0,a.length-1),c=!0;else if(l==="origin")return a}}}}return a}o(hle,"getRepoUrlFromConfigText");var bC=class{static{o(this,"CompletedComputation")}constructor(t){this.result=t}};function xle(e,t){let r=new Ut(t),n=new Set;return(s,...a)=>{let l=JSON.stringify(a),c=r.get(l);if(c)return c.result;if(n.has(l))return 0;let u=e(s,...a);return n.add(l),u.then(d=>{r.set(l,new bC(d)),n.delete(l)}),0}}o(xle,"computeInBackgroundAndMemoize");var Sg=500,dB=8192-Sg,mB=4,T3=10,pB=1e3*5,C3={prefix:35,suffix:15,stableContext:35,volatileContext:15},_le={javascriptreact:"javascript",jsx:"javascript",typescriptreact:"typescript",jade:"pug",cshtml:"razor",c:"cpp"};function Pg(e){return e=e.toLowerCase(),_le[e]??e}o(Pg,"normalizeLanguageId");var vC=class{constructor(t){this.ctx=t;this.cache=new Ut(200)}static{o(this,"FilterSettingsToExpConfigs")}async fetchExpConfig(t,r){let n=t.stringify()+`
[76] Fix | Delete
`+JSON.stringify(r),s=this.cache.get(n);return s||(s=new TC(()=>this.ctx.get(Yu).fetchExperiments(this.ctx,r,t.toHeaders()),1e3*60*60),this.cache.set(n,s)),s.run()}getCachedExpConfig(t){return this.cache.get(t.stringify())?.value()}},TC=class{constructor(t,r=1/0){this.producer=t;this.expirationMs=r}static{o(this,"Task")}async run(){return this.promise===void 0&&(this.promise=this.producer(),this.storeResult(this.promise).then(()=>{this.expirationMs<1/0&&this.promise!==void 0&&setTimeout(()=>this.promise=void 0,this.expirationMs)})),this.promise}async storeResult(t){try{this.result=await t}finally{this.result===void 0&&(this.promise=void 0)}}value(){return this.result}};function ble(e){return"uri"in e}o(ble,"isCompletionsFiltersInfo");var Le=class e{constructor(t){this.ctx=t;this.staticFilters={};this.dynamicFilters={};this.dynamicFilterGroups=[];this.upcomingDynamicFilters={};this.assignments=new vC(this.ctx)}static{o(this,"Features")}static{this.upcomingDynamicFilterCheckDelayMs=20}static{this.upcomingTimeBucketMinutes=5+Math.floor(Math.random()*11)}registerStaticFilters(t){Object.assign(this.staticFilters,t)}registerDynamicFilter(t,r){this.dynamicFilters[t]=r}registerDynamicFilterGroup(t){this.dynamicFilterGroups.push(t)}getDynamicFilterValues(){let t={};for(let r of this.dynamicFilterGroups)Object.assign(t,r());for(let[r,n]of Object.entries(this.dynamicFilters))t[r]=n();return t}registerUpcomingDynamicFilter(t,r){this.upcomingDynamicFilters[t]=r}async updateExPValuesAndAssignments(t,r,n=et.createAndMarkAsIssued()){if(n instanceof n1)throw new Error("updateExPValuesAndAssignments should not be called with TelemetryWithExp");let s=r&&ble(r)?Am(this.ctx,r.uri):void 0,a=wg(s)??"",l=fB(s)??"",c=r?.languageId??"",u=Rm(this.ctx).modelId,d=vw(t),f=t.getTokenValue("ft")??"",m=t.getTokenValue("ol")??"",p=t.getTokenValue("cml")??"",g=t.getTokenValue("tid")??"",h=t.endpoints,x={"X-Copilot-Repository":a,"X-Copilot-FileType":c,"X-Copilot-UserKind":d,"X-Copilot-Dogfood":l,"X-Copilot-Engine":u,"X-Copilot-CustomModel":f,"X-Copilot-Orgs":m,"X-Copilot-CustomModelNames":p,"X-Copilot-CopilotTrackingId":g},_=this.getGranularityDirectory(),y=this.makeFilterSettings(x),b=_.extendFilters(y),T=await this.getExpConfig(b.newFilterSettings,h);_.update(y,+(T.variables.copilotbycallbuckets??NaN),+(T.variables.copilottimeperiodsizeinh??NaN));let v=_.extendFilters(y),S=v.newFilterSettings,R=await this.getExpConfig(S,h),j=new Promise(K=>setTimeout(K,e.upcomingDynamicFilterCheckDelayMs));for(let K of v.otherFilterSettingsToPrefetch)j=j.then(async()=>{await new Promise(V=>setTimeout(V,e.upcomingDynamicFilterCheckDelayMs)),this.getExpConfig(K,h)});return this.prepareForUpcomingFilters(S,h),new n1(n.properties,n.measurements,n.issuedTime,{filters:S,exp:R})}async fetchTokenAndUpdateExPValuesAndAssignments(t,r){let n=await this.ctx.get(Kt).getToken();return await this.updateExPValuesAndAssignments(n,t,r)}getGranularityDirectory(){if(!this.granularityDirectory){let t=this.ctx.get(mn).machineId;this.granularityDirectory=new M4(t,this.ctx.get(Ku))}return this.granularityDirectory}makeFilterSettings(t){return new Mc({...this.staticFilters,...this.getDynamicFilterValues(),...t})}async getExpConfig(t,r){try{return this.assignments.fetchExpConfig(t,r)}catch(n){return ys.createFallbackConfig(this.ctx,`Error fetching ExP config: ${String(n)}`)}}async prepareForUpcomingFilters(t,r){if(!(new Date().getMinutes()<60-e.upcomingTimeBucketMinutes))for(let[n,s]of Object.entries(this.upcomingDynamicFilters))await new Promise(a=>setTimeout(a,e.upcomingDynamicFilterCheckDelayMs)),this.getExpConfig(t.withChange(n,s()),r)}stringify(){let t=this.assignments.getCachedExpConfig(new Mc({}));return JSON.stringify(t?.variables??{})}async getFallbackExpAndFilters(){let t=this.makeFilterSettings({}),r=X2(this.ctx),n=await this.getExpConfig(t,r);return{filters:t,exp:n}}disableLogProb(t){return t.filtersAndExp.exp.variables.copilotdisablelogprob??!0}overrideBlockMode(t){return t.filtersAndExp.exp.variables.copilotoverrideblockmode||void 0}customEngine(t){return t.filtersAndExp.exp.variables.copilotcustomengine??""}customEngineTargetEngine(t){return t.filtersAndExp.exp.variables.copilotcustomenginetargetengine}suffixPercent(t){return t.filtersAndExp.exp.variables.CopilotSuffixPercent??C3.suffix}suffixMatchThreshold(t){return t.filtersAndExp.exp.variables.copilotsuffixmatchthreshold??T3}cppHeadersEnableSwitch(t){return t.filtersAndExp.exp.variables.copilotcppheadersenableswitch??!1}relatedFilesVSCodeCSharp(t){return t.filtersAndExp.exp.variables.copilotrelatedfilesvscodecsharp??!1}relatedFilesVSCodeTypeScript(t){return t.filtersAndExp.exp.variables.copilotrelatedfilesvscodetypescript??!1}relatedFilesVSCode(t){return t.filtersAndExp.exp.variables.copilotrelatedfilesvscode??!1}contextProviders(t){let r=t.filtersAndExp.exp.variables.copilotcontextproviders??"";return r?r.split(",").map(n=>n.trim()):[]}contextProviderTimeBudget(t){return t.filtersAndExp.exp.variables.copilotcontextprovidertimebudget??150}includeNeighboringFiles(t){return t.filtersAndExp.exp.variables.copilotincludeneighboringfiles??!1}excludeRelatedFiles(t){return t.filtersAndExp.exp.variables.copilotexcluderelatedfiles??!1}maxPromptCompletionTokens(t){return t.filtersAndExp.exp.variables.maxpromptcompletionTokens??dB+Sg}ideChatMaxRequestTokens(t){return t.filtersAndExp.exp.variables.idechatmaxrequesttokens??-1}ideChatExpModelIds(t){return t.filtersAndExp.exp.variables.idechatexpmodelids??""}ideChatEnableProjectMetadata(t){return t.filtersAndExp.exp.variables.idechatenableprojectmetadata??!1}workspaceContextCoordinator(t){return t.filtersAndExp.exp.variables.copilotworkspacecontextcoordinator??!1}workspaceContextCacheTime(t){return t.filtersAndExp.exp.variables.copilotworkspacecontextcachetime??pB}stableContextPercent(t){return t.filtersAndExp.exp.variables.copilotstablecontextpercent??C3.stableContext}volatileContextPercent(t){return t.filtersAndExp.exp.variables.copilotvolatilecontextpercent??C3.volatileContext}cppContextProviderParams(t){return t.filtersAndExp.exp.variables.copilotcppContextProviderParams}csharpContextProviderParams(t){return t.filtersAndExp.exp.variables.copilotcsharpcontextproviderparams}javaContextProviderParams(t){return t.filtersAndExp.exp.variables.copilotjavacontextproviderparams}multiLanguageContextProviderParams(t){return t.filtersAndExp.exp.variables.copilotmultilanguagecontextproviderparams}tsContextProviderParams(t){return t.filtersAndExp.exp.variables.copilottscontextproviderparams}completionsDebounce(t){return t.filtersAndExp.exp.variables.copilotcompletionsdebounce}enableElectronFetcher(t){return t.filtersAndExp.exp.variables.copilotelectronfetcher??!1}asyncCompletionsTimeout(t){return t.filtersAndExp.exp.variables.copilotasynccompletionstimeout??200}enablePromptContextProxyField(t){return t.filtersAndExp.exp.variables.copilotenablepromptcontextproxyfield??!1}enableProgressiveReveal(t){return t.filtersAndExp.exp.variables.copilotprogressivereveal??!1}modelAlwaysTerminatesSingleline(t){return t.filtersAndExp.exp.variables.copilotmodelterminatesingleline??!0}longLookaheadSize(t){return t.filtersAndExp.exp.variables.copilotprogressivereveallonglookaheadsize??9}shortLookaheadSize(t){return t.filtersAndExp.exp.variables.copilotprogressiverevealshortlookaheadsize??3}maxMultilineTokens(t){return t.filtersAndExp.exp.variables.copilotmaxmultilinetokens??200}multilineAfterAcceptLines(t){return t.filtersAndExp.exp.variables.copilotmultilineafteracceptlines??1}enableNESXTab(t){return t.filtersAndExp.exp.variables.copilotnesxtab??!1}getNESXTabModelID(t){return t.filtersAndExp.exp.variables.copilotnesxtabmodelid??"copilot-nes-xtab"}completionsDelay(t){return t.filtersAndExp.exp.variables.copilotcompletionsdelay??200}singleLineUnlessAccepted(t){return t.filtersAndExp.exp.variables.copilotsinglelineunlessaccepted??!1}useCompletionsComparisonPanel(t){return t.filtersAndExp.exp.variables.copilotusecompletionscomparisonpanel??!1}comparisonPanelModelIds(t){return t.filtersAndExp.exp.variables.copilotcomparisonpanelmodelids??""}comparisonPanelRandomizedMode(t){return t.filtersAndExp.exp.variables.copilotcomparisonpanelrandomizedmode??!0}};var E3=Pt(gB());var EC={python:"python",javascript:"javascript",javascriptreact:"javascript",jsx:"javascript",typescript:"typescript",typescriptreact:"tsx",go:"go",ruby:"ruby",csharp:"c-sharp",java:"java",php:"php",c:"cpp",cpp:"cpp"};function H0(e){return e in EC&&e!=="csharp"&&e!=="java"&&e!=="php"&&e!=="c"&&e!=="cpp"}o(H0,"isSupportedLanguageId");function I3(e){if(!(e in EC))throw new Error(`Unrecognized language: ${e}`);return EC[e]}o(I3,"languageIdToWasmLanguage");var CC=new Map;async function vle(e){let t;try{t=await Q4(`tree-sitter-${e}.wasm`)}catch(r){throw r instanceof Error&&"code"in r&&typeof r.code=="string"&&r.name==="Error"?new wm(`Could not load tree-sitter-${e}.wasm`,r):r}return E3.default.Language.load(t)}o(vle,"loadWasmLanguage");function Tle(e){let t=I3(e);if(!CC.has(t)){let r=vle(t);CC.set(t,r)}return CC.get(t)}o(Tle,"getLanguage");var IC=class extends Error{static{o(this,"WrappedError")}constructor(t,r){super(t,{cause:r})}};async function Dm(e,t){return(await wC(e,t))[0]}o(Dm,"parseTreeSitter");async function wC(e,t){await E3.default.init({locateFile:o(a=>uU(a),"locateFile")});let r;try{r=new E3.default}catch(a){throw a&&typeof a=="object"&&"message"in a&&typeof a.message=="string"&&a.message.includes("table index is out of bounds")?new IC(`Could not init Parse for language <${e}>`,a):a}let n=await Tle(e);r.setLanguage(n);let s=r.parse(t);return r.delete(),[s,n.version]}o(wC,"parseTreeSitterIncludingVersion");function hB(e){switch(I3(e)){case"python":return null;case"javascript":case"typescript":case"tsx":case"go":case"c-sharp":case"java":case"php":case"cpp":return"}";case"ruby":return"end"}}o(hB,"getBlockCloseToken");function Cle(e,t){let r=[];for(let n of e){if(!n[1]){let s=t.tree.getLanguage();n[1]=s.query(n[0])}r.push(...n[1].matches(t))}return r}o(Cle,"innerQuery");var Ele=[`[
[77] Fix | Delete
(class_definition (block (expression_statement (string))))
[78] Fix | Delete
(function_definition (block (expression_statement (string))))
[79] Fix | Delete
]`];function xB(e){return Cle([Ele],e).length==1}o(xB,"queryPythonIsDocstring");var z0=class{constructor(t){this.node=t;this.children=[];this.collapsed=!1}static{o(this,"StatementNode")}addChild(t){t.parent=this,t.nextSibling=void 0,this.children.length>0&&(this.children[this.children.length-1].nextSibling=t),this.children.push(t)}childrenFinished(){}containsStatement(t){return this.node.startIndex<=t.node.startIndex&&this.node.endIndex>=t.node.endIndex}statementAt(t){if(this.node.startIndex>t||this.node.endIndex<t)return;let r;return this.children.find(n=>(r=n.statementAt(t),r!==void 0)),r??this}collapse(){this.children.length=0,this.collapsed=!0}get description(){return`${this.node.type} ([${this.node.startPosition.row},${this.node.startPosition.column}]..[${this.node.endPosition.row},${this.node.endPosition.column}]): ${JSON.stringify(this.node.text.length>33?this.node.text.substring(0,15)+"..."+this.node.text.slice(-15):this.node.text)}`}dump(t="",r=""){let n=[`${t}${this.description}`];return this.children.forEach(s=>{n.push(s.dump(`${r}+- `,s.nextSibling===void 0?`${r} `:`${r}| `))}),n.join(`
[80] Fix | Delete
`)}dumpPath(t="",r="",n=!1){if(this.parent){let s=this.parent.dumpPath(t,r,!0),a=s.length-s.lastIndexOf(`
[81] Fix | Delete
`)-1-r.length,l=" ".repeat(a),c=n?`
[82] Fix | Delete
${r}${l}+- `:"";return s+this.description+c}else{let s=n?`
[83] Fix | Delete
${r}+- `:"";return t+this.description+s}}},Wn=class{constructor(t,r,n,s){this.languageId=t;this.text=r;this.startOffset=n;this.endOffset=s;this.statements=[]}static{o(this,"StatementTree")}static isSupported(t){return km.languageIds.has(t)||Nm.languageIds.has(t)||Rg.languageIds.has(t)||Om.languageIds.has(t)||Ag.languageIds.has(t)||Dg.languageIds.has(t)||kg.languageIds.has(t)||Ng.languageIds.has(t)||Og.languageIds.has(t)}static isTrimmedByDefault(t){return km.languageIds.has(t)||Nm.languageIds.has(t)||Om.languageIds.has(t)}static create(t,r,n,s){if(km.languageIds.has(t))return new km(t,r,n,s);if(Nm.languageIds.has(t))return new Nm(t,r,n,s);if(Rg.languageIds.has(t))return new Rg(t,r,n,s);if(Om.languageIds.has(t))return new Om(t,r,n,s);if(kg.languageIds.has(t))return new kg(t,r,n,s);if(Ag.languageIds.has(t))return new Ag(t,r,n,s);if(Dg.languageIds.has(t))return new Dg(t,r,n,s);if(Ng.languageIds.has(t))return new Ng(t,r,n,s);if(Og.languageIds.has(t))return new Og(t,r,n,s);throw new Error(`Unsupported languageId: ${t}`)}[Symbol.dispose](){this.tree&&(this.tree.delete(),this.tree=void 0)}clear(){this.statements.length=0}statementAt(t){let r;return this.statements.find(n=>(r=n.statementAt(t),r!==void 0)),r}async build(){let t=[];this.clear();let r=await this.parse();this.getStatementQuery(r).captures(r.rootNode,{startPosition:this.offsetToPosition(this.startOffset),endPosition:this.offsetToPosition(this.endOffset)}).forEach(s=>{let a=this.createNode(s.node);for(;t.length>0&&!t[0].containsStatement(a);)t.shift()?.childrenFinished();t.length>0?t[0].addChild(a):this.addStatement(a),t.unshift(a)}),t.forEach(s=>s.childrenFinished())}addStatement(t){t.parent=void 0,t.nextSibling=void 0,this.statements.length>0&&(this.statements[this.statements.length-1].nextSibling=t),this.statements.push(t)}async parse(){return this.tree||(this.tree=await Dm(this.languageId,this.text)),this.tree}getStatementQuery(t){return this.getQuery(t.getLanguage(),this.getStatementQueryText())}getQuery(t,r){return t.query(r)}offsetToPosition(t){let r=this.text.slice(0,t).split(`
[84] Fix | Delete
`),n=r.length-1,s=r[r.length-1].length;return{row:n,column:s}}dump(t=""){let r=[];return this.statements.forEach((n,s)=>{let a=`[${s}]`,l=" ".repeat(a.length);r.push(n.dump(`${t} ${a} `,`${t} ${l} `))}),r.join(`
[85] Fix | Delete
`)}},w3=class e extends z0{static{o(this,"JSStatementNode")}static{this.compoundTypeNames=new Set(["function_declaration","generator_function_declaration","class_declaration","statement_block","if_statement","switch_statement","for_statement","for_in_statement","while_statement","do_statement","try_statement","with_statement","labeled_statement","method_definition","interface_declaration"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}childrenFinished(){this.isSingleLineIfStatement()&&this.collapse()}isSingleLineIfStatement(){return this.node.type!=="if_statement"||this.node.startPosition.row!==this.node.endPosition.row?!1:this.children.length===1&&this.children[0].node.type!=="statement_block"||this.children.length===2&&this.node.childForFieldName("alternative")!==null&&this.children[0].node.type!=="statement_block"&&this.children[1].node.type!=="statement_block"}},km=class extends Wn{static{o(this,"JSStatementTree")}static{this.languageIds=new Set(["javascript","javascriptreact","jsx"])}createNode(t){return new w3(t)}getStatementQueryText(){return`[
[86] Fix | Delete
(export_statement)
[87] Fix | Delete
(import_statement)
[88] Fix | Delete
(debugger_statement)
[89] Fix | Delete
(expression_statement)
[90] Fix | Delete
(declaration)
[91] Fix | Delete
(statement_block)
[92] Fix | Delete
(if_statement)
[93] Fix | Delete
(switch_statement)
[94] Fix | Delete
(for_statement)
[95] Fix | Delete
(for_in_statement)
[96] Fix | Delete
(while_statement)
[97] Fix | Delete
(do_statement)
[98] Fix | Delete
(try_statement)
[99] Fix | Delete
(with_statement)
[100] Fix | Delete
(break_statement)
[101] Fix | Delete
(continue_statement)
[102] Fix | Delete
(return_statement)
[103] Fix | Delete
(throw_statement)
[104] Fix | Delete
(empty_statement)
[105] Fix | Delete
(labeled_statement)
[106] Fix | Delete
(method_definition)
[107] Fix | Delete
(field_definition)
[108] Fix | Delete
] @statement`}},Nm=class extends Wn{static{o(this,"TSStatementTree")}static{this.languageIds=new Set(["typescript","typescriptreact"])}createNode(t){return new w3(t)}getStatementQueryText(){return`[
[109] Fix | Delete
(export_statement)
[110] Fix | Delete
(import_statement)
[111] Fix | Delete
(debugger_statement)
[112] Fix | Delete
(expression_statement)
[113] Fix | Delete
(declaration)
[114] Fix | Delete
(statement_block)
[115] Fix | Delete
(if_statement)
[116] Fix | Delete
(switch_statement)
[117] Fix | Delete
(for_statement)
[118] Fix | Delete
(for_in_statement)
[119] Fix | Delete
(while_statement)
[120] Fix | Delete
(do_statement)
[121] Fix | Delete
(try_statement)
[122] Fix | Delete
(with_statement)
[123] Fix | Delete
(break_statement)
[124] Fix | Delete
(continue_statement)
[125] Fix | Delete
(return_statement)
[126] Fix | Delete
(throw_statement)
[127] Fix | Delete
(empty_statement)
[128] Fix | Delete
(labeled_statement)
[129] Fix | Delete
(method_definition)
[130] Fix | Delete
(public_field_definition)
[131] Fix | Delete
] @statement`}},SC=class e extends z0{static{o(this,"PyStatementNode")}static{this.compoundTypeNames=new Set(["if_statement","for_statement","while_statement","try_statement","with_statement","function_definition","class_definition","decorated_definition","match_statement","block"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}childrenFinished(){this.isSingleLineIfStatement()&&this.collapse()}isSingleLineIfStatement(){return this.node.type!=="if_statement"?!1:this.node.startPosition.row===this.node.endPosition.row}},Rg=class extends Wn{static{o(this,"PyStatementTree")}static{this.languageIds=new Set(["python"])}createNode(t){return new SC(t)}getStatementQueryText(){return`[
[132] Fix | Delete
(future_import_statement)
[133] Fix | Delete
(import_statement)
[134] Fix | Delete
(import_from_statement)
[135] Fix | Delete
(print_statement)
[136] Fix | Delete
(assert_statement)
[137] Fix | Delete
(expression_statement)
[138] Fix | Delete
(return_statement)
[139] Fix | Delete
(delete_statement)
[140] Fix | Delete
(raise_statement)
[141] Fix | Delete
(pass_statement)
[142] Fix | Delete
(break_statement)
[143] Fix | Delete
(continue_statement)
[144] Fix | Delete
(global_statement)
[145] Fix | Delete
(nonlocal_statement)
[146] Fix | Delete
(exec_statement)
[147] Fix | Delete
(if_statement)
[148] Fix | Delete
(for_statement)
[149] Fix | Delete
(while_statement)
[150] Fix | Delete
(try_statement)
[151] Fix | Delete
(with_statement)
[152] Fix | Delete
(function_definition)
[153] Fix | Delete
(class_definition)
[154] Fix | Delete
(decorated_definition)
[155] Fix | Delete
(match_statement)
[156] Fix | Delete
(block)
[157] Fix | Delete
] @statement`}},PC=class e extends z0{static{o(this,"GoStatementNode")}static{this.compoundTypeNames=new Set(["function_declaration","method_declaration","if_statement","for_statement","expression_switch_statement","type_switch_statement","select_statement","block"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}},Om=class extends Wn{static{o(this,"GoStatementTree")}static{this.languageIds=new Set(["go"])}createNode(t){return new PC(t)}getStatementQueryText(){return`[
[158] Fix | Delete
(package_clause)
[159] Fix | Delete
(function_declaration)
[160] Fix | Delete
(method_declaration)
[161] Fix | Delete
(import_declaration)
[162] Fix | Delete
(_statement)
[163] Fix | Delete
(block)
[164] Fix | Delete
] @statement`}},RC=class e extends z0{static{o(this,"PhpStatementNode")}static{this.compoundTypeNames=new Set(["if_statement","else_clause","else_if_clause","for_statement","foreach_statement","while_statement","do_statement","switch_statement","try_statement","catch_clause","finally_clause","anonymous_function","compound_statement"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}},Ag=class extends Wn{static{o(this,"PhpStatementTree")}static{this.languageIds=new Set(["php"])}createNode(t){return new RC(t)}getStatementQueryText(){return`[
[165] Fix | Delete
(statement)
[166] Fix | Delete
(compound_statement)
[167] Fix | Delete
(method_declaration)
[168] Fix | Delete
(property_declaration)
[169] Fix | Delete
(const_declaration)
[170] Fix | Delete
(use_declaration)
[171] Fix | Delete
] @statement`}},AC=class e extends z0{static{o(this,"RubyStatementNode")}static{this.compoundTypeNames=new Set(["if","case","while","until","for","begin","module","class","method"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}},Dg=class extends Wn{static{o(this,"RubyStatementTree")}static{this.languageIds=new Set(["ruby"])}createNode(t){return new AC(t)}getStatementQueryText(){return`[
[172] Fix | Delete
(_statement)
[173] Fix | Delete
(when)
[174] Fix | Delete
] @statement`}},DC=class e extends z0{static{o(this,"JavaStatementNode")}static{this.compoundTypeNames=new Set(["block","do_statement","enhanced_for_statement","for_statement","if_statement","labeled_statement","switch_expression","synchronized_statement","try_statement","try_with_resources_statement","while_statement","interface_declaration","method_declaration","constructor_declaration","compact_constructor_declaration","class_declaration","annotation_type_declaration","static_initializer"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}childrenFinished(){this.isSingleLineIfStatement()&&this.collapse()}isSingleLineIfStatement(){return this.node.type!=="if_statement"||this.node.startPosition.row!==this.node.endPosition.row?!1:this.children.length===1&&this.children[0].node.type!=="block"}},kg=class extends Wn{static{o(this,"JavaStatementTree")}static{this.languageIds=new Set(["java"])}createNode(t){return new DC(t)}getStatementQueryText(){return`[
[175] Fix | Delete
(statement)
[176] Fix | Delete
(field_declaration)
[177] Fix | Delete
(record_declaration)
[178] Fix | Delete
(method_declaration)
[179] Fix | Delete
(compact_constructor_declaration)
[180] Fix | Delete
(class_declaration)
[181] Fix | Delete
(interface_declaration)
[182] Fix | Delete
(annotation_type_declaration)
[183] Fix | Delete
(enum_declaration)
[184] Fix | Delete
(block)
[185] Fix | Delete
(static_initializer)
[186] Fix | Delete
(constructor_declaration)
[187] Fix | Delete
] @statement`}},kC=class e extends z0{static{o(this,"CSharpStatementNode")}static{this.compoundTypeNames=new Set(["block","checked_statement","class_declaration","constructor_declaration","destructor_declaration","do_statement","fixed_statement","for_statement","foreach_statement","if_statement","interface_declaration","lock_statement","method_declaration","struct_declaration","switch_statement","try_statement","unsafe_statement","while_statement"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}childrenFinished(){this.isSingleLineIfStatement()&&this.collapse()}isSingleLineIfStatement(){return this.node.type!=="if_statement"||this.node.startPosition.row!==this.node.endPosition.row?!1:this.children.length===1&&this.children[0].node.type!=="block"}},Ng=class extends Wn{static{o(this,"CSharpStatementTree")}static{this.languageIds=new Set(["csharp"])}createNode(t){return new kC(t)}getStatementQueryText(){return`[
[188] Fix | Delete
(extern_alias_directive)
[189] Fix | Delete
(using_directive)
[190] Fix | Delete
(global_attribute)
[191] Fix | Delete
(preproc_if)
[192] Fix | Delete
(namespace_declaration)
[193] Fix | Delete
(file_scoped_namespace_declaration)
[194] Fix | Delete
(statement)
[195] Fix | Delete
(type_declaration)
[196] Fix | Delete
(declaration)
[197] Fix | Delete
(accessor_declaration)
[198] Fix | Delete
(block)
[199] Fix | Delete
] @statement`}},NC=class e extends z0{static{o(this,"CStatementNode")}static{this.compoundTypeNames=new Set(["declaration","function_definition","enum_specifier","field_declaration_list","type_definition","compound_statement","if_statement","switch_statement","while_statement","for_statement","do_statement","preproc_if","preproc_ifdef","namespace_definition","class_specifier","field_declaration_list","concept_definition","template_declaration"])}get isCompoundStatementType(){return!this.collapsed&&e.compoundTypeNames.has(this.node.type)}childrenFinished(){(this.isSingleLineDeclarationStatement()||this.isSingleLineConceptDefinition())&&this.collapse()}isSingleLineDeclarationStatement(){return!(this.node.type!=="declaration"||this.node.startPosition.row!==this.node.endPosition.row)}isSingleLineConceptDefinition(){return!(this.node.type!=="concept_definition"||this.node.startPosition.row!==this.node.endPosition.row)}},Og=class extends Wn{static{o(this,"CStatementTree")}static{this.languageIds=new Set(["c","cpp"])}createNode(t){return new NC(t)}getStatementQueryText(){return`[
[200] Fix | Delete
(declaration)
[201] Fix | Delete
(function_definition)
[202] Fix | Delete
(type_definition)
[203] Fix | Delete
(field_declaration)
[204] Fix | Delete
(enum_specifier)
[205] Fix | Delete
(return_statement)
[206] Fix | Delete
(compound_statement)
[207] Fix | Delete
(if_statement)
[208] Fix | Delete
(expression_statement)
[209] Fix | Delete
(switch_statement)
[210] Fix | Delete
(break_statement)
[211] Fix | Delete
(case_statement)
[212] Fix | Delete
(while_statement)
[213] Fix | Delete
(for_statement)
[214] Fix | Delete
(do_statement)
[215] Fix | Delete
(goto_statement)
[216] Fix | Delete
(labeled_statement)
[217] Fix | Delete
(preproc_if)
[218] Fix | Delete
(preproc_def)
[219] Fix | Delete
(preproc_ifdef)
[220] Fix | Delete
(preproc_include)
[221] Fix | Delete
(preproc_call)
[222] Fix | Delete
(preproc_function_def)
[223] Fix | Delete
(continue_statement)
[224] Fix | Delete
[225] Fix | Delete
;C++ specific:
[226] Fix | Delete
(namespace_definition)
[227] Fix | Delete
(class_specifier)
[228] Fix | Delete
(field_declaration_list)
[229] Fix | Delete
(field_declaration)
[230] Fix | Delete
(concept_definition)
[231] Fix | Delete
(compound_requirement)
[232] Fix | Delete
(template_declaration)
[233] Fix | Delete
(using_declaration)
[234] Fix | Delete
(alias_declaration)
[235] Fix | Delete
(static_assert_declaration)
[236] Fix | Delete
] @statement`}};var V0=class{constructor(t,r,n){this.languageId=t;this.prefix=r;this.completion=n}static{o(this,"BlockTrimmer")}static isSupported(t){return Wn.isSupported(t)}static isTrimmedByDefault(t){return Wn.isTrimmedByDefault(t)}async withParsedStatementTree(t){var n=[];try{let r=mb(n,Wn.create(this.languageId,this.prefix+this.completion,this.prefix.length,this.prefix.length+this.completion.length));await r.build();return await t(r)}catch(s){var a=s,l=!0}finally{pb(n,a,l)}}trimmedCompletion(t){return t===void 0?this.completion:this.completion.substring(0,t)}getStatementAtCursor(t){return t.statementAt(Math.max(this.prefix.length-1,0))??t.statements[0]}getContainingBlockOffset(t){let r;if(t&&this.isCompoundStatement(t))r=t;else if(t){let n=t.parent;for(;n&&!this.isCompoundStatement(n);)n=n.parent;r=n}if(r){let n=this.asCompletionOffset(r.node.endIndex);if(n&&this.completion.substring(n).trim()!=="")return n}}hasNonStatementContentAfter(t){if(!t||!t.nextSibling)return!1;let r=this.asCompletionOffset(t.node.endIndex),n=this.asCompletionOffset(t.nextSibling.node.startIndex);return this.completion.substring(Math.max(0,r??0),Math.max(0,n??0)).trim()!==""}asCompletionOffset(t){return t===void 0?void 0:t-this.prefix.length}isCompoundStatement(t){return t.isCompoundStatementType||t.children.length>0}};var S3=class extends V0{constructor(r,n,s,a=3,l=7){super(r,n,s);this.lineLimit=a;this.lookAhead=l;let c=[...this.completion.matchAll(/\n/g)],u=this.lineLimit+this.lookAhead;c.length>=this.lineLimit&&this.lineLimit>0&&(this.limitOffset=c[this.lineLimit-1].index),c.length>=u&&u>0&&(this.lookAheadOffset=c[u-1].index)}static{o(this,"TerseBlockTrimmer")}async getCompletionTrimOffset(){return await this.withParsedStatementTree(r=>{let n=r.statementAt(this.stmtStartPos()),s=this.getContainingBlockOffset(n);return s=this.trimAtFirstBlankLine(s),n&&(s=this.trimAtStatementChange(n,s)),this.limitOffset&&this.lookAheadOffset&&(s===void 0||s>this.lookAheadOffset)?this.limitOffset:s})}stmtStartPos(){let r=this.completion.match(/\S/);return r&&r.index!==void 0?this.prefix.length+r.index:Math.max(this.prefix.length-1,0)}trimAtFirstBlankLine(r){let n=[...this.trimmedCompletion(r).matchAll(/\r?\n\s*\r?\n/g)];for(;n.length>0&&(r===void 0||r>n[0].index);){let s=n.shift();if(this.completion.substring(0,s.index).trim()!=="")return s.index}return r}trimAtStatementChange(r,n){let s=this.prefix.length,a=this.prefix.length+(n??this.completion.length);if(r.node.endIndex>s&&this.isCompoundStatement(r))return r.nextSibling&&r.node.endIndex<a?this.asCompletionOffset(r.node.endIndex):n;let l=r,c=r.nextSibling;for(;c&&c.node.endIndex<=a&&!this.hasNonStatementContentAfter(l)&&!this.isCompoundStatement(c);)l=c,c=c.nextSibling;return c&&l.node.endIndex>s&&l.node.endIndex<a?this.asCompletionOffset(l.node.endIndex):n}};async function _B(e,t){var c=[];try{let r=e.getText();let n=e.offsetAt(t);let s=mb(c,Wn.create(e.detectedLanguageId,r,0,r.length));await s.build();let a=s.statementAt(n);if(!a)return"non-block";if(!a.isCompoundStatementType&&a.children.length===0)return a.parent&&!a.nextSibling&&a.node.endPosition.row<=t.line?"block-end":a.parent?"mid-block":"non-block";if(a.children.length===0)return"empty-block";let l=a.children[a.children.length-1];if(n<l.node.startIndex)return"mid-block";return"block-end"}catch(u){var d=u,f=!0}finally{pb(c,d,f)}}o(_B,"getBlockPositionType");function Ile(e){return e.HTTPS_PROXY||e.https_proxy||e.HTTP_PROXY||e.http_proxy}o(Ile,"getProxyFromEnvironment");function wle(e){return e.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}o(wle,"getRejectUnauthorizedFromEnvironment");var Cit=L.Object({proxy:L.Optional(L.String()),proxyStrictSSL:L.Optional(L.Boolean()),proxyAuthorization:L.Optional(L.String()),proxyKerberosServicePrincipal:L.Optional(L.String())});function yB(e){let t=Ile(e),r=P3({proxy:t,proxyStrictSSL:wle(e)}),n=e.GH_COPILOT_KERBEROS_SERVICE_PRINCIPAL??e.GITHUB_COPILOT_KERBEROS_SERVICE_PRINCIPAL??e.AGENT_KERBEROS_SERVICE_PRINCIPAL;return n&&(r.proxyKerberosServicePrincipal=n),r}o(yB,"getHttpSettingsFromEnvironment");function P3(e){if(!e.proxy)return{...e,proxy:""};try{let{protocol:t,host:r,username:n,password:s,pathname:a,search:l,hash:c}=new URL(e.proxy);return{...e,proxy:`${t}//${r}${a}${l}${c}`,proxyAuthorization:e.proxyAuthorization||Sle(n,s)}}catch{return{...e,proxy:""}}}o(P3,"normalizeHttpSettings");function Sle(e,t){return!e||!t?"":`${decodeURIComponent(e)}:${decodeURIComponent(t)}`}o(Sle,"getAuth");var tf={};t0(tf,{activationEvents:()=>Gle,badges:()=>Vle,browser:()=>Kle,bugs:()=>Ule,build:()=>kle,buildType:()=>Nle,categories:()=>Hle,contributes:()=>OC,default:()=>tce,dependencies:()=>Qle,description:()=>Ale,devDependencies:()=>Zle,displayName:()=>Rle,enabledApiProposals:()=>Xle,engines:()=>qle,extensionPack:()=>Wle,homepage:()=>Fle,icon:()=>$le,keywords:()=>zle,license:()=>Mle,main:()=>Yle,name:()=>Ple,overrides:()=>ece,preview:()=>Lle,pricing:()=>jle,publisher:()=>Ole,qna:()=>Ble,scripts:()=>Jle,version:()=>Dle});var Ple="copilot",Rle="GitHub Copilot",Ale="Your AI pair programmer",Dle="1.372.0",kle="1785",Nle="prod",Ole="GitHub",Lle=!1,Fle="https://github.com/features/copilot?editor=vscode",Mle="https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features",Ule={url:"https://github.com/microsoft/vscode/issues"},Ble="https://github.com/github-community/community/discussions/categories/copilot",$le="assets/Copilot-App-Icon.png",jle="Trial",Wle=["GitHub.copilot-chat","GitHub.copilot"],qle={vscode:"^1.98.0",node:">=20.0.0",npm:">=9.0.0"},Hle=["AI","Chat","Programming Languages","Machine Learning"],zle=["ai","openai","codex","pilot","snippets","documentation","autocomplete","intellisense","refactor","javascript","python","typescript","php","go","golang","ruby","c++","c#","java","kotlin","co-pilot"],Vle=[{url:"https://img.shields.io/badge/GitHub%20Copilot-Subscription%20Required-orange",href:"https://github.com/github-copilot/signup?editor=vscode",description:"Sign up for GitHub Copilot"},{url:"https://img.shields.io/github/stars/github/copilot-docs?style=social",href:"https://github.com/github/copilot-docs",description:"Star Copilot on GitHub"},{url:"https://img.shields.io/youtube/channel/views/UC7c3Kb6jYCRj4JOHHZTxKsQ?style=social",href:"https://www.youtube.com/@GitHub/search?query=copilot",description:"Check out GitHub on Youtube"},{url:"https://img.shields.io/twitter/follow/github?style=social",href:"https://twitter.com/github",description:"Follow GitHub on Twitter"}],Gle=["onStartupFinished"],Kle="./dist/web",Yle="./dist/extension",Xle=["inlineCompletionsAdditions"],OC={commands:[{command:"github.copilot.toggleStatusMenu",title:"Open Status Menu",category:"GitHub Copilot"},{command:"github.copilot.signIn",title:"Sign In",category:"GitHub Copilot",enablement:"!github.copilot.activated"},{command:"github.copilot.acceptCursorPanelSolution",title:"Accept Panel Suggestion at the Cursor",enablement:"github.copilot.panelVisible",category:"GitHub Copilot"},{command:"github.copilot.previousPanelSolution",title:"Navigate to the Previous Panel Suggestion",enablement:"github.copilot.panelVisible",category:"GitHub Copilot"},{command:"github.copilot.nextPanelSolution",title:"Navigate to the Next Panel Suggestion",enablement:"github.copilot.panelVisible",category:"GitHub Copilot"},{command:"github.copilot.generate",title:"Open Completions Panel",enablement:"github.copilot.activated && !isWeb",category:"GitHub Copilot"},{command:"github.copilot.generateComparison",title:"Open Comparison Panel",enablement:"github.copilot.activated && !isWeb && github.copilot.comparisonPanelEnabled",category:"GitHub Copilot"},{command:"github.copilot.acceptCursorComparisonPanelSolution",title:"Accept Comparison Panel Suggestion at the Cursor",enablement:"github.copilot.comparisonPanelVisible && github.copilot.comparisonPanelEnabled",category:"GitHub Copilot"},{command:"github.copilot.previousComparisonPanelSolution",title:"Navigate to the Previous Comparison Panel Suggestion",enablement:"github.copilot.comparisonPanelVisible && github.copilot.comparisonPanelEnabled",category:"GitHub Copilot"},{command:"github.copilot.nextComparisonPanelSolution",title:"Navigate to the Next Comparison Panel Suggestion",enablement:"github.copilot.comparisonPanelVisible && github.copilot.comparisonPanelEnabled",category:"GitHub Copilot"},{command:"github.copilot.completions.disable",title:"Disable Completions",enablement:"github.copilot.activated && config.editor.inlineSuggest.enabled && github.copilot.completions.enabled",category:"GitHub Copilot"},{command:"github.copilot.completions.enable",title:"Enable Completions",enablement:"github.copilot.activated && !(config.editor.inlineSuggest.enabled && github.copilot.completions.enabled)",category:"GitHub Copilot"},{command:"github.copilot.completions.toggle",title:"Toggle (Enable/Disable) Completions",enablement:"github.copilot.activated",category:"GitHub Copilot"},{command:"github.copilot.sendFeedback",title:"Send Feedback",category:"GitHub Copilot"},{command:"github.copilot.collectDiagnostics",title:"Collect Diagnostics",category:"GitHub Copilot",enablement:"!isWeb"},{command:"github.copilot.openLogs",title:"Open Logs",category:"GitHub Copilot"},{command:"github.copilot.openModelPicker",title:"Change Completions Model",category:"GitHub Copilot",enablement:"!isWeb"},{command:"github.copilot.sendCompletionFeedback",title:"Send Copilot Completion Feedback",category:"GitHub Copilot",enablement:"!isWeb"},{command:"github-copilot-completions-debugger-view.refresh",title:"Refresh",icon:"$(refresh)"}],keybindings:[{command:"github.copilot.acceptCursorPanelSolution",key:"ctrl+/",mac:"ctrl+/",when:"activeWebviewPanelId == 'GitHub Copilot Suggestions'"},{command:"github.copilot.previousPanelSolution",key:"alt+[",mac:"alt+[",when:"activeWebviewPanelId == 'GitHub Copilot Suggestions'"},{command:"github.copilot.nextPanelSolution",key:"alt+]",mac:"alt+]",when:"activeWebviewPanelId == 'GitHub Copilot Suggestions'"},{command:"github.copilot.acceptCursorComparisonPanelSolution",key:"ctrl+shift+/",mac:"ctrl+shift+/",when:"activeWebviewPanelId == 'GitHub Copilot Comparison' && github.copilot.comparisonPanelEnabled"},{command:"github.copilot.previousComparisonPanelSolution",key:"alt+shift+[",mac:"alt+shift+[",when:"activeWebviewPanelId == 'GitHub Copilot Comparison' && github.copilot.comparisonPanelEnabled"},{command:"github.copilot.nextComparisonPanelSolution",key:"alt+shift+]",mac:"alt+shift+]",when:"activeWebviewPanelId == 'GitHub Copilot Comparison' && github.copilot.comparisonPanelEnabled"},{command:"editor.action.inlineSuggest.trigger",key:"alt+\\",when:"editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"}],configuration:[{title:"GitHub Copilot",properties:{"github.copilot.selectedCompletionModel":{type:"string",default:"",markdownDescription:'The currently selected completion model ID. To select from a list of available models, use the __"Change Completions Model"__ command or open the model picker (from the Copilot menu in the VS Code title bar, select __"Configure Code Completions"__ then __"Change Completions Model"__. The value must be a valid model ID. An empty value indicates that the default model will be used.'},"github.copilot.advanced":{type:"object",title:"Advanced Settings",properties:{authProvider:{type:"string",enum:["github","github-enterprise"],enumDescriptions:["GitHub.com","GitHub Enterprise"],default:"github",description:"The GitHub identity to use for Copilot"},authPermissions:{type:"string",enum:["default","minimal"],markdownEnumDescriptions:["Default (recommended) - The default permissions enable the best that Copilot has to offer including, but not limited to, faster repo indexing and the power of the `@github` agent.","Minimal - The minimal permissions required for Copilot functionality."],default:"default",markdownDescription:"Controls what kind of permissions are asked for when signing in to Copilot. The options are\n* `default` - (strongly recommended) The default permissions enable the best that Copilot has to offer including, but not limited to, faster repo indexing and the power of the `@github` agent.\n* `minimal` - The minimal permissions are the least that Copilot needs to function. Some features may behave slower or not at all."},useLanguageServer:{type:"boolean",default:!1,description:"Experimental: Use language server"},"debug.overrideEngine":{type:"string",default:"",description:"Override engine name"},"debug.overrideProxyUrl":{type:"string",default:"",description:"Override GitHub authentication proxy full URL"},"debug.testOverrideProxyUrl":{type:"string",default:"",description:"Override GitHub authentication proxy URL when running tests"},"debug.overrideCapiUrl":{type:"string",default:"",description:"Override GitHub Copilot API full URL"},"debug.testOverrideCapiUrl":{type:"string",default:"",description:"Override GitHub Copilot API URL when running tests"},"debug.filterLogCategories":{type:"array",default:[],deprecationMessage:"Set overrideLogLevels.* to ERROR to filter out unwanted categories.",description:"Show only log categories listed in this setting. If an array is empty, show all loggers"}}},"github.copilot.enable":{type:"object",scope:"window",default:{"*":!0,plaintext:!1,markdown:!1,scminput:!1},additionalProperties:{type:"boolean"},markdownDescription:"Enable or disable auto triggering of Copilot completions for specified [languages](https://code.visualstudio.com/docs/languages/identifiers). You can still trigger suggestions manually using `Alt + \\`"}}}],configurationDefaults:{"editor.tokenColorCustomizations":{"[*Light*]":{textMateRules:[{scope:"ref.matchtext",settings:{foreground:"#000"}}]},"[*Dark*]":{textMateRules:[{scope:"ref.matchtext",settings:{foreground:"#fff"}}]}}},languages:[{id:"code-referencing"}],grammars:[{language:"code-referencing",scopeName:"text.ref",path:"./syntaxes/ref.tmGrammar.json"}],iconFonts:[{id:"copilot-font",src:[{path:"assets/copilot.woff",format:"woff"}]}],viewsContainers:{activitybar:[{id:"github-copilot-completions-debugger-panel",title:"Debugger",icon:"$(bug)",when:"config.github.copilot.internal.showWorkspaceContextDebugger && config.github.copilot.internal.useWorkspaceContextCoordinator"}]},views:{"github-copilot-completions-debugger-panel":[{id:"github-copilot-completions-debugger-view",name:"Debugger",when:"config.github.copilot.internal.showWorkspaceContextDebugger && config.github.copilot.internal.useWorkspaceContextCoordinator",icon:"$(bug)"}]},menus:{"view/title":[{command:"github-copilot-completions-debugger-view.refresh",when:"view == github-copilot-completions-debugger-view",group:"navigation"}]}},Jle={build:"tsx esbuild.ts",clean:"./script/build/clean.sh",compress:"tsx ./script/compressTokenizer.ts","forbid-sources-content:extension":"node script/forbid-sources-content.js --extension",generate_languages:"tsx script/generateLanguages.ts && prettier --write lib/src/language/generatedLanguages.ts",get_token:"tsx script/deviceFlow.ts --save-as-test-token",lint:'run-p --aggregate-output "lint:*"',"lint:deps":"depcruise -c .dependency-cruiser.js .","lint:eslint":"eslint -f visualstudio --quiet --cache .","lint:prettier":"prettier --check . 2>&1","lint:types":"tsc --noEmit && tsc --noEmit -p extension/src/copilotPanel/webview",prebuild:"npm install",pretest:"npm run build","pretest:headless":"npm run build","pretest:extension":"npm run build","pretest:lsp-client":"npm run build","pretest:lib-e2e":"npm run build",prewatch:"npm run build","prewatch:esbuild":"npm run build",start:"npm run watch",test:'npm-run-all "test:extension --ignore-scripts" "test:headless --ignore-scripts" lint',"test:headless":'npm-run-all test:lib test:agent "test:lib-e2e --ignore-scripts" test:prompt "test:lsp-client --ignore-scripts" lint',"test:agent":'mocha "agent/src/**/*.test.{ts,tsx}"',"test:extension":"tsx extension/test/runTest.ts","test:lib":'mocha "lib/src/**/*.test.{ts,tsx}"',"test:lib-e2e":'mocha "lib/e2e/src/**/*.test.{ts,tsx}" --exclude "lib/e2e/src/prompt/**/*.test.ts"',"test:lib-e2e-no-ci":'mocha "lib/e2e/no-ci/**/*.test.{ts,tsx}"',"test:lib-prompt-e2e":'mocha "lib/e2e/src/prompt/prompt.test.ts"',"test:lib-prompt-e2e-perf":"INCLUDE_PERFORMANCE=true npm run test:lib-prompt-e2e","test:lsp-client":'mocha "lsp-client/test/*.test.{ts,tsx}"',"test:prompt":'mocha "prompt/test/**/*.test.{ts,tsx}"',"test:prepare-msbench":"tsx script/setupMsbench.ts","test:run-msbench":"tsx lsp-client/test/msbench/agent/index.ts","vscode-dts":"vscode-dts dev && mv vscode.proposed.*.ts extension/src","vscode:prepublish":'run-s "build --ignore-scripts" forbid-sources-content:extension',"vscode:uninstall":"node dist/extensionUninstalled.js",vsix:"vsce package --allow-missing-repository",watch:'run-p "watch:esbuild --ignore-scripts" "watch:types -- --preserveWatchOutput"',"watch:esbuild":"tsx esbuild.ts --watch","watch:types":"tsc --noEmit --watch"},Zle={"@azure/identity":"^4.11.0","@azure/keyvault-secrets":"^4.10.0","@datadog/datadog-ci":"^3.17.0","@github/prettier-config":"0.0.6","@limegrass/eslint-plugin-import-alias":"^1.5.1","@parcel/watcher":"^2.5.1","@types/benchmark":"^2.1.5","@types/crypto-js":"^4.2.2","@types/diff":"^8.0.0","@types/git-url-parse":"^16.0.0","@types/js-yaml":"^4.0.6","@types/kerberos":"^1.1.2","@types/markdown-it":"^14.1.2","@types/mocha":"^10.0.10","@types/node":"~20.16.0","@types/semver":"^7.7.0","@types/sinon":"^17.0.4","@types/uuid":"^10.0.0","@types/vscode":"1.98.0","@types/yargs":"^17.0.24","@vscode/test-electron":"^2.5.2","@vscode/vsce":"^3.6.0","@yao-pkg/pkg":"^6.6.0",benchmark:"^2.1.4",boxen:"^8.0.1",chalk:"^5.4.1","dependency-cruiser":"^17.0.1",electron:"^28.1.4",esbuild:"^0.25.8","esbuild-plugin-copy":"^2.1.1",eslint:"^9.32.0","eslint-formatter-visualstudio":"^8.40.0","eslint-plugin-mocha":"^10.5.0",glob:"^11.0.3",globals:"^16.3.0","js-yaml":"^4.1.0",mocha:"^11.2.2","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1","npm-run-all":"^4.1.5",prettier:"^3.5.3","prettier-plugin-organize-imports":"^4.2.0",proxy:"^2.1.1","simple-git":"^3.28.0",sinon:"^20.0.0","ts-dedent":"^2.2.0",tsx:"^4.19.4",typescript:"^5.9.2","typescript-eslint":"^8.39.1","vscode-dts":"^0.3.3","@vscode/tree-sitter-wasm":"0.0.5-php.2"},Qle={"@adobe/helix-fetch":"github:devm33/helix-fetch#2a08fa939591a0e14f34f611adcc3ed767579e9a","@anthropic-ai/sdk":"^0.56.0","@github/memoize":"1.1.5","@microsoft/1ds-post-js":"^4.3.9","@microsoft/applicationinsights-web-basic":"^3.3.6","@microsoft/tiktokenizer":"^1.0.10","@modelcontextprotocol/sdk":"^1.17.0","@sinclair/typebox":"^0.34.33","@types/vscode-webview":"^1.57.4","@vscode/codicons":"^0.0.39","@vscode/prompt-tsx":"0.4.0-alpha.1","@vscode/webview-ui-toolkit":"^1.3.1","await-lock":"^2.2.2","crypto-js":"^4.2.0",diff:"^8.0.2",dldr:"^0.0.10",events:"^3.3.0","get-stream":"^6.0.1","git-url-parse":"^16.0.3",kerberos:"^2.2.0","mac-ca":"^3.1.3","markdown-it":"^14.1.0",microjob:"^0.7.0",minimatch:"^9.0.3",open:"^10.2.0","os-browserify":"^0.3.0","path-browserify":"^1.0.1",semver:"^7.7.1",shiki:"~1.15.0","source-map-support":"^0.5.21",sqlite3:"^5.1.7",uuid:"^11.1.0","vscode-languageclient":"^9.0.0","vscode-languageserver":"^9.0.0","vscode-languageserver-protocol":"^3.17","vscode-languageserver-textdocument":"~1.0.11","vscode-uri":"^3.1.0","web-tree-sitter":"^0.23.0","windows-ca-certs":"^0.2.2",yargs:"^17.7.2"},ece={fsevents:"<0",bindings:"npm:bundled-bindings@^1.5.0"},tce={name:Ple,displayName:Rle,description:Ale,version:Dle,build:kle,buildType:Nle,publisher:Ole,preview:Lle,homepage:Fle,license:Mle,bugs:Ule,qna:Ble,icon:$le,pricing:jle,extensionPack:Wle,engines:qle,categories:Hle,keywords:zle,badges:Vle,activationEvents:Gle,browser:Kle,main:Yle,enabledApiProposals:Xle,contributes:OC,scripts:Jle,devDependencies:Zle,dependencies:Qle,overrides:ece};var Te={Enable:"enable",UserSelectedCompletionModel:"selectedCompletionModel",ShowEditorCompletions:"editor.showEditorCompletions",EnableAutoCompletions:"editor.enableAutoCompletions",DelayCompletions:"editor.delayCompletions",FilterCompletions:"editor.filterCompletions",FetchStrategy:"fetchStrategy",ToolConfirmAutoApprove:"agent.toolConfirmAutoApprove",MaxToolCallingLoop:"agent.maxToolCallingLoop",CompletionsDelay:"completionsDelay",CompletionsDebounce:"completionsDebounce",RelatedFilesVSCodeCSharp:"advanced.relatedFilesVSCodeCSharp",RelatedFilesVSCodeTypeScript:"advanced.relatedFilesVSCodeTypeScript",RelatedFilesVSCode:"advanced.relatedFilesVSCode",ContextProviders:"advanced.contextProviders",DebugOverrideLogLevels:"advanced.debug.overrideLogLevels",DebugFilterLogCategories:"advanced.debug.filterLogCategories",DebugSnippyOverrideUrl:"advanced.debug.codeRefOverrideUrl",DebugUseElectronFetcher:"advanced.debug.useElectronFetcher",DebugUseEditorFetcher:"advanced.debug.useEditorFetcher",UseSubsetMatching:"advanced.useSubsetMatching",ContextProviderTimeBudget:"advanced.contextProviderTimeBudget",DebugOverrideCapiUrl:"internal.capiUrl",DebugOverrideCapiUrlLegacy:"advanced.debug.overrideCapiUrl",DebugTestOverrideCapiUrl:"internal.capiTestUrl",DebugTestOverrideCapiUrlLegacy:"advanced.debug.testOverrideCapiUrl",DebugOverrideProxyUrl:"internal.completionsUrl",DebugOverrideProxyUrlLegacy:"advanced.debug.overrideProxyUrl",DebugTestOverrideProxyUrl:"internal.completionsTestUrl",DebugTestOverrideProxyUrlLegacy:"advanced.debug.testOverrideProxyUrl",DebugOverrideEngine:"internal.completionModel",DebugOverrideEngineLegacy:"advanced.debug.overrideEngine",AlwaysRequestMultiline:"internal.alwaysRequestMultiline",ModelAlwaysTerminatesSingleline:"internal.modelAlwaysTerminatesSingleline",TrimCompletionsAggressively:"internal.trimCompletionsAggressively",UseWorkspaceContextCoordinator:"internal.useWorkspaceContextCoordinator",ShowWorkspaceContextDebugger:"internal.showWorkspaceContextDebugger",IncludeNeighboringFiles:"internal.includeNeighboringFiles",ExcludeRelatedFiles:"internal.excludeRelatedFiles",DebugOverrideCppHeadersEnableSwitch:"internal.cppHeadersEnableSwitch",NESXTab:"internal.useXTab",UseSplitContextPrompt:"internal.useSplitContextPrompt",UseCompletionsComparisonPanel:"internal.useCompletionsComparisonPanel",ComparisonPanelModelIds:"internal.comparisonPanelModelIds",ComparisonPanelRandomizedMode:"internal.comparisonPanelRandomizedMode"};function bB(e){return["server","parsingandserver"].includes(e)}o(bB,"shouldDoServerTrimming");var rf=class{static{o(this,"BlockModeConfig")}},R3=class extends rf{static{o(this,"ConfigBlockModeConfig")}forLanguage(t,r,n){let s=t.get(Le).overrideBlockMode(n);if(s)return LC(s,r);let a=t.get(Le).enableProgressiveReveal(n);return(tr(t,Te.AlwaysRequestMultiline)??a)||V0.isTrimmedByDefault(r)?LC("moremultiline",r):r=="ruby"?"parsing":H0(r)?"parsingandserver":"server"}};function rce(e){return["parsing","parsingandserver","moremultiline"].includes(e)}o(rce,"blockModeRequiresTreeSitter");function LC(e,t){return e==="moremultiline"&&Wn.isSupported(t)?e:rce(e)&&!H0(t)?"server":e}o(LC,"toApplicableBlockMode");var _o=class{static{o(this,"ConfigProvider")}requireReady(){return Promise.resolve()}};function nce(e){return e?.type==="object"&&"properties"in e}o(nce,"isContributesObject");function FC(e,t){let r=e,n=[];for(let s of t.split(".")){let a=[...n,s].join(".");r&&typeof r=="object"&&a in r?(r=r[a],n.length=0):n.push(s)}if(!(r===void 0||n.length>0))return r}o(FC,"getConfigKeyRecursively");function vB(e){if(Lm.has(e))return Lm.get(e);throw new Error(`Missing config default value: ${Vr}.${e}`)}o(vB,"getConfigDefaultForKey");function TB(e){return Lm.get(e)}o(TB,"getOptionalConfigDefaultForKey");var Lm=new Map([[Te.DebugOverrideCppHeadersEnableSwitch,!1],[Te.RelatedFilesVSCodeCSharp,!1],[Te.RelatedFilesVSCodeTypeScript,!1],[Te.RelatedFilesVSCode,!1],[Te.IncludeNeighboringFiles,!1],[Te.ExcludeRelatedFiles,!1],[Te.ContextProviders,[]],[Te.DebugUseEditorFetcher,null],[Te.DebugUseElectronFetcher,null],[Te.DebugOverrideLogLevels,{}],[Te.DebugSnippyOverrideUrl,""],[Te.FetchStrategy,"auto"],[Te.ToolConfirmAutoApprove,!1],[Te.MaxToolCallingLoop,25],[Te.UseSubsetMatching,null],[Te.ContextProviderTimeBudget,void 0],[Te.DebugOverrideCapiUrl,""],[Te.DebugTestOverrideCapiUrl,""],[Te.DebugOverrideProxyUrl,""],[Te.DebugTestOverrideProxyUrl,""],[Te.DebugOverrideEngine,""],[Te.AlwaysRequestMultiline,void 0],[Te.ModelAlwaysTerminatesSingleline,void 0],[Te.TrimCompletionsAggressively,void 0],[Te.CompletionsDebounce,void 0],[Te.NESXTab,void 0],[Te.UseWorkspaceContextCoordinator,void 0],[Te.ShowWorkspaceContextDebugger,!1],[Te.CompletionsDelay,void 0],[Te.UseSplitContextPrompt,void 0],[Te.UseCompletionsComparisonPanel,void 0],[Te.ComparisonPanelModelIds,void 0],[Te.ComparisonPanelRandomizedMode,void 0],[Te.ShowEditorCompletions,void 0],[Te.EnableAutoCompletions,void 0],[Te.DelayCompletions,void 0],[Te.FilterCompletions,void 0]]);for(let e of Object.values(Te)){let t=OC.configuration[0],r=[],n=`${Vr}.${e}`.split(".");for(;n.length>0;){r.push(n.shift());let s=t.properties[r.join(".")];if(nce(s))r.length=0,t=s;else if(n.length==0&&s?.default!==void 0){if(Lm.has(e))throw new Error(`Duplicate config default value ${Vr}.${e}`);Lm.set(e,s.default)}}if(!Lm.has(e))throw new Error(`Missing config default value ${Vr}.${e}`)}function tr(e,t){return e.get(_o).getConfig(t)}o(tr,"getConfig");function WN(e){return e.get(_o).dumpForTelemetry()}o(WN,"dumpForTelemetry");var wn=class{constructor(){this.packageJson=tf}static{o(this,"BuildInfo")}isPreRelease(){return this.getBuildType()==="nightly"}isProduction(){return this.getBuildType()!=="dev"}getBuildType(){return this.packageJson.buildType}getVersion(){return this.packageJson.version}getDisplayVersion(){return this.getBuildType()==="dev"?`${this.getVersion()}-dev`:this.getVersion()}getBuild(){return this.packageJson.build}getName(){return this.packageJson.name}};function r9(e){return e.get(wn).isProduction()}o(r9,"isProduction");function KF(e){return e.get(wn).getBuildType()==="dev"}o(KF,"isDevBuild");function o1(e){return e.get(wn).getBuildType()}o(o1,"getBuildType");function qN(e){return e.get(wn).getBuild()}o(qN,"getBuild");function s1(e){return e.get(wn).getVersion()}o(s1,"getVersion");var mn=class{constructor(t,r,n="none",s="desktop"){this.sessionId=t;this.machineId=r;this.remoteName=n;this.uiKind=s}static{o(this,"EditorSession")}};function n0({name:e,version:t}){return`${e}/${t}`}o(n0,"formatNameAndVersion");var ir=class{static{o(this,"EditorAndPluginInfo")}getCopilotIntegrationId(){}getEditorPluginSpecificFilters(){return[]}},z2="2025-05-01";function Rl(e){let t=e.get(ir);return{"Editor-Version":n0(t.getEditorInfo()),"Editor-Plugin-Version":n0(t.getEditorPluginInfo()),"Copilot-Language-Server-Version":s1(e)}}o(Rl,"editorVersionHeaders");var Tw="Iv1.b507a08c87ecfe98";var If=class{static{o(this,"GitHubAppInfo")}findAppIdToAuthenticate(){return this.githubAppId??Tw}};var M0=new vt("auth"),IB=60;function Ka(e){let t=e.serverUrl?.match(/^https?:\/\//)?e.serverUrl:"",r=e.apiUrl?.match(/^https?:\/\//)?e.apiUrl:"";return t?r||=t.replace("://","://api."):r?.includes("://api.")&&(t||=r.replace("://api.","://")),(!t||!r)&&(t="https://github.com/",r="https://api.github.com/"),{apiUrl:r,serverUrl:t}}o(Ka,"fillGitHubUrls");function CB(){return Math.floor(Date.now()/1e3)}o(CB,"nowSeconds");async function ice(e,t,r){let n=et.createAndMarkAsIssued({},{});Se(e,"auth.new_login");let s={"X-GitHub-Api-Version":"2024-12-15"};r?.hasKnownOrg&&(s["X-GitHub-Staff-Request"]="1");let a=t.devOverride?.copilotTokenUrl??"copilot_internal/v2/token",l=await Dl(e,t,a,{timeout:12e4,headers:s}),c=await l.json(),u=c.user_notification;if(EB(e,u,t),l.status===401){let g="Failed to get copilot token due to 401 status. Please sign out and try again.";return M0.info(e,g),Fs(e,"auth.unknown_401",n),{failureKind:"HTTP401",message:g}}if(!l.ok||!c.token){M0.info(e,`Invalid copilot token: missing token: ${l.status} ${l.statusText}`),Fs(e,"auth.invalid_token",n.extendedBy({status:l.status.toString(),status_text:l.statusText}));let g=c.error_details;return g?.notification_id!=="not_signed_up"&&EB(e,g,t),{failureKind:"NotAuthorized",message:g?.message??"Could not retrieve token",canSignUpForLimited:c.can_signup_for_limited??!1}}let d=CB()+c.refresh_in+IB,f=await oce(e,t),m;f.ok&&(m=await f.json());let p=new MC(c,m,d);return Se(e,"auth.new_token",n.extendedBy({...hb(p)},{adjusted_expires_at:p.expiresAt,expires_at:c.expires_at,current_time:CB()})),{copilotToken:p}}o(ice,"authFromGitHubSession");var Gu=class{static{o(this,"CopilotTokenFetcher")}},A3=class extends Gu{static{o(this,"NetworkCopilotTokenFetcher")}async fetchTokenResult(t,r,n){return await ice(t,r,n)}};async function oce(e,t){let r={"X-GitHub-Api-Version":"2025-05-01"},n=t.devOverride?.copilotUserInfoUrl??"copilot_internal/user";return await Dl(e,t,n,{timeout:12e4,headers:r})}o(oce,"fetchCopilotUserInfo");function EB(e,t,r){t&&e.get(Vi).showWarningMessageOnlyOnce(t.notification_id,t.message,{title:t.title},{title:"Dismiss"}).then(async n=>{let s=n?.title===t.title,a=s||n?.title==="Dismiss";if(s){let l=e.get(ir).getEditorPluginInfo(),c=t.url.replace("{EDITOR}",encodeURIComponent(l.name+"_"+l.version));await e.get(Ya).open(c)}t.notification_id&&a&&await sce(e,t.notification_id,r)}).catch(n=>{M0.exception(e,n,"copilotToken.notification")})}o(EB,"notifyUser");async function sce(e,t,r){let n=r.devOverride?.notificationUrl??"copilot_internal/notification",s=await Dl(e,r,n,{method:"POST",body:JSON.stringify({notification_id:t})});(!s||!s.ok)&&M0.error(e,`Failed to send notification result to GitHub: ${s?.status} ${s?.statusText}`)}o(sce,"sendNotificationResultToGitHub");var MC=class{constructor(t,r,n){this.envelope=t;this.expiresAt=n;this.token=t.token,this.organization_list=t.organization_list,this.enterprise_list=t.enterprise_list,this.tokenMap=this.parseToken(this.token),this.userInfo=new Ah(r)}static{o(this,"CopilotToken")}get endpoints(){return{...nu,...this.envelope.endpoints??{}}}needsRefresh(){return(this.expiresAt-IB)*1e3<Date.now()}isExpired(){return this.expiresAt*1e3<Date.now()}get hasKnownOrg(){return gb(this.organization_list||[])!==void 0}parseToken(t){let r=new Map,s=(t??"").split(":")[0].split(";");for(let a of s){let[l,c]=a.split("=");r.set(l,c)}return r}getTokenValue(t){return this.tokenMap.get(t)}getTokenValues(){return Object.fromEntries(this.tokenMap)}get isCopilotCodeReviewEnabled(){return this.getTokenValue("ccr")==="1"}};var G0=class{static{o(this,"CitationManager")}};var ace={didChangeFeatureFlags:!1,fetch:!1,ipCodeCitation:!1,redirectedTelemetry:!1,related:!1,token:!1,watchedFiles:!1,showPanelMessage:!1,mcpElicitation:!1,mcpSampling:!1},Lg=class{constructor(){this.capabilities={...ace};this.emitter=new U0;this.onDidSetCapabilities=this.emitter.event}static{o(this,"CopilotCapabilitiesProvider")}setCapabilities(t){let r;for(r in t){let n=t[r];n!==void 0&&(this.capabilities[r]=n)}this.emitter.fire(this.capabilities)}getCapabilities(){return this.capabilities}};function UC(e,t){let r=Fm(e,t);return r===-1?void 0:e[r]}o(UC,"findLastMonotonous");function Fm(e,t,r=0,n=e.length){let s=r,a=n;for(;s<a;){let l=Math.floor((s+a)/2);t(e[l])?s=l+1:a=l}return s-1}o(Fm,"findLastIdxMonotonous");function D3(e,t,r=0,n=e.length){let s=r,a=n;for(;s<a;){let l=Math.floor((s+a)/2);t(e[l])?a=l:s=l+1}return s}o(D3,"findFirstIdxMonotonousOrArrLen");var wB=class e{constructor(t){this._array=t;this._findLastMonotonousLastIdx=0}static{o(this,"MonotonousArray")}static{this.assertInvariants=!1}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!t(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=Fm(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};var BC=class{static{o(this,"ErrorHandler")}constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?k3.isErrorNoTelemetry(t)?new k3(t.message+`
[237] Fix | Delete
[238] Fix | Delete
`+t.stack):new Error(t.message+`
[239] Fix | Delete
[240] Fix | Delete
`+t.stack):t},0)}}addListener(t){return this.listeners.push(t),()=>{this._removeListener(t)}}emit(t){this.listeners.forEach(r=>{r(t)})}_removeListener(t){this.listeners.splice(this.listeners.indexOf(t),1)}setUnexpectedErrorHandler(t){this.unexpectedErrorHandler=t}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},SB=new BC;function nf(e){SB.onUnexpectedError(e)}o(nf,"onBugIndicatingError");function Um(e){lce(e)||SB.onUnexpectedError(e)}o(Um,"onUnexpectedError");var $C="Canceled";function lce(e){return e instanceof Mm?!0:e instanceof Error&&e.name===$C&&e.message===$C}o(lce,"isCancellationError");var Mm=class extends Error{static{o(this,"CancellationError")}constructor(){super($C),this.name=this.message}};var k3=class e extends Error{static{o(this,"ErrorNoTelemetry")}constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Dn=class e extends Error{static{o(this,"BugIndicatingError")}constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};var RB;(c=>{function e(u){return u<0}c.isLessThan=e,o(e,"isLessThan");function t(u){return u<=0}c.isLessThanOrEqual=t,o(t,"isLessThanOrEqual");function r(u){return u>0}c.isGreaterThan=r,o(r,"isGreaterThan");function n(u){return u===0}c.isNeitherLessOrGreaterThan=n,o(n,"isNeitherLessOrGreaterThan"),c.greaterThan=1,c.lessThan=-1,c.neitherLessOrGreaterThan=0})(RB||={});function N3(e,t){return(r,n)=>t(e(r),e(n))}o(N3,"compareBy");var O3=o((e,t)=>e-t,"numberComparator");var PB=class e{constructor(t){this.iterate=t}static{o(this,"CallbackIterable")}static{this.empty=new e(t=>{})}forEach(t){this.iterate(r=>(t(r),!0))}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new e(r=>this.iterate(n=>t(n)?r(n):!0))}map(t){return new e(r=>this.iterate(n=>r(t(n))))}some(t){let r=!1;return this.iterate(n=>(r=t(n),!r)),r}findFirst(t){let r;return this.iterate(n=>t(n)?(r=n,!1):!0),r}findLast(t){let r;return this.iterate(n=>(t(n)&&(r=n),!0)),r}findLastMaxBy(t){let r,n=!0;return this.iterate(s=>((n||RB.isGreaterThan(t(s,r)))&&(n=!1,r=s),!0)),r}};function NB(e,t){let r=Object.create(null);for(let n of e){let s=t(n),a=r[s];a||(a=r[s]=[]),a.push(n)}return r}o(NB,"groupBy");var DB,kB,AB=class{constructor(t,r){this.toKey=r;this._map=new Map;this[DB]="SetWithKey";for(let n of t)this.add(n)}static{o(this,"SetWithKey")}get size(){return this._map.size}add(t){let r=this.toKey(t);return this._map.set(r,t),this}delete(t){return this._map.delete(this.toKey(t))}has(t){return this._map.has(this.toKey(t))}*entries(){for(let t of this._map.values())yield[t,t]}keys(){return this.values()}*values(){for(let t of this._map.values())yield t}clear(){this._map.clear()}forEach(t,r){this._map.forEach(n=>t.call(r,n,n,this))}[(kB=Symbol.iterator,DB=Symbol.toStringTag,kB)](){return this.values()}};function jC(e,t){let r=this,n=!1,s;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(r,arguments)}finally{t()}else s=e.apply(r,arguments);return s}}o(jC,"createSingleCallFunction");var WC;(T=>{function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}T.is=e,o(e,"is");let t=Object.freeze([]);function r(){return t}T.empty=r,o(r,"empty");function*n(v){yield v}T.single=n,o(n,"single");function s(v){return e(v)?v:n(v)}T.wrap=s,o(s,"wrap");function a(v){return v||t}T.from=a,o(a,"from");function*l(v){for(let S=v.length-1;S>=0;S--)yield v[S]}T.reverse=l,o(l,"reverse");function c(v){return!v||v[Symbol.iterator]().next().done===!0}T.isEmpty=c,o(c,"isEmpty");function u(v){return v[Symbol.iterator]().next().value}T.first=u,o(u,"first");function d(v,S){let R=0;for(let j of v)if(S(j,R++))return!0;return!1}T.some=d,o(d,"some");function f(v,S){for(let R of v)if(S(R))return R}T.find=f,o(f,"find");function*m(v,S){for(let R of v)S(R)&&(yield R)}T.filter=m,o(m,"filter");function*p(v,S){let R=0;for(let j of v)yield S(j,R++)}T.map=p,o(p,"map");function*g(v,S){let R=0;for(let j of v)yield*S(j,R++)}T.flatMap=g,o(g,"flatMap");function*h(...v){for(let S of v)yield*S}T.concat=h,o(h,"concat");function x(v,S,R){let j=R;for(let K of v)j=S(j,K);return j}T.reduce=x,o(x,"reduce");function*_(v,S,R=v.length){for(S<-v.length&&(S=0),S<0&&(S+=v.length),R<0?R+=v.length:R>v.length&&(R=v.length);S<R;S++)yield v[S]}T.slice=_,o(_,"slice");function y(v,S=Number.POSITIVE_INFINITY){let R=[];if(S===0)return[R,v];let j=v[Symbol.iterator]();for(let K=0;K<S;K++){let V=j.next();if(V.done)return[R,T.empty()];R.push(V.value)}return[R,{[Symbol.iterator](){return j}}]}T.consume=y,o(y,"consume");async function b(v){let S=[];for await(let R of v)S.push(R);return Promise.resolve(S)}T.asyncToArray=b,o(b,"asyncToArray")})(WC||={});var qC=class{constructor(t,r){this.uri=t;this.value=r}static{o(this,"ResourceMapEntry")}};function uce(e){return Array.isArray(e)}o(uce,"isEntries");var FB,L3=class e{constructor(t,r){this[FB]="ResourceMap";if(t instanceof e)this.map=new Map(t.map),this.toKey=r??e.defaultToKey;else if(uce(t)){this.map=new Map,this.toKey=r??e.defaultToKey;for(let[n,s]of t)this.set(n,s)}else this.map=new Map,this.toKey=t??e.defaultToKey}static{o(this,"ResourceMap")}static{this.defaultToKey=o(t=>t.toString(),"defaultToKey")}set(t,r){return this.map.set(this.toKey(t),new qC(t,r)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,r){typeof r<"u"&&(t=t.bind(r));for(let[n,s]of this.map)t(s.value,s.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(FB=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}},MB,OB=class{constructor(t,r){this[MB]="ResourceSet";!t||typeof t=="function"?this._map=new L3(t):(this._map=new L3(r),t.forEach(this.add,this))}static{o(this,"ResourceSet")}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,r){this._map.forEach((n,s)=>t.call(r,s,s,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(MB=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}};var UB,LB=class{constructor(){this[UB]="LinkedMap";this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}static{o(this,"LinkedMap")}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,r=0){let n=this._map.get(t);if(n)return r!==0&&this.touch(n,r),n.value}set(t,r,n=0){let s=this._map.get(t);if(s)s.value=r,n!==0&&this.touch(s,n);else{switch(s={key:t,value:r,next:void 0,previous:void 0},n){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(t,s),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let r=this._map.get(t);if(r)return this._map.delete(t),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,r){let n=this._state,s=this._head;for(;s;){if(r?t.bind(r)(s.value,s.key,this):t(s.value,s.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){let t=this,r=this._state,n=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let a={value:n.key,done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return s}values(){let t=this,r=this._state,n=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let a={value:n.value,done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return s}entries(){let t=this,r=this._state,n=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let a={value:[n.key,n.value],done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return s}[(UB=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>t;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._tail,n=this.size;for(;r&&n>t;)this._map.delete(r.key),r=r.previous,n--;this._tail=r,this._size=n,r&&(r.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let r=t.next,n=t.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}t.next=void 0,t.previous=void 0,this._state++}touch(t,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(t===this._head)return;let n=t.next,s=t.previous;t===this._tail?(s.next=void 0,this._tail=s):(n.previous=s,s.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(r===2){if(t===this._tail)return;let n=t.next,s=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=s,s.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((r,n)=>{t.push([n,r])}),t}fromJSON(t){this.clear();for(let[r,n]of t)this.set(r,n)}};var F3=class{constructor(){this.map=new Map}static{o(this,"SetMap")}add(t,r){let n=this.map.get(t);n||(n=new Set,this.map.set(t,n)),n.add(r)}delete(t,r){let n=this.map.get(t);n&&(n.delete(r),n.size===0&&this.map.delete(t))}forEach(t,r){let n=this.map.get(t);n&&n.forEach(r)}get(t){let r=this.map.get(t);return r||new Set}};var fce=!1,Bm=null;var BB=class e{constructor(){this.livingDisposables=new Map}static{o(this,"DisposableTracker")}static{this.idx=0}getDisposableData(t){let r=this.livingDisposables.get(t);return r||(r={parent:null,source:null,isSingleton:!1,value:t,idx:e.idx++},this.livingDisposables.set(t,r)),r}trackDisposable(t){let r=this.getDisposableData(t);r.source||(r.source=new Error().stack)}setParent(t,r){let n=this.getDisposableData(t);n.parent=r}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,r){let n=r.get(t);if(n)return n;let s=t.parent?this.getRootParent(this.getDisposableData(t.parent),r):t;return r.set(t,s),s}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,n])=>n.source!==null&&!this.getRootParent(n,t).isSingleton).flatMap(([n])=>n)}computeLeakingDisposables(t=10,r){let n;if(r)n=r;else{let u=new Map,d=[...this.livingDisposables.values()].filter(m=>m.source!==null&&!this.getRootParent(m,u).isSingleton);if(d.length===0)return;let f=new Set(d.map(m=>m.value));if(n=d.filter(m=>!(m.parent&&f.has(m.parent))),n.length===0)throw new Error("There are cyclic diposable chains!")}if(!n)return;function s(u){function d(m,p){for(;m.length>0&&p.some(g=>typeof g=="string"?g===m[0]:m[0].match(g));)m.shift()}o(d,"removePrefix");let f=u.source.split(`
[241] Fix | Delete
`).map(m=>m.trim().replace("at ","")).filter(m=>m!=="");return d(f,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),f.reverse()}o(s,"getStackTracePath");let a=new F3;for(let u of n){let d=s(u);for(let f=0;f<=d.length;f++)a.add(d.slice(0,f).join(`
[242] Fix | Delete
`),u)}n.sort(N3(u=>u.idx,O3));let l="",c=0;for(let u of n.slice(0,t)){c++;let d=s(u),f=[];for(let m=0;m<d.length;m++){let p=d[m];p=`(shared with ${a.get(d.slice(0,m+1).join(`
[243] Fix | Delete
`)).size}/${n.length} leaks) at ${p}`;let h=a.get(d.slice(0,m).join(`
[244] Fix | Delete
`)),x=NB([...h].map(_=>s(_)[m]),_=>_);delete x[d[m]];for(let[_,y]of Object.entries(x))f.unshift(` - stacktraces of ${y.length} other leaks continue with ${_}`);f.unshift(p)}l+=`
[245] Fix | Delete
[246] Fix | Delete
[247] Fix | Delete
==================== Leaking disposable ${c}/${n.length}: ${u.value.constructor.name} ====================
[248] Fix | Delete
${f.join(`
[249] Fix | Delete
`)}
[250] Fix | Delete
============================================================
[251] Fix | Delete
[252] Fix | Delete
`}return n.length>t&&(l+=`
[253] Fix | Delete
[254] Fix | Delete
[255] Fix | Delete
... and ${n.length-t} more leaking disposables
[256] Fix | Delete
[257] Fix | Delete
`),{leaks:n,details:l}}};function dce(e){Bm=e}o(dce,"setDisposableTracker");if(fce){let e="__is_disposable_tracked__";dce(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==Oo.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Oo.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function $m(e){return Bm?.trackDisposable(e),e}o($m,"trackDisposable");function jm(e){Bm?.markAsDisposed(e)}o(jm,"markAsDisposed");function HC(e,t){Bm?.setParent(e,t)}o(HC,"setParentOfDisposable");function mce(e,t){if(Bm)for(let r of e)Bm.setParent(r,t)}o(mce,"setParentOfDisposables");function $B(e){if(WC.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}o($B,"dispose");function jB(...e){let t=Qa(()=>$B(e));return mce(e,t),t}o(jB,"combinedDisposable");function Qa(e){let t=$m({dispose:jC(()=>{jm(t),e()})});return t}o(Qa,"toDisposable");var K0=class e{constructor(){this._toDispose=new Set;this._isDisposed=!1;$m(this)}static{o(this,"DisposableStore")}static{this.DISABLE_DISPOSED_WARNING=!1}dispose(){this._isDisposed||(jm(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$B(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return HC(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),HC(t,null))}},Oo=class{constructor(){this._store=new K0;$m(this),HC(this._store,this)}static{o(this,"Disposable")}static{this.None=Object.freeze({dispose(){}})}dispose(){jm(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};var Fg=class extends Oo{static{o(this,"ChatQuotaService")}constructor(t){super(),this._register(dn(t,r=>{this.processUserInfoQuotaSnapshot(r.userInfo?.raw)}))}get quotaExhausted(){return this._quotaInfo?this._quotaInfo.used>=this._quotaInfo.quota&&!this._quotaInfo.overageEnabled:!1}get overagesEnabled(){return this._quotaInfo?this._quotaInfo.overageEnabled:!1}clearQuota(){this._quotaInfo=void 0}processQuotaHeaders(t){let r=t.get("x-quota-snapshot-premium_models")||t.get("x-quota-snapshot-premium_interactions");if(r)try{let n=new URLSearchParams(r),s=parseInt(n.get("ent")||"0",10),a=parseFloat(n.get("ov")||"0.0"),l=n.get("ovPerm")==="true",c=parseFloat(n.get("rem")||"0.0"),u=n.get("rst"),d;u?d=new Date(u):(d=new Date,d.setMonth(d.getMonth()+1));let f=Math.max(0,s*(1-c/100));this._quotaInfo={quota:s,used:f,overageUsed:a,overageEnabled:l,resetDate:d}}catch(n){console.error("Failed to parse quota header",n)}}processUserInfoQuotaSnapshot(t){!t||!t.quota_snapshots||!t.quota_reset_date||(this._quotaInfo={overageEnabled:t.quota_snapshots.premium_interactions.overage_permitted,overageUsed:t.quota_snapshots.premium_interactions.overage_count,quota:t.quota_snapshots.premium_interactions.entitlement,resetDate:new Date(t.quota_reset_date),used:Math.max(0,t.quota_snapshots.premium_interactions.entitlement*(1-t.quota_snapshots.premium_interactions.percent_remaining/100))})}};var WB=Pt(Zn()),Aot=L.Object({accessToken:L.Optional(L.String({minLength:1})),handle:L.Optional(L.String({minLength:1})),login:L.Optional(L.String({minLength:1})),githubAppId:L.Optional(L.String({minLength:1})),apiUrl:L.Optional(L.String({})),serverUrl:L.Optional(L.String({})),tokenEndpoint:L.Optional(L.String({}))}),pce;(r=>(r.method="github/didChangeAuth",r.type=new WB.ProtocolNotificationType(r.method)))(pce||={});var qB=Pt(Zn()),gce;(r=>(r.method="copilot/ipCodeCitation",r.type=new qB.NotificationType(r.method)))(gce||={});var HB=Pt(Zn()),hce;(r=>(r.method="context/update",r.type=new HB.ProtocolRequestType(r.method)))(hce||={});var pr=Pt(Zn()),xce=L.String(),_ce=L.Object({uri:xce}),of=L.Intersect([_ce,L.Object({version:L.Optional(L.Integer())})]),Uot=L.Required(of),pc=L.Object({line:L.Integer({minimum:0}),character:L.Integer({minimum:0})}),zB=L.Object({start:pc,end:pc}),zC=L.Union([L.Integer(),L.String()]),Bot=L.Object({isCancellationRequested:L.Boolean(),onCancellationRequested:L.Any()});var VB=Pt(Zn()),yce;(r=>(r.method="textDocument/didFocus",r.type=new VB.ProtocolNotificationType(r.method)))(yce||={});var bce=L.Object({didChangeFeatureFlags:L.Boolean(),fetch:L.Boolean(),ipCodeCitation:L.Boolean(),redirectedTelemetry:L.Boolean(),related:L.Boolean(),token:L.Boolean(),watchedFiles:L.Boolean(),showPanelMessage:L.Boolean(),mcpElicitation:L.Boolean(),mcpSampling:L.Boolean()}),vce=L.Object({name:L.String(),version:L.String(),readableName:L.Optional(L.String())}),GB=L.Object({name:L.String(),version:L.Optional(L.String()),readableName:L.Optional(L.String())}),Hot=L.Object({editorInfo:L.Optional(GB),editorPluginInfo:L.Optional(GB),relatedPluginInfo:L.Optional(L.Array(vce)),copilotIntegrationId:L.Optional(L.String()),copilotCapabilities:L.Optional(L.Partial(bce)),githubAppId:L.Optional(L.String())});var Mg=Pt(Zn());var KB=(r=>(r[r.Invoked=1]="Invoked",r[r.Automatic=2]="Automatic",r))(KB||{}),Tce=L.Enum(KB),Cce=L.Object({triggerKind:Tce,selectedCompletionInfo:L.Optional(L.Object({text:L.String(),range:zB,tooltipSignature:L.Optional(L.String())}))}),YB=L.Object({textDocument:of,position:pc,formattingOptions:L.Optional(L.Object({tabSize:L.Optional(L.Union([L.Integer({minimum:1}),L.String()])),insertSpaces:L.Optional(L.Union([L.Boolean(),L.String()]))})),context:Cce,data:L.Optional(L.Unknown())}),Ece;(r=>(r.method="textDocument/inlineCompletion",r.type=new Mg.ProtocolRequestType(r.method)))(Ece||={});var XB=L.Object({command:L.Object({arguments:L.Tuple([L.String({minLength:1})])})}),Yot=L.Object({item:XB}),Ice;(r=>(r.method="textDocument/didShowCompletion",r.type=new Mg.ProtocolNotificationType(r.method)))(Ice||={});var Xot=L.Object({item:XB,acceptedLength:L.Integer({minimum:1})}),wce;(r=>(r.method="textDocument/didPartiallyAcceptCompletion",r.type=new Mg.ProtocolNotificationType(r.method)))(wce||={});var JB=Pt(Zn()),Sce;(r=>(r.method="textDocument/inlineCompletionPrompt",r.type=new JB.ProtocolRequestType(r.method)))(Sce||={});var ZB=Pt(Zn()),rst=L.Object({textDocument:of,position:pc}),Pce=L.Object({command:L.Object({arguments:L.Tuple([L.String({minLength:1})])})}),nst=L.Object({item:Pce}),Rce;(r=>(r.method="textDocument/didShowInlineEdit",r.type=new ZB.ProtocolNotificationType(r.method)))(Rce||={});var M3=Pt(Zn());var cst=L.Object({textDocument:of,position:pc,partialResultToken:L.Optional(zC),workDoneToken:L.Optional(zC)}),Ace;(n=>(n.method="textDocument/copilotPanelCompletion",n.type=new M3.ProtocolRequestType(n.method),n.partialResult=new M3.ProgressType))(Ace||={});var QB=Pt(Zn()),Dce;(r=>(r.method="copilot/related",r.type=new QB.ProtocolRequestType(r.method)))(Dce||={});var e$=Pt(Zn()),kce;(r=>(r.method="statusNotification",r.type=new e$.ProtocolNotificationType(r.method)))(kce||={});var f$=Pt(GC());var $3="CompletionRequested",sf=class{constructor(t){this.ctx=t}static{o(this,"CompletionNotifier")}#e=new f$.default;notifyRequest(t,r,n,s,a){return this.#e.emit($3,{completionId:r,completionState:t,telemetryData:n,cancellationToken:s,options:a})}onRequest(t){let r=Uo(this.ctx,t,`event.${$3}`);return this.#e.on($3,r),pr.Disposable.create(()=>this.#e.off($3,r))}};var KC=class extends Error{constructor(r){super(`No instance of ${r.name} has been registered`);this.ctor=r;this.name=`UnregisteredContextErrorFor${r.name}`}static{o(this,"UnregisteredContextError")}},j3=class{constructor(){this.instances=new Map}static{o(this,"Context")}get(t){let r=this.tryGet(t);if(r)return r;throw new KC(t)}tryGet(t){let r=this.instances.get(t);if(r)return r}set(t,r){if(this.tryGet(t))throw new Error(`An instance of ${t.name} has already been registered. Use forceSet() if you're sure it's a good idea.`);this.assertIsInstance(t,r),this.instances.set(t,r)}forceSet(t,r){this.assertIsInstance(t,r),this.instances.set(t,r)}assertIsInstance(t,r){if(!(r instanceof t)){let n=JSON.stringify(r);throw new Error(`The instance you're trying to register for ${t.name} is not an instance of it (${n}).`)}}};var Ug={abap:{extensions:[".abap"]},aspdotnet:{extensions:[".asax",".ascx",".ashx",".asmx",".aspx",".axd"]},bat:{extensions:[".bat",".cmd"]},bibtex:{extensions:[".bib",".bibtex"]},blade:{extensions:[".blade",".blade.php"]},BluespecSystemVerilog:{extensions:[".bsv"]},c:{extensions:[".c",".cats",".h",".h.in",".idc"]},csharp:{extensions:[".cake",".cs",".cs.pp",".csx",".linq"]},cpp:{extensions:[".c++",".cc",".cp",".cpp",".cppm",".cxx",".h",".h++",".hh",".hpp",".hxx",".idl",".inc",".inl",".ino",".ipp",".ixx",".rc",".re",".tcc",".tpp",".txx",".i"]},cobol:{extensions:[".cbl",".ccp",".cob",".cobol",".cpy"]},css:{extensions:[".css",".wxss"]},clojure:{extensions:[".bb",".boot",".cl2",".clj",".cljc",".cljs",".cljs.hl",".cljscm",".cljx",".edn",".hic"],filenames:["riemann.config"]},ql:{extensions:[".ql",".qll"]},coffeescript:{extensions:["._coffee",".cake",".cjsx",".coffee",".iced"],filenames:["Cakefile"]},cuda:{extensions:[".cu",".cuh"]},dart:{extensions:[".dart"]},dockerfile:{extensions:[".containerfile",".dockerfile"],filenames:["Containerfile","Dockerfile"]},dotenv:{extensions:[".env"],filenames:[".env",".env.ci",".env.dev",".env.development",".env.development.local",".env.example",".env.local",".env.prod",".env.production",".env.sample",".env.staging",".env.test",".env.testing"]},html:{extensions:[".ect",".ejs",".ejs.t",".jst",".hta",".htm",".html",".html.hl",".html5",".inc",".jsp",".njk",".tpl",".twig",".wxml",".xht",".xhtml",".phtml",".liquid"]},elixir:{extensions:[".ex",".exs"],filenames:["mix.lock"]},erlang:{extensions:[".app",".app.src",".erl",".es",".escript",".hrl",".xrl",".yrl"],filenames:["Emakefile","rebar.config","rebar.config.lock","rebar.lock"]},fsharp:{extensions:[".fs",".fsi",".fsx"]},go:{extensions:[".go"]},groovy:{extensions:[".gradle",".groovy",".grt",".gtpl",".gvy",".jenkinsfile"],filenames:["Jenkinsfile","Jenkinsfile"]},graphql:{extensions:[".gql",".graphql",".graphqls"]},terraform:{extensions:[".hcl",".nomad",".tf",".tfvars",".workflow"]},hlsl:{extensions:[".cginc",".fx",".fxh",".hlsl",".hlsli"]},erb:{extensions:[".erb",".erb.deface",".rhtml"]},razor:{extensions:[".cshtml",".razor"]},haml:{extensions:[".haml",".haml.deface"]},handlebars:{extensions:[".handlebars",".hbs"]},haskell:{extensions:[".hs",".hs-boot",".hsc"]},ini:{extensions:[".cfg",".cnf",".dof",".ini",".lektorproject",".prefs",".pro",".properties",".url"],filenames:[".buckconfig",".coveragerc",".flake8",".pylintrc","HOSTS","buildozer.spec","hosts","pylintrc","vlcrc"]},json:{extensions:[".4DForm",".4DProject",".JSON-tmLanguage",".avsc",".geojson",".gltf",".har",".ice",".json",".json.example",".jsonl",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","MODULE.bazel.lock","Package.resolved","Pipfile.lock","bun.lock","composer.lock","deno.lock","flake.lock","mcmod.info"]},jsonc:{extensions:[".code-snippets",".code-workspace",".jsonc",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc",".swcrc","api-extractor.json","argv.json","devcontainer.json","extensions.json","jsconfig.json","keybindings.json","language-configuration.json","launch.json","profiles.json","settings.json","tasks.json","tsconfig.json","tslint.json"]},java:{extensions:[".jav",".java",".jsh"]},javascript:{extensions:["._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".js",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"]},julia:{extensions:[".jl"]},kotlin:{extensions:[".kt",".ktm",".kts"]},less:{extensions:[".less"]},lua:{extensions:[".fcgi",".lua",".luau",".nse",".p8",".pd_lua",".rbxs",".rockspec",".wlua"],filenames:[".luacheckrc"]},makefile:{extensions:[".d",".mak",".make",".makefile",".mk",".mkfile"],filenames:["BSDmakefile","GNUmakefile","Kbuild","Makefile","Makefile.am","Makefile.boot","Makefile.frag","Makefile.in","Makefile.inc","Makefile.wat","makefile","makefile.sco","mkfile"]},markdown:{extensions:[".livemd",".markdown",".md",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"]},"objective-c":{extensions:[".h",".m"]},"objective-cpp":{extensions:[".mm"]},php:{extensions:[".aw",".ctp",".fcgi",".inc",".install",".module",".php",".php3",".php4",".php5",".phps",".phpt",".theme"],filenames:[".php",".php_cs",".php_cs.dist","Phakefile"]},perl:{extensions:[".al",".cgi",".fcgi",".perl",".ph",".pl",".plx",".pm",".psgi",".t"],filenames:[".latexmkrc","Makefile.PL","Rexfile","ack","cpanfile","latexmkrc"]},powershell:{extensions:[".ps1",".psd1",".psm1"]},pug:{extensions:[".jade",".pug"]},python:{extensions:[".cgi",".codon",".fcgi",".gyp",".gypi",".lmi",".py",".py3",".pyde",".pyi",".pyp",".pyt",".pyw",".rpy",".sage",".spec",".tac",".wsgi",".xpy"],filenames:[".gclient","DEPS","SConscript","SConstruct","wscript"]},r:{extensions:[".r",".rd",".rsx"],filenames:[".Rprofile","expr-dist"]},ruby:{extensions:[".builder",".eye",".fcgi",".gemspec",".god",".jbuilder",".mspec",".pluginspec",".podspec",".prawn",".rabl",".rake",".rb",".rbi",".rbuild",".rbw",".rbx",".ru",".ruby",".spec",".thor",".watchr"],filenames:[".irbrc",".pryrc",".simplecov","Appraisals","Berksfile","Brewfile","Buildfile","Capfile","Dangerfile","Deliverfile","Fastfile","Gemfile","Guardfile","Jarfile","Mavenfile","Podfile","Puppetfile","Rakefile","Snapfile","Steepfile","Thorfile","Vagrantfile","buildfile"]},rust:{extensions:[".rs",".rs.in"]},scss:{extensions:[".scss"]},sql:{extensions:[".cql",".ddl",".inc",".mysql",".prc",".sql",".tab",".udf",".viw"]},sass:{extensions:[".sass"]},scala:{extensions:[".kojo",".sbt",".sc",".scala"]},shellscript:{extensions:[".bash",".bats",".cgi",".command",".fcgi",".fish",".ksh",".sh",".sh.in",".tmux",".tool",".trigger",".zsh",".zsh-theme"],filenames:[".bash_aliases",".bash_functions",".bash_history",".bash_logout",".bash_profile",".bashrc",".cshrc",".envrc",".flaskenv",".kshrc",".login",".profile",".tmux.conf",".zlogin",".zlogout",".zprofile",".zshenv",".zshrc","9fs","PKGBUILD","bash_aliases","bash_logout","bash_profile","bashrc","cshrc","gradlew","kshrc","login","man","profile","tmux.conf","zlogin","zlogout","zprofile","zshenv","zshrc"]},slang:{extensions:[".fxc",".hlsl",".s",".slang",".slangh",".usf",".ush",".vfx"]},slim:{extensions:[".slim"]},solidity:{extensions:[".sol"]},stylus:{extensions:[".styl"]},svelte:{extensions:[".svelte"]},swift:{extensions:[".swift"]},systemverilog:{extensions:[".sv",".svh",".vh"]},typescriptreact:{extensions:[".tsx"]},latex:{extensions:[".aux",".bbx",".cbx",".cls",".dtx",".ins",".lbx",".ltx",".mkii",".mkiv",".mkvi",".sty",".tex",".toc"]},typescript:{extensions:[".cts",".mts",".ts"]},verilog:{extensions:[".v",".veo"]},vim:{extensions:[".vba",".vim",".vimrc",".vmb"],filenames:[".exrc",".gvimrc",".nvimrc",".vimrc","_vimrc","gvimrc","nvimrc","vimrc"]},vb:{extensions:[".vb",".vbhtml",".Dsr",".bas",".cls",".ctl",".frm",".vbs"]},vue:{extensions:[".nvue",".vue"]},xml:{extensions:[".adml",".admx",".ant",".axaml",".axml",".builds",".ccproj",".ccxml",".clixml",".cproject",".cscfg",".csdef",".csl",".csproj",".ct",".depproj",".dita",".ditamap",".ditaval",".dll.config",".dotsettings",".filters",".fsproj",".fxml",".glade",".gml",".gmx",".gpx",".grxml",".gst",".hzp",".iml",".ivy",".jelly",".jsproj",".kml",".launch",".mdpolicy",".mjml",".mod",".mojo",".mxml",".natvis",".ncl",".ndproj",".nproj",".nuspec",".odd",".osm",".pkgproj",".plist",".pluginspec",".proj",".props",".ps1xml",".psc1",".pt",".pubxml",".qhelp",".rdf",".res",".resx",".rss",".sch",".scxml",".sfproj",".shproj",".srdf",".storyboard",".sublime-snippet",".svg",".sw",".targets",".tml",".typ",".ui",".urdf",".ux",".vbproj",".vcxproj",".vsixmanifest",".vssettings",".vstemplate",".vxml",".wixproj",".workflow",".wsdl",".wsf",".wxi",".wxl",".wxs",".x3d",".xacro",".xaml",".xib",".xlf",".xliff",".xmi",".xml",".xml.dist",".xmp",".xproj",".xsd",".xspec",".xul",".zcml"],filenames:[".classpath",".cproject",".project","App.config","NuGet.config","Settings.StyleCop","Web.Debug.config","Web.Release.config","Web.config","packages.config"]},xsl:{extensions:[".xsl",".xslt"]},yaml:{extensions:[".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock","yarn.lock"]},javascriptreact:{extensions:[".jsx"]},legend:{extensions:[".pure"]}};var d$=[".ejs",".erb",".haml",".hbs",".j2",".jinja",".jinja2",".liquid",".mustache",".njk",".php",".pug",".slim",".webc"],m$={".php":[".blade"]},p$=Object.keys(Ug).flatMap(e=>Ug[e].extensions);var YC=Pt(Pf());var Hm=class{constructor(t,r,n){this.languageId=t;this.isGuess=r;this.fileExtension=n}static{o(this,"Language")}},Bg=class{static{o(this,"LanguageDetection")}},XC=new Map,qm=new Map;for(let[e,{extensions:t,filenames:r}]of Object.entries(Ug)){for(let n of t)XC.set(n,[...XC.get(n)??[],e]);for(let n of r??[])qm.set(n,[...qm.get(n)??[],e])}var JC=class extends Bg{static{o(this,"FilenameAndExensionLanguageDetection")}detectLanguage(t){let r=Nl(t.uri),n=YC.extname(r).toLowerCase(),s=this.extensionWithoutTemplateLanguage(r,n),a=this.detectLanguageId(r,s),l=this.computeFullyQualifiedExtension(n,s);return a?new Hm(a.languageId,a.isGuess,l):new Hm(t.languageId,!0,l)}extensionWithoutTemplateLanguage(t,r){if(d$.includes(r)){let n=t.substring(0,t.lastIndexOf(".")),s=YC.extname(n).toLowerCase();if(s.length>0&&p$.includes(s)&&this.isExtensionValidForTemplateLanguage(r,s))return s}return r}isExtensionValidForTemplateLanguage(t,r){let n=m$[t];return!n||n.includes(r)}detectLanguageId(t,r){if(qm.has(t))return{languageId:qm.get(t)[0],isGuess:!1};let n=XC.get(r)??[];if(n.length>0)return{languageId:n[0],isGuess:n.length>1};for(;t.includes(".");)if(t=t.replace(/\.[^.]*$/,""),qm.has(t))return{languageId:qm.get(t)[0],isGuess:!1}}computeFullyQualifiedExtension(t,r){return t!==r?r+t:t}},ZC=class extends Bg{constructor(r){super();this.delegate=r}static{o(this,"GroupingLanguageDetection")}detectLanguage(r){let n=this.delegate.detectLanguage(r),s=n.languageId;return s==="c"||s==="cpp"?new Hm("cpp",n.isGuess,n.fileExtension):n}},QC=class extends Bg{constructor(r){super();this.delegate=r}static{o(this,"ClientProvidedLanguageDetection")}detectLanguage(r){return r.uri.startsWith("untitled:")||r.uri.startsWith("vscode-notebook-cell:")?new Hm(r.languageId,!0,""):this.delegate.detectLanguage(r)}},Bce=new ZC(new QC(new JC));function zm({uri:e,languageId:t}){let r=Bce.detectLanguage({uri:e,languageId:"UNKNOWN"});return r.languageId==="UNKNOWN"?t:r.languageId}o(zm,"detectLanguage");var W3=class e{static{o(this,"FullTextDocument")}constructor(t,r,n,s){this._uri=t,this._languageId=r,this._version=n,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let s=x$(n.range),a=this.offsetAt(s.start),l=this.offsetAt(s.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(l,this._content.length);let c=Math.max(s.start.line,0),u=Math.max(s.end.line,0),d=this._lineOffsets,f=g$(n.text,!1,a);if(u-c===f.length)for(let p=0,g=f.length;p<g;p++)d[p+c+1]=f[p];else f.length<1e4?d.splice(c+1,u-c,...f):this._lineOffsets=d=d.slice(0,c+1).concat(f,d.slice(u+1));let m=n.text.length-(l-a);if(m!==0)for(let p=c+1+f.length,g=d.length;p<g;p++)d[p]=d[p]+m}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=g$(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,s=r.length;if(s===0)return{line:0,character:t};for(;n<s;){let l=Math.floor((n+s)/2);r[l]>t?s=l:n=l+1}let a=n-1;return t=this.ensureBeforeEOL(t,r[a]),{line:a,character:t-r[a]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let s=t.line+1<r.length?r[t.line+1]:this._content.length,a=Math.min(n+t.character,s);return this.ensureBeforeEOL(a,n)}ensureBeforeEOL(t,r){for(;t>r&&h$(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},gc;(function(e){function t(s,a,l,c){return new W3(s,a,l,c)}o(t,"create"),e.create=t;function r(s,a,l){if(s instanceof W3)return s.update(a,l),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}o(r,"update"),e.update=r;function n(s,a){let l=s.getText(),c=eE(a.map($ce),(f,m)=>{let p=f.range.start.line-m.range.start.line;return p===0?f.range.start.character-m.range.start.character:p}),u=0,d=[];for(let f of c){let m=s.offsetAt(f.range.start);if(m<u)throw new Error("Overlapping edit");m>u&&d.push(l.substring(u,m)),f.newText.length&&d.push(f.newText),u=s.offsetAt(f.range.end)}return d.push(l.substr(u)),d.join("")}o(n,"applyEdits"),e.applyEdits=n})(gc||(gc={}));function eE(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),s=e.slice(r);eE(n,t),eE(s,t);let a=0,l=0,c=0;for(;a<n.length&&l<s.length;)t(n[a],s[l])<=0?e[c++]=n[a++]:e[c++]=s[l++];for(;a<n.length;)e[c++]=n[a++];for(;l<s.length;)e[c++]=s[l++];return e}o(eE,"mergeSort");function g$(e,t,r=0){let n=t?[r]:[];for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);h$(a)&&(a===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,n.push(r+s+1))}return n}o(g$,"computeLineOffsets");function h$(e){return e===13||e===10}o(h$,"isEOL");function x$(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}o(x$,"getWellformedRange");function $ce(e){let t=x$(e.range);return t!==e.range?{newText:e.newText,range:t}:e}o($ce,"getWellformedEdit");Zp();var yi=class{static{o(this,"LocationFactory")}static{this.range=Er.create.bind(Er)}static{this.position=Xn.create.bind(Xn)}},af=class e{constructor(t,r,n){this.uri=t;this._textDocument=r;this.detectedLanguageId=n}static{o(this,"CopilotTextDocument")}static withChanges(t,r,n){let s=gc.create(t.clientUri,t.clientLanguageId,n,t.getText());return gc.update(s,r,n),new e(t.uri,s,t.detectedLanguageId)}applyEdits(t){let r=gc.create(this.clientUri,this.clientLanguageId,this.version,this.getText());return gc.update(r,t.map(n=>({text:n.newText,range:n.range})),this.version),new e(this.uri,r,this.detectedLanguageId)}static create(t,r,n,s,a=zm({uri:t,languageId:r})){return new e(x0(t),gc.create(t,r,n,s),a)}get clientUri(){return this._textDocument.uri}get clientLanguageId(){return this._textDocument.languageId}get languageId(){return this._textDocument.languageId}get version(){return this._textDocument.version}get lineCount(){return this._textDocument.lineCount}getText(t){return this._textDocument.getText(t)}positionAt(t){return this._textDocument.positionAt(t)}offsetAt(t){return this._textDocument.offsetAt(t)}lineAt(t){let r=typeof t=="number"?t:t.line;if(r<0||r>=this.lineCount)throw new RangeError("Illegal value for lineNumber");let n=Er.create(r,0,r+1,0),s=this.getText(n).replace(/\r\n$|\r$|\n$/g,""),a=Er.create(Xn.create(r,0),Xn.create(r,s.length)),l=s.trim().length===0;return{text:s,range:a,isEmptyOrWhitespace:l}}};var $g={isBlocked:!1,reason:"VALID_FILE"},q3={isBlocked:!1,reason:"NO_MATCHING_POLICY"},_$={isBlocked:!0,reason:"POLICY_ERROR",message:"Copilot is disabled because we could not fetch the repository policy"},lf={all:"all",repo:"repo"},hc=new vt("contentExclusion");var H3=class{static{o(this,"PolicyEvaluator")}};var s0t=new vt("repository"),jg=class e{constructor(){this.data={}}static{o(this,"GitConfigData")}getKeys(){return Object.keys(this.data)}getEntries(){return Object.entries(this.data)}get(t){let r=this.getAll(t);return r?r[r.length-1]:void 0}getAll(t){return this.data[this.normalizeKey(t)]}add(t,r){t in this.data||(this.data[t]=[]),this.data[t].push(r)}getSectionValues(t,r){let n=`${t}.`.toLowerCase(),s=`.${r}`.toLowerCase();return Object.keys(this.data).filter(a=>a.startsWith(n)&&a.endsWith(s)).map(a=>a.slice(n.length,-s.length))}concat(t){return this.getEntries().concat(t.getEntries()).reduce((r,[n,s])=>(s.forEach(a=>r.add(n,a)),r),new e)}normalizeKey(t){let r=t.split(".");return r[0]=r[0].toLowerCase(),r[r.length-1]=r[r.length-1].toLowerCase(),r.join(".")}},xc=class{static{o(this,"GitConfigLoader")}};var y$=Pt(Bc());var z3=class{constructor(t){this.url=t;this.isUrl()?this.parseUrl():this.tryParseSSHString()||(this._scheme="file")}static{o(this,"GitRemoteUrl")}get scheme(){return this._scheme}get authority(){return this._authority}get hostname(){return this._hostname}get path(){return this._path}isInvalid(){return this._error!==void 0}isRemote(){return this.scheme!=="file"&&this.hostname!==void 0}isGitHub(){return this.isRemote()&&/(?:^|\.)(?:github\.com|ghe\.com)$/i.test(this.hostname??"")}isADO(){return this.isRemote()&&/(?:^|\.)(?:visualstudio\.com|azure\.com)$/i.test(this.hostname??"")}getUrlForApi(){if(!this.isRemote())return null;if(this.isUrl()&&!this.isInvalid())return kl.from({scheme:this.scheme,authority:this.authority.replace(/^[^@]+@/,""),path:this.path}).toString();if(this.scheme=="ssh"&&this.isADO()){let t=this.url.indexOf(":");return this.url.substring(0,t+1)+this.path}return this.url}isUrl(){return/[A-Za-z0-9][A-Za-z0-9]+:\/\//.test(this.url)}parseUrl(){let t;try{t=kl.parse(this.url)}catch(r){this._error=r;return}this._scheme=t.scheme,this.setAuthority(t.authority),this.setPath(t.path)}setAuthority(t){this._authority=t;let r=t.replace(/^[^@]+@/,"").replace(/:\d*$/,"");r&&(this._hostname=r)}tryParseSSHString(){let t=/^(?<host>[^:/\\[]*(?:\[[^/\\\]]*\])?):/.exec(this.url);if(t&&((0,y$.platform)()!=="win32"||(t.groups?.host?.length??0)>1)){let r=t.groups?.host??"";return this._scheme="ssh",this.setAuthority(r),this.setPath(this.url.substring(r.length+1)),!0}return!1}setPath(t){if(this.isADO())try{this._path=decodeURIComponent(t);return}catch{}this._path=t}};var V3=class{static{o(this,"GitRemoteResolver")}async resolveRemote(t,r){let n=await t.get(xc).getConfig(t,r);if(!n)return;let s=this.getRemotes(n),a=s.filter(l=>l.url.isGitHub());if(a.length)return a.find(l=>l.name==="origin")?.url??a[0].url;if(s.length)return s.find(l=>l.name==="origin")?.url??s[0].url}getRemotes(t){let r=this.getInsteadOfRules(t);return t.getSectionValues("remote","url").map(n=>({name:n,url:new z3(this.applyInsteadOfRules(r,t.get(`remote.${n}.url`)??""))})).filter(n=>n.url.isRemote())}applyInsteadOfRules(t,r){for(let n of t)if(r.startsWith(n.insteadOf))return n.base+r.slice(n.insteadOf.length);return r}getInsteadOfRules(t){return t.getSectionValues("url","insteadof").map(r=>({base:r,insteadOf:t.get(`url.${r}.insteadof`)})).sort((r,n)=>n.base.length-r.base.length)}};var jce=100,tE=class{constructor(t,r){this.baseFolder=t;this.remote=r;this.setNWO()}static{o(this,"GitRepository")}get tenant(){return this._tenant}get owner(){return this._owner}get name(){return this._name}get adoOrganization(){return this._adoOrganization}isGitHub(){return this.remote?.isGitHub()??!1}isADO(){return this.remote?.isADO()??!1}setNWO(){let t=this.remote?.path?.replace(/^\//,"").split("/");if(this.isGitHub()){this._owner=t?.[0],this._name=t?.[1]?.replace(/\.git$/,"");let r=/^(?<tenant>[^.]+)\.ghe\.com$/.exec(this.remote?.hostname??"");r&&(this._tenant=r.groups?.tenant)}else if(this.isADO()&&t?.length===4){if(this.remote?.scheme==="ssh"){this._adoOrganization=t?.[1],this._owner=t?.[2],this._name=t?.[3];return}let r=/(?:(?<org>[^.]+)\.)?visualstudio\.com$/.exec(this.remote?.hostname??"");r?(this._adoOrganization=r.groups?.org,this._owner=t?.[1],this._name=t?.[3]):(this._adoOrganization=t?.[0],this._owner=t?.[1],this._name=t?.[3])}}},el=class e{constructor(t){this.ctx=t;this.remoteResolver=new V3;this.cache=new Ut(jce)}static{o(this,"RepositoryManager")}async getRepo({uri:t}){let r,n=[];do{if(this.cache.has(t.toString())){let a=this.cache.get(t);return this.updateCache(n,a),a}n.push(t.toString());let s=await this.tryGetRepoForFolder(t);if(s)return this.updateCache(n,s),s;r=t,t=Ca(t)}while(t!==r);this.updateCache(n,void 0)}updateCache(t,r){t.forEach(n=>this.cache.set(n,r))}async tryGetRepoForFolder(t){return await this.isBaseRepoFolder(t)?new tE(typeof t=="string"?{uri:t}:t,await this.repoUrl(t)):void 0}async isBaseRepoFolder(t){return await e.getRepoConfigLocation(this.ctx,t)!==void 0}async repoUrl(t){return await this.remoteResolver.resolveRemote(this.ctx,t)}static async getRepoConfigLocation(t,r){try{let n=t.get(en),s=Mn(r,".git");if((await n.stat(s)).type&1)return await this.getConfigLocationForGitfile(n,r,s);let l=Mn(s,"config");return await n.stat(l),l}catch{return}}static async getConfigLocationForGitfile(t,r,n){let a=(await t.readFileString(n)).match(/^gitdir:\s+(.+)$/m);if(!a)return;let l=ru(r,a[1]),c=Mn(l,"config");if(await this.tryStat(t,c)!==void 0)return c;let u=Mn(l,"config.worktree");if(await this.tryStat(t,u)!==void 0)return u;let d=Mn(l,"commondir");l=ru(l,(await t.readFileString(d)).trimEnd());let f=Mn(l,"config");return await t.stat(f),f}static async tryStat(t,r){try{return await t.stat(r)}catch{return}}};var cf=o((e,t)=>{if(W0.Check(e,t))return t;let r=`Typebox schema validation failed:
[258] Fix | Delete
${[...W0.Errors(e,t)].map(n=>`${n.path} ${n.message}`).join(`
[259] Fix | Delete
`)}`;throw new Error(r)},"assertShape");var G3=new WeakMap;function K3(e,t){if(e==null||typeof e!="object")return String(e);let r,n="",s=0,a=Object.prototype.toString.call(e);if(a!=="[object RegExp]"&&a!=="[object Date]"&&G3.has(e))return G3.get(e);switch(G3.set(e,"~"+ ++t),a){case"[object Set]":r=Array.from(e);case"[object Array]":for(r||(r=e),n+="a";s<r.length;n+=K3(r[s++],t));break;case"[object Object]":for(n+="o",r=Object.keys(e).sort();s<r.length;n+=r[s]+K3(e[r[s++]],t));break;case"[object Map]":for(n+="o",r=Array.from(e.keys()).sort();s<r.length;n+=r[s]+K3(e.get(r[s++]),t));break;case"[object Date]":return"d"+ +e;case"[object RegExp]":return"r"+e.source+e.flags;default:throw new Error(`Unsupported value ${e}`)}return G3.set(e,n),n}o(K3,"t");function Y3(e){return K3(e,0)}o(Y3,"r");var rE=new WeakMap;function b$(e,t,r=Y3(t)){let n,s,a=rE.get(e);a||(rE.set(e,a=[[],s=[],n=[]]),queueMicrotask(function(){let d,f=0;function m(p){for(;d=n[f++];d.r(p));}o(m,"o"),rE.delete(e),e(s).then(function(p){if(p.length!==n.length)return m(new Error("loader value length mismatch"));for(;d=p[f++],f<=p.length;d instanceof Error?n[f-1].r(d):n[f-1].s(d));},m)}));let l=a[0].indexOf(r);if(~l)return a[2][l].p;let c=a[0].push(r)-1,u=a[2][c]={};return a[1][c]=t,u.p=new Promise(function(d,f){u.s=d,u.r=f})}o(b$,"n");var v$=new WeakMap;function Wce(e,t,r,n=Y3(r)){if(t||(t=v$.get(e)),t||v$.set(e,t=new Map),t.has(n))return Promise.resolve(t.get(n));let s=b$(e,r,n);return t.set(n,s),s.catch(()=>t.delete(n)),s}o(Wce,"n");function T$(e,t){return function(r,n){return Wce(e,t,r,n)}}o(T$,"o");var q$=Pt(L$(),1);var qg=o(e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var Xce={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Hg=o(e=>e.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),Jce=o(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),F$=o(e=>e.join(""),"rangesToString"),M$=o((e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],s=[],a=r+1,l=!1,c=!1,u=!1,d=!1,f=r,m="";e:for(;a<e.length;){let x=e.charAt(a);if((x==="!"||x==="^")&&a===r+1){d=!0,a++;continue}if(x==="]"&&l&&!u){f=a+1;break}if(l=!0,x==="\\"&&!u){u=!0,a++;continue}if(x==="["&&!u){for(let[_,[y,b,T]]of Object.entries(Xce))if(e.startsWith(_,a)){if(m)return["$.",!1,e.length-r,!0];a+=_.length,T?s.push(y):n.push(y),c=c||b;continue e}}if(u=!1,m){x>m?n.push(Hg(m)+"-"+Hg(x)):x===m&&n.push(Hg(x)),m="",a++;continue}if(e.startsWith("-]",a+1)){n.push(Hg(x+"-")),a+=2;continue}if(e.startsWith("-",a+1)){m=x,a+=2;continue}n.push(Hg(x)),a++}if(f<a)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){let x=n[0].length===2?n[0].slice(-1):n[0];return[Jce(x),!1,f-r,!1]}let p="["+(d?"^":"")+F$(n)+"]",g="["+(d?"":"^")+F$(s)+"]";return[n.length&&s.length?"("+p+"|"+g+")":n.length?p:g,c,f-r,!0]},"parseClass");var _c=o((e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");var Zce=new Set(["!","?","+","*","@"]),U$=o(e=>Zce.has(e),"isExtglobType"),Qce="(?!(?:^|/)\\.\\.?(?:$|/))",X3="(?!\\.)",eue=new Set(["[","."]),tue=new Set(["..","."]),rue=new Set("().*{}+?[]^$\\!"),nue=o(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),oE="[^/]",B$=oE+"*?",$$=oE+"+?",Vm=class e{static{o(this,"AST")}type;#e;#t;#i=!1;#r=[];#n;#o;#s;#l=!1;#a;#c;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#t=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#s=this.#e===this?[]:this.#e.#s,t==="!"&&!this.#e.#l&&this.#s.push(this),this.#o=this.#n?this.#n.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let t of this.#r)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#r.map(t=>String(t)).join("|")+")":this.#c=this.#r.map(t=>String(t)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#s.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let s=r.#o+1;!n.type&&s<n.#r.length;s++)for(let a of t.#r){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(n.#r[s])}r=n,n=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#n===this))throw new Error("invalid part: "+r);this.#r.push(r)}}toJSON(){let t=this.type===null?this.#r.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#r.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#o===0)return!0;let t=this.#n;for(let r=0;r<this.#o;r++){let n=t.#r[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#r.length:0;return this.#o===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#r)r.copyIn(n);return r}static#u(t,r,n,s){let a=!1,l=!1,c=-1,u=!1;if(r.type===null){let g=n,h="";for(;g<t.length;){let x=t.charAt(g++);if(a||x==="\\"){a=!a,h+=x;continue}if(l){g===c+1?(x==="^"||x==="!")&&(u=!0):x==="]"&&!(g===c+2&&u)&&(l=!1),h+=x;continue}else if(x==="["){l=!0,c=g,u=!1,h+=x;continue}if(!s.noext&&U$(x)&&t.charAt(g)==="("){r.push(h),h="";let _=new e(x,r);g=e.#u(t,_,g,s),r.push(_);continue}h+=x}return r.push(h),g}let d=n+1,f=new e(null,r),m=[],p="";for(;d<t.length;){let g=t.charAt(d++);if(a||g==="\\"){a=!a,p+=g;continue}if(l){d===c+1?(g==="^"||g==="!")&&(u=!0):g==="]"&&!(d===c+2&&u)&&(l=!1),p+=g;continue}else if(g==="["){l=!0,c=d,u=!1,p+=g;continue}if(U$(g)&&t.charAt(d)==="("){f.push(p),p="";let h=new e(g,f);f.push(h),d=e.#u(t,h,d,s);continue}if(g==="|"){f.push(p),p="",m.push(f),f=new e(null,r);continue}if(g===")")return p===""&&r.#r.length===0&&(r.#f=!0),f.push(p),p="",r.push(...m,f),d;p+=g}return r.type=null,r.#t=void 0,r.#r=[t.substring(n-1)],d}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#u(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,s,a]=this.toRegExpSource();if(!(s||this.#t||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let c=(this.#a.nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#m(),!this.type){let u=this.isStart()&&this.isEnd(),d=this.#r.map(g=>{let[h,x,_,y]=typeof g=="string"?e.#p(g,this.#t,u):g.toRegExpSource(t);return this.#t=this.#t||_,this.#i=this.#i||y,h}).join(""),f="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&tue.has(this.#r[0]))){let h=eue,x=r&&h.has(d.charAt(0))||d.startsWith("\\.")&&h.has(d.charAt(2))||d.startsWith("\\.\\.")&&h.has(d.charAt(4)),_=!r&&!t&&h.has(d.charAt(0));f=x?Qce:_?X3:""}let m="";return this.isEnd()&&this.#e.#l&&this.#n?.type==="!"&&(m="(?:$|\\/)"),[f+d+m,_c(d),this.#t=!!this.#t,this.#i]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",a=this.#d(r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){let u=this.toString();return this.#r=[u],this.type=null,this.#t=void 0,[u,_c(this.toString()),!1,!1]}let l=!n||t||r||!X3?"":this.#d(!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?X3:"")+$$;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?X3:"")+B$+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+u}return[c,_c(a),this.#t=!!this.#t,this.#i]}#d(t){return this.#r.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,s,a,l]=r.toRegExpSource(t);return this.#i=this.#i||l,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#p(t,r,n=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){let u=t.charAt(c);if(s){s=!1,a+=(rue.has(u)?"\\":"")+u;continue}if(u==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(u==="["){let[d,f,m,p]=M$(t,c);if(m){a+=d,l=l||f,c+=m-1,r=r||p;continue}}if(u==="*"){n&&t==="*"?a+=$$:a+=B$,r=!0;continue}if(u==="?"){a+=oE,r=!0;continue}a+=nue(u)}return[a,_c(t),!!r,l]}};var sE=o((e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var ri=o((e,t,r={})=>(qg(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Gm(t,r).match(e)),"minimatch"),iue=/^\*+([^+@!?\*\[\(]*)$/,oue=o(e=>t=>!t.startsWith(".")&&t.endsWith(e),"starDotExtTest"),sue=o(e=>t=>t.endsWith(e),"starDotExtTestDot"),aue=o(e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),"starDotExtTestNocase"),lue=o(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),"starDotExtTestNocaseDot"),cue=/^\*+\.\*+$/,uue=o(e=>!e.startsWith(".")&&e.includes("."),"starDotStarTest"),fue=o(e=>e!=="."&&e!==".."&&e.includes("."),"starDotStarTestDot"),due=/^\.\*+$/,mue=o(e=>e!=="."&&e!==".."&&e.startsWith("."),"dotStarTest"),pue=/^\*+$/,gue=o(e=>e.length!==0&&!e.startsWith("."),"starTest"),hue=o(e=>e.length!==0&&e!=="."&&e!=="..","starTestDot"),xue=/^\?+([^+@!?\*\[\(]*)?$/,_ue=o(([e,t=""])=>{let r=H$([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},"qmarksTestNocase"),yue=o(([e,t=""])=>{let r=z$([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},"qmarksTestNocaseDot"),bue=o(([e,t=""])=>{let r=z$([e]);return t?n=>r(n)&&n.endsWith(t):r},"qmarksTestDot"),vue=o(([e,t=""])=>{let r=H$([e]);return t?n=>r(n)&&n.endsWith(t):r},"qmarksTest"),H$=o(([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},"qmarksTestNoExt"),z$=o(([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),V$=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",j$={win32:{sep:"\\"},posix:{sep:"/"}},Tue=V$==="win32"?j$.win32.sep:j$.posix.sep;ri.sep=Tue;var ms=Symbol("globstar **");ri.GLOBSTAR=ms;var Cue="[^/]",Eue=Cue+"*?",Iue="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wue="(?:(?!(?:\\/|^)\\.).)*?",Sue=o((e,t={})=>r=>ri(r,e,t),"filter");ri.filter=Sue;var ds=o((e,t={})=>Object.assign({},e,t),"ext"),Pue=o(e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ri;let t=ri;return Object.assign(o((n,s,a={})=>t(n,s,ds(e,a)),"m"),{Minimatch:class extends t.Minimatch{static{o(this,"Minimatch")}constructor(s,a={}){super(s,ds(e,a))}static defaults(s){return t.defaults(ds(e,s)).Minimatch}},AST:class extends t.AST{static{o(this,"AST")}constructor(s,a,l={}){super(s,a,ds(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,ds(e,a))}},unescape:o((n,s={})=>t.unescape(n,ds(e,s)),"unescape"),escape:o((n,s={})=>t.escape(n,ds(e,s)),"escape"),filter:o((n,s={})=>t.filter(n,ds(e,s)),"filter"),defaults:o(n=>t.defaults(ds(e,n)),"defaults"),makeRe:o((n,s={})=>t.makeRe(n,ds(e,s)),"makeRe"),braceExpand:o((n,s={})=>t.braceExpand(n,ds(e,s)),"braceExpand"),match:o((n,s,a={})=>t.match(n,s,ds(e,a)),"match"),sep:t.sep,GLOBSTAR:ms})},"defaults");ri.defaults=Pue;var G$=o((e,t={})=>(qg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,q$.default)(e)),"braceExpand");ri.braceExpand=G$;var Rue=o((e,t={})=>new Gm(e,t).makeRe(),"makeRe");ri.makeRe=Rue;var Aue=o((e,t,r={})=>{let n=new Gm(t,r);return e=e.filter(s=>n.match(s)),n.options.nonull&&!e.length&&e.push(t),e},"match");ri.match=Aue;var W$=/[?*]|[+@!]\(.*?\)|\[|\]/,Due=o(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Gm=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){qg(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||V$,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=a[0]===""&&a[1]===""&&(a[2]==="?"||!W$.test(a[2]))&&!W$.test(a[3]),d=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(f=>this.parse(f))];if(d)return[a[0],...a.slice(1).map(f=>this.parse(f))]}return a.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){let l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let s=0;s<t[n].length;s++)t[n][s]==="**"&&(t[n][s]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let s=n;for(;r[s+1]==="**";)s++;s!==n&&r.splice(n,s-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,s)=>{let a=n[n.length-1];return s==="**"&&a==="**"?n:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(s),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){let a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let s=t[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let l=s;for(;n[l+1]==="**";)l++;l>s&&n.splice(s+1,l-s);let c=n[s+1],u=n[s+2],d=n[s+3];if(c!==".."||!u||u==="."||u===".."||!d||d==="."||d==="..")continue;r=!0,n.splice(s,1);let f=n.slice(0);f[s]="**",t.push(f),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){let c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let a=0;for(;(a=n.indexOf("..",a+1))!==-1;){let l=n[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;let u=a===1&&n[a+1]==="**"?["."]:[];n.splice(a-1,2,...u),n.length===0&&n.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let s=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(s){t[r]=[],t[n]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(n&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(n&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let s=this.options;if(this.isWindows){let x=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),_=!x&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),b=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),T=_?3:x?0:void 0,v=b?3:y?0:void 0;if(typeof T=="number"&&typeof v=="number"){let[S,R]=[t[T],r[v]];S.toLowerCase()===R.toLowerCase()&&(r[v]=S,v>T?r=r.slice(v):T>v&&(t=t.slice(T)))}}let{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,u=t.length,d=r.length;l<u&&c<d;l++,c++){this.debug("matchOne loop");var f=r[c],m=t[l];if(this.debug(r,f,m),f===!1)return!1;if(f===ms){this.debug("GLOBSTAR",[r,f,m]);var p=l,g=c+1;if(g===d){for(this.debug("** at the end");l<u;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<u;){var h=t[p];if(this.debug(`
[260] Fix | Delete
globstar while`,t,p,r,g,h),this.matchOne(t.slice(p),r.slice(g),n))return this.debug("globstar found match!",p,u,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,p,r,g);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(n&&(this.debug(`
[261] Fix | Delete
>>> no match, partial?`,t,p,r,g),p===u))}let x;if(typeof f=="string"?(x=m===f,this.debug("string match",f,m,x)):(x=f.test(m),this.debug("pattern match",f,m,x)),!x)return!1}if(l===u&&c===d)return!0;if(l===u)return n;if(c===d)return l===u-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return G$(this.pattern,this.options)}parse(t){qg(t);let r=this.options;if(t==="**")return ms;if(t==="")return"";let n,s=null;(n=t.match(pue))?s=r.dot?hue:gue:(n=t.match(iue))?s=(r.nocase?r.dot?lue:aue:r.dot?sue:oue)(n[1]):(n=t.match(xue))?s=(r.nocase?r.dot?yue:_ue:r.dot?bue:vue)(n):(n=t.match(cue))?s=r.dot?fue:uue:(n=t.match(due))&&(s=mue);let a=Vm.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Eue:r.dot?Iue:wue,s=new Set(r.nocase?["i"]:[]),a=t.map(u=>{let d=u.map(f=>{if(f instanceof RegExp)for(let m of f.flags.split(""))s.add(m);return typeof f=="string"?Due(f):f===ms?ms:f._src});return d.forEach((f,m)=>{let p=d[m+1],g=d[m-1];f!==ms||g===ms||(g===void 0?p!==void 0&&p!==ms?d[m+1]="(?:\\/|"+n+"\\/)?"+p:d[m]=n:p===void 0?d[m-1]=g+"(?:\\/|"+n+")?":p!==ms&&(d[m-1]=g+"(?:\\/|\\/"+n+"\\/)"+p,d[m+1]=ms))}),d.filter(f=>f!==ms).join("/")}).join("|"),[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let s=this.slashSplit(t);this.debug(this.pattern,"split",s);let a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){let u=a[c],d=s;if(n.matchBase&&u.length===1&&(d=[l]),this.matchOne(d,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return ri.defaults(t).Minimatch}};ri.AST=Vm;ri.Minimatch=Gm;ri.escape=sE;ri.unescape=_c;var aE="contentExclusion",J3=class extends H3{static{o(this,"CopilotContentExclusion")}#e;#t=new Ut(1e4);#i=new Ut(200);constructor(t){super(),this.#e=t}async evaluate(t,r){try{t=ru(t).toString();let n=await this.getGitRepo({uri:t}),s=await this.#r(n?.url??lf.all);if(!s)return q3;let a=n?.baseFolder?.uri??"file://",l=this.evaluateFilePathRules(t,a,s);if(l.isBlocked)return l;let c=this.evaluateTextBasedRules(t,s,r);if(c.isBlocked)return c}catch(n){return hc.exception(this.#e,n,`${aE}.evaluate`),_$}return $g}evaluateFilePathRules(t,r,n){let s=t;if(this.#t.has(s))return this.#t.get(s);let a=$g,l,c=e9(t.replace(r,""));e:for(let u of n)for(let d of u.paths)if(ri(c,d,{nocase:!0,matchBase:!0,nonegate:!0,dot:!0})){a=lE(u,"FILE_BLOCKED_PATH"),l=d;break e}return hc.debug(this.#e,`Evaluated path-based exclusion rules for <${t}>`,{result:a,baseUri:r,fileName:c,matchingPattern:l}),this.#t.set(s,a),a}evaluateTextBasedRules(t,r,n){let s=r.filter(c=>c.ifAnyMatch),a=r.filter(c=>c.ifNoneMatch);if(!n||s.length===0&&a.length===0)return $g;let l=this.evaluateFileContent(s,a,n);return hc.debug(this.#e,`Evaluated text-based exclusion rules for <${t}>`,{result:l}),l}evaluateFileContent(t,r,n){for(let s of t)if(s.ifAnyMatch&&s.ifAnyMatch.length>0&&s.ifAnyMatch.map(l=>K$(l)).some(l=>l.test(n)))return lE(s,"FILE_BLOCKED_TEXT_BASED");for(let s of r)if(s.ifNoneMatch&&s.ifNoneMatch.length>0&&!s.ifNoneMatch.map(l=>K$(l)).some(l=>l.test(n)))return lE(s,"FILE_BLOCKED_TEXT_BASED");return $g}async refresh(){try{let t=[...this.#i.keys()];this.reset(),await Promise.all(t.map(r=>this.#o(r)))}catch(t){Xo(this.#e,t,`${aE}.refresh`)}}reset(){this.#i.clear(),this.#t.clear()}async#r(t){if(this.#n?.length)return this.#n;let r=await this.#o(t.toLowerCase());if(r.length!==0)return r}#n;setTestingRules(t){this.#n=t}#o=T$(async t=>{let r=await this.#e.get(Kt).getGitHubSession();if(!r)throw new ol("No token found");let n=r.devOverride?.contentRestrictionsUrl??"copilot_internal/content_exclusion",s=new URL(n,r.apiUrl),a=t.includes(lf.all);t.filter(d=>d!==lf.all).length>0&&s.searchParams.set("repos",t.filter(d=>d!==lf.all).join(",")),s.searchParams.set("scope",a?lf.all:lf.repo);let c=await Dl(this.#e,r,s.href),u=await c.json();if(!c.ok){if(c.status===404)return Array.from(t,()=>[]);throw this.#s("fetch.error",{message:u.message}),new Ta(c)}return this.#s("fetch.success"),cf(Fue,u).map(d=>d.rules)},this.#i);async getGitRepo(t){let n=await this.#e.get(el).getRepo(Ca(t));if(!n||!n?.remote)return;let s=n.remote.getUrlForApi();if(s)return{baseFolder:n.baseFolder,url:s}}#s(t,r,n){Se(this.#e,`${aE}.${t}`,et.createAndMarkAsIssued(r,n))}};function K$(e){if(!e.startsWith("/")&&!e.endsWith("/"))return new RegExp(e);let t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}o(K$,"stringToRegex");function lE(e,t){return{isBlocked:!0,message:`Your ${e.source.type.toLowerCase()} '${e.source.name}' has disabled Copilot for this file`,reason:t}}o(lE,"fileBlockedEvaluationResult");var kue=L.Object({name:L.String(),type:L.String()}),Nue=L.Object({paths:L.Array(L.String()),ifNoneMatch:L.Optional(L.Array(L.String())),ifAnyMatch:L.Optional(L.Array(L.String())),source:kue}),Oue=L.Array(Nue),Lue=L.Object({rules:Oue,last_updated_at:L.String(),scope:L.String()}),Fue=L.Array(Lue);var no=class{constructor(t){this.ctx=t;this.#e=!1;this.#t=new J3(this.ctx);this.evaluateResultCache=new Map;this.onDidChangeActiveTextEditor=o(async t=>{if(!this.#e)return;if(!t.document){this.updateStatusIcon(!1);return}let r=await this.ctx.get(wt).getTextDocumentValidation(t.document),n=r.status==="invalid",s=r.status==="invalid"?r.reason:void 0;this.updateStatusIcon(n,s)},"onDidChangeActiveTextEditor");let r=Uo(this.ctx,this.onDidChangeActiveTextEditor,"Content exclusions focus change");this.ctx.get(wt).onDidFocusTextDocument(r),dn(this.ctx,n=>{this.#e=n.envelope.copilotignore_enabled??!1,this.evaluateResultCache.clear(),this.#t.refresh()})}static{o(this,"CopilotContentExclusionManager")}#e;#t;get enabled(){return this.#e}async evaluate(t,r,n){if(!this.#e)return{isBlocked:!1};let s=[],a=o(async(u,d)=>{let f=performance.now(),m=await d.evaluate(t,r),p=performance.now();return s.push({key:u,result:m,elapsedMs:Math.round(p-f)}),m},"track"),c=(await Promise.all([a("contentExclusion.evaluate",this.#t)])).find(u=>u?.isBlocked)??{isBlocked:!1};try{for(let u of s)this.#i(u.key,t,u.result,u.elapsedMs)}catch(u){hc.error(this.ctx,"Error tracking telemetry",u)}return n==="UPDATE"&&this.updateStatusIcon(c.isBlocked,c.message),c}updateStatusIcon(t,r){this.#e&&(t?this.ctx.get(Hr).setInactive(r??"Copilot is disabled"):this.ctx.get(Hr).clearInactive())}#i(t,r,n,s){let a=r+t;if(this.evaluateResultCache.get(a)===n.reason)return!1;if(this.evaluateResultCache.set(a,n.reason??"UNKNOWN"),n.reason===q3.reason)return hc.debug(this.ctx,`[${t}] No matching policy for this repository. uri: ${r}`),!1;let c={isBlocked:n.isBlocked?"true":"false",reason:n.reason??"UNKNOWN"},u={contentExclusionEvalMs:s};return Se(this.ctx,t,et.createAndMarkAsIssued(c,u)),Se(this.ctx,t,et.createAndMarkAsIssued({...c,path:r},u),1),hc.debug(this.ctx,`[${t}] ${r}`,n),!0}setTestingRules(t){this.#t.setTestingRules(t)}set __contentExclusions(t){this.#t=t}get __contentExclusions(){return this.#t}};async function uf(e,t,r){let n=await e.get(no).evaluate(t.uri,r);return n.isBlocked?{status:"invalid",reason:n.message??"Document is blocked by repository policy"}:{status:"valid"}}o(uf,"isDocumentValid");var wt=class{constructor(t){this.ctx=t}static{o(this,"TextDocumentManager")}async textDocuments(){let t=this.getTextDocumentsUnsafe(),r=[];for(let n of t)(await uf(this.ctx,n,n.getText())).status==="valid"&&r.push(n);return r}getTextDocumentUnsafe(t){let r=x0(t.uri);return this.getTextDocumentsUnsafe().find(n=>n.uri===r)}async getTextDocument(t){return this.getTextDocumentWithValidation(t).then(r=>{if(r.status==="valid")return r.document})}validateTextDocument(t,r){return uf(this.ctx,t,r)}async getTextDocumentValidation(t){try{let r=this.getTextDocumentUnsafe(t)?.getText()??await this.readTextDocumentFromDisk(t.uri);return r===void 0?this.notFoundResult(t):this.validateTextDocument(t,r)}catch{return this.notFoundResult(t)}}async getTextDocumentWithValidation(t){let r=this.getTextDocumentUnsafe(t);if(!r)return this.notFoundResult(t);let n=await this.validateTextDocument(t,r.getText());return n.status==="valid"?{status:"valid",document:r}:n}notFoundResult({uri:t}){return{status:"notfound",message:`Document for URI could not be found: ${t}`}}async readTextDocumentFromDisk(t){try{if((await this.ctx.get(en).stat(t)).size>5*1024*1024)return}catch{return}return await this.ctx.get(en).readFileString(t)}getWorkspaceFolder(t){let r=x0(t.uri);return this.getWorkspaceFolders().find(n=>r.startsWith(x0(n.uri)))}getRelativePath(t){if(t.uri.startsWith("untitled:"))return;let r=x0(t.uri);for(let n of this.getWorkspaceFolders()){let s=x0(n.uri).replace(/[#?].*/,"").replace(/\/?$/,"/");if(r.startsWith(s))return r.slice(s.length)}return Nl(r)}};var yc=class{constructor(t){this.ctx=t}static{o(this,"FileReader")}getRelativePath(t){return this.ctx.get(wt).getRelativePath(t)??Nl(t.uri)}getOrReadTextDocument(t){return this.readFile(t.uri)}getOrReadTextDocumentWithFakeClientProperties(t){return this.readFile(t.uri)}async readFile(t){let n=await this.ctx.get(wt).getTextDocumentWithValidation({uri:t});if(n.status!=="notfound")return n;try{if(await this.getFileSizeMB(t)>1)return{status:"notfound",message:"File too large"};let a=await this.doReadFile(t),l=await uf(this.ctx,{uri:t},a);return l.status==="valid"?{status:"valid",document:af.create(t,"UNKNOWN",-1,a)}:l}catch{return{status:"notfound",message:"File not found"}}}async doReadFile(t){return await this.ctx.get(en).readFileString(t)}async getFileSizeMB(t){return(await this.ctx.get(en).stat(t)).size/1024/1024}};var bc=class{constructor(){this.resolve=o(()=>{},"resolve");this.reject=o(()=>{},"reject");this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r})}static{o(this,"Deferred")}};function vc(e,t=void 0){return new Promise(r=>setTimeout(()=>r(t),e))}o(vc,"delay");var cE=class{constructor(){this.observers=new Set}static{o(this,"Subject")}subscribe(t){return this.observers.add(t),()=>this.observers.delete(t)}next(t){for(let r of this.observers)r.next(t)}error(t){for(let r of this.observers)r.error?.(t)}complete(){for(let t of this.observers)t.complete?.()}},Q3=class extends cE{static{o(this,"ReplaySubject")}subscribe(t){let r=super.subscribe(t);return this._value!==void 0&&t.next(this._value),r}next(t){this._value=t,super.next(t)}};var Lo=class{constructor(t){this.ctx=t;this.#e=new vt("AsyncCompletionManager");this.requests=new Ut(100);this.mostRecentRequestId=""}static{o(this,"AsyncCompletionManager")}#e;clear(){this.requests.clear()}shouldWaitForAsyncCompletions(t,r){for(let[n,s]of this.requests)if(uE(t,r,s))return!0;return!1}updateCompletion(t,r){let n=this.requests.get(t);n!==void 0&&(n.partialCompletionText=r,n.subject.next(n))}queueCompletionRequest(t,r,n,s,a){this.#e.debug(this.ctx,`[${t}] Queueing async completion request:`,r.substring(r.lastIndexOf(`
[262] Fix | Delete
`)+1));let l=new Q3;return this.requests.set(t,{state:2,cancellationTokenSource:s,headerRequestId:t,prefix:r,prompt:n,subject:l}),a.then(c=>{if(this.requests.delete(t),c.type!=="success"){this.#e.debug(this.ctx,`[${t}] Request failed with`,c.reason),l.error(c.reason);return}let u={cancellationTokenSource:s,headerRequestId:t,prefix:r,prompt:n,subject:l,choice:c.value[0],result:c,state:0,allChoicesPromise:c.value[1]};this.requests.set(t,u),l.next(u),l.complete()}).catch(c=>{this.#e.error(this.ctx,`[${t}] Request errored with`,c),this.requests.delete(t),l.error(c)})}getFirstMatchingRequestWithTimeout(t,r,n,s,a){let l=this.ctx.get(Le).asyncCompletionsTimeout(a);return l<0?(this.#e.debug(this.ctx,`[${t}] Waiting for completions without timeout`),this.getFirstMatchingRequest(t,r,n,s)):(this.#e.debug(this.ctx,`[${t}] Waiting for completions with timeout of ${l}ms`),Promise.race([this.getFirstMatchingRequest(t,r,n,s),new Promise(c=>setTimeout(()=>c(null),l))]).then(c=>{if(c===null){this.#e.debug(this.ctx,`[${t}] Timed out waiting for completion`);return}return c}))}async getFirstMatchingRequest(t,r,n,s){s||(this.mostRecentRequestId=t);let a=!1,l=new bc,c=new Map,u=o(f=>()=>{let m=c.get(f);m!==void 0&&(m(),c.delete(f),!a&&c.size===0&&(a=!0,this.#e.debug(this.ctx,`[${t}] No matching completions found`),l.resolve(void 0)))},"finishRequest"),d=o(f=>{if(uE(r,n,f)){if(f.state===0){let m=r.substring(f.prefix.length),{completionText:p}=f.choice;if(!p.startsWith(m)||p.length<=m.length){u(f.headerRequestId)();return}p=p.substring(m.length),f.choice.telemetryData.measurements.foundOffset=m.length,this.#e.debug(this.ctx,`[${t}] Found completion at offset ${m.length}: ${JSON.stringify(p)}`),l.resolve([{...f.choice,completionText:p},f.allChoicesPromise]),a=!0}}else this.cancelRequest(t,f),u(f.headerRequestId)()},"next");for(let[f,m]of this.requests)uE(r,n,m)?c.set(f,m.subject.subscribe({next:d,error:u(f),complete:u(f)})):this.cancelRequest(t,m);return l.promise.finally(()=>{for(let f of c.values())f()})}cancelRequest(t,r){t===this.mostRecentRequestId&&r.state!==0&&(this.#e.debug(this.ctx,`[${t}] Cancelling request: ${r.headerRequestId}`),r.cancellationTokenSource.cancel(),this.requests.delete(r.headerRequestId))}};function uE(e,t,r){if(r.prompt.suffix!==t.suffix||!e.startsWith(r.prefix))return!1;let n=e.substring(r.prefix.length);return r.state===0?r.choice.completionText.startsWith(n)&&r.choice.completionText.trimEnd().length>n.length:r.partialCompletionText===void 0?!0:r.partialCompletionText.startsWith(n)}o(uE,"isCandidate");var Vg=class{constructor(t){this.maxSize=t;this.root=new zg;this.leafNodes=new Set}static{o(this,"LRURadixTrie")}set(t,r){let{node:n,remainingKey:s}=this.findClosestNode(t);if(s.length>0){for(let[a,l]of n.children)if(a.startsWith(s)){let c=a.slice(0,s.length),u=new zg;n.removeChild(a),n.addChild(c,u),u.addChild(a.slice(c.length),l),n=u,s=s.slice(c.length);break}if(s.length>0){let a=new zg;n.addChild(s,a),n=a}}n.value=r,this.leafNodes.add(n),this.leafNodes.size>this.maxSize&&this.evictLeastRecentlyUsed()}findAll(t){return this.findClosestNode(t).stack.map(({node:r,remainingKey:n})=>r.value!==void 0?{remainingKey:n,value:r.value}:void 0).filter(r=>r!==void 0)}delete(t){let{node:r,remainingKey:n}=this.findClosestNode(t);n.length>0||this.deleteNode(r)}findClosestNode(t){let r=!0,n=this.root,s=[{node:n,remainingKey:t}];for(;t.length>0&&r;){r=!1;for(let[a,l]of n.children)if(t.startsWith(a)){t=t.slice(a.length),s.unshift({node:l,remainingKey:t}),n=l,r=!0;break}}return{node:n,remainingKey:t,stack:s}}deleteNode(t){if(t.value=void 0,this.leafNodes.delete(t),t.parent===void 0||t.childCount>1)return;let{node:r,edge:n}=t.parent;if(t.childCount===1){let[a,l]=Array.from(t.children)[0];t.removeChild(a),r.removeChild(n),r.addChild(n+a,l);return}if(r.removeChild(n),r.parent===void 0)return;let s=r.parent;if(r.value===void 0&&r.childCount===1){let[a,l]=Array.from(r.children)[0],c=s.edge+a;r.removeChild(a),s.node.removeChild(s.edge),s.node.addChild(c,l)}}evictLeastRecentlyUsed(){let t=this.findLeastRecentlyUsed();t&&this.deleteNode(t)}findLeastRecentlyUsed(){let t;for(let r of this.leafNodes)(t===void 0||r.touched<t.touched)&&(t=r);return t}},zg=class{constructor(){this._children=new Map;this._touched=performance.now()}static{o(this,"LRURadixNode")}get children(){return this._children.entries()}get childCount(){return this._children.size}addChild(t,r){this._children.set(t,r),r.parent={node:this,edge:t}}removeChild(t){let r=this._children.get(t);r&&(r.parent=void 0),this._children.delete(t)}get value(){return this.touch(),this._value}set value(t){this.touch(),this._value=t}get touched(){return this._touched}touch(){this._touched=performance.now()}};var Y0=class{constructor(){this.cache=new Vg(100)}static{o(this,"CompletionsCache")}findAll(t,r){return this.cache.findAll(t).flatMap(({remainingKey:n,value:s})=>s.content.filter(a=>a.suffix===r&&a.choice.completionText.startsWith(n)&&a.choice.completionText.length>n.length).map(a=>({...a.choice,completionText:a.choice.completionText.slice(n.length),telemetryData:a.choice.telemetryData.extendedBy({},{foundOffset:n.length})})))}append(t,r,n){let s=this.cache.findAll(t);if(s.length>0&&s[0].remainingKey===""){let a=s[0].value.content;this.cache.set(t,{content:[...a,{suffix:r,choice:n}]})}else this.cache.set(t,{content:[{suffix:r,choice:n}]})}clear(){this.cache=new Vg(100)}};var tl={" ":1,"!":2,'"':3,"#":4,$:5,"%":6,"&":7,"'":8,"(":9,")":10,"*":11,"+":12,",":13,"-":14,".":15,"/":16,0:17,1:18,2:19,3:20,4:21,5:22,6:23,7:24,8:25,9:26,":":27,";":28,"<":29,"=":30,">":31,"?":32,"@":33,A:34,B:35,C:36,D:37,E:38,F:39,G:40,H:41,I:42,J:43,K:44,L:45,M:46,N:47,O:48,P:49,Q:50,R:51,S:52,T:53,U:54,V:55,W:56,X:57,Y:58,Z:59,"[":60,"\\":61,"]":62,"^":63,_:64,"`":65,a:66,b:67,c:68,d:69,e:70,f:71,g:72,h:73,i:74,j:75,k:76,l:77,m:78,n:79,o:80,p:81,q:82,r:83,s:84,t:85,u:86,v:87,w:88,x:89,y:90,z:91,"{":92,"|":93,"}":94,"~":95};function Y$(e){let t;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>427.50000000000006?e[9]>13.500000000000002?e[121]>1e-35?t=-.3793786744885956:e[149]>1e-35?t=-.34717430705356905:t=-.26126834451035963:t=-.2431318366096852:e[5]>888.5000000000001?t=-.20600463586387135:t=-.2568037008471491:e[308]>1e-35?t=-.2363064824497454:e[8]>370.50000000000006?t=-.37470755210284723:t=-.321978453730494:e[3]>24.500000000000004?e[23]>1e-35?e[131]>1e-35?t=-.26259136509758885:t=-.3096719634039438:e[4]>30.500000000000004?e[9]>18.500000000000004?t=-.34254903852890883:e[2]>98.50000000000001?t=-.41585250791146294:t=-.3673574858887241:e[9]>6.500000000000001?t=-.31688079287876225:e[31]>1e-35?t=-.29110977864003823:e[308]>1e-35?t=-.3201411739040839:t=-.36874023066055506:e[8]>691.5000000000001?e[82]>1e-35?t=-.41318393149040566:e[133]>1e-35?t=-.3741272613525161:e[32]>1e-35?t=-.4112378041027121:e[227]>1e-35?t=-.37726615155719356:e[10]>3.5000000000000004?t=-.3164502293560397:t=-.2930071546509045:e[9]>13.500000000000002?t=-.277366858539218:e[308]>1e-35?e[4]>10.500000000000002?t=-.30975610686807187:e[4]>1.5000000000000002?t=-.2549142136728043:t=-.3271325650785176:e[127]>1e-35?e[0]>1937.5000000000002?t=-.2533046188098832:t=-.325520883579:t=-.331628896481776;let r;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>546.5000000000001?e[9]>13.500000000000002?r=.031231253521808708:r=.05380836288014532:e[5]>423.00000000000006?e[8]>114.50000000000001?r=.06751619128429062:r=.09625089153176467:r=.027268163053989804:e[308]>1e-35?r=.060174483556283756:r=-.049062854038919135:e[3]>24.500000000000004?e[23]>1e-35?e[4]>63.50000000000001?r=-.03969241799174589:r=.01086816842550381:e[31]>1e-35?r=-.003284694817583201:e[9]>6.500000000000001?e[4]>30.500000000000004?r=-.04224490699947552:r=-.011834162944360616:e[308]>1e-35?e[32]>1e-35?r=-.13448447971850278:r=-.019569456707046823:e[19]>1e-35?e[9]>1.5000000000000002?r=-.07256260662659254:e[4]>60.50000000000001?r=-.08227503453609311:r=-.020596416747563847:r=-.07396549241564149:e[8]>691.5000000000001?e[82]>1e-35?r=-.10046536995362734:e[133]>1e-35?r=-.06407649822752297:e[225]>1e-35?r=.08035785003303324:e[92]>1e-35?r=.018901360933204676:e[20]>1e-35?r=.05252546973665552:e[8]>2592.5000000000005?r=-.040543705016462955:r=-.011236043818320725:e[9]>17.500000000000004?r=.025560632674895334:e[308]>1e-35?e[0]>1847.5000000000002?r=.03527165701669741:r=-.0071847350825815035:e[127]>1e-35?r=.024373016379595405:e[9]>2.5000000000000004?r=-.0035090719709448288:r=-.03514829488063766;let n;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>546.5000000000001?n=.03848674861536988:e[5]>423.00000000000006?e[8]>114.50000000000001?e[9]>56.50000000000001?n=-.003764520033319488:n=.06570817919969299:e[4]>61.50000000000001?n=.028346156293069538:n=.0908154644362606:n=.02445594243234816:e[308]>1e-35?e[8]>65.50000000000001?n=.0019305229020073053:n=.09279357295883772:n=-.04458984161917124:e[3]>24.500000000000004?e[23]>1e-35?n=.0027405390271277013:e[4]>29.500000000000004?e[52]>1e-35?n=.044727478132905285:e[115]>1e-35?n=.10245804828855934:e[9]>17.500000000000004?n=-.03353173647469207:e[2]>98.50000000000001?n=-.10048106638102179:n=-.05484231104348874:e[31]>1e-35?n=.016807537467116516:e[9]>6.500000000000001?n=-.012113620535295137:e[4]>8.500000000000002?e[308]>1e-35?n=-.01882594250504289:n=-.05585658862796076:n=.04279591277938338:e[8]>691.5000000000001?e[82]>1e-35?n=-.09262278043707878:e[133]>1e-35?n=-.058454257768893625:e[32]>1e-35?n=-.09769348447126434:e[25]>1e-35?n=-.0725430043727677:e[122]>1e-35?n=-.10047841601578077:n=-.00580671054458958:e[9]>13.500000000000002?n=.021399199032818294:e[308]>1e-35?e[4]>10.500000000000002?n=-.0076376731757173515:n=.03394923033036848:e[127]>1e-35?n=.02070489091204209:n=-.02290162726126496;let s;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>892.5000000000001?e[9]>21.500000000000004?s=.010230295672324606:s=.038540509248742805:e[8]>125.50000000000001?e[1]>49.50000000000001?s=.03086356292895467:s=.057128750867458604:e[5]>888.5000000000001?s=.07861602941396924:s=.030523262699070908:e[308]>1e-35?s=.048236117667577356:e[8]>370.50000000000006?s=-.05642125069212264:s=-.007232836777168195:e[3]>24.500000000000004?e[23]>1e-35?e[131]>1e-35?s=.03640661467213915:s=-.005889820723907028:e[31]>1e-35?s=-.0009007166998276938:e[9]>6.500000000000001?s=-.022590340093882378:e[308]>1e-35?e[32]>1e-35?s=-.1215445089091064:s=-.01435612266219722:e[19]>1e-35?e[9]>1.5000000000000002?s=-.061555513040777825:e[4]>60.50000000000001?s=-.07053475504569347:s=-.013733369453963092:s=-.06302097189114152:e[227]>1e-35?s=-.05820440333190048:e[8]>683.5000000000001?e[82]>1e-35?s=-.08466979526809346:e[10]>24.500000000000004?s=-.017092159721119944:e[92]>1e-35?s=.03592901452463749:s=-.00359310519524756:e[5]>1809.5000000000002?e[243]>1e-35?s=-.03963116207386097:e[118]>1e-35?s=-.09483996283536394:e[217]>1e-35?s=-.03394542089519989:e[242]>1e-35?s=-.07985899422287938:s=.019706602160656964:e[9]>12.500000000000002?s=.014072998937735146:s=-.021156294523894684;let a;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>892.5000000000001?e[9]>21.500000000000004?a=.009197756540516563:a=.03458896869535166:e[5]>5082.500000000001?a=.08265545468131008:e[131]>1e-35?a=.0740738432473315:a=.045159136632942756:e[8]>319.50000000000006?a=-.04653401534465376:e[7]>3.5000000000000004?e[0]>1230.5000000000002?e[0]>2579.5000000000005?a=-.011400839766681709:a=.11149800187510031:a=-.08683250977599462:a=.08355310136724753:e[4]>23.500000000000004?e[23]>1e-35?e[131]>1e-35?a=.040389083779932555:a=-.009887614274108602:e[52]>1e-35?a=.03705353499757327:e[9]>6.500000000000001?a=-.025401260429257562:e[2]>98.50000000000001?a=-.09237673187534504:a=-.04298556869281803:e[222]>1e-35?a=-.045221965895986184:e[8]>691.5000000000001?e[133]>1e-35?a=-.05435318330148897:e[128]>1e-35?a=-.08672907303184191:e[227]>1e-35?a=-.05568304584186561:e[122]>1e-35?a=-.09623059693538563:e[225]>1e-35?a=.07558331642202279:e[82]>1e-35?a=-.07360566227233566:a=-.005646164647395919:e[242]>1e-35?a=-.08203758341228108:e[9]>13.500000000000002?a=.018726123829696042:e[308]>1e-35?e[4]>10.500000000000002?a=-.011153942154062704:a=.03132858912391067:e[127]>1e-35?a=.021455228822345174:e[23]>1e-35?a=.01959966745346997:a=-.021764790177579325;let l;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>284.50000000000006?e[121]>1e-35?e[18]>1e-35?l=.07547602514276922:l=-.08529678832140396:l=.030314822344598043:e[5]>888.5000000000001?e[4]>61.50000000000001?l=.011143589009415464:l=.0654700456802118:l=.021794712646632755:e[308]>1e-35?l=.04231872551095028:l=-.034381999950549455:e[4]>23.500000000000004?e[23]>1e-35?e[4]>63.50000000000001?l=-.03678981254332261:l=.010518160384496255:e[8]>825.5000000000001?l=-.04506534842082387:e[9]>38.50000000000001?l=.01004983052203438:l=-.030580958620701027:e[39]>1e-35?l=-.12802435021505382:e[8]>691.5000000000001?e[23]>1e-35?e[203]>1e-35?e[4]>6.500000000000001?l=.030426957004611704:l=-.0726407693060581:l=.017395521646964375:e[4]>7.500000000000001?e[0]>93.50000000000001?e[9]>7.500000000000001?l=-.008024349629981291:e[31]>1e-35?l=.01296539930850471:e[308]>1e-35?l=-.012855016509024084:l=-.04564527976851505:l=-.15681420504058596:e[10]>4.500000000000001?e[243]>1e-35?l=-.1012064426380198:l=-.0062808850924854194:l=.030706323726162416:e[9]>13.500000000000002?l=.017081636133736405:e[308]>1e-35?e[4]>10.500000000000002?l=-.009306613091760644:e[4]>1.5000000000000002?l=.03655523200850989:l=-.02671654212893341:e[127]>1e-35?l=.019261510468604387:l=-.017627818570628936;let c;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>892.5000000000001?e[308]>1e-35?c=.036100405995889276:c=.011709313297015793:e[0]>119.50000000000001?e[8]>125.50000000000001?c=.03622542297472574:c=.05595579157301536:c=-.02234751038146796:e[8]>319.50000000000006?c=-.040132029478400735:e[7]>3.5000000000000004?e[0]>1230.5000000000002?e[0]>2579.5000000000005?c=-.009306153573847916:c=.10058509567064988:c=-.0785668890966017:e[9]>28.500000000000004?c=-.04781977604130416:c=.09753292614937459:e[4]>23.500000000000004?e[131]>1e-35?c=.02372493254975127:e[148]>1e-35?c=.028103095989516644:e[4]>58.50000000000001?e[10]>1e-35?c=-.05000852203469597:c=.02922366846119705:e[23]>1e-35?c=-.0026335076988151292:c=-.03073993752935585:e[222]>1e-35?c=-.03867374428185713:e[32]>1e-35?c=-.07220729365053084:e[39]>1e-35?c=-.11624524614351733:e[8]>691.5000000000001?e[133]>1e-35?c=-.04836360271198036:e[8]>4968.500000000001?c=-.10873681915578029:e[149]>1e-35?c=-.11847484033769298:e[122]>1e-35?c=-.08916172460307559:e[82]>1e-35?c=-.06774726602152634:c=-.0033469147714351327:e[126]>1e-35?c=-.09474445392080015:e[8]>131.50000000000003?e[118]>1e-35?c=-.09002547031023511:c=.015475385187009489:e[25]>1e-35?c=-.08175501232759151:c=-.000429679055394914;let u;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>546.5000000000001?u=.021942996005324917:u=.042349138084484074:e[308]>1e-35?u=.036507270845732874:u=-.028981850556764995:e[3]>24.500000000000004?e[23]>1e-35?u=.00210930790963475:e[31]>1e-35?u=.006825358293027163:e[9]>6.500000000000001?u=-.013772084269062394:e[308]>1e-35?u=-.008307929099892574:e[19]>1e-35?u=-.027706313312904487:u=-.04891108984170914:e[134]>1e-35?u=-.0605730733844732:e[25]>1e-35?u=-.05347926493253117:e[227]>1e-35?u=-.049415829249003666:e[32]>1e-35?u=-.06807799662179595:e[308]>1e-35?e[4]>10.500000000000002?e[2]>13.500000000000002?u=-.00016302718260794637:u=-.10247095758122947:e[210]>1e-35?u=-.022149002072787024:e[95]>1e-35?u=.15222631630626304:u=.027393884520465712:e[9]>7.500000000000001?e[225]>1e-35?u=.13483346577752245:e[3]>9.500000000000002?e[243]>1e-35?u=-.045352728133789516:e[8]>683.5000000000001?u=.00474372227519902:u=.02635476098707525:e[92]>1e-35?u=.05659380819933452:e[105]>1e-35?u=.07431443210341222:e[186]>1e-35?u=.0915821133384904:u=-.016414750130401053:e[127]>1e-35?u=.011824693641866162:e[23]>1e-35?u=.0228468674288774:e[284]>1e-35?u=.06606936863302432:u=-.02872463273902358;let d;e[13]>1e-35?e[3]>1.5000000000000002?e[8]>125.50000000000001?e[288]>1e-35?d=-.019844363904157558:e[1]>50.50000000000001?e[131]>1e-35?d=.044961338592245194:d=.003659599513761676:e[121]>1e-35?d=-.04057103630479994:d=.03158560697078578:e[0]>421.50000000000006?e[4]>61.50000000000001?d=-.0003708603406529278:d=.05331312264472391:d=.0006575958601218936:e[8]>319.50000000000006?d=-.034654694051901545:e[7]>3.5000000000000004?e[0]>1230.5000000000002?e[0]>2579.5000000000005?d=-.0076053515916517005:d=.09116695486305336:d=-.07137458699162028:d=.06633130654035282:e[4]>29.500000000000004?e[23]>1e-35?e[4]>63.50000000000001?d=-.0308520802187302:d=.013156423968295541:e[115]>1e-35?d=.11581171687488252:e[52]>1e-35?e[10]>22.500000000000004?d=.12264179915175587:d=-.021905727233873535:e[8]>799.5000000000001?d=-.04181869575935412:d=-.023695901673350575:e[222]>1e-35?d=-.034612899265371776:e[8]>691.5000000000001?e[9]>98.50000000000001?d=-.06892116536821917:e[149]>1e-35?d=-.11194586444154514:e[133]>1e-35?d=-.04269583234000504:e[128]>1e-35?d=-.0644631966969502:e[8]>4968.500000000001?d=-.09650726096330133:d=-.004219129180139438:e[126]>1e-35?d=-.08038306745347751:e[5]>1809.5000000000002?d=.009265335288169993:e[9]>2.5000000000000004?d=.006447645462117438:d=-.021047132609551503;let f;e[13]>1e-35?e[3]>1.5000000000000002?e[9]>21.500000000000004?e[121]>1e-35?f=-.08436540015142402:e[8]>1861.5000000000002?f=-.01621425699342421:f=.01878613821895428:f=.031052879158242532:e[8]>319.50000000000006?f=-.031536619360997865:e[7]>3.5000000000000004?f=-.004510586962343298:f=.0596524941011746:e[4]>18.500000000000004?e[23]>1e-35?f=.004757490541310808:e[9]>6.500000000000001?f=-.008842393772207996:e[31]>1e-35?f=.0010536183837006993:e[308]>1e-35?f=-.008145882815435419:e[2]>98.50000000000001?f=-.08404937622173021:e[276]>1e-35?f=.0020072791321856663:e[19]>1e-35?f=-.023031820639490178:f=-.04553314326377875:e[8]>2134.5000000000005?f=-.02244583113572251:e[134]>1e-35?f=-.05592137394753121:e[308]>1e-35?e[49]>1e-35?f=.09989109704064947:e[4]>10.500000000000002?e[2]>13.500000000000002?f=-.00447733056482096:f=-.10191061664873849:f=.021765308380331864:e[9]>7.500000000000001?e[118]>1e-35?f=-.07570059131536411:e[243]>1e-35?f=-.040983393346598646:e[3]>9.500000000000002?f=.014763759061483812:e[92]>1e-35?f=.05136368898963024:f=-.008162398981149495:e[127]>1e-35?f=.013999119696708346:e[23]>1e-35?e[20]>1e-35?f=.14138985500120907:f=.008668274102844162:e[284]>1e-35?f=.06356484011042893:f=-.024781304572706303;let m;e[13]>1e-35?e[3]>8.500000000000002?e[8]>892.5000000000001?e[0]>384.50000000000006?m=.014387526569215037:e[8]>2266.5000000000005?m=-.1397298649743087:m=.007953931014097788:e[0]>119.50000000000001?e[4]>61.50000000000001?m=.0029819092211896296:e[218]>1e-35?m=.08450459375645737:m=.031646488019280654:m=-.03544960151460596:e[9]>9.500000000000002?m=-.026002317735915183:e[7]>1.5000000000000002?m=.005074258810794793:m=.0745247650477651:e[4]>29.500000000000004?e[131]>1e-35?m=.023269218675640847:e[148]>1e-35?m=.03812942399144545:e[115]>1e-35?m=.10512283476967227:m=-.02607307479736138:e[227]>1e-35?m=-.036576708299046294:e[101]>1e-35?m=.027948683650881864:e[149]>1e-35?m=-.08195628451594297:e[50]>1e-35?m=-.16997544922278504:e[8]>691.5000000000001?e[9]>101.50000000000001?m=-.06860333850762075:e[225]>1e-35?m=.06066641950951723:e[10]>22.500000000000004?e[1]>29.500000000000004?e[127]>1e-35?m=.028599705845427533:m=-.010746719511640914:e[0]>4877.500000000001?m=-.07251187886096228:m=-.021299712241446785:e[118]>1e-35?m=-.11902023760964736:m=15874469526809387e-21:e[8]>267.50000000000006?m=.01317292185402293:e[148]>1e-35?e[9]>20.500000000000004?m=.09614842415142123:m=.006049073167176467:e[189]>1e-35?m=.05562696451900713:m=-.006257541923837303;let p;e[13]>1e-35?e[9]>14.500000000000002?e[2]>11.500000000000002?e[1]>71.50000000000001?e[8]>1252.5000000000002?p=-.10069846585436666:p=-.010577995535809317:e[146]>1e-35?p=-.008877238274428668:e[280]>1e-35?p=.10076055897012692:e[6]>70.50000000000001?p=-.020603523042565547:e[7]>1.5000000000000002?p=.02819095420813202:p=-.1223354167911277:p=-.025073583348334844:e[8]>416.50000000000006?p=.01718560189149466:e[230]>1e-35?p=.12281803224342265:p=.03281276971308565:e[4]>14.500000000000002?e[23]>1e-35?e[21]>1e-35?p=-.13070568109867683:e[4]>63.50000000000001?p=-.027221825262496814:p=.01530862490082352:e[9]>6.500000000000001?e[5]>4320.500000000001?e[2]>31.500000000000004?p=-.00605574271293711:p=.04739407327741249:p=-.012537528620315956:e[31]>1e-35?e[20]>1e-35?p=.1252215087035768:p=.003905888677601057:e[52]>1e-35?p=.045466299731038815:e[2]>100.50000000000001?p=-.07815624550168065:e[308]>1e-35?p=-.007715815250508057:e[276]>1e-35?e[9]>1.5000000000000002?p=-.03538265083203445:e[18]>1e-35?p=.1591211669800727:p=.015151475408241136:e[8]>557.5000000000001?p=-.04225569725456342:p=-.022455546324243267:e[308]>1e-35?p=.01325441736085826:e[197]>1e-35?p=.03752194600682512:e[225]>1e-35?p=.06583712394533976:p=-.005205289866839043;let g;e[13]>1e-35?e[9]>21.500000000000004?e[2]>12.500000000000002?g=.010264022580774884:g=-.02335958814489217:e[8]>416.50000000000006?e[3]>4.500000000000001?e[295]>1e-35?g=-.0936747137352166:e[0]>384.50000000000006?g=.019846244507320695:g=-.0751102554077272:g=-.026885329334203723:e[0]>966.5000000000001?e[10]>48.50000000000001?g=.11654906890054273:g=.0346250587613322:e[4]>39.50000000000001?g=-.08568002378645614:e[9]>16.500000000000004?g=-.12010535752923689:g=.021321923389033808:e[4]>14.500000000000002?e[23]>1e-35?e[21]>1e-35?g=-.12056431231412057:e[131]>1e-35?g=.03652965550568472:g=.002563006128791669:e[9]>6.500000000000001?e[30]>1e-35?g=-.10141481732178981:g=-.003936457893178248:e[31]>1e-35?g=.008215898756249477:e[52]>1e-35?e[0]>4188.500000000001?g=.12972828769588213:g=-.003137412232297087:e[2]>100.50000000000001?g=-.0730872929087944:e[308]>1e-35?g=-.006958622747243333:e[35]>1e-35?e[0]>3707.5000000000005?g=.07934620723812878:g=-.018598568353702116:g=-.030635505446410763:e[128]>1e-35?g=-.06962290453843294:e[84]>1e-35?g=-.15290337844960322:e[308]>1e-35?e[8]>2543.5000000000005?g=-.034938657503885584:g=.016339322898966915:e[197]>1e-35?g=.03358907965870046:e[18]>1e-35?g=-.01754013791515288:g=-.0004944586067698557;let h;e[13]>1e-35?e[308]>1e-35?e[210]>1e-35?h=.005888790687820524:h=.0429676533834978:e[2]>7.500000000000001?e[0]>119.50000000000001?e[6]>79.50000000000001?h=-.0224319889201976:e[212]>1e-35?h=.06249587051783863:e[8]>963.5000000000001?e[8]>1156.5000000000002?h=.010357273289123324:h=-.029749145161304082:e[218]>1e-35?h=.06449336340743606:h=.018047654539345502:h=-.07350502390293116:h=-.019594829995832414:e[4]>39.50000000000001?h=-.019338083179859314:e[39]>1e-35?h=-.10427066919173111:e[222]>1e-35?e[0]>612.5000000000001?h=-.019197415255018464:h=-.0836562507048181:e[149]>1e-35?h=-.07679624472577429:e[32]>1e-35?h=-.05097506748590604:e[191]>1e-35?h=.04670476485250936:e[30]>1e-35?h=-.05313073892148652:e[8]>691.5000000000001?e[23]>1e-35?e[203]>1e-35?e[4]>8.500000000000002?h=.03930363008271334:h=-.06029171685615689:h=.016203086182431294:e[4]>7.500000000000001?h=-.013824248237085224:e[10]>4.500000000000001?e[94]>1e-35?h=-.09817668643367765:e[10]>40.50000000000001?h=-.023558078753593125:h=.0065113494780482326:e[8]>809.5000000000001?e[297]>1e-35?h=-.1352063548573715:h=.058203900441270634:h=-.035243959159285736:e[10]>59.50000000000001?e[1]>43.50000000000001?h=-.012552876807800442:h=.05991247777734298:h=.0035893102109330177;let x;e[13]>1e-35?e[9]>21.500000000000004?e[145]>1e-35?x=.03507251990078782:e[2]>14.500000000000002?x=.004905698363309292:e[8]>2421.5000000000005?x=-.10306119951984316:x=-.018951037816654928:e[8]>416.50000000000006?e[3]>4.500000000000001?e[295]>1e-35?x=-.08503171085833393:x=.015130974593044409:x=-.024425267075198206:x=.02624054905103126:e[4]>19.500000000000004?e[131]>1e-35?x=.02100191580704534:e[32]>1e-35?e[8]>2302.5000000000005?x=.09908783187786288:x=-.06920877329925636:e[8]>241.50000000000003?x=-.016756131804203496:e[9]>33.50000000000001?x=.04903179955263626:e[217]>1e-35?x=-.047416847619291644:x=-.0017200891991431119:e[39]>1e-35?x=-.10389927604977028:e[134]>1e-35?x=-.050480365434872866:e[178]>1e-35?x=-.05167855791556937:e[8]>2134.5000000000005?x=-.01663197335585307:e[242]>1e-35?x=-.05361323756615453:e[118]>1e-35?x=-.05299780866211368:e[10]>24.500000000000004?e[10]>55.50000000000001?e[8]>764.5000000000001?x=-.0016544848369620534:x=.04494144460483587:x=-.009283616456736156:e[121]>1e-35?e[0]>4463.500000000001?x=.051166688553608355:x=-.06623908820705383:e[84]>1e-35?x=-.12990936092409747:e[306]>1e-35?x=-.07020596855118943:e[49]>1e-35?x=.06272964802556856:e[192]>1e-35?x=.06540204627162581:x=.008277910531592885;let _;e[13]>1e-35?e[308]>1e-35?e[210]>1e-35?_=.003325460510319164:_=.037153108286272905:e[2]>12.500000000000002?e[1]>124.50000000000001?_=-.09880713344892134:e[7]>60.50000000000001?e[10]>71.50000000000001?_=.0697359767152808:e[230]>1e-35?_=.06513506845651572:_=-.02826625276613455:e[5]>246.50000000000003?e[8]>95.50000000000001?_=.013616385013146277:_=.04171540100223404:_=-.04360396575094823:e[212]>1e-35?_=.025945477945627522:_=-.019793208261535442:e[4]>39.50000000000001?e[25]>1e-35?_=-.07856453318384411:_=-.014803893522351739:e[39]>1e-35?_=-.09185452630751932:e[149]>1e-35?_=-.07122426086157027:e[134]>1e-35?_=-.04231052091434186:e[227]>1e-35?_=-.029815824273994197:e[50]>1e-35?_=-.15736496271211153:e[222]>1e-35?_=-.02360285356956629:e[128]>1e-35?_=-.03922080193836443:e[136]>1e-35?_=-.07219685327698587:e[10]>24.500000000000004?e[1]>8.500000000000002?_=-.0029736170756835783:_=-.06482902102259112:e[84]>1e-35?_=-.11340924635708383:e[94]>1e-35?_=-.03635703457792193:e[118]>1e-35?_=-.058181913914186034:e[126]>1e-35?_=-.062030576241517366:e[116]>1e-35?_=-.045086301850604006:e[25]>1e-35?_=-.031665223656767286:e[203]>1e-35?_=-.009444685731407691:_=.0112265153772187;let y;e[13]>1e-35?e[1]>64.50000000000001?e[9]>14.500000000000002?e[9]>54.50000000000001?y=.022717227245241684:y=-.049700413274686266:y=.007175776918589741:e[5]>50.50000000000001?e[8]>61.50000000000001?e[21]>1e-35?y=-.07927556792063156:e[3]>8.500000000000002?e[4]>23.500000000000004?e[281]>1e-35?y=-.12263724050601095:y=.0070743478891288035:e[288]>1e-35?y=-.050439138582109:y=.0255701593657891:y=-.005812703740580558:e[6]>49.50000000000001?y=-.008542694147899113:y=.035147383686665:y=-.0960461939274094:e[32]>1e-35?y=-.04555453745517765:e[222]>1e-35?e[0]>612.5000000000001?y=-.01800870272656664:y=-.07817304234604389:e[30]>1e-35?y=-.05227061750368981:e[25]>1e-35?e[0]>4449.500000000001?e[217]>1e-35?y=.08778416018479411:y=-.026563982720830256:y=-.05296139548112329:e[50]>1e-35?y=-.14926464875852247:e[8]>779.5000000000001?e[133]>1e-35?y=-.036572140520852024:e[183]>1e-35?y=-.10766853736801459:y=-.003966794968701808:e[217]>1e-35?e[5]>5237.500000000001?y=.09513215942486053:y=-.03641865277445567:e[10]>59.50000000000001?y=.03177172388687933:e[39]>1e-35?y=-.10234241303898953:e[243]>1e-35?y=-.02966738115984321:e[190]>1e-35?y=-.04312785336449181:e[118]>1e-35?y=-.05808521194081524:y=.006720381600740378;let b;e[308]>1e-35?e[5]>423.00000000000006?e[133]>1e-35?b=-.046284053681928526:e[210]>1e-35?b=49778070699847876e-21:e[13]>1e-35?b=.03328070054739309:e[128]>1e-35?b=-.054790214922938896:e[126]>1e-35?b=-.08524792218532945:b=.014414055975542446:e[1]>38.50000000000001?b=-.07287851335872973:b=.005263371501687163:e[9]>7.500000000000001?e[21]>1e-35?e[10]>4.500000000000001?b=-.12459748864088374:b=-.004626323021331593:e[298]>1e-35?e[4]>64.50000000000001?b=.13044981041138526:e[9]>71.50000000000001?b=-.056068402282406865:e[9]>12.500000000000002?b=.038957722962512764:b=-.04598815982492169:e[8]>691.5000000000001?e[126]>1e-35?b=-.0852126122372075:e[225]>1e-35?b=.10082066771689505:e[1]>161.50000000000003?b=-.11609832500613824:e[3]>8.500000000000002?e[8]>1685.5000000000002?b=-.010835400874777133:b=.004607419973807752:b=-.016989075258564062:b=.009205417251698097:e[23]>1e-35?e[20]>1e-35?b=.10184317139657878:e[0]>5724.500000000001?b=-.1163666496650542:e[1]>106.50000000000001?b=.1303850608190687:e[129]>1e-35?b=.10745031509534769:b=.006166901738036226:e[31]>1e-35?b=.010177092833155127:e[13]>1e-35?e[0]>213.50000000000003?b=.005004582564506611:b=-.10481581731668346:e[19]>1e-35?b=-.009850706427306281:b=-.02608226348051303;let T;e[13]>1e-35?e[1]>64.50000000000001?e[2]>4.500000000000001?T=-.0024117174588695603:T=-.058339700513831916:e[212]>1e-35?e[0]>2215.5000000000005?e[8]>847.5000000000001?e[10]>21.500000000000004?e[1]>39.50000000000001?T=.04575380761203418:T=-.10025595041353463:e[15]>1e-35?T=.17705790384964004:T=.0073813837628615014:T=.07676373681392407:T=-.027167992693885996:e[3]>11.500000000000002?e[280]>1e-35?T=.07078572910026419:e[4]>23.500000000000004?T=.005513918674164821:T=.0206586476926392:e[0]>5269.500000000001?T=.07706773525822633:T=-.010233826953776122:e[148]>1e-35?e[8]>1622.5000000000002?T=-.03204783603215824:T=.027405418223981973:e[4]>14.500000000000002?e[131]>1e-35?e[9]>1.5000000000000002?e[0]>5026.500000000001?T=-.0930246911392012:T=.011173087289703683:e[3]>24.500000000000004?T=.03281421918878597:T=.12449335091369843:e[204]>1e-35?T=.06634531187326123:T=-.011522999669353388:e[92]>1e-35?e[10]>42.50000000000001?T=-.041196758517013515:e[4]>7.500000000000001?T=-2942718111029724e-20:e[4]>6.500000000000001?T=.11953909558532852:T=.03188615019450534:e[122]>1e-35?T=-.0616037324662157:e[101]>1e-35?T=.027230889593349412:e[8]>4968.500000000001?T=-.1113986516540856:e[3]>2.5000000000000004?T=-.002045140426885727:e[129]>1e-35?T=.12641163374304432:T=.014909826232873194;let v;e[308]>1e-35?e[0]>7277.500000000001?v=-.09337446795435:e[5]>423.00000000000006?e[133]>1e-35?v=-.040884836258675006:e[210]>1e-35?v=-.0003719413278428804:e[13]>1e-35?v=.030287610160818174:v=.011174130013595384:e[1]>38.50000000000001?v=-.0662442170185784:v=.004332185707008564:e[9]>7.500000000000001?e[145]>1e-35?e[285]>1e-35?v=-.08092286307197555:v=.029866363328584986:e[21]>1e-35?e[10]>4.500000000000001?v=-.1155211149523894:v=-.0032903546638958538:e[149]>1e-35?v=-.03632198993199768:e[3]>9.500000000000002?e[8]>999.5000000000001?v=-.003507023626534306:e[128]>1e-35?e[4]>13.500000000000002?e[0]>3459.5000000000005?v=-.025416927789760076:v=.02777568919793122:v=-.10310351509769732:v=.013549608903688785:e[186]>1e-35?v=.08513865847420551:v=-.009306721292510369:e[31]>1e-35?v=.009780833952582307:e[23]>1e-35?v=.011143773934157629:e[210]>1e-35?v=.025354797285173356:e[17]>1e-35?e[10]>3.5000000000000004?v=-.04846287537743046:v=-.014647271080376757:e[2]>5.500000000000001?e[7]>57.50000000000001?v=-.034224938681445764:e[8]>1641.5000000000002?v=-.027298372075800673:e[191]>1e-35?e[10]>18.500000000000004?v=-.027950103994861836:v=.14575930827829034:v=-.007124740389354946:e[10]>22.500000000000004?v=.013173304107866726:v=-.11119620042551365;let S;e[131]>1e-35?S=.01892225243240137:e[308]>1e-35?e[5]>691.5000000000001?e[133]>1e-35?S=-.037118314390013646:e[1]>51.50000000000001?e[5]>3749.5000000000005?e[8]>58.50000000000001?S=-.022305242912035072:S=.024792895826340516:S=.013666137278072166:e[88]>1e-35?e[10]>27.500000000000004?S=.2080083584805785:S=.04247197078083379:e[10]>40.50000000000001?e[18]>1e-35?e[1]>27.500000000000004?S=.060783227455868206:S=-.056904865557409035:S=-.03278952553107572:e[192]>1e-35?S=.13117402617043625:S=.01647119888257836:S=-.01825870445636398:e[9]>6.500000000000001?e[298]>1e-35?S=.026536210945939682:e[8]>691.5000000000001?e[126]>1e-35?S=-.07927319604548912:e[10]>3.5000000000000004?e[21]>1e-35?S=-.11083976837572328:e[146]>1e-35?S=-.03359294484446772:S=-.0042815953591236475:e[190]>1e-35?S=-.09264239592903775:e[10]>1e-35?S=.022282638485105657:S=-.0205994057928458:e[5]>4918.500000000001?S=.03430715695199153:e[243]>1e-35?e[2]>57.50000000000001?S=.08935072241972036:S=-.03781647876237494:S=.0062655753179671515:e[31]>1e-35?S=.008603500300349887:e[230]>1e-35?S=.03350056932774173:e[23]>1e-35?e[241]>1e-35?S=.10277555508503314:S=.0017901817172993888:e[2]>98.50000000000001?S=-.05920081229672715:S=-.015722173275739208;let R;e[13]>1e-35?e[118]>1e-35?R=.07957905150112207:e[1]>125.50000000000001?R=-.0662620579858685:e[145]>1e-35?R=.029682040828779843:e[19]>1e-35?e[6]>15.500000000000002?R=-.0009597832580977798:R=-.081474760755753:e[212]>1e-35?R=.03637001492325179:R=.006912305498963309:e[32]>1e-35?R=-.03919900630910754:e[134]>1e-35?R=-.036225295529777886:e[4]>4.500000000000001?e[5]>384.50000000000006?e[204]>1e-35?R=.06671440854602108:e[136]>1e-35?R=-.07577364230133474:e[148]>1e-35?e[4]>7.500000000000001?R=.026430947016830915:R=-.04075501264495112:e[9]>93.50000000000001?R=-.04353169430417609:e[50]>1e-35?R=-.1411224537622882:e[17]>1e-35?e[49]>1e-35?R=.068392679163672:e[10]>1.5000000000000002?R=-.0209659792007492:R=-.0004393235559249831:e[133]>1e-35?e[9]>64.50000000000001?R=.07254524592323175:R=-.0319087835282534:R=.00037444813327793425:R=-.025138768151370408:e[243]>1e-35?R=-.050010891710502096:e[94]>1e-35?R=-.0817513550778599:e[122]>1e-35?R=-.061038875809822285:e[19]>1e-35?e[8]>1085.5000000000002?R=-.008408408775061623:e[2]>5.500000000000001?e[218]>1e-35?R=.1454877641381946:R=.053787998331240316:e[9]>33.50000000000001?R=.08602629796680285:R=-.03895127455803038:R=.008830878042315722;let j;e[131]>1e-35?j=.01687979707990516:e[8]>2915.5000000000005?e[297]>1e-35?j=.07473600489975568:e[0]>93.50000000000001?j=-.021596848506011502:j=-.13840802327735696:e[230]>1e-35?e[4]>6.500000000000001?e[0]>4977.500000000001?j=.10264284346448256:j=.031042487183181262:j=-.016653982936827776:e[4]>60.50000000000001?e[10]>75.50000000000001?j=.04226403420647408:e[10]>1e-35?e[0]>4733.500000000001?j=.006271403149804702:j=-.030013637555715046:e[0]>4449.500000000001?j=-.06556876058654929:j=.06437994816903034:e[32]>1e-35?j=-.043814577251655815:e[308]>1e-35?e[0]>7277.500000000001?j=-.09349726304052086:e[210]>1e-35?j=-.0035960132209098003:e[5]>691.5000000000001?e[133]>1e-35?j=-.029188394315052574:j=.017219308333820193:j=-.017378928852189585:e[9]>6.500000000000001?e[0]>2653.5000000000005?e[149]>1e-35?j=-.04428555753857688:j=.0001456106867817353:e[5]>213.50000000000003?j=.01740292726636365:j=-.011361718115556464:e[7]>4.500000000000001?e[0]>316.50000000000006?e[19]>1e-35?e[10]>54.50000000000001?j=.03410288911259329:e[121]>1e-35?j=-.06056527462120627:e[8]>2592.5000000000005?j=.12166808844363577:e[191]>1e-35?j=.11669879218998758:j=-.001664858391716235:j=-.01262927450503166:j=-.04506589951879664:e[227]>1e-35?j=-.08548904959752329:j=.02156080776537726;let K;e[306]>1e-35?e[149]>1e-35?K=-.1389218965136736:K=-.032218642644416894:e[13]>1e-35?K=.006465035217331847:e[50]>1e-35?K=-.1381687930130022:e[179]>1e-35?K=-.13112784985951215:e[148]>1e-35?e[8]>1726.5000000000002?K=-.03262719498763048:K=.023342916702125613:e[191]>1e-35?K=.030005484947580197:e[4]>4.500000000000001?e[204]>1e-35?K=.047767773119269434:e[136]>1e-35?e[0]>1937.5000000000002?K=-.09989343595668776:K=.06533942033334243:e[15]>1e-35?e[9]>86.50000000000001?K=-.10577989354150097:e[8]>668.5000000000001?e[126]>1e-35?K=-.09165257825246746:e[9]>32.50000000000001?K=.02484870392366004:K=-.008499493096971395:e[8]>24.500000000000004?K=.02459679192828244:K=-.010527978013140512:e[25]>1e-35?e[217]>1e-35?K=.0015644546318714849:K=-.06579524865022705:K=-.0060233890975120614:e[122]>1e-35?e[1]>36.50000000000001?K=.03331853632960164:K=-.09482264761126993:e[19]>1e-35?e[8]>1430.5000000000002?K=-.019091477207111116:K=.037878468575478504:e[94]>1e-35?K=-.08013082284576584:e[4]>2.5000000000000004?e[186]>1e-35?K=.16919658785098224:e[243]>1e-35?K=-.06580584936754524:K=.01567555159935563:e[129]>1e-35?K=.06721746994993226:e[10]>32.50000000000001?K=-.046394462507797975:K=-.006436180519584767;let V;e[131]>1e-35?V=.015039096856208693:e[8]>779.5000000000001?e[145]>1e-35?V=.019122095523977856:e[298]>1e-35?V=.023828936462317443:e[1]>23.500000000000004?e[5]>384.50000000000006?e[7]>59.50000000000001?V=-.026094309429557913:e[204]>1e-35?V=.09163404305658318:e[1]>27.500000000000004?e[149]>1e-35?e[6]>34.50000000000001?V=.012643810980689466:V=-.07884161741497837:V=-.0025267379810891104:e[2]>43.50000000000001?e[0]>2860.5000000000005?V=.04493082949897325:V=.18046359750455776:e[7]>18.500000000000004?V=-.018667348656891496:V=.02584325784698236:V=-.045696524897545915:e[0]>3321.5000000000005?e[201]>1e-35?V=.04749240016989375:V=-.0333334578246718:e[5]>3276.5000000000005?V=.11330554740098908:e[7]>94.50000000000001?V=.1296600395033268:V=-.003576436308940934:e[15]>1e-35?e[183]>1e-35?V=-.13787130789142835:e[0]>1847.5000000000002?V=.017915229729920556:e[10]>23.500000000000004?e[10]>31.500000000000004?e[6]>7.500000000000001?V=.028856848462727104:V=-.11197632885851168:V=.08169801342016791:e[1]>22.500000000000004?V=-.021052888644970163:V=.019048604298876753:e[7]>4.500000000000001?V=-.002603328695276418:e[7]>1.5000000000000002?e[2]>5.500000000000001?V=.03432638833359197:V=-.0036767863082454973:e[1]>48.50000000000001?V=.03087375270128195:e[2]>3.5000000000000004?V=-.04219917149740248:V=.018818493993207935;let Y;e[306]>1e-35?Y=-.04076858123502297:e[13]>1e-35?e[1]>67.50000000000001?e[9]>14.500000000000002?e[9]>53.50000000000001?e[8]>1971.5000000000002?Y=-.09091897542577475:Y=.04042943082645558:e[218]>1e-35?Y=.056254985867151:Y=-.053848117950183044:Y=.003881630017086845:e[5]>5152.500000000001?e[8]>857.5000000000001?e[6]>28.500000000000004?Y=.021581808008986944:Y=-.05639286496176611:Y=.052838875036198954:e[5]>50.50000000000001?e[5]>4082.5000000000005?e[17]>1e-35?Y=.023061479860228728:e[145]>1e-35?e[9]>10.500000000000002?Y=.023885302967553288:Y=.1617794086125622:e[212]>1e-35?Y=.04504545345658806:e[3]>17.500000000000004?e[4]>45.50000000000001?Y=-.03948072448245435:e[1]>47.50000000000001?e[9]>18.500000000000004?Y=.01894935813286188:Y=-.06449356357429188:Y=.012297239104320094:e[1]>26.500000000000004?e[8]>33.50000000000001?Y=-.034718828212885515:Y=.0898976288814321:e[1]>17.500000000000004?Y=-.15440137451988326:Y=-.03864183216821465:Y=.009988507307006308:Y=-.08540311947043305:e[50]>1e-35?Y=-.13323659732101975:e[134]>1e-35?Y=-.031820386486894385:e[32]>1e-35?e[8]>2302.5000000000005?Y=.08082476177379844:Y=-.041665761903645876:e[179]>1e-35?Y=-.12405023987936657:e[39]>1e-35?Y=-.06247416524997478:e[138]>1e-35?Y=-.10724031753676487:Y=-.0005423122305122404;let N;e[308]>1e-35?N=.006160742906729798:e[190]>1e-35?e[0]>2461.5000000000005?e[10]>22.500000000000004?N=.023223358334607133:N=-.04383410185346742:N=-.08542395045055405:e[297]>1e-35?e[8]>51.50000000000001?e[1]>13.500000000000002?N=.023406489302867494:N=-.085521220804058:N=-.02921899554854833:e[298]>1e-35?e[9]>12.500000000000002?N=.028120059780969632:N=-.04211009474298743:e[294]>1e-35?N=-.05040415676618239:e[86]>1e-35?e[1]>36.50000000000001?N=-.0993035220737934:N=-.0005384930611060366:e[230]>1e-35?e[4]>6.500000000000001?N=.029770210551187937:N=-.016272917551655715:e[4]>60.50000000000001?e[280]>1e-35?N=.06421359317599738:N=-.01963732469244167:e[218]>1e-35?e[3]>3.5000000000000004?N=.024368404612215164:N=-.04045232374803373:e[131]>1e-35?N=.017372701982485795:e[120]>1e-35?N=.08812710275150198:e[18]>1e-35?e[90]>1e-35?N=.18451364351180236:e[7]>33.50000000000001?N=-.03850813130183531:e[195]>1e-35?N=.06966114053446336:e[3]>16.500000000000004?N=-.0012869181693341211:e[0]>4242.500000000001?N=-.054625548611291035:N=-.014431095117473881:e[5]>4558.500000000001?e[8]>1.5000000000000002?N=.006302103427145562:N=.13967622319898698:e[121]>1e-35?N=-.038798585213145644:e[5]>4544.500000000001?N=-.08050498033009466:N=-.002986974112681435;let k;e[0]>384.50000000000006?e[2]>101.50000000000001?e[1]>16.500000000000004?k=-.03461119351456781:k=.05659026566680352:e[306]>1e-35?e[2]>14.500000000000002?e[149]>1e-35?k=-.12404435523286539:k=-.0034376913880382956:k=-.09821622245095822:e[131]>1e-35?e[9]>1.5000000000000002?k=.0037507103585310234:k=.03610387965829944:e[8]>999.5000000000001?e[9]>137.50000000000003?k=-.11985021663179699:e[0]>1847.5000000000002?e[126]>1e-35?k=-.04832024079663151:e[37]>1e-35?k=-.037103393468366934:k=-.004248086592531705:e[8]>3084.0000000000005?e[9]>43.50000000000001?k=.032539071163832034:e[5]>1643.5000000000002?k=.036408625378035665:e[0]>1500.5000000000002?k=-.1346358322854993:k=-.027586559522081014:e[3]>1e-35?e[190]>1e-35?k=-.1133991164577881:e[9]>52.50000000000001?k=-.024478640359723122:k=.03673777861098756:k=-.1037451237591819:e[230]>1e-35?e[9]>48.50000000000001?e[10]>20.500000000000004?k=.002583438691776944:k=.10773520810108106:e[9]>12.500000000000002?e[1]>16.500000000000004?k=-.02141222346712401:k=.06392462314316179:e[4]>12.500000000000002?k=.08700122294434816:e[8]>267.50000000000006?k=.056923170082743224:k=-.07716309825583327:e[32]>1e-35?k=-.03961343943752142:k=.002674914122888783:e[1]>42.50000000000001?k=-.05217539654421676:e[145]>1e-35?k=.09553630282946368:k=-.009424791262477729;let z;e[183]>1e-35?z=-.05753337139158443:e[308]>1e-35?z=.00562436671450989:e[9]>7.500000000000001?e[21]>1e-35?e[10]>8.500000000000002?z=-.10477869875380448:z=-.0070301869937306055:e[3]>9.500000000000002?e[8]>1765.5000000000002?e[0]>4571.500000000001?z=-.12526505173232894:e[10]>1e-35?e[9]>71.50000000000001?z=-.04442302951713574:z=.00012409888451734224:z=-.092199119633697:e[225]>1e-35?z=.13773072450201831:e[0]>2882.5000000000005?z=.0028540012229920533:e[298]>1e-35?z=.07134486044361629:z=.014297412329837425:e[145]>1e-35?z=.05608385321902638:e[92]>1e-35?z=.038298413603926135:e[107]>1e-35?e[2]>6.500000000000001?z=-.0039957800609801315:z=.0776927564241081:e[203]>1e-35?z=-.05502900859432093:e[105]>1e-35?z=.06062892720841595:z=-.009574839629252128:e[31]>1e-35?z=.009488858841144216:e[23]>1e-35?e[20]>1e-35?z=.08818126313644752:e[8]>161.50000000000003?z=.014353968957885408:z=-.022240738532827903:e[210]>1e-35?z=.024648862719806694:e[2]>5.500000000000001?e[4]>4.500000000000001?e[17]>1e-35?e[10]>16.500000000000004?z=-.043902062079383485:z=-.014741559220396223:z=-.00934935734853194:e[6]>32.50000000000001?z=.1514593126307404:z=.010771222510801532:e[10]>22.500000000000004?z=.01412495209334078:z=-.08576940379502533;let D;e[0]>384.50000000000006?e[84]>1e-35?D=-.06647690967306838:e[2]>101.50000000000001?D=-.024451334501552457:e[306]>1e-35?D=-.034517188927733505:e[131]>1e-35?e[9]>1.5000000000000002?D=.0031858381443673127:D=.032574927024450646:e[204]>1e-35?e[1]>62.50000000000001?D=-.08601340441214533:e[1]>29.500000000000004?D=.10487598629539963:e[8]>597.5000000000001?D=-.0786529133673238:D=.08689436600511559:e[8]>779.5000000000001?e[10]>2.5000000000000004?e[9]>100.50000000000001?D=-.04883600353740688:e[126]>1e-35?D=-.03794042763348827:D=-.003358871967539988:e[210]>1e-35?D=.054991356498447566:e[6]>19.500000000000004?D=-.007418396981635549:D=.018032606049498613:e[18]>1e-35?e[7]>35.50000000000001?e[2]>44.50000000000001?D=-.02143003429501711:D=-.09016000554055564:e[1]>19.500000000000004?e[1]>42.50000000000001?e[8]>17.500000000000004?D=-.006636355416244082:D=-.06483095743431454:e[4]>21.500000000000004?D=-.028975965946833545:D=.022012264796522657:D=-.06653648243193663:e[5]>4593.500000000001?D=.01753551428088607:e[217]>1e-35?D=-.028864824937700297:e[94]>1e-35?D=-.04885192273020658:e[279]>1e-35?D=.08105715462329498:e[121]>1e-35?D=-.04576676034750651:D=.004795141324949362:e[1]>42.50000000000001?D=-.047446619702809195:e[145]>1e-35?D=.08400495571952321:D=-.00854528836489364;let E;e[294]>1e-35?E=-.042529778074638265:e[266]>1e-35?E=-.1180276669679798:e[134]>1e-35?E=-.026818144353279623:e[183]>1e-35?E=-.05120747503479363:e[227]>1e-35?e[8]>1641.5000000000002?E=-.07265906898294434:e[4]>12.500000000000002?e[17]>1e-35?E=-.027516137530797014:e[0]>4331.500000000001?e[1]>64.50000000000001?E=-.03049646619610203:e[1]>50.50000000000001?E=.20634590755061122:E=.06956378103625731:e[0]>3770.5000000000005?E=-.07946414366134913:e[19]>1e-35?E=.17083312065604694:e[2]>21.500000000000004?E=-.02327981978127724:E=.129717297518715:e[145]>1e-35?E=.006891245076133524:E=-.0789123467863741:e[3]>99.50000000000001?E=-.02022281202803071:e[302]>1e-35?e[10]>47.50000000000001?E=.06447639919732716:E=-.05457561977645972:e[306]>1e-35?E=-.029995903305383882:e[191]>1e-35?E=.030596508110850414:e[242]>1e-35?E=-.024085578702020216:e[8]>3198.5000000000005?e[297]>1e-35?E=.09518584795377832:E=-.018197744600833596:e[13]>1e-35?E=.006751790086127549:e[148]>1e-35?E=.01904174573618417:e[99]>1e-35?E=.025287735102561926:e[4]>14.500000000000002?E=-.004364337681643273:e[1]>15.500000000000002?e[35]>1e-35?E=-.09467943982430241:e[243]>1e-35?E=-.02521824751996268:E=.005437570718352172:E=-.022476214821960674;let I;e[0]>384.50000000000006?e[84]>1e-35?I=-.06088131453064195:e[147]>1e-35?I=-.05332792965930566:e[135]>1e-35?e[9]>32.50000000000001?I=.04219361472548491:I=-.07227529211725771:e[10]>4.500000000000001?e[21]>1e-35?I=-.0787279848043689:e[17]>1e-35?e[3]>18.500000000000004?e[188]>1e-35?I=-.054347604504400286:e[0]>3544.5000000000005?e[0]>5850.500000000001?I=-.11431764534511478:I=.013549717238356157:I=-.020987333767091276:e[6]>2.5000000000000004?I=-.02914877855133127:I=.08483464900160231:e[8]>58.50000000000001?e[183]>1e-35?I=-.10087072787978416:e[37]>1e-35?I=-.030467397753331196:e[229]>1e-35?I=-.1017559811057469:e[4]>20.500000000000004?I=-.00413177742240167:e[20]>1e-35?I=.05213315982685969:I=.0037921635866823133:e[8]>51.50000000000001?I=.07327913092421544:e[6]>49.50000000000001?I=-.03457694284156811:e[6]>18.500000000000004?e[7]>17.500000000000004?I=.02744420891894289:I=.11288946357194463:I=.003482908820966248:e[18]>1e-35?e[1]>20.500000000000004?e[7]>4.500000000000001?I=-.012329314369909049:I=.026816658655600168:I=-.0872405354618811:I=.007872673500247845:e[1]>42.50000000000001?I=-.04309044198258254:e[145]>1e-35?I=.07572529147860785:e[7]>5.500000000000001?I=-.013837187093264945:e[1]>17.500000000000004?I=.04208698439539668:I=-.06284346769019863;let A;e[294]>1e-35?A=-.0384794324818203:e[266]>1e-35?A=-.1087205883821061:e[32]>1e-35?e[8]>2302.5000000000005?A=.07432960094940501:A=-.035248735855751855:e[134]>1e-35?A=-.02456191365284949:e[121]>1e-35?e[0]>4720.500000000001?e[1]>39.50000000000001?A=-.01706896375068821:A=.08212247914968074:e[2]>59.50000000000001?A=-.09546478958824225:e[6]>53.50000000000001?A=.12317082897575611:e[1]>56.50000000000001?e[4]>7.500000000000001?e[0]>3560.5000000000005?A=.02816463285971267:A=.15449139016588445:A=-.10199787406123524:A=-.038068684323297096:e[223]>1e-35?e[8]>668.5000000000001?A=-.13924786681478077:A=-.0072772442570213335:e[39]>1e-35?A=-.05392786531177836:e[0]>93.50000000000001?e[40]>1e-35?A=-.054059371343144036:e[306]>1e-35?e[2]>14.500000000000002?e[149]>1e-35?A=-.11174465335620831:A=.00013144040097180107:A=-.08493919336681105:e[42]>1e-35?A=-.11078582572836196:e[84]>1e-35?e[4]>17.500000000000004?A=-.015540659878839153:A=-.14442609417300142:e[21]>1e-35?A=-.025251979447574083:A=.0023698372645272847:e[18]>1e-35?A=.07269739695712212:e[8]>2592.5000000000005?A=-.1460388776448558:e[9]>30.500000000000004?e[1]>23.500000000000004?A=-.01835130329646532:e[9]>45.50000000000001?A=.02023047454629885:A=.16469378262221102:A=-.042975030085836426;let w;e[8]>2915.5000000000005?e[297]>1e-35?w=.06257393915394144:e[0]>93.50000000000001?e[4]>1.5000000000000002?w=-.01034964686484714:w=-.07357437440667927:w=-.11987794734779106:e[298]>1e-35?e[8]>81.50000000000001?e[0]>3370.5000000000005?e[8]>155.50000000000003?e[8]>660.5000000000001?e[8]>2134.5000000000005?w=-.09476398869062203:e[9]>72.50000000000001?w=-.0757383854264379:w=.02806542779508718:w=-.05147742568418084:w=.10212721564444344:w=.0518263760642861:w=-.08743405377022222:e[189]>1e-35?e[0]>5269.500000000001?w=-.10669213185972036:w=.027050434286384796:e[302]>1e-35?w=-.0407832394672723:e[116]>1e-35?e[10]>38.50000000000001?w=.06354599160071946:e[1]>67.50000000000001?w=.05317447949011187:w=-.059138165935307165:e[212]>1e-35?e[19]>1e-35?w=-.09369289448773599:e[0]>2215.5000000000005?w=.04077965380363924:e[0]>807.5000000000001?w=-.0591771776458298:w=.057315736906679376:e[308]>1e-35?e[1]>52.50000000000001?e[5]>3749.5000000000005?w=-.016323380219241672:w=.007291062979527741:e[210]>1e-35?e[8]>1641.5000000000002?w=.03720704290087811:w=-.008730548158766654:e[4]>80.50000000000001?w=-.05346644687473197:w=.014596824736762107:e[218]>1e-35?e[3]>3.5000000000000004?w=.019984510398089086:w=-.03917825025861855:e[9]>170.50000000000003?w=-.09759719821334525:w=-.0023586682752856298;let P;e[183]>1e-35?e[17]>1e-35?P=.030100940443356424:e[10]>1.5000000000000002?P=-.10861112216742408:P=.017680668976453255:e[227]>1e-35?e[17]>1e-35?e[2]>16.500000000000004?P=-.032062878390325456:P=-.10808232631806887:e[8]>1641.5000000000002?P=-.06147013392655731:e[4]>12.500000000000002?P=.03324767551088266:e[145]>1e-35?P=.028851633810612017:P=-.054871239091792784:e[134]>1e-35?P=-.023813968121342108:e[266]>1e-35?P=-.10037039667146351:e[222]>1e-35?e[0]>612.5000000000001?e[10]>1e-35?e[8]>1939.5000000000002?P=-.055566877553100726:e[2]>24.500000000000004?e[8]>182.50000000000003?e[10]>43.50000000000001?e[10]>55.50000000000001?P=-.025350325484720576:P=.1579024598549572:e[9]>2.5000000000000004?e[0]>3746.5000000000005?P=.056817276537534815:P=-.07674158463557636:P=-.06335553143454145:e[1]>56.50000000000001?P=.16390494217299284:P=-.0027330160430847177:e[10]>36.50000000000001?e[8]>1067.5000000000002?P=.041717597065890205:P=-.10357913492269129:e[10]>29.500000000000004?P=.1365512866715726:P=.020600048310575665:P=.09708785634773187:P=-.060427658852305666:e[126]>1e-35?e[10]>32.50000000000001?e[6]>24.500000000000004?e[8]>1146.5000000000002?P=-.03146213719547347:P=.11784024316238083:P=-.050940520532045355:P=-.047988344143075616:e[191]>1e-35?P=.028764654731460032:P=.0011911575567860023;let O;e[294]>1e-35?e[10]>50.50000000000001?O=-.11630092297244568:e[0]>2432.5000000000005?e[0]>4199.500000000001?O=-.05103908560370243:O=.05002066201169583:O=-.09976646725732496:e[32]>1e-35?e[0]>4242.500000000001?O=-.0648838712201258:e[5]>3721.5000000000005?e[9]>4.500000000000001?O=.127983140816313:O=-.05436534163636867:O=-.024514536544596455:e[121]>1e-35?e[0]>4449.500000000001?e[4]>9.500000000000002?O=-.009504203657088933:e[8]>819.5000000000001?O=.18689664822602375:O=.03635576744011826:O=-.029862411809998525:e[223]>1e-35?O=-.06474496692999487:e[86]>1e-35?e[8]>65.50000000000001?e[1]>46.50000000000001?O=-.09405026597863717:e[0]>4153.500000000001?O=.053577663326799765:O=-.05062127873995668:O=.06512222894425874:e[39]>1e-35?O=-.04985311717827547:e[51]>1e-35?O=-.04541229517934797:e[178]>1e-35?e[2]>25.500000000000004?e[2]>30.500000000000004?e[0]>2151.5000000000005?O=-.02860634573675884:O=.08863753005590103:O=.11158892111063744:e[0]>655.5000000000001?O=-.031005736641654926:O=-.1439827004505974:e[222]>1e-35?e[1]>11.500000000000002?e[0]>612.5000000000001?O=-.00843386136334982:O=-.05273594615999777:O=.1060183822015004:e[126]>1e-35?e[10]>32.50000000000001?e[8]>719.5000000000001?O=-.015774115523598486:O=.10147367091236065:O=-.048307000563071016:O=.002118376117677254;let M;e[8]>1014.5000000000001?e[9]>137.50000000000003?M=-.10279096288817871:e[0]>93.50000000000001?e[8]>1067.5000000000002?e[227]>1e-35?M=-.03544332389470493:e[285]>1e-35?e[9]>64.50000000000001?M=.07211107542565391:M=-.041556776020476104:e[145]>1e-35?e[1]>66.50000000000001?M=-.0751486415451188:e[1]>59.50000000000001?M=.13459005084554104:M=.024184371850147466:e[0]>3072.5000000000005?e[95]>1e-35?M=.06715575425741895:M=-.005895690393702183:e[8]>2915.5000000000005?M=-.010205039411753762:e[9]>33.50000000000001?e[9]>47.50000000000001?M=-.00029068886245881074:M=.0613467393188786:e[148]>1e-35?M=-.06074463294936236:e[3]>1.5000000000000002?e[5]>1849.5000000000002?e[1]>15.500000000000002?M=.003887223773199377:M=-.08553893131979015:M=.025654192706396767:M=-.05651733979610658:M=-.02039913645229667:e[2]>7.500000000000001?M=-.1058450646728524:M=.02267192191610376:e[1]>120.50000000000001?e[2]>60.50000000000001?M=-.12304707569000428:e[1]>132.50000000000003?e[6]>41.50000000000001?M=.1283258201586378:M=-.01718135372229775:M=-.07702452408491414:e[125]>1e-35?M=-.0804612900572707:e[178]>1e-35?e[0]>4533.500000000001?M=.04273051857848212:M=-.04533122948101463:e[2]>196.50000000000003?M=-.10543331044088727:e[94]>1e-35?e[5]>4532.500000000001?M=.0231032972703664:M=-.04807386814498683:M=.002729435991332102;let $;e[179]>1e-35?$=-.08065315471211375:e[183]>1e-35?e[17]>1e-35?$=.026484626664041125:e[10]>1.5000000000000002?$=-.10187000872941615:$=.015274190652133752:e[84]>1e-35?e[9]>6.500000000000001?e[2]>43.50000000000001?$=.09574540795390041:$=-.06454986703691233:$=-.11411849349353141:e[266]>1e-35?$=-.09281838517322076:e[32]>1e-35?e[8]>2302.5000000000005?$=.06685250330182936:e[4]>67.50000000000001?e[2]>97.50000000000001?$=-.04403391373512386:$=.1132928075412222:e[2]>47.50000000000001?$=-.09700191391838056:$=-.02147184357182825:e[10]>4.500000000000001?e[21]>1e-35?$=-.0735617817957859:e[17]>1e-35?e[3]>18.500000000000004?$=-.001668912999010927:$=-.02363511102970245:e[8]>58.50000000000001?$=-.00035213368294640616:e[3]>17.500000000000004?e[2]>28.500000000000004?e[10]>23.500000000000004?e[1]>38.50000000000001?$=.0911011436534449:e[1]>28.500000000000004?$=-.07192390493729035:$=.06913818091291246:$=-.012312625373699222:$=.06784496312307986:$=-167756936027735e-19:e[18]>1e-35?e[8]>302.50000000000006?$=.0026564453057705273:$=-.025425772389361445:e[122]>1e-35?$=-.12046786388602149:e[0]>3183.5000000000005?$=.01162092842804907:e[91]>1e-35?$=.07000265526928563:e[1]>22.500000000000004?e[0]>576.5000000000001?$=-.0001647792543020228:$=-.023664538532907665:$=.01609078206180752;let G;e[294]>1e-35?e[1]>26.500000000000004?e[0]>4141.500000000001?G=-.051473645433684705:e[0]>3030.5000000000005?e[1]>51.50000000000001?G=-.017696526862422682:G=.1450050954613223:G=-.05406930069823832:G=-.08308700260259043:e[120]>1e-35?G=.058316269489189415:e[297]>1e-35?e[94]>1e-35?G=-.07425512495167255:e[8]>51.50000000000001?e[1]>13.500000000000002?e[1]>33.50000000000001?e[19]>1e-35?e[0]>4498.500000000001?G=.038431826961746934:G=-.05937462906539856:e[9]>65.50000000000001?G=.10814845712507865:e[4]>9.500000000000002?e[2]>22.500000000000004?e[1]>39.50000000000001?e[1]>44.50000000000001?e[10]>44.50000000000001?G=.12297945639231944:e[0]>3796.5000000000005?e[4]>26.500000000000004?G=-.09579030954062734:G=.025064711572811746:G=.02579440518821548:G=.1044440128091862:G=-.058348633139536844:G=.07766788227934436:G=-.01021229539092708:e[2]>2.5000000000000004?e[10]>29.500000000000004?e[0]>3770.5000000000005?e[0]>4438.500000000001?G=.07463684068207214:G=.18244269035484484:e[6]>39.50000000000001?G=-.06050050067471004:G=.05787759066913493:G=.010783225857972171:G=.1674891243602606:e[4]>9.500000000000002?G=-.004814132027475892:G=-.14543299413454813:G=-.02935093398687923:e[116]>1e-35?e[9]>2.5000000000000004?e[8]>1218.5000000000002?G=-.07634466313617769:G=.0287825335169114:G=-.06894721943300268:G=-.00023988459059521937;let le;e[131]>1e-35?e[1]>93.50000000000001?le=-.05706887458825395:e[2]>1.5000000000000002?le=.011446637886629108:le=-.10616119878749211:e[230]>1e-35?e[4]>6.500000000000001?e[0]>4977.500000000001?le=.08424281276381033:e[3]>17.500000000000004?e[20]>1e-35?le=.11146885439601915:e[8]>61.50000000000001?e[0]>3530.5000000000005?e[9]>48.50000000000001?e[9]>61.50000000000001?le=.026278724448495064:le=.17053138400480508:e[0]>4463.500000000001?le=-.06482289890096041:le=.03026516489536295:le=-.031785170717683144:le=.1312690622980455:e[13]>1e-35?le=.14336922540461444:le=.03523850945454039:le=-.015407465968975714:e[39]>1e-35?le=-.054809635385158186:e[32]>1e-35?e[0]>4242.500000000001?le=-.0659975068798723:le=-.008386582621403979:e[4]>60.50000000000001?e[10]>75.50000000000001?e[3]>107.50000000000001?le=-.04225314193574262:e[3]>70.50000000000001?e[1]>29.500000000000004?le=.057409156184759516:le=.2024322059866388:le=-.030670938454461245:e[10]>1e-35?e[0]>4733.500000000001?le=.010648654146284154:e[308]>1e-35?le=.008728141696325391:e[4]>64.50000000000001?e[298]>1e-35?le=.12364025998551711:le=-.02247495081065243:e[1]>22.500000000000004?le=-.0726295464624251:le=.03481895086048152:e[0]>4331.500000000001?le=-.04775443357020673:le=.07172377425057568:e[2]>89.50000000000001?le=-.11782645274716962:le=.00010092665257989378;let be;e[147]>1e-35?be=-.041560228567115574:e[302]>1e-35?e[10]>47.50000000000001?be=.062292114082780084:e[10]>5.500000000000001?e[7]>22.500000000000004?be=-.016101990375700172:e[0]>2579.5000000000005?be=-.13045089661551845:be=-.02874367814784938:be=.025835149631944995:e[167]>1e-35?e[0]>3928.5000000000005?be=.17084176915326055:be=-.019195947948312853:e[222]>1e-35?e[30]>1e-35?e[1]>36.50000000000001?e[8]>45.50000000000001?e[8]>578.5000000000001?e[1]>67.50000000000001?be=.10591712319944074:be=-.024082167264285:be=.16497698867036126:be=-.04985066326861431:e[0]>1937.5000000000002?e[2]>16.500000000000004?be=-.021012910475524206:be=-.13058422554298485:e[0]>1102.5000000000002?be=.10955864175201457:be=-.03566689354348996:e[1]>11.500000000000002?be=-.02093884208606101:be=.09107244766183857:e[126]>1e-35?e[10]>32.50000000000001?e[8]>719.5000000000001?be=-.013861861436128482:be=.09756849802202777:e[224]>1e-35?e[1]>51.50000000000001?be=.10163873449625677:be=-.02779270277623805:e[1]>26.500000000000004?be=-.08035058228527389:be=.0005719695099064484:e[191]>1e-35?e[9]>9.500000000000002?be=-.007028075523033826:be=.0489470913925288:e[1]>61.50000000000001?e[132]>1e-35?be=.11230846723576784:e[0]>350.50000000000006?e[2]>1.5000000000000002?be=-.0032075580718124892:be=-.04442829143298883:be=-.06597073245775804:be=.0015594090939337751;let xe;e[223]>1e-35?e[8]>668.5000000000001?xe=-.12803889879260094:xe=.002171373740016862:e[121]>1e-35?e[0]>4720.500000000001?e[217]>1e-35?xe=.08967966612917375:e[1]>39.50000000000001?xe=-.059791671514498074:xe=.05648934961902822:e[2]>59.50000000000001?xe=-.08633234097449628:e[6]>53.50000000000001?xe=.11140345067444689:e[1]>56.50000000000001?e[4]>7.500000000000001?e[0]>3560.5000000000005?xe=.025606129643140924:xe=.13835395886271978:xe=-.09361630641448024:e[4]>7.500000000000001?e[1]>26.500000000000004?e[1]>49.50000000000001?xe=-.09975506556937946:e[10]>36.50000000000001?xe=-.09427724661655643:e[10]>24.500000000000004?xe=.07329330653410447:xe=-.02271182965807972:xe=-.09767874967639482:e[6]>13.500000000000002?e[10]>23.500000000000004?xe=-.05082091374050816:xe=.1687114435254966:e[0]>2314.5000000000005?xe=-.06422664016383926:xe=.0636688376664789:e[298]>1e-35?e[9]>12.500000000000002?e[133]>1e-35?xe=-.06857762517406195:e[9]>71.50000000000001?e[0]>4188.500000000001?xe=-.1274167728754332:xe=.01308079126447365:e[4]>73.50000000000001?xe=.13854015371106546:e[4]>48.50000000000001?xe=-.03684255740123261:e[6]>45.50000000000001?xe=.10329912215813097:e[10]>77.50000000000001?xe=-.08630788656925215:xe=.031022006843800853:e[1]>25.500000000000004?xe=-.08278381528048026:xe=.06664374548141594:e[84]>1e-35?xe=-.05624227409079396:xe=.00012184182357340415;let $e;e[179]>1e-35?$e=-.07443348719246982:e[40]>1e-35?e[0]>1937.5000000000002?$e=-.07595415373151816:$e=.054065040429292326:e[134]>1e-35?e[11]>1e-35?e[2]>13.500000000000002?e[0]>1187.5000000000002?$e=.022822510448266862:$e=.17491569312933697:$e=-.058362287133533565:e[2]>2.5000000000000004?$e=-.03633895806364428:$e=.06397808186120692:e[8]>4968.500000000001?e[1]>31.500000000000004?$e=-.07294848747514579:$e=.025053613105805606:e[230]>1e-35?e[4]>6.500000000000001?e[107]>1e-35?$e=-.07009535282685533:e[8]>2640.0000000000005?$e=-.051761240111316276:e[131]>1e-35?$e=-.06245774419231631:$e=.03495606662854905:$e=-.013863522184803188:e[131]>1e-35?e[1]>93.50000000000001?e[1]>105.50000000000001?$e=.0015036626973581122:$e=-.12505706794835883:e[1]>48.50000000000001?e[276]>1e-35?$e=.10435171369790015:e[0]>5026.500000000001?e[0]>5308.500000000001?$e=.022343994371919224:$e=-.14087991797693533:e[8]>1323.5000000000002?e[10]>49.50000000000001?$e=.07724450228328664:e[0]>3853.5000000000005?$e=-.15671707454435677:e[10]>28.500000000000004?$e=-.10179090671841723:$e=.014878216919760927:$e=.03967665658164865:e[8]>2696.5000000000005?e[15]>1e-35?$e=.14054154485273487:$e=.01821247272493051:e[2]>5.500000000000001?e[2]>100.50000000000001?$e=-.08632985141410315:$e=.005524157938954954:$e=-.08802502622523681:$e=-.0004649168897260341;let Ge;e[86]>1e-35?e[8]>65.50000000000001?e[1]>32.50000000000001?e[4]>16.500000000000004?Ge=-.007458687464321174:Ge=-.09444966249102484:e[1]>23.500000000000004?Ge=.08564129697360716:Ge=-.07105002902845851:Ge=.05688756955238231:e[294]>1e-35?e[10]>50.50000000000001?Ge=-.10326216566705966:e[1]>26.500000000000004?Ge=.0050539832484585365:Ge=-.07080395606126953:e[306]>1e-35?e[149]>1e-35?Ge=-.10399433201474328:e[2]>14.500000000000002?e[9]>6.500000000000001?Ge=.05783632021087773:e[10]>17.500000000000004?Ge=-.06720598671764105:e[1]>47.50000000000001?Ge=.097495825172558:Ge=-.013372242800584872:Ge=-.06463226787713715:e[42]>1e-35?Ge=-.0885725817597767:e[204]>1e-35?e[1]>62.50000000000001?Ge=-.07496598696848249:e[1]>29.500000000000004?e[8]>446.50000000000006?Ge=.11051270080118503:Ge=.027719462817590454:e[8]>597.5000000000001?Ge=-.08441503592016869:Ge=.05534229430302502:e[223]>1e-35?e[8]>668.5000000000001?Ge=-.12190088985091102:Ge=-.0067442838156576345:e[148]>1e-35?e[9]>79.50000000000001?Ge=.09225972475904022:e[2]>10.500000000000002?e[1]>102.50000000000001?Ge=.11805676536334647:e[8]>1726.5000000000002?e[9]>10.500000000000002?Ge=.016585157185448045:Ge=-.11032043771149425:Ge=.01586986028570486:e[8]>388.50000000000006?Ge=-.10592413013261853:Ge=.04930703248769364:e[13]>1e-35?Ge=.003621937787920821:Ge=-.0013786331198611841;let Ke;e[145]>1e-35?e[1]>32.50000000000001?e[1]>38.50000000000001?e[10]>55.50000000000001?e[1]>54.50000000000001?Ke=.009769895322846493:Ke=-.10620052926943656:e[9]>19.500000000000004?Ke=.03781202525403449:e[9]>14.500000000000002?Ke=-.11485785321365344:e[9]>6.500000000000001?Ke=.07677177833073881:e[0]>4342.500000000001?Ke=-.07079285609687631:e[49]>1e-35?Ke=.06156814809246001:Ke=-.014788509042554625:Ke=-.032659201618470655:e[5]>5207.500000000001?Ke=-.09013500825185713:e[3]>10.500000000000002?e[8]>1787.5000000000002?Ke=-.03094160322187924:e[1]>29.500000000000004?Ke=.09474646043921069:Ke=.023445783928231618:Ke=.09342846694174194:e[0]>533.5000000000001?e[204]>1e-35?e[1]>62.50000000000001?Ke=-.07164443768784848:e[1]>29.500000000000004?Ke=.089473622509272:e[8]>597.5000000000001?Ke=-.08155349903101317:Ke=.07098423265024251:e[8]>691.5000000000001?e[5]>2252.5000000000005?Ke=-.004003900679358653:e[190]>1e-35?Ke=-.09236113461485262:e[8]>3198.5000000000005?Ke=-.0124130160451179:Ke=.018453070064009328:e[15]>1e-35?Ke=.012013209112857824:e[7]>4.500000000000001?e[7]>5.500000000000001?Ke=-.0009580759587680961:Ke=-.03227283036698222:Ke=.01369287669536875:e[1]>50.50000000000001?Ke=-.04213060332500437:e[35]>1e-35?Ke=-.11508095777767471:e[190]>1e-35?Ke=-.08611884672400155:e[297]>1e-35?Ke=.05723551879433584:Ke=-.004829340082311461;let Qe;e[183]>1e-35?Qe=-.037994150023203555:e[227]>1e-35?e[17]>1e-35?e[3]>20.500000000000004?e[10]>36.50000000000001?Qe=-.11753465135886734:Qe=-.007515490299047085:Qe=-.08576941990777916:e[8]>1641.5000000000002?e[10]>37.50000000000001?Qe=-.12371142493530439:e[1]>36.50000000000001?Qe=.032189417575190435:Qe=-.10339125953022954:e[3]>32.50000000000001?e[4]>27.500000000000004?e[1]>59.50000000000001?Qe=-.0784518658439288:e[2]>54.50000000000001?Qe=.12477882322370665:Qe=.000313468482399738:Qe=.12261955132611434:e[8]>81.50000000000001?e[23]>1e-35?Qe=.04969252946760318:e[8]>511.50000000000006?e[8]>1146.5000000000002?Qe=.0353146070135579:Qe=-.06327619611098285:Qe=.02813577701641991:Qe=-.12354390728506215:e[34]>1e-35?Qe=-.07664408516055397:e[3]>99.50000000000001?e[1]>16.500000000000004?e[1]>26.500000000000004?Qe=-.01245803535276381:Qe=-.07169472553475001:e[1]>11.500000000000002?Qe=.12989984824561698:Qe=-.01201544398886606:e[6]>91.50000000000001?e[1]>22.500000000000004?Qe=.010390226893521422:e[10]>14.500000000000002?Qe=.16790888126487719:Qe=.010614982228955577:e[4]>79.50000000000001?e[9]>44.50000000000001?e[0]>3853.5000000000005?Qe=-.043398307129729134:Qe=.09963544907820426:e[9]>30.500000000000004?Qe=-.13540713124984502:e[9]>17.500000000000004?Qe=.0509435850590757:Qe=-.04761897852404613:e[4]>78.50000000000001?Qe=.09197086656470652:Qe=.0006771050176682337;let U;e[122]>1e-35?e[6]>36.50000000000001?U=.05686884451670743:U=-.05334759543084309:e[266]>1e-35?U=-.08603579519816038:e[157]>1e-35?U=-.06736746113382097:e[302]>1e-35?e[0]>2579.5000000000005?U=-.0499592651503952:e[0]>725.5000000000001?U=.11780353905132664:U=-.05232097173108943:e[147]>1e-35?e[1]>53.50000000000001?U=-.11398297342629615:e[0]>2604.5000000000005?e[0]>3629.5000000000005?U=-.03190157229022304:U=.07985197845805492:U=-.0763078988943886:e[4]>41.50000000000001?e[280]>1e-35?U=.05162933940904835:e[11]>1e-35?e[0]>460.50000000000006?U=-.027174047777029083:U=.057117284879796476:e[3]>43.50000000000001?U=-.0016147040913107311:U=-.05856597304613519:e[2]>45.50000000000001?e[0]>4663.500000000001?e[18]>1e-35?U=-.04779247091640426:e[10]>25.500000000000004?e[9]>22.500000000000004?e[22]>1e-35?U=-.01466076988151239:U=.13375695925484857:U=-.04885873081899647:e[0]>5566.500000000001?U=.11086813028591343:e[8]>992.5000000000001?U=-.07622304217072383:U=.04316019272026325:e[10]>12.500000000000002?e[9]>36.50000000000001?e[9]>45.50000000000001?U=.03285858361708423:U=-.12354858211764992:U=.0672788301823281:e[15]>1e-35?U=.08658836986585006:U=-.02741484278509758:e[290]>1e-35?U=-.08161310335133287:e[135]>1e-35?U=-.04824156054814152:U=.0009156904299554183;let ie;e[3]>7.500000000000001?ie=.0006791852818377787:e[129]>1e-35?e[0]>2904.5000000000005?e[0]>4004.5000000000005?ie=.03642374718166293:ie=.16379973756366603:ie=-.03946685266127979:e[186]>1e-35?ie=.07618896623420895:e[96]>1e-35?ie=.0680272261319657:e[107]>1e-35?e[1]>48.50000000000001?ie=-.022822371600847505:ie=.0501405836324949:e[203]>1e-35?e[1]>77.50000000000001?ie=.044416424920571296:ie=-.0648450593196238:e[5]>3921.5000000000005?e[1]>110.50000000000001?ie=-.11110466767595227:e[9]>5.500000000000001?e[9]>52.50000000000001?e[1]>50.50000000000001?ie=.1061937286809567:e[7]>54.50000000000001?ie=.11487507743121311:e[8]>819.5000000000001?ie=-.07181278009001418:e[10]>25.500000000000004?ie=.13499019430369633:e[1]>31.500000000000004?ie=.09032979489780704:ie=-.12754166393372374:e[9]>37.50000000000001?ie=-.05093963635361407:ie=-.005026651151683848:e[9]>2.5000000000000004?ie=.07619735785573735:ie=.012363301341532136:e[26]>1e-35?ie=-.10685800454968203:e[8]>125.50000000000001?e[8]>446.50000000000006?e[0]>3842.5000000000005?ie=-.08783796894105043:e[282]>1e-35?e[1]>47.50000000000001?e[9]>40.50000000000001?ie=-.10764172927882483:ie=.01890760098464703:ie=.06573095405846417:e[8]>634.5000000000001?ie=-.00783575973273707:ie=-.050612689680229306:e[1]>22.500000000000004?ie=-.0016842490401359626:ie=.0738227088444087:ie=-.02663970950432175;let W;e[31]>1e-35?e[8]>17.500000000000004?W=.013678038624884814:e[1]>35.50000000000001?e[1]>51.50000000000001?W=.007191286124908192:W=-.09347881647636902:e[10]>1.5000000000000002?W=.07938758708008091:W=-.008702935600305113:e[224]>1e-35?e[149]>1e-35?e[13]>1e-35?W=.12321804057595996:W=-.018281109320672437:e[23]>1e-35?e[4]>62.50000000000001?W=-.04644244754790671:W=.024546310702263208:e[8]>862.5000000000001?e[0]>3429.5000000000005?e[4]>9.500000000000002?e[52]>1e-35?W=.0706108609273337:e[2]>40.50000000000001?W=-.028046629962303716:W=-.06497613993109329:W=.01076489668586676:e[1]>33.50000000000001?e[0]>966.5000000000001?e[2]>14.500000000000002?e[1]>38.50000000000001?W=-.03056331974267756:W=-.11886389712497057:W=.053364962175658184:e[8]>2233.5000000000005?W=-.0448152521157682:W=.1508651602190868:e[2]>33.50000000000001?e[0]>2882.5000000000005?e[0]>3183.5000000000005?W=.03818796510453344:W=.23673992112982362:W=.02858814226507374:e[10]>44.50000000000001?W=-.1125863771551199:W=.009129996952394916:e[1]>7.500000000000001?W=-.004374525302461639:W=-.07858519434925451:e[149]>1e-35?e[6]>23.500000000000004?W=.0005231594491642136:e[0]>4053.5000000000005?e[8]>660.5000000000001?W=-.13677189943034931:e[10]>2.5000000000000004?W=.039591891437078086:W=-.09312596849507347:W=-.02423172142089822:W=.0009836986075266283;let he;e[189]>1e-35?e[0]>5269.500000000001?he=-.103183298350443:e[2]>51.50000000000001?he=.09784373530929913:e[10]>26.500000000000004?e[8]>764.5000000000001?he=-.05186168947388339:he=.0496996365539082:e[10]>23.500000000000004?he=.1404445738719:e[93]>1e-35?he=.0027146310074558505:e[5]>3821.5000000000005?he=.002153033152069652:e[4]>2.5000000000000004?he=.007663539551317215:he=.13902616832015402:e[298]>1e-35?e[8]>81.50000000000001?e[4]>64.50000000000001?he=.11498405722487515:e[2]>23.500000000000004?e[0]>2815.5000000000005?e[2]>44.50000000000001?e[4]>42.50000000000001?he=-.021479467709980358:he=.09336868994327292:e[1]>22.500000000000004?e[15]>1e-35?he=.021660293256233334:he=-.0927396152303864:he=.0665074081601698:e[0]>1550.5000000000002?he=.08972407105958534:he=-.0380796411182682:e[6]>13.500000000000002?e[10]>2.5000000000000004?he=.06761927942466854:he=-.015762168112653286:e[17]>1e-35?he=.10311304131145381:he=-.017672785252336027:he=-.08629805732772755:e[1]>24.500000000000004?e[138]>1e-35?he=-.10638321435298535:he=.0007073011744385905:e[18]>1e-35?he=-.027056185501334325:e[145]>1e-35?he=.023191199677450886:e[9]>33.50000000000001?e[201]>1e-35?he=.09762140519655171:e[9]>110.50000000000001?he=-.06581942957595835:e[6]>54.50000000000001?he=.04959634035251596:he=.0022616298654554207:he=-.007437620924990854;let ce;e[179]>1e-35?ce=-.06961998209988884:e[167]>1e-35?e[0]>3928.5000000000005?ce=.1470294450403005:ce=-.01671476793947083:e[187]>1e-35?e[6]>13.500000000000002?e[4]>30.500000000000004?e[13]>1e-35?ce=.07448480853603114:e[0]>1012.5000000000001?e[5]>2883.5000000000005?e[0]>3682.5000000000005?e[5]>4031.5000000000005?e[23]>1e-35?ce=.07965955447707423:e[10]>10.500000000000002?ce=-.09236156404262426:ce=.03396273196231458:ce=-.13246465021467432:ce=.07092822261735353:ce=-.08753829085942:ce=.09409024840640956:e[1]>40.50000000000001?e[8]>984.5000000000001?e[8]>1514.5000000000002?e[8]>2134.5000000000005?ce=.004705878789890202:ce=.13775378964952867:ce=-.04770928980587811:e[10]>29.500000000000004?ce=.011221519891071544:e[0]>3853.5000000000005?ce=.06365381191628273:ce=.15506252245336827:e[1]>37.50000000000001?ce=-.07254777021042061:ce=.026514587757252385:e[308]>1e-35?ce=.04115804816617256:e[10]>26.500000000000004?ce=.02077721353011946:e[5]>3548.5000000000005?ce=-.1280907116663952:ce=-.021974774274438:e[306]>1e-35?ce=-.02700446558079895:e[297]>1e-35?e[212]>1e-35?ce=.07794139136748461:e[7]>5.500000000000001?e[19]>1e-35?ce=-.005710865560475598:e[94]>1e-35?ce=-.06751507982853555:ce=.027250040757588703:e[9]>52.50000000000001?ce=.07060357924595577:ce=-.030297760713011795:ce=-.0006005400085266517;let q;e[113]>1e-35?q=-.07311041707507712:e[40]>1e-35?e[0]>1937.5000000000002?q=-.06996356565314456:q=.04780211300352931:e[10]>52.50000000000001?e[49]>1e-35?q=-.08317707559926495:e[21]>1e-35?q=-.0817284654645976:e[15]>1e-35?e[2]>3.5000000000000004?q=-.010538203005984922:q=.08454819465349446:e[9]>124.50000000000001?q=.09015659250299132:e[7]>15.500000000000002?e[5]>5732.500000000001?q=-.08542251249346582:e[9]>50.50000000000001?q=-.023428882537657472:q=.010042500833979073:q=.020697210754240154:e[10]>28.500000000000004?e[5]>423.00000000000006?e[148]>1e-35?q=.03006025206979096:e[9]>108.50000000000001?q=-.09153851322499747:e[145]>1e-35?e[5]>4814.500000000001?e[2]>38.50000000000001?q=.04222035773042132:q=-.09078149053947535:e[8]>568.5000000000001?e[1]>64.50000000000001?q=-.07209095448054853:q=.028065954981903313:q=.08714651929917122:q=-.006678820669279169:e[10]>40.50000000000001?q=.006982396294941626:q=-.07889649792011418:e[94]>1e-35?e[4]>30.500000000000004?q=-.09351114982645548:e[4]>3.5000000000000004?q=-.004837550129223451:q=-.08324141237464677:e[303]>1e-35?q=.10703037493990825:e[9]>156.50000000000003?q=-.10803018621648303:e[116]>1e-35?q=-.03208302566598311:e[212]>1e-35?e[243]>1e-35?q=.10261721665006701:q=.018994509090668264:q=.0011244262442038839;let ne;e[86]>1e-35?e[8]>65.50000000000001?e[1]>46.50000000000001?ne=-.08404263465005328:e[0]>3682.5000000000005?ne=.041259223920298876:e[1]>29.500000000000004?ne=-.09541257493441671:ne=.001482192721625409:ne=.051541427372951004:e[3]>7.500000000000001?e[157]>1e-35?ne=-.08268996098437432:e[230]>1e-35?ne=.015749498159959817:e[4]>7.500000000000001?e[3]>11.500000000000002?ne=-913218977737457e-19:e[4]>10.500000000000002?ne=-.056334165674005156:e[127]>1e-35?ne=-.0784634021824036:e[2]>9.500000000000002?e[1]>62.50000000000001?ne=-.04231200150318989:e[10]>42.50000000000001?ne=.10182973257894812:ne=.015934763950068445:ne=-.03130938805859397:e[92]>1e-35?e[4]>6.500000000000001?e[1]>51.50000000000001?e[9]>19.500000000000004?ne=-.041117068322885315:ne=.1167767830037126:ne=.13611206992387337:e[10]>41.50000000000001?ne=-.07120286010564107:ne=.022032788063345417:e[8]>1.5000000000000002?e[1]>51.50000000000001?e[9]>72.50000000000001?ne=-.07702290997669524:e[198]>1e-35?ne=.08776558554437136:ne=-.008290740324975692:e[2]>32.50000000000001?ne=.07198457624219955:ne=.005463113714361629:ne=.09414099512900526:e[129]>1e-35?e[0]>2904.5000000000005?e[0]>4004.5000000000005?ne=.03295785445437507:ne=.15140250150674536:ne=-.035613213948910254:e[186]>1e-35?ne=.06849425535860769:e[96]>1e-35?ne=.06028225812727254:ne=-.007582543288662308;let _e;e[84]>1e-35?e[9]>6.500000000000001?e[2]>43.50000000000001?_e=.08396556264106572:_e=-.0562516995099192:_e=-.10593011018789432:e[183]>1e-35?e[15]>1e-35?_e=-.09705176473553752:e[7]>18.500000000000004?e[2]>37.50000000000001?_e=.0052017514017035915:_e=-.11194119432743639:_e=.03724337696163019:e[227]>1e-35?e[17]>1e-35?e[2]>16.500000000000004?_e=-.025692451287403446:_e=-.09511862672123193:e[8]>1661.5000000000002?e[10]>37.50000000000001?_e=-.11892250746801664:e[10]>22.500000000000004?_e=.07548493166973796:_e=-.05973048107712209:e[4]>12.500000000000002?e[0]>4319.500000000001?e[10]>4.500000000000001?e[10]>37.50000000000001?_e=.13750699058082427:e[18]>1e-35?_e=.06535408879552801:_e=-.054118179035040674:_e=.1344282838979622:e[0]>3982.5000000000005?_e=-.10409582202467015:e[19]>1e-35?_e=.12672850705810795:e[8]>587.5000000000001?e[1]>35.50000000000001?_e=.012705935670766466:_e=.14149359442527545:_e=-.047977876173706004:e[20]>1e-35?_e=.057945228080337946:e[0]>3642.5000000000005?_e=-.008726535792122467:_e=-.08424769891378858:e[34]>1e-35?_e=-.0699329538228602:e[134]>1e-35?e[11]>1e-35?e[4]>15.500000000000002?e[0]>1187.5000000000002?_e=.01196849566739346:_e=.1614642278429876:_e=-.043022338150701625:e[3]>5.500000000000001?_e=-.03907848255033881:_e=.018280601026175593:_e=.0006654540402589085;let fe;e[31]>1e-35?e[2]>58.50000000000001?e[9]>1.5000000000000002?fe=-.01386103677247845:fe=.11386694333005128:e[4]>27.500000000000004?fe=-.021862617610091336:e[2]>31.500000000000004?fe=.0828858469030438:fe=.006483353475830127:e[224]>1e-35?e[149]>1e-35?e[13]>1e-35?fe=.11303635767048735:fe=-.01645525128352694:e[23]>1e-35?e[4]>62.50000000000001?fe=-.04238798044549342:fe=.022091190130494303:e[5]>5082.500000000001?fe=-.04287166152163786:e[8]>862.5000000000001?e[19]>1e-35?fe=.000660344696244351:e[4]>9.500000000000002?e[0]>1277.5000000000002?fe=-.04291104140431434:e[17]>1e-35?fe=.11256797532342613:fe=-.017206916368289193:fe=.026482035265709743:e[1]>8.500000000000002?e[11]>1e-35?fe=.04060606971664621:e[0]>4733.500000000001?e[8]>214.50000000000003?e[5]>4814.500000000001?fe=.03581712466863222:fe=.14770264307668884:e[8]>73.50000000000001?fe=-.13093289429740068:fe=.042461737442702936:e[52]>1e-35?fe=.0501831919044939:fe=-.010450249720465756:fe=-.0753365425372656:e[149]>1e-35?e[6]>23.500000000000004?fe=.0005381332165438493:fe=-.04549431717503909:e[133]>1e-35?e[2]>5.500000000000001?e[8]>698.5000000000001?e[282]>1e-35?fe=.04849637311285226:fe=-.036671377119808564:e[0]>421.50000000000006?fe=.00020968499911058945:fe=.11636422423182405:fe=-.12687837788222575:fe=.0012774367867215346;let me;e[120]>1e-35?me=.04776057572434719:e[229]>1e-35?e[0]>2952.5000000000005?e[0]>3904.5000000000005?me=-.042799574885345304:me=.07412430171193245:me=-.11248270469336048:e[193]>1e-35?me=-.060694220820603384:e[121]>1e-35?e[217]>1e-35?e[0]>4449.500000000001?e[4]>8.500000000000002?me=.028911612178122104:me=.12326369727728437:e[0]>4091.5000000000005?me=-.09370267064141052:e[0]>3519.5000000000005?e[8]>668.5000000000001?me=.1159839898100149:me=-.01924880886585737:e[8]>501.50000000000006?e[10]>16.500000000000004?me=-.0216343737351583:me=-.1220272260878369:e[2]>18.500000000000004?me=.09152924475072398:e[8]>55.50000000000001?me=.039508716651005665:me=-.11714436880423203:e[18]>1e-35?e[9]>2.5000000000000004?me=.06793009902674053:me=-.024060578029812988:e[4]>2.5000000000000004?e[2]>16.500000000000004?e[4]>11.500000000000002?me=-.04391068849624096:me=.04009967593394672:e[8]>1085.5000000000002?me=-.024773826356034825:me=-.13919707884246582:me=.06659278075192335:e[223]>1e-35?e[8]>668.5000000000001?me=-.11567917501901476:me=-.006813640337684114:e[3]>7.500000000000001?me=.0010671269682548076:e[7]>3.5000000000000004?e[1]>33.50000000000001?e[0]>1597.5000000000002?e[10]>1.5000000000000002?me=-.001754586408351048:me=-.055422422450722056:me=-.06090032532532226:e[0]>5269.500000000001?me=.11787981735983527:me=-.00198119768540783:me=.00210412924303036;let Ee;e[294]>1e-35?e[10]>50.50000000000001?Ee=-.09738558653332406:e[0]>2432.5000000000005?e[0]>4533.500000000001?Ee=-.06063239096209816:Ee=.03317022411417386:Ee=-.08607562321324262:e[120]>1e-35?e[4]>18.500000000000004?Ee=-.013608609329298802:Ee=.09078000157330264:e[99]>1e-35?Ee=.014828708581964632:e[10]>52.50000000000001?e[49]>1e-35?Ee=-.07536137260189814:Ee=.006253266595455118:e[10]>28.500000000000004?Ee=-.006106041147592768:e[9]>156.50000000000003?Ee=-.11828932797811101:e[94]>1e-35?Ee=-.02566078479505714:e[303]>1e-35?Ee=.09544850289775349:e[15]>1e-35?e[224]>1e-35?e[4]>56.50000000000001?Ee=-.08401252789168523:e[5]>4244.500000000001?Ee=.026372887658499107:e[1]>16.500000000000004?Ee=-.027836756345634026:Ee=.09205362097909099:Ee=.00934612788718244:e[203]>1e-35?Ee=-.016371658366767253:e[7]>26.500000000000004?e[0]>966.5000000000001?e[1]>38.50000000000001?e[146]>1e-35?e[9]>21.500000000000004?Ee=-.09580979052540028:e[1]>50.50000000000001?Ee=-.06402211827281554:Ee=.08342858760095972:e[2]>36.50000000000001?Ee=.008114897658204584:e[92]>1e-35?Ee=.09541587072672864:Ee=-.022342147210555434:Ee=-.01660492519175128:Ee=.014721622240945446:e[4]>25.500000000000004?e[11]>1e-35?Ee=.15846731118501817:Ee=.039498507912023195:e[245]>1e-35?Ee=.07008718676813333:Ee=.0019806389728814727;let Pe;e[32]>1e-35?e[8]>90.50000000000001?e[4]>67.50000000000001?e[0]>4188.500000000001?Pe=-.01192072916082109:Pe=.13888590840802637:e[1]>16.500000000000004?e[8]>2302.5000000000005?Pe=.06874032717466054:e[4]>40.50000000000001?Pe=-.07752510020707537:e[1]>76.50000000000001?Pe=-.09944032260703917:e[8]>1381.5000000000002?Pe=-.054466635810800745:e[1]>32.50000000000001?Pe=.05974084520839573:Pe=-.0384718740755954:Pe=-.11374190719134032:e[0]>2151.5000000000005?Pe=-.13703645155803298:Pe=.004833344758654556:e[297]>1e-35?e[212]>1e-35?Pe=.06954747264544993:e[7]>9.500000000000002?e[19]>1e-35?e[1]>30.500000000000004?e[0]>4242.500000000001?Pe=.013539805885738608:Pe=-.0692740641801559:e[0]>2653.5000000000005?e[10]>57.50000000000001?Pe=.09941880179344399:Pe=-.01608127391210995:Pe=.08025226531247417:e[9]>67.50000000000001?Pe=.13525448212444113:e[6]>61.50000000000001?Pe=-.05511099182158894:e[94]>1e-35?Pe=-.06821509831783572:e[128]>1e-35?Pe=.11361314817714643:Pe=.030160785008575566:e[1]>13.500000000000002?e[8]>17.500000000000004?e[16]>1e-35?Pe=-.09954181329804547:e[197]>1e-35?Pe=.10102833149755386:e[188]>1e-35?Pe=.05584490988313965:e[9]>49.50000000000001?e[4]>5.500000000000001?Pe=-.03781554214742005:Pe=.09927933385592314:Pe=-.020006000056720083:Pe=-.10520473615957895:Pe=-.12006990846253787:Pe=-.00026111570975317574;let Oe;e[8]>2830.5000000000005?e[1]>31.500000000000004?e[9]>32.50000000000001?e[5]>1234.5000000000002?e[0]>1725.5000000000002?e[7]>14.500000000000002?e[2]>38.50000000000001?Oe=-.019188245509744628:Oe=-.13354864350075848:e[0]>2461.5000000000005?Oe=.051885477468354396:Oe=-.0833581968852119:Oe=.08233441701532287:Oe=-.10865584951212362:e[8]>2992.5000000000005?e[10]>49.50000000000001?e[10]>56.50000000000001?e[1]>45.50000000000001?e[0]>2041.5000000000002?Oe=.09926337893072812:Oe=-.027753610497327715:e[0]>1972.5000000000002?Oe=-.09780045823152517:Oe=.032380915168504935:Oe=.11502632261226381:e[17]>1e-35?Oe=-.06094965899579662:e[10]>40.50000000000001?Oe=-.07500475582440802:Oe=.006499832113084677:e[10]>4.500000000000001?e[4]>10.500000000000002?Oe=-.09584538995220808:Oe=-.00908705814304442:Oe=.03203281520813893:e[10]>49.50000000000001?Oe=-.03146271513986384:e[2]>63.50000000000001?Oe=.13172001315536286:e[224]>1e-35?Oe=.08945777550527927:e[0]>2282.5000000000005?e[4]>4.500000000000001?Oe=.09521549382082259:Oe=-.04414925613522197:e[0]>1847.5000000000002?Oe=-.09118580379557353:Oe=.009206744918282364:e[178]>1e-35?e[2]>25.500000000000004?e[1]>31.500000000000004?Oe=.03525144509943896:Oe=-.053340750721609057:e[0]>1057.5000000000002?e[10]>2.5000000000000004?Oe=-.04766112322938157:e[2]>10.500000000000002?Oe=.0728516504357201:Oe=-.05049625965272536:Oe=-.10868663055825774:Oe=.0005382613419948969;let qe;e[147]>1e-35?e[1]>53.50000000000001?qe=-.10615739288764095:e[0]>2604.5000000000005?e[0]>3629.5000000000005?qe=-.030504020655417463:qe=.07102458639110094:qe=-.07058131985243714:e[302]>1e-35?e[10]>47.50000000000001?qe=.055304563442710876:e[1]>53.50000000000001?qe=.033723409577443623:e[8]>175.50000000000003?e[0]>2628.5000000000005?e[9]>40.50000000000001?qe=-.1568835288372895:qe=-.0279829124400056:qe=.04493843959601833:qe=-.11637042729644327:e[191]>1e-35?e[282]>1e-35?qe=-.054133834303687026:e[9]>48.50000000000001?qe=.11263810289007213:e[9]>9.500000000000002?qe=-.02202034562838259:e[4]>45.50000000000001?qe=-.03410927569045158:qe=.04381615166534081:e[242]>1e-35?e[0]>3615.5000000000005?e[3]>19.500000000000004?e[1]>56.50000000000001?e[4]>28.500000000000004?qe=-.029687297407295893:qe=.10673602850001934:e[4]>42.50000000000001?qe=.0036275562945108117:qe=-.0760789221330622:qe=-.10385623431741903:e[2]>34.50000000000001?e[2]>44.50000000000001?e[4]>51.50000000000001?qe=.08274426793676076:qe=-.07076234425516396:qe=.13890177606150175:qe=-.019863286503635686:e[53]>1e-35?e[18]>1e-35?qe=-.09250637750836187:qe=-.0031531727902009026:e[2]>107.50000000000001?e[4]>91.50000000000001?e[1]>16.500000000000004?qe=-.01897867921812603:qe=.04890781705365262:qe=-.11569892307597907:e[2]>106.50000000000001?qe=.09032697440623969:qe=.00047935919155035045;let Ye;e[115]>1e-35?Ye=.05338335681275557:e[242]>1e-35?e[0]>3615.5000000000005?e[4]>42.50000000000001?e[4]>75.50000000000001?Ye=-.10131179514695865:e[8]>938.5000000000001?Ye=.10203729808015481:Ye=-.015357944186835289:e[1]>56.50000000000001?e[2]>22.500000000000004?Ye=.03574015165562999:Ye=-.07763042506449493:Ye=-.0813323116215548:e[2]>34.50000000000001?e[2]>44.50000000000001?e[4]>51.50000000000001?Ye=.0665706259130275:Ye=-.06586817559309924:Ye=.11925564412287476:Ye=-.014170019267143326:e[1]>124.50000000000001?e[2]>30.500000000000004?e[8]>533.5000000000001?e[4]>41.50000000000001?e[8]>977.5000000000001?Ye=.046017146627455346:Ye=-.08623321630086885:e[8]>1765.5000000000002?Ye=-.017990564319859934:e[10]>25.500000000000004?e[10]>48.50000000000001?Ye=.11143827902215087:Ye=-.01817808730473413:Ye=.16980985030210127:Ye=-.09357806298740017:e[10]>7.500000000000001?e[10]>54.50000000000001?Ye=.010168994879727824:Ye=-.09099594488792513:e[9]>1.5000000000000002?Ye=.0533459678147928:Ye=-.06886854808370108:e[99]>1e-35?e[17]>1e-35?e[9]>22.500000000000004?Ye=-.062346959148773695:e[1]>47.50000000000001?Ye=-.0021578343835599316:e[2]>27.500000000000004?Ye=.19567373210166172:Ye=.07851555379116423:e[18]>1e-35?Ye=.03711549097804649:e[8]>359.50000000000006?Ye=.012492346746905587:e[4]>20.500000000000004?Ye=.047511695735697544:Ye=-.07999269063948773:Ye=6802045404471004e-20;let rt;e[222]>1e-35?e[0]>612.5000000000001?e[10]>1e-35?e[8]>2167.5000000000005?e[4]>25.500000000000004?rt=.0011484728213539738:rt=-.0936582904650763:e[2]>25.500000000000004?e[8]>182.50000000000003?e[10]>22.500000000000004?e[0]>5026.500000000001?rt=-.09828874964938798:e[8]>1586.5000000000002?rt=.13726397438080162:e[4]>48.50000000000001?e[2]>63.50000000000001?rt=.011938269926919522:rt=.17541983715953954:e[19]>1e-35?rt=.023002786011088672:rt=-.06221461272461431:e[9]>2.5000000000000004?e[0]>3818.5000000000005?rt=.06508934844183291:rt=-.10168553534835639:rt=-.07755626499024171:e[2]>51.50000000000001?e[4]>65.50000000000001?rt=.021140806225203937:rt=-.1167833342453639:e[2]>33.50000000000001?rt=.13163585734056618:rt=-.00203273890889717:e[10]>36.50000000000001?e[8]>1067.5000000000002?rt=.06314479201263888:rt=-.09639088327091713:e[10]>29.500000000000004?rt=.09225469303582386:e[0]>3129.5000000000005?e[0]>4091.5000000000005?e[0]>4354.500000000001?rt=40577156464836036e-21:rt=.12322387121810757:rt=-.03697224045046014:e[1]>22.500000000000004?rt=.016474835887320276:rt=.16919298733903063:rt=.07633203630214054:rt=-.047438037934250644:e[30]>1e-35?e[224]>1e-35?e[1]>52.50000000000001?rt=.14150493354700563:rt=-.01831155354975749:e[1]>28.500000000000004?rt=-.07952557178685365:e[10]>28.500000000000004?rt=.0665695554984927:rt=-.053640139319277094:rt=.0004754840665898665;let nt;e[76]>1e-35?nt=-.06814884255939921:e[179]>1e-35?nt=-.06325743795510681:e[122]>1e-35?e[6]>36.50000000000001?nt=.05052338063261613:e[8]>626.5000000000001?e[1]>38.50000000000001?nt=.004193658608848433:nt=-.1066968975983452:e[8]>302.50000000000006?nt=.05476730110440451:nt=-.06382970920394895:e[218]>1e-35?e[2]>3.5000000000000004?e[6]>13.500000000000002?e[2]>19.500000000000004?e[0]>3200.5000000000005?e[4]>91.50000000000001?nt=-.12156071809840739:e[9]>21.500000000000004?e[5]>3883.5000000000005?e[8]>919.5000000000001?e[8]>1085.5000000000002?nt=.013555772109446666:nt=-.09856116699770784:nt=.0284329611813383:e[2]>52.50000000000001?nt=.04008708444763762:e[9]>29.500000000000004?nt=-.1289599546008197:nt=-.018566534248335896:e[8]>747.5000000000001?nt=.02236484980076122:nt=.1148871655157582:e[8]>3084.0000000000005?nt=-.05573875952902531:e[10]>17.500000000000004?e[2]>51.50000000000001?nt=.03164751204281298:nt=.11752140436184891:e[9]>42.50000000000001?nt=-.07180559595410106:e[22]>1e-35?nt=.09325040416256854:nt=-.016041122807939914:nt=-.02765708954618808:e[1]>30.500000000000004?e[1]>66.50000000000001?nt=-.010718250133458515:nt=.09818827994853763:nt=.010180038981174032:nt=-.039472162599295535:e[9]>170.50000000000003?nt=-.08536729235976731:e[189]>1e-35?e[0]>5269.500000000001?nt=-.08674788057474031:nt=.02077653508548371:nt=-.0003536561382007414;let ct;e[86]>1e-35?e[10]>6.500000000000001?e[0]>4376.500000000001?ct=.018337297491457794:ct=-.05926206443180149:ct=.024026520855881126:e[288]>1e-35?e[184]>1e-35?ct=.10747078482128616:e[126]>1e-35?ct=-.10550625192391357:e[7]>71.50000000000001?ct=-.07698346027863572:e[8]>302.50000000000006?e[6]>49.50000000000001?e[4]>47.50000000000001?e[1]>38.50000000000001?e[15]>1e-35?ct=.1317396472229434:ct=-.025035791351328947:ct=-.0728334305864372:e[8]>963.5000000000001?ct=.023642201723096064:ct=.183010326734258:e[128]>1e-35?ct=.04228920135648387:e[2]>34.50000000000001?e[15]>1e-35?ct=.002801782941492993:e[3]>40.50000000000001?e[4]>39.50000000000001?ct=-.1088876900335281:ct=.02758317023002635:ct=-.11886771300807207:e[9]>59.50000000000001?e[1]>33.50000000000001?ct=-.01928020117446408:ct=.10193718474139135:e[1]>48.50000000000001?e[4]>9.500000000000002?e[8]>932.5000000000001?ct=.07893723375925096:ct=-.009878929627026153:e[10]>2.5000000000000004?e[9]>20.500000000000004?ct=-.10301657587280551:ct=.005787463140224318:ct=.07421364314695046:e[0]>2840.5000000000005?e[10]>29.500000000000004?ct=-.019296977889522397:ct=-.07274529751752634:e[1]>30.500000000000004?ct=-.050368901143148286:ct=.029630869489466655:e[2]>6.500000000000001?e[4]>9.500000000000002?ct=.0015332402792773946:ct=.09930153676749967:ct=-.06370844564357069:ct=.00042272155209927616;let F;e[71]>1e-35?e[4]>17.500000000000004?F=.12586844370423247:F=-.006791999603126354:e[222]>1e-35?e[1]>10.500000000000002?e[30]>1e-35?e[1]>36.50000000000001?e[9]>1.5000000000000002?e[10]>25.500000000000004?F=-.08474891624263797:e[8]>125.50000000000001?F=.08125086980439704:F=-.04082085238068532:e[0]>3863.5000000000005?F=.020481535807469208:F=.14810819386202126:e[0]>1937.5000000000002?e[2]>16.500000000000004?F=-.019110200161573936:F=-.12387719685855114:e[0]>1102.5000000000002?F=.08376595701957407:F=-.031821919580524834:e[9]>4.500000000000001?F=-.08116383486497568:e[7]>8.500000000000002?e[2]>24.500000000000004?F=-.02154820850475448:e[0]>3863.5000000000005?e[8]>902.5000000000001?F=.1349841206807871:F=.011864053595560297:e[1]>41.50000000000001?F=-.08203662486612544:e[2]>18.500000000000004?F=-.009541865642346947:F=.08345043168501759:e[2]>10.500000000000002?F=-.09585031818030947:F=.019432330487099865:F=.08399259524715129:e[30]>1e-35?e[224]>1e-35?e[1]>52.50000000000001?F=.11951517733981365:F=-.016651014735738538:e[1]>28.500000000000004?F=-.07410922545030711:e[10]>28.500000000000004?F=.05886430683844788:F=-.04929626605117184:e[191]>1e-35?e[9]>9.500000000000002?e[9]>48.50000000000001?F=.04802269879144705:F=-.026208212831796737:e[4]>45.50000000000001?F=-.03227476944664786:F=.05124575625622705:F=.00020506696916003137;let Q;e[116]>1e-35?e[9]>2.5000000000000004?e[9]>17.500000000000004?Q=-.03042091758483443:e[10]>14.500000000000002?Q=.09816619204768777:Q=.01332124067720947:e[8]>8.500000000000002?e[4]>15.500000000000002?Q=-.02381165060401718:Q=-.10950361804974783:Q=.03538211665111128:e[212]>1e-35?e[19]>1e-35?Q=-.09940014650006174:e[0]>2215.5000000000005?e[5]>5056.500000000001?e[3]>5.500000000000001?e[10]>25.500000000000004?Q=-.06371052144380579:Q=.0835500621252692:Q=-.10408255929333915:e[1]>74.50000000000001?Q=.13208968122712403:e[1]>64.50000000000001?Q=-.04778844603644965:e[8]>51.50000000000001?e[8]>201.50000000000003?e[8]>660.5000000000001?e[6]>4.500000000000001?e[9]>5.500000000000001?e[1]>29.500000000000004?e[0]>3830.5000000000005?Q=.09922816902423433:Q=.016366955328796718:Q=.1592412560903584:e[1]>39.50000000000001?Q=.05409467990258923:Q=-.08260633210459611:Q=-.06307205775247567:e[9]>36.50000000000001?Q=.040253940015648144:Q=.14202568969471283:Q=-.028761848341594044:Q=.08994073058773508:e[0]>807.5000000000001?Q=-.043427848826323195:Q=.04573516446846493:e[20]>1e-35?e[188]>1e-35?Q=-.0758877731600639:e[23]>1e-35?Q=.05913923322043199:e[8]>155.50000000000003?e[128]>1e-35?Q=.08124700978741987:Q=.013296063087086852:e[7]>5.500000000000001?Q=-.01640196088612987:Q=-.12685498840146067:Q=-.0004940792382459551;let de;e[1]>24.500000000000004?e[103]>1e-35?e[8]>61.50000000000001?e[17]>1e-35?de=-.05584993681929434:e[9]>27.500000000000004?e[0]>3916.5000000000005?de=.08513773825688947:de=-.1184664832315282:de=.05676963535893477:de=.14263843210340613:de=.0005795003292924202:e[18]>1e-35?e[0]>5453.500000000001?e[1]>11.500000000000002?de=-.10669720555606924:de=.029016613003137307:e[2]>46.50000000000001?e[10]>9.500000000000002?de=.0664744575868955:de=-.08469256188890871:de=-.026746678040592144:e[281]>1e-35?de=-.07408427239006925:e[145]>1e-35?e[4]>6.500000000000001?e[9]>16.500000000000004?e[4]>18.500000000000004?de=.012131807587207655:de=-.12776015795398743:de=.04320472481083551:de=.08390980661550446:e[10]>227.50000000000003?de=-.09771783809101153:e[10]>130.50000000000003?de=.11175201938704937:e[8]>779.5000000000001?e[5]>3325.5000000000005?e[128]>1e-35?de=-.07610698254064358:e[8]>902.5000000000001?de=-.03136381213599649:e[131]>1e-35?de=.0704821739127936:e[224]>1e-35?de=-.056961477774953785:e[10]>30.500000000000004?e[9]>43.50000000000001?de=.10431473040024908:e[8]>841.5000000000001?de=.07304745320500514:de=-.038011541882439825:de=-.01679746695007364:e[0]>3129.5000000000005?de=.05589952587431965:e[210]>1e-35?de=.06227198085800842:de=-.0011341890997947812:e[8]>740.5000000000001?de=.04817300084412584:de=-.000577001010789238;let ge;e[187]>1e-35?e[6]>12.500000000000002?e[10]>8.500000000000002?e[10]>16.500000000000004?e[8]>234.50000000000003?e[4]>43.50000000000001?e[0]>4476.500000000001?ge=-.10504730480402079:e[5]>3341.5000000000005?ge=.11087894671081754:ge=-.0406668834674614:ge=.03308382165616109:e[8]>104.50000000000001?ge=-.10431436764549162:ge=.0073928337244891455:e[4]>34.50000000000001?ge=-.10571751512748416:ge=-.006081128814142983:e[13]>1e-35?ge=.1299673566095023:e[4]>60.50000000000001?ge=-.06587492443829139:e[0]>2604.5000000000005?e[3]>19.500000000000004?ge=.04857126072645073:ge=-.03431365358104773:e[4]>16.500000000000004?ge=.04101865986596709:ge=.16480274980378218:e[10]>26.500000000000004?ge=.03673978504199255:e[10]>9.500000000000002?ge=-.10996402743800027:e[308]>1e-35?ge=.0553693735082498:ge=-.041600136235644125:e[306]>1e-35?e[8]>1156.5000000000002?e[4]>14.500000000000002?e[10]>21.500000000000004?ge=.010902983761213922:ge=.1325118659895645:ge=-.064362945508595:e[1]>66.50000000000001?ge=.033416767779331176:ge=-.054080316225040496:e[42]>1e-35?ge=-.07762364337810815:e[10]>1089.5000000000002?ge=-.08465599849125216:e[31]>1e-35?e[8]>30.500000000000004?ge=.012788520036013586:e[1]>32.50000000000001?e[1]>51.50000000000001?ge=.0220102041325908:ge=-.06516708740003069:ge=.012833498905748267:e[224]>1e-35?ge=-.007038418272997865:ge=.00037666304316290967;let De;e[84]>1e-35?e[9]>6.500000000000001?e[2]>43.50000000000001?De=.07554189644995735:De=-.052089349455904946:De=-.10148206848169845:e[113]>1e-35?De=-.06666678653225779:e[39]>1e-35?e[9]>3.5000000000000004?e[0]>3670.5000000000005?De=.07172653627995676:De=-.07602959317610998:De=-.08790686271287523:e[229]>1e-35?e[0]>2952.5000000000005?e[0]>3904.5000000000005?De=-.0399322883690891:De=.06523495517476098:De=-.10358715295743802:e[193]>1e-35?De=-.05551414334329124:e[134]>1e-35?e[11]>1e-35?e[2]>13.500000000000002?e[10]>1.5000000000000002?De=.015928764772252406:De=.1341513061552287:De=-.04975001987586173:e[10]>2.5000000000000004?e[3]>5.500000000000001?e[9]>2.5000000000000004?e[8]>310.50000000000006?De=-.033592997607280156:De=-.12432458028446665:e[1]>32.50000000000001?e[217]>1e-35?De=-.08402551858097379:De=.017401984506038796:e[1]>25.500000000000004?De=.13337205393591278:De=-.01160208350090984:De=.06708317942315471:e[8]>227.50000000000003?De=-.08486943882418681:De=-.013970104864235007:e[8]>4968.500000000001?e[1]>31.500000000000004?e[9]>4.500000000000001?De=-.10496268177586783:De=-.020921489532370493:De=.02629915927247642:e[7]>20.500000000000004?e[8]>251.50000000000003?e[115]>1e-35?De=.11639296062157028:De=-.004275784356569115:e[32]>1e-35?De=-.07297384970166025:De=.006026841626381599:De=.002034611134960428;let Be;e[248]>1e-35?Be=.06091438745093315:e[0]>384.50000000000006?e[204]>1e-35?e[1]>62.50000000000001?Be=-.06455513326540585:e[1]>29.500000000000004?Be=.07718474591552532:e[4]>7.500000000000001?Be=.040139336931404826:Be=-.09685734690563386:Be=.00015327283570347363:e[9]>88.50000000000001?Be=.10079017954199324:e[1]>47.50000000000001?e[2]>20.500000000000004?e[2]>27.500000000000004?Be=-.04077257804338707:Be=.0739963982640615:e[9]>1.5000000000000002?e[17]>1e-35?Be=.03778141591008941:Be=-.06459919920634845:Be=-.11193190957880604:e[7]>6.500000000000001?e[11]>1e-35?e[18]>1e-35?Be=.14063930759326346:e[0]>179.50000000000003?Be=.07287482250668585:e[8]>1180.5000000000002?Be=-.14419393112726253:e[10]>28.500000000000004?Be=-.07993142770099469:e[17]>1e-35?Be=-.04702595410391655:e[7]>21.500000000000004?e[2]>26.500000000000004?Be=.05527969663610186:Be=-.10824385941441346:e[3]>11.500000000000002?Be=.12358502961047915:Be=-.017509147119622873:e[0]>74.50000000000001?Be=-.014907705458730486:e[8]>95.50000000000001?Be=-.02225118168342062:Be=-.1222374623708485:e[8]>1.5000000000000002?e[8]>950.5000000000001?Be=.06946188930925638:e[3]>6.500000000000001?e[10]>2.5000000000000004?e[19]>1e-35?Be=.04962819555610421:Be=-.07213577821855309:Be=.09139529824708481:e[19]>1e-35?Be=.013439401088345224:Be=-.049274647207292056:Be=.10531673719686951;let We;e[40]>1e-35?e[0]>1937.5000000000002?We=-.06421671152073961:We=.04235421241226177:e[294]>1e-35?e[10]>50.50000000000001?We=-.09100102290316286:e[0]>3030.5000000000005?e[0]>4177.500000000001?We=-.03520420769287065:e[8]>1085.5000000000002?We=-.019817352506127633:We=.11444439424520964:We=-.06854631664538167:e[120]>1e-35?e[4]>18.500000000000004?We=-.010490117519863269:We=.08104430117757461:e[121]>1e-35?e[243]>1e-35?We=.16408304891242204:e[217]>1e-35?e[0]>4449.500000000001?We=.06619344145920268:e[0]>4091.5000000000005?We=-.08813353450871053:e[0]>3519.5000000000005?e[8]>668.5000000000001?We=.10016091391222309:We=-.017407607199427293:e[8]>501.50000000000006?e[10]>16.500000000000004?We=-.019511460451434884:We=-.11643672465055221:e[2]>18.500000000000004?We=.07848228087333317:e[8]>55.50000000000001?We=.032583027899956235:We=-.11209832692153521:e[11]>1e-35?We=.027482174104412567:e[10]>1.5000000000000002?e[6]>26.500000000000004?e[4]>19.500000000000004?e[9]>31.500000000000004?We=-.09996887746328006:e[9]>2.5000000000000004?We=.02157682011863397:We=-.05247727848991843:We=.07409150201483244:e[1]>38.50000000000001?We=-.11378466075449625:e[224]>1e-35?We=-.10741749127732923:e[1]>26.500000000000004?We=.07343136534146562:We=-.07013573628594773:e[25]>1e-35?We=-.04626669734164317:We=.05518333197956482:We=.00032434010867555516;let He;e[183]>1e-35?e[10]>1.5000000000000002?e[17]>1e-35?He=.026313251010808853:He=-.08997339150292381:He=.025062509535227952:e[227]>1e-35?e[1]>6.500000000000001?e[2]>9.500000000000002?e[210]>1e-35?He=.08071107515789745:e[23]>1e-35?e[1]>75.50000000000001?He=.0905155504503746:e[8]>1049.5000000000002?He=-.062312558183394054:e[8]>719.5000000000001?He=.09583836191410239:e[0]>3719.5000000000005?He=-.0778097309430818:He=.04012012419054895:e[4]>12.500000000000002?e[8]>1496.5000000000002?e[10]>42.50000000000001?He=-.12920865648544927:e[0]>2699.5000000000005?He=-.07086587879041864:He=.022614182502461846:e[4]>15.500000000000002?e[8]>55.50000000000001?e[1]>60.50000000000001?e[8]>652.5000000000001?He=-.11377786322600797:He=-.009486325820117998:e[1]>55.50000000000001?He=.12430248795958142:e[0]>2952.5000000000005?e[0]>4331.500000000001?e[1]>38.50000000000001?He=-.07938291201004219:e[2]>36.50000000000001?He=.01520046732530246:He=.13649854049662832:He=-.07145015938528873:e[8]>407.50000000000006?He=-.00350257360822279:He=.11332047082193297:He=-.10060624458629897:He=.05429496612497562:e[8]>1446.5000000000002?He=.006073419197482838:He=-.08718676350883998:He=-.11532497988252638:He=.10766270463068293:e[34]>1e-35?He=-.06345912440611544:e[131]>1e-35?e[9]>1.5000000000000002?He=-.0004109812623829506:He=.021601073497455662:He=-7343540098965853e-20;let Ae;e[298]>1e-35?e[9]>12.500000000000002?e[133]>1e-35?Ae=-.06107663265515864:e[9]>70.50000000000001?e[10]>37.50000000000001?Ae=.05995640200798119:e[0]>3443.5000000000005?Ae=-.14698883458733583:Ae=-.030039164579240187:e[189]>1e-35?Ae=-.06086763220538141:e[1]>86.50000000000001?Ae=-.05096727866142538:e[4]>64.50000000000001?Ae=.11240554253834577:e[4]>45.50000000000001?Ae=-.030279760168394117:e[6]>45.50000000000001?Ae=.10161088917815142:e[10]>77.50000000000001?Ae=-.0792333078055653:e[7]>23.500000000000004?e[0]>2882.5000000000005?Ae=-.06672020005240323:Ae=.08831457502630258:e[8]>2592.5000000000005?Ae=-.052617701047376654:e[10]>29.500000000000004?Ae=.08499327690298047:e[2]>12.500000000000002?e[9]>41.50000000000001?Ae=.12880460816709416:e[9]>25.500000000000004?e[4]>11.500000000000002?Ae=-.064099222705728:Ae=.044332487521538365:e[0]>2882.5000000000005?Ae=.031099546885005065:Ae=.12938467051623853:e[0]>4221.500000000001?Ae=-.0928676413498701:e[9]>30.500000000000004?Ae=-.05781824812803708:Ae=.07561268901778094:e[8]>711.5000000000001?e[2]>22.500000000000004?Ae=-.06648105454098469:Ae=.05985487552383097:Ae=-.13070190291919334:e[116]>1e-35?e[10]>38.50000000000001?Ae=.05282385499619401:e[1]>66.50000000000001?Ae=.048802929108006314:e[2]>4.500000000000001?e[0]>4593.500000000001?Ae=.027885690791379255:Ae=-.08407126408362446:Ae=.014432924125571093:Ae=-9903435845205118e-20;let H;e[76]>1e-35?H=-.06307875292162934:e[21]>1e-35?e[7]>10.500000000000002?e[10]>4.500000000000001?e[8]>944.5000000000001?e[0]>3655.5000000000005?H=.013633653464240465:H=-.10164319411983509:H=-.1228424374328996:e[1]>26.500000000000004?e[2]>28.500000000000004?H=.00632864847804078:H=-.08393000368134668:H=.07870508617440916:e[284]>1e-35?H=.1092302727710421:H=-.0025505047582483234:e[248]>1e-35?H=.07101822393621864:e[274]>1e-35?H=-.06621099406425579:e[1]>26.500000000000004?e[1]>28.500000000000004?H=.0003077044909372931:e[10]>2.5000000000000004?e[0]>3770.5000000000005?H=.025081789181021243:H=-.014813325803582618:e[9]>33.50000000000001?H=-.033466921233840194:e[3]>12.500000000000002?e[23]>1e-35?H=.11926990418060353:H=.01852125513565268:H=.0975367595927343:e[5]>3325.5000000000005?e[8]>892.5000000000001?e[133]>1e-35?H=-.1178464984373743:e[283]>1e-35?H=.043370859226927405:e[5]>4320.500000000001?H=-.01103141226366587:e[8]>1104.5000000000002?H=-.023053423988095886:H=-.0734238953804657:e[6]>18.500000000000004?e[8]>85.50000000000001?H=.000579145585864887:H=.03389152834202143:e[128]>1e-35?H=-.14527722052568462:e[210]>1e-35?H=-.08915971541902741:e[7]>9.500000000000002?H=-.03307314577076116:e[18]>1e-35?H=-.05521712302023565:H=.009315605032770029:H=.0036332551852289933;let J;e[0]>689.5000000000001?e[5]>768.5000000000001?e[20]>1e-35?e[5]>4368.500000000001?J=-.07583539600416284:e[188]>1e-35?J=-.07042659515500142:e[23]>1e-35?e[0]>3807.5000000000005?J=-.011038193049597113:J=.08154028164397753:e[1]>85.50000000000001?J=.10259361975201933:J=.011640408330521594:J=-.00023319159023748508:e[92]>1e-35?J=.13771692859530546:J=.022860029819654806:e[1]>22.500000000000004?e[1]>24.500000000000004?e[2]>96.50000000000001?J=.09967230141007705:e[30]>1e-35?J=-.08888529037551285:J=-.008615931385397808:e[10]>5.500000000000001?e[4]>36.50000000000001?J=.08284665960761373:J=-.029292565021289504:e[7]>7.500000000000001?J=-.09945093355204493:J=-.008381393701708593:e[20]>1e-35?J=-.04218678460370465:e[10]>6.500000000000001?e[9]>2.5000000000000004?e[1]>13.500000000000002?e[8]>143.50000000000003?e[4]>7.500000000000001?e[2]>36.50000000000001?J=.07585582641438211:e[8]>284.50000000000006?J=-.029387993239886723:J=.07716738177321587:e[1]>18.500000000000004?J=.026745348497993746:J=.1427429617069753:e[9]>16.500000000000004?e[9]>33.50000000000001?J=.02337306890530338:J=-.10390355904767366:J=.07390521199638532:J=-.06788247515155237:J=-.04201446383470994:e[2]>25.500000000000004?e[2]>29.500000000000004?e[8]>227.50000000000003?J=-.06360325615644084:J=.04342192339836601:J=-.10598779152030145:J=.05253384605768211;let ae;e[3]>7.500000000000001?e[157]>1e-35?ae=-.07514182877923786:ae=.000636205502279271:e[129]>1e-35?e[0]>2904.5000000000005?e[0]>4004.5000000000005?ae=.028692053800951845:ae=.14081686716133598:ae=-.03316566526940354:e[186]>1e-35?e[0]>2653.5000000000005?ae=.0037139292567243084:ae=.12662311031652707:e[107]>1e-35?e[0]>612.5000000000001?ae=.01202688580305612:ae=.0993509141454483:e[203]>1e-35?e[1]>77.50000000000001?ae=.043935495082738626:ae=-.05639305759669704:e[247]>1e-35?ae=-.06770766046891649:e[105]>1e-35?e[19]>1e-35?ae=.10331836202616368:ae=.0006926658459781341:e[96]>1e-35?ae=.05361846065599475:e[127]>1e-35?e[0]>2723.5000000000005?e[1]>54.50000000000001?ae=-.0741403257305367:ae=.022900127535540854:e[7]>3.5000000000000004?ae=.038110741403836294:ae=.14618649985842758:e[5]>3921.5000000000005?e[1]>110.50000000000001?ae=-.09552842289807008:e[1]>27.500000000000004?ae=.012505935885798007:ae=-.020509603428689526:e[282]>1e-35?e[9]>45.50000000000001?e[6]>5.500000000000001?ae=-.1046104767723845:ae=.031388606992301074:e[8]>114.50000000000001?e[9]>17.500000000000004?e[9]>22.500000000000004?e[1]>32.50000000000001?ae=.023466328488582572:ae=.11730925774586994:ae=-.04771965631104874:ae=.17059689880751394:ae=-.08181850955999449:e[26]>1e-35?ae=-.12727482696678769:ae=-.014343123272734182;let pe;e[147]>1e-35?e[1]>53.50000000000001?pe=-.0993064321015924:e[0]>2604.5000000000005?e[0]>3629.5000000000005?pe=-.02763546051134888:pe=.06423344777499343:pe=-.064606430904295:e[302]>1e-35?e[10]>2.5000000000000004?e[10]>47.50000000000001?pe=.049825139823021586:e[7]>22.500000000000004?pe=-.01131680751379858:e[0]>2579.5000000000005?pe=-.10673674485369694:pe=-.015387212937189957:pe=.04347325151148724:e[179]>1e-35?pe=-.05788885608624092:e[84]>1e-35?e[9]>6.500000000000001?e[2]>43.50000000000001?pe=.0650355590939066:pe=-.0473332870892226:pe=-.09699315983340703:e[288]>1e-35?e[88]>1e-35?pe=.11139543329789044:e[126]>1e-35?pe=-.09726928633696198:e[8]>149.50000000000003?e[9]>46.50000000000001?e[4]>1.5000000000000002?e[8]>1861.5000000000002?pe=.06370903833231022:e[10]>29.500000000000004?pe=.03415223859607161:e[10]>3.5000000000000004?pe=-.07415518117873297:pe=-.0014119203473324082:pe=.12617652343819508:e[9]>41.50000000000001?pe=-.10311145857176976:e[8]>2757.5000000000005?pe=-.08106484219011428:e[7]>71.50000000000001?pe=-.09783384432091176:e[1]>88.50000000000001?pe=.06249739709782831:e[3]>9.500000000000002?e[5]>1601.5000000000002?pe=-.008884084501608536:pe=.061339437777743616:pe=-.042490992675121846:e[2]>6.500000000000001?e[3]>10.500000000000002?pe=.01526664064166223:pe=.13534828515415498:pe=-.06985484465894776:pe=.0005758961943178744;let ye;e[86]>1e-35?e[1]>23.500000000000004?e[1]>29.500000000000004?e[4]>16.500000000000004?e[2]>31.500000000000004?ye=-.029152732370514342:ye=.07173628916139178:e[1]>36.50000000000001?ye=-.08859111297255318:ye=.0018030071815630785:ye=.13652461563759322:ye=-.07550137680349367:e[10]>52.50000000000001?e[49]>1e-35?ye=-.07145140450454163:e[21]>1e-35?ye=-.07422841663493233:ye=.006289319702780104:e[10]>40.50000000000001?e[9]>59.50000000000001?e[19]>1e-35?e[13]>1e-35?ye=.11864240653986852:e[3]>33.50000000000001?ye=-.08821209591953476:ye=.05706392280054726:ye=-.03600088051578915:e[18]>1e-35?e[1]>24.500000000000004?ye=.01953613016837112:ye=-.059781039130025006:e[148]>1e-35?ye=.052668447861325476:e[3]>30.500000000000004?e[9]>49.50000000000001?ye=.07207826841738371:e[202]>1e-35?ye=.08163917539410503:ye=-.01319846363832958:e[9]>35.50000000000001?e[5]>4134.500000000001?e[10]>44.50000000000001?ye=-.06858280496900336:ye=-.1781828899516648:ye=-.04024620133969553:e[9]>10.500000000000002?e[1]>22.500000000000004?e[1]>37.50000000000001?ye=.018232649414147116:ye=-.04419781124222661:ye=.05145485182416554:e[1]>23.500000000000004?e[0]>655.5000000000001?e[5]>4901.500000000001?e[10]>45.50000000000001?ye=.11452368095776105:ye=-.036496437259924026:ye=-.040445338739465486:ye=.0816572651001145:ye=-.08968914517368663:ye=.0002826343082585516;let Ce;e[189]>1e-35?e[0]>5269.500000000001?Ce=-.08839493050459957:e[10]>85.50000000000001?Ce=.10046908365702462:e[8]>2592.5000000000005?Ce=-.09632233975926387:e[8]>2000.5000000000002?Ce=.10282992953871627:e[8]>1266.5000000000002?e[9]>34.50000000000001?Ce=.035504970430426296:e[1]>31.500000000000004?Ce=-.1133764813142531:Ce=-.01138280942244812:e[8]>1125.5000000000002?Ce=.09800530246229806:Ce=.016170419267589393:e[218]>1e-35?e[9]>99.50000000000001?e[9]>101.50000000000001?e[9]>124.50000000000001?Ce=.07316772160107896:Ce=-.059095014819051765:Ce=.17859437315769733:e[2]>1.5000000000000002?e[9]>86.50000000000001?Ce=-.09150209066166894:e[8]>3084.0000000000005?Ce=-.05443972593168094:e[1]>65.50000000000001?e[10]>11.500000000000002?e[9]>33.50000000000001?Ce=-.04449234460408263:Ce=.05568837973347338:Ce=-.12362324875024472:e[1]>41.50000000000001?e[10]>12.500000000000002?e[8]>1336.5000000000002?Ce=.12741077850267066:Ce=.007372371864985329:e[2]>39.50000000000001?Ce=.02295917234617787:Ce=.14966532083907075:e[1]>39.50000000000001?Ce=-.06685557815340279:e[10]>22.500000000000004?e[2]>52.50000000000001?Ce=-.02511861881285652:e[1]>27.500000000000004?Ce=.08683660011672288:Ce=.02956214835267301:e[9]>15.500000000000002?Ce=-.016538805462996232:Ce=.04352738094981517:Ce=-.05561856645643868:e[9]>170.50000000000003?Ce=-.07996752635874248:e[179]>1e-35?Ce=-.09065975936933919:Ce=-.00042817975060427177;let ke;e[39]>1e-35?e[4]>25.500000000000004?ke=.03443173196222934:ke=-.06554248341270724:e[32]>1e-35?e[8]>90.50000000000001?e[4]>67.50000000000001?e[4]>86.50000000000001?ke=-.0013415395759330318:ke=.12950978489563347:e[1]>22.500000000000004?e[10]>19.500000000000004?e[4]>30.500000000000004?e[9]>41.50000000000001?ke=.002297618040307216:ke=-.12522800128774994:e[4]>8.500000000000002?e[8]>1075.5000000000002?ke=-.015297257305397608:ke=.09651828834062742:ke=-.06636003334371929:e[10]>11.500000000000002?ke=.17631616138309397:e[0]>1639.5000000000002?ke=3804386478092585e-20:ke=-.09099296398683193:ke=-.06874415876172972:e[0]>2151.5000000000005?ke=-.1311264883406766:ke=.00809052010141122:e[253]>1e-35?ke=-.06338558211939296:e[178]>1e-35?e[2]>25.500000000000004?e[2]>30.500000000000004?e[0]>2151.5000000000005?e[10]>10.500000000000002?e[0]>3615.5000000000005?ke=.045038497754638605:ke=-.07770167665661752:ke=-.08596294280650517:ke=.08538655727027213:ke=.09829076418590559:e[1]>39.50000000000001?e[9]>1.5000000000000002?ke=.054627956617973275:e[1]>61.50000000000001?ke=-.11994465088415499:e[4]>8.500000000000002?ke=.06676200239406452:ke=-.027503148069376867:e[8]>676.5000000000001?ke=-.10363964928357075:e[4]>8.500000000000002?ke=-.07589816227175682:ke=.034664436544646814:e[1]>159.50000000000003?e[6]>25.500000000000004?ke=.009093153189012338:ke=-.06119765876605404:ke=.0004668642103528348;let Xe;e[223]>1e-35?e[1]>31.500000000000004?e[8]>711.5000000000001?Xe=-.10100794502567233:Xe=.08000205636470442:Xe=-.11945419826856896:e[113]>1e-35?Xe=-.06105445938688056:e[167]>1e-35?e[0]>3928.5000000000005?Xe=.1224302423880318:Xe=-.01875566982911468:e[222]>1e-35?e[1]>8.500000000000002?e[1]>24.500000000000004?e[4]>3.5000000000000004?e[0]>725.5000000000001?e[0]>1682.5000000000002?e[0]>2860.5000000000005?Xe=.0019277012166729114:e[1]>28.500000000000004?Xe=-.054445821715687494:Xe=.045645722976713245:e[30]>1e-35?Xe=.13402660155331655:Xe=.008921176001777645:Xe=-.058547426505451076:Xe=.08841202222426625:e[1]>22.500000000000004?e[10]>9.500000000000002?Xe=-.13526418192218206:Xe=-.03266013432583145:e[1]>20.500000000000004?e[4]>27.500000000000004?Xe=.0007263224246135398:Xe=.12450043268647056:e[1]>17.500000000000004?e[9]>1.5000000000000002?Xe=-.11575657261278308:Xe=-.01530376565862095:e[4]>13.500000000000002?e[4]>22.500000000000004?Xe=-.01995960178292952:Xe=.11216586049153021:Xe=-.10050961087149474:Xe=.08848063368485726:e[30]>1e-35?e[224]>1e-35?e[1]>52.50000000000001?Xe=.10303451081526649:Xe=-.01375730267020699:e[1]>28.500000000000004?e[2]>20.500000000000004?Xe=-.043799548968209395:Xe=-.12451444314954115:e[4]>12.500000000000002?Xe=-.03838117361958468:Xe=.06504990789767144:e[57]>1e-35?Xe=.06890006938293915:Xe=.0003914274695562949;let ft;e[53]>1e-35?e[4]>11.500000000000002?e[8]>617.5000000000001?e[2]>41.50000000000001?ft=.004271749009686975:ft=-.10523878297127605:ft=.04633982158107851:ft=-.10349713975483057:e[183]>1e-35?e[15]>1e-35?ft=-.08655730561951676:e[8]>919.5000000000001?ft=-.0676453705610183:e[7]>18.500000000000004?ft=-.027787974193650575:ft=.08012784576991301:e[227]>1e-35?e[1]>6.500000000000001?e[3]>8.500000000000002?e[210]>1e-35?ft=.07185850683316512:e[8]>201.50000000000003?e[8]>348.50000000000006?e[23]>1e-35?e[8]>1049.5000000000002?ft=-.03473877164537313:e[8]>719.5000000000001?ft=.10471053866934404:ft=.008236107678382981:e[4]>57.50000000000001?ft=.09412219478825269:e[10]>66.50000000000001?ft=-.13884338641811986:e[10]>19.500000000000004?e[10]>22.500000000000004?e[0]>2490.5000000000005?ft=-.040681323751002293:ft=.06374650297561021:ft=.12884615227401788:e[10]>5.500000000000001?ft=-.0887517295786972:e[8]>597.5000000000001?e[18]>1e-35?ft=-.05474068967150784:ft=.03744700650806603:ft=-.07846396348680855:e[1]>42.50000000000001?ft=.018972315810821302:ft=.10953621007604744:e[5]>4439.500000000001?ft=.010999776705494586:e[1]>40.50000000000001?ft=-.12394200059775967:e[10]>2.5000000000000004?ft=.013528093962849453:ft=-.09222088417048682:ft=-.12662967149701485:ft=.09327296405849603:e[3]>99.50000000000001?ft=-.013581954439986752:ft=.0005526498251862075;let we;e[187]>1e-35?e[243]>1e-35?we=-.08392792551692502:e[10]>68.50000000000001?we=.07871769409454053:e[10]>8.500000000000002?e[10]>16.500000000000004?e[2]>17.500000000000004?e[3]>31.500000000000004?e[91]>1e-35?e[10]>21.500000000000004?e[10]>33.50000000000001?e[10]>48.50000000000001?we=-.0825306209711224:we=.049559996084532945:we=-.1064938580886302:we=.03353240732240275:we=.045985370399163464:e[1]>42.50000000000001?e[4]>20.500000000000004?we=.16966001471529374:e[1]>57.50000000000001?we=-.005772777673676247:we=.09383677041525058:e[8]>747.5000000000001?we=.054068175469351235:we=-.049968216310277036:e[8]>753.5000000000001?we=-.0679383555784074:e[4]>8.500000000000002?we=-.059757341189735386:we=.05701083682780414:we=-.052497281448921164:e[6]>12.500000000000002?e[8]>969.5000000000001?e[4]>23.500000000000004?we=.05820296128730006:we=-.1063042385102475:e[1]>49.50000000000001?e[8]>302.50000000000006?we=.15340611616954566:we=.04385036188666874:e[0]>4449.500000000001?we=-.02110897605541555:e[1]>24.500000000000004?e[2]>17.500000000000004?we=.004840354641006495:we=.09967827580276283:we=.11605363537391578:e[9]>19.500000000000004?we=-.0735831692725717:we=.019973331823355176:e[306]>1e-35?e[149]>1e-35?we=-.08968948874343531:e[8]>1094.5000000000002?e[10]>15.500000000000002?we=-.02442182361342386:we=.10334853004243093:we=-.030431948680167104:we=-956078595250818e-19;let Lt;e[294]>1e-35?e[1]>26.500000000000004?e[0]>4078.5000000000005?Lt=-.040232505718244854:e[0]>3030.5000000000005?Lt=.0634109586813073:Lt=-.04043617034245621:Lt=-.06385323610738443:e[120]>1e-35?e[4]>18.500000000000004?Lt=-.007859096946435131:Lt=.07282728486115758:e[229]>1e-35?e[0]>2952.5000000000005?e[17]>1e-35?Lt=.05515771679628051:Lt=-.04214471312668263:Lt=-.09589322222261765:e[193]>1e-35?Lt=-.05056345906812831:e[121]>1e-35?e[243]>1e-35?Lt=.14857706653119385:e[4]>9.500000000000002?e[1]>26.500000000000004?e[2]>59.50000000000001?Lt=-.08152604001147906:e[11]>1e-35?Lt=.09132936522356462:e[15]>1e-35?e[4]>23.500000000000004?Lt=.13100930780107503:e[10]>25.500000000000004?Lt=.05921074710011526:Lt=-.07226005736695183:e[0]>3304.5000000000005?e[0]>3707.5000000000005?e[0]>4053.5000000000005?Lt=.0009447118243153454:Lt=-.09820565036865991:Lt=.057146909749745546:e[0]>2115.5000000000005?Lt=-.12331216726611678:Lt=.007281983677694285:e[2]>56.50000000000001?Lt=.012310154675612615:Lt=-.08873665774670461:e[6]>25.500000000000004?Lt=.134708740821879:e[9]>5.500000000000001?Lt=-.0805901581148979:e[224]>1e-35?Lt=-.063684477784257:e[7]>2.5000000000000004?e[19]>1e-35?Lt=.10842593386554122:e[2]>13.500000000000002?Lt=.06466798320378395:Lt=-.08578130788886655:Lt=-.03590892078300114:Lt=.0003499894043880708;let St;e[134]>1e-35?e[6]>50.50000000000001?e[0]>3601.5000000000005?St=.10839808814624702:St=-.028043875308180352:e[7]>30.500000000000004?e[8]>932.5000000000001?St=-.007478368069393829:St=-.09066751344326617:e[0]>3588.5000000000005?e[5]>4748.500000000001?St=.04035247751736232:e[0]>4255.500000000001?St=-.1310865624507367:e[0]>4004.5000000000005?St=.06647367311982634:St=-.08339693352955757:e[4]>10.500000000000002?e[1]>34.50000000000001?St=-.011618902907510411:St=.1114646660406691:e[10]>2.5000000000000004?e[0]>3072.5000000000005?St=.09356028223727986:St=-.03811765057032162:St=-.09456215497345526:e[280]>1e-35?e[7]>70.50000000000001?St=.10322956436499003:e[2]>22.500000000000004?e[1]>83.50000000000001?St=.1146142460964847:e[1]>62.50000000000001?St=-.09679869865322362:e[9]>71.50000000000001?St=-.07377580769927583:e[4]>19.500000000000004?e[0]>4571.500000000001?St=-.039046426387852974:St=.04558778688367152:St=.11220830937352602:e[7]>5.500000000000001?e[9]>17.500000000000004?e[8]>1067.5000000000002?St=.03261697816211156:e[15]>1e-35?St=.02586252542264368:e[2]>14.500000000000002?St=-.016420452667484604:St=-.1011799626006976:St=-.13787471318963773:e[6]>4.500000000000001?e[8]>427.50000000000006?e[10]>36.50000000000001?St=.010193588102560583:St=.11748729525930773:St=-.04468162226743652:St=-.028365274393617957:e[71]>1e-35?St=.05115139346588793:St=-.0001510425316936658;let it;e[298]>1e-35?e[8]>81.50000000000001?e[8]>119.50000000000001?e[4]>64.50000000000001?it=.09072192054181037:e[9]>72.50000000000001?e[8]>1094.5000000000002?it=.020637047900190317:it=-.1017300802134141:e[1]>23.500000000000004?e[9]>12.500000000000002?e[0]>2815.5000000000005?e[0]>3183.5000000000005?e[3]>23.500000000000004?e[3]>45.50000000000001?e[4]>48.50000000000001?it=-.04632587527094407:it=.08603684785510396:it=-.05101401015448496:it=.025466432054358498:it=-.07897811963329214:e[6]>13.500000000000002?e[10]>26.500000000000004?it=.020385355430046367:it=.12032592051335252:it=-.012387370292173013:e[2]>23.500000000000004?it=-.12568545484492677:it=-.022261190943521976:e[8]>634.5000000000001?e[8]>857.5000000000001?it=.043528764484784536:it=.14352071657196003:it=-.009332833816977268:it=.11186782227735846:it=-.0737365712425554:e[136]>1e-35?e[0]>1937.5000000000002?it=-.05649104643152564:it=.03884200719305747:e[42]>1e-35?it=-.07191700385792335:e[116]>1e-35?e[9]>2.5000000000000004?e[9]>17.500000000000004?it=-.04103416502526736:it=.04881823954656287:e[4]>15.500000000000002?it=.009342724662897898:e[0]>3969.5000000000005?it=-.025637309961309498:it=-.12574492012987865:e[212]>1e-35?e[19]>1e-35?it=-.08185697075265091:e[0]>2215.5000000000005?it=.030063975892297354:e[0]>807.5000000000001?it=-.03924325550733229:it=.0415330999189793:it=-.00024374664461674863;let dt;e[3]>7.500000000000001?dt=.0005117490419655908:e[129]>1e-35?e[0]>2904.5000000000005?e[0]>4004.5000000000005?dt=.025798416259686565:dt=.13251610353146012:dt=-.029900559552677654:e[1]>81.50000000000001?e[1]>110.50000000000001?e[0]>4242.500000000001?dt=-.11098564237775424:dt=25960925309712775e-21:e[0]>4177.500000000001?e[9]>35.50000000000001?dt=.15347826616466054:e[3]>4.500000000000001?dt=.10379320730958941:dt=-.008896303020010654:e[0]>3415.5000000000005?e[0]>3830.5000000000005?dt=.03159791088468647:dt=-.10612873364104258:dt=.05059856107348746:e[133]>1e-35?e[2]>5.500000000000001?dt=-.02335760775001469:dt=-.1379386577903324:e[1]>62.50000000000001?e[3]>2.5000000000000004?dt=-.011164334474672973:dt=-.06594044410501655:e[207]>1e-35?dt=-.1014214372326535:e[8]>3.5000000000000004?e[107]>1e-35?e[2]>6.500000000000001?dt=-.01725821503981916:dt=.05594086838700241:e[203]>1e-35?e[1]>44.50000000000001?e[1]>51.50000000000001?dt=-.04226531631656534:dt=-.14409800530171432:dt=-.03245576341206398:e[8]>4214.500000000001?dt=.0895409165534886:e[247]>1e-35?dt=-.06506383629143335:e[118]>1e-35?dt=-.07214270121257443:e[8]>546.5000000000001?dt=-.004385020865473831:dt=.009321812545248529:e[0]>1639.5000000000002?e[13]>1e-35?dt=.046278501133958524:dt=-.030835570926968044:e[0]>493.50000000000006?dt=-.12794504651610425:dt=.009415039807550776;let Dt;e[304]>1e-35?Dt=-.04717777269217453:e[76]>1e-35?Dt=-.05813439142128324:e[1]>59.50000000000001?e[0]>350.50000000000006?e[53]>1e-35?Dt=-.09648224457374217:e[132]>1e-35?Dt=.07089308107910267:e[0]>2248.5000000000005?e[5]>2525.5000000000005?e[9]>1.5000000000000002?e[114]>1e-35?Dt=-.08595213071749083:e[9]>14.500000000000002?e[9]>33.50000000000001?e[285]>1e-35?Dt=.10838431695638147:e[230]>1e-35?Dt=.06458713915750626:e[0]>3219.5000000000005?e[3]>23.500000000000004?e[9]>69.50000000000001?Dt=.050071316251979:Dt=-.006356941111525215:e[6]>8.500000000000002?Dt=-.0384814076434817:e[1]>73.50000000000001?e[0]>3746.5000000000005?Dt=.10217402850540398:Dt=-.048840949025349197:Dt=-.03668313197909846:e[7]>39.50000000000001?Dt=-.0562642841496003:e[10]>2.5000000000000004?Dt=.09749777369987417:Dt=-.04848223121417616:e[0]>5453.500000000001?Dt=.08316648226133942:Dt=-.0261979698267618:e[212]>1e-35?Dt=.09565573198318654:e[5]>4814.500000000001?e[8]>963.5000000000001?e[8]>1514.5000000000002?Dt=.04837009746506856:Dt=-.09184360565631328:Dt=.0032411047845613606:e[0]>4733.500000000001?Dt=.0977378556864798:Dt=.010776545559325588:Dt=-.012483310473120218:Dt=-.049284121449103935:Dt=.011962641341789565:e[1]>67.50000000000001?e[1]>77.50000000000001?Dt=-.08380361910948711:Dt=.07375088778585813:Dt=-.1084864186071348:Dt=.0007819503469605476;let jt;e[7]>17.500000000000004?e[115]>1e-35?jt=.08741852531696623:e[167]>1e-35?jt=.10078975495600809:jt=-.0018324767784017562:e[290]>1e-35?jt=-.0850089851255888:e[74]>1e-35?e[10]>16.500000000000004?jt=.1379733311640402:jt=-.0038500648529631075:e[6]>29.500000000000004?e[8]>876.5000000000001?e[0]>3129.5000000000005?e[9]>5.500000000000001?e[8]>1765.5000000000002?jt=-.09360083033774169:jt=.061471353193188374:e[10]>11.500000000000002?e[10]>31.500000000000004?jt=-.015599362579530679:e[0]>4593.500000000001?jt=-.12029549262691491:jt=-.018917032256501397:jt=.04632831686576592:jt=.06892347785444271:e[4]>8.500000000000002?e[10]>33.50000000000001?jt=-.05894883236412263:jt=.05213944998315824:jt=.12621779223564986:e[243]>1e-35?e[6]>16.500000000000004?e[0]>4141.500000000001?e[0]>5850.500000000001?jt=.07577412405680808:jt=-.053144737214742235:e[1]>29.500000000000004?e[9]>16.500000000000004?jt=-.0277076900736147:e[1]>65.50000000000001?jt=-.023587471585763506:jt=.10184896592433082:jt=-.057699270527916825:jt=-.041191811945739454:e[114]>1e-35?e[2]>23.500000000000004?jt=.06566902102799584:e[10]>25.500000000000004?jt=-.07033633753181047:jt=-.01599120398351932:e[242]>1e-35?e[0]>2402.5000000000005?jt=-.08108035861059537:jt=.04184690010531078:e[35]>1e-35?e[0]>2904.5000000000005?jt=-.12431182772561139:jt=.01886235886984271:jt=.0025579594894418116;let Gt;e[8]>2915.5000000000005?e[101]>1e-35?Gt=.08648323956719083:e[0]>93.50000000000001?e[196]>1e-35?Gt=-.09509320772734361:e[4]>1.5000000000000002?e[5]>1106.5000000000002?e[5]>1191.5000000000002?e[283]>1e-35?Gt=-.11268313808648661:e[10]>12.500000000000002?e[131]>1e-35?Gt=.0687641681341721:e[10]>102.50000000000001?Gt=-.09667920080214842:e[4]>15.500000000000002?e[8]>2992.5000000000005?e[1]>24.500000000000004?e[1]>71.50000000000001?Gt=-.06762578396473291:e[10]>65.50000000000001?Gt=-.05226727783610509:e[282]>1e-35?Gt=.09911438410640917:e[19]>1e-35?Gt=.06915156336429933:Gt=-.006565637886508241:Gt=-.08344300251849307:Gt=-.0928863907927501:e[1]>60.50000000000001?e[2]>17.500000000000004?Gt=.19428463865406298:Gt=.016073883020956765:e[13]>1e-35?Gt=.06864077097923665:Gt=-.01388867527034731:e[0]>1847.5000000000002?Gt=.004655280608161356:e[1]>40.50000000000001?Gt=.031406054057765996:Gt=.12798062439212832:Gt=.09859670536264255:e[10]>2.5000000000000004?e[9]>68.50000000000001?Gt=.08821759640665892:e[9]>32.50000000000001?e[8]>3960.0000000000005?e[1]>31.500000000000004?Gt=-.0706095614785733:Gt=.04227164041372561:Gt=-.1056906923176064:e[2]>8.500000000000002?e[19]>1e-35?Gt=-.07139533369873902:Gt=.008952586782921625:Gt=.06086212582180936:Gt=-.0816938490403437:Gt=-.051224901945956025:Gt=-.10525399124186095:Gt=.000270924147208224;let Ft;e[122]>1e-35?e[0]>2461.5000000000005?e[2]>36.50000000000001?Ft=.029186512383291244:e[7]>1.5000000000000002?Ft=-.14984127276725573:e[1]>40.50000000000001?Ft=.032757060730648144:Ft=-.07675575422749602:e[6]>8.500000000000002?Ft=.10599766037117893:Ft=-.0541423394552156:e[1]>24.500000000000004?e[103]>1e-35?e[8]>61.50000000000001?e[17]>1e-35?Ft=-.051394622947855385:Ft=.03237141302699347:Ft=.12526173027943244:Ft=.000579473126472788:e[18]>1e-35?e[3]>4.500000000000001?e[3]>6.500000000000001?e[0]>5453.500000000001?Ft=-.07383912482657777:e[0]>5147.500000000001?Ft=.07008813937042091:e[10]>38.50000000000001?Ft=-.06779203808365307:Ft=-.013782769999524498:Ft=.0880038869117715:Ft=-.12846294176070952:e[281]>1e-35?Ft=-.06810806903850834:e[10]>227.50000000000003?Ft=-.08937977001661111:e[10]>130.50000000000003?Ft=.10538920632708033:e[145]>1e-35?e[4]>6.500000000000001?e[9]>16.500000000000004?e[4]>18.500000000000004?Ft=.011036530162093841:Ft=-.11500797478569702:Ft=.03702229366129399:Ft=.07242026683784307:e[189]>1e-35?Ft=.03331407112090286:e[9]>33.50000000000001?e[201]>1e-35?Ft=.08979610115743614:e[7]>57.50000000000001?e[1]>20.500000000000004?Ft=-.02608892716555304:Ft=.09609599320761308:e[9]>105.50000000000001?Ft=-.06848127135991534:Ft=.0023675721254089715:e[86]>1e-35?Ft=-.11049635625500497:Ft=-.004847764219432233;let Mt;e[125]>1e-35?e[0]>3969.5000000000005?Mt=-.09462233499115416:Mt=.05235324508465096:e[17]>1e-35?e[49]>1e-35?e[10]>19.500000000000004?Mt=-.030700661288166148:Mt=.0870883677166864:e[10]>3.5000000000000004?e[3]>18.500000000000004?e[0]>3544.5000000000005?e[188]>1e-35?e[9]>7.500000000000001?Mt=.03149547314036763:Mt=-.08166208257451366:e[0]>5850.500000000001?Mt=-.10228136324773157:e[102]>1e-35?Mt=-.10572585290676295:e[8]>726.5000000000001?e[5]>3657.5000000000005?Mt=.01782894842128785:e[13]>1e-35?Mt=.002680190260979968:Mt=.1773965720476949:e[2]>72.50000000000001?Mt=.09090831938627947:e[1]>59.50000000000001?Mt=-.12297206702816128:e[0]>4977.500000000001?Mt=.09899015653118268:Mt=-.022207141540838887:e[4]>32.50000000000001?e[1]>34.50000000000001?Mt=-.0675900954187773:Mt=.012336403425364092:Mt=-.0017002325391924573:e[6]>7.500000000000001?e[1]>17.500000000000004?Mt=-.02671721777458802:Mt=-.09242452991958029:e[284]>1e-35?Mt=-.08585691288582491:Mt=.013332890564324447:e[4]>14.500000000000002?Mt=-.005245022074799553:e[23]>1e-35?Mt=-.020036720167235768:e[1]>29.500000000000004?e[114]>1e-35?Mt=-.09289852307936758:e[116]>1e-35?Mt=-.09686573010015055:e[8]>804.5000000000001?Mt=.03812547148215318:Mt=.005162744968176633:e[9]>43.50000000000001?Mt=-.059246106396159376:Mt=.050370113808135275:Mt=.000794041852811028;let kt;e[3]>7.500000000000001?kt=.0004981426543104341:e[9]>114.50000000000001?kt=.05666010099424601:e[129]>1e-35?e[6]>3.5000000000000004?kt=-.019061766497948867:kt=.07193491146561211:e[186]>1e-35?e[0]>2653.5000000000005?kt=-.006044199577160493:kt=.1147136801028133:e[6]>85.50000000000001?e[8]>847.5000000000001?kt=.11486607015912494:e[9]>16.500000000000004?kt=-.08686820858087294:kt=.06119632492911875:e[127]>1e-35?e[0]>2723.5000000000005?e[0]>3682.5000000000005?e[1]>38.50000000000001?kt=-.022230207980026437:kt=.1056683690528792:kt=-.05859530800943035:kt=.06970608927597141:e[7]>3.5000000000000004?e[105]>1e-35?kt=.08073568184886762:e[107]>1e-35?e[2]>6.500000000000001?kt=-.05177544573528314:kt=.05370469772149028:e[1]>35.50000000000001?e[0]>4106.500000000001?e[9]>46.50000000000001?e[0]>4633.500000000001?kt=.15159657923771555:kt=-.0060542654587671055:e[9]>5.500000000000001?kt=-.042808028205051786:e[1]>48.50000000000001?kt=-.010449538258110742:kt=.10026907521968294:kt=-.04249349329714756:e[9]>42.50000000000001?e[1]>19.500000000000004?e[8]>852.5000000000001?kt=-.02272452389409874:kt=-.11202691218244319:e[5]>1809.5000000000002?kt=-.04460413584255906:kt=.08196329474205256:e[10]>69.50000000000001?kt=.10221481166238167:kt=.0004063052701699382:e[243]>1e-35?kt=-.07563941678849846:e[18]>1e-35?kt=.02563513231103432:kt=-.004740081147303786;let Zt;e[84]>1e-35?e[9]>6.500000000000001?e[2]>43.50000000000001?Zt=.057446442918106:Zt=-.04404018270156349:Zt=-.09282976714550464:e[0]>384.50000000000006?e[204]>1e-35?e[1]>62.50000000000001?Zt=-.05930486238817954:e[1]>29.500000000000004?Zt=.06955866121256543:e[8]>597.5000000000001?Zt=-.06538593556505168:Zt=.06212512595497445:Zt=.00021102929959182257:e[9]>90.50000000000001?Zt=.0958061289119631:e[102]>1e-35?Zt=.07172059675638813:e[1]>47.50000000000001?Zt=-.03879798603977766:e[297]>1e-35?Zt=.054948234271956144:e[282]>1e-35?e[2]>6.500000000000001?Zt=.003805910996312012:Zt=.09304295674749524:e[11]>1e-35?e[18]>1e-35?Zt=.11252376801858695:e[288]>1e-35?Zt=-.10293901912180432:Zt=.014669268837893872:e[1]>42.50000000000001?Zt=-.05988274123836837:e[145]>1e-35?Zt=.06142784665288495:e[3]>1.5000000000000002?e[4]>4.500000000000001?e[1]>21.500000000000004?e[1]>27.500000000000004?e[9]>24.500000000000004?Zt=.038791154988529926:e[10]>22.500000000000004?e[2]>19.500000000000004?Zt=-.03366718308159971:Zt=.11936550608549797:e[1]>31.500000000000004?Zt=-.07454716789539667:Zt=.027859650621164217:e[10]>10.500000000000002?Zt=-.11806374092321247:Zt=-.03506042229223101:Zt=-.0007080765837654515:e[10]>6.500000000000001?Zt=-.028077713664996503:e[2]>7.500000000000001?Zt=.15803724124216814:Zt=.0351381284833169:Zt=-.07877953381054767;let Wt;e[131]>1e-35?e[282]>1e-35?e[4]>23.500000000000004?Wt=.14144941521975005:Wt=.0007727806714190652:e[9]>1.5000000000000002?e[8]>2134.5000000000005?e[2]>34.50000000000001?Wt=.10514088112381886:e[7]>18.500000000000004?Wt=-.10370643555956745:Wt=.04093594315421388:e[6]>15.500000000000002?e[4]>9.500000000000002?e[10]>27.500000000000004?e[10]>71.50000000000001?Wt=-.0508129468802936:e[224]>1e-35?Wt=-.037816066368733595:e[10]>43.50000000000001?Wt=.07793408602607932:Wt=.017646166646099453:e[9]>3.5000000000000004?e[9]>29.500000000000004?e[17]>1e-35?Wt=.036972453794202324:Wt=-.08727431092411866:e[8]>427.50000000000006?e[8]>1278.5000000000002?Wt=.09475302525132188:Wt=-.03580104945898193:Wt=.08349488283861875:e[10]>3.5000000000000004?e[0]>1847.5000000000002?e[0]>4280.500000000001?e[2]>27.500000000000004?Wt=-.1282448778804823:Wt=-.014395808269207212:Wt=-.008940927190750592:Wt=-.1459118815453748:e[0]>4897.500000000001?Wt=-.09733068457286576:e[1]>57.50000000000001?Wt=.06575271409540207:Wt=-.019556422817450115:Wt=-.10623959222984136:e[18]>1e-35?Wt=.11280940901275241:e[8]>319.50000000000006?e[2]>6.500000000000001?Wt=.008125645893104896:Wt=-.11084368630465868:Wt=.0584398731508786:e[0]>350.50000000000006?e[3]>83.50000000000001?Wt=-.05854904579626861:e[4]>5.500000000000001?Wt=.02985784951394175:Wt=-.03247600140149334:Wt=-.11152899295304973:Wt=-.00035424577714215764;let qt;e[32]>1e-35?e[17]>1e-35?e[8]>359.50000000000006?e[8]>804.5000000000001?qt=-.06563670567578264:qt=.067656954313663:qt=-.10388217548685377:e[8]>2302.5000000000005?qt=.07190621943790435:e[4]>67.50000000000001?qt=.060020507643618604:e[4]>38.50000000000001?qt=-.08707253184321638:e[2]>11.500000000000002?e[2]>16.500000000000004?e[1]>31.500000000000004?e[1]>59.50000000000001?qt=-.06568134366461277:e[8]>1075.5000000000002?qt=-.004768057709758692:qt=.11785959165999467:qt=-.05080221682879267:qt=.14814206127494542:qt=-.07241946332311736:e[253]>1e-35?qt=-.058893562861261274:e[4]>61.50000000000001?e[283]>1e-35?e[10]>23.500000000000004?qt=-.02471195342450034:qt=.11866056464409412:e[10]>44.50000000000001?e[1]>16.500000000000004?e[8]>2640.0000000000005?qt=-.10741850739482771:qt=.010051635824944:qt=.12502069436017124:e[8]>1971.5000000000002?e[1]>23.500000000000004?e[308]>1e-35?qt=.10511236013756364:e[10]>10.500000000000002?e[1]>53.50000000000001?qt=-.08992396138178163:qt=.010944365997007212:qt=.06221307021813793:qt=.1286024087559141:e[127]>1e-35?qt=.06568148624531012:e[10]>40.50000000000001?qt=-.07567979134643352:e[5]>5647.500000000001?qt=.07594672895572069:qt=-.018158016446439187:e[6]>55.50000000000001?qt=.009293422430111872:e[4]>45.50000000000001?qt=-.017749818406964022:e[2]>46.50000000000001?qt=.01714136511113982:qt=-724762291423549e-19;let ot;e[1]>24.500000000000004?e[103]>1e-35?e[8]>48.50000000000001?e[17]>1e-35?ot=-.048689215588703864:e[9]>27.500000000000004?e[0]>3916.5000000000005?ot=.07084726276890757:ot=-.11232323677722932:ot=.04812773089510436:ot=.11757502216780046:e[5]>1464.5000000000002?e[5]>1505.5000000000002?e[167]>1e-35?ot=.07470606002425358:e[1]>53.50000000000001?e[132]>1e-35?ot=.0879462816013881:ot=-.002966662093626573:e[306]>1e-35?ot=-.04588085188342676:ot=.0031910005157084823:e[3]>10.500000000000002?e[10]>20.500000000000004?ot=-.006600332774461143:ot=.1272481351557754:ot=-.09030973597154808:e[284]>1e-35?e[1]>38.50000000000001?e[10]>2.5000000000000004?ot=.011884312066620044:ot=.11678751052403374:e[4]>8.500000000000002?ot=.03627129613273813:ot=-.12132783497902287:ot=-.006784372643244717:e[18]>1e-35?e[3]>4.500000000000001?e[3]>6.500000000000001?e[0]>5453.500000000001?ot=-.06830131718398992:e[0]>5147.500000000001?ot=.062360406249609306:e[4]>4.500000000000001?ot=-.013162203864592055:ot=-.07153029184927609:ot=.07628618062271557:ot=-.12085065687320373:e[190]>1e-35?ot=-.045816889524231186:e[137]>1e-35?ot=-.07956001795911584:e[199]>1e-35?e[0]>3853.5000000000005?ot=.025895337822752502:ot=-.06503949350616421:e[10]>227.50000000000003?ot=-.09989456525790491:e[10]>130.50000000000003?ot=.08616651057030683:ot=.0001234981796706021;let Et;e[8]>1014.5000000000001?e[9]>137.50000000000003?Et=-.08778879924617534:e[8]>1022.5000000000001?e[285]>1e-35?e[9]>64.50000000000001?Et=.04955806187281689:e[0]>3670.5000000000005?e[10]>32.50000000000001?Et=-.141732381961068:Et=-.0317152307496497:Et=-.02074638849097191:e[0]>93.50000000000001?e[0]>3072.5000000000005?e[10]>100.50000000000001?e[4]>24.500000000000004?e[8]>1336.5000000000002?Et=.12191801556691254:Et=-.0003444689085397977:Et=.005739668504631604:e[146]>1e-35?e[308]>1e-35?Et=.015237524791728777:e[6]>61.50000000000001?e[4]>63.50000000000001?Et=-.05676033995381961:Et=.10933961076803381:e[4]>26.500000000000004?Et=-.11667582544549814:e[8]>1765.5000000000002?Et=.032174455312047705:Et=-.0755016390126608:e[293]>1e-35?Et=-.08234885407658332:e[9]>41.50000000000001?e[0]>3830.5000000000005?Et=.026571311956824436:e[15]>1e-35?Et=.06175459479851121:Et=-.018778084411148754:e[9]>40.50000000000001?Et=-.09420232889965811:Et=-.004578248021263184:e[2]>1.5000000000000002?Et=.005453714644971445:Et=-.03907138175699279:Et=-.055296364182154736:e[23]>1e-35?Et=.036555134842143476:e[0]>4188.500000000001?e[6]>29.500000000000004?Et=-.09358146510580179:Et=.060524657996178094:Et=-.11245101144669545:e[125]>1e-35?e[9]>1.5000000000000002?Et=-.12698331085931538:Et=.006059605604079918:e[2]>196.50000000000003?Et=-.09451315810804783:Et=.0011390147031687425;let cr;e[8]>2830.5000000000005?e[1]>31.500000000000004?e[9]>32.50000000000001?e[5]>1234.5000000000002?e[8]>3794.5000000000005?cr=.05517359070460923:cr=-.04758751221404857:cr=-.09482078194138792:e[8]>2992.5000000000005?e[1]>101.50000000000001?cr=.1040436595565776:e[9]>21.500000000000004?cr=.04032250517675179:e[107]>1e-35?cr=.05978752253058374:e[210]>1e-35?e[4]>37.50000000000001?cr=.1192453009230486:e[1]>51.50000000000001?cr=.0443376336292195:cr=-.07967674833321865:e[5]>2117.5000000000005?e[9]>10.500000000000002?cr=-.10025078607591283:e[0]>2882.5000000000005?e[18]>1e-35?cr=-.08999822408398037:cr=.017533219253893447:e[9]>1.5000000000000002?e[4]>12.500000000000002?cr=-.061850439226075:cr=.08849196353361093:cr=.10536348167793089:e[92]>1e-35?cr=.04894947712119185:e[9]>16.500000000000004?cr=.05900227903883853:e[9]>5.500000000000001?cr=-.11946594348916476:cr=-.03652096348071964:e[1]>41.50000000000001?cr=-.07411603110840567:cr=-.00021033247574340914:e[10]>22.500000000000004?e[9]>68.50000000000001?cr=.08493634342741495:e[11]>1e-35?cr=-.10899097825564363:cr=-.006156708838964173:e[8]>3198.5000000000005?e[2]>41.50000000000001?cr=.08356655906359918:e[7]>25.500000000000004?cr=-.09475076526194888:e[10]>5.500000000000001?cr=-.01999406228763778:cr=.06696212545889428:e[6]>20.500000000000004?cr=.14713592661393468:cr=.0459917279002218:cr=.00027445928493734093;let ur;e[223]>1e-35?e[1]>31.500000000000004?e[8]>634.5000000000001?ur=-.06904501553217077:ur=.05696231672035904:ur=-.1124703178077813:e[99]>1e-35?e[1]>89.50000000000001?ur=-.05074261170009721:e[1]>57.50000000000001?e[8]>969.5000000000001?ur=-.011419256378538392:e[0]>3830.5000000000005?ur=.140315841503076:ur=.02403434913963024:e[1]>31.500000000000004?e[8]>65.50000000000001?e[2]>10.500000000000002?ur=-.04027822909411164:ur=.03176085103667189:ur=.06779515865838849:e[4]>15.500000000000002?ur=.0762878389015175:e[8]>175.50000000000003?e[0]>3030.5000000000005?e[8]>1041.5000000000002?ur=.06124039747298539:ur=-.04312732764434027:ur=.09161522761808062:ur=-.09663512235460074:e[280]>1e-35?e[6]>45.50000000000001?e[1]>46.50000000000001?ur=.11211681010488772:e[13]>1e-35?ur=.06725735814960367:ur=-.046744031455827846:e[10]>44.50000000000001?e[0]>3400.5000000000005?e[0]>4004.5000000000005?e[2]>22.500000000000004?ur=.11743605068905603:ur=-.011309033539148687:ur=-.07896094707523052:ur=.12862714793172117:e[10]>1.5000000000000002?e[8]>455.50000000000006?e[0]>4706.500000000001?ur=-.09218756798869711:e[10]>19.500000000000004?e[0]>1894.5000000000002?e[0]>3719.5000000000005?ur=.02836295848998302:ur=.12210680366745175:ur=-.058302317470509096:e[5]>4144.500000000001?ur=.06123341960495106:ur=-.03840046906926525:ur=-.05221474543453495:ur=.03988215485860711:ur=-.00033074684693083496;let xw=Mue(t+r+n+s+a+l+c+u+d+f+m+p+g+h+x+_+y+b+T+v+S+R+j+K+V+Y+N+k+z+D+E+I+A+w+P+O+M+$+G+le+be+xe+$e+Ge+Ke+Qe+U+ie+W+he+ce+q+ne+_e+fe+me+Ee+Pe+Oe+qe+Ye+rt+nt+ct+F+Q+de+ge+De+Be+We+He+Ae+H+J+ae+pe+ye+Ce+ke+Xe+ft+we+Lt+St+it+dt+Dt+jt+Gt+Ft+Mt+kt+Zt+Wt+qt+ot+Et+cr+ur);return[1-xw,xw]}o(Y$,"multilineModelPredict");function Mue(e){if(e<0){let t=Math.exp(e);return t/(1+t)}return 1/(1+Math.exp(-e))}o(Mue,"sigmoid");var Uue={javascript:["//"],typescript:["//"],typescriptreact:["//"],javascriptreact:["//"],vue:["//","-->"],php:["//","#"],dart:["//"],go:["//"],cpp:["//"],scss:["//"],csharp:["//"],java:["//"],c:["//"],rust:["//"],python:["#"],markdown:["#","-->"],css:["*/"]},X$={javascript:1,javascriptreact:2,typescript:3,typescriptreact:4,python:5,go:6,ruby:7};function J$(e,t,r,n=!0){let s=e.split(`
[263] Fix | Delete
`);if(n&&(s=s.filter(c=>c.trim().length>0)),Math.abs(t)>s.length||t>=s.length)return!1;t<0&&(t=s.length+t);let a=s[t];return(Uue[r]??[]).some(c=>a.includes(c))}o(J$,"hasComment");var e_=class{static{o(this,"PromptFeatures")}constructor(t,r){let[n,s]=this.firstAndLast(t),a=this.firstAndLast(t.trimEnd());this.language=r,this.length=t.length,this.firstLineLength=n.length,this.lastLineLength=s.length,this.lastLineRstripLength=s.trimEnd().length,this.lastLineStripLength=s.trim().length,this.rstripLength=t.trimEnd().length,this.stripLength=t.trim().length,this.rstripLastLineLength=a[1].length,this.rstripLastLineStripLength=a[1].trim().length,this.secondToLastLineHasComment=J$(t,-2,r),this.rstripSecondToLastLineHasComment=J$(t.trimEnd(),-2,r),this.prefixEndsWithNewline=t.endsWith(`
[264] Fix | Delete
`),this.lastChar=t.slice(-1),this.rstripLastChar=t.trimEnd().slice(-1),this.firstChar=t[0],this.lstripFirstChar=t.trimStart().slice(0,1)}firstAndLast(t){let r=t.split(`
[265] Fix | Delete
`),n=r.length,s=r[0],a=r[n-1];return a==""&&n>1&&(a=r[n-2]),[s,a]}},fE=class{static{o(this,"MultilineModelFeatures")}constructor(t,r,n){this.language=n,this.prefixFeatures=new e_(t,n),this.suffixFeatures=new e_(r,n)}constructFeatures(){let t=new Array(14).fill(0);t[0]=this.prefixFeatures.length,t[1]=this.prefixFeatures.firstLineLength,t[2]=this.prefixFeatures.lastLineLength,t[3]=this.prefixFeatures.lastLineRstripLength,t[4]=this.prefixFeatures.lastLineStripLength,t[5]=this.prefixFeatures.rstripLength,t[6]=this.prefixFeatures.rstripLastLineLength,t[7]=this.prefixFeatures.rstripLastLineStripLength,t[8]=this.suffixFeatures.length,t[9]=this.suffixFeatures.firstLineLength,t[10]=this.suffixFeatures.lastLineLength,t[11]=this.prefixFeatures.secondToLastLineHasComment?1:0,t[12]=this.prefixFeatures.rstripSecondToLastLineHasComment?1:0,t[13]=this.prefixFeatures.prefixEndsWithNewline?1:0;let r=new Array(Object.keys(X$).length+1).fill(0);r[X$[this.language]??0]=1;let n=new Array(Object.keys(tl).length+1).fill(0);n[tl[this.prefixFeatures.lastChar]??0]=1;let s=new Array(Object.keys(tl).length+1).fill(0);s[tl[this.prefixFeatures.rstripLastChar]??0]=1;let a=new Array(Object.keys(tl).length+1).fill(0);a[tl[this.suffixFeatures.firstChar]??0]=1;let l=new Array(Object.keys(tl).length+1).fill(0);return l[tl[this.suffixFeatures.lstripFirstChar]??0]=1,t.concat(r,n,s,a,l)}};function Bue(e,t){return new fE(e.prefix,e.suffix,t)}o(Bue,"constructMultilineFeatures");function Z$(e,t){let r=Bue(e,t).constructFeatures();return Y$(r)[1]}o(Z$,"requestMultilineScore");async function*t_(e,t){for await(let r of e)yield t(r)}o(t_,"asyncIterableMap");async function*Q$(e,t){for await(let r of e)await t(r)&&(yield r)}o(Q$,"asyncIterableFilter");function ej(e,t,r){let n=r.extendedBy({messagesJson:JSON.stringify(t)});return Se(e,"engine.messages",n,1)}o(ej,"logEngineMessages");function rj(e){if(e instanceof Error)return e.stack?e.stack:e.message;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}o(rj,"toString");var Fo=new vt("streamChoices"),dE=class{constructor(){this.logprobs=[];this.top_logprobs=[];this.text=[];this.tokens=[];this.text_offset=[];this.copilot_annotations=new hE;this.tool_calls=new pE;this.function_call=new gE;this.copilot_references=[];this.yielded=!1}static{o(this,"APIJsonDataStreaming")}append(t){t.text&&this.text.push(t.text),t.delta?.content&&t.delta.role!=="function"&&this.text.push(t.delta.content),t.logprobs&&(this.tokens.push(t.logprobs.tokens??[]),this.text_offset.push(t.logprobs.text_offset??[]),this.logprobs.push(t.logprobs.token_logprobs??[]),this.top_logprobs.push(t.logprobs.top_logprobs??[])),t.copilot_annotations&&this.copilot_annotations.update(t.copilot_annotations),t.delta?.copilot_annotations&&this.copilot_annotations.update(t.delta.copilot_annotations),t.delta?.tool_calls&&t.delta.tool_calls.length>0&&this.tool_calls.update(t.delta.tool_calls),t.delta?.function_call&&this.function_call.update(t.delta.function_call),t?.finish_reason&&(this.finish_reason=t.finish_reason)}};function $ue(e){let t=e.split(`
[266] Fix | Delete
`),r=t.pop();return[t.filter(n=>n!=""),r]}o($ue,"splitChunk");var mE=class{constructor(){this.arguments=[]}static{o(this,"StreamingToolCall")}update(t){t.id&&(this.id=t.id),t.function.name&&(this.name=t.function.name),this.arguments.push(t.function.arguments)}},pE=class{constructor(){this.toolCalls=[]}static{o(this,"StreamingToolCalls")}update(t){t.forEach(r=>{let n=this.toolCalls.length>0?this.toolCalls[this.toolCalls.length-1]:void 0;(!n||r.id&&n.id!==r.id)&&(n=new mE,this.toolCalls.push(n)),n.update(r)})}getToolCalls(){return this.toolCalls}},gE=class{constructor(){this.arguments=[]}static{o(this,"StreamingFunctionCall")}update(t){t.name&&(this.name=t.name),this.arguments.push(t.arguments)}},hE=class{constructor(){this.current={}}static{o(this,"StreamCopilotAnnotations")}update(t){Object.entries(t).forEach(([r,n])=>{n.forEach(s=>this.update_namespace(r,s))})}update_namespace(t,r){this.current[t]||(this.current[t]=[]);let n=this.current[t],s=n.findIndex(a=>a.id===r.id);s>=0?n[s]=r:n.push(r)}for(t){return this.current[t]??[]}},Km=class e{constructor(t,r,n,s,a,l,c){this.ctx=t;this.expectedNumChoices=r;this.response=n;this.body=s;this.telemetryData=a;this.dropCompletionReasons=l;this.cancellationToken=c;this.requestId=Gg(this.response);this.stats=new _E;this.solutions={}}static{o(this,"SSEProcessor")}static create(t,r,n,s,a,l){let c=n.body();if(c===null)throw new Error("No response body available");return typeof c.setEncoding=="function"?c.setEncoding("utf8"):c=c.pipeThrough(new TextDecoderStream),new e(t,r,n,c,s,a??[],l)}async*processSSE(t=()=>{}){try{yield*this.processSSEInner(t)}finally{this.cancel(),Fo.debug(this.ctx,`request done: headerRequestId: [${this.requestId.headerRequestId}] model deployment ID: [${this.requestId.deploymentId}]`),Fo.debug(this.ctx,"request stats:",this.stats)}}async*processSSEInner(t){let r="",n=null,s,a;e:for await(let l of this.body){if(this.maybeCancel("after awaiting body chunk"))return;Fo.debug(this.ctx,"chunk",l.toString());let[c,u]=$ue(r+l.toString());r=u;for(let d of c){let f=d.slice(5).trim();if(f=="[DONE]"){yield*this.finishSolutions(n,s,a,t);return}n=null;let m;try{m=JSON.parse(f)}catch{Fo.error(this.ctx,"Error parsing JSON stream data",d);continue}if(m.copilot_confirmation&&jue(m.copilot_confirmation)&&await t("",{text:"",requestId:this.requestId,copilotConfirmation:m.copilot_confirmation}),m.copilot_references&&await t("",{text:"",requestId:this.requestId,copilotReferences:m.copilot_references}),m.choices===void 0){!m.copilot_references&&!m.copilot_confirmation&&(m.error!==void 0?Fo.error(this.ctx,"Error in response:",m.error.message):Fo.error(this.ctx,"Unexpected response with no choices or error: "+f)),m.copilot_errors&&await t("",{text:"",requestId:this.requestId,copilotErrors:m.copilot_errors});continue}if(s===void 0&&m.model&&(s=m.model),a===void 0&&m.usage&&(a=m.usage),this.allSolutionsDone()){r="";break e}for(let p=0;p<m.choices?.length;p++){let g=m.choices[p];Fo.debug(this.ctx,"choice",g),this.stats.add(g.index),g.index in this.solutions||(this.solutions[g.index]=new dE);let h=this.solutions[g.index];if(h==null)continue;h.append(g);let x=this.asSolutionDecision(),_=g.text?.indexOf(`
[267] Fix | Delete
`)>-1||g.delta?.content?.indexOf(`
[268] Fix | Delete
`)>-1;if(g.finish_reason||_){let b=h.text.join("");if(x=this.asSolutionDecision(await t(b,{text:b,index:g.index,requestId:this.requestId,annotations:h.copilot_annotations,copilotReferences:h.copilot_references,getAPIJsonData:o(()=>xE(h),"getAPIJsonData"),finished:!!g.finish_reason,telemetryData:this.telemetryData})),this.maybeCancel("after awaiting finishedCb"))return}if(g.finish_reason&&h.function_call.name!==void 0){n=g.finish_reason;continue}if(g.finish_reason&&(x.yieldSolution=!0,x.continueStreaming=!1),!x.yieldSolution)continue;let y=g.finish_reason??"client-trimmed";if(Se(this.ctx,"completion.finishReason",this.telemetryData.extendedBy({completionChoiceFinishReason:y,engineName:s??"",engineChoiceSource:Rm(this.ctx,this.telemetryData).engineChoiceSource})),this.dropCompletionReasons.includes(g.finish_reason)?this.solutions[g.index]=null:h.yielded||(this.stats.markYielded(g.index),yield{solution:h,finishOffset:x.finishOffset,reason:g.finish_reason,requestId:this.requestId,index:g.index,model:s,usage:a},h.yielded=!0),this.maybeCancel("after yielding finished choice"))return;x.continueStreaming||(this.solutions[g.index]=null)}}}for(let[l,c]of Object.entries(this.solutions)){let u=Number(l);if(c!=null&&(Se(this.ctx,"completion.finishReason",this.telemetryData.extendedBy({completionChoiceFinishReason:"Iteration Done",engineName:s??""})),this.stats.markYielded(u),yield{solution:c,finishOffset:void 0,reason:"Iteration Done",requestId:this.requestId,index:u,model:s,usage:a},this.maybeCancel("after yielding after iteration done")))return}if(r.length>0)try{let l=JSON.parse(r);l.error!==void 0&&Fo.error(this.ctx,`Error in response: ${l.error.message}`,l.error)}catch{Fo.error(this.ctx,`Error parsing extraData: ${r}`)}}asSolutionDecision(t){return t===void 0?{yieldSolution:!1,continueStreaming:!0}:typeof t=="number"?{yieldSolution:!0,continueStreaming:!1,finishOffset:t}:t}async*finishSolutions(t,r,n,s){for(let[a,l]of Object.entries(this.solutions)){let c=Number(a);if(l==null)continue;let u=l.text.join("");if(await s(u,{text:u,index:c,requestId:this.requestId,annotations:l.copilot_annotations,copilotReferences:l.copilot_references,getAPIJsonData:o(()=>xE(l),"getAPIJsonData"),finished:!0,telemetryData:this.telemetryData}),!l.yielded&&(this.stats.markYielded(c),Se(this.ctx,"completion.finishReason",this.telemetryData.extendedBy({completionChoiceFinishReason:t??"DONE",engineName:r??""})),yield{solution:l,finishOffset:void 0,reason:t??"DONE",requestId:this.requestId,index:c,model:r,usage:n},this.maybeCancel("after yielding on DONE")))return}}maybeCancel(t){return this.cancellationToken?.isCancellationRequested?(Fo.debug(this.ctx,"Cancelled: "+t),this.cancel(),!0):!1}cancel(){this.body&&"destroy"in this.body&&typeof this.body.destroy=="function"?this.body.destroy():this.body instanceof ReadableStream&&this.body.cancel()}allSolutionsDone(){let t=Object.values(this.solutions);return t.length==this.expectedNumChoices&&t.every(r=>r==null)}};function r_(e,t,r){let n=t.solution.text.join(""),s=!1;t.finishOffset!==void 0&&(Fo.debug(e,`solution ${t.index}: early finish at offset ${t.finishOffset}`),n=n.substring(0,t.finishOffset),s=!0),Fo.info(e,`solution ${t.index} returned. finish reason: [${t.reason}]`),Fo.debug(e,`solution ${t.index} details: finishOffset: [${t.finishOffset}]`);let a=xE(t.solution);return n_(e,n,a,t.index,t.requestId,s,r)}o(r_,"prepareSolutionForReturn");function xE(e){let t=e.text.join(""),r=Wue(e),n=que(e),s=e.copilot_annotations.current,a={text:t,tokens:e.text,tool_calls:r,function_call:n,copilot_annotations:s,finish_reason:e.finish_reason??"stop"};if(e.logprobs.length===0)return a;let l=e.logprobs.reduce((f,m)=>f.concat(m),[]),c=e.top_logprobs.reduce((f,m)=>f.concat(m),[]),u=e.text_offset.reduce((f,m)=>f.concat(m),[]),d=e.tokens.reduce((f,m)=>f.concat(m),[]);return{...a,logprobs:{token_logprobs:l,top_logprobs:c,text_offset:u,tokens:d}}}o(xE,"convertToAPIJsonData");function jue(e){return typeof e.title=="string"&&typeof e.message=="string"&&!!e.confirmation}o(jue,"isCopilotConfirmation");function nj(e,t,r){if(!e)return{};try{return JSON.parse(e)}catch(n){throw new Error(`Failed to parse JSON for ${t} '${r}': ${rj(n)}. Input: '${e}'`)}}o(nj,"parseCallArguments");function Wue(e){let t=[],r=e.tool_calls.getToolCalls();for(let n of r)if(n.name){let s=n.arguments.join("").trim(),a=nj(s,"tool call",n.name);t.push({type:"function",function:{name:n.name,arguments:a},approxNumTokens:n.arguments.length+1,id:n.id})}return t}o(Wue,"extractToolCalls");function que(e){if(e.function_call.name){let t=e.function_call.arguments.join("").trim(),r=nj(t,"function call",e.function_call.name);return{name:e.function_call.name,arguments:r}}}o(que,"extractFunctionCall");var _E=class{constructor(){this.choices=new Map}static{o(this,"ChunkStats")}getChoiceStats(t){let r=this.choices.get(t);return r||(r=new yE,this.choices.set(t,r)),r}add(t){this.getChoiceStats(t).increment()}markYielded(t){this.getChoiceStats(t).markYielded()}toString(){return Array.from(this.choices.entries()).map(([t,r])=>`${t}: ${r.yieldedTokens} -> ${r.seenTokens}`).join(", ")}},yE=class{constructor(){this.yieldedTokens=-1;this.seenTokens=0}static{o(this,"ChoiceStats")}increment(){this.seenTokens++}markYielded(){this.yieldedTokens=this.seenTokens}};function Hue(e,t){return e!==null&&typeof e=="object"&&t in e}o(Hue,"hasKey");function X0(e,t){return Hue(e,t)?e[t]:void 0}o(X0,"getKey");var oj=Pt(Zn());var Xr=new vt("fetchCompletions");function Gg(e){return{headerRequestId:e.headers.get("x-request-id")||"",serverExperiments:e.headers.get("X-Copilot-Experiment")||"",deploymentId:e.headers.get("azureml-model-deployment")||""}}o(Gg,"getRequestId");function bE(e){let t=e.headers.get("openai-processing-ms");return t?parseInt(t,10):0}o(bE,"getProcessingTime");function sj(e){switch(e){case"ghostText":return"copilot-ghost";case"synthesize":return"copilot-panel"}}o(sj,"uiKindToIntent");var Tc=class{static{o(this,"OpenAIFetcher")}};function zue(e,t,r,n){return Pd(e,t,"proxy","v1/engines",r,n)}o(zue,"getProxyEngineUrl");function aj(e,t,r,n){for(let[s,a]of Object.entries(e)){if(r.includes(s))continue;let l=a;if(s==="extra"&&n){let c={...l};for(let u of n)delete c[u];l=c}t.properties[`request.option.${s}`]=JSON.stringify(l)??"undefined"}}o(aj,"sanitizeRequestOptionTelemetry");async function ij(e,t,r,n,s,a,l,c,u,d,f){let m=e.get(Hr),p=zue(e,l,r,n),g=u.extendedBy({endpoint:n,engineName:r,uiKind:c},W2(t));aj(a,g,["prompt","suffix"],["context"]),g.properties.headerRequestId=s,Se(e,"request.sent",g);let h=xn(),x=sj(c);return Z7(e,p,l.token,x,s,a,d,f).then(_=>{let y=Gg(_);g.extendWithRequestId(y);let b=xn()-h;return g.measurements.totalTimeMs=b,Xr.info(e,`Request ${s} at <${p}> finished with ${_.status} status after ${b}ms`),g.properties.status=String(_.status),Xr.debug(e,"request.response properties",g.properties),Xr.debug(e,"request.response measurements",g.measurements),Xr.debug(e,"prompt:",t),Se(e,"request.response",g),_}).catch(_=>{if(h0(_))throw Se(e,"request.cancel",g),_;m.setWarning(X0(_,"message")??"");let y=g.extendedBy({error:"Network exception"});Se(e,"request.shownWarning",y),g.properties.message=String(X0(_,"name")??""),g.properties.code=String(X0(_,"code")??""),g.properties.errno=String(X0(_,"errno")??""),g.properties.type=String(X0(_,"type")??"");let b=xn()-h;throw g.measurements.totalTimeMs=b,Xr.info(e,`Request ${s} at <${p}> rejected with ${String(_)} after ${b}ms`),Xr.debug(e,"request.error properties",g.properties),Xr.debug(e,"request.error measurements",g.measurements),Se(e,"request.error",g),_}).finally(()=>{jN(e,t,g)})}o(ij,"fetchWithInstrumentation");async function Vue(e,t,r,n,s,a,l,c,u,d){let f=u.extendedBy({endpoint:"chat/completions",engineModelId:r,uiKind:c});aj(a,f,["messages"]),f.properties.headerRequestId=s,Se(e,"request.sent",f);let m=xn(),p=sj(c),g=QT(e);a1()&&(g=await lU(e,g));try{let h=await Z7(e,n,l.token,p,s,a,d,g),x=Gg(h);f.extendWithRequestId(x);let _=xn()-m;return f.measurements.totalTimeMs=_,Xr.info(e,`Request ${s} at <${n}> finished with ${h.status} status after ${_}ms`),Xr.debug(e,"request.response properties",f.properties),Xr.debug(e,"request.response measurements",f.measurements),Xr.debug(e,"messages:",JSON.stringify(t)),Se(e,"request.response",f),h}catch(h){if(h0(h))throw Se(e,"request.cancel",f),h;let x=f.extendedBy({error:"Network exception"});Se(e,"request.shownWarning",x),f.properties.message=String(X0(h,"name")??""),f.properties.code=String(X0(h,"code")??""),f.properties.errno=String(X0(h,"errno")??""),f.properties.type=String(X0(h,"type")??"");let _=xn()-m;throw f.measurements.totalTimeMs=_,Xr.info(e,`Request ${s} at <${n}> rejected with ${String(h)} after ${_}ms`),Xr.debug(e,"request.error properties",f.properties),Xr.debug(e,"request.error measurements",f.measurements),Se(e,"request.error",f),h}finally{ej(e,t,f)}}o(Vue,"fetchChatWithInstrumentation");function vE(e){return Q$(e,t=>t.completionText.trim().length>0)}o(vE,"postProcessChoices");var Yg="github.copilot.completions.quotaExceeded",Kg=class extends Tc{static{o(this,"LiveOpenAIFetcher")}#e;async fetchAndStreamCompletions(t,r,n,s,a){if(this.#e)return{type:"canceled",reason:this.#e};let l=t.get(Hr),c="completions",u=await t.get(Kt).getToken(),d=await this.fetchWithParameters(t,c,r,u,n,a);if(d==="not-sent")return{type:"canceled",reason:"before fetch request"};if(a?.isCancellationRequested){let g=d.body();try{g&&"destroy"in g&&typeof g.destroy=="function"?g.destroy():g instanceof ReadableStream&&g.cancel()}catch(h){Xr.exception(t,h,"Error destroying stream")}return{type:"canceled",reason:"after fetch request"}}if(d.status!==200){let g=this.createTelemetryData(c,t,r);return this.handleError(t,l,g,d,u)}let m=Km.create(t,r.count,d,n,[],a).processSSE(s),p=t_(m,g=>r_(t,g,n));return{type:"success",choices:vE(p),getProcessingTime:o(()=>bE(d),"getProcessingTime")}}async fetchAndStreamChat(t,r,n,s,a,l,c,u={},d){if(this.#e)return{type:"canceled",reason:this.#e};let f="https://copilot-proxy.githubusercontent.com/chat/completions",m={messages:r,model:c.id,stream:!0,...u},p=n.extendedBy({endpoint:f,model:c.name}),g=t.get(Hr),h=await t.get(Kt).getToken(),x=await Vue(t,r,c.id,f,a,m,h,s,p,d);if(d?.isCancellationRequested){let T=x.body();try{T&&"destroy"in T&&typeof T.destroy=="function"?T.destroy():T instanceof ReadableStream&&T.cancel()}catch(v){Xr.exception(t,v,"Error destroying stream")}return{type:"canceled",reason:"after fetch request"}}if(x.status!==200){let T=et.createAndMarkAsIssued({endpoint:f,engineName:c.name,uiKind:s,headerRequestId:a});return this.handleError(t,g,T,x,h)}let y=Km.create(t,1,x,p,[],oj.CancellationToken.None).processSSE(),b=t_(y,T=>r_(t,T,n));return{type:"success",choices:vE(b),getProcessingTime:o(()=>bE(x),"getProcessingTime")}}async fetchAndStreamSpeculation(t,r,n,s,a){if(this.#e)return{type:"canceled",reason:this.#e};let l=t.get(Hr),c="speculation",u=await t.get(Kt).getToken(),d={prompt:{prefix:r.prompt,suffix:"",isFimEnabled:!1},speculation:r.speculation,ourRequestId:wi(),engineModelId:r.engineModelId,uiKind:r.uiKind,headers:r.headers,stops:r.stops},f=await this.fetchSpeculationWithParameters(t,c,d,u,n,a);if(f==="not-sent")return{type:"canceled",reason:"before fetch request"};if(a?.isCancellationRequested){let h=f.body();try{h&&"destroy"in h&&typeof h.destroy=="function"?h.destroy():h instanceof ReadableStream&&h.cancel()}catch(x){Xr.exception(t,x,"Error destroying stream")}return{type:"canceled",reason:"after fetch request"}}if(f.status!==200){let h=this.createTelemetryData(c,t,d);return this.handleError(t,l,h,f,u)}let p=Km.create(t,1,f,n,[],a).processSSE(s),g=t_(p,h=>r_(t,h,n));return{type:"success",choices:vE(g),getProcessingTime:o(()=>bE(f),"getProcessingTime")}}createTelemetryData(t,r,n){return et.createAndMarkAsIssued({endpoint:t,engineName:n.engineModelId,uiKind:n.uiKind,headerRequestId:n.ourRequestId})}async fetchSpeculationWithParameters(t,r,n,s,a,l){let c={prompt:n.prompt.prefix,speculation:n.speculation,temperature:0,stream:!0,stop:n.stops??[]};return await vc(0),l?.isCancellationRequested?"not-sent":await ij(t,n.prompt,n.engineModelId,r,n.ourRequestId,c,s,n.uiKind,a,l,n.headers)}async fetchWithParameters(t,r,n,s,a,l){let c=t.get(Le).disableLogProb(a),u={prompt:n.prompt.prefix,suffix:n.prompt.suffix,max_tokens:o_(t),temperature:i_(t,n.count),top_p:cj(t),n:n.count,stop:lj(t,n.languageId),stream:!0,extra:n.extra};(n.requestLogProbs||!c)&&(u.logprobs=2);let d=wg(n.repoInfo);return d!==void 0&&(u.nwo=d),n.postOptions&&Object.assign(u,n.postOptions),n.prompt.context&&(u.extra.context=n.prompt.context),await vc(0),l?.isCancellationRequested?"not-sent":await ij(t,n.prompt,n.engineModelId,r,n.ourRequestId,u,s,n.uiKind,a,l,n.headers)}async handleError(t,r,n,s,a){let l=await s.text();if(s.status===402){this.#e="monthly free code completions exhausted",r.setError("Completions limit reached",{command:Yg,title:"Learn More"});let u=dn(t,d=>{this.#e=void 0,(d.envelope.limited_user_quotas?.completions??1)>0&&(r.forceNormal(),u.dispose())});return{type:"failed",reason:this.#e}}if(s.status===466)return r.setError(l),Xr.info(t,l),{type:"failed",reason:`client not supported: ${l}`};if(s.clientError&&!s.headers.get("x-github-request-id")){let c=`Last response was a ${s.status} error and does not appear to originate from GitHub. Is a proxy or firewall intercepting this request? https://gh.io/copilot-firewall`;Xr.error(t,c),r.setWarning(c),n.properties.error=`Response status was ${s.status} with no x-github-request-id header`}else s.clientError?(Xr.warn(t,`Response status was ${s.status}:`,l),r.setWarning(`Last response was a ${s.status} error: ${l}`),n.properties.error=`Response status was ${s.status}: ${l}`):(r.setWarning(`Last response was a ${s.status} error`),n.properties.error=`Response status was ${s.status}`);return n.properties.status=String(s.status),Se(t,"request.shownWarning",n),s.status===401||s.status===403?(t.get(Kt).resetToken(s.status),{type:"failed",reason:`token expired or invalid: ${s.status}`}):s.status===429?(setTimeout(()=>{this.#e=void 0},10*1e3),this.#e="rate limited",Xr.warn(t,"Rate limited by server. Denying completions for the next 10 seconds."),{type:"failed",reason:this.#e}):s.status===499?(Xr.info(t,"Cancelled by server"),{type:"failed",reason:"canceled by server"}):(Xr.error(t,"Unhandled status from server:",s.status,l),{type:"failed",reason:`unhandled status from server: ${s.status} ${l}`})}};function n_(e,t,r,n,s,a,l){return $N(e,t,r,s,n),{completionText:t,meanLogProb:Gue(e,r),meanAlternativeLogProb:Kue(e,r),choiceIndex:n,requestId:s,blockFinished:a,tokens:r.tokens,numTokens:r.tokens.length,telemetryData:l,copilotAnnotations:r.copilot_annotations,clientCompletionId:wi(),finishReason:r.finish_reason}}o(n_,"convertToAPIChoice");function Gue(e,t){if(t?.logprobs?.token_logprobs)try{let r=0,n=0,s=50;for(let a=0;a<t.logprobs.token_logprobs.length-1&&s>0;a++,s--)r+=t.logprobs.token_logprobs[a],n+=1;return n>0?r/n:void 0}catch(r){At.exception(e,r,"Error calculating mean prob")}}o(Gue,"calculateMeanLogProb");function Kue(e,t){if(t?.logprobs?.top_logprobs)try{let r=0,n=0,s=50;for(let a=0;a<t.logprobs.token_logprobs.length-1&&s>0;a++,s--){let l={...t.logprobs.top_logprobs[a]};delete l[t.logprobs.tokens[a]],r+=Math.max(...Object.values(l)),n+=1}return n>0?r/n:void 0}catch(r){At.exception(e,r,"Error calculating mean prob")}}o(Kue,"calculateMeanAlternativeLogProb");function i_(e,t){return bs(e)||t<=1?0:t<10?.2:t<20?.4:.8}o(i_,"getTemperatureForSamples");var Yue={markdown:[`
[269] Fix | Delete
[270] Fix | Delete
[271] Fix | Delete
`],python:[`
[272] Fix | Delete
def `,`
[273] Fix | Delete
class `,`
[274] Fix | Delete
if `,`
[275] Fix | Delete
[276] Fix | Delete
#`]};function lj(e,t){return Yue[t??""]??[`
[277] Fix | Delete
[278] Fix | Delete
[279] Fix | Delete
`,"\n```"]}o(lj,"getStops");function cj(e){return 1}o(cj,"getTopP");function o_(e){return Sg}o(o_,"getMaxSolutionTokens");var TE=class e{constructor(t,r){this.index=t;this.documentPrefix=r;this.startOffset=0;this.text="";this.trimCount=0}static{o(this,"StreamingCompletion")}updateText(t){this.text=t}get addedToPrefix(){return this.text.substring(0,this.startOffset)}get effectivePrefix(){return this.documentPrefix+this.addedToPrefix}get effectiveText(){return this.text.substring(this.startOffset)}get isFirstCompletion(){return this.trimCount===0}get firstNewlineOffset(){let t=[...this.text.matchAll(/\r?\n/g)];return t.length>0&&t[0].index===0&&t.shift(),t.length>0?t[0].index:-1}trimAt(t){let r=new e(this.index,this.documentPrefix);return r.startOffset=this.startOffset,r.text=this.text.substring(0,this.startOffset+t),r.trimCount=this.trimCount,this.startOffset+=t,this.trimCount++,r}},s_=class{constructor(t,r,n,s,a,l){this.ctx=t;this.prefix=r;this.languageId=n;this.initialSingleLine=s;this.trimmerLookahead=a;this.cacheFunction=l;this.lineLimit=3;this.completions=new Map}static{o(this,"StreamedCompletionSplitter")}getFinishedCallback(){return async(t,r)=>{let n=r.index??0,s=this.getCompletion(n,t);if(s.isFirstCompletion&&this.initialSingleLine&&s.firstNewlineOffset>=0){let a={yieldSolution:!0,continueStreaming:!0,finishOffset:s.firstNewlineOffset};return s.trimAt(a.finishOffset),r.finished&&await this.trimAll(r,s),a}return r.finished?await this.trimAll(r,s):await this.trimOnce(r,s)}}getCompletion(t,r){let n=this.completions.get(t);return n||(n=new TE(t,this.prefix),this.completions.set(t,n)),n.updateText(r),n}async trimOnce(t,r){let n=await this.trim(r);return n===void 0?{yieldSolution:!1,continueStreaming:!0}:r.isFirstCompletion?(r.trimAt(n),{yieldSolution:!0,continueStreaming:!0,finishOffset:n}):(this.cacheCompletion(t,r,n),{yieldSolution:!1,continueStreaming:!0})}async trimAll(t,r){let n,s;do n=await this.trim(r),r.isFirstCompletion?(s=n,r.trimAt(n??r.effectiveText.length)):this.cacheCompletion(t,r,n);while(n!==void 0);return s!==void 0?{yieldSolution:!0,continueStreaming:!0,finishOffset:s}:{yieldSolution:!1,continueStreaming:!0}}async trim(t){return await new S3(this.languageId,t.effectivePrefix,t.effectiveText,this.lineLimit,this.trimmerLookahead).getCompletionTrimOffset()}cacheCompletion(t,r,n){let s=r.trimAt(n??r.effectiveText.length);if(s.effectiveText.trim()==="")return;let a=n_(this.ctx,s.effectiveText.trimEnd(),t.getAPIJsonData(),s.index,t.requestId,n!==void 0,t.telemetryData);a.copilotAnnotations=this.adjustedAnnotations(a,r,s),a.generatedChoiceIndex=s.trimCount,this.cacheFunction(s.addedToPrefix,a)}adjustedAnnotations(t,r,n){if(t.copilotAnnotations===void 0)return;let s=n.addedToPrefix.length,l=s+t.completionText.length>=r.text.length,c={};for(let[u,d]of Object.entries(t.copilotAnnotations)){let f=d.filter(m=>m.start_offset-s<t.completionText.length&&m.stop_offset-s>0).map(m=>{let p={...m};return p.start_offset-=s,p.stop_offset-=s,l||(p.stop_offset=Math.min(p.stop_offset,t.completionText.length)),p});f.length>0&&(c[u]=f)}return Object.keys(c).length>0?c:void 0}};var rl=class{constructor(){this.cache=new Ut(100)}static{o(this,"SpeculativeRequestCache")}set(t,r){this.cache.set(t,r)}async request(t){let r=this.cache.get(t);r!==void 0&&(this.cache.delete(t),await r())}};var a_=new vt("getCompletions");function uj(e,t,r){e.get(rl).request(r.clientCompletionId),r.telemetry.markAsDisplayed(),r.telemetry.properties.reason=Ym(r.resultType),Se(e,`${t}.shown`,r.telemetry)}o(uj,"telemetryShown");function fj(e,t,r){let n=t+".accepted";Se(e,n,r)}o(fj,"telemetryAccepted");function dj(e,t,r){let n=t+".rejected";Se(e,n,r)}o(dj,"telemetryRejected");function Cc(e,t={}){return{...t,telemetryBlob:e}}o(Cc,"mkCanceledResultTelemetry");function tn(e,t){let r={headerRequestId:e.properties.headerRequestId,copilot_trackingId:e.properties.copilot_trackingId};e.properties.sku!==void 0&&(r.sku=e.properties.sku),e.properties.opportunityId!==void 0&&(r.opportunityId=e.properties.opportunityId),e.properties.organizations_list!==void 0&&(r.organizations_list=e.properties.organizations_list),e.properties.enterprise_list!==void 0&&(r.enterprise_list=e.properties.enterprise_list),e.properties.clientCompletionId!==void 0&&(r.clientCompletionId=e.properties.clientCompletionId);let n=e.filtersAndExp.exp.assignmentContext;if(t){let a=t.get(r0).inlineCompletionsUnificationState.expAssignments.filter(l=>!n.includes(l));n=[n,...a].filter(Boolean).join(";")}return r["abexp.assignmentcontext"]=n,r}o(tn,"mkBasicResultTelemetry");function mj(e,t){if(t.type!=="promptOnly"){if(t.type==="success"){let r=xn()-t.telemetryBlob.issuedTime,n=Ym(t.resultType),s=JSON.stringify(t.performanceMetrics),a={...t.telemetryData,reason:n,performanceMetrics:s},{foundOffset:l}=t.telemetryBlob.measurements,c=t.performanceMetrics?.map(([u,d])=>`
[280] Fix | Delete
${d.toFixed(2)} ${u}`).join("")??"";return a_.debug(e,`ghostText produced from ${n} in ${Math.round(r)}ms with foundOffset ${l}${c}`),Y7(e,"ghostText.produced",a,{timeToProduceMs:r,foundOffset:l}),t.value}if(a_.debug(e,"No ghostText produced -- "+t.type+": "+t.reason),t.type==="canceled"){Se(e,"ghostText.canceled",t.telemetryData.telemetryBlob.extendedBy({reason:t.reason,cancelledNetworkRequest:t.telemetryData.cancelledNetworkRequest?"true":"false"}));return}Y7(e,`ghostText.${t.type}`,{...t.telemetryData,reason:t.reason},{})}}o(mj,"handleGhostTextResultTelemetry");function Ym(e){switch(e){case 0:return"network";case 1:return"cache";case 3:return"cycling";case 2:return"typingAsSuggested";case 4:return"async"}}o(Ym,"resultTypeToString");async function Xue(e){if(e.isCancellationRequested)return;let t=new bc,r=e.onCancellationRequested(()=>{t.resolve(),r.dispose()});await t.promise}o(Xue,"cancellationTokenToPromise");async function pj(e,t){if(t){let r=Xue(t);await Promise.race([e,r])}else await e}o(pj,"raceCancellation");function CE(e){return Array.isArray(e)}o(CE,"isArrayOfT");async function gj(e,t){let r=new Map,n=[];for(let[s,a]of e.entries()){let l=(async()=>{let c=await Jue(a,t);r.set(s,c)})();n.push(l)}return await Promise.allSettled(n.values()),r}o(gj,"resolveAll");async function Jue(e,t){let r;return e instanceof Promise?r=await Zue(e,t):r=await Que(e,t),r}o(Jue,"resolve");async function Zue(e,t){let r=performance.now(),n={status:"none",resolutionTime:0,value:null},s=(async()=>{try{let a=await e;if(t?.isCancellationRequested)return;n={status:"full",resolutionTime:0,value:CE(a)?[...a]:[a]}}catch(a){if(t?.isCancellationRequested)return;n={status:"error",resolutionTime:0,reason:a}}})();return await pj(s,t),n.resolutionTime=performance.now()-r,n}o(Zue,"resolvePromise");async function Que(e,t){let r=performance.now(),n={status:"none",resolutionTime:0,value:null},s=(async()=>{try{for await(let a of e){if(t?.isCancellationRequested)return;n.status!="partial"&&(n={status:"partial",resolutionTime:0,value:[]}),n.value.push(a)}t?.isCancellationRequested||(n.status!=="partial"?n={status:"full",resolutionTime:0,value:[]}:n.status="full")}catch(a){if(t?.isCancellationRequested)return;n={status:"error",resolutionTime:0,reason:a}}})();return await pj(s,t),n.resolutionTime=performance.now()-r,n}o(Que,"resolveIterable");var efe={maxSnippetLength:3e3,maxSnippetCount:7,enabledFeatures:"Deferred",timeBudgetMs:7,doAggregateSnippets:!0},tfe="ms-vscode.cpptools";function hj(e,t,r,n){(t.length===1&&t[0]==="*"||t.includes(tfe))&&rfe(e,r,n)}o(hj,"fillInCppVSCodeActiveExperiments");function rfe(e,t,r){try{let n=efe,s=e.get(Le).cppContextProviderParams(r);if(s)try{n=JSON.parse(s)}catch(a){At.error(e,"Failed to parse cppContextProviderParams",a)}for(let[a,l]of Object.entries(n))t.set(a,l)}catch(n){At.exception(e,n,"fillInCppActiveExperiments")}}o(rfe,"addActiveExperiments");function xj(e,t,r){try{let n=e.get(Le).csharpContextProviderParams(r);if(n){let s=JSON.parse(n);for(let[a,l]of Object.entries(s))t.set(a,l)}}catch(n){return At.debug(e,"Failed to get the active C# experiments for the Context Provider API",n),!1}return!0}o(xj,"fillInCSharpActiveExperiments");var nfe="fallbackContextProvider",ife={mlcpMaxContextItems:20,mlcpMaxSymbolMatches:20,mlcpEnableImports:!1};function _j(e,t,r,n){(t.length===1&&t[0]==="*"||t.includes(nfe))&&ofe(e,r,n)}o(_j,"fillInMultiLanguageActiveExperiments");function ofe(e,t,r){try{let n=sfe(e,r);for(let[s,a]of Object.entries(n))t.set(s,a)}catch(n){At.exception(e,n,"fillInMultiLanguageActiveExperiments")}}o(ofe,"addActiveExperiments");function sfe(e,t){let r=ife,n=e.get(Le).multiLanguageContextProviderParams(t);if(n)try{r=JSON.parse(n)}catch(s){At.error(e,"Failed to parse multiLanguageContextProviderParams",s)}return r}o(sfe,"getMultiLanguageContextProviderParamsFromExp");var afe="typescript-ai-context-provider";function yj(e,t,r,n){if(!(t.length===1&&t[0]==="*"||t.includes(afe)))return!1;try{let s=e.get(Le).tsContextProviderParams(n);if(s){let a=JSON.parse(s);for(let[l,c]of Object.entries(a))r.set(l,c)}}catch(s){return At.debug(e,"Failed to get the active TypeScript experiments for the Context Provider API",s),!1}return!0}o(yj,"fillInTsActiveExperiments");var bj=L.Object({importance:L.Optional(L.Integer({minimum:0,maximum:100})),id:L.Optional(L.String()),origin:L.Optional(L.Union([L.Literal("request"),L.Literal("update")]))}),vj=L.Intersect([L.Object({name:L.String(),value:L.String()}),bj]),Tj=L.Intersect([L.Object({uri:L.String(),value:L.String(),additionalUris:L.Optional(L.Array(L.String()))}),bj]),lfe=[vj,Tj],cfe=L.Union(lfe),ufe=new Map([["Trait",yl.Compile(vj)],["CodeSnippet",yl.Compile(Tj)]]),ffe=o(e=>e,"ensureTypesAreEqual");ffe(!0);var dfe=L.Object({contextItems:L.Array(cfe)}),mfe=L.Object({selector:L.Array(L.Union([L.String(),L.Object({language:L.Optional(L.String()),scheme:L.Optional(L.String()),pattern:L.Optional(L.String())})]))}),EE=L.Object({id:L.String()}),pfe=L.Intersect([EE,mfe]),gfe=L.Intersect([EE,dfe]),Dut=L.Object({providers:L.Array(pfe)}),kut=L.Object({providers:L.Array(EE)}),hfe=L.Object({providers:L.Array(gfe),updating:L.Optional(L.Array(L.String()))}),Nut=L.Intersect([YB,L.Object({contextItems:L.Optional(hfe)})]);function c_(e,t){return e.map(r=>{let n=r.data.filter(s=>s.type===t);return n.length>0?{...r,data:n}:void 0}).filter(r=>r!==void 0)}o(c_,"filterContextItemsByType");function Cj(e){let t=[],r=0;return e.forEach(n=>{let s=!1;for(let[a,l]of ufe.entries())if(l.Check(n)){t.push({...n,type:a}),s=!0;break}s||r++}),[t,r]}o(Cj,"filterSupportedContextItems");function xfe(e){return e.length>0&&e.replaceAll(/[^a-zA-Z0-9-]/g,"").length===e.length}o(xfe,"validateContextItemId");function Ej(e,t){let r=new Set,n=[];for(let s of t){let a=s.id??wi();if(!xfe(a)){let l=wi();At.error(e,`Invalid context item ID ${a}, replacing with ${l}`),a=l}if(r.has(a)){let l=wi();At.error(e,`Duplicate context item ID ${a}, replacing with ${l}`),a=l}r.add(a),n.push({...s,id:a})}return n}o(Ej,"addOrValidateContextItemsIDs");function Ij(e){return e instanceof IE?!0:e instanceof Error&&e.name===wE&&e.message===wE}o(Ij,"isCancellationError");var IE=class extends Error{static{o(this,"CancellationError")}constructor(){super(wE),this.name=this.message}},wE="Canceled";var ni=class{constructor(t=()=>new SE){this.createStatistics=t;this.statistics=new Ut(25)}static{o(this,"ContextProviderStatistics")}getStatisticsForCompletion(t){let r=this.statistics.get(t);if(r)return r;let n=this.createStatistics();return this.statistics.set(t,n),n}getPreviousStatisticsForCompletion(t){let r=Array.from(this.statistics.keys());for(let n=r.length-1;n>=0;n--){let s=r[n];if(s!==t)return this.statistics.peek(s)}}},SE=class{constructor(){this._expectations=new Map;this._lastResolution=new Map;this._statistics=new Map}static{o(this,"PerCompletionContextProviderStatistics")}addExpectations(t,r){let n=this._expectations.get(t)??[];this._expectations.set(t,[...n,...r])}clearExpectations(){this._expectations.clear()}setLastResolution(t,r){this._lastResolution.set(t,r)}get(t){return this._statistics.get(t)}computeMatch(t){try{for(let[r,n]of this._expectations){if(n.length===0)continue;let s=this._lastResolution.get(r)??"none";if(s==="none"||s==="error"){this._statistics.set(r,{usage:"none",resolution:s});continue}let a=[];for(let[d,f]of n){let m={id:d.id,type:d.type};if(d.origin&&(m.origin=d.origin),f==="content_excluded"){a.push({...m,usage:"none_content_excluded"});continue}let p=t.find(g=>g.source===d);p===void 0?a.push({...m,usage:"error"}):a.push({...m,usage:p.expectedTokens>0&&p.expectedTokens===p.actualTokens?"full":p.actualTokens>0?"partial":"none",expectedTokens:p.expectedTokens,actualTokens:p.actualTokens})}let c=a.reduce((d,f)=>f.usage==="full"?d+1:f.usage==="partial"?d+.5:d,0)/n.length,u=c===1?"full":c===0?"none":"partial";this._statistics.set(r,{resolution:s,usage:u,usageDetails:a})}}finally{this.clearExpectations(),this._lastResolution.clear()}}};function u_(e){return e.map(t=>{if(!(t.source===void 0||t.expectedTokens===void 0||t.actualTokens===void 0))return{source:t.source,expectedTokens:t.expectedTokens,actualTokens:t.actualTokens}}).filter(t=>t!==void 0)}o(u_,"componentStatisticsToPromptMatcher");var wj=Pt(Zn());var J0=class{static{o(this,"ContextProviderRegistry")}},Ec=class{static{o(this,"DefaultContextProviders")}},f_=class extends Ec{constructor(){super();this.ids=[]}static{o(this,"DefaultContextProvidersContainer")}add(r){this.ids.push(r)}getIds(){return this.ids}},PE=class extends J0{constructor(r,n){super();this.ctx=r;this.match=n;this._providers=[]}static{o(this,"CoreContextProviderRegistry")}registerContextProvider(r){if(r.id.includes(",")||r.id.includes("*"))throw new Error(`A context provider id cannot contain a comma or an asterisk. The id ${r.id} is invalid.`);if(this._providers.find(n=>n.id===r.id))throw new Error(`A context provider with id ${r.id} has already been registered`);this._providers.push(r)}unregisterContextProvider(r){this._providers=this._providers.filter(n=>n.id!==r)}get providers(){return this._providers.slice()}async resolveAllProviders(r,n,s,a,l,c){if(l?.isCancellationRequested)return At.debug(this.ctx,"Resolving context providers cancelled"),[];let u=new Map;xj(this.ctx,u,a);let d=[];if(this._providers.length===0)return d;let f=await this.matchProviders(s,a),m=f.filter(v=>v[1]>0);if(f.filter(v=>v[1]<=0).forEach(([v,S])=>{let R={providerId:v.id,matchScore:S,resolution:"none",resolutionTimeMs:0,data:[]};d.push(R)}),m.length===0)return d;if(l?.isCancellationRequested)return At.debug(this.ctx,"Resolving context providers cancelled"),[];hj(this.ctx,m.map(v=>v[0].id),u,a),_j(this.ctx,m.map(v=>v[0].id),u,a),yj(this.ctx,m.map(v=>v[0].id),u,a);let g=new wj.CancellationTokenSource;if(l){let v=l.onCancellationRequested(S=>{g.cancel(),v.dispose()})}let h=yb(this.ctx)&&!MS(this.ctx)?0:yfe(this.ctx,a),x=h>0?Date.now()+h:Number.MAX_SAFE_INTEGER,_;h>0&&(_=setTimeout(()=>{g.cancel(),g.dispose()},h));let y=new Map,b={completionId:r,opportunityId:n,documentContext:s,activeExperiments:u,timeBudget:h,timeoutEnd:x,data:c};for(let[v]of m){let S=this.ctx.get(ni).getPreviousStatisticsForCompletion(r)?.get(v.id);S&&(b.previousUsageStatistics=S);let R=v.resolver.resolve(b,g.token);y.set(v.id,R)}let T=await gj(y,g.token);_&&clearTimeout(_);for(let[v,S]of m){let R=T.get(v.id);if(R){if(R.status==="error")Ij(R.reason)||At.error(this.ctx,`Error resolving context from ${v.id}: `,R.reason),d.push({providerId:v.id,matchScore:S,resolution:R.status,resolutionTimeMs:R.resolutionTime,data:[]});else{let j=[...R.value??[]];if((R.status==="none"||R.status==="partial")&&(At.info(this.ctx,`Context provider ${v.id} exceeded time budget of ${h}ms`),v.resolver.resolveOnTimeout))try{let k=v.resolver.resolveOnTimeout(b);CE(k)?j.push(...k):k&&j.push(k),j.length>0&&(R.status="partial")}catch(k){At.error(this.ctx,`Error in fallback logic for context provider ${v.id}: `,k)}let[K,V]=Cj(j);V&&At.error(this.ctx,`Dropped ${V} context items from ${v.id} due to invalid schema`);let Y=Ej(this.ctx,K),N={providerId:v.id,matchScore:S,resolution:R.status,resolutionTimeMs:R.resolutionTime,data:Y};d.push(N)}this.ctx.get(ni).getStatisticsForCompletion(r).setLastResolution(v.id,R.status)}else At.error(this.ctx,`Context provider ${v.id} not found in results`)}return d.sort((v,S)=>S.matchScore-v.matchScore)}async matchProviders(r,n){let s=Pj(this.ctx,n),a=s.length===1&&s[0]==="*";return await Promise.all(this._providers.map(async c=>{if(!a&&!s.includes(c.id))return[c,0];let u=await this.match(this.ctx,c.selector,r);return[c,u]}))}},RE=class extends J0{constructor(r){super();this.delegate=r;this._cachedContextItems=new Ut(5)}static{o(this,"CachedContextProviderRegistry")}registerContextProvider(r){this.delegate.registerContextProvider(r)}unregisterContextProvider(r){this.delegate.unregisterContextProvider(r)}get providers(){return this.delegate.providers}async resolveAllProviders(r,n,s,a,l,c){let u=this._cachedContextItems.get(r);if(r&&u&&u.length>0)return u;let d=await this.delegate.resolveAllProviders(r,n,s,a,l,c);return d.length>0&&r&&this._cachedContextItems.set(r,d),d}};function Sj(e,t){return new RE(new PE(e,t))}o(Sj,"getContextProviderRegistry");function d_(e,t,r){let n=e.get(ni).getStatisticsForCompletion(t);return r.map(a=>{let{providerId:l,resolution:c,resolutionTimeMs:u,matchScore:d,data:f}=a,m=n.get(l),p=m?.usage??"none";(d<=0||c==="none"||c==="error")&&(p="none");let g={providerId:l,resolution:c,resolutionTimeMs:u,usage:p,usageDetails:m?.usageDetails,matched:d>0,numResolvedItems:f.length},h=m?.usageDetails!==void 0?m?.usageDetails.filter(_=>_.usage==="full"||_.usage==="partial"||_.usage==="partial_content_excluded").length:void 0,x=m?.usageDetails!==void 0?m?.usageDetails.filter(_=>_.usage==="partial"||_.usage==="partial_content_excluded").length:void 0;return h!==void 0&&(g.numUsedItems=h),x!==void 0&&(g.numPartiallyUsedItems=x),g})}o(d_,"telemetrizeContextItems");function m_(e){return e.matchScore>0&&e.resolution!=="error"}o(m_,"matchContextItems");function Pj(e,t){let r=_fe(e,t),n=tr(e,Te.ContextProviders)??[];if(r.length===1&&r[0]==="*"||n.length===1&&n[0]==="*")return["*"];let s=e.get(Ec).getIds();return Array.from(new Set([...s,...r,...n]))}o(Pj,"getActiveContextProviders");function _fe(e,t){return yb(e)?["*"]:e.get(Le).contextProviders(t)}o(_fe,"getExpContextProviders");function Xm(e,t){return Pj(e,t).length>0}o(Xm,"useContextProviderAPI");function yfe(e,t){let r=tr(e,Te.ContextProviderTimeBudget);return r!==void 0&&typeof r=="number"?r:e.get(Le).contextProviderTimeBudget(t)}o(yfe,"getContextProviderTimeBudget");var Ks=class{constructor(t){this.ctx=t;this.scheduledResolutions=new Ut(25)}static{o(this,"ContextProviderBridge")}schedule(t,r,n,s,a,l){let c=this.ctx.get(J0),{textDocument:u,originalPosition:d,originalOffset:f,originalVersion:m,editsWithPosition:p}=t,g=c.resolveAllProviders(r,n,{uri:u.uri,languageId:u.detectedLanguageId,version:m,offset:f,position:d,proposedEdits:p.length>0?p:void 0},s,a,l?.data);this.scheduledResolutions.set(r,g)}async resolution(t){let r=this.scheduledResolutions.get(t);return r?await r:[]}};var p_=class{constructor(t,r,n){this.languageId=t;this.nodeMatch=r;this.nodeTypesWithBlockOrStmtChild=n}static{o(this,"BaseBlockParser")}async getNodeMatchAtPosition(t,r,n){let s=await Dm(this.languageId,t);try{let l=s.rootNode.descendantForIndex(r);for(;l;){let c=this.nodeMatch[l.type];if(c){if(!this.nodeTypesWithBlockOrStmtChild.has(l.type))break;let u=this.nodeTypesWithBlockOrStmtChild.get(l.type);if((u==""?l.namedChildren[0]:l.childForFieldName(u))?.type==c)break}l=l.parent}return l?n(l):void 0}finally{s.delete()}}getNextBlockAtPosition(t,r,n){return this.getNodeMatchAtPosition(t,r,s=>{let a=s.children.reverse().find(l=>l.type==this.nodeMatch[s.type]);if(a){if(this.languageId=="python"&&a.parent){let l=a.parent.type==":"?a.parent.parent:a.parent,c=l?.nextSibling;for(;c&&c.type=="comment";){let u=c.startPosition.row==a.endPosition.row&&c.startPosition.column>=a.endPosition.column,d=c.startPosition.row>l.endPosition.row&&c.startPosition.column>l.startPosition.column;if(u||d)a=c,c=c.nextSibling;else break}}if(!(a.endIndex>=a.tree.rootNode.endIndex-1&&(a.hasError||a.parent.hasError)))return n(a)}})}async isBlockBodyFinished(t,r,n){let s=(t+r).trimEnd(),a=await this.getNextBlockAtPosition(s,n,l=>l.endIndex);if(a!==void 0&&a<s.length){let l=a-t.length;return l>0?l:void 0}}getNodeStart(t,r){let n=t.trimEnd();return this.getNodeMatchAtPosition(n,r,s=>s.startIndex)}},g_=class extends p_{constructor(r,n,s,a,l){super(r,a,l);this.blockEmptyMatch=n;this.lineMatch=s}static{o(this,"RegexBasedBlockParser")}isBlockStart(r){return this.lineMatch.test(r.trimStart())}async isBlockBodyEmpty(r,n){let s=await this.getNextBlockAtPosition(r,n,a=>{a.startIndex<n&&(n=a.startIndex);let l=r.substring(n,a.endIndex).trim();return l==""||l.replace(/\s/g,"")==this.blockEmptyMatch});return s===void 0||s}async isEmptyBlockStart(r,n){return n=Aj(r,n),this.isBlockStart(bfe(r,n))&&this.isBlockBodyEmpty(r,n)}};function bfe(e,t){let r=e.lastIndexOf(`
[281] Fix | Delete
`,t-1),n=e.indexOf(`
[282] Fix | Delete
`,t);return n<0&&(n=e.length),e.slice(r+1,n)}o(bfe,"getLineAtOffset");function Aj(e,t){let r=t;for(;r>0&&/\s/.test(e.charAt(r-1));)r--;return r}o(Aj,"rewindToNearestNonWs");function Rj(e,t){let r=e.startIndex,n=e.startIndex-e.startPosition.column,s=t.substring(n,r);if(/^\s*$/.test(s))return s}o(Rj,"indent");function vfe(e,t,r){if(t.startPosition.row<=e.startPosition.row)return!1;let n=Rj(e,r),s=Rj(t,r);return n!==void 0&&s!==void 0&&n.startsWith(s)}o(vfe,"outdented");var Z0=class extends p_{constructor(r,n,s,a,l,c,u){super(r,n,s);this.startKeywords=a;this.blockNodeType=l;this.emptyStatementType=c;this.curlyBraceLanguage=u}static{o(this,"TreeSitterBasedBlockParser")}isBlockEmpty(r,n){let s=r.text.trim();return this.curlyBraceLanguage&&(s.startsWith("{")&&(s=s.slice(1)),s.endsWith("}")&&(s=s.slice(0,-1)),s=s.trim()),!!(s.length==0||this.languageId=="python"&&(r.parent?.type=="class_definition"||r.parent?.type=="function_definition")&&r.children.length==1&&xB(r.parent))}async isEmptyBlockStart(r,n){if(n>r.length)throw new RangeError("Invalid offset");for(let l=n;l<r.length&&r.charAt(l)!=`
[283] Fix | Delete
`;l++)if(/\S/.test(r.charAt(l)))return!1;n=Aj(r,n);let[s,a]=await wC(this.languageId,r);try{let l=s.rootNode.descendantForIndex(n-1);if(l==null||this.curlyBraceLanguage&&l.type=="}")return!1;if((this.languageId=="javascript"||this.languageId=="typescript")&&l.parent&&l.parent.type=="object"&&l.parent.text.trim()=="{")return!0;if(this.languageId=="typescript"){let m=l;for(;m.parent;){if(m.type=="function_signature"||m.type=="method_signature"){let p=l.nextSibling;return p&&m.hasError&&vfe(m,p,r)?!0:!m.children.find(h=>h.type==";")&&m.endIndex<=n}m=m.parent}}let c=null,u=null,d=null,f=l;for(;f!=null;){if(f.type==this.blockNodeType){u=f;break}if(this.nodeMatch[f.type]){d=f;break}if(f.type=="ERROR"){c=f;break}f=f.parent}if(u!=null){if(!u.parent||!this.nodeMatch[u.parent.type])return!1;if(this.languageId=="python"){let m=u.previousSibling;if(m!=null&&m.hasError&&(m.text.startsWith('"""')||m.text.startsWith("'''")))return!0}return this.isBlockEmpty(u,n)}if(c!=null){if(c.previousSibling?.type=="module"||c.previousSibling?.type=="internal_module"||c.previousSibling?.type=="def")return!0;if(this.languageId==="python"&&a>=14&&c.hasError&&(c.text.startsWith('"')||c.text.startsWith("'"))){let h=c.parent?.type;if(h==="function_definition"||h==="class_definition"||h==="module")return!0}let m=[...c.children].reverse(),p=m.find(h=>this.startKeywords.includes(h.type)),g=m.find(h=>h.type==this.blockNodeType);if(p){switch(this.languageId){case"python":{p.type=="try"&&l.type=="identifier"&&l.text.length>4&&(g=m.find(_=>_.hasError)?.children.find(_=>_.type=="block"));let h,x=0;for(let _ of c.children){if(_.type==":"&&x==0){h=_;break}_.type=="("&&(x+=1),_.type==")"&&(x-=1)}if(h&&p.endIndex<=h.startIndex&&h.nextSibling){if(p.type=="def"){let _=h.nextSibling;if(_.type=='"'||_.type=="'"||_.type=="ERROR"&&(_.text=='"""'||_.text=="'''"))return!0}return!1}break}case"javascript":{if(p.type==="class")if(a<=13){if(m.find(y=>y.type==="formal_parameters"))return!0}else{let _=c.children;for(let y=0;y<_.length;y++)if(_[y].type==="formal_parameters")return y+1===_.length||_[y+1]?.type==="{"&&y+2===_.length}let h=m.find(_=>_.type=="{");if(h&&h.startIndex>p.endIndex&&h.nextSibling!=null||m.find(_=>_.type=="do")&&p.type=="while"||p.type=="=>"&&p.nextSibling&&p.nextSibling.type!="{")return!1;break}case"typescript":{let h=m.find(_=>_.type=="{");if(h&&h.startIndex>p.endIndex&&h.nextSibling!=null||m.find(_=>_.type=="do")&&p.type=="while"||p.type=="=>"&&p.nextSibling&&p.nextSibling.type!="{")return!1;break}}return g&&g.startIndex>p.endIndex?this.isBlockEmpty(g,n):!0}}if(d!=null){let m=this.nodeMatch[d.type],p=d.children.slice().reverse().find(g=>g.type==m);if(p)return this.isBlockEmpty(p,n);if(this.nodeTypesWithBlockOrStmtChild.has(d.type)){let g=this.nodeTypesWithBlockOrStmtChild.get(d.type),h=g==""?d.children[0]:d.childForFieldName(g);if(h&&h.type!=this.blockNodeType&&h.type!=this.emptyStatementType)return!1}return!0}return!1}finally{s.delete()}}},Tfe={python:new Z0("python",{class_definition:"block",elif_clause:"block",else_clause:"block",except_clause:"block",finally_clause:"block",for_statement:"block",function_definition:"block",if_statement:"block",try_statement:"block",while_statement:"block",with_statement:"block"},new Map,["def","class","if","elif","else","for","while","try","except","finally","with"],"block",null,!1),javascript:new Z0("javascript",{arrow_function:"statement_block",catch_clause:"statement_block",do_statement:"statement_block",else_clause:"statement_block",finally_clause:"statement_block",for_in_statement:"statement_block",for_statement:"statement_block",function:"statement_block",function_expression:"statement_block",function_declaration:"statement_block",generator_function:"statement_block",generator_function_declaration:"statement_block",if_statement:"statement_block",method_definition:"statement_block",try_statement:"statement_block",while_statement:"statement_block",with_statement:"statement_block",class:"class_body",class_declaration:"class_body"},new Map([["arrow_function","body"],["do_statement","body"],["else_clause",""],["for_in_statement","body"],["for_statement","body"],["if_statement","consequence"],["while_statement","body"],["with_statement","body"]]),["=>","try","catch","finally","do","for","if","else","while","with","function","function*","class"],"statement_block","empty_statement",!0),typescript:new Z0("typescript",{ambient_declaration:"statement_block",arrow_function:"statement_block",catch_clause:"statement_block",do_statement:"statement_block",else_clause:"statement_block",finally_clause:"statement_block",for_in_statement:"statement_block",for_statement:"statement_block",function:"statement_block",function_expression:"statement_block",function_declaration:"statement_block",generator_function:"statement_block",generator_function_declaration:"statement_block",if_statement:"statement_block",internal_module:"statement_block",method_definition:"statement_block",module:"statement_block",try_statement:"statement_block",while_statement:"statement_block",abstract_class_declaration:"class_body",class:"class_body",class_declaration:"class_body"},new Map([["arrow_function","body"],["do_statement","body"],["else_clause",""],["for_in_statement","body"],["for_statement","body"],["if_statement","consequence"],["while_statement","body"],["with_statement","body"]]),["declare","=>","try","catch","finally","do","for","if","else","while","with","function","function*","class"],"statement_block","empty_statement",!0),tsx:new Z0("typescriptreact",{ambient_declaration:"statement_block",arrow_function:"statement_block",catch_clause:"statement_block",do_statement:"statement_block",else_clause:"statement_block",finally_clause:"statement_block",for_in_statement:"statement_block",for_statement:"statement_block",function:"statement_block",function_expression:"statement_block",function_declaration:"statement_block",generator_function:"statement_block",generator_function_declaration:"statement_block",if_statement:"statement_block",internal_module:"statement_block",method_definition:"statement_block",module:"statement_block",try_statement:"statement_block",while_statement:"statement_block",abstract_class_declaration:"class_body",class:"class_body",class_declaration:"class_body"},new Map([["arrow_function","body"],["do_statement","body"],["else_clause",""],["for_in_statement","body"],["for_statement","body"],["if_statement","consequence"],["while_statement","body"],["with_statement","body"]]),["declare","=>","try","catch","finally","do","for","if","else","while","with","function","function*","class"],"statement_block","empty_statement",!0),go:new g_("go","{}",/\b(func|if|else|for)\b/,{communication_case:"block",default_case:"block",expression_case:"block",for_statement:"block",func_literal:"block",function_declaration:"block",if_statement:"block",labeled_statement:"block",method_declaration:"block",type_case:"block"},new Map),ruby:new g_("ruby","end",/\b(BEGIN|END|case|class|def|do|else|elsif|for|if|module|unless|until|while)\b|->/,{begin_block:"}",block:"}",end_block:"}",lambda:"block",for:"do",until:"do",while:"do",case:"end",do:"end",if:"end",method:"end",module:"end",unless:"end",do_block:"end"},new Map),"c-sharp":new Z0("csharp",{},new Map([]),[],"block",null,!0),java:new Z0("java",{},new Map([]),[],"block",null,!0),php:new Z0("php",{},new Map([]),[],"block",null,!0),cpp:new Z0("cpp",{},new Map([]),[],"block",null,!0)};function Dj(e){if(!H0(e))throw new Error(`Language ${e} is not supported`);return Tfe[I3(e)]}o(Dj,"getBlockParser");async function kj(e,t,r){return H0(e)?Dj(e).isEmptyBlockStart(t,r):!1}o(kj,"isEmptyBlockStart");async function Nj(e,t,r,n){if(H0(e))return Dj(e).isBlockBodyFinished(t,r,n)}o(Nj,"isBlockBodyFinished");var bft=new vt("parseBlock");function Oj(e,t,r){let n=t.getText(yi.range(yi.position(0,0),r)),s=t.offsetAt(r),a=t.detectedLanguageId;return l=>Nj(a,n,l,s)}o(Oj,"parsingBlockFinished");function x_(e,t){return kj(e.detectedLanguageId,e.getText(),e.offsetAt(t))}o(x_,"isEmptyBlockStartUtil");var Cfe=["\\{","\\}","\\[","\\]","\\(","\\)"].concat(["then","else","elseif","elif","catch","finally","fi","done","end","loop","until","where","when"].map(e=>e+"\\b")),Efe=new RegExp(`^(${Cfe.join("|")})`);function Ife(e){return Efe.test(e.trimLeft().toLowerCase())}o(Ife,"isContinuationLine");function h_(e){let t=/^(\s*)([^]*)$/.exec(e);if(t&&t[2]&&t[2].length>0)return t[1].length}o(h_,"indentationOfLine");function Lj(e,t){let r=e.getText(),n=e.offsetAt(t);return AE(r,n,e.detectedLanguageId)}o(Lj,"contextIndentation");function AE(e,t,r){let n=e.slice(0,t).split(`
[284] Fix | Delete
`),s=e.slice(t).split(`
[285] Fix | Delete
`);function a(f,m,p){let g=m,h,x;for(;h===void 0&&g>=0&&g<f.length;)h=h_(f[g]),x=g,g+=p;if(r==="python"&&p===-1){g++;let _=f[g].trim();if(_.endsWith('"""')){if(!(_.startsWith('"""')&&_!=='"""'))for(g--;g>=0&&!f[g].trim().startsWith('"""');)g--;if(g>=0)for(h=void 0,g--;h===void 0&&g>=0;)h=h_(f[g]),x=g,g--}}return[h,x]}o(a,"seekNonBlank");let[l,c]=a(n,n.length-1,-1),u=(()=>{if(!(l===void 0||c===void 0))for(let f=c-1;f>=0;f--){let m=h_(n[f]);if(m!==void 0&&m<l)return m}})(),[d]=a(s,1,1);return{prev:u,current:l??0,next:d}}o(AE,"contextIndentationFromText");var wfe=!1;function Sfe(e,t,r){let n=e.split(`
[286] Fix | Delete
`),s=r!==void 0,a=r?.split(`
[287] Fix | Delete
`).pop(),l=0;if(s&&a?.trim()!=""&&n[0].trim()!==""&&l++,!s&&wfe&&n[0].trim()===""&&l++,s||l++,n.length===l)return"continue";let c=Math.max(t.current,t.next??0);for(let u=l;u<n.length;u++){let d=n[u];u==0&&a!==void 0&&(d=a+d);let f=h_(d);if(f!==void 0&&(f<c||f===c&&!Ife(d)))return n.slice(0,u).join(`
[288] Fix | Delete
`).length}return"continue"}o(Sfe,"completionCutOrContinue");function Fj(e,t){return r=>{let n=Sfe(r,e,t);return n==="continue"?void 0:n}}o(Fj,"indentationBlockFinished");var Pfe={tokenizerName:"o200k_base"};function Rfe(e){return{...Pfe,...e}}o(Rfe,"cursorContextOptions");function Xg(e,t={}){let r=Rfe(t),n=cs(r.tokenizerName);if(r.maxLineCount!==void 0&&r.maxLineCount<0)throw new Error("maxLineCount must be non-negative if defined");if(r.maxTokenLength!==void 0&&r.maxTokenLength<0)throw new Error("maxTokenLength must be non-negative if defined");if(r.maxLineCount===0||r.maxTokenLength===0)return{context:"",lineCount:0,tokenLength:0,tokenizerName:r.tokenizerName};let s=e.source.slice(0,e.offset);return r.maxLineCount!==void 0&&(s=s.split(`
[289] Fix | Delete
`).slice(-r.maxLineCount).join(`
[290] Fix | Delete
`)),r.maxTokenLength!==void 0&&(s=n.takeLastLinesTokens(s,r.maxTokenLength)),{context:s,lineCount:s.split(`
[291] Fix | Delete
`).length,tokenLength:n.tokenLength(s),tokenizerName:r.tokenizerName}}o(Xg,"getCursorContext");var Afe={function:"function",snippet:"snippet",snippets:"snippets",variable:"variable",parameter:"parameter",method:"method",class:"class",module:"module",alias:"alias","enum member":"enum member",interface:"interface"};function Mj(e){let t=Afe[e.semantics],r=["snippets"].includes(e.semantics)?"these":"this";return{headline:e.relativePath?`Compare ${r} ${t} from ${e.relativePath}:`:`Compare ${r} ${t}:`,snippet:e.snippet}}o(Mj,"announceSnippet");var DE=class{constructor(t){this.keys=[];this.cache={};this.size=t}static{o(this,"FifoCache")}put(t,r){if(this.cache[t]=r,this.keys.length>this.size){this.keys.push(t);let n=this.keys.shift()??"";delete this.cache[n]}}get(t){return this.cache[t]}};var kE=class{static{o(this,"Tokenizer")}constructor(t){this.stopsForLanguage=Ofe.get(t.languageId)??Nfe}tokenize(t){return new Set(Dfe(t).filter(r=>!this.stopsForLanguage.has(r)))}},Uj=new DE(20),Jm=class{static{o(this,"WindowedMatcher")}constructor(t){this.referenceDoc=t,this.tokenizer=new kE(t)}get referenceTokens(){return Promise.resolve(this.createReferenceTokens())}createReferenceTokens(){return this.referenceTokensCache??=this.tokenizer.tokenize(this._getCursorContextInfo(this.referenceDoc).context)}sortScoredSnippets(t,r="descending"){return r=="ascending"?t.sort((n,s)=>n.score>s.score?1:-1):r=="descending"?t.sort((n,s)=>n.score>s.score?-1:1):t}async retrieveAllSnippets(t,r="descending"){let n=[];if(t.source.length===0||(await this.referenceTokens).size===0)return n;let s=t.source.split(`
[292] Fix | Delete
`),a=this.id()+":"+t.source,l=Uj.get(a)??[],c=l.length==0,u=c?s.map(d=>this.tokenizer.tokenize(d),this.tokenizer):[];for(let[d,[f,m]]of this.getWindowsDelineations(s).entries()){if(c){let h=new Set;u.slice(f,m).forEach(x=>x.forEach(_=>h.add(_),h)),l.push(h)}let p=l[d],g=this.similarityScore(p,await this.referenceTokens);if(n.length&&f>0&&n[n.length-1].endLine>f){n[n.length-1].score<g&&(n[n.length-1].score=g,n[n.length-1].startLine=f,n[n.length-1].endLine=m);continue}n.push({score:g,startLine:f,endLine:m})}return c&&Uj.put(a,l),this.sortScoredSnippets(n,r)}findMatches(t,r){return this.findBestMatch(t,r)}async findBestMatch(t,r){if(t.source.length===0||(await this.referenceTokens).size===0)return[];let n=t.source.split(`
[293] Fix | Delete
`),s=await this.retrieveAllSnippets(t,"descending");if(s.length===0)return[];let a=[];for(let l=0;l<s.length&&l<r;l++)if(s[l].score!==0){let c=n.slice(s[l].startLine,s[l].endLine).join(`
[294] Fix | Delete
`);a.push({snippet:c,semantics:"snippet",provider:"similar-files",...s[l]})}return a}};function Dfe(e){return e.split(/[^a-zA-Z0-9]/).filter(t=>t.length>0)}o(Dfe,"splitIntoWords");var kfe=new Set(["we","our","you","it","its","they","them","their","this","that","these","those","is","are","was","were","be","been","being","have","has","had","having","do","does","did","doing","can","don","t","s","will","would","should","what","which","who","when","where","why","how","a","an","the","and","or","not","no","but","because","as","until","again","further","then","once","here","there","all","any","both","each","few","more","most","other","some","such","above","below","to","during","before","after","of","at","by","about","between","into","through","from","up","down","in","out","on","off","over","under","only","own","same","so","than","too","very","just","now"]),Nfe=new Set(["if","then","else","for","while","with","def","function","return","TODO","import","try","catch","raise","finally","repeat","switch","case","match","assert","continue","break","const","class","enum","struct","static","new","super","this","var",...kfe]),Ofe=new Map([]);function Ufe(e){return Object.keys(e).map(t=>{let r;return e[t].test?r=o(n=>e[t].test(n),"matches"):r=e[t],{matches:r,label:t}})}o(Ufe,"buildLabelRules");var Bfe={opener:/^[[({]/,closer:/^[\])}]/},idt=Ufe(Bfe);function __(e,t){let r=[],n=t.length;if(n==0)return[];if(n<e)return[[0,n]];for(let s=0;s<n-e+1;s++)r.push([s,s+e]);return r}o(__,"getBasicWindowDelineations");var y_=class e extends Jm{static{o(this,"FixedWindowSizeJaccardMatcher")}constructor(t,r){super(t),this.windowLength=r}static{this.FACTORY=o(t=>({to:o(r=>new e(r,t),"to")}),"FACTORY")}id(){return"fixed:"+this.windowLength}getWindowsDelineations(t){return __(this.windowLength,t)}_getCursorContextInfo(t){return Xg(t,{maxLineCount:this.windowLength})}similarityScore(t,r){return $fe(t,r)}};function $fe(e,t){let r=new Set;return e.forEach(n=>{t.has(n)&&r.add(n)}),r.size/(e.size+t.size-r.size)}o($fe,"computeScore");var b_=class e extends Jm{static{o(this,"BlockTokenSubsetMatcher")}constructor(t,r){super(t),this.windowLength=r}static{this.FACTORY=o(t=>({to:o(r=>new e(r,t),"to")}),"FACTORY")}id(){return"fixed:"+this.windowLength}getWindowsDelineations(t){return __(this.windowLength,t)}_getCursorContextInfo(t){return Xg(t,{maxLineCount:this.windowLength})}get referenceTokens(){return this.createReferenceTokensForLanguage()}async createReferenceTokensForLanguage(){return this.referenceTokensCache?this.referenceTokensCache:(this.referenceTokensCache=e.syntaxAwareSupportsLanguage(this.referenceDoc.languageId)?await this.syntaxAwareReferenceTokens():await super.referenceTokens,this.referenceTokensCache)}async syntaxAwareReferenceTokens(){let t=(await this.getEnclosingMemberStart(this.referenceDoc.source,this.referenceDoc.offset))?.startIndex,r=this.referenceDoc.offset,n=t?this.referenceDoc.source.slice(t,r):Xg(this.referenceDoc,{maxLineCount:this.windowLength}).context;return this.tokenizer.tokenize(n)}static syntaxAwareSupportsLanguage(t){switch(t){case"csharp":return!0;default:return!1}}similarityScore(t,r){return jfe(t,r)}async getEnclosingMemberStart(t,r){let n;try{n=await Dm(this.referenceDoc.languageId,t);let s=n.rootNode.namedDescendantForIndex(r);for(;s&&!(e.isMember(s)||e.isBlock(s));)s=s.parent??void 0;return s}finally{n?.delete()}}static isMember(t){switch(t?.type){case"method_declaration":case"property_declaration":case"field_declaration":case"constructor_declaration":return!0;default:return!1}}static isBlock(t){switch(t?.type){case"class_declaration":case"struct_declaration":case"record_declaration":case"enum_declaration":case"interface_declaration":return!0;default:return!1}}};function jfe(e,t){let r=new Set;return t.forEach(n=>{e.has(n)&&r.add(n)}),r.size}o(jfe,"computeScore");var Wfe=0,qfe=60,Hfe=4,zfe=1,Vfe=20,Gfe=1e4,Bj={snippetLength:qfe,threshold:Wfe,maxTopSnippets:Hfe,maxCharPerFile:Gfe,maxNumberOfFiles:Vfe,maxSnippetsPerFile:zfe,useSubsetMatching:!1};var NE={snippetLength:60,threshold:0,maxTopSnippets:16,maxCharPerFile:1e5,maxNumberOfFiles:200,maxSnippetsPerFile:4};function Kfe(e,t){return(t.useSubsetMatching?b_.FACTORY(t.snippetLength):y_.FACTORY(t.snippetLength)).to(e)}o(Kfe,"getMatcher");async function $j(e,t,r){let n=Kfe(e,r);return r.maxTopSnippets===0?[]:(await t.filter(a=>a.source.length<r.maxCharPerFile&&a.source.length>0).slice(0,r.maxNumberOfFiles).reduce(async(a,l)=>(await a).concat((await n.findMatches(l,r.maxSnippetsPerFile)).map(c=>({relativePath:l.relativePath,...c}))),Promise.resolve([]))).filter(a=>a.score&&a.snippet&&a.score>r.threshold).sort((a,l)=>a.score-l.score).slice(-r.maxTopSnippets)}o($j,"getSimilarSnippets");function jj(e,t){return{...NE,useSubsetMatching:OE(e,t)}}o(jj,"getCppSimilarFilesOptions");function Wj(e){return NE.maxTopSnippets}o(Wj,"getCppNumberOfSnippets");var Yfe=new Map([["cpp",jj]]);function v_(e,t,r){let n=Yfe.get(r);return n?n(e,t):{...Bj,useSubsetMatching:OE(e,t)}}o(v_,"getSimilarFilesOptions");var Xfe=new Map([["cpp",Wj]]);function qj(e,t){let r=Xfe.get(t);return r?r(e):mB}o(qj,"getNumberOfSnippets");function OE(e,t){return(t.filtersAndExp.exp.variables.copilotsubsetmatching||tr(e,Te.UseSubsetMatching))??!1}o(OE,"useSubsetMatching");var Jfe="content_excluded";async function T_(e,t,r,n){let s=c_(r,"CodeSnippet");if(s.length===0)return[];let a=new Set,l=s.flatMap(f=>f.data.map(m=>(a.add(m.uri),m.additionalUris?.forEach(p=>a.add(p)),{providerId:f.providerId,data:m}))),c=e.get(wt),u=new Map;await Promise.all(Array.from(a).map(async f=>{u.set(f,await c.getTextDocumentValidation({uri:f}))}));let d=e.get(ni).getStatisticsForCompletion(t);return l.filter(f=>{let p=[f.data.uri,...f.data.additionalUris??[]].every(g=>u.get(g)?.status==="valid");return p?d.addExpectations(f.providerId,[[f.data,"included"]]):d.addExpectations(f.providerId,[[f.data,Jfe]]),p}).map(f=>f.data)}o(T_,"getCodeSnippetsFromContextItems");function Hj(e,t){let r=e.get(wt);return t.map(n=>({snippet:n,relativePath:r.getRelativePath(n)}))}o(Hj,"addRelativePathToCodeSnippets");function rn(e){if(e.children)return Array.isArray(e.children)?e.children.join(""):e.children}o(rn,"Text");function Ic(e){return e.children}o(Ic,"Chunk");function ze(e,t,r){let n=[];Array.isArray(t.children)?n=t.children:t.children&&(n=[t.children]);let s={...t,children:n};return r&&(s.key=r),{type:e,props:s}}o(ze,"functionComponentFunction");function Ys(e){return{type:"f",children:e}}o(Ys,"fragmentFunction");Ys.isFragmentFunction=!0;var C_=o((e,t)=>{let[r,n]=t.useState(),[s,a]=t.useState();if(t.useData(io,d=>{d.codeSnippets!==r&&n(d.codeSnippets),d.document.uri!==s?.uri&&a(d.document)}),!r||r.length===0||!s)return;let l=Hj(e.ctx,r),c=new Map;for(let d of l){let f=d.relativePath??d.snippet.uri,m=c.get(f);m===void 0&&(m=[],c.set(f,m)),m.push(d)}let u=[];for(let[d,f]of c.entries()){let m=f.filter(p=>p.snippet.value.length>0);m.length>0&&u.push({chunkElements:m.map(p=>p.snippet),importance:Math.max(...m.map(p=>p.snippet.importance??0)),uri:d})}if(u.length!==0)return u.sort((d,f)=>f.importance-d.importance),u.reverse(),u.map(d=>{let f=[];return f.push(ze(rn,{children:`Compare ${d.chunkElements.length>1?"these snippets":"this snippet"} from ${d.uri}:`})),d.chunkElements.forEach((m,p)=>{f.push(ze(rn,{source:m,children:m.value},m.id)),d.chunkElements.length>1&&p<d.chunkElements.length-1&&f.push(ze(rn,{children:"---"}))}),ze(Ic,{children:f})})},"CodeSnippets");function LE(e){return e.children}o(LE,"CompletionsContext");function FE(e){return e.children}o(FE,"StableCompletionsContext");function ME(e){return e.children}o(ME,"AdditionalCompletionsContext");function E_(e){return e.name===LE.name||e.name===FE.name||e.name===ME.name}o(E_,"isContextNode");function I_(e,t){if(e.length===0||t.length===0)return{score:e.length+t.length};let r=Array.from({length:e.length}).map(()=>Array.from({length:t.length}).map(()=>0));for(let n=0;n<e.length;n++)r[n][0]=n;for(let n=0;n<t.length;n++)r[0][n]=n;for(let n=0;n<t.length;n++)for(let s=0;s<e.length;s++)r[s][n]=Math.min((s==0?n:r[s-1][n])+1,(n==0?s:r[s][n-1])+1,(s==0||n==0?Math.max(s,n):r[s-1][n-1])+(e[s]==t[n]?0:1));return{score:r[e.length-1][t.length-1]}}o(I_,"findEditDistanceScore");var Jg=50;function UE(e){let t=e*4,r=e*.1;return Math.floor(t+r)}o(UE,"approximateMaxCharacters");function Zg(e,t){let[r,n]=t.useState(),[s,a]=t.useState(),[l,c]=t.useState(0),[u,d]=t.useState(),[f,m]=t.useState();t.useData(io,g=>{let h=g.document;(g.document.uri!==r?.uri||h.getText()!==r?.getText())&&n(h),g.position!==s&&a(g.position),g.suffixMatchThreshold!==u&&d(g.suffixMatchThreshold),g.maxPromptTokens!==l&&c(g.maxPromptTokens),g.tokenizer!==f&&m(g.tokenizer)});let p=UE(l);return ze(Ys,{children:[ze(ff,{document:r,position:s,maxCharacters:p}),ze(w_,{document:r,position:s,suffixMatchThreshold:u,maxCharacters:p,tokenizer:f})]})}o(Zg,"CurrentFile");function ff(e){if(e.document===void 0||e.position===void 0)return ze(rn,{});let t=e.document.getText({start:{line:0,character:0},end:e.position});return t.length>e.maxCharacters&&(t=t.slice(-e.maxCharacters)),ze(rn,{children:t})}o(ff,"BeforeCursor");function w_(e,t){let[r,n]=t.useState("");if(e.document===void 0||e.position===void 0)return ze(rn,{});let s=e.document.getText({start:e.position,end:{line:Number.MAX_VALUE,character:Number.MAX_VALUE}});s.length>e.maxCharacters&&(s=s.slice(0,e.maxCharacters));let a=s.replace(/^.*/,"").trimStart();if(a==="")return ze(rn,{});if(r===a)return ze(rn,{children:r});let l=a;if(r!==""){let c=cs(e.tokenizer),u=c.takeFirstTokens(a,Jg);u.tokens.length>0&&100*I_(u.tokens,c.takeFirstTokens(r,Jg).tokens)?.score<(e.suffixMatchThreshold??T3)*u.tokens.length&&(l=r)}return l!==r&&n(l),ze(rn,{children:l})}o(w_,"AfterCursor");function zj(e,t){let[r,n]=t.useState(),[s,a]=t.useState(),[l,c]=t.useState(0);t.useData(io,d=>{let f=d.document;(d.document.uri!==r?.uri||f.getText()!==r?.getText())&&n(f),d.position!==s&&a(d.position),d.maxPromptTokens!==l&&c(d.maxPromptTokens)});let u=UE(l);return ze(ff,{document:r,position:s,maxCharacters:u})}o(zj,"DocumentPrefix");function Vj(e,t){let[r,n]=t.useState(),[s,a]=t.useState(),[l,c]=t.useState(0),[u,d]=t.useState(),[f,m]=t.useState();t.useData(io,g=>{let h=g.document;(g.document.uri!==r?.uri||h.getText()!==r?.getText())&&n(h),g.position!==s&&a(g.position),g.suffixMatchThreshold!==u&&d(g.suffixMatchThreshold),g.maxPromptTokens!==l&&c(g.maxPromptTokens),g.tokenizer!==f&&m(g.tokenizer)});let p=UE(l);return ze(w_,{document:r,position:s,suffixMatchThreshold:u,maxCharacters:p,tokenizer:f})}o(Vj,"DocumentSuffix");var S_=class{static{o(this,"WishlistElision")}elide(t,r,n,s,a){if(r<=0)throw new Error("Prefix limit must be greater than 0");let[l,c]=this.preparePrefixBlocks(t,a),{elidedSuffix:u,adjustedPrefixTokenLimit:d}=this.elideSuffix(n,s,r,c,a),f=this.elidePrefix(l,d,c,a);return{blocks:[u,...f],cycles:1}}preparePrefixBlocks(t,r){let n=0,s=new Set;return[t.map((l,c)=>{let u=0,f=l.value.split(/([^\n]*\n+)/).filter(p=>p!=="").map(p=>{let g=r.tokenLength(p);return u+=g,n+=g,{line:p,componentPath:l.componentPath,tokens:g}}),m=l.componentPath;if(s.has(m))throw new Error(`Duplicate component path in prefix blocks: ${m}`);return s.add(m),{...l,tokens:u,markedForRemoval:!1,originalIndex:c,lines:f}}),n]}elideSuffix(t,r,n,s,a){let l=t.value;if(l.length===0||r<=0)return{elidedSuffix:{...t,tokens:0,elidedValue:"",elidedTokens:0},adjustedPrefixTokenLimit:n+Math.max(0,r)};s<n&&(r=r+(n-s),n=s);let c=a.takeFirstTokens(l,r);return{elidedSuffix:{...t,value:l,tokens:a.tokenLength(l),elidedValue:c.text,elidedTokens:c.tokens.length},adjustedPrefixTokenLimit:n+Math.max(0,r-c.tokens.length)}}elidePrefix(t,r,n,s){let a=this.removeLowWeightPrefixBlocks(t,r,n),l=a.filter(f=>!f.markedForRemoval).flatMap(f=>f.lines);if(l.length===0)return[];let[c,u]=this.trimPrefixLinesToFit(l,r,s),d=u;return a.map(f=>{if(f.markedForRemoval)return d+f.tokens<=r&&!f.chunks?(d+=f.tokens,{...f,elidedValue:f.value,elidedTokens:f.tokens}):{...f,elidedValue:"",elidedTokens:0};let m=c.filter(g=>g.componentPath===f.componentPath&&g.line!=="").map(g=>g.line).join(""),p=f.tokens;return m!==f.value&&(p=m!==""?s.tokenLength(m):0),{...f,elidedValue:m,elidedTokens:p}})}removeLowWeightPrefixBlocks(t,r,n){let s=n;t.sort((a,l)=>a.weight-l.weight);for(let a of t){if(s<=r)break;if(a.weight!==1&&!(a.chunks&&a.markedForRemoval))if(a.chunks&&a.chunks.size>0)for(let l of t)!l.markedForRemoval&&l.chunks&&[...a.chunks].every(c=>l.chunks?.has(c))&&(l.markedForRemoval=!0,s-=l.tokens);else a.markedForRemoval=!0,s-=a.tokens}return t.sort((a,l)=>a.originalIndex-l.originalIndex)}trimPrefixLinesToFit(t,r,n){let s=0,a=[];for(let l=t.length-1;l>=0;l--){let c=t[l],u=c.tokens;if(s+u<=r)a.unshift(c),s+=u;else break}if(a.length===0){let l=t[t.length-1];if(l&&l.line.length>0){let u=n.takeLastTokens(l.line,r);return a.push({line:u.text,componentPath:l.componentPath,tokens:u.tokens.length}),[a,u.tokens.length]}let c=`Cannot fit prefix within limit of ${r} tokens`;throw new Error(c)}return[a,s]}};function Gj(e){return e.map(t=>t.elidedValue).join("")}o(Gj,"makePrompt");function Kj(e){return e.filter(t=>t.type==="prefix").map(t=>t.elidedValue).join("")}o(Kj,"makePrefixPrompt");function Yj(e){if(e.length===0)return[];let t=new Map;for(let s of e)if(s.type==="context"&&s.index!==void 0){t.has(s.index)||t.set(s.index,[]);let a=s.elidedValue.trim();a.length>0&&t.get(s.index).push(a)}let r=Math.max(...Array.from(t.keys()),-1),n=[];for(let s=0;s<=r;s++){let a=t.get(s);if(a&&a.length>0){let l=a.join(`
[295] Fix | Delete
`).trim();n.push(l)}else n.push("")}return n}o(Yj,"makeContextPrompt");var Zm=class{constructor(t,r=BE()){this.snapshot=t;this.transformers=r}static{o(this,"SnapshotWalker")}walkSnapshot(t){this.walkSnapshotNode(this.snapshot,void 0,t,{})}walkSnapshotNode(t,r,n,s){let a=this.transformers.reduce((c,u)=>u(t,r,c),{...s});if(n(t,r,a))for(let c of t.children??[])this.walkSnapshotNode(c,t,n,a)}};function BE(){return[(e,t,r)=>{r.weight===void 0&&(r.weight=1);let n=e.props?.weight??1,s=typeof n=="number"?Math.max(0,Math.min(1,n)):1;return{...r,weight:s*r.weight}},(e,t,r)=>{if(e.name===Ic.name){let n=r.chunks?new Set(r.chunks):new Set;return n.add(e.path),{...r,chunks:n}}return r},(e,t,r)=>e.props?.source!==void 0?{...r,source:e.props.source}:r]}o(BE,"defaultTransformers");var $E={abap:{lineComment:{start:'"',end:""},markdownLanguageIds:["abap","sap-abap"]},aspdotnet:{lineComment:{start:"<%--",end:"--%>"}},bat:{lineComment:{start:"REM",end:""}},bibtex:{lineComment:{start:"%",end:""},markdownLanguageIds:["bibtex"]},blade:{lineComment:{start:"#",end:""}},BluespecSystemVerilog:{lineComment:{start:"//",end:""}},c:{lineComment:{start:"//",end:""},markdownLanguageIds:["c","h"]},clojure:{lineComment:{start:";",end:""},markdownLanguageIds:["clojure","clj"]},coffeescript:{lineComment:{start:"//",end:""},markdownLanguageIds:["coffeescript","coffee","cson","iced"]},cpp:{lineComment:{start:"//",end:""},markdownLanguageIds:["cpp","hpp","cc","hh","c++","h++","cxx","hxx"]},csharp:{lineComment:{start:"//",end:""},markdownLanguageIds:["csharp","cs"]},css:{lineComment:{start:"/*",end:"*/"}},cuda:{lineComment:{start:"//",end:""}},dart:{lineComment:{start:"//",end:""}},dockerfile:{lineComment:{start:"#",end:""},markdownLanguageIds:["dockerfile","docker"]},dotenv:{lineComment:{start:"#",end:""}},elixir:{lineComment:{start:"#",end:""}},erb:{lineComment:{start:"<%#",end:"%>"}},erlang:{lineComment:{start:"%",end:""},markdownLanguageIds:["erlang","erl"]},fsharp:{lineComment:{start:"//",end:""},markdownLanguageIds:["fsharp","fs","fsx","fsi","fsscript"]},go:{lineComment:{start:"//",end:""},markdownLanguageIds:["go","golang"]},graphql:{lineComment:{start:"#",end:""}},groovy:{lineComment:{start:"//",end:""}},haml:{lineComment:{start:"-#",end:""}},handlebars:{lineComment:{start:"{{!",end:"}}"},markdownLanguageIds:["handlebars","hbs","html.hbs","html.handlebars"]},haskell:{lineComment:{start:"--",end:""},markdownLanguageIds:["haskell","hs"]},hlsl:{lineComment:{start:"//",end:""}},html:{lineComment:{start:"<!--",end:"-->"},markdownLanguageIds:["html","xhtml"]},ini:{lineComment:{start:";",end:""}},java:{lineComment:{start:"//",end:""},markdownLanguageIds:["java","jsp"]},javascript:{lineComment:{start:"//",end:""},markdownLanguageIds:["javascript","js"]},javascriptreact:{lineComment:{start:"//",end:""},markdownLanguageIds:["jsx"]},jsonc:{lineComment:{start:"//",end:""}},jsx:{lineComment:{start:"//",end:""},markdownLanguageIds:["jsx"]},julia:{lineComment:{start:"#",end:""},markdownLanguageIds:["julia","jl"]},kotlin:{lineComment:{start:"//",end:""},markdownLanguageIds:["kotlin","kt"]},latex:{lineComment:{start:"%",end:""},markdownLanguageIds:["tex"]},legend:{lineComment:{start:"//",end:""}},less:{lineComment:{start:"//",end:""}},lua:{lineComment:{start:"--",end:""},markdownLanguageIds:["lua","pluto"]},makefile:{lineComment:{start:"#",end:""},markdownLanguageIds:["makefile","mk","mak","make"]},markdown:{lineComment:{start:"[]: #",end:""},markdownLanguageIds:["markdown","md","mkdown","mkd"]},"objective-c":{lineComment:{start:"//",end:""},markdownLanguageIds:["objectivec","mm","objc","obj-c"]},"objective-cpp":{lineComment:{start:"//",end:""},markdownLanguageIds:["objectivec++","objc+"]},perl:{lineComment:{start:"#",end:""},markdownLanguageIds:["perl","pl","pm"]},php:{lineComment:{start:"//",end:""}},powershell:{lineComment:{start:"#",end:""},markdownLanguageIds:["powershell","ps","ps1"]},pug:{lineComment:{start:"//",end:""}},python:{lineComment:{start:"#",end:""},markdownLanguageIds:["python","py","gyp"]},ql:{lineComment:{start:"//",end:""}},r:{lineComment:{start:"#",end:""}},razor:{lineComment:{start:"<!--",end:"-->"},markdownLanguageIds:["cshtml","razor","razor-cshtml"]},ruby:{lineComment:{start:"#",end:""},markdownLanguageIds:["ruby","rb","gemspec","podspec","thor","irb"]},rust:{lineComment:{start:"//",end:""},markdownLanguageIds:["rust","rs"]},sass:{lineComment:{start:"//",end:""}},scala:{lineComment:{start:"//",end:""}},scss:{lineComment:{start:"//",end:""}},shellscript:{lineComment:{start:"#",end:""},markdownLanguageIds:["bash","sh","zsh"]},slang:{lineComment:{start:"//",end:""}},slim:{lineComment:{start:"/",end:""}},solidity:{lineComment:{start:"//",end:""},markdownLanguageIds:["solidity","sol"]},sql:{lineComment:{start:"--",end:""}},stylus:{lineComment:{start:"//",end:""}},svelte:{lineComment:{start:"<!--",end:"-->"}},swift:{lineComment:{start:"//",end:""}},systemverilog:{lineComment:{start:"//",end:""}},terraform:{lineComment:{start:"#",end:""}},tex:{lineComment:{start:"%",end:""}},typescript:{lineComment:{start:"//",end:""},markdownLanguageIds:["typescript","ts"]},typescriptreact:{lineComment:{start:"//",end:""},markdownLanguageIds:["tsx"]},vb:{lineComment:{start:"'",end:""},markdownLanguageIds:["vb","vbscript"]},verilog:{lineComment:{start:"//",end:""}},"vue-html":{lineComment:{start:"<!--",end:"-->"}},vue:{lineComment:{start:"//",end:""}},xml:{lineComment:{start:"<!--",end:"-->"}},xsl:{lineComment:{start:"<!--",end:"-->"}},yaml:{lineComment:{start:"#",end:""},markdownLanguageIds:["yaml","yml"]}},Xj={};for(let[e,t]of Object.entries($E))if(t.markdownLanguageIds)for(let r of t.markdownLanguageIds)Xj[r]=e;else Xj[e]=e;var Zfe={start:"//",end:""},Qfe=["php","plaintext"],jE={html:"<!DOCTYPE html>",python:"#!/usr/bin/env python3",ruby:"#!/usr/bin/env ruby",shellscript:"#!/bin/sh",yaml:"# YAML data"};function Jj(e){return Object.values(jE).includes(e.trim())}o(Jj,"isShebangLine");function ede({source:e}){return e.startsWith("#!")||e.startsWith("<!DOCTYPE")}o(ede,"hasLanguageMarker");function tde(e,t){let r=$E[t]?$E[t].lineComment:Zfe;if(r){let n=r.end==""?"":" "+r.end;return`${r.start} ${e}${n}`}return""}o(tde,"comment");function Q0(e,t){if(e==="")return"";let r=e.endsWith(`
[296] Fix | Delete
`),s=(r?e.slice(0,-1):e).split(`
[297] Fix | Delete
`).map(a=>tde(a,t)).join(`
[298] Fix | Delete
`);return r?s+`
[299] Fix | Delete
`:s}o(Q0,"commentBlockAsSingles");function P_(e){let{languageId:t}=e;return Qfe.indexOf(t)===-1&&!ede(e)?t in jE?jE[t]:`Language: ${t}`:""}o(P_,"getLanguageMarker");function R_(e){return e.relativePath?`Path: ${e.relativePath}`:""}o(R_,"getPathMarker");function Qg(e){return e===""||e.endsWith(`
[300] Fix | Delete
`)?e:e+`
[301] Fix | Delete
`}o(Qg,"newLineEnded");var rde=5,Qm=class{constructor(){this.renderId=0;this.formatPrefix=Gj}static{o(this,"CompletionsPromptRenderer")}render(t,r,n){let s=this.renderId++,a=performance.now();try{if(n?.isCancellationRequested)return{status:"cancelled"};let l=r.delimiter??"",c=r.tokenizer??"o200k_base",{prefixBlocks:u,suffixBlock:d,componentStatistics:f}=this.processSnapshot(t,l,r.languageId),{prefixTokenLimit:m,suffixTokenLimit:p}=this.getPromptLimits(d,r),g=performance.now(),h=new S_,{blocks:[x,..._]}=h.elide(u,m,d,p,cs(c)),y=performance.now(),b=this.formatPrefix(_),T=this.formatContext?this.formatContext(_):void 0,v=x.elidedValue,S=_.reduce((R,j)=>R+j.elidedTokens,0);return f.push(...nde([..._,x])),{prefix:b,prefixTokens:S,suffix:v,suffixTokens:x.elidedTokens,context:T,status:"ok",metadata:{renderId:s,rendererName:"c",tokenizer:c,elisionTimeMs:y-g,renderTimeMs:performance.now()-a,componentStatistics:f,updateDataTimeMs:f.reduce((R,j)=>R+(j.updateDataTimeMs??0),0)}}}catch(l){return{status:"error",error:l}}}getPromptLimits(t,r){let n=t?.value??"",s=r.promptTokenLimit,a=r.suffixPercent;if(n.length==0||a==0)return{prefixTokenLimit:s,suffixTokenLimit:0};s=n.length>0?s-rde:s;let l=Math.ceil(s*(a/100));return{prefixTokenLimit:s-l,suffixTokenLimit:l}}processSnapshot(t,r,n){let s=[],a=[],l=[],c=!1;if(new Zm(t,WE).walkSnapshot((f,m,p)=>{if(f===t||(f.name===Zg.name&&(c=!0),f.statistics.updateDataTimeMs&&f.statistics.updateDataTimeMs>0&&l.push({componentPath:f.path,updateDataTimeMs:f.statistics.updateDataTimeMs}),f.value===void 0||f.value===""))return!0;let g=p.chunks;if(p.type==="suffix")a.push({value:eh(f.value),type:"suffix",weight:p.weight,componentPath:f.path,nodeStatistics:f.statistics,chunks:g,source:p.source});else{let h=f.value.endsWith(r)?f.value:f.value+r,x=h;p.type==="prefix"?x=f.value:Jj(f.value)?x=h:x=Q0(h,n),s.push({type:p.type==="prefix"?"prefix":"context",value:eh(x),weight:p.weight,componentPath:f.path,nodeStatistics:f.statistics,chunks:g,source:p.source})}return!0}),!c)throw new Error(`Node of type ${Zg.name} not found`);if(a.length>1)throw new Error("Only one suffix is allowed");let d=a.length===1?a[0]:{componentPath:"",value:"",weight:1,nodeStatistics:{},type:"suffix"};return{prefixBlocks:s,suffixBlock:d,componentStatistics:l}}},WE=[...BE(),(e,t,r)=>E_(e)?{...r,type:"context"}:r,(e,t,r)=>e.name===ff.name?{...r,type:"prefix"}:r,(e,t,r)=>e.name===w_.name?{...r,type:"suffix"}:r];function nde(e){return e.map(t=>{let r={componentPath:t.componentPath};return t.tokens!==0&&(r.expectedTokens=t.tokens,r.actualTokens=t.elidedTokens),t.nodeStatistics.updateDataTimeMs!==void 0&&(r.updateDataTimeMs=t.nodeStatistics.updateDataTimeMs),t.source&&(r.source=t.source),r})}o(nde,"computeComponentStatistics");function eh(e){return e.replace(/\r\n?/g,`
[302] Fix | Delete
`)}o(eh,"normalizeLineEndings");var A_=o((e,t)=>{let[r,n]=t.useState();if(t.useData(io,s=>{s.document.uri!==r?.uri&&n(s.document)}),r){let s=e.ctx.get(wt),a=s.getRelativePath(r),l={uri:r.uri,source:r.getText(),relativePath:a,languageId:r.detectedLanguageId},c=s.findNotebook(r);return l.relativePath&&!c?ze(ide,{docInfo:l}):ze(ode,{docInfo:l})}},"DocumentMarker"),ide=o(e=>ze(rn,{children:R_(e.docInfo)}),"PathMarker"),ode=o(e=>ze(rn,{children:P_(e.docInfo)}),"LanguageMarker");function th(e){if(!e()){debugger;e(),Um(new Dn("Assertion Failed"))}}o(th,"assertFn");var wc=o((e,t)=>e===t,"strictEquals");var Zj=class e{static{o(this,"Node")}static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};var sde=globalThis.performance&&typeof globalThis.performance.now=="function",D_=class e{static{o(this,"StopWatch")}static create(t){return new e(t)}constructor(t){this._now=sde&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Qj=!1,ade=!1,nh;(D=>{D.None=o(()=>Oo.None,"None");function t(E){if(ade){let{onDidAddListener:I}=E,A=rh.create(),w=0;E.onDidAddListener=()=>{++w===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),A.print()),I?.()}}}o(t,"_addLeakageTraceLogic");function r(E,I){return g(E,()=>{},0,void 0,!0,void 0,I)}D.defer=r,o(r,"defer");function n(E){return(I,A=null,w)=>{let P=!1,O;return O=E(M=>{if(!P)return O?O.dispose():P=!0,I.call(A,M)},null,w),P&&O.dispose(),O}}D.once=n,o(n,"once");function s(E,I){return D.once(D.filter(E,I))}D.onceIf=s,o(s,"onceIf");function a(E,I,A){return m((w,P=null,O)=>E(M=>w.call(P,I(M)),null,O),A)}D.map=a,o(a,"map");function l(E,I,A){return m((w,P=null,O)=>E(M=>{I(M),w.call(P,M)},null,O),A)}D.forEach=l,o(l,"forEach");function c(E,I,A){return m((w,P=null,O)=>E(M=>I(M)&&w.call(P,M),null,O),A)}D.filter=c,o(c,"filter");function u(E){return E}D.signal=u,o(u,"signal");function d(...E){return(I,A=null,w)=>{let P=jB(...E.map(O=>O(M=>I.call(A,M))));return p(P,w)}}D.any=d,o(d,"any");function f(E,I,A,w){let P=A;return a(E,O=>(P=I(P,O),P),w)}D.reduce=f,o(f,"reduce");function m(E,I){let A,w={onWillAddFirstListener(){A=E(P.fire,P)},onDidRemoveLastListener(){A?.dispose()}};I||t(w);let P=new Xs(w);return I?.add(P),P.event}o(m,"snapshot");function p(E,I){return I instanceof Array?I.push(E):I&&I.add(E),E}o(p,"addAndReturnDisposable");function g(E,I,A=100,w=!1,P=!1,O,M){let $,G,le,be=0,xe,$e={leakWarningThreshold:O,onWillAddFirstListener(){$=E(Ke=>{be++,G=I(G,Ke),w&&!le&&(Ge.fire(G),G=void 0),xe=o(()=>{let Qe=G;G=void 0,le=void 0,(!w||be>1)&&Ge.fire(Qe),be=0},"doFire"),typeof A=="number"?(clearTimeout(le),le=setTimeout(xe,A)):le===void 0&&(le=0,queueMicrotask(xe))})},onWillRemoveListener(){P&&be>0&&xe?.()},onDidRemoveLastListener(){xe=void 0,$.dispose()}};M||t($e);let Ge=new Xs($e);return M?.add(Ge),Ge.event}D.debounce=g,o(g,"debounce");function h(E,I=0,A){return D.debounce(E,(w,P)=>w?(w.push(P),w):[P],I,void 0,!0,void 0,A)}D.accumulate=h,o(h,"accumulate");function x(E,I=(w,P)=>w===P,A){let w=!0,P;return c(E,O=>{let M=w||!I(O,P);return w=!1,P=O,M},A)}D.latch=x,o(x,"latch");function _(E,I,A){return[D.filter(E,I,A),D.filter(E,w=>!I(w),A)]}D.split=_,o(_,"split");function y(E,I=!1,A=[],w){let P=A.slice(),O=E(G=>{P?P.push(G):$.fire(G)});w&&w.add(O);let M=o(()=>{P?.forEach(G=>$.fire(G)),P=null},"flush"),$=new Xs({onWillAddFirstListener(){O||(O=E(G=>$.fire(G)),w&&w.add(O))},onDidAddFirstListener(){P&&(I?setTimeout(M):M())},onDidRemoveLastListener(){O&&O.dispose(),O=null}});return w&&w.add($),$.event}D.buffer=y,o(y,"buffer");function b(E,I){return o((w,P,O)=>{let M=I(new v);return E(function($){let G=M.evaluate($);G!==T&&w.call(P,G)},void 0,O)},"fn")}D.chain=b,o(b,"chain");let T=Symbol("HaltChainable");class v{constructor(){this.steps=[]}static{o(this,"ChainableSynthesis")}map(I){return this.steps.push(I),this}forEach(I){return this.steps.push(A=>(I(A),A)),this}filter(I){return this.steps.push(A=>I(A)?A:T),this}reduce(I,A){let w=A;return this.steps.push(P=>(w=I(w,P),w)),this}latch(I=(A,w)=>A===w){let A=!0,w;return this.steps.push(P=>{let O=A||!I(P,w);return A=!1,w=P,O?P:T}),this}evaluate(I){for(let A of this.steps)if(I=A(I),I===T)break;return I}}function S(E,I,A=w=>w){let w=o((...$)=>M.fire(A(...$)),"fn"),P=o(()=>E.on(I,w),"onFirstListenerAdd"),O=o(()=>E.removeListener(I,w),"onLastListenerRemove"),M=new Xs({onWillAddFirstListener:P,onDidRemoveLastListener:O});return M.event}D.fromNodeEventEmitter=S,o(S,"fromNodeEventEmitter");function R(E,I,A=w=>w){let w=o((...$)=>M.fire(A(...$)),"fn"),P=o(()=>E.addEventListener(I,w),"onFirstListenerAdd"),O=o(()=>E.removeEventListener(I,w),"onLastListenerRemove"),M=new Xs({onWillAddFirstListener:P,onDidRemoveLastListener:O});return M.event}D.fromDOMEventEmitter=R,o(R,"fromDOMEventEmitter");function j(E,I){return new Promise(A=>n(E)(A,null,I))}D.toPromise=j,o(j,"toPromise");function K(E){let I=new Xs;return E.then(A=>{I.fire(A)},()=>{I.fire(void 0)}).finally(()=>{I.dispose()}),I.event}D.fromPromise=K,o(K,"fromPromise");function V(E,I){return E(A=>I.fire(A))}D.forward=V,o(V,"forward");function Y(E,I,A){return I(A),E(w=>I(w))}D.runAndSubscribe=Y,o(Y,"runAndSubscribe");class N{constructor(I,A){this._observable=I;this._counter=0;this._hasChanged=!1;let w={onWillAddFirstListener:o(()=>{I.addObserver(this),this._observable.reportChanges()},"onWillAddFirstListener"),onDidRemoveLastListener:o(()=>{I.removeObserver(this)},"onDidRemoveLastListener")};A||t(w),this.emitter=new Xs(w),A&&A.add(this.emitter)}static{o(this,"EmitterObserver")}beginUpdate(I){this._counter++}handlePossibleChange(I){}handleChange(I,A){this._hasChanged=!0}endUpdate(I){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function k(E,I){return new N(E,I).emitter.event}D.fromObservable=k,o(k,"fromObservable");function z(E){return(I,A,w)=>{let P=0,O=!1,M={beginUpdate(){P++},endUpdate(){P--,P===0&&(E.reportChanges(),O&&(O=!1,I.call(A)))},handlePossibleChange(){},handleChange(){O=!0}};E.addObserver(M),E.reportChanges();let $={dispose(){E.removeObserver(M)}};return w instanceof K0?w.add($):Array.isArray(w)&&w.push($),$}}D.fromObservableLight=z,o(z,"fromObservableLight")})(nh||={});var qE=class e{constructor(t){this.listenerCount=0;this.invocationCount=0;this.elapsedOverall=0;this.durations=[];this.name=`${t}_${e._idPool++}`,e.all.add(this)}static{o(this,"EventProfiling")}static{this.all=new Set}static{this._idPool=0}start(t){this._stopWatch=new D_,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}},eW=-1;var HE=class e{constructor(t,r,n=(e._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t;this.threshold=r;this.name=n;this._warnCountdown=0}static{o(this,"LeakageMonitor")}static{this._idPool=1}dispose(){this._stacks?.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[a,l]=this.getMostFrequentStack(),c=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${l}):`;console.warn(c),console.warn(a);let u=new zE(c,a);this._errorHandler(u)}return()=>{let a=this._stacks.get(t.value)||0;this._stacks.set(t.value,a-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,r=0;for(let[n,s]of this._stacks)(!t||r<s)&&(t=[n,s],r=s);return t}},rh=class e{constructor(t){this.value=t}static{o(this,"Stacktrace")}static create(){let t=new Error;return new e(t.stack??"")}print(){console.warn(this.value.split(`
[303] Fix | Delete
`).slice(2).join(`
[304] Fix | Delete
`))}},zE=class extends Error{static{o(this,"ListenerLeakError")}constructor(t,r){super(t),this.name="ListenerLeakError",this.stack=r}},VE=class extends Error{static{o(this,"ListenerRefusalError")}constructor(t,r){super(t),this.name="ListenerRefusalError",this.stack=r}},lde=0,ep=class{constructor(t){this.value=t;this.id=lde++}static{o(this,"UniqueContainer")}},cde=2,ude=o((e,t)=>{if(e instanceof ep)t(e);else for(let r=0;r<e.length;r++){let n=e[r];n&&t(n)}},"forEachListener"),Xs=class{constructor(t){this._size=0;this._options=t,this._leakageMon=eW>0||this._options?.leakWarningThreshold?new HE(t?.onListenerError??Um,this._options?.leakWarningThreshold??eW):void 0,this._perfMon=this._options?._profName?new qE(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}static{o(this,"Emitter")}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(Qj){let t=this._listeners;queueMicrotask(()=>{ude(t,r=>r.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(t,r,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let u=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(u);let d=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],f=new VE(`${u}. HINT: Stack shows most frequent listener (${d[1]}-times)`,d[0]);return(this._options?.onListenerError||Um)(f),Oo.None}if(this._disposed)return Oo.None;r&&(t=t.bind(r));let s=new ep(t),a,l;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=rh.create(),a=this._leakageMon.check(s.stack,this._size+1)),Qj&&(s.stack=l??rh.create()),this._listeners?this._listeners instanceof ep?(this._deliveryQueue??=new GE,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let c=Qa(()=>{a?.(),this._removeListener(s)});return n instanceof K0?n.add(c):Array.isArray(n)&&n.push(c),c},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let r=this._listeners,n=r.indexOf(t);if(n===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,r[n]=void 0;let s=this._deliveryQueue.current===this;if(this._size*cde<=r.length){let a=0;for(let l=0;l<r.length;l++)r[l]?r[a++]=r[l]:s&&a<this._deliveryQueue.end&&(this._deliveryQueue.end--,a<this._deliveryQueue.i&&this._deliveryQueue.i--);r.length=a}}_deliver(t,r){if(!t)return;let n=this._options?.onListenerError||Um;if(!n){t.value(r);return}try{t.value(r)}catch(s){n(s)}}_deliverQueue(t){let r=t.current._listeners;for(;t.i<t.end;)this._deliver(r[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ep)this._deliver(this._listeners,t);else{let r=this._deliveryQueue;r.enqueue(this,t,this._listeners.length),this._deliverQueue(r)}this._perfMon?.stop()}hasListeners(){return this._size>0}};var GE=class{constructor(){this.i=-1;this.end=0}static{o(this,"EventDeliveryQueuePrivate")}enqueue(t,r,n){this.i=0,this.end=n,this.current=t,this.value=r}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};var Js=class{constructor(t,r,n){this.owner=t;this.debugNameSource=r;this.referenceFn=n}static{o(this,"DebugNameData")}getDebugName(t){return iW(t,this)}},tW=new Map,KE=new WeakMap;function iW(e,t){let r=KE.get(e);if(r)return r;let n=fde(e,t);if(n){let s=tW.get(n)??0;s++,tW.set(n,s);let a=s===1?n:`${n}#${s}`;return KE.set(e,a),a}}o(iW,"getDebugName");function fde(e,t){let r=KE.get(e);if(r)return r;let n=t.owner?mde(t.owner)+".":"",s,a=t.debugNameSource;if(a!==void 0)if(typeof a=="function"){if(s=a(),s!==void 0)return n+s}else return n+a;let l=t.referenceFn;if(l!==void 0&&(s=k_(l),s!==void 0))return n+s;if(t.owner!==void 0){let c=dde(t.owner,e);if(c!==void 0)return n+c}}o(fde,"computeDebugName");function dde(e,t){for(let r in e)if(e[r]===t)return r}o(dde,"findKey");var rW=new Map,nW=new WeakMap;function mde(e){let t=nW.get(e);if(t)return t;let r=pde(e),n=rW.get(r)??0;n++,rW.set(r,n);let s=n===1?r:`${r}#${n}`;return nW.set(e,s),s}o(mde,"formatOwner");function pde(e){let t=e.constructor;return t?t.name:"Object"}o(pde,"getClassName");function k_(e){let t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t);return(n?n[1]:void 0)?.trim()}o(k_,"getFunctionName");var df;function O_(e){df?df instanceof N_?df.loggers.push(e):df=new N_([df,e]):df=e}o(O_,"addLogger");function nn(){return df}o(nn,"getLogger");var YE;function oW(e){YE=e}o(oW,"setLogObservableFn");function sW(e){YE&&YE(e)}o(sW,"logObservable");var N_=class{constructor(t){this.loggers=t}static{o(this,"ComposedLogger")}handleObservableCreated(t){for(let r of this.loggers)r.handleObservableCreated(t)}handleOnListenerCountChanged(t,r){for(let n of this.loggers)n.handleOnListenerCountChanged(t,r)}handleObservableUpdated(t,r){for(let n of this.loggers)n.handleObservableUpdated(t,r)}handleAutorunCreated(t){for(let r of this.loggers)r.handleAutorunCreated(t)}handleAutorunDisposed(t){for(let r of this.loggers)r.handleAutorunDisposed(t)}handleAutorunDependencyChanged(t,r,n){for(let s of this.loggers)s.handleAutorunDependencyChanged(t,r,n)}handleAutorunStarted(t){for(let r of this.loggers)r.handleAutorunStarted(t)}handleAutorunFinished(t){for(let r of this.loggers)r.handleAutorunFinished(t)}handleDerivedDependencyChanged(t,r,n){for(let s of this.loggers)s.handleDerivedDependencyChanged(t,r,n)}handleDerivedCleared(t){for(let r of this.loggers)r.handleDerivedCleared(t)}handleBeginTransaction(t){for(let r of this.loggers)r.handleBeginTransaction(t)}handleEndTransaction(t){for(let r of this.loggers)r.handleEndTransaction(t)}};var aW;function lW(e){aW=e}o(lW,"_setRecomputeInitiallyAndOnChange");var cW;function uW(e){cW=e}o(uW,"_setKeepObserved");var XE;function fW(e){XE=e}o(fW,"_setDerivedOpts");var L_=class{static{o(this,"ConvenientObservable")}get TChange(){return null}reportChanges(){this.get()}read(t){return t?t.readObservable(this):this.get()}map(t,r){let n=r===void 0?void 0:t,s=r===void 0?t:r;return XE({owner:n,debugName:o(()=>{let a=k_(s);if(a!==void 0)return a;let c=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());if(c)return`${this.debugName}.${c[2]}`;if(!n)return`${this.debugName} (mapped)`},"debugName"),debugReferenceFn:s},a=>s(this.read(a),a))}flatten(){return XE({owner:void 0,debugName:o(()=>`${this.debugName} (flattened)`,"debugName")},t=>this.read(t).read(t))}recomputeInitiallyAndOnChange(t,r){return t.add(aW(this,r)),this}keepObserved(t){return t.add(cW(this)),this}get debugValue(){return this.get()}},mf=class extends L_{constructor(){super();this.observers=new Set;nn()?.handleObservableCreated(this)}static{o(this,"BaseObservable")}addObserver(r){let n=this.observers.size;this.observers.add(r),n===0&&this.onFirstObserverAdded(),n!==this.observers.size&&nn()?.handleOnListenerCountChanged(this,this.observers.size)}removeObserver(r){let n=this.observers.delete(r);n&&this.observers.size===0&&this.onLastObserverRemoved(),n&&nn()?.handleOnListenerCountChanged(this,this.observers.size)}onFirstObserverAdded(){}onLastObserverRemoved(){}log(){let r=!!nn();return sW(this),r||nn()?.handleObservableCreated(this),this}};function F_(e,t){let r=new ih(e,t);try{e(r)}finally{r.finish()}}o(F_,"transaction");function JE(e,t,r){e?t(e):F_(t,r)}o(JE,"subtransaction");var ih=class{constructor(t,r){this._fn=t;this._getDebugName=r;this.updatingObservers=[];nn()?.handleBeginTransaction(this)}static{o(this,"TransactionImpl")}getDebugName(){return this._getDebugName?this._getDebugName():k_(this._fn)}updateObserver(t,r){this.updatingObservers.push({observer:t,observable:r}),t.beginUpdate(r)}finish(){let t=this.updatingObservers;for(let r=0;r<t.length;r++){let{observer:n,observable:s}=t[r];n.endUpdate(s)}this.updatingObservers=null,nn()?.handleEndTransaction(this)}};function oh(e){return new M_(new Js(void 0,void 0,e),e,void 0,void 0)}o(oh,"autorun");var M_=class{constructor(t,r,n,s){this._debugNameData=t;this._runFn=r;this.createChangeSummary=n;this._handleChange=s;this.state=2;this.updateCount=0;this.disposed=!1;this.dependencies=new Set;this.dependenciesToBeRemoved=new Set;this._isRunning=!1;this.changeSummary=this.createChangeSummary?.(),nn()?.handleAutorunCreated(this),this._runIfNeeded(),$m(this)}static{o(this,"AutorunObserver")}get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}dispose(){this.disposed=!0;for(let t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),nn()?.handleAutorunDisposed(this),jm(this)}_runIfNeeded(){if(this.state===3)return;let t=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=t,this.state=3;try{if(!this.disposed){nn()?.handleAutorunStarted(this);let r=this.changeSummary;try{this.changeSummary=this.createChangeSummary?.(),this._isRunning=!0,this._runFn(this,r)}catch(n){nf(n)}finally{this._isRunning=!1}}}finally{this.disposed||nn()?.handleAutorunFinished(this);for(let r of this.dependenciesToBeRemoved)r.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(t){this.state===3&&(this.state=1),this.updateCount++}endUpdate(t){try{if(this.updateCount===1)do{if(this.state===1){this.state=3;for(let r of this.dependencies)if(r.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3)}finally{this.updateCount--}th(()=>this.updateCount>=0)}handlePossibleChange(t){this.state===3&&this._isDependency(t)&&(this.state=1)}handleChange(t,r){if(this._isDependency(t)){nn()?.handleAutorunDependencyChanged(this,t,r);try{(this._handleChange?this._handleChange({changedObservable:t,change:r,didChange:o(s=>s===t,"didChange")},this.changeSummary):!0)&&(this.state=2)}catch(n){nf(n)}}}_isDependency(t){return this.dependencies.has(t)&&!this.dependenciesToBeRemoved.has(t)}readObservable(t){if(!this._isRunning)throw new Dn("The reader object cannot be used outside its compute function!");if(this.disposed)return t.get();t.addObserver(this);let r=t.get();return this.dependencies.add(t),this.dependenciesToBeRemoved.delete(t),r}};(t=>t.Observer=M_)(oh||={});function ZE(e,t){return new pf(new Js(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??wc)}o(ZE,"derivedOpts");fW(ZE);var pf=class extends mf{constructor(r,n,s,a,l=void 0,c){super();this._debugNameData=r;this._computeFn=n;this.createChangeSummary=s;this._handleChange=a;this._handleLastObserverRemoved=l;this._equalityComparator=c;this.state=0;this.value=void 0;this.updateCount=0;this.dependencies=new Set;this.dependenciesToBeRemoved=new Set;this.changeSummary=void 0;this._isUpdating=!1;this._isComputing=!1;this._removedObserverToCallEndUpdateOn=null;this._isReaderValid=!1;this.changeSummary=this.createChangeSummary?.()}static{o(this,"Derived")}get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}onLastObserverRemoved(){this.state=0,this.value=void 0,nn()?.handleDerivedCleared(this);for(let r of this.dependencies)r.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(this._isComputing,this.observers.size===0){let n;try{this._isReaderValid=!0,n=this._computeFn(this,this.createChangeSummary?.())}finally{this._isReaderValid=!1}return this.onLastObserverRemoved(),n}else{do{if(this.state===1){for(let n of this.dependencies)if(n.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){if(this.state===3)return;let r=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=r;let n=this.state!==0,s=this.value;this.state=3;let a=!1;this._isComputing=!0;try{let l=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this._isReaderValid=!0,this.value=this._computeFn(this,l)}finally{this._isReaderValid=!1;for(let c of this.dependenciesToBeRemoved)c.removeObserver(this);this.dependenciesToBeRemoved.clear()}a=n&&!this._equalityComparator(s,this.value),nn()?.handleObservableUpdated(this,{oldValue:s,newValue:this.value,change:void 0,didChange:a,hadValue:n})}catch(l){nf(l)}if(this._isComputing=!1,a)for(let l of this.observers)l.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(r){if(this._isUpdating)throw new Dn("Cyclic deriveds are not supported yet!");this.updateCount++,this._isUpdating=!0;try{let n=this.updateCount===1;if(this.state===3&&(this.state=1,!n))for(let s of this.observers)s.handlePossibleChange(this);if(n)for(let s of this.observers)s.beginUpdate(this)}finally{this._isUpdating=!1}}endUpdate(r){if(this.updateCount--,this.updateCount===0){let n=[...this.observers];for(let s of n)s.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let s=[...this._removedObserverToCallEndUpdateOn];this._removedObserverToCallEndUpdateOn=null;for(let a of s)a.endUpdate(this)}}th(()=>this.updateCount>=0)}handlePossibleChange(r){if(this.state===3&&this.dependencies.has(r)&&!this.dependenciesToBeRemoved.has(r)){this.state=1;for(let n of this.observers)n.handlePossibleChange(this)}}handleChange(r,n){if(this.dependencies.has(r)&&!this.dependenciesToBeRemoved.has(r)){nn()?.handleDerivedDependencyChanged(this,r,n);let s=!1;try{s=this._handleChange?this._handleChange({changedObservable:r,change:n,didChange:o(l=>l===r,"didChange")},this.changeSummary):!0}catch(l){nf(l)}let a=this.state===3;if(s&&(this.state===1||a)&&(this.state=2,a))for(let l of this.observers)l.handlePossibleChange(this)}}readObservable(r){if(!this._isReaderValid)throw new Dn("The reader object cannot be used outside its compute function!");r.addObserver(this);let n=r.get();return this.dependencies.add(r),this.dependenciesToBeRemoved.delete(r),n}addObserver(r){let n=!this.observers.has(r)&&this.updateCount>0;super.addObserver(r),n&&(this._removedObserverToCallEndUpdateOn&&this._removedObserverToCallEndUpdateOn.has(r)?this._removedObserverToCallEndUpdateOn.delete(r):r.beginUpdate(this))}removeObserver(r){this.observers.has(r)&&this.updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set),this._removedObserverToCallEndUpdateOn.add(r)),super.removeObserver(r)}};function eI(...e){let t,r,n;return e.length===3?[t,r,n]=e:[r,n]=e,new Sc(new Js(t,void 0,n),r,n,()=>Sc.globalTransaction,wc)}o(eI,"observableFromEvent");var Sc=class extends mf{constructor(r,n,s,a,l){super();this._debugNameData=r;this.event=n;this._getValue=s;this._getTransaction=a;this._equalityComparator=l;this.hasValue=!1;this.handleEvent=o(r=>{let n=this._getValue(r),s=this.value,a=!this.hasValue||!this._equalityComparator(s,n),l=!1;a&&(this.value=n,this.hasValue&&(l=!0,JE(this._getTransaction(),c=>{nn()?.handleObservableUpdated(this,{oldValue:s,newValue:n,change:void 0,didChange:a,hadValue:this.hasValue});for(let u of this.observers)c.updateObserver(u,this),u.handleChange(this,void 0)},()=>{let c=this.getDebugName();return"Event fired"+(c?`: ${c}`:"")})),this.hasValue=!0),l||nn()?.handleObservableUpdated(this,{oldValue:s,newValue:n,change:void 0,didChange:a,hadValue:this.hasValue})},"handleEvent")}static{o(this,"FromEventObservable")}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){let r=this.getDebugName();return"From Event"+(r?`: ${r}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}};(r=>{r.Observer=Sc;function t(n,s){let a=!1;Sc.globalTransaction===void 0&&(Sc.globalTransaction=n,a=!0);try{s()}finally{a&&(Sc.globalTransaction=void 0)}}r.batchEventsGlobally=t,o(t,"batchEventsGlobally")})(eI||={});function mW(e){let t=new U_(!1,void 0);return e.addObserver(t),Qa(()=>{e.removeObserver(t)})}o(mW,"keepObserved");uW(mW);function pW(e,t){let r=new U_(!0,t);return e.addObserver(r),t?t(e.get()):e.reportChanges(),Qa(()=>{e.removeObserver(r)})}o(pW,"recomputeInitiallyAndOnChange");lW(pW);var U_=class{constructor(t,r){this._forceRecompute=t;this._handleValue=r;this._counter=0}static{o(this,"KeepAliveObserver")}beginUpdate(t){this._counter++}endUpdate(t){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(t.get()):t.reportChanges())}handlePossibleChange(t){}handleChange(t,r){}};var gW=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),hW;(n=>{function e(s){return s===n.None||s===n.Cancelled||s instanceof tI?!0:!s||typeof s!="object"?!1:typeof s.isCancellationRequested=="boolean"&&typeof s.onCancellationRequested=="function"}n.isCancellationToken=e,o(e,"isCancellationToken"),n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:nh.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:gW})})(hW||={});var tI=class{constructor(){this._isCancelled=!1;this._emitter=null}static{o(this,"MutableToken")}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?gW:(this._emitter||(this._emitter=new Xs),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}};var B_;function _W(e){B_||(B_=new ah,O_(B_)),B_.addFilteredObj(e)}o(_W,"logObservableToConsole");var ah=class{constructor(){this.indentation=0;this.changedObservablesSets=new WeakMap}static{o(this,"ConsoleObservableLogger")}addFilteredObj(t){this._filteredObjects||(this._filteredObjects=new Set),this._filteredObjects.add(t)}_isIncluded(t){return this._filteredObjects?.has(t)??!0}textToConsoleArgs(t){return xde([tp(bde("| ",this.indentation)),t])}formatInfo(t){return t.hadValue?t.didChange?[tp(" "),ps(sh(t.oldValue,70),{color:"red",strikeThrough:!0}),tp(" "),ps(sh(t.newValue,60),{color:"green"})]:[tp(" (unchanged)")]:[tp(" "),ps(sh(t.newValue,60),{color:"green"}),tp(" (initial)")]}handleObservableCreated(t){if(t instanceof pf){let r=t;if(this.changedObservablesSets.set(r,new Set),!1){let s=[];r.__debugUpdating=s;let a=r.beginUpdate;r.beginUpdate=c=>(s.push(c),a.apply(r,[c]));let l=r.endUpdate;r.endUpdate=c=>{let u=s.indexOf(c);return u===-1&&console.error("endUpdate called without beginUpdate",r.debugName,c.debugName),s.splice(u,1),l.apply(r,[c])}}}}handleOnListenerCountChanged(t,r){}handleObservableUpdated(t,r){if(this._isIncluded(t)){if(t instanceof pf){this._handleDerivedRecomputed(t,r);return}console.log(...this.textToConsoleArgs([rp("observable value changed"),ps(t.debugName,{color:"BlueViolet"}),...this.formatInfo(r)]))}}formatChanges(t){if(t.size!==0)return ps(" (changed deps: "+[...t].map(r=>r.debugName).join(", ")+")",{color:"gray"})}handleDerivedDependencyChanged(t,r,n){this._isIncluded(t)&&this.changedObservablesSets.get(t)?.add(r)}_handleDerivedRecomputed(t,r){if(!this._isIncluded(t))return;let n=this.changedObservablesSets.get(t);n&&(console.log(...this.textToConsoleArgs([rp("derived recomputed"),ps(t.debugName,{color:"BlueViolet"}),...this.formatInfo(r),this.formatChanges(n),{data:[{fn:t._debugNameData.referenceFn??t._computeFn}]}])),n.clear())}handleDerivedCleared(t){this._isIncluded(t)&&console.log(...this.textToConsoleArgs([rp("derived cleared"),ps(t.debugName,{color:"BlueViolet"})]))}handleFromEventObservableTriggered(t,r){this._isIncluded(t)&&console.log(...this.textToConsoleArgs([rp("observable from event triggered"),ps(t.debugName,{color:"BlueViolet"}),...this.formatInfo(r),{data:[{fn:t._getValue}]}]))}handleAutorunCreated(t){this._isIncluded(t)&&this.changedObservablesSets.set(t,new Set)}handleAutorunDisposed(t){}handleAutorunDependencyChanged(t,r,n){this._isIncluded(t)&&this.changedObservablesSets.get(t).add(r)}handleAutorunStarted(t){let r=this.changedObservablesSets.get(t);r&&(this._isIncluded(t)&&console.log(...this.textToConsoleArgs([rp("autorun"),ps(t.debugName,{color:"BlueViolet"}),this.formatChanges(r),{data:[{fn:t._debugNameData.referenceFn??t._runFn}]}])),r.clear(),this.indentation++)}handleAutorunFinished(t){this.indentation--}handleBeginTransaction(t){let r=t.getDebugName();r===void 0&&(r=""),this._isIncluded(t)&&console.log(...this.textToConsoleArgs([rp("transaction"),ps(r,{color:"BlueViolet"}),{data:[{fn:t._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}};function xde(e){let t=new Array,r=[],n="";function s(l){if("length"in l)for(let c of l)c&&s(c);else"text"in l?(n+=`%c${l.text}`,t.push(l.style),l.data&&r.push(...l.data)):"data"in l&&r.push(...l.data)}o(s,"process"),s(e);let a=[n,...t];return a.push(...r),a}o(xde,"consoleTextToArgs");function tp(e){return ps(e,{color:"black"})}o(tp,"normalText");function rp(e){return ps(vde(`${e}: `,10),{color:"black",bold:!0})}o(rp,"formatKind");function ps(e,t={color:"black"}){function r(s){return Object.entries(s).reduce((a,[l,c])=>`${a}${l}:${c};`,"")}o(r,"objToCss");let n={color:t.color};return t.strikeThrough&&(n["text-decoration"]="line-through"),t.bold&&(n["font-weight"]="bold"),{text:e,style:r(n)}}o(ps,"styled");function sh(e,t){switch(typeof e){case"number":return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return e===null?"null":Array.isArray(e)?_de(e,t):yde(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;default:return""+e}}o(sh,"formatValue");function _de(e,t){let r="[ ",n=!0;for(let s of e){if(n||(r+=", "),r.length-5>t){r+="...";break}n=!1,r+=`${sh(s,t-r.length)}`}return r+=" ]",r}o(_de,"formatArray");function yde(e,t){if(typeof e.toString=="function"&&e.toString!==Object.prototype.toString){let s=e.toString();return s.length<=t?s:s.substring(0,t-3)+"..."}let r="{ ",n=!0;for(let[s,a]of Object.entries(e)){if(n||(r+=", "),r.length-5>t){r+="...";break}n=!1,r+=`${s}: ${sh(a,t-r.length)}`}return r+=" }",r}o(yde,"formatObject");function bde(e,t){let r="";for(let n=1;n<=t;n++)r+=e;return r}o(bde,"repeat");function vde(e,t){for(;e.length<t;)e+=" ";return e}o(vde,"padStr");oW(_W);var Ede=!1;Ede&&O_(new ah);var yW;(r=>{r.PlainText="plaintext";function t(n){return n}r.create=t,o(t,"create")})(yW||={});function Ide(e){return e}o(Ide,"identity");var $_=class{constructor(t,r){this.lastCache=void 0;this.lastArgKey=void 0;typeof t=="function"?(this._fn=t,this._computeKey=Ide):(this._fn=r,this._computeKey=t.getCacheKey)}static{o(this,"LRUCachedFunction")}get(t){let r=this._computeKey(t);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this._fn(t)),this.lastCache}};var lh=class{constructor(t){this.executor=t;this._didRun=!1}static{o(this,"Lazy")}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Sht=String.fromCharCode(65279);var bW=class e{static{o(this,"GraphemeBreakTree")}static{this._INSTANCE=null}static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=wde()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;let r=this._data,n=r.length/3,s=1;for(;s<=n;)if(t<r[3*s])s=2*s;else if(t>r[3*s+1])s=2*s+1;else return r[3*s+2];return 0}};function wde(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}o(wde,"getGraphemeBreakRawData");var vW=class e{constructor(t){this.confusableDictionary=t}static{o(this,"AmbiguousCharacters")}static{this.ambiguousCharacterData=new lh(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new $_({getCacheKey:JSON.stringify},t=>{function r(f){let m=new Map;for(let p=0;p<f.length;p+=2)m.set(f[p],f[p+1]);return m}o(r,"arrayToMap");function n(f,m){let p=new Map(f);for(let[g,h]of m)p.set(g,h);return p}o(n,"mergeMaps");function s(f,m){if(!f)return m;let p=new Map;for(let[g,h]of f)m.has(g)&&p.set(g,h);return p}o(s,"intersectMaps");let a=this.ambiguousCharacterData.value,l=t.filter(f=>!f.startsWith("_")&&f in a);l.length===0&&(l=["_default"]);let c;for(let f of l){let m=r(a[f]);c=s(c,m)}let u=r(a._common),d=n(u,c);return new e(d)})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new lh(()=>Object.keys(e.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")))}static getLocales(){return e._locales.value}isAmbiguous(t){return this.confusableDictionary.has(t)}containsAmbiguousCharacter(t){for(let r=0;r<t.length;r++){let n=t.codePointAt(r);if(typeof n=="number"&&this.isAmbiguous(n))return!0}return!1}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},TW=class e{static{o(this,"InvisibleCharacters")}static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static containsInvisibleCharacter(t){for(let r=0;r<t.length;r++){let n=t.codePointAt(r);if(typeof n=="number"&&e.isInvisibleCharacter(n))return!0}return!1}static get codePoints(){return e.getData()}};var ch=class e{constructor(t,r){this.start=t;this.endExclusive=r;if(t>r)throw new Dn(`Invalid range: ${this.toString()}`)}static{o(this,"OffsetRange")}static fromTo(t,r){return new e(t,r)}static addRange(t,r){let n=0;for(;n<r.length&&r[n].endExclusive<t.start;)n++;let s=n;for(;s<r.length&&r[s].start<=t.endExclusive;)s++;if(n===s)r.splice(n,0,t);else{let a=Math.min(t.start,r[n].start),l=Math.max(t.endExclusive,r[s-1].endExclusive);r.splice(n,s-n,new e(a,l))}}static tryCreate(t,r){if(!(t>r))return new e(t,r)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,r){return new e(t,t+r)}static emptyAt(t){return new e(t,t)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);if(r<=n)return new e(r,n)}intersectionLength(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);return Math.max(0,n-r)}intersects(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);return r<n}intersectsOrTouches(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);return r<=n}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new Dn(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new Dn(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}map(t){let r=[];for(let n=this.start;n<this.endExclusive;n++)r.push(t(n));return r}forEach(t){for(let r=this.start;r<this.endExclusive;r++)t(r)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new Dn(`Invalid join: ${this.toString()} and ${t.toString()}`);return new e(this.start,t.endExclusive)}};var nl=class e{static{o(this,"Position")}constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new e(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return e.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<r.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<=r.column}static compare(t,r){let n=t.lineNumber|0,s=r.lineNumber|0;if(n===s){let a=t.column|0,l=r.column|0;return a-l}return n-s}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var Zs=class e{static{o(this,"Range")}constructor(t,r,n,s){t>n||t===n&&r>s?(this.startLineNumber=n,this.startColumn=s,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=s)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<t.startColumn||r.lineNumber===t.endLineNumber&&r.column>t.endColumn)}static strictContainsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<=t.startColumn||r.lineNumber===t.endLineNumber&&r.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,r){let n,s,a,l;return r.startLineNumber<t.startLineNumber?(n=r.startLineNumber,s=r.startColumn):r.startLineNumber===t.startLineNumber?(n=r.startLineNumber,s=Math.min(r.startColumn,t.startColumn)):(n=t.startLineNumber,s=t.startColumn),r.endLineNumber>t.endLineNumber?(a=r.endLineNumber,l=r.endColumn):r.endLineNumber===t.endLineNumber?(a=r.endLineNumber,l=Math.max(r.endColumn,t.endColumn)):(a=t.endLineNumber,l=t.endColumn),new e(n,s,a,l)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,r){let n=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,l=t.endColumn,c=r.startLineNumber,u=r.startColumn,d=r.endLineNumber,f=r.endColumn;return n<c?(n=c,s=u):n===c&&(s=Math.max(s,u)),a>d?(a=d,l=f):a===d&&(l=Math.min(l,f)),n>a||n===a&&s>l?null:new e(n,s,a,l)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,r){return!t&&!r?!0:!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new nl(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new nl(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new e(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new e(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<t.startColumn)}static areIntersecting(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<=r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,r){if(t&&r){let a=t.startLineNumber|0,l=r.startLineNumber|0;if(a===l){let c=t.startColumn|0,u=r.startColumn|0;if(c===u){let d=t.endLineNumber|0,f=r.endLineNumber|0;if(d===f){let m=t.endColumn|0,p=r.endColumn|0;return m-p}return d-f}return c-u}return a-l}return(t?1:0)-(r?1:0)}static compareRangesUsingEnds(t,r){return t.endLineNumber===r.endLineNumber?t.endColumn===r.endColumn?t.startLineNumber===r.startLineNumber?t.startColumn-r.startColumn:t.startLineNumber-r.startLineNumber:t.endColumn-r.endColumn:t.endLineNumber-r.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};var gf=class e{static{o(this,"LineRange")}static ofLength(t,r){return new e(t,t+r)}static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static{this.compareByStart=N3(t=>t.startLineNumber,O3)}static subtract(t,r){return r?t.startLineNumber<r.startLineNumber&&r.endLineNumberExclusive<t.endLineNumberExclusive?[new e(t.startLineNumber,r.startLineNumber),new e(r.endLineNumberExclusive,t.endLineNumberExclusive)]:r.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=r.endLineNumberExclusive?[]:r.endLineNumberExclusive<t.endLineNumberExclusive?[new e(Math.max(r.endLineNumberExclusive,t.startLineNumber),t.endLineNumberExclusive)]:[new e(t.startLineNumber,Math.min(r.startLineNumber,t.endLineNumberExclusive))]:[t]}static joinMany(t){if(t.length===0)return[];let r=new j_(t[0].slice());for(let n=1;n<t.length;n++)r=r.getUnion(new j_(t[n].slice()));return r.ranges}static join(t){if(t.length===0)throw new Dn("lineRanges cannot be empty");let r=t[0].startLineNumber,n=t[0].endLineNumberExclusive;for(let s=1;s<t.length;s++)r=Math.min(r,t[s].startLineNumber),n=Math.max(n,t[s].endLineNumberExclusive);return new e(r,n)}static deserialize(t){return new e(t[0],t[1])}constructor(t,r){if(t>r)throw new Dn(`startLineNumber ${t} cannot be after endLineNumberExclusive ${r}`);this.startLineNumber=t,this.endLineNumberExclusive=r}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}containsRange(t){return this.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let r=Math.max(this.startLineNumber,t.startLineNumber),n=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(r<=n)return new e(r,n)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Zs(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Zs(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let r=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)r.push(t(n));return r}forEach(t){for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)t(r)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new ch(this.startLineNumber-1,this.endLineNumberExclusive-1)}distanceToRange(t){return this.endLineNumberExclusive<=t.startLineNumber?t.startLineNumber-this.endLineNumberExclusive:t.endLineNumberExclusive<=this.startLineNumber?this.startLineNumber-t.endLineNumberExclusive:0}distanceToLine(t){return this.contains(t)?0:t<this.startLineNumber?this.startLineNumber-t:t-this.endLineNumberExclusive}addMargin(t,r){return new e(this.startLineNumber-t,this.endLineNumberExclusive+r)}},j_=class e{constructor(t=[]){this._normalizedRanges=t}static{o(this,"LineRangeSet")}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let r=D3(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),n=Fm(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)this._normalizedRanges.splice(r,0,t);else if(r===n-1){let s=this._normalizedRanges[r];this._normalizedRanges[r]=s.join(t)}else{let s=this._normalizedRanges[r].join(this._normalizedRanges[n-1]).join(t);this._normalizedRanges.splice(r,n-r,s)}}contains(t){let r=UC(this._normalizedRanges,n=>n.startLineNumber<=t);return!!r&&r.endLineNumberExclusive>t}intersects(t){let r=UC(this._normalizedRanges,n=>n.startLineNumber<t.endLineNumberExclusive);return!!r&&r.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let r=[],n=0,s=0,a=null;for(;n<this._normalizedRanges.length||s<t._normalizedRanges.length;){let l=null;if(n<this._normalizedRanges.length&&s<t._normalizedRanges.length){let c=this._normalizedRanges[n],u=t._normalizedRanges[s];c.startLineNumber<u.startLineNumber?(l=c,n++):(l=u,s++)}else n<this._normalizedRanges.length?(l=this._normalizedRanges[n],n++):(l=t._normalizedRanges[s],s++);a===null?a=l:a.endLineNumberExclusive>=l.startLineNumber?a=new gf(a.startLineNumber,Math.max(a.endLineNumberExclusive,l.endLineNumberExclusive)):(r.push(a),a=l)}return a!==null&&r.push(a),new e(r)}subtractFrom(t){let r=D3(this._normalizedRanges,l=>l.endLineNumberExclusive>=t.startLineNumber),n=Fm(this._normalizedRanges,l=>l.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)return new e([t]);let s=[],a=t.startLineNumber;for(let l=r;l<n;l++){let c=this._normalizedRanges[l];c.startLineNumber>a&&s.push(new gf(a,c.startLineNumber)),a=c.endLineNumberExclusive}return a<t.endLineNumberExclusive&&s.push(new gf(a,t.endLineNumberExclusive)),new e(s)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let r=[],n=0,s=0;for(;n<this._normalizedRanges.length&&s<t._normalizedRanges.length;){let a=this._normalizedRanges[n],l=t._normalizedRanges[s],c=a.intersect(l);c&&!c.isEmpty&&r.push(c),a.endLineNumberExclusive<l.endLineNumberExclusive?n++:s++}return new e(r)}getWithDelta(t){return new e(this._normalizedRanges.map(r=>r.delta(t)))}};var rI=class e{constructor(t,r){this.lineCount=t;this.columnCount=r}static{o(this,"TextLength")}static{this.zero=new e(0,0)}static lengthDiffNonNegative(t,r){return r.isLessThan(t)?e.zero:t.lineCount===r.lineCount?new e(0,r.columnCount-t.columnCount):new e(r.lineCount-t.lineCount,r.columnCount)}static betweenPositions(t,r){return t.lineNumber===r.lineNumber?new e(0,r.column-t.column):new e(r.lineNumber-t.lineNumber,r.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let r=0,n=0;for(let s of t)s===`
[305] Fix | Delete
`?(r++,n=0):n++;return new e(r,n)}isZero(){return this.lineCount===0&&this.columnCount===0}isLessThan(t){return this.lineCount!==t.lineCount?this.lineCount<t.lineCount:this.columnCount<t.columnCount}isGreaterThan(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>t.columnCount}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}equals(t){return this.lineCount===t.lineCount&&this.columnCount===t.columnCount}compare(t){return this.lineCount!==t.lineCount?this.lineCount-t.lineCount:this.columnCount-t.columnCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(t){return this.lineCount===0?new Zs(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new Zs(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new Zs(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return gf.ofLength(1,this.lineCount)}addToPosition(t){return this.lineCount===0?new nl(t.lineNumber,t.column+this.columnCount):new nl(t.lineNumber+this.lineCount,this.columnCount+1)}addToRange(t){return Zs.fromPositions(this.addToPosition(t.getStartPosition()),this.addToPosition(t.getEndPosition()))}toString(){return`${this.lineCount},${this.columnCount}`}};var Pc=class extends Oo{static{o(this,"RecentEditsProvider")}};function Sde(e,t=!1,r=void 0,n){if(t&&(r===void 0||n===void 0))throw new Error("cursorLine and activeDocDistanceLimitFromCursor are required when filterByCursorLine is true");let s=e.startLine-1,a=e.endLine-1;return!!(t&&(Math.abs(s-r)<=n||Math.abs(a-r)<=n))}o(Sde,"editIsTooCloseToCursor");var W_=o((e,t)=>{let[r,n]=t.useState();return t.useData(io,async s=>{if(!s.document)return;let a=e.ctx.get(Pc);if(a.isEnabled())a.start();else return;let l=a.config,c=a.getRecentEdits(),u=new Set,d=e.ctx.get(wt),f=[];for(let p=c.length-1;p>=0&&!(f.length>=l.maxEdits);p--){let g=c[p];if(!await d.getTextDocument({uri:g.file}))continue;let h=!u.has(g.file);if(u.size+(h?1:0)>l.maxFiles)break;let _=g.file===s.document?.uri,y=_?s.position.line:void 0;if(Sde(g,_,y,l.activeDocDistanceLimitFromCursor))continue;let T=a.getEditSummary(g);if(T){u.add(g.file);let v=d.getRelativePath({uri:g.file});f.unshift(Qg(`File: ${v}`)+Qg(T))}}if(f.length===0){n(void 0);return}let m=Qg("These are recently edited files. Do not suggest code that has been deleted.")+f.join("")+Qg("End of recent edits");n(m)}),r?ze(Ic,{children:ze(rn,{children:r})}):void 0},"RecentEdits");var nI=new Ut;function CW(e){return[...e].sort((t,r)=>{let n=nI.get(t.uri)??0;return(nI.get(r.uri)??0)-n})}o(CW,"sortByAccessTimes");var EW=o(e=>e.get(wt).onDidFocusTextDocument(t=>{t.document&&nI.set(t.document.uri.toString(),Date.now())}),"registerDocumentTracker");var q_=class{constructor(t){this.docManager=t}static{o(this,"OpenTabFiles")}truncateDocs(t,r,n,s){let a=new Map,l=0;for(let c of t)if(!(l+c.getText().length>hf.MAX_NEIGHBOR_AGGREGATE_LENGTH)&&(c.uri.startsWith("file:")&&r.startsWith("file:")&&c.uri!==r&&H_(n,c.detectedLanguageId)&&(a.set(c.uri.toString(),{uri:c.uri.toString(),relativePath:this.docManager.getRelativePath(c),source:c.getText()}),l+=c.getText().length),a.size>=s))break;return a}async getNeighborFiles(t,r,n){let s=new Map,a=new Map;return s=this.truncateDocs(CW(await this.docManager.textDocuments()),t,r,n),a.set("opentabs",Array.from(s.keys()).map(l=>l.toString())),{docs:s,neighborSource:a}}};function IW(e,t,r){return async function(...n){return await Promise.race([e.apply(this,n),new Promise(s=>{setTimeout(s,t,r)})])}}o(IW,"shortCircuit");function Rde(...e){return JSON.stringify(e,(t,r)=>typeof r=="object"?r:String(r))}o(Rde,"defaultHash");function iI(e,t={}){let{hash:r=Rde,cache:n=new Map}=t;return function(...s){let a=r.apply(this,s);if(n.has(a))return n.get(a);let l=e.apply(this,s);return l instanceof Promise&&(l=l.catch(c=>{throw n.delete(a),c})),n.set(a,l),l}}o(iI,"memoize");var aI={entries:[],traits:[]},z_={entries:new Map,traits:[]},oI=class extends Ut{constructor(r,n=120*1e3){super(r);this.defaultEvictionTimeMs=n;this._cacheTimestamps=new Map}static{o(this,"PromiseExpirationCacheMap")}bumpRetryCount(r){let n=this._cacheTimestamps.get(r);return n?++n.retryCount:(this._cacheTimestamps.set(r,{timestamp:Date.now(),retryCount:0}),0)}has(r){return this.isValid(r)?super.has(r):(this.deleteExpiredEntry(r),!1)}get(r){let n=super.get(r);if(this.isValid(r))return n;this.deleteExpiredEntry(r)}set(r,n){let s=super.set(r,n);return this.isValid(r)||this._cacheTimestamps.set(r,{timestamp:Date.now(),retryCount:0}),s}clear(){super.clear(),this._cacheTimestamps.clear()}isValid(r){let n=this._cacheTimestamps.get(r);return n!==void 0&&Date.now()-n.timestamp<this.defaultEvictionTimeMs}deleteExpiredEntry(r){this._cacheTimestamps.has(r)&&this._cacheTimestamps.delete(r),super.delete(r)}},qn=new vt("relatedFiles"),Ade=1e3,V_=class extends Error{static{o(this,"RelatedFilesProviderFailure")}constructor(){super("The provider failed providing the list of relatedFiles")}},xf=class e{constructor(t){this.context=t}static{o(this,"RelatedFilesProvider")}async getRelatedFiles(t,r,n){let s=await this.getRelatedFilesResponse(t,r,n);if(s===void 0)return;let a={entries:new Map,traits:s.traits??[]};for(let l of s.entries){let c=a.entries.get(l.type);c||(c=new Map,a.entries.set(l.type,c));for(let u of l.uris)try{qn.debug(this.context,`Processing ${u}`);let d=await this.getFileContent(u);if(!d||d.length==0){qn.debug(this.context,`Skip ${u} due to empty content or loading issue.`);continue}if(await this.isContentExcluded(u,d)){qn.debug(this.context,`Skip ${u} due content exclusion.`);continue}d=e.dropBOM(d),c.set(u,d)}catch(d){qn.warn(this.context,d)}}return a}async getFileContent(t){try{return this.context.get(en).readFileString(t)}catch(r){qn.debug(this.context,r)}}async isContentExcluded(t,r){try{return(await this.context.get(no).evaluate(t,r)).isBlocked}catch(n){qn.exception(this.context,n,"isContentExcluded")}return!0}static dropBOM(t){return t.charCodeAt(0)===65279?t.slice(1):t}},Dde=3,wW=new oI(Ade);async function SW(e,t,r,n,s){let a=performance.now(),l;try{l=await s.getRelatedFiles(t,r,n)}catch(u){qn.exception(e,u,".getRelatedFiles"),l=void 0}l===void 0&&(wW.bumpRetryCount(t.uri)>=Dde?l=z_:l=void 0);let c=performance.now()-a;if(qn.debug(e,l!==void 0?`Fetched ${[...l.entries.values()].map(u=>u.size).reduce((u,d)=>u+d,0)} related files for '${t.uri}' in ${c}ms.`:`Failing fetching files for '${t.uri}' in ${c}ms.`),l===void 0)throw new V_;return l}o(SW,"getRelatedFiles");var sI=iI(SW,{cache:wW,hash:o((e,t,r,n,s)=>`${t.uri}`,"hash")});sI=IW(sI,200,z_);async function G_(e,t,r,n,s,a=!1){let l=e.get(xf),c=z_;try{let u={uri:t.uri,clientLanguageId:t.clientLanguageId,data:s};c=a?await SW(e,u,r,n,l):await sI(e,u,r,n,l)}catch(u){c=z_,u instanceof V_&&Se(e,"getRelatedFilesList",r)}return qn.debug(e,c!=null?`Fetched following traits ${c.traits.map(u=>`{${u.name} : ${u.value}}`).join("")} for '${t.uri}'`:`Failing fecthing traits for '${t.uri}'.`),c}o(G_,"getRelatedFilesAndTraits");function H_(e,t){return Pg(e)===Pg(t)}o(H_,"considerNeighborFile");var hf=class e{static{o(this,"NeighborSource")}static{this.MAX_NEIGHBOR_AGGREGATE_LENGTH=2e5}static{this.MAX_NEIGHBOR_FILES=20}static{this.EXCLUDED_NEIGHBORS=["node_modules","dist","site-packages"]}static defaultEmptyResult(){return{docs:new Map,neighborSource:new Map,traits:[]}}static reset(){e.instance=void 0}static async getNeighborFilesAndTraits(t,r,n,s,a,l,c){let u=t.get(wt);e.instance===void 0&&(e.instance=new q_(u));let d={...await e.instance.getNeighborFiles(r,n,e.MAX_NEIGHBOR_FILES),traits:[]};if(kde(t,s))return d;let f=await u.getTextDocument({uri:r});if(!f)return qn.debug(t,"neighborFiles.getNeighborFilesAndTraits",`Failed to get the related files: failed to get the document ${r}`),d;let m=u.getWorkspaceFolder(f);if(!m)return qn.debug(t,"neighborFiles.getNeighborFilesAndTraits",`Failed to get the related files: ${r} is not under the workspace folder`),d;let p=await G_(t,f,s,a,l,c);return p.entries.size===0?(qn.debug(t,"neighborFiles.getNeighborFilesAndTraits",`0 related files found for ${r}`),d.traits.push(...p.traits),d):(p.entries.forEach((g,h)=>{let x=[];g.forEach((_,y)=>{let b=e.getRelativePath(y,m.uri);if(!b||d.docs.has(y))return;let T={relativePath:b,uri:y,source:_};x.unshift(T),d.docs.set(y,T)}),x.length>0&&d.neighborSource.set(h,x.map(_=>_.uri.toString()))}),d.traits.push(...p.traits),d)}static basename(t){return decodeURIComponent(t.replace(/[#?].*$/,"").replace(/^.*[/:]/,""))}static getRelativePath(t,r){let n=r.toString().replace(/[#?].*/,"").replace(/\/?$/,"/");return t.toString().startsWith(n)?t.toString().slice(n.length):e.basename(t)}};function kde(e,t){return e.get(Le).excludeRelatedFiles(t)||tr(e,Te.ExcludeRelatedFiles)}o(kde,"isExcludeRelatedFilesActive");function PW(e,t){return e.get(Le).includeNeighboringFiles(t)||tr(e,Te.IncludeNeighboringFiles)}o(PW,"isIncludeNeighborFilesActive");var K_=o((e,t)=>{let[r,n]=t.useState(),[s,a]=t.useState([]);t.useData(io,async u=>{u.document.uri!==r?.uri&&a([]),n(u.document);let d=hf.defaultEmptyResult();u.turnOffSimilarFiles||(d=await hf.getNeighborFilesAndTraits(e.ctx,u.document.uri,u.document.detectedLanguageId,u.telemetryData,u.cancellationToken,u.data));let f=await l(u.telemetryData,u.document,u,d);a(f)});async function l(u,d,f,m){let p=np(e.ctx,u,d.detectedLanguageId);return(await c(p,u,d,f,m)).filter(h=>h.snippet.length>0).sort((h,x)=>h.score-x.score).map(h=>({...Mj(h),score:h.score}))}o(l,"produceSimilarFiles");async function c(u,d,f,m,p){let g=u.similarFilesOptions||v_(e.ctx,d,f.detectedLanguageId),x=e.ctx.get(wt).getRelativePath(f),_={uri:f.uri,source:f.getText(),offset:f.offsetAt(m.position),relativePath:x,languageId:f.detectedLanguageId};return await $j(_,Array.from(p.docs.values()),g)}return o(c,"findSimilarSnippets"),ze(Ys,{children:[...s.map((u,d)=>ze(Nde,{snippet:u}))]})},"SimilarFiles"),Nde=o((e,t)=>ze(Ic,{children:[ze(rn,{children:e.snippet.headline}),ze(rn,{children:e.snippet.snippet})]}),"SimilarFile");var Y_=o((e,t)=>{let[r,n]=t.useState(),[s,a]=t.useState();if(t.useData(io,l=>{l.traits!==r&&n(l.traits);let c=Pg(l.document.detectedLanguageId);c!==s&&a(c)}),!(!r||r.length===0||!s))return ze(Ys,{children:[ze(rn,{children:`Consider this related information:
[306] Fix | Delete
`}),...r.map(l=>ze(rn,{source:l,children:`${l.name}: ${l.value}`},l.id))]})},"Traits");function RW(e,t){return tr(e,Te.UseSplitContextPrompt)??e.get(Le).enablePromptContextProxyField(t)}o(RW,"shouldUseSplitContextPrompt");function AW(e){return ze(Ys,{children:[ze(FE,{children:[ze(A_,{ctx:e,weight:.7}),ze(Y_,{weight:.6}),ze(C_,{ctx:e,weight:.9}),ze(K_,{ctx:e,weight:.8})]}),ze(Vj,{weight:1}),ze(ME,{children:ze(W_,{ctx:e,weight:.99})}),ze(zj,{weight:1})]})}o(AW,"splitContextCompletionsPrompt");var DW=0;function Ode(){DW=0}o(Ode,"resetContextIndex");function Lde(){return DW++}o(Lde,"getNextContextIndex");var X_=class extends Qm{constructor(){super(...arguments);this.formatPrefix=Kj;this.formatContext=Yj}static{o(this,"SplitContextPromptRenderer")}processSnapshot(r,n){let s=[],a=[],l=[],c=!1;if(Ode(),new Zm(r,Fde).walkSnapshot((f,m,p)=>{if(f===r||(f.statistics.updateDataTimeMs&&f.statistics.updateDataTimeMs>0&&l.push({componentPath:f.path,updateDataTimeMs:f.statistics.updateDataTimeMs}),f.name===ff.name&&(c=!0),f.value===void 0||f.value===""))return!0;let g=p.chunks,h=p.type;if(h==="suffix")a.push({value:eh(f.value),type:"suffix",weight:p.weight,componentPath:f.path,nodeStatistics:f.statistics,chunks:g,source:p.source});else{let x=h==="prefix",_=x||f.value.endsWith(n)?f.value:f.value+n;s.push({type:x?"prefix":"context",value:eh(_),weight:p.weight,componentPath:f.path,nodeStatistics:f.statistics,chunks:g,source:p.source,index:x?void 0:p.index})}return!0}),!c)throw new Error(`Node of type ${ff.name} not found`);if(a.length>1)throw new Error("Only one suffix is allowed");let d=a.length===1?a[0]:{componentPath:"",value:"",weight:1,nodeStatistics:{},type:"suffix"};return{prefixBlocks:s,suffixBlock:d,componentStatistics:l}}},Fde=[...WE,(e,t,r)=>E_(e)?{...r,index:Lde()}:r];function J_(e,t,r){let n=c_(r,"Trait");for(let a of n)Mde(e,t,a.data,a.providerId);return n.flatMap(a=>a.data).sort((a,l)=>(a.importance??0)-(l.importance??0))}o(J_,"getTraitsFromContextItems");function Mde(e,t,r,n){let s=e.get(ni).getStatisticsForCompletion(t);r.forEach(a=>{s.addExpectations(n,[[a,"included"]])})}o(Mde,"setupExpectationsForTraits");var Ude=new Map([["TargetFrameworks","targetFrameworks"],["LanguageVersion","languageVersion"]]);function Z_(e,t,r,n,s,a){if(r.length>0){let l={};l.detectedLanguageId=n,l.languageId=s;for(let u of r){let d=Ude.get(u.name);d&&(l[d]=u.value)}let c=a.extendedBy(l,{});return Se(t,e,c)}}o(Z_,"ReportTraitsTelemetry");var Q_=class{constructor(t){this.states=t;this.currentIndex=0;this.stateChanged=!1}static{o(this,"UseState")}useState(t){let r=this.currentIndex;if(this.states[r]===void 0){let s=typeof t=="function"?t():t;this.states[r]=s}let n=o(s=>{let a=typeof s=="function"?s(this.states[r]):s;this.states[r]=a,this.stateChanged=!0},"setState");return this.currentIndex++,[this.states[r],n]}hasChanged(){return this.stateChanged}},ey=class{constructor(t){this.measureUpdateTime=t;this.consumers=[]}static{o(this,"UseData")}useData(t,r){this.consumers.push(n=>{if(t(n))return r(n)})}async updateData(t){if(this.consumers.length>0){let r=performance.now();for(let n of this.consumers)await n(t);this.measureUpdateTime(performance.now()-r)}}};var ty=class{constructor(t){this.lifecycleData=new Map;this.vTree=this.virtualizeElement(t,"$",0)}static{o(this,"VirtualPromptReconciler")}reconcile(t){if(!this.vTree)throw new Error("No tree to reconcile, make sure to pass a valid prompt");return t?.isCancellationRequested?this.vTree:(this.vTree=this.reconcileNode(this.vTree,"$",0,t),this.vTree)}reconcileNode(t,r,n,s){if(!t.children&&!t.lifecycle)return t;let a=t;if(t.lifecycle?.isRemountRequired()){let c=this.collectChildPaths(t);a=this.virtualizeElement(t.component,r,n);let u=this.collectChildPaths(a);this.cleanupState(c,u)}else if(t.children){let c=[];for(let u=0;u<t.children.length;u++){let d=t.children[u];if(d){let f=this.reconcileNode(d,t.path,u,s);f!==void 0&&c.push(f)}}a.children=c}return a}virtualizeElement(t,r,n){if(!(typeof t>"u")){if(typeof t=="string"||typeof t=="number")return{name:typeof t,path:`${r}[${n}]`,props:{value:t},component:t};if(Bde(t.type)){let s=t.type(t.props.children),a=r!=="$"?`[${n}]`:"",l=`${r}${a}.${s.type}`,c=s.children.map((u,d)=>this.virtualizeElement(u,l,d));return this.ensureUniqueKeys(c),{name:s.type,path:l,children:c.flat().filter(u=>u!==void 0),component:t}}return this.virtualizeFunctionComponent(r,n,t,t.type)}}virtualizeFunctionComponent(t,r,n,s){let a=n.props.key?`["${n.props.key}"]`:`[${r}]`,l=`${t}${a}.${s.name}`,c=new cI(this.getOrCreateLifecycleData(l)),u=s(n.props,c),m=(Array.isArray(u)?u:[u]).map((p,g)=>this.virtualizeElement(p,l,g)).flat().filter(p=>p!==void 0);return this.ensureUniqueKeys(m),{name:s.name,path:l,props:n.props,children:m,component:n,lifecycle:c}}ensureUniqueKeys(t){let r=new Map;for(let s of t){if(!s)continue;let a=s.props?.key;a&&r.set(a,(r.get(a)||0)+1)}let n=Array.from(r.entries()).filter(([s,a])=>a>1).map(([s])=>s);if(n.length>0)throw new Error(`Duplicate keys found: ${n.join(", ")}`)}collectChildPaths(t){let r=[];if(t?.children)for(let n of t.children)n&&(r.push(n.path),r.push(...this.collectChildPaths(n)));return r}cleanupState(t,r){for(let n of t)r.includes(n)||this.lifecycleData.delete(n)}getOrCreateLifecycleData(t){return this.lifecycleData.has(t)||this.lifecycleData.set(t,new lI([])),this.lifecycleData.get(t)}createPipe(){return{pump:o(async t=>{await this.pumpData(t)},"pump")}}async pumpData(t){if(!this.vTree)throw new Error("No tree to pump data into. Pumping data before initializing?");await this.recursivelyPumpData(t,this.vTree)}async recursivelyPumpData(t,r){if(!r)throw new Error("Can't pump data into undefined node.");await r.lifecycle?.dataHook.updateData(t);for(let n of r.children||[])await this.recursivelyPumpData(t,n)}},lI=class{static{o(this,"PromptElementLifecycleData")}constructor(t){this.state=t,this._updateTimeMs=0}getUpdateTimeMsAndReset(){let t=this._updateTimeMs;return this._updateTimeMs=0,t}},cI=class{constructor(t){this.lifecycleData=t;this.stateHook=new Q_(t.state),this.dataHook=new ey(r=>{t._updateTimeMs=r})}static{o(this,"PromptElementLifecycle")}useState(t){return this.stateHook.useState(t)}useData(t,r){this.dataHook.useData(t,r)}isRemountRequired(){return this.stateHook.hasChanged()}};function Bde(e){return typeof e=="function"&&"isFragmentFunction"in e}o(Bde,"isFragmentFunction");var uh=class{static{o(this,"VirtualPrompt")}constructor(t){this.reconciler=new ty(t)}snapshotNode(t,r){if(!t)return;if(r?.isCancellationRequested)return"cancelled";let n=[];for(let s of t.children??[]){let a=this.snapshotNode(s,r);if(a==="cancelled")return"cancelled";a!==void 0&&n.push(a)}return{value:t.props?.value?.toString(),name:t.name,path:t.path,props:t.props,children:n,statistics:{updateDataTimeMs:t.lifecycle?.lifecycleData.getUpdateTimeMsAndReset()}}}snapshot(t){try{let r=this.reconciler.reconcile(t);if(t?.isCancellationRequested)return{snapshot:void 0,status:"cancelled"};if(!r)throw new Error("Invalid virtual prompt tree");let n=this.snapshotNode(r,t);return n==="cancelled"||t?.isCancellationRequested?{snapshot:void 0,status:"cancelled"}:{snapshot:n,status:"ok"}}catch(r){return{snapshot:void 0,status:"error",error:r}}}createPipe(){return this.reconciler.createPipe()}};function io(e){if(!e||typeof e!="object")return!1;let t=e;return!(!t.document||!t.position||t.position.line===void 0||t.position.character===void 0||!t.telemetryData)}o(io,"isCompletionRequestData");var uI={default:{promptFunction:NW,renderer:Qm},splitContext:{promptFunction:AW,renderer:X_}};function NW(e){return ze(Ys,{children:[ze(LE,{children:[ze(A_,{ctx:e,weight:.7}),ze(Y_,{weight:.6}),ze(C_,{ctx:e,weight:.9}),ze(K_,{ctx:e,weight:.8}),ze(W_,{ctx:e,weight:.99})]}),ze(Zg,{weight:1})]})}o(NW,"defaultCompletionsPrompt");var ry=class{constructor(t,r,n){this.ctx=t;this.promptOrdering=n??"default",this.virtualPrompt=r??new uh(this.completionsPrompt()),this.pipe=this.virtualPrompt.createPipe(),this.renderer=this.getRenderer()}static{o(this,"ComponentsCompletionsPromptFactory")}async prompt(t,r){try{return await this.createPromptUnsafe(t,r)}catch(n){return this.errorPrompt(n)}}async createPromptUnsafe({completionId:t,completionState:r,telemetryData:n,promptOpts:s},a){let{maxPromptLength:l,suffixPercent:c,suffixMatchThreshold:u}=np(this.ctx,n,r.textDocument.detectedLanguageId),d=await this.failFastPrompt(r.textDocument,r.position,c,a);if(d)return d;let f=s?.separateContext?"splitContext":"default";this.setPromptOrdering(f);let m=performance.now(),{traits:p,codeSnippets:g,turnOffSimilarFiles:h,resolvedContextItems:x}=await this.resolveContext(t,r,n,a,s);if(await this.updateComponentData(r.textDocument,r.position,p,g,n,h,l,a,s,u,s?.tokenizer),a?.isCancellationRequested)return il;let _=this.virtualPrompt.snapshot(a),y=_.status;if(y==="cancelled")return il;if(y==="error")return this.errorPrompt(_.error);let b=this.renderer.render(_.snapshot,{delimiter:`
[307] Fix | Delete
`,tokenizer:s?.tokenizer,promptTokenLimit:l,suffixPercent:c,languageId:r.textDocument.detectedLanguageId},a);if(b.status==="cancelled")return il;if(b.status==="error")return this.errorPrompt(b.error);let[T,v]=op(b.prefix),S={...b,prefix:T},R;if(Xm(this.ctx,n)){let K=u_(b.metadata.componentStatistics);this.ctx.get(ni).getStatisticsForCompletion(t).computeMatch(K),R=d_(this.ctx,t,x),At.debug(this.ctx,`Context providers telemetry: '${JSON.stringify(R)}'`)}let j=performance.now();return this.resetIfEmpty(b),this.successPrompt(S,j,m,v,R)}async updateComponentData(t,r,n,s,a,l,c,u,d={},f,m){let p=this.createRequestData(t,r,a,u,d,c,n,s,l,f,m);await this.pipe.pump(p)}async resolveContext(t,r,n,s,a={}){let l=[],c,u,d=!1;if(Xm(this.ctx,n)){l=await this.ctx.get(Ks).resolution(t);let{textDocument:f}=r,m=l.filter(m_);$de(this.ctx,f.detectedLanguageId,m,n)||(d=!0),c=J_(this.ctx,t,m),Z_("contextProvider.traits",this.ctx,c,f.detectedLanguageId,f.detectedLanguageId,n),u=await T_(this.ctx,t,m,f.detectedLanguageId)}return{traits:c,codeSnippets:u,turnOffSimilarFiles:d,resolvedContextItems:l}}async failFastPrompt(t,r,n,s){if(s?.isCancellationRequested)return il;if((await this.ctx.get(no).evaluate(t.uri,t.getText(),"UPDATE")).isBlocked)return oy;if((n>0?t.getText().length:t.offsetAt(r))<ny)return iy}createRequestData(t,r,n,s,a,l,c,u,d,f,m){return{document:t,position:r,telemetryData:n,cancellationToken:s,data:a.data,traits:c,codeSnippets:u,turnOffSimilarFiles:d,suffixMatchThreshold:f,maxPromptTokens:l,tokenizer:m}}resetIfEmpty(t){t.prefix.length===0&&t.suffix.length===0&&this.reset()}successPrompt(t,r,n,s,a){return{type:"prompt",prompt:{prefix:t.prefix,prefixTokens:t.prefixTokens,suffix:t.suffix,suffixTokens:t.suffixTokens,context:t.context,isFimEnabled:t.suffix.length>0},computeTimeMs:r-n,trailingWs:s,neighborSource:new Map,metadata:t.metadata,contextProvidersTelemetry:a}}errorPrompt(t){return Xo(this.ctx,t,"PromptComponents.CompletionsPromptFactory"),this.reset(),ip}reset(){this.renderer=this.getRenderer(),this.virtualPrompt=new uh(this.completionsPrompt()),this.pipe=this.virtualPrompt.createPipe()}setPromptOrdering(t){this.promptOrdering!==t&&(this.promptOrdering=t,this.reset())}completionsPrompt(){return(uI[this.promptOrdering]?.promptFunction??NW)(this.ctx)}getRenderer(){let t=uI[this.promptOrdering]??uI.default;return new t.renderer}};function $de(e,t,r,n){let s=["cpp","c"];return PW(e,n)||s.includes(t)||!r.some(l=>l.data.some(c=>c.type==="CodeSnippet"))}o($de,"similarFilesEnabled");var fI="[...]",jde=0;function bi(){return jde++}o(bi,"getAvailableNodeId");var sp=class{static{o(this,"PriorityQueue")}constructor(t){if(this.heap=t?[...t]:[],this.heap.length>0)for(let r=Math.floor(this.heap.length/2)-1;r>=0;r--)this.siftDown(r)}get size(){return this.heap.length}insert(t,r){let n={item:t,priority:r};this.heap.push(n);let s=this.heap.length-1;this.siftUp(s)}peek(){return this.heap.length===0?null:this.heap[0]}pop(){if(this.heap.length===0)return null;let t=this.heap[0],r=this.heap.pop();return this.heap.length>0&&(this.heap[0]=r,this.siftDown(0)),t}clear(){let t=this.heap;return this.heap=[],t}siftUp(t){let r=this.heap[t];for(;t>0;){let n=Math.floor((t-1)/2);if(this.heap[n].priority>=r.priority)break;this.heap[t]=this.heap[n],t=n}this.heap[t]=r}siftDown(t){for(;t<this.size-1;){let r=t,n=2*t+1,s=n+1;if(n<this.size&&this.heap[n].priority>this.heap[r].priority&&(r=n),s<this.size&&this.heap[s].priority>this.heap[r].priority&&(r=s),r===t)break;let a=this.heap[t];this.heap[t]=this.heap[r],this.heap[r]=a,t=r}}};function Wde(e){let t={id:e.id??bi(),text:e.text??new Array((e.children?.length??0)+1).fill(""),children:e.children??[],cost:e.cost??1,weight:e.weight??0,rectifiedWeight:e.rectifiedWeight,canMerge:e.canMerge??!1,elisionMarker:e.elisionMarker??fI,requireRenderedChild:e.requireRenderedChild??!1};if(t.text.length!==t.children.length+1)throw new Error(`RenderNode text length (${t.text.length}) must be children length + 1 (${t.children.length+1})`);return t}o(Wde,"createRenderNode");function qde(e){return e.requireRenderedChild||(e.rectifiedWeight??e.weight)>e.weight}o(qde,"isRenderedChildRequired");function OW(e){return(e.rectifiedWeight??e.weight)/Math.max(e.cost,1)}o(OW,"rectifiedValue");function pI(e,t){let r=LW(e,t);for(let{item:n,priority:s}of r.clear())for(let a of n.nodes)a.rectifiedWeight=s*Math.max(a.cost,1)}o(pI,"rectifyWeights");function LW(e,t){let r=e.children.map(a=>LW(a,t));if(e.weight=Math.max(0,t?t(e):e.weight),e.weight===0&&r.reduce((a,l)=>a+l.size,0)===0)return new sp([]);let n=new sp(r.flatMap(a=>a.clear())),s={nodes:[e],totalCost:e.cost,totalWeight:e.weight};for(;(n.peek()?.priority??0)>s.totalWeight/Math.max(s.totalCost,1);){let{item:a}=n.pop();s.nodes.push(...a.nodes),s.totalCost+=a.totalCost,s.totalWeight+=a.totalWeight}return n.insert(s,s.totalWeight/Math.max(s.totalCost,1)),n}o(LW,"recursivelyRectifyWeights");function FW(e,t={}){let{budget:r,mask:n,costFunction:s}=t,a=n??[],l=new Set(Array.isArray(a)?a:[a]);if((r??e.cost)<e.cost||l.has(e.id))return{text:e.elisionMarker,cost:s?s(e.elisionMarker):e.elisionMarker.length,renderedNodes:new Map};if(r===void 0){let m=o(_=>l.has(_.id),"elider"),p=[],g=new Map;if(mI(e,p,m,g),p.length===0)return dI(e,s);let h=p.join(""),x=s?s(h):[...g.values()].reduce((_,y)=>_+y.cost,0);return{text:h,cost:x,renderedNodes:g}}let c=new Map,u=[],d=new sp([{item:e,priority:OW(e)}]),f=r;for(;f>0&&d.size>0;){let{item:m}=d.pop();if(!l.has(m.id)&&m.cost<=f){f-=m.cost,c.set(m.id,m),u.push(m);for(let p of m.children)d.insert(p,OW(p))}}for(;c.size>0;){let m=[],p=o(_=>!c.has(_.id),"elider"),g=new Map;if(mI(e,m,p,g),m.length===0)return dI(e,s);let h=m.join("");if(s===void 0){let _=[...g.values()].reduce((y,b)=>y+b.cost,0);return{text:h,cost:_,renderedNodes:g}}let x=s(h);if(x<=r)return{text:h,cost:x,renderedNodes:g};for(c=g;u.length>0&&x>r;){let _=u.pop();c.has(_.id)&&(x-=_.cost,c.delete(_.id))}if(u.length===0)break}return dI(e,s)}o(FW,"render");function dI(e,t){return{text:e.elisionMarker,cost:t?t(e.elisionMarker):e.elisionMarker.length,renderedNodes:new Map}}o(dI,"renderEmpty");function mI(e,t,r,n,s=!1){let a=t.length;if(r(e))return a>=2&&(s||t[a-2]===e.elisionMarker&&t[a-1].trim().length===0)?(t.pop(),!1):(t.push(e.elisionMarker),!1);let l=qde(e),c=!0;for(let[u,d]of e.children.entries())t.push(e.text[u]??""),c=mI(d,t,r,n,d.canMerge&&!c),l&&=!c;if(l){for(;t.length>a;)t.pop();return!1}return t.push(e.text[e.text.length-1]??""),n.set(e.id,e),!0}o(mI,"recursivelyRender");function gI(e,t,r=fI){let n=e.children.map(l=>gI(l,t,r));r=e.elisionMarker??r;let s=t(e);return Wde({...e,children:n,cost:s,weight:0,elisionMarker:e.elisionMarker??r})}o(gI,"snapshot");var Rc={id:bi(),text:[""],children:[],cost:0,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!1};function ap(e,t,r){let n=e.get(t);return n===void 0&&(n=r(t),e.set(t,n)),n}o(ap,"setDefault");var $W=2e4,MW=0,UW=new Ut;function jW(e,t,r,n){MW++;let s=r.promptOpts?.tokenizer??"o200k_base",a=performance.now(),{root:l,mask:c,statistics:u}=e.snapshot(r,n),d=performance.now(),f=new Set(c),m=UW?.get(l.id),p;if(m&&m.budget>=t&&m.render.cost<=t&&m.tokenizer===s&&f.size===m.mask.size&&[...f].every(b=>m.mask.has(b)))p=m.render;else{let b=cs(s);p=FW(l,{budget:t,mask:c,costFunction:o(v=>b.tokenLength(v),"costFunction")}),UW.set(l.id,{budget:t,mask:f,tokenizer:s,render:p})}let{text:g,cost:h,renderedNodes:x}=p,_=performance.now();for(let[b,T]of u?.entries()??[])T.actualTokens=x.get(b)?.cost??0;let y={renderId:MW,rendererName:"renderNode",tokenizer:s,elisionTimeMs:_-d,renderTimeMs:d-a,updateDataTimeMs:0,componentStatistics:[{componentPath:e.name,actualTokens:h}]};return{root:l,renderedNodes:x,text:g,cost:h,metadata:y}}o(jW,"renderWithMetadata");function WW(e,t){return r=>{let n=r.text.join("")+`
[308] Fix | Delete
`;return ap(t,n,()=>e.tokenLength(n)+1)}}o(WW,"cachedLineCostFunction");function qW(e,t,r){let s=e.split(`
[309] Fix | Delete
`).map(f=>({id:bi(),text:[f],children:[],canMerge:!0})),a=[""];s.length>=1&&a.push(...Array(s.length-1).fill(`
[310] Fix | Delete
`),"");let l={id:bi(),text:a,children:s,canMerge:!0},u=gI(l,o(f=>f.id===l.id?0:t(f),"nodeCostFunction")),d=r?s.length:1;for(let f of u.children)f.weight=d*Math.max(1,f.cost),d+=r?-1:1;return u}o(qW,"getLinewiseNode");var sy=class{constructor(){this.name="basicPrefix";this.costCache=new Ut($W)}static{o(this,"BasicPrefixComponent")}snapshot(t){let{completionState:r,promptOpts:n}=t,s=r.textDocument.getText({start:{line:0,character:0},end:r.position}),a=cs(n?.tokenizer),l=WW(a,this.costCache);return{root:qW(s,l,!1)}}},BW={root:Rc,text:"",cost:0},ay=class{constructor(t){this.ctx=t;this.name="cachedSuffix";this.cache=new Ut(5);this.costCache=new Ut($W)}static{o(this,"CachedSuffixComponent")}snapshot(t){return{root:this.getCachedSuffix(t).root}}estimatedCost(t,r){return this.getCachedSuffix(t).cost}getCachedSuffix(t){let{completionState:r,telemetryData:n,promptOpts:s}=t,l=r.textDocument.getText({start:r.position,end:{line:Number.MAX_VALUE,character:Number.MAX_VALUE}}).replace(/^.*/,"").trimStart();if(l==="")return BW;let c=this.cache.get(r.textDocument.uri)||BW;if(c.text===l)return c;let u=this.ctx.get(Le).suffixMatchThreshold(n);if(c.text!==""){let g=new Sm,h=g.takeFirstTokens(l,Jg);if(h.tokens.length>0&&100*I_(h.tokens,g.takeFirstTokens(c.text,Jg).tokens)?.score<u*h.tokens.length)return c}let d=cs(s?.tokenizer),f=WW(d,this.costCache),m=qW(l,f,!0),p=m.children.reduce((g,h)=>g+h.cost+1,0);return{root:m,cost:p,text:l}}},ly=class{constructor(){this.name="traitProvider"}static{o(this,"TraitComponent")}snapshot(t,r){let{promptOpts:n}=t,s=cs(n?.tokenizer);if(!r||r.traits.length===0)return{root:Rc};let a=new Map,l=0,c=[],u=new Map;for(let p of r.traits){let g=bi(),h=`${p.name}: ${p.value}`,x={id:g,text:[h],children:[],cost:s.tokenLength(h),weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0};c.push(x),u.set(g,{componentPath:p.id,source:p,expectedTokens:x.cost}),a.set(g,p.importance??0),l+=p.importance??0}l=Math.max(l,1);let f=[`Related context:
[311] Fix | Delete
`,...new Array(c.length).fill(`
[312] Fix | Delete
`)],m={id:bi(),text:f,children:c,cost:0,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0};return pI(m,p=>(a.get(p.id)??0)/l),{root:m,statistics:u}}},cy=class{constructor(t){this.ctx=t;this.name="contextProvider"}static{o(this,"CodeSnippetComponent")}snapshot(t,r){let{promptOpts:n}=t,s=cs(n?.tokenizer);if(!r||r.codeSnippets.length===0)return{root:Rc};let a=new Map;for(let g of r.codeSnippets){let h=g.uri;ap(a,h,()=>[]).push(g)}let l=new Map,c=[],u=new Map,d=0,f=this.ctx.get(wt);for(let[g,h]of a.entries()){let x=f.getRelativePath({uri:g})??g,y=[`Compare ${h.length>1?"these snippets":"this snippet"} from ${x}:
[313] Fix | Delete
`,...new Array(h.length).fill(`
[314] Fix | Delete
`)],b=[];for(let T of h){let v=bi();u.set(v,T.importance??0);let S={id:v,text:[T.value],children:[],cost:s.tokenLength(T.value),weight:T.importance??0,elisionMarker:"",canMerge:!0,requireRenderedChild:!1};b.push(S),d+=T.importance??0,l.set(v,{componentPath:T.id,source:T,expectedTokens:S.cost})}c.push({id:bi(),text:y,children:b,cost:s.tokenLength(y.join("")),weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0})}d=Math.max(d,1);let m=new Array(c.length+1).fill(""),p={id:bi(),text:m,children:c,cost:0,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0};return pI(p,g=>(u.get(g.id)??0)/d),{root:p,statistics:l}}},uy=class{constructor(t,r){this.name=t;this.components=r}static{o(this,"ConcatenatedContextComponent")}snapshot(t,r){let n=this.components.map(d=>d.snapshot(t,r)),s=n.map(d=>d.root).filter(d=>d.id!==Rc.id);if(s.length===0)return{root:Rc};let a=["",...Array(s.length-1).fill(`
[315] Fix | Delete
`),""],l={id:bi(),text:a,children:s,cost:0,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!1},c=[],u=new Map;for(let d of n){for(let[f,m]of d.statistics?.entries()??[])u.set(f,m);d.mask&&c.push(...d.mask)}return{root:l,mask:c,statistics:u}}};var Hde=.8,fy=class{constructor(t,r){this.ctx=t;this.components=r;this.renderId=0}static{o(this,"CascadingPromptFactory")}async prompt(t,r){try{return await this.createPromptUnsafe(t,r)}catch(n){return this.errorPrompt(n)}}getComponentAllocation(t){let r=this.ctx.get(Le).suffixPercent(t),n=this.ctx.get(Le).stableContextPercent(t),s=this.ctx.get(Le).volatileContextPercent(t);if(r<0||r>100)throw new Error(`suffixPercent must be between 0 and 100, but was ${r}`);if(n<0||n>100)throw new Error(`stableContextPercent must be between 0 and 100, but was ${n}`);if(s<0||s>100)throw new Error(`volatileContextPercent must be between 0 and 100, but was ${s}`);let a=100-r-n-s;if(a<=1||a>100)throw new Error(`prefixPercent must be between 1 and 100, but was ${a}`);return{prefix:a/100,suffix:r/100,stableContext:n/100,volatileContext:s/100}}async createPromptUnsafe(t,r){this.renderId++;let{completionId:n,completionState:s,telemetryData:a,promptOpts:l}=t,c=await this.failFastPrompt(s.textDocument,r);if(c)return c;let u=performance.now(),d;Xm(this.ctx,a)&&(d=await this.resolveContext(n,s,a,r));let f=performance.now()-u,m={},p={renderId:this.renderId,rendererName:"w",tokenizer:l?.tokenizer??"o200k_base",elisionTimeMs:0,renderTimeMs:0,updateDataTimeMs:f,componentStatistics:[]},g=s.textDocument.detectedLanguageId,{maxPromptLength:h}=np(this.ctx,a,g),x=this.getComponentAllocation(a),_=x.suffix*h,y=this.components.suffix.estimatedCost?.(t,d),b=["stableContext","volatileContext","prefix","suffix"];_>Hde*(y??0)&&(b=["stableContext","volatileContext","suffix","prefix"]);let T=0;for(let Y of b){let N=T+h*x[Y],k=jW(this.components[Y],N,t,d);T=N-k.cost,m[Y]=k,zde(p,k.metadata)}let[v,S]=op(m.prefix.text),R=performance.now(),j=Xm(this.ctx,a)?this.telemetrizeContext(n,p.componentStatistics,d?.resolvedContextItems??[]):[],K=[m.stableContext.text.trim(),m.volatileContext.text.trim()];return{type:"prompt",prompt:{prefix:l?.separateContext?v:Q0(K.join(`
[316] Fix | Delete
`),g)+`
[317] Fix | Delete
[318] Fix | Delete
`+v,prefixTokens:m.prefix.cost+m.stableContext.cost+m.volatileContext.cost,suffix:m.suffix.text,suffixTokens:m.suffix.cost,context:l?.separateContext?K:void 0,isFimEnabled:m.suffix.text.length>0},computeTimeMs:R-u,trailingWs:S,neighborSource:new Map,metadata:p,contextProvidersTelemetry:j}}async resolveContext(t,r,n,s){let a=await this.ctx.get(Ks).resolution(t),{textDocument:l}=r,c=a.filter(m_),u=J_(this.ctx,t,c);Z_("contextProvider.traits",this.ctx,u,l.detectedLanguageId,l.detectedLanguageId,n);let d=await T_(this.ctx,t,c,l.detectedLanguageId);return{traits:u,codeSnippets:d,resolvedContextItems:a}}telemetrizeContext(t,r,n){let s=u_(r);this.ctx.get(ni).getStatisticsForCompletion(t).computeMatch(s);let a=d_(this.ctx,t,n);return At.debug(this.ctx,`Context providers telemetry: '${JSON.stringify(a)}'`),a}async failFastPrompt(t,r){if(r?.isCancellationRequested)return il;if((await this.ctx.get(no).evaluate(t.uri,t.getText(),"UPDATE")).isBlocked)return oy;if(t.getText().length<ny)return iy}errorPrompt(t){return Xo(this.ctx,t,"WorkspaceContextPromptFactory"),ip}};function zde(e,t){e.elisionTimeMs+=t.elisionTimeMs,e.renderTimeMs+=t.renderTimeMs,e.updateDataTimeMs+=t.updateDataTimeMs,e.componentStatistics.push(...t.componentStatistics)}o(zde,"aggregateMetadata");var Vde=new Set(["ERR_WORKER_OUT_OF_MEMORY","ENOMEM"]);function Gde(e){return Vde.has(e.code??"")||e.name==="RangeError"&&e.message==="WebAssembly.Memory(): could not allocate memory"}o(Gde,"isOomError");function Ac(e,t,r,n=At){if(!h0(t)){if(t instanceof Error){let s=t;Gde(s)?e.get(Hr).setWarning("Out of memory"):s.code==="EMFILE"||s.code==="ENFILE"?e.get(Hr).setWarning("Too many open files"):s.code==="CopilotPromptLoadFailure"?e.get(Hr).setWarning("Corrupted Copilot installation"):`${s.code}`.startsWith("CopilotPromptWorkerExit")?e.get(Hr).setWarning("Worker unexpectedly exited"):s.syscall==="uv_cwd"&&s.code==="ENOENT"&&e.get(Hr).setWarning("Current working directory does not exist")}n.exception(e,t,r)}}o(Ac,"handleException");var HW=Pt(GC());var Kde={UpdateInterval:500,InvalidCacheTime:1e3*60*10,StaleWeightHalflife:1e3*10,MinNodeSize:100,Laziness:.5,MaxActiveFiles:20,MaxActiveNodes:2e3},Dc=class e{constructor(t){this.ctx=t;this.didDispose=!1;this.deferredStart=new bc;this.config=Kde;this.emitter=new HW.default;this.client=void 0;this.flushUpdatesPromise=void 0;this.nextRequest={};this.lastEvent=void 0;this.emitter.setMaxListeners(27)}static{o(this,"WorkspaceContextFeature")}static{this.UpdateEventName="WorkspaceContextUpdate"}static{this.DisposeEventName="WorkspaceContextDispose"}get didStart(){return this.client!==void 0}async maybeStart(t,r){if(this.didStart||this.didDispose)return;let n=tr(this.ctx,Te.UseWorkspaceContextCoordinator);if(n===void 0&&r){let s=await this.ctx.get(Le).updateExPValuesAndAssignments(r);n=this.isEnabled(s)}n&&this.start(t)}isActive(){return this.didStart&&!this.didDispose&&this.client!==void 0&&this.client.isActive()}get activation(){return this.deferredStart.promise}isEnabled(t){return tr(this.ctx,Te.UseWorkspaceContextCoordinator)??this.ctx.get(Le).workspaceContextCoordinator(t)}start(t){!this.didStart&&!this.didDispose&&(this.client=t,this.fileChangeDisposable=this.ctx.get(wt).onDidChangeTextDocument(r=>{this.nextRequest.changedFiles===void 0&&(this.nextRequest.changedFiles=[]),this.nextRequest.changedFiles.push(r.document.uri)}),this.deferredStart.resolve(),this.loop())}dispose(){this.isActive()&&(this.didDispose=!0,this.emitter.emit(e.DisposeEventName),this.fileChangeDisposable?.dispose(),this.client?.exit())}pushWorkspaceContext(t,r){this.nextRequest.sources={...this.nextRequest.sources,[t]:r}}recordWorkspaceContextActivity(t,r,n){this.nextRequest.recentActivity===void 0&&(this.nextRequest.recentActivity=[]),this.nextRequest.recentActivity.push({sourceId:t,locations:r,timestamp:n})}getLastEvent(){return this.lastEvent}onUpdate(t){return this.emitter.on(e.UpdateEventName,t),pr.Disposable.create(()=>this.emitter.off(e.UpdateEventName,t))}onDisposal(t){return this.emitter.on(e.DisposeEventName,t),pr.Disposable.create(()=>this.emitter.off(e.DisposeEventName,t))}setContextLanguages(t){this.nextRequest.languages=t}async loop(){try{for(;this.isActive();){let t=this.nextRequest;this.nextRequest={},this.lastEvent=await this.client.updateContext(t),this.emitter.emit(e.UpdateEventName,this.lastEvent),await vc(this.config.UpdateInterval)}}catch(t){Ac(this.ctx,t,"WorkspaceContextFeature.loop"),this.dispose()}}};function zW(e,t){let r=Uo(e,t,"event.WorkspaceContextUpdate");return e.get(Dc).onUpdate(r)}o(zW,"onWorkspaceContextUpdate");var dy=class{constructor(t){this.ctx=t;this.name="workspaceContext";this.documents=new Map;this.root=Rc;this.disposables=[];this.rootWithPathCache=new Ut;this.disposables.push(zW(t,r=>{(this.nextUpdateTime===void 0||performance.now()>=this.nextUpdateTime)&&setTimeout(()=>{this.update(r)},0)}))}static{o(this,"WorkspaceContextPromptComponent")}snapshot(t){let{completionState:r,telemetryData:n}=t;this.nextUpdateTime=this.lastUpdateTime!==void 0?this.lastUpdateTime+this.ctx.get(Le).workspaceContextCacheTime(n):performance.now();let s=ap(this.rootWithPathCache,r.textDocument.uri,()=>{let l=this.getPathMarker(r);return{id:bi(),text:[`${l}
[319] Fix | Delete
`,""],children:[this.root],cost:1,weight:1,elisionMarker:"",canMerge:!0,requireRenderedChild:!1}}),a=this.getMask(r.textDocument.uri);return{root:s,mask:a}}getRoot(){return this.root}getMask(t){let r=this.documents.get(t);return r===void 0?[]:[r.id]}getPathMarker(t){let r=t.textDocument,n=this.ctx.get(wt),s=n.getRelativePath(t.textDocument),a={uri:r.uri,source:"",relativePath:s,languageId:r.detectedLanguageId},l=n.findNotebook(r);return a.relativePath&&!l?Q0(R_(a),a.languageId):Q0(P_(a),a.languageId)}update(t){this.rootWithPathCache.clear(),this.documents.clear();for(let[r,n]of Object.entries(t.documents)){let s=this.createAnnotatedDocumentRoot(r,n);n.requireRenderedChild=n.children.length>0,this.documents.set(r,s)}this.root=this.createRootNode(),this.lastUpdateTime=performance.now()}createRootNode(){let t=new Array(this.documents.size+1).fill(""),r=[...this.documents.values()];return{id:bi(),text:t,children:r,cost:1,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0}}createAnnotatedDocumentRoot(t,r){let n=zm({uri:t,languageId:"UNKNOWN"}),s=this.getDocumentAnnotation(t,n);return{id:bi(),text:[s,`
[320] Fix | Delete
[321] Fix | Delete
`],children:[r],cost:1,weight:0,elisionMarker:"",canMerge:!0,requireRenderedChild:!0}}getDocumentAnnotation(t,r){let s=this.ctx.get(wt).getRelativePath({uri:t});return Q0(`Related portions of ${s??t}:
[322] Fix | Delete
`,r)}dispose(){for(let t of this.disposables)t.dispose();this.disposables=[]}};var my=class extends fy{static{o(this,"WorkspaceContextPromptFactory")}constructor(t){let r={stableContext:new dy(t),prefix:new sy,suffix:new ay(t),volatileContext:new uy("volatileContext",[new ly,new cy(t)])};super(t,r)}};var VW=Pt(Zn());var _f=class{static{o(this,"CompletionsPromptFactory")}};function GW(e,t,r){return new hI(new xI(new _I(e,new ry(e,t,r),new my(e),Xde)))}o(GW,"createCompletionsPromptFactory");var hI=class extends _f{constructor(r){super();this.delegate=r}static{o(this,"SequentialCompletionsPromptFactory")}async prompt(r,n){return this.lastPromise=this.promptAsync(r,n),this.lastPromise}async promptAsync(r,n){if(await this.lastPromise,n?.isCancellationRequested)return il;try{return await this.delegate.prompt(r,n)}catch{return ip}}},Yde=1200,xI=class{constructor(t){this.delegate=t}static{o(this,"TimeoutHandlingCompletionsPromptFactory")}async prompt(t,r){let n=new VW.CancellationTokenSource,s=n.token;return r?.onCancellationRequested(()=>{n.cancel()}),await Promise.race([this.delegate.prompt(t,s),new Promise(a=>{setTimeout(()=>{n.cancel(),a(KW)},Yde)})])}},_I=class{constructor(t,r,n,s){this.ctx=t;this.defaultDelegate=r;this.experimentalDelegate=n;this.fn=s}static{o(this,"ExperimentalCompletionsPromptFactory")}async prompt(t,r){return this.fn(this.ctx,t.telemetryData)?this.experimentalDelegate.prompt(t,r):this.defaultDelegate.prompt(t,r)}};function Xde(e,t){let r=e.get(Dc);return r.isEnabled(t)&&r.isActive()}o(Xde,"workspaceContextEnabledAndActive");var ny=10,iy={type:"contextTooShort"},oy={type:"copilotContentExclusion"},ip={type:"promptError"},il={type:"promptCancelled"},KW={type:"promptTimeout"};function op(e){let t=e.split(`
[323] Fix | Delete
`),r=t[t.length-1],n=r.length-r.trimEnd().length,s=e.slice(0,e.length-n),a=e.slice(s.length);return[r.length==n?s:e,a]}o(op,"trimLastLine");function py(e,t,r,n,s,a={}){let c=e.get(wt).findNotebook(r.textDocument),u=c?.getCellFor(r.textDocument);c&&u&&(r=Zde(r,c,u)),n.extendWithConfigProperties(e),n.sanitizeKeys();let d=RW(e,n);return e.get(_f).prompt({completionId:t,completionState:r,telemetryData:n,promptOpts:{...a,separateContext:d}},s)}o(py,"extractPrompt");function Jde(e,t){let r=e.document.detectedLanguageId,n=e.document.getText();return r===t?n:Q0(n,t)}o(Jde,"addNeighboringCellsToPrompt");function Zde(e,t,r){let s=t.getCells().filter(c=>c.index<r.index&&H_(r.document.detectedLanguageId,c.document.detectedLanguageId)),a=s.length>0?s.map(c=>Jde(c,r.document.detectedLanguageId)).join(`
[324] Fix | Delete
[325] Fix | Delete
`)+`
[326] Fix | Delete
[327] Fix | Delete
`:"",l={line:0,character:0};return e.applyEdits([{newText:a,range:{start:l,end:l}}])}o(Zde,"applyEditsForNotebook");function np(e,t,r){let s=e.get(Le).maxPromptCompletionTokens(t)-o_(e),a=qj(t,r),l=v_(e,t,r),c=e.get(Le).suffixPercent(t),u=e.get(Le).suffixMatchThreshold(t);if(c<0||c>100)throw new Error(`suffixPercent must be between 0 and 100, but was ${c}`);if(u<0||u>100)throw new Error(`suffixMatchThreshold must be between 0 and 100, but was ${u}`);return{maxPromptLength:s,similarFilesOptions:l,numberOfSnippets:a,suffixPercent:c,suffixMatchThreshold:u}}o(np,"getPromptOptions");var YW=2.98410452738298,XW=-.838732736843507,JW=1.50314646255716,ZW=-.237798634012662,gy={python:.314368072478742},QW={"0.01":.225800751784931,"0.02":.290204307767402,"0.03":.333153496466045,"0.05":.404516749849559,"0.1":.513216040545626,"0.2":.626904979128674,"0.3":.694880719658273,"0.4":.743100684947291,"0.5":.782524520571946,"0.6":.816856186092243,"0.7":.84922977716585,"0.8":.883694877241999,"0.9":.921859050950077,"0.95":.944571268106974,"0.99":.969535563141733};var Qde={link:o(e=>Math.exp(e)/(1+Math.exp(e)),"link"),unlink:o(e=>Math.log(e/(1-e)),"unlink")};function eme(e,t){let r=Math.min(...Array.from(t.keys()).filter(l=>l>=e)),n=Math.max(...Array.from(t.keys()).filter(l=>l<e)),s=t.get(r),a=t.get(n);return a+(s-a)*(e-n)/(r-n)}o(eme,"linearInterpolation");var lp=class{static{o(this,"Regressor")}constructor(t,r,n){this.name=t,this.coefficient=r,this.transformation=n||(s=>s)}contribution(t){return this.coefficient*this.transformation(t)}},yI=class{constructor(t,r,n){this.link=Qde;if(this.intercept=t,this.coefficients=r,this.logitsToQuantiles=new Map,this.logitsToQuantiles.set(0,0),this.logitsToQuantiles.set(1,1),n)for(let s in n)this.logitsToQuantiles.set(n[s],Number(s))}static{o(this,"LogisticRegression")}predict(t,r){let n=this.intercept;for(let s of this.coefficients){let a=r[s.name];if(a===void 0)return NaN;n+=s.contribution(a)}return this.link.link(n)}quantile(t,r){let n=this.predict(t,r);return eme(n,this.logitsToQuantiles)}},eq=new yI(YW,[new lp("compCharLen",XW,e=>Math.log(1+e)),new lp("meanLogProb",JW),new lp("meanAlternativeLogProb",ZW)].concat(Object.entries(gy).map(e=>new lp(e[0],e[1]))),QW);function tq(e,t){let r={...t.measurements};return Object.keys(gy).forEach(n=>{r[n]=t.properties["customDimensions.languageId"]==n?1:0}),eq.predict(e,r)}o(tq,"ghostTextScoreConfidence");function rq(e,t){let r={...t.measurements};return Object.keys(gy).forEach(n=>{r[n]=t.properties["customDimensions.languageId"]==n?1:0}),eq.quantile(e,r)}o(rq,"ghostTextScoreQuantile");var tme=[{max_token_sequence_length:1,last_tokens_to_consider:10},{max_token_sequence_length:10,last_tokens_to_consider:30},{max_token_sequence_length:20,last_tokens_to_consider:45},{max_token_sequence_length:30,last_tokens_to_consider:60}];function iq(e){let t=e.slice();return t.reverse(),nq(t)||nq(t.filter(r=>r.trim().length>0))}o(iq,"isRepetitive");function nq(e){let t=rme(e);for(let r of tme){if(e.length<r.last_tokens_to_consider)continue;if(r.last_tokens_to_consider-1-t[r.last_tokens_to_consider-1]<=r.max_token_sequence_length)return!0}return!1}o(nq,"isRepeatedPattern");function rme(e){let t=Array(e.length).fill(0);t[0]=-1;let r=-1;for(let n=1;n<e.length;n++){for(;r>=0&&e[r+1]!==e[n];)r=t[r];e[r+1]===e[n]&&r++,t[n]=r}return t}o(rme,"kmp_prefix_function");function nme(e,t,r,n){let s="}";try{s=hB(t.detectedLanguageId)??"}"}catch{}return ime({getLineText:o(a=>t.lineAt(a).text,"getLineText"),getLineCount:o(()=>t.lineCount,"getLineCount")},r,n,s)}o(nme,"maybeSnipCompletion");function ime(e,t,r,n){let s=ome(r),a=s.lines;if(a.length===1)return r;for(let l=1;l<a.length;l++){let c=!0,u=0,d=0;for(let f=0;f+l+d<a.length;f++){let m;for(;;){let x=t.line+1+f+u;if(m=x>=e.getLineCount()?void 0:e.getLineText(x),m!==void 0&&m.trim()==="")u++;else break}let p,g;for(;p=l+f+d,g=p>=a.length?void 0:a[p],g!==void 0&&g.trim()==="";)d++;let h=p===a.length-1;if(!g||!(m&&(h?m.startsWith(g)||g.startsWith(m):m===g&&g.trim()===n))){c=!1;break}}if(c)return a.slice(0,l).join(s.newLineCharacter)}return r}o(ime,"maybeSnipCompletionImpl");function ome(e){let t=e.includes(`\r
[328] Fix | Delete
`)?`\r
[329] Fix | Delete
`:`
[330] Fix | Delete
`;return{lines:e.split(t),newLineCharacter:t}}o(ome,"splitByNewLine");function sme(e,t,r,n){let s="",a=t.line+1,l=n?r.trim():r;for(;s===""&&a<e.lineCount;){if(s=e.lineAt(a).text,n&&(s=s.trim()),s===l)return!0;a++}return!1}o(sme,"matchesNextLine");function bI(e,t,r,n,s,a){if(iq(n.tokens)){let c=et.createAndMarkAsIssued();c.extendWithRequestId(n.requestId),Se(e,"repetition.detected",c,1),a.info(e,"Filtered out repetitive solution");return}let l={...n};if(sme(t,r,l.completionText,!s)){let c=et.createAndMarkAsIssued();c.extendWithRequestId(n.requestId),Se(e,"completion.alreadyInDocument",c),Se(e,"completion.alreadyInDocument",c.extendedBy({completionTextJson:JSON.stringify(l.completionText)}),1),a.info(e,"Filtered out solution matching next line");return}return l.completionText=nme(e,t,r,l.completionText),l.completionText?l:void 0}o(bI,"postProcessChoiceInContext");function oq(e,t,r){let s=e.lineAt(t.line).text.substring(t.character);if(s.length>0){if(r.completionText.indexOf(s)!==-1)return s.length;{let a=-1,l=0;for(let c of s){let u=r.completionText.indexOf(c,a+1);if(u>a)l++,a=u;else break}return l}}return 0}o(oq,"checkSuffix");var cq=Pt(yp());var br=new vt("ghostText");var sq=20;async function uq(e,t,r,n,s,a,l){br.debug(e,`Getting ${a} from network`),r=r.extendedBy();let c=t.isCycling?3:1,u=i_(e,c),d={language:t.languageId,next_indent:t.indentation.next??0,trim_by_indentation:bB(t.blockMode),prompt_tokens:t.prompt.prefixTokens??0,suffix_tokens:t.prompt.suffixTokens??0},f={n:c,temperature:u,code_annotations:!1},m=tr(e,Te.ModelAlwaysTerminatesSingleline)??e.get(Le).modelAlwaysTerminatesSingleline(r),p=t.blockMode==="moremultiline"&&V0.isSupported(t.languageId)&&!m;!t.multiline&&!p?f.stop=[`
[331] Fix | Delete
`]:t.stop&&(f.stop=t.stop),t.maxTokens!==void 0&&(f.max_tokens=t.maxTokens);let g=Date.now(),h={endpoint:"completions",uiKind:"ghostText",temperature:JSON.stringify(u),n:JSON.stringify(c),stop:JSON.stringify(f.stop)??"unset",logit_bias:JSON.stringify(null)};Object.assign(r.properties,h);try{let x={prompt:t.prompt,languageId:t.languageId,repoInfo:t.repoInfo,ourRequestId:t.ourRequestId,engineModelId:t.engineModelId,count:c,uiKind:"ghostText",postOptions:f,headers:t.headers,extra:d},_=await e.get(Tc).fetchAndStreamCompletions(e,x,r,s,n);return _.type==="failed"?{type:"failed",reason:_.reason,telemetryData:tn(r,e)}:_.type==="canceled"?(br.debug(e,"Cancelled after awaiting fetchCompletions"),{type:"canceled",reason:_.reason,telemetryData:Cc(r)}):l(g,_.getProcessingTime(),_.choices)}catch(x){if(h0(x))return{type:"canceled",reason:"network request aborted",telemetryData:Cc(r,{cancelledNetworkRequest:!0})};if(br.exception(e,x,"Error on ghost text request"),e.get(Xa).notifyUser(e,x),wf(e))throw x;return{type:"failed",reason:"non-abort error on ghost text request",telemetryData:tn(r,e)}}}o(uq,"genericGetCompletionsFromNetwork");function vI(e,t,r){if(r||(r=[]),e.completionText=e.completionText.trimEnd(),!!e.completionText&&r.findIndex(n=>n.completionText.trim()===e.completionText.trim())===-1)return e}o(vI,"postProcessChoices");async function ame(e,t,r,n,s){return uq(e,t,r,n,s,"completions",async(a,l,c)=>{let d=await c[Symbol.asyncIterator]().next();if(d.done)return br.debug(e,"All choices redacted"),{type:"empty",reason:"all choices redacted",telemetryData:tn(r,e)};if(n?.isCancellationRequested)return br.debug(e,"Cancelled after awaiting redactedChoices iterator"),{type:"canceled",reason:"after awaiting redactedChoices iterator",telemetryData:Cc(r)};let f=d.value;if(f===void 0)return br.debug(e,"Got undefined choice from redactedChoices iterator"),{type:"empty",reason:"got undefined choice from redactedChoices iterator",telemetryData:tn(r,e)};dq(e,"performance",f,a,l),br.debug(e,`Awaited first result, id: ${f.choiceIndex}`);let m=vI(f,t);m&&(hy(e,t,m),br.debug(e,`GhostText first completion (index ${m?.choiceIndex}): ${JSON.stringify(m?.completionText)}`));let p=(async()=>{let g=m!==void 0?[m]:[];for await(let h of c){if(h===void 0)continue;br.debug(e,`GhostText later completion (index ${h?.choiceIndex}): ${JSON.stringify(h.completionText)}`);let x=vI(h,t,g);x&&(g.push(x),hy(e,t,x))}})();return bs(e)&&await p,m?{type:"success",value:[TI(m,{forceSingleLine:!1}),p],telemetryData:tn(r,e),telemetryBlob:r,resultType:0}:{type:"empty",reason:"got undefined processedFirstChoice",telemetryData:tn(r,e)}})}o(ame,"getCompletionsFromNetwork");async function lme(e,t,r,n,s){return uq(e,t,r,n,s,"all completions",async(a,l,c)=>{let u=[];for await(let d of c){if(n?.isCancellationRequested)return br.debug(e,"Cancelled after awaiting choices iterator"),{type:"canceled",reason:"after awaiting choices iterator",telemetryData:Cc(r)};let f=vI(d,t,u);f&&u.push(f)}if(u.length>0){for(let d of u)hy(e,t,d);dq(e,"cyclingPerformance",u[0],a,l)}return{type:"success",value:[u,Promise.resolve()],telemetryData:tn(r,e),telemetryBlob:r,resultType:3}})}o(lme,"getAllCompletionsFromNetwork");function TI(e,t){let r={...e};if(t.forceSingleLine){let{completionText:n}=r,s=n.match(/^\r?\n/);s?r.completionText=s[0]+n.split(`
[332] Fix | Delete
`)[1]:r.completionText=n.split(`
[333] Fix | Delete
`)[0]}return r}o(TI,"makeGhostAPIChoice");function aq(e){return t=>{let r=t?.split(`
[334] Fix | Delete
`)??[];if(r.length>e+1)return r.slice(0,e+1).join(`
[335] Fix | Delete
`).length}}o(aq,"takeNLines");async function cme(e,t,r,n,s,a,l,c){let u=e.get(Le).multilineAfterAcceptLines(c),d=e.get(rf).forLanguage(e,t.textDocument.detectedLanguageId,c);switch(d){case"server":return l?{blockMode:"parsing",requestMultiline:!0,finishedCb:aq(u),stop:[`
[336] Fix | Delete
[337] Fix | Delete
`],maxTokens:sq*u}:{blockMode:"server",requestMultiline:!0,finishedCb:o(f=>{},"finishedCb")};case"parsing":case"parsingandserver":case"moremultiline":default:{let f;try{f=await _me(e,d,t.textDocument,t.position,a,l,n)}catch{f={requestMultiline:!1}}if(!l&&f.requestMultiline&&e.get(Le).singleLineUnlessAccepted(c)&&(f.requestMultiline=!1),f.requestMultiline){let m;return n.trailingWs.length>0&&!n.prompt.prefix.endsWith(n.trailingWs)?m=yi.position(t.position.line,Math.max(t.position.character-n.trailingWs.length,0)):m=t.position,{blockMode:d,requestMultiline:!0,...lq(e,d,t.textDocument,m,f.blockPosition,r,!0,n.prompt,c)}}if(l){let m={blockMode:"parsing",requestMultiline:!0,finishedCb:aq(u),stop:[`
[338] Fix | Delete
[339] Fix | Delete
`],maxTokens:sq*u};return d==="moremultiline"&&(m.blockMode="moremultiline"),m}return{blockMode:d,requestMultiline:!1,...lq(e,d,t.textDocument,t.position,f.blockPosition,r,!1,n.prompt,c)}}}}o(cme,"getGhostTextStrategy");function lq(e,t,r,n,s,a,l,c,u){if(l&&t==="moremultiline"&&V0.isSupported(r.detectedLanguageId)){let d=s==="empty-block"||s==="block-end"?e.get(Le).longLookaheadSize(u):e.get(Le).shortLookaheadSize(u);return{finishedCb:new s_(e,a,r.detectedLanguageId,!1,d,(m,p)=>{let g={prefix:a+m,prompt:{...c,prefix:c.prefix+m}};hy(e,g,p)}).getFinishedCallback(),maxTokens:e.get(Le).maxMultilineTokens(u)}}return{finishedCb:l?Oj(e,r,n):d=>{}}}o(lq,"buildFinishedCallback");var ume={isCycling:!1,promptOnly:!1,isSpeculative:!1};function fme(e,t,r){let n=tr(e,Te.CompletionsDebounce)??e.get(Le).completionsDebounce(r)??t.debounceMs;if(n===void 0)return 0;let s=xn()-r.issuedTime;return Math.max(0,n-s)}o(fme,"getRemainingDebounceMs");function fh(e,t,r){return r?.isCancellationRequested||t!==e.get(Qs).currentRequestId}o(fh,"inlineCompletionRequestCancelled");async function dme(e,t,r,n,s,a){let l=n.issuedTime,c=[];function u(_){let y=xn();c.push([_,y-l]),l=y}o(u,"recordPerformance"),u("telemetry");let d=e.get(Le);if(fh(e,r,s))return{type:"abortedBeforeIssued",reason:"cancelled before extractPrompt",telemetryData:tn(n,e)};let f=pme(t.textDocument,t.position);if(f===void 0)return br.debug(e,"Breaking, invalid middle of the line"),{type:"abortedBeforeIssued",reason:"Invalid middle of the line",telemetryData:tn(n,e)};let m=Rm(e,n),p={...ume,...a,tokenizer:m.tokenizer},g=await py(e,r,t,n,void 0,p);if(u("prompt"),g.type==="copilotContentExclusion")return br.debug(e,"Copilot not available, due to content exclusion"),{type:"abortedBeforeIssued",reason:"Copilot not available due to content exclusion",telemetryData:tn(n,e)};if(g.type==="contextTooShort")return br.debug(e,"Breaking, not enough context"),{type:"abortedBeforeIssued",reason:"Not enough context",telemetryData:tn(n,e)};if(g.type==="promptError")return br.debug(e,"Error while building the prompt"),{type:"abortedBeforeIssued",reason:"Error while building the prompt",telemetryData:tn(n,e)};if(p.promptOnly)return{type:"promptOnly",reason:"Breaking, promptOnly set to true",prompt:g};if(g.type==="promptCancelled")return br.debug(e,"Cancelled during extractPrompt"),{type:"abortedBeforeIssued",reason:"Cancelled during extractPrompt",telemetryData:tn(n,e)};if(g.type==="promptTimeout")return br.debug(e,"Timeout during extractPrompt"),{type:"abortedBeforeIssued",reason:"Timeout",telemetryData:tn(n,e)};if(g.prompt.prefix.length===0&&g.prompt.suffix.length===0)return br.debug(e,"Error empty prompt"),{type:"abortedBeforeIssued",reason:"Empty prompt",telemetryData:tn(n,e)};let h=fme(e,p,n);return h>0&&(br.debug(e,`Debouncing ghost text request for ${h}ms`),await vc(h),fh(e,r,s))?{type:"abortedBeforeIssued",reason:"cancelled after debounce",telemetryData:tn(n,e)}:e.get(Hr).withProgress(async()=>{let[_]=op(t.textDocument.getText(yi.range(yi.position(0,0),t.position))),y=e.get(Qs).hasAcceptedCurrentCompletion(_,g.prompt.suffix),b=g.prompt,T=await cme(e,t,_,g,p.isCycling,f,y,n);u("strategy");let v=mme(e,_,b,T.requestMultiline);u("cache");let S=Am(e,t.textDocument.uri),R={blockMode:T.blockMode,languageId:t.textDocument.detectedLanguageId,repoInfo:S,engineModelId:m.modelId,ourRequestId:r,prefix:_,prompt:g.prompt,multiline:T.requestMultiline,indentation:Lj(t.textDocument,t.position),isCycling:p.isCycling,headers:m.headers,stop:T.stop,maxTokens:T.maxTokens,afterAccept:y};R.headers={...R.headers,"X-Copilot-Async":"true","X-Copilot-Speculative":p.isSpeculative?"true":"false"};let j=Cme(e,t.textDocument,R,t.position,g,n,m,p);if(v===void 0&&!p.isCycling&&e.get(Lo).shouldWaitForAsyncCompletions(_,g.prompt)){let I=await e.get(Lo).getFirstMatchingRequestWithTimeout(r,_,g.prompt,p.isSpeculative,j);if(u("asyncWait"),I){let A=!T.requestMultiline;v=[[TI(I[0],{forceSingleLine:A})],4]}if(fh(e,r,s))return br.debug(e,"Cancelled before requesting a new completion"),{type:"abortedBeforeIssued",reason:"Cancelled after waiting for async completion",telemetryData:tn(j,e)}}let K=T.blockMode==="moremultiline"&&V0.isSupported(t.textDocument.detectedLanguageId);if(v!==void 0&&(v[0]=v[0].map(I=>bI(e,t.textDocument,t.position,I,K,br)).filter(I=>I!==void 0)),v!==void 0&&v[0].length===0)return br.debug(e,`Found empty inline suggestions locally via ${Ym(v[1])}`),{type:"empty",reason:"cached results empty after post-processing",telemetryData:tn(j,e)};if(v!==void 0&&v[0].length>0&&(!p.isCycling||v[0].length>1))br.debug(e,`Found inline suggestions locally via ${Ym(v[1])}`);else{if(p.isCycling){let I=await lme(e,R,j,s,T.finishedCb);if(I.type==="success"){let A=v?.[0]??[];I.value[0].forEach(w=>{A.findIndex(P=>P.completionText.trim()===w.completionText.trim())===-1&&A.push(w)}),v=[A,3]}else if(v===void 0)return I}else{let I=o((O,M)=>(e.get(Lo).updateCompletion(r,O),T.finishedCb(O,M)),"finishedCb"),A=new pr.CancellationTokenSource,w=ame(e,R,j,A.token,I);e.get(Lo).queueCompletionRequest(r,_,g.prompt,A,w);let P=await e.get(Lo).getFirstMatchingRequest(r,_,g.prompt,p.isSpeculative);if(P===void 0)return{type:"empty",reason:"received no results from async completions",telemetryData:tn(j,e)};v=[[P[0]],4]}u("network")}if(v===void 0)return{type:"failed",reason:"internal error: choices should be defined after network call",telemetryData:tn(j,e)};let[V,Y]=v,N=V.map(I=>bI(e,t.textDocument,t.position,I,K,br)).filter(I=>I!==void 0),k=tr(e,Te.CompletionsDelay)??d.completionsDelay(n),z=xn()-n.issuedTime,D=Math.max(k-z,0);if(Y!==2&&!p.isCycling&&D>0&&(br.debug(e,`Waiting ${D}ms before returning completion`),await vc(D),fh(e,r,s)))return br.debug(e,"Cancelled after completions delay"),{type:"canceled",reason:"after completions delay",telemetryData:Cc(j)};let E=[];for(let I of N){let A=Tme(e,t.textDocument,R,I,j),w=f?oq(t.textDocument,t.position,I):0,O={completion:yme(I.choiceIndex,I.completionText,g.trailingWs),telemetry:A,isMiddleOfTheLine:f,suffixCoverage:w,copilotAnnotations:I.copilotAnnotations,clientCompletionId:I.clientCompletionId};E.push(O)}return j.properties.clientCompletionId=E[0]?.clientCompletionId,j.measurements.foundOffset=E?.[0]?.telemetry?.measurements?.foundOffset??-1,br.debug(e,`Produced ${E.length} results from ${Ym(Y)} at ${j.measurements.foundOffset} offset`),fh(e,r,s)?{type:"canceled",reason:"after post processing completions",telemetryData:Cc(j)}:(p.isSpeculative||e.get(Qs).setGhostText(_,g.prompt.suffix,N,Y),u("complete"),{type:"success",value:[E,Y],telemetryData:tn(j,e),telemetryBlob:j,resultType:Y,performanceMetrics:c})})}o(dme,"getGhostTextWithoutAbortHandling");async function CI(e,t,r,n){let s=wi();e.get(Qs).currentRequestId=s;let a=await vme(e,t.textDocument,s,n);await s3.catch(()=>{});try{return e.get(Ks).schedule(t,s,n?.opportunityId??"",a,r,n),e.get(sf).notifyRequest(t,s,a,r,n),await dme(e,t,s,a,r,n)}catch(l){if(h0(l))return{type:"canceled",reason:"aborted at unknown location",telemetryData:Cc(a,{cancelledNetworkRequest:!0})};throw l}}o(CI,"getGhostText");function mme(e,t,r,n){let s=e.get(Qs).getCompletionsForUserTyping(t,r.suffix),a=bme(e,t,r.suffix,n);if(s&&s.length>0){let l=(a??[]).filter(c=>!s.some(u=>u.completionText===c.completionText));return[s.concat(l),2]}if(a&&a.length>0)return[a,1]}o(mme,"getLocalInlineSuggestion");function pme(e,t){let r=gme(t,e),n=hme(t,e);return r&&!n?void 0:r&&n}o(pme,"isInlineSuggestion");function gme(e,t){return t.lineAt(e).text.substr(e.character).trim().length!=0}o(gme,"isMiddleOfTheLine");function hme(e,t){let n=t.lineAt(e).text.substr(e.character).trim();return/^\s*[)>}\]"'`]*\s*[:{;,]?\s*$/.test(n)}o(hme,"isValidMiddleOfTheLinePosition");function xme(e,t){return t.lineAt(e).text.trim().length===0}o(xme,"isNewLine");var cp=class e{constructor(t=!1){this.requestMultilineOverride=t}static{o(this,"ForceMultiLine")}static{this.default=new e}};async function _me(e,t,r,n,s,a,l){if(e.get(cp).requestMultilineOverride)return{requestMultiline:!0};if(r.lineCount>=8e3)Se(e,"ghostText.longFileMultilineSkip",et.createAndMarkAsIssued({languageId:r.detectedLanguageId,lineCount:String(r.lineCount),currentLine:String(n.line)}));else{if(t=="moremultiline"&&V0.isSupported(r.detectedLanguageId))return a?{requestMultiline:!0,blockPosition:await _B(r,n)}:{requestMultiline:!1};if(["typescript","typescriptreact"].includes(r.detectedLanguageId)&&xme(n,r))return{requestMultiline:!0};let u=!1;return!s&&H0(r.detectedLanguageId)?u=await x_(r,n):s&&H0(r.detectedLanguageId)&&(u=await x_(r,n)||await x_(r,r.lineAt(n).range.end)),u||["javascript","javascriptreact","python"].includes(r.detectedLanguageId)&&(u=Z$(l.prompt,r.detectedLanguageId)>.5),{requestMultiline:u}}return{requestMultiline:!1}}o(_me,"shouldRequestMultiline");function hy(e,t,r){e.get(Y0).append(t.prefix,t.prompt.suffix,r)}o(hy,"appendToCache");function yme(e,t,r){if(r.length>0){if(t.startsWith(r))return{completionIndex:e,completionText:t,displayText:t.substring(r.length),displayNeedsWsOffset:!1};{let n=t.substring(0,t.length-t.trimStart().length);return r.startsWith(n)?{completionIndex:e,completionText:t,displayText:t.trimStart(),displayNeedsWsOffset:!0}:{completionIndex:e,completionText:t,displayText:t,displayNeedsWsOffset:!1}}}else return{completionIndex:e,completionText:t,displayText:t,displayNeedsWsOffset:!1}}o(yme,"adjustLeadingWhitespace");function bme(e,t,r,n){let s=e.get(Y0).findAll(t,r);return s.length===0?(br.debug(e,"Found no completions in cache"),[]):(br.debug(e,`Found ${s.length} completions in cache`),s.map(a=>TI(a,{forceSingleLine:!n})))}o(bme,"getCompletionsFromCache");async function vme(e,t,r,n){let s={headerRequestId:r};n?.opportunityId&&(s.opportunityId=n.opportunityId),n?.selectedCompletionInfo?.text&&(s.completionsActive="true"),n?.isSpeculative&&(s.reason="speculative");let a=et.createAndMarkAsIssued(s);return await e.get(Le).fetchTokenAndUpdateExPValuesAndAssignments({uri:t.uri,languageId:t.detectedLanguageId},a)}o(vme,"createTelemetryWithExp");function Tme(e,t,r,n,s){let a=n.requestId,l={choiceIndex:n.choiceIndex.toString(),clientCompletionId:n.clientCompletionId};n.generatedChoiceIndex!==void 0&&(l.originalChoiceIndex=l.choiceIndex,l.choiceIndex=(1e4*(n.generatedChoiceIndex+1)+n.choiceIndex).toString());let c={compCharLen:n.completionText.length,numLines:n.completionText.trim().split(`
[340] Fix | Delete
`).length};n.meanLogProb&&(c.meanLogProb=n.meanLogProb),n.meanAlternativeLogProb&&(c.meanAlternativeLogProb=n.meanAlternativeLogProb);let u=n.telemetryData.extendedBy(l,c);return u.issuedTime=s.issuedTime,u.measurements.timeToProduceMs=performance.now()-s.issuedTime,fq(u,t),u.extendWithRequestId(a),u.measurements.confidence=tq(e,u),u.measurements.quantile=rq(e,u),br.debug(e,`Extended telemetry for ${n.telemetryData.properties.headerRequestId} with retention confidence ${u.measurements.confidence} (expected as good or better than about ${u.measurements.quantile} of all suggestions)`),u}o(Tme,"telemetryWithAddData");function Cme(e,t,r,n,s,a,l,c){let u={languageId:t.detectedLanguageId};u.afterAccept=r.afterAccept.toString(),u.isSpeculative=c.isSpeculative.toString();let d=a.extendedBy(u);fq(d,t);let f=r.repoInfo;d.properties.gitRepoInformation=f===void 0?"unavailable":f===0?"pending":"available",f!==void 0&&f!==0&&(d.properties.gitRepoUrl=f.url,d.properties.gitRepoHost=f.hostname,d.properties.gitRepoOwner=f.owner,d.properties.gitRepoName=f.repo,d.properties.gitRepoPath=f.pathname),d.properties.engineName=l.modelId,d.properties.engineChoiceSource=l.engineChoiceSource,d.properties.isMultiline=JSON.stringify(r.multiline),d.properties.isCycling=JSON.stringify(r.isCycling);let m=t.lineAt(n.line),p=t.getText(yi.range(m.range.start,n)),g=t.getText(yi.range(n,m.range.end)),h=Array.from(s.neighborSource.entries()).map(b=>[b[0],b[1].map(T=>(0,cq.SHA256)(T).toString())]),x={beforeCursorWhitespace:JSON.stringify(p.trim()===""),afterCursorWhitespace:JSON.stringify(g.trim()===""),neighborSource:JSON.stringify(h),blockMode:r.blockMode},_={...W2(s.prompt),promptEndPos:t.offsetAt(n),promptComputeTimeMs:s.computeTimeMs};s.metadata&&(x.promptMetadata=JSON.stringify(s.metadata)),s.contextProvidersTelemetry&&(x.contextProviders=JSON.stringify(s.contextProvidersTelemetry));let y=d.extendedBy(x,_);return Se(e,"ghostText.issued",y),d}o(Cme,"telemetryIssued");function fq(e,t){e.measurements.documentLength=t.getText().length,e.measurements.documentLineCount=t.lineCount}o(fq,"addDocumentTelemetry");function dq(e,t,r,n,s){let a=Date.now()-n,l=a-s,c=r.telemetryData.extendedBy({},{completionCharLen:r.completionText.length,requestTimeMs:a,processingTimeMs:s,deltaMs:l,meanLogProb:r.meanLogProb||NaN,meanAlternativeLogProb:r.meanAlternativeLogProb||NaN});c.extendWithRequestId(r.requestId),Se(e,`ghostText.${t}`,c)}o(dq,"telemetryPerformance");var Qs=class{constructor(){this.choices=[]}static{o(this,"CurrentGhostText")}get clientCompletionId(){return this.choices[0]?.clientCompletionId}setGhostText(t,r,n,s){s!==2&&(this.prefix=t,this.suffix=r,this.choices=n)}getCompletionsForUserTyping(t,r){let n=this.getRemainingPrefix(t,r);if(n!==void 0&&mq(this.choices[0].completionText,n))return Eme(this.choices,n)}hasAcceptedCurrentCompletion(t,r){let n=this.getRemainingPrefix(t,r);if(n===void 0)return!1;let s=n===this.choices?.[0].completionText,a=this.choices?.[0].finishReason;return s&&a==="stop"}getRemainingPrefix(t,r){if(!(this.prefix===void 0||this.suffix===void 0||this.choices.length===0)&&this.suffix===r&&t.startsWith(this.prefix))return t.substring(this.prefix.length)}};function Eme(e,t){return e.filter(r=>mq(r.completionText,t)).map(r=>({...r,completionText:r.completionText.substring(t.length)}))}o(Eme,"adjustChoicesStart");function mq(e,t){return e.startsWith(t)&&e.length>t.length}o(mq,"startsWithAndExceeds");var yf=class{constructor(t,r,n){this._referenceCount=0;this._isDisposed=!1;this._offset=n;let s=t.get(wt);this._tracker=s.onDidChangeTextDocument(a=>{if(a.document.uri===r){for(let l of a.contentChanges)if(l.rangeOffset+l.rangeLength<=this.offset){let c=l.text.length-l.rangeLength;this._offset=this._offset+c}}})}static{o(this,"ChangeTracker")}get offset(){return this._offset}push(t,r){if(this._isDisposed)throw new Error("Unable to push new actions to a disposed ChangeTracker");this._referenceCount++,setTimeout(()=>{t(),this._referenceCount--,this._referenceCount===0&&(this._tracker.dispose(),this._isDisposed=!0)},r)}};var EI=class e{constructor(t,r,n=[],s,a,l){this._textDocument=t;this._position=r;this.originalPosition=s??pr.Position.create(r.line,r.character),this.originalVersion=a??t.version,this.originalOffset=l??t.offsetAt(this.originalPosition),this._editsWithPosition=[...n]}static{o(this,"CompletionState")}get textDocument(){return this._textDocument}get position(){return this._position}get editsWithPosition(){return[...this._editsWithPosition]}updateState(t,r,n){return new e(t,r,n??this.editsWithPosition,this.originalPosition,this.originalVersion,this.originalOffset)}updatePosition(t){return this.updateState(this._textDocument,t)}addSelectedCompletionInfo(t){if(this.editsWithPosition.find(n=>n.source==="selectedCompletionInfo"))throw new Error("Selected completion info already applied");let r={range:t.range,newText:t.text};return this.applyEdits([r],!0)}applyEdits(t,r=!1){if(r&&t.length>1)throw new Error("Selected completion info should be a single edit");let n=this._textDocument,s=this._position,a=n.offsetAt(s),l=this.editsWithPosition;for(let{range:c,newText:u}of t){let d=n.getText(c),f=n.offsetAt(c.end);if(n=n.applyEdits([{range:c,newText:u}]),a<n.offsetAt(c.start)){let p={range:c,newText:u,positionAfterEdit:pr.Position.create(s.line,s.character)};r&&(p.source="selectedCompletionInfo"),l.push(p);continue}a<f&&(a=f),a+=u.length-d.length,s=n.positionAt(a);let m={range:c,newText:u,positionAfterEdit:pr.Position.create(s.line,s.character)};r&&(m.source="selectedCompletionInfo"),l.push(m)}return this.updateState(n,s,l)}};function xy(e,t){return new EI(e,t)}o(xy,"createCompletionState");var _y="codereferencing.showOutputPane",pq="code-referencing";var ii=new vt(pq);var Ime=3e3,II=2,gq=256,hq=Math.log(gq)/Math.log(II)/II,e0={connection:"disabled",maxAttempts:hq,retryAttempts:0,initialWait:!1},yy,by=[];function wme(){if(yy)return yy;function e(y){return by.push(y),()=>{let b=by.indexOf(y);b!==-1&&by.splice(b,1)}}o(e,"subscribe");function t(){for(let y of by)y()}o(t,"afterUpdateConnection");function r(y){e0.connection!==y&&(e0.connection=y,t())}o(r,"updateConnection");function n(){return e0.connection==="connected"}o(n,"isConnected");function s(){return e0.connection==="disconnected"}o(s,"isDisconnected");function a(){return e0.connection==="retry"}o(a,"isRetrying");function l(){return e0.connection==="disabled"}o(l,"isDisabled");function c(){r("connected"),m(!1)}o(c,"setConnected");function u(){r("disconnected")}o(u,"setDisconnected");function d(){r("retry")}o(d,"setRetrying");function f(){r("disabled")}o(f,"setDisabled");function m(y){e0.initialWait!==y&&(e0.initialWait=y)}o(m,"setInitialWait");function p(y,b=Ime){a()||(d(),m(!0),h(y,b))}o(p,"enableRetry");function g(){return e0.initialWait}o(g,"isInitialWait");async function h(y,b){ii.info(y,`Attempting to reconnect in ${b}ms.`),await x(b),m(!1);let T=y.get(ln);function v(S,R){if(S>gq){ii.info(R,"Max retry time reached, disabling."),f();return}let j=o(async()=>{e0.retryAttempts=Math.min(e0.retryAttempts+1,hq);try{ii.info(R,`Pinging service after ${S} second(s)`);let K=await T.fetch(new URL("_ping",X2(R)["origin-tracker"]).href,{method:"GET",headers:{"content-type":"application/json"}});if(K.status!==200||!K.ok)v(S**2,R);else{ii.info(R,"Successfully reconnected."),c();return}}catch{v(S**2,R)}},"tryAgain");setTimeout(()=>void j(),S*1e3)}o(v,"succeedOrRetry"),ii.info(y,"Attempting to reconnect."),v(II,y)}o(h,"attemptToPing");let x=o(y=>new Promise(b=>setTimeout(b,y)),"timeout");function _(y){return{dispose:e(y)}}return o(_,"listen"),yy={setConnected:c,setDisconnected:u,setRetrying:d,setDisabled:f,enableRetry:p,listen:_,isConnected:n,isDisconnected:s,isRetrying:a,isDisabled:l,isInitialWait:g},yy}o(wme,"registerConnectionState");var bf=wme();var Hn={BadArguments:"BadArgumentsError",Unauthorized:"NotAuthorized",NotFound:"NotFoundError",RateLimit:"RateLimitError",InternalError:"InternalError",ConnectionError:"ConnectionError",Unknown:"UnknownError"},dh={[Hn.Unauthorized]:"Invalid GitHub token. Please sign out from your GitHub account using VSCode UI and try again",[Hn.InternalError]:"Internal error: matches to public code will not be detected. It is advised to disable Copilot completions until the service is reconnected.",[Hn.RateLimit]:"You've reached your quota and limit, code matching will be unavailable until the limit resets"};function wI(e){return e===401?Hn.Unauthorized:e===400?Hn.BadArguments:e===404?Hn.NotFound:e===429?Hn.RateLimit:e>=500&&e<600?Hn.InternalError:e>=600?Hn.ConnectionError:Hn.Unknown}o(wI,"getErrorType");function ea(e,t,r={}){return{kind:"failure",reason:wI(Number(e)),code:Number(e),msg:t,meta:r}}o(ea,"createErrorResponse");var Sme=/^[1-6][0-9][0-9]$/,Pme=/([A-Z][a-z]+)/,Rme="code_referencing",mh=class{constructor(t){this.baseKey=t}static{o(this,"CodeQuoteTelemetry")}buildKey(...t){return[Rme,this.baseKey,...t].join(".")}},SI=class extends mh{static{o(this,"CopilotOutputLogTelemetry")}constructor(){super("github_copilot_log")}handleOpen({context:t}){let r=this.buildKey("open","count"),n=et.createAndMarkAsIssued();Se(t,r,n)}handleFocus({context:t}){let r=et.createAndMarkAsIssued(),n=this.buildKey("focus","count");Se(t,n,r)}handleWrite({context:t}){let r=et.createAndMarkAsIssued(),n=this.buildKey("write","count");Se(t,n,r)}},ph=new SI,PI=class extends mh{static{o(this,"MatchNotificationTelemetry")}constructor(){super("match_notification")}handleDoAction({context:t,actor:r}){let n=et.createAndMarkAsIssued({actor:r}),s=this.buildKey("acknowledge","count");Se(t,s,n)}handleDismiss({context:t,actor:r}){let n=et.createAndMarkAsIssued({actor:r}),s=this.buildKey("ignore","count");Se(t,s,n)}},AI=new PI,RI=class extends mh{static{o(this,"SnippyTelemetry")}constructor(){super("snippy")}handleUnexpectedError({context:t,origin:r,reason:n}){let s=et.createAndMarkAsIssued({origin:r,reason:n});Fs(t,this.buildKey("unexpectedError"),s)}handleCompletionMissing({context:t,origin:r,reason:n}){let s=et.createAndMarkAsIssued({origin:r,reason:n});Fs(t,this.buildKey("completionMissing"),s)}handleSnippyNetworkError({context:t,origin:r,reason:n,message:s}){if(!r.match(Sme)){ii.debug(t,"Invalid status code, not sending telemetry",{origin:r});return}let a=n.split(Pme).filter(c=>!!c).join("_").toLowerCase(),l=et.createAndMarkAsIssued({message:s});Fs(t,this.buildKey(a,r),l)}},vy=new RI;var Ame="twirp/github.snippy.v1.SnippyAPI";async function DI(e,t,r,n){let s;try{s=await e.get(Kt).getToken()}catch{return bf.setDisconnected(),ea(401,dh[Hn.Unauthorized])}if(ii.info(e,`Calling ${t}`),bf.isRetrying())return ea(600,"Attempting to reconnect to the public code matching service.");if(bf.isDisconnected())return ea(601,"The public code matching service is offline.");let a;try{a=await e.get(ln).fetch(Pd(e,s,"origin-tracker",`${Ame}/${t}`),{method:r.method,body:r.method==="POST"?JSON.stringify(r.body):void 0,headers:{"content-type":"application/json",authorization:`Bearer ${s.token}`,...Rl(e)},signal:n})}catch{return bf.enableRetry(e),ea(602,"Network error detected. Check your internet connection.")}let l;try{l=await a.json()}catch(h){let x=h.message;throw vy.handleUnexpectedError({context:e,origin:"snippyNetwork",reason:x}),h}if(a.ok)return{kind:"success",...l};let c={...l,code:Number(a.status)},{code:u,msg:d,meta:f}=c,m=Number(u),p=wI(m),g=d||"unknown error";switch(p){case Hn.Unauthorized:return ea(u,dh[Hn.Unauthorized],f);case Hn.BadArguments:return ea(u,g,f);case Hn.RateLimit:return bf.enableRetry(e,60*1e3),ea(u,dh.RateLimitError,f);case Hn.InternalError:return bf.enableRetry(e),ea(u,dh[Hn.InternalError],f);default:return ea(u,g,f)}}o(DI,"call");var Ty=L.Object({kind:L.Literal("failure"),reason:L.String(),code:L.Number(),msg:L.String(),meta:L.Optional(L.Any())}),kme=L.Object({matched_source:L.String(),occurrences:L.String(),capped:L.Boolean(),cursor:L.String(),github_url:L.String()}),xq=L.Object({source:L.String()}),Nme=L.Object({snippets:L.Array(kme)}),_q=L.Union([Nme,Ty]),yq=L.Object({cursor:L.String()}),Ome=L.Object({commit_id:L.String(),license:L.String(),nwo:L.String(),path:L.String(),url:L.String()}),Lme=L.Object({has_next_page:L.Boolean(),cursor:L.String()}),Fme=L.Object({count:L.Record(L.String(),L.String())}),Mme=L.Object({file_matches:L.Array(Ome),page_info:Lme,license_stats:Fme}),bq=L.Union([Mme,Ty]);async function vq(e,t,r){let n=await DI(e,"Match",{method:"POST",body:cf(xq,{source:t})},r);return cf(_q,n)}o(vq,"Match");async function Tq(e,{cursor:t},r){let n=await DI(e,"FilesForMatch",{method:"POST",body:cf(yq,{cursor:t})},r);return cf(bq,n)}o(Tq,"FilesForMatch");var gh=new RegExp("[_\\p{L}\\p{Nd}]+|====+|----+|####+|////+|\\*\\*\\*\\*+|[\\p{P}\\p{S}]","gu"),Cy=65;function $me(e){let t=0,r;gh.lastIndex=0;do if(r=gh.exec(e),r&&(t+=1),t>=Cy)break;while(r);return t}o($me,"lexemeLength");function jme(e,t){let r=0,n;gh.lastIndex=0;do if(n=gh.exec(e),n&&(r+=1,r>=t))return gh.lastIndex;while(n);return e.length}o(jme,"offsetFirstLexemes");function Cq(e,t){let r=e.split("").reverse().join(""),n=jme(r,t);return r.length-n}o(Cq,"offsetLastLexemes");function hh(e){return $me(e)>=Cy}o(hh,"hasMinLexemeLength");function qme(e){return W0.Check(Ty,e)}o(qme,"isError");async function Eq(e,t){let r=await t();if(qme(r)){vy.handleSnippyNetworkError({context:e,origin:String(r.code),reason:r.reason,message:r.msg});return}return r}o(Eq,"snippyRequest");function Iq(e){return"kind"in e&&e.kind==="failure"}o(Iq,"isMatchError");async function wq(e,t,r,n){let a=await e.get(wt).getTextDocument({uri:t});if(!a){ii.debug(e,`Expected document matching ${t}, got nothing.`);return}let l=a.getText();if(!hh(l)||!hh(l))return;let c=r;if(!hh(r)){let g=l.slice(0,n),h=Cq(g,Cy);c=l.slice(h,n+r.length)}if(!hh(c))return;let u=await Eq(e,()=>vq(e,c));if(!u||Iq(u)||!u.snippets.length){ii.info(e,"No match found");return}ii.info(e,"Match found");let{snippets:d}=u,f=d.map(async g=>{let h=await Eq(e,()=>Tq(e,{cursor:g.cursor}));if(!h||Iq(h))return;let x=h.file_matches,_=h.license_stats;return{match:g,files:x,licenseStats:_}}),p=(await Promise.all(f)).filter(g=>g!==void 0);if(p.length)for(let g of p){let h=new Set(Object.keys(g.licenseStats?.count??{}));h.has("NOASSERTION")&&(h.delete("NOASSERTION"),h.add("unknown"));let x=Array.from(h).sort(),_=n,y=n+g.match.matched_source.length,b=a.positionAt(_),T=a.positionAt(y);await e.get(G0).handleIPCodeCitation(e,{inDocumentUri:t,offsetStart:_,offsetEnd:y,version:a.version,location:{start:b,end:T},matchingText:c,details:x.map(v=>({license:v,url:g.match.github_url}))})}}o(wq,"fetchCitations");function kI(e,t,r=(n,s)=>n===s?0:1){if(t.length===0||e.length===0)return{distance:t.length,startOffset:0,endOffset:0};let n=new Array(t.length+1).fill(0),s=new Array(t.length+1).fill(0),a=new Array(e.length+1).fill(0),l=new Array(e.length+1).fill(0),c=t[0];for(let d=0;d<e.length+1;d++)d===0?n[d]=1:n[d]=r(e[d-1],c,d-1,0),s[d]=d>0?d-1:0;for(let d=1;d<t.length;d++){let f=a;a=n,n=f,f=l,l=s,s=f,c=t[d],n[0]=d+1;for(let m=1;m<e.length+1;m++){let p=1+a[m],g=1+n[m-1],h=r(e[m-1],c,m-1,d)+a[m-1];n[m]=Math.min(g,p,h),n[m]===h?s[m]=l[m-1]:n[m]===p?s[m]=l[m]:s[m]=s[m-1]}}let u=0;for(let d=0;d<e.length+1;d++)n[d]<n[u]&&(u=d);return{distance:n[u],startOffset:s[u],endOffset:u}}o(kI,"editDistance");function Hme(){return new Map}o(Hme,"emptyLexDictionary");function zme(e){let t=new Array(e.size);for(let[r,n]of e)t[n]=r;return t}o(zme,"reverseLexDictionary");function*Vme(e){let t="",r;(c=>(c[c.Word=0]="Word",c[c.Space=1]="Space",c[c.Other=2]="Other"))(r||={});let n=0;for(let s of e){let a;/(\p{L}|\p{Nd}|_)/u.test(s)?a=0:s===" "?a=1:a=2,a===n&&a!==2?t+=s:(t.length>0&&(yield t),t=s,n=a)}t.length>0&&(yield t)}o(Vme,"lexGeneratorWords");function Sq(e,t,r,n){let s=[],a=0;for(let l of r(e))n(l)&&(t.has(l)||t.set(l,t.size),s.push([t.get(l),a])),a+=l.length;return[s,t]}o(Sq,"lexicalAnalyzer");function Pq(e){return e!==" "}o(Pq,"notSingleSpace");function Rq(e,t,r=Vme){let[n,s]=Sq(e,Hme(),r,Pq),[a,l]=Sq(t,s,r,Pq);if(a.length===0||n.length===0)return{lexDistance:a.length,startOffset:0,endOffset:0,haystackLexLength:n.length,needleLexLength:a.length};let c=zme(l),u=a.length,d=c[a[0][0]],f=c[a[u-1][0]];function m(x,_,y,b){if(b===0||b===u-1){let T=c[n[y][0]];return b==0&&T.endsWith(d)||b==u-1&&T.startsWith(f)?0:1}else return x===_?0:1}o(m,"compare");let p=kI(n.map(x=>x[0]),a.map(x=>x[0]),m),g=n[p.startOffset][1],h=p.endOffset<n.length?n[p.endOffset][1]:e.length;return h>0&&e[h-1]===" "&&--h,{lexDistance:p.distance,startOffset:g,endOffset:h,haystackLexLength:n.length,needleLexLength:a.length}}o(Rq,"lexEditDistance");function up(e){return e.length===0?0:e.split(`
[341] Fix | Delete
`).length}o(up,"countLines");function Aq(e,t){return t.compType==="partial"?e.substring(0,t.acceptedLength):e}o(Aq,"computeCompletionText");var kc=new vt("postInsertion"),Dq=[{seconds:15,captureCode:!1,captureRejection:!1},{seconds:30,captureCode:!0,captureRejection:!0},{seconds:120,captureCode:!1,captureRejection:!1},{seconds:300,captureCode:!1,captureRejection:!1},{seconds:600,captureCode:!1,captureRejection:!1}],kq=50,Gme=1500,Kme=.5,Yme=500,NI={triggerPostInsertionSynchroneously:!1,captureCode:!1,captureRejection:!1};async function Nq(e,t,r,n,s){let a=await e.get(yc).getOrReadTextDocumentWithFakeClientProperties({uri:t});if(a.status!=="valid")return kc.info(e,`Could not get document for ${t}. Maybe it was closed by the editor.`),{prompt:{prefix:"",suffix:"",isFimEnabled:!1},capturedCode:"",terminationOffset:0};let l=a.document,c=l.getText(),u=c.substring(0,n),d=l.positionAt(n),f=await py(e,r.properties.headerRequestId,xy(l,d),r),m=f.type==="prompt"?f.prompt:{prefix:u,suffix:"",isFimEnabled:!1};if(m.isFimEnabled&&s!==void 0){let p=c.substring(n,s);return m.suffix=c.substring(s),{prompt:m,capturedCode:p,terminationOffset:0}}else{let p=c.substring(n),g=AE(u,n,l.detectedLanguageId),x=Fj(g,void 0)(p),_=Math.min(c.length,n+(x?x*2:Yme)),y=c.substring(n,_);return{prompt:m,capturedCode:y,terminationOffset:x??-1}}}o(Nq,"captureCode");function Oq(e,t,r,n,s){s.forEach(({completionText:u,completionTelemetryData:d})=>{kc.debug(e,`${t}.rejected choiceIndex: ${d.properties.choiceIndex}`),dj(e,t,d)});let a=new yf(e,n,r-1),l=new yf(e,n,r),c=o(async u=>{kc.debug(e,`Original offset: ${r}, Tracked offset: ${a.offset}`);let{completionTelemetryData:d}=s[0],{prompt:f,capturedCode:m,terminationOffset:p}=await Nq(e,n,d,a.offset+1,l.offset),g={hypotheticalPromptJson:JSON.stringify({prefix:f.prefix,context:f.context}),hypotheticalPromptSuffixJson:JSON.stringify(f.suffix)},h=d.extendedBy({...g,capturedCodeJson:JSON.stringify(m)},{timeout:u.seconds,insertionOffset:r,trackedOffset:a.offset,terminationOffsetInCapturedCode:p});kc.debug(e,`${t}.capturedAfterRejected choiceIndex: ${d.properties.choiceIndex}`,h),Se(e,t+".capturedAfterRejected",h,1)},"checkInCode");Dq.filter(u=>u.captureRejection).map(u=>a.push(Uo(e,()=>c(u),"postRejectionTasks"),u.seconds*1e3))}o(Oq,"postRejectionTasks");function LI(e,t,r,n,s,a,l,c){let u=a.extendedBy({compType:l.compType},{compCharLen:l.acceptedLength,numLines:l.acceptedLines});kc.debug(e,`${t}.accepted choiceIndex: ${u.properties.choiceIndex}`),fj(e,t,u);let d=r;r=Aq(r,l);let f=r.trim(),m=new yf(e,s,n),p=new yf(e,s,n+r.length),g=o(async h=>{await Qme(e,t,f,n,s,h,u,m,p)},"stillInCodeCheck");if(NI.triggerPostInsertionSynchroneously&&bs(e)){let h=g({seconds:0,captureCode:NI.captureCode,captureRejection:NI.captureRejection});e.get(so).register(h)}else Dq.map(h=>m.push(Uo(e,()=>g(h),"postInsertionTasks"),h.seconds*1e3));Uo(e,Xme,"post insertion citation check")(e,s,d,r,n,c)}o(LI,"postInsertionTasks");async function Xme(e,t,r,n,s,a){if(!a||(a.ip_code_citations?.length??0)<1){if(J2(e)?.getTokenValue("sn")==="1")return;await wq(e,t,n,s);return}let l=await e.get(wt).getTextDocument({uri:t});if(l){let c=OI(l.getText(),n,kq,s);c.stillInCodeHeuristic&&(s=c.foundOffset)}for(let c of a.ip_code_citations){let u=Jme(r.length,n.length,c.start_offset);if(u===void 0){kc.info(e,`Full completion for ${t} contains a reference matching public code, but the partially inserted text did not include the match.`);continue}let d=s+u,f=l?.positionAt(d),m=s+Zme(r.length,n.length,c.stop_offset),p=l?.positionAt(m),g=f&&p?l?.getText({start:f,end:p}):"<unknown>";await e.get(G0).handleIPCodeCitation(e,{inDocumentUri:t,offsetStart:d,offsetEnd:m,version:l?.version,location:f&&p?{start:f,end:p}:void 0,matchingText:g,details:c.details.citations})}}o(Xme,"citationCheck");function Jme(e,t,r){if(!(t<e&&r>t))return r}o(Jme,"computeCitationStart");function Zme(e,t,r){return t<e?Math.min(r,t):r}o(Zme,"computeCitationEnd");function OI(e,t,r,n){let s=e.substring(Math.max(0,n-r),Math.min(e.length,n+t.length+r)),a=Rq(s,t),l=a.lexDistance/a.needleLexLength,{distance:c}=kI(s.substring(a.startOffset,a.endOffset),t);return{relativeLexEditDistance:l,charEditDistance:c,completionLexLength:a.needleLexLength,foundOffset:a.startOffset+Math.max(0,n-r),lexEditDistance:a.lexDistance,stillInCodeHeuristic:l<=Kme?1:0}}o(OI,"find");async function Qme(e,t,r,n,s,a,l,c,u){let d=await e.get(yc).getOrReadTextDocument({uri:s});if(d.status==="valid"){let m=d.document.getText(),p=OI(m,r,kq,c.offset);p.stillInCodeHeuristic||(p=OI(m,r,Gme,c.offset)),kc.debug(e,`stillInCode: ${p.stillInCodeHeuristic?"Found":"Not found"}! Completion '${r}' in file ${s}. lexEditDistance fraction was ${p.relativeLexEditDistance}. Char edit distance was ${p.charEditDistance}. Inserted at ${n}, tracked at ${c.offset}, found at ${p.foundOffset}. choiceIndex: ${l.properties.choiceIndex}`);let g=l.extendedBy({},{timeout:a.seconds,insertionOffset:n,trackedOffset:c.offset}).extendedBy({},p);if(Se(e,t+".stillInCode",g),a.captureCode){let{prompt:h,capturedCode:x,terminationOffset:_}=await Nq(e,s,g,c.offset,u.offset),y={hypotheticalPromptJson:JSON.stringify({prefix:h.prefix,context:h.context}),hypotheticalPromptSuffixJson:JSON.stringify(h.suffix)},b=l.extendedBy({...y,capturedCodeJson:JSON.stringify(x)},{timeout:a.seconds,insertionOffset:n,trackedOffset:c.offset,terminationOffsetInCapturedCode:_});kc.debug(e,`${t}.capturedAfterAccepted choiceIndex: ${l.properties.choiceIndex}`,g),Se(e,t+".capturedAfterAccepted",b,1)}}}o(Qme,"checkStillInCode");var epe=new vt("ghostText"),gs=class{constructor(){this.#i=[];this.linesAccepted=0}static{o(this,"LastGhostText")}#e;#t;#i;get position(){return this.#e}get shownCompletions(){return this.#i||[]}get uri(){return this.#t}resetState(){this.#t=void 0,this.#e=void 0,this.#i=[],this.resetPartialAcceptanceState()}setState({uri:t},r){this.#t=t,this.#e=r,this.#i=[]}resetPartialAcceptanceState(){this.partiallyAcceptedLength=0,this.totalLength=void 0,this.linesLeft=void 0,this.linesAccepted=0}};function tpe(e){let t=[];return e.shownCompletions.forEach(r=>{if(r.displayText&&r.telemetry){let n,s;e.partiallyAcceptedLength?(n=r.displayText.substring(e.partiallyAcceptedLength-1),s=r.telemetry.extendedBy({compType:"partial"},{compCharLen:n.length})):(n=r.displayText,s=r.telemetry);let a={completionText:n,completionTelemetryData:s,offset:r.offset};t.push(a)}}),t}o(tpe,"computeRejectedCompletions");function rpe(e,t){let r=e.get(gs);if(!r.position||!r.uri)return;let n=tpe(r);n.length>0&&Oq(e,"ghostText",t??n[0].offset,r.uri,n),r.resetState(),r.resetPartialAcceptanceState()}o(rpe,"rejectLastShown");function Lq(e,t,r,n){let s=e.get(gs);return s.position&&s.uri&&!(s.position.line===r.line&&s.position.character===r.character&&s.uri.toString()===t.uri.toString())&&n!==2&&rpe(e,t.offsetAt(s.position)),s.setState(t,r),s.index}o(Lq,"setLastShown");function Fq(e,t){let r=e.get(gs);if(r.index=t.index,!r.shownCompletions.find(n=>n.index===t.index)&&(t.uri===r.uri&&r.position?.line===t.position.line&&r.position?.character==t.position.character&&r.shownCompletions.push(t),t.displayText)){let n=t.resultType!==0;epe.debug(e,`[${t.telemetry.properties.headerRequestId}] shown choiceIndex: ${t.telemetry.properties.choiceIndex}, fromCache ${n}`),t.telemetry.measurements.compCharLen=t.displayText.length,uj(e,"ghostText",t)}}o(Fq,"handleGhostTextShown");function npe(e,t,r){let n=e.get(gs);n.linesLeft===void 0&&(n.linesAccepted=up(t.insertText.substring(0,r)),n.linesLeft=up(t.displayText));let s=up(t.displayText);n.linesLeft>s&&(n.linesAccepted+=n.linesLeft-s,n.lastLineAcceptedLength=n.partiallyAcceptedLength,n.linesLeft=s),n.partiallyAcceptedLength=(n.lastLineAcceptedLength||0)+r}o(npe,"handleLineAcceptance");function Mq(e,t,r="ghostText"){let n=e.get(gs),s;return n.partiallyAcceptedLength?s={compType:"full",acceptedLength:(n.partiallyAcceptedLength||0)+t.displayText.length,acceptedLines:n.linesAccepted+(n.linesLeft??0)}:s={compType:"full",acceptedLength:t.displayText.length,acceptedLines:up(t.displayText)},n.resetState(),LI(e,r,t.displayText,t.offset,t.uri,t.telemetry,s,t.copilotAnnotations)}o(Mq,"handleGhostTextPostInsert");function Uq(e,t,r,n=0,s="ghostText",a="line"){let l=e.get(gs),c;return a==="cumulative"?(ipe(e,t,r),c={compType:l.totalLength!=null?"full":"partial",acceptedLength:l.totalLength??(l.partiallyAcceptedLength||0),acceptedLines:l.linesAccepted},c.compType==="full"&&l.resetState()):(npe(e,t,r),c={compType:"partial",acceptedLength:l.partiallyAcceptedLength||0,acceptedLines:l.linesAccepted}),LI(e,s,t.displayText,t.offset,t.uri,t.telemetry,c,t.copilotAnnotations)}o(Uq,"handlePartialGhostTextPostInsert");function ipe(e,t,r){let n=e.get(gs);n.partiallyAcceptedLength=(n.partiallyAcceptedLength||0)+r,n.linesAccepted=up(t.insertText.substring(0,n.partiallyAcceptedLength)),n.partiallyAcceptedLength>=t.insertText.length&&(n.totalLength=n.partiallyAcceptedLength)}o(ipe,"handleCumulativeAcceptance");function Bq(e){let t=new j3;return t.set(_o,e),t.set(Ku,new Ku),t.set(wn,new wn),t.set(Y0,new Y0),t.set(Kt,new Kt(t)),t.set(Le,new Le(t)),t.set($c,new $c),t.set(Fi,new Fi(t)),t.set(Yo,new Yo),t.set(Xa,new Xa),t.set(Tc,new Kg),t.set(rf,new R3),t.set(Yu,new O4),t.set(so,new so),t.set(sf,new sf(t)),t.set(yc,new yc(t)),t.set(Dc,new Dc(t)),t.set(_f,GW(t)),t.set(gs,new gs),t.set(Qs,new Qs),t.set(cp,cp.default),t.set(el,new el(t)),t.set(q0,new q0(t)),t.set(If,new If),t.set(Lo,new Lo(t)),t.set(Lg,new Lg),t.set(Fg,new Fg(t)),t.set(rl,new rl),t}o(Bq,"createCommonContext");async function FI(e){try{await s3}catch(t){Ac(e,t,"initializeTokenizers")}}o(FI,"waitForTokenizers");var i6t=new vt("exp");function jq(e){let t=e.get(Le);t.registerStaticFilters(ape(e)),t.registerDynamicFilter("X-Copilot-OverrideEngine",()=>tr(e,Te.DebugOverrideEngine)||tr(e,Te.DebugOverrideEngineLegacy)),t.registerDynamicFilter("X-VSCode-ExtensionName",()=>Al()?"copilot-web":e.get(ir).getEditorPluginInfo().name),t.registerDynamicFilter("X-VSCode-ExtensionVersion",()=>$q(e)),t.registerDynamicFilter(Uc.CopilotRelatedPluginVersionGithubCopilot,()=>$q(e)),t.registerDynamicFilter("X-VSCode-ExtensionRelease",()=>ope(e)),t.registerDynamicFilter("X-VSCode-Build",()=>e.get(ir).getEditorInfo().name),t.registerDynamicFilter("X-VSCode-AppVersion",()=>Ey(e.get(ir).getEditorInfo().version)),t.registerDynamicFilter("X-VSCode-TargetPopulation",()=>spe(e)),t.registerDynamicFilterGroup(()=>{let r={};for(let n of e.get(ir).getRelatedPluginInfo()){let s=Li+n.name.replace(/[^A-Za-z]/g,"").toLowerCase();if(!Object.values(Uc).includes(s)){kh(e,{reason:`A filter could not be registered for the unrecognized related plugin "${n.name}".`});continue}r[s]=Ey(n.version)}return r}),t.registerDynamicFilterGroup(()=>{let r={};for(let n of e.get(ir).getEditorPluginSpecificFilters()){let s=n.isVersion?Ey(n.value):n.value;r[n.filter]=s}return r})}o(jq,"setupExperimentationService");function $q(e){return Ey(!e.get(wn).isProduction()&&e.get(ir).getEditorPluginInfo().name==="copilot"?"1.999.0":e.get(ir).getEditorPluginInfo().version)}o($q,"getEditorPluginVersion");function ope(e){let t=e.get(ir).getEditorPluginInfo();return t.name==="copilot"&&o1(e)==="nightly"||t.name==="copilot-intellij"&&t.version.endsWith("nightly")?"nightly":"stable"}o(ope,"getPluginRelease");function spe(e){let t=e.get(ir).getEditorInfo();return t.name==="vscode"&&t.version.endsWith("-insider")?"insider":"public"}o(spe,"getTargetPopulation");function ape(e){return lpe(e)}o(ape,"createAllFilters");function lpe(e){let t=e.get(mn);return{"X-MSEdge-ClientId":t.machineId,"X-Copilot-ClientVersion":e.get(wn).isProduction()?s1(e):"1.999.0"}}o(lpe,"createDefaultFilters");function Ey(e){return e.split("-")[0]}o(Ey,"trimVersionSuffix");var Iy=class extends Ol{static{o(this,"TelemetryLogSenderWeb")}sendError(t,r,...n){Fs(t,"log",et.createAndMarkAsIssued({context:r,level:Z2[1],message:cpe(...n)}),1)}sendException(t,r,n){Xo(t,r,n)}};function cpe(...e){return e.map(t=>upe(t)).join(" ")}o(cpe,"telemetryMessage");function upe(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0)return`${e}`;try{return JSON.stringify(e)}catch{return e}}o(upe,"safeStringify");var wy=class extends ln{constructor(r){super();this.ctx=r;this.name="FetchFetcher";this.userAgent=`GithubCopilot/${this.ctx.get(wn).getVersion()}`}static{o(this,"FetchFetcher")}async fetch(r,n){let s=n.headers||{};s["User-Agent"]=this.userAgent;let a=n.body;if(n.json){if(n.body)throw new Error("Illegal arguments! Cannot pass in both 'body' and 'json'!");s["Content-Type"]="application/json",a=JSON.stringify(n.json)}let l=n.method||"GET";if(l!=="GET"&&l!=="POST")throw new Error("Illegal arguments! 'method' must be either 'GET' or 'POST'!");if(n.signal&&!(n.signal instanceof AbortSignal))throw new Error("Illegal arguments! 'signal' must be an instance of AbortSignal!");let c=AbortSignal.any([...n.signal?[n.signal]:[],...n.timeout?[AbortSignal.timeout(n.timeout)]:[]]),u=await fetch(r,{method:l,headers:s,body:a,signal:c});return new H2(u.status,u.statusText,u.headers,()=>u.text(),()=>u.body)}async disconnectAll(){}};var Sy=class extends Pc{static{o(this,"EmptyRecentEditsProvider")}isEnabled(){return!1}start(){}getRecentEdits(){return[]}getEditSummary(t){return null}};var Wq=100,qq=1e3*60*5;function Hq(e){let t=new MI(e);e.get(J0).registerContextProvider(t),e.get(Ec).add(t.id)}o(Hq,"registerRelatedFilesShim");var MI=class{constructor(t){this.ctx=t;this.id="relatedFilesShim";this.selector=["*"];this.traitCache=new vp(Wq,qq);this.relatedFilesCache=new vp(Wq,qq);this.resolver={resolve:o(async(r,n)=>{let s=r.documentContext.uri,a=r.documentContext.languageId;return await this.getTraits(s,a,n)},"resolve")}}static{o(this,"RelatedFilesShim")}async getTraits(t,r,n){return this.traitCache.has(t)||await this.requestRelatedFilesAndTraits(t,r,r,n),this.traitCache.get(t)??[]}async requestRelatedFilesAndTraits(t,r,n,s){try{let a=await this.ctx.get(Le).fetchTokenAndUpdateExPValuesAndAssignments({uri:t,languageId:n}),l={uri:t,clientLanguageId:r,detectedLanguageId:n},c=await G_(this.ctx,l,a,s,!0);if(s?.isCancellationRequested)return;let u=c.traits.filter(f=>f.includeInPrompt).map(f=>f.promptTextOverride?{name:"OtherInformation",value:f.promptTextOverride}:f),d=new Set;for(let f of c.entries.values())for(let m of f.keys())d.add(m);this.traitCache.set(t,u),this.relatedFilesCache.set(t,Array.from(d))}catch(a){Ac(this.ctx,a,"relatedFilesShim")}}};var zq=["cpp","c","cuda-cpp"],Vq=["typescript","javascript","typescriptreact","javascriptreact"],Gq=["csharp"],fpe=new Map([...zq.map(e=>[e,"related/cpp"]),...Vq.map(e=>[e,"related/typescript"]),...Gq.map(e=>[e,"related/csharproslyn"])]);function dpe(e){return fpe.get(e)??"related/other"}o(dpe,"getNeighboringFileType");var Py=class extends xf{constructor(r){super(r);this.providers=new Map;this.telemetrySent=!1;this.reportedUnknownProviders=new Set}static{o(this,"CompositeRelatedFilesProvider")}async getRelatedFilesResponse(r,n,s){let a=Date.now(),l=r.clientLanguageId.toLowerCase();if(dpe(l)==="related/other"&&!this.reportedUnknownProviders.has(l)&&(this.reportedUnknownProviders.add(l),qn.warn(this.context,`unknown language ${l}`)),this.relatedFilesTelemetry(n),qn.debug(this.context,`Fetching related files for ${r.uri}`),!this.isActive(l,n))return qn.debug(this.context,"language-server related-files experiment is not active."),aI;let u=this.providers.get(l);if(!u)return aI;try{return this.convert(r.uri,u,a,n,s)}catch{this.relatedFileNonresponseTelemetry(l,n);return}}async convert(r,n,s,a,l){l||(l={isCancellationRequested:!1,onCancellationRequested:o(()=>({dispose(){}}),"onCancellationRequested")});let c={entries:[],traits:[]},u=n.size>0;for(let d of n.values()){let f=await d.callback(r,{flags:{}},l);if(f){u=!1,c.entries.push(...f.entries),f.traits&&c.traits.push(...f.traits);for(let m of f.entries)for(let p of m.uris)qn.debug(this.context,p.toString())}}return this.performanceTelemetry(Date.now()-s,a),u?void 0:c}registerRelatedFilesProvider(r,n,s){let a=this.providers.get(n);a?a.set(r,{extensionId:r,languageId:n,callback:s}):this.providers.set(n,new Map([[r,{extensionId:r,languageId:n,callback:s}]]))}unregisterRelatedFilesProvider(r,n,s){let a=this.providers.get(n);if(a){let l=a.get(r);l&&l.callback===s&&a.delete(r)}}isActive(r,n){return Gq.includes(r)?this.context.get(Le).relatedFilesVSCodeCSharp(n)||tr(this.context,Te.RelatedFilesVSCodeCSharp):Vq.includes(r)?this.context.get(Le).relatedFilesVSCodeTypeScript(n)||tr(this.context,Te.RelatedFilesVSCodeTypeScript):zq.includes(r)?this.context.get(Le).cppHeadersEnableSwitch(n)||tr(this.context,Te.DebugOverrideCppHeadersEnableSwitch):this.context.get(Le).relatedFilesVSCode(n)||tr(this.context,Te.RelatedFilesVSCode)}relatedFilesTelemetry(r){}relatedFileNonresponseTelemetry(r,n){}performanceTelemetry(r,n){}};var Jq=Pt(Bc());var mpe=new vt("repository"),vf="\\\\",Zq="(?:[#;].*)",fp=`(?:[^"${vf}]|${vf}.)`,ppe="[0-9A-Za-z-]",Kq=`[A-Za-z]${ppe}*`,Qq=`\\s*${Zq}?$`,eH=`(?:[^"${vf};#]|${vf}.)`,gpe=`(?:"${fp}*"|"${fp}*(?<strCont>${vf})$)`,hpe=`(?:${eH}|${gpe})+`,xpe=`(?:(?<cont>${vf})$)`,tH=`(?<value>${hpe})${xpe}?${Qq}`,Yq=new RegExp(`^${tH}`),_pe=new RegExp(`^(?<value>${fp}*(?:(?<strCont>${vf})$|(?<quote>")))`),ype=new RegExp(`^\\s*(?:(?<key>${Kq})\\s*=\\s*${tH}|(?<soloKey>${Kq})${Qq})`),bpe=new RegExp(`(?<value>${eH}+)|"(?<string>${fp}*)"`,"g"),Xq="[-.0-9A-Za-z]+",vpe=`\\s+"(?<ext>${fp}*)"`,Tpe=`\\s+"(?<extOnly>${fp}*)"`,Cpe=new RegExp(`^\\s*\\[(?:(?<simple>${Xq})${vpe}|${Tpe}|(?<simpleOnly>${Xq}))\\]`),Epe=new RegExp(`^\\s*${Zq}$`),UI=class{constructor(t){this.content=t;this.stopped=!1;this.section="";this.line="";this.lineNum=0;this.lines=[];this.linesWithErrors=[]}static{o(this,"GitConfigParser")}parse(t){for(this.stopped=!1,this.section="",this.line="",this.linesWithErrors=[],this.configValueHandler=t,this.lines=this.content.split(/\r?\n/),this.lineNum=0;!this.stopped&&this.lineNum<this.lines.length;this.lineNum++)this.line=this.lines[this.lineNum],this.parseSectionStart(),this.parseConfigPair(),this.parseComment(),/^\s*$/.test(this.line)||this.errorAt(this.lineNum+1)}stop(){this.stopped=!0}hasErrors(){return this.linesWithErrors.length>0}errorAt(t){this.linesWithErrors.push(t)}parseSectionStart(){let t=this.line.match(Cpe);t&&(t.groups?.simple?this.section=t.groups.simple.toLowerCase()+"."+this.unescapeBaseValue(t.groups.ext):t.groups?.extOnly?this.section="."+this.unescapeBaseValue(t.groups.extOnly):this.section=t.groups.simpleOnly.toLowerCase(),this.line=this.line.slice(t[0].length))}unescapeBaseValue(t){return t.replace(/\\(.)/g,"$1")}parseConfigPair(){let t=this.line.match(ype);if(t){if(t.groups?.key){let r=this.handleContinued(t);this.configValueHandler?.(this.nameWithSection(t.groups.key.toLowerCase()),r)}else t.groups?.soloKey&&this.configValueHandler?.(this.nameWithSection(t.groups.soloKey.toLowerCase()),"");this.line=""}}handleContinued(t){let r=t,n=[this.matchedValue(r)];for(;r?.groups?.cont||r?.groups?.strCont;){if(this.line=this.lines[++this.lineNum],this.lineNum>=this.lines.length){this.errorAt(this.lineNum);break}r.groups.strCont?(r=this.line.match(_pe),r?(n.push(this.matchedValue(r)),r.groups?.quote&&(r=this.line.slice(r[0].length).match(Yq),r?n.push(this.matchedValue(r)):this.errorAt(this.lineNum+1))):this.errorAt(this.lineNum+1)):(r=this.line.match(Yq),r?n.push(this.matchedValue(r)):this.errorAt(this.lineNum+1))}return this.normalizeValue(n.join(""))}matchedValue(t){return t.groups.strCont?t.groups.value.slice(0,-1):t.groups.value}normalizeValue(t){let r=!1,n=[...t.matchAll(bpe)].map(s=>s.groups?.value?(r=!0,this.unescapeValue(s.groups.value.replace(/\s/g," "))):(r=!1,this.unescapeValue(s.groups.string))).join("");return r?n.trimEnd():n}unescapeValue(t){let r={n:`
[342] Fix | Delete
`,t:" ",b:"\b"};return t.replace(/\\(.)/g,(n,s)=>r[s]||s)}nameWithSection(t){return this.section?this.section+"."+t:t}parseComment(){Epe.test(this.line)&&(this.line="")}},Ry=class extends xc{static{o(this,"GitParsingConfigLoader")}async getConfig(t,r){let n=await el.getRepoConfigLocation(t,r);if(!n)return;let s=await this.getParsedConfig(t,n);if(s)return this.mergeConfig(await this.baseConfig(t,n),s)}mergeConfig(...t){return t.filter(r=>r!==void 0).reduce((r,n)=>r.concat(n),new jg)}async getParsedConfig(t,r,n=!0){let s=await this.tryLoadConfig(t,r,n);if(!s)return;let a=new UI(s),l=new jg;return a.parse((c,u)=>l.add(c,u)),l}async tryLoadConfig(t,r,n){try{return await t.get(en).readFileString(r)}catch(s){(n||!(s instanceof Error)||s.code!=="ENOENT")&&mpe.warn(t,`Failed to load git config from ${JSON.stringify(r)}:`,s);return}}async baseConfig(t,r){let n=await this.commondirConfigUri(t,r),s=Mn(this.xdgConfigUri(),"git","config"),a=Mn(this.homeUri(),".gitconfig");return this.mergeConfig(await this.getParsedConfig(t,s,!1),await this.getParsedConfig(t,a,!1),n?await this.getParsedConfig(t,n,!1):void 0)}async commondirConfigUri(t,r){if(Nl(r).toLowerCase()!=="config.worktree")return;let n=Ca(r),s=Mn(n,"commondir");try{let a=(await t.get(en).readFileString(s)).trimEnd();return Mn(ru(n,a),"config")}catch{return}}xdgConfigUri(){return typeof process<"u"&&process.env.XDG_CONFIG_HOME?K2(process.env.XDG_CONFIG_HOME):Mn(this.homeUri(),".config")}homeUri(){return K2((0,Jq.homedir)())}};var dr=require("vscode");var rH={AuthNotifyShown:"auth.auth_notify_shown",AuthNotifyDismissed:"auth.auth_notify_dismissed",NewGitHubLogin:"auth.new_github_login",GitHubLoginSuccess:"auth.github_login_success"};function nH(e,t){let r=et.createAndMarkAsIssued({authSource:t});return Se(e,rH.AuthNotifyShown,r)}o(nH,"telemetryAuthNotifyShown");function iH(e,t,r){let n=et.createAndMarkAsIssued({authSource:t,authType:r});return Se(e,rH.NewGitHubLogin,n)}o(iH,"telemetryNewGitHubLogin");var Tf=require("vscode");var oH=["user:email"];var Nc=require("vscode");var sH={GitHub:"github",GitHubEnterprise:"github-enterprise"},aH="https://github.com",Ipe=["read:user"],wpe=["read:user","user:email","repo","workflow"];function Oc(){let e=Nc.workspace.getConfiguration(Vr).get("advanced")?.authProvider;return e===sH.GitHubEnterprise?{providerId:e,serverUrl:Nc.workspace.getConfiguration(Dh).get("uri")||aH}:{providerId:sH.GitHub,serverUrl:aH}}o(Oc,"getSessionConfig");function Spe(){return Nc.workspace.getConfiguration(Vr).get("advanced")?.authPermissions==="minimal"}o(Spe,"isAuthMinimalMode");async function lH(e){let{providerId:t,serverUrl:r}=Oc(),n={silent:!0};e.forceNewSession&&(n=e);let s;try{Spe()||(s=await Nc.authentication.getSession(t,wpe,n),s??=await Nc.authentication.getSession(t,Ipe,n)),s??=await Nc.authentication.getSession(t,oH,e)}catch(a){if(!(a instanceof Error)||a.message==="User did not consent to login."||a.message==="Cancelled")return;throw a}if(s)return{accessToken:s.accessToken,account:s.account,...Ka({serverUrl:r})}}o(lH,"getSessionHelper");async function Ay(){return await lH({createIfNone:!1})}o(Ay,"getExistingSession");async function cH(){return lH({createIfNone:!0})}o(cH,"getOrCreateSession");function uH(e,t){t.push(Tf.authentication.onDidChangeSessions(async s=>{let a=Oc();if(s.provider.id!==a.providerId)return;let l=e.get(Kt);l.resetToken(),await l.primeToken()}));let r=!1,n=!1;t.push(e.get(Kt).onDidChangeTokenResult(s=>{s.copilotToken?(r=!0,Tf.commands.executeCommand("setContext","github.copilot.activated",!0)):(Tf.commands.executeCommand("setContext","github.copilot.activated",!1),s.failureKind==="HTTP401"&&r&&!n&&(n=!0,Tf.window.showWarningMessage("Your GitHub token is invalid. Please sign out from your GitHub account using the Visual Studio Code UI and try again.")))}))}o(uH,"registerAuthentication");async function fH(e){nH(e,"command"),iH(e,"command","editorAuth"),await cH(),await e.get(Kt).primeToken()}o(fH,"signInCommand");var Dy=class extends uc{static{o(this,"ExtensionAuthManager")}async getPersistedSession(){let t=await Ay();return t&&{...t,login:t.account.label}}};var qI=require("vscode");var jI=require("vscode");var dH=require("vscode");var $I="GitHub Copilot Log (Code References)";function Ppe(){let e=o(n=>n<10?`0${n}`:n,"toTwoDigits"),t=o(n=>n<10?`00${n}`:n<100?`0${n}`:n,"toThreeDigits"),r=new Date;return`${r.getFullYear()}-${e(r.getMonth()+1)}-${e(r.getDate())} ${e(r.getHours())}:${e(r.getMinutes())}:${e(r.getSeconds())}.${t(r.getMilliseconds())}`}o(Ppe,"getCurrentTimestamp");var BI=class{constructor(t){this.output=t}static{o(this,"CodeReferenceOutputChannel")}info(...t){this.output.appendLine(`${Ppe()} [info] ${t.join(" ")}`)}show(t){this.output.show(t)}dispose(){this.output.dispose()}},ky=class e{constructor(t){this.checkCopilotToken=o(t=>{t.envelope.code_quote_enabled?this.output=this.createChannel():this.output?.dispose()},"checkCopilotToken");this.#e=dn(t,r=>this.checkCopilotToken(r)),this.output=this.createChannel()}static{o(this,"GitHubCopilotLogger")}#e;static create(t){return new e(t)}createChannel(){return this.output?this.output:new BI(dH.window.createOutputChannel($I,"code-referencing"))}log(t,...r){this.output||(this.output=this.createChannel());let[n,...s]=r;this.output[t](n,...s)}info(...t){this.log("info",...t)}forceShow(){this.output?.show(!0)}dispose(){this.output?.dispose(),this.#e.dispose()}};var WI=class{constructor(t){this.ctx=t;this.activeLog=!1;this.subscriptions=[];this.onActiveEditorChange=o(t=>{this.isOutputLog(t)&&ph.handleFocus({context:this.ctx})},"onActiveEditorChange");this.onVisibleEditorsChange=o(t=>{let r=t.find(this.isOutputLog);this.activeLog?r||(this.activeLog=!1):r&&(this.activeLog=!0,ph.handleOpen({context:this.ctx}))},"onVisibleEditorsChange");this.isOutputLog=o(t=>t&&t.document.uri.scheme==="output"&&t.document.uri.path.includes($I),"isOutputLog")}static{o(this,"CodeRefEngagementTracker")}register(){let t=jI.window.onDidChangeActiveTextEditor(this.onActiveEditorChange),r=jI.window.onDidChangeVisibleTextEditors(this.onVisibleEditorsChange);this.subscriptions.push(r),this.subscriptions.push(t)}dispose(){for(let t of this.subscriptions)t.dispose();this.subscriptions=[]}get logVisible(){return this.activeLog}};function mH(e){let t=new WI(e);return t.register(),t}o(mH,"registerCodeRefEngagementTracker");var Ny=class{constructor(t){this.ctx=t;this.enabled=!1;this.onCopilotToken=o(t=>{if(this.enabled=t.envelope.code_quote_enabled||!1,!t.envelope.code_quote_enabled){this.subscriptions?.dispose(),this.subscriptions=void 0,ii.debug(this.ctx,"Public code references are disabled.");return}ii.info(this.ctx,"Public code references are enabled."),this.addDisposable(mH(this.ctx))},"onCopilotToken")}static{o(this,"CodeReference")}dispose(){this.subscriptions?.dispose(),this.event?.dispose()}register(){return bs(this.ctx)||(this.event=dn(this.ctx,this.onCopilotToken)),this}addDisposable(t){this.subscriptions?this.subscriptions=qI.Disposable.from(this.subscriptions,t):this.subscriptions=qI.Disposable.from(t)}};var _H=require("vscode");var dp=require("vscode");var ki=class{constructor(t){this.context=t}static{o(this,"Extension")}addSubscription(...t){this.context.subscriptions.push(...t)}};var Rpe="We found a reference to public code in a recent suggestion. To learn more about public code references, review the [documentation](https://aka.ms/github-copilot-match-public-code).",pH="View reference",gH="Change setting",hH="codeReference.notified";function xH(e){let t=e.get(ki);if(t.context.globalState.get(hH))return;let n=e.get(Vi),s=[{title:pH},{title:gH}];return n.showWarningMessage(Rpe,...s).then(async a=>{let l={context:e,actor:"user"};switch(a?.title){case pH:{AI.handleDoAction(l),await dp.commands.executeCommand(_y);break}case gH:{await dp.env.openExternal(dp.Uri.parse("https://aka.ms/github-copilot-settings"));break}case void 0:{AI.handleDismiss(l);break}}}),t.context.globalState.update(hH,!0)}o(xH,"notify");var Oy=class extends G0{constructor(r){super();this.codeReference=r;let n=dn(r.ctx,s=>{if(this.logger)return;this.logger=ky.create(r.ctx);let a=_H.commands.registerCommand(_y,()=>this.logger?.forceShow());this.codeReference.addDisposable(a)});this.codeReference.addDisposable(n)}static{o(this,"LoggingCitationManager")}async handleIPCodeCitation(r,n){if(!this.codeReference.enabled||!this.logger||n.details.length===0)return;let s=n.location?.start,a=s?`[Ln ${s.line+1}, Col ${s.character+1}]`:"Location not available",l=`${n.matchingText?.slice(0,100).replace(/[\r\n\t]+|^[ \t]+/gm," ").trim()}...`;this.logger.info(n.inDocumentUri,"Similar code at ",a,l);for(let c of n.details){let{license:u,url:d}=c;this.logger.info(`License: ${u.replace("NOASSERTION","unknown")}, URL: ${d}`)}ph.handleWrite({context:r}),await xH(r)}};var Ct=Pt(require("vscode"));var yH=new vt("extensionConfig"),Ly=class extends _o{constructor(r){super();this.env=r;this.onDidChangeCopilotSettings=Ja(Ct.workspace.onDidChangeConfiguration,r=>{if(r.affectsConfiguration("github.copilot"))return this});this.onDidChangeHttpSettings=Ja(Ct.workspace.onDidChangeConfiguration,r=>{if(r.affectsConfiguration("http"))return this.getHttpSettings()});this.config=Ct.workspace.getConfiguration(Vr),Ct.workspace.onDidChangeConfiguration(n=>{n.affectsConfiguration(Vr)&&(this.config=Ct.workspace.getConfiguration(Vr))})}static{o(this,"VSCodeConfigProvider")}getConfig(r){return FC(this.config,r)??vB(r)}getOptionalConfig(r){return FC(this.config,r)??TB(r)}dumpForTelemetry(){return{}}getHttpSettings(){let r=Ct.workspace.getConfiguration().get("http");return r?.proxy?P3(r):yB(this.env)}},Ape=new Set(["ssh-remote","dev-container","attached-container","wsl","tunnel","codespaces","amlext"]),Fy=class extends ir{static{o(this,"VSCodeEditorInfo")}getEditorInfo(){let t=Ct.env.uriScheme;Ct.version.endsWith("-insider")&&(t=t.replace(/-insiders$/,""));let r=Ct.env.remoteName;return r&&(t+=`@${Ape.has(r)?r:"other"}`),{name:"vscode",readableName:Ct.env.appName.replace(/ - Insiders$/,""),devName:t,version:Ct.version,root:Ct.env.appRoot}}getEditorPluginInfo(){return{name:"copilot",readableName:"GitHub Copilot for Visual Studio Code",version:tf.version}}getRelatedPluginInfo(){return["ms-vscode.cpptools","ms-vscode.cmake-tools","ms-vscode.makefile-tools","ms-dotnettools.csdevkit","ms-python.python","ms-python.vscode-pylance","vscjava.vscode-java-pack","vscode.typescript-language-features","ms-vscode.vscode-typescript-next","ms-dotnettools.csharp","github.copilot-chat"].map(t=>{let r=Ct.extensions.getExtension(t)?.packageJSON;if(r&&typeof r=="object"&&"version"in r&&typeof r.version=="string")return{name:t,version:r.version}}).filter(t=>t!==void 0)}getEditorPluginSpecificFilters(){let t=[],r=Ct.extensions.getExtension("github.copilot-chat")?.packageJSON;return r&&typeof r=="object"&&"completionsCoreVersion"in r&&typeof r.completionsCoreVersion=="string"&&t.push({filter:"X-VSCode-CompletionsInChatExtensionVersion",isVersion:!0,value:r.completionsCoreVersion}),t}};function HI(e){return{"*":!0,...e.get(_o).getConfig(Te.Enable)??{}}}o(HI,"getEnabledConfigObject");function Dpe(e,t){let r=HI(e);return r[t]??r["*"]??!0}o(Dpe,"getEnabledConfig");function Lc(e){let t=Ct.window.activeTextEditor;if(t)return kpe(e,t.document)}o(Lc,"isCompletionEnabled");function kpe(e,t){return Dpe(e,t.languageId)}o(kpe,"isCompletionEnabledForDocument");function mp(){return Ct.workspace.getConfiguration("editor.inlineSuggest").get("enabled")}o(mp,"isInlineSuggestEnabled");var Npe=[["workspaceFolderLanguageValue",Ct.ConfigurationTarget.WorkspaceFolder,!0],["workspaceFolderValue",Ct.ConfigurationTarget.WorkspaceFolder,!1],["workspaceLanguageValue",Ct.ConfigurationTarget.Workspace,!0],["workspaceValue",Ct.ConfigurationTarget.Workspace,!1],["globalLanguageValue",Ct.ConfigurationTarget.Global,!0],["globalValue",Ct.ConfigurationTarget.Global,!1]];function bH(){let e=Ct.workspace.getConfiguration(Vr).inspect(Te.Enable);return e?.workspaceFolderValue!==void 0?Ct.ConfigurationTarget.WorkspaceFolder:e?.workspaceValue!==void 0?Ct.ConfigurationTarget.Workspace:Ct.ConfigurationTarget.Global}o(bH,"getConfigurationTargetForEnabledConfig");async function zI(e){let t=Ct.window.activeTextEditor?.document;for(let[a,l]of[["","editor.inlineSuggest.enabled"]]){let c=Ct.workspace.getConfiguration(a,t),u=c.inspect(l);for(let[d,f,m]of Npe){if(Ct.workspace.getConfiguration(a,t).get(l))break;u?.[d]===!1&&await c.update(l,!0,f,m)}}let r=Ct.window.activeTextEditor?.document.languageId;if(!r)return;let n=Ct.workspace.getConfiguration(Vr),s={...HI(e)};if(r in s?s[r]=!0:s["*"]=!0,await n.update(Te.Enable,s,bH()),!Lc(e)){let a=Ct.workspace.getConfiguration(Vr).inspect(Te.Enable),l=new Error(`Failed to enable completions for ${r}: ${JSON.stringify(a)}`);yH.exception(e,l,".enable")}}o(zI,"enableCompletions");async function VI(e){let t=Ct.window.activeTextEditor?.document.languageId;if(!t)return;let r=Ct.workspace.getConfiguration(Vr),n={...HI(e)};if(t in n?n[t]&&(n[t]=!1):n["*"]=!1,await r.update(Te.Enable,n,bH()),Lc(e)){let s=Ct.workspace.getConfiguration(Vr).inspect(Te.Enable),a=new Error(`Failed to disable completions for ${t}: ${JSON.stringify(s)}`);yH.exception(e,a,".disable")}}o(VI,"disableCompletions");async function vH(e){Lc(e)&&mp()?await VI(e):await zI(e)}o(vH,"toggleCompletions");var TH="github.copilot.generate";var My="github.copilot.completions.enable",Uy="github.copilot.completions.disable",CH="github.copilot.completions.toggle",By="github.copilot.toggleStatusMenu",$y="github.copilot.sendFeedback",jy="github.copilot.openDocs",EH="github.copilot.collectDiagnostics",Wy="github.copilot.signIn",xh="github.copilot.openLogs",qy="github.copilot.openModelPicker";var Hy=require("vscode");async function wH(e,t,r){let n=Hy.workspace.textDocuments.find(a=>a.uri.toString()===r.uri);return!n||(await uf(e,r,n.getText())).status!=="valid"?0:Hy.languages.match(t,n)}o(wH,"contextProviderMatch");var GI=require("vscode");var zy=class extends Vi{static{o(this,"ExtensionNotificationSender")}async showWarningMessage(t,...r){let n=await GI.window.showWarningMessage(t,...r.map(s=>s.title));if(n!==void 0)return{title:n}}async showInformationMessage(t,...r){let n=await GI.window.showInformationMessage(t,...r.map(s=>s.title));if(n!==void 0)return{title:n}}async showWarningMessageOnlyOnce(t,r,...n){if(t!=="free_over_limits")return super.showWarningMessageOnlyOnce(t,r,...n)}async showInformationMessageOnlyOnce(t,r,...n){return super.showInformationMessageOnlyOnce(t,r,...n)}};var ta=class{constructor(t="Normal",r,n=!1,s){this.kind=t;this.message=r;this.busy=n;this.command=s}static{o(this,"CopilotExtensionStatus")}};var Fc=require("vscode");var KI=class extends en{static{o(this,"ExtensionFileSystem")}async readFileString(t){return typeof t!="string"&&(t=t.uri),new TextDecoder().decode(await Fc.workspace.fs.readFile(Fc.Uri.parse(t,!0)))}async stat(t){return typeof t!="string"&&(t=t.uri),await Fc.workspace.fs.stat(Fc.Uri.parse(t,!0))}async readDirectory(t){return typeof t!="string"&&(t=t.uri),await Fc.workspace.fs.readDirectory(Fc.Uri.parse(t,!0))}},SH=new KI;function PH(e,t,r){function n(a,l,c){let u=new RegExp(`^(${l})+`,"g");return a.split(`
[343] Fix | Delete
`).map(d=>{let f=d.replace(u,""),m=d.length-f.length;return c(m)+f}).join(`
[344] Fix | Delete
`)}o(n,"replace");let s;if(e.tabSize===void 0||typeof e.tabSize=="string"?s=4:s=e.tabSize,e.insertSpaces===!1){let a=o(l=>n(l," ",c=>" ".repeat(Math.floor(c/s))+" ".repeat(c%s)),"r");t.displayText=a(t.displayText),t.completionText=a(t.completionText)}else if(e.insertSpaces===!0){let a=o(l=>n(l," ",c=>" ".repeat(c*s)),"r");if(t.displayText=a(t.displayText),t.completionText=a(t.completionText),r){let l=o(c=>{if(c==="")return c;let u=c.split(`
[345] Fix | Delete
`)[0],d=u.length-u.trimStart().length,f=d%s;if(f!==0&&d>0){let m=" ".repeat(f);return n(c,m,p=>" ".repeat((Math.floor(p/s)+1)*s))}else return c},"re");t.displayText=l(t.displayText),t.completionText=l(t.completionText)}}return t}o(PH,"normalizeIndentCharacter");function RH(e,t,r,n,s,a,l){let c=n.lineAt(s),u=t.map(d=>{let f=yi.range(yi.position(s.line,0),yi.position(s.line,s.character+d.suffixCoverage)),m="";if(a&&(d.completion=PH(a,d.completion,c.isEmptyOrWhitespace)),c.isEmptyOrWhitespace&&(d.completion.displayNeedsWsOffset||d.completion.completionText.startsWith(c.text)))m=d.completion.completionText;else{let g=yi.range(f.start,s);m=n.getText(g)+d.completion.displayText}return{uuid:wi(),insertText:m,range:f,uri:n.uri,index:d.completion.completionIndex,telemetry:d.telemetry,displayText:d.completion.displayText,position:s,offset:n.offsetAt(s),resultType:r,copilotAnnotations:d.copilotAnnotations,clientCompletionId:d.clientCompletionId}});if(r===2&&l!==void 0){let d=u.find(f=>f.index===l);if(d){let f=u.filter(m=>m.index!==l);u=[d,...f]}}return u}o(RH,"completionsFromGhostTextResults");async function Lpe(e,t,r,n={}){let s=0;n.selectedCompletionInfo?.text&&!n.selectedCompletionInfo.text.includes(")")&&(t=t.addSelectedCompletionInfo(n.selectedCompletionInfo),s=t.position.character-n.selectedCompletionInfo.range.end.character);let a=await CI(e,t,r,n);if(a.type!=="success")return a;let[l,c]=a.value;if(r?.isCancellationRequested)return{type:"canceled",reason:"after getGhostText",telemetryData:{telemetryBlob:a.telemetryBlob}};let u=Lq(e,t.textDocument,t.position,c),d=RH(e,l,c,t.textDocument,t.position,n.formattingOptions,u);if(d.length===0)return{type:"empty",reason:"no completions in final result",telemetryData:a.telemetryData};if(c!==2){t=t.applyEdits([{newText:d[0].insertText,range:d[0].range}]);let m={isSpeculative:!0,opportunityId:n.opportunityId},p=o(()=>CI(e,t,void 0,m),"fn");e.get(rl).set(d[0].clientCompletionId,p)}let f=d.map(m=>{let{start:p,end:g}=m.range,h=pr.Range.create(p,pr.Position.create(g.line,g.character-s));return{...m,range:h}});return{...a,value:f}}o(Lpe,"getInlineCompletionsResult");async function AH(e,t,r,n,s={}){Fpe(e,t,r);let a=await Lpe(e,xy(t,r),n,s);return mj(e,a)}o(AH,"getInlineCompletions");function Fpe(e,t,r){let n=t.getText({start:{line:Math.max(r.line-1,0),character:0},end:r}),s=t.getText({start:r,end:{line:Math.min(r.line+2,t.lineCount-1),character:t.lineCount-1>r.line?0:r.character}});a_.debug(e,`Requesting for ${t.uri} at ${r.line}:${r.character}`,`between ${JSON.stringify(n)} and ${JSON.stringify(s)}.`)}o(Fpe,"logCompletionLocation");var Mo=require("vscode");var ra=require("vscode");var Mpe=new Set(["output","search-editor","comment"]);function _h(e,t){if(Mpe.has(t.uri.scheme))return;let r;try{r=t.getText()}catch(s){if(s instanceof RangeError)return;throw s}let n=zm({uri:t.uri.toString(),languageId:t.languageId});return af.create(t.uri.toString(),t.languageId,t.version,r,n)}o(_h,"wrapDoc");var Vy=class extends wt{constructor(r){super(r);this.onDidFocusTextDocument=Ja(ra.window.onDidChangeActiveTextEditor,r=>({document:r&&{uri:r.document.uri.toString()}}));this.onDidChangeTextDocument=Ja(ra.workspace.onDidChangeTextDocument,r=>{let n=_h(this.ctx,r.document);return n&&{document:n,contentChanges:r.contentChanges}});this.onDidOpenTextDocument=Ja(ra.workspace.onDidOpenTextDocument,r=>{let n=_h(this.ctx,r)?.getText();if(n!==void 0)return{document:{uri:r.uri.toString(),languageId:r.languageId,version:r.version,text:n}}});this.onDidCloseTextDocument=Ja(ra.workspace.onDidCloseTextDocument,r=>({document:{uri:x0(r.uri.toString())}}));this.onDidChangeWorkspaceFolders=Ja(ra.workspace.onDidChangeWorkspaceFolders,r=>({workspaceFolders:this.getWorkspaceFolders(),added:r.added.map(n=>({uri:n.uri.toString(),name:n.name})),removed:r.removed.map(n=>({uri:n.uri.toString(),name:n.name}))}))}static{o(this,"ExtensionTextDocumentManager")}getTextDocumentsUnsafe(){let r=[];for(let n of ra.workspace.textDocuments){let s=_h(this.ctx,n);s&&r.push(s)}return r}findNotebook(r){for(let n of ra.workspace.notebookDocuments)if(n.getCells().some(s=>s.document.uri.toString()===r.uri.toString()))return{getCells:o(()=>n.getCells().map(s=>this.wrapCell(s)),"getCells"),getCellFor:o(({uri:s})=>{let a=n.getCells().find(l=>l.document.uri.toString()===s.toString());return a?this.wrapCell(a):void 0},"getCellFor")}}wrapCell(r){return{...r,get document(){return af.create(r.document.uri.toString(),r.document.languageId,r.document.version,r.document.getText(),r.document.languageId)}}}getWorkspaceFolders(){return ra.workspace.workspaceFolders?.map(r=>({uri:r.uri.toString(),name:r.name}))??[]}};var DH="_github.copilot.ghostTextPostInsert",Gy=class{constructor(t){this.ctx=t}static{o(this,"GhostTextProvider")}async provideInlineCompletionItems(t,r,n,s){let a=_h(this.ctx,t);if(!a)return;let l=n.requestUuid,c=Mo.window.visibleTextEditors.find(f=>f.document.uri===t.uri)?.options,u=await AH(this.ctx,a,r,s,{isCycling:n.triggerKind===Mo.InlineCompletionTriggerKind.Invoke,selectedCompletionInfo:n.selectedCompletionInfo,formattingOptions:c,opportunityId:l});return u?{items:u.map(f=>{let{start:m,end:p}=f.range,g=new Mo.Range(m.line,m.character,p.line,p.character);return new Mo.InlineCompletionItem(f.insertText,g,{title:"Completion Accepted",command:DH,arguments:[f]})})}:void 0}handleDidShowCompletionItem(t){let r=t.command.arguments[0];Fq(this.ctx,r)}handleDidPartiallyAcceptCompletionItem(t,r){if(typeof r=="number")return;let n=t.command.arguments[0];Uq(this.ctx,n,r.acceptedLength,r.kind)}handleEndOfLifetime(t,r){if(r.kind!==Mo.InlineCompletionEndOfLifeReasonKind.Rejected)return;let n=t.command?.arguments?.[0];n&&Se(this.ctx,"ghostText.dismissed",n.telemetry)}};function kH(e){return Mo.commands.registerCommand(DH,async r=>{Mq(e,r);try{await Mo.commands.executeCommand("github.copilot.survey.signalUsage","completions")}catch{}})}o(kH,"registerGhostTextDependencies");var YI=Pt(require("vscode"));var Ky=class extends r0{constructor(){super();this._onDidChangeState=new U0;this.onDidChangeState=this._onDidChangeState.event;YI.languages.onDidChangeCompletionsUnificationState?.(()=>{this._onDidChangeState.fire()})}static{o(this,"VSCodeInlineCompletionsUnification")}get inlineCompletionsUnificationState(){return YI.languages.inlineCompletionsUnificationState??Cw}};var Yy=class{static{o(this,"InstallationManager")}async startup(t){await this.isNewInstall(t)?(await this.markInstalled(t),this.handleInstall(t,await this.wasPreviouslyInstalled(t))):await this.isNewUpgrade(t)&&(await this.markUpgraded(t),this.handleUpgrade(t))}uninstall(t){return this.handleUninstall(t)}handleInstall(t,r){r?Se(t,"installed.reinstall"):Se(t,"installed.new")}handleUpgrade(t){Se(t,"installed.upgrade")}handleUninstall(t){Se(t,"uninstalled")}};var wh=Pt(vV());var lb=class extends Yy{static{o(this,"VsCodeInstallationManager")}async isNewInstall(t){return!t.get(ki).context.globalState.get("installedVersion")&&!await Ay()}async markInstalled(t){let r=t.get(ir).getEditorPluginInfo();await t.get(ki).context.globalState.update("installedVersion",r.version)}wasPreviouslyInstalled(){return!1}isNewUpgrade(t){let r=t.get(ir).getEditorPluginInfo(),n=t.get(ki).context.globalState.get("installedVersion");if(n===void 0)return!0;try{return(0,wh.gt)((0,wh.coerce)(r.version),(0,wh.coerce)(n))}catch{return!1}}async markUpgraded(t){await this.markInstalled(t)}};var ia=require("vscode");var Sh=require("vscode");function Nhe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Nhe,"escapeForRegExp");var Ohe=new RegExp(Nhe("".replace(/[\\/]extension[\\/]src$|[\\/]dist$/,""))+`[\\\\/]?([^:)'"\\s]*)`,"gi"),Lhe=new Set(["node_modules/diagnostic-channel/dist/src/patchRequire.js"]),cb=class{constructor(t){this.handler=t}static{o(this,"TelemetryDelegator")}sendEventData(){}sendErrorData(t){let r=!1;for(let n of(t.stack??"").matchAll(Ohe))if(!Lhe.has(n[1].replace(/\\/g,"/"))){r=!0;break}r&&this.handler(t)}};function TV(e,t,r,n){t instanceof Error&&t.name==="Canceled"||t instanceof Error&&t.name==="CodeExpectedError"||Ac(e,t,r,n)}o(TV,"exception");function _s(e,t,r){let n=Sh.commands.registerCommand(t,async(...s)=>{try{await r(...s)}catch(a){TV(e,a,t)}});e.get(ki).addSubscription(n)}o(_s,"registerCommandWrapper");function CV(e,t,r,n){let s=new Hs(e,r);s.updateSessionConfig(Oc()),e.set(Hs,s),t.subscriptions.push(Sh.env.onDidChangeTelemetryEnabled(a=>{s.initialize(a)})),t.subscriptions.push(Sh.env.createTelemetryLogger(new cb(a=>TV(e,a,"unhandlederror")))),s.initialize(n)}o(CV,"setupTelemetry");var EV=new vt("modelPicker"),Fhe=[{label:"",kind:ia.QuickPickItemKind.Separator,modelId:"separator",type:"separator",alwaysShow:!0},{modelId:"learn-more",label:"Learn more $(link-external)",description:"",alwaysShow:!0,type:"learn-more"}],hp=class{constructor(t){this._ctx=t;this.MODELS_INFO_URL="https://aka.ms/CopilotCompletionsModelPickerLearnMore"}static{o(this,"ModelPickerManager")}get models(){return this._ctx.get(q0).getGenericCompletionModels()}getDefaultModelId(){return this._ctx.get(q0).getDefaultModelId()}async setUserSelectedCompletionModel(t){return ia.workspace.getConfiguration(Vr).update(Te.UserSelectedCompletionModel,t??"",!0)}async handleModelSelection(t){let r=t.activeItems[0];if(r!==void 0){if(t.hide(),r.type==="learn-more"){await ia.env.openExternal(ia.Uri.parse(this.MODELS_INFO_URL)),Se(this._ctx,"modelPicker.learnMoreClicked");return}await this.selectModel(r)}}async selectModel(t){yg(this._ctx)!==t.modelId&&(this._ctx.get(Y0).clear(),this._ctx.get(Lo).clear());let n=t.modelId===this.getDefaultModelId()?null:t.modelId;await this.setUserSelectedCompletionModel(n),n===null?EV.info(this._ctx,"User selected default model; setting null"):EV.info(this._ctx,`Selected model: ${t.modelId}`),Se(this._ctx,"modelPicker.modelSelected",et.createAndMarkAsIssued({engineName:n??"default"}))}modelsForModelPicker(){let t=yg(this._ctx),r=this.models.map(n=>({modelId:n.modelId,label:`${n.label}${n.preview?" (Preview)":""}`,description:`(${n.modelId})`,alwaysShow:n.modelId==this.getDefaultModelId(),type:"model"}));return[t,r]}showModelPicker(){let[t,r]=this.modelsForModelPicker(),n=ia.window.createQuickPick();n.title="Change Completions Model",n.items=[...r,...Fhe],n.onDidAccept(()=>this.handleModelSelection(n));let s=t??this.getDefaultModelId(),a=n.items.find(l=>l.modelId===s);return a&&(n.activeItems=[a]),n.show(),n}registerCommands(){_s(this._ctx,qy,this.showModelPicker.bind(this))}};function IV(e){e.get(hp).registerCommands()}o(IV,"registerModelPickerCommands");var ub=class extends Ea{constructor(r,n={}){super();this.env=n;this.recalculateUrlDefaults(r,this.getDefaultUrls())}static{o(this,"DefaultNetworkConfiguration")}getAuthAuthority(){return this.baseUrlObject.hostname}getConfiguredUrls(){return{serverUrl:this.baseUrlObject.href,apiUrl:this.apiUrl}}setConfiguredUrls(r,n){let s=this.getConfiguredUrls();this.recalculateUrlDefaults(r,n);let a=this.getConfiguredUrls();(s.apiUrl!==a.apiUrl||s.serverUrl!==a.serverUrl)&&r.get(Kt).resetToken(),r.get(Hs).updateSessionConfig(a)}recalculateUrlDefaults(r,n){let{serverUrl:s,apiUrl:a}=Ka({serverUrl:Y2(r,n.serverUrl),apiUrl:Y2(r,n.apiUrl)});this.baseUrlObject=new URL(s),this.apiUrl=a}getDefaultUrls(){return this.env.CODESPACES==="true"&&this.env.GITHUB_TOKEN&&this.env.GITHUB_SERVER_URL&&this.env.GITHUB_API_URL&&!this.env.GITHUB_COPILOT_TOKEN&&!this.env.GH_COPILOT_TOKEN?{apiUrl:this.env.GITHUB_API_URL,serverUrl:this.env.GITHUB_SERVER_URL}:{}}};var fb=class extends ub{static{o(this,"VSCodeNetworkConfiguration")}getDefaultUrls(){return Oc()}};function wV(e,t){(e.affectsConfiguration(`${Vr}.advanced`)||e.affectsConfiguration(`${Dh}.uri`))&&ZN(t,Oc().serverUrl)}o(wV,"onDidChangeConfigurationHandler");var Ti=require("vscode");var Ph=class extends Hr{constructor(r,n="github.copilot.languageStatus"){super();this.ctx=r;this.showingMessage=!1;this.disposables=[];this.item=Ti.languages.createLanguageStatusItem(n,"*"),this.disposables.push(this.item),this.state=r.get(ta),this.updateStatusBarIndicator(),this.disposables.push(Ti.window.onDidChangeActiveTextEditor(()=>{this.updateStatusBarIndicator()})),this.disposables.push(Ti.workspace.onDidCloseTextDocument(()=>{this.updateStatusBarIndicator()})),this.disposables.push(Ti.workspace.onDidOpenTextDocument(()=>{this.updateStatusBarIndicator()})),this.disposables.push(Ti.workspace.onDidChangeConfiguration(s=>{s.affectsConfiguration(Vr)&&this.updateStatusBarIndicator()}))}static{o(this,"CopilotStatusBar")}didChange(r){this.state.kind=r.kind,this.state.message=r.message,this.state.command=r.command,this.updateStatusBarIndicator()}checkEnabledForLanguage(){return Lc(this.ctx)??!0}updateStatusBarIndicator(){if(this.isDisposed())return;Ti.commands.executeCommand("setContext","github.copilot.completions.quotaExceeded",this.state.command?.command===Yg);let r=this.checkEnabledForLanguage();switch(Ti.commands.executeCommand("setContext","github.copilot.completions.enabled",r),this.item.command={command:By,title:"View Details"},this.state.kind){case"Error":this.item.severity=Ti.LanguageStatusSeverity.Error,this.item.text="$(copilot-warning) Completions",this.item.detail="Error";break;case"Warning":this.item.severity=Ti.LanguageStatusSeverity.Warning,this.item.text="$(copilot-warning) Completions",this.item.detail="Temporary issues";break;case"Inactive":this.item.severity=Ti.LanguageStatusSeverity.Information,this.item.text="$(copilot-blocked) Completions",this.item.detail="Inactive";break;case"Normal":this.item.severity=Ti.LanguageStatusSeverity.Information,mp()?r?(this.item.text="$(copilot) Completions",this.item.detail=""):(this.item.text="$(copilot-not-connected) Completions",this.item.detail="Disabled"):(this.item.text="$(copilot-not-connected) Completions",this.item.detail="VS Code inline suggestions disabled"),this.item.command.title="Open Menu";break}this.item.accessibilityInformation={label:"Copilot Completions"},this.state.command&&(this.item.command=this.state.command,this.item.detail=this.state.message)}dispose(){for(let r of this.disposables)r.dispose();this.disposables=[]}isDisposed(){return this.disposables.length===0}};var Ef=require("vscode");var db=class{constructor(t){this.ctx=t;this.state=t.get(ta)}static{o(this,"CopilotStatusBarPickMenu")}showStatusMenu(){let t=Ef.window.createQuickPick();return t.placeholder="Select an option",t.title="Configure Copilot Completions",t.items=this.collectQuickPickItems(),t.onDidAccept(()=>this.handleItemSelection(t)),t.show(),t}async handleItemSelection(t){let r=t.selectedItems[0];if(r!==void 0)if("command"in r){let n=r;await Ef.commands.executeCommand(n.command,...n.commandArgs),t.hide()}else throw new Error("Unexpected Copilot quick picker selection")}collectQuickPickItems(){return[this.newStatusItem(),this.newSeparator(),...this.collectLanguageSpecificItems(),this.newKeyboardItem(),this.newSettingsItem(),...this.collectDiagnosticsItems(),this.newOpenLogsItem(),this.newSeparator(),this.newDocsItem(),this.newForumItem(),...this.collectQuickPickSignInItems()]}collectQuickPickSignInItems(){return this.hasWarningOrErrorStatus()?[this.newSeparator(),this.newSignInItem()]:[]}collectLanguageSpecificItems(){let t=[];if(!this.hasActiveStatus())return t;let r=Ef.window.activeTextEditor;return!Al()&&r&&t.push(this.newPanelItem()),Al()||t.push(this.newChangeModelItem()),r&&t.push(...this.newEnableLanguageItem()),t.length&&t.push(this.newSeparator()),t}hasActiveStatus(){return["Normal"].includes(this.state.kind)}hasWarningOrErrorStatus(){return["Error","Warning"].includes(this.state.kind)}isCompletionEnabled(){return mp()&&Lc(this.ctx)}newEnableLanguageItem(){let t=this.isCompletionEnabled();return t?[this.newCommandItem("Disable Completions",Uy)]:t===!1?[this.newCommandItem("Enable Completions",My)]:[]}newStatusItem(){let t,r="$(copilot)";switch(this.state.kind){case"Normal":t="Ready",mp()===!1?t+=" (VS Code inline suggestions disabled)":Lc(this.ctx)===!1&&(t+=" (Disabled)");break;case"Inactive":t=this.state.message||"Copilot is currently inactive",r="$(copilot-blocked)";break;default:t=this.state.message||"Copilot has encountered an error",r="$(copilot-not-connected)";break}return this.newCommandItem(`${r} Status: ${t}`,xh)}newSignInItem(){return this.newCommandItem("Sign in to GitHub",Wy)}newOpenLogsItem(){return this.newCommandItem("Open Logs...",xh)}collectDiagnosticsItems(){return Al()?[]:[this.newCommandItem("Show Diagnostics...",EH)]}newKeyboardItem(){return this.newCommandItem("$(keyboard) Edit Keyboard Shortcuts...","workbench.action.openGlobalKeybindings",["copilot"])}newSettingsItem(){return this.newCommandItem("$(settings-gear) Edit Settings...","workbench.action.openSettings",["GitHub Copilot"])}newPanelItem(){return this.newCommandItem("Open Completions Panel...",TH)}newChangeModelItem(){return this.newCommandItem("Change Completions Model...",qy)}newForumItem(){return this.newCommandItem("$(comments-view-icon) View Copilot Forum...",$y)}newDocsItem(){return this.newCommandItem("$(remote-explorer-documentation) View Copilot Documentation...",jy)}newCommandItem(t,r,n){return new pw(t,r,n||[])}newSeparator(){return{label:"",kind:Ef.QuickPickItemKind.Separator}}},pw=class{constructor(t,r,n){this.label=t;this.command=r;this.commandArgs=n}static{o(this,"CommandQuickItem")}};var SV=dr.window.createOutputChannel("GitHub Copilot",{log:!0}),Uhe="userAcknowledgedStatusBarDeprecation";function Bhe(e){let t=new Ph(e);e.get(ki).addSubscription(t),_s(e,My,async()=>{await zI(e)}),_s(e,Uy,async()=>{await VI(e)}),_s(e,CH,async()=>{await vH(e)}),_s(e,Yg,async()=>{try{await dr.commands.executeCommand("workbench.action.chat.openQuotaExceededDialog")}catch(r){if(!(r instanceof Error&&/not found/.test(r.message)))throw r;await dr.env.openExternal(dr.Uri.parse("https://github.com/github-copilot/signup/copilot_individual"))}}),_s(e,By,async()=>{e.get(ta).kind==="Error"&&await Promise.race([e.get(Kt).primeToken(),new Promise(r=>setTimeout(r,100))]),new db(e).showStatusMenu()}),e.set(Ph,t),e.set(Hr,t)}o(Bhe,"registerStatusBar");async function $he(e){let t=et.createAndMarkAsIssued(),r=zhe(e);await FI(r),Bhe(r),r.set(no,new no(r)),qhe(r),_s(r,Wy,()=>fH(r));let n=new Ny(r);r.set(G0,new Oy(n)),e.subscriptions.push(n.register()),e.subscriptions.push(PV(r)),IV(r),jhe(r),e.subscriptions.push(EW(r)),e.subscriptions.push(dr.window.onDidChangeActiveTextEditor(a=>a&&Am(r,a.document.uri.toString()))),e.subscriptions.push(dr.workspace.onDidChangeConfiguration(a=>wV(a,r))),uH(r,e.subscriptions),r.get(Kt).primeToken().then(async a=>{Se(r,"extension.activate",t),a&&(dr.window?.activeTextEditor&&r.get(no).evaluate(dr.window.activeTextEditor.document.uri.toString(),dr.window.activeTextEditor.document.getText(),"UPDATE"),await FI(r))}),new lb().startup(r)}o($he,"activate");function jhe(e){let t=e.get(ki);try{t.addSubscription(kH(e)),t.addSubscription(Whe(e));let n=dr.workspace.getConfiguration().inspect("editor.inlineSuggest.enabled");(n?.globalValue===!1||n?.workspaceValue===!1)&&At.warn(e,"editor.inlineSuggest.enabled is disabled. Enabling recommended to use Copilot.")}catch(r){Xo(e,r,"registerGhostTextSupport")}}o(jhe,"registerGhostTextSupport");function Whe(e){let t=new Gy(e);return dr.languages.registerInlineCompletionItemProvider({pattern:"**"},t,{})}o(Whe,"registerInlineCompletion");function qhe(e){_s(e,$y,()=>dr.env.openExternal(dr.Uri.parse("https://github.com/microsoft/vscode/issues"))),_s(e,jy,()=>dr.env.openExternal(dr.Uri.parse("https://docs.github.com/en/copilot/getting-started-with-github-copilot?tool=vscode"))),_s(e,xh,()=>{SV.show()})}o(qhe,"registerDiagnosticCommands");var gw=class extends Ya{static{o(this,"VSCodeUrlOpener")}async open(t){await dr.env.openExternal(dr.Uri.parse(t))}};function Hhe(e){switch(e){case dr.UIKind.Desktop:return"desktop";case dr.UIKind.Web:return"web"}return"unknown"}o(Hhe,"uiKindToString");function zhe(e){let t=Bq(new Ly({}));return t.set(xc,new Ry),t.set(ll,ll.fromEnvironment(!1,[],{})),t.set(Ol,new Iy),t.set(Vi,new zy),t.set(Ea,new fb(t)),t.set(r0,new Ky),t.set(ln,new wy(t)),t.set(Rd,new hw(SV)),t.set(ir,new Fy),t.set(mn,new mn(dr.env.sessionId,dr.env.machineId,dr.env.remoteName,Hhe(dr.env.uiKind))),t.set(ki,new ki(e)),jq(t),t.set(ta,new ta),t.set(uc,new Dy(t,{})),t.set(Gu,new A3),t.set(Ya,new gw),CV(t,e,tf.name,dr.env.isTelemetryEnabled),t.set(wt,new Vy(t)),t.set(Pc,new Sy),t.set(en,SH),t.set(xf,new Py(t)),t.set(ni,new ni),t.set(hp,new hp(t)),t.set(J0,Sj(t,wH)),t.set(Ks,new Ks(t)),t.set(Ec,new f_),Hq(t),t}o(zhe,"createExtensionContext");function PV(e){return{dispose:o(()=>{Se(e,"extension.deactivate"),e.get(Hs).shutdown()},"dispose")}}o(PV,"onDeactivate");var hw=class extends Rd{constructor(r){super();this.output=r}static{o(this,"WebLogTarget")}logIt(r,n,s,...a){let l=`[${s}]`;n==1?this.output.error(l,...a):n==2?this.output.warn(l,...a):n==3?this.output.info(l,...a):n==4&&this.output.debug(l,...a)}};
[346] Fix | Delete
//!!! DO NOT modify, this file was COPIED from 'microsoft/vscode'
[347] Fix | Delete
/*! Bundled license information:
[348] Fix | Delete
[349] Fix | Delete
crypto-js/ripemd160.js:
[350] Fix | Delete
(** @preserve
[351] Fix | Delete
(c) 2012 by Cédric Mesnil. All rights reserved.
[352] Fix | Delete
[353] Fix | Delete
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
[354] Fix | Delete
[355] Fix | Delete
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
[356] Fix | Delete
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
[357] Fix | Delete
[358] Fix | Delete
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[359] Fix | Delete
*)
[360] Fix | Delete
[361] Fix | Delete
crypto-js/mode-ctr-gladman.js:
[362] Fix | Delete
(** @preserve
[363] Fix | Delete
* Counter block mode compatible with Dr Brian Gladman fileenc.c
[364] Fix | Delete
* derived from CryptoJS.mode.CTR
[365] Fix | Delete
* Jan Hruby jhruby.web@gmail.com
[366] Fix | Delete
*)
[367] Fix | Delete
[368] Fix | Delete
git-url-parse/lib/index.js:
[369] Fix | Delete
(*!
[370] Fix | Delete
* buildToken
[371] Fix | Delete
* Builds OAuth token prefix (helper function)
[372] Fix | Delete
*
[373] Fix | Delete
* @name buildToken
[374] Fix | Delete
* @function
[375] Fix | Delete
* @param {GitUrl} obj The parsed Git url object.
[376] Fix | Delete
* @return {String} token prefix
[377] Fix | Delete
*)
[378] Fix | Delete
[379] Fix | Delete
@nevware21/ts-utils/dist/es5/mod/ts-utils.js:
[380] Fix | Delete
(*! https://github.com/nevware21/ts-utils v0.11.8 *)
[381] Fix | Delete
[382] Fix | Delete
@nevware21/ts-async/dist/es5/mod/ts-async.js:
[383] Fix | Delete
(*!
[384] Fix | Delete
* NevWare21 Solutions LLC - ts-async, 0.5.4
[385] Fix | Delete
* https://github.com/nevware21/ts-async
[386] Fix | Delete
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
[387] Fix | Delete
* Licensed under the MIT license.
[388] Fix | Delete
*)
[389] Fix | Delete
*/
[390] Fix | Delete
//# sourceMappingURL=web.js.map
[391] Fix | Delete
[392] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function