u%2?c+t:c+e);o.push({key:"C",data:l}),e=l[4],t=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],t=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+t:c+e);o.push({key:"Q",data:l}),e=l[2],t=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],t=a[6];break;case"a":e+=a[5],t+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,t]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),t=a[0];break;case"v":t+=a[0],o.push({key:"V",data:[t]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],t=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+t:c+e);o.push({key:"S",data:l}),e=l[2],t=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],t=a[1];break;case"t":e+=a[0],t+=a[1],o.push({key:"T",data:[e,t]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=s,t=r;break}return o}function $s(n){const e=[];let t="",s=0,r=0,o=0,i=0,a=0,l=0;for(const{key:c,data:u}of n){switch(c){case"M":e.push({key:"M",data:[...u]}),[s,r]=u,[o,i]=u;break;case"C":e.push({key:"C",data:[...u]}),s=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[s,r]=u;break;case"H":s=u[0],e.push({key:"L",data:[s,r]});break;case"V":r=u[0],e.push({key:"L",data:[s,r]});break;case"S":{let f=0,h=0;t==="C"||t==="S"?(f=s+(s-a),h=r+(r-l)):(f=s,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],s=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;t==="Q"||t==="T"?(d=s+(s-a),p=r+(r-l)):(d=s,p=r);const g=s+2*(d-s)/3,v=r+2*(p-r)/3,m=f+2*(d-f)/3,y=h+2*(p-h)/3;e.push({key:"C",data:[g,v,m,y,f,h]}),a=d,l=p,s=f,r=h;break}case"Q":{const[f,h,d,p]=u,g=s+2*(f-s)/3,v=r+2*(h-r)/3,m=d+2*(f-d)/3,y=p+2*(h-p)/3;e.push({key:"C",data:[g,v,m,y,d,p]}),a=f,l=h,s=d,r=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];f===0||h===0?(e.push({key:"C",data:[s,r,v,m,v,m]}),s=v,r=m):(s!==v||r!==m)&&(Ns(s,r,v,m,f,h,d,p,g).forEach(function(w){e.push({key:"C",data:w})}),s=v,r=m);break}case"Z":e.push({key:"Z",data:[]}),s=o,r=i;break}t=c}return e}function Fi(n){return Math.PI*n/180}function Fe(n,e,t){const s=n*Math.cos(t)-e*Math.sin(t),r=n*Math.sin(t)+e*Math.cos(t);return[s,r]}function Ns(n,e,t,s,r,o,i,a,l,c){const u=Fi(i);let f=[],h=0,d=0,p=0,g=0;if(c)[h,d,p,g]=c;else{[n,e]=Fe(n,e,-u),[t,s]=Fe(t,s,-u);const P=(n-t)/2,A=(e-s)/2;let D=P*P/(r*r)+A*A/(o*o);D>1&&(D=Math.sqrt(D),r=D*r,o=D*o);const T=a===l?-1:1,H=r*r,ne=o*o,Ne=H*ne-H*A*A-ne*P*P,x=H*A*A+ne*P*P,q=T*Math.sqrt(Math.abs(Ne/x));p=q*r*A/o+(n+t)/2,g=q*-o*P/r+(e+s)/2,h=Math.asin(parseFloat(((e-g)/o).toFixed(9))),d=Math.asin(parseFloat(((s-g)/o).toFixed(9))),nd&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let v=d-h;if(Math.abs(v)>Math.PI*120/180){const P=d,A=t,D=s;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,t=p+r*Math.cos(d),s=g+o*Math.sin(d),f=Ns(t,s,A,D,r,o,i,0,l,[d,P,p,g])}v=d-h;const m=Math.cos(h),y=Math.sin(h),w=Math.cos(d),b=Math.sin(d),S=Math.tan(v/4),_=4/3*r*S,E=4/3*o*S,C=[n,e],L=[n+_*y,e-E*m],j=[t+_*b,s-E*w],$=[t,s];if(L[0]=2*C[0]-L[0],L[1]=2*C[1]-L[1],c)return[L,j,$].concat(f);{f=[L,j,$].concat(f);const P=[];for(let A=0;A2){const r=[];for(let o=0;oMath.PI*2&&(d=0,p=Math.PI*2);const g=Math.PI*2/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=Jn(v,c,u,f,h,d,p,1,l);if(!l.disableMultiStroke){const y=Jn(v,c,u,f,h,d,p,1.5,l);m.push(...y)}return i&&(a?m.push(...le(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...le(c,u,c+f*Math.cos(p),u+h*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function Qn(n,e){const t=$s(Ls(Mn(n))),s=[];let r=[0,0],o=[0,0];for(const{key:i,data:a}of t)switch(i){case"M":{o=[a[0],a[1]],r=[a[0],a[1]];break}case"L":s.push(...le(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;s.push(...Qi(l,c,u,f,h,d,o,e)),o=[h,d];break}case"Z":s.push(...le(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]];break}return{type:"path",ops:s}}function Vt(n,e){const t=[];for(const s of n)if(s.length){const r=e.maxRandomnessOffset||0,o=s.length;if(o>2){t.push({op:"move",data:[s[0][0]+M(r,e),s[0][1]+M(r,e)]});for(let i=1;iMath.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/i.curveStepCount,p=[];for(let g=f;g<=h;g=g+d)p.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return p.push([a+c*Math.cos(h),l+u*Math.sin(h)]),p.push([a,l]),Me([p],i)}function Vi(n,e){return M(n,e)}function Ui(n,e,t){return wt(n,e,t)}function Wi(n,e,t,s,r){return le(n,e,t,s,r,!0)}function qn(n){const e=Object.assign({},n);return e.randomizer=void 0,n.seed&&(e.seed=n.seed+1),e}function Ds(n){return n.randomizer||(n.randomizer=new Ei(n.seed||0)),n.randomizer.next()}function wt(n,e,t,s=1){return t.roughness*s*(Ds(t)*(e-n)+n)}function M(n,e,t=1){return wt(-n,n,e,t)}function le(n,e,t,s,r,o=!1){const i=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=rn(n,e,t,s,r,!0,!1);if(i)return a;const l=rn(n,e,t,s,r,!0,!0);return a.concat(l)}function rn(n,e,t,s,r,o,i){const a=Math.pow(n-t,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+Ds(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(s-e)/200,p=r.bowing*r.maxRandomnessOffset*(n-t)/200;d=M(d,r,c),p=M(p,r,c);const g=[],v=()=>M(f,r,c),m=()=>M(u,r,c),y=r.preserveVertices;return i?g.push({op:"move",data:[n+(y?0:v()),e+(y?0:v())]}):g.push({op:"move",data:[n+(y?0:M(u,r,c)),e+(y?0:M(u,r,c))]}),i?g.push({op:"bcurveTo",data:[d+n+(t-n)*h+v(),p+e+(s-e)*h+v(),d+n+2*(t-n)*h+v(),p+e+2*(s-e)*h+v(),t+(y?0:v()),s+(y?0:v())]}):g.push({op:"bcurveTo",data:[d+n+(t-n)*h+m(),p+e+(s-e)*h+m(),d+n+2*(t-n)*h+m(),p+e+2*(s-e)*h+m(),t+(y?0:m()),s+(y?0:m())]}),g}function tt(n,e,t){if(!n.length)return[];const s=[];s.push([n[0][0]+M(e,t),n[0][1]+M(e,t)]),s.push([n[0][0]+M(e,t),n[0][1]+M(e,t)]);for(let r=1;r3){const o=[],i=1-t.curveTightness;r.push({op:"move",data:[n[1][0],n[1][1]]});for(let a=1;a+21&&r.push(o):r.push(o),r.push(n[e+3])}else{const i=n[e+0],a=n[e+1],l=n[e+2],c=n[e+3],u=ve(i,a,.5),f=ve(a,l,.5),h=ve(l,c,.5),d=ve(u,f,.5),p=ve(f,h,.5),g=ve(d,p,.5);on([i,u,d,g],0,t,r),on([g,p,h,c],0,t,r)}return r}function Gi(n,e){return kt(n,0,n.length,e)}function kt(n,e,t,s,r){const o=r||[],i=n[e],a=n[t-1];let l=0,c=1;for(let u=e+1;ul&&(l=f,c=u)}return Math.sqrt(l)>s?(kt(n,e,c+1,s,o),kt(n,c,t,s,o)):(o.length||o.push(i),o.push(a)),o}function an(n,e=.15,t){const s=[],r=(n.length-1)/3;for(let o=0;o0?kt(s,0,s.length,t):s}function xi(n,e,t){const s=Mn(n),r=$s(Ls(s)),o=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...an(l,e)),l=[]},u=()=>{c(),i.length&&(o.push(i),i=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],i.push(a);break;case"L":c(),i.push([d[0],d[1]]);break;case"C":if(!l.length){const p=i.length?i[i.length-1]:a;l.push([p[0],p[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(u(),!t)return o;const f=[];for(const h of o){const d=Gi(h,t);d.length&&f.push(d)}return f}const W="none";class Yi{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return As()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,s){return{shape:e,sets:t||[],options:s||this.defaultOptions}}line(e,t,s,r,o){const i=this._o(o);return this._d("line",[K(e,t,s,r,i)],i)}rectangle(e,t,s,r,o){const i=this._o(o),a=[],l=Rs(e,t,s,r,i);if(i.fill){const c=[[e,t],[e+s,t],[e+s,t+r],[e,t+r]];i.fillStyle==="solid"?a.push(Vt([c],i)):a.push(Me([c],i))}return i.stroke!==W&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,s,r,o){const i=this._o(o),a=[],l=Is(s,r,i),c=sn(e,t,i,l);if(i.fill)if(i.fillStyle==="solid"){const u=sn(e,t,i,l).opset;u.type="fillPath",a.push(u)}else a.push(Me([c.estimatedPoints],i));return i.stroke!==W&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,t,s,r){const o=this.ellipse(e,t,s,s,r);return o.shape="circle",o}linearPath(e,t){const s=this._o(t);return this._d("linearPath",[We(e,!1,s)],s)}arc(e,t,s,r,o,i,a=!1,l){const c=this._o(l),u=[],f=Wn(e,t,s,r,o,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Wn(e,t,s,r,o,i,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(Bi(e,t,s,r,o,i,c));return c.stroke!==W&&u.push(f),this._d("arc",u,c)}curve(e,t){const s=this._o(t),r=[],o=Un(e,s);if(s.fill&&s.fill!==W)if(s.fillStyle==="solid"){const i=Un(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?i.push(...u):u.length===3?i.push(...an(Gn([u[0],u[0],u[1],u[2]]),10,(1+s.roughness)/2)):i.push(...an(Gn(u),10,(1+s.roughness)/2))}i.length&&r.push(Me([i],s))}return s.stroke!==W&&r.push(o),this._d("curve",r,s)}polygon(e,t){const s=this._o(t),r=[],o=We(e,!0,s);return s.fill&&(s.fillStyle==="solid"?r.push(Vt([e],s)):r.push(Me([e],s))),s.stroke!==W&&r.push(o),this._d("polygon",r,s)}path(e,t){const s=this._o(t),r=[];if(!e)return this._d("path",r,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=s.fill&&s.fill!=="transparent"&&s.fill!==W,i=s.stroke!==W,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=xi(e,1,l),u=Qn(e,s);if(o)if(s.fillStyle==="solid")if(c.length===1){const f=Qn(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(Vt(c,s));else r.push(Me(c,s));return i&&(a?c.forEach(f=>{r.push(We(f,!1,s))}):r.push(u)),this._d("path",r,s)}opsToPath(e,t){let s="";for(const r of e.ops){const o=typeof t=="number"&&t>=0?r.data.map(i=>+i.toFixed(t)):r.data;switch(r.op){case"move":s+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}return s.trim()}toPaths(e){const t=e.sets||[],s=e.options||this.defaultOptions,r=[];for(const o of t){let i=null;switch(o.type){case"path":i={d:this.opsToPath(o),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:W};break;case"fillPath":i={d:this.opsToPath(o),stroke:W,strokeWidth:0,fill:s.fill||W};break;case"fillSketch":i=this.fillSketch(o,s);break}i&&r.push(i)}return r}fillSketch(e,t){let s=t.fillWeight;return s<0&&(s=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||W,strokeWidth:s,fill:W}}_mergedShape(e){return e.filter((t,s)=>s===0?!0:t.op!=="move")}}const Hs="http://www.w3.org/2000/svg",Zi=800;let Ut=null;function Xi(){return Ut||(Ut=new Yi().defaultOptions),Ut}function Wt(n,e,t){return{...Xi(),maxRandomnessOffset:2,roughness:n==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:n!=="double",disableMultiStrokeFill:!1,seed:e,...t}}function ea(n){const e=n.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}return[5,5,5,5]}function ta(n,e,t,s,r,o){const i=[];let a=t.strokeWidth||2;const l=ea(t),c=t.animate===void 0?!0:!!t.animate,u=t.iterations||2,f=t.rtl?1:0,h=Wt("single",o,t);switch(t.type){case"underline":{const d=e.y+e.h+l[2];for(let p=f;py.setAttribute(w,b);for(const y of d){const w=document.createElementNS(Hs,"path");if(m(w,"d",y),m(w,"fill","none"),m(w,"stroke",t.color||"currentColor"),m(w,"stroke-width",`${a}`),t.opacity!==void 0&&m(w,"style",`opacity:${t.opacity}`),c){const b=w.getTotalLength();p.push(b),v+=b}n.appendChild(w),g.push(w)}if(c){let y=0;for(let w=0;wsetTimeout(e,n))}function na(n){const e=[];for(const t of n){let s="";for(const r of t.ops){const o=r.data;switch(r.op){case"move":s.trim()&&e.push(s.trim()),s=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function sa(){if(!window.__rno_kf_s){const n=window.__rno_kf_s=document.createElement("style");n.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(n)}}var ra=Object.defineProperty,oa=(n,e,t)=>e in n?ra(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Y=(n,e,t)=>(oa(n,typeof e!="symbol"?e+"":e,t),t);class ia{constructor(e,t){Y(this,"_state","unattached"),Y(this,"_config"),Y(this,"_resizing",!1),Y(this,"_ro"),Y(this,"_seed",As()),Y(this,"_e"),Y(this,"_svg"),Y(this,"_lastSizes",[]),Y(this,"_animationDelay",0),Y(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),Y(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){sa();const e=this._svg=document.createElementNS(Hs,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(r)===Math.round(o);return s(e.x,t.x)&&s(e.y,t.y)&&s(e.w,t.w)&&s(e.h,t.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,t){let s=this._config;t&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const r=this.rects();let o=0;r.forEach(c=>o+=c.w);const i=s.animationDuration||Zi;let a=0;const l=[];for(let c=0;cObject.assign(n,{type:"box"}),circle:n=>Object.assign(n,{type:"circle"}),underline:n=>Object.assign(n,{type:"underline"}),highlight:n=>Object.assign(n,{type:"highlight"}),"strike-through":n=>Object.assign(n,{type:"strike-through"}),"crossed-off":n=>Object.assign(n,{type:"crossed-off"}),bracket:n=>Object.assign(n,{type:"bracket"}),strike:n=>Object.assign(n,{type:"strike-through"}),cross:n=>Object.assign(n,{type:"crossed-off"}),crossed:n=>Object.assign(n,{type:"crossed-off"}),linethrough:n=>Object.assign(n,{type:"strike-through"}),"line-through":n=>Object.assign(n,{type:"strike-through"}),black:n=>U(n,"text-black"),blue:n=>U(n,"text-blue"),cyan:n=>U(n,"text-cyan"),gray:n=>U(n,"text-gray"),green:n=>U(n,"text-green"),indigo:n=>U(n,"text-indigo"),lime:n=>U(n,"text-lime"),orange:n=>U(n,"text-orange"),pink:n=>U(n,"text-pink"),purple:n=>U(n,"text-purple"),red:n=>U(n,"text-red"),teal:n=>U(n,"text-teal"),white:n=>U(n,"text-white"),yellow:n=>U(n,"text-yellow")},la=[[/^delay-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||100;return e.opacity=s/100,e}]];function ca(){return{install(n){n.directive("mark",{name:"v-mark",mounted:(e,t)=>{const s=k(()=>{const i=typeof t.value=="object"&&!Array.isArray(t.value)?{...t.value}:{at:t.value};let a={at:i.at};const l=Object.entries(t.modifiers).filter(([u,f])=>{if(Yn[u])return a=Yn[u](a,f),!1;for(const[h,d]of la){const p=u.match(h);if(p)return a=d(p,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...i};return c.type||(c.type="underline"),c}),r=aa(e,s.value),o=ut(e,t,s.value.at);if(!o){r.show();return}e.watchStopHandle=Te(()=>{let i;s.value.class&&(r.class=s.value.class),s.value.color&&(r.color=s.value.color);const a=s.value.at;a===!0?i=!0:a===!1?i=!1:i=o.isActive.value,i!=null&&(i?r.show():r.hide())})},unmounted:e=>{var t;(t=e.watchStopHandle)==null||t.call(e)}})}}}const qa=O(!1),Ka=O(!1),Ja=O(!1),ua=O(!1),Ga=O(!0),xa=nr({xs:460,...lr}),_t=sr(),Ya=rr(),Za=k(()=>_t.height.value-_t.width.value/wr.value>120),Xa=or(fn?document.body:null),Fs=ir(),el=k(()=>{var n;return["INPUT","TEXTAREA"].includes(((n=Fs.value)==null?void 0:n.tagName)||"")}),tl=k(()=>{var n;return["BUTTON","A"].includes(((n=Fs.value)==null?void 0:n.tagName)||"")});te("slidev-camera","default",{listenToStorageChanges:!1});te("slidev-mic","default",{listenToStorageChanges:!1});const fa=te("slidev-scale",0),nl=te("slidev-wake-lock",!0),sl=te("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),ha=te("slidev-show-editor",!1,{listenToStorageChanges:!1}),da=te("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),pa=te("slidev-editor-width",fn?window.innerWidth*.4:318,{listenToStorageChanges:!1}),ga=te("slidev-editor-height",fn?window.innerHeight*.4:300,{listenToStorageChanges:!1}),nt=un(null),St=te("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),st=te("slidev-presenter-layout",1,{listenToStorageChanges:!1});function rl(){st.value=st.value+1,st.value>2&&(st.value=1)}function ol(){St.value=Math.min(2,St.value+.1)}function il(){St.value=Math.max(.5,St.value-.1)}const al=ar(ua);function ma(n=Xn(ps,O())){const e=cr(n),t=X([ha,da,pa,ga,fa,_t.width,_t.height],()=>{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:t}}function va(n){return()=>{}}function ya(n,e,t,s=!1){var q;function r(N){return n?Le(n,N):hr(N)}const o=r(dn),i=r(_o)??{},a=r(hn),l=k(()=>va(a.value)),c=r(bo)??O(1),u=r(So)??O(1),{left:f,top:h,stop:d}=ma(r(ps)??O()),p=["slide","presenter"].includes(o.value);let g=n?"directive":"prop",v=_n(),m;if(Array.isArray(e)?m=e:typeof e=="string"&&e.includes(",")?m=e.split(",").map(Number):e!=null&&(g="frontmatter",v=`${e}`,e=(q=i==null?void 0:i.dragPos)==null?void 0:q[v],m=e==null?void 0:e.split(",").map(Number)),g!=="frontmatter"&&!t)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const y=[d],w=!s&&e!=null&&!Number.isFinite(m==null?void 0:m[3]);m??(m=[Number.NaN,Number.NaN,0]);const b=O(m[2]),S=O(m[0]+m[2]/2),_=O(s?0:m[4]??0),E=k(()=>_.value*Math.PI/180),C=k(()=>Math.sin(E.value)),L=k(()=>Math.cos(E.value)),j=O(),$=O({left:0,top:0,width:0,height:0}),P=O(0);function A(){if(!j.value)return;const N=j.value.getBoundingClientRect();$.value={left:N.left/u.value,top:N.top/u.value,width:N.width/u.value,height:N.height/u.value},P.value=($.value.width+$.value.height)/c.value/(Math.abs(C.value)+Math.abs(L.value))-b.value}y.push(X(b,A,{flush:"post"}));const D=O(m[3]??0),T=w?k({get:()=>(w?P.value:D.value)||0,set:N=>!w&&(D.value=N)}):D,H=w?O(m[1]):O(m[1]+m[3]/2),ne=w?k({get:()=>H.value+T.value/2,set:N=>H.value=N-T.value/2}):H,Ne=k(()=>Number.isFinite(S.value)?{position:"absolute",zIndex:100,left:`${S.value-b.value/2}px`,top:`${ne.value-T.value/2}px`,width:`${b.value}px`,height:w?void 0:`${T.value}px`,transformOrigin:"center center",transform:`rotate(${_.value}deg)`}:{position:"absolute",zIndex:100});y.push(X([S,ne,b,T,_],([N,ue,Re,Ie,On])=>{let _e=[N-Re/2,ue-Ie/2,Re].map(Math.round).join();w?_e+=g==="directive"?",NaN":",_":_e+=`,${Math.round(Ie)}`,Math.round(On)!==0&&(_e+=`,${Math.round(On)}`),g==="directive"&&(_e=`[${_e}]`),l.value(v,_e,g,t)}));const x={dragId:v,dataSource:g,markdownSource:t,isArrow:s,zoom:u,autoHeight:w,x0:S,y0:ne,width:b,height:T,rotate:_,container:j,containerStyle:Ne,watchStopHandles:y,dragging:k(()=>nt.value===x),mounted(){p&&(A(),e||setTimeout(()=>{A(),S.value=($.value.left+$.value.width/2-f.value)/c.value,ne.value=($.value.top-h.value)/c.value,b.value=$.value.width/c.value,T.value=$.value.height/c.value},100))},unmounted(){p&&x.stopDragging()},startDragging(){A(),nt.value=x},stopDragging(){nt.value===x&&(nt.value=null)}};return y.push(ur(j,N=>{const ue=document.querySelector("#drag-control-container");ue&&N.target&&ue.contains(N.target)||x.stopDragging()}),X(fr(),N=>{N||x.stopDragging()})),x}function wa(){return{install(n){n.directive("drag",{name:"v-drag",created(e,t,s){var o;const r=ya(t,t.value,(o=s.props)==null?void 0:o.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),r.container.value=e,e.draggingState=r,e.dataset.dragId=r.dragId,r.watchStopHandles.push(X(r.containerStyle,i=>{for(const[a,l]of Object.entries(i))l&&(e.style[a]=l)},{immediate:!0})),e.addEventListener("dblclick",r.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const t=e.draggingState;t.unmounted(),e.removeEventListener("dblclick",t.startDragging),t.watchStopHandles.forEach(s=>s())}})}}}function ba(){return{install(n){const e=dr();n.directive("motion",{name:"v-motion",mounted(t,s,r,o){var w,b,S;const i=Le(s,Pt),a=Le(s,hn),l=Le(s,dn),{currentPage:c,clicks:u,isPrintMode:f}=Xt(),h=r.props={...r.props},d={...h.initial,...(w=h.variants)==null?void 0:w["slidev-initial"]},p={...h.enter,...(b=h.variants)==null?void 0:b["slidev-enter"]},g={...h.leave,...(S=h.variants)==null?void 0:S["slidev-leave"]};delete h.initial,delete h.enter,delete h.leave;const v=`${_n()}-`,m=[];for(const _ of Object.keys(h))if(_.startsWith("click-")){const E=_.slice(6),C=E.includes("-")?E.split("-").map(Number):+E,L=v+E;m.push({id:L,at:C,variant:{...h[_]},info:i==null?void 0:i.value.calculate(C)}),delete h[_]}m.sort((_,E)=>(Array.isArray(_.at)?_.at[0]:_.at)-(Array.isArray(E.at)?E.at[0]:E.at)),e.created(t,s,r,o),e.mounted(t,s,r,o);const y=t.motionInstance;y.clickIds=m.map(_=>_.id),y.set(d),y.watchStopHandle=X([a,c,u].filter(Boolean),()=>{var E;const _=((E=Cs.get(t))==null?void 0:E.visibilityState.value)??"shown";if(!(i!=null&&i.value)||!["slide","presenter"].includes((l==null?void 0:l.value)??"")){const C={...d,...p};for(const{variant:L}of m)Object.assign(C,L);y.set(C)}else if(f.value||(a==null?void 0:a.value)===c.value)if(_==="shown"){const C={...d,...p};for(const{variant:L,info:j}of m)(!j||j.isActive.value)&&Object.assign(C,L);f.value?y.set(C):y.apply(C)}else y.apply(_==="before"?d:g);else y.apply(((a==null?void 0:a.value)??-1)>c.value?d:g)},{immediate:!0})},unmounted(t){t.motionInstance.watchStopHandle()}})}}}const ka=[];function _a(){const n=[];{let e=function(t){if(!z.remote||z.remote===t.query.password)return!0;if(z.remote&&t.query.password===void 0){const s=prompt("Enter password");if(z.remote===s)return!0}return t.params.no?{path:`/${t.params.no}`}:{path:""}};n.push({name:"entry",path:"/entry",component:()=>Z(()=>import("./slidev/entry-CfOhylDU.js"),__vite__mapDeps([17,18,1,3,4,5,6,7,19]))},{name:"overview",path:"/overview",component:()=>Z(()=>import("./slidev/overview-DLIALU7m.js"),__vite__mapDeps([20,18,1,3,4,5,21,2,22,23,24,25,6,7]))},{name:"notes",path:"/notes",component:()=>Z(()=>import("./slidev/notes-h7c9XeN0.js"),__vite__mapDeps([26,18,1,3,4,5,24,25,23,6,7])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>Z(()=>import("./slidev/presenter-Dpmh3Akx.js"),__vite__mapDeps([27,18,1,28,21,3,4,5,2,22,23,6,7,29,24,25,30,31,32])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}})}return n.push({name:"play",path:"/:no",component:()=>Z(()=>import("./slidev/play-Bc53t-gn.js"),__vite__mapDeps([33,1,28,21,3,4,5,18,2,22,23,6,7,29,34]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>Z(()=>import("./slidev/404-Bg3XtBLk.js"),__vite__mapDeps([35,1,3,4,5,6,7,36]))}),ka.reduce((e,t)=>t(e),n)}function Sa(n){return n}var Ma=Sa;/*!
+ * qrcode.vue v3.4.1
+ * A Vue.js component to generate QRCode.
+ * © 2017-2023 @scopewu(https://github.com/scopewu)
+ * MIT License.
+ */var Mt=function(){return Mt=Object.assign||function(e){for(var t,s=1,r=arguments.length;si.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var f=[],h=0;h7)throw new RangeError("Invalid value");var d,p;for(d=c;;d++){var g=i.getNumDataCodewords(d,l)*8,v=o.getTotalBits(a,d);if(v<=g){p=v;break}if(d>=u)throw new RangeError("Data too long")}for(var m=0,y=[i.Ecc.MEDIUM,i.Ecc.QUARTILE,i.Ecc.HIGH];m>>3]|=D<<7-(T&7)}),new i(d,l,A,f)},i.prototype.getModule=function(a,l){return 0<=a&&a>>9)*1335;var f=(l<<10|c)^21522;r(f>>>15==0);for(var u=0;u<=5;u++)this.setFunctionModule(8,u,s(f,u));this.setFunctionModule(8,7,s(f,6)),this.setFunctionModule(8,8,s(f,7)),this.setFunctionModule(7,8,s(f,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,s(f,u));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,s(f,u));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,s(f,u));this.setFunctionModule(8,this.size-8,!0)},i.prototype.drawVersion=function(){if(!(this.version<7)){for(var a=this.version,l=0;l<12;l++)a=a<<1^(a>>>11)*7973;var c=this.version<<12|a;r(c>>>18==0);for(var l=0;l<18;l++){var u=s(c,l),f=this.size-11+l%3,h=Math.floor(l/3);this.setFunctionModule(f,h,u),this.setFunctionModule(h,f,u)}}},i.prototype.drawFinderPattern=function(a,l){for(var c=-4;c<=4;c++)for(var u=-4;u<=4;u++){var f=Math.max(Math.abs(u),Math.abs(c)),h=a+u,d=l+c;0<=h&&h=d)&&S.push(C[E])})},m=0;m=1;c-=2){c==6&&(c=5);for(var u=0;u>>3],7-(l&7)),l++)}}r(l==a.length*8)},i.prototype.applyMask=function(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(var l=0;l5&&a++):(this.finderPenaltyAddHistory(u,f),c||(a+=this.finderPenaltyCountPatterns(f)*i.PENALTY_N3),c=this.modules[l][h],u=1);a+=this.finderPenaltyTerminateAndCount(c,u,f)*i.PENALTY_N3}for(var h=0;h5&&a++):(this.finderPenaltyAddHistory(d,f),c||(a+=this.finderPenaltyCountPatterns(f)*i.PENALTY_N3),c=this.modules[l][h],d=1);a+=this.finderPenaltyTerminateAndCount(c,d,f)*i.PENALTY_N3}for(var l=0;li.MAX_VERSION)throw new RangeError("Version number out of range");var l=(16*a+128)*a+64;if(a>=2){var c=Math.floor(a/7)+2;l-=(25*c-10)*c-55,a>=7&&(l-=36)}return r(208<=l&&l<=29648),l},i.getNumDataCodewords=function(a,l){return Math.floor(i.getNumRawDataModules(a)/8)-i.ECC_CODEWORDS_PER_BLOCK[l.ordinal][a]*i.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][a]},i.reedSolomonComputeDivisor=function(a){if(a<1||a>255)throw new RangeError("Degree out of range");for(var l=[],c=0;c>>8||l>>>8)throw new RangeError("Byte out of range");for(var c=0,u=7;u>=0;u--)c=c<<1^(c>>>7)*285,c^=(l>>>u&1)*a;return r(c>>>8==0),c},i.prototype.finderPenaltyCountPatterns=function(a){var l=a[1];r(l<=this.size*3);var c=l>0&&a[2]==l&&a[3]==l*3&&a[4]==l&&a[5]==l;return(c&&a[0]>=l*4&&a[6]>=l?1:0)+(c&&a[6]>=l*4&&a[0]>=l?1:0)},i.prototype.finderPenaltyTerminateAndCount=function(a,l,c){return a&&(this.finderPenaltyAddHistory(l,c),l=0),l+=this.size,this.finderPenaltyAddHistory(l,c),this.finderPenaltyCountPatterns(c)},i.prototype.finderPenaltyAddHistory=function(a,l){l[0]==0&&(a+=this.size),l.pop(),l.unshift(a)},i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i}();n.QrCode=e;function t(i,a,l){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(var c=a-1;c>=0;c--)l.push(i>>>c&1)}function s(i,a){return(i>>>a&1)!=0}function r(i){if(!i)throw new Error("Assertion error")}var o=function(){function i(a,l,c){if(this.mode=a,this.numChars=l,this.bitData=c,l<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}return i.makeBytes=function(a){for(var l=[],c=0,u=a;c=1<-1}}}),Oa=Je({name:"QRCodeSvg",props:Pn,setup:function(n){var e=O(0),t=O(""),s=function(){var r=n.value,o=n.level,i=n.margin,a=Ae.QrCode.encodeText(r,En[o]).getModules();e.value=a.length+i*2,t.value=Bs(a,i)};return s(),ss(s),function(){return Be("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(e.value," ").concat(e.value)},[Be("path",{fill:n.background,d:"M0,0 h".concat(e.value,"v").concat(e.value,"H0z")}),Be("path",{fill:n.foreground,d:t.value})])}}}),Ca=Je({name:"QRCodeCanvas",props:Pn,setup:function(n){var e=O(null),t=function(){var s=n.value,r=n.level,o=n.size,i=n.margin,a=n.background,l=n.foreground,c=e.value;if(c){var u=c.getContext("2d");if(u){var f=Ae.QrCode.encodeText(s,En[r]).getModules(),h=f.length+i*2,d=window.devicePixelRatio||1,p=o/h*d;c.height=c.width=o*d,u.scale(p,p),u.fillStyle=a,u.fillRect(0,0,h,h),u.fillStyle=l,Ea?u.fill(new Path2D(Bs(f,i))):f.forEach(function(g,v){g.forEach(function(m,y){m&&u.fillRect(y+i,v+i,1,1)})})}}};return cn(t),ss(t),function(){return Be("canvas",{ref:e,style:{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")}})}}}),Aa=Je({name:"Qrcode",render:function(){var n=this.$props,e=n.renderAs,t=n.value,s=n.size,r=n.margin,o=n.level,i=n.background,a=n.foreground,l=s>>>0,c=r>>>0,u=zs(o)?o:js;return Be(e==="svg"?Oa:Ca,{value:t,size:l,margin:c,level:u,background:i,foreground:a})},props:Pa});const Ta=Ma(({app:n,router:e})=>{n.component("QRCode",Aa)}),La=[Ta];async function $a(n){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const t=pr({history:gr("/lectures/week_01/test1/"),routes:_a()});n.use(t),n.use(lo()),n.use(Mi()),n.use(ca()),n.use(wa()),n.use(ba()),n.use(br,{container:"#twoslash-container"});const s={app:n,router:t};for(const r of La)await r(s)}const Vs=mr(Si);$a(Vs);Vs.mount("#app");export{Va as $,Ga as A,tl as B,it as C,el as D,fa as E,nl as F,xa as G,Fs as H,rl as I,Lt as J,bo as K,ma as L,pn as M,ps as N,za as O,ja as P,Fa as Q,Ba as R,_o as S,hn as T,dn as U,Pt as V,So as W,Wa as X,_n as Y,ko as Z,ni as _,Xt as a,Eo as a0,Os as b,ti as c,Ua as d,sl as e,Xa as f,Ce as g,ha as h,St as i,ol as j,il as k,qa as l,Ka as m,Za as n,da as o,st as p,se as q,nt as r,Ha as s,ua as t,uo as u,al as v,_t as w,Ja as x,Ya as y,Qa as z};
diff --git a/week_01/test1/assets/md-B2t6eFbF.js b/week_01/test1/assets/md-B2t6eFbF.js
new file mode 100644
index 0000000..29766f3
--- /dev/null
+++ b/week_01/test1/assets/md-B2t6eFbF.js
@@ -0,0 +1 @@
+import{z as _,o as c,b as d,e,f as l,i as p,c as h,k as f,q as $,s as v,I as n,ab as t}from"./modules/vue-Bx6xSt6e.js";import{u as i,f as k}from"./slidev/context-CPMMc1kN.js";import"./index-BhiEEYhA.js";import"./monaco/bundled-types-CutNYhe2.js";import"./modules/file-saver-igGfcqei.js";import"./modules/shiki-BeZKuXrB.js";const x={class:"myauto w-full"},w={class:"note absolute bottom-3"},C={__name:"cover",props:{color:{default:"white"}},setup(o){i();const r=o,a=_(()=>`neversink-${r.color}-scheme`);return(s,u)=>(c(),d("div",{class:p(["slidev-layout cover h-full slidecolor",a.value])},[e("div",x,[l(s.$slots,"default")]),e("div",w,[l(s.$slots,"note")])],2))}},b=e("h1",null,"Test",-1),B=e("p",null,[t("This is a "),e("em",null,"test"),t(" of "),e("mark",null,"neversink"),t(" with a "),e("strong",null,"custom"),t(" color scheme!")],-1),T=e("p",null,"I hope this works?",-1),g={__name:"slides.md__slidev_1",setup(o){const{$slidev:r,$nav:a,$clicksContext:s,$clicks:u,$page:z,$renderContext:P,$frontmatter:m}=i();return s.setup(),(y,I)=>(c(),h(C,$(v(n(k)(n(m),0))),{default:f(()=>[b,B,T]),_:1},16))}},j=g;export{j as default};
diff --git a/week_01/test1/assets/md-BV_QmVfM.js b/week_01/test1/assets/md-BV_QmVfM.js
new file mode 100644
index 0000000..973575d
--- /dev/null
+++ b/week_01/test1/assets/md-BV_QmVfM.js
@@ -0,0 +1 @@
+import{r as n,o as c,c as i,k as e,l as p,q as m,s as l,I as t,e as _}from"./modules/vue-Bx6xSt6e.js";import{I as d}from"./side-title-BzlhspPS.js";import{u,f}from"./slidev/context-CPMMc1kN.js";import"./layoutHelper-BN7rjZLy.js";import"./index-BhiEEYhA.js";import"./monaco/bundled-types-CutNYhe2.js";import"./modules/file-saver-igGfcqei.js";import"./modules/shiki-BeZKuXrB.js";const h=_("h1",null,"Check out these slides yourself!",-1),C={__name:"slides.md__slidev_2",setup($){const{$slidev:k,$nav:v,$clicksContext:o,$clicks:x,$page:P,$renderContext:g,$frontmatter:s}=u();return o.setup(),(w,B)=>{const r=n("QRCode");return c(),i(d,m(l(t(f)(t(s),1))),{title:e(a=>[h]),content:e(a=>[p(r,{value:"https://christopherwmm.github.io/lectures/week_01/test1/",size:300,"render-as":"svg"})]),_:1},16)}}},j=C;export{j as default};
diff --git a/week_01/test1/assets/md-DBrHLyLI.js b/week_01/test1/assets/md-DBrHLyLI.js
new file mode 100644
index 0000000..c47d548
--- /dev/null
+++ b/week_01/test1/assets/md-DBrHLyLI.js
@@ -0,0 +1 @@
+import{d as P,aF as E,t as b,S as j,o as i,b as p,g as S,i as m,F as B,aD as F,z as x,e,ab as n,x as y,f as _,aE as I,p as L,a as V,c as M,k as $,l as N,q,s as z,I as C}from"./modules/vue-Bx6xSt6e.js";import{u as T,f as A}from"./slidev/context-CPMMc1kN.js";import{c as D,a as k}from"./layoutHelper-BN7rjZLy.js";import{_ as H}from"./index-BhiEEYhA.js";import"./monaco/bundled-types-CutNYhe2.js";import"./modules/file-saver-igGfcqei.js";import"./modules/shiki-BeZKuXrB.js";const J={key:0},O=["innerHTML"],R=P({__name:"Excalidraw",props:{drawFilePath:{},darkMode:{type:Boolean,default:!1},background:{type:Boolean,default:!1}},setup(r){T(),E();const a=b(!1),c=b(null),o=r;j(()=>{a.value=!0,g(["https://cdn.jsdelivr.net/npm/react@18.2.0/umd/react.production.min.js","https://cdn.jsdelivr.net/npm/react-dom@18.2.0/umd/react-dom.production.min.js","https://cdn.jsdelivr.net/npm/@excalidraw/excalidraw/dist/excalidraw.production.min.js"]).then(()=>{v(o)}).finally(()=>{a.value=!1})});const v=async({drawFilePath:l,darkMode:d=!1,background:u=!1})=>{try{const s=new URL(l,window.location.origin+"/lectures/week_01/test1/").href,h=await(await fetch(s)).json(),w=await ExcalidrawLib.exportToSvg({...h,appState:{...h.appState,exportWithDarkMode:d,exportBackground:u}});w.style.maxWidth="100%",w.style.height="auto",c.value=w.outerHTML}catch(s){console.error("Failed to load JSON or export to SVG",s)}};function t(l){return new Promise((d,u)=>{if(document.querySelector(`script[src="${l}"]`)){d("success");return}const s=document.createElement("script");s.src=l,s.onload=d,s.onerror=u,document.head.appendChild(s)})}function g(l){const d=l.map(u=>t(u));return Promise.all(d)}return(l,d)=>(i(),p(B,null,[a.value?(i(),p("p",J,"Loading Excalidraw...")):S("v-if",!0),c.value?(i(),p("div",{key:1,class:m(l.$attrs.class),innerHTML:c.value},null,10,O)):S("v-if",!0)],64))}}),f=r=>(L("data-v-3310aa71"),r=r(),V(),r),W={key:0,class:"slidev-layout default error"},G=f(()=>e("span",{class:"ns-c-warning"},[e("b",null,"Error"),n(": invalid layout params.")],-1)),U=f(()=>e("hr",null,null,-1)),K=f(()=>e("code",null,"columns",-1)),Q=f(()=>e("code",null,"align",-1)),X=f(()=>e("code",null,"color",-1)),Y=I(" The "slots" of the page are default :: title ::
, :: left ::
, and :: right ::
Options for columns
are divided into 12 column units. So with columns: is-1-11
the left column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only specifying the left column (columns: is-1
does the same thing). In addition there are short hands like columns: is-one-quarter
which resolves to is-3-9
, etc...
The align
parameter determines how the columns look. The notation is for example align: c-cm-cm
. The first part is for the title, the second for the left column, and the third part is for the right column. The first letter is (c
for center, l
for left, r
for right). This applies to all three second. For the columns the second letter is vertical alignment (t
for top, m
for middle, b
for bottom).
The color
parameter determines color of the title.
",4),Z={key:1},ee={class:"flex flex-col h-full w-full"},te={class:"slidev-layout toptitle content w-full"},ae={class:"flex flex-row h-full w-full"},oe={key:0,class:"h-fit w-full"},le={__name:"top-title-two-cols",props:{columns:{default:"is-one-half"},align:{default:"l-lt-lt"},color:{default:"light"}},setup(r){F(t=>({"76f4b01a":c.value.l,"76f4b00e":c.value.r})),T();const a=r,c=x(()=>D(a.columns)),o=x(()=>{const t=a.align.split("-");return{t:k(t[0]),l:k(t[1]),r:k(t[2])}}),v=x(()=>`neversink-${a.color}-scheme`);return(t,g)=>c.value=="error"||o.value.t=="error"||o.value.l=="error"||o.value.r=="error"?(i(),p("div",W,[G,U,e("p",null,[n(" There are three parameters: "),K,n(", "),Q,n(", and "),X,n(". Currently: "),e("code",null,"columns: "+y(a.columns),1),n(", "),e("code",null,"align: "+y(a.align),1),n(", and "),e("code",null,"color: "+y(a.color),1),n(". ")]),Y])):(i(),p("div",Z,[e("div",ee,[e("div",{class:m(["w-full h-fit min-h-13 pt-2 pb-2 slidecolor",v.value])},[e("div",{class:m(["slidev-layout toptitle title p-0 ml-6 mr-6 mt-auto mb-auto",o.value.t])},[_(t.$slots,"title",{},void 0,!0)],2)],2),e("div",te,[e("div",ae,[e("div",{class:m(["col-left",o.value.l])},[_(t.$slots,"left",{},void 0,!0)],2),e("div",{class:m(["col-right",o.value.r])},[_(t.$slots,"right",{},void 0,!0)],2)])]),t.$slots.default?(i(),p("div",oe,[_(t.$slots,"default",{},void 0,!0)])):S("v-if",!0)])]))}},se=H(le,[["__scopeId","data-v-3310aa71"]]),ne=e("h1",null,"This has a list of things and a drawing",-1),re=e("ul",null,[e("li",null,[n("A "),e("ul",null,[e("li",null,"a"),e("li",null,"aa")])]),e("li",null,[n("B "),e("ul",null,[e("li",null,"b")])]),e("li",null,"C")],-1),ce={__name:"slides.md__slidev_4",setup(r){const{$slidev:a,$nav:c,$clicksContext:o,$clicks:v,$page:t,$renderContext:g,$frontmatter:l}=T();return o.setup(),(d,u)=>{const s=R;return i(),M(se,q(z(C(A)(C(l),3))),{title:$(h=>[ne]),left:$(h=>[re]),right:$(h=>[N(s,{drawFilePath:"./test.excalidraw"})]),_:1},16)}}},ve=ce;export{ve as default};
diff --git a/week_01/test1/assets/md-Dx23vpFk.js b/week_01/test1/assets/md-Dx23vpFk.js
new file mode 100644
index 0000000..5fe6568
--- /dev/null
+++ b/week_01/test1/assets/md-Dx23vpFk.js
@@ -0,0 +1,2 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/slidev/CodeRunner-CqGqxUsJ.js","assets/modules/unplugin-icons-B74mOkCF.js","assets/modules/vue-Bx6xSt6e.js","assets/monaco/bundled-types-CutNYhe2.js","assets/modules/file-saver-igGfcqei.js","assets/monaco/bundled-types-GI7L-5Qk.css","assets/slidev/context-CPMMc1kN.js","assets/index-BhiEEYhA.js","assets/modules/shiki-BeZKuXrB.js","assets/modules/shiki-BPvBenZD.css","assets/index-LNVs1Z9b.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-C6q09ciw.js","assets/CodeRunner-YBfxSSx9.css"])))=>i.map(i=>d[i]);
+import{_ as $,k as Y}from"./monaco/bundled-types-CutNYhe2.js";import{d as q,t as S,z as N,aC as J,S as F,n as j,o as T,b as G,e as E,h as X,c as Z,I as k,g as ee,W as te,k as H,l as oe,m as ne,q as re,s as ie,ab as P}from"./modules/vue-Bx6xSt6e.js";import{a as ae}from"./modules/file-saver-igGfcqei.js";import{a as se,Y as Q}from"./index-BhiEEYhA.js";import{u as I,f as le}from"./slidev/context-CPMMc1kN.js";import{I as ue}from"./side-title-BzlhspPS.js";import"./modules/shiki-BeZKuXrB.js";import"./layoutHelper-BN7rjZLy.js";var D={exports:{}};D.exports;(function(O){var c=function(){var w=String.fromCharCode,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",M={};function B(t,n){if(!M[t]){M[t]={};for(var s=0;s>>8,s[o*2+1]=d%256}return s},decompressFromUint8Array:function(t){if(t==null)return v.decompress(t);for(var n=new Array(t.length/2),s=0,o=n.length;s>1}else{for(i=1,o=0;o>1}h--,h==0&&(h=Math.pow(2,l),l++),delete _[f]}else for(i=d[f],o=0;o>1;h--,h==0&&(h=Math.pow(2,l),l++),d[x]=p++,f=String(m)}if(f!==""){if(Object.prototype.hasOwnProperty.call(_,f)){if(f.charCodeAt(0)<256){for(o=0;o>1}else{for(i=1,o=0;o>1}h--,h==0&&(h=Math.pow(2,l),l++),delete _[f]}else for(i=d[f],o=0;o>1;h--,h==0&&(h=Math.pow(2,l),l++)}for(i=2,o=0;o>1;for(;;)if(e=e<<1,a==n-1){u.push(s(e));break}else a++;return u.join("")},decompress:function(t){return t==null?"":t==""?null:v._decompress(t.length,32768,function(n){return t.charCodeAt(n)})},_decompress:function(t,n,s){var o=[],i=4,d=4,_=3,m="",x=[],f,h,p,l,u,e,a,r={val:s(0),position:n,index:1};for(f=0;f<3;f+=1)o[f]=f;for(p=0,u=Math.pow(2,2),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;switch(p){case 0:for(p=0,u=Math.pow(2,8),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;a=w(p);break;case 1:for(p=0,u=Math.pow(2,16),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;a=w(p);break;case 2:return""}for(o[3]=a,h=a,x.push(a);;){if(r.index>t)return"";for(p=0,u=Math.pow(2,_),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;switch(a=p){case 0:for(p=0,u=Math.pow(2,8),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;o[d++]=w(p),a=d-1,i--;break;case 1:for(p=0,u=Math.pow(2,16),e=1;e!=u;)l=r.val&r.position,r.position>>=1,r.position==0&&(r.position=n,r.val=s(r.index++)),p|=(l>0?1:0)*e,e<<=1;o[d++]=w(p),a=d-1,i--;break;case 2:return x.join("")}if(i==0&&(i=Math.pow(2,_),_++),o[a])m=o[a];else if(a===d)m=h+h.charAt(0);else return null;x.push(m),o[d++]=h+m.charAt(0),i--,h=m,i==0&&(i=Math.pow(2,_),_++)}}};return v}();O!=null?O.exports=c:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return c})})(D);var ce=D.exports;const V=ae(ce),de={class:"relative slidev-monaco-container"},fe=q({__name:"Monaco",props:{codeLz:{default:""},diffLz:{},lang:{default:"typescript"},readonly:{type:Boolean,default:!1},lineNumbers:{default:"off"},height:{default:"initial"},editorOptions:{},ata:{type:Boolean,default:!0},runnable:{type:Boolean,default:!1},writable:{},autorun:{type:[Boolean,String],default:!0},showOutputAt:{type:[null,Boolean,String,Number,Array]},outputHeight:{},highlightOutput:{type:Boolean,default:!0},runnerOptions:{}},setup(O){const c=O,w=te(()=>$(()=>import("./slidev/CodeRunner-CqGqxUsJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(l=>l.default)),A=S(V.decompressFromBase64(c.codeLz).trimEnd()),b=c.diffLz&&S(V.decompressFromBase64(c.diffLz).trimEnd()),M=N(()=>c.writable&&!c.readonly&&!1),v={ts:"typescript",js:"javascript"}[c.lang]??c.lang,n={typescript:"mts",javascript:"mjs",ts:"mts",js:"mjs"}[c.lang]??c.lang,s=S(),o=S(),i=S(0),d=S(),_=N(()=>c.height==="auto"?`${i.value}px`:c.height==="initial"?`${d.value}px`:c.height),m=S(),{$page:x,$renderContext:f}=I(),{currentSlideNo:h}=se(),p=J(()=>Math.abs(x.value-h.value)<=1&&m.value,l=>{["slide","presenter"].includes(f.value)?l():setTimeout(l,5e3)});return F(async()=>{const{default:l}=await $(async()=>{const{default:g}=await import("./monaco/bundled-types-CutNYhe2.js").then(C=>C.u);return{default:g}},__vite__mapDeps([3,2,4,5])),{ata:u,monaco:e,editorOptions:a}=await l(),r=e.editor.createModel(A.value,v,e.Uri.parse(`file:///${Q()}.${n}`));r.onDidChangeContent(()=>A.value=r.getValue());const U={automaticLayout:!0,readOnly:c.readonly,lineNumbers:c.lineNumbers,minimap:{enabled:!1},overviewRulerBorder:!1,overviewRulerLanes:0,padding:{top:10,bottom:10},lineNumbersMinChars:3,bracketPairColorization:{enabled:!1},tabSize:2,fontSize:11.5,fontFamily:"var(--slidev-code-font-family)",scrollBeyondLastLine:!1,useInlineViewWhenSpaceIsLimited:!1,...a,...c.editorOptions};let y;if(b){const g=e.editor.createModel(b.value,v,e.Uri.parse(`file:///${Q()}.${n}`));g.onDidChangeContent(()=>A.value=r.getValue());const C=e.editor.createDiffEditor(o.value,{renderOverviewRuler:!1,...U});C.setModel({original:r,modified:g});const z=C.getOriginalEditor(),L=C.getModifiedEditor(),R=()=>{const W=Math.max(z.getContentHeight(),L.getContentHeight())+4;d.value??(d.value=W),i.value=W,j(()=>C.layout())};z.onDidContentSizeChange(R),L.onDidContentSizeChange(R),y=L}else{const g=e.editor.create(o.value,{model:r,lineDecorationsWidth:0,...U});g.onDidContentSizeChange(C=>{const z=C.contentHeight+4;d.value??(d.value=z),i.value=z,j(()=>y.layout())}),y=g}m.value=()=>{p(),$(()=>import("./monaco/bundled-types-CutNYhe2.js").then(g=>g.v),__vite__mapDeps([3,2,4,5])),c.ata&&(u(y.getValue()),y.onDidChangeModelContent(Y(1e3,()=>{u(y.getValue())})))};const K=y.layoutContentWidget.bind(y);y.layoutContentWidget=g=>{K(g),g.getId()==="editor.contrib.resizableContentHoverWidget"&&(g._resizableNode.domNode.style.transform=g._positionPreference===1?"translateY(calc(100% * (var(--slidev-slide-scale) - 1)))":"")},y.addAction({id:"slidev-save",label:"Save",keybindings:[e.KeyMod.CtrlCmd|e.KeyCode.KeyS],run:()=>{M.value,console.warn("[Slidev] this monaco editor is not writable, save action is ignored.")}}),j(()=>e.editor.remeasureFonts())}),(l,u)=>(T(),G("div",de,[E("div",{ref_key:"outer",ref:s,class:"relative slidev-monaco-container-inner",style:X({height:_.value})},[E("div",{ref_key:"container",ref:o,class:"absolute inset-0.5"},null,512)],4),c.runnable?(T(),Z(k(w),{key:0,modelValue:A.value,"onUpdate:modelValue":u[0]||(u[0]=e=>A.value=e),lang:k(v),autorun:c.autorun,"show-output-at":c.showOutputAt,height:c.outputHeight,"highlight-output":c.highlightOutput,"runner-options":c.runnerOptions},null,8,["modelValue","lang","autorun","show-output-at","height","highlight-output","runner-options"])):ee("v-if",!0)]))}}),pe=E("h1",null,"Code!",-1),he=E("h2",null,[P("We can execute some "),E("code",null,"code"),P("!")],-1),ve={__name:"slides.md__slidev_3",setup(O){const{$slidev:c,$nav:w,$clicksContext:A,$clicks:b,$page:M,$renderContext:B,$frontmatter:v}=I();return A.setup(),(t,n)=>{const s=fe;return T(),Z(ue,re(ie(k(le)(k(v),2))),{title:H(o=>[pe]),content:H(o=>[he,oe(s,ne({runnable:"","code-lz":"MYewdgziA2CmB00QHMAUAiAEraSAEA7iAE7QAmAhOgJQBQQA",lang:"ts"},{autorun:!0,editorOptions:{lineNumbers:"on"}}),null,16)]),_:1},16)}}},Me=ve;export{Me as default};
diff --git a/week_01/test1/assets/monaco/bundled-types-CutNYhe2.js b/week_01/test1/assets/monaco/bundled-types-CutNYhe2.js
new file mode 100644
index 0000000..de39939
--- /dev/null
+++ b/week_01/test1/assets/monaco/bundled-types-CutNYhe2.js
@@ -0,0 +1,1154 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco/freemarker2-BNznXqn-.js","assets/modules/vue-Bx6xSt6e.js","assets/modules/file-saver-igGfcqei.js","assets/monaco/handlebars-BeFNmT0z.js","assets/monaco/html-DWqM5c3Y.js","assets/monaco/javascript-zZ_6YuDS.js","assets/monaco/typescript-B4jGL9um.js","assets/monaco/liquid-QuN8kA_y.js","assets/monaco/mdx-DiM9yg6c.js","assets/monaco/python-XZUT-zMz.js","assets/monaco/razor-B-LsaI92.js","assets/monaco/xml-C1Slvu_M.js","assets/monaco/yaml-CGCNEPCO.js","assets/monaco/cssMode-C9lpIxAQ.js","assets/monaco/htmlMode-DWjPXI9q.js","assets/monaco/jsonMode-ZHvbUFeD.js","assets/monaco/tsMode-CpBJDrta.js","assets/slidev/shiki-CPrRB9--.js","assets/modules/shiki-BeZKuXrB.js","assets/modules/shiki-BPvBenZD.css"])))=>i.map(i=>d[i]);
+import{z as Rq,A as Sei,B as wei,C as xei,D as kei,E as Tei,G as Dei}from"../modules/vue-Bx6xSt6e.js";import{g as Eei,c as jpt,a as Iei}from"../modules/file-saver-igGfcqei.js";function Nei(c,e){for(var i=0;in[s]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}function iAi(c,e,i){return Math.min(i,Math.max(e,c))}function nAi(...c){return Pei(c).reduce((e,i)=>e+i,0)}function Lei(c){return c=c??[],Array.isArray(c)?c:[c]}function Pei(c){return Lei(c).flat(1)}function rAi(...c){let e,i,n;c.length===1?(e=0,n=1,[i]=c):[e,i,n=1]=c;const s=[];let l=e;for(;le(i,n)).filter(Aei))}function Mei(c){let e;function i(){return e||(e=c()),e}return i.reset=async()=>{const n=e;e=void 0,n&&await n},i}function Rei(c,e,i){var n=i||{},s=n.noTrailing,l=s===void 0?!1:s,d=n.noLeading,f=d===void 0?!1:d,g=n.debounceMode,y=g===void 0?void 0:g,w,x=!1,I=0;function P(){w&&clearTimeout(w)}function O(X){var Z=X||{},ee=Z.upcomingOnly,he=ee===void 0?!1:ee;P(),x=!he}function W(){for(var X=arguments.length,Z=new Array(X),ee=0;eec?f?(I=Date.now(),l||(w=setTimeout(y?Be:Te,c))):Te():l!==!0&&(w=setTimeout(y?Be:Te,y===void 0?c-we:c))}return W.cancel=O,W}function sAi(c,e,i){var n={},s=n.atBegin,l=s===void 0?!1:s;return Rei(c,e,{debounceMode:l!==!1})}const G9={theme:"neversink",title:"Test",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"light",routerMode:"hash",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:[],provider:"google",local:[],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,record:"dev",css:"unocss",presenter:!0,htmlAttrs:{},transition:null,editor:!0,contextMenu:null,wakeLock:!0,mdc:!1,layout:"cover",color:"bowdoin",slidesTitle:"Test - Slidev"},oAi="build",Fei=Rq(()=>G9.aspectRatio),Bei=Rq(()=>G9.canvasWidth),aAi=Rq(()=>Math.ceil(Bei.value/Fei.value)),lAi=Rq(()=>Oei(G9.themeConfig||{},(c,e)=>[`--slidev-theme-${c}`,e])),cAi=G9.slidesTitle,uAi="/lectures/week_01/test1/#/",Wei="modulepreload",Vei=function(c){return"/lectures/week_01/test1/"+c},zpt={},_o=function(e,i,n){let s=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.all(i.map(f=>{if(f=Vei(f),f in zpt)return;zpt[f]=!0;const g=f.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const w=document.createElement("link");if(w.rel=g?"stylesheet":Wei,g||(w.as="script",w.crossOrigin=""),w.href=f,d&&w.setAttribute("nonce",d),document.head.appendChild(w),g)return new Promise((x,I)=>{w.addEventListener("load",x),w.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${f}`)))})}))}return s.then(()=>e()).catch(l=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l})},Upt=Sei(),y8e=wei("slidev-color-schema","auto"),qpt=Rq(()=>G9.colorSchema!=="auto"),uHe=Rq({get(){return qpt.value?G9.colorSchema==="dark":y8e.value==="auto"?Upt.value:y8e.value==="dark"},set(c){qpt.value||(y8e.value=c===Upt.value?"auto":c?"dark":"light")}}),dAi=xei(uHe);kei&&Tei(uHe,c=>{const e=document.querySelector("html");e.classList.toggle("dark",c),e.classList.toggle("light",!c)},{immediate:!0});function Ux(c,e=0){return c[c.length-(1+e)]}function Hei(c){if(c.length===0)throw new Error("Invalid tail call");return[c.slice(0,c.length-1),c[c.length-1]]}function ch(c,e,i=(n,s)=>n===s){if(c===e)return!0;if(!c||!e||c.length!==e.length)return!1;for(let n=0,s=c.length;ni(c[n],e))}function zei(c,e){let i=0,n=c-1;for(;i<=n;){const s=(i+n)/2|0,l=e(s);if(l<0)i=s+1;else if(l>0)n=s-1;else return s}return-(i+1)}function LFe(c,e,i){if(c=c|0,c>=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],s=[],l=[],d=[];for(const f of e){const g=i(f,n);g<0?s.push(f):g>0?l.push(f):d.push(f)}return c!!e)}function Jpt(c){let e=0;for(let i=0;i0}function z4(c,e=i=>i){const i=new Set;return c.filter(n=>{const s=e(n);return i.has(s)?!1:(i.add(s),!0)})}function fHe(c,e){return c.length>0?c[0]:e}function yb(c,e){let i=typeof e=="number"?c:0;typeof e=="number"?i=c:(i=0,e=c);const n=[];if(i<=e)for(let s=i;se;s--)n.push(s);return n}function N1e(c,e,i){const n=c.slice(0,e),s=c.slice(e);return n.concat(i,s)}function b8e(c,e){const i=c.indexOf(e);i>-1&&(c.splice(i,1),c.unshift(e))}function dge(c,e){const i=c.indexOf(e);i>-1&&(c.splice(i,1),c.push(e))}function PFe(c,e){for(const i of e)c.push(i)}function hHe(c){return Array.isArray(c)?c:[c]}function qei(c,e,i){const n=pbt(c,e),s=c.length,l=i.length;c.length=s+l;for(let d=s-1;d>=n;d--)c[d+l]=c[d];for(let d=0;d0}c.isGreaterThan=n;function s(l){return l===0}c.isNeitherLessOrGreaterThan=s,c.greaterThan=1,c.lessThan=-1,c.neitherLessOrGreaterThan=0})(Ite||(Ite={}));function kb(c,e){return(i,n)=>e(c(i),c(n))}function $ei(...c){return(e,i)=>{for(const n of c){const s=n(e,i);if(!Ite.isNeitherLessOrGreaterThan(s))return s}return Ite.neitherLessOrGreaterThan}}const uT=(c,e)=>c-e,Jei=(c,e)=>uT(c?1:0,e?1:0);function gbt(c){return(e,i)=>-c(e,i)}class U4{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let i=this.firstIdx;for(;i=0&&e(this.items[i]);)i--;const n=i===this.lastIdx?null:this.items.slice(i+1,this.lastIdx+1);return this.lastIdx=i,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const i=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,i}}class nL{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new nL(i=>this.iterate(n=>e(n)?i(n):!0))}map(e){return new nL(i=>this.iterate(n=>i(e(n))))}findLast(e){let i;return this.iterate(n=>(e(n)&&(i=n),!0)),i}findLastMaxBy(e){let i,n=!0;return this.iterate(s=>((n||Ite.isGreaterThan(e(s,i)))&&(n=!1,i=s),!0)),i}}nL.empty=new nL(c=>{});class x0e{constructor(e){this._indexMap=e}static createSortPermutation(e,i){const n=Array.from(e.keys()).sort((s,l)=>i(e[s],e[l]));return new x0e(n)}apply(e){return e.map((i,n)=>e[this._indexMap[n]])}inverse(){const e=this._indexMap.slice();for(let i=0;i"u"}function rL(c){return!dw(c)}function dw(c){return wb(c)||c===null}function Ac(c,e){if(!c)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function yM(c){if(dw(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function Nte(c){return typeof c=="function"}function Kei(c,e){const i=Math.min(c.length,e.length);for(let n=0;n{e[i]=n&&typeof n=="object"?o4(n):n}),e}function Xei(c){if(!c||typeof c!="object")return c;const e=[c];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const n in i)if(vbt.call(i,n)){const s=i[n];typeof s=="object"&&!Object.isFrozen(s)&&!Gei(s)&&e.push(s)}}return c}const vbt=Object.prototype.hasOwnProperty;function ybt(c,e){return AFe(c,e,new Set)}function AFe(c,e,i){if(dw(c))return c;const n=e(c);if(typeof n<"u")return n;if(Array.isArray(c)){const s=[];for(const l of c)s.push(AFe(l,e,i));return s}if(vy(c)){if(i.has(c))throw new Error("Cannot clone recursive data-structure");i.add(c);const s={};for(const l in c)vbt.call(c,l)&&(s[l]=AFe(c[l],e,i));return i.delete(c),s}return c}function L1e(c,e,i=!0){return vy(c)?(vy(e)&&Object.keys(e).forEach(n=>{n in c?i&&(vy(c[n])&&vy(e[n])?L1e(c[n],e[n],i):c[n]=e[n]):c[n]=e[n]}),c):e}function vw(c,e){if(c===e)return!0;if(c==null||e===null||e===void 0||typeof c!=typeof e||typeof c!="object"||Array.isArray(c)!==Array.isArray(e))return!1;let i,n;if(Array.isArray(c)){if(c.length!==e.length)return!1;for(i=0;ifunction(){const l=Array.prototype.slice.call(arguments,0);return e(s,l)},n={};for(const s of c)n[s]=i(s);return n}let eti=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function bbt(c,e){let i;return e.length===0?i=c:i=c.replace(/\{(\d+)\}/g,(n,s)=>{const l=s[0],d=e[l];let f=n;return typeof d=="string"?f=d:(typeof d=="number"||typeof d=="boolean"||d===void 0||d===null)&&(f=String(d)),f}),eti&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function V(c,e,...i){return bbt(e,i)}function xa(c,e,...i){const n=bbt(e,i);return{value:n,original:n}}var C8e,S8e;const qz="en";let k0e=!1,T0e=!1,Rme=!1,Cbt=!1,pHe=!1,gHe=!1,Sbt=!1,fge,Fme=qz,Qpt=qz,tti,QD;const O4=globalThis;let dy;typeof O4.vscode<"u"&&typeof O4.vscode.process<"u"?dy=O4.vscode.process:typeof process<"u"&&typeof((C8e=process==null?void 0:process.versions)===null||C8e===void 0?void 0:C8e.node)=="string"&&(dy=process);const iti=typeof((S8e=dy==null?void 0:dy.versions)===null||S8e===void 0?void 0:S8e.electron)=="string",nti=iti&&(dy==null?void 0:dy.type)==="renderer";if(typeof dy=="object"){k0e=dy.platform==="win32",T0e=dy.platform==="darwin",Rme=dy.platform==="linux",Rme&&dy.env.SNAP&&dy.env.SNAP_REVISION,dy.env.CI||dy.env.BUILD_ARTIFACTSTAGINGDIRECTORY,fge=qz,Fme=qz;const c=dy.env.VSCODE_NLS_CONFIG;if(c)try{const e=JSON.parse(c),i=e.availableLanguages["*"];fge=e.locale,Qpt=e.osLocale,Fme=i||qz,tti=e._translationsConfigFile}catch{}Cbt=!0}else typeof navigator=="object"&&!nti?(QD=navigator.userAgent,k0e=QD.indexOf("Windows")>=0,T0e=QD.indexOf("Macintosh")>=0,gHe=(QD.indexOf("Macintosh")>=0||QD.indexOf("iPad")>=0||QD.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Rme=QD.indexOf("Linux")>=0,Sbt=(QD==null?void 0:QD.indexOf("Mobi"))>=0,pHe=!0,V({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),fge=qz,Fme=fge,Qpt=navigator.language):console.error("Unable to resolve platform.");const M0=k0e,Wl=T0e,Ty=Rme,mE=Cbt,xR=pHe,rti=pHe&&typeof O4.importScripts=="function",sti=rti?O4.origin:void 0,TE=gHe,wbt=Sbt,dL=QD,oti=Fme,ati=typeof O4.postMessage=="function"&&!O4.importScripts,xbt=(()=>{if(ati){const c=[];O4.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,s=c.length;n{const n=++e;c.push({id:n,callback:i}),O4.postMessage({vscodeScheduleAsyncWork:n},"*")}}return c=>setTimeout(c)})(),FC=T0e||gHe?2:k0e?1:3;let Xpt=!0,Zpt=!1;function kbt(){if(!Zpt){Zpt=!0;const c=new Uint8Array(2);c[0]=1,c[1]=2,Xpt=new Uint16Array(c.buffer)[0]===513}return Xpt}const Tbt=!!(dL&&dL.indexOf("Chrome")>=0),lti=!!(dL&&dL.indexOf("Firefox")>=0),cti=!!(!Tbt&&dL&&dL.indexOf("Safari")>=0),uti=!!(dL&&dL.indexOf("Edg/")>=0),dti=!!(dL&&dL.indexOf("Android")>=0),mv={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var cc;(function(c){function e(he){return he&&typeof he=="object"&&typeof he[Symbol.iterator]=="function"}c.is=e;const i=Object.freeze([]);function n(){return i}c.empty=n;function*s(he){yield he}c.single=s;function l(he){return e(he)?he:s(he)}c.wrap=l;function d(he){return he||i}c.from=d;function*f(he){for(let we=he.length-1;we>=0;we--)yield he[we]}c.reverse=f;function g(he){return!he||he[Symbol.iterator]().next().done===!0}c.isEmpty=g;function y(he){return he[Symbol.iterator]().next().value}c.first=y;function w(he,we){for(const Te of he)if(we(Te))return!0;return!1}c.some=w;function x(he,we){for(const Te of he)if(we(Te))return Te}c.find=x;function*I(he,we){for(const Te of he)we(Te)&&(yield Te)}c.filter=I;function*P(he,we){let Te=0;for(const Be of he)yield we(Be,Te++)}c.map=P;function*O(...he){for(const we of he)yield*we}c.concat=O;function W(he,we,Te){let Be=Te;for(const Me of he)Be=we(Be,Me);return Be}c.reduce=W;function*X(he,we,Te=he.length){for(we<0&&(we+=he.length),Te<0?Te+=he.length:Te>he.length&&(Te=he.length);we{s||(s=!0,this._remove(n))}}shift(){if(this._first!==jp.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==jp.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==jp.Undefined&&e.next!==jp.Undefined){const i=e.prev;i.next=e.next,e.next.prev=i}else e.prev===jp.Undefined&&e.next===jp.Undefined?(this._first=jp.Undefined,this._last=jp.Undefined):e.next===jp.Undefined?(this._last=this._last.prev,this._last.next=jp.Undefined):e.prev===jp.Undefined&&(this._first=this._first.next,this._first.prev=jp.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==jp.Undefined;)yield e.element,e=e.next}}const Dbt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function fti(c=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const i of Dbt)c.indexOf(i)>=0||(e+="\\"+i);return e+="\\s]+)",new RegExp(e,"g")}const mHe=fti();function vHe(c){let e=mHe;if(c&&c instanceof RegExp)if(c.global)e=c;else{let i="g";c.ignoreCase&&(i+="i"),c.multiline&&(i+="m"),c.unicode&&(i+="u"),e=new RegExp(c.source,i)}return e.lastIndex=0,e}const Ebt=new yy;Ebt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Lte(c,e,i,n,s){if(e=vHe(e),s||(s=cc.first(Ebt)),i.length>s.maxLen){let y=c-s.maxLen/2;return y<0?y=0:n+=y,i=i.substring(y,c+s.maxLen/2),Lte(c,e,i,n,s)}const l=Date.now(),d=c-1-n;let f=-1,g=null;for(let y=1;!(Date.now()-l>=s.timeBudget);y++){const w=d-s.windowSize*y;e.lastIndex=Math.max(0,w);const x=hti(e,i,d,f);if(!x&&g||(g=x,w<=0))break;f=w}if(g){const y={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return e.lastIndex=0,y}return null}function hti(c,e,i,n){let s;for(;s=c.exec(e);){const l=s.index||0;if(l<=i&&c.lastIndex>=i)return s;if(n>0&&l>n)return null}return null}const IN=8;class Ibt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class Nbt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ef{constructor(e,i,n,s){this.id=e,this.name=i,this.defaultValue=n,this.schema=s}applyUpdate(e,i){return P1e(e,i)}compute(e,i,n){return n}}class Jee{constructor(e,i){this.newValue=e,this.didChange=i}}function P1e(c,e){if(typeof c!="object"||typeof e!="object"||!c||!e)return new Jee(e,c!==e);if(Array.isArray(c)||Array.isArray(e)){const n=Array.isArray(c)&&Array.isArray(e)&&ch(c,e);return new Jee(e,!n)}let i=!1;for(const n in e)if(e.hasOwnProperty(n)){const s=P1e(c[n],e[n]);s.didChange&&(c[n]=s.newValue,i=!0)}return new Jee(c,i)}class hne{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,i){return P1e(e,i)}validate(e){return this.defaultValue}}class Fq{constructor(e,i,n,s){this.id=e,this.name=i,this.defaultValue=n,this.schema=s}applyUpdate(e,i){return P1e(e,i)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,i,n){return n}}function oo(c,e){return typeof c>"u"?e:c==="false"?!1:!!c}class Lc extends Fq{constructor(e,i,n,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=n),super(e,i,n,s)}validate(e){return oo(e,this.defaultValue)}}function x5(c,e,i,n){if(typeof c>"u")return e;let s=parseInt(c,10);return isNaN(s)?e:(s=Math.max(i,s),s=Math.min(n,s),s|0)}class Od extends Fq{static clampedInt(e,i,n,s){return x5(e,i,n,s)}constructor(e,i,n,s,l,d=void 0){typeof d<"u"&&(d.type="integer",d.default=n,d.minimum=s,d.maximum=l),super(e,i,n,d),this.minimum=s,this.maximum=l}validate(e){return Od.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function _ti(c,e,i,n){if(typeof c>"u")return e;const s=pw.float(c,e);return pw.clamp(s,i,n)}class pw extends Fq{static clamp(e,i,n){return en?n:e}static float(e,i){if(typeof e=="number")return e;if(typeof e>"u")return i;const n=parseFloat(e);return isNaN(n)?i:n}constructor(e,i,n,s,l){typeof l<"u"&&(l.type="number",l.default=n),super(e,i,n,l),this.validationFn=s}validate(e){return this.validationFn(pw.float(e,this.defaultValue))}}class hy extends Fq{static string(e,i){return typeof e!="string"?i:e}constructor(e,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.default=n),super(e,i,n,s)}validate(e){return hy.string(e,this.defaultValue)}}function t_(c,e,i,n){return typeof c!="string"?e:n&&c in n?n[c]:i.indexOf(c)===-1?e:c}class Ih extends Fq{constructor(e,i,n,s,l=void 0){typeof l<"u"&&(l.type="string",l.enum=s,l.default=n),super(e,i,n,l),this._allowedValues=s}validate(e){return t_(e,this.defaultValue,this._allowedValues)}}class hge extends Ef{constructor(e,i,n,s,l,d,f=void 0){typeof f<"u"&&(f.type="string",f.enum=l,f.default=s),super(e,i,n,f),this._allowedValues=l,this._convert=d}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function pti(c){switch(c){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class gti extends Ef{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),V("accessibilitySupport.on","Optimize for usage with a Screen Reader."),V("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,i,n){return n===0?e.accessibilitySupport:n}}class mti extends Ef{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertSpace:oo(i.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:oo(i.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function vti(c){switch(c){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var t0;(function(c){c[c.Line=1]="Line",c[c.Block=2]="Block",c[c.Underline=3]="Underline",c[c.LineThin=4]="LineThin",c[c.BlockOutline=5]="BlockOutline",c[c.UnderlineThin=6]="UnderlineThin"})(t0||(t0={}));function yti(c){switch(c){case"line":return t0.Line;case"block":return t0.Block;case"underline":return t0.Underline;case"line-thin":return t0.LineThin;case"block-outline":return t0.BlockOutline;case"underline-thin":return t0.UnderlineThin}}class bti extends hne{constructor(){super(142)}compute(e,i,n){const s=["monaco-editor"];return i.get(39)&&s.push(i.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),i.get(74)==="default"?s.push("mouse-default"):i.get(74)==="copy"&&s.push("mouse-copy"),i.get(111)&&s.push("showUnused"),i.get(140)&&s.push("showDeprecated"),s.join(" ")}}class Cti extends Lc{constructor(){super(37,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,i,n){return n&&e.emptySelectionClipboard}}class Sti extends Ef{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Wl},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{cursorMoveOnType:oo(i.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":t_(i.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":t_(i.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:oo(i.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:oo(i.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:oo(i.loop,this.defaultValue.loop)}}}class fw extends Ef{constructor(){super(51,"fontLigatures",fw.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?fw.OFF:e==="true"?fw.ON:e:e?fw.ON:fw.OFF}}fw.OFF='"liga" off, "calt" off';fw.ON='"liga" on, "calt" on';class dE extends Ef{constructor(){super(54,"fontVariations",dE.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?dE.OFF:e==="true"?dE.TRANSLATE:e:e?dE.TRANSLATE:dE.OFF}compute(e,i,n){return e.fontInfo.fontVariationSettings}}dE.OFF="normal";dE.TRANSLATE="translate";class wti extends hne{constructor(){super(50)}compute(e,i,n){return e.fontInfo}}class xti extends Fq{constructor(){super(52,"fontSize",Tb.fontSize,{type:"number",minimum:6,maximum:100,default:Tb.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const i=pw.float(e,this.defaultValue);return i===0?Tb.fontSize:pw.clamp(i,6,100)}compute(e,i,n){return e.fontInfo.fontSize}}class zN extends Ef{constructor(){super(53,"fontWeight",Tb.fontWeight,{anyOf:[{type:"number",minimum:zN.MINIMUM_VALUE,maximum:zN.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:zN.SUGGESTION_VALUES}],default:Tb.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Od.clampedInt(e,Tb.fontWeight,zN.MINIMUM_VALUE,zN.MAXIMUM_VALUE))}}zN.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];zN.MINIMUM_VALUE=1;zN.MAXIMUM_VALUE=1e3;class kti extends Ef{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...i},"editor.gotoLocation.multipleTypeDefinitions":{description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...i},"editor.gotoLocation.multipleDeclarations":{description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...i},"editor.gotoLocation.multipleImplementations":{description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...i},"editor.gotoLocation.multipleReferences":{description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...i},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var i,n,s,l,d;if(!e||typeof e!="object")return this.defaultValue;const f=e;return{multiple:t_(f.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(i=f.multipleDefinitions)!==null&&i!==void 0?i:t_(f.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=f.multipleTypeDefinitions)!==null&&n!==void 0?n:t_(f.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(s=f.multipleDeclarations)!==null&&s!==void 0?s:t_(f.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(l=f.multipleImplementations)!==null&&l!==void 0?l:t_(f.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(d=f.multipleReferences)!==null&&d!==void 0?d:t_(f.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:hy.string(f.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:hy.string(f.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:hy.string(f.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:hy.string(f.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:hy.string(f.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Tti extends Ef{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:V("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),delay:Od.clampedInt(i.delay,this.defaultValue.delay,0,1e4),sticky:oo(i.sticky,this.defaultValue.sticky),hidingDelay:Od.clampedInt(i.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:oo(i.above,this.defaultValue.above)}}}class vU extends hne{constructor(){super(145)}compute(e,i,n){return vU.computeLayout(i,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const i=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,i-1));const l=(n+e.viewLineCount+s)/(e.pixelRatio*e.height),d=Math.floor(e.viewLineCount/l);return{typicalViewportLineCount:i,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:s,desiredRatio:l,minimapLineCount:d}}static _computeMinimapLayout(e,i){const n=e.outerWidth,s=e.outerHeight,l=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(l*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const d=i.stableMinimapLayoutInput,f=d&&e.outerHeight===d.outerHeight&&e.lineHeight===d.lineHeight&&e.typicalHalfwidthCharacterWidth===d.typicalHalfwidthCharacterWidth&&e.pixelRatio===d.pixelRatio&&e.scrollBeyondLastLine===d.scrollBeyondLastLine&&e.paddingTop===d.paddingTop&&e.paddingBottom===d.paddingBottom&&e.minimap.enabled===d.minimap.enabled&&e.minimap.side===d.minimap.side&&e.minimap.size===d.minimap.size&&e.minimap.showSlider===d.minimap.showSlider&&e.minimap.renderCharacters===d.minimap.renderCharacters&&e.minimap.maxColumn===d.minimap.maxColumn&&e.minimap.scale===d.minimap.scale&&e.verticalScrollbarWidth===d.verticalScrollbarWidth&&e.isViewportWrapping===d.isViewportWrapping,g=e.lineHeight,y=e.typicalHalfwidthCharacterWidth,w=e.scrollBeyondLastLine,x=e.minimap.renderCharacters;let I=l>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const P=e.minimap.maxColumn,O=e.minimap.size,W=e.minimap.side,X=e.verticalScrollbarWidth,Z=e.viewLineCount,ee=e.remainingWidth,he=e.isViewportWrapping,we=x?2:3;let Te=Math.floor(l*s);const Be=Te/l;let Me=!1,vt=!1,Nt=we*I,Ni=I/l,ci=1;if(O==="fill"||O==="fit"){const{typicalViewportLineCount:Xs,extraLinesBeforeFirstLine:Yt,extraLinesBeyondLastLine:na,desiredRatio:Is,minimapLineCount:zs}=vU.computeContainedMinimapLineCount({viewLineCount:Z,scrollBeyondLastLine:w,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:g,pixelRatio:l});if(Z/zs>1)Me=!0,vt=!0,I=1,Nt=1,Ni=I/l;else{let bd=!1,zg=I+1;if(O==="fit"){const s_=Math.ceil((Yt+Z+na)*Nt);he&&f&&ee<=i.stableFitRemainingWidth?(bd=!0,zg=i.stableFitMaxMinimapScale):bd=s_>Te}if(O==="fill"||bd){Me=!0;const s_=I;Nt=Math.min(g*l,Math.max(1,Math.floor(1/Is))),he&&f&&ee<=i.stableFitRemainingWidth&&(zg=i.stableFitMaxMinimapScale),I=Math.min(zg,Math.max(1,Math.floor(Nt/we))),I>s_&&(ci=Math.min(2,I/s_)),Ni=I/l/ci,Te=Math.ceil(Math.max(Xs,Yt+Z+na)*Nt),he?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=ee,i.stableFitMaxMinimapScale=I):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const Mt=Math.floor(P*Ni),pi=Math.min(Mt,Math.max(0,Math.floor((ee-X-2)*Ni/(y+Ni)))+IN);let gn=Math.floor(l*pi);const $n=gn/l;gn=Math.floor(gn*ci);const Ri=x?1:2,ao=W==="left"?0:n-pi-X;return{renderMinimap:Ri,minimapLeft:ao,minimapWidth:pi,minimapHeightIsEditorHeight:Me,minimapIsSampling:vt,minimapScale:I,minimapLineHeight:Nt,minimapCanvasInnerWidth:gn,minimapCanvasInnerHeight:Te,minimapCanvasOuterWidth:$n,minimapCanvasOuterHeight:Be}}static computeLayout(e,i){const n=i.outerWidth|0,s=i.outerHeight|0,l=i.lineHeight|0,d=i.lineNumbersDigitCount|0,f=i.typicalHalfwidthCharacterWidth,g=i.maxDigitWidth,y=i.pixelRatio,w=i.viewLineCount,x=e.get(137),I=x==="inherit"?e.get(136):x,P=I==="inherit"?e.get(132):I,O=e.get(135),W=i.isDominatedByLongLines,X=e.get(57),Z=e.get(68).renderType!==0,ee=e.get(69),he=e.get(105),we=e.get(84),Te=e.get(73),Be=e.get(103),Me=Be.verticalScrollbarSize,vt=Be.verticalHasArrows,Nt=Be.arrowSize,Ni=Be.horizontalScrollbarSize,ci=e.get(43),Mt=e.get(110)!=="never";let pi=e.get(66);ci&&Mt&&(pi+=16);let gn=0;if(Z){const ns=Math.max(d,ee);gn=Math.round(ns*g)}let $n=0;X&&($n=l*i.glyphMarginDecorationLaneCount);let Ri=0,ao=Ri+$n,Xs=ao+gn,Yt=Xs+pi;const na=n-$n-gn-pi;let Is=!1,zs=!1,Ln=-1;I==="inherit"&&W?(Is=!0,zs=!0):P==="on"||P==="bounded"?zs=!0:P==="wordWrapColumn"&&(Ln=O);const bd=vU._computeMinimapLayout({outerWidth:n,outerHeight:s,lineHeight:l,typicalHalfwidthCharacterWidth:f,pixelRatio:y,scrollBeyondLastLine:he,paddingTop:we.top,paddingBottom:we.bottom,minimap:Te,verticalScrollbarWidth:Me,viewLineCount:w,remainingWidth:na,isViewportWrapping:zs},i.memory||new Nbt);bd.renderMinimap!==0&&bd.minimapLeft===0&&(Ri+=bd.minimapWidth,ao+=bd.minimapWidth,Xs+=bd.minimapWidth,Yt+=bd.minimapWidth);const zg=na-bd.minimapWidth,s_=Math.max(1,Math.floor((zg-Me-2)/f)),Wc=vt?Nt:0;return zs&&(Ln=Math.max(1,s_),P==="bounded"&&(Ln=Math.min(Ln,O))),{width:n,height:s,glyphMarginLeft:Ri,glyphMarginWidth:$n,glyphMarginDecorationLaneCount:i.glyphMarginDecorationLaneCount,lineNumbersLeft:ao,lineNumbersWidth:gn,decorationsLeft:Xs,decorationsWidth:pi,contentLeft:Yt,contentWidth:zg,minimap:bd,viewportColumn:s_,isWordWrapMinified:Is,isViewportWrapping:zs,wrappingColumn:Ln,verticalScrollbarWidth:Me,horizontalScrollbarHeight:Ni,overviewRuler:{top:Wc,width:Me,height:s-2*Wc,right:0}}}}class Dti extends Ef{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return t_(e,"simple",["simple","advanced"])}compute(e,i,n){return i.get(2)===2?"advanced":n}}var tT;(function(c){c.Off="off",c.OnCode="onCode",c.On="on"})(tT||(tT={}));class Eti extends Ef{constructor(){const e={enabled:tT.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[tT.Off,tT.OnCode,tT.On],default:e.enabled,enumDescriptions:[V("editor.lightbulb.enabled.off","Disable the code action menu."),V("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),V("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:V("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:t_(e.enabled,this.defaultValue.enabled,[tT.Off,tT.OnCode,tT.On])}}}class Iti extends Ef{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:V("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),maxLineCount:Od.clampedInt(i.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:t_(i.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:oo(i.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Nti extends Ef{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Wl?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Wl?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return typeof i.enabled=="boolean"&&(i.enabled=i.enabled?"on":"off"),{enabled:t_(i.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Od.clampedInt(i.fontSize,this.defaultValue.fontSize,0,100),fontFamily:hy.string(i.fontFamily,this.defaultValue.fontFamily),padding:oo(i.padding,this.defaultValue.padding)}}}class Lti extends Ef{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Od.clampedInt(e,this.defaultValue,0,1e3)}compute(e,i,n){return n<0?Od.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class Pti extends pw{constructor(){super(67,"lineHeight",Tb.lineHeight,e=>pw.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height.
+ - Use 0 to automatically compute the line height from the font size.
+ - Values between 0 and 8 will be used as a multiplier with the font size.
+ - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,i,n){return e.fontInfo.lineHeight}}class Ati extends Ef{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:V("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:V("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:V("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:V("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){var i,n;if(!e||typeof e!="object")return this.defaultValue;const s=e;return{enabled:oo(s.enabled,this.defaultValue.enabled),autohide:oo(s.autohide,this.defaultValue.autohide),size:t_(s.size,this.defaultValue.size,["proportional","fill","fit"]),side:t_(s.side,this.defaultValue.side,["right","left"]),showSlider:t_(s.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:oo(s.renderCharacters,this.defaultValue.renderCharacters),scale:Od.clampedInt(s.scale,1,1,3),maxColumn:Od.clampedInt(s.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:oo(s.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:oo(s.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:pw.clamp((i=s.sectionHeaderFontSize)!==null&&i!==void 0?i:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:pw.clamp((n=s.sectionHeaderLetterSpacing)!==null&&n!==void 0?n:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function Oti(c){return c==="ctrlCmd"?Wl?"metaKey":"ctrlKey":"altKey"}class Mti extends Ef{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{top:Od.clampedInt(i.top,0,0,1e3),bottom:Od.clampedInt(i.bottom,0,0,1e3)}}}class Rti extends Ef{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),cycle:oo(i.cycle,this.defaultValue.cycle)}}}class Fti extends hne{constructor(){super(143)}compute(e,i,n){return e.pixelRatio}}class Bti extends Ef{constructor(){const e={other:"on",comments:"off",strings:"off"},i=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:i,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:i,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:i,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const y=e?"on":"off";return{comments:y,strings:y,other:y}}if(!e||typeof e!="object")return this.defaultValue;const{other:i,comments:n,strings:s}=e,l=["on","inline","off"];let d,f,g;return typeof i=="boolean"?d=i?"on":"off":d=t_(i,this.defaultValue.other,l),typeof n=="boolean"?f=n?"on":"off":f=t_(n,this.defaultValue.comments,l),typeof s=="boolean"?g=s?"on":"off":g=t_(s,this.defaultValue.strings,l),{other:d,comments:f,strings:g}}}class Wti extends Ef{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let i=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(i=4,n=e):e==="interval"?i=3:e==="relative"?i=2:e==="on"?i=1:i=0),{renderType:i,renderFn:n}}}function D0e(c){const e=c.get(98);return e==="editable"?c.get(91):e!=="on"}class Vti extends Ef{constructor(){const e=[],i={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="number")i.push({column:Od.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const s=n;i.push({column:Od.clampedInt(s.column,0,0,1e4),color:s.color})}return i.sort((n,s)=>n.column-s.column),i}return this.defaultValue}}class Hti extends Ef{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function Ypt(c,e){if(typeof c!="string")return e;switch(c){case"hidden":return 2;case"visible":return 3;default:return 1}}let jti=class extends Ef{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:V("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e,n=Od.clampedInt(i.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=Od.clampedInt(i.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Od.clampedInt(i.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Ypt(i.vertical,this.defaultValue.vertical),horizontal:Ypt(i.horizontal,this.defaultValue.horizontal),useShadows:oo(i.useShadows,this.defaultValue.useShadows),verticalHasArrows:oo(i.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:oo(i.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:oo(i.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:oo(i.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:Od.clampedInt(i.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:s,verticalSliderSize:Od.clampedInt(i.verticalSliderSize,s,0,1e3),scrollByPage:oo(i.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:oo(i.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const nw="inUntrustedWorkspace",Cb={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class zti extends Ef{constructor(){const e={nonBasicASCII:nw,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:nw,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Cb.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,nw],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Cb.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Cb.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Cb.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,nw],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Cb.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,nw],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Cb.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Cb.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,i){let n=!1;i.allowedCharacters&&e&&(vw(e.allowedCharacters,i.allowedCharacters)||(e={...e,allowedCharacters:i.allowedCharacters},n=!0)),i.allowedLocales&&e&&(vw(e.allowedLocales,i.allowedLocales)||(e={...e,allowedLocales:i.allowedLocales},n=!0));const s=super.applyUpdate(e,i);return n?new Jee(s.newValue,!0):s}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{nonBasicASCII:yU(i.nonBasicASCII,nw,[!0,!1,nw]),invisibleCharacters:oo(i.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:oo(i.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:yU(i.includeComments,nw,[!0,!1,nw]),includeStrings:yU(i.includeStrings,nw,[!0,!1,nw]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,i){if(typeof e!="object"||!e)return i;const n={};for(const[s,l]of Object.entries(e))l===!0&&(n[s]=!0);return n}}class Uti extends Ef{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),V("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:V("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),mode:t_(i.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:t_(i.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:oo(i.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:oo(i.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:hy.string(i.fontFamily,this.defaultValue.fontFamily)}}}class qti extends Ef{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:V("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[V("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),V("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),V("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:V("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:V("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:V("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),showToolbar:t_(i.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:hy.string(i.fontFamily,this.defaultValue.fontFamily),keepOnBlur:oo(i.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:oo(i.backgroundColoring,this.defaultValue.backgroundColoring)}}}class $ti extends Ef{constructor(){const e={enabled:mv.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:mv.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:oo(i.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Jti extends Ef{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{bracketPairs:yU(i.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:yU(i.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:oo(i.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:oo(i.indentation,this.defaultValue.indentation),highlightActiveIndentation:yU(i.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function yU(c,e,i){const n=i.indexOf(c);return n===-1?e:i[n]}class Gti extends Ef{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertMode:t_(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:oo(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:oo(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:oo(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:oo(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:t_(i.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:oo(i.showIcons,this.defaultValue.showIcons),showStatusBar:oo(i.showStatusBar,this.defaultValue.showStatusBar),preview:oo(i.preview,this.defaultValue.preview),previewMode:t_(i.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:oo(i.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:oo(i.showMethods,this.defaultValue.showMethods),showFunctions:oo(i.showFunctions,this.defaultValue.showFunctions),showConstructors:oo(i.showConstructors,this.defaultValue.showConstructors),showDeprecated:oo(i.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:oo(i.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:oo(i.showFields,this.defaultValue.showFields),showVariables:oo(i.showVariables,this.defaultValue.showVariables),showClasses:oo(i.showClasses,this.defaultValue.showClasses),showStructs:oo(i.showStructs,this.defaultValue.showStructs),showInterfaces:oo(i.showInterfaces,this.defaultValue.showInterfaces),showModules:oo(i.showModules,this.defaultValue.showModules),showProperties:oo(i.showProperties,this.defaultValue.showProperties),showEvents:oo(i.showEvents,this.defaultValue.showEvents),showOperators:oo(i.showOperators,this.defaultValue.showOperators),showUnits:oo(i.showUnits,this.defaultValue.showUnits),showValues:oo(i.showValues,this.defaultValue.showValues),showConstants:oo(i.showConstants,this.defaultValue.showConstants),showEnums:oo(i.showEnums,this.defaultValue.showEnums),showEnumMembers:oo(i.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:oo(i.showKeywords,this.defaultValue.showKeywords),showWords:oo(i.showWords,this.defaultValue.showWords),showColors:oo(i.showColors,this.defaultValue.showColors),showFiles:oo(i.showFiles,this.defaultValue.showFiles),showReferences:oo(i.showReferences,this.defaultValue.showReferences),showFolders:oo(i.showFolders,this.defaultValue.showFolders),showTypeParameters:oo(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:oo(i.showSnippets,this.defaultValue.showSnippets),showUsers:oo(i.showUsers,this.defaultValue.showUsers),showIssues:oo(i.showIssues,this.defaultValue.showIssues)}}}class Kti extends Ef{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:V("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:oo(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:oo(e.selectSubwords,this.defaultValue.selectSubwords)}}}class Qti extends Ef{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:V("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:V("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="string")try{Intl.Segmenter.supportedLocalesOf(n).length>0&&i.push(n)}catch{}return i}return this.defaultValue}}class Xti extends Ef{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,i,n){return i.get(2)===2?0:n}}class Zti extends hne{constructor(){super(146)}compute(e,i,n){const s=i.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}class Yti extends Ef{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:V("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[V("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),V("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),showDropSelector:t_(i.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class eii extends Ef{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:V("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[V("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),V("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:oo(i.enabled,this.defaultValue.enabled),showPasteSelector:t_(i.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const tii="Consolas, 'Courier New', monospace",iii="Menlo, Monaco, 'Courier New', monospace",nii="'Droid Sans Mono', 'monospace', monospace",Tb={fontFamily:Wl?iii:Ty?nii:tii,fontWeight:"normal",fontSize:Wl?12:14,lineHeight:0,letterSpacing:0},$z=[];function kr(c){return $z[c.id]=c,c}const RE={acceptSuggestionOnCommitCharacter:kr(new Lc(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:kr(new Ih(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:kr(new gti),accessibilityPageSize:kr(new Od(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:kr(new hy(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),ariaRequired:kr(new Lc(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:kr(new Lc(8,"screenReaderAnnounceInlineSuggestion",!0,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:kr(new Ih(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:kr(new Ih(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),V("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:V("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:kr(new Ih(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:kr(new Ih(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:kr(new Ih(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:kr(new hge(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],pti,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:kr(new Lc(13,"automaticLayout",!1)),autoSurround:kr(new Ih(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:kr(new $ti),bracketPairGuides:kr(new Jti),stickyTabStops:kr(new Lc(116,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:kr(new Lc(17,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:kr(new hy(18,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:kr(new Od(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:kr(new Lc(20,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:kr(new Ih(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[V("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),V("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),V("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:V("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:kr(new Od(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:kr(new Lc(22,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:kr(new mti),contextmenu:kr(new Lc(24,"contextmenu",!0)),copyWithSyntaxHighlighting:kr(new Lc(25,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:kr(new hge(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],vti,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:kr(new Ih(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:kr(new hge(28,"cursorStyle",t0.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],yti,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:kr(new Od(29,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:kr(new Ih(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:V("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:kr(new Od(31,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:kr(new Lc(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:kr(new Lc(33,"disableMonospaceOptimizations",!1)),domReadOnly:kr(new Lc(34,"domReadOnly",!1)),dragAndDrop:kr(new Lc(35,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:kr(new Cti),dropIntoEditor:kr(new Yti),stickyScroll:kr(new Iti),experimentalWhitespaceRendering:kr(new Ih(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:kr(new hy(39,"extraEditorClassName","")),fastScrollSensitivity:kr(new pw(40,"fastScrollSensitivity",5,c=>c<=0?5:c,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:kr(new Sti),fixedOverflowWidgets:kr(new Lc(42,"fixedOverflowWidgets",!1)),folding:kr(new Lc(43,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:kr(new Ih(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:kr(new Lc(45,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:kr(new Lc(46,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:kr(new Od(47,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:kr(new Lc(48,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:kr(new hy(49,"fontFamily",Tb.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:kr(new wti),fontLigatures2:kr(new fw),fontSize:kr(new xti),fontWeight:kr(new zN),fontVariations:kr(new dE),formatOnPaste:kr(new Lc(55,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:kr(new Lc(56,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:kr(new Lc(57,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:kr(new kti),hideCursorInOverviewRuler:kr(new Lc(59,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:kr(new Tti),inDiffEditor:kr(new Lc(61,"inDiffEditor",!1)),letterSpacing:kr(new pw(64,"letterSpacing",Tb.letterSpacing,c=>pw.clamp(c,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:kr(new Eti),lineDecorationsWidth:kr(new Lti),lineHeight:kr(new Pti),lineNumbers:kr(new Wti),lineNumbersMinChars:kr(new Od(69,"lineNumbersMinChars",5,1,300)),linkedEditing:kr(new Lc(70,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:kr(new Lc(71,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:kr(new Ih(72,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:kr(new Ati),mouseStyle:kr(new Ih(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:kr(new pw(75,"mouseWheelScrollSensitivity",1,c=>c===0?1:c,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:kr(new Lc(76,"mouseWheelZoom",!1,{markdownDescription:Wl?V("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:kr(new Lc(77,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:kr(new hge(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Oti,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:kr(new Ih(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:kr(new Od(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:kr(new Ih(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[V("occurrencesHighlight.off","Does not highlight occurrences."),V("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),V("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:V("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:kr(new Lc(82,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:kr(new Od(83,"overviewRulerLanes",3,0,3)),padding:kr(new Mti),pasteAs:kr(new eii),parameterHints:kr(new Rti),peekWidgetDefaultFocus:kr(new Ih(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:kr(new Lc(88,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:kr(new Bti),quickSuggestionsDelay:kr(new Od(90,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:kr(new Lc(91,"readOnly",!1)),readOnlyMessage:kr(new Hti),renameOnType:kr(new Lc(93,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:kr(new Lc(94,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:kr(new Ih(95,"renderFinalNewline",Ty?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:kr(new Ih(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:kr(new Lc(97,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:kr(new Ih(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:kr(new Ih(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:kr(new Od(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:kr(new Lc(101,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:kr(new Vti),scrollbar:kr(new jti),scrollBeyondLastColumn:kr(new Od(104,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:kr(new Lc(105,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:kr(new Lc(106,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:kr(new Lc(107,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Ty})),selectionHighlight:kr(new Lc(108,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:kr(new Lc(109,"selectOnLineNumbers",!0)),showFoldingControls:kr(new Ih(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:kr(new Lc(111,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:kr(new Lc(140,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:kr(new Nti),snippetSuggestions:kr(new Ih(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:kr(new Kti),smoothScrolling:kr(new Lc(114,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:kr(new Od(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:kr(new Gti),inlineSuggest:kr(new Uti),inlineEdit:kr(new qti),inlineCompletionsAccessibilityVerbose:kr(new Lc(149,"inlineCompletionsAccessibilityVerbose",!1,{description:V("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:kr(new Od(119,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:kr(new Od(120,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:kr(new Lc(121,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:kr(new Ih(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:kr(new Ih(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:kr(new Od(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:kr(new zti),unusualLineTerminators:kr(new Ih(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:kr(new Lc(127,"useShadowDOM",!0)),useTabStops:kr(new Lc(128,"useTabStops",!0,{description:V("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:kr(new Ih(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:kr(new Qti),wordSeparators:kr(new hy(131,"wordSeparators",Dbt,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:kr(new Ih(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:kr(new hy(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:kr(new hy(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:kr(new Od(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:kr(new Ih(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:kr(new Ih(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:kr(new bti),defaultColorDecorators:kr(new Lc(147,"defaultColorDecorators",!1,{markdownDescription:V("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:kr(new Fti),tabFocusMode:kr(new Lc(144,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:kr(new vU),wrappingInfo:kr(new Zti),wrappingIndent:kr(new Xti),wrappingStrategy:kr(new Dti)};class rii{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?qU.isErrorNoTelemetry(e)?new qU(e.message+`
+
+`+e.stack):new Error(e.message+`
+
+`+e.stack):e},0)}}emit(e){this.listeners.forEach(i=>{i(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Lbt=new rii;function Ba(c){pT(c)||Lbt.onUnexpectedError(c)}function r_(c){pT(c)||Lbt.onUnexpectedExternalError(c)}function egt(c){if(c instanceof Error){const{name:e,message:i}=c,n=c.stacktrace||c.stack;return{$isError:!0,name:e,message:i,stack:n,noTelemetry:qU.isErrorNoTelemetry(c)}}return c}const E0e="Canceled";function pT(c){return c instanceof DE?!0:c instanceof Error&&c.name===E0e&&c.message===E0e}class DE extends Error{constructor(){super(E0e),this.name=this.message}}function sii(){const c=new Error(E0e);return c.name=c.message,c}function nk(c){return c?new Error(`Illegal argument: ${c}`):new Error("Illegal argument")}function yHe(c){return c?new Error(`Illegal state: ${c}`):new Error("Illegal state")}class oii extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class qU extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof qU)return e;const i=new qU;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Yu extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Yu.prototype)}}function ZM(c,e){const i=this;let n=!1,s;return function(){return n||(n=!0,s=c.apply(i,arguments)),s}}function A1e(c){return typeof c=="object"&&c!==null&&typeof c.dispose=="function"&&c.dispose.length===0}function yd(c){if(cc.is(c)){const e=[];for(const i of c)if(i)try{i.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function dT(...c){return go(()=>yd(c))}function go(c){return{dispose:ZM(()=>{c()})}}class On{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{yd(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?On.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(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}On.DISABLE_DISPOSED_WARNING=!1;class Ii{constructor(){this._store=new On,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}Ii.None=Object.freeze({dispose(){}});class jg{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var i;this._isDisposed||e===this._value||((i=this._value)===null||i===void 0||i.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class aii{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class lii{constructor(e){this.object=e}dispose(){}}class bHe{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{yd(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,i,n=!1){var s;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(s=this._store.get(e))===null||s===void 0||s.dispose(),this._store.set(e,i)}deleteAndDispose(e){var i;(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const cii=globalThis.performance&&typeof globalThis.performance.now=="function";class o0{static create(e){return new o0(e)}constructor(e){this._now=cii&&e===!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 Mr;(function(c){c.None=()=>Ii.None;function e(ci,Mt){return x(ci,()=>{},0,void 0,!0,void 0,Mt)}c.defer=e;function i(ci){return(Mt,pi=null,gn)=>{let $n=!1,Ri;return Ri=ci(ao=>{if(!$n)return Ri?Ri.dispose():$n=!0,Mt.call(pi,ao)},null,gn),$n&&Ri.dispose(),Ri}}c.once=i;function n(ci,Mt,pi){return y((gn,$n=null,Ri)=>ci(ao=>gn.call($n,Mt(ao)),null,Ri),pi)}c.map=n;function s(ci,Mt,pi){return y((gn,$n=null,Ri)=>ci(ao=>{Mt(ao),gn.call($n,ao)},null,Ri),pi)}c.forEach=s;function l(ci,Mt,pi){return y((gn,$n=null,Ri)=>ci(ao=>Mt(ao)&&gn.call($n,ao),null,Ri),pi)}c.filter=l;function d(ci){return ci}c.signal=d;function f(...ci){return(Mt,pi=null,gn)=>{const $n=dT(...ci.map(Ri=>Ri(ao=>Mt.call(pi,ao))));return w($n,gn)}}c.any=f;function g(ci,Mt,pi,gn){let $n=pi;return n(ci,Ri=>($n=Mt($n,Ri),$n),gn)}c.reduce=g;function y(ci,Mt){let pi;const gn={onWillAddFirstListener(){pi=ci($n.fire,$n)},onDidRemoveLastListener(){pi==null||pi.dispose()}},$n=new ui(gn);return Mt==null||Mt.add($n),$n.event}function w(ci,Mt){return Mt instanceof Array?Mt.push(ci):Mt&&Mt.add(ci),ci}function x(ci,Mt,pi=100,gn=!1,$n=!1,Ri,ao){let Xs,Yt,na,Is=0,zs;const Ln={leakWarningThreshold:Ri,onWillAddFirstListener(){Xs=ci(zg=>{Is++,Yt=Mt(Yt,zg),gn&&!na&&(bd.fire(Yt),Yt=void 0),zs=()=>{const s_=Yt;Yt=void 0,na=void 0,(!gn||Is>1)&&bd.fire(s_),Is=0},typeof pi=="number"?(clearTimeout(na),na=setTimeout(zs,pi)):na===void 0&&(na=0,queueMicrotask(zs))})},onWillRemoveListener(){$n&&Is>0&&(zs==null||zs())},onDidRemoveLastListener(){zs=void 0,Xs.dispose()}},bd=new ui(Ln);return ao==null||ao.add(bd),bd.event}c.debounce=x;function I(ci,Mt=0,pi){return c.debounce(ci,(gn,$n)=>gn?(gn.push($n),gn):[$n],Mt,void 0,!0,void 0,pi)}c.accumulate=I;function P(ci,Mt=(gn,$n)=>gn===$n,pi){let gn=!0,$n;return l(ci,Ri=>{const ao=gn||!Mt(Ri,$n);return gn=!1,$n=Ri,ao},pi)}c.latch=P;function O(ci,Mt,pi){return[c.filter(ci,Mt,pi),c.filter(ci,gn=>!Mt(gn),pi)]}c.split=O;function W(ci,Mt=!1,pi=[],gn){let $n=pi.slice(),Ri=ci(Yt=>{$n?$n.push(Yt):Xs.fire(Yt)});gn&&gn.add(Ri);const ao=()=>{$n==null||$n.forEach(Yt=>Xs.fire(Yt)),$n=null},Xs=new ui({onWillAddFirstListener(){Ri||(Ri=ci(Yt=>Xs.fire(Yt)),gn&&gn.add(Ri))},onDidAddFirstListener(){$n&&(Mt?setTimeout(ao):ao())},onDidRemoveLastListener(){Ri&&Ri.dispose(),Ri=null}});return gn&&gn.add(Xs),Xs.event}c.buffer=W;function X(ci,Mt){return(gn,$n,Ri)=>{const ao=Mt(new ee);return ci(function(Xs){const Yt=ao.evaluate(Xs);Yt!==Z&&gn.call($n,Yt)},void 0,Ri)}}c.chain=X;const Z=Symbol("HaltChainable");class ee{constructor(){this.steps=[]}map(Mt){return this.steps.push(Mt),this}forEach(Mt){return this.steps.push(pi=>(Mt(pi),pi)),this}filter(Mt){return this.steps.push(pi=>Mt(pi)?pi:Z),this}reduce(Mt,pi){let gn=pi;return this.steps.push($n=>(gn=Mt(gn,$n),gn)),this}latch(Mt=(pi,gn)=>pi===gn){let pi=!0,gn;return this.steps.push($n=>{const Ri=pi||!Mt($n,gn);return pi=!1,gn=$n,Ri?$n:Z}),this}evaluate(Mt){for(const pi of this.steps)if(Mt=pi(Mt),Mt===Z)break;return Mt}}function he(ci,Mt,pi=gn=>gn){const gn=(...Xs)=>ao.fire(pi(...Xs)),$n=()=>ci.on(Mt,gn),Ri=()=>ci.removeListener(Mt,gn),ao=new ui({onWillAddFirstListener:$n,onDidRemoveLastListener:Ri});return ao.event}c.fromNodeEventEmitter=he;function we(ci,Mt,pi=gn=>gn){const gn=(...Xs)=>ao.fire(pi(...Xs)),$n=()=>ci.addEventListener(Mt,gn),Ri=()=>ci.removeEventListener(Mt,gn),ao=new ui({onWillAddFirstListener:$n,onDidRemoveLastListener:Ri});return ao.event}c.fromDOMEventEmitter=we;function Te(ci){return new Promise(Mt=>i(ci)(Mt))}c.toPromise=Te;function Be(ci){const Mt=new ui;return ci.then(pi=>{Mt.fire(pi)},()=>{Mt.fire(void 0)}).finally(()=>{Mt.dispose()}),Mt.event}c.fromPromise=Be;function Me(ci,Mt,pi){return Mt(pi),ci(gn=>Mt(gn))}c.runAndSubscribe=Me;class vt{constructor(Mt,pi){this._observable=Mt,this._counter=0,this._hasChanged=!1;const gn={onWillAddFirstListener:()=>{Mt.addObserver(this)},onDidRemoveLastListener:()=>{Mt.removeObserver(this)}};this.emitter=new ui(gn),pi&&pi.add(this.emitter)}beginUpdate(Mt){this._counter++}handlePossibleChange(Mt){}handleChange(Mt,pi){this._hasChanged=!0}endUpdate(Mt){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Nt(ci,Mt){return new vt(ci,Mt).emitter.event}c.fromObservable=Nt;function Ni(ci){return(Mt,pi,gn)=>{let $n=0,Ri=!1;const ao={beginUpdate(){$n++},endUpdate(){$n--,$n===0&&(ci.reportChanges(),Ri&&(Ri=!1,Mt.call(pi)))},handlePossibleChange(){},handleChange(){Ri=!0}};ci.addObserver(ao),ci.reportChanges();const Xs={dispose(){ci.removeObserver(ao)}};return gn instanceof On?gn.add(Xs):Array.isArray(gn)&&gn.push(Xs),Xs}}c.fromObservableLight=Ni})(Mr||(Mr={}));class $U{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${$U._idPool++}`,$U.all.add(this)}start(e){this._stopWatch=new o0,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}$U.all=new Set;$U._idPool=0;let uii=-1;class dii{constructor(e,i,n=Math.random().toString(18).slice(2,5)){this._errorHandler=e,this.threshold=i,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,i){const n=this.threshold;if(n<=0||i{const l=this._stacks.get(e.value)||0;this._stacks.set(e.value,l-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,i=0;for(const[n,s]of this._stacks)(!e||i{var l,d,f,g,y,w,x;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const W=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(W);const X=(l=this._leakageMon.getMostFrequentStack())!==null&&l!==void 0?l:["UNKNOWN stack",-1],Z=new hii(`${W}. HINT: Stack shows most frequent listener (${X[1]}-times)`,X[0]);return(((d=this._options)===null||d===void 0?void 0:d.onListenerError)||Ba)(Z),Ii.None}if(this._disposed)return Ii.None;n&&(i=i.bind(n));const I=new w8e(i);let P;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(I.stack=CHe.create(),P=this._leakageMon.check(I.stack,this._size+1)),this._listeners?this._listeners instanceof w8e?((x=this._deliveryQueue)!==null&&x!==void 0||(this._deliveryQueue=new Pbt),this._listeners=[this._listeners,I]):this._listeners.push(I):((g=(f=this._options)===null||f===void 0?void 0:f.onWillAddFirstListener)===null||g===void 0||g.call(f,this),this._listeners=I,(w=(y=this._options)===null||y===void 0?void 0:y.onDidAddFirstListener)===null||w===void 0||w.call(y,this)),this._size++;const O=go(()=>{P==null||P(),this._removeListener(I)});return s instanceof On?s.add(O):Array.isArray(s)&&s.push(O),O}),this._event}_removeListener(e){var i,n,s,l;if((n=(i=this._options)===null||i===void 0?void 0:i.onWillRemoveListener)===null||n===void 0||n.call(i,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(s=this._options)===null||s===void 0?void 0:s.onDidRemoveLastListener)===null||l===void 0||l.call(s,this),this._size=0;return}const d=this._listeners,f=d.indexOf(e);if(f===-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--,d[f]=void 0;const g=this._deliveryQueue.current===this;if(this._size*_ii<=d.length){let y=0;for(let w=0;w0}};const pii=()=>new Pbt;class Pbt{constructor(){this.i=-1,this.end=0}enqueue(e,i,n){this.i=0,this.end=n,this.current=e,this.value=i}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class _9 extends ui{constructor(e){super(e),this._isPaused=0,this._eventQueue=new yy,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class Abt extends _9{constructor(e){var i;super(e),this._delay=(i=e.delay)!==null&&i!==void 0?i:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class gii extends ui{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}}class mii{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new ui({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const i={event:e,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),go(ZM(()=>{this.hasListeners&&this.unhook(i);const s=this.events.indexOf(i);this.events.splice(s,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(i=>this.emitter.fire(i))}unhook(e){var i;(i=e.listener)===null||i===void 0||i.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const i of this.events)(e=i.listener)===null||e===void 0||e.dispose();this.events=[]}}class O1e{constructor(){this.data=[]}wrapEvent(e,i,n){return(s,l,d)=>e(f=>{var g;const y=this.data[this.data.length-1];if(!i){y?y.buffers.push(()=>s.call(l,f)):s.call(l,f);return}const w=y;if(!w){s.call(l,i(n,f));return}(g=w.items)!==null&&g!==void 0||(w.items=[]),w.items.push(f),w.buffers.length===0&&y.buffers.push(()=>{var x;(x=w.reducedResult)!==null&&x!==void 0||(w.reducedResult=n?w.items.reduce(i,n):w.items.reduce(i)),s.call(l,w.reducedResult)})},void 0,d)}bufferEvents(e){const i={buffers:new Array};this.data.push(i);const n=e();return this.data.pop(),i.buffers.forEach(s=>s()),n}}class tgt{constructor(){this.listening=!1,this.inputEvent=Mr.None,this.inputEventListener=Ii.None,this.emitter=new ui({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const Obt=Object.freeze(function(c,e){const i=setTimeout(c.bind(e),0);return{dispose(){clearTimeout(i)}}});var Gl;(function(c){function e(i){return i===c.None||i===c.Cancelled||i instanceof Bme?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}c.isCancellationToken=e,c.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Mr.None}),c.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Obt})})(Gl||(Gl={}));class Bme{constructor(){this._isCancelled=!1,this._emitter=null}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?Obt:(this._emitter||(this._emitter=new ui),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let uh=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Bme),this._token}cancel(){this._token?this._token instanceof Bme&&this._token.cancel():this._token=Gl.Cancelled}dispose(e=!1){var i;e&&this.cancel(),(i=this._parentListener)===null||i===void 0||i.dispose(),this._token?this._token instanceof Bme&&this._token.dispose():this._token=Gl.None}};function igt(c){const e=new uh;return c.add({dispose(){e.cancel()}}),e.token}class SHe{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,i){this._keyCodeToStr[e]=i,this._strToKeyCode[i.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Wme=new SHe,MFe=new SHe,RFe=new SHe,Mbt=new Array(230),vii=Object.create(null),yii=Object.create(null),wHe=[];for(let c=0;c<=193;c++)wHe[c]=-1;(function(){const c="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",c,c],[1,1,"Hyper",0,c,0,c,c,c],[1,2,"Super",0,c,0,c,c,c],[1,3,"Fn",0,c,0,c,c,c],[1,4,"FnLock",0,c,0,c,c,c],[1,5,"Suspend",0,c,0,c,c,c],[1,6,"Resume",0,c,0,c,c,c],[1,7,"Turbo",0,c,0,c,c,c],[1,8,"Sleep",0,c,0,"VK_SLEEP",c,c],[1,9,"WakeUp",0,c,0,c,c,c],[0,10,"KeyA",31,"A",65,"VK_A",c,c],[0,11,"KeyB",32,"B",66,"VK_B",c,c],[0,12,"KeyC",33,"C",67,"VK_C",c,c],[0,13,"KeyD",34,"D",68,"VK_D",c,c],[0,14,"KeyE",35,"E",69,"VK_E",c,c],[0,15,"KeyF",36,"F",70,"VK_F",c,c],[0,16,"KeyG",37,"G",71,"VK_G",c,c],[0,17,"KeyH",38,"H",72,"VK_H",c,c],[0,18,"KeyI",39,"I",73,"VK_I",c,c],[0,19,"KeyJ",40,"J",74,"VK_J",c,c],[0,20,"KeyK",41,"K",75,"VK_K",c,c],[0,21,"KeyL",42,"L",76,"VK_L",c,c],[0,22,"KeyM",43,"M",77,"VK_M",c,c],[0,23,"KeyN",44,"N",78,"VK_N",c,c],[0,24,"KeyO",45,"O",79,"VK_O",c,c],[0,25,"KeyP",46,"P",80,"VK_P",c,c],[0,26,"KeyQ",47,"Q",81,"VK_Q",c,c],[0,27,"KeyR",48,"R",82,"VK_R",c,c],[0,28,"KeyS",49,"S",83,"VK_S",c,c],[0,29,"KeyT",50,"T",84,"VK_T",c,c],[0,30,"KeyU",51,"U",85,"VK_U",c,c],[0,31,"KeyV",52,"V",86,"VK_V",c,c],[0,32,"KeyW",53,"W",87,"VK_W",c,c],[0,33,"KeyX",54,"X",88,"VK_X",c,c],[0,34,"KeyY",55,"Y",89,"VK_Y",c,c],[0,35,"KeyZ",56,"Z",90,"VK_Z",c,c],[0,36,"Digit1",22,"1",49,"VK_1",c,c],[0,37,"Digit2",23,"2",50,"VK_2",c,c],[0,38,"Digit3",24,"3",51,"VK_3",c,c],[0,39,"Digit4",25,"4",52,"VK_4",c,c],[0,40,"Digit5",26,"5",53,"VK_5",c,c],[0,41,"Digit6",27,"6",54,"VK_6",c,c],[0,42,"Digit7",28,"7",55,"VK_7",c,c],[0,43,"Digit8",29,"8",56,"VK_8",c,c],[0,44,"Digit9",30,"9",57,"VK_9",c,c],[0,45,"Digit0",21,"0",48,"VK_0",c,c],[1,46,"Enter",3,"Enter",13,"VK_RETURN",c,c],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",c,c],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",c,c],[1,49,"Tab",2,"Tab",9,"VK_TAB",c,c],[1,50,"Space",10,"Space",32,"VK_SPACE",c,c],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,c,0,c,c,c],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",c,c],[1,64,"F1",59,"F1",112,"VK_F1",c,c],[1,65,"F2",60,"F2",113,"VK_F2",c,c],[1,66,"F3",61,"F3",114,"VK_F3",c,c],[1,67,"F4",62,"F4",115,"VK_F4",c,c],[1,68,"F5",63,"F5",116,"VK_F5",c,c],[1,69,"F6",64,"F6",117,"VK_F6",c,c],[1,70,"F7",65,"F7",118,"VK_F7",c,c],[1,71,"F8",66,"F8",119,"VK_F8",c,c],[1,72,"F9",67,"F9",120,"VK_F9",c,c],[1,73,"F10",68,"F10",121,"VK_F10",c,c],[1,74,"F11",69,"F11",122,"VK_F11",c,c],[1,75,"F12",70,"F12",123,"VK_F12",c,c],[1,76,"PrintScreen",0,c,0,c,c,c],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",c,c],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",c,c],[1,79,"Insert",19,"Insert",45,"VK_INSERT",c,c],[1,80,"Home",14,"Home",36,"VK_HOME",c,c],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",c,c],[1,82,"Delete",20,"Delete",46,"VK_DELETE",c,c],[1,83,"End",13,"End",35,"VK_END",c,c],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",c,c],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",c],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",c],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",c],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",c],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",c,c],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",c,c],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",c,c],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",c,c],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",c,c],[1,94,"NumpadEnter",3,c,0,c,c,c],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",c,c],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",c,c],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",c,c],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",c,c],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",c,c],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",c,c],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",c,c],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",c,c],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",c,c],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",c,c],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",c,c],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",c,c],[1,107,"ContextMenu",58,"ContextMenu",93,c,c,c],[1,108,"Power",0,c,0,c,c,c],[1,109,"NumpadEqual",0,c,0,c,c,c],[1,110,"F13",71,"F13",124,"VK_F13",c,c],[1,111,"F14",72,"F14",125,"VK_F14",c,c],[1,112,"F15",73,"F15",126,"VK_F15",c,c],[1,113,"F16",74,"F16",127,"VK_F16",c,c],[1,114,"F17",75,"F17",128,"VK_F17",c,c],[1,115,"F18",76,"F18",129,"VK_F18",c,c],[1,116,"F19",77,"F19",130,"VK_F19",c,c],[1,117,"F20",78,"F20",131,"VK_F20",c,c],[1,118,"F21",79,"F21",132,"VK_F21",c,c],[1,119,"F22",80,"F22",133,"VK_F22",c,c],[1,120,"F23",81,"F23",134,"VK_F23",c,c],[1,121,"F24",82,"F24",135,"VK_F24",c,c],[1,122,"Open",0,c,0,c,c,c],[1,123,"Help",0,c,0,c,c,c],[1,124,"Select",0,c,0,c,c,c],[1,125,"Again",0,c,0,c,c,c],[1,126,"Undo",0,c,0,c,c,c],[1,127,"Cut",0,c,0,c,c,c],[1,128,"Copy",0,c,0,c,c,c],[1,129,"Paste",0,c,0,c,c,c],[1,130,"Find",0,c,0,c,c,c],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",c,c],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",c,c],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",c,c],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",c,c],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",c,c],[1,136,"KanaMode",0,c,0,c,c,c],[0,137,"IntlYen",0,c,0,c,c,c],[1,138,"Convert",0,c,0,c,c,c],[1,139,"NonConvert",0,c,0,c,c,c],[1,140,"Lang1",0,c,0,c,c,c],[1,141,"Lang2",0,c,0,c,c,c],[1,142,"Lang3",0,c,0,c,c,c],[1,143,"Lang4",0,c,0,c,c,c],[1,144,"Lang5",0,c,0,c,c,c],[1,145,"Abort",0,c,0,c,c,c],[1,146,"Props",0,c,0,c,c,c],[1,147,"NumpadParenLeft",0,c,0,c,c,c],[1,148,"NumpadParenRight",0,c,0,c,c,c],[1,149,"NumpadBackspace",0,c,0,c,c,c],[1,150,"NumpadMemoryStore",0,c,0,c,c,c],[1,151,"NumpadMemoryRecall",0,c,0,c,c,c],[1,152,"NumpadMemoryClear",0,c,0,c,c,c],[1,153,"NumpadMemoryAdd",0,c,0,c,c,c],[1,154,"NumpadMemorySubtract",0,c,0,c,c,c],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",c,c],[1,156,"NumpadClearEntry",0,c,0,c,c,c],[1,0,c,5,"Ctrl",17,"VK_CONTROL",c,c],[1,0,c,4,"Shift",16,"VK_SHIFT",c,c],[1,0,c,6,"Alt",18,"VK_MENU",c,c],[1,0,c,57,"Meta",91,"VK_COMMAND",c,c],[1,157,"ControlLeft",5,c,0,"VK_LCONTROL",c,c],[1,158,"ShiftLeft",4,c,0,"VK_LSHIFT",c,c],[1,159,"AltLeft",6,c,0,"VK_LMENU",c,c],[1,160,"MetaLeft",57,c,0,"VK_LWIN",c,c],[1,161,"ControlRight",5,c,0,"VK_RCONTROL",c,c],[1,162,"ShiftRight",4,c,0,"VK_RSHIFT",c,c],[1,163,"AltRight",6,c,0,"VK_RMENU",c,c],[1,164,"MetaRight",57,c,0,"VK_RWIN",c,c],[1,165,"BrightnessUp",0,c,0,c,c,c],[1,166,"BrightnessDown",0,c,0,c,c,c],[1,167,"MediaPlay",0,c,0,c,c,c],[1,168,"MediaRecord",0,c,0,c,c,c],[1,169,"MediaFastForward",0,c,0,c,c,c],[1,170,"MediaRewind",0,c,0,c,c,c],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",c,c],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",c,c],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",c,c],[1,174,"Eject",0,c,0,c,c,c],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",c,c],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",c,c],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",c,c],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",c,c],[1,179,"LaunchApp1",0,c,0,"VK_MEDIA_LAUNCH_APP1",c,c],[1,180,"SelectTask",0,c,0,c,c,c],[1,181,"LaunchScreenSaver",0,c,0,c,c,c],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",c,c],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",c,c],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",c,c],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",c,c],[1,186,"BrowserStop",0,c,0,"VK_BROWSER_STOP",c,c],[1,187,"BrowserRefresh",0,c,0,"VK_BROWSER_REFRESH",c,c],[1,188,"BrowserFavorites",0,c,0,"VK_BROWSER_FAVORITES",c,c],[1,189,"ZoomToggle",0,c,0,c,c,c],[1,190,"MailReply",0,c,0,c,c,c],[1,191,"MailForward",0,c,0,c,c,c],[1,192,"MailSend",0,c,0,c,c,c],[1,0,c,114,"KeyInComposition",229,c,c,c],[1,0,c,116,"ABNT_C2",194,"VK_ABNT_C2",c,c],[1,0,c,96,"OEM_8",223,"VK_OEM_8",c,c],[1,0,c,0,c,0,"VK_KANA",c,c],[1,0,c,0,c,0,"VK_HANGUL",c,c],[1,0,c,0,c,0,"VK_JUNJA",c,c],[1,0,c,0,c,0,"VK_FINAL",c,c],[1,0,c,0,c,0,"VK_HANJA",c,c],[1,0,c,0,c,0,"VK_KANJI",c,c],[1,0,c,0,c,0,"VK_CONVERT",c,c],[1,0,c,0,c,0,"VK_NONCONVERT",c,c],[1,0,c,0,c,0,"VK_ACCEPT",c,c],[1,0,c,0,c,0,"VK_MODECHANGE",c,c],[1,0,c,0,c,0,"VK_SELECT",c,c],[1,0,c,0,c,0,"VK_PRINT",c,c],[1,0,c,0,c,0,"VK_EXECUTE",c,c],[1,0,c,0,c,0,"VK_SNAPSHOT",c,c],[1,0,c,0,c,0,"VK_HELP",c,c],[1,0,c,0,c,0,"VK_APPS",c,c],[1,0,c,0,c,0,"VK_PROCESSKEY",c,c],[1,0,c,0,c,0,"VK_PACKET",c,c],[1,0,c,0,c,0,"VK_DBE_SBCSCHAR",c,c],[1,0,c,0,c,0,"VK_DBE_DBCSCHAR",c,c],[1,0,c,0,c,0,"VK_ATTN",c,c],[1,0,c,0,c,0,"VK_CRSEL",c,c],[1,0,c,0,c,0,"VK_EXSEL",c,c],[1,0,c,0,c,0,"VK_EREOF",c,c],[1,0,c,0,c,0,"VK_PLAY",c,c],[1,0,c,0,c,0,"VK_ZOOM",c,c],[1,0,c,0,c,0,"VK_NONAME",c,c],[1,0,c,0,c,0,"VK_PA1",c,c],[1,0,c,0,c,0,"VK_OEM_CLEAR",c,c]],i=[],n=[];for(const s of e){const[l,d,f,g,y,w,x,I,P]=s;if(n[d]||(n[d]=!0,vii[f]=d,yii[f.toLowerCase()]=d,l&&(wHe[d]=g)),!i[g]){if(i[g]=!0,!y)throw new Error(`String representation missing for key code ${g} around scan code ${f}`);Wme.define(g,y),MFe.define(g,I||y),RFe.define(g,P||I||y)}w&&(Mbt[w]=g)}})();var d4;(function(c){function e(f){return Wme.keyCodeToStr(f)}c.toString=e;function i(f){return Wme.strToKeyCode(f)}c.fromString=i;function n(f){return MFe.keyCodeToStr(f)}c.toUserSettingsUS=n;function s(f){return RFe.keyCodeToStr(f)}c.toUserSettingsGeneral=s;function l(f){return MFe.strToKeyCode(f)||RFe.strToKeyCode(f)}c.fromUserSettings=l;function d(f){if(f>=98&&f<=113)return null;switch(f){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Wme.keyCodeToStr(f)}c.toElectronAccelerator=d})(d4||(d4={}));function qp(c,e){const i=(e&65535)<<16>>>0;return(c|i)>>>0}var ngt={};let bU;const x8e=globalThis.vscode;if(typeof x8e<"u"&&typeof x8e.process<"u"){const c=x8e.process;bU={get platform(){return c.platform},get arch(){return c.arch},get env(){return c.env},cwd(){return c.cwd()}}}else typeof process<"u"?bU={get platform(){return process.platform},get arch(){return process.arch},get env(){return ngt},cwd(){return ngt.VSCODE_CWD||process.cwd()}}:bU={get platform(){return M0?"win32":Wl?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const I0e=bU.cwd,FFe=bU.env,bii=bU.platform,Cii=65,Sii=97,wii=90,xii=122,FM=46,b1=47,iw=92,GO=58,kii=63;class Rbt extends Error{constructor(e,i,n){let s;typeof i=="string"&&i.indexOf("not ")===0?(s="must not be",i=i.replace(/^not /,"")):s="must be";const l=e.indexOf(".")!==-1?"property":"argument";let d=`The "${e}" ${l} ${s} of type ${i}`;d+=`. Received type ${typeof n}`,super(d),this.code="ERR_INVALID_ARG_TYPE"}}function Tii(c,e){if(c===null||typeof c!="object")throw new Rbt(e,"Object",c)}function mm(c,e){if(typeof c!="string")throw new Rbt(e,"string",c)}const kR=bii==="win32";function ju(c){return c===b1||c===iw}function BFe(c){return c===b1}function KO(c){return c>=Cii&&c<=wii||c>=Sii&&c<=xii}function N0e(c,e,i,n){let s="",l=0,d=-1,f=0,g=0;for(let y=0;y<=c.length;++y){if(y2){const w=s.lastIndexOf(i);w===-1?(s="",l=0):(s=s.slice(0,w),l=s.length-1-s.lastIndexOf(i)),d=y,f=0;continue}else if(s.length!==0){s="",l=0,d=y,f=0;continue}}e&&(s+=s.length>0?`${i}..`:"..",l=2)}else s.length>0?s+=`${i}${c.slice(d+1,y)}`:s=c.slice(d+1,y),l=y-d-1;d=y,f=0}else g===FM&&f!==-1?++f:f=-1}return s}function Fbt(c,e){Tii(e,"pathObject");const i=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return i?i===e.root?`${i}${n}`:`${i}${c}${n}`:n}const BC={resolve(...c){let e="",i="",n=!1;for(let s=c.length-1;s>=-1;s--){let l;if(s>=0){if(l=c[s],mm(l,"path"),l.length===0)continue}else e.length===0?l=I0e():(l=FFe[`=${e}`]||I0e(),(l===void 0||l.slice(0,2).toLowerCase()!==e.toLowerCase()&&l.charCodeAt(2)===iw)&&(l=`${e}\\`));const d=l.length;let f=0,g="",y=!1;const w=l.charCodeAt(0);if(d===1)ju(w)&&(f=1,y=!0);else if(ju(w))if(y=!0,ju(l.charCodeAt(1))){let x=2,I=x;for(;x2&&ju(l.charCodeAt(2))&&(y=!0,f=3));if(g.length>0)if(e.length>0){if(g.toLowerCase()!==e.toLowerCase())continue}else e=g;if(n){if(e.length>0)break}else if(i=`${l.slice(f)}\\${i}`,n=y,y&&e.length>0)break}return i=N0e(i,!n,"\\",ju),n?`${e}\\${i}`:`${e}${i}`||"."},normalize(c){mm(c,"path");const e=c.length;if(e===0)return".";let i=0,n,s=!1;const l=c.charCodeAt(0);if(e===1)return BFe(l)?"\\":c;if(ju(l))if(s=!0,ju(c.charCodeAt(1))){let f=2,g=f;for(;f2&&ju(c.charCodeAt(2))&&(s=!0,i=3));let d=i0&&ju(c.charCodeAt(e-1))&&(d+="\\"),n===void 0?s?`\\${d}`:d:s?`${n}\\${d}`:`${n}${d}`},isAbsolute(c){mm(c,"path");const e=c.length;if(e===0)return!1;const i=c.charCodeAt(0);return ju(i)||e>2&&KO(i)&&c.charCodeAt(1)===GO&&ju(c.charCodeAt(2))},join(...c){if(c.length===0)return".";let e,i;for(let l=0;l0&&(e===void 0?e=i=d:e+=`\\${d}`)}if(e===void 0)return".";let n=!0,s=0;if(typeof i=="string"&&ju(i.charCodeAt(0))){++s;const l=i.length;l>1&&ju(i.charCodeAt(1))&&(++s,l>2&&(ju(i.charCodeAt(2))?++s:n=!1))}if(n){for(;s=2&&(e=`\\${e.slice(s)}`)}return BC.normalize(e)},relative(c,e){if(mm(c,"from"),mm(e,"to"),c===e)return"";const i=BC.resolve(c),n=BC.resolve(e);if(i===n||(c=i.toLowerCase(),e=n.toLowerCase(),c===e))return"";let s=0;for(;ss&&c.charCodeAt(l-1)===iw;)l--;const d=l-s;let f=0;for(;ff&&e.charCodeAt(g-1)===iw;)g--;const y=g-f,w=dw){if(e.charCodeAt(f+I)===iw)return n.slice(f+I+1);if(I===2)return n.slice(f+I)}d>w&&(c.charCodeAt(s+I)===iw?x=I:I===2&&(x=3)),x===-1&&(x=0)}let P="";for(I=s+x+1;I<=l;++I)(I===l||c.charCodeAt(I)===iw)&&(P+=P.length===0?"..":"\\..");return f+=x,P.length>0?`${P}${n.slice(f,g)}`:(n.charCodeAt(f)===iw&&++f,n.slice(f,g))},toNamespacedPath(c){if(typeof c!="string"||c.length===0)return c;const e=BC.resolve(c);if(e.length<=2)return c;if(e.charCodeAt(0)===iw){if(e.charCodeAt(1)===iw){const i=e.charCodeAt(2);if(i!==kii&&i!==FM)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(KO(e.charCodeAt(0))&&e.charCodeAt(1)===GO&&e.charCodeAt(2)===iw)return`\\\\?\\${e}`;return c},dirname(c){mm(c,"path");const e=c.length;if(e===0)return".";let i=-1,n=0;const s=c.charCodeAt(0);if(e===1)return ju(s)?c:".";if(ju(s)){if(i=n=1,ju(c.charCodeAt(1))){let f=2,g=f;for(;f2&&ju(c.charCodeAt(2))?3:2,n=i);let l=-1,d=!0;for(let f=e-1;f>=n;--f)if(ju(c.charCodeAt(f))){if(!d){l=f;break}}else d=!1;if(l===-1){if(i===-1)return".";l=i}return c.slice(0,l)},basename(c,e){e!==void 0&&mm(e,"ext"),mm(c,"path");let i=0,n=-1,s=!0,l;if(c.length>=2&&KO(c.charCodeAt(0))&&c.charCodeAt(1)===GO&&(i=2),e!==void 0&&e.length>0&&e.length<=c.length){if(e===c)return"";let d=e.length-1,f=-1;for(l=c.length-1;l>=i;--l){const g=c.charCodeAt(l);if(ju(g)){if(!s){i=l+1;break}}else f===-1&&(s=!1,f=l+1),d>=0&&(g===e.charCodeAt(d)?--d===-1&&(n=l):(d=-1,n=f))}return i===n?n=f:n===-1&&(n=c.length),c.slice(i,n)}for(l=c.length-1;l>=i;--l)if(ju(c.charCodeAt(l))){if(!s){i=l+1;break}}else n===-1&&(s=!1,n=l+1);return n===-1?"":c.slice(i,n)},extname(c){mm(c,"path");let e=0,i=-1,n=0,s=-1,l=!0,d=0;c.length>=2&&c.charCodeAt(1)===GO&&KO(c.charCodeAt(0))&&(e=n=2);for(let f=c.length-1;f>=e;--f){const g=c.charCodeAt(f);if(ju(g)){if(!l){n=f+1;break}continue}s===-1&&(l=!1,s=f+1),g===FM?i===-1?i=f:d!==1&&(d=1):i!==-1&&(d=-1)}return i===-1||s===-1||d===0||d===1&&i===s-1&&i===n+1?"":c.slice(i,s)},format:Fbt.bind(null,"\\"),parse(c){mm(c,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return e;const i=c.length;let n=0,s=c.charCodeAt(0);if(i===1)return ju(s)?(e.root=e.dir=c,e):(e.base=e.name=c,e);if(ju(s)){if(n=1,ju(c.charCodeAt(1))){let x=2,I=x;for(;x0&&(e.root=c.slice(0,n));let l=-1,d=n,f=-1,g=!0,y=c.length-1,w=0;for(;y>=n;--y){if(s=c.charCodeAt(y),ju(s)){if(!g){d=y+1;break}continue}f===-1&&(g=!1,f=y+1),s===FM?l===-1?l=y:w!==1&&(w=1):l!==-1&&(w=-1)}return f!==-1&&(l===-1||w===0||w===1&&l===f-1&&l===d+1?e.base=e.name=c.slice(d,f):(e.name=c.slice(d,l),e.base=c.slice(d,f),e.ext=c.slice(l,f))),d>0&&d!==n?e.dir=c.slice(0,d-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Dii=(()=>{if(kR){const c=/\\/g;return()=>{const e=I0e().replace(c,"/");return e.slice(e.indexOf("/"))}}return()=>I0e()})(),gp={resolve(...c){let e="",i=!1;for(let n=c.length-1;n>=-1&&!i;n--){const s=n>=0?c[n]:Dii();mm(s,"path"),s.length!==0&&(e=`${s}/${e}`,i=s.charCodeAt(0)===b1)}return e=N0e(e,!i,"/",BFe),i?`/${e}`:e.length>0?e:"."},normalize(c){if(mm(c,"path"),c.length===0)return".";const e=c.charCodeAt(0)===b1,i=c.charCodeAt(c.length-1)===b1;return c=N0e(c,!e,"/",BFe),c.length===0?e?"/":i?"./":".":(i&&(c+="/"),e?`/${c}`:c)},isAbsolute(c){return mm(c,"path"),c.length>0&&c.charCodeAt(0)===b1},join(...c){if(c.length===0)return".";let e;for(let i=0;i0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":gp.normalize(e)},relative(c,e){if(mm(c,"from"),mm(e,"to"),c===e||(c=gp.resolve(c),e=gp.resolve(e),c===e))return"";const i=1,n=c.length,s=n-i,l=1,d=e.length-l,f=sf){if(e.charCodeAt(l+y)===b1)return e.slice(l+y+1);if(y===0)return e.slice(l+y)}else s>f&&(c.charCodeAt(i+y)===b1?g=y:y===0&&(g=0));let w="";for(y=i+g+1;y<=n;++y)(y===n||c.charCodeAt(y)===b1)&&(w+=w.length===0?"..":"/..");return`${w}${e.slice(l+g)}`},toNamespacedPath(c){return c},dirname(c){if(mm(c,"path"),c.length===0)return".";const e=c.charCodeAt(0)===b1;let i=-1,n=!0;for(let s=c.length-1;s>=1;--s)if(c.charCodeAt(s)===b1){if(!n){i=s;break}}else n=!1;return i===-1?e?"/":".":e&&i===1?"//":c.slice(0,i)},basename(c,e){e!==void 0&&mm(e,"ext"),mm(c,"path");let i=0,n=-1,s=!0,l;if(e!==void 0&&e.length>0&&e.length<=c.length){if(e===c)return"";let d=e.length-1,f=-1;for(l=c.length-1;l>=0;--l){const g=c.charCodeAt(l);if(g===b1){if(!s){i=l+1;break}}else f===-1&&(s=!1,f=l+1),d>=0&&(g===e.charCodeAt(d)?--d===-1&&(n=l):(d=-1,n=f))}return i===n?n=f:n===-1&&(n=c.length),c.slice(i,n)}for(l=c.length-1;l>=0;--l)if(c.charCodeAt(l)===b1){if(!s){i=l+1;break}}else n===-1&&(s=!1,n=l+1);return n===-1?"":c.slice(i,n)},extname(c){mm(c,"path");let e=-1,i=0,n=-1,s=!0,l=0;for(let d=c.length-1;d>=0;--d){const f=c.charCodeAt(d);if(f===b1){if(!s){i=d+1;break}continue}n===-1&&(s=!1,n=d+1),f===FM?e===-1?e=d:l!==1&&(l=1):e!==-1&&(l=-1)}return e===-1||n===-1||l===0||l===1&&e===n-1&&e===i+1?"":c.slice(e,n)},format:Fbt.bind(null,"/"),parse(c){mm(c,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return e;const i=c.charCodeAt(0)===b1;let n;i?(e.root="/",n=1):n=0;let s=-1,l=0,d=-1,f=!0,g=c.length-1,y=0;for(;g>=n;--g){const w=c.charCodeAt(g);if(w===b1){if(!f){l=g+1;break}continue}d===-1&&(f=!1,d=g+1),w===FM?s===-1?s=g:y!==1&&(y=1):s!==-1&&(y=-1)}if(d!==-1){const w=l===0&&i?1:l;s===-1||y===0||y===1&&s===d-1&&s===l+1?e.base=e.name=c.slice(w,d):(e.name=c.slice(w,s),e.base=c.slice(w,d),e.ext=c.slice(s,d))}return l>0?e.dir=c.slice(0,l-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};gp.win32=BC.win32=BC;gp.posix=BC.posix=gp;const Bbt=kR?BC.normalize:gp.normalize,Eii=kR?BC.resolve:gp.resolve,Iii=kR?BC.relative:gp.relative,Wbt=kR?BC.dirname:gp.dirname,BM=kR?BC.basename:gp.basename,Nii=kR?BC.extname:gp.extname,vE=kR?BC.sep:gp.sep,Lii=/^\w[\w\d+.-]*$/,Pii=/^\//,Aii=/^\/\//;function Oii(c,e){if(!c.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${c.authority}", path: "${c.path}", query: "${c.query}", fragment: "${c.fragment}"}`);if(c.scheme&&!Lii.test(c.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(c.path){if(c.authority){if(!Pii.test(c.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(Aii.test(c.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Mii(c,e){return!c&&!e?"file":c}function Rii(c,e){switch(c){case"https":case"http":case"file":e?e[0]!==oE&&(e=oE+e):e=oE;break}return e}const X_="",oE="/",Fii=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Oo{static isUri(e){return e instanceof Oo?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,i,n,s,l,d=!1){typeof e=="object"?(this.scheme=e.scheme||X_,this.authority=e.authority||X_,this.path=e.path||X_,this.query=e.query||X_,this.fragment=e.fragment||X_):(this.scheme=Mii(e,d),this.authority=i||X_,this.path=Rii(this.scheme,n||X_),this.query=s||X_,this.fragment=l||X_,Oii(this,d))}get fsPath(){return L0e(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:n,path:s,query:l,fragment:d}=e;return i===void 0?i=this.scheme:i===null&&(i=X_),n===void 0?n=this.authority:n===null&&(n=X_),s===void 0?s=this.path:s===null&&(s=X_),l===void 0?l=this.query:l===null&&(l=X_),d===void 0?d=this.fragment:d===null&&(d=X_),i===this.scheme&&n===this.authority&&s===this.path&&l===this.query&&d===this.fragment?this:new gz(i,n,s,l,d)}static parse(e,i=!1){const n=Fii.exec(e);return n?new gz(n[2]||X_,_ge(n[4]||X_),_ge(n[5]||X_),_ge(n[7]||X_),_ge(n[9]||X_),i):new gz(X_,X_,X_,X_,X_)}static file(e){let i=X_;if(M0&&(e=e.replace(/\\/g,oE)),e[0]===oE&&e[1]===oE){const n=e.indexOf(oE,2);n===-1?(i=e.substring(2),e=oE):(i=e.substring(2,n),e=e.substring(n)||oE)}return new gz("file",i,e,X_,X_)}static from(e,i){return new gz(e.scheme,e.authority,e.path,e.query,e.fragment,i)}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return M0&&e.scheme==="file"?n=Oo.file(BC.join(L0e(e,!0),...i)).path:n=gp.join(e.path,...i),e.with({path:n})}toString(e=!1){return WFe(this,e)}toJSON(){return this}static revive(e){var i,n;if(e){if(e instanceof Oo)return e;{const s=new gz(e);return s._formatted=(i=e.external)!==null&&i!==void 0?i:null,s._fsPath=e._sep===Vbt&&(n=e.fsPath)!==null&&n!==void 0?n:null,s}}else return e}}const Vbt=M0?1:void 0;let gz=class extends Oo{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=L0e(this,!1)),this._fsPath}toString(e=!1){return e?WFe(this,!0):(this._formatted||(this._formatted=WFe(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Vbt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const Hbt={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 rgt(c,e,i){let n,s=-1;for(let l=0;l=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||e&&d===47||i&&d===91||i&&d===93||i&&d===58)s!==-1&&(n+=encodeURIComponent(c.substring(s,l)),s=-1),n!==void 0&&(n+=c.charAt(l));else{n===void 0&&(n=c.substr(0,l));const f=Hbt[d];f!==void 0?(s!==-1&&(n+=encodeURIComponent(c.substring(s,l)),s=-1),n+=f):s===-1&&(s=l)}}return s!==-1&&(n+=encodeURIComponent(c.substring(s))),n!==void 0?n:c}function Bii(c){let e;for(let i=0;i1&&c.scheme==="file"?i=`//${c.authority}${c.path}`:c.path.charCodeAt(0)===47&&(c.path.charCodeAt(1)>=65&&c.path.charCodeAt(1)<=90||c.path.charCodeAt(1)>=97&&c.path.charCodeAt(1)<=122)&&c.path.charCodeAt(2)===58?e?i=c.path.substr(1):i=c.path[1].toLowerCase()+c.path.substr(2):i=c.path,M0&&(i=i.replace(/\//g,"\\")),i}function WFe(c,e){const i=e?Bii:rgt;let n="",{scheme:s,authority:l,path:d,query:f,fragment:g}=c;if(s&&(n+=s,n+=":"),(l||s==="file")&&(n+=oE,n+=oE),l){let y=l.indexOf("@");if(y!==-1){const w=l.substr(0,y);l=l.substr(y+1),y=w.lastIndexOf(":"),y===-1?n+=i(w,!1,!1):(n+=i(w.substr(0,y),!1,!1),n+=":",n+=i(w.substr(y+1),!1,!0)),n+="@"}l=l.toLowerCase(),y=l.lastIndexOf(":"),y===-1?n+=i(l,!1,!0):(n+=i(l.substr(0,y),!1,!0),n+=l.substr(y))}if(d){if(d.length>=3&&d.charCodeAt(0)===47&&d.charCodeAt(2)===58){const y=d.charCodeAt(1);y>=65&&y<=90&&(d=`/${String.fromCharCode(y+32)}:${d.substr(3)}`)}else if(d.length>=2&&d.charCodeAt(1)===58){const y=d.charCodeAt(0);y>=65&&y<=90&&(d=`${String.fromCharCode(y+32)}:${d.substr(2)}`)}n+=i(d,!0,!1)}return f&&(n+="?",n+=i(f,!1,!1)),g&&(n+="#",n+=e?g:rgt(g,!1,!1)),n}function jbt(c){try{return decodeURIComponent(c)}catch{return c.length>3?c.substr(0,3)+jbt(c.substr(3)):c}}const sgt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _ge(c){return c.match(sgt)?c.replace(sgt,e=>jbt(e)):c}let yi=class k5{constructor(e,i){this.lineNumber=e,this.column=i}with(e=this.lineNumber,i=this.column){return e===this.lineNumber&&i===this.column?this:new k5(e,i)}delta(e=0,i=0){return this.with(this.lineNumber+e,this.column+i)}equals(e){return k5.equals(this,e)}static equals(e,i){return!e&&!i?!0:!!e&&!!i&&e.lineNumber===i.lineNumber&&e.column===i.column}isBefore(e){return k5.isBefore(this,e)}static isBefore(e,i){return e.lineNumbern||e===n&&i>s?(this.startLineNumber=n,this.startColumn=s,this.endLineNumber=e,this.endColumn=i):(this.startLineNumber=e,this.startColumn=i,this.endLineNumber=n,this.endColumn=s)}isEmpty(){return Xm.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Xm.containsPosition(this,e)}static containsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.columne.endColumn)}static strictContainsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.column<=e.startColumn||i.lineNumber===e.endLineNumber&&i.column>=e.endColumn)}containsRange(e){return Xm.containsRange(this,e)}static containsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumne.endColumn)}strictContainsRange(e){return Xm.strictContainsRange(this,e)}static strictContainsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumn<=e.startColumn||i.endLineNumber===e.endLineNumber&&i.endColumn>=e.endColumn)}plusRange(e){return Xm.plusRange(this,e)}static plusRange(e,i){let n,s,l,d;return i.startLineNumbere.endLineNumber?(l=i.endLineNumber,d=i.endColumn):i.endLineNumber===e.endLineNumber?(l=i.endLineNumber,d=Math.max(i.endColumn,e.endColumn)):(l=e.endLineNumber,d=e.endColumn),new Xm(n,s,l,d)}intersectRanges(e){return Xm.intersectRanges(this,e)}static intersectRanges(e,i){let n=e.startLineNumber,s=e.startColumn,l=e.endLineNumber,d=e.endColumn;const f=i.startLineNumber,g=i.startColumn,y=i.endLineNumber,w=i.endColumn;return ny?(l=y,d=w):l===y&&(d=Math.min(d,w)),n>l||n===l&&s>d?null:new Xm(n,s,l,d)}equalsRange(e){return Xm.equalsRange(this,e)}static equalsRange(e,i){return!e&&!i?!0:!!e&&!!i&&e.startLineNumber===i.startLineNumber&&e.startColumn===i.startColumn&&e.endLineNumber===i.endLineNumber&&e.endColumn===i.endColumn}getEndPosition(){return Xm.getEndPosition(this)}static getEndPosition(e){return new yi(e.endLineNumber,e.endColumn)}getStartPosition(){return Xm.getStartPosition(this)}static getStartPosition(e){return new yi(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,i){return new Xm(this.startLineNumber,this.startColumn,e,i)}setStartPosition(e,i){return new Xm(e,i,this.endLineNumber,this.endColumn)}collapseToStart(){return Xm.collapseToStart(this)}static collapseToStart(e){return new Xm(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Xm.collapseToEnd(this)}static collapseToEnd(e){return new Xm(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Xm(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,i=e){return new Xm(e.lineNumber,e.column,i.lineNumber,i.column)}static lift(e){return e?new Xm(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,i){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},Qs=class Q2 extends at{constructor(e,i,n,s){super(e,i,n,s),this.selectionStartLineNumber=e,this.selectionStartColumn=i,this.positionLineNumber=n,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Q2.selectionsEqual(this,e)}static selectionsEqual(e,i){return e.selectionStartLineNumber===i.selectionStartLineNumber&&e.selectionStartColumn===i.selectionStartColumn&&e.positionLineNumber===i.positionLineNumber&&e.positionColumn===i.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,i){return this.getDirection()===0?new Q2(this.startLineNumber,this.startColumn,e,i):new Q2(e,i,this.startLineNumber,this.startColumn)}getPosition(){return new yi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new yi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,i){return this.getDirection()===0?new Q2(e,i,this.endLineNumber,this.endColumn):new Q2(this.endLineNumber,this.endColumn,e,i)}static fromPositions(e,i=e){return new Q2(e.lineNumber,e.column,i.lineNumber,i.column)}static fromRange(e,i){return i===0?new Q2(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Q2(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Q2(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,i){if(e&&!i||!e&&i)return!1;if(!e&&!i)return!0;if(e.length!==i.length)return!1;for(let n=0,s=e.length;n{this._tokenizationSupports.get(e)===i&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,i){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const s=new jii(this,e,i);return this._factories.set(e,s),go(()=>{const l=this._factories.get(e);!l||l!==s||(this._factories.delete(e),l.dispose())})}async getOrCreate(e){const i=this.get(e);if(i)return i;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class jii extends Ii{get isResolved(){return this._isResolved}constructor(e,i,n){super(),this._registry=e,this._languageId=i,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}let Pte=class{constructor(e,i,n){this.offset=e,this.type=i,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class xHe{constructor(e,i){this.tokens=e,this.endState=i,this._tokenizationResultBrand=void 0}}class M1e{constructor(e,i){this.tokens=e,this.endState=i,this._encodedTokenizationResultBrand=void 0}}var cw;(function(c){c[c.Increase=0]="Increase",c[c.Decrease=1]="Decrease"})(cw||(cw={}));var Ate;(function(c){const e=new Map;e.set(0,Dr.symbolMethod),e.set(1,Dr.symbolFunction),e.set(2,Dr.symbolConstructor),e.set(3,Dr.symbolField),e.set(4,Dr.symbolVariable),e.set(5,Dr.symbolClass),e.set(6,Dr.symbolStruct),e.set(7,Dr.symbolInterface),e.set(8,Dr.symbolModule),e.set(9,Dr.symbolProperty),e.set(10,Dr.symbolEvent),e.set(11,Dr.symbolOperator),e.set(12,Dr.symbolUnit),e.set(13,Dr.symbolValue),e.set(15,Dr.symbolEnum),e.set(14,Dr.symbolConstant),e.set(15,Dr.symbolEnum),e.set(16,Dr.symbolEnumMember),e.set(17,Dr.symbolKeyword),e.set(27,Dr.symbolSnippet),e.set(18,Dr.symbolText),e.set(19,Dr.symbolColor),e.set(20,Dr.symbolFile),e.set(21,Dr.symbolReference),e.set(22,Dr.symbolCustomColor),e.set(23,Dr.symbolFolder),e.set(24,Dr.symbolTypeParameter),e.set(25,Dr.account),e.set(26,Dr.issues);function i(l){let d=e.get(l);return d||(console.info("No codicon found for CompletionItemKind "+l),d=Dr.symbolProperty),d}c.toIcon=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function s(l,d){let f=n.get(l);return typeof f>"u"&&!d&&(f=9),f}c.fromString=s})(Ate||(Ate={}));var M4;(function(c){c[c.Automatic=0]="Automatic",c[c.Explicit=1]="Explicit"})(M4||(M4={}));class Ubt{constructor(e,i,n,s){this.range=e,this.text=i,this.completionKind=n,this.isSnippetText=s}equals(e){return at.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var Ote;(function(c){c[c.Automatic=0]="Automatic",c[c.PasteAs=1]="PasteAs"})(Ote||(Ote={}));var sL;(function(c){c[c.Invoke=1]="Invoke",c[c.TriggerCharacter=2]="TriggerCharacter",c[c.ContentChange=3]="ContentChange"})(sL||(sL={}));var Mte;(function(c){c[c.Text=0]="Text",c[c.Read=1]="Read",c[c.Write=2]="Write"})(Mte||(Mte={}));function zii(c){return c&&Oo.isUri(c.uri)&&at.isIRange(c.range)&&(at.isIRange(c.originSelectionRange)||at.isIRange(c.targetSelectionRange))}const Uii={17:V("Array","array"),16:V("Boolean","boolean"),4:V("Class","class"),13:V("Constant","constant"),8:V("Constructor","constructor"),9:V("Enum","enumeration"),21:V("EnumMember","enumeration member"),23:V("Event","event"),7:V("Field","field"),0:V("File","file"),11:V("Function","function"),10:V("Interface","interface"),19:V("Key","key"),5:V("Method","method"),1:V("Module","module"),2:V("Namespace","namespace"),20:V("Null","null"),15:V("Number","number"),18:V("Object","object"),24:V("Operator","operator"),3:V("Package","package"),6:V("Property","property"),14:V("String","string"),22:V("Struct","struct"),25:V("TypeParameter","type parameter"),12:V("Variable","variable")};function qii(c,e){return V("symbolAriaLabel","{0} ({1})",c,Uii[e])}var P0e;(function(c){const e=new Map;e.set(0,Dr.symbolFile),e.set(1,Dr.symbolModule),e.set(2,Dr.symbolNamespace),e.set(3,Dr.symbolPackage),e.set(4,Dr.symbolClass),e.set(5,Dr.symbolMethod),e.set(6,Dr.symbolProperty),e.set(7,Dr.symbolField),e.set(8,Dr.symbolConstructor),e.set(9,Dr.symbolEnum),e.set(10,Dr.symbolInterface),e.set(11,Dr.symbolFunction),e.set(12,Dr.symbolVariable),e.set(13,Dr.symbolConstant),e.set(14,Dr.symbolString),e.set(15,Dr.symbolNumber),e.set(16,Dr.symbolBoolean),e.set(17,Dr.symbolArray),e.set(18,Dr.symbolObject),e.set(19,Dr.symbolKey),e.set(20,Dr.symbolNull),e.set(21,Dr.symbolEnumMember),e.set(22,Dr.symbolStruct),e.set(23,Dr.symbolEvent),e.set(24,Dr.symbolOperator),e.set(25,Dr.symbolTypeParameter);function i(n){let s=e.get(n);return s||(console.info("No codicon found for SymbolKind "+n),s=Dr.symbolProperty),s}c.toIcon=i})(P0e||(P0e={}));class by{static fromValue(e){switch(e){case"comment":return by.Comment;case"imports":return by.Imports;case"region":return by.Region}return new by(e)}constructor(e){this.value=e}}by.Comment=new by("comment");by.Imports=new by("imports");by.Region=new by("region");var HFe;(function(c){c[c.AIGenerated=1]="AIGenerated"})(HFe||(HFe={}));var Rte;(function(c){c[c.Invoke=0]="Invoke",c[c.Automatic=1]="Automatic"})(Rte||(Rte={}));var jFe;(function(c){function e(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}c.is=e})(jFe||(jFe={}));var A0e;(function(c){c[c.Type=1]="Type",c[c.Parameter=2]="Parameter"})(A0e||(A0e={}));class $ii{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const Nh=new Hii;var O0e;(function(c){c[c.Invoke=0]="Invoke",c[c.Automatic=1]="Automatic"})(O0e||(O0e={}));var zFe;(function(c){c[c.Unknown=0]="Unknown",c[c.Disabled=1]="Disabled",c[c.Enabled=2]="Enabled"})(zFe||(zFe={}));var UFe;(function(c){c[c.Invoke=1]="Invoke",c[c.Auto=2]="Auto"})(UFe||(UFe={}));var qFe;(function(c){c[c.None=0]="None",c[c.KeepWhitespace=1]="KeepWhitespace",c[c.InsertAsSnippet=4]="InsertAsSnippet"})(qFe||(qFe={}));var $Fe;(function(c){c[c.Method=0]="Method",c[c.Function=1]="Function",c[c.Constructor=2]="Constructor",c[c.Field=3]="Field",c[c.Variable=4]="Variable",c[c.Class=5]="Class",c[c.Struct=6]="Struct",c[c.Interface=7]="Interface",c[c.Module=8]="Module",c[c.Property=9]="Property",c[c.Event=10]="Event",c[c.Operator=11]="Operator",c[c.Unit=12]="Unit",c[c.Value=13]="Value",c[c.Constant=14]="Constant",c[c.Enum=15]="Enum",c[c.EnumMember=16]="EnumMember",c[c.Keyword=17]="Keyword",c[c.Text=18]="Text",c[c.Color=19]="Color",c[c.File=20]="File",c[c.Reference=21]="Reference",c[c.Customcolor=22]="Customcolor",c[c.Folder=23]="Folder",c[c.TypeParameter=24]="TypeParameter",c[c.User=25]="User",c[c.Issue=26]="Issue",c[c.Snippet=27]="Snippet"})($Fe||($Fe={}));var JFe;(function(c){c[c.Deprecated=1]="Deprecated"})(JFe||(JFe={}));var GFe;(function(c){c[c.Invoke=0]="Invoke",c[c.TriggerCharacter=1]="TriggerCharacter",c[c.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(GFe||(GFe={}));var KFe;(function(c){c[c.EXACT=0]="EXACT",c[c.ABOVE=1]="ABOVE",c[c.BELOW=2]="BELOW"})(KFe||(KFe={}));var QFe;(function(c){c[c.NotSet=0]="NotSet",c[c.ContentFlush=1]="ContentFlush",c[c.RecoverFromMarkers=2]="RecoverFromMarkers",c[c.Explicit=3]="Explicit",c[c.Paste=4]="Paste",c[c.Undo=5]="Undo",c[c.Redo=6]="Redo"})(QFe||(QFe={}));var XFe;(function(c){c[c.LF=1]="LF",c[c.CRLF=2]="CRLF"})(XFe||(XFe={}));var ZFe;(function(c){c[c.Text=0]="Text",c[c.Read=1]="Read",c[c.Write=2]="Write"})(ZFe||(ZFe={}));var YFe;(function(c){c[c.None=0]="None",c[c.Keep=1]="Keep",c[c.Brackets=2]="Brackets",c[c.Advanced=3]="Advanced",c[c.Full=4]="Full"})(YFe||(YFe={}));var e5e;(function(c){c[c.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",c[c.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",c[c.accessibilitySupport=2]="accessibilitySupport",c[c.accessibilityPageSize=3]="accessibilityPageSize",c[c.ariaLabel=4]="ariaLabel",c[c.ariaRequired=5]="ariaRequired",c[c.autoClosingBrackets=6]="autoClosingBrackets",c[c.autoClosingComments=7]="autoClosingComments",c[c.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",c[c.autoClosingDelete=9]="autoClosingDelete",c[c.autoClosingOvertype=10]="autoClosingOvertype",c[c.autoClosingQuotes=11]="autoClosingQuotes",c[c.autoIndent=12]="autoIndent",c[c.automaticLayout=13]="automaticLayout",c[c.autoSurround=14]="autoSurround",c[c.bracketPairColorization=15]="bracketPairColorization",c[c.guides=16]="guides",c[c.codeLens=17]="codeLens",c[c.codeLensFontFamily=18]="codeLensFontFamily",c[c.codeLensFontSize=19]="codeLensFontSize",c[c.colorDecorators=20]="colorDecorators",c[c.colorDecoratorsLimit=21]="colorDecoratorsLimit",c[c.columnSelection=22]="columnSelection",c[c.comments=23]="comments",c[c.contextmenu=24]="contextmenu",c[c.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",c[c.cursorBlinking=26]="cursorBlinking",c[c.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",c[c.cursorStyle=28]="cursorStyle",c[c.cursorSurroundingLines=29]="cursorSurroundingLines",c[c.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",c[c.cursorWidth=31]="cursorWidth",c[c.disableLayerHinting=32]="disableLayerHinting",c[c.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",c[c.domReadOnly=34]="domReadOnly",c[c.dragAndDrop=35]="dragAndDrop",c[c.dropIntoEditor=36]="dropIntoEditor",c[c.emptySelectionClipboard=37]="emptySelectionClipboard",c[c.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",c[c.extraEditorClassName=39]="extraEditorClassName",c[c.fastScrollSensitivity=40]="fastScrollSensitivity",c[c.find=41]="find",c[c.fixedOverflowWidgets=42]="fixedOverflowWidgets",c[c.folding=43]="folding",c[c.foldingStrategy=44]="foldingStrategy",c[c.foldingHighlight=45]="foldingHighlight",c[c.foldingImportsByDefault=46]="foldingImportsByDefault",c[c.foldingMaximumRegions=47]="foldingMaximumRegions",c[c.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",c[c.fontFamily=49]="fontFamily",c[c.fontInfo=50]="fontInfo",c[c.fontLigatures=51]="fontLigatures",c[c.fontSize=52]="fontSize",c[c.fontWeight=53]="fontWeight",c[c.fontVariations=54]="fontVariations",c[c.formatOnPaste=55]="formatOnPaste",c[c.formatOnType=56]="formatOnType",c[c.glyphMargin=57]="glyphMargin",c[c.gotoLocation=58]="gotoLocation",c[c.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",c[c.hover=60]="hover",c[c.inDiffEditor=61]="inDiffEditor",c[c.inlineSuggest=62]="inlineSuggest",c[c.inlineEdit=63]="inlineEdit",c[c.letterSpacing=64]="letterSpacing",c[c.lightbulb=65]="lightbulb",c[c.lineDecorationsWidth=66]="lineDecorationsWidth",c[c.lineHeight=67]="lineHeight",c[c.lineNumbers=68]="lineNumbers",c[c.lineNumbersMinChars=69]="lineNumbersMinChars",c[c.linkedEditing=70]="linkedEditing",c[c.links=71]="links",c[c.matchBrackets=72]="matchBrackets",c[c.minimap=73]="minimap",c[c.mouseStyle=74]="mouseStyle",c[c.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",c[c.mouseWheelZoom=76]="mouseWheelZoom",c[c.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",c[c.multiCursorModifier=78]="multiCursorModifier",c[c.multiCursorPaste=79]="multiCursorPaste",c[c.multiCursorLimit=80]="multiCursorLimit",c[c.occurrencesHighlight=81]="occurrencesHighlight",c[c.overviewRulerBorder=82]="overviewRulerBorder",c[c.overviewRulerLanes=83]="overviewRulerLanes",c[c.padding=84]="padding",c[c.pasteAs=85]="pasteAs",c[c.parameterHints=86]="parameterHints",c[c.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",c[c.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",c[c.quickSuggestions=89]="quickSuggestions",c[c.quickSuggestionsDelay=90]="quickSuggestionsDelay",c[c.readOnly=91]="readOnly",c[c.readOnlyMessage=92]="readOnlyMessage",c[c.renameOnType=93]="renameOnType",c[c.renderControlCharacters=94]="renderControlCharacters",c[c.renderFinalNewline=95]="renderFinalNewline",c[c.renderLineHighlight=96]="renderLineHighlight",c[c.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",c[c.renderValidationDecorations=98]="renderValidationDecorations",c[c.renderWhitespace=99]="renderWhitespace",c[c.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",c[c.roundedSelection=101]="roundedSelection",c[c.rulers=102]="rulers",c[c.scrollbar=103]="scrollbar",c[c.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",c[c.scrollBeyondLastLine=105]="scrollBeyondLastLine",c[c.scrollPredominantAxis=106]="scrollPredominantAxis",c[c.selectionClipboard=107]="selectionClipboard",c[c.selectionHighlight=108]="selectionHighlight",c[c.selectOnLineNumbers=109]="selectOnLineNumbers",c[c.showFoldingControls=110]="showFoldingControls",c[c.showUnused=111]="showUnused",c[c.snippetSuggestions=112]="snippetSuggestions",c[c.smartSelect=113]="smartSelect",c[c.smoothScrolling=114]="smoothScrolling",c[c.stickyScroll=115]="stickyScroll",c[c.stickyTabStops=116]="stickyTabStops",c[c.stopRenderingLineAfter=117]="stopRenderingLineAfter",c[c.suggest=118]="suggest",c[c.suggestFontSize=119]="suggestFontSize",c[c.suggestLineHeight=120]="suggestLineHeight",c[c.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",c[c.suggestSelection=122]="suggestSelection",c[c.tabCompletion=123]="tabCompletion",c[c.tabIndex=124]="tabIndex",c[c.unicodeHighlighting=125]="unicodeHighlighting",c[c.unusualLineTerminators=126]="unusualLineTerminators",c[c.useShadowDOM=127]="useShadowDOM",c[c.useTabStops=128]="useTabStops",c[c.wordBreak=129]="wordBreak",c[c.wordSegmenterLocales=130]="wordSegmenterLocales",c[c.wordSeparators=131]="wordSeparators",c[c.wordWrap=132]="wordWrap",c[c.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",c[c.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",c[c.wordWrapColumn=135]="wordWrapColumn",c[c.wordWrapOverride1=136]="wordWrapOverride1",c[c.wordWrapOverride2=137]="wordWrapOverride2",c[c.wrappingIndent=138]="wrappingIndent",c[c.wrappingStrategy=139]="wrappingStrategy",c[c.showDeprecated=140]="showDeprecated",c[c.inlayHints=141]="inlayHints",c[c.editorClassName=142]="editorClassName",c[c.pixelRatio=143]="pixelRatio",c[c.tabFocusMode=144]="tabFocusMode",c[c.layoutInfo=145]="layoutInfo",c[c.wrappingInfo=146]="wrappingInfo",c[c.defaultColorDecorators=147]="defaultColorDecorators",c[c.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",c[c.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(e5e||(e5e={}));var t5e;(function(c){c[c.TextDefined=0]="TextDefined",c[c.LF=1]="LF",c[c.CRLF=2]="CRLF"})(t5e||(t5e={}));var i5e;(function(c){c[c.LF=0]="LF",c[c.CRLF=1]="CRLF"})(i5e||(i5e={}));var n5e;(function(c){c[c.Left=1]="Left",c[c.Center=2]="Center",c[c.Right=3]="Right"})(n5e||(n5e={}));var r5e;(function(c){c[c.Increase=0]="Increase",c[c.Decrease=1]="Decrease"})(r5e||(r5e={}));var s5e;(function(c){c[c.None=0]="None",c[c.Indent=1]="Indent",c[c.IndentOutdent=2]="IndentOutdent",c[c.Outdent=3]="Outdent"})(s5e||(s5e={}));var o5e;(function(c){c[c.Both=0]="Both",c[c.Right=1]="Right",c[c.Left=2]="Left",c[c.None=3]="None"})(o5e||(o5e={}));var a5e;(function(c){c[c.Type=1]="Type",c[c.Parameter=2]="Parameter"})(a5e||(a5e={}));var l5e;(function(c){c[c.Automatic=0]="Automatic",c[c.Explicit=1]="Explicit"})(l5e||(l5e={}));var c5e;(function(c){c[c.Invoke=0]="Invoke",c[c.Automatic=1]="Automatic"})(c5e||(c5e={}));var u5e;(function(c){c[c.DependsOnKbLayout=-1]="DependsOnKbLayout",c[c.Unknown=0]="Unknown",c[c.Backspace=1]="Backspace",c[c.Tab=2]="Tab",c[c.Enter=3]="Enter",c[c.Shift=4]="Shift",c[c.Ctrl=5]="Ctrl",c[c.Alt=6]="Alt",c[c.PauseBreak=7]="PauseBreak",c[c.CapsLock=8]="CapsLock",c[c.Escape=9]="Escape",c[c.Space=10]="Space",c[c.PageUp=11]="PageUp",c[c.PageDown=12]="PageDown",c[c.End=13]="End",c[c.Home=14]="Home",c[c.LeftArrow=15]="LeftArrow",c[c.UpArrow=16]="UpArrow",c[c.RightArrow=17]="RightArrow",c[c.DownArrow=18]="DownArrow",c[c.Insert=19]="Insert",c[c.Delete=20]="Delete",c[c.Digit0=21]="Digit0",c[c.Digit1=22]="Digit1",c[c.Digit2=23]="Digit2",c[c.Digit3=24]="Digit3",c[c.Digit4=25]="Digit4",c[c.Digit5=26]="Digit5",c[c.Digit6=27]="Digit6",c[c.Digit7=28]="Digit7",c[c.Digit8=29]="Digit8",c[c.Digit9=30]="Digit9",c[c.KeyA=31]="KeyA",c[c.KeyB=32]="KeyB",c[c.KeyC=33]="KeyC",c[c.KeyD=34]="KeyD",c[c.KeyE=35]="KeyE",c[c.KeyF=36]="KeyF",c[c.KeyG=37]="KeyG",c[c.KeyH=38]="KeyH",c[c.KeyI=39]="KeyI",c[c.KeyJ=40]="KeyJ",c[c.KeyK=41]="KeyK",c[c.KeyL=42]="KeyL",c[c.KeyM=43]="KeyM",c[c.KeyN=44]="KeyN",c[c.KeyO=45]="KeyO",c[c.KeyP=46]="KeyP",c[c.KeyQ=47]="KeyQ",c[c.KeyR=48]="KeyR",c[c.KeyS=49]="KeyS",c[c.KeyT=50]="KeyT",c[c.KeyU=51]="KeyU",c[c.KeyV=52]="KeyV",c[c.KeyW=53]="KeyW",c[c.KeyX=54]="KeyX",c[c.KeyY=55]="KeyY",c[c.KeyZ=56]="KeyZ",c[c.Meta=57]="Meta",c[c.ContextMenu=58]="ContextMenu",c[c.F1=59]="F1",c[c.F2=60]="F2",c[c.F3=61]="F3",c[c.F4=62]="F4",c[c.F5=63]="F5",c[c.F6=64]="F6",c[c.F7=65]="F7",c[c.F8=66]="F8",c[c.F9=67]="F9",c[c.F10=68]="F10",c[c.F11=69]="F11",c[c.F12=70]="F12",c[c.F13=71]="F13",c[c.F14=72]="F14",c[c.F15=73]="F15",c[c.F16=74]="F16",c[c.F17=75]="F17",c[c.F18=76]="F18",c[c.F19=77]="F19",c[c.F20=78]="F20",c[c.F21=79]="F21",c[c.F22=80]="F22",c[c.F23=81]="F23",c[c.F24=82]="F24",c[c.NumLock=83]="NumLock",c[c.ScrollLock=84]="ScrollLock",c[c.Semicolon=85]="Semicolon",c[c.Equal=86]="Equal",c[c.Comma=87]="Comma",c[c.Minus=88]="Minus",c[c.Period=89]="Period",c[c.Slash=90]="Slash",c[c.Backquote=91]="Backquote",c[c.BracketLeft=92]="BracketLeft",c[c.Backslash=93]="Backslash",c[c.BracketRight=94]="BracketRight",c[c.Quote=95]="Quote",c[c.OEM_8=96]="OEM_8",c[c.IntlBackslash=97]="IntlBackslash",c[c.Numpad0=98]="Numpad0",c[c.Numpad1=99]="Numpad1",c[c.Numpad2=100]="Numpad2",c[c.Numpad3=101]="Numpad3",c[c.Numpad4=102]="Numpad4",c[c.Numpad5=103]="Numpad5",c[c.Numpad6=104]="Numpad6",c[c.Numpad7=105]="Numpad7",c[c.Numpad8=106]="Numpad8",c[c.Numpad9=107]="Numpad9",c[c.NumpadMultiply=108]="NumpadMultiply",c[c.NumpadAdd=109]="NumpadAdd",c[c.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",c[c.NumpadSubtract=111]="NumpadSubtract",c[c.NumpadDecimal=112]="NumpadDecimal",c[c.NumpadDivide=113]="NumpadDivide",c[c.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",c[c.ABNT_C1=115]="ABNT_C1",c[c.ABNT_C2=116]="ABNT_C2",c[c.AudioVolumeMute=117]="AudioVolumeMute",c[c.AudioVolumeUp=118]="AudioVolumeUp",c[c.AudioVolumeDown=119]="AudioVolumeDown",c[c.BrowserSearch=120]="BrowserSearch",c[c.BrowserHome=121]="BrowserHome",c[c.BrowserBack=122]="BrowserBack",c[c.BrowserForward=123]="BrowserForward",c[c.MediaTrackNext=124]="MediaTrackNext",c[c.MediaTrackPrevious=125]="MediaTrackPrevious",c[c.MediaStop=126]="MediaStop",c[c.MediaPlayPause=127]="MediaPlayPause",c[c.LaunchMediaPlayer=128]="LaunchMediaPlayer",c[c.LaunchMail=129]="LaunchMail",c[c.LaunchApp2=130]="LaunchApp2",c[c.Clear=131]="Clear",c[c.MAX_VALUE=132]="MAX_VALUE"})(u5e||(u5e={}));var d5e;(function(c){c[c.Hint=1]="Hint",c[c.Info=2]="Info",c[c.Warning=4]="Warning",c[c.Error=8]="Error"})(d5e||(d5e={}));var f5e;(function(c){c[c.Unnecessary=1]="Unnecessary",c[c.Deprecated=2]="Deprecated"})(f5e||(f5e={}));var h5e;(function(c){c[c.Inline=1]="Inline",c[c.Gutter=2]="Gutter"})(h5e||(h5e={}));var _5e;(function(c){c[c.Normal=1]="Normal",c[c.Underlined=2]="Underlined"})(_5e||(_5e={}));var p5e;(function(c){c[c.UNKNOWN=0]="UNKNOWN",c[c.TEXTAREA=1]="TEXTAREA",c[c.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",c[c.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",c[c.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",c[c.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",c[c.CONTENT_TEXT=6]="CONTENT_TEXT",c[c.CONTENT_EMPTY=7]="CONTENT_EMPTY",c[c.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",c[c.CONTENT_WIDGET=9]="CONTENT_WIDGET",c[c.OVERVIEW_RULER=10]="OVERVIEW_RULER",c[c.SCROLLBAR=11]="SCROLLBAR",c[c.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",c[c.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(p5e||(p5e={}));var g5e;(function(c){c[c.AIGenerated=1]="AIGenerated"})(g5e||(g5e={}));var m5e;(function(c){c[c.Invoke=0]="Invoke",c[c.Automatic=1]="Automatic"})(m5e||(m5e={}));var v5e;(function(c){c[c.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",c[c.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",c[c.TOP_CENTER=2]="TOP_CENTER"})(v5e||(v5e={}));var y5e;(function(c){c[c.Left=1]="Left",c[c.Center=2]="Center",c[c.Right=4]="Right",c[c.Full=7]="Full"})(y5e||(y5e={}));var b5e;(function(c){c[c.Word=0]="Word",c[c.Line=1]="Line",c[c.Suggest=2]="Suggest"})(b5e||(b5e={}));var C5e;(function(c){c[c.Left=0]="Left",c[c.Right=1]="Right",c[c.None=2]="None",c[c.LeftOfInjectedText=3]="LeftOfInjectedText",c[c.RightOfInjectedText=4]="RightOfInjectedText"})(C5e||(C5e={}));var S5e;(function(c){c[c.Off=0]="Off",c[c.On=1]="On",c[c.Relative=2]="Relative",c[c.Interval=3]="Interval",c[c.Custom=4]="Custom"})(S5e||(S5e={}));var w5e;(function(c){c[c.None=0]="None",c[c.Text=1]="Text",c[c.Blocks=2]="Blocks"})(w5e||(w5e={}));var x5e;(function(c){c[c.Smooth=0]="Smooth",c[c.Immediate=1]="Immediate"})(x5e||(x5e={}));var k5e;(function(c){c[c.Auto=1]="Auto",c[c.Hidden=2]="Hidden",c[c.Visible=3]="Visible"})(k5e||(k5e={}));var T5e;(function(c){c[c.LTR=0]="LTR",c[c.RTL=1]="RTL"})(T5e||(T5e={}));var D5e;(function(c){c.Off="off",c.OnCode="onCode",c.On="on"})(D5e||(D5e={}));var E5e;(function(c){c[c.Invoke=1]="Invoke",c[c.TriggerCharacter=2]="TriggerCharacter",c[c.ContentChange=3]="ContentChange"})(E5e||(E5e={}));var I5e;(function(c){c[c.File=0]="File",c[c.Module=1]="Module",c[c.Namespace=2]="Namespace",c[c.Package=3]="Package",c[c.Class=4]="Class",c[c.Method=5]="Method",c[c.Property=6]="Property",c[c.Field=7]="Field",c[c.Constructor=8]="Constructor",c[c.Enum=9]="Enum",c[c.Interface=10]="Interface",c[c.Function=11]="Function",c[c.Variable=12]="Variable",c[c.Constant=13]="Constant",c[c.String=14]="String",c[c.Number=15]="Number",c[c.Boolean=16]="Boolean",c[c.Array=17]="Array",c[c.Object=18]="Object",c[c.Key=19]="Key",c[c.Null=20]="Null",c[c.EnumMember=21]="EnumMember",c[c.Struct=22]="Struct",c[c.Event=23]="Event",c[c.Operator=24]="Operator",c[c.TypeParameter=25]="TypeParameter"})(I5e||(I5e={}));var N5e;(function(c){c[c.Deprecated=1]="Deprecated"})(N5e||(N5e={}));var L5e;(function(c){c[c.Hidden=0]="Hidden",c[c.Blink=1]="Blink",c[c.Smooth=2]="Smooth",c[c.Phase=3]="Phase",c[c.Expand=4]="Expand",c[c.Solid=5]="Solid"})(L5e||(L5e={}));var P5e;(function(c){c[c.Line=1]="Line",c[c.Block=2]="Block",c[c.Underline=3]="Underline",c[c.LineThin=4]="LineThin",c[c.BlockOutline=5]="BlockOutline",c[c.UnderlineThin=6]="UnderlineThin"})(P5e||(P5e={}));var A5e;(function(c){c[c.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",c[c.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",c[c.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",c[c.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(A5e||(A5e={}));var O5e;(function(c){c[c.None=0]="None",c[c.Same=1]="Same",c[c.Indent=2]="Indent",c[c.DeepIndent=3]="DeepIndent"})(O5e||(O5e={}));let _ne=class{static chord(e,i){return qp(e,i)}};_ne.CtrlCmd=2048;_ne.Shift=1024;_ne.Alt=512;_ne.WinCtrl=256;function qbt(){return{editor:void 0,languages:void 0,CancellationTokenSource:uh,Emitter:ui,KeyCode:u5e,KeyMod:_ne,Position:yi,Range:at,Selection:Qs,SelectionDirection:T5e,MarkerSeverity:d5e,MarkerTag:f5e,Uri:Oo,Token:Pte}}function Jii(c,e){const i=c;typeof i.vscodeWindowId!="number"&&Object.defineProperty(i,"vscodeWindowId",{get:()=>e})}const ed=window;function $bt(c){return c}class Gii{constructor(e,i){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=$bt):(this._fn=i,this._computeKey=e.getCacheKey)}get(e){const i=this._computeKey(e);return this.lastArgKey!==i&&(this.lastArgKey=i,this.lastCache=this._fn(e)),this.lastCache}}class ogt{get cachedValues(){return this._map}constructor(e,i){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=$bt):(this._fn=i,this._computeKey=e.getCacheKey)}get(e){const i=this._computeKey(e);if(this._map2.has(i))return this._map2.get(i);const n=this._fn(e);return this._map.set(e,n),this._map2.set(i,n),n}}class FE{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var JU;function Jbt(c){return!c||typeof c!="string"?!0:c.trim().length===0}const Kii=/{(\d+)}/g;function p9(c,...e){return e.length===0?c:c.replace(Kii,function(i,n){const s=parseInt(n,10);return isNaN(s)||s<0||s>=e.length?i:e[s]})}function Qii(c){return c.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function Gee(c){return c.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Cw(c){return c.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Xii(c,e=" "){const i=pne(c,e);return Gbt(i,e)}function pne(c,e){if(!c||!e)return c;const i=e.length;if(i===0||c.length===0)return c;let n=0;for(;c.indexOf(e,n)===n;)n=n+i;return c.substring(n)}function Gbt(c,e){if(!c||!e)return c;const i=e.length,n=c.length;if(i===0||n===0)return c;let s=n,l=-1;for(;l=c.lastIndexOf(e,s-1),!(l===-1||l+i!==s);){if(l===0)return"";s=l}return c.substring(0,s)}function Zii(c){return c.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Yii(c){return c.replace(/\*/g,"")}function Kbt(c,e,i={}){if(!c)throw new Error("Cannot create regex from empty string");e||(c=Cw(c)),i.wholeWord&&(/\B/.test(c.charAt(0))||(c="\\b"+c),/\B/.test(c.charAt(c.length-1))||(c=c+"\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(c,n)}function eni(c){return c.source==="^"||c.source==="^$"||c.source==="$"||c.source==="^\\s*$"?!1:!!(c.exec("")&&c.lastIndex===0)}function wL(c){return c.split(/\r\n|\r|\n/)}function tni(c){var e;const i=[],n=c.split(/(\r\n|\r|\n)/);for(let s=0;s=0;i--){const n=c.charCodeAt(i);if(n!==32&&n!==9)return i}return-1}function Fte(c,e){return ce?1:0}function kHe(c,e,i=0,n=c.length,s=0,l=e.length){for(;iy)return 1}const d=n-i,f=l-s;return df?1:0}function M5e(c,e){return gne(c,e,0,c.length,0,e.length)}function gne(c,e,i=0,n=c.length,s=0,l=e.length){for(;i=128||y>=128)return kHe(c.toLowerCase(),e.toLowerCase(),i,n,s,l);bM(g)&&(g-=32),bM(y)&&(y-=32);const w=g-y;if(w!==0)return w}const d=n-i,f=l-s;return df?1:0}function pge(c){return c>=48&&c<=57}function bM(c){return c>=97&&c<=122}function WN(c){return c>=65&&c<=90}function Jz(c,e){return c.length===e.length&&gne(c,e)===0}function THe(c,e){const i=e.length;return e.length>c.length?!1:gne(c,e,0,i)===0}function YM(c,e){const i=Math.min(c.length,e.length);let n;for(n=0;n1){const n=c.charCodeAt(e-2);if(Bg(n))return DHe(n,i)}return i}class EHe{get offset(){return this._offset}constructor(e,i=0){this._str=e,this._len=e.length,this._offset=i}setOffset(e){this._offset=e}prevCodePoint(){const e=ini(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=R0e(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class F0e{get offset(){return this._iterator.offset}constructor(e,i=0){this._iterator=new EHe(e,i)}nextGraphemeLength(){const e=CM.getInstance(),i=this._iterator,n=i.offset;let s=e.getGraphemeBreakType(i.nextCodePoint());for(;!i.eol();){const l=i.offset,d=e.getGraphemeBreakType(i.nextCodePoint());if(agt(s,d)){i.setOffset(l);break}s=d}return i.offset-n}prevGraphemeLength(){const e=CM.getInstance(),i=this._iterator,n=i.offset;let s=e.getGraphemeBreakType(i.prevCodePoint());for(;i.offset>0;){const l=i.offset,d=e.getGraphemeBreakType(i.prevCodePoint());if(agt(d,s)){i.setOffset(l);break}s=d}return n-i.offset}eol(){return this._iterator.eol()}}function IHe(c,e){return new F0e(c,e).nextGraphemeLength()}function Qbt(c,e){return new F0e(c,e).prevGraphemeLength()}function nni(c,e){e>0&&g9(c.charCodeAt(e))&&e--;const i=e+IHe(c,e);return[i-Qbt(c,i),i]}let k8e;function rni(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function GU(c){return k8e||(k8e=rni()),k8e.test(c)}const sni=/^[\t\n\r\x20-\x7E]*$/;function mne(c){return sni.test(c)}const Xbt=/[\u2028\u2029]/;function Zbt(c){return Xbt.test(c)}function eR(c){return c>=11904&&c<=55215||c>=63744&&c<=64255||c>=65281&&c<=65374}function NHe(c){return c>=127462&&c<=127487||c===8986||c===8987||c===9200||c===9203||c>=9728&&c<=10175||c===11088||c===11093||c>=127744&&c<=128591||c>=128640&&c<=128764||c>=128992&&c<=129008||c>=129280&&c<=129535||c>=129648&&c<=129782}const oni="\uFEFF";function LHe(c){return!!(c&&c.length>0&&c.charCodeAt(0)===65279)}function ani(c,e=!1){return c?(e&&(c=c.replace(/\\./g,"")),c.toLowerCase()!==c):!1}function Ybt(c){return c=c%(2*26),c<26?String.fromCharCode(97+c):String.fromCharCode(65+c-26)}function agt(c,e){return c===0?e!==5&&e!==7:c===2&&e===3?!1:c===4||c===2||c===3||e===4||e===2||e===3?!0:!(c===8&&(e===8||e===9||e===11||e===12)||(c===11||c===9)&&(e===9||e===10)||(c===12||c===10)&&e===10||e===5||e===13||e===7||c===1||c===13&&e===14||c===6&&e===6)}class CM{static getInstance(){return CM._INSTANCE||(CM._INSTANCE=new CM),CM._INSTANCE}constructor(){this._data=lni()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this._data,n=i.length/3;let s=1;for(;s<=n;)if(ei[3*s+1])s=2*s+1;else return i[3*s+2];return 0}}CM._INSTANCE=null;function lni(){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]")}function cni(c,e){if(c===0)return 0;const i=uni(c,e);if(i!==void 0)return i;const n=new EHe(e,c);return n.prevCodePoint(),n.offset}function uni(c,e){const i=new EHe(e,c);let n=i.prevCodePoint();for(;dni(n)||n===65039||n===8419;){if(i.offset===0)return;n=i.prevCodePoint()}if(!NHe(n))return;let s=i.offset;return s>0&&i.prevCodePoint()===8205&&(s=i.offset),s}function dni(c){return 127995<=c&&c<=127999}const eCt=" ";class m9{static getInstance(e){return JU.cache.get(Array.from(e))}static getLocales(){return JU._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}JU=m9;m9.ambiguousCharacterData=new FE(()=>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]}'));m9.cache=new Gii({getCacheKey:JSON.stringify},c=>{function e(y){const w=new Map;for(let x=0;x!y.startsWith("_")&&y in s);l.length===0&&(l=["_default"]);let d;for(const y of l){const w=e(s[y]);d=n(d,w)}const f=e(s._common),g=i(f,d);return new JU(g)});m9._locales=new FE(()=>Object.keys(JU.ambiguousCharacterData.value).filter(c=>!c.startsWith("_")));class oL{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 getData(){return this._data||(this._data=new Set(oL.getRawData())),this._data}static isInvisibleCharacter(e){return oL.getData().has(e)}static get codePoints(){return oL.getData()}}oL._data=void 0;class R5e{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var i;return(i=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&i!==void 0?i:1}getWindowId(e){return e.vscodeWindowId}}R5e.INSTANCE=new R5e;function tCt(c,e,i){typeof e=="string"&&(e=c.matchMedia(e)),e.addEventListener("change",i)}function fni(c){return R5e.INSTANCE.getZoomFactor(c)}const Bq=navigator.userAgent,ok=Bq.indexOf("Firefox")>=0,e9=Bq.indexOf("AppleWebKit")>=0,vne=Bq.indexOf("Chrome")>=0,q4=!vne&&Bq.indexOf("Safari")>=0,iCt=!vne&&!q4&&e9;Bq.indexOf("Electron/")>=0;const lgt=Bq.indexOf("Android")>=0;let Vme=!1;if(typeof ed.matchMedia=="function"){const c=ed.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=ed.matchMedia("(display-mode: fullscreen)");Vme=c.matches,tCt(ed,c,({matches:i})=>{Vme&&e.matches||(Vme=i)})}function hni(){return Vme}const PHe={clipboard:{writeText:mE||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:mE||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:mE||hni()?0:navigator.keyboard||q4?1:2,touch:"ontouchstart"in ed||navigator.maxTouchPoints>0,pointerEvents:ed.PointerEvent&&("ontouchstart"in ed||navigator.maxTouchPoints>0)};function F5e(c,e){if(typeof c=="number"){if(c===0)return null;const i=(c&65535)>>>0,n=(c&4294901760)>>>16;return n!==0?new T8e([gge(i,e),gge(n,e)]):new T8e([gge(i,e)])}else{const i=[];for(let n=0;n{const d=e.token.onCancellationRequested(()=>{d.dispose(),l(new DE)});Promise.resolve(i).then(f=>{d.dispose(),e.dispose(),s(f)},f=>{d.dispose(),e.dispose(),l(f)})});return new class{cancel(){e.cancel(),e.dispose()}then(s,l){return n.then(s,l)}catch(s){return this.then(void 0,s)}finally(s){return n.finally(s)}}}function yne(c,e,i){return new Promise((n,s)=>{const l=e.onCancellationRequested(()=>{l.dispose(),n(i)});c.then(n,s).finally(()=>l.dispose())})}class wni{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const i=()=>{if(this.queuedPromise=null,this.isDisposed)return;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(i,i).then(n)})}return new Promise((i,n)=>{this.queuedPromise.then(i,n)})}return this.activePromise=e(),new Promise((i,n)=>{this.activePromise.then(s=>{this.activePromise=null,i(s)},s=>{this.activePromise=null,n(s)})})}dispose(){this.isDisposed=!0}}const xni=(c,e)=>{let i=!0;const n=setTimeout(()=>{i=!1,e()},c);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},kni=c=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,c())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class hT{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,i=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,l)=>{this.doResolve=s,this.doReject=l}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const n=()=>{var s;this.deferred=null,(s=this.doResolve)===null||s===void 0||s.call(this,null)};return this.deferred=i===nCt?kni(n):xni(i,n),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new DE),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class rCt{constructor(e){this.delayer=new hT(e),this.throttler=new wni}trigger(e,i){return this.delayer.trigger(()=>this.throttler.queue(e),i)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function J4(c,e){return e?new Promise((i,n)=>{const s=setTimeout(()=>{l.dispose(),i()},c),l=e.onCancellationRequested(()=>{clearTimeout(s),l.dispose(),n(new DE)})}):Hg(i=>J4(c,i))}function tR(c,e=0,i){const n=setTimeout(()=>{c(),i&&s.dispose()},e),s=go(()=>{clearTimeout(n),i==null||i.deleteAndLeak(s)});return i==null||i.add(s),s}function AHe(c,e=n=>!!n,i=null){let n=0;const s=c.length,l=()=>{if(n>=s)return Promise.resolve(i);const d=c[n++];return Promise.resolve(d()).then(g=>e(g)?Promise.resolve(g):l())};return l()}class gT{constructor(e,i){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof i=="number"&&this.setIfNotSet(e,i)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,i){if(this._isDisposed)throw new Yu("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},i)}setIfNotSet(e,i){if(this._isDisposed)throw new Yu("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},i))}}class OHe{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)===null||e===void 0||e.dispose(),this.disposable=void 0}cancelAndSet(e,i,n=globalThis){if(this.isDisposed)throw new Yu("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=n.setInterval(()=>{e()},i);this.disposable=go(()=>{n.clearInterval(s),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class id{constructor(e,i){this.timeoutToken=-1,this.runner=e,this.timeout=i,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let sCt,Kee;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?Kee=(c,e)=>{xbt(()=>{if(i)return;const n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:Kee=(c,e,i)=>{const n=c.requestIdleCallback(e,typeof i=="number"?{timeout:i}:void 0);let s=!1;return{dispose(){s||(s=!0,c.cancelIdleCallback(n))}}},sCt=c=>Kee(globalThis,c)})();class oCt{constructor(e,i){this._didRun=!1,this._executor=()=>{try{this._value=i()}catch(n){this._error=n}finally{this._didRun=!0}},this._handle=Kee(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class Tni extends oCt{constructor(e){super(globalThis,e)}}class bne{get isRejected(){var e;return((e=this.outcome)===null||e===void 0?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,i)=>{this.completeCallback=e,this.errorCallback=i})}complete(e){return new Promise(i=>{this.completeCallback(e),this.outcome={outcome:0,value:e},i()})}error(e){return new Promise(i=>{this.errorCallback(e),this.outcome={outcome:1,value:e},i()})}cancel(){return this.error(new DE)}}var W5e;(function(c){async function e(n){let s;const l=await Promise.all(n.map(d=>d.then(f=>f,f=>{s||(s=f)})));if(typeof s<"u")throw s;return l}c.settled=e;function i(n){return new Promise(async(s,l)=>{try{await n(s,l)}catch(d){l(d)}})}c.withAsyncBody=i})(W5e||(W5e={}));class pp{static fromArray(e){return new pp(i=>{i.emitMany(e)})}static fromPromise(e){return new pp(async i=>{i.emitMany(await e)})}static fromPromises(e){return new pp(async i=>{await Promise.all(e.map(async n=>i.emitOne(await n)))})}static merge(e){return new pp(async i=>{await Promise.all(e.map(async n=>{for await(const s of n)i.emitOne(s)}))})}constructor(e,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new ui,queueMicrotask(async()=>{const n={emitOne:s=>this.emitOne(s),emitMany:s=>this.emitMany(s),reject:s=>this.reject(s)};try{await Promise.resolve(e(n)),this.resolve()}catch(s){this.reject(s)}finally{n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e{var i;return(i=this._onReturn)===null||i===void 0||i.call(this),{done:!0,value:void 0}}}}static map(e,i){return new pp(async n=>{for await(const s of e)n.emitOne(i(s))})}map(e){return pp.map(this,e)}static filter(e,i){return new pp(async n=>{for await(const s of e)i(s)&&n.emitOne(s)})}filter(e){return pp.filter(this,e)}static coalesce(e){return pp.filter(e,i=>!!i)}coalesce(){return pp.coalesce(this)}static async toPromise(e){const i=[];for await(const n of e)i.push(n);return i}toPromise(){return pp.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}pp.EMPTY=pp.fromArray([]);class Dni extends pp{constructor(e,i){super(i),this._source=e}cancel(){this._source.cancel()}}function Eni(c){const e=new uh,i=c(e.token);return new Dni(e,async n=>{const s=e.token.onCancellationRequested(()=>{s.dispose(),e.dispose(),n.reject(new DE)});try{for await(const l of i){if(e.token.isCancellationRequested)return;n.emitOne(l)}s.dispose(),e.dispose()}catch(l){s.dispose(),e.dispose(),n.reject(l)}})}/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:aCt,setPrototypeOf:ugt,isFrozen:Ini,getPrototypeOf:Nni,getOwnPropertyDescriptor:Lni}=Object;let{freeze:jC,seal:EE,create:Pni}=Object,{apply:V5e,construct:H5e}=typeof Reflect<"u"&&Reflect;V5e||(V5e=function(e,i,n){return e.apply(i,n)});jC||(jC=function(e){return e});EE||(EE=function(e){return e});H5e||(H5e=function(e,i){return new e(...i)});const Ani=_T(Array.prototype.forEach),dgt=_T(Array.prototype.pop),UY=_T(Array.prototype.push),Hme=_T(String.prototype.toLowerCase),D8e=_T(String.prototype.toString),Oni=_T(String.prototype.match),GD=_T(String.prototype.replace),Mni=_T(String.prototype.indexOf),Rni=_T(String.prototype.trim),qx=_T(RegExp.prototype.test),qY=Fni(TypeError);function _T(c){return function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s/gm),jni=EE(/\${[\w\W]*}/gm),zni=EE(/^data-[\-\w.\u00B7-\uFFFF]/),Uni=EE(/^aria-[\-\w]+$/),lCt=EE(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qni=EE(/^(?:\w+script|data):/i),$ni=EE(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cCt=EE(/^html$/i);var ggt=Object.freeze({__proto__:null,MUSTACHE_EXPR:Vni,ERB_EXPR:Hni,TMPLIT_EXPR:jni,DATA_ATTR:zni,ARIA_ATTR:Uni,IS_ALLOWED_URI:lCt,IS_SCRIPT_OR_DATA:qni,ATTR_WHITESPACE:$ni,DOCTYPE_NAME:cCt});const Jni=()=>typeof window>"u"?null:window,Gni=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";i&&i.hasAttribute(s)&&(n=i.getAttribute(s));const l="dompurify"+(n?"#"+n:"");try{return e.createPolicy(l,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function uCt(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jni();const e=Za=>uCt(Za);if(e.version="3.0.5",e.removed=[],!c||!c.document||c.document.nodeType!==9)return e.isSupported=!1,e;const i=c.document,n=i.currentScript;let{document:s}=c;const{DocumentFragment:l,HTMLTemplateElement:d,Node:f,Element:g,NodeFilter:y,NamedNodeMap:w=c.NamedNodeMap||c.MozNamedAttrMap,HTMLFormElement:x,DOMParser:I,trustedTypes:P}=c,O=g.prototype,W=mge(O,"cloneNode"),X=mge(O,"nextSibling"),Z=mge(O,"childNodes"),ee=mge(O,"parentNode");if(typeof d=="function"){const Za=s.createElement("template");Za.content&&Za.content.ownerDocument&&(s=Za.content.ownerDocument)}let he,we="";const{implementation:Te,createNodeIterator:Be,createDocumentFragment:Me,getElementsByTagName:vt}=s,{importNode:Nt}=i;let Ni={};e.isSupported=typeof aCt=="function"&&typeof ee=="function"&&Te&&Te.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ci,ERB_EXPR:Mt,TMPLIT_EXPR:pi,DATA_ATTR:gn,ARIA_ATTR:$n,IS_SCRIPT_OR_DATA:Ri,ATTR_WHITESPACE:ao}=ggt;let{IS_ALLOWED_URI:Xs}=ggt,Yt=null;const na=Xu({},[...fgt,...E8e,...I8e,...N8e,...hgt]);let Is=null;const zs=Xu({},[..._gt,...L8e,...pgt,...vge]);let Ln=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),bd=null,zg=null,s_=!0,Wc=!0,ns=!1,fh=!0,yp=!1,ka=!1,o_=!1,My=!1,F0=!1,Lw=!1,Rt=!1,Ry=!0,no=!1;const a$="user-content-";let mr=!0,Mn=!1,Nn={},jt=null;const ti=Xu({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yi=null;const Ei=Xu({},["audio","video","img","source","image","track"]);let fr=null;const ys=Xu({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qs="http://www.w3.org/1998/Math/MathML",Mo="http://www.w3.org/2000/svg",ul="http://www.w3.org/1999/xhtml";let xi=ul,au=!1,Wu=null;const un=Xu({},[qs,Mo,ul],D8e);let Cc;const gu=["application/xhtml+xml","text/html"],Pb="text/html";let tc,Mh=null;const $p=s.createElement("form"),mk=function(Pn){return Pn instanceof RegExp||Pn instanceof Function},bp=function(Pn){if(!(Mh&&Mh===Pn)){if((!Pn||typeof Pn!="object")&&(Pn={}),Pn=mz(Pn),Cc=gu.indexOf(Pn.PARSER_MEDIA_TYPE)===-1?Cc=Pb:Cc=Pn.PARSER_MEDIA_TYPE,tc=Cc==="application/xhtml+xml"?D8e:Hme,Yt="ALLOWED_TAGS"in Pn?Xu({},Pn.ALLOWED_TAGS,tc):na,Is="ALLOWED_ATTR"in Pn?Xu({},Pn.ALLOWED_ATTR,tc):zs,Wu="ALLOWED_NAMESPACES"in Pn?Xu({},Pn.ALLOWED_NAMESPACES,D8e):un,fr="ADD_URI_SAFE_ATTR"in Pn?Xu(mz(ys),Pn.ADD_URI_SAFE_ATTR,tc):ys,Yi="ADD_DATA_URI_TAGS"in Pn?Xu(mz(Ei),Pn.ADD_DATA_URI_TAGS,tc):Ei,jt="FORBID_CONTENTS"in Pn?Xu({},Pn.FORBID_CONTENTS,tc):ti,bd="FORBID_TAGS"in Pn?Xu({},Pn.FORBID_TAGS,tc):{},zg="FORBID_ATTR"in Pn?Xu({},Pn.FORBID_ATTR,tc):{},Nn="USE_PROFILES"in Pn?Pn.USE_PROFILES:!1,s_=Pn.ALLOW_ARIA_ATTR!==!1,Wc=Pn.ALLOW_DATA_ATTR!==!1,ns=Pn.ALLOW_UNKNOWN_PROTOCOLS||!1,fh=Pn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,yp=Pn.SAFE_FOR_TEMPLATES||!1,ka=Pn.WHOLE_DOCUMENT||!1,F0=Pn.RETURN_DOM||!1,Lw=Pn.RETURN_DOM_FRAGMENT||!1,Rt=Pn.RETURN_TRUSTED_TYPE||!1,My=Pn.FORCE_BODY||!1,Ry=Pn.SANITIZE_DOM!==!1,no=Pn.SANITIZE_NAMED_PROPS||!1,mr=Pn.KEEP_CONTENT!==!1,Mn=Pn.IN_PLACE||!1,Xs=Pn.ALLOWED_URI_REGEXP||lCt,xi=Pn.NAMESPACE||ul,Ln=Pn.CUSTOM_ELEMENT_HANDLING||{},Pn.CUSTOM_ELEMENT_HANDLING&&mk(Pn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ln.tagNameCheck=Pn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Pn.CUSTOM_ELEMENT_HANDLING&&mk(Pn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ln.attributeNameCheck=Pn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Pn.CUSTOM_ELEMENT_HANDLING&&typeof Pn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ln.allowCustomizedBuiltInElements=Pn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),yp&&(Wc=!1),Lw&&(F0=!0),Nn&&(Yt=Xu({},[...hgt]),Is=[],Nn.html===!0&&(Xu(Yt,fgt),Xu(Is,_gt)),Nn.svg===!0&&(Xu(Yt,E8e),Xu(Is,L8e),Xu(Is,vge)),Nn.svgFilters===!0&&(Xu(Yt,I8e),Xu(Is,L8e),Xu(Is,vge)),Nn.mathMl===!0&&(Xu(Yt,N8e),Xu(Is,pgt),Xu(Is,vge))),Pn.ADD_TAGS&&(Yt===na&&(Yt=mz(Yt)),Xu(Yt,Pn.ADD_TAGS,tc)),Pn.ADD_ATTR&&(Is===zs&&(Is=mz(Is)),Xu(Is,Pn.ADD_ATTR,tc)),Pn.ADD_URI_SAFE_ATTR&&Xu(fr,Pn.ADD_URI_SAFE_ATTR,tc),Pn.FORBID_CONTENTS&&(jt===ti&&(jt=mz(jt)),Xu(jt,Pn.FORBID_CONTENTS,tc)),mr&&(Yt["#text"]=!0),ka&&Xu(Yt,["html","head","body"]),Yt.table&&(Xu(Yt,["tbody"]),delete bd.tbody),Pn.TRUSTED_TYPES_POLICY){if(typeof Pn.TRUSTED_TYPES_POLICY.createHTML!="function")throw qY('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Pn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qY('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');he=Pn.TRUSTED_TYPES_POLICY,we=he.createHTML("")}else he===void 0&&(he=Gni(P,n)),he!==null&&typeof we=="string"&&(we=he.createHTML(""));jC&&jC(Pn),Mh=Pn}},lu=Xu({},["mi","mo","mn","ms","mtext"]),Pw=Xu({},["foreignobject","desc","title","annotation-xml"]),ma=Xu({},["title","style","font","a","script"]),vT=Xu({},E8e);Xu(vT,I8e),Xu(vT,Bni);const Ql=Xu({},N8e);Xu(Ql,Wni);const La=function(Pn){let Fn=ee(Pn);(!Fn||!Fn.tagName)&&(Fn={namespaceURI:xi,tagName:"template"});const qo=Hme(Pn.tagName),Nf=Hme(Fn.tagName);return Wu[Pn.namespaceURI]?Pn.namespaceURI===Mo?Fn.namespaceURI===ul?qo==="svg":Fn.namespaceURI===qs?qo==="svg"&&(Nf==="annotation-xml"||lu[Nf]):!!vT[qo]:Pn.namespaceURI===qs?Fn.namespaceURI===ul?qo==="math":Fn.namespaceURI===Mo?qo==="math"&&Pw[Nf]:!!Ql[qo]:Pn.namespaceURI===ul?Fn.namespaceURI===Mo&&!Pw[Nf]||Fn.namespaceURI===qs&&!lu[Nf]?!1:!Ql[qo]&&(ma[qo]||!vT[qo]):!!(Cc==="application/xhtml+xml"&&Wu[Pn.namespaceURI]):!1},a_=function(Pn){UY(e.removed,{element:Pn});try{Pn.parentNode.removeChild(Pn)}catch{Pn.remove()}},zE=function(Pn,Fn){try{UY(e.removed,{attribute:Fn.getAttributeNode(Pn),from:Fn})}catch{UY(e.removed,{attribute:null,from:Fn})}if(Fn.removeAttribute(Pn),Pn==="is"&&!Is[Pn])if(F0||Lw)try{a_(Fn)}catch{}else try{Fn.setAttribute(Pn,"")}catch{}},ag=function(Pn){let Fn,qo;if(My)Pn=""+Pn;else{const By=Oni(Pn,/^[\r\n\t ]+/);qo=By&&By[0]}Cc==="application/xhtml+xml"&&xi===ul&&(Pn=''+Pn+"");const Nf=he?he.createHTML(Pn):Pn;if(xi===ul)try{Fn=new I().parseFromString(Nf,Cc)}catch{}if(!Fn||!Fn.documentElement){Fn=Te.createDocument(xi,"template",null);try{Fn.documentElement.innerHTML=au?we:Nf}catch{}}const P_=Fn.body||Fn.documentElement;return Pn&&qo&&P_.insertBefore(s.createTextNode(qo),P_.childNodes[0]||null),xi===ul?vt.call(Fn,ka?"html":"body")[0]:ka?Fn.documentElement:P_},IL=function(Pn){return Be.call(Pn.ownerDocument||Pn,Pn,y.SHOW_ELEMENT|y.SHOW_COMMENT|y.SHOW_TEXT,null,!1)},Fy=function(Pn){return Pn instanceof x&&(typeof Pn.nodeName!="string"||typeof Pn.textContent!="string"||typeof Pn.removeChild!="function"||!(Pn.attributes instanceof w)||typeof Pn.removeAttribute!="function"||typeof Pn.setAttribute!="function"||typeof Pn.namespaceURI!="string"||typeof Pn.insertBefore!="function"||typeof Pn.hasChildNodes!="function")},QC=function(Pn){return typeof f=="object"?Pn instanceof f:Pn&&typeof Pn=="object"&&typeof Pn.nodeType=="number"&&typeof Pn.nodeName=="string"},nd=function(Pn,Fn,qo){Ni[Pn]&&Ani(Ni[Pn],Nf=>{Nf.call(e,Fn,qo,Mh)})},Ab=function(Pn){let Fn;if(nd("beforeSanitizeElements",Pn,null),Fy(Pn))return a_(Pn),!0;const qo=tc(Pn.nodeName);if(nd("uponSanitizeElement",Pn,{tagName:qo,allowedTags:Yt}),Pn.hasChildNodes()&&!QC(Pn.firstElementChild)&&(!QC(Pn.content)||!QC(Pn.content.firstElementChild))&&qx(/<[/\w]/g,Pn.innerHTML)&&qx(/<[/\w]/g,Pn.textContent))return a_(Pn),!0;if(!Yt[qo]||bd[qo]){if(!bd[qo]&&u6(qo)&&(Ln.tagNameCheck instanceof RegExp&&qx(Ln.tagNameCheck,qo)||Ln.tagNameCheck instanceof Function&&Ln.tagNameCheck(qo)))return!1;if(mr&&!jt[qo]){const Nf=ee(Pn)||Pn.parentNode,P_=Z(Pn)||Pn.childNodes;if(P_&&Nf){const By=P_.length;for(let hh=By-1;hh>=0;--hh)Nf.insertBefore(W(P_[hh],!0),X(Pn))}}return a_(Pn),!0}return Pn instanceof g&&!La(Pn)||(qo==="noscript"||qo==="noembed"||qo==="noframes")&&qx(/<\/no(script|embed|frames)/i,Pn.innerHTML)?(a_(Pn),!0):(yp&&Pn.nodeType===3&&(Fn=Pn.textContent,Fn=GD(Fn,ci," "),Fn=GD(Fn,Mt," "),Fn=GD(Fn,pi," "),Pn.textContent!==Fn&&(UY(e.removed,{element:Pn.cloneNode()}),Pn.textContent=Fn)),nd("afterSanitizeElements",Pn,null),!1)},Vl=function(Pn,Fn,qo){if(Ry&&(Fn==="id"||Fn==="name")&&(qo in s||qo in $p))return!1;if(!(Wc&&!zg[Fn]&&qx(gn,Fn))){if(!(s_&&qx($n,Fn))){if(!Is[Fn]||zg[Fn]){if(!(u6(Pn)&&(Ln.tagNameCheck instanceof RegExp&&qx(Ln.tagNameCheck,Pn)||Ln.tagNameCheck instanceof Function&&Ln.tagNameCheck(Pn))&&(Ln.attributeNameCheck instanceof RegExp&&qx(Ln.attributeNameCheck,Fn)||Ln.attributeNameCheck instanceof Function&&Ln.attributeNameCheck(Fn))||Fn==="is"&&Ln.allowCustomizedBuiltInElements&&(Ln.tagNameCheck instanceof RegExp&&qx(Ln.tagNameCheck,qo)||Ln.tagNameCheck instanceof Function&&Ln.tagNameCheck(qo))))return!1}else if(!fr[Fn]){if(!qx(Xs,GD(qo,ao,""))){if(!((Fn==="src"||Fn==="xlink:href"||Fn==="href")&&Pn!=="script"&&Mni(qo,"data:")===0&&Yi[Pn])){if(!(ns&&!qx(Ri,GD(qo,ao,"")))){if(qo)return!1}}}}}}return!0},u6=function(Pn){return Pn.indexOf("-")>0},wm=function(Pn){let Fn,qo,Nf,P_;nd("beforeSanitizeAttributes",Pn,null);const{attributes:By}=Pn;if(!By)return;const hh={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Is};for(P_=By.length;P_--;){Fn=By[P_];const{name:xv,namespaceURI:d6}=Fn;if(qo=xv==="value"?Fn.value:Rni(Fn.value),Nf=tc(xv),hh.attrName=Nf,hh.attrValue=qo,hh.keepAttr=!0,hh.forceKeepAttr=void 0,nd("uponSanitizeAttribute",Pn,hh),qo=hh.attrValue,hh.forceKeepAttr||(zE(xv,Pn),!hh.keepAttr))continue;if(!fh&&qx(/\/>/i,qo)){zE(xv,Pn);continue}yp&&(qo=GD(qo,ci," "),qo=GD(qo,Mt," "),qo=GD(qo,pi," "));const fB=tc(Pn.nodeName);if(Vl(fB,Nf,qo)){if(no&&(Nf==="id"||Nf==="name")&&(zE(xv,Pn),qo=a$+qo),he&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!d6)switch(P.getAttributeType(fB,Nf)){case"TrustedHTML":{qo=he.createHTML(qo);break}case"TrustedScriptURL":{qo=he.createScriptURL(qo);break}}try{d6?Pn.setAttributeNS(d6,xv,qo):Pn.setAttribute(xv,qo),dgt(e.removed)}catch{}}}nd("afterSanitizeAttributes",Pn,null)},ure=function Za(Pn){let Fn;const qo=IL(Pn);for(nd("beforeSanitizeShadowDOM",Pn,null);Fn=qo.nextNode();)nd("uponSanitizeShadowNode",Fn,null),!Ab(Fn)&&(Fn.content instanceof l&&Za(Fn.content),wm(Fn));nd("afterSanitizeShadowDOM",Pn,null)};return e.sanitize=function(Za){let Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fn,qo,Nf,P_;if(au=!Za,au&&(Za=""),typeof Za!="string"&&!QC(Za))if(typeof Za.toString=="function"){if(Za=Za.toString(),typeof Za!="string")throw qY("dirty is not a string, aborting")}else throw qY("toString is not a function");if(!e.isSupported)return Za;if(o_||bp(Pn),e.removed=[],typeof Za=="string"&&(Mn=!1),Mn){if(Za.nodeName){const xv=tc(Za.nodeName);if(!Yt[xv]||bd[xv])throw qY("root node is forbidden and cannot be sanitized in-place")}}else if(Za instanceof f)Fn=ag(""),qo=Fn.ownerDocument.importNode(Za,!0),qo.nodeType===1&&qo.nodeName==="BODY"||qo.nodeName==="HTML"?Fn=qo:Fn.appendChild(qo);else{if(!F0&&!yp&&!ka&&Za.indexOf("<")===-1)return he&&Rt?he.createHTML(Za):Za;if(Fn=ag(Za),!Fn)return F0?null:Rt?we:""}Fn&&My&&a_(Fn.firstChild);const By=IL(Mn?Za:Fn);for(;Nf=By.nextNode();)Ab(Nf)||(Nf.content instanceof l&&ure(Nf.content),wm(Nf));if(Mn)return Za;if(F0){if(Lw)for(P_=Me.call(Fn.ownerDocument);Fn.firstChild;)P_.appendChild(Fn.firstChild);else P_=Fn;return(Is.shadowroot||Is.shadowrootmode)&&(P_=Nt.call(i,P_,!0)),P_}let hh=ka?Fn.outerHTML:Fn.innerHTML;return ka&&Yt["!doctype"]&&Fn.ownerDocument&&Fn.ownerDocument.doctype&&Fn.ownerDocument.doctype.name&&qx(cCt,Fn.ownerDocument.doctype.name)&&(hh="
+`+hh),yp&&(hh=GD(hh,ci," "),hh=GD(hh,Mt," "),hh=GD(hh,pi," ")),he&&Rt?he.createHTML(hh):hh},e.setConfig=function(Za){bp(Za),o_=!0},e.clearConfig=function(){Mh=null,o_=!1},e.isValidAttribute=function(Za,Pn,Fn){Mh||bp({});const qo=tc(Za),Nf=tc(Pn);return Vl(qo,Nf,Fn)},e.addHook=function(Za,Pn){typeof Pn=="function"&&(Ni[Za]=Ni[Za]||[],UY(Ni[Za],Pn))},e.removeHook=function(Za){if(Ni[Za])return dgt(Ni[Za])},e.removeHooks=function(Za){Ni[Za]&&(Ni[Za]=[])},e.removeAllHooks=function(){Ni={}},e}var xL=uCt();xL.version;xL.isSupported;const dCt=xL.sanitize;xL.setConfig;xL.clearConfig;xL.isValidAttribute;const fCt=xL.addHook,hCt=xL.removeHook;xL.removeHooks;xL.removeAllHooks;var wa;(function(c){c.inMemory="inmemory",c.vscode="vscode",c.internal="private",c.walkThrough="walkThrough",c.walkThroughSnippet="walkThroughSnippet",c.http="http",c.https="https",c.file="file",c.mailto="mailto",c.untitled="untitled",c.data="data",c.command="command",c.vscodeRemote="vscode-remote",c.vscodeRemoteResource="vscode-remote-resource",c.vscodeManagedRemoteResource="vscode-managed-remote-resource",c.vscodeUserData="vscode-userdata",c.vscodeCustomEditor="vscode-custom-editor",c.vscodeNotebookCell="vscode-notebook-cell",c.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",c.vscodeNotebookCellOutput="vscode-notebook-cell-output",c.vscodeInteractiveInput="vscode-interactive-input",c.vscodeSettings="vscode-settings",c.vscodeWorkspaceTrust="vscode-workspace-trust",c.vscodeTerminal="vscode-terminal",c.vscodeChatCodeBlock="vscode-chat-code-block",c.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",c.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",c.vscodeChatSesssion="vscode-chat-editor",c.webviewPanel="webview-panel",c.vscodeWebview="vscode-webview",c.extension="extension",c.vscodeFileResource="vscode-file",c.tmp="tmp",c.vsls="vsls",c.vscodeSourceControl="vscode-scm",c.commentsInput="comment",c.codeSetting="code-setting"})(wa||(wa={}));function MHe(c,e){return Oo.isUri(c)?Jz(c.scheme,e):THe(c,e+":")}function j5e(c,...e){return e.some(i=>MHe(c,i))}const Kni="tkn";class Qni{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return gp.join(this._serverRootPath,wa.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(f){return Ba(f),e}const i=e.authority;let n=this._hosts[i];n&&n.indexOf(":")!==-1&&n.indexOf("[")===-1&&(n=`[${n}]`);const s=this._ports[i],l=this._connectionTokens[i];let d=`path=${encodeURIComponent(e.path)}`;return typeof l=="string"&&(d+=`&${Kni}=${encodeURIComponent(l)}`),Oo.from({scheme:xR?this._preferredWebSchema:wa.vscodeRemoteResource,authority:`${n}:${s}`,path:this._remoteResourcesPath,query:d})}}const _Ct=new Qni,Xni="vscode-app";class Bte{uriToBrowserUri(e){return e.scheme===wa.vscodeRemote?_Ct.rewrite(e):e.scheme===wa.file&&(mE||sti===`${wa.vscodeFileResource}://${Bte.FALLBACK_AUTHORITY}`)?e.with({scheme:wa.vscodeFileResource,authority:e.authority||Bte.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Bte.FALLBACK_AUTHORITY=Xni;const pCt=new Bte;var mgt;(function(c){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);c.CoopAndCoep=Object.freeze(e.get("3"));const i="vscode-coi";function n(l){let d;typeof l=="string"?d=new URL(l).searchParams:l instanceof URL?d=l.searchParams:Oo.isUri(l)&&(d=new URL(l.toString(!0)).searchParams);const f=d==null?void 0:d.get(i);if(f)return e.get(f)}c.getHeadersFromQuery=n;function s(l,d,f){if(!globalThis.crossOriginIsolated)return;const g=d&&f?"3":f?"2":"1";l instanceof URLSearchParams?l.set(i,g):l[i]=g}c.addSearchParam=s})(mgt||(mgt={}));function R1e(c){return F1e(c,0)}function F1e(c,e){switch(typeof c){case"object":return c===null?v4(349,e):Array.isArray(c)?Yni(c,e):eri(c,e);case"string":return RHe(c,e);case"boolean":return Zni(c,e);case"number":return v4(c,e);case"undefined":return v4(937,e);default:return v4(617,e)}}function v4(c,e){return(e<<5)-e+c|0}function Zni(c,e){return v4(c?433:863,e)}function RHe(c,e){e=v4(149417,e);for(let i=0,n=c.length;iF1e(n,i),e)}function eri(c,e){return e=v4(181387,e),Object.keys(c).sort().reduce((i,n)=>(i=RHe(n,i),F1e(c[n],i)),e)}function P8e(c,e,i=32){const n=i-e,s=~((1<>>n)>>>0}function vgt(c,e=0,i=c.byteLength,n=0){for(let s=0;si.toString(16).padStart(2,"0")).join(""):tri((c>>>0).toString(16),e/4)}class B1e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const i=e.length;if(i===0)return;const n=this._buff;let s=this._buffLen,l=this._leftoverHighSurrogate,d,f;for(l!==0?(d=l,f=-1,l=0):(d=e.charCodeAt(0),f=0);;){let g=d;if(Bg(d))if(f+1>>6,e[i++]=128|(n&63)>>>0):n<65536?(e[i++]=224|(n&61440)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0):(e[i++]=240|(n&1835008)>>>18,e[i++]=128|(n&258048)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0),i>=64&&(this._step(),i-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),i}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),$Y(this._h0)+$Y(this._h1)+$Y(this._h2)+$Y(this._h3)+$Y(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,vgt(this._buff,this._buffLen),this._buffLen>56&&(this._step(),vgt(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=B1e._bigBlock32,i=this._buffDV;for(let x=0;x<64;x+=4)e.setUint32(x,i.getUint32(x,!1),!1);for(let x=64;x<320;x+=4)e.setUint32(x,P8e(e.getUint32(x-12,!1)^e.getUint32(x-32,!1)^e.getUint32(x-56,!1)^e.getUint32(x-64,!1),1),!1);let n=this._h0,s=this._h1,l=this._h2,d=this._h3,f=this._h4,g,y,w;for(let x=0;x<80;x++)x<20?(g=s&l|~s&d,y=1518500249):x<40?(g=s^l^d,y=1859775393):x<60?(g=s&l|s&d|l&d,y=2400959708):(g=s^l^d,y=3395469782),w=P8e(n,5)+g+f+y+e.getUint32(x*4,!1)&4294967295,f=d,d=l,l=P8e(s,30),s=n,n=w;this._h0=this._h0+n&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+f&4294967295}}B1e._bigBlock32=new DataView(new ArrayBuffer(320));const{registerWindow:yAi,getWindow:Io,getDocument:bAi,getWindows:gCt,getWindowsCount:iri,getWindowId:B0e,getWindowById:ygt,hasWindow:CAi,onDidRegisterWindow:W1e,onWillUnregisterWindow:nri,onDidUnregisterWindow:rri}=function(){const c=new Map;Jii(ed,1);const e={window:ed,disposables:new On};c.set(ed.vscodeWindowId,e);const i=new ui,n=new ui,s=new ui;function l(d,f){const g=typeof d=="number"?c.get(d):void 0;return g??(f?e:void 0)}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:n.event,registerWindow(d){if(c.has(d.vscodeWindowId))return Ii.None;const f=new On,g={window:d,disposables:f.add(new On)};return c.set(d.vscodeWindowId,g),f.add(go(()=>{c.delete(d.vscodeWindowId),n.fire(d)})),f.add(tn(d,yr.BEFORE_UNLOAD,()=>{s.fire(d)})),i.fire(g),f},getWindows(){return c.values()},getWindowsCount(){return c.size},getWindowId(d){return d.vscodeWindowId},hasWindow(d){return c.has(d)},getWindowById:l,getWindow(d){var f;const g=d;if(!((f=g==null?void 0:g.ownerDocument)===null||f===void 0)&&f.defaultView)return g.ownerDocument.defaultView.window;const y=d;return y!=null&&y.view?y.view.window:ed},getDocument(d){return Io(d).document}}}();function n0(c){for(;c.firstChild;)c.firstChild.remove()}class sri{constructor(e,i,n,s){this._node=e,this._type=i,this._handler=n,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function tn(c,e,i,n){return new sri(c,e,i,n)}function mCt(c,e){return function(i){return e(new sT(c,i))}}function ori(c){return function(e){return c(new Fd(e))}}const n_=function(e,i,n,s){let l=n;return i==="click"||i==="mousedown"||i==="contextmenu"?l=mCt(Io(e),n):(i==="keydown"||i==="keypress"||i==="keyup")&&(l=ori(n)),tn(e,i,l,s)},ari=function(e,i,n){const s=mCt(Io(e),i);return lri(e,s,n)};function lri(c,e,i){return tn(c,TE&&PHe.pointerEvents?yr.POINTER_DOWN:yr.MOUSE_DOWN,e,i)}function Cee(c,e,i){return Kee(c,e,i)}class A8e extends oCt{constructor(e,i){super(e,i)}}let W0e,zC;class FHe extends OHe{constructor(e){super(),this.defaultTarget=e&&Io(e)}cancelAndSet(e,i,n){return super.cancelAndSet(e,i,n??this.defaultTarget)}}class O8e{constructor(e,i=0){this._runner=e,this.priority=i,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Ba(e)}}static sort(e,i){return i.priority-e.priority}}(function(){const c=new Map,e=new Map,i=new Map,n=new Map,s=l=>{var d;i.set(l,!1);const f=(d=c.get(l))!==null&&d!==void 0?d:[];for(e.set(l,f),c.set(l,[]),n.set(l,!0);f.length>0;)f.sort(O8e.sort),f.shift().execute();n.set(l,!1)};zC=(l,d,f=0)=>{const g=B0e(l),y=new O8e(d,f);let w=c.get(g);return w||(w=[],c.set(g,w)),w.push(y),i.get(g)||(i.set(g,!0),l.requestAnimationFrame(()=>s(g))),y},W0e=(l,d,f)=>{const g=B0e(l);if(n.get(g)){const y=new O8e(d,f);let w=e.get(g);return w||(w=[],e.set(g,w)),w.push(y),y}else return zC(l,d,f)}})();function V1e(c){return Io(c).getComputedStyle(c,null)}function iR(c,e){const i=Io(c),n=i.document;if(c!==n.body)return new eu(c.clientWidth,c.clientHeight);if(TE&&(i!=null&&i.visualViewport))return new eu(i.visualViewport.width,i.visualViewport.height);if(i!=null&&i.innerWidth&&i.innerHeight)return new eu(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new eu(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new eu(n.documentElement.clientWidth,n.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class T_{static convertToPixels(e,i){return parseFloat(i)||0}static getDimension(e,i,n){const s=V1e(e),l=s?s.getPropertyValue(i):"0";return T_.convertToPixels(e,l)}static getBorderLeftWidth(e){return T_.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return T_.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return T_.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return T_.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return T_.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return T_.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return T_.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return T_.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return T_.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return T_.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return T_.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return T_.getDimension(e,"margin-bottom","marginBottom")}}class eu{constructor(e,i){this.width=e,this.height=i}with(e=this.width,i=this.height){return e!==this.width||i!==this.height?new eu(e,i):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof eu?e:new eu(e.width,e.height)}static equals(e,i){return e===i?!0:!e||!i?!1:e.width===i.width&&e.height===i.height}}eu.None=new eu(0,0);function vCt(c){let e=c.offsetParent,i=c.offsetTop,n=c.offsetLeft;for(;(c=c.parentNode)!==null&&c!==c.ownerDocument.body&&c!==c.ownerDocument.documentElement;){i-=c.scrollTop;const s=bCt(c)?null:V1e(c);s&&(n-=s.direction!=="rtl"?c.scrollLeft:-c.scrollLeft),c===e&&(n+=T_.getBorderLeftWidth(c),i+=T_.getBorderTopWidth(c),i+=c.offsetTop,n+=c.offsetLeft,e=c.offsetParent)}return{left:n,top:i}}function cri(c,e,i){typeof e=="number"&&(c.style.width=`${e}px`),typeof i=="number"&&(c.style.height=`${i}px`)}function Y_(c){const e=c.getBoundingClientRect(),i=Io(c);return{left:e.left+i.scrollX,top:e.top+i.scrollY,width:e.width,height:e.height}}function yCt(c){let e=c,i=1;do{const n=V1e(e).zoom;n!=null&&n!=="1"&&(i*=n),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return i}function OC(c){const e=T_.getMarginLeft(c)+T_.getMarginRight(c);return c.offsetWidth+e}function M8e(c){const e=T_.getBorderLeftWidth(c)+T_.getBorderRightWidth(c),i=T_.getPaddingLeft(c)+T_.getPaddingRight(c);return c.offsetWidth-e-i}function uri(c){const e=T_.getBorderTopWidth(c)+T_.getBorderBottomWidth(c),i=T_.getPaddingTop(c)+T_.getPaddingBottom(c);return c.offsetHeight-e-i}function y4(c){const e=T_.getMarginTop(c)+T_.getMarginBottom(c);return c.offsetHeight+e}function Wg(c,e){return!!(e!=null&&e.contains(c))}function dri(c,e,i){for(;c&&c.nodeType===c.ELEMENT_NODE;){if(c.classList.contains(e))return c;if(i){if(typeof i=="string"){if(c.classList.contains(i))return null}else if(c===i)return null}c=c.parentNode}return null}function R8e(c,e,i){return!!dri(c,e,i)}function bCt(c){return c&&!!c.host&&!!c.mode}function V0e(c){return!!y9(c)}function y9(c){for(var e;c.parentNode;){if(c===((e=c.ownerDocument)===null||e===void 0?void 0:e.body))return null;c=c.parentNode}return bCt(c)?c:null}function A0(){let c=Wq().activeElement;for(;c!=null&&c.shadowRoot;)c=c.shadowRoot.activeElement;return c}function H1e(c){return A0()===c}function CCt(c){return Wg(A0(),c)}function Wq(){var c;return iri()<=1?ed.document:(c=Array.from(gCt()).map(({window:i})=>i.document).find(i=>i.hasFocus()))!==null&&c!==void 0?c:ed.document}function jme(){var c,e;return(e=(c=Wq().defaultView)===null||c===void 0?void 0:c.window)!==null&&e!==void 0?e:ed}const BHe=new Map;function SCt(){return new fri}class fri{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Sw(ed.document.head,i=>i.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Sw(c=ed.document.head,e,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",e==null||e(n),c.appendChild(n),i&&i.add(go(()=>c.removeChild(n))),c===ed.document.head){const s=new Set;BHe.set(n,s);for(const{window:l,disposables:d}of gCt()){if(l===ed)continue;const f=d.add(hri(n,s,l));i==null||i.add(f)}}return n}function hri(c,e,i){var n,s;const l=new On,d=c.cloneNode(!0);i.document.head.appendChild(d),l.add(go(()=>i.document.head.removeChild(d)));for(const f of xCt(c))(n=d.sheet)===null||n===void 0||n.insertRule(f.cssText,(s=d.sheet)===null||s===void 0?void 0:s.cssRules.length);return l.add(_ri.observe(c,l,{childList:!0})(()=>{d.textContent=c.textContent})),e.add(d),l.add(go(()=>e.delete(d))),l}const _ri=new class{constructor(){this.mutationObservers=new Map}observe(c,e,i){let n=this.mutationObservers.get(c);n||(n=new Map,this.mutationObservers.set(c,n));const s=R1e(i);let l=n.get(s);if(l)l.users+=1;else{const d=new ui,f=new MutationObserver(y=>d.fire(y));f.observe(c,i);const g=l={users:1,observer:f,onDidMutate:d.event};e.add(go(()=>{g.users-=1,g.users===0&&(d.dispose(),f.disconnect(),n==null||n.delete(s),(n==null?void 0:n.size)===0&&this.mutationObservers.delete(c))})),n.set(s,l)}return l.onDidMutate}};let F8e=null;function wCt(){return F8e||(F8e=Sw()),F8e}function xCt(c){var e,i;return!((e=c==null?void 0:c.sheet)===null||e===void 0)&&e.rules?c.sheet.rules:!((i=c==null?void 0:c.sheet)===null||i===void 0)&&i.cssRules?c.sheet.cssRules:[]}function H0e(c,e,i=wCt()){var n,s;if(!(!i||!e)){(n=i.sheet)===null||n===void 0||n.insertRule(`${c} {${e}}`,0);for(const l of(s=BHe.get(i))!==null&&s!==void 0?s:[])H0e(c,e,l)}}function z5e(c,e=wCt()){var i,n;if(!e)return;const s=xCt(e),l=[];for(let d=0;d=0;d--)(i=e.sheet)===null||i===void 0||i.deleteRule(l[d]);for(const d of(n=BHe.get(e))!==null&&n!==void 0?n:[])z5e(c,d)}function pri(c){return typeof c.selectorText=="string"}function Sm(c){return c instanceof HTMLElement||c instanceof Io(c).HTMLElement}function bgt(c){return c instanceof HTMLAnchorElement||c instanceof Io(c).HTMLAnchorElement}function WHe(c){return c instanceof MouseEvent||c instanceof Io(c).MouseEvent}function dM(c){return c instanceof KeyboardEvent||c instanceof Io(c).KeyboardEvent}const yr={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:e9?"webkitAnimationStart":"animationstart",ANIMATION_END:e9?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:e9?"webkitAnimationIteration":"animationiteration"};function gri(c){const e=c;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const nc={stop:(c,e)=>(c.preventDefault(),e&&c.stopPropagation(),c)};function mri(c){const e=[];for(let i=0;c&&c.nodeType===c.ELEMENT_NODE;i++)e[i]=c.scrollTop,c=c.parentNode;return e}function vri(c,e){for(let i=0;c&&c.nodeType===c.ELEMENT_NODE;i++)c.scrollTop!==e[i]&&(c.scrollTop=e[i]),c=c.parentNode}class j0e extends Ii{static hasFocusWithin(e){if(Sm(e)){const i=y9(e),n=i?i.activeElement:e.ownerDocument.activeElement;return Wg(n,e)}else{const i=e;return Wg(i.document.activeElement,i.document)}}constructor(e){super(),this._onDidFocus=this._register(new ui),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new ui),this.onDidBlur=this._onDidBlur.event;let i=j0e.hasFocusWithin(e),n=!1;const s=()=>{n=!1,i||(i=!0,this._onDidFocus.fire())},l=()=>{i&&(n=!0,(Sm(e)?Io(e):e).setTimeout(()=>{n&&(n=!1,i=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{j0e.hasFocusWithin(e)!==i&&(i?l():s())},this._register(tn(e,yr.FOCUS,s,!0)),this._register(tn(e,yr.BLUR,l,!0)),Sm(e)&&(this._register(tn(e,yr.FOCUS_IN,()=>this._refreshStateHandler())),this._register(tn(e,yr.FOCUS_OUT,()=>this._refreshStateHandler())))}}function IE(c){return new j0e(c)}function yri(c,e){return c.after(e),e}function zn(c,...e){if(c.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function VHe(c,e){return c.insertBefore(e,c.firstChild),e}function r0(c,...e){c.innerText="",zn(c,...e)}const bri=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Wte;(function(c){c.HTML="http://www.w3.org/1999/xhtml",c.SVG="http://www.w3.org/2000/svg"})(Wte||(Wte={}));function kCt(c,e,i,...n){const s=bri.exec(e);if(!s)throw new Error("Bad use of emmet");const l=s[1]||"div";let d;return c!==Wte.HTML?d=document.createElementNS(c,l):d=document.createElement(l),s[3]&&(d.id=s[3]),s[4]&&(d.className=s[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([f,g])=>{typeof g>"u"||(/^on\w+$/.test(f)?d[f]=g:f==="selected"?g&&d.setAttribute(f,"true"):d.setAttribute(f,g))}),d.append(...n),d}function Sr(c,e,...i){return kCt(Wte.HTML,c,e,...i)}Sr.SVG=function(c,e,...i){return kCt(Wte.SVG,c,e,...i)};function Cri(c,...e){c?RC(...e):_y(...e)}function RC(...c){for(const e of c)e.style.display="",e.removeAttribute("aria-hidden")}function _y(...c){for(const e of c)e.style.display="none",e.setAttribute("aria-hidden","true")}function Cgt(c,e){const i=c.devicePixelRatio*e;return Math.max(1,Math.floor(i))/c.devicePixelRatio}function TCt(c){ed.open(c,"_blank","noopener")}function Sri(c,e){const i=()=>{e(),n=zC(c,i)};let n=zC(c,i);return go(()=>n.dispose())}_Ct.setPreferredWebSchema(/^https:/.test(ed.location.href)?"https":"http");function G4(c){return c?`url('${pCt.uriToBrowserUri(c).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function B8e(c){return`'${c.replace(/'/g,"%27")}'`}function R4(c,e){if(c!==void 0){const i=c.match(/^\s*var\((.+)\)$/);if(i){const n=i[1].split(",",2);return n.length===2&&(e=R4(n[1].trim(),e)),`var(${n[0]}, ${e})`}return c}return e}function wri(c,e=!1){const i=document.createElement("a");return fCt("afterSanitizeAttributes",n=>{for(const s of["href","src"])if(n.hasAttribute(s)){const l=n.getAttribute(s);if(s==="href"&&l.startsWith("#"))continue;if(i.href=l,!c.includes(i.protocol.replace(/:$/,""))){if(e&&s==="src"&&i.href.startsWith("data:"))continue;n.removeAttribute(s)}}}),go(()=>{hCt("afterSanitizeAttributes")})}const xri=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class b4 extends ui{constructor(){super(),this._subscriptions=new On,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(Mr.runAndSubscribe(W1e,({window:e,disposables:i})=>this.registerListeners(e,i),{window:ed,disposables:this._subscriptions}))}registerListeners(e,i){i.add(tn(e,"keydown",n=>{if(n.defaultPrevented)return;const s=new Fd(n);if(!(s.keyCode===6&&n.repeat)){if(n.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(n.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(n.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(n.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(s.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=n.altKey,this._keyStatus.ctrlKey=n.ctrlKey,this._keyStatus.metaKey=n.metaKey,this._keyStatus.shiftKey=n.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=n,this.fire(this._keyStatus))}},!0)),i.add(tn(e,"keyup",n=>{n.defaultPrevented||(!n.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!n.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!n.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!n.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=n.altKey,this._keyStatus.ctrlKey=n.ctrlKey,this._keyStatus.metaKey=n.metaKey,this._keyStatus.shiftKey=n.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=n,this.fire(this._keyStatus)))},!0)),i.add(tn(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),i.add(tn(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),i.add(tn(e.document.body,"mousemove",n=>{n.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),i.add(tn(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return b4.instance||(b4.instance=new b4),b4.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class kri extends Ii{constructor(e,i){super(),this.element=e,this.callbacks=i,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(tn(this.element,yr.DRAG_START,e=>{var i,n;(n=(i=this.callbacks).onDragStart)===null||n===void 0||n.call(i,e)})),this.callbacks.onDrag&&this._register(tn(this.element,yr.DRAG,e=>{var i,n;(n=(i=this.callbacks).onDrag)===null||n===void 0||n.call(i,e)})),this._register(tn(this.element,yr.DRAG_ENTER,e=>{var i,n;this.counter++,this.dragStartTime=e.timeStamp,(n=(i=this.callbacks).onDragEnter)===null||n===void 0||n.call(i,e)})),this._register(tn(this.element,yr.DRAG_OVER,e=>{var i,n;e.preventDefault(),(n=(i=this.callbacks).onDragOver)===null||n===void 0||n.call(i,e,e.timeStamp-this.dragStartTime)})),this._register(tn(this.element,yr.DRAG_LEAVE,e=>{var i,n;this.counter--,this.counter===0&&(this.dragStartTime=0,(n=(i=this.callbacks).onDragLeave)===null||n===void 0||n.call(i,e))})),this._register(tn(this.element,yr.DRAG_END,e=>{var i,n;this.counter=0,this.dragStartTime=0,(n=(i=this.callbacks).onDragEnd)===null||n===void 0||n.call(i,e)})),this._register(tn(this.element,yr.DROP,e=>{var i,n;this.counter=0,this.dragStartTime=0,(n=(i=this.callbacks).onDrop)===null||n===void 0||n.call(i,e)}))}}const Tri=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Yc(c,...e){let i,n;Array.isArray(e[0])?(i={},n=e[0]):(i=e[0]||{},n=e[1]);const s=Tri.exec(c);if(!s||!s.groups)throw new Error("Bad use of h");const l=s.groups.tag||"div",d=document.createElement(l);s.groups.id&&(d.id=s.groups.id);const f=[];if(s.groups.class)for(const y of s.groups.class.split("."))y!==""&&f.push(y);if(i.className!==void 0)for(const y of i.className.split("."))y!==""&&f.push(y);f.length>0&&(d.className=f.join(" "));const g={};if(s.groups.name&&(g[s.groups.name]=d),n)for(const y of n)Sm(y)?d.appendChild(y):typeof y=="string"?d.append(y):"root"in y&&(Object.assign(g,y),d.appendChild(y.root));for(const[y,w]of Object.entries(i))if(y!=="className")if(y==="style")for(const[x,I]of Object.entries(w))d.style.setProperty(Sgt(x),typeof I=="number"?I+"px":""+I);else y==="tabIndex"?d.tabIndex=w:d.setAttribute(Sgt(y),w.toString());return g.root=d,g}function Sgt(c){return c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class Dri extends Ii{constructor(e){super(),this._onDidChange=this._register(new ui),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,i){var n;(n=this._mediaQueryList)===null||n===void 0||n.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),i&&this._onDidChange.fire()}}class Eri extends Ii{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new ui),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const i=this._register(new Dri(e));this._register(i.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const i=document.createElement("canvas").getContext("2d"),n=e.devicePixelRatio||1,s=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1;return n/s}}class Iri{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const i=B0e(e);let n=this.mapWindowIdToPixelRatioMonitor.get(i);return n||(n=new Eri(e),this.mapWindowIdToPixelRatioMonitor.set(i,n),Mr.once(rri)(({vscodeWindowId:s})=>{s===i&&(n==null||n.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(i))})),n}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const Vte=new Iri;class DCt{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const i=KD(e);this._maxWidth!==i&&(this._maxWidth=i,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const i=KD(e);this._width!==i&&(this._width=i,this.domNode.style.width=this._width)}setHeight(e){const i=KD(e);this._height!==i&&(this._height=i,this.domNode.style.height=this._height)}setTop(e){const i=KD(e);this._top!==i&&(this._top=i,this.domNode.style.top=this._top)}setLeft(e){const i=KD(e);this._left!==i&&(this._left=i,this.domNode.style.left=this._left)}setBottom(e){const i=KD(e);this._bottom!==i&&(this._bottom=i,this.domNode.style.bottom=this._bottom)}setRight(e){const i=KD(e);this._right!==i&&(this._right=i,this.domNode.style.right=this._right)}setPaddingLeft(e){const i=KD(e);this._paddingLeft!==i&&(this._paddingLeft=i,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const i=KD(e);this._fontSize!==i&&(this._fontSize=i,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const i=KD(e);this._lineHeight!==i&&(this._lineHeight=i,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const i=KD(e);this._letterSpacing!==i&&(this._letterSpacing=i,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,i){this.domNode.classList.toggle(e,i),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,i){this.domNode.setAttribute(e,i)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function KD(c){return typeof c=="number"?`${c}px`:c}function pu(c){return new DCt(c)}function s0(c,e){c instanceof DCt?(c.setFontFamily(e.getMassagedFontFamily()),c.setFontWeight(e.fontWeight),c.setFontSize(e.fontSize),c.setFontFeatureSettings(e.fontFeatureSettings),c.setFontVariationSettings(e.fontVariationSettings),c.setLineHeight(e.lineHeight),c.setLetterSpacing(e.letterSpacing)):(c.style.fontFamily=e.getMassagedFontFamily(),c.style.fontWeight=e.fontWeight,c.style.fontSize=e.fontSize+"px",c.style.fontFeatureSettings=e.fontFeatureSettings,c.style.fontVariationSettings=e.fontVariationSettings,c.style.lineHeight=e.lineHeight+"px",c.style.letterSpacing=e.letterSpacing+"px")}class Nri{constructor(e,i){this.chr=e,this.type=i,this.width=0}fulfill(e){this.width=e}}class HHe{constructor(e,i){this._bareFontInfo=e,this._requests=i,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const i=document.createElement("div");s0(i,this._bareFontInfo),e.appendChild(i);const n=document.createElement("div");s0(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const s=document.createElement("div");s0(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const l=[];for(const d of this._requests){let f;d.type===0&&(f=i),d.type===2&&(f=n),d.type===1&&(f=s),f.appendChild(document.createElement("br"));const g=document.createElement("span");HHe._render(g,d),f.appendChild(g),l.push(g)}this._container=e,this._testElements=l}static _render(e,i){if(i.chr===" "){let n=" ";for(let s=0;s<8;s++)n+=n;e.innerText=n}else{let n=i.chr;for(let s=0;s<8;s++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,i=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){const i=this._ensureCache(e),n=i.getValues();let s=!1;for(const l of n)l.isTrusted||(s=!0,i.remove(l));s&&this._onDidChange.fire()}readFontInfo(e,i){const n=this._ensureCache(e);if(!n.has(i)){let s=this._actualReadFontInfo(e,i);(s.typicalHalfwidthCharacterWidth<=2||s.typicalFullwidthCharacterWidth<=2||s.spaceWidth<=2||s.maxDigitWidth<=2)&&(s=new U5e({pixelRatio:Vte.getInstance(e).value,fontFamily:s.fontFamily,fontWeight:s.fontWeight,fontSize:s.fontSize,fontFeatureSettings:s.fontFeatureSettings,fontVariationSettings:s.fontVariationSettings,lineHeight:s.lineHeight,letterSpacing:s.letterSpacing,isMonospace:s.isMonospace,typicalHalfwidthCharacterWidth:Math.max(s.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(s.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:s.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(s.spaceWidth,5),middotWidth:Math.max(s.middotWidth,5),wsmiddotWidth:Math.max(s.wsmiddotWidth,5),maxDigitWidth:Math.max(s.maxDigitWidth,5)},!1)),this._writeToCache(e,i,s)}return n.get(i)}_createRequest(e,i,n,s){const l=new Nri(e,i);return n.push(l),s==null||s.push(l),l}_actualReadFontInfo(e,i){const n=[],s=[],l=this._createRequest("n",0,n,s),d=this._createRequest("m",0,n,null),f=this._createRequest(" ",0,n,s),g=this._createRequest("0",0,n,s),y=this._createRequest("1",0,n,s),w=this._createRequest("2",0,n,s),x=this._createRequest("3",0,n,s),I=this._createRequest("4",0,n,s),P=this._createRequest("5",0,n,s),O=this._createRequest("6",0,n,s),W=this._createRequest("7",0,n,s),X=this._createRequest("8",0,n,s),Z=this._createRequest("9",0,n,s),ee=this._createRequest("→",0,n,s),he=this._createRequest("→",0,n,null),we=this._createRequest("·",0,n,s),Te=this._createRequest("⸱",0,n,null),Be="|/-_ilm%";for(let ci=0,Mt=Be.length;ci.001){vt=!1;break}}let Ni=!0;return vt&&he.width!==Nt&&(Ni=!1),he.width>ee.width&&(Ni=!1),new U5e({pixelRatio:Vte.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:vt,typicalHalfwidthCharacterWidth:l.width,typicalFullwidthCharacterWidth:d.width,canUseHalfwidthRightwardsArrow:Ni,spaceWidth:f.width,middotWidth:we.width,wsmiddotWidth:Te.width,maxDigitWidth:Me},!0)}}class Mri{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const i=e.getId();return!!this._values[i]}get(e){const i=e.getId();return this._values[i]}put(e,i){const n=e.getId();this._keys[n]=e,this._values[n]=i}remove(e){const i=e.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const q5e=new Ori;var _E;(function(c){c.serviceIds=new Map,c.DI_TARGET="$di$target",c.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[c.DI_DEPENDENCIES]||[]}c.getServiceDependencies=e})(_E||(_E={}));const So=Kl("instantiationService");function Rri(c,e,i){e[_E.DI_TARGET]===e?e[_E.DI_DEPENDENCIES].push({id:c,index:i}):(e[_E.DI_DEPENDENCIES]=[{id:c,index:i}],e[_E.DI_TARGET]=e)}function Kl(c){if(_E.serviceIds.has(c))return _E.serviceIds.get(c);const e=function(i,n,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Rri(e,i,s)};return e.toString=()=>c,_E.serviceIds.set(c,e),e}const Oc=Kl("codeEditorService"),Qf=Kl("modelService"),Lb=Kl("textModelService");class WC extends Ii{constructor(e,i="",n="",s=!0,l){super(),this._onDidChange=this._register(new ui),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=i,this._cssClass=n,this._enabled=s,this._actionCallback=l}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,i){this._actionCallback&&await this._actionCallback(e)}}class b9 extends Ii{constructor(){super(...arguments),this._onWillRun=this._register(new ui),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new ui),this.onDidRun=this._onDidRun.event}async run(e,i){if(!e.enabled)return;this._onWillRun.fire({action:e});let n;try{await this.runAction(e,i)}catch(s){n=s}this._onDidRun.fire({action:e,error:n})}async runAction(e,i){await e.run(i)}}class Up{constructor(){this.id=Up.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let i=[];for(const n of e)n.length&&(i.length?i=[...i,new Up,...n]:i=n);return i}async run(){}}Up.ID="vs.actions.separator";class KU{get actions(){return this._actions}constructor(e,i,n,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=i,this.class=s,this._actions=n}async run(){}}class j1e extends WC{constructor(){super(j1e.ID,V("submenu.empty","(empty)"),void 0,!1)}}j1e.ID="vs.actions.empty";function i9(c){var e,i;return{id:c.id,label:c.label,tooltip:(e=c.tooltip)!==null&&e!==void 0?e:c.label,class:c.class,enabled:(i=c.enabled)!==null&&i!==void 0?i:!0,checked:c.checked,run:async(...n)=>c.run(...n)}}var $5e;(function(c){function e(i){return i&&typeof i=="object"&&typeof i.id=="string"}c.isThemeColor=e})($5e||($5e={}));var Uo;(function(c){c.iconNameSegment="[A-Za-z0-9]+",c.iconNameExpression="[A-Za-z0-9-]+",c.iconModifierExpression="~[A-Za-z]+",c.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${c.iconNameExpression})(${c.iconModifierExpression})?$`);function i(I){const P=e.exec(I.id);if(!P)return i(Dr.error);const[,O,W]=P,X=["codicon","codicon-"+O];return W&&X.push("codicon-modifier-"+W.substring(1)),X}c.asClassNameArray=i;function n(I){return i(I).join(" ")}c.asClassName=n;function s(I){return"."+i(I).join(".")}c.asCSSSelector=s;function l(I){return I&&typeof I=="object"&&typeof I.id=="string"&&(typeof I.color>"u"||$5e.isThemeColor(I.color))}c.isThemeIcon=l;const d=new RegExp(`^\\$\\((${c.iconNameExpression}(?:${c.iconModifierExpression})?)\\)$`);function f(I){const P=d.exec(I);if(!P)return;const[,O]=P;return{id:O}}c.fromString=f;function g(I){return{id:I}}c.fromId=g;function y(I,P){let O=I.id;const W=O.lastIndexOf("~");return W!==-1&&(O=O.substring(0,W)),P&&(O=`${O}~${P}`),{id:O}}c.modify=y;function w(I){const P=I.id.lastIndexOf("~");if(P!==-1)return I.id.substring(P+1)}c.getModifier=w;function x(I,P){var O,W;return I.id===P.id&&((O=I.color)===null||O===void 0?void 0:O.id)===((W=P.color)===null||W===void 0?void 0:W.id)}c.isEqual=x})(Uo||(Uo={}));const ff=Kl("commandService"),uc=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ui,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(c,e){if(!c)throw new Error("invalid command");if(typeof c=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:c,handler:e})}if(c.metadata&&Array.isArray(c.metadata.args)){const d=[];for(const g of c.metadata.args)d.push(g.constraint);const f=c.handler;c.handler=function(g,...y){return Kei(y,d),f(g,...y)}}const{id:i}=c;let n=this._commands.get(i);n||(n=new yy,this._commands.set(i,n));const s=n.unshift(c),l=go(()=>{s();const d=this._commands.get(i);d!=null&&d.isEmpty()&&this._commands.delete(i)});return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(c,e){return uc.registerCommand(c,(i,...n)=>i.get(ff).executeCommand(e,...n))}getCommand(c){const e=this._commands.get(c);if(!(!e||e.isEmpty()))return cc.first(e)}getCommands(){const c=new Map;for(const e of this._commands.keys()){const i=this.getCommand(e);i&&c.set(e,i)}return c}};uc.registerCommand("noop",()=>{});function V8e(...c){switch(c.length){case 1:return V("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",c[0]);case 2:return V("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",c[0],c[1]);case 3:return V("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",c[0],c[1],c[2]);default:return}}const Fri=V("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),Bri=V("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");let P5=class J5e{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw yHe(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(V8e("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(V8e("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(V8e("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const i=this._start,n=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:n};this._errors.push({offset:i,lexeme:n,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const i=this._input.substring(this._start,this._current),n=J5e._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(Fri);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,i=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(Bri);return}const l=this._input.charCodeAt(e);if(i)i=!1;else if(l===47&&!n){e++;break}else l===91?n=!0:l===92?i=!0:l===93&&(n=!1);e++}for(;e=this._input.length}};P5._regexFlags=new Set(["i","g","s","m","y","u"].map(c=>c.charCodeAt(0)));P5._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Cv=new Map;Cv.set("false",!1);Cv.set("true",!0);Cv.set("isMac",Wl);Cv.set("isLinux",Ty);Cv.set("isWindows",M0);Cv.set("isWeb",xR);Cv.set("isMacNative",Wl&&!xR);Cv.set("isEdge",uti);Cv.set("isFirefox",lti);Cv.set("isChrome",Tbt);Cv.set("isSafari",cti);const Wri=Object.prototype.hasOwnProperty,Vri={regexParsingWithErrorRecovery:!0},Hri=V("contextkey.parser.error.emptyString","Empty context key expression"),jri=V("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),zri=V("contextkey.parser.error.noInAfterNot","'in' after 'not'."),wgt=V("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),Uri=V("contextkey.parser.error.unexpectedToken","Unexpected token"),qri=V("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),$ri=V("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),Jri=V("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let ECt=class See{constructor(e=Vri){this._config=e,this._scanner=new P5,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:Hri,offset:0,lexeme:"",additionalInfo:jri});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const n=this._peek(),s=n.type===17?qri:void 0;throw this._parsingErrors.push({message:Uri,offset:n.offset,lexeme:P5.getLexeme(n),additionalInfo:s}),See._parseError}return i}catch(i){if(i!==See._parseError)throw i;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const i=this._and();e.push(i)}return e.length===1?e[0]:xn.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const i=this._term();e.push(i)}return e.length===1?e[0]:xn.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Dy.INSTANCE;case 12:return this._advance(),Db.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,wgt),i==null?void 0:i.negate()}case 17:return this._advance(),Q9.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),xn.true();case 12:return this._advance(),xn.false();case 0:{this._advance();const i=this._expr();return this._consume(1,wgt),i}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const s=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),s.type!==10)throw this._errExpectedButGot("REGEX",s);const l=s.lexeme,d=l.lastIndexOf("/"),f=d===l.length-1?void 0:this._removeFlagsGY(l.substring(d+1));let g;try{g=new RegExp(l.substring(1,d),f)}catch{throw this._errExpectedButGot("REGEX",s)}return Hte.create(i,g)}switch(s.type){case 10:case 19:{const l=[s.lexeme];this._advance();let d=this._peek(),f=0;for(let I=0;I=0){const y=l.slice(f+1,g),w=l[g+1]==="i"?"i":"";try{d=new RegExp(y,w)}catch{throw this._errExpectedButGot("REGEX",s)}}}if(d===null)throw this._errExpectedButGot("REGEX",s);return Hte.create(i,d)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,zri);const s=this._value();return xn.notIn(i,s)}switch(this._peek().type){case 3:{this._advance();const s=this._value();if(this._previous().type===18)return xn.equals(i,s);switch(s){case"true":return xn.has(i);case"false":return xn.not(i);default:return xn.equals(i,s)}}case 4:{this._advance();const s=this._value();if(this._previous().type===18)return xn.notEquals(i,s);switch(s){case"true":return xn.not(i);case"false":return xn.has(i);default:return xn.notEquals(i,s)}}case 5:return this._advance(),K1e.create(i,this._value());case 6:return this._advance(),Q1e.create(i,this._value());case 7:return this._advance(),J1e.create(i,this._value());case 8:return this._advance(),G1e.create(i,this._value());case 13:return this._advance(),xn.in(i,this._value());default:return xn.has(i)}}case 20:throw this._parsingErrors.push({message:$ri,offset:e.offset,lexeme:"",additionalInfo:Jri}),See._parseError;default:throw this._errExpectedButGot(`true | false | KEY
+ | KEY '=~' REGEX
+ | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,i){if(this._check(e))return this._advance();throw this._errExpectedButGot(i,this._peek())}_errExpectedButGot(e,i,n){const s=V("contextkey.parser.error.expectedButGot",`Expected: {0}
+Received: '{1}'.`,e,P5.getLexeme(i)),l=i.offset,d=P5.getLexeme(i);return this._parsingErrors.push({message:s,offset:l,lexeme:d,additionalInfo:n}),See._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};ECt._parseError=new Error;class xn{static false(){return Dy.INSTANCE}static true(){return Db.INSTANCE}static has(e){return K9.create(e)}static equals(e,i){return Vq.create(e,i)}static notEquals(e,i){return q1e.create(e,i)}static regex(e,i){return Hte.create(e,i)}static in(e,i){return z1e.create(e,i)}static notIn(e,i){return U1e.create(e,i)}static not(e){return Q9.create(e)}static and(...e){return z5.create(e,null,!0)}static or(...e){return f4.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}xn._parser=new ECt({regexParsingWithErrorRecovery:!1});function Gri(c,e){const i=c?c.substituteConstants():void 0,n=e?e.substituteConstants():void 0;return!i&&!n?!0:!i||!n?!1:i.equals(n)}function Qee(c,e){return c.cmp(e)}class Dy{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return Db.INSTANCE}}Dy.INSTANCE=new Dy;class Db{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Dy.INSTANCE}}Db.INSTANCE=new Db;class K9{static create(e,i=null){const n=Cv.get(e);return typeof n=="boolean"?n?Db.INSTANCE:Dy.INSTANCE:new K9(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:NCt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Cv.get(this.key);return typeof e=="boolean"?e?Db.INSTANCE:Dy.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q9.create(this.key,this)),this.negated}}class Vq{static create(e,i,n=null){if(typeof i=="boolean")return i?K9.create(e,n):Q9.create(e,n);const s=Cv.get(e);return typeof s=="boolean"?i===(s?"true":"false")?Db.INSTANCE:Dy.INSTANCE:new Vq(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Cv.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?Db.INSTANCE:Dy.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=q1e.create(this.key,this.value,this)),this.negated}}class z1e{static create(e,i){return new z1e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(i)?i.includes(n):typeof n=="string"&&typeof i=="object"&&i!==null?Wri.call(i,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=U1e.create(this.key,this.valueKey)),this.negated}}class U1e{static create(e,i){return new U1e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=11,this._negated=z1e.create(e,i)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class q1e{static create(e,i,n=null){if(typeof i=="boolean")return i?Q9.create(e,n):K9.create(e,n);const s=Cv.get(e);return typeof s=="boolean"?i===(s?"true":"false")?Dy.INSTANCE:Db.INSTANCE:new q1e(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Cv.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?Dy.INSTANCE:Db.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Vq.create(this.key,this.value,this)),this.negated}}class Q9{static create(e,i=null){const n=Cv.get(e);return typeof n=="boolean"?n?Dy.INSTANCE:Db.INSTANCE:new Q9(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:NCt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Cv.get(this.key);return typeof e=="boolean"?e?Dy.INSTANCE:Db.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K9.create(this.key,this)),this.negated}}function $1e(c,e){if(typeof c=="string"){const i=parseFloat(c);isNaN(i)||(c=i)}return typeof c=="string"||typeof c=="number"?e(c):Dy.INSTANCE}class J1e{static create(e,i,n=null){return $1e(i,s=>new J1e(e,s,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q1e.create(this.key,this.value,this)),this.negated}}class G1e{static create(e,i,n=null){return $1e(i,s=>new G1e(e,s,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K1e.create(this.key,this.value,this)),this.negated}}class K1e{static create(e,i,n=null){return $1e(i,s=>new K1e(e,s,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new Q1e(e,s,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:X9(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=J1e.create(this.key,this.value,this)),this.negated}}class Hte{static create(e,i){return new Hte(e,i)}constructor(e,i){this.key=e,this.regexp=i,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return in?1:0}equals(e){if(e.type===this.type){const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&i===n}return!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.key);return this.regexp?this.regexp.test(i):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=jHe.create(this)),this.negated}}class jHe{static create(e){return new jHe(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function ICt(c){let e=null;for(let i=0,n=c.length;ie.expr.length)return 1;for(let i=0,n=this.expr.length;i1;){const d=s[s.length-1];if(d.type!==9)break;s.pop();const f=s.pop(),g=s.length===0,y=f4.create(d.expr.map(w=>z5.create([w,f],null,n)),null,g);y&&(s.push(y),s.sort(Qee))}if(s.length===1)return s[0];if(n){for(let d=0;de.serialize()).join(" && ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());this.negated=f4.create(e,this,!0)}return this.negated}}class f4{static create(e,i,n){return f4._normalizeArr(e,i,n)}constructor(e,i){this.expr=e,this.negated=i,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let i=0,n=this.expr.length;ie.serialize()).join(" || ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());for(;e.length>1;){const i=e.shift(),n=e.shift(),s=[];for(const l of kgt(i))for(const d of kgt(n))s.push(z5.create([l,d],null,!1));e.unshift(f4.create(s,null,!1))}this.negated=f4.create(e,this,!0)}return this.negated}}class Xr extends K9{static all(){return Xr._info.values()}constructor(e,i,n){super(e,null),this._defaultValue=i,typeof n=="object"?Xr._info.push({...n,key:e}):n!==!0&&Xr._info.push({key:e,description:n,type:i!=null?typeof i:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Vq.create(this.key,e)}}Xr._info=[];const Zo=Kl("contextKeyService");function NCt(c,e){return ce?1:0}function X9(c,e,i,n){return ci?1:en?1:0}function G5e(c,e){if(c.type===0||e.type===1)return!0;if(c.type===9)return e.type===9?xgt(c.expr,e.expr):!1;if(e.type===9){for(const i of e.expr)if(G5e(c,i))return!0;return!1}if(c.type===6){if(e.type===6)return xgt(e.expr,c.expr);for(const i of c.expr)if(G5e(i,e))return!0;return!1}return c.equals(e)}function xgt(c,e){let i=0,n=0;for(;i{f(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Xri)),this._cachedMergedKeybindings.slice(0)}}const Ey=new UHe,Qri={EditorModes:"platform.keybindingsRegistry"};dh.add(Qri.EditorModes,Ey);function Xri(c,e){if(c.weight1!==e.weight1)return c.weight1-e.weight1;if(c.command&&e.command){if(c.commande.command)return 1}return c.weight2-e.weight2}var Zri=function(c,e,i,n){var s=arguments.length,l=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,e,i,n);else for(var f=c.length-1;f>=0;f--)(d=c[f])&&(l=(s<3?d(l):s>3?d(e,i,l):d(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l},Dgt=function(c,e){return function(i,n){e(i,n,c)}},zme;function Gz(c){return c.command!==void 0}function Yri(c){return c.submenu!==void 0}class _t{constructor(e){if(_t._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_t._instances.set(e,this),this.id=e}}_t._instances=new Map;_t.CommandPalette=new _t("CommandPalette");_t.DebugBreakpointsContext=new _t("DebugBreakpointsContext");_t.DebugCallStackContext=new _t("DebugCallStackContext");_t.DebugConsoleContext=new _t("DebugConsoleContext");_t.DebugVariablesContext=new _t("DebugVariablesContext");_t.NotebookVariablesContext=new _t("NotebookVariablesContext");_t.DebugHoverContext=new _t("DebugHoverContext");_t.DebugWatchContext=new _t("DebugWatchContext");_t.DebugToolBar=new _t("DebugToolBar");_t.DebugToolBarStop=new _t("DebugToolBarStop");_t.EditorContext=new _t("EditorContext");_t.SimpleEditorContext=new _t("SimpleEditorContext");_t.EditorContent=new _t("EditorContent");_t.EditorLineNumberContext=new _t("EditorLineNumberContext");_t.EditorContextCopy=new _t("EditorContextCopy");_t.EditorContextPeek=new _t("EditorContextPeek");_t.EditorContextShare=new _t("EditorContextShare");_t.EditorTitle=new _t("EditorTitle");_t.EditorTitleRun=new _t("EditorTitleRun");_t.EditorTitleContext=new _t("EditorTitleContext");_t.EditorTitleContextShare=new _t("EditorTitleContextShare");_t.EmptyEditorGroup=new _t("EmptyEditorGroup");_t.EmptyEditorGroupContext=new _t("EmptyEditorGroupContext");_t.EditorTabsBarContext=new _t("EditorTabsBarContext");_t.EditorTabsBarShowTabsSubmenu=new _t("EditorTabsBarShowTabsSubmenu");_t.EditorTabsBarShowTabsZenModeSubmenu=new _t("EditorTabsBarShowTabsZenModeSubmenu");_t.EditorActionsPositionSubmenu=new _t("EditorActionsPositionSubmenu");_t.ExplorerContext=new _t("ExplorerContext");_t.ExplorerContextShare=new _t("ExplorerContextShare");_t.ExtensionContext=new _t("ExtensionContext");_t.GlobalActivity=new _t("GlobalActivity");_t.CommandCenter=new _t("CommandCenter");_t.CommandCenterCenter=new _t("CommandCenterCenter");_t.LayoutControlMenuSubmenu=new _t("LayoutControlMenuSubmenu");_t.LayoutControlMenu=new _t("LayoutControlMenu");_t.MenubarMainMenu=new _t("MenubarMainMenu");_t.MenubarAppearanceMenu=new _t("MenubarAppearanceMenu");_t.MenubarDebugMenu=new _t("MenubarDebugMenu");_t.MenubarEditMenu=new _t("MenubarEditMenu");_t.MenubarCopy=new _t("MenubarCopy");_t.MenubarFileMenu=new _t("MenubarFileMenu");_t.MenubarGoMenu=new _t("MenubarGoMenu");_t.MenubarHelpMenu=new _t("MenubarHelpMenu");_t.MenubarLayoutMenu=new _t("MenubarLayoutMenu");_t.MenubarNewBreakpointMenu=new _t("MenubarNewBreakpointMenu");_t.PanelAlignmentMenu=new _t("PanelAlignmentMenu");_t.PanelPositionMenu=new _t("PanelPositionMenu");_t.ActivityBarPositionMenu=new _t("ActivityBarPositionMenu");_t.MenubarPreferencesMenu=new _t("MenubarPreferencesMenu");_t.MenubarRecentMenu=new _t("MenubarRecentMenu");_t.MenubarSelectionMenu=new _t("MenubarSelectionMenu");_t.MenubarShare=new _t("MenubarShare");_t.MenubarSwitchEditorMenu=new _t("MenubarSwitchEditorMenu");_t.MenubarSwitchGroupMenu=new _t("MenubarSwitchGroupMenu");_t.MenubarTerminalMenu=new _t("MenubarTerminalMenu");_t.MenubarViewMenu=new _t("MenubarViewMenu");_t.MenubarHomeMenu=new _t("MenubarHomeMenu");_t.OpenEditorsContext=new _t("OpenEditorsContext");_t.OpenEditorsContextShare=new _t("OpenEditorsContextShare");_t.ProblemsPanelContext=new _t("ProblemsPanelContext");_t.SCMInputBox=new _t("SCMInputBox");_t.SCMChangesSeparator=new _t("SCMChangesSeparator");_t.SCMIncomingChanges=new _t("SCMIncomingChanges");_t.SCMIncomingChangesContext=new _t("SCMIncomingChangesContext");_t.SCMIncomingChangesSetting=new _t("SCMIncomingChangesSetting");_t.SCMOutgoingChanges=new _t("SCMOutgoingChanges");_t.SCMOutgoingChangesContext=new _t("SCMOutgoingChangesContext");_t.SCMOutgoingChangesSetting=new _t("SCMOutgoingChangesSetting");_t.SCMIncomingChangesAllChangesContext=new _t("SCMIncomingChangesAllChangesContext");_t.SCMIncomingChangesHistoryItemContext=new _t("SCMIncomingChangesHistoryItemContext");_t.SCMOutgoingChangesAllChangesContext=new _t("SCMOutgoingChangesAllChangesContext");_t.SCMOutgoingChangesHistoryItemContext=new _t("SCMOutgoingChangesHistoryItemContext");_t.SCMChangeContext=new _t("SCMChangeContext");_t.SCMResourceContext=new _t("SCMResourceContext");_t.SCMResourceContextShare=new _t("SCMResourceContextShare");_t.SCMResourceFolderContext=new _t("SCMResourceFolderContext");_t.SCMResourceGroupContext=new _t("SCMResourceGroupContext");_t.SCMSourceControl=new _t("SCMSourceControl");_t.SCMSourceControlInline=new _t("SCMSourceControlInline");_t.SCMSourceControlTitle=new _t("SCMSourceControlTitle");_t.SCMTitle=new _t("SCMTitle");_t.SearchContext=new _t("SearchContext");_t.SearchActionMenu=new _t("SearchActionContext");_t.StatusBarWindowIndicatorMenu=new _t("StatusBarWindowIndicatorMenu");_t.StatusBarRemoteIndicatorMenu=new _t("StatusBarRemoteIndicatorMenu");_t.StickyScrollContext=new _t("StickyScrollContext");_t.TestItem=new _t("TestItem");_t.TestItemGutter=new _t("TestItemGutter");_t.TestMessageContext=new _t("TestMessageContext");_t.TestMessageContent=new _t("TestMessageContent");_t.TestPeekElement=new _t("TestPeekElement");_t.TestPeekTitle=new _t("TestPeekTitle");_t.TouchBarContext=new _t("TouchBarContext");_t.TitleBarContext=new _t("TitleBarContext");_t.TitleBarTitleContext=new _t("TitleBarTitleContext");_t.TunnelContext=new _t("TunnelContext");_t.TunnelPrivacy=new _t("TunnelPrivacy");_t.TunnelProtocol=new _t("TunnelProtocol");_t.TunnelPortInline=new _t("TunnelInline");_t.TunnelTitle=new _t("TunnelTitle");_t.TunnelLocalAddressInline=new _t("TunnelLocalAddressInline");_t.TunnelOriginInline=new _t("TunnelOriginInline");_t.ViewItemContext=new _t("ViewItemContext");_t.ViewContainerTitle=new _t("ViewContainerTitle");_t.ViewContainerTitleContext=new _t("ViewContainerTitleContext");_t.ViewTitle=new _t("ViewTitle");_t.ViewTitleContext=new _t("ViewTitleContext");_t.CommentEditorActions=new _t("CommentEditorActions");_t.CommentThreadTitle=new _t("CommentThreadTitle");_t.CommentThreadActions=new _t("CommentThreadActions");_t.CommentThreadAdditionalActions=new _t("CommentThreadAdditionalActions");_t.CommentThreadTitleContext=new _t("CommentThreadTitleContext");_t.CommentThreadCommentContext=new _t("CommentThreadCommentContext");_t.CommentTitle=new _t("CommentTitle");_t.CommentActions=new _t("CommentActions");_t.CommentsViewThreadActions=new _t("CommentsViewThreadActions");_t.InteractiveToolbar=new _t("InteractiveToolbar");_t.InteractiveCellTitle=new _t("InteractiveCellTitle");_t.InteractiveCellDelete=new _t("InteractiveCellDelete");_t.InteractiveCellExecute=new _t("InteractiveCellExecute");_t.InteractiveInputExecute=new _t("InteractiveInputExecute");_t.IssueReporter=new _t("IssueReporter");_t.NotebookToolbar=new _t("NotebookToolbar");_t.NotebookStickyScrollContext=new _t("NotebookStickyScrollContext");_t.NotebookCellTitle=new _t("NotebookCellTitle");_t.NotebookCellDelete=new _t("NotebookCellDelete");_t.NotebookCellInsert=new _t("NotebookCellInsert");_t.NotebookCellBetween=new _t("NotebookCellBetween");_t.NotebookCellListTop=new _t("NotebookCellTop");_t.NotebookCellExecute=new _t("NotebookCellExecute");_t.NotebookCellExecuteGoTo=new _t("NotebookCellExecuteGoTo");_t.NotebookCellExecutePrimary=new _t("NotebookCellExecutePrimary");_t.NotebookDiffCellInputTitle=new _t("NotebookDiffCellInputTitle");_t.NotebookDiffCellMetadataTitle=new _t("NotebookDiffCellMetadataTitle");_t.NotebookDiffCellOutputsTitle=new _t("NotebookDiffCellOutputsTitle");_t.NotebookOutputToolbar=new _t("NotebookOutputToolbar");_t.NotebookOutlineFilter=new _t("NotebookOutlineFilter");_t.NotebookOutlineActionMenu=new _t("NotebookOutlineActionMenu");_t.NotebookEditorLayoutConfigure=new _t("NotebookEditorLayoutConfigure");_t.NotebookKernelSource=new _t("NotebookKernelSource");_t.BulkEditTitle=new _t("BulkEditTitle");_t.BulkEditContext=new _t("BulkEditContext");_t.TimelineItemContext=new _t("TimelineItemContext");_t.TimelineTitle=new _t("TimelineTitle");_t.TimelineTitleContext=new _t("TimelineTitleContext");_t.TimelineFilterSubMenu=new _t("TimelineFilterSubMenu");_t.AccountsContext=new _t("AccountsContext");_t.SidebarTitle=new _t("SidebarTitle");_t.PanelTitle=new _t("PanelTitle");_t.AuxiliaryBarTitle=new _t("AuxiliaryBarTitle");_t.AuxiliaryBarHeader=new _t("AuxiliaryBarHeader");_t.TerminalInstanceContext=new _t("TerminalInstanceContext");_t.TerminalEditorInstanceContext=new _t("TerminalEditorInstanceContext");_t.TerminalNewDropdownContext=new _t("TerminalNewDropdownContext");_t.TerminalTabContext=new _t("TerminalTabContext");_t.TerminalTabEmptyAreaContext=new _t("TerminalTabEmptyAreaContext");_t.TerminalStickyScrollContext=new _t("TerminalStickyScrollContext");_t.WebviewContext=new _t("WebviewContext");_t.InlineCompletionsActions=new _t("InlineCompletionsActions");_t.InlineEditActions=new _t("InlineEditActions");_t.NewFile=new _t("NewFile");_t.MergeInput1Toolbar=new _t("MergeToolbar1Toolbar");_t.MergeInput2Toolbar=new _t("MergeToolbar2Toolbar");_t.MergeBaseToolbar=new _t("MergeBaseToolbar");_t.MergeInputResultToolbar=new _t("MergeToolbarResultToolbar");_t.InlineSuggestionToolbar=new _t("InlineSuggestionToolbar");_t.InlineEditToolbar=new _t("InlineEditToolbar");_t.ChatContext=new _t("ChatContext");_t.ChatCodeBlock=new _t("ChatCodeblock");_t.ChatCompareBlock=new _t("ChatCompareBlock");_t.ChatMessageTitle=new _t("ChatMessageTitle");_t.ChatExecute=new _t("ChatExecute");_t.ChatExecuteSecondary=new _t("ChatExecuteSecondary");_t.ChatInputSide=new _t("ChatInputSide");_t.AccessibleView=new _t("AccessibleView");_t.MultiDiffEditorFileToolbar=new _t("MultiDiffEditorFileToolbar");_t.DiffEditorHunkToolbar=new _t("DiffEditorHunkToolbar");_t.DiffEditorSelectionToolbar=new _t("DiffEditorSelectionToolbar");const Dw=Kl("menuService");class h4{static for(e){let i=this._all.get(e);return i||(i=new h4(e),this._all.set(e,i)),i}static merge(e){const i=new Set;for(const n of e)n instanceof h4&&i.add(n.id);return i}constructor(e){this.id=e,this.has=i=>i===e}}h4._all=new Map;const bm=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new gii({merge:h4.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(c){return this._commands.set(c.id,c),this._onDidChangeMenu.fire(h4.for(_t.CommandPalette)),go(()=>{this._commands.delete(c.id)&&this._onDidChangeMenu.fire(h4.for(_t.CommandPalette))})}getCommand(c){return this._commands.get(c)}getCommands(){const c=new Map;return this._commands.forEach((e,i)=>c.set(i,e)),c}appendMenuItem(c,e){let i=this._menuItems.get(c);i||(i=new yy,this._menuItems.set(c,i));const n=i.push(e);return this._onDidChangeMenu.fire(h4.for(c)),go(()=>{n(),this._onDidChangeMenu.fire(h4.for(c))})}appendMenuItems(c){const e=new On;for(const{id:i,item:n}of c)e.add(this.appendMenuItem(i,n));return e}getMenuItems(c){let e;return this._menuItems.has(c)?e=[...this._menuItems.get(c)]:e=[],c===_t.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(c){const e=new Set;for(const i of c)Gz(i)&&(e.add(i.command.id),i.alt&&e.add(i.alt.id));this._commands.forEach((i,n)=>{e.has(n)||c.push({command:i})})}};class CU extends KU{constructor(e,i,n){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,n,"submenu"),this.item=e,this.hideActions=i}}let VC=zme=class{static label(e,i){return i!=null&&i.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,i,n,s,l,d,f){var g,y;this.hideActions=s,this.menuKeybinding=l,this._commandService=f,this.id=e.id,this.label=zme.label(e,n),this.tooltip=(y=typeof e.tooltip=="string"?e.tooltip:(g=e.tooltip)===null||g===void 0?void 0:g.value)!==null&&y!==void 0?y:"",this.enabled=!e.precondition||d.contextMatchesRules(e.precondition),this.checked=void 0;let w;if(e.toggled){const x=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=d.contextMatchesRules(x.condition),this.checked&&x.tooltip&&(this.tooltip=typeof x.tooltip=="string"?x.tooltip:x.tooltip.value),this.checked&&Uo.isThemeIcon(x.icon)&&(w=x.icon),this.checked&&x.title&&(this.label=typeof x.title=="string"?x.title:x.title.value)}w||(w=Uo.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=i?new zme(i,void 0,n,s,void 0,d,f):void 0,this._options=n,this.class=w&&Uo.asClassName(w)}run(...e){var i,n;let s=[];return!((i=this._options)===null||i===void 0)&&i.arg&&(s=[...s,this._options.arg]),!((n=this._options)===null||n===void 0)&&n.shouldForwardArgs&&(s=[...s,...e]),this._commandService.executeCommand(this.id,...s)}};VC=zme=Zri([Dgt(5,Zo),Dgt(6,ff)],VC);class Ny{constructor(e){this.desc=e}}function Bd(c){const e=[],i=new c,{f1:n,menu:s,keybinding:l,...d}=i.desc;if(uc.getCommand(d.id))throw new Error(`Cannot register two commands with the same id: ${d.id}`);if(e.push(uc.registerCommand({id:d.id,handler:(f,...g)=>i.run(f,...g),metadata:d.metadata})),Array.isArray(s))for(const f of s)e.push(bm.appendMenuItem(f.id,{command:{...d,precondition:f.precondition===null?void 0:d.precondition},...f}));else s&&e.push(bm.appendMenuItem(s.id,{command:{...d,precondition:s.precondition===null?void 0:d.precondition},...s}));if(n&&(e.push(bm.appendMenuItem(_t.CommandPalette,{command:d,when:d.precondition})),e.push(bm.addCommand(d))),Array.isArray(l))for(const f of l)e.push(Ey.registerKeybindingRule({...f,id:d.id,when:d.precondition?xn.and(d.precondition,f.when):f.when}));else l&&e.push(Ey.registerKeybindingRule({...l,id:d.id,when:d.precondition?xn.and(d.precondition,l.when):l.when}));return{dispose(){yd(e)}}}const R0=Kl("telemetryService"),Sv=Kl("logService");var L0;(function(c){c[c.Off=0]="Off",c[c.Trace=1]="Trace",c[c.Debug=2]="Debug",c[c.Info=3]="Info",c[c.Warning=4]="Warning",c[c.Error=5]="Error"})(L0||(L0={}));const LCt=L0.Info;class PCt extends Ii{constructor(){super(...arguments),this.level=LCt,this._onDidChangeLogLevel=this._register(new ui),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==L0.Off&&this.level<=e}}class esi extends PCt{constructor(e=LCt,i=!0){super(),this.useColors=i,this.setLevel(e)}trace(e,...i){this.checkLogLevel(L0.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...i):console.log(e,...i))}debug(e,...i){this.checkLogLevel(L0.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...i):console.log(e,...i))}info(e,...i){this.checkLogLevel(L0.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...i):console.log(e,...i))}warn(e,...i){this.checkLogLevel(L0.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...i):console.log(e,...i))}error(e,...i){this.checkLogLevel(L0.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...i):console.error(e,...i))}}class tsi extends PCt{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const i of this.loggers)i.setLevel(e);super.setLevel(e)}trace(e,...i){for(const n of this.loggers)n.trace(e,...i)}debug(e,...i){for(const n of this.loggers)n.debug(e,...i)}info(e,...i){for(const n of this.loggers)n.info(e,...i)}warn(e,...i){for(const n of this.loggers)n.warn(e,...i)}error(e,...i){for(const n of this.loggers)n.error(e,...i)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}function isi(c){switch(c){case L0.Trace:return"trace";case L0.Debug:return"debug";case L0.Info:return"info";case L0.Warning:return"warn";case L0.Error:return"error";case L0.Off:return"off"}}new Xr("logLevel",isi(L0.Info));class Z1e{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const i of e){let n=i.kbExpr;this.precondition&&(n?n=xn.and(n,this.precondition):n=this.precondition);const s={id:this.id,weight:i.weight,args:i.args,when:n,primary:i.primary,secondary:i.secondary,win:i.win,linux:i.linux,mac:i.mac};Ey.registerKeybindingRule(s)}}uc.registerCommand({id:this.id,handler:(e,i)=>this.runCommand(e,i),metadata:this.metadata})}_registerMenuItem(e){bm.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class Hq extends Z1e{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,i,n,s){return this._implementations.push({priority:e,name:i,implementation:n,when:s}),this._implementations.sort((l,d)=>d.priority-l.priority),{dispose:()=>{for(let l=0;l{if(f.get(Zo).contextMatchesRules(n??void 0))return s(f,d,i)})}runCommand(e,i){return sg.runEditorCommand(e,i,this.precondition,(n,s,l)=>this.runEditorCommand(n,s,l))}}class ms extends sg{static convertOptions(e){let i;Array.isArray(e.menuOpts)?i=e.menuOpts:e.menuOpts?i=[e.menuOpts]:i=[];function n(s){return s.menuId||(s.menuId=_t.EditorContext),s.title||(s.title=e.label),s.when=xn.and(e.precondition,s.when),s}return Array.isArray(e.contextMenuOpts)?i.push(...e.contextMenuOpts.map(n)):e.contextMenuOpts&&i.push(n(e.contextMenuOpts)),e.menuOpts=i,e}constructor(e){super(ms.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,i,n){return this.reportTelemetry(e,i),this.run(e,i,n||{})}reportTelemetry(e,i){e.get(R0).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class OCt extends ms{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,i){return this._implementations.push([e,i]),this._implementations.sort((n,s)=>s[0]-n[0]),{dispose:()=>{for(let n=0;n{var d,f;const g=l.get(Zo),y=l.get(Sv);if(!g.contextMatchesRules((d=this.desc.precondition)!==null&&d!==void 0?d:void 0)){y.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(f=this.desc.precondition)===null||f===void 0?void 0:f.serialize());return}return this.runEditorCommand(l,s,...i)})}}function kL(c,e){uc.registerCommand(c,function(i,...n){const s=i.get(So),[l,d]=n;Ac(Oo.isUri(l)),Ac(yi.isIPosition(d));const f=i.get(Qf).getModel(l);if(f){const g=yi.lift(d);return s.invokeFunction(e,f,g,...n.slice(2))}return i.get(Lb).createModelReference(l).then(g=>new Promise((y,w)=>{try{const x=s.invokeFunction(e,g.object.textEditorModel,yi.lift(d),n.slice(2));y(x)}catch(x){w(x)}}).finally(()=>{g.dispose()}))})}function qr(c){return Qx.INSTANCE.registerEditorCommand(c),c}function hr(c){const e=new c;return Qx.INSTANCE.registerEditorAction(e),e}function MCt(c){return Qx.INSTANCE.registerEditorAction(c),c}function nsi(c){Qx.INSTANCE.registerEditorAction(c)}function Bc(c,e,i){Qx.INSTANCE.registerEditorContribution(c,e,i)}var SU;(function(c){function e(d){return Qx.INSTANCE.getEditorCommand(d)}c.getEditorCommand=e;function i(){return Qx.INSTANCE.getEditorActions()}c.getEditorActions=i;function n(){return Qx.INSTANCE.getEditorContributions()}c.getEditorContributions=n;function s(d){return Qx.INSTANCE.getEditorContributions().filter(f=>d.indexOf(f.id)>=0)}c.getSomeEditorContributions=s;function l(){return Qx.INSTANCE.getDiffEditorContributions()}c.getDiffEditorContributions=l})(SU||(SU={}));const rsi={EditorCommonContributions:"editor.contributions"};class Qx{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,i,n){this.editorContributions.push({id:e,ctor:i,instantiation:n})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}Qx.INSTANCE=new Qx;dh.add(rsi.EditorCommonContributions,Qx.INSTANCE);function Cne(c){return c.register(),c}const RCt=Cne(new Hq({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:_t.MenubarEditMenu,group:"1_do",title:V({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:_t.CommandPalette,group:"",title:V("undo","Undo"),order:1}]}));Cne(new ACt(RCt,{id:"default:undo",precondition:void 0}));const FCt=Cne(new Hq({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:_t.MenubarEditMenu,group:"1_do",title:V({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:_t.CommandPalette,group:"",title:V("redo","Redo"),order:1}]}));Cne(new ACt(FCt,{id:"default:redo",precondition:void 0}));const ssi=Cne(new Hq({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:_t.MenubarSelectionMenu,group:"1_basic",title:V({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:_t.CommandPalette,group:"",title:V("selectAll","Select All"),order:1}]})),osi="$initialize";let Egt=!1;function K5e(c){xR&&(Egt||(Egt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(c.message))}class asi{constructor(e,i,n,s){this.vsWorker=e,this.req=i,this.method=n,this.args=s,this.type=0}}class Igt{constructor(e,i,n,s){this.vsWorker=e,this.seq=i,this.res=n,this.err=s,this.type=1}}class lsi{constructor(e,i,n,s){this.vsWorker=e,this.req=i,this.eventName=n,this.arg=s,this.type=2}}class csi{constructor(e,i,n){this.vsWorker=e,this.req=i,this.event=n,this.type=3}}class usi{constructor(e,i){this.vsWorker=e,this.req=i,this.type=4}}class dsi{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,i){const n=String(++this._lastSentReq);return new Promise((s,l)=>{this._pendingReplies[n]={resolve:s,reject:l},this._send(new asi(this._workerId,n,e,i))})}listen(e,i){let n=null;const s=new ui({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,s),this._send(new lsi(this._workerId,n,e,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new usi(this._workerId,n)),n=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const i=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),i.reject(n);return}i.resolve(e.res)}_handleRequestMessage(e){const i=e.req;this._handler.handleMessage(e.method,e.args).then(s=>{this._send(new Igt(this._workerId,i,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=egt(s.detail)),this._send(new Igt(this._workerId,i,void 0,egt(s)))})}_handleSubscribeEventMessage(e){const i=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(s=>{this._send(new csi(this._workerId,i,s))});this._pendingEvents.set(i,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const i=[];if(e.type===0)for(let n=0;n{this._protocol.handleMessage(w)},w=>{s==null||s(w)})),this._protocol=new dsi({sendMessage:(w,x)=>{this._worker.postMessage(w,x)},handleMessage:(w,x)=>{if(typeof n[w]!="function")return Promise.reject(new Error("Missing method "+w+" on main thread host."));try{return Promise.resolve(n[w].apply(n,x))}catch(I){return Promise.reject(I)}},handleEvent:(w,x)=>{if(WCt(w)){const I=n[w].call(n,x);if(typeof I!="function")throw new Error(`Missing dynamic event ${w} on main thread host.`);return I}if(BCt(w)){const I=n[w];if(typeof I!="function")throw new Error(`Missing event ${w} on main thread host.`);return I}throw new Error(`Malformed event name ${w}`)}}),this._protocol.setWorkerId(this._worker.getId());let l=null;const d=globalThis.require;typeof d<"u"&&typeof d.getConfig=="function"?l=d.getConfig():typeof globalThis.requirejs<"u"&&(l=globalThis.requirejs.s.contexts._.config);const f=_He(n);this._onModuleLoaded=this._protocol.sendMessage(osi,[this._worker.getId(),JSON.parse(JSON.stringify(l)),i,f]);const g=(w,x)=>this._request(w,x),y=(w,x)=>this._protocol.listen(w,x);this._lazyProxy=new Promise((w,x)=>{s=x,this._onModuleLoaded.then(I=>{w(hsi(I,g,y))},I=>{x(I),this._onError("Worker failed to load "+i,I)})})}getProxyObject(){return this._lazyProxy}_request(e,i){return new Promise((n,s)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,i).then(n,s)},s)})}_onError(e,i){console.error(e),console.info(i)}}function BCt(c){return c[0]==="o"&&c[1]==="n"&&WN(c.charCodeAt(2))}function WCt(c){return/^onDynamic/.test(c)&&WN(c.charCodeAt(9))}function hsi(c,e,i){const n=d=>function(){const f=Array.prototype.slice.call(arguments,0);return e(d,f)},s=d=>function(f){return i(d,f)},l={};for(const d of c){if(WCt(d)){l[d]=s(d);continue}if(BCt(d)){l[d]=i(d,void 0);continue}l[d]=n(d)}return l}function i6(c,e){var i;const n=globalThis.MonacoEnvironment;if(n!=null&&n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(c,e)}catch(s){Ba(s);return}try{return(i=ed.trustedTypes)===null||i===void 0?void 0:i.createPolicy(c,e)}catch(s){Ba(s);return}}const Ngt=i6("defaultWorkerFactory",{createScriptURL:c=>c});function _si(c){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",c);if(typeof e.getWorkerUrl=="function"){const i=e.getWorkerUrl("workerMain.js",c);return new Worker(Ngt?Ngt.createScriptURL(i):i,{name:c})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function psi(c){return typeof c.then=="function"}class gsi extends Ii{constructor(e,i,n,s,l){super(),this.id=i,this.label=n;const d=_si(n);psi(d)?this.worker=d:this.worker=Promise.resolve(d),this.postMessage(e,[]),this.worker.then(f=>{f.onmessage=function(g){s(g.data)},f.onmessageerror=l,typeof f.addEventListener=="function"&&f.addEventListener("error",l)}),this._register(go(()=>{var f;(f=this.worker)===null||f===void 0||f.then(g=>{g.onmessage=null,g.onmessageerror=null,g.removeEventListener("error",l),g.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,i){var n;(n=this.worker)===null||n===void 0||n.then(s=>{try{s.postMessage(e,i)}catch(l){Ba(l),Ba(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:l}))}})}}class Y1e{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,i,n){const s=++Y1e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new gsi(e,s,this._label||"anonymous"+s,i,l=>{K5e(l),this._webWorkerFailedBeforeError=l,n(l)})}}Y1e.LAST_WORKER_ID=0;var mp;(function(c){c[c.None=0]="None",c[c.Indent=1]="Indent",c[c.IndentOutdent=2]="IndentOutdent",c[c.Outdent=3]="Outdent"})(mp||(mp={}));class j8e{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let i=0,n=e.notIn.length;inew j8e(i)):e.brackets?this._autoClosingPairs=e.brackets.map(i=>new j8e({open:i[0],close:i[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const i=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new j8e({open:i.open,close:i.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:QU.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:QU.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}QU.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
+ `;QU.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
+ `;function U5(c,e){const i=c.getCount(),n=c.findTokenIndexAtOffset(e),s=c.getLanguageId(n);let l=n;for(;l+10&&c.getLanguageId(d-1)===s;)d--;return new vsi(c,s,d,l+1,c.getStartOffset(d),c.getEndOffset(l))}class vsi{constructor(e,i,n,s,l,d){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=i,this._firstTokenIndex=n,this._lastTokenIndex=s,this.firstCharOffset=l,this._lastCharOffset=d,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function NN(c){return(c&3)!==0}const Lgt=typeof Buffer<"u";let z8e;class eye{static wrap(e){return Lgt&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new eye(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Lgt?this.buffer.toString():(z8e||(z8e=new TextDecoder),z8e.decode(this.buffer))}}function ysi(c,e){return c[e+0]<<0>>>0|c[e+1]<<8>>>0}function bsi(c,e,i){c[i+0]=e&255,e=e>>>8,c[i+1]=e&255}function tE(c,e){return c[e]*2**24+c[e+1]*2**16+c[e+2]*2**8+c[e+3]}function iE(c,e,i){c[i+3]=e,e=e>>>8,c[i+2]=e,e=e>>>8,c[i+1]=e,e=e>>>8,c[i]=e}function Pgt(c,e){return c[e]}function Agt(c,e,i){c[i]=e}let U8e;function VCt(){return U8e||(U8e=new TextDecoder("UTF-16LE")),U8e}let q8e;function Csi(){return q8e||(q8e=new TextDecoder("UTF-16BE")),q8e}let $8e;function HCt(){return $8e||($8e=kbt()?VCt():Csi()),$8e}function Ssi(c,e,i){const n=new Uint16Array(c.buffer,e,i);return i>0&&(n[0]===65279||n[0]===65534)?wsi(c,e,i):VCt().decode(n)}function wsi(c,e,i){const n=[];let s=0;for(let l=0;l=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n[d[0].toLowerCase(),d[1].toLowerCase()]);const i=[];for(let d=0;d{const[g,y]=d,[w,x]=f;return g===w||g===x||y===w||y===x},s=(d,f)=>{const g=Math.min(d,f),y=Math.max(d,f);for(let w=0;w0&&l.push({open:f,close:g})}return l}class ksi{constructor(e,i){this._richEditBracketsBrand=void 0;const n=xsi(i);this.brackets=n.map((s,l)=>new z0e(e,l,s.open,s.close,Tsi(s.open,s.close,n,l),Dsi(s.open,s.close,n,l))),this.forwardRegex=Esi(this.brackets),this.reversedRegex=Isi(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const l of s.open)this.textIsBracket[l]=s,this.textIsOpenBracket[l]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,l.length);for(const l of s.close)this.textIsBracket[l]=s,this.textIsOpenBracket[l]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,l.length)}}}function jCt(c,e,i,n){for(let s=0,l=e.length;s=0&&n.push(f);for(const f of d.close)f.indexOf(c)>=0&&n.push(f)}}function zCt(c,e){return c.length-e.length}function tye(c){if(c.length<=1)return c;const e=[],i=new Set;for(const n of c)i.has(n)||(e.push(n),i.add(n));return e}function Tsi(c,e,i,n){let s=[];s=s.concat(c),s=s.concat(e);for(let l=0,d=s.length;l=0;d--)s[l++]=n.charCodeAt(d);return HCt().decode(s)}let e=null,i=null;return function(s){return e!==s&&(e=s,i=c(e)),i}}();class X2{static _findPrevBracketInText(e,i,n,s){const l=n.match(e);if(!l)return null;const d=n.length-(l.index||0),f=l[0].length,g=s+d;return new at(i,g-f+1,i,g+1)}static findPrevBracketInRange(e,i,n,s,l){const f=qHe(n).substring(n.length-l,n.length-s);return this._findPrevBracketInText(e,i,f,s)}static findNextBracketInText(e,i,n,s){const l=n.match(e);if(!l)return null;const d=l.index||0,f=l[0].length;if(f===0)return null;const g=s+d;return new at(i,g+1,i,g+1+f)}static findNextBracketInRange(e,i,n,s,l){const d=n.substring(s,l);return this.findNextBracketInText(e,i,d,s)}}class Lsi{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const i of this._richEditBrackets.brackets)for(const n of i.close){const s=n.charAt(n.length-1);e.push(s)}return z4(e)}onElectricCharacter(e,i,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const s=i.findTokenIndexAtOffset(n-1);if(NN(i.getStandardTokenType(s)))return null;const l=this._richEditBrackets.reversedRegex,d=i.getLineContent().substring(0,n-1)+e,f=X2.findPrevBracketInRange(l,1,d,0,d.length);if(!f)return null;const g=d.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[g])return null;const w=i.getActualLineContentBefore(f.startColumn-1);return/^\s*$/.test(w)?{matchOpenBracket:g}:null}}function yge(c){return c.global&&(c.lastIndex=0),!0}class Psi{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&yge(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&yge(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&yge(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&yge(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let i=0;return this.shouldIncrease(e)&&(i+=1),this.shouldDecrease(e)&&(i+=2),this.shouldIndentNextLine(e)&&(i+=4),this.shouldIgnore(e)&&(i+=8),i}}class Kz{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(i=>{const n=Kz._createOpenBracketRegExp(i[0]),s=Kz._createCloseBracketRegExp(i[1]);n&&s&&this._brackets.push({open:i[0],openRegExp:n,close:i[1],closeRegExp:s})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,i,n,s){if(e>=3)for(let l=0,d=this._regExpRules.length;ly.reg?(y.reg.lastIndex=0,y.reg.test(y.text)):!0))return f.action}if(e>=2&&n.length>0&&s.length>0)for(let l=0,d=this._brackets.length;l=2&&n.length>0){for(let l=0,d=this._brackets.length;l"u"?i:l}function Osi(c){return c.replace(/[\[\]]/g,"")}const If=Kl("languageService");class aE{constructor(e,i=[],n=!1){this.ctor=e,this.staticArguments=i,this.supportsDelayedInstantiation=n}}const $Ct=[];function dc(c,e,i){e instanceof aE||(e=new aE(e,[],!!i)),$Ct.push([c,e])}function Mgt(){return $Ct}const i_=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),iye={JSONContribution:"base.contributions.json"};function Msi(c){return c.length>0&&c.charAt(c.length-1)==="#"?c.substring(0,c.length-1):c}class Rsi{constructor(){this._onDidChangeSchema=new ui,this.schemasById={}}registerSchema(e,i){this.schemasById[Msi(e)]=i,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const Fsi=new Rsi;dh.add(iye.JSONContribution,Fsi);const WE={Configuration:"base.contributions.configuration"},GY="vscode://schemas/settings/resourceLanguage",Rgt=dh.as(iye.JSONContribution);class Bsi{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new ui,this._onDidUpdateConfiguration=new ui,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:V("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},Rgt.registerSchema(GY,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,i=!0){this.registerConfigurations([e],i)}registerConfigurations(e,i=!0){const n=new Set;this.doRegisterConfigurations(e,i,n),Rgt.registerSchema(GY,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const i=new Set;this.doRegisterDefaultConfigurations(e,i),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,i){var n;const s=[];for(const{overrides:l,source:d}of e)for(const f in l)if(i.add(f),nR.test(f)){const g=this.configurationDefaultsOverrides.get(f),y=(n=g==null?void 0:g.valuesSources)!==null&&n!==void 0?n:new Map;if(d)for(const P of Object.keys(l[f]))y.set(P,d);const w={...(g==null?void 0:g.value)||{},...l[f]};this.configurationDefaultsOverrides.set(f,{source:d,value:w,valuesSources:y});const x=Osi(f),I={type:"object",default:w,description:V("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",x),$ref:GY,defaultDefaultValue:w,source:xy(d)?void 0:d,defaultValueSource:d};s.push(...U0e(f)),this.configurationProperties[f]=I,this.defaultLanguageConfigurationOverridesNode.properties[f]=I}else{this.configurationDefaultsOverrides.set(f,{value:l[f],source:d});const g=this.configurationProperties[f];g&&(this.updatePropertyDefaultValue(f,g),this.updateSchema(f,g))}this.doRegisterOverrideIdentifiers(s)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const i of e)this.overrideIdentifiers.add(i);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,i,n){e.forEach(s=>{this.validateAndRegisterProperties(s,i,s.extensionInfo,s.restrictedProperties,void 0,n),this.configurationContributors.push(s),this.registerJSONConfiguration(s)})}validateAndRegisterProperties(e,i=!0,n,s,l=3,d){var f;l=dw(e.scope)?l:e.scope;const g=e.properties;if(g)for(const w in g){const x=g[w];if(i&&Hsi(w,x)){delete g[w];continue}if(x.source=n,x.defaultDefaultValue=g[w].default,this.updatePropertyDefaultValue(w,x),nR.test(w)?x.scope=void 0:(x.scope=dw(x.scope)?l:x.scope,x.restricted=dw(x.restricted)?!!(s!=null&&s.includes(w)):x.restricted),g[w].hasOwnProperty("included")&&!g[w].included){this.excludedConfigurationProperties[w]=g[w],delete g[w];continue}else this.configurationProperties[w]=g[w],!((f=g[w].policy)===null||f===void 0)&&f.name&&this.policyConfigurations.set(g[w].policy.name,w);!g[w].deprecationMessage&&g[w].markdownDeprecationMessage&&(g[w].deprecationMessage=g[w].markdownDeprecationMessage),d.add(w)}const y=e.allOf;if(y)for(const w of y)this.validateAndRegisterProperties(w,i,n,s,l,d)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const i=n=>{const s=n.properties;if(s)for(const d in s)this.updateSchema(d,s[d]);const l=n.allOf;l==null||l.forEach(i)};i(e)}updateSchema(e,i){switch(i.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=i;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const i=`[${e}]`,n={type:"object",description:V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:V("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:GY};this.updatePropertyDefaultValue(i,n)}}registerOverridePropertyPatternKey(){V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),V("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,i){const n=this.configurationDefaultsOverrides.get(e);let s=n==null?void 0:n.value,l=n==null?void 0:n.source;wb(s)&&(s=i.defaultDefaultValue,l=void 0),wb(s)&&(s=Vsi(i.type)),i.default=s,i.defaultValueSource=l}}const JCt="\\[([^\\]]+)\\]",Fgt=new RegExp(JCt,"g"),Wsi=`^(${JCt})+$`,nR=new RegExp(Wsi);function U0e(c){const e=[];if(nR.test(c)){let i=Fgt.exec(c);for(;i!=null&&i.length;){const n=i[1].trim();n&&e.push(n),i=Fgt.exec(c)}}return z4(e)}function Vsi(c){switch(Array.isArray(c)?c[0]:c){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Ume=new Bsi;dh.add(WE.Configuration,Ume);function Hsi(c,e){var i,n,s,l;return c.trim()?nR.test(c)?V("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",c):Ume.getConfigurationProperties()[c]!==void 0?V("config.property.duplicate","Cannot register '{0}'. This property is already registered.",c):!((i=e.policy)===null||i===void 0)&&i.name&&Ume.getPolicyConfigurations().get((n=e.policy)===null||n===void 0?void 0:n.name)!==void 0?V("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",c,(s=e.policy)===null||s===void 0?void 0:s.name,Ume.getPolicyConfigurations().get((l=e.policy)===null||l===void 0?void 0:l.name)):null:V("config.property.empty","Cannot register an empty property")}const jsi={ModesRegistry:"editor.modesRegistry"};class zsi{constructor(){this._onDidChangeLanguages=new ui,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let i=0,n=this._languages.length;i{const g=new Set;return{info:new $si(this,f,g),closing:g}}),l=new ogt(f=>{const g=new Set,y=new Set;return{info:new Jsi(this,f,g,y),opening:g,openingColorized:y}});for(const[f,g]of n){const y=s.get(f),w=l.get(g);y.closing.add(w.info),w.opening.add(y.info)}const d=i.colorizedBracketPairs?Bgt(i.colorizedBracketPairs):n.filter(f=>!(f[0]==="<"&&f[1]===">"));for(const[f,g]of d){const y=s.get(f),w=l.get(g);y.closing.add(w.info),w.openingColorized.add(y.info),w.opening.add(y.info)}this._openingBrackets=new Map([...s.cachedValues].map(([f,g])=>[f,g.info])),this._closingBrackets=new Map([...l.cachedValues].map(([f,g])=>[f,g.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const i=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return Sne(i,e)}}function Bgt(c){return c.filter(([e,i])=>e!==""&&i!=="")}class GCt{constructor(e,i){this.config=e,this.bracketText=i}get languageId(){return this.config.languageId}}class $si extends GCt{constructor(e,i,n){super(e,i),this.openedBrackets=n,this.isOpeningBracket=!0}}class Jsi extends GCt{constructor(e,i,n,s){super(e,i),this.openingBrackets=n,this.openingColorizedBrackets=s,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var Gsi=function(c,e,i,n){var s=arguments.length,l=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,e,i,n);else for(var f=c.length-1;f>=0;f--)(d=c[f])&&(l=(s<3?d(l):s>3?d(e,i,l):d(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l},Wgt=function(c,e){return function(i,n){e(i,n,c)}};class J8e{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Kd=Kl("languageConfigurationService");let X5e=class extends Ii{constructor(e,i){super(),this.configurationService=e,this.languageService=i,this._registry=this._register(new Zsi),this.onDidChangeEmitter=this._register(new ui),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(Z5e));this._register(this.configurationService.onDidChangeConfiguration(s=>{const l=s.change.keys.some(f=>n.has(f)),d=s.change.overrides.filter(([f,g])=>g.some(y=>n.has(y))).map(([f])=>f);if(l)this.configurations.clear(),this.onDidChangeEmitter.fire(new J8e(void 0));else for(const f of d)this.languageService.isRegisteredLanguageId(f)&&(this.configurations.delete(f),this.onDidChangeEmitter.fire(new J8e(f)))})),this._register(this._registry.onDidChange(s=>{this.configurations.delete(s.languageId),this.onDidChangeEmitter.fire(new J8e(s.languageId))}))}register(e,i,n){return this._registry.register(e,i,n)}getLanguageConfiguration(e){let i=this.configurations.get(e);return i||(i=Ksi(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,i)),i}};X5e=Gsi([Wgt(0,El),Wgt(1,If)],X5e);function Ksi(c,e,i,n){let s=e.getLanguageConfiguration(c);if(!s){if(!n.isRegisteredLanguageId(c))return new wU(c,{});s=new wU(c,{})}const l=Qsi(s.languageId,i),d=QCt([s.underlyingConfig,l]);return new wU(s.languageId,d)}const Z5e={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function Qsi(c,e){const i=e.getValue(Z5e.brackets,{overrideIdentifier:c}),n=e.getValue(Z5e.colorizedBracketPairs,{overrideIdentifier:c});return{brackets:Vgt(i),colorizedBracketPairs:Vgt(n)}}function Vgt(c){if(Array.isArray(c))return c.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function KCt(c,e,i){const n=c.getLineContent(e);let s=Md(n);return s.length>i-1&&(s=s.substring(0,i-1)),s}class Xsi{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,i){const n=new Hgt(e,i,++this._order);return this._entries.push(n),this._resolved=null,go(()=>{for(let s=0;se.configuration)))}}function QCt(c){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of c)e={comments:i.comments||e.comments,brackets:i.brackets||e.brackets,wordPattern:i.wordPattern||e.wordPattern,indentationRules:i.indentationRules||e.indentationRules,onEnterRules:i.onEnterRules||e.onEnterRules,autoClosingPairs:i.autoClosingPairs||e.autoClosingPairs,surroundingPairs:i.surroundingPairs||e.surroundingPairs,autoCloseBefore:i.autoCloseBefore||e.autoCloseBefore,folding:i.folding||e.folding,colorizedBracketPairs:i.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||e.__electricCharacterSupport};return e}class Hgt{constructor(e,i,n){this.configuration=e,this.priority=i,this.order=n}static cmp(e,i){return e.priority===i.priority?e.order-i.order:e.priority-i.priority}}class jgt{constructor(e){this.languageId=e}}class Zsi extends Ii{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new ui),this.onDidChange=this._onDidChange.event,this._register(this.register(yw,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,i,n=0){let s=this._entries.get(e);s||(s=new Xsi(e),this._entries.set(e,s));const l=s.register(i,n);return this._onDidChange.fire(new jgt(e)),go(()=>{l.dispose(),this._onDidChange.fire(new jgt(e))})}getLanguageConfiguration(e){const i=this._entries.get(e);return(i==null?void 0:i.getResolvedConfiguration())||null}}class wU{constructor(e,i){this.languageId=e,this.underlyingConfig=i,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new Kz(this.underlyingConfig):null,this.comments=wU._handleComments(this.underlyingConfig),this.characterPair=new QU(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||mHe,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new Psi(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new qsi(e,this.underlyingConfig)}getWordDefinition(){return vHe(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new ksi(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new Lsi(this.brackets)),this._electricCharacter}onEnter(e,i,n,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,i,n,s):null}getAutoClosingPairs(){return new msi(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const i=e.comments;if(!i)return null;const n={};if(i.lineComment&&(n.lineCommentToken=i.lineComment),i.blockComment){const[s,l]=i.blockComment;n.blockCommentStartToken=s,n.blockCommentEndToken=l}return n}}dc(Kd,X5e,1);class tM{constructor(e,i,n,s){this.originalStart=e,this.originalLength=i,this.modifiedStart=n,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}class zgt{constructor(e){this.source=e}getElements(){const e=this.source,i=new Int32Array(e.length);for(let n=0,s=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new tM(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_originalCount++}AddModifiedElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class UN{constructor(e,i,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=i;const[s,l,d]=UN._getElements(e),[f,g,y]=UN._getElements(i);this._hasStrings=d&&y,this._originalStringElements=s,this._originalElementsOrHash=l,this._modifiedStringElements=f,this._modifiedElementsOrHash=g,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const i=e.getElements();if(UN._isStringArray(i)){const n=new Int32Array(i.length);for(let s=0,l=i.length;s=e&&s>=n&&this.ElementsAreEqual(i,s);)i--,s--;if(e>i||n>s){let x;return n<=s?(vz.Assert(e===i+1,"originalStart should only be one more than originalEnd"),x=[new tM(e,0,n,s-n+1)]):e<=i?(vz.Assert(n===s+1,"modifiedStart should only be one more than modifiedEnd"),x=[new tM(e,i-e+1,n,0)]):(vz.Assert(e===i+1,"originalStart should only be one more than originalEnd"),vz.Assert(n===s+1,"modifiedStart should only be one more than modifiedEnd"),x=[]),x}const d=[0],f=[0],g=this.ComputeRecursionPoint(e,i,n,s,d,f,l),y=d[0],w=f[0];if(g!==null)return g;if(!l[0]){const x=this.ComputeDiffRecursive(e,y,n,w,l);let I=[];return l[0]?I=[new tM(y+1,i-(y+1)+1,w+1,s-(w+1)+1)]:I=this.ComputeDiffRecursive(y+1,i,w+1,s,l),this.ConcatenateChanges(x,I)}return[new tM(e,i-e+1,n,s-n+1)]}WALKTRACE(e,i,n,s,l,d,f,g,y,w,x,I,P,O,W,X,Z,ee){let he=null,we=null,Te=new Ugt,Be=i,Me=n,vt=P[0]-X[0]-s,Nt=-1073741824,Ni=this.m_forwardHistory.length-1;do{const ci=vt+e;ci===Be||ci=0&&(y=this.m_forwardHistory[Ni],e=y[0],Be=1,Me=y.length-1)}while(--Ni>=-1);if(he=Te.getReverseChanges(),ee[0]){let ci=P[0]+1,Mt=X[0]+1;if(he!==null&&he.length>0){const pi=he[he.length-1];ci=Math.max(ci,pi.getOriginalEnd()),Mt=Math.max(Mt,pi.getModifiedEnd())}we=[new tM(ci,I-ci+1,Mt,W-Mt+1)]}else{Te=new Ugt,Be=d,Me=f,vt=P[0]-X[0]-g,Nt=1073741824,Ni=Z?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ci=vt+l;ci===Be||ci=w[ci+1]?(x=w[ci+1]-1,O=x-vt-g,x>Nt&&Te.MarkNextChange(),Nt=x+1,Te.AddOriginalElement(x+1,O+1),vt=ci+1-l):(x=w[ci-1],O=x-vt-g,x>Nt&&Te.MarkNextChange(),Nt=x,Te.AddModifiedElement(x+1,O+1),vt=ci-1-l),Ni>=0&&(w=this.m_reverseHistory[Ni],l=w[0],Be=1,Me=w.length-1)}while(--Ni>=-1);we=Te.getChanges()}return this.ConcatenateChanges(he,we)}ComputeRecursionPoint(e,i,n,s,l,d,f){let g=0,y=0,w=0,x=0,I=0,P=0;e--,n--,l[0]=0,d[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const O=i-e+(s-n),W=O+1,X=new Int32Array(W),Z=new Int32Array(W),ee=s-n,he=i-e,we=e-n,Te=i-s,Me=(he-ee)%2===0;X[ee]=e,Z[he]=i,f[0]=!1;for(let vt=1;vt<=O/2+1;vt++){let Nt=0,Ni=0;w=this.ClipDiagonalBound(ee-vt,vt,ee,W),x=this.ClipDiagonalBound(ee+vt,vt,ee,W);for(let Mt=w;Mt<=x;Mt+=2){Mt===w||MtNt+Ni&&(Nt=g,Ni=y),!Me&&Math.abs(Mt-he)<=vt-1&&g>=Z[Mt])return l[0]=g,d[0]=y,pi<=Z[Mt]&&vt<=1448?this.WALKTRACE(ee,w,x,we,he,I,P,Te,X,Z,g,i,l,y,s,d,Me,f):null}const ci=(Nt-e+(Ni-n)-vt)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Nt,ci))return f[0]=!0,l[0]=Nt,d[0]=Ni,ci>0&&vt<=1448?this.WALKTRACE(ee,w,x,we,he,I,P,Te,X,Z,g,i,l,y,s,d,Me,f):(e++,n++,[new tM(e,i-e+1,n,s-n+1)]);I=this.ClipDiagonalBound(he-vt,vt,he,W),P=this.ClipDiagonalBound(he+vt,vt,he,W);for(let Mt=I;Mt<=P;Mt+=2){Mt===I||Mt=Z[Mt+1]?g=Z[Mt+1]-1:g=Z[Mt-1],y=g-(Mt-he)-Te;const pi=g;for(;g>e&&y>n&&this.ElementsAreEqual(g,y);)g--,y--;if(Z[Mt]=g,Me&&Math.abs(Mt-ee)<=vt&&g<=X[Mt])return l[0]=g,d[0]=y,pi>=X[Mt]&&vt<=1448?this.WALKTRACE(ee,w,x,we,he,I,P,Te,X,Z,g,i,l,y,s,d,Me,f):null}if(vt<=1447){let Mt=new Int32Array(x-w+2);Mt[0]=ee-w+1,yz.Copy2(X,w,Mt,1,x-w+1),this.m_forwardHistory.push(Mt),Mt=new Int32Array(P-I+2),Mt[0]=he-I+1,yz.Copy2(Z,I,Mt,1,P-I+1),this.m_reverseHistory.push(Mt)}}return this.WALKTRACE(ee,w,x,we,he,I,P,Te,X,Z,g,i,l,y,s,d,Me,f)}PrettifyChanges(e){for(let i=0;i0,f=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;i--){const n=e[i];let s=0,l=0;if(i>0){const x=e[i-1];s=x.originalStart+x.originalLength,l=x.modifiedStart+x.modifiedLength}const d=n.originalLength>0,f=n.modifiedLength>0;let g=0,y=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let x=1;;x++){const I=n.originalStart-x,P=n.modifiedStart-x;if(Iy&&(y=W,g=x)}n.originalStart-=g,n.modifiedStart-=g;const w=[null];if(i>0&&this.ChangesOverlap(e[i-1],e[i],w)){e[i-1]=w[0],e.splice(i,1),i++;continue}}if(this._hasStrings)for(let i=1,n=e.length;i0&&P>g&&(g=P,y=x,w=I)}return g>0?[y,w]:null}_contiguousSequenceScore(e,i,n){let s=0;for(let l=0;l=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,i){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,i){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,i,n,s){const l=this._OriginalRegionIsBoundary(e,i)?1:0,d=this._ModifiedRegionIsBoundary(n,s)?1:0;return l+d}ConcatenateChanges(e,i){const n=[];if(e.length===0||i.length===0)return i.length>0?i:e;if(this.ChangesOverlap(e[e.length-1],i[0],n)){const s=new Array(e.length+i.length-1);return yz.Copy(e,0,s,0,e.length-1),s[e.length-1]=n[0],yz.Copy(i,1,s,e.length,i.length-1),s}else{const s=new Array(e.length+i.length);return yz.Copy(e,0,s,0,e.length),yz.Copy(i,0,s,e.length,i.length),s}}ChangesOverlap(e,i,n){if(vz.Assert(e.originalStart<=i.originalStart,"Left change is not less than or equal to right change"),vz.Assert(e.modifiedStart<=i.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=i.originalStart||e.modifiedStart+e.modifiedLength>=i.modifiedStart){const s=e.originalStart;let l=e.originalLength;const d=e.modifiedStart;let f=e.modifiedLength;return e.originalStart+e.originalLength>=i.originalStart&&(l=i.originalStart+i.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=i.modifiedStart&&(f=i.modifiedStart+i.modifiedLength-e.modifiedStart),n[0]=new tM(s,l,d,f),!0}else return n[0]=null,!1}ClipDiagonalBound(e,i,n,s){if(e>=0&&e255?255:c|0}function bz(c){return c<0?0:c>4294967295?4294967295:c|0}class eoi{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,i){e=bz(e);const n=this.values,s=this.prefixSum,l=i.length;return l===0?!1:(this.values=new Uint32Array(n.length+l),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+l),this.values.set(i,e),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,i){return e=bz(e),i=bz(i),this.values[e]===i?!1:(this.values[e]=i,e-1=n.length)return!1;const l=n.length-e;return i>=l&&(i=l),i===0?!1:(this.values=new Uint32Array(n.length-i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+i),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=bz(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let i=this.prefixSumValidIndex[0]+1;i===0&&(this.prefixSum[0]=this.values[0],i++),e>=this.values.length&&(e=this.values.length-1);for(let n=i;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let i=0,n=this.values.length-1,s=0,l=0,d=0;for(;i<=n;)if(s=i+(n-i)/2|0,l=this.prefixSum[s],d=l-this.values[s],e=l)i=s+1;else break;return new XCt(s,e-d)}}class toi{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const i=this._indexBySum[e],n=i>0?this._prefixSum[i-1]:0;return new XCt(i,e-n)}removeValues(e,i){this._values.splice(e,i),this._invalidate(e)}insertValues(e,i){this._values=N1e(this._values,e,i),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,i=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=s+n;for(let l=0;l=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class $0e{constructor(){this._actual=new zq(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class noi{constructor(e,i,n){const s=new Uint8Array(e*i);for(let l=0,d=e*i;li&&(i=g),f>n&&(n=f),y>n&&(n=y)}i++,n++;const s=new noi(n,i,0);for(let l=0,d=e.length;l=this._maxCharCode?0:this._states.get(e,i)}}let G8e=null;function soi(){return G8e===null&&(G8e=new roi([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),G8e}let KY=null;function ooi(){if(KY===null){KY=new zq(0);const c=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let i=0;is);if(s>0){const f=i.charCodeAt(s-1),g=i.charCodeAt(d);(f===40&&g===41||f===91&&g===93||f===123&&g===125)&&d--}return{range:{startLineNumber:n,startColumn:s+1,endLineNumber:n,endColumn:d+2},url:i.substring(s,d+1)}}static computeLinks(e,i=soi()){const n=ooi(),s=[];for(let l=1,d=e.getLineCount();l<=d;l++){const f=e.getLineContent(l),g=f.length;let y=0,w=0,x=0,I=1,P=!1,O=!1,W=!1,X=!1;for(;y=0?(s+=n?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}Y5e.INSTANCE=new Y5e;var qgt,$gt;class loi{constructor(e,i){this.uri=e,this.value=i}}function coi(c){return Array.isArray(c)}class E_{constructor(e,i){if(this[qgt]="ResourceMap",e instanceof E_)this.map=new Map(e.map),this.toKey=i??E_.defaultToKey;else if(coi(e)){this.map=new Map,this.toKey=i??E_.defaultToKey;for(const[n,s]of e)this.set(n,s)}else this.map=new Map,this.toKey=e??E_.defaultToKey}set(e,i){return this.map.set(this.toKey(e),new loi(e,i)),this}get(e){var i;return(i=this.map.get(this.toKey(e)))===null||i===void 0?void 0:i.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,i){typeof i<"u"&&(e=e.bind(i));for(const[n,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(qgt=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}E_.defaultToKey=c=>c.toString();class uoi{constructor(){this[$gt]="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(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,i=0){const n=this._map.get(e);if(n)return i!==0&&this.touch(n,i),n.value}set(e,i,n=0){let s=this._map.get(e);if(s)s.value=i,n!==0&&this.touch(s,n);else{switch(s={key:e,value:i,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(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const i=this._map.get(e);if(i)return this._map.delete(e),this.removeItem(i),this._size--,i.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,i){const n=this._state;let s=this._head;for(;s;){if(i?e.bind(i)(s.value,s.key,this):e(s.value,s.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,i=this._state;let n=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const l={value:n.key,done:!1};return n=n.next,l}else return{value:void 0,done:!0}}};return s}values(){const e=this,i=this._state;let n=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const l={value:n.value,done:!1};return n=n.next,l}else return{value:void 0,done:!0}}};return s}entries(){const e=this,i=this._state;let n=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const l={value:[n.key,n.value],done:!1};return n=n.next,l}else return{value:void 0,done:!0}}};return s}[($gt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let i=this._head,n=this.size;for(;i&&n>e;)this._map.delete(i.key),i=i.next,n--;this._head=i,this._size=n,i&&(i.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let i=this._tail,n=this.size;for(;i&&n>e;)this._map.delete(i.key),i=i.previous,n--;this._tail=i,this._size=n,i&&(i.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const i=e.next,n=e.previous;if(!i||!n)throw new Error("Invalid list");i.previous=n,n.next=i}e.next=void 0,e.previous=void 0,this._state++}touch(e,i){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(i!==1&&i!==2)){if(i===1){if(e===this._head)return;const n=e.next,s=e.previous;e===this._tail?(s.next=void 0,this._tail=s):(n.previous=s,s.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(i===2){if(e===this._tail)return;const n=e.next,s=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=s,s.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((i,n)=>{e.push([n,i])}),e}fromJSON(e){this.clear();for(const[i,n]of e)this.set(i,n)}}class doi extends uoi{constructor(e,i=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,i),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,i=2){return super.get(e,i)}peek(e){return super.get(e,0)}set(e,i){return super.set(e,i,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class TL extends doi{constructor(e,i=1){super(e,i)}trim(e){this.trimOld(e)}set(e,i){return super.set(e,i),this.checkTrim(),this}}class foi{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[i,n]of e)this.set(i,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,i){this._m1.set(e,i),this._m2.set(i,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const i=this._m1.get(e);return i===void 0?!1:(this._m1.delete(e),this._m2.delete(i),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class $He{constructor(){this.map=new Map}add(e,i){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(i)}delete(e,i){const n=this.map.get(e);n&&(n.delete(i),n.size===0&&this.map.delete(e))}forEach(e,i){const n=this.map.get(e);n&&n.forEach(i)}get(e){const i=this.map.get(e);return i||new Set}}class hoi extends zq{constructor(e,i){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=i,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,s=e.length;ni)break;n=s}return n}findNextIntlWordAtOrAfterOffset(e,i){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index=0;let i=null;try{i=Kbt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!i)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new poi(i,this.wordSeparators?ak(this.wordSeparators,[]):null,n?this.searchString:null)}}function voi(c){if(!c||c.length===0)return!1;for(let e=0,i=c.length;e=i)break;const s=c.charCodeAt(e);if(s===110||s===114||s===87)return!0}}return!1}function A5(c,e,i){if(!i)return new jte(c,null);const n=[];for(let s=0,l=e.length;s>0);i[l]>=e?s=l-1:i[l+1]>=e?(n=l,s=l):n=l+1}return n+1}}class bge{static findMatches(e,i,n,s,l){const d=i.parseSearchRequest();return d?d.regex.multiline?this._doFindMatchesMultiline(e,n,new Qz(d.wordSeparators,d.regex),s,l):this._doFindMatchesLineByLine(e,n,d,s,l):[]}static _getMultilineMatchRange(e,i,n,s,l,d){let f,g=0;s?(g=s.findLineFeedCountBeforeOffset(l),f=i+l+g):f=i+l;let y;if(s){const P=s.findLineFeedCountBeforeOffset(l+d.length)-g;y=f+d.length+P}else y=f+d.length;const w=e.getPositionAt(f),x=e.getPositionAt(y);return new at(w.lineNumber,w.column,x.lineNumber,x.column)}static _doFindMatchesMultiline(e,i,n,s,l){const d=e.getOffsetAt(i.getStartPosition()),f=e.getValueInRange(i,1),g=e.getEOL()===`\r
+`?new Ggt(f):null,y=[];let w=0,x;for(n.reset(0);x=n.next(f);)if(y[w++]=A5(this._getMultilineMatchRange(e,d,f,g,x.index,x[0]),x,s),w>=l)return y;return y}static _doFindMatchesLineByLine(e,i,n,s,l){const d=[];let f=0;if(i.startLineNumber===i.endLineNumber){const y=e.getLineContent(i.startLineNumber).substring(i.startColumn-1,i.endColumn-1);return f=this._findMatchesInLine(n,y,i.startLineNumber,i.startColumn-1,f,d,s,l),d}const g=e.getLineContent(i.startLineNumber).substring(i.startColumn-1);f=this._findMatchesInLine(n,g,i.startLineNumber,i.startColumn-1,f,d,s,l);for(let y=i.startLineNumber+1;y=g))return l;return l}const w=new Qz(e.wordSeparators,e.regex);let x;w.reset(0);do if(x=w.next(i),x&&(d[l++]=A5(new at(n,x.index+1+s,n,x.index+1+x[0].length+s),x,f),l>=g))return l;while(x);return l}static findNextMatch(e,i,n,s){const l=i.parseSearchRequest();if(!l)return null;const d=new Qz(l.wordSeparators,l.regex);return l.regex.multiline?this._doFindNextMatchMultiline(e,n,d,s):this._doFindNextMatchLineByLine(e,n,d,s)}static _doFindNextMatchMultiline(e,i,n,s){const l=new yi(i.lineNumber,1),d=e.getOffsetAt(l),f=e.getLineCount(),g=e.getValueInRange(new at(l.lineNumber,l.column,f,e.getLineMaxColumn(f)),1),y=e.getEOL()===`\r
+`?new Ggt(g):null;n.reset(i.column-1);const w=n.next(g);return w?A5(this._getMultilineMatchRange(e,d,g,y,w.index,w[0]),w,s):i.lineNumber!==1||i.column!==1?this._doFindNextMatchMultiline(e,new yi(1,1),n,s):null}static _doFindNextMatchLineByLine(e,i,n,s){const l=e.getLineCount(),d=i.lineNumber,f=e.getLineContent(d),g=this._findFirstMatchInLine(n,f,d,i.column,s);if(g)return g;for(let y=1;y<=l;y++){const w=(d+y-1)%l,x=e.getLineContent(w+1),I=this._findFirstMatchInLine(n,x,w+1,1,s);if(I)return I}return null}static _findFirstMatchInLine(e,i,n,s,l){e.reset(s-1);const d=e.next(i);return d?A5(new at(n,d.index+1,n,d.index+1+d[0].length),d,l):null}static findPreviousMatch(e,i,n,s){const l=i.parseSearchRequest();if(!l)return null;const d=new Qz(l.wordSeparators,l.regex);return l.regex.multiline?this._doFindPreviousMatchMultiline(e,n,d,s):this._doFindPreviousMatchLineByLine(e,n,d,s)}static _doFindPreviousMatchMultiline(e,i,n,s){const l=this._doFindMatchesMultiline(e,new at(1,1,i.lineNumber,i.column),n,s,10*moi);if(l.length>0)return l[l.length-1];const d=e.getLineCount();return i.lineNumber!==d||i.column!==e.getLineMaxColumn(d)?this._doFindPreviousMatchMultiline(e,new yi(d,e.getLineMaxColumn(d)),n,s):null}static _doFindPreviousMatchLineByLine(e,i,n,s){const l=e.getLineCount(),d=i.lineNumber,f=e.getLineContent(d).substring(0,i.column-1),g=this._findLastMatchInLine(n,f,d,s);if(g)return g;for(let y=1;y<=l;y++){const w=(l+d-y-1)%l,x=e.getLineContent(w+1),I=this._findLastMatchInLine(n,x,w+1,s);if(I)return I}return null}static _findLastMatchInLine(e,i,n,s){let l=null,d;for(e.reset(0);d=e.next(i);)l=A5(new at(n,d.index+1,n,d.index+1+d[0].length),d,s);return l}}function yoi(c,e,i,n,s){if(n===0)return!0;const l=e.charCodeAt(n-1);if(c.get(l)!==0||l===13||l===10)return!0;if(s>0){const d=e.charCodeAt(n);if(c.get(d)!==0)return!0}return!1}function boi(c,e,i,n,s){if(n+s===i)return!0;const l=e.charCodeAt(n+s);if(c.get(l)!==0||l===13||l===10)return!0;if(s>0){const d=e.charCodeAt(n+s-1);if(c.get(d)!==0)return!0}return!1}function JHe(c,e,i,n,s){return yoi(c,e,i,n,s)&&boi(c,e,i,n,s)}class Qz{constructor(e,i){this._wordSeparators=e,this._searchRegex=i,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const i=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||(n=this._searchRegex.exec(e),!n))return null;const s=n.index,l=n[0].length;if(s===this._prevMatchStartIndex&&l===this._prevMatchLength){if(l===0){R0e(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=l,!this._wordSeparators||JHe(this._wordSeparators,e,i,s,l))return n}while(n);return null}}class GHe{static computeUnicodeHighlights(e,i,n){const s=n?n.startLineNumber:1,l=n?n.endLineNumber:e.getLineCount(),d=new Kgt(i),f=d.getCandidateCodePoints();let g;f==="allNonBasicAscii"?g=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):g=new RegExp(`${Coi(Array.from(f))}`,"g");const y=new Qz(null,g),w=[];let x=!1,I,P=0,O=0,W=0;e:for(let X=s,Z=l;X<=Z;X++){const ee=e.getLineContent(X),he=ee.length;y.reset(0);do if(I=y.next(ee),I){let we=I.index,Te=I.index+I[0].length;if(we>0){const Nt=ee.charCodeAt(we-1);Bg(Nt)&&we--}if(Te+1=1e3){x=!0;break e}w.push(new at(X,we+1,X,Te+1))}}while(I)}return{ranges:w,hasMore:x,ambiguousCharacterCount:P,invisibleCharacterCount:O,nonBasicAsciiCharacterCount:W}}static computeUnicodeHighlightReason(e,i){const n=new Kgt(i);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const l=e.codePointAt(0),d=n.ambiguousCharacters.getPrimaryConfusable(l),f=m9.getLocales().filter(g=>!m9.getInstance(new Set([...i.allowedLocales,g])).isAmbiguous(l));return{kind:0,confusableWith:String.fromCodePoint(d),notAmbiguousInLocales:f}}case 1:return{kind:2}}}}function Coi(c,e){return`[${Cw(c.map(n=>String.fromCodePoint(n)).join(""))}]`}class Kgt{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=m9.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const i of oL.codePoints)Qgt(String.fromCodePoint(i))||e.add(i);if(this.options.ambiguousCharacters)for(const i of this.ambiguousCharacters.getConfusableCodePoints())e.add(i);for(const i of this.allowedCodePoints)e.delete(i);return e}shouldHighlightNonBasicASCII(e,i){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,l=!1;if(i)for(const d of i){const f=d.codePointAt(0),g=mne(d);s=s||g,!g&&!this.ambiguousCharacters.isAmbiguous(f)&&!oL.isInvisibleCharacter(f)&&(l=!0)}return!s&&l?0:this.options.invisibleCharacters&&!Qgt(e)&&oL.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Qgt(c){return c===" "||c===`
+`||c===" "}class $me{constructor(e,i,n){this.changes=e,this.moves=i,this.hitTimeout=n}}class YCt{constructor(e,i){this.lineRangeMapping=e,this.changes=i}}class gl{static addRange(e,i){let n=0;for(;ni))return new gl(e,i)}static ofLength(e){return new gl(0,e)}static ofStartAndLength(e,i){return new gl(e,e+i)}constructor(e,i){if(this.start=e,this.endExclusive=i,e>i)throw new Yu(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new gl(this.start+e,this.endExclusive+e)}deltaStart(e){return new gl(this.start+e,this.endExclusive)}deltaEnd(e){return new gl(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new Yu(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new Yu(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let i=this.start;ie.toString()).join(", ")}intersectsStrict(e){let i=0;for(;ie+i.length,0)}}function zte(c,e){const i=Soi(c,e);if(i!==-1)return c[i]}function Soi(c,e,i=c.length-1){for(let n=i;n>=0;n--){const s=c[n];if(e(s))return n}return-1}function ZU(c,e){const i=Ute(c,e);return i===-1?void 0:c[i]}function Ute(c,e,i=0,n=c.length){let s=i,l=n;for(;s0&&(i=s)}return i}function xoi(c,e){if(c.length===0)return;let i=c[0];for(let n=1;n=0&&(i=s)}return i}function koi(c,e){return QHe(c,(i,n)=>-e(i,n))}function Toi(c,e){if(c.length===0)return-1;let i=0;for(let n=1;n0&&(i=n)}return i}function Doi(c,e){for(const i of c){const n=e(i);if(n!==void 0)return n}}let cl=class e4{static fromRangeInclusive(e){return new e4(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let i=new Xx(e[0].slice());for(let n=1;ni)throw new Yu(`startLineNumber ${e} cannot be after endLineNumberExclusive ${i}`);this.startLineNumber=e,this.endLineNumberExclusive=i}contains(e){return this.startLineNumber<=e&&es.endLineNumberExclusive>=e.startLineNumber),n=Ute(this._normalizedRanges,s=>s.startLineNumber<=e.endLineNumberExclusive)+1;if(i===n)this._normalizedRanges.splice(i,0,e);else if(i===n-1){const s=this._normalizedRanges[i];this._normalizedRanges[i]=s.join(e)}else{const s=this._normalizedRanges[i].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(i,n-i,s)}}contains(e){const i=ZU(this._normalizedRanges,n=>n.startLineNumber<=e);return!!i&&i.endLineNumberExclusive>e}intersects(e){const i=ZU(this._normalizedRanges,n=>n.startLineNumbere.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const i=[];let n=0,s=0,l=null;for(;n=d.startLineNumber?l=new cl(l.startLineNumber,Math.max(l.endLineNumberExclusive,d.endLineNumberExclusive)):(i.push(l),l=d)}return l!==null&&i.push(l),new Xx(i)}subtractFrom(e){const i=qte(this._normalizedRanges,d=>d.endLineNumberExclusive>=e.startLineNumber),n=Ute(this._normalizedRanges,d=>d.startLineNumber<=e.endLineNumberExclusive)+1;if(i===n)return new Xx([e]);const s=[];let l=e.startLineNumber;for(let d=i;dl&&s.push(new cl(l,f.startLineNumber)),l=f.endLineNumberExclusive}return le.toString()).join(", ")}getIntersection(e){const i=[];let n=0,s=0;for(;ni.delta(e)))}}class Cy{static betweenPositions(e,i){return e.lineNumber===i.lineNumber?new Cy(0,i.column-e.column):new Cy(i.lineNumber-e.lineNumber,i.column-1)}static ofRange(e){return Cy.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let i=0,n=0;for(const s of e)s===`
+`?(i++,n=0):n++;return new Cy(i,n)}constructor(e,i){this.lineCount=e,this.columnCount=i}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return this.lineCount===0?new at(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new at(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return this.lineCount===0?new yi(e.lineNumber,e.column+this.columnCount):new yi(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}Cy.zero=new Cy(0,0);class Eoi{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let i=0;izHe(e,(i,n)=>i.range.getEndPosition().isBeforeOrEqual(n.range.getStartPosition())))}apply(e){let i="",n=new yi(1,1);for(const l of this.edits){const d=l.range,f=d.getStartPosition(),g=d.getEndPosition(),y=Xgt(n,f);y.isEmpty()||(i+=e.getValueOfRange(y)),i+=l.text,n=g}const s=Xgt(n,e.endPositionExclusive);return s.isEmpty()||(i+=e.getValueOfRange(s)),i}applyToString(e){const i=new Ioi(e);return this.apply(i)}getNewRanges(){const e=[];let i=0,n=0,s=0;for(const l of this.edits){const d=Cy.ofText(l.text),f=yi.lift({lineNumber:l.range.startLineNumber+n,column:l.range.startColumn+(l.range.startLineNumber===i?s:0)}),g=d.createRange(f);e.push(g),n=g.endLineNumber-l.range.endLineNumber,s=g.endColumn-l.range.endColumn,i=l.range.endLineNumber}return e}}class K4{constructor(e,i){this.range=e,this.text=i}}function Xgt(c,e){if(c.lineNumber===e.lineNumber&&c.column===Number.MAX_SAFE_INTEGER)return at.fromPositions(e,e);if(!c.isBeforeOrEqual(e))throw new Yu("start must be before end");return new at(c.lineNumber,c.column,e.lineNumber,e.column)}class eSt{get endPositionExclusive(){return this.length.addToPosition(new yi(1,1))}}class Ioi extends eSt{constructor(e){super(),this.value=e,this._t=new Eoi(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}class my{static inverse(e,i,n){const s=[];let l=1,d=1;for(const g of e){const y=new my(new cl(l,g.original.startLineNumber),new cl(d,g.modified.startLineNumber));y.modified.isEmpty||s.push(y),l=g.original.endLineNumberExclusive,d=g.modified.endLineNumberExclusive}const f=new my(new cl(l,i+1),new cl(d,n+1));return f.modified.isEmpty||s.push(f),s}static clip(e,i,n){const s=[];for(const l of e){const d=l.original.intersect(i),f=l.modified.intersect(n);d&&!d.isEmpty&&f&&!f.isEmpty&&s.push(new my(d,f))}return s}constructor(e,i){this.original=e,this.modified=i}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new my(this.modified,this.original)}join(e){return new my(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),i=this.modified.toInclusiveRange();if(e&&i)return new bE(e,i);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Yu("not a valid diff");return new bE(new at(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new at(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new bE(new at(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new at(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class bw extends my{static fromRangeMappings(e){const i=cl.join(e.map(s=>cl.fromRangeInclusive(s.originalRange))),n=cl.join(e.map(s=>cl.fromRangeInclusive(s.modifiedRange)));return new bw(i,n,e)}constructor(e,i,n){super(e,i),this.innerChanges=n}flip(){var e;return new bw(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(i=>i.flip()))}withInnerChangesFromLineRanges(){return new bw(this.original,this.modified,[this.toRangeMapping()])}}class bE{constructor(e,i){this.originalRange=e,this.modifiedRange=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new bE(this.modifiedRange,this.originalRange)}toTextEdit(e){const i=e.getValueOfRange(this.modifiedRange);return new K4(this.originalRange,i)}}const Noi=3;class Loi{computeDiff(e,i,n){var s;const d=new Ooi(e,i,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),f=[];let g=null;for(const y of d.changes){let w;y.originalEndLineNumber===0?w=new cl(y.originalStartLineNumber+1,y.originalStartLineNumber+1):w=new cl(y.originalStartLineNumber,y.originalEndLineNumber+1);let x;y.modifiedEndLineNumber===0?x=new cl(y.modifiedStartLineNumber+1,y.modifiedStartLineNumber+1):x=new cl(y.modifiedStartLineNumber,y.modifiedEndLineNumber+1);let I=new bw(w,x,(s=y.charChanges)===null||s===void 0?void 0:s.map(P=>new bE(new at(P.originalStartLineNumber,P.originalStartColumn,P.originalEndLineNumber,P.originalEndColumn),new at(P.modifiedStartLineNumber,P.modifiedStartColumn,P.modifiedEndLineNumber,P.modifiedEndColumn))));g&&(g.modified.endLineNumberExclusive===I.modified.startLineNumber||g.original.endLineNumberExclusive===I.original.startLineNumber)&&(I=new bw(g.original.join(I.original),g.modified.join(I.modified),g.innerChanges&&I.innerChanges?g.innerChanges.concat(I.innerChanges):void 0),f.pop()),f.push(I),g=I}return C9(()=>zHe(f,(y,w)=>w.original.startLineNumber-y.original.endLineNumberExclusive===w.modified.startLineNumber-y.modified.endLineNumberExclusive&&y.original.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[i]},${this._columns[i]})`).join(", ")+"]"}_assertIndex(e,i){if(e<0||e>=i.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class xU{constructor(e,i,n,s,l,d,f,g){this.originalStartLineNumber=e,this.originalStartColumn=i,this.originalEndLineNumber=n,this.originalEndColumn=s,this.modifiedStartLineNumber=l,this.modifiedStartColumn=d,this.modifiedEndLineNumber=f,this.modifiedEndColumn=g}static createFromDiffChange(e,i,n){const s=i.getStartLineNumber(e.originalStart),l=i.getStartColumn(e.originalStart),d=i.getEndLineNumber(e.originalStart+e.originalLength-1),f=i.getEndColumn(e.originalStart+e.originalLength-1),g=n.getStartLineNumber(e.modifiedStart),y=n.getStartColumn(e.modifiedStart),w=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),x=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new xU(s,l,d,f,g,y,w,x)}}function Aoi(c){if(c.length<=1)return c;const e=[c[0]];let i=e[0];for(let n=1,s=c.length;n0&&i.originalLength<20&&i.modifiedLength>0&&i.modifiedLength<20&&l()){const P=n.createCharSequence(e,i.originalStart,i.originalStart+i.originalLength-1),O=s.createCharSequence(e,i.modifiedStart,i.modifiedStart+i.modifiedLength-1);if(P.getElements().length>0&&O.getElements().length>0){let W=tSt(P,O,l,!0).changes;f&&(W=Aoi(W)),I=[];for(let X=0,Z=W.length;X1&&W>1;){const X=I.charCodeAt(O-2),Z=P.charCodeAt(W-2);if(X!==Z)break;O--,W--}(O>1||W>1)&&this._pushTrimWhitespaceCharChange(s,l+1,1,O,d+1,1,W)}{let O=t9e(I,1),W=t9e(P,1);const X=I.length+1,Z=P.length+1;for(;O!0;const e=Date.now();return()=>Date.now()-e{n.push(Fg.fromOffsetPairs(s?s.getEndExclusives():Yx.zero,l?l.getStarts():new Yx(i,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+i)))}),n}static fromOffsetPairs(e,i){return new Fg(new gl(e.offset1,i.offset1),new gl(e.offset2,i.offset2))}constructor(e,i){this.seq1Range=e,this.seq2Range=i}swap(){return new Fg(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Fg(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new Fg(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new Fg(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new Fg(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const i=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(!(!i||!n))return new Fg(i,n)}getStarts(){return new Yx(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Yx(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Yx{constructor(e,i){this.offset1=e,this.offset2=i}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Yx(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}Yx.zero=new Yx(0,0);Yx.max=new Yx(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class $te{isValid(){return!0}}$te.instance=new $te;class Moi{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Yu("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&W>0&&d.get(O-1,W-1)===3&&(ee+=f.get(O-1,W-1)),ee+=s?s(O,W):1):ee=-1;const he=Math.max(X,Z,ee);if(he===ee){const we=O>0&&W>0?f.get(O-1,W-1):0;f.set(O,W,we+1),d.set(O,W,3)}else he===X?(f.set(O,W,0),d.set(O,W,1)):he===Z&&(f.set(O,W,0),d.set(O,W,2));l.set(O,W,he)}const g=[];let y=e.length,w=i.length;function x(O,W){(O+1!==y||W+1!==w)&&g.push(new Fg(new gl(O+1,y),new gl(W+1,w))),y=O,w=W}let I=e.length-1,P=i.length-1;for(;I>=0&&P>=0;)d.get(I,P)===3?(x(I,P),I--,P--):d.get(I,P)===1?I--:P--;return x(-1,-1),g.reverse(),new F4(g,!1)}}class iSt{compute(e,i,n=$te.instance){if(e.length===0||i.length===0)return F4.trivial(e,i);const s=e,l=i;function d(W,X){for(;Ws.length||we>l.length)continue;const Te=d(he,we);g.set(w,Te);const Be=he===Z?y.get(w+1):y.get(w-1);if(y.set(w,Te!==he?new emt(Be,he,we,Te-he):Be),g.get(w)===s.length&&g.get(w)-w===l.length)break e}}let x=y.get(w);const I=[];let P=s.length,O=l.length;for(;;){const W=x?x.x+x.length:0,X=x?x.y+x.length:0;if((W!==P||X!==O)&&I.push(new Fg(new gl(W,P),new gl(X,O))),!x)break;P=x.x,O=x.y,x=x.prev}return I.reverse(),new F4(I,!1)}}class emt{constructor(e,i,n,s){this.prev=e,this.x=i,this.y=n,this.length=s}}class Foi{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,i){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=i}else{if(e>=this.positiveArr.length){const n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=i}}}class Boi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,i){e<0?(e=-e-1,this.negativeArr[e]=i):this.positiveArr[e]=i}}class G0e{constructor(e,i,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let s=!1;i.start>0&&i.endExclusive>=e.length&&(i=new gl(i.start-1,i.endExclusive),s=!0),this.lineRange=i,this.firstCharOffsetByLine[0]=0;for(let l=this.lineRange.start;lString.fromCharCode(i)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const i=imt(e>0?this.elements[e-1]:-1),n=imt(en<=e);return new yi(this.lineRange.start+i+1,e-this.firstCharOffsetByLine[i]+this.additionalOffsetByLine[i]+1)}translateRange(e){return at.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!X8e(this.elements[e]))return;let i=e;for(;i>0&&X8e(this.elements[i-1]);)i--;let n=e;for(;nd<=e.start))!==null&&i!==void 0?i:0,l=(n=woi(this.firstCharOffsetByLine,d=>e.endExclusive<=d))!==null&&n!==void 0?n:this.elements.length;return new gl(s,l)}}function X8e(c){return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57}const Woi={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function tmt(c){return Woi[c]}function imt(c){return c===10?8:c===13?7:i9e(c)?6:c>=97&&c<=122?0:c>=65&&c<=90?1:c>=48&&c<=57?2:c===-1?3:c===44||c===59?5:4}function Voi(c,e,i,n,s,l){let{moves:d,excludedChanges:f}=joi(c,e,i,l);if(!l.isValid())return[];const g=c.filter(w=>!f.has(w)),y=zoi(g,n,s,e,i,l);return PFe(d,y),d=Uoi(d),d=d.filter(w=>{const x=w.original.toOffsetRange().slice(e).map(P=>P.trim());return x.join(`
+`).length>=15&&Hoi(x,P=>P.length>=2)>=2}),d=qoi(c,d),d}function Hoi(c,e){let i=0;for(const n of c)e(n)&&i++;return i}function joi(c,e,i,n){const s=[],l=c.filter(g=>g.modified.isEmpty&&g.original.length>=3).map(g=>new YU(g.original,e,g)),d=new Set(c.filter(g=>g.original.isEmpty&&g.modified.length>=3).map(g=>new YU(g.modified,i,g))),f=new Set;for(const g of l){let y=-1,w;for(const x of d){const I=g.computeSimilarity(x);I>y&&(y=I,w=x)}if(y>.9&&w&&(d.delete(w),s.push(new my(g.range,w.range)),f.add(g.source),f.add(w.source)),!n.isValid())return{moves:s,excludedChanges:f}}return{moves:s,excludedChanges:f}}function zoi(c,e,i,n,s,l){const d=[],f=new $He;for(const I of c)for(let P=I.original.startLineNumber;PI.modified.startLineNumber,uT));for(const I of c){let P=[];for(let O=I.modified.startLineNumber;O{for(const we of P)if(we.originalLineRange.endLineNumberExclusive+1===ee.endLineNumberExclusive&&we.modifiedLineRange.endLineNumberExclusive+1===X.endLineNumberExclusive){we.originalLineRange=new cl(we.originalLineRange.startLineNumber,ee.endLineNumberExclusive),we.modifiedLineRange=new cl(we.modifiedLineRange.startLineNumber,X.endLineNumberExclusive),Z.push(we);return}const he={modifiedLineRange:X,originalLineRange:ee};g.push(he),Z.push(he)}),P=Z}if(!l.isValid())return[]}g.sort(gbt(kb(I=>I.modifiedLineRange.length,uT)));const y=new Xx,w=new Xx;for(const I of g){const P=I.modifiedLineRange.startLineNumber-I.originalLineRange.startLineNumber,O=y.subtractFrom(I.modifiedLineRange),W=w.subtractFrom(I.originalLineRange).getWithDelta(P),X=O.getIntersection(W);for(const Z of X.ranges){if(Z.length<3)continue;const ee=Z,he=Z.delta(-P);d.push(new my(he,ee)),y.addRange(ee),w.addRange(he)}}d.sort(kb(I=>I.original.startLineNumber,uT));const x=new wne(c);for(let I=0;IBe.original.startLineNumber<=P.original.startLineNumber),W=ZU(c,Be=>Be.modified.startLineNumber<=P.modified.startLineNumber),X=Math.max(P.original.startLineNumber-O.original.startLineNumber,P.modified.startLineNumber-W.modified.startLineNumber),Z=x.findLastMonotonous(Be=>Be.original.startLineNumberBe.modified.startLineNumbern.length||Me>s.length||y.contains(Me)||w.contains(Be)||!nmt(n[Be-1],s[Me-1],l))break}we>0&&(w.addRange(new cl(P.original.startLineNumber-we,P.original.startLineNumber)),y.addRange(new cl(P.modified.startLineNumber-we,P.modified.startLineNumber)));let Te;for(Te=0;Ten.length||Me>s.length||y.contains(Me)||w.contains(Be)||!nmt(n[Be-1],s[Me-1],l))break}Te>0&&(w.addRange(new cl(P.original.endLineNumberExclusive,P.original.endLineNumberExclusive+Te)),y.addRange(new cl(P.modified.endLineNumberExclusive,P.modified.endLineNumberExclusive+Te))),(we>0||Te>0)&&(d[I]=new my(new cl(P.original.startLineNumber-we,P.original.endLineNumberExclusive+Te),new cl(P.modified.startLineNumber-we,P.modified.endLineNumberExclusive+Te)))}return d}function nmt(c,e,i){if(c.trim()===e.trim())return!0;if(c.length>300&&e.length>300)return!1;const s=new iSt().compute(new G0e([c],new gl(0,1),!1),new G0e([e],new gl(0,1),!1),i);let l=0;const d=Fg.invert(s.diffs,c.length);for(const w of d)w.seq1Range.forEach(x=>{i9e(c.charCodeAt(x))||l++});function f(w){let x=0;for(let I=0;Ie.length?c:e);return l/g>.6&&g>10}function Uoi(c){if(c.length===0)return c;c.sort(kb(i=>i.original.startLineNumber,uT));const e=[c[0]];for(let i=1;i=0&&d>=0&&l+d<=2){e[e.length-1]=n.join(s);continue}e.push(s)}return e}function qoi(c,e){const i=new wne(c);return e=e.filter(n=>{const s=i.findLastMonotonous(f=>f.original.startLineNumberf.modified.startLineNumber0&&(f=f.delta(y))}s.push(f)}return n.length>0&&s.push(n[n.length-1]),s}function $oi(c,e,i){if(!c.getBoundaryScore||!e.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,l=i[n],d=n+1=n.start&&c.seq2Range.start-d>=s.start&&i.isStronglyEqual(c.seq2Range.start-d,c.seq2Range.endExclusive-d)&&d<100;)d++;d--;let f=0;for(;c.seq1Range.start+fy&&(y=O,g=w)}return c.delta(g)}function Joi(c,e,i){const n=[];for(const s of i){const l=n[n.length-1];if(!l){n.push(s);continue}s.seq1Range.start-l.seq1Range.endExclusive<=2||s.seq2Range.start-l.seq2Range.endExclusive<=2?n[n.length-1]=new Fg(l.seq1Range.join(s.seq1Range),l.seq2Range.join(s.seq2Range)):n.push(s)}return n}function Goi(c,e,i){const n=Fg.invert(i,c.length),s=[];let l=new Yx(0,0);function d(g,y){if(g.offset10;){const X=n[0];if(!(X.seq1Range.intersects(I.seq1Range)||X.seq2Range.intersects(I.seq2Range)))break;const ee=c.findWordContaining(X.seq1Range.start),he=e.findWordContaining(X.seq2Range.start),we=new Fg(ee,he),Te=we.intersect(X);if(O+=Te.seq1Range.length,W+=Te.seq2Range.length,I=I.join(we),I.seq1Range.endExclusive>=X.seq1Range.endExclusive)n.shift();else break}O+W<(I.seq1Range.length+I.seq2Range.length)*2/3&&s.push(I),l=I.getEndExclusives()}for(;n.length>0;){const g=n.shift();g.seq1Range.isEmpty||(d(g.getStarts(),g),d(g.getEndExclusives().delta(-1),g))}return Koi(i,s)}function Koi(c,e){const i=[];for(;c.length>0||e.length>0;){const n=c[0],s=e[0];let l;n&&(!s||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=l.seq1Range.start?i[i.length-1]=i[i.length-1].join(l):i.push(l)}return i}function Qoi(c,e,i){let n=i;if(n.length===0)return n;let s=0,l;do{l=!1;const d=[n[0]];for(let f=1;f5||P.seq1Range.length+P.seq2Range.length>5)};const g=n[f],y=d[d.length-1];w(y,g)?(l=!0,d[d.length-1]=d[d.length-1].join(g)):d.push(g)}n=d}while(s++<10&&l);return n}function Xoi(c,e,i){let n=i;if(n.length===0)return n;let s=0,l;do{l=!1;const f=[n[0]];for(let g=1;g5||W.length>500)return!1;const Z=c.getText(W).trim();if(Z.length>20||Z.split(/\r\n|\r|\n/).length>1)return!1;const ee=c.countLinesIn(P.seq1Range),he=P.seq1Range.length,we=e.countLinesIn(P.seq2Range),Te=P.seq2Range.length,Be=c.countLinesIn(O.seq1Range),Me=O.seq1Range.length,vt=e.countLinesIn(O.seq2Range),Nt=O.seq2Range.length,Ni=2*40+50;function ci(Mt){return Math.min(Mt,Ni)}return Math.pow(Math.pow(ci(ee*40+he),1.5)+Math.pow(ci(we*40+Te),1.5),1.5)+Math.pow(Math.pow(ci(Be*40+Me),1.5)+Math.pow(ci(vt*40+Nt),1.5),1.5)>(Ni**1.5)**1.5*1.3};const y=n[g],w=f[f.length-1];x(w,y)?(l=!0,f[f.length-1]=f[f.length-1].join(y)):f.push(y)}n=f}while(s++<10&&l);const d=[];return Uei(n,(f,g,y)=>{let w=g;function x(Z){return Z.length>0&&Z.trim().length<=3&&g.seq1Range.length+g.seq2Range.length>100}const I=c.extendToFullLines(g.seq1Range),P=c.getText(new gl(I.start,g.seq1Range.start));x(P)&&(w=w.deltaStart(-P.length));const O=c.getText(new gl(g.seq1Range.endExclusive,I.endExclusive));x(O)&&(w=w.deltaEnd(O.length));const W=Fg.fromOffsetPairs(f?f.getEndExclusives():Yx.zero,y?y.getStarts():Yx.max),X=w.intersect(W);d.length>0&&X.getStarts().equals(d[d.length-1].getEndExclusives())?d[d.length-1]=d[d.length-1].join(X):d.push(X)}),d}class omt{constructor(e,i){this.trimmedHash=e,this.lines=i}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const i=e===0?0:amt(this.lines[e-1]),n=e===this.lines.length?0:amt(this.lines[e]);return 1e3-(i+n)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
+`)}isStronglyEqual(e,i){return this.lines[e]===this.lines[i]}}function amt(c){let e=0;for(;eTe===Be))return new $me([],[],!1);if(e.length===1&&e[0].length===0||i.length===1&&i[0].length===0)return new $me([new bw(new cl(1,e.length+1),new cl(1,i.length+1),[new bE(new at(1,1,e.length,e[e.length-1].length+1),new at(1,1,i.length,i[i.length-1].length+1))])],[],!1);const s=n.maxComputationTimeMs===0?$te.instance:new Moi(n.maxComputationTimeMs),l=!n.ignoreTrimWhitespace,d=new Map;function f(Te){let Be=d.get(Te);return Be===void 0&&(Be=d.size,d.set(Te,Be)),Be}const g=e.map(Te=>f(Te.trim())),y=i.map(Te=>f(Te.trim())),w=new omt(g,e),x=new omt(y,i),I=w.length+x.length<1700?this.dynamicProgrammingDiffing.compute(w,x,s,(Te,Be)=>e[Te]===i[Be]?i[Be].length===0?.1:1+Math.log(1+i[Be].length):.99):this.myersDiffingAlgorithm.compute(w,x,s);let P=I.diffs,O=I.hitTimeout;P=n9e(w,x,P),P=Qoi(w,x,P);const W=[],X=Te=>{if(l)for(let Be=0;BeTe.seq1Range.start-Z===Te.seq2Range.start-ee);const Be=Te.seq1Range.start-Z;X(Be),Z=Te.seq1Range.endExclusive,ee=Te.seq2Range.endExclusive;const Me=this.refineDiff(e,i,Te,s,l);Me.hitTimeout&&(O=!0);for(const vt of Me.mappings)W.push(vt)}X(e.length-Z);const he=lmt(W,e,i);let we=[];return n.computeMoves&&(we=this.computeMoves(he,e,i,g,y,s,l)),C9(()=>{function Te(Me,vt){if(Me.lineNumber<1||Me.lineNumber>vt.length)return!1;const Nt=vt[Me.lineNumber-1];return!(Me.column<1||Me.column>Nt.length+1)}function Be(Me,vt){return!(Me.startLineNumber<1||Me.startLineNumber>vt.length+1||Me.endLineNumberExclusive<1||Me.endLineNumberExclusive>vt.length+1)}for(const Me of he){if(!Me.innerChanges)return!1;for(const vt of Me.innerChanges)if(!(Te(vt.modifiedRange.getStartPosition(),i)&&Te(vt.modifiedRange.getEndPosition(),i)&&Te(vt.originalRange.getStartPosition(),e)&&Te(vt.originalRange.getEndPosition(),e)))return!1;if(!Be(Me.modified,i)||!Be(Me.original,e))return!1}return!0}),new $me(he,we,O)}computeMoves(e,i,n,s,l,d,f){return Voi(e,i,n,s,l,d).map(w=>{const x=this.refineDiff(i,n,new Fg(w.original.toOffsetRange(),w.modified.toOffsetRange()),d,f),I=lmt(x.mappings,i,n,!0);return new YCt(w,I)})}refineDiff(e,i,n,s,l){const d=new G0e(e,n.seq1Range,l),f=new G0e(i,n.seq2Range,l),g=d.length+f.length<500?this.dynamicProgrammingDiffing.compute(d,f,s):this.myersDiffingAlgorithm.compute(d,f,s);let y=g.diffs;return y=n9e(d,f,y),y=Goi(d,f,y),y=Joi(d,f,y),y=Xoi(d,f,y),{mappings:y.map(x=>new bE(d.translateRange(x.seq1Range),f.translateRange(x.seq2Range))),hitTimeout:g.hitTimeout}}}function lmt(c,e,i,n=!1){const s=[];for(const l of dHe(c.map(d=>Zoi(d,e,i)),(d,f)=>d.original.overlapOrTouch(f.original)||d.modified.overlapOrTouch(f.modified))){const d=l[0],f=l[l.length-1];s.push(new bw(d.original.join(f.original),d.modified.join(f.modified),l.map(g=>g.innerChanges[0])))}return C9(()=>!n&&s.length>0&&(s[0].modified.startLineNumber!==s[0].original.startLineNumber||i.length-s[s.length-1].modified.endLineNumberExclusive!==e.length-s[s.length-1].original.endLineNumberExclusive)?!1:zHe(s,(l,d)=>d.original.startLineNumber-l.original.endLineNumberExclusive===d.modified.startLineNumber-l.modified.endLineNumberExclusive&&l.original.endLineNumberExclusive=i[c.modifiedRange.startLineNumber-1].length&&c.originalRange.startColumn-1>=e[c.originalRange.startLineNumber-1].length&&c.originalRange.startLineNumber<=c.originalRange.endLineNumber+s&&c.modifiedRange.startLineNumber<=c.modifiedRange.endLineNumber+s&&(n=1);const l=new cl(c.originalRange.startLineNumber+n,c.originalRange.endLineNumber+1+s),d=new cl(c.modifiedRange.startLineNumber+n,c.modifiedRange.endLineNumber+1+s);return new bw(l,d,[c])}const cmt={getLegacy:()=>new Loi,getDefault:()=>new nSt};function WM(c,e){const i=Math.pow(10,e);return Math.round(c*i)/i}class bc{constructor(e,i,n,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,i))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=WM(Math.max(Math.min(1,s),0),3)}static equals(e,i){return e.r===i.r&&e.g===i.g&&e.b===i.b&&e.a===i.a}}class iT{constructor(e,i,n,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=WM(Math.max(Math.min(1,i),0),3),this.l=WM(Math.max(Math.min(1,n),0),3),this.a=WM(Math.max(Math.min(1,s),0),3)}static equals(e,i){return e.h===i.h&&e.s===i.s&&e.l===i.l&&e.a===i.a}static fromRGBA(e){const i=e.r/255,n=e.g/255,s=e.b/255,l=e.a,d=Math.max(i,n,s),f=Math.min(i,n,s);let g=0,y=0;const w=(f+d)/2,x=d-f;if(x>0){switch(y=Math.min(w<=.5?x/(2*w):x/(2-2*w),1),d){case i:g=(n-s)/x+(n1&&(n-=1),n<1/6?e+(i-e)*6*n:n<1/2?i:n<2/3?e+(i-e)*(2/3-n)*6:e}static toRGBA(e){const i=e.h/360,{s:n,l:s,a:l}=e;let d,f,g;if(n===0)d=f=g=s;else{const y=s<.5?s*(1+n):s+n-s*n,w=2*s-y;d=iT._hue2rgb(w,y,i+1/3),f=iT._hue2rgb(w,y,i),g=iT._hue2rgb(w,y,i-1/3)}return new bc(Math.round(d*255),Math.round(f*255),Math.round(g*255),l)}}class QN{constructor(e,i,n,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=WM(Math.max(Math.min(1,i),0),3),this.v=WM(Math.max(Math.min(1,n),0),3),this.a=WM(Math.max(Math.min(1,s),0),3)}static equals(e,i){return e.h===i.h&&e.s===i.s&&e.v===i.v&&e.a===i.a}static fromRGBA(e){const i=e.r/255,n=e.g/255,s=e.b/255,l=Math.max(i,n,s),d=Math.min(i,n,s),f=l-d,g=l===0?0:f/l;let y;return f===0?y=0:l===i?y=((n-s)/f%6+6)%6:l===n?y=(s-i)/f+2:y=(i-n)/f+4,new QN(Math.round(y*60),g,l,e.a)}static toRGBA(e){const{h:i,s:n,v:s,a:l}=e,d=s*n,f=d*(1-Math.abs(i/60%2-1)),g=s-d;let[y,w,x]=[0,0,0];return i<60?(y=d,w=f):i<120?(y=f,w=d):i<180?(w=d,x=f):i<240?(w=f,x=d):i<300?(y=f,x=d):i<=360&&(y=d,x=f),y=Math.round((y+g)*255),w=Math.round((w+g)*255),x=Math.round((x+g)*255),new bc(y,w,x,l)}}class Qi{static fromHex(e){return Qi.Format.CSS.parseHex(e)||Qi.red}static equals(e,i){return!e&&!i?!0:!e||!i?!1:e.equals(i)}get hsla(){return this._hsla?this._hsla:iT.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:QN.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof bc)this.rgba=e;else if(e instanceof iT)this._hsla=e,this.rgba=iT.toRGBA(e);else if(e instanceof QN)this._hsva=e,this.rgba=QN.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&bc.equals(this.rgba,e.rgba)&&iT.equals(this.hsla,e.hsla)&&QN.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Qi._relativeLuminanceForComponent(this.rgba.r),i=Qi._relativeLuminanceForComponent(this.rgba.g),n=Qi._relativeLuminanceForComponent(this.rgba.b),s=.2126*e+.7152*i+.0722*n;return WM(s,4)}static _relativeLuminanceForComponent(e){const i=e/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const i=this.getRelativeLuminance(),n=e.getRelativeLuminance();return i>n}isDarkerThan(e){const i=this.getRelativeLuminance(),n=e.getRelativeLuminance();return i0)for(const s of n){const l=s.filter(y=>y!==void 0),d=l[1],f=l[2];if(!f)continue;let g;if(d==="rgb"){const y=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;g=umt(QY(c,s),XY(f,y),!1)}else if(d==="rgba"){const y=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;g=umt(QY(c,s),XY(f,y),!0)}else if(d==="hsl"){const y=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;g=dmt(QY(c,s),XY(f,y),!1)}else if(d==="hsla"){const y=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;g=dmt(QY(c,s),XY(f,y),!0)}else d==="#"&&(g=Yoi(QY(c,s),d+f));g&&e.push(g)}return e}function tai(c){return!c||typeof c.getValue!="function"||typeof c.positionAt!="function"?[]:eai(c)}const fmt=new RegExp("\\bMARK:\\s*(.*)$","d"),iai=/^-+|-+$/g;function nai(c,e){var i;let n=[];if(e.findRegionSectionHeaders&&(!((i=e.foldingRules)===null||i===void 0)&&i.markers)){const s=rai(c,e);n=n.concat(s)}if(e.findMarkSectionHeaders){const s=sai(c);n=n.concat(s)}return n}function rai(c,e){const i=[],n=c.getLineCount();for(let s=1;s<=n;s++){const l=c.getLineContent(s),d=l.match(e.foldingRules.markers.start);if(d){const f={startLineNumber:s,startColumn:d[0].length+1,endLineNumber:s,endColumn:l.length+1};if(f.endColumn>f.startColumn){const g={range:f,...sSt(l.substring(d[0].length)),shouldBeInComments:!1};(g.text||g.hasSeparatorLine)&&i.push(g)}}}return i}function sai(c){const e=[],i=c.getLineCount();for(let n=1;n<=i;n++){const s=c.getLineContent(n);oai(s,n,e)}return e}function oai(c,e,i){fmt.lastIndex=0;const n=fmt.exec(c);if(n){const s=n.indices[1][0]+1,l=n.indices[1][1]+1,d={startLineNumber:e,startColumn:s,endLineNumber:e,endColumn:l};if(d.endColumn>d.startColumn){const f={range:d,...sSt(n[1]),shouldBeInComments:!0};(f.text||f.hasSeparatorLine)&&i.push(f)}}}function sSt(c){c=c.trim();const e=c.startsWith("-");return c=c.replace(iai,""),{text:c,hasSeparatorLine:e}}class aai extends ioi{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const i=[];for(let n=0;nthis._lines.length)i=this._lines.length,n=this._lines[i-1].length+1,s=!0;else{const l=this._lines[i-1].length+1;n<1?(n=1,s=!0):n>l&&(n=l,s=!0)}return s?{lineNumber:i,column:n}:e}}class VM{constructor(e,i){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=i,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(i=>e.push(this._models[i])),e}acceptNewModel(e){this._models[e.url]=new aai(Oo.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,i){if(!this._models[e])return;this._models[e].onEvents(i)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,i,n){const s=this._getModel(e);return s?GHe.computeUnicodeHighlights(s,i,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,i){const n=this._getModel(e);return n?nai(n,i):[]}async computeDiff(e,i,n,s){const l=this._getModel(e),d=this._getModel(i);return!l||!d?null:VM.computeDiff(l,d,n,s)}static computeDiff(e,i,n,s){const l=s==="advanced"?cmt.getDefault():cmt.getLegacy(),d=e.getLinesContent(),f=i.getLinesContent(),g=l.computeDiff(d,f,n),y=g.changes.length>0?!1:this._modelsAreIdentical(e,i);function w(x){return x.map(I=>{var P;return[I.original.startLineNumber,I.original.endLineNumberExclusive,I.modified.startLineNumber,I.modified.endLineNumberExclusive,(P=I.innerChanges)===null||P===void 0?void 0:P.map(O=>[O.originalRange.startLineNumber,O.originalRange.startColumn,O.originalRange.endLineNumber,O.originalRange.endColumn,O.modifiedRange.startLineNumber,O.modifiedRange.startColumn,O.modifiedRange.endLineNumber,O.modifiedRange.endColumn])]})}return{identical:y,quitEarly:g.hitTimeout,changes:w(g.changes),moves:g.moves.map(x=>[x.lineRangeMapping.original.startLineNumber,x.lineRangeMapping.original.endLineNumberExclusive,x.lineRangeMapping.modified.startLineNumber,x.lineRangeMapping.modified.endLineNumberExclusive,w(x.changes)])}}static _modelsAreIdentical(e,i){const n=e.getLineCount(),s=i.getLineCount();if(n!==s)return!1;for(let l=1;l<=n;l++){const d=e.getLineContent(l),f=i.getLineContent(l);if(d!==f)return!1}return!0}async computeMoreMinimalEdits(e,i,n){const s=this._getModel(e);if(!s)return i;const l=[];let d;i=i.slice(0).sort((g,y)=>{if(g.range&&y.range)return at.compareRangesUsingStarts(g.range,y.range);const w=g.range?0:1,x=y.range?0:1;return w-x});let f=0;for(let g=1;gVM._diffLimit){l.push({range:g,text:y});continue}const I=Ysi(x,y,n),P=s.offsetAt(at.lift(g).getStartPosition());for(const O of I){const W=s.positionAt(P+O.originalStart),X=s.positionAt(P+O.originalStart+O.originalLength),Z={text:y.substr(O.modifiedStart,O.modifiedLength),range:{startLineNumber:W.lineNumber,startColumn:W.column,endLineNumber:X.lineNumber,endColumn:X.column}};s.getValueInRange(Z.range)!==Z.text&&l.push(Z)}}return typeof d=="number"&&l.push({eol:d,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),l}async computeLinks(e){const i=this._getModel(e);return i?aoi(i):null}async computeDefaultDocumentColors(e){const i=this._getModel(e);return i?tai(i):null}async textualSuggest(e,i,n,s){const l=new o0,d=new RegExp(n,s),f=new Set;e:for(const g of e){const y=this._getModel(g);if(y){for(const w of y.words(d))if(!(w===i||!isNaN(Number(w)))&&(f.add(w),f.size>VM._suggestionsLimit))break e}}return{words:Array.from(f),duration:l.elapsed()}}async computeWordRanges(e,i,n,s){const l=this._getModel(e);if(!l)return Object.create(null);const d=new RegExp(n,s),f=Object.create(null);for(let g=i.startLineNumber;gthis._host.fhr(f,g)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(d,i),Promise.resolve(_He(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,i){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,i))}catch(n){return Promise.reject(n)}}}VM._diffLimit=1e5;VM._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=qbt());const YHe=Kl("textResourceConfigurationService"),oSt=Kl("textResourcePropertiesService"),js=Kl("ILanguageFeaturesService");var lai=function(c,e,i,n){var s=arguments.length,l=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,e,i,n);else for(var f=c.length-1;f>=0;f--)(d=c[f])&&(l=(s<3?d(l):s>3?d(e,i,l):d(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l},ZY=function(c,e){return function(i,n){e(i,n,c)}};const hmt=60*1e3,_mt=5*60*1e3;function O5(c,e){const i=c.getModel(e);return!(!i||i.isTooLargeForSyncing())}let r9e=class extends Ii{constructor(e,i,n,s,l){super(),this._modelService=e,this._workerManager=this._register(new uai(this._modelService,s)),this._logService=n,this._register(l.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(d,f)=>O5(this._modelService,d.uri)?this._workerManager.withWorker().then(g=>g.computeLinks(d.uri)).then(g=>g&&{links:g}):Promise.resolve({links:[]})})),this._register(l.completionProvider.register("*",new cai(this._workerManager,i,this._modelService,s)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return O5(this._modelService,e)}computedUnicodeHighlights(e,i,n){return this._workerManager.withWorker().then(s=>s.computedUnicodeHighlights(e,i,n))}async computeDiff(e,i,n,s){const l=await this._workerManager.withWorker().then(g=>g.computeDiff(e,i,n,s));if(!l)return null;return{identical:l.identical,quitEarly:l.quitEarly,changes:f(l.changes),moves:l.moves.map(g=>new YCt(new my(new cl(g[0],g[1]),new cl(g[2],g[3])),f(g[4])))};function f(g){return g.map(y=>{var w;return new bw(new cl(y[0],y[1]),new cl(y[2],y[3]),(w=y[4])===null||w===void 0?void 0:w.map(x=>new bE(new at(x[0],x[1],x[2],x[3]),new at(x[4],x[5],x[6],x[7]))))})}}computeMoreMinimalEdits(e,i,n=!1){if(bv(i)){if(!O5(this._modelService,e))return Promise.resolve(i);const s=o0.create(),l=this._workerManager.withWorker().then(d=>d.computeMoreMinimalEdits(e,i,n));return l.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed())),Promise.race([l,J4(1e3).then(()=>i)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return O5(this._modelService,e)}navigateValueSet(e,i,n){return this._workerManager.withWorker().then(s=>s.navigateValueSet(e,i,n))}canComputeWordRanges(e){return O5(this._modelService,e)}computeWordRanges(e,i){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,i))}findSectionHeaders(e,i){return this._workerManager.withWorker().then(n=>n.findSectionHeaders(e,i))}};r9e=lai([ZY(0,Qf),ZY(1,YHe),ZY(2,Sv),ZY(3,Kd),ZY(4,js)],r9e);class cai{constructor(e,i,n,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=i,this._modelService=n}async provideCompletionItems(e,i){const n=this._configurationService.getValue(e.uri,i,"editor");if(n.wordBasedSuggestions==="off")return;const s=[];if(n.wordBasedSuggestions==="currentDocument")O5(this._modelService,e.uri)&&s.push(e.uri);else for(const x of this._modelService.getModels())O5(this._modelService,x.uri)&&(x===e?s.unshift(x.uri):(n.wordBasedSuggestions==="allDocuments"||x.getLanguageId()===e.getLanguageId())&&s.push(x.uri));if(s.length===0)return;const l=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),d=e.getWordAtPosition(i),f=d?new at(i.lineNumber,d.startColumn,i.lineNumber,d.endColumn):at.fromPositions(i),g=f.setEndPosition(i.lineNumber,i.column),w=await(await this._workerManager.withWorker()).textualSuggest(s,d==null?void 0:d.word,l);if(w)return{duration:w.duration,suggestions:w.words.map(x=>({kind:18,label:x,insertText:x,range:{insert:g,replace:f}}))}}}class uai extends Ii{constructor(e,i){super(),this.languageConfigurationService=i,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new FHe).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(_mt/2),ed),this._register(this._modelService.onModelRemoved(s=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>_mt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new eje(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class dai extends Ii{constructor(e,i,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=i,!n){const s=new OHe;s.cancelAndSet(()=>this._checkStopModelSync(),Math.round(hmt/2)),this._register(s)}}dispose(){for(const e in this._syncedModels)yd(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,i){for(const n of e){const s=n.toString();this._syncedModels[s]||this._beginModelSync(n,i),this._syncedModels[s]&&(this._syncedModelsLastUsedTime[s]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),i=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>hmt&&i.push(n);for(const n of i)this._stopModelSync(n)}_beginModelSync(e,i){const n=this._modelService.getModel(e);if(!n||!i&&n.isTooLargeForSyncing())return;const s=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const l=new On;l.add(n.onDidChangeContent(d=>{this._proxy.acceptModelChanged(s.toString(),d)})),l.add(n.onWillDispose(()=>{this._stopModelSync(s)})),l.add(go(()=>{this._proxy.acceptRemovedModel(s)})),this._syncedModels[s]=l}_stopModelSync(e){const i=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],yd(i)}}class pmt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Z8e{constructor(e){this._workerClient=e}fhr(e,i){return this._workerClient.fhr(e,i)}}class eje extends Ii{constructor(e,i,n,s){super(),this.languageConfigurationService=s,this._disposed=!1,this._modelService=e,this._keepIdleModels=i,this._workerFactory=new Y1e(n),this._worker=null,this._modelManager=null}fhr(e,i){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new fsi(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Z8e(this)))}catch(e){K5e(e),this._worker=new pmt(new VM(new Z8e(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(K5e(e),this._worker=new pmt(new VM(new Z8e(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new dai(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,i=!1){return this._disposed?Promise.reject(sii()):this._getProxy().then(n=>(this._getOrCreateModelManager(n).ensureSyncedResources(e,i),n))}computedUnicodeHighlights(e,i,n){return this._withSyncedResources([e]).then(s=>s.computeUnicodeHighlights(e.toString(),i,n))}computeDiff(e,i,n,s){return this._withSyncedResources([e,i],!0).then(l=>l.computeDiff(e.toString(),i.toString(),n,s))}computeMoreMinimalEdits(e,i,n){return this._withSyncedResources([e]).then(s=>s.computeMoreMinimalEdits(e.toString(),i,n))}computeLinks(e){return this._withSyncedResources([e]).then(i=>i.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(i=>i.computeDefaultDocumentColors(e.toString()))}async textualSuggest(e,i,n){const s=await this._withSyncedResources(e),l=n.source,d=n.flags;return s.textualSuggest(e.map(f=>f.toString()),i,l,d)}computeWordRanges(e,i){return this._withSyncedResources([e]).then(n=>{const s=this._modelService.getModel(e);if(!s)return Promise.resolve(null);const l=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),d=l.source,f=l.flags;return n.computeWordRanges(e.toString(),i,d,f)})}navigateValueSet(e,i,n){return this._withSyncedResources([e]).then(s=>{const l=this._modelService.getModel(e);if(!l)return null;const d=this.languageConfigurationService.getLanguageConfiguration(l.getLanguageId()).getWordDefinition(),f=d.source,g=d.flags;return s.navigateValueSet(e.toString(),i,n,f,g)})}findSectionHeaders(e,i){return this._withSyncedResources([e]).then(n=>n.findSectionHeaders(e.toString(),i))}dispose(){super.dispose(),this._disposed=!0}}function fai(c,e,i){return new hai(c,e,i)}class hai extends eje{constructor(e,i,n){super(e,n.keepIdleModels||!1,n.label,i),this._foreignModuleId=n.moduleId,this._foreignModuleCreateData=n.createData||null,this._foreignModuleHost=n.host||null,this._foreignProxy=null}fhr(e,i){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,i))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const i=this._foreignModuleHost?_He(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,i).then(n=>{this._foreignModuleCreateData=null;const s=(f,g)=>e.fmr(f,g),l=(f,g)=>function(){const y=Array.prototype.slice.call(arguments,0);return g(f,y)},d={};for(const f of n)d[f]=l(f,s);return d})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(i=>this.getProxy())}}const xne={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},eq=new class{clone(){return this}equals(c){return this===c}};function tje(c,e){return new xHe([new Pte(0,"",c)],e)}function nye(c,e){const i=new Uint32Array(2);return i[0]=0,i[1]=(c<<0|0|0|32768|2<<24)>>>0,new M1e(i,e===null?eq:e)}class P0{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let n="mtk"+this.getForeground(e);const s=this.getFontStyle(e);return s&1&&(n+=" mtki"),s&2&&(n+=" mtkb"),s&4&&(n+=" mtku"),s&8&&(n+=" mtks"),n}static getInlineStyleFromMetadata(e,i){const n=this.getForeground(e),s=this.getFontStyle(e);let l=`color: ${i[n]};`;s&1&&(l+="font-style: italic;"),s&2&&(l+="font-weight: bold;");let d="";return s&4&&(d+=" underline"),s&8&&(d+=" line-through"),d&&(l+=`text-decoration:${d};`),l}static getPresentationFromMetadata(e){const i=this.getForeground(e),n=this.getFontStyle(e);return{foreground:i,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}}class vp{static createEmpty(e,i){const n=vp.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=n,new vp(s,e,i)}static createFromTextAndMetadata(e,i){let n=0,s="";const l=new Array;for(const{text:d,metadata:f}of e)l.push(n+d.length,f),n+=d.length,s+=d;return new vp(new Uint32Array(l),s,i)}constructor(e,i,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=i,this.languageIdCodec=n}equals(e){return e instanceof vp?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,i,n){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const s=i<<1,l=s+(n<<1);for(let d=s;d0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const i=this._tokens[(e<<1)+1],n=P0.getLanguageId(i);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const i=this._tokens[(e<<1)+1];return P0.getTokenType(i)}getForeground(e){const i=this._tokens[(e<<1)+1];return P0.getForeground(i)}getClassName(e){const i=this._tokens[(e<<1)+1];return P0.getClassNameFromMetadata(i)}getInlineStyle(e,i){const n=this._tokens[(e<<1)+1];return P0.getInlineStyleFromMetadata(n,i)}getPresentation(e){const i=this._tokens[(e<<1)+1];return P0.getPresentationFromMetadata(i)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return vp.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,i,n){return new ije(this,e,i,n)}static convertToEndOffset(e,i){const s=(e.length>>>1)-1;for(let l=0;l>>1)-1;for(;ni&&(s=l)}return n}withInserted(e){if(e.length===0)return this;let i=0,n=0,s="";const l=new Array;let d=0;for(;;){const f=id){s+=this._text.substring(d,g.offset);const y=this._tokens[(i<<1)+1];l.push(s.length,y),d=g.offset}s+=g.text,l.push(s.length,g.tokenMetadata),n++}else break}return new vp(new Uint32Array(l),s,this.languageIdCodec)}getTokenText(e){const i=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(i,n)}forEach(e){const i=this.getCount();for(let n=0;n>>0;class ije{constructor(e,i,n,s){this._source=e,this._startOffset=i,this._endOffset=n,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(i),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let l=this._firstTokenIndex,d=e.getCount();l=n);l++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof ije?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const i=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,i)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,i){return this._source.getInlineStyle(this._firstTokenIndex+e,i)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const i=this._firstTokenIndex+e,n=this._source.getStartOffset(i),s=this._source.getEndOffset(i);let l=this._source.getTokenText(i);return nthis._endOffset&&(l=l.substring(0,l.length-(s-this._endOffset))),l}forEach(e){for(let i=0;i=l||(f[g++]=new Sy(Math.max(1,y.startColumn-s+1),Math.min(d+1,y.endColumn-s+1),y.className,y.type));return f}static filter(e,i,n,s){if(e.length===0)return[];const l=[];let d=0;for(let f=0,g=e.length;fi||w.isEmpty()&&(y.type===0||y.type===3))continue;const x=w.startLineNumber===i?w.startColumn:n,I=w.endLineNumber===i?w.endColumn:s;l[d++]=new Sy(x,I,y.inlineClassName,y.type)}return l}static _typeCompare(e,i){const n=[2,0,1,3];return n[e]-n[i]}static compare(e,i){if(e.startColumn!==i.startColumn)return e.startColumn-i.startColumn;if(e.endColumn!==i.endColumn)return e.endColumn-i.endColumn;const n=Sy._typeCompare(e.type,i.type);return n!==0?n:e.className!==i.className?e.className0&&this.stopOffsets[0]0&&i=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,i),this.metadata.splice(s,0,n);break}this.count++}}class pai{static normalize(e,i){if(i.length===0)return[];const n=[],s=new K0e;let l=0;for(let d=0,f=i.length;d1){const W=e.charCodeAt(y-2);Bg(W)&&y--}if(w>1){const W=e.charCodeAt(w-2);Bg(W)&&w--}const P=y-1,O=w-2;l=s.consumeLowerThan(P,l,n),s.count===0&&(l=P),s.insert(O,x,I)}return s.consumeLowerThan(1073741824,l,n),n}}class vm{constructor(e,i,n,s){this.endIndex=e,this.type=i,this.metadata=n,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class aSt{constructor(e,i){this.startOffset=e,this.endOffset=i}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class TR{constructor(e,i,n,s,l,d,f,g,y,w,x,I,P,O,W,X,Z,ee,he){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=i,this.lineContent=n,this.continuesWithWrappedLine=s,this.isBasicASCII=l,this.containsRTL=d,this.fauxIndentLength=f,this.lineTokens=g,this.lineDecorations=y.sort(Sy.compare),this.tabSize=w,this.startVisibleColumn=x,this.spaceWidth=I,this.stopRenderingLineAfter=W,this.renderWhitespace=X==="all"?4:X==="boundary"?1:X==="selection"?2:X==="trailing"?3:0,this.renderControlCharacters=Z,this.fontLigatures=ee,this.selectionsOnLine=he&&he.sort((Be,Me)=>Be.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,i){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,i,n,s){const l=(i<<16|n<<0)>>>0;this._data[e-1]=l,this._horizontalOffset[e-1]=s}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const i=this.charOffsetToPartData(e-1),n=VN.getPartIndex(i),s=VN.getCharIndex(i);return new lSt(n,s)}getColumn(e,i){return this.partDataToCharOffset(e.partIndex,i,e.charIndex)+1}partDataToCharOffset(e,i,n){if(this.length===0)return 0;const s=(e<<16|n<<0)>>>0;let l=0,d=this.length-1;for(;l+1